@openg2p/registry-widgets 0.1.0 → 0.1.2

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.
Files changed (54) hide show
  1. package/dist/components/PanelRenderer.d.ts +3 -3
  2. package/dist/components/PanelRenderer.d.ts.map +1 -1
  3. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +15 -0
  4. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -0
  5. package/dist/components/SectionBuilder/PropertyEditor.d.ts +15 -0
  6. package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -0
  7. package/dist/components/SectionBuilder/SectionBuilder.d.ts +13 -0
  8. package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -0
  9. package/dist/components/SectionBuilder/SectionTree.d.ts +26 -0
  10. package/dist/components/SectionBuilder/SectionTree.d.ts.map +1 -0
  11. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +22 -0
  12. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -0
  13. package/dist/components/SectionBuilder/index.d.ts +9 -0
  14. package/dist/components/SectionBuilder/index.d.ts.map +1 -0
  15. package/dist/components/SectionBuilder/schemas.d.ts +1947 -0
  16. package/dist/components/SectionBuilder/schemas.d.ts.map +1 -0
  17. package/dist/components/SectionRenderer.d.ts +5 -5
  18. package/dist/components/SectionRenderer.d.ts.map +1 -1
  19. package/dist/components/SectionsContainer.d.ts +4 -3
  20. package/dist/components/SectionsContainer.d.ts.map +1 -1
  21. package/dist/components/WidgetProvider.d.ts +4 -4
  22. package/dist/components/WidgetProvider.d.ts.map +1 -1
  23. package/dist/components/WidgetRenderer.d.ts +1 -1
  24. package/dist/components/WidgetRenderer.d.ts.map +1 -1
  25. package/dist/events/WidgetEventBus.d.ts +43 -0
  26. package/dist/events/WidgetEventBus.d.ts.map +1 -0
  27. package/dist/events/types.d.ts +27 -0
  28. package/dist/events/types.d.ts.map +1 -0
  29. package/dist/hooks/useBaseWidget.d.ts +2 -2
  30. package/dist/hooks/useBaseWidget.d.ts.map +1 -1
  31. package/dist/hooks/useGeoWidgetCascade.d.ts +12 -0
  32. package/dist/hooks/useGeoWidgetCascade.d.ts.map +1 -0
  33. package/dist/hooks/useWidgetCascade.d.ts +12 -0
  34. package/dist/hooks/useWidgetCascade.d.ts.map +1 -0
  35. package/dist/hooks/useWidgetEventBus.d.ts +9 -0
  36. package/dist/hooks/useWidgetEventBus.d.ts.map +1 -0
  37. package/dist/index.d.ts +253 -20
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.esm.js +3154 -336
  40. package/dist/index.esm.js.map +1 -1
  41. package/dist/index.js +3162 -334
  42. package/dist/index.js.map +1 -1
  43. package/dist/store/widgetSlice.d.ts.map +1 -1
  44. package/dist/types/index.d.ts +38 -3
  45. package/dist/types/index.d.ts.map +1 -1
  46. package/dist/utils/dataSource.d.ts +3 -2
  47. package/dist/utils/dataSource.d.ts.map +1 -1
  48. package/dist/utils/geoHierarchy.d.ts +53 -0
  49. package/dist/utils/geoHierarchy.d.ts.map +1 -0
  50. package/dist/utils/schemaNamespace.d.ts +12 -0
  51. package/dist/utils/schemaNamespace.d.ts.map +1 -0
  52. package/dist/widgets/SelectWidget.d.ts.map +1 -1
  53. package/dist/widgets/TableWidget.d.ts.map +1 -1
  54. package/package.json +20 -12
package/dist/index.d.ts CHANGED
@@ -26,18 +26,31 @@ interface StaticDataSource {
26
26
  label: string;
27
27
  }>;
28
28
  }
