@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
@@ -3,10 +3,18 @@ type Menu = {
3
3
  name: string;
4
4
  value: number;
5
5
  };
6
+ /**
7
+ * The menu's three groups, a rule between each two, every group ascending by
8
+ * name ignoring case: the languages, the ORMs, and the schemas, which hold the
9
+ * tables written in another schema language or library.
10
+ */
11
+ export declare const menuGroups: ReadonlyArray<ReadonlyArray<Menu>>;
12
+ /** Every language in menu order, with no rule, which the palette and the Settings lock row read. */
6
13
  export declare const menus: Menu[];
7
14
  export declare function createLanguageMenus({ store }: AppContext): {
8
15
  checked: boolean;
9
16
  name: string;
17
+ separated: boolean;
10
18
  onClick: () => void;
11
19
  }[];
12
20
  export {};
@@ -1,12 +1,15 @@
1
1
  import { AppContext } from '../../../appContext';
2
+ import { PlainMessageKey } from '../../../../i18n/translate';
2
3
  type Menu = {
3
4
  name: string;
5
+ labelKey?: PlainMessageKey;
4
6
  value: number;
5
7
  };
6
8
  export declare const menus: Menu[];
7
9
  export declare function createTableNameCaseMenus({ store }: AppContext): {
8
10
  checked: boolean;
9
11
  name: string;
12
+ labelKey: PlainMessageKey | undefined;
10
13
  onClick: () => void;
11
14
  }[];
12
15
  export {};
