@ibiz-template/vue3-components 0.7.41-alpha.97 → 0.7.41-alpha.99

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 (287) hide show
  1. package/dist/ibiz-markdown-editor-BxT3t2N6.js +1 -0
  2. package/dist/index-DY8xatG5.js +339 -0
  3. package/dist/{index.es-Bx7ry_G4.js → index.es-BxDgOess.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/map-chart-DbBbP4qh.js +1 -0
  7. package/dist/map-chart-user-CfTAGaU5.js +1 -0
  8. package/dist/wang-editor-Ct_jRlrK.js +1 -0
  9. package/dist/{xlsx-util-DXx8himL.js → xlsx-util-Bi2h7Kj8.js} +2 -2
  10. package/es/common/high-light-code/high-light-code-util.mjs +0 -1
  11. package/es/common/map-chart/map-chart.css +1 -1
  12. package/es/common/map-chart/map-chart.mjs +9 -2
  13. package/es/common/map-chart-user/map-chart-user.css +1 -1
  14. package/es/common/map-chart-user/map-chart-user.mjs +13 -5
  15. package/es/common/pagination/pagination.css +1 -1
  16. package/es/common/pagination/pagination.mjs +42 -2
  17. package/es/common/rawitem/rawitem.css +1 -1
  18. package/es/common/rawitem/rawitem.mjs +2 -0
  19. package/es/common/sort-bar/sort-bar.css +1 -1
  20. package/es/common/sort-bar/sort-bar.mjs +9 -1
  21. package/es/control/app-menu/app-menu.css +1 -1
  22. package/es/control/app-menu/app-menu.mjs +42 -20
  23. package/es/control/calendar/calendar-util.mjs +1 -1
  24. package/es/control/calendar/calendar.css +1 -1
  25. package/es/control/calendar/calendar.mjs +86 -51
  26. package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  27. package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +13 -8
  28. package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
  29. package/es/control/calendar/components/calendar-user/calendar-user.mjs +16 -8
  30. package/es/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
  31. package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +214 -0
  32. package/es/control/calendar/components/calendar-user2/index.mjs +9 -0
  33. package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
  34. package/es/control/calendar/components/calendar-week/calendar-week.mjs +10 -5
  35. package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  36. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +26 -16
  37. package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +2 -2
  38. package/es/control/calendar/components/interface/calendar-daily.mjs +8 -0
  39. package/es/control/calendar/components/interface/calendar-user.mjs +8 -0
  40. package/es/control/calendar/components/interface/calendar-week.mjs +8 -0
  41. package/es/control/calendar/components/interface/custom-calendar.mjs +8 -0
  42. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
  43. package/es/control/dashboard/dashboard.mjs +10 -3
  44. package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +10 -2
  45. package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +11 -3
  46. package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +11 -3
  47. package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
  48. package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +12 -3
  49. package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +10 -2
  50. package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +10 -2
  51. package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +10 -2
  52. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  53. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +20 -8
  54. package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +10 -2
  55. package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
  56. package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +10 -2
  57. package/es/control/data-view/data-view.css +1 -1
  58. package/es/control/data-view/data-view.mjs +42 -22
  59. package/es/control/drbar/drbar.css +1 -1
  60. package/es/control/drbar/drbar.mjs +24 -14
  61. package/es/control/drtab/drtab.css +1 -1
  62. package/es/control/drtab/drtab.mjs +36 -18
  63. package/es/control/drtab/flow-drtab.css +1 -1
  64. package/es/control/drtab/flow-drtab.mjs +21 -10
  65. package/es/control/form/edit-form/edit-form.css +1 -1
  66. package/es/control/form/form/form.mjs +12 -6
  67. package/es/control/form/form-detail/form-button/form-button.css +1 -1
  68. package/es/control/form/form-detail/form-button/form-button.mjs +11 -3
  69. package/es/control/form/form-detail/form-button-list/form-button-list.mjs +10 -3
  70. package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -3
  71. package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +18 -9
  72. package/es/control/form/form-detail/form-iframe/form-iframe.mjs +10 -3
  73. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  74. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +16 -6
  75. package/es/control/form/form-detail/form-item/form-item.css +1 -1
  76. package/es/control/form/form-detail/form-item/form-item.mjs +12 -5
  77. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
  78. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +19 -6
  79. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
  80. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +18 -7
  81. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +16 -4
  82. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
  83. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +24 -7
  84. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +16 -6
  85. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
  86. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
  87. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
  88. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +14 -5
  89. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
  90. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +22 -7
  91. package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +12 -4
  92. package/es/control/form/form-detail/form-page/form-page.mjs +16 -6
  93. package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +13 -4
  94. package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +10 -3
  95. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +16 -6
  96. package/es/control/form/search-form/advance-search/advance-search.mjs +2 -3
  97. package/es/control/form/search-form/search-form.css +1 -1
  98. package/es/control/grid/grid/grid-control.util.mjs +1 -1
  99. package/es/control/grid/grid/grid.css +1 -1
  100. package/es/control/grid/grid/grid.mjs +44 -18
  101. package/es/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
  102. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  103. package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
  104. package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
  105. package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
  106. package/es/control/kanban/kanban.css +1 -1
  107. package/es/control/kanban/kanban.mjs +46 -24
  108. package/es/control/list/list.css +1 -1
  109. package/es/control/list/list.mjs +35 -18
  110. package/es/control/map/map.css +1 -1
  111. package/es/control/map/map.mjs +23 -13
  112. package/es/control/medit-view-panel/medit-view-panel.css +1 -1
  113. package/es/control/medit-view-panel/medit-view-panel.mjs +32 -17
  114. package/es/control/search-bar/search-bar.css +1 -1
  115. package/es/control/search-bar/search-bar.mjs +22 -10
  116. package/es/control/search-bar/search-groups/search-groups.css +1 -1
  117. package/es/control/search-bar/search-groups/search-groups.mjs +16 -6
  118. package/es/control/toolbar/toolbar.css +1 -1
  119. package/es/control/toolbar/toolbar.mjs +94 -61
  120. package/es/control/tree/tree.css +1 -1
  121. package/es/control/tree/tree.mjs +27 -11
  122. package/es/control/tree-grid/tree-grid.mjs +44 -12
  123. package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
  124. package/es/control/tree-grid-ex/tree-grid-ex.mjs +24 -7
  125. package/es/control/wizard-panel/wizard-panel.css +1 -1
  126. package/es/control/wizard-panel/wizard-panel.mjs +29 -10
  127. package/es/editor/code/monaco-editor/monaco-editor.mjs +19 -5
  128. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +10 -6
  129. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
  130. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +14 -2
  131. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +6 -4
  132. package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +1 -1
  133. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +1 -1
  134. package/es/editor/upload/upload-editor.controller.mjs +9 -1
  135. package/es/editor/upload/use/use-custom-upload.mjs +62 -13
  136. package/es/editor/upload/use/use-iview-upload.mjs +45 -2
  137. package/es/index.mjs +1 -0
  138. package/es/locale/index.mjs +29 -1
  139. package/es/panel-component/panel-button/panel-button.css +1 -1
  140. package/es/panel-component/panel-view-header/panel-view-header.css +1 -1
  141. package/es/panel-component/searchform-buttons/searchform-buttons.css +1 -1
  142. package/es/panel-component/searchform-buttons/searchform-buttons.mjs +10 -3
  143. package/es/util/index.mjs +1 -0
  144. package/es/util/pagination/use-pagination.mjs +33 -1
  145. package/es/util/path-util/path-util.mjs +14 -0
  146. package/lib/common/high-light-code/high-light-code-util.cjs +0 -1
  147. package/lib/common/map-chart/map-chart.cjs +8 -1
  148. package/lib/common/map-chart/map-chart.css +1 -1
  149. package/lib/common/map-chart-user/map-chart-user.cjs +12 -4
  150. package/lib/common/map-chart-user/map-chart-user.css +1 -1
  151. package/lib/common/pagination/pagination.cjs +42 -2
  152. package/lib/common/pagination/pagination.css +1 -1
  153. package/lib/common/rawitem/rawitem.cjs +2 -0
  154. package/lib/common/rawitem/rawitem.css +1 -1
  155. package/lib/common/sort-bar/sort-bar.cjs +9 -1
  156. package/lib/common/sort-bar/sort-bar.css +1 -1
  157. package/lib/control/app-menu/app-menu.cjs +40 -18
  158. package/lib/control/app-menu/app-menu.css +1 -1
  159. package/lib/control/calendar/calendar-util.cjs +1 -1
  160. package/lib/control/calendar/calendar.cjs +85 -50
  161. package/lib/control/calendar/calendar.css +1 -1
  162. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +13 -8
  163. package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  164. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +16 -8
  165. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
  166. package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +216 -0
  167. package/lib/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
  168. package/lib/control/calendar/components/calendar-user2/index.cjs +14 -0
  169. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +10 -5
  170. package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
  171. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +26 -16
  172. package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  173. package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +2 -2
  174. package/lib/control/calendar/components/interface/calendar-daily.cjs +8 -0
  175. package/lib/control/calendar/components/interface/calendar-user.cjs +8 -0
  176. package/lib/control/calendar/components/interface/calendar-week.cjs +8 -0
  177. package/lib/control/calendar/components/interface/custom-calendar.cjs +8 -0
  178. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +9 -2
  179. package/lib/control/dashboard/dashboard.cjs +9 -2
  180. package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +9 -1
  181. package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +10 -2
  182. package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +10 -2
  183. package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +11 -2
  184. package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
  185. package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +9 -1
  186. package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +9 -1
  187. package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +9 -1
  188. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +19 -7
  189. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  190. package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +9 -1
  191. package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
  192. package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +9 -1
  193. package/lib/control/data-view/data-view.cjs +40 -20
  194. package/lib/control/data-view/data-view.css +1 -1
  195. package/lib/control/drbar/drbar.cjs +23 -13
  196. package/lib/control/drbar/drbar.css +1 -1
  197. package/lib/control/drtab/drtab.cjs +34 -16
  198. package/lib/control/drtab/drtab.css +1 -1
  199. package/lib/control/drtab/flow-drtab.cjs +20 -9
  200. package/lib/control/drtab/flow-drtab.css +1 -1
  201. package/lib/control/form/edit-form/edit-form.css +1 -1
  202. package/lib/control/form/form/form.cjs +10 -4
  203. package/lib/control/form/form-detail/form-button/form-button.cjs +10 -2
  204. package/lib/control/form/form-detail/form-button/form-button.css +1 -1
  205. package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +9 -2
  206. package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -2
  207. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +17 -8
  208. package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +9 -2
  209. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +15 -5
  210. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  211. package/lib/control/form/form-detail/form-item/form-item.cjs +11 -4
  212. package/lib/control/form/form-detail/form-item/form-item.css +1 -1
  213. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +18 -5
  214. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
  215. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +17 -6
  216. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
  217. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +15 -3
  218. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +23 -6
  219. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
  220. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +15 -5
  221. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
  222. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
  223. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +13 -4
  224. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
  225. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +21 -6
  226. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
  227. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +11 -3
  228. package/lib/control/form/form-detail/form-page/form-page.cjs +15 -5
  229. package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +12 -3
  230. package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +9 -2
  231. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +15 -5
  232. package/lib/control/form/search-form/advance-search/advance-search.cjs +1 -2
  233. package/lib/control/form/search-form/search-form.css +1 -1
  234. package/lib/control/grid/grid/grid-control.util.cjs +1 -1
  235. package/lib/control/grid/grid/grid.cjs +42 -16
  236. package/lib/control/grid/grid/grid.css +1 -1
  237. package/lib/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
  238. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  239. package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
  240. package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
  241. package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
  242. package/lib/control/kanban/kanban.cjs +45 -23
  243. package/lib/control/kanban/kanban.css +1 -1
  244. package/lib/control/list/list.cjs +34 -17
  245. package/lib/control/list/list.css +1 -1
  246. package/lib/control/map/map.cjs +21 -11
  247. package/lib/control/map/map.css +1 -1
  248. package/lib/control/medit-view-panel/medit-view-panel.cjs +31 -16
  249. package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
  250. package/lib/control/search-bar/search-bar.cjs +21 -9
  251. package/lib/control/search-bar/search-bar.css +1 -1
  252. package/lib/control/search-bar/search-groups/search-groups.cjs +15 -5
  253. package/lib/control/search-bar/search-groups/search-groups.css +1 -1
  254. package/lib/control/toolbar/toolbar.cjs +92 -59
  255. package/lib/control/toolbar/toolbar.css +1 -1
  256. package/lib/control/tree/tree.cjs +26 -10
  257. package/lib/control/tree/tree.css +1 -1
  258. package/lib/control/tree-grid/tree-grid.cjs +42 -10
  259. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +22 -5
  260. package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
  261. package/lib/control/wizard-panel/wizard-panel.cjs +28 -9
  262. package/lib/control/wizard-panel/wizard-panel.css +1 -1
  263. package/lib/editor/code/monaco-editor/monaco-editor.cjs +19 -5
  264. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +10 -6
  265. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +14 -2
  266. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
  267. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -4
  268. package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +1 -1
  269. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +1 -1
  270. package/lib/editor/upload/upload-editor.controller.cjs +9 -1
  271. package/lib/editor/upload/use/use-custom-upload.cjs +62 -13
  272. package/lib/editor/upload/use/use-iview-upload.cjs +45 -2
  273. package/lib/index.cjs +2 -0
  274. package/lib/locale/index.cjs +29 -1
  275. package/lib/panel-component/panel-button/panel-button.css +1 -1
  276. package/lib/panel-component/panel-view-header/panel-view-header.css +1 -1
  277. package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +9 -2
  278. package/lib/panel-component/searchform-buttons/searchform-buttons.css +1 -1
  279. package/lib/util/index.cjs +2 -0
  280. package/lib/util/pagination/use-pagination.cjs +33 -1
  281. package/lib/util/path-util/path-util.cjs +16 -0
  282. package/package.json +5 -5
  283. package/dist/ibiz-markdown-editor-CQRvKzXG.js +0 -1
  284. package/dist/index-YyzbGEva.js +0 -339
  285. package/dist/map-chart-nwkjjlMK.js +0 -1
  286. package/dist/map-chart-user-D2lgUtGX.js +0 -1
  287. package/dist/wang-editor-BnRUlcfv.js +0 -1
@@ -0,0 +1,214 @@
1
+ import { defineComponent, createVNode, resolveComponent, computed } from 'vue';
2
+ import dayjs from 'dayjs';
3
+ import { useNamespace } from '@ibiz-template/vue3-util';
4
+ import quarterOfYear from 'dayjs/plugin/quarterOfYear';
5
+ import './calendar-user2.css';
6
+
7
+ "use strict";
8
+ dayjs.extend(quarterOfYear);
9
+ const CalendarUser2 = /* @__PURE__ */ defineComponent({
10
+ name: "CalendarUser2",
11
+ props: {
12
+ title: {
13
+ type: String,
14
+ default: () => ibiz.i18n.t("control.calendar.title")
15
+ },
16
+ items: {
17
+ type: Array,
18
+ default: () => []
19
+ },
20
+ legends: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ timeRange: {
25
+ required: true,
26
+ type: Array,
27
+ validator: (range) => range.length === 2
28
+ },
29
+ semanticClass: {
30
+ type: Function,
31
+ required: true
32
+ },
33
+ semanticStyle: {
34
+ type: Function,
35
+ required: true
36
+ }
37
+ },
38
+ emits: {
39
+ legendClick: (_legend) => true,
40
+ timeRangeChange: (_range) => true
41
+ },
42
+ setup(props, {
43
+ emit
44
+ }) {
45
+ const ns = useNamespace("calendar-user2");
46
+ const range = computed({
47
+ get() {
48
+ return props.timeRange;
49
+ },
50
+ set(date) {
51
+ emit("timeRangeChange", date);
52
+ }
53
+ });
54
+ const legends = computed(() => {
55
+ return props.legends.filter((legend) => legend.isShow);
56
+ });
57
+ const itemsByDate = computed(() => {
58
+ const map = /* @__PURE__ */ new Map();
59
+ for (const item of props.items) {
60
+ if (!item.beginTime && !item.endTime)
61
+ continue;
62
+ const start = dayjs(item.beginTime || item.endTime);
63
+ const end = dayjs(item.endTime || item.beginTime);
64
+ const daysDiff = end.diff(start, "day") + 1;
65
+ for (let i = 0; i < daysDiff; i++) {
66
+ const dateKey = start.add(i, "day").format("YYYY-MM-DD");
67
+ if (!map.has(dateKey))
68
+ map.set(dateKey, []);
69
+ map.get(dateKey).push(item);
70
+ }
71
+ }
72
+ return map;
73
+ });
74
+ const dateMarkersMap = computed(() => {
75
+ const map = /* @__PURE__ */ new Map();
76
+ if (!props.timeRange.length)
77
+ return map;
78
+ const [startDate, endDate] = props.timeRange;
79
+ let current = dayjs(startDate);
80
+ while (current.isBefore(endDate) || current.isSame(endDate, "day")) {
81
+ const dateKey = current.format("YYYY-MM-DD");
82
+ const dateItems = itemsByDate.value.get(dateKey) || [];
83
+ if (dateItems.length > 0) {
84
+ const marks = legends.value.map((legend) => ({
85
+ ...legend,
86
+ items: dateItems.filter((item) => item.itemType === legend.id)
87
+ })).filter((legend) => legend.items.length);
88
+ if (marks.length) {
89
+ map.set(dateKey, marks);
90
+ }
91
+ }
92
+ current = current.add(1, "day");
93
+ }
94
+ return map;
95
+ });
96
+ const months = computed(() => {
97
+ if (!props.timeRange.length)
98
+ return [];
99
+ const [startDate, endDate] = props.timeRange;
100
+ const monthsList = [];
101
+ let current = dayjs(startDate).startOf("month");
102
+ while (current.isBefore(endDate) || current.isSame(endDate, "month")) {
103
+ monthsList.push(current.toDate());
104
+ current = current.add(1, "month");
105
+ }
106
+ return monthsList;
107
+ });
108
+ return {
109
+ ns,
110
+ range,
111
+ months,
112
+ dateMarkersMap
113
+ };
114
+ },
115
+ render() {
116
+ return createVNode("div", {
117
+ "style": this.semanticStyle("user2"),
118
+ "class": [this.ns.b(), this.semanticClass("user2")]
119
+ }, [createVNode("div", {
120
+ "class": [this.ns.e("header"), this.semanticClass("user2.header")],
121
+ "style": this.semanticStyle("user2.header")
122
+ }, [createVNode("div", {
123
+ "class": this.ns.em("header", "left")
124
+ }, [this.title]), createVNode("div", {
125
+ "class": [this.ns.em("header", "legend"), this.semanticStyle("legend")],
126
+ "style": this.semanticStyle("legend")
127
+ }, [this.legends.length > 1 && this.legends.map((legend) => {
128
+ return createVNode("div", {
129
+ "class": [this.ns.e("legend-item"), this.semanticStyle("legend.item")],
130
+ "style": this.semanticStyle("legend.item"),
131
+ "onClick": () => this.$emit("legendClick", legend)
132
+ }, [createVNode("div", {
133
+ "class": this.ns.em("legend-item", "dot"),
134
+ "style": {
135
+ backgroundColor: legend.isShow ? legend == null ? void 0 : legend.bkcolor : "var(".concat(this.ns.cssVarName("color-disabled-bg"), ")")
136
+ }
137
+ }, null), createVNode("div", {
138
+ "class": this.ns.em("legend-item", "text")
139
+ }, [legend.name])]);
140
+ })]), createVNode("div", {
141
+ "class": this.ns.em("header", "right")
142
+ }, [createVNode(resolveComponent("el-date-picker"), {
143
+ "type": "monthrange",
144
+ "clearable": false,
145
+ "modelValue": this.range,
146
+ "onUpdate:modelValue": ($event) => this.range = $event,
147
+ "class": this.ns.e("data-picker")
148
+ }, null)])]), createVNode("div", {
149
+ "class": [this.ns.e("body"), this.semanticClass("user2.body")],
150
+ "style": this.semanticStyle("user2.body")
151
+ }, [this.months.map((month) => {
152
+ return createVNode(resolveComponent("el-calendar"), {
153
+ "modelValue": month,
154
+ "class": this.ns.e("month-calendar"),
155
+ "key": "".concat(month.getFullYear(), "-").concat(month.getMonth())
156
+ }, {
157
+ header: ({
158
+ date
159
+ }) => {
160
+ return createVNode("div", {
161
+ "class": this.ns.em("month-calendar", "header")
162
+ }, [date]);
163
+ },
164
+ dateCell: ({
165
+ data
166
+ }) => {
167
+ const {
168
+ date
169
+ } = data;
170
+ const marks = this.dateMarkersMap.get(dayjs(date).format("YYYY-MM-DD")) || [];
171
+ return createVNode(resolveComponent("el-popover"), {
172
+ "trigger": "click",
173
+ "persistent": false,
174
+ "disabled": !marks.length,
175
+ "popperClass": this.ns.e("popover")
176
+ }, {
177
+ default: () => {
178
+ return createVNode("div", {
179
+ "class": this.ns.em("popover", "content")
180
+ }, [marks.map((mark) => {
181
+ return createVNode("div", {
182
+ "class": [this.ns.e("event"), this.ns.em("event", mark.id)]
183
+ }, [mark.items.map((item) => {
184
+ var _a, _b;
185
+ return (_b = (_a = this.$slots).event) == null ? void 0 : _b.call(_a, {
186
+ data: item
187
+ });
188
+ })]);
189
+ })]);
190
+ },
191
+ reference: () => createVNode("div", {
192
+ "class": this.ns.e("date")
193
+ }, [createVNode("div", {
194
+ "class": this.ns.em("date", "day")
195
+ }, [date.getDate()]), createVNode("div", {
196
+ "class": this.ns.em("date", "mark")
197
+ }, [marks.map((mark) => {
198
+ if (mark.isShow)
199
+ return createVNode("div", {
200
+ "class": [this.ns.e("dot"), this.semanticClass("dot")],
201
+ "style": {
202
+ ...this.semanticStyle("dot"),
203
+ backgroundColor: mark.bkcolor
204
+ }
205
+ }, null);
206
+ })])])
207
+ });
208
+ }
209
+ });
210
+ })])]);
211
+ }
212
+ });
213
+
214
+ export { CalendarUser2 };
@@ -0,0 +1,9 @@
1
+ import { withInstall } from '@ibiz-template/vue3-util';
2
+ import { CalendarUser2 } from './calendar-user2.mjs';
3
+
4
+ "use strict";
5
+ const IBizCalendarUser2 = withInstall(CalendarUser2, (v) => {
6
+ v.component(CalendarUser2.name, CalendarUser2);
7
+ });
8
+
9
+ export { IBizCalendarUser2, IBizCalendarUser2 as default };
@@ -1 +1 @@
1
- .ibiz-calendar-week{display:flex;flex:1;flex-direction:column;width:100%;height:100%;overflow:hidden}.ibiz-calendar-week__header{position:relative;z-index:100;display:flex;flex-direction:column;width:100%;height:150px;min-height:150px}.ibiz-calendar-week__header--date-cell-first{width:90px;max-width:90px;height:100%;border-right:1px solid var(--ibiz-color-border);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__header--event-cell-first{display:flex;align-items:center;justify-content:center;width:90px;max-width:90px;height:100%;padding-left:40px;border-right:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__header--dates{display:flex;justify-content:space-between;width:calc(100% - 7px);height:96px}.ibiz-calendar-week__header--date-cell{display:flex;flex:1;flex-direction:column;align-items:center;border-right:1px solid var(--ibiz-color-border);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__header--date-week{width:100%;height:26px;margin-top:6px;text-align:center}.ibiz-calendar-week__header--date-day{display:flex;align-items:center;justify-content:center;width:50px;height:50px;margin-top:6px;font-weight:600;border:none;border-radius:50%}.ibiz-calendar-week__header--date-day.is-today{color:var(--ibiz-color-primary-text);background:var(--ibiz-color-primary)}.ibiz-calendar-week__header--events{display:flex;flex:1;width:100%;height:30px;overflow:hidden;position:relative}.ibiz-calendar-week__header--event-container{width:calc(100% - 97px);height:100%;overflow-y:auto;overflow-x:hidden}.ibiz-calendar-week__header--event-container::-webkit-scrollbar{display:none}.ibiz-calendar-week__header--container-scroll{display:flex;height:auto}.ibiz-calendar-week__header--event-cell{position:relative;top:0;left:0;flex:1;width:100%;height:auto}.ibiz-calendar-week__header--event-cell::after{content:"";display:block;position:absolute;top:0;right:0;width:1px;height:var(--ibiz-calendar-week-header-event-scroll-real-height);border-right:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__header--event-box{position:absolute;display:flex;min-width:32px}.ibiz-calendar-week__header--event-box:has(.ibiz-calendar-week__header--check){min-width:50px}.ibiz-calendar-week__header--event-content{position:relative;z-index:2;width:100%;height:100%;min-height:22px;cursor:pointer;background-color:var(--ibiz-color-primary);border:none;outline:0}.ibiz-calendar-week__header--event-content.is-selected-event{padding-right:20px}.ibiz-calendar-week__header--event-summary{width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-calendar-week__header--resizable-handle{position:absolute;bottom:-6px;display:flex;align-items:center;width:calc(100% - 7px);height:10px;cursor:row-resize}.ibiz-calendar-week__header--resize-line{width:100%;height:1px;background-color:var(--ibiz-color-border)}.ibiz-calendar-week__header--check{position:absolute;top:50%;right:6px;color:var(--ibiz-color-primary);transform:translate(0,-50%)}.ibiz-calendar-week__scroll-area{flex:1;overflow:hidden scroll}.ibiz-calendar-week__time-pane{position:relative;display:flex;flex:1 1 0%;width:calc(100% - 3px);height:auto}.ibiz-calendar-week__time-pane--time-labels{position:sticky;left:0;width:90px;min-width:90px;padding:27px 0 27px 40px;border-right:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__time-pane--time-label{height:22px;margin-top:38px;line-height:22px;text-align:left}.ibiz-calendar-week__time-pane--time-label:nth-child(1){height:22px;margin-top:22px}.ibiz-calendar-week__time-pane--time-columns{position:relative;flex:1;padding-bottom:60px;border-right:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__time-pane--time-column{height:60px;border-top:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__time-pane--time-column:nth-child(1){border-top:none}.ibiz-calendar-week__time-pane--time-column-last{border-bottom:1px solid var(--ibiz-color-border)}.ibiz-calendar-week__time-pane--event-timed-container{position:absolute;top:0;width:100%;height:100%;overflow:hidden}.ibiz-calendar-week__time-pane--container-scroll{position:relative;top:0;width:100%;height:100%;overflow:auto;overflow:hidden}.ibiz-calendar-week__time-pane--event-box{position:absolute;width:auto;height:auto;padding:0 2px}.ibiz-calendar-week__time-pane--event-content{position:relative;z-index:3;width:100%;height:100%;padding:8px;overflow:hidden;line-height:100%;text-align:left;cursor:pointer;border:none;outline:0}.ibiz-calendar-week__time-pane--event-content.is-selected-event{border:1px solid var(--ibiz-color-primary)}.ibiz-calendar-week__time-pane--event-summary{width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-calendar-week__time-pane--event-summary>span{margin-right:4px}.ibiz-calendar-week__event-popover{width:auto;height:auto;padding:0}.ibiz-calendar-week__event-popover.ibiz-popover{position:absolute;z-index:110;padding:var(--ibiz-spacing-tight);background:var(--ibiz-color-bg-1);border:none;box-shadow:var(--ibiz-shadow-elevated)}.ibiz-calendar-week__event-popover:has(.ibiz-control-calendar-item-default){display:none!important}.ibiz-calendar-week__event-popover--body{width:auto;height:auto;overflow:hidden}.ibiz-calendar-week__event-popover--scroll{width:auto;min-width:200px;height:auto;max-height:80%;overflow:auto;pointer-events:none}.ibiz-calendar-week__event-popover--scroll .ibiz-control-calendar-item:last-child{margin-bottom:0}.ibiz-calendar-week__event-popover--scroll .ibiz-control-calendar-item.is-active{background-color:transparent;border-color:transparent}.ibiz-calendar-week-scroll-bar{position:absolute;top:var(--ibiz-calendar-week-header-event-scroll-bar-thumb-top);right:0;z-index:10;width:4px;height:100%;border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-calendar-week-scroll-bar__thumb{width:4px;height:var(--ibiz-calendar-week-header-event-scroll-bar-thumb-height);cursor:pointer;background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-border-radius-extra-small)}
1
+ .ibiz-calendar-week{--ibiz-control-calendar-week-tody-text-color:var(--ibiz-color-primary-text);--ibiz-control-calendar-week-tody-bg-color:var(--ibiz-color-primary);--ibiz-control-calendar-week-item-bg-color:var(--ibiz-color-primary);--ibiz-control-calendar-week-item-active-border-color:var(--ibiz-color-primary);--ibiz-control-calendar-week-scroll-width:4px;--ibiz-control-calendar-week-scroll-border-radius:var(--ibiz-border-radius-extra-small);--ibiz-control-calendar-week-scroll-bg-color:var(--ibiz-color-fill-2);display:flex;flex:1;flex-direction:column;width:100%;height:100%;overflow:hidden}.ibiz-calendar-week__header{position:relative;z-index:100;display:flex;flex-direction:column;width:100%;height:150px;min-height:150px}.ibiz-calendar-week__header--date-cell-first{width:90px;max-width:90px;height:100%;border-right:1px solid var(--ibiz-control-calendar-week-border-color);border-bottom:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__header--event-cell-first{display:flex;align-items:center;justify-content:center;width:90px;max-width:90px;height:100%;padding-left:40px;border-right:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__header--dates{display:flex;justify-content:space-between;width:calc(100% - 7px);height:96px}.ibiz-calendar-week__header--date-cell{display:flex;flex:1;flex-direction:column;align-items:center;border-right:1px solid var(--ibiz-control-calendar-week-border-color);border-bottom:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__header--date-week{width:100%;height:26px;margin-top:6px;text-align:center}.ibiz-calendar-week__header--date-day{display:flex;align-items:center;justify-content:center;width:50px;height:50px;margin-top:6px;font-weight:600;border:none;border-radius:50%}.ibiz-calendar-week__header--date-day.is-today{color:var(--ibiz-control-calendar-week-tody-text-color);background-color:var(--ibiz-control-calendar-week-tody-bg-color)}.ibiz-calendar-week__header--events{position:relative;display:flex;flex:1;width:100%;height:30px;overflow:hidden}.ibiz-calendar-week__header--event-container{width:calc(100% - 97px);height:100%;overflow:hidden auto}.ibiz-calendar-week__header--event-container::-webkit-scrollbar{display:none}.ibiz-calendar-week__header--container-scroll{display:flex;height:auto}.ibiz-calendar-week__header--event-cell{position:relative;top:0;left:0;flex:1;width:100%;height:auto}.ibiz-calendar-week__header--event-cell::after{position:absolute;top:0;right:0;display:block;width:1px;height:var(--ibiz-calendar-week-header-event-scroll-real-height);content:"";border-right:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__header--event-box{position:absolute;display:flex;min-width:32px}.ibiz-calendar-week__header--event-box:has(.ibiz-calendar-week__header--check){min-width:50px}.ibiz-calendar-week__header--event-content{position:relative;z-index:2;width:100%;height:100%;min-height:22px;cursor:pointer;background-color:var(--ibiz-control-calendar-week-item-bg-color);border:none;outline:0}.ibiz-calendar-week__header--event-content.is-selected-event{padding-right:20px}.ibiz-calendar-week__header--event-summary{width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-calendar-week__header--resizable-handle{position:absolute;bottom:-6px;display:flex;align-items:center;width:calc(100% - 7px);height:10px;cursor:row-resize}.ibiz-calendar-week__header--resize-line{width:100%;height:1px;background-color:var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__header--check{position:absolute;top:50%;right:6px;color:var(--ibiz-control-calendar-week-active-color);transform:translate(0,-50%)}.ibiz-calendar-week__scroll-area{flex:1;overflow:hidden scroll}.ibiz-calendar-week__time-pane{position:relative;display:flex;flex:1 1 0%;width:calc(100% - 3px);height:auto}.ibiz-calendar-week__time-pane--time-labels{position:sticky;left:0;width:90px;min-width:90px;padding:27px 0 27px 40px;border-right:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__time-pane--time-label{height:22px;margin-top:38px;line-height:22px;text-align:left}.ibiz-calendar-week__time-pane--time-label:nth-child(1){height:22px;margin-top:22px}.ibiz-calendar-week__time-pane--time-columns{position:relative;flex:1;padding-bottom:60px;border-right:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__time-pane--time-column{height:60px;border-top:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__time-pane--time-column:nth-child(1){border-top:none}.ibiz-calendar-week__time-pane--time-column-last{border-bottom:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-calendar-week__time-pane--event-timed-container{position:absolute;top:0;width:100%;height:100%;overflow:hidden}.ibiz-calendar-week__time-pane--container-scroll{position:relative;top:0;width:100%;height:100%;overflow:auto;overflow:hidden}.ibiz-calendar-week__time-pane--event-box{position:absolute;width:auto;height:auto;padding:0 2px}.ibiz-calendar-week__time-pane--event-content{position:relative;z-index:3;width:100%;height:100%;padding:8px;overflow:hidden;line-height:100%;text-align:left;cursor:pointer;border:none;outline:0}.ibiz-calendar-week__time-pane--event-content.is-selected-event{border:1px solid var(--ibiz-control-calendar-week-item-active-border-color)}.ibiz-calendar-week__time-pane--event-summary{width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-calendar-week__time-pane--event-summary>span{margin-right:4px}.ibiz-calendar-week__event-popover{width:auto;height:auto;padding:0}.ibiz-calendar-week__event-popover.ibiz-popover{position:absolute;z-index:110;padding:var(--ibiz-spacing-tight);background:var(--ibiz-color-bg-1);border:none;box-shadow:var(--ibiz-shadow-elevated)}.ibiz-calendar-week__event-popover:has(.ibiz-control-calendar-item-default){display:none!important}.ibiz-calendar-week__event-popover--body{width:auto;height:auto;overflow:hidden}.ibiz-calendar-week__event-popover--scroll{width:auto;min-width:200px;height:auto;max-height:80%;overflow:auto;pointer-events:none}.ibiz-calendar-week__event-popover--scroll .ibiz-control-calendar-item:last-child{margin-bottom:0}.ibiz-calendar-week__event-popover--scroll .ibiz-control-calendar-item.is-active{background-color:transparent;border-color:transparent}.ibiz-calendar-week-scroll-bar{position:absolute;top:var(--ibiz-calendar-week-header-event-scroll-bar-thumb-top);right:0;z-index:10;width:var(--ibiz-control-calendar-week-scroll-width);height:100%;border-radius:var(--ibiz-control-calendar-week-scroll-border-radius)}.ibiz-calendar-week-scroll-bar__thumb{width:var(--ibiz-control-calendar-week-scroll-width);height:var(--ibiz-calendar-week-header-event-scroll-bar-thumb-height);cursor:pointer;background-color:var(--ibiz-control-calendar-week-scroll-bg-color);border-radius:var(--ibiz-control-calendar-week-scroll-border-radius)}
@@ -120,8 +120,11 @@ const CalendarWeek = /* @__PURE__ */ defineComponent({
120
120
  const component = renderPopoverContent(event);
121
121
  return createVNode("div", {
122
122
  "key": index,
123
- "class": [ns.em(classEName, "event-box")],
124
- "style": eventBoxStyle
123
+ "class": [ns.em(classEName, "event-box"), props.semanticClass("week.".concat(location === "header" ? "header.item" : "body.item"))],
124
+ "style": {
125
+ ...eventBoxStyle,
126
+ ...props.semanticStyle("week.".concat(location === "header" ? "header.item" : "body.item"))
127
+ }
125
128
  }, [createVNode("button", {
126
129
  "class": [ns.em(classEName, "event-content"), ns.is("selected-event", !!event.isSelectedEvent), event.classname],
127
130
  "onClick": () => {
@@ -152,7 +155,8 @@ const CalendarWeek = /* @__PURE__ */ defineComponent({
152
155
  };
153
156
  const renderHeader = () => {
154
157
  return createVNode("div", {
155
- "class": [ns.e("header")],
158
+ "style": props.semanticStyle("week.header"),
159
+ "class": [ns.e("header"), props.semanticClass("week.header")],
156
160
  "ref": (el) => {
157
161
  resizableHand.value = el;
158
162
  }
@@ -204,8 +208,9 @@ const CalendarWeek = /* @__PURE__ */ defineComponent({
204
208
  };
205
209
  const renderContent = () => {
206
210
  return createVNode("div", {
207
- "class": [ns.e("scroll-area")],
208
- "onMousemove": contentMousemove
211
+ "onMousemove": contentMousemove,
212
+ "style": props.semanticStyle("week.body"),
213
+ "class": [ns.e("scroll-area"), props.semanticClass("week.body")]
209
214
  }, [createVNode("div", {
210
215
  "class": ns.e("time-pane")
211
216
  }, [createVNode("div", {
@@ -1 +1 @@
1
- .ibiz-custom-calendar{width:100%;height:100%}.ibiz-custom-calendar__calendar-day{display:flex;flex-direction:column;width:100%;min-width:380px;height:100%;min-height:900px;border:1px solid var(--ibiz-color-border)}.ibiz-custom-calendar__calendar-day--header{padding:0 40px;border-bottom:1px solid var(--ibiz-color-border)}.ibiz-custom-calendar__calendar-day--header-top{display:flex;align-items:center;justify-content:space-between;height:70px}.ibiz-custom-calendar__calendar-day--title{min-width:80px;font-size:20px}.ibiz-custom-calendar__calendar-day--text-secondary{height:56px;line-height:56px;text-align:left}.ibiz-custom-calendar__calendar-day--select-time{width:130px;height:32px}.ibiz-custom-calendar__calendar-day--select-time .el-input__suffix{display:none}.ibiz-custom-calendar__calendar-day--legend{display:flex;flex-grow:1;align-items:center;justify-content:center;height:100%;overflow:auto}.ibiz-custom-calendar__calendar-day--legend-item{display:flex;align-items:center;width:auto;height:auto;padding:0 var(--ibiz-spacing-tight);line-height:1em;cursor:pointer}.ibiz-custom-calendar__calendar-day--legend-item-tip{display:inline-block;width:1.5em;height:.9em;margin-right:var(--ibiz-spacing-extra-tight);border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-custom-calendar__calendar-day--legend-item-text{display:inline-block;width:auto;max-width:100px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-custom-calendar__calendar-week{display:flex;flex-direction:column;width:100%;min-width:380px;height:100%;border:1px solid var(--ibiz-color-border)}.ibiz-custom-calendar__calendar-week--header{padding:0 40px;border-bottom:1px solid var(--ibiz-color-border)}.ibiz-custom-calendar__calendar-week--header-top{display:flex;align-items:center;justify-content:space-between;height:70px}.ibiz-custom-calendar__calendar-week--title{min-width:80px;font-size:20px}.ibiz-custom-calendar__calendar-week--text-secondary{height:56px;line-height:56px;text-align:left}.ibiz-custom-calendar__calendar-week--select-time{width:130px;height:32px}.ibiz-custom-calendar__calendar-week--select-time .el-input__suffix{display:none}.ibiz-custom-calendar__calendar-week--legend{display:flex;flex-grow:1;align-items:center;justify-content:center;height:100%;overflow:auto}.ibiz-custom-calendar__calendar-week--legend-item{display:flex;align-items:center;width:auto;height:auto;padding:0 var(--ibiz-spacing-tight);line-height:1em;cursor:pointer}.ibiz-custom-calendar__calendar-week--legend-item-tip{display:inline-block;width:1.5em;height:.9em;margin-right:var(--ibiz-spacing-extra-tight);border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-custom-calendar__calendar-week--legend-item-text{display:inline-block;width:auto;max-width:100px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-custom-calendar__calendar-month{display:flex;flex-direction:column;width:100%;height:100%}.ibiz-custom-calendar__calendar-month--body{flex-grow:1;width:100%;height:calc(100% - 58px)}.ibiz-custom-calendar__calendar-month--legend{display:flex;align-items:center;justify-content:center;width:auto;height:100%}.ibiz-custom-calendar__calendar-month--legend-item{display:flex;align-items:center;width:auto;height:auto;padding:0 var(--ibiz-spacing-tight);line-height:1em;cursor:pointer}.ibiz-custom-calendar__calendar-month--legend-item-tip{display:inline-block;width:1.5em;height:.9em;margin-right:var(--ibiz-spacing-extra-tight);border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-custom-calendar__calendar-month--legend-item-text{display:inline-block;width:auto;max-width:100px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-custom-calendar__calendar-month--header{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:58px;padding:12px 20px;border-bottom:1px solid var(--ibiz-color-border)}.ibiz-custom-calendar__calendar-month--button-group{display:flex;align-items:center;justify-content:space-between;width:388px}.ibiz-custom-calendar__header--title{min-width:120px}.ibiz-custom-calendar__calendar-user{display:flex;flex-direction:column;height:100%}.ibiz-custom-calendar__calendar-user-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 var(--ibiz-spacing-base)}.ibiz-custom-calendar__calendar-user-header--right .el-date-editor.el-date-editor--week.el-input{width:250px}.ibiz-custom-calendar .el-date-editor.el-input,.ibiz-custom-calendar .el-date-editor.el-input__wrapper{width:130px;height:32px}
1
+ .ibiz-custom-calendar{width:100%;height:100%}.ibiz-custom-calendar__calendar-day{--ibiz-control-calendar-day-active-color:var(--ibiz-color-primary);--ibiz-control-calendar-day-border-color:var(--ibiz-control-calendar-border-color);display:flex;flex-direction:column;width:100%;min-width:380px;height:100%;border:1px solid var(--ibiz-control-calendar-day-border-color)}.ibiz-custom-calendar__calendar-day--header{padding:0 40px;border-bottom:1px solid var(--ibiz-control-calendar-day-border-color)}.ibiz-custom-calendar__calendar-day--header-top{display:flex;align-items:center;justify-content:space-between;height:70px}.ibiz-custom-calendar__calendar-day--title{min-width:80px;font-size:20px}.ibiz-custom-calendar__calendar-day--text-secondary{height:56px;line-height:56px;text-align:left}.ibiz-custom-calendar__calendar-day--select-time{width:130px;height:32px}.ibiz-custom-calendar__calendar-day--select-time .el-input__suffix{display:none}.ibiz-custom-calendar__calendar-day--legend{display:flex;flex-grow:1;align-items:center;justify-content:center;height:100%;overflow:auto}.ibiz-custom-calendar__calendar-day--legend-item{display:flex;align-items:center;width:auto;height:auto;padding:0 var(--ibiz-spacing-tight);line-height:1em;cursor:pointer}.ibiz-custom-calendar__calendar-day--legend-item-tip{display:inline-block;width:1.5em;height:.9em;margin-right:var(--ibiz-spacing-extra-tight);border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-custom-calendar__calendar-day--legend-item-text{display:inline-block;width:auto;max-width:100px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-custom-calendar__calendar-week{--ibiz-control-calendar-week-active-color:var(--ibiz-color-primary);--ibiz-control-calendar-week-border-color:var(--ibiz-control-calendar-border-color);display:flex;flex-direction:column;width:100%;min-width:380px;height:100%;border:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-custom-calendar__calendar-week--header{padding:0 40px;border-bottom:1px solid var(--ibiz-control-calendar-week-border-color)}.ibiz-custom-calendar__calendar-week--header-top{display:flex;align-items:center;justify-content:space-between;height:70px}.ibiz-custom-calendar__calendar-week--title{min-width:80px;font-size:20px}.ibiz-custom-calendar__calendar-week--select-time{width:130px;height:32px}.ibiz-custom-calendar__calendar-week--select-time .el-input__suffix{display:none}.ibiz-custom-calendar__calendar-week--legend{display:flex;flex-grow:1;align-items:center;justify-content:center;height:100%;overflow:auto}.ibiz-custom-calendar__calendar-week--legend-item{display:flex;align-items:center;width:auto;height:auto;padding:0 var(--ibiz-spacing-tight);line-height:1em;cursor:pointer}.ibiz-custom-calendar__calendar-week--legend-item-tip{display:inline-block;width:1.5em;height:.9em;margin-right:var(--ibiz-spacing-extra-tight);border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-custom-calendar__calendar-week--legend-item-text{display:inline-block;width:auto;max-width:100px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-custom-calendar__calendar-user{display:flex;flex-direction:column;height:100%}.ibiz-custom-calendar__calendar-user-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 var(--ibiz-spacing-base)}.ibiz-custom-calendar__calendar-user-header--right .el-date-editor.el-date-editor--week.el-input{width:250px}.ibiz-custom-calendar .el-date-editor.el-input,.ibiz-custom-calendar .el-date-editor.el-input__wrapper{width:130px;height:32px}
@@ -6,8 +6,8 @@ import { IBizCalendarDaily } from '../calendar-daily/index.mjs';
6
6
  import { IBizCalendarWeek } from '../calendar-week/index.mjs';
7
7
  import { IBizCalendarUser } from '../calendar-user/index.mjs';
8
8
  import { useCustomCalendar, calcCurrentWeekRange } from './use-custom-calendar.mjs';
9
- import './custom-calendar.css';
10
9
  import '../interface/index.mjs';
10
+ import './custom-calendar.css';
11
11
  import { customCalendarEmits, customCalendarProps } from '../interface/custom-calendar.mjs';
12
12
 
13
13
  "use strict";
@@ -41,9 +41,10 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
41
41
  const renderWeek = () => {
42
42
  var _a;
43
43
  return createVNode("div", {
44
- "class": [ns.e("calendar-week")]
44
+ "class": [ns.e("calendar-week"), props.semanticClass("week")],
45
+ "style": props.semanticStyle("week")
45
46
  }, [(slots == null ? void 0 : slots.header) ? createVNode("div", {
46
- "class": [ns.em("calendar-month", "header")]
47
+ "class": [ns.em("calendar-week", "header")]
47
48
  }, [(_a = slots == null ? void 0 : slots.header) == null ? void 0 : _a.call(slots, {
48
49
  date: dayjs(realSelectedDay.value).format("YYYY-MM-DD"),
49
50
  legends: legends.value
@@ -77,6 +78,8 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
77
78
  "placeholder": "\u9009\u62E9\u65E5\u671F",
78
79
  "shortcuts": shortcuts
79
80
  }, null)])])]), createVNode(IBizCalendarWeek, {
81
+ "semanticClass": props.semanticClass,
82
+ "semanticStyle": props.semanticStyle,
80
83
  "selected-day": realSelectedDay.value,
81
84
  "showDetail": props.showDetail,
82
85
  "events": events.value,
@@ -91,35 +94,36 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
91
94
  const renderDay = () => {
92
95
  var _a;
93
96
  return createVNode("div", {
94
- "class": [ns.e("calendar-week")]
97
+ "class": [ns.e("calendar-day"), props.semanticClass("day")],
98
+ "style": props.semanticStyle("day")
95
99
  }, [(slots == null ? void 0 : slots.header) ? createVNode("div", {
96
- "class": [ns.em("calendar-month", "header")]
100
+ "class": [ns.em("calendar-day", "header")]
97
101
  }, [(_a = slots == null ? void 0 : slots.header) == null ? void 0 : _a.call(slots, {
98
102
  date: dayjs(realSelectedDay.value).format("YYYY-MM-DD"),
99
103
  legends: legends.value
100
104
  })]) : createVNode("div", {
101
- "class": [ns.em("calendar-week", "header")]
105
+ "class": [ns.em("calendar-day", "header")]
102
106
  }, [createVNode("div", {
103
- "class": ns.em("calendar-week", "header-top")
107
+ "class": ns.em("calendar-day", "header-top")
104
108
  }, [createVNode("div", {
105
- "class": ns.em("calendar-week", "title")
109
+ "class": ns.em("calendar-day", "title")
106
110
  }, [props.calendarTitle || ibiz.i18n.t("control.calendar.title")]), createVNode("div", {
107
- "class": ns.em("calendar-week", "legend")
111
+ "class": ns.em("calendar-day", "legend")
108
112
  }, [legends.value.length > 1 && legends.value.map((item) => {
109
113
  return createVNode("div", {
110
- "class": ns.em("calendar-week", "legend-item"),
114
+ "class": ns.em("calendar-day", "legend-item"),
111
115
  "onClick": () => selectLegend(item)
112
116
  }, [createVNode("div", {
113
- "class": ns.em("calendar-week", "legend-item-tip"),
117
+ "class": ns.em("calendar-day", "legend-item-tip"),
114
118
  "style": {
115
119
  background: item.isShow ? item.bkcolor : "var(".concat(ns.cssVarName("color-disabled-bg"), ")")
116
120
  }
117
121
  }, null), createVNode("div", {
118
- "class": ns.em("calendar-week", "legend-item-text"),
122
+ "class": ns.em("calendar-day", "legend-item-text"),
119
123
  "title": showTitle(item.name)
120
124
  }, [item.name])]);
121
125
  })]), createVNode("div", {
122
- "class": ns.em("calendar-week", "select-time")
126
+ "class": ns.em("calendar-day", "select-time")
123
127
  }, [createVNode(resolveComponent("el-date-picker"), {
124
128
  "modelValue": realSelectedDay.value,
125
129
  "onUpdate:modelValue": ($event) => realSelectedDay.value = $event,
@@ -127,8 +131,10 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
127
131
  "placeholder": ibiz.i18n.t("control.calendar.calendardaily.selectdate"),
128
132
  "shortcuts": shortcuts
129
133
  }, null)])]), createVNode("div", {
130
- "class": ns.em("calendar-week", "text-secondary")
134
+ "class": ns.em("calendar-day", "text-secondary")
131
135
  }, [curWeek.value])]), createVNode(IBizCalendarDaily, {
136
+ "semanticClass": props.semanticClass,
137
+ "semanticStyle": props.semanticStyle,
132
138
  "selected-day": realSelectedDay.value,
133
139
  "controller": props.controller,
134
140
  "showDetail": props.showDetail,
@@ -144,7 +150,8 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
144
150
  const renderUser = () => {
145
151
  const weekRange = calcCurrentWeekRange(new Date(realSelectedDay.value));
146
152
  return createVNode("div", {
147
- "class": [ns.e("calendar-user")]
153
+ "class": [ns.e("calendar-user"), props.semanticClass("user")],
154
+ "style": props.semanticStyle("user")
148
155
  }, [createVNode("div", {
149
156
  "class": [ns.e("calendar-user-header")]
150
157
  }, [createVNode("div", {
@@ -163,6 +170,8 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
163
170
  "placeholder": ibiz.i18n.t("control.calendar.calendarUser.selectWeekRange"),
164
171
  "format": ibiz.i18n.t("control.calendar.calendarUser.weekFormat")
165
172
  }, null)])]), createVNode(IBizCalendarUser, {
173
+ "semanticClass": props.semanticClass,
174
+ "semanticStyle": props.semanticStyle,
166
175
  "selected-day": realSelectedDay.value,
167
176
  "events": events.value,
168
177
  "onEventClick": (value) => handleEVentClick(value),
@@ -192,7 +201,8 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
192
201
  },
193
202
  render() {
194
203
  return createVNode("div", {
195
- "class": [this.ns.b()]
204
+ "style": this.semanticStyle("content"),
205
+ "class": [this.ns.b(), this.semanticClass("content")]
196
206
  }, [this.renderContent()]);
197
207
  }
198
208
  });
@@ -1,8 +1,8 @@
1
- import { ref, computed, watch } from 'vue';
2
1
  import dayjs from 'dayjs';
3
2
  import { useLocale } from 'element-plus';
4
- import '../util/index.mjs';
3
+ import { ref, computed, watch } from 'vue';
5
4
  import '../constant/index.mjs';
5
+ import '../util/index.mjs';
6
6
  import { handleBkColor } from '../util/util.mjs';
7
7
  import { INPUT_EVENT, CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../constant/event.mjs';
8
8
 
@@ -24,6 +24,14 @@ const calendarDailyProps = handleProps({
24
24
  showDetail: {
25
25
  type: Boolean,
26
26
  default: false
27
+ },
28
+ semanticClass: {
29
+ type: Function,
30
+ required: true
31
+ },
32
+ semanticStyle: {
33
+ type: Function,
34
+ required: true
27
35
  }
28
36
  });
29
37
  const calendarDailyEmits = {
@@ -10,6 +10,14 @@ const calendarUserProps = handleProps({
10
10
  events: {
11
11
  type: Array,
12
12
  default: []
13
+ },
14
+ semanticClass: {
15
+ type: Function,
16
+ required: true
17
+ },
18
+ semanticStyle: {
19
+ type: Function,
20
+ required: true
13
21
  }
14
22
  });
15
23
  const calendarUserEmits = {
@@ -24,6 +24,14 @@ const calendarWeekProps = handleProps({
24
24
  },
25
25
  selectedData: {
26
26
  type: Object
27
+ },
28
+ semanticClass: {
29
+ type: Function,
30
+ required: true
31
+ },
32
+ semanticStyle: {
33
+ type: Function,
34
+ required: true
27
35
  }
28
36
  });
29
37
  const calendarWeekEmits = {
@@ -59,6 +59,14 @@ const customCalendarProps = handleProps({
59
59
  */
60
60
  selectedData: {
61
61
  type: Object
62
+ },
63
+ semanticClass: {
64
+ type: Function,
65
+ required: true
66
+ },
67
+ semanticStyle: {
68
+ type: Function,
69
+ required: true
62
70
  }
63
71
  });
64
72
  const customCalendarEmits = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, withDirectives, createVNode, resolveComponent, resolveDirective, reactive, ref, nextTick, onMounted } from 'vue';
2
2
  import { CustomDashboardController } from '@ibiz-template/runtime';
3
- import { useNamespace } from '@ibiz-template/vue3-util';
3
+ import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
4
4
  import './custom-dashboard-container.css';
5
5
  import { showTitle } from '@ibiz-template/core';
6
6
 
@@ -21,6 +21,10 @@ const CustomDashboardContainer = /* @__PURE__ */ defineComponent({
21
21
  emit
22
22
  }) {
23
23
  const ns = useNamespace("custom-dashboard-container");
24
+ const {
25
+ semanticClass,
26
+ semanticStyle
27
+ } = useSemanticNode(props.dashboard);
24
28
  const customDashboard = new CustomDashboardController(props.modelData, props.dashboard);
25
29
  props.dashboard.setCustomDashboard(customDashboard);
26
30
  const customC = reactive(customDashboard);
@@ -150,7 +154,9 @@ const CustomDashboardContainer = /* @__PURE__ */ defineComponent({
150
154
  onSaved,
151
155
  onReset,
152
156
  clickCollapse,
153
- openFilterDesign
157
+ openFilterDesign,
158
+ semanticClass,
159
+ semanticStyle
154
160
  };
155
161
  },
156
162
  render() {
@@ -158,7 +164,8 @@ const CustomDashboardContainer = /* @__PURE__ */ defineComponent({
158
164
  return withDirectives(createVNode("div", {
159
165
  "class": [this.ns.b()]
160
166
  }, [this.customC.showDesignBtn ? createVNode("div", {
161
- "class": this.ns.b("build-btn")
167
+ "class": [this.ns.b("build-btn"), this.semanticClass("custom")],
168
+ "style": this.semanticStyle("custom")
162
169
  }, [this.showTypeDir ? createVNode("div", null, [this.showFilter ? createVNode(resolveComponent("el-button"), {
163
170
  "class": this.ns.b("deisgn-btn"),
164
171
  "title": ibiz.i18n.t("control.dashboard.customDashboardContainer.newFilter"),
@@ -1,5 +1,5 @@
1
1
  import { isVNode, createVNode, resolveComponent, h, defineComponent, getCurrentInstance, ref, isReactive, reactive } from 'vue';
2
- import { useControlController, useControlPopoverzIndex, useNamespace } from '@ibiz-template/vue3-util';
2
+ import { useControlController, useControlPopoverzIndex, useSemanticNode, useNamespace } from '@ibiz-template/vue3-util';
3
3
  import { DashboardController } from '@ibiz-template/runtime';
4
4
  import { uniqueId } from 'lodash-es';
5
5
  import './dashboard.css';
@@ -75,6 +75,10 @@ const DashboardControl = /* @__PURE__ */ defineComponent({
75
75
  setup() {
76
76
  const c = useControlController((...args) => new DashboardController(...args));
77
77
  useControlPopoverzIndex(c);
78
+ const {
79
+ semanticClass,
80
+ semanticStyle
81
+ } = useSemanticNode(c);
78
82
  const vue = getCurrentInstance().proxy;
79
83
  const customModelDatas = ref([]);
80
84
  const anchorList = ref([]);
@@ -156,7 +160,9 @@ const DashboardControl = /* @__PURE__ */ defineComponent({
156
160
  anchorList,
157
161
  dashboardRef,
158
162
  calcNavBarConfig,
159
- handleCustomModelChange
163
+ handleCustomModelChange,
164
+ semanticClass,
165
+ semanticStyle
160
166
  };
161
167
  },
162
168
  render() {
@@ -225,7 +231,8 @@ const DashboardControl = /* @__PURE__ */ defineComponent({
225
231
  }
226
232
  return createVNode(resolveComponent("iBizControlBase"), {
227
233
  "controller": this.c,
228
- "class": [this.ns.b()]
234
+ "class": [this.ns.b(), this.semanticClass("root")],
235
+ "style": this.semanticStyle("root")
229
236
  }, {
230
237
  default: () => [state.isCreated && content]
231
238
  });
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode, resolveComponent } from 'vue';
2
- import { useNamespace } from '@ibiz-template/vue3-util';
2
+ import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
3
3
  import { ActionBarPortletController } from '@ibiz-template/runtime';
4
4
 
5
5
  "use strict";
@@ -18,6 +18,10 @@ const ActionBarPortlet = /* @__PURE__ */ defineComponent({
18
18
  setup(props) {
19
19
  var _a;
20
20
  const ns = useNamespace("portlet-".concat((_a = props.modelData.portletType) == null ? void 0 : _a.toLowerCase()));
21
+ const {
22
+ semanticClass,
23
+ semanticStyle
24
+ } = useSemanticNode(props.controller.dashboard);
21
25
  const zIndex = props.controller.dashboard.state.zIndex;
22
26
  const onActionClick = async (detail, event) => {
23
27
  await props.controller.onActionClick(detail, event);
@@ -25,7 +29,9 @@ const ActionBarPortlet = /* @__PURE__ */ defineComponent({
25
29
  return {
26
30
  ns,
27
31
  zIndex,
28
- onActionClick
32
+ onActionClick,
33
+ semanticClass,
34
+ semanticStyle
29
35
  };
30
36
  },
31
37
  render() {
@@ -35,6 +41,8 @@ const ActionBarPortlet = /* @__PURE__ */ defineComponent({
35
41
  "class": classArr
36
42
  }, {
37
43
  default: () => [this.modelData.uiactionGroup && createVNode(resolveComponent("iBizActionToolbar"), {
44
+ "class": this.semanticClass("portlet.actionbar", this.controller),
45
+ "style": this.semanticStyle("portlet.actionbar", this.controller),
38
46
  "zIndex": this.zIndex,
39
47
  "action-details": this.modelData.uiactionGroup.uiactionGroupDetails,
40
48
  "actions-state": this.controller.state.actionGroupState,