@dineug/erd-editor 3.9.2 → 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 (375) hide show
  1. package/README.md +321 -133
  2. package/dist/components/appContext.d.ts +4 -0
  3. package/dist/components/erd/Erd.d.ts +4 -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/relationship-group/relationship/Relationship.d.ts +2 -0
  14. package/dist/components/erd/canvas/relationship-group/relationship/RelationshipActionLabel.d.ts +32 -0
  15. package/dist/components/erd/canvas/sceneTokens.d.ts +38 -0
  16. package/dist/components/erd/canvas/table/Table.d.ts +9 -1
  17. package/dist/components/erd/canvas/table/cellLayout.d.ts +11 -0
  18. package/dist/components/erd/canvas/table/column/Column.d.ts +7 -0
  19. package/dist/components/erd/canvas/table/doubleClick.d.ts +3 -4
  20. package/dist/components/erd/canvas/table/goToErd.d.ts +3 -10
  21. package/dist/components/erd/canvas/table-group/TableGroup.d.ts +17 -0
  22. package/dist/components/erd/canvas/table-group/TableGroupBody.d.ts +17 -0
  23. package/dist/components/erd/canvas/table-group/TableGroupDropTarget.d.ts +10 -0
  24. package/dist/components/erd/canvas/table-group/TableGroupSash.d.ts +35 -0
  25. package/dist/components/erd/canvas/table-group/TableGroups.d.ts +10 -0
  26. package/dist/components/erd/canvas/table-group/tableGroupBox.d.ts +40 -0
  27. package/dist/components/erd/canvas/table-group/titleLayout.d.ts +45 -0
  28. package/dist/components/erd/canvas/useMoveEntity.d.ts +2 -0
  29. package/dist/components/erd/draw-target/DrawTargetButtons.d.ts +16 -0
  30. package/dist/components/erd/draw-target/DrawTargetButtons.styles.d.ts +14 -0
  31. package/dist/components/erd/draw-target/drawTargetState.d.ts +26 -0
  32. package/dist/components/erd/draw-target/findDrawTarget.d.ts +29 -0
  33. package/dist/components/erd/draw-target/placePill.d.ts +49 -0
  34. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
  35. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -0
  36. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +7 -2
  37. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +5 -1
  38. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +16 -1
  39. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +3 -1
  40. package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +3 -0
  41. package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
  42. package/dist/components/erd/goToErdTarget.d.ts +85 -0
  43. package/dist/components/erd/hitTest.d.ts +16 -1
  44. package/dist/components/erd/minimap/MinimapScene.d.ts +1 -1
  45. package/dist/components/erd/minimap/table/Table.d.ts +3 -3
  46. package/dist/components/erd/minimap/table-group/TableGroup.d.ts +17 -0
  47. package/dist/components/erd/table-group/TableGroupDraft.d.ts +15 -0
  48. package/dist/components/erd/table-group/TableGroupDraft.styles.d.ts +6 -0
  49. package/dist/components/erd/table-group/tableGroupName.d.ts +21 -0
  50. package/dist/components/erd/table-group/useTableGroupDraw.d.ts +25 -0
  51. package/dist/components/erd/table-properties/TableProperties.d.ts +2 -0
  52. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +24 -2
  53. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +2 -0
  54. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +32 -0
  55. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +7 -0
  56. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +5 -0
  57. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +7 -0
  58. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
  59. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +7 -0
  60. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +6 -0
  61. package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.d.ts +21 -0
  62. package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.styles.d.ts +13 -0
  63. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +3 -0
  64. package/dist/components/erd/welcome-screen/WelcomeScreen.d.ts +17 -0
  65. package/dist/components/erd/welcome-screen/WelcomeScreen.styles.d.ts +17 -0
  66. package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.d.ts +21 -0
  67. package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +14 -0
  68. package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
  69. package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +87 -0
  70. package/dist/components/erd-editor/ErdEditor.d.ts +67 -7
  71. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
  72. package/dist/components/export-image/ExportImage.d.ts +23 -0
  73. package/dist/components/export-image/ExportImage.styles.d.ts +34 -0
  74. package/dist/components/export-image/exportImageActions.d.ts +48 -0
  75. package/dist/components/find-replace/FindReplace.d.ts +13 -0
  76. package/dist/components/find-replace/FindReplace.styles.d.ts +27 -0
  77. package/dist/components/find-replace/fieldIcon.d.ts +5 -0
  78. package/dist/components/find-replace/matchTarget.d.ts +26 -0
  79. package/dist/components/find-replace/panelLayout.d.ts +20 -0
  80. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  81. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +3 -0
  82. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +3 -0
  83. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +8 -0
  84. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +3 -0
  85. package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +17 -0
  86. package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts +5 -0
  87. package/dist/components/generator-code/generatorCodeView.d.ts +12 -0
  88. package/dist/components/generator-code/languageSettings.d.ts +14 -0
  89. package/dist/components/locale-picker/LocalePicker.d.ts +13 -0
  90. package/dist/components/locale-picker/LocalePicker.styles.d.ts +19 -0
  91. package/dist/components/localeContext.d.ts +10 -0
  92. package/dist/components/localized/Localized.d.ts +18 -0
  93. package/dist/components/map-columns/MapColumnsBody.d.ts +24 -0
  94. package/dist/components/map-columns/MapColumnsDialog.d.ts +13 -0
  95. package/dist/components/map-columns/MapColumnsDialog.styles.d.ts +38 -0
  96. package/dist/components/map-columns/mapColumnsAction.d.ts +13 -0
  97. package/dist/components/map-columns/nameOf.d.ts +6 -0
  98. package/dist/components/map-columns/openMapColumns.d.ts +9 -0
  99. package/dist/components/primitives/code-block/CodeBlock.d.ts +6 -1
  100. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -0
  101. package/dist/components/primitives/color-picker/ColorPicker.d.ts +10 -1
  102. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +25 -0
  103. package/dist/components/primitives/color-picker/colorModel.d.ts +36 -0
  104. package/dist/components/primitives/color-picker/presetColors.d.ts +13 -0
  105. package/dist/components/primitives/color-picker/resolveColor.d.ts +7 -0
  106. package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -0
  107. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  108. package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +4 -4
  109. package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts +8 -0
  110. package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.d.ts +2 -0
  111. package/dist/components/primitives/context-menu/menu/Menu.d.ts +2 -0
  112. package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.d.ts +5 -0
  113. package/dist/components/primitives/dialog/Dialog.d.ts +21 -0
  114. package/dist/components/primitives/dialog/Dialog.styles.d.ts +12 -0
  115. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +2 -5
  116. package/dist/components/primitives/icon/icons.d.ts +27 -1
  117. package/dist/components/primitives/select/Select.d.ts +18 -0
  118. package/dist/components/primitives/select/Select.styles.d.ts +13 -0
  119. package/dist/components/primitives/text-input/TextInput.d.ts +2 -0
  120. package/dist/components/primitives/toast/Toast.d.ts +5 -1
  121. package/dist/components/primitives/toast/Toast.styles.d.ts +2 -2
  122. package/dist/components/quick-search/QuickSearch.d.ts +2 -1
  123. package/dist/components/quick-search/QuickSearch.styles.d.ts +6 -0
  124. package/dist/components/quick-search/actions.d.ts +60 -2
  125. package/dist/components/quick-search/hangul.d.ts +79 -0
  126. package/dist/components/quick-search/paletteQuery.d.ts +38 -0
  127. package/dist/components/quick-search/scopedActions.d.ts +42 -0
  128. package/dist/components/schema-sql/SchemaSQL.d.ts +2 -0
  129. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +7 -0
  130. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +3 -0
  131. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +3 -0
  132. package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.d.ts +29 -0
  133. package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.d.ts +27 -0
  134. package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +24 -0
  135. package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +45 -0
  136. package/dist/components/schema-sql/schema-sql-options/ScriptEditor.d.ts +20 -0
  137. package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.d.ts +13 -0
  138. package/dist/components/schema-sql/schema-sql-options/dropWarning.d.ts +8 -0
  139. package/dist/components/schema-sql/schemaSQLView.d.ts +71 -0
  140. package/dist/components/settings/Settings.styles.d.ts +7 -0
  141. package/dist/components/settings/columnTypeLabels.d.ts +8 -0
  142. package/dist/components/settings/lockSettingRows.d.ts +16 -0
  143. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +3 -0
  144. package/dist/components/settings/settingsPage.d.ts +10 -0
  145. package/dist/components/theme-builder/ThemeBuilder.d.ts +9 -1
  146. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -5
  147. package/dist/components/toast-container/openStatusToast.d.ts +29 -0
  148. package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -1
  149. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  150. package/dist/components/visualization/graph-node/GraphNode.d.ts +2 -2
  151. package/dist/components/visualization/graphPan.d.ts +12 -0
  152. package/dist/components/visualization/table/column/Column.d.ts +4 -0
  153. package/dist/components/visualization/visualizationView.d.ts +2 -2
  154. package/dist/constants/language.d.ts +1 -1
  155. package/dist/constants/layout.d.ts +47 -0
  156. package/dist/constants/open.d.ts +4 -0
  157. package/dist/constants/schema.d.ts +38 -4
  158. package/dist/constants/sql/dataType/PostgreSQL.d.ts +2 -1
  159. package/dist/constants/sql/dataType/SQLite.d.ts +3 -1
  160. package/dist/engine/actions.d.ts +20 -2
  161. package/dist/engine/context.d.ts +6 -0
  162. package/dist/engine/index.d.ts +1 -1
  163. package/dist/engine/index.js +29 -18
  164. package/dist/engine/modules/editor/actions.d.ts +10 -2
  165. package/dist/engine/modules/editor/atom.actions.d.ts +49 -11
  166. package/dist/engine/modules/editor/generator.actions.d.ts +107 -8
  167. package/dist/engine/modules/editor/state.d.ts +16 -3
  168. package/dist/engine/modules/editor/utils/color.d.ts +21 -0
  169. package/dist/engine/modules/editor/utils/duplicate.d.ts +28 -1
  170. package/dist/engine/modules/editor/utils/focus.d.ts +16 -0
  171. package/dist/engine/modules/editor/utils/releaseHidden.d.ts +16 -0
  172. package/dist/engine/modules/editor/utils/selection.d.ts +12 -0
  173. package/dist/engine/modules/relationship/actions.d.ts +19 -0
  174. package/dist/engine/modules/relationship/atom.actions.d.ts +111 -1
  175. package/dist/engine/modules/relationship/endFlags.d.ts +14 -0
  176. package/dist/engine/modules/relationship/fkColumns.d.ts +40 -4
  177. package/dist/engine/modules/relationship/generator.actions.d.ts +5 -2
  178. package/dist/engine/modules/relationship/history.d.ts +3 -0
  179. package/dist/engine/modules/relationship/referenceType.d.ts +12 -0
  180. package/dist/engine/modules/settings/actions.d.ts +17 -4
  181. package/dist/engine/modules/settings/atom.actions.d.ts +63 -19
  182. package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
  183. package/dist/engine/modules/settings/history.d.ts +1 -0
  184. package/dist/engine/modules/table/actions.d.ts +8 -0
  185. package/dist/engine/modules/table/atom.actions.d.ts +31 -0
  186. package/dist/engine/modules/table/generator.actions.d.ts +3 -3
  187. package/dist/engine/modules/table/history.d.ts +1 -0
  188. package/dist/engine/modules/table-column/generator.actions.d.ts +8 -0
  189. package/dist/engine/modules/table-column/keys.d.ts +14 -0
  190. package/dist/engine/modules/table-column/utils/dataType.d.ts +19 -1
  191. package/dist/engine/modules/table-group/actions.d.ts +63 -0
  192. package/dist/engine/modules/table-group/atom.actions.d.ts +238 -0
  193. package/dist/engine/modules/table-group/generator.actions.d.ts +111 -0
  194. package/dist/engine/modules/table-group/history.d.ts +13 -0
  195. package/dist/engine/peer-store.d.ts +9 -3
  196. package/dist/engine/replication-store.d.ts +18 -1
  197. package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -1
  198. package/dist/engine/rx-operators/lockIgnoreFilter.d.ts +8 -0
  199. package/dist/engine/rx-store.d.ts +2 -0
  200. package/dist/engine/settle.d.ts +9 -0
  201. package/dist/erd-editor.umd.js +2523 -4060
  202. package/dist/hooks/useNavigatorLanguages.d.ts +7 -0
  203. package/dist/i18n/locales.d.ts +126 -0
  204. package/dist/i18n/menuLabel.d.ts +12 -0
  205. package/dist/i18n/messages/ar-SA.d.ts +399 -0
  206. package/dist/i18n/messages/de-DE.d.ts +375 -0
  207. package/dist/i18n/messages/en/code.d.ts +17 -0
  208. package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
  209. package/dist/i18n/messages/en/common.d.ts +65 -0
  210. package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
  211. package/dist/i18n/messages/en/exportImage.d.ts +25 -0
  212. package/dist/i18n/messages/en/feedback.d.ts +11 -0
  213. package/dist/i18n/messages/en/findReplace.d.ts +36 -0
  214. package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
  215. package/dist/i18n/messages/en/index.d.ts +378 -0
  216. package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
  217. package/dist/i18n/messages/en/palette.d.ts +40 -0
  218. package/dist/i18n/messages/en/schemaSql.d.ts +28 -0
  219. package/dist/i18n/messages/en/settings.d.ts +22 -0
  220. package/dist/i18n/messages/en/shortcuts.d.ts +32 -0
  221. package/dist/i18n/messages/en/tableProperties.d.ts +34 -0
  222. package/dist/i18n/messages/en/themeBuilder.d.ts +7 -0
  223. package/dist/i18n/messages/en/toolbar.d.ts +9 -0
  224. package/dist/i18n/messages/en/visualization.d.ts +12 -0
  225. package/dist/i18n/messages/en/welcome.d.ts +13 -0
  226. package/dist/i18n/messages/es-ES.d.ts +381 -0
  227. package/dist/i18n/messages/eu-ES.d.ts +375 -0
  228. package/dist/i18n/messages/fa-IR.d.ts +375 -0
  229. package/dist/i18n/messages/fr-FR.d.ts +381 -0
  230. package/dist/i18n/messages/he-IL.d.ts +381 -0
  231. package/dist/i18n/messages/id-ID.d.ts +369 -0
  232. package/dist/i18n/messages/index.d.ts +11 -0
  233. package/dist/i18n/messages/it-IT.d.ts +381 -0
  234. package/dist/i18n/messages/ja-JP.d.ts +369 -0
  235. package/dist/i18n/messages/ko-KR.d.ts +369 -0
  236. package/dist/i18n/messages/nl-NL.d.ts +375 -0
  237. package/dist/i18n/messages/pl-PL.d.ts +387 -0
  238. package/dist/i18n/messages/pt-BR.d.ts +381 -0
  239. package/dist/i18n/messages/pt-PT.d.ts +381 -0
  240. package/dist/i18n/messages/ro-RO.d.ts +381 -0
  241. package/dist/i18n/messages/ru-RU.d.ts +387 -0
  242. package/dist/i18n/messages/sk-SK.d.ts +387 -0
  243. package/dist/i18n/messages/sl-SI.d.ts +387 -0
  244. package/dist/i18n/messages/sv-SE.d.ts +375 -0
  245. package/dist/i18n/messages/tr-TR.d.ts +375 -0
  246. package/dist/i18n/messages/uk-UA.d.ts +387 -0
  247. package/dist/i18n/messages/zh-CN.d.ts +369 -0
  248. package/dist/i18n/messages/zh-TW.d.ts +369 -0
  249. package/dist/i18n/resolveLocale.d.ts +11 -0
  250. package/dist/i18n/source.d.ts +7 -0
  251. package/dist/i18n/translate.d.ts +58 -0
  252. package/dist/index.d.ts +2 -0
  253. package/dist/index.js +28966 -11220
  254. package/dist/internal-types/index.d.ts +2 -4
  255. package/dist/konva/scene/contentBounds.d.ts +18 -12
  256. package/dist/konva/scene/metrics.d.ts +7 -0
  257. package/dist/konva/scene/renderScene.d.ts +10 -4
  258. package/dist/konva/scene/stacking.d.ts +21 -0
  259. package/dist/konva/scene/viewLayout.d.ts +2 -1
  260. package/dist/loadValue-B3EFSe9k.js +12925 -0
  261. package/dist/peer/index.d.ts +6 -3
  262. package/dist/peer/index.js +87 -83
  263. package/dist/services/elk-layout/elkGraph.d.ts +6 -4
  264. package/dist/services/elk-layout/elkLayoutOptions.d.ts +20 -0
  265. package/dist/services/elk-layout/elkLayoutService.d.ts +3 -3
  266. package/dist/services/export-png/ExportScene.d.ts +3 -3
  267. package/dist/services/export-png/documentScene.d.ts +14 -9
  268. package/dist/services/export-png/exportBox.d.ts +40 -5
  269. package/dist/services/export-png/exportPngService.d.ts +15 -0
  270. package/dist/services/export-png/exportTheme.d.ts +26 -0
  271. package/dist/services/export-png/index.d.ts +44 -11
  272. package/dist/services/export-png/renderPng.d.ts +18 -10
  273. package/dist/services/export-png/renderSvg.d.ts +22 -0
  274. package/dist/services/export-png/sceneSvg.d.ts +54 -0
  275. package/dist/services/shiki/graphqlGrammar.d.ts +8 -0
  276. package/dist/shared-store-fUggY7sI.js +1341 -0
  277. package/dist/themes/radix-ui-theme.d.ts +11 -3
  278. package/dist/themes/tokens.d.ts +9 -0
  279. package/dist/utils/calcTable.d.ts +18 -1
  280. package/dist/utils/clipboard.d.ts +9 -0
  281. package/dist/utils/collection/tableGroup.entity.d.ts +3 -0
  282. package/dist/utils/contrastText.d.ts +21 -0
  283. package/dist/utils/deepMerge.d.ts +8 -0
  284. package/dist/utils/device-detect/index.d.ts +2 -6
  285. package/dist/utils/domEvent.d.ts +18 -0
  286. package/dist/utils/dragSelect.d.ts +2 -0
  287. package/dist/utils/draw-relationship/bezier.d.ts +2 -0
  288. package/dist/utils/draw-relationship/corner.d.ts +9 -0
  289. package/dist/utils/draw-relationship/index.d.ts +18 -18
  290. package/dist/utils/draw-relationship/loop.d.ts +29 -0
  291. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -1
  292. package/dist/utils/draw-relationship/sort.d.ts +8 -1
  293. package/dist/utils/draw-relationship/stub.d.ts +4 -3
  294. package/dist/utils/emitter.d.ts +64 -4
  295. package/dist/utils/file/exportFile.d.ts +15 -5
  296. package/dist/utils/file/importFile.d.ts +9 -5
  297. package/dist/utils/file/importSchema.d.ts +45 -0
  298. package/dist/utils/find-replace/findMatches.d.ts +90 -0
  299. package/dist/utils/find-replace/index.d.ts +5 -0
  300. package/dist/utils/find-replace/matcher.d.ts +53 -0
  301. package/dist/utils/find-replace/present.d.ts +24 -0
  302. package/dist/utils/find-replace/replaceActions.d.ts +20 -0
  303. package/dist/utils/generator-code/columnTypes.d.ts +99 -0
  304. package/dist/utils/generator-code/doctrine.d.ts +6 -0
  305. package/dist/utils/generator-code/doctrineReservedWords.d.ts +7 -0
  306. package/dist/utils/generator-code/graphql.d.ts +6 -0
  307. package/dist/utils/generator-code/heck.d.ts +5 -0
  308. package/dist/utils/generator-code/java.d.ts +28 -0
  309. package/dist/utils/generator-code/jsonSchema.d.ts +50 -0
  310. package/dist/utils/generator-code/jsonShape.d.ts +37 -0
  311. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  312. package/dist/utils/generator-code/mermaid.d.ts +5 -0
  313. package/dist/utils/generator-code/php.d.ts +28 -0
  314. package/dist/utils/generator-code/rust.d.ts +13 -0
  315. package/dist/utils/generator-code/rustTypes.d.ts +44 -0
  316. package/dist/utils/generator-code/scala.d.ts +1 -0
  317. package/dist/utils/generator-code/seaorm.d.ts +22 -0
  318. package/dist/utils/generator-code/swift.d.ts +44 -0
  319. package/dist/utils/generator-code/utils.d.ts +31 -1
  320. package/dist/utils/generator-code/zod.d.ts +25 -0
  321. package/dist/utils/globalEventObservable.d.ts +10 -1
  322. package/dist/utils/highlightWords.d.ts +29 -0
  323. package/dist/utils/index.d.ts +1 -2
  324. package/dist/utils/keyboard-shortcut/bindKeys.d.ts +9 -0
  325. package/dist/utils/keyboard-shortcut/index.d.ts +15 -1
  326. package/dist/utils/keyboard-shortcut/utils.d.ts +21 -0
  327. package/dist/utils/loadValue.d.ts +7 -0
  328. package/dist/utils/map-columns/alignTypes.d.ts +37 -0
  329. package/dist/utils/map-columns/buildRows.d.ts +102 -0
  330. package/dist/utils/map-columns/candidateKeys.d.ts +24 -0
  331. package/dist/utils/map-columns/index.d.ts +8 -0
  332. package/dist/utils/map-columns/mapping.d.ts +67 -0
  333. package/dist/utils/map-columns/prefill.d.ts +26 -0
  334. package/dist/utils/map-columns/toMapColumnsActions.d.ts +10 -0
  335. package/dist/utils/map-columns/validate.d.ts +45 -0
  336. package/dist/utils/memo.d.ts +4 -0
  337. package/dist/utils/referentialAction.d.ts +21 -0
  338. package/dist/utils/schema-aml-parser/types.d.ts +8 -0
  339. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +2 -0
  340. package/dist/utils/schema-dbml-parser/types.d.ts +14 -0
  341. package/dist/utils/schema-sql/Databricks.d.ts +13 -3
  342. package/dist/utils/schema-sql/MSSQL.d.ts +19 -2
  343. package/dist/utils/schema-sql/MariaDB.d.ts +10 -4
  344. package/dist/utils/schema-sql/MySQL.d.ts +18 -4
  345. package/dist/utils/schema-sql/Oracle.d.ts +23 -4
  346. package/dist/utils/schema-sql/PostgreSQL.d.ts +16 -4
  347. package/dist/utils/schema-sql/SQLite.d.ts +16 -4
  348. package/dist/utils/schema-sql/Snowflake.d.ts +8 -3
  349. package/dist/utils/schema-sql/index.d.ts +21 -1
  350. package/dist/utils/schema-sql/options.d.ts +57 -0
  351. package/dist/utils/schema-sql/utils.d.ts +120 -2
  352. package/dist/utils/schema-sql-parser/index.d.ts +5 -1
  353. package/dist/utils/stageCursor.d.ts +20 -0
  354. package/dist/utils/table-clipboard/payload.d.ts +3 -0
  355. package/dist/utils/table-clipboard/placement.d.ts +2 -0
  356. package/dist/utils/tableColor.d.ts +29 -0
  357. package/dist/utils/tableGroup.d.ts +142 -0
  358. package/dist/utils/tableKeys.d.ts +54 -0
  359. package/dist/workers/elkLayout.shared-worker.js +1 -1
  360. package/dist/workers/exportPng.shared-worker.js +30 -28
  361. package/dist/workers/shiki.shared-worker.js +1 -1
  362. package/dist/workers/spawn.d.ts +1 -2
  363. package/dist/workers/spawn.inline.d.ts +0 -1
  364. package/package.json +12 -18
  365. package/dist/components/generator-code/GeneratorCode.styles.d.ts +0 -2
  366. package/dist/schemaGCService-BagQ1wfF.js +0 -38
  367. package/dist/services/schema-gc/index.d.ts +0 -18
  368. package/dist/services/schema-gc/procGC.d.ts +0 -4
  369. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +0 -2
  370. package/dist/services/schema-gc/schemaGCService.d.ts +0 -5
  371. package/dist/shared-store-BqPSXAEf.js +0 -1072
  372. package/dist/store-hooks-DuzDVhPy.js +0 -10282
  373. package/dist/styles/colorPicker.style.d.ts +0 -7
  374. package/dist/utils/draw-relationship/chamfer.d.ts +0 -3
  375. package/dist/workers/schemaGC.shared-worker.js +0 -1