@@ -0,0 +1,17 @@
1
+ import { FC } from '@dineug/r-html';
2
+ /** The panel's id, which the button folding it away controls. */
3
+ export declare const GENERATOR_CODE_OPTIONS_ID = "generator-code-options";
4
+ export type GeneratorCodeOptionsProps = {
5
+ isDarkMode: boolean;
6
+ onHide: () => void;
7
+ onSave: () => void;
8
+ onCopy: () => void;
9
+ };
10
+ /**
11
+ * The options beside the generated code: the settings the document saves that
12
+ * change it, each dimmed while the language ignores it, then the buttons that
13
+ * save and copy the text.
14
+ */
15
+ declare const GeneratorCodeOptions: FC<GeneratorCodeOptionsProps>;
16
+ export default GeneratorCodeOptions;
17
+ //# sourceMappingURL=GeneratorCodeOptions.d.ts.map
@@ -0,0 +1,5 @@
1
+ /** A setting's name over its list, broken anywhere sooner than past the panel. */
2
+ export declare const name: import('@dineug/r-html').CSSTemplateLiterals;
3
+ /** A setting the language ignores: its name dimmed, as its list dims its value, still to be changed. */
4
+ export declare const unused: import('@dineug/r-html').CSSTemplateLiterals;
5
+ //# sourceMappingURL=GeneratorCodeOptions.styles.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { AppContext } from '../appContext';
2
+ import { PanelView } from '../schema-sql/schemaSQLView';
3
+ /** Whether the Code Generator's options panel shows, apart from the Schema SQL tab's. */
4
+ export type GeneratorCodeView = PanelView;
5
+ /**
6
+ * The window's own Code Generator state: never in the store, the file or a
7
+ * change event, kept across tab switches until the element goes, one per editor.
8
+ */
9
+ export declare function generatorCodeViewOf({ store, }: Pick<AppContext, 'store'>): GeneratorCodeView;
10
+ /** Folds the Code Generator panel away or opens it; one not measured yet opens. */
11
+ export declare function toggleGeneratorCodePanel(app: Pick<AppContext, 'store'>): void;
12
+ //# sourceMappingURL=generatorCodeView.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The extension each language's code is saved under. Java and JPA save their
3
+ * classes in one .java file as is, which works as a paste (an owner decision).
4
+ */
5
+ export declare const LanguageToExtensionMap: Readonly<Record<number, string>>;
6
+ /** The extension a language's code saves under, .txt for a language this editor does not know. */
7
+ export declare const codeFileExtension: (language: number) => string;
8
+ /** Whether a language's code follows the database. */
9
+ export declare const readsDatabase: (language: number) => boolean;
10
+ /** Whether a language's code follows the table and column name cases, which go together. */
11
+ export declare const readsNameCases: (language: number) => boolean;
12
+ /** Whether the panel, the context menu and the palette offer a language the bracket type. */
13
+ export declare const readsBracket: (language: number) => boolean;
14
+ //# sourceMappingURL=languageSettings.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { FC } from '@dineug/r-html';
2
+ import { LocaleCode, LocaleOption } from '../../i18n/locales';
3
+ export type LocalePickerProps = {
4
+ /** The option in force, which the panel checks. */
5
+ option: LocaleOption;
6
+ /** The language System stands for now, named beside it. */
7
+ systemLocale: LocaleCode;
8
+ };
9
+ /** The row a key moves to from the one at index, round either end; null for any other key. */
10
+ export declare function stepOption(index: number, length: number, key: string): number | null;
11
+ declare const LocalePicker: FC<LocalePickerProps>;
12
+ export default LocalePicker;
13
+ //# sourceMappingURL=LocalePicker.d.ts.map
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Hung where the theme builder hangs, on the reading side of the editor, and
3
+ * never taller than the editor below the toolbar: the list scrolls instead.
4
+ */
5
+ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
6
+ export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
7
+ export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
8
+ /**
9
+ * A 26px square tool tinted under the pointer, as the editor's other panels
10
+ * close; the panel's own keys keep Space and Enter from the canvas.
11
+ */
12
+ export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
13
+ export declare const list: import('@dineug/r-html').CSSTemplateLiterals;
14
+ export declare const pinned: import('@dineug/r-html').CSSTemplateLiterals;
15
+ export declare const option: import('@dineug/r-html').CSSTemplateLiterals;
16
+ export declare const check: import('@dineug/r-html').CSSTemplateLiterals;
17
+ export declare const label: import('@dineug/r-html').CSSTemplateLiterals;
18
+ export declare const hint: import('@dineug/r-html').CSSTemplateLiterals;
19
+ //# sourceMappingURL=LocalePicker.styles.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { I18n } from '../i18n/translate';
2
+ import { Ctx } from '../internal-types';
3
+ /**
4
+ * The language the editor's own text is shown in. The element provides one it
5
+ * changes in place, never through the provider, so a component mounted after a
6
+ * switch reads the new language; where nothing provides one, English.
7
+ */
8
+ export declare const localeContext: import('@dineug/r-html').Context<I18n>;
9
+ export declare const useI18n: (ctx: Ctx) => import('@dineug/r-html').Ref<I18n>;
10
+ //# sourceMappingURL=localeContext.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
+ import { MessageArgs, MessageKey, MessageValues } from '../../i18n/translate';
3
+ export type LocalizedProps = {
4
+ messageKey: MessageKey;
5
+ params?: MessageValues;
6
+ };
7
+ /** A key read in the language of the element it renders in, which a switch re-renders. */
8
+ declare const Localized: FC<LocalizedProps>;
9
+ export default Localized;
10
+ /**
11
+ * A message as a template, for code outside a component that hands one on, a
12
+ * toast's text say: it is read where it renders, so it follows a switch too.
13
+ *
14
+ * @example
15
+ * openToastAction({ message: <Toast title={localized('common.toast.copied')} /> });
16
+ */
17
+ export declare function localized<K extends MessageKey>(key: K, ...args: MessageArgs<K>): DOMTemplateLiterals;
18
+ //# sourceMappingURL=Localized.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { FC } from '@dineug/r-html';
2
+ import { ColumnPick, MapColumnsView } from '../../utils/map-columns';
3
+ export type MapColumnsBodyProps = {
4
+ mode: 'create' | 'edit';
5
+ view: MapColumnsView;
6
+ /** Whether the editor is too narrow for the two columns side by side. */
7
+ stacked: boolean;
8
+ isDarkMode: boolean;
9
+ onKeyChange: (keyId: string) => void;
10
+ onPick: (parentColumnId: string, pick: ColumnPick | null) => void;
11
+ onCancel: () => void;
12
+ onConfirm: () => void;
13
+ };
14
+ /** A pick as an option's value, which a column id never collides with. */
15
+ export declare function toOptionValue(pick: ColumnPick | null): string;
16
+ export declare function toPick(value: string): ColumnPick | null;
17
+ /**
18
+ * The body of Map Columns: the parent's key, a row per key column with a list
19
+ * of the child's columns, one line saying what stands in the way, and Cancel
20
+ * beside the button that writes the mapping.
21
+ */
22
+ declare const MapColumnsBody: FC<MapColumnsBodyProps>;
23
+ export default MapColumnsBody;
24
+ //# sourceMappingURL=MapColumnsBody.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type MapColumnsDialogProps = {
3
+ readonly: boolean;
4
+ isDarkMode: boolean;
5
+ };
6
+ /**
7
+ * Maps a parent's key onto the child's columns, for a relationship drawn or
8
+ * held. Built from the document on every render, it shows a peer's change at
9
+ * once and closes on its own once what it maps between is gone.
10
+ */
11
+ declare const MapColumnsDialog: FC<MapColumnsDialogProps>;
12
+ export default MapColumnsDialog;
13
+ //# sourceMappingURL=MapColumnsDialog.d.ts.map
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The dialog's one column, its native lists drawn in the editor's appearance
3
+ * through color-scheme, which they inherit, and ringed 2px off as its buttons
4
+ * are, the doubled class outweighing the list box's own ring.
5
+ */
6
+ export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
7
+ export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
8
+ export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
9
+ /**
10
+ * A 26px square tool tinted under the pointer, as Export image and Table
11
+ * Properties close. Tab brings its whole focus ring into a box scrolled down.
12
+ */
13
+ export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
14
+ export declare const subtitle: import('@dineug/r-html').CSSTemplateLiterals;
15
+ /** A list as wide as its cell, narrowing with the box. */
16
+ export declare const select: import('@dineug/r-html').CSSTemplateLiterals;
17
+ export declare const references: import('@dineug/r-html').CSSTemplateLiterals;
18
+ /**
19
+ * The parent column, an arrow to its list and the note under the list; side by
20
+ * side unless stacked, where the parent takes a line over the arrow and list.
21
+ */
22
+ export declare const grid: import('@dineug/r-html').CSSTemplateLiterals;
23
+ export declare const heading: import('@dineug/r-html').CSSTemplateLiterals;
24
+ export declare const headingIcon: import('@dineug/r-html').CSSTemplateLiterals;
25
+ export declare const tableName: import('@dineug/r-html').CSSTemplateLiterals;
26
+ export declare const role: import('@dineug/r-html').CSSTemplateLiterals;
27
+ export declare const arrow: import('@dineug/r-html').CSSTemplateLiterals;
28
+ export declare const parent: import('@dineug/r-html').CSSTemplateLiterals;
29
+ export declare const dim: import('@dineug/r-html').CSSTemplateLiterals;
30
+ export declare const dataType: import('@dineug/r-html').CSSTemplateLiterals;
31
+ /**
32
+ * A line under the list it is about, whose child column the mapping changes
33
+ * or leaves of another type, marked so it reads as more than a hint.
34
+ */
35
+ export declare const note: import('@dineug/r-html').CSSTemplateLiterals;
36
+ export declare const message: import('@dineug/r-html').CSSTemplateLiterals;
37
+ export declare const actions: import('@dineug/r-html').CSSTemplateLiterals;
38
+ //# sourceMappingURL=MapColumnsDialog.styles.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { GeneratorAction } from '../../engine/generator.actions';
2
+ import { MapColumnsDraft } from '../../utils/map-columns';
3
+ export type MapColumnsActionOptions = {
4
+ /** Called once, during the dispatch, when the diagram no longer takes the mapping. */
5
+ onRefuse: () => void;
6
+ };
7
+ /**
8
+ * Writes the mapping the dialog confirmed in one batch, judged by the state it
9
+ * lands on: a result the diagram already holds writes nothing and says nothing,
10
+ * while a table or relationship gone, or any issue, refuses it.
11
+ */
12
+ export declare const mapColumnsAction$: (draft: MapColumnsDraft, { onRefuse }: MapColumnsActionOptions) => GeneratorAction;
13
+ //# sourceMappingURL=mapColumnsAction.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { I18n } from '../../i18n/translate';
2
+ /** A table's or column's name as Map Columns and the draw-target buttons write it, unnamed where it has none. */
3
+ export declare const nameOf: (entity: {
4
+ name: string;
5
+ } | undefined, { t }: Pick<I18n, "t">) => string;
6
+ //# sourceMappingURL=nameOf.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { AppContext } from '../appContext';
2
+ import { MapColumnsOpening } from '../../utils/emitter';
3
+ /**
4
+ * Opens Map Columns on what the opening names: the dialog takes its session
5
+ * from the emitter, then the open map shows it, so it never shows the session
6
+ * of an earlier opening.
7
+ */
8
+ export declare function openMapColumns({ store, emitter }: Pick<AppContext, 'store' | 'emitter'>, opening: MapColumnsOpening): void;
9
+ //# sourceMappingURL=openMapColumns.d.ts.map
@@ -1,10 +1,15 @@
1
- import { FC } from '@dineug/r-html';
1
+ import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
2
  import { Lang } from '../../../constants/language';
