@tmagic/editor 1.8.5 → 1.8.6

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 (282) hide show
  1. package/dist/es/{Editor.vue_vue_type_script_setup_true_lang.js → Editor.vue.js} +9 -9
  2. package/dist/es/{Editor.js → Editor2.vue.js} +1 -1
  3. package/dist/es/components/{CodeBlockEditor.vue_vue_type_script_setup_true_lang.js → CodeBlockEditor.vue.js} +5 -5
  4. package/dist/es/components/{CodeBlockEditor.js → CodeBlockEditor2.vue.js} +1 -1
  5. package/dist/es/components/{CodeParams.js → CodeParams2.vue.js} +1 -1
  6. package/dist/es/components/{CompareForm.js → CompareForm2.vue.js} +1 -1
  7. package/dist/es/components/{ContentMenu.vue_vue_type_script_setup_true_lang.js → ContentMenu.vue.js} +2 -2
  8. package/dist/es/components/{ContentMenu.js → ContentMenu2.vue.js} +1 -1
  9. package/dist/es/components/{FloatingBox.vue_vue_type_script_setup_true_lang.js → FloatingBox.vue.js} +2 -2
  10. package/dist/es/components/{FloatingBox.js → FloatingBox2.vue.js} +1 -1
  11. package/dist/es/components/{Icon.js → Icon2.vue.js} +1 -1
  12. package/dist/es/components/{Resizer.js → Resizer2.vue.js} +1 -1
  13. package/dist/es/components/{ScrollBar.js → ScrollBar2.vue.js} +1 -1
  14. package/dist/es/components/{ScrollViewer.vue_vue_type_script_setup_true_lang.js → ScrollViewer.vue.js} +3 -3
  15. package/dist/es/components/{ScrollViewer.js → ScrollViewer2.vue.js} +1 -1
  16. package/dist/es/components/{SearchInput.js → SearchInput2.vue.js} +1 -1
  17. package/dist/es/components/{SplitView.vue_vue_type_script_setup_true_lang.js → SplitView.vue.js} +1 -1
  18. package/dist/es/components/{SplitView.js → SplitView2.vue.js} +1 -1
  19. package/dist/es/components/{ToolButton.vue_vue_type_script_setup_true_lang.js → ToolButton.vue.js} +3 -3
  20. package/dist/es/components/{ToolButton.js → ToolButton2.vue.js} +1 -1
  21. package/dist/es/components/{Tree.vue_vue_type_script_setup_true_lang.js → Tree.vue.js} +1 -1
  22. package/dist/es/components/{Tree.js → Tree2.vue.js} +1 -1
  23. package/dist/es/components/{TreeNode.vue_vue_type_script_setup_true_lang.js → TreeNode.vue.js} +2 -2
  24. package/dist/es/components/{TreeNode.js → TreeNode2.vue.js} +1 -1
  25. package/dist/es/components/{ViewForm.js → ViewForm2.vue.js} +1 -1
  26. package/dist/es/fields/{Code.vue_vue_type_script_setup_true_lang.js → Code.vue.js} +1 -1
  27. package/dist/es/fields/{Code.js → Code2.vue.js} +1 -1
  28. package/dist/es/fields/{CodeLink.js → CodeLink2.vue.js} +1 -1
  29. package/dist/es/fields/{CodeSelect.js → CodeSelect2.vue.js} +1 -1
  30. package/dist/es/fields/{CodeSelectCol.vue_vue_type_script_setup_true_lang.js → CodeSelectCol.vue.js} +7 -7
  31. package/dist/es/fields/{CodeSelectCol.js → CodeSelectCol2.vue.js} +1 -1
  32. package/dist/es/fields/{CondOpSelect.js → CondOpSelect2.vue.js} +1 -1
  33. package/dist/es/fields/DataSourceFieldSelect/{FieldSelect.vue_vue_type_script_setup_true_lang.js → FieldSelect.vue.js} +55 -14
  34. package/dist/es/fields/DataSourceFieldSelect/{FieldSelect.js → FieldSelect2.vue.js} +1 -1
  35. package/dist/es/fields/DataSourceFieldSelect/{Index.vue_vue_type_script_setup_true_lang.js → Index.vue.js} +7 -7
  36. package/dist/es/fields/DataSourceFieldSelect/{Index.js → Index2.vue.js} +1 -1
  37. package/dist/es/fields/{DataSourceFields.vue_vue_type_script_setup_true_lang.js → DataSourceFields.vue.js} +50 -17
  38. package/dist/es/fields/{DataSourceFields.js → DataSourceFields2.vue.js} +1 -1
  39. package/dist/es/fields/{DataSourceInput.vue_vue_type_script_setup_true_lang.js → DataSourceInput.vue.js} +5 -5
  40. package/dist/es/fields/{DataSourceInput.js → DataSourceInput2.vue.js} +1 -1
  41. package/dist/es/fields/{DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js → DataSourceMethodSelect.vue.js} +7 -7
  42. package/dist/es/fields/{DataSourceMethodSelect.js → DataSourceMethodSelect2.vue.js} +1 -1
  43. package/dist/es/fields/{DataSourceMethods.vue_vue_type_script_setup_true_lang.js → DataSourceMethods.vue.js} +3 -3
  44. package/dist/es/fields/{DataSourceMethods.js → DataSourceMethods2.vue.js} +1 -1
  45. package/dist/es/fields/{DataSourceMocks.vue_vue_type_script_setup_true_lang.js → DataSourceMocks.vue.js} +8 -8
  46. package/dist/es/fields/{DataSourceMocks.js → DataSourceMocks2.vue.js} +1 -1
  47. package/dist/es/fields/{DataSourceSelect.vue_vue_type_script_setup_true_lang.js → DataSourceSelect.vue.js} +5 -5
  48. package/dist/es/fields/{DataSourceSelect.js → DataSourceSelect2.vue.js} +1 -1
  49. package/dist/es/fields/{DisplayConds.js → DisplayConds2.vue.js} +1 -1
  50. package/dist/es/fields/{EventSelect.js → EventSelect2.vue.js} +1 -1
  51. package/dist/es/fields/{KeyValue.vue_vue_type_script_setup_true_lang.js → KeyValue.vue.js} +3 -3
  52. package/dist/es/fields/{KeyValue.js → KeyValue2.vue.js} +1 -1
  53. package/dist/es/fields/{PageFragmentSelect.vue_vue_type_script_setup_true_lang.js → PageFragmentSelect.vue.js} +4 -4
  54. package/dist/es/fields/{PageFragmentSelect.js → PageFragmentSelect2.vue.js} +1 -1
  55. package/dist/es/fields/StyleSetter/{Index.vue_vue_type_script_setup_true_lang.js → Index.vue.js} +7 -7
  56. package/dist/es/fields/StyleSetter/{Index.js → Index2.vue.js} +1 -1
  57. package/dist/es/fields/StyleSetter/components/{BackgroundPosition.js → BackgroundPosition2.vue.js} +1 -1
  58. package/dist/es/fields/StyleSetter/components/{Border.js → Border2.vue.js} +1 -1
  59. package/dist/es/fields/StyleSetter/components/{Box.js → Box2.vue.js} +1 -1
  60. package/dist/es/fields/StyleSetter/configs.js +43 -43
  61. package/dist/es/fields/StyleSetter/pro/{Background.js → Background2.vue.js} +1 -1
  62. package/dist/es/fields/StyleSetter/pro/{Border.vue_vue_type_script_setup_true_lang.js → Border.vue.js} +3 -3
  63. package/dist/es/fields/StyleSetter/pro/{Border.js → Border2.vue.js} +1 -1
  64. package/dist/es/fields/StyleSetter/pro/{Font.js → Font2.vue.js} +1 -1
  65. package/dist/es/fields/StyleSetter/pro/{Layout.vue_vue_type_script_setup_true_lang.js → Layout.vue.js} +4 -4
  66. package/dist/es/fields/StyleSetter/pro/{Layout.js → Layout2.vue.js} +1 -1
  67. package/dist/es/fields/StyleSetter/pro/{Position.js → Position2.vue.js} +1 -1
  68. package/dist/es/fields/StyleSetter/pro/{Transform.js → Transform2.vue.js} +1 -1
  69. package/dist/es/fields/{UISelect.js → UISelect2.vue.js} +1 -1
  70. package/dist/es/fields/configs/codeSelect.js +2 -2
  71. package/dist/es/fields/configs/displayConds.js +1 -1
  72. package/dist/es/fields/configs/eventSelect.js +3 -3
  73. package/dist/es/fields/headless-validation.js +1 -1
  74. package/dist/es/hooks/use-code-block-edit.js +1 -1
  75. package/dist/es/hooks/use-compare-form.js +1 -1
  76. package/dist/es/hooks/use-editor-content-height.js +1 -1
  77. package/dist/es/hooks/use-filter.js +2 -2
  78. package/dist/es/hooks/use-float-box.js +1 -1
  79. package/dist/es/hooks/use-form-context.js +1 -1
  80. package/dist/es/hooks/use-node-status.js +1 -1
  81. package/dist/es/hooks/use-stage.js +28 -3
  82. package/dist/es/icons/{CenterIcon.js → CenterIcon2.vue.js} +1 -1
  83. package/dist/es/icons/{CodeIcon.js → CodeIcon2.vue.js} +1 -1
  84. package/dist/es/icons/{FolderMinusIcon.js → FolderMinusIcon2.vue.js} +1 -1
  85. package/dist/es/index.js +47 -47
  86. package/dist/es/initService.js +9 -9
  87. package/dist/es/layouts/{AddPageBox.vue_vue_type_script_setup_true_lang.js → AddPageBox.vue.js} +4 -4
  88. package/dist/es/layouts/{AddPageBox.js → AddPageBox2.vue.js} +1 -1
  89. package/dist/es/layouts/{CodeEditor.vue_vue_type_script_setup_true_lang.js → CodeEditor.vue.js} +5 -5
  90. package/dist/es/layouts/{CodeEditor.js → CodeEditor2.vue.js} +1 -1
  91. package/dist/es/layouts/{Framework.vue_vue_type_script_setup_true_lang.js → Framework.vue.js} +5 -5
  92. package/dist/es/layouts/{Framework.js → Framework2.vue.js} +1 -1
  93. package/dist/es/layouts/{NavMenu.vue_vue_type_script_setup_true_lang.js → NavMenu.vue.js} +5 -5
  94. package/dist/es/layouts/{NavMenu.js → NavMenu2.vue.js} +1 -1
  95. package/dist/es/layouts/{NavMenuColumn.vue_vue_type_script_setup_true_lang.js → NavMenuColumn.vue.js} +14 -6
  96. package/dist/es/layouts/{NavMenuColumn.js → NavMenuColumn2.vue.js} +1 -1
  97. package/dist/es/layouts/history-list/{Bucket.vue_vue_type_script_setup_true_lang.js → Bucket.vue.js} +3 -3
  98. package/dist/es/layouts/history-list/{Bucket.js → Bucket2.vue.js} +1 -1
  99. package/dist/es/layouts/history-list/{BucketTab.vue_vue_type_script_setup_true_lang.js → BucketTab.vue.js} +2 -2
  100. package/dist/es/layouts/history-list/{BucketTab.js → BucketTab2.vue.js} +1 -1
  101. package/dist/es/layouts/history-list/{GroupRow.js → GroupRow2.vue.js} +1 -1
  102. package/dist/es/layouts/history-list/{HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js → HistoryDiffDialog.vue.js} +3 -3
  103. package/dist/es/layouts/history-list/{HistoryDiffDialog.js → HistoryDiffDialog2.vue.js} +1 -1
  104. package/dist/es/layouts/history-list/{HistoryListPanel.vue_vue_type_script_setup_true_lang.js → HistoryListPanel.vue.js} +6 -6
  105. package/dist/es/layouts/history-list/{HistoryListPanel.js → HistoryListPanel2.vue.js} +1 -1
  106. package/dist/es/layouts/history-list/{InitialRow.js → InitialRow2.vue.js} +1 -1
  107. package/dist/es/layouts/history-list/{PageTab.vue_vue_type_script_setup_true_lang.js → PageTab.vue.js} +4 -4
  108. package/dist/es/layouts/history-list/{PageTab.js → PageTab2.vue.js} +1 -1
  109. package/dist/es/layouts/history-list/composables.js +1 -1
  110. package/dist/es/layouts/history-list/useHistoryList.js +1 -1
  111. package/dist/es/layouts/history-list/useHistoryRevert.js +3 -3
  112. package/dist/es/layouts/page-bar/{AddButton.vue_vue_type_script_setup_true_lang.js → AddButton.vue.js} +6 -6
  113. package/dist/es/layouts/page-bar/{AddButton.js → AddButton2.vue.js} +1 -1
  114. package/dist/es/layouts/page-bar/{PageBar.vue_vue_type_script_setup_true_lang.js → PageBar.vue.js} +8 -8
  115. package/dist/es/layouts/page-bar/{PageBar.js → PageBar2.vue.js} +1 -1
  116. package/dist/es/layouts/page-bar/{PageBarScrollContainer.vue_vue_type_script_setup_true_lang.js → PageBarScrollContainer.vue.js} +2 -2
  117. package/dist/es/layouts/page-bar/{PageBarScrollContainer.js → PageBarScrollContainer2.vue.js} +1 -1
  118. package/dist/es/layouts/page-bar/{PageList.vue_vue_type_script_setup_true_lang.js → PageList.vue.js} +3 -3
  119. package/dist/es/layouts/page-bar/{PageList.js → PageList2.vue.js} +1 -1
  120. package/dist/es/layouts/page-bar/{Search.vue_vue_type_script_setup_true_lang.js → Search.vue.js} +3 -3
  121. package/dist/es/layouts/page-bar/{Search.js → Search2.vue.js} +1 -1
  122. package/dist/es/layouts/props-panel/{FormPanel.vue_vue_type_script_setup_true_lang.js → FormPanel.vue.js} +7 -7
  123. package/dist/es/layouts/props-panel/{FormPanel.js → FormPanel2.vue.js} +1 -1
  124. package/dist/es/layouts/props-panel/{PropsPanel.vue_vue_type_script_setup_true_lang.js → PropsPanel.vue.js} +7 -7
  125. package/dist/es/layouts/props-panel/{PropsPanel.js → PropsPanel2.vue.js} +1 -1
  126. package/dist/es/layouts/props-panel/use-style-panel.js +1 -1
  127. package/dist/es/layouts/sidebar/{ComponentListPanel.vue_vue_type_script_setup_true_lang.js → ComponentListPanel.vue.js} +7 -7
  128. package/dist/es/layouts/sidebar/{ComponentListPanel.js → ComponentListPanel2.vue.js} +1 -1
  129. package/dist/es/layouts/sidebar/{Sidebar.vue_vue_type_script_setup_true_lang.js → Sidebar.vue.js} +8 -8
  130. package/dist/es/layouts/sidebar/{Sidebar.js → Sidebar2.vue.js} +1 -1
  131. package/dist/es/layouts/sidebar/code-block/{CodeBlockList.vue_vue_type_script_setup_true_lang.js → CodeBlockList.vue.js} +5 -5
  132. package/dist/es/layouts/sidebar/code-block/{CodeBlockList.js → CodeBlockList2.vue.js} +1 -1
  133. package/dist/es/layouts/sidebar/code-block/{CodeBlockListPanel.vue_vue_type_script_setup_true_lang.js → CodeBlockListPanel.vue.js} +6 -6
  134. package/dist/es/layouts/sidebar/code-block/{CodeBlockListPanel.js → CodeBlockListPanel2.vue.js} +1 -1
  135. package/dist/es/layouts/sidebar/code-block/useContentMenu.js +1 -1
  136. package/dist/es/layouts/sidebar/data-source/{DataSourceAddButton.vue_vue_type_script_setup_true_lang.js → DataSourceAddButton.vue.js} +2 -2
  137. package/dist/es/layouts/sidebar/data-source/{DataSourceAddButton.js → DataSourceAddButton2.vue.js} +1 -1
  138. package/dist/es/layouts/sidebar/data-source/{DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js → DataSourceConfigPanel.vue.js} +4 -4
  139. package/dist/es/layouts/sidebar/data-source/{DataSourceConfigPanel.js → DataSourceConfigPanel2.vue.js} +1 -1
  140. package/dist/es/layouts/sidebar/data-source/{DataSourceList.vue_vue_type_script_setup_true_lang.js → DataSourceList.vue.js} +5 -5
  141. package/dist/es/layouts/sidebar/data-source/{DataSourceList.js → DataSourceList2.vue.js} +1 -1
  142. package/dist/es/layouts/sidebar/data-source/{DataSourceListPanel.vue_vue_type_script_setup_true_lang.js → DataSourceListPanel.vue.js} +8 -8
  143. package/dist/es/layouts/sidebar/data-source/{DataSourceListPanel.js → DataSourceListPanel2.vue.js} +1 -1
  144. package/dist/es/layouts/sidebar/data-source/useContentMenu.js +1 -1
  145. package/dist/es/layouts/sidebar/layer/{LayerMenu.vue_vue_type_script_setup_true_lang.js → LayerMenu.vue.js} +5 -5
  146. package/dist/es/layouts/sidebar/layer/{LayerMenu.js → LayerMenu2.vue.js} +1 -1
  147. package/dist/es/layouts/sidebar/layer/{LayerNodeContent.vue_vue_type_script_setup_true_lang.js → LayerNodeContent.vue.js} +3 -3
  148. package/dist/es/layouts/sidebar/layer/{LayerNodeContent.js → LayerNodeContent2.vue.js} +1 -1
  149. package/dist/es/layouts/sidebar/layer/{LayerNodeTool.js → LayerNodeTool2.vue.js} +1 -1
  150. package/dist/es/layouts/sidebar/layer/{LayerPanel.vue_vue_type_script_setup_true_lang.js → LayerPanel.vue.js} +7 -7
  151. package/dist/es/layouts/sidebar/layer/{LayerPanel.js → LayerPanel2.vue.js} +1 -1
  152. package/dist/es/layouts/sidebar/layer/use-click.js +3 -3
  153. package/dist/es/layouts/sidebar/layer/use-drag.js +1 -1
  154. package/dist/es/layouts/sidebar/layer/use-keybinding.js +1 -1
  155. package/dist/es/layouts/sidebar/layer/use-node-status.js +2 -2
  156. package/dist/es/layouts/workspace/{Breadcrumb.js → Breadcrumb2.vue.js} +1 -1
  157. package/dist/es/layouts/workspace/{Workspace.vue_vue_type_script_setup_true_lang.js → Workspace.vue.js} +3 -3
  158. package/dist/es/layouts/workspace/{Workspace.js → Workspace2.vue.js} +1 -1
  159. package/dist/es/layouts/workspace/viewer/{NodeListMenu.vue_vue_type_script_setup_true_lang.js → NodeListMenu.vue.js} +5 -5
  160. package/dist/es/layouts/workspace/viewer/{NodeListMenu.js → NodeListMenu2.vue.js} +1 -1
  161. package/dist/es/layouts/workspace/viewer/{Stage.vue_vue_type_script_setup_true_lang.js → Stage.vue.js} +70 -55
  162. package/dist/es/layouts/workspace/viewer/{Stage.js → Stage2.vue.js} +1 -1
  163. package/dist/es/layouts/workspace/viewer/{StageOverlay.vue_vue_type_script_setup_true_lang.js → StageOverlay.vue.js} +3 -3
  164. package/dist/es/layouts/workspace/viewer/{StageOverlay.js → StageOverlay2.vue.js} +1 -1
  165. package/dist/es/layouts/workspace/viewer/{ViewerMenu.vue_vue_type_script_setup_true_lang.js → ViewerMenu.vue.js} +6 -6
  166. package/dist/es/layouts/workspace/viewer/{ViewerMenu.js → ViewerMenu2.vue.js} +1 -1
  167. package/dist/es/plugin.js +24 -24
  168. package/dist/es/sdk/index.js +2 -2
  169. package/dist/es/sdk/services/CodeBlock.js +18 -18
  170. package/dist/es/sdk/services/DataSource.js +17 -17
  171. package/dist/es/sdk/services/Dep.js +3 -3
  172. package/dist/es/sdk/services/Editor.js +60 -58
  173. package/dist/es/sdk/services/Events.js +2 -2
  174. package/dist/es/sdk/services/History.js +1 -1
  175. package/dist/es/sdk/services/Props.js +6 -6
  176. package/dist/es/sdk/services/WebStorage.js +1 -1
  177. package/dist/es/sdk/utils/dep.js +2 -2
  178. package/dist/es/sdk/utils/operator.js +3 -3
  179. package/dist/es/sdk/validate/index.js +4 -4
  180. package/dist/es/sdk/wiring.js +2 -2
  181. package/dist/es/services/keybinding.js +2 -2
  182. package/dist/es/services/stageOverlay.js +2 -2
  183. package/dist/es/services/ui.js +2 -2
  184. package/dist/es/utils/code-block.js +2 -2
  185. package/dist/es/utils/content-menu.js +3 -3
  186. package/dist/es/utils/data-source/index.js +88 -5
  187. package/dist/es/utils/dep/collect-worker-client.js +1 -1
  188. package/dist/es/utils/dep/idle-task.js +1 -1
  189. package/dist/es/utils/editor.js +7 -6
  190. package/dist/es/utils/event.js +1 -1
  191. package/dist/es/utils/history.js +2 -2
  192. package/dist/es/utils/operator.js +1 -1
  193. package/dist/es/utils/page.js +21 -0
  194. package/dist/es/utils/props.js +1 -1
  195. package/dist/es/utils/type-match-rules.js +4 -4
  196. package/dist/tmagic-editor-headless.umd.cjs +73 -41
  197. package/dist/tmagic-editor-sdk.umd.cjs +41 -38
  198. package/dist/tmagic-editor.umd.cjs +554 -181
  199. package/package.json +8 -8
  200. package/src/fields/DataSourceFieldSelect/FieldSelect.vue +68 -9
  201. package/src/fields/DataSourceFields.vue +53 -10
  202. package/src/fields/DataSourceMocks.vue +2 -2
  203. package/src/hooks/use-stage.ts +26 -1
  204. package/src/layouts/NavMenuColumn.vue +8 -1
  205. package/src/layouts/workspace/viewer/Stage.vue +77 -57
  206. package/src/sdk/services/Editor.ts +6 -4
  207. package/src/type.ts +2 -0
  208. package/src/utils/data-source/index.ts +151 -6
  209. package/src/utils/editor.ts +4 -0
  210. package/src/utils/page.ts +32 -0
  211. package/types/headless.d.ts +14 -3
  212. package/types/index.d.ts +137 -298
  213. package/types/sdk.d.ts +3 -43
  214. package/dist/es/components/{CodeParams.vue_vue_type_script_setup_true_lang.js → CodeParams.vue.js} +2 -2
  215. package/dist/es/components/{CompareForm.vue_vue_type_script_setup_true_lang.js → CompareForm.vue.js} +3 -3
  216. package/dist/es/components/{Icon.vue_vue_type_script_setup_true_lang.js → Icon.vue.js} +1 -1
  217. package/dist/es/components/{Resizer.vue_vue_type_script_setup_true_lang.js → Resizer.vue.js} +1 -1
  218. package/dist/es/components/{ScrollBar.vue_vue_type_script_setup_true_lang.js → ScrollBar.vue.js} +0 -0
  219. package/dist/es/components/{SearchInput.vue_vue_type_script_setup_true_lang.js → SearchInput.vue.js} +1 -1
  220. package/dist/es/components/{ViewForm.vue_vue_type_script_setup_true_lang.js → ViewForm.vue.js} +2 -2
  221. package/dist/es/fields/{CodeLink.vue_vue_type_script_setup_true_lang.js → CodeLink.vue.js} +1 -1
  222. package/dist/es/fields/{CodeSelect.vue_vue_type_script_setup_true_lang.js → CodeSelect.vue.js} +2 -2
  223. package/dist/es/fields/{CondOpSelect.vue_vue_type_script_setup_true_lang.js → CondOpSelect.vue.js} +3 -3
  224. package/dist/es/fields/{DisplayConds.vue_vue_type_script_setup_true_lang.js → DisplayConds.vue.js} +2 -2
  225. package/dist/es/fields/{EventSelect.vue_vue_type_script_setup_true_lang.js → EventSelect.vue.js} +2 -2
  226. package/dist/es/fields/StyleSetter/components/{BackgroundPosition.vue_vue_type_script_setup_true_lang.js → BackgroundPosition.vue.js} +1 -1
  227. package/dist/es/fields/StyleSetter/components/{Border.vue_vue_type_script_setup_true_lang.js → Border.vue.js} +2 -2
  228. package/dist/es/fields/StyleSetter/components/{Box.vue_vue_type_script_setup_true_lang.js → Box.vue.js} +0 -0
  229. package/dist/es/fields/StyleSetter/icons/align-items/{Baseline.js → Baseline.vue.js} +1 -1
  230. package/dist/es/fields/StyleSetter/icons/align-items/{Center.js → Center.vue.js} +1 -1
  231. package/dist/es/fields/StyleSetter/icons/align-items/{End.js → End.vue.js} +1 -1
  232. package/dist/es/fields/StyleSetter/icons/align-items/{FlexEnd.js → FlexEnd.vue.js} +1 -1
  233. package/dist/es/fields/StyleSetter/icons/align-items/{FlexStart.js → FlexStart.vue.js} +1 -1
  234. package/dist/es/fields/StyleSetter/icons/align-items/{Normal.js → Normal.vue.js} +1 -1
  235. package/dist/es/fields/StyleSetter/icons/align-items/{SpaceAround.js → SpaceAround.vue.js} +1 -1
  236. package/dist/es/fields/StyleSetter/icons/align-items/{SpaceBetween.js → SpaceBetween.vue.js} +1 -1
  237. package/dist/es/fields/StyleSetter/icons/align-items/{Start.js → Start.vue.js} +1 -1
  238. package/dist/es/fields/StyleSetter/icons/align-items/{Stretch.js → Stretch.vue.js} +1 -1
  239. package/dist/es/fields/StyleSetter/icons/background-repeat/{NoRepeat.js → NoRepeat.vue.js} +1 -1
  240. package/dist/es/fields/StyleSetter/icons/background-repeat/{Repeat.js → Repeat.vue.js} +1 -1
  241. package/dist/es/fields/StyleSetter/icons/background-repeat/{RepeatX.js → RepeatX.vue.js} +1 -1
  242. package/dist/es/fields/StyleSetter/icons/background-repeat/{RepeatY.js → RepeatY.vue.js} +1 -1
  243. package/dist/es/fields/StyleSetter/icons/background-repeat/{Round.js → Round.vue.js} +1 -1
  244. package/dist/es/fields/StyleSetter/icons/background-repeat/{Space.js → Space.vue.js} +1 -1
  245. package/dist/es/fields/StyleSetter/icons/display/{Block.js → Block.vue.js} +1 -1
  246. package/dist/es/fields/StyleSetter/icons/display/{Flex.js → Flex.vue.js} +1 -1
  247. package/dist/es/fields/StyleSetter/icons/display/{Grid.js → Grid.vue.js} +1 -1
  248. package/dist/es/fields/StyleSetter/icons/display/{Inline.js → Inline.vue.js} +1 -1
  249. package/dist/es/fields/StyleSetter/icons/display/{InlineBlock.js → InlineBlock.vue.js} +1 -1
  250. package/dist/es/fields/StyleSetter/icons/display/{InlineFlex.js → InlineFlex.vue.js} +1 -1
  251. package/dist/es/fields/StyleSetter/icons/display/{InlineGrid.js → InlineGrid.vue.js} +1 -1
  252. package/dist/es/fields/StyleSetter/icons/display/{None.js → None.vue.js} +1 -1
  253. package/dist/es/fields/StyleSetter/icons/flex-direction/{Column.js → Column.vue.js} +1 -1
  254. package/dist/es/fields/StyleSetter/icons/flex-direction/{ColumnReverse.js → ColumnReverse.vue.js} +1 -1
  255. package/dist/es/fields/StyleSetter/icons/flex-direction/{Row.js → Row.vue.js} +1 -1
  256. package/dist/es/fields/StyleSetter/icons/flex-direction/{RowReverse.js → RowReverse.vue.js} +1 -1
  257. package/dist/es/fields/StyleSetter/icons/justify-content/{Center.js → Center.vue.js} +1 -1
  258. package/dist/es/fields/StyleSetter/icons/justify-content/{FlexEnd.js → FlexEnd.vue.js} +1 -1
  259. package/dist/es/fields/StyleSetter/icons/justify-content/{FlexStart.js → FlexStart.vue.js} +1 -1
  260. package/dist/es/fields/StyleSetter/icons/justify-content/{SpaceAround.js → SpaceAround.vue.js} +1 -1
  261. package/dist/es/fields/StyleSetter/icons/justify-content/{SpaceBetween.js → SpaceBetween.vue.js} +1 -1
  262. package/dist/es/fields/StyleSetter/icons/justify-content/{SpaceEvenly.js → SpaceEvenly.vue.js} +1 -1
  263. package/dist/es/fields/StyleSetter/icons/text-align/{Center.js → Center.vue.js} +1 -1
  264. package/dist/es/fields/StyleSetter/icons/text-align/{End.js → End.vue.js} +1 -1
  265. package/dist/es/fields/StyleSetter/icons/text-align/{Justify.js → Justify.vue.js} +1 -1
  266. package/dist/es/fields/StyleSetter/icons/text-align/{Left.js → Left.vue.js} +1 -1
  267. package/dist/es/fields/StyleSetter/icons/text-align/{MatchParent.js → MatchParent.vue.js} +1 -1
  268. package/dist/es/fields/StyleSetter/icons/text-align/{Right.js → Right.vue.js} +1 -1
  269. package/dist/es/fields/StyleSetter/icons/text-align/{Start.js → Start.vue.js} +1 -1
  270. package/dist/es/fields/StyleSetter/pro/{Background.vue_vue_type_script_setup_true_lang.js → Background.vue.js} +2 -2
  271. package/dist/es/fields/StyleSetter/pro/{Font.vue_vue_type_script_setup_true_lang.js → Font.vue.js} +2 -2
  272. package/dist/es/fields/StyleSetter/pro/{Position.vue_vue_type_script_setup_true_lang.js → Position.vue.js} +2 -2
  273. package/dist/es/fields/StyleSetter/pro/{Transform.vue_vue_type_script_setup_true_lang.js → Transform.vue.js} +2 -2
  274. package/dist/es/fields/{UISelect.vue_vue_type_script_setup_true_lang.js → UISelect.vue.js} +5 -5
  275. package/dist/es/icons/{CenterIcon.vue_vue_type_script_setup_true_lang.js → CenterIcon.vue.js} +0 -0
  276. package/dist/es/icons/{CodeIcon.vue_vue_type_script_setup_true_lang.js → CodeIcon.vue.js} +0 -0
  277. package/dist/es/icons/{DatasourceIcon.js → DatasourceIcon.vue.js} +1 -1
  278. package/dist/es/icons/{FolderMinusIcon.vue_vue_type_script_setup_true_lang.js → FolderMinusIcon.vue.js} +0 -0
  279. package/dist/es/layouts/history-list/{GroupRow.vue_vue_type_script_setup_true_lang.js → GroupRow.vue.js} +1 -1
  280. package/dist/es/layouts/history-list/{InitialRow.vue_vue_type_script_setup_true_lang.js → InitialRow.vue.js} +1 -1
  281. package/dist/es/layouts/sidebar/layer/{LayerNodeTool.vue_vue_type_script_setup_true_lang.js → LayerNodeTool.vue.js} +2 -2
  282. package/dist/es/layouts/workspace/{Breadcrumb.vue_vue_type_script_setup_true_lang.js → Breadcrumb.vue.js} +2 -2
