@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.
Files changed (347) hide show
  1. package/README.md +316 -147
  2. package/dist/components/appContext.d.ts +4 -0
  3. package/dist/components/erd/Erd.d.ts +3 -0
  4. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +2 -1
  5. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +38 -2
  6. package/dist/components/erd/automatic-table-placement/elkPlacement.d.ts +42 -0
  7. package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +21 -0
  8. package/dist/components/erd/automatic-table-placement/placementActions.d.ts +14 -0
  9. package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +0 -11
  10. package/dist/components/erd/canvas/SceneIcon.template.d.ts +2 -2
  11. package/dist/components/erd/canvas/entityDrag.d.ts +17 -1
  12. package/dist/components/erd/canvas/middleButtonPan.d.ts +11 -0
  13. package/dist/components/erd/canvas/sceneTokens.d.ts +38 -0
  14. package/dist/components/erd/canvas/table/Table.d.ts +9 -1
  15. package/dist/components/erd/canvas/table/doubleClick.d.ts +3 -4
  16. package/dist/components/erd/canvas/table-group/TableGroup.d.ts +17 -0
  17. package/dist/components/erd/canvas/table-group/TableGroupBody.d.ts +17 -0
  18. package/dist/components/erd/canvas/table-group/TableGroupDropTarget.d.ts +10 -0
  19. package/dist/components/erd/canvas/table-group/TableGroupSash.d.ts +35 -0
  20. package/dist/components/erd/canvas/table-group/TableGroups.d.ts +10 -0
  21. package/dist/components/erd/canvas/table-group/tableGroupBox.d.ts +40 -0
  22. package/dist/components/erd/canvas/table-group/titleLayout.d.ts +45 -0
  23. package/dist/components/erd/canvas/useMoveEntity.d.ts +2 -0
  24. package/dist/components/erd/draw-target/DrawTargetButtons.d.ts +16 -0
  25. package/dist/components/erd/draw-target/DrawTargetButtons.styles.d.ts +14 -0
  26. package/dist/components/erd/draw-target/drawTargetState.d.ts +26 -0
  27. package/dist/components/erd/draw-target/findDrawTarget.d.ts +29 -0
  28. package/dist/components/erd/draw-target/placePill.d.ts +49 -0
  29. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
  30. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -0
  31. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +7 -2
  32. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +5 -1
  33. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +6 -2
  34. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +3 -1
  35. package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +3 -0
  36. package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
  37. package/dist/components/erd/hitTest.d.ts +16 -1
  38. package/dist/components/erd/minimap/MinimapScene.d.ts +1 -1
  39. package/dist/components/erd/minimap/table/Table.d.ts +3 -3
  40. package/dist/components/erd/minimap/table-group/TableGroup.d.ts +17 -0
  41. package/dist/components/erd/table-group/TableGroupDraft.d.ts +15 -0
  42. package/dist/components/erd/table-group/TableGroupDraft.styles.d.ts +6 -0
  43. package/dist/components/erd/table-group/tableGroupName.d.ts +21 -0
  44. package/dist/components/erd/table-group/useTableGroupDraw.d.ts +25 -0
  45. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +2 -2
  46. package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.d.ts +6 -0
  47. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +3 -0
  48. package/dist/components/erd/welcome-screen/WelcomeScreen.d.ts +17 -0
  49. package/dist/components/erd/welcome-screen/WelcomeScreen.styles.d.ts +17 -0
  50. package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.d.ts +21 -0
  51. package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +14 -0
  52. package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
  53. package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +87 -0
  54. package/dist/components/erd-editor/ErdEditor.d.ts +66 -6
  55. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
  56. package/dist/components/export-image/ExportImage.d.ts +23 -0
  57. package/dist/components/export-image/ExportImage.styles.d.ts +34 -0
  58. package/dist/components/export-image/exportImageActions.d.ts +48 -0
  59. package/dist/components/find-replace/panelLayout.d.ts +4 -1
  60. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  61. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +3 -0
  62. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +3 -0
  63. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +8 -0
  64. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +3 -0
  65. package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +17 -0
  66. package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts +5 -0
  67. package/dist/components/generator-code/generatorCodeView.d.ts +12 -0
  68. package/dist/components/generator-code/languageSettings.d.ts +14 -0
  69. package/dist/components/locale-picker/LocalePicker.d.ts +13 -0
  70. package/dist/components/locale-picker/LocalePicker.styles.d.ts +19 -0
  71. package/dist/components/localeContext.d.ts +10 -0
  72. package/dist/components/localized/Localized.d.ts +18 -0
  73. package/dist/components/map-columns/MapColumnsBody.d.ts +24 -0
  74. package/dist/components/map-columns/MapColumnsDialog.d.ts +13 -0
  75. package/dist/components/map-columns/MapColumnsDialog.styles.d.ts +38 -0
  76. package/dist/components/map-columns/mapColumnsAction.d.ts +13 -0
  77. package/dist/components/map-columns/nameOf.d.ts +6 -0
  78. package/dist/components/map-columns/openMapColumns.d.ts +9 -0
  79. package/dist/components/primitives/code-block/CodeBlock.d.ts +6 -1
  80. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -0
  81. package/dist/components/primitives/color-picker/ColorPicker.d.ts +10 -1
  82. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +25 -0
  83. package/dist/components/primitives/color-picker/colorModel.d.ts +36 -0
  84. package/dist/components/primitives/color-picker/presetColors.d.ts +13 -0
  85. package/dist/components/primitives/color-picker/resolveColor.d.ts +7 -0
  86. package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -0
  87. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  88. package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +4 -4
  89. package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts +8 -0
  90. package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.d.ts +2 -0
  91. package/dist/components/primitives/context-menu/menu/Menu.d.ts +2 -0
  92. package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.d.ts +5 -0
  93. package/dist/components/primitives/dialog/Dialog.d.ts +21 -0
  94. package/dist/components/primitives/dialog/Dialog.styles.d.ts +12 -0
  95. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +2 -5
  96. package/dist/components/primitives/icon/icons.d.ts +17 -0
  97. package/dist/components/primitives/select/Select.d.ts +18 -0
  98. package/dist/components/primitives/select/Select.styles.d.ts +13 -0
  99. package/dist/components/primitives/text-input/TextInput.d.ts +2 -0
  100. package/dist/components/primitives/toast/Toast.d.ts +5 -1
  101. package/dist/components/primitives/toast/Toast.styles.d.ts +2 -2
  102. package/dist/components/quick-search/QuickSearch.d.ts +2 -1
  103. package/dist/components/quick-search/actions.d.ts +40 -5
  104. package/dist/components/quick-search/hangul.d.ts +16 -10
  105. package/dist/components/quick-search/paletteQuery.d.ts +5 -4
  106. package/dist/components/quick-search/scopedActions.d.ts +6 -5
  107. package/dist/components/schema-sql/SchemaSQL.d.ts +2 -0
  108. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +7 -0
  109. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +3 -0
  110. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +3 -0
  111. package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.d.ts +29 -0
  112. package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.d.ts +27 -0
  113. package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +24 -0
  114. package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +45 -0
  115. package/dist/components/schema-sql/schema-sql-options/ScriptEditor.d.ts +20 -0
  116. package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.d.ts +13 -0
  117. package/dist/components/schema-sql/schema-sql-options/dropWarning.d.ts +8 -0
  118. package/dist/components/schema-sql/schemaSQLView.d.ts +71 -0
  119. package/dist/components/settings/Settings.styles.d.ts +7 -0
  120. package/dist/components/settings/columnTypeLabels.d.ts +8 -0
  121. package/dist/components/settings/lockSettingRows.d.ts +16 -0
  122. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +3 -0
  123. package/dist/components/settings/settingsPage.d.ts +10 -0
  124. package/dist/components/theme-builder/ThemeBuilder.d.ts +9 -1
  125. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -5
  126. package/dist/components/toast-container/openStatusToast.d.ts +29 -0
  127. package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -1
  128. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  129. package/dist/components/visualization/graph-node/GraphNode.d.ts +2 -2
  130. package/dist/components/visualization/graphPan.d.ts +12 -0
  131. package/dist/components/visualization/visualizationView.d.ts +2 -2
  132. package/dist/constants/language.d.ts +1 -1
  133. package/dist/constants/layout.d.ts +34 -0
  134. package/dist/constants/open.d.ts +3 -0
  135. package/dist/constants/schema.d.ts +25 -4
  136. package/dist/constants/sql/dataType/PostgreSQL.d.ts +2 -1
  137. package/dist/constants/sql/dataType/SQLite.d.ts +3 -1
  138. package/dist/engine/actions.d.ts +20 -2
  139. package/dist/engine/context.d.ts +6 -0
  140. package/dist/engine/index.js +26 -21
  141. package/dist/engine/modules/editor/actions.d.ts +10 -2
  142. package/dist/engine/modules/editor/atom.actions.d.ts +49 -11
  143. package/dist/engine/modules/editor/generator.actions.d.ts +107 -8
  144. package/dist/engine/modules/editor/state.d.ts +16 -3
  145. package/dist/engine/modules/editor/utils/color.d.ts +21 -0
  146. package/dist/engine/modules/editor/utils/duplicate.d.ts +28 -1
  147. package/dist/engine/modules/editor/utils/focus.d.ts +16 -0
  148. package/dist/engine/modules/editor/utils/releaseHidden.d.ts +16 -0
  149. package/dist/engine/modules/editor/utils/selection.d.ts +12 -0
  150. package/dist/engine/modules/relationship/actions.d.ts +6 -0
  151. package/dist/engine/modules/relationship/atom.actions.d.ts +57 -1
  152. package/dist/engine/modules/relationship/endFlags.d.ts +14 -0
  153. package/dist/engine/modules/relationship/fkColumns.d.ts +25 -6
  154. package/dist/engine/modules/relationship/history.d.ts +1 -0
  155. package/dist/engine/modules/relationship/hooks.d.ts +0 -11
  156. package/dist/engine/modules/relationship/referenceType.d.ts +12 -0
  157. package/dist/engine/modules/settings/actions.d.ts +17 -4
  158. package/dist/engine/modules/settings/atom.actions.d.ts +63 -19
  159. package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
  160. package/dist/engine/modules/settings/history.d.ts +1 -0
  161. package/dist/engine/modules/table/actions.d.ts +8 -0
  162. package/dist/engine/modules/table/atom.actions.d.ts +31 -0
  163. package/dist/engine/modules/table/generator.actions.d.ts +3 -3
  164. package/dist/engine/modules/table/history.d.ts +1 -0
  165. package/dist/engine/modules/table-column/generator.actions.d.ts +8 -0
  166. package/dist/engine/modules/table-column/hooks.d.ts +0 -6
  167. package/dist/engine/modules/table-column/keys.d.ts +14 -0
  168. package/dist/engine/modules/table-column/utils/dataType.d.ts +19 -1
  169. package/dist/engine/modules/table-group/actions.d.ts +63 -0
  170. package/dist/engine/modules/table-group/atom.actions.d.ts +238 -0
  171. package/dist/engine/modules/table-group/generator.actions.d.ts +111 -0
  172. package/dist/engine/modules/table-group/history.d.ts +13 -0
  173. package/dist/engine/peer-store.d.ts +9 -3
  174. package/dist/engine/replication-store.d.ts +6 -3
  175. package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -1
  176. package/dist/engine/rx-operators/lockIgnoreFilter.d.ts +8 -0
  177. package/dist/engine/rx-store.d.ts +2 -0
  178. package/dist/engine/settle.d.ts +9 -0
  179. package/dist/engine/store-hooks.d.ts +0 -8
  180. package/dist/erd-editor.umd.js +2100 -4194
  181. package/dist/hooks/useNavigatorLanguages.d.ts +7 -0
  182. package/dist/i18n/locales.d.ts +126 -0
  183. package/dist/i18n/menuLabel.d.ts +12 -0
  184. package/dist/i18n/messages/ar-SA.d.ts +399 -0
  185. package/dist/i18n/messages/de-DE.d.ts +375 -0
  186. package/dist/i18n/messages/en/code.d.ts +17 -0
  187. package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
  188. package/dist/i18n/messages/en/common.d.ts +65 -0
  189. package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
  190. package/dist/i18n/messages/en/exportImage.d.ts +25 -0
  191. package/dist/i18n/messages/en/feedback.d.ts +11 -0
  192. package/dist/i18n/messages/en/findReplace.d.ts +36 -0
  193. package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
  194. package/dist/i18n/messages/en/index.d.ts +378 -0
  195. package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
  196. package/dist/i18n/messages/en/palette.d.ts +40 -0
  197. package/dist/i18n/messages/en/schemaSql.d.ts +28 -0
  198. package/dist/i18n/messages/en/settings.d.ts +22 -0
  199. package/dist/i18n/messages/en/shortcuts.d.ts +32 -0
  200. package/dist/i18n/messages/en/tableProperties.d.ts +34 -0
  201. package/dist/i18n/messages/en/themeBuilder.d.ts +7 -0
  202. package/dist/i18n/messages/en/toolbar.d.ts +9 -0
  203. package/dist/i18n/messages/en/visualization.d.ts +12 -0
  204. package/dist/i18n/messages/en/welcome.d.ts +13 -0
  205. package/dist/i18n/messages/es-ES.d.ts +381 -0
  206. package/dist/i18n/messages/eu-ES.d.ts +375 -0
  207. package/dist/i18n/messages/fa-IR.d.ts +375 -0
  208. package/dist/i18n/messages/fr-FR.d.ts +381 -0
  209. package/dist/i18n/messages/he-IL.d.ts +381 -0
  210. package/dist/i18n/messages/id-ID.d.ts +369 -0
  211. package/dist/i18n/messages/index.d.ts +11 -0
  212. package/dist/i18n/messages/it-IT.d.ts +381 -0
  213. package/dist/i18n/messages/ja-JP.d.ts +369 -0
  214. package/dist/i18n/messages/ko-KR.d.ts +369 -0
  215. package/dist/i18n/messages/nl-NL.d.ts +375 -0
  216. package/dist/i18n/messages/pl-PL.d.ts +387 -0
  217. package/dist/i18n/messages/pt-BR.d.ts +381 -0
  218. package/dist/i18n/messages/pt-PT.d.ts +381 -0
  219. package/dist/i18n/messages/ro-RO.d.ts +381 -0
  220. package/dist/i18n/messages/ru-RU.d.ts +387 -0
  221. package/dist/i18n/messages/sk-SK.d.ts +387 -0
  222. package/dist/i18n/messages/sl-SI.d.ts +387 -0
  223. package/dist/i18n/messages/sv-SE.d.ts +375 -0
  224. package/dist/i18n/messages/tr-TR.d.ts +375 -0
  225. package/dist/i18n/messages/uk-UA.d.ts +387 -0
  226. package/dist/i18n/messages/zh-CN.d.ts +369 -0
  227. package/dist/i18n/messages/zh-TW.d.ts +369 -0
  228. package/dist/i18n/resolveLocale.d.ts +11 -0
  229. package/dist/i18n/source.d.ts +7 -0
  230. package/dist/i18n/translate.d.ts +58 -0
  231. package/dist/index.d.ts +2 -0
  232. package/dist/index.js +29797 -13894
  233. package/dist/internal-types/index.d.ts +2 -4
  234. package/dist/konva/scene/contentBounds.d.ts +18 -12
  235. package/dist/konva/scene/metrics.d.ts +2 -0
  236. package/dist/konva/scene/renderScene.d.ts +10 -4
  237. package/dist/konva/scene/stacking.d.ts +21 -0
  238. package/dist/konva/scene/viewLayout.d.ts +2 -1
  239. package/dist/loadValue-B3EFSe9k.js +12925 -0
  240. package/dist/peer/index.d.ts +6 -3
  241. package/dist/peer/index.js +83 -76
  242. package/dist/services/elk-layout/elkGraph.d.ts +6 -4
  243. package/dist/services/elk-layout/elkLayoutOptions.d.ts +20 -0
  244. package/dist/services/elk-layout/elkLayoutService.d.ts +3 -3
  245. package/dist/services/export-png/ExportScene.d.ts +3 -3
  246. package/dist/services/export-png/documentScene.d.ts +14 -9
  247. package/dist/services/export-png/exportBox.d.ts +40 -5
  248. package/dist/services/export-png/exportPngService.d.ts +15 -0
  249. package/dist/services/export-png/exportTheme.d.ts +26 -0
  250. package/dist/services/export-png/index.d.ts +44 -11
  251. package/dist/services/export-png/renderPng.d.ts +18 -10
  252. package/dist/services/export-png/renderSvg.d.ts +22 -0
  253. package/dist/services/export-png/sceneSvg.d.ts +54 -0
  254. package/dist/services/shiki/graphqlGrammar.d.ts +8 -0
  255. package/dist/shared-store-fUggY7sI.js +1341 -0
  256. package/dist/themes/radix-ui-theme.d.ts +11 -3
  257. package/dist/themes/tokens.d.ts +9 -0
  258. package/dist/utils/calcTable.d.ts +9 -0
  259. package/dist/utils/clipboard.d.ts +9 -0
  260. package/dist/utils/collection/tableGroup.entity.d.ts +3 -0
  261. package/dist/utils/contrastText.d.ts +21 -0
  262. package/dist/utils/deepMerge.d.ts +8 -0
  263. package/dist/utils/device-detect/index.d.ts +2 -6
  264. package/dist/utils/domEvent.d.ts +18 -0
  265. package/dist/utils/dragSelect.d.ts +2 -0
  266. package/dist/utils/draw-relationship/bezier.d.ts +2 -0
  267. package/dist/utils/draw-relationship/corner.d.ts +9 -0
  268. package/dist/utils/draw-relationship/index.d.ts +18 -18
  269. package/dist/utils/draw-relationship/loop.d.ts +29 -0
  270. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -1
  271. package/dist/utils/draw-relationship/sort.d.ts +8 -1
  272. package/dist/utils/draw-relationship/stub.d.ts +4 -3
  273. package/dist/utils/emitter.d.ts +53 -6
  274. package/dist/utils/file/exportFile.d.ts +15 -5
  275. package/dist/utils/file/importFile.d.ts +9 -5
  276. package/dist/utils/file/importSchema.d.ts +45 -0
  277. package/dist/utils/find-replace/findMatches.d.ts +1 -1
  278. package/dist/utils/find-replace/present.d.ts +5 -3
  279. package/dist/utils/generator-code/columnTypes.d.ts +99 -0
  280. package/dist/utils/generator-code/doctrine.d.ts +6 -0
  281. package/dist/utils/generator-code/doctrineReservedWords.d.ts +7 -0
  282. package/dist/utils/generator-code/graphql.d.ts +6 -0
  283. package/dist/utils/generator-code/heck.d.ts +5 -0
  284. package/dist/utils/generator-code/java.d.ts +28 -0
  285. package/dist/utils/generator-code/jsonSchema.d.ts +50 -0
  286. package/dist/utils/generator-code/jsonShape.d.ts +37 -0
  287. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  288. package/dist/utils/generator-code/mermaid.d.ts +5 -0
  289. package/dist/utils/generator-code/php.d.ts +28 -0
  290. package/dist/utils/generator-code/rust.d.ts +13 -0
  291. package/dist/utils/generator-code/rustTypes.d.ts +44 -0
  292. package/dist/utils/generator-code/scala.d.ts +1 -0
  293. package/dist/utils/generator-code/seaorm.d.ts +22 -0
  294. package/dist/utils/generator-code/swift.d.ts +44 -0
  295. package/dist/utils/generator-code/utils.d.ts +19 -0
  296. package/dist/utils/generator-code/zod.d.ts +25 -0
  297. package/dist/utils/globalEventObservable.d.ts +10 -1
  298. package/dist/utils/highlightWords.d.ts +29 -0
  299. package/dist/utils/index.d.ts +1 -2
  300. package/dist/utils/keyboard-shortcut/bindKeys.d.ts +9 -0
  301. package/dist/utils/keyboard-shortcut/index.d.ts +11 -4
  302. package/dist/utils/keyboard-shortcut/utils.d.ts +21 -0
  303. package/dist/utils/map-columns/alignTypes.d.ts +37 -0
  304. package/dist/utils/map-columns/buildRows.d.ts +102 -0
  305. package/dist/utils/map-columns/candidateKeys.d.ts +24 -0
  306. package/dist/utils/map-columns/index.d.ts +8 -0
  307. package/dist/utils/map-columns/mapping.d.ts +67 -0
  308. package/dist/utils/map-columns/prefill.d.ts +26 -0
  309. package/dist/utils/map-columns/toMapColumnsActions.d.ts +10 -0
  310. package/dist/utils/map-columns/validate.d.ts +45 -0
  311. package/dist/utils/memo.d.ts +4 -0
  312. package/dist/utils/schema-aml-parser/types.d.ts +2 -0
  313. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +2 -0
  314. package/dist/utils/schema-dbml-parser/types.d.ts +11 -0
  315. package/dist/utils/schema-sql/Databricks.d.ts +8 -3
  316. package/dist/utils/schema-sql/MSSQL.d.ts +14 -2
  317. package/dist/utils/schema-sql/MariaDB.d.ts +6 -5
  318. package/dist/utils/schema-sql/MySQL.d.ts +13 -4
  319. package/dist/utils/schema-sql/Oracle.d.ts +19 -5
  320. package/dist/utils/schema-sql/PostgreSQL.d.ts +16 -4
  321. package/dist/utils/schema-sql/SQLite.d.ts +16 -4
  322. package/dist/utils/schema-sql/Snowflake.d.ts +8 -3
  323. package/dist/utils/schema-sql/index.d.ts +16 -1
  324. package/dist/utils/schema-sql/options.d.ts +57 -0
  325. package/dist/utils/schema-sql/utils.d.ts +101 -2
  326. package/dist/utils/stageCursor.d.ts +20 -0
  327. package/dist/utils/table-clipboard/placement.d.ts +2 -0
  328. package/dist/utils/tableColor.d.ts +29 -0
  329. package/dist/utils/tableGroup.d.ts +142 -0
  330. package/dist/utils/tableKeys.d.ts +11 -3
  331. package/dist/workers/elkLayout.shared-worker.js +1 -1
  332. package/dist/workers/exportPng.shared-worker.js +30 -30
  333. package/dist/workers/shiki.shared-worker.js +1 -1
  334. package/dist/workers/spawn.d.ts +1 -2
  335. package/dist/workers/spawn.inline.d.ts +0 -1
  336. package/package.json +6 -13
  337. package/dist/components/generator-code/GeneratorCode.styles.d.ts +0 -2
  338. package/dist/loadValue-Mdc5K4qO.js +0 -10858
  339. package/dist/schemaGCService-CZtGFh2z.js +0 -42
  340. package/dist/services/schema-gc/index.d.ts +0 -18
  341. package/dist/services/schema-gc/procGC.d.ts +0 -4
  342. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +0 -2
  343. package/dist/services/schema-gc/schemaGCService.d.ts +0 -10
  344. package/dist/shared-store-D82WVL5a.js +0 -1129
  345. package/dist/styles/colorPicker.style.d.ts +0 -7
  346. package/dist/utils/draw-relationship/chamfer.d.ts +0 -3
  347. package/dist/workers/schemaGC.shared-worker.js +0 -1
