@dineug/erd-editor 4.2.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +208 -20
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/assertClassBrand.js +7 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/checkPrivateRedeclaration.js +6 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldGet2.js +7 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldInitSpec.js +7 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldSet2.js +7 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/defineProperty.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPrimitive.js +14 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPropertyKey.js +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/typeof.js +11 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/appContext.js +45 -0
- package/dist/components/customElementClass.d.ts +10 -0
- package/dist/components/dictionary/Dictionary.js +584 -0
- package/dist/components/dictionary/Dictionary.styles.js +208 -0
- package/dist/components/dictionary/checkCount.js +59 -0
- package/dist/components/dictionary/checkSheet.js +121 -0
- package/dist/components/dictionary/dictionary-context-menu/DictionaryContextMenu.js +17 -0
- package/dist/components/dictionary/dictionaryCommit.js +237 -0
- package/dist/components/dictionary/dictionaryFile.js +72 -0
- package/dist/components/dictionary/dictionaryKeys.js +86 -0
- package/dist/components/dictionary/dictionaryView.js +100 -0
- package/dist/components/dictionary/domain-cell-editor/DomainCellEditor.js +110 -0
- package/dist/components/dictionary/domain-cell-editor/DomainCellEditor.styles.js +65 -0
- package/dist/components/dictionary/domain-cell-editor/openDomainCellEditor.js +16 -0
- package/dist/components/dictionary/gridTheme.js +51 -0
- package/dist/components/dictionary/sheets.js +199 -0
- package/dist/components/diffContext.d.ts +10 -0
- package/dist/components/diffContext.js +7 -0
- package/dist/components/element-host/localeHost.d.ts +43 -0
- package/dist/components/element-host/localeHost.js +81 -0
- package/dist/components/element-host/themeHost.d.ts +30 -0
- package/dist/components/element-host/themeHost.js +101 -0
- package/dist/components/erd/Erd.d.ts +2 -0
- package/dist/components/erd/Erd.js +431 -0
- package/dist/components/erd/Erd.styles.js +12 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.js +139 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.js +22 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.js +175 -0
- package/dist/components/erd/automatic-table-placement/elkPlacement.js +56 -0
- package/dist/components/erd/automatic-table-placement/flowPlacement.js +32 -0
- package/dist/components/erd/automatic-table-placement/placementActions.js +33 -0
- package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +3 -2
- package/dist/components/erd/automatic-table-placement/runElkPlacement.js +30 -0
- package/dist/components/erd/canvas/Canvas.d.ts +8 -2
- package/dist/components/erd/canvas/Canvas.js +78 -0
- package/dist/components/erd/canvas/Canvas.styles.js +15 -0
- package/dist/components/erd/canvas/CanvasScene.d.ts +28 -3
- package/dist/components/erd/canvas/CanvasScene.js +80 -0
- package/dist/components/erd/canvas/DiffOutline.template.js +5 -0
- package/dist/components/erd/canvas/EditOverlay.js +349 -0
- package/dist/components/erd/canvas/EditOverlay.styles.js +19 -0
- package/dist/components/erd/canvas/SceneIcon.template.js +14 -0
- package/dist/components/erd/canvas/altDragDuplicate.js +16 -0
- package/dist/components/erd/canvas/column-drag-ghost/ColumnDragGhost.js +61 -0
- package/dist/components/erd/canvas/{column-drag-ghost/columnDragPointer.d.ts → columnDragPointer.d.ts} +2 -2
- package/dist/components/erd/canvas/columnDragPointer.js +30 -0
- package/dist/components/erd/canvas/drag-select/DragSelect.js +109 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.js +60 -0
- package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.js +108 -0
- package/dist/components/erd/canvas/editingLayers.d.ts +8 -0
- package/dist/components/erd/canvas/editingLayers.js +21 -0
- package/dist/components/erd/canvas/entityDrag.d.ts +2 -1
- package/dist/components/erd/canvas/entityDrag.js +42 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.js +82 -0
- package/dist/components/erd/canvas/highlightTransition.d.ts +6 -0
- package/dist/components/erd/canvas/highlightTransition.js +79 -0
- package/dist/components/erd/canvas/memo/Memo.js +152 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.js +190 -0
- package/dist/components/erd/canvas/memo/memoCaret.js +66 -0
- package/dist/components/erd/canvas/memo/memoScroll.js +14 -0
- package/dist/components/erd/canvas/memo/memoText.js +41 -0
- package/dist/components/erd/canvas/memo/useMoveMemo.js +19 -0
- package/dist/components/erd/canvas/middleButtonPan.js +33 -0
- package/dist/components/erd/canvas/mixColor.js +23 -0
- package/dist/components/erd/canvas/readPress.d.ts +43 -0
- package/dist/components/erd/canvas/readPress.js +102 -0
- package/dist/components/erd/canvas/relationship-group/RelationshipGroup.js +26 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.js +153 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.js +75 -0
- package/dist/components/erd/canvas/relationship-group/relationship/RelationshipActionLabel.js +68 -0
- package/dist/components/erd/canvas/sceneHit.js +38 -0
- package/dist/components/erd/canvas/sceneKind.js +12 -0
- package/dist/components/erd/canvas/sceneRetention.js +20 -0
- package/dist/components/erd/canvas/sceneTokens.js +110 -0
- package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.js +35 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.js +29 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.js +40 -0
- package/dist/components/erd/canvas/stagePressScope.d.ts +11 -0
- package/dist/components/erd/canvas/stagePressScope.js +51 -0
- package/dist/components/erd/canvas/table/Table.js +399 -0
- package/dist/components/erd/canvas/table/blankLogicalName.js +14 -0
- package/dist/components/erd/canvas/table/cellLayout.js +147 -0
- package/dist/components/erd/canvas/table/colorEdge.js +16 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +6 -1
- package/dist/components/erd/canvas/table/column/Column.js +416 -0
- package/dist/components/erd/canvas/table/dictionaryMarks.js +42 -0
- package/dist/components/erd/canvas/table/doubleClick.js +15 -0
- package/dist/components/erd/canvas/table/goToErd.js +10 -0
- package/dist/components/erd/canvas/table/useFocusTable.js +19 -0
- package/dist/components/erd/canvas/table/useMoveTable.js +21 -0
- package/dist/components/erd/canvas/table/useSharedFocusTable.js +53 -0
- package/dist/components/erd/canvas/table/useViewPin.js +21 -0
- package/dist/components/erd/canvas/table-group/TableGroup.js +141 -0
- package/dist/components/erd/canvas/table-group/TableGroupBody.js +47 -0
- package/dist/components/erd/canvas/table-group/TableGroupDropTarget.js +25 -0
- package/dist/components/erd/canvas/table-group/TableGroupSash.js +143 -0
- package/dist/components/erd/canvas/table-group/TableGroups.js +21 -0
- package/dist/components/erd/canvas/table-group/tableGroupBox.js +57 -0
- package/dist/components/erd/canvas/table-group/tableGroupNameEditor.d.ts +11 -0
- package/dist/components/erd/canvas/table-group/tableGroupNameEditor.js +9 -0
- package/dist/components/erd/canvas/table-group/titleLayout.js +31 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +1 -1
- package/dist/components/erd/canvas/useMoveEntity.js +80 -0
- package/dist/components/erd/canvas/useSharedSelectEntity.js +28 -0
- package/dist/components/erd/content-compass/ContentCompass.js +23 -0
- package/dist/components/erd/content-compass/ContentCompass.styles.js +32 -0
- package/dist/components/erd/content-compass/compassGeometry.js +71 -0
- package/dist/components/erd/diff-viewer/DiffViewer.js +75 -0
- package/dist/components/erd/diff-viewer/DiffViewer.styles.js +28 -0
- package/dist/components/erd/diff-viewer/diff-erd-viewer/DiffErdViewer.d.ts +11 -0
- package/dist/components/erd/diff-viewer/diff-erd-viewer/DiffErdViewer.js +105 -0
- package/dist/components/erd/diff-viewer/{erd-viewer/ErdViewer.styles.d.ts → diff-erd-viewer/DiffErdViewer.styles.d.ts} +1 -1
- package/dist/components/erd/diff-viewer/diff-erd-viewer/DiffErdViewer.styles.js +12 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.js +130 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.styles.js +139 -0
- package/dist/components/erd/diff-viewer/diff-tree/diffTreeModel.js +203 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.js +284 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.styles.js +64 -0
- package/dist/components/erd/draw-target/drawTargetState.js +37 -0
- package/dist/components/erd/draw-target/findDrawTarget.js +22 -0
- package/dist/components/erd/draw-target/placePill.js +72 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.js +306 -0
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.js +51 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.js +48 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.js +38 -0
- package/dist/components/erd/erd-context-menu/menus/importMenus.js +49 -0
- package/dist/components/erd/erd-context-menu/menus/nameViewMenus.d.ts +1 -10
- package/dist/components/erd/erd-context-menu/menus/nameViewMenus.js +16 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.js +105 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.js +80 -0
- package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.js +42 -0
- package/dist/components/erd/erdShortcutPerformCheck.js +20 -0
- package/dist/components/erd/erdTarget.d.ts +9 -0
- package/dist/components/erd/erdTarget.js +65 -0
- package/dist/components/erd/fieldIcon.js +17 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +1 -5
- package/dist/components/erd/floating-toolbar/FloatingToolbar.js +105 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +1 -6
- package/dist/components/erd/goToErdTarget.js +248 -0
- package/dist/components/erd/hitTest.d.ts +9 -0
- package/dist/components/erd/hitTest.js +115 -0
- package/dist/components/erd/minimap/Minimap.js +98 -0
- package/dist/components/erd/minimap/Minimap.styles.js +29 -0
- package/dist/components/erd/minimap/MinimapScene.js +41 -0
- package/dist/components/erd/minimap/memo/Memo.js +17 -0
- package/dist/components/erd/minimap/minimapGeometry.js +140 -0
- package/dist/components/erd/minimap/table/Table.js +22 -0
- package/dist/components/erd/minimap/table-group/TableGroup.js +22 -0
- package/dist/components/erd/minimap/useMinimapScroll.js +83 -0
- package/dist/components/erd/minimap/viewport/Viewport.js +34 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.js +17 -0
- package/dist/components/erd/nameViewOptions.d.ts +11 -0
- package/dist/components/erd/nameViewOptions.js +18 -0
- package/dist/components/erd/readerNameView.js +5 -0
- package/dist/components/erd/relationshipHighlight.d.ts +8 -3
- package/dist/components/erd/relationshipHighlight.js +32 -0
- package/dist/components/erd/table-group/TableGroupDraft.js +14 -0
- package/dist/components/erd/table-group/TableGroupDraft.styles.js +22 -0
- package/dist/components/erd/table-group/tableGroupName.d.ts +0 -9
- package/dist/components/erd/table-group/tableGroupName.js +10 -0
- package/dist/components/erd/table-group/useTableGroupDraw.js +97 -0
- package/dist/components/erd/table-properties/TableProperties.js +67 -0
- package/dist/components/erd/table-properties/TableProperties.styles.js +172 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.js +76 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.js +115 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.js +92 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.js +70 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.js +85 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.js +60 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.js +46 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.js +85 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.js +30 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.styles.js +62 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.js +21 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.js +34 -0
- package/dist/components/erd/time-travel/TimeTravel.js +83 -0
- package/dist/components/erd/time-travel/TimeTravel.styles.js +42 -0
- package/dist/components/erd/useErdShortcut.js +214 -0
- package/dist/components/erd/view-controls/ToolbarCompass.template.js +10 -0
- package/dist/components/erd/view-controls/nameViewDropdown.js +107 -0
- package/dist/components/erd/view-controls/nameViewDropdown.styles.js +31 -0
- package/dist/components/erd/view-controls/viewControls.styles.d.ts +7 -0
- package/dist/components/erd/view-controls/viewControls.styles.js +75 -0
- package/dist/components/erd/view-controls/zoomControls.d.ts +9 -0
- package/dist/components/erd/view-controls/zoomControls.js +31 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.js +63 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.styles.js +48 -0
- package/dist/components/erd/virtual-scroll/useVirtualScroll.js +126 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.js +194 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.styles.js +67 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.js +47 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.js +52 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.js +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.js +65 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +14 -3
- package/dist/components/erd-editor/ErdEditor.js +188 -0
- package/dist/components/erd-editor/ErdEditor.styles.js +47 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +6 -20
- package/dist/components/erd-editor/useErdEditorAttachElement.js +284 -0
- package/dist/components/erd-editor/viewportLayout.js +93 -0
- package/dist/components/erd-view/ErdView.d.ts +25 -0
- package/dist/components/erd-view/ErdView.js +125 -0
- package/dist/components/erd-view/ErdView.styles.d.ts +3 -0
- package/dist/components/erd-view/ErdView.styles.js +51 -0
- package/dist/components/erd-view/viewportMeasure.d.ts +9 -0
- package/dist/components/erd-view/viewportMeasure.js +19 -0
- package/dist/components/erd-viewer/ErdViewer.d.ts +67 -0
- package/dist/components/erd-viewer/ErdViewer.js +287 -0
- package/dist/components/erd-viewer/documentSource.d.ts +26 -0
- package/dist/components/erd-viewer/documentSource.js +39 -0
- package/dist/components/explorer/Explorer.js +40 -0
- package/dist/components/explorer/explorer-controller/ExplorerController.js +43 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.js +207 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.styles.js +133 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.js +119 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.styles.js +151 -0
- package/dist/components/explorer/explorerCommands.js +45 -0
- package/dist/components/explorer/explorerNavigation.js +50 -0
- package/dist/components/explorer/explorerSearch.js +298 -0
- package/dist/components/explorer/explorerTree.js +331 -0
- package/dist/components/explorer/explorerView.js +46 -0
- package/dist/components/explorer/matchTarget.d.ts +0 -7
- package/dist/components/explorer/matchTarget.js +51 -0
- package/dist/components/export-image/ExportImage.js +230 -0
- package/dist/components/export-image/ExportImage.styles.js +172 -0
- package/dist/components/export-image/exportImageActions.js +102 -0
- package/dist/components/flowCenters.js +29 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/GeneratorCode.js +96 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.js +49 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.js +37 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.js +115 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.js +37 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +4 -3
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.js +122 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.js +12 -0
- package/dist/components/generator-code/generatorCodeView.js +17 -0
- package/dist/components/generator-code/languageSettings.js +48 -0
- package/dist/components/global-styles/GlobalStyles.js +18 -0
- package/dist/components/locale-picker/LocalePicker.js +129 -0
- package/dist/components/locale-picker/LocalePicker.styles.js +112 -0
- package/dist/components/localeContext.js +8 -0
- package/dist/components/localized/Localized.js +15 -0
- package/dist/components/map-columns/MapColumnsBody.js +186 -0
- package/dist/components/map-columns/MapColumnsDialog.js +112 -0
- package/dist/components/map-columns/MapColumnsDialog.styles.js +169 -0
- package/dist/components/map-columns/mapColumnsAction.js +18 -0
- package/dist/components/map-columns/nameOf.js +8 -0
- package/dist/components/map-columns/openMapColumns.js +10 -0
- package/dist/components/primitives/button/Button.js +12 -0
- package/dist/components/primitives/button/Button.styles.js +64 -0
- package/dist/components/primitives/code-block/CodeBlock.js +94 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.js +108 -0
- package/dist/components/primitives/color-picker/ColorPicker.js +333 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.js +219 -0
- package/dist/components/primitives/color-picker/colorModel.js +116 -0
- package/dist/components/primitives/color-picker/presetColors.js +25 -0
- package/dist/components/primitives/color-picker/resolveColor.js +25 -0
- package/dist/components/primitives/context-menu/ContextMenu.js +13 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.js +72 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.js +19 -0
- package/dist/components/primitives/context-menu/context-menu-content/fitMenu.js +21 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.js +47 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.js +22 -0
- package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.js +10 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.js +45 -0
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.js +6 -0
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.js +9 -0
- package/dist/components/primitives/context-menu/menu/Menu.js +6 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.js +21 -0
- package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.js +10 -0
- package/dist/components/primitives/dialog/Dialog.js +75 -0
- package/dist/components/primitives/dialog/Dialog.styles.js +35 -0
- package/dist/components/primitives/edit-input/EditInput.js +68 -0
- package/dist/components/primitives/edit-input/EditInput.styles.js +40 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.js +14 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.js +7 -0
- package/dist/components/primitives/icon/Icon.js +38 -0
- package/dist/components/primitives/icon/Icon.styles.js +12 -0
- package/dist/components/primitives/icon/icons.js +156 -0
- package/dist/components/primitives/kbd/Kbd.js +12 -0
- package/dist/components/primitives/kbd/Kbd.styles.js +44 -0
- package/dist/components/primitives/sash/Sash.js +46 -0
- package/dist/components/primitives/sash/Sash.styles.js +23 -0
- package/dist/components/primitives/select/Select.js +6 -0
- package/dist/components/primitives/select/Select.styles.js +59 -0
- package/dist/components/primitives/separator/Separator.js +14 -0
- package/dist/components/primitives/separator/Separator.styles.js +11 -0
- package/dist/components/primitives/slider/Slider.js +42 -0
- package/dist/components/primitives/slider/Slider.styles.js +58 -0
- package/dist/components/primitives/switch/Switch.d.ts +2 -0
- package/dist/components/primitives/switch/Switch.js +11 -0
- package/dist/components/primitives/switch/Switch.styles.js +117 -0
- package/dist/components/primitives/text-input/TextInput.js +25 -0
- package/dist/components/primitives/toast/Toast.js +24 -0
- package/dist/components/primitives/toast/Toast.styles.js +87 -0
- package/dist/components/primitives/tree/Tree.js +182 -0
- package/dist/components/primitives/tree/Tree.styles.js +71 -0
- package/dist/components/primitives/tree/treeModel.js +60 -0
- package/dist/components/quick-search/QuickSearch.d.ts +11 -2
- package/dist/components/quick-search/QuickSearch.js +290 -0
- package/dist/components/quick-search/QuickSearch.styles.js +168 -0
- package/dist/components/quick-search/actions.d.ts +2 -56
- package/dist/components/quick-search/actions.js +471 -0
- package/dist/components/quick-search/documentSearch.d.ts +60 -0
- package/dist/components/quick-search/documentSearch.js +132 -0
- package/dist/components/quick-search/hangul.js +183 -0
- package/dist/components/quick-search/paletteList.js +3 -0
- package/dist/components/quick-search/paletteQuery.js +73 -0
- package/dist/components/quick-search/scopedActions.d.ts +1 -1
- package/dist/components/quick-search/scopedActions.js +115 -0
- package/dist/components/sceneInteractionContext.d.ts +27 -0
- package/dist/components/sceneInteractionContext.js +15 -0
- package/dist/components/sceneSourceContext.js +7 -0
- package/dist/components/schema-sql/SchemaSQL.js +120 -0
- package/dist/components/schema-sql/SchemaSQL.styles.js +35 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.js +45 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.js +37 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.js +62 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.js +41 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.js +172 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.js +271 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.js +117 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.js +82 -0
- package/dist/components/schema-sql/schema-sql-options/dropWarning.js +13 -0
- package/dist/components/schema-sql/schemaSQLView.js +107 -0
- package/dist/components/settings/Settings.js +112 -0
- package/dist/components/settings/Settings.styles.d.ts +1 -0
- package/dist/components/settings/Settings.styles.js +158 -0
- package/dist/components/settings/columnTypeLabels.js +15 -0
- package/dist/components/settings/lockSettingRows.js +73 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.js +24 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.js +37 -0
- package/dist/components/settings/settingsPage.js +15 -0
- package/dist/components/settings/shortcuts/Shortcuts.js +49 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.js +36 -0
- package/dist/components/table-view/Table.styles.js +76 -0
- package/dist/components/table-view/column/Column.styles.js +45 -0
- package/dist/components/table-view/column/column-data-type/ColumnDataType.js +93 -0
- package/dist/components/table-view/column/column-data-type/ColumnDataType.styles.js +51 -0
- package/dist/components/table-view/column/column-domain/ColumnDomain.js +77 -0
- package/dist/components/table-view/column/column-domain/domainOptions.js +20 -0
- package/dist/components/table-view/column/column-key/ColumnKey.js +24 -0
- package/dist/components/table-view/column/column-key/ColumnKey.styles.js +19 -0
- package/dist/components/table-view/column/column-logical-name/ColumnLogicalName.js +96 -0
- package/dist/components/table-view/column/column-logical-name/ColumnLogicalName.styles.js +51 -0
- package/dist/components/table-view/column/column-not-null/ColumnNotNull.js +15 -0
- package/dist/components/table-view/column/column-not-null/ColumnNotNull.styles.js +22 -0
- package/dist/components/table-view/column/column-option/ColumnOption.js +18 -0
- package/dist/components/table-view/column/column-option/ColumnOption.styles.js +26 -0
- package/dist/components/table-view/column/columnViewText.js +23 -0
- package/dist/components/table-view/column/useColumnCell.js +117 -0
- package/dist/components/table-view/column/useHintList.js +83 -0
- package/dist/components/theme/Theme.d.ts +5 -0
- package/dist/components/theme/Theme.js +20 -0
- package/dist/components/theme-builder/ThemeBuilder.js +90 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.js +100 -0
- package/dist/components/themeContext.js +7 -0
- package/dist/components/toast-container/ToastContainer.js +46 -0
- package/dist/components/toast-container/ToastContainer.styles.js +48 -0
- package/dist/components/toast-container/openStatusToast.js +28 -0
- package/dist/components/toast-container/openToastWhileRunning.js +20 -0
- package/dist/components/toolbar/Toolbar.js +120 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.styles.js +68 -0
- package/dist/components/visualization/Visualization.js +39 -0
- package/dist/components/visualization/Visualization.styles.js +16 -0
- package/dist/components/visualization/VisualizationFlow.js +44 -0
- package/dist/components/visualization/VisualizationGraph.js +109 -0
- package/dist/components/visualization/VisualizationScene.js +56 -0
- package/dist/components/visualization/captureDrag.js +15 -0
- package/dist/components/visualization/createVisualization.js +77 -0
- package/dist/components/visualization/flowLayout.js +203 -0
- package/dist/components/visualization/graph-node/GraphNode.js +80 -0
- package/dist/components/visualization/graphPan.js +26 -0
- package/dist/components/visualization/graphViewHandle.js +30 -0
- package/dist/components/visualization/particles/ParticleLayer.js +33 -0
- package/dist/components/visualization/particles/particleEdges.js +36 -0
- package/dist/components/visualization/particles/particleLoop.js +118 -0
- package/dist/components/visualization/particles/particlePath.js +146 -0
- package/dist/components/visualization/table/Table.js +50 -0
- package/dist/components/visualization/table/column/Column.js +77 -0
- package/dist/components/visualization/useViewGestures.js +82 -0
- package/dist/components/visualization/visualization-toolbar/VisualizationToolbar.js +184 -0
- package/dist/components/visualization/visualization-toolbar/VisualizationToolbar.styles.js +24 -0
- package/dist/components/visualization/visualizationView.js +152 -0
- package/dist/components/visualization/zoomVisualization.js +31 -0
- package/dist/constants/language.js +28 -0
- package/dist/constants/layout.js +14 -0
- package/dist/constants/open.js +14 -0
- package/dist/constants/schema.js +54 -0
- package/dist/constants/sql/dataType/Databricks.js +185 -0
- package/dist/constants/sql/dataType/MSSQL.js +197 -0
- package/dist/constants/sql/dataType/MariaDB.js +349 -0
- package/dist/constants/sql/dataType/MySQL.js +285 -0
- package/dist/constants/sql/dataType/Oracle.js +209 -0
- package/dist/constants/sql/dataType/PostgreSQL.js +433 -0
- package/dist/constants/sql/dataType/SQLite.js +129 -0
- package/dist/constants/sql/dataType/Snowflake.js +221 -0
- package/dist/constants/sql/dataType/index.js +22 -0
- package/dist/constants/sql/database.js +25 -0
- package/dist/constants/tablePlacement.js +11 -0
- package/dist/constants/zoom.js +5 -0
- package/dist/engine/actions.d.ts +25 -3
- package/dist/engine/actions.js +280 -0
- package/dist/engine/clock.js +25 -0
- package/dist/engine/context.d.ts +3 -3
- package/dist/engine/context.js +10 -0
- package/dist/engine/documentJson.d.ts +16 -0
- package/dist/engine/documentJson.js +20 -0
- package/dist/engine/history.actions.js +224 -0
- package/dist/engine/history.js +72 -0
- package/dist/engine/index.js +2 -56
- package/dist/engine/modules/dictionary/actions.js +42 -0
- package/dist/engine/modules/dictionary/atom.actions.js +106 -0
- package/dist/engine/modules/dictionary/checks.js +331 -0
- package/dist/engine/modules/dictionary/derive.js +101 -0
- package/dist/engine/modules/dictionary/derivedNames.js +88 -0
- package/dist/engine/modules/dictionary/dictionaryIndex.js +112 -0
- package/dist/engine/modules/dictionary/domainLinks.js +26 -0
- package/dist/engine/modules/dictionary/domainTypes.js +72 -0
- package/dist/engine/modules/dictionary/entryWrites.js +197 -0
- package/dist/engine/modules/dictionary/generator.actions.js +217 -0
- package/dist/engine/modules/dictionary/history.js +54 -0
- package/dist/engine/modules/dictionary/membership.js +42 -0
- package/dist/engine/modules/dictionary/orderKeys.js +28 -0
- package/dist/engine/modules/dictionary/termIndex.js +42 -0
- package/dist/engine/modules/editor/actions.d.ts +5 -1
- package/dist/engine/modules/editor/actions.js +58 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +19 -0
- package/dist/engine/modules/editor/atom.actions.js +584 -0
- package/dist/engine/modules/editor/generator.actions.js +761 -0
- package/dist/engine/modules/editor/history.js +37 -0
- package/dist/engine/modules/editor/state.d.ts +21 -0
- package/dist/engine/modules/editor/state.js +97 -0
- package/dist/engine/modules/editor/utils/color.js +37 -0
- package/dist/engine/modules/editor/utils/duplicate.js +234 -0
- package/dist/engine/modules/editor/utils/findRelationshipColumn.js +34 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +5 -0
- package/dist/engine/modules/editor/utils/focus.js +276 -0
- package/dist/engine/modules/editor/utils/nameView.js +113 -0
- package/dist/engine/modules/editor/utils/releaseHidden.js +25 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.js +18 -0
- package/dist/engine/modules/editor/utils/selection.js +16 -0
- package/dist/engine/modules/editor/view.actions.js +134 -0
- package/dist/engine/modules/editor/view.generator.actions.js +25 -0
- package/dist/engine/modules/editor/view.js +29 -0
- package/dist/engine/modules/index/actions.js +9 -0
- package/dist/engine/modules/index/atom.actions.js +73 -0
- package/dist/engine/modules/index/generator.actions.js +25 -0
- package/dist/engine/modules/index/history.js +40 -0
- package/dist/engine/modules/index-column/actions.js +9 -0
- package/dist/engine/modules/index-column/atom.actions.js +93 -0
- package/dist/engine/modules/index-column/generator.actions.js +63 -0
- package/dist/engine/modules/index-column/history.js +55 -0
- package/dist/engine/modules/memo/actions.js +13 -0
- package/dist/engine/modules/memo/atom.actions.js +106 -0
- package/dist/engine/modules/memo/generator.actions.js +50 -0
- package/dist/engine/modules/memo/history.js +109 -0
- package/dist/engine/modules/relationship/actions.js +11 -0
- package/dist/engine/modules/relationship/atom.actions.js +103 -0
- package/dist/engine/modules/relationship/endFlags.js +32 -0
- package/dist/engine/modules/relationship/fkColumns.js +85 -0
- package/dist/engine/modules/relationship/generator.actions.js +52 -0
- package/dist/engine/modules/relationship/history.js +72 -0
- package/dist/engine/modules/relationship/hooks.js +250 -0
- package/dist/engine/modules/relationship/referenceType.js +29 -0
- package/dist/engine/modules/settings/actions.js +24 -0
- package/dist/engine/modules/settings/atom.actions.d.ts +1 -1
- package/dist/engine/modules/settings/atom.actions.js +324 -0
- package/dist/engine/modules/settings/generator.actions.d.ts +6 -0
- package/dist/engine/modules/settings/generator.actions.js +132 -0
- package/dist/engine/modules/settings/history.js +65 -0
- package/dist/engine/modules/settings/screenBaseline.d.ts +37 -0
- package/dist/engine/modules/settings/screenBaseline.js +82 -0
- package/dist/engine/modules/settings/scrollRange.js +18 -0
- package/dist/engine/modules/table/actions.js +17 -0
- package/dist/engine/modules/table/atom.actions.js +231 -0
- package/dist/engine/modules/table/generator.actions.js +351 -0
- package/dist/engine/modules/table/history.js +134 -0
- package/dist/engine/modules/table/hooks.js +12 -0
- package/dist/engine/modules/table-column/actions.js +19 -0
- package/dist/engine/modules/table-column/atom.actions.js +223 -0
- package/dist/engine/modules/table-column/generator.actions.js +165 -0
- package/dist/engine/modules/table-column/history.js +146 -0
- package/dist/engine/modules/table-column/hooks.js +33 -0
- package/dist/engine/modules/table-column/keys.js +30 -0
- package/dist/engine/modules/table-column/utils/dataType.js +71 -0
- package/dist/engine/modules/table-group/actions.js +13 -0
- package/dist/engine/modules/table-group/atom.actions.js +108 -0
- package/dist/engine/modules/table-group/generator.actions.js +158 -0
- package/dist/engine/modules/table-group/history.js +106 -0
- package/dist/engine/peer-store.js +318 -0
- package/dist/engine/presence.js +45 -0
- package/dist/engine/replication-store.js +95 -0
- package/dist/engine/rx-operators/actionsFilter.js +14 -0
- package/dist/engine/rx-operators/bufferCircuitBreaker.js +35 -0
- package/dist/engine/rx-operators/createSharedStreamActionsCompressor.js +24 -0
- package/dist/engine/rx-operators/flushOnNotifier.js +6 -0
- package/dist/engine/rx-operators/groupByStreamActions.js +32 -0
- package/dist/engine/rx-operators/ignoreTagFilter.js +17 -0
- package/dist/engine/rx-operators/lockIgnoreFilter.js +20 -0
- package/dist/engine/rx-operators/notEmptyActions.js +5 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +6 -1
- package/dist/engine/rx-operators/readonlyIgnoreFilter.js +23 -0
- package/dist/engine/rx-operators/readonlyScreenTag.d.ts +16 -0
- package/dist/engine/rx-operators/readonlyScreenTag.js +49 -0
- package/dist/engine/rx-operators/viewActionRedirect.js +32 -0
- package/dist/engine/rx-operators/viewIgnoreFilter.js +22 -0
- package/dist/engine/rx-store.d.ts +12 -1
- package/dist/engine/rx-store.js +158 -0
- package/dist/engine/settle.js +15 -0
- package/dist/engine/shared-store.js +114 -0
- package/dist/engine/store-hooks.js +36 -0
- package/dist/engine/store.js +39 -0
- package/dist/engine/stream-flush.js +9 -0
- package/dist/engine/tag.d.ts +5 -0
- package/dist/engine/tag.js +28 -0
- package/dist/engine/to-width.js +6 -0
- package/dist/erd-editor-schema/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/defineProperty.js +12 -0
- package/dist/erd-editor-schema/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPrimitive.js +14 -0
- package/dist/erd-editor-schema/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPropertyKey.js +9 -0
- package/dist/erd-editor-schema/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/typeof.js +11 -0
- package/dist/erd-editor-schema/dist/convert/v2ToV3.js +142 -0
- package/dist/erd-editor-schema/dist/dictionaryRows.js +86 -0
- package/dist/erd-editor-schema/dist/helper.js +28 -0
- package/dist/erd-editor-schema/dist/normalizeSettings.js +24 -0
- package/dist/erd-editor-schema/dist/orderKey.js +139 -0
- package/dist/erd-editor-schema/dist/parser.js +73 -0
- package/dist/erd-editor-schema/dist/query/index.js +98 -0
- package/dist/erd-editor-schema/dist/query/lww.js +38 -0
- package/dist/erd-editor-schema/dist/storageForm.js +209 -0
- package/dist/erd-editor-schema/dist/utils/bit.js +6 -0
- package/dist/erd-editor-schema/dist/v2/migrations/relationshipType.migration.js +14 -0
- package/dist/erd-editor-schema/dist/v2/parser/canvas.js +91 -0
- package/dist/erd-editor-schema/dist/v2/parser/index.js +16 -0
- package/dist/erd-editor-schema/dist/v2/parser/memo.js +40 -0
- package/dist/erd-editor-schema/dist/v2/parser/relationship.js +62 -0
- package/dist/erd-editor-schema/dist/v2/parser/table.js +125 -0
- package/dist/erd-editor-schema/dist/v2/schema/canvasEntity.js +65 -0
- package/dist/erd-editor-schema/dist/v2/schema/relationshipEntity.js +25 -0
- package/dist/erd-editor-schema/dist/v2/schema/tableEntity.js +8 -0
- package/dist/erd-editor-schema/dist/v3/parser/doc.js +29 -0
- package/dist/erd-editor-schema/dist/v3/parser/domain.entity.js +28 -0
- package/dist/erd-editor-schema/dist/v3/parser/index.entity.js +33 -0
- package/dist/erd-editor-schema/dist/v3/parser/index.js +107 -0
- package/dist/erd-editor-schema/dist/v3/parser/indexColumn.entity.js +27 -0
- package/dist/erd-editor-schema/dist/v3/parser/memo.entity.js +38 -0
- package/dist/erd-editor-schema/dist/v3/parser/migrateScroll.js +11 -0
- package/dist/erd-editor-schema/dist/v3/parser/relationship.entity.js +60 -0
- package/dist/erd-editor-schema/dist/v3/parser/settings.js +140 -0
- package/dist/erd-editor-schema/dist/v3/parser/table.entity.js +55 -0
- package/dist/erd-editor-schema/dist/v3/parser/tableColumn.entity.js +54 -0
- package/dist/erd-editor-schema/dist/v3/parser/tableGroup.entity.js +37 -0
- package/dist/erd-editor-schema/dist/v3/parser/term.entity.js +30 -0
- package/dist/erd-editor-schema/dist/v3/parser/word.entity.js +32 -0
- package/dist/erd-editor-schema/dist/v3/schema/index.js +46 -0
- package/dist/erd-editor-schema/dist/v3/schema/indexColumn.entity.js +8 -0
- package/dist/erd-editor-schema/dist/v3/schema/relationship.entity.js +31 -0
- package/dist/erd-editor-schema/dist/v3/schema/settings.js +141 -0
- package/dist/erd-editor-schema/dist/v3/schema/tableColumn.entity.js +14 -0
- package/dist/erd-editor.d.ts +2 -0
- package/dist/erd-editor.js +4 -0
- package/dist/erd-editor.umd.js +789 -750
- package/dist/erd-viewer.d.ts +2 -0
- package/dist/erd-viewer.js +4 -0
- package/dist/erd-viewer.umd.js +696 -0
- package/dist/grid/dist/Grid.js +511 -0
- package/dist/grid/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/defineProperty.js +12 -0
- package/dist/grid/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPrimitive.js +14 -0
- package/dist/grid/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPropertyKey.js +9 -0
- package/dist/grid/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/typeof.js +11 -0
- package/dist/grid/dist/font.js +58 -0
- package/dist/grid/dist/input/editing.js +460 -0
- package/dist/grid/dist/input/pointer.js +426 -0
- package/dist/grid/dist/model/columns.js +41 -0
- package/dist/grid/dist/model/editing.js +93 -0
- package/dist/grid/dist/model/keys.js +89 -0
- package/dist/grid/dist/model/selection.js +237 -0
- package/dist/grid/dist/model/text.js +122 -0
- package/dist/grid/dist/model/tsv.js +108 -0
- package/dist/grid/dist/model/viewport.js +75 -0
- package/dist/grid/dist/scene/GridScene.js +64 -0
- package/dist/grid/dist/scene/draw/cells.js +61 -0
- package/dist/grid/dist/scene/draw/context.js +17 -0
- package/dist/grid/dist/scene/draw/headers.js +48 -0
- package/dist/grid/dist/scene/draw/scrollbar.js +70 -0
- package/dist/grid/dist/scene/layout.js +62 -0
- package/dist/grid/dist/scene/overlay.js +144 -0
- package/dist/grid/dist/scene/paint.js +123 -0
- package/dist/grid/dist/scene/state.js +269 -0
- package/dist/grid/dist/theme.js +37 -0
- package/dist/hooks/useDarkMode.d.ts +2 -0
- package/dist/hooks/useDarkMode.js +35 -0
- package/dist/hooks/useFlipAnimation.js +10 -0
- package/dist/hooks/useKeyBindingMap.js +55 -0
- package/dist/hooks/useNavigatorLanguages.js +22 -0
- package/dist/hooks/usePinchZoom.d.ts +6 -1
- package/dist/hooks/usePinchZoom.js +60 -0
- package/dist/hooks/useUnmounted.js +16 -0
- package/dist/hooks/useViewShortcut.d.ts +14 -0
- package/dist/hooks/useViewShortcut.js +34 -0
- package/dist/i18n/loadMessages.d.ts +12 -0
- package/dist/i18n/loadMessages.js +40 -0
- package/dist/i18n/locales.js +145 -0
- package/dist/i18n/menuLabel.js +4 -0
- package/dist/i18n/messages/ar-SA.d.ts +2 -3
- package/dist/i18n/messages/ar-SA.js +550 -0
- package/dist/i18n/messages/de-DE.d.ts +2 -3
- package/dist/i18n/messages/de-DE.js +498 -0
- package/dist/i18n/messages/en/code.js +13 -0
- package/dist/i18n/messages/en/colorPicker.js +36 -0
- package/dist/i18n/messages/en/common.js +76 -0
- package/dist/i18n/messages/en/contextMenu.js +31 -0
- package/dist/i18n/messages/en/dictionary.js +76 -0
- package/dist/i18n/messages/en/explorer.js +38 -0
- package/dist/i18n/messages/en/exportImage.js +23 -0
- package/dist/i18n/messages/en/feedback.js +9 -0
- package/dist/i18n/messages/en/findReplace.js +43 -0
- package/dist/i18n/messages/en/floatingToolbar.js +13 -0
- package/dist/i18n/messages/en/index.d.ts +2 -3
- package/dist/i18n/messages/en/index.js +47 -0
- package/dist/i18n/messages/en/mapColumns.js +36 -0
- package/dist/i18n/messages/en/palette.js +36 -0
- package/dist/i18n/messages/en/schemaSql.js +27 -0
- package/dist/i18n/messages/en/settings.d.ts +0 -3
- package/dist/i18n/messages/en/settings.js +18 -0
- package/dist/i18n/messages/en/shortcuts.js +35 -0
- package/dist/i18n/messages/en/tableProperties.js +35 -0
- package/dist/i18n/messages/en/themeBuilder.js +8 -0
- package/dist/i18n/messages/en/toolbar.js +9 -0
- package/dist/i18n/messages/en/viewer.d.ts +6 -0
- package/dist/i18n/messages/en/viewer.js +7 -0
- package/dist/i18n/messages/en/visualization.js +15 -0
- package/dist/i18n/messages/en/welcome.js +14 -0
- package/dist/i18n/messages/es-ES.d.ts +2 -3
- package/dist/i18n/messages/es-ES.js +511 -0
- package/dist/i18n/messages/eu-ES.d.ts +2 -3
- package/dist/i18n/messages/eu-ES.js +498 -0
- package/dist/i18n/messages/fa-IR.d.ts +2 -3
- package/dist/i18n/messages/fa-IR.js +498 -0
- package/dist/i18n/messages/fr-FR.d.ts +2 -3
- package/dist/i18n/messages/fr-FR.js +511 -0
- package/dist/i18n/messages/he-IL.d.ts +2 -3
- package/dist/i18n/messages/he-IL.js +511 -0
- package/dist/i18n/messages/id-ID.d.ts +2 -3
- package/dist/i18n/messages/id-ID.js +459 -0
- package/dist/i18n/messages/index.d.ts +3 -3
- package/dist/i18n/messages/index.js +58 -0
- package/dist/i18n/messages/it-IT.d.ts +2 -3
- package/dist/i18n/messages/it-IT.js +511 -0
- package/dist/i18n/messages/ja-JP.d.ts +2 -3
- package/dist/i18n/messages/ja-JP.js +459 -0
- package/dist/i18n/messages/ko-KR.d.ts +2 -3
- package/dist/i18n/messages/ko-KR.js +459 -0
- package/dist/i18n/messages/nl-NL.d.ts +2 -3
- package/dist/i18n/messages/nl-NL.js +498 -0
- package/dist/i18n/messages/pl-PL.d.ts +2 -3
- package/dist/i18n/messages/pl-PL.js +524 -0
- package/dist/i18n/messages/pt-BR.d.ts +2 -3
- package/dist/i18n/messages/pt-BR.js +511 -0
- package/dist/i18n/messages/pt-PT.d.ts +2 -3
- package/dist/i18n/messages/pt-PT.js +511 -0
- package/dist/i18n/messages/ro-RO.d.ts +2 -3
- package/dist/i18n/messages/ro-RO.js +511 -0
- package/dist/i18n/messages/ru-RU.d.ts +2 -3
- package/dist/i18n/messages/ru-RU.js +524 -0
- package/dist/i18n/messages/sk-SK.d.ts +2 -3
- package/dist/i18n/messages/sk-SK.js +524 -0
- package/dist/i18n/messages/sl-SI.d.ts +2 -3
- package/dist/i18n/messages/sl-SI.js +524 -0
- package/dist/i18n/messages/sv-SE.d.ts +2 -3
- package/dist/i18n/messages/sv-SE.js +498 -0
- package/dist/i18n/messages/tr-TR.d.ts +2 -3
- package/dist/i18n/messages/tr-TR.js +498 -0
- package/dist/i18n/messages/uk-UA.d.ts +2 -3
- package/dist/i18n/messages/uk-UA.js +524 -0
- package/dist/i18n/messages/zh-CN.d.ts +2 -3
- package/dist/i18n/messages/zh-CN.js +459 -0
- package/dist/i18n/messages/zh-TW.d.ts +2 -3
- package/dist/i18n/messages/zh-TW.js +459 -0
- package/dist/i18n/resolveLocale.js +28 -0
- package/dist/i18n/source.js +6 -0
- package/dist/i18n/translate.js +34 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -48293
- package/dist/konva/scene/columnDropTarget.js +43 -0
- package/dist/konva/scene/contentBounds.js +48 -0
- package/dist/konva/scene/fitZoom.d.ts +7 -0
- package/dist/konva/scene/fitZoom.js +31 -0
- package/dist/konva/scene/konvaFlip.js +125 -0
- package/dist/konva/scene/metrics.js +59 -0
- package/dist/konva/scene/renderScene.js +37 -0
- package/dist/konva/scene/stacking.js +13 -0
- package/dist/konva/scene/viewFreeze.js +29 -0
- package/dist/konva/scene/viewLayout.js +171 -0
- package/dist/konva/scene/viewport.js +86 -0
- package/dist/konva/testHandle.d.ts +9 -3
- package/dist/konva/testHandle.js +5 -0
- package/dist/konva/theme.js +45 -0
- package/dist/peer/index.js +35 -235
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/assertClassBrand.js +7 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/checkPrivateRedeclaration.js +6 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldGet2.js +7 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldInitSpec.js +7 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldSet2.js +7 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/defineProperty.js +12 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPrimitive.js +14 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/toPropertyKey.js +9 -0
- package/dist/r-html/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/typeof.js +11 -0
- package/dist/r-html/dist/constants.js +36 -0
- package/dist/r-html/dist/context/createContext.js +49 -0
- package/dist/r-html/dist/context/useContext.js +28 -0
- package/dist/r-html/dist/context/useProvider.js +41 -0
- package/dist/r-html/dist/css/compile.js +27 -0
- package/dist/r-html/dist/css/diagnostics.js +195 -0
- package/dist/r-html/dist/css/element.js +34 -0
- package/dist/r-html/dist/css/emit.js +26 -0
- package/dist/r-html/dist/css/flatten.js +76 -0
- package/dist/r-html/dist/css/hash.js +15 -0
- package/dist/r-html/dist/css/index.js +31 -0
- package/dist/r-html/dist/css/selector.js +11 -0
- package/dist/r-html/dist/helpers/array.js +9 -0
- package/dist/r-html/dist/helpers/fn.js +14 -0
- package/dist/r-html/dist/helpers/is-type.js +16 -0
- package/dist/r-html/dist/helpers/subject.js +21 -0
- package/dist/r-html/dist/observable/index.js +78 -0
- package/dist/r-html/dist/observable/scheduler.js +84 -0
- package/dist/r-html/dist/parser/html/helper.js +58 -0
- package/dist/r-html/dist/parser/html/index.js +101 -0
- package/dist/r-html/dist/parser/html/tokenizer.js +161 -0
- package/dist/r-html/dist/parser/vNode.js +32 -0
- package/dist/r-html/dist/render/directives/attribute/ref.js +18 -0
- package/dist/r-html/dist/render/directives/attributeDirective.js +7 -0
- package/dist/r-html/dist/render/directives/index.js +13 -0
- package/dist/r-html/dist/render/directives/node/cache.js +56 -0
- package/dist/r-html/dist/render/directives/node/innerHTML.js +20 -0
- package/dist/r-html/dist/render/directives/node/repeat.js +124 -0
- package/dist/r-html/dist/render/directives/nodeDirective.js +15 -0
- package/dist/r-html/dist/render/domAdapter.js +74 -0
- package/dist/r-html/dist/render/helper.js +91 -0
- package/dist/r-html/dist/render/hmr.js +64 -0
- package/dist/r-html/dist/render/host.js +16 -0
- package/dist/r-html/dist/render/hostTemplate.js +35 -0
- package/dist/r-html/dist/render/index.js +9 -0
- package/dist/r-html/dist/render/part/attribute/attribute.js +102 -0
- package/dist/r-html/dist/render/part/attribute/boolean.js +33 -0
- package/dist/r-html/dist/render/part/attribute/directive.js +48 -0
- package/dist/r-html/dist/render/part/attribute/event.js +49 -0
- package/dist/r-html/dist/render/part/attribute/index.js +12 -0
- package/dist/r-html/dist/render/part/attribute/property.js +30 -0
- package/dist/r-html/dist/render/part/attribute/spread.js +28 -0
- package/dist/r-html/dist/render/part/container.js +64 -0
- package/dist/r-html/dist/render/part/index.js +32 -0
- package/dist/r-html/dist/render/part/node/comment.js +34 -0
- package/dist/r-html/dist/render/part/node/component/hooks.js +28 -0
- package/dist/r-html/dist/render/part/node/component/index.js +37 -0
- package/dist/r-html/dist/render/part/node/component/observableComponent.js +111 -0
- package/dist/r-html/dist/render/part/node/component/prop.js +30 -0
- package/dist/r-html/dist/render/part/node/component/webComponent/helper.js +19 -0
- package/dist/r-html/dist/render/part/node/component/webComponent/index.js +79 -0
- package/dist/r-html/dist/render/part/node/text/array.js +87 -0
- package/dist/r-html/dist/render/part/node/text/arrayDiff.js +90 -0
- package/dist/r-html/dist/render/part/node/text/directive.js +51 -0
- package/dist/r-html/dist/render/part/node/text/function.js +7 -0
- package/dist/r-html/dist/render/part/node/text/helper.js +55 -0
- package/dist/r-html/dist/render/part/node/text/index.js +54 -0
- package/dist/r-html/dist/render/part/node/text/node.js +25 -0
- package/dist/r-html/dist/render/part/node/text/object.js +60 -0
- package/dist/r-html/dist/render/part/node/text/primitive.js +26 -0
- package/dist/r-html/dist/render/part/node/text/templateLiterals.js +38 -0
- package/dist/r-html/dist/render/value.js +8 -0
- package/dist/r-html/dist/store/index.js +72 -0
- package/dist/r-html/dist/template/css.js +70 -0
- package/dist/r-html/dist/template/cssDiagnostics.js +23 -0
- package/dist/r-html/dist/template/cssSource.js +62 -0
- package/dist/r-html/dist/template/helper.js +37 -0
- package/dist/r-html/dist/template/html.js +29 -0
- package/dist/r-html/dist/template/index.js +13 -0
- package/dist/r-html/dist/template/tNode.js +107 -0
- package/dist/r-html/dist/template/vCSSStyleSheet.js +162 -0
- package/dist/r-html-konva/dist/batchDraw.js +90 -0
- package/dist/r-html-konva/dist/host.js +336 -0
- package/dist/schema-sql-parser/dist/parser/dataType/Databricks.js +50 -0
- package/dist/schema-sql-parser/dist/parser/dataType/MSSQL.js +53 -0
- package/dist/schema-sql-parser/dist/parser/dataType/MariaDB.js +91 -0
- package/dist/schema-sql-parser/dist/parser/dataType/MySQL.js +75 -0
- package/dist/schema-sql-parser/dist/parser/dataType/Oracle.js +56 -0
- package/dist/schema-sql-parser/dist/parser/dataType/PostgreSQL.js +112 -0
- package/dist/schema-sql-parser/dist/parser/dataType/SQLite.js +36 -0
- package/dist/schema-sql-parser/dist/parser/dataType/Snowflake.js +59 -0
- package/dist/schema-sql-parser/dist/parser/helper.js +701 -0
- package/dist/schema-sql-parser/dist/parser/index.js +70 -0
- package/dist/schema-sql-parser/dist/parser/statement/add.extended.property.js +73 -0
- package/dist/schema-sql-parser/dist/parser/statement/alter.table.add.default.js +75 -0
- package/dist/schema-sql-parser/dist/parser/statement/alter.table.add.foreignKey.js +69 -0
- package/dist/schema-sql-parser/dist/parser/statement/alter.table.add.primaryKey.js +86 -0
- package/dist/schema-sql-parser/dist/parser/statement/alter.table.add.unique.js +128 -0
- package/dist/schema-sql-parser/dist/parser/statement/alter.table.alter.column.js +90 -0
- package/dist/schema-sql-parser/dist/parser/statement/comment.on.column.js +56 -0
- package/dist/schema-sql-parser/dist/parser/statement/comment.on.table.js +52 -0
- package/dist/schema-sql-parser/dist/parser/statement/create.index.js +61 -0
- package/dist/schema-sql-parser/dist/parser/statement/create.table.js +549 -0
- package/dist/schema-sql-parser/dist/parser/statement/default.expression.js +206 -0
- package/dist/schema-sql-parser/dist/parser/statement/index.columns.js +49 -0
- package/dist/schema-sql-parser/dist/parser/statement/index.js +25 -0
- package/dist/schema-sql-parser/dist/parser/tokenizer.js +241 -0
- package/dist/services/elk-layout/elkGraph.js +184 -0
- package/dist/services/elk-layout/elkLayoutOptions.js +52 -0
- package/dist/services/elk-layout/index.js +45 -0
- package/dist/services/export-png/ExportScene.js +30 -0
- package/dist/services/export-png/documentScene.js +45 -0
- package/dist/services/export-png/exportBox.js +63 -0
- package/dist/services/export-png/exportTheme.js +16 -0
- package/dist/services/export-png/index.js +139 -0
- package/dist/services/export-png/pixelRatio.js +12 -0
- package/dist/services/export-png/renderPng.js +52 -0
- package/dist/services/export-png/renderSvg.js +24 -0
- package/dist/services/export-png/sceneSvg.js +315 -0
- package/dist/services/export-png/textWidth.js +12 -0
- package/dist/services/export-png/toImage.d.ts +27 -0
- package/dist/services/export-png/toImage.js +49 -0
- package/dist/services/shiki/index.js +24 -0
- package/dist/styles/elevation.styles.js +9 -0
- package/dist/styles/fonts.styles.js +12 -0
- package/dist/styles/reset.styles.js +104 -0
- package/dist/styles/scrollbar.styles.js +27 -0
- package/dist/styles/typography.styles.js +63 -0
- package/dist/themes/radix-ui-theme.config.js +133 -0
- package/dist/themes/radix-ui-theme.js +231 -0
- package/dist/themes/tokens.js +107 -0
- package/dist/utils/arrayHas.js +7 -0
- package/dist/utils/attribute.js +11 -0
- package/dist/utils/bit.js +6 -0
- package/dist/utils/calcMemo.js +9 -0
- package/dist/utils/calcTable.js +220 -0
- package/dist/utils/clickGesture.js +33 -0
- package/dist/utils/clipboard.js +45 -0
- package/dist/utils/collection/domain.entity.js +13 -0
- package/dist/utils/collection/index.entity.js +13 -0
- package/dist/utils/collection/indexColumn.entity.js +12 -0
- package/dist/utils/collection/memo.entity.js +18 -0
- package/dist/utils/collection/relationship.entity.js +28 -0
- package/dist/utils/collection/sequence.js +21 -0
- package/dist/utils/collection/table.entity.js +24 -0
- package/dist/utils/collection/tableColumn.entity.js +25 -0
- package/dist/utils/collection/tableGroup.entity.js +17 -0
- package/dist/utils/collection/term.entity.js +14 -0
- package/dist/utils/collection/word.entity.js +15 -0
- package/dist/utils/contrastText.js +26 -0
- package/dist/utils/deepMerge.js +24 -0
- package/dist/utils/device-detect/index.js +6 -0
- package/dist/utils/dictionary-csv/csv.js +61 -0
- package/dist/utils/dictionary-csv/decode.js +10 -0
- package/dist/utils/dictionary-csv/dictionaryCsv.js +150 -0
- package/dist/utils/diff/compareEntities.js +200 -0
- package/dist/{components/erd/diff-viewer → utils/diff}/diff.d.ts +1 -1
- package/dist/utils/diff/diff.js +29 -0
- package/dist/utils/diff/diffDocuments.js +224 -0
- package/dist/utils/diff/pairEntities.js +71 -0
- package/dist/utils/diff/types.d.ts +1 -1
- package/dist/utils/diff/types.js +38 -0
- package/dist/utils/domEvent.js +55 -0
- package/dist/utils/dragSelect.js +9 -0
- package/dist/utils/draw-relationship/bezier.js +44 -0
- package/dist/utils/draw-relationship/calc.js +91 -0
- package/dist/utils/draw-relationship/corner.js +60 -0
- package/dist/utils/draw-relationship/draw.js +194 -0
- package/dist/utils/draw-relationship/incremental.d.ts +4 -4
- package/dist/utils/draw-relationship/incremental.js +135 -0
- package/dist/utils/draw-relationship/index.d.ts +16 -1
- package/dist/utils/draw-relationship/index.js +198 -0
- package/dist/utils/draw-relationship/loop.js +25 -0
- package/dist/utils/draw-relationship/nudge.js +402 -0
- package/dist/utils/draw-relationship/pathFinding.js +277 -0
- package/dist/utils/draw-relationship/route.d.ts +12 -0
- package/dist/utils/draw-relationship/route.js +460 -0
- package/dist/utils/draw-relationship/search.d.ts +15 -0
- package/dist/utils/draw-relationship/search.js +294 -0
- package/dist/utils/draw-relationship/sort.js +370 -0
- package/dist/utils/draw-relationship/stub.js +46 -0
- package/dist/utils/emitter.d.ts +15 -0
- package/dist/utils/emitter.js +76 -0
- package/dist/utils/file/exportFile.js +52 -0
- package/dist/utils/file/importFile.js +201 -0
- package/dist/utils/file/importSchema.js +128 -0
- package/dist/utils/find-replace/findMatches.js +212 -0
- package/dist/utils/find-replace/index.d.ts +0 -1
- package/dist/utils/find-replace/matcher.js +128 -0
- package/dist/utils/find-replace/present.js +48 -0
- package/dist/utils/find-replace/preserveCase.js +25 -0
- package/dist/utils/find-replace/replaceActions.js +70 -0
- package/dist/utils/flipAnimation.js +52 -0
- package/dist/utils/focus.js +40 -0
- package/dist/utils/formatCount.js +12 -0
- package/dist/utils/generator-code/aml.js +199 -0
- package/dist/utils/generator-code/columnTypes.js +369 -0
- package/dist/utils/generator-code/csharp.js +230 -0
- package/dist/utils/generator-code/dbml.js +248 -0
- package/dist/utils/generator-code/doctrine.js +964 -0
- package/dist/utils/generator-code/doctrineReservedWords.js +57 -0
- package/dist/utils/generator-code/drizzle.js +1853 -0
- package/dist/utils/generator-code/go.js +160 -0
- package/dist/utils/generator-code/graphql.js +347 -0
- package/dist/utils/generator-code/heck.js +47 -0
- package/dist/utils/generator-code/index.js +179 -0
- package/dist/utils/generator-code/java.js +179 -0
- package/dist/utils/generator-code/jpa.js +218 -0
- package/dist/utils/generator-code/jsonSchema.js +402 -0
- package/dist/utils/generator-code/jsonShape.js +169 -0
- package/dist/utils/generator-code/kotlin.js +102 -0
- package/dist/utils/generator-code/mermaid.js +130 -0
- package/dist/utils/generator-code/php.js +211 -0
- package/dist/utils/generator-code/rust.js +143 -0
- package/dist/utils/generator-code/rustTypes.js +132 -0
- package/dist/utils/generator-code/scala.js +124 -0
- package/dist/utils/generator-code/seaorm.js +581 -0
- package/dist/utils/generator-code/sequelize.js +1225 -0
- package/dist/utils/generator-code/sqlalchemy.js +1250 -0
- package/dist/utils/generator-code/swift.js +222 -0
- package/dist/utils/generator-code/typeorm.js +998 -0
- package/dist/utils/generator-code/typescript.js +67 -0
- package/dist/utils/generator-code/utils.js +87 -0
- package/dist/utils/generator-code/zod.js +106 -0
- package/dist/utils/globalEventObservable.js +67 -0
- package/dist/utils/highlightWords.js +48 -0
- package/dist/utils/icon.js +35 -0
- package/dist/utils/index.js +26 -0
- package/dist/utils/internalEvents.js +26 -0
- package/dist/utils/keyboard-shortcut/bindKeys.js +30 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +7 -1
- package/dist/utils/keyboard-shortcut/index.js +243 -0
- package/dist/utils/keyboard-shortcut/utils.js +32 -0
- package/dist/utils/loadValue.js +11 -0
- package/dist/utils/map-columns/alignTypes.js +48 -0
- package/dist/utils/map-columns/buildRows.js +337 -0
- package/dist/utils/map-columns/candidateKeys.js +24 -0
- package/dist/utils/map-columns/mapping.js +41 -0
- package/dist/utils/map-columns/prefill.js +32 -0
- package/dist/utils/map-columns/toMapColumnsActions.js +63 -0
- package/dist/utils/map-columns/validate.js +81 -0
- package/dist/utils/memo.js +6 -0
- package/dist/utils/pinch.d.ts +5 -1
- package/dist/utils/pinch.js +99 -0
- package/dist/utils/promise.js +16 -0
- package/dist/utils/referentialAction.js +23 -0
- package/dist/utils/rx-operators/fromCopy.js +7 -0
- package/dist/utils/rx-operators/fromPaste.js +7 -0
- package/dist/utils/rx-operators/fromShadowDraggable.js +5 -0
- package/dist/utils/safeCallback.js +10 -0
- package/dist/utils/schema-aml-parser/convert.js +285 -0
- package/dist/utils/schema-aml-parser/dataType.js +57 -0
- package/dist/utils/schema-aml-parser/index.js +22 -0
- package/dist/utils/schema-aml-parser/parser.js +637 -0
- package/dist/utils/schema-aml-parser/tokenizer.js +208 -0
- package/dist/utils/schema-aml-parser/types.js +8 -0
- package/dist/utils/schema-dbml-parser/convert.js +324 -0
- package/dist/utils/schema-dbml-parser/dataType.js +32 -0
- package/dist/utils/schema-dbml-parser/index.js +23 -0
- package/dist/utils/schema-dbml-parser/parser.js +646 -0
- package/dist/utils/schema-dbml-parser/tokenizer.js +185 -0
- package/dist/utils/schema-graphql-parser/convert.js +410 -0
- package/dist/utils/schema-graphql-parser/dataType.js +228 -0
- package/dist/utils/schema-graphql-parser/index.js +23 -0
- package/dist/utils/schema-graphql-parser/parser.js +490 -0
- package/dist/utils/schema-sql/Databricks.js +158 -0
- package/dist/utils/schema-sql/MSSQL.js +214 -0
- package/dist/utils/schema-sql/MariaDB.js +143 -0
- package/dist/utils/schema-sql/MySQL.js +224 -0
- package/dist/utils/schema-sql/Oracle.js +236 -0
- package/dist/utils/schema-sql/PostgreSQL.js +179 -0
- package/dist/utils/schema-sql/SQLite.js +129 -0
- package/dist/utils/schema-sql/Snowflake.js +148 -0
- package/dist/utils/schema-sql/index.d.ts +6 -3
- package/dist/utils/schema-sql/index.js +238 -0
- package/dist/utils/schema-sql/options.js +97 -0
- package/dist/utils/schema-sql/utils.d.ts +1 -43
- package/dist/utils/schema-sql/utils.js +251 -0
- package/dist/utils/schema-sql-parser/index.js +312 -0
- package/dist/utils/schema-sql-parser/utils.js +7 -0
- package/dist/utils/sharedColor.js +19 -0
- package/dist/utils/stageCursor.js +20 -0
- package/dist/utils/table-clipboard/copy.js +208 -0
- package/dist/utils/table-clipboard/index.js +28 -0
- package/dist/utils/table-clipboard/paste.js +154 -0
- package/dist/utils/table-clipboard/payload.js +73 -0
- package/dist/utils/table-clipboard/placement.js +54 -0
- package/dist/utils/tableColor.js +139 -0
- package/dist/utils/tableGroup.js +146 -0
- package/dist/utils/tableKeys.js +82 -0
- package/dist/utils/tableName.d.ts +47 -0
- package/dist/utils/tableName.js +72 -0
- package/dist/utils/takeover.js +10 -0
- package/dist/utils/text.js +47 -0
- package/dist/utils/validation.js +47 -0
- package/dist/utils/virtualRange.js +21 -0
- package/dist/uuid/dist/uuid25.js +11 -0
- package/dist/uuid/dist/uuidv7.js +25 -0
- package/dist/workers/elkLayout.shared-worker.js +327 -1
- package/dist/workers/elkLayout.spawn.d.ts +3 -0
- package/dist/workers/elkLayout.spawn.inline.d.ts +3 -0
- package/dist/workers/elkLayout.spawn.js +9 -0
- package/dist/workers/exportPng.shared-worker.js +32969 -55
- package/dist/workers/exportPng.spawn.d.ts +7 -0
- package/dist/workers/exportPng.spawn.inline.d.ts +7 -0
- package/dist/workers/exportPng.spawn.js +9 -0
- package/dist/workers/shiki.shared-worker.js +119 -1
- package/dist/workers/shiki.spawn.d.ts +3 -0
- package/dist/workers/shiki.spawn.inline.d.ts +3 -0
- package/dist/workers/shiki.spawn.js +9 -0
- package/package.json +37 -5
- package/dist/components/customElementRegistry.d.ts +0 -1
- package/dist/components/erd/diff-viewer/diffContext.d.ts +0 -9
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +0 -11
- package/dist/loadValue-B5ojYrZ-.js +0 -14682
- package/dist/shared-store-S7YWEz3E.js +0 -1656
- package/dist/workers/spawn.d.ts +0 -9
- package/dist/workers/spawn.inline.d.ts +0 -9
- /package/dist/components/{explorer → erd}/fieldIcon.d.ts +0 -0
- /package/dist/components/erd/{floating-toolbar → view-controls}/ToolbarCompass.template.d.ts +0 -0
- /package/dist/components/erd/{floating-toolbar → view-controls}/nameViewDropdown.d.ts +0 -0
- /package/dist/components/erd/{floating-toolbar → view-controls}/nameViewDropdown.styles.d.ts +0 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019-present SeungHwan-Lee
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -9,7 +9,8 @@ and renders into a closed shadow root, so it drops into React, Vue, Svelte or pl
|
|
|
9
9
|
leaking styles either way. It is the same editor as [erd-editor.io](https://erd-editor.io), the
|
|
10
10
|
[VS Code extension](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode), the
|
|
11
11
|
[JetBrains plugin](https://plugins.jetbrains.com/plugin/23594-erd-editor) and the
|
|
12
|
-
[Obsidian plugin](https://community.obsidian.md/plugins/erd-editor).
|
|
12
|
+
[Obsidian plugin](https://community.obsidian.md/plugins/erd-editor). Beside it,
|
|
13
|
+
[`<erd-viewer>`](#viewer) shows a diagram read-only, for a page that only displays one.
|
|
13
14
|
|
|
14
15
|
## Features
|
|
15
16
|
|
|
@@ -20,7 +21,7 @@ leaking styles either way. It is the same editor as [erd-editor.io](https://erd-
|
|
|
20
21
|
- **Import** — SQL DDL, GraphQL SDL, DBML and AML from the menu or [`setSchema*`](#importing-a-schema),
|
|
21
22
|
replacing the diagram or adding to it
|
|
22
23
|
- **Export** — DDL for eight databases, also from `getSchemaSQL()`, code in 22 languages and ORMs,
|
|
23
|
-
PNG and SVG
|
|
24
|
+
PNG and SVG, also from [`toImage()`](#images)
|
|
24
25
|
- **Navigate** — command palette (`Ctrl`/`Cmd`+`K`), an Explorer tree with find and replace, Graph
|
|
25
26
|
and Flow views
|
|
26
27
|
- **History** — undo and redo, time travel through the session, a diff viewer (`setDiffValue()`)
|
|
@@ -39,14 +40,21 @@ Drizzle, DBML, AML, Mermaid, PHP, Doctrine, Rust, SeaORM, Swift, Zod, JSON Schem
|
|
|
39
40
|
npm install @dineug/erd-editor
|
|
40
41
|
```
|
|
41
42
|
|
|
42
|
-
The PNG and SVG export, the Flow and tree layouts and the syntax highlighting run in shared
|
|
43
|
-
workers, which Vite, webpack and Rspack emit beside your chunks and esbuild does not.
|
|
44
|
-
|
|
43
|
+
The editor's PNG and SVG export, the Flow and tree layouts and the syntax highlighting run in shared
|
|
44
|
+
workers, which Vite, webpack and Rspack emit beside your chunks and esbuild does not. webpack's
|
|
45
|
+
experimental `experiments.outputModule` starts none of them, as each waits on a chunk split off it
|
|
46
|
+
that nothing loads: keep webpack's default output, or set `optimization.splitChunks: false`. A
|
|
47
|
+
strict CSP needs `worker-src 'self'`. `<erd-viewer>` starts no worker. Both elements style
|
|
48
|
+
themselves with constructed stylesheets, which `style-src 'self'` allows, but the editor's code
|
|
49
|
+
panels color their text with `style` attributes and its image export previews from a `blob:` url, so
|
|
50
|
+
they need `style-src 'unsafe-inline'` and `img-src blob:`. A browser without constructed
|
|
51
|
+
stylesheets, as Firefox before 101, gets `<style>` elements, which need `style-src 'unsafe-inline'`
|
|
52
|
+
too. Without a bundler, use the [script tag](#script-tag) builds.
|
|
45
53
|
|
|
46
54
|
## Usage
|
|
47
55
|
|
|
48
56
|
```js
|
|
49
|
-
import '@dineug/erd-editor';
|
|
57
|
+
import '@dineug/erd-editor/erd-editor.js';
|
|
50
58
|
|
|
51
59
|
const editor = document.createElement('erd-editor');
|
|
52
60
|
// a custom element is inline, and the editor fills its box
|
|
@@ -59,55 +67,121 @@ editor.addEventListener('change', () => {
|
|
|
59
67
|
});
|
|
60
68
|
```
|
|
61
69
|
|
|
70
|
+
### Registering the elements
|
|
71
|
+
|
|
72
|
+
`@dineug/erd-editor/erd-editor.js` defines `<erd-editor>` when imported, and
|
|
73
|
+
`@dineug/erd-editor/erd-viewer.js` defines [`<erd-viewer>`](#viewer). Importing the package root
|
|
74
|
+
defines neither. It exports both element classes, `ErdEditorElement` and `ErdViewerElement`, and
|
|
75
|
+
`defineErdEditor()` and `defineErdViewer()`, which define their tag where you call them:
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
import { defineErdEditor } from '@dineug/erd-editor';
|
|
79
|
+
|
|
80
|
+
defineErdEditor();
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
A second call does nothing, and a call throws an `Error` naming the tag when another class already
|
|
84
|
+
holds it.
|
|
85
|
+
|
|
86
|
+
A bundle that holds both elements makes Vite and Rolldown warn 24 times of an
|
|
87
|
+
`INEFFECTIVE_DYNAMIC_IMPORT`: the viewer loads each language but English with `import()`, and the
|
|
88
|
+
editor imports every dictionary at once, so they stay in the editor's chunk and load with it.
|
|
89
|
+
|
|
90
|
+
For a tag of your own, define the class yourself and add the tag to `HTMLElementTagNameMap`
|
|
91
|
+
yourself, in a window that loads neither that element's entry nor its [script tag](#script-tag)
|
|
92
|
+
build and calls no define function for it, since a class takes one name per window:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { ErdEditorElement } from '@dineug/erd-editor';
|
|
96
|
+
|
|
97
|
+
customElements.define('my-erd-editor', ErdEditorElement);
|
|
98
|
+
|
|
99
|
+
declare global {
|
|
100
|
+
interface HTMLElementTagNameMap {
|
|
101
|
+
'my-erd-editor': ErdEditorElement;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Migrating from the bare import
|
|
107
|
+
|
|
108
|
+
Importing the package root used to define `<erd-editor>`. It now defines nothing, so an element
|
|
109
|
+
created after that import alone is a plain `HTMLElement` without the editor's methods. Import the
|
|
110
|
+
entry for its effect instead, or call `defineErdEditor()`:
|
|
111
|
+
|
|
112
|
+
```diff
|
|
113
|
+
-import '@dineug/erd-editor';
|
|
114
|
+
+import '@dineug/erd-editor/erd-editor.js';
|
|
115
|
+
import { setExportFileCallback } from '@dineug/erd-editor';
|
|
116
|
+
```
|
|
117
|
+
|
|
62
118
|
### Server-side rendering
|
|
63
119
|
|
|
64
|
-
|
|
65
|
-
|
|
120
|
+
Every entry but [`engine.js` and `peer.js`](#headless-replica) needs a DOM, the package root too,
|
|
121
|
+
since evaluating it builds both element classes. So in Next.js, Nuxt, SvelteKit or Astro import
|
|
122
|
+
the element on the client:
|
|
66
123
|
|
|
67
124
|
```js
|
|
68
125
|
useEffect(() => {
|
|
69
|
-
import('@dineug/erd-editor');
|
|
126
|
+
import('@dineug/erd-editor/erd-editor.js');
|
|
70
127
|
}, []);
|
|
71
128
|
```
|
|
72
129
|
|
|
73
130
|
### Vite
|
|
74
131
|
|
|
75
|
-
In development,
|
|
76
|
-
|
|
132
|
+
In development, include the ELK bundle the editor's layout worker imports in Vite's
|
|
133
|
+
pre-bundling, or the Flow and tree layouts fail. Vite 7 and older also need the editor kept out
|
|
134
|
+
of pre-bundling, since their pre-bundle points the workers' URLs at files it never writes. A
|
|
135
|
+
production build needs nothing.
|
|
77
136
|
|
|
78
137
|
```js
|
|
79
138
|
// vite.config.js
|
|
80
139
|
export default {
|
|
81
140
|
optimizeDeps: {
|
|
82
|
-
exclude: ['@dineug/erd-editor'],
|
|
83
141
|
include: ['@dineug/erd-editor > elkjs/lib/elk.bundled.js'],
|
|
142
|
+
// Vite 7 and older only:
|
|
143
|
+
// exclude: ['@dineug/erd-editor'],
|
|
84
144
|
},
|
|
85
145
|
};
|
|
86
146
|
```
|
|
87
147
|
|
|
88
148
|
### Script tag
|
|
89
149
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
150
|
+
Two builds bundle every dependency, so a page loads one with no bundler. Pin a version beyond a
|
|
151
|
+
demo.
|
|
152
|
+
|
|
153
|
+
- `dist/erd-editor.umd.js` bundles the workers too, defines `<erd-editor>` and puts
|
|
154
|
+
`setExportFileCallback`, `setImportFileCallback`, `createKeyBindingMap`, `dictionaryRowChords`,
|
|
155
|
+
`ErdEditorElement` and `defineErdEditor` on `window.ErdEditor`. Its workers are `data:` URLs, so
|
|
156
|
+
a strict CSP needs `worker-src data:`.
|
|
157
|
+
- `dist/erd-viewer.umd.js` defines `<erd-viewer>` and puts `ErdViewerElement` and
|
|
158
|
+
`defineErdViewer` on `window.ErdViewer`. It starts no worker and holds all 25 languages.
|
|
159
|
+
|
|
160
|
+
The package's `unpkg` and `jsdelivr` fields name the editor's file, so a CDN URL without a path
|
|
161
|
+
serves the editor.
|
|
94
162
|
|
|
95
163
|
```html
|
|
96
164
|
<erd-editor style="display: block; width: 100%; height: 100vh"></erd-editor>
|
|
97
165
|
<script src="https://cdn.jsdelivr.net/npm/@dineug/erd-editor/dist/erd-editor.umd.js"></script>
|
|
98
166
|
```
|
|
99
167
|
|
|
168
|
+
```html
|
|
169
|
+
<erd-viewer src="diagram.erd.json" style="display: block; height: 480px"></erd-viewer>
|
|
170
|
+
<script src="https://cdn.jsdelivr.net/npm/@dineug/erd-editor/dist/erd-viewer.umd.js"></script>
|
|
171
|
+
```
|
|
172
|
+
|
|
100
173
|
## API
|
|
101
174
|
|
|
102
|
-
|
|
175
|
+
`ErdEditorElement` is exported as both the element's type and its class, beside
|
|
176
|
+
`defineErdEditor()` ([Registering the elements](#registering-the-elements)). The
|
|
103
177
|
[Element API docs](https://docs.erd-editor.io/docs/api/erd-editor-element) cover each member in
|
|
104
|
-
full.
|
|
178
|
+
full. The read-only element has a section of its own, [Viewer](#viewer).
|
|
105
179
|
|
|
106
180
|
### Attributes
|
|
107
181
|
|
|
108
182
|
| Attribute | Property | Description |
|
|
109
183
|
| --- | --- | --- |
|
|
110
|
-
| `readonly` | `readonly` | Blocks editing and `change`; only `setInitialValue()` still loads. |
|
|
184
|
+
| `readonly` | `readonly` | Blocks editing and `change`; only `setInitialValue()` still loads. Takes the edit UI away and keeps navigation, export, the diff viewer and Table Properties to read; a setting the reader changes stays on their own screen. |
|
|
111
185
|
| `system-dark-mode` | `systemDarkMode` | Sets the appearance to `system`. |
|
|
112
186
|
| `enable-theme-builder` | `enableThemeBuilder` | Shows the theme builder and the palette's Theme. |
|
|
113
187
|
| `enable-locale-picker` | `enableLocalePicker` | Shows the language button and the palette's Display Language, System by default. |
|
|
@@ -127,7 +201,7 @@ An attribute is on when present with no value or `"true"`.
|
|
|
127
201
|
| Method | Description |
|
|
128
202
|
| --- | --- |
|
|
129
203
|
| `setInitialValue(value)` | Load a document with no undo entry; `''` starts a new one. |
|
|
130
|
-
| `getSchemaSQL(vendor?, options?)` | DDL for one of the eight databases, by default the document's. `options`: `statements` (`create`, `ifNotExists`, `recreate`), `header` (`none`, `use`, `createAndUse`), `logicalNameAsComment` (`true` writes a table's or column's logical name where its comment is empty). |
|
|
204
|
+
| `getSchemaSQL(vendor?, options?)` | DDL for one of the eight databases, by default the one this editor shows (the document's, unless a readonly reader picked another), always in the bracket it shows. `options`: `statements` (`create`, `ifNotExists`, `recreate`), `header` (`none`, `use`, `createAndUse`), `logicalNameAsComment` (`true` writes a table's or column's logical name where its comment is empty). |
|
|
131
205
|
| `setSchemaSQL(value, options?)`, `setSchemaGraphQL`, `setSchemaDBML`, `setSchemaAML` | Replace the document with parsed DDL, GraphQL SDL, DBML or AML, or append it ([Importing a schema](#importing-a-schema)). |
|
|
132
206
|
| `setSchemaJSON(value, options?)` | Load an `.erd.json` document as `value` does, or append it. |
|
|
133
207
|
| `setDiffValue(value)` | Diff another document over the ERD tab. |
|
|
@@ -176,6 +250,96 @@ An attribute is on when present with no value or `"true"`.
|
|
|
176
250
|
The element starts dark and English and stores neither choice: `setPresetTheme` and `setLocale`
|
|
177
251
|
set them, and your host keeps what `changePresetTheme` and `changeLocale` report.
|
|
178
252
|
|
|
253
|
+
## Viewer
|
|
254
|
+
|
|
255
|
+
`<erd-viewer>` shows a document read-only: a reader pans, zooms, searches and lights relationships,
|
|
256
|
+
and nothing in it edits. It renders into a closed shadow root as the editor does, and several on one
|
|
257
|
+
page each keep their own document and view.
|
|
258
|
+
|
|
259
|
+
```js
|
|
260
|
+
import '@dineug/erd-editor/erd-viewer.js';
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
```html
|
|
264
|
+
<erd-viewer src="/diagrams/shop.erd.json" style="display: block; height: 480px"></erd-viewer>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
A page that cannot load the element can frame the hosted viewer,
|
|
268
|
+
`https://erd-editor.io/embed?src=…`, instead; the hosted viewer also takes a file or gist on GitHub
|
|
269
|
+
by the address its page shows, from public repositories and public gists only, fetched from
|
|
270
|
+
GitHub's raw host with its five-minute cache.
|
|
271
|
+
|
|
272
|
+
### Viewer attributes and properties
|
|
273
|
+
|
|
274
|
+
| Attribute | Property | Description |
|
|
275
|
+
| --- | --- | --- |
|
|
276
|
+
| `src` | `src` | The URL of a document as an `.erd.json` file saves it, in no other format, fetched with `GET` under the browser's CORS rules. |
|
|
277
|
+
| `name-view` | `nameView` | `physical`, `logical` or `both`, shown over the name view the document saves, which `value` keeps. |
|
|
278
|
+
| `minimap` | `minimap` | The minimap, which shows while the document has content. |
|
|
279
|
+
| `controls` | `controls` | The controls bar: zoom out, the zoom level, which resets it, zoom in, Fit, the name view list, and an arrow to the nearest part of the diagram while none of it is on screen. |
|
|
280
|
+
|
|
281
|
+
`minimap` and `controls` are on unless their value is `"false"`.
|
|
282
|
+
|
|
283
|
+
| Property | Description |
|
|
284
|
+
| --- | --- |
|
|
285
|
+
| `value: string` | The document as an `.erd.json` file saves it, as the editor's `value` does: while the document locks its viewport, which a new document does, it keeps the zoom and scroll the file saved, and only with that lock off holds the reader's. Assigning one shows it and throws on text that does not parse; `''` shows an empty diagram. |
|
|
286
|
+
|
|
287
|
+
Whichever of `value` and `src` is set last wins, so assigning `value` cancels a fetch still
|
|
288
|
+
running. A `value`, `src`, `nameView`, `minimap` or `controls` set on the element before its tag is
|
|
289
|
+
defined is taken up once it is, over the attributes its markup gave it.
|
|
290
|
+
|
|
291
|
+
### Viewer methods
|
|
292
|
+
|
|
293
|
+
| Method | Description |
|
|
294
|
+
| --- | --- |
|
|
295
|
+
| `setPresetTheme(options)` | Set `appearance` (`light`, `dark`, `system`), `grayColor` and `accentColor`. |
|
|
296
|
+
| `setSystemAppearance(appearance)` | Name the light or dark `system` shows; `null` follows the OS. |
|
|
297
|
+
| `setTheme(theme)` | Override theme tokens; each call replaces the earlier overrides. |
|
|
298
|
+
| `setLocale(locale)` | Set the display language, `'system'` or a [code](#display-language). The `Promise` it returns resolves once that language's dictionary has loaded or failed to. |
|
|
299
|
+
| `setSystemLocale(tag)` | Name the BCP 47 language `system` shows; `null` goes back to the page's languages. It resolves as `setLocale` does. |
|
|
300
|
+
| `destroy()` | Take the view down, abort a fetch and stop watching the OS color scheme and the page's styles. A destroyed viewer draws nothing more, even when added to the page again. |
|
|
301
|
+
|
|
302
|
+
### Viewer events
|
|
303
|
+
|
|
304
|
+
| Event | Description |
|
|
305
|
+
| --- | --- |
|
|
306
|
+
| `load` | The document `src` names was fetched and shown. Assigning `value` fires none. |
|
|
307
|
+
| `error` | Fetching `src`, its response or its document failed; `event.detail` holds the cause. The viewer shows an empty diagram and a notice. |
|
|
308
|
+
|
|
309
|
+
### Loading, focus and language
|
|
310
|
+
|
|
311
|
+
- **Loading.** A notice over the canvas shows while `src` loads and once it failed. A new `src`
|
|
312
|
+
aborts the fetch before it, removing the viewer from the page aborts the one running, and a
|
|
313
|
+
viewer put back fetches a `src` it has not shown. Each document is fitted to the viewer's box
|
|
314
|
+
as it lands, the zoom and scroll the file saved left aside.
|
|
315
|
+
- **Focus.** The viewer takes no focus as it mounts. Until a click, a tap or the Tab key focuses
|
|
316
|
+
it, the wheel and a swipe from empty canvas scroll the page, a trackpad pinch passes to the
|
|
317
|
+
page, a finger pans nothing, and it answers no key. Once focused, the wheel pans it (`Shift`
|
|
318
|
+
across) and so does a finger, `Ctrl`/`Cmd` with the wheel or a pinch zooms, `Ctrl`/`Cmd`+`=`,
|
|
319
|
+
`-` and `0` zoom in, out and back, and `Ctrl`/`Cmd`+`K` opens a palette that searches the
|
|
320
|
+
document: `#` tables, `@` columns and `:` comments and memos. A mouse drag pans and a still click
|
|
321
|
+
or tap lights relationships, focused or not: a table's, or the one clicked; the table the pointer
|
|
322
|
+
rests on lights its own.
|
|
323
|
+
- **Theme and language.** Both start on `system`: the OS color scheme, and the page's
|
|
324
|
+
`<html lang>`, then `navigator.languages`, read once as the viewer first connects. English is in
|
|
325
|
+
the entry. Each other language is a chunk of its own, which your bundler emits and the viewer
|
|
326
|
+
loads once a page asks for it, showing English until it lands and keeping English if it fails.
|
|
327
|
+
The palette and the notices follow a right-to-left language; the canvas and the controls stay
|
|
328
|
+
left to right.
|
|
329
|
+
|
|
330
|
+
### What it adds to a page
|
|
331
|
+
|
|
332
|
+
- `src` is the one `fetch` the package makes, so a strict CSP lists its origin in `connect-src`.
|
|
333
|
+
Besides it, a viewer requests only the dictionary chunk of a language other than English, from
|
|
334
|
+
your own bundle. Its styles are constructed stylesheets, which a strict CSP lets through, but for
|
|
335
|
+
a browser without them, which gets `<style>` elements.
|
|
336
|
+
- It starts no worker and writes no storage. Importing it adds three listeners to `window` for
|
|
337
|
+
the life of the page, for `mousedown`, `touchstart` and an event of the package's own,
|
|
338
|
+
`@dineug/erd-editor/internal-forward-move-start`, and Konva, which draws the canvas, sets
|
|
339
|
+
`window.Konva` and, with its first stage, adds mouse and touch listeners to `window` and a
|
|
340
|
+
`visibilitychange` listener to `document`, which it never removes. The editor's entry adds the
|
|
341
|
+
same.
|
|
342
|
+
|
|
179
343
|
## Collaboration
|
|
180
344
|
|
|
181
345
|
A joiner starts from the first editor's `runtimeValue`, then each relays its actions:
|
|
@@ -244,6 +408,30 @@ payload. Unset or `null`, the browser's download and file picker work. The Dicti
|
|
|
244
408
|
CSV always opens the browser's file picker, since no `type` names CSV, and its Export CSV goes
|
|
245
409
|
through the export callback.
|
|
246
410
|
|
|
411
|
+
## Images
|
|
412
|
+
|
|
413
|
+
`toImage()` draws a document, the text a `value` holds, as a PNG `Blob` or an SVG string, with the
|
|
414
|
+
Export image dialog's options. It draws the whole document at 100%, whatever zoom it was saved at,
|
|
415
|
+
and needs a browser: it measures and draws on a canvas, in a `SharedWorker` where there is one.
|
|
416
|
+
|
|
417
|
+
```js
|
|
418
|
+
import { toImage } from '@dineug/erd-editor';
|
|
419
|
+
|
|
420
|
+
const png = await toImage(value, { format: 'png', scale: 3 });
|
|
421
|
+
const svg = await toImage(value, { format: 'svg', darkMode: true, background: false });
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
| Option | Default | Description |
|
|
425
|
+
| --- | --- | --- |
|
|
426
|
+
| `format` | | `'png'` resolves to a `Blob`, `'svg'` to a string. |
|
|
427
|
+
| `background` | `true` | Paint the canvas color behind the diagram; `false` leaves it transparent. |
|
|
428
|
+
| `darkMode` | `false` | Draw the dark theme in place of the light one. |
|
|
429
|
+
| `scale` | `2` | `1`, `2` or `3` image pixels per unit, PNG only; cut to what a canvas holds. |
|
|
430
|
+
|
|
431
|
+
It rejects text that does not parse, as the viewer's `value` does, and a value outside the table,
|
|
432
|
+
and reads no other option. Empty text, or JSON with none of a document's fields, draws an empty
|
|
433
|
+
diagram. The words the diagram draws itself, such as an unnamed table's placeholder, are English.
|
|
434
|
+
|
|
247
435
|
## Headless replica
|
|
248
436
|
|
|
249
437
|
`engine.js` applies the same actions with no DOM, so a worker can keep and serialize the document:
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/assertClassBrand.js
|
|
2
|
+
function _assertClassBrand(e, t, n) {
|
|
3
|
+
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
4
|
+
throw new TypeError("Private element is not present on this object");
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _assertClassBrand as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/checkPrivateRedeclaration.js
|
|
2
|
+
function _checkPrivateRedeclaration(e, t) {
|
|
3
|
+
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _checkPrivateRedeclaration as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _assertClassBrand from "./assertClassBrand.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/classPrivateFieldGet2.js
|
|
3
|
+
function _classPrivateFieldGet2(s, a) {
|
|
4
|
+
return s.get(_assertClassBrand(s, a));
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _classPrivateFieldGet2 as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _checkPrivateRedeclaration from "./checkPrivateRedeclaration.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
3
|
+
function _classPrivateFieldInitSpec(e, t, a) {
|
|
4
|
+
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _classPrivateFieldInitSpec as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _assertClassBrand from "./assertClassBrand.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/classPrivateFieldSet2.js
|
|
3
|
+
function _classPrivateFieldSet2(s, a, r) {
|
|
4
|
+
return s.set(_assertClassBrand(s, a), r), r;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _classPrivateFieldSet2 as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import toPropertyKey from "./toPropertyKey.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/defineProperty.js
|
|
3
|
+
function _defineProperty(e, r, t) {
|
|
4
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5
|
+
value: t,
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0
|
|
9
|
+
}) : e[r] = t, e;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { _defineProperty as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _typeof from "./typeof.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPrimitive.js
|
|
3
|
+
function toPrimitive(t, r) {
|
|
4
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5
|
+
var e = t[Symbol.toPrimitive];
|
|
6
|
+
if (void 0 !== e) {
|
|
7
|
+
var i = e.call(t, r || "default");
|
|
8
|
+
if ("object" != _typeof(i)) return i;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return ("string" === r ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { toPrimitive as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _typeof from "./typeof.js";
|
|
2
|
+
import toPrimitive from "./toPrimitive.js";
|
|
3
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPropertyKey.js
|
|
4
|
+
function toPropertyKey(t) {
|
|
5
|
+
var i = toPrimitive(t, "string");
|
|
6
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { toPropertyKey as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/typeof.js
|
|
2
|
+
function _typeof(o) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function(o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { _typeof as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createKeyBindingMap } from "../utils/keyboard-shortcut/index.js";
|
|
2
|
+
import { createContext } from "../r-html/dist/context/createContext.js";
|
|
3
|
+
import { observable } from "../r-html/dist/observable/index.js";
|
|
4
|
+
import { useContext } from "../r-html/dist/context/useContext.js";
|
|
5
|
+
import { initialClearAction } from "../engine/modules/editor/atom.actions.js";
|
|
6
|
+
import { actions } from "../engine/actions.js";
|
|
7
|
+
import { createEngineContext } from "../engine/context.js";
|
|
8
|
+
import { createRxStore } from "../engine/rx-store.js";
|
|
9
|
+
import { Emitter } from "../utils/emitter.js";
|
|
10
|
+
import { Subject } from "rxjs";
|
|
11
|
+
//#region src/components/appContext.ts
|
|
12
|
+
function createAppContext(ctx, options) {
|
|
13
|
+
const { devtools = true, ...storeOptions } = options ?? {};
|
|
14
|
+
const engineContext = createEngineContext(ctx);
|
|
15
|
+
const store = createRxStore(engineContext, storeOptions);
|
|
16
|
+
const keyBindingMap = observable(createKeyBindingMap(), { shallow: true });
|
|
17
|
+
const shortcut$ = new Subject();
|
|
18
|
+
const keydown$ = new Subject();
|
|
19
|
+
const emitter = new Emitter();
|
|
20
|
+
return Object.freeze({
|
|
21
|
+
...engineContext,
|
|
22
|
+
actions,
|
|
23
|
+
store,
|
|
24
|
+
keyBindingMap,
|
|
25
|
+
shortcut$,
|
|
26
|
+
keydown$,
|
|
27
|
+
emitter,
|
|
28
|
+
lifecycle: { destroyed: false }
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var appContext = createContext({});
|
|
32
|
+
var useAppContext = (ctx, fallback) => useContext(ctx, {
|
|
33
|
+
...appContext,
|
|
34
|
+
value: fallback ?? appContext.value
|
|
35
|
+
});
|
|
36
|
+
function appDestroy(app) {
|
|
37
|
+
app.lifecycle.destroyed = true;
|
|
38
|
+
app.store.dispatchSync(initialClearAction());
|
|
39
|
+
app.store.destroy();
|
|
40
|
+
app.keydown$.complete();
|
|
41
|
+
app.shortcut$.complete();
|
|
42
|
+
app.emitter.clear();
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { appContext, appDestroy, createAppContext, useAppContext };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type an exported element class carries, written here rather than taken
|
|
3
|
+
* from @dineug/r-html, which the build inlines, so a declaration file names it
|
|
4
|
+
* without an import no consumer can resolve.
|
|
5
|
+
*/
|
|
6
|
+
export interface CustomElementClass<C extends HTMLElement = HTMLElement> {
|
|
7
|
+
new (): C;
|
|
8
|
+
readonly observedAttributes: string[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=customElementClass.d.ts.map
|