@@ -1,5 +1,5 @@
1
1
  (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@tmagic/form"), require("@tmagic/table"), require("@tmagic/stage"), require("@tmagic/design"), require("@tmagic/utils"), require("@tmagic/core"), require("vue"), require("deep-object-diff"), require("serialize-javascript"), require("events"), require("@tmagic/form/headless"), require("gesto"), require("@tmagic/design/headless"), require("@element-plus/icons-vue"), require("sortablejs"), require("moveable"), require("keycon")) : typeof define === "function" && define.amd ? define([
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@tmagic/form"), require("@tmagic/table"), require("@tmagic/stage"), require("@tmagic/design"), require("@tmagic/utils"), require("@tmagic/core"), require("vue"), require("events"), require("gesto"), require("serialize-javascript"), require("@element-plus/icons-vue"), require("deep-object-diff"), require("sortablejs"), require("moveable"), require("@tmagic/form/headless"), require("keycon"), require("@tmagic/design/headless")) : typeof define === "function" && define.amd ? define([
3
3
  "exports",
4
4
  "@tmagic/form",
5
5
  "@tmagic/table",
@@ -8,18 +8,18 @@
8
8
  "@tmagic/utils",
9
9
  "@tmagic/core",
10
10
  "vue",
11
- "deep-object-diff",
12
- "serialize-javascript",
13
11
  "events",
14
- "@tmagic/form/headless",
15
12
  "gesto",
16
- "@tmagic/design/headless",
13
+ "serialize-javascript",
17
14
  "@element-plus/icons-vue",
15
+ "deep-object-diff",
18
16
  "sortablejs",
19
17
  "moveable",
20
- "keycon"
21
- ], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicEditor = {}, global._tmagic_form, global._tmagic_table, global._tmagic_stage, global._tmagic_design, global._tmagic_utils, global._tmagic_core, global.Vue, global.deep_object_diff, global.serialize_javascript, global.events, global._tmagic_form_headless, global.gesto, global._tmagic_design_headless, global._element_plus_icons_vue, global.sortablejs, global.moveable, global.keycon));
22
- })(this, function(exports, _tmagic_form, _tmagic_table, _tmagic_stage, _tmagic_design, _tmagic_utils, _tmagic_core, vue, deep_object_diff, serialize_javascript, events, _tmagic_form_headless, gesto, _tmagic_design_headless, _element_plus_icons_vue, sortablejs, moveable, keycon) {
18
+ "@tmagic/form/headless",
19
+ "keycon",
20
+ "@tmagic/design/headless"
21
+ ], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicEditor = {}, global._tmagic_form, global._tmagic_table, global._tmagic_stage, global._tmagic_design, global._tmagic_utils, global._tmagic_core, global.Vue, global.events, global.gesto, global.serialize_javascript, global._element_plus_icons_vue, global.deep_object_diff, global.sortablejs, global.moveable, global._tmagic_form_headless, global.keycon, global._tmagic_design_headless));
22
+ })(this, function(exports, _tmagic_form, _tmagic_table, _tmagic_stage, _tmagic_design, _tmagic_utils, _tmagic_core, vue, events, gesto, serialize_javascript, _element_plus_icons_vue, deep_object_diff, sortablejs, moveable, _tmagic_form_headless, keycon, _tmagic_design_headless) {
23
23
  Object.defineProperties(exports, {
24
24
  __esModule: { value: true },
25
25
  [Symbol.toStringTag]: { value: "Module" }
@@ -39,22 +39,24 @@
39
39
  throw err = [e], e;
40
40
  }
41
41
  };
42
- var __exportAll = (all, no_symbols) => {
43
- let target = {};
42
+ var __exportAll = (all, flags) => {
43
+ let target = Object.setPrototypeOf({}, null);
44
44
  for (var name in all) __defProp(target, name, {
45
45
  get: all[name],
46
46
  enumerable: true
47
47
  });
48
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
49
- return target;
48
+ if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
49
+ return flags & 2 ? target : Object.preventExtensions(target);
50
50
  };
51
51
  var __copyProps = (to, from, except, desc) => {
52
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
53
- key = keys[i];
54
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
55
- get: ((k) => from[k]).bind(null, key),
56
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
57
- });
52
+ if (from && typeof from === "object" || typeof from === "function") {
53
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) {
54
+ desc = __getOwnPropDesc(from, key);
55
+ __defProp(to, key, {
56
+ get: desc && desc.get && !desc.configurable ? desc.get : () => from[key],
57
+ enumerable: !desc || desc.enumerable
58
+ });
59
+ }
58
60
  }
59
61
  return to;
60
62
  };