@@ -0,0 +1,16 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { I18n, PlainMessageKey } from '../../i18n/translate';
3
+ type LockedValues = RootState['settings']['lockedValues'];
4
+ type Translator = Pick<I18n, 't'>;
5
+ export type LockSettingRow = {
6
+ nameKey: PlainMessageKey;
7
+ lockSettingType: number;
8
+ toText: (values: LockedValues, i18n: Translator) => string;
9
+ };
10
+ /**
11
+ * The Settings tab's lock rows, one per lock, each naming the value it holds
12
+ * by the name the menu that sets it gives, in the reader's language.
13
+ */
14
+ export declare const lockSettingRows: ReadonlyArray<LockSettingRow>;
15
+ export {};
16
+ //# sourceMappingURL=lockSettingRows.d.ts.map
@@ -1,10 +1,13 @@
1
1
  import { FC } from '@dineug/r-html';
2
+ import { PlainMessageKey } from '../../../i18n/translate';
2
3
  import { ValuesType } from '../../../internal-types';
3
4
  export declare const Lnb: {
4
5
  readonly preferences: "Preferences";
5
6
  readonly shortcuts: "Shortcuts";
6
7
  };
7
8
  export type Lnb = ValuesType<typeof Lnb>;
9
+ /** Each page's name as the key of its message; the page ids stay English. */
10
+ export declare const LnbLabelKey: Readonly<Record<Lnb, PlainMessageKey>>;
8
11
  export type SettingsLnbProps = {
9
12
  value: Lnb;
10
13
  onChange: (value: Lnb) => void;
@@ -0,0 +1,10 @@
1
+ import { Lnb } from './settings-lnb/SettingsLnb';
2
+ import { RxStore } from '../../engine/rx-store';
3
+ /**
4
+ * Takes the reader to a page of the Settings tab from outside it, the welcome
5
+ * screen's Shortcuts row say: the tab opens, and reads the page as it mounts.
6
+ */
7
+ export declare function requestSettingsPage(store: RxStore, page: Lnb): void;
8
+ /** The page asked for since the Settings tab last mounted, handed out once. */
9
+ export declare function takeSettingsPage(store: RxStore): Lnb | undefined;
10
+ //# sourceMappingURL=settingsPage.d.ts.map
@@ -1,8 +1,16 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ThemeOptions } from '../../themes/radix-ui-theme';
2
+ import { IconName } from '../primitives/icon/icons';
3
+ import { PlainMessageKey } from '../../i18n/translate';
4
+ import { AppearanceOption, ThemeOptions } from '../../themes/radix-ui-theme';
3
5
  export type ThemeBuilderProps = {
4
6
  theme: ThemeOptions;
5
7
  };
