@dineug/erd-editor 3.4.0 → 3.6.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.
Files changed (440) hide show
  1. package/README.md +41 -10
  2. package/dist/components/appContext.d.ts +9 -1
  3. package/dist/components/customElementRegistry.d.ts +1 -0
  4. package/dist/components/erd/Erd.d.ts +1 -0
  5. package/dist/components/erd/Erd.styles.d.ts +1 -0
  6. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +16 -0
  7. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
  8. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +18 -1
  9. package/dist/components/erd/canvas/Canvas.d.ts +6 -0
  10. package/dist/components/erd/canvas/Canvas.styles.d.ts +12 -0
  11. package/dist/components/erd/canvas/CanvasScene.d.ts +19 -0
  12. package/dist/components/erd/canvas/EditOverlay.d.ts +9 -0
  13. package/dist/components/erd/canvas/EditOverlay.styles.d.ts +7 -0
  14. package/dist/components/erd/canvas/SceneIcon.template.d.ts +22 -0
  15. package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
  16. package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +12 -0
  17. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
  18. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +6 -0
  19. package/dist/components/erd/canvas/entityDrag.d.ts +7 -0
  20. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +5 -0
  21. package/dist/components/erd/canvas/memo/Memo.d.ts +3 -0
  22. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +12 -1
  23. package/dist/components/erd/canvas/memo/memoCaret.d.ts +27 -0
  24. package/dist/components/erd/canvas/memo/memoScroll.d.ts +29 -0
  25. package/dist/components/erd/canvas/memo/memoText.d.ts +34 -0
  26. package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +7 -0
  27. package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +16 -0
  28. package/dist/components/erd/canvas/{canvas-svg → relationship-group}/relationship/Relationship.d.ts +1 -0
  29. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +18 -0
  30. package/dist/components/erd/canvas/sceneHit.d.ts +19 -0
  31. package/dist/components/erd/canvas/sceneKind.d.ts +12 -0
  32. package/dist/components/erd/canvas/sceneRetention.d.ts +32 -0
  33. package/dist/components/erd/canvas/sceneTokens.d.ts +68 -0
  34. package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +5 -0
  35. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +2 -0
  36. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +6 -0
  37. package/dist/components/erd/canvas/table/Table.d.ts +9 -0
  38. package/dist/components/erd/canvas/table/cellLayout.d.ts +64 -0
  39. package/dist/components/erd/canvas/table/column/Column.d.ts +17 -6
  40. package/dist/components/erd/canvas/table/doubleClick.d.ts +15 -0
  41. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
  42. package/dist/components/erd/canvas/table/useMoveTable.d.ts +2 -1
  43. package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
  44. package/dist/components/erd/canvas/useMoveEntity.d.ts +19 -0
  45. package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
  46. package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
  47. package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
  48. package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
  49. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
  50. package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
  51. package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
  52. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
  53. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
  54. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
  55. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
  56. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +2 -2
  57. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
  58. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -2
  59. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +3 -1
  60. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
  61. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
  62. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
  63. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
  64. package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
  65. package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
  66. package/dist/components/erd/hitTest.d.ts +23 -0
  67. package/dist/components/erd/minimap/Minimap.d.ts +1 -0
  68. package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -1
  69. package/dist/components/erd/minimap/MinimapScene.d.ts +17 -0
  70. package/dist/components/erd/minimap/memo/Memo.d.ts +8 -0
  71. package/dist/components/erd/minimap/minimapGeometry.d.ts +100 -0
  72. package/dist/components/erd/minimap/table/Table.d.ts +8 -0
  73. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
  74. package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
  75. package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
  76. package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
  77. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
  78. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
  79. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
  80. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
  81. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
  82. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
  83. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
  84. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
  85. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
  86. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
  87. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
  88. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
  89. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
  90. package/dist/components/erd/useErdShortcut.d.ts +1 -0
  91. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
  92. package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
  93. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +26 -0
  94. package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
  95. package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
  96. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
  97. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  98. package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
  99. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
  100. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
  101. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
  102. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
  103. package/dist/components/global-styles/GlobalStyles.d.ts +4 -12
  104. package/dist/components/primitives/button/Button.d.ts +1 -0
  105. package/dist/components/primitives/button/Button.styles.d.ts +1 -0
  106. package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -0
  107. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -1
  108. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
  109. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
  110. package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
  111. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  112. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
  113. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
  114. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
  115. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
  116. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
  117. package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
  118. package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
  119. package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
  120. package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
  121. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
  122. package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
  123. package/dist/components/primitives/icon/Icon.d.ts +1 -0
  124. package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
  125. package/dist/components/primitives/icon/icons.d.ts +55 -26
  126. package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
  127. package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
  128. package/dist/components/primitives/sash/Sash.d.ts +1 -0
  129. package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
  130. package/dist/components/primitives/separator/Separator.d.ts +1 -0
  131. package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
  132. package/dist/components/primitives/slider/Slider.d.ts +1 -0
  133. package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
  134. package/dist/components/primitives/switch/Switch.d.ts +1 -0
  135. package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
  136. package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
  137. package/dist/components/primitives/toast/Toast.d.ts +5 -0
  138. package/dist/components/primitives/toast/Toast.styles.d.ts +6 -0
  139. package/dist/components/quick-search/QuickSearch.d.ts +1 -0
  140. package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
  141. package/dist/components/quick-search/actions.d.ts +1 -0
  142. package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
  143. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
  144. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
  145. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
  146. package/dist/components/settings/Settings.d.ts +1 -0
  147. package/dist/components/settings/Settings.styles.d.ts +1 -0
  148. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
  149. package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
  150. package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
  151. package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
  152. package/dist/components/{erd/canvas/table → table-view}/Table.styles.d.ts +1 -0
  153. package/dist/components/{erd/canvas/draw-relationship/DrawRelationship.styles.d.ts → table-view/column/Column.styles.d.ts} +1 -0
  154. package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.d.ts +2 -1
  155. package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
  156. package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.d.ts +1 -0
  157. package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.styles.d.ts +1 -0
  158. package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.d.ts +1 -0
  159. package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
  160. package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.d.ts +1 -0
  161. package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.styles.d.ts +1 -0
  162. package/dist/components/table-view/column/useColumnCell.d.ts +24 -0
  163. package/dist/components/theme/Theme.d.ts +1 -0
  164. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
  165. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
  166. package/dist/components/themeContext.d.ts +10 -0
  167. package/dist/components/toast-container/ToastContainer.d.ts +1 -0
  168. package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
  169. package/dist/components/toast-container/openToastWhileRunning.d.ts +12 -0
  170. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  171. package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
  172. package/dist/components/visualization/Visualization.d.ts +7 -0
  173. package/dist/components/visualization/Visualization.styles.d.ts +7 -0
  174. package/dist/components/visualization/VisualizationScene.d.ts +22 -0
  175. package/dist/components/visualization/createVisualization.d.ts +68 -8
  176. package/dist/components/visualization/graph-node/GraphNode.d.ts +24 -0
  177. package/dist/components/visualization/table/Table.d.ts +1 -1
  178. package/dist/components/visualization/table/column/Column.d.ts +1 -1
  179. package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
  180. package/dist/components/visualization/visualizationView.d.ts +91 -0
  181. package/dist/constants/language.d.ts +3 -2
  182. package/dist/constants/layout.d.ts +7 -13
  183. package/dist/constants/open.d.ts +1 -0
  184. package/dist/constants/schema.d.ts +2 -1
  185. package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
  186. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
  187. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
  188. package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
  189. package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
  190. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
  191. package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
  192. package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
  193. package/dist/constants/sql/dataType/index.d.ts +1 -0
  194. package/dist/constants/sql/database.d.ts +1 -0
  195. package/dist/engine/actions.d.ts +1 -0
  196. package/dist/engine/clock.d.ts +1 -0
  197. package/dist/engine/context.d.ts +1 -0
  198. package/dist/engine/generator.actions.d.ts +1 -0
  199. package/dist/engine/history.actions.d.ts +1 -0
  200. package/dist/engine/history.d.ts +1 -0
  201. package/dist/engine/hooks.d.ts +1 -0
  202. package/dist/engine/index.d.ts +1 -0
  203. package/dist/engine/index.js +44 -0
  204. package/dist/engine/modules/editor/actions.d.ts +21 -0
  205. package/dist/engine/modules/editor/atom.actions.d.ts +92 -0
  206. package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
  207. package/dist/engine/modules/editor/history.d.ts +1 -0
  208. package/dist/engine/modules/editor/state.d.ts +31 -0
  209. package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
  210. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
  211. package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
  212. package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
  213. package/dist/engine/modules/index/actions.d.ts +1 -0
  214. package/dist/engine/modules/index/atom.actions.d.ts +1 -0
  215. package/dist/engine/modules/index/generator.actions.d.ts +1 -0
  216. package/dist/engine/modules/index/history.d.ts +1 -0
  217. package/dist/engine/modules/index-column/actions.d.ts +1 -0
  218. package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
  219. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
  220. package/dist/engine/modules/index-column/history.d.ts +1 -0
  221. package/dist/engine/modules/memo/actions.d.ts +1 -0
  222. package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
  223. package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
  224. package/dist/engine/modules/memo/history.d.ts +1 -0
  225. package/dist/engine/modules/relationship/actions.d.ts +1 -0
  226. package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
  227. package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
  228. package/dist/engine/modules/relationship/history.d.ts +1 -0
  229. package/dist/engine/modules/relationship/hooks.d.ts +1 -0
  230. package/dist/engine/modules/settings/actions.d.ts +3 -7
  231. package/dist/engine/modules/settings/atom.actions.d.ts +46 -32
  232. package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
  233. package/dist/engine/modules/settings/history.d.ts +1 -1
  234. package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
  235. package/dist/engine/modules/table/actions.d.ts +1 -0
  236. package/dist/engine/modules/table/atom.actions.d.ts +1 -0
  237. package/dist/engine/modules/table/generator.actions.d.ts +1 -0
  238. package/dist/engine/modules/table/history.d.ts +1 -0
  239. package/dist/engine/modules/table/hooks.d.ts +1 -0
  240. package/dist/engine/modules/table-column/actions.d.ts +1 -0
  241. package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
  242. package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
  243. package/dist/engine/modules/table-column/history.d.ts +1 -0
  244. package/dist/engine/modules/table-column/hooks.d.ts +1 -0
  245. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
  246. package/dist/engine/replication-store.d.ts +1 -0
  247. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
  248. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
  249. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
  250. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
  251. package/dist/engine/rx-operators/index.d.ts +1 -0
  252. package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
  253. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
  254. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
  255. package/dist/engine/rx-store.d.ts +1 -0
  256. package/dist/engine/shared-store.d.ts +1 -0
  257. package/dist/engine/state.d.ts +1 -0
  258. package/dist/engine/store-hooks.d.ts +1 -0
  259. package/dist/engine/store.d.ts +1 -0
  260. package/dist/engine/tag.d.ts +1 -0
  261. package/dist/erd-editor.umd.js +5259 -0
  262. package/dist/hooks/useDarkMode.d.ts +1 -0
  263. package/dist/hooks/useFlipAnimation.d.ts +1 -0
  264. package/dist/hooks/useKeyBindingMap.d.ts +1 -0
  265. package/dist/hooks/useUnmounted.d.ts +1 -0
  266. package/dist/index.d.ts +1 -0
  267. package/dist/index.dev.d.ts +1 -0
  268. package/dist/index.js +19991 -0
  269. package/dist/internal-types/index.d.ts +1 -0
  270. package/dist/konva/batchDraw.d.ts +42 -0
  271. package/dist/konva/host.d.ts +30 -0
  272. package/dist/konva/jsx-types.test-d.d.ts +2 -0
  273. package/dist/konva/scene/columnDropTarget.d.ts +14 -0
  274. package/dist/konva/scene/contentBounds.d.ts +29 -0
  275. package/dist/konva/scene/konvaFlip.d.ts +19 -0
  276. package/dist/konva/scene/metrics.d.ts +30 -0
  277. package/dist/konva/scene/renderScene.d.ts +35 -0
  278. package/dist/konva/scene/viewFreeze.d.ts +20 -0
  279. package/dist/konva/scene/viewport.d.ts +45 -0
  280. package/dist/konva/testHandle.d.ts +23 -0
  281. package/dist/konva/theme.d.ts +32 -0
  282. package/dist/konva/workerDomStubs.d.ts +2 -0
  283. package/dist/schemaGCService--wGet5O7.js +9636 -0
  284. package/dist/services/export-png/ExportScene.d.ts +16 -0
  285. package/dist/services/export-png/documentScene.d.ts +33 -0
  286. package/dist/services/export-png/exportBox.d.ts +27 -0
  287. package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
  288. package/dist/services/export-png/exportPngService.d.ts +25 -0
  289. package/dist/services/export-png/index.d.ts +55 -0
  290. package/dist/services/export-png/pixelRatio.d.ts +22 -0
  291. package/dist/services/export-png/renderPng.d.ts +40 -0
  292. package/dist/services/export-png/textWidth.d.ts +28 -0
  293. package/dist/services/schema-gc/index.d.ts +9 -1
  294. package/dist/services/schema-gc/procGC.d.ts +1 -0
  295. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
  296. package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
  297. package/dist/services/shikiService.d.ts +1 -0
  298. package/dist/styles/colorPicker.style.d.ts +4 -7
  299. package/dist/styles/fonts.styles.d.ts +2 -1
  300. package/dist/styles/reset.styles.d.ts +2 -1
  301. package/dist/styles/scrollbar.styles.d.ts +4 -3
  302. package/dist/styles/typography.styles.d.ts +2 -1
  303. package/dist/themes/radix-ui-theme.config.d.ts +1 -0
  304. package/dist/themes/radix-ui-theme.d.ts +1 -0
  305. package/dist/themes/tokens.d.ts +5 -0
  306. package/dist/utils/arrayHas.d.ts +3 -0
  307. package/dist/utils/attribute.d.ts +1 -0
  308. package/dist/utils/bit.d.ts +1 -0
  309. package/dist/utils/calcMemo.d.ts +1 -0
  310. package/dist/utils/calcTable.d.ts +2 -1
  311. package/dist/utils/clipboard.d.ts +1 -0
  312. package/dist/utils/collection/index.entity.d.ts +1 -0
  313. package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
  314. package/dist/utils/collection/memo.entity.d.ts +1 -0
  315. package/dist/utils/collection/relationship.entity.d.ts +1 -0
  316. package/dist/utils/collection/sequence.d.ts +1 -0
  317. package/dist/utils/collection/table.entity.d.ts +1 -0
  318. package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
  319. package/dist/utils/device-detect/index.d.ts +1 -0
  320. package/dist/utils/domEvent.d.ts +1 -0
  321. package/dist/utils/dragSelect.d.ts +1 -8
  322. package/dist/utils/draw-relationship/calc.d.ts +1 -0
  323. package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
  324. package/dist/utils/draw-relationship/draw.d.ts +1 -0
  325. package/dist/utils/draw-relationship/incremental.d.ts +71 -0
  326. package/dist/utils/draw-relationship/index.d.ts +48 -42
  327. package/dist/utils/draw-relationship/nudge.d.ts +3 -1
  328. package/dist/utils/draw-relationship/pathFinding.d.ts +4 -5
  329. package/dist/utils/draw-relationship/route.d.ts +5 -9
  330. package/dist/utils/draw-relationship/sort.d.ts +1 -0
  331. package/dist/utils/draw-relationship/stub.d.ts +6 -16
  332. package/dist/utils/emitter.d.ts +17 -0
  333. package/dist/utils/file/exportFile.d.ts +11 -1
  334. package/dist/utils/file/importFile.d.ts +1 -0
  335. package/dist/utils/flipAnimation.d.ts +1 -0
  336. package/dist/utils/focus.d.ts +2 -1
  337. package/dist/utils/generator-code/aml.d.ts +1 -0
  338. package/dist/utils/generator-code/csharp.d.ts +1 -0
  339. package/dist/utils/generator-code/dbml.d.ts +1 -0
  340. package/dist/utils/generator-code/drizzle.d.ts +1 -0
  341. package/dist/utils/generator-code/go.d.ts +1 -0
  342. package/dist/utils/generator-code/graphql.d.ts +1 -0
  343. package/dist/utils/generator-code/index.d.ts +1 -0
  344. package/dist/utils/generator-code/java.d.ts +1 -0
  345. package/dist/utils/generator-code/jpa.d.ts +1 -0
  346. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  347. package/dist/utils/generator-code/scala.d.ts +1 -0
  348. package/dist/utils/generator-code/sequelize.d.ts +1 -0
  349. package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
  350. package/dist/utils/generator-code/typeorm.d.ts +1 -0
  351. package/dist/utils/generator-code/typescript.d.ts +1 -0
  352. package/dist/utils/generator-code/utils.d.ts +1 -0
  353. package/dist/utils/globalEmitter.d.ts +1 -0
  354. package/dist/utils/globalEventObservable.d.ts +14 -12
  355. package/dist/utils/icon.d.ts +10 -1
  356. package/dist/utils/index.d.ts +2 -1
  357. package/dist/utils/internalEvents.d.ts +1 -0
  358. package/dist/utils/keyboard-shortcut/index.d.ts +16 -1
  359. package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
  360. package/dist/utils/promise.d.ts +1 -0
  361. package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
  362. package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
  363. package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
  364. package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
  365. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
  366. package/dist/utils/safeCallback.d.ts +5 -0
  367. package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
  368. package/dist/utils/schema-aml-parser/dataType.d.ts +6 -6
  369. package/dist/utils/schema-aml-parser/index.d.ts +1 -0
  370. package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
  371. package/dist/utils/schema-aml-parser/tokenizer.d.ts +4 -5
  372. package/dist/utils/schema-aml-parser/types.d.ts +14 -14
  373. package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
  374. package/dist/utils/schema-dbml-parser/dataType.d.ts +3 -2
  375. package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
  376. package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
  377. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
  378. package/dist/utils/schema-dbml-parser/types.d.ts +6 -5
  379. package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
  380. package/dist/utils/schema-graphql-parser/dataType.d.ts +3 -2
  381. package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
  382. package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
  383. package/dist/utils/schema-graphql-parser/types.d.ts +8 -7
  384. package/dist/utils/schema-sql/Databricks.d.ts +1 -0
  385. package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
  386. package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
  387. package/dist/utils/schema-sql/MySQL.d.ts +1 -0
  388. package/dist/utils/schema-sql/Oracle.d.ts +1 -0
  389. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
  390. package/dist/utils/schema-sql/SQLite.d.ts +1 -0
  391. package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
  392. package/dist/utils/schema-sql/index.d.ts +1 -0
  393. package/dist/utils/schema-sql/utils.d.ts +1 -0
  394. package/dist/utils/schema-sql-parser/index.d.ts +1 -0
  395. package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
  396. package/dist/utils/sharedColor.d.ts +1 -0
  397. package/dist/utils/table-clipboard/copy.d.ts +15 -2
  398. package/dist/utils/table-clipboard/index.d.ts +1 -0
  399. package/dist/utils/table-clipboard/paste.d.ts +1 -0
  400. package/dist/utils/table-clipboard/payload.d.ts +30 -1
  401. package/dist/utils/table-clipboard/placement.d.ts +1 -0
  402. package/dist/utils/text.d.ts +1 -0
  403. package/dist/utils/validation.d.ts +2 -1
  404. package/dist/workers/exportPng.shared-worker.js +54 -0
  405. package/dist/workers/schemaGC.shared-worker.js +1 -0
  406. package/dist/workers/spawn.d.ts +8 -0
  407. package/dist/workers/spawn.inline.d.ts +8 -0
  408. package/package.json +53 -51
  409. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -7
  410. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +0 -1
  411. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +0 -3
  412. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.styles.d.ts +0 -2
  413. package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +0 -1
  414. package/dist/components/erd/canvas/memo/Memo.styles.d.ts +0 -6
  415. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.styles.d.ts +0 -1
  416. package/dist/components/erd/canvas/table/column/Column.styles.d.ts +0 -2
  417. package/dist/components/erd/drag-select/DragSelect.d.ts +0 -9
  418. package/dist/components/erd/drag-select/DragSelect.styles.d.ts +0 -1
  419. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
  420. package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
  421. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
  422. package/dist/components/primitives/button/Button.stories.d.ts +0 -26
  423. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
  424. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
  425. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
  426. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
  427. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
  428. package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
  429. package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
  430. package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
  431. package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
  432. package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
  433. package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
  434. package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
  435. package/dist/components/primitives/toast/Toast.stories.d.ts +0 -20
  436. package/dist/engine.js +0 -42
  437. package/dist/erd-editor.js +0 -32023
  438. package/dist/schemaGCService-DAGNq0wk.js +0 -17092
  439. package/dist/services/schema-gc/schemaGC.worker.d.ts +0 -1
  440. package/dist/themes/textColor.d.ts +0 -2