3
3
  export type CodeBlockProps = {
4
4
  value: string;
5
5
  lang: Lang;
6
6
  theme?: 'dark' | 'light';
7
7
  onCopy?: (value: string) => void;
8
+ /**
9
+ * Buttons after the copy button in the top corner, shown with or without a
10
+ * hover; --code-block-background there holds the colour the code sits on.
11
+ */
12
+ tools?: DOMTemplateLiterals | null;
8
13
  };
9
14
  declare const CodeBlock: FC<CodeBlockProps>;
10
15
  export default CodeBlock;
@@ -1,3 +1,5 @@
1
+ /** The top corner the copy button and any tools stand in, over the code. */
2
+ export declare const tools: import('@dineug/r-html').CSSTemplateLiterals;
1
3
  export declare const clipboard: import('@dineug/r-html').CSSTemplateLiterals;
2
4
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
3
5
  /** Out of flow, the root loses its content height and collapses to min-height. */
@@ -1,12 +1,21 @@
1
1
  import { FC } from '@dineug/r-html';
2
2
  import { Viewport } from '../../../engine/modules/editor/state';
3
+ import { KeyBindingMap } from '../../../utils/keyboard-shortcut';
3
4
  export type ColorPickerProps = {
4
5
  x: number;
5
6
  y: number;
7
+ /** The color it opens on, in any form a document holds; an empty or unreadable one shows no value. */
6
8
  color: string;
7
9
  viewport?: Viewport | null;
10
+ /** The editor's live bindings, which decide what a press inside keeps from the editor. */
11
+ keyBindingMap: KeyBindingMap;
12
+ /** Opaque #rrggbb colors the document already uses, most used first. */
13
+ documentColors?: ReadonlyArray<string>;
8
14
  onChange?: (color: string) => void;
9
- onLastUpdate?: (color: string) => void;
15
+ /** Shows a No color row at the foot of the panel, which calls this when pressed. */
16
+ onClear?: () => void;
17
+ /** Called on Escape; the parent closes the picker. */
18
+ onClose?: () => void;
10
19
  };