@@ -66,8 +68,8 @@
66
68
  _tmagic_table = __toESM(_tmagic_table, 1);
67
69
  _tmagic_stage = __toESM(_tmagic_stage, 1);
68
70
  _tmagic_design = __toESM(_tmagic_design, 1);
69
- serialize_javascript = __toESM(serialize_javascript, 1);
70
71
  gesto = __toESM(gesto, 1);
72
+ serialize_javascript = __toESM(serialize_javascript, 1);
71
73
  sortablejs = __toESM(sortablejs, 1);
72
74
  moveable = __toESM(moveable, 1);
73
75
  keycon = __toESM(keycon, 1);
@@ -214,7 +216,7 @@
214
216
  * @returns {string} Returns the raw `toStringTag`.
215
217
  */
216
218
  function getRawTag(value) {
217
- var isOwn = hasOwnProperty$14.call(value, symToStringTag$1), tag = value[symToStringTag$1];
219
+ var isOwn = hasOwnProperty$15.call(value, symToStringTag$1), tag = value[symToStringTag$1];
218
220
  try {
219
221
  value[symToStringTag$1] = void 0;
220
222
  var unmasked = true;
@@ -226,11 +228,11 @@
226
228
  }
227
229
  return result;
228
230
  }
229
- var objectProto$4, hasOwnProperty$14, nativeObjectToString$1, symToStringTag$1;
231
+ var objectProto$4, hasOwnProperty$15, nativeObjectToString$1, symToStringTag$1;
230
232
  var init__getRawTag = __esmMin((() => {
231
233
  init__Symbol();
232
234
  objectProto$4 = Object.prototype;
233
- hasOwnProperty$14 = objectProto$4.hasOwnProperty;
235
+ hasOwnProperty$15 = objectProto$4.hasOwnProperty;
234
236
  nativeObjectToString$1 = objectProto$4.toString;
235
237
  symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
236
238
  }));
@@ -433,7 +435,7 @@
433
435
  * _.isObject(null);
434
436
  * // => false
435
437
  */
