@tmagic/editor 1.8.5 → 1.8.7
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.
- package/dist/es/{Editor.vue_vue_type_script_setup_true_lang.js → Editor.vue.js} +9 -9
- package/dist/es/{Editor.js → Editor2.vue.js} +1 -1
- package/dist/es/components/{CodeBlockEditor.vue_vue_type_script_setup_true_lang.js → CodeBlockEditor.vue.js} +5 -5
- package/dist/es/components/{CodeBlockEditor.js → CodeBlockEditor2.vue.js} +1 -1
- package/dist/es/components/{CodeParams.js → CodeParams2.vue.js} +1 -1
- package/dist/es/components/{CompareForm.js → CompareForm2.vue.js} +1 -1
- package/dist/es/components/{ContentMenu.vue_vue_type_script_setup_true_lang.js → ContentMenu.vue.js} +2 -2
- package/dist/es/components/{ContentMenu.js → ContentMenu2.vue.js} +1 -1
- package/dist/es/components/{FloatingBox.vue_vue_type_script_setup_true_lang.js → FloatingBox.vue.js} +2 -2
- package/dist/es/components/{FloatingBox.js → FloatingBox2.vue.js} +1 -1
- package/dist/es/components/{Icon.js → Icon2.vue.js} +1 -1
- package/dist/es/components/{Resizer.js → Resizer2.vue.js} +1 -1
- package/dist/es/components/{ScrollBar.js → ScrollBar2.vue.js} +1 -1
- package/dist/es/components/{ScrollViewer.vue_vue_type_script_setup_true_lang.js → ScrollViewer.vue.js} +3 -3
- package/dist/es/components/{ScrollViewer.js → ScrollViewer2.vue.js} +1 -1
- package/dist/es/components/{SearchInput.js → SearchInput2.vue.js} +1 -1
- package/dist/es/components/{SplitView.vue_vue_type_script_setup_true_lang.js → SplitView.vue.js} +1 -1
- package/dist/es/components/{SplitView.js → SplitView2.vue.js} +1 -1
- package/dist/es/components/{ToolButton.vue_vue_type_script_setup_true_lang.js → ToolButton.vue.js} +3 -3
- package/dist/es/components/{ToolButton.js → ToolButton2.vue.js} +1 -1
- package/dist/es/components/{Tree.vue_vue_type_script_setup_true_lang.js → Tree.vue.js} +1 -1
- package/dist/es/components/{Tree.js → Tree2.vue.js} +1 -1
- package/dist/es/components/{TreeNode.vue_vue_type_script_setup_true_lang.js → TreeNode.vue.js} +2 -2
- package/dist/es/components/{TreeNode.js → TreeNode2.vue.js} +1 -1
- package/dist/es/components/{ViewForm.js → ViewForm2.vue.js} +1 -1
- package/dist/es/fields/{Code.vue_vue_type_script_setup_true_lang.js → Code.vue.js} +1 -1
- package/dist/es/fields/{Code.js → Code2.vue.js} +1 -1
- package/dist/es/fields/{CodeLink.js → CodeLink2.vue.js} +1 -1
- package/dist/es/fields/{CodeSelect.js → CodeSelect2.vue.js} +1 -1
- package/dist/es/fields/{CodeSelectCol.vue_vue_type_script_setup_true_lang.js → CodeSelectCol.vue.js} +7 -7
- package/dist/es/fields/{CodeSelectCol.js → CodeSelectCol2.vue.js} +1 -1
- package/dist/es/fields/{CondOpSelect.js → CondOpSelect2.vue.js} +1 -1
- package/dist/es/fields/DataSourceFieldSelect/{FieldSelect.vue_vue_type_script_setup_true_lang.js → FieldSelect.vue.js} +55 -14
- package/dist/es/fields/DataSourceFieldSelect/{FieldSelect.js → FieldSelect2.vue.js} +1 -1
- package/dist/es/fields/DataSourceFieldSelect/{Index.vue_vue_type_script_setup_true_lang.js → Index.vue.js} +7 -7
- package/dist/es/fields/DataSourceFieldSelect/{Index.js → Index2.vue.js} +1 -1
- package/dist/es/fields/{DataSourceFields.vue_vue_type_script_setup_true_lang.js → DataSourceFields.vue.js} +50 -17
- package/dist/es/fields/{DataSourceFields.js → DataSourceFields2.vue.js} +1 -1
- package/dist/es/fields/{DataSourceInput.vue_vue_type_script_setup_true_lang.js → DataSourceInput.vue.js} +5 -5
- package/dist/es/fields/{DataSourceInput.js → DataSourceInput2.vue.js} +1 -1
- package/dist/es/fields/{DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js → DataSourceMethodSelect.vue.js} +7 -7
- package/dist/es/fields/{DataSourceMethodSelect.js → DataSourceMethodSelect2.vue.js} +1 -1
- package/dist/es/fields/{DataSourceMethods.vue_vue_type_script_setup_true_lang.js → DataSourceMethods.vue.js} +3 -3
- package/dist/es/fields/{DataSourceMethods.js → DataSourceMethods2.vue.js} +1 -1
- package/dist/es/fields/{DataSourceMocks.vue_vue_type_script_setup_true_lang.js → DataSourceMocks.vue.js} +8 -8
- package/dist/es/fields/{DataSourceMocks.js → DataSourceMocks2.vue.js} +1 -1
- package/dist/es/fields/{DataSourceSelect.vue_vue_type_script_setup_true_lang.js → DataSourceSelect.vue.js} +5 -5
- package/dist/es/fields/{DataSourceSelect.js → DataSourceSelect2.vue.js} +1 -1
- package/dist/es/fields/{DisplayConds.js → DisplayConds2.vue.js} +1 -1
- package/dist/es/fields/{EventSelect.js → EventSelect2.vue.js} +1 -1
- package/dist/es/fields/{KeyValue.vue_vue_type_script_setup_true_lang.js → KeyValue.vue.js} +3 -3
- package/dist/es/fields/{KeyValue.js → KeyValue2.vue.js} +1 -1
- package/dist/es/fields/{PageFragmentSelect.vue_vue_type_script_setup_true_lang.js → PageFragmentSelect.vue.js} +4 -4
- package/dist/es/fields/{PageFragmentSelect.js → PageFragmentSelect2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/{Index.vue_vue_type_script_setup_true_lang.js → Index.vue.js} +7 -7
- package/dist/es/fields/StyleSetter/{Index.js → Index2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/components/{BackgroundPosition.js → BackgroundPosition2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/components/{Border.js → Border2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/components/{Box.js → Box2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/configs.js +43 -43
- package/dist/es/fields/StyleSetter/pro/{Background.js → Background2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/pro/{Border.vue_vue_type_script_setup_true_lang.js → Border.vue.js} +3 -3
- package/dist/es/fields/StyleSetter/pro/{Border.js → Border2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/pro/{Font.js → Font2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/pro/{Layout.vue_vue_type_script_setup_true_lang.js → Layout.vue.js} +4 -4
- package/dist/es/fields/StyleSetter/pro/{Layout.js → Layout2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/pro/{Position.js → Position2.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/pro/{Transform.js → Transform2.vue.js} +1 -1
- package/dist/es/fields/{UISelect.js → UISelect2.vue.js} +1 -1
- package/dist/es/fields/configs/codeSelect.js +2 -2
- package/dist/es/fields/configs/displayConds.js +1 -1
- package/dist/es/fields/configs/eventSelect.js +3 -3
- package/dist/es/fields/headless-validation.js +1 -1
- package/dist/es/hooks/use-code-block-edit.js +1 -1
- package/dist/es/hooks/use-compare-form.js +1 -1
- package/dist/es/hooks/use-editor-content-height.js +1 -1
- package/dist/es/hooks/use-filter.js +2 -2
- package/dist/es/hooks/use-float-box.js +1 -1
- package/dist/es/hooks/use-form-context.js +1 -1
- package/dist/es/hooks/use-node-status.js +1 -1
- package/dist/es/hooks/use-stage.js +28 -3
- package/dist/es/icons/{CenterIcon.js → CenterIcon2.vue.js} +1 -1
- package/dist/es/icons/{CodeIcon.js → CodeIcon2.vue.js} +1 -1
- package/dist/es/icons/{FolderMinusIcon.js → FolderMinusIcon2.vue.js} +1 -1
- package/dist/es/index.js +47 -47
- package/dist/es/initService.js +9 -9
- package/dist/es/layouts/{AddPageBox.vue_vue_type_script_setup_true_lang.js → AddPageBox.vue.js} +4 -4
- package/dist/es/layouts/{AddPageBox.js → AddPageBox2.vue.js} +1 -1
- package/dist/es/layouts/{CodeEditor.vue_vue_type_script_setup_true_lang.js → CodeEditor.vue.js} +5 -5
- package/dist/es/layouts/{CodeEditor.js → CodeEditor2.vue.js} +1 -1
- package/dist/es/layouts/{Framework.vue_vue_type_script_setup_true_lang.js → Framework.vue.js} +5 -5
- package/dist/es/layouts/{Framework.js → Framework2.vue.js} +1 -1
- package/dist/es/layouts/{NavMenu.vue_vue_type_script_setup_true_lang.js → NavMenu.vue.js} +5 -5
- package/dist/es/layouts/{NavMenu.js → NavMenu2.vue.js} +1 -1
- package/dist/es/layouts/{NavMenuColumn.vue_vue_type_script_setup_true_lang.js → NavMenuColumn.vue.js} +14 -6
- package/dist/es/layouts/{NavMenuColumn.js → NavMenuColumn2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{Bucket.vue_vue_type_script_setup_true_lang.js → Bucket.vue.js} +23 -7
- package/dist/es/layouts/history-list/{Bucket.js → Bucket2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{BucketTab.vue_vue_type_script_setup_true_lang.js → BucketTab.vue.js} +9 -4
- package/dist/es/layouts/history-list/{BucketTab.js → BucketTab2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{GroupRow.js → GroupRow2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js → HistoryDiffDialog.vue.js} +3 -3
- package/dist/es/layouts/history-list/{HistoryDiffDialog.js → HistoryDiffDialog2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{HistoryListPanel.vue_vue_type_script_setup_true_lang.js → HistoryListPanel.vue.js} +24 -6
- package/dist/es/layouts/history-list/{HistoryListPanel.js → HistoryListPanel2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{InitialRow.vue_vue_type_script_setup_true_lang.js → InitialRow.vue.js} +16 -5
- package/dist/es/layouts/history-list/{InitialRow.js → InitialRow2.vue.js} +1 -1
- package/dist/es/layouts/history-list/{PageTab.vue_vue_type_script_setup_true_lang.js → PageTab.vue.js} +20 -8
- package/dist/es/layouts/history-list/{PageTab.js → PageTab2.vue.js} +1 -1
- package/dist/es/layouts/history-list/composables.js +1 -1
- package/dist/es/layouts/history-list/useHistoryList.js +1 -1
- package/dist/es/layouts/history-list/useHistoryRevert.js +3 -3
- package/dist/es/layouts/page-bar/{AddButton.vue_vue_type_script_setup_true_lang.js → AddButton.vue.js} +6 -6
- package/dist/es/layouts/page-bar/{AddButton.js → AddButton2.vue.js} +1 -1
- package/dist/es/layouts/page-bar/{PageBar.vue_vue_type_script_setup_true_lang.js → PageBar.vue.js} +8 -8
- package/dist/es/layouts/page-bar/{PageBar.js → PageBar2.vue.js} +1 -1
- package/dist/es/layouts/page-bar/{PageBarScrollContainer.vue_vue_type_script_setup_true_lang.js → PageBarScrollContainer.vue.js} +2 -2
- package/dist/es/layouts/page-bar/{PageBarScrollContainer.js → PageBarScrollContainer2.vue.js} +1 -1
- package/dist/es/layouts/page-bar/{PageList.vue_vue_type_script_setup_true_lang.js → PageList.vue.js} +3 -3
- package/dist/es/layouts/page-bar/{PageList.js → PageList2.vue.js} +1 -1
- package/dist/es/layouts/page-bar/{Search.vue_vue_type_script_setup_true_lang.js → Search.vue.js} +3 -3
- package/dist/es/layouts/page-bar/{Search.js → Search2.vue.js} +1 -1
- package/dist/es/layouts/props-panel/{FormPanel.vue_vue_type_script_setup_true_lang.js → FormPanel.vue.js} +7 -7
- package/dist/es/layouts/props-panel/{FormPanel.js → FormPanel2.vue.js} +1 -1
- package/dist/es/layouts/props-panel/{PropsPanel.vue_vue_type_script_setup_true_lang.js → PropsPanel.vue.js} +7 -7
- package/dist/es/layouts/props-panel/{PropsPanel.js → PropsPanel2.vue.js} +1 -1
- package/dist/es/layouts/props-panel/use-style-panel.js +1 -1
- package/dist/es/layouts/sidebar/{ComponentListPanel.vue_vue_type_script_setup_true_lang.js → ComponentListPanel.vue.js} +7 -7
- package/dist/es/layouts/sidebar/{ComponentListPanel.js → ComponentListPanel2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/{Sidebar.vue_vue_type_script_setup_true_lang.js → Sidebar.vue.js} +8 -8
- package/dist/es/layouts/sidebar/{Sidebar.js → Sidebar2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/code-block/{CodeBlockList.vue_vue_type_script_setup_true_lang.js → CodeBlockList.vue.js} +5 -5
- package/dist/es/layouts/sidebar/code-block/{CodeBlockList.js → CodeBlockList2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/code-block/{CodeBlockListPanel.vue_vue_type_script_setup_true_lang.js → CodeBlockListPanel.vue.js} +6 -6
- package/dist/es/layouts/sidebar/code-block/{CodeBlockListPanel.js → CodeBlockListPanel2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/code-block/useContentMenu.js +1 -1
- package/dist/es/layouts/sidebar/data-source/{DataSourceAddButton.vue_vue_type_script_setup_true_lang.js → DataSourceAddButton.vue.js} +2 -2
- package/dist/es/layouts/sidebar/data-source/{DataSourceAddButton.js → DataSourceAddButton2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/data-source/{DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js → DataSourceConfigPanel.vue.js} +4 -4
- package/dist/es/layouts/sidebar/data-source/{DataSourceConfigPanel.js → DataSourceConfigPanel2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/data-source/{DataSourceList.vue_vue_type_script_setup_true_lang.js → DataSourceList.vue.js} +5 -5
- package/dist/es/layouts/sidebar/data-source/{DataSourceList.js → DataSourceList2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/data-source/{DataSourceListPanel.vue_vue_type_script_setup_true_lang.js → DataSourceListPanel.vue.js} +8 -8
- package/dist/es/layouts/sidebar/data-source/{DataSourceListPanel.js → DataSourceListPanel2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/data-source/useContentMenu.js +1 -1
- package/dist/es/layouts/sidebar/layer/{LayerMenu.vue_vue_type_script_setup_true_lang.js → LayerMenu.vue.js} +5 -5
- package/dist/es/layouts/sidebar/layer/{LayerMenu.js → LayerMenu2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/layer/{LayerNodeContent.vue_vue_type_script_setup_true_lang.js → LayerNodeContent.vue.js} +3 -3
- package/dist/es/layouts/sidebar/layer/{LayerNodeContent.js → LayerNodeContent2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/layer/{LayerNodeTool.js → LayerNodeTool2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/layer/{LayerPanel.vue_vue_type_script_setup_true_lang.js → LayerPanel.vue.js} +7 -7
- package/dist/es/layouts/sidebar/layer/{LayerPanel.js → LayerPanel2.vue.js} +1 -1
- package/dist/es/layouts/sidebar/layer/use-click.js +3 -3
- package/dist/es/layouts/sidebar/layer/use-drag.js +1 -1
- package/dist/es/layouts/sidebar/layer/use-keybinding.js +1 -1
- package/dist/es/layouts/sidebar/layer/use-node-status.js +2 -2
- package/dist/es/layouts/workspace/{Breadcrumb.js → Breadcrumb2.vue.js} +1 -1
- package/dist/es/layouts/workspace/{Workspace.vue_vue_type_script_setup_true_lang.js → Workspace.vue.js} +3 -3
- package/dist/es/layouts/workspace/{Workspace.js → Workspace2.vue.js} +1 -1
- package/dist/es/layouts/workspace/viewer/{NodeListMenu.vue_vue_type_script_setup_true_lang.js → NodeListMenu.vue.js} +5 -5
- package/dist/es/layouts/workspace/viewer/{NodeListMenu.js → NodeListMenu2.vue.js} +1 -1
- package/dist/es/layouts/workspace/viewer/{Stage.vue_vue_type_script_setup_true_lang.js → Stage.vue.js} +70 -55
- package/dist/es/layouts/workspace/viewer/{Stage.js → Stage2.vue.js} +1 -1
- package/dist/es/layouts/workspace/viewer/{StageOverlay.vue_vue_type_script_setup_true_lang.js → StageOverlay.vue.js} +3 -3
- package/dist/es/layouts/workspace/viewer/{StageOverlay.js → StageOverlay2.vue.js} +1 -1
- package/dist/es/layouts/workspace/viewer/{ViewerMenu.vue_vue_type_script_setup_true_lang.js → ViewerMenu.vue.js} +6 -6
- package/dist/es/layouts/workspace/viewer/{ViewerMenu.js → ViewerMenu2.vue.js} +1 -1
- package/dist/es/plugin.js +24 -24
- package/dist/es/sdk/index.js +2 -2
- package/dist/es/sdk/services/CodeBlock.js +18 -18
- package/dist/es/sdk/services/DataSource.js +17 -17
- package/dist/es/sdk/services/Dep.js +3 -3
- package/dist/es/sdk/services/Editor.js +116 -81
- package/dist/es/sdk/services/Events.js +2 -2
- package/dist/es/sdk/services/History.js +45 -7
- package/dist/es/sdk/services/Props.js +6 -6
- package/dist/es/sdk/services/WebStorage.js +1 -1
- package/dist/es/sdk/utils/dep.js +2 -2
- package/dist/es/sdk/utils/operator.js +3 -3
- package/dist/es/sdk/validate/index.js +4 -4
- package/dist/es/sdk/wiring.js +2 -2
- package/dist/es/services/keybinding.js +2 -2
- package/dist/es/services/stageOverlay.js +2 -2
- package/dist/es/services/ui.js +2 -2
- package/dist/es/utils/code-block.js +2 -2
- package/dist/es/utils/content-menu.js +3 -3
- package/dist/es/utils/data-source/index.js +88 -5
- package/dist/es/utils/dep/collect-worker-client.js +1 -1
- package/dist/es/utils/dep/idle-task.js +1 -1
- package/dist/es/utils/editor.js +7 -6
- package/dist/es/utils/event.js +1 -1
- package/dist/es/utils/history.js +29 -10
- package/dist/es/utils/operator.js +1 -1
- package/dist/es/utils/page.js +21 -0
- package/dist/es/utils/props.js +1 -1
- package/dist/es/utils/type-match-rules.js +4 -4
- package/dist/es/utils/undo-redo.js +57 -9
- package/dist/tmagic-editor-headless.umd.cjs +257 -87
- package/dist/tmagic-editor-sdk.umd.cjs +225 -84
- package/dist/tmagic-editor.umd.cjs +814 -241
- package/package.json +8 -8
- package/src/fields/DataSourceFieldSelect/FieldSelect.vue +68 -9
- package/src/fields/DataSourceFields.vue +53 -10
- package/src/fields/DataSourceMocks.vue +2 -2
- package/src/hooks/use-stage.ts +26 -1
- package/src/layouts/NavMenuColumn.vue +8 -1
- package/src/layouts/history-list/Bucket.vue +30 -16
- package/src/layouts/history-list/BucketTab.vue +8 -1
- package/src/layouts/history-list/HistoryListPanel.vue +27 -0
- package/src/layouts/history-list/InitialRow.vue +17 -5
- package/src/layouts/history-list/PageTab.vue +32 -18
- package/src/layouts/workspace/viewer/Stage.vue +77 -57
- package/src/sdk/services/Editor.ts +56 -26
- package/src/sdk/services/History.ts +58 -11
- package/src/type.ts +19 -3
- package/src/utils/data-source/index.ts +151 -6
- package/src/utils/editor.ts +4 -0
- package/src/utils/history.ts +35 -10
- package/src/utils/page.ts +32 -0
- package/src/utils/undo-redo.ts +76 -12
- package/types/headless.d.ts +14 -3
- package/types/index.d.ts +234 -314
- package/types/sdk.d.ts +79 -59
- package/dist/es/components/{CodeParams.vue_vue_type_script_setup_true_lang.js → CodeParams.vue.js} +2 -2
- package/dist/es/components/{CompareForm.vue_vue_type_script_setup_true_lang.js → CompareForm.vue.js} +3 -3
- package/dist/es/components/{Icon.vue_vue_type_script_setup_true_lang.js → Icon.vue.js} +1 -1
- package/dist/es/components/{Resizer.vue_vue_type_script_setup_true_lang.js → Resizer.vue.js} +1 -1
- package/dist/es/components/{ScrollBar.vue_vue_type_script_setup_true_lang.js → ScrollBar.vue.js} +0 -0
- package/dist/es/components/{SearchInput.vue_vue_type_script_setup_true_lang.js → SearchInput.vue.js} +1 -1
- package/dist/es/components/{ViewForm.vue_vue_type_script_setup_true_lang.js → ViewForm.vue.js} +2 -2
- package/dist/es/fields/{CodeLink.vue_vue_type_script_setup_true_lang.js → CodeLink.vue.js} +1 -1
- package/dist/es/fields/{CodeSelect.vue_vue_type_script_setup_true_lang.js → CodeSelect.vue.js} +2 -2
- package/dist/es/fields/{CondOpSelect.vue_vue_type_script_setup_true_lang.js → CondOpSelect.vue.js} +3 -3
- package/dist/es/fields/{DisplayConds.vue_vue_type_script_setup_true_lang.js → DisplayConds.vue.js} +2 -2
- package/dist/es/fields/{EventSelect.vue_vue_type_script_setup_true_lang.js → EventSelect.vue.js} +2 -2
- package/dist/es/fields/StyleSetter/components/{BackgroundPosition.vue_vue_type_script_setup_true_lang.js → BackgroundPosition.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/components/{Border.vue_vue_type_script_setup_true_lang.js → Border.vue.js} +2 -2
- package/dist/es/fields/StyleSetter/components/{Box.vue_vue_type_script_setup_true_lang.js → Box.vue.js} +0 -0
- package/dist/es/fields/StyleSetter/icons/align-items/{Baseline.js → Baseline.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{Center.js → Center.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{End.js → End.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{FlexEnd.js → FlexEnd.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{FlexStart.js → FlexStart.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{Normal.js → Normal.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{SpaceAround.js → SpaceAround.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{SpaceBetween.js → SpaceBetween.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{Start.js → Start.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/{Stretch.js → Stretch.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/background-repeat/{NoRepeat.js → NoRepeat.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/background-repeat/{Repeat.js → Repeat.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/background-repeat/{RepeatX.js → RepeatX.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/background-repeat/{RepeatY.js → RepeatY.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/background-repeat/{Round.js → Round.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/background-repeat/{Space.js → Space.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{Block.js → Block.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{Flex.js → Flex.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{Grid.js → Grid.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{Inline.js → Inline.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{InlineBlock.js → InlineBlock.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{InlineFlex.js → InlineFlex.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{InlineGrid.js → InlineGrid.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/display/{None.js → None.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/flex-direction/{Column.js → Column.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/flex-direction/{ColumnReverse.js → ColumnReverse.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/flex-direction/{Row.js → Row.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/flex-direction/{RowReverse.js → RowReverse.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/justify-content/{Center.js → Center.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/justify-content/{FlexEnd.js → FlexEnd.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/justify-content/{FlexStart.js → FlexStart.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/justify-content/{SpaceAround.js → SpaceAround.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/justify-content/{SpaceBetween.js → SpaceBetween.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/justify-content/{SpaceEvenly.js → SpaceEvenly.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{Center.js → Center.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{End.js → End.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{Justify.js → Justify.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{Left.js → Left.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{MatchParent.js → MatchParent.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{Right.js → Right.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/{Start.js → Start.vue.js} +1 -1
- package/dist/es/fields/StyleSetter/pro/{Background.vue_vue_type_script_setup_true_lang.js → Background.vue.js} +2 -2
- package/dist/es/fields/StyleSetter/pro/{Font.vue_vue_type_script_setup_true_lang.js → Font.vue.js} +2 -2
- package/dist/es/fields/StyleSetter/pro/{Position.vue_vue_type_script_setup_true_lang.js → Position.vue.js} +2 -2
- package/dist/es/fields/StyleSetter/pro/{Transform.vue_vue_type_script_setup_true_lang.js → Transform.vue.js} +2 -2
- package/dist/es/fields/{UISelect.vue_vue_type_script_setup_true_lang.js → UISelect.vue.js} +5 -5
- package/dist/es/icons/{CenterIcon.vue_vue_type_script_setup_true_lang.js → CenterIcon.vue.js} +0 -0
- package/dist/es/icons/{CodeIcon.vue_vue_type_script_setup_true_lang.js → CodeIcon.vue.js} +0 -0
- package/dist/es/icons/{DatasourceIcon.js → DatasourceIcon.vue.js} +1 -1
- package/dist/es/icons/{FolderMinusIcon.vue_vue_type_script_setup_true_lang.js → FolderMinusIcon.vue.js} +0 -0
- package/dist/es/layouts/history-list/{GroupRow.vue_vue_type_script_setup_true_lang.js → GroupRow.vue.js} +1 -1
- package/dist/es/layouts/sidebar/layer/{LayerNodeTool.vue_vue_type_script_setup_true_lang.js → LayerNodeTool.vue.js} +2 -2
- package/dist/es/layouts/workspace/{Breadcrumb.vue_vue_type_script_setup_true_lang.js → Breadcrumb.vue.js} +2 -2
package/types/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import formPlugin, { CascaderOption, ChangeRecord, CodeSelectColConfig, CodeSelectConfig, CondOpSelectConfig, ContainerChangeEventData, DataSourceFieldSelectConfig, DataSourceFieldsConfig, DataSourceInputConfig, DataSourceMethodSelectConfig, DataSourceMethodsConfig, DataSourceMocksConfig, DataSourceSelect, DisplayCondsConfig, EventSelectConfig, FieldProps, FormConfig, FormContext, FormInstallOptions, FormValue, KeyValueConfig, MForm, PageFragmentSelectConfig, TabPaneConfig, TableColumnConfig, TypeFunction } from "@tmagic/form";
|
|
2
|
-
import tablePlugin from "@tmagic/table";
|
|
3
|
-
import StageCore, { CanDropIn, ContainerHighlightType, CustomizeMoveableOptions, GuidesOptions, RenderType, UpdateDragEl, default as StageCore$1 } from "@tmagic/stage";
|
|
4
|
-
import designPlugin, { ButtonProps, DesignPluginOptions, FieldSize } from "@tmagic/design";
|
|
5
|
-
import Gesto, { OnDrag, OnDrag as OnDrag$1 } from "gesto";
|
|
6
|
-
import { CodeBlockContent, CodeBlockDSL, DataSchema, DataSourceFieldType, DataSourceSchema, DepData, DepExtendedData, DepTargetType, DepTargetType as DepTargetType$1, DisplayCond, EventOption, Id, MApp, MContainer, MNode, MPage, MPageFragment, NodeType, Target, TargetDescriptor, TargetNode, TargetOptions } from "@tmagic/core";
|
|
7
1
|
import { App, AppContext, CSSProperties, Component, ComputedRef, Ref, ShallowRef } from "vue";
|
|
2
|
+
import tablePlugin from "@tmagic/table";
|
|
8
3
|
import EventEmitter$1, { EventEmitter } from "events";
|
|
9
|
-
import
|
|
10
|
-
import Sortable, { Options, SortableEvent } from "sortablejs";
|
|
4
|
+
import Sortable, { Options as Options$1, SortableEvent } from "sortablejs";
|
|
11
5
|
import { PascalCasedProperties, Writable } from "type-fest";
|
|
6
|
+
import { CodeBlockContent, CodeBlockDSL, DataSchema, DataSourceFieldType, DataSourceSchema, DepData, DepExtendedData, DepTargetType, DepTargetType as DepTargetType$1, DisplayCond, EventOption, Id, MApp, MContainer, MNode, MPage, MPageFragment, NodeType, Target, TargetDescriptor, TargetNode, TargetOptions } from "@tmagic/core";
|
|
7
|
+
import designPlugin, { ButtonProps, DesignPluginOptions, FieldSize } from "@tmagic/design";
|
|
8
|
+
import formPlugin, { CascaderOption, ChangeRecord as ChangeRecord$1, CodeSelectColConfig, CodeSelectConfig, CondOpSelectConfig, ContainerChangeEventData as ContainerChangeEventData$1, DataSourceFieldSelectConfig, DataSourceFieldsConfig, DataSourceInputConfig, DataSourceMethodSelectConfig, DataSourceMethodsConfig, DataSourceMocksConfig, DataSourceSelect, DisplayCondsConfig, EventSelectConfig, FieldProps, FormConfig, FormContext, FormInstallOptions, FormValue, KeyValueConfig, MForm, PageFragmentSelectConfig, TabPaneConfig, TableColumnConfig, TypeFunction } from "@tmagic/form";
|
|
9
|
+
import * as Monaco from "monaco-editor";
|
|
10
|
+
import StageCore, { CanDropIn, ContainerHighlightType, CustomizeMoveableOptions, GuidesOptions, RenderType, UpdateDragEl, default as StageCore$1 } from "@tmagic/stage";
|
|
11
|
+
import Gesto, { OnDrag, OnDrag as OnDrag$1 } from "gesto";
|
|
12
12
|
import { HeadlessFieldOptions, TypeMatchValidateContext, TypeMatchValidator } from "@tmagic/form/headless";
|
|
13
13
|
import { FormItemConfig } from "@tmagic/form-schema";
|
|
14
14
|
import { StyleSchema } from "@tmagic/schema";
|
|
@@ -17,7 +17,6 @@ export * from "@tmagic/table";
|
|
|
17
17
|
export * from "@tmagic/stage";
|
|
18
18
|
export * from "@tmagic/design";
|
|
19
19
|
export * from "@tmagic/utils";
|
|
20
|
-
//#region temp/packages/editor/src/utils/dep/worker.d.ts
|
|
21
20
|
type DepsData = Record<string, Record<Id, DepData>>;
|
|
22
21
|
interface CollectWorkerResult {
|
|
23
22
|
deps: DepsData;
|
|
@@ -31,8 +30,6 @@ interface CollectWorkerPayload {
|
|
|
31
30
|
depExtendedData: DepExtendedData;
|
|
32
31
|
deep: boolean;
|
|
33
32
|
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region temp/packages/editor/src/sdk/services/BaseService.d.ts
|
|
36
33
|
/**
|
|
37
34
|
* 对Class进行扩展
|
|
38
35
|
* 给Class中的每个方法都添加before after两个钩子
|
|
@@ -75,8 +72,6 @@ declare class BaseService extends EventEmitter {
|
|
|
75
72
|
removeAllPlugins(): void;
|
|
76
73
|
private doTask;
|
|
77
74
|
}
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region temp/packages/editor/src/sdk/services/ComponentList.d.ts
|
|
80
75
|
declare class ComponentList extends BaseService {
|
|
81
76
|
private state;
|
|
82
77
|
constructor(ctx: SdkContext);
|
|
@@ -89,8 +84,6 @@ declare class ComponentList extends BaseService {
|
|
|
89
84
|
destroy(): void;
|
|
90
85
|
}
|
|
91
86
|
type ComponentListService = ComponentList;
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region temp/packages/editor/src/sdk/services/DataSource.d.ts
|
|
94
87
|
interface State$2 {
|
|
95
88
|
datasourceTypeList: DatasourceTypeOption[];
|
|
96
89
|
dataSources: DataSourceSchema[];
|
|
@@ -260,8 +253,6 @@ declare class DataSource extends BaseService {
|
|
|
260
253
|
private applyHistoryStep;
|
|
261
254
|
}
|
|
262
255
|
type DataSourceService = DataSource;
|
|
263
|
-
//#endregion
|
|
264
|
-
//#region temp/packages/editor/src/sdk/services/Dep.d.ts
|
|
265
256
|
interface DepEvents {
|
|
266
257
|
'add-target': [target: Target];
|
|
267
258
|
'remove-target': [id: string | number, type: string | DepTargetType$1];
|
|
@@ -345,8 +336,6 @@ declare class Dep extends BaseService {
|
|
|
345
336
|
private updateCollectingState;
|
|
346
337
|
}
|
|
347
338
|
type DepService = Dep;
|
|
348
|
-
//#endregion
|
|
349
|
-
//#region temp/packages/editor/src/sdk/services/Editor.d.ts
|
|
350
339
|
interface EditorServiceConfig {
|
|
351
340
|
disabledPageFragment?: boolean;
|
|
352
341
|
canDropIn?: CanDropInFunction;
|
|
@@ -466,7 +455,7 @@ declare class Editor extends BaseService {
|
|
|
466
455
|
doUpdate(config: MNode, data?: UpdateOptions): Promise<{
|
|
467
456
|
newNode: MNode;
|
|
468
457
|
oldNode: MNode;
|
|
469
|
-
changeRecords?: ChangeRecord[];
|
|
458
|
+
changeRecords?: ChangeRecord$1[];
|
|
470
459
|
}>;
|
|
471
460
|
/**
|
|
472
461
|
* 更新节点
|
|
@@ -528,7 +517,7 @@ declare class Editor extends BaseService {
|
|
|
528
517
|
* @param options 可选配置
|
|
529
518
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
530
519
|
*/
|
|
531
|
-
moveLayer(offset: number | LayerOffset,
|
|
520
|
+
moveLayer(offset: number | LayerOffset, options?: DslOpOptions): Promise<void>;
|
|
532
521
|
/**
|
|
533
522
|
* 移动一个或多个节点到指定容器中。
|
|
534
523
|
*
|
|
@@ -544,7 +533,7 @@ declare class Editor extends BaseService {
|
|
|
544
533
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
545
534
|
*/
|
|
546
535
|
moveToContainer(config: MNode | MNode[], targetId: Id, { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
547
|
-
dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number,
|
|
536
|
+
dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, options?: DslOpOptions): Promise<void>;
|
|
548
537
|
/**
|
|
549
538
|
* 下列 *AndGetHistoryId 方法与对应的普通操作(add / remove / update ...)行为完全一致,
|
|
550
539
|
* 返回值在 {@link DslOpWithHistoryIdsResult} 中同时包含原操作结果与本次写入历史栈的 uuid 列表({@link StepValue.uuid}),
|
|
@@ -674,9 +663,11 @@ declare class Editor extends BaseService {
|
|
|
674
663
|
/**
|
|
675
664
|
* 构造一条页面级「set root」历史记录(不携带选区 / modifiedNodeIds 上下文)并落到该页面自己的栈。
|
|
676
665
|
*
|
|
677
|
-
* 连续 set root
|
|
678
|
-
*
|
|
679
|
-
*
|
|
666
|
+
* 连续 set root 替换:若该页栈最新一条已是**同来源、同为整页 update**的 set root 记录
|
|
667
|
+
* ({@link StepValue.rootStep} 且 `source` 相同),则用本次记录**替换**它而非新增,避免源码反复保存时堆积记录。
|
|
668
|
+
* 替换时必须把 `oldSchema` 追溯到最早那一跳,并沿用原 uuid:否则只剩「上一版 → 本版」,
|
|
669
|
+
* 撤销到基线时 DSL 会停在中途版本且无法继续回退,已发出的 historyId 也会失效。
|
|
670
|
+
* 其余情况(来源不同 / 页面增删)照常新增,保留完整变更链条。
|
|
680
671
|
*/
|
|
681
672
|
private pushPageDiffStep;
|
|
682
673
|
private pushOpHistory;
|
|
@@ -688,8 +679,8 @@ declare class Editor extends BaseService {
|
|
|
688
679
|
* 「重新插回节点」(撤销 remove / 重做 add)需按 step 记录的 parentId / index 精确还原,
|
|
689
680
|
* 不走 this.add,由手工 splice + stage.add 完成后补发等价的 add / change 事件(见 emitHistoryInsertEvents)。
|
|
690
681
|
*
|
|
691
|
-
* 注意:这些路径都会发出 add / remove / update / change
|
|
692
|
-
*
|
|
682
|
+
* 注意:这些路径都会发出 add / remove / update / change 事件,且 `change` 事件带 `isHistoryOp: true`,
|
|
683
|
+
* 业务侧可据此跳过仅针对「用户主动编辑」的副作用(加锁 / 埋点 / 自动保存等)。
|
|
693
684
|
*
|
|
694
685
|
* @param step 操作记录
|
|
695
686
|
* @param reverse true = 撤销,false = 重做
|
|
@@ -705,8 +696,6 @@ declare class Editor extends BaseService {
|
|
|
705
696
|
private toRaw;
|
|
706
697
|
}
|
|
707
698
|
type EditorService = Editor;
|
|
708
|
-
//#endregion
|
|
709
|
-
//#region temp/packages/editor/src/sdk/services/Events.d.ts
|
|
710
699
|
declare const canUsePluginMethods$7: {
|
|
711
700
|
async: readonly [];
|
|
712
701
|
sync: readonly ["setEvent", "getEvent", "setMethod", "getMethod"];
|
|
@@ -733,8 +722,6 @@ declare class Events extends BaseService {
|
|
|
733
722
|
usePlugin(options: AsyncHookPlugin<AsyncMethodName$4, Events> & SyncHookPlugin<SyncMethodName$4, Events>): void;
|
|
734
723
|
}
|
|
735
724
|
type EventsService = Events;
|
|
736
|
-
//#endregion
|
|
737
|
-
//#region temp/packages/editor/src/sdk/services/History.d.ts
|
|
738
725
|
declare const canUsePluginMethods$6: {
|
|
739
726
|
sync: readonly ["push", "undo", "redo"];
|
|
740
727
|
};
|
|
@@ -747,12 +734,12 @@ declare class History extends BaseService {
|
|
|
747
734
|
* 注册一个扩展历史类型,使其可与内置 `page` / `codeBlock` / `dataSource` 一样走统一的
|
|
748
735
|
* {@link push} / {@link undo} / {@link redo}(按 id 分栈、独立 undo/redo)。
|
|
749
736
|
*
|
|
737
|
+
* 扩展类型与内置类型一样统一派发 `change` 事件,无需(也不支持)单独指定事件名。
|
|
738
|
+
*
|
|
750
739
|
* @param stepType 自定义历史类型标识(勿与内置类型重名)
|
|
751
|
-
* @param options.event push/undo/redo 后派发的事件名,缺省为 `${stepType}-history-change`
|
|
752
740
|
* @param options.name 历史面板中的展示名称(tab / 分组标题等),缺省回退到 stepType 本身
|
|
753
741
|
*/
|
|
754
742
|
registerStepType(stepType: string, options?: {
|
|
755
|
-
event?: string;
|
|
756
743
|
name?: string;
|
|
757
744
|
}): void;
|
|
758
745
|
/**
|
|
@@ -792,10 +779,16 @@ declare class History extends BaseService {
|
|
|
792
779
|
* 不存在或 id 缺省时返回 undefined。
|
|
793
780
|
*/
|
|
794
781
|
getMarker(stepType: HistoryStepType, id?: Id): StepValue | undefined;
|
|
782
|
+
/**
|
|
783
|
+
* 目标栈「回到初始」是否可达:容量裁剪删掉已应用的真实步骤后撤销链断开,返回 false。
|
|
784
|
+
* 与是否存在 {@link getMarker} 基线无关——没有基线的栈同样可能因裁剪回不到加载时的 DSL,
|
|
785
|
+
* 历史面板的各 tab 统一用它判断初始行是否可高亮 / 可点击。
|
|
786
|
+
*/
|
|
787
|
+
isInitialReachable(stepType: HistoryStepType, id?: Id): boolean;
|
|
795
788
|
/**
|
|
796
789
|
* 把一条步骤推入指定历史栈。统一入口,所有类型(page / codeBlock / dataSource / 扩展)行为完全一致:
|
|
797
|
-
* 按 `stepType` 选择目标栈类型,按 `id
|
|
798
|
-
*
|
|
790
|
+
* 按 `stepType` 选择目标栈类型,按 `id`(必填)选择具体栈,按需建栈后入栈,并派发历史变更事件
|
|
791
|
+
* (统一为 `change`,回调签名 `(step, stepType, id, isHistoryOp)`)。
|
|
799
792
|
*
|
|
800
793
|
* 跨页 / 跨资源操作(如 `moveToContainer` 把节点搬到其它页)必须显式传入目标 id,
|
|
801
794
|
* 否则无法落到正确的栈。step 可由 `createStackStep` 等构造后传入。
|
|
@@ -811,7 +804,7 @@ declare class History extends BaseService {
|
|
|
811
804
|
/**
|
|
812
805
|
* 撤销指定历史栈的最近一次变更。统一入口,所有类型行为一致:
|
|
813
806
|
* 按 `id`(必填)+ `stepType` 定位栈,不会越过 index 0 的 initial 基线(所有类型同等适用),
|
|
814
|
-
* 仅在确有可撤销 step
|
|
807
|
+
* 仅在确有可撤销 step 时派发历史变更事件(签名同 {@link push})。
|
|
815
808
|
*
|
|
816
809
|
* @param stepType 历史类型
|
|
817
810
|
* @param id 目标栈 id(page 为 pageId,其余类型为对应资源 id),必填
|
|
@@ -869,6 +862,9 @@ declare class History extends BaseService {
|
|
|
869
862
|
*
|
|
870
863
|
* 同一栈内任意时刻最多只有一条记录为 `saved`;从 IndexedDB 恢复时游标会被定位到最近一条已保存记录之后。
|
|
871
864
|
*
|
|
865
|
+
* 标记后把对应栈裁剪到容量上限({@link markStackSaved} → {@link UndoRedo.trim}):入栈与还原都不裁剪,
|
|
866
|
+
* 只有保存后才收敛,避免用户在落库前丢掉可撤销的历史;initial 基线与 set root 产生的记录不会被裁掉。
|
|
867
|
+
*
|
|
872
868
|
* @param stepType 历史类型
|
|
873
869
|
* @param id 目标栈 id;缺省表示标记全部类型 / 全部栈
|
|
874
870
|
*/
|
|
@@ -907,6 +903,10 @@ declare class History extends BaseService {
|
|
|
907
903
|
}): PersistedHistoryState;
|
|
908
904
|
/**
|
|
909
905
|
* 用 {@link serialize} 导出的快照重建全部撤销/重做栈,会整体覆盖当前内存中的历史状态。
|
|
906
|
+
*
|
|
907
|
+
* 单个栈 / 单个类型的快照损坏只丢弃该部分,其余照常还原;
|
|
908
|
+
* 快照里的栈全部还原失败时抛出首个错误,此时内存中的历史状态保持不变
|
|
909
|
+
* (不会把「什么都没恢复」当成一次成功的还原)。
|
|
910
910
|
*/
|
|
911
911
|
restore(snapshot: PersistedHistoryState): PersistedHistoryState;
|
|
912
912
|
/**
|
|
@@ -977,6 +977,12 @@ declare class History extends BaseService {
|
|
|
977
977
|
} | null;
|
|
978
978
|
usePlugin(options: SyncHookPlugin<SyncMethodName$3, History>): void;
|
|
979
979
|
emit<Name extends keyof HistoryEvents, Param extends HistoryEvents[Name]>(eventName: Name, ...args: Param): boolean;
|
|
980
|
+
/**
|
|
981
|
+
* 所有历史类型统一派发 `change`(签名 `(step, stepType, id, isHistoryOp)`);
|
|
982
|
+
* 代码块 / 数据源额外派发文档约定的同构事件(签名 `(id, step, isHistoryOp)`)。
|
|
983
|
+
* `isHistoryOp` 仅在 `undo` / `redo` 时为 true,供业务侧跳过历史回放触发的副作用。
|
|
984
|
+
*/
|
|
985
|
+
private emitStepChange;
|
|
980
986
|
/**
|
|
981
987
|
* 取出指定历史类型的栈桶(`Record<id, UndoRedo>`);不存在时按需创建空桶,
|
|
982
988
|
* 从而支持通过 {@link registerStepType} 或首次 push 动态扩展历史类型。
|
|
@@ -1000,8 +1006,6 @@ declare class History extends BaseService {
|
|
|
1000
1006
|
private resolveDbName;
|
|
1001
1007
|
}
|
|
1002
1008
|
type HistoryService = History;
|
|
1003
|
-
//#endregion
|
|
1004
|
-
//#region temp/packages/editor/src/sdk/services/Props.d.ts
|
|
1005
1009
|
declare const canUsePluginMethods$5: {
|
|
1006
1010
|
async: readonly ["setPropsConfig", "getPropsConfig", "setPropsValue", "getPropsValue", "fillConfig", "getDefaultPropsValue"];
|
|
1007
1011
|
sync: readonly ["createId", "setNewItemId"];
|
|
@@ -1098,9 +1102,7 @@ declare class Props extends BaseService {
|
|
|
1098
1102
|
private setRelateId;
|
|
1099
1103
|
}
|
|
1100
1104
|
type PropsService = Props;
|
|
1101
|
-
|
|
1102
|
-
//#region temp/packages/editor/src/sdk/services/WebStorage.d.ts
|
|
1103
|
-
interface Options$1 {
|
|
1105
|
+
interface Options {
|
|
1104
1106
|
namespace?: string;
|
|
1105
1107
|
protocol?: Protocol;
|
|
1106
1108
|
}
|
|
@@ -1143,7 +1145,7 @@ declare class WebStorage extends BaseService {
|
|
|
1143
1145
|
/**
|
|
1144
1146
|
* 获取存储项,支持storageService.usePlugin
|
|
1145
1147
|
*/
|
|
1146
|
-
getItem(key: string, options?: Options
|
|
1148
|
+
getItem(key: string, options?: Options): any;
|
|
1147
1149
|
/**
|
|
1148
1150
|
* 获取指定索引位置的key
|
|
1149
1151
|
*/
|
|
@@ -1151,18 +1153,16 @@ declare class WebStorage extends BaseService {
|
|
|
1151
1153
|
/**
|
|
1152
1154
|
* 移除存储项,支持storageService.usePlugin
|
|
1153
1155
|
*/
|
|
1154
|
-
removeItem(key: string, options?: Options
|
|
1156
|
+
removeItem(key: string, options?: Options): void;
|
|
1155
1157
|
/**
|
|
1156
1158
|
* 设置存储项,支持storageService.usePlugin
|
|
1157
1159
|
*/
|
|
1158
|
-
setItem(key: string, value: any, options?: Options
|
|
1160
|
+
setItem(key: string, value: any, options?: Options): void;
|
|
1159
1161
|
destroy(): void;
|
|
1160
1162
|
usePlugin(options: SyncHookPlugin<SyncMethodName$1, WebStorage>): void;
|
|
1161
1163
|
private getValueAndProtocol;
|
|
1162
1164
|
}
|
|
1163
1165
|
type StorageService = WebStorage;
|
|
1164
|
-
//#endregion
|
|
1165
|
-
//#region temp/packages/editor/src/sdk/validate/index.d.ts
|
|
1166
1166
|
/**
|
|
1167
1167
|
* `record` 模式下,校验结果要等到修改落进 DSL 之后再写入 `invalidNodeIds`(修改过程中会先清掉旧记录),
|
|
1168
1168
|
* 因此 guard 返回一个提交函数交给调用方在合适的时机调用;`strict` 抛错,`off` 返回空。
|
|
@@ -1195,8 +1195,6 @@ interface Validator {
|
|
|
1195
1195
|
guardMove(sourceIds: Id[], target: MContainer, scene: CanDropInScene): Promise<void>;
|
|
1196
1196
|
guardDataSource(config: DataSourceSchema, isNew: boolean): void;
|
|
1197
1197
|
}
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region temp/packages/editor/src/sdk/type.d.ts
|
|
1200
1198
|
/**
|
|
1201
1199
|
* 响应式实现,默认直接使用 Vue 的 `reactive` / `shallowReactive` / `toRaw` / `nextTick`;
|
|
1202
1200
|
* 可通过 `SdkOptions.reactivity` 覆盖。
|
|
@@ -1318,8 +1316,6 @@ interface SdkContext {
|
|
|
1318
1316
|
ready: Promise<void>;
|
|
1319
1317
|
parseDSL: (code: string) => any;
|
|
1320
1318
|
}
|
|
1321
|
-
//#endregion
|
|
1322
|
-
//#region temp/packages/editor/src/sdk/services/CodeBlock.d.ts
|
|
1323
1319
|
declare const canUsePluginMethods$3: {
|
|
1324
1320
|
async: readonly ["setCodeDslById", "setEditStatus", "setCombineIds", "setUndeleteableList", "deleteCodeDslByIds"];
|
|
1325
1321
|
sync: string[];
|
|
@@ -1547,8 +1543,6 @@ declare class CodeBlock extends BaseService {
|
|
|
1547
1543
|
private applyHistoryStep;
|
|
1548
1544
|
}
|
|
1549
1545
|
type CodeBlockService = CodeBlock;
|
|
1550
|
-
//#endregion
|
|
1551
|
-
//#region temp/packages/editor/src/services/keybinding.d.ts
|
|
1552
1546
|
declare class Keybinding extends BaseService {
|
|
1553
1547
|
ctrlKey: string;
|
|
1554
1548
|
private controllers;
|
|
@@ -1586,8 +1580,6 @@ declare class Keybinding extends BaseService {
|
|
|
1586
1580
|
}
|
|
1587
1581
|
type KeybindingService = Keybinding;
|
|
1588
1582
|
declare const _default$41: Keybinding;
|
|
1589
|
-
//#endregion
|
|
1590
|
-
//#region temp/packages/editor/src/services/stageOverlay.d.ts
|
|
1591
1583
|
declare const canUsePluginMethods$2: {
|
|
1592
1584
|
async: never[];
|
|
1593
1585
|
sync: readonly ["openOverlay", "closeOverlay", "updateOverlay", "createStage"];
|
|
@@ -1613,8 +1605,6 @@ declare class StageOverlay extends BaseService {
|
|
|
1613
1605
|
}
|
|
1614
1606
|
type StageOverlayService = StageOverlay;
|
|
1615
1607
|
declare const _default$43: StageOverlay;
|
|
1616
|
-
//#endregion
|
|
1617
|
-
//#region temp/packages/editor/src/services/ui.d.ts
|
|
1618
1608
|
declare const canUsePluginMethods$1: {
|
|
1619
1609
|
async: readonly ["zoom", "calcZoom"];
|
|
1620
1610
|
sync: readonly [];
|
|
@@ -1633,8 +1623,6 @@ declare class Ui extends BaseService {
|
|
|
1633
1623
|
}
|
|
1634
1624
|
type UiService = Ui;
|
|
1635
1625
|
declare const _default$44: Ui;
|
|
1636
|
-
//#endregion
|
|
1637
|
-
//#region temp/packages/editor/src/utils/undo-redo.d.ts
|
|
1638
1626
|
/**
|
|
1639
1627
|
* UndoRedo 栈的可序列化快照,用于持久化(如写入 IndexedDB)后再还原。
|
|
1640
1628
|
*/
|
|
@@ -1645,6 +1633,8 @@ export interface SerializedUndoRedo<T = any> {
|
|
|
1645
1633
|
listCursor: number;
|
|
1646
1634
|
/** 栈容量上限。 */
|
|
1647
1635
|
listMaxSize: number;
|
|
1636
|
+
/** 「回到初始」是否可达:容量裁剪删掉已应用的真实步骤后为 false,旧快照缺省视为 true。 */
|
|
1637
|
+
initialReachable?: boolean;
|
|
1648
1638
|
}
|
|
1649
1639
|
export declare class UndoRedo<T = any> {
|
|
1650
1640
|
/**
|
|
@@ -1660,6 +1650,8 @@ export declare class UndoRedo<T = any> {
|
|
|
1660
1650
|
private elementList;
|
|
1661
1651
|
private listCursor;
|
|
1662
1652
|
private listMaxSize;
|
|
1653
|
+
/** 容量裁剪是否删掉过已应用的真实步骤(撤销链已断,「回到初始」不可达)。 */
|
|
1654
|
+
private initialReachable;
|
|
1663
1655
|
constructor(listMaxSize?: number);
|
|
1664
1656
|
/**
|
|
1665
1657
|
* 导出当前栈的可序列化快照(深克隆,避免外部改动污染内部状态)。
|
|
@@ -1667,6 +1659,25 @@ export declare class UndoRedo<T = any> {
|
|
|
1667
1659
|
*/
|
|
1668
1660
|
serialize(): SerializedUndoRedo<T>;
|
|
1669
1661
|
pushElement(element: T): void;
|
|
1662
|
+
/**
|
|
1663
|
+
* 把栈裁剪到容量上限(`listMaxSize` 条真实步骤,index 0 的 initial 基线额外占一个位置)。
|
|
1664
|
+
*
|
|
1665
|
+
* 只在保存后调用(见 historyService.markSaved):保存前不裁剪,避免用户还没落库就丢掉可撤销的历史。
|
|
1666
|
+
* **永不删除** initial 基线与「整体设置 root」产生的记录(`rootStep`);
|
|
1667
|
+
* 受保护记录本身占满容量时栈保持超限。
|
|
1668
|
+
*
|
|
1669
|
+
* 分两个阶段删除,保证撤销链与重做链各自连续:
|
|
1670
|
+
* 1. 先从最旧的记录开始删**已应用**区(游标之前)的可删记录,撤销链仍然连续;
|
|
1671
|
+
* 2. 已应用区删无可删仍超限时,溢出量落在重做区。重做链必须连续——后一条是按前一条的 DSL 打的补丁,
|
|
1672
|
+
* 只删掉开头几条会让留下的步骤叠在缺失的基线上,因此整段丢弃游标之后的步骤。
|
|
1673
|
+
* (不从重做区末尾往前删:重做区里可能有受保护的 `rootStep`,跳过它去删它前面的步骤同样会留空洞。)
|
|
1674
|
+
*
|
|
1675
|
+
* 「回到初始」是否仍可达,取决于被删的已应用步骤相对最早一条 `rootStep` 的位置:
|
|
1676
|
+
* - 位于其**之后**:撤销链完整——一直撤销会退到这条整页快照,再撤销它即回到加载时的 DSL,仍可达;
|
|
1677
|
+
* - 位于其**之前**(或栈内没有 `rootStep`):撤到底只能停在中途版本,标记为不可达。
|
|
1678
|
+
* 只删掉重做区记录时不影响可达性。
|
|
1679
|
+
*/
|
|
1680
|
+
trim(): void;
|
|
1670
1681
|
canUndo(): boolean;
|
|
1671
1682
|
/** 返回被撤销的操作 */
|
|
1672
1683
|
undo(): T | null;
|
|
@@ -1701,9 +1712,9 @@ export declare class UndoRedo<T = any> {
|
|
|
1701
1712
|
getCursor(): number;
|
|
1702
1713
|
/** 栈内总步数。 */
|
|
1703
1714
|
getLength(): number;
|
|
1715
|
+
/** 「回到初始」是否可达:容量裁剪删掉已应用的真实步骤后撤销链断开,返回 false。 */
|
|
1716
|
+
isInitialReachable(): boolean;
|
|
1704
1717
|
}
|
|
1705
|
-
//#endregion
|
|
1706
|
-
//#region temp/packages/editor/src/type.d.ts
|
|
1707
1718
|
export type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
1708
1719
|
workspace(props: {
|
|
1709
1720
|
editorService: EditorService;
|
|
@@ -2394,7 +2405,7 @@ export interface StepDiffItem<T = unknown> {
|
|
|
2394
2405
|
* form 端 propPath/value 变更列表,仅 `opType` 为 `update` 时有;
|
|
2395
2406
|
* 撤销/重做时若有则按 propPath 局部更新,缺省才退化为整内容替换。
|
|
2396
2407
|
*/
|
|
2397
|
-
changeRecords?: ChangeRecord[];
|
|
2408
|
+
changeRecords?: ChangeRecord$1[];
|
|
2398
2409
|
}
|
|
2399
2410
|
/**
|
|
2400
2411
|
* 历史记录条目公共字段,被 {@link StepValue} / {@link CodeBlockStepValue} / {@link DataSourceStepValue} 复用。
|
|
@@ -2447,6 +2458,7 @@ export interface BaseStepValue<T = unknown, U extends Record<string, any> = {}>
|
|
|
2447
2458
|
* 是否为「整体设置 root」(set root)产生的记录(由 {@link Editor.pushRootDiffHistory} 写入)。
|
|
2448
2459
|
* 用于「连续 set root 合并」:当某页栈最新一条已是 root 记录时,下一条 set root 会替换它而非新增,
|
|
2449
2460
|
* 避免源码反复保存 / 外部重设 DSL 时堆积多条 root 记录。
|
|
2461
|
+
* 保存后的容量裁剪(见 historyService.markSaved)也不会删除这类记录。
|
|
2450
2462
|
*/
|
|
2451
2463
|
rootStep?: boolean;
|
|
2452
2464
|
/** 操作人 */
|
|
@@ -2748,7 +2760,7 @@ export type PropsFormConfigFunction = (data: {
|
|
|
2748
2760
|
export type PropsFormValueFunction = (data: {
|
|
2749
2761
|
editorService: EditorService;
|
|
2750
2762
|
}) => Partial<MNode>;
|
|
2751
|
-
export type PartSortableOptions = Omit<Options, 'onStart' | 'onUpdate'>;
|
|
2763
|
+
export type PartSortableOptions = Omit<Options$1, 'onStart' | 'onUpdate'>;
|
|
2752
2764
|
export interface PageBarSortOptions extends PartSortableOptions {
|
|
2753
2765
|
/** 在onUpdate之后调用 */
|
|
2754
2766
|
afterUpdate?: (event: SortableEvent, sortable: Sortable) => void | Promise<void>;
|
|
@@ -2779,7 +2791,7 @@ export interface EditorEvents {
|
|
|
2779
2791
|
update: [nodes: {
|
|
2780
2792
|
newNode: MNode;
|
|
2781
2793
|
oldNode: MNode;
|
|
2782
|
-
changeRecords?: ChangeRecord[];
|
|
2794
|
+
changeRecords?: ChangeRecord$1[];
|
|
2783
2795
|
}[]];
|
|
2784
2796
|
'move-layer': [offset: number | LayerOffset];
|
|
2785
2797
|
'drag-to': [data: {
|
|
@@ -2808,7 +2820,7 @@ export interface EditorUpdateChangeItem {
|
|
|
2808
2820
|
node: {
|
|
2809
2821
|
newNode: MNode;
|
|
2810
2822
|
oldNode: MNode;
|
|
2811
|
-
changeRecords?: ChangeRecord[];
|
|
2823
|
+
changeRecords?: ChangeRecord$1[];
|
|
2812
2824
|
};
|
|
2813
2825
|
page: StoreState['page'];
|
|
2814
2826
|
}
|
|
@@ -2824,12 +2836,18 @@ export interface EditorChangeEventHistoryMeta {
|
|
|
2824
2836
|
* 撤销 / 重做路径补发的事件恒为 true(撤销/重做本身不再入栈)。
|
|
2825
2837
|
*/
|
|
2826
2838
|
doNotPushHistory?: boolean;
|
|
2839
|
+
/**
|
|
2840
|
+
* 本次 DSL 变更是否由撤销 / 重做回放产生(缺省为 false)。
|
|
2841
|
+
* 业务侧监听 `change` 做埋点、加锁、自动保存等副作用时,可用它跳过历史回放触发的变更。
|
|
2842
|
+
* 仅由编辑器内部在回放链路设置,不通过 {@link HistoryOpOptions} 等外部入参传入。
|
|
2843
|
+
*/
|
|
2844
|
+
isHistoryOp?: boolean;
|
|
2827
2845
|
}
|
|
2828
2846
|
/**
|
|
2829
2847
|
* {@link EditorEvents.change} 的回调参数:以 `type` 区分操作类型,并携带对应的操作内容。
|
|
2830
2848
|
* `data` 为本次变更的节点列表,每项包含 node 及其所属的 page(可能为 null);
|
|
2831
2849
|
* `move-layer` 额外带层级偏移 `offset`,`drag-to` 额外带目标位置 `targetIndex` / `targetParent`;
|
|
2832
|
-
* 历史相关字段(historySource / doNotPushHistory)见 {@link EditorChangeEventHistoryMeta}。
|
|
2850
|
+
* 历史相关字段(historySource / doNotPushHistory / isHistoryOp)见 {@link EditorChangeEventHistoryMeta}。
|
|
2833
2851
|
*/
|
|
2834
2852
|
export type EditorChangeEvent = ({
|
|
2835
2853
|
type: 'add';
|
|
@@ -2851,9 +2869,13 @@ export type EditorChangeEvent = ({
|
|
|
2851
2869
|
targetParent: MContainer;
|
|
2852
2870
|
} & EditorChangeEventHistoryMeta);
|
|
2853
2871
|
export interface HistoryEvents {
|
|
2854
|
-
change: [state: BaseStepValue | StepValue | CodeBlockStepValue | DataSourceStepValue, stepType: HistoryStepType, id: Id
|
|
2855
|
-
|
|
2856
|
-
|
|
2872
|
+
change: [state: BaseStepValue | StepValue | CodeBlockStepValue | DataSourceStepValue, stepType: HistoryStepType, id: Id,
|
|
2873
|
+
/** 本次变更是否由 `undo` / `redo` 触发;`push` / `replaceCurrentStep` 为 false */
|
|
2874
|
+
isHistoryOp?: boolean];
|
|
2875
|
+
/** 代码块专属事件;`isHistoryOp` 语义同 {@link HistoryEvents.change} 的第四个参数 */
|
|
2876
|
+
'code-block-history-change': [id: Id, state: CodeBlockStepValue, isHistoryOp: boolean];
|
|
2877
|
+
/** 数据源专属事件;`isHistoryOp` 语义同 {@link HistoryEvents.change} 的第四个参数 */
|
|
2878
|
+
'data-source-history-change': [id: Id, state: DataSourceStepValue, isHistoryOp: boolean];
|
|
2857
2879
|
'restore-from-indexed-db': [snapshot: PersistedHistoryState | null];
|
|
2858
2880
|
'save-to-indexed-db': [snapshot: PersistedHistoryState];
|
|
2859
2881
|
'mark-saved': [{
|
|
@@ -2889,6 +2911,9 @@ export type AsyncMethodName = Writable<(typeof canUsePluginMethods)['async']>;
|
|
|
2889
2911
|
* - doNotPushHistory: 操作完成后是否不要将本次操作压入历史栈(撤销/重做记录),默认 false
|
|
2890
2912
|
* - historyDescription: 入栈时附带的人类可读描述,用于历史面板展示;不影响 undo/redo 行为,缺省时面板会自动生成描述
|
|
2891
2913
|
* - historySource: 操作途径,取值见 {@link HistoryOpSource}(画布 / 树面板 / 组件面板 / 配置面板 / 源码编辑器 / 右键菜单 / 工具栏 / 快捷键 / 回滚 / 接口 等),用于历史面板展示与埋点;不影响 undo/redo 行为
|
|
2914
|
+
*
|
|
2915
|
+
* 注意:`change` 事件上的 `isHistoryOp` 由编辑器在撤销 / 重做回放时内部设置,
|
|
2916
|
+
* 不是本配置的一部分;外部传入不会被读取,避免真实编辑被误标成历史回放。
|
|
2892
2917
|
*/
|
|
2893
2918
|
export interface HistoryOpOptions {
|
|
2894
2919
|
doNotPushHistory?: boolean;
|
|
@@ -2900,7 +2925,7 @@ export interface HistoryOpOptions {
|
|
|
2900
2925
|
* 用于历史记录的精细化撤销/重做(按 propPath 局部 patch)。
|
|
2901
2926
|
*/
|
|
2902
2927
|
export interface HistoryOpOptionsWithChangeRecords extends HistoryOpOptions {
|
|
2903
|
-
changeRecords?: ChangeRecord[];
|
|
2928
|
+
changeRecords?: ChangeRecord$1[];
|
|
2904
2929
|
}
|
|
2905
2930
|
/**
|
|
2906
2931
|
* DSL 修改类操作的通用配置
|
|
@@ -2917,9 +2942,11 @@ export interface DslOpOptions extends HistoryOpOptions {
|
|
|
2917
2942
|
* 指定后不再按当前选中节点与上一次新增节点计算锚点,也不要求有选中节点;越界 / 非数字一律追加到末尾。
|
|
2918
2943
|
* 批量 add 时数字下标是本批节点的起始位置,按父容器分别累计偏移,保持传入顺序;'end' 逐个追加。
|
|
2919
2944
|
* 页面 / 页面片作用于 root.items,同样不再固定追加到末尾。人工添加不传,沿用锚点行为。
|
|
2945
|
+
* - doNotFixPosition: 跳过按画布尺寸修正节点位置(left / top),程序化 add 传入的设计坐标原样保留。
|
|
2920
2946
|
*/
|
|
2921
2947
|
export interface AddOpOptions extends DslOpOptions {
|
|
2922
2948
|
insertIndex?: number | 'end';
|
|
2949
|
+
doNotFixPosition?: boolean;
|
|
2923
2950
|
}
|
|
2924
2951
|
/**
|
|
2925
2952
|
* {@link EditorService.update} / {@link EditorService.doUpdate} 的额外数据
|
|
@@ -2929,7 +2956,7 @@ export interface AddOpOptions extends DslOpOptions {
|
|
|
2929
2956
|
* - invalidInfo: 属性面板提交时携带的校验错误信息,在写入历史记录之前落库
|
|
2930
2957
|
*/
|
|
2931
2958
|
export interface UpdateOptions extends HistoryOpOptionsWithChangeRecords {
|
|
2932
|
-
changeRecordList?: ChangeRecord[][];
|
|
2959
|
+
changeRecordList?: ChangeRecord$1[][];
|
|
2933
2960
|
/**
|
|
2934
2961
|
* 为 true 时不做深合并等变换,直接用传入配置整节点替换现有节点。
|
|
2935
2962
|
* 适用于源码编辑、历史整节点快照回放等「完整 DSL」场景;默认 false(局部属性更新走 merge)。
|
|
@@ -3060,8 +3087,6 @@ export interface ConfirmAndRevertOptions<T = unknown> extends CustomDiffFormOpti
|
|
|
3060
3087
|
/** 用户确认后执行的实际回滚逻辑。 */
|
|
3061
3088
|
revert: () => T | Promise<T>;
|
|
3062
3089
|
}
|
|
3063
|
-
//#endregion
|
|
3064
|
-
//#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
|
|
3065
3090
|
export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
|
|
3066
3091
|
codeId: import("@vue/reactivity").Ref<string | undefined, string | undefined>;
|
|
3067
3092
|
codeConfig: import("@vue/reactivity").Ref<(Omit<CodeBlockContent, "content"> & {
|
|
@@ -3081,7 +3106,7 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3081
3106
|
visible?: boolean;
|
|
3082
3107
|
}> & Readonly<{
|
|
3083
3108
|
onClose?: (() => any) | undefined;
|
|
3084
|
-
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
|
|
3109
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
3085
3110
|
onOpen?: (() => any) | undefined;
|
|
3086
3111
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3087
3112
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
@@ -3090,7 +3115,7 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3090
3115
|
hide(): Promise<void>;
|
|
3091
3116
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3092
3117
|
close: () => any;
|
|
3093
|
-
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
|
|
3118
|
+
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any;
|
|
3094
3119
|
open: () => any;
|
|
3095
3120
|
"update:visible": (value: boolean) => any;
|
|
3096
3121
|
"update:width": (value: number) => any;
|
|
@@ -3113,7 +3138,7 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3113
3138
|
visible?: boolean;
|
|
3114
3139
|
}> & Readonly<{
|
|
3115
3140
|
onClose?: (() => any) | undefined;
|
|
3116
|
-
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
|
|
3141
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
3117
3142
|
onOpen?: (() => any) | undefined;
|
|
3118
3143
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3119
3144
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
@@ -3126,10 +3151,8 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3126
3151
|
deleteCode: (key: string, { historySource }?: {
|
|
3127
3152
|
historySource?: HistoryOpSource;
|
|
3128
3153
|
}) => Promise<void>;
|
|
3129
|
-
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
|
|
3154
|
+
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData$1) => Promise<void>;
|
|
3130
3155
|
};
|
|
3131
|
-
//#endregion
|
|
3132
|
-
//#region temp/packages/editor/src/hooks/use-compare-form.d.ts
|
|
3133
3156
|
export interface UseCompareFormReturn {
|
|
3134
3157
|
config: Ref<FormConfig>;
|
|
3135
3158
|
currentValues: ComputedRef<FormValue>;
|
|
@@ -3149,11 +3172,7 @@ export interface UseCompareFormReturn {
|
|
|
3149
3172
|
* 两个组件的差异仅在于是否做新旧值对比,这部分逻辑保留在各自组件中。
|
|
3150
3173
|
*/
|
|
3151
3174
|
export declare const useCompareForm: (props: CompareFormBaseProps) => UseCompareFormReturn;
|
|
3152
|
-
//#endregion
|
|
3153
|
-
//#region temp/packages/editor/src/hooks/use-stage.d.ts
|
|
3154
3175
|
export declare const useStage: (stageOptions: StageOptions) => StageCore$1;
|
|
3155
|
-
//#endregion
|
|
3156
|
-
//#region temp/packages/editor/src/hooks/use-float-box.d.ts
|
|
3157
3176
|
interface State {
|
|
3158
3177
|
status: boolean;
|
|
3159
3178
|
top: number;
|
|
@@ -3169,32 +3188,22 @@ export declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
|
|
|
3169
3188
|
}>;
|
|
3170
3189
|
showingBoxKeys: ComputedRef<string[]>;
|
|
3171
3190
|
};
|
|
3172
|
-
//#endregion
|
|
3173
|
-
//#region temp/packages/editor/src/hooks/use-window-rect.d.ts
|
|
3174
3191
|
export declare const useWindowRect: () => {
|
|
3175
3192
|
rect: {
|
|
3176
3193
|
width: number;
|
|
3177
3194
|
height: number;
|
|
3178
3195
|
};
|
|
3179
3196
|
};
|
|
3180
|
-
//#endregion
|
|
3181
|
-
//#region temp/packages/editor/src/hooks/use-editor-content-height.d.ts
|
|
3182
3197
|
export declare const useEditorContentHeight: () => {
|
|
3183
3198
|
height: import("@vue/reactivity").Ref<number, number>;
|
|
3184
3199
|
};
|
|
3185
|
-
//#endregion
|
|
3186
|
-
//#region temp/packages/editor/src/hooks/use-filter.d.ts
|
|
3187
3200
|
export declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
|
|
3188
3201
|
filterText: Ref<string, string>;
|
|
3189
3202
|
filterTextChangeHandler(text: string | string[]): void;
|
|
3190
3203
|
};
|
|
3191
|
-
//#endregion
|
|
3192
|
-
//#region temp/packages/editor/src/hooks/use-getso.d.ts
|
|
3193
3204
|
export declare const useGetSo: (target: ShallowRef<HTMLElement | null>, emit: (evt: "change", e: OnDrag$1<Gesto>) => void) => {
|
|
3194
3205
|
isDragging: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
3195
3206
|
};
|
|
3196
|
-
//#endregion
|
|
3197
|
-
//#region temp/packages/editor/src/hooks/use-next-float-box-position.d.ts
|
|
3198
3207
|
export declare const useNextFloatBoxPosition: (uiService: Services["uiService"], parent?: Ref<HTMLDivElement | null>) => {
|
|
3199
3208
|
boxPosition: Ref<{
|
|
3200
3209
|
left: number;
|
|
@@ -3208,8 +3217,6 @@ export declare const useNextFloatBoxPosition: (uiService: Services["uiService"],
|
|
|
3208
3217
|
}>;
|
|
3209
3218
|
calcBoxPosition: () => void;
|
|
3210
3219
|
};
|
|
3211
|
-
//#endregion
|
|
3212
|
-
//#region temp/packages/editor/src/hooks/use-node-status.d.ts
|
|
3213
3220
|
export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
3214
3221
|
nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
|
|
3215
3222
|
visible: boolean;
|
|
@@ -3223,16 +3230,10 @@ export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
|
3223
3230
|
draggable: boolean;
|
|
3224
3231
|
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
3225
3232
|
};
|
|
3226
|
-
//#endregion
|
|
3227
|
-
//#region temp/packages/editor/src/hooks/use-services.d.ts
|
|
3228
3233
|
export declare const useServices: () => Services;
|
|
3229
|
-
//#endregion
|
|
3230
|
-
//#region temp/packages/editor/src/utils/config.d.ts
|
|
3231
3234
|
declare const isGlobalFlat: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
3232
3235
|
declare const setEditorConfig: (option: EditorInstallOptions) => void;
|
|
3233
3236
|
declare const getEditorConfig: <K extends keyof EditorInstallOptions>(key: K) => EditorInstallOptions[K];
|
|
3234
|
-
//#endregion
|
|
3235
|
-
//#region temp/packages/editor/src/sdk/utils/props.d.ts
|
|
3236
3237
|
export declare const arrayOptions: {
|
|
3237
3238
|
text: string;
|
|
3238
3239
|
value: string;
|
|
@@ -3272,15 +3273,11 @@ export interface FillConfigOptions {
|
|
|
3272
3273
|
/** 复制结果提示 */
|
|
3273
3274
|
notify?: (type: 'success' | 'error', message: string) => void;
|
|
3274
3275
|
}
|
|
3275
|
-
//#endregion
|
|
3276
|
-
//#region temp/packages/editor/src/utils/props.d.ts
|
|
3277
3276
|
/** 浏览器端默认用 `navigator.clipboard` 复制,并用 `tMagicMessage` 提示 */
|
|
3278
3277
|
export declare const copyTextToClipboard: (text: string) => Promise<void>;
|
|
3279
3278
|
export declare const notifyByDesign: (type: "success" | "error" | "warning" | "info", message: string) => void;
|
|
3280
3279
|
/** 与 SDK 的 `fillConfig` 一致,区别是默认接入浏览器的剪贴板与消息提示 */
|
|
3281
3280
|
export declare const fillConfig: (config?: FormConfig, options?: FillConfigOptions) => FormConfig;
|
|
3282
|
-
//#endregion
|
|
3283
|
-
//#region temp/packages/editor/src/utils/code-block.d.ts
|
|
3284
3281
|
/**
|
|
3285
3282
|
* 代码块编辑表单配置的统一入口。
|
|
3286
3283
|
*
|
|
@@ -3322,15 +3319,11 @@ export interface GetCodeBlockFormConfigOptions {
|
|
|
3322
3319
|
* 如需响应式的 props 变化(如切换 dataSourceType),调用方在 `computed` 中再次调用本函数即可。
|
|
3323
3320
|
*/
|
|
3324
3321
|
export declare const getCodeBlockFormConfig: (options?: GetCodeBlockFormConfigOptions) => FormConfig;
|
|
3325
|
-
//#endregion
|
|
3326
|
-
//#region temp/packages/editor/src/utils/logger.d.ts
|
|
3327
3322
|
export declare const log: (...args: any[]) => void;
|
|
3328
3323
|
export declare const info: (...args: any[]) => void;
|
|
3329
3324
|
export declare const warn: (...args: any[]) => void;
|
|
3330
3325
|
export declare const debug: (...args: any[]) => void;
|
|
3331
3326
|
export declare const error: (...args: any[]) => void;
|
|
3332
|
-
//#endregion
|
|
3333
|
-
//#region temp/packages/editor/src/utils/editor.d.ts
|
|
3334
3327
|
export declare const COPY_STORAGE_KEY = "$MagicEditorCopyData";
|
|
3335
3328
|
export declare const COPY_CODE_STORAGE_KEY = "$MagicEditorCopyCode";
|
|
3336
3329
|
export declare const COPY_DS_STORAGE_KEY = "$MagicEditorCopyDataSource";
|
|
@@ -3461,8 +3454,6 @@ export declare const classifyDragSources: (configs: MNode[], targetParent: MCont
|
|
|
3461
3454
|
* 与 UI 层 `describePageStep` 同义,但避免 service 反向依赖 layouts/,故放在此工具函数中。
|
|
3462
3455
|
*/
|
|
3463
3456
|
export declare const describeStepForRevert: (step: StepValue) => string;
|
|
3464
|
-
//#endregion
|
|
3465
|
-
//#region temp/packages/editor/src/utils/operator.d.ts
|
|
3466
3457
|
/**
|
|
3467
3458
|
* 粘贴前置操作:返回分配了新id以及校准了坐标的配置
|
|
3468
3459
|
* @param position 粘贴的坐标
|
|
@@ -3482,15 +3473,36 @@ export declare const getPositionInContainer: (position: PastePosition | undefine
|
|
|
3482
3473
|
};
|
|
3483
3474
|
export declare const getAddParent: (node: MNode) => MContainer | null | undefined;
|
|
3484
3475
|
export declare const getDefaultConfig: (addNode: AddMNode, parentNode: MContainer) => Promise<any>;
|
|
3485
|
-
//#endregion
|
|
3486
|
-
//#region temp/packages/editor/src/utils/data-source/index.d.ts
|
|
3487
3476
|
export declare const getFormConfig: (type: string, configs: Record<string, FormConfig>) => FormConfig;
|
|
3488
3477
|
export declare const getFormValue: (type: string, values: Partial<DataSourceSchema>) => Partial<DataSourceSchema>;
|
|
3489
3478
|
export declare const getDisplayField: (dataSources: DataSourceSchema[], key: string) => {
|
|
3490
3479
|
value: string;
|
|
3491
3480
|
type: "var" | "text";
|
|
3492
3481
|
}[];
|
|
3493
|
-
|
|
3482
|
+
interface FieldCascaderOption extends CascaderOption {
|
|
3483
|
+
children?: FieldCascaderOption[];
|
|
3484
|
+
/** 字段类型。数组节点才需要继续补下标 */
|
|
3485
|
+
fieldType?: DataSourceFieldType;
|
|
3486
|
+
/** 数组下标节点,不是 schema 里的字段 */
|
|
3487
|
+
arrayIndex?: boolean;
|
|
3488
|
+
}
|
|
3489
|
+
/** 编辑器里这份数据源当前用于展示的数据:优先 useInEditor 的 mock,否则用字段默认值 */
|
|
3490
|
+
export declare const getDataSourceEditorData: (ds: Pick<DataSourceSchema, "fields" | "mocks">) => Record<string, any>;
|
|
3491
|
+
/**
|
|
3492
|
+
* 已选路径对不上选项时补节点,否则级联框输入框是空的。
|
|
3493
|
+
* 数组字段后面缺的下标会补上;只展示下标时,已保存的元素字段路径(`array.xxx`)也会补回。
|
|
3494
|
+
* 对象上的数字字段名仍然按字段处理。
|
|
3495
|
+
*/
|
|
3496
|
+
export declare const ensureSelectedArrayIndices: (options: FieldCascaderOption[], fieldPath: Array<string | number>) => void;
|
|
3497
|
+
export interface CascaderFieldsContext {
|
|
3498
|
+
/**
|
|
3499
|
+
* 是否把数组元素字段直接列在数组下面(`array.xxx`)。
|
|
3500
|
+
* 迭代器子组件里为 true,同时保留下标(`array[0].xxx` / `array.0.xxx`)。
|
|
3501
|
+
* 为 false 时只保留下标。不传则保留元素字段,供事件选择等其它调用方使用。
|
|
3502
|
+
*/
|
|
3503
|
+
directArrayElements?: boolean;
|
|
3504
|
+
}
|
|
3505
|
+
export declare const getCascaderOptionsFromFields: (fields?: DataSchema[], dataSourceFieldType?: DataSourceFieldType[], data?: Record<string, any>, context?: CascaderFieldsContext) => FieldCascaderOption[];
|
|
3494
3506
|
/**
|
|
3495
3507
|
* 按字段名路径下钻 DataSchema。
|
|
3496
3508
|
* @param skipNumberIndices 为 true 时跳过数字段(模板路径中的数组下标,如 arr[0].x)
|
|
@@ -3512,8 +3524,6 @@ export declare const resolveFieldByPath: (fields: DataSchema[] | undefined, fiel
|
|
|
3512
3524
|
untypedArrayElement?: boolean;
|
|
3513
3525
|
};
|
|
3514
3526
|
export declare const getFieldType: (ds: DataSourceSchema | undefined, fieldNames: Array<string | number>) => "" | DataSourceFieldType;
|
|
3515
|
-
//#endregion
|
|
3516
|
-
//#region temp/packages/editor/src/utils/dep/idle-task.d.ts
|
|
3517
3527
|
export interface IdleTaskEvents {
|
|
3518
3528
|
finish: [];
|
|
3519
3529
|
'hight-level-finish': [];
|
|
@@ -3545,8 +3555,6 @@ export declare class IdleTask<T = any> extends EventEmitter {
|
|
|
3545
3555
|
private finishRun;
|
|
3546
3556
|
private getTaskLength;
|
|
3547
3557
|
}
|
|
3548
|
-
//#endregion
|
|
3549
|
-
//#region temp/packages/editor/src/utils/scroll-viewer.d.ts
|
|
3550
3558
|
interface ScrollViewerOptions {
|
|
3551
3559
|
container: HTMLDivElement;
|
|
3552
3560
|
target: HTMLDivElement;
|
|
@@ -3582,13 +3590,9 @@ export declare class ScrollViewer extends EventEmitter {
|
|
|
3582
3590
|
private setScrollSize;
|
|
3583
3591
|
private setSize;
|
|
3584
3592
|
}
|
|
3585
|
-
//#endregion
|
|
3586
|
-
//#region temp/packages/editor/src/utils/tree.d.ts
|
|
3587
3593
|
export declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus>, id: Id, status: Partial<LayerNodeStatus>) => void;
|
|
3588
3594
|
/** 默认的组件树节点是否可展开的判断函数:当节点的子项中至少存在一个可见节点时认为可展开 */
|
|
3589
3595
|
export declare const defaultIsExpandable: IsExpandableFunction;
|
|
3590
|
-
//#endregion
|
|
3591
|
-
//#region temp/packages/editor/src/utils/indexed-db.d.ts
|
|
3592
3596
|
/**
|
|
3593
3597
|
* 一组极简的、基于原生 IndexedDB 的 Promise KV 工具,避免引入额外依赖。
|
|
3594
3598
|
* 仅用于浏览器环境;在不支持 IndexedDB 的环境(如 SSR / 部分测试环境)下会 reject。
|
|
@@ -3608,8 +3612,6 @@ export declare const idbSet: (dbName: string, storeName: string, key: IDBValidKe
|
|
|
3608
3612
|
export declare const idbGet: <T = unknown>(dbName: string, storeName: string, key: IDBValidKey) => Promise<T | undefined>;
|
|
3609
3613
|
/** 删除一条记录。 */
|
|
3610
3614
|
export declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) => Promise<void>;
|
|
3611
|
-
//#endregion
|
|
3612
|
-
//#region temp/packages/editor/src/utils/history.d.ts
|
|
3613
3615
|
/**
|
|
3614
3616
|
* 「回滚」生成的新 step 简短描述。代码块 / 数据源共用。
|
|
3615
3617
|
* 二者逻辑一致,仅展示名取值字段不同(代码块取 `name`,数据源取 `title`),
|
|
@@ -3635,10 +3637,15 @@ export declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "a
|
|
|
3635
3637
|
export declare const createStackStep: <T, S extends BaseStepValue<T>>(id: Id, payload: Omit<BaseStepValue<T>, "uuid" | "data" | "opType" | "diff" | "timestamp" | "saved"> & {
|
|
3636
3638
|
oldValue: T | null;
|
|
3637
3639
|
newValue: T | null;
|
|
3638
|
-
changeRecords?: ChangeRecord[];
|
|
3640
|
+
changeRecords?: ChangeRecord$1[];
|
|
3639
3641
|
/** 展示名(缺省时从快照 name / title 推断)。 */
|
|
3640
3642
|
name?: string;
|
|
3641
3643
|
}) => S | null;
|
|
3644
|
+
/**
|
|
3645
|
+
* 把栈当前游标所在的记录标记为「已保存」,随后把栈裁剪到容量上限(见 {@link UndoRedo.trim})。
|
|
3646
|
+
* 入栈与还原都不裁剪,只有保存后才收敛,避免用户在落库前丢掉可撤销的历史;
|
|
3647
|
+
* initial 基线与「整体设置 root」产生的记录(`rootStep`)不会被裁掉。
|
|
3648
|
+
*/
|
|
3642
3649
|
export declare const markStackSaved: <S extends {
|
|
3643
3650
|
saved?: boolean;
|
|
3644
3651
|
}>(undoRedo?: UndoRedo<S>) => void;
|
|
@@ -3677,6 +3684,10 @@ export declare const serializeStacks: <T extends {
|
|
|
3677
3684
|
*
|
|
3678
3685
|
* 与 {@link serializeStacks} 相反:当传入 `parse`(parseDSL)时,把每条 step 中以字符串形式存储的 `diff`
|
|
3679
3686
|
* 解析回真实对象(含函数);不含 `diff` 的元素(如通用栈)原样透传。
|
|
3687
|
+
*
|
|
3688
|
+
* 单个栈解析失败只丢弃该栈,其余栈照常还原:一条损坏的快照不应该让整份本地历史都不可用。
|
|
3689
|
+
* 结构性损坏(`elementList` 不是数组)同样按空栈处理,交给 {@link UndoRedo.fromSerialized} 兜底。
|
|
3690
|
+
* 全部栈都失败时抛出首个错误,避免调用方把「什么都没恢复」当成一次成功的还原。
|
|
3680
3691
|
*/
|
|
3681
3692
|
export declare const deserializeStacks: <T extends {
|
|
3682
3693
|
saved?: boolean;
|
|
@@ -3693,8 +3704,6 @@ export declare const getOrCreateStack: <T>(stacks: Record<Id, UndoRedo<T>>, id:
|
|
|
3693
3704
|
export declare const undoFloor: (undoRedo: UndoRedo<any>) => number;
|
|
3694
3705
|
/** 将单次 push 产生的 history uuid(或 null)转为 *AndGetHistoryId 返回用的 uuid 列表。 */
|
|
3695
3706
|
export declare const getLastPushedHistoryIds: (historyId: string | null) => string[];
|
|
3696
|
-
//#endregion
|
|
3697
|
-
//#region temp/packages/editor/src/utils/const.d.ts
|
|
3698
3707
|
/** 当uiService.get('uiSelectMode')为true,点击组件(包括任何形式,组件树/画布)时触发的事件名 */
|
|
3699
3708
|
export declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
|
|
3700
3709
|
export declare const LEFT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorLeftColumnWidthData";
|
|
@@ -3707,8 +3716,6 @@ export declare const MIN_CENTER_COLUMN_WIDTH = 400;
|
|
|
3707
3716
|
export declare const MIN_RIGHT_COLUMN_WIDTH = 300;
|
|
3708
3717
|
export declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
3709
3718
|
export declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
3710
|
-
//#endregion
|
|
3711
|
-
//#region temp/packages/editor/src/utils/type-match-rules.d.ts
|
|
3712
3719
|
export declare const ALL_COND_OPS: Set<string>;
|
|
3713
3720
|
export type ValidateDataSourceFieldSelectOptions = {
|
|
3714
3721
|
/**
|
|
@@ -3722,8 +3729,6 @@ export type ValidateDataSourceFieldSelectOptions = {
|
|
|
3722
3729
|
*/
|
|
3723
3730
|
export declare const validateDataSourceFieldSelect: (value: any, context: TypeMatchValidateContext, options?: ValidateDataSourceFieldSelectOptions) => string | undefined | Promise<string | undefined>;
|
|
3724
3731
|
export declare const editorTypeMatchRules: Record<string, TypeMatchValidator>;
|
|
3725
|
-
//#endregion
|
|
3726
|
-
//#region temp/packages/editor/src/utils/event.d.ts
|
|
3727
3732
|
/** 事件相关工具函数依赖的服务,可由表单上下文(`mForm.services`)注入 */
|
|
3728
3733
|
export type EventUtilServices = Pick<Services, 'editorService' | 'eventsService' | 'dataSourceService'>;
|
|
3729
3734
|
export declare const EVENT_NAME_VALUE_SEPARATOR = ".";
|
|
@@ -3768,18 +3773,14 @@ export declare const getCompActionAllowedValues: (config?: {
|
|
|
3768
3773
|
}, model?: {
|
|
3769
3774
|
to?: Id;
|
|
3770
3775
|
}, services?: EventUtilServices) => Set<string> | null;
|
|
3771
|
-
//#endregion
|
|
3772
|
-
//#region temp/packages/editor/src/utils/monaco-editor.d.ts
|
|
3773
3776
|
declare const _default$42: () => Promise<typeof import("monaco-editor")>;
|
|
3774
|
-
|
|
3775
|
-
//#region temp/packages/form/src/schema.d.ts
|
|
3776
|
-
interface ChangeRecord$1 {
|
|
3777
|
+
interface ChangeRecord {
|
|
3777
3778
|
propPath?: string;
|
|
3778
3779
|
value: any;
|
|
3779
3780
|
}
|
|
3780
|
-
interface ContainerChangeEventData
|
|
3781
|
+
interface ContainerChangeEventData {
|
|
3781
3782
|
modifyKey?: string;
|
|
3782
|
-
changeRecords?: ChangeRecord
|
|
3783
|
+
changeRecords?: ChangeRecord[];
|
|
3783
3784
|
}
|
|
3784
3785
|
/** 自定义 label slot 的作用域参数 */
|
|
3785
3786
|
interface FormLabelSlotProps {
|
|
@@ -3798,8 +3799,6 @@ interface FormLabelSlotProps {
|
|
|
3798
3799
|
interface FormSlots {
|
|
3799
3800
|
label(_props: FormLabelSlotProps): any;
|
|
3800
3801
|
}
|
|
3801
|
-
//#endregion
|
|
3802
|
-
//#region temp/packages/editor/src/editorProps.d.ts
|
|
3803
3802
|
interface EditorProps {
|
|
3804
3803
|
/** 是否是大屏模拟器容器,大屏容器时,左侧属性面板会扩展为两列(正常3列),颜色表单不扩展两列等 */
|
|
3805
3804
|
isLargeStageContainer?: boolean;
|
|
@@ -3950,8 +3949,6 @@ interface EditorProps {
|
|
|
3950
3949
|
/** 页面搜索函数 */
|
|
3951
3950
|
pageFilterFunction?: (page: MPage | MPageFragment, keyword: string) => boolean;
|
|
3952
3951
|
}
|
|
3953
|
-
//#endregion
|
|
3954
|
-
//#region temp/packages/editor/src/Editor.vue.d.ts
|
|
3955
3952
|
type __VLS_Slots$12 = EditorSlots;
|
|
3956
3953
|
declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorProps, Services, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3957
3954
|
"update:modelValue": (value: MApp | null) => any;
|
|
@@ -3967,7 +3964,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3967
3964
|
readonly labelWidth?: string | undefined;
|
|
3968
3965
|
readonly codeValueKey?: string | undefined;
|
|
3969
3966
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
3970
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
3967
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
3971
3968
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3972
3969
|
readonly onUnmounted?: (() => any) | undefined;
|
|
3973
3970
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -3983,7 +3980,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3983
3980
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
3984
3981
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
3985
3982
|
$host: Element | null;
|
|
3986
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData
|
|
3983
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
3987
3984
|
$el: any;
|
|
3988
3985
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
3989
3986
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -3994,7 +3991,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3994
3991
|
codeValueKey?: string;
|
|
3995
3992
|
labelPosition?: "top" | "left" | "right";
|
|
3996
3993
|
}> & Readonly<{
|
|
3997
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
3994
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
3998
3995
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3999
3996
|
onUnmounted?: (() => any) | undefined;
|
|
4000
3997
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4088,8 +4085,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4088
4085
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4089
4086
|
formState: import("@tmagic/form-schema").FormState;
|
|
4090
4087
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4091
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4092
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4088
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4089
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4093
4090
|
resetForm: () => void;
|
|
4094
4091
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4095
4092
|
validate: () => Promise<string>;
|
|
@@ -4189,8 +4186,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4189
4186
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4190
4187
|
formState: import("@tmagic/form-schema").FormState;
|
|
4191
4188
|
initialized: boolean;
|
|
4192
|
-
changeRecords: ChangeRecord
|
|
4193
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4189
|
+
changeRecords: ChangeRecord[];
|
|
4190
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4194
4191
|
resetForm: () => void;
|
|
4195
4192
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4196
4193
|
validate: () => Promise<string>;
|
|
@@ -4198,9 +4195,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4198
4195
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4199
4196
|
$slots: FormSlots;
|
|
4200
4197
|
}) | null>>;
|
|
4201
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4198
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4202
4199
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4203
|
-
submit: (values: any, eventData?: ContainerChangeEventData
|
|
4200
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
4204
4201
|
mounted: (internalInstance: any) => any;
|
|
4205
4202
|
unmounted: () => any;
|
|
4206
4203
|
"submit-error": (e: any) => any;
|
|
@@ -4234,7 +4231,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4234
4231
|
codeValueKey?: string;
|
|
4235
4232
|
labelPosition?: "top" | "left" | "right";
|
|
4236
4233
|
}> & Readonly<{
|
|
4237
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4234
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4238
4235
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4239
4236
|
onUnmounted?: (() => any) | undefined;
|
|
4240
4237
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4328,8 +4325,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4328
4325
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4329
4326
|
formState: import("@tmagic/form-schema").FormState;
|
|
4330
4327
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4331
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4332
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4328
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4329
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4333
4330
|
resetForm: () => void;
|
|
4334
4331
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4335
4332
|
validate: () => Promise<string>;
|
|
@@ -4429,8 +4426,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4429
4426
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4430
4427
|
formState: import("@tmagic/form-schema").FormState;
|
|
4431
4428
|
initialized: boolean;
|
|
4432
|
-
changeRecords: ChangeRecord
|
|
4433
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4429
|
+
changeRecords: ChangeRecord[];
|
|
4430
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4434
4431
|
resetForm: () => void;
|
|
4435
4432
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4436
4433
|
validate: () => Promise<string>;
|
|
@@ -4438,7 +4435,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4438
4435
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4439
4436
|
$slots: FormSlots;
|
|
4440
4437
|
}) | null;
|
|
4441
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4438
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4442
4439
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4443
4440
|
$slots: {
|
|
4444
4441
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -4461,7 +4458,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4461
4458
|
readonly labelWidth?: string | undefined;
|
|
4462
4459
|
readonly codeValueKey?: string | undefined;
|
|
4463
4460
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
4464
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4461
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4465
4462
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4466
4463
|
readonly onUnmounted?: (() => any) | undefined;
|
|
4467
4464
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4477,7 +4474,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4477
4474
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
4478
4475
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
4479
4476
|
$host: Element | null;
|
|
4480
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData
|
|
4477
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
4481
4478
|
$el: any;
|
|
4482
4479
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
4483
4480
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -4488,7 +4485,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4488
4485
|
codeValueKey?: string;
|
|
4489
4486
|
labelPosition?: "top" | "left" | "right";
|
|
4490
4487
|
}> & Readonly<{
|
|
4491
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4488
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4492
4489
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4493
4490
|
onUnmounted?: (() => any) | undefined;
|
|
4494
4491
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4582,8 +4579,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4582
4579
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4583
4580
|
formState: import("@tmagic/form-schema").FormState;
|
|
4584
4581
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4585
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4586
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4582
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4583
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4587
4584
|
resetForm: () => void;
|
|
4588
4585
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4589
4586
|
validate: () => Promise<string>;
|
|
@@ -4683,8 +4680,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4683
4680
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4684
4681
|
formState: import("@tmagic/form-schema").FormState;
|
|
4685
4682
|
initialized: boolean;
|
|
4686
|
-
changeRecords: ChangeRecord
|
|
4687
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4683
|
+
changeRecords: ChangeRecord[];
|
|
4684
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4688
4685
|
resetForm: () => void;
|
|
4689
4686
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4690
4687
|
validate: () => Promise<string>;
|
|
@@ -4692,9 +4689,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4692
4689
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4693
4690
|
$slots: FormSlots;
|
|
4694
4691
|
}) | null>>;
|
|
4695
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4692
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4696
4693
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4697
|
-
submit: (values: any, eventData?: ContainerChangeEventData
|
|
4694
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
4698
4695
|
mounted: (internalInstance: any) => any;
|
|
4699
4696
|
unmounted: () => any;
|
|
4700
4697
|
"submit-error": (e: any) => any;
|
|
@@ -4728,7 +4725,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4728
4725
|
codeValueKey?: string;
|
|
4729
4726
|
labelPosition?: "top" | "left" | "right";
|
|
4730
4727
|
}> & Readonly<{
|
|
4731
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4728
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4732
4729
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4733
4730
|
onUnmounted?: (() => any) | undefined;
|
|
4734
4731
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4822,8 +4819,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4822
4819
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4823
4820
|
formState: import("@tmagic/form-schema").FormState;
|
|
4824
4821
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4825
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4826
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4822
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4823
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4827
4824
|
resetForm: () => void;
|
|
4828
4825
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4829
4826
|
validate: () => Promise<string>;
|
|
@@ -4923,8 +4920,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4923
4920
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4924
4921
|
formState: import("@tmagic/form-schema").FormState;
|
|
4925
4922
|
initialized: boolean;
|
|
4926
|
-
changeRecords: ChangeRecord
|
|
4927
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4923
|
+
changeRecords: ChangeRecord[];
|
|
4924
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4928
4925
|
resetForm: () => void;
|
|
4929
4926
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4930
4927
|
validate: () => Promise<string>;
|
|
@@ -4932,7 +4929,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4932
4929
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4933
4930
|
$slots: FormSlots;
|
|
4934
4931
|
}) | null;
|
|
4935
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4932
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4936
4933
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4937
4934
|
$slots: {
|
|
4938
4935
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -4983,8 +4980,6 @@ type __VLS_WithSlots$12<T, S> = T & {
|
|
|
4983
4980
|
$slots: S;
|
|
4984
4981
|
};
|
|
4985
4982
|
};
|
|
4986
|
-
//#endregion
|
|
4987
|
-
//#region temp/packages/editor/src/layouts/CodeEditor.vue.d.ts
|
|
4988
4983
|
type __VLS_Props$34 = {
|
|
4989
4984
|
initValues?: any;
|
|
4990
4985
|
modifiedValues?: any;
|
|
@@ -5024,8 +5019,6 @@ declare const __VLS_export$38: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5024
5019
|
disabledFullScreen: boolean;
|
|
5025
5020
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5026
5021
|
declare const _default$34: typeof __VLS_export$38;
|
|
5027
|
-
//#endregion
|
|
5028
|
-
//#region temp/packages/editor/src/services/sdk-instance.d.ts
|
|
5029
5022
|
export declare const editorService: Editor;
|
|
5030
5023
|
export declare const historyService: History;
|
|
5031
5024
|
export declare const propsService: Props;
|
|
@@ -5035,8 +5028,6 @@ export declare const depService: Dep;
|
|
|
5035
5028
|
export declare const eventsService: Events;
|
|
5036
5029
|
export declare const storageService: WebStorage;
|
|
5037
5030
|
export declare const componentListService: ComponentList;
|
|
5038
|
-
//#endregion
|
|
5039
|
-
//#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
|
|
5040
5031
|
type __VLS_Slots$11 = ComponentListPanelSlots;
|
|
5041
5032
|
declare const __VLS_base$11: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
5042
5033
|
declare const __VLS_export$37: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
@@ -5046,8 +5037,6 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
5046
5037
|
$slots: S;
|
|
5047
5038
|
};
|
|
5048
5039
|
};
|
|
5049
|
-
//#endregion
|
|
5050
|
-
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
|
|
5051
5040
|
type __VLS_Slots$10 = LayerPanelSlots;
|
|
5052
5041
|
type __VLS_Props$33 = {
|
|
5053
5042
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
@@ -5073,35 +5062,27 @@ type __VLS_WithSlots$10<T, S> = T & {
|
|
|
5073
5062
|
$slots: S;
|
|
5074
5063
|
};
|
|
5075
5064
|
};
|
|
5076
|
-
//#endregion
|
|
5077
|
-
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerNodeContent.vue.d.ts
|
|
5078
5065
|
type __VLS_Props$32 = {
|
|
5079
5066
|
data: TreeNodeData;
|
|
5080
5067
|
};
|
|
5081
5068
|
declare const __VLS_export$35: import("@vue/runtime-core").DefineComponent<__VLS_Props$32, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$32> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5082
5069
|
declare const _default$26: typeof __VLS_export$35;
|
|
5083
|
-
//#endregion
|
|
5084
|
-
//#region temp/packages/editor/src/fields/CodeSelect.vue.d.ts
|
|
5085
5070
|
type __VLS_Props$31 = FieldProps<CodeSelectConfig>;
|
|
5086
5071
|
declare const __VLS_export$34: import("@vue/runtime-core").DefineComponent<__VLS_Props$31, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5087
|
-
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
5072
|
+
change: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
5088
5073
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
|
|
5089
|
-
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5074
|
+
onChange?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
5090
5075
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5091
5076
|
declare const _default$3: typeof __VLS_export$34;
|
|
5092
|
-
//#endregion
|
|
5093
|
-
//#region temp/packages/editor/src/fields/CodeSelectCol.vue.d.ts
|
|
5094
5077
|
type __VLS_Props$30 = FieldProps<CodeSelectColConfig>;
|
|
5095
5078
|
declare const __VLS_export$33: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5096
|
-
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
5079
|
+
change: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
5097
5080
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
|
|
5098
|
-
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5081
|
+
onChange?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
5099
5082
|
}>, {
|
|
5100
5083
|
disabled: boolean;
|
|
5101
5084
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5102
5085
|
declare const _default$4: typeof __VLS_export$33;
|
|
5103
|
-
//#endregion
|
|
5104
|
-
//#region temp/packages/editor/src/fields/DataSourceFields.vue.d.ts
|
|
5105
5086
|
type __VLS_Props$29 = FieldProps<DataSourceFieldsConfig>;
|
|
5106
5087
|
type __VLS_ModelProps$4 = {
|
|
5107
5088
|
'width'?: number;
|
|
@@ -5110,12 +5091,12 @@ type __VLS_ModelProps$4 = {
|
|
|
5110
5091
|
};
|
|
5111
5092
|
type __VLS_PublicProps$4 = __VLS_Props$29 & __VLS_ModelProps$4;
|
|
5112
5093
|
declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5113
|
-
change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
5094
|
+
change: (v: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
5114
5095
|
"update:visible": (value: boolean) => any;
|
|
5115
5096
|
"update:width": (value: number) => any;
|
|
5116
5097
|
"update:visible1": (value: boolean) => any;
|
|
5117
5098
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$4> & Readonly<{
|
|
5118
|
-
onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
5099
|
+
onChange?: ((v: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
5119
5100
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
5120
5101
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
5121
5102
|
"onUpdate:visible1"?: ((value: boolean) => any) | undefined;
|
|
@@ -5123,8 +5104,6 @@ declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5123
5104
|
disabled: boolean;
|
|
5124
5105
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5125
5106
|
declare const _default$12: typeof __VLS_export$32;
|
|
5126
|
-
//#endregion
|
|
5127
|
-
//#region temp/packages/editor/src/fields/DataSourceMocks.vue.d.ts
|
|
5128
5107
|
type __VLS_Props$28 = FieldProps<DataSourceMocksConfig>;
|
|
5129
5108
|
type __VLS_ModelProps$3 = {
|
|
5130
5109
|
'width'?: number;
|
|
@@ -5141,8 +5120,6 @@ declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5141
5120
|
disabled: boolean;
|
|
5142
5121
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5143
5122
|
declare const _default$16: typeof __VLS_export$31;
|
|
5144
|
-
//#endregion
|
|
5145
|
-
//#region temp/packages/editor/src/fields/DataSourceMethods.vue.d.ts
|
|
5146
5123
|
type __VLS_Props$27 = FieldProps<DataSourceMethodsConfig>;
|
|
5147
5124
|
declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5148
5125
|
change: (...args: any[]) => void;
|
|
@@ -5152,8 +5129,6 @@ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5152
5129
|
disabled: boolean;
|
|
5153
5130
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5154
5131
|
declare const _default$15: typeof __VLS_export$30;
|
|
5155
|
-
//#endregion
|
|
5156
|
-
//#region temp/packages/editor/src/fields/DataSourceInput.vue.d.ts
|
|
5157
5132
|
type __VLS_Props$26 = FieldProps<DataSourceInputConfig>;
|
|
5158
5133
|
declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5159
5134
|
change: (value: string) => any;
|
|
@@ -5163,8 +5138,6 @@ declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5163
5138
|
disabled: boolean;
|
|
5164
5139
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5165
5140
|
declare const _default$13: typeof __VLS_export$29;
|
|
5166
|
-
//#endregion
|
|
5167
|
-
//#region temp/packages/editor/src/fields/DataSourceSelect.vue.d.ts
|
|
5168
5141
|
type __VLS_Props$25 = FieldProps<DataSourceSelect>;
|
|
5169
5142
|
declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5170
5143
|
change: (...args: any[]) => void;
|
|
@@ -5174,8 +5147,6 @@ declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5174
5147
|
disabled: boolean;
|
|
5175
5148
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5176
5149
|
declare const _default$17: typeof __VLS_export$28;
|
|
5177
|
-
//#endregion
|
|
5178
|
-
//#region temp/packages/editor/src/fields/DataSourceMethodSelect.vue.d.ts
|
|
5179
5150
|
type __VLS_Props$24 = FieldProps<DataSourceMethodSelectConfig>;
|
|
5180
5151
|
declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5181
5152
|
change: (...args: any[]) => void;
|
|
@@ -5185,8 +5156,6 @@ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5185
5156
|
disabled: boolean;
|
|
5186
5157
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5187
5158
|
declare const _default$14: typeof __VLS_export$27;
|
|
5188
|
-
//#endregion
|
|
5189
|
-
//#region temp/packages/editor/src/fields/DataSourceFieldSelect/Index.vue.d.ts
|
|
5190
5159
|
type __VLS_Props$23 = FieldProps<DataSourceFieldSelectConfig>;
|
|
5191
5160
|
declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5192
5161
|
change: (...args: any[]) => void;
|
|
@@ -5196,17 +5165,13 @@ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5196
5165
|
disabled: boolean;
|
|
5197
5166
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5198
5167
|
declare const _default$11: typeof __VLS_export$26;
|
|
5199
|
-
//#endregion
|
|
5200
|
-
//#region temp/packages/editor/src/fields/EventSelect.vue.d.ts
|
|
5201
5168
|
type __VLS_Props$22 = FieldProps<EventSelectConfig>;
|
|
5202
5169
|
declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5203
|
-
change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
5170
|
+
change: (v: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
5204
5171
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
|
|
5205
|
-
onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
5172
|
+
onChange?: ((v: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
5206
5173
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5207
5174
|
declare const _default$19: typeof __VLS_export$25;
|
|
5208
|
-
//#endregion
|
|
5209
|
-
//#region temp/packages/editor/src/fields/KeyValue.vue.d.ts
|
|
5210
5175
|
type __VLS_Props$21 = FieldProps<KeyValueConfig>;
|
|
5211
5176
|
declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5212
5177
|
change: (value: Record<string, any>) => any;
|
|
@@ -5216,8 +5181,6 @@ declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5216
5181
|
disabled: boolean;
|
|
5217
5182
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5218
5183
|
declare const _default$25: typeof __VLS_export$24;
|
|
5219
|
-
//#endregion
|
|
5220
|
-
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockList.vue.d.ts
|
|
5221
5184
|
type __VLS_Slots$9 = CodeBlockListSlots;
|
|
5222
5185
|
type __VLS_Props$20 = {
|
|
5223
5186
|
indent?: number;
|
|
@@ -5260,8 +5223,6 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
5260
5223
|
$slots: S;
|
|
5261
5224
|
};
|
|
5262
5225
|
};
|
|
5263
|
-
//#endregion
|
|
5264
|
-
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
|
|
5265
5226
|
type __VLS_Slots$8 = CodeBlockListPanelSlots;
|
|
5266
5227
|
type __VLS_Props$19 = {
|
|
5267
5228
|
indent?: number;
|
|
@@ -5277,8 +5238,6 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
5277
5238
|
$slots: S;
|
|
5278
5239
|
};
|
|
5279
5240
|
};
|
|
5280
|
-
//#endregion
|
|
5281
|
-
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts
|
|
5282
5241
|
type __VLS_Props$18 = {
|
|
5283
5242
|
title?: string;
|
|
5284
5243
|
values: any;
|
|
@@ -5298,20 +5257,18 @@ declare const __VLS_export$21: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5298
5257
|
hide(): void;
|
|
5299
5258
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5300
5259
|
close: () => any;
|
|
5301
|
-
submit: (v: any, eventData: ContainerChangeEventData) => any;
|
|
5260
|
+
submit: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
5302
5261
|
open: (id: string) => any;
|
|
5303
5262
|
"update:visible": (value: boolean) => any;
|
|
5304
5263
|
"update:width": (value: number) => any;
|
|
5305
5264
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$2> & Readonly<{
|
|
5306
5265
|
onClose?: (() => any) | undefined;
|
|
5307
|
-
onSubmit?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5266
|
+
onSubmit?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
5308
5267
|
onOpen?: ((id: string) => any) | undefined;
|
|
5309
5268
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
5310
5269
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
5311
5270
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5312
5271
|
declare const _default$10: typeof __VLS_export$21;
|
|
5313
|
-
//#endregion
|
|
5314
|
-
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceAddButton.vue.d.ts
|
|
5315
5272
|
type __VLS_Props$17 = {
|
|
5316
5273
|
datasourceTypeList: {
|
|
5317
5274
|
text: string;
|
|
@@ -5326,15 +5283,13 @@ declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5326
5283
|
onAdd?: ((type: string) => any) | undefined;
|
|
5327
5284
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5328
5285
|
declare const _default$9: typeof __VLS_export$20;
|
|
5329
|
-
//#endregion
|
|
5330
|
-
//#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
|
|
5331
5286
|
type __VLS_Slots$7 = PropsPanelSlots;
|
|
5332
5287
|
type __VLS_Props$16 = {
|
|
5333
5288
|
disabledShowSrc?: boolean;
|
|
5334
5289
|
};
|
|
5335
5290
|
declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {
|
|
5336
5291
|
getFormState(): import("@tmagic/form-schema").FormState | undefined;
|
|
5337
|
-
submit: (v: MNode, eventData?: ContainerChangeEventData, error?: any, source?: NodeInvalidSource) => Promise<void>;
|
|
5292
|
+
submit: (v: MNode, eventData?: ContainerChangeEventData$1, error?: any, source?: NodeInvalidSource) => Promise<void>;
|
|
5338
5293
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5339
5294
|
mounted: (internalInstance: {
|
|
5340
5295
|
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
@@ -5347,7 +5302,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5347
5302
|
readonly labelWidth?: string | undefined;
|
|
5348
5303
|
readonly codeValueKey?: string | undefined;
|
|
5349
5304
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
5350
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5305
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5351
5306
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5352
5307
|
readonly onUnmounted?: (() => any) | undefined;
|
|
5353
5308
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5363,7 +5318,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5363
5318
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5364
5319
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5365
5320
|
$host: Element | null;
|
|
5366
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
5321
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
5367
5322
|
$el: any;
|
|
5368
5323
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
5369
5324
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -5374,7 +5329,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5374
5329
|
codeValueKey?: string;
|
|
5375
5330
|
labelPosition?: "top" | "left" | "right";
|
|
5376
5331
|
}> & Readonly<{
|
|
5377
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5332
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5378
5333
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5379
5334
|
onUnmounted?: (() => any) | undefined;
|
|
5380
5335
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5468,8 +5423,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5468
5423
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
5469
5424
|
formState: import("@tmagic/form-schema").FormState;
|
|
5470
5425
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
5471
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
5472
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5426
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
5427
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5473
5428
|
resetForm: () => void;
|
|
5474
5429
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5475
5430
|
validate: () => Promise<string>;
|
|
@@ -5569,8 +5524,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5569
5524
|
lastValuesProcessed: FormValue;
|
|
5570
5525
|
formState: import("@tmagic/form-schema").FormState;
|
|
5571
5526
|
initialized: boolean;
|
|
5572
|
-
changeRecords: ChangeRecord
|
|
5573
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5527
|
+
changeRecords: ChangeRecord[];
|
|
5528
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5574
5529
|
resetForm: () => void;
|
|
5575
5530
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5576
5531
|
validate: () => Promise<string>;
|
|
@@ -5578,9 +5533,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5578
5533
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
5579
5534
|
$slots: FormSlots;
|
|
5580
5535
|
}) | null>>;
|
|
5581
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5536
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
5582
5537
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5583
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5538
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
5584
5539
|
mounted: (internalInstance: any) => any;
|
|
5585
5540
|
unmounted: () => any;
|
|
5586
5541
|
"submit-error": (e: any) => any;
|
|
@@ -5614,7 +5569,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5614
5569
|
codeValueKey?: string;
|
|
5615
5570
|
labelPosition?: "top" | "left" | "right";
|
|
5616
5571
|
}> & Readonly<{
|
|
5617
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5572
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5618
5573
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5619
5574
|
onUnmounted?: (() => any) | undefined;
|
|
5620
5575
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5708,8 +5663,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5708
5663
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
5709
5664
|
formState: import("@tmagic/form-schema").FormState;
|
|
5710
5665
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
5711
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
5712
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5666
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
5667
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5713
5668
|
resetForm: () => void;
|
|
5714
5669
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5715
5670
|
validate: () => Promise<string>;
|
|
@@ -5809,8 +5764,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5809
5764
|
lastValuesProcessed: FormValue;
|
|
5810
5765
|
formState: import("@tmagic/form-schema").FormState;
|
|
5811
5766
|
initialized: boolean;
|
|
5812
|
-
changeRecords: ChangeRecord
|
|
5813
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5767
|
+
changeRecords: ChangeRecord[];
|
|
5768
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5814
5769
|
resetForm: () => void;
|
|
5815
5770
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5816
5771
|
validate: () => Promise<string>;
|
|
@@ -5818,7 +5773,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5818
5773
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
5819
5774
|
$slots: FormSlots;
|
|
5820
5775
|
}) | null;
|
|
5821
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5776
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
5822
5777
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
5823
5778
|
$slots: {
|
|
5824
5779
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -5839,7 +5794,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5839
5794
|
readonly labelWidth?: string | undefined;
|
|
5840
5795
|
readonly codeValueKey?: string | undefined;
|
|
5841
5796
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
5842
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5797
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5843
5798
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5844
5799
|
readonly onUnmounted?: (() => any) | undefined;
|
|
5845
5800
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5855,7 +5810,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5855
5810
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5856
5811
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5857
5812
|
$host: Element | null;
|
|
5858
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
5813
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
5859
5814
|
$el: any;
|
|
5860
5815
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
5861
5816
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -5866,7 +5821,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5866
5821
|
codeValueKey?: string;
|
|
5867
5822
|
labelPosition?: "top" | "left" | "right";
|
|
5868
5823
|
}> & Readonly<{
|
|
5869
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5824
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5870
5825
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5871
5826
|
onUnmounted?: (() => any) | undefined;
|
|
5872
5827
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5960,8 +5915,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5960
5915
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
5961
5916
|
formState: import("@tmagic/form-schema").FormState;
|
|
5962
5917
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
5963
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
5964
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5918
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
5919
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5965
5920
|
resetForm: () => void;
|
|
5966
5921
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5967
5922
|
validate: () => Promise<string>;
|
|
@@ -6061,8 +6016,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6061
6016
|
lastValuesProcessed: FormValue;
|
|
6062
6017
|
formState: import("@tmagic/form-schema").FormState;
|
|
6063
6018
|
initialized: boolean;
|
|
6064
|
-
changeRecords: ChangeRecord
|
|
6065
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6019
|
+
changeRecords: ChangeRecord[];
|
|
6020
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6066
6021
|
resetForm: () => void;
|
|
6067
6022
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6068
6023
|
validate: () => Promise<string>;
|
|
@@ -6070,9 +6025,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6070
6025
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6071
6026
|
$slots: FormSlots;
|
|
6072
6027
|
}) | null>>;
|
|
6073
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
6028
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
6074
6029
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6075
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
6030
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
6076
6031
|
mounted: (internalInstance: any) => any;
|
|
6077
6032
|
unmounted: () => any;
|
|
6078
6033
|
"submit-error": (e: any) => any;
|
|
@@ -6106,7 +6061,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6106
6061
|
codeValueKey?: string;
|
|
6107
6062
|
labelPosition?: "top" | "left" | "right";
|
|
6108
6063
|
}> & Readonly<{
|
|
6109
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
6064
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
6110
6065
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
6111
6066
|
onUnmounted?: (() => any) | undefined;
|
|
6112
6067
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -6200,8 +6155,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6200
6155
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
6201
6156
|
formState: import("@tmagic/form-schema").FormState;
|
|
6202
6157
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
6203
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
6204
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6158
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
6159
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6205
6160
|
resetForm: () => void;
|
|
6206
6161
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6207
6162
|
validate: () => Promise<string>;
|
|
@@ -6301,8 +6256,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6301
6256
|
lastValuesProcessed: FormValue;
|
|
6302
6257
|
formState: import("@tmagic/form-schema").FormState;
|
|
6303
6258
|
initialized: boolean;
|
|
6304
|
-
changeRecords: ChangeRecord
|
|
6305
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6259
|
+
changeRecords: ChangeRecord[];
|
|
6260
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6306
6261
|
resetForm: () => void;
|
|
6307
6262
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6308
6263
|
validate: () => Promise<string>;
|
|
@@ -6310,7 +6265,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6310
6265
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6311
6266
|
$slots: FormSlots;
|
|
6312
6267
|
}) | null;
|
|
6313
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
6268
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
6314
6269
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6315
6270
|
$slots: {
|
|
6316
6271
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -6327,8 +6282,6 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
6327
6282
|
$slots: S;
|
|
6328
6283
|
};
|
|
6329
6284
|
};
|
|
6330
|
-
//#endregion
|
|
6331
|
-
//#region temp/packages/editor/src/layouts/props-panel/FormPanel.vue.d.ts
|
|
6332
6285
|
type __VLS_Slots$6 = {
|
|
6333
6286
|
'props-form-panel-header'(_props: {}): any;
|
|
6334
6287
|
};
|
|
@@ -6431,8 +6384,8 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6431
6384
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
6432
6385
|
formState: import("@tmagic/form-schema").FormState;
|
|
6433
6386
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
6434
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
6435
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6387
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
6388
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6436
6389
|
resetForm: () => void;
|
|
6437
6390
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6438
6391
|
validate: () => Promise<string>;
|
|
@@ -6532,8 +6485,8 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6532
6485
|
lastValuesProcessed: FormValue;
|
|
6533
6486
|
formState: import("@tmagic/form-schema").FormState;
|
|
6534
6487
|
initialized: boolean;
|
|
6535
|
-
changeRecords: ChangeRecord
|
|
6536
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6488
|
+
changeRecords: ChangeRecord[];
|
|
6489
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6537
6490
|
resetForm: () => void;
|
|
6538
6491
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6539
6492
|
validate: () => Promise<string>;
|
|
@@ -6541,15 +6494,15 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6541
6494
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6542
6495
|
$slots: FormSlots;
|
|
6543
6496
|
}) | null>>;
|
|
6544
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
6497
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
6545
6498
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6546
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
6499
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
6547
6500
|
mounted: (internalInstance: any) => any;
|
|
6548
6501
|
unmounted: () => any;
|
|
6549
6502
|
"submit-error": (e: any) => any;
|
|
6550
6503
|
"form-error": (e: any) => any;
|
|
6551
6504
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
|
|
6552
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
6505
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
6553
6506
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
6554
6507
|
onUnmounted?: (() => any) | undefined;
|
|
6555
6508
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -6562,8 +6515,6 @@ type __VLS_WithSlots$6<T, S> = T & {
|
|
|
6562
6515
|
$slots: S;
|
|
6563
6516
|
};
|
|
6564
6517
|
};
|
|
6565
|
-
//#endregion
|
|
6566
|
-
//#region temp/packages/editor/src/components/ToolButton.vue.d.ts
|
|
6567
6518
|
type __VLS_Props$14 = {
|
|
6568
6519
|
data?: MenuButton | MenuComponent;
|
|
6569
6520
|
eventType?: 'mousedown' | 'mouseup' | 'click';
|
|
@@ -6575,8 +6526,6 @@ declare const __VLS_export$17: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6575
6526
|
eventType: "click" | "mousedown" | "mouseup";
|
|
6576
6527
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6577
6528
|
declare const _default$36: typeof __VLS_export$17;
|
|
6578
|
-
//#endregion
|
|
6579
|
-
//#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
|
|
6580
6529
|
type __VLS_Props$13 = {
|
|
6581
6530
|
menuData?: (MenuButton | MenuComponent)[];
|
|
6582
6531
|
isSubMenu?: boolean;
|
|
@@ -6629,15 +6578,11 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
6629
6578
|
$slots: S;
|
|
6630
6579
|
};
|
|
6631
6580
|
};
|
|
6632
|
-
//#endregion
|
|
6633
|
-
//#region temp/packages/editor/src/components/Icon.vue.d.ts
|
|
6634
6581
|
type __VLS_Props$12 = {
|
|
6635
6582
|
icon?: any;
|
|
6636
6583
|
};
|
|
6637
6584
|
declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6638
6585
|
declare const _default$24: typeof __VLS_export$15;
|
|
6639
|
-
//#endregion
|
|
6640
|
-
//#region temp/packages/editor/src/components/SplitView.vue.d.ts
|
|
6641
6586
|
type __VLS_Props$11 = {
|
|
6642
6587
|
width?: number;
|
|
6643
6588
|
left?: number;
|
|
@@ -6679,8 +6624,6 @@ type __VLS_WithSlots$4<T, S> = T & {
|
|
|
6679
6624
|
$slots: S;
|
|
6680
6625
|
};
|
|
6681
6626
|
};
|
|
6682
|
-
//#endregion
|
|
6683
|
-
//#region temp/packages/editor/src/components/Resizer.vue.d.ts
|
|
6684
6627
|
declare var __VLS_1: {};
|
|
6685
6628
|
type __VLS_Slots$3 = {} & {
|
|
6686
6629
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -6697,8 +6640,6 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
6697
6640
|
$slots: S;
|
|
6698
6641
|
};
|
|
6699
6642
|
};
|
|
6700
|
-
//#endregion
|
|
6701
|
-
//#region temp/packages/editor/src/components/CodeBlockEditor.vue.d.ts
|
|
6702
6643
|
type __VLS_Props$10 = {
|
|
6703
6644
|
content: Omit<CodeBlockContent, 'content'> & {
|
|
6704
6645
|
content: string;
|
|
@@ -6717,20 +6658,18 @@ declare const __VLS_export$12: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6717
6658
|
hide(): Promise<void>;
|
|
6718
6659
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6719
6660
|
close: () => any;
|
|
6720
|
-
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
|
|
6661
|
+
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any;
|
|
6721
6662
|
open: () => any;
|
|
6722
6663
|
"update:visible": (value: boolean) => any;
|
|
6723
6664
|
"update:width": (value: number) => any;
|
|
6724
6665
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
|
|
6725
6666
|
onClose?: (() => any) | undefined;
|
|
6726
|
-
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
|
|
6667
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
6727
6668
|
onOpen?: (() => any) | undefined;
|
|
6728
6669
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
6729
6670
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
6730
6671
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6731
6672
|
declare const _default: typeof __VLS_export$12;
|
|
6732
|
-
//#endregion
|
|
6733
|
-
//#region temp/packages/editor/src/components/CompareForm.vue.d.ts
|
|
6734
6673
|
type __VLS_Props$9 = CompareFormBaseProps & {
|
|
6735
6674
|
/** 用于对比的旧值(修改前的值) */
|
|
6736
6675
|
lastValue?: CompareFormBaseProps['value'];
|
|
@@ -6746,8 +6685,6 @@ declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6746
6685
|
category: string;
|
|
6747
6686
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6748
6687
|
declare const _default$5: typeof __VLS_export$11;
|
|
6749
|
-
//#endregion
|
|
6750
|
-
//#region temp/packages/editor/src/components/ViewForm.vue.d.ts
|
|
6751
6688
|
type __VLS_Props$8 = CompareFormBaseProps & {
|
|
6752
6689
|
/** 是否禁用表单(默认只读展示)。 */
|
|
6753
6690
|
disabled?: boolean;
|
|
@@ -6762,8 +6699,6 @@ declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6762
6699
|
category: string;
|
|
6763
6700
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6764
6701
|
declare const _default$39: typeof __VLS_export$10;
|
|
6765
|
-
//#endregion
|
|
6766
|
-
//#region temp/packages/editor/src/layouts/history-list/composables.d.ts
|
|
6767
6702
|
/**
|
|
6768
6703
|
* 通用 bucket 分组(数据源 / 代码块及业务自定义历史)在面板中的展示结构。
|
|
6769
6704
|
* 由 Bucket / BucketTab 复用,step 类型通过泛型 T 收窄(约束为 {@link BaseStepValue})。
|
|
@@ -6788,8 +6723,6 @@ interface HistoryBucketGroup<T extends BaseStepValue = BaseStepValue> {
|
|
|
6788
6723
|
* 用户点击「确定」返回 true,取消(confirm reject)时返回 false 并静默忽略。
|
|
6789
6724
|
*/
|
|
6790
6725
|
export declare const confirmHistoryAction: (message: string) => Promise<boolean>;
|
|
6791
|
-
//#endregion
|
|
6792
|
-
//#region temp/packages/editor/src/layouts/history-list/Bucket.vue.d.ts
|
|
6793
6726
|
declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6794
6727
|
props: import("vue").PublicProps & __VLS_PrettifyLocal$1<{
|
|
6795
6728
|
/**
|
|
@@ -6803,6 +6736,10 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6803
6736
|
groups: HistoryBucketGroup<T>[];
|
|
6804
6737
|
/** 共享的折叠状态表(key -> 是否展开,缺省或 true 为展开、false 为收起),由顶层 panel 统一维护以便跨 tab 复用。 */
|
|
6805
6738
|
expanded: Record<string, boolean>;
|
|
6739
|
+
/** 该 bucket 对应栈的初始基线(若有),与 PageTab 一致用于初始行的文案 / 时间。 */
|
|
6740
|
+
marker?: StepValue;
|
|
6741
|
+
/** 「回到初始」是否可达,由顶层 panel 按栈查询注入;缺省为可达。无基线的栈也能据此如实提示。 */
|
|
6742
|
+
initialReachable?: boolean;
|
|
6806
6743
|
} & {
|
|
6807
6744
|
onToggle?: ((_key: string) => any) | undefined;
|
|
6808
6745
|
onGoto?: ((_bucketId: string | number, _index: number) => any) | undefined;
|
|
@@ -6827,8 +6764,6 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6827
6764
|
};
|
|
6828
6765
|
declare const _default$22: typeof __VLS_export$9;
|
|
6829
6766
|
type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
6830
|
-
//#endregion
|
|
6831
|
-
//#region temp/packages/editor/src/layouts/history-list/BucketTab.vue.d.ts
|
|
6832
6767
|
declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6833
6768
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
6834
6769
|
/**
|
|
@@ -6850,6 +6785,14 @@ declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6850
6785
|
* 这样历史数据更新后已展开的分组状态仍能正确保持。
|
|
6851
6786
|
*/
|
|
6852
6787
|
expanded: Record<string, boolean>;
|
|
6788
|
+
/**
|
|
6789
|
+
* bucket id -> 对应栈的初始基线与「回到初始」可达性,由顶层 panel 基于 historyService 派生。
|
|
6790
|
+
* 缺省时按「有基线 / 可达」渲染,保持纯展示组件的可复用性。
|
|
6791
|
+
*/
|
|
6792
|
+
initialState?: Record<string | number, {
|
|
6793
|
+
marker?: StepValue;
|
|
6794
|
+
initialReachable: boolean;
|
|
6795
|
+
}>;
|
|
6853
6796
|
} & {
|
|
6854
6797
|
onClear?: (() => any) | undefined;
|
|
6855
6798
|
onToggle?: ((_key: string) => any) | undefined;
|
|
@@ -6876,8 +6819,6 @@ declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6876
6819
|
};
|
|
6877
6820
|
declare const _default$23: typeof __VLS_export$8;
|
|
6878
6821
|
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
6879
|
-
//#endregion
|
|
6880
|
-
//#region temp/packages/editor/src/layouts/history-list/HistoryDiffDialog.vue.d.ts
|
|
6881
6822
|
type __VLS_Props$7 = {
|
|
6882
6823
|
/** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
|
|
6883
6824
|
services?: Services;
|
|
@@ -6905,8 +6846,6 @@ declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
6905
6846
|
width: string;
|
|
6906
6847
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6907
6848
|
declare const _default$21: typeof __VLS_export$7;
|
|
6908
|
-
//#endregion
|
|
6909
|
-
//#region temp/packages/editor/src/layouts/history-list/useHistoryRevert.d.ts
|
|
6910
6849
|
/**
|
|
6911
6850
|
* 历史记录「单步回滚」与「查看差异」的完整交互流程,供历史面板与业务方共用。
|
|
6912
6851
|
*
|
|
@@ -6951,8 +6890,6 @@ export declare const useHistoryRevert: (options?: UseHistoryRevertOptions, servi
|
|
|
6951
6890
|
confirmAndRevert: <T = unknown>(revertOptions: ConfirmAndRevertOptions<T>) => Promise<T | null>;
|
|
6952
6891
|
viewDiff: (payload: DiffDialogPayload | null, extra?: CustomDiffFormOptions) => Promise<void> | void;
|
|
6953
6892
|
};
|
|
6954
|
-
//#endregion
|
|
6955
|
-
//#region temp/packages/editor/src/components/FloatingBox.vue.d.ts
|
|
6956
6893
|
interface Position {
|
|
6957
6894
|
left: number;
|
|
6958
6895
|
top: number;
|
|
@@ -7004,8 +6941,6 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
7004
6941
|
$slots: S;
|
|
7005
6942
|
};
|
|
7006
6943
|
};
|
|
7007
|
-
//#endregion
|
|
7008
|
-
//#region temp/packages/editor/src/components/Tree.vue.d.ts
|
|
7009
6944
|
type __VLS_Slots$1 = {
|
|
7010
6945
|
'tree-node-content'(_props: {
|
|
7011
6946
|
data: TreeNodeData;
|
|
@@ -7055,8 +6990,6 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
7055
6990
|
$slots: S;
|
|
7056
6991
|
};
|
|
7057
6992
|
};
|
|
7058
|
-
//#endregion
|
|
7059
|
-
//#region temp/packages/editor/src/components/TreeNode.vue.d.ts
|
|
7060
6993
|
type __VLS_Slots = {
|
|
7061
6994
|
'tree-node-label'(_props: {
|
|
7062
6995
|
data: TreeNodeData;
|
|
@@ -7107,8 +7040,6 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
7107
7040
|
$slots: S;
|
|
7108
7041
|
};
|
|
7109
7042
|
};
|
|
7110
|
-
//#endregion
|
|
7111
|
-
//#region temp/packages/editor/src/fields/PageFragmentSelect.vue.d.ts
|
|
7112
7043
|
type __VLS_Props$3 = FieldProps<PageFragmentSelectConfig>;
|
|
7113
7044
|
declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_Props$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
7114
7045
|
change: (...args: any[]) => void;
|
|
@@ -7118,19 +7049,15 @@ declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
7118
7049
|
disabled: boolean;
|
|
7119
7050
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7120
7051
|
declare const _default$29: typeof __VLS_export$3;
|
|
7121
|
-
//#endregion
|
|
7122
|
-
//#region temp/packages/editor/src/fields/DisplayConds.vue.d.ts
|
|
7123
7052
|
type __VLS_Props$2 = FieldProps<DisplayCondsConfig>;
|
|
7124
7053
|
declare const __VLS_export$2: import("@vue/runtime-core").DefineComponent<__VLS_Props$2, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
7125
|
-
change: (value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData | undefined) => any;
|
|
7054
|
+
change: (value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
7126
7055
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$2> & Readonly<{
|
|
7127
|
-
onChange?: ((value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
7056
|
+
onChange?: ((value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
7128
7057
|
}>, {
|
|
7129
7058
|
disabled: boolean;
|
|
7130
7059
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7131
7060
|
declare const _default$18: typeof __VLS_export$2;
|
|
7132
|
-
//#endregion
|
|
7133
|
-
//#region temp/packages/editor/src/fields/CondOpSelect.vue.d.ts
|
|
7134
7061
|
type __VLS_Props$1 = FieldProps<CondOpSelectConfig>;
|
|
7135
7062
|
declare const __VLS_export$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$1, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
7136
7063
|
change: (value: string) => any;
|
|
@@ -7138,19 +7065,15 @@ declare const __VLS_export$1: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
7138
7065
|
onChange?: ((value: string) => any) | undefined;
|
|
7139
7066
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7140
7067
|
declare const _default$7: typeof __VLS_export$1;
|
|
7141
|
-
//#endregion
|
|
7142
|
-
//#region temp/packages/editor/src/fields/StyleSetter/Index.vue.d.ts
|
|
7143
7068
|
type __VLS_Props = FieldProps<StyleSchema>;
|
|
7144
7069
|
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
7145
|
-
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
7070
|
+
change: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
7146
7071
|
addDiffCount: () => any;
|
|
7147
7072
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7148
|
-
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
7073
|
+
onChange?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
7149
7074
|
onAddDiffCount?: (() => any) | undefined;
|
|
7150
7075
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7151
7076
|
declare const _default$33: typeof __VLS_export;
|
|
7152
|
-
//#endregion
|
|
7153
|
-
//#region temp/packages/editor/src/fields/headless-validation.d.ts
|
|
7154
7077
|
/**
|
|
7155
7078
|
* 编辑器字段的无渲染登记表(不含 Vue 组件)。
|
|
7156
7079
|
*
|
|
@@ -7165,10 +7088,7 @@ declare const _default$33: typeof __VLS_export;
|
|
|
7165
7088
|
* 且配置本身与组件共用同一份工厂(`fields/configs/`)。
|
|
7166
7089
|
*/
|
|
7167
7090
|
export declare const editorFields: Record<string, HeadlessFieldOptions>;
|
|
7168
|
-
//#endregion
|
|
7169
|
-
//#region temp/packages/editor/src/plugin.d.ts
|
|
7170
7091
|
declare const _default$40: {
|
|
7171
7092
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
7172
7093
|
};
|
|
7173
|
-
//#endregion
|
|
7174
7094
|
export { _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, _default$3 as CodeSelect, _default$4 as CodeSelectCol, _default$5 as CompareForm, _default$6 as ComponentListPanel, _default$7 as CondOpSelect, _default$8 as ContentMenu, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DepTargetType, _default$18 as DisplayConds, _default$19 as EventSelect, _default$20 as FloatingBox, _default$21 as HistoryDiffDialog, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, _default$24 as Icon, _default$25 as KeyValue, _default$26 as LayerNodeContent, _default$27 as LayerPanel, _default$28 as LayoutContainer, _default$28 as SplitView, type OnDrag, _default$29 as PageFragmentSelect, _default$30 as PropsFormPanel, _default$31 as PropsPanel, _default$32 as Resizer, StageCore, _default$33 as StyleSetter, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, type TypeMatchValidateContext, _default$39 as ViewForm, _default$40 as default, designPlugin, formPlugin, getEditorConfig, isGlobalFlat, _default$41 as keybindingService, _default$42 as loadMonaco, setEditorConfig, _default$43 as stageOverlayService, tablePlugin, _default$44 as uiService };
|