11
20
  declare const ColorPicker: FC<ColorPickerProps>;
12
21
  export default ColorPicker;
@@ -1,2 +1,27 @@
1
1
  export declare const container: import('@dineug/r-html').CSSTemplateLiterals;
2
+ /** Stacks over the floating toolbar, z-index 1, as the context menu does. */
3
+ export declare const panel: import('@dineug/r-html').CSSTemplateLiterals;
4
+ export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
5
+ export declare const area: import('@dineug/r-html').CSSTemplateLiterals;
6
+ /** White ringed in black reads on any color under it, so it ignores the theme. */
7
+ export declare const areaThumb: import('@dineug/r-html').CSSTemplateLiterals;
8
+ export declare const controls: import('@dineug/r-html').CSSTemplateLiterals;
9
+ export declare const iconButton: import('@dineug/r-html').CSSTemplateLiterals;
10
+ /** The bar is 10px tall; its ::before takes a press anywhere in the 24px row. */
11
+ export declare const hue: import('@dineug/r-html').CSSTemplateLiterals;
12
+ export declare const hueThumb: import('@dineug/r-html').CSSTemplateLiterals;
13
+ export declare const preview: import('@dineug/r-html').CSSTemplateLiterals;
14
+ export declare const fields: import('@dineug/r-html').CSSTemplateLiterals;
15
+ /** One of R, G and B; Hex takes hexField, never both, as two sheets would race. */
16
+ export declare const field: import('@dineug/r-html').CSSTemplateLiterals;
17
+ export declare const hexField: import('@dineug/r-html').CSSTemplateLiterals;
18
+ /** A real border, which forced colors keeps where it drops a box shadow. */
19
+ export declare const input: import('@dineug/r-html').CSSTemplateLiterals;
20
+ export declare const fieldLabel: import('@dineug/r-html').CSSTemplateLiterals;
21
+ export declare const swatchArea: import('@dineug/r-html').CSSTemplateLiterals;
22
+ /** Eight 16px columns and seven 10px gaps fill the 198px inside the panel exactly. */
23
+ export declare const swatches: import('@dineug/r-html').CSSTemplateLiterals;
24
+ export declare const caption: import('@dineug/r-html').CSSTemplateLiterals;
25
+ export declare const swatch: import('@dineug/r-html').CSSTemplateLiterals;
26
+ export declare const clear: import('@dineug/r-html').CSSTemplateLiterals;
2
27
  //# sourceMappingURL=ColorPicker.styles.d.ts.map