8
+ /** The three appearances in the order the builder's buttons and the palette's Theme rows list them. */
9
+ export declare const APPEARANCE_BUTTONS: ReadonlyArray<{
10
+ appearance: AppearanceOption;
11
+ icon: IconName;
12
+ labelKey: PlainMessageKey;
13
+ }>;
6
14
  declare const ThemeBuilder: FC<ThemeBuilderProps>;
7
15
  export default ThemeBuilder;
8
16
  //# sourceMappingURL=ThemeBuilder.d.ts.map
@@ -1,14 +1,17 @@
1
1
  /**
2
- * A panel placed over whichever tab is up. The tab wrapper raises no stacking
3
- * context of its own, so a raised descendant inside it would paint over an
4
- * unraised sibling; the same step, later in the root, keeps this panel on top.
2
+ * A panel placed over whichever tab is up, padded as Find and Replace is. The
3
+ * tab wrapper raises no stacking context, so a raised descendant would paint
4
+ * over an unraised sibling; the same step later in the root keeps this on top.
5
5
  */
6
6
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
7
+ export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
7
8
  export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
9
+ /** A 26px square tool tinted under the pointer, as the editor's other panels close. */
10
+ export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
8
11
  export declare const subTitle: import('@dineug/r-html').CSSTemplateLiterals;