436
- function isObject(value) {
438
+ function isObject$1(value) {
437
439
  var type = typeof value;
438
440
  return value != null && (type == "object" || type == "function");
439
441
  }
@@ -465,9 +467,9 @@
465
467
  function toNumber(value) {
466
468
  if (typeof value == "number") return value;
467
469
  if (isSymbol(value)) return NAN;
468
- if (isObject(value)) {
470
+ if (isObject$1(value)) {
469
471
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
470
- value = isObject(other) ? other + "" : other;
472
+ value = isObject$1(other) ? other + "" : other;
471
473
  }
472
474
  if (typeof value != "string") return value === 0 ? value : +value;
473
475
  value = baseTrim(value);
@@ -525,7 +527,7 @@
525
527
  * // => false
526
528
  */
527
529
  function isFunction(value) {
528
- if (!isObject(value)) return false;
530
+ if (!isObject$1(value)) return false;
529
531
  var tag = baseGetTag(value);
530
532
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
531
533
  }
@@ -596,10 +598,10 @@
596
598
  * else `false`.
597
599
  */
598
600
  function baseIsNative(value) {
599
- if (!isObject(value) || isMasked(value)) return false;
601
+ if (!isObject$1(value) || isMasked(value)) return false;
600
602
  return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
601
603
  }
602
- var reRegExpChar, reIsHostCtor, funcProto$1, objectProto$3, funcToString$1, hasOwnProperty$13, reIsNative;
604
+ var reRegExpChar, reIsHostCtor, funcProto$1, objectProto$3, funcToString$1, hasOwnProperty$14, reIsNative;
603
605
  var init__baseIsNative = __esmMin((() => {
604
606
  init_isFunction();
605
607
  init__isMasked();
@@ -610,8 +612,8 @@
610
612
  funcProto$1 = Function.prototype;
611
613
  objectProto$3 = Object.prototype;
612
614
  funcToString$1 = funcProto$1.toString;
613
- hasOwnProperty$13 = objectProto$3.hasOwnProperty;
614
- reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$13).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
615
+ hasOwnProperty$14 = objectProto$3.hasOwnProperty;
616
+ reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$14).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
615
617
  }));
616
618
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
617
619
  /**
@@ -658,7 +660,7 @@
658
660
  baseCreate = function() {
659
661
  function object() {}
660
662
  return function(proto) {
661
- if (!isObject(proto)) return {};
663
+ if (!isObject$1(proto)) return {};
662
664
  if (objectCreate) return objectCreate(proto);
663
665
  object.prototype = proto;
664
666
  var result = new object();
@@ -919,7 +921,7 @@
919
921
  }
920
922
  var MAX_SAFE_INTEGER$1, reIsUint;
921
923
  var init__isIndex = __esmMin((() => {
922
- MAX_SAFE_INTEGER$1 = 9007199254740991;
924
+ MAX_SAFE_INTEGER$1 = 0x1fffffffffffff;
923
925
  reIsUint = /^(?:0|[1-9]\d*)$/;
924
926
  }));
925
927
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
@@ -994,13 +996,13 @@
994
996
  */
995
997
  function assignValue(object, key, value) {
996
998
  var objValue = object[key];
997
- if (!(hasOwnProperty$12.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
999
+ if (!(hasOwnProperty$13.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
998
1000
  }
999
- var hasOwnProperty$12;
1001
+ var hasOwnProperty$13;
1000
1002
  var init__assignValue = __esmMin((() => {
1001
1003
  init__baseAssignValue();
1002
1004
  init_eq();
1003
- hasOwnProperty$12 = Object.prototype.hasOwnProperty;
1005
+ hasOwnProperty$13 = Object.prototype.hasOwnProperty;
1004
1006
  }));
1005
1007
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
1006
1008
  /**
@@ -1106,7 +1108,7 @@
1106
1108
  }
1107
1109
  var MAX_SAFE_INTEGER;
1108
1110
  var init_isLength = __esmMin((() => {
1109
- MAX_SAFE_INTEGER = 9007199254740991;
1111
+ MAX_SAFE_INTEGER = 0x1fffffffffffff;
1110
1112
  }));
1111
1113
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
1112
1114
  /**
@@ -1153,7 +1155,7 @@
1153
1155
  * else `false`.
1154
1156
  */
1155
1157
  function isIterateeCall(value, index, object) {
1156
- if (!isObject(object)) return false;
1158
+ if (!isObject$1(object)) return false;
1157
1159
  var type = typeof index;
1158
1160
  if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
1159
1161
  return false;
@@ -1242,17 +1244,17 @@
1242
1244
  argsTag$3 = "[object Arguments]";
1243
1245
  }));
1244
1246
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
1245
- var objectProto$1, hasOwnProperty$11, propertyIsEnumerable$1, isArguments;
1247
+ var objectProto$1, hasOwnProperty$12, propertyIsEnumerable$1, isArguments;
1246
1248
  var init_isArguments = __esmMin((() => {
1247
1249
  init__baseIsArguments();
1248
1250
  init_isObjectLike();
1249
1251
  objectProto$1 = Object.prototype;
1250
- hasOwnProperty$11 = objectProto$1.hasOwnProperty;
1252
+ hasOwnProperty$12 = objectProto$1.hasOwnProperty;
1251
1253
  propertyIsEnumerable$1 = objectProto$1.propertyIsEnumerable;
1252
1254
  isArguments = baseIsArguments(function() {
1253
1255
  return arguments;
1254
1256
  }()) ? baseIsArguments : function(value) {
1255
- return isObjectLike(value) && hasOwnProperty$11.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
1257
+ return isObjectLike(value) && hasOwnProperty$12.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
1256
1258
  };
1257
1259
  }));
1258
1260
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
@@ -1376,10 +1378,10 @@
1376
1378
  */
1377
1379
  function arrayLikeKeys(value, inherited) {
1378
1380
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
1379
- for (var key in value) if ((inherited || hasOwnProperty$10.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
1381
+ for (var key in value) if ((inherited || hasOwnProperty$11.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
1380
1382
  return result;
1381
1383
  }
1382
- var hasOwnProperty$10;
1384
+ var hasOwnProperty$11;
1383
1385
  var init__arrayLikeKeys = __esmMin((() => {
1384
1386
  init__baseTimes();
1385
1387
  init_isArguments();
@@ -1387,7 +1389,7 @@
1387
1389
  init_isBuffer();
1388
1390
  init__isIndex();
1389
1391
  init_isTypedArray();
1390
- hasOwnProperty$10 = Object.prototype.hasOwnProperty;
1392
+ hasOwnProperty$11 = Object.prototype.hasOwnProperty;
1391
1393
  }));
1392
1394
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
1393
1395
  /**
@@ -1421,14 +1423,14 @@
1421
1423
  function baseKeys(object) {
1422
1424
  if (!isPrototype(object)) return nativeKeys(object);
1423
1425
  var result = [];
1424
- for (var key in Object(object)) if (hasOwnProperty$9.call(object, key) && key != "constructor") result.push(key);
1426
+ for (var key in Object(object)) if (hasOwnProperty$10.call(object, key) && key != "constructor") result.push(key);
1425
1427
  return result;
1426
1428
  }
1427
- var hasOwnProperty$9;
1429
+ var hasOwnProperty$10;
1428
1430
  var init__baseKeys = __esmMin((() => {
1429
1431
  init__isPrototype();
1430
1432
  init__nativeKeys();
1431
- hasOwnProperty$9 = Object.prototype.hasOwnProperty;
1433
+ hasOwnProperty$10 = Object.prototype.hasOwnProperty;
1432
1434
  }));
1433
1435
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
1434
1436
  /**
@@ -1492,17 +1494,17 @@
1492
1494
  * @returns {Array} Returns the array of property names.
1493
1495
  */
1494
1496
  function baseKeysIn(object) {
1495
- if (!isObject(object)) return nativeKeysIn(object);
1497
+ if (!isObject$1(object)) return nativeKeysIn(object);
1496
1498
  var isProto = isPrototype(object), result = [];
1497
- for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$8.call(object, key)))) result.push(key);
1499
+ for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$9.call(object, key)))) result.push(key);
1498
1500
  return result;
1499
1501
  }
1500
- var hasOwnProperty$8;
1502
+ var hasOwnProperty$9;
1501
1503
  var init__baseKeysIn = __esmMin((() => {
1502
1504
  init_isObject();
1503
1505
  init__isPrototype();
1504
1506
  init__nativeKeysIn();
1505
- hasOwnProperty$8 = Object.prototype.hasOwnProperty;
1507
+ hasOwnProperty$9 = Object.prototype.hasOwnProperty;
1506
1508
  }));
1507
1509
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
1508
1510
  /**
@@ -1612,13 +1614,13 @@
1612
1614
  var result = data[key];
1613
1615
  return result === HASH_UNDEFINED$2 ? void 0 : result;
1614
1616
  }
1615
- return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
1617
+ return hasOwnProperty$8.call(data, key) ? data[key] : void 0;
1616
1618
  }
1617
- var HASH_UNDEFINED$2, hasOwnProperty$7;
1619
+ var HASH_UNDEFINED$2, hasOwnProperty$8;
1618
1620
  var init__hashGet = __esmMin((() => {
1619
1621
  init__nativeCreate();
1620
1622
  HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
1621
- hasOwnProperty$7 = Object.prototype.hasOwnProperty;
1623
+ hasOwnProperty$8 = Object.prototype.hasOwnProperty;
1622
1624
  }));
1623
1625
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
1624
1626
  /**
@@ -1632,12 +1634,12 @@
1632
1634
  */
1633
1635
  function hashHas(key) {
1634
1636
  var data = this.__data__;
1635
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
1637
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$7.call(data, key);
1636
1638
  }
1637
- var hasOwnProperty$6;
1639
+ var hasOwnProperty$7;
1638
1640
  var init__hashHas = __esmMin((() => {
1639
1641
  init__nativeCreate();
1640
- hasOwnProperty$6 = Object.prototype.hasOwnProperty;
1642
+ hasOwnProperty$7 = Object.prototype.hasOwnProperty;
1641
1643
  }));
1642
1644
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
1643
1645
  /**
@@ -2335,10 +2337,10 @@
2335
2337
  if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) return false;
2336
2338
  var proto = getPrototype(value);
2337
2339
  if (proto === null) return true;
2338
- var Ctor = hasOwnProperty$5.call(proto, "constructor") && proto.constructor;
2340
+ var Ctor = hasOwnProperty$6.call(proto, "constructor") && proto.constructor;
2339
2341
  return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
2340
2342
  }
2341
- var objectTag$3, funcProto, objectProto, funcToString, hasOwnProperty$5, objectCtorString;
2343
+ var objectTag$3, funcProto, objectProto, funcToString, hasOwnProperty$6, objectCtorString;
2342
2344
  var init_isPlainObject = __esmMin((() => {
2343
2345
  init__baseGetTag();
2344
2346
  init__getPrototype();
@@ -2347,9 +2349,31 @@
2347
2349
  funcProto = Function.prototype;
2348
2350
  objectProto = Object.prototype;
2349
2351
  funcToString = funcProto.toString;
2350
- hasOwnProperty$5 = objectProto.hasOwnProperty;
2352
+ hasOwnProperty$6 = objectProto.hasOwnProperty;
2351
2353
  objectCtorString = funcToString.call(Object);
2352
2354
  }));
2355
+ // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
2356
+ /**
2357
+ * The base implementation of `_.slice` without an iteratee call guard.
2358
+ *
2359
+ * @private
2360
+ * @param {Array} array The array to slice.
2361
+ * @param {number} [start=0] The start position.
2362
+ * @param {number} [end=array.length] The end position.
2363
+ * @returns {Array} Returns the slice of `array`.
2364
+ */
2365
+ function baseSlice(array, start, end) {
2366
+ var index = -1, length = array.length;
2367
+ if (start < 0) start = -start > length ? 0 : length + start;
2368
+ end = end > length ? length : end;
2369
+ if (end < 0) end += length;
2370
+ length = start > end ? 0 : end - start >>> 0;
2371
+ start >>>= 0;
2372
+ var result = Array(length);
2373
+ while (++index < length) result[index] = array[index + start];
2374
+ return result;
2375
+ }
2376
+ var init__baseSlice = __esmMin((() => {}));
2353
2377
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
2354
2378
  /**
2355
2379
  * Removes all key-value entries from the stack.
@@ -2748,15 +2772,15 @@
2748
2772
  */
2749
2773
  function initCloneArray(array) {
2750
2774
  var length = array.length, result = new array.constructor(length);
2751
- if (length && typeof array[0] == "string" && hasOwnProperty$4.call(array, "index")) {
2775
+ if (length && typeof array[0] == "string" && hasOwnProperty$5.call(array, "index")) {
2752
2776
  result.index = array.index;
2753
2777
  result.input = array.input;
2754
2778
  }
2755
2779
  return result;
2756
2780
  }
2757
- var hasOwnProperty$4;
2781
+ var hasOwnProperty$5;
2758
2782
  var init__initCloneArray = __esmMin((() => {
2759
- hasOwnProperty$4 = Object.prototype.hasOwnProperty;
2783
+ hasOwnProperty$5 = Object.prototype.hasOwnProperty;
2760
2784
  }));
2761
2785
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
2762
2786
  var Uint8Array$1;
@@ -2996,10 +3020,10 @@
2996
3020
  * @returns {*} Returns the cloned value.
2997
3021
  */
2998
3022
  function baseClone(value, bitmask, customizer, key, object, stack) {
2999
- var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
3023
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$2, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
3000
3024
  if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
3001
3025
  if (result !== void 0) return result;
3002
- if (!isObject(value)) return value;
3026
+ if (!isObject$1(value)) return value;
3003
3027
  var isArr = isArray(value);
3004
3028
  if (isArr) {
3005
3029
  result = initCloneArray(value);
@@ -3035,7 +3059,7 @@
3035
3059
  });
3036
3060
  return result;
3037
3061
  }
3038
- var CLONE_DEEP_FLAG$1, CLONE_FLAT_FLAG, CLONE_SYMBOLS_FLAG$1, argsTag$1, arrayTag$1, boolTag$1, dateTag$1, errorTag$1, funcTag, genTag, mapTag$2, numberTag$1, objectTag$1, regexpTag$1, setTag$2, stringTag$1, symbolTag$1, weakMapTag, arrayBufferTag$1, dataViewTag$1, float32Tag, float64Tag, int8Tag, int16Tag, int32Tag, uint8Tag, uint8ClampedTag, uint16Tag, uint32Tag, cloneableTags;
3062
+ var CLONE_DEEP_FLAG$2, CLONE_FLAT_FLAG$1, CLONE_SYMBOLS_FLAG$2, argsTag$1, arrayTag$1, boolTag$1, dateTag$1, errorTag$1, funcTag, genTag, mapTag$2, numberTag$1, objectTag$1, regexpTag$1, setTag$2, stringTag$1, symbolTag$1, weakMapTag, arrayBufferTag$1, dataViewTag$1, float32Tag, float64Tag, int8Tag, int16Tag, int32Tag, uint8Tag, uint8ClampedTag, uint16Tag, uint32Tag, cloneableTags;
3039
3063
  var init__baseClone = __esmMin((() => {
3040
3064
  init__Stack();
3041
3065
  init__arrayEach();
@@ -3059,9 +3083,9 @@
3059
3083
  init_isSet();
3060
3084
  init_keys();
3061
3085
  init_keysIn();
3062
- CLONE_DEEP_FLAG$1 = 1;
3063
- CLONE_FLAT_FLAG = 2;
3064
- CLONE_SYMBOLS_FLAG$1 = 4;
3086
+ CLONE_DEEP_FLAG$2 = 1;
3087
+ CLONE_FLAT_FLAG$1 = 2;
3088
+ CLONE_SYMBOLS_FLAG$2 = 4;
3065
3089
  argsTag$1 = "[object Arguments]";
3066
3090
  arrayTag$1 = "[object Array]";
3067
3091
  boolTag$1 = "[object Boolean]";
@@ -3112,13 +3136,13 @@
3112
3136
  * // => false
3113
3137
  */
3114
3138
  function cloneDeep$1(value) {
3115
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
3139
+ return baseClone(value, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$1);
3116
3140
  }
3117
- var CLONE_DEEP_FLAG, CLONE_SYMBOLS_FLAG;
3141
+ var CLONE_DEEP_FLAG$1, CLONE_SYMBOLS_FLAG$1;
3118
3142
  var init_cloneDeep = __esmMin((() => {
3119
3143
  init__baseClone();
3120
- CLONE_DEEP_FLAG = 1;
3121
- CLONE_SYMBOLS_FLAG = 4;
3144
+ CLONE_DEEP_FLAG$1 = 1;
3145
+ CLONE_SYMBOLS_FLAG$1 = 4;
3122
3146
  }));
3123
3147
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
3124
3148
  /**
@@ -3384,7 +3408,7 @@
3384
3408
  var index = objLength;
3385
3409
  while (index--) {
3386
3410
  var key = objProps[index];
3387
- if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) return false;
3411
+ if (!(isPartial ? key in other : hasOwnProperty$4.call(other, key))) return false;
3388
3412
  }
3389
3413
  var objStacked = stack.get(object);
3390
3414
  var othStacked = stack.get(other);
@@ -3411,11 +3435,11 @@
3411
3435
  stack["delete"](other);
3412
3436
  return result;
3413
3437
  }
3414
- var COMPARE_PARTIAL_FLAG$3, hasOwnProperty$3;
3438
+ var COMPARE_PARTIAL_FLAG$3, hasOwnProperty$4;
3415
3439
  var init__equalObjects = __esmMin((() => {
3416
3440
  init__getAllKeys();
3417
3441
  COMPARE_PARTIAL_FLAG$3 = 1;
3418
- hasOwnProperty$3 = Object.prototype.hasOwnProperty;
3442
+ hasOwnProperty$4 = Object.prototype.hasOwnProperty;
3419
3443
  }));
3420
3444
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
3421
3445
  /**
@@ -3447,7 +3471,7 @@
3447
3471
  return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
3448
3472
  }
3449
3473
  if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
3450
- var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$2.call(other, "__wrapped__");
3474
+ var objIsWrapped = objIsObj && hasOwnProperty$3.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$3.call(other, "__wrapped__");
3451
3475
  if (objIsWrapped || othIsWrapped) {
3452
3476
  var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
3453
3477
  stack || (stack = new Stack());
@@ -3458,7 +3482,7 @@
3458
3482
  stack || (stack = new Stack());
3459
3483
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
3460
3484
  }
3461
- var COMPARE_PARTIAL_FLAG$2, argsTag, arrayTag, objectTag, hasOwnProperty$2;
3485
+ var COMPARE_PARTIAL_FLAG$2, argsTag, arrayTag, objectTag, hasOwnProperty$3;
3462
3486
  var init__baseIsEqualDeep = __esmMin((() => {
3463
3487
  init__Stack();
3464
3488
  init__equalArrays();
@@ -3472,7 +3496,7 @@
3472
3496
  argsTag = "[object Arguments]";
3473
3497
  arrayTag = "[object Array]";
3474
3498
  objectTag = "[object Object]";
3475
- hasOwnProperty$2 = Object.prototype.hasOwnProperty;
3499
+ hasOwnProperty$3 = Object.prototype.hasOwnProperty;
3476
3500
  }));
3477
3501
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
3478
3502
  /**
@@ -3547,7 +3571,7 @@
3547
3571
  * equality comparisons, else `false`.
3548
3572
  */
3549
3573
  function isStrictComparable(value) {
3550
- return value === value && !isObject(value);
3574
+ return value === value && !isObject$1(value);
3551
3575
  }
3552
3576
  var init__isStrictComparable = __esmMin((() => {
3553
3577
  init_isObject();
@@ -3937,7 +3961,7 @@
3937
3961
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
3938
3962
  if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT$1);
3939
3963
  wait = toNumber(wait) || 0;
3940
- if (isObject(options)) {
3964
+ if (isObject$1(options)) {
3941
3965
  leading = !!options.leading;
3942
3966
  maxing = "maxWait" in options;
3943
3967
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -4148,7 +4172,7 @@
4148
4172
  } else if (isPlainObject$1(srcValue) || isArguments(srcValue)) {
4149
4173
  newValue = objValue;
4150
4174
  if (isArguments(objValue)) newValue = toPlainObject(objValue);
4151
- else if (!isObject(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
4175
+ else if (!isObject$1(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
4152
4176
  } else isCommon = false;
4153
4177
  }
4154
4178
  if (isCommon) {
@@ -4191,7 +4215,7 @@
4191
4215
  if (object === source) return;
4192
4216
  baseFor(source, function(srcValue, key) {
4193
4217
  stack || (stack = new Stack());
4194
- if (isObject(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
4218
+ if (isObject$1(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
4195
4219
  else {
4196
4220
  var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
4197
4221
  if (newValue === void 0) newValue = srcValue;
@@ -4233,6 +4257,26 @@
4233
4257
  return false;
4234
4258
  }
4235
4259
  var init__arrayIncludesWith = __esmMin((() => {}));
4260
+ // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.js
4261
+ /**
4262
+ * Gets the last element of `array`.
4263
+ *
4264
+ * @static
4265
+ * @memberOf _
4266
+ * @since 0.1.0
4267
+ * @category Array
4268
+ * @param {Array} array The array to query.
4269
+ * @returns {*} Returns the last element of `array`.
4270
+ * @example
4271
+ *
4272
+ * _.last([1, 2, 3]);
4273
+ * // => 3
4274
+ */
4275
+ function last(array) {
4276
+ var length = array == null ? 0 : array.length;
4277
+ return length ? array[length - 1] : void 0;
4278
+ }
4279
+ var init_last = __esmMin((() => {}));
4236
4280
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js
4237
4281
  /**
4238
4282
  * The base implementation of `_.map` without support for iteratee shorthands.
@@ -4315,11 +4359,11 @@
4315
4359
  * @returns {boolean} Returns `true` if `key` exists, else `false`.
4316
4360
  */
4317
4361
  function baseHas(object, key) {
4318
- return object != null && hasOwnProperty$1.call(object, key);
4362
+ return object != null && hasOwnProperty$2.call(object, key);
4319
4363
  }
4320
- var hasOwnProperty$1;
4364
+ var hasOwnProperty$2;
4321
4365
  var init__baseHas = __esmMin((() => {
4322
- hasOwnProperty$1 = Object.prototype.hasOwnProperty;
4366
+ hasOwnProperty$2 = Object.prototype.hasOwnProperty;
4323
4367
  }));
4324
4368
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/has.js
4325
4369
  /**
@@ -4356,6 +4400,22 @@
4356
4400
  init__baseHas();
4357
4401
  init__hasPath();
4358
4402
  }));
4403
+ // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.js
4404
+ /**
4405
+ * Gets the parent value at `path` of `object`.
4406
+ *
4407
+ * @private
4408
+ * @param {Object} object The object to query.
4409
+ * @param {Array} path The path to get the parent value of.
4410
+ * @returns {*} Returns the parent value.
4411
+ */
4412
+ function parent(object, path) {
4413
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
4414
+ }
4415
+ var init__parent = __esmMin((() => {
4416
+ init__baseGet();
4417
+ init__baseSlice();
4418
+ }));
4359
4419
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
4360
4420
  /**
4361
4421
  * Checks if `value` is an empty object, collection, map, or set.
@@ -4396,10 +4456,10 @@
4396
4456
  var tag = _getTag_default(value);
4397
4457
  if (tag == mapTag || tag == setTag) return !value.size;
4398
4458
  if (isPrototype(value)) return !baseKeys(value).length;
4399
- for (var key in value) if (hasOwnProperty.call(value, key)) return false;
4459
+ for (var key in value) if (hasOwnProperty$1.call(value, key)) return false;
4400
4460
  return true;
4401
4461
  }
4402
- var mapTag, setTag, hasOwnProperty;
4462
+ var mapTag, setTag, hasOwnProperty$1;
4403
4463
  var init_isEmpty = __esmMin((() => {
4404
4464
  init__baseKeys();
4405
4465
  init__getTag();
@@ -4411,7 +4471,7 @@
4411
4471
  init_isTypedArray();
4412
4472
  mapTag = "[object Map]";
4413
4473
  setTag = "[object Set]";
4414
- hasOwnProperty = Object.prototype.hasOwnProperty;
4474
+ hasOwnProperty$1 = Object.prototype.hasOwnProperty;
4415
4475
  }));
4416
4476
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js
4417
4477
  /**
@@ -4448,6 +4508,81 @@
4448
4508
  var init_isEqual = __esmMin((() => {
4449
4509
  init__baseIsEqual();
4450
4510
  }));
4511
+ // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.js
4512
+ /**
4513
+ * The base implementation of `_.unset`.
4514
+ *
4515
+ * @private
4516
+ * @param {Object} object The object to modify.
4517
+ * @param {Array|string} path The property path to unset.
4518
+ * @returns {boolean} Returns `true` if the property is deleted, else `false`.
4519
+ */
4520
+ function baseUnset(object, path) {
4521
+ path = castPath(path, object);
4522
+ var index = -1, length = path.length;
4523
+ if (!length) return true;
4524
+ while (++index < length) {
4525
+ var key = toKey(path[index]);
4526
+ if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) return false;
4527
+ if ((key === "constructor" || key === "prototype") && index < length - 1) return false;
4528
+ }
4529
+ var obj = parent(object, path);
4530
+ return obj == null || delete obj[toKey(last(path))];
4531
+ }
4532
+ var hasOwnProperty;
4533
+ var init__baseUnset = __esmMin((() => {
4534
+ init__castPath();
4535
+ init_last();
4536
+ init__parent();
4537
+ init__toKey();
4538
+ hasOwnProperty = Object.prototype.hasOwnProperty;
4539
+ }));
4540
+ // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.js
4541
+ /**
4542
+ * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
4543
+ * objects.
4544
+ *
4545
+ * @private
4546
+ * @param {*} value The value to inspect.
4547
+ * @param {string} key The key of the property to inspect.
4548
+ * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
4549
+ */
4550
+ function customOmitClone(value) {
4551
+ return isPlainObject$1(value) ? void 0 : value;
4552
+ }
4553
+ var init__customOmitClone = __esmMin((() => {
4554
+ init_isPlainObject();
4555
+ }));
4556
+ // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.js
4557
+ var CLONE_DEEP_FLAG, CLONE_FLAT_FLAG, CLONE_SYMBOLS_FLAG, omit;
4558
+ var init_omit = __esmMin((() => {
4559
+ init__arrayMap();
4560
+ init__baseClone();
4561
+ init__baseUnset();
4562
+ init__castPath();
4563
+ init__copyObject();
4564
+ init__customOmitClone();
4565
+ init__flatRest();
4566
+ init__getAllKeysIn();
4567
+ CLONE_DEEP_FLAG = 1;
4568
+ CLONE_FLAT_FLAG = 2;
4569
+ CLONE_SYMBOLS_FLAG = 4;
4570
+ omit = flatRest(function(object, paths) {
4571
+ var result = {};
4572
+ if (object == null) return result;
4573
+ var isDeep = false;
4574
+ paths = arrayMap(paths, function(path) {
4575
+ path = castPath(path, object);
4576
+ isDeep || (isDeep = path.length > 1);
4577
+ return path;
4578
+ });
4579
+ copyObject(object, getAllKeysIn(object), result);
4580
+ if (isDeep) result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
4581
+ var length = paths.length;
4582
+ while (length--) baseUnset(result, paths[length]);
4583
+ return result;
4584
+ });
4585
+ }));
4451
4586
  // node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
4452
4587
  /**
4453
4588
  * The base implementation of `_.set`.
@@ -4460,7 +4595,7 @@
4460
4595
  * @returns {Object} Returns `object`.
4461
4596
  */
4462
4597
  function baseSet(object, path, value, customizer) {
4463
- if (!isObject(object)) return object;
4598
+ if (!isObject$1(object)) return object;
4464
4599
  path = castPath(path, object);
4465
4600
  var index = -1, length = path.length, lastIndex = length - 1, nested = object;
4466
4601
  while (nested != null && ++index < length) {
@@ -4469,7 +4604,7 @@
4469
4604
  if (index != lastIndex) {
4470
4605
  var objValue = nested[key];
4471
4606
  newValue = customizer ? customizer(objValue, key, nested) : void 0;
4472
- if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
4607
+ if (newValue === void 0) newValue = isObject$1(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
4473
4608
  }
4474
4609
  assignValue(nested, key, newValue);
4475
4610
  nested = nested[key];
@@ -4582,7 +4717,7 @@
4582
4717
  function throttle(func, wait, options) {
4583
4718
  var leading = true, trailing = true;
4584
4719
  if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
4585
- if (isObject(options)) {
4720
+ if (isObject$1(options)) {
4586
4721
  leading = "leading" in options ? !!options.leading : leading;
4587
4722
  trailing = "trailing" in options ? !!options.trailing : trailing;
4588
4723
  }
@@ -4715,6 +4850,7 @@
4715
4850
  init__baseAssignValue();
4716
4851
  init__toKey();
4717
4852
  init_toString();
4853
+ init__baseSlice();
4718
4854
  init__isIterateeCall();
4719
4855
  init__baseClone();
4720
4856
  init_cloneDeep();
@@ -4734,6 +4870,7 @@
4734
4870
  init__baseUnary();
4735
4871
  init__cacheHas();
4736
4872
  init_isArrayLikeObject();
4873
+ init_last();
4737
4874
  init__createBaseFor();
4738
4875
  init__createBaseEach();
4739
4876
  init__getTag();
@@ -4749,7 +4886,7 @@
4749
4886
  init_hasIn();
4750
4887
  init__baseIndexOf();
4751
4888
  init__castPath();
4752
- init__baseGet();
4889
+ init__parent();
4753
4890
  init_isArguments();
4754
4891
  init__nodeUtil();
4755
4892
  init_isBuffer();
@@ -4772,13 +4909,16 @@
4772
4909
  init__Symbol();
4773
4910
  init__setToArray();
4774
4911
  init_now();
4775
- init__getAllKeysIn();
4912
+ init_omit();
4776
4913
  init__basePickBy();
4914
+ init__getAllKeysIn();
4915
+ init__baseGet();
4777
4916
  init__baseMap();
4778
4917
  init__arraySome();
4779
4918
  init__baseProperty();
4780
4919
  init_pick();
4781
4920
  init_property();
4921
+ init__baseUnset();
4782
4922
  init__baseSet();
4783
4923
  init__baseKeys();
4784
4924
  init_stubArray();
@@ -5276,6 +5416,7 @@
5276
5416
  if (el && parentEl) {
5277
5417
  const calcParentOffsetWidth = (0, _tmagic_utils.calcValueByFontsize)(doc, parentEl.offsetWidth);
5278
5418
  const calcElOffsetWidth = (0, _tmagic_utils.calcValueByFontsize)(doc, el.offsetWidth);
5419
+ if (calcElOffsetWidth > calcParentOffsetWidth) return config.style.left;
5279
5420
  if (calcElOffsetWidth + left > calcParentOffsetWidth) return calcParentOffsetWidth - calcElOffsetWidth;
5280
5421
  }
5281
5422
  return config.style.left;
@@ -5305,7 +5446,7 @@
5305
5446
  isIncludeDataSourceByDiffAddResult = (diffResult) => {
5306
5447
  for (const value of Object.values(diffResult)) {
5307
5448
  if ((0, _tmagic_utils.isValueIncludeDataSource)(value)) return true;
5308
- if (isObject(value)) return isIncludeDataSourceByDiffAddResult(value);
5449
+ if (isObject$1(value)) return isIncludeDataSourceByDiffAddResult(value);
5309
5450
  }
5310
5451
  return false;
5311
5452
  };
@@ -5313,7 +5454,7 @@
5313
5454
  for (const [key, value] of Object.entries(diffResult)) {
5314
5455
  if ((0, _tmagic_utils.isValueIncludeDataSource)(value)) return true;
5315
5456
  if ((0, _tmagic_utils.isValueIncludeDataSource)(oldNode[key])) return true;
5316
- if (isObject(value)) return isIncludeDataSourceByDiffUpdatedResult(value, oldNode[key]);
5457
+ if (isObject$1(value)) return isIncludeDataSourceByDiffUpdatedResult(value, oldNode[key]);
5317
5458
  }
5318
5459
  return false;
5319
5460
  };
@@ -5420,7 +5561,7 @@
5420
5561
  };
5421
5562
  editorNodeMergeCustomizer = (objValue, srcValue, key, _object, source) => {
5422
5563
  if (typeof srcValue === "undefined" && Object.hasOwn(source, key)) return "";
5423
- if (isObject(srcValue) && Array.isArray(objValue)) return srcValue;
5564
+ if (isObject$1(srcValue) && Array.isArray(objValue)) return srcValue;
5424
5565
  if (Array.isArray(srcValue)) return srcValue;
5425
5566
  };
5426
5567
  collectRelatedNodes = (copyNodes, collectorOptions, getNodeById) => {
@@ -6902,18 +7043,101 @@
6902
7043
  });
6903
7044
  return displayState;
6904
7045
  };
6905
- var getCascaderOptionsFromFields = (fields = [], dataSourceFieldType = ["any"]) => {
7046
+ /** 编辑器里这份数据源当前用于展示的数据:优先 useInEditor 的 mock,否则用字段默认值 */
7047
+ var getDataSourceEditorData = (ds) => {
7048
+ const mock = ds.mocks?.find((item) => item.useInEditor)?.data;
7049
+ if (mock && (0, _tmagic_utils.isObject)(mock)) return mock;
7050
+ return (0, _tmagic_utils.getDefaultValueFromFields)(ds.fields || []);
7051
+ };
7052
+ var cloneSchemaOptions = (nodes) => nodes.filter((node) => !node.arrayIndex).map((node) => ({
7053
+ label: node.label,
7054
+ value: node.value,
7055
+ fieldType: node.fieldType,
7056
+ ...node.children?.length ? { children: cloneSchemaOptions(node.children) } : {}
7057
+ }));
7058
+ var cloneOptions = (nodes) => nodes.map((node) => ({
7059
+ label: node.label,
7060
+ value: node.value,
7061
+ fieldType: node.fieldType,
7062
+ ...node.arrayIndex ? { arrayIndex: true } : {},
7063
+ ...node.children?.length ? { children: cloneOptions(node.children) } : {}
7064
+ }));
7065
+ /**
7066
+ * 已选路径对不上选项时补节点,否则级联框输入框是空的。
7067
+ * 数组字段后面缺的下标会补上;只展示下标时,已保存的元素字段路径(`array.xxx`)也会补回。
7068
+ * 对象上的数字字段名仍然按字段处理。
7069
+ */
7070
+ var ensureSelectedArrayIndices = (options, fieldPath) => {
7071
+ let level = options;
7072
+ let parent;
7073
+ for (let i = 0; i < fieldPath.length; i++) {
7074
+ const segment = `${fieldPath[i]}`;
7075
+ let node = level.find((opt) => `${opt.value}` === segment);
7076
+ if (!node && parent?.fieldType === "array") {
7077
+ if ((0, _tmagic_utils.isArrayIndex)(segment)) {
7078
+ const fromSchema = cloneSchemaOptions(level);
7079
+ const fromIndex = cloneSchemaOptions(level.find((item) => item.arrayIndex)?.children || []);
7080
+ const children = fromSchema.length ? fromSchema : fromIndex;
7081
+ node = {
7082
+ label: `[${segment}]`,
7083
+ value: Number(segment),
7084
+ arrayIndex: true,
7085
+ ...children.length ? { children } : {}
7086
+ };
7087
+ level.push(node);
7088
+ } else {
7089
+ node = cloneOptions(level.find((item) => item.arrayIndex)?.children || []).find((item) => !item.arrayIndex && `${item.value}` === segment);
7090
+ if (node) level.push(node);
7091
+ }
7092
+ }
7093
+ if (!node) return;
7094
+ parent = node;
7095
+ if (i === fieldPath.length - 1) return;
7096
+ if (!node.children) node.children = [];
7097
+ level = node.children;
7098
+ }
7099
+ };
7100
+ /** 数组下标固定提供 0–19,不随 mock 或默认值的长度变化 */
7101
+ var ARRAY_INDEX_COUNT = 20;
7102
+ var appendArrayIndexOptions = (field, dataSourceFieldType, typeSet, includesAny, context) => {
7103
+ const elementFields = field.fields;
7104
+ const taken = new Set((elementFields || []).map((item) => item.name));
7105
+ const elementType = elementFields?.length ? "object" : "any";
7106
+ if (!elementFields?.length && !includesAny) return [];
7107
+ const children = getCascaderOptionsFromFields(elementFields, dataSourceFieldType, {}, context);
7108
+ if (!(includesAny || typeSet.has(elementType)) && !children.length) return [];
7109
+ const indexNodes = [];
7110
+ for (let index = 0; index < ARRAY_INDEX_COUNT; index++) {
7111
+ const name = `${index}`;
7112
+ if (taken.has(name)) continue;
7113
+ indexNodes.push({
7114
+ label: `[${index}]`,
7115
+ value: index,
7116
+ arrayIndex: true,
7117
+ ...children.length ? { children } : {}
7118
+ });
7119
+ }
7120
+ return indexNodes;
7121
+ };
7122
+ var getCascaderOptionsFromFields = (fields = [], dataSourceFieldType = ["any"], data, context = {}) => {
6906
7123
  const typeSet = new Set(dataSourceFieldType.length ? dataSourceFieldType : ["any"]);
6907
7124
  const includesAny = typeSet.has("any");
6908
7125
  const result = [];
6909
7126
  for (const field of fields) {
6910
7127
  const fieldType = field.type || "any";
6911
7128
  const isContainerType = fieldType === "any" || fieldType === "array" || fieldType === "object";
6912
- const children = isContainerType ? getCascaderOptionsFromFields(field.fields, dataSourceFieldType) : [];
7129
+ const showElementFields = fieldType !== "array" || context.directArrayElements !== false;
7130
+ const nestedData = data ? {} : void 0;
7131
+ let children = isContainerType && showElementFields ? getCascaderOptionsFromFields(field.fields, dataSourceFieldType, nestedData, context) : [];
7132
+ if (fieldType === "array" && data) {
7133
+ const indexNodes = appendArrayIndexOptions(field, dataSourceFieldType, typeSet, includesAny, context);
7134
+ children = [...children, ...indexNodes];
7135
+ }
6913
7136
  if (includesAny || typeSet.has(fieldType) || isContainerType && children.length) result.push({
6914
7137
  label: `${field.title || field.name}(${field.type})`,
6915
7138
  value: field.name,
6916
- children
7139
+ children,
7140
+ fieldType
6917
7141
  });
6918
7142
  }
6919
7143
  return result;
@@ -8007,7 +8231,7 @@
8007
8231
  if (name === "nodes" && Array.isArray(value)) this.set("node", value[0]);
8008
8232
  if (name === "root") {
8009
8233
  if (Array.isArray(value)) throw new Error("root 不能为数组");
8010
- if (value && isObject(value)) {
8234
+ if (value && isObject$1(value)) {
8011
8235
  const app = value;
8012
8236
  this.state.pageLength = getPageList(app).length || 0;
8013
8237
  this.state.pageFragmentLength = getPageFragmentList(app).length || 0;
@@ -8221,14 +8445,16 @@
8221
8445
  root: cloneDeep$1(root),
8222
8446
  index: insertIndex
8223
8447
  });
8224
- const newStyle = fixNodePosition(node, parent, stage);
8225
- if (newStyle && (newStyle.top !== node.style.top || newStyle.left !== node.style.left)) {
8226
- node.style = newStyle;
8227
- await stage?.update({
8228
- config: cloneDeep$1(node),
8229
- parentId: parent.id,
8230
- root: cloneDeep$1(root)
8231
- });
8448
+ if (!options.doNotFixPosition) {
8449
+ const newStyle = fixNodePosition(node, parent, stage);
8450
+ if (newStyle && (newStyle.top !== node.style.top || newStyle.left !== node.style.left)) {
8451
+ node.style = newStyle;
8452
+ await stage?.update({
8453
+ config: cloneDeep$1(node),
8454
+ parentId: parent.id,
8455
+ root: cloneDeep$1(root)
8456
+ });
8457
+ }
8232
8458
  }
8233
8459
  this.addModifiedNodeId(node.id);
8234
8460
  return node;
@@ -11604,6 +11830,19 @@
11604
11830
  var zoom = (0, vue.computed)(() => ui_default.get("zoom") || 1);
11605
11831
  var uiSelectMode = (0, vue.computed)(() => ui_default.get("uiSelectMode"));
11606
11832
  var getGuideLineKey = (key) => `${key}_${root.value?.id}_${page.value?.id}`;
11833
+ /** 选中节点按原文档顺序整组插到 index 之前。顺序不变时返回 null */
11834
+ var reorderSiblingItems = (items, ids, index) => {
11835
+ const idSet = new Set(ids.map((id) => `${id}`));
11836
+ const selected = items.filter((node) => idSet.has(`${node.id}`));
11837
+ if (!selected.length) return null;
11838
+ const selectedSet = new Set(selected);
11839
+ const boundedIndex = Math.min(Math.max(index, 0), items.length);
11840
+ const insertAt = items.slice(0, boundedIndex).filter((node) => !selectedSet.has(node)).length;
11841
+ const next = items.filter((node) => !selectedSet.has(node));
11842
+ next.splice(insertAt, 0, ...selected);
11843
+ if (next.length === items.length && next.every((node, itemIndex) => node === items[itemIndex])) return null;
11844
+ return next;
11845
+ };
11607
11846
  var useStage = (stageOptions) => {
11608
11847
  const stage = new _tmagic_stage.default({
11609
11848
  render: stageOptions.render,
@@ -11697,6 +11936,18 @@
11697
11936
  });
11698
11937
  });
11699
11938
  stage.on("sort", (ev) => {
11939
+ if (ev.srcIds?.length && typeof ev.index === "number") {
11940
+ const parent = editorService.getParentById(ev.srcIds[0]);
11941
+ const next = parent?.items && reorderSiblingItems(parent.items, ev.srcIds, ev.index);
11942
+ if (parent && next) {
11943
+ editorService.update({
11944
+ ...parent,
11945
+ items: next
11946
+ }, { historySource: "stage" });
11947
+ editorService.multiSelect(ev.srcIds);
11948
+ }
11949
+ return;
11950
+ }
11700
11951
  editorService.sort(ev.src, ev.dist, { historySource: "stage" });
11701
11952
  });
11702
11953
  stage.on("remove", (ev) => {
@@ -15615,10 +15866,18 @@
15615
15866
  const hiddenIndexSet = (0, vue.ref)(/* @__PURE__ */ new Set());
15616
15867
  const hasOverflow = (0, vue.computed)(() => hiddenIndexSet.value.size > 0);
15617
15868
  const overflowItems = (0, vue.computed)(() => {
15618
- const items = props.items.filter((_, index) => hiddenIndexSet.value.has(index)).map((item) => item.type === "divider" ? {
15619
- ...item,
15620
- direction: "horizontal"
15621
- } : item);
15869
+ const items = props.items.filter((_, index) => hiddenIndexSet.value.has(index)).map((item) => {
15870
+ if (item.type === "divider") return {
15871
+ ...item,
15872
+ direction: "horizontal"
15873
+ };
15874
+ if (item.type === "component") return item;
15875
+ return {
15876
+ ...item,
15877
+ text: item.text || item.tooltip,
15878
+ tooltip: void 0
15879
+ };
15880
+ });
15622
15881
  let start = 0;
15623
15882
  let end = items.length;
15624
15883
  while (start < end && items[start].type === "divider") start += 1;
@@ -19572,6 +19831,26 @@
19572
19831
  });
19573
19832
  // packages/editor/src/components/ScrollViewer.vue
19574
19833
  var ScrollViewer_default = ScrollViewer_vue_vue_type_script_setup_true_lang_default;
19834
+ // packages/editor/src/utils/page.ts
19835
+ init_lodash();
19836
+ /**
19837
+ * 页面 id 和页面自身配置都没变,只是 items 换了顺序。
19838
+ * 这种更新来自子节点排序,不是切页,也不是改页面配置。
19839
+ */
19840
+ var isSamePageItemsReorder = (prev, next) => {
19841
+ if (!prev || !next || `${prev.id}` !== `${next.id}`) return false;
19842
+ if (!isEqual(omit(prev, "items"), omit(next, "items"))) return false;
19843
+ const prevItems = prev.items ?? [];
19844
+ const nextItems = next.items ?? [];
19845
+ if (!prevItems.length || prevItems.length !== nextItems.length) return false;
19846
+ const used = /* @__PURE__ */ new Set();
19847
+ return nextItems.every((item) => {
19848
+ const index = prevItems.findIndex((prevItem, itemIndex) => !used.has(itemIndex) && isEqual(prevItem, item));
19849
+ if (index < 0) return false;
19850
+ used.add(index);
19851
+ return true;
19852
+ });
19853
+ };
19575
19854
  // packages/editor/src/layouts/workspace/viewer/NodeListMenu.vue?vue&type=script&setup=true&lang.ts
19576
19855
  var NodeListMenu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
19577
19856
  __name: "NodeListMenu",
@@ -19934,40 +20213,48 @@
19934
20213
  const zoom = (0, vue.computed)(() => uiService.get("zoom"));
19935
20214
  const node = (0, vue.computed)(() => editorService.get("node"));
19936
20215
  /**
19937
- * 判断元素是否被非页面级的滚动容器裁剪(未完整显示)
20216
+ * 双击选中进度:上次双击选中的节点 id
20217
+ *
20218
+ * 单击先于双击触发,会把当前选中重置到鼠标下最内层元素,
20219
+ * 所以层级的推进不能读当前选中状态,只能由双击自己记录。
20220
+ */
20221
+ let lastDblclickSelectedId;
20222
+ /**
20223
+ * 遍历鼠标位置下的元素链,找出「有子元素没显示全」的滚动容器
20224
+ *
20225
+ * 被裁掉的子元素不参与 elementsFromPoint 命中,无需找回它们:
20226
+ * 需要定位的是承载这些子元素的容器,交给 openOverlay 展开完整内容。
20227
+ * 可视区域以页面(页面片)为界:容器可视区与页面矩形求交后,
20228
+ * 只要有可选中子元素没完整落在该区域内,或容器内容本身就溢出了,
20229
+ * 这个容器就是需要展开的滚动容器。
19938
20230
  *
19939
- * 从元素向上遍历祖先节点,跳过页面/页面片容器,
19940
- * 检查是否存在设置了 overflow 的滚动容器将该元素裁剪,
19941
- * 只有元素未被完整显示时才需要打开 overlay 以展示完整内容
20231
+ * 轮播等组件靠内部样式完成裁剪,容器自身的 computed overflow 可能是 visible,
20232
+ * 因此不能拿 overflow 当门槛;openOverlay 也是按 scrollWidth/scrollHeight 展开,
20233
+ * 内容溢出本身就是最可靠的信号。
20234
+ * 页面自身是可视区域边界而不是滚动容器;iframe 级容器、以及 swiper-wrapper
20235
+ * 这类没有节点 id 的纯 DOM 包裹层也不参与,否则会抢在真正的容器前面。
19942
20236
  */
19943
- const isClippedByScrollContainer = (el) => {
19944
- const win = el.ownerDocument.defaultView;
19945
- if (!win) return false;
19946
- const root = editorService.get("root");
19947
- const pageIds = new Set(root?.items?.map((item) => `${item.id}`) ?? []);
19948
- const elId = (0, _tmagic_utils.getIdFromEl)()(el);
19949
- if (elId && pageIds.has(elId)) return false;
19950
- let parent = el.parentElement;
19951
- while (parent && parent !== el.ownerDocument.documentElement) {
19952
- const parentId = (0, _tmagic_utils.getIdFromEl)()(parent);
19953
- if (parentId && pageIds.has(parentId)) return false;
19954
- const { overflowX, overflowY } = win.getComputedStyle(parent);
19955
- if ([
19956
- "auto",
19957
- "scroll",
19958
- "hidden"
19959
- ].includes(overflowX) || [
19960
- "auto",
19961
- "scroll",
19962
- "hidden"
19963
- ].includes(overflowY) || parent.scrollWidth > parent.clientWidth || parent.scrollHeight > parent.clientHeight) {
19964
- const elRect = el.getBoundingClientRect();
19965
- const containerRect = parent.getBoundingClientRect();
19966
- if (elRect.top < containerRect.top || elRect.left < containerRect.left || elRect.bottom > containerRect.bottom || elRect.right > containerRect.right) return true;
20237
+ const findScrollContainer = (els) => {
20238
+ const doc = stage?.renderer?.contentWindow?.document;
20239
+ const pageEl = stage?.mask?.page ?? doc?.querySelector(".magic-ui-page, .magic-ui-page-fragment");
20240
+ if (!pageEl) return null;
20241
+ const pageRect = pageEl.getBoundingClientRect();
20242
+ for (const el of els) {
20243
+ if (el === pageEl || !pageEl.contains(el) || !(0, _tmagic_utils.getIdFromEl)()(el)) continue;
20244
+ const rect = el.getBoundingClientRect();
20245
+ const visibleLeft = Math.max(rect.left, pageRect.left);
20246
+ const visibleTop = Math.max(rect.top, pageRect.top);
20247
+ const visibleRight = Math.min(rect.right, pageRect.right);
20248
+ const visibleBottom = Math.min(rect.bottom, pageRect.bottom);
20249
+ if (el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight) return el;
20250
+ for (const child of el.querySelectorAll("*")) {
20251
+ if (!(0, _tmagic_utils.getIdFromEl)()(child)) continue;
20252
+ const childRect = child.getBoundingClientRect();
20253
+ if (!childRect.width || !childRect.height) continue;
20254
+ if (childRect.left < visibleLeft || childRect.top < visibleTop || childRect.right > visibleRight || childRect.bottom > visibleBottom) return el;
19967
20255
  }
19968
- parent = parent.parentElement;
19969
20256
  }
19970
- return false;
20257
+ return null;
19971
20258
  };
19972
20259
  (0, vue.watchEffect)(() => {
19973
20260
  if (stage || !page.value) return;
@@ -19982,27 +20269,32 @@
19982
20269
  if (await props.stageOptions.beforeDblclick(event) === false) return;
19983
20270
  }
19984
20271
  const el = await stage?.actionManager?.getElementFromPoint(event) || null;
19985
- if (!el) return;
19986
- const id = (0, _tmagic_utils.getIdFromEl)()(el);
19987
- if (id) {
19988
- const node = editorService.getNodeById(id);
19989
- if (node?.type === "page-fragment-container" && node.pageFragmentId) {
19990
- await editorService.select(node.pageFragmentId);
19991
- return;
20272
+ if (el) {
20273
+ const id = (0, _tmagic_utils.getIdFromEl)()(el);
20274
+ if (id) {
20275
+ const node = editorService.getNodeById(id);
20276
+ if (node?.type === "page-fragment-container" && node.pageFragmentId) {
20277
+ await editorService.select(node.pageFragmentId);
20278
+ return;
20279
+ }
19992
20280
  }
19993
20281
  }
19994
- if (!props.disabledStageOverlay && isClippedByScrollContainer(el)) {
19995
- stageOverlayService.openOverlay(el);
19996
- return;
19997
- }
19998
- const nextEl = await stage?.actionManager?.getNextElementFromPoint(event) || null;
19999
- if (nextEl) {
20000
- const nextId = (0, _tmagic_utils.getIdFromEl)()(nextEl);
20001
- if (nextId) {
20002
- await editorService.select(nextId);
20003
- editorService.get("stage")?.select(nextId);
20282
+ const els = stage?.renderer?.getElementsFromPoint(event) ?? [];
20283
+ if (!props.disabledStageOverlay) {
20284
+ const scrollContainer = findScrollContainer(els);
20285
+ if (scrollContainer) {
20286
+ stageOverlayService.openOverlay(scrollContainer);
20287
+ return;
20004
20288
  }
20005
20289
  }
20290
+ if (!el) return;
20291
+ const ids = els.map((item) => (0, _tmagic_utils.getIdFromEl)()(item)).filter((id) => Boolean(id));
20292
+ const lastIndex = lastDblclickSelectedId ? ids.indexOf(lastDblclickSelectedId) : -1;
20293
+ const nextId = ids[lastIndex >= 0 && lastIndex + 1 < ids.length ? lastIndex + 1 : 1];
20294
+ if (!nextId) return;
20295
+ lastDblclickSelectedId = nextId;
20296
+ await editorService.select(nextId);
20297
+ editorService.get("stage")?.select(nextId);
20006
20298
  });
20007
20299
  editorService.set("stage", (0, vue.markRaw)(stage));
20008
20300
  stage.mount(stageContainerEl.value);
@@ -20020,7 +20312,8 @@
20020
20312
  stage.setZoom(zoom);
20021
20313
  });
20022
20314
  let timeoutId = null;
20023
- (0, vue.watch)(page, (page) => {
20315
+ (0, vue.watch)(page, (page, prevPage) => {
20316
+ if (isSamePageItemsReorder(prevPage, page)) return;
20024
20317
  if (runtime && page) {
20025
20318
  editorService.set("stageLoading", true);
20026
20319
  if (timeoutId) globalThis.clearTimeout(timeoutId);
@@ -21746,6 +22039,7 @@
21746
22039
  // packages/editor/src/fields/CodeSelectCol.vue
21747
22040
  var CodeSelectCol_default = CodeSelectCol_vue_vue_type_script_setup_true_lang_default;
21748
22041
  // packages/editor/src/fields/DataSourceFields.vue?vue&type=script&setup=true&lang.ts
22042
+ init_lodash();
21749
22043
  var _hoisted_1$57 = { class: "m-editor-data-source-fields" };
21750
22044
  var _hoisted_2$11 = {
21751
22045
  key: 0,
@@ -21800,6 +22094,21 @@
21800
22094
  const fieldValues = (0, vue.ref)({});
21801
22095
  const fieldTitle = (0, vue.ref)("");
21802
22096
  const width = (0, vue.useModel)(__props, "width");
22097
+ /** 数组、对象没填默认值时用的空值。每次新建,避免多个字段共用同一个 [] / {} */
22098
+ const emptyDefaultByType = (type) => {
22099
+ if (type === "array") return [];
22100
+ if (type === "object") return {};
22101
+ };
22102
+ /** 表单没填时是空字符串;切换类型时自动填上的也是 [] / {} */
22103
+ const isPlaceholderDefaultValue = (value) => value === "" || value === void 0 || isEqual(value, []) || isEqual(value, {});
22104
+ const withTypedDefaultValue = (field) => {
22105
+ const next = emptyDefaultByType(field.type);
22106
+ if (next === void 0 || field.defaultValue !== "" && field.defaultValue !== void 0) return field;
22107
+ return {
22108
+ ...field,
22109
+ defaultValue: next
22110
+ };
22111
+ };
21803
22112
  const newHandler = () => {
21804
22113
  fieldValues.value = {};
21805
22114
  fieldTitle.value = "新增属性";
@@ -21807,30 +22116,42 @@
21807
22116
  addDialogVisible.value = true;
21808
22117
  };
21809
22118
  const editField = (row, index) => {
21810
- fieldValues.value = {
22119
+ fieldValues.value = withTypedDefaultValue({
21811
22120
  ...row,
21812
22121
  index
21813
- };
22122
+ });
21814
22123
  fieldTitle.value = `编辑${row.title}`;
21815
22124
  calcBoxPosition();
21816
22125
  addDialogVisible.value = true;
21817
22126
  };
21818
22127
  const fieldChange = ({ index, ...value }, data) => {
21819
22128
  addDialogVisible.value = false;
21820
- if (index > -1) emit("change", value, {
21821
- modifyKey: index,
21822
- changeRecords: (data.changeRecords || []).map((item) => ({
22129
+ const normalized = withTypedDefaultValue(value);
22130
+ if (index > -1) {
22131
+ const changeRecords = (data.changeRecords || []).map((item) => ({
21823
22132
  propPath: `${props.prop}.${index}.${item.propPath}`,
21824
22133
  value: item.value
21825
- }))
21826
- });
21827
- else {
22134
+ }));
22135
+ if (normalized !== value) {
22136
+ const defaultValuePath = `${props.prop}.${index}.defaultValue`;
22137
+ const record = changeRecords.find((item) => item.propPath === defaultValuePath);
22138
+ if (record) record.value = normalized.defaultValue;
22139
+ else changeRecords.push({
22140
+ propPath: defaultValuePath,
22141
+ value: normalized.defaultValue
22142
+ });
22143
+ }
22144
+ emit("change", normalized, {
22145
+ modifyKey: index,
22146
+ changeRecords
22147
+ });
22148
+ } else {
21828
22149
  const modifyKey = props.model[props.name].length;
21829
- emit("change", value, {
22150
+ emit("change", normalized, {
21830
22151
  modifyKey,
21831
22152
  changeRecords: [{
21832
22153
  propPath: `${props.prop}.${modifyKey}`,
21833
- value
22154
+ value: normalized
21834
22155
  }]
21835
22156
  });
21836
22157
  }
@@ -21923,12 +22244,17 @@
21923
22244
  value: "any"
21924
22245
  }
21925
22246
  ],
21926
- onChange: (_formState, v, { setModel }) => {
22247
+ onChange: (_formState, v, { model, setModel }) => {
21927
22248
  if (![
21928
22249
  "any",
21929
22250
  "array",
21930
22251
  "object"
21931
22252
  ].includes(v)) setModel("fields", []);
22253
+ const current = model?.defaultValue;
22254
+ const next = emptyDefaultByType(v);
22255
+ if (next !== void 0) {
22256
+ if (isPlaceholderDefaultValue(current) && !isEqual(current, next)) setModel("defaultValue", next);
22257
+ } else if (isEqual(current, []) || isEqual(current, {})) setModel("defaultValue", "");
21932
22258
  return v;
21933
22259
  }
21934
22260
  },
@@ -22342,7 +22668,7 @@
22342
22668
  const newHandler = () => {
22343
22669
  const isFirstRow = props.model[props.name].length === 0;
22344
22670
  formValues.value = {
22345
- data: (0, _tmagic_utils.getDefaultValueFromFields)(props.model.fields || []),
22671
+ data: (0, _tmagic_utils.getMockDataFromFields)(props.model.fields || []),
22346
22672
  useInEditor: isFirstRow,
22347
22673
  enable: isFirstRow
22348
22674
  };
@@ -23178,7 +23504,7 @@
23178
23504
  const emit = __emit;
23179
23505
  const modelValue = (0, vue.useModel)(__props, "modelValue");
23180
23506
  const optionComponent = (0, _tmagic_design.getDesignConfig)("components")?.option;
23181
- const { dataSourceService, uiService } = useServices();
23507
+ const { dataSourceService, uiService, editorService } = useServices();
23182
23508
  const mForm = (0, vue.inject)("mForm");
23183
23509
  const eventBus = (0, vue.inject)("eventBus", null);
23184
23510
  const allDataSources = (0, vue.computed)(() => dataSourceService.get("dataSources") || []);
@@ -23210,17 +23536,58 @@
23210
23536
  selectFieldsId.value = [];
23211
23537
  }
23212
23538
  }, { immediate: true });
23539
+ /**
23540
+ * 与 core `App.iteratorContainerType` 一致:默认包含 `iterator-container`,并包含业务追加的自定义类型。
23541
+ * runtime 还没就绪时只能识别默认类型。stage 是 markRaw,runtime 晚到不会让 computed 重算,
23542
+ * 所以在 runtime-ready 时把类型集合写进 ref。
23543
+ */
23544
+ const iteratorContainerTypes = (0, vue.ref)(null);
23545
+ const syncIteratorContainerTypes = () => {
23546
+ const types = editorService?.get("stage")?.renderer?.runtime?.getApp?.()?.iteratorContainerType;
23547
+ iteratorContainerTypes.value = typeof types?.has === "function" ? types : null;
23548
+ };
23549
+ (0, vue.watch)(() => editorService?.get("stage") ?? null, (stage, _, onCleanup) => {
23550
+ syncIteratorContainerTypes();
23551
+ if (!stage?.on) return;
23552
+ stage.on("runtime-ready", syncIteratorContainerTypes);
23553
+ onCleanup(() => {
23554
+ stage.off("runtime-ready", syncIteratorContainerTypes);
23555
+ });
23556
+ }, { immediate: true });
23557
+ const isIteratorContainer = (type) => {
23558
+ if (!type) return false;
23559
+ const types = iteratorContainerTypes.value;
23560
+ return types ? types.has(type) : type === "iterator-container";
23561
+ };
23562
+ /** 迭代器容器自身不算子组件,只有放进它里面的节点才同时支持 array.xxx 和下标 */
23563
+ const inIteratorChild = (0, vue.computed)(() => {
23564
+ const nodeId = mForm?.initValues?.id;
23565
+ if (!editorService?.getNodeInfo || nodeId === void 0 || nodeId === null || nodeId === "") return false;
23566
+ const { path } = editorService.getNodeInfo(nodeId);
23567
+ return path.slice(0, -1).some((node) => isIteratorContainer(node.type));
23568
+ });
23569
+ const fieldOptions = (ds) => getCascaderOptionsFromFields(ds.fields, props.dataSourceFieldType, getDataSourceEditorData(ds), { directArrayElements: inIteratorChild.value });
23213
23570
  const fieldsOptions = (0, vue.computed)(() => {
23214
23571
  const ds = allDataSources.value.find((ds) => ds.id === (0, _tmagic_utils.removeDataSourceFieldPrefix)(selectDataSourceId.value));
23215
23572
  if (!ds) return [];
23216
- return getCascaderOptionsFromFields(ds.fields, props.dataSourceFieldType);
23573
+ const options = fieldOptions(ds);
23574
+ ensureSelectedArrayIndices(options, selectFieldsId.value);
23575
+ return options;
23217
23576
  });
23218
23577
  const cascaderOptions = (0, vue.computed)(() => {
23219
- return (dataSources.value?.map((ds) => ({
23220
- label: ds.title || ds.id,
23221
- value: valueIsKey.value ? ds.id : `${_tmagic_utils.DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX}${ds.id}`,
23222
- children: getCascaderOptionsFromFields(ds.fields, props.dataSourceFieldType)
23223
- })) || []).filter((option) => option.children.length);
23578
+ const selected = Array.isArray(modelValue.value) ? modelValue.value : [];
23579
+ const selectedDsId = `${selected[0] ?? ""}`;
23580
+ const selectedFields = selected.slice(1);
23581
+ return (dataSources.value?.map((ds) => {
23582
+ const value = valueIsKey.value ? ds.id : `${_tmagic_utils.DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX}${ds.id}`;
23583
+ const children = fieldOptions(ds);
23584
+ if (value === selectedDsId) ensureSelectedArrayIndices(children, selectedFields);
23585
+ return {
23586
+ label: ds.title || ds.id,
23587
+ value,
23588
+ children
23589
+ };
23590
+ }) || []).filter((option) => option.children.length);
23224
23591
  });
23225
23592
  const dsChangeHandler = (v) => {
23226
23593
  modelValue.value = [v];
@@ -27205,7 +27572,6 @@
27205
27572
  init_CodeEditor();
27206
27573
  init_Icon();
27207
27574
  init_CompareForm();
27208
- init_type();
27209
27575
  init_code_block();
27210
27576
  init_use_compare_form();
27211
27577
  init_editor();
@@ -27312,7 +27678,12 @@
27312
27678
  exports.createStackStep = createStackStep;
27313
27679
  exports.dataSourceService = dataSourceService;
27314
27680
  exports.debug = debug;
27315
- exports.default = plugin_default;
27681
+ Object.defineProperty(exports, "default", {
27682
+ enumerable: true,
27683
+ get: function() {
27684
+ return plugin_default;
27685
+ }
27686
+ });
27316
27687
  exports.defaultIsExpandable = defaultIsExpandable;
27317
27688
  exports.depService = depService;
27318
27689
  exports.describeRevertStep = describeRevertStep;
@@ -27332,6 +27703,7 @@
27332
27703
  exports.editorNodeMergeCustomizer = editorNodeMergeCustomizer;
27333
27704
  exports.editorService = editorService;
27334
27705
  exports.editorTypeMatchRules = editorTypeMatchRules;
27706
+ exports.ensureSelectedArrayIndices = ensureSelectedArrayIndices;
27335
27707
  exports.eqOptions = eqOptions;
27336
27708
  exports.error = error;
27337
27709
  exports.eventTabConfig = eventTabConfig;
@@ -27353,6 +27725,7 @@
27353
27725
  exports.getCompActionAllowedValues = getCompActionAllowedValues;
27354
27726
  exports.getCompActionOptions = getCompActionOptions;
27355
27727
  exports.getCondOpOptionsByFieldType = getCondOpOptionsByFieldType;
27728
+ exports.getDataSourceEditorData = getDataSourceEditorData;
27356
27729
  exports.getDefaultConfig = getDefaultConfig;
27357
27730
  exports.getDisplayField = getDisplayField;
27358
27731
  exports.getEditorConfig = getEditorConfig;