@ibiz-template/vue3-components 0.7.41-alpha.111 → 0.7.41-alpha.112

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 (86) hide show
  1. package/dist/{index-BP7a4gcG.js → index-XI8ySm9i.js} +4 -4
  2. package/dist/{index.es-Ur-QLCI4.js → index.es-Dsu1bPbQ.js} +1 -1
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/map-chart-nwkjjlMK.js +1 -0
  6. package/dist/map-chart-user-BqadFpkw.js +1 -0
  7. package/dist/{wang-editor-lUuJmqAh.js → wang-editor-4OTQfjW9.js} +1 -1
  8. package/dist/{xlsx-util-C1ySj_kQ.js → xlsx-util--TUzshNx.js} +1 -1
  9. package/es/common/map-chart/map-chart.mjs +2 -9
  10. package/es/common/map-chart-user/map-chart-user.mjs +3 -11
  11. package/es/control/calendar/calendar.mjs +17 -4
  12. package/es/control/calendar/components/calendar-user/calendar-user.mjs +4 -2
  13. package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +4 -3
  14. package/es/control/drtab/drtab-control.util.mjs +1 -1
  15. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -0
  16. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +1 -0
  17. package/es/control/grid/grid/grid-control.util.mjs +14 -1
  18. package/es/control/grid/grid/grid.mjs +5 -2
  19. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  20. package/es/control/map/map.mjs +33 -7
  21. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
  22. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -2
  23. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +5 -3
  24. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -2
  25. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
  26. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -2
  27. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
  28. package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +17 -15
  29. package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +15 -5
  30. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +19 -4
  31. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  32. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  33. package/es/web-app/adaptive-screen-width.mjs +5 -5
  34. package/lib/common/map-chart/map-chart.cjs +1 -8
  35. package/lib/common/map-chart-user/map-chart-user.cjs +2 -10
  36. package/lib/control/calendar/calendar.cjs +16 -3
  37. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +4 -2
  38. package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +4 -3
  39. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  40. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -0
  41. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +1 -0
  42. package/lib/control/grid/grid/grid-control.util.cjs +14 -1
  43. package/lib/control/grid/grid/grid.cjs +5 -2
  44. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  45. package/lib/control/map/map.cjs +32 -6
  46. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
  47. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
  48. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +5 -3
  49. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
  50. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
  51. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
  52. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
  53. package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +17 -15
  54. package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +15 -5
  55. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +19 -4
  56. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  57. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  58. package/lib/web-app/adaptive-screen-width.cjs +5 -5
  59. package/package.json +7 -7
  60. package/src/common/map-chart/map-chart.tsx +3 -5
  61. package/src/common/map-chart-user/map-chart-user.tsx +3 -8
  62. package/src/control/calendar/calendar.tsx +27 -1
  63. package/src/control/calendar/components/calendar-user/calendar-user.tsx +8 -2
  64. package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +7 -3
  65. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +1 -0
  66. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +1 -0
  67. package/src/control/grid/grid/grid-control.util.ts +20 -0
  68. package/src/control/grid/grid/grid.tsx +3 -0
  69. package/src/control/grid/grid-column/grid-field-column/grid-field-column.scss +3 -3
  70. package/src/control/map/map.tsx +44 -4
  71. package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.scss +12 -1
  72. package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.tsx +2 -1
  73. package/src/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.tsx +10 -2
  74. package/src/editor/data-picker/ibiz-mpicker/ibiz-mpicker.tsx +2 -1
  75. package/src/editor/data-picker/ibiz-picker/ibiz-picker.tsx +2 -1
  76. package/src/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx +2 -1
  77. package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.tsx +2 -5
  78. package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +27 -13
  79. package/src/editor/dropdown-list/dropdown-list-editor.controller.ts +12 -2
  80. package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +32 -4
  81. package/src/panel-component/auth-userinfo/auth-userinfo.scss +1 -1
  82. package/src/web-app/adaptive-screen-width.ts +12 -6
  83. package/dist/map-chart-DbBbP4qh.js +0 -1
  84. package/dist/map-chart-user-CfTAGaU5.js +0 -1
  85. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.113_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  86. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.113_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -1 +1 @@