9
12
  export declare const palette: import('@dineug/r-html').CSSTemplateLiterals;
10
13
  export declare const color: import('@dineug/r-html').CSSTemplateLiterals;
11
- export declare const lightDarkButtonGroup: import('@dineug/r-html').CSSTemplateLiterals;
12
- export declare const lightDarkButton: import('@dineug/r-html').CSSTemplateLiterals;
14
+ export declare const appearanceButtonGroup: import('@dineug/r-html').CSSTemplateLiterals;
15
+ export declare const appearanceButton: import('@dineug/r-html').CSSTemplateLiterals;
13
16
  export declare const vertical: import('@dineug/r-html').CSSTemplateLiterals;
14
17
  //# sourceMappingURL=ThemeBuilder.styles.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { DOMTemplateLiterals } from '@dineug/r-html';
2
+ import { ToastTone } from '../primitives/toast/Toast';
3
+ import { Emitter } from '../../utils/emitter';
4
+ export type StatusToast = {
5
+ /** Names the report and the values it shows, so only the same one replaces it. */
6
+ key: string;
7
+ title: DOMTemplateLiterals;
8
+ description?: DOMTemplateLiterals;
9
+ tone?: ToastTone;
10
+ close?: Promise<void>;
11
+ };
12
+ /**
13
+ * Reports how something ended: its one line as the title, a second line as the
14
+ * description, and a tone's mark when it was done or not done. Opened again
15
+ * under its key, it takes the place of the one still up rather than piling on.
16
+ *
17
+ * @example
18
+ * openStatusToast(emitter, { key: 'common.toast.noTablesToPlace', title: localized('common.toast.noTablesToPlace') });
19
+ */
20
+ export declare function openStatusToast(emitter: Emitter, { key, title, description, tone, close }: StatusToast): void;
21
+ /**
22
+ * Says whether text reached the clipboard, a refusal as plainly as a copy, under
23
+ * one key so a press repeated shows one toast.
24
+ *
25
+ * @example
26
+ * reportCopy(emitter, copyToClipboard(state.sql));
27
+ */
28
+ export declare function reportCopy(emitter: Emitter, copying: Promise<unknown>): Promise<void>;
29
+ //# sourceMappingURL=openStatusToast.d.ts.map
@@ -6,7 +6,7 @@ import { Emitter } from '../../utils/emitter';
6
6
  * a caller report the outcome after this toast rather than on top of it.
