@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.
- package/dist/ibiz-markdown-editor-BxT3t2N6.js +1 -0
- package/dist/index-DY8xatG5.js +339 -0
- package/dist/{index.es-Bx7ry_G4.js → index.es-BxDgOess.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-DbBbP4qh.js +1 -0
- package/dist/map-chart-user-CfTAGaU5.js +1 -0
- package/dist/wang-editor-Ct_jRlrK.js +1 -0
- package/dist/{xlsx-util-DXx8himL.js → xlsx-util-Bi2h7Kj8.js} +2 -2
- package/es/common/high-light-code/high-light-code-util.mjs +0 -1
- package/es/common/map-chart/map-chart.css +1 -1
- package/es/common/map-chart/map-chart.mjs +9 -2
- package/es/common/map-chart-user/map-chart-user.css +1 -1
- package/es/common/map-chart-user/map-chart-user.mjs +13 -5
- package/es/common/pagination/pagination.css +1 -1
- package/es/common/pagination/pagination.mjs +42 -2
- package/es/common/rawitem/rawitem.css +1 -1
- package/es/common/rawitem/rawitem.mjs +2 -0
- package/es/common/sort-bar/sort-bar.css +1 -1
- package/es/common/sort-bar/sort-bar.mjs +9 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +42 -20
- package/es/control/calendar/calendar-util.mjs +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.mjs +86 -51
- package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +13 -8
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +16 -8
- package/es/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +214 -0
- package/es/control/calendar/components/calendar-user2/index.mjs +9 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +10 -5
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +26 -16
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +2 -2
- package/es/control/calendar/components/interface/calendar-daily.mjs +8 -0
- package/es/control/calendar/components/interface/calendar-user.mjs +8 -0
- package/es/control/calendar/components/interface/calendar-week.mjs +8 -0
- package/es/control/calendar/components/interface/custom-calendar.mjs +8 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard.mjs +10 -3
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +11 -3
- package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +11 -3
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +12 -3
- package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +20 -8
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +10 -2
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +42 -22
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.mjs +24 -14
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.mjs +36 -18
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +21 -10
- package/es/control/form/edit-form/edit-form.css +1 -1
- package/es/control/form/form/form.mjs +12 -6
- package/es/control/form/form-detail/form-button/form-button.css +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +11 -3
- package/es/control/form/form-detail/form-button-list/form-button-list.mjs +10 -3
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -3
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +18 -9
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +10 -3
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +16 -6
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +12 -5
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +19 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +18 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +16 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +24 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +16 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +14 -5
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +22 -7
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +12 -4
- package/es/control/form/form-detail/form-page/form-page.mjs +16 -6
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +13 -4
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +10 -3
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +16 -6
- package/es/control/form/search-form/advance-search/advance-search.mjs +2 -3
- package/es/control/form/search-form/search-form.css +1 -1
- package/es/control/grid/grid/grid-control.util.mjs +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +44 -18
- package/es/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +46 -24
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.mjs +35 -18
- package/es/control/map/map.css +1 -1
- package/es/control/map/map.mjs +23 -13
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +32 -17
- package/es/control/search-bar/search-bar.css +1 -1
- package/es/control/search-bar/search-bar.mjs +22 -10
- package/es/control/search-bar/search-groups/search-groups.css +1 -1
- package/es/control/search-bar/search-groups/search-groups.mjs +16 -6
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +94 -61
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.mjs +27 -11
- package/es/control/tree-grid/tree-grid.mjs +44 -12
- package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +24 -7
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +29 -10
- package/es/editor/code/monaco-editor/monaco-editor.mjs +19 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +10 -6
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +14 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +6 -4
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +1 -1
- package/es/editor/upload/upload-editor.controller.mjs +9 -1
- package/es/editor/upload/use/use-custom-upload.mjs +62 -13
- package/es/editor/upload/use/use-iview-upload.mjs +45 -2
- package/es/index.mjs +1 -0
- package/es/locale/index.mjs +29 -1
- package/es/panel-component/panel-button/panel-button.css +1 -1
- package/es/panel-component/panel-view-header/panel-view-header.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +10 -3
- package/es/util/index.mjs +1 -0
- package/es/util/pagination/use-pagination.mjs +33 -1
- package/es/util/path-util/path-util.mjs +14 -0
- package/lib/common/high-light-code/high-light-code-util.cjs +0 -1
- package/lib/common/map-chart/map-chart.cjs +8 -1
- package/lib/common/map-chart/map-chart.css +1 -1
- package/lib/common/map-chart-user/map-chart-user.cjs +12 -4
- package/lib/common/map-chart-user/map-chart-user.css +1 -1
- package/lib/common/pagination/pagination.cjs +42 -2
- package/lib/common/pagination/pagination.css +1 -1
- package/lib/common/rawitem/rawitem.cjs +2 -0
- package/lib/common/rawitem/rawitem.css +1 -1
- package/lib/common/sort-bar/sort-bar.cjs +9 -1
- package/lib/common/sort-bar/sort-bar.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +40 -18
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/calendar/calendar-util.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +85 -50
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +13 -8
- package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +16 -8
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +216 -0
- package/lib/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
- package/lib/control/calendar/components/calendar-user2/index.cjs +14 -0
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +10 -5
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +26 -16
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +2 -2
- package/lib/control/calendar/components/interface/calendar-daily.cjs +8 -0
- package/lib/control/calendar/components/interface/calendar-user.cjs +8 -0
- package/lib/control/calendar/components/interface/calendar-week.cjs +8 -0
- package/lib/control/calendar/components/interface/custom-calendar.cjs +8 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +9 -2
- package/lib/control/dashboard/dashboard.cjs +9 -2
- package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +10 -2
- package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +10 -2
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +11 -2
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
- package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +19 -7
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +9 -1
- package/lib/control/data-view/data-view.cjs +40 -20
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.cjs +23 -13
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab.cjs +34 -16
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +20 -9
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/form/edit-form/edit-form.css +1 -1
- package/lib/control/form/form/form.cjs +10 -4
- package/lib/control/form/form-detail/form-button/form-button.cjs +10 -2
- package/lib/control/form/form-detail/form-button/form-button.css +1 -1
- package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +9 -2
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -2
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +17 -8
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +9 -2
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +15 -5
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +11 -4
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +18 -5
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +17 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +15 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +23 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +15 -5
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +13 -4
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +21 -6
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +11 -3
- package/lib/control/form/form-detail/form-page/form-page.cjs +15 -5
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +12 -3
- package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +9 -2
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +15 -5
- package/lib/control/form/search-form/advance-search/advance-search.cjs +1 -2
- package/lib/control/form/search-form/search-form.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +42 -16
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/lib/control/kanban/kanban.cjs +45 -23
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/list/list.cjs +34 -17
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +21 -11
- package/lib/control/map/map.css +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +31 -16
- package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +21 -9
- package/lib/control/search-bar/search-bar.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +15 -5
- package/lib/control/search-bar/search-groups/search-groups.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +92 -59
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +26 -10
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid/tree-grid.cjs +42 -10
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +22 -5
- package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +28 -9
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +19 -5
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +10 -6
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +14 -2
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -4
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +9 -1
- package/lib/editor/upload/use/use-custom-upload.cjs +62 -13
- package/lib/editor/upload/use/use-iview-upload.cjs +45 -2
- package/lib/index.cjs +2 -0
- package/lib/locale/index.cjs +29 -1
- package/lib/panel-component/panel-button/panel-button.css +1 -1
- package/lib/panel-component/panel-view-header/panel-view-header.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +9 -2
- package/lib/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/pagination/use-pagination.cjs +33 -1
- package/lib/util/path-util/path-util.cjs +16 -0
- package/package.json +5 -5
- package/dist/ibiz-markdown-editor-CQRvKzXG.js +0 -1
- package/dist/index-YyzbGEva.js +0 -339
- package/dist/map-chart-nwkjjlMK.js +0 -1
- package/dist/map-chart-user-D2lgUtGX.js +0 -1
- package/dist/wang-editor-BnRUlcfv.js +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent, ref, computed, watch } from 'vue';
|
|
2
|
-
import { hasEmptyPanelRenderer, IBizCustomRender, useControlController, useNamespace, useUIStore } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { hasEmptyPanelRenderer, IBizCustomRender, useControlController, useNamespace, useUIStore, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { CalendarController } from '@ibiz-template/runtime';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import { debounce } from 'lodash-es';
|
|
6
6
|
import { showTitle } from '@ibiz-template/core';
|
|
7
7
|
import { IBizCustomCalendar } from './components/custom-calendar/index.mjs';
|
|
8
|
+
import { IBizCalendarUser2 } from './components/calendar-user2/index.mjs';
|
|
8
9
|
import { isTimeBetween, useCalendarLegend, getWeekRange } from './calendar-util.mjs';
|
|
9
10
|
import '../../util/index.mjs';
|
|
10
11
|
import './calendar.css';
|
|
@@ -74,6 +75,10 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
74
75
|
const {
|
|
75
76
|
UIStore
|
|
76
77
|
} = useUIStore();
|
|
78
|
+
const {
|
|
79
|
+
semanticClass,
|
|
80
|
+
semanticStyle
|
|
81
|
+
} = useSemanticNode(c);
|
|
77
82
|
const {
|
|
78
83
|
getFontColor,
|
|
79
84
|
getBkColor,
|
|
@@ -90,15 +95,13 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
90
95
|
const result = !Object.values(c.loadMoreItems).some((item) => item.curPage < item.totalPage);
|
|
91
96
|
return result;
|
|
92
97
|
});
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
const legendType = ["DAY", "WEEK", "MONTH", "USER2"];
|
|
99
|
+
const legends = ref([]);
|
|
100
|
+
const onLegendClick = (item) => {
|
|
101
|
+
item.isShow = !item.isShow;
|
|
97
102
|
};
|
|
98
|
-
const legendItems = ref([]);
|
|
99
|
-
const legendType = ["DAY", "WEEK", "MONTH"];
|
|
100
103
|
const calcLegend = () => {
|
|
101
|
-
|
|
104
|
+
legends.value = c.state.legends.map((_item, index) => {
|
|
102
105
|
const tempItem = {
|
|
103
106
|
..._item,
|
|
104
107
|
isShow: true
|
|
@@ -190,24 +193,32 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
190
193
|
return false;
|
|
191
194
|
};
|
|
192
195
|
watch(() => c.state.selectedDate, (newVal, oldVal) => {
|
|
193
|
-
if (timeRangeComparison(newVal, oldVal))
|
|
196
|
+
if (timeRangeComparison(newVal, oldVal))
|
|
197
|
+
return;
|
|
198
|
+
c.load();
|
|
199
|
+
});
|
|
200
|
+
watch(() => c.state.timeRange, () => {
|
|
201
|
+
if (!c.state.isLoaded)
|
|
194
202
|
return;
|
|
195
|
-
}
|
|
196
203
|
c.load();
|
|
197
204
|
});
|
|
205
|
+
const onTimeRangeChange = (date) => {
|
|
206
|
+
c.state.timeRange = date;
|
|
207
|
+
};
|
|
198
208
|
const calcItemStyle = (data) => {
|
|
199
|
-
const _legend =
|
|
209
|
+
const _legend = legends.value.find((_item) => _item.id === data.itemType);
|
|
200
210
|
return {
|
|
201
211
|
color: data.color,
|
|
202
212
|
backgroundColor: data.bkColor,
|
|
203
213
|
["".concat(ns.cssVarBlockName("item-color"))]: data.color,
|
|
204
|
-
["".concat(ns.cssVarBlockName("item-active-border-color"))]: _legend == null ? void 0 : _legend.actBdrColor
|
|
214
|
+
["".concat(ns.cssVarBlockName("item-active-border-color"))]: _legend == null ? void 0 : _legend.actBdrColor,
|
|
215
|
+
...semanticStyle("item")
|
|
205
216
|
};
|
|
206
217
|
};
|
|
207
218
|
const calcCalendarItems = (date) => {
|
|
208
219
|
const weekRange = getWeekRange(date);
|
|
209
220
|
const calendarItems = c.state.items.filter((item) => {
|
|
210
|
-
const _legend =
|
|
221
|
+
const _legend = legends.value.find((legend) => legend.id === item.itemType);
|
|
211
222
|
if (_legend && !_legend.isShow)
|
|
212
223
|
return false;
|
|
213
224
|
if (!showDateRange.value) {
|
|
@@ -231,7 +242,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
231
242
|
});
|
|
232
243
|
}
|
|
233
244
|
return calendarItems.map((_item) => {
|
|
234
|
-
const targetLegend =
|
|
245
|
+
const targetLegend = legends.value.find((legendItem) => Object.is(legendItem.id, _item.itemType));
|
|
235
246
|
if (!targetLegend)
|
|
236
247
|
return _item;
|
|
237
248
|
if (!_item.bkColor)
|
|
@@ -377,9 +388,11 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
377
388
|
return {
|
|
378
389
|
c,
|
|
379
390
|
ns,
|
|
391
|
+
legends,
|
|
392
|
+
semanticClass,
|
|
393
|
+
semanticStyle,
|
|
380
394
|
curPopover,
|
|
381
395
|
calendarRef,
|
|
382
|
-
legendItems,
|
|
383
396
|
popoverValue,
|
|
384
397
|
showDateList,
|
|
385
398
|
showDateRange,
|
|
@@ -387,8 +400,9 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
387
400
|
disabledLodeMore,
|
|
388
401
|
selectDate,
|
|
389
402
|
calcItemStyle,
|
|
403
|
+
onLegendClick,
|
|
390
404
|
handleScrollLoad,
|
|
391
|
-
|
|
405
|
+
onTimeRangeChange,
|
|
392
406
|
calcCalendarItems,
|
|
393
407
|
onNodeContextmenu
|
|
394
408
|
};
|
|
@@ -402,7 +416,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
402
416
|
const findIndex = this.c.state.selectedData.findIndex((data) => {
|
|
403
417
|
return data.deData.srfkey === item.deData.srfkey;
|
|
404
418
|
});
|
|
405
|
-
const itemClass = [this.ns.b("item"), this.ns.is("active", findIndex !== -1), this.ns.is("begin-time", date && dayjs(date).isSame(item.beginTime, "day")), this.ns.is("hidden", this.showDateRange && !isTimeBetween({
|
|
419
|
+
const itemClass = [this.ns.b("item"), this.semanticClass("item"), this.ns.is("active", findIndex !== -1), this.ns.is("begin-time", date && dayjs(date).isSame(item.beginTime, "day")), this.ns.is("hidden", this.showDateRange && !isTimeBetween({
|
|
406
420
|
beginTime: item.beginTime,
|
|
407
421
|
endTime: item.endTime,
|
|
408
422
|
date
|
|
@@ -430,7 +444,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
430
444
|
const findIndex = this.c.state.selectedData.findIndex((data) => {
|
|
431
445
|
return data.deData.srfkey === item.deData.srfkey;
|
|
432
446
|
});
|
|
433
|
-
const itemClass = [this.ns.b("item"), this.ns.be("item", "default"), this.ns.is("active", findIndex !== -1), this.ns.is("begin-time", date && dayjs(date).isSame(item.beginTime, "day")), this.ns.is("hidden", this.showDateRange && !isTimeBetween({
|
|
447
|
+
const itemClass = [this.ns.b("item"), this.semanticClass("item"), this.ns.be("item", "default"), this.ns.is("active", findIndex !== -1), this.ns.is("begin-time", date && dayjs(date).isSame(item.beginTime, "day")), this.ns.is("hidden", this.showDateRange && !isTimeBetween({
|
|
434
448
|
beginTime: item.beginTime,
|
|
435
449
|
endTime: item.endTime,
|
|
436
450
|
date
|
|
@@ -469,7 +483,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
469
483
|
}, {
|
|
470
484
|
reference: () => {
|
|
471
485
|
return createVNode("span", {
|
|
472
|
-
"class": this.ns.b("more")
|
|
486
|
+
"class": [this.ns.b("more"), this.semanticClass("more")],
|
|
487
|
+
"style": this.semanticStyle("more")
|
|
473
488
|
}, ["+".concat(items.length - 1, " ").concat(ibiz.i18n.t("app.more"), "...")]);
|
|
474
489
|
},
|
|
475
490
|
default: () => {
|
|
@@ -489,11 +504,14 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
489
504
|
};
|
|
490
505
|
const renderElCalender = () => {
|
|
491
506
|
return createVNode("div", {
|
|
492
|
-
"class": [this.ns.b("content"), this.ns.is("show-date-range", this.showDateRange)]
|
|
507
|
+
"class": [this.ns.b("content"), this.semanticClass("content"), this.ns.is("show-date-range", this.showDateRange)],
|
|
508
|
+
"style": this.semanticStyle("content")
|
|
493
509
|
}, [createVNode(resolveComponent("el-calendar"), {
|
|
510
|
+
"ref": "calendarRef",
|
|
494
511
|
"modelValue": this.c.state.selectedDate,
|
|
495
512
|
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
496
|
-
"
|
|
513
|
+
"style": this.semanticStyle("month"),
|
|
514
|
+
"class": [this.ns.b("month"), this.semanticClass("month")]
|
|
497
515
|
}, {
|
|
498
516
|
header: ({
|
|
499
517
|
date
|
|
@@ -502,26 +520,22 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
502
520
|
return [createVNode("span", {
|
|
503
521
|
"class": this.ns.b("content-title")
|
|
504
522
|
}, [date]), createVNode("div", {
|
|
505
|
-
"
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
let label = _legend.name;
|
|
509
|
-
const _model = (_a = this.c.model.sysCalendarItems) == null ? void 0 : _a.find((_calendarItem) => _calendarItem.id === _legend.id);
|
|
510
|
-
if (_model == null ? void 0 : _model.nameLanguageRes) {
|
|
511
|
-
label = ibiz.i18n.t(_model.nameLanguageRes.lanResTag, _model.name);
|
|
512
|
-
}
|
|
523
|
+
"style": this.semanticStyle("legend"),
|
|
524
|
+
"class": [this.ns.b("legend"), this.semanticClass("legend")]
|
|
525
|
+
}, [this.legends && this.legends.length > 1 && this.legends.map((legend) => {
|
|
513
526
|
return createVNode("div", {
|
|
514
|
-
"class": [this.ns.be("legend", "item")],
|
|
515
|
-
"
|
|
527
|
+
"class": [this.ns.be("legend", "item"), this.semanticClass("legend.item")],
|
|
528
|
+
"style": this.semanticStyle("legend.item"),
|
|
529
|
+
"onClick": () => this.onLegendClick(legend)
|
|
516
530
|
}, [createVNode("div", {
|
|
517
531
|
"class": this.ns.bem("legend", "item", "tip"),
|
|
518
532
|
"style": {
|
|
519
|
-
background:
|
|
520
|
-
color:
|
|
533
|
+
background: legend.isShow ? legend == null ? void 0 : legend.bkcolor : "var(".concat(this.ns.cssVarName("color-disabled-bg"), ")"),
|
|
534
|
+
color: legend == null ? void 0 : legend.color
|
|
521
535
|
}
|
|
522
536
|
}, null), createVNode("div", {
|
|
523
537
|
"class": this.ns.bem("legend", "item", "text")
|
|
524
|
-
}, [
|
|
538
|
+
}, [legend.name])]);
|
|
525
539
|
})]), createVNode("div", {
|
|
526
540
|
"class": this.ns.b("content-header")
|
|
527
541
|
}, [createVNode(resolveComponent("el-date-picker"), {
|
|
@@ -598,25 +612,28 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
598
612
|
default: () => [noDataSlots]
|
|
599
613
|
});
|
|
600
614
|
};
|
|
601
|
-
const
|
|
602
|
-
const slots = {};
|
|
615
|
+
const renderSlots = () => {
|
|
603
616
|
const {
|
|
604
|
-
sysCalendarItems
|
|
617
|
+
sysCalendarItems = []
|
|
605
618
|
} = this.c.model;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
return
|
|
619
|
+
return {
|
|
620
|
+
event: ({
|
|
621
|
+
data
|
|
622
|
+
}) => {
|
|
623
|
+
const model = sysCalendarItems.find((item) => data.itemType === item.itemType);
|
|
624
|
+
if (model == null ? void 0 : model.layoutPanel)
|
|
625
|
+
return renderPanelItem(data, model.layoutPanel);
|
|
626
|
+
return renderDefaultItem(data);
|
|
614
627
|
}
|
|
615
|
-
return renderDefaultItem(data);
|
|
616
628
|
};
|
|
629
|
+
};
|
|
630
|
+
const renderWeekDay = () => {
|
|
631
|
+
let _slot6;
|
|
617
632
|
return createVNode("div", {
|
|
618
633
|
"class": this.ns.b("content")
|
|
619
634
|
}, [createVNode(IBizCustomCalendar, {
|
|
635
|
+
"semanticClass": this.semanticClass,
|
|
636
|
+
"semanticStyle": this.semanticStyle,
|
|
620
637
|
"modelValue": this.c.state.selectedDate,
|
|
621
638
|
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
622
639
|
"showDetail": this.c.state.showDetail,
|
|
@@ -624,7 +641,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
624
641
|
"ref": "calendarRef",
|
|
625
642
|
"viewType": this.c.model.calendarStyle,
|
|
626
643
|
"events": this.c.state.items,
|
|
627
|
-
"legends": this.
|
|
644
|
+
"legends": this.legends,
|
|
628
645
|
"multiple": !this.c.state.singleSelect,
|
|
629
646
|
"selectedData": this.c.state.selectedData,
|
|
630
647
|
"onEventClick": (value) => {
|
|
@@ -652,8 +669,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
652
669
|
if (item && evt)
|
|
653
670
|
this.onNodeContextmenu(item, evt);
|
|
654
671
|
}
|
|
655
|
-
}, _isSlot(
|
|
656
|
-
default: () => [
|
|
672
|
+
}, _isSlot(_slot6 = renderSlots()) ? _slot6 : {
|
|
673
|
+
default: () => [_slot6]
|
|
657
674
|
})]);
|
|
658
675
|
};
|
|
659
676
|
const renderTimeLine = () => {
|
|
@@ -661,7 +678,10 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
661
678
|
"ref": "infiniteScroll",
|
|
662
679
|
"class": this.ns.b("timeline-content"),
|
|
663
680
|
"onScroll": debounce(this.handleScrollLoad, 300)
|
|
664
|
-
}, [createVNode(resolveComponent("el-timeline"),
|
|
681
|
+
}, [createVNode(resolveComponent("el-timeline"), {
|
|
682
|
+
"style": this.semanticStyle("timeline"),
|
|
683
|
+
"class": [this.ns.e("timeline"), this.semanticClass("timeline")]
|
|
684
|
+
}, {
|
|
665
685
|
default: () => [this.c.state.items.length > 0 ? this.c.state.items.map((item) => {
|
|
666
686
|
var _a;
|
|
667
687
|
const model = (_a = this.c.model.sysCalendarItems) == null ? void 0 : _a.find((calendarItems) => {
|
|
@@ -681,6 +701,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
681
701
|
})]);
|
|
682
702
|
};
|
|
683
703
|
const renderCalendar = () => {
|
|
704
|
+
let _slot7;
|
|
684
705
|
switch (this.c.model.calendarStyle) {
|
|
685
706
|
case "TIMELINE":
|
|
686
707
|
return renderTimeLine();
|
|
@@ -688,6 +709,19 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
688
709
|
case "DAY":
|
|
689
710
|
case "USER":
|
|
690
711
|
return renderWeekDay();
|
|
712
|
+
case "USER2":
|
|
713
|
+
return createVNode(IBizCalendarUser2, {
|
|
714
|
+
"legends": this.legends,
|
|
715
|
+
"items": this.c.state.items,
|
|
716
|
+
"semanticClass": this.semanticClass,
|
|
717
|
+
"semanticStyle": this.semanticStyle,
|
|
718
|
+
"timeRange": this.c.state.timeRange,
|
|
719
|
+
"title": this.c.state.calendarTitle,
|
|
720
|
+
"onLegendClick": this.onLegendClick,
|
|
721
|
+
"onTimeRangeChange": this.onTimeRangeChange
|
|
722
|
+
}, _isSlot(_slot7 = renderSlots()) ? _slot7 : {
|
|
723
|
+
default: () => [_slot7]
|
|
724
|
+
});
|
|
691
725
|
case "MONTH":
|
|
692
726
|
default:
|
|
693
727
|
return renderElCalender();
|
|
@@ -700,7 +734,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
700
734
|
var _a;
|
|
701
735
|
return [createVNode(resolveComponent("iBizControlBase"), {
|
|
702
736
|
"controller": this.c,
|
|
703
|
-
"class": this.ns.e((_a = this.c.model.calendarStyle) == null ? void 0 : _a.toLowerCase())
|
|
737
|
+
"class": [this.semanticClass("root"), this.ns.e((_a = this.c.model.calendarStyle) == null ? void 0 : _a.toLowerCase())],
|
|
738
|
+
"style": this.semanticStyle("root")
|
|
704
739
|
}, {
|
|
705
740
|
default: () => [renderCalendar(), this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
706
741
|
"class": this.ns.e("nav-icon"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-calendar-daily{width:
|
|
1
|
+
.ibiz-calendar-daily{--ibiz-control-calendar-day-header-height:58px;--ibiz-control-calendar-day-header-text-color:var(--ibiz-color-text-3);--ibiz-control-calendar-day-item-height:22px;--ibiz-control-calendar-day-item-active-border-color:var(--ibiz-color-primary);--ibiz-control-calendar-day-item-bg-color:var(--ibiz-color-tertiary-light-hover);--ibiz-control-calendar-day-current-width:48px;--ibiz-control-calendar-day-current-height:24px;--ibiz-control-calendar-day-current-border-radius:4px;--ibiz-control-calendar-day-current-bg-color:var(--ibiz-color-primary);--ibiz-control-calendar-day-current-text-color:var(--ibiz-color-primary-text);display:flex;flex:1;flex-direction:column;width:100%;height:100%;overflow:hidden}.ibiz-calendar-daily__calendar-daily__head{position:relative;z-index:100;display:flex;width:100%;height:var(--ibiz-control-calendar-day-header-height);min-height:var(--ibiz-control-calendar-day-header-height);padding-bottom:0}.ibiz-calendar-daily__allday-info{display:flex;align-items:center;min-width:90px;height:100%;padding-left:40px;overflow:hidden;color:var(--ibiz-control-calendar-day-header-text-color)}.ibiz-calendar-daily__allday-info--work-items{width:100%;height:100%;padding-top:5px;overflow:hidden}.ibiz-calendar-daily__allday-info--work-items-scroll{height:100%;overflow:hidden scroll}.ibiz-calendar-daily__allday-info--work-items-body{height:auto}.ibiz-calendar-daily__allday-info--work-items-body:has(.ibiz-no-data){height:100%}.ibiz-calendar-daily__allday-info--work-items-body:has(.ibiz-no-data) .ibiz-no-data{min-width:100%;min-height:100%}.ibiz-calendar-daily__allday-info--work-items-body:has(.ibiz-no-data) .ibiz-no-data .el-empty__description{margin:0}.ibiz-calendar-daily__allday-info--event-box{width:100%;height:var(--ibiz-control-calendar-day-item-height);padding:0 8px;margin-top:4px;line-height:var(--ibiz-control-calendar-day-item-height)}.ibiz-calendar-daily__allday-info--event-box:nth-child(1){margin-top:0}.ibiz-calendar-daily__allday-info--event-content{position:relative;display:block;width:100%;height:100%;text-align:left;cursor:pointer;background-color:var(--ibiz-control-calendar-day-item-bg-color);border:none;border-radius:4px;outline:0}.ibiz-calendar-daily__allday-info--event-content.is-selected-event{padding-right:20px}.ibiz-calendar-daily__allday-info--event-summary{width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-calendar-daily__allday-info--event-icon{margin-right:6px}.ibiz-calendar-daily__allday-info--event-name{margin-right:6px}.ibiz-calendar-daily__allday-info--time-range{margin-right:6px}.ibiz-calendar-daily__allday-info--check{position:absolute;top:50%;right:6px;color:var(--ibiz-control-calendar-day-active-color);transform:translate(0,-50%)}.ibiz-calendar-daily__allday-resize-line{width:100%;height:3px;background-color:var(--ibiz-control-calendar-day-border-color)}.ibiz-calendar-daily__resizable-handle{position:absolute;bottom:-4px;display:flex;align-items:center;width:100%;height:10px;cursor:row-resize}.ibiz-calendar-daily__scroll-area{flex:1;overflow:hidden scroll}.ibiz-calendar-daily__time-pane{position:relative;display:flex;flex:1 1 0%;width:calc(100% - 5px);height:auto}.ibiz-calendar-daily__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-day-border-color)}.ibiz-calendar-daily__time-pane--time-label{height:22px;margin-top:38px;text-align:left}.ibiz-calendar-daily__time-pane--time-label:nth-child(1){height:22px;margin-top:22px}.ibiz-calendar-daily__time-pane--time-columns{position:relative;flex:1;padding-bottom:59px}.ibiz-calendar-daily__time-pane--time-column{height:60px;border-top:1px dashed var(--ibiz-control-calendar-day-border-color)}.ibiz-calendar-daily__time-pane--time-column:first-child{border-top:none}.ibiz-calendar-daily__time-pane--time-column-last{border-bottom:1px dashed var(--ibiz-control-calendar-day-border-color)}.ibiz-calendar-daily__time-pane--event-timed-container{position:absolute;top:0;width:100%;height:100%;overflow:hidden}.ibiz-calendar-daily__time-pane--container-scroll{position:relative;top:0;width:auto;height:100%;overflow:auto;overflow:auto hidden}.ibiz-calendar-daily__time-pane--event-box{position:absolute;width:auto;height:auto;padding-left:4px}.ibiz-calendar-daily__time-pane--event-content{position:relative;z-index:3;width:100%;height:100%;min-height:22px;padding:8px;overflow:hidden;line-height:100%;text-align:left;cursor:pointer;border:none;outline:0}.ibiz-calendar-daily__time-pane--event-content.is-selected-event{border:1px solid var(--ibiz-control-calendar-day-item-active-border-color)}.ibiz-calendar-daily__time-pane--event-summary{width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-calendar-daily__time-pane--event-summary>span{margin-right:4px}.ibiz-calendar-daily__time-pane--current-time{position:absolute;top:38px;left:-3px;display:flex;align-items:center;width:calc(100% - 36px);height:2px;margin-left:40px;background-color:var(--ibiz-control-calendar-day-current-bg-color)}.ibiz-calendar-daily__time-pane--current-time-label{width:var(--ibiz-control-calendar-day-current-width);height:var(--ibiz-control-calendar-day-current-height);line-height:var(--ibiz-control-calendar-day-current-height);color:var(--ibiz-control-calendar-day-current-text-color);text-align:center;background-color:var(--ibiz-control-calendar-day-current-bg-color);border:none;border-radius:var(--ibiz-control-calendar-day-current-border-radius)}.ibiz-calendar-daily__event-popover{width:auto;height:auto;padding:0}.ibiz-calendar-daily__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-daily__event-popover:has(.ibiz-control-calendar-item-default){display:none!important}.ibiz-calendar-daily__event-popover--body{width:auto;height:auto;overflow:hidden}.ibiz-calendar-daily__event-popover--scroll{width:auto;min-width:200px;height:auto;max-height:80%;overflow:auto;pointer-events:none}.ibiz-calendar-daily__event-popover--scroll .ibiz-control-calendar-item:last-child{margin-bottom:0}.ibiz-calendar-daily__event-popover--scroll .ibiz-control-calendar-item.is-active{background-color:transparent;border-color:transparent}
|
|
@@ -89,8 +89,11 @@ const CalendarDaily = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
const component = renderPopoverContent(event);
|
|
90
90
|
return createVNode("div", {
|
|
91
91
|
"key": index,
|
|
92
|
-
"
|
|
93
|
-
|
|
92
|
+
"style": {
|
|
93
|
+
...eventBoxStyle,
|
|
94
|
+
...props.semanticStyle("day.".concat(location === "header" ? "header.item" : "body.item"))
|
|
95
|
+
},
|
|
96
|
+
"class": [ns.em(classEName, "event-box"), props.semanticClass("day.".concat(location === "header" ? "header.item" : "body.item"))]
|
|
94
97
|
}, [createVNode("button", {
|
|
95
98
|
"class": [ns.em(classEName, "event-content"), event.isSelectedEvent ? "is-selected-event" : "", event.classname],
|
|
96
99
|
"onClick": () => {
|
|
@@ -121,7 +124,8 @@ const CalendarDaily = /* @__PURE__ */ defineComponent({
|
|
|
121
124
|
};
|
|
122
125
|
const renderHeader = () => {
|
|
123
126
|
return createVNode("div", {
|
|
124
|
-
"
|
|
127
|
+
"style": props.semanticStyle("day.header"),
|
|
128
|
+
"class": [ns.e("calendar-daily__head"), props.semanticClass("day.header")],
|
|
125
129
|
"ref": (el) => {
|
|
126
130
|
resizableHand.value = el;
|
|
127
131
|
}
|
|
@@ -152,8 +156,9 @@ const CalendarDaily = /* @__PURE__ */ defineComponent({
|
|
|
152
156
|
};
|
|
153
157
|
const renderContent = () => {
|
|
154
158
|
return createVNode("div", {
|
|
155
|
-
"
|
|
156
|
-
"
|
|
159
|
+
"onMousemove": contentMousemove,
|
|
160
|
+
"style": props.semanticStyle("day.body"),
|
|
161
|
+
"class": [ns.e("scroll-area"), props.semanticClass("day.body")]
|
|
157
162
|
}, [createVNode("div", {
|
|
158
163
|
"class": ns.e("time-pane")
|
|
159
164
|
}, [createVNode("div", {
|
|
@@ -189,10 +194,10 @@ const CalendarDaily = /* @__PURE__ */ defineComponent({
|
|
|
189
194
|
};
|
|
190
195
|
return renderEventItem("content", eventBoxStyle, eventContentStyle, event, index, "", "time-pane");
|
|
191
196
|
})])])]), isToday(props == null ? void 0 : props.selectedDay, /* @__PURE__ */ new Date()) ? createVNode("div", {
|
|
192
|
-
"
|
|
193
|
-
"style": {
|
|
197
|
+
"style": [props.semanticStyle("day.current"), {
|
|
194
198
|
top: "".concat(curTimeTop.value, "px")
|
|
195
|
-
}
|
|
199
|
+
}],
|
|
200
|
+
"class": [ns.em("time-pane", "current-time"), props.semanticClass("day.current")]
|
|
196
201
|
}, [createVNode("div", {
|
|
197
202
|
"class": ns.em("time-pane", "current-time-label")
|
|
198
203
|
}, [curTimeVal.value])]) : ""])]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-calendar-user{--ibiz-calendar-user-cell-min-height:60px;--ibiz-calendar-user-cell-min-width:114px;--ibiz-calendar-user-head-
|
|
1
|
+
.ibiz-calendar-user{--ibiz-control-calendar-user-margin:var(--ibiz-spacing-base);--ibiz-control-calendar-user-cell-min-height:60px;--ibiz-control-calendar-user-cell-min-width:114px;--ibiz-control-calendar-user-cell-head-min-width:75px;--ibiz-control-calendar-user-cell-border-color:var(--ibiz-color-tertiary);--ibiz-control-calendar-user-cell-padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base);--ibiz-control-calendar-user-item-active-color:var(--ibiz-color-primary-text);--ibiz-control-calendar-user-item-active-bg-color:var(--ibiz-color-primary);display:flex;flex-direction:column;width:calc(100% - var(--ibiz-control-calendar-user-margin) * 2);height:calc(100% - var(--ibiz-control-calendar-user-margin) * 2);margin:var(--ibiz-control-calendar-user-margin);overflow:auto hidden}.ibiz-calendar-user__row{display:flex}.ibiz-calendar-user__cell{display:flex;flex:1;align-items:center;justify-content:center;min-height:var(--ibiz-control-calendar-user-cell-min-height);padding:var(--ibiz-control-calendar-user-cell-padding);border-bottom:1px solid var(--ibiz-control-calendar-user-cell-border-color);border-left:1px solid var(--ibiz-control-calendar-user-cell-border-color)}.ibiz-calendar-user__cell:first-child{min-width:var(--ibiz-control-calendar-user-cell-head-min-width)}.ibiz-calendar-user__cell:not(:first-child){min-width:var(--ibiz-control-calendar-user-cell-min-width)}.ibiz-calendar-user__cell:last-child{border-right:1px solid var(--ibiz-control-calendar-user-cell-border-color)}.ibiz-calendar-user__cell--top{border-top:1px solid var(--ibiz-control-calendar-user-cell-border-color)}.ibiz-calendar-user__black{width:100%;height:100%}.ibiz-calendar-user__custom-user-popover{max-height:300px;overflow:auto}.ibiz-calendar-user .ibiz-control-calendar-item{height:auto}.ibiz-calendar-user .ibiz-control-calendar-item.is-active{color:var(--ibiz-control-calendar-user-item-active-color);background-color:var(--ibiz-control-calendar-user-item-active-bg-color)}.ibiz-calendar-user__more{flex-shrink:0;padding-left:var(--ibiz-spacing-tight);overflow:hidden;font-size:var(--ibiz-control-calendar-more-font-size);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:var(--ibiz-control-calendar-more-border-radius)}.ibiz-calendar-user__more:hover{background-color:var(--ibiz-control-calendar-more-hover-bg-color)}.ibiz-calendar-user__header{flex-shrink:0;width:100%;min-width:-moz-fit-content;min-width:fit-content;overflow:hidden scroll}.ibiz-calendar-user__body{flex:1;width:100%;min-width:-moz-fit-content;min-width:fit-content;overflow:hidden scroll}
|
|
@@ -57,7 +57,8 @@ const CalendarUser = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
}, {
|
|
58
58
|
reference: () => {
|
|
59
59
|
return createVNode("span", {
|
|
60
|
-
"
|
|
60
|
+
"style": props.semanticStyle("user.more"),
|
|
61
|
+
"class": [ns.e("more"), props.semanticClass("user.more")]
|
|
61
62
|
}, ["+".concat(items.length - 1, " ").concat(ibiz.i18n.t("app.more"), "...")]);
|
|
62
63
|
},
|
|
63
64
|
default: () => {
|
|
@@ -83,36 +84,43 @@ const CalendarUser = /* @__PURE__ */ defineComponent({
|
|
|
83
84
|
};
|
|
84
85
|
const renderWeekHeader = () => {
|
|
85
86
|
return createVNode("div", {
|
|
86
|
-
"
|
|
87
|
+
"style": props.semanticStyle("user.header"),
|
|
88
|
+
"class": [ns.e("header"), props.semanticClass("user.header")]
|
|
87
89
|
}, [createVNode("div", {
|
|
88
90
|
"class": [ns.e("row"), ns.em("header", "row")]
|
|
89
91
|
}, [createVNode("div", {
|
|
90
92
|
"class": [ns.e("cell"), ns.em("cell", "top"), ns.em("header", "cell")]
|
|
91
93
|
}, null), weekday.value.map((item) => {
|
|
92
94
|
return createVNode("div", {
|
|
93
|
-
"class": [ns.e("cell"), ns.em("cell", "top"), ns.em("header", "cell")]
|
|
95
|
+
"class": [ns.e("cell"), ns.em("cell", "top"), ns.em("header", "cell"), props.semanticClass("user.header.cell")],
|
|
96
|
+
"style": props.semanticStyle("user.header.cell")
|
|
94
97
|
}, [item.text, item.date]);
|
|
95
98
|
})]), createVNode("div", {
|
|
96
99
|
"class": [ns.e("row"), ns.em("header", "row")]
|
|
97
100
|
}, [createVNode("div", {
|
|
98
|
-
"class": [ns.e("cell"), ns.em("header", "cell")]
|
|
101
|
+
"class": [ns.e("cell"), ns.em("header", "cell"), props.semanticClass("user.header.cell")],
|
|
102
|
+
"style": props.semanticStyle("user.header.cell")
|
|
99
103
|
}, [ibiz.i18n.t("control.calendar.calendardaily.tip")]), weekday.value.map((item) => {
|
|
100
104
|
return createVNode("div", {
|
|
101
|
-
"class": [ns.e("cell"), ns.em("header", "cell")]
|
|
105
|
+
"class": [ns.e("cell"), ns.em("header", "cell"), props.semanticClass("user.header.cell")],
|
|
106
|
+
"style": props.semanticStyle("user.header.cell")
|
|
102
107
|
}, [renderEvent(item)]);
|
|
103
108
|
})])]);
|
|
104
109
|
};
|
|
105
110
|
const renderWeekContent = () => {
|
|
106
111
|
return createVNode("div", {
|
|
107
|
-
"class": ns.e("body")
|
|
112
|
+
"class": [ns.e("body"), props.semanticClass("user.body")],
|
|
113
|
+
"style": props.semanticStyle("user.body")
|
|
108
114
|
}, [timeList.value.map((item) => {
|
|
109
115
|
return createVNode("div", {
|
|
110
116
|
"class": [ns.e("row"), ns.em("body", "row")]
|
|
111
117
|
}, [createVNode("div", {
|
|
112
|
-
"class": [ns.e("cell"), ns.em("body", "cell")]
|
|
118
|
+
"class": [ns.e("cell"), ns.em("body", "cell"), props.semanticClass("user.body.cell")],
|
|
119
|
+
"style": props.semanticStyle("user.body.cell")
|
|
113
120
|
}, [item.text]), weekday.value.map((day) => {
|
|
114
121
|
return createVNode("div", {
|
|
115
|
-
"class": [ns.e("cell"), ns.em("body", "cell")]
|
|
122
|
+
"class": [ns.e("cell"), ns.em("body", "cell"), props.semanticClass("user.body.cell")],
|
|
123
|
+
"style": props.semanticStyle("user.body.cell")
|
|
116
124
|
}, [renderEvent(day, item)]);
|
|
117
125
|
})]);
|
|
118
126
|
})]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-calendar-user2{--ibiz-control-calendar-user2-gap:var(--ibiz-spacing-tight);--ibiz-control-calendar-user2-padding:var(--ibiz-spacing-tight);--ibiz-control-calendar-user2-border-color:var(--ibiz-control-calendar-border-color);--ibiz-control-calendar-user2-dot-small-size:4px;--ibiz-control-calendar-user2-dot-default-size:16px;--ibiz-control-calendar-user2-dot-border-radius:50%;--ibiz-control-calendar-user2-cell-size:50px;--ibiz-control-calendar-user2-cell-padding:var(--ibiz-spacing-none);display:flex;flex-direction:column;gap:var(--ibiz-control-calendar-user2-gap);width:100%;height:100%}.ibiz-calendar-user2__header{display:flex;flex-shrink:0;align-items:center;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);border-bottom:1px solid var(--ibiz-control-calendar-user2-border-color)}.ibiz-calendar-user2__header--left{flex-shrink:0;min-width:300px}.ibiz-calendar-user2__header--legend{display:flex;flex-grow:1;gap:var(--ibiz-control-calendar-user2-gap);align-items:center;justify-content:center}.ibiz-calendar-user2__header--right{flex-shrink:0}.ibiz-calendar-user2__body{display:flex;flex-grow:1;flex-wrap:wrap;gap:var(--ibiz-control-calendar-user2-gap);overflow:auto}.ibiz-calendar-user2__month-calendar{width:366px;border:1px solid var(--ibiz-control-calendar-user2-border-color)}.ibiz-calendar-user2__month-calendar .el-calendar__header{display:flex;justify-content:center}.ibiz-calendar-user2__month-calendar .el-calendar__body{padding:var(--ibiz-control-calendar-user2-padding)}.ibiz-calendar-user2__month-calendar .el-calendar-table .el-calendar-day{width:var(--ibiz-control-calendar-user2-cell-size);height:var(--ibiz-control-calendar-user2-cell-size);padding:var(--ibiz-control-calendar-user2-cell-none)}.ibiz-calendar-user2__month-calendar .el-calendar-table td.is-selected{background-color:transparent}.ibiz-calendar-user2__date{display:flex;flex-direction:column;gap:var(--ibiz-spacing-extra-tight);align-items:center;justify-content:center;width:100%;height:100%;padding:4px}.ibiz-calendar-user2__date--day{flex-shrink:0}.ibiz-calendar-user2__date--mark{display:flex;flex-grow:1;flex-wrap:wrap;gap:var(--ibiz-spacing-extra-tight);justify-content:center;overflow:hidden}.ibiz-calendar-user2__dot{width:var(--ibiz-control-calendar-user2-dot-small-size);height:var(--ibiz-control-calendar-user2-dot-small-size);border-radius:var(--ibiz-control-calendar-user2-dot-border-radius)}.ibiz-calendar-user2__legend-item{display:flex;gap:var(--ibiz-control-calendar-legend-gap);align-items:center;cursor:pointer}.ibiz-calendar-user2__legend-item--dot{width:var(--ibiz-control-calendar-user2-dot-default-size);height:var(--ibiz-control-calendar-user2-dot-default-size);border-radius:var(--ibiz-control-calendar-user2-dot-border-radius)}.ibiz-calendar-user2__popover{max-height:300px;overflow:auto;--ibiz-control-calendar-user2-item-active-color:var(--ibiz-color-primary-text);--ibiz-control-calendar-user2-item-active-bg-color:var(--ibiz-color-primary)}.ibiz-calendar-user2__event .ibiz-control-calendar-item{width:126px;height:auto}.ibiz-calendar-user2__event .ibiz-control-calendar-item.is-active{color:var(--ibiz-control-calendar-user2-item-active-color);background-color:var(--ibiz-control-calendar-user2-item-active-bg-color)}
|