@dineug/erd-editor 3.10.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +316 -147
- 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/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 +38 -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/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 +49 -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/ToolbarCompass.template.d.ts +3 -1
- 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/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 +14 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +87 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +66 -6
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
- 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/find-replace/panelLayout.d.ts +4 -1
- 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 +17 -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/quick-search/QuickSearch.d.ts +2 -1
- package/dist/components/quick-search/actions.d.ts +40 -5
- package/dist/components/quick-search/hangul.d.ts +16 -10
- package/dist/components/quick-search/paletteQuery.d.ts +5 -4
- package/dist/components/quick-search/scopedActions.d.ts +6 -5
- 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 +8 -5
- 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/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 +34 -0
- package/dist/constants/open.d.ts +3 -0
- 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 +2100 -4194
- 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 +399 -0
- package/dist/i18n/messages/de-DE.d.ts +375 -0
- package/dist/i18n/messages/en/code.d.ts +17 -0
- package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
- package/dist/i18n/messages/en/common.d.ts +65 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +29 -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 +36 -0
- package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
- package/dist/i18n/messages/en/index.d.ts +378 -0
- package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
- package/dist/i18n/messages/en/palette.d.ts +40 -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 +32 -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 +9 -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 +381 -0
- package/dist/i18n/messages/eu-ES.d.ts +375 -0
- package/dist/i18n/messages/fa-IR.d.ts +375 -0
- package/dist/i18n/messages/fr-FR.d.ts +381 -0
- package/dist/i18n/messages/he-IL.d.ts +381 -0
- package/dist/i18n/messages/id-ID.d.ts +369 -0
- package/dist/i18n/messages/index.d.ts +11 -0
- package/dist/i18n/messages/it-IT.d.ts +381 -0
- package/dist/i18n/messages/ja-JP.d.ts +369 -0
- package/dist/i18n/messages/ko-KR.d.ts +369 -0
- package/dist/i18n/messages/nl-NL.d.ts +375 -0
- package/dist/i18n/messages/pl-PL.d.ts +387 -0
- package/dist/i18n/messages/pt-BR.d.ts +381 -0
- package/dist/i18n/messages/pt-PT.d.ts +381 -0
- package/dist/i18n/messages/ro-RO.d.ts +381 -0
- package/dist/i18n/messages/ru-RU.d.ts +387 -0
- package/dist/i18n/messages/sk-SK.d.ts +387 -0
- package/dist/i18n/messages/sl-SI.d.ts +387 -0
- package/dist/i18n/messages/sv-SE.d.ts +375 -0
- package/dist/i18n/messages/tr-TR.d.ts +375 -0
- package/dist/i18n/messages/uk-UA.d.ts +387 -0
- package/dist/i18n/messages/zh-CN.d.ts +369 -0
- package/dist/i18n/messages/zh-TW.d.ts +369 -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 +29797 -13894
- 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-B3EFSe9k.js +12925 -0
- package/dist/peer/index.d.ts +6 -3
- package/dist/peer/index.js +83 -76
- 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-fUggY7sI.js +1341 -0
- package/dist/themes/radix-ui-theme.d.ts +11 -3
- package/dist/themes/tokens.d.ts +9 -0
- 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/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 -6
- 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 +1 -1
- package/dist/utils/find-replace/present.d.ts +5 -3
- 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 +11 -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/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 +6 -13
- 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
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DatabaseVendor } from '../../constants/sql/database';
|
|
2
2
|
import { SharedStore, SharedStoreConfig } from '../../engine/shared-store';
|
|
3
|
-
import {
|
|
3
|
+
import { LocaleOption } from '../../i18n/locales';
|
|
4
|
+
import { Appearance, ThemeOptions } from '../../themes/radix-ui-theme';
|
|
4
5
|
import { Theme as ThemeType } from '../../themes/tokens';
|
|
5
6
|
import { KeyBindingMap, KeyBindingName } from '../../utils/keyboard-shortcut';
|
|
7
|
+
import { SchemaSQLOptions } from '../../utils/schema-sql';
|
|
6
8
|
declare global {
|
|
7
9
|
interface HTMLElementTagNameMap {
|
|
8
10
|
'erd-editor': ErdEditorElement;
|
|
@@ -12,22 +14,80 @@ export type ErdEditorProps = {
|
|
|
12
14
|
readonly: boolean;
|
|
13
15
|
systemDarkMode: boolean;
|
|
14
16
|
enableThemeBuilder: boolean;
|
|
17
|
+
enableLocalePicker: boolean;
|
|
18
|
+
enableWelcomeScreen: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type SchemaImportOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* Where the imported tables land: 'auto' lays them out by their
|
|
23
|
+
* relationships before the document is replaced, as an import from the
|
|
24
|
+
* menu does, and 'grid', the default, replaces it at once with them in rows.
|
|
25
|
+
*/
|
|
26
|
+
placement?: 'auto' | 'grid';
|
|
27
|
+
/**
|
|
28
|
+
* Whether the import takes the document's place, 'replace', the default, or
|
|
29
|
+
* joins it below the diagram as new tables, 'append', as Import and Add does.
|
|
30
|
+
*/
|
|
31
|
+
mode?: 'replace' | 'append';
|
|
32
|
+
};
|
|
33
|
+
export type SchemaJSONImportOptions = {
|
|
34
|
+
/**
|
|
35
|
+
* Whether the document takes this one's place, 'replace', the default, or
|
|
36
|
+
* joins it below the diagram as new tables and memos, 'append'.
|
|
37
|
+
*/
|
|
38
|
+
mode?: 'replace' | 'append';
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Replaces the document with an import, or adds the import to it for an
|
|
42
|
+
* append, returning a Promise when it places first.
|
|
43
|
+
*/
|
|
44
|
+
export type SetSchema = {
|
|
45
|
+
(value: string, options: SchemaImportOptions & {
|
|
46
|
+
placement: 'auto';
|
|
47
|
+
}): Promise<void>;
|
|
48
|
+
(value: string, options?: SchemaImportOptions & {
|
|
49
|
+
placement?: 'grid';
|
|
50
|
+
}): void;
|
|
51
|
+
(value: string, options?: SchemaImportOptions): Promise<void> | void;
|
|
15
52
|
};
|
|
16
53
|
export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
|
|
54
|
+
/** The document in the form a file saves; setting it replaces the document. */
|
|
17
55
|
value: string;
|
|
56
|
+
/**
|
|
57
|
+
* The document as this editor holds it, removed entities and their order
|
|
58
|
+
* included, which a collaborator's setInitialValue takes so undo can bring
|
|
59
|
+
* them back. Never written to a file.
|
|
60
|
+
*/
|
|
61
|
+
readonly runtimeValue: string;
|
|
18
62
|
focus: () => void;
|
|
19
63
|
blur: () => void;
|
|
20
64
|
clear: () => void;
|
|
21
65
|
destroy: () => void;
|
|
22
66
|
setInitialValue: (value: string) => void;
|
|
23
67
|
setPresetTheme: (themeOptions: Partial<ThemeOptions>) => void;
|
|
68
|
+
/** What the system appearance shows, for a host with its own light and dark; null follows the OS. */
|
|
69
|
+
setSystemAppearance: (appearance: Appearance | null) => void;
|
|
24
70
|
setTheme: (theme: Partial<ThemeType>) => void;
|
|
71
|
+
/**
|
|
72
|
+
* 'system' follows the host's or the browser's language; a code fixes one.
|
|
73
|
+
* Emits nothing. Before any call the editor shows English, or follows system
|
|
74
|
+
* while enableLocalePicker is on.
|
|
75
|
+
*/
|
|
76
|
+
setLocale: (locale: LocaleOption) => void;
|
|
77
|
+
/** What system means: the host UI language as a BCP 47 tag; null reads navigator.languages. */
|
|
78
|
+
setSystemLocale: (locale: string | null) => void;
|
|
25
79
|
setKeyBindingMap: (keyBindingMap: Partial<Omit<KeyBindingMap, typeof KeyBindingName.edit | typeof KeyBindingName.stop | typeof KeyBindingName.undo | typeof KeyBindingName.redo | typeof KeyBindingName.zoomIn | typeof KeyBindingName.zoomOut | typeof KeyBindingName.zoomReset>>) => void;
|
|
26
|
-
setSchemaSQL:
|
|
27
|
-
setSchemaGraphQL:
|
|
28
|
-
setSchemaDBML:
|
|
29
|
-
setSchemaAML:
|
|
30
|
-
|
|
80
|
+
setSchemaSQL: SetSchema;
|
|
81
|
+
setSchemaGraphQL: SetSchema;
|
|
82
|
+
setSchemaDBML: SetSchema;
|
|
83
|
+
setSchemaAML: SetSchema;
|
|
84
|
+
setSchemaJSON: (value: string, options?: SchemaJSONImportOptions) => void;
|
|
85
|
+
/**
|
|
86
|
+
* The document's DDL: the vendor given or the document's own, created as
|
|
87
|
+
* the options ask, a choice the vendor lacks falling back as the Schema SQL
|
|
88
|
+
* tab does; the document's before and after scripts are always in it.
|
|
89
|
+
*/
|
|
90
|
+
getSchemaSQL: (databaseVendor?: DatabaseVendor, options?: SchemaSQLOptions) => string;
|
|
31
91
|
getSharedStore: (config?: SharedStoreConfig & {
|
|
32
92
|
mouseTracker?: boolean;
|
|
33
93
|
focusTracker?: boolean;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Ref } from '@dineug/r-html';
|
|
2
2
|
import { AppContext } from '../appContext';
|
|
3
|
+
import { LocaleCode, LocaleOption } from '../../i18n/locales';
|
|
4
|
+
import { I18n } from '../../i18n/translate';
|
|
3
5
|
import { Unsubscribe } from '../../internal-types';
|
|
4
|
-
import { ThemeOptions } from '../../themes/radix-ui-theme';
|
|
6
|
+
import { Appearance, ThemeOptions } from '../../themes/radix-ui-theme';
|
|
5
7
|
import { Theme } from '../../themes/tokens';
|
|
6
8
|
import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
|
|
7
9
|
type Props = {
|
|
@@ -14,9 +16,20 @@ export declare function useErdEditorAttachElement({ props, ctx, app, root }: Pro
|
|
|
14
16
|
theme: Theme;
|
|
15
17
|
themeState: {
|
|
16
18
|
options: ThemeOptions;
|
|
19
|
+
/** What system shows once a host names it; null follows the OS color scheme. */
|
|
20
|
+
systemAppearance: Appearance | null;
|
|
17
21
|
preset: Theme;
|
|
18
22
|
custom: Partial<Theme>;
|
|
19
23
|
};
|
|
24
|
+
i18n: I18n;
|
|
25
|
+
localeState: {
|
|
26
|
+
/** The option a host or a pick last set; null until either sets one. */
|
|
27
|
+
option: LocaleOption | null;
|
|
28
|
+
/** What system means once a host names its own language; null reads the browser's. */
|
|
29
|
+
systemTag: string | null;
|
|
30
|
+
};
|
|
31
|
+
resolveLocaleOption: () => LocaleOption;
|
|
32
|
+
resolveSystemLocale: () => LocaleCode;
|
|
20
33
|
destroySet: Set<Unsubscribe>;
|
|
21
34
|
hasDarkMode: () => boolean;
|
|
22
35
|
};
|
|
@@ -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
|
|
@@ -3,7 +3,10 @@ import { RootState } from '../../engine/state';
|
|
|
3
3
|
export declare const TAKEOVERS: ("automaticTablePlacement" | "diffViewer" | "timeTravel")[];
|
|
4
4
|
/** Whether an overlay that takes the canvas over is up, which keeps Find and Replace shut. */
|
|
5
5
|
export declare const isTakenOver: ({ editor }: RootState) => boolean;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Whether the panel is drawn: it stands aside, still open, off the ERD tab and
|
|
8
|
+
* under a takeover, and draws over no dialog, which closes it as it opens.
|
|
9
|
+
*/
|
|
7
10
|
export declare const isPanelShown: (state: RootState) => boolean;
|
|
8
11
|
/** How far in from the left of the canvas the panel stands, and how wide it is at most, as FindReplace.styles draws it. */
|
|
9
12
|
export declare const PANEL_LEFT = 16;
|
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
|