@@ -1,3 +1,4 @@
1
+ import { LocaleMessages } from '../../i18n/translate';
1
2
  import { Theme } from '../../themes/tokens';
2
3
  import { ResolutionReduction } from './renderPng';
3
4
  import { ToWidth } from './textWidth';
@@ -27,29 +28,61 @@ export type DocumentPngOptions = {
27
28
  * than to be called across a boundary a function does not cross.
28
29
  */
29
30
  toWidth: ToWidth;
31
+ /** Image pixels per scene unit: the scale a dialog picks, 1 when left out. */
30
32
  pixelRatio?: number;
31
33
  /**
32
- * The zoom the image is drawn at, which is the editor's own rather than the
33
- * document's whenever the author asked for the zoom not to be saved. Left
34
- * out, the image is drawn at the zoom the document carries.
34
+ * The language the scene's own words are drawn in, a table with no name say.
35
+ * Left out, the scene draws them in English.
35
36
  */
36
- zoomLevel?: number;
37
+ i18n?: LocaleMessages;
37
38
  /**
38
- * Called once, after a file exists, when the box outran what a canvas holds
39
- * and the image had to be scaled down. A caller with somewhere to put it is
40
- * what turns a silent loss of resolution into something the author is told.
39
+ * Called once, after a file exists, when the pixels the scale asked for
40
+ * outran what a canvas holds, with those and the pixels written. A caller
41
+ * with somewhere to put it tells the author of a loss that is otherwise silent.
41
42
  */
42
43
  onResolutionReduced?: (reduction: ResolutionReduction) => void;
43
44
  /** Called as the export moves, for a caller that shows it is running. */
44
45
  onProgress?: (progress: ExportPngProgress) => void;
45
46
  };
