@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/align-items/Stretch.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "16",
|
|
8
|
+
height: "16",
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
};
|
|
12
|
+
function _sfc_render(_ctx, _cache) {
|
|
13
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
14
|
+
createElementVNode("rect", {
|
|
15
|
+
x: "1",
|
|
16
|
+
y: "1",
|
|
17
|
+
width: "14",
|
|
18
|
+
height: "14",
|
|
19
|
+
rx: "1",
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
"stroke-opacity": "0.3"
|
|
23
|
+
}, null, -1),
|
|
24
|
+
createElementVNode("rect", {
|
|
25
|
+
x: "3",
|
|
26
|
+
y: "2",
|
|
27
|
+
width: "10",
|
|
28
|
+
height: "12",
|
|
29
|
+
rx: "0.5",
|
|
30
|
+
fill: "none",
|
|
31
|
+
stroke: "currentColor"
|
|
32
|
+
}, null, -1),
|
|
33
|
+
createElementVNode("path", { d: "M8 4.5L9.75 6.5H8.75V9.5H9.75L8 11.5 6.25 9.5H7.25V6.5H6.25Z" }, null, -1)
|
|
34
|
+
])]);
|
|
35
|
+
}
|
|
36
|
+
var Stretch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
37
|
+
export { Stretch_default as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/background-repeat/Round.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "16",
|
|
8
|
+
height: "16",
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
};
|
|
12
|
+
function _sfc_render(_ctx, _cache) {
|
|
13
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
14
|
+
createElementVNode("rect", {
|
|
15
|
+
x: "1",
|
|
16
|
+
y: "1",
|
|
17
|
+
width: "6.5",
|
|
18
|
+
height: "6.5",
|
|
19
|
+
rx: "0.5"
|
|
20
|
+
}, null, -1),
|
|
21
|
+
createElementVNode("rect", {
|
|
22
|
+
x: "8.5",
|
|
23
|
+
y: "1",
|
|
24
|
+
width: "6.5",
|
|
25
|
+
height: "6.5",
|
|
26
|
+
rx: "0.5"
|
|
27
|
+
}, null, -1),
|
|
28
|
+
createElementVNode("rect", {
|
|
29
|
+
x: "1",
|
|
30
|
+
y: "8.5",
|
|
31
|
+
width: "6.5",
|
|
32
|
+
height: "6.5",
|
|
33
|
+
rx: "0.5"
|
|
34
|
+
}, null, -1),
|
|
35
|
+
createElementVNode("rect", {
|
|
36
|
+
x: "8.5",
|
|
37
|
+
y: "8.5",
|
|
38
|
+
width: "6.5",
|
|
39
|
+
height: "6.5",
|
|
40
|
+
rx: "0.5"
|
|
41
|
+
}, null, -1)
|
|
42
|
+
])]);
|
|
43
|
+
}
|
|
44
|
+
var Round_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
45
|
+
export { Round_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createElementBlock, createStaticVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/background-repeat/Space.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "16",
|
|
8
|
+
height: "16",
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
};
|
|
12
|
+
function _sfc_render(_ctx, _cache) {
|
|
13
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createStaticVNode("<rect x=\"0.5\" y=\"0.5\" width=\"15\" height=\"15\" rx=\"1\" fill=\"none\" stroke=\"currentColor\" stroke-opacity=\"0.3\"></rect><rect x=\"3.5\" y=\"3.5\" width=\"3\" height=\"3\" rx=\"0.5\"></rect><rect x=\"9.5\" y=\"3.5\" width=\"3\" height=\"3\" rx=\"0.5\"></rect><rect x=\"3.5\" y=\"9.5\" width=\"3\" height=\"3\" rx=\"0.5\"></rect><rect x=\"9.5\" y=\"9.5\" width=\"3\" height=\"3\" rx=\"0.5\"></rect>", 5)])]);
|
|
14
|
+
}
|
|
15
|
+
var Space_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
16
|
+
export { Space_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/display/Grid.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM416 256v512H368V256h48zM656 256v512H608V256h48zM768 368v48H256V368h512zM768 608v48H256V608h512z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var Grid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { Grid_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/display/InlineFlex.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM288 400v48H128V400h160zM288 576v48H128V576h160zM896 400v48H736V400h160zM896 576v48H736V576h160zM704 320v384H320V320h384zM656 368H368v288h288V368zM448 416v192H384V416h64zM544 416v192H480V416h64zM640 416v192H576V416h64z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var InlineFlex_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { InlineFlex_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/display/InlineGrid.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM288 400v48H128V400h160zM288 576v48H128V576h160zM896 400v48H736V400h160zM896 576v48H736V576h160zM704 320v384H320V320h384zM656 368H368v288h288V368zM496 384v112H384V384h112zM640 384v112H528V384h112zM496 528v112H384V528h112zM640 528v112H528V528h112z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var InlineGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { InlineGrid_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createElementBlock, createStaticVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/justify-content/SpaceEvenly.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "16",
|
|
8
|
+
height: "16",
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
};
|
|
12
|
+
function _sfc_render(_ctx, _cache) {
|
|
13
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createStaticVNode("<rect x=\"3\" y=\"4.5\" width=\"1.5\" height=\"7\" rx=\"0.25\" fill=\"none\" stroke=\"currentColor\"></rect><rect x=\"7.5\" y=\"4.5\" width=\"1.5\" height=\"7\" rx=\"0.25\" fill=\"none\" stroke=\"currentColor\"></rect><rect x=\"12\" y=\"4.5\" width=\"1.5\" height=\"7\" rx=\"0.25\" fill=\"none\" stroke=\"currentColor\"></rect><rect x=\"1.25\" y=\"2\" width=\"0.5\" height=\"12\" rx=\"0.25\" fill-opacity=\"0.3\"></rect><rect x=\"6\" y=\"2\" width=\"0.5\" height=\"12\" rx=\"0.25\" fill-opacity=\"0.3\"></rect><rect x=\"10.5\" y=\"2\" width=\"0.5\" height=\"12\" rx=\"0.25\" fill-opacity=\"0.3\"></rect><rect x=\"15\" y=\"2\" width=\"0.5\" height=\"12\" rx=\"0.25\" fill-opacity=\"0.3\"></rect>", 7)])]);
|
|
14
|
+
}
|
|
15
|
+
var SpaceEvenly_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
16
|
+
export { SpaceEvenly_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/End.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M128 96h64v192H128zM224 160h544v64H224zM768 96L896 192 768 288zM256 384h640v64H256zM128 512h768v64H128zM384 640h512v64H384zM192 768h704v64H192z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var End_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { End_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/Justify.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M128 128h768v85.333333H128z m0 170.666667h768v85.333333H128z m0 170.666666h768v85.333334H128z m0 170.666667h768v85.333333H128z m0 170.666667h768v85.333333H128z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var Justify_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { Justify_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/MatchParent.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M64 64h896v48H64z m0 848h896v48H64z m0-800h48v800H64z m848 0h48v800h-48zM192 208h416v64H192z m416-48L768 240 608 320zM464 368h96v96h-96z m-64 96h224l-112 128zM192 608h640v56H192z m0 112h512v56H192z m0 112h576v56H192z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var MatchParent_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { MatchParent_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/Start.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 1024 1024"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M128 96h64v192H128zM224 160h544v64H224zM768 96L896 192 768 288zM128 384h640v64H128zM128 512h768v64H128zM128 640h512v64H128zM128 768h704v64H128z" }, null, -1)])]);
|
|
11
|
+
}
|
|
12
|
+
var Start_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export { Start_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Background_vue_vue_type_script_setup_true_lang_default from "./Background.
|
|
1
|
+
import Background_vue_vue_type_script_setup_true_lang_default from "./Background.vue.js";
|
|
2
2
|
// packages/editor/src/fields/StyleSetter/pro/Background.vue
|
|
3
3
|
var Background_default = Background_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { Background_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Border_default from "../components/Border.js";
|
|
2
|
-
import { borderRadiusConfig } from "../configs.js";
|
|
3
|
-
import { MContainer } from "@tmagic/form";
|
|
4
1
|
import { Fragment, createElementBlock, createVNode, defineComponent, openBlock, unref } from "vue";
|
|
2
|
+
import { MContainer } from "@tmagic/form";
|
|
3
|
+
import Border_default from "../components/Border2.vue.js";
|
|
4
|
+
import { borderRadiusConfig } from "../configs.js";
|
|
5
5
|
// packages/editor/src/fields/StyleSetter/pro/Border.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var Border_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
7
|
__name: "Border",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Border_vue_vue_type_script_setup_true_lang_default from "./Border.
|
|
1
|
+
import Border_vue_vue_type_script_setup_true_lang_default from "./Border.vue.js";
|
|
2
2
|
// packages/editor/src/fields/StyleSetter/pro/Border.vue
|
|
3
3
|
var Border_default = Border_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { Border_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Font_vue_vue_type_script_setup_true_lang_default from "./Font.
|
|
1
|
+
import Font_vue_vue_type_script_setup_true_lang_default from "./Font.vue.js";
|
|
2
2
|
// packages/editor/src/fields/StyleSetter/pro/Font.vue
|
|
3
3
|
var Font_default = Font_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { Font_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Box_default from "../components/Box.js";
|
|
2
|
-
import { createLayoutConfig } from "../configs.js";
|
|
3
|
-
import { MContainer } from "@tmagic/form";
|
|
4
|
-
import { useTheme } from "@tmagic/design";
|
|
5
1
|
import { Fragment, computed, createBlock, createElementBlock, createVNode, defineComponent, openBlock, renderList, unref, vShow, withDirectives } from "vue";
|
|
2
|
+
import { useTheme } from "@tmagic/design";
|
|
3
|
+
import { MContainer } from "@tmagic/form";
|
|
4
|
+
import Box_default from "../components/Box2.vue.js";
|
|
5
|
+
import { createLayoutConfig } from "../configs.js";
|
|
6
6
|
// packages/editor/src/fields/StyleSetter/pro/Layout.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var Layout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
8
|
__name: "Layout",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Layout_vue_vue_type_script_setup_true_lang_default from "./Layout.
|
|
1
|
+
import Layout_vue_vue_type_script_setup_true_lang_default from "./Layout.vue.js";
|
|
2
2
|
// packages/editor/src/fields/StyleSetter/pro/Layout.vue
|
|
3
3
|
var Layout_default = Layout_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { Layout_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Position_vue_vue_type_script_setup_true_lang_default from "./Position.
|
|
1
|
+
import Position_vue_vue_type_script_setup_true_lang_default from "./Position.vue.js";
|
|
2
2
|
// packages/editor/src/fields/StyleSetter/pro/Position.vue
|
|
3
3
|
var Position_default = Position_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { Position_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Transform_vue_vue_type_script_setup_true_lang_default from "./Transform.
|
|
1
|
+
import Transform_vue_vue_type_script_setup_true_lang_default from "./Transform.vue.js";
|
|
2
2
|
// packages/editor/src/fields/StyleSetter/pro/Transform.vue
|
|
3
3
|
var Transform_default = Transform_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { Transform_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import UISelect_vue_vue_type_script_setup_true_lang_default from "./UISelect.
|
|
1
|
+
import UISelect_vue_vue_type_script_setup_true_lang_default from "./UISelect.vue.js";
|
|
2
2
|
// packages/editor/src/fields/UISelect.vue
|
|
3
3
|
var UISelect_default = UISelect_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { UISelect_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { stickyAddButton } from "./stickyAddButton.js";
|
|
2
|
-
import { HookCodeType, HookType } from "@tmagic/core";
|
|
3
1
|
import { isEmpty } from "lodash-es";
|
|
2
|
+
import { HookCodeType, HookType } from "@tmagic/core";
|
|
3
|
+
import { stickyAddButton } from "./stickyAddButton.js";
|
|
4
4
|
// packages/editor/src/fields/configs/codeSelect.ts
|
|
5
5
|
/**
|
|
6
6
|
* `fields/CodeSelect.vue` 内部渲染的钩子列表配置。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { removeDataSourceFieldPrefix } from "@tmagic/utils";
|
|
1
2
|
import { getCascaderOptionsFromFields, getFieldType, resolveFieldByPath } from "../../utils/data-source/index.js";
|
|
2
3
|
import { stickyAddButton } from "./stickyAddButton.js";
|
|
3
|
-
import { removeDataSourceFieldPrefix } from "@tmagic/utils";
|
|
4
4
|
// packages/editor/src/fields/configs/displayConds.ts
|
|
5
5
|
/**
|
|
6
6
|
* `fields/DisplayConds.vue` 内部渲染的条件列表配置。
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getCompActionAllowedValues, getCompActionOptions, getEventNameAllowedValues, getEventNameOptions, normalizeCompActionValue } from "../../utils/event.js";
|
|
2
|
-
import { stickyAddButton } from "./stickyAddButton.js";
|
|
3
|
-
import { ActionType } from "@tmagic/core";
|
|
4
1
|
import { has } from "lodash-es";
|
|
2
|
+
import { ActionType } from "@tmagic/core";
|
|
5
3
|
import { defineFormItem } from "@tmagic/form/headless";
|
|
4
|
+
import { getCompActionAllowedValues, getCompActionOptions, getEventNameAllowedValues, getEventNameOptions, normalizeCompActionValue } from "../../utils/event.js";
|
|
5
|
+
import { stickyAddButton } from "./stickyAddButton.js";
|
|
6
6
|
// packages/editor/src/fields/configs/eventSelect.ts
|
|
7
7
|
/**
|
|
8
8
|
* `fields/EventSelect.vue` 内部渲染的各段配置。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { filterFunction } from "@tmagic/form/headless";
|
|
1
2
|
import { editorTypeMatchRules, validateDataSourceFieldSelect } from "../utils/type-match-rules.js";
|
|
2
3
|
import { createCodeSelectConfig, normalizeCodeSelectValue } from "./configs/codeSelect.js";
|
|
3
4
|
import { createDisplayCondsConfig } from "./configs/displayConds.js";
|
|
4
5
|
import { createEventSelectConfig, isLegacyEventValue } from "./configs/eventSelect.js";
|
|
5
6
|
import { createStyleSetterConfig } from "./StyleSetter/configs.js";
|
|
6
|
-
import { filterFunction } from "@tmagic/form/headless";
|
|
7
7
|
// packages/editor/src/fields/headless-validation.ts
|
|
8
8
|
var getName = (config) => `${config.name ?? ""}`;
|
|
9
9
|
/** `code-select` 旧数据兼容:空值改写成 `{ hookType, hookData }`。 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { tMagicMessage } from "@tmagic/design";
|
|
2
1
|
import { nextTick, ref, useTemplateRef } from "vue";
|
|
3
2
|
import { cloneDeep } from "lodash-es";
|
|
3
|
+
import { tMagicMessage } from "@tmagic/design";
|
|
4
4
|
// packages/editor/src/hooks/use-code-block-edit.ts
|
|
5
5
|
var useCodeBlockEdit = (codeBlockService) => {
|
|
6
6
|
const codeConfig = ref();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed, inject, provide, ref, useTemplateRef, watch } from "vue";
|
|
1
2
|
import { useEditorFormContext } from "./use-form-context.js";
|
|
2
3
|
import { getCodeBlockFormConfig } from "../utils/code-block.js";
|
|
3
|
-
import { computed, inject, provide, ref, useTemplateRef, watch } from "vue";
|
|
4
4
|
// packages/editor/src/hooks/use-compare-form.ts
|
|
5
5
|
/**
|
|
6
6
|
* CompareForm / ViewForm 共用逻辑:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useServices } from "./use-services.js";
|
|
2
1
|
import { computed, ref, watch } from "vue";
|
|
2
|
+
import { useServices } from "./use-services.js";
|
|
3
3
|
// packages/editor/src/hooks/use-editor-content-height.ts
|
|
4
4
|
var useEditorContentHeight = () => {
|
|
5
5
|
const { uiService } = useServices();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { updateStatus } from "../utils/tree.js";
|
|
2
|
-
import { traverseNode } from "@tmagic/utils";
|
|
3
1
|
import { ref } from "vue";
|
|
2
|
+
import { traverseNode } from "@tmagic/utils";
|
|
3
|
+
import { updateStatus } from "../utils/tree.js";
|
|
4
4
|
// packages/editor/src/hooks/use-filter.ts
|
|
5
5
|
var useFilter = (nodeData, nodeStatusMap, filterNodeMethod) => {
|
|
6
6
|
const filterIsMatch = (value, data) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useServices } from "./use-services.js";
|
|
2
1
|
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
2
|
+
import { useServices } from "./use-services.js";
|
|
3
3
|
// packages/editor/src/hooks/use-float-box.ts
|
|
4
4
|
var useFloatBox = (slideKeys) => {
|
|
5
5
|
const { uiService } = useServices();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FORM_CONTEXT_KEY, mergeFormContexts } from "@tmagic/form";
|
|
2
1
|
import { computed, inject, unref } from "vue";
|
|
2
|
+
import { FORM_CONTEXT_KEY, mergeFormContexts } from "@tmagic/form";
|
|
3
3
|
// packages/editor/src/hooks/use-form-context.ts
|
|
4
4
|
/**
|
|
5
5
|
* 编辑器注入给表单的业务上下文:`services` 与当前画布 `stage`。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { traverseNode } from "@tmagic/utils";
|
|
2
1
|
import { ref, watch } from "vue";
|
|
2
|
+
import { traverseNode } from "@tmagic/utils";
|
|
3
3
|
// packages/editor/src/hooks/use-node-status.ts
|
|
4
4
|
var createPageNodeStatus = (nodeData, initialLayerNodeStatus) => {
|
|
5
5
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
+
import { computed, watch } from "vue";
|
|
2
|
+
import StageCore, { GuidesType } from "@tmagic/stage";
|
|
3
|
+
import { getIdFromEl } from "@tmagic/utils";
|
|
1
4
|
import { editorService } from "../services/sdk-instance.js";
|
|
2
5
|
import ui_default from "../services/ui.js";
|
|
3
6
|
import { H_GUIDE_LINE_STORAGE_KEY, UI_SELECT_MODE_EVENT_NAME, V_GUIDE_LINE_STORAGE_KEY } from "../utils/const.js";
|
|
4
7
|
import { buildChangeRecords, getGuideLineFromCache } from "../utils/editor.js";
|
|
5
|
-
import StageCore, { GuidesType } from "@tmagic/stage";
|
|
6
|
-
import { getIdFromEl } from "@tmagic/utils";
|
|
7
|
-
import { computed, watch } from "vue";
|
|
8
8
|
// packages/editor/src/hooks/use-stage.ts
|
|
9
9
|
var root = computed(() => editorService.get("root"));
|
|
10
10
|
var page = computed(() => editorService.get("page"));
|
|
11
11
|
var zoom = computed(() => ui_default.get("zoom") || 1);
|
|
12
12
|
var uiSelectMode = computed(() => ui_default.get("uiSelectMode"));
|
|
13
13
|
var getGuideLineKey = (key) => `${key}_${root.value?.id}_${page.value?.id}`;
|
|
14
|
+
/** 选中节点按原文档顺序整组插到 index 之前。顺序不变时返回 null */
|
|
15
|
+
var reorderSiblingItems = (items, ids, index) => {
|
|
16
|
+
const idSet = new Set(ids.map((id) => `${id}`));
|
|
17
|
+
const selected = items.filter((node) => idSet.has(`${node.id}`));
|
|
18
|
+
if (!selected.length) return null;
|
|
19
|
+
const selectedSet = new Set(selected);
|
|
20
|
+
const boundedIndex = Math.min(Math.max(index, 0), items.length);
|
|
21
|
+
const insertAt = items.slice(0, boundedIndex).filter((node) => !selectedSet.has(node)).length;
|
|
22
|
+
const next = items.filter((node) => !selectedSet.has(node));
|
|
23
|
+
next.splice(insertAt, 0, ...selected);
|
|
24
|
+
if (next.length === items.length && next.every((node, itemIndex) => node === items[itemIndex])) return null;
|
|
25
|
+
return next;
|
|
26
|
+
};
|
|
14
27
|
var useStage = (stageOptions) => {
|
|
15
28
|
const stage = new StageCore({
|
|
16
29
|
render: stageOptions.render,
|
|
@@ -104,6 +117,18 @@ var useStage = (stageOptions) => {
|
|
|
104
117
|
});
|
|
105
118
|
});
|
|
106
119
|
stage.on("sort", (ev) => {
|
|
120
|
+
if (ev.srcIds?.length && typeof ev.index === "number") {
|
|
121
|
+
const parent = editorService.getParentById(ev.srcIds[0]);
|
|
122
|
+
const next = parent?.items && reorderSiblingItems(parent.items, ev.srcIds, ev.index);
|
|
123
|
+
if (parent && next) {
|
|
124
|
+
editorService.update({
|
|
125
|
+
...parent,
|
|
126
|
+
items: next
|
|
127
|
+
}, { historySource: "stage" });
|
|
128
|
+
editorService.multiSelect(ev.srcIds);
|
|
129
|
+
}
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
107
132
|
editorService.sort(ev.src, ev.dist, { historySource: "stage" });
|
|
108
133
|
});
|
|
109
134
|
stage.on("remove", (ev) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CenterIcon_vue_vue_type_script_setup_true_lang_default from "./CenterIcon.
|
|
1
|
+
import CenterIcon_vue_vue_type_script_setup_true_lang_default from "./CenterIcon.vue.js";
|
|
2
2
|
// packages/editor/src/icons/CenterIcon.vue
|
|
3
3
|
var CenterIcon_default = CenterIcon_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { CenterIcon_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CodeIcon_vue_vue_type_script_setup_true_lang_default from "./CodeIcon.
|
|
1
|
+
import CodeIcon_vue_vue_type_script_setup_true_lang_default from "./CodeIcon.vue.js";
|
|
2
2
|
// packages/editor/src/icons/CodeIcon.vue
|
|
3
3
|
var CodeIcon_default = CodeIcon_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { CodeIcon_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import FolderMinusIcon_vue_vue_type_script_setup_true_lang_default from "./FolderMinusIcon.
|
|
1
|
+
import FolderMinusIcon_vue_vue_type_script_setup_true_lang_default from "./FolderMinusIcon.vue.js";
|
|
2
2
|
// packages/editor/src/icons/FolderMinusIcon.vue
|
|
3
3
|
var FolderMinusIcon_default = FolderMinusIcon_vue_vue_type_script_setup_true_lang_default;
|
|
4
4
|
export { FolderMinusIcon_default as default };
|