@@ -1,20 +1,19 @@
1
1
  /**
2
- * `tokenizer.ts` and `parser.ts` own every AML syntax concern -- indentation,
3
- * quoting and the constraint grammar are resolved into the flat fields below,
4
- * so `convert.ts` never sees a token. Nesting is resolved the same way: a
5
- * nested attribute reaches `convert.ts` as one entry whose `path` is dotted.
2
+ * tokenizer.ts and parser.ts own every AML syntax concern, resolving
3
+ * indentation, quoting and the constraint grammar into the flat fields below,
4
+ * so convert.ts never sees a token and a nested attribute arrives dotted.
6
5
  */
7
6
  export type AMLNamespace = {
8
7
  database: string;
9
8
  catalog: string;
10
9
  schema: string;
11
10
  };
12
- /** `-` and `--` read as `1`, `>` and `<>` as `n`. */
11
+ /** A dash on either end reads as 1, an angle bracket as n. */
13
12
  export type AMLCardinality = '1' | 'n';
14
13
  export type AMLEndpoint = {
15
14
  namespace: AMLNamespace;
16
15
  entityName: string;
17
- /** Dotted from the entity root, so a nested endpoint keeps `settings.slug`. */
16
+ /** Dotted from the entity root, so a nested endpoint keeps settings.slug. */
18
17
  attributePaths: string[];
19
18
  };