46
47
  /**
47
- * A png of everything the document draws, at the zoom it is being read at. The
48
- * scene is drawn again from the document rather than read off the screen, so
49
- * the image holds the whole document however far it was scrolled away.
48
+ * A png of everything the document draws, at 100% whatever zoom it is being
49
+ * read at. The scene is drawn again from the document rather than read off the
50
+ * screen, so the image holds the whole document however far it was scrolled away.
50
51
  *
51
52
  * @example
52
53
  * const blob = await createDocumentPng({ doc: toJson(store.state), theme, toWidth });
53
54
  */
54
- export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio, zoomLevel, onResolutionReduced, onProgress, }: DocumentPngOptions): Promise<Blob>;
55
+ export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio, i18n, onResolutionReduced, onProgress, }: DocumentPngOptions): Promise<Blob>;
56
+ export type DocumentPreviewOptions = Pick<DocumentPngOptions, 'doc' | 'theme' | 'toWidth' | 'i18n'> & {
57
+ /** The longest side the preview may take, in pixels. */
58
+ maxSide: number;
59
+ };
60
+ /** A small png of the export, and the box the export itself is measured by. */
61
+ export type DocumentPreview = {
62
+ blob: Blob;
63
+ width: number;
64
+ height: number;
65
+ /** The box the export holds, in scene units, margin included. */
66
+ documentWidth: number;
67
+ documentHeight: number;
68
+ };
69
+ /**
70
+ * The export drawn small, for a dialog to show before any file is written. It
71
+ * takes the same path as the export, worker first, so the picture is the one
72
+ * the file will hold, its scale capped at the side it is given.
73
+ *
74
+ * @example
75
+ * const preview = await createDocumentPreview({ doc, theme, toWidth, maxSide: 1280 });
76
+ */
77
+ export declare function createDocumentPreview({ doc, theme, toWidth, maxSide, i18n, }: DocumentPreviewOptions): Promise<DocumentPreview>;
78
+ export type DocumentSvgOptions = Pick<DocumentPngOptions, 'doc' | 'theme' | 'toWidth' | 'i18n'>;
79
+ /**
80
+ * An svg of everything the document draws, at 100% as the png is. It takes
81
+ * the png's path, worker first, and leaves the scale out, since a vector is
82
+ * sized by the box alone and holds no canvas ceiling to cut it.
83
+ *
84
+ * @example
85
+ * const svg = await createDocumentSvg({ doc, theme, toWidth });
86
+ */
87
+ export declare function createDocumentSvg({ doc, theme, toWidth, i18n, }: DocumentSvgOptions): Promise<string>;
55
88
  //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,32 @@
