@ibiz-template/vue3-components 0.7.27 → 0.7.28-alpha.1
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/chart-4KHwhatb.js +1 -0
- package/dist/index-5ZDQNjel.js +4 -0
- package/dist/{index-0TO7mjm5.js → index-HNRMy1_g.js} +1 -1
- package/dist/{index-g6o3vQXo.js → index-xa8K5AHD.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-YqnK5uQU.js +1 -0
- package/dist/{xlsx-util-qdXxbg2A.js → xlsx-util-nDELbrGS.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +4 -3
- package/es/common/custom-theme/custom-theme.mjs +3 -2
- package/es/common/data-import2/data-import2.mjs +2 -5
- package/es/common/emoji-select/components/categories/categories.mjs +2 -1
- package/es/common/extend-action-timeline/extend-action-timeline.mjs +3 -2
- package/es/common/grid-setting/grid-setting.mjs +2 -1
- package/es/common/index.mjs +2 -0
- package/es/common/pagination/pagination.mjs +2 -1
- package/es/common/quick-edit/quick-edit.css +1 -0
- package/es/common/quick-edit/quick-edit.d.ts +38 -0
- package/es/common/quick-edit/quick-edit.mjs +116 -0
- package/es/common/rawitem/rawitem.mjs +2 -1
- package/es/control/app-menu/app-menu.mjs +2 -2
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +2 -2
- package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +3 -2
- package/es/control/calendar/calendar.mjs +2 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +2 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +2 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +3 -2
- package/es/control/chart/chart.mjs +8 -0
- package/es/control/context-menu/context-menu.mjs +4 -3
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +0 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +2 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +5 -4
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +3 -2
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +2 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.mjs +2 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +2 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +3 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +2 -2
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +2 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +2 -1
- package/es/control/grid/grid/grid-control.util.d.ts +0 -2
- package/es/control/grid/grid/grid-control.util.mjs +9 -72
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +0 -2
- package/es/control/grid/grid/grid.mjs +1 -7
- package/es/control/grid/grid/index.d.ts +0 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +3 -2
- package/es/control/grid/row-edit-popover/row-edit-popover.d.ts +1 -1
- package/es/control/kanban/kanban.mjs +2 -2
- package/es/control/list/list.mjs +2 -1
- package/es/control/report-panel/report-panel.mjs +5 -0
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +1 -1
- package/es/control/search-bar/search-bar.mjs +3 -2
- package/es/control/search-bar/search-groups/search-groups.mjs +6 -6
- package/es/control/toolbar/export-excel/export-excel.mjs +3 -2
- package/es/control/toolbar/short-cut-button/short-cut-button.mjs +2 -4
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +150 -13
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +3 -2
- package/es/control/wizard-panel/wizard-panel.mjs +2 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
- package/es/editor/array/ibiz-array/ibiz-array.mjs +12 -3
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -4
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +2 -9
- package/es/editor/html/html-editor.controller.d.ts +88 -0
- package/es/editor/html/html-editor.controller.mjs +169 -6
- package/es/editor/html/wang-editor/component/emoji/emoji.css +1 -0
- package/es/editor/html/wang-editor/component/emoji/emoji.d.ts +17 -0
- package/es/editor/html/wang-editor/component/emoji/emoji.mjs +42 -0
- package/es/editor/html/wang-editor/component/index.d.ts +1 -0
- package/es/editor/html/wang-editor/component/index.mjs +3 -0
- package/es/editor/html/wang-editor/element/emoji.d.ts +7 -0
- package/es/editor/html/wang-editor/element/emoji.mjs +22 -0
- package/es/editor/html/wang-editor/element/index.d.ts +1 -0
- package/es/editor/html/wang-editor/element/index.mjs +3 -0
- package/es/editor/html/wang-editor/index.d.ts +4 -0
- package/es/editor/html/wang-editor/index.mjs +11 -0
- package/es/editor/html/wang-editor/module/ai-module.d.ts +67 -0
- package/es/editor/html/wang-editor/module/ai-module.mjs +76 -0
- package/es/editor/html/wang-editor/module/emoji-module.d.ts +7 -0
- package/es/editor/html/wang-editor/module/emoji-module.mjs +125 -0
- package/es/editor/html/wang-editor/module/index.d.ts +2 -0
- package/es/editor/html/wang-editor/module/index.mjs +4 -0
- package/es/editor/html/wang-editor/plugin/index.d.ts +1 -0
- package/es/editor/html/wang-editor/plugin/index.mjs +3 -0
- package/es/editor/html/wang-editor/plugin/plugin.d.ts +7 -0
- package/es/editor/html/wang-editor/plugin/plugin.mjs +23 -0
- package/es/editor/html/wang-editor/wang-editor.css +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +7 -7
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +10 -3
- package/es/editor/span/span/span.mjs +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +5 -2
- package/es/editor/text-box/input/input.d.ts +1 -0
- package/es/editor/text-box/input/input.mjs +17 -4
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +2 -1
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +1 -0
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.d.ts +1 -0
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.mjs +89 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.mjs +47 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.mjs +1 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.mjs +115 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.mjs +18 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.mjs +376 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.mjs +9 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.mjs +64 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.mjs +59 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.mjs +28 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.mjs +42 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.mjs +85 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.mjs +24 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.mjs +115 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.mjs +52 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.mjs +62 -0
- package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.mjs +6 -0
- package/es/panel-component/auth-captcha/auth-captcha.mjs +2 -1
- package/es/panel-component/panel-button/panel-button.mjs +2 -1
- package/es/panel-component/short-cut/short-cut.mjs +2 -2
- package/es/panel-component/user-action/user-action.mjs +2 -1
- package/es/panel-component/user-message/async-action/async-action/async-action.mjs +2 -1
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +2 -1
- package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.d.ts +1 -0
- package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.mjs +10 -4
- package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.provider.d.ts +1 -0
- package/es/panel-component/user-message/user-message.mjs +3 -2
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/util/notification-util/notification-util.mjs +3 -1
- package/es/util/wang-editor-util/wang-editor-util.d.ts +11 -0
- package/es/util/wang-editor-util/wang-editor-util.mjs +12 -0
- package/lib/common/action-toolbar/action-toolbar.cjs +4 -3
- package/lib/common/custom-theme/custom-theme.cjs +3 -2
- package/lib/common/data-import2/data-import2.cjs +1 -4
- package/lib/common/emoji-select/components/categories/categories.cjs +2 -1
- package/lib/common/extend-action-timeline/extend-action-timeline.cjs +3 -2
- package/lib/common/grid-setting/grid-setting.cjs +2 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/pagination/pagination.cjs +2 -1
- package/lib/common/quick-edit/quick-edit.cjs +118 -0
- package/lib/common/quick-edit/quick-edit.css +1 -0
- package/lib/common/rawitem/rawitem.cjs +2 -1
- package/lib/control/app-menu/app-menu.cjs +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -1
- package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +3 -2
- package/lib/control/calendar/calendar.cjs +2 -1
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +2 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +2 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +3 -2
- package/lib/control/chart/chart.cjs +8 -0
- package/lib/control/context-menu/context-menu.cjs +4 -3
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +2 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +5 -4
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +3 -2
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +2 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +2 -1
- package/lib/control/form/form-detail/form-button/form-button.cjs +2 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +3 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +2 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +2 -1
- package/lib/control/grid/grid/grid-control.util.cjs +9 -72
- package/lib/control/grid/grid/grid.cjs +1 -7
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -2
- package/lib/control/kanban/kanban.cjs +1 -1
- package/lib/control/list/list.cjs +2 -1
- package/lib/control/report-panel/report-panel.cjs +5 -0
- package/lib/control/search-bar/search-bar.cjs +3 -2
- package/lib/control/search-bar/search-groups/search-groups.cjs +5 -5
- package/lib/control/toolbar/export-excel/export-excel.cjs +3 -2
- package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +2 -4
- package/lib/control/toolbar/toolbar.cjs +150 -13
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -2
- package/lib/control/wizard-panel/wizard-panel.cjs +2 -1
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +12 -3
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -4
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -8
- package/lib/editor/html/html-editor.controller.cjs +169 -6
- package/lib/editor/html/wang-editor/component/emoji/emoji.cjs +44 -0
- package/lib/editor/html/wang-editor/component/emoji/emoji.css +1 -0
- package/lib/editor/html/wang-editor/component/index.cjs +7 -0
- package/lib/editor/html/wang-editor/element/emoji.cjs +24 -0
- package/lib/editor/html/wang-editor/element/index.cjs +7 -0
- package/lib/editor/html/wang-editor/index.cjs +19 -0
- package/lib/editor/html/wang-editor/module/ai-module.cjs +78 -0
- package/lib/editor/html/wang-editor/module/emoji-module.cjs +127 -0
- package/lib/editor/html/wang-editor/module/index.cjs +9 -0
- package/lib/editor/html/wang-editor/plugin/index.cjs +7 -0
- package/lib/editor/html/wang-editor/plugin/plugin.cjs +25 -0
- package/lib/editor/html/wang-editor/wang-editor.cjs +7 -7
- package/lib/editor/html/wang-editor/wang-editor.css +1 -1
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +10 -3
- package/lib/editor/span/span/span.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +5 -2
- package/lib/editor/text-box/input/input.cjs +16 -3
- package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -1
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.cjs +93 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.cjs +49 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.cjs +2 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.cjs +117 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.cjs +42 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.cjs +378 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.cjs +12 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.cjs +67 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.cjs +61 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.cjs +30 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.cjs +44 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.cjs +87 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.cjs +26 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.cjs +117 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.cjs +54 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.cjs +64 -0
- package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.cjs +8 -0
- package/lib/panel-component/auth-captcha/auth-captcha.cjs +2 -1
- package/lib/panel-component/panel-button/panel-button.cjs +2 -1
- package/lib/panel-component/short-cut/short-cut.cjs +1 -1
- package/lib/panel-component/user-action/user-action.cjs +2 -1
- package/lib/panel-component/user-message/async-action/async-action/async-action.cjs +2 -1
- package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +2 -1
- package/lib/panel-component/user-message/internal-message/internal-message-html/internal-message-html.cjs +9 -3
- package/lib/panel-component/user-message/user-message.cjs +3 -2
- package/lib/util/index.cjs +2 -0
- package/lib/util/notification-util/notification-util.cjs +3 -1
- package/lib/util/wang-editor-util/wang-editor-util.cjs +14 -0
- package/package.json +7 -6
- package/dist/chart-HuCq_rW2.js +0 -1
- package/dist/index-Dq21zXhV.js +0 -4
- package/dist/wang-editor-XpJH4SXt.js +0 -1
- package/es/editor/html/wang-editor/ai/ai-modules.d.ts +0 -10
- package/es/editor/html/wang-editor/ai/ai-modules.mjs +0 -32
- package/lib/editor/html/wang-editor/ai/ai-modules.cjs +0 -34
- /package/es/node_modules/.pnpm/{@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 → @ibiz-template_core@0.7.28-alpha.1_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.27_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.28-alpha.1_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,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function updateClass(oldVnode, vnode) {
|
|
4
|
+
let cur;
|
|
5
|
+
let name;
|
|
6
|
+
const elm = vnode.elm;
|
|
7
|
+
let oldClass = oldVnode.data.class;
|
|
8
|
+
let klass = vnode.data.class;
|
|
9
|
+
if (!oldClass && !klass)
|
|
10
|
+
return;
|
|
11
|
+
if (oldClass === klass)
|
|
12
|
+
return;
|
|
13
|
+
oldClass = oldClass || {};
|
|
14
|
+
klass = klass || {};
|
|
15
|
+
for (name in oldClass) {
|
|
16
|
+
if (oldClass[name] && !Object.prototype.hasOwnProperty.call(klass, name)) {
|
|
17
|
+
// was `true` and now not provided
|
|
18
|
+
elm.classList.remove(name);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
for (name in klass) {
|
|
22
|
+
cur = klass[name];
|
|
23
|
+
if (cur !== oldClass[name]) {
|
|
24
|
+
elm.classList[cur ? "add" : "remove"](name);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const classModule = { create: updateClass, update: updateClass };
|
|
29
|
+
|
|
30
|
+
exports.classModule = classModule;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CAPS_REGEX = /[A-Z]/g;
|
|
4
|
+
function updateDataset(oldVnode, vnode) {
|
|
5
|
+
const elm = vnode.elm;
|
|
6
|
+
let oldDataset = oldVnode.data.dataset;
|
|
7
|
+
let dataset = vnode.data.dataset;
|
|
8
|
+
let key;
|
|
9
|
+
if (!oldDataset && !dataset)
|
|
10
|
+
return;
|
|
11
|
+
if (oldDataset === dataset)
|
|
12
|
+
return;
|
|
13
|
+
oldDataset = oldDataset || {};
|
|
14
|
+
dataset = dataset || {};
|
|
15
|
+
const d = elm.dataset;
|
|
16
|
+
for (key in oldDataset) {
|
|
17
|
+
if (!dataset[key]) {
|
|
18
|
+
if (d) {
|
|
19
|
+
if (key in d) {
|
|
20
|
+
delete d[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
elm.removeAttribute("data-" + key.replace(CAPS_REGEX, "-$&").toLowerCase());
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
for (key in dataset) {
|
|
29
|
+
if (oldDataset[key] !== dataset[key]) {
|
|
30
|
+
if (d) {
|
|
31
|
+
d[key] = dataset[key];
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
elm.setAttribute("data-" + key.replace(CAPS_REGEX, "-$&").toLowerCase(), dataset[key]);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const datasetModule = {
|
|
40
|
+
create: updateDataset,
|
|
41
|
+
update: updateDataset,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.datasetModule = datasetModule;
|
package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.cjs
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function invokeHandler(handler, vnode, event) {
|
|
4
|
+
if (typeof handler === "function") {
|
|
5
|
+
// call function handler
|
|
6
|
+
handler.call(vnode, event, vnode);
|
|
7
|
+
}
|
|
8
|
+
else if (typeof handler === "object") {
|
|
9
|
+
// call multiple handlers
|
|
10
|
+
for (let i = 0; i < handler.length; i++) {
|
|
11
|
+
invokeHandler(handler[i], vnode, event);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function handleEvent(event, vnode) {
|
|
16
|
+
const name = event.type;
|
|
17
|
+
const on = vnode.data.on;
|
|
18
|
+
// call event handler(s) if exists
|
|
19
|
+
if (on && on[name]) {
|
|
20
|
+
invokeHandler(on[name], vnode, event);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function createListener() {
|
|
24
|
+
return function handler(event) {
|
|
25
|
+
handleEvent(event, handler.vnode);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function updateEventListeners(oldVnode, vnode) {
|
|
29
|
+
const oldOn = oldVnode.data.on;
|
|
30
|
+
const oldListener = oldVnode.listener;
|
|
31
|
+
const oldElm = oldVnode.elm;
|
|
32
|
+
const on = vnode && vnode.data.on;
|
|
33
|
+
const elm = (vnode && vnode.elm);
|
|
34
|
+
let name;
|
|
35
|
+
// optimization for reused immutable handlers
|
|
36
|
+
if (oldOn === on) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
// remove existing listeners which no longer used
|
|
40
|
+
if (oldOn && oldListener) {
|
|
41
|
+
// if element changed or deleted we remove all existing listeners unconditionally
|
|
42
|
+
if (!on) {
|
|
43
|
+
for (name in oldOn) {
|
|
44
|
+
// remove listener if element was changed or existing listeners removed
|
|
45
|
+
oldElm.removeEventListener(name, oldListener, false);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
for (name in oldOn) {
|
|
50
|
+
// remove listener if existing listener removed
|
|
51
|
+
if (!on[name]) {
|
|
52
|
+
oldElm.removeEventListener(name, oldListener, false);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// add new listeners which has not already attached
|
|
58
|
+
if (on) {
|
|
59
|
+
// reuse existing listener or create new
|
|
60
|
+
const listener = (vnode.listener =
|
|
61
|
+
oldVnode.listener || createListener());
|
|
62
|
+
// update vnode for listener
|
|
63
|
+
listener.vnode = vnode;
|
|
64
|
+
// if element changed or added we add all needed listeners unconditionally
|
|
65
|
+
if (!oldOn) {
|
|
66
|
+
for (name in on) {
|
|
67
|
+
// add listener if element was changed or new listeners added
|
|
68
|
+
elm.addEventListener(name, listener, false);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
for (name in on) {
|
|
73
|
+
// add listener if new listener added
|
|
74
|
+
if (!oldOn[name]) {
|
|
75
|
+
elm.addEventListener(name, listener, false);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const eventListenersModule = {
|
|
82
|
+
create: updateEventListeners,
|
|
83
|
+
update: updateEventListeners,
|
|
84
|
+
destroy: updateEventListeners,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
exports.eventListenersModule = eventListenersModule;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function updateProps(oldVnode, vnode) {
|
|
4
|
+
let key;
|
|
5
|
+
let cur;
|
|
6
|
+
let old;
|
|
7
|
+
const elm = vnode.elm;
|
|
8
|
+
let oldProps = oldVnode.data.props;
|
|
9
|
+
let props = vnode.data.props;
|
|
10
|
+
if (!oldProps && !props)
|
|
11
|
+
return;
|
|
12
|
+
if (oldProps === props)
|
|
13
|
+
return;
|
|
14
|
+
oldProps = oldProps || {};
|
|
15
|
+
props = props || {};
|
|
16
|
+
for (key in props) {
|
|
17
|
+
cur = props[key];
|
|
18
|
+
old = oldProps[key];
|
|
19
|
+
if (old !== cur && (key !== "value" || elm[key] !== cur)) {
|
|
20
|
+
elm[key] = cur;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const propsModule = { create: updateProps, update: updateProps };
|
|
25
|
+
|
|
26
|
+
exports.propsModule = propsModule;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Bindig `requestAnimationFrame` like this fixes a bug in IE/Edge. See #360 and #409.
|
|
4
|
+
const raf = (typeof window !== "undefined" &&
|
|
5
|
+
window.requestAnimationFrame.bind(window)) ||
|
|
6
|
+
setTimeout;
|
|
7
|
+
const nextFrame = function (fn) {
|
|
8
|
+
raf(function () {
|
|
9
|
+
raf(fn);
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
let reflowForced = false;
|
|
13
|
+
function setNextFrame(obj, prop, val) {
|
|
14
|
+
nextFrame(function () {
|
|
15
|
+
obj[prop] = val;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function updateStyle(oldVnode, vnode) {
|
|
19
|
+
let cur;
|
|
20
|
+
let name;
|
|
21
|
+
const elm = vnode.elm;
|
|
22
|
+
let oldStyle = oldVnode.data.style;
|
|
23
|
+
let style = vnode.data.style;
|
|
24
|
+
if (!oldStyle && !style)
|
|
25
|
+
return;
|
|
26
|
+
if (oldStyle === style)
|
|
27
|
+
return;
|
|
28
|
+
oldStyle = oldStyle || {};
|
|
29
|
+
style = style || {};
|
|
30
|
+
const oldHasDel = "delayed" in oldStyle;
|
|
31
|
+
for (name in oldStyle) {
|
|
32
|
+
if (!style[name]) {
|
|
33
|
+
if (name[0] === "-" && name[1] === "-") {
|
|
34
|
+
elm.style.removeProperty(name);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
elm.style[name] = "";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
for (name in style) {
|
|
42
|
+
cur = style[name];
|
|
43
|
+
if (name === "delayed" && style.delayed) {
|
|
44
|
+
for (const name2 in style.delayed) {
|
|
45
|
+
cur = style.delayed[name2];
|
|
46
|
+
if (!oldHasDel || cur !== oldStyle.delayed[name2]) {
|
|
47
|
+
setNextFrame(elm.style, name2, cur);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else if (name !== "remove" && cur !== oldStyle[name]) {
|
|
52
|
+
if (name[0] === "-" && name[1] === "-") {
|
|
53
|
+
elm.style.setProperty(name, cur);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
elm.style[name] = cur;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function applyDestroyStyle(vnode) {
|
|
62
|
+
let style;
|
|
63
|
+
let name;
|
|
64
|
+
const elm = vnode.elm;
|
|
65
|
+
const s = vnode.data.style;
|
|
66
|
+
if (!s || !(style = s.destroy))
|
|
67
|
+
return;
|
|
68
|
+
for (name in style) {
|
|
69
|
+
elm.style[name] = style[name];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function applyRemoveStyle(vnode, rm) {
|
|
73
|
+
const s = vnode.data.style;
|
|
74
|
+
if (!s || !s.remove) {
|
|
75
|
+
rm();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (!reflowForced) {
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
80
|
+
vnode.elm.offsetLeft;
|
|
81
|
+
reflowForced = true;
|
|
82
|
+
}
|
|
83
|
+
let name;
|
|
84
|
+
const elm = vnode.elm;
|
|
85
|
+
let i = 0;
|
|
86
|
+
const style = s.remove;
|
|
87
|
+
let amount = 0;
|
|
88
|
+
const applied = [];
|
|
89
|
+
for (name in style) {
|
|
90
|
+
applied.push(name);
|
|
91
|
+
elm.style[name] = style[name];
|
|
92
|
+
}
|
|
93
|
+
const compStyle = getComputedStyle(elm);
|
|
94
|
+
const props = compStyle["transition-property"].split(", ");
|
|
95
|
+
for (; i < props.length; ++i) {
|
|
96
|
+
if (applied.indexOf(props[i]) !== -1)
|
|
97
|
+
amount++;
|
|
98
|
+
}
|
|
99
|
+
elm.addEventListener("transitionend", function (ev) {
|
|
100
|
+
if (ev.target === elm)
|
|
101
|
+
--amount;
|
|
102
|
+
if (amount === 0)
|
|
103
|
+
rm();
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function forceReflow() {
|
|
107
|
+
reflowForced = false;
|
|
108
|
+
}
|
|
109
|
+
const styleModule = {
|
|
110
|
+
pre: forceReflow,
|
|
111
|
+
create: updateStyle,
|
|
112
|
+
update: updateStyle,
|
|
113
|
+
destroy: applyDestroyStyle,
|
|
114
|
+
remove: applyRemoveStyle,
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
exports.styleModule = styleModule;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var h = require('./h.cjs');
|
|
4
|
+
|
|
5
|
+
function copyToThunk(vnode, thunk) {
|
|
6
|
+
var _a;
|
|
7
|
+
const ns = (_a = thunk.data) === null || _a === void 0 ? void 0 : _a.ns;
|
|
8
|
+
vnode.data.fn = thunk.data.fn;
|
|
9
|
+
vnode.data.args = thunk.data.args;
|
|
10
|
+
thunk.data = vnode.data;
|
|
11
|
+
thunk.children = vnode.children;
|
|
12
|
+
thunk.text = vnode.text;
|
|
13
|
+
thunk.elm = vnode.elm;
|
|
14
|
+
if (ns)
|
|
15
|
+
h.addNS(thunk.data, thunk.children, thunk.sel);
|
|
16
|
+
}
|
|
17
|
+
function init(thunk) {
|
|
18
|
+
const cur = thunk.data;
|
|
19
|
+
const vnode = cur.fn(...cur.args);
|
|
20
|
+
copyToThunk(vnode, thunk);
|
|
21
|
+
}
|
|
22
|
+
function prepatch(oldVnode, thunk) {
|
|
23
|
+
let i;
|
|
24
|
+
const old = oldVnode.data;
|
|
25
|
+
const cur = thunk.data;
|
|
26
|
+
const oldArgs = old.args;
|
|
27
|
+
const args = cur.args;
|
|
28
|
+
if (old.fn !== cur.fn || oldArgs.length !== args.length) {
|
|
29
|
+
copyToThunk(cur.fn(...args), thunk);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
for (i = 0; i < args.length; ++i) {
|
|
33
|
+
if (oldArgs[i] !== args[i]) {
|
|
34
|
+
copyToThunk(cur.fn(...args), thunk);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
copyToThunk(oldVnode, thunk);
|
|
39
|
+
}
|
|
40
|
+
const thunk = function thunk(sel, key, fn, args) {
|
|
41
|
+
if (args === undefined) {
|
|
42
|
+
args = fn;
|
|
43
|
+
fn = key;
|
|
44
|
+
key = undefined;
|
|
45
|
+
}
|
|
46
|
+
return h.h(sel, {
|
|
47
|
+
key: key,
|
|
48
|
+
hook: { init, prepatch },
|
|
49
|
+
fn: fn,
|
|
50
|
+
args: args,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports.thunk = thunk;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var h = require('./h.cjs');
|
|
4
|
+
var vnode = require('./vnode.cjs');
|
|
5
|
+
var htmldomapi = require('./htmldomapi.cjs');
|
|
6
|
+
|
|
7
|
+
function toVNode(node, domApi) {
|
|
8
|
+
const api = domApi !== undefined ? domApi : htmldomapi.htmlDomApi;
|
|
9
|
+
let text;
|
|
10
|
+
if (api.isElement(node)) {
|
|
11
|
+
const id = node.id ? "#" + node.id : "";
|
|
12
|
+
const cn = node.getAttribute("class");
|
|
13
|
+
const c = cn ? "." + cn.split(" ").join(".") : "";
|
|
14
|
+
const sel = api.tagName(node).toLowerCase() + id + c;
|
|
15
|
+
const attrs = {};
|
|
16
|
+
const dataset = {};
|
|
17
|
+
const data = {};
|
|
18
|
+
const children = [];
|
|
19
|
+
let name;
|
|
20
|
+
let i, n;
|
|
21
|
+
const elmAttrs = node.attributes;
|
|
22
|
+
const elmChildren = node.childNodes;
|
|
23
|
+
for (i = 0, n = elmAttrs.length; i < n; i++) {
|
|
24
|
+
name = elmAttrs[i].nodeName;
|
|
25
|
+
if (name[0] === "d" &&
|
|
26
|
+
name[1] === "a" &&
|
|
27
|
+
name[2] === "t" &&
|
|
28
|
+
name[3] === "a" &&
|
|
29
|
+
name[4] === "-") {
|
|
30
|
+
dataset[name.slice(5)] = elmAttrs[i].nodeValue || "";
|
|
31
|
+
}
|
|
32
|
+
else if (name !== "id" && name !== "class") {
|
|
33
|
+
attrs[name] = elmAttrs[i].nodeValue;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
for (i = 0, n = elmChildren.length; i < n; i++) {
|
|
37
|
+
children.push(toVNode(elmChildren[i], domApi));
|
|
38
|
+
}
|
|
39
|
+
if (Object.keys(attrs).length > 0)
|
|
40
|
+
data.attrs = attrs;
|
|
41
|
+
if (Object.keys(dataset).length > 0)
|
|
42
|
+
data.dataset = dataset;
|
|
43
|
+
if (sel[0] === "s" &&
|
|
44
|
+
sel[1] === "v" &&
|
|
45
|
+
sel[2] === "g" &&
|
|
46
|
+
(sel.length === 3 || sel[3] === "." || sel[3] === "#")) {
|
|
47
|
+
h.addNS(data, children, sel);
|
|
48
|
+
}
|
|
49
|
+
return vnode.vnode(sel, data, children, undefined, node);
|
|
50
|
+
}
|
|
51
|
+
else if (api.isText(node)) {
|
|
52
|
+
text = api.getTextContent(node);
|
|
53
|
+
return vnode.vnode(undefined, undefined, undefined, text, node);
|
|
54
|
+
}
|
|
55
|
+
else if (api.isComment(node)) {
|
|
56
|
+
text = api.getTextContent(node);
|
|
57
|
+
return vnode.vnode("!", {}, [], text, node);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return vnode.vnode("", {}, [], undefined, node);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.toVNode = toVNode;
|
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var authCaptcha_controller = require('./auth-captcha.controller.cjs');
|
|
6
6
|
require('./auth-captcha.css');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
const AuthCaptcha = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -57,7 +58,7 @@ const AuthCaptcha = /* @__PURE__ */ vue.defineComponent({
|
|
|
57
58
|
"src": this.c.state.image,
|
|
58
59
|
"class": this.ns.e("image"),
|
|
59
60
|
"onClick": this.onClick,
|
|
60
|
-
"title": "\u70B9\u51FB\u56FE\u7247\u5237\u65B0"
|
|
61
|
+
"title": core.showTitle("\u70B9\u51FB\u56FE\u7247\u5237\u65B0")
|
|
61
62
|
}, {
|
|
62
63
|
error: () => {
|
|
63
64
|
return vue.createVNode("div", {
|
|
@@ -6,6 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
7
|
var panelButton_controller = require('./panel-button.controller.cjs');
|
|
8
8
|
require('./panel-button.css');
|
|
9
|
+
var core = require('@ibiz-template/core');
|
|
9
10
|
|
|
10
11
|
"use strict";
|
|
11
12
|
const PanelButton = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -105,7 +106,7 @@ const PanelButton = /* @__PURE__ */ vue.defineComponent({
|
|
|
105
106
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
106
107
|
"type": this.buttonType,
|
|
107
108
|
"text": this.isText,
|
|
108
|
-
"title":
|
|
109
|
+
"title": core.showTitle(this.tooltip),
|
|
109
110
|
"disabled": this.state.disabled,
|
|
110
111
|
"loading": this.state.loading,
|
|
111
112
|
"onClick": this.handleButtonClick
|
|
@@ -103,7 +103,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
103
103
|
if (isVertical && !isShowToolbar.value || isVertical && isShowToolbar.value && index > 5 || !isVertical && index < 6) {
|
|
104
104
|
return vue.createVNode("div", {
|
|
105
105
|
"class": [ns.e("item"), ns.e("draggable-item")],
|
|
106
|
-
"title": element.caption,
|
|
106
|
+
"title": core.showTitle(element.caption),
|
|
107
107
|
"onClick": () => onClick(element)
|
|
108
108
|
}, [vue.createVNode("svg", {
|
|
109
109
|
"viewBox": "0 0 16 16",
|
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
6
|
require('./user-action.css');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
const UserAction = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -76,7 +77,7 @@ const UserAction = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
77
|
render() {
|
|
77
78
|
return vue.createVNode("div", {
|
|
78
79
|
"class": this.ns.b(),
|
|
79
|
-
"title": this.modelData.caption
|
|
80
|
+
"title": core.showTitle(this.modelData.caption)
|
|
80
81
|
}, [vue.createVNode(vue.resolveComponent("i-biz-icon"), {
|
|
81
82
|
"class": [this.ns.e("image")],
|
|
82
83
|
"icon": this.sysImage,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
4
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
6
|
require('./async-action.css');
|
|
6
7
|
var lodashEs = require('lodash-es');
|
|
@@ -93,7 +94,7 @@ const AsyncAction = /* @__PURE__ */ vue.defineComponent({
|
|
|
93
94
|
}, [vue.createVNode("div", {
|
|
94
95
|
"class": this.ns.e("caption")
|
|
95
96
|
}, [asyncacitonname]), this.showErrorInfo && vue.createVNode("div", {
|
|
96
|
-
"title": this.action.actionresult,
|
|
97
|
+
"title": core.showTitle(this.action.actionresult),
|
|
97
98
|
"class": this.ns.e("error-info")
|
|
98
99
|
}, [this.action.actionresult]), this.actionstate === 20 ? vue.createVNode("div", {
|
|
99
100
|
"class": this.ns.e("progress")
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
4
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
6
|
require('./internal-message-container.css');
|
|
6
7
|
|
|
@@ -92,7 +93,7 @@ const InternalMessageContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
93
|
imagePath: "svg/read.svg"
|
|
93
94
|
},
|
|
94
95
|
"baseDir": "iconfont",
|
|
95
|
-
"title": item.tooltip,
|
|
96
|
+
"title": core.showTitle(item.tooltip),
|
|
96
97
|
"onClick": (e) => this.onToolbarClick(e, item.key)
|
|
97
98
|
}, null);
|
|
98
99
|
})]), vue.createVNode("div", {
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
require('./internal-message-html.css');
|
|
6
|
+
require('../../../../util/index.cjs');
|
|
7
|
+
var wangEditorUtil = require('../../../../util/wang-editor-util/wang-editor-util.cjs');
|
|
6
8
|
|
|
7
9
|
"use strict";
|
|
8
10
|
const InternalMessageHTML = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -20,10 +22,14 @@ const InternalMessageHTML = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
22
|
emits: {
|
|
21
23
|
close: () => true
|
|
22
24
|
},
|
|
23
|
-
setup() {
|
|
25
|
+
setup(props) {
|
|
24
26
|
const ns = vue3Util.useNamespace("internal-message-html");
|
|
27
|
+
const msgContent = vue.computed(() => {
|
|
28
|
+
return wangEditorUtil.parseHtml(props.message.content);
|
|
29
|
+
});
|
|
25
30
|
return {
|
|
26
|
-
ns
|
|
31
|
+
ns,
|
|
32
|
+
msgContent
|
|
27
33
|
};
|
|
28
34
|
},
|
|
29
35
|
render() {
|
|
@@ -35,7 +41,7 @@ const InternalMessageHTML = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
41
|
}, {
|
|
36
42
|
default: () => [vue.createVNode("div", {
|
|
37
43
|
"class": this.ns.e("content"),
|
|
38
|
-
"innerHTML": this.
|
|
44
|
+
"innerHTML": this.msgContent
|
|
39
45
|
}, null)]
|
|
40
46
|
});
|
|
41
47
|
}
|
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
6
|
require('./user-message.css');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
var asyncActionTab = require('./async-action/async-action-tab/async-action-tab.cjs');
|
|
8
9
|
require('./internal-message/index.cjs');
|
|
9
10
|
require('./internal-message/common/index.cjs');
|
|
@@ -86,7 +87,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
87
|
},
|
|
87
88
|
render() {
|
|
88
89
|
return vue.createVNode("div", {
|
|
89
|
-
"title": ibiz.i18n.t("panelComponent.userMessage.notice"),
|
|
90
|
+
"title": core.showTitle(ibiz.i18n.t("panelComponent.userMessage.notice")),
|
|
90
91
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
91
92
|
}, [vue.createVNode(vue.resolveComponent("el-popover"), {
|
|
92
93
|
"ref": "popoverRef",
|
|
@@ -144,7 +145,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
145
|
imagePath: "svg/read.svg"
|
|
145
146
|
},
|
|
146
147
|
"baseDir": "iconfont",
|
|
147
|
-
"title": ibiz.i18n.t("panelComponent.userMessage.allRead"),
|
|
148
|
+
"title": core.showTitle(ibiz.i18n.t("panelComponent.userMessage.allRead")),
|
|
148
149
|
"onClick": this.onBatchReadClick
|
|
149
150
|
}, null)])]);
|
|
150
151
|
}
|
package/lib/util/index.cjs
CHANGED
|
@@ -11,6 +11,7 @@ var usePagination = require('./pagination/use-pagination.cjs');
|
|
|
11
11
|
var noticeUtil = require('./notice-util/notice-util.cjs');
|
|
12
12
|
var renderUtil = require('./render-util/render-util.cjs');
|
|
13
13
|
var appUtil = require('./app-util/app-util.cjs');
|
|
14
|
+
var wangEditorUtil = require('./wang-editor-util/wang-editor-util.cjs');
|
|
14
15
|
|
|
15
16
|
"use strict";
|
|
16
17
|
|
|
@@ -25,3 +26,4 @@ exports.usePagination = usePagination.usePagination;
|
|
|
25
26
|
exports.NoticeUtil = noticeUtil.NoticeUtil;
|
|
26
27
|
exports.RenderUtil = renderUtil.RenderUtil;
|
|
27
28
|
exports.AppUtil = appUtil.AppUtil;
|
|
29
|
+
exports.parseHtml = wangEditorUtil.parseHtml;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ElementPlus = require('element-plus');
|
|
4
|
+
var wangEditorUtil = require('../wang-editor-util/wang-editor-util.cjs');
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
@@ -51,9 +52,10 @@ class NotificationUtil {
|
|
|
51
52
|
*/
|
|
52
53
|
handleNotice(params, noticeType) {
|
|
53
54
|
const duration = params.duration ? params.duration * 1e3 : 4500;
|
|
55
|
+
const msgContent = params.desc ? wangEditorUtil.parseHtml(params.desc) : params.desc;
|
|
54
56
|
ElementPlus.ElNotification({
|
|
55
57
|
title: params.title,
|
|
56
|
-
message:
|
|
58
|
+
message: msgContent,
|
|
57
59
|
dangerouslyUseHTMLString: !!params.isHtmlDesc,
|
|
58
60
|
type: noticeType,
|
|
59
61
|
position: params.position || "top-right",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function parseHtml(str) {
|
|
5
|
+
return str.replaceAll(
|
|
6
|
+
/<span data-w-e-type="emoji" class='emoji'>(.+?)<\/span>/g,
|
|
7
|
+
(x, emoji) => {
|
|
8
|
+
const tempVal = decodeURIComponent(atob(emoji));
|
|
9
|
+
return "<span data-w-e-type=\"emoji\" class='emoji'>".concat(tempVal, "</span>");
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.parseHtml = parseHtml;
|