@dineug/erd-editor 3.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/LICENSE +21 -0
- package/README.md +337 -0
- package/dist/components/appContext.d.ts +22 -0
- package/dist/components/customElementRegistry.d.ts +1 -0
- package/dist/components/erd/Erd.d.ts +6 -0
- package/dist/components/erd/Erd.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +2 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +11 -0
- package/dist/components/erd/canvas/Canvas.d.ts +7 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +7 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +8 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +3 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +8 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.styles.d.ts +1 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +7 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +1 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +7 -0
- package/dist/components/erd/canvas/memo/Memo.styles.d.ts +6 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +9 -0
- package/dist/components/erd/canvas/table/Table.d.ts +7 -0
- package/dist/components/erd/canvas/table/Table.styles.d.ts +5 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +29 -0
- package/dist/components/erd/canvas/table/column/Column.styles.d.ts +2 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +16 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.styles.d.ts +3 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +6 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +7 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +11 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +7 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +6 -0
- package/dist/components/erd/drag-select/DragSelect.d.ts +9 -0
- package/dist/components/erd/drag-select/DragSelect.styles.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +17 -0
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +12 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +16 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +7 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +6 -0
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +3 -0
- package/dist/components/erd/hide-sign/HideSign.d.ts +6 -0
- package/dist/components/erd/hide-sign/HideSign.styles.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.d.ts +4 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +3 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +7 -0
- package/dist/components/erd/minimap/table/Table.d.ts +7 -0
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +7 -0
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +6 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +9 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +8 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +9 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +4 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +14 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +2 -0
- package/dist/components/erd/useErdShortcut.d.ts +2 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +26 -0
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +18 -0
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +2 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +21 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +7 -0
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +6 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +12 -0
- package/dist/components/global-styles/GlobalStyles.d.ts +4 -0
- package/dist/components/primitives/button/Button.d.ts +9 -0
- package/dist/components/primitives/button/Button.stories.d.ts +26 -0
- package/dist/components/primitives/button/Button.styles.d.ts +6 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +10 -0
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +25 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +3 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +12 -0
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +26 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +10 -0
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +16 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +9 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +8 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +6 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +22 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +8 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +3 -0
- package/dist/components/primitives/edit-input/EditInput.d.ts +16 -0
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +36 -0
- package/dist/components/primitives/edit-input/EditInput.styles.d.ts +4 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +8 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +23 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.d.ts +14 -0
- package/dist/components/primitives/icon/Icon.stories.d.ts +8 -0
- package/dist/components/primitives/icon/Icon.styles.d.ts +2 -0
- package/dist/components/primitives/icon/icons.d.ts +29 -0
- package/dist/components/primitives/kbd/Kbd.d.ts +7 -0
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +17 -0
- package/dist/components/primitives/kbd/Kbd.styles.d.ts +3 -0
- package/dist/components/primitives/sash/Sash.d.ts +27 -0
- package/dist/components/primitives/sash/Sash.stories.d.ts +30 -0
- package/dist/components/primitives/sash/Sash.styles.d.ts +2 -0
- package/dist/components/primitives/separator/Separator.d.ts +7 -0
- package/dist/components/primitives/separator/Separator.stories.d.ts +25 -0
- package/dist/components/primitives/separator/Separator.styles.d.ts +2 -0
- package/dist/components/primitives/switch/Switch.d.ts +8 -0
- package/dist/components/primitives/switch/Switch.stories.d.ts +21 -0
- package/dist/components/primitives/switch/Switch.styles.d.ts +5 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +19 -0
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +41 -0
- package/dist/components/primitives/toast/Toast.d.ts +8 -0
- package/dist/components/primitives/toast/Toast.stories.d.ts +20 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +5 -0
- package/dist/components/quick-search/QuickSearch.d.ts +4 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +10 -0
- package/dist/components/quick-search/actions.d.ts +14 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +7 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +6 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +12 -0
- package/dist/components/settings/Settings.d.ts +4 -0
- package/dist/components/settings/Settings.styles.d.ts +10 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +13 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +3 -0
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +4 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +2 -0
- package/dist/components/theme/Theme.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -0
- package/dist/components/toast-container/ToastContainer.d.ts +4 -0
- package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +6 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +3 -0
- package/dist/components/visualization/Visualization.d.ts +4 -0
- package/dist/components/visualization/Visualization.styles.d.ts +1 -0
- package/dist/components/visualization/createVisualization.d.ts +9 -0
- package/dist/components/visualization/table/Table.d.ts +10 -0
- package/dist/components/visualization/table/Table.styles.d.ts +1 -0
- package/dist/components/visualization/table/column/Column.d.ts +12 -0
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/constants/language.d.ts +1 -0
- package/dist/constants/layout.d.ts +32 -0
- package/dist/constants/open.d.ts +8 -0
- package/dist/constants/schema.d.ts +102 -0
- package/dist/constants/sql/dataType/MSSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/MariaDB.d.ts +5 -0
- package/dist/constants/sql/dataType/MySQL.d.ts +5 -0
- package/dist/constants/sql/dataType/Oracle.d.ts +5 -0
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/SQLite.d.ts +5 -0
- package/dist/constants/sql/dataType/index.d.ts +25 -0
- package/dist/constants/sql/database.d.ts +12 -0
- package/dist/engine/actions.d.ts +35 -0
- package/dist/engine/context.d.ts +5 -0
- package/dist/engine/generator.actions.d.ts +4 -0
- package/dist/engine/history.actions.d.ts +9 -0
- package/dist/engine/history.d.ts +20 -0
- package/dist/engine/hooks.d.ts +8 -0
- package/dist/engine/modules/editor/actions.d.ts +93 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +406 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +31 -0
- package/dist/engine/modules/editor/history.d.ts +5 -0
- package/dist/engine/modules/editor/state.d.ts +63 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +15 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +3 -0
- package/dist/engine/modules/index/actions.d.ts +31 -0
- package/dist/engine/modules/index/atom.actions.d.ts +101 -0
- package/dist/engine/modules/index/generator.actions.d.ts +7 -0
- package/dist/engine/modules/index/history.d.ts +7 -0
- package/dist/engine/modules/index-column/actions.d.ts +37 -0
- package/dist/engine/modules/index-column/atom.actions.d.ts +125 -0
- package/dist/engine/modules/index-column/generator.actions.d.ts +11 -0
- package/dist/engine/modules/index-column/history.d.ts +7 -0
- package/dist/engine/modules/memo/actions.d.ts +59 -0
- package/dist/engine/modules/memo/atom.actions.d.ts +225 -0
- package/dist/engine/modules/memo/generator.actions.d.ts +9 -0
- package/dist/engine/modules/memo/history.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +31 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +102 -0
- package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/history.d.ts +6 -0
- package/dist/engine/modules/relationship/hooks.d.ts +2 -0
- package/dist/engine/modules/settings/actions.d.ts +83 -0
- package/dist/engine/modules/settings/atom.actions.d.ts +348 -0
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +11 -0
- package/dist/engine/modules/table/actions.d.ts +57 -0
- package/dist/engine/modules/table/atom.actions.d.ts +224 -0
- package/dist/engine/modules/table/generator.actions.d.ts +12 -0
- package/dist/engine/modules/table/history.d.ts +13 -0
- package/dist/engine/modules/table/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/actions.d.ts +53 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +230 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +19 -0
- package/dist/engine/modules/table-column/history.d.ts +14 -0
- package/dist/engine/modules/table-column/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -0
- package/dist/engine/rx-operators/actionsFilter.d.ts +3 -0
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -0
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +3 -0
- package/dist/engine/rx-operators/index.d.ts +4 -0
- package/dist/engine/rx-operators/notEmptyActions.d.ts +2 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +3 -0
- package/dist/engine/rx-store.d.ts +10 -0
- package/dist/engine/state.d.ts +5 -0
- package/dist/engine/store.d.ts +5 -0
- package/dist/engine/store.hooks.d.ts +4 -0
- package/dist/engine/tag.d.ts +7 -0
- package/dist/erd-editor.js +42402 -0
- package/dist/hooks/useDarkMode.d.ts +5 -0
- package/dist/hooks/useFlipAnimation.d.ts +2 -0
- package/dist/hooks/useKeyBindingMap.d.ts +3 -0
- package/dist/hooks/useUnmounted.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/internal-types/index.d.ts +40 -0
- package/dist/services/schema-gc/index.d.ts +10 -0
- package/dist/services/schema-gc/procGC.d.ts +3 -0
- package/dist/services/schema-gc/schemaGCService.d.ts +4 -0
- package/dist/services/shikiService.d.ts +8 -0
- package/dist/styles/colorPicker.style.d.ts +1 -0
- package/dist/styles/fonts.styles.d.ts +3 -0
- package/dist/styles/reset.styles.d.ts +1 -0
- package/dist/styles/scrollbar.styles.d.ts +1 -0
- package/dist/styles/typography.styles.d.ts +14 -0
- package/dist/themes/radix-ui-theme.config.d.ts +2 -0
- package/dist/themes/radix-ui-theme.d.ts +1792 -0
- package/dist/themes/textColor.d.ts +2 -0
- package/dist/themes/tokens.d.ts +63 -0
- package/dist/utils/attribute.d.ts +1 -0
- package/dist/utils/bit.d.ts +1 -0
- package/dist/utils/calcMemo.d.ts +3 -0
- package/dist/utils/calcTable.d.ts +16 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/collection/index.entity.d.ts +2 -0
- package/dist/utils/collection/indexColumn.entity.d.ts +2 -0
- package/dist/utils/collection/memo.entity.d.ts +2 -0
- package/dist/utils/collection/relationship.entity.d.ts +2 -0
- package/dist/utils/collection/sequence.d.ts +1 -0
- package/dist/utils/collection/table.entity.d.ts +2 -0
- package/dist/utils/collection/tableColumn.entity.d.ts +2 -0
- package/dist/utils/device-detect/index.d.ts +7 -0
- package/dist/utils/domEvent.d.ts +6 -0
- package/dist/utils/dragSelect.d.ts +23 -0
- package/dist/utils/draw-relationship/calc.d.ts +6 -0
- package/dist/utils/draw-relationship/draw.d.ts +4 -0
- package/dist/utils/draw-relationship/index.d.ts +108 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +3 -0
- package/dist/utils/draw-relationship/sort.d.ts +2 -0
- package/dist/utils/emitter.d.ts +141 -0
- package/dist/utils/file/exportFile.d.ts +9 -0
- package/dist/utils/file/importFile.d.ts +10 -0
- package/dist/utils/flipAnimation.d.ts +10 -0
- package/dist/utils/focus.d.ts +5 -0
- package/dist/utils/generator-code/csharp.d.ts +4 -0
- package/dist/utils/generator-code/graphql.d.ts +4 -0
- package/dist/utils/generator-code/index.d.ts +4 -0
- package/dist/utils/generator-code/java.d.ts +4 -0
- package/dist/utils/generator-code/jpa.d.ts +4 -0
- package/dist/utils/generator-code/kotlin.d.ts +4 -0
- package/dist/utils/generator-code/scala.d.ts +4 -0
- package/dist/utils/generator-code/typescript.d.ts +4 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/globalEmitter.d.ts +28 -0
- package/dist/utils/globalEventObservable.d.ts +41 -0
- package/dist/utils/icon.d.ts +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/internalEvents.d.ts +38 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +36 -0
- package/dist/utils/keyboard-shortcut/utils.d.ts +2 -0
- package/dist/utils/promise.d.ts +1 -0
- package/dist/utils/rx-operators/fromCopy.d.ts +3 -0
- package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/fromPaste.d.ts +3 -0
- package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +2 -0
- package/dist/utils/schema-sql/MSSQL.d.ts +5 -0
- package/dist/utils/schema-sql/MariaDB.d.ts +5 -0
- package/dist/utils/schema-sql/MySQL.d.ts +5 -0
- package/dist/utils/schema-sql/Oracle.d.ts +5 -0
- package/dist/utils/schema-sql/PostgreSQL.d.ts +5 -0
- package/dist/utils/schema-sql/SQLite.d.ts +5 -0
- package/dist/utils/schema-sql/index.d.ts +4 -0
- package/dist/utils/schema-sql/utils.d.ts +53 -0
- package/dist/utils/schema-sql-parser/index.d.ts +3 -0
- package/dist/utils/schema-sql-parser/utils.d.ts +3 -0
- package/dist/utils/table-clipboard/copy.d.ts +3 -0
- package/dist/utils/table-clipboard/index.d.ts +15 -0
- package/dist/utils/table-clipboard/paste.d.ts +4 -0
- package/dist/utils/text.d.ts +4 -0
- package/dist/utils/validation.d.ts +16 -0
- package/dist/workers/schemaGC.shared-worker.d.ts +1 -0
- package/dist/workers/schemaGC.worker.d.ts +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC, Ref } from '@dineug/r-html';
|
|
2
|
+
import { ValuesType } from "../../../internal-types";
|
|
3
|
+
export declare const ErdContextMenuType: {
|
|
4
|
+
readonly ERD: "ERD";
|
|
5
|
+
readonly table: "table";
|
|
6
|
+
readonly relationship: "relationship";
|
|
7
|
+
};
|
|
8
|
+
export type ErdContextMenuType = ValuesType<typeof ErdContextMenuType>;
|
|
9
|
+
export type ErdContextMenuProps = {
|
|
10
|
+
type: ErdContextMenuType;
|
|
11
|
+
canvas: Ref<HTMLDivElement>;
|
|
12
|
+
relationshipId?: string;
|
|
13
|
+
tableId?: string;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const ErdContextMenu: FC<ErdContextMenuProps>;
|
|
17
|
+
export default ErdContextMenu;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContext } from "../../../appContext";
|
|
2
|
+
type Menu = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const menus: Menu[];
|
|
7
|
+
export declare function createDatabaseMenus({ store }: AppContext): {
|
|
8
|
+
checked: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
}[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AppContext } from "../../../appContext";
|
|
2
|
+
import { KeyBindingName } from "../../../../utils/keyboard-shortcut";
|
|
3
|
+
type Menu = {
|
|
4
|
+
iconName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
keyBindingName: KeyBindingName;
|
|
7
|
+
relationshipType: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const menus: Menu[];
|
|
10
|
+
export declare function createDrawRelationshipMenus({ store, keyBindingMap }: AppContext, onClose: () => void): {
|
|
11
|
+
iconName: string;
|
|
12
|
+
name: string;
|
|
13
|
+
shortcut: string;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}[];
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sign: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const viewport: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
export type TablePropertiesProps = {
|
|
3
|
+
isDarkMode: boolean;
|
|
4
|
+
tableId: string;
|
|
5
|
+
tableIds: string[];
|
|
6
|
+
onChange: (tableId: string) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const TableProperties: FC<TablePropertiesProps>;
|
|
9
|
+
export default TableProperties;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
|
|
2
|
+
export declare const container: import("@dineug/r-html").CSSTemplateLiterals;
|
|
3
|
+
export declare const scrollbarArea: import("@dineug/r-html").CSSTemplateLiterals;
|
|
4
|
+
export declare const header: import("@dineug/r-html").CSSTemplateLiterals;
|
|
5
|
+
export declare const tab: import("@dineug/r-html").CSSTemplateLiterals;
|
|
6
|
+
export declare const scope: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { Index } from "../../../../../internal-types";
|
|
3
|
+
export type IndexesCheckboxColumnProps = {
|
|
4
|
+
tableId: string;
|
|
5
|
+
index: Index;
|
|
6
|
+
};
|
|
7
|
+
declare const IndexesCheckboxColumn: FC<IndexesCheckboxColumnProps>;
|
|
8
|
+
export default IndexesCheckboxColumn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { Index } from "../../../../../internal-types";
|
|
3
|
+
export type IndexesIndexProps = {
|
|
4
|
+
index: Index;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
onSelect: (index: Index | null) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const IndexesIndex: FC<IndexesIndexProps>;
|
|
9
|
+
export default IndexesIndex;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const row: import("@dineug/r-html").CSSTemplateLiterals;
|
|
2
|
+
export declare const input: import("@dineug/r-html").CSSTemplateLiterals;
|
|
3
|
+
export declare const unique: import("@dineug/r-html").CSSTemplateLiterals;
|
|
4
|
+
export declare const iconButton: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { ValuesType } from "../../../../internal-types";
|
|
3
|
+
export declare const Tab: {
|
|
4
|
+
readonly Indexes: "Indexes";
|
|
5
|
+
readonly SchemaSQL: "Schema SQL";
|
|
6
|
+
readonly GeneratorCode: "Generator Code";
|
|
7
|
+
};
|
|
8
|
+
export type Tab = ValuesType<typeof Tab>;
|
|
9
|
+
export type TablePropertiesTabsProps = {
|
|
10
|
+
value: Tab;
|
|
11
|
+
onChange: (value: Tab) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const TablePropertiesTabs: FC<TablePropertiesTabsProps>;
|
|
14
|
+
export default TablePropertiesTabs;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DatabaseVendor } from "../../constants/sql/database";
|
|
2
|
+
import { ThemeOptions } from "../../themes/radix-ui-theme";
|
|
3
|
+
import { Theme as ThemeType } from "../../themes/tokens";
|
|
4
|
+
import { KeyBindingMap, KeyBindingName } from "../../utils/keyboard-shortcut";
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'erd-editor': ErdEditorElement;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export type ErdEditorProps = {
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
systemDarkMode: boolean;
|
|
13
|
+
enableThemeBuilder: boolean;
|
|
14
|
+
};
|
|
15
|
+
export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
|
|
16
|
+
value: string;
|
|
17
|
+
focus: () => void;
|
|
18
|
+
blur: () => void;
|
|
19
|
+
clear: () => void;
|
|
20
|
+
setInitialValue: (value: string) => void;
|
|
21
|
+
setPresetTheme: (themeOptions: Partial<ThemeOptions>) => void;
|
|
22
|
+
setTheme: (theme: Partial<ThemeType>) => void;
|
|
23
|
+
setKeyBindingMap: (keyBindingMap: Partial<Omit<KeyBindingMap, typeof KeyBindingName.edit | typeof KeyBindingName.stop | typeof KeyBindingName.search | typeof KeyBindingName.undo | typeof KeyBindingName.redo | typeof KeyBindingName.zoomIn | typeof KeyBindingName.zoomOut>>) => void;
|
|
24
|
+
setSchemaSQL: (value: string) => void;
|
|
25
|
+
getSchemaSQL: (databaseVendor?: DatabaseVendor) => string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './ErdEditor';
|
|
2
|
+
import type { StoryObj } from '@storybook/html';
|
|
3
|
+
import type { ErdEditorProps } from './ErdEditor';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
render: (args: ErdEditorProps) => DocumentFragment;
|
|
7
|
+
argTypes: {
|
|
8
|
+
readonly: {
|
|
9
|
+
type: "boolean";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
parameters: {
|
|
13
|
+
css: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<ErdEditorProps>;
|
|
18
|
+
export declare const Normal: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Ref } from '@dineug/r-html';
|
|
2
|
+
import { AppContext } from "../appContext";
|
|
3
|
+
import { ThemeOptions } from "../../themes/radix-ui-theme";
|
|
4
|
+
import { Theme } from "../../themes/tokens";
|
|
5
|
+
import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
|
|
6
|
+
type Props = {
|
|
7
|
+
props: ErdEditorProps;
|
|
8
|
+
ctx: ErdEditorElement;
|
|
9
|
+
app: AppContext;
|
|
10
|
+
root: Ref<HTMLDivElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare function useErdEditorAttachElement({ props, ctx, app: { store, keyBindingMap, emitter }, root, }: Props): {
|
|
13
|
+
theme: Theme;
|
|
14
|
+
themeState: {
|
|
15
|
+
options: ThemeOptions;
|
|
16
|
+
preset: Theme;
|
|
17
|
+
custom: Partial<Theme>;
|
|
18
|
+
};
|
|
19
|
+
hasDarkMode: () => boolean;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
|
package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContext } from "../../../appContext";
|
|
2
|
+
type Menu = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const menus: Menu[];
|
|
7
|
+
export declare function createColumnNameCaseMenus({ store }: AppContext): {
|
|
8
|
+
checked: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
}[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContext } from "../../../appContext";
|
|
2
|
+
type Menu = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const menus: Menu[];
|
|
7
|
+
export declare function createLanguageMenus({ store }: AppContext): {
|
|
8
|
+
checked: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
}[];
|
|
12
|
+
export {};
|
package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContext } from "../../../appContext";
|
|
2
|
+
type Menu = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const menus: Menu[];
|
|
7
|
+
export declare function createTableNameCaseMenus({ store }: AppContext): {
|
|
8
|
+
checked: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
}[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
export type ButtonProps = {
|
|
3
|
+
size?: '1' | '2' | '3';
|
|
4
|
+
variant?: 'solid' | 'soft';
|
|
5
|
+
text: string | DOMTemplateLiterals;
|
|
6
|
+
onClick?: (event: PointerEvent) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const Button: FC<ButtonProps>;
|
|
9
|
+
export default Button;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/html';
|
|
2
|
+
import { ButtonProps } from './Button';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: (args: ButtonProps) => DocumentFragment;
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: {
|
|
8
|
+
control: string;
|
|
9
|
+
options: string[];
|
|
10
|
+
};
|
|
11
|
+
variant: {
|
|
12
|
+
control: string;
|
|
13
|
+
options: string[];
|
|
14
|
+
};
|
|
15
|
+
text: {
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
onClick: {
|
|
19
|
+
action: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<ButtonProps>;
|
|
25
|
+
export declare const Solid: Story;
|
|
26
|
+
export declare const Soft: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const button: import("@dineug/r-html").CSSTemplateLiterals;
|
|
2
|
+
export declare const soft: import("@dineug/r-html").CSSTemplateLiterals;
|
|
3
|
+
export declare const solid: import("@dineug/r-html").CSSTemplateLiterals;
|
|
4
|
+
export declare const size1: import("@dineug/r-html").CSSTemplateLiterals;
|
|
5
|
+
export declare const size2: import("@dineug/r-html").CSSTemplateLiterals;
|
|
6
|
+
export declare const size3: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { ShikiService } from "../../../services/shikiService";
|
|
3
|
+
export type CodeBlockProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
lang: Parameters<ShikiService['codeToHtml']>[1]['lang'];
|
|
6
|
+
theme?: 'dark' | 'light';
|
|
7
|
+
onCopy?: (value: string) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const CodeBlock: FC<CodeBlockProps>;
|
|
10
|
+
export default CodeBlock;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/html';
|
|
2
|
+
import { CodeBlockProps } from './CodeBlock';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: (args: CodeBlockProps) => DocumentFragment;
|
|
6
|
+
argTypes: {
|
|
7
|
+
value: {
|
|
8
|
+
control: string;
|
|
9
|
+
};
|
|
10
|
+
lang: {
|
|
11
|
+
control: string;
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
theme: {
|
|
15
|
+
control: string;
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
onCopy: {
|
|
19
|
+
action: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<CodeBlockProps>;
|
|
25
|
+
export declare const Normal: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { Viewport } from "../../../engine/modules/editor/state";
|
|
3
|
+
export type ColorPickerProps = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
color: string;
|
|
7
|
+
viewport?: Viewport;
|
|
8
|
+
onChange?: (color: string) => void;
|
|
9
|
+
onLastUpdate?: (color: string) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const ColorPicker: FC<ColorPickerProps>;
|
|
12
|
+
export default ColorPicker;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/html';
|
|
2
|
+
import { ColorPickerProps } from './ColorPicker';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: (args: ColorPickerProps) => DocumentFragment;
|
|
6
|
+
argTypes: {
|
|
7
|
+
x: {
|
|
8
|
+
type: "number";
|
|
9
|
+
};
|
|
10
|
+
y: {
|
|
11
|
+
type: "number";
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
type: "string";
|
|
15
|
+
};
|
|
16
|
+
onChange: {
|
|
17
|
+
action: string;
|
|
18
|
+
};
|
|
19
|
+
onLastUpdate: {
|
|
20
|
+
action: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<ColorPickerProps>;
|
|
26
|
+
export declare const Normal: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const container: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ContextMenuItem from './context-menu-item/ContextMenuItem';
|
|
2
|
+
import ContextMenuRoot from './context-menu-root/ContextMenuRoot';
|
|
3
|
+
import Menu from './menu/Menu';
|
|
4
|
+
type CompositionContextMenu = {
|
|
5
|
+
Root: typeof ContextMenuRoot;
|
|
6
|
+
Item: typeof ContextMenuItem;
|
|
7
|
+
Menu: typeof Menu;
|
|
8
|
+
};
|
|
9
|
+
declare const ContextMenu: CompositionContextMenu;
|
|
10
|
+
export default ContextMenu;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/html';
|
|
2
|
+
type ContextMenuTemplateProps = {
|
|
3
|
+
onClick?: (event: MouseEvent) => void;
|
|
4
|
+
};
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
render: (args: ContextMenuTemplateProps) => DocumentFragment;
|
|
8
|
+
argTypes: {
|
|
9
|
+
onClick: {
|
|
10
|
+
action: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<ContextMenuTemplateProps>;
|
|
16
|
+
export declare const Normal: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
export type ContextMenuContentProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
children?: DOMTemplateLiterals;
|
|
7
|
+
};
|
|
8
|
+
declare const ContextMenuContent: FC<ContextMenuContentProps>;
|
|
9
|
+
export default ContextMenuContent;
|
package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const content: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
export type ContextMenuItemProps = {
|
|
3
|
+
children?: DOMTemplateLiterals;
|
|
4
|
+
subChildren?: DOMTemplateLiterals;
|
|
5
|
+
onClick?: (event: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const ContextMenuItem: FC<ContextMenuItemProps>;
|
|
8
|
+
export default ContextMenuItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const item: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { Ctx } from "../../../../internal-types";
|
|
3
|
+
export type ContextMenuRootContext = {
|
|
4
|
+
show: boolean;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
change$: Subject<{
|
|
8
|
+
parentId: string;
|
|
9
|
+
id: string;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare const contextMenuRootContext: import("@dineug/r-html").Context<ContextMenuRootContext>;
|
|
13
|
+
export declare const useContextMenuRootContext: (ctx: Ctx) => import("@dineug/r-html").Ref<ContextMenuRootContext>;
|
|
14
|
+
export declare function useContextMenuRootProvider(ctx: Ctx): {
|
|
15
|
+
provider: {
|
|
16
|
+
set: (value: ContextMenuRootContext) => void;
|
|
17
|
+
destroy: () => void;
|
|
18
|
+
};
|
|
19
|
+
state: ContextMenuRootContext;
|
|
20
|
+
onContextmenu: (event: MouseEvent) => void;
|
|
21
|
+
onMousedown: (event: MouseEvent) => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
export type MenuProps = {
|
|
3
|
+
icon: DOMTemplateLiterals | string;
|
|
4
|
+
name: DOMTemplateLiterals | string;
|
|
5
|
+
right?: DOMTemplateLiterals | string;
|
|
6
|
+
};
|
|
7
|
+
declare const Menu: FC<MenuProps>;
|
|
8
|
+
export default Menu;
|