20
19
  export type AMLRelation = {
@@ -22,12 +21,12 @@ export type AMLRelation = {
22
21
  ref: AMLEndpoint;
23
22
  srcCardinality: AMLCardinality;
24
23
  refCardinality: AMLCardinality;
25
- /** `-item_kind=User>`; the discriminator has no editor slot and is dropped. */
24
+ /** -item_kind=User>; the discriminator has no editor slot and is dropped. */
26
25
  polymorphic: boolean;
27
26
  };
28
27
  /**
29
- * One `unique` / `unique=name` / `index` / `index=name` constraint. A bare
30
- * `unique` is a column flag; every other spelling groups by `name`.
28
+ * One unique / unique=name / index / index=name constraint. A bare
29
+ * unique is a column flag; every other spelling groups by name.
31
30
  */
32
31
  export type AMLAttributeIndex = {
33
32
  name: string;
@@ -39,9 +38,9 @@ export type AMLAttribute = {
39
38
  comment: string;
40
39
  /** Holds the argument list and any array suffix; never the namespace. */
41
40
  typeName: string;
42
- /** Inline `status post_status(draft, published)` members. */
41
+ /** Inline status post_status(draft, published) members. */
43
42
  enumValues: string[];
44
- /** AML is NOT NULL by default, so `nullable` is what clears this. */
43
+ /** AML is NOT NULL by default, so nullable is what clears this. */
45
44
  notNull: boolean;
46
45
  primaryKey: boolean;
47
46
  indexes: AMLAttributeIndex[];
@@ -58,14 +57,14 @@ export type AMLEntity = {
58
57
  /** A struct and a custom type carry neither field, which is what stops a lookup. */
59
58
  export type AMLType = {
60
59
  values: string[];
61
- /** `type uid int` -- the aliased name. */
60
+ /** type uid int -- the aliased name. */
62
61
  alias: string;
63
62
  };
64
63
  export type AMLModel = {
65
64
  entities: AMLEntity[];
66
- /** Inline and standalone relations in source order, both with `src` filled. */
65
+ /** Inline and standalone relations in source order, both with src filled. */
67
66
  relations: AMLRelation[];
68
- /** Keyed by the qualified name, so `cms.post_status` and `post_status` stay apart. */
67
+ /** Keyed by the qualified name, so cms.post_status and post_status stay apart. */
69
68
  types: Record<string, AMLType>;
70
69
  skipped: string[];
71
70
  };
@@ -77,3 +76,4 @@ export type AMLParseResult = {
77
76
  message: string;
78
77
  };
79
78
  export declare const EMPTY_NAMESPACE: AMLNamespace;
79
+ //# sourceMappingURL=types.d.ts.map
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  import { DBMLModel } from './types';
4
4
  export declare function convertToSchema(model: DBMLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
5
+ //# sourceMappingURL=convert.d.ts.map
@@ -1,7 +1,8 @@
1
1
  import { DBMLModel } from './types';
2
2
  export declare function resolveDataType(typeName: string, typeSchemaName: string, database: number, model: DBMLModel): string;
3
3
  /**
4
- * Keeps the members where the column type cannot hold them. Pass `database` to
5
- * drop it on the dialects whose `ENUM(...)` column already spells them out.
4
+ * Keeps the members where the column type cannot hold them. Pass database to
5
+ * drop it on the dialects whose ENUM(...) column already spells them out.
6
6
  */
7
7
  export declare function enumCommentSuffix(typeName: string, typeSchemaName: string, model: DBMLModel, database: number): string;
8
+ //# sourceMappingURL=dataType.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  export declare function schemaDBMLParserToSchemaJson(dbml: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { DBMLParseResult } from './types';
2
2
  export declare function parseDBMLModel(source: string): DBMLParseResult;
3
+ //# sourceMappingURL=parser.d.ts.map
@@ -14,3 +14,4 @@ export type Token = {
14
14
  line: number;
15
15
  };
16
16
  export declare function tokenize(source: string): Token[];
17
+ //# sourceMappingURL=tokenizer.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * `tokenizer.ts` and `parser.ts` own every DBML syntax concern -- settings are
3
- * resolved into the flat fields below, so `convert.ts` never sees a token.
2
+ * tokenizer.ts and parser.ts own every DBML syntax concern -- settings are
3
+ * resolved into the flat fields below, so convert.ts never sees a token.
4
4
  */
5
5
  export type DBMLEndpoint = {
6
6
  schemaName: string;
@@ -8,7 +8,7 @@ export type DBMLEndpoint = {
8
8
  columnNames: string[];
9
9
  };
10
10
  export type DBMLInlineRef = {
11
- /** `-`, `<`, `>` or `<>`, with the `?` optionality markers dropped. */
11
+ /** -, <, > or <>, with the ? optionality markers dropped. */
12
12
  operator: string;
13
13
  target: DBMLEndpoint;
14
14
  };
@@ -28,7 +28,7 @@ export type DBMLColumn = {
28
28
  export type DBMLIndex = {
29
29
  name: string;
30
30
  unique: boolean;
31
- /** `[pk]`, which is DBML's only composite primary key spelling. */
31
+ /** [pk], which is DBML's only composite primary key spelling. */
32
32
  primaryKey: boolean;
33
33
  /** Expression columns are dropped, so these are column names only. */
34
34
  columnNames: string[];
@@ -49,7 +49,7 @@ export type DBMLRef = {
49
49
  export type DBMLModel = {
50
50
  tables: DBMLTable[];
51
51
  refs: DBMLRef[];
52
- /** Keyed by the qualified name, so `s.status` and `status` stay apart. */
52
+ /** Keyed by the qualified name, so s.status and status stay apart. */
53
53
  enums: Record<string, string[]>;
54
54
  skipped: string[];
55
55
  };
@@ -60,3 +60,4 @@ export type DBMLParseResult = {
60
60
  ok: false;
61
61
  message: string;
62
62
  };
63
+ //# sourceMappingURL=types.d.ts.map
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  import { GraphQLModel } from './types';
4
4
  export declare function convertToSchema(model: GraphQLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
5
+ //# sourceMappingURL=convert.d.ts.map
@@ -1,7 +1,8 @@
1
1
  import { GraphQLModel } from './types';
2
2
  export declare function resolveDataType(named: string, database: number, model: GraphQLModel): string;
3
3
  /**
4
- * Keeps the members where the column type cannot hold them. Pass `database` to
5
- * drop it on the dialects whose `ENUM(...)` column already spells them out.
4
+ * Keeps the members where the column type cannot hold them. Pass database to
5
+ * drop it on the dialects whose ENUM(...) column already spells them out.
6
6
  */
7
7
  export declare function enumCommentSuffix(named: string, model: GraphQLModel, database?: number): string;
8
+ //# sourceMappingURL=dataType.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  export declare function schemaGraphQLParserToSchemaJson(sdl: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { GraphQLParseResult } from './types';
2
2
  export declare function parseGraphQLModel(sdl: string): GraphQLParseResult;
3
+ //# sourceMappingURL=parser.d.ts.map
@@ -1,17 +1,17 @@
1
1
  /**
2
- * `parser.ts` owns every `graphql` AST concern -- directives are resolved into
3
- * the flat fields below, so `convert.ts` never imports from `graphql`.
2
+ * parser.ts owns every graphql AST concern -- directives are resolved into
3
+ * the flat fields below, so convert.ts never imports from graphql.
4
4
  */
5
5
  export type GraphQLTypeRef = {
6
6
  named: string;
7
- /** The outermost wrapper is `NonNull` -- the column-level NOT NULL signal. */
7
+ /** The outermost wrapper is NonNull -- the column-level NOT NULL signal. */
8
8
  nonNull: boolean;
9
9
  isList: boolean;
10
- /** The `!` inside `[T!]` -- a cardinality signal, never a column one. */
10
+ /** The ! inside [T!] -- a cardinality signal, never a column one. */
11
11
  itemNonNull: boolean;
12
12
  };
13
13
  export type GraphQLField = {
14
- /** Already rewritten by `@map` / `@column(name:)` when either is present. */
14
+ /** Already rewritten by @map / @column(name:) when either is present. */
15
15
  name: string;
16
16
  comment: string;
17
17
  typeRef: GraphQLTypeRef;
@@ -19,7 +19,7 @@ export type GraphQLField = {
19
19
  unique: boolean;
20
20
  autoIncrement: boolean;
21
21
  default: string;
22
- /** `@db.*` or `@column(dataType:)`; wins over the scalar lookup when set. */
22
+ /** @db.* or @column(dataType:); wins over the scalar lookup when set. */
23
23
  dataType: string;
24
24
  relationName: string;
25
25
  /** Columns on this type. */
@@ -43,7 +43,7 @@ export type GraphQLTable = {
43
43
  export type GraphQLModel = {
44
44
  tables: GraphQLTable[];
45
45
  enums: Record<string, string[]>;
46
- /** `scalar X` declarations, so an unknown name can be told from a typo. */
46
+ /** scalar X declarations, so an unknown name can be told from a typo. */
47
47
  customScalars: string[];
48
48
  unions: Record<string, string[]>;
49
49
  /** Pruned type names, so a field pointing at one is dropped rather than read. */
@@ -56,3 +56,4 @@ export type GraphQLParseResult = {
56
56
  ok: false;
57
57
  message: string;
58
58
  };
59
+ //# sourceMappingURL=types.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=Databricks.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=MSSQL.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=MariaDB.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=MySQL.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=Oracle.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=PostgreSQL.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=SQLite.d.ts.map
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
3
3
  export declare function createSchema(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
5
  export declare function formatIndex({ collections, settings: { bracketType } }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
6
+ //# sourceMappingURL=Snowflake.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { Table } from '../../internal-types';
3
3
  export declare function createSchemaSQL(state: RootState, database?: number): string;
4
4
  export declare function createSchemaSQLTable(state: RootState, table: Table): string;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -53,3 +53,4 @@ export declare function autoName<T extends {
53
53
  name: string;
54
54
  }>(list: T[], id: string, name: string, num?: number): string;
55
55
  export declare function toOrderName(orderType: number): "" | "ASC" | "DESC";
56
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  export declare function schemaSQLParserToSchemaJson(sql: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare function findByName<T extends {
2
2
  name: string;
3
3
  }>(list: T[], name: string): T | null;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const SharedColors: ReadonlyArray<string>;
2
2
  export declare function toSharedColor(id: string): string;
3
+ //# sourceMappingURL=sharedColor.d.ts.map
@@ -1,10 +1,23 @@
1
1
  import { RootState } from '../../engine/state';
2
2
  import { Settings } from '../../internal-types';
3
- import { ClipboardPayload } from '.';
3
+ import { ClipboardIndex, ClipboardPayload, ClipboardRelationship } from '.';
4
4
  export declare function tableCopyToText(state: RootState): string;
5
5
  export declare function tableCopyToHtml(state: RootState): string;
6
- export declare function entitiesCopyToPayload({ editor: { selectedMap }, collections, }: RootState): ClipboardPayload | null;
6
+ export declare function entitiesCopyToPayload(state: RootState): ClipboardPayload | null;
7
+ /**
8
+ * A relationship is copied only when both end tables are in the copied set:
9
+ * half of one would point at the source tables, and relationshipSort refuses to
10
+ * route it while the scene still draws it at the old anchors.
11
+ */
12
+ export declare function toClipboardRelationships({ doc, collections }: Pick<RootState, 'doc' | 'collections'>, tableIds: string[]): ClipboardRelationship[];
13
+ /**
14
+ * An index is copied whole or not at all, because a narrower copy of a
15
+ * composite index means something else — the same reason removeColumnAction$
16
+ * removes a whole index when one of its columns goes.
17
+ */
18
+ export declare function toClipboardIndexes({ doc, collections }: Pick<RootState, 'doc' | 'collections'>, tableIds: string[]): ClipboardIndex[];
7
19
  export declare function columnsCopyToPayload({ editor: { focusTable }, collections, }: RootState): ClipboardPayload | null;
8
20
  export declare function entitiesToTsv(payload: ClipboardPayload, settings: Settings): string;
9
21
  export declare function entitiesToHtmlTable(payload: ClipboardPayload, settings: Settings): string;
10
22
  export declare function payloadToHtml(payload: ClipboardPayload, tableHtml: string): string;
23
+ //# sourceMappingURL=copy.d.ts.map
@@ -15,3 +15,4 @@ export declare const CellType: {
15
15
  export type CellType = ValuesType<typeof CellType>;
16
16
  export declare const hasCellType: (value: string) => boolean;
17
17
  export declare function getShowColumnOrder(show: number, columnOrder: number[]): number[];
18
+ //# sourceMappingURL=index.d.ts.map
@@ -5,3 +5,4 @@ export declare function tablePasteFromTextToColumns({ settings: { show, columnOr
5
5
  export declare function tablePasteFromHtmlToColumns({ settings: { show, columnOrder } }: RootState, html: string): Column[];
6
6
  export declare function readClipboardPayload(dataTransfer: DataTransfer): ParseResult;
7
7
  export declare function payloadToColumns({ columns }: ClipboardPayload): Column[];
8
+ //# sourceMappingURL=paste.d.ts.map
@@ -52,6 +52,30 @@ export type ClipboardMemo = {
52
52
  color: string;
53
53
  };
54
54
  };
55
+ export type ClipboardRelationshipPoint = {
56
+ tableId: string;
57
+ columnIds: string[];
58
+ };
59
+ export type ClipboardRelationship = {
60
+ relationshipType: number;
61
+ start: ClipboardRelationshipPoint;
62
+ end: ClipboardRelationshipPoint;
63
+ };
64
+ export type ClipboardIndexColumn = {
65
+ columnId: string;
66
+ orderType: number;
67
+ };
68
+ /**
69
+ * An index rides with its table and nests its columns in indexColumnIds order,
70
+ * because an index column has no identity outside its index and nothing else
71
+ * ever refers to one.
72
+ */
73
+ export type ClipboardIndex = {
74
+ tableId: string;
75
+ name: string;
76
+ unique: boolean;
77
+ indexColumns: ClipboardIndexColumn[];
78
+ };
55
79
  export type ClipboardPayload = {
56
80
  format: typeof CLIPBOARD_FORMAT;
57
81
  version: number;
@@ -60,6 +84,8 @@ export type ClipboardPayload = {
60
84
  tables: ClipboardTable[];
61
85
  columns: ClipboardColumn[];
62
86
  memos: ClipboardMemo[];
87
+ relationships?: ClipboardRelationship[];
88
+ indexes?: ClipboardIndex[];
63
89
  };
64
90
  export type ParseResult = {
65
91
  status: 'ok';
@@ -76,8 +102,11 @@ type CreatePayloadConfig = {
76
102
  tables?: ClipboardTable[];
77
103
  columns?: ClipboardColumn[];
78
104
  memos?: ClipboardMemo[];
105
+ relationships?: ClipboardRelationship[];
106
+ indexes?: ClipboardIndex[];
79
107
  };
80
- export declare function createPayload({ kind, copyId, tables, columns, memos, }: CreatePayloadConfig): ClipboardPayload;
108
+ export declare function createPayload({ kind, copyId, tables, columns, memos, relationships, indexes, }: CreatePayloadConfig): ClipboardPayload;
81
109
  export declare function parsePayload(json: string): ParseResult;
82
110
  export declare function migratePayload(payload: ClipboardPayload): ClipboardPayload;
83
111
  export {};
112
+ //# sourceMappingURL=payload.d.ts.map
@@ -28,3 +28,4 @@ export type ResolvePlacementConfig = {
28
28
  findSource: (sourceId: string) => PlacementSource | undefined | null;
29
29
  };
30
30
  export declare function resolvePlacement({ entities, offset, escapeCollision, settings, tables, memos, findSource, }: ResolvePlacementConfig): Map<string, PlacementPoint>;
31
+ //# sourceMappingURL=placement.d.ts.map
@@ -2,3 +2,4 @@ export declare function createText(): {
2
2
  span: HTMLSpanElement;
3
3
  toWidth: (text: string) => number;
4
4
  };
5
+ //# sourceMappingURL=text.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export declare const toNumString: (value: string) => string;
2
- export declare const maxWidthCommentInRange: (num: number) => number;
2
+ export declare const maxWidthCommentInRange: (value: number) => number;
3
3
  export declare function canvasSizeInRange(size: number | string): number;
4
4
  export declare function zoomLevelInRange(zoom: number): number;
5
5
  export declare function toMaxWidthCommentFormat(width: number): string;
@@ -15,3 +15,4 @@ export declare function textInRange(width: number): number;
15
15
  export declare function toSafeString(value: any): string;
16
16
  export declare function isHighLevelTable(zoomLevel: number): boolean;
17
17
  export declare function isEditableTarget(target: EventTarget | null): boolean;
18
+ //# sourceMappingURL=validation.d.ts.map