@dineug/erd-editor 3.10.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -158
- package/dist/components/appContext.d.ts +4 -0
- package/dist/components/erd/Erd.d.ts +3 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +2 -1
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +38 -2
- package/dist/components/erd/automatic-table-placement/elkPlacement.d.ts +42 -0
- package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +21 -0
- package/dist/components/erd/automatic-table-placement/placementActions.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +0 -11
- package/dist/components/erd/canvas/DiffOutline.template.d.ts +14 -0
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +2 -2
- package/dist/components/erd/canvas/entityDrag.d.ts +17 -1
- package/dist/components/erd/canvas/middleButtonPan.d.ts +11 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +40 -0
- package/dist/components/erd/canvas/table/Table.d.ts +9 -1
- package/dist/components/erd/canvas/table/doubleClick.d.ts +3 -4
- package/dist/components/erd/canvas/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupBody.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupDropTarget.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/TableGroupSash.d.ts +35 -0
- package/dist/components/erd/canvas/table-group/TableGroups.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/tableGroupBox.d.ts +40 -0
- package/dist/components/erd/canvas/table-group/titleLayout.d.ts +45 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +2 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.d.ts +19 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.styles.d.ts +12 -0
- package/dist/components/erd/diff-viewer/diff-tree/diffTreeModel.d.ts +49 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +21 -19
- package/dist/components/erd/draw-target/DrawTargetButtons.d.ts +16 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.styles.d.ts +14 -0
- package/dist/components/erd/draw-target/drawTargetState.d.ts +26 -0
- package/dist/components/erd/draw-target/findDrawTarget.d.ts +29 -0
- package/dist/components/erd/draw-target/placePill.d.ts +47 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +7 -2
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +5 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +6 -2
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +3 -1
- package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +3 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +7 -4
- package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
- package/dist/components/erd/goToErdTarget.d.ts +40 -16
- package/dist/components/erd/hitTest.d.ts +16 -1
- package/dist/components/erd/minimap/MinimapScene.d.ts +1 -1
- package/dist/components/erd/minimap/table/Table.d.ts +3 -3
- package/dist/components/erd/minimap/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/relationshipHighlight.d.ts +18 -0
- package/dist/components/erd/table-group/TableGroupDraft.d.ts +15 -0
- package/dist/components/erd/table-group/TableGroupDraft.styles.d.ts +6 -0
- package/dist/components/erd/table-group/tableGroupName.d.ts +21 -0
- package/dist/components/erd/table-group/useTableGroupDraw.d.ts +25 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +2 -2
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +3 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.d.ts +17 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.styles.d.ts +17 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.d.ts +21 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +19 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +91 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +66 -6
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +4 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
- package/dist/components/erd-editor/viewportLayout.d.ts +52 -0
- package/dist/components/explorer/Explorer.d.ts +12 -0
- package/dist/components/explorer/explorer-controller/ExplorerController.d.ts +11 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.d.ts +14 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.styles.d.ts +13 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.d.ts +12 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.styles.d.ts +13 -0
- package/dist/components/explorer/explorerCommands.d.ts +28 -0
- package/dist/components/explorer/explorerNavigation.d.ts +14 -0
- package/dist/components/explorer/explorerSearch.d.ts +71 -0
- package/dist/components/explorer/explorerTree.d.ts +90 -0
- package/dist/components/explorer/explorerView.d.ts +54 -0
- package/dist/components/{find-replace → explorer}/matchTarget.d.ts +5 -7
- package/dist/components/export-image/ExportImage.d.ts +23 -0
- package/dist/components/export-image/ExportImage.styles.d.ts +34 -0
- package/dist/components/export-image/exportImageActions.d.ts +48 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +8 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +17 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts +5 -0
- package/dist/components/generator-code/generatorCodeView.d.ts +12 -0
- package/dist/components/generator-code/languageSettings.d.ts +14 -0
- package/dist/components/locale-picker/LocalePicker.d.ts +13 -0
- package/dist/components/locale-picker/LocalePicker.styles.d.ts +19 -0
- package/dist/components/localeContext.d.ts +10 -0
- package/dist/components/localized/Localized.d.ts +18 -0
- package/dist/components/map-columns/MapColumnsBody.d.ts +24 -0
- package/dist/components/map-columns/MapColumnsDialog.d.ts +13 -0
- package/dist/components/map-columns/MapColumnsDialog.styles.d.ts +38 -0
- package/dist/components/map-columns/mapColumnsAction.d.ts +13 -0
- package/dist/components/map-columns/nameOf.d.ts +6 -0
- package/dist/components/map-columns/openMapColumns.d.ts +9 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +6 -1
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +10 -1
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +25 -0
- package/dist/components/primitives/color-picker/colorModel.d.ts +36 -0
- package/dist/components/primitives/color-picker/presetColors.d.ts +13 -0
- package/dist/components/primitives/color-picker/resolveColor.d.ts +7 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +4 -4
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts +8 -0
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.d.ts +2 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +2 -0
- package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.d.ts +5 -0
- package/dist/components/primitives/dialog/Dialog.d.ts +21 -0
- package/dist/components/primitives/dialog/Dialog.styles.d.ts +12 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +2 -5
- package/dist/components/primitives/icon/icons.d.ts +24 -3
- package/dist/components/primitives/sash/Sash.d.ts +1 -0
- package/dist/components/primitives/select/Select.d.ts +18 -0
- package/dist/components/primitives/select/Select.styles.d.ts +13 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +2 -0
- package/dist/components/primitives/toast/Toast.d.ts +5 -1
- package/dist/components/primitives/toast/Toast.styles.d.ts +2 -2
- package/dist/components/primitives/tree/Tree.d.ts +30 -0
- package/dist/components/primitives/tree/Tree.styles.d.ts +5 -0
- package/dist/components/primitives/tree/treeModel.d.ts +42 -0
- package/dist/components/quick-search/QuickSearch.d.ts +2 -1
- package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
- package/dist/components/quick-search/actions.d.ts +39 -7
- package/dist/components/quick-search/hangul.d.ts +16 -10
- package/dist/components/quick-search/paletteList.d.ts +7 -0
- package/dist/components/quick-search/paletteQuery.d.ts +5 -4
- package/dist/components/quick-search/scopedActions.d.ts +10 -15
- package/dist/components/schema-sql/SchemaSQL.d.ts +2 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +7 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.d.ts +29 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.d.ts +27 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +24 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +45 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.d.ts +20 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.d.ts +13 -0
- package/dist/components/schema-sql/schema-sql-options/dropWarning.d.ts +8 -0
- package/dist/components/schema-sql/schemaSQLView.d.ts +71 -0
- package/dist/components/settings/Settings.styles.d.ts +7 -0
- package/dist/components/settings/columnTypeLabels.d.ts +8 -0
- package/dist/components/settings/lockSettingRows.d.ts +16 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +3 -0
- package/dist/components/settings/settingsPage.d.ts +10 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +9 -1
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +7 -4
- package/dist/components/toast-container/openStatusToast.d.ts +29 -0
- package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +0 -1
- package/dist/components/visualization/graph-node/GraphNode.d.ts +2 -2
- package/dist/components/visualization/graphPan.d.ts +12 -0
- package/dist/components/visualization/visualizationView.d.ts +2 -2
- package/dist/constants/language.d.ts +1 -1
- package/dist/constants/layout.d.ts +41 -1
- package/dist/constants/open.d.ts +3 -1
- package/dist/constants/schema.d.ts +25 -4
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +2 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +3 -1
- package/dist/engine/actions.d.ts +20 -2
- package/dist/engine/context.d.ts +6 -0
- package/dist/engine/index.js +26 -21
- package/dist/engine/modules/editor/actions.d.ts +10 -2
- package/dist/engine/modules/editor/atom.actions.d.ts +49 -11
- package/dist/engine/modules/editor/generator.actions.d.ts +107 -8
- package/dist/engine/modules/editor/state.d.ts +16 -3
- package/dist/engine/modules/editor/utils/color.d.ts +21 -0
- package/dist/engine/modules/editor/utils/duplicate.d.ts +28 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +16 -0
- package/dist/engine/modules/editor/utils/releaseHidden.d.ts +16 -0
- package/dist/engine/modules/editor/utils/selection.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +6 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +57 -1
- package/dist/engine/modules/relationship/endFlags.d.ts +14 -0
- package/dist/engine/modules/relationship/fkColumns.d.ts +25 -6
- package/dist/engine/modules/relationship/history.d.ts +1 -0
- package/dist/engine/modules/relationship/hooks.d.ts +0 -11
- package/dist/engine/modules/relationship/referenceType.d.ts +12 -0
- package/dist/engine/modules/settings/actions.d.ts +17 -4
- package/dist/engine/modules/settings/atom.actions.d.ts +63 -19
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +1 -0
- package/dist/engine/modules/table/actions.d.ts +8 -0
- package/dist/engine/modules/table/atom.actions.d.ts +31 -0
- package/dist/engine/modules/table/generator.actions.d.ts +3 -3
- package/dist/engine/modules/table/history.d.ts +1 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +8 -0
- package/dist/engine/modules/table-column/hooks.d.ts +0 -6
- package/dist/engine/modules/table-column/keys.d.ts +14 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +19 -1
- package/dist/engine/modules/table-group/actions.d.ts +63 -0
- package/dist/engine/modules/table-group/atom.actions.d.ts +238 -0
- package/dist/engine/modules/table-group/generator.actions.d.ts +111 -0
- package/dist/engine/modules/table-group/history.d.ts +13 -0
- package/dist/engine/peer-store.d.ts +9 -3
- package/dist/engine/replication-store.d.ts +6 -3
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -1
- package/dist/engine/rx-operators/lockIgnoreFilter.d.ts +8 -0
- package/dist/engine/rx-store.d.ts +2 -0
- package/dist/engine/settle.d.ts +9 -0
- package/dist/engine/store-hooks.d.ts +0 -8
- package/dist/erd-editor.umd.js +2350 -4222
- package/dist/hooks/useNavigatorLanguages.d.ts +7 -0
- package/dist/i18n/locales.d.ts +126 -0
- package/dist/i18n/menuLabel.d.ts +12 -0
- package/dist/i18n/messages/ar-SA.d.ts +425 -0
- package/dist/i18n/messages/de-DE.d.ts +405 -0
- package/dist/i18n/messages/en/code.d.ts +16 -0
- package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
- package/dist/i18n/messages/en/common.d.ts +64 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
- package/dist/i18n/messages/en/explorer.d.ts +37 -0
- package/dist/i18n/messages/en/exportImage.d.ts +25 -0
- package/dist/i18n/messages/en/feedback.d.ts +11 -0
- package/dist/i18n/messages/en/findReplace.d.ts +40 -0
- package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
- package/dist/i18n/messages/en/index.d.ts +408 -0
- package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
- package/dist/i18n/messages/en/palette.d.ts +34 -0
- package/dist/i18n/messages/en/schemaSql.d.ts +28 -0
- package/dist/i18n/messages/en/settings.d.ts +22 -0
- package/dist/i18n/messages/en/shortcuts.d.ts +34 -0
- package/dist/i18n/messages/en/tableProperties.d.ts +34 -0
- package/dist/i18n/messages/en/themeBuilder.d.ts +7 -0
- package/dist/i18n/messages/en/toolbar.d.ts +8 -0
- package/dist/i18n/messages/en/visualization.d.ts +12 -0
- package/dist/i18n/messages/en/welcome.d.ts +13 -0
- package/dist/i18n/messages/es-ES.d.ts +410 -0
- package/dist/i18n/messages/eu-ES.d.ts +405 -0
- package/dist/i18n/messages/fa-IR.d.ts +405 -0
- package/dist/i18n/messages/fr-FR.d.ts +410 -0
- package/dist/i18n/messages/he-IL.d.ts +410 -0
- package/dist/i18n/messages/id-ID.d.ts +400 -0
- package/dist/i18n/messages/index.d.ts +11 -0
- package/dist/i18n/messages/it-IT.d.ts +410 -0
- package/dist/i18n/messages/ja-JP.d.ts +400 -0
- package/dist/i18n/messages/ko-KR.d.ts +400 -0
- package/dist/i18n/messages/nl-NL.d.ts +405 -0
- package/dist/i18n/messages/pl-PL.d.ts +415 -0
- package/dist/i18n/messages/pt-BR.d.ts +410 -0
- package/dist/i18n/messages/pt-PT.d.ts +410 -0
- package/dist/i18n/messages/ro-RO.d.ts +410 -0
- package/dist/i18n/messages/ru-RU.d.ts +415 -0
- package/dist/i18n/messages/sk-SK.d.ts +415 -0
- package/dist/i18n/messages/sl-SI.d.ts +415 -0
- package/dist/i18n/messages/sv-SE.d.ts +405 -0
- package/dist/i18n/messages/tr-TR.d.ts +405 -0
- package/dist/i18n/messages/uk-UA.d.ts +415 -0
- package/dist/i18n/messages/zh-CN.d.ts +400 -0
- package/dist/i18n/messages/zh-TW.d.ts +400 -0
- package/dist/i18n/resolveLocale.d.ts +11 -0
- package/dist/i18n/source.d.ts +7 -0
- package/dist/i18n/translate.d.ts +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31169 -12611
- package/dist/internal-types/index.d.ts +2 -4
- package/dist/konva/scene/contentBounds.d.ts +18 -12
- package/dist/konva/scene/metrics.d.ts +2 -0
- package/dist/konva/scene/renderScene.d.ts +10 -4
- package/dist/konva/scene/stacking.d.ts +21 -0
- package/dist/konva/scene/viewLayout.d.ts +2 -1
- package/dist/loadValue-BKvXDYoC.js +12925 -0
- package/dist/peer/index.d.ts +6 -3
- package/dist/peer/index.js +82 -75
- package/dist/services/elk-layout/elkGraph.d.ts +6 -4
- package/dist/services/elk-layout/elkLayoutOptions.d.ts +20 -0
- package/dist/services/elk-layout/elkLayoutService.d.ts +3 -3
- package/dist/services/export-png/ExportScene.d.ts +3 -3
- package/dist/services/export-png/documentScene.d.ts +14 -9
- package/dist/services/export-png/exportBox.d.ts +40 -5
- package/dist/services/export-png/exportPngService.d.ts +15 -0
- package/dist/services/export-png/exportTheme.d.ts +26 -0
- package/dist/services/export-png/index.d.ts +44 -11
- package/dist/services/export-png/renderPng.d.ts +18 -10
- package/dist/services/export-png/renderSvg.d.ts +22 -0
- package/dist/services/export-png/sceneSvg.d.ts +54 -0
- package/dist/services/shiki/graphqlGrammar.d.ts +8 -0
- package/dist/shared-store-2IUOt99m.js +1341 -0
- package/dist/styles/scrollbar.styles.d.ts +1 -1
- package/dist/themes/radix-ui-theme.d.ts +11 -3
- package/dist/themes/tokens.d.ts +18 -4
- package/dist/utils/calcTable.d.ts +9 -0
- package/dist/utils/clipboard.d.ts +9 -0
- package/dist/utils/collection/tableGroup.entity.d.ts +3 -0
- package/dist/utils/contrastText.d.ts +21 -0
- package/dist/utils/deepMerge.d.ts +8 -0
- package/dist/utils/device-detect/index.d.ts +2 -6
- package/dist/utils/diff/compareEntities.d.ts +39 -0
- package/dist/utils/diff/diffDocuments.d.ts +12 -0
- package/dist/utils/diff/index.d.ts +5 -0
- package/dist/utils/diff/pairEntities.d.ts +41 -0
- package/dist/utils/diff/types.d.ts +77 -0
- package/dist/utils/domEvent.d.ts +18 -0
- package/dist/utils/dragSelect.d.ts +2 -0
- package/dist/utils/draw-relationship/bezier.d.ts +2 -0
- package/dist/utils/draw-relationship/corner.d.ts +9 -0
- package/dist/utils/draw-relationship/index.d.ts +18 -18
- package/dist/utils/draw-relationship/loop.d.ts +29 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +1 -1
- package/dist/utils/draw-relationship/sort.d.ts +8 -1
- package/dist/utils/draw-relationship/stub.d.ts +4 -3
- package/dist/utils/emitter.d.ts +53 -12
- package/dist/utils/file/exportFile.d.ts +15 -5
- package/dist/utils/file/importFile.d.ts +9 -5
- package/dist/utils/file/importSchema.d.ts +45 -0
- package/dist/utils/find-replace/findMatches.d.ts +25 -12
- package/dist/utils/find-replace/matcher.d.ts +2 -0
- package/dist/utils/find-replace/present.d.ts +8 -5
- package/dist/utils/find-replace/preserveCase.d.ts +10 -0
- package/dist/utils/generator-code/columnTypes.d.ts +99 -0
- package/dist/utils/generator-code/doctrine.d.ts +6 -0
- package/dist/utils/generator-code/doctrineReservedWords.d.ts +7 -0
- package/dist/utils/generator-code/graphql.d.ts +6 -0
- package/dist/utils/generator-code/heck.d.ts +5 -0
- package/dist/utils/generator-code/java.d.ts +28 -0
- package/dist/utils/generator-code/jsonSchema.d.ts +50 -0
- package/dist/utils/generator-code/jsonShape.d.ts +37 -0
- package/dist/utils/generator-code/kotlin.d.ts +1 -0
- package/dist/utils/generator-code/mermaid.d.ts +5 -0
- package/dist/utils/generator-code/php.d.ts +28 -0
- package/dist/utils/generator-code/rust.d.ts +13 -0
- package/dist/utils/generator-code/rustTypes.d.ts +44 -0
- package/dist/utils/generator-code/scala.d.ts +1 -0
- package/dist/utils/generator-code/seaorm.d.ts +22 -0
- package/dist/utils/generator-code/swift.d.ts +44 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/generator-code/zod.d.ts +25 -0
- package/dist/utils/globalEventObservable.d.ts +10 -1
- package/dist/utils/highlightWords.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/keyboard-shortcut/bindKeys.d.ts +9 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +19 -4
- package/dist/utils/keyboard-shortcut/utils.d.ts +21 -0
- package/dist/utils/map-columns/alignTypes.d.ts +37 -0
- package/dist/utils/map-columns/buildRows.d.ts +102 -0
- package/dist/utils/map-columns/candidateKeys.d.ts +24 -0
- package/dist/utils/map-columns/index.d.ts +8 -0
- package/dist/utils/map-columns/mapping.d.ts +67 -0
- package/dist/utils/map-columns/prefill.d.ts +26 -0
- package/dist/utils/map-columns/toMapColumnsActions.d.ts +10 -0
- package/dist/utils/map-columns/validate.d.ts +45 -0
- package/dist/utils/memo.d.ts +4 -0
- package/dist/utils/schema-aml-parser/types.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/tokenizer.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/types.d.ts +11 -0
- package/dist/utils/schema-sql/Databricks.d.ts +8 -3
- package/dist/utils/schema-sql/MSSQL.d.ts +14 -2
- package/dist/utils/schema-sql/MariaDB.d.ts +6 -5
- package/dist/utils/schema-sql/MySQL.d.ts +13 -4
- package/dist/utils/schema-sql/Oracle.d.ts +19 -5
- package/dist/utils/schema-sql/PostgreSQL.d.ts +16 -4
- package/dist/utils/schema-sql/SQLite.d.ts +16 -4
- package/dist/utils/schema-sql/Snowflake.d.ts +8 -3
- package/dist/utils/schema-sql/index.d.ts +16 -1
- package/dist/utils/schema-sql/options.d.ts +57 -0
- package/dist/utils/schema-sql/utils.d.ts +101 -2
- package/dist/utils/stageCursor.d.ts +20 -0
- package/dist/utils/table-clipboard/placement.d.ts +2 -0
- package/dist/utils/tableColor.d.ts +29 -0
- package/dist/utils/tableGroup.d.ts +142 -0
- package/dist/utils/tableKeys.d.ts +11 -3
- package/dist/utils/takeover.d.ts +6 -0
- package/dist/utils/virtualRange.d.ts +15 -0
- package/dist/workers/elkLayout.shared-worker.js +1 -1
- package/dist/workers/exportPng.shared-worker.js +30 -30
- package/dist/workers/shiki.shared-worker.js +1 -1
- package/dist/workers/spawn.d.ts +1 -2
- package/dist/workers/spawn.inline.d.ts +0 -1
- package/package.json +4 -11
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +0 -12
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +0 -6
- package/dist/components/find-replace/FindReplace.d.ts +0 -13
- package/dist/components/find-replace/FindReplace.styles.d.ts +0 -27
- package/dist/components/find-replace/panelLayout.d.ts +0 -17
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +0 -2
- package/dist/loadValue-Mdc5K4qO.js +0 -10858
- package/dist/schemaGCService-CZtGFh2z.js +0 -42
- package/dist/services/schema-gc/index.d.ts +0 -18
- package/dist/services/schema-gc/procGC.d.ts +0 -4
- package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +0 -2
- package/dist/services/schema-gc/schemaGCService.d.ts +0 -10
- package/dist/shared-store-D82WVL5a.js +0 -1129
- package/dist/styles/colorPicker.style.d.ts +0 -7
- package/dist/utils/draw-relationship/chamfer.d.ts +0 -3
- package/dist/workers/schemaGC.shared-worker.js +0 -1
- /package/dist/components/{find-replace → explorer}/fieldIcon.d.ts +0 -0
|
@@ -5,22 +5,20 @@ import { RootState } from '../../engine/state';
|
|
|
5
5
|
import { FindMatch } from '../../utils/find-replace';
|
|
6
6
|
/**
|
|
7
7
|
* Where on the ERD canvas the text of a match is edited: its table, its column
|
|
8
|
-
* cell or its
|
|
9
|
-
* canvas is scrolled to by.
|
|
8
|
+
* cell, its memo or its table group, with the match itself, which a cell too
|
|
9
|
+
* wide for the canvas is scrolled to by. An index goes to the table it is on.
|
|
10
10
|
*/
|
|
11
11
|
export declare function toErdTarget(match: FindMatch): ErdTarget;
|
|
12
12
|
/**
|
|
13
13
|
* The state as a jump measures it once a replacement is in: the field holding
|
|
14
|
-
* the new text at the width its reducer gives it. A memo
|
|
15
|
-
*
|
|
14
|
+
* the new text at the width its reducer gives it. A memo, an index or a group
|
|
15
|
+
* name sizes no table, and one the document no longer holds is left as it is.
|
|
16
16
|
*/
|
|
17
17
|
export declare function withReplacement(state: RootState, { toWidth }: EngineContext, { field, id, tableId }: FindMatch, value: string): RootState;
|
|
18
18
|
/**
|
|
19
19
|
* The jump Replace makes to the next match, in the replacement's own dispatch.
|
|
20
20
|
* A batch is read against the state before it, so the jump measures the table
|
|
21
21
|
* the replacement widens or narrows from what the replacement writes.
|
|
22
|
-
*
|
|
23
|
-
* @param covered How far in from the left edge the panel hides the canvas.
|
|
24
22
|
*/
|
|
25
|
-
export declare const showNextMatchAction$: (next: FindMatch, replaced: FindMatch, value: string
|
|
23
|
+
export declare const showNextMatchAction$: (next: FindMatch, replaced: FindMatch, value: string) => GeneratorAction;
|
|
26
24
|
//# sourceMappingURL=matchTarget.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { ThemeOptions } from '../../themes/radix-ui-theme';
|
|
3
|
+
export type ExportImageProps = {
|
|
4
|
+
/** The gray and accent the editor's preset is built from. */
|
|
5
|
+
themeOptions: ThemeOptions;
|
|
6
|
+
/** Whether the editor shows its dark appearance now. */
|
|
7
|
+
isDarkMode: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** Image pixels per scene unit, the factor the size is multiplied by. */
|
|
10
|
+
export declare const EXPORT_SCALES: readonly [1, 2, 3];
|
|
11
|
+
export type ExportScale = (typeof EXPORT_SCALES)[number];
|
|
12
|
+
/** The longest side a preview is drawn at, about twice the box it is shown in. */
|
|
13
|
+
export declare const PREVIEW_MAX_SIDE = 1280;
|
|
14
|
+
/** How long the toggles rest before the preview is drawn again. */
|
|
15
|
+
export declare const PREVIEW_DEBOUNCE_MS = 200;
|
|
16
|
+
/**
|
|
17
|
+
* The export image dialog: a preview, the options, the buttons that write a png
|
|
18
|
+
* or an svg or copy a png, and a close button. The options last for the
|
|
19
|
+
* element's life, and an export leaves the dialog open, its outcome in a toast.
|
|
20
|
+
*/
|
|
21
|
+
declare const ExportImage: FC<ExportImageProps>;
|
|
22
|
+
export default ExportImage;
|
|
23
|
+
//# sourceMappingURL=ExportImage.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The preview beside the options, or above them once the editor is narrow,
|
|
3
|
+
* kept at its own height so a short editor scrolls the box rather than cut it.
|
|
4
|
+
* The title row heads the options, and the whole box once the preview stacks.
|
|
5
|
+
*/
|
|
6
|
+
export declare const layout: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
/**
|
|
8
|
+
* A checkerboard under the image, so a background left out reads as left out.
|
|
9
|
+
* The image is fitted inside a fixed inset whatever its proportions.
|
|
10
|
+
*/
|
|
11
|
+
export declare const preview: import('@dineug/r-html').CSSTemplateLiterals;
|
|
12
|
+
export declare const image: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
export declare const loading: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
export declare const panel: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
|
+
/**
|
|
16
|
+
* The title and the close button, over the options while the preview is beside
|
|
17
|
+
* them and over the preview once it stacks, so the button keeps the box's top
|
|
18
|
+
* corner on the side the title row ends at, either way.
|
|
19
|
+
*/
|
|
20
|
+
export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
|
|
21
|
+
export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
|
|
22
|
+
/**
|
|
23
|
+
* A 26px square tool tinted under the pointer, as Table Properties and Find and
|
|
24
|
+
* Replace close. Tab brings its whole focus ring into a box scrolled down.
|
|
25
|
+
*/
|
|
26
|
+
export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
|
|
27
|
+
export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
|
|
28
|
+
export declare const scales: import('@dineug/r-html').CSSTemplateLiterals;
|
|
29
|
+
export declare const scale: import('@dineug/r-html').CSSTemplateLiterals;
|
|
30
|
+
export declare const size: import('@dineug/r-html').CSSTemplateLiterals;
|
|
31
|
+
export declare const warning: import('@dineug/r-html').CSSTemplateLiterals;
|
|
32
|
+
export declare const actions: import('@dineug/r-html').CSSTemplateLiterals;
|
|
33
|
+
export declare const action: import('@dineug/r-html').CSSTemplateLiterals;
|
|
34
|
+
//# sourceMappingURL=ExportImage.styles.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
|
+
import { AppContext } from '../appContext';
|
|
3
|
+
import { DocumentPngOptions, ResolutionReduction } from '../../services/export-png';
|
|
4
|
+
/** What an image is drawn from; each action hooks up the reporters itself. */
|
|
5
|
+
export type ImageRequest = Omit<DocumentPngOptions, 'onResolutionReduced' | 'onProgress'>;
|
|
6
|
+
/** What an svg is drawn from: the request less the scale, which a vector has no use for. */
|
|
7
|
+
export type SvgRequest = Omit<ImageRequest, 'pixelRatio'>;
|
|
8
|
+
type AskedPixels = Pick<ResolutionReduction, 'askedWidth' | 'askedHeight'>;
|
|
9
|
+
/**
|
|
10
|
+
* The dialog's warning before any file exists: the pixels the scale asks for,
|
|
11
|
+
* which a canvas ceiling cuts. The toast after it opens alike.
|
|
12
|
+
*/
|
|
13
|
+
export declare function describeAskedSize({ askedWidth, askedHeight }: AskedPixels): DOMTemplateLiterals;
|
|
14
|
+
/**
|
|
15
|
+
* Says what was lost and why, in the pixels the dialog warned of: what the
|
|
16
|
+
* scale asked for, then what was written. A box that fits at 1x can still
|
|
17
|
+
* outrun a canvas at 2x, so the document's own size explains nothing.
|
|
18
|
+
*/
|
|
19
|
+
export declare function describeReduction({ askedWidth, askedHeight, width, height, }: ResolutionReduction): DOMTemplateLiterals;
|
|
20
|
+
/**
|
|
21
|
+
* Draws the document into a png file, saying so while it draws and reporting
|
|
22
|
+
* afterwards. The two messages are sequenced rather than stacked, so what
|
|
23
|
+
* became of the file replaces the message about making it.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await exportImagePng(app, { doc, theme, toWidth, pixelRatio: 2 }, databaseName);
|
|
27
|
+
*/
|
|
28
|
+
export declare function exportImagePng({ emitter }: AppContext, request: ImageRequest, databaseName: string): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Draws the document into an svg file at 100%, the scale left out, saying so
|
|
31
|
+
* while it draws. An svg holds no canvas, so nothing is ever reduced, and only
|
|
32
|
+
* a failure is reported once the file is done.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await exportImageSvg(app, { doc, theme, toWidth, i18n }, databaseName);
|
|
36
|
+
*/
|
|
37
|
+
export declare function exportImageSvg({ emitter }: AppContext, { doc, theme, toWidth, i18n }: SvgRequest, databaseName: string): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Puts the document on the clipboard as a png. The clipboard write starts in
|
|
40
|
+
* the click that called this, before any await, so call it from the handler
|
|
41
|
+
* itself; a host that refuses is told to save a PNG instead.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* copyImagePng(app, { doc, theme, toWidth, pixelRatio: 2 });
|
|
45
|
+
*/
|
|
46
|
+
export declare function copyImagePng({ emitter }: AppContext, request: ImageRequest): Promise<void>;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=exportImageActions.d.ts.map
|
package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
2
|
export type GeneratorCodeContextMenuProps = {
|
|
3
|
+
/** The whole document's tab, which adds the panel and Save file to the menu. */
|
|
4
|
+
full?: boolean;
|
|
5
|
+
onSave?: () => void;
|
|
3
6
|
onClose: () => void;
|
|
4
7
|
};
|
|
5
8
|
declare const GeneratorCodeContextMenu: FC<GeneratorCodeContextMenuProps>;
|
package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AppContext } from '../../../appContext';
|
|
2
|
+
import { PlainMessageKey } from '../../../../i18n/translate';
|
|
2
3
|
type Menu = {
|
|
3
4
|
name: string;
|
|
5
|
+
labelKey?: PlainMessageKey;
|
|
4
6
|
value: number;
|
|
5
7
|
};
|
|
6
8
|
export declare const menus: Menu[];
|
|
7
9
|
export declare function createColumnNameCaseMenus({ store }: AppContext): {
|
|
8
10
|
checked: boolean;
|
|
9
11
|
name: string;
|
|
12
|
+
labelKey: PlainMessageKey | undefined;
|
|
10
13
|
onClick: () => void;
|
|
11
14
|
}[];
|
|
12
15
|
export {};
|
|
@@ -3,10 +3,18 @@ type Menu = {
|
|
|
3
3
|
name: string;
|
|
4
4
|
value: number;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* The menu's three groups, a rule between each two, every group ascending by
|
|
8
|
+
* name ignoring case: the languages, the ORMs, and the schemas, which hold the
|
|
9
|
+
* tables written in another schema language or library.
|
|
10
|
+
*/
|
|
11
|
+
export declare const menuGroups: ReadonlyArray<ReadonlyArray<Menu>>;
|
|
12
|
+
/** Every language in menu order, with no rule, which the palette and the Settings lock row read. */
|
|
6
13
|
export declare const menus: Menu[];
|
|
7
14
|
export declare function createLanguageMenus({ store }: AppContext): {
|
|
8
15
|
checked: boolean;
|
|
9
16
|
name: string;
|
|
17
|
+
separated: boolean;
|
|
10
18
|
onClick: () => void;
|
|
11
19
|
}[];
|
|
12
20
|
export {};
|
package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AppContext } from '../../../appContext';
|
|
2
|
+
import { PlainMessageKey } from '../../../../i18n/translate';
|
|
2
3
|
type Menu = {
|
|
3
4
|
name: string;
|
|
5
|
+
labelKey?: PlainMessageKey;
|
|
4
6
|
value: number;
|
|
5
7
|
};
|
|
6
8
|
export declare const menus: Menu[];
|
|
7
9
|
export declare function createTableNameCaseMenus({ store }: AppContext): {
|
|
8
10
|
checked: boolean;
|
|
9
11
|
name: string;
|
|
12
|
+
labelKey: PlainMessageKey | undefined;
|
|
10
13
|
onClick: () => void;
|
|
11
14
|
}[];
|
|
12
15
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
/** The panel's id, which the button folding it away controls. */
|
|
3
|
+
export declare const GENERATOR_CODE_OPTIONS_ID = "generator-code-options";
|
|
4
|
+
export type GeneratorCodeOptionsProps = {
|
|
5
|
+
isDarkMode: boolean;
|
|
6
|
+
onHide: () => void;
|
|
7
|
+
onSave: () => void;
|
|
8
|
+
onCopy: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The options beside the generated code: the settings the document saves that
|
|
12
|
+
* change it, each dimmed while the language ignores it, then the buttons that
|
|
13
|
+
* save and copy the text.
|
|
14
|
+
*/
|
|
15
|
+
declare const GeneratorCodeOptions: FC<GeneratorCodeOptionsProps>;
|
|
16
|
+
export default GeneratorCodeOptions;
|
|
17
|
+
//# sourceMappingURL=GeneratorCodeOptions.d.ts.map
|
package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** A setting's name over its list, broken anywhere sooner than past the panel. */
|
|
2
|
+
export declare const name: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
/** A setting the language ignores: its name dimmed, as its list dims its value, still to be changed. */
|
|
4
|
+
export declare const unused: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
//# sourceMappingURL=GeneratorCodeOptions.styles.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContext } from '../appContext';
|
|
2
|
+
import { PanelView } from '../schema-sql/schemaSQLView';
|
|
3
|
+
/** Whether the Code Generator's options panel shows, apart from the Schema SQL tab's. */
|
|
4
|
+
export type GeneratorCodeView = PanelView;
|
|
5
|
+
/**
|
|
6
|
+
* The window's own Code Generator state: never in the store, the file or a
|
|
7
|
+
* change event, kept across tab switches until the element goes, one per editor.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generatorCodeViewOf({ store, }: Pick<AppContext, 'store'>): GeneratorCodeView;
|
|
10
|
+
/** Folds the Code Generator panel away or opens it; one not measured yet opens. */
|
|
11
|
+
export declare function toggleGeneratorCodePanel(app: Pick<AppContext, 'store'>): void;
|
|
12
|
+
//# sourceMappingURL=generatorCodeView.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The extension each language's code is saved under. Java and JPA save their
|
|
3
|
+
* classes in one .java file as is, which works as a paste (an owner decision).
|
|
4
|
+
*/
|
|
5
|
+
export declare const LanguageToExtensionMap: Readonly<Record<number, string>>;
|
|
6
|
+
/** The extension a language's code saves under, .txt for a language this editor does not know. */
|
|
7
|
+
export declare const codeFileExtension: (language: number) => string;
|
|
8
|
+
/** Whether a language's code follows the database. */
|
|
9
|
+
export declare const readsDatabase: (language: number) => boolean;
|
|
10
|
+
/** Whether a language's code follows the table and column name cases, which go together. */
|
|
11
|
+
export declare const readsNameCases: (language: number) => boolean;
|
|
12
|
+
/** Whether the panel, the context menu and the palette offer a language the bracket type. */
|
|
13
|
+
export declare const readsBracket: (language: number) => boolean;
|
|
14
|
+
//# sourceMappingURL=languageSettings.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { LocaleCode, LocaleOption } from '../../i18n/locales';
|
|
3
|
+
export type LocalePickerProps = {
|
|
4
|
+
/** The option in force, which the panel checks. */
|
|
5
|
+
option: LocaleOption;
|
|
6
|
+
/** The language System stands for now, named beside it. */
|
|
7
|
+
systemLocale: LocaleCode;
|
|
8
|
+
};
|
|
9
|
+
/** The row a key moves to from the one at index, round either end; null for any other key. */
|
|
10
|
+
export declare function stepOption(index: number, length: number, key: string): number | null;
|
|
11
|
+
declare const LocalePicker: FC<LocalePickerProps>;
|
|
12
|
+
export default LocalePicker;
|
|
13
|
+
//# sourceMappingURL=LocalePicker.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hung where the theme builder hangs, on the reading side of the editor, and
|
|
3
|
+
* never taller than the editor below the toolbar: the list scrolls instead.
|
|
4
|
+
*/
|
|
5
|
+
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
6
|
+
export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
|
+
/**
|
|
9
|
+
* A 26px square tool tinted under the pointer, as the editor's other panels
|
|
10
|
+
* close; the panel's own keys keep Space and Enter from the canvas.
|
|
11
|
+
*/
|
|
12
|
+
export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
export declare const list: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
export declare const pinned: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
|
+
export declare const option: import('@dineug/r-html').CSSTemplateLiterals;
|
|
16
|
+
export declare const check: import('@dineug/r-html').CSSTemplateLiterals;
|
|
17
|
+
export declare const label: import('@dineug/r-html').CSSTemplateLiterals;
|
|
18
|
+
export declare const hint: import('@dineug/r-html').CSSTemplateLiterals;
|
|
19
|
+
//# sourceMappingURL=LocalePicker.styles.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I18n } from '../i18n/translate';
|
|
2
|
+
import { Ctx } from '../internal-types';
|
|
3
|
+
/**
|
|
4
|
+
* The language the editor's own text is shown in. The element provides one it
|
|
5
|
+
* changes in place, never through the provider, so a component mounted after a
|
|
6
|
+
* switch reads the new language; where nothing provides one, English.
|
|
7
|
+
*/
|
|
8
|
+
export declare const localeContext: import('@dineug/r-html').Context<I18n>;
|
|
9
|
+
export declare const useI18n: (ctx: Ctx) => import('@dineug/r-html').Ref<I18n>;
|
|
10
|
+
//# sourceMappingURL=localeContext.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
import { MessageArgs, MessageKey, MessageValues } from '../../i18n/translate';
|
|
3
|
+
export type LocalizedProps = {
|
|
4
|
+
messageKey: MessageKey;
|
|
5
|
+
params?: MessageValues;
|
|
6
|
+
};
|
|
7
|
+
/** A key read in the language of the element it renders in, which a switch re-renders. */
|
|
8
|
+
declare const Localized: FC<LocalizedProps>;
|
|
9
|
+
export default Localized;
|
|
10
|
+
/**
|
|
11
|
+
* A message as a template, for code outside a component that hands one on, a
|
|
12
|
+
* toast's text say: it is read where it renders, so it follows a switch too.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* openToastAction({ message: <Toast title={localized('common.toast.copied')} /> });
|
|
16
|
+
*/
|
|
17
|
+
export declare function localized<K extends MessageKey>(key: K, ...args: MessageArgs<K>): DOMTemplateLiterals;
|
|
18
|
+
//# sourceMappingURL=Localized.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { ColumnPick, MapColumnsView } from '../../utils/map-columns';
|
|
3
|
+
export type MapColumnsBodyProps = {
|
|
4
|
+
mode: 'create' | 'edit';
|
|
5
|
+
view: MapColumnsView;
|
|
6
|
+
/** Whether the editor is too narrow for the two columns side by side. */
|
|
7
|
+
stacked: boolean;
|
|
8
|
+
isDarkMode: boolean;
|
|
9
|
+
onKeyChange: (keyId: string) => void;
|
|
10
|
+
onPick: (parentColumnId: string, pick: ColumnPick | null) => void;
|
|
11
|
+
onCancel: () => void;
|
|
12
|
+
onConfirm: () => void;
|
|
13
|
+
};
|
|
14
|
+
/** A pick as an option's value, which a column id never collides with. */
|
|
15
|
+
export declare function toOptionValue(pick: ColumnPick | null): string;
|
|
16
|
+
export declare function toPick(value: string): ColumnPick | null;
|
|
17
|
+
/**
|
|
18
|
+
* The body of Map Columns: the parent's key, a row per key column with a list
|
|
19
|
+
* of the child's columns, one line saying what stands in the way, and Cancel
|
|
20
|
+
* beside the button that writes the mapping.
|
|
21
|
+
*/
|
|
22
|
+
declare const MapColumnsBody: FC<MapColumnsBodyProps>;
|
|
23
|
+
export default MapColumnsBody;
|
|
24
|
+
//# sourceMappingURL=MapColumnsBody.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
export type MapColumnsDialogProps = {
|
|
3
|
+
readonly: boolean;
|
|
4
|
+
isDarkMode: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Maps a parent's key onto the child's columns, for a relationship drawn or
|
|
8
|
+
* held. Built from the document on every render, it shows a peer's change at
|
|
9
|
+
* once and closes on its own once what it maps between is gone.
|
|
10
|
+
*/
|
|
11
|
+
declare const MapColumnsDialog: FC<MapColumnsDialogProps>;
|
|
12
|
+
export default MapColumnsDialog;
|
|
13
|
+
//# sourceMappingURL=MapColumnsDialog.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dialog's one column, its native lists drawn in the editor's appearance
|
|
3
|
+
* through color-scheme, which they inherit, and ringed 2px off as its buttons
|
|
4
|
+
* are, the doubled class outweighing the list box's own ring.
|
|
5
|
+
*/
|
|
6
|
+
export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
|
+
export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
|
+
/**
|
|
10
|
+
* A 26px square tool tinted under the pointer, as Export image and Table
|
|
11
|
+
* Properties close. Tab brings its whole focus ring into a box scrolled down.
|
|
12
|
+
*/
|
|
13
|
+
export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
export declare const subtitle: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
|
+
/** A list as wide as its cell, narrowing with the box. */
|
|
16
|
+
export declare const select: import('@dineug/r-html').CSSTemplateLiterals;
|
|
17
|
+
export declare const references: import('@dineug/r-html').CSSTemplateLiterals;
|
|
18
|
+
/**
|
|
19
|
+
* The parent column, an arrow to its list and the note under the list; side by
|
|
20
|
+
* side unless stacked, where the parent takes a line over the arrow and list.
|
|
21
|
+
*/
|
|
22
|
+
export declare const grid: import('@dineug/r-html').CSSTemplateLiterals;
|
|
23
|
+
export declare const heading: import('@dineug/r-html').CSSTemplateLiterals;
|
|
24
|
+
export declare const headingIcon: import('@dineug/r-html').CSSTemplateLiterals;
|
|
25
|
+
export declare const tableName: import('@dineug/r-html').CSSTemplateLiterals;
|
|
26
|
+
export declare const role: import('@dineug/r-html').CSSTemplateLiterals;
|
|
27
|
+
export declare const arrow: import('@dineug/r-html').CSSTemplateLiterals;
|
|
28
|
+
export declare const parent: import('@dineug/r-html').CSSTemplateLiterals;
|
|
29
|
+
export declare const dim: import('@dineug/r-html').CSSTemplateLiterals;
|
|
30
|
+
export declare const dataType: import('@dineug/r-html').CSSTemplateLiterals;
|
|
31
|
+
/**
|
|
32
|
+
* A line under the list it is about, whose child column the mapping changes
|
|
33
|
+
* or leaves of another type, marked so it reads as more than a hint.
|
|
34
|
+
*/
|
|
35
|
+
export declare const note: import('@dineug/r-html').CSSTemplateLiterals;
|
|
36
|
+
export declare const message: import('@dineug/r-html').CSSTemplateLiterals;
|
|
37
|
+
export declare const actions: import('@dineug/r-html').CSSTemplateLiterals;
|
|
38
|
+
//# sourceMappingURL=MapColumnsDialog.styles.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GeneratorAction } from '../../engine/generator.actions';
|
|
2
|
+
import { MapColumnsDraft } from '../../utils/map-columns';
|
|
3
|
+
export type MapColumnsActionOptions = {
|
|
4
|
+
/** Called once, during the dispatch, when the diagram no longer takes the mapping. */
|
|
5
|
+
onRefuse: () => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Writes the mapping the dialog confirmed in one batch, judged by the state it
|
|
9
|
+
* lands on: a result the diagram already holds writes nothing and says nothing,
|
|
10
|
+
* while a table or relationship gone, or any issue, refuses it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const mapColumnsAction$: (draft: MapColumnsDraft, { onRefuse }: MapColumnsActionOptions) => GeneratorAction;
|
|
13
|
+
//# sourceMappingURL=mapColumnsAction.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { I18n } from '../../i18n/translate';
|
|
2
|
+
/** A table's or column's name as Map Columns and the draw-target buttons write it, unnamed where it has none. */
|
|
3
|
+
export declare const nameOf: (entity: {
|
|
4
|
+
name: string;
|
|
5
|
+
} | undefined, { t }: Pick<I18n, "t">) => string;
|
|
6
|
+
//# sourceMappingURL=nameOf.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppContext } from '../appContext';
|
|
2
|
+
import { MapColumnsOpening } from '../../utils/emitter';
|
|
3
|
+
/**
|
|
4
|
+
* Opens Map Columns on what the opening names: the dialog takes its session
|
|
5
|
+
* from the emitter, then the open map shows it, so it never shows the session
|
|
6
|
+
* of an earlier opening.
|
|
7
|
+
*/
|
|
8
|
+
export declare function openMapColumns({ store, emitter }: Pick<AppContext, 'store' | 'emitter'>, opening: MapColumnsOpening): void;
|
|
9
|
+
//# sourceMappingURL=openMapColumns.d.ts.map
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { FC } from '@dineug/r-html';
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
2
|
import { Lang } from '../../../constants/language';
|
|
3
3
|
export type CodeBlockProps = {
|
|
4
4
|
value: string;
|
|
5
5
|
lang: Lang;
|
|
6
6
|
theme?: 'dark' | 'light';
|
|
7
7
|
onCopy?: (value: string) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Buttons after the copy button in the top corner, shown with or without a
|
|
10
|
+
* hover; --code-block-background there holds the colour the code sits on.
|
|
11
|
+
*/
|
|
12
|
+
tools?: DOMTemplateLiterals | null;
|
|
8
13
|
};
|
|
9
14
|
declare const CodeBlock: FC<CodeBlockProps>;
|
|
10
15
|
export default CodeBlock;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** The top corner the copy button and any tools stand in, over the code. */
|
|
2
|
+
export declare const tools: import('@dineug/r-html').CSSTemplateLiterals;
|
|
1
3
|
export declare const clipboard: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
4
|
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
5
|
/** Out of flow, the root loses its content height and collapses to min-height. */
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
2
|
import { Viewport } from '../../../engine/modules/editor/state';
|
|
3
|
+
import { KeyBindingMap } from '../../../utils/keyboard-shortcut';
|
|
3
4
|
export type ColorPickerProps = {
|
|
4
5
|
x: number;
|
|
5
6
|
y: number;
|
|
7
|
+
/** The color it opens on, in any form a document holds; an empty or unreadable one shows no value. */
|
|
6
8
|
color: string;
|
|
7
9
|
viewport?: Viewport | null;
|
|
10
|
+
/** The editor's live bindings, which decide what a press inside keeps from the editor. */
|
|
11
|
+
keyBindingMap: KeyBindingMap;
|
|
12
|
+
/** Opaque #rrggbb colors the document already uses, most used first. */
|
|
13
|
+
documentColors?: ReadonlyArray<string>;
|
|
8
14
|
onChange?: (color: string) => void;
|
|
9
|
-
|
|
15
|
+
/** Shows a No color row at the foot of the panel, which calls this when pressed. */
|
|
16
|
+
onClear?: () => void;
|
|
17
|
+
/** Called on Escape; the parent closes the picker. */
|
|
18
|
+
onClose?: () => void;
|
|
10
19
|
};
|
|
11
20
|
declare const ColorPicker: FC<ColorPickerProps>;
|
|
12
21
|
export default ColorPicker;
|
|
@@ -1,2 +1,27 @@
|
|
|
1
1
|
export declare const container: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
|
+
/** Stacks over the floating toolbar, z-index 1, as the context menu does. */
|
|
3
|
+
export declare const panel: import('@dineug/r-html').CSSTemplateLiterals;
|
|
4
|
+
export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
export declare const area: import('@dineug/r-html').CSSTemplateLiterals;
|
|
6
|
+
/** White ringed in black reads on any color under it, so it ignores the theme. */
|
|
7
|
+
export declare const areaThumb: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
|
+
export declare const controls: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
|
+
export declare const iconButton: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
|
+
/** The bar is 10px tall; its ::before takes a press anywhere in the 24px row. */
|
|
11
|
+
export declare const hue: import('@dineug/r-html').CSSTemplateLiterals;
|
|
12
|
+
export declare const hueThumb: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
export declare const preview: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
export declare const fields: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
|
+
/** One of R, G and B; Hex takes hexField, never both, as two sheets would race. */
|
|
16
|
+
export declare const field: import('@dineug/r-html').CSSTemplateLiterals;
|
|
17
|
+
export declare const hexField: import('@dineug/r-html').CSSTemplateLiterals;
|
|
18
|
+
/** A real border, which forced colors keeps where it drops a box shadow. */
|
|
19
|
+
export declare const input: import('@dineug/r-html').CSSTemplateLiterals;
|
|
20
|
+
export declare const fieldLabel: import('@dineug/r-html').CSSTemplateLiterals;
|
|
21
|
+
export declare const swatchArea: import('@dineug/r-html').CSSTemplateLiterals;
|
|
22
|
+
/** Eight 16px columns and seven 10px gaps fill the 198px inside the panel exactly. */
|
|
23
|
+
export declare const swatches: import('@dineug/r-html').CSSTemplateLiterals;
|
|
24
|
+
export declare const caption: import('@dineug/r-html').CSSTemplateLiterals;
|
|
25
|
+
export declare const swatch: import('@dineug/r-html').CSSTemplateLiterals;
|
|
26
|
+
export declare const clear: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
27
|
//# sourceMappingURL=ColorPicker.styles.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Hue in degrees 0 to 360, saturation and value 0 to 1, kept unrounded. */
|
|
2
|
+
export type Hsv = {
|
|
3
|
+
h: number;
|
|
4
|
+
s: number;
|
|
5
|
+
v: number;
|
|
6
|
+
};
|
|
7
|
+
export type Rgb = [number, number, number];
|
|
8
|
+
/** The channels of a color, rounded to whole 0 to 255 values; a hue of 360 is red again. */
|
|
9
|
+
export declare function hsvToRgb({ h, s, v }: Hsv): Rgb;
|
|
10
|
+
/**
|
|
11
|
+
* A color's hue, saturation and value, kept from the one before where the
|
|
12
|
+
* channels hold none: a gray keeps the hue it had, and black keeps both.
|
|
13
|
+
*/
|
|
14
|
+
export declare function rgbToHsv([r, g, b]: Rgb, previous: Hsv): Hsv;
|
|
15
|
+
/** A color as the lower-case #rrggbb it is handed on as. */
|
|
16
|
+
export declare function hsvToHex(hsv: Hsv): string;
|
|
17
|
+
/** A #rrggbb as hue, saturation and value, keeping what it lacks from the one before. */
|
|
18
|
+
export declare function hexToHsv(hex: string, previous: Hsv): Hsv;
|
|
19
|
+
/**
|
|
20
|
+
* What the Hex field reads as a color: digits with or without the mark, 3, 4,
|
|
21
|
+
* 6 or 8 of them, or a pasted rgb() or hsl(), any alpha dropped; else null.
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseHexInput(text: string): string | null;
|
|
24
|
+
/** Whether the Hex field holds a whole color already, which it applies while typed. */
|
|
25
|
+
export declare function isCompleteHexInput(text: string): boolean;
|
|
26
|
+
/** A channel field's whole number, 255 at most; null for anything else. */
|
|
27
|
+
export declare function parseChannelInput(text: string): number | null;
|
|
28
|
+
/**
|
|
29
|
+
* Where a key moves the saturation and brightness area, from the whole
|
|
30
|
+
* percent nearest: left and right move saturation, the rest brightness, Home
|
|
31
|
+
* and End take saturation to either end; null for a key it does not take.
|
|
32
|
+
*/
|
|
33
|
+
export declare function stepArea(hsv: Hsv, key: string, coarse: boolean): Hsv | null;
|
|
34
|
+
/** Where a key moves the hue, from the whole degree nearest, held to 0 to 360; null for a key it does not take. */
|
|
35
|
+
export declare function stepHue(h: number, key: string, coarse: boolean): number | null;
|
|
36
|
+
//# sourceMappingURL=colorModel.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PlainMessageKey } from '../../../i18n/translate';
|
|
2
|
+
export type ColorSwatch = {
|
|
3
|
+
color: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
/** A preset swatch, named by the key of its hue's name, which a screen reader hears in the reader's language. */
|
|
7
|
+
export type PresetSwatch = {
|
|
8
|
+
color: string;
|
|
9
|
+
labelKey: PlainMessageKey;
|
|
10
|
+
};
|
|
11
|
+
/** Sixteen Radix step 9 colors, two rows of eight, in their light values, which a document keeps whatever the theme. */
|
|
12
|
+
export declare const PRESET_COLORS: ReadonlyArray<PresetSwatch>;
|
|
13
|
+
//# sourceMappingURL=presetColors.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A CSS color as an opaque lower-case #rrggbb, any alpha dropped: the forms toOpaqueHex
|
|
3
|
+
* reads, then any a canvas fillStyle reads, a name such as red or an oklch(); null for
|
|
4
|
+
* an empty or unreadable one, or one in the canvas's own syntax that paints nothing.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveColor(color: string): string | null;
|
|
7
|
+
//# sourceMappingURL=resolveColor.d.ts.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { default as ContextMenuItem } from './context-menu-item/ContextMenuItem';
|
|
2
2
|
import { default as ContextMenuRoot } from './context-menu-root/ContextMenuRoot';
|
|
3
|
+
import { default as ContextMenuSeparator } from './context-menu-separator/ContextMenuSeparator';
|
|
3
4
|
import { default as Menu } from './menu/Menu';
|
|
4
5
|
type CompositionContextMenu = {
|
|
5
6
|
Root: typeof ContextMenuRoot;
|
|
6
7
|
Item: typeof ContextMenuItem;
|
|
8
|
+
Separator: typeof ContextMenuSeparator;
|
|
7
9
|
Menu: typeof Menu;
|
|
8
10
|
};
|
|
9
11
|
declare const ContextMenu: CompositionContextMenu;
|
|
@@ -9,11 +9,11 @@ export type WindowSize = {
|
|
|
9
9
|
height: number;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* How far a menu drawn at box moves into the window
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* How far a menu drawn at box moves into the window, never past its left and
|
|
13
|
+
* top. A submenu opens right of its row, or left to end at flipRight for a
|
|
14
|
+
* right-to-left reader, and switches only when its side cuts it more.
|
|
15
15
|
*/
|
|
16
|
-
export declare function fitMenu(box: MenuBox, view: WindowSize, flipRight?: number): {
|
|
16
|
+
export declare function fitMenu(box: MenuBox, view: WindowSize, flipRight?: number, openLeft?: boolean): {
|
|
17
17
|
dx: number;
|
|
18
18
|
dy: number;
|
|
19
19
|
};
|