29
+ /**
30
+ * Data source request handler - called by widgets to request data from host application
31
+ * Host application handles all API calls, formatting, CORS, auth, etc.
32
+ */
33
+ type DataSourceRequestHandler = (service: string, // Service mnemonic (e.g., "master-data", "geo-service")
34
+ endpoint: string, // Endpoint/operation name (e.g., "get_g2p_geo_level_values", "get_g2p_programs")
35
+ method: string, // HTTP method ("GET", "POST", etc.)
36
+ params: Record<string, any>, // Request parameters (level_id, parent_level_value_id, etc.)
37
+ options?: {
38
+ headers?: Record<string, string>;
39
+ }) => Promise<any>;
29
40
  /**
30
41
  * API data source configuration
31
42
  */
32
43
  interface ApiDataSource {
33
44
  type: 'api';
34
- url: string;
45
+ service: string;
46
+ endpoint: string;
35
47
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
36
48
  dependsOn?: string;
37
49
  valueKey?: string;
38
50
  labelKey?: string;
39
- headers?: Record<string, string>;
40
- body?: Record<string, any>;
51
+ params?: Record<string, any>;
52
+ [key: string]: any;
53
+ url?: string;
41
54
  }
42
55
  /**
43
56
  * Schema reference data source configuration
@@ -163,6 +176,26 @@ interface WidgetOptions {
163
176
  showCalendar?: boolean;
164
177
  [key: string]: any;
165
178
  }
179
+ /**
180
+ * Widget cascade configuration
181
+ */
182
+ interface WidgetCascadeConfig {
183
+ listenTo: string[];
184
+ onEvent?: 'widget:change' | 'widget:blur' | 'widget:focus' | 'widget:reload' | 'widget:clear';
185
+ clearOnChange?: boolean;
186
+ reloadOnChange?: boolean;
187
+ debounce?: number;
188
+ throttle?: number;
189
+ }
190
+ /**
191
+ * Widget geo configuration
192
+ */
193
+ interface WidgetGeoConfig {
194
+ level: string;
195
+ isLastLevel: boolean;
196
+ parentWidgetId: string | null;
197
+ levelMnemonic?: string;
198
+ }
166
199
  /**
167
200
  * Base widget configuration
168
201
  */
