@openg2p/registry-widgets 1.0.1 → 1.1.0-dev.0
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 +52 -1
- package/dist/components/SectionBuilder/schemas.d.ts +4 -0
- package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/SectionsContainer.d.ts.map +1 -1
- package/dist/components/WidgetProvider.d.ts +4 -1
- package/dist/components/WidgetProvider.d.ts.map +1 -1
- package/dist/index.d.ts +168 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +700 -188
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +703 -187
- package/dist/index.js.map +1 -1
- package/dist/registry/defaultWidgets.d.ts.map +1 -1
- package/dist/theme/index.d.ts +35 -9
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/widgets/HeaderSectionWidget.d.ts.map +1 -1
- package/dist/widgets/ProfileWidget.d.ts +2 -2
- package/dist/widgets/ScoresDisplayWidget.d.ts +32 -0
- package/dist/widgets/ScoresDisplayWidget.d.ts.map +1 -0
- package/dist/widgets/TableWidget.d.ts.map +1 -1
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -236,7 +236,7 @@ The library includes 20 pre-built widgets:
|
|
|
236
236
|
- **Layout Widgets**: Array, IterableAccordion
|
|
237
237
|
- **Display Widgets**: Display, Profile
|
|
238
238
|
- **Table Widgets**: Table, SimpleTable
|
|
239
|
-
- **Section Widgets**: HeaderSection
|
|
239
|
+
- **Section Widgets**: HeaderSection, ScoresDisplay
|
|
240
240
|
|
|
241
241
|
### HeaderSection Widget
|
|
242
242
|
|
|
@@ -256,6 +256,57 @@ A full-width header card designed for registry record views. Displays a profile
|
|
|
256
256
|
}
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
+
### ScoresDisplay Widget
|
|
260
|
+
|
|
261
|
+
A full-width, view-only widget for showing a single computed score record (e.g. PMT, Food Security Score). It fetches data via the host application's `dataSourceRequestHandler` and renders:
|
|
262
|
+
|
|
263
|
+
- **Score Type**
|
|
264
|
+
- **Score**
|
|
265
|
+
- **Computed at**
|
|
266
|
+
|
|
267
|
+
**API request mapping**
|
|
268
|
+
|
|
269
|
+
- The widget reads `internal_record_id` from `widget-data-source.params.internal_record_id_path` (a dot-path into `schemaData` / store values).
|
|
270
|
+
- It then calls `dataSourceRequestHandler(service, endpoint, method, params)` and passes `internal_record_id` in the request params.
|
|
271
|
+
|
|
272
|
+
```json
|
|
273
|
+
{
|
|
274
|
+
"widget": "scores-display",
|
|
275
|
+
"widget-type": "group",
|
|
276
|
+
"widget-id": "record-scores",
|
|
277
|
+
"widget-readonly": true,
|
|
278
|
+
"widget-data-source": {
|
|
279
|
+
"type": "api",
|
|
280
|
+
"service": "staff-portal-api",
|
|
281
|
+
"endpoint": "get_scores",
|
|
282
|
+
"method": "POST",
|
|
283
|
+
"params": {
|
|
284
|
+
"internal_record_id_path": "internal_record_id"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**Expected response shape (ideal)**
|
|
291
|
+
|
|
292
|
+
```json
|
|
293
|
+
{
|
|
294
|
+
"scores": [
|
|
295
|
+
{
|
|
296
|
+
"score_type": "PMT",
|
|
297
|
+
"computed_score": 42,
|
|
298
|
+
"computed_at": "2026-04-16T10:12:00Z",
|
|
299
|
+
"triggered_by_cr_id": "CR-001"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Notes**
|
|
306
|
+
|
|
307
|
+
- The widget displays a single score record. If multiple scores are returned, it selects the most recent by `computed_at` (falls back to the first item if dates are missing).
|
|
308
|
+
- There is no edit mode for this widget.
|
|
309
|
+
|
|
259
310
|
## Section Modes
|
|
260
311
|
|
|
261
312
|
`SectionsContainer` supports three display modes via the `mode` prop:
|
|
@@ -967,6 +967,10 @@ export declare const sectionSchema: {
|
|
|
967
967
|
type: "boolean";
|
|
968
968
|
description: string;
|
|
969
969
|
};
|
|
970
|
+
'section-hide-edit-button': {
|
|
971
|
+
type: "boolean";
|
|
972
|
+
description: string;
|
|
973
|
+
};
|
|
970
974
|
'section-column-span': {
|
|
971
975
|
type: "number";
|
|
972
976
|
minimum: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,yNAmBf,CAAC;AAEX,eAAO,MAAM,YAAY,qCAAsC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,6GAStB,CAAC;AAEX,eAAO,MAAM,iBAAiB,sCAAuC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,oCAAqC,CAAC;AAEnE,eAAO,MAAM,eAAe,wFAOlB,CAAC;AAEX,eAAO,MAAM,aAAa,2DAA4D,CAAC;AAEvF,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,eAAO,MAAM,uBAAuB,uDAAwD,CAAC;AAE7F,eAAO,MAAM,qBAAqB,0CAA2C,CAAC;AA2S9E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,GAAG,CAWhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionRenderer.d.ts","sourceRoot":"","sources":["../../src/components/SectionRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAyC,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionRenderer.d.ts","sourceRoot":"","sources":["../../src/components/SectionRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAyC,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQ9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,aAAa,CAAC;IACvB,wBAAwB,CAAC,EAAE,oBAAoB,CAAC,0BAA0B,CAAC,CAAC;IAC5E,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAA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,EAAE,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAEpE,wHAAwH;IACxH,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,0JAA0J;IAC1J,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACpD;AA4ED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,yMAa/B,sBAAsB,4CAkSxB,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { DataSourceRequestHandler } from '../types';
|
|
3
3
|
import { WidgetStore } from '../store';
|
|
4
|
+
import { WidgetTheme } from '../theme';
|
|
4
5
|
export interface WidgetProviderProps {
|
|
5
6
|
store?: WidgetStore;
|
|
6
7
|
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
7
8
|
schemaData?: Record<string, any>;
|
|
8
9
|
translate?: (key: string, options?: any) => string;
|
|
10
|
+
/** Optional theme object to override default colors and styles across all widgets. */
|
|
11
|
+
theme?: WidgetTheme;
|
|
9
12
|
children: ReactNode;
|
|
10
13
|
}
|
|
11
14
|
export declare const useWidgetContext: () => {
|
|
@@ -13,5 +16,5 @@ export declare const useWidgetContext: () => {
|
|
|
13
16
|
schemaData?: Record<string, any>;
|
|
14
17
|
translate?: (key: string, options?: any) => string;
|
|
15
18
|
};
|
|
16
|
-
export declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, translate, children, }: WidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, translate, theme, children, }: WidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
//# sourceMappingURL=WidgetProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetProvider.d.ts","sourceRoot":"","sources":["../../src/components/WidgetProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA6B,SAAS,EAAsB,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetProvider.d.ts","sourceRoot":"","sources":["../../src/components/WidgetProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA6B,SAAS,EAAsB,MAAM,OAAO,CAAC;AAExF,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,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;IACnD,sFAAsF;IACtF,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAYD,eAAO,MAAM,gBAAgB;+BATA,wBAAwB;iBACtC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gBACpB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM;CASnD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,8EAO5B,mBAAmB,4CA8DrB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,8 @@ interface SectionConfig {
|
|
|
274
274
|
'section-id': string;
|
|
275
275
|
'section-title'?: string;
|
|
276
276
|
'section-editable'?: boolean;
|
|
277
|
+
/** When true in RegistryView, hides the "Edit Details" link for this section only. */
|
|
278
|
+
'section-hide-edit-button'?: boolean;
|
|
277
279
|
'section-column-span'?: number;
|
|
278
280
|
'section-supporting-documents'?: SupportingDocumentConfig[];
|
|
279
281
|
panels: PanelConfig[];
|
|
@@ -474,11 +476,131 @@ interface WidgetRendererProps extends Omit<UseBaseWidgetOptions, 'config'> {
|
|
|
474
476
|
}
|
|
475
477
|
declare const WidgetRenderer: ({ config, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData: propSchemaData, onValueChange, defaultComponent, }: WidgetRendererProps) => react_jsx_runtime.JSX.Element | null;
|
|
476
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Theme color tokens for the widget library.
|
|
481
|
+
* All properties are optional — omitted values fall back to built-in defaults.
|
|
482
|
+
*
|
|
483
|
+
* Default palette derived from OpenG2P brand colours:
|
|
484
|
+
* Gold #F5BB1A · Orange #F07B1A · Purple #88498F
|
|
485
|
+
* Grey #C4C4C4 · Dark Navy #011627 · Light Grey #F6F6F6
|
|
486
|
+
*/
|
|
487
|
+
interface WidgetThemeColors {
|
|
488
|
+
/** Main brand colour (default: #F5BB1A — Gold) */
|
|
489
|
+
primary?: string;
|
|
490
|
+
/** Darker brand accent (default: #F07B1A — Orange) */
|
|
491
|
+
primaryDark?: string;
|
|
492
|
+
/** Light brand tint for backgrounds (default: #FBE6AA — Gold +62.5%) */
|
|
493
|
+
primaryLight?: string;
|
|
494
|
+
/** Secondary accent used in edit-mode borders (default: #EE7C22 — Orange 0% shade) */
|
|
495
|
+
primaryAccent?: string;
|
|
496
|
+
/** Standard border colour (default: #C4C4C4 — Grey) */
|
|
497
|
+
border?: string;
|
|
498
|
+
/** Lighter border colour (default: #E4E4E4 — Grey +62.5%) */
|
|
499
|
+
borderLight?: string;
|
|
500
|
+
/** Default background (default: #FFFFFF) */
|
|
501
|
+
background?: string;
|
|
502
|
+
/** Alternate/muted background (default: #F6F6F6 — Light Grey) */
|
|
503
|
+
backgroundAlt?: string;
|
|
504
|
+
/** Primary text colour (default: #011627 — Dark Navy) */
|
|
505
|
+
text?: string;
|
|
506
|
+
/** Secondary / muted text colour (default: #727474 — Grey -37.5%) */
|
|
507
|
+
textMuted?: string;
|
|
508
|
+
/** Success green (default: #16A34A) */
|
|
509
|
+
success?: string;
|
|
510
|
+
/** Success dark green (default: #047857) */
|
|
511
|
+
successDark?: string;
|
|
512
|
+
/** Light success surface for badges / highlights (default: #D1FAE5) */
|
|
513
|
+
successLight?: string;
|
|
514
|
+
/** Error / danger red (default: #B91C1C) */
|
|
515
|
+
error?: string;
|
|
516
|
+
/** Light error surface for badges / highlights (default: #FEE2E2) */
|
|
517
|
+
errorLight?: string;
|
|
518
|
+
/** Warning amber (default: #F59E0B) */
|
|
519
|
+
warning?: string;
|
|
520
|
+
/** Info / link blue (default: #2563EB) */
|
|
521
|
+
info?: string;
|
|
522
|
+
}
|
|
523
|
+
interface WidgetThemeSection {
|
|
524
|
+
borderRadius?: string;
|
|
525
|
+
borderColor?: string;
|
|
526
|
+
backgroundColor?: string;
|
|
527
|
+
titleColor?: string;
|
|
528
|
+
/** Horizontal-rule / divider colour between panels (default: primary) */
|
|
529
|
+
dividerColor?: string;
|
|
530
|
+
}
|
|
531
|
+
interface WidgetThemePanel {
|
|
532
|
+
/** Vertical divider colour between side-by-side panels */
|
|
533
|
+
dividerColor?: string;
|
|
534
|
+
backgroundColor?: string;
|
|
535
|
+
}
|
|
536
|
+
interface WidgetThemeButton {
|
|
537
|
+
primaryBg?: string;
|
|
538
|
+
primaryColor?: string;
|
|
539
|
+
primaryBorder?: string;
|
|
540
|
+
secondaryBg?: string;
|
|
541
|
+
secondaryColor?: string;
|
|
542
|
+
secondaryBorder?: string;
|
|
543
|
+
borderRadius?: string;
|
|
544
|
+
}
|
|
545
|
+
interface WidgetThemeWidget {
|
|
546
|
+
labelColor?: string;
|
|
547
|
+
inputBorderColor?: string;
|
|
548
|
+
inputFocusBorderColor?: string;
|
|
549
|
+
inputBackground?: string;
|
|
550
|
+
errorColor?: string;
|
|
551
|
+
helpTextColor?: string;
|
|
552
|
+
/** Table: header row background (default: #F6F6F6) */
|
|
553
|
+
tableHeaderBg?: string;
|
|
554
|
+
/** Table: header text colour (default: #727474) */
|
|
555
|
+
tableHeaderColor?: string;
|
|
556
|
+
/** Table: body / cell background (default: #FFFFFF) */
|
|
557
|
+
tableBodyBg?: string;
|
|
558
|
+
/** Table: outer border colour (default: #C4C4C4) */
|
|
559
|
+
tableBorderColor?: string;
|
|
560
|
+
/** Table: row divider lines (default: #E4E4E4) */
|
|
561
|
+
tableRowDividerColor?: string;
|
|
562
|
+
/** Table: background of a row being edited (default: #FBE6AA) */
|
|
563
|
+
tableEditingRowBg?: string;
|
|
564
|
+
/** Table: background of a row marked for deletion (default: #FEE2E2) */
|
|
565
|
+
tableDeletedRowBg?: string;
|
|
566
|
+
/** Table: empty-state text colour (default: #727474) */
|
|
567
|
+
tableEmptyTextColor?: string;
|
|
568
|
+
/** Table: container border radius (default: 15px) */
|
|
569
|
+
tableBorderRadius?: string;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Top-level theme object accepted by `<WidgetProvider theme={…}>`.
|
|
573
|
+
* Every field is optional — only supply what you want to override.
|
|
574
|
+
*/
|
|
575
|
+
interface WidgetTheme {
|
|
576
|
+
colors?: WidgetThemeColors;
|
|
577
|
+
section?: WidgetThemeSection;
|
|
578
|
+
panel?: WidgetThemePanel;
|
|
579
|
+
button?: WidgetThemeButton;
|
|
580
|
+
widget?: WidgetThemeWidget;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Built-in default values (matches the original hardcoded colours).
|
|
584
|
+
*/
|
|
585
|
+
declare const defaultTheme: Required<{
|
|
586
|
+
colors: Required<WidgetThemeColors>;
|
|
587
|
+
section: Required<WidgetThemeSection>;
|
|
588
|
+
panel: Required<WidgetThemePanel>;
|
|
589
|
+
button: Required<WidgetThemeButton>;
|
|
590
|
+
widget: Required<WidgetThemeWidget>;
|
|
591
|
+
}>;
|
|
592
|
+
/**
|
|
593
|
+
* Merge a user-supplied (partial) theme with the built-in defaults.
|
|
594
|
+
*/
|
|
595
|
+
declare function resolveTheme(theme?: WidgetTheme): typeof defaultTheme;
|
|
596
|
+
|
|
477
597
|
interface WidgetProviderProps {
|
|
478
598
|
store?: WidgetStore;
|
|
479
599
|
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
480
600
|
schemaData?: Record<string, any>;
|
|
481
601
|
translate?: (key: string, options?: any) => string;
|
|
602
|
+
/** Optional theme object to override default colors and styles across all widgets. */
|
|
603
|
+
theme?: WidgetTheme;
|
|
482
604
|
children: ReactNode;
|
|
483
605
|
}
|
|
484
606
|
declare const useWidgetContext: () => {
|
|
@@ -486,7 +608,7 @@ declare const useWidgetContext: () => {
|
|
|
486
608
|
schemaData?: Record<string, any>;
|
|
487
609
|
translate?: (key: string, options?: any) => string;
|
|
488
610
|
};
|
|
489
|
-
declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, translate, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
|
|
611
|
+
declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, translate, theme, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
|
|
490
612
|
|
|
491
613
|
interface PanelRendererProps {
|
|
492
614
|
panel: PanelConfig;
|
|
@@ -1260,7 +1382,7 @@ declare const TableWidget: ({ config }: TableWidgetProps) => react_jsx_runtime.J
|
|
|
1260
1382
|
* Format options:
|
|
1261
1383
|
* - widget-data-format: Optional format configuration
|
|
1262
1384
|
* - imageSize?: number - Size of the avatar image in pixels (default: 80)
|
|
1263
|
-
* - nameColor?: string - Color for the name text (default: '#
|
|
1385
|
+
* - nameColor?: string - Color for the name text (default: '#F07B1A')
|
|
1264
1386
|
* - showIdLabel?: boolean - Whether to show "ID :" label (default: true)
|
|
1265
1387
|
*
|
|
1266
1388
|
* Example usage (Recommended):
|
|
@@ -1276,7 +1398,7 @@ declare const TableWidget: ({ config }: TableWidgetProps) => react_jsx_runtime.J
|
|
|
1276
1398
|
* },
|
|
1277
1399
|
* "widget-data-format": {
|
|
1278
1400
|
* "imageSize": 80,
|
|
1279
|
-
* "nameColor": "#
|
|
1401
|
+
* "nameColor": "#F07B1A",
|
|
1280
1402
|
* "showIdLabel": true
|
|
1281
1403
|
* }
|
|
1282
1404
|
* }
|
|
@@ -1330,6 +1452,36 @@ interface HeaderSectionWidgetProps {
|
|
|
1330
1452
|
}
|
|
1331
1453
|
declare const HeaderSectionWidget: ({ config }: HeaderSectionWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
1332
1454
|
|
|
1455
|
+
interface ScoresDisplayWidgetProps {
|
|
1456
|
+
config: BaseWidgetConfig;
|
|
1457
|
+
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
1458
|
+
schemaData?: Record<string, unknown>;
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Scores Display Widget - full-width, view-only widget
|
|
1462
|
+
*
|
|
1463
|
+
* Expected config (reference):
|
|
1464
|
+
* {
|
|
1465
|
+
* "widget": "scores-display",
|
|
1466
|
+
* "widget-type": "group",
|
|
1467
|
+
* "widget-id": "record-scores",
|
|
1468
|
+
* "widget-data-source": {
|
|
1469
|
+
* "type": "api",
|
|
1470
|
+
* "service": "staff-portal-api",
|
|
1471
|
+
* "endpoint": "get_scores",
|
|
1472
|
+
* "method": "POST",
|
|
1473
|
+
* "params": { "internal_record_id_path": "internal_record_id" }
|
|
1474
|
+
* }
|
|
1475
|
+
* }
|
|
1476
|
+
*
|
|
1477
|
+
* The host's `dataSourceRequestHandler` is invoked with:
|
|
1478
|
+
* - service: config.widget-data-source.service
|
|
1479
|
+
* - endpoint: config.widget-data-source.endpoint
|
|
1480
|
+
* - method: config.widget-data-source.method (default POST)
|
|
1481
|
+
* - params: { internal_record_id: <resolved from internal_record_id_path> }
|
|
1482
|
+
*/
|
|
1483
|
+
declare const ScoresDisplayWidget: ({ config, dataSourceRequestHandler: propHandler, schemaData: propSchemaData, }: ScoresDisplayWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
1484
|
+
|
|
1333
1485
|
/**
|
|
1334
1486
|
* Get value from object using dot notation path
|
|
1335
1487
|
* Safely handles nested paths like "person.name" or "address.street.number"
|
|
@@ -1527,6 +1679,17 @@ declare class GeoHierarchyBuilder {
|
|
|
1527
1679
|
}
|
|
1528
1680
|
declare const geoHierarchyBuilder: GeoHierarchyBuilder;
|
|
1529
1681
|
|
|
1682
|
+
type ResolvedTheme = ReturnType<typeof resolveTheme>;
|
|
1683
|
+
/**
|
|
1684
|
+
* Access the resolved widget theme from any component inside `<WidgetProvider>`.
|
|
1685
|
+
*
|
|
1686
|
+
* ```tsx
|
|
1687
|
+
* const theme = useWidgetTheme();
|
|
1688
|
+
* // theme.colors.primary, theme.section.dividerColor, etc.
|
|
1689
|
+
* ```
|
|
1690
|
+
*/
|
|
1691
|
+
declare function useWidgetTheme(): ResolvedTheme;
|
|
1692
|
+
|
|
1530
1693
|
/**
|
|
1531
1694
|
* Initialize i18n for the widget library
|
|
1532
1695
|
* Can be customized by passing custom resources or configuration
|
|
@@ -1584,5 +1747,5 @@ declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string
|
|
|
1584
1747
|
*/
|
|
1585
1748
|
declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
|
|
1586
1749
|
|
|
1587
|
-
export { ArrayWidget, BooleanWidget, CheckboxWidget, CurrencyInputWidget, DateInputWidget, DateTimeInputWidget, DisplayWidget, FileInputWidget, HeaderSectionWidget, 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 };
|
|
1588
|
-
export type { ApiAdapter, ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, GeoLevelData, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionRendererProps, SectionsContainerProps, SectionsFormHandle, 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 };
|
|
1750
|
+
export { ArrayWidget, BooleanWidget, CheckboxWidget, CurrencyInputWidget, DateInputWidget, DateTimeInputWidget, DisplayWidget, FileInputWidget, HeaderSectionWidget, IterableAccordionWidget, JSONEditorPanel, NumberInputWidget, PanelRenderer, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, SimpleTableWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, defaultTheme, evaluateCondition, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, geoHierarchyBuilder, getApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, initI18n, isAllowedKey, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, resolveTheme, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useGeoWidgetCascade, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, useWidgetTranslation, validateNumericValue, validateWidget, widgetRegistry };
|
|
1751
|
+
export type { ApiAdapter, ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, GeoLevelData, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionRendererProps, SectionsContainerProps, SectionsFormHandle, StaticDataSource, SupportingDocumentConfig, TextAlign, TreeNode, TreeNodeType, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCascadeConfig, WidgetCondition, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetEvent, WidgetEventType, WidgetFormat, WidgetGeoConfig, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetTheme, WidgetThemeButton, WidgetThemeColors, WidgetThemePanel, WidgetThemeSection, WidgetThemeWidget, WidgetValidation, WidgetValue };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"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