@walkeros/explorer 0.3.1 → 1.0.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/AGENT.md +406 -0
- package/STYLE.md +993 -0
- package/dist/__mocks__/@monaco-editor/react.d.ts +3 -0
- package/dist/__mocks__/@monaco-editor/react.d.ts.map +1 -0
- package/dist/__mocks__/@monaco-editor/react.js +4 -0
- package/dist/__mocks__/@monaco-editor/react.js.map +1 -0
- package/dist/chunk-VWWAIDNX.mjs +2939 -0
- package/dist/chunk-VWWAIDNX.mjs.map +1 -0
- package/dist/components/atoms/base-mapping-pane.d.ts +85 -0
- package/dist/components/atoms/base-mapping-pane.d.ts.map +1 -0
- package/dist/components/atoms/base-mapping-pane.js +53 -0
- package/dist/components/atoms/base-mapping-pane.js.map +1 -0
- package/dist/components/atoms/box.d.ts +27 -0
- package/dist/components/atoms/box.d.ts.map +1 -0
- package/dist/components/atoms/box.js +86 -0
- package/dist/components/atoms/box.js.map +1 -0
- package/dist/components/atoms/box.stories.d.ts +34 -0
- package/dist/components/atoms/box.stories.d.ts.map +1 -0
- package/dist/components/atoms/box.stories.js +104 -0
- package/dist/components/atoms/box.stories.js.map +1 -0
- package/dist/components/atoms/button-group.d.ts +17 -0
- package/dist/components/atoms/button-group.d.ts.map +1 -0
- package/dist/components/atoms/button-group.js +12 -0
- package/dist/components/atoms/button-group.js.map +1 -0
- package/dist/components/atoms/button-group.stories.d.ts +18 -0
- package/dist/components/atoms/button-group.stories.d.ts.map +1 -0
- package/dist/components/atoms/button-group.stories.js +35 -0
- package/dist/components/atoms/button-group.stories.js.map +1 -0
- package/dist/components/atoms/button-link.d.ts +12 -0
- package/dist/components/atoms/button-link.d.ts.map +1 -0
- package/dist/components/atoms/button-link.js +10 -0
- package/dist/components/atoms/button-link.js.map +1 -0
- package/dist/components/atoms/button-link.stories.d.ts +13 -0
- package/dist/components/atoms/button-link.stories.d.ts.map +1 -0
- package/dist/components/atoms/button-link.stories.js +64 -0
- package/dist/components/atoms/button-link.stories.js.map +1 -0
- package/dist/components/atoms/button.d.ts +15 -0
- package/dist/components/atoms/button.d.ts.map +1 -0
- package/dist/components/atoms/button.js +11 -0
- package/dist/components/atoms/button.js.map +1 -0
- package/dist/components/atoms/code.d.ts +55 -0
- package/dist/components/atoms/code.d.ts.map +1 -0
- package/dist/components/atoms/code.js +251 -0
- package/dist/components/atoms/code.js.map +1 -0
- package/dist/components/atoms/code.stories.d.ts +53 -0
- package/dist/components/atoms/code.stories.d.ts.map +1 -0
- package/dist/components/atoms/code.stories.js +190 -0
- package/dist/components/atoms/code.stories.js.map +1 -0
- package/dist/components/atoms/config-tile.d.ts +38 -0
- package/dist/components/atoms/config-tile.d.ts.map +1 -0
- package/dist/components/atoms/config-tile.js +29 -0
- package/dist/components/atoms/config-tile.js.map +1 -0
- package/dist/components/atoms/consent-state-tile.d.ts +14 -0
- package/dist/components/atoms/consent-state-tile.d.ts.map +1 -0
- package/dist/components/atoms/consent-state-tile.js +5 -0
- package/dist/components/atoms/consent-state-tile.js.map +1 -0
- package/dist/components/atoms/field-header.d.ts +41 -0
- package/dist/components/atoms/field-header.d.ts.map +1 -0
- package/dist/components/atoms/field-header.js +42 -0
- package/dist/components/atoms/field-header.js.map +1 -0
- package/dist/components/atoms/footer.d.ts +21 -0
- package/dist/components/atoms/footer.d.ts.map +1 -0
- package/dist/components/atoms/footer.js +19 -0
- package/dist/components/atoms/footer.js.map +1 -0
- package/dist/components/atoms/grid.d.ts +65 -0
- package/dist/components/atoms/grid.d.ts.map +1 -0
- package/dist/components/atoms/grid.js +169 -0
- package/dist/components/atoms/grid.js.map +1 -0
- package/dist/components/atoms/header.d.ts +7 -0
- package/dist/components/atoms/header.d.ts.map +1 -0
- package/dist/components/atoms/header.js +5 -0
- package/dist/components/atoms/header.js.map +1 -0
- package/dist/components/atoms/icon-button.d.ts +26 -0
- package/dist/components/atoms/icon-button.d.ts.map +1 -0
- package/dist/components/atoms/icon-button.js +39 -0
- package/dist/components/atoms/icon-button.js.map +1 -0
- package/dist/components/atoms/icons/icons.d.ts +2 -0
- package/dist/components/atoms/icons/icons.d.ts.map +1 -0
- package/dist/components/atoms/icons/icons.js +7 -0
- package/dist/components/atoms/icons/icons.js.map +1 -0
- package/dist/components/atoms/icons/index.d.ts +3 -0
- package/dist/components/atoms/icons/index.d.ts.map +1 -0
- package/dist/components/atoms/icons/index.js +3 -0
- package/dist/components/atoms/icons/index.js.map +1 -0
- package/dist/components/atoms/mapping-boolean.d.ts +31 -0
- package/dist/components/atoms/mapping-boolean.d.ts.map +1 -0
- package/dist/components/atoms/mapping-boolean.js +38 -0
- package/dist/components/atoms/mapping-boolean.js.map +1 -0
- package/dist/components/atoms/mapping-breadcrumb.d.ts +14 -0
- package/dist/components/atoms/mapping-breadcrumb.d.ts.map +1 -0
- package/dist/components/atoms/mapping-breadcrumb.js +10 -0
- package/dist/components/atoms/mapping-breadcrumb.js.map +1 -0
- package/dist/components/atoms/mapping-collapsible.d.ts +54 -0
- package/dist/components/atoms/mapping-collapsible.d.ts.map +1 -0
- package/dist/components/atoms/mapping-collapsible.js +87 -0
- package/dist/components/atoms/mapping-collapsible.js.map +1 -0
- package/dist/components/atoms/mapping-condition-field.d.ts +18 -0
- package/dist/components/atoms/mapping-condition-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-condition-field.js +34 -0
- package/dist/components/atoms/mapping-condition-field.js.map +1 -0
- package/dist/components/atoms/mapping-condition.d.ts +34 -0
- package/dist/components/atoms/mapping-condition.d.ts.map +1 -0
- package/dist/components/atoms/mapping-condition.js +70 -0
- package/dist/components/atoms/mapping-condition.js.map +1 -0
- package/dist/components/atoms/mapping-confirm-button.d.ts +29 -0
- package/dist/components/atoms/mapping-confirm-button.d.ts.map +1 -0
- package/dist/components/atoms/mapping-confirm-button.js +42 -0
- package/dist/components/atoms/mapping-confirm-button.js.map +1 -0
- package/dist/components/atoms/mapping-consent-field.d.ts +20 -0
- package/dist/components/atoms/mapping-consent-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-consent-field.js +36 -0
- package/dist/components/atoms/mapping-consent-field.js.map +1 -0
- package/dist/components/atoms/mapping-consent.d.ts +34 -0
- package/dist/components/atoms/mapping-consent.d.ts.map +1 -0
- package/dist/components/atoms/mapping-consent.js +86 -0
- package/dist/components/atoms/mapping-consent.js.map +1 -0
- package/dist/components/atoms/mapping-data-field.d.ts +23 -0
- package/dist/components/atoms/mapping-data-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-data-field.js +38 -0
- package/dist/components/atoms/mapping-data-field.js.map +1 -0
- package/dist/components/atoms/mapping-data.d.ts +34 -0
- package/dist/components/atoms/mapping-data.d.ts.map +1 -0
- package/dist/components/atoms/mapping-data.js +76 -0
- package/dist/components/atoms/mapping-data.js.map +1 -0
- package/dist/components/atoms/mapping-enum-select.d.ts +28 -0
- package/dist/components/atoms/mapping-enum-select.d.ts.map +1 -0
- package/dist/components/atoms/mapping-enum-select.js +142 -0
- package/dist/components/atoms/mapping-enum-select.js.map +1 -0
- package/dist/components/atoms/mapping-fn-field.d.ts +23 -0
- package/dist/components/atoms/mapping-fn-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-fn-field.js +38 -0
- package/dist/components/atoms/mapping-fn-field.js.map +1 -0
- package/dist/components/atoms/mapping-fn.d.ts +34 -0
- package/dist/components/atoms/mapping-fn.d.ts.map +1 -0
- package/dist/components/atoms/mapping-fn.js +70 -0
- package/dist/components/atoms/mapping-fn.js.map +1 -0
- package/dist/components/atoms/mapping-grid.d.ts +45 -0
- package/dist/components/atoms/mapping-grid.d.ts.map +1 -0
- package/dist/components/atoms/mapping-grid.js +83 -0
- package/dist/components/atoms/mapping-grid.js.map +1 -0
- package/dist/components/atoms/mapping-input-with-button.d.ts +54 -0
- package/dist/components/atoms/mapping-input-with-button.d.ts.map +1 -0
- package/dist/components/atoms/mapping-input-with-button.js +54 -0
- package/dist/components/atoms/mapping-input-with-button.js.map +1 -0
- package/dist/components/atoms/mapping-input.d.ts +44 -0
- package/dist/components/atoms/mapping-input.d.ts.map +1 -0
- package/dist/components/atoms/mapping-input.js +35 -0
- package/dist/components/atoms/mapping-input.js.map +1 -0
- package/dist/components/atoms/mapping-key-field.d.ts +23 -0
- package/dist/components/atoms/mapping-key-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-key-field.js +39 -0
- package/dist/components/atoms/mapping-key-field.js.map +1 -0
- package/dist/components/atoms/mapping-key.d.ts +35 -0
- package/dist/components/atoms/mapping-key.d.ts.map +1 -0
- package/dist/components/atoms/mapping-key.js +48 -0
- package/dist/components/atoms/mapping-key.js.map +1 -0
- package/dist/components/atoms/mapping-map-entry.d.ts +31 -0
- package/dist/components/atoms/mapping-map-entry.d.ts.map +1 -0
- package/dist/components/atoms/mapping-map-entry.js +68 -0
- package/dist/components/atoms/mapping-map-entry.js.map +1 -0
- package/dist/components/atoms/mapping-number.d.ts +32 -0
- package/dist/components/atoms/mapping-number.d.ts.map +1 -0
- package/dist/components/atoms/mapping-number.js +52 -0
- package/dist/components/atoms/mapping-number.js.map +1 -0
- package/dist/components/atoms/mapping-object-explorer-field.d.ts +30 -0
- package/dist/components/atoms/mapping-object-explorer-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-object-explorer-field.js +48 -0
- package/dist/components/atoms/mapping-object-explorer-field.js.map +1 -0
- package/dist/components/atoms/mapping-object-explorer.d.ts +59 -0
- package/dist/components/atoms/mapping-object-explorer.d.ts.map +1 -0
- package/dist/components/atoms/mapping-object-explorer.js +215 -0
- package/dist/components/atoms/mapping-object-explorer.js.map +1 -0
- package/dist/components/atoms/mapping-set-entry.d.ts +31 -0
- package/dist/components/atoms/mapping-set-entry.d.ts.map +1 -0
- package/dist/components/atoms/mapping-set-entry.js +66 -0
- package/dist/components/atoms/mapping-set-entry.js.map +1 -0
- package/dist/components/atoms/mapping-settings-field.d.ts +33 -0
- package/dist/components/atoms/mapping-settings-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-settings-field.js +48 -0
- package/dist/components/atoms/mapping-settings-field.js.map +1 -0
- package/dist/components/atoms/mapping-settings.d.ts +44 -0
- package/dist/components/atoms/mapping-settings.d.ts.map +1 -0
- package/dist/components/atoms/mapping-settings.js +108 -0
- package/dist/components/atoms/mapping-settings.js.map +1 -0
- package/dist/components/atoms/mapping-string.d.ts +19 -0
- package/dist/components/atoms/mapping-string.d.ts.map +1 -0
- package/dist/components/atoms/mapping-string.js +26 -0
- package/dist/components/atoms/mapping-string.js.map +1 -0
- package/dist/components/atoms/mapping-tab.d.ts +15 -0
- package/dist/components/atoms/mapping-tab.d.ts.map +1 -0
- package/dist/components/atoms/mapping-tab.js +8 -0
- package/dist/components/atoms/mapping-tab.js.map +1 -0
- package/dist/components/atoms/mapping-type-button.d.ts +19 -0
- package/dist/components/atoms/mapping-type-button.d.ts.map +1 -0
- package/dist/components/atoms/mapping-type-button.js +5 -0
- package/dist/components/atoms/mapping-type-button.js.map +1 -0
- package/dist/components/atoms/mapping-validate-field.d.ts +23 -0
- package/dist/components/atoms/mapping-validate-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-validate-field.js +38 -0
- package/dist/components/atoms/mapping-validate-field.js.map +1 -0
- package/dist/components/atoms/mapping-validate.d.ts +34 -0
- package/dist/components/atoms/mapping-validate.d.ts.map +1 -0
- package/dist/components/atoms/mapping-validate.js +68 -0
- package/dist/components/atoms/mapping-validate.js.map +1 -0
- package/dist/components/atoms/mapping-value.d.ts +17 -0
- package/dist/components/atoms/mapping-value.d.ts.map +1 -0
- package/dist/components/atoms/mapping-value.js +127 -0
- package/dist/components/atoms/mapping-value.js.map +1 -0
- package/dist/components/atoms/mdx-code.d.ts +33 -0
- package/dist/components/atoms/mdx-code.d.ts.map +1 -0
- package/dist/components/atoms/mdx-code.js +69 -0
- package/dist/components/atoms/mdx-code.js.map +1 -0
- package/dist/components/atoms/pane-header.d.ts +24 -0
- package/dist/components/atoms/pane-header.d.ts.map +1 -0
- package/dist/components/atoms/pane-header.js +5 -0
- package/dist/components/atoms/pane-header.js.map +1 -0
- package/dist/components/atoms/panel-hints.d.ts +35 -0
- package/dist/components/atoms/panel-hints.d.ts.map +1 -0
- package/dist/components/atoms/panel-hints.js +5 -0
- package/dist/components/atoms/panel-hints.js.map +1 -0
- package/dist/components/atoms/preview-footer.d.ts +32 -0
- package/dist/components/atoms/preview-footer.d.ts.map +1 -0
- package/dist/components/atoms/preview-footer.js +31 -0
- package/dist/components/atoms/preview-footer.js.map +1 -0
- package/dist/components/atoms/toggle.d.ts +9 -0
- package/dist/components/atoms/toggle.d.ts.map +1 -0
- package/dist/components/atoms/toggle.js +6 -0
- package/dist/components/atoms/toggle.js.map +1 -0
- package/dist/components/demos/DestinationDemo.d.ts +48 -0
- package/dist/components/demos/DestinationDemo.d.ts.map +1 -0
- package/dist/components/demos/DestinationDemo.js +105 -0
- package/dist/components/demos/DestinationDemo.js.map +1 -0
- package/dist/components/demos/DestinationDemo.stories.d.ts +17 -0
- package/dist/components/demos/DestinationDemo.stories.d.ts.map +1 -0
- package/dist/components/demos/DestinationDemo.stories.js +53 -0
- package/dist/components/demos/DestinationDemo.stories.js.map +1 -0
- package/dist/components/demos/DestinationInitDemo.d.ts +34 -0
- package/dist/components/demos/DestinationInitDemo.d.ts.map +1 -0
- package/dist/components/demos/DestinationInitDemo.js +73 -0
- package/dist/components/demos/DestinationInitDemo.js.map +1 -0
- package/dist/components/demos/DestinationInitDemo.stories.d.ts +17 -0
- package/dist/components/demos/DestinationInitDemo.stories.d.ts.map +1 -0
- package/dist/components/demos/DestinationInitDemo.stories.js +39 -0
- package/dist/components/demos/DestinationInitDemo.stories.js.map +1 -0
- package/dist/components/demos/MappingCode.d.ts +34 -0
- package/dist/components/demos/MappingCode.d.ts.map +1 -0
- package/dist/components/demos/MappingCode.js +54 -0
- package/dist/components/demos/MappingCode.js.map +1 -0
- package/dist/components/demos/MappingCode.stories.d.ts +16 -0
- package/dist/components/demos/MappingCode.stories.d.ts.map +1 -0
- package/dist/components/demos/MappingCode.stories.js +42 -0
- package/dist/components/demos/MappingCode.stories.js.map +1 -0
- package/dist/components/demos/MappingDemo.d.ts +41 -0
- package/dist/components/demos/MappingDemo.d.ts.map +1 -0
- package/dist/components/demos/MappingDemo.js +62 -0
- package/dist/components/demos/MappingDemo.js.map +1 -0
- package/dist/components/demos/MappingDemo.stories.d.ts +16 -0
- package/dist/components/demos/MappingDemo.stories.d.ts.map +1 -0
- package/dist/components/demos/MappingDemo.stories.js +63 -0
- package/dist/components/demos/MappingDemo.stories.js.map +1 -0
- package/dist/components/demos/PromotionPlayground.d.ts +25 -0
- package/dist/components/demos/PromotionPlayground.d.ts.map +1 -0
- package/dist/components/demos/PromotionPlayground.js +280 -0
- package/dist/components/demos/PromotionPlayground.js.map +1 -0
- package/dist/components/demos/PromotionPlayground.stories.d.ts +27 -0
- package/dist/components/demos/PromotionPlayground.stories.d.ts.map +1 -0
- package/dist/components/demos/PromotionPlayground.stories.js +32 -0
- package/dist/components/demos/PromotionPlayground.stories.js.map +1 -0
- package/dist/components/forms/field-registry.d.ts +42 -0
- package/dist/components/forms/field-registry.d.ts.map +1 -0
- package/dist/components/forms/field-registry.js +64 -0
- package/dist/components/forms/field-registry.js.map +1 -0
- package/dist/components/forms/mapping-form-wrapper.d.ts +14 -0
- package/dist/components/forms/mapping-form-wrapper.d.ts.map +1 -0
- package/dist/components/forms/mapping-form-wrapper.js +105 -0
- package/dist/components/forms/mapping-form-wrapper.js.map +1 -0
- package/dist/components/forms/widget-registry.d.ts +42 -0
- package/dist/components/forms/widget-registry.d.ts.map +1 -0
- package/dist/components/forms/widget-registry.js +54 -0
- package/dist/components/forms/widget-registry.js.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts +24 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.js +10 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.js.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts +7 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js +71 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js.map +1 -0
- package/dist/components/molecules/architecture-flow/index.d.ts +3 -0
- package/dist/components/molecules/architecture-flow/index.d.ts.map +1 -0
- package/dist/components/molecules/architecture-flow/index.js +2 -0
- package/dist/components/molecules/architecture-flow/index.js.map +1 -0
- package/dist/components/molecules/auto-select.d.ts +29 -0
- package/dist/components/molecules/auto-select.d.ts.map +1 -0
- package/dist/components/molecules/auto-select.js +188 -0
- package/dist/components/molecules/auto-select.js.map +1 -0
- package/dist/components/molecules/code-box.d.ts +69 -0
- package/dist/components/molecules/code-box.d.ts.map +1 -0
- package/dist/components/molecules/code-box.js +109 -0
- package/dist/components/molecules/code-box.js.map +1 -0
- package/dist/components/molecules/code-box.stories.d.ts +30 -0
- package/dist/components/molecules/code-box.stories.d.ts.map +1 -0
- package/dist/components/molecules/code-box.stories.js +127 -0
- package/dist/components/molecules/code-box.stories.js.map +1 -0
- package/dist/components/molecules/code-snippet.d.ts +58 -0
- package/dist/components/molecules/code-snippet.d.ts.map +1 -0
- package/dist/components/molecules/code-snippet.js +72 -0
- package/dist/components/molecules/code-snippet.js.map +1 -0
- package/dist/components/molecules/code-snippet.stories.d.ts +20 -0
- package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -0
- package/dist/components/molecules/code-snippet.stories.js +68 -0
- package/dist/components/molecules/code-snippet.stories.js.map +1 -0
- package/dist/components/molecules/config-overview-pane.d.ts +44 -0
- package/dist/components/molecules/config-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/config-overview-pane.js +75 -0
- package/dist/components/molecules/config-overview-pane.js.map +1 -0
- package/dist/components/molecules/config-tree-sidebar.d.ts +46 -0
- package/dist/components/molecules/config-tree-sidebar.d.ts.map +1 -0
- package/dist/components/molecules/config-tree-sidebar.js +183 -0
- package/dist/components/molecules/config-tree-sidebar.js.map +1 -0
- package/dist/components/molecules/destination-config-overview-pane.d.ts +33 -0
- package/dist/components/molecules/destination-config-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/destination-config-overview-pane.js +153 -0
- package/dist/components/molecules/destination-config-overview-pane.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.d.ts +74 -0
- package/dist/components/molecules/flow-map/FlowMap.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.js +1028 -0
- package/dist/components/molecules/flow-map/FlowMap.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts +73 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.js +587 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts +45 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js +195 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js.map +1 -0
- package/dist/components/molecules/flow-map/index.d.ts +3 -0
- package/dist/components/molecules/flow-map/index.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/index.js +2 -0
- package/dist/components/molecules/flow-map/index.js.map +1 -0
- package/dist/components/molecules/mapping-batch-pane-view.d.ts +22 -0
- package/dist/components/molecules/mapping-batch-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-batch-pane-view.js +45 -0
- package/dist/components/molecules/mapping-batch-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-boolean-pane-view.d.ts +28 -0
- package/dist/components/molecules/mapping-boolean-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-boolean-pane-view.js +34 -0
- package/dist/components/molecules/mapping-boolean-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-condition-pane-view.d.ts +18 -0
- package/dist/components/molecules/mapping-condition-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-condition-pane-view.js +63 -0
- package/dist/components/molecules/mapping-condition-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-consent-pane-view.d.ts +16 -0
- package/dist/components/molecules/mapping-consent-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-consent-pane-view.js +65 -0
- package/dist/components/molecules/mapping-consent-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-consent-row.d.ts +29 -0
- package/dist/components/molecules/mapping-consent-row.d.ts.map +1 -0
- package/dist/components/molecules/mapping-consent-row.js +26 -0
- package/dist/components/molecules/mapping-consent-row.js.map +1 -0
- package/dist/components/molecules/mapping-entity-pane.d.ts +17 -0
- package/dist/components/molecules/mapping-entity-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-entity-pane.js +68 -0
- package/dist/components/molecules/mapping-entity-pane.js.map +1 -0
- package/dist/components/molecules/mapping-enum-pane-view.d.ts +40 -0
- package/dist/components/molecules/mapping-enum-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-enum-pane-view.js +32 -0
- package/dist/components/molecules/mapping-enum-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-fn-pane-view.d.ts +18 -0
- package/dist/components/molecules/mapping-fn-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-fn-pane-view.js +77 -0
- package/dist/components/molecules/mapping-fn-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-function-pane-base.d.ts +53 -0
- package/dist/components/molecules/mapping-function-pane-base.d.ts.map +1 -0
- package/dist/components/molecules/mapping-function-pane-base.js +60 -0
- package/dist/components/molecules/mapping-function-pane-base.js.map +1 -0
- package/dist/components/molecules/mapping-key-pane-view.d.ts +23 -0
- package/dist/components/molecules/mapping-key-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-key-pane-view.js +12 -0
- package/dist/components/molecules/mapping-key-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-loop-field.d.ts +44 -0
- package/dist/components/molecules/mapping-loop-field.d.ts.map +1 -0
- package/dist/components/molecules/mapping-loop-field.js +133 -0
- package/dist/components/molecules/mapping-loop-field.js.map +1 -0
- package/dist/components/molecules/mapping-loop-pane-view.d.ts +28 -0
- package/dist/components/molecules/mapping-loop-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-loop-pane-view.js +44 -0
- package/dist/components/molecules/mapping-loop-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-map-field.d.ts +31 -0
- package/dist/components/molecules/mapping-map-field.d.ts.map +1 -0
- package/dist/components/molecules/mapping-map-field.js +120 -0
- package/dist/components/molecules/mapping-map-field.js.map +1 -0
- package/dist/components/molecules/mapping-map-overview.d.ts +13 -0
- package/dist/components/molecules/mapping-map-overview.d.ts.map +1 -0
- package/dist/components/molecules/mapping-map-overview.js +58 -0
- package/dist/components/molecules/mapping-map-overview.js.map +1 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.d.ts +53 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.d.ts.map +1 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.js +127 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.js.map +1 -0
- package/dist/components/molecules/mapping-name-pane-view.d.ts +22 -0
- package/dist/components/molecules/mapping-name-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-name-pane-view.js +38 -0
- package/dist/components/molecules/mapping-name-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-navigation-header.d.ts +27 -0
- package/dist/components/molecules/mapping-navigation-header.d.ts.map +1 -0
- package/dist/components/molecules/mapping-navigation-header.js +7 -0
- package/dist/components/molecules/mapping-navigation-header.js.map +1 -0
- package/dist/components/molecules/mapping-overview-pane.d.ts +14 -0
- package/dist/components/molecules/mapping-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-overview-pane.js +60 -0
- package/dist/components/molecules/mapping-overview-pane.js.map +1 -0
- package/dist/components/molecules/mapping-pane.d.ts +52 -0
- package/dist/components/molecules/mapping-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-pane.js +155 -0
- package/dist/components/molecules/mapping-pane.js.map +1 -0
- package/dist/components/molecules/mapping-policy-overview-pane.d.ts +26 -0
- package/dist/components/molecules/mapping-policy-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-policy-overview-pane.js +69 -0
- package/dist/components/molecules/mapping-policy-overview-pane.js.map +1 -0
- package/dist/components/molecules/mapping-primitive-pane-view.d.ts +30 -0
- package/dist/components/molecules/mapping-primitive-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-primitive-pane-view.js +43 -0
- package/dist/components/molecules/mapping-primitive-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-rule-pane-view.d.ts +25 -0
- package/dist/components/molecules/mapping-rule-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-rule-pane-view.js +35 -0
- package/dist/components/molecules/mapping-rule-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-set-field.d.ts +34 -0
- package/dist/components/molecules/mapping-set-field.d.ts.map +1 -0
- package/dist/components/molecules/mapping-set-field.js +160 -0
- package/dist/components/molecules/mapping-set-field.js.map +1 -0
- package/dist/components/molecules/mapping-set-pane-view.d.ts +31 -0
- package/dist/components/molecules/mapping-set-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-set-pane-view.js +96 -0
- package/dist/components/molecules/mapping-set-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-tab-bar.d.ts +15 -0
- package/dist/components/molecules/mapping-tab-bar.d.ts.map +1 -0
- package/dist/components/molecules/mapping-tab-bar.js +9 -0
- package/dist/components/molecules/mapping-tab-bar.js.map +1 -0
- package/dist/components/molecules/mapping-tree-sidebar.d.ts +59 -0
- package/dist/components/molecules/mapping-tree-sidebar.d.ts.map +1 -0
- package/dist/components/molecules/mapping-tree-sidebar.js +491 -0
- package/dist/components/molecules/mapping-tree-sidebar.js.map +1 -0
- package/dist/components/molecules/mapping-type-grid.d.ts +12 -0
- package/dist/components/molecules/mapping-type-grid.d.ts.map +1 -0
- package/dist/components/molecules/mapping-type-grid.js +107 -0
- package/dist/components/molecules/mapping-type-grid.js.map +1 -0
- package/dist/components/molecules/mapping-type-selector.d.ts +21 -0
- package/dist/components/molecules/mapping-type-selector.d.ts.map +1 -0
- package/dist/components/molecules/mapping-type-selector.js +38 -0
- package/dist/components/molecules/mapping-type-selector.js.map +1 -0
- package/dist/components/molecules/mapping-validate-pane-view.d.ts +19 -0
- package/dist/components/molecules/mapping-validate-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-validate-pane-view.js +66 -0
- package/dist/components/molecules/mapping-validate-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-value-config-pane-view.d.ts +30 -0
- package/dist/components/molecules/mapping-value-config-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-value-config-pane-view.js +105 -0
- package/dist/components/molecules/mapping-value-config-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-value-pane-view.d.ts +28 -0
- package/dist/components/molecules/mapping-value-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-value-pane-view.js +40 -0
- package/dist/components/molecules/mapping-value-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-value-type-pane-view.d.ts +27 -0
- package/dist/components/molecules/mapping-value-type-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-value-type-pane-view.js +253 -0
- package/dist/components/molecules/mapping-value-type-pane-view.js.map +1 -0
- package/dist/components/molecules/options-pane.d.ts +28 -0
- package/dist/components/molecules/options-pane.d.ts.map +1 -0
- package/dist/components/molecules/options-pane.js +80 -0
- package/dist/components/molecules/options-pane.js.map +1 -0
- package/dist/components/molecules/preview.d.ts +22 -0
- package/dist/components/molecules/preview.d.ts.map +1 -0
- package/dist/components/molecules/preview.js +221 -0
- package/dist/components/molecules/preview.js.map +1 -0
- package/dist/components/molecules/preview.stories.d.ts +23 -0
- package/dist/components/molecules/preview.stories.d.ts.map +1 -0
- package/dist/components/molecules/preview.stories.js +186 -0
- package/dist/components/molecules/preview.stories.js.map +1 -0
- package/dist/components/molecules/property-suggestions.d.ts +17 -0
- package/dist/components/molecules/property-suggestions.d.ts.map +1 -0
- package/dist/components/molecules/property-suggestions.js +56 -0
- package/dist/components/molecules/property-suggestions.js.map +1 -0
- package/dist/components/molecules/property-table.d.ts +7 -0
- package/dist/components/molecules/property-table.d.ts.map +1 -0
- package/dist/components/molecules/property-table.js +88 -0
- package/dist/components/molecules/property-table.js.map +1 -0
- package/dist/components/molecules/property-table.stories.d.ts +24 -0
- package/dist/components/molecules/property-table.stories.d.ts.map +1 -0
- package/dist/components/molecules/property-table.stories.js +86 -0
- package/dist/components/molecules/property-table.stories.js.map +1 -0
- package/dist/components/molecules/settings-overview-pane.d.ts +32 -0
- package/dist/components/molecules/settings-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/settings-overview-pane.js +85 -0
- package/dist/components/molecules/settings-overview-pane.js.map +1 -0
- package/dist/components/molecules/validation-overview-pane.d.ts +27 -0
- package/dist/components/molecules/validation-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/validation-overview-pane.js +50 -0
- package/dist/components/molecules/validation-overview-pane.js.map +1 -0
- package/dist/components/organisms/browser-box.d.ts +31 -0
- package/dist/components/organisms/browser-box.d.ts.map +1 -0
- package/dist/components/organisms/browser-box.js +80 -0
- package/dist/components/organisms/browser-box.js.map +1 -0
- package/dist/components/organisms/browser-box.stories.d.ts +26 -0
- package/dist/components/organisms/browser-box.stories.d.ts.map +1 -0
- package/dist/components/organisms/browser-box.stories.js +102 -0
- package/dist/components/organisms/browser-box.stories.js.map +1 -0
- package/dist/components/organisms/collector-box.d.ts +24 -0
- package/dist/components/organisms/collector-box.d.ts.map +1 -0
- package/dist/components/organisms/collector-box.js +56 -0
- package/dist/components/organisms/collector-box.js.map +1 -0
- package/dist/components/organisms/collector-box.stories.d.ts +22 -0
- package/dist/components/organisms/collector-box.stories.d.ts.map +1 -0
- package/dist/components/organisms/collector-box.stories.js +59 -0
- package/dist/components/organisms/collector-box.stories.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-box.d.ts +35 -0
- package/dist/components/organisms/config-editor/config-editor-box.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-box.js +50 -0
- package/dist/components/organisms/config-editor/config-editor-box.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.d.ts +52 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.js +127 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.d.ts +47 -0
- package/dist/components/organisms/config-editor/config-editor.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.js +50 -0
- package/dist/components/organisms/config-editor/config-editor.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.stories.d.ts +25 -0
- package/dist/components/organisms/config-editor/config-editor.stories.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.stories.js +77 -0
- package/dist/components/organisms/config-editor/config-editor.stories.js.map +1 -0
- package/dist/components/organisms/config-editor/index.d.ts +22 -0
- package/dist/components/organisms/config-editor/index.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/index.js +20 -0
- package/dist/components/organisms/config-editor/index.js.map +1 -0
- package/dist/components/organisms/live-code.d.ts +22 -0
- package/dist/components/organisms/live-code.d.ts.map +1 -0
- package/dist/components/organisms/live-code.js +50 -0
- package/dist/components/organisms/live-code.js.map +1 -0
- package/dist/components/organisms/live-code.stories.d.ts +24 -0
- package/dist/components/organisms/live-code.stories.d.ts.map +1 -0
- package/dist/components/organisms/live-code.stories.js +55 -0
- package/dist/components/organisms/live-code.stories.js.map +1 -0
- package/dist/components/ui/button.d.ts +4 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +6 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/icon.d.ts +5 -0
- package/dist/components/ui/icon.d.ts.map +1 -0
- package/dist/components/ui/icon.js +5 -0
- package/dist/components/ui/icon.js.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +5 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/contexts/GridHeightContext.d.ts +11 -0
- package/dist/contexts/GridHeightContext.d.ts.map +1 -0
- package/dist/contexts/GridHeightContext.js +14 -0
- package/dist/contexts/GridHeightContext.js.map +1 -0
- package/dist/helpers/capture.d.ts +83 -0
- package/dist/helpers/capture.d.ts.map +1 -0
- package/dist/helpers/capture.js +125 -0
- package/dist/helpers/capture.js.map +1 -0
- package/dist/helpers/destinations.d.ts +21 -0
- package/dist/helpers/destinations.d.ts.map +1 -0
- package/dist/helpers/destinations.js +46 -0
- package/dist/helpers/destinations.js.map +1 -0
- package/dist/hooks/useMappingNavigation.d.ts +62 -0
- package/dist/hooks/useMappingNavigation.d.ts.map +1 -0
- package/dist/hooks/useMappingNavigation.js +339 -0
- package/dist/hooks/useMappingNavigation.js.map +1 -0
- package/dist/hooks/useMappingState.d.ts +56 -0
- package/dist/hooks/useMappingState.d.ts.map +1 -0
- package/dist/hooks/useMappingState.js +142 -0
- package/dist/hooks/useMappingState.js.map +1 -0
- package/dist/hooks/useMonacoHeight.d.ts +31 -0
- package/dist/hooks/useMonacoHeight.d.ts.map +1 -0
- package/dist/hooks/useMonacoHeight.js +83 -0
- package/dist/hooks/useMonacoHeight.js.map +1 -0
- package/dist/hooks/useTreeState.d.ts +32 -0
- package/dist/hooks/useTreeState.d.ts.map +1 -0
- package/dist/hooks/useTreeState.js +94 -0
- package/dist/hooks/useTreeState.js.map +1 -0
- package/dist/index.d.cts +152 -33
- package/dist/index.d.ts +65 -1265
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -14046
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4759 -1375
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/{monaco-types-GBPMPIMU.mjs → monaco-types-4FIH5OVX.mjs} +2 -2
- package/dist/providers/MDXProvider.d.ts +40 -0
- package/dist/providers/MDXProvider.d.ts.map +1 -0
- package/dist/providers/MDXProvider.js +57 -0
- package/dist/providers/MDXProvider.js.map +1 -0
- package/dist/schemas/config-structures/destination-config.d.ts +27 -0
- package/dist/schemas/config-structures/destination-config.d.ts.map +1 -0
- package/dist/schemas/config-structures/destination-config.js +104 -0
- package/dist/schemas/config-structures/destination-config.js.map +1 -0
- package/dist/schemas/config-structures/index.d.ts +17 -0
- package/dist/schemas/config-structures/index.d.ts.map +1 -0
- package/dist/schemas/config-structures/index.js +17 -0
- package/dist/schemas/config-structures/index.js.map +1 -0
- package/dist/schemas/config-structures/mapping-rule.d.ts +17 -0
- package/dist/schemas/config-structures/mapping-rule.d.ts.map +1 -0
- package/dist/schemas/config-structures/mapping-rule.js +81 -0
- package/dist/schemas/config-structures/mapping-rule.js.map +1 -0
- package/dist/schemas/config-structures/types.d.ts +62 -0
- package/dist/schemas/config-structures/types.d.ts.map +1 -0
- package/dist/schemas/config-structures/types.js +2 -0
- package/dist/schemas/config-structures/types.js.map +1 -0
- package/dist/schemas/mapping-rule-schema.d.ts +25 -0
- package/dist/schemas/mapping-rule-schema.d.ts.map +1 -0
- package/dist/schemas/mapping-rule-schema.js +86 -0
- package/dist/schemas/mapping-rule-schema.js.map +1 -0
- package/dist/schemas/rule-properties-schema.d.ts +42 -0
- package/dist/schemas/rule-properties-schema.d.ts.map +1 -0
- package/dist/schemas/rule-properties-schema.js +79 -0
- package/dist/schemas/rule-properties-schema.js.map +1 -0
- package/dist/schemas/value-config-schema.d.ts +36 -0
- package/dist/schemas/value-config-schema.d.ts.map +1 -0
- package/dist/schemas/value-config-schema.js +227 -0
- package/dist/schemas/value-config-schema.js.map +1 -0
- package/dist/styles.css +317 -0
- package/dist/themes/index.d.ts +23 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +29 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/lighthouse.d.ts +26 -0
- package/dist/themes/lighthouse.d.ts.map +1 -0
- package/dist/themes/lighthouse.js +229 -0
- package/dist/themes/lighthouse.js.map +1 -0
- package/dist/themes/palenight.d.ts +31 -0
- package/dist/themes/palenight.d.ts.map +1 -0
- package/dist/themes/palenight.js +235 -0
- package/dist/themes/palenight.js.map +1 -0
- package/dist/themes/types.d.ts +103 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/themes/types.js +8 -0
- package/dist/themes/types.js.map +1 -0
- package/dist/types/schemas.d.ts +29 -0
- package/dist/types/schemas.d.ts.map +1 -0
- package/dist/types/schemas.js +2 -0
- package/dist/types/schemas.js.map +1 -0
- package/dist/utils/clean-form-data.d.ts +26 -0
- package/dist/utils/clean-form-data.d.ts.map +1 -0
- package/dist/utils/clean-form-data.js +76 -0
- package/dist/utils/clean-form-data.js.map +1 -0
- package/dist/utils/code-normalizer.d.ts +11 -0
- package/dist/utils/code-normalizer.d.ts.map +1 -0
- package/dist/utils/code-normalizer.js +21 -0
- package/dist/utils/code-normalizer.js.map +1 -0
- package/dist/utils/config-validator.d.ts +12 -0
- package/dist/utils/config-validator.d.ts.map +1 -0
- package/dist/utils/config-validator.js +10 -0
- package/dist/utils/config-validator.js.map +1 -0
- package/dist/utils/consent-scanner.d.ts +19 -0
- package/dist/utils/consent-scanner.d.ts.map +1 -0
- package/dist/utils/consent-scanner.js +115 -0
- package/dist/utils/consent-scanner.js.map +1 -0
- package/dist/utils/format-code.d.ts +9 -0
- package/dist/utils/format-code.d.ts.map +1 -0
- package/dist/utils/format-code.js +68 -0
- package/dist/utils/format-code.js.map +1 -0
- package/dist/utils/generic-tree-builder.d.ts +37 -0
- package/dist/utils/generic-tree-builder.d.ts.map +1 -0
- package/dist/utils/generic-tree-builder.js +225 -0
- package/dist/utils/generic-tree-builder.js.map +1 -0
- package/dist/utils/mapping-path.d.ts +146 -0
- package/dist/utils/mapping-path.d.ts.map +1 -0
- package/dist/utils/mapping-path.js +271 -0
- package/dist/utils/mapping-path.js.map +1 -0
- package/dist/utils/monaco-context-types.d.ts +39 -0
- package/dist/utils/monaco-context-types.d.ts.map +1 -0
- package/dist/utils/monaco-context-types.js +426 -0
- package/dist/utils/monaco-context-types.js.map +1 -0
- package/dist/utils/monaco-decorators.d.ts +17 -0
- package/dist/utils/monaco-decorators.d.ts.map +1 -0
- package/dist/utils/monaco-decorators.js +79 -0
- package/dist/utils/monaco-decorators.js.map +1 -0
- package/dist/utils/monaco-formatters.d.ts +16 -0
- package/dist/utils/monaco-formatters.d.ts.map +1 -0
- package/dist/utils/monaco-formatters.js +139 -0
- package/dist/utils/monaco-formatters.js.map +1 -0
- package/dist/utils/monaco-types.d.ts +174 -0
- package/dist/utils/monaco-types.d.ts.map +1 -0
- package/dist/utils/monaco-types.js +378 -0
- package/dist/utils/monaco-types.js.map +1 -0
- package/dist/utils/path-analyzer.d.ts +88 -0
- package/dist/utils/path-analyzer.d.ts.map +1 -0
- package/dist/utils/path-analyzer.js +215 -0
- package/dist/utils/path-analyzer.js.map +1 -0
- package/dist/utils/schema-validation.d.ts +36 -0
- package/dist/utils/schema-validation.d.ts.map +1 -0
- package/dist/utils/schema-validation.js +136 -0
- package/dist/utils/schema-validation.js.map +1 -0
- package/dist/utils/type-detector.d.ts +35 -0
- package/dist/utils/type-detector.d.ts.map +1 -0
- package/dist/utils/type-detector.js +241 -0
- package/dist/utils/type-detector.js.map +1 -0
- package/dist/utils/value-display-formatter.d.ts +31 -0
- package/dist/utils/value-display-formatter.d.ts.map +1 -0
- package/dist/utils/value-display-formatter.js +110 -0
- package/dist/utils/value-display-formatter.js.map +1 -0
- package/package.json +44 -28
- package/dist/chunk-BEAIHYJ5.mjs +0 -587
- package/dist/chunk-BEAIHYJ5.mjs.map +0 -1
- /package/dist/{monaco-types-GBPMPIMU.mjs.map → monaco-types-4FIH5OVX.mjs.map} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function MappingBreadcrumb({ segments, onNavigate, className = '', }) {
|
|
3
|
+
return (_jsx("nav", { className: `elb-mapping-breadcrumb ${className}`, "aria-label": "Breadcrumb", children: _jsx("ol", { className: "elb-mapping-breadcrumb-list", children: segments.map((segment, index) => {
|
|
4
|
+
const isLast = index === segments.length - 1;
|
|
5
|
+
const isRoot = segment.nodeType === 'root';
|
|
6
|
+
const isClickable = !isLast || isRoot;
|
|
7
|
+
return (_jsx("li", { className: "elb-mapping-breadcrumb-item", children: isClickable ? (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: `elb-mapping-breadcrumb-link ${isRoot ? 'is-root' : ''}`, onClick: () => onNavigate(segment.path), "aria-current": isLast ? 'page' : undefined, children: segment.label }), !isLast && (_jsx("span", { className: "elb-mapping-breadcrumb-separator", "aria-hidden": "true", children: "/" }))] })) : (_jsx("span", { className: "elb-mapping-breadcrumb-current", children: segment.label })) }, segment.path.join('.')));
|
|
8
|
+
}) }) }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=mapping-breadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-breadcrumb.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-breadcrumb.tsx"],"names":[],"mappings":";AAcA,MAAM,UAAU,iBAAiB,CAAC,EAChC,QAAQ,EACR,UAAU,EACV,SAAS,GAAG,EAAE,GACS;IACvB,OAAO,CACL,cACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,gBACrC,YAAY,YAEvB,aAAI,SAAS,EAAC,6BAA6B,YACxC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;gBAC/B,MAAM,MAAM,GAAG,KAAK,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;gBAC7C,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,KAAK,MAAM,CAAC;gBAC3C,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC;gBAEtC,OAAO,CACL,aAEE,SAAS,EAAC,6BAA6B,YAEtC,WAAW,CAAC,CAAC,CAAC,CACb,8BACE,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,+BAA+B,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,EACnE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,kBACzB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAExC,OAAO,CAAC,KAAK,GACP,EACR,CAAC,MAAM,IAAI,CACV,eACE,SAAS,EAAC,kCAAkC,iBAChC,MAAM,kBAGb,CACR,IACA,CACJ,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,gCAAgC,YAC7C,OAAO,CAAC,KAAK,GACT,CACR,IA1BI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CA2BxB,CACN,CAAC;YACJ,CAAC,CAAC,GACC,GACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MappingCollapsibleProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
mode?: 'toggle' | 'checkbox';
|
|
7
|
+
defaultExpanded?: boolean;
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
onToggle?: (expanded: boolean) => void;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MappingCollapsible - Unified collapsible component with two modes
|
|
17
|
+
*
|
|
18
|
+
* Modes:
|
|
19
|
+
* - 'toggle' (default): Chevron icon that expands/collapses content
|
|
20
|
+
* - 'checkbox': Checkbox that shows/hides content when checked
|
|
21
|
+
*
|
|
22
|
+
* Both modes support:
|
|
23
|
+
* - Two-line label: title + optional description
|
|
24
|
+
* - Controlled or uncontrolled state
|
|
25
|
+
* - Theme-aware styling
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* // Toggle mode (consent widget)
|
|
29
|
+
* <MappingCollapsible
|
|
30
|
+
* mode="toggle"
|
|
31
|
+
* title="Consent"
|
|
32
|
+
* description="Required consent states"
|
|
33
|
+
* isExpanded={isExpanded}
|
|
34
|
+
* onToggle={setIsExpanded}
|
|
35
|
+
* >
|
|
36
|
+
* <ConsentRows />
|
|
37
|
+
* </MappingCollapsible>
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* // Checkbox mode (condition widget)
|
|
41
|
+
* <MappingCollapsible
|
|
42
|
+
* mode="checkbox"
|
|
43
|
+
* title="Condition"
|
|
44
|
+
* description="Conditionally apply this rule"
|
|
45
|
+
* checked={hasCondition}
|
|
46
|
+
* onCheckedChange={setHasCondition}
|
|
47
|
+
* >
|
|
48
|
+
* <CodeEditor />
|
|
49
|
+
* </MappingCollapsible>
|
|
50
|
+
*/
|
|
51
|
+
export declare function MappingCollapsible({ title, description, children, mode, defaultExpanded, isExpanded: controlledExpanded, onToggle, checked, onCheckedChange, disabled, className, }: MappingCollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const CollapsibleSection: typeof MappingCollapsible;
|
|
53
|
+
export declare const MappingCheckboxCollapsible: (props: Omit<MappingCollapsibleProps, "mode">) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=mapping-collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAE7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAe,EACf,eAAuB,EACvB,UAAU,EAAE,kBAAkB,EAC9B,QAAQ,EACR,OAAe,EACf,eAAe,EACf,QAAgB,EAChB,SAAc,GACf,EAAE,uBAAuB,2CAyGzB;AAGD,eAAO,MAAM,kBAAkB,2BAAqB,CAAC;AACrD,eAAO,MAAM,0BAA0B,GACrC,OAAO,IAAI,CAAC,uBAAuB,EAAE,MAAM,CAAC,4CACQ,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* MappingCollapsible - Unified collapsible component with two modes
|
|
5
|
+
*
|
|
6
|
+
* Modes:
|
|
7
|
+
* - 'toggle' (default): Chevron icon that expands/collapses content
|
|
8
|
+
* - 'checkbox': Checkbox that shows/hides content when checked
|
|
9
|
+
*
|
|
10
|
+
* Both modes support:
|
|
11
|
+
* - Two-line label: title + optional description
|
|
12
|
+
* - Controlled or uncontrolled state
|
|
13
|
+
* - Theme-aware styling
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Toggle mode (consent widget)
|
|
17
|
+
* <MappingCollapsible
|
|
18
|
+
* mode="toggle"
|
|
19
|
+
* title="Consent"
|
|
20
|
+
* description="Required consent states"
|
|
21
|
+
* isExpanded={isExpanded}
|
|
22
|
+
* onToggle={setIsExpanded}
|
|
23
|
+
* >
|
|
24
|
+
* <ConsentRows />
|
|
25
|
+
* </MappingCollapsible>
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* // Checkbox mode (condition widget)
|
|
29
|
+
* <MappingCollapsible
|
|
30
|
+
* mode="checkbox"
|
|
31
|
+
* title="Condition"
|
|
32
|
+
* description="Conditionally apply this rule"
|
|
33
|
+
* checked={hasCondition}
|
|
34
|
+
* onCheckedChange={setHasCondition}
|
|
35
|
+
* >
|
|
36
|
+
* <CodeEditor />
|
|
37
|
+
* </MappingCollapsible>
|
|
38
|
+
*/
|
|
39
|
+
export function MappingCollapsible({ title, description, children, mode = 'toggle', defaultExpanded = false, isExpanded: controlledExpanded, onToggle, checked = false, onCheckedChange, disabled = false, className = '', }) {
|
|
40
|
+
const [uncontrolledExpanded, setUncontrolledExpanded] = useState(defaultExpanded);
|
|
41
|
+
// Toggle mode state
|
|
42
|
+
const isControlled = controlledExpanded !== undefined;
|
|
43
|
+
const isExpanded = isControlled ? controlledExpanded : uncontrolledExpanded;
|
|
44
|
+
const isOpen = mode === 'toggle' ? isExpanded : checked;
|
|
45
|
+
const handleToggle = () => {
|
|
46
|
+
if (mode === 'toggle') {
|
|
47
|
+
const newExpanded = !isExpanded;
|
|
48
|
+
if (!isControlled) {
|
|
49
|
+
setUncontrolledExpanded(newExpanded);
|
|
50
|
+
}
|
|
51
|
+
onToggle?.(newExpanded);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
// Checkbox mode
|
|
55
|
+
if (!disabled) {
|
|
56
|
+
onCheckedChange?.(!checked);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const handleCheckboxChange = (e) => {
|
|
61
|
+
onCheckedChange?.(e.target.checked);
|
|
62
|
+
};
|
|
63
|
+
// Determine which CSS classes to use
|
|
64
|
+
const containerClass = mode === 'checkbox' ? 'elb-checkbox-collapsible' : 'elb-collapsible';
|
|
65
|
+
const headerClass = mode === 'checkbox'
|
|
66
|
+
? 'elb-checkbox-collapsible-header'
|
|
67
|
+
: 'elb-collapsible-header';
|
|
68
|
+
const labelClass = mode === 'checkbox'
|
|
69
|
+
? 'elb-checkbox-collapsible-label'
|
|
70
|
+
: 'elb-collapsible-label';
|
|
71
|
+
const titleClass = mode === 'checkbox' ? 'elb-checkbox-collapsible-title' : 'elb-rjsf-label';
|
|
72
|
+
const descriptionClass = mode === 'checkbox'
|
|
73
|
+
? 'elb-checkbox-collapsible-description'
|
|
74
|
+
: 'elb-collapsible-description';
|
|
75
|
+
const contentClass = mode === 'checkbox'
|
|
76
|
+
? 'elb-checkbox-collapsible-content'
|
|
77
|
+
: 'elb-collapsible-content';
|
|
78
|
+
if (mode === 'checkbox') {
|
|
79
|
+
return (_jsxs("div", { className: `${containerClass} ${className}`.trim(), children: [_jsxs("div", { className: headerClass, onClick: handleToggle, children: [_jsx("input", { type: "checkbox", className: "elb-rjsf-checkbox elb-checkbox-collapsible-checkbox", checked: checked, onChange: handleCheckboxChange, disabled: disabled, onClick: (e) => e.stopPropagation() }), _jsxs("div", { className: labelClass, children: [_jsx("div", { className: titleClass, children: title }), description && (_jsx("div", { className: descriptionClass, children: description }))] })] }), checked && _jsx("div", { className: contentClass, children: children })] }));
|
|
80
|
+
}
|
|
81
|
+
// Toggle mode
|
|
82
|
+
return (_jsxs("div", { className: `${containerClass} ${className}`.trim(), children: [_jsxs("button", { type: "button", className: headerClass, onClick: handleToggle, children: [_jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0 }, children: isExpanded ? (_jsx("polyline", { points: "6 9 12 15 18 9" })) : (_jsx("polyline", { points: "9 18 15 12 9 6" })) }), _jsxs("div", { className: labelClass, children: [_jsx("span", { className: titleClass, children: title }), description && (_jsx("span", { className: descriptionClass, children: description }))] })] }), isExpanded && _jsx("div", { className: contentClass, children: children })] }));
|
|
83
|
+
}
|
|
84
|
+
// Legacy exports for backward compatibility
|
|
85
|
+
export const CollapsibleSection = MappingCollapsible;
|
|
86
|
+
export const MappingCheckboxCollapsible = (props) => _jsx(MappingCollapsible, { ...props, mode: "checkbox" });
|
|
87
|
+
//# sourceMappingURL=mapping-collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-collapsible.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-collapsible.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FieldProps } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* MappingConditionField - RJSF custom field for condition strings
|
|
4
|
+
*
|
|
5
|
+
* This is a field wrapper (not a widget) because RJSF requires custom fields
|
|
6
|
+
* for complex types. The field wraps our MappingConditionWidget and provides
|
|
7
|
+
* the necessary interface that RJSF expects for custom fields.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // In uiSchema:
|
|
11
|
+
* const uiSchema = {
|
|
12
|
+
* condition: {
|
|
13
|
+
* 'ui:field': 'mappingCondition'
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
export declare function MappingConditionField(props: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=mapping-condition-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-condition-field.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-condition-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,2CA0BtD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MappingConditionWidget } from './mapping-condition';
|
|
3
|
+
/**
|
|
4
|
+
* MappingConditionField - RJSF custom field for condition strings
|
|
5
|
+
*
|
|
6
|
+
* This is a field wrapper (not a widget) because RJSF requires custom fields
|
|
7
|
+
* for complex types. The field wraps our MappingConditionWidget and provides
|
|
8
|
+
* the necessary interface that RJSF expects for custom fields.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* // In uiSchema:
|
|
12
|
+
* const uiSchema = {
|
|
13
|
+
* condition: {
|
|
14
|
+
* 'ui:field': 'mappingCondition'
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export function MappingConditionField(props) {
|
|
19
|
+
const { formData, onChange, schema, uiSchema, idSchema, rawErrors, disabled, readonly, } = props;
|
|
20
|
+
// Convert FieldProps to WidgetProps format
|
|
21
|
+
const widgetProps = {
|
|
22
|
+
id: idSchema.$id,
|
|
23
|
+
value: formData,
|
|
24
|
+
onChange,
|
|
25
|
+
schema,
|
|
26
|
+
uiSchema,
|
|
27
|
+
rawErrors: rawErrors || [],
|
|
28
|
+
disabled: disabled || false,
|
|
29
|
+
readonly: readonly || false,
|
|
30
|
+
};
|
|
31
|
+
// @ts-expect-error - Old Phase 1 component, RJSF WidgetProps type mismatch to be fixed in Phase 5
|
|
32
|
+
return _jsx(MappingConditionWidget, { ...widgetProps });
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=mapping-condition-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-condition-field.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-condition-field.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAiB;IACrD,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,2CAA2C;IAC3C,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,QAAQ,CAAC,GAAG;QAChB,KAAK,EAAE,QAAQ;QACf,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,SAAS,EAAE,SAAS,IAAI,EAAE;QAC1B,QAAQ,EAAE,QAAQ,IAAI,KAAK;QAC3B,QAAQ,EAAE,QAAQ,IAAI,KAAK;KAC5B,CAAC;IAEF,kGAAkG;IAClG,OAAO,KAAC,sBAAsB,OAAK,WAAW,GAAI,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { WidgetProps } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* MappingConditionWidget - RJSF widget for condition functions
|
|
4
|
+
*
|
|
5
|
+
* Manages condition functions as strings for mapping rules.
|
|
6
|
+
* A condition determines whether a mapping rule should be applied.
|
|
7
|
+
*
|
|
8
|
+
* States:
|
|
9
|
+
* - Unchecked (default): No condition, value is undefined
|
|
10
|
+
* - Checked: Shows code editor with function template
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // In schema:
|
|
14
|
+
* const schema = {
|
|
15
|
+
* type: 'object',
|
|
16
|
+
* properties: {
|
|
17
|
+
* condition: {
|
|
18
|
+
* type: 'string',
|
|
19
|
+
* title: 'Use condition',
|
|
20
|
+
* description: 'Conditionally apply this mapping rule'
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // In uiSchema:
|
|
27
|
+
* const uiSchema = {
|
|
28
|
+
* condition: {
|
|
29
|
+
* 'ui:widget': 'mappingCondition'
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
export declare function MappingConditionWidget(props: WidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=mapping-condition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-condition.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-condition.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAgB/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,2CAgExD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MappingCollapsible } from './mapping-collapsible';
|
|
3
|
+
import { CodeBox } from '../molecules/code-box';
|
|
4
|
+
/**
|
|
5
|
+
* Default condition function template
|
|
6
|
+
* Provides a starting point for users with parameter hints
|
|
7
|
+
*/
|
|
8
|
+
const DEFAULT_CONDITION = `(value, mapping, collector) => {
|
|
9
|
+
// Return true to apply this mapping rule
|
|
10
|
+
// value: The event data
|
|
11
|
+
// mapping: The mapping configuration
|
|
12
|
+
// collector: The collector instance
|
|
13
|
+
return true;
|
|
14
|
+
}`;
|
|
15
|
+
/**
|
|
16
|
+
* MappingConditionWidget - RJSF widget for condition functions
|
|
17
|
+
*
|
|
18
|
+
* Manages condition functions as strings for mapping rules.
|
|
19
|
+
* A condition determines whether a mapping rule should be applied.
|
|
20
|
+
*
|
|
21
|
+
* States:
|
|
22
|
+
* - Unchecked (default): No condition, value is undefined
|
|
23
|
+
* - Checked: Shows code editor with function template
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // In schema:
|
|
27
|
+
* const schema = {
|
|
28
|
+
* type: 'object',
|
|
29
|
+
* properties: {
|
|
30
|
+
* condition: {
|
|
31
|
+
* type: 'string',
|
|
32
|
+
* title: 'Use condition',
|
|
33
|
+
* description: 'Conditionally apply this mapping rule'
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* // In uiSchema:
|
|
40
|
+
* const uiSchema = {
|
|
41
|
+
* condition: {
|
|
42
|
+
* 'ui:widget': 'mappingCondition'
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
*/
|
|
46
|
+
export function MappingConditionWidget(props) {
|
|
47
|
+
const { id, value, onChange, disabled, readonly, rawErrors = [], schema, } = props;
|
|
48
|
+
const conditionCode = value || '';
|
|
49
|
+
const hasCondition = Boolean(conditionCode);
|
|
50
|
+
// Extract title and description from schema
|
|
51
|
+
const title = schema?.title || 'Use condition';
|
|
52
|
+
const description = schema?.description;
|
|
53
|
+
const handleCheckboxChange = (checked) => {
|
|
54
|
+
if (checked) {
|
|
55
|
+
// Enable condition - set to default template
|
|
56
|
+
onChange(DEFAULT_CONDITION);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// Disable condition - set to undefined
|
|
60
|
+
onChange(undefined);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const handleCodeChange = (code) => {
|
|
64
|
+
// Update the condition code
|
|
65
|
+
onChange(code || undefined);
|
|
66
|
+
};
|
|
67
|
+
const hasError = rawErrors && rawErrors.length > 0;
|
|
68
|
+
return (_jsxs("div", { className: "elb-rjsf-widget", children: [_jsx(MappingCollapsible, { mode: "checkbox", title: title, description: description, checked: hasCondition, onCheckedChange: handleCheckboxChange, disabled: disabled || readonly, children: _jsx(CodeBox, { code: conditionCode, onChange: handleCodeChange, language: "javascript", label: "Condition", lineNumbers: true, folding: false, disabled: disabled || readonly }) }), hasError && (_jsx("div", { className: "elb-rjsf-error", children: rawErrors.map((error, index) => (_jsx("div", { children: error }, index))) }))] }));
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=mapping-condition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-condition.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-condition.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;GAGG;AACH,MAAM,iBAAiB,GAAG;;;;;;EAMxB,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAkB;IACvD,MAAM,EACJ,EAAE,EACF,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,MAAM,GACP,GAAG,KAAK,CAAC;IAEV,MAAM,aAAa,GAAI,KAA4B,IAAI,EAAE,CAAC;IAC1D,MAAM,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE5C,4CAA4C;IAC5C,MAAM,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,eAAe,CAAC;IAC/C,MAAM,WAAW,GAAG,MAAM,EAAE,WAAW,CAAC;IAExC,MAAM,oBAAoB,GAAG,CAAC,OAAgB,EAAE,EAAE;QAChD,IAAI,OAAO,EAAE,CAAC;YACZ,6CAA6C;YAC7C,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,uCAAuC;YACvC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE;QACxC,4BAA4B;QAC5B,QAAQ,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAEnD,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,kBAAkB,IACjB,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAE,oBAAoB,EACrC,QAAQ,EAAE,QAAQ,IAAI,QAAQ,YAE9B,KAAC,OAAO,IACN,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAC,YAAY,EACrB,KAAK,EAAC,WAAW,EACjB,WAAW,QACX,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,QAAQ,IAAI,QAAQ,GAC9B,GACiB,EACpB,QAAQ,IAAI,CACX,cAAK,SAAS,EAAC,gBAAgB,YAC5B,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,wBAAkB,KAAK,IAAb,KAAK,CAAe,CAC/B,CAAC,GACE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confirm Button - Transforms to confirmation state on click
|
|
3
|
+
*
|
|
4
|
+
* When clicked, transforms to show "Confirm?" text with visual emphasis.
|
|
5
|
+
* Clicking again confirms the action. Clicking outside or ESC cancels.
|
|
6
|
+
*
|
|
7
|
+
* By default, uses a trash icon. Can be overridden with custom icon.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <MappingConfirmButton
|
|
11
|
+
* confirmLabel="Delete?"
|
|
12
|
+
* onConfirm={() => deleteItem()}
|
|
13
|
+
* ariaLabel="Delete item"
|
|
14
|
+
* />
|
|
15
|
+
*/
|
|
16
|
+
export interface MappingConfirmButtonProps {
|
|
17
|
+
/** Icon to show in default state (defaults to trash icon) */
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/** Label to show in confirmation state */
|
|
20
|
+
confirmLabel?: string;
|
|
21
|
+
/** Callback when action is confirmed */
|
|
22
|
+
onConfirm: () => void;
|
|
23
|
+
/** Accessibility label */
|
|
24
|
+
ariaLabel: string;
|
|
25
|
+
/** Additional CSS class */
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function MappingConfirmButton({ icon, confirmLabel, onConfirm, ariaLabel, className, }: MappingConfirmButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=mapping-confirm-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-confirm-button.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-confirm-button.tsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,yBAAyB;IACxC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAoB,EACpB,YAAyB,EACzB,SAAS,EACT,SAAS,EACT,SAAc,GACf,EAAE,yBAAyB,2CAoD3B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useRef } from 'react';
|
|
3
|
+
// Default trash icon
|
|
4
|
+
const TrashIcon = () => (_jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M6.5 1.5V2.5H2V4H3V13.5C3 14.3284 3.67157 15 4.5 15H11.5C12.3284 15 13 14.3284 13 13.5V4H14V2.5H9.5V1.5H6.5ZM4.5 4H11.5V13.5H4.5V4ZM6 5.5V12H7.5V5.5H6ZM8.5 5.5V12H10V5.5H8.5Z", fill: "currentColor" }) }));
|
|
5
|
+
export function MappingConfirmButton({ icon = _jsx(TrashIcon, {}), confirmLabel = 'Confirm?', onConfirm, ariaLabel, className = '', }) {
|
|
6
|
+
const [isConfirming, setIsConfirming] = useState(false);
|
|
7
|
+
const buttonRef = useRef(null);
|
|
8
|
+
// Handle click outside to cancel
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!isConfirming)
|
|
11
|
+
return;
|
|
12
|
+
const handleClickOutside = (e) => {
|
|
13
|
+
if (buttonRef.current && !buttonRef.current.contains(e.target)) {
|
|
14
|
+
setIsConfirming(false);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const handleEscape = (e) => {
|
|
18
|
+
if (e.key === 'Escape') {
|
|
19
|
+
setIsConfirming(false);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
23
|
+
document.addEventListener('keydown', handleEscape);
|
|
24
|
+
return () => {
|
|
25
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
26
|
+
document.removeEventListener('keydown', handleEscape);
|
|
27
|
+
};
|
|
28
|
+
}, [isConfirming]);
|
|
29
|
+
const handleClick = () => {
|
|
30
|
+
if (isConfirming) {
|
|
31
|
+
// Confirm action
|
|
32
|
+
onConfirm();
|
|
33
|
+
setIsConfirming(false);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
// Enter confirmation state
|
|
37
|
+
setIsConfirming(true);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return (_jsx("button", { ref: buttonRef, type: "button", className: `elb-mapping-confirm-button ${isConfirming ? 'is-confirming' : ''} ${className}`, onClick: handleClick, "aria-label": isConfirming ? confirmLabel : ariaLabel, title: isConfirming ? confirmLabel : ariaLabel, children: isConfirming ? confirmLabel : icon }));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=mapping-confirm-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-confirm-button.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-confirm-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpD,qBAAqB;AACrB,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,cACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,YAElC,eACE,CAAC,EAAC,gLAAgL,EAClL,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC;AA8BF,MAAM,UAAU,oBAAoB,CAAC,EACnC,IAAI,GAAG,KAAC,SAAS,KAAG,EACpB,YAAY,GAAG,UAAU,EACzB,SAAS,EACT,SAAS,EACT,SAAS,GAAG,EAAE,GACY;IAC1B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAElD,iCAAiC;IACjC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,kBAAkB,GAAG,CAAC,CAAa,EAAE,EAAE;YAC3C,IAAI,SAAS,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAc,CAAC,EAAE,CAAC;gBACvE,eAAe,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC;QACH,CAAC,CAAC;QAEF,MAAM,YAAY,GAAG,CAAC,CAAgB,EAAE,EAAE;YACxC,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;gBACvB,eAAe,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC;QACH,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;QAC3D,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QAEnD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;YAC9D,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QACxD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,YAAY,EAAE,CAAC;YACjB,iBAAiB;YACjB,SAAS,EAAE,CAAC;YACZ,eAAe,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,2BAA2B;YAC3B,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,iBACE,GAAG,EAAE,SAAS,EACd,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,8BAA8B,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,IAAI,SAAS,EAAE,EAC3F,OAAO,EAAE,WAAW,gBACR,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EACnD,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,YAE7C,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,GAC5B,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FieldProps } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* MappingConsentField - RJSF custom field for consent object
|
|
4
|
+
*
|
|
5
|
+
* This is a field wrapper (not a widget) because RJSF requires custom fields
|
|
6
|
+
* for object types, not widgets. Widgets are only used for primitive types.
|
|
7
|
+
*
|
|
8
|
+
* The field wraps our MappingConsentWidget and provides the necessary
|
|
9
|
+
* interface that RJSF expects for custom fields.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // In uiSchema:
|
|
13
|
+
* const uiSchema = {
|
|
14
|
+
* consent: {
|
|
15
|
+
* 'ui:field': 'mappingConsent'
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export declare function MappingConsentField(props: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=mapping-consent-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent-field.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-consent-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,2CA0BpD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MappingConsentWidget } from './mapping-consent';
|
|
3
|
+
/**
|
|
4
|
+
* MappingConsentField - RJSF custom field for consent object
|
|
5
|
+
*
|
|
6
|
+
* This is a field wrapper (not a widget) because RJSF requires custom fields
|
|
7
|
+
* for object types, not widgets. Widgets are only used for primitive types.
|
|
8
|
+
*
|
|
9
|
+
* The field wraps our MappingConsentWidget and provides the necessary
|
|
10
|
+
* interface that RJSF expects for custom fields.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // In uiSchema:
|
|
14
|
+
* const uiSchema = {
|
|
15
|
+
* consent: {
|
|
16
|
+
* 'ui:field': 'mappingConsent'
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
export function MappingConsentField(props) {
|
|
21
|
+
const { formData, onChange, schema, uiSchema, idSchema, rawErrors, disabled, readonly, } = props;
|
|
22
|
+
// Convert FieldProps to WidgetProps format
|
|
23
|
+
const widgetProps = {
|
|
24
|
+
id: idSchema.$id,
|
|
25
|
+
value: formData,
|
|
26
|
+
onChange,
|
|
27
|
+
schema,
|
|
28
|
+
uiSchema,
|
|
29
|
+
rawErrors: rawErrors || [],
|
|
30
|
+
disabled: disabled || false,
|
|
31
|
+
readonly: readonly || false,
|
|
32
|
+
};
|
|
33
|
+
// @ts-expect-error - Old Phase 1 component, RJSF WidgetProps type mismatch to be fixed in Phase 5
|
|
34
|
+
return _jsx(MappingConsentWidget, { ...widgetProps });
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=mapping-consent-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent-field.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-consent-field.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAiB;IACnD,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,2CAA2C;IAC3C,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,QAAQ,CAAC,GAAG;QAChB,KAAK,EAAE,QAAQ;QACf,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,SAAS,EAAE,SAAS,IAAI,EAAE;QAC1B,QAAQ,EAAE,QAAQ,IAAI,KAAK;QAC3B,QAAQ,EAAE,QAAQ,IAAI,KAAK;KAC5B,CAAC;IAEF,kGAAkG;IAClG,OAAO,KAAC,oBAAoB,OAAK,WAAW,GAAI,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { WidgetProps } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* MappingConsentWidget - RJSF widget for consent object
|
|
4
|
+
*
|
|
5
|
+
* Manages consent requirements as an object: { [consentType: string]: boolean }
|
|
6
|
+
* where true = granted required, false = denied required
|
|
7
|
+
*
|
|
8
|
+
* States:
|
|
9
|
+
* - Default (no consent): Shows grey "+ Require consent" button
|
|
10
|
+
* - With data: Shows collapsible section with consent rows
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // In schema:
|
|
14
|
+
* const schema = {
|
|
15
|
+
* type: 'object',
|
|
16
|
+
* properties: {
|
|
17
|
+
* consent: {
|
|
18
|
+
* type: 'object',
|
|
19
|
+
* title: 'Consent',
|
|
20
|
+
* description: 'Required consent states'
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // In uiSchema:
|
|
27
|
+
* const uiSchema = {
|
|
28
|
+
* consent: {
|
|
29
|
+
* 'ui:widget': 'mappingConsent'
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
export declare function MappingConsentWidget(props: WidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=mapping-consent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-consent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,2CA8HtD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { MappingCollapsible } from './mapping-collapsible';
|
|
4
|
+
import { ConsentRow } from '../molecules/mapping-consent-row';
|
|
5
|
+
import { IconButton } from './icon-button';
|
|
6
|
+
/**
|
|
7
|
+
* MappingConsentWidget - RJSF widget for consent object
|
|
8
|
+
*
|
|
9
|
+
* Manages consent requirements as an object: { [consentType: string]: boolean }
|
|
10
|
+
* where true = granted required, false = denied required
|
|
11
|
+
*
|
|
12
|
+
* States:
|
|
13
|
+
* - Default (no consent): Shows grey "+ Require consent" button
|
|
14
|
+
* - With data: Shows collapsible section with consent rows
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // In schema:
|
|
18
|
+
* const schema = {
|
|
19
|
+
* type: 'object',
|
|
20
|
+
* properties: {
|
|
21
|
+
* consent: {
|
|
22
|
+
* type: 'object',
|
|
23
|
+
* title: 'Consent',
|
|
24
|
+
* description: 'Required consent states'
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // In uiSchema:
|
|
31
|
+
* const uiSchema = {
|
|
32
|
+
* consent: {
|
|
33
|
+
* 'ui:widget': 'mappingConsent'
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
*/
|
|
37
|
+
export function MappingConsentWidget(props) {
|
|
38
|
+
const { id, value, onChange, disabled, readonly, rawErrors = [], schema, } = props;
|
|
39
|
+
const consentData = value || {};
|
|
40
|
+
const hasConsent = Object.keys(consentData).length > 0;
|
|
41
|
+
// Extract title and description from schema
|
|
42
|
+
const title = schema?.title || 'Consent';
|
|
43
|
+
const description = schema?.description;
|
|
44
|
+
// Start expanded if we have existing consent data
|
|
45
|
+
const [isExpanded, setIsExpanded] = useState(hasConsent);
|
|
46
|
+
// Update expanded state when consent data changes (e.g., switching between mapping rules)
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
setIsExpanded(hasConsent);
|
|
49
|
+
}, [hasConsent]);
|
|
50
|
+
const handleAddConsent = () => {
|
|
51
|
+
// Add a new consent entry with empty key and true value (checked by default)
|
|
52
|
+
const newConsent = { ...consentData, '': true };
|
|
53
|
+
onChange(newConsent);
|
|
54
|
+
if (!isExpanded) {
|
|
55
|
+
setIsExpanded(true);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const handleUpdateConsentType = (oldKey, newKey) => {
|
|
59
|
+
if (oldKey === newKey)
|
|
60
|
+
return;
|
|
61
|
+
const newConsent = { ...consentData };
|
|
62
|
+
const value = newConsent[oldKey];
|
|
63
|
+
delete newConsent[oldKey];
|
|
64
|
+
// Only add if newKey is not empty
|
|
65
|
+
if (newKey.trim()) {
|
|
66
|
+
newConsent[newKey] = value;
|
|
67
|
+
}
|
|
68
|
+
// If no entries left, set to undefined
|
|
69
|
+
const finalConsent = Object.keys(newConsent).length > 0 ? newConsent : undefined;
|
|
70
|
+
onChange(finalConsent);
|
|
71
|
+
};
|
|
72
|
+
const handleUpdateGranted = (key, granted) => {
|
|
73
|
+
const newConsent = { ...consentData, [key]: granted };
|
|
74
|
+
onChange(newConsent);
|
|
75
|
+
};
|
|
76
|
+
const handleRemove = (key) => {
|
|
77
|
+
const newConsent = { ...consentData };
|
|
78
|
+
delete newConsent[key];
|
|
79
|
+
// If no entries left, set to undefined
|
|
80
|
+
const finalConsent = Object.keys(newConsent).length > 0 ? newConsent : undefined;
|
|
81
|
+
onChange(finalConsent);
|
|
82
|
+
};
|
|
83
|
+
const hasError = rawErrors && rawErrors.length > 0;
|
|
84
|
+
return (_jsxs("div", { className: "elb-rjsf-widget", children: [_jsx(MappingCollapsible, { mode: "toggle", title: title, description: description, isExpanded: isExpanded, onToggle: setIsExpanded, children: hasConsent ? (_jsxs("div", { className: "elb-consent-rows", children: [Object.entries(consentData).map(([key, granted], index) => (_jsx(ConsentRow, { consentType: key, granted: granted, onConsentTypeChange: (newKey) => handleUpdateConsentType(key, newKey), onGrantedChange: (newGranted) => handleUpdateGranted(key, newGranted), onRemove: () => handleRemove(key) }, index))), _jsx(IconButton, { icon: "add", variant: "default", onClick: handleAddConsent, disabled: disabled || readonly, className: "elb-consent-add-row-button", children: "Add consent" })] })) : (_jsx(IconButton, { icon: "add", variant: "default", onClick: handleAddConsent, disabled: disabled || readonly, className: "elb-consent-add-button", children: "Require consent" })) }), hasError && (_jsx("div", { className: "elb-rjsf-error", children: rawErrors.map((error, index) => (_jsx("div", { children: error }, index))) }))] }));
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=mapping-consent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-consent.tsx"],"names":[],"mappings":"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"}
|