@ibiz-template/vue3-components 0.7.41-alpha.98 → 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-STEFwkv3.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-Dchfm22O.js → wang-editor-Ct_jRlrK.js} +1 -1
- package/dist/{xlsx-util-D-uPcLFr.js → xlsx-util-Bi2h7Kj8.js} +1 -1
- 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 +39 -3
- package/es/common/rawitem/rawitem.css +1 -1
- 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.css +1 -1
- package/es/control/calendar/calendar.mjs +34 -13
- 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-flatten/calendar-flatten.mjs → calendar-user2/calendar-user2.mjs} +27 -13
- 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 +25 -15
- 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.css +1 -1
- package/es/control/grid/grid/grid.mjs +15 -11
- 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/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/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 +39 -3
- package/lib/common/pagination/pagination.css +1 -1
- 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.cjs +33 -12
- 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-flatten/calendar-flatten.cjs → calendar-user2/calendar-user2.cjs} +27 -13
- 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 +25 -15
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- 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.cjs +14 -10
- package/lib/control/grid/grid/grid.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/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/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 +4 -4
- package/dist/ibiz-markdown-editor-CQRvKzXG.js +0 -1
- package/dist/index-DSNJCnK2.js +0 -339
- package/dist/map-chart-nwkjjlMK.js +0 -1
- package/dist/map-chart-user-D2lgUtGX.js +0 -1
- package/es/control/calendar/components/calendar-flatten/calendar-flatten.css +0 -1
- package/es/control/calendar/components/calendar-flatten/index.mjs +0 -9
- package/lib/control/calendar/components/calendar-flatten/calendar-flatten.css +0 -1
- package/lib/control/calendar/components/calendar-flatten/index.cjs +0 -14
|
@@ -1,11 +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 {
|
|
8
|
+
import { IBizCalendarUser2 } from './components/calendar-user2/index.mjs';
|
|
9
9
|
import { isTimeBetween, useCalendarLegend, getWeekRange } from './calendar-util.mjs';
|
|
10
10
|
import '../../util/index.mjs';
|
|
11
11
|
import './calendar.css';
|
|
@@ -75,6 +75,10 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
const {
|
|
76
76
|
UIStore
|
|
77
77
|
} = useUIStore();
|
|
78
|
+
const {
|
|
79
|
+
semanticClass,
|
|
80
|
+
semanticStyle
|
|
81
|
+
} = useSemanticNode(c);
|
|
78
82
|
const {
|
|
79
83
|
getFontColor,
|
|
80
84
|
getBkColor,
|
|
@@ -207,7 +211,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
207
211
|
color: data.color,
|
|
208
212
|
backgroundColor: data.bkColor,
|
|
209
213
|
["".concat(ns.cssVarBlockName("item-color"))]: data.color,
|
|
210
|
-
["".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")
|
|
211
216
|
};
|
|
212
217
|
};
|
|
213
218
|
const calcCalendarItems = (date) => {
|
|
@@ -384,6 +389,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
384
389
|
c,
|
|
385
390
|
ns,
|
|
386
391
|
legends,
|
|
392
|
+
semanticClass,
|
|
393
|
+
semanticStyle,
|
|
387
394
|
curPopover,
|
|
388
395
|
calendarRef,
|
|
389
396
|
popoverValue,
|
|
@@ -409,7 +416,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
409
416
|
const findIndex = this.c.state.selectedData.findIndex((data) => {
|
|
410
417
|
return data.deData.srfkey === item.deData.srfkey;
|
|
411
418
|
});
|
|
412
|
-
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({
|
|
413
420
|
beginTime: item.beginTime,
|
|
414
421
|
endTime: item.endTime,
|
|
415
422
|
date
|
|
@@ -437,7 +444,7 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
437
444
|
const findIndex = this.c.state.selectedData.findIndex((data) => {
|
|
438
445
|
return data.deData.srfkey === item.deData.srfkey;
|
|
439
446
|
});
|
|
440
|
-
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({
|
|
441
448
|
beginTime: item.beginTime,
|
|
442
449
|
endTime: item.endTime,
|
|
443
450
|
date
|
|
@@ -476,7 +483,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
476
483
|
}, {
|
|
477
484
|
reference: () => {
|
|
478
485
|
return createVNode("span", {
|
|
479
|
-
"class": this.ns.b("more")
|
|
486
|
+
"class": [this.ns.b("more"), this.semanticClass("more")],
|
|
487
|
+
"style": this.semanticStyle("more")
|
|
480
488
|
}, ["+".concat(items.length - 1, " ").concat(ibiz.i18n.t("app.more"), "...")]);
|
|
481
489
|
},
|
|
482
490
|
default: () => {
|
|
@@ -496,11 +504,14 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
496
504
|
};
|
|
497
505
|
const renderElCalender = () => {
|
|
498
506
|
return createVNode("div", {
|
|
499
|
-
"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")
|
|
500
509
|
}, [createVNode(resolveComponent("el-calendar"), {
|
|
510
|
+
"ref": "calendarRef",
|
|
501
511
|
"modelValue": this.c.state.selectedDate,
|
|
502
512
|
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
503
|
-
"
|
|
513
|
+
"style": this.semanticStyle("month"),
|
|
514
|
+
"class": [this.ns.b("month"), this.semanticClass("month")]
|
|
504
515
|
}, {
|
|
505
516
|
header: ({
|
|
506
517
|
date
|
|
@@ -509,10 +520,12 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
509
520
|
return [createVNode("span", {
|
|
510
521
|
"class": this.ns.b("content-title")
|
|
511
522
|
}, [date]), createVNode("div", {
|
|
512
|
-
"
|
|
523
|
+
"style": this.semanticStyle("legend"),
|
|
524
|
+
"class": [this.ns.b("legend"), this.semanticClass("legend")]
|
|
513
525
|
}, [this.legends && this.legends.length > 1 && this.legends.map((legend) => {
|
|
514
526
|
return createVNode("div", {
|
|
515
|
-
"class": [this.ns.be("legend", "item")],
|
|
527
|
+
"class": [this.ns.be("legend", "item"), this.semanticClass("legend.item")],
|
|
528
|
+
"style": this.semanticStyle("legend.item"),
|
|
516
529
|
"onClick": () => this.onLegendClick(legend)
|
|
517
530
|
}, [createVNode("div", {
|
|
518
531
|
"class": this.ns.bem("legend", "item", "tip"),
|
|
@@ -619,6 +632,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
619
632
|
return createVNode("div", {
|
|
620
633
|
"class": this.ns.b("content")
|
|
621
634
|
}, [createVNode(IBizCustomCalendar, {
|
|
635
|
+
"semanticClass": this.semanticClass,
|
|
636
|
+
"semanticStyle": this.semanticStyle,
|
|
622
637
|
"modelValue": this.c.state.selectedDate,
|
|
623
638
|
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
624
639
|
"showDetail": this.c.state.showDetail,
|
|
@@ -663,7 +678,10 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
663
678
|
"ref": "infiniteScroll",
|
|
664
679
|
"class": this.ns.b("timeline-content"),
|
|
665
680
|
"onScroll": debounce(this.handleScrollLoad, 300)
|
|
666
|
-
}, [createVNode(resolveComponent("el-timeline"),
|
|
681
|
+
}, [createVNode(resolveComponent("el-timeline"), {
|
|
682
|
+
"style": this.semanticStyle("timeline"),
|
|
683
|
+
"class": [this.ns.e("timeline"), this.semanticClass("timeline")]
|
|
684
|
+
}, {
|
|
667
685
|
default: () => [this.c.state.items.length > 0 ? this.c.state.items.map((item) => {
|
|
668
686
|
var _a;
|
|
669
687
|
const model = (_a = this.c.model.sysCalendarItems) == null ? void 0 : _a.find((calendarItems) => {
|
|
@@ -692,9 +710,11 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
692
710
|
case "USER":
|
|
693
711
|
return renderWeekDay();
|
|
694
712
|
case "USER2":
|
|
695
|
-
return createVNode(
|
|
713
|
+
return createVNode(IBizCalendarUser2, {
|
|
696
714
|
"legends": this.legends,
|
|
697
715
|
"items": this.c.state.items,
|
|
716
|
+
"semanticClass": this.semanticClass,
|
|
717
|
+
"semanticStyle": this.semanticStyle,
|
|
698
718
|
"timeRange": this.c.state.timeRange,
|
|
699
719
|
"title": this.c.state.calendarTitle,
|
|
700
720
|
"onLegendClick": this.onLegendClick,
|
|
@@ -714,7 +734,8 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
714
734
|
var _a;
|
|
715
735
|
return [createVNode(resolveComponent("iBizControlBase"), {
|
|
716
736
|
"controller": this.c,
|
|
717
|
-
"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")
|
|
718
739
|
}, {
|
|
719
740
|
default: () => [renderCalendar(), this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
720
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)}
|
|
@@ -2,12 +2,12 @@ import { defineComponent, createVNode, resolveComponent, computed } from 'vue';
|
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
4
|
import quarterOfYear from 'dayjs/plugin/quarterOfYear';
|
|
5
|
-
import './calendar-
|
|
5
|
+
import './calendar-user2.css';
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
dayjs.extend(quarterOfYear);
|
|
9
|
-
const
|
|
10
|
-
name: "
|
|
9
|
+
const CalendarUser2 = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "CalendarUser2",
|
|
11
11
|
props: {
|
|
12
12
|
title: {
|
|
13
13
|
type: String,
|
|
@@ -25,6 +25,14 @@ const CalendarFlatten = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
required: true,
|
|
26
26
|
type: Array,
|
|
27
27
|
validator: (range) => range.length === 2
|
|
28
|
+
},
|
|
29
|
+
semanticClass: {
|
|
30
|
+
type: Function,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
semanticStyle: {
|
|
34
|
+
type: Function,
|
|
35
|
+
required: true
|
|
28
36
|
}
|
|
29
37
|
},
|
|
30
38
|
emits: {
|
|
@@ -34,7 +42,7 @@ const CalendarFlatten = /* @__PURE__ */ defineComponent({
|
|
|
34
42
|
setup(props, {
|
|
35
43
|
emit
|
|
36
44
|
}) {
|
|
37
|
-
const ns = useNamespace("calendar-
|
|
45
|
+
const ns = useNamespace("calendar-user2");
|
|
38
46
|
const range = computed({
|
|
39
47
|
get() {
|
|
40
48
|
return props.timeRange;
|
|
@@ -106,24 +114,28 @@ const CalendarFlatten = /* @__PURE__ */ defineComponent({
|
|
|
106
114
|
},
|
|
107
115
|
render() {
|
|
108
116
|
return createVNode("div", {
|
|
109
|
-
"
|
|
117
|
+
"style": this.semanticStyle("user2"),
|
|
118
|
+
"class": [this.ns.b(), this.semanticClass("user2")]
|
|
110
119
|
}, [createVNode("div", {
|
|
111
|
-
"class": this.ns.e("header")
|
|
120
|
+
"class": [this.ns.e("header"), this.semanticClass("user2.header")],
|
|
121
|
+
"style": this.semanticStyle("user2.header")
|
|
112
122
|
}, [createVNode("div", {
|
|
113
123
|
"class": this.ns.em("header", "left")
|
|
114
124
|
}, [this.title]), createVNode("div", {
|
|
115
|
-
"class": this.ns.em("header", "
|
|
125
|
+
"class": [this.ns.em("header", "legend"), this.semanticStyle("legend")],
|
|
126
|
+
"style": this.semanticStyle("legend")
|
|
116
127
|
}, [this.legends.length > 1 && this.legends.map((legend) => {
|
|
117
128
|
return createVNode("div", {
|
|
118
|
-
"class": this.ns.e("legend"),
|
|
129
|
+
"class": [this.ns.e("legend-item"), this.semanticStyle("legend.item")],
|
|
130
|
+
"style": this.semanticStyle("legend.item"),
|
|
119
131
|
"onClick": () => this.$emit("legendClick", legend)
|
|
120
132
|
}, [createVNode("div", {
|
|
121
|
-
"class": this.ns.em("legend", "dot"),
|
|
133
|
+
"class": this.ns.em("legend-item", "dot"),
|
|
122
134
|
"style": {
|
|
123
135
|
backgroundColor: legend.isShow ? legend == null ? void 0 : legend.bkcolor : "var(".concat(this.ns.cssVarName("color-disabled-bg"), ")")
|
|
124
136
|
}
|
|
125
137
|
}, null), createVNode("div", {
|
|
126
|
-
"class": this.ns.em("legend", "text")
|
|
138
|
+
"class": this.ns.em("legend-item", "text")
|
|
127
139
|
}, [legend.name])]);
|
|
128
140
|
})]), createVNode("div", {
|
|
129
141
|
"class": this.ns.em("header", "right")
|
|
@@ -134,7 +146,8 @@ const CalendarFlatten = /* @__PURE__ */ defineComponent({
|
|
|
134
146
|
"onUpdate:modelValue": ($event) => this.range = $event,
|
|
135
147
|
"class": this.ns.e("data-picker")
|
|
136
148
|
}, null)])]), createVNode("div", {
|
|
137
|
-
"class": this.ns.e("body")
|
|
149
|
+
"class": [this.ns.e("body"), this.semanticClass("user2.body")],
|
|
150
|
+
"style": this.semanticStyle("user2.body")
|
|
138
151
|
}, [this.months.map((month) => {
|
|
139
152
|
return createVNode(resolveComponent("el-calendar"), {
|
|
140
153
|
"modelValue": month,
|
|
@@ -184,8 +197,9 @@ const CalendarFlatten = /* @__PURE__ */ defineComponent({
|
|
|
184
197
|
}, [marks.map((mark) => {
|
|
185
198
|
if (mark.isShow)
|
|
186
199
|
return createVNode("div", {
|
|
187
|
-
"class": this.ns.e("dot"),
|
|
200
|
+
"class": [this.ns.e("dot"), this.semanticClass("dot")],
|
|
188
201
|
"style": {
|
|
202
|
+
...this.semanticStyle("dot"),
|
|
189
203
|
backgroundColor: mark.bkcolor
|
|
190
204
|
}
|
|
191
205
|
}, null);
|
|
@@ -197,4 +211,4 @@ const CalendarFlatten = /* @__PURE__ */ defineComponent({
|
|
|
197
211
|
}
|
|
198
212
|
});
|
|
199
213
|
|
|
200
|
-
export {
|
|
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-
|
|
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":
|
|
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
|
-
"
|
|
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
|
-
"
|
|
208
|
-
"
|
|
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%;
|
|
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}
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
105
|
+
"class": [ns.em("calendar-day", "header")]
|
|
102
106
|
}, [createVNode("div", {
|
|
103
|
-
"class": ns.em("calendar-
|
|
107
|
+
"class": ns.em("calendar-day", "header-top")
|
|
104
108
|
}, [createVNode("div", {
|
|
105
|
-
"class": ns.em("calendar-
|
|
109
|
+
"class": ns.em("calendar-day", "title")
|
|
106
110
|
}, [props.calendarTitle || ibiz.i18n.t("control.calendar.title")]), createVNode("div", {
|
|
107
|
-
"class": ns.em("calendar-
|
|
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-
|
|
114
|
+
"class": ns.em("calendar-day", "legend-item"),
|
|
111
115
|
"onClick": () => selectLegend(item)
|
|
112
116
|
}, [createVNode("div", {
|
|
113
|
-
"class": ns.em("calendar-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
"
|
|
204
|
+
"style": this.semanticStyle("content"),
|
|
205
|
+
"class": [this.ns.b(), this.semanticClass("content")]
|
|
196
206
|
}, [this.renderContent()]);
|
|
197
207
|
}
|
|
198
208
|
});
|