@robot-admin/naive-ui-components 0.37.2 → 0.39.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.
Files changed (124) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +7 -2
  3. package/README_EN.md +7 -2
  4. package/dist/C_AntV.css +30 -30
  5. package/dist/C_AudioPlayer.css +4 -4
  6. package/dist/C_Captcha.css +31 -19
  7. package/dist/C_FilePreview.css +1 -1
  8. package/dist/C_Form.base.css +61 -58
  9. package/dist/C_Form.css +61 -58
  10. package/dist/C_GlobalSearch.css +12 -12
  11. package/dist/C_Guide.css +6 -6
  12. package/dist/C_Guide2.cjs +1 -1
  13. package/dist/C_Guide2.js +1 -1
  14. package/dist/C_Login.css +139 -112
  15. package/dist/C_Login2.cjs +1 -1
  16. package/dist/C_Login2.js +1 -1
  17. package/dist/C_NotificationCenter.css +91 -91
  18. package/dist/C_NotificationCenter2.cjs +1 -1
  19. package/dist/C_NotificationCenter2.js +1 -1
  20. package/dist/C_Table.base.css +225 -215
  21. package/dist/C_Table.css +164 -157
  22. package/dist/C_Table.d.cts +1 -0
  23. package/dist/C_Table2.cjs +4 -4
  24. package/dist/C_Table2.js +4 -4
  25. package/dist/C_Timeline.css +2 -2
  26. package/dist/C_Tree.d.cts +1 -0
  27. package/dist/C_VideoPlayer.css +26 -26
  28. package/dist/C_VideoPlayer2.cjs +1 -1
  29. package/dist/C_VideoPlayer2.js +1 -1
  30. package/dist/C_VtableGantt.css +34 -32
  31. package/dist/C_WorkFlow.css +35 -35
  32. package/dist/C_WorkFlow2.cjs +1 -1
  33. package/dist/C_WorkFlow2.js +1 -1
  34. package/dist/Card.cjs +1 -1
  35. package/dist/Card.js +1 -1
  36. package/dist/UML.cjs +1 -1
  37. package/dist/UML.js +1 -1
  38. package/dist/component-config.d.ts +1 -1
  39. package/dist/config.d.cts +2 -2
  40. package/dist/config.d.ts +2 -2
  41. package/dist/constants3.d.cts +1 -1
  42. package/dist/constants3.d.ts +1 -1
  43. package/dist/constants4.d.cts +7 -7
  44. package/dist/constants4.d.ts +7 -7
  45. package/dist/constants5.d.cts +2 -2
  46. package/dist/constants5.d.ts +2 -2
  47. package/dist/context.d.cts +1 -1
  48. package/dist/data2.d.cts +4 -4
  49. package/dist/data2.d.ts +4 -4
  50. package/dist/editors.d.cts +6 -6
  51. package/dist/editors.d.ts +6 -6
  52. package/dist/graphics.cjs +1 -1
  53. package/dist/graphics.d.cts +0 -45
  54. package/dist/graphics.d.ts +0 -45
  55. package/dist/graphics.js +1 -1
  56. package/dist/index.d.cts +3 -2
  57. package/dist/index.d.ts +2 -2
  58. package/dist/index.vue.d.cts +3 -3
  59. package/dist/index.vue.d.ts +3 -3
  60. package/dist/index10.vue.d.ts +4 -4
  61. package/dist/index11.vue.d.cts +4 -4
  62. package/dist/index11.vue.d.ts +4 -4
  63. package/dist/index12.vue.d.cts +4 -4
  64. package/dist/index13.vue.d.ts +3 -3
  65. package/dist/index14.vue.d.cts +3 -3
  66. package/dist/index15.vue.d.ts +2 -2
  67. package/dist/index16.vue.d.cts +2 -2
  68. package/dist/index16.vue.d.ts +1 -1
  69. package/dist/index17.vue.d.cts +1 -1
  70. package/dist/index17.vue.d.ts +6 -6
  71. package/dist/index18.vue.d.cts +6 -6
  72. package/dist/index18.vue.d.ts +1 -1
  73. package/dist/index19.vue.d.cts +1 -1
  74. package/dist/index20.vue.d.ts +1 -1
  75. package/dist/index21.vue.d.cts +1 -1
  76. package/dist/index27.vue.d.cts +2 -2
  77. package/dist/index27.vue.d.ts +2 -2
  78. package/dist/index28.vue.d.cts +1 -1
  79. package/dist/index28.vue.d.ts +1 -1
  80. package/dist/index3.vue.d.cts +2 -2
  81. package/dist/index3.vue.d.ts +2 -2
  82. package/dist/index31.vue.d.cts +3 -3
  83. package/dist/index31.vue.d.ts +3 -3
  84. package/dist/index32.vue.d.cts +2 -2
  85. package/dist/index32.vue.d.ts +2 -2
  86. package/dist/index4.vue.d.cts +5 -5
  87. package/dist/index4.vue.d.ts +5 -5
  88. package/dist/mapUtils.d.cts +3 -3
  89. package/dist/mapUtils.d.ts +3 -3
  90. package/dist/shared-tokens.css +1 -1
  91. package/dist/style.css +607 -568
  92. package/dist/theme.cjs +1 -1
  93. package/dist/theme.d.cts +32 -8
  94. package/dist/theme.d.ts +32 -8
  95. package/dist/theme.js +1 -1
  96. package/dist/theme2.cjs +1 -1
  97. package/dist/theme2.js +1 -1
  98. package/dist/useCollapsePanel.d.cts +3 -3
  99. package/dist/useCollapsePanel.d.ts +3 -3
  100. package/dist/useComponentTheme.cjs +1 -1
  101. package/dist/useComponentTheme.js +1 -1
  102. package/dist/useCropperCore.d.cts +6 -6
  103. package/dist/useCropperCore.d.ts +6 -6
  104. package/dist/useDynamicFormState.d.cts +2 -2
  105. package/dist/useDynamicFormState.d.ts +2 -2
  106. package/dist/useEdgeInteraction.d.cts +1 -1
  107. package/dist/useEdgeInteraction.d.ts +1 -1
  108. package/dist/useFullscreen.d.cts +1 -1
  109. package/dist/useFullscreen.d.ts +1 -1
  110. package/dist/useInfiniteScroll.d.cts +1 -1
  111. package/dist/useInfiniteScroll.d.ts +1 -1
  112. package/dist/useQRCode.d.cts +5 -5
  113. package/dist/useQRCode.d.ts +5 -5
  114. package/dist/useSignatureHistory.d.cts +3 -3
  115. package/dist/useSignatureHistory.d.ts +3 -3
  116. package/dist/useSplitResize.d.cts +8 -8
  117. package/dist/useSplitResize.d.ts +8 -8
  118. package/dist/useWorkflowValidation.d.cts +84 -84
  119. package/dist/useWorkflowValidation.d.ts +84 -84
  120. package/dist/verification.d.cts +2 -2
  121. package/dist/verification.d.ts +2 -2
  122. package/docs/guides/table-density.md +12 -0
  123. package/docs/guides/theme.md +49 -3
  124. package/package.json +2 -1
