@openg2p/registry-widgets 0.1.4 → 0.1.6
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/assets/index.d.ts +15 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/components/FilePreviewModal.d.ts.map +1 -1
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -1
- package/dist/components/SectionRenderer.d.ts +7 -2
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/WidgetRenderer.d.ts.map +1 -1
- package/dist/hooks/useBaseWidget.d.ts.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.esm.js +247 -107
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +247 -107
- package/dist/index.js.map +1 -1
- package/dist/utils/sectionValidate.d.ts +5 -0
- package/dist/utils/sectionValidate.d.ts.map +1 -0
- package/dist/widgets/DisplayWidget.d.ts.map +1 -1
- package/dist/widgets/FileInputWidget.d.ts.map +1 -1
- package/dist/widgets/ProfileWidget.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import dummyProfile from './dummy_profile.png';
|
|
2
|
+
import fileIcon from './file_icon.png';
|
|
3
|
+
import uploadIcon from './upload_icon.png';
|
|
4
|
+
import closeSign from './close_sign.png';
|
|
5
|
+
import dummyDoc from './dummy_doc.png';
|
|
6
|
+
import downArrowIcon from './down_arrow.png';
|
|
7
|
+
import personIcon from './person.png';
|
|
8
|
+
import calendarIcon from './calendar.png';
|
|
9
|
+
import rightArrowIcon from './right_arrow.png';
|
|
10
|
+
import resetIcon from './reset_icon.png';
|
|
11
|
+
import previewIcon from './preview_icon.png';
|
|
12
|
+
import maximizeIcon from './maximize_icon.png';
|
|
13
|
+
import minimizeIcon from './minimize_icon.png';
|
|
14
|
+
export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon, personIcon, calendarIcon, rightArrowIcon, resetIcon, previewIcon, maximizeIcon, minimizeIcon, };
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,GACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../src/components/FilePreviewModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../src/components/FilePreviewModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,qBAAqB;IAC7B,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAsCD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsL5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAiD5C,UAAU,oBAAoB;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmqB1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualBuilderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/VisualBuilderPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAe,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"VisualBuilderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/VisualBuilderPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAe,QAAQ,EAAE,MAAM,eAAe,CAAC;AAItD,UAAU,uBAAuB;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,eAAe,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAClD,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,KAAK,IAAI,CAAC;IACnF,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAgUhE,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { SectionConfig } from '../types';
|
|
|
2
2
|
import { UseBaseWidgetOptions } from '../hooks/useBaseWidget';
|
|
3
3
|
import { SectionMode } from './SectionsContainer';
|
|
4
4
|
export interface SectionChanges {
|
|
5
|
-
section_id
|
|
5
|
+
section_id?: string;
|
|
6
|
+
section_register_id?: string;
|
|
6
7
|
records: unknown[];
|
|
7
8
|
files?: unknown[];
|
|
8
9
|
}
|
|
@@ -16,6 +17,10 @@ export interface SectionRendererProps {
|
|
|
16
17
|
hideEditButton?: boolean;
|
|
17
18
|
mode?: SectionMode;
|
|
18
19
|
namespace?: string;
|
|
20
|
+
changeRequestType?: 'new' | 'old';
|
|
21
|
+
showChangeRequestLabel?: boolean;
|
|
22
|
+
dbSectionId?: string;
|
|
23
|
+
sectionRegisterId?: string;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Renders a section with its panels
|
|
@@ -25,5 +30,5 @@ export interface SectionRendererProps {
|
|
|
25
30
|
* - Panels wrap when they exceed available width
|
|
26
31
|
* - Sections can sit side-by-side if there's space
|
|
27
32
|
*/
|
|
28
|
-
export declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, namespace, }: SectionRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, namespace, changeRequestType, showChangeRequestLabel, dbSectionId, sectionRegisterId, }: SectionRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
34
|
//# sourceMappingURL=SectionRenderer.d.ts.map
|
|
@@ -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;AAM9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,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,EA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oB,EAAE,MAAM,wBAAwB,CAAC;AAO7E,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IAC/E,MAAM,EAAE,gBAAgB,CAAC;IACzB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,cAAc,GAAI,kIAM5B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"WidgetRenderer.d.ts","sourceRoot":"","sources":["../../src/components/WidgetRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAsB,MAAM,UAAU,CAAC;AAChE,OAAO,EAAiB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAO7E,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IAC/E,MAAM,EAAE,gBAAgB,CAAC;IACzB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,cAAc,GAAI,kIAM5B,mBAAmB,mDAyDrB,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;AAetE,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;AAMD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;
|
|
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;AAetE,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;AAMD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;yBAwI5C,GAAG,aAAY,OAAO;;uBA0Qd,MAAM,EAAE;;;;;;;0BAtKpB,MAAM;;;CA2KhB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -529,7 +529,8 @@ interface SectionsContainerProps {
|
|
|
529
529
|
declare const SectionsContainer: ({ sections, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, className, onSectionSave, hideEditButton, mode, namespace, }: SectionsContainerProps) => react_jsx_runtime.JSX.Element;
|
|
530
530
|
|
|
531
531
|
interface SectionChanges {
|
|
532
|
-
section_id
|
|
532
|
+
section_id?: string;
|
|
533
|
+
section_register_id?: string;
|
|
533
534
|
records: unknown[];
|
|
534
535
|
files?: unknown[];
|
|
535
536
|
}
|
|
@@ -543,6 +544,10 @@ interface SectionRendererProps {
|
|
|
543
544
|
hideEditButton?: boolean;
|
|
544
545
|
mode?: SectionMode;
|
|
545
546
|
namespace?: string;
|
|
547
|
+
changeRequestType?: 'new' | 'old';
|
|
548
|
+
showChangeRequestLabel?: boolean;
|
|
549
|
+
dbSectionId?: string;
|
|
550
|
+
sectionRegisterId?: string;
|
|
546
551
|
}
|
|
547
552
|
/**
|
|
548
553
|
* Renders a section with its panels
|
|
@@ -552,7 +557,7 @@ interface SectionRendererProps {
|
|
|
552
557
|
* - Panels wrap when they exceed available width
|
|
553
558
|
* - Sections can sit side-by-side if there's space
|
|
554
559
|
*/
|
|
555
|
-
declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, namespace, }: SectionRendererProps) => react_jsx_runtime.JSX.Element;
|
|
560
|
+
declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, namespace, changeRequestType, showChangeRequestLabel, dbSectionId, sectionRegisterId, }: SectionRendererProps) => react_jsx_runtime.JSX.Element;
|
|
556
561
|
|
|
557
562
|
interface SectionBuilderProps {
|
|
558
563
|
initialSection?: SectionConfig;
|