@dineug/erd-editor 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +337 -0
  3. package/dist/components/appContext.d.ts +22 -0
  4. package/dist/components/customElementRegistry.d.ts +1 -0
  5. package/dist/components/erd/Erd.d.ts +6 -0
  6. package/dist/components/erd/Erd.styles.d.ts +1 -0
  7. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +14 -0
  8. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +2 -0
  9. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +11 -0
  10. package/dist/components/erd/canvas/Canvas.d.ts +7 -0
  11. package/dist/components/erd/canvas/Canvas.styles.d.ts +1 -0
  12. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +7 -0
  13. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +1 -0
  14. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +8 -0
  15. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +3 -0
  16. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +8 -0
  17. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.styles.d.ts +1 -0
  18. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +7 -0
  19. package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +1 -0
  20. package/dist/components/erd/canvas/memo/Memo.d.ts +7 -0
  21. package/dist/components/erd/canvas/memo/Memo.styles.d.ts +6 -0
  22. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +9 -0
  23. package/dist/components/erd/canvas/table/Table.d.ts +7 -0
  24. package/dist/components/erd/canvas/table/Table.styles.d.ts +5 -0
  25. package/dist/components/erd/canvas/table/column/Column.d.ts +29 -0
  26. package/dist/components/erd/canvas/table/column/Column.styles.d.ts +2 -0
  27. package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +16 -0
  28. package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.styles.d.ts +3 -0
  29. package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +6 -0
  30. package/dist/components/erd/canvas/table/column/column-key/ColumnKey.styles.d.ts +1 -0
  31. package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +7 -0
  32. package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
  33. package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +11 -0
  34. package/dist/components/erd/canvas/table/column/column-option/ColumnOption.styles.d.ts +1 -0
  35. package/dist/components/erd/canvas/table/useFocusTable.d.ts +7 -0
  36. package/dist/components/erd/canvas/table/useMoveTable.d.ts +6 -0
  37. package/dist/components/erd/drag-select/DragSelect.d.ts +9 -0
  38. package/dist/components/erd/drag-select/DragSelect.styles.d.ts +1 -0
  39. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +17 -0
  40. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +12 -0
  41. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +16 -0
  42. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +9 -0
  43. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +9 -0
  44. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +7 -0
  45. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +6 -0
  46. package/dist/components/erd/erdShortcutPerformCheck.d.ts +3 -0
  47. package/dist/components/erd/hide-sign/HideSign.d.ts +6 -0
  48. package/dist/components/erd/hide-sign/HideSign.styles.d.ts +1 -0
  49. package/dist/components/erd/minimap/Minimap.d.ts +4 -0
  50. package/dist/components/erd/minimap/Minimap.styles.d.ts +3 -0
  51. package/dist/components/erd/minimap/memo/Memo.d.ts +7 -0
  52. package/dist/components/erd/minimap/table/Table.d.ts +7 -0
  53. package/dist/components/erd/minimap/useMinimapScroll.d.ts +7 -0
  54. package/dist/components/erd/minimap/viewport/Viewport.d.ts +6 -0
  55. package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
  56. package/dist/components/erd/table-properties/TableProperties.d.ts +9 -0
  57. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +6 -0
  58. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +6 -0
  59. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +3 -0
  60. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +8 -0
  61. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
  62. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +7 -0
  63. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
  64. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +9 -0
  65. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +4 -0
  66. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +14 -0
  67. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +2 -0
  68. package/dist/components/erd/useErdShortcut.d.ts +2 -0
  69. package/dist/components/erd-editor/ErdEditor.d.ts +26 -0
  70. package/dist/components/erd-editor/ErdEditor.stories.d.ts +18 -0
  71. package/dist/components/erd-editor/ErdEditor.styles.d.ts +2 -0
  72. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +21 -0
  73. package/dist/components/generator-code/GeneratorCode.d.ts +7 -0
  74. package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
  75. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +6 -0
  76. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +12 -0
  77. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +12 -0
  78. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +12 -0
  79. package/dist/components/global-styles/GlobalStyles.d.ts +4 -0
  80. package/dist/components/primitives/button/Button.d.ts +9 -0
  81. package/dist/components/primitives/button/Button.stories.d.ts +26 -0
  82. package/dist/components/primitives/button/Button.styles.d.ts +6 -0
  83. package/dist/components/primitives/code-block/CodeBlock.d.ts +10 -0
  84. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +25 -0
  85. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +3 -0
  86. package/dist/components/primitives/color-picker/ColorPicker.d.ts +12 -0
  87. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +26 -0
  88. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
  89. package/dist/components/primitives/context-menu/ContextMenu.d.ts +10 -0
  90. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +16 -0
  91. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +9 -0
  92. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
  93. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +8 -0
  94. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
  95. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +6 -0
  96. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +22 -0
  97. package/dist/components/primitives/context-menu/menu/Menu.d.ts +8 -0
  98. package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +3 -0
  99. package/dist/components/primitives/edit-input/EditInput.d.ts +16 -0
  100. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +36 -0
  101. package/dist/components/primitives/edit-input/EditInput.styles.d.ts +4 -0
  102. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +8 -0
  103. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +23 -0
  104. package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
  105. package/dist/components/primitives/icon/Icon.d.ts +14 -0
  106. package/dist/components/primitives/icon/Icon.stories.d.ts +8 -0
  107. package/dist/components/primitives/icon/Icon.styles.d.ts +2 -0
  108. package/dist/components/primitives/icon/icons.d.ts +29 -0
  109. package/dist/components/primitives/kbd/Kbd.d.ts +7 -0
  110. package/dist/components/primitives/kbd/Kbd.stories.d.ts +17 -0
  111. package/dist/components/primitives/kbd/Kbd.styles.d.ts +3 -0
  112. package/dist/components/primitives/sash/Sash.d.ts +27 -0
  113. package/dist/components/primitives/sash/Sash.stories.d.ts +30 -0
  114. package/dist/components/primitives/sash/Sash.styles.d.ts +2 -0
  115. package/dist/components/primitives/separator/Separator.d.ts +7 -0
  116. package/dist/components/primitives/separator/Separator.stories.d.ts +25 -0
  117. package/dist/components/primitives/separator/Separator.styles.d.ts +2 -0
  118. package/dist/components/primitives/switch/Switch.d.ts +8 -0
  119. package/dist/components/primitives/switch/Switch.stories.d.ts +21 -0
  120. package/dist/components/primitives/switch/Switch.styles.d.ts +5 -0
  121. package/dist/components/primitives/text-input/TextInput.d.ts +19 -0
  122. package/dist/components/primitives/text-input/TextInput.stories.d.ts +41 -0
  123. package/dist/components/primitives/toast/Toast.d.ts +8 -0
  124. package/dist/components/primitives/toast/Toast.stories.d.ts +20 -0
  125. package/dist/components/primitives/toast/Toast.styles.d.ts +5 -0
  126. package/dist/components/quick-search/QuickSearch.d.ts +4 -0
  127. package/dist/components/quick-search/QuickSearch.styles.d.ts +10 -0
  128. package/dist/components/quick-search/actions.d.ts +14 -0
  129. package/dist/components/schema-sql/SchemaSQL.d.ts +7 -0
  130. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
  131. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +6 -0
  132. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +12 -0
  133. package/dist/components/settings/Settings.d.ts +4 -0
  134. package/dist/components/settings/Settings.styles.d.ts +10 -0
  135. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +13 -0
  136. package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +3 -0
  137. package/dist/components/settings/shortcuts/Shortcuts.d.ts +4 -0
  138. package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +2 -0
  139. package/dist/components/theme/Theme.d.ts +7 -0
  140. package/dist/components/theme-builder/ThemeBuilder.d.ts +7 -0
  141. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -0
  142. package/dist/components/toast-container/ToastContainer.d.ts +4 -0
  143. package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
  144. package/dist/components/toolbar/Toolbar.d.ts +6 -0
  145. package/dist/components/toolbar/Toolbar.styles.d.ts +3 -0
  146. package/dist/components/visualization/Visualization.d.ts +4 -0
  147. package/dist/components/visualization/Visualization.styles.d.ts +1 -0
  148. package/dist/components/visualization/createVisualization.d.ts +9 -0
  149. package/dist/components/visualization/table/Table.d.ts +10 -0
  150. package/dist/components/visualization/table/Table.styles.d.ts +1 -0
  151. package/dist/components/visualization/table/column/Column.d.ts +12 -0
  152. package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
  153. package/dist/constants/language.d.ts +1 -0
  154. package/dist/constants/layout.d.ts +32 -0
  155. package/dist/constants/open.d.ts +8 -0
  156. package/dist/constants/schema.d.ts +102 -0
  157. package/dist/constants/sql/dataType/MSSQL.d.ts +5 -0
  158. package/dist/constants/sql/dataType/MariaDB.d.ts +5 -0
  159. package/dist/constants/sql/dataType/MySQL.d.ts +5 -0
  160. package/dist/constants/sql/dataType/Oracle.d.ts +5 -0
  161. package/dist/constants/sql/dataType/PostgreSQL.d.ts +5 -0
  162. package/dist/constants/sql/dataType/SQLite.d.ts +5 -0
  163. package/dist/constants/sql/dataType/index.d.ts +25 -0
  164. package/dist/constants/sql/database.d.ts +12 -0
  165. package/dist/engine/actions.d.ts +35 -0
  166. package/dist/engine/context.d.ts +5 -0
  167. package/dist/engine/generator.actions.d.ts +4 -0
  168. package/dist/engine/history.actions.d.ts +9 -0
  169. package/dist/engine/history.d.ts +20 -0
  170. package/dist/engine/hooks.d.ts +8 -0
  171. package/dist/engine/modules/editor/actions.d.ts +93 -0
  172. package/dist/engine/modules/editor/atom.actions.d.ts +406 -0
  173. package/dist/engine/modules/editor/generator.actions.d.ts +31 -0
  174. package/dist/engine/modules/editor/history.d.ts +5 -0
  175. package/dist/engine/modules/editor/state.d.ts +63 -0
  176. package/dist/engine/modules/editor/utils/focus.d.ts +15 -0
  177. package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +3 -0
  178. package/dist/engine/modules/index/actions.d.ts +31 -0
  179. package/dist/engine/modules/index/atom.actions.d.ts +101 -0
  180. package/dist/engine/modules/index/generator.actions.d.ts +7 -0
  181. package/dist/engine/modules/index/history.d.ts +7 -0
  182. package/dist/engine/modules/index-column/actions.d.ts +37 -0
  183. package/dist/engine/modules/index-column/atom.actions.d.ts +125 -0
  184. package/dist/engine/modules/index-column/generator.actions.d.ts +11 -0
  185. package/dist/engine/modules/index-column/history.d.ts +7 -0
  186. package/dist/engine/modules/memo/actions.d.ts +59 -0
  187. package/dist/engine/modules/memo/atom.actions.d.ts +225 -0
  188. package/dist/engine/modules/memo/generator.actions.d.ts +9 -0
  189. package/dist/engine/modules/memo/history.d.ts +12 -0
  190. package/dist/engine/modules/relationship/actions.d.ts +31 -0
  191. package/dist/engine/modules/relationship/atom.actions.d.ts +102 -0
  192. package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
  193. package/dist/engine/modules/relationship/history.d.ts +6 -0
  194. package/dist/engine/modules/relationship/hooks.d.ts +2 -0
  195. package/dist/engine/modules/settings/actions.d.ts +83 -0
  196. package/dist/engine/modules/settings/atom.actions.d.ts +348 -0
  197. package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
  198. package/dist/engine/modules/settings/history.d.ts +11 -0
  199. package/dist/engine/modules/table/actions.d.ts +57 -0
  200. package/dist/engine/modules/table/atom.actions.d.ts +224 -0
  201. package/dist/engine/modules/table/generator.actions.d.ts +12 -0
  202. package/dist/engine/modules/table/history.d.ts +13 -0
  203. package/dist/engine/modules/table/hooks.d.ts +2 -0
  204. package/dist/engine/modules/table-column/actions.d.ts +53 -0
  205. package/dist/engine/modules/table-column/atom.actions.d.ts +230 -0
  206. package/dist/engine/modules/table-column/generator.actions.d.ts +19 -0
  207. package/dist/engine/modules/table-column/history.d.ts +14 -0
  208. package/dist/engine/modules/table-column/hooks.d.ts +2 -0
  209. package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -0
  210. package/dist/engine/rx-operators/actionsFilter.d.ts +3 -0
  211. package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -0
  212. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +3 -0
  213. package/dist/engine/rx-operators/index.d.ts +4 -0
  214. package/dist/engine/rx-operators/notEmptyActions.d.ts +2 -0
  215. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +3 -0
  216. package/dist/engine/rx-store.d.ts +10 -0
  217. package/dist/engine/state.d.ts +5 -0
  218. package/dist/engine/store.d.ts +5 -0
  219. package/dist/engine/store.hooks.d.ts +4 -0
  220. package/dist/engine/tag.d.ts +7 -0
  221. package/dist/erd-editor.js +42402 -0
  222. package/dist/hooks/useDarkMode.d.ts +5 -0
  223. package/dist/hooks/useFlipAnimation.d.ts +2 -0
  224. package/dist/hooks/useKeyBindingMap.d.ts +3 -0
  225. package/dist/hooks/useUnmounted.d.ts +5 -0
  226. package/dist/index.d.ts +5 -0
  227. package/dist/index.dev.d.ts +1 -0
  228. package/dist/internal-types/index.d.ts +40 -0
  229. package/dist/services/schema-gc/index.d.ts +10 -0
  230. package/dist/services/schema-gc/procGC.d.ts +3 -0
  231. package/dist/services/schema-gc/schemaGCService.d.ts +4 -0
  232. package/dist/services/shikiService.d.ts +8 -0
  233. package/dist/styles/colorPicker.style.d.ts +1 -0
  234. package/dist/styles/fonts.styles.d.ts +3 -0
  235. package/dist/styles/reset.styles.d.ts +1 -0
  236. package/dist/styles/scrollbar.styles.d.ts +1 -0
  237. package/dist/styles/typography.styles.d.ts +14 -0
  238. package/dist/themes/radix-ui-theme.config.d.ts +2 -0
  239. package/dist/themes/radix-ui-theme.d.ts +1792 -0
  240. package/dist/themes/textColor.d.ts +2 -0
  241. package/dist/themes/tokens.d.ts +63 -0
  242. package/dist/utils/attribute.d.ts +1 -0
  243. package/dist/utils/bit.d.ts +1 -0
  244. package/dist/utils/calcMemo.d.ts +3 -0
  245. package/dist/utils/calcTable.d.ts +16 -0
  246. package/dist/utils/clipboard.d.ts +1 -0
  247. package/dist/utils/collection/index.entity.d.ts +2 -0
  248. package/dist/utils/collection/indexColumn.entity.d.ts +2 -0
  249. package/dist/utils/collection/memo.entity.d.ts +2 -0
  250. package/dist/utils/collection/relationship.entity.d.ts +2 -0
  251. package/dist/utils/collection/sequence.d.ts +1 -0
  252. package/dist/utils/collection/table.entity.d.ts +2 -0
  253. package/dist/utils/collection/tableColumn.entity.d.ts +2 -0
  254. package/dist/utils/device-detect/index.d.ts +7 -0
  255. package/dist/utils/domEvent.d.ts +6 -0
  256. package/dist/utils/dragSelect.d.ts +23 -0
  257. package/dist/utils/draw-relationship/calc.d.ts +6 -0
  258. package/dist/utils/draw-relationship/draw.d.ts +4 -0
  259. package/dist/utils/draw-relationship/index.d.ts +108 -0
  260. package/dist/utils/draw-relationship/pathFinding.d.ts +3 -0
  261. package/dist/utils/draw-relationship/sort.d.ts +2 -0
  262. package/dist/utils/emitter.d.ts +141 -0
  263. package/dist/utils/file/exportFile.d.ts +9 -0
  264. package/dist/utils/file/importFile.d.ts +10 -0
  265. package/dist/utils/flipAnimation.d.ts +10 -0
  266. package/dist/utils/focus.d.ts +5 -0
  267. package/dist/utils/generator-code/csharp.d.ts +4 -0
  268. package/dist/utils/generator-code/graphql.d.ts +4 -0
  269. package/dist/utils/generator-code/index.d.ts +4 -0
  270. package/dist/utils/generator-code/java.d.ts +4 -0
  271. package/dist/utils/generator-code/jpa.d.ts +4 -0
  272. package/dist/utils/generator-code/kotlin.d.ts +4 -0
  273. package/dist/utils/generator-code/scala.d.ts +4 -0
  274. package/dist/utils/generator-code/typescript.d.ts +4 -0
  275. package/dist/utils/generator-code/utils.d.ts +19 -0
  276. package/dist/utils/globalEmitter.d.ts +28 -0
  277. package/dist/utils/globalEventObservable.d.ts +41 -0
  278. package/dist/utils/icon.d.ts +1 -0
  279. package/dist/utils/index.d.ts +7 -0
  280. package/dist/utils/internalEvents.d.ts +38 -0
  281. package/dist/utils/keyboard-shortcut/index.d.ts +36 -0
  282. package/dist/utils/keyboard-shortcut/utils.d.ts +2 -0
  283. package/dist/utils/promise.d.ts +1 -0
  284. package/dist/utils/rx-operators/fromCopy.d.ts +3 -0
  285. package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
  286. package/dist/utils/rx-operators/fromPaste.d.ts +3 -0
  287. package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
  288. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +2 -0
  289. package/dist/utils/schema-sql/MSSQL.d.ts +5 -0
  290. package/dist/utils/schema-sql/MariaDB.d.ts +5 -0
  291. package/dist/utils/schema-sql/MySQL.d.ts +5 -0
  292. package/dist/utils/schema-sql/Oracle.d.ts +5 -0
  293. package/dist/utils/schema-sql/PostgreSQL.d.ts +5 -0
  294. package/dist/utils/schema-sql/SQLite.d.ts +5 -0
  295. package/dist/utils/schema-sql/index.d.ts +4 -0
  296. package/dist/utils/schema-sql/utils.d.ts +53 -0
  297. package/dist/utils/schema-sql-parser/index.d.ts +3 -0
  298. package/dist/utils/schema-sql-parser/utils.d.ts +3 -0
  299. package/dist/utils/table-clipboard/copy.d.ts +3 -0
  300. package/dist/utils/table-clipboard/index.d.ts +15 -0
  301. package/dist/utils/table-clipboard/paste.d.ts +4 -0
  302. package/dist/utils/text.d.ts +4 -0
  303. package/dist/utils/validation.d.ts +16 -0
  304. package/dist/workers/schemaGC.shared-worker.d.ts +1 -0
  305. package/dist/workers/schemaGC.worker.d.ts +1 -0
  306. package/package.json +101 -0
