@aglyn/besigner-ui 1.0.0-beta.143
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/LICENSE +201 -0
- package/README.md +7 -0
- package/package.json +73 -0
- package/src/besigner.d.ts +88 -0
- package/src/besigner.js +89 -0
- package/src/besigner.js.map +1 -0
- package/src/index.d.ts +17 -0
- package/src/index.js +18 -0
- package/src/index.js.map +1 -0
- package/src/lib/box-styler/box-styler.d.ts +57 -0
- package/src/lib/box-styler/box-styler.js +240 -0
- package/src/lib/box-styler/box-styler.js.map +1 -0
- package/src/lib/box-styler/components/box-diagram.d.ts +89 -0
- package/src/lib/box-styler/components/box-diagram.js +661 -0
- package/src/lib/box-styler/components/box-diagram.js.map +1 -0
- package/src/lib/box-styler/components/legend.d.ts +56 -0
- package/src/lib/box-styler/components/legend.js +130 -0
- package/src/lib/box-styler/components/legend.js.map +1 -0
- package/src/lib/box-styler/components/spacing-editor.d.ts +55 -0
- package/src/lib/box-styler/components/spacing-editor.js +347 -0
- package/src/lib/box-styler/components/spacing-editor.js.map +1 -0
- package/src/lib/box-styler/constants.d.ts +17 -0
- package/src/lib/box-styler/constants.js +30 -0
- package/src/lib/box-styler/constants.js.map +1 -0
- package/src/lib/box-styler/index.d.ts +2 -0
- package/src/lib/box-styler/index.js +4 -0
- package/src/lib/box-styler/index.js.map +1 -0
- package/src/lib/box-styler/region-fills.d.ts +107 -0
- package/src/lib/box-styler/region-fills.js +139 -0
- package/src/lib/box-styler/region-fills.js.map +1 -0
- package/src/lib/box-styler/spacing-value.d.ts +104 -0
- package/src/lib/box-styler/spacing-value.js +223 -0
- package/src/lib/box-styler/spacing-value.js.map +1 -0
- package/src/lib/box-styler/types.d.ts +29 -0
- package/src/lib/box-styler/types.js +18 -0
- package/src/lib/box-styler/types.js.map +1 -0
- package/src/lib/components/accordion-list.component.d.ts +50 -0
- package/src/lib/components/accordion-list.component.js +228 -0
- package/src/lib/components/accordion-list.component.js.map +1 -0
- package/src/lib/components/add-controls.component.d.ts +22 -0
- package/src/lib/components/add-controls.component.js +50 -0
- package/src/lib/components/add-controls.component.js.map +1 -0
- package/src/lib/components/app-bar-breadcrumbs.component.d.ts +29 -0
- package/src/lib/components/app-bar-breadcrumbs.component.js +279 -0
- package/src/lib/components/app-bar-breadcrumbs.component.js.map +1 -0
- package/src/lib/components/app-bar-primary.component.d.ts +21 -0
- package/src/lib/components/app-bar-primary.component.js +108 -0
- package/src/lib/components/app-bar-primary.component.js.map +1 -0
- package/src/lib/components/app-bar-secondary.component.d.ts +21 -0
- package/src/lib/components/app-bar-secondary.component.js +94 -0
- package/src/lib/components/app-bar-secondary.component.js.map +1 -0
- package/src/lib/components/aside-panel.component.d.ts +23 -0
- package/src/lib/components/aside-panel.component.js +505 -0
- package/src/lib/components/aside-panel.component.js.map +1 -0
- package/src/lib/components/besigner-conflict-alert.component.d.ts +36 -0
- package/src/lib/components/besigner-conflict-alert.component.js +51 -0
- package/src/lib/components/besigner-conflict-alert.component.js.map +1 -0
- package/src/lib/components/besigner-dnd-context.component.d.ts +32 -0
- package/src/lib/components/besigner-dnd-context.component.js +75 -0
- package/src/lib/components/besigner-dnd-context.component.js.map +1 -0
- package/src/lib/components/besigner-draft-alert.component.d.ts +70 -0
- package/src/lib/components/besigner-draft-alert.component.js +155 -0
- package/src/lib/components/besigner-draft-alert.component.js.map +1 -0
- package/src/lib/components/besigner-root-provider.component.d.ts +33 -0
- package/src/lib/components/besigner-root-provider.component.js +68 -0
- package/src/lib/components/besigner-root-provider.component.js.map +1 -0
- package/src/lib/components/binding-preview-controls.component.d.ts +28 -0
- package/src/lib/components/binding-preview-controls.component.js +63 -0
- package/src/lib/components/binding-preview-controls.component.js.map +1 -0
- package/src/lib/components/closeable-drawer.component.d.ts +32 -0
- package/src/lib/components/closeable-drawer.component.js +134 -0
- package/src/lib/components/closeable-drawer.component.js.map +1 -0
- package/src/lib/components/component-accordion-list.d.ts +28 -0
- package/src/lib/components/component-accordion-list.js +205 -0
- package/src/lib/components/component-accordion-list.js.map +1 -0
- package/src/lib/components/component-icon.component.d.ts +32 -0
- package/src/lib/components/component-icon.component.js +51 -0
- package/src/lib/components/component-icon.component.js.map +1 -0
- package/src/lib/components/component-picker.d.ts +27 -0
- package/src/lib/components/component-picker.js +368 -0
- package/src/lib/components/component-picker.js.map +1 -0
- package/src/lib/components/components-grid-list.component.d.ts +31 -0
- package/src/lib/components/components-grid-list.component.js +162 -0
- package/src/lib/components/components-grid-list.component.js.map +1 -0
- package/src/lib/components/custom-css-form.component.d.ts +115 -0
- package/src/lib/components/custom-css-form.component.js +699 -0
- package/src/lib/components/custom-css-form.component.js.map +1 -0
- package/src/lib/components/device-preview-controls.component.d.ts +22 -0
- package/src/lib/components/device-preview-controls.component.js +150 -0
- package/src/lib/components/device-preview-controls.component.js.map +1 -0
- package/src/lib/components/dnd/canvas-drop-indicator.d.ts +20 -0
- package/src/lib/components/dnd/canvas-drop-indicator.js +61 -0
- package/src/lib/components/dnd/canvas-drop-indicator.js.map +1 -0
- package/src/lib/components/dnd/draggable-droppable.d.ts +31 -0
- package/src/lib/components/dnd/draggable-droppable.js +383 -0
- package/src/lib/components/dnd/draggable-droppable.js.map +1 -0
- package/src/lib/components/dnd/draggable.d.ts +42 -0
- package/src/lib/components/dnd/draggable.js +66 -0
- package/src/lib/components/dnd/draggable.js.map +1 -0
- package/src/lib/components/dnd/drop-indicator.d.ts +31 -0
- package/src/lib/components/dnd/drop-indicator.js +139 -0
- package/src/lib/components/dnd/drop-indicator.js.map +1 -0
- package/src/lib/components/dnd/droppable.d.ts +43 -0
- package/src/lib/components/dnd/droppable.js +63 -0
- package/src/lib/components/dnd/droppable.js.map +1 -0
- package/src/lib/components/element-card.component.d.ts +23 -0
- package/src/lib/components/element-card.component.js +49 -0
- package/src/lib/components/element-card.component.js.map +1 -0
- package/src/lib/components/element-classes-field.component.d.ts +41 -0
- package/src/lib/components/element-classes-field.component.js +140 -0
- package/src/lib/components/element-classes-field.component.js.map +1 -0
- package/src/lib/components/element-detail-overlay.component.d.ts +55 -0
- package/src/lib/components/element-detail-overlay.component.js +157 -0
- package/src/lib/components/element-detail-overlay.component.js.map +1 -0
- package/src/lib/components/element-detail.component.d.ts +56 -0
- package/src/lib/components/element-detail.component.js +171 -0
- package/src/lib/components/element-detail.component.js.map +1 -0
- package/src/lib/components/element-info-details.component.d.ts +18 -0
- package/src/lib/components/element-info-details.component.js +169 -0
- package/src/lib/components/element-info-details.component.js.map +1 -0
- package/src/lib/components/element-interactions-form.component.d.ts +21 -0
- package/src/lib/components/element-interactions-form.component.js +199 -0
- package/src/lib/components/element-interactions-form.component.js.map +1 -0
- package/src/lib/components/element-preview.component.d.ts +75 -0
- package/src/lib/components/element-preview.component.js +346 -0
- package/src/lib/components/element-preview.component.js.map +1 -0
- package/src/lib/components/element-props-form.component.d.ts +565 -0
- package/src/lib/components/element-props-form.component.js +2392 -0
- package/src/lib/components/element-props-form.component.js.map +1 -0
- package/src/lib/components/element-styles-form-template.component.d.ts +27 -0
- package/src/lib/components/element-styles-form-template.component.js +89 -0
- package/src/lib/components/element-styles-form-template.component.js.map +1 -0
- package/src/lib/components/element-styles-form.component.d.ts +52 -0
- package/src/lib/components/element-styles-form.component.js +1350 -0
- package/src/lib/components/element-styles-form.component.js.map +1 -0
- package/src/lib/components/empty-document-slot.d.ts +39 -0
- package/src/lib/components/empty-document-slot.js +121 -0
- package/src/lib/components/empty-document-slot.js.map +1 -0
- package/src/lib/components/empty-results.d.ts +22 -0
- package/src/lib/components/empty-results.js +131 -0
- package/src/lib/components/empty-results.js.map +1 -0
- package/src/lib/components/history-controls.component.d.ts +21 -0
- package/src/lib/components/history-controls.component.js +67 -0
- package/src/lib/components/history-controls.component.js.map +1 -0
- package/src/lib/components/inline-markdown-editor.component.d.ts +17 -0
- package/src/lib/components/inline-markdown-editor.component.js +220 -0
- package/src/lib/components/inline-markdown-editor.component.js.map +1 -0
- package/src/lib/components/inline-text-editor.component.d.ts +48 -0
- package/src/lib/components/inline-text-editor.component.js +905 -0
- package/src/lib/components/inline-text-editor.component.js.map +1 -0
- package/src/lib/components/insert-token-menu.component.d.ts +86 -0
- package/src/lib/components/insert-token-menu.component.js +232 -0
- package/src/lib/components/insert-token-menu.component.js.map +1 -0
- package/src/lib/components/instance-attr-overrides.component.d.ts +50 -0
- package/src/lib/components/instance-attr-overrides.component.js +298 -0
- package/src/lib/components/instance-attr-overrides.component.js.map +1 -0
- package/src/lib/components/interact-controls.component.d.ts +22 -0
- package/src/lib/components/interact-controls.component.js +74 -0
- package/src/lib/components/interact-controls.component.js.map +1 -0
- package/src/lib/components/markdown-attribute-field.component.d.ts +40 -0
- package/src/lib/components/markdown-attribute-field.component.js +103 -0
- package/src/lib/components/markdown-attribute-field.component.js.map +1 -0
- package/src/lib/components/node-card.d.ts +24 -0
- package/src/lib/components/node-card.js +86 -0
- package/src/lib/components/node-card.js.map +1 -0
- package/src/lib/components/node-context-menu.d.ts +25 -0
- package/src/lib/components/node-context-menu.js +558 -0
- package/src/lib/components/node-context-menu.js.map +1 -0
- package/src/lib/components/node-leaf.d.ts +39 -0
- package/src/lib/components/node-leaf.js +628 -0
- package/src/lib/components/node-leaf.js.map +1 -0
- package/src/lib/components/node-outline.d.ts +24 -0
- package/src/lib/components/node-outline.js +156 -0
- package/src/lib/components/node-outline.js.map +1 -0
- package/src/lib/components/node-overlay.d.ts +23 -0
- package/src/lib/components/node-overlay.js +299 -0
- package/src/lib/components/node-overlay.js.map +1 -0
- package/src/lib/components/node-quick-actions.d.ts +24 -0
- package/src/lib/components/node-quick-actions.js +284 -0
- package/src/lib/components/node-quick-actions.js.map +1 -0
- package/src/lib/components/node-tree-view.d.ts +106 -0
- package/src/lib/components/node-tree-view.js +820 -0
- package/src/lib/components/node-tree-view.js.map +1 -0
- package/src/lib/components/panel-controls.component.d.ts +22 -0
- package/src/lib/components/panel-controls.component.js +76 -0
- package/src/lib/components/panel-controls.component.js.map +1 -0
- package/src/lib/components/picker-search-field.d.ts +38 -0
- package/src/lib/components/picker-search-field.js +79 -0
- package/src/lib/components/picker-search-field.js.map +1 -0
- package/src/lib/components/plugin-settings-field.component.d.ts +38 -0
- package/src/lib/components/plugin-settings-field.component.js +264 -0
- package/src/lib/components/plugin-settings-field.component.js.map +1 -0
- package/src/lib/components/properties-dialog.component.d.ts +22 -0
- package/src/lib/components/properties-dialog.component.js +40 -0
- package/src/lib/components/properties-dialog.component.js.map +1 -0
- package/src/lib/components/property-binding-field.component.d.ts +142 -0
- package/src/lib/components/property-binding-field.component.js +325 -0
- package/src/lib/components/property-binding-field.component.js.map +1 -0
- package/src/lib/components/property-values-form.component.d.ts +43 -0
- package/src/lib/components/property-values-form.component.js +223 -0
- package/src/lib/components/property-values-form.component.js.map +1 -0
- package/src/lib/components/scheme-preview-controls.component.d.ts +26 -0
- package/src/lib/components/scheme-preview-controls.component.js +56 -0
- package/src/lib/components/scheme-preview-controls.component.js.map +1 -0
- package/src/lib/components/screen-link-field.component.d.ts +118 -0
- package/src/lib/components/screen-link-field.component.js +282 -0
- package/src/lib/components/screen-link-field.component.js.map +1 -0
- package/src/lib/components/site-theme-color-tokens-provider.component.d.ts +33 -0
- package/src/lib/components/site-theme-color-tokens-provider.component.js +53 -0
- package/src/lib/components/site-theme-color-tokens-provider.component.js.map +1 -0
- package/src/lib/components/subtree-json-dialog.component.d.ts +46 -0
- package/src/lib/components/subtree-json-dialog.component.js +125 -0
- package/src/lib/components/subtree-json-dialog.component.js.map +1 -0
- package/src/lib/components/token-pill.component.d.ts +51 -0
- package/src/lib/components/token-pill.component.js +164 -0
- package/src/lib/components/token-pill.component.js.map +1 -0
- package/src/lib/components/token-text-field.component.d.ts +146 -0
- package/src/lib/components/token-text-field.component.js +603 -0
- package/src/lib/components/token-text-field.component.js.map +1 -0
- package/src/lib/components/tree/tree-list.d.ts +6 -0
- package/src/lib/components/tree/tree-list.js +108 -0
- package/src/lib/components/tree/tree-list.js.map +1 -0
- package/src/lib/components/viewport-canvas.component.d.ts +23 -0
- package/src/lib/components/viewport-canvas.component.js +128 -0
- package/src/lib/components/viewport-canvas.component.js.map +1 -0
- package/src/lib/components/viewport-frame.component.d.ts +47 -0
- package/src/lib/components/viewport-frame.component.js +332 -0
- package/src/lib/components/viewport-frame.component.js.map +1 -0
- package/src/lib/components/viewport-root.component.d.ts +22 -0
- package/src/lib/components/viewport-root.component.js +112 -0
- package/src/lib/components/viewport-root.component.js.map +1 -0
- package/src/lib/components/viewport-zoom-controls.d.ts +29 -0
- package/src/lib/components/viewport-zoom-controls.js +147 -0
- package/src/lib/components/viewport-zoom-controls.js.map +1 -0
- package/src/lib/components/workspace-editor.component.d.ts +23 -0
- package/src/lib/components/workspace-editor.component.js +191 -0
- package/src/lib/components/workspace-editor.component.js.map +1 -0
- package/src/lib/components/workspace-panel.component.d.ts +28 -0
- package/src/lib/components/workspace-panel.component.js +147 -0
- package/src/lib/components/workspace-panel.component.js.map +1 -0
- package/src/lib/constants/sample-data.d.ts +18 -0
- package/src/lib/constants/sample-data.js +106 -0
- package/src/lib/constants/sample-data.js.map +1 -0
- package/src/lib/constants/shared.d.ts +17 -0
- package/src/lib/constants/shared.js +18 -0
- package/src/lib/constants/shared.js.map +1 -0
- package/src/lib/contexts/besigner-app-context.d.ts +30 -0
- package/src/lib/contexts/besigner-app-context.js +41 -0
- package/src/lib/contexts/besigner-app-context.js.map +1 -0
- package/src/lib/contexts/binding-picker-context.d.ts +78 -0
- package/src/lib/contexts/binding-picker-context.js +21 -0
- package/src/lib/contexts/binding-picker-context.js.map +1 -0
- package/src/lib/contexts/canvas-host-tokens-context.d.ts +49 -0
- package/src/lib/contexts/canvas-host-tokens-context.js +63 -0
- package/src/lib/contexts/canvas-host-tokens-context.js.map +1 -0
- package/src/lib/contexts/canvas-reveal-context.d.ts +32 -0
- package/src/lib/contexts/canvas-reveal-context.js +34 -0
- package/src/lib/contexts/canvas-reveal-context.js.map +1 -0
- package/src/lib/contexts/component-promotion-context.d.ts +89 -0
- package/src/lib/contexts/component-promotion-context.js +21 -0
- package/src/lib/contexts/component-promotion-context.js.map +1 -0
- package/src/lib/contexts/components-drawer-context.provider.d.ts +32 -0
- package/src/lib/contexts/components-drawer-context.provider.js +80 -0
- package/src/lib/contexts/components-drawer-context.provider.js.map +1 -0
- package/src/lib/contexts/element-drawer-context.d.ts +1005 -0
- package/src/lib/contexts/element-drawer-context.js +45 -0
- package/src/lib/contexts/element-drawer-context.js.map +1 -0
- package/src/lib/contexts/inspected-selection.d.ts +32 -0
- package/src/lib/contexts/inspected-selection.js +38 -0
- package/src/lib/contexts/inspected-selection.js.map +1 -0
- package/src/lib/contexts/inspector-extras-context.d.ts +56 -0
- package/src/lib/contexts/inspector-extras-context.js +35 -0
- package/src/lib/contexts/inspector-extras-context.js.map +1 -0
- package/src/lib/contexts/interactions-context.d.ts +99 -0
- package/src/lib/contexts/interactions-context.js +22 -0
- package/src/lib/contexts/interactions-context.js.map +1 -0
- package/src/lib/contexts/layout-chrome-context.d.ts +37 -0
- package/src/lib/contexts/layout-chrome-context.js +75 -0
- package/src/lib/contexts/layout-chrome-context.js.map +1 -0
- package/src/lib/contexts/media-asset-facts-context.d.ts +74 -0
- package/src/lib/contexts/media-asset-facts-context.js +27 -0
- package/src/lib/contexts/media-asset-facts-context.js.map +1 -0
- package/src/lib/contexts/media-picker-context.d.ts +88 -0
- package/src/lib/contexts/media-picker-context.js +21 -0
- package/src/lib/contexts/media-picker-context.js.map +1 -0
- package/src/lib/contexts/rendered-canvas-elements.d.ts +42 -0
- package/src/lib/contexts/rendered-canvas-elements.js +79 -0
- package/src/lib/contexts/rendered-canvas-elements.js.map +1 -0
- package/src/lib/contexts/repeat-record-context.d.ts +38 -0
- package/src/lib/contexts/repeat-record-context.js +21 -0
- package/src/lib/contexts/repeat-record-context.js.map +1 -0
- package/src/lib/contexts/repeat-rows-context.d.ts +53 -0
- package/src/lib/contexts/repeat-rows-context.js +38 -0
- package/src/lib/contexts/repeat-rows-context.js.map +1 -0
- package/src/lib/contexts/toolbar-extras-context.d.ts +31 -0
- package/src/lib/contexts/toolbar-extras-context.js +33 -0
- package/src/lib/contexts/toolbar-extras-context.js.map +1 -0
- package/src/lib/drafts/besigner-draft-store.d.ts +110 -0
- package/src/lib/drafts/besigner-draft-store.js +125 -0
- package/src/lib/drafts/besigner-draft-store.js.map +1 -0
- package/src/lib/drafts/besigner-server-draft.d.ts +130 -0
- package/src/lib/drafts/besigner-server-draft.js +211 -0
- package/src/lib/drafts/besigner-server-draft.js.map +1 -0
- package/src/lib/form-fields/components/shared/inline-form-control.d.ts +32 -0
- package/src/lib/form-fields/components/shared/inline-form-control.js +85 -0
- package/src/lib/form-fields/components/shared/inline-form-control.js.map +1 -0
- package/src/lib/form-fields/components/shared/toggle-button-form-control.d.ts +33 -0
- package/src/lib/form-fields/components/shared/toggle-button-form-control.js +83 -0
- package/src/lib/form-fields/components/shared/toggle-button-form-control.js.map +1 -0
- package/src/lib/form-fields/form-fields.d.ts +20 -0
- package/src/lib/form-fields/form-fields.js +21 -0
- package/src/lib/form-fields/form-fields.js.map +1 -0
- package/src/lib/form-fields/index.d.ts +1 -0
- package/src/lib/form-fields/index.js +3 -0
- package/src/lib/form-fields/index.js.map +1 -0
- package/src/lib/hooks/use-add-element-drawer-callback.d.ts +28 -0
- package/src/lib/hooks/use-add-element-drawer-callback.js +112 -0
- package/src/lib/hooks/use-add-element-drawer-callback.js.map +1 -0
- package/src/lib/hooks/use-aglyn-besigner-flag.d.ts +23 -0
- package/src/lib/hooks/use-aglyn-besigner-flag.js +47 -0
- package/src/lib/hooks/use-aglyn-besigner-flag.js.map +1 -0
- package/src/lib/hooks/use-aglyn-besigner-panel-value.d.ts +23 -0
- package/src/lib/hooks/use-aglyn-besigner-panel-value.js +54 -0
- package/src/lib/hooks/use-aglyn-besigner-panel-value.js.map +1 -0
- package/src/lib/hooks/use-aglyn-besigner-panel.d.ts +23 -0
- package/src/lib/hooks/use-aglyn-besigner-panel.js +47 -0
- package/src/lib/hooks/use-aglyn-besigner-panel.js.map +1 -0
- package/src/lib/hooks/use-anchored-rect.d.ts +68 -0
- package/src/lib/hooks/use-anchored-rect.js +131 -0
- package/src/lib/hooks/use-anchored-rect.js.map +1 -0
- package/src/lib/hooks/use-besigner-app-context.d.ts +18 -0
- package/src/lib/hooks/use-besigner-app-context.js +19 -0
- package/src/lib/hooks/use-besigner-app-context.js.map +1 -0
- package/src/lib/hooks/use-besigner-document.d.ts +309 -0
- package/src/lib/hooks/use-besigner-document.js +500 -0
- package/src/lib/hooks/use-besigner-document.js.map +1 -0
- package/src/lib/hooks/use-besigner-draft.d.ts +209 -0
- package/src/lib/hooks/use-besigner-draft.js +429 -0
- package/src/lib/hooks/use-besigner-draft.js.map +1 -0
- package/src/lib/hooks/use-clipboard-callbacks.d.ts +29 -0
- package/src/lib/hooks/use-clipboard-callbacks.js +82 -0
- package/src/lib/hooks/use-clipboard-callbacks.js.map +1 -0
- package/src/lib/hooks/use-clipboard-shortcuts.d.ts +52 -0
- package/src/lib/hooks/use-clipboard-shortcuts.js +102 -0
- package/src/lib/hooks/use-clipboard-shortcuts.js.map +1 -0
- package/src/lib/hooks/use-component-propagation-notice.d.ts +96 -0
- package/src/lib/hooks/use-component-propagation-notice.js +177 -0
- package/src/lib/hooks/use-component-propagation-notice.js.map +1 -0
- package/src/lib/hooks/use-debounced-commit.d.ts +43 -0
- package/src/lib/hooks/use-debounced-commit.js +88 -0
- package/src/lib/hooks/use-debounced-commit.js.map +1 -0
- package/src/lib/hooks/use-delete-element-callback.d.ts +24 -0
- package/src/lib/hooks/use-delete-element-callback.js +82 -0
- package/src/lib/hooks/use-delete-element-callback.js.map +1 -0
- package/src/lib/hooks/use-detail-hover-intent.d.ts +76 -0
- package/src/lib/hooks/use-detail-hover-intent.js +123 -0
- package/src/lib/hooks/use-detail-hover-intent.js.map +1 -0
- package/src/lib/hooks/use-document-repair-callbacks.d.ts +50 -0
- package/src/lib/hooks/use-document-repair-callbacks.js +237 -0
- package/src/lib/hooks/use-document-repair-callbacks.js.map +1 -0
- package/src/lib/hooks/use-insert-token-options.d.ts +52 -0
- package/src/lib/hooks/use-insert-token-options.js +230 -0
- package/src/lib/hooks/use-insert-token-options.js.map +1 -0
- package/src/lib/hooks/use-leaf-drag.d.ts +24 -0
- package/src/lib/hooks/use-leaf-drag.js +28 -0
- package/src/lib/hooks/use-leaf-drag.js.map +1 -0
- package/src/lib/hooks/use-leaf-drop.d.ts +31 -0
- package/src/lib/hooks/use-leaf-drop.js +43 -0
- package/src/lib/hooks/use-leaf-drop.js.map +1 -0
- package/src/lib/hooks/use-markdown-media-picker.d.ts +63 -0
- package/src/lib/hooks/use-markdown-media-picker.js +110 -0
- package/src/lib/hooks/use-markdown-media-picker.js.map +1 -0
- package/src/lib/hooks/use-media-asset-facts-overlay.d.ts +43 -0
- package/src/lib/hooks/use-media-asset-facts-overlay.js +133 -0
- package/src/lib/hooks/use-media-asset-facts-overlay.js.map +1 -0
- package/src/lib/hooks/use-move-node-callbacks.d.ts +22 -0
- package/src/lib/hooks/use-move-node-callbacks.js +57 -0
- package/src/lib/hooks/use-move-node-callbacks.js.map +1 -0
- package/src/lib/hooks/use-node-with-host-tokens.d.ts +42 -0
- package/src/lib/hooks/use-node-with-host-tokens.js +59 -0
- package/src/lib/hooks/use-node-with-host-tokens.js.map +1 -0
- package/src/lib/hooks/use-picker-filter.d.ts +61 -0
- package/src/lib/hooks/use-picker-filter.js +122 -0
- package/src/lib/hooks/use-picker-filter.js.map +1 -0
- package/src/lib/hooks/use-repeat-preview.d.ts +64 -0
- package/src/lib/hooks/use-repeat-preview.js +214 -0
- package/src/lib/hooks/use-repeat-preview.js.map +1 -0
- package/src/lib/hooks/use-repeat-sources.d.ts +17 -0
- package/src/lib/hooks/use-repeat-sources.js +41 -0
- package/src/lib/hooks/use-repeat-sources.js.map +1 -0
- package/src/lib/hooks/use-visible-component-categories.d.ts +37 -0
- package/src/lib/hooks/use-visible-component-categories.js +79 -0
- package/src/lib/hooks/use-visible-component-categories.js.map +1 -0
- package/src/lib/utils/active-host-theme.d.ts +28 -0
- package/src/lib/utils/active-host-theme.js +77 -0
- package/src/lib/utils/active-host-theme.js.map +1 -0
- package/src/lib/utils/attr-target.d.ts +170 -0
- package/src/lib/utils/attr-target.js +229 -0
- package/src/lib/utils/attr-target.js.map +1 -0
- package/src/lib/utils/attribute-field-value.d.ts +21 -0
- package/src/lib/utils/attribute-field-value.js +28 -0
- package/src/lib/utils/attribute-field-value.js.map +1 -0
- package/src/lib/utils/canvas-context-menu.d.ts +28 -0
- package/src/lib/utils/canvas-context-menu.js +56 -0
- package/src/lib/utils/canvas-context-menu.js.map +1 -0
- package/src/lib/utils/canvas-reveal.d.ts +115 -0
- package/src/lib/utils/canvas-reveal.js +165 -0
- package/src/lib/utils/canvas-reveal.js.map +1 -0
- package/src/lib/utils/describe-element.d.ts +72 -0
- package/src/lib/utils/describe-element.js +159 -0
- package/src/lib/utils/describe-element.js.map +1 -0
- package/src/lib/utils/device-preview-styles.d.ts +89 -0
- package/src/lib/utils/device-preview-styles.js +228 -0
- package/src/lib/utils/device-preview-styles.js.map +1 -0
- package/src/lib/utils/docs-help.d.ts +22 -0
- package/src/lib/utils/docs-help.generated.d.ts +47 -0
- package/src/lib/utils/docs-help.generated.js +229 -0
- package/src/lib/utils/docs-help.generated.js.map +1 -0
- package/src/lib/utils/docs-help.js +37 -0
- package/src/lib/utils/docs-help.js.map +1 -0
- package/src/lib/utils/held-answers-store.d.ts +59 -0
- package/src/lib/utils/held-answers-store.js +94 -0
- package/src/lib/utils/held-answers-store.js.map +1 -0
- package/src/lib/utils/in-place-edit-surface.d.ts +118 -0
- package/src/lib/utils/in-place-edit-surface.js +164 -0
- package/src/lib/utils/in-place-edit-surface.js.map +1 -0
- package/src/lib/utils/inline-markdown-edit.store.d.ts +71 -0
- package/src/lib/utils/inline-markdown-edit.store.js +90 -0
- package/src/lib/utils/inline-markdown-edit.store.js.map +1 -0
- package/src/lib/utils/inline-text-edit.store.d.ts +85 -0
- package/src/lib/utils/inline-text-edit.store.js +78 -0
- package/src/lib/utils/inline-text-edit.store.js.map +1 -0
- package/src/lib/utils/instance-leaf-hit.d.ts +39 -0
- package/src/lib/utils/instance-leaf-hit.js +56 -0
- package/src/lib/utils/instance-leaf-hit.js.map +1 -0
- package/src/lib/utils/muted-classes.d.ts +76 -0
- package/src/lib/utils/muted-classes.js +108 -0
- package/src/lib/utils/muted-classes.js.map +1 -0
- package/src/lib/utils/muted-styles.d.ts +125 -0
- package/src/lib/utils/muted-styles.js +193 -0
- package/src/lib/utils/muted-styles.js.map +1 -0
- package/src/lib/utils/numeric-text-value.d.ts +42 -0
- package/src/lib/utils/numeric-text-value.js +47 -0
- package/src/lib/utils/numeric-text-value.js.map +1 -0
- package/src/lib/utils/preset-interactions.d.ts +37 -0
- package/src/lib/utils/preset-interactions.js +87 -0
- package/src/lib/utils/preset-interactions.js.map +1 -0
- package/src/lib/utils/publish-failure-message.d.ts +35 -0
- package/src/lib/utils/publish-failure-message.js +51 -0
- package/src/lib/utils/publish-failure-message.js.map +1 -0
- package/src/lib/utils/rank-picker-results.d.ts +45 -0
- package/src/lib/utils/rank-picker-results.js +136 -0
- package/src/lib/utils/rank-picker-results.js.map +1 -0
- package/src/lib/utils/responsive-sx.d.ts +65 -0
- package/src/lib/utils/responsive-sx.js +129 -0
- package/src/lib/utils/responsive-sx.js.map +1 -0
- package/src/lib/utils/rich-text-commands.d.ts +28 -0
- package/src/lib/utils/rich-text-commands.js +43 -0
- package/src/lib/utils/rich-text-commands.js.map +1 -0
- package/src/lib/utils/sanitize-rich-text.d.ts +52 -0
- package/src/lib/utils/sanitize-rich-text.js +173 -0
- package/src/lib/utils/sanitize-rich-text.js.map +1 -0
- package/src/lib/utils/state-sx.d.ts +255 -0
- package/src/lib/utils/state-sx.js +338 -0
- package/src/lib/utils/state-sx.js.map +1 -0
- package/src/lib/utils/style-field-groups.d.ts +136 -0
- package/src/lib/utils/style-field-groups.js +874 -0
- package/src/lib/utils/style-field-groups.js.map +1 -0
- package/src/lib/utils/style-field-search.d.ts +84 -0
- package/src/lib/utils/style-field-search.js +505 -0
- package/src/lib/utils/style-field-search.js.map +1 -0
- package/src/lib/utils/style-target.d.ts +69 -0
- package/src/lib/utils/style-target.js +203 -0
- package/src/lib/utils/style-target.js.map +1 -0
- package/src/lib/utils/theme-scale-options.d.ts +169 -0
- package/src/lib/utils/theme-scale-options.js +702 -0
- package/src/lib/utils/theme-scale-options.js.map +1 -0
- package/src/lib/utils/token-editable-dom.d.ts +82 -0
- package/src/lib/utils/token-editable-dom.js +280 -0
- package/src/lib/utils/token-editable-dom.js.map +1 -0
- package/src/lib/utils/token-segments.d.ts +111 -0
- package/src/lib/utils/token-segments.js +246 -0
- package/src/lib/utils/token-segments.js.map +1 -0
- package/src/lib/utils/visibility-styles.d.ts +38 -0
- package/src/lib/utils/visibility-styles.js +54 -0
- package/src/lib/utils/visibility-styles.js.map +1 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2026 Aglyn LLC
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/ import { mdiFitToPage, MdiIcon, mdiMagnifyMinus, mdiMagnifyPlus, SrOnly } from "@aglyn/shared-ui-jsx";
|
|
20
|
+
import { styled } from "@aglyn/shared-ui-theme";
|
|
21
|
+
import { _isFnT } from "@aglyn/shared-util-tools";
|
|
22
|
+
import Button from "@mui/material/Button";
|
|
23
|
+
import ButtonGroup from "@mui/material/ButtonGroup";
|
|
24
|
+
import Tooltip from "@mui/material/Tooltip";
|
|
25
|
+
import { forwardRef, useCallback } from "react";
|
|
26
|
+
const ZoomControlsWrapper = styled('div', {
|
|
27
|
+
name: 'AglynViewportZoomControls'
|
|
28
|
+
})(({ theme })=>({
|
|
29
|
+
display: 'none',
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
bottom: theme.spacing(1),
|
|
32
|
+
zIndex: theme.zIndex.tooltip,
|
|
33
|
+
opacity: 0.32,
|
|
34
|
+
transition: theme.transitions.create([
|
|
35
|
+
'opacity',
|
|
36
|
+
'filter'
|
|
37
|
+
], {
|
|
38
|
+
easing: theme.transitions.easing.sharp,
|
|
39
|
+
duration: theme.transitions.duration.leavingScreen
|
|
40
|
+
}),
|
|
41
|
+
['&:hover']: {
|
|
42
|
+
opacity: 1,
|
|
43
|
+
transition: theme.transitions.create([
|
|
44
|
+
'opacity',
|
|
45
|
+
'filter'
|
|
46
|
+
], {
|
|
47
|
+
easing: theme.transitions.easing.easeOut,
|
|
48
|
+
duration: theme.transitions.duration.enteringScreen
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
export const ViewportZoomControls = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
53
|
+
const { disableZoomReset, disableZoomDecrease, disableZoomIncrease, onZoomReset, onZoomDecrease, onZoomIncrease } = props, rest = _object_without_properties_loose(props, [
|
|
54
|
+
"disableZoomReset",
|
|
55
|
+
"disableZoomDecrease",
|
|
56
|
+
"disableZoomIncrease",
|
|
57
|
+
"onZoomReset",
|
|
58
|
+
"onZoomDecrease",
|
|
59
|
+
"onZoomIncrease"
|
|
60
|
+
]);
|
|
61
|
+
const handleReset = useCallback((e)=>{
|
|
62
|
+
if (_isFnT(onZoomReset)) {
|
|
63
|
+
onZoomReset(e);
|
|
64
|
+
}
|
|
65
|
+
}, [
|
|
66
|
+
onZoomReset
|
|
67
|
+
]);
|
|
68
|
+
const handleDecrease = useCallback((e)=>{
|
|
69
|
+
if (_isFnT(onZoomDecrease)) {
|
|
70
|
+
onZoomDecrease(e);
|
|
71
|
+
}
|
|
72
|
+
}, [
|
|
73
|
+
onZoomDecrease
|
|
74
|
+
]);
|
|
75
|
+
const handleIncrease = useCallback((e)=>{
|
|
76
|
+
if (_isFnT(onZoomIncrease)) {
|
|
77
|
+
onZoomIncrease(e);
|
|
78
|
+
}
|
|
79
|
+
}, [
|
|
80
|
+
onZoomIncrease
|
|
81
|
+
]);
|
|
82
|
+
return /*#__PURE__*/ _jsx(ZoomControlsWrapper, _extends({
|
|
83
|
+
ref: ref,
|
|
84
|
+
id: "aglyn:viewport-zoom-controls"
|
|
85
|
+
}, rest, {
|
|
86
|
+
children: /*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
87
|
+
variant: "contained",
|
|
88
|
+
color: "primary",
|
|
89
|
+
"aria-label": "zoom controls",
|
|
90
|
+
size: "small",
|
|
91
|
+
children: [
|
|
92
|
+
/*#__PURE__*/ _jsx(Tooltip, {
|
|
93
|
+
title: "Reset zoom",
|
|
94
|
+
children: /*#__PURE__*/ _jsxs(Button, {
|
|
95
|
+
disabled: disableZoomReset,
|
|
96
|
+
onClick: handleReset,
|
|
97
|
+
children: [
|
|
98
|
+
/*#__PURE__*/ _jsx(MdiIcon, {
|
|
99
|
+
fontSize: "inherit",
|
|
100
|
+
path: mdiFitToPage.path
|
|
101
|
+
}),
|
|
102
|
+
/*#__PURE__*/ _jsx(SrOnly, {
|
|
103
|
+
children: 'Reset zoom'
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
}),
|
|
108
|
+
/*#__PURE__*/ _jsx(Tooltip, {
|
|
109
|
+
title: "Decrease zoom (⌘-)",
|
|
110
|
+
children: /*#__PURE__*/ _jsxs(Button, {
|
|
111
|
+
disabled: disableZoomDecrease,
|
|
112
|
+
onClick: handleDecrease,
|
|
113
|
+
children: [
|
|
114
|
+
/*#__PURE__*/ _jsx(MdiIcon, {
|
|
115
|
+
fontSize: "inherit",
|
|
116
|
+
path: mdiMagnifyMinus.path
|
|
117
|
+
}),
|
|
118
|
+
/*#__PURE__*/ _jsx(SrOnly, {
|
|
119
|
+
children: 'Decrease zoom (⌘-)'
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
})
|
|
123
|
+
}),
|
|
124
|
+
/*#__PURE__*/ _jsx(Tooltip, {
|
|
125
|
+
title: "Increase zoom (⌘+)",
|
|
126
|
+
children: /*#__PURE__*/ _jsxs(Button, {
|
|
127
|
+
disabled: disableZoomIncrease,
|
|
128
|
+
onClick: handleIncrease,
|
|
129
|
+
children: [
|
|
130
|
+
/*#__PURE__*/ _jsx(MdiIcon, {
|
|
131
|
+
fontSize: "inherit",
|
|
132
|
+
path: mdiMagnifyPlus.path
|
|
133
|
+
}),
|
|
134
|
+
/*#__PURE__*/ _jsx(SrOnly, {
|
|
135
|
+
children: 'Increase zoom (⌘+)'
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
})
|
|
142
|
+
}));
|
|
143
|
+
});
|
|
144
|
+
ViewportZoomControls.displayName = 'ViewportZoomControls';
|
|
145
|
+
export default ViewportZoomControls;
|
|
146
|
+
|
|
147
|
+
//# sourceMappingURL=viewport-zoom-controls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/components/viewport-zoom-controls.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n mdiFitToPage,\n MdiIcon,\n mdiMagnifyMinus,\n mdiMagnifyPlus,\n SrOnly,\n} from '@aglyn/shared-ui-jsx'\nimport { styled } from '@aglyn/shared-ui-theme'\nimport { _isFnT } from '@aglyn/shared-util-tools'\nimport Button from '@mui/material/Button'\nimport ButtonGroup from '@mui/material/ButtonGroup'\nimport Tooltip from '@mui/material/Tooltip'\nimport type { ComponentProps } from 'react'\nimport {\n type ChangeEvent,\n type EventHandler,\n forwardRef,\n useCallback,\n} from 'react'\n\nconst ZoomControlsWrapper = styled('div', {\n name: 'AglynViewportZoomControls',\n})(({ theme }) => ({\n display: 'none',\n position: 'absolute',\n bottom: theme.spacing(1),\n zIndex: theme.zIndex.tooltip,\n opacity: 0.32,\n transition: theme.transitions.create(['opacity', 'filter'], {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen,\n }),\n ['&:hover']: {\n opacity: 1,\n transition: theme.transitions.create(['opacity', 'filter'], {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.enteringScreen,\n }),\n },\n}))\n\nexport interface ViewportZoomControlsComponentProps\n extends ComponentProps<typeof ZoomControlsWrapper> {\n disableZoomReset?: boolean\n disableZoomDecrease?: boolean\n disableZoomIncrease?: boolean\n onZoomReset?: EventHandler<any>\n onZoomDecrease?: EventHandler<any>\n onZoomIncrease?: EventHandler<any>\n}\n\nexport const ViewportZoomControls = forwardRef<\n any,\n ViewportZoomControlsComponentProps\n>((props, ref) => {\n const {\n disableZoomReset,\n disableZoomDecrease,\n disableZoomIncrease,\n onZoomReset,\n onZoomDecrease,\n onZoomIncrease,\n ...rest\n } = props\n\n const handleReset = useCallback(\n (e: ChangeEvent<unknown>) => {\n if (_isFnT(onZoomReset)) {\n onZoomReset(e)\n }\n },\n [onZoomReset],\n )\n\n const handleDecrease = useCallback(\n (e: ChangeEvent<unknown>) => {\n if (_isFnT(onZoomDecrease)) {\n onZoomDecrease(e)\n }\n },\n [onZoomDecrease],\n )\n\n const handleIncrease = useCallback(\n (e: ChangeEvent<unknown>) => {\n if (_isFnT(onZoomIncrease)) {\n onZoomIncrease(e)\n }\n },\n [onZoomIncrease],\n )\n\n return (\n <ZoomControlsWrapper ref={ref} id=\"aglyn:viewport-zoom-controls\" {...rest}>\n <ButtonGroup\n variant=\"contained\"\n color=\"primary\"\n aria-label=\"zoom controls\"\n size=\"small\"\n >\n <Tooltip title=\"Reset zoom\">\n <Button disabled={disableZoomReset} onClick={handleReset}>\n <MdiIcon fontSize=\"inherit\" path={mdiFitToPage.path} />\n <SrOnly>{'Reset zoom'}</SrOnly>\n </Button>\n </Tooltip>\n <Tooltip title=\"Decrease zoom (⌘-)\">\n <Button disabled={disableZoomDecrease} onClick={handleDecrease}>\n <MdiIcon fontSize=\"inherit\" path={mdiMagnifyMinus.path} />\n <SrOnly>{'Decrease zoom (⌘-)'}</SrOnly>\n </Button>\n </Tooltip>\n <Tooltip title=\"Increase zoom (⌘+)\">\n <Button disabled={disableZoomIncrease} onClick={handleIncrease}>\n <MdiIcon fontSize=\"inherit\" path={mdiMagnifyPlus.path} />\n <SrOnly>{'Increase zoom (⌘+)'}</SrOnly>\n </Button>\n </Tooltip>\n </ButtonGroup>\n </ZoomControlsWrapper>\n )\n})\n\nViewportZoomControls.displayName = 'ViewportZoomControls'\n\nexport default ViewportZoomControls\n"],"names":["mdiFitToPage","MdiIcon","mdiMagnifyMinus","mdiMagnifyPlus","SrOnly","styled","_isFnT","Button","ButtonGroup","Tooltip","forwardRef","useCallback","ZoomControlsWrapper","name","theme","display","position","bottom","spacing","zIndex","tooltip","opacity","transition","transitions","create","easing","sharp","duration","leavingScreen","easeOut","enteringScreen","ViewportZoomControls","props","ref","disableZoomReset","disableZoomDecrease","disableZoomIncrease","onZoomReset","onZoomDecrease","onZoomIncrease","rest","handleReset","e","handleDecrease","handleIncrease","id","variant","color","aria-label","size","title","disabled","onClick","fontSize","path","displayName"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SACEA,YAAY,EACZC,OAAO,EACPC,eAAe,EACfC,cAAc,EACdC,MAAM,QACD,uBAAsB;AAC7B,SAASC,MAAM,QAAQ,yBAAwB;AAC/C,SAASC,MAAM,QAAQ,2BAA0B;AACjD,OAAOC,YAAY,uBAAsB;AACzC,OAAOC,iBAAiB,4BAA2B;AACnD,OAAOC,aAAa,wBAAuB;AAE3C,SAGEC,UAAU,EACVC,WAAW,QACN,QAAO;AAEd,MAAMC,sBAAsBP,OAAO,OAAO;IACxCQ,MAAM;AACR,GAAG,CAAC,EAAEC,KAAK,EAAE,GAAM,CAAA;QACjBC,SAAS;QACTC,UAAU;QACVC,QAAQH,MAAMI,OAAO,CAAC;QACtBC,QAAQL,MAAMK,MAAM,CAACC,OAAO;QAC5BC,SAAS;QACTC,YAAYR,MAAMS,WAAW,CAACC,MAAM,CAAC;YAAC;YAAW;SAAS,EAAE;YAC1DC,QAAQX,MAAMS,WAAW,CAACE,MAAM,CAACC,KAAK;YACtCC,UAAUb,MAAMS,WAAW,CAACI,QAAQ,CAACC,aAAa;QACpD;QACA,CAAC,UAAU,EAAE;YACXP,SAAS;YACTC,YAAYR,MAAMS,WAAW,CAACC,MAAM,CAAC;gBAAC;gBAAW;aAAS,EAAE;gBAC1DC,QAAQX,MAAMS,WAAW,CAACE,MAAM,CAACI,OAAO;gBACxCF,UAAUb,MAAMS,WAAW,CAACI,QAAQ,CAACG,cAAc;YACrD;QACF;IACF,CAAA;AAYA,OAAO,MAAMC,qCAAuBrB,WAGlC,CAACsB,OAAOC;IACR,MAAM,EACJC,gBAAgB,EAChBC,mBAAmB,EACnBC,mBAAmB,EACnBC,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|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import type { ComponentProps } from 'react';
|
|
18
|
+
declare const WorkspaceEditor: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export interface WorkspaceEditorComponentProps extends ComponentProps<typeof WorkspaceEditor> {
|
|
20
|
+
}
|
|
21
|
+
declare const WorkspaceEditorComponent: import("react").ForwardRefExoticComponent<Omit<WorkspaceEditorComponentProps, "ref"> & import("react").RefAttributes<any>>;
|
|
22
|
+
export { WorkspaceEditorComponent };
|
|
23
|
+
export default WorkspaceEditorComponent;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2026 Aglyn LLC
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/ import { canvas } from "@aglyn/aglyn";
|
|
20
|
+
import * as Besigner from "@aglyn/besigner";
|
|
21
|
+
import { useSnackbar } from "@aglyn/shared-ui-snackstack";
|
|
22
|
+
import { useMergeRefs } from "@aglyn/shared-ui-jsx";
|
|
23
|
+
import { LOADING_OVERLAY_ELEMENT } from "@aglyn/shared-ui-jsx/const/prebuilt-components";
|
|
24
|
+
import { generateComponentClassKeys, styled } from "@aglyn/shared-ui-theme";
|
|
25
|
+
import { _isFnT } from "@aglyn/shared-util-tools";
|
|
26
|
+
import { useDndMonitor } from "@dnd-kit/core";
|
|
27
|
+
import { Stack } from "@mui/material";
|
|
28
|
+
import clsx from "clsx";
|
|
29
|
+
import dynamic from "next/dynamic";
|
|
30
|
+
import { forwardRef, useCallback, useRef } from "react";
|
|
31
|
+
import { useMouse } from "react-use";
|
|
32
|
+
import useAglynBesignerPanelValue from "../hooks/use-aglyn-besigner-panel-value.js";
|
|
33
|
+
import AppBarBreadcrumbsComponent from "./app-bar-breadcrumbs.component.js";
|
|
34
|
+
import ViewportZoomControls from "./viewport-zoom-controls.js";
|
|
35
|
+
const classKeys = generateComponentClassKeys('AglynViewport', [
|
|
36
|
+
'panelLeftOpen',
|
|
37
|
+
'panelBottomOpen',
|
|
38
|
+
'panelRightOpen'
|
|
39
|
+
]);
|
|
40
|
+
const PanelLeftComponent = dynamic(()=>import("./aside-panel.component.js").then((mod)=>mod.AsidePanelComponent), {
|
|
41
|
+
ssr: false,
|
|
42
|
+
loading: ()=>LOADING_OVERLAY_ELEMENT
|
|
43
|
+
});
|
|
44
|
+
const WorkspaceEditor = styled('div', {
|
|
45
|
+
name: 'AglynWorkspaceEditor'
|
|
46
|
+
})({
|
|
47
|
+
// position: 'absolute',
|
|
48
|
+
left: 0,
|
|
49
|
+
right: 0,
|
|
50
|
+
top: 0,
|
|
51
|
+
bottom: 0,
|
|
52
|
+
height: '100%',
|
|
53
|
+
width: '100%',
|
|
54
|
+
overflow: 'hidden',
|
|
55
|
+
display: 'flex',
|
|
56
|
+
flexDirection: 'column',
|
|
57
|
+
alignContent: 'stretch',
|
|
58
|
+
alignItems: 'stretch',
|
|
59
|
+
[`&.${classKeys.panelLeftOpen}`]: {},
|
|
60
|
+
[`&.${classKeys.panelBottomOpen}`]: {},
|
|
61
|
+
[`&.${classKeys.panelRightOpen}`]: {}
|
|
62
|
+
});
|
|
63
|
+
const WorkspaceEditorComponent = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
64
|
+
var _useSnackbar;
|
|
65
|
+
const { children, className } = props, rest = _object_without_properties_loose(props, [
|
|
66
|
+
"children",
|
|
67
|
+
"className"
|
|
68
|
+
]);
|
|
69
|
+
const [leftToggled] = useAglynBesignerPanelValue('panelLeft', 'toggled');
|
|
70
|
+
const [rightToggled] = useAglynBesignerPanelValue('panelRight', 'toggled');
|
|
71
|
+
const [bottomToggled] = useAglynBesignerPanelValue('panelBottom', 'toggled');
|
|
72
|
+
const elemClassName = clsx({
|
|
73
|
+
[classKeys.panelLeftOpen]: Boolean(leftToggled),
|
|
74
|
+
[classKeys.panelRightOpen]: Boolean(rightToggled),
|
|
75
|
+
[classKeys.panelBottomOpen]: Boolean(bottomToggled)
|
|
76
|
+
}, className);
|
|
77
|
+
const pannerRef = useRef(null);
|
|
78
|
+
const handleZoomReset = useCallback((e)=>{
|
|
79
|
+
var _pannerRef_current;
|
|
80
|
+
if (_isFnT((_pannerRef_current = pannerRef.current) == null ? void 0 : _pannerRef_current.reset)) {
|
|
81
|
+
pannerRef.current.reset();
|
|
82
|
+
}
|
|
83
|
+
}, []);
|
|
84
|
+
const handleZoomDecrease = useCallback((e)=>{
|
|
85
|
+
var _pannerRef_current;
|
|
86
|
+
if (_isFnT((_pannerRef_current = pannerRef.current) == null ? void 0 : _pannerRef_current.zoomOut)) {
|
|
87
|
+
pannerRef.current.zoomOut();
|
|
88
|
+
}
|
|
89
|
+
}, []);
|
|
90
|
+
const handleZoomIncrease = useCallback((e)=>{
|
|
91
|
+
var _pannerRef_current;
|
|
92
|
+
if (_isFnT((_pannerRef_current = pannerRef.current) == null ? void 0 : _pannerRef_current.zoomIn)) {
|
|
93
|
+
pannerRef.current.zoomIn();
|
|
94
|
+
}
|
|
95
|
+
}, []);
|
|
96
|
+
const localRef = useRef(null);
|
|
97
|
+
const mouse = useMouse(localRef);
|
|
98
|
+
// Null-safe: surfaces render without a snackbar provider in tests.
|
|
99
|
+
const { enqueueSnackbar } = (_useSnackbar = useSnackbar()) != null ? _useSnackbar : {};
|
|
100
|
+
useDndMonitor({
|
|
101
|
+
onDragMove (event) {
|
|
102
|
+
var _event_over;
|
|
103
|
+
let region = null;
|
|
104
|
+
if (event.over) {
|
|
105
|
+
var _event_over_data_current;
|
|
106
|
+
// dnd-kit rects are viewport-relative; useMouse coords are
|
|
107
|
+
// document-relative — subtract the page scroll so region hit
|
|
108
|
+
// tests keep working when the page is scrolled.
|
|
109
|
+
const overNode = (_event_over_data_current = event.over.data.current) == null ? void 0 : _event_over_data_current.node;
|
|
110
|
+
region = Besigner.determineDropRegion(event.over.rect, mouse.docX - window.scrollX, mouse.docY - window.scrollY, // Leaves (self-closing / text-editable) never offer a CHILDREN
|
|
111
|
+
// region — the center reads as a sibling insert, matching where
|
|
112
|
+
// the drop actually lands (see dnd-manager onDragEnd).
|
|
113
|
+
overNode ? canvas.nodeAcceptsChildren(overNode) : true);
|
|
114
|
+
event.over.data.current.region = region;
|
|
115
|
+
}
|
|
116
|
+
Besigner.dnd.setDropRegion(region);
|
|
117
|
+
Besigner.dnd.setDropNode((_event_over = event.over) == null ? void 0 : _event_over.data.current.node);
|
|
118
|
+
event.activatorEvent.stopPropagation();
|
|
119
|
+
},
|
|
120
|
+
onDragStart ({ active }) {
|
|
121
|
+
const node = active == null ? void 0 : active.data.current.node;
|
|
122
|
+
Besigner.dnd.setDragNode(node);
|
|
123
|
+
},
|
|
124
|
+
onDragEnd (e) {
|
|
125
|
+
e.activatorEvent.stopPropagation();
|
|
126
|
+
// Compute before completing the drag — onDragEnd clears dnd state.
|
|
127
|
+
const rejection = Besigner.dnd.describeDropRejection();
|
|
128
|
+
Besigner.dnd.onDragEnd();
|
|
129
|
+
if (rejection) {
|
|
130
|
+
enqueueSnackbar == null ? void 0 : enqueueSnackbar(rejection, {
|
|
131
|
+
variant: 'warning',
|
|
132
|
+
persist: false
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
return /*#__PURE__*/ _jsx(WorkspaceEditor, _extends({
|
|
138
|
+
ref: useMergeRefs(ref, localRef),
|
|
139
|
+
id: "aglyn:besigner-workspace",
|
|
140
|
+
className: elemClassName
|
|
141
|
+
}, rest, {
|
|
142
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
143
|
+
direction: "row",
|
|
144
|
+
id: "aglyn:besigner-main",
|
|
145
|
+
component: "main",
|
|
146
|
+
spacing: 0,
|
|
147
|
+
sx: {
|
|
148
|
+
alignItems: "stretch",
|
|
149
|
+
justifyContent: "space-between",
|
|
150
|
+
flexGrow: 1,
|
|
151
|
+
overflow: 'hidden',
|
|
152
|
+
zIndex: 0
|
|
153
|
+
},
|
|
154
|
+
children: [
|
|
155
|
+
/*#__PURE__*/ _jsx(PanelLeftComponent, {
|
|
156
|
+
panel: 'panelLeft'
|
|
157
|
+
}),
|
|
158
|
+
/*#__PURE__*/ _jsxs(Stack, {
|
|
159
|
+
direction: "column",
|
|
160
|
+
id: "aglyn:besigner-viewport",
|
|
161
|
+
component: "main",
|
|
162
|
+
spacing: 0,
|
|
163
|
+
sx: {
|
|
164
|
+
alignItems: "stretch",
|
|
165
|
+
justifyContent: "space-between",
|
|
166
|
+
flexGrow: 1,
|
|
167
|
+
overflow: 'hidden',
|
|
168
|
+
zIndex: 0
|
|
169
|
+
},
|
|
170
|
+
children: [
|
|
171
|
+
children,
|
|
172
|
+
/*#__PURE__*/ _jsx(ViewportZoomControls, {
|
|
173
|
+
onZoomReset: handleZoomReset,
|
|
174
|
+
onZoomDecrease: handleZoomDecrease,
|
|
175
|
+
onZoomIncrease: handleZoomIncrease
|
|
176
|
+
}),
|
|
177
|
+
/*#__PURE__*/ _jsx(AppBarBreadcrumbsComponent, {})
|
|
178
|
+
]
|
|
179
|
+
}),
|
|
180
|
+
/*#__PURE__*/ _jsx(PanelLeftComponent, {
|
|
181
|
+
panel: 'panelRight'
|
|
182
|
+
})
|
|
183
|
+
]
|
|
184
|
+
})
|
|
185
|
+
}));
|
|
186
|
+
});
|
|
187
|
+
WorkspaceEditorComponent.displayName = 'WorkspaceEditorComponent';
|
|
188
|
+
export { WorkspaceEditorComponent };
|
|
189
|
+
export default WorkspaceEditorComponent;
|
|
190
|
+
|
|
191
|
+
//# sourceMappingURL=workspace-editor.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/components/workspace-editor.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { canvas } from '@aglyn/aglyn'\nimport * as Besigner from '@aglyn/besigner'\nimport { useSnackbar } from '@aglyn/shared-ui-snackstack'\nimport { useMergeRefs } from '@aglyn/shared-ui-jsx'\nimport { LOADING_OVERLAY_ELEMENT } from '@aglyn/shared-ui-jsx/const/prebuilt-components'\nimport { generateComponentClassKeys, styled } from '@aglyn/shared-ui-theme'\nimport { _isFnT } from '@aglyn/shared-util-tools'\nimport {\n DragEndEvent,\n DragMoveEvent,\n DragStartEvent,\n useDndMonitor,\n} from '@dnd-kit/core'\nimport { Stack } from '@mui/material'\nimport clsx from 'clsx'\nimport dynamic from 'next/dynamic'\nimport type { ComponentProps } from 'react'\nimport { ChangeEvent, forwardRef, useCallback, useRef } from 'react'\nimport { useMouse } from 'react-use'\nimport useAglynBesignerPanelValue from '../hooks/use-aglyn-besigner-panel-value'\nimport AppBarBreadcrumbsComponent from './app-bar-breadcrumbs.component'\nimport type { AsidePanelComponentProps } from './aside-panel.component'\nimport ViewportZoomControls from './viewport-zoom-controls'\n\nconst classKeys = generateComponentClassKeys('AglynViewport', [\n 'panelLeftOpen',\n 'panelBottomOpen',\n 'panelRightOpen',\n])\nconst PanelLeftComponent = dynamic<AsidePanelComponentProps>(\n () =>\n import('./aside-panel.component').then((mod) => mod.AsidePanelComponent),\n { ssr: false, loading: () => LOADING_OVERLAY_ELEMENT },\n)\n\nconst WorkspaceEditor = styled('div', {\n name: 'AglynWorkspaceEditor',\n})({\n // position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n height: '100%',\n width: '100%',\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n alignContent: 'stretch',\n alignItems: 'stretch',\n [`&.${classKeys.panelLeftOpen}`]: {},\n [`&.${classKeys.panelBottomOpen}`]: {},\n [`&.${classKeys.panelRightOpen}`]: {},\n})\n\nexport interface WorkspaceEditorComponentProps\n extends ComponentProps<typeof WorkspaceEditor> {}\n\nconst WorkspaceEditorComponent = forwardRef<any, WorkspaceEditorComponentProps>(\n (props, ref) => {\n const { children, className, ...rest } = props\n\n const [leftToggled] = useAglynBesignerPanelValue('panelLeft', 'toggled')\n const [rightToggled] = useAglynBesignerPanelValue('panelRight', 'toggled')\n const [bottomToggled] = useAglynBesignerPanelValue('panelBottom', 'toggled')\n\n const elemClassName = clsx(\n {\n [classKeys.panelLeftOpen]: Boolean(leftToggled),\n [classKeys.panelRightOpen]: Boolean(rightToggled),\n [classKeys.panelBottomOpen]: Boolean(bottomToggled),\n },\n className,\n )\n\n const pannerRef = useRef<any>(null)\n\n const handleZoomReset = useCallback((e: ChangeEvent<unknown>) => {\n if (_isFnT(pannerRef.current?.reset)) {\n pannerRef.current.reset()\n }\n }, [])\n\n const handleZoomDecrease = useCallback((e: ChangeEvent<unknown>) => {\n if (_isFnT(pannerRef.current?.zoomOut)) {\n pannerRef.current.zoomOut()\n }\n }, [])\n\n const handleZoomIncrease = useCallback((e: ChangeEvent<unknown>) => {\n if (_isFnT(pannerRef.current?.zoomIn)) {\n pannerRef.current.zoomIn()\n }\n }, [])\n\n const localRef = useRef(null)\n const mouse = useMouse(localRef)\n // Null-safe: surfaces render without a snackbar provider in tests.\n const { enqueueSnackbar } = useSnackbar() ?? {}\n\n useDndMonitor({\n onDragMove(event: DragMoveEvent): void {\n let region: Besigner.DropRegion = null\n if (event.over) {\n // dnd-kit rects are viewport-relative; useMouse coords are\n // document-relative — subtract the page scroll so region hit\n // tests keep working when the page is scrolled.\n const overNode = event.over.data.current?.node\n region = Besigner.determineDropRegion(\n event.over.rect,\n mouse.docX - window.scrollX,\n mouse.docY - window.scrollY,\n // Leaves (self-closing / text-editable) never offer a CHILDREN\n // region — the center reads as a sibling insert, matching where\n // the drop actually lands (see dnd-manager onDragEnd).\n overNode ? canvas.nodeAcceptsChildren(overNode) : true,\n )\n event.over.data.current.region = region\n }\n Besigner.dnd.setDropRegion(region)\n Besigner.dnd.setDropNode(event.over?.data.current.node)\n\n event.activatorEvent.stopPropagation()\n },\n onDragStart({ active }: DragStartEvent) {\n const node = active?.data.current.node\n Besigner.dnd.setDragNode(node)\n },\n onDragEnd(e: DragEndEvent) {\n e.activatorEvent.stopPropagation()\n // Compute before completing the drag — onDragEnd clears dnd state.\n const rejection = Besigner.dnd.describeDropRejection()\n Besigner.dnd.onDragEnd()\n if (rejection) {\n enqueueSnackbar?.(rejection, { variant: 'warning', persist: false })\n }\n },\n })\n\n return (\n <WorkspaceEditor\n ref={useMergeRefs(ref, localRef)}\n id=\"aglyn:besigner-workspace\"\n className={elemClassName}\n {...rest}\n >\n <Stack\n direction=\"row\"\n id=\"aglyn:besigner-main\"\n component=\"main\"\n spacing={0}\n sx={{\n alignItems: \"stretch\",\n justifyContent: \"space-between\",\n flexGrow: 1,\n overflow: 'hidden',\n zIndex: 0\n }}>\n <PanelLeftComponent panel={'panelLeft'} />\n <Stack\n direction=\"column\"\n id=\"aglyn:besigner-viewport\"\n component=\"main\"\n spacing={0}\n sx={{\n alignItems: \"stretch\",\n justifyContent: \"space-between\",\n flexGrow: 1,\n overflow: 'hidden',\n zIndex: 0\n }}>\n {children}\n <ViewportZoomControls\n onZoomReset={handleZoomReset}\n onZoomDecrease={handleZoomDecrease}\n onZoomIncrease={handleZoomIncrease}\n />\n <AppBarBreadcrumbsComponent />\n </Stack>\n <PanelLeftComponent panel={'panelRight'} />\n </Stack>\n </WorkspaceEditor>\n );\n },\n)\n\nWorkspaceEditorComponent.displayName = 'WorkspaceEditorComponent'\n\nexport { WorkspaceEditorComponent }\nexport default WorkspaceEditorComponent\n"],"names":["canvas","Besigner","useSnackbar","useMergeRefs","LOADING_OVERLAY_ELEMENT","generateComponentClassKeys","styled","_isFnT","useDndMonitor","Stack","clsx","dynamic","forwardRef","useCallback","useRef","useMouse","useAglynBesignerPanelValue","AppBarBreadcrumbsComponent","ViewportZoomControls","classKeys","PanelLeftComponent","then","mod","AsidePanelComponent","ssr","loading","WorkspaceEditor","name","left","right","top","bottom","height","width","overflow","display","flexDirection","alignContent","alignItems","panelLeftOpen","panelBottomOpen","panelRightOpen","WorkspaceEditorComponent","props","ref","children","className","rest","leftToggled","rightToggled","bottomToggled","elemClassName","Boolean","pannerRef","handleZoomReset","e","current","reset","handleZoomDecrease","zoomOut","handleZoomIncrease","zoomIn","localRef","mouse","enqueueSnackbar","onDragMove","event","region","over","overNode","data","node","determineDropRegion","rect","docX","window","scrollX","docY","scrollY","nodeAcceptsChildren","dnd","setDropRegion","setDropNode","activatorEvent","stopPropagation","onDragStart","active","setDragNode","onDragEnd","rejection","describeDropRejection","variant","persist","id","direction","component","spacing","sx","justifyContent","flexGrow","zIndex","panel","onZoomReset","onZoomDecrease","onZoomIncrease","displayName"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,MAAM,QAAQ,eAAc;AACrC,YAAYC,cAAc,kBAAiB;AAC3C,SAASC,WAAW,QAAQ,8BAA6B;AACzD,SAASC,YAAY,QAAQ,uBAAsB;AACnD,SAASC,uBAAuB,QAAQ,iDAAgD;AACxF,SAASC,0BAA0B,EAAEC,MAAM,QAAQ,yBAAwB;AAC3E,SAASC,MAAM,QAAQ,2BAA0B;AACjD,SAIEC,aAAa,QACR,gBAAe;AACtB,SAASC,KAAK,QAAQ,gBAAe;AACrC,OAAOC,UAAU,OAAM;AACvB,OAAOC,aAAa,eAAc;AAElC,SAAsBC,UAAU,EAAEC,WAAW,EAAEC,MAAM,QAAQ,QAAO;AACpE,SAASC,QAAQ,QAAQ,YAAW;AACpC,OAAOC,gCAAgC,6CAAyC;AAChF,OAAOC,gCAAgC,qCAAiC;AAExE,OAAOC,0BAA0B,8BAA0B;AAE3D,MAAMC,YAAYd,2BAA2B,iBAAiB;IAC5D;IACA;IACA;CACD;AACD,MAAMe,qBAAqBT,QACzB,IACE,MAAM,CAAC,8BAA2BU,IAAI,CAAC,CAACC,MAAQA,IAAIC,mBAAmB,GACzE;IAAEC,KAAK;IAAOC,SAAS,IAAMrB;AAAwB;AAGvD,MAAMsB,kBAAkBpB,OAAO,OAAO;IACpCqB,MAAM;AACR,GAAG;IACD,wBAAwB;IACxBC,MAAM;IACNC,OAAO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AChC,mEAAmE;YACnE,MAAMK,YAAYxF,SAAS+E,GAAG,CAACU,qBAAqB;YACpDzF,SAAS+E,GAAG,CAACQ,SAAS;YACtB,IAAIC,WAAW;gBACbzB,mCAAAA,gBAAkByB,WAAW;oBAAEE,SAAS;oBAAWC,SAAS;gBAAM;YACpE;QACF;IACF;IAEA,qBACE,KAAClE;QACCkB,KAAKzC,aAAayC,KAAKkB;QACvB+B,IAAG;QACH/C,WAAWK;OACPJ;kBAEJ,cAAA,MAACtC;YACCqF,WAAU;YACVD,IAAG;YACHE,WAAU;YACVC,SAAS;YACTC,IAAI;gBACF3D,YAAY;gBACZ4D,gBAAgB;gBAChBC,UAAU;gBACVjE,UAAU;gBACVkE,QAAQ;YACV;;8BACA,KAAChF;oBAAmBiF,OAAO;;8BAC3B,MAAC5F;oBACCqF,WAAU;oBACVD,IAAG;oBACHE,WAAU;oBACVC,SAAS;oBACTC,IAAI;wBACF3D,YAAY;wBACZ4D,gBAAgB;wBAChBC,UAAU;wBACVjE,UAAU;wBACVkE,QAAQ;oBACV;;wBACCvD;sCACD,KAAC3B;4BACCoF,aAAahD;4BACbiD,gBAAgB7C;4BAChB8C,gBAAgB5C;;sCAElB,KAAC3C;;;8BAEH,KAACG;oBAAmBiF,OAAO;;;;;AAInC;AAGF3D,yBAAyB+D,WAAW,GAAG;AAEvC,SAAS/D,wBAAwB,GAAE;AACnC,eAAeA,yBAAwB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type BoxProps as MuiBoxProps } from '@mui/material/Box';
|
|
18
|
+
import { type DrawerProps as MuiDrawerProps } from '@mui/material/Drawer';
|
|
19
|
+
interface WorkspacePanelProps extends MuiBoxProps {
|
|
20
|
+
size?: string | number;
|
|
21
|
+
}
|
|
22
|
+
export interface WorkspacePanelComponentProps extends WorkspacePanelProps {
|
|
23
|
+
DrawerProps?: MuiDrawerProps;
|
|
24
|
+
open?: boolean;
|
|
25
|
+
anchor?: MuiDrawerProps['anchor'];
|
|
26
|
+
}
|
|
27
|
+
export declare const WorkspacePanelComponent: import("react").ForwardRefExoticComponent<Omit<WorkspacePanelComponentProps, "ref"> & import("react").RefAttributes<any>>;
|
|
28
|
+
export default WorkspacePanelComponent;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2024 Aglyn LLC
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/ import { generateComponentClassKeys, styled } from "@aglyn/shared-ui-theme";
|
|
20
|
+
import { _isEqualitySameType } from "@aglyn/shared-util-tools";
|
|
21
|
+
import MuiDrawer from "@mui/material/Drawer";
|
|
22
|
+
import clsx from "clsx";
|
|
23
|
+
import { forwardRef } from "react";
|
|
24
|
+
import { DEFAULT_LEFT_DRAWER_WIDTH } from "../constants/shared.js";
|
|
25
|
+
const classKeys = generateComponentClassKeys('AglynWorkspacePanel', [
|
|
26
|
+
'drawer',
|
|
27
|
+
'open',
|
|
28
|
+
'anchorLeft',
|
|
29
|
+
'anchorRight',
|
|
30
|
+
'anchorTop',
|
|
31
|
+
'anchorBottom'
|
|
32
|
+
]);
|
|
33
|
+
const WorkspacePanel = styled('div', {
|
|
34
|
+
name: 'AglynWorkspacePanel',
|
|
35
|
+
shouldForwardProp (propName) {
|
|
36
|
+
return !_isEqualitySameType(propName, null, 'size');
|
|
37
|
+
}
|
|
38
|
+
})(({ theme, size })=>{
|
|
39
|
+
const calcSize = size || DEFAULT_LEFT_DRAWER_WIDTH;
|
|
40
|
+
return {
|
|
41
|
+
zIndex: theme.zIndex.appBar,
|
|
42
|
+
transition: theme.transitions.create('margin', {
|
|
43
|
+
easing: theme.transitions.easing.sharp,
|
|
44
|
+
duration: theme.transitions.duration.leavingScreen
|
|
45
|
+
}),
|
|
46
|
+
[`&.${classKeys.open}`]: {
|
|
47
|
+
transition: theme.transitions.create('margin', {
|
|
48
|
+
easing: theme.transitions.easing.easeOut,
|
|
49
|
+
duration: theme.transitions.duration.enteringScreen
|
|
50
|
+
})
|
|
51
|
+
},
|
|
52
|
+
[`&.${classKeys.anchorLeft}`]: {
|
|
53
|
+
marginLeft: -calcSize,
|
|
54
|
+
[`&.${classKeys.open}`]: {
|
|
55
|
+
marginLeft: 0
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
[`&.${classKeys.anchorRight}`]: {
|
|
59
|
+
marginRight: -calcSize,
|
|
60
|
+
[`&.${classKeys.open}`]: {
|
|
61
|
+
marginRight: 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
[`&.${classKeys.anchorTop}`]: {
|
|
65
|
+
marginTop: -calcSize,
|
|
66
|
+
[`&.${classKeys.open}`]: {
|
|
67
|
+
marginTop: 0
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
[`&.${classKeys.anchorBottom}`]: {
|
|
71
|
+
marginBottom: -calcSize,
|
|
72
|
+
[`&.${classKeys.open}`]: {
|
|
73
|
+
marginBottom: 0
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
[`&.${classKeys.anchorTop}, &.${classKeys.anchorBottom}`]: {
|
|
77
|
+
[`& .${classKeys.drawer}`]: {
|
|
78
|
+
height: calcSize,
|
|
79
|
+
width: '100%',
|
|
80
|
+
[`& .MuiDrawer-paper`]: {
|
|
81
|
+
height: calcSize,
|
|
82
|
+
width: '100%'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
[`&.${classKeys.anchorLeft}, &.${classKeys.anchorRight}`]: {
|
|
87
|
+
[`& .${classKeys.drawer}`]: {
|
|
88
|
+
width: calcSize,
|
|
89
|
+
height: '100%',
|
|
90
|
+
[`& .MuiDrawer-paper`]: {
|
|
91
|
+
width: calcSize,
|
|
92
|
+
height: '100%'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
[`& .${classKeys.drawer}`]: {
|
|
97
|
+
flexShrink: 0,
|
|
98
|
+
[`& .MuiDrawer-paper`]: {
|
|
99
|
+
boxSizing: 'border-box',
|
|
100
|
+
position: 'unset'
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
export const WorkspacePanelComponent = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
106
|
+
const { children, className: classNameProp, DrawerProps, size, open: openProp, anchor = 'left', id } = props, rest = _object_without_properties_loose(props, [
|
|
107
|
+
"children",
|
|
108
|
+
"className",
|
|
109
|
+
"DrawerProps",
|
|
110
|
+
"size",
|
|
111
|
+
"open",
|
|
112
|
+
"anchor",
|
|
113
|
+
"id"
|
|
114
|
+
]);
|
|
115
|
+
const open = Boolean(openProp);
|
|
116
|
+
const _extends1 = _extends({}, DrawerProps), { className: drawerClassName, open: _ } = _extends1, drawerProps = _object_without_properties_loose(_extends1, [
|
|
117
|
+
"className",
|
|
118
|
+
"open"
|
|
119
|
+
]);
|
|
120
|
+
const className = clsx({
|
|
121
|
+
[classKeys.open]: open,
|
|
122
|
+
[classKeys.anchorLeft]: anchor === 'left',
|
|
123
|
+
[classKeys.anchorRight]: anchor === 'right',
|
|
124
|
+
[classKeys.anchorTop]: anchor === 'top',
|
|
125
|
+
[classKeys.anchorBottom]: anchor === 'bottom'
|
|
126
|
+
}, classNameProp);
|
|
127
|
+
return /*#__PURE__*/ _jsx(WorkspacePanel, _extends({
|
|
128
|
+
ref: ref,
|
|
129
|
+
id: id,
|
|
130
|
+
size: size,
|
|
131
|
+
className: className
|
|
132
|
+
}, rest, {
|
|
133
|
+
children: /*#__PURE__*/ _jsx(MuiDrawer, _extends({
|
|
134
|
+
variant: "persistent",
|
|
135
|
+
open: open,
|
|
136
|
+
anchor: anchor,
|
|
137
|
+
className: clsx(classKeys.drawer, drawerClassName)
|
|
138
|
+
}, drawerProps, {
|
|
139
|
+
children: children
|
|
140
|
+
}))
|
|
141
|
+
}));
|
|
142
|
+
});
|
|
143
|
+
WorkspacePanelComponent.displayName = 'WorkspacePanelComponent';
|
|
144
|
+
WorkspacePanelComponent.aglyn = true;
|
|
145
|
+
export default WorkspacePanelComponent;
|
|
146
|
+
|
|
147
|
+
//# sourceMappingURL=workspace-panel.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/components/workspace-panel.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2024 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { generateComponentClassKeys, styled } from '@aglyn/shared-ui-theme'\nimport { _isEqualitySameType } from '@aglyn/shared-util-tools'\nimport { type BoxProps as MuiBoxProps } from '@mui/material/Box'\nimport MuiDrawer, {\n type DrawerProps as MuiDrawerProps,\n} from '@mui/material/Drawer'\nimport clsx from 'clsx'\nimport { forwardRef } from 'react'\nimport { DEFAULT_LEFT_DRAWER_WIDTH } from '../constants/shared'\n\nconst classKeys = generateComponentClassKeys('AglynWorkspacePanel', [\n 'drawer',\n 'open',\n 'anchorLeft',\n 'anchorRight',\n 'anchorTop',\n 'anchorBottom',\n])\n\ninterface WorkspacePanelProps extends MuiBoxProps {\n size?: string | number\n}\n\nconst WorkspacePanel = styled('div', {\n name: 'AglynWorkspacePanel',\n shouldForwardProp(propName: any) {\n return !_isEqualitySameType(propName, null, 'size')\n },\n})<WorkspacePanelProps>(({ theme, size }) => {\n const calcSize = size || DEFAULT_LEFT_DRAWER_WIDTH\n\n return {\n zIndex: theme.zIndex.appBar,\n transition: theme.transitions.create('margin', {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen,\n }),\n [`&.${classKeys.open}`]: {\n transition: theme.transitions.create('margin', {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.enteringScreen,\n }),\n },\n\n [`&.${classKeys.anchorLeft}`]: {\n marginLeft: -calcSize,\n [`&.${classKeys.open}`]: {\n marginLeft: 0,\n },\n },\n [`&.${classKeys.anchorRight}`]: {\n marginRight: -calcSize,\n [`&.${classKeys.open}`]: {\n marginRight: 0,\n },\n },\n [`&.${classKeys.anchorTop}`]: {\n marginTop: -calcSize,\n [`&.${classKeys.open}`]: {\n marginTop: 0,\n },\n },\n [`&.${classKeys.anchorBottom}`]: {\n marginBottom: -calcSize,\n [`&.${classKeys.open}`]: {\n marginBottom: 0,\n },\n },\n\n [`&.${classKeys.anchorTop}, &.${classKeys.anchorBottom}`]: {\n [`& .${classKeys.drawer}`]: {\n height: calcSize,\n width: '100%',\n [`& .MuiDrawer-paper`]: {\n height: calcSize,\n width: '100%',\n },\n },\n },\n [`&.${classKeys.anchorLeft}, &.${classKeys.anchorRight}`]: {\n [`& .${classKeys.drawer}`]: {\n width: calcSize,\n height: '100%',\n [`& .MuiDrawer-paper`]: {\n width: calcSize,\n height: '100%',\n },\n },\n },\n [`& .${classKeys.drawer}`]: {\n flexShrink: 0,\n [`& .MuiDrawer-paper`]: {\n boxSizing: 'border-box',\n position: 'unset',\n },\n },\n }\n})\n\nexport interface WorkspacePanelComponentProps extends WorkspacePanelProps {\n DrawerProps?: MuiDrawerProps\n open?: boolean\n anchor?: MuiDrawerProps['anchor']\n}\n\nexport const WorkspacePanelComponent = forwardRef<\n any,\n WorkspacePanelComponentProps\n>((props, ref) => {\n const {\n children,\n className: classNameProp,\n DrawerProps,\n size,\n open: openProp,\n anchor = 'left',\n id,\n ...rest\n } = props\n const open = Boolean(openProp)\n const {\n className: drawerClassName,\n open: _,\n ...drawerProps\n } = { ...DrawerProps }\n const className = clsx(\n {\n [classKeys.open]: open,\n [classKeys.anchorLeft]: anchor === 'left',\n [classKeys.anchorRight]: anchor === 'right',\n [classKeys.anchorTop]: anchor === 'top',\n [classKeys.anchorBottom]: anchor === 'bottom',\n },\n classNameProp,\n )\n\n return (\n <WorkspacePanel\n ref={ref}\n id={id}\n size={size}\n className={className}\n {...rest}\n >\n <MuiDrawer\n variant=\"persistent\"\n open={open}\n anchor={anchor}\n className={clsx(classKeys.drawer, drawerClassName)}\n {...drawerProps}\n >\n {children}\n </MuiDrawer>\n </WorkspacePanel>\n )\n})\n\nWorkspacePanelComponent.displayName = 'WorkspacePanelComponent'\nWorkspacePanelComponent.aglyn = true\n\nexport default WorkspacePanelComponent\n"],"names":["generateComponentClassKeys","styled","_isEqualitySameType","MuiDrawer","clsx","forwardRef","DEFAULT_LEFT_DRAWER_WIDTH","classKeys","WorkspacePanel","name","shouldForwardProp","propName","theme","size","calcSize","zIndex","appBar","transition","transitions","create","easing","sharp","duration","leavingScreen","open","easeOut","enteringScreen","anchorLeft","marginLeft","anchorRight","marginRight","anchorTop","marginTop","anchorBottom","marginBottom","drawer","height","width","flexShrink","boxSizing","position","WorkspacePanelComponent","props","ref","children","className","classNameProp","DrawerProps","openProp","anchor","id","rest","Boolean","drawerClassName","_","drawerProps","variant","displayName","aglyn"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,0BAA0B,EAAEC,MAAM,QAAQ,yBAAwB;AAC3E,SAASC,mBAAmB,QAAQ,2BAA0B;AAE9D,OAAOC,eAEA,uBAAsB;AAC7B,OAAOC,UAAU,OAAM;AACvB,SAASC,UAAU,QAAQ,QAAO;AAClC,SAASC,yBAAyB,QAAQ,yBAAqB;AAE/D,MAAMC,YAAYP,2BAA2B,uBAAuB;IAClE;IACA;IACA;IACA;IACA;IACA;CACD;AAMD,MAAMQ,iBAAiBP,OAAO,OAAO;IACnCQ,MAAM;IACNC,mBAAkBC,QAAa;QAC7B,OAAO,CAACT,oBAAoBS,UAAU,MAAM;IAC9C;AACF,GAAwB,CAAC,EAAEC,KAAK,EAAEC,IAAI,EAAE;IACtC,MAAMC,WAAWD,QAAQP;IAEzB,OAAO;QACLS,QAAQH,MAAMG,MAAM,CAACC,MAAM;QAC3BC,YAAYL,MAAMM,WAAW,CAACC,MAAM,CAAC,UAAU;YAC7CC,QAAQR,MAAMM,WAAW,CAACE,MAAM,CAACC,KAAK;YACtCC,UAAUV,MAAMM,WAAW,CAACI,QAAQ,CAACC,aAAa;QACpD;QACA,CAAC,CAAC,EAAE,EAAEhB,UAAUiB,IAAI,EAAE,CAAC,EAA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wBgB,WAAW,GAAG;AACtChB,wBAAwBiB,KAAK,GAAG;AAEhC,eAAejB,wBAAuB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import type { AglynNodesList } from '@aglyn/aglyn';
|
|
18
|
+
export declare const samplePageData: AglynNodesList;
|