7
7
  *
8
8
  * @example
9
- * await openToastWhileRunning(emitter, running, html`<${Toast} description=${'Working'} />`);
9
+ * await openToastWhileRunning(emitter, running, html`<${Toast} busy=${true} title=${localized('exportImage.copying')} />`);
10
10
  */
11
11
  export declare function openToastWhileRunning(emitter: Emitter, running: Promise<unknown>, message: DOMTemplateLiterals): Promise<void>;
12
12
  //# sourceMappingURL=openToastWhileRunning.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import { FC } from '@dineug/r-html';
2
2
  export type ToolbarProps = {
3
3
  enableThemeBuilder: boolean;
4
+ enableLocalePicker?: boolean;
4
5
  readonly: boolean;
5
6
  };
6
7
  declare const Toolbar: FC<ToolbarProps>;
@@ -16,8 +16,8 @@ export type GraphNodeProps = {
16
16
  };
17
17
  /**
18
18
  * One dot, owning its own hover and drag. A hovered table opens its preview
19
- * and lights its neighbourhood, a hovered column only wears a ring, and a
20
- * press pins the node under the pointer and reheats the layout around it.
19
+ * and lights its neighbourhood, a hovered column only wears a ring, a main
20
+ * press pins the node and reheats the layout, and a middle one pans the view.
21
21
  */
22
22
  declare const GraphNode: FC<GraphNodeProps>;
23
23
  export default GraphNode;
@@ -0,0 +1,12 @@
1
+ import { KonvaEventObject } from 'konva/lib/Node';
2
+ import { VisualizationState } from './visualizationView';
3
+ /**
4
+ * Pans the graph view with the pointer, in stage px, from a press on the
5
+ * background or a middle press anywhere. A pan is a drag too: a dot the pointer
6
+ * crosses on the way would otherwise open its preview under a busy hand.
7
+ *
8
+ * @example
9
+ * on:mousedown={(event) => captureGraphPan(event, state)}
10
+ */
11
+ export declare function captureGraphPan(event: KonvaEventObject<Event>, state: VisualizationState): void;
12
+ //# sourceMappingURL=graphPan.d.ts.map
@@ -6,6 +6,10 @@ export type ColumnProps = {
6
6
  widthDataType: number;
7
7
  widthDefault: number;
8
8
  widthComment: number;
9
+ /** The room the table keeps for alternate key marks, 0 while it draws none. */
10
+ widthAlternateKey?: number;
11
+ /** The mark this row carries in that room, last, as the ERD scene draws it. */
12
+ alternateKey?: string;
9
13
  };
10
14
  declare const Column: FC<ColumnProps>;
11
15
  export default Column;
@@ -13,8 +13,8 @@ export declare const NAME_MAX_LENGTH = 15;
13
13
  * truncateName('a_very_long_table_name'); // 'a_very_long_tab…'
14
14
  */
15
15
  export declare function truncateName(name: string): string;
16
- /** The text a table's label draws: its name cut to length, or a placeholder. */
17
- export declare function labelOf(node: Pick<VisualizationNode, 'name'>): string;
16
+ /** The text a table's label draws: its name cut to length, or the placeholder its input shows. */
17
+ export declare function labelOf(node: Pick<VisualizationNode, 'name'>, placeholder: string): string;
18
18
  /** Whether a table has a name of its own, which is what its label is painted by. */
19
19
  export declare const hasName: (node: Pick<VisualizationNode, "name">) => boolean;
20
20
  export declare const TABLE_RADIUS = 8;
@@ -3,6 +3,6 @@
3
3
  * the annotation used to widen them to — CodeBlock's lang is a union, and
4
4
  * widening here meant nothing checked that these were members of it.
5
5
  */
6
- export type Lang = 'csharp' | 'go' | 'graphql' | 'java' | 'kotlin' | 'python' | 'scala' | 'sql' | 'typescript';
6
+ export type Lang = 'csharp' | 'go' | 'graphql' | 'java' | 'json' | 'kotlin' | 'mermaid' | 'php' | 'python' | 'rust' | 'scala' | 'sql' | 'swift' | 'typescript';
7
7
  export declare const LanguageToLangMap: Record<number, Lang>;
8
8
  //# sourceMappingURL=language.d.ts.map
@@ -1,6 +1,15 @@
1
1
  export declare const START_X = 200;
2
2
  export declare const START_Y = 100;
3
3
  export declare const START_ADD = 50;
