@ibiz-template/vue3-components 0.7.26-alpha.3 → 0.7.26
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/index-28jZm-aB.js +4 -0
- package/dist/{index-8tGeBxpc.js → index-RwYoggQd.js} +1 -1
- package/dist/{index-CDgQJyai.js → index-s7g1-ymW.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-8_6qMs6z.js → xlsx-util-Rf5FMxyR.js} +1 -1
- package/es/common/emoji-select/components/categories/categories.css +1 -0
- package/es/common/emoji-select/components/categories/categories.d.ts +30 -0
- package/es/common/emoji-select/components/categories/categories.mjs +48 -0
- package/es/common/emoji-select/components/categories/index.d.ts +1 -0
- package/es/common/emoji-select/components/categories/index.mjs +3 -0
- package/es/common/emoji-select/components/category-label/category-label.css +1 -0
- package/es/common/emoji-select/components/category-label/category-label.d.ts +18 -0
- package/es/common/emoji-select/components/category-label/category-label.mjs +28 -0
- package/es/common/emoji-select/components/category-label/index.d.ts +1 -0
- package/es/common/emoji-select/components/category-label/index.mjs +3 -0
- package/es/common/emoji-select/components/emoji-item/emoji-item.css +1 -0
- package/es/common/emoji-select/components/emoji-item/emoji-item.d.ts +44 -0
- package/es/common/emoji-select/components/emoji-item/emoji-item.mjs +56 -0
- package/es/common/emoji-select/components/emoji-item/index.d.ts +1 -0
- package/es/common/emoji-select/components/emoji-item/index.mjs +3 -0
- package/es/common/emoji-select/components/emoji-list/emoji-list.css +1 -0
- package/es/common/emoji-select/components/emoji-list/emoji-list.d.ts +92 -0
- package/es/common/emoji-select/components/emoji-list/emoji-list.mjs +165 -0
- package/es/common/emoji-select/components/emoji-list/index.d.ts +1 -0
- package/es/common/emoji-select/components/emoji-list/index.mjs +3 -0
- package/es/common/emoji-select/components/index.d.ts +5 -0
- package/es/common/emoji-select/components/index.mjs +12 -0
- package/es/common/emoji-select/components/input-search/index.d.ts +1 -0
- package/es/common/emoji-select/components/input-search/index.mjs +3 -0
- package/es/common/emoji-select/components/input-search/input-search.css +1 -0
- package/es/common/emoji-select/components/input-search/input-search.d.ts +9 -0
- package/es/common/emoji-select/components/input-search/input-search.mjs +49 -0
- package/es/common/emoji-select/emoji-select.css +1 -0
- package/es/common/emoji-select/emoji-select.d.ts +142 -0
- package/es/common/emoji-select/emoji-select.mjs +234 -0
- package/es/common/emoji-select/icons/categories.d.ts +2 -0
- package/es/common/emoji-select/icons/categories.mjs +64 -0
- package/es/common/emoji-select/icons/emoji.d.ts +2 -0
- package/es/common/emoji-select/icons/emoji.mjs +1444 -0
- package/es/common/emoji-select/icons/index.d.ts +3 -0
- package/es/common/emoji-select/icons/index.mjs +5 -0
- package/es/common/emoji-select/icons/search.d.ts +1 -0
- package/es/common/emoji-select/icons/search.mjs +16 -0
- package/es/common/emoji-select/interface/category.d.ts +44 -0
- package/es/common/emoji-select/interface/category.mjs +22 -0
- package/es/common/emoji-select/interface/emoji.d.ts +37 -0
- package/es/common/emoji-select/interface/emoji.mjs +19 -0
- package/es/common/emoji-select/interface/index.d.ts +3 -0
- package/es/common/emoji-select/interface/index.mjs +5 -0
- package/es/common/emoji-select/interface/map-emojis.d.ts +17 -0
- package/es/common/emoji-select/interface/map-emojis.mjs +1 -0
- package/es/common/index.mjs +2 -0
- package/es/common/view-message/view-message.d.ts +1 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +3 -2
- package/es/control/calendar/calendar.mjs +203 -86
- package/es/control/calendar/components/calendar-daily/calendar-daily.d.ts +1 -1
- package/es/control/calendar/components/calendar-daily/index.d.ts +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.d.ts +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +15 -12
- package/es/control/calendar/components/calendar-week/index.d.ts +1 -1
- package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +1 -0
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +4 -114
- package/es/control/calendar/components/interface/calendar-daily.mjs +0 -3
- package/es/control/calendar/components/interface/calendar-week.mjs +3 -2
- package/es/control/calendar/components/interface/custom-calendar.mjs +8 -3
- package/es/control/calendar/components/interface/index.d.ts +0 -1
- package/es/control/calendar/components/interface/index.mjs +0 -1
- package/es/control/calendar/index.d.ts +2 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +36 -2
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +17 -7
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +10 -32
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +93 -56
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +25 -0
- package/es/control/grid/grid/grid-control.util.d.ts +8 -0
- package/es/control/grid/grid/grid-control.util.mjs +151 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +8 -0
- package/es/control/grid/grid/grid.mjs +12 -2
- package/es/control/grid/grid/index.d.ts +8 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/tree/tree.css +1 -1
- package/es/editor/dropdown-list/dropdown-list-editor.provider.d.ts +1 -0
- package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +10 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +72 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +123 -0
- package/es/editor/dropdown-list/index.d.ts +1 -0
- package/es/editor/dropdown-list/index.mjs +1 -0
- package/es/editor/index.mjs +6 -0
- package/es/editor/text-box/input/input.d.ts +1 -1
- package/es/locale/en/index.d.ts +14 -0
- package/es/locale/en/index.mjs +14 -0
- package/es/locale/zh-CN/index.d.ts +14 -0
- package/es/locale/zh-CN/index.mjs +14 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +7 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +19 -0
- package/lib/common/emoji-select/components/categories/categories.cjs +50 -0
- package/lib/common/emoji-select/components/categories/categories.css +1 -0
- package/lib/common/emoji-select/components/categories/index.cjs +7 -0
- package/lib/common/emoji-select/components/category-label/category-label.cjs +30 -0
- package/lib/common/emoji-select/components/category-label/category-label.css +1 -0
- package/lib/common/emoji-select/components/category-label/index.cjs +7 -0
- package/lib/common/emoji-select/components/emoji-item/emoji-item.cjs +58 -0
- package/lib/common/emoji-select/components/emoji-item/emoji-item.css +1 -0
- package/lib/common/emoji-select/components/emoji-item/index.cjs +7 -0
- package/lib/common/emoji-select/components/emoji-list/emoji-list.cjs +167 -0
- package/lib/common/emoji-select/components/emoji-list/emoji-list.css +1 -0
- package/lib/common/emoji-select/components/emoji-list/index.cjs +7 -0
- package/lib/common/emoji-select/components/index.cjs +20 -0
- package/lib/common/emoji-select/components/input-search/index.cjs +7 -0
- package/lib/common/emoji-select/components/input-search/input-search.cjs +51 -0
- package/lib/common/emoji-select/components/input-search/input-search.css +1 -0
- package/lib/common/emoji-select/emoji-select.cjs +236 -0
- package/lib/common/emoji-select/emoji-select.css +1 -0
- package/lib/common/emoji-select/icons/categories.cjs +66 -0
- package/lib/common/emoji-select/icons/emoji.cjs +1446 -0
- package/lib/common/emoji-select/icons/index.cjs +11 -0
- package/lib/common/emoji-select/icons/search.cjs +18 -0
- package/lib/common/emoji-select/interface/category.cjs +24 -0
- package/lib/common/emoji-select/interface/emoji.cjs +21 -0
- package/lib/common/emoji-select/interface/index.cjs +10 -0
- package/lib/common/emoji-select/interface/map-emojis.cjs +3 -0
- package/lib/common/index.cjs +2 -0
- package/lib/control/calendar/calendar.cjs +203 -86
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +15 -12
- package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +1 -0
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +7 -117
- package/lib/control/calendar/components/interface/calendar-daily.cjs +0 -3
- package/lib/control/calendar/components/interface/calendar-week.cjs +3 -2
- package/lib/control/calendar/components/interface/custom-calendar.cjs +8 -3
- package/lib/control/calendar/components/interface/index.cjs +0 -3
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +17 -7
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +93 -56
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +151 -1
- package/lib/control/grid/grid/grid.cjs +12 -2
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +10 -1
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +125 -0
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -0
- package/lib/editor/dropdown-list/index.cjs +2 -0
- package/lib/editor/index.cjs +6 -0
- package/lib/locale/en/index.cjs +14 -0
- package/lib/locale/zh-CN/index.cjs +14 -0
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +19 -0
- package/package.json +8 -8
- package/dist/index-oBteffLj.js +0 -4
- package/es/_virtual/localeData.mjs +0 -3
- package/es/control/calendar/components/calendar-month/calendar-month.css +0 -1
- package/es/control/calendar/components/calendar-month/calendar-month.d.ts +0 -18
- package/es/control/calendar/components/calendar-month/calendar-month.mjs +0 -242
- package/es/control/calendar/components/calendar-month/index.d.ts +0 -18
- package/es/control/calendar/components/calendar-month/index.mjs +0 -9
- package/es/control/calendar/components/calendar-month/use-calendar-month.d.ts +0 -3
- package/es/control/calendar/components/calendar-month/use-calendar-month.mjs +0 -384
- package/es/control/calendar/components/interface/calendar-month.d.ts +0 -20
- package/es/control/calendar/components/interface/calendar-month.mjs +0 -43
- package/es/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/plugin/localeData.mjs +0 -13
- package/lib/_virtual/localeData.cjs +0 -5
- package/lib/control/calendar/components/calendar-month/calendar-month.cjs +0 -244
- package/lib/control/calendar/components/calendar-month/calendar-month.css +0 -1
- package/lib/control/calendar/components/calendar-month/index.cjs +0 -14
- package/lib/control/calendar/components/calendar-month/use-calendar-month.cjs +0 -386
- package/lib/control/calendar/components/interface/calendar-month.cjs +0 -46
- package/lib/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/plugin/localeData.cjs +0 -17
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.25_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.25_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var dayjs = require('dayjs');
|
|
5
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
-
var index$
|
|
7
|
-
var index
|
|
8
|
-
var index = require('../calendar-month/index.cjs');
|
|
6
|
+
var index$1 = require('../calendar-daily/index.cjs');
|
|
7
|
+
var index = require('../calendar-week/index.cjs');
|
|
9
8
|
var useCustomCalendar = require('./use-custom-calendar.cjs');
|
|
10
9
|
require('./custom-calendar.css');
|
|
11
10
|
require('../interface/index.cjs');
|
|
@@ -24,7 +23,6 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
23
|
const {
|
|
25
24
|
date,
|
|
26
25
|
events,
|
|
27
|
-
i18nDate,
|
|
28
26
|
shortcuts,
|
|
29
27
|
viewType,
|
|
30
28
|
validatedRange,
|
|
@@ -42,112 +40,6 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
40
|
vue.onMounted(() => {
|
|
43
41
|
pickDay(dayjs(/* @__PURE__ */ new Date()));
|
|
44
42
|
});
|
|
45
|
-
const renderMonth = () => {
|
|
46
|
-
var _a;
|
|
47
|
-
return vue.createVNode("div", {
|
|
48
|
-
"class": [ns.e("calendar-month")]
|
|
49
|
-
}, [(slots == null ? void 0 : slots.header) ? vue.createVNode("div", {
|
|
50
|
-
"class": [ns.em("calendar-month", "header")]
|
|
51
|
-
}, [(_a = slots == null ? void 0 : slots.header) == null ? void 0 : _a.call(slots, {
|
|
52
|
-
date: i18nDate.value,
|
|
53
|
-
legends: legends.value
|
|
54
|
-
})]) : vue.createVNode("div", {
|
|
55
|
-
"class": [ns.em("calendar-month", "header")]
|
|
56
|
-
}, [vue.createVNode("div", {
|
|
57
|
-
"class": [ns.em("header", "title")]
|
|
58
|
-
}, [i18nDate.value]), vue.createVNode("div", {
|
|
59
|
-
"class": ns.em("calendar-month", "legend")
|
|
60
|
-
}, [legends.value.length > 1 && legends.value.map((legend) => {
|
|
61
|
-
return vue.createVNode("div", {
|
|
62
|
-
"class": ns.em("calendar-month", "legend-item"),
|
|
63
|
-
"onClick": () => selectLegend(legend)
|
|
64
|
-
}, [vue.createVNode("div", {
|
|
65
|
-
"class": ns.em("calendar-month", "legend-item-tip"),
|
|
66
|
-
"style": {
|
|
67
|
-
background: legend.isShow ? legend.bkcolor : "#CCCCCC"
|
|
68
|
-
}
|
|
69
|
-
}, null), vue.createVNode("div", {
|
|
70
|
-
"class": ns.em("calendar-month", "legend-item-text"),
|
|
71
|
-
"style": {
|
|
72
|
-
color: legend.isShow ? legend.color : "#CCCCCC"
|
|
73
|
-
},
|
|
74
|
-
"title": legend.name
|
|
75
|
-
}, [legend.name])]);
|
|
76
|
-
})]), validatedRange.value.length === 0 && vue.createVNode("div", {
|
|
77
|
-
"class": [ns.em("calendar-month", "button-group")]
|
|
78
|
-
}, [vue.createVNode(vue.resolveComponent("el-date-picker"), {
|
|
79
|
-
"modelValue": realSelectedDay.value,
|
|
80
|
-
"onUpdate:modelValue": ($event) => realSelectedDay.value = $event,
|
|
81
|
-
"type": "month"
|
|
82
|
-
}, null), vue.createVNode(vue.resolveComponent("el-button-group"), null, {
|
|
83
|
-
default: () => [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
84
|
-
"size": "small",
|
|
85
|
-
"onClick": () => {
|
|
86
|
-
selectDate("prev-year");
|
|
87
|
-
}
|
|
88
|
-
}, {
|
|
89
|
-
default: () => [vue.createTextVNode("\u53BB\u5E74")]
|
|
90
|
-
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
91
|
-
"size": "small",
|
|
92
|
-
"onClick": () => {
|
|
93
|
-
selectDate("prev-month");
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
default: () => [vue.createTextVNode("\u4E0A\u4E2A\u6708")]
|
|
97
|
-
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
98
|
-
"size": "small",
|
|
99
|
-
"onClick": () => {
|
|
100
|
-
selectDate("today");
|
|
101
|
-
}
|
|
102
|
-
}, {
|
|
103
|
-
default: () => [vue.createTextVNode("\u4ECA\u5929")]
|
|
104
|
-
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
105
|
-
"size": "small",
|
|
106
|
-
"onClick": () => {
|
|
107
|
-
selectDate("next-month");
|
|
108
|
-
}
|
|
109
|
-
}, {
|
|
110
|
-
default: () => [vue.createTextVNode("\u4E0B\u4E2A\u6708")]
|
|
111
|
-
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
112
|
-
"size": "small",
|
|
113
|
-
"onClick": () => {
|
|
114
|
-
selectDate("next-year");
|
|
115
|
-
}
|
|
116
|
-
}, {
|
|
117
|
-
default: () => [vue.createTextVNode("\u660E\u5E74")]
|
|
118
|
-
})]
|
|
119
|
-
})])]), validatedRange.value.length === 0 ? vue.createVNode("div", {
|
|
120
|
-
"class": [ns.em("calendar-month", "body")]
|
|
121
|
-
}, [vue.createVNode(index.IBizCalendarMonth, {
|
|
122
|
-
"date": date.value,
|
|
123
|
-
"controller": props.controller,
|
|
124
|
-
"selected-day": realSelectedDay.value,
|
|
125
|
-
"events": events.value,
|
|
126
|
-
"legends": legends.value,
|
|
127
|
-
"multiple": multiple.value,
|
|
128
|
-
"selectedData": selectedData.value,
|
|
129
|
-
"onPickEvent": (day) => pickDay(day),
|
|
130
|
-
"onEventClick": (value) => handleEVentClick(value),
|
|
131
|
-
"onEventDblClick": (value) => handleEVentDblClick(value)
|
|
132
|
-
}, slots)]) : vue.createVNode("div", {
|
|
133
|
-
"class": [ns.em("calendar-month", "body")]
|
|
134
|
-
}, [validatedRange.value.map((item, index$1) => {
|
|
135
|
-
return vue.createVNode(index.IBizCalendarMonth, {
|
|
136
|
-
"date": item[0],
|
|
137
|
-
"controller": props.controller,
|
|
138
|
-
"selected-day": realSelectedDay.value,
|
|
139
|
-
"range": item,
|
|
140
|
-
"hide-header": index$1 !== 0,
|
|
141
|
-
"onPickEvent": (day) => pickDay(day),
|
|
142
|
-
"events": events.value,
|
|
143
|
-
"legends": legends.value,
|
|
144
|
-
"multiple": multiple.value,
|
|
145
|
-
"selectedData": selectedData.value,
|
|
146
|
-
"onEventClick": (value) => handleEVentClick(value),
|
|
147
|
-
"onEventDblClick": (value) => handleEVentDblClick(value)
|
|
148
|
-
}, slots);
|
|
149
|
-
})])]);
|
|
150
|
-
};
|
|
151
43
|
const renderWeek = () => {
|
|
152
44
|
var _a;
|
|
153
45
|
return vue.createVNode("div", {
|
|
@@ -163,7 +55,7 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
163
55
|
"class": ns.em("calendar-week", "header-top")
|
|
164
56
|
}, [vue.createVNode("div", {
|
|
165
57
|
"class": ns.em("calendar-week", "title")
|
|
166
|
-
}, [props.
|
|
58
|
+
}, [props.calendarTitle || ibiz.i18n.t("control.calendar.title")]), vue.createVNode("div", {
|
|
167
59
|
"class": ns.em("calendar-week", "legend")
|
|
168
60
|
}, [legends.value.length > 1 && legends.value.map((item) => {
|
|
169
61
|
return vue.createVNode("div", {
|
|
@@ -189,9 +81,9 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
189
81
|
"type": "date",
|
|
190
82
|
"placeholder": "\u9009\u62E9\u65E5\u671F",
|
|
191
83
|
"shortcuts": shortcuts
|
|
192
|
-
}, null)])])]), vue.createVNode(index
|
|
84
|
+
}, null)])])]), vue.createVNode(index.IBizCalendarWeek, {
|
|
193
85
|
"selected-day": realSelectedDay.value,
|
|
194
|
-
"
|
|
86
|
+
"showDetail": props.showDetail,
|
|
195
87
|
"events": events.value,
|
|
196
88
|
"legends": legends.value,
|
|
197
89
|
"multiple": multiple.value,
|
|
@@ -215,7 +107,7 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
215
107
|
"class": ns.em("calendar-week", "header-top")
|
|
216
108
|
}, [vue.createVNode("div", {
|
|
217
109
|
"class": ns.em("calendar-week", "title")
|
|
218
|
-
}, [props.
|
|
110
|
+
}, [props.calendarTitle || ibiz.i18n.t("control.calendar.title")]), vue.createVNode("div", {
|
|
219
111
|
"class": ns.em("calendar-week", "legend")
|
|
220
112
|
}, [legends.value.length > 1 && legends.value.map((item) => {
|
|
221
113
|
return vue.createVNode("div", {
|
|
@@ -243,7 +135,7 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
243
135
|
"shortcuts": shortcuts
|
|
244
136
|
}, null)])]), vue.createVNode("div", {
|
|
245
137
|
"class": ns.em("calendar-week", "text-secondary")
|
|
246
|
-
}, [curWeek.value])]), vue.createVNode(index$
|
|
138
|
+
}, [curWeek.value])]), vue.createVNode(index$1.IBizCalendarDaily, {
|
|
247
139
|
"selected-day": realSelectedDay.value,
|
|
248
140
|
"controller": props.controller,
|
|
249
141
|
"events": events.value,
|
|
@@ -256,8 +148,6 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
256
148
|
};
|
|
257
149
|
const renderContent = () => {
|
|
258
150
|
switch (viewType.value) {
|
|
259
|
-
case "MONTH":
|
|
260
|
-
return renderMonth();
|
|
261
151
|
case "DAY":
|
|
262
152
|
return renderDay();
|
|
263
153
|
case "WEEK":
|
|
@@ -9,9 +9,14 @@ var event = require('../constant/event.cjs');
|
|
|
9
9
|
"use strict";
|
|
10
10
|
const isValidRange = (range) => lodashEs.isArray(range) && range.length === 2 && range.every((item) => lodashEs.isDate(item));
|
|
11
11
|
const customCalendarProps = util.handleProps({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
// 标题
|
|
13
|
+
calendarTitle: {
|
|
14
|
+
type: String
|
|
15
|
+
},
|
|
16
|
+
// 显示popover 详情
|
|
17
|
+
showDetail: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
15
20
|
},
|
|
16
21
|
/**
|
|
17
22
|
* @description 绑定值
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
require('./common.cjs');
|
|
4
4
|
var customCalendar = require('./custom-calendar.cjs');
|
|
5
5
|
var calendarDaily = require('./calendar-daily.cjs');
|
|
6
|
-
var calendarMonth = require('./calendar-month.cjs');
|
|
7
6
|
var calendarWeek = require('./calendar-week.cjs');
|
|
8
7
|
|
|
9
8
|
"use strict";
|
|
@@ -12,7 +11,5 @@ exports.customCalendarEmits = customCalendar.customCalendarEmits;
|
|
|
12
11
|
exports.customCalendarProps = customCalendar.customCalendarProps;
|
|
13
12
|
exports.calendarDailyEmits = calendarDaily.calendarDailyEmits;
|
|
14
13
|
exports.calendarDailyProps = calendarDaily.calendarDailyProps;
|
|
15
|
-
exports.calendarMonthEmits = calendarMonth.calendarMonthEmits;
|
|
16
|
-
exports.calendarMonthProps = calendarMonth.calendarMonthProps;
|
|
17
14
|
exports.calendarWeekEmits = calendarWeek.calendarWeekEmits;
|
|
18
15
|
exports.calendarWeekProps = calendarWeek.calendarWeekProps;
|
|
@@ -32,7 +32,7 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
const clickCollapse = (type) => {
|
|
33
33
|
showTypeDir.value = type === "left";
|
|
34
34
|
};
|
|
35
|
-
const
|
|
35
|
+
const getPortletModelByCodeName = (codeName) => {
|
|
36
36
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
37
37
|
if (app.model.appPortlets) {
|
|
38
38
|
const appPortlet = app.model.appPortlets.find((portlet) => {
|
|
@@ -44,15 +44,25 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
const
|
|
47
|
+
const getPortletModel = async (data) => {
|
|
48
|
+
if (data.dynamodelFlag) {
|
|
49
|
+
if (data.portletModel) {
|
|
50
|
+
return data.portletModel;
|
|
51
|
+
}
|
|
52
|
+
const dynaPortlet = await props.dashboard.loadDynaPortletById(data.portletId);
|
|
53
|
+
return dynaPortlet;
|
|
54
|
+
}
|
|
55
|
+
return getPortletModelByCodeName(data.portletCodeName);
|
|
56
|
+
};
|
|
57
|
+
const convertData = async (models) => {
|
|
48
58
|
const tempModelDatas = [];
|
|
49
59
|
if (models.length > 0) {
|
|
50
|
-
models.
|
|
51
|
-
const temModelData =
|
|
60
|
+
for (let i = 0; i < models.length; i++) {
|
|
61
|
+
const temModelData = await getPortletModel(models[i]);
|
|
52
62
|
if (temModelData) {
|
|
53
63
|
tempModelDatas.push(temModelData);
|
|
54
64
|
}
|
|
55
|
-
}
|
|
65
|
+
}
|
|
56
66
|
}
|
|
57
67
|
return tempModelDatas;
|
|
58
68
|
};
|
|
@@ -62,7 +72,7 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
72
|
};
|
|
63
73
|
const onSaved = async (args) => {
|
|
64
74
|
isShowDesign.value = false;
|
|
65
|
-
const tempModelDatas = convertData(args.model);
|
|
75
|
+
const tempModelDatas = await convertData(args.model);
|
|
66
76
|
await handleCustomModelChange({
|
|
67
77
|
model: tempModelDatas,
|
|
68
78
|
config: args.config
|
|
@@ -84,7 +94,7 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
94
|
});
|
|
85
95
|
vue.onMounted(async () => {
|
|
86
96
|
const response = await customC.loadCustomModelData();
|
|
87
|
-
const tempModelDatas = convertData(response.model);
|
|
97
|
+
const tempModelDatas = await convertData(response.model);
|
|
88
98
|
emit("changed", {
|
|
89
99
|
model: tempModelDatas
|
|
90
100
|
});
|
|
@@ -31,10 +31,20 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
31
|
emit
|
|
32
32
|
}) {
|
|
33
33
|
const ns = vue3Util.useNamespace("dashboard-design");
|
|
34
|
+
const c = props.dashboard;
|
|
34
35
|
const customC = props.customDashboard;
|
|
35
|
-
const
|
|
36
|
+
const portlets = vue.ref([]);
|
|
37
|
+
const list = vue.ref([]);
|
|
38
|
+
const groups = vue.ref([]);
|
|
39
|
+
const filterVal = vue.ref("");
|
|
40
|
+
const layoutModel = vue.ref(ramda.clone(customC.customModelData));
|
|
41
|
+
const layoutConfig = vue.ref(ramda.clone(customC.portletConfig));
|
|
42
|
+
const providers = vue.ref({});
|
|
43
|
+
const portletControllers = vue.ref({});
|
|
44
|
+
const designPanel = vue.ref(null);
|
|
45
|
+
const filterData = (list1) => {
|
|
36
46
|
const items = [];
|
|
37
|
-
|
|
47
|
+
list1.forEach((data) => {
|
|
38
48
|
var _a;
|
|
39
49
|
if (Object.is(data.type, "app")) {
|
|
40
50
|
items.push(data);
|
|
@@ -98,10 +108,26 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
98
108
|
});
|
|
99
109
|
return items;
|
|
100
110
|
};
|
|
101
|
-
const prepareData = () => {
|
|
102
|
-
const
|
|
111
|
+
const prepareData = async () => {
|
|
112
|
+
const list3 = [];
|
|
103
113
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
104
|
-
if (
|
|
114
|
+
if (c.enableDynamic) {
|
|
115
|
+
const dynamicPortlets = await c.loadAllDynaPortlet();
|
|
116
|
+
dynamicPortlets == null ? void 0 : dynamicPortlets.forEach((portlet) => {
|
|
117
|
+
const temp = {
|
|
118
|
+
type: "app",
|
|
119
|
+
dynamodelFlag: 1,
|
|
120
|
+
portletId: portlet.psappportletid,
|
|
121
|
+
portletCodeName: portlet.codename,
|
|
122
|
+
portletName: portlet.psappportletname,
|
|
123
|
+
groupCodeName: "Ungroup",
|
|
124
|
+
groupName: "\u672A\u5206\u7C7B",
|
|
125
|
+
appCodeName: app.model.pkgcodeName,
|
|
126
|
+
appName: app.model.name
|
|
127
|
+
};
|
|
128
|
+
list3.push(temp);
|
|
129
|
+
});
|
|
130
|
+
} else if (app.model.appPortletCats && app.model.appPortlets) {
|
|
105
131
|
const isDEView = customC.model.appDataEntityId;
|
|
106
132
|
const categoryTag = props.dashboard.controlParams.categorytag;
|
|
107
133
|
app.model.appPortlets.forEach((portlet) => {
|
|
@@ -131,28 +157,14 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
157
|
appCodeName: portlet.appDataEntityId || app.model.pkgcodeName,
|
|
132
158
|
appName: app.model.name
|
|
133
159
|
};
|
|
134
|
-
|
|
160
|
+
list3.push(temp);
|
|
135
161
|
});
|
|
136
162
|
}
|
|
137
|
-
const datas = filterData(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
portlets: datas,
|
|
142
|
-
list: result2.reverse(),
|
|
143
|
-
groups: groups2
|
|
144
|
-
};
|
|
163
|
+
const datas = filterData(list3);
|
|
164
|
+
portlets.value = datas;
|
|
165
|
+
list.value = prepareList(datas).reverse();
|
|
166
|
+
groups.value = prepareGroup(datas);
|
|
145
167
|
};
|
|
146
|
-
const result = prepareData();
|
|
147
|
-
const portlets = vue.ref(result.portlets);
|
|
148
|
-
const list = vue.ref(result.list);
|
|
149
|
-
const groups = vue.ref(result.groups);
|
|
150
|
-
const filterVal = vue.ref("");
|
|
151
|
-
const layoutModel = vue.ref(ramda.clone(customC.customModelData));
|
|
152
|
-
const layoutConfig = vue.ref(ramda.clone(customC.portletConfig));
|
|
153
|
-
const providers = vue.ref({});
|
|
154
|
-
const portletControllers = vue.ref({});
|
|
155
|
-
const designPanel = vue.ref(null);
|
|
156
168
|
const defaultOpens = vue.computed(() => {
|
|
157
169
|
let tempOpens = [];
|
|
158
170
|
if (filterVal.value) {
|
|
@@ -188,41 +200,59 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
188
200
|
}
|
|
189
201
|
});
|
|
190
202
|
};
|
|
191
|
-
const
|
|
203
|
+
const getPortletModelByCodeName = (tag) => {
|
|
192
204
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
193
205
|
if (app.model.appPortlets) {
|
|
194
206
|
const appPortlet = app.model.appPortlets.find((portlet) => {
|
|
195
207
|
var _a;
|
|
196
|
-
return ((_a = portlet.control) == null ? void 0 : _a.codeName) ===
|
|
208
|
+
return ((_a = portlet.control) == null ? void 0 : _a.codeName) === tag;
|
|
197
209
|
});
|
|
198
210
|
if (appPortlet) {
|
|
199
211
|
return appPortlet.control;
|
|
200
212
|
}
|
|
201
213
|
}
|
|
202
214
|
};
|
|
203
|
-
const
|
|
215
|
+
const getPortletModel = async (data) => {
|
|
216
|
+
if (data.dynamodelFlag) {
|
|
217
|
+
if (data.portletModel) {
|
|
218
|
+
return data.portletModel;
|
|
219
|
+
}
|
|
220
|
+
const dynaPortlet = await c.loadDynaPortletById(data.portletId);
|
|
221
|
+
return dynaPortlet;
|
|
222
|
+
}
|
|
223
|
+
return getPortletModelByCodeName(data.portletCodeName);
|
|
224
|
+
};
|
|
225
|
+
const convertData = async (models) => {
|
|
204
226
|
const tempModelDatas = [];
|
|
205
227
|
if (models.length > 0) {
|
|
206
|
-
models.
|
|
207
|
-
const temModelData =
|
|
228
|
+
for (let i = 0; i < models.length; i++) {
|
|
229
|
+
const temModelData = await getPortletModel(models[i]);
|
|
208
230
|
if (temModelData) {
|
|
209
231
|
tempModelDatas.push(temModelData);
|
|
210
232
|
}
|
|
211
|
-
}
|
|
233
|
+
}
|
|
212
234
|
}
|
|
213
235
|
return tempModelDatas;
|
|
214
236
|
};
|
|
215
|
-
const preparePortlet = async () => {
|
|
216
|
-
const tempModelDatas = convertData(
|
|
237
|
+
const preparePortlet = async (data) => {
|
|
238
|
+
const tempModelDatas = await convertData(data);
|
|
217
239
|
await initPortlets(tempModelDatas);
|
|
218
240
|
await initPortletsConfig();
|
|
241
|
+
return tempModelDatas;
|
|
219
242
|
};
|
|
220
243
|
vue.watch(() => props.isShowDesign, async (newVal) => {
|
|
221
244
|
if (newVal) {
|
|
245
|
+
await prepareData();
|
|
222
246
|
const res = await customC.loadCustomModelData();
|
|
223
|
-
|
|
247
|
+
const model = ramda.clone(res.model);
|
|
248
|
+
const tempModelDatas = await preparePortlet(model);
|
|
249
|
+
layoutModel.value = model;
|
|
250
|
+
layoutModel.value.forEach((item, index) => {
|
|
251
|
+
if (item.dynamodelFlag) {
|
|
252
|
+
item.portletModel = tempModelDatas[index];
|
|
253
|
+
}
|
|
254
|
+
});
|
|
224
255
|
layoutConfig.value = ramda.clone(res.config);
|
|
225
|
-
await preparePortlet();
|
|
226
256
|
}
|
|
227
257
|
}, {
|
|
228
258
|
immediate: true
|
|
@@ -248,7 +278,7 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
248
278
|
const index = layoutModel.value.indexOf(child);
|
|
249
279
|
if (index !== -1) {
|
|
250
280
|
layoutModel.value.splice(index, 1);
|
|
251
|
-
const temModelData =
|
|
281
|
+
const temModelData = await getPortletModel(child);
|
|
252
282
|
if (temModelData) {
|
|
253
283
|
const controller = portletControllers.value[temModelData.id];
|
|
254
284
|
await controller.destroyed();
|
|
@@ -257,6 +287,7 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
257
287
|
};
|
|
258
288
|
const lastScrollHeight = vue.ref(0);
|
|
259
289
|
const addLayoutItem = async (child) => {
|
|
290
|
+
const tempModelDatas = await preparePortlet([child]);
|
|
260
291
|
const element = designPanel.value;
|
|
261
292
|
if (element) {
|
|
262
293
|
lastScrollHeight.value = element.scrollHeight + 3 * customC.layoutRowH;
|
|
@@ -267,15 +298,20 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
267
298
|
maxY = obj.y;
|
|
268
299
|
}
|
|
269
300
|
}
|
|
270
|
-
|
|
301
|
+
const tempItemModel = {
|
|
271
302
|
w: 4,
|
|
272
303
|
h: 3,
|
|
273
304
|
x: 0,
|
|
274
305
|
y: maxY + 3,
|
|
275
306
|
i: child.portletCodeName,
|
|
276
307
|
...child
|
|
277
|
-
}
|
|
278
|
-
|
|
308
|
+
};
|
|
309
|
+
if (child.dynamodelFlag) {
|
|
310
|
+
Object.assign(tempItemModel, {
|
|
311
|
+
portletModel: tempModelDatas[0]
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
layoutModel.value.push(tempItemModel);
|
|
279
315
|
if (element) {
|
|
280
316
|
const intervalId = setInterval(() => {
|
|
281
317
|
if (element.scrollHeight >= lastScrollHeight.value) {
|
|
@@ -321,9 +357,9 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
321
357
|
isDisabled,
|
|
322
358
|
providers,
|
|
323
359
|
portletControllers,
|
|
324
|
-
getPortletByCodeName,
|
|
325
360
|
maskSize,
|
|
326
|
-
designPanel
|
|
361
|
+
designPanel,
|
|
362
|
+
getPortletModelByCodeName
|
|
327
363
|
};
|
|
328
364
|
},
|
|
329
365
|
render() {
|
|
@@ -392,23 +428,24 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
392
428
|
});
|
|
393
429
|
};
|
|
394
430
|
const renderPortlet = (item) => {
|
|
395
|
-
const portletModel = this.
|
|
396
|
-
if (portletModel) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
return vue.h(providerComp, {
|
|
408
|
-
...commonProps,
|
|
409
|
-
key: portletModel.id
|
|
410
|
-
});
|
|
431
|
+
const portletModel = item.dynamodelFlag ? item.portletModel : this.getPortletModelByCodeName(item.portletCodeName);
|
|
432
|
+
if (!portletModel) {
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
const provider = this.providers[portletModel.id];
|
|
436
|
+
const controller = this.portletControllers[portletModel.id];
|
|
437
|
+
const commonProps = {
|
|
438
|
+
modelData: portletModel,
|
|
439
|
+
controller
|
|
440
|
+
};
|
|
441
|
+
if (!provider) {
|
|
442
|
+
return vue.createVNode("div", null, [portletModel.portletType, ibiz.i18n.t("app.noSupport")]);
|
|
411
443
|
}
|
|
444
|
+
const providerComp = vue.resolveComponent(provider.component);
|
|
445
|
+
return vue.h(providerComp, {
|
|
446
|
+
...commonProps,
|
|
447
|
+
key: portletModel.id
|
|
448
|
+
});
|
|
412
449
|
};
|
|
413
450
|
return vue.createVNode("div", {
|
|
414
451
|
"class": this.ns.b()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|