Commit Graph

116 Commits

Author SHA1 Message Date
Leigh Pointer
1e3c176ddf Update ReplaceTokens on ModuleBase
Check for Contents == null
2025-11-22 13:31:04 +01:00
sbwalker
087d5ef394 make logger public 2025-10-30 16:33:59 -04:00
sbwalker
880a6e43d1 use enum for MessageStyle 2025-09-16 11:16:23 -04:00
sbwalker
a528e5eab2 add toast support to ModuleMessage 2025-09-15 16:42:37 -04:00
sbwalker
1ebf3c4077 added StaticAssetPath properties to base classes 2025-08-30 07:48:26 -04:00
sbwalker
b7ff49bdb2 add authorization convenience methods to ModuleBase 2025-08-13 08:18:16 -04:00
sbwalker
b11a7a678c fix #5461 - handle MinDate and MaxDate 2025-08-07 10:58:33 -04:00
David Montesinos
bb52402a17 feat: handle timezones and conversions with NodaTime 2025-07-09 12:09:00 +02:00
Leigh Pointer
1412737036 Date / Time validations
This PR ensures time fields are required when dates are set, using Oqtane validation and dynamically toggles the required attribute on time inputs when their corresponding date fields have values. Benefits:
- Uses Oqtane's validation for a polished UX.
- Reduces custom validation code.
- Aligns with our internal form logic.

- Tested across all date/time scenarios—works flawlessly!
**Testing Confirmed:**
- Date + Time Provided → Saves successfully.
- No Date + No Time → Optional (no validation).
- Date + No Time → Browser blocks submission with icon error.
2025-06-10 12:27:55 +02:00
sbwalker
85085bf4c7 stop gap fix to mitigate date conversion exceptions on WebAssembly 2025-06-05 10:37:25 -04:00
Leigh Pointer
ef4fbcbb8a Update ModuleBase.cs
This method replaces all tokens in the format [Object:Property] or [Object:SubObject:Property] within a string.
Efficient string parsing and reflection ensure flexibility with performance.
It supports deeply nested properties, optional default fallback values (e.g. [PageState:User:Email|default@email.com]), and uses caching to optimize repeated token resolution without regex.
2025-05-28 17:30:19 +02:00
Leigh Pointer
7fff5c0d18 Fix for ModuleBase ReplaceTokens #5332
Replaced the ReplaceTokens logic to replace all tokens in the string
2025-05-25 10:55:49 +02:00
sbwalker
c098839881 fix #5205 add support for inheritance when loading Resources from ModuleBase or ThemeBase 2025-05-19 21:00:35 -07:00
sbwalker
139793f3c0 display local datetimes in the Job Scheduler (using time zones) 2025-05-13 11:29:26 -04:00
Leigh Pointer
feee8def6f GetUrlParameters crash
The _urlparametersstate variable is not initialized so in GetUrlParameters it causes a crash
2025-04-29 09:50:15 +02:00
sbwalker
5b4db0de3b allow page and module settings to be included in site templates, improve terms and privacy default content, add Settings for HtmlText module 2025-03-06 14:46:17 -05:00
sbwalker
a87af264eb added a ScriptsLoaded property in ModuleBase and ThemeBase for flow control in Interactive rendering scenarios 2025-01-31 08:42:36 -05:00
sbwalker
a996a88fc4 improve terminology consistency 2025-01-28 08:56:05 -05:00
sbwalker
ed981c67b7 add Fingerprint property to ModuleBase and ThemeBase 2025-01-28 08:43:48 -05:00
sbwalker
e7444a0194 fix #4986 - allow Resources which have Reload specified to be used in Interactive rendering 2025-01-16 12:26:10 -05:00
sbwalker
ca0fb05baa Improvements to add support for script type and data-* attributes. Also added Script and Stylesheet classes to simplify Resource declarations. 2024-12-18 15:15:54 -05:00
sbwalker
d4f71d5026 improve developer experience for Url helper methods 2024-08-28 21:21:41 -04:00
Ben
2b32f316ee Fix #3885: only re-render the component when message changed. 2024-05-18 21:55:37 +08:00
sbwalker
2ae120c878 add support for Auto Prerendering 2024-05-09 14:42:54 -04:00
vnetonline
d910cfa919 [ENH] - #4178 modifications after review 2024-04-24 09:46:07 +10:00
vnetonline
cfb128acb8 [ENH] - Add Prerender IModuleControl property (similar to RenderMode) #4178 2024-04-23 15:22:02 +10:00
sbwalker
ace7b4e2af fix resource processing issue 2024-03-10 09:17:54 -04:00
sbwalker
25753af331 add support specifying RenderMode for Resources 2024-03-02 08:34:24 -05:00
sbwalker
cdc0dee6f5 remove commented code 2024-02-19 15:47:23 -05:00
sbwalker
54418957b6 update Npgsql.EntityFrameworkCore.PostgreSQL to version 8.0.2 2024-02-18 10:21:36 -05:00
sbwalker
a65959de3f fix #3781 - ModuleBase breaking change 2024-02-14 11:54:04 -05:00
sbwalker
a40b49f2ed implement RenderModeBoundary 2024-02-08 15:47:25 -05:00
sbwalker
7640dab380 fix Runtimes property behavior 2024-02-01 10:08:41 -05:00
sbwalker
abd235f332 add RenderMode to IModuleControl 2024-02-01 09:59:28 -05:00
sbwalker
c271d4bfe4 improve ShouldRender logic 2024-01-06 08:52:05 -05:00
sbwalker
02c22c1894 improved rendering optimization 2024-01-05 11:49:57 -05:00
Cody
9b24e61033 Clear Module Message Proir To Adding A Message To UI 2023-12-29 12:49:49 -08:00
sbwalker
e4e1fa6a4c allow AddModuleMessage to support displaying the message at the bottom of the module instance 2023-12-04 09:55:53 -05:00
vnetonline
a4fa11c881 [ENHANCE] - Change to ExpandoObject instead of an Anonymous Object
Anonymous Object are not able to be used across assemblies however ExpandoObject is refer to #3145
2023-08-17 10:45:38 +10:00
sbwalker
feae7d6269 fix #2976 - add logging methods to ThemeBase 2023-07-10 16:26:30 -04:00
sbwalker
86fbdced1b cleanup and ensure site level scripts work properly 2023-06-21 15:49:00 -04:00
sbwalker
8067b2e634 fix #2912 - move JavaScript handling from ThemeBuilder to component OnAfterRenderAsync 2023-06-21 08:31:51 -04:00
sbwalker
bda0943d58 create AppendHeadContent method to consolidate logic 2023-06-14 09:37:34 -04:00
sbwalker
40c788fc33 include methods for dynamic scenarios 2023-06-02 08:34:05 -04:00
sbwalker
6f0a6c7f69 clarify scroll method name 2023-05-26 07:41:49 -04:00
sbwalker
4ad5522f9e add module base class method for ScrollToTop 2023-05-26 07:39:06 -04:00
sbwalker
7b0799a6f6 utilize ResourceLocation consistently 2023-05-23 08:08:16 -04:00
sbwalker
ded326c822 changes to support page level scripts, ability to detect prerendering 2023-05-22 13:56:48 -04:00
sbwalker
0b8086bd36 optimize JavaScript handling 2023-05-18 14:36:06 -04:00
sbwalker
dbe7324c7f ability to add arbitrary content to head and body during client and server rendering 2023-05-15 16:43:22 -04:00