@@ -0,0 +1,37 @@
1
+ import { Reducer } from '@dineug/r-html';
2
+ import { EngineContext } from "../../context";
3
+ import { RootState } from "../../state";
4
+ import { ValuesType } from "../../../internal-types";
5
+ export declare const ActionType: {
6
+ readonly addIndexColumn: "indexColumn.add";
7
+ readonly removeIndexColumn: "indexColumn.remove";
8
+ readonly moveIndexColumn: "indexColumn.move";
9
+ readonly changeIndexColumnOrderType: "indexColumn.changeOrderType";
10
+ };
11
+ export type ActionType = ValuesType<typeof ActionType>;
12
+ export type ActionMap = {
13
+ [ActionType.addIndexColumn]: {
14
+ id: string;
15
+ indexId: string;
16
+ tableId: string;
17
+ columnId: string;
18
+ };
19
+ [ActionType.removeIndexColumn]: {
20
+ id: string;
21
+ indexId: string;
22
+ tableId: string;
23
+ };
24
+ [ActionType.moveIndexColumn]: {
25
+ id: string;
26
+ indexId: string;
27
+ tableId: string;
28
+ targetId: string;
29
+ };
30
+ [ActionType.changeIndexColumnOrderType]: {
31
+ id: string;
32
+ indexId: string;
33
+ columnId: string;
34
+ value: number;
35
+ };
36
+ };
37
+ export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
@@ -0,0 +1,125 @@
1
+ import { ReducerType } from './actions';
2
+ export declare const addIndexColumnAction: {
3
+ (payload: {
4
+ id: string;
5
+ indexId: string;
6
+ tableId: string;
7
+ columnId: string;
8
+ }): import("@dineug/r-html").AnyAction<{
9
+ id: string;
10
+ indexId: string;
11
+ tableId: string;
12
+ columnId: string;
13
+ }>;
14
+ toString(): string;
15
+ type: string;
16
+ };
17
+ export declare const removeIndexColumnAction: {
18
+ (payload: {
19
+ id: string;
20
+ indexId: string;
21
+ tableId: string;
22
+ }): import("@dineug/r-html").AnyAction<{
23
+ id: string;
24
+ indexId: string;
25
+ tableId: string;
26
+ }>;
27
+ toString(): string;
28
+ type: string;
29
+ };
30
+ export declare const moveIndexColumnAction: {
31
+ (payload: {
32
+ id: string;
33
+ indexId: string;
34
+ tableId: string;
35
+ targetId: string;
36
+ }): import("@dineug/r-html").AnyAction<{
37
+ id: string;
38
+ indexId: string;
39
+ tableId: string;
40
+ targetId: string;
41
+ }>;
42
+ toString(): string;
43
+ type: string;
44
+ };
45
+ export declare const changeIndexColumnOrderTypeAction: {
46
+ (payload: {
47
+ id: string;
48
+ indexId: string;
49
+ columnId: string;
50
+ value: number;
51
+ }): import("@dineug/r-html").AnyAction<{
52
+ id: string;
53
+ indexId: string;
54
+ columnId: string;
55
+ value: number;
56
+ }>;
57
+ toString(): string;
58
+ type: string;
59
+ };
60
+ export declare const indexColumnReducers: {
61
+ "indexColumn.add": ReducerType<"indexColumn.add">;
62
+ "indexColumn.remove": ReducerType<"indexColumn.remove">;
63
+ "indexColumn.move": ReducerType<"indexColumn.move">;
64
+ "indexColumn.changeOrderType": ReducerType<"indexColumn.changeOrderType">;
65
+ };
66
+ export declare const actions: {
67
+ addIndexColumnAction: {
68
+ (payload: {
69
+ id: string;
70
+ indexId: string;
71
+ tableId: string;
72
+ columnId: string;
73
+ }): import("@dineug/r-html").AnyAction<{
74
+ id: string;
75
+ indexId: string;
76
+ tableId: string;
77
+ columnId: string;
78
+ }>;
79
+ toString(): string;
80
+ type: string;
81
+ };
82
+ removeIndexColumnAction: {
83
+ (payload: {
84
+ id: string;
85
+ indexId: string;
86
+ tableId: string;
87
+ }): import("@dineug/r-html").AnyAction<{
88
+ id: string;
89
+ indexId: string;
90
+ tableId: string;
91
+ }>;
92
+ toString(): string;
93
+ type: string;
94
+ };
95
+ moveIndexColumnAction: {
96
+ (payload: {
97
+ id: string;
98
+ indexId: string;
99
+ tableId: string;
100
+ targetId: string;
101
+ }): import("@dineug/r-html").AnyAction<{
102
+ id: string;
103
+ indexId: string;
104
+ tableId: string;
105
+ targetId: string;
106
+ }>;
107
+ toString(): string;
108
+ type: string;
109
+ };
110
+ changeIndexColumnOrderTypeAction: {
111
+ (payload: {
112
+ id: string;
113
+ indexId: string;
114
+ columnId: string;
115
+ value: number;
116
+ }): import("@dineug/r-html").AnyAction<{
117
+ id: string;
118
+ indexId: string;
119
+ columnId: string;
120
+ value: number;
121
+ }>;
122
+ toString(): string;
123
+ type: string;
124
+ };
125
+ };
@@ -0,0 +1,11 @@
1
+ import { GeneratorAction } from "../../generator.actions";
2
+ export declare const addIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
3
+ export declare const removeIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
4
+ export declare const changeIndexColumnOrderTypeAction$: (indexColumnId: string) => GeneratorAction;
5
+ export declare const moveIndexColumnAction$: (indexColumnId: string, targetId: string) => GeneratorAction;
6
+ export declare const actions$: {
7
+ addIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
8
+ removeIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
9
+ changeIndexColumnOrderTypeAction$: (indexColumnId: string) => GeneratorAction;
10
+ moveIndexColumnAction$: (indexColumnId: string, targetId: string) => GeneratorAction;
11
+ };
@@ -0,0 +1,7 @@
1
+ import { PushUndoHistory } from "../../history.actions";
2
+ export declare const indexColumnPushUndoHistoryMap: {
3
+ "indexColumn.add": PushUndoHistory;
4
+ "indexColumn.remove": PushUndoHistory;
5
+ "indexColumn.move": PushUndoHistory;
6
+ "indexColumn.changeOrderType": PushUndoHistory;
7
+ };
@@ -0,0 +1,59 @@
1
+ import { Reducer } from '@dineug/r-html';
2
+ import { EngineContext } from "../../context";
3
+ import { RootState } from "../../state";
4
+ import { ValuesType } from "../../../internal-types";
5
+ export declare const ActionType: {
6
+ readonly addMemo: "memo.add";
7
+ readonly moveMemo: "memo.move";
8
+ readonly moveToMemo: "memo.moveTo";
9
+ readonly removeMemo: "memo.remove";
10
+ readonly changeMemoValue: "memo.changeValue";
11
+ readonly changeMemoColor: "memo.changeColor";
12
+ readonly resizeMemo: "memo.resize";
13
+ readonly changeZIndex: "memo.changeZIndex";
14
+ };
15
+ export type ActionType = ValuesType<typeof ActionType>;
16
+ export type ActionMap = {
17
+ [ActionType.addMemo]: {
18
+ id: string;
19
+ ui: {
20
+ x: number;
21
+ y: number;
22
+ zIndex: number;
23
+ };
24
+ };
25
+ [ActionType.moveMemo]: {
26
+ movementX: number;
27
+ movementY: number;
28
+ ids: string[];
29
+ };
30
+ [ActionType.moveToMemo]: {
31
+ id: string;
32
+ x: number;
33
+ y: number;
34
+ };
35
+ [ActionType.removeMemo]: {
36
+ id: string;
37
+ };
38
+ [ActionType.changeMemoValue]: {
39
+ id: string;
40
+ value: string;
41
+ };
42
+ [ActionType.changeMemoColor]: {
43
+ id: string;
44
+ color: string;
45
+ prevColor: string;
46
+ };
47
+ [ActionType.resizeMemo]: {
48
+ id: string;
49
+ x: number;
50
+ y: number;
51
+ width: number;
52
+ height: number;
53
+ };
54
+ [ActionType.changeZIndex]: {
55
+ id: string;
56
+ zIndex: number;
57
+ };
58
+ };
59
+ export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
@@ -0,0 +1,225 @@
1
+ import { ReducerType } from './actions';
2
+ export declare const addMemoAction: {
3
+ (payload: {
4
+ id: string;
5
+ ui: {
6
+ x: number;
7
+ y: number;
8
+ zIndex: number;
9
+ };
10
+ }): import("@dineug/r-html").AnyAction<{
11
+ id: string;
12
+ ui: {
13
+ x: number;
14
+ y: number;
15
+ zIndex: number;
16
+ };
17
+ }>;
18
+ toString(): string;
19
+ type: string;
20
+ };
21
+ export declare const moveMemoAction: {
22
+ (payload: {
23
+ movementX: number;
24
+ movementY: number;
25
+ ids: string[];
26
+ }): import("@dineug/r-html").AnyAction<{
27
+ movementX: number;
28
+ movementY: number;
29
+ ids: string[];
30
+ }>;
31
+ toString(): string;
32
+ type: string;
33
+ };
34
+ export declare const moveToMemoAction: {
35
+ (payload: {
36
+ id: string;
37
+ x: number;
38
+ y: number;
39
+ }): import("@dineug/r-html").AnyAction<{
40
+ id: string;
41
+ x: number;
42
+ y: number;
43
+ }>;
44
+ toString(): string;
45
+ type: string;
46
+ };
47
+ export declare const removeMemoAction: {
48
+ (payload: {
49
+ id: string;
50
+ }): import("@dineug/r-html").AnyAction<{
51
+ id: string;
52
+ }>;
53
+ toString(): string;
54
+ type: string;
55
+ };
56
+ export declare const changeMemoValueAction: {
57
+ (payload: {
58
+ id: string;
59
+ value: string;
60
+ }): import("@dineug/r-html").AnyAction<{
61
+ id: string;
62
+ value: string;
63
+ }>;
64
+ toString(): string;
65
+ type: string;
66
+ };
67
+ export declare const changeMemoColorAction: {
68
+ (payload: {
69
+ id: string;
70
+ color: string;
71
+ prevColor: string;
72
+ }): import("@dineug/r-html").AnyAction<{
73
+ id: string;
74
+ color: string;
75
+ prevColor: string;
76
+ }>;
77
+ toString(): string;
78
+ type: string;
79
+ };
80
+ export declare const resizeMemoAction: {
81
+ (payload: {
82
+ id: string;
83
+ x: number;
84
+ y: number;
85
+ width: number;
86
+ height: number;
87
+ }): import("@dineug/r-html").AnyAction<{
88
+ id: string;
89
+ x: number;
90
+ y: number;
91
+ width: number;
92
+ height: number;
93
+ }>;
94
+ toString(): string;
95
+ type: string;
96
+ };
97
+ export declare const changeZIndexAction: {
98
+ (payload: {
99
+ id: string;
100
+ zIndex: number;
101
+ }): import("@dineug/r-html").AnyAction<{
102
+ id: string;
103
+ zIndex: number;
104
+ }>;
105
+ toString(): string;
106
+ type: string;
107
+ };
108
+ export declare const memoReducers: {
109
+ "memo.add": ReducerType<"memo.add">;
110
+ "memo.move": ReducerType<"memo.move">;
111
+ "memo.moveTo": ReducerType<"memo.moveTo">;
112
+ "memo.remove": ReducerType<"memo.remove">;
113
+ "memo.changeValue": ReducerType<"memo.changeValue">;
114
+ "memo.changeColor": ReducerType<"memo.changeColor">;
115
+ "memo.resize": ReducerType<"memo.resize">;
116
+ "memo.changeZIndex": ReducerType<"memo.changeZIndex">;
117
+ };
118
+ export declare const actions: {
119
+ addMemoAction: {
120
+ (payload: {
121
+ id: string;
122
+ ui: {
123
+ x: number;
124
+ y: number;
125
+ zIndex: number;
126
+ };
127
+ }): import("@dineug/r-html").AnyAction<{
128
+ id: string;
129
+ ui: {
130
+ x: number;
131
+ y: number;
132
+ zIndex: number;
133
+ };
134
+ }>;
135
+ toString(): string;
136
+ type: string;
137
+ };
138
+ moveMemoAction: {
139
+ (payload: {
140
+ movementX: number;
141
+ movementY: number;
142
+ ids: string[];
143
+ }): import("@dineug/r-html").AnyAction<{
144
+ movementX: number;
145
+ movementY: number;
146
+ ids: string[];
147
+ }>;
148
+ toString(): string;
149
+ type: string;
150
+ };
151
+ moveToMemoAction: {
152
+ (payload: {
153
+ id: string;
154
+ x: number;
155
+ y: number;
156
+ }): import("@dineug/r-html").AnyAction<{
157
+ id: string;
158
+ x: number;
159
+ y: number;
160
+ }>;
161
+ toString(): string;
162
+ type: string;
163
+ };
164
+ removeMemoAction: {
165
+ (payload: {
166
+ id: string;
167
+ }): import("@dineug/r-html").AnyAction<{
168
+ id: string;
169
+ }>;
170
+ toString(): string;
171
+ type: string;
172
+ };
173
+ changeMemoValueAction: {
174
+ (payload: {
175
+ id: string;
176
+ value: string;
177
+ }): import("@dineug/r-html").AnyAction<{
178
+ id: string;
179
+ value: string;
180
+ }>;
181
+ toString(): string;
182
+ type: string;
183
+ };
184
+ changeMemoColorAction: {
185
+ (payload: {
186
+ id: string;
187
+ color: string;
188
+ prevColor: string;
189
+ }): import("@dineug/r-html").AnyAction<{
190
+ id: string;
191
+ color: string;
192
+ prevColor: string;
193
+ }>;
194
+ toString(): string;
195
+ type: string;
196
+ };
197
+ resizeMemoAction: {
198
+ (payload: {
199
+ id: string;
200
+ x: number;
201
+ y: number;
202
+ width: number;
203
+ height: number;
204
+ }): import("@dineug/r-html").AnyAction<{
205
+ id: string;
206
+ x: number;
207
+ y: number;
208
+ width: number;
209
+ height: number;
210
+ }>;
211
+ toString(): string;
212
+ type: string;
213
+ };
214
+ changeZIndexAction: {
215
+ (payload: {
216
+ id: string;
217
+ zIndex: number;
218
+ }): import("@dineug/r-html").AnyAction<{
219
+ id: string;
220
+ zIndex: number;
221
+ }>;
222
+ toString(): string;
223
+ type: string;
224
+ };
225
+ };
@@ -0,0 +1,9 @@
1
+ import { GeneratorAction } from "../../generator.actions";
2
+ export declare const addMemoAction$: () => GeneratorAction;
3
+ export declare const removeMemoAction$: (id?: string) => GeneratorAction;
4
+ export declare const selectMemoAction$: (id: string, $mod: boolean) => GeneratorAction;
5
+ export declare const actions$: {
6
+ addMemoAction$: () => GeneratorAction;
7
+ removeMemoAction$: (id?: string) => GeneratorAction;
8
+ selectMemoAction$: (id: string, $mod: boolean) => GeneratorAction;
9
+ };
@@ -0,0 +1,12 @@
1
+ import { PushStreamHistory, PushUndoHistory } from "../../history.actions";
2
+ export declare const memoPushUndoHistoryMap: {
3
+ "memo.add": PushUndoHistory;
4
+ "memo.remove": PushUndoHistory;
5
+ "memo.changeValue": PushUndoHistory;
6
+ "memo.moveTo": PushUndoHistory;
7
+ };
8
+ export declare const memoPushStreamHistoryMap: {
9
+ "memo.move": PushStreamHistory;
10
+ "memo.changeColor": PushStreamHistory;
11
+ "memo.resize": PushStreamHistory;
12
+ };
@@ -0,0 +1,31 @@
1
+ import { Reducer } from '@dineug/r-html';
2
+ import { EngineContext } from "../../context";
3
+ import { RootState } from "../../state";
4
+ import { ValuesType } from "../../../internal-types";
5
+ export declare const ActionType: {
6
+ readonly addRelationship: "relationship.add";
7
+ readonly removeRelationship: "relationship.remove";
8
+ readonly changeRelationshipType: "relationship.changeType";
9
+ };
10
+ export type ActionType = ValuesType<typeof ActionType>;
11
+ export type ActionMap = {
12
+ [ActionType.addRelationship]: {
13
+ id: string;
14
+ relationshipType: number;
15
+ start: RelationshipPoint;
16
+ end: RelationshipPoint;
17
+ };
18
+ [ActionType.removeRelationship]: {
19
+ id: string;
20
+ };
21
+ [ActionType.changeRelationshipType]: {
22
+ id: string;
23
+ value: number;
24
+ };
25
+ };
26
+ export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
27
+ type RelationshipPoint = {
28
+ tableId: string;
29
+ columnIds: string[];
30
+ };
31
+ export {};
@@ -0,0 +1,102 @@
1
+ import { ReducerType } from './actions';
2
+ export declare const addRelationshipAction: {
3
+ (payload: {
4
+ id: string;
5
+ relationshipType: number;
6
+ start: {
7
+ tableId: string;
8
+ columnIds: string[];
9
+ };
10
+ end: {
11
+ tableId: string;
12
+ columnIds: string[];
13
+ };
14
+ }): import("@dineug/r-html").AnyAction<{
15
+ id: string;
16
+ relationshipType: number;
17
+ start: {
18
+ tableId: string;
19
+ columnIds: string[];
20
+ };
21
+ end: {
22
+ tableId: string;
23
+ columnIds: string[];
24
+ };
25
+ }>;
26
+ toString(): string;
27
+ type: string;
28
+ };
29
+ export declare const removeRelationshipAction: {
30
+ (payload: {
31
+ id: string;
32
+ }): import("@dineug/r-html").AnyAction<{
33
+ id: string;
34
+ }>;
35
+ toString(): string;
36
+ type: string;
37
+ };
38
+ export declare const changeRelationshipTypeAction: {
39
+ (payload: {
40
+ id: string;
41
+ value: number;
42
+ }): import("@dineug/r-html").AnyAction<{
43
+ id: string;
44
+ value: number;
45
+ }>;
46
+ toString(): string;
47
+ type: string;
48
+ };
49
+ export declare const relationshipReducers: {
50
+ "relationship.add": ReducerType<"relationship.add">;
51
+ "relationship.remove": ReducerType<"relationship.remove">;
52
+ "relationship.changeType": ReducerType<"relationship.changeType">;
53
+ };
54
+ export declare const actions: {
55
+ addRelationshipAction: {
56
+ (payload: {
57
+ id: string;
58
+ relationshipType: number;
59
+ start: {
60
+ tableId: string;
61
+ columnIds: string[];
62
+ };
63
+ end: {
64
+ tableId: string;
65
+ columnIds: string[];
66
+ };
67
+ }): import("@dineug/r-html").AnyAction<{
68
+ id: string;
69
+ relationshipType: number;
70
+ start: {
71
+ tableId: string;
72
+ columnIds: string[];
73
+ };
74
+ end: {
75
+ tableId: string;
76
+ columnIds: string[];
77
+ };
78
+ }>;
79
+ toString(): string;
80
+ type: string;
81
+ };
82
+ removeRelationshipAction: {
83
+ (payload: {
84
+ id: string;
85
+ }): import("@dineug/r-html").AnyAction<{
86
+ id: string;
87
+ }>;
88
+ toString(): string;
89
+ type: string;
90
+ };
91
+ changeRelationshipTypeAction: {
92
+ (payload: {
93
+ id: string;
94
+ value: number;
95
+ }): import("@dineug/r-html").AnyAction<{
96
+ id: string;
97
+ value: number;
98
+ }>;
99
+ toString(): string;
100
+ type: string;
101
+ };
102
+ };
@@ -0,0 +1 @@
1
+ export declare const actions$: {};
@@ -0,0 +1,6 @@
1
+ import { PushUndoHistory } from "../../history.actions";
2
+ export declare const relationshipPushUndoHistoryMap: {
3
+ "relationship.add": PushUndoHistory;
4
+ "relationship.remove": PushUndoHistory;
5
+ "relationship.changeType": PushUndoHistory;
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { Hook } from "../../hooks";
2
+ export declare const hooks: Hook[];