@tmagic/editor 1.8.4 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +138 -39
- package/dist/es/fields/StyleSetter/icons/align-items/Baseline.vue.js +45 -0
- package/dist/es/fields/StyleSetter/icons/align-items/End.vue.js +42 -0
- package/dist/es/fields/StyleSetter/icons/align-items/Normal.vue.js +33 -0
- package/dist/es/fields/StyleSetter/icons/align-items/Start.vue.js +42 -0
- package/dist/es/fields/StyleSetter/icons/align-items/Stretch.vue.js +37 -0
- package/dist/es/fields/StyleSetter/icons/background-repeat/Round.vue.js +45 -0
- package/dist/es/fields/StyleSetter/icons/background-repeat/Space.vue.js +16 -0
- package/dist/es/fields/StyleSetter/icons/display/Grid.vue.js +13 -0
- package/dist/es/fields/StyleSetter/icons/display/InlineFlex.vue.js +13 -0
- package/dist/es/fields/StyleSetter/icons/display/InlineGrid.vue.js +13 -0
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceEvenly.vue.js +16 -0
- package/dist/es/fields/StyleSetter/icons/text-align/End.vue.js +13 -0
- package/dist/es/fields/StyleSetter/icons/text-align/Justify.vue.js +13 -0
- package/dist/es/fields/StyleSetter/icons/text-align/MatchParent.vue.js +13 -0
- package/dist/es/fields/StyleSetter/icons/text-align/Start.vue.js +13 -0
- 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} +3 -3
- 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} +2 -2
- 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} +6 -6
- package/dist/es/layouts/history-list/{HistoryListPanel.js → HistoryListPanel2.vue.js} +1 -1
- 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} +4 -4
- 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 +60 -58
- package/dist/es/sdk/services/Events.js +2 -2
- package/dist/es/sdk/services/History.js +1 -1
- 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 +2 -2
- 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/tmagic-editor-headless.umd.cjs +606 -175
- package/dist/tmagic-editor-sdk.umd.cjs +41 -38
- package/dist/tmagic-editor.umd.cjs +1200 -421
- 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/fields/StyleSetter/configs.ts +63 -14
- package/src/fields/StyleSetter/icons/align-items/Baseline.vue +8 -0
- package/src/fields/StyleSetter/icons/align-items/End.vue +8 -0
- package/src/fields/StyleSetter/icons/align-items/Normal.vue +6 -0
- package/src/fields/StyleSetter/icons/align-items/Start.vue +8 -0
- package/src/fields/StyleSetter/icons/align-items/Stretch.vue +7 -0
- package/src/fields/StyleSetter/icons/align-items/index.ts +5 -0
- package/src/fields/StyleSetter/icons/background-repeat/Round.vue +8 -0
- package/src/fields/StyleSetter/icons/background-repeat/Space.vue +9 -0
- package/src/fields/StyleSetter/icons/background-repeat/index.ts +2 -0
- package/src/fields/StyleSetter/icons/display/Grid.vue +7 -0
- package/src/fields/StyleSetter/icons/display/InlineFlex.vue +7 -0
- package/src/fields/StyleSetter/icons/display/InlineGrid.vue +7 -0
- package/src/fields/StyleSetter/icons/display/index.ts +3 -0
- package/src/fields/StyleSetter/icons/justify-content/SpaceEvenly.vue +11 -0
- package/src/fields/StyleSetter/icons/justify-content/index.ts +1 -0
- package/src/fields/StyleSetter/icons/text-align/End.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/Justify.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/MatchParent.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/Start.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/index.ts +4 -0
- package/src/hooks/use-stage.ts +26 -1
- package/src/layouts/NavMenuColumn.vue +8 -1
- package/src/layouts/workspace/viewer/Stage.vue +77 -57
- package/src/sdk/services/Editor.ts +6 -4
- package/src/type.ts +2 -0
- package/src/utils/data-source/index.ts +151 -6
- package/src/utils/editor.ts +4 -0
- package/src/utils/page.ts +32 -0
- package/types/headless.d.ts +14 -3
- package/types/index.d.ts +137 -298
- package/types/sdk.d.ts +3 -43
- 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/{Center.js → Center.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/{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/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/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/{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/{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/text-align/{Center.js → Center.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/{Right.js → Right.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/history-list/{InitialRow.vue_vue_type_script_setup_true_lang.js → InitialRow.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
|
* 更新节点
|
|
@@ -705,8 +694,6 @@ declare class Editor extends BaseService {
|
|
|
705
694
|
private toRaw;
|
|
706
695
|
}
|
|
707
696
|
type EditorService = Editor;
|
|
708
|
-
//#endregion
|
|
709
|
-
//#region temp/packages/editor/src/sdk/services/Events.d.ts
|
|
710
697
|
declare const canUsePluginMethods$7: {
|
|
711
698
|
async: readonly [];
|
|
712
699
|
sync: readonly ["setEvent", "getEvent", "setMethod", "getMethod"];
|
|
@@ -733,8 +720,6 @@ declare class Events extends BaseService {
|
|
|
733
720
|
usePlugin(options: AsyncHookPlugin<AsyncMethodName$4, Events> & SyncHookPlugin<SyncMethodName$4, Events>): void;
|
|
734
721
|
}
|
|
735
722
|
type EventsService = Events;
|
|
736
|
-
//#endregion
|
|
737
|
-
//#region temp/packages/editor/src/sdk/services/History.d.ts
|
|
738
723
|
declare const canUsePluginMethods$6: {
|
|
739
724
|
sync: readonly ["push", "undo", "redo"];
|
|
740
725
|
};
|
|
@@ -1000,8 +985,6 @@ declare class History extends BaseService {
|
|
|
1000
985
|
private resolveDbName;
|
|
1001
986
|
}
|
|
1002
987
|
type HistoryService = History;
|
|
1003
|
-
//#endregion
|
|
1004
|
-
//#region temp/packages/editor/src/sdk/services/Props.d.ts
|
|
1005
988
|
declare const canUsePluginMethods$5: {
|
|
1006
989
|
async: readonly ["setPropsConfig", "getPropsConfig", "setPropsValue", "getPropsValue", "fillConfig", "getDefaultPropsValue"];
|
|
1007
990
|
sync: readonly ["createId", "setNewItemId"];
|
|
@@ -1098,9 +1081,7 @@ declare class Props extends BaseService {
|
|
|
1098
1081
|
private setRelateId;
|
|
1099
1082
|
}
|
|
1100
1083
|
type PropsService = Props;
|
|
1101
|
-
|
|
1102
|
-
//#region temp/packages/editor/src/sdk/services/WebStorage.d.ts
|
|
1103
|
-
interface Options$1 {
|
|
1084
|
+
interface Options {
|
|
1104
1085
|
namespace?: string;
|
|
1105
1086
|
protocol?: Protocol;
|
|
1106
1087
|
}
|
|
@@ -1143,7 +1124,7 @@ declare class WebStorage extends BaseService {
|
|
|
1143
1124
|
/**
|
|
1144
1125
|
* 获取存储项,支持storageService.usePlugin
|
|
1145
1126
|
*/
|
|
1146
|
-
getItem(key: string, options?: Options
|
|
1127
|
+
getItem(key: string, options?: Options): any;
|
|
1147
1128
|
/**
|
|
1148
1129
|
* 获取指定索引位置的key
|
|
1149
1130
|
*/
|
|
@@ -1151,18 +1132,16 @@ declare class WebStorage extends BaseService {
|
|
|
1151
1132
|
/**
|
|
1152
1133
|
* 移除存储项,支持storageService.usePlugin
|
|
1153
1134
|
*/
|
|
1154
|
-
removeItem(key: string, options?: Options
|
|
1135
|
+
removeItem(key: string, options?: Options): void;
|
|
1155
1136
|
/**
|
|
1156
1137
|
* 设置存储项,支持storageService.usePlugin
|
|
1157
1138
|
*/
|
|
1158
|
-
setItem(key: string, value: any, options?: Options
|
|
1139
|
+
setItem(key: string, value: any, options?: Options): void;
|
|
1159
1140
|
destroy(): void;
|
|
1160
1141
|
usePlugin(options: SyncHookPlugin<SyncMethodName$1, WebStorage>): void;
|
|
1161
1142
|
private getValueAndProtocol;
|
|
1162
1143
|
}
|
|
1163
1144
|
type StorageService = WebStorage;
|
|
1164
|
-
//#endregion
|
|
1165
|
-
//#region temp/packages/editor/src/sdk/validate/index.d.ts
|
|
1166
1145
|
/**
|
|
1167
1146
|
* `record` 模式下,校验结果要等到修改落进 DSL 之后再写入 `invalidNodeIds`(修改过程中会先清掉旧记录),
|
|
1168
1147
|
* 因此 guard 返回一个提交函数交给调用方在合适的时机调用;`strict` 抛错,`off` 返回空。
|
|
@@ -1195,8 +1174,6 @@ interface Validator {
|
|
|
1195
1174
|
guardMove(sourceIds: Id[], target: MContainer, scene: CanDropInScene): Promise<void>;
|
|
1196
1175
|
guardDataSource(config: DataSourceSchema, isNew: boolean): void;
|
|
1197
1176
|
}
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region temp/packages/editor/src/sdk/type.d.ts
|
|
1200
1177
|
/**
|
|
1201
1178
|
* 响应式实现,默认直接使用 Vue 的 `reactive` / `shallowReactive` / `toRaw` / `nextTick`;
|
|
1202
1179
|
* 可通过 `SdkOptions.reactivity` 覆盖。
|
|
@@ -1318,8 +1295,6 @@ interface SdkContext {
|
|
|
1318
1295
|
ready: Promise<void>;
|
|
1319
1296
|
parseDSL: (code: string) => any;
|
|
1320
1297
|
}
|
|
1321
|
-
//#endregion
|
|
1322
|
-
//#region temp/packages/editor/src/sdk/services/CodeBlock.d.ts
|
|
1323
1298
|
declare const canUsePluginMethods$3: {
|
|
1324
1299
|
async: readonly ["setCodeDslById", "setEditStatus", "setCombineIds", "setUndeleteableList", "deleteCodeDslByIds"];
|
|
1325
1300
|
sync: string[];
|
|
@@ -1547,8 +1522,6 @@ declare class CodeBlock extends BaseService {
|
|
|
1547
1522
|
private applyHistoryStep;
|
|
1548
1523
|
}
|
|
1549
1524
|
type CodeBlockService = CodeBlock;
|
|
1550
|
-
//#endregion
|
|
1551
|
-
//#region temp/packages/editor/src/services/keybinding.d.ts
|
|
1552
1525
|
declare class Keybinding extends BaseService {
|
|
1553
1526
|
ctrlKey: string;
|
|
1554
1527
|
private controllers;
|
|
@@ -1586,8 +1559,6 @@ declare class Keybinding extends BaseService {
|
|
|
1586
1559
|
}
|
|
1587
1560
|
type KeybindingService = Keybinding;
|
|
1588
1561
|
declare const _default$41: Keybinding;
|
|
1589
|
-
//#endregion
|
|
1590
|
-
//#region temp/packages/editor/src/services/stageOverlay.d.ts
|
|
1591
1562
|
declare const canUsePluginMethods$2: {
|
|
1592
1563
|
async: never[];
|
|
1593
1564
|
sync: readonly ["openOverlay", "closeOverlay", "updateOverlay", "createStage"];
|
|
@@ -1613,8 +1584,6 @@ declare class StageOverlay extends BaseService {
|
|
|
1613
1584
|
}
|
|
1614
1585
|
type StageOverlayService = StageOverlay;
|
|
1615
1586
|
declare const _default$43: StageOverlay;
|
|
1616
|
-
//#endregion
|
|
1617
|
-
//#region temp/packages/editor/src/services/ui.d.ts
|
|
1618
1587
|
declare const canUsePluginMethods$1: {
|
|
1619
1588
|
async: readonly ["zoom", "calcZoom"];
|
|
1620
1589
|
sync: readonly [];
|
|
@@ -1633,8 +1602,6 @@ declare class Ui extends BaseService {
|
|
|
1633
1602
|
}
|
|
1634
1603
|
type UiService = Ui;
|
|
1635
1604
|
declare const _default$44: Ui;
|
|
1636
|
-
//#endregion
|
|
1637
|
-
//#region temp/packages/editor/src/utils/undo-redo.d.ts
|
|
1638
1605
|
/**
|
|
1639
1606
|
* UndoRedo 栈的可序列化快照,用于持久化(如写入 IndexedDB)后再还原。
|
|
1640
1607
|
*/
|
|
@@ -1702,8 +1669,6 @@ export declare class UndoRedo<T = any> {
|
|
|
1702
1669
|
/** 栈内总步数。 */
|
|
1703
1670
|
getLength(): number;
|
|
1704
1671
|
}
|
|
1705
|
-
//#endregion
|
|
1706
|
-
//#region temp/packages/editor/src/type.d.ts
|
|
1707
1672
|
export type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
1708
1673
|
workspace(props: {
|
|
1709
1674
|
editorService: EditorService;
|
|
@@ -2394,7 +2359,7 @@ export interface StepDiffItem<T = unknown> {
|
|
|
2394
2359
|
* form 端 propPath/value 变更列表,仅 `opType` 为 `update` 时有;
|
|
2395
2360
|
* 撤销/重做时若有则按 propPath 局部更新,缺省才退化为整内容替换。
|
|
2396
2361
|
*/
|
|
2397
|
-
changeRecords?: ChangeRecord[];
|
|
2362
|
+
changeRecords?: ChangeRecord$1[];
|
|
2398
2363
|
}
|
|
2399
2364
|
/**
|
|
2400
2365
|
* 历史记录条目公共字段,被 {@link StepValue} / {@link CodeBlockStepValue} / {@link DataSourceStepValue} 复用。
|
|
@@ -2748,7 +2713,7 @@ export type PropsFormConfigFunction = (data: {
|
|
|
2748
2713
|
export type PropsFormValueFunction = (data: {
|
|
2749
2714
|
editorService: EditorService;
|
|
2750
2715
|
}) => Partial<MNode>;
|
|
2751
|
-
export type PartSortableOptions = Omit<Options, 'onStart' | 'onUpdate'>;
|
|
2716
|
+
export type PartSortableOptions = Omit<Options$1, 'onStart' | 'onUpdate'>;
|
|
2752
2717
|
export interface PageBarSortOptions extends PartSortableOptions {
|
|
2753
2718
|
/** 在onUpdate之后调用 */
|
|
2754
2719
|
afterUpdate?: (event: SortableEvent, sortable: Sortable) => void | Promise<void>;
|
|
@@ -2779,7 +2744,7 @@ export interface EditorEvents {
|
|
|
2779
2744
|
update: [nodes: {
|
|
2780
2745
|
newNode: MNode;
|
|
2781
2746
|
oldNode: MNode;
|
|
2782
|
-
changeRecords?: ChangeRecord[];
|
|
2747
|
+
changeRecords?: ChangeRecord$1[];
|
|
2783
2748
|
}[]];
|
|
2784
2749
|
'move-layer': [offset: number | LayerOffset];
|
|
2785
2750
|
'drag-to': [data: {
|
|
@@ -2808,7 +2773,7 @@ export interface EditorUpdateChangeItem {
|
|
|
2808
2773
|
node: {
|
|
2809
2774
|
newNode: MNode;
|
|
2810
2775
|
oldNode: MNode;
|
|
2811
|
-
changeRecords?: ChangeRecord[];
|
|
2776
|
+
changeRecords?: ChangeRecord$1[];
|
|
2812
2777
|
};
|
|
2813
2778
|
page: StoreState['page'];
|
|
2814
2779
|
}
|
|
@@ -2900,7 +2865,7 @@ export interface HistoryOpOptions {
|
|
|
2900
2865
|
* 用于历史记录的精细化撤销/重做(按 propPath 局部 patch)。
|
|
2901
2866
|
*/
|
|
2902
2867
|
export interface HistoryOpOptionsWithChangeRecords extends HistoryOpOptions {
|
|
2903
|
-
changeRecords?: ChangeRecord[];
|
|
2868
|
+
changeRecords?: ChangeRecord$1[];
|
|
2904
2869
|
}
|
|
2905
2870
|
/**
|
|
2906
2871
|
* DSL 修改类操作的通用配置
|
|
@@ -2917,9 +2882,11 @@ export interface DslOpOptions extends HistoryOpOptions {
|
|
|
2917
2882
|
* 指定后不再按当前选中节点与上一次新增节点计算锚点,也不要求有选中节点;越界 / 非数字一律追加到末尾。
|
|
2918
2883
|
* 批量 add 时数字下标是本批节点的起始位置,按父容器分别累计偏移,保持传入顺序;'end' 逐个追加。
|
|
2919
2884
|
* 页面 / 页面片作用于 root.items,同样不再固定追加到末尾。人工添加不传,沿用锚点行为。
|
|
2885
|
+
* - doNotFixPosition: 跳过按画布尺寸修正节点位置(left / top),程序化 add 传入的设计坐标原样保留。
|
|
2920
2886
|
*/
|
|
2921
2887
|
export interface AddOpOptions extends DslOpOptions {
|
|
2922
2888
|
insertIndex?: number | 'end';
|
|
2889
|
+
doNotFixPosition?: boolean;
|
|
2923
2890
|
}
|
|
2924
2891
|
/**
|
|
2925
2892
|
* {@link EditorService.update} / {@link EditorService.doUpdate} 的额外数据
|
|
@@ -2929,7 +2896,7 @@ export interface AddOpOptions extends DslOpOptions {
|
|
|
2929
2896
|
* - invalidInfo: 属性面板提交时携带的校验错误信息,在写入历史记录之前落库
|
|
2930
2897
|
*/
|
|
2931
2898
|
export interface UpdateOptions extends HistoryOpOptionsWithChangeRecords {
|
|
2932
|
-
changeRecordList?: ChangeRecord[][];
|
|
2899
|
+
changeRecordList?: ChangeRecord$1[][];
|
|
2933
2900
|
/**
|
|
2934
2901
|
* 为 true 时不做深合并等变换,直接用传入配置整节点替换现有节点。
|
|
2935
2902
|
* 适用于源码编辑、历史整节点快照回放等「完整 DSL」场景;默认 false(局部属性更新走 merge)。
|
|
@@ -3060,8 +3027,6 @@ export interface ConfirmAndRevertOptions<T = unknown> extends CustomDiffFormOpti
|
|
|
3060
3027
|
/** 用户确认后执行的实际回滚逻辑。 */
|
|
3061
3028
|
revert: () => T | Promise<T>;
|
|
3062
3029
|
}
|
|
3063
|
-
//#endregion
|
|
3064
|
-
//#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
|
|
3065
3030
|
export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
|
|
3066
3031
|
codeId: import("@vue/reactivity").Ref<string | undefined, string | undefined>;
|
|
3067
3032
|
codeConfig: import("@vue/reactivity").Ref<(Omit<CodeBlockContent, "content"> & {
|
|
@@ -3081,7 +3046,7 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3081
3046
|
visible?: boolean;
|
|
3082
3047
|
}> & Readonly<{
|
|
3083
3048
|
onClose?: (() => any) | undefined;
|
|
3084
|
-
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
|
|
3049
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
3085
3050
|
onOpen?: (() => any) | undefined;
|
|
3086
3051
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3087
3052
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
@@ -3090,7 +3055,7 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3090
3055
|
hide(): Promise<void>;
|
|
3091
3056
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3092
3057
|
close: () => any;
|
|
3093
|
-
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
|
|
3058
|
+
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any;
|
|
3094
3059
|
open: () => any;
|
|
3095
3060
|
"update:visible": (value: boolean) => any;
|
|
3096
3061
|
"update:width": (value: number) => any;
|
|
@@ -3113,7 +3078,7 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3113
3078
|
visible?: boolean;
|
|
3114
3079
|
}> & Readonly<{
|
|
3115
3080
|
onClose?: (() => any) | undefined;
|
|
3116
|
-
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
|
|
3081
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
3117
3082
|
onOpen?: (() => any) | undefined;
|
|
3118
3083
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3119
3084
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
@@ -3126,10 +3091,8 @@ export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockSer
|
|
|
3126
3091
|
deleteCode: (key: string, { historySource }?: {
|
|
3127
3092
|
historySource?: HistoryOpSource;
|
|
3128
3093
|
}) => Promise<void>;
|
|
3129
|
-
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
|
|
3094
|
+
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData$1) => Promise<void>;
|
|
3130
3095
|
};
|
|
3131
|
-
//#endregion
|
|
3132
|
-
//#region temp/packages/editor/src/hooks/use-compare-form.d.ts
|
|
3133
3096
|
export interface UseCompareFormReturn {
|
|
3134
3097
|
config: Ref<FormConfig>;
|
|
3135
3098
|
currentValues: ComputedRef<FormValue>;
|
|
@@ -3149,11 +3112,7 @@ export interface UseCompareFormReturn {
|
|
|
3149
3112
|
* 两个组件的差异仅在于是否做新旧值对比,这部分逻辑保留在各自组件中。
|
|
3150
3113
|
*/
|
|
3151
3114
|
export declare const useCompareForm: (props: CompareFormBaseProps) => UseCompareFormReturn;
|
|
3152
|
-
//#endregion
|
|
3153
|
-
//#region temp/packages/editor/src/hooks/use-stage.d.ts
|
|
3154
3115
|
export declare const useStage: (stageOptions: StageOptions) => StageCore$1;
|
|
3155
|
-
//#endregion
|
|
3156
|
-
//#region temp/packages/editor/src/hooks/use-float-box.d.ts
|
|
3157
3116
|
interface State {
|
|
3158
3117
|
status: boolean;
|
|
3159
3118
|
top: number;
|
|
@@ -3169,32 +3128,22 @@ export declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
|
|
|
3169
3128
|
}>;
|
|
3170
3129
|
showingBoxKeys: ComputedRef<string[]>;
|
|
3171
3130
|
};
|
|
3172
|
-
//#endregion
|
|
3173
|
-
//#region temp/packages/editor/src/hooks/use-window-rect.d.ts
|
|
3174
3131
|
export declare const useWindowRect: () => {
|
|
3175
3132
|
rect: {
|
|
3176
3133
|
width: number;
|
|
3177
3134
|
height: number;
|
|
3178
3135
|
};
|
|
3179
3136
|
};
|
|
3180
|
-
//#endregion
|
|
3181
|
-
//#region temp/packages/editor/src/hooks/use-editor-content-height.d.ts
|
|
3182
3137
|
export declare const useEditorContentHeight: () => {
|
|
3183
3138
|
height: import("@vue/reactivity").Ref<number, number>;
|
|
3184
3139
|
};
|
|
3185
|
-
//#endregion
|
|
3186
|
-
//#region temp/packages/editor/src/hooks/use-filter.d.ts
|
|
3187
3140
|
export declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
|
|
3188
3141
|
filterText: Ref<string, string>;
|
|
3189
3142
|
filterTextChangeHandler(text: string | string[]): void;
|
|
3190
3143
|
};
|
|
3191
|
-
//#endregion
|
|
3192
|
-
//#region temp/packages/editor/src/hooks/use-getso.d.ts
|
|
3193
3144
|
export declare const useGetSo: (target: ShallowRef<HTMLElement | null>, emit: (evt: "change", e: OnDrag$1<Gesto>) => void) => {
|
|
3194
3145
|
isDragging: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
3195
3146
|
};
|
|
3196
|
-
//#endregion
|
|
3197
|
-
//#region temp/packages/editor/src/hooks/use-next-float-box-position.d.ts
|
|
3198
3147
|
export declare const useNextFloatBoxPosition: (uiService: Services["uiService"], parent?: Ref<HTMLDivElement | null>) => {
|
|
3199
3148
|
boxPosition: Ref<{
|
|
3200
3149
|
left: number;
|
|
@@ -3208,8 +3157,6 @@ export declare const useNextFloatBoxPosition: (uiService: Services["uiService"],
|
|
|
3208
3157
|
}>;
|
|
3209
3158
|
calcBoxPosition: () => void;
|
|
3210
3159
|
};
|
|
3211
|
-
//#endregion
|
|
3212
|
-
//#region temp/packages/editor/src/hooks/use-node-status.d.ts
|
|
3213
3160
|
export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
3214
3161
|
nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
|
|
3215
3162
|
visible: boolean;
|
|
@@ -3223,16 +3170,10 @@ export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
|
3223
3170
|
draggable: boolean;
|
|
3224
3171
|
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
3225
3172
|
};
|
|
3226
|
-
//#endregion
|
|
3227
|
-
//#region temp/packages/editor/src/hooks/use-services.d.ts
|
|
3228
3173
|
export declare const useServices: () => Services;
|
|
3229
|
-
//#endregion
|
|
3230
|
-
//#region temp/packages/editor/src/utils/config.d.ts
|
|
3231
3174
|
declare const isGlobalFlat: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
3232
3175
|
declare const setEditorConfig: (option: EditorInstallOptions) => void;
|
|
3233
3176
|
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
3177
|
export declare const arrayOptions: {
|
|
3237
3178
|
text: string;
|
|
3238
3179
|
value: string;
|
|
@@ -3272,15 +3213,11 @@ export interface FillConfigOptions {
|
|
|
3272
3213
|
/** 复制结果提示 */
|
|
3273
3214
|
notify?: (type: 'success' | 'error', message: string) => void;
|
|
3274
3215
|
}
|
|
3275
|
-
//#endregion
|
|
3276
|
-
//#region temp/packages/editor/src/utils/props.d.ts
|
|
3277
3216
|
/** 浏览器端默认用 `navigator.clipboard` 复制,并用 `tMagicMessage` 提示 */
|
|
3278
3217
|
export declare const copyTextToClipboard: (text: string) => Promise<void>;
|
|
3279
3218
|
export declare const notifyByDesign: (type: "success" | "error" | "warning" | "info", message: string) => void;
|
|
3280
3219
|
/** 与 SDK 的 `fillConfig` 一致,区别是默认接入浏览器的剪贴板与消息提示 */
|
|
3281
3220
|
export declare const fillConfig: (config?: FormConfig, options?: FillConfigOptions) => FormConfig;
|
|
3282
|
-
//#endregion
|
|
3283
|
-
//#region temp/packages/editor/src/utils/code-block.d.ts
|
|
3284
3221
|
/**
|
|
3285
3222
|
* 代码块编辑表单配置的统一入口。
|
|
3286
3223
|
*
|
|
@@ -3322,15 +3259,11 @@ export interface GetCodeBlockFormConfigOptions {
|
|
|
3322
3259
|
* 如需响应式的 props 变化(如切换 dataSourceType),调用方在 `computed` 中再次调用本函数即可。
|
|
3323
3260
|
*/
|
|
3324
3261
|
export declare const getCodeBlockFormConfig: (options?: GetCodeBlockFormConfigOptions) => FormConfig;
|
|
3325
|
-
//#endregion
|
|
3326
|
-
//#region temp/packages/editor/src/utils/logger.d.ts
|
|
3327
3262
|
export declare const log: (...args: any[]) => void;
|
|
3328
3263
|
export declare const info: (...args: any[]) => void;
|
|
3329
3264
|
export declare const warn: (...args: any[]) => void;
|
|
3330
3265
|
export declare const debug: (...args: any[]) => void;
|
|
3331
3266
|
export declare const error: (...args: any[]) => void;
|
|
3332
|
-
//#endregion
|
|
3333
|
-
//#region temp/packages/editor/src/utils/editor.d.ts
|
|
3334
3267
|
export declare const COPY_STORAGE_KEY = "$MagicEditorCopyData";
|
|
3335
3268
|
export declare const COPY_CODE_STORAGE_KEY = "$MagicEditorCopyCode";
|
|
3336
3269
|
export declare const COPY_DS_STORAGE_KEY = "$MagicEditorCopyDataSource";
|
|
@@ -3461,8 +3394,6 @@ export declare const classifyDragSources: (configs: MNode[], targetParent: MCont
|
|
|
3461
3394
|
* 与 UI 层 `describePageStep` 同义,但避免 service 反向依赖 layouts/,故放在此工具函数中。
|
|
3462
3395
|
*/
|
|
3463
3396
|
export declare const describeStepForRevert: (step: StepValue) => string;
|
|
3464
|
-
//#endregion
|
|
3465
|
-
//#region temp/packages/editor/src/utils/operator.d.ts
|
|
3466
3397
|
/**
|
|
3467
3398
|
* 粘贴前置操作:返回分配了新id以及校准了坐标的配置
|
|
3468
3399
|
* @param position 粘贴的坐标
|
|
@@ -3482,15 +3413,36 @@ export declare const getPositionInContainer: (position: PastePosition | undefine
|
|
|
3482
3413
|
};
|
|
3483
3414
|
export declare const getAddParent: (node: MNode) => MContainer | null | undefined;
|
|
3484
3415
|
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
3416
|
export declare const getFormConfig: (type: string, configs: Record<string, FormConfig>) => FormConfig;
|
|
3488
3417
|
export declare const getFormValue: (type: string, values: Partial<DataSourceSchema>) => Partial<DataSourceSchema>;
|
|
3489
3418
|
export declare const getDisplayField: (dataSources: DataSourceSchema[], key: string) => {
|
|
3490
3419
|
value: string;
|
|
3491
3420
|
type: "var" | "text";
|
|
3492
3421
|
}[];
|
|
3493
|
-
|
|
3422
|
+
interface FieldCascaderOption extends CascaderOption {
|
|
3423
|
+
children?: FieldCascaderOption[];
|
|
3424
|
+
/** 字段类型。数组节点才需要继续补下标 */
|
|
3425
|
+
fieldType?: DataSourceFieldType;
|
|
3426
|
+
/** 数组下标节点,不是 schema 里的字段 */
|
|
3427
|
+
arrayIndex?: boolean;
|
|
3428
|
+
}
|
|
3429
|
+
/** 编辑器里这份数据源当前用于展示的数据:优先 useInEditor 的 mock,否则用字段默认值 */
|
|
3430
|
+
export declare const getDataSourceEditorData: (ds: Pick<DataSourceSchema, "fields" | "mocks">) => Record<string, any>;
|
|
3431
|
+
/**
|
|
3432
|
+
* 已选路径对不上选项时补节点,否则级联框输入框是空的。
|
|
3433
|
+
* 数组字段后面缺的下标会补上;只展示下标时,已保存的元素字段路径(`array.xxx`)也会补回。
|
|
3434
|
+
* 对象上的数字字段名仍然按字段处理。
|
|
3435
|
+
*/
|
|
3436
|
+
export declare const ensureSelectedArrayIndices: (options: FieldCascaderOption[], fieldPath: Array<string | number>) => void;
|
|
3437
|
+
export interface CascaderFieldsContext {
|
|
3438
|
+
/**
|
|
3439
|
+
* 是否把数组元素字段直接列在数组下面(`array.xxx`)。
|
|
3440
|
+
* 迭代器子组件里为 true,同时保留下标(`array[0].xxx` / `array.0.xxx`)。
|
|
3441
|
+
* 为 false 时只保留下标。不传则保留元素字段,供事件选择等其它调用方使用。
|
|
3442
|
+
*/
|
|
3443
|
+
directArrayElements?: boolean;
|
|
3444
|
+
}
|
|
3445
|
+
export declare const getCascaderOptionsFromFields: (fields?: DataSchema[], dataSourceFieldType?: DataSourceFieldType[], data?: Record<string, any>, context?: CascaderFieldsContext) => FieldCascaderOption[];
|
|
3494
3446
|
/**
|
|
3495
3447
|
* 按字段名路径下钻 DataSchema。
|
|
3496
3448
|
* @param skipNumberIndices 为 true 时跳过数字段(模板路径中的数组下标,如 arr[0].x)
|
|
@@ -3512,8 +3464,6 @@ export declare const resolveFieldByPath: (fields: DataSchema[] | undefined, fiel
|
|
|
3512
3464
|
untypedArrayElement?: boolean;
|
|
3513
3465
|
};
|
|
3514
3466
|
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
3467
|
export interface IdleTaskEvents {
|
|
3518
3468
|
finish: [];
|
|
3519
3469
|
'hight-level-finish': [];
|
|
@@ -3545,8 +3495,6 @@ export declare class IdleTask<T = any> extends EventEmitter {
|
|
|
3545
3495
|
private finishRun;
|
|
3546
3496
|
private getTaskLength;
|
|
3547
3497
|
}
|
|
3548
|
-
//#endregion
|
|
3549
|
-
//#region temp/packages/editor/src/utils/scroll-viewer.d.ts
|
|
3550
3498
|
interface ScrollViewerOptions {
|
|
3551
3499
|
container: HTMLDivElement;
|
|
3552
3500
|
target: HTMLDivElement;
|
|
@@ -3582,13 +3530,9 @@ export declare class ScrollViewer extends EventEmitter {
|
|
|
3582
3530
|
private setScrollSize;
|
|
3583
3531
|
private setSize;
|
|
3584
3532
|
}
|
|
3585
|
-
//#endregion
|
|
3586
|
-
//#region temp/packages/editor/src/utils/tree.d.ts
|
|
3587
3533
|
export declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus>, id: Id, status: Partial<LayerNodeStatus>) => void;
|
|
3588
3534
|
/** 默认的组件树节点是否可展开的判断函数:当节点的子项中至少存在一个可见节点时认为可展开 */
|
|
3589
3535
|
export declare const defaultIsExpandable: IsExpandableFunction;
|
|
3590
|
-
//#endregion
|
|
3591
|
-
//#region temp/packages/editor/src/utils/indexed-db.d.ts
|
|
3592
3536
|
/**
|
|
3593
3537
|
* 一组极简的、基于原生 IndexedDB 的 Promise KV 工具,避免引入额外依赖。
|
|
3594
3538
|
* 仅用于浏览器环境;在不支持 IndexedDB 的环境(如 SSR / 部分测试环境)下会 reject。
|
|
@@ -3608,8 +3552,6 @@ export declare const idbSet: (dbName: string, storeName: string, key: IDBValidKe
|
|
|
3608
3552
|
export declare const idbGet: <T = unknown>(dbName: string, storeName: string, key: IDBValidKey) => Promise<T | undefined>;
|
|
3609
3553
|
/** 删除一条记录。 */
|
|
3610
3554
|
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
3555
|
/**
|
|
3614
3556
|
* 「回滚」生成的新 step 简短描述。代码块 / 数据源共用。
|
|
3615
3557
|
* 二者逻辑一致,仅展示名取值字段不同(代码块取 `name`,数据源取 `title`),
|
|
@@ -3635,7 +3577,7 @@ export declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "a
|
|
|
3635
3577
|
export declare const createStackStep: <T, S extends BaseStepValue<T>>(id: Id, payload: Omit<BaseStepValue<T>, "uuid" | "data" | "opType" | "diff" | "timestamp" | "saved"> & {
|
|
3636
3578
|
oldValue: T | null;
|
|
3637
3579
|
newValue: T | null;
|
|
3638
|
-
changeRecords?: ChangeRecord[];
|
|
3580
|
+
changeRecords?: ChangeRecord$1[];
|
|
3639
3581
|
/** 展示名(缺省时从快照 name / title 推断)。 */
|
|
3640
3582
|
name?: string;
|
|
3641
3583
|
}) => S | null;
|
|
@@ -3693,8 +3635,6 @@ export declare const getOrCreateStack: <T>(stacks: Record<Id, UndoRedo<T>>, id:
|
|
|
3693
3635
|
export declare const undoFloor: (undoRedo: UndoRedo<any>) => number;
|
|
3694
3636
|
/** 将单次 push 产生的 history uuid(或 null)转为 *AndGetHistoryId 返回用的 uuid 列表。 */
|
|
3695
3637
|
export declare const getLastPushedHistoryIds: (historyId: string | null) => string[];
|
|
3696
|
-
//#endregion
|
|
3697
|
-
//#region temp/packages/editor/src/utils/const.d.ts
|
|
3698
3638
|
/** 当uiService.get('uiSelectMode')为true,点击组件(包括任何形式,组件树/画布)时触发的事件名 */
|
|
3699
3639
|
export declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
|
|
3700
3640
|
export declare const LEFT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorLeftColumnWidthData";
|
|
@@ -3707,8 +3647,6 @@ export declare const MIN_CENTER_COLUMN_WIDTH = 400;
|
|
|
3707
3647
|
export declare const MIN_RIGHT_COLUMN_WIDTH = 300;
|
|
3708
3648
|
export declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
3709
3649
|
export declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
3710
|
-
//#endregion
|
|
3711
|
-
//#region temp/packages/editor/src/utils/type-match-rules.d.ts
|
|
3712
3650
|
export declare const ALL_COND_OPS: Set<string>;
|
|
3713
3651
|
export type ValidateDataSourceFieldSelectOptions = {
|
|
3714
3652
|
/**
|
|
@@ -3722,8 +3660,6 @@ export type ValidateDataSourceFieldSelectOptions = {
|
|
|
3722
3660
|
*/
|
|
3723
3661
|
export declare const validateDataSourceFieldSelect: (value: any, context: TypeMatchValidateContext, options?: ValidateDataSourceFieldSelectOptions) => string | undefined | Promise<string | undefined>;
|
|
3724
3662
|
export declare const editorTypeMatchRules: Record<string, TypeMatchValidator>;
|
|
3725
|
-
//#endregion
|
|
3726
|
-
//#region temp/packages/editor/src/utils/event.d.ts
|
|
3727
3663
|
/** 事件相关工具函数依赖的服务,可由表单上下文(`mForm.services`)注入 */
|
|
3728
3664
|
export type EventUtilServices = Pick<Services, 'editorService' | 'eventsService' | 'dataSourceService'>;
|
|
3729
3665
|
export declare const EVENT_NAME_VALUE_SEPARATOR = ".";
|
|
@@ -3768,18 +3704,14 @@ export declare const getCompActionAllowedValues: (config?: {
|
|
|
3768
3704
|
}, model?: {
|
|
3769
3705
|
to?: Id;
|
|
3770
3706
|
}, services?: EventUtilServices) => Set<string> | null;
|
|
3771
|
-
//#endregion
|
|
3772
|
-
//#region temp/packages/editor/src/utils/monaco-editor.d.ts
|
|
3773
3707
|
declare const _default$42: () => Promise<typeof import("monaco-editor")>;
|
|
3774
|
-
|
|
3775
|
-
//#region temp/packages/form/src/schema.d.ts
|
|
3776
|
-
interface ChangeRecord$1 {
|
|
3708
|
+
interface ChangeRecord {
|
|
3777
3709
|
propPath?: string;
|
|
3778
3710
|
value: any;
|
|
3779
3711
|
}
|
|
3780
|
-
interface ContainerChangeEventData
|
|
3712
|
+
interface ContainerChangeEventData {
|
|
3781
3713
|
modifyKey?: string;
|
|
3782
|
-
changeRecords?: ChangeRecord
|
|
3714
|
+
changeRecords?: ChangeRecord[];
|
|
3783
3715
|
}
|
|
3784
3716
|
/** 自定义 label slot 的作用域参数 */
|
|
3785
3717
|
interface FormLabelSlotProps {
|
|
@@ -3798,8 +3730,6 @@ interface FormLabelSlotProps {
|
|
|
3798
3730
|
interface FormSlots {
|
|
3799
3731
|
label(_props: FormLabelSlotProps): any;
|
|
3800
3732
|
}
|
|
3801
|
-
//#endregion
|
|
3802
|
-
//#region temp/packages/editor/src/editorProps.d.ts
|
|
3803
3733
|
interface EditorProps {
|
|
3804
3734
|
/** 是否是大屏模拟器容器,大屏容器时,左侧属性面板会扩展为两列(正常3列),颜色表单不扩展两列等 */
|
|
3805
3735
|
isLargeStageContainer?: boolean;
|
|
@@ -3950,8 +3880,6 @@ interface EditorProps {
|
|
|
3950
3880
|
/** 页面搜索函数 */
|
|
3951
3881
|
pageFilterFunction?: (page: MPage | MPageFragment, keyword: string) => boolean;
|
|
3952
3882
|
}
|
|
3953
|
-
//#endregion
|
|
3954
|
-
//#region temp/packages/editor/src/Editor.vue.d.ts
|
|
3955
3883
|
type __VLS_Slots$12 = EditorSlots;
|
|
3956
3884
|
declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorProps, Services, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3957
3885
|
"update:modelValue": (value: MApp | null) => any;
|
|
@@ -3967,7 +3895,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3967
3895
|
readonly labelWidth?: string | undefined;
|
|
3968
3896
|
readonly codeValueKey?: string | undefined;
|
|
3969
3897
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
3970
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
3898
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
3971
3899
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3972
3900
|
readonly onUnmounted?: (() => any) | undefined;
|
|
3973
3901
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -3983,7 +3911,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3983
3911
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
3984
3912
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
3985
3913
|
$host: Element | null;
|
|
3986
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData
|
|
3914
|
+
$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
3915
|
$el: any;
|
|
3988
3916
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
3989
3917
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -3994,7 +3922,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3994
3922
|
codeValueKey?: string;
|
|
3995
3923
|
labelPosition?: "top" | "left" | "right";
|
|
3996
3924
|
}> & Readonly<{
|
|
3997
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
3925
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
3998
3926
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3999
3927
|
onUnmounted?: (() => any) | undefined;
|
|
4000
3928
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4088,8 +4016,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4088
4016
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4089
4017
|
formState: import("@tmagic/form-schema").FormState;
|
|
4090
4018
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4091
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4092
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4019
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4020
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4093
4021
|
resetForm: () => void;
|
|
4094
4022
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4095
4023
|
validate: () => Promise<string>;
|
|
@@ -4189,8 +4117,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4189
4117
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4190
4118
|
formState: import("@tmagic/form-schema").FormState;
|
|
4191
4119
|
initialized: boolean;
|
|
4192
|
-
changeRecords: ChangeRecord
|
|
4193
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4120
|
+
changeRecords: ChangeRecord[];
|
|
4121
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4194
4122
|
resetForm: () => void;
|
|
4195
4123
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4196
4124
|
validate: () => Promise<string>;
|
|
@@ -4198,9 +4126,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4198
4126
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4199
4127
|
$slots: FormSlots;
|
|
4200
4128
|
}) | null>>;
|
|
4201
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4129
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4202
4130
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4203
|
-
submit: (values: any, eventData?: ContainerChangeEventData
|
|
4131
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
4204
4132
|
mounted: (internalInstance: any) => any;
|
|
4205
4133
|
unmounted: () => any;
|
|
4206
4134
|
"submit-error": (e: any) => any;
|
|
@@ -4234,7 +4162,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4234
4162
|
codeValueKey?: string;
|
|
4235
4163
|
labelPosition?: "top" | "left" | "right";
|
|
4236
4164
|
}> & Readonly<{
|
|
4237
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4165
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4238
4166
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4239
4167
|
onUnmounted?: (() => any) | undefined;
|
|
4240
4168
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4328,8 +4256,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4328
4256
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4329
4257
|
formState: import("@tmagic/form-schema").FormState;
|
|
4330
4258
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4331
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4332
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4259
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4260
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4333
4261
|
resetForm: () => void;
|
|
4334
4262
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4335
4263
|
validate: () => Promise<string>;
|
|
@@ -4429,8 +4357,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4429
4357
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4430
4358
|
formState: import("@tmagic/form-schema").FormState;
|
|
4431
4359
|
initialized: boolean;
|
|
4432
|
-
changeRecords: ChangeRecord
|
|
4433
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4360
|
+
changeRecords: ChangeRecord[];
|
|
4361
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4434
4362
|
resetForm: () => void;
|
|
4435
4363
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4436
4364
|
validate: () => Promise<string>;
|
|
@@ -4438,7 +4366,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4438
4366
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4439
4367
|
$slots: FormSlots;
|
|
4440
4368
|
}) | null;
|
|
4441
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4369
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4442
4370
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4443
4371
|
$slots: {
|
|
4444
4372
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -4461,7 +4389,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4461
4389
|
readonly labelWidth?: string | undefined;
|
|
4462
4390
|
readonly codeValueKey?: string | undefined;
|
|
4463
4391
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
4464
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4392
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4465
4393
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4466
4394
|
readonly onUnmounted?: (() => any) | undefined;
|
|
4467
4395
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4477,7 +4405,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4477
4405
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
4478
4406
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
4479
4407
|
$host: Element | null;
|
|
4480
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData
|
|
4408
|
+
$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
4409
|
$el: any;
|
|
4482
4410
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
4483
4411
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -4488,7 +4416,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4488
4416
|
codeValueKey?: string;
|
|
4489
4417
|
labelPosition?: "top" | "left" | "right";
|
|
4490
4418
|
}> & Readonly<{
|
|
4491
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4419
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4492
4420
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4493
4421
|
onUnmounted?: (() => any) | undefined;
|
|
4494
4422
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4582,8 +4510,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4582
4510
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4583
4511
|
formState: import("@tmagic/form-schema").FormState;
|
|
4584
4512
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4585
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4586
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4513
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4514
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4587
4515
|
resetForm: () => void;
|
|
4588
4516
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4589
4517
|
validate: () => Promise<string>;
|
|
@@ -4683,8 +4611,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4683
4611
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4684
4612
|
formState: import("@tmagic/form-schema").FormState;
|
|
4685
4613
|
initialized: boolean;
|
|
4686
|
-
changeRecords: ChangeRecord
|
|
4687
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4614
|
+
changeRecords: ChangeRecord[];
|
|
4615
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4688
4616
|
resetForm: () => void;
|
|
4689
4617
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4690
4618
|
validate: () => Promise<string>;
|
|
@@ -4692,9 +4620,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4692
4620
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4693
4621
|
$slots: FormSlots;
|
|
4694
4622
|
}) | null>>;
|
|
4695
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4623
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4696
4624
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4697
|
-
submit: (values: any, eventData?: ContainerChangeEventData
|
|
4625
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
4698
4626
|
mounted: (internalInstance: any) => any;
|
|
4699
4627
|
unmounted: () => any;
|
|
4700
4628
|
"submit-error": (e: any) => any;
|
|
@@ -4728,7 +4656,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4728
4656
|
codeValueKey?: string;
|
|
4729
4657
|
labelPosition?: "top" | "left" | "right";
|
|
4730
4658
|
}> & Readonly<{
|
|
4731
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData
|
|
4659
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4732
4660
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4733
4661
|
onUnmounted?: (() => any) | undefined;
|
|
4734
4662
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -4822,8 +4750,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4822
4750
|
lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
|
|
4823
4751
|
formState: import("@tmagic/form-schema").FormState;
|
|
4824
4752
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
4825
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
4826
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4753
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
4754
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4827
4755
|
resetForm: () => void;
|
|
4828
4756
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4829
4757
|
validate: () => Promise<string>;
|
|
@@ -4923,8 +4851,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4923
4851
|
lastValuesProcessed: import("@tmagic/form-schema").FormValue;
|
|
4924
4852
|
formState: import("@tmagic/form-schema").FormState;
|
|
4925
4853
|
initialized: boolean;
|
|
4926
|
-
changeRecords: ChangeRecord
|
|
4927
|
-
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4854
|
+
changeRecords: ChangeRecord[];
|
|
4855
|
+
changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => void;
|
|
4928
4856
|
resetForm: () => void;
|
|
4929
4857
|
submitForm: (native?: boolean) => Promise<any>;
|
|
4930
4858
|
validate: () => Promise<string>;
|
|
@@ -4932,7 +4860,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4932
4860
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4933
4861
|
$slots: FormSlots;
|
|
4934
4862
|
}) | null;
|
|
4935
|
-
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData
|
|
4863
|
+
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
4936
4864
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
4937
4865
|
$slots: {
|
|
4938
4866
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -4983,8 +4911,6 @@ type __VLS_WithSlots$12<T, S> = T & {
|
|
|
4983
4911
|
$slots: S;
|
|
4984
4912
|
};
|
|
4985
4913
|
};
|
|
4986
|
-
//#endregion
|
|
4987
|
-
//#region temp/packages/editor/src/layouts/CodeEditor.vue.d.ts
|
|
4988
4914
|
type __VLS_Props$34 = {
|
|
4989
4915
|
initValues?: any;
|
|
4990
4916
|
modifiedValues?: any;
|
|
@@ -5024,8 +4950,6 @@ declare const __VLS_export$38: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5024
4950
|
disabledFullScreen: boolean;
|
|
5025
4951
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5026
4952
|
declare const _default$34: typeof __VLS_export$38;
|
|
5027
|
-
//#endregion
|
|
5028
|
-
//#region temp/packages/editor/src/services/sdk-instance.d.ts
|
|
5029
4953
|
export declare const editorService: Editor;
|
|
5030
4954
|
export declare const historyService: History;
|
|
5031
4955
|
export declare const propsService: Props;
|
|
@@ -5035,8 +4959,6 @@ export declare const depService: Dep;
|
|
|
5035
4959
|
export declare const eventsService: Events;
|
|
5036
4960
|
export declare const storageService: WebStorage;
|
|
5037
4961
|
export declare const componentListService: ComponentList;
|
|
5038
|
-
//#endregion
|
|
5039
|
-
//#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
|
|
5040
4962
|
type __VLS_Slots$11 = ComponentListPanelSlots;
|
|
5041
4963
|
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
4964
|
declare const __VLS_export$37: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
@@ -5046,8 +4968,6 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
5046
4968
|
$slots: S;
|
|
5047
4969
|
};
|
|
5048
4970
|
};
|
|
5049
|
-
//#endregion
|
|
5050
|
-
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
|
|
5051
4971
|
type __VLS_Slots$10 = LayerPanelSlots;
|
|
5052
4972
|
type __VLS_Props$33 = {
|
|
5053
4973
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
@@ -5073,35 +4993,27 @@ type __VLS_WithSlots$10<T, S> = T & {
|
|
|
5073
4993
|
$slots: S;
|
|
5074
4994
|
};
|
|
5075
4995
|
};
|
|
5076
|
-
//#endregion
|
|
5077
|
-
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerNodeContent.vue.d.ts
|
|
5078
4996
|
type __VLS_Props$32 = {
|
|
5079
4997
|
data: TreeNodeData;
|
|
5080
4998
|
};
|
|
5081
4999
|
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
5000
|
declare const _default$26: typeof __VLS_export$35;
|
|
5083
|
-
//#endregion
|
|
5084
|
-
//#region temp/packages/editor/src/fields/CodeSelect.vue.d.ts
|
|
5085
5001
|
type __VLS_Props$31 = FieldProps<CodeSelectConfig>;
|
|
5086
5002
|
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;
|
|
5003
|
+
change: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
5088
5004
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
|
|
5089
|
-
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5005
|
+
onChange?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
5090
5006
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5091
5007
|
declare const _default$3: typeof __VLS_export$34;
|
|
5092
|
-
//#endregion
|
|
5093
|
-
//#region temp/packages/editor/src/fields/CodeSelectCol.vue.d.ts
|
|
5094
5008
|
type __VLS_Props$30 = FieldProps<CodeSelectColConfig>;
|
|
5095
5009
|
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;
|
|
5010
|
+
change: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
5097
5011
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
|
|
5098
|
-
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5012
|
+
onChange?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
5099
5013
|
}>, {
|
|
5100
5014
|
disabled: boolean;
|
|
5101
5015
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5102
5016
|
declare const _default$4: typeof __VLS_export$33;
|
|
5103
|
-
//#endregion
|
|
5104
|
-
//#region temp/packages/editor/src/fields/DataSourceFields.vue.d.ts
|
|
5105
5017
|
type __VLS_Props$29 = FieldProps<DataSourceFieldsConfig>;
|
|
5106
5018
|
type __VLS_ModelProps$4 = {
|
|
5107
5019
|
'width'?: number;
|
|
@@ -5110,12 +5022,12 @@ type __VLS_ModelProps$4 = {
|
|
|
5110
5022
|
};
|
|
5111
5023
|
type __VLS_PublicProps$4 = __VLS_Props$29 & __VLS_ModelProps$4;
|
|
5112
5024
|
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;
|
|
5025
|
+
change: (v: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
5114
5026
|
"update:visible": (value: boolean) => any;
|
|
5115
5027
|
"update:width": (value: number) => any;
|
|
5116
5028
|
"update:visible1": (value: boolean) => any;
|
|
5117
5029
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$4> & Readonly<{
|
|
5118
|
-
onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
5030
|
+
onChange?: ((v: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
5119
5031
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
5120
5032
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
5121
5033
|
"onUpdate:visible1"?: ((value: boolean) => any) | undefined;
|
|
@@ -5123,8 +5035,6 @@ declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5123
5035
|
disabled: boolean;
|
|
5124
5036
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5125
5037
|
declare const _default$12: typeof __VLS_export$32;
|
|
5126
|
-
//#endregion
|
|
5127
|
-
//#region temp/packages/editor/src/fields/DataSourceMocks.vue.d.ts
|
|
5128
5038
|
type __VLS_Props$28 = FieldProps<DataSourceMocksConfig>;
|
|
5129
5039
|
type __VLS_ModelProps$3 = {
|
|
5130
5040
|
'width'?: number;
|
|
@@ -5141,8 +5051,6 @@ declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5141
5051
|
disabled: boolean;
|
|
5142
5052
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5143
5053
|
declare const _default$16: typeof __VLS_export$31;
|
|
5144
|
-
//#endregion
|
|
5145
|
-
//#region temp/packages/editor/src/fields/DataSourceMethods.vue.d.ts
|
|
5146
5054
|
type __VLS_Props$27 = FieldProps<DataSourceMethodsConfig>;
|
|
5147
5055
|
declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5148
5056
|
change: (...args: any[]) => void;
|
|
@@ -5152,8 +5060,6 @@ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5152
5060
|
disabled: boolean;
|
|
5153
5061
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5154
5062
|
declare const _default$15: typeof __VLS_export$30;
|
|
5155
|
-
//#endregion
|
|
5156
|
-
//#region temp/packages/editor/src/fields/DataSourceInput.vue.d.ts
|
|
5157
5063
|
type __VLS_Props$26 = FieldProps<DataSourceInputConfig>;
|
|
5158
5064
|
declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5159
5065
|
change: (value: string) => any;
|
|
@@ -5163,8 +5069,6 @@ declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5163
5069
|
disabled: boolean;
|
|
5164
5070
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5165
5071
|
declare const _default$13: typeof __VLS_export$29;
|
|
5166
|
-
//#endregion
|
|
5167
|
-
//#region temp/packages/editor/src/fields/DataSourceSelect.vue.d.ts
|
|
5168
5072
|
type __VLS_Props$25 = FieldProps<DataSourceSelect>;
|
|
5169
5073
|
declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5170
5074
|
change: (...args: any[]) => void;
|
|
@@ -5174,8 +5078,6 @@ declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5174
5078
|
disabled: boolean;
|
|
5175
5079
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5176
5080
|
declare const _default$17: typeof __VLS_export$28;
|
|
5177
|
-
//#endregion
|
|
5178
|
-
//#region temp/packages/editor/src/fields/DataSourceMethodSelect.vue.d.ts
|
|
5179
5081
|
type __VLS_Props$24 = FieldProps<DataSourceMethodSelectConfig>;
|
|
5180
5082
|
declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5181
5083
|
change: (...args: any[]) => void;
|
|
@@ -5185,8 +5087,6 @@ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5185
5087
|
disabled: boolean;
|
|
5186
5088
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5187
5089
|
declare const _default$14: typeof __VLS_export$27;
|
|
5188
|
-
//#endregion
|
|
5189
|
-
//#region temp/packages/editor/src/fields/DataSourceFieldSelect/Index.vue.d.ts
|
|
5190
5090
|
type __VLS_Props$23 = FieldProps<DataSourceFieldSelectConfig>;
|
|
5191
5091
|
declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5192
5092
|
change: (...args: any[]) => void;
|
|
@@ -5196,17 +5096,13 @@ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5196
5096
|
disabled: boolean;
|
|
5197
5097
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5198
5098
|
declare const _default$11: typeof __VLS_export$26;
|
|
5199
|
-
//#endregion
|
|
5200
|
-
//#region temp/packages/editor/src/fields/EventSelect.vue.d.ts
|
|
5201
5099
|
type __VLS_Props$22 = FieldProps<EventSelectConfig>;
|
|
5202
5100
|
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;
|
|
5101
|
+
change: (v: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
5204
5102
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
|
|
5205
|
-
onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
5103
|
+
onChange?: ((v: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
5206
5104
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5207
5105
|
declare const _default$19: typeof __VLS_export$25;
|
|
5208
|
-
//#endregion
|
|
5209
|
-
//#region temp/packages/editor/src/fields/KeyValue.vue.d.ts
|
|
5210
5106
|
type __VLS_Props$21 = FieldProps<KeyValueConfig>;
|
|
5211
5107
|
declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5212
5108
|
change: (value: Record<string, any>) => any;
|
|
@@ -5216,8 +5112,6 @@ declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5216
5112
|
disabled: boolean;
|
|
5217
5113
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5218
5114
|
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
5115
|
type __VLS_Slots$9 = CodeBlockListSlots;
|
|
5222
5116
|
type __VLS_Props$20 = {
|
|
5223
5117
|
indent?: number;
|
|
@@ -5260,8 +5154,6 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
5260
5154
|
$slots: S;
|
|
5261
5155
|
};
|
|
5262
5156
|
};
|
|
5263
|
-
//#endregion
|
|
5264
|
-
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
|
|
5265
5157
|
type __VLS_Slots$8 = CodeBlockListPanelSlots;
|
|
5266
5158
|
type __VLS_Props$19 = {
|
|
5267
5159
|
indent?: number;
|
|
@@ -5277,8 +5169,6 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
5277
5169
|
$slots: S;
|
|
5278
5170
|
};
|
|
5279
5171
|
};
|
|
5280
|
-
//#endregion
|
|
5281
|
-
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts
|
|
5282
5172
|
type __VLS_Props$18 = {
|
|
5283
5173
|
title?: string;
|
|
5284
5174
|
values: any;
|
|
@@ -5298,20 +5188,18 @@ declare const __VLS_export$21: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5298
5188
|
hide(): void;
|
|
5299
5189
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5300
5190
|
close: () => any;
|
|
5301
|
-
submit: (v: any, eventData: ContainerChangeEventData) => any;
|
|
5191
|
+
submit: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
5302
5192
|
open: (id: string) => any;
|
|
5303
5193
|
"update:visible": (value: boolean) => any;
|
|
5304
5194
|
"update:width": (value: number) => any;
|
|
5305
5195
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$2> & Readonly<{
|
|
5306
5196
|
onClose?: (() => any) | undefined;
|
|
5307
|
-
onSubmit?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5197
|
+
onSubmit?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
5308
5198
|
onOpen?: ((id: string) => any) | undefined;
|
|
5309
5199
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
5310
5200
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
5311
5201
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5312
5202
|
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
5203
|
type __VLS_Props$17 = {
|
|
5316
5204
|
datasourceTypeList: {
|
|
5317
5205
|
text: string;
|
|
@@ -5326,15 +5214,13 @@ declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
5326
5214
|
onAdd?: ((type: string) => any) | undefined;
|
|
5327
5215
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5328
5216
|
declare const _default$9: typeof __VLS_export$20;
|
|
5329
|
-
//#endregion
|
|
5330
|
-
//#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
|
|
5331
5217
|
type __VLS_Slots$7 = PropsPanelSlots;
|
|
5332
5218
|
type __VLS_Props$16 = {
|
|
5333
5219
|
disabledShowSrc?: boolean;
|
|
5334
5220
|
};
|
|
5335
5221
|
declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {
|
|
5336
5222
|
getFormState(): import("@tmagic/form-schema").FormState | undefined;
|
|
5337
|
-
submit: (v: MNode, eventData?: ContainerChangeEventData, error?: any, source?: NodeInvalidSource) => Promise<void>;
|
|
5223
|
+
submit: (v: MNode, eventData?: ContainerChangeEventData$1, error?: any, source?: NodeInvalidSource) => Promise<void>;
|
|
5338
5224
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5339
5225
|
mounted: (internalInstance: {
|
|
5340
5226
|
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
@@ -5347,7 +5233,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5347
5233
|
readonly labelWidth?: string | undefined;
|
|
5348
5234
|
readonly codeValueKey?: string | undefined;
|
|
5349
5235
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
5350
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5236
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5351
5237
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5352
5238
|
readonly onUnmounted?: (() => any) | undefined;
|
|
5353
5239
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5363,7 +5249,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5363
5249
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5364
5250
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5365
5251
|
$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);
|
|
5252
|
+
$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
5253
|
$el: any;
|
|
5368
5254
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
5369
5255
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -5374,7 +5260,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5374
5260
|
codeValueKey?: string;
|
|
5375
5261
|
labelPosition?: "top" | "left" | "right";
|
|
5376
5262
|
}> & Readonly<{
|
|
5377
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5263
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5378
5264
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5379
5265
|
onUnmounted?: (() => any) | undefined;
|
|
5380
5266
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5468,8 +5354,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5468
5354
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
5469
5355
|
formState: import("@tmagic/form-schema").FormState;
|
|
5470
5356
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
5471
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
5472
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5357
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
5358
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5473
5359
|
resetForm: () => void;
|
|
5474
5360
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5475
5361
|
validate: () => Promise<string>;
|
|
@@ -5569,8 +5455,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5569
5455
|
lastValuesProcessed: FormValue;
|
|
5570
5456
|
formState: import("@tmagic/form-schema").FormState;
|
|
5571
5457
|
initialized: boolean;
|
|
5572
|
-
changeRecords: ChangeRecord
|
|
5573
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5458
|
+
changeRecords: ChangeRecord[];
|
|
5459
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5574
5460
|
resetForm: () => void;
|
|
5575
5461
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5576
5462
|
validate: () => Promise<string>;
|
|
@@ -5578,9 +5464,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5578
5464
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
5579
5465
|
$slots: FormSlots;
|
|
5580
5466
|
}) | null>>;
|
|
5581
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5467
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
5582
5468
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5583
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5469
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
5584
5470
|
mounted: (internalInstance: any) => any;
|
|
5585
5471
|
unmounted: () => any;
|
|
5586
5472
|
"submit-error": (e: any) => any;
|
|
@@ -5614,7 +5500,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5614
5500
|
codeValueKey?: string;
|
|
5615
5501
|
labelPosition?: "top" | "left" | "right";
|
|
5616
5502
|
}> & Readonly<{
|
|
5617
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5503
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5618
5504
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5619
5505
|
onUnmounted?: (() => any) | undefined;
|
|
5620
5506
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5708,8 +5594,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5708
5594
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
5709
5595
|
formState: import("@tmagic/form-schema").FormState;
|
|
5710
5596
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
5711
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
5712
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5597
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
5598
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5713
5599
|
resetForm: () => void;
|
|
5714
5600
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5715
5601
|
validate: () => Promise<string>;
|
|
@@ -5809,8 +5695,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5809
5695
|
lastValuesProcessed: FormValue;
|
|
5810
5696
|
formState: import("@tmagic/form-schema").FormState;
|
|
5811
5697
|
initialized: boolean;
|
|
5812
|
-
changeRecords: ChangeRecord
|
|
5813
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5698
|
+
changeRecords: ChangeRecord[];
|
|
5699
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5814
5700
|
resetForm: () => void;
|
|
5815
5701
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5816
5702
|
validate: () => Promise<string>;
|
|
@@ -5818,7 +5704,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5818
5704
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
5819
5705
|
$slots: FormSlots;
|
|
5820
5706
|
}) | null;
|
|
5821
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5707
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
5822
5708
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
5823
5709
|
$slots: {
|
|
5824
5710
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -5839,7 +5725,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5839
5725
|
readonly labelWidth?: string | undefined;
|
|
5840
5726
|
readonly codeValueKey?: string | undefined;
|
|
5841
5727
|
readonly labelPosition?: "top" | "left" | "right" | undefined;
|
|
5842
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5728
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5843
5729
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5844
5730
|
readonly onUnmounted?: (() => any) | undefined;
|
|
5845
5731
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5855,7 +5741,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5855
5741
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5856
5742
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5857
5743
|
$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);
|
|
5744
|
+
$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
5745
|
$el: any;
|
|
5860
5746
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
5861
5747
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -5866,7 +5752,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5866
5752
|
codeValueKey?: string;
|
|
5867
5753
|
labelPosition?: "top" | "left" | "right";
|
|
5868
5754
|
}> & Readonly<{
|
|
5869
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5755
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
5870
5756
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5871
5757
|
onUnmounted?: (() => any) | undefined;
|
|
5872
5758
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -5960,8 +5846,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5960
5846
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
5961
5847
|
formState: import("@tmagic/form-schema").FormState;
|
|
5962
5848
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
5963
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
5964
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5849
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
5850
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
5965
5851
|
resetForm: () => void;
|
|
5966
5852
|
submitForm: (native?: boolean) => Promise<any>;
|
|
5967
5853
|
validate: () => Promise<string>;
|
|
@@ -6061,8 +5947,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6061
5947
|
lastValuesProcessed: FormValue;
|
|
6062
5948
|
formState: import("@tmagic/form-schema").FormState;
|
|
6063
5949
|
initialized: boolean;
|
|
6064
|
-
changeRecords: ChangeRecord
|
|
6065
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
5950
|
+
changeRecords: ChangeRecord[];
|
|
5951
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6066
5952
|
resetForm: () => void;
|
|
6067
5953
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6068
5954
|
validate: () => Promise<string>;
|
|
@@ -6070,9 +5956,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6070
5956
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6071
5957
|
$slots: FormSlots;
|
|
6072
5958
|
}) | null>>;
|
|
6073
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5959
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
6074
5960
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6075
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5961
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
6076
5962
|
mounted: (internalInstance: any) => any;
|
|
6077
5963
|
unmounted: () => any;
|
|
6078
5964
|
"submit-error": (e: any) => any;
|
|
@@ -6106,7 +5992,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6106
5992
|
codeValueKey?: string;
|
|
6107
5993
|
labelPosition?: "top" | "left" | "right";
|
|
6108
5994
|
}> & Readonly<{
|
|
6109
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5995
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
6110
5996
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
6111
5997
|
onUnmounted?: (() => any) | undefined;
|
|
6112
5998
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -6200,8 +6086,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6200
6086
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
6201
6087
|
formState: import("@tmagic/form-schema").FormState;
|
|
6202
6088
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
6203
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
6204
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6089
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
6090
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6205
6091
|
resetForm: () => void;
|
|
6206
6092
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6207
6093
|
validate: () => Promise<string>;
|
|
@@ -6301,8 +6187,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6301
6187
|
lastValuesProcessed: FormValue;
|
|
6302
6188
|
formState: import("@tmagic/form-schema").FormState;
|
|
6303
6189
|
initialized: boolean;
|
|
6304
|
-
changeRecords: ChangeRecord
|
|
6305
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6190
|
+
changeRecords: ChangeRecord[];
|
|
6191
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6306
6192
|
resetForm: () => void;
|
|
6307
6193
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6308
6194
|
validate: () => Promise<string>;
|
|
@@ -6310,7 +6196,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6310
6196
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6311
6197
|
$slots: FormSlots;
|
|
6312
6198
|
}) | null;
|
|
6313
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
6199
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
6314
6200
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6315
6201
|
$slots: {
|
|
6316
6202
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -6327,8 +6213,6 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
6327
6213
|
$slots: S;
|
|
6328
6214
|
};
|
|
6329
6215
|
};
|
|
6330
|
-
//#endregion
|
|
6331
|
-
//#region temp/packages/editor/src/layouts/props-panel/FormPanel.vue.d.ts
|
|
6332
6216
|
type __VLS_Slots$6 = {
|
|
6333
6217
|
'props-form-panel-header'(_props: {}): any;
|
|
6334
6218
|
};
|
|
@@ -6431,8 +6315,8 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6431
6315
|
lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
|
|
6432
6316
|
formState: import("@tmagic/form-schema").FormState;
|
|
6433
6317
|
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
6434
|
-
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord
|
|
6435
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6318
|
+
changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord[], ChangeRecord[]>;
|
|
6319
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6436
6320
|
resetForm: () => void;
|
|
6437
6321
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6438
6322
|
validate: () => Promise<string>;
|
|
@@ -6532,8 +6416,8 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6532
6416
|
lastValuesProcessed: FormValue;
|
|
6533
6417
|
formState: import("@tmagic/form-schema").FormState;
|
|
6534
6418
|
initialized: boolean;
|
|
6535
|
-
changeRecords: ChangeRecord
|
|
6536
|
-
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
6419
|
+
changeRecords: ChangeRecord[];
|
|
6420
|
+
changeHandler: (v: FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
6537
6421
|
resetForm: () => void;
|
|
6538
6422
|
submitForm: (native?: boolean) => Promise<any>;
|
|
6539
6423
|
validate: () => Promise<string>;
|
|
@@ -6541,15 +6425,15 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6541
6425
|
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
6542
6426
|
$slots: FormSlots;
|
|
6543
6427
|
}) | null>>;
|
|
6544
|
-
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
6428
|
+
submit: (v: FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
6545
6429
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6546
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
6430
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
6547
6431
|
mounted: (internalInstance: any) => any;
|
|
6548
6432
|
unmounted: () => any;
|
|
6549
6433
|
"submit-error": (e: any) => any;
|
|
6550
6434
|
"form-error": (e: any) => any;
|
|
6551
6435
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
|
|
6552
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
6436
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
6553
6437
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
6554
6438
|
onUnmounted?: (() => any) | undefined;
|
|
6555
6439
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -6562,8 +6446,6 @@ type __VLS_WithSlots$6<T, S> = T & {
|
|
|
6562
6446
|
$slots: S;
|
|
6563
6447
|
};
|
|
6564
6448
|
};
|
|
6565
|
-
//#endregion
|
|
6566
|
-
//#region temp/packages/editor/src/components/ToolButton.vue.d.ts
|
|
6567
6449
|
type __VLS_Props$14 = {
|
|
6568
6450
|
data?: MenuButton | MenuComponent;
|
|
6569
6451
|
eventType?: 'mousedown' | 'mouseup' | 'click';
|
|
@@ -6575,8 +6457,6 @@ declare const __VLS_export$17: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6575
6457
|
eventType: "click" | "mousedown" | "mouseup";
|
|
6576
6458
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6577
6459
|
declare const _default$36: typeof __VLS_export$17;
|
|
6578
|
-
//#endregion
|
|
6579
|
-
//#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
|
|
6580
6460
|
type __VLS_Props$13 = {
|
|
6581
6461
|
menuData?: (MenuButton | MenuComponent)[];
|
|
6582
6462
|
isSubMenu?: boolean;
|
|
@@ -6629,15 +6509,11 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
6629
6509
|
$slots: S;
|
|
6630
6510
|
};
|
|
6631
6511
|
};
|
|
6632
|
-
//#endregion
|
|
6633
|
-
//#region temp/packages/editor/src/components/Icon.vue.d.ts
|
|
6634
6512
|
type __VLS_Props$12 = {
|
|
6635
6513
|
icon?: any;
|
|
6636
6514
|
};
|
|
6637
6515
|
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
6516
|
declare const _default$24: typeof __VLS_export$15;
|
|
6639
|
-
//#endregion
|
|
6640
|
-
//#region temp/packages/editor/src/components/SplitView.vue.d.ts
|
|
6641
6517
|
type __VLS_Props$11 = {
|
|
6642
6518
|
width?: number;
|
|
6643
6519
|
left?: number;
|
|
@@ -6679,8 +6555,6 @@ type __VLS_WithSlots$4<T, S> = T & {
|
|
|
6679
6555
|
$slots: S;
|
|
6680
6556
|
};
|
|
6681
6557
|
};
|
|
6682
|
-
//#endregion
|
|
6683
|
-
//#region temp/packages/editor/src/components/Resizer.vue.d.ts
|
|
6684
6558
|
declare var __VLS_1: {};
|
|
6685
6559
|
type __VLS_Slots$3 = {} & {
|
|
6686
6560
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -6697,8 +6571,6 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
6697
6571
|
$slots: S;
|
|
6698
6572
|
};
|
|
6699
6573
|
};
|
|
6700
|
-
//#endregion
|
|
6701
|
-
//#region temp/packages/editor/src/components/CodeBlockEditor.vue.d.ts
|
|
6702
6574
|
type __VLS_Props$10 = {
|
|
6703
6575
|
content: Omit<CodeBlockContent, 'content'> & {
|
|
6704
6576
|
content: string;
|
|
@@ -6717,20 +6589,18 @@ declare const __VLS_export$12: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6717
6589
|
hide(): Promise<void>;
|
|
6718
6590
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6719
6591
|
close: () => any;
|
|
6720
|
-
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
|
|
6592
|
+
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any;
|
|
6721
6593
|
open: () => any;
|
|
6722
6594
|
"update:visible": (value: boolean) => any;
|
|
6723
6595
|
"update:width": (value: number) => any;
|
|
6724
6596
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
|
|
6725
6597
|
onClose?: (() => any) | undefined;
|
|
6726
|
-
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
|
|
6598
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
6727
6599
|
onOpen?: (() => any) | undefined;
|
|
6728
6600
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
6729
6601
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
6730
6602
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6731
6603
|
declare const _default: typeof __VLS_export$12;
|
|
6732
|
-
//#endregion
|
|
6733
|
-
//#region temp/packages/editor/src/components/CompareForm.vue.d.ts
|
|
6734
6604
|
type __VLS_Props$9 = CompareFormBaseProps & {
|
|
6735
6605
|
/** 用于对比的旧值(修改前的值) */
|
|
6736
6606
|
lastValue?: CompareFormBaseProps['value'];
|
|
@@ -6746,8 +6616,6 @@ declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6746
6616
|
category: string;
|
|
6747
6617
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6748
6618
|
declare const _default$5: typeof __VLS_export$11;
|
|
6749
|
-
//#endregion
|
|
6750
|
-
//#region temp/packages/editor/src/components/ViewForm.vue.d.ts
|
|
6751
6619
|
type __VLS_Props$8 = CompareFormBaseProps & {
|
|
6752
6620
|
/** 是否禁用表单(默认只读展示)。 */
|
|
6753
6621
|
disabled?: boolean;
|
|
@@ -6762,8 +6630,6 @@ declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6762
6630
|
category: string;
|
|
6763
6631
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6764
6632
|
declare const _default$39: typeof __VLS_export$10;
|
|
6765
|
-
//#endregion
|
|
6766
|
-
//#region temp/packages/editor/src/layouts/history-list/composables.d.ts
|
|
6767
6633
|
/**
|
|
6768
6634
|
* 通用 bucket 分组(数据源 / 代码块及业务自定义历史)在面板中的展示结构。
|
|
6769
6635
|
* 由 Bucket / BucketTab 复用,step 类型通过泛型 T 收窄(约束为 {@link BaseStepValue})。
|
|
@@ -6788,8 +6654,6 @@ interface HistoryBucketGroup<T extends BaseStepValue = BaseStepValue> {
|
|
|
6788
6654
|
* 用户点击「确定」返回 true,取消(confirm reject)时返回 false 并静默忽略。
|
|
6789
6655
|
*/
|
|
6790
6656
|
export declare const confirmHistoryAction: (message: string) => Promise<boolean>;
|
|
6791
|
-
//#endregion
|
|
6792
|
-
//#region temp/packages/editor/src/layouts/history-list/Bucket.vue.d.ts
|
|
6793
6657
|
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
6658
|
props: import("vue").PublicProps & __VLS_PrettifyLocal$1<{
|
|
6795
6659
|
/**
|
|
@@ -6827,8 +6691,6 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6827
6691
|
};
|
|
6828
6692
|
declare const _default$22: typeof __VLS_export$9;
|
|
6829
6693
|
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
6694
|
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
6695
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
6834
6696
|
/**
|
|
@@ -6876,8 +6738,6 @@ declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6876
6738
|
};
|
|
6877
6739
|
declare const _default$23: typeof __VLS_export$8;
|
|
6878
6740
|
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
6741
|
type __VLS_Props$7 = {
|
|
6882
6742
|
/** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
|
|
6883
6743
|
services?: Services;
|
|
@@ -6905,8 +6765,6 @@ declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
6905
6765
|
width: string;
|
|
6906
6766
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6907
6767
|
declare const _default$21: typeof __VLS_export$7;
|
|
6908
|
-
//#endregion
|
|
6909
|
-
//#region temp/packages/editor/src/layouts/history-list/useHistoryRevert.d.ts
|
|
6910
6768
|
/**
|
|
6911
6769
|
* 历史记录「单步回滚」与「查看差异」的完整交互流程,供历史面板与业务方共用。
|
|
6912
6770
|
*
|
|
@@ -6951,8 +6809,6 @@ export declare const useHistoryRevert: (options?: UseHistoryRevertOptions, servi
|
|
|
6951
6809
|
confirmAndRevert: <T = unknown>(revertOptions: ConfirmAndRevertOptions<T>) => Promise<T | null>;
|
|
6952
6810
|
viewDiff: (payload: DiffDialogPayload | null, extra?: CustomDiffFormOptions) => Promise<void> | void;
|
|
6953
6811
|
};
|
|
6954
|
-
//#endregion
|
|
6955
|
-
//#region temp/packages/editor/src/components/FloatingBox.vue.d.ts
|
|
6956
6812
|
interface Position {
|
|
6957
6813
|
left: number;
|
|
6958
6814
|
top: number;
|
|
@@ -7004,8 +6860,6 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
7004
6860
|
$slots: S;
|
|
7005
6861
|
};
|
|
7006
6862
|
};
|
|
7007
|
-
//#endregion
|
|
7008
|
-
//#region temp/packages/editor/src/components/Tree.vue.d.ts
|
|
7009
6863
|
type __VLS_Slots$1 = {
|
|
7010
6864
|
'tree-node-content'(_props: {
|
|
7011
6865
|
data: TreeNodeData;
|
|
@@ -7055,8 +6909,6 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
7055
6909
|
$slots: S;
|
|
7056
6910
|
};
|
|
7057
6911
|
};
|
|
7058
|
-
//#endregion
|
|
7059
|
-
//#region temp/packages/editor/src/components/TreeNode.vue.d.ts
|
|
7060
6912
|
type __VLS_Slots = {
|
|
7061
6913
|
'tree-node-label'(_props: {
|
|
7062
6914
|
data: TreeNodeData;
|
|
@@ -7107,8 +6959,6 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
7107
6959
|
$slots: S;
|
|
7108
6960
|
};
|
|
7109
6961
|
};
|
|
7110
|
-
//#endregion
|
|
7111
|
-
//#region temp/packages/editor/src/fields/PageFragmentSelect.vue.d.ts
|
|
7112
6962
|
type __VLS_Props$3 = FieldProps<PageFragmentSelectConfig>;
|
|
7113
6963
|
declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_Props$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
7114
6964
|
change: (...args: any[]) => void;
|
|
@@ -7118,19 +6968,15 @@ declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
7118
6968
|
disabled: boolean;
|
|
7119
6969
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7120
6970
|
declare const _default$29: typeof __VLS_export$3;
|
|
7121
|
-
//#endregion
|
|
7122
|
-
//#region temp/packages/editor/src/fields/DisplayConds.vue.d.ts
|
|
7123
6971
|
type __VLS_Props$2 = FieldProps<DisplayCondsConfig>;
|
|
7124
6972
|
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;
|
|
6973
|
+
change: (value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
7126
6974
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$2> & Readonly<{
|
|
7127
|
-
onChange?: ((value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
6975
|
+
onChange?: ((value: DisplayCond | DisplayCond[], eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
7128
6976
|
}>, {
|
|
7129
6977
|
disabled: boolean;
|
|
7130
6978
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7131
6979
|
declare const _default$18: typeof __VLS_export$2;
|
|
7132
|
-
//#endregion
|
|
7133
|
-
//#region temp/packages/editor/src/fields/CondOpSelect.vue.d.ts
|
|
7134
6980
|
type __VLS_Props$1 = FieldProps<CondOpSelectConfig>;
|
|
7135
6981
|
declare const __VLS_export$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$1, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
7136
6982
|
change: (value: string) => any;
|
|
@@ -7138,19 +6984,15 @@ declare const __VLS_export$1: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
7138
6984
|
onChange?: ((value: string) => any) | undefined;
|
|
7139
6985
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7140
6986
|
declare const _default$7: typeof __VLS_export$1;
|
|
7141
|
-
//#endregion
|
|
7142
|
-
//#region temp/packages/editor/src/fields/StyleSetter/Index.vue.d.ts
|
|
7143
6987
|
type __VLS_Props = FieldProps<StyleSchema>;
|
|
7144
6988
|
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;
|
|
6989
|
+
change: (v: any, eventData: ContainerChangeEventData$1) => any;
|
|
7146
6990
|
addDiffCount: () => any;
|
|
7147
6991
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7148
|
-
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
6992
|
+
onChange?: ((v: any, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
7149
6993
|
onAddDiffCount?: (() => any) | undefined;
|
|
7150
6994
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
7151
6995
|
declare const _default$33: typeof __VLS_export;
|
|
7152
|
-
//#endregion
|
|
7153
|
-
//#region temp/packages/editor/src/fields/headless-validation.d.ts
|
|
7154
6996
|
/**
|
|
7155
6997
|
* 编辑器字段的无渲染登记表(不含 Vue 组件)。
|
|
7156
6998
|
*
|
|
@@ -7165,10 +7007,7 @@ declare const _default$33: typeof __VLS_export;
|
|
|
7165
7007
|
* 且配置本身与组件共用同一份工厂(`fields/configs/`)。
|
|
7166
7008
|
*/
|
|
7167
7009
|
export declare const editorFields: Record<string, HeadlessFieldOptions>;
|
|
7168
|
-
//#endregion
|
|
7169
|
-
//#region temp/packages/editor/src/plugin.d.ts
|
|
7170
7010
|
declare const _default$40: {
|
|
7171
7011
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
7172
7012
|
};
|
|
7173
|
-
//#endregion
|
|
7174
7013
|
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 };
|