@robot-admin/naive-ui-components 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +8 -5
- package/README_EN.md +21 -18
- package/THIRD_PARTY_NOTICES.md +10 -1
- package/dist/BPMN.cjs +1 -0
- package/dist/BPMN.js +1 -0
- package/dist/C_ActionBar.css +68 -55
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.cjs +1 -1
- package/dist/C_AntV.css +156 -153
- package/dist/C_AntV.js +1 -1
- package/dist/C_AntV2.cjs +1 -4
- package/dist/C_AntV2.js +1 -4
- package/dist/C_AudioPlayer.css +74 -61
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AutoComplete.css +3 -3
- package/dist/C_AutoComplete2.cjs +1 -1
- package/dist/C_AutoComplete2.js +1 -1
- package/dist/C_AvatarGroup.css +38 -38
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_Barcode.css +9 -9
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Breadcrumb.css +73 -60
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.css +74 -40
- package/dist/C_Captcha.d.ts +2 -2
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat.css +136 -115
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +57 -56
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.cjs +1 -1
- package/dist/C_Code.css +110 -45
- package/dist/C_Code.js +1 -1
- package/dist/C_Code2.cjs +2 -1
- package/dist/C_Code2.js +2 -1
- package/dist/C_CollapsePanel.css +67 -54
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +36 -23
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +144 -131
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +95 -80
- package/dist/C_DataPicker.d.cts +3 -2
- package/dist/C_DataPicker.d.ts +5 -4
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_DataPicker2.cjs +1 -0
- package/dist/C_DataPicker2.js +1 -0
- package/dist/C_Date.css +5 -5
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Draggable.css +71 -71
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +51 -76
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +109 -109
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +64 -74
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +64 -74
- package/dist/C_Form.d.cts +1 -2
- package/dist/C_Form.d.ts +2 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.css +69 -56
- package/dist/C_FormModal.d.ts +2 -2
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +99 -99
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormulaEditor.css +171 -150
- package/dist/C_FullCalendar.css +35 -11
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch.css +221 -200
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +37 -24
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.css +13 -0
- package/dist/C_ImageCropper.css +41 -40
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Language.css +15 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Loading.css +18 -18
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +88 -54
- package/dist/C_Login.d.ts +2 -2
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +13 -13
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Markdown.css +69 -60
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +173 -199
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.css +16 -16
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_PageLoading.css +33 -33
- package/dist/C_QRCode.css +14 -14
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Select.css +4 -4
- package/dist/C_Select.d.cts +1 -1
- package/dist/C_Select.d.ts +1 -1
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Signature.css +25 -25
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Skeleton.css +28 -16
- package/dist/C_Skeleton2.cjs +1 -1
- package/dist/C_Skeleton2.js +1 -1
- package/dist/C_SplitPane.css +82 -70
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Steps.css +48 -48
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +302 -299
- package/dist/C_Table.css +238 -225
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +9 -5
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Tabs.css +11 -51
- package/dist/C_TagsView.css +91 -84
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +13 -0
- package/dist/C_Time.css +5 -5
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.css +112 -71
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +69 -60
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +30 -30
- package/dist/C_Tree.d.cts +2 -1
- package/dist/C_Tree.d.ts +8 -4
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +113 -116
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.cjs +1 -0
- package/dist/C_UserPicker.css +75 -0
- package/dist/C_UserPicker.d.cts +3 -0
- package/dist/C_UserPicker.d.ts +7 -0
- package/dist/C_UserPicker.js +1 -0
- package/dist/C_VideoPlayer.cjs +1 -1
- package/dist/C_VideoPlayer.css +138 -119
- package/dist/C_VideoPlayer.js +1 -1
- package/dist/C_VideoPlayer2.cjs +3 -3
- package/dist/C_VideoPlayer2.js +3 -3
- package/dist/C_VtableGantt.css +37 -40
- package/dist/C_WaterFall.css +55 -46
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +757 -541
- package/dist/C_WorkFlow.d.cts +2 -2
- package/dist/C_WorkFlow.d.ts +7 -2
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/Dynamic.cjs +1 -1
- package/dist/Dynamic.js +1 -1
- package/dist/ER.cjs +1 -0
- package/dist/ER.js +1 -0
- package/dist/NodeConfigModal.cjs +1 -0
- package/dist/NodeConfigModal.js +1 -0
- package/dist/SearchFieldSettings.cjs +1 -1
- package/dist/SearchFieldSettings.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/UML.cjs +4 -0
- package/dist/UML.js +4 -0
- package/dist/conditions.cjs +1 -0
- package/dist/conditions.js +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -10
- package/dist/config.d.ts +3 -10
- package/dist/config.js +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +3 -3
- package/dist/constants4.d.ts +3 -3
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.cjs +1 -0
- package/dist/{useFormConfig.d.cts → context.d.cts} +8 -2
- package/dist/{useFormConfig.d.ts → context.d.ts} +8 -2
- package/dist/context.js +1 -0
- package/dist/createPageLoading.cjs +1 -1
- package/dist/createPageLoading.js +1 -1
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/data3.cjs +1 -1
- package/dist/data3.js +1 -1
- package/dist/dateRange.d.ts +1 -1
- package/dist/editors.d.cts +10 -235
- package/dist/editors.d.ts +10 -235
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +1 -1
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +7 -1190
- package/dist/formField.d.ts +7 -1190
- package/dist/formField.js +1 -1
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -11
- package/dist/index.d.ts +17 -12
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +3 -0
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +4 -5
- package/dist/index14.vue.d.cts +4 -5
- package/dist/index15.vue.d.ts +1 -1
- package/dist/index16.vue.d.cts +1 -1
- package/dist/index16.vue.d.ts +6 -6
- package/dist/index17.vue.d.cts +6 -6
- package/dist/index17.vue.d.ts +7 -7
- package/dist/index18.vue.d.cts +7 -7
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +3 -3
- package/dist/index22.vue.d.cts +3 -3
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +1 -1
- package/dist/index30.vue.d.ts +1 -1
- package/dist/index31.vue.d.cts +5 -5
- package/dist/index31.vue.d.ts +5 -5
- package/dist/index4.vue.d.cts +7 -7
- package/dist/index4.vue.d.ts +7 -7
- package/dist/index7.vue.d.ts +2 -0
- package/dist/index8.vue.d.cts +2 -0
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +3 -0
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/readonlyGraph.cjs +1 -0
- package/dist/readonlyGraph.js +1 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/shared-tokens.css +1 -1
- package/dist/source.cjs +1 -0
- package/dist/source.d.cts +37 -0
- package/dist/source.d.ts +37 -0
- package/dist/source.js +1 -0
- package/dist/style.css +3987 -3568
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.cts +73 -0
- package/dist/theme.d.ts +73 -0
- package/dist/theme.js +1 -0
- package/dist/theme2.cjs +1 -0
- package/dist/theme2.js +1 -0
- package/dist/types3.d.ts +1223 -53
- package/dist/types4.d.cts +1223 -53
- package/dist/types4.d.ts +55 -45
- package/dist/types5.d.cts +55 -45
- package/dist/types5.d.ts +50 -0
- package/dist/types6.d.cts +50 -0
- package/dist/types6.d.ts +284 -0
- package/dist/types7.d.cts +284 -0
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +1 -1
- package/dist/useCollapsePanel.d.ts +1 -1
- package/dist/useComponentDensity.cjs +1 -0
- package/dist/useComponentDensity.js +1 -0
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useComponentTheme.cjs +1 -0
- package/dist/useComponentTheme.js +1 -0
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDynamicFormState.d.cts +4 -4
- package/dist/useDynamicFormState.d.ts +4 -4
- package/dist/useEdgeInteraction.cjs +1 -0
- package/dist/useEdgeInteraction.d.cts +21 -4
- package/dist/useEdgeInteraction.d.ts +21 -4
- package/dist/useEdgeInteraction.js +1 -0
- package/dist/useFormConfig.cjs +1 -1
- package/dist/useFormConfig.js +1 -1
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFormulaEvaluator.cjs +2 -2
- package/dist/useFormulaEvaluator.js +2 -2
- package/dist/useFullscreen.d.cts +3 -3
- package/dist/useFullscreen.d.ts +3 -3
- package/dist/useGraphExport.cjs +1 -0
- package/dist/useGraphExport.js +1 -0
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +5 -5
- package/dist/useSignatureHistory.d.ts +5 -5
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useWorkflowValidation.d.cts +167 -45
- package/dist/useWorkflowValidation.d.ts +167 -45
- package/dist/verification.d.cts +2 -3
- package/dist/verification.d.ts +2 -3
- package/docs/components.en.md +8 -7
- package/docs/components.md +8 -7
- package/docs/guides/theme.md +79 -0
- package/docs/guides/user-picker.md +124 -0
- package/docs/guides/workflow-people.md +60 -0
- package/docs/guides/workflow.md +153 -0
- package/docs/people-workflow-review-20261114.md +75 -0
- package/licenses/VueFlow.txt +20 -0
- package/package.json +1 -1
- /package/dist/{config2.d.ts → component-config.d.ts} +0 -0
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -96,18 +96,18 @@ interface ExcelLoadResult {
|
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
98
98
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
99
|
-
download: (file: string | File) => any;
|
|
100
99
|
preview: (file: string | File) => any;
|
|
100
|
+
download: (file: string | File) => any;
|
|
101
101
|
"update:show": (show: boolean) => any;
|
|
102
102
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
103
|
-
onDownload?: ((file: string | File) => any) | undefined;
|
|
104
103
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
104
|
+
onDownload?: ((file: string | File) => any) | undefined;
|
|
105
105
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
|
-
inline: boolean;
|
|
108
107
|
show: boolean;
|
|
109
108
|
fileName: string;
|
|
110
109
|
autoPreview: boolean;
|
|
110
|
+
inline: boolean;
|
|
111
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
112
112
|
declare const _default: typeof __VLS_export;
|
|
113
113
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk.cjs`),t=require(`./feedback.cjs`),n=require(`./useComponentTheme.cjs`);let r=require(`vue`),i=require(`@antv/x6`),a=require(`html2canvas`);a=e.n(a);function o(e,t){let n=t&&getComputedStyle(t),r=t=>String(n?.getPropertyValue(`--c-${t}`).trim()||e[`--c-${t}`]||e[`--c-theme-${t}`]);return{background:r(`bg-body`),gridPrimary:r(`border`),gridSecondary:r(`bg-muted`)}}function s(e){return{background:{color:e.background},grid:{visible:!0,type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]},mousewheel:{enabled:!0,zoomAtMousePosition:!0,modifiers:`ctrl`,minScale:.5,maxScale:2},selecting:{enabled:!0,rubberband:!0,movable:!0,showNodeSelectionBox:!0},resizing:!0,rotating:!0,snapline:!0,keyboard:!0,clipboard:!0}}function c(e){return e?{width:e.clientWidth||e.offsetWidth||800,height:e.clientHeight||e.offsetHeight||600}:{width:0,height:0}}function l(e,t){let a=n.n(()=>t===void 0?void 0:t.value?`dark`:`light`),l=(0,r.computed)(()=>o(a.value,e.value)),u=(0,r.computed)(()=>{let{background:e,grid:t}=s(l.value);return{background:e,grid:t}}),d=0,f,p=!1,m=(0,r.shallowRef)(null),h=(0,r.ref)(!1),g=t=>{if(!p){h.value=!0;try{if(!e.value)return;m.value&&=(m.value.dispose(),null);let{width:n,height:r}=c(e.value),a=s(l.value);m.value=new i.Graph({container:e.value,width:n,height:r,...a,...t,background:t.background??a.background,grid:t.grid??a.grid})}catch{}finally{h.value=!1}}},_=async(e={})=>{let t=++d;await(0,r.nextTick)(),t===d&&g(e)};function v(){if(!m.value)return;let e=l.value;m.value.drawBackground?.({color:e.background}),m.value.drawGrid?.({type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]})}(0,r.watch)(l,v,{flush:`post`});function y(){if(d++,clearTimeout(f),f=void 0,m.value){let e=m.value;m.value=null,e.dispose()}}function b(){m.value?.centerContent()}function x(){m.value?.zoomToFit({padding:20,maxScale:1})}function S(e=200,t=20){clearTimeout(f);let n=m.value;n&&(f=setTimeout(()=>{!p&&m.value===n&&n.zoomToFit({padding:t,maxScale:1})},e))}function C(e){m.value?.zoom(e)}function w(){if(m.value&&e.value){let{width:t,height:n}=c(e.value);m.value.resize(t,n)}}return(0,r.onUnmounted)(()=>{p=!0,y()}),{graph:m,loading:h,initGraph:_,destroyGraph:y,centerContent:b,zoomToFit:x,scheduleZoomToFit:S,zoom:C,resizeGraph:w,updateTheme:v,themeOptions:u}}function u(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.style.display=`none`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}function d(e,t=`diagram.json`){let n=JSON.stringify(e,null,2);u(new Blob([n],{type:`application/json`}),t)}async function f(e,t=`diagram.png`,n={}){let{backgroundColor:r=`#ffffff`,scale:i=2}=n,{container:o}=e;u(await m(await(0,a.default)(o,{backgroundColor:r,scale:i,useCORS:!0,logging:!1}),`image/png`),t)}function p(e,t=`diagram.svg`){let n=e.container.querySelector(`svg`);if(!n)throw Error(`SVG导出失败: 未找到图表 SVG 元素`);let r=n.cloneNode(!0),i=new Set([...n.outerHTML.matchAll(/var\((--[\w-]+)/g)].map(e=>e[1])),a=getComputedStyle(n);for(let e of i){let t=a.getPropertyValue(e).trim();t&&r.style.setProperty(e,t)}r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),r.getAttribute(`xmlns:xlink`)||r.setAttribute(`xmlns:xlink`,`http://www.w3.org/1999/xlink`);let o=new XMLSerializer().serializeToString(r);u(new Blob([o],{type:`image/svg+xml;charset=utf-8`}),t)}function m(e,t,n=1){return new Promise((r,i)=>{e.toBlob(e=>{e?r(e):i(Error(`Canvas 转 Blob 失败`))},t,n)})}const h=[{label:`导出PNG`,key:`png`},{label:`导出SVG`,key:`svg`},{label:`导出JSON`,key:`json`}];function g(e,n=`diagram`){let r=t.t();return{exportOptions:h,handleExport:async(t,i)=>{if(e.value)try{switch(t){case`png`:await f(e.value,`${n}.png`);break;case`svg`:p(e.value,`${n}.svg`);break;case`json`:i&&d(i(),`${n}.json`);break}}catch(e){r.error(`导出${t.toUpperCase()}失败,请重试`,e)}}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./feedback.js";import{n as t}from"./useComponentTheme.js";import{computed as n,nextTick as r,onUnmounted as i,ref as a,shallowRef as o,watch as s}from"vue";import{Graph as c}from"@antv/x6";import l from"html2canvas";function u(e,t){let n=t&&getComputedStyle(t),r=t=>String(n?.getPropertyValue(`--c-${t}`).trim()||e[`--c-${t}`]||e[`--c-theme-${t}`]);return{background:r(`bg-body`),gridPrimary:r(`border`),gridSecondary:r(`bg-muted`)}}function d(e){return{background:{color:e.background},grid:{visible:!0,type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]},mousewheel:{enabled:!0,zoomAtMousePosition:!0,modifiers:`ctrl`,minScale:.5,maxScale:2},selecting:{enabled:!0,rubberband:!0,movable:!0,showNodeSelectionBox:!0},resizing:!0,rotating:!0,snapline:!0,keyboard:!0,clipboard:!0}}function f(e){return e?{width:e.clientWidth||e.offsetWidth||800,height:e.clientHeight||e.offsetHeight||600}:{width:0,height:0}}function p(e,l){let p=t(()=>l===void 0?void 0:l.value?`dark`:`light`),m=n(()=>u(p.value,e.value)),h=n(()=>{let{background:e,grid:t}=d(m.value);return{background:e,grid:t}}),g=0,_,v=!1,y=o(null),b=a(!1),x=t=>{if(!v){b.value=!0;try{if(!e.value)return;y.value&&=(y.value.dispose(),null);let{width:n,height:r}=f(e.value),i=d(m.value);y.value=new c({container:e.value,width:n,height:r,...i,...t,background:t.background??i.background,grid:t.grid??i.grid})}catch{}finally{b.value=!1}}},S=async(e={})=>{let t=++g;await r(),t===g&&x(e)};function C(){if(!y.value)return;let e=m.value;y.value.drawBackground?.({color:e.background}),y.value.drawGrid?.({type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]})}s(m,C,{flush:`post`});function w(){if(g++,clearTimeout(_),_=void 0,y.value){let e=y.value;y.value=null,e.dispose()}}function T(){y.value?.centerContent()}function E(){y.value?.zoomToFit({padding:20,maxScale:1})}function D(e=200,t=20){clearTimeout(_);let n=y.value;n&&(_=setTimeout(()=>{!v&&y.value===n&&n.zoomToFit({padding:t,maxScale:1})},e))}function O(e){y.value?.zoom(e)}function k(){if(y.value&&e.value){let{width:t,height:n}=f(e.value);y.value.resize(t,n)}}return i(()=>{v=!0,w()}),{graph:y,loading:b,initGraph:S,destroyGraph:w,centerContent:T,zoomToFit:E,scheduleZoomToFit:D,zoom:O,resizeGraph:k,updateTheme:C,themeOptions:h}}function m(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.style.display=`none`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}function h(e,t=`diagram.json`){let n=JSON.stringify(e,null,2);m(new Blob([n],{type:`application/json`}),t)}async function g(e,t=`diagram.png`,n={}){let{backgroundColor:r=`#ffffff`,scale:i=2}=n,{container:a}=e;m(await v(await l(a,{backgroundColor:r,scale:i,useCORS:!0,logging:!1}),`image/png`),t)}function _(e,t=`diagram.svg`){let n=e.container.querySelector(`svg`);if(!n)throw Error(`SVG导出失败: 未找到图表 SVG 元素`);let r=n.cloneNode(!0),i=new Set([...n.outerHTML.matchAll(/var\((--[\w-]+)/g)].map(e=>e[1])),a=getComputedStyle(n);for(let e of i){let t=a.getPropertyValue(e).trim();t&&r.style.setProperty(e,t)}r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),r.getAttribute(`xmlns:xlink`)||r.setAttribute(`xmlns:xlink`,`http://www.w3.org/1999/xlink`);let o=new XMLSerializer().serializeToString(r);m(new Blob([o],{type:`image/svg+xml;charset=utf-8`}),t)}function v(e,t,n=1){return new Promise((r,i)=>{e.toBlob(e=>{e?r(e):i(Error(`Canvas 转 Blob 失败`))},t,n)})}const y=[{label:`导出PNG`,key:`png`},{label:`导出SVG`,key:`svg`},{label:`导出JSON`,key:`json`}];function b(t,n=`diagram`){let r=e();return{exportOptions:y,handleExport:async(e,i)=>{if(t.value)try{switch(e){case`png`:await g(t.value,`${n}.png`);break;case`svg`:_(t.value,`${n}.svg`);break;case`json`:i&&h(i(),`${n}.json`);break}}catch(t){r.error(`导出${e.toUpperCase()}失败,请重试`,t)}}}}export{p as n,b as t};
|
|
@@ -88,10 +88,10 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
loading: boolean;
|
|
91
|
-
virtualScroll: boolean;
|
|
92
|
-
gap: number;
|
|
93
91
|
columns: number;
|
|
92
|
+
gap: number;
|
|
94
93
|
lazy: boolean;
|
|
94
|
+
virtualScroll: boolean;
|
|
95
95
|
infinite: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
|
@@ -88,10 +88,10 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
loading: boolean;
|
|
91
|
-
virtualScroll: boolean;
|
|
92
|
-
gap: number;
|
|
93
91
|
columns: number;
|
|
92
|
+
gap: number;
|
|
94
93
|
lazy: boolean;
|
|
94
|
+
virtualScroll: boolean;
|
|
95
95
|
infinite: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
showBorder: boolean;
|
|
54
|
-
label: string;
|
|
55
|
-
showLabel: boolean;
|
|
56
53
|
size: number;
|
|
57
54
|
color: string;
|
|
55
|
+
label: string;
|
|
58
56
|
mode: RenderMode;
|
|
57
|
+
showBorder: boolean;
|
|
58
|
+
margin: number;
|
|
59
59
|
bgColor: string;
|
|
60
60
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
61
|
logo: LogoOptions;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
showBorder: boolean;
|
|
54
|
-
label: string;
|
|
55
|
-
showLabel: boolean;
|
|
56
53
|
size: number;
|
|
57
54
|
color: string;
|
|
55
|
+
label: string;
|
|
58
56
|
mode: RenderMode;
|
|
57
|
+
showBorder: boolean;
|
|
58
|
+
margin: number;
|
|
59
59
|
bgColor: string;
|
|
60
60
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
61
|
logo: LogoOptions;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
|
@@ -92,8 +92,8 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
-
error: (error: Error) => any;
|
|
96
95
|
change: (data: SignatureStroke[]) => any;
|
|
96
|
+
error: (error: Error) => any;
|
|
97
97
|
clear: () => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
@@ -101,8 +101,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onError?: ((error: Error) => any) | undefined;
|
|
105
104
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
|
+
onError?: ((error: Error) => any) | undefined;
|
|
106
106
|
onClear?: (() => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
@@ -110,11 +110,11 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
-
width: number | string;
|
|
114
|
-
height: number | string;
|
|
115
113
|
disabled: boolean;
|
|
116
|
-
|
|
114
|
+
height: number | string;
|
|
117
115
|
showToolbar: boolean;
|
|
116
|
+
width: number | string;
|
|
117
|
+
readonly: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const _default: typeof __VLS_export;
|
|
@@ -92,8 +92,8 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
-
error: (error: Error) => any;
|
|
96
95
|
change: (data: SignatureStroke[]) => any;
|
|
96
|
+
error: (error: Error) => any;
|
|
97
97
|
clear: () => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
@@ -101,8 +101,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onError?: ((error: Error) => any) | undefined;
|
|
105
104
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
|
+
onError?: ((error: Error) => any) | undefined;
|
|
106
106
|
onClear?: (() => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
@@ -110,11 +110,11 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
-
width: number | string;
|
|
114
|
-
height: number | string;
|
|
115
113
|
disabled: boolean;
|
|
116
|
-
|
|
114
|
+
height: number | string;
|
|
117
115
|
showToolbar: boolean;
|
|
116
|
+
width: number | string;
|
|
117
|
+
readonly: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const _default: typeof __VLS_export;
|
|
@@ -55,25 +55,25 @@ type __VLS_Slots = {
|
|
|
55
55
|
second(props: PanelInfo): unknown;
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
"drag-start": (size: number) => any;
|
|
59
|
-
"drag-end": (size: number) => any;
|
|
60
58
|
expand: (target: CollapseTarget) => any;
|
|
61
59
|
resize: (firstSize: number, secondSize: number) => any;
|
|
62
|
-
|
|
60
|
+
"drag-start": (size: number) => any;
|
|
61
|
+
"drag-end": (size: number) => any;
|
|
63
62
|
"update:size": (size: number) => any;
|
|
63
|
+
collapse: (target: CollapseTarget) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
|
-
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
66
|
-
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
67
65
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
68
66
|
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
69
|
-
|
|
67
|
+
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
68
|
+
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
70
69
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
70
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
direction: SplitDirection;
|
|
73
73
|
collapsible: boolean;
|
|
74
74
|
disabled: boolean;
|
|
75
|
-
step: number;
|
|
76
75
|
maxSize: number;
|
|
76
|
+
step: number;
|
|
77
77
|
defaultSize: number;
|
|
78
78
|
minSize: number;
|
|
79
79
|
minFirstSize: number;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -55,25 +55,25 @@ type __VLS_Slots = {
|
|
|
55
55
|
second(props: PanelInfo): unknown;
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
"drag-start": (size: number) => any;
|
|
59
|
-
"drag-end": (size: number) => any;
|
|
60
58
|
expand: (target: CollapseTarget) => any;
|
|
61
59
|
resize: (firstSize: number, secondSize: number) => any;
|
|
62
|
-
|
|
60
|
+
"drag-start": (size: number) => any;
|
|
61
|
+
"drag-end": (size: number) => any;
|
|
63
62
|
"update:size": (size: number) => any;
|
|
63
|
+
collapse: (target: CollapseTarget) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
|
-
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
66
|
-
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
67
65
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
68
66
|
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
69
|
-
|
|
67
|
+
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
68
|
+
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
70
69
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
70
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
direction: SplitDirection;
|
|
73
73
|
collapsible: boolean;
|
|
74
74
|
disabled: boolean;
|
|
75
|
-
step: number;
|
|
76
75
|
maxSize: number;
|
|
76
|
+
step: number;
|
|
77
77
|
defaultSize: number;
|
|
78
78
|
minSize: number;
|
|
79
79
|
minFirstSize: number;
|