1
- System.register(["./index-BP7a4gcG.js","@ibiz-template/model-helper","@ibiz-template/vue3-util","qs","@ibiz-template/core","vue","@ibiz-template/runtime","qx-util","element-plus","ramda","lodash-es","@floating-ui/dom","interactjs","dayjs","vuedraggable","@wangeditor/editor","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","@ibiz-template/devtool","axios","dayjs/plugin/customParseFormat","vue-i18n"],function(i){"use strict";return{setters:[function(e){i({AIChatUtil:e.c5,ActionBarPortlet:e.at,AppDataUploadViewEngine:e.ba,AppFuncBlockProvider:e.cj,AppRouter:e.ci,AppUtil:e.c0,ArrowLeftBold:e.ce,ArrowRightBold:e.cf,AuthGuard:e.cg,CalendarExpViewEngine:e.bb,CalendarViewEngine:e.bc,ChartExpViewEngine:e.bd,ChartPortlet:e.al,ChartViewEngine:e.be,ConfirmUtil:e.bV,ContainerPortlet:e.ae,CustomViewEngine:e.bf,DEIndexViewEngine:e.bi,DRBarController:e.a9,DRTabController:e.ab,DataViewControlProvider:e.W,DataViewEngine:e.b6,DataViewExpViewEngine:e.bh,DoingNotice:e.D,EditView2Engine:e.bk,EditView3Engine:e.bl,EditView4Engine:e.bm,EditViewEngine:e.bj,ErrorView:e.b1,ExpViewEngine:e.bn,FilterPortlet:e.ax,FormPickupDataViewEngine:e.bo,FullscreenUtil:e.c1,GanttViewEngine:e.bp,GridExpViewEngine:e.bq,GridViewEngine:e.b4,HtmlPortlet:e.ar,IBizActionBarPortlet:e.as,IBizActionToolbar:e.e,IBizAppMenuControl:e.m,IBizAppMenuIconViewControl:e.n,IBizAuthUserinfo:e.aJ,IBizCalendarControl:e.ay,IBizCalendarExpBarControl:e.a3,IBizCaptionBarControl:e.U,IBizChartControl:e.a6,IBizChartExpBarControl:e.a4,IBizChartPortlet:e.ak,IBizCol:e.b,IBizCommonComponents:e.a,IBizContainerPortlet:e.ad,IBizContextMenuControl:e.aG,IBizDRBarControl:e.a8,IBizDRTabControl:e.aa,IBizDashboardControl:e.ac,IBizDataViewControl:e.V,IBizDataViewExpBarControl:e.a2,IBizDynamicGridFieldEditColumn:e.y,IBizEditFormControl:e.R,IBizEditor:e.aX,IBizFilterPortlet:e.aw,IBizFormButton:e.J,IBizFormButtonList:e.P,IBizFormControl:e.S,IBizFormDRUIPart:e.K,IBizFormGroupPanel:e.C,IBizFormIFrame:e.Q,IBizFormItem:e.E,IBizFormItemContainer:e.F,IBizFormMDCtrl:e.L,IBizFormPage:e.G,IBizFormPageItem:e.H,IBizFormRawItem:e.M,IBizFormTabPage:e.O,IBizFormTabPanel:e.N,IBizGanttControl:e.aF,IBizGridColumnHeader:e.z,IBizGridControl:e.o,IBizGridExpBarControl:e.a1,IBizGridFieldColumn:e.t,IBizGridFieldEditColumn:e.w,IBizGridGroupColumn:e.x,IBizGridUAColumn:e.v,IBizHtmlPortlet:e.aq,IBizIndexActions:e.aV,IBizKanbanControl:e.az,IBizListControl:e.A,IBizListExpBarControl:e.a0,IBizListPortlet:e.ao,IBizMEditViewPanelControl:e.aC,IBizMapControl:e.aD,IBizMenuPortlet:e.ai,IBizNavPosIndex:e.aM,IBizPanelAppTitle:e.aP,IBizPanelButton:e.aN,IBizPanelComponents:e.aI,IBizPanelIndexViewSearch:e.aU,IBizPanelTabPanel:e.aR,IBizPickupViewPanelControl:e.Y,IBizRawItem:e.f,IBizRawItemPortlet:e.am,IBizReportPanelControl:e.aE,IBizReportPortlet:e.au,IBizRow:e.d,IBizSearchBarControl:e.a5,IBizSearchFormControl:e.B,IBizSortBar:e.l,IBizSplit:e.j,IBizSplitContainer:e.aT,IBizSplitTrigger:e.k,IBizSubAppRefView:e.b0,IBizTabExpPanelControl:e.Z,IBizToolbarControl:e.T,IBizTreeControl:e.X,IBizTreeExpBarControl:e.$,IBizTreeGridControl:e.aB,IBizTreeGridExControl:e.aA,IBizUserAction:e.aW,IBizViewEngine:e.b3,IBizViewPanelControl:e.aH,IBizViewPortlet:e.ag,IBizVue3:e.I,IBizWFStepTraceView:e.a$,IBizWizardPanelControl:e.a7,InLineAIUtil:e.c4,IndexViewEngine:e.b5,KanbanViewEngine:e.br,ListExpViewEngine:e.bs,ListPortlet:e.ap,ListViewEngine:e.bt,LoadingUtil:e.bS,LoginView:e.a_,LoginViewEngine:e.bu,MDCustomViewEngine:e.bg,MEditView9Engine:e.bw,MPickupView2Engine:e.by,MPickupViewEngine:e.bx,MapViewEngine:e.bv,MenuPortlet:e.aj,MessageUtil:e.bT,ModalUtil:e.bU,NavPosIndexController:e.aL,NavPosIndexState:e.aK,NoticeUtil:e.b_,NotificationUtil:e.bW,OpenViewUtil:e.bX,OptViewEngine:e.b7,OverlayController:e.bY,PanelAppTitleController:e.aQ,PanelButtonController:e.aO,PanelViewEngine:e.bz,PickupDataViewEngine:e.bA,PickupGridViewEngine:e.bB,PickupTreeViewEngine:e.bC,PickupView2Engine:e.bE,PickupViewEngine:e.bD,PortalViewEngine:e.bF,PortletLayout:e.af,PrintPreviewUtil:e.c9,QrcodeUtil:e.cb,RawItemPortlet:e.an,RenderUtil:e.b$,ReportPortlet:e.av,ReportViewEngine:e.bG,ScreenShotUtil:e.c6,SplitContainerController:e.aS,SubAppRefViewEngine:e.bH,TabExpViewEngine:e.b8,TabSearchViewEngine:e.bI,TreeExpViewEngine:e.b9,TreeGridExViewEngine:e.bJ,TreeGridViewEngine:e.bK,TreeViewEngine:e.bL,UnauthorizedView:e.b2,View403:e.aZ,View404:e.aY,ViewPortlet:e.ah,WFDynaActionViewEngine:e.bM,WFDynaEditView3Engine:e.bO,WFDynaEditViewEngine:e.bN,WFDynaStartViewEngine:e.bP,WFStepDataViewEngine:e.bQ,WizardViewEngine:e.bR,convertBtnType:e.c3,getRelativePathWithoutRoot:e.cc,i18n:e.i,parseHtml:e.cd,runApp:e.ch,splitPathToSegments:e.c7,useAppGridBase:e.q,useAppGridPagination:e.p,useContextMenu:e.ca,useFocusByEnter:e.c2,useGridDraggable:e.s,useGridHeaderStyle:e.r,useITableEvent:e.u,usePagination:e.bZ,validateRouteSegments:e.c8})},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}});
1
+ System.register(["./index-XI8ySm9i.js","@ibiz-template/model-helper","@ibiz-template/vue3-util","qs","@ibiz-template/core","vue","@ibiz-template/runtime","qx-util","element-plus","ramda","lodash-es","@floating-ui/dom","interactjs","dayjs","vuedraggable","@wangeditor/editor","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","@ibiz-template/devtool","axios","dayjs/plugin/customParseFormat","vue-i18n"],function(i){"use strict";return{setters:[function(e){i({AIChatUtil:e.c5,ActionBarPortlet:e.at,AppDataUploadViewEngine:e.ba,AppFuncBlockProvider:e.cj,AppRouter:e.ci,AppUtil:e.c0,ArrowLeftBold:e.ce,ArrowRightBold:e.cf,AuthGuard:e.cg,CalendarExpViewEngine:e.bb,CalendarViewEngine:e.bc,ChartExpViewEngine:e.bd,ChartPortlet:e.al,ChartViewEngine:e.be,ConfirmUtil:e.bV,ContainerPortlet:e.ae,CustomViewEngine:e.bf,DEIndexViewEngine:e.bi,DRBarController:e.a9,DRTabController:e.ab,DataViewControlProvider:e.W,DataViewEngine:e.b6,DataViewExpViewEngine:e.bh,DoingNotice:e.D,EditView2Engine:e.bk,EditView3Engine:e.bl,EditView4Engine:e.bm,EditViewEngine:e.bj,ErrorView:e.b1,ExpViewEngine:e.bn,FilterPortlet:e.ax,FormPickupDataViewEngine:e.bo,FullscreenUtil:e.c1,GanttViewEngine:e.bp,GridExpViewEngine:e.bq,GridViewEngine:e.b4,HtmlPortlet:e.ar,IBizActionBarPortlet:e.as,IBizActionToolbar:e.e,IBizAppMenuControl:e.m,IBizAppMenuIconViewControl:e.n,IBizAuthUserinfo:e.aJ,IBizCalendarControl:e.ay,IBizCalendarExpBarControl:e.a3,IBizCaptionBarControl:e.U,IBizChartControl:e.a6,IBizChartExpBarControl:e.a4,IBizChartPortlet:e.ak,IBizCol:e.b,IBizCommonComponents:e.a,IBizContainerPortlet:e.ad,IBizContextMenuControl:e.aG,IBizDRBarControl:e.a8,IBizDRTabControl:e.aa,IBizDashboardControl:e.ac,IBizDataViewControl:e.V,IBizDataViewExpBarControl:e.a2,IBizDynamicGridFieldEditColumn:e.y,IBizEditFormControl:e.R,IBizEditor:e.aX,IBizFilterPortlet:e.aw,IBizFormButton:e.J,IBizFormButtonList:e.P,IBizFormControl:e.S,IBizFormDRUIPart:e.K,IBizFormGroupPanel:e.C,IBizFormIFrame:e.Q,IBizFormItem:e.E,IBizFormItemContainer:e.F,IBizFormMDCtrl:e.L,IBizFormPage:e.G,IBizFormPageItem:e.H,IBizFormRawItem:e.M,IBizFormTabPage:e.O,IBizFormTabPanel:e.N,IBizGanttControl:e.aF,IBizGridColumnHeader:e.z,IBizGridControl:e.o,IBizGridExpBarControl:e.a1,IBizGridFieldColumn:e.t,IBizGridFieldEditColumn:e.w,IBizGridGroupColumn:e.x,IBizGridUAColumn:e.v,IBizHtmlPortlet:e.aq,IBizIndexActions:e.aV,IBizKanbanControl:e.az,IBizListControl:e.A,IBizListExpBarControl:e.a0,IBizListPortlet:e.ao,IBizMEditViewPanelControl:e.aC,IBizMapControl:e.aD,IBizMenuPortlet:e.ai,IBizNavPosIndex:e.aM,IBizPanelAppTitle:e.aP,IBizPanelButton:e.aN,IBizPanelComponents:e.aI,IBizPanelIndexViewSearch:e.aU,IBizPanelTabPanel:e.aR,IBizPickupViewPanelControl:e.Y,IBizRawItem:e.f,IBizRawItemPortlet:e.am,IBizReportPanelControl:e.aE,IBizReportPortlet:e.au,IBizRow:e.d,IBizSearchBarControl:e.a5,IBizSearchFormControl:e.B,IBizSortBar:e.l,IBizSplit:e.j,IBizSplitContainer:e.aT,IBizSplitTrigger:e.k,IBizSubAppRefView:e.b0,IBizTabExpPanelControl:e.Z,IBizToolbarControl:e.T,IBizTreeControl:e.X,IBizTreeExpBarControl:e.$,IBizTreeGridControl:e.aB,IBizTreeGridExControl:e.aA,IBizUserAction:e.aW,IBizViewEngine:e.b3,IBizViewPanelControl:e.aH,IBizViewPortlet:e.ag,IBizVue3:e.I,IBizWFStepTraceView:e.a$,IBizWizardPanelControl:e.a7,InLineAIUtil:e.c4,IndexViewEngine:e.b5,KanbanViewEngine:e.br,ListExpViewEngine:e.bs,ListPortlet:e.ap,ListViewEngine:e.bt,LoadingUtil:e.bS,LoginView:e.a_,LoginViewEngine:e.bu,MDCustomViewEngine:e.bg,MEditView9Engine:e.bw,MPickupView2Engine:e.by,MPickupViewEngine:e.bx,MapViewEngine:e.bv,MenuPortlet:e.aj,MessageUtil:e.bT,ModalUtil:e.bU,NavPosIndexController:e.aL,NavPosIndexState:e.aK,NoticeUtil:e.b_,NotificationUtil:e.bW,OpenViewUtil:e.bX,OptViewEngine:e.b7,OverlayController:e.bY,PanelAppTitleController:e.aQ,PanelButtonController:e.aO,PanelViewEngine:e.bz,PickupDataViewEngine:e.bA,PickupGridViewEngine:e.bB,PickupTreeViewEngine:e.bC,PickupView2Engine:e.bE,PickupViewEngine:e.bD,PortalViewEngine:e.bF,PortletLayout:e.af,PrintPreviewUtil:e.c9,QrcodeUtil:e.cb,RawItemPortlet:e.an,RenderUtil:e.b$,ReportPortlet:e.av,ReportViewEngine:e.bG,ScreenShotUtil:e.c6,SplitContainerController:e.aS,SubAppRefViewEngine:e.bH,TabExpViewEngine:e.b8,TabSearchViewEngine:e.bI,TreeExpViewEngine:e.b9,TreeGridExViewEngine:e.bJ,TreeGridViewEngine:e.bK,TreeViewEngine:e.bL,UnauthorizedView:e.b2,View403:e.aZ,View404:e.aY,ViewPortlet:e.ah,WFDynaActionViewEngine:e.bM,WFDynaEditView3Engine:e.bO,WFDynaEditViewEngine:e.bN,WFDynaStartViewEngine:e.bP,WFStepDataViewEngine:e.bQ,WizardViewEngine:e.bR,convertBtnType:e.c3,getRelativePathWithoutRoot:e.cc,i18n:e.i,parseHtml:e.cd,runApp:e.ch,splitPathToSegments:e.c7,useAppGridBase:e.q,useAppGridPagination:e.p,useContextMenu:e.ca,useFocusByEnter:e.c2,useGridDraggable:e.s,useGridHeaderStyle:e.r,useITableEvent:e.u,usePagination:e.bZ,validateRouteSegments:e.c8})},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","ramda","@ibiz-template/vue3-util","@ibiz-template/runtime","echarts"],function(e){"use strict";var t,a,o,r,i,n,s,l,c,p,u,d;return{setters:[function(e){t=e.ref,a=e.onMounted,o=e.onUnmounted,r=e.defineComponent,i=e.createVNode,n=e.computed},function(e){s=e.mergeDeepWithKey,l=e.isNil},function(e){c=e.useNamespace},function(e){p=e.MapController},function(e){u=e.init,d=e.registerMap}],execute:function(){const m={strAreaCode:!1,visualMap:{text:[ibiz.i18n.t("component.mapChart.high"),ibiz.i18n.t("component.mapChart.low")],min:0,max:100,rangeColor:["#90d1e7","#fff600","#ff5200"]},areaColor:"#87cefa",areaBorderColor:"#FFF",hoverAreaColor:"#fbdb2f",pointSymbol:"pin",jsonBaseUrl:"".concat(ibiz.env.assetsUrl,"/json/map"),defaultAreaCode:1e5};function f(e,r,i,n){const s=new Map,l=t(""),c=t([]);let p;const m=t();let f;const v=async e=>{if(s.has(e))return;const t=await async function(e,t){return(await ibiz.net.axios({url:"".concat(e,"/").concat(t,".json")})).data}(r.value.jsonBaseUrl,e);s.set(e,(e=>{const t={cityNames:{},noChild:1===e.features.length};return e.features.forEach(e=>{const{adcode:a,name:o}=e.properties;t.cityNames[a]=o}),t})(t)),d(e,t)},h=()=>{if(l.value){const e=i(l.value);p.setOption(e),p.resize()}},y=async(t,a=!1)=>{if(!a){const a=r.value.strAreaCode?"".concat(t):Number(t);await e.onMapChange(a)}const o="".concat(t);s.has(o)||await v(o),l.value=o,c.value.push(o),h()},b=()=>{null==p||p.resize()};return a(()=>{p=u(m.value),window.addEventListener("resize",b),m.value&&ResizeObserver&&(f=new ResizeObserver(()=>{b()}),f.observe(m.value)),p.on("click",e=>{if("series"===e.componentType){if("scatter"===e.seriesType)return void n("pointClick",e.data);"map"===e.seriesType&&(e.data&&n("areaClick",e.data),e.name!==l.value&&y(e.name))}}),p.on("mouseover",function(e){if("series"===e.componentType&&"scatter"===e.seriesType){const t=e.dataIndex,a=p.getOption(),o=a.series[e.seriesIndex].data,r=a.series[e.seriesIndex].symbolSize;o[t].symbolSize=r+10,p.setOption(a)}}),p.on("mouseout",function(e){if("series"===e.componentType&&"scatter"===e.seriesType){const t=e.dataIndex,a=p.getOption();delete a.series[e.seriesIndex].data[t].symbolSize,p.setOption(a)}})}),o(()=>{window.removeEventListener("resize",b),null==f||f.disconnect()}),{chartRef:m,historyNames:c,currentName:l,changeMap:y,getCityName:e=>{const t=s.get(l.value);if(t)return t.cityNames[e]},goBack:()=>{if(c.value.length>1){c.value.pop();const e=c.value.pop();y(e)}},refresh:h}}const v=r({name:"IBizMapChart",props:{areaData:{type:Array},pointData:{type:Array},options:{type:Object,default:()=>({})},controller:{type:p,required:!0}},setup(e,{emit:t}){const o=c("map-chart"),r=n(()=>s((e,t,a)=>l(a)?t:a,m,e.options)),i=(t,a)=>"area"===a&&e.areaData?e.areaData.find(e=>e._id===t):"point"===a&&e.pointData?e.pointData.find(e=>e._id===t):void 0,{chartRef:p,historyNames:u,changeMap:d,getCityName:v,goBack:h}=f(e.controller,r,t=>{const{visualMap:a,pointSymbol:o,areaColor:n,hoverAreaColor:s,areaBorderColor:l}=r.value,c=e.areaData||[],p=e.pointData||[];return{geo:{map:t},tooltip:{trigger:"item",textStyle:{color:"#fff",fontSize:12},backgroundColor:"rgba(0, 0, 0, 0.47)",borderWidth:0,extraCssText:"backdrop-filter: blur(3px);"},visualMap:{min:a.min,max:a.max,text:a.text,realtime:!1,hoverLink:!1,inRange:{color:a.rangeColor}},series:[{type:"map",map:t,nameProperty:"adcodeStr",itemStyle:{areaColor:n,borderColor:l,borderWidth:2},emphasis:{itemStyle:{areaColor:s}},tooltip:{formatter:e=>{if(!e.data)return;const t=i(e.data._id,"area");return t?t._tooltip:void 0}},label:{show:!0,color:"#000000",fontSize:14,formatter:e=>v(e.name)},select:{disabled:!0},data:c.map(e=>({name:"".concat(e._areaCode),value:e._value,_id:e._id}))},{type:"scatter",coordinateSystem:"geo",symbol:o,symbolSize:20,visualMap:!1,itemStyle:{color:"#FF1D00"},label:{show:!0,color:"#000000",fontSize:14,textShadowBlur:0,formatter:e=>{const t=i(e.data._id,"point");return null==t?void 0:t._text},position:"left",offset:[10,-15]},tooltip:{formatter:e=>{const t=i(e.data._id,"point");return null==t?void 0:t._tooltip}},data:p.map(e=>({_id:e._id,symbol:e._symbol?"image://".concat(e._symbol):void 0,value:[Number(e._longitude),Number(e._latitude)],visualMap:!1}))}]}},(e,a)=>{switch(e){case"pointClick":t("pointClick",i(a._id,"point"));break;case"areaClick":t("areaClick",i(a._id,"area"))}});return a(()=>{d(r.value.defaultAreaCode,!0)}),{ns:o,chartRef:p,historyNames:u,goBack:h}},render(){return i("div",{class:this.ns.b()},[i("div",{class:this.ns.e("chart"),ref:"chartRef"},null),this.historyNames.length>1&&i("div",{class:this.ns.e("goback"),onClick:()=>{this.goBack()}},[ibiz.i18n.t("app.return")])])}});e({IBizMapChart:v,default:v})}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","ramda","@ibiz-template/vue3-util","@ibiz-template/runtime","@ibiz-template/core","lodash-es","echarts"],function(e){"use strict";var t,a,o,r,n,s,l,i,c,u,d,p,m,v,f,b,h,y,g;return{setters:[function(e){t=e.ref,a=e.onMounted,o=e.onUnmounted,r=e.defineComponent,n=e.createVNode,s=e.resolveComponent,l=e.computed,i=e.onBeforeUnmount},function(e){c=e.mergeDeepLeft,u=e.mergeDeepWithKey,d=e.isNil},function(e){p=e.useNamespace},function(e){m=e.MapController,v=e.getAreaLevelByCode},function(e){f=e.listenJSEvent,b=e.NOOP},function(e){h=e.toNumber},function(e){y=e.init,g=e.registerMap}],execute:function(){const C={strAreaCode:!1,visualMap:{text:[ibiz.i18n.t("component.mapChart.high"),ibiz.i18n.t("component.mapChart.low")],min:0,max:100,rangeColor:["#90d1e7","#fff600","#ff5200"]},areaColor:"#87cefa",areaBorderColor:"#FFF",hoverAreaColor:"#fbdb2f",pointSymbol:"pin",jsonBaseUrl:"".concat(ibiz.env.assetsUrl,"/json/map"),defaultAreaCode:1e5,bottom:20,top:20},_=e=>{const t=[];return e._color&&t.push("color:".concat(e._color)),e._bgcolor&&t.push("background:".concat(e._bgcolor)),e._borderColor&&t.push("border-color:".concat(e._borderColor)),e._borderWidth&&t.push("border-width:".concat(e._borderWidth,"px")),e._borderWidth&&e._borderColor&&t.push("border-style:solid"),t.join(";")},N=(e,t,a=[],o=[])=>"area"===t?o.find(t=>t._id===e):"point"===t?a.find(t=>t._id===e):void 0,z=e=>{let t=e;const a=window.getComputedStyle(document.documentElement);return a&&(t=a.getPropertyValue(e)||t),t},x=e=>{const{pointSymbol:t}=e,a=p("map-chart-user"),o=z(a.cssVarName("color-danger")),r=z(a.cssVarName("font-size-header-4"));return{type:"scatter",coordinateSystem:"geo",symbol:t,symbolSize:Number(r.slice(0,2)),visualMap:!1,itemStyle:{color:o}}},w=(e,t)=>{const a={},o=p("map-chart-user"),r=z(o.cssVarName("color-text-1")),n=z(o.cssVarName("font-size-regular"));return a.label={show:!0,color:r,fontSize:Number(n.slice(0,2)),textShadowBlur:0,formatter:a=>{if(!a.data)return;const o=N(a.data._id,"point",e,t);return null==o?void 0:o._text},position:"left",offset:[10,-15]},a.tooltip={formatter:a=>{if(!a.data)return;const r=N(a.data._id,"point",e,t);if(!r)return;const{_deData:n}=r;let s=n.srfmajortext;r._value&&(s="".concat(n.srfmajortext,": ").concat(r._value)),r._tooltip&&(s=r._tooltip);const l=_(r);return'<div style="'.concat(l,'" class="').concat(r._className," ").concat(o.e("popper"),'">').concat(s,"</div>")},padding:0},a.data=e.map(e=>{let t;return e._symbol&&(t="image://".concat(e._symbol)),{_id:e._id,symbol:t,value:[Number(e._longitude),Number(e._latitude)],visualMap:!1}}),a},S=e=>{const{areaColor:t,areaBorderColor:a,hoverAreaColor:o}=e;return{type:"map",nameProperty:"adcodeStr",itemStyle:{areaColor:t,borderColor:a,borderWidth:2},emphasis:{itemStyle:{areaColor:o}}}},D=(e,t,a,o=[])=>{const r={},n=p("map-chart-user"),s=z(n.cssVarName("color-text-1")),l=z(n.cssVarName("font-size-regular"));return r.map=e,r.label={show:!0,color:s,fontSize:Number(l.slice(0,2)),formatter:e=>o.cityNames[e.name]},r.tooltip={formatter:e=>{if(!e.data)return;const o=N(e.data._id,"area",t,a);if(!o||!o._tooltip&&!o._value)return;const{_deData:r}=o;let s=r.srfmajortext;o._value&&(s="".concat(r.srfmajortext,": ").concat(o._value)),o._tooltip&&(s=o._tooltip);const l=_(o);return'<div style="'.concat(l,'" class="').concat(o._className," ").concat(n.e("popper"),'">').concat(s,"</div>")},padding:0},r.data=a.map(e=>({name:"".concat(e._areaCode),value:e._value,_id:e._id,deData:e})),r.select={disabled:!0},r};function M(e,r,n){const s=new Map,l=t(""),i=t([]),c=new Map,u=t(!1);let d;const p=t();let m;const v=async t=>{e.options=t,await e.evt.emit("onBeforeUpdate",{data:t}),d.setOption(t,!0)},b=async e=>{if(s.has(e))return;const t=await async function(e,t){return(await ibiz.net.axios({url:"".concat(e,"/").concat(t,".json")})).data}(r.value.jsonBaseUrl,e);s.set(e,(e=>{const t={cityNames:{},noChild:1===e.features.length};return e.features.forEach(e=>{const{adcode:a,name:o,level:r}=e.properties;t.cityNames[a]=o,c.set(a,r)}),t})(t)),g(e,t)},C=()=>s.get(l.value),_=()=>{if(l.value){const e=n(l.value);v(e),d.resize()}},z=async(t,a,o=!1)=>{const r="".concat(t);if(s.has(r)||await b(r),o){const t=c.get(h(a))||"";e.state.areaLevel=t}else await e.onMapChange(a);l.value=r,e.state.mapInfo=C(),i.value.push(r),_()},x=f(window,"resize",()=>{d&&d.resize()});return a(()=>{d=y(p.value),e.chart=d,p.value&&ResizeObserver&&(m=new ResizeObserver(()=>{null==d||d.resize()}),m.observe(p.value)),d.on("click",t=>{if("series"===t.componentType){if("scatter"===t.seriesType){if(!t.data)return;u.value=!0;const{pointData:a,areaData:o}=e.state,r=N(t.data._id,"point",a,o);return r&&e.onPointClick(r),void(u.value=!1)}if("map"===t.seriesType){u.value=!0;const a=r.value.strAreaCode?"".concat(t.name):Number(t.name),o=c.get(h(a))||"",{pointData:n,areaData:s,enabledDrillDown:i,mdctrlActiveMode:d}=e.state;if(t.data){const r=N(t.data._id,"area",n,s);r&&e.onAreaClick(r,a,o)}t.name!==l.value&&i&&2!==d&&(h(a)>h(e.state.areaCode)&&e.evt.emit("onDrillDown",{data:{areaCode:a}}),e.state.areaCode=a,e.state.areaLevel=o||"",z(t.name,a)),u.value=!1}}}),d.on("dblclick",t=>{const{enabledDrillDown:a,mdctrlActiveMode:o}=e.state;if("series"===t.componentType&&"map"===t.seriesType&&2===o&&a){u.value=!0;const a=r.value.strAreaCode?"".concat(t.name):Number(t.name),o=c.get(h(a))||"";h(a)>h(e.state.areaCode)&&e.evt.emit("onDrillDown",{data:{areaCode:a}}),e.state.areaCode=a,e.state.areaLevel=o,t.name!==l.value&&z(t.name,a),u.value=!1}}),d.on("mouseover",function(t){if(e.evt.emit("onMouseOver",{data:t}),"series"===t.componentType&&"scatter"===t.seriesType){const e=t.dataIndex,a=d.getOption(),o=a.series[t.seriesIndex].data,r=a.series[t.seriesIndex].symbolSize;o[e].symbolSize=r+10,v(a)}}),d.on("mouseout",function(t){if(e.evt.emit("onMouseOut",{data:t}),"series"===t.componentType&&"scatter"===t.seriesType){const e=t.dataIndex,a=d.getOption();delete a.series[t.seriesIndex].data[e].symbolSize,v(a)}})}),o(()=>{x(),null==m||m.disconnect()}),{chartRef:p,historyNames:i,currentName:l,processing:u,areaLevelMap:c,changeMap:z,getCityInfo:C,goBack:async()=>{if(i.value.length>1){i.value.pop();const t=i.value.pop(),a=r.value.strAreaCode?"".concat(t):Number(t),o=c.get(h(a))||"";e.state.areaCode=a,e.state.areaLevel=o,z(t,a)}},refresh:_}}const k=r({name:"IBizMapChartUser",props:{areaData:{type:Array},pointData:{type:Array},options:{type:Object,default:()=>({})},controller:{type:m,required:!0}},setup(e){const o=p("map-chart-user"),r=e.controller;let n=C;const s=t(),m=t(!1);if(r.controlParams.defaultopts){const e=JSON.parse(r.controlParams.defaultopts);n=c(e,n)}const y=l(()=>u((e,t,a)=>d(a)?t:a,n,e.options));let g=b;const{chartRef:_,historyNames:N,processing:k,areaLevelMap:A,changeMap:B,getCityInfo:F,goBack:L}=M(e.controller,y,t=>{const a=e.areaData||[],o=e.pointData||[],r=(()=>{const e=p("map-chart-user"),t=z(e.cssVarName("color-text-1")),a=z(e.cssVarName("font-size-regular")),o=z(e.cssVarName("color-bg-0"));return{trigger:"item",textStyle:{color:t,fontSize:Number(a.slice(0,2))},backgroundColor:o,borderWidth:0,extraCssText:"backdrop-filter: blur(3px);"}})(),n=(e=>{const{visualMap:t}=e;return{min:t.min,max:t.max,text:t.text,realtime:!1,hoverLink:!1,inRange:{color:t.rangeColor}}})(y.value),s=F(),l={...x(y.value),...w(o,a)},{top:i,bottom:c}=y.value;return{geo:{map:t,top:i,bottom:c},tooltip:r,visualMap:n,series:[{top:i,bottom:c,...S(y.value),...D(t,o,a,s)},l]}});a(()=>{const e=y.value.defaultAreaCode,t=r.state.strAreaCode?"".concat(e):Number(e);r.state.areaCode=t,r.state.areaLevel=v(t.toString()),B(e,t,!0),r.evt.on("onDrillDown",async e=>{if(!k.value){const{data:t}=e,a=t.areaCode,o=r.state.strAreaCode?"".concat(a):Number(a),n=A.get(h(o))||"";r.state.areaCode=o,r.state.areaLevel=n,await B(a,a)}}),r.evt.on("onBackClick",()=>{k.value||L()}),g=f(window,"resize",()=>{m.value&&(m.value=ibiz.fullscreenUtil.isFullScreen)})}),i(()=>{g!==b&&g()});return{c:r,ns:o,mapRef:s,isFull:m,chartRef:_,historyNames:N,onBack:async()=>{k.value=!0,await r.evt.emit("onBackClick",void 0),L(),k.value=!1},toggleFullScreen:()=>{s.value&&(m.value?ibiz.fullscreenUtil.closeElementFullscreen():ibiz.fullscreenUtil.openElementFullscreen(s.value),m.value=!m.value)}}},render(){const{enabledFullScreen:e}=this.c.state;return n("div",{class:this.ns.b(),ref:"mapRef"},[e?n(s("el-button"),{type:"info",onClick:this.toggleFullScreen,class:this.ns.e("fullscreen"),title:this.isFull?ibiz.i18n.t("app.cancelFullscreen"):ibiz.i18n.t("app.fullscreen")},{default:()=>[n("ion-icon",{name:this.isFull?"contract-outline":"expand-outline"},null)]}):null,n("div",{class:this.ns.e("chart"),ref:"chartRef"},null),this.historyNames.length>1&&n("div",{class:this.ns.e("goback"),onClick:()=>{this.onBack()}},[ibiz.i18n.t("app.return")])])}});e({IBizMapChartUser:k,default:k})}}});
@@ -1 +1 @@
1
- System.register(["vue","@wangeditor/editor-for-vue","@wangeditor/editor","ramda","@ibiz-template/vue3-util","@ibiz-template/core","element-plus","./index-BP7a4gcG.js","@ibiz-template/runtime","qx-util","lodash-es","@floating-ui/dom","interactjs","dayjs","qs","vuedraggable","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","@ibiz-template/devtool","axios","dayjs/plugin/customParseFormat","vue-i18n","@ibiz-template/model-helper"],function(e){"use strict";var t,o,l,a,i,n,s,r,c,d,u,m,h,v,b,f,p,g,y,C,w,z,x,S,k;return{setters:[function(e){t=e.defineComponent,o=e.withDirectives,l=e.createVNode,a=e.resolveDirective,i=e.resolveComponent,n=e.ref,s=e.shallowRef,r=e.watch,c=e.onBeforeUnmount,d=e.onMounted,u=e.nextTick,m=e.onUnmounted},function(e){h=e.Toolbar,v=e.Editor},function(e){b=e.t,f=e.i18nChangeLanguage},function(e){p=e.isNil},function(e){g=e.getHtmlEmits,y=e.getHtmlProps,C=e.useNamespace,w=e.useSemanticNode,z=e.useUIStore},function(e){x=e.awaitTimeout},function(e){S=e.ElMessageBox},function(e){k=e.h},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",t({name:"IBizHtml",props:y(),emits:g(),setup(e,{emit:t,slots:o}){var a;const i=C("html"),g=e.controller,{semanticClass:y,semanticStyle:I}=w(g),P=[{class:y("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{class:y("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{class:y("editor.hoverToolbar"),selector:".w-e-hover-bar"},{class:y("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{class:y("editor.toolbar"),selector:".w-e-toolbar"},{class:y("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{class:y("editor.input"),selector:".".concat(i.b("editor"))},{class:y("editor.footer"),selector:".".concat(i.b("footer"))},{class:y("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{class:y("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],H=[{style:I("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{style:I("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{style:I("editor.hoverToolbar"),selector:".w-e-hover-bar"},{style:I("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{style:I("editor.toolbar"),selector:".w-e-toolbar"},{style:I("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{style:I("editor.input"),selector:".".concat(i.b("editor"))},{style:I("editor.footer"),selector:".".concat(i.b("footer"))},{style:I("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{style:I("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],M=n(),T=n({});let E=null,U=0;const F=n(),A=s(),B=n(""),O=ibiz.util.file.getUploadHeaders(),D=n({...O}),L=n(""),V=n(!0),N=n(!1),j=n(!1),R=n(!1),K=n(!1);let q=!1;const J=g.model;J.editorParams&&(J.editorParams.enableEdit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableEdit)&&!e.readonly&&!e.disabled),J.editorParams.enableedit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableedit)&&!e.readonly&&!e.disabled),J.editorParams.enableFullScreen&&(R.value=g.toBoolean(J.editorParams.enableFullScreen)),J.editorParams.enablefullscreen&&(R.value=g.toBoolean(J.editorParams.enablefullscreen)),J.editorParams.enablenoaccess&&(q="true"===(null==(a=null==g?void 0:g.editorParams)?void 0:a.enablenoaccess))),e.readonly&&(N.value=!1,j.value=!0);r(()=>e.data,e=>{if(e){const t={...g.editorParams,enableNoAccess:q};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const o=ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,t);L.value=o.uploadUrl}},{immediate:!0,deep:!0});const Z=(e,t)=>{if(t)return!0},Y=e=>e,$=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:b("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:b("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:b("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:b("editor.image"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:b("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen","emoji"];if(g.chatCompletion&&$.unshift("aichart","|"),g.extraActions.length>0){const e=g.extraActions.map(e=>e.uiactionId.split("@")[0]);$.push(...e)}const _={excludeKeys:["group-video","emotion"],toolbarKeys:$},G=ibiz.i18n.getLang();f(G);const Q={placeholder:g.placeHolder,readOnly:N.value?j.value:e.readonly,MENU_CONF:{uploadImage:{server:L.value,fieldName:"file",maxFileSize:10485760,maxNumberOfFiles:10,allowedFileTypes:[],headers:D.value,withCredentials:!0,onBeforeUpload:e=>e,onProgress(e){console.log("progress",e)},onSuccess(e,t){ibiz.config.common.enableDownloadTicket&&!q&&t.ticket&&ibiz.util.file.setDownloadTicket(t.id,t.ticket),console.log("".concat(e.name," 上传成功"),t)},onFailed(e,t){console.log("".concat(e.name," 上传失败"),t)},onError(e,t,o){console.log("".concat(e.name," 上传出错"),t,o)},async customInsert(t,o){const l=((e,t)=>{const o={...g.editorParams,enableNoAccess:q};return o.exportparams&&(o.exportParams=JSON.parse(o.exportparams)),t&&t.folder&&(o.osscat=t.folder),o.globaldownloadprifix?o.globalDownloadPrifix="true"===o.globaldownloadprifix:o.globalDownloadPrifix=ibiz.config.common.globalDownloadPrifix,ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,o).downloadUrl})(e.data,t);let a=l.replace("%fileId%",t.id);const i=t.filename;if(ibiz.config.common.enableDownloadTicket&&!q){const n=await ibiz.util.file.getDownloadTicket(g.context,g.params,e.data,{fileId:t.id},g.downloadTicketParams);n&&n.ticket&&(a=l.replace("%fileId%",n.ticket),o(a,i,""))}else o(a,i,"")}},insertLink:{checkLink:Z,parseLinkUrl:Y},editLink:{checkLink:Z,parseLinkUrl:Y}},hoverbarKeys:k};let W;c(()=>{const e=A.value;null!=e&&e.destroy()});const X=o=>{A.value=o,g.onCreated(A.value),o.setHtml(B.value),o.on("aiClick",()=>{(async()=>{const o=g.model.appDataEntityId;if(!o||!g.deACMode)return;const{zIndex:l}=z(),a=l.increment();W=await ibiz.aiChatUtil.getAIChat();const{containerOptions:i,chatOptions:n}=await ibiz.aiChatUtil.getEditorExAIChatParams(g.editorParams,g.context,g.params,e.data,g.deACMode,{chatInstance:W,view:g.view,ctrl:g.ctrl}),s=await ibiz.aiChatUtil.getAIResourceOptions(g.context,g.params);let r=g.deACMode.logicName;g.editorParams.srfaichatcaption&&(r=ibiz.appUtil.resolveI18nText(g.editorParams.srfaichatcaption)),W.create({resourceOptions:s,containerOptions:{zIndex:a,...i},chatOptions:{caption:r,context:{...g.context},params:{...g.params,srfactag:g.deACMode.codeName},appDataEntityId:o,...n,action:(e,o)=>{"backfill"===e&&(N.value?B.value=o.realcontent||"":t("change",o.realcontent))}}})})()}),o.on("lineAiClick",()=>{const e=o.getEditableContainer().querySelector(".w-e-hover-bar");if(!e)return;const{offsetLeft:t,offsetTop:l,offsetHeight:a}=e,i=ibiz.inLineAIUtil.calcContextMenus(g.deACMode,e=>{g.doInLineAIUIAction(e,g.model.appId)});if(0===i.length)return;const n=o.getEditableContainer().getBoundingClientRect(),{zIndex:s}=z(),r=s.increment();ibiz.inLineAIUtil.showContextMenus(n.x+t,n.y+l+a,i,{zIndex:r,onClose:()=>{s.decrement()}})}),o.on("customAction",async e=>{const o=await g.doCustomUIAction(e.uiactionId,g.model.appId);o.length>0&&t("customAction",{tag:e.uiactionId,data:o})})},ee=o=>{const l=o.getHtml(),a="<p><br></p>"===l?"":l;a===e.value||""===a&&p(e.value)||!N.value&&o.isFocused()&&t("change",a)},te=e=>{},oe=e=>{t("focus")},le=e=>{t("blur")},ae=(e,t)=>{alert("【".concat(ibiz.i18n.t("editor.html.wangEditor.customTips"),"】").concat(t," - ").concat(e))},ie=(e,t,o)=>{o(!0)},ne=()=>{const e=A.value;null!=e&&e.disable()},se=()=>{const e=A.value;null!=e&&e.enable()};d(()=>{r(()=>e.value,(t,o)=>{t===o||"string"!=typeof e.value&&null!=t||u(null==t?()=>{B.value=""}:()=>{B.value=t})},{immediate:!0}),r(()=>e.disabled,(e,t)=>{e!==t&&(!0===e?ne():se())},{immediate:!0})});const re=()=>{j.value=!j.value,j.value?ne():(se(),A.value.focus(),(()=>{var t,o;if(e.value){const l=e.value.indexOf("</p>");if(l>=0){const e=null==(t=A.value.selection.anchor)?void 0:t.offset,a=null==(o=A.value.selection.anchor)?void 0:o.path;0===e&&a.length>0&&0===a[0]&&A.value.move(l-3)}}})())},ce=()=>{K.value=!K.value,u(()=>{j.value?ne():(se(),A.value.focus())})};return d(()=>{x(0,()=>{if(M.value&&F.value){const e=M.value.offsetHeight;E=new ResizeObserver(t=>{const o=t[0].contentRect.height;if(o!==U){const l={height:"".concat(e-t[0].contentRect.height+(0!==o?300:0),"px"),"toolbar-height":"".concat(o,"px")};T.value=i.cssVarBlock(l),U=o}}),E.observe(F.value.selector)}})}),m(()=>{g.onDestroyed(),E&&E.disconnect(),W&&W.close()}),{ns:i,cssVars:T,valueHtml:B,editorRef:A,childClass:P,childStyle:H,toolbarRef:F,htmlContent:M,editorConfig:Q,isFullScreen:K,hasEnableEdit:N,toolbarConfig:_,readonlyState:j,semanticClass:y,semanticStyle:I,mode:"default",enable:se,disable:ne,printHtml:()=>{const e=A.value;null!=e&&console.log(e.getHtml())},insertText:e=>{const t=A.value;null!=t&&t.insertText(e)},handleBlur:le,handleFocus:oe,customAlert:ae,customPaste:ie,handleChange:ee,renderFooter:()=>N.value?l("div",{class:[i.b("footer"),{[i.b("footer-dialog")]:K.value}]},[l("div",{class:i.be("footer","cancel"),onClick:()=>{e.value!==B.value?S({title:ibiz.i18n.t("editor.common.confirmCancel"),type:"warning",customClass:i.b("message"),message:l("div",{class:i.be("message","message-content")},[l("p",null,[ibiz.i18n.t("editor.common.confirmCancelPrompt")]),l("p",{class:i.bem("message","message-content","message-tip")},[ibiz.i18n.t("editor.common.cancelEditPrompt")])]),showCancelButton:!0,cancelButtonClass:i.be("message","message-cancel"),confirmButtonClass:i.be("message","message-comfire")}).then(()=>{B.value=e.value||"",re()}).catch(()=>{A.value.focus()}):re()}},[ibiz.i18n.t("app.cancel")]),l("div",{class:i.be("footer","save"),onClick:()=>(()=>{j.value=!0,A.value.disable();const e=B.value;t("change",e),K.value&&(K.value=!1)})()},[ibiz.i18n.t("app.save")])]):null,handleCreated:X,handleDestroyed:te,renderHeaserToolbar:()=>N.value||R.value?l("div",{class:i.b("custom-toolbar")},[N.value&&V.value&&j.value?l("i",{"aria-hidden":"true",class:["fa fa-edit",i.be("custom-toolbar","item")],title:ibiz.i18n.t("editor.html.enableedit"),onClick:()=>re()},null):null,R.value?K.value?l("i",{class:["fa fa-compress",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.reduce"),onClick:()=>ce()},null):l("i",{class:["fa fa-expand",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.expand"),onClick:()=>ce()},null):null]):null,renderEditorContent:()=>l("div",{ref:"htmlContent",class:[i.b("content"),i.is("editing",!j.value),y("editor.content")],style:{...T.value,...I("editor.content")}},[o.editorSwitchMenu?l("div",{class:i.b("menu")},[o.editorSwitchMenu()]):null,l(h,{ref:"toolbarRef",editor:A.value,"default-config":_,mode:"default",class:i.b("toolbar")},null),l(v,{class:[i.b("editor"),i.is("readonly",j.value)],modelValue:B.value,"onUpdate:modelValue":e=>B.value=e,"default-config":Q,mode:"default",onOnCreated:X,onOnChange:ee,onOnDestroyed:te,onOnFocus:oe,onOnBlur:le,oncustomAlert:ae,oncustomPaste:ie},null)]),changeFullScreenState:ce}},render(){const e=!!this.$slots.editorSwitchMenu;return this.isFullScreen?l(i("el-dialog"),{modelValue:this.isFullScreen,"onUpdate:modelValue":e=>this.isFullScreen=e,width:"80%",top:"10vh",class:[this.ns.b("dialog-full-screen"),this.ns.is("editing",!this.readonlyState)],onClose:()=>this.changeFullScreenState()},{default:()=>[o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])]}):o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-ai",!0),this.ns.is("enable-edit",!this.readonly&&!this.disabled),this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])}}))}}});
1
+ System.register(["vue","@wangeditor/editor-for-vue","@wangeditor/editor","ramda","@ibiz-template/vue3-util","@ibiz-template/core","element-plus","./index-XI8ySm9i.js","@ibiz-template/runtime","qx-util","lodash-es","@floating-ui/dom","interactjs","dayjs","qs","vuedraggable","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","@ibiz-template/devtool","axios","dayjs/plugin/customParseFormat","vue-i18n","@ibiz-template/model-helper"],function(e){"use strict";var t,o,l,a,i,n,s,r,c,d,u,m,h,v,b,f,p,g,y,C,w,z,x,S,k;return{setters:[function(e){t=e.defineComponent,o=e.withDirectives,l=e.createVNode,a=e.resolveDirective,i=e.resolveComponent,n=e.ref,s=e.shallowRef,r=e.watch,c=e.onBeforeUnmount,d=e.onMounted,u=e.nextTick,m=e.onUnmounted},function(e){h=e.Toolbar,v=e.Editor},function(e){b=e.t,f=e.i18nChangeLanguage},function(e){p=e.isNil},function(e){g=e.getHtmlEmits,y=e.getHtmlProps,C=e.useNamespace,w=e.useSemanticNode,z=e.useUIStore},function(e){x=e.awaitTimeout},function(e){S=e.ElMessageBox},function(e){k=e.h},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",t({name:"IBizHtml",props:y(),emits:g(),setup(e,{emit:t,slots:o}){var a;const i=C("html"),g=e.controller,{semanticClass:y,semanticStyle:I}=w(g),P=[{class:y("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{class:y("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{class:y("editor.hoverToolbar"),selector:".w-e-hover-bar"},{class:y("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{class:y("editor.toolbar"),selector:".w-e-toolbar"},{class:y("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{class:y("editor.input"),selector:".".concat(i.b("editor"))},{class:y("editor.footer"),selector:".".concat(i.b("footer"))},{class:y("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{class:y("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],H=[{style:I("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{style:I("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{style:I("editor.hoverToolbar"),selector:".w-e-hover-bar"},{style:I("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{style:I("editor.toolbar"),selector:".w-e-toolbar"},{style:I("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{style:I("editor.input"),selector:".".concat(i.b("editor"))},{style:I("editor.footer"),selector:".".concat(i.b("footer"))},{style:I("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{style:I("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],M=n(),T=n({});let E=null,U=0;const F=n(),A=s(),B=n(""),O=ibiz.util.file.getUploadHeaders(),D=n({...O}),L=n(""),V=n(!0),N=n(!1),j=n(!1),R=n(!1),K=n(!1);let q=!1;const J=g.model;J.editorParams&&(J.editorParams.enableEdit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableEdit)&&!e.readonly&&!e.disabled),J.editorParams.enableedit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableedit)&&!e.readonly&&!e.disabled),J.editorParams.enableFullScreen&&(R.value=g.toBoolean(J.editorParams.enableFullScreen)),J.editorParams.enablefullscreen&&(R.value=g.toBoolean(J.editorParams.enablefullscreen)),J.editorParams.enablenoaccess&&(q="true"===(null==(a=null==g?void 0:g.editorParams)?void 0:a.enablenoaccess))),e.readonly&&(N.value=!1,j.value=!0);r(()=>e.data,e=>{if(e){const t={...g.editorParams,enableNoAccess:q};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const o=ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,t);L.value=o.uploadUrl}},{immediate:!0,deep:!0});const Z=(e,t)=>{if(t)return!0},Y=e=>e,$=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:b("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:b("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:b("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:b("editor.image"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:b("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen","emoji"];if(g.chatCompletion&&$.unshift("aichart","|"),g.extraActions.length>0){const e=g.extraActions.map(e=>e.uiactionId.split("@")[0]);$.push(...e)}const _={excludeKeys:["group-video","emotion"],toolbarKeys:$},G=ibiz.i18n.getLang();f(G);const Q={placeholder:g.placeHolder,readOnly:N.value?j.value:e.readonly,MENU_CONF:{uploadImage:{server:L.value,fieldName:"file",maxFileSize:10485760,maxNumberOfFiles:10,allowedFileTypes:[],headers:D.value,withCredentials:!0,onBeforeUpload:e=>e,onProgress(e){console.log("progress",e)},onSuccess(e,t){ibiz.config.common.enableDownloadTicket&&!q&&t.ticket&&ibiz.util.file.setDownloadTicket(t.id,t.ticket),console.log("".concat(e.name," 上传成功"),t)},onFailed(e,t){console.log("".concat(e.name," 上传失败"),t)},onError(e,t,o){console.log("".concat(e.name," 上传出错"),t,o)},async customInsert(t,o){const l=((e,t)=>{const o={...g.editorParams,enableNoAccess:q};return o.exportparams&&(o.exportParams=JSON.parse(o.exportparams)),t&&t.folder&&(o.osscat=t.folder),o.globaldownloadprifix?o.globalDownloadPrifix="true"===o.globaldownloadprifix:o.globalDownloadPrifix=ibiz.config.common.globalDownloadPrifix,ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,o).downloadUrl})(e.data,t);let a=l.replace("%fileId%",t.id);const i=t.filename;if(ibiz.config.common.enableDownloadTicket&&!q){const n=await ibiz.util.file.getDownloadTicket(g.context,g.params,e.data,{fileId:t.id},g.downloadTicketParams);n&&n.ticket&&(a=l.replace("%fileId%",n.ticket),o(a,i,""))}else o(a,i,"")}},insertLink:{checkLink:Z,parseLinkUrl:Y},editLink:{checkLink:Z,parseLinkUrl:Y}},hoverbarKeys:k};let W;c(()=>{const e=A.value;null!=e&&e.destroy()});const X=o=>{A.value=o,g.onCreated(A.value),o.setHtml(B.value),o.on("aiClick",()=>{(async()=>{const o=g.model.appDataEntityId;if(!o||!g.deACMode)return;const{zIndex:l}=z(),a=l.increment();W=await ibiz.aiChatUtil.getAIChat();const{containerOptions:i,chatOptions:n}=await ibiz.aiChatUtil.getEditorExAIChatParams(g.editorParams,g.context,g.params,e.data,g.deACMode,{chatInstance:W,view:g.view,ctrl:g.ctrl}),s=await ibiz.aiChatUtil.getAIResourceOptions(g.context,g.params);let r=g.deACMode.logicName;g.editorParams.srfaichatcaption&&(r=ibiz.appUtil.resolveI18nText(g.editorParams.srfaichatcaption)),W.create({resourceOptions:s,containerOptions:{zIndex:a,...i},chatOptions:{caption:r,context:{...g.context},params:{...g.params,srfactag:g.deACMode.codeName},appDataEntityId:o,...n,action:(e,o)=>{"backfill"===e&&(N.value?B.value=o.realcontent||"":t("change",o.realcontent))}}})})()}),o.on("lineAiClick",()=>{const e=o.getEditableContainer().querySelector(".w-e-hover-bar");if(!e)return;const{offsetLeft:t,offsetTop:l,offsetHeight:a}=e,i=ibiz.inLineAIUtil.calcContextMenus(g.deACMode,e=>{g.doInLineAIUIAction(e,g.model.appId)});if(0===i.length)return;const n=o.getEditableContainer().getBoundingClientRect(),{zIndex:s}=z(),r=s.increment();ibiz.inLineAIUtil.showContextMenus(n.x+t,n.y+l+a,i,{zIndex:r,onClose:()=>{s.decrement()}})}),o.on("customAction",async e=>{const o=await g.doCustomUIAction(e.uiactionId,g.model.appId);o.length>0&&t("customAction",{tag:e.uiactionId,data:o})})},ee=o=>{const l=o.getHtml(),a="<p><br></p>"===l?"":l;a===e.value||""===a&&p(e.value)||!N.value&&o.isFocused()&&t("change",a)},te=e=>{},oe=e=>{t("focus")},le=e=>{t("blur")},ae=(e,t)=>{alert("【".concat(ibiz.i18n.t("editor.html.wangEditor.customTips"),"】").concat(t," - ").concat(e))},ie=(e,t,o)=>{o(!0)},ne=()=>{const e=A.value;null!=e&&e.disable()},se=()=>{const e=A.value;null!=e&&e.enable()};d(()=>{r(()=>e.value,(t,o)=>{t===o||"string"!=typeof e.value&&null!=t||u(null==t?()=>{B.value=""}:()=>{B.value=t})},{immediate:!0}),r(()=>e.disabled,(e,t)=>{e!==t&&(!0===e?ne():se())},{immediate:!0})});const re=()=>{j.value=!j.value,j.value?ne():(se(),A.value.focus(),(()=>{var t,o;if(e.value){const l=e.value.indexOf("</p>");if(l>=0){const e=null==(t=A.value.selection.anchor)?void 0:t.offset,a=null==(o=A.value.selection.anchor)?void 0:o.path;0===e&&a.length>0&&0===a[0]&&A.value.move(l-3)}}})())},ce=()=>{K.value=!K.value,u(()=>{j.value?ne():(se(),A.value.focus())})};return d(()=>{x(0,()=>{if(M.value&&F.value){const e=M.value.offsetHeight;E=new ResizeObserver(t=>{const o=t[0].contentRect.height;if(o!==U){const l={height:"".concat(e-t[0].contentRect.height+(0!==o?300:0),"px"),"toolbar-height":"".concat(o,"px")};T.value=i.cssVarBlock(l),U=o}}),E.observe(F.value.selector)}})}),m(()=>{g.onDestroyed(),E&&E.disconnect(),W&&W.close()}),{ns:i,cssVars:T,valueHtml:B,editorRef:A,childClass:P,childStyle:H,toolbarRef:F,htmlContent:M,editorConfig:Q,isFullScreen:K,hasEnableEdit:N,toolbarConfig:_,readonlyState:j,semanticClass:y,semanticStyle:I,mode:"default",enable:se,disable:ne,printHtml:()=>{const e=A.value;null!=e&&console.log(e.getHtml())},insertText:e=>{const t=A.value;null!=t&&t.insertText(e)},handleBlur:le,handleFocus:oe,customAlert:ae,customPaste:ie,handleChange:ee,renderFooter:()=>N.value?l("div",{class:[i.b("footer"),{[i.b("footer-dialog")]:K.value}]},[l("div",{class:i.be("footer","cancel"),onClick:()=>{e.value!==B.value?S({title:ibiz.i18n.t("editor.common.confirmCancel"),type:"warning",customClass:i.b("message"),message:l("div",{class:i.be("message","message-content")},[l("p",null,[ibiz.i18n.t("editor.common.confirmCancelPrompt")]),l("p",{class:i.bem("message","message-content","message-tip")},[ibiz.i18n.t("editor.common.cancelEditPrompt")])]),showCancelButton:!0,cancelButtonClass:i.be("message","message-cancel"),confirmButtonClass:i.be("message","message-comfire")}).then(()=>{B.value=e.value||"",re()}).catch(()=>{A.value.focus()}):re()}},[ibiz.i18n.t("app.cancel")]),l("div",{class:i.be("footer","save"),onClick:()=>(()=>{j.value=!0,A.value.disable();const e=B.value;t("change",e),K.value&&(K.value=!1)})()},[ibiz.i18n.t("app.save")])]):null,handleCreated:X,handleDestroyed:te,renderHeaserToolbar:()=>N.value||R.value?l("div",{class:i.b("custom-toolbar")},[N.value&&V.value&&j.value?l("i",{"aria-hidden":"true",class:["fa fa-edit",i.be("custom-toolbar","item")],title:ibiz.i18n.t("editor.html.enableedit"),onClick:()=>re()},null):null,R.value?K.value?l("i",{class:["fa fa-compress",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.reduce"),onClick:()=>ce()},null):l("i",{class:["fa fa-expand",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.expand"),onClick:()=>ce()},null):null]):null,renderEditorContent:()=>l("div",{ref:"htmlContent",class:[i.b("content"),i.is("editing",!j.value),y("editor.content")],style:{...T.value,...I("editor.content")}},[o.editorSwitchMenu?l("div",{class:i.b("menu")},[o.editorSwitchMenu()]):null,l(h,{ref:"toolbarRef",editor:A.value,"default-config":_,mode:"default",class:i.b("toolbar")},null),l(v,{class:[i.b("editor"),i.is("readonly",j.value)],modelValue:B.value,"onUpdate:modelValue":e=>B.value=e,"default-config":Q,mode:"default",onOnCreated:X,onOnChange:ee,onOnDestroyed:te,onOnFocus:oe,onOnBlur:le,oncustomAlert:ae,oncustomPaste:ie},null)]),changeFullScreenState:ce}},render(){const e=!!this.$slots.editorSwitchMenu;return this.isFullScreen?l(i("el-dialog"),{modelValue:this.isFullScreen,"onUpdate:modelValue":e=>this.isFullScreen=e,width:"80%",top:"10vh",class:[this.ns.b("dialog-full-screen"),this.ns.is("editing",!this.readonlyState)],onClose:()=>this.changeFullScreenState()},{default:()=>[o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])]}):o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-ai",!0),this.ns.is("enable-edit",!this.readonly&&!this.disabled),this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])}}))}}});