1
+ import { LocaleMessages } from '../../i18n/translate';
1
2
  import { Theme } from '../../themes/tokens';
3
+ import { ExportSize } from './exportBox';
2
4
  import { ToWidth } from './textWidth';
3
- /** The box that was asked for and the raster that fitted inside a canvas. */
4
- export type ResolutionReduction = {
5
- documentWidth: number;
6
- documentHeight: number;
7
- width: number;
8
- height: number;
9
- };
5
+ /**
6
+ * The raster the scale asked for and the one that fitted inside a canvas, in
7
+ * the very fields the export dialog reads its warning from.
8
+ */
9
+ export type ResolutionReduction = Omit<ExportSize, 'reduced'>;
10
10
  /** Everything a png needs that survives a structured clone to another realm. */
11
11
  export type RenderPngRequest = {
12
12
  doc: string;
13
13
  theme: Theme;
14
14
  pixelRatio: number;
15
- /** The zoom to draw at; the document's own when the caller names none. */
16
- zoomLevel?: number;
15
+ /**
16
+ * The longest side the drawn box may take, in pixels, for an image that only
17
+ * previews an export. Left out, the box is drawn at the export's zoom.
18
+ */
19
+ maxSide?: number;
20
+ /** The language the scene's own words are drawn in; English when left out. */
21
+ i18n?: LocaleMessages;
17
22
  };
