@openg2p/registry-widgets 0.1.1 → 0.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/dist/components/PanelRenderer.d.ts +3 -3
- package/dist/components/PanelRenderer.d.ts.map +1 -1
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +2 -0
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
- package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -1
- package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -1
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +3 -0
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -1
- package/dist/components/SectionRenderer.d.ts +2 -2
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/SectionsContainer.d.ts +3 -3
- package/dist/components/SectionsContainer.d.ts.map +1 -1
- package/dist/components/WidgetProvider.d.ts +4 -4
- package/dist/components/WidgetProvider.d.ts.map +1 -1
- package/dist/components/WidgetRenderer.d.ts +1 -1
- package/dist/components/WidgetRenderer.d.ts.map +1 -1
- package/dist/events/WidgetEventBus.d.ts +43 -0
- package/dist/events/WidgetEventBus.d.ts.map +1 -0
- package/dist/events/types.d.ts +27 -0
- package/dist/events/types.d.ts.map +1 -0
- package/dist/hooks/useBaseWidget.d.ts +2 -2
- package/dist/hooks/useBaseWidget.d.ts.map +1 -1
- package/dist/hooks/useGeoWidgetCascade.d.ts +12 -0
- package/dist/hooks/useGeoWidgetCascade.d.ts.map +1 -0
- package/dist/hooks/useWidgetCascade.d.ts +12 -0
- package/dist/hooks/useWidgetCascade.d.ts.map +1 -0
- package/dist/hooks/useWidgetEventBus.d.ts +9 -0
- package/dist/hooks/useWidgetEventBus.d.ts.map +1 -0
- package/dist/index.d.ts +249 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2604 -171
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2612 -169
- package/dist/index.js.map +1 -1
- package/dist/store/widgetSlice.d.ts.map +1 -1
- package/dist/types/index.d.ts +38 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/dataSource.d.ts +3 -2
- package/dist/utils/dataSource.d.ts.map +1 -1
- package/dist/utils/geoHierarchy.d.ts +53 -0
- package/dist/utils/geoHierarchy.d.ts.map +1 -0
- package/dist/widgets/RadioWidget.d.ts.map +1 -1
- package/dist/widgets/TableWidget.d.ts.map +1 -1
- package/package.json +17 -9
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
|
-
|
|
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
|
-
|
|
40
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
485
|
+
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
382
486
|
schemaData?: Record<string, any>;
|
|
383
487
|
translate?: (key: string, options?: any) => string;
|
|
384
488
|
};
|
|
385
|
-
declare const WidgetProvider: ({ store,
|
|
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
|
-
|
|
493
|
+
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
390
494
|
schemaData?: UseBaseWidgetOptions['schemaData'];
|
|
391
495
|
onValueChange?: UseBaseWidgetOptions['onValueChange'];
|
|
392
496
|
isEditMode?: boolean;
|
|
@@ -398,12 +502,12 @@ interface PanelRendererProps {
|
|
|
398
502
|
* - Nested panels (for layout composition)
|
|
399
503
|
* - Widgets (for actual form inputs/controls)
|
|
400
504
|
*/
|
|
401
|
-
declare const PanelRenderer: ({ panel,
|
|
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
|
-
|
|
510
|
+
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
407
511
|
schemaData?: UseBaseWidgetOptions['schemaData'];
|
|
408
512
|
onValueChange?: UseBaseWidgetOptions['onValueChange'];
|
|
409
513
|
className?: string;
|
|
@@ -422,7 +526,7 @@ interface SectionsContainerProps {
|
|
|
422
526
|
* - All sections align to the same grid, ensuring right-side alignment
|
|
423
527
|
* - Handles nested structure: multiple horizontal panels, each with multiple vertical panels
|
|
424
528
|
*/
|
|
425
|
-
declare const SectionsContainer: ({ sections,
|
|
529
|
+
declare const SectionsContainer: ({ sections, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, className, onSectionSave, hideEditButton, mode, namespace, }: SectionsContainerProps) => react_jsx_runtime.JSX.Element;
|
|
426
530
|
|
|
427
531
|
interface SectionChanges {
|
|
428
532
|
section_id: string;
|
|
@@ -431,7 +535,7 @@ interface SectionChanges {
|
|
|
431
535
|
}
|
|
432
536
|
interface SectionRendererProps {
|
|
433
537
|
section: SectionConfig;
|
|
434
|
-
|
|
538
|
+
dataSourceRequestHandler?: UseBaseWidgetOptions['dataSourceRequestHandler'];
|
|
435
539
|
schemaData?: UseBaseWidgetOptions['schemaData'];
|
|
436
540
|
onValueChange?: UseBaseWidgetOptions['onValueChange'];
|
|
437
541
|
gridColumnSpan?: number;
|
|
@@ -448,7 +552,82 @@ interface SectionRendererProps {
|
|
|
448
552
|
* - Panels wrap when they exceed available width
|
|
449
553
|
* - Sections can sit side-by-side if there's space
|
|
450
554
|
*/
|
|
451
|
-
declare const SectionRenderer: ({ section,
|
|
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>;
|
|
452
631
|
|
|
453
632
|
/**
|
|
454
633
|
* Register all default/generic widgets
|
|
@@ -1178,10 +1357,11 @@ declare const getStaticDataSource: (dataSource: Extract<DataSource, {
|
|
|
1178
1357
|
}>) => any[];
|
|
1179
1358
|
/**
|
|
1180
1359
|
* Get API data source options
|
|
1360
|
+
* Uses dataSourceRequestHandler to make API calls through host application
|
|
1181
1361
|
*/
|
|
1182
1362
|
declare const getApiDataSource: (dataSource: Extract<DataSource, {
|
|
1183
1363
|
type: "api";
|
|
1184
|
-
}>, allValues: Record<string, any>,
|
|
1364
|
+
}>, allValues: Record<string, any>, dataSourceRequestHandler: DataSourceRequestHandler, levelId?: string) => Promise<any[]>;
|
|
1185
1365
|
/**
|
|
1186
1366
|
* Get schema reference data source options
|
|
1187
1367
|
*/
|
|
@@ -1246,6 +1426,58 @@ declare const isAllowedKey: (key: string, format: WidgetFormat | undefined, curr
|
|
|
1246
1426
|
*/
|
|
1247
1427
|
declare const getFormattedNumberLength: (value: number | string | null, format: WidgetFormat | undefined) => number;
|
|
1248
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
|
+
|
|
1249
1481
|
/**
|
|
1250
1482
|
* Initialize i18n for the widget library
|
|
1251
1483
|
* Can be customized by passing custom resources or configuration
|
|
@@ -1303,5 +1535,5 @@ declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string
|
|
|
1303
1535
|
*/
|
|
1304
1536
|
declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
|
|
1305
1537
|
|
|
1306
|
-
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 };
|
|
1307
|
-
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 };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGxD,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;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,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,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,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;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG5E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|