@openg2p/registry-widgets 0.1.0 → 0.1.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/components/PanelRenderer.d.ts.map +1 -1
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +13 -0
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -0
- package/dist/components/SectionBuilder/PropertyEditor.d.ts +15 -0
- package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -0
- package/dist/components/SectionBuilder/SectionBuilder.d.ts +13 -0
- package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -0
- package/dist/components/SectionBuilder/SectionTree.d.ts +26 -0
- package/dist/components/SectionBuilder/SectionTree.d.ts.map +1 -0
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +19 -0
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -0
- package/dist/components/SectionBuilder/index.d.ts +9 -0
- package/dist/components/SectionBuilder/index.d.ts.map +1 -0
- package/dist/components/SectionBuilder/schemas.d.ts +1947 -0
- package/dist/components/SectionBuilder/schemas.d.ts.map +1 -0
- package/dist/components/SectionRenderer.d.ts +4 -4
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/SectionsContainer.d.ts +2 -1
- package/dist/components/SectionsContainer.d.ts.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.esm.js +558 -173
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +558 -173
- package/dist/index.js.map +1 -1
- package/dist/utils/schemaNamespace.d.ts +12 -0
- package/dist/utils/schemaNamespace.d.ts.map +1 -0
- package/dist/widgets/RadioWidget.d.ts.map +1 -1
- package/dist/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/widgets/TableWidget.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelRenderer.d.ts","sourceRoot":"","sources":["../../src/components/PanelRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,+DAM3B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"PanelRenderer.d.ts","sourceRoot":"","sources":["../../src/components/PanelRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,+DAM3B,kBAAkB,4CAmKpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionConfig } from '../../types';
|
|
3
|
+
interface JSONEditorPanelProps {
|
|
4
|
+
section: SectionConfig;
|
|
5
|
+
onChange: (section: SectionConfig) => void;
|
|
6
|
+
context?: 'section' | 'panel' | 'widget';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* JSON Editor Panel - Left side of Section Builder
|
|
10
|
+
*/
|
|
11
|
+
export declare const JSONEditorPanel: React.FC<JSONEditorPanelProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=JSONEditorPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,UAAU,oBAAoB;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqG1D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionConfig, PanelConfig, BaseWidgetConfig } from '../../types';
|
|
3
|
+
import { TreeNode } from './SectionTree';
|
|
4
|
+
interface PropertyEditorProps {
|
|
5
|
+
node: TreeNode | null;
|
|
6
|
+
onChange: (node: TreeNode, updates: Partial<SectionConfig | PanelConfig | BaseWidgetConfig>) => void;
|
|
7
|
+
onDelete: (node: TreeNode) => void;
|
|
8
|
+
onDuplicate: (node: TreeNode) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Property editor component for editing selected node properties
|
|
12
|
+
*/
|
|
13
|
+
export declare const PropertyEditor: React.FC<PropertyEditorProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=PropertyEditor.d.ts.map
|
|
@@ -0,0 +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,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAGvD,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;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0bxD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionConfig } from '../../types';
|
|
3
|
+
export interface SectionBuilderProps {
|
|
4
|
+
initialSection?: SectionConfig;
|
|
5
|
+
onChange?: (section: SectionConfig) => void;
|
|
6
|
+
onSave?: (section: SectionConfig) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Main Section Builder Component
|
|
10
|
+
* Provides dual-panel interface for editing section JSON
|
|
11
|
+
*/
|
|
12
|
+
export declare const SectionBuilder: React.FC<SectionBuilderProps>;
|
|
13
|
+
//# sourceMappingURL=SectionBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAK3E,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;CAC3C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsOxD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionConfig, PanelConfig, BaseWidgetConfig } from '../../types';
|
|
3
|
+
export type TreeNodeType = 'section' | 'panel' | 'widget';
|
|
4
|
+
export interface TreeNode {
|
|
5
|
+
type: TreeNodeType;
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
data: SectionConfig | PanelConfig | BaseWidgetConfig;
|
|
9
|
+
children?: TreeNode[];
|
|
10
|
+
parent?: TreeNode;
|
|
11
|
+
}
|
|
12
|
+
interface SectionTreeProps {
|
|
13
|
+
section: SectionConfig;
|
|
14
|
+
selectedNode?: TreeNode | null;
|
|
15
|
+
onSelectNode: (node: TreeNode | null) => void;
|
|
16
|
+
onAddPanel: (parentId: string, parentType: TreeNodeType) => void;
|
|
17
|
+
onAddWidget: (parentId: string) => void;
|
|
18
|
+
onDeleteNode: (node: TreeNode) => void;
|
|
19
|
+
onDuplicateNode: (node: TreeNode) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Tree view component for section structure
|
|
23
|
+
*/
|
|
24
|
+
export declare const SectionTree: React.FC<SectionTreeProps>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=SectionTree.d.ts.map
|
|
@@ -0,0 +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;AAE3E,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,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC3C;AA+CD;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8MlD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionConfig } from '../../types';
|
|
3
|
+
import { TreeNode } from './SectionTree';
|
|
4
|
+
interface VisualBuilderPanelProps {
|
|
5
|
+
section: SectionConfig;
|
|
6
|
+
selectedNode: TreeNode | null;
|
|
7
|
+
onSelectNode: (node: TreeNode | null) => void;
|
|
8
|
+
onSectionChange: (section: SectionConfig) => void;
|
|
9
|
+
onAddPanel: (parentId: string, parentType: 'section' | 'panel' | 'widget') => void;
|
|
10
|
+
onAddWidget: (parentId: string) => void;
|
|
11
|
+
onDeleteNode: (node: TreeNode) => void;
|
|
12
|
+
onDuplicateNode: (node: TreeNode) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Visual Builder Panel - Right side of Section Builder
|
|
16
|
+
*/
|
|
17
|
+
export declare const VisualBuilderPanel: React.FC<VisualBuilderPanelProps>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=VisualBuilderPanel.d.ts.map
|
|
@@ -0,0 +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;AAGtD,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;CAC3C;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA6MhE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { SectionBuilder } from './SectionBuilder';
|
|
2
|
+
export type { SectionBuilderProps } from './SectionBuilder';
|
|
3
|
+
export { JSONEditorPanel } from './JSONEditorPanel';
|
|
4
|
+
export { VisualBuilderPanel } from './VisualBuilderPanel';
|
|
5
|
+
export { SectionTree } from './SectionTree';
|
|
6
|
+
export type { TreeNode, TreeNodeType } from './SectionTree';
|
|
7
|
+
export { PropertyEditor } from './PropertyEditor';
|
|
8
|
+
export * from './schemas';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;AAC5D,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"}
|