18
23
  export type RenderPngResult = {
19
24
  blob: Blob;
20
25
  width: number;
21
26
  height: number;
27
+ /** The box the image holds, in scene units, margin included. */
28
+ documentWidth: number;
29
+ documentHeight: number;
22
30
  /**
23
31
  * Null when the box kept every pixel it was written with. A realm that drew
24
32
  * the image is the only one that knows this, so it is carried back rather
@@ -34,7 +42,7 @@ export type RenderPngResult = {
34
42
  * @example
35
43
  * const { blob } = await renderDocumentPng({ doc, theme, pixelRatio: 1, toWidth });
36
44
  */
37
- export declare function renderDocumentPng({ doc, theme, pixelRatio, zoomLevel, toWidth, }: RenderPngRequest & {
45
+ export declare function renderDocumentPng({ doc, theme, pixelRatio, maxSide, i18n, toWidth, }: RenderPngRequest & {
38
46
  toWidth: ToWidth;
39
47
  }): Promise<RenderPngResult>;
40
48
  //# sourceMappingURL=renderPng.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { LocaleMessages } from '../../i18n/translate';
2
+ import { Theme } from '../../themes/tokens';
3
+ import { ToWidth } from './textWidth';
4
+ /** Everything an svg needs that survives a structured clone to another realm. */
5
+ export type RenderSvgRequest = {
6
+ doc: string;
7
+ theme: Theme;
8
+ /** The language the scene's own words are drawn in; English when left out. */
9
+ i18n?: LocaleMessages;
10
+ };
11
+ /**
12
+ * The whole document as an svg, at the export's zoom and with no scale, since
13
+ * a vector has no pixels to multiply. It draws the scene the png draws, in
14
+ * whichever realm calls it, and reads the svg off that scene's nodes.
15
+ *
16
+ * @example
17
+ * const svg = await renderDocumentSvg({ doc, theme, toWidth });
18
+ */
19
+ export declare function renderDocumentSvg({ doc, theme, i18n, toWidth, }: RenderSvgRequest & {
20
+ toWidth: ToWidth;
21
+ }): Promise<string>;
22
+ //# sourceMappingURL=renderSvg.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { Stage } from 'konva/lib/Stage';
2
+ import { Rect } from '../../konva/scene/metrics';
3
+ /** The seven node kinds the scene is built of, by the class name konva gives each. */
4
+ export declare const SVG_NODE_KINDS: readonly ["Layer", "Group", "Rect", "Text", "Path", "Line", "Circle"];
5
+ export type SvgNodeKind = (typeof SVG_NODE_KINDS)[number];
6
+ /**
7
+ * What the writer reads off each kind. A layer is placed past the box mapped
8
+ * onto the Stage, which the viewBox maps instead, and a text is written in the
9
+ * lines konva wrapped and cut it to.
10
+ */
11
+ export declare const SVG_WRITTEN_ATTRIBUTES: Record<SvgNodeKind, readonly string[]>;
12
+ /**
13
+ * What the writer leaves out on purpose: names and the editor's bookkeeping,
14
+ * what only the hit canvas reads, and the shadows an exported svg draws none of.
15
+ */
16
+ export declare const SVG_SKIPPED_ATTRIBUTES: readonly string[];
17
+ export type SceneSvgOptions = {
18
+ /**
19
+ * What the image holds, in scene units, which the viewBox is and, an export
20
+ * being drawn at 100%, its width and height too.
21
+ */
22
+ box: Rect;
23
+ /** The factor the layers place that box onto the Stage by. */
24
+ scale: number;
25
+ };
26
+ /**
27
+ * A colour as the file writes it: an opaque colour, and the alpha it carried
28
+ * apart from it, rounded to the digits an opacity is written in.
29
+ */
30
+ export type Paint = {
31
+ color: string;
32
+ opacity: number;
33
+ };
34
+ /**
35
+ * Whether a colour paints anything at all, and how. A hit box answers the
36
+ * pointer with a transparent fill, which the svg has no pointer to answer, so
37
+ * it is left out, as is a colour whose alpha rounds to none.
38
+ *
39
+ * @example
40
+ * toPaint('transparent'); // null
41
+ * toPaint('#00071b7f'); // { color: '#00071b', opacity: 0.498 }
42
+ */
43
+ export declare function toPaint(color: unknown): Paint | null;
44
+ /**
45
+ * The scene on a Stage as one svg document, walked node by node, so it runs
46
+ * wherever the Stage was drawn, a worker included. The fonts are named, never
47
+ * embedded, and the shadows are left out, as the export dialog promises.
48
+ *
49
+ * @example
50
+ * const { stage, box, scale } = scene;
51
+ * const svg = toSceneSvg(stage, { box, scale });
52
+ */
53
+ export declare function toSceneSvg(stage: Stage, options: SceneSvgOptions): string;
54
+ //# sourceMappingURL=sceneSvg.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { LanguageRegistration } from 'shiki/core';
2
+ /**
3
+ * Shiki's GraphQL grammar without its embeddedLangs, the JavaScript, TypeScript,
4
+ * JSX and TSX of a GraphQL string inside a script, which no generated schema
5
+ * holds: they took the inlined shiki worker past Chromium's 2 MiB url limit.
6
+ */
7
+ export declare const graphqlGrammar: LanguageRegistration;
8
+ //# sourceMappingURL=graphqlGrammar.d.ts.map