package/dist/graphics.cjs CHANGED
@@ -1 +1 @@
1
- require(`./chunk.cjs`);const e=require(`./useComponentTheme.cjs`),t=require(`./export-helper.cjs`),n=require(`./C_Icon2.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},o={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:a},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:a,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle},bodyStyle:a.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle,borderColor:`#ffa940`},bodyStyle:{...a.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...a.headerStyle,fontSize:18,color:`red`},bodyStyle:{...a.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},s=new Set([`__proto__`,`prototype`,`constructor`]),c=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function l(e,t){let n=new WeakMap,r=(e,t)=>{let i=n.get(t);if(i)return i;let a={...e};n.set(t,a);for(let[n,i]of Object.entries(t))s.has(n)||(a[n]=c(i)?r(c(e[n])?e[n]:{},i):i);return a};return r(e,t)}function u(e,t,n){e.on(`click_task_bar`,e=>{e.record&&t(e.record,e.event)}),e.on(`change_date_range`,e=>{if(e.record){let t={start:e.startDate,end:e.endDate};n({...e.record,...t},t)}}),e.on(`progress_update`,e=>{if(e.record){let t={progress:e.progress};n({...e.record,...t},t)}});let r=e.taskListTableInstance;r&&(r.on(`click_cell`,e=>{let n=r.getCellOriginRecord(e.col,e.row);n&&typeof n==`object`&&`id`in n&&t(n,e.event)}),r.on(`change_cell_value`,e=>{let t=r.getCellOriginRecord(e.col,e.row),i=r.getHeaderField(e.col,e.row);t&&typeof i==`string`&&n({...t,[i]:e.changedValue},{[i]:e.changedValue})}))}const d={key:0,class:`gantt-toolbar`},f={class:`toolbar-left`},p={class:`gantt-title`},m={class:`toolbar-right`},h={class:`gantt-body`},g=(0,r.defineComponent)({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{}},emits:[`ganttCreated`,`taskClick`,`taskChange`,`error`],setup(t,{expose:a,emit:s}){let c=t,g=e.t(()=>c.theme),_=e.n(()=>c.theme),v=s,y=(0,r.ref)(),b=(0,r.shallowRef)(),x=(0,r.ref)(!1),S=(0,r.ref)(!1),C=(0,r.shallowRef)(),w=0,T,E=!1,D,O,k,A=(0,r.computed)(()=>typeof c.height==`number`?`${c.height}px`:c.height),j=(e,t)=>!E&&e===w&&y.value===t,M=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?M(e.children):void 0})),N=e=>String(_.value[`--c-${e}`]??_.value[`--c-theme-${e}`]),P=()=>({underlayBackgroundColor:N(`bg-body`),timelineHeaderBg:N(`bg-muted`),gridBg:N(`bg-card`),lineColor:N(`border`),textColor:N(`text-1`)}),F=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),I=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),L=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n.extends(e.taskListTable?.theme??{})},timelineHeader:F(e.timelineHeader,r),grid:I(e.grid,r)}),R=(e,t,n)=>L(t,n,g.value===`dark`?e.DARK:e.DEFAULT,P()),z=e=>{if(e)try{e.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}},B=(e,t,n)=>{e.editor(t)||e.editor(t,n())},V=async()=>{clearTimeout(T),T=void 0;let e=y.value;if(!e||E)return;let t=++w;S.value=!0,C.value=void 0;let n;try{let[{Gantt:r},{themes:i,register:a},{InputEditor:s,DateInputEditor:d}]=await Promise.all([import(`@visactor/vtable-gantt`),import(`@visactor/vtable`),import(`@visactor/vtable-editors`)]);if(!j(t,e))return;B(a,`input`,()=>new s),B(a,`date-input`,()=>new d);let f=l(o[c.preset]||o.basic,c.options),p=R(i,f,M(c.data));K();let m=new r(e,p);if(n=m,!j(t,e)){m.release();return}u(m,(e,t)=>v(`taskClick`,e,t),(e,t)=>v(`taskChange`,e,t)),b.value=m,D=p,O=f,k=i,n=void 0,v(`ganttCreated`,m)}catch(r){if(z(n),!j(t,e))return;C.value=r instanceof Error?r:Error(String(r)),v(`error`,C.value)}finally{j(t,e)&&(S.value=!1)}},H=async()=>{let e=y.value;if(e)try{document.fullscreenElement===e?await document.exitFullscreen():await e.requestFullscreen(),x.value=document.fullscreenElement===e}catch(t){console.warn(`全屏切换失败:`,t),x.value=document.fullscreenElement===e}},U=()=>{x.value=document.fullscreenElement===y.value},W=e=>{if(b.value&&e)try{let t=M(e);b.value.setRecords(t),D&&={...D,records:t}}catch(e){console.warn(`更新数据失败:`,e)}},G=e=>{if(b.value&&D&&O&&k)try{let t=l(O,e),n=R(k,t,D.records??[]);b.value.updateOption(n),D=n,O=t}catch(e){console.warn(`更新配置失败:`,e)}},K=()=>{let e=b.value;b.value=void 0,D=void 0,O=void 0,k=void 0,z(e)};return(0,r.watch)(()=>c.data,e=>{e&&b.value&&W(e)},{deep:!0}),(0,r.watch)(()=>[c.options,c.preset],()=>void V(),{deep:!0,flush:`post`}),(0,r.watch)(_,()=>{let e=b.value;if(!e)return;let{scrollTop:t,scrollLeft:n}=e;G({}),e.scrollTop=t,e.scrollLeft=n},{flush:`post`}),(0,r.onMounted)(()=>{E=!1,document.addEventListener(`fullscreenchange`,U),(0,r.nextTick)(()=>{E||w>0||(T=setTimeout(()=>V(),100))})}),(0,r.onUnmounted)(()=>{E=!0,S.value=!1,w+=1,T&&clearTimeout(T),document.removeEventListener(`fullscreenchange`,U),K()}),a({ganttInstance:b,loading:S,error:C,reload:V,updateData:W,updateOptions:G,toggleFullscreen:H}),(e,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:`c-vtable-gantt-wrapper`,style:(0,r.normalizeStyle)((0,r.unref)(_))},[t.showToolbar?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createElementVNode)(`div`,f,[(0,r.createElementVNode)(`span`,p,(0,r.toDisplayString)(t.title||`甘特图`),1)]),(0,r.createElementVNode)(`div`,m,[t.showFullscreenButton?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NButton),{key:0,size:`small`,onClick:H},{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(n.t,{name:x.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:(0,r.withCtx)(()=>[(0,r.createTextVNode)(` `+(0,r.toDisplayString)(x.value?`退出全屏`:`全屏`),1)]),_:1})):(0,r.createCommentVNode)(`v-if`,!0)])])):(0,r.createCommentVNode)(`v-if`,!0),(0,r.createElementVNode)(`div`,h,[(0,r.createElementVNode)(`div`,{ref_key:`ganttContainerRef`,ref:y,class:`gantt-container`,style:(0,r.normalizeStyle)({height:A.value})},null,4),C.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NResult),{key:0,class:`gantt-error`,status:`error`,title:`甘特图加载失败`,description:C.value.message},{footer:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.NButton),{loading:S.value,onClick:V},{default:(0,r.withCtx)(()=>[...a[0]||=[(0,r.createTextVNode)(`重试`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`description`])):(0,r.createCommentVNode)(`v-if`,!0)])],4))}});var _=t.t(g,[[`__scopeId`,`data-v-0a1c9ab7`]]);function v(e,t){e.add(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
1
+ require(`./chunk.cjs`);const e=require(`./useComponentTheme.cjs`),t=require(`./export-helper.cjs`),n=require(`./C_Icon2.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a={headerStyle:{borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderLineWidth:[1,0,1,0],fontSize:13}},o={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:a},frame:{outerFrameStyle:{borderLineWidth:1,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:2}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:a,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:3}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle},bodyStyle:a.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle,borderColor:`#ffa940`},bodyStyle:{...a.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...a.headerStyle,fontSize:18,color:`red`},bodyStyle:{...a.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:3},horizontalSplitLine:{lineWidth:3}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}}},s=new Set([`__proto__`,`prototype`,`constructor`]),c=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function l(e,t){let n=new WeakMap,r=(e,t)=>{let i=n.get(t);if(i)return i;let a={...e};n.set(t,a);for(let[n,i]of Object.entries(t))s.has(n)||(a[n]=c(i)?r(c(e[n])?e[n]:{},i):i);return a};return r(e,t)}function u(e,t,n){e.on(`click_task_bar`,e=>{e.record&&t(e.record,e.event)}),e.on(`change_date_range`,e=>{if(e.record){let t={start:e.startDate,end:e.endDate};n({...e.record,...t},t)}}),e.on(`progress_update`,e=>{if(e.record){let t={progress:e.progress};n({...e.record,...t},t)}});let r=e.taskListTableInstance;r&&(r.on(`click_cell`,e=>{let n=r.getCellOriginRecord(e.col,e.row);n&&typeof n==`object`&&`id`in n&&t(n,e.event)}),r.on(`change_cell_value`,e=>{let t=r.getCellOriginRecord(e.col,e.row),i=r.getHeaderField(e.col,e.row);t&&typeof i==`string`&&n({...t,[i]:e.changedValue},{[i]:e.changedValue})}))}const d={key:0,class:`gantt-toolbar`},f={class:`toolbar-left`},p={class:`gantt-title`},m={class:`toolbar-right`},h={class:`gantt-body`},g=(0,r.defineComponent)({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{}},emits:[`ganttCreated`,`taskClick`,`taskChange`,`error`],setup(t,{expose:a,emit:s}){let c=t,g=e.t(()=>c.theme),_=e.n(()=>c.theme),v=s,y=(0,r.ref)(),b=(0,r.shallowRef)(),x=(0,r.ref)(!1),S=(0,r.ref)(!1),C=(0,r.shallowRef)(),w=0,T,E=!1,D,O,k,A=(0,r.computed)(()=>typeof c.height==`number`?`${c.height}px`:c.height),j=(e,t)=>!E&&e===w&&y.value===t,M=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?M(e.children):void 0})),N=e=>String(_.value[`--c-${e}`]??_.value[`--c-theme-${e}`]),P=()=>({underlayBackgroundColor:N(`bg-body`),timelineHeaderBg:N(`bg-muted`),gridBg:N(`bg-card`),surfaceBg:N(`bg-surface`),hoverBg:N(`bg-hover`),lineColor:N(`border`),textColor:N(`text-1`),secondaryTextColor:N(`text-2`),mutedTextColor:N(`text-3`),primaryColor:N(`primary`)}),F=e=>{let t={bgColor:e.gridBg,color:e.textColor,borderColor:e.lineColor,hover:{cellBgColor:e.hoverBg,inlineRowBgColor:e.hoverBg,inlineColumnBgColor:e.hoverBg}},n={...t,bgColor:e.timelineHeaderBg,color:e.secondaryTextColor};return{underlayBackgroundColor:e.gridBg,defaultStyle:t,headerStyle:n,rowHeaderStyle:n,cornerHeaderStyle:n,bodyStyle:t,frameStyle:{borderColor:e.lineColor},selectionStyle:{cellBgColor:e.hoverBg,cellBorderColor:e.primaryColor},columnResize:{lineColor:e.primaryColor,bgColor:e.hoverBg},scrollStyle:{scrollRailColor:e.timelineHeaderBg,scrollSliderColor:e.mutedTextColor},tooltipStyle:{bgColor:e.surfaceBg,color:e.textColor}}},I=(e,t)=>typeof e==`function`?e:{...e,lineColor:e?.lineColor??t},L=(e,t)=>({...e,backgroundColor:e?.backgroundColor??t.timelineHeaderBg,horizontalLine:I(e?.horizontalLine,t.lineColor),verticalLine:I(e?.verticalLine,t.lineColor),scales:e?.scales?.map(e=>({...e,style:{...e.style,color:e.style?.color??t.textColor}}))}),R=(e,t)=>({...e,backgroundColor:e?.backgroundColor??t.gridBg,horizontalLine:I(e?.horizontalLine,t.lineColor),verticalLine:I(e?.verticalLine,t.lineColor)}),z=(e,t)=>({...e,outerFrameStyle:{...e?.outerFrameStyle,borderColor:e?.outerFrameStyle?.borderColor??t.lineColor},verticalSplitLine:I(e?.verticalSplitLine,t.lineColor),horizontalSplitLine:I(e?.horizontalSplitLine,t.lineColor)}),B=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:e.underlayBackgroundColor??r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n.extends(F(r)).extends(e.taskListTable?.theme??{})},timelineHeader:L(e.timelineHeader,r),grid:R(e.grid,r),frame:z(e.frame,r),scrollStyle:{...e.scrollStyle,scrollRailColor:e.scrollStyle?.scrollRailColor??r.hoverBg,scrollSliderColor:e.scrollStyle?.scrollSliderColor??r.mutedTextColor}}),V=(e,t,n)=>B(t,n,g.value===`dark`?e.DARK:e.DEFAULT,P()),H=e=>{if(e)try{e.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}},U=(e,t,n)=>{e.editor(t)||e.editor(t,n())},W=async()=>{clearTimeout(T),T=void 0;let e=y.value;if(!e||E)return;let t=++w;S.value=!0,C.value=void 0;let n;try{let[{Gantt:r},{themes:i,register:a},{InputEditor:s,DateInputEditor:d}]=await Promise.all([import(`@visactor/vtable-gantt`),import(`@visactor/vtable`),import(`@visactor/vtable-editors`)]);if(!j(t,e))return;U(a,`input`,()=>new s),U(a,`date-input`,()=>new d);let f=l(o[c.preset]||o.basic,c.options),p=V(i,f,M(c.data));Y();let m=new r(e,p);if(n=m,!j(t,e)){m.release();return}u(m,(e,t)=>v(`taskClick`,e,t),(e,t)=>v(`taskChange`,e,t)),b.value=m,D=p,O=f,k=i,n=void 0,v(`ganttCreated`,m)}catch(r){if(H(n),!j(t,e))return;C.value=r instanceof Error?r:Error(String(r)),v(`error`,C.value)}finally{j(t,e)&&(S.value=!1)}},G=async()=>{let e=y.value;if(e)try{document.fullscreenElement===e?await document.exitFullscreen():await e.requestFullscreen(),x.value=document.fullscreenElement===e}catch(t){console.warn(`全屏切换失败:`,t),x.value=document.fullscreenElement===e}},K=()=>{x.value=document.fullscreenElement===y.value},q=e=>{if(b.value&&e)try{let t=M(e);b.value.setRecords(t),D&&={...D,records:t}}catch(e){console.warn(`更新数据失败:`,e)}},J=e=>{if(b.value&&D&&O&&k)try{let t=l(O,e),n=V(k,t,D.records??[]);b.value.updateOption(n),D=n,O=t}catch(e){console.warn(`更新配置失败:`,e)}},Y=()=>{let e=b.value;b.value=void 0,D=void 0,O=void 0,k=void 0,H(e)};return(0,r.watch)(()=>c.data,e=>{e&&b.value&&q(e)},{deep:!0}),(0,r.watch)(()=>[c.options,c.preset],()=>void W(),{deep:!0,flush:`post`}),(0,r.watch)(_,()=>{let e=b.value;if(!e)return;let{scrollTop:t,scrollLeft:n}=e;J({}),e.scrollTop=t,e.scrollLeft=n},{flush:`post`}),(0,r.onMounted)(()=>{E=!1,document.addEventListener(`fullscreenchange`,K),(0,r.nextTick)(()=>{E||w>0||(T=setTimeout(()=>W(),100))})}),(0,r.onUnmounted)(()=>{E=!0,S.value=!1,w+=1,T&&clearTimeout(T),document.removeEventListener(`fullscreenchange`,K),Y()}),a({ganttInstance:b,loading:S,error:C,reload:W,updateData:q,updateOptions:J,toggleFullscreen:G}),(e,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:`c-vtable-gantt-wrapper`,style:(0,r.normalizeStyle)((0,r.unref)(_))},[t.showToolbar?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createElementVNode)(`div`,f,[(0,r.createElementVNode)(`span`,p,(0,r.toDisplayString)(t.title||`甘特图`),1)]),(0,r.createElementVNode)(`div`,m,[t.showFullscreenButton?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NButton),{key:0,size:`small`,onClick:G},{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(n.t,{name:x.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:(0,r.withCtx)(()=>[(0,r.createTextVNode)(` `+(0,r.toDisplayString)(x.value?`退出全屏`:`全屏`),1)]),_:1})):(0,r.createCommentVNode)(`v-if`,!0)])])):(0,r.createCommentVNode)(`v-if`,!0),(0,r.createElementVNode)(`div`,h,[(0,r.createElementVNode)(`div`,{ref_key:`ganttContainerRef`,ref:y,class:`gantt-container`,style:(0,r.normalizeStyle)({height:A.value})},null,4),C.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NResult),{key:0,class:`gantt-error`,status:`error`,title:`甘特图加载失败`,description:C.value.message},{footer:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.NButton),{loading:S.value,onClick:W},{default:(0,r.withCtx)(()=>[...a[0]||=[(0,r.createTextVNode)(`重试`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`description`])):(0,r.createCommentVNode)(`v-if`,!0)])],4))}});var _=t.t(g,[[`__scopeId`,`data-v-c58a0295`]]);function v(e,t){e.add(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
@@ -118,23 +118,19 @@ declare const presetConfigs: {
118
118
  frame: {
119
119
  outerFrameStyle: {
120
120
  borderLineWidth: number;
121
- borderColor: string;
122
121
  cornerRadius: number;
123
122
  };
124
123
  verticalSplitLineMoveable: true;
125
124
  verticalSplitLine: {
126
- lineColor: string;
127
125
  lineWidth: number;
128
126
  };
129
127
  };
130
128
  grid: {
131
129
  verticalLine: {
132
130
  lineWidth: number;
133
- lineColor: string;
134
131
  };
135
132
  horizontalLine: {
136
133
  lineWidth: number;
137
- lineColor: string;
138
134
  };
139
135
  };
140
136
  taskBar: {
@@ -166,11 +162,9 @@ declare const presetConfigs: {
166
162
  colWidth: number;
167
163
  horizontalLine: {
168
164
  lineWidth: number;
169
- lineColor: string;
170
165
  };
171
166
  verticalLine: {
172
167
  lineWidth: number;
173
- lineColor: string;
174
168
  };
175
169
  scales: ({
176
170
  unit: "week";
@@ -191,11 +185,9 @@ declare const presetConfigs: {
191
185
  })[];
192
186
  };
193
187
  scrollStyle: {
194
- scrollRailColor: string;
195
188
  visible: "scrolling";
196
189
  width: number;
197
190
  scrollSliderCornerRadius: number;
198
- scrollSliderColor: string;
199
191
  };
200
192
  };
201
193
  project: {
@@ -225,23 +217,19 @@ declare const presetConfigs: {
225
217
  frame: {
226
218
  outerFrameStyle: {
227
219
  borderLineWidth: number;
228
- borderColor: string;
229
220
  cornerRadius: number;
230
221
  };
231
222
  verticalSplitLineMoveable: true;
232
223
  verticalSplitLine: {
233
- lineColor: string;
234
224
  lineWidth: number;
235
225
  };
236
226
  };
237
227
  grid: {
238
228
  verticalLine: {
239
229
  lineWidth: number;
240
- lineColor: string;
241
230
  };
242
231
  horizontalLine: {
243
232
  lineWidth: number;
244
- lineColor: string;
245
233
  };
246
234
  };
247
235
  taskBar: {
@@ -271,11 +259,9 @@ declare const presetConfigs: {
271
259
  colWidth: number;
272
260
  horizontalLine: {
273
261
  lineWidth: number;
274
- lineColor: string;
275
262
  };
276
263
  verticalLine: {
277
264
  lineWidth: number;
278
- lineColor: string;
279
265
  };
280
266
  scales: ({
281
267
  unit: "week";
@@ -302,19 +288,11 @@ declare const presetConfigs: {
302
288
  rowSeriesNumber: {
303
289
  title: string;
304
290
  dragOrder: true;
305
- headerStyle: {
306
- borderColor: string;
307
- };
308
- style: {
309
- borderColor: string;
310
- };
311
291
  };
312
292
  scrollStyle: {
313
- scrollRailColor: string;
314
293
  visible: "scrolling";
315
294
  width: number;
316
295
  scrollSliderCornerRadius: number;
317
- scrollSliderColor: string;
318
296
  };
319
297
  };
320
298
  timeline: {
@@ -381,7 +359,6 @@ declare const presetConfigs: {
381
359
  frame: {
382
360
  outerFrameStyle: {
383
361
  borderLineWidth: number;
384
- borderColor: string;
385
362
  cornerRadius: number;
386
363
  };
387
364
  verticalSplitLineMoveable: true;
@@ -389,11 +366,9 @@ declare const presetConfigs: {
389
366
  grid: {
390
367
  verticalLine: {
391
368
  lineWidth: number;
392
- lineColor: string;
393
369
  };
394
370
  horizontalLine: {
395
371
  lineWidth: number;
396
- lineColor: string;
397
372
  };
398
373
  };
399
374
  taskBar: {
@@ -436,11 +411,9 @@ declare const presetConfigs: {
436
411
  })[];
437
412
  };
438
413
  scrollStyle: {
439
- scrollRailColor: string;
440
414
  visible: "scrolling";
441
415
  width: number;
442
416
  scrollSliderCornerRadius: number;
443
- scrollSliderColor: string;
444
417
  };
445
418
  };
446
419
  milestone: {
@@ -599,11 +572,9 @@ declare const presetConfigs: {
599
572
  })[];
600
573
  };
601
574
  scrollStyle: {
602
- scrollRailColor: string;
603
575
  visible: "scrolling";
604
576
  width: number;
605
577
  scrollSliderCornerRadius: number;
606
- scrollSliderColor: string;
607
578
  };
608
579
  };
609
580
  official: {
@@ -714,27 +685,22 @@ declare const presetConfigs: {
714
685
  frame: {
715
686
  outerFrameStyle: {
716
687
  borderLineWidth: number;
717
- borderColor: string;
718
688
  cornerRadius: number;
719
689
  };
720
690
  verticalSplitLineMoveable: true;
721
691
  verticalSplitLine: {
722
- lineColor: string;
723
692
  lineWidth: number;
724
693
  };
725
694
  horizontalSplitLine: {
726
- lineColor: string;
727
695
  lineWidth: number;
728
696
  };
729
697
  };
730
698
  grid: {
731
699
  verticalLine: {
732
700
  lineWidth: number;
733
- lineColor: string;
734
701
  };
735
702
  horizontalLine: {
736
703
  lineWidth: number;
737
- lineColor: string;
738
704
  };
739
705
  };
740
706
  taskBar: {
@@ -768,15 +734,12 @@ declare const presetConfigs: {
768
734
  };
769
735
  };
770
736
  timelineHeader: {
771
- backgroundColor: string;
772
737
  colWidth: number;
773
738
  horizontalLine: {
774
739
  lineWidth: number;
775
- lineColor: string;
776
740
  };
777
741
  verticalLine: {
778
742
  lineWidth: number;
779
- lineColor: string;
780
743
  };
781
744
  scales: ({
782
745
  unit: "week";
@@ -819,19 +782,11 @@ declare const presetConfigs: {
819
782
  rowSeriesNumber: {
820
783
  title: string;
821
784
  dragOrder: true;
822
- headerStyle: {
823
- borderColor: string;
824
- };
825
- style: {
826
- borderColor: string;
827
- };
828
785
  };
829
786
  scrollStyle: {
830
- scrollRailColor: string;
831
787
  visible: "scrolling";
832
788
  width: number;
833
789
  scrollSliderCornerRadius: number;
834
- scrollSliderColor: string;
835
790
  };
836
791
  };
837
792
  };
@@ -118,23 +118,19 @@ declare const presetConfigs: {
118
118
  frame: {
119
119
  outerFrameStyle: {
120
120
  borderLineWidth: number;
121
- borderColor: string;
122
121
  cornerRadius: number;
123
122
  };
124
123
  verticalSplitLineMoveable: true;
125
124
  verticalSplitLine: {
126
- lineColor: string;
127
125
  lineWidth: number;
128
126
  };
129
127
  };
130
128
  grid: {
131
129
  verticalLine: {
132
130
  lineWidth: number;
133
- lineColor: string;
134
131
  };
135
132
  horizontalLine: {
136
133
  lineWidth: number;
137
- lineColor: string;
138
134
  };
139
135
  };
140
136
  taskBar: {
@@ -166,11 +162,9 @@ declare const presetConfigs: {
166
162
  colWidth: number;
167
163
  horizontalLine: {
168
164
  lineWidth: number;
169
- lineColor: string;
170
165
  };
171
166
  verticalLine: {
172
167
  lineWidth: number;
173
- lineColor: string;
174
168
  };
175
169
  scales: ({
176
170
  unit: "week";
@@ -191,11 +185,9 @@ declare const presetConfigs: {
191
185
  })[];
192
186
  };
193
187
  scrollStyle: {
194
- scrollRailColor: string;
195
188
  visible: "scrolling";
196
189
  width: number;
197
190
  scrollSliderCornerRadius: number;
198
- scrollSliderColor: string;
199
191
  };
200
192
  };
201
193
  project: {
@@ -225,23 +217,19 @@ declare const presetConfigs: {
225
217
  frame: {
226
218
  outerFrameStyle: {
227
219
  borderLineWidth: number;
228
- borderColor: string;
229
220
  cornerRadius: number;
230
221
  };
231
222
  verticalSplitLineMoveable: true;
232
223
  verticalSplitLine: {
233
- lineColor: string;
234
224
  lineWidth: number;
235
225
  };
236
226
  };
237
227
  grid: {
238
228
  verticalLine: {
239
229
  lineWidth: number;
240
- lineColor: string;
241
230
  };
242
231
  horizontalLine: {
243
232
  lineWidth: number;
244
- lineColor: string;
245
233
  };
246
234
  };
247
235
  taskBar: {
@@ -271,11 +259,9 @@ declare const presetConfigs: {
271
259
  colWidth: number;
272
260
  horizontalLine: {
273
261
  lineWidth: number;
274
- lineColor: string;
275
262
  };
276
263
  verticalLine: {
277
264
  lineWidth: number;
278
- lineColor: string;
279
265
  };
280
266
  scales: ({
281
267
  unit: "week";
@@ -302,19 +288,11 @@ declare const presetConfigs: {
302
288
  rowSeriesNumber: {
303
289
  title: string;
304
290
  dragOrder: true;
305
- headerStyle: {
306
- borderColor: string;
307
- };
308
- style: {
309
- borderColor: string;
310
- };
311
291
  };
312
292
  scrollStyle: {
313
- scrollRailColor: string;
314
293
  visible: "scrolling";
315
294
  width: number;
316
295
  scrollSliderCornerRadius: number;
317
- scrollSliderColor: string;
318
296
  };
319
297
  };
320
298
  timeline: {
@@ -381,7 +359,6 @@ declare const presetConfigs: {
381
359
  frame: {
382
360
  outerFrameStyle: {
383
361
  borderLineWidth: number;
384
- borderColor: string;
385
362
  cornerRadius: number;
386
363
  };
387
364
  verticalSplitLineMoveable: true;
@@ -389,11 +366,9 @@ declare const presetConfigs: {
389
366
  grid: {
390
367
  verticalLine: {
391
368
  lineWidth: number;
392
- lineColor: string;
393
369
  };
394
370
  horizontalLine: {
395
371
  lineWidth: number;
396
- lineColor: string;
397
372
  };
398
373
  };
399
374
  taskBar: {
@@ -436,11 +411,9 @@ declare const presetConfigs: {
436
411
  })[];
437
412
  };
438
413
  scrollStyle: {
439
- scrollRailColor: string;
440
414
  visible: "scrolling";
441
415
  width: number;
442
416
  scrollSliderCornerRadius: number;
443
- scrollSliderColor: string;
444
417
  };
445
418
  };
446
419
  milestone: {
@@ -599,11 +572,9 @@ declare const presetConfigs: {
599
572
  })[];
600
573
  };
601
574
  scrollStyle: {
602
- scrollRailColor: string;
603
575
  visible: "scrolling";
604
576
  width: number;
605
577
  scrollSliderCornerRadius: number;
606
- scrollSliderColor: string;
607
578
  };
608
579
  };
609
580
  official: {
@@ -714,27 +685,22 @@ declare const presetConfigs: {
714
685
  frame: {
715
686
  outerFrameStyle: {
716
687
  borderLineWidth: number;
717
- borderColor: string;
718
688
  cornerRadius: number;
719
689
  };
720
690
  verticalSplitLineMoveable: true;
721
691
  verticalSplitLine: {
722
- lineColor: string;
723
692
  lineWidth: number;
724
693
  };
725
694
  horizontalSplitLine: {
726
- lineColor: string;
727
695
  lineWidth: number;
728
696
  };
729
697
  };
730
698
  grid: {
731
699
  verticalLine: {
732
700
  lineWidth: number;
733
- lineColor: string;
734
701
  };
735
702
  horizontalLine: {
736
703
  lineWidth: number;
737
- lineColor: string;
738
704
  };
739
705
  };
740
706
  taskBar: {
@@ -768,15 +734,12 @@ declare const presetConfigs: {
768
734
  };
769
735
  };
770
736
  timelineHeader: {
771
- backgroundColor: string;
772
737
  colWidth: number;
773
738
  horizontalLine: {
774
739
  lineWidth: number;
775
- lineColor: string;
776
740
  };
777
741
  verticalLine: {
778
742
  lineWidth: number;
779
- lineColor: string;
780
743
  };
781
744
  scales: ({
782
745
  unit: "week";
@@ -819,19 +782,11 @@ declare const presetConfigs: {
819
782
  rowSeriesNumber: {
820
783
  title: string;
821
784
  dragOrder: true;
822
- headerStyle: {
823
- borderColor: string;
824
- };
825
- style: {
826
- borderColor: string;
827
- };
828
785
  };
829
786
  scrollStyle: {
830
- scrollRailColor: string;
831
787
  visible: "scrolling";
832
788
  width: number;
833
789
  scrollSliderCornerRadius: number;
834
- scrollSliderColor: string;
835
790
  };
836
791
  };
837
792
  };
package/dist/graphics.js CHANGED
@@ -1 +1 @@
1
- import{n as e,t}from"./useComponentTheme.js";import{t as n}from"./export-helper.js";import{t as r}from"./C_Icon2.js";import{computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,nextTick as ee,normalizeStyle as f,onMounted as te,onUnmounted as p,openBlock as m,ref as h,shallowRef as g,toDisplayString as _,unref as v,watch as y,withCtx as b}from"vue";import{NButton as x,NResult as ne}from"naive-ui";const S={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},C={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:S},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:S,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...S.headerStyle},bodyStyle:S.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...S.headerStyle,borderColor:`#ffa940`},bodyStyle:{...S.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...S.headerStyle,fontSize:18,color:`red`},bodyStyle:{...S.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},w=new Set([`__proto__`,`prototype`,`constructor`]),T=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function E(e,t){let n=new WeakMap,r=(e,t)=>{let i=n.get(t);if(i)return i;let a={...e};n.set(t,a);for(let[n,i]of Object.entries(t))w.has(n)||(a[n]=T(i)?r(T(e[n])?e[n]:{},i):i);return a};return r(e,t)}function re(e,t,n){e.on(`click_task_bar`,e=>{e.record&&t(e.record,e.event)}),e.on(`change_date_range`,e=>{if(e.record){let t={start:e.startDate,end:e.endDate};n({...e.record,...t},t)}}),e.on(`progress_update`,e=>{if(e.record){let t={progress:e.progress};n({...e.record,...t},t)}});let r=e.taskListTableInstance;r&&(r.on(`click_cell`,e=>{let n=r.getCellOriginRecord(e.col,e.row);n&&typeof n==`object`&&`id`in n&&t(n,e.event)}),r.on(`change_cell_value`,e=>{let t=r.getCellOriginRecord(e.col,e.row),i=r.getHeaderField(e.col,e.row);t&&typeof i==`string`&&n({...t,[i]:e.changedValue},{[i]:e.changedValue})}))}const ie={key:0,class:`gantt-toolbar`},ae={class:`toolbar-left`},oe={class:`gantt-title`},se={class:`toolbar-right`},ce={class:`gantt-body`};var D=n(d({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{}},emits:[`ganttCreated`,`taskClick`,`taskChange`,`error`],setup(n,{expose:d,emit:S}){let w=n,T=t(()=>w.theme),D=e(()=>w.theme),O=S,k=h(),A=g(),j=h(!1),M=h(!1),N=g(),P=0,F,I=!1,L,R,z,le=i(()=>typeof w.height==`number`?`${w.height}px`:w.height),B=(e,t)=>!I&&e===P&&k.value===t,V=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?V(e.children):void 0})),H=e=>String(D.value[`--c-${e}`]??D.value[`--c-theme-${e}`]),U=()=>({underlayBackgroundColor:H(`bg-body`),timelineHeaderBg:H(`bg-muted`),gridBg:H(`bg-card`),lineColor:H(`border`),textColor:H(`text-1`)}),ue=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),de=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),W=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n.extends(e.taskListTable?.theme??{})},timelineHeader:ue(e.timelineHeader,r),grid:de(e.grid,r)}),G=(e,t,n)=>W(t,n,T.value===`dark`?e.DARK:e.DEFAULT,U()),K=e=>{if(e)try{e.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}},q=(e,t,n)=>{e.editor(t)||e.editor(t,n())},J=async()=>{clearTimeout(F),F=void 0;let e=k.value;if(!e||I)return;let t=++P;M.value=!0,N.value=void 0;let n;try{let[{Gantt:r},{themes:i,register:a},{InputEditor:o,DateInputEditor:s}]=await Promise.all([import(`@visactor/vtable-gantt`),import(`@visactor/vtable`),import(`@visactor/vtable-editors`)]);if(!B(t,e))return;q(a,`input`,()=>new o),q(a,`date-input`,()=>new s);let c=E(C[w.preset]||C.basic,w.options),l=G(i,c,V(w.data));$();let u=new r(e,l);if(n=u,!B(t,e)){u.release();return}re(u,(e,t)=>O(`taskClick`,e,t),(e,t)=>O(`taskChange`,e,t)),A.value=u,L=l,R=c,z=i,n=void 0,O(`ganttCreated`,u)}catch(r){if(K(n),!B(t,e))return;N.value=r instanceof Error?r:Error(String(r)),O(`error`,N.value)}finally{B(t,e)&&(M.value=!1)}},Y=async()=>{let e=k.value;if(e)try{document.fullscreenElement===e?await document.exitFullscreen():await e.requestFullscreen(),j.value=document.fullscreenElement===e}catch(t){console.warn(`全屏切换失败:`,t),j.value=document.fullscreenElement===e}},X=()=>{j.value=document.fullscreenElement===k.value},Z=e=>{if(A.value&&e)try{let t=V(e);A.value.setRecords(t),L&&={...L,records:t}}catch(e){console.warn(`更新数据失败:`,e)}},Q=e=>{if(A.value&&L&&R&&z)try{let t=E(R,e),n=G(z,t,L.records??[]);A.value.updateOption(n),L=n,R=t}catch(e){console.warn(`更新配置失败:`,e)}},$=()=>{let e=A.value;A.value=void 0,L=void 0,R=void 0,z=void 0,K(e)};return y(()=>w.data,e=>{e&&A.value&&Z(e)},{deep:!0}),y(()=>[w.options,w.preset],()=>void J(),{deep:!0,flush:`post`}),y(D,()=>{let e=A.value;if(!e)return;let{scrollTop:t,scrollLeft:n}=e;Q({}),e.scrollTop=t,e.scrollLeft=n},{flush:`post`}),te(()=>{I=!1,document.addEventListener(`fullscreenchange`,X),ee(()=>{I||P>0||(F=setTimeout(()=>J(),100))})}),p(()=>{I=!0,M.value=!1,P+=1,F&&clearTimeout(F),document.removeEventListener(`fullscreenchange`,X),$()}),d({ganttInstance:A,loading:M,error:N,reload:J,updateData:Z,updateOptions:Q,toggleFullscreen:Y}),(e,t)=>(m(),s(`div`,{class:`c-vtable-gantt-wrapper`,style:f(v(D))},[n.showToolbar?(m(),s(`div`,ie,[c(`div`,ae,[c(`span`,oe,_(n.title||`甘特图`),1)]),c(`div`,se,[n.showFullscreenButton?(m(),a(v(x),{key:0,size:`small`,onClick:Y},{icon:b(()=>[u(r,{name:j.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:b(()=>[l(` `+_(j.value?`退出全屏`:`全屏`),1)]),_:1})):o(`v-if`,!0)])])):o(`v-if`,!0),c(`div`,ce,[c(`div`,{ref_key:`ganttContainerRef`,ref:k,class:`gantt-container`,style:f({height:le.value})},null,4),N.value?(m(),a(v(ne),{key:0,class:`gantt-error`,status:`error`,title:`甘特图加载失败`,description:N.value.message},{footer:b(()=>[u(v(x),{loading:M.value,onClick:J},{default:b(()=>[...t[0]||=[l(`重试`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`description`])):o(`v-if`,!0)])],4))}}),[[`__scopeId`,`data-v-0a1c9ab7`]]);function O(e,t){e.add(t)}export{D as n,C as r,O as t};
1
+ import{n as e,t}from"./useComponentTheme.js";import{t as n}from"./export-helper.js";import{t as r}from"./C_Icon2.js";import{computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,nextTick as ee,normalizeStyle as f,onMounted as te,onUnmounted as ne,openBlock as p,ref as m,shallowRef as h,toDisplayString as g,unref as _,watch as v,withCtx as y}from"vue";import{NButton as b,NResult as re}from"naive-ui";const x={headerStyle:{borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderLineWidth:[1,0,1,0],fontSize:13}},S={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:x},frame:{outerFrameStyle:{borderLineWidth:1,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:2}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:x,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:3}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...x.headerStyle},bodyStyle:x.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...x.headerStyle,borderColor:`#ffa940`},bodyStyle:{...x.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...x.headerStyle,fontSize:18,color:`red`},bodyStyle:{...x.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:3},horizontalSplitLine:{lineWidth:3}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}}},C=new Set([`__proto__`,`prototype`,`constructor`]),w=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function T(e,t){let n=new WeakMap,r=(e,t)=>{let i=n.get(t);if(i)return i;let a={...e};n.set(t,a);for(let[n,i]of Object.entries(t))C.has(n)||(a[n]=w(i)?r(w(e[n])?e[n]:{},i):i);return a};return r(e,t)}function ie(e,t,n){e.on(`click_task_bar`,e=>{e.record&&t(e.record,e.event)}),e.on(`change_date_range`,e=>{if(e.record){let t={start:e.startDate,end:e.endDate};n({...e.record,...t},t)}}),e.on(`progress_update`,e=>{if(e.record){let t={progress:e.progress};n({...e.record,...t},t)}});let r=e.taskListTableInstance;r&&(r.on(`click_cell`,e=>{let n=r.getCellOriginRecord(e.col,e.row);n&&typeof n==`object`&&`id`in n&&t(n,e.event)}),r.on(`change_cell_value`,e=>{let t=r.getCellOriginRecord(e.col,e.row),i=r.getHeaderField(e.col,e.row);t&&typeof i==`string`&&n({...t,[i]:e.changedValue},{[i]:e.changedValue})}))}const ae={key:0,class:`gantt-toolbar`},oe={class:`toolbar-left`},se={class:`gantt-title`},E={class:`toolbar-right`},ce={class:`gantt-body`};var D=n(d({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{}},emits:[`ganttCreated`,`taskClick`,`taskChange`,`error`],setup(n,{expose:d,emit:x}){let C=n,w=t(()=>C.theme),D=e(()=>C.theme),O=x,k=m(),A=h(),j=m(!1),M=m(!1),N=h(),P=0,F,I=!1,L,R,z,B=i(()=>typeof C.height==`number`?`${C.height}px`:C.height),V=(e,t)=>!I&&e===P&&k.value===t,H=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?H(e.children):void 0})),U=e=>String(D.value[`--c-${e}`]??D.value[`--c-theme-${e}`]),le=()=>({underlayBackgroundColor:U(`bg-body`),timelineHeaderBg:U(`bg-muted`),gridBg:U(`bg-card`),surfaceBg:U(`bg-surface`),hoverBg:U(`bg-hover`),lineColor:U(`border`),textColor:U(`text-1`),secondaryTextColor:U(`text-2`),mutedTextColor:U(`text-3`),primaryColor:U(`primary`)}),ue=e=>{let t={bgColor:e.gridBg,color:e.textColor,borderColor:e.lineColor,hover:{cellBgColor:e.hoverBg,inlineRowBgColor:e.hoverBg,inlineColumnBgColor:e.hoverBg}},n={...t,bgColor:e.timelineHeaderBg,color:e.secondaryTextColor};return{underlayBackgroundColor:e.gridBg,defaultStyle:t,headerStyle:n,rowHeaderStyle:n,cornerHeaderStyle:n,bodyStyle:t,frameStyle:{borderColor:e.lineColor},selectionStyle:{cellBgColor:e.hoverBg,cellBorderColor:e.primaryColor},columnResize:{lineColor:e.primaryColor,bgColor:e.hoverBg},scrollStyle:{scrollRailColor:e.timelineHeaderBg,scrollSliderColor:e.mutedTextColor},tooltipStyle:{bgColor:e.surfaceBg,color:e.textColor}}},W=(e,t)=>typeof e==`function`?e:{...e,lineColor:e?.lineColor??t},de=(e,t)=>({...e,backgroundColor:e?.backgroundColor??t.timelineHeaderBg,horizontalLine:W(e?.horizontalLine,t.lineColor),verticalLine:W(e?.verticalLine,t.lineColor),scales:e?.scales?.map(e=>({...e,style:{...e.style,color:e.style?.color??t.textColor}}))}),fe=(e,t)=>({...e,backgroundColor:e?.backgroundColor??t.gridBg,horizontalLine:W(e?.horizontalLine,t.lineColor),verticalLine:W(e?.verticalLine,t.lineColor)}),pe=(e,t)=>({...e,outerFrameStyle:{...e?.outerFrameStyle,borderColor:e?.outerFrameStyle?.borderColor??t.lineColor},verticalSplitLine:W(e?.verticalSplitLine,t.lineColor),horizontalSplitLine:W(e?.horizontalSplitLine,t.lineColor)}),me=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:e.underlayBackgroundColor??r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n.extends(ue(r)).extends(e.taskListTable?.theme??{})},timelineHeader:de(e.timelineHeader,r),grid:fe(e.grid,r),frame:pe(e.frame,r),scrollStyle:{...e.scrollStyle,scrollRailColor:e.scrollStyle?.scrollRailColor??r.hoverBg,scrollSliderColor:e.scrollStyle?.scrollSliderColor??r.mutedTextColor}}),G=(e,t,n)=>me(t,n,w.value===`dark`?e.DARK:e.DEFAULT,le()),K=e=>{if(e)try{e.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}},q=(e,t,n)=>{e.editor(t)||e.editor(t,n())},J=async()=>{clearTimeout(F),F=void 0;let e=k.value;if(!e||I)return;let t=++P;M.value=!0,N.value=void 0;let n;try{let[{Gantt:r},{themes:i,register:a},{InputEditor:o,DateInputEditor:s}]=await Promise.all([import(`@visactor/vtable-gantt`),import(`@visactor/vtable`),import(`@visactor/vtable-editors`)]);if(!V(t,e))return;q(a,`input`,()=>new o),q(a,`date-input`,()=>new s);let c=T(S[C.preset]||S.basic,C.options),l=G(i,c,H(C.data));$();let u=new r(e,l);if(n=u,!V(t,e)){u.release();return}ie(u,(e,t)=>O(`taskClick`,e,t),(e,t)=>O(`taskChange`,e,t)),A.value=u,L=l,R=c,z=i,n=void 0,O(`ganttCreated`,u)}catch(r){if(K(n),!V(t,e))return;N.value=r instanceof Error?r:Error(String(r)),O(`error`,N.value)}finally{V(t,e)&&(M.value=!1)}},Y=async()=>{let e=k.value;if(e)try{document.fullscreenElement===e?await document.exitFullscreen():await e.requestFullscreen(),j.value=document.fullscreenElement===e}catch(t){console.warn(`全屏切换失败:`,t),j.value=document.fullscreenElement===e}},X=()=>{j.value=document.fullscreenElement===k.value},Z=e=>{if(A.value&&e)try{let t=H(e);A.value.setRecords(t),L&&={...L,records:t}}catch(e){console.warn(`更新数据失败:`,e)}},Q=e=>{if(A.value&&L&&R&&z)try{let t=T(R,e),n=G(z,t,L.records??[]);A.value.updateOption(n),L=n,R=t}catch(e){console.warn(`更新配置失败:`,e)}},$=()=>{let e=A.value;A.value=void 0,L=void 0,R=void 0,z=void 0,K(e)};return v(()=>C.data,e=>{e&&A.value&&Z(e)},{deep:!0}),v(()=>[C.options,C.preset],()=>void J(),{deep:!0,flush:`post`}),v(D,()=>{let e=A.value;if(!e)return;let{scrollTop:t,scrollLeft:n}=e;Q({}),e.scrollTop=t,e.scrollLeft=n},{flush:`post`}),te(()=>{I=!1,document.addEventListener(`fullscreenchange`,X),ee(()=>{I||P>0||(F=setTimeout(()=>J(),100))})}),ne(()=>{I=!0,M.value=!1,P+=1,F&&clearTimeout(F),document.removeEventListener(`fullscreenchange`,X),$()}),d({ganttInstance:A,loading:M,error:N,reload:J,updateData:Z,updateOptions:Q,toggleFullscreen:Y}),(e,t)=>(p(),s(`div`,{class:`c-vtable-gantt-wrapper`,style:f(_(D))},[n.showToolbar?(p(),s(`div`,ae,[c(`div`,oe,[c(`span`,se,g(n.title||`甘特图`),1)]),c(`div`,E,[n.showFullscreenButton?(p(),a(_(b),{key:0,size:`small`,onClick:Y},{icon:y(()=>[u(r,{name:j.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:y(()=>[l(` `+g(j.value?`退出全屏`:`全屏`),1)]),_:1})):o(`v-if`,!0)])])):o(`v-if`,!0),c(`div`,ce,[c(`div`,{ref_key:`ganttContainerRef`,ref:k,class:`gantt-container`,style:f({height:B.value})},null,4),N.value?(p(),a(_(re),{key:0,class:`gantt-error`,status:`error`,title:`甘特图加载失败`,description:N.value.message},{footer:y(()=>[u(_(b),{loading:M.value,onClick:J},{default:y(()=>[...t[0]||=[l(`重试`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`description`])):o(`v-if`,!0)])],4))}}),[[`__scopeId`,`data-v-c58a0295`]]);function O(e,t){e.add(t)}export{D as n,S as r,O as t};
package/dist/index.d.cts CHANGED
@@ -81,7 +81,8 @@ import { a as TimelineProps, i as TimelineItem, n as DEFAULT_TIMELINE_PROPS, r a
81
81
  import { a as TabsBadgeType, c as TabsJustifyContent, d as TabsType, f as TabsValue, i as CTabsProps, l as TabsPlacement, n as _default$47, o as TabsDisplayDirective, r as CTabsEmits, s as TabsItem, t as defineTabs, u as TabsSize } from "./data2.cjs";
82
82
  import { a as TransferProps, i as TransferItem, n as DEFAULT_TRANSFER_PROPS, r as TransferEmits, t as _default$51 } from "./index32.vue.cjs";
83
83
  import { n as _default$54, t as createUserPickerSource } from "./source.cjs";
84
- import { a as ComponentColorMode, i as COMPONENT_CONTROL_HEIGHTS, n as createComponentTheme, o as ComponentThemeOptions, r as COMPONENT_COLOR_PALETTES, t as ComponentThemeConfig } from "./theme.cjs";
84
+ import { a as ComponentColorMode, i as COMPONENT_CONTROL_HEIGHTS, n as createComponentTheme, o as ComponentThemeColors, r as COMPONENT_COLOR_PALETTES, s as ComponentThemeOptions, t as ComponentThemeConfig } from "./theme.cjs";
85
+ import "./config.cjs";
85
86
  import { App } from "vue";
86
87
 
87
88
  //#region src/index.d.ts
@@ -98,4 +99,4 @@ declare const _default$58: {
98
99
  install: (app: App, options?: ComponentLibOptions) => void;
99
100
  };
100
101
  //#endregion
101
- export { ACTION_BAR_DEFAULT_CONFIG, ACTION_KEYS, ACTION_PRESETS, AMapApi, AMapMapInstance, AMapMarkerEvent, AMapPosition, AMapSecurityConfig, STATUS_COLOR_MAP as AVATAR_STATUS_COLOR_MAP, ActionBarConfig, ActionButtonSize, ActionButtonType, ActionConfig, ActionDropdownItem, ActionGroupAlign, ActionItem, ActionState, AlignItems, AnalyticsEvent, AnalyticsEventType, AnalyticsReporter, AntiCheatConfig, ApiFunction, ApprovalMode, ApprovalNodeData, AspectRatioPreset, AsyncOptionsContext, AudioPlayerProps, AudioTrack, AutoCompleteOptionItem, AutoCompleteProps, AvatarGroupProps, AvatarItem, BPMNDiagramData, BPMNFlow, BPMNNode, BUTTON_TEXT, BaseNodeData, BatchActionsConfig, BatchFieldChange, BatchOperationResult, BatchResultEmits, BatchResultProps, Bookmark, BreadcrumbItem, BreadcrumbMenuItem, BuiltInTableColumn, ButtonType, CATEGORY_MAP, CATEGORY_TABS, COMPONENT_COLOR_PALETTES, COMPONENT_CONTROL_HEIGHTS, COMPONENT_FEEDBACK_KEY, COMPONENT_LOCALE_KEY, CRON_FIELD_META, CRON_TEMPLATES, CTabsEmits, CTabsProps, _default as C_ActionBar, _default$1 as C_AntV, _default$2 as C_AudioPlayer, _default$3 as C_AutoComplete, _default$4 as C_AvatarGroup, _default$5 as C_Barcode, _default$6 as C_BatchResult, _default$7 as C_Breadcrumb, _default$8 as C_Captcha, _default$9 as C_Cascade, _default$10 as C_Chat, _default$11 as C_City, _default$12 as C_Code, _default$13 as C_CollapsePanel, _default$14 as C_ContextMenu, _default$15 as C_Cron, _default$16 as C_DataPicker, C_Date, _default$17 as C_Density, _default$18 as C_Draggable, _default$19 as C_Editor, _default$20 as C_ErrorSummary, _default$21 as C_FilePreview, _default$22 as C_Form, _default$23 as C_FormModal, C_FormSearch, _default$24 as C_FormulaEditor, _default$25 as C_FullCalendar, _default$26 as C_GlobalSearch, _default$27 as C_Guide, _default$28 as C_Icon, _default$29 as C_ImageCropper, _default$30 as C_Language, _default$31 as C_Loading, _default$32 as C_Login, _default$33 as C_Map, _default$34 as C_Markdown, _default$35 as C_Menu, _default$36 as C_NotificationCenter, C_OrgChart, _default$37 as C_PageLoading, _default$38 as C_Progress, _default$39 as C_QRCode, _default$40 as C_SectionNav, _default$41 as C_Select, _default$42 as C_Signature, _default$43 as C_Skeleton, _default$44 as C_SplitPane, _default$45 as C_Steps, _default$46 as C_Table, _default$47 as C_Tabs, _default$48 as C_TagsView, _default$49 as C_Theme, C_Time, _default$50 as C_Timeline, _default$51 as C_Transfer, _default$52 as C_Tree, _default$53 as C_Upload, _default$54 as C_UserPicker, _default$55 as C_VideoPlayer, C_VtableGantt, _default$56 as C_WaterFall, _default$57 as C_WorkFlow, CalendarEditForm, CalendarEmits, CalendarEvent, CalendarExpose, CalendarProps, CalendarViewType, CaptchaEmits, CaptchaFormData, CaptchaInstance, CaptchaProof, CaptchaProps, CaptchaProvider, CaptchaSuccessPayload, CaptchaVerificationError, CaptchaVerificationRequest, CaptchaVerificationResult, CaptchaVerifier, CardLayoutConfig, CascadeItem, CascadeValue, Chapter, ChatContact, ChatMessage, ChatProps, ChildSelectionState, ChunkProgress, ClearNotificationsFn, ClipboardConfig, CollapsePanelEmits, CollapsePanelExpose, CollapsePanelItem, CollapsePanelProps, CollapsePanelVariant, CollapseTarget, ColumnDragConfig, ColumnFormatter, ColumnStatus, ColumnWithKey, type ComponentColorMode, type ComponentDensity, type ComponentFeedback, ComponentLibOptions, type ComponentLocale, type ComponentLocaleName, ComponentMap, type ComponentThemeConfig, type ComponentThemeOptions, ComponentType, Condition, ConditionNodeData, type ConfirmOptions, ConnectionConfig, ContextMenuItem, ContextMenuLabels, ContextMenuProps, CopyNodeData, CronConfig, CronEmits, CronExpose, CronFieldMeta, CronFieldMode, CronFieldType, CronFieldValue, CronProps, CronTemplate, CronValidation, CronValue, CropOutputFormat, CropResult, CrossPageSelectionConfig, CrudBinding, CustomAction, CustomLayoutConfig, CustomUploadRequest, DEFAULT_ACTION_ICON, DEFAULT_ANIMATION_DURATION, DEFAULT_AUDIO_PLAYER_PROPS, DEFAULT_AVATAR_GROUP_PROPS, DEFAULT_BREAKPOINTS, DEFAULT_CHAT_PROPS, DEFAULT_CONTEXT_MENU_PROPS, DEFAULT_CRON_EXPRESSION, DEFAULT_CRON_VALUE, DEFAULT_EDIT_FORM, DEFAULT_FEATURES, DEFAULT_FIELD_VALUE, DEFAULT_FUNCTIONS, DEFAULT_GAP, DEFAULT_HEARTBEAT_INTERVAL, DEFAULT_MAP_CONFIG, DEFAULT_MAX_BADGE_COUNT, DEFAULT_PAGE_SIZE, DEFAULT_PLAYBACK_RATE, DEFAULT_PLAYBACK_RATES, DEFAULT_POLLING_INTERVAL, DEFAULT_SKELETON_COUNT, DEFAULT_SOCIAL_PROVIDERS, DEFAULT_STORAGE_KEY, DEFAULT_TIMELINE_PROPS, DEFAULT_TRANSFER_PROPS, DEFAULT_VOLUME, DEFAULT_WS_HEARTBEAT_INTERVAL, DEFAULT_WS_HEARTBEAT_MESSAGE, DEFAULT_WS_MAX_RECONNECT, DEFAULT_WS_RECONNECT_INTERVAL, DYNAMIC_FORM_STATE_KEY, DataPickerEmits, DataPickerExpose, DataPickerHistoryOptions, DataPickerNavigation, DataPickerNavigationContext, DataPickerNavigationNode, DataPickerProps, DataPickerRequest, DataPickerSelectedItem, DataPickerSelectionContext, DataPickerSource, DataPickerSourceInput, DataPickerValue, DataRecord, DataResourceOptions, DataResourceStatus, DateEmits, DateExpose, DateModelValue, DatePickerMode, DateProps, DateRangeInput, DateRangeValue, DateValue, DeleteNotificationFn, Department, DiagramConfig, DiagramData, DiagramExpose, DiagramType, DisplayConfig, DocHeading, DragEvent, DraggableEmits, DraggableExpose, DraggableItem, DraggableProps, DraggableSlots, DropInfo, DynamicFieldConfig, DynamicFormConfig, DynamicFormController, DynamicFormState, DynamicFormStateType, DynamicRowsOptions, DynamicRowsReturn, ERDiagramData, ERField, ERRelation, ERTable, EVENT_COLORS, EditConfig, EditMode, EditProps, EraserConfig, ErrorConfig, ErrorCorrectionLevel, ErrorSummaryProps, ExcelCell, ExcelColumn, ExcelLoadResult, ExcelRow, ExcelSheet, ExpandConfig, ExpandIconPosition, ExportConfig, ExportFormat, ExportOptions, ExportType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, FetchNotificationsFn, FetchNotificationsResult, FieldPath, FieldPathValue, FileConfig, FilePreviewLimits, FilePreviewProps, FilePreviewType, FormActionSlotProps, FormArrayEntry, FormConfig, FormErrorContext, FormInstance, FormModalEditor, FormModalEmits, FormModalMode, FormModalProps, FormMode, FormModel, FormOption, FormRecord, FormRenderer, FormRendererContext, FormRendererRegistry, FormSearchEmits, FormSearchExpose, FormSearchProps, FormSlots, FormStepActionsSlotProps, FormSubmitContext, FormTabActionsSlotProps, FormValidationRule, FormatterConfig, FormatterType, FormulaEditorConfig, FormulaEditorEmits, FormulaEditorExpose, FormulaEditorProps, FormulaFunction, FormulaKeyType, FormulaKeyboardKey, FormulaTemplate, FormulaToken, FormulaTokenType, FormulaValidation, FormulaVariable, FormulaVariableType, GanttClickEvent, GanttEmits, GanttExpose, GanttOptions, GanttPreset, GanttProps, GanttTask, GanttTaskBarContext, GanttTaskBarLayout, GanttTaskCellContext, GanttTaskCellLayout, GanttTaskChanges, GanttTaskNodeRecord, GanttTaskRecord, GanttTimelineContext, GanttTimelineLayout, GlobalSearchOptions, GraphConfig, GraphEvents, GraphExportOptions, GridConfig, GridLayoutConfig, GroupOptions, GroupTableColumn, GuideExpose, GuideIllustration, GuidePersistence, GuideProps, GuideStep, GuideTarget, GuideTheme, HEADER_TOOLBAR, type HighlightAPI, type HighlightPluginOptions, HistoryConfig, HistoryItem, IDefinition, INFINITE_SCROLL_THRESHOLD, IPlayerOptions, IconConfig, IconProps, ImageCropperEmits, ImageCropperExpose, ImageCropperProps, InfiniteScrollStatus, InlineLayoutConfig, InlineTableAction, InstantCheckFn, JustifyContent, KEYBOARD_SHORTCUTS, KeyboardConfig, LAYOUTS_WITH_OWN_CONTROLS, LabelPlacement, LanguageOption, LayoutCallbacks, LayoutConfig, LayoutMode, LayoutOptions, LayoutType, LoadingProps, LoginFeatures, LoginProps, LogoOptions, MAP_TYPES, MOCK_MESSAGES, MODE_ICON_MAP, MONTH_LABELS, MapConfig, MapCoordinate, MapExpose, MapFitOptions, MapInstance, MapMarker, MapMarkerEvent, MapProps, MapTileConfig, MapType, MarkAllReadFn, MarkAsReadFn, MaybePromise, MaybeRefLike, MenuAdapterConfig, MenuEmits, MenuExpose, MenuItem, MenuKey, MenuPosition, MenuProps, MenuValue, MergeChunksFn, MessageSender, MessageStatus, MessageType, MinimapConfig, MouseWheelConfig, NAIVE_COMBOS, NUMBER_KEYS, NodeConfigFormData, NodeData, NodeStatus, NodeTemplate, NodeType, NormalTableColumn, NotificationCategory, NotificationCategoryOption, NotificationCenterController, NotificationCenterEmits, NotificationCenterExpose, NotificationCenterProps, NotificationCenterSlots, NotificationDataMode, NotificationItemSlotContext, NotificationMessage, NotificationPriority, NotificationSender, NotificationStatus, NotificationUnreadByCategory, NotificationWSConfig, NumberCodecOptions, OPERATORS, OPERATOR_KEYS, OSM_TILE_CONFIG, OptionItem, OptionPage, OptionRequest, OptionSource, OptionValue, OptionsState, OrgChartDirection, OrgChartEmits, OrgChartExpose, OrgChartKey, OrgChartLineStyle, OrgChartNode, OrgChartNodeSlotProps, OrgChartProps, OrgChartSlots, PRESET_RULES, PRIORITY_MAP, PROGRESS_THROTTLE_INTERVAL, PageLoadingOptions, PageLoadingProps, PaginationConfig, PanelInfo, ParentChildLinkMode, PasswordFormData, PatchScalar, PdfLoadResult, PenConfig, PenMode, PlaybackRate, PlayerInstance, PlayerState, Position, PrintWatermarkOptions, ProgressData, ProgressReporter, QRCodeExpose, QRCodeProps, QUALITY_LABEL_MAP, QualityDefinition, QualityLevel, QuizOption, QuizType, RegisterFormData, RenderFunction, RenderMode, RendererProps, type ResolvedComponentDensity, ResolvedFormConfig, Role, RouteItem, RouteMeta, RowAction, RowDragConfig, RuleSpec, SEEK_STEP, SKELETON_HEIGHT_RANGE, SOURCE_TYPE_MAP, SPACED_OPERATORS, SPEC_RULES, STORAGE_KEYS, STORAGE_PREFIX, ScrollerConfig, SearchConfig, SearchDateRangeValue, SearchFieldContext, SearchFieldSettings, SearchFieldType, SearchFormItem, SearchFormParams, SearchMenuItem, SearchNumberRangeValue, SearchOptionItem, SearchQueryEncoding, SectionNavItem, SectionNavProps, SelectModelValue, SelectOption, SelectOptionGroup, SelectOptionItem, SelectOptionNode, SelectProps, SelectSelection, SelectValue, SelectionConfig, SerializeSearchOptions, SignatureEmits, SignatureExportFormat, SignatureExpose, SignaturePoint, SignatureProps, SignatureSnapshot, SignatureStroke, SimpleTableActions, SkeletonAnimation, SkeletonCardConfig, SkeletonDetailConfig, SkeletonFormConfig, SkeletonListConfig, SkeletonPreset, SkeletonProps, SkeletonTableConfig, SnapshotConfig, SocialProvider, SplitDirection, SplitPaneEmits, SplitPaneExpose, SplitPaneProps, StartNodeData, StatusConfig, StatusType, StepItem, StepsLayoutConfig, StrictTableColumn, SubmitEventPayload, SubtitleTrack, SummaryConfig, TABLE_GLOBAL_CONFIG_KEY, STATUS_COLOR_MAP$1 as TIMELINE_STATUS_COLOR_MAP, TableActionsEmits, TableActionsProps, CaptureConfig as TableCaptureConfig, TableColumn, TableConfig, TableEditorContext, TableEmits, TableGlobalConfig, TableInstance, TableManagerApi, PrintConfig as TablePrintConfig, TableProps, TableQueryContext, TableQueryResult, TableRowKey, TableRowKeyIssue, SelectionConfig$1 as TableSelectionConfig, WatermarkConfig as TableWatermarkConfig, TabsBadgeType, TabsDisplayDirective, TabsItem, TabsJustifyContent, TabsLayoutConfig, TabsPlacement, TabsSize, TabsType, TabsValue, TagItem, ThemeConfig, ThemeMode, ThumbnailConfig, TimeEmits, TimeExpose, TimeMode, TimeModelValue, TimeProps, TimeRangeValue, TimelineItem, TimelineProps, ToolbarAction, ToolbarConfig, TransferEmits, TransferItem, TransferProps, TreeConfig, TreeEmits, TreeExpose, TreeKey, TreeMode, TreeNativeProps, TreeNodeData, TreeNodeIcon, TreeNodeRenderContext, TreeOption, TreeProps, TreeRenderContext, TreeSearchSource, TreeSlots, TreeUpdateMeta, UMLAttribute, UMLClass, UMLDiagramData, UMLMethod, UMLRelation, UploadChunk, UploadEmits, UploadExpose, UploadFileItem, UploadFileStatus, UploadProps, UploadRequestOptions, UploadedChunksQueryFn, UseCFormOptions, UseCFormReturn, UseCrossPageSelectionOptions, UseCrossPageSelectionReturn, UseFormDirtyReturn, UseFormRendererOptions, UseRowDragOptions, UseRowDragReturn, UseTableExpandOptions, UseTableExpandReturn, UseTableQueryOptions, UseTagsViewOptions, User, UserPickerEmits, UserPickerExpose, UserPickerFields, UserPickerModel, UserPickerOrganization, UserPickerProps, UserPickerSlots, UserPickerSource, VOLUME_STEP, ValidationError, ValidationErrorType, ValidationIssue, ValidationParticipant, ValidationResult, ValidationTarget, ValueCodec, VideoPlayerEmits, VideoPlayerExpose, VideoPlayerProps, VideoQuiz, VideoSourceAdapter, VideoSourceType, VirtualScrollConfig, WATERMARK_DEFAULT_STYLE, WEEK_LABELS, WSConnectionStatus, WSNotificationPayload, WaterFallBreakpoint, WaterFallColumn, WaterFallEmits, WaterFallExpose, WaterFallItem, WaterFallLayoutItem, WaterFallProps, WatermarkConfig$1 as WatermarkConfig, WordLoadResult, WorkflowApiResponse, WorkflowConditionField, WorkflowConfig, WorkflowData, WorkflowEdge, WorkflowEmits, WorkflowExpose, WorkflowHistory, WorkflowNode, WorkflowNodeDataMap, WorkflowNodeRenderContext, WorkflowPeopleFilters, WorkflowPeopleOptions, WorkflowProps, WorkflowSlots, WorkflowStats, WorkflowUtils, XGPLAYER_EVENTS, ZoomConfig, appendGanttGroup, applyFormatter, collectValidationIssues, createAutoCompleteField, createBatchPatch, createCaptchaProof, createComponentTheme, createDataPickerField, createEditModeChecker, createFormRendererRegistry, createHighlight, createMenuOptions, createNumberCodec, createPageLoading, createSelectField, createTableAutoCompleteEditor, createTableSelectEditor, createUserPickerSource, _default$58 as default, defineActions, defineFormConfig, defineFormOptions, defineTableColumns, defineTableConfig, defineTabs, exportTableData, flattenRoutes, formatFileSize, formatTime, presetConfigs as ganttPresetConfigs, getFileIcon, getInitials, getItem, getRetryableKeys, getValidMapMarkers, isValidMapCoordinate, mergeFormConfig, mergeGlobalConfig, nameToColor, normalizeMapZoom, printPresets, registerRenderer, removeAllItem, removeItem, resolveActionPreset, resolveComponentDensity, resolveConfig, resolveFormConfig, resolveTileConfig, serializeSearch, setItem, setupHighlight, shouldShowActions, toAMapPosition, presetConfigs$1 as treePresetConfigs, unregisterRenderer, useBookmarks, useCForm, useCalendarEvents, useCellEdit, useChapters, useChunkUpload, useCollapsePanel, useComponentFeedback, useComponentLocale, useCronDescription, useCronParser, useCronPreview, useCropperCore, useCrossPageSelection, useDataResource, useDragDrop, useDraggableLayout, useDynamicFormState, useDynamicRows, useEdgeInteraction, useFileHash, useFilePreview, useFormArray, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState, useFormulaEvaluator, useFormulaParser, useFullscreen, useGlobalSearch, useGraphBase, useGraphExport, useHighlight, useInfiniteScroll, useModalEdit, useNotificationCore, useNotificationFormat, useNotificationWS, usePagination, usePlaybackControl, usePlayerCore, usePrintWatermark, useProgressTracker, useQRCode, useResponsiveColumns, useRowDrag, useRowEdit, useSearchHistory, useSearchState, useSignatureCanvas, useSignatureExport, useSignatureHistory, useSplitResize, useSubtitle, useTableActions, useTableColumns, useTableExpand, useTableGlobalConfig, useTableManager, useTableQuery, useTagsView, useTimeSelection, useTreeOperations, useUploadCore, useUploadQueue, useValidationScope, useWaterFallLayout, useWorkflowNodes, useWorkflowPreview, useWorkflowValidation, validateTableRowKeys, verifyCaptchaProof };
102
+ export { ACTION_BAR_DEFAULT_CONFIG, ACTION_KEYS, ACTION_PRESETS, AMapApi, AMapMapInstance, AMapMarkerEvent, AMapPosition, AMapSecurityConfig, STATUS_COLOR_MAP as AVATAR_STATUS_COLOR_MAP, ActionBarConfig, ActionButtonSize, ActionButtonType, ActionConfig, ActionDropdownItem, ActionGroupAlign, ActionItem, ActionState, AlignItems, AnalyticsEvent, AnalyticsEventType, AnalyticsReporter, AntiCheatConfig, ApiFunction, ApprovalMode, ApprovalNodeData, AspectRatioPreset, AsyncOptionsContext, AudioPlayerProps, AudioTrack, AutoCompleteOptionItem, AutoCompleteProps, AvatarGroupProps, AvatarItem, BPMNDiagramData, BPMNFlow, BPMNNode, BUTTON_TEXT, BaseNodeData, BatchActionsConfig, BatchFieldChange, BatchOperationResult, BatchResultEmits, BatchResultProps, Bookmark, BreadcrumbItem, BreadcrumbMenuItem, BuiltInTableColumn, ButtonType, CATEGORY_MAP, CATEGORY_TABS, COMPONENT_COLOR_PALETTES, COMPONENT_CONTROL_HEIGHTS, COMPONENT_FEEDBACK_KEY, COMPONENT_LOCALE_KEY, CRON_FIELD_META, CRON_TEMPLATES, CTabsEmits, CTabsProps, _default as C_ActionBar, _default$1 as C_AntV, _default$2 as C_AudioPlayer, _default$3 as C_AutoComplete, _default$4 as C_AvatarGroup, _default$5 as C_Barcode, _default$6 as C_BatchResult, _default$7 as C_Breadcrumb, _default$8 as C_Captcha, _default$9 as C_Cascade, _default$10 as C_Chat, _default$11 as C_City, _default$12 as C_Code, _default$13 as C_CollapsePanel, _default$14 as C_ContextMenu, _default$15 as C_Cron, _default$16 as C_DataPicker, C_Date, _default$17 as C_Density, _default$18 as C_Draggable, _default$19 as C_Editor, _default$20 as C_ErrorSummary, _default$21 as C_FilePreview, _default$22 as C_Form, _default$23 as C_FormModal, C_FormSearch, _default$24 as C_FormulaEditor, _default$25 as C_FullCalendar, _default$26 as C_GlobalSearch, _default$27 as C_Guide, _default$28 as C_Icon, _default$29 as C_ImageCropper, _default$30 as C_Language, _default$31 as C_Loading, _default$32 as C_Login, _default$33 as C_Map, _default$34 as C_Markdown, _default$35 as C_Menu, _default$36 as C_NotificationCenter, C_OrgChart, _default$37 as C_PageLoading, _default$38 as C_Progress, _default$39 as C_QRCode, _default$40 as C_SectionNav, _default$41 as C_Select, _default$42 as C_Signature, _default$43 as C_Skeleton, _default$44 as C_SplitPane, _default$45 as C_Steps, _default$46 as C_Table, _default$47 as C_Tabs, _default$48 as C_TagsView, _default$49 as C_Theme, C_Time, _default$50 as C_Timeline, _default$51 as C_Transfer, _default$52 as C_Tree, _default$53 as C_Upload, _default$54 as C_UserPicker, _default$55 as C_VideoPlayer, C_VtableGantt, _default$56 as C_WaterFall, _default$57 as C_WorkFlow, CalendarEditForm, CalendarEmits, CalendarEvent, CalendarExpose, CalendarProps, CalendarViewType, CaptchaEmits, CaptchaFormData, CaptchaInstance, CaptchaProof, CaptchaProps, CaptchaProvider, CaptchaSuccessPayload, CaptchaVerificationError, CaptchaVerificationRequest, CaptchaVerificationResult, CaptchaVerifier, CardLayoutConfig, CascadeItem, CascadeValue, Chapter, ChatContact, ChatMessage, ChatProps, ChildSelectionState, ChunkProgress, ClearNotificationsFn, ClipboardConfig, CollapsePanelEmits, CollapsePanelExpose, CollapsePanelItem, CollapsePanelProps, CollapsePanelVariant, CollapseTarget, ColumnDragConfig, ColumnFormatter, ColumnStatus, ColumnWithKey, type ComponentColorMode, type ComponentDensity, type ComponentFeedback, ComponentLibOptions, type ComponentLocale, type ComponentLocaleName, ComponentMap, type ComponentThemeColors, type ComponentThemeConfig, type ComponentThemeOptions, ComponentType, Condition, ConditionNodeData, type ConfirmOptions, ConnectionConfig, ContextMenuItem, ContextMenuLabels, ContextMenuProps, CopyNodeData, CronConfig, CronEmits, CronExpose, CronFieldMeta, CronFieldMode, CronFieldType, CronFieldValue, CronProps, CronTemplate, CronValidation, CronValue, CropOutputFormat, CropResult, CrossPageSelectionConfig, CrudBinding, CustomAction, CustomLayoutConfig, CustomUploadRequest, DEFAULT_ACTION_ICON, DEFAULT_ANIMATION_DURATION, DEFAULT_AUDIO_PLAYER_PROPS, DEFAULT_AVATAR_GROUP_PROPS, DEFAULT_BREAKPOINTS, DEFAULT_CHAT_PROPS, DEFAULT_CONTEXT_MENU_PROPS, DEFAULT_CRON_EXPRESSION, DEFAULT_CRON_VALUE, DEFAULT_EDIT_FORM, DEFAULT_FEATURES, DEFAULT_FIELD_VALUE, DEFAULT_FUNCTIONS, DEFAULT_GAP, DEFAULT_HEARTBEAT_INTERVAL, DEFAULT_MAP_CONFIG, DEFAULT_MAX_BADGE_COUNT, DEFAULT_PAGE_SIZE, DEFAULT_PLAYBACK_RATE, DEFAULT_PLAYBACK_RATES, DEFAULT_POLLING_INTERVAL, DEFAULT_SKELETON_COUNT, DEFAULT_SOCIAL_PROVIDERS, DEFAULT_STORAGE_KEY, DEFAULT_TIMELINE_PROPS, DEFAULT_TRANSFER_PROPS, DEFAULT_VOLUME, DEFAULT_WS_HEARTBEAT_INTERVAL, DEFAULT_WS_HEARTBEAT_MESSAGE, DEFAULT_WS_MAX_RECONNECT, DEFAULT_WS_RECONNECT_INTERVAL, DYNAMIC_FORM_STATE_KEY, DataPickerEmits, DataPickerExpose, DataPickerHistoryOptions, DataPickerNavigation, DataPickerNavigationContext, DataPickerNavigationNode, DataPickerProps, DataPickerRequest, DataPickerSelectedItem, DataPickerSelectionContext, DataPickerSource, DataPickerSourceInput, DataPickerValue, DataRecord, DataResourceOptions, DataResourceStatus, DateEmits, DateExpose, DateModelValue, DatePickerMode, DateProps, DateRangeInput, DateRangeValue, DateValue, DeleteNotificationFn, Department, DiagramConfig, DiagramData, DiagramExpose, DiagramType, DisplayConfig, DocHeading, DragEvent, DraggableEmits, DraggableExpose, DraggableItem, DraggableProps, DraggableSlots, DropInfo, DynamicFieldConfig, DynamicFormConfig, DynamicFormController, DynamicFormState, DynamicFormStateType, DynamicRowsOptions, DynamicRowsReturn, ERDiagramData, ERField, ERRelation, ERTable, EVENT_COLORS, EditConfig, EditMode, EditProps, EraserConfig, ErrorConfig, ErrorCorrectionLevel, ErrorSummaryProps, ExcelCell, ExcelColumn, ExcelLoadResult, ExcelRow, ExcelSheet, ExpandConfig, ExpandIconPosition, ExportConfig, ExportFormat, ExportOptions, ExportType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, FetchNotificationsFn, FetchNotificationsResult, FieldPath, FieldPathValue, FileConfig, FilePreviewLimits, FilePreviewProps, FilePreviewType, FormActionSlotProps, FormArrayEntry, FormConfig, FormErrorContext, FormInstance, FormModalEditor, FormModalEmits, FormModalMode, FormModalProps, FormMode, FormModel, FormOption, FormRecord, FormRenderer, FormRendererContext, FormRendererRegistry, FormSearchEmits, FormSearchExpose, FormSearchProps, FormSlots, FormStepActionsSlotProps, FormSubmitContext, FormTabActionsSlotProps, FormValidationRule, FormatterConfig, FormatterType, FormulaEditorConfig, FormulaEditorEmits, FormulaEditorExpose, FormulaEditorProps, FormulaFunction, FormulaKeyType, FormulaKeyboardKey, FormulaTemplate, FormulaToken, FormulaTokenType, FormulaValidation, FormulaVariable, FormulaVariableType, GanttClickEvent, GanttEmits, GanttExpose, GanttOptions, GanttPreset, GanttProps, GanttTask, GanttTaskBarContext, GanttTaskBarLayout, GanttTaskCellContext, GanttTaskCellLayout, GanttTaskChanges, GanttTaskNodeRecord, GanttTaskRecord, GanttTimelineContext, GanttTimelineLayout, GlobalSearchOptions, GraphConfig, GraphEvents, GraphExportOptions, GridConfig, GridLayoutConfig, GroupOptions, GroupTableColumn, GuideExpose, GuideIllustration, GuidePersistence, GuideProps, GuideStep, GuideTarget, GuideTheme, HEADER_TOOLBAR, type HighlightAPI, type HighlightPluginOptions, HistoryConfig, HistoryItem, IDefinition, INFINITE_SCROLL_THRESHOLD, IPlayerOptions, IconConfig, IconProps, ImageCropperEmits, ImageCropperExpose, ImageCropperProps, InfiniteScrollStatus, InlineLayoutConfig, InlineTableAction, InstantCheckFn, JustifyContent, KEYBOARD_SHORTCUTS, KeyboardConfig, LAYOUTS_WITH_OWN_CONTROLS, LabelPlacement, LanguageOption, LayoutCallbacks, LayoutConfig, LayoutMode, LayoutOptions, LayoutType, LoadingProps, LoginFeatures, LoginProps, LogoOptions, MAP_TYPES, MOCK_MESSAGES, MODE_ICON_MAP, MONTH_LABELS, MapConfig, MapCoordinate, MapExpose, MapFitOptions, MapInstance, MapMarker, MapMarkerEvent, MapProps, MapTileConfig, MapType, MarkAllReadFn, MarkAsReadFn, MaybePromise, MaybeRefLike, MenuAdapterConfig, MenuEmits, MenuExpose, MenuItem, MenuKey, MenuPosition, MenuProps, MenuValue, MergeChunksFn, MessageSender, MessageStatus, MessageType, MinimapConfig, MouseWheelConfig, NAIVE_COMBOS, NUMBER_KEYS, NodeConfigFormData, NodeData, NodeStatus, NodeTemplate, NodeType, NormalTableColumn, NotificationCategory, NotificationCategoryOption, NotificationCenterController, NotificationCenterEmits, NotificationCenterExpose, NotificationCenterProps, NotificationCenterSlots, NotificationDataMode, NotificationItemSlotContext, NotificationMessage, NotificationPriority, NotificationSender, NotificationStatus, NotificationUnreadByCategory, NotificationWSConfig, NumberCodecOptions, OPERATORS, OPERATOR_KEYS, OSM_TILE_CONFIG, OptionItem, OptionPage, OptionRequest, OptionSource, OptionValue, OptionsState, OrgChartDirection, OrgChartEmits, OrgChartExpose, OrgChartKey, OrgChartLineStyle, OrgChartNode, OrgChartNodeSlotProps, OrgChartProps, OrgChartSlots, PRESET_RULES, PRIORITY_MAP, PROGRESS_THROTTLE_INTERVAL, PageLoadingOptions, PageLoadingProps, PaginationConfig, PanelInfo, ParentChildLinkMode, PasswordFormData, PatchScalar, PdfLoadResult, PenConfig, PenMode, PlaybackRate, PlayerInstance, PlayerState, Position, PrintWatermarkOptions, ProgressData, ProgressReporter, QRCodeExpose, QRCodeProps, QUALITY_LABEL_MAP, QualityDefinition, QualityLevel, QuizOption, QuizType, RegisterFormData, RenderFunction, RenderMode, RendererProps, type ResolvedComponentDensity, ResolvedFormConfig, Role, RouteItem, RouteMeta, RowAction, RowDragConfig, RuleSpec, SEEK_STEP, SKELETON_HEIGHT_RANGE, SOURCE_TYPE_MAP, SPACED_OPERATORS, SPEC_RULES, STORAGE_KEYS, STORAGE_PREFIX, ScrollerConfig, SearchConfig, SearchDateRangeValue, SearchFieldContext, SearchFieldSettings, SearchFieldType, SearchFormItem, SearchFormParams, SearchMenuItem, SearchNumberRangeValue, SearchOptionItem, SearchQueryEncoding, SectionNavItem, SectionNavProps, SelectModelValue, SelectOption, SelectOptionGroup, SelectOptionItem, SelectOptionNode, SelectProps, SelectSelection, SelectValue, SelectionConfig, SerializeSearchOptions, SignatureEmits, SignatureExportFormat, SignatureExpose, SignaturePoint, SignatureProps, SignatureSnapshot, SignatureStroke, SimpleTableActions, SkeletonAnimation, SkeletonCardConfig, SkeletonDetailConfig, SkeletonFormConfig, SkeletonListConfig, SkeletonPreset, SkeletonProps, SkeletonTableConfig, SnapshotConfig, SocialProvider, SplitDirection, SplitPaneEmits, SplitPaneExpose, SplitPaneProps, StartNodeData, StatusConfig, StatusType, StepItem, StepsLayoutConfig, StrictTableColumn, SubmitEventPayload, SubtitleTrack, SummaryConfig, TABLE_GLOBAL_CONFIG_KEY, STATUS_COLOR_MAP$1 as TIMELINE_STATUS_COLOR_MAP, TableActionsEmits, TableActionsProps, CaptureConfig as TableCaptureConfig, TableColumn, TableConfig, TableEditorContext, TableEmits, TableGlobalConfig, TableInstance, TableManagerApi, PrintConfig as TablePrintConfig, TableProps, TableQueryContext, TableQueryResult, TableRowKey, TableRowKeyIssue, SelectionConfig$1 as TableSelectionConfig, WatermarkConfig as TableWatermarkConfig, TabsBadgeType, TabsDisplayDirective, TabsItem, TabsJustifyContent, TabsLayoutConfig, TabsPlacement, TabsSize, TabsType, TabsValue, TagItem, ThemeConfig, ThemeMode, ThumbnailConfig, TimeEmits, TimeExpose, TimeMode, TimeModelValue, TimeProps, TimeRangeValue, TimelineItem, TimelineProps, ToolbarAction, ToolbarConfig, TransferEmits, TransferItem, TransferProps, TreeConfig, TreeEmits, TreeExpose, TreeKey, TreeMode, TreeNativeProps, TreeNodeData, TreeNodeIcon, TreeNodeRenderContext, TreeOption, TreeProps, TreeRenderContext, TreeSearchSource, TreeSlots, TreeUpdateMeta, UMLAttribute, UMLClass, UMLDiagramData, UMLMethod, UMLRelation, UploadChunk, UploadEmits, UploadExpose, UploadFileItem, UploadFileStatus, UploadProps, UploadRequestOptions, UploadedChunksQueryFn, UseCFormOptions, UseCFormReturn, UseCrossPageSelectionOptions, UseCrossPageSelectionReturn, UseFormDirtyReturn, UseFormRendererOptions, UseRowDragOptions, UseRowDragReturn, UseTableExpandOptions, UseTableExpandReturn, UseTableQueryOptions, UseTagsViewOptions, User, UserPickerEmits, UserPickerExpose, UserPickerFields, UserPickerModel, UserPickerOrganization, UserPickerProps, UserPickerSlots, UserPickerSource, VOLUME_STEP, ValidationError, ValidationErrorType, ValidationIssue, ValidationParticipant, ValidationResult, ValidationTarget, ValueCodec, VideoPlayerEmits, VideoPlayerExpose, VideoPlayerProps, VideoQuiz, VideoSourceAdapter, VideoSourceType, VirtualScrollConfig, WATERMARK_DEFAULT_STYLE, WEEK_LABELS, WSConnectionStatus, WSNotificationPayload, WaterFallBreakpoint, WaterFallColumn, WaterFallEmits, WaterFallExpose, WaterFallItem, WaterFallLayoutItem, WaterFallProps, WatermarkConfig$1 as WatermarkConfig, WordLoadResult, WorkflowApiResponse, WorkflowConditionField, WorkflowConfig, WorkflowData, WorkflowEdge, WorkflowEmits, WorkflowExpose, WorkflowHistory, WorkflowNode, WorkflowNodeDataMap, WorkflowNodeRenderContext, WorkflowPeopleFilters, WorkflowPeopleOptions, WorkflowProps, WorkflowSlots, WorkflowStats, WorkflowUtils, XGPLAYER_EVENTS, ZoomConfig, appendGanttGroup, applyFormatter, collectValidationIssues, createAutoCompleteField, createBatchPatch, createCaptchaProof, createComponentTheme, createDataPickerField, createEditModeChecker, createFormRendererRegistry, createHighlight, createMenuOptions, createNumberCodec, createPageLoading, createSelectField, createTableAutoCompleteEditor, createTableSelectEditor, createUserPickerSource, _default$58 as default, defineActions, defineFormConfig, defineFormOptions, defineTableColumns, defineTableConfig, defineTabs, exportTableData, flattenRoutes, formatFileSize, formatTime, presetConfigs as ganttPresetConfigs, getFileIcon, getInitials, getItem, getRetryableKeys, getValidMapMarkers, isValidMapCoordinate, mergeFormConfig, mergeGlobalConfig, nameToColor, normalizeMapZoom, printPresets, registerRenderer, removeAllItem, removeItem, resolveActionPreset, resolveComponentDensity, resolveConfig, resolveFormConfig, resolveTileConfig, serializeSearch, setItem, setupHighlight, shouldShowActions, toAMapPosition, presetConfigs$1 as treePresetConfigs, unregisterRenderer, useBookmarks, useCForm, useCalendarEvents, useCellEdit, useChapters, useChunkUpload, useCollapsePanel, useComponentFeedback, useComponentLocale, useCronDescription, useCronParser, useCronPreview, useCropperCore, useCrossPageSelection, useDataResource, useDragDrop, useDraggableLayout, useDynamicFormState, useDynamicRows, useEdgeInteraction, useFileHash, useFilePreview, useFormArray, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState, useFormulaEvaluator, useFormulaParser, useFullscreen, useGlobalSearch, useGraphBase, useGraphExport, useHighlight, useInfiniteScroll, useModalEdit, useNotificationCore, useNotificationFormat, useNotificationWS, usePagination, usePlaybackControl, usePlayerCore, usePrintWatermark, useProgressTracker, useQRCode, useResponsiveColumns, useRowDrag, useRowEdit, useSearchHistory, useSearchState, useSignatureCanvas, useSignatureExport, useSignatureHistory, useSplitResize, useSubtitle, useTableActions, useTableColumns, useTableExpand, useTableGlobalConfig, useTableManager, useTableQuery, useTagsView, useTimeSelection, useTreeOperations, useUploadCore, useUploadQueue, useValidationScope, useWaterFallLayout, useWorkflowNodes, useWorkflowPreview, useWorkflowValidation, validateTableRowKeys, verifyCaptchaProof };