@ibiz-template/vue3-components 0.7.26-alpha.3 → 0.7.27
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-8tGeBxpc.js → index-0TO7mjm5.js} +1 -1
- package/dist/index-Dq21zXhV.js +4 -0
- package/dist/{index-CDgQJyai.js → index-g6o3vQXo.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-qdXxbg2A.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +1 -1
- package/es/common/custom-theme/custom-theme.mjs +1 -1
- package/es/common/data-import2/data-import2.mjs +4 -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/context-menu/context-menu.mjs +2 -2
- 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 +18 -8
- 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 +7 -11
- package/es/control/form/form-detail/form-button/form-button.mjs +1 -1
- 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.d.ts +28 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +52 -7
- package/es/control/form/form-detail/form-item/form-item.mjs +4 -0
- 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 +166 -12
- 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/search-bar/search-bar.mjs +2 -2
- package/es/control/toolbar/export-excel/export-excel.mjs +2 -2
- package/es/control/toolbar/short-cut-button/short-cut-button.mjs +4 -1
- package/es/control/toolbar/toolbar.mjs +2 -2
- package/es/control/tree/index.d.ts +9 -0
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +9 -0
- package/es/control/tree/tree.mjs +5 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +4 -0
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +48 -3
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
- package/es/editor/data-picker/picker-editor.controller.d.ts +2 -2
- package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +6 -0
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +10 -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-dropdown/ibiz-dropdown.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +17 -4
- 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 +74 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +144 -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/span/span/span.mjs +3 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +12 -10
- package/es/editor/text-box/input/input.d.ts +1 -1
- package/es/editor/text-box/input/input.mjs +3 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +1 -1
- package/es/locale/en/index.d.ts +17 -0
- package/es/locale/en/index.mjs +17 -0
- package/es/locale/zh-CN/index.d.ts +17 -0
- package/es/locale/zh-CN/index.mjs +17 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +7 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +20 -0
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/view-engine/edit-view.engine.mjs +3 -2
- package/es/view-engine/opt-view.engine.mjs +2 -1
- package/es/view-engine/pickup-tree-view.engine.mjs +1 -0
- package/es/web-app/attach-environment-config.mjs +2 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +1 -1
- package/lib/common/custom-theme/custom-theme.cjs +1 -1
- package/lib/common/data-import2/data-import2.cjs +4 -1
- 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/context-menu/context-menu.cjs +2 -2
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +18 -8
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +93 -56
- package/lib/control/drtab/drtab-control.util.cjs +7 -11
- package/lib/control/form/form-detail/form-button/form-button.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +51 -6
- 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 +4 -0
- package/lib/control/grid/grid/grid-control.util.cjs +166 -12
- 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/search-bar/search-bar.cjs +2 -2
- package/lib/control/toolbar/export-excel/export-excel.cjs +2 -2
- package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +4 -1
- package/lib/control/toolbar/toolbar.cjs +2 -2
- package/lib/control/tree/tree.cjs +5 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +48 -3
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +10 -1
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +10 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +17 -4
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +146 -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/editor/span/span/span.cjs +2 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +12 -10
- package/lib/editor/text-box/input/input.cjs +3 -0
- package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +1 -1
- package/lib/locale/en/index.cjs +17 -0
- package/lib/locale/zh-CN/index.cjs +17 -0
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +20 -0
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/lib/view-engine/edit-view.engine.cjs +3 -2
- package/lib/view-engine/opt-view.engine.cjs +2 -1
- package/lib/view-engine/pickup-tree-view.engine.cjs +1 -0
- package/lib/web-app/attach-environment-config.cjs +2 -1
- 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.27_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.27_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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SearchSvg: () => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createVNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
const SearchSvg = () => createVNode("svg", {
|
|
5
|
+
"viewBox": "0 0 16 16",
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"height": "1em",
|
|
8
|
+
"width": "1em",
|
|
9
|
+
"focusable": "false"
|
|
10
|
+
}, [createVNode("g", {
|
|
11
|
+
"stroke-width": "1"
|
|
12
|
+
}, [createVNode("path", {
|
|
13
|
+
"d": "M6.751 12.303A5.557 5.557 0 0 1 1.2 6.751C1.2 3.691 3.69 1.2 6.751 1.2a5.558 5.558 0 0 1 5.551 5.551 5.557 5.557 0 0 1-5.551 5.552M6.751 0a6.751 6.751 0 1 0 4.309 11.949l3.855 3.855a.6.6 0 1 0 .849-.849l-3.854-3.853A6.751 6.751 0 0 0 6.751 0"
|
|
14
|
+
}, null)])]);
|
|
15
|
+
|
|
16
|
+
export { SearchSvg };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 类别接口定义
|
|
3
|
+
*
|
|
4
|
+
* @interface ICategory
|
|
5
|
+
*/
|
|
6
|
+
export interface ICategory {
|
|
7
|
+
/**
|
|
8
|
+
* 类别的名称
|
|
9
|
+
*
|
|
10
|
+
* @type {string}
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* 类别的图标(可能是 URL 或其他标识符)
|
|
15
|
+
*
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
icon: string;
|
|
19
|
+
/**
|
|
20
|
+
* 类别相关的文本描述
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
*/
|
|
24
|
+
text: string;
|
|
25
|
+
/**
|
|
26
|
+
* 获取类别的标签(通常是类别的名称)
|
|
27
|
+
*
|
|
28
|
+
* @returns {string} - 类别的名称
|
|
29
|
+
*/
|
|
30
|
+
label: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 类别类,实现 ICategory 接口
|
|
34
|
+
*
|
|
35
|
+
* @class Category
|
|
36
|
+
* @implements ICategory
|
|
37
|
+
*/
|
|
38
|
+
export declare class Category implements ICategory {
|
|
39
|
+
name: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
text: string;
|
|
42
|
+
constructor(name: string, icon: string, text: string);
|
|
43
|
+
get label(): string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
class Category {
|
|
9
|
+
constructor(name, icon, text) {
|
|
10
|
+
__publicField(this, "name");
|
|
11
|
+
__publicField(this, "icon");
|
|
12
|
+
__publicField(this, "text");
|
|
13
|
+
this.name = name;
|
|
14
|
+
this.icon = icon;
|
|
15
|
+
this.text = text;
|
|
16
|
+
}
|
|
17
|
+
get label() {
|
|
18
|
+
return this.name;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { Category };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表情符号接口定义
|
|
3
|
+
*
|
|
4
|
+
* @interface IEmoji
|
|
5
|
+
*/
|
|
6
|
+
export interface IEmoji {
|
|
7
|
+
/**
|
|
8
|
+
* 表情符号的数据,通常是Unicode编码或svg
|
|
9
|
+
*
|
|
10
|
+
* @type {string}
|
|
11
|
+
*/
|
|
12
|
+
data: string;
|
|
13
|
+
/**
|
|
14
|
+
* 表情符号所属的分类
|
|
15
|
+
*
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
category: string;
|
|
19
|
+
/**
|
|
20
|
+
* 表情符号的别名列表
|
|
21
|
+
*
|
|
22
|
+
* @type {string[]}
|
|
23
|
+
*/
|
|
24
|
+
aliases: string[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 表情符号类,实现IEmoji接口
|
|
28
|
+
*
|
|
29
|
+
* @class Emoji
|
|
30
|
+
* @implements IEmoji
|
|
31
|
+
*/
|
|
32
|
+
export declare class Emoji implements IEmoji {
|
|
33
|
+
data: string;
|
|
34
|
+
category: string;
|
|
35
|
+
aliases: string[];
|
|
36
|
+
constructor(data: string, category: string, aliases: string[]);
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
class Emoji {
|
|
9
|
+
constructor(data, category, aliases) {
|
|
10
|
+
__publicField(this, "data");
|
|
11
|
+
__publicField(this, "category");
|
|
12
|
+
__publicField(this, "aliases");
|
|
13
|
+
this.data = data;
|
|
14
|
+
this.category = category;
|
|
15
|
+
this.aliases = aliases;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { Emoji };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEmoji } from './emoji';
|
|
2
|
+
/**
|
|
3
|
+
* 表情符号映射接口
|
|
4
|
+
*
|
|
5
|
+
* 此接口定义了一个对象,其键为字符串类型(可能是某种分类或标识符),
|
|
6
|
+
* 对应的值为IEmoji接口的数组,表示属于该键所代表分类或标识符的表情符号列表。
|
|
7
|
+
*
|
|
8
|
+
* @interface MapEmojis
|
|
9
|
+
*/
|
|
10
|
+
export interface MapEmojis {
|
|
11
|
+
/**
|
|
12
|
+
* 表情符号的分类或标识符,作为对象的键
|
|
13
|
+
*
|
|
14
|
+
* @type {string}
|
|
15
|
+
*/
|
|
16
|
+
[x: string]: IEmoji[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/es/common/index.mjs
CHANGED
|
@@ -21,11 +21,13 @@ import { IBizCarouselComponent } from './carousel/carousel.mjs';
|
|
|
21
21
|
import { IBizCoopAlert } from './coop-alert/coop-alert.mjs';
|
|
22
22
|
import { CustomTheme } from './custom-theme/custom-theme.mjs';
|
|
23
23
|
import { IBizCarouselCard } from './carousel-card/carousel-card.mjs';
|
|
24
|
+
import { IBizEmojiSelect } from './emoji-select/emoji-select.mjs';
|
|
24
25
|
|
|
25
26
|
"use strict";
|
|
26
27
|
const IBizCommonComponents = {
|
|
27
28
|
install: (v) => {
|
|
28
29
|
v.component(IBizControlBase.name, IBizControlBase);
|
|
30
|
+
v.component(IBizEmojiSelect.name, IBizEmojiSelect);
|
|
29
31
|
v.component(IBizIcon.name, IBizIcon);
|
|
30
32
|
v.component(DoingNotice.name, DoingNotice);
|
|
31
33
|
v.component(IBizRow.name, IBizRow);
|
|
@@ -464,6 +464,7 @@ export declare const ViewMessage: import("vue").DefineComponent<{
|
|
|
464
464
|
propertyIsEnumerable: (v: PropertyKey) => boolean;
|
|
465
465
|
} | undefined;
|
|
466
466
|
tag?: string | undefined;
|
|
467
|
+
uniqueTag?: string | undefined;
|
|
467
468
|
appId: string;
|
|
468
469
|
id?: string | undefined;
|
|
469
470
|
name?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-
|
|
1
|
+
.ibiz-control-calendar{--ibiz-control-calendar-text-color:var(--ibiz-color-text-0);--ibiz-control-calendar-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-active-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-border-color:var(--ibiz-color-primary-active);--ibiz-control-calendar-font-size:var(--ibiz-font-size-small);--ibiz-control-calendar-item-padding:var(--ibiz-spacing-tight);--ibiz-control-calendar-border-radius:var(--ibiz-border-radius-small);--ibiz-control-calendar-margin:var(--ibiz-spacing-extra-tight);width:100%;height:100%}.ibiz-control-calendar__calendar-item{display:flex;align-items:center;padding:var(--ibiz-control-calendar-item-padding)}.ibiz-control-calendar__icon{width:var(--ibiz-width-icon-small);height:var(--ibiz-width-icon-small);margin-right:var(--ibiz-spacing-base-tight);border-radius:var(--ibiz-border-radius-circle)}.ibiz-control-calendar .ibiz-control-calendar-item{margin:0}.ibiz-control-calendar-content{display:flex;flex-direction:column;width:100%;height:100%}.ibiz-control-calendar-content .el-calendar{display:flex;flex-direction:column;height:100%}.ibiz-control-calendar-content .el-calendar__header{flex-wrap:wrap}.ibiz-control-calendar-content .el-calendar-table,.ibiz-control-calendar-content .el-calendar-table .el-calendar-day{width:100%;height:100%;min-height:90px;cursor:pointer}.ibiz-control-calendar-content .el-calendar-table{flex:1;width:-moz-fit-content;width:fit-content}.ibiz-control-calendar-content .el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:var(--el-calendar-selected-bg-color)}.ibiz-control-calendar-content .el-calendar__body{display:flex;flex:1;padding:0;overflow:auto}.ibiz-control-calendar-more{width:100%;font-size:var(--ibiz-font-size-small);border-radius:var(--ibiz-spacing-extra-tight)}.ibiz-control-calendar-more:hover{background-color:var(--ibiz-control-calendar-hover-bg-color)}.ibiz-control-calendar-item{--ibiz-control-calendar-text-color:var(--ibiz-color-text-0);--ibiz-control-calendar-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-active-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-border-color:var(--ibiz-color-primary-active);--ibiz-control-calendar-font-size:var(--ibiz-font-size-small);--ibiz-control-calendar-item-padding:var(--ibiz-spacing-tight);--ibiz-control-calendar-border-radius:var(--ibiz-border-radius-small);--ibiz-control-calendar-margin:var(--ibiz-spacing-extra-tight);height:100%;padding:var(--ibiz-control-calendar-item-padding);margin-bottom:var(--ibiz-control-calendar-margin);overflow:hidden;font-size:var(--ibiz-control-calendar-font-size);color:var(--ibiz-control-calendar-text-color);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border:solid .5px transparent;border-radius:var(--ibiz-control-calendar-border-radius)}.ibiz-control-calendar-item:hover{background-color:var(--ibiz-control-calendar-hover-bg-color)}.ibiz-control-calendar-item.is-active{background-color:var(--ibiz-control-calendar-active-bg-color);border:solid .5px var(--ibiz-control-calendar-border-color)}.ibiz-control-calendar-date-text{--ibiz-control-calendar-text-color:var(--ibiz-color-text-0);--ibiz-control-calendar-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-active-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-border-color:var(--ibiz-color-primary-active);--ibiz-control-calendar-font-size:var(--ibiz-font-size-small);--ibiz-control-calendar-item-padding:var(--ibiz-spacing-tight);--ibiz-control-calendar-border-radius:var(--ibiz-border-radius-small);--ibiz-control-calendar-margin:var(--ibiz-spacing-extra-tight);padding-bottom:var(--ibiz-control-calendar-item-padding);margin:0;text-align:center}.ibiz-control-calendar-day{height:-moz-fit-content;height:fit-content}.ibiz-control-calendar-content-title{line-height:var(--ibiz-editor-default-line-height)}.ibiz-control-calendar-content-header{--ibiz-control-calendar-text-color:var(--ibiz-color-text-0);--ibiz-control-calendar-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-active-bg-color:var(--ibiz-color-fill-0);--ibiz-control-calendar-border-color:var(--ibiz-color-primary-active);--ibiz-control-calendar-font-size:var(--ibiz-font-size-small);--ibiz-control-calendar-item-padding:var(--ibiz-spacing-tight);--ibiz-control-calendar-border-radius:var(--ibiz-border-radius-small);--ibiz-control-calendar-margin:var(--ibiz-spacing-extra-tight);display:flex;align-items:center}.ibiz-control-calendar-content-header>*+*{margin-left:var(--ibiz-control-calendar-item-padding)}.ibiz-control-calendar-legend{display:flex;justify-content:flex-end;width:100%}.ibiz-control-calendar-legend>*+*{margin-left:var(--ibiz-spacing-base-loose)}.ibiz-control-calendar-timeline-content .el-timeline{padding-left:0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ISysCalendar } from '@ibiz/model-core';
|
|
3
|
+
import { CalendarController, ICalendarItemData, IControlProvider } from '@ibiz-template/runtime';
|
|
3
4
|
import './calendar.scss';
|
|
4
|
-
import { CalendarController, IControlProvider } from '@ibiz-template/runtime';
|
|
5
5
|
export declare const CalendarControl: import("vue").DefineComponent<{
|
|
6
6
|
modelData: {
|
|
7
7
|
type: PropType<ISysCalendar>;
|
|
@@ -30,8 +30,9 @@ export declare const CalendarControl: import("vue").DefineComponent<{
|
|
|
30
30
|
c: CalendarController;
|
|
31
31
|
ns: import("@ibiz-template/core").Namespace;
|
|
32
32
|
calendarRef: import("vue").Ref<IData | undefined>;
|
|
33
|
+
popoverVisible: import("vue").Ref<boolean>;
|
|
33
34
|
selectDate: (tag: string) => void;
|
|
34
|
-
|
|
35
|
+
calcItemStyle: (data: ICalendarItemData) => IData;
|
|
35
36
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
37
|
modelData: {
|
|
37
38
|
type: PropType<ISysCalendar>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { isVNode, ref, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import './calendar.css';
|
|
4
3
|
import { CalendarController } from '@ibiz-template/runtime';
|
|
5
4
|
import dayjs from 'dayjs';
|
|
6
|
-
import './components/util/index.mjs';
|
|
7
5
|
import { IBizCustomCalendar } from './components/custom-calendar/index.mjs';
|
|
8
|
-
import
|
|
6
|
+
import './calendar.css';
|
|
9
7
|
|
|
10
8
|
"use strict";
|
|
11
9
|
function _isSlot(s) {
|
|
@@ -42,14 +40,18 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
42
40
|
const c = useControlController((...args) => new CalendarController(...args));
|
|
43
41
|
const ns = useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
44
42
|
const calendarRef = ref();
|
|
43
|
+
const popoverVisible = ref(false);
|
|
45
44
|
const selectDate = (tag) => {
|
|
46
45
|
if (!calendarRef.value)
|
|
47
46
|
return;
|
|
48
47
|
calendarRef.value.selectDate(tag);
|
|
49
48
|
};
|
|
49
|
+
c.evt.on("onActive", () => {
|
|
50
|
+
popoverVisible.value = false;
|
|
51
|
+
});
|
|
50
52
|
watch(() => c.state.selectedDate, (oldVal, newVal) => {
|
|
51
|
-
const oldDateString = dayjs(oldVal).format("YYYY-MM
|
|
52
|
-
const newDateString = dayjs(newVal).format("YYYY-MM
|
|
53
|
+
const oldDateString = dayjs(oldVal).format("YYYY-MM");
|
|
54
|
+
const newDateString = dayjs(newVal).format("YYYY-MM");
|
|
53
55
|
if (oldDateString === newDateString) {
|
|
54
56
|
return;
|
|
55
57
|
}
|
|
@@ -58,129 +60,250 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
58
60
|
const calcItemStyle = (data) => {
|
|
59
61
|
return {
|
|
60
62
|
color: data.color,
|
|
61
|
-
backgroundColor:
|
|
63
|
+
backgroundColor: data.bkColor
|
|
62
64
|
};
|
|
63
65
|
};
|
|
66
|
+
return {
|
|
67
|
+
c,
|
|
68
|
+
ns,
|
|
69
|
+
calendarRef,
|
|
70
|
+
popoverVisible,
|
|
71
|
+
selectDate,
|
|
72
|
+
calcItemStyle
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
render() {
|
|
76
|
+
let _slot6;
|
|
64
77
|
const renderPanelItem = (item, modelData) => {
|
|
65
78
|
const {
|
|
66
79
|
context,
|
|
67
80
|
params
|
|
68
|
-
} = c;
|
|
69
|
-
const {
|
|
70
|
-
calendarStyle
|
|
71
|
-
} = c.model;
|
|
72
|
-
const findIndex = c.state.selectedData.findIndex((data) => {
|
|
81
|
+
} = this.c;
|
|
82
|
+
const findIndex = this.c.state.selectedData.findIndex((data) => {
|
|
73
83
|
return data.deData.srfkey === item.deData.srfkey;
|
|
74
84
|
});
|
|
75
|
-
const itemClass = [ns.b("item"), ns.is("active", findIndex !== -1)];
|
|
76
|
-
const style = calcItemStyle(item);
|
|
77
|
-
if (calendarStyle === "TIMELINE") {
|
|
78
|
-
return createVNode(resolveComponent("iBizControlShell"), {
|
|
79
|
-
"class": itemClass,
|
|
80
|
-
"data": item.deData,
|
|
81
|
-
"modelData": modelData,
|
|
82
|
-
"context": context,
|
|
83
|
-
"params": params,
|
|
84
|
-
"style": style,
|
|
85
|
-
"onClick": (e) => {
|
|
86
|
-
e.stopPropagation();
|
|
87
|
-
return c.onRowClick(item);
|
|
88
|
-
},
|
|
89
|
-
"onDblclick": (e) => {
|
|
90
|
-
e.stopPropagation();
|
|
91
|
-
return c.onDbRowClick(item);
|
|
92
|
-
}
|
|
93
|
-
}, null);
|
|
94
|
-
}
|
|
85
|
+
const itemClass = [this.ns.b("item"), this.ns.is("active", findIndex !== -1)];
|
|
86
|
+
const style = this.calcItemStyle(item);
|
|
95
87
|
return createVNode(resolveComponent("iBizControlShell"), {
|
|
88
|
+
"class": itemClass,
|
|
96
89
|
"data": item.deData,
|
|
97
90
|
"modelData": modelData,
|
|
98
91
|
"context": context,
|
|
99
|
-
"params": params
|
|
92
|
+
"params": params,
|
|
93
|
+
"style": style,
|
|
94
|
+
"onClick": (e) => {
|
|
95
|
+
e.stopPropagation();
|
|
96
|
+
return this.c.onRowClick(item);
|
|
97
|
+
},
|
|
98
|
+
"onDblclick": (e) => {
|
|
99
|
+
e.stopPropagation();
|
|
100
|
+
return this.c.onDbRowClick(item);
|
|
101
|
+
}
|
|
100
102
|
}, null);
|
|
101
103
|
};
|
|
102
104
|
const renderDefaultItem = (item) => {
|
|
103
|
-
const {
|
|
104
|
-
calendarStyle
|
|
105
|
-
} = c.model;
|
|
106
|
-
const findIndex = c.state.selectedData.findIndex((data) => {
|
|
105
|
+
const findIndex = this.c.state.selectedData.findIndex((data) => {
|
|
107
106
|
return data.deData.srfkey === item.deData.srfkey;
|
|
108
107
|
});
|
|
109
|
-
const itemClass = [ns.b("item"), ns.is("active", findIndex !== -1)];
|
|
110
|
-
const style = calcItemStyle(item);
|
|
111
|
-
if (calendarStyle === "TIMELINE") {
|
|
112
|
-
return createVNode("div", {
|
|
113
|
-
"class": itemClass,
|
|
114
|
-
"key": item.deData.srfkey,
|
|
115
|
-
"style": style,
|
|
116
|
-
"onClick": () => c.onRowClick(item),
|
|
117
|
-
"onDblclick": () => c.onDbRowClick(item)
|
|
118
|
-
}, ["".concat(item.text)]);
|
|
119
|
-
}
|
|
108
|
+
const itemClass = [this.ns.b("item"), this.ns.is("active", findIndex !== -1)];
|
|
109
|
+
const style = this.calcItemStyle(item);
|
|
120
110
|
return createVNode("div", {
|
|
121
|
-
"
|
|
111
|
+
"class": itemClass,
|
|
112
|
+
"key": item.deData.srfkey,
|
|
113
|
+
"style": style,
|
|
114
|
+
"title": item.tips || item.text,
|
|
115
|
+
"onClick": () => this.c.onRowClick(item),
|
|
116
|
+
"onDblclick": () => this.c.onDbRowClick(item)
|
|
122
117
|
}, [item.text]);
|
|
123
118
|
};
|
|
119
|
+
const renderCalendarItem = (item) => {
|
|
120
|
+
var _a;
|
|
121
|
+
const model = (_a = this.c.model.sysCalendarItems) == null ? void 0 : _a.find((calendarItems) => {
|
|
122
|
+
return item.itemType === calendarItems.itemType;
|
|
123
|
+
});
|
|
124
|
+
const panel = model.layoutPanel;
|
|
125
|
+
return panel ? renderPanelItem(item, panel) : renderDefaultItem(item);
|
|
126
|
+
};
|
|
127
|
+
const renderCalendarList = (items) => {
|
|
128
|
+
if (items.length > 1) {
|
|
129
|
+
return [renderCalendarItem(items[0]), createVNode(resolveComponent("el-popover"), {
|
|
130
|
+
"trigger": "click",
|
|
131
|
+
"visible": this.popoverVisible,
|
|
132
|
+
"onUpdate:visible": ($event) => this.popoverVisible = $event
|
|
133
|
+
}, {
|
|
134
|
+
reference: () => {
|
|
135
|
+
return createVNode("span", {
|
|
136
|
+
"class": this.ns.b("more")
|
|
137
|
+
}, ["+".concat(items.length - 1, " ").concat(ibiz.i18n.t("app.more"), "...")]);
|
|
138
|
+
},
|
|
139
|
+
default: () => {
|
|
140
|
+
return items.map((item) => {
|
|
141
|
+
return renderCalendarItem(item);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
})];
|
|
145
|
+
}
|
|
146
|
+
return items.map((item) => {
|
|
147
|
+
return renderCalendarItem(item);
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const renderCalendarItems = (date) => {
|
|
151
|
+
const dateString = dayjs(date).format("YYYY-MM-DD");
|
|
152
|
+
const items = this.c.state.items.filter((item) => {
|
|
153
|
+
const begin = new Date(item.beginTime);
|
|
154
|
+
return dateString === dayjs(begin).format("YYYY-MM-DD");
|
|
155
|
+
});
|
|
156
|
+
return renderCalendarList(items);
|
|
157
|
+
};
|
|
124
158
|
const renderElCalender = () => {
|
|
159
|
+
return createVNode("div", {
|
|
160
|
+
"class": this.ns.b("content")
|
|
161
|
+
}, [createVNode(resolveComponent("el-calendar"), {
|
|
162
|
+
"modelValue": this.c.state.selectedDate,
|
|
163
|
+
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
164
|
+
"ref": "calendarRef"
|
|
165
|
+
}, {
|
|
166
|
+
header: ({
|
|
167
|
+
date
|
|
168
|
+
}) => {
|
|
169
|
+
var _a;
|
|
170
|
+
let _slot, _slot2, _slot3, _slot4, _slot5;
|
|
171
|
+
return [createVNode("span", {
|
|
172
|
+
"class": this.ns.b("content-title")
|
|
173
|
+
}, [date]), createVNode("div", {
|
|
174
|
+
"class": this.ns.b("content-header")
|
|
175
|
+
}, [createVNode(resolveComponent("el-date-picker"), {
|
|
176
|
+
"modelValue": this.c.state.selectedDate,
|
|
177
|
+
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
178
|
+
"type": "month"
|
|
179
|
+
}, null), createVNode(resolveComponent("el-button-group"), null, {
|
|
180
|
+
default: () => [createVNode(resolveComponent("el-button"), {
|
|
181
|
+
"onClick": () => {
|
|
182
|
+
this.selectDate("prev-year");
|
|
183
|
+
}
|
|
184
|
+
}, _isSlot(_slot = ibiz.i18n.t("control.calendar.lastYear")) ? _slot : {
|
|
185
|
+
default: () => [_slot]
|
|
186
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
187
|
+
"onClick": () => {
|
|
188
|
+
this.selectDate("prev-month");
|
|
189
|
+
}
|
|
190
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("control.calendar.lastMonth")) ? _slot2 : {
|
|
191
|
+
default: () => [_slot2]
|
|
192
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
193
|
+
"onClick": () => {
|
|
194
|
+
this.selectDate("today");
|
|
195
|
+
}
|
|
196
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("control.calendar.today")) ? _slot3 : {
|
|
197
|
+
default: () => [_slot3]
|
|
198
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
199
|
+
"onClick": () => {
|
|
200
|
+
this.selectDate("next-month");
|
|
201
|
+
}
|
|
202
|
+
}, _isSlot(_slot4 = ibiz.i18n.t("control.calendar.nextMonth")) ? _slot4 : {
|
|
203
|
+
default: () => [_slot4]
|
|
204
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
205
|
+
"onClick": () => {
|
|
206
|
+
this.selectDate("next-year");
|
|
207
|
+
}
|
|
208
|
+
}, _isSlot(_slot5 = ibiz.i18n.t("control.calendar.nextYear")) ? _slot5 : {
|
|
209
|
+
default: () => [_slot5]
|
|
210
|
+
})]
|
|
211
|
+
})]), createVNode("div", {
|
|
212
|
+
"class": this.ns.b("legend")
|
|
213
|
+
}, [this.c.model.sysCalendarItems && this.c.model.sysCalendarItems.length > 1 && ((_a = this.c.model.sysCalendarItems) == null ? void 0 : _a.map((calendarItem) => {
|
|
214
|
+
let label = calendarItem.name;
|
|
215
|
+
if (calendarItem.nameLanguageRes) {
|
|
216
|
+
label = ibiz.i18n.t(calendarItem.nameLanguageRes.lanResTag, calendarItem.name);
|
|
217
|
+
}
|
|
218
|
+
return createVNode("div", {
|
|
219
|
+
"class": this.ns.e("calendar-item")
|
|
220
|
+
}, [createVNode("div", {
|
|
221
|
+
"class": this.ns.e("icon"),
|
|
222
|
+
"style": {
|
|
223
|
+
background: calendarItem.bkcolor,
|
|
224
|
+
color: calendarItem.color
|
|
225
|
+
}
|
|
226
|
+
}, null), label]);
|
|
227
|
+
}))])];
|
|
228
|
+
},
|
|
229
|
+
"date-cell": ({
|
|
230
|
+
data
|
|
231
|
+
}) => {
|
|
232
|
+
const {
|
|
233
|
+
date
|
|
234
|
+
} = data;
|
|
235
|
+
return createVNode("div", {
|
|
236
|
+
"class": this.ns.b("day")
|
|
237
|
+
}, [createVNode("p", {
|
|
238
|
+
"class": this.ns.b("date-text")
|
|
239
|
+
}, [date.getDate()]), createVNode("div", {
|
|
240
|
+
"class": this.ns.b("items")
|
|
241
|
+
}, [renderCalendarItems(date)])]);
|
|
242
|
+
}
|
|
243
|
+
})]);
|
|
244
|
+
};
|
|
245
|
+
const renderNoData = () => {
|
|
246
|
+
const {
|
|
247
|
+
isLoaded
|
|
248
|
+
} = this.c.state;
|
|
249
|
+
return isLoaded && createVNode(resolveComponent("iBizNoData"), {
|
|
250
|
+
"text": this.c.model.emptyText,
|
|
251
|
+
"emptyTextLanguageRes": this.c.model.emptyTextLanguageRes,
|
|
252
|
+
"enableShowImage": this.c.state.hideNoDataImage
|
|
253
|
+
}, null);
|
|
254
|
+
};
|
|
255
|
+
const renderWeekDay = () => {
|
|
125
256
|
const slots = {};
|
|
126
257
|
const {
|
|
127
258
|
sysCalendarItems
|
|
128
|
-
} = c.model;
|
|
259
|
+
} = this.c.model;
|
|
129
260
|
slots.event = ({
|
|
130
261
|
data
|
|
131
262
|
}) => {
|
|
132
263
|
const targetCalendarItem = sysCalendarItems == null ? void 0 : sysCalendarItems.find((item) => {
|
|
133
264
|
return item.id === data.itemType;
|
|
134
265
|
});
|
|
135
|
-
if (
|
|
266
|
+
if (targetCalendarItem && targetCalendarItem.layoutPanel) {
|
|
136
267
|
return renderPanelItem(data, targetCalendarItem.layoutPanel);
|
|
137
268
|
}
|
|
138
269
|
return renderDefaultItem(data);
|
|
139
270
|
};
|
|
140
271
|
return createVNode("div", {
|
|
141
|
-
"class": ns.b("content")
|
|
272
|
+
"class": this.ns.b("content")
|
|
142
273
|
}, [createVNode(IBizCustomCalendar, {
|
|
143
|
-
"modelValue": c.state.selectedDate,
|
|
144
|
-
"onUpdate:modelValue": ($event) => c.state.selectedDate = $event,
|
|
145
|
-
"
|
|
274
|
+
"modelValue": this.c.state.selectedDate,
|
|
275
|
+
"onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
|
|
276
|
+
"showDetail": this.c.state.showDetail,
|
|
277
|
+
"calendarTitle": this.c.state.calendarTitle,
|
|
146
278
|
"ref": "calendarRef",
|
|
147
|
-
"viewType": c.model.calendarStyle,
|
|
148
|
-
"events": c.state.items,
|
|
149
|
-
"legends": c.state.legends,
|
|
150
|
-
"multiple": !c.state.singleSelect,
|
|
151
|
-
"selectedData": c.state.selectedData,
|
|
279
|
+
"viewType": this.c.model.calendarStyle,
|
|
280
|
+
"events": this.c.state.items,
|
|
281
|
+
"legends": this.c.state.legends,
|
|
282
|
+
"multiple": !this.c.state.singleSelect,
|
|
283
|
+
"selectedData": this.c.state.selectedData,
|
|
152
284
|
"onEventClick": (value) => {
|
|
153
285
|
const {
|
|
154
286
|
data
|
|
155
287
|
} = value;
|
|
156
|
-
c.onRowClick(data[0]);
|
|
288
|
+
this.c.onRowClick(data[0]);
|
|
157
289
|
},
|
|
158
290
|
"onEventDblClick": (value) => {
|
|
159
291
|
const {
|
|
160
292
|
data
|
|
161
293
|
} = value;
|
|
162
|
-
c.onDbRowClick(data[0]);
|
|
294
|
+
this.c.onDbRowClick(data[0]);
|
|
163
295
|
}
|
|
164
296
|
}, _isSlot(slots) ? slots : {
|
|
165
297
|
default: () => [slots]
|
|
166
298
|
})]);
|
|
167
299
|
};
|
|
168
|
-
const renderNoData = () => {
|
|
169
|
-
const {
|
|
170
|
-
isLoaded
|
|
171
|
-
} = c.state;
|
|
172
|
-
return isLoaded && createVNode(resolveComponent("iBizNoData"), {
|
|
173
|
-
"text": c.model.emptyText,
|
|
174
|
-
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
175
|
-
}, null);
|
|
176
|
-
};
|
|
177
300
|
const renderTimeLine = () => {
|
|
178
301
|
return createVNode("div", {
|
|
179
|
-
"class": ns.b("timeline-content")
|
|
302
|
+
"class": this.ns.b("timeline-content")
|
|
180
303
|
}, [createVNode(resolveComponent("el-timeline"), null, {
|
|
181
|
-
default: () => [c.state.items.length > 0 ? c.state.items.map((item) => {
|
|
304
|
+
default: () => [this.c.state.items.length > 0 ? this.c.state.items.map((item) => {
|
|
182
305
|
var _a;
|
|
183
|
-
const model = (_a = c.model.sysCalendarItems) == null ? void 0 : _a.find((calendarItems) => {
|
|
306
|
+
const model = (_a = this.c.model.sysCalendarItems) == null ? void 0 : _a.find((calendarItems) => {
|
|
184
307
|
return item.itemType === calendarItems.itemType;
|
|
185
308
|
});
|
|
186
309
|
return createVNode(resolveComponent("el-timeline-item"), {
|
|
@@ -195,27 +318,21 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
195
318
|
})]);
|
|
196
319
|
};
|
|
197
320
|
const renderCalendar = () => {
|
|
198
|
-
switch (c.model.calendarStyle) {
|
|
321
|
+
switch (this.c.model.calendarStyle) {
|
|
199
322
|
case "TIMELINE":
|
|
200
323
|
return renderTimeLine();
|
|
324
|
+
case "WEEK":
|
|
325
|
+
case "DAY":
|
|
326
|
+
return renderWeekDay();
|
|
327
|
+
case "MONTH":
|
|
201
328
|
default:
|
|
202
329
|
return renderElCalender();
|
|
203
330
|
}
|
|
204
331
|
};
|
|
205
|
-
return {
|
|
206
|
-
c,
|
|
207
|
-
ns,
|
|
208
|
-
calendarRef,
|
|
209
|
-
selectDate,
|
|
210
|
-
renderCalendar
|
|
211
|
-
};
|
|
212
|
-
},
|
|
213
|
-
render() {
|
|
214
|
-
let _slot;
|
|
215
332
|
return createVNode(resolveComponent("iBizControlBase"), {
|
|
216
333
|
"controller": this.c
|
|
217
|
-
}, _isSlot(
|
|
218
|
-
default: () => [
|
|
334
|
+
}, _isSlot(_slot6 = renderCalendar()) ? _slot6 : {
|
|
335
|
+
default: () => [_slot6]
|
|
219
336
|
});
|
|
220
337
|
}
|
|
221
338
|
});
|
|
@@ -9,9 +9,9 @@ export declare const CalendarDaily: import("vue").DefineComponent<IParams, {
|
|
|
9
9
|
eventClick: (value: IParams) => IParams;
|
|
10
10
|
eventDblClick: (value: IParams) => IParams;
|
|
11
11
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<IParams>> & {
|
|
12
|
+
onPick?: ((value: import("dayjs").Dayjs) => any) | undefined;
|
|
12
13
|
onEventClick?: ((value: IParams) => any) | undefined;
|
|
13
14
|
onEventDblClick?: ((value: IParams) => any) | undefined;
|
|
14
|
-
onPick?: ((value: import("dayjs").Dayjs) => any) | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
[x: string]: any;
|
|
17
17
|
[x: symbol]: any;
|