@openg2p/registry-widgets 1.1.6 → 1.1.8-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/dist/assets/index.d.ts +1 -3
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/components/FilePreviewModal.d.ts +7 -0
- package/dist/components/FilePreviewModal.d.ts.map +1 -0
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +11 -6
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
- package/dist/components/SectionBuilder/PropertyEditor.d.ts +0 -3
- package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -1
- package/dist/components/SectionBuilder/SearchableSelect.d.ts +11 -0
- package/dist/components/SectionBuilder/SearchableSelect.d.ts.map +1 -0
- package/dist/components/SectionBuilder/SectionBuilder.d.ts +2 -4
- package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -1
- package/dist/components/SectionBuilder/SectionTree.d.ts +7 -4
- package/dist/components/SectionBuilder/SectionTree.d.ts.map +1 -1
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +7 -5
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -1
- package/dist/components/SectionBuilder/index.d.ts +1 -1
- package/dist/components/SectionBuilder/index.d.ts.map +1 -1
- package/dist/components/SectionBuilder/schemas.d.ts +6 -286
- package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
- package/dist/components/SectionBuilder/validate/parseJsoncSyntax.d.ts +14 -0
- package/dist/components/SectionBuilder/validate/parseJsoncSyntax.d.ts.map +1 -0
- package/dist/components/SectionBuilder/validate/parseSectionJson.d.ts +12 -0
- package/dist/components/SectionBuilder/validate/parseSectionJson.d.ts.map +1 -0
- package/dist/components/SectionBuilder/validate/validateSection.d.ts +7 -0
- package/dist/components/SectionBuilder/validate/validateSection.d.ts.map +1 -0
- package/dist/components/SectionRenderer/SectionRenderer.d.ts.map +1 -1
- package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts.map +1 -1
- package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts.map +1 -1
- package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts +1 -7
- package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -1
- package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -1
- package/dist/components/SectionRenderer/components/index.d.ts +0 -1
- package/dist/components/SectionRenderer/components/index.d.ts.map +1 -1
- package/dist/components/SectionRenderer/hooks/index.d.ts +0 -1
- package/dist/components/SectionRenderer/hooks/index.d.ts.map +1 -1
- package/dist/components/SectionRenderer/hooks/useCrViewData.d.ts.map +1 -1
- package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts +2 -2
- package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts.map +1 -1
- package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts +1 -2
- package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts.map +1 -1
- package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts +6 -0
- package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts.map +1 -0
- package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts +12 -1
- package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts.map +1 -1
- package/dist/components/SectionRenderer/utils/index.d.ts +1 -0
- package/dist/components/SectionRenderer/utils/index.d.ts.map +1 -1
- package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts +5 -0
- package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts.map +1 -1
- package/dist/components/SectionRenderer/utils/sectionSnapshot.d.ts.map +1 -1
- package/dist/components/SectionRenderer.d.ts +61 -0
- package/dist/components/SectionRenderer.d.ts.map +1 -0
- package/dist/components/WidgetProvider.d.ts.map +1 -1
- package/dist/hooks/useBaseWidget.d.ts.map +1 -1
- package/dist/hooks/useGeoHierarchy.d.ts +5 -3
- package/dist/hooks/useGeoHierarchy.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/useWidgetTheme.d.ts +7 -10
- package/dist/hooks/useWidgetTheme.d.ts.map +1 -1
- package/dist/hooks/useWidgetTranslation.d.ts +16 -0
- package/dist/hooks/useWidgetTranslation.d.ts.map +1 -0
- package/dist/i18n/config.d.ts +21 -0
- package/dist/i18n/config.d.ts.map +1 -0
- package/dist/index.d.ts +48 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +8126 -1861
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8132 -1860
- package/dist/index.js.map +1 -1
- package/dist/registry/widgetTypes.d.ts +6 -0
- package/dist/registry/widgetTypes.d.ts.map +1 -0
- package/dist/store/widgetSlice.d.ts +1 -1
- package/dist/store/widgetSlice.d.ts.map +1 -1
- package/dist/theme/index.d.ts +11 -13
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/utils/buildSectionChanges.d.ts +11 -0
- package/dist/utils/buildSectionChanges.d.ts.map +1 -0
- package/dist/utils/geoHierarchy.d.ts +43 -3
- package/dist/utils/geoHierarchy.d.ts.map +1 -1
- package/dist/utils/pathUtils.d.ts +4 -1
- package/dist/utils/pathUtils.d.ts.map +1 -1
- package/dist/utils/schemaNamespace.d.ts +12 -0
- package/dist/utils/schemaNamespace.d.ts.map +1 -0
- package/dist/utils/sectionRevert.d.ts.map +1 -1
- package/dist/utils/sectionValidate.d.ts.map +1 -1
- package/dist/utils/tSchema.d.ts +1 -0
- package/dist/utils/tSchema.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +3 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/widgets/ArrayWidget.d.ts +29 -0
- package/dist/widgets/ArrayWidget.d.ts.map +1 -0
- package/dist/widgets/CurrencyInputWidget.d.ts +24 -0
- package/dist/widgets/CurrencyInputWidget.d.ts.map +1 -0
- package/dist/widgets/DateInputWidget.d.ts.map +1 -1
- package/dist/widgets/DateTimeInputWidget.d.ts.map +1 -1
- package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
- package/dist/widgets/DocsWidget.d.ts.map +1 -1
- package/dist/widgets/FileInputWidget.d.ts.map +1 -1
- package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -1
- package/dist/widgets/IterableAccordionWidget.d.ts +30 -0
- package/dist/widgets/IterableAccordionWidget.d.ts.map +1 -0
- package/dist/widgets/MultiSelectWidget.d.ts.map +1 -1
- package/dist/widgets/NumberInputWidget.d.ts.map +1 -1
- package/dist/widgets/ParentLookupWidget.d.ts.map +1 -1
- package/dist/widgets/PhoneInputWidget.d.ts.map +1 -1
- package/dist/widgets/RegisterLookupWidget.d.ts.map +1 -1
- package/dist/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/widgets/SimpleTableWidget.d.ts +32 -0
- package/dist/widgets/SimpleTableWidget.d.ts.map +1 -0
- package/dist/widgets/TableWidget.d.ts.map +1 -1
- package/dist/widgets/TextAreaWidget.d.ts.map +1 -1
- package/dist/widgets/TextInputWidget.d.ts.map +1 -1
- package/package.json +6 -2
package/dist/assets/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ import uploadIcon from './upload_icon.png';
|
|
|
6
6
|
import closeSign from './close_sign.png';
|
|
7
7
|
import dummyDoc from './dummy_doc.png';
|
|
8
8
|
import downArrowIcon from './down_arrow.png';
|
|
9
|
-
import personIcon from './person.png';
|
|
10
|
-
import calendarIcon from './calendar.png';
|
|
11
9
|
import rightArrowIcon from './right_arrow.png';
|
|
12
10
|
import arrowUpIcon from './arrow_up.png';
|
|
13
11
|
import arrowDownIcon from './arrow_down.png';
|
|
@@ -19,5 +17,5 @@ import maximizeIcon from './maximize_icon.png';
|
|
|
19
17
|
import minimizeIcon from './minimize_icon.png';
|
|
20
18
|
import attachmentIcon from './attached_doc.png';
|
|
21
19
|
import remove from './remove.png';
|
|
22
|
-
export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon,
|
|
20
|
+
export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon, rightArrowIcon, arrowUpIcon, arrowDownIcon, arrowLeftIcon, arrowRightIcon, resetIcon, previewIcon, maximizeIcon, minimizeIcon, searchIcon, closeIcon, remove, attachmentIcon, };
|
|
23
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,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,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,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;AAC/C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EACH,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,GACjB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface FilePreviewModalProps {
|
|
2
|
+
file: File | string | null;
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const FilePreviewModal: ({ file, isOpen, onClose, }: FilePreviewModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=FilePreviewModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../src/components/FilePreviewModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAkCD,eAAO,MAAM,gBAAgB,GAAI,4BAI9B,qBAAqB,mDA0JvB,CAAC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SectionConfig } from '../../types';
|
|
3
|
+
export type BuilderNotifyType = 'success' | 'error' | 'info' | 'warn';
|
|
3
4
|
interface JSONEditorPanelProps {
|
|
4
|
-
|
|
5
|
+
initialText: string;
|
|
5
6
|
onChange: (section: SectionConfig) => void;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
onRawDraftChange?: (next: string) => void;
|
|
8
|
+
onRawValidationChange?: (next: {
|
|
9
|
+
isValid: boolean;
|
|
10
|
+
errors: string[];
|
|
11
|
+
jsonSyntaxValid: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
onNotify?: (message: string, type: BuilderNotifyType) => void;
|
|
14
|
+
isMaximized?: boolean;
|
|
15
|
+
onToggleMaximize?: () => void;
|
|
8
16
|
}
|
|
9
|
-
/**
|
|
10
|
-
* JSON Editor Panel - Left side of Section Builder
|
|
11
|
-
*/
|
|
12
17
|
export declare const JSONEditorPanel: React.FC<JSONEditorPanelProps>;
|
|
13
18
|
export {};
|
|
14
19
|
//# sourceMappingURL=JSONEditorPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAM5C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAMtE,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,eAAe,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACzG,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8b1D,CAAC"}
|
|
@@ -7,9 +7,6 @@ interface PropertyEditorProps {
|
|
|
7
7
|
onDelete: (node: TreeNode) => void;
|
|
8
8
|
onDuplicate: (node: TreeNode) => void;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Property editor component for editing selected node properties
|
|
12
|
-
*/
|
|
13
10
|
export declare const PropertyEditor: React.FC<PropertyEditorProps>;
|
|
14
11
|
export {};
|
|
15
12
|
//# sourceMappingURL=PropertyEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/PropertyEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertyEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/PropertyEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAMvD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,GAAG,WAAW,GAAG,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACrG,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiyBxD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchableSelectProps {
|
|
3
|
+
options: readonly string[];
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SearchableSelect: React.FC<SearchableSelectProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SearchableSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SearchableSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,UAAU,qBAAqB;IAC7B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwH5D,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SectionConfig } from '../../types';
|
|
3
|
+
export type BuilderNotifyType = 'success' | 'error' | 'info' | 'warn';
|
|
3
4
|
export interface SectionBuilderProps {
|
|
4
5
|
initialSection?: SectionConfig;
|
|
5
6
|
onChange?: (section: SectionConfig) => void;
|
|
6
7
|
onSave?: (section: SectionConfig) => void;
|
|
8
|
+
onNotify?: (message: string, type: BuilderNotifyType) => void;
|
|
7
9
|
}
|
|
8
|
-
/**
|
|
9
|
-
* Main Section Builder Component
|
|
10
|
-
* Provides dual-panel interface for editing section JSON
|
|
11
|
-
*/
|
|
12
10
|
export declare const SectionBuilder: React.FC<SectionBuilderProps>;
|
|
13
11
|
//# sourceMappingURL=SectionBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAY3E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/D;AAID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuqBxD,CAAC"}
|
|
@@ -14,13 +14,16 @@ interface SectionTreeProps {
|
|
|
14
14
|
selectedNode?: TreeNode | null;
|
|
15
15
|
onSelectNode: (node: TreeNode | null) => void;
|
|
16
16
|
onAddPanel: (parentId: string, parentType: TreeNodeType) => void;
|
|
17
|
-
onAddWidget: (parentId: string) => void;
|
|
17
|
+
onAddWidget: (parentId: string, widgetType?: string) => void;
|
|
18
18
|
onDeleteNode: (node: TreeNode) => void;
|
|
19
19
|
onDuplicateNode: (node: TreeNode) => void;
|
|
20
|
+
onMoveNode?: (args: {
|
|
21
|
+
kind: 'panel' | 'widget';
|
|
22
|
+
parentPanelId: string | null;
|
|
23
|
+
activeId: string;
|
|
24
|
+
overId: string;
|
|
25
|
+
}) => void;
|
|
20
26
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Tree view component for section structure
|
|
23
|
-
*/
|
|
24
27
|
export declare const SectionTree: React.FC<SectionTreeProps>;
|
|
25
28
|
export {};
|
|
26
29
|
//# sourceMappingURL=SectionTree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionTree.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionTree.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAY3E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,GAAG,WAAW,GAAG,gBAAgB,CAAC;IACrD,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,KAAK,IAAI,CAAC;IACjE,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE;QAClB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;QACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;CACZ;AAwED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkJlD,CAAC"}
|
|
@@ -7,16 +7,18 @@ interface VisualBuilderPanelProps {
|
|
|
7
7
|
onSelectNode: (node: TreeNode | null) => void;
|
|
8
8
|
onSectionChange: (section: SectionConfig) => void;
|
|
9
9
|
onAddPanel: (parentId: string, parentType: 'section' | 'panel' | 'widget') => void;
|
|
10
|
-
onAddWidget: (parentId: string) => void;
|
|
10
|
+
onAddWidget: (parentId: string, widgetType?: string) => void;
|
|
11
11
|
onDeleteNode: (node: TreeNode) => void;
|
|
12
12
|
onDuplicateNode: (node: TreeNode) => void;
|
|
13
|
-
|
|
13
|
+
onMoveNode?: (args: {
|
|
14
|
+
kind: 'panel' | 'widget';
|
|
15
|
+
parentPanelId: string | null;
|
|
16
|
+
activeId: string;
|
|
17
|
+
overId: string;
|
|
18
|
+
}) => void;
|
|
14
19
|
isMaximized?: boolean;
|
|
15
20
|
onToggleMaximize?: () => void;
|
|
16
21
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Visual Builder Panel - Right side of Section Builder
|
|
19
|
-
*/
|
|
20
22
|
export declare const VisualBuilderPanel: React.FC<VisualBuilderPanelProps>;
|
|
21
23
|
export {};
|
|
22
24
|
//# sourceMappingURL=VisualBuilderPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualBuilderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/VisualBuilderPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"VisualBuilderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/VisualBuilderPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAe,QAAQ,EAAE,MAAM,eAAe,CAAC;AAOtD,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,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE;QAClB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;QACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8RhE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { SectionBuilder } from './SectionBuilder';
|
|
2
|
-
export type { SectionBuilderProps } from './SectionBuilder';
|
|
2
|
+
export type { SectionBuilderProps, BuilderNotifyType } from './SectionBuilder';
|
|
3
3
|
export { JSONEditorPanel } from './JSONEditorPanel';
|
|
4
4
|
export { VisualBuilderPanel } from './VisualBuilderPanel';
|
|
5
5
|
export { SectionTree } from './SectionTree';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,cAAc,WAAW,CAAC"}
|