4
+ /** The corner the grid an import lands in starts at, on both axes. */
5
+ export declare const TABLE_SORT_START = 50;
6
+ /** The room the grid an import lands in keeps right of and below each table. */
7
+ export declare const TABLE_SORT_MARGIN = 80;
8
+ /**
9
+ * How far below the diagram the block an append brings starts, the gap the
10
+ * grid an import lands in keeps between its rows.
11
+ */
12
+ export declare const APPEND_GAP = 80;
4
13
  export declare const DUPLICATE_MIN_MOVE = 4;
5
14
  /**
6
15
  * How far, in screen px, a press on a cell that also takes a click travels
@@ -48,6 +57,12 @@ export declare const COLUMN_MIN_WIDTH = 60;
48
57
  export declare const COLUMN_NOT_NULL_WIDTH = 35;
49
58
  export declare const COLUMN_UNIQUE_WIDTH = 22;
50
59
  export declare const COLUMN_AUTO_INCREMENT_WIDTH = 15;
60
+ /**
61
+ * The advance one alternate key mark character takes. The mark is drawn at the
62
+ * cell size in the code face, whose glyphs all advance about 0.6 of the size,
63
+ * so a table is sized by the mark's length alone, in a headless peer too.
64
+ */
65
+ export declare const COLUMN_ALTERNATE_KEY_CHAR_WIDTH: number;
51
66
  export declare const COLUMN_PADDING = 2;
52
67
  export declare const COLUMN_HEIGHT: number;
53
68
  /** The table icon a view card draws beside its name, at the reference's 1rem. */
@@ -95,10 +110,42 @@ export declare const MEMO_PADDING = 8;
95
110
  export declare const MEMO_HEADER_HEIGHT: number;
96
111
  export declare const MEMO_MIN_WIDTH: number;
97
112
  export declare const MEMO_MIN_HEIGHT = 100;
113
+ /**
114
+ * The room a table group's box keeps around each member table on every side,
115
+ * and around the tables a group is made from.
116
+ */
117
+ export declare const TABLE_GROUP_PADDING = 24;
118
+ /**
119
+ * The bar a table group's name is drawn on along the top of its box, as tall
120
+ * as a table's header band, which the box's top padding clears as well.
121
+ */
122
+ export declare const TABLE_GROUP_TITLE_HEIGHT = 28;
123
+ /**
124
+ * The least a sash resizes a group to, which its members' padded box raises
125
+ * further: wide enough for a short name, tall enough for a body under the bar.
126
+ */
127
+ export declare const TABLE_GROUP_MIN_WIDTH = 160;
128
+ export declare const TABLE_GROUP_MIN_HEIGHT: number;
129
+ /** The group a click of the draw mode makes, without a drag: room for two tables side by side. */
130
+ export declare const TABLE_GROUP_DEFAULT_WIDTH = 480;
131
+ export declare const TABLE_GROUP_DEFAULT_HEIGHT = 320;
98
132
  export declare const MINIMAP_SIZE = 150;
99
133
  export declare const MINIMAP_MARGIN = 20;
100
134
  export declare const TOOLBAR_HEIGHT = 30;
135
+ /** The width of the toolbar's database name, which every language's placeholder fits. */
136
+ export declare const TOOLBAR_DATABASE_NAME_WIDTH = 150;
137
+ /**
138
+ * The padding around the Table Properties body. A band stuck to an edge of the
139
+ * body reaches back over it, so no row scrolls into sight behind the band.
140
+ */
141
+ export declare const TABLE_PROPERTIES_BODY_PADDING = 12;
142
+ /** How many rows the Table Properties index order shows before it scrolls the rest. */
143
+ export declare const INDEX_ORDER_MAX_ROWS = 3;
101
144
  export declare const DIFF_TREE_WIDTH = 200;
145
+ /** The width of the options panel beside the code, on the Schema SQL and Code Generator tabs. */
146
+ export declare const SCHEMA_SQL_PANEL_WIDTH = 300;
147
+ /** An editor narrower than this opens the Schema SQL and Code Generator tabs with their panels folded away. */
148
+ export declare const SCHEMA_SQL_PANEL_COLLAPSE_BELOW = 640;
102
149
  /**
103
150
  * How thick a relationship connector is drawn. A whole number rather than a
104
151
  * fraction, so the stroke lands on pixel boundaries instead of spreading across
@@ -4,8 +4,12 @@ export declare const Open: {
4
4
  readonly tableProperties: "tableProperties";
5
5
  readonly search: "search";
6
6
  readonly themeBuilder: "themeBuilder";
7
+ readonly localePicker: "localePicker";
7
8
  readonly diffViewer: "diffViewer";
8
9
  readonly timeTravel: "timeTravel";
10
+ readonly findReplace: "findReplace";
11
+ readonly exportImage: "exportImage";
12
+ readonly mapColumns: "mapColumns";
9
13
  };
10
14
  export type Open = ValuesType<typeof Open>;
11
15
  //# sourceMappingURL=open.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { ValuesType } from '../internal-types';
1
2
  export declare const CanvasType: {
2
3
  readonly ERD: "ERD";
3
4
  readonly visualization: "@dineug/erd-editor/builtin-visualization";
@@ -16,6 +17,10 @@ export declare const Show: {
16
17
  readonly columnUnique: 64;
17
18
  readonly columnNotNull: 128;
18
19
  readonly relationship: 256;
20
+ readonly columnAlternateKey: 512;
21
+ readonly hideReferentialAction: 1024;
22
+ readonly hideTableGroup: 2048;
23
+ readonly hideMemo: 4096;
19
24
  };
20
25
  export declare const ColumnType: {
21
26
  readonly columnName: 1;
@@ -53,6 +58,14 @@ export declare const Language: {
53
58
  readonly Drizzle: 2048;
54
59
  readonly DBML: 4096;
55
60
  readonly AML: 8192;
61
+ readonly Mermaid: 16384;
62
+ readonly PHP: 32768;
63
+ readonly Doctrine: 65536;
64
+ readonly Rust: 131072;
65
+ readonly SeaORM: 262144;
66
+ readonly Swift: 524288;
67
+ readonly Zod: 1048576;
68
+ readonly JSONSchema: 2097152;
56
69
  };
57
70
  export declare const LanguageList: readonly number[];
58
71
  export declare const NameCase: {
@@ -81,6 +94,15 @@ export declare const StartRelationshipType: {
81
94
  readonly dash: 2;
82
95
  };
83
96
  export declare const StartRelationshipTypeList: readonly number[];
97
+ export declare const ReferentialAction: {
98
+ readonly none: 1;
99
+ readonly noAction: 2;
100
+ readonly cascade: 4;
101
+ readonly setNull: 8;
102
+ readonly setDefault: 16;
103
+ readonly restrict: 32;
104
+ };
105
+ export declare const ReferentialActionList: readonly number[];
84
106
  export declare const Direction: {
85
107
  readonly left: 1;
86
108
  readonly right: 2;
@@ -103,14 +125,26 @@ export declare const OrderType: {
103
125
  readonly DESC: 2;
104
126
  };
105
127
  export declare const OrderTypeList: readonly number[];
106
- export declare const SaveSettingType: {
107
- readonly scroll: 1;
108
- readonly zoomLevel: 2;
128
+ export declare const LockSettingType: {
129
+ readonly viewport: 1;
130
+ readonly canvasType: 2;
131
+ readonly language: 4;
132
+ readonly tableNameCase: 8;
133
+ readonly columnNameCase: 16;
134
+ readonly bracketType: 32;
109
135
  };
136
+ export declare const LockSettingTypeList: readonly number[];
137
+ export declare const LockSettingFields: Readonly<Record<number, readonly ("zoomLevel" | "canvasType" | "language" | "bracketType" | "originX" | "originY" | "tableNameCase" | "columnNameCase")[]>>;
110
138
  export declare const CANVAS_SIZE_MAX: 20000;
111
139
  export declare const CANVAS_SIZE_MIN: 2000;
112
140
  export declare const CANVAS_ZOOM_MAX: 1.5;
113
141
  export declare const CANVAS_ZOOM_MIN: 0.1;
142
+ export declare const DDLScriptPosition: {
143
+ readonly before: "before";
144
+ readonly after: "after";
145
+ };
146
+ export declare const DDLScriptPositionList: ReadonlyArray<ValuesType<typeof DDLScriptPosition>>;
114
147
  export declare const BracketTypeMap: Record<number, string>;
115
- export declare const ColumnTypeToName: Record<number, string>;
148
+ /** The clause each action writes after ON DELETE / ON UPDATE; none writes none. */
149
+ export declare const ReferentialActionToSQL: Record<number, string>;
116
150
  //# sourceMappingURL=schema.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import { DataTypeHint } from '.';
