@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
|
@@ -31,6 +31,42 @@ const IBizPickerEmbedView = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
31
|
setViewParam();
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
+
const editorParams = c.model.editorParams;
|
|
35
|
+
const singleSelect = vue.ref(true);
|
|
36
|
+
const checkStrictly = vue.ref(true);
|
|
37
|
+
const isShowText = vue.ref(true);
|
|
38
|
+
if (editorParams) {
|
|
39
|
+
if (editorParams.multiple) {
|
|
40
|
+
singleSelect.value = !c.toBoolean(editorParams.multiple);
|
|
41
|
+
}
|
|
42
|
+
if (editorParams.checkStrictly) {
|
|
43
|
+
checkStrictly.value = c.toBoolean(editorParams.checkStrictly);
|
|
44
|
+
}
|
|
45
|
+
if (editorParams.isShowText) {
|
|
46
|
+
isShowText.value = c.toBoolean(editorParams.isShowText);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const selectedData = vue.ref([]);
|
|
50
|
+
vue.watch(() => props.value, (newVal) => {
|
|
51
|
+
var _a, _b, _c, _d;
|
|
52
|
+
selectedData.value = [];
|
|
53
|
+
if (newVal) {
|
|
54
|
+
if (c.valueItem) {
|
|
55
|
+
const tempValue = (_c = (_b = (_a = props.data) == null ? void 0 : _a[c.valueItem]) == null ? void 0 : _b.split) == null ? void 0 : _c.call(_b, ",");
|
|
56
|
+
const tempText = (_d = newVal == null ? void 0 : newVal.split) == null ? void 0 : _d.call(newVal, ",");
|
|
57
|
+
if (tempValue && tempText) {
|
|
58
|
+
selectedData.value = tempValue.map((srfkey, index) => {
|
|
59
|
+
return {
|
|
60
|
+
srfkey,
|
|
61
|
+
srfmajortext: tempText[index]
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
immediate: true
|
|
69
|
+
});
|
|
34
70
|
const onViewDataChange = (event) => {
|
|
35
71
|
let tempValue = "";
|
|
36
72
|
let temText = "";
|
|
@@ -63,14 +99,18 @@ const IBizPickerEmbedView = /* @__PURE__ */ vue.defineComponent({
|
|
|
63
99
|
params,
|
|
64
100
|
onSelectionChange,
|
|
65
101
|
editorRef,
|
|
66
|
-
pickupViewModel
|
|
102
|
+
pickupViewModel,
|
|
103
|
+
singleSelect,
|
|
104
|
+
checkStrictly,
|
|
105
|
+
isShowText,
|
|
106
|
+
selectedData
|
|
67
107
|
};
|
|
68
108
|
},
|
|
69
109
|
render() {
|
|
70
110
|
var _a;
|
|
71
111
|
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
72
112
|
return vue.createVNode("div", {
|
|
73
|
-
"class": [this.ns.b()],
|
|
113
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : ""],
|
|
74
114
|
"ref": "editorRef"
|
|
75
115
|
}, [this.pickupViewModel ? [vue.createVNode("div", {
|
|
76
116
|
"class": this.ns.b("view")
|
|
@@ -78,8 +118,13 @@ const IBizPickerEmbedView = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
118
|
context: this.context,
|
|
79
119
|
params: this.params,
|
|
80
120
|
viewId: (_a = this.c.pickupView) == null ? void 0 : _a.id,
|
|
121
|
+
state: {
|
|
122
|
+
singleSelect: this.singleSelect,
|
|
123
|
+
checkStrictly: this.checkStrictly,
|
|
124
|
+
selectedData: this.selectedData
|
|
125
|
+
},
|
|
81
126
|
onSelectionChange: this.onSelectionChange
|
|
82
|
-
})]), vue.createVNode("div", {
|
|
127
|
+
})]), this.isShowText && vue.createVNode("div", {
|
|
83
128
|
"class": this.ns.b("value")
|
|
84
129
|
}, [this.$props.value ? this.$props.value.split(",").map((item) => {
|
|
85
130
|
return vue.createVNode("span", null, [item, vue.createTextVNode("; ")]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-picker-embed-view .ibiz-picker-embed-view-value{height:var(--ibiz-form-item-line-height);line-height:var(--ibiz-form-item-line-height)}
|
|
1
|
+
.ibiz-picker-embed-view--disabled{cursor:not-allowed}.ibiz-picker-embed-view--disabled *{pointer-events:none;cursor:not-allowed}.ibiz-picker-embed-view--disabled .el-tree-node__expand-icon{pointer-events:all;cursor:pointer}.ibiz-picker-embed-view .ibiz-picker-embed-view-value{height:var(--ibiz-form-item-line-height);line-height:var(--ibiz-form-item-line-height)}
|
|
@@ -268,8 +268,8 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
268
268
|
const openLinkView = async (e) => {
|
|
269
269
|
e.stopPropagation();
|
|
270
270
|
const res = await c.openLinkView(props.data);
|
|
271
|
-
if (res) {
|
|
272
|
-
onViewDataChange(res);
|
|
271
|
+
if (res && res.ok && res.data) {
|
|
272
|
+
onViewDataChange(res.data);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
const onSelectChange = (selects) => {
|
|
@@ -26,9 +26,15 @@ class DropDownListEditorController extends runtime.CodeListEditorController {
|
|
|
26
26
|
* @Date: 2024-03-12 14:33:14
|
|
27
27
|
*/
|
|
28
28
|
__publicField(this, "forceSelection", true);
|
|
29
|
+
/**
|
|
30
|
+
* 预置项空白项名称
|
|
31
|
+
*
|
|
32
|
+
* @memberof DropDownListEditorController
|
|
33
|
+
*/
|
|
34
|
+
__publicField(this, "blankItemName", "");
|
|
29
35
|
}
|
|
30
36
|
async onInit() {
|
|
31
|
-
var _a;
|
|
37
|
+
var _a, _b;
|
|
32
38
|
super.onInit();
|
|
33
39
|
if (this.model.editorType === "MDROPDOWNLIST") {
|
|
34
40
|
this.multiple = true;
|
|
@@ -36,6 +42,9 @@ class DropDownListEditorController extends runtime.CodeListEditorController {
|
|
|
36
42
|
if ((_a = this.editorParams) == null ? void 0 : _a.forceSelection) {
|
|
37
43
|
this.forceSelection = this.toBoolean(this.editorParams.forceSelection);
|
|
38
44
|
}
|
|
45
|
+
if ((_b = this.editorParams) == null ? void 0 : _b.blankItemName) {
|
|
46
|
+
this.blankItemName = this.editorParams.blankItemName;
|
|
47
|
+
}
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
50
|
|
|
@@ -10,9 +10,18 @@ var __publicField = (obj, key, value) => {
|
|
|
10
10
|
return value;
|
|
11
11
|
};
|
|
12
12
|
class DropDownListEditorProvider {
|
|
13
|
-
constructor() {
|
|
13
|
+
constructor(editorType) {
|
|
14
14
|
__publicField(this, "formEditor", "IBizDropdown");
|
|
15
15
|
__publicField(this, "gridEditor", "IBizDropdown");
|
|
16
|
+
let componentName = "IBizDropdown";
|
|
17
|
+
switch (editorType) {
|
|
18
|
+
case "EMOJI_PICKER":
|
|
19
|
+
componentName = "IBizEmojiPicker";
|
|
20
|
+
break;
|
|
21
|
+
default:
|
|
22
|
+
}
|
|
23
|
+
this.formEditor = componentName;
|
|
24
|
+
this.gridEditor = componentName;
|
|
16
25
|
}
|
|
17
26
|
async createController(editorModel, parentController) {
|
|
18
27
|
const c = new dropdownListEditor_controller.DropDownListEditorController(editorModel, parentController);
|
|
@@ -46,10 +46,11 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
}
|
|
47
47
|
const list = [];
|
|
48
48
|
nodes.forEach((codeItem) => {
|
|
49
|
+
var _a;
|
|
49
50
|
codeListItems.value.push(codeItem);
|
|
50
51
|
const tempObj = {
|
|
51
52
|
label: codeItem.text,
|
|
52
|
-
value: codeItem.value.toString(),
|
|
53
|
+
value: (_a = codeItem.value) == null ? void 0 : _a.toString(),
|
|
53
54
|
color: codeItem == null ? void 0 : codeItem.color,
|
|
54
55
|
textCls: codeItem == null ? void 0 : codeItem.textCls,
|
|
55
56
|
sysImage: codeItem.sysImage,
|
|
@@ -74,7 +75,14 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
75
|
isLoading.value = true;
|
|
75
76
|
const codeList = await c.loadCodeList(props.data);
|
|
76
77
|
isLoadedCodeList.value = true;
|
|
77
|
-
|
|
78
|
+
if (c.blankItemName) {
|
|
79
|
+
items.value = [{
|
|
80
|
+
value: void 0,
|
|
81
|
+
text: c.blankItemName
|
|
82
|
+
}, ...codeList];
|
|
83
|
+
} else {
|
|
84
|
+
items.value = codeList;
|
|
85
|
+
}
|
|
78
86
|
for (let i = 0; i < items.value.length; i++) {
|
|
79
87
|
const _item = items.value[i];
|
|
80
88
|
if (_item.children) {
|
|
@@ -124,7 +132,11 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
124
132
|
}
|
|
125
133
|
return (_c = props.value) == null ? void 0 : _c.toString();
|
|
126
134
|
},
|
|
127
|
-
set(
|
|
135
|
+
set(_select) {
|
|
136
|
+
let select = _select;
|
|
137
|
+
if (c.blankItemName && !_select) {
|
|
138
|
+
select = void 0;
|
|
139
|
+
}
|
|
128
140
|
if (Array.isArray(select)) {
|
|
129
141
|
let selectArr = null;
|
|
130
142
|
if (select.length === 0) {
|
|
@@ -304,9 +316,10 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
304
316
|
}, this.$attrs), {
|
|
305
317
|
default: () => {
|
|
306
318
|
return this.items.map((item) => {
|
|
319
|
+
var _a;
|
|
307
320
|
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
308
321
|
"key": item.value,
|
|
309
|
-
"value": item.value.toString(),
|
|
322
|
+
"value": (_a = item.value) == null ? void 0 : _a.toString(),
|
|
310
323
|
"label": item.text,
|
|
311
324
|
"disabled": item.disableSelect === true,
|
|
312
325
|
"style": item.bkcolor ? this.ns.cssVarBlock({
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
6
|
+
require('./ibiz-emoji-picker.css');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const IBizEmojiPicker = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizEmojiPicker",
|
|
11
|
+
props: vue3Util.getDropdownProps(),
|
|
12
|
+
emits: vue3Util.getEditorEmits(),
|
|
13
|
+
setup(props, {
|
|
14
|
+
emit
|
|
15
|
+
}) {
|
|
16
|
+
const ns = vue3Util.useNamespace("emoji-picker");
|
|
17
|
+
const c = props.controller;
|
|
18
|
+
const emojiRef = vue.ref();
|
|
19
|
+
const emoji = vue.ref("");
|
|
20
|
+
const visible = vue.ref(false);
|
|
21
|
+
const showFormDefaultContent = vue.computed(() => {
|
|
22
|
+
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
return false;
|
|
26
|
+
});
|
|
27
|
+
const onAddEmoji = (e) => {
|
|
28
|
+
e.stopPropagation();
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
visible.value = true;
|
|
31
|
+
};
|
|
32
|
+
const onClearEmoji = (e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
emoji.value = "";
|
|
36
|
+
visible.value = false;
|
|
37
|
+
emit("change", "");
|
|
38
|
+
console.log("emojiRef", emojiRef.value);
|
|
39
|
+
emojiRef.value.click();
|
|
40
|
+
};
|
|
41
|
+
const onSelect = (val) => {
|
|
42
|
+
visible.value = false;
|
|
43
|
+
emoji.value = val.data;
|
|
44
|
+
emit("change", core.strToBase64(val.data));
|
|
45
|
+
};
|
|
46
|
+
vue.watch(() => props.value, (newVal, oldVal) => {
|
|
47
|
+
if (newVal !== oldVal) {
|
|
48
|
+
if (!newVal) {
|
|
49
|
+
emoji.value = "";
|
|
50
|
+
} else if (Number.isNaN(Number(newVal)) && core.isBase64("".concat(newVal))) {
|
|
51
|
+
emoji.value = core.base64ToStr("".concat(newVal));
|
|
52
|
+
} else {
|
|
53
|
+
emoji.value = newVal.toString();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
immediate: true
|
|
58
|
+
});
|
|
59
|
+
const renderButtonContent = () => {
|
|
60
|
+
let content = vue.createVNode("span", {
|
|
61
|
+
"class": [ns.e("button-content")],
|
|
62
|
+
"onClick": onAddEmoji
|
|
63
|
+
}, [vue.createVNode("svg", {
|
|
64
|
+
"class": ns.em("button-content", "icon"),
|
|
65
|
+
"viewBox": "0 0 1040 1024",
|
|
66
|
+
"version": "1.1",
|
|
67
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
68
|
+
"p-id": "1490",
|
|
69
|
+
"width": "1em",
|
|
70
|
+
"height": "1em"
|
|
71
|
+
}, [vue.createVNode("path", {
|
|
72
|
+
"d": "M512.075261 1024A511.774217 511.774217 0 1 1 730.482434 48.769072a37.630457 37.630457 0 1 1-32.061149 68.035867 436.513303 436.513303 0 1 0 250.468323 395.270322 37.630457 37.630457 0 0 1 75.260914 0 512.526826 512.526826 0 0 1-512.075261 511.924739z",
|
|
73
|
+
"p-id": "1491"
|
|
74
|
+
}, null), vue.createVNode("path", {
|
|
75
|
+
"d": "M333.857416 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.499339 57.499339 0 0 0-57.348817-57.348817zM686.53006 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.348817 57.348817 0 0 0-57.348817-57.348817zM515.236219 783.165074c-162.864619 0-262.359547-141.942084-262.359547-219.159782a30.104366 30.104366 0 0 1 60.208731 0c0 48.618551 76.314567 158.951051 202.150816 158.951051s193.571072-134.114949 193.571072-158.951051a30.104366 30.104366 0 0 1 60.208731 0c0 54.488902-90.012054 219.159782-253.779803 219.159782zM1009.549904 207.720123h-67.132735V139.985301a30.104366 30.104366 0 1 0-60.208732 0v67.734822h-67.734822a30.104366 30.104366 0 0 0-30.104366 30.104366 30.104366 30.104366 0 0 0 30.104366 30.104366h67.734822v67.734823a30.104366 30.104366 0 0 0 60.208732 0v-67.734823h67.734823a30.104366 30.104366 0 0 0 30.104365-30.104366 30.104366 30.104366 0 0 0-30.706453-30.104366z",
|
|
76
|
+
"p-id": "1492"
|
|
77
|
+
}, null)]), ibiz.i18n.t("editor.emojiPicker.addEmoji")]);
|
|
78
|
+
if (emoji.value) {
|
|
79
|
+
content = vue.createVNode("span", {
|
|
80
|
+
"class": [ns.e("button-content")]
|
|
81
|
+
}, [vue.createVNode("svg", {
|
|
82
|
+
"class": ns.em("button-content", "icon"),
|
|
83
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
84
|
+
"viewBox": "0 0 1024 1024",
|
|
85
|
+
"width": "1em",
|
|
86
|
+
"height": "1em",
|
|
87
|
+
"onClick": onClearEmoji
|
|
88
|
+
}, [vue.createVNode("path", {
|
|
89
|
+
"d": "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
90
|
+
}, null)]), vue.createVNode("span", {
|
|
91
|
+
"innerHTML": emoji.value
|
|
92
|
+
}, null)]);
|
|
93
|
+
}
|
|
94
|
+
return content;
|
|
95
|
+
};
|
|
96
|
+
const renderFormDefaultContent = () => {
|
|
97
|
+
return vue.createVNode("div", {
|
|
98
|
+
"class": [ns.b("form-default-content"), ns.is("clear", !!emoji.value)]
|
|
99
|
+
}, [emoji.value ? emoji.value : "-"]);
|
|
100
|
+
};
|
|
101
|
+
const renderReference = () => {
|
|
102
|
+
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
103
|
+
"class": [ns.e("button"), ns.is("clear", !!emoji.value)]
|
|
104
|
+
}, {
|
|
105
|
+
default: () => [showFormDefaultContent.value && renderFormDefaultContent(), renderButtonContent()]
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
ns,
|
|
110
|
+
c,
|
|
111
|
+
emoji,
|
|
112
|
+
visible,
|
|
113
|
+
emojiRef,
|
|
114
|
+
showFormDefaultContent,
|
|
115
|
+
onSelect,
|
|
116
|
+
onAddEmoji,
|
|
117
|
+
onClearEmoji,
|
|
118
|
+
renderReference
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
render() {
|
|
122
|
+
return vue.createVNode("div", {
|
|
123
|
+
"ref": "emojiRef",
|
|
124
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("active", this.visible), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
125
|
+
}, [vue.createVNode(vue.resolveComponent("el-popover"), {
|
|
126
|
+
"trigger": "click",
|
|
127
|
+
"placement": "bottom-start",
|
|
128
|
+
"width": "auto",
|
|
129
|
+
"visible": this.visible,
|
|
130
|
+
"onUpdate:visible": ($event) => this.visible = $event,
|
|
131
|
+
"hide-after": 0,
|
|
132
|
+
"popper-class": [this.ns.b("popper")]
|
|
133
|
+
}, {
|
|
134
|
+
reference: () => this.renderReference(),
|
|
135
|
+
default: () => {
|
|
136
|
+
return vue.createVNode(vue.resolveComponent("iBizEmojiSelect"), {
|
|
137
|
+
"continuousList": true,
|
|
138
|
+
"dark": true,
|
|
139
|
+
"onSelect": this.onSelect
|
|
140
|
+
}, null);
|
|
141
|
+
}
|
|
142
|
+
})]);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
exports.IBizEmojiPicker = IBizEmojiPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-emoji-picker{display:flex;align-items:center;width:100%;height:100%}.ibiz-emoji-picker__button-content{display:flex;align-items:center;min-height:var(--ibiz-height-control-default)}.ibiz-emoji-picker__button-content--icon{margin-right:var(--ibiz-spacing-extra-tight);fill:var(--ibiz-color-primary-text)}.ibiz-emoji-picker__button.is-clear{position:relative;padding:var(--ibiz-spacing-none);padding-right:var(--ibiz-spacing-base-tight);color:var(--ibiz-color-text-0);background-color:transparent}.ibiz-emoji-picker__button.is-clear:hover .ibiz-emoji-picker__button-content--icon{display:block}.ibiz-emoji-picker__button.is-clear .ibiz-emoji-picker__button-content--icon{position:absolute;top:0;right:0;display:none;margin-right:0;font-size:var(--ibiz-font-size-regular);fill:var(--ibiz-color-text-3)}.ibiz-emoji-picker__button.is-clear .ibiz-emoji-picker__button-content--icon:hover{fill:var(--ibiz-color-primary)}.ibiz-emoji-picker--readonly{display:flex;align-items:center;line-height:32px}.ibiz-emoji-picker--readonly .ibiz-emoji-picker__button{padding:0;color:var(--ibiz-form-item-readonly-color);pointer-events:none;cursor:default}.ibiz-emoji-picker--readonly .ibiz-emoji-picker__button .ibiz-emoji-picker__button-content{display:none}.ibiz-emoji-picker--readonly .is-clear.ibiz-emoji-picker__button .ibiz-emoji-picker__button-content{display:flex}.ibiz-emoji-picker--readonly .is-clear.ibiz-emoji-picker__button .ibiz-emoji-picker__button-content--icon{display:none}.ibiz-emoji-picker-popper.el-popper.el-popper{width:auto;padding:0}.ibiz-form-item .ibiz-emoji-picker.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}.ibiz-form-item .ibiz-emoji-picker.is-show-default.is-active .ibiz-emoji-picker-form-default-content,.ibiz-form-item .ibiz-emoji-picker.is-show-default:hover .ibiz-emoji-picker-form-default-content{display:none}.ibiz-form-item .ibiz-emoji-picker.is-show-default.is-active .ibiz-emoji-picker__button,.ibiz-form-item .ibiz-emoji-picker.is-show-default:hover .ibiz-emoji-picker__button{padding:8px 15px;pointer-events:auto;background-color:var(--ibiz-color-primary)}.ibiz-form-item .ibiz-emoji-picker.is-show-default.is-active .ibiz-emoji-picker__button.is-clear,.ibiz-form-item .ibiz-emoji-picker.is-show-default:hover .ibiz-emoji-picker__button.is-clear{padding:var(--ibiz-spacing-none);padding-right:var(--ibiz-spacing-base-tight);background-color:transparent}.ibiz-form-item .ibiz-emoji-picker.is-show-default.is-active .ibiz-emoji-picker__button-content,.ibiz-form-item .ibiz-emoji-picker.is-show-default:hover .ibiz-emoji-picker__button-content{display:flex}.ibiz-form-item .ibiz-emoji-picker.is-show-default .ibiz-emoji-picker__button{padding:var(--ibiz-spacing-none);pointer-events:none;background:0 0}.ibiz-form-item .ibiz-emoji-picker.is-show-default .ibiz-emoji-picker-form-default-content{display:flex;align-items:center;width:100%;font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-emoji-picker.is-show-default .ibiz-emoji-picker-form-default-content.is-clear{padding:var(--ibiz-spacing-none);padding-right:var(--ibiz-spacing-base-tight);background-color:transparent}.ibiz-form-item .ibiz-emoji-picker.is-show-default .ibiz-emoji-picker__button-content{display:none}.ibiz-form-item .ibiz-emoji-picker.is-show-default.is-editable .ibiz-emoji-picker-form-default-content{display:none}.ibiz-form-item .ibiz-emoji-picker.is-show-default.is-editable .ibiz-emoji-picker__button-content{display:flex}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ibizDropdown = require('./ibiz-dropdown/ibiz-dropdown.cjs');
|
|
4
|
+
var ibizEmojiPicker = require('./ibiz-emoji-picker/ibiz-emoji-picker.cjs');
|
|
4
5
|
var dropdownListEditor_controller = require('./dropdown-list-editor.controller.cjs');
|
|
5
6
|
var dropdownListEditor_provider = require('./dropdown-list-editor.provider.cjs');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
8
9
|
|
|
9
10
|
exports.IBizDropdown = ibizDropdown.IBizDropdown;
|
|
11
|
+
exports.IBizEmojiPicker = ibizEmojiPicker.IBizEmojiPicker;
|
|
10
12
|
exports.DropDownListEditorController = dropdownListEditor_controller.DropDownListEditorController;
|
|
11
13
|
exports.DropDownListEditorProvider = dropdownListEditor_provider.DropDownListEditorProvider;
|
package/lib/editor/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ var input = require('./text-box/input/input.cjs');
|
|
|
38
38
|
var ibizInputNumber = require('./text-box/ibiz-input-number/ibiz-input-number.cjs');
|
|
39
39
|
var ibizInputIp = require('./text-box/ibiz-input-ip/ibiz-input-ip.cjs');
|
|
40
40
|
var ibizDropdown = require('./dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs');
|
|
41
|
+
var ibizEmojiPicker = require('./dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs');
|
|
41
42
|
var ibizCheckbox = require('./check-box/ibiz-checkbox/ibiz-checkbox.cjs');
|
|
42
43
|
var ibizCheckboxList = require('./check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs');
|
|
43
44
|
var ibizRadio = require('./radio-button-list/ibiz-radio/ibiz-radio.cjs');
|
|
@@ -104,6 +105,7 @@ const IBizEditor = {
|
|
|
104
105
|
v.component(ibizInputNumber.IBizInputNumber.name, ibizInputNumber.IBizInputNumber);
|
|
105
106
|
v.component(ibizInputIp.IBizInputIP.name, ibizInputIp.IBizInputIP);
|
|
106
107
|
v.component(ibizDropdown.IBizDropdown.name, ibizDropdown.IBizDropdown);
|
|
108
|
+
v.component(ibizEmojiPicker.IBizEmojiPicker.name, ibizEmojiPicker.IBizEmojiPicker);
|
|
107
109
|
v.component(ibizCheckbox.IBizCheckbox.name, ibizCheckbox.IBizCheckbox);
|
|
108
110
|
v.component(ibizCheckboxList.IBizCheckboxList.name, ibizCheckboxList.IBizCheckboxList);
|
|
109
111
|
v.component(ibizRadio.IBizRadio.name, ibizRadio.IBizRadio);
|
|
@@ -174,6 +176,10 @@ const IBizEditor = {
|
|
|
174
176
|
"MDROPDOWNLIST",
|
|
175
177
|
() => new dropdownListEditor_provider.DropDownListEditorProvider()
|
|
176
178
|
);
|
|
179
|
+
runtime.registerEditorProvider(
|
|
180
|
+
"DROPDOWNLIST_EMOJI_PICKER",
|
|
181
|
+
() => new dropdownListEditor_provider.DropDownListEditorProvider("EMOJI_PICKER")
|
|
182
|
+
);
|
|
177
183
|
runtime.registerEditorProvider("CHECKBOX", () => new checkBoxEditor_provider.CheckBoxEditorProvider());
|
|
178
184
|
runtime.registerEditorProvider(
|
|
179
185
|
"CHECKBOXLIST",
|
|
@@ -76,6 +76,8 @@ const IBizSpan = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
76
|
text.value = "".concat(newVal);
|
|
77
77
|
ibiz.log.error("".concat(newVal, " \u503C\u683C\u5F0F\u5316\u9519\u8BEF"));
|
|
78
78
|
}
|
|
79
|
+
} else if (Number.isNaN(Number(newVal)) && core.isBase64("".concat(newVal))) {
|
|
80
|
+
text.value = core.base64ToStr("".concat(newVal));
|
|
79
81
|
} else {
|
|
80
82
|
text.value = "".concat(newVal);
|
|
81
83
|
}
|
|
@@ -96,15 +96,6 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
|
96
96
|
emit("focus", e);
|
|
97
97
|
setEditable(true);
|
|
98
98
|
};
|
|
99
|
-
const onBlur = (e) => {
|
|
100
|
-
emit("blur", e);
|
|
101
|
-
setEditable(false);
|
|
102
|
-
};
|
|
103
|
-
const handleKeyUp = (e) => {
|
|
104
|
-
if (e && e.code === "Enter") {
|
|
105
|
-
emit("enter", e);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
99
|
const debounce = (func, wait) => {
|
|
109
100
|
let timeout;
|
|
110
101
|
return (...args) => {
|
|
@@ -119,9 +110,20 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
110
|
}
|
|
120
111
|
emit("change", data);
|
|
121
112
|
}, 300);
|
|
113
|
+
const onBlur = (e) => {
|
|
114
|
+
emit("blur", e);
|
|
115
|
+
if (enablethousands.value) {
|
|
116
|
+
debouncedOnInput(currentVal.value);
|
|
117
|
+
}
|
|
118
|
+
setEditable(false);
|
|
119
|
+
};
|
|
120
|
+
const handleKeyUp = (e) => {
|
|
121
|
+
if (e && e.code === "Enter") {
|
|
122
|
+
emit("enter", e);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
122
125
|
const onInput = (value) => {
|
|
123
126
|
currentVal.value = value;
|
|
124
|
-
debouncedOnInput(value);
|
|
125
127
|
};
|
|
126
128
|
return {
|
|
127
129
|
ns,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
5
6
|
var qxUtil = require('qx-util');
|
|
6
7
|
require('./input.css');
|
|
7
8
|
|
|
@@ -59,6 +60,8 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
59
60
|
if (newVal !== oldVal) {
|
|
60
61
|
if (newVal == null) {
|
|
61
62
|
currentVal.value = "";
|
|
63
|
+
} else if (Number.isNaN(Number(newVal)) && core.isBase64("".concat(newVal))) {
|
|
64
|
+
currentVal.value = core.base64ToStr("".concat(newVal));
|
|
62
65
|
} else {
|
|
63
66
|
currentVal.value = newVal.toString();
|
|
64
67
|
}
|
|
@@ -167,7 +167,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
|
|
|
167
167
|
}, this.$attrs), null), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
168
168
|
"ref": "filterButtonRef",
|
|
169
169
|
"type": "primary",
|
|
170
|
-
"title": ibiz.i18n.t("app.edit"),
|
|
170
|
+
"title": ibiz.env.enableTitle ? ibiz.i18n.t("app.edit") : void 0,
|
|
171
171
|
"class": this.ns.b("filter"),
|
|
172
172
|
"onClick": () => this.triggerFilter()
|
|
173
173
|
}, {
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -467,6 +467,20 @@ var index = {
|
|
|
467
467
|
},
|
|
468
468
|
actionToolbar: {
|
|
469
469
|
more: "More"
|
|
470
|
+
},
|
|
471
|
+
emojiSelect: {
|
|
472
|
+
frequently: "Frequently",
|
|
473
|
+
peoples: "Peoples",
|
|
474
|
+
nature: "Nature",
|
|
475
|
+
foods: "Foods",
|
|
476
|
+
activity: "Activity",
|
|
477
|
+
objects: "Objects",
|
|
478
|
+
places: "Places",
|
|
479
|
+
symbols: "Symbols",
|
|
480
|
+
flags: "Flags"
|
|
481
|
+
},
|
|
482
|
+
formItemContainer: {
|
|
483
|
+
more: "More"
|
|
470
484
|
}
|
|
471
485
|
},
|
|
472
486
|
// 编辑器
|
|
@@ -515,6 +529,9 @@ var index = {
|
|
|
515
529
|
fileSizeErr: "The file size cannot exceed",
|
|
516
530
|
uploadJsonFormatErr: "The configuration of uploadparams did not follow the standard JSON format",
|
|
517
531
|
exportJsonFormatErr: "The configuration of exportparams did not follow the standard JSON format"
|
|
532
|
+
},
|
|
533
|
+
emojiPicker: {
|
|
534
|
+
addEmoji: "Add emoji"
|
|
518
535
|
}
|
|
519
536
|
},
|
|
520
537
|
panelComponent: {
|
|
@@ -463,6 +463,20 @@ var index = {
|
|
|
463
463
|
},
|
|
464
464
|
actionToolbar: {
|
|
465
465
|
more: "\u66F4\u591A"
|
|
466
|
+
},
|
|
467
|
+
emojiSelect: {
|
|
468
|
+
frequently: "\u5E38\u7528",
|
|
469
|
+
peoples: "\u60C5\u7EEA",
|
|
470
|
+
nature: "\u81EA\u7136",
|
|
471
|
+
foods: "\u98DF\u7269\u4E0E\u996E\u6599",
|
|
472
|
+
activity: "\u6D3B\u52A8",
|
|
473
|
+
objects: "\u5BF9\u8C61",
|
|
474
|
+
places: "\u65C5\u884C\u4E0E\u5730\u65B9",
|
|
475
|
+
symbols: "\u7B26\u53F7",
|
|
476
|
+
flags: "\u65D7\u5E1C"
|
|
477
|
+
},
|
|
478
|
+
formItemContainer: {
|
|
479
|
+
more: "\u66F4\u591A"
|
|
466
480
|
}
|
|
467
481
|
},
|
|
468
482
|
// 编辑器
|
|
@@ -511,6 +525,9 @@ var index = {
|
|
|
511
525
|
fileSizeErr: "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7",
|
|
512
526
|
uploadJsonFormatErr: "\u914D\u7F6Euploadparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F",
|
|
513
527
|
exportJsonFormatErr: "\u914D\u7F6Eexportparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
528
|
+
},
|
|
529
|
+
emojiPicker: {
|
|
530
|
+
addEmoji: "\u6DFB\u52A0\u8868\u60C5"
|
|
514
531
|
}
|
|
515
532
|
},
|
|
516
533
|
panelComponent: {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
var ramda = require('ramda');
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
var navTabs_state = require('./nav-tabs.state.cjs');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -60,6 +61,7 @@ class NavTabsController extends runtime.PanelItemController {
|
|
|
60
61
|
const findItem = this.findTabItem(key);
|
|
61
62
|
if (findItem) {
|
|
62
63
|
Object.assign(findItem, ramda.reject(ramda.isNil, info));
|
|
64
|
+
this.refreshItemUI();
|
|
63
65
|
} else {
|
|
64
66
|
this.state.tabItems.push({ key, ...info });
|
|
65
67
|
this.state.activeTab = this.state.currentKey;
|
|
@@ -118,6 +120,24 @@ class NavTabsController extends runtime.PanelItemController {
|
|
|
118
120
|
(_a = this.navPos) == null ? void 0 : _a.closeViewByKeys(removeKeys);
|
|
119
121
|
}
|
|
120
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* 刷新项(解决主信息更新之后界面ui未刷新)
|
|
125
|
+
*
|
|
126
|
+
* @author tony001
|
|
127
|
+
* @date 2024-06-28 08:06:11
|
|
128
|
+
*/
|
|
129
|
+
refreshItemUI() {
|
|
130
|
+
const tempItem = {
|
|
131
|
+
key: "exampleItem",
|
|
132
|
+
caption: ""
|
|
133
|
+
};
|
|
134
|
+
this.state.tabItems.push(tempItem);
|
|
135
|
+
this.state.activeTab = tempItem.key;
|
|
136
|
+
vue.nextTick(() => {
|
|
137
|
+
this.state.tabItems.pop();
|
|
138
|
+
this.state.activeTab = this.state.tabItems[this.state.tabItems.length - 1].key;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
121
141
|
}
|
|
122
142
|
|
|
123
143
|
exports.NavTabsController = NavTabsController;
|
|
@@ -105,7 +105,7 @@ const PanelButton = /* @__PURE__ */ vue.defineComponent({
|
|
|
105
105
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
106
106
|
"type": this.buttonType,
|
|
107
107
|
"text": this.isText,
|
|
108
|
-
"title": this.tooltip,
|
|
108
|
+
"title": ibiz.env.enableTitle ? this.tooltip : void 0,
|
|
109
109
|
"disabled": this.state.disabled,
|
|
110
110
|
"loading": this.state.loading,
|
|
111
111
|
"onClick": this.handleButtonClick
|
|
@@ -63,9 +63,10 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
63
63
|
}
|
|
64
64
|
this.view.slotProps.toolbar.manualCalcButtonState = true;
|
|
65
65
|
modal.hooks.shouldDismiss.tapPromise(async (context) => {
|
|
66
|
+
var _a, _b;
|
|
66
67
|
const uiDomain = ibiz.uiDomainManager.get(this.view.context.srfsessionid);
|
|
67
|
-
const isChange = (this.form.state.modified || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
68
|
-
if (isChange && this.form.model.enableAutoSave && !uiDomain.dataModification) {
|
|
68
|
+
const isChange = (((_a = this.form) == null ? void 0 : _a.state.modified) || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
69
|
+
if (isChange && ((_b = this.form) == null ? void 0 : _b.model.enableAutoSave) && !uiDomain.dataModification) {
|
|
69
70
|
await this.form.immediateAutoSave();
|
|
70
71
|
} else if (isChange && context.allowClose == null) {
|
|
71
72
|
const isAllow = await ibiz.confirm.error({
|
|
@@ -32,8 +32,9 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
32
32
|
}
|
|
33
33
|
this.view.slotProps.toolbar.manualCalcButtonState = true;
|
|
34
34
|
modal.hooks.shouldDismiss.tapPromise(async (context) => {
|
|
35
|
+
var _a;
|
|
35
36
|
const uiDomain = ibiz.uiDomainManager.get(this.view.context.srfsessionid);
|
|
36
|
-
const isChange = (this.form.state.modified || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
37
|
+
const isChange = (((_a = this.form) == null ? void 0 : _a.state.modified) || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
37
38
|
if (isChange && context.allowClose == null) {
|
|
38
39
|
const isAllow = await ibiz.confirm.error({
|
|
39
40
|
title: ibiz.i18n.t("viewEngine.closeRemind"),
|
|
@@ -41,6 +41,7 @@ class PickupTreeViewEngine extends treeView_engine.TreeViewEngine {
|
|
|
41
41
|
this.view.slotProps.tree = {};
|
|
42
42
|
}
|
|
43
43
|
this.view.slotProps.tree.singleSelect = this.view.state.singleSelect;
|
|
44
|
+
this.view.slotProps.tree.checkStrictly = this.view.state.checkStrictly;
|
|
44
45
|
if (this.view.state.selectedData) {
|
|
45
46
|
this.selectData = this.view.state.selectedData.map((item) => {
|
|
46
47
|
return {
|
|
@@ -8,7 +8,8 @@ const envMap = /* @__PURE__ */ new Map([
|
|
|
8
8
|
["baseUrl", "BaseUrl"],
|
|
9
9
|
["remoteModelUrl", "remoteDynaPath"],
|
|
10
10
|
["dcSystem", "mockDcSystemId"],
|
|
11
|
-
["enablePermission", "enablePermissionValid"]
|
|
11
|
+
["enablePermission", "enablePermissionValid"],
|
|
12
|
+
["enableTitle", "enableTitle"]
|
|
12
13
|
]);
|
|
13
14
|
async function attachEnvironmentConfig() {
|
|
14
15
|
const env = window.Environment;
|