@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { IBizDropdown } from './ibiz-dropdown/ibiz-dropdown.mjs';
|
|
2
|
+
export { IBizEmojiPicker } from './ibiz-emoji-picker/ibiz-emoji-picker.mjs';
|
|
2
3
|
export { DropDownListEditorController } from './dropdown-list-editor.controller.mjs';
|
|
3
4
|
export { DropDownListEditorProvider } from './dropdown-list-editor.provider.mjs';
|
|
4
5
|
|
package/es/editor/index.mjs
CHANGED
|
@@ -34,6 +34,7 @@ import { IBizInput } from './text-box/input/input.mjs';
|
|
|
34
34
|
import { IBizInputNumber } from './text-box/ibiz-input-number/ibiz-input-number.mjs';
|
|
35
35
|
import { IBizInputIP } from './text-box/ibiz-input-ip/ibiz-input-ip.mjs';
|
|
36
36
|
import { IBizDropdown } from './dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs';
|
|
37
|
+
import { IBizEmojiPicker } from './dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs';
|
|
37
38
|
import { IBizCheckbox } from './check-box/ibiz-checkbox/ibiz-checkbox.mjs';
|
|
38
39
|
import { IBizCheckboxList } from './check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs';
|
|
39
40
|
import { IBizRadio } from './radio-button-list/ibiz-radio/ibiz-radio.mjs';
|
|
@@ -100,6 +101,7 @@ const IBizEditor = {
|
|
|
100
101
|
v.component(IBizInputNumber.name, IBizInputNumber);
|
|
101
102
|
v.component(IBizInputIP.name, IBizInputIP);
|
|
102
103
|
v.component(IBizDropdown.name, IBizDropdown);
|
|
104
|
+
v.component(IBizEmojiPicker.name, IBizEmojiPicker);
|
|
103
105
|
v.component(IBizCheckbox.name, IBizCheckbox);
|
|
104
106
|
v.component(IBizCheckboxList.name, IBizCheckboxList);
|
|
105
107
|
v.component(IBizRadio.name, IBizRadio);
|
|
@@ -170,6 +172,10 @@ const IBizEditor = {
|
|
|
170
172
|
"MDROPDOWNLIST",
|
|
171
173
|
() => new DropDownListEditorProvider()
|
|
172
174
|
);
|
|
175
|
+
registerEditorProvider(
|
|
176
|
+
"DROPDOWNLIST_EMOJI_PICKER",
|
|
177
|
+
() => new DropDownListEditorProvider("EMOJI_PICKER")
|
|
178
|
+
);
|
|
173
179
|
registerEditorProvider("CHECKBOX", () => new CheckBoxEditorProvider());
|
|
174
180
|
registerEditorProvider(
|
|
175
181
|
"CHECKBOXLIST",
|
|
@@ -2,7 +2,7 @@ import { ref, watch, computed, resolveComponent, createVNode, defineComponent }
|
|
|
2
2
|
import { getSpanProps, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './span.css';
|
|
4
4
|
import { isNil } from 'ramda';
|
|
5
|
-
import { DataTypes } from '@ibiz-template/core';
|
|
5
|
+
import { DataTypes, isBase64, base64ToStr } from '@ibiz-template/core';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
8
8
|
|
|
@@ -74,6 +74,8 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
text.value = "".concat(newVal);
|
|
75
75
|
ibiz.log.error("".concat(newVal, " \u503C\u683C\u5F0F\u5316\u9519\u8BEF"));
|
|
76
76
|
}
|
|
77
|
+
} else if (Number.isNaN(Number(newVal)) && isBase64("".concat(newVal))) {
|
|
78
|
+
text.value = base64ToStr("".concat(newVal));
|
|
77
79
|
} else {
|
|
78
80
|
text.value = "".concat(newVal);
|
|
79
81
|
}
|
|
@@ -94,15 +94,6 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
emit("focus", e);
|
|
95
95
|
setEditable(true);
|
|
96
96
|
};
|
|
97
|
-
const onBlur = (e) => {
|
|
98
|
-
emit("blur", e);
|
|
99
|
-
setEditable(false);
|
|
100
|
-
};
|
|
101
|
-
const handleKeyUp = (e) => {
|
|
102
|
-
if (e && e.code === "Enter") {
|
|
103
|
-
emit("enter", e);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
97
|
const debounce = (func, wait) => {
|
|
107
98
|
let timeout;
|
|
108
99
|
return (...args) => {
|
|
@@ -117,9 +108,20 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
117
108
|
}
|
|
118
109
|
emit("change", data);
|
|
119
110
|
}, 300);
|
|
111
|
+
const onBlur = (e) => {
|
|
112
|
+
emit("blur", e);
|
|
113
|
+
if (enablethousands.value) {
|
|
114
|
+
debouncedOnInput(currentVal.value);
|
|
115
|
+
}
|
|
116
|
+
setEditable(false);
|
|
117
|
+
};
|
|
118
|
+
const handleKeyUp = (e) => {
|
|
119
|
+
if (e && e.code === "Enter") {
|
|
120
|
+
emit("enter", e);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
120
123
|
const onInput = (value) => {
|
|
121
124
|
currentVal.value = value;
|
|
122
|
-
debouncedOnInput(value);
|
|
123
125
|
};
|
|
124
126
|
return {
|
|
125
127
|
ns,
|
|
@@ -26,7 +26,7 @@ export declare const IBizInput: import("vue").DefineComponent<{
|
|
|
26
26
|
c: TextBoxEditorController;
|
|
27
27
|
ns: import("@ibiz-template/core").Namespace;
|
|
28
28
|
rows: import("vue").Ref<number>;
|
|
29
|
-
type: import("vue").ComputedRef<"string" | "text" | "
|
|
29
|
+
type: import("vue").ComputedRef<"string" | "text" | "password" | "textarea">;
|
|
30
30
|
items: import("vue").Ref<readonly {
|
|
31
31
|
value: string | number;
|
|
32
32
|
text: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isVNode, ref, computed, watch, onUnmounted, resolveComponent, createVNode, mergeProps, defineComponent } from 'vue';
|
|
2
2
|
import { getInputProps, getEditorEmits, useNamespace, useCodeListListen } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { isBase64, base64ToStr } from '@ibiz-template/core';
|
|
3
4
|
import { createUUID } from 'qx-util';
|
|
4
5
|
import './input.css';
|
|
5
6
|
|
|
@@ -57,6 +58,8 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
57
58
|
if (newVal !== oldVal) {
|
|
58
59
|
if (newVal == null) {
|
|
59
60
|
currentVal.value = "";
|
|
61
|
+
} else if (Number.isNaN(Number(newVal)) && isBase64("".concat(newVal))) {
|
|
62
|
+
currentVal.value = base64ToStr("".concat(newVal));
|
|
60
63
|
} else {
|
|
61
64
|
currentVal.value = newVal.toString();
|
|
62
65
|
}
|
|
@@ -165,7 +165,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ defineComponent({
|
|
|
165
165
|
}, this.$attrs), null), createVNode(resolveComponent("el-button"), {
|
|
166
166
|
"ref": "filterButtonRef",
|
|
167
167
|
"type": "primary",
|
|
168
|
-
"title": ibiz.i18n.t("app.edit"),
|
|
168
|
+
"title": ibiz.env.enableTitle ? ibiz.i18n.t("app.edit") : void 0,
|
|
169
169
|
"class": this.ns.b("filter"),
|
|
170
170
|
"onClick": () => this.triggerFilter()
|
|
171
171
|
}, {
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -1129,6 +1129,20 @@ declare const _default: {
|
|
|
1129
1129
|
actionToolbar: {
|
|
1130
1130
|
more: string;
|
|
1131
1131
|
};
|
|
1132
|
+
emojiSelect: {
|
|
1133
|
+
frequently: string;
|
|
1134
|
+
peoples: string;
|
|
1135
|
+
nature: string;
|
|
1136
|
+
foods: string;
|
|
1137
|
+
activity: string;
|
|
1138
|
+
objects: string;
|
|
1139
|
+
places: string;
|
|
1140
|
+
symbols: string;
|
|
1141
|
+
flags: string;
|
|
1142
|
+
};
|
|
1143
|
+
formItemContainer: {
|
|
1144
|
+
more: string;
|
|
1145
|
+
};
|
|
1132
1146
|
};
|
|
1133
1147
|
editor: {
|
|
1134
1148
|
common: {
|
|
@@ -1176,6 +1190,9 @@ declare const _default: {
|
|
|
1176
1190
|
uploadJsonFormatErr: string;
|
|
1177
1191
|
exportJsonFormatErr: string;
|
|
1178
1192
|
};
|
|
1193
|
+
emojiPicker: {
|
|
1194
|
+
addEmoji: string;
|
|
1195
|
+
};
|
|
1179
1196
|
};
|
|
1180
1197
|
panelComponent: {
|
|
1181
1198
|
authUserinfo: {
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -463,6 +463,20 @@ var index = {
|
|
|
463
463
|
},
|
|
464
464
|
actionToolbar: {
|
|
465
465
|
more: "More"
|
|
466
|
+
},
|
|
467
|
+
emojiSelect: {
|
|
468
|
+
frequently: "Frequently",
|
|
469
|
+
peoples: "Peoples",
|
|
470
|
+
nature: "Nature",
|
|
471
|
+
foods: "Foods",
|
|
472
|
+
activity: "Activity",
|
|
473
|
+
objects: "Objects",
|
|
474
|
+
places: "Places",
|
|
475
|
+
symbols: "Symbols",
|
|
476
|
+
flags: "Flags"
|
|
477
|
+
},
|
|
478
|
+
formItemContainer: {
|
|
479
|
+
more: "More"
|
|
466
480
|
}
|
|
467
481
|
},
|
|
468
482
|
// 编辑器
|
|
@@ -511,6 +525,9 @@ var index = {
|
|
|
511
525
|
fileSizeErr: "The file size cannot exceed",
|
|
512
526
|
uploadJsonFormatErr: "The configuration of uploadparams did not follow the standard JSON format",
|
|
513
527
|
exportJsonFormatErr: "The configuration of exportparams did not follow the standard JSON format"
|
|
528
|
+
},
|
|
529
|
+
emojiPicker: {
|
|
530
|
+
addEmoji: "Add emoji"
|
|
514
531
|
}
|
|
515
532
|
},
|
|
516
533
|
panelComponent: {
|
|
@@ -1123,6 +1123,20 @@ declare const _default: {
|
|
|
1123
1123
|
actionToolbar: {
|
|
1124
1124
|
more: string;
|
|
1125
1125
|
};
|
|
1126
|
+
emojiSelect: {
|
|
1127
|
+
frequently: string;
|
|
1128
|
+
peoples: string;
|
|
1129
|
+
nature: string;
|
|
1130
|
+
foods: string;
|
|
1131
|
+
activity: string;
|
|
1132
|
+
objects: string;
|
|
1133
|
+
places: string;
|
|
1134
|
+
symbols: string;
|
|
1135
|
+
flags: string;
|
|
1136
|
+
};
|
|
1137
|
+
formItemContainer: {
|
|
1138
|
+
more: string;
|
|
1139
|
+
};
|
|
1126
1140
|
};
|
|
1127
1141
|
editor: {
|
|
1128
1142
|
common: {
|
|
@@ -1170,6 +1184,9 @@ declare const _default: {
|
|
|
1170
1184
|
uploadJsonFormatErr: string;
|
|
1171
1185
|
exportJsonFormatErr: string;
|
|
1172
1186
|
};
|
|
1187
|
+
emojiPicker: {
|
|
1188
|
+
addEmoji: string;
|
|
1189
|
+
};
|
|
1173
1190
|
};
|
|
1174
1191
|
panelComponent: {
|
|
1175
1192
|
authUserinfo: {
|
|
@@ -459,6 +459,20 @@ var index = {
|
|
|
459
459
|
},
|
|
460
460
|
actionToolbar: {
|
|
461
461
|
more: "\u66F4\u591A"
|
|
462
|
+
},
|
|
463
|
+
emojiSelect: {
|
|
464
|
+
frequently: "\u5E38\u7528",
|
|
465
|
+
peoples: "\u60C5\u7EEA",
|
|
466
|
+
nature: "\u81EA\u7136",
|
|
467
|
+
foods: "\u98DF\u7269\u4E0E\u996E\u6599",
|
|
468
|
+
activity: "\u6D3B\u52A8",
|
|
469
|
+
objects: "\u5BF9\u8C61",
|
|
470
|
+
places: "\u65C5\u884C\u4E0E\u5730\u65B9",
|
|
471
|
+
symbols: "\u7B26\u53F7",
|
|
472
|
+
flags: "\u65D7\u5E1C"
|
|
473
|
+
},
|
|
474
|
+
formItemContainer: {
|
|
475
|
+
more: "\u66F4\u591A"
|
|
462
476
|
}
|
|
463
477
|
},
|
|
464
478
|
// 编辑器
|
|
@@ -507,6 +521,9 @@ var index = {
|
|
|
507
521
|
fileSizeErr: "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7",
|
|
508
522
|
uploadJsonFormatErr: "\u914D\u7F6Euploadparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F",
|
|
509
523
|
exportJsonFormatErr: "\u914D\u7F6Eexportparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
524
|
+
},
|
|
525
|
+
emojiPicker: {
|
|
526
|
+
addEmoji: "\u6DFB\u52A0\u8868\u60C5"
|
|
510
527
|
}
|
|
511
528
|
},
|
|
512
529
|
panelComponent: {
|
|
@@ -80,4 +80,11 @@ export declare class NavTabsController extends PanelItemController<IPanelRawItem
|
|
|
80
80
|
* @date 2023-05-09 02:50:01
|
|
81
81
|
*/
|
|
82
82
|
removeAll(): void;
|
|
83
|
+
/**
|
|
84
|
+
* 刷新项(解决主信息更新之后界面ui未刷新)
|
|
85
|
+
*
|
|
86
|
+
* @author tony001
|
|
87
|
+
* @date 2024-06-28 08:06:11
|
|
88
|
+
*/
|
|
89
|
+
refreshItemUI(): void;
|
|
83
90
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
2
|
import { isNil, reject } from 'ramda';
|
|
3
|
+
import { nextTick } from 'vue';
|
|
3
4
|
import { NavTabsState } from './nav-tabs.state.mjs';
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
@@ -58,6 +59,7 @@ class NavTabsController extends PanelItemController {
|
|
|
58
59
|
const findItem = this.findTabItem(key);
|
|
59
60
|
if (findItem) {
|
|
60
61
|
Object.assign(findItem, reject(isNil, info));
|
|
62
|
+
this.refreshItemUI();
|
|
61
63
|
} else {
|
|
62
64
|
this.state.tabItems.push({ key, ...info });
|
|
63
65
|
this.state.activeTab = this.state.currentKey;
|
|
@@ -116,6 +118,24 @@ class NavTabsController extends PanelItemController {
|
|
|
116
118
|
(_a = this.navPos) == null ? void 0 : _a.closeViewByKeys(removeKeys);
|
|
117
119
|
}
|
|
118
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* 刷新项(解决主信息更新之后界面ui未刷新)
|
|
123
|
+
*
|
|
124
|
+
* @author tony001
|
|
125
|
+
* @date 2024-06-28 08:06:11
|
|
126
|
+
*/
|
|
127
|
+
refreshItemUI() {
|
|
128
|
+
const tempItem = {
|
|
129
|
+
key: "exampleItem",
|
|
130
|
+
caption: ""
|
|
131
|
+
};
|
|
132
|
+
this.state.tabItems.push(tempItem);
|
|
133
|
+
this.state.activeTab = tempItem.key;
|
|
134
|
+
nextTick(() => {
|
|
135
|
+
this.state.tabItems.pop();
|
|
136
|
+
this.state.activeTab = this.state.tabItems[this.state.tabItems.length - 1].key;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
export { NavTabsController };
|
|
@@ -101,7 +101,7 @@ const PanelButton = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
}, [createVNode(resolveComponent("el-button"), {
|
|
102
102
|
"type": this.buttonType,
|
|
103
103
|
"text": this.isText,
|
|
104
|
-
"title": this.tooltip,
|
|
104
|
+
"title": ibiz.env.enableTitle ? this.tooltip : void 0,
|
|
105
105
|
"disabled": this.state.disabled,
|
|
106
106
|
"loading": this.state.loading,
|
|
107
107
|
"onClick": this.handleButtonClick
|
|
@@ -61,9 +61,10 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
61
61
|
}
|
|
62
62
|
this.view.slotProps.toolbar.manualCalcButtonState = true;
|
|
63
63
|
modal.hooks.shouldDismiss.tapPromise(async (context) => {
|
|
64
|
+
var _a, _b;
|
|
64
65
|
const uiDomain = ibiz.uiDomainManager.get(this.view.context.srfsessionid);
|
|
65
|
-
const isChange = (this.form.state.modified || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
66
|
-
if (isChange && this.form.model.enableAutoSave && !uiDomain.dataModification) {
|
|
66
|
+
const isChange = (((_a = this.form) == null ? void 0 : _a.state.modified) || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
67
|
+
if (isChange && ((_b = this.form) == null ? void 0 : _b.model.enableAutoSave) && !uiDomain.dataModification) {
|
|
67
68
|
await this.form.immediateAutoSave();
|
|
68
69
|
} else if (isChange && context.allowClose == null) {
|
|
69
70
|
const isAllow = await ibiz.confirm.error({
|
|
@@ -30,8 +30,9 @@ class OptViewEngine extends ViewEngineBase {
|
|
|
30
30
|
}
|
|
31
31
|
this.view.slotProps.toolbar.manualCalcButtonState = true;
|
|
32
32
|
modal.hooks.shouldDismiss.tapPromise(async (context) => {
|
|
33
|
+
var _a;
|
|
33
34
|
const uiDomain = ibiz.uiDomainManager.get(this.view.context.srfsessionid);
|
|
34
|
-
const isChange = (this.form.state.modified || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
35
|
+
const isChange = (((_a = this.form) == null ? void 0 : _a.state.modified) || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
|
|
35
36
|
if (isChange && context.allowClose == null) {
|
|
36
37
|
const isAllow = await ibiz.confirm.error({
|
|
37
38
|
title: ibiz.i18n.t("viewEngine.closeRemind"),
|
|
@@ -39,6 +39,7 @@ class PickupTreeViewEngine extends TreeViewEngine {
|
|
|
39
39
|
this.view.slotProps.tree = {};
|
|
40
40
|
}
|
|
41
41
|
this.view.slotProps.tree.singleSelect = this.view.state.singleSelect;
|
|
42
|
+
this.view.slotProps.tree.checkStrictly = this.view.state.checkStrictly;
|
|
42
43
|
if (this.view.state.selectedData) {
|
|
43
44
|
this.selectData = this.view.state.selectedData.map((item) => {
|
|
44
45
|
return {
|
|
@@ -6,7 +6,8 @@ const envMap = /* @__PURE__ */ new Map([
|
|
|
6
6
|
["baseUrl", "BaseUrl"],
|
|
7
7
|
["remoteModelUrl", "remoteDynaPath"],
|
|
8
8
|
["dcSystem", "mockDcSystemId"],
|
|
9
|
-
["enablePermission", "enablePermissionValid"]
|
|
9
|
+
["enablePermission", "enablePermissionValid"],
|
|
10
|
+
["enableTitle", "enableTitle"]
|
|
10
11
|
]);
|
|
11
12
|
async function attachEnvironmentConfig() {
|
|
12
13
|
const env = window.Environment;
|
|
@@ -106,7 +106,7 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
106
|
"text": true,
|
|
107
107
|
"size": "small",
|
|
108
108
|
"onClick": (e) => this.handleClick(detail, e),
|
|
109
|
-
"title": detail.tooltip,
|
|
109
|
+
"title": ibiz.env.enableTitle ? detail.tooltip : void 0,
|
|
110
110
|
"disabled": this.actionsState[detail.id].disabled,
|
|
111
111
|
"class": this.calcActionItemClass(detail)
|
|
112
112
|
}, {
|
|
@@ -126,7 +126,7 @@ const CustomTheme = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
126
|
}, [c.predefineType.map((item) => {
|
|
127
127
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
128
128
|
"color": item.color,
|
|
129
|
-
"title": ibiz.i18n.t("control.common.customTheme.".concat(item.labelLang)),
|
|
129
|
+
"title": ibiz.env.enableTitle ? ibiz.i18n.t("control.common.customTheme.".concat(item.labelLang)) : void 0,
|
|
130
130
|
"onClick": () => {
|
|
131
131
|
handleThemeChange(item.codeName);
|
|
132
132
|
}
|
|
@@ -415,7 +415,10 @@ const DataImport2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
415
415
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
416
416
|
"onClick": this.onButtonImportClick,
|
|
417
417
|
"disabled": !this.selectValues.join(""),
|
|
418
|
-
"title":
|
|
418
|
+
"title": (
|
|
419
|
+
// eslint-disable-next-line no-nested-ternary
|
|
420
|
+
ibiz.env.enableTitle ? !this.selectValues.join("") ? ibiz.i18n.t("component.dataImport2.selectProperties") : "" : void 0
|
|
421
|
+
)
|
|
419
422
|
}, _isSlot(_slot2 = ibiz.i18n.t("component.dataImport2.import")) ? _slot2 : {
|
|
420
423
|
default: () => [_slot2]
|
|
421
424
|
})]) : ""])])])]), vue.createVNode(vue.resolveComponent("data-import2-table"), {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./categories.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const Categories = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
name: "IBizCategories",
|
|
10
|
+
props: {
|
|
11
|
+
categories: {
|
|
12
|
+
type: Array,
|
|
13
|
+
required: true,
|
|
14
|
+
default: () => []
|
|
15
|
+
},
|
|
16
|
+
current: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["select"],
|
|
22
|
+
setup(props, {
|
|
23
|
+
emit
|
|
24
|
+
}) {
|
|
25
|
+
const ns = vue3Util.useNamespace("emoji-categories");
|
|
26
|
+
const onSelect = (category) => {
|
|
27
|
+
emit("select", category);
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
ns,
|
|
31
|
+
onSelect
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
render() {
|
|
35
|
+
return vue.createVNode("div", {
|
|
36
|
+
"class": this.ns.b()
|
|
37
|
+
}, [this.categories.map((category) => {
|
|
38
|
+
return vue.createVNode("div", {
|
|
39
|
+
"class": [this.ns.e("category"), this.ns.is("active", category.name === this.current)],
|
|
40
|
+
"onClick": () => this.onSelect(category)
|
|
41
|
+
}, [vue.createVNode("span", {
|
|
42
|
+
"class": this.ns.em("category", "svg"),
|
|
43
|
+
"title": category.label,
|
|
44
|
+
"innerHTML": category.icon
|
|
45
|
+
}, null)]);
|
|
46
|
+
})]);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
exports.Categories = Categories;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-emoji-categories{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-base-loose);overflow-x:auto;background-color:var(--ibiz-color-bg-0)}.ibiz-emoji-categories__category{display:flex;align-items:center;min-width:var(--ibiz-font-size-header-6);height:100%;font-size:var(--ibiz-font-size-header-6);cursor:pointer}.ibiz-emoji-categories__category--svg{line-height:var(--ibiz-font-size-header-6)}.ibiz-emoji-categories__category--svg svg{fill:var(--ibiz-color-text-3)}.ibiz-emoji-categories__category.is-active,.ibiz-emoji-categories__category:hover{position:relative}.ibiz-emoji-categories__category.is-active::after,.ibiz-emoji-categories__category:hover::after{position:absolute;bottom:0;display:block;width:100%;content:"";border-top:.125rem solid var(--ibiz-color-primary)}.ibiz-emoji-categories__category:hover{color:var(--ibiz-color-primary)}.ibiz-emoji-categories__category:hover svg{fill:var(--ibiz-color-primary)}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./category-label.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const CategoryLabel = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
name: "IBizCategoryLabel",
|
|
10
|
+
props: {
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["select"],
|
|
17
|
+
setup() {
|
|
18
|
+
const ns = vue3Util.useNamespace("emoji-category-label");
|
|
19
|
+
return {
|
|
20
|
+
ns
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
render() {
|
|
24
|
+
return vue.createVNode("div", {
|
|
25
|
+
"class": this.ns.b()
|
|
26
|
+
}, [this.name]);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
exports.CategoryLabel = CategoryLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-emoji-category-label{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-text-3);text-transform:uppercase}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./emoji-item.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const EmojiItem = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
name: "IBizEmojiItem",
|
|
10
|
+
props: {
|
|
11
|
+
emoji: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: true,
|
|
14
|
+
default: () => {
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
type: Number,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
withBorder: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["click"],
|
|
27
|
+
setup(props, {
|
|
28
|
+
emit
|
|
29
|
+
}) {
|
|
30
|
+
const ns = vue3Util.useNamespace("emoji-item");
|
|
31
|
+
const styleSize = vue.computed(() => {
|
|
32
|
+
return {
|
|
33
|
+
fontSize: "".concat(props.size - 5, "px"),
|
|
34
|
+
lineHeight: "".concat(props.size, "px"),
|
|
35
|
+
height: "".concat(props.size, "px"),
|
|
36
|
+
width: "".concat(props.size, "px")
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
const onClick = () => {
|
|
40
|
+
emit("click", props.emoji);
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
ns,
|
|
44
|
+
styleSize,
|
|
45
|
+
onClick
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
render() {
|
|
49
|
+
return vue.createVNode("span", {
|
|
50
|
+
"class": [this.ns.b(), this.ns.is("border", this.withBorder)],
|
|
51
|
+
"style": this.styleSize,
|
|
52
|
+
"onClick": this.onClick,
|
|
53
|
+
"innerHTML": this.emoji.data
|
|
54
|
+
}, null);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.EmojiItem = EmojiItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-emoji-item{box-sizing:content-box;display:flex;align-items:center;justify-self:center;padding:var(--ibiz-spacing-tight);overflow:hidden;cursor:pointer}.ibiz-emoji-item.is-border:hover{background:var(--ibiz-color-bg-0);border-radius:var(--ibiz-border-radius-small)}
|