@openg2p/registry-widgets 1.1.3-dev.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/dist/components/FilePreviewModal.d.ts +2 -4
- package/dist/components/FilePreviewModal.d.ts.map +1 -1
- package/dist/components/PanelRenderer.d.ts +0 -7
- package/dist/components/PanelRenderer.d.ts.map +1 -1
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
- package/dist/components/SectionBuilder/schemas.d.ts +5 -5
- package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
- package/dist/components/SectionRenderer/SectionRenderer.d.ts +3 -0
- package/dist/components/SectionRenderer/SectionRenderer.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/CRViewFooter.d.ts +8 -0
- package/dist/components/SectionRenderer/components/CRViewFooter.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts +30 -0
- package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts +23 -0
- package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/PanelGrid.d.ts +17 -0
- package/dist/components/SectionRenderer/components/PanelGrid.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts +26 -0
- package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/SectionEditControls.d.ts +7 -0
- package/dist/components/SectionRenderer/components/SectionEditControls.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/SectionStyles.d.ts +11 -0
- package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/SupportingDocuments.d.ts +13 -0
- package/dist/components/SectionRenderer/components/SupportingDocuments.d.ts.map +1 -0
- package/dist/components/SectionRenderer/components/index.d.ts +9 -0
- package/dist/components/SectionRenderer/components/index.d.ts.map +1 -0
- package/dist/components/SectionRenderer/hooks/index.d.ts +6 -0
- package/dist/components/SectionRenderer/hooks/index.d.ts.map +1 -0
- package/dist/components/SectionRenderer/hooks/useCrViewData.d.ts +8 -0
- package/dist/components/SectionRenderer/hooks/useCrViewData.d.ts.map +1 -0
- package/dist/components/SectionRenderer/hooks/useIntakeFormAccordion.d.ts +6 -0
- package/dist/components/SectionRenderer/hooks/useIntakeFormAccordion.d.ts.map +1 -0
- package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts +34 -0
- package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts.map +1 -0
- package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts +25 -0
- package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts.map +1 -0
- package/dist/components/SectionRenderer/hooks/useSectionEditPortal.d.ts +15 -0
- package/dist/components/SectionRenderer/hooks/useSectionEditPortal.d.ts.map +1 -0
- package/dist/components/SectionRenderer/index.d.ts +3 -0
- package/dist/components/SectionRenderer/index.d.ts.map +1 -0
- package/dist/components/SectionRenderer/types/index.d.ts +3 -0
- package/dist/components/SectionRenderer/types/index.d.ts.map +1 -0
- package/dist/components/SectionRenderer/types/sectionChanges.d.ts +8 -0
- package/dist/components/SectionRenderer/types/sectionChanges.d.ts.map +1 -0
- package/dist/components/SectionRenderer/types/sectionRendererProps.d.ts +30 -0
- package/dist/components/SectionRenderer/types/sectionRendererProps.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/documentWidgetConfig.d.ts +17 -0
- package/dist/components/SectionRenderer/utils/documentWidgetConfig.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts +24 -0
- package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/index.d.ts +10 -0
- package/dist/components/SectionRenderer/utils/index.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/makePanelsEditable.d.ts +4 -0
- package/dist/components/SectionRenderer/utils/makePanelsEditable.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/panelLayout.d.ts +10 -0
- package/dist/components/SectionRenderer/utils/panelLayout.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/readonlyStyles.d.ts +9 -0
- package/dist/components/SectionRenderer/utils/readonlyStyles.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts +16 -0
- package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/sectionSnapshot.d.ts +25 -0
- package/dist/components/SectionRenderer/utils/sectionSnapshot.d.ts.map +1 -0
- package/dist/components/SectionsContainer.d.ts +1 -23
- package/dist/components/SectionsContainer.d.ts.map +1 -1
- package/dist/components/WidgetFieldLabel.d.ts +2 -5
- package/dist/components/WidgetFieldLabel.d.ts.map +1 -1
- package/dist/components/WidgetProvider.d.ts +4 -5
- package/dist/components/WidgetProvider.d.ts.map +1 -1
- package/dist/components/WidgetRenderer.d.ts +2 -2
- package/dist/components/WidgetRenderer.d.ts.map +1 -1
- package/dist/events/WidgetEventBus.d.ts +0 -22
- package/dist/events/WidgetEventBus.d.ts.map +1 -1
- package/dist/hooks/useBaseWidget.d.ts +0 -1
- package/dist/hooks/useBaseWidget.d.ts.map +1 -1
- package/dist/hooks/useGeoHierarchy.d.ts +46 -0
- package/dist/hooks/useGeoHierarchy.d.ts.map +1 -0
- package/dist/hooks/useWidgetCascade.d.ts.map +1 -1
- package/dist/hooks/useWidgetEventBus.d.ts +0 -3
- package/dist/hooks/useWidgetEventBus.d.ts.map +1 -1
- package/dist/hooks/useWidgetTheme.d.ts +0 -8
- package/dist/hooks/useWidgetTheme.d.ts.map +1 -1
- package/dist/index.d.ts +75 -1102
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +4898 -6568
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4898 -6592
- package/dist/index.js.map +1 -1
- package/dist/registry/WidgetRegistry.d.ts +0 -24
- package/dist/registry/WidgetRegistry.d.ts.map +1 -1
- package/dist/registry/defaultWidgets.d.ts +0 -4
- package/dist/registry/defaultWidgets.d.ts.map +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/widgetSlice.d.ts.map +1 -1
- package/dist/theme/index.d.ts +3 -51
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +42 -118
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/dataSource.d.ts +2 -8
- package/dist/utils/dataSource.d.ts.map +1 -1
- package/dist/utils/dateInput.d.ts +0 -33
- package/dist/utils/dateInput.d.ts.map +1 -1
- package/dist/utils/datetimeInput.d.ts +1 -28
- package/dist/utils/datetimeInput.d.ts.map +1 -1
- package/dist/utils/extractTableRecordsFromSnapshot.d.ts.map +1 -1
- package/dist/utils/filePreview.d.ts +0 -6
- package/dist/utils/filePreview.d.ts.map +1 -1
- package/dist/utils/fileSerialization.d.ts +1 -25
- package/dist/utils/fileSerialization.d.ts.map +1 -1
- package/dist/utils/formatting.d.ts +0 -12
- package/dist/utils/formatting.d.ts.map +1 -1
- package/dist/utils/geoHierarchy.d.ts +56 -111
- package/dist/utils/geoHierarchy.d.ts.map +1 -1
- package/dist/utils/numberInput.d.ts +0 -18
- package/dist/utils/numberInput.d.ts.map +1 -1
- package/dist/utils/pathUtils.d.ts +0 -7
- package/dist/utils/pathUtils.d.ts.map +1 -1
- package/dist/utils/schemaTranslation.d.ts +0 -18
- package/dist/utils/schemaTranslation.d.ts.map +1 -1
- package/dist/utils/sectionRevert.d.ts +0 -6
- package/dist/utils/sectionRevert.d.ts.map +1 -1
- package/dist/utils/sectionValidate.d.ts +4 -8
- package/dist/utils/sectionValidate.d.ts.map +1 -1
- package/dist/utils/tSchema.d.ts +5 -0
- package/dist/utils/tSchema.d.ts.map +1 -0
- package/dist/utils/textInput.d.ts +0 -12
- package/dist/utils/textInput.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +2 -8
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validationPatterns.d.ts +0 -10
- package/dist/utils/validationPatterns.d.ts.map +1 -1
- package/dist/widgets/BooleanWidget.d.ts +0 -28
- package/dist/widgets/BooleanWidget.d.ts.map +1 -1
- package/dist/widgets/CheckboxWidget.d.ts +0 -49
- package/dist/widgets/CheckboxWidget.d.ts.map +1 -1
- package/dist/widgets/DateInputWidget.d.ts +0 -40
- package/dist/widgets/DateInputWidget.d.ts.map +1 -1
- package/dist/widgets/DateTimeInputWidget.d.ts +0 -35
- package/dist/widgets/DateTimeInputWidget.d.ts.map +1 -1
- package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
- package/dist/widgets/DisplayWidget.d.ts +0 -4
- package/dist/widgets/DisplayWidget.d.ts.map +1 -1
- package/dist/widgets/DocsWidget.d.ts +15 -0
- package/dist/widgets/DocsWidget.d.ts.map +1 -0
- package/dist/widgets/FileInputWidget.d.ts +0 -17
- package/dist/widgets/FileInputWidget.d.ts.map +1 -1
- package/dist/widgets/GeoHierarchyWidget.d.ts +7 -0
- package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -0
- package/dist/widgets/HeaderSectionWidget.d.ts.map +1 -1
- package/dist/widgets/IdAuthenticationWidget.d.ts.map +1 -1
- package/dist/widgets/MultiSelectWidget.d.ts.map +1 -1
- package/dist/widgets/NumberInputWidget.d.ts +0 -42
- package/dist/widgets/NumberInputWidget.d.ts.map +1 -1
- package/dist/widgets/PhoneInputWidget.d.ts +0 -15
- package/dist/widgets/PhoneInputWidget.d.ts.map +1 -1
- package/dist/widgets/ProfileWidget.d.ts +0 -43
- package/dist/widgets/ProfileWidget.d.ts.map +1 -1
- package/dist/widgets/RadioWidget.d.ts +0 -37
- package/dist/widgets/RadioWidget.d.ts.map +1 -1
- package/dist/widgets/RegisterLookupWidget.d.ts.map +1 -1
- package/dist/widgets/ScoresDisplayWidget.d.ts +0 -11
- package/dist/widgets/ScoresDisplayWidget.d.ts.map +1 -1
- package/dist/widgets/SelectWidget.d.ts +0 -16
- package/dist/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/widgets/TableWidget.d.ts +0 -39
- package/dist/widgets/TableWidget.d.ts.map +1 -1
- package/dist/widgets/TextAreaWidget.d.ts +0 -33
- package/dist/widgets/TextAreaWidget.d.ts.map +1 -1
- package/dist/widgets/TextInputWidget.d.ts +0 -41
- package/dist/widgets/TextInputWidget.d.ts.map +1 -1
- package/dist/widgets/index.d.ts +2 -4
- package/dist/widgets/index.d.ts.map +1 -1
- package/package.json +11 -14
- package/dist/components/SectionRenderer.d.ts +0 -61
- package/dist/components/SectionRenderer.d.ts.map +0 -1
- package/dist/hooks/useGeoWidgetCascade.d.ts +0 -12
- package/dist/hooks/useGeoWidgetCascade.d.ts.map +0 -1
- package/dist/hooks/useWidgetTranslation.d.ts +0 -16
- package/dist/hooks/useWidgetTranslation.d.ts.map +0 -1
- package/dist/i18n/config.d.ts +0 -21
- package/dist/i18n/config.d.ts.map +0 -1
- package/dist/utils/buildSectionChanges.d.ts +0 -11
- package/dist/utils/buildSectionChanges.d.ts.map +0 -1
- package/dist/utils/schemaNamespace.d.ts +0 -12
- package/dist/utils/schemaNamespace.d.ts.map +0 -1
- package/dist/widgets/ArrayWidget.d.ts +0 -29
- package/dist/widgets/ArrayWidget.d.ts.map +0 -1
- package/dist/widgets/CurrencyInputWidget.d.ts +0 -24
- package/dist/widgets/CurrencyInputWidget.d.ts.map +0 -1
- package/dist/widgets/IterableAccordionWidget.d.ts +0 -30
- package/dist/widgets/IterableAccordionWidget.d.ts.map +0 -1
- package/dist/widgets/SimpleTableWidget.d.ts +0 -32
- package/dist/widgets/SimpleTableWidget.d.ts.map +0 -1
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Boolean widget with advanced features
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Boolean representation (true/false, yes/no, on/off, custom labels)
|
|
7
|
-
* - Control type (checkbox, radio buttons, toggle/switch)
|
|
8
|
-
* - Default value (true, false, unset/null)
|
|
9
|
-
* - Required vs optional
|
|
10
|
-
* - Layout options (horizontal/vertical)
|
|
11
|
-
*
|
|
12
|
-
* Usage in schema:
|
|
13
|
-
* {
|
|
14
|
-
* "widget": "boolean",
|
|
15
|
-
* "widget-type": "input",
|
|
16
|
-
* "widget-label": "Is Married",
|
|
17
|
-
* "widget-id": "married",
|
|
18
|
-
* "widget-data-path": "person.married",
|
|
19
|
-
* "widget-data-default": false,
|
|
20
|
-
* "widget-data-format": {
|
|
21
|
-
* "booleanRepresentation": "yes-no",
|
|
22
|
-
* "booleanControlType": "radio",
|
|
23
|
-
* "allowUnset": true
|
|
24
|
-
* },
|
|
25
|
-
* "widget-data-validation": {},
|
|
26
|
-
* "widget-required": false,
|
|
27
|
-
* "widget-orientation": "horizontal"
|
|
28
|
-
* }
|
|
29
|
-
*/
|
|
30
2
|
interface BooleanWidgetProps {
|
|
31
3
|
config: BaseWidgetConfig;
|
|
32
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/BooleanWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BooleanWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/BooleanWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,UAAU,CAAC;AAGnE,UAAU,kBAAkB;IAC1B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,GAAI,YAAY,kBAAkB,4CAsQ3D,CAAC"}
|
|
@@ -1,53 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Checkbox widget with advanced features
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Single checkbox (boolean) - when no data source
|
|
7
|
-
* - Multiple checkboxes (array) - when data source provided
|
|
8
|
-
* - Static list of options
|
|
9
|
-
* - Dynamic options (from API / dataset)
|
|
10
|
-
* - Ordered options (preserve order or sort)
|
|
11
|
-
* - Option label & value separation
|
|
12
|
-
* - Display label
|
|
13
|
-
* - Stored value (array for multi-select)
|
|
14
|
-
* - Default selection (pre-selected options or empty array)
|
|
15
|
-
* - Required vs optional (at least one must be selected if required)
|
|
16
|
-
* - Layout options (vertical, horizontal, grid)
|
|
17
|
-
*
|
|
18
|
-
* Usage in schema (single checkbox):
|
|
19
|
-
* {
|
|
20
|
-
* "widget": "checkbox",
|
|
21
|
-
* "widget-type": "input",
|
|
22
|
-
* "widget-label": "I agree to terms",
|
|
23
|
-
* "widget-id": "agree",
|
|
24
|
-
* "widget-data-path": "form.agree",
|
|
25
|
-
* "widget-data-default": false
|
|
26
|
-
* }
|
|
27
|
-
*
|
|
28
|
-
* Usage in schema (multiple checkboxes):
|
|
29
|
-
* {
|
|
30
|
-
* "widget": "checkbox",
|
|
31
|
-
* "widget-type": "input",
|
|
32
|
-
* "widget-label": "Interests",
|
|
33
|
-
* "widget-id": "interests",
|
|
34
|
-
* "widget-data-path": "person.interests",
|
|
35
|
-
* "widget-data-default": ["sports"],
|
|
36
|
-
* "widget-data-source": {
|
|
37
|
-
* "type": "static",
|
|
38
|
-
* "options": [
|
|
39
|
-
* { "value": "sports", "label": "Sports" },
|
|
40
|
-
* { "value": "music", "label": "Music" },
|
|
41
|
-
* { "value": "reading", "label": "Reading" }
|
|
42
|
-
* ]
|
|
43
|
-
* },
|
|
44
|
-
* "widget-data-format": {
|
|
45
|
-
* "layout": "vertical",
|
|
46
|
-
* "sortOptions": false
|
|
47
|
-
* },
|
|
48
|
-
* "widget-required": true
|
|
49
|
-
* }
|
|
50
|
-
*/
|
|
51
2
|
interface CheckboxWidgetProps {
|
|
52
3
|
config: BaseWidgetConfig;
|
|
53
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/CheckboxWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CheckboxWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/CheckboxWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,UAAU,mBAAmB;IAC3B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,GAAI,YAAY,mBAAmB,4CAoM7D,CAAC"}
|
|
@@ -1,44 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Date input widget with advanced features
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Configurable date format (DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD, etc.)
|
|
7
|
-
* - Default value (none / today)
|
|
8
|
-
* - Date constraints (minDate, maxDate, any/past only/future only)
|
|
9
|
-
* - Relative bounds via minDateField / maxDateField (e.g. end date >= start date)
|
|
10
|
-
* - Required vs optional
|
|
11
|
-
* - Input method (date picker / manual / hybrid)
|
|
12
|
-
* - Placeholder text
|
|
13
|
-
* - Read-only & disabled
|
|
14
|
-
* - Canonical stored format (ISO 8601)
|
|
15
|
-
*
|
|
16
|
-
* Usage in schema:
|
|
17
|
-
* {
|
|
18
|
-
* "widget": "date",
|
|
19
|
-
* "widget-type": "input",
|
|
20
|
-
* "widget-label": "Date of Birth",
|
|
21
|
-
* "widget-id": "dob",
|
|
22
|
-
* "widget-data-path": "person.dob",
|
|
23
|
-
* "widget-data-default": "today",
|
|
24
|
-
* "widget-data-format": {
|
|
25
|
-
* "dateFormat": "DD/MM/YYYY",
|
|
26
|
-
* "inputMethod": "hybrid",
|
|
27
|
-
* "dateConstraint": "past-only"
|
|
28
|
-
* },
|
|
29
|
-
* "widget-data-options": {
|
|
30
|
-
* "minDate": "1900-01-01",
|
|
31
|
-
* "maxDate": "today"
|
|
32
|
-
* "minDateField": "register.start_date",
|
|
33
|
-
* "minDateMessage": "Date of birth must be on or after 1900-01-01"
|
|
34
|
-
* "maxDateField": "register.end_date",
|
|
35
|
-
* "maxDateMessage": "Date of birth must be on or before today"
|
|
36
|
-
* },
|
|
37
|
-
* "widget-data-validation": {},
|
|
38
|
-
* "widget-required": true,
|
|
39
|
-
* "widget-data-placeholder": "DD/MM/YYYY"
|
|
40
|
-
* }
|
|
41
|
-
*/
|
|
42
2
|
interface DateInputWidgetProps {
|
|
43
3
|
config: BaseWidgetConfig;
|
|
44
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DateInputWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DateInputWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAiB5C,UAAU,oBAAoB;IAC5B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,GAAI,YAAY,oBAAoB,4CA8S/D,CAAC"}
|
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* DateTime input widget with advanced features
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Configurable datetime format (DD/MM/YYYY HH:mm, MM/DD/YYYY HH:mm:ss, etc.)
|
|
7
|
-
* - Default value (none / now)
|
|
8
|
-
* - DateTime constraints (minDateTime, maxDateTime, any/past only/future only)
|
|
9
|
-
* - Required vs optional
|
|
10
|
-
* - Input method (datetime picker / manual / hybrid)
|
|
11
|
-
* - Placeholder text
|
|
12
|
-
* - Read-only & disabled
|
|
13
|
-
* - Canonical stored format (ISO 8601 with time)
|
|
14
|
-
*
|
|
15
|
-
* Usage in schema:
|
|
16
|
-
* {
|
|
17
|
-
* "widget": "datetime",
|
|
18
|
-
* "widget-type": "input",
|
|
19
|
-
* "widget-label": "Appointment Time",
|
|
20
|
-
* "widget-id": "appointment",
|
|
21
|
-
* "widget-data-path": "appointment.datetime",
|
|
22
|
-
* "widget-data-default": "now",
|
|
23
|
-
* "widget-data-format": {
|
|
24
|
-
* "dateTimeFormat": "DD/MM/YYYY HH:mm",
|
|
25
|
-
* "inputMethod": "picker",
|
|
26
|
-
* "dateTimeConstraint": "future-only"
|
|
27
|
-
* },
|
|
28
|
-
* "widget-data-options": {
|
|
29
|
-
* "minDateTime": "2024-01-01T00:00",
|
|
30
|
-
* "maxDateTime": "now"
|
|
31
|
-
* },
|
|
32
|
-
* "widget-data-validation": {},
|
|
33
|
-
* "widget-required": true,
|
|
34
|
-
* "widget-data-placeholder": "DD/MM/YYYY HH:mm"
|
|
35
|
-
* }
|
|
36
|
-
*/
|
|
37
2
|
interface DateTimeInputWidgetProps {
|
|
38
3
|
config: BaseWidgetConfig;
|
|
39
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DateTimeInputWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateTimeInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DateTimeInputWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAa5C,UAAU,wBAAwB;IAChC,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,GAAI,YAAY,wBAAwB,4CAoNvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DialogTableWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DialogTableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DialogTableWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAU5C,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AA0HD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,sBAAsB,4CAilBnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DisplayWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DisplayWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DisplayWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,GAAI,YAAY,kBAAkB,4CA+D3D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseWidgetConfig } from '../types';
|
|
2
|
+
export interface DocSlotConfig {
|
|
3
|
+
'document-key': string;
|
|
4
|
+
'document-label': string;
|
|
5
|
+
'document-required'?: boolean;
|
|
6
|
+
'document-accept': string;
|
|
7
|
+
/** maximum file size in bytes. */
|
|
8
|
+
'document-max-size': number;
|
|
9
|
+
}
|
|
10
|
+
interface DocsWidgetProps {
|
|
11
|
+
config: BaseWidgetConfig;
|
|
12
|
+
}
|
|
13
|
+
export declare const DocsWidget: ({ config }: DocsWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=DocsWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocsWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DocsWidget.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAyB5C,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mCAAmC;IACnC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,eAAe;IACvB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAQD,eAAO,MAAM,UAAU,GAAI,YAAY,eAAe,4CAkNrD,CAAC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* File input widget
|
|
4
|
-
*
|
|
5
|
-
* Usage in schema:
|
|
6
|
-
* {
|
|
7
|
-
* "widget": "file",
|
|
8
|
-
* "widget-type": "input",
|
|
9
|
-
* "widget-label": "Upload Document",
|
|
10
|
-
* "widget-id": "document",
|
|
11
|
-
* "widget-data-path": "form.document",
|
|
12
|
-
* "widget-data-options": {
|
|
13
|
-
* "accept": ".pdf,.doc,.docx",
|
|
14
|
-
* "multiple": false,
|
|
15
|
-
* "maxSize": 5242880 // 5MB in bytes
|
|
16
|
-
* }
|
|
17
|
-
* }
|
|
18
|
-
*/
|
|
19
2
|
interface FileInputWidgetProps {
|
|
20
3
|
config: BaseWidgetConfig;
|
|
21
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/FileInputWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/FileInputWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO5C,UAAU,oBAAoB;IAC5B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,GAAI,YAAY,oBAAoB,4CAqW/D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseWidgetConfig } from '../types';
|
|
2
|
+
interface GeoHierarchyWidgetProps {
|
|
3
|
+
config: BaseWidgetConfig;
|
|
4
|
+
}
|
|
5
|
+
export declare const GeoHierarchyWidget: ({ config }: GeoHierarchyWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=GeoHierarchyWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoHierarchyWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/GeoHierarchyWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C,UAAU,uBAAuB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AA8ID,eAAO,MAAM,kBAAkB,GAAI,YAAY,uBAAuB,4CAyGrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSectionWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/HeaderSectionWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderSectionWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/HeaderSectionWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAc,MAAM,UAAU,CAAC;AAkBxD,UAAU,wBAAwB;IAChC,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AA4FD,eAAO,MAAM,mBAAmB,GAAI,YAAY,wBAAwB,4CA8rBvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdAuthenticationWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/IdAuthenticationWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"IdAuthenticationWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/IdAuthenticationWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAwD5C,UAAU,2BAA2B;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAuHD,eAAO,MAAM,sBAAsB,GAAI,wCAAwC,2BAA2B,4CA+hBzG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/MultiSelectWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiSelectWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/MultiSelectWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAY5C,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,iBAAiB,GAAI,YAAY,sBAAsB,4CAmhBnE,CAAC"}
|
|
@@ -1,46 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Number input widget with advanced numeric features
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Numeric type (integer/decimal, signed/unsigned)
|
|
7
|
-
* - Decimal precision control (0-6 places, rounding/truncation)
|
|
8
|
-
* - Value range validation (min/max)
|
|
9
|
-
* - Regular expression validation with custom messages
|
|
10
|
-
* - Maximum character limit
|
|
11
|
-
* - Default value (numeric, applied when field has no existing data)
|
|
12
|
-
* - Numeric masking and formatting (thousand/decimal separators)
|
|
13
|
-
* - Text alignment (right by default, configurable)
|
|
14
|
-
* - Key input restrictions
|
|
15
|
-
*
|
|
16
|
-
* Usage in schema:
|
|
17
|
-
* {
|
|
18
|
-
* "widget": "number",
|
|
19
|
-
* "widget-type": "input",
|
|
20
|
-
* "widget-label": "Amount",
|
|
21
|
-
* "widget-id": "amount",
|
|
22
|
-
* "widget-data-path": "transaction.amount",
|
|
23
|
-
* "widget-data-format": {
|
|
24
|
-
* "numericType": "decimal",
|
|
25
|
-
* "decimalPlaces": 2,
|
|
26
|
-
* "roundingMode": "round",
|
|
27
|
-
* "thousandSeparator": ",",
|
|
28
|
-
* "decimalSeparator": ".",
|
|
29
|
-
* "textAlign": "right",
|
|
30
|
-
* "allowSigned": true,
|
|
31
|
-
* "formatOnBlur": true
|
|
32
|
-
* },
|
|
33
|
-
* "widget-data-validation": {
|
|
34
|
-
* "min": 0,
|
|
35
|
-
* "max": 10000,
|
|
36
|
-
* "pattern": "^[0-9]+(\\.[0-9]{1,2})?$",
|
|
37
|
-
* "patternMessage": "Invalid number format"
|
|
38
|
-
* },
|
|
39
|
-
* "widget-data-default": 0,
|
|
40
|
-
* "widget-required": true,
|
|
41
|
-
* "widget-data-placeholder": "Enter amount"
|
|
42
|
-
* }
|
|
43
|
-
*/
|
|
44
2
|
interface NumberInputWidgetProps {
|
|
45
3
|
config: BaseWidgetConfig;
|
|
46
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/NumberInputWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/NumberInputWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAW5C,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,iBAAiB,GAAI,YAAY,sBAAsB,4CAuNnE,CAAC"}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Phone input widget with formatting
|
|
4
|
-
*
|
|
5
|
-
* Usage in schema:
|
|
6
|
-
* {
|
|
7
|
-
* "widget": "phone",
|
|
8
|
-
* "widget-type": "input",
|
|
9
|
-
* "widget-label": "Phone",
|
|
10
|
-
* "widget-id": "phone",
|
|
11
|
-
* "widget-data-path": "person.phone",
|
|
12
|
-
* "widget-data-format": {
|
|
13
|
-
* "pattern": "(XXX) XXX-XXXX"
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
*/
|
|
17
2
|
interface PhoneInputWidgetProps {
|
|
18
3
|
config: BaseWidgetConfig;
|
|
19
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/PhoneInputWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PhoneInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/PhoneInputWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C,UAAU,qBAAqB;IAC7B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAAI,YAAY,qBAAqB,4CAsEjE,CAAC"}
|
|
@@ -1,47 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Profile widget for displaying user identity information
|
|
4
|
-
* Displays an image/avatar, display name, and ID in a vertical layout
|
|
5
|
-
*
|
|
6
|
-
* This is a display widget that groups related profile fields together.
|
|
7
|
-
* Recommended widget-type: 'group' (groups related data fields)
|
|
8
|
-
* Alternative: 'layout' (for display-only, no value storage)
|
|
9
|
-
*
|
|
10
|
-
* Configuration (Recommended - Multi-path data binding):
|
|
11
|
-
*
|
|
12
|
-
* - widget-data-path: Object with keys 'image', 'name', 'id' mapping to data paths
|
|
13
|
-
* Example: { "image": "person.photo", "name": "person.name", "id": "person.id" }
|
|
14
|
-
*
|
|
15
|
-
* Alternative (Individual path properties - fallback):
|
|
16
|
-
* - widget-image-path?: string - Data path for the image/photo (e.g., "person.photo")
|
|
17
|
-
* - widget-name-path?: string - Data path for the display name (e.g., "person.name")
|
|
18
|
-
* - widget-id-path?: string - Data path for the ID (e.g., "person.id")
|
|
19
|
-
*
|
|
20
|
-
* Format options:
|
|
21
|
-
* - widget-data-format: Optional format configuration
|
|
22
|
-
* - imageSize?: number - Size of the avatar image in pixels (default: 80)
|
|
23
|
-
* - nameColor?: string - Color for the name text (default: '#F07B1A')
|
|
24
|
-
* - showIdLabel?: boolean - Whether to show "ID :" label (default: true)
|
|
25
|
-
*
|
|
26
|
-
* Example usage (Recommended):
|
|
27
|
-
* ```json
|
|
28
|
-
* {
|
|
29
|
-
* "widget": "profile",
|
|
30
|
-
* "widget-type": "group",
|
|
31
|
-
* "widget-id": "user-profile",
|
|
32
|
-
* "widget-data-path": {
|
|
33
|
-
* "image": "photo",
|
|
34
|
-
* "name": "display_name",
|
|
35
|
-
* "id": "national_id"
|
|
36
|
-
* },
|
|
37
|
-
* "widget-data-format": {
|
|
38
|
-
* "imageSize": 80,
|
|
39
|
-
* "nameColor": "#F07B1A",
|
|
40
|
-
* "showIdLabel": true
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
2
|
interface ProfileWidgetProps {
|
|
46
3
|
config: BaseWidgetConfig;
|
|
47
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ProfileWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ProfileWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAM5C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,GAAI,YAAY,kBAAkB,4CAmN3D,CAAC"}
|
|
@@ -1,41 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Radio button widget with advanced features
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Static list of options
|
|
7
|
-
* - Dynamic options (from API / dataset)
|
|
8
|
-
* - Ordered options (preserve order or sort)
|
|
9
|
-
* - Option label & value separation
|
|
10
|
-
* - Display label
|
|
11
|
-
* - Stored value
|
|
12
|
-
* - Default selection (pre-selected option or unset)
|
|
13
|
-
* - Required vs optional
|
|
14
|
-
* - Layout options (vertical, horizontal, grid)
|
|
15
|
-
*
|
|
16
|
-
* Usage in schema:
|
|
17
|
-
* {
|
|
18
|
-
* "widget": "radio",
|
|
19
|
-
* "widget-type": "input",
|
|
20
|
-
* "widget-label": "Gender",
|
|
21
|
-
* "widget-id": "gender",
|
|
22
|
-
* "widget-data-path": "person.gender",
|
|
23
|
-
* "widget-data-default": "male",
|
|
24
|
-
* "widget-data-source": {
|
|
25
|
-
* "type": "static",
|
|
26
|
-
* "options": [
|
|
27
|
-
* { "value": "male", "label": "Male" },
|
|
28
|
-
* { "value": "female", "label": "Female" },
|
|
29
|
-
* { "value": "other", "label": "Other" }
|
|
30
|
-
* ]
|
|
31
|
-
* },
|
|
32
|
-
* "widget-data-format": {
|
|
33
|
-
* "layout": "vertical",
|
|
34
|
-
* "sortOptions": false
|
|
35
|
-
* },
|
|
36
|
-
* "widget-required": true
|
|
37
|
-
* }
|
|
38
|
-
*/
|
|
39
2
|
interface RadioWidgetProps {
|
|
40
3
|
config: BaseWidgetConfig;
|
|
41
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/RadioWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/RadioWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,UAAU,gBAAgB;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CA6JvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterLookupWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/RegisterLookupWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RegisterLookupWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/RegisterLookupWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA8S5C,eAAO,MAAM,oBAAoB,GAAI,YAAY;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,4CA4X5E,CAAC"}
|
|
@@ -10,17 +10,6 @@ interface ScoresDisplayWidgetProps {
|
|
|
10
10
|
config: BaseWidgetConfig;
|
|
11
11
|
schemaData?: Record<string, unknown>;
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
14
|
-
* Scores Display Widget - full-width, view-only widget (list)
|
|
15
|
-
*
|
|
16
|
-
* Expected config (reference):
|
|
17
|
-
* {
|
|
18
|
-
* "widget": "scores-display",
|
|
19
|
-
* "widget-type": "group",
|
|
20
|
-
* "widget-id": "record-scores",
|
|
21
|
-
* "widget-data-path": "scores"
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
13
|
export declare const ScoresDisplayWidget: ({ config, schemaData: propSchemaData, }: ScoresDisplayWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
14
|
export {};
|
|
26
15
|
//# sourceMappingURL=ScoresDisplayWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoresDisplayWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ScoresDisplayWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ScoresDisplayWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ScoresDisplayWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAM5C,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,UAAU,wBAAwB;IAChC,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AA0CD,eAAO,MAAM,mBAAmB,GAAI,yCAGjC,wBAAwB,4CA+K1B,CAAC"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Select/Dropdown widget with data source support
|
|
4
|
-
*
|
|
5
|
-
* Usage in schema:
|
|
6
|
-
* {
|
|
7
|
-
* "widget": "select",
|
|
8
|
-
* "widget-type": "input",
|
|
9
|
-
* "widget-label": "Country",
|
|
10
|
-
* "widget-id": "country",
|
|
11
|
-
* "widget-data-path": "address.country",
|
|
12
|
-
* "widget-data-source": {
|
|
13
|
-
* "type": "static" | "api" | "schema",
|
|
14
|
-
* ...
|
|
15
|
-
* }
|
|
16
|
-
* }
|
|
17
|
-
*/
|
|
18
2
|
interface SelectWidgetProps {
|
|
19
3
|
config: BaseWidgetConfig;
|
|
20
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/SelectWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/SelectWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C,UAAU,iBAAiB;IACzB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,iBAAiB,4CAmFzD,CAAC"}
|
|
@@ -1,43 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Table widget with record-level inline editing
|
|
4
|
-
*
|
|
5
|
-
* Usage in schema:
|
|
6
|
-
* {
|
|
7
|
-
* "widget": "table",
|
|
8
|
-
* "widget-type": "table",
|
|
9
|
-
* "widget-label": "Education History",
|
|
10
|
-
* "widget-id": "educationHistory",
|
|
11
|
-
* "widget-data-path": "education.history",
|
|
12
|
-
* "widget-data-columns": [
|
|
13
|
-
* {
|
|
14
|
-
* "column-key": "degree",
|
|
15
|
-
* "widget-label": "Degree",
|
|
16
|
-
* "widget": "text",
|
|
17
|
-
* "widget-type": "input",
|
|
18
|
-
* "widget-data-path": "degree",
|
|
19
|
-
* "widget-data-format": {...}
|
|
20
|
-
* },
|
|
21
|
-
* {
|
|
22
|
-
* "column-key": "year",
|
|
23
|
-
* "widget-label": "Year",
|
|
24
|
-
* "widget": "number",
|
|
25
|
-
* "widget-type": "input",
|
|
26
|
-
* "widget-data-path": "year"
|
|
27
|
-
* }
|
|
28
|
-
* ],
|
|
29
|
-
* "widget-data-operations": {
|
|
30
|
-
* "add": true,
|
|
31
|
-
* "remove": true,
|
|
32
|
-
* "edit": true
|
|
33
|
-
* },
|
|
34
|
-
* "widget-data-api": {
|
|
35
|
-
* "add": { "url": "/api/records", "method": "POST" },
|
|
36
|
-
* "edit": { "url": "/api/records/{id}", "method": "PUT" },
|
|
37
|
-
* "delete": { "url": "/api/records/{id}", "method": "DELETE" }
|
|
38
|
-
* }
|
|
39
|
-
* }
|
|
40
|
-
*/
|
|
41
2
|
interface TableWidgetProps {
|
|
42
3
|
config: BaseWidgetConfig;
|
|
43
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/TableWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/TableWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAyY5C,UAAU,gBAAgB;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAeD,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CAwzBvD,CAAC"}
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
import { BaseWidgetConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* TextArea widget for multi-line text input
|
|
4
|
-
* Supports 2 rows by default with configurable rows
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Multi-line text input
|
|
8
|
-
* - Character type filtering (any, alphabetic, alphanumeric, numeric, etc.)
|
|
9
|
-
* - Case control (none, lowercase, uppercase, capitalize)
|
|
10
|
-
* - Length constraints with live character counter
|
|
11
|
-
* - Regular expression validation with custom messages
|
|
12
|
-
* - Placeholder text with i18n support
|
|
13
|
-
*
|
|
14
|
-
* Usage in schema:
|
|
15
|
-
* {
|
|
16
|
-
* "widget": "textarea",
|
|
17
|
-
* "widget-type": "input",
|
|
18
|
-
* "widget-label": "Description",
|
|
19
|
-
* "widget-id": "description",
|
|
20
|
-
* "widget-data-path": "person.description",
|
|
21
|
-
* "widget-data-format": {
|
|
22
|
-
* "characterType": "any",
|
|
23
|
-
* "caseControl": "none",
|
|
24
|
-
* "showCharCounter": true,
|
|
25
|
-
* "rows": 2
|
|
26
|
-
* },
|
|
27
|
-
* "widget-data-validation": {
|
|
28
|
-
* "minLength": 10,
|
|
29
|
-
* "maxLength": 500
|
|
30
|
-
* },
|
|
31
|
-
* "widget-required": true,
|
|
32
|
-
* "widget-data-placeholder": "Enter description"
|
|
33
|
-
* }
|
|
34
|
-
*/
|
|
35
2
|
interface TextAreaWidgetProps {
|
|
36
3
|
config: BaseWidgetConfig;
|
|
37
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAreaWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/TextAreaWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextAreaWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/TextAreaWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C,UAAU,mBAAmB;IAC3B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,GAAI,YAAY,mBAAmB,4CAwJ7D,CAAC"}
|