@@ -183,6 +216,8 @@ interface BaseWidgetConfig {
183
216
  'widget-data-placeholder'?: string;
184
217
  'widget-data-helptext'?: string;
185
218
  'widget-data-tooltip'?: string;
219
+ 'widget-cascade'?: WidgetCascadeConfig;
220
+ 'widget-geo-config'?: WidgetGeoConfig;
186
221
  widgets?: BaseWidgetConfig[];
187
222
  'widget-item'?: BaseWidgetConfig;
188
223
  'widget-data-columns'?: Array<{
@@ -337,7 +372,7 @@ declare const resetAll: _reduxjs_toolkit.ActionCreatorWithoutPayload<"widget/res
337
372
 
338
373
  interface UseBaseWidgetOptions {
339
374
  config: BaseWidgetConfig;
340
- apiAdapter?: ApiAdapter;
375
+ dataSourceRequestHandler?: DataSourceRequestHandler;
341
376
  schemaData?: Record<string, any>;
342
377
  onValueChange?: (widgetId: string, value: any) => void;
343
378
  }
@@ -364,29 +399,98 @@ declare const useBaseWidget: (options: UseBaseWidgetOptions) => {
364
399
  config: BaseWidgetConfig;
365
400
  };
366
401
 
402
+ /**
403
+ * Widget Event Bus
404
+ * Provides a publish/subscribe mechanism for widget communication
405
+ * Supports debounce and throttle for performance optimization
406
+ */
407
+ type WidgetEventType = 'widget:change' | 'widget:blur' | 'widget:focus' | 'widget:reload' | 'widget:clear';
408
+ interface WidgetEvent {
409
+ type: WidgetEventType;
410
+ widgetId: string;
411
+ value?: any;
412
+ timestamp: number;
413
+ }
414
+ type EventHandler = (event: WidgetEvent) => void | Promise<void>;
415
+ declare class WidgetEventBus {
416
+ private subscriptions;
417
+ private throttleTimers;
418
+ /**
419
+ * Subscribe to an event type
420
+ * @param eventType The type of event to listen to
421
+ * @param handler The handler function
422
+ * @param options Debounce/throttle options
423
+ * @returns Unsubscribe function
424
+ */
425
+ subscribe(eventType: WidgetEventType, handler: EventHandler, options?: {
426
+ debounce?: number;
427
+ throttle?: number;
428
+ }): () => void;
429
+ /**
430
+ * Publish an event
431
+ * @param event The event to publish
432
+ */
433
+ publish(event: WidgetEvent): void;
434
+ /**
435
+ * Execute handler with debounce/throttle support
436
+ */
437
+ private executeHandler;
438
+ /**
439
+ * Clear all subscriptions
440
+ */
441
+ clear(): void;
442
+ }
443
+
444
+ /**
445
+ * Hook to access the widget event bus from context
446
+ */
447
+ declare const useWidgetEventBus: () => WidgetEventBus | null;
448
+
449
+ interface UseWidgetCascadeOptions {
450
+ config: BaseWidgetConfig;
451
+ dataSourceRequestHandler?: DataSourceRequestHandler;
452
+ values: Record<string, any>;
453
+ }
454
+ /**
455
+ * Hook for general widget cascade functionality
456
+ * Handles listening to parent widget changes and reloading data sources
457
+ */
458
+ declare const useWidgetCascade: (options: UseWidgetCascadeOptions) => void;
459
+
460
+ interface UseGeoWidgetCascadeOptions {
461
+ config: BaseWidgetConfig;
462
+ dataSourceRequestHandler?: DataSourceRequestHandler;
463
+ values: Record<string, any>;
464
+ }
465
+ /**
466
+ * Hook for geo widget cascade functionality
467
+ * Handles geo hierarchy building and cascade behavior
468
+ */
469
+ declare const useGeoWidgetCascade: (options: UseGeoWidgetCascadeOptions) => void;
470
+
367
471
  interface WidgetRendererProps extends Omit<UseBaseWidgetOptions, 'config'> {
368
472
  config: BaseWidgetConfig;
369
473
  defaultComponent?: React$1.ComponentType<any>;
370
474
  }
371
- declare const WidgetRenderer: ({ config, apiAdapter: propApiAdapter, schemaData: propSchemaData, onValueChange, defaultComponent, }: WidgetRendererProps) => react_jsx_runtime.JSX.Element | null;
475
+ declare const WidgetRenderer: ({ config, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData: propSchemaData, onValueChange, defaultComponent, }: WidgetRendererProps) => react_jsx_runtime.JSX.Element | null;
372
476
 
373
477
  interface WidgetProviderProps {
374
478
  store?: WidgetStore;
375
- apiAdapter?: ApiAdapter;
479
+ dataSourceRequestHandler?: DataSourceRequestHandler;
376
480
  schemaData?: Record<string, any>;
377
481
  translate?: (key: string, options?: any) => string;
378
482
  children: ReactNode;
379
483
  }
380
484
  declare const useWidgetContext: () => {
381
- apiAdapter?: ApiAdapter;
485
+ dataSourceRequestHandler?: DataSourceRequestHandler;
382
486
  schemaData?: Record<string, any>;
383
487
  translate?: (key: string, options?: any) => string;
384
488
  };
385
- declare const WidgetProvider: ({ store, apiAdapter, schemaData, translate, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
489
+ declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, translate, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
386
490
 
387
491
  interface PanelRendererProps {
388
492
  panel: PanelConfig;
389
- apiAdapter?: UseBaseWidgetOptions['apiAdapter'];
493
+ dataSourceRequestHandler?: DataSourceRequestHandler;
390
494
  schemaData?: UseBaseWidgetOptions['schemaData'];
391
495
  onValueChange?: UseBaseWidgetOptions['onValueChange'];
392
496
  isEditMode?: boolean;
@@ -398,18 +502,19 @@ interface PanelRendererProps {
398
502
  * - Nested panels (for layout composition)
399
503
  * - Widgets (for actual form inputs/controls)
400
504
  */
401
- declare const PanelRenderer: ({ panel, apiAdapter, schemaData, onValueChange, isEditMode, }: PanelRendererProps) => react_jsx_runtime.JSX.Element;
505
+ declare const PanelRenderer: ({ panel, dataSourceRequestHandler, schemaData, onValueChange, isEditMode, }: PanelRendererProps) => react_jsx_runtime.JSX.Element;
402
506
 
403
507
  type SectionMode = 'RegistryView' | 'CRView';
404
508
  interface SectionsContainerProps {
405
509
  sections: SectionConfig[];
406
- apiAdapter?: UseBaseWidgetOptions['apiAdapter'];
510
+ dataSourceRequestHandler?: DataSourceRequestHandler;
407
511
  schemaData?: UseBaseWidgetOptions['schemaData'];
408
512
  onValueChange?: UseBaseWidgetOptions['onValueChange'];
409
513
  className?: string;
410
514
  onSectionSave?: (changes: SectionChanges) => Promise<void> | void;
411
515
  hideEditButton?: boolean;
412
516
  mode?: SectionMode;
517
+ namespace?: string | ((sectionId: string, index: number) => string);
413
518
  }
414
519
  /**
415
520
  * Container component that renders multiple sections
@@ -421,23 +526,23 @@ interface SectionsContainerProps {
421
526
  * - All sections align to the same grid, ensuring right-side alignment
422
527
  * - Handles nested structure: multiple horizontal panels, each with multiple vertical panels
423
528
  */
424
- declare const SectionsContainer: ({ sections, apiAdapter, schemaData, onValueChange, className, onSectionSave, hideEditButton, mode, }: SectionsContainerProps) => react_jsx_runtime.JSX.Element;
529
+ declare const SectionsContainer: ({ sections, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, className, onSectionSave, hideEditButton, mode, namespace, }: SectionsContainerProps) => react_jsx_runtime.JSX.Element;
425
530
 
426
531
  interface SectionChanges {
427
532
  section_id: string;
428
- section_schema: SectionConfig;
429
- old_section_value: unknown;
430
- new_section_value: unknown;
533
+ records: unknown[];
534
+ files?: unknown[];
431
535
  }
432
536
  interface SectionRendererProps {
433
537
  section: SectionConfig;
434
- apiAdapter?: UseBaseWidgetOptions['apiAdapter'];
538
+ dataSourceRequestHandler?: UseBaseWidgetOptions['dataSourceRequestHandler'];
435
539
  schemaData?: UseBaseWidgetOptions['schemaData'];
436
540
  onValueChange?: UseBaseWidgetOptions['onValueChange'];
437
541
  gridColumnSpan?: number;
438
542
  onSectionSave?: (changes: SectionChanges) => Promise<void> | void;
439
543
  hideEditButton?: boolean;
440
544
  mode?: SectionMode;
545
+ namespace?: string;
441
546
  }
442
547
  /**
443
548
  * Renders a section with its panels
@@ -447,7 +552,82 @@ interface SectionRendererProps {
447
552
  * - Panels wrap when they exceed available width
448
553
  * - Sections can sit side-by-side if there's space
449
554
  */
450
- declare const SectionRenderer: ({ section, apiAdapter, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, }: SectionRendererProps) => react_jsx_runtime.JSX.Element;
555
+ declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, namespace, }: SectionRendererProps) => react_jsx_runtime.JSX.Element;
556
+
557
+ interface SectionBuilderProps {
558
+ initialSection?: SectionConfig;
559
+ onChange?: (section: SectionConfig) => void;
560
+ onSave?: (section: SectionConfig) => void;
561
+ }
562
+ /**
563
+ * Main Section Builder Component
564
+ * Provides dual-panel interface for editing section JSON
565
+ */
566
+ declare const SectionBuilder: React$1.FC<SectionBuilderProps>;
567
+
568
+ interface JSONEditorPanelProps {
569
+ section: SectionConfig;
570
+ onChange: (section: SectionConfig) => void;
571
+ onReset?: () => void;
572
+ onSelectNode?: (nodeId: string, nodeType: 'section' | 'panel' | 'widget') => void;
573
+ context?: 'section' | 'panel' | 'widget';
574
+ }
575
+ /**
576
+ * JSON Editor Panel - Left side of Section Builder
577
+ */
578
+ declare const JSONEditorPanel: React$1.FC<JSONEditorPanelProps>;
579
+
580
+ type TreeNodeType = 'section' | 'panel' | 'widget';
581
+ interface TreeNode {
582
+ type: TreeNodeType;
583
+ id: string;
584
+ label: string;
585
+ data: SectionConfig | PanelConfig | BaseWidgetConfig;
586
+ children?: TreeNode[];
587
+ parent?: TreeNode;
588
+ }
589
+ interface SectionTreeProps {
590
+ section: SectionConfig;
591
+ selectedNode?: TreeNode | null;
592
+ onSelectNode: (node: TreeNode | null) => void;
593
+ onAddPanel: (parentId: string, parentType: TreeNodeType) => void;
594
+ onAddWidget: (parentId: string) => void;
595
+ onDeleteNode: (node: TreeNode) => void;
596
+ onDuplicateNode: (node: TreeNode) => void;
597
+ }
598
+ /**
599
+ * Tree view component for section structure
600
+ */
601
+ declare const SectionTree: React$1.FC<SectionTreeProps>;
602
+
603
+ interface VisualBuilderPanelProps {
604
+ section: SectionConfig;
605
+ selectedNode: TreeNode | null;
606
+ onSelectNode: (node: TreeNode | null) => void;
607
+ onSectionChange: (section: SectionConfig) => void;
608
+ onAddPanel: (parentId: string, parentType: 'section' | 'panel' | 'widget') => void;
609
+ onAddWidget: (parentId: string) => void;
610
+ onDeleteNode: (node: TreeNode) => void;
611
+ onDuplicateNode: (node: TreeNode) => void;
612
+ onSave?: (section: SectionConfig) => void;
613
+ isMaximized?: boolean;
614
+ onToggleMaximize?: () => void;
615
+ }
616
+ /**
617
+ * Visual Builder Panel - Right side of Section Builder
618
+ */
619
+ declare const VisualBuilderPanel: React$1.FC<VisualBuilderPanelProps>;
620
+
621
+ interface PropertyEditorProps {
622
+ node: TreeNode | null;
623
+ onChange: (node: TreeNode, updates: Partial<SectionConfig | PanelConfig | BaseWidgetConfig>) => void;
624
+ onDelete: (node: TreeNode) => void;
625
+ onDuplicate: (node: TreeNode) => void;
626
+ }
627
+ /**
628
+ * Property editor component for editing selected node properties
629
+ */
630
+ declare const PropertyEditor: React$1.FC<PropertyEditorProps>;
451
631
 
452
632
  /**
453
633
  * Register all default/generic widgets
@@ -1177,10 +1357,11 @@ declare const getStaticDataSource: (dataSource: Extract<DataSource, {
1177
1357
  }>) => any[];
1178
1358
  /**
1179
1359
  * Get API data source options
1360
+ * Uses dataSourceRequestHandler to make API calls through host application
1180
1361
  */
1181
1362
  declare const getApiDataSource: (dataSource: Extract<DataSource, {
1182
1363
  type: "api";
1183
- }>, allValues: Record<string, any>, apiAdapter: ApiAdapter | undefined) => Promise<any[]>;
1364
+ }>, allValues: Record<string, any>, dataSourceRequestHandler: DataSourceRequestHandler, levelId?: string) => Promise<any[]>;
1184
1365
  /**
1185
1366
  * Get schema reference data source options
1186
1367
  */
@@ -1245,6 +1426,58 @@ declare const isAllowedKey: (key: string, format: WidgetFormat | undefined, curr
1245
1426
  */
1246
1427
  declare const getFormattedNumberLength: (value: number | string | null, format: WidgetFormat | undefined) => number;
1247
1428
 
1429
+ /**
1430
+ * Geo Hierarchy Builder
1431
+ * Manages geo hierarchy state and builds hierarchy JSON structure
1432
+ */
1433
+ interface GeoLevelData {
1434
+ level: string;
1435
+ level_value_id: string;
1436
+ level_value_mnemonic: string;
1437
+ }
1438
+ declare class GeoHierarchyBuilder {
1439
+ private hierarchies;
1440
+ /**
1441
+ * Get or create hierarchy state for a group
1442
+ */
1443
+ private getHierarchy;
1444
+ /**
1445
+ * Add a level to the hierarchy
1446
+ */
1447
+ addLevel(level: string, level_value_id: string, level_value_mnemonic: string, groupId?: string): void;
1448
+ /**
1449
+ * Remove a level and all levels below it
1450
+ */
1451
+ removeLevelAndBelow(level: string, groupId?: string): void;
1452
+ /**
1453
+ * Build hierarchy JSON structure
1454
+ */
1455
+ buildHierarchyJson(groupId?: string): {
1456
+ geo_lowest_level_value_id: string;
1457
+ geo_code_hierarchy_json: {
1458
+ hierarchy: Array<{
1459
+ level: string;
1460
+ level_value_id: string;
1461
+ level_value_mnemonic: string;
1462
+ }>;
1463
+ lowest_level_value_id: string;
1464
+ };
1465
+ } | null;
1466
+ /**
1467
+ * Clear hierarchy for a group
1468
+ */
1469
+ clear(groupId?: string): void;
1470
+ /**
1471
+ * Clear all hierarchies
1472
+ */
1473
+ clearAll(): void;
1474
+ /**
1475
+ * Get current levels for a group
1476
+ */
1477
+ getLevels(groupId?: string): GeoLevelData[];
1478
+ }
1479
+ declare const geoHierarchyBuilder: GeoHierarchyBuilder;
1480
+
1248
1481
  /**
1249
1482
  * Initialize i18n for the widget library
1250
1483
  * Can be customized by passing custom resources or configuration
@@ -1302,5 +1535,5 @@ declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string
1302
1535
  */
1303
1536
  declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
1304
1537
 
1305
- export { ArrayWidget, BooleanWidget, CheckboxWidget, CurrencyInputWidget, DateInputWidget, DateTimeInputWidget, DisplayWidget, FileInputWidget, IterableAccordionWidget, NumberInputWidget, PanelRenderer, PhoneInputWidget, ProfileWidget, RadioWidget, SectionRenderer, SectionsContainer, SelectWidget, SimpleTableWidget, TableWidget, TextAreaWidget, TextInputWidget, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, evaluateCondition, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, getApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, initI18n, isAllowedKey, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useWidgetContext, useWidgetTranslation, validateNumericValue, validateWidget, widgetRegistry };
1306
- export type { ApiAdapter, ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceType, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionChanges, SectionConfig, SectionMode, SectionsContainerProps, StaticDataSource, SupportingDocumentConfig, TextAlign, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCondition, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetFormat, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetValidation, WidgetValue };
1538
+ export { ArrayWidget, BooleanWidget, CheckboxWidget, CurrencyInputWidget, DateInputWidget, DateTimeInputWidget, DisplayWidget, FileInputWidget, IterableAccordionWidget, JSONEditorPanel, NumberInputWidget, PanelRenderer, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, SimpleTableWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, evaluateCondition, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, geoHierarchyBuilder, getApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, initI18n, isAllowedKey, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useGeoWidgetCascade, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTranslation, validateNumericValue, validateWidget, widgetRegistry };
1539
+ export type { ApiAdapter, ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, GeoLevelData, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionsContainerProps, StaticDataSource, SupportingDocumentConfig, TextAlign, TreeNode, TreeNodeType, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCascadeConfig, WidgetCondition, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetEvent, WidgetEventType, WidgetFormat, WidgetGeoConfig, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetValidation, WidgetValue };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC5E,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAIlE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAG1F,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,cAAc,WAAW,CAAC;AAG1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AACl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