@@ -0,0 +1,36 @@
1
+ /** Hue in degrees 0 to 360, saturation and value 0 to 1, kept unrounded. */
2
+ export type Hsv = {
3
+ h: number;
4
+ s: number;
5
+ v: number;
6
+ };
7
+ export type Rgb = [number, number, number];
8
+ /** The channels of a color, rounded to whole 0 to 255 values; a hue of 360 is red again. */
9
+ export declare function hsvToRgb({ h, s, v }: Hsv): Rgb;
10
+ /**
11
+ * A color's hue, saturation and value, kept from the one before where the
12
+ * channels hold none: a gray keeps the hue it had, and black keeps both.
13
+ */
14
+ export declare function rgbToHsv([r, g, b]: Rgb, previous: Hsv): Hsv;
15
+ /** A color as the lower-case #rrggbb it is handed on as. */
16
+ export declare function hsvToHex(hsv: Hsv): string;
17
+ /** A #rrggbb as hue, saturation and value, keeping what it lacks from the one before. */
18
+ export declare function hexToHsv(hex: string, previous: Hsv): Hsv;
19
+ /**
20
+ * What the Hex field reads as a color: digits with or without the mark, 3, 4,
21
+ * 6 or 8 of them, or a pasted rgb() or hsl(), any alpha dropped; else null.
22
+ */
23
+ export declare function parseHexInput(text: string): string | null;
24
+ /** Whether the Hex field holds a whole color already, which it applies while typed. */
25
+ export declare function isCompleteHexInput(text: string): boolean;
26
+ /** A channel field's whole number, 255 at most; null for anything else. */
27
+ export declare function parseChannelInput(text: string): number | null;
28
+ /**
29
+ * Where a key moves the saturation and brightness area, from the whole
30
+ * percent nearest: left and right move saturation, the rest brightness, Home
31
+ * and End take saturation to either end; null for a key it does not take.
32
+ */
33
+ export declare function stepArea(hsv: Hsv, key: string, coarse: boolean): Hsv | null;
34
+ /** Where a key moves the hue, from the whole degree nearest, held to 0 to 360; null for a key it does not take. */
35
+ export declare function stepHue(h: number, key: string, coarse: boolean): number | null;
36
+ //# sourceMappingURL=colorModel.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { PlainMessageKey } from '../../../i18n/translate';
2
+ export type ColorSwatch = {
3
+ color: string;
4
+ label: string;
5
+ };
6
+ /** A preset swatch, named by the key of its hue's name, which a screen reader hears in the reader's language. */
7
+ export type PresetSwatch = {
8
+ color: string;
9
+ labelKey: PlainMessageKey;
10
+ };
11
+ /** Sixteen Radix step 9 colors, two rows of eight, in their light values, which a document keeps whatever the theme. */
12
+ export declare const PRESET_COLORS: ReadonlyArray<PresetSwatch>;
13
+ //# sourceMappingURL=presetColors.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A CSS color as an opaque lower-case #rrggbb, any alpha dropped: the forms toOpaqueHex
3
+ * reads, then any a canvas fillStyle reads, a name such as red or an oklch(); null for
4
+ * an empty or unreadable one, or one in the canvas's own syntax that paints nothing.
5
+ */
6
+ export declare function resolveColor(color: string): string | null;
7
+ //# sourceMappingURL=resolveColor.d.ts.map
@@ -1,9 +1,11 @@
1
1
  import { default as ContextMenuItem } from './context-menu-item/ContextMenuItem';
2
2
  import { default as ContextMenuRoot } from './context-menu-root/ContextMenuRoot';
3
+ import { default as ContextMenuSeparator } from './context-menu-separator/ContextMenuSeparator';
3
4
  import { default as Menu } from './menu/Menu';
4
5
  type CompositionContextMenu = {
5
6
  Root: typeof ContextMenuRoot;
6
7
  Item: typeof ContextMenuItem;
8
+ Separator: typeof ContextMenuSeparator;
7
9
  Menu: typeof Menu;
8
10
  };
