@openg2p/registry-widgets 1.1.6-dev.3 → 1.1.6-dev.4

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 CHANGED
@@ -61,7 +61,7 @@ Input: `text`, `textarea`, `number`, `boolean`, `date`, `datetime`, `select`, `r
61
61
 
62
62
  Collections: `table`, `dialog-table`.
63
63
 
64
- Special: `profile`, `header-section`, `scores-display`, `id-authentication`, `register-lookup`.
64
+ Special: `profile`, `header-section`, `scores-display`, `id-authentication`, `register-lookup`, `parent-lookup`.
65
65
 
66
66
  Custom widgets can be registered via `widgetRegistry`.
67
67
 
@@ -2,7 +2,7 @@
2
2
  * JSON Schema definitions for Section Builder validation
3
3
  * These schemas are used by json-edit-react to provide validation and constraints
4
4
  */
5
- export declare const WIDGET_TYPES: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
5
+ export declare const WIDGET_TYPES: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
6
6
  export declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
7
7
  export declare const CONDITION_OPERATORS: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
8
8
  export declare const DATA_SOURCE_TYPES: readonly ["static", "api", "schema"];
@@ -47,7 +47,7 @@ export declare const panelSchema: {
47
47
  properties: {
48
48
  widget: {
49
49
  type: "string";
50
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
50
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
51
51
  description: string;
52
52
  };
53
53
  'widget-type': {
@@ -578,7 +578,7 @@ export declare const panelSchema: {
578
578
  properties: {
579
579
  widget: {
580
580
  type: "string";
581
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
581
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
582
582
  description: string;
583
583
  };
584
584
  'widget-type': {
@@ -1172,7 +1172,7 @@ export declare const sectionSchema: {
1172
1172
  properties: {
1173
1173
  widget: {
1174
1174
  type: "string";
1175
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
1175
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
1176
1176
  description: string;
1177
1177
  };
1178
1178
  'widget-type': {
@@ -1703,7 +1703,7 @@ export declare const sectionSchema: {
1703
1703
  properties: {
1704
1704
  widget: {
1705
1705
  type: "string";
1706
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
1706
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
1707
1707
  description: string;
1708
1708
  };
1709
1709
  'widget-type': {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,wKAgBf,CAAC;AAEX,eAAO,MAAM,YAAY,qCAAsC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,6GAStB,CAAC;AAEX,eAAO,MAAM,iBAAiB,sCAAuC,CAAC;AAEtE,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,GAAG,CAWhF"}
@@ -6,6 +6,7 @@ export interface WidgetProviderProps {
6
6
  store?: WidgetStore;
7
7
  dataSourceRequestHandler?: DataSourceRequestHandler;
8
8
  schemaData?: Record<string, any>;
9
+ hostContext?: Record<string, string | undefined>;
9
10
  t?: (key: string, options?: any) => string;
10
11
  theme?: WidgetTheme;
11
12
  children: ReactNode;
@@ -13,7 +14,8 @@ export interface WidgetProviderProps {
13
14
  export declare const useWidgetContext: () => {
14
15
  dataSourceRequestHandler?: DataSourceRequestHandler;
15
16
  schemaData?: Record<string, any>;
17
+ hostContext?: Record<string, string | undefined>;
16
18
  t?: (key: string, options?: any) => string;
17
19
  };
18
- export declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, t, theme, children, }: WidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, hostContext, t, theme, children, }: WidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
19
21
  //# sourceMappingURL=WidgetProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetProvider.d.ts","sourceRoot":"","sources":["../../src/components/WidgetProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI1D,OAAO,EAAE,WAAW,EAAqC,MAAM,UAAU,CAAC;AAG1E,MAAM,WAAW,mBAAmB;IAClC,KAA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E,SAAS,CAAC;CACrB;AAcD,eAAO,MAAM,gBAAgB;+BAXA,wBAAwB;iBACtC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;kBAClB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5C,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM;CAU3C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mFAQ5B,mBAAmB,4CAoDrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useBaseWidget.d.ts","sourceRoot":"","sources":["../../src/hooks/useBaseWidget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAiBtE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACxD;AAKD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;;yBAqJ5C,GAAG,aAAY,OAAO;;uBA4Rd,MAAM,EAAE;;;;;;;0BA1LpB,MAAM;;;CA+LhB,CAAC"}
1
+ {"version":3,"file":"useBaseWidget.d.ts","sourceRoot":"","sources":["../../src/hooks/useBaseWidget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAiBtE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACxD;AAKD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;;yBAqJ5C,GAAG,aAAY,OAAO;;uBA6Rd,MAAM,EAAE;;;;;;;0BA1LpB,MAAM;;;CA+LhB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -463,6 +463,7 @@ interface WidgetProviderProps {
463
463
  store?: WidgetStore;
464
464
  dataSourceRequestHandler?: DataSourceRequestHandler;
465
465
  schemaData?: Record<string, any>;
466
+ hostContext?: Record<string, string | undefined>;
466
467
  t?: (key: string, options?: any) => string;
467
468
  theme?: WidgetTheme;
468
469
  children: ReactNode;
@@ -470,9 +471,10 @@ interface WidgetProviderProps {
470
471
  declare const useWidgetContext: () => {
471
472
  dataSourceRequestHandler?: DataSourceRequestHandler;
472
473
  schemaData?: Record<string, any>;
474
+ hostContext?: Record<string, string | undefined>;
473
475
  t?: (key: string, options?: any) => string;
474
476
  };
475
- declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, t, theme, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
477
+ declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, hostContext, t, theme, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
476
478
 
477
479
  interface PanelRendererProps {
478
480
  panel: PanelConfig;
@@ -732,6 +734,17 @@ declare const RegisterLookupWidget: ({ config }: {
732
734
  config: BaseWidgetConfig;
733
735
  }) => react_jsx_runtime.JSX.Element;
734
736
 
737
+ declare const ParentLookupWidget: ({ config, value: valueProp, error: errorProp, touched: touchedProp, isEnabled: isEnabledProp, isRequired: isRequiredProp, onChange: onChangeProp, onBlur: onBlurProp, }: {
738
+ config: BaseWidgetConfig;
739
+ value?: any;
740
+ error?: string[];
741
+ touched?: boolean;
742
+ isEnabled?: boolean;
743
+ isRequired?: boolean;
744
+ onChange?: (value: any, validate?: boolean) => void;
745
+ onBlur?: () => void;
746
+ }) => react_jsx_runtime.JSX.Element;
747
+
735
748
  interface MultiSelectWidgetProps {
736
749
  config: BaseWidgetConfig;
737
750
  }
@@ -859,5 +872,5 @@ declare const translateWidgetConfig: (widgetConfig: BaseWidgetConfig, translate:
859
872
  declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string, options?: any) => string) => PanelConfig;
860
873
  declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
861
874
 
862
- export { BooleanWidget, CheckboxWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, DocsWidget, FileInputWidget, GeoHierarchyWidget, HeaderSectionWidget, IdAuthenticationWidget, JSONEditorPanel, MultiSelectWidget, NumberInputWidget, PanelRenderer, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, RegisterLookupWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, defaultTheme, evaluateCondition, evaluateWidgetConditions, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, getApiDataSource, getCachedApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, hasVisibilityRules, isAllowedKey, isGeoHierarchyDataSource, normalizeNumericDefault, normalizeOptionRules, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, resolveTheme, resolveWidgetIdValue, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldRequireWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, validateNumericValue, validateWidget, widgetRegistry };
875
+ export { BooleanWidget, CheckboxWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, DocsWidget, FileInputWidget, GeoHierarchyWidget, HeaderSectionWidget, IdAuthenticationWidget, JSONEditorPanel, MultiSelectWidget, NumberInputWidget, PanelRenderer, ParentLookupWidget, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, RegisterLookupWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, defaultTheme, evaluateCondition, evaluateWidgetConditions, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, getApiDataSource, getCachedApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, hasVisibilityRules, isAllowedKey, isGeoHierarchyDataSource, normalizeNumericDefault, normalizeOptionRules, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, resolveTheme, resolveWidgetIdValue, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldRequireWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, validateNumericValue, validateWidget, widgetRegistry };
863
876
  export type { ApiAdapter, ApiDataSource$1 as ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, DocsWidgetDocumentConfig, GeoHierarchyDataPath, GeoHierarchyDataSource, GeoHierarchyLayout, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionRendererProps, SectionsContainerProps, SectionsFormHandle, StaticDataSource, SupportingDocumentConfig, TextAlign, TreeNode, TreeNodeType, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCascadeConfig, WidgetCondition, WidgetConditionState, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetEvent, WidgetEventType, WidgetFormat, WidgetOptionRule, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetTheme, WidgetThemeButton, WidgetThemeColors, WidgetThemePanel, WidgetThemeSection, WidgetThemeWidget, WidgetValidation, WidgetValue };