@openg2p/registry-widgets 1.1.0-dev.0 → 1.1.0-dev.1
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 +15 -25
- package/dist/index.d.ts +3 -16
- package/dist/index.esm.js +127 -168
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +127 -168
- package/dist/index.js.map +1 -1
- package/dist/widgets/ScoresDisplayWidget.d.ts +11 -17
- package/dist/widgets/ScoresDisplayWidget.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import { BaseWidgetConfig
|
|
1
|
+
import { BaseWidgetConfig } from '../types';
|
|
2
|
+
export type ScoreRecord = {
|
|
3
|
+
score_type?: string;
|
|
4
|
+
computed_score?: string | number;
|
|
5
|
+
computed_at?: string;
|
|
6
|
+
triggered_by_cr_id?: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
2
9
|
interface ScoresDisplayWidgetProps {
|
|
3
10
|
config: BaseWidgetConfig;
|
|
4
|
-
dataSourceRequestHandler?: DataSourceRequestHandler;
|
|
5
11
|
schemaData?: Record<string, unknown>;
|
|
6
12
|
}
|
|
7
13
|
/**
|
|
8
|
-
* Scores Display Widget - full-width, view-only widget
|
|
14
|
+
* Scores Display Widget - full-width, view-only widget (list)
|
|
9
15
|
*
|
|
10
16
|
* Expected config (reference):
|
|
11
17
|
* {
|
|
12
18
|
* "widget": "scores-display",
|
|
13
19
|
* "widget-type": "group",
|
|
14
20
|
* "widget-id": "record-scores",
|
|
15
|
-
* "widget-data-
|
|
16
|
-
* "type": "api",
|
|
17
|
-
* "service": "staff-portal-api",
|
|
18
|
-
* "endpoint": "get_scores",
|
|
19
|
-
* "method": "POST",
|
|
20
|
-
* "params": { "internal_record_id_path": "internal_record_id" }
|
|
21
|
-
* }
|
|
21
|
+
* "widget-data-path": "scores"
|
|
22
22
|
* }
|
|
23
|
-
*
|
|
24
|
-
* The host's `dataSourceRequestHandler` is invoked with:
|
|
25
|
-
* - service: config.widget-data-source.service
|
|
26
|
-
* - endpoint: config.widget-data-source.endpoint
|
|
27
|
-
* - method: config.widget-data-source.method (default POST)
|
|
28
|
-
* - params: { internal_record_id: <resolved from internal_record_id_path> }
|
|
29
23
|
*/
|
|
30
|
-
export declare const ScoresDisplayWidget: ({ config,
|
|
24
|
+
export declare const ScoresDisplayWidget: ({ config, schemaData: propSchemaData, }: ScoresDisplayWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
25
|
export {};
|
|
32
26
|
//# sourceMappingURL=ScoresDisplayWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoresDisplayWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ScoresDisplayWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ScoresDisplayWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ScoresDisplayWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C,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;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAI,yCAGjC,wBAAwB,4CAwL1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openg2p/registry-widgets",
|
|
3
|
-
"version": "1.1.0-dev.
|
|
3
|
+
"version": "1.1.0-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Complete React widget library with generic form widgets, data binding, validation, and conditional logic",
|
|
6
6
|
"main": "dist/index.js",
|