9
11
  declare const ContextMenu: CompositionContextMenu;
@@ -5,6 +5,7 @@ export type ContextMenuContentProps = {
5
5
  y: number;
6
6
  fit?: boolean;
7
7
  flipX?: number;
8
+ openLeft?: boolean;
8
9
  children?: DOMTemplateLiterals;
9
10
  };
10
11
  declare const ContextMenuContent: FC<ContextMenuContentProps>;
@@ -9,11 +9,11 @@ export type WindowSize = {
9
9
  height: number;
10
10
  };
11
11
  /**
12
- * How far a menu drawn at box moves into the window: back from the right and
13
- * bottom edges, never past the left and top. A submenu the right edge cuts
14
- * flips to end at flipRight instead, unless the left edge would cut it more.
12
+ * How far a menu drawn at box moves into the window, never past its left and
13
+ * top. A submenu opens right of its row, or left to end at flipRight for a
14
+ * right-to-left reader, and switches only when its side cuts it more.
15
15
  */
16
- export declare function fitMenu(box: MenuBox, view: WindowSize, flipRight?: number): {
16
+ export declare function fitMenu(box: MenuBox, view: WindowSize, flipRight?: number, openLeft?: boolean): {
17
17
  dx: number;
18
18
  dy: number;
19
19
  };
@@ -0,0 +1,8 @@
1
+ import { FC } from '@dineug/r-html';
2
+ /**
3
+ * A rule between groups of rows, which opens and runs nothing. A sibling of the
4
+ * rows, never their wrapper, since a row finds its menu by its parent's data-id.
5
+ */
6
+ declare const ContextMenuSeparator: FC;
7
+ export default ContextMenuSeparator;
8
+ //# sourceMappingURL=ContextMenuSeparator.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const separator: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ContextMenuSeparator.styles.d.ts.map
@@ -2,6 +2,8 @@ import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
2
  export type MenuProps = {
3
3
  icon?: DOMTemplateLiterals | string | null;
4
4
  name: DOMTemplateLiterals | string;
5
+ /** A name kept as written, a vendor or a code language such as C#, which reads left to right in any language. */
6
+ literal?: boolean;
5
7
  right?: DOMTemplateLiterals | string | null;
6
8
  };
7
9
  declare const Menu: FC<MenuProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from '@dineug/r-html';
2
+ /** The mark of a row that opens a submenu, pointing the way it opens: right, or left for a right-to-left reader. */
3
+ declare const SubmenuChevron: FC;
4
+ export default SubmenuChevron;
5
+ //# sourceMappingURL=SubmenuChevron.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
+ export type DialogProps = {
3
+ /** The name the dialog is announced by. */
4
+ label: string;
5
+ /** The widest the box grows, in pixels; it narrows with the editor. */
6
+ maxWidth: number;
7
+ onClose: () => void;
8
+ children: DOMTemplateLiterals;
9
+ };
10
+ /** Marks the control a dialog focuses when it opens; without one the box takes the focus. */
11
+ export declare const AUTOFOCUS_ATTRIBUTE = "data-autofocus";
12
+ /** The editor width under which a dialog stacks what stands side by side in it. */
13
+ export declare const DIALOG_STACK_BELOW = 640;
14
+ /**
15
+ * A modal box over the editor. Escape and a press on the dim around it close
16
+ * it, and once it is gone the editor takes the keyboard back, or the keyboard
17
+ * falls to the page and every shortcut stops.
18
+ */
19
+ declare const Dialog: FC<DialogProps>;
20
+ export default Dialog;
21
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Dims the whole editor and centres the box in it. It stacks one under the
3
+ * toasts, which report what its buttons did, and the palette, drawn after it
4
+ * at the toasts' height, still opens over it.
5
+ */
6
+ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
7
+ /**
8
+ * The box over the dim, as tall as its content and never past the editor; a
9
+ * short editor scrolls it, so the controls at its foot stay in reach.
10
+ */
11
+ export declare const content: import('@dineug/r-html').CSSTemplateLiterals;
12
+ //# sourceMappingURL=Dialog.styles.d.ts.map
@@ -1,9 +1,6 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { findAll } from 'highlight-words-core';
3
- export type HighlightedTextProps = Parameters<typeof findAll>[0] & {
4
- searchWords: string[];
5
- textToHighlight: string;
6
- };
2
+ import { FindAllArgs } from '../../../utils/highlightWords';
3
+ export type HighlightedTextProps = FindAllArgs;
7
4
  declare const HighlightedText: FC<HighlightedTextProps>;
8
5
  export default HighlightedText;
9
6
  //# sourceMappingURL=HighlightedText.d.ts.map
@@ -4,7 +4,10 @@ export declare const ICON_VIEW_BOX = "0 0 24 24";
4
4
  export declare const ICON_STROKE_WIDTH = 2;
5
5
  export type IconNodeChild = IconNode[number];
6
6
  declare const LUCIDE_ICON: {
7
+ 'arrow-down': IconNode;
8
+ 'arrow-left': IconNode;
7
9
  'arrow-right': IconNode;
10
+ 'arrow-up': IconNode;
8
11
  atom: IconNode;
9
12
  braces: IconNode;
10
13
  brackets: IconNode;
@@ -13,10 +16,12 @@ declare const LUCIDE_ICON: {
13
16
  'chevron-down': IconNode;
14
17
  'chevron-right': IconNode;
15
18
  code: IconNode;
19
+ 'columns-2': IconNode;
16
20
  contrast: IconNode;
17
21
  copy: IconNode;
18
22
  database: IconNode;
19
23
  diff: IconNode;
24
+ download: IconNode;
20
25
  'external-link': IconNode;
21
26
  eye: IconNode;
22
27
  'file-diff': IconNode;
@@ -25,31 +30,52 @@ declare const LUCIDE_ICON: {
25
30
  'file-output': IconNode;
26
31
  fullscreen: IconNode;
27
32
  'grip-vertical': IconNode;
33
+ group: IconNode;
28
34
  hand: IconNode;
35
+ keyboard: IconNode;
29
36
  'key-round': IconNode;
37
+ languages: IconNode;
38
+ link: IconNode;
39
+ 'loader-circle': IconNode;
40
+ lock: IconNode;
41
+ 'lock-open': IconNode;
30
42
  maximize: IconNode;
43
+ 'message-square': IconNode;
31
44
  minimize: IconNode;
32
45
  minus: IconNode;
46
+ monitor: IconNode;
33
47
  'moon-star': IconNode;
34
48
  'mouse-pointer-2': IconNode;
35
49
  network: IconNode;
36
50
  palette: IconNode;
51
+ 'panel-right': IconNode;
52
+ 'panel-right-close': IconNode;
53
+ 'panel-right-open': IconNode;
54
+ pencil: IconNode;
55
+ pipette: IconNode;
37
56
  plus: IconNode;
38
57
  'redo-2': IconNode;
39
58
  'refresh-cw': IconNode;
59
+ regex: IconNode;
60
+ replace: IconNode;
61
+ 'replace-all': IconNode;
40
62
  'rotate-ccw-clock': IconNode;
41
63
  search: IconNode;
42
64
  settings: IconNode;
65
+ 'settings-2': IconNode;
43
66
  'share-2': IconNode;
44
67
  spline: IconNode;
45
68
  'sticky-note': IconNode;
46
69
  sun: IconNode;
47
- table: IconNode;
48
70
  'table-2': IconNode;
49
71
  'table-properties': IconNode;
72
+ 'text-search': IconNode;
73
+ 'triangle-alert': IconNode;
50
74
  'undo-2': IconNode;
75
+ ungroup: IconNode;
51
76
  'wand-sparkles': IconNode;
52
77
  waypoints: IconNode;
78
+ 'whole-word': IconNode;
53
79
  workflow: IconNode;
54
80
  x: IconNode;
55
81
  };
@@ -0,0 +1,18 @@
1
+ import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
+ /** The chevron's box; its ink is 5/24 inside it on each side, as lucide draws it. */
3
+ export declare const SELECT_CHEVRON_SIZE = 14;
4
+ export type SelectProps = {
5
+ /** The box's width and place, which the list fills. */
6
+ class?: any;
7
+ /** A setting nothing reads now, its value and chevron dimmed, still to be changed. */
8
+ dimmed?: boolean;
9
+ /** The native select, its options, name and change its own. */
10
+ children: DOMTemplateLiterals;
11
+ };
12
+ /**
13
+ * A native list drawn in the editor's look: the select a caller writes, with
14
+ * the editor's chevron at its end, on the left for a right-to-left reader.
15
+ */
16
+ declare const Select: FC<SelectProps>;
17
+ export default Select;
18
+ //# sourceMappingURL=Select.d.ts.map