2
2
  /**
3
- * https://www.postgresql.org/docs/current/datatype.html
3
+ * https://www.postgresql.org/docs/current/datatype.html, and dec, which the
4
+ * grammar reads as numeric, as it reads decimal.
4
5
  */
5
6
  export declare const PostgreSQLTypes: DataTypeHint[];
6
7
  //# sourceMappingURL=PostgreSQL.d.ts.map
@@ -1,6 +1,8 @@
1
1
  import { DataTypeHint } from '.';
2
2
  /**
3
- * https://www.sqlite.org/datatype3.html
3
+ * https://www.sqlite.org/datatype3.html, and BOOL, DEC, TIME and TIMESTAMP,
4
+ * which SQLite schemas use too: Django declares a boolean as bool and a time
5
+ * as time, and DEC, standard SQL's DECIMAL, takes the same NUMERIC affinity.
4
6
  */
5
7
  export declare const SQLiteTypes: DataTypeHint[];
6
8
  //# sourceMappingURL=SQLite.d.ts.map
@@ -22,11 +22,24 @@ import { actions$ as tableActions$ } from './modules/table/generator.actions';
22
22
  import { ActionMap as TableColumnActionMap } from './modules/table-column/actions';
23
23
  import { actions as tableColumnActions } from './modules/table-column/atom.actions';
24
24
  import { actions$ as tableColumnActions$ } from './modules/table-column/generator.actions';
25
- export type Actions = typeof editorActions & typeof editorActions$ & typeof indexActions & typeof indexActions$ & typeof indexColumnActions & typeof indexColumnActions$ & typeof memoActions & typeof memoActions$ & typeof relationshipActions & typeof relationshipActions$ & typeof settingsActions & typeof settingsActions$ & typeof tableActions & typeof tableActions$ & typeof tableColumnActions & typeof tableColumnActions$;
26
- export type RootActionMap = EditorActionMap & TableActionMap & TableColumnActionMap & MemoActionMap & RelationshipActionMap & SettingsActionMap & IndexActionMap & IndexColumnActionMap;
25
+ import { ActionMap as TableGroupActionMap } from './modules/table-group/actions';
26
+ import { actions as tableGroupActions } from './modules/table-group/atom.actions';
27
+ import { actions$ as tableGroupActions$ } from './modules/table-group/generator.actions';
28
+ export type Actions = typeof editorActions & typeof editorActions$ & typeof indexActions & typeof indexActions$ & typeof indexColumnActions & typeof indexColumnActions$ & typeof memoActions & typeof memoActions$ & typeof relationshipActions & typeof relationshipActions$ & typeof settingsActions & typeof settingsActions$ & typeof tableActions & typeof tableActions$ & typeof tableColumnActions & typeof tableColumnActions$ & typeof tableGroupActions & typeof tableGroupActions$;
29
+ export type RootActionMap = EditorActionMap & TableActionMap & TableColumnActionMap & MemoActionMap & RelationshipActionMap & SettingsActionMap & IndexActionMap & IndexColumnActionMap & TableGroupActionMap;
27
30
  export type ActionType = keyof RootActionMap;
28
31
  export declare const actions: Actions;
29
32
  export declare const ChangeActionTypes: ReadonlyArray<ActionType>;
33
+ /**
34
+ * What a replica reports as a change: every change, and the save switch the
35
+ * locks replaced, which changes nothing yet owes the hub that relayed it a save.
36
+ */
37
+ export declare const ReplicaChangeActionTypes: ReadonlyArray<ActionType>;
38
+ /**
39
+ * What a replica applies: what it reports, and the registers a window answers
40
+ * a join with, which change no saved byte and so owe no hub a save.
41
+ */
42
+ export declare const ReplicaActionTypes: ReadonlyArray<ActionType>;
30
43
  export declare const ReadonlyIgnoreActionTypes: ReadonlyArray<ActionType>;
31
44
  /**
32
45
  * What a view keeps from the document while it is active: every edit a
@@ -34,6 +47,11 @@ export declare const ReadonlyIgnoreActionTypes: ReadonlyArray<ActionType>;
34
47
  * a view cannot stand in the way of and answers by closing.
35
48
  */
36
49
  export declare const ViewIgnoreActionTypes: ReadonlyArray<ActionType>;
50
+ /**
51
+ * The lock that holds each setting action out of the element's change event:
52
+ * while it is on, the action changes the screen and never the file.
53
+ */
54
+ export declare const LockSettingActionTypes: Readonly<Partial<Record<ActionType, number>>>;
37
55
  export declare const SharedStreamActionTypes: ReadonlyArray<ActionType>;
38
56
  export declare const SharedActionTypes: ReadonlyArray<ActionType>;
39
57
  export declare const SharedFollowingActionTypes: ReadonlyArray<ActionType>;
@@ -1,6 +1,12 @@
1
1
  import { Clock } from './clock';
2
2
  export type EngineContext = {
3
3
  toWidth: (text: string) => number;
4
+ /**
5
+ * False in a store that draws nothing, a peer's or a replica's: its load
6
+ * places each relationship's anchors and routes no connector, which only a
7
+ * drawing reads. Any other store routes them.
8
+ */
9
+ routes?: boolean;
4
10
  clock: Clock;
5
11
  };
6
12
  export type InjectEngineContext = Omit<EngineContext, 'clock'>;
@@ -1,2 +1,2 @@
1
- export { createReplicationStore, type ReplicationStore, } from './replication-store';
1
+ export { createReplicationStore, type ReplicationChange, type ReplicationStore, } from './replication-store';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,34 +1,45 @@
1
- import { Ii as e, Xn as t, c as n, et as r, h as i, nn as a, p as o, t as s, va as c, wn as l, y as u } from "../store-hooks-DuzDVhPy.js";
2
- import { n as d, t as f } from "../schemaGCService-BagQ1wfF.js";
3
- import { isEmpty as p } from "es-toolkit/compat";
4
- import { omit as m } from "es-toolkit";
5
- import { Observable as h, Subject as g, debounceTime as _, map as v } from "rxjs";
1
+ import { $ as e, Bo as t, Jn as n, c as r, ds as i, mn as a, n as o, ps as s, r as c, t as l, u, v as d, y as f } from "../loadValue-B3EFSe9k.js";
2
+ import { Observable as p, Subject as m, debounceTime as h, map as g } from "rxjs";
3
+ import { omit as _ } from "es-toolkit";
6
4
  //#region src/engine/replication-store.ts
7
- var y = { change: "change" };
8
- function b(b) {
9
- let x = /* @__PURE__ */ new Set(), S = i(b), C = n(S, !1);
10
- C.dispatchSync(l({
5
+ var v = t(f), y = { change: "change" };
6
+ function b(t) {
7
+ let b = /* @__PURE__ */ new Set(), x = u({
8
+ ...t,
9
+ routes: !1
10
+ }), { clock: S } = x, C = c(x, !1);
11
+ C.dispatchSync(n({
11
12
  width: 0,
12
13
  height: 0
13
14
  }));
14
- let w = s(C), T = new g(), E = new h((e) => C.subscribe((t) => e.next(t))).pipe(o(u), _(200)), D = /* @__PURE__ */ new Set(), O = new f(), k = (e) => (D.has(e) || D.add(e), () => {
15
+ let w = o(C), T = new m(), E = new p((e) => C.subscribe((t) => e.next(t))).pipe(r(f), h(200)), D = /* @__PURE__ */ new Set(), O = null, k = (e) => (D.has(e) || D.add(e), () => {
15
16
  D.delete(e);
16
17
  }), A = (e, t) => {
17
18
  D.forEach((n) => {
18
19
  let r = Reflect.get(n, e);
19
20
  a(r, t);
20
21
  });
21
- }, j = (n) => {
22
- let i = e(n);
23
- C.dispatchSync(r(p(i) ? "{}" : i)), O.run(c(C.state)).then((e) => {
24
- (e.tableIds.length || e.tableColumnIds.length || e.relationshipIds.length || e.indexIds.length || e.indexColumnIds.length || e.memoIds.length) && (d(C.state, e), C.dispatchSync(t()));
25
- });
22
+ }, j = (t) => {
23
+ O = null, C.dispatchSync(e(l(t)));
26
24
  }, M = (e) => {
27
25
  T.next([e].flat());
28
26
  };
29
- return x.add(E.subscribe(() => A(y.change, void 0))).add(T.pipe(o(u), v((e) => e.map((e) => m(e, ["tags"])))).subscribe(C.dispatchSync)), Object.freeze({
27
+ return b.add(E.subscribe(() => {
28
+ let e = i(C.state), t = O !== null && e !== O;
29
+ O !== null && (O = e), A(y.change, {
30
+ value: e,
31
+ changed: t
32
+ });
33
+ })).add(T.pipe(r(d), g((e) => e.map((e) => _(e, ["tags"])))).subscribe((e) => {
34
+ e.some(({ type: e }) => v(e)) && (O ??= i(C.state));
35
+ let t = S.getNextVersion();
36
+ e.forEach((e) => e.version ??= t), C.dispatchSync(e), e.forEach((e) => S.merge(e.version));
37
+ })), Object.freeze({
30
38
  get value() {
31
- return c(C.state);
39
+ return i(C.state);
40
+ },
41
+ get runtimeValue() {
42
+ return s(C.state);
32
43
  },
33
44
  on: k,
34
45
  setInitialValue: j,
@@ -37,7 +48,7 @@ function b(b) {
37
48
  },
38
49
  dispatchSync: M,
39
50
  destroy: () => {
40
- Array.from(x).forEach((e) => e.unsubscribe()), x.clear(), D.clear(), C.destroy(), w.destroy();
51
+ Array.from(b).forEach((e) => e.unsubscribe()), b.clear(), D.clear(), C.destroy(), w.destroy();
41
52
  }
42
53
  });
43
54
  }
@@ -22,6 +22,8 @@ export declare const ActionType: {
22
22
  readonly editTableEnd: "editor.editTableEnd";
23
23
  readonly editMemo: "editor.editMemo";
24
24
  readonly editMemoEnd: "editor.editMemoEnd";
25
+ readonly editTableGroup: "editor.editTableGroup";
26
+ readonly editTableGroupEnd: "editor.editTableGroupEnd";
25
27
  readonly scrollMemo: "editor.scrollMemo";
26
28
  readonly selectAllColumn: "editor.selectAllColumn";
27
29
  readonly drawStartRelationship: "editor.drawStartRelationship";
@@ -32,6 +34,7 @@ export declare const ActionType: {
32
34
  readonly hoverRelationshipMap: "editor.hoverRelationshipMap";
33
35
  readonly changeOpenMap: "editor.changeOpenMap";
34
36
  readonly changeHandTool: "editor.changeHandTool";
37
+ readonly changeDrawTableGroup: "editor.changeDrawTableGroup";
35
38
  readonly changeZenMode: "editor.changeZenMode";
36
39
  readonly dragstartColumn: "editor.dragstartColumn";
37
40
  readonly dragendColumn: "editor.dragendColumn";
@@ -40,7 +43,6 @@ export declare const ActionType: {
40
43
  readonly sharedSelectionTracker: "editor.sharedSelectionTracker";
41
44
  readonly sharedDragSelectTracker: "editor.sharedDragSelectTracker";
42
45
  readonly dragSelectRect: "editor.dragSelectRect";
43
- readonly validationIds: "editor.validationIds";
44
46
  readonly getLWW: "editor.getLWW";
45
47
  readonly mergeLWW: "editor.mergeLWW";
46
48
  readonly viewOpen: "editor.viewOpen";
@@ -98,6 +100,10 @@ export type ActionMap = {
98
100
  id: string;
99
101
  };
100
102
  [ActionType.editMemoEnd]: void;
103
+ [ActionType.editTableGroup]: {
104
+ id: string;
105
+ };
106
+ [ActionType.editTableGroupEnd]: void;
101
107
  [ActionType.scrollMemo]: {
102
108
  id: string;
103
109
  /** How far down its body the memo is shown from, in body px. */
@@ -125,6 +131,9 @@ export type ActionMap = {
125
131
  [ActionType.changeHandTool]: {
126
132
  value: boolean;
127
133
  };
134
+ [ActionType.changeDrawTableGroup]: {
135
+ value: boolean;
136
+ };
128
137
  [ActionType.changeZenMode]: {
129
138
  value: boolean;
130
139
  };
@@ -149,7 +158,6 @@ export type ActionMap = {
149
158
  [ActionType.dragSelectRect]: {
150
159
  rect: Rect | null;
151
160
  };
152
- [ActionType.validationIds]: void;
153
161
  [ActionType.getLWW]: void;
154
162
  [ActionType.mergeLWW]: {
155
163
  lww: LWW;