@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,115 @@
|
|
|
1
|
+
// Bindig `requestAnimationFrame` like this fixes a bug in IE/Edge. See #360 and #409.
|
|
2
|
+
const raf = (typeof window !== "undefined" &&
|
|
3
|
+
window.requestAnimationFrame.bind(window)) ||
|
|
4
|
+
setTimeout;
|
|
5
|
+
const nextFrame = function (fn) {
|
|
6
|
+
raf(function () {
|
|
7
|
+
raf(fn);
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
let reflowForced = false;
|
|
11
|
+
function setNextFrame(obj, prop, val) {
|
|
12
|
+
nextFrame(function () {
|
|
13
|
+
obj[prop] = val;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function updateStyle(oldVnode, vnode) {
|
|
17
|
+
let cur;
|
|
18
|
+
let name;
|
|
19
|
+
const elm = vnode.elm;
|
|
20
|
+
let oldStyle = oldVnode.data.style;
|
|
21
|
+
let style = vnode.data.style;
|
|
22
|
+
if (!oldStyle && !style)
|
|
23
|
+
return;
|
|
24
|
+
if (oldStyle === style)
|
|
25
|
+
return;
|
|
26
|
+
oldStyle = oldStyle || {};
|
|
27
|
+
style = style || {};
|
|
28
|
+
const oldHasDel = "delayed" in oldStyle;
|
|
29
|
+
for (name in oldStyle) {
|
|
30
|
+
if (!style[name]) {
|
|
31
|
+
if (name[0] === "-" && name[1] === "-") {
|
|
32
|
+
elm.style.removeProperty(name);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
elm.style[name] = "";
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
for (name in style) {
|
|
40
|
+
cur = style[name];
|
|
41
|
+
if (name === "delayed" && style.delayed) {
|
|
42
|
+
for (const name2 in style.delayed) {
|
|
43
|
+
cur = style.delayed[name2];
|
|
44
|
+
if (!oldHasDel || cur !== oldStyle.delayed[name2]) {
|
|
45
|
+
setNextFrame(elm.style, name2, cur);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else if (name !== "remove" && cur !== oldStyle[name]) {
|
|
50
|
+
if (name[0] === "-" && name[1] === "-") {
|
|
51
|
+
elm.style.setProperty(name, cur);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
elm.style[name] = cur;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function applyDestroyStyle(vnode) {
|
|
60
|
+
let style;
|
|
61
|
+
let name;
|
|
62
|
+
const elm = vnode.elm;
|
|
63
|
+
const s = vnode.data.style;
|
|
64
|
+
if (!s || !(style = s.destroy))
|
|
65
|
+
return;
|
|
66
|
+
for (name in style) {
|
|
67
|
+
elm.style[name] = style[name];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function applyRemoveStyle(vnode, rm) {
|
|
71
|
+
const s = vnode.data.style;
|
|
72
|
+
if (!s || !s.remove) {
|
|
73
|
+
rm();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (!reflowForced) {
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
78
|
+
vnode.elm.offsetLeft;
|
|
79
|
+
reflowForced = true;
|
|
80
|
+
}
|
|
81
|
+
let name;
|
|
82
|
+
const elm = vnode.elm;
|
|
83
|
+
let i = 0;
|
|
84
|
+
const style = s.remove;
|
|
85
|
+
let amount = 0;
|
|
86
|
+
const applied = [];
|
|
87
|
+
for (name in style) {
|
|
88
|
+
applied.push(name);
|
|
89
|
+
elm.style[name] = style[name];
|
|
90
|
+
}
|
|
91
|
+
const compStyle = getComputedStyle(elm);
|
|
92
|
+
const props = compStyle["transition-property"].split(", ");
|
|
93
|
+
for (; i < props.length; ++i) {
|
|
94
|
+
if (applied.indexOf(props[i]) !== -1)
|
|
95
|
+
amount++;
|
|
96
|
+
}
|
|
97
|
+
elm.addEventListener("transitionend", function (ev) {
|
|
98
|
+
if (ev.target === elm)
|
|
99
|
+
--amount;
|
|
100
|
+
if (amount === 0)
|
|
101
|
+
rm();
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function forceReflow() {
|
|
105
|
+
reflowForced = false;
|
|
106
|
+
}
|
|
107
|
+
const styleModule = {
|
|
108
|
+
pre: forceReflow,
|
|
109
|
+
create: updateStyle,
|
|
110
|
+
update: updateStyle,
|
|
111
|
+
destroy: applyDestroyStyle,
|
|
112
|
+
remove: applyRemoveStyle,
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export { styleModule };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { addNS, h } from './h.mjs';
|
|
2
|
+
|
|
3
|
+
function copyToThunk(vnode, thunk) {
|
|
4
|
+
var _a;
|
|
5
|
+
const ns = (_a = thunk.data) === null || _a === void 0 ? void 0 : _a.ns;
|
|
6
|
+
vnode.data.fn = thunk.data.fn;
|
|
7
|
+
vnode.data.args = thunk.data.args;
|
|
8
|
+
thunk.data = vnode.data;
|
|
9
|
+
thunk.children = vnode.children;
|
|
10
|
+
thunk.text = vnode.text;
|
|
11
|
+
thunk.elm = vnode.elm;
|
|
12
|
+
if (ns)
|
|
13
|
+
addNS(thunk.data, thunk.children, thunk.sel);
|
|
14
|
+
}
|
|
15
|
+
function init(thunk) {
|
|
16
|
+
const cur = thunk.data;
|
|
17
|
+
const vnode = cur.fn(...cur.args);
|
|
18
|
+
copyToThunk(vnode, thunk);
|
|
19
|
+
}
|
|
20
|
+
function prepatch(oldVnode, thunk) {
|
|
21
|
+
let i;
|
|
22
|
+
const old = oldVnode.data;
|
|
23
|
+
const cur = thunk.data;
|
|
24
|
+
const oldArgs = old.args;
|
|
25
|
+
const args = cur.args;
|
|
26
|
+
if (old.fn !== cur.fn || oldArgs.length !== args.length) {
|
|
27
|
+
copyToThunk(cur.fn(...args), thunk);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
for (i = 0; i < args.length; ++i) {
|
|
31
|
+
if (oldArgs[i] !== args[i]) {
|
|
32
|
+
copyToThunk(cur.fn(...args), thunk);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
copyToThunk(oldVnode, thunk);
|
|
37
|
+
}
|
|
38
|
+
const thunk = function thunk(sel, key, fn, args) {
|
|
39
|
+
if (args === undefined) {
|
|
40
|
+
args = fn;
|
|
41
|
+
fn = key;
|
|
42
|
+
key = undefined;
|
|
43
|
+
}
|
|
44
|
+
return h(sel, {
|
|
45
|
+
key: key,
|
|
46
|
+
hook: { init, prepatch },
|
|
47
|
+
fn: fn,
|
|
48
|
+
args: args,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { thunk };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { addNS } from './h.mjs';
|
|
2
|
+
import { vnode } from './vnode.mjs';
|
|
3
|
+
import { htmlDomApi } from './htmldomapi.mjs';
|
|
4
|
+
|
|
5
|
+
function toVNode(node, domApi) {
|
|
6
|
+
const api = domApi !== undefined ? domApi : htmlDomApi;
|
|
7
|
+
let text;
|
|
8
|
+
if (api.isElement(node)) {
|
|
9
|
+
const id = node.id ? "#" + node.id : "";
|
|
10
|
+
const cn = node.getAttribute("class");
|
|
11
|
+
const c = cn ? "." + cn.split(" ").join(".") : "";
|
|
12
|
+
const sel = api.tagName(node).toLowerCase() + id + c;
|
|
13
|
+
const attrs = {};
|
|
14
|
+
const dataset = {};
|
|
15
|
+
const data = {};
|
|
16
|
+
const children = [];
|
|
17
|
+
let name;
|
|
18
|
+
let i, n;
|
|
19
|
+
const elmAttrs = node.attributes;
|
|
20
|
+
const elmChildren = node.childNodes;
|
|
21
|
+
for (i = 0, n = elmAttrs.length; i < n; i++) {
|
|
22
|
+
name = elmAttrs[i].nodeName;
|
|
23
|
+
if (name[0] === "d" &&
|
|
24
|
+
name[1] === "a" &&
|
|
25
|
+
name[2] === "t" &&
|
|
26
|
+
name[3] === "a" &&
|
|
27
|
+
name[4] === "-") {
|
|
28
|
+
dataset[name.slice(5)] = elmAttrs[i].nodeValue || "";
|
|
29
|
+
}
|
|
30
|
+
else if (name !== "id" && name !== "class") {
|
|
31
|
+
attrs[name] = elmAttrs[i].nodeValue;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
for (i = 0, n = elmChildren.length; i < n; i++) {
|
|
35
|
+
children.push(toVNode(elmChildren[i], domApi));
|
|
36
|
+
}
|
|
37
|
+
if (Object.keys(attrs).length > 0)
|
|
38
|
+
data.attrs = attrs;
|
|
39
|
+
if (Object.keys(dataset).length > 0)
|
|
40
|
+
data.dataset = dataset;
|
|
41
|
+
if (sel[0] === "s" &&
|
|
42
|
+
sel[1] === "v" &&
|
|
43
|
+
sel[2] === "g" &&
|
|
44
|
+
(sel.length === 3 || sel[3] === "." || sel[3] === "#")) {
|
|
45
|
+
addNS(data, children, sel);
|
|
46
|
+
}
|
|
47
|
+
return vnode(sel, data, children, undefined, node);
|
|
48
|
+
}
|
|
49
|
+
else if (api.isText(node)) {
|
|
50
|
+
text = api.getTextContent(node);
|
|
51
|
+
return vnode(undefined, undefined, undefined, text, node);
|
|
52
|
+
}
|
|
53
|
+
else if (api.isComment(node)) {
|
|
54
|
+
text = api.getTextContent(node);
|
|
55
|
+
return vnode("!", {}, [], text, node);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return vnode("", {}, [], undefined, node);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { toVNode };
|
|
@@ -2,6 +2,7 @@ import { computed, resolveComponent, createVNode, resolveDirective, withDirectiv
|
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { AuthCaptchaController } from './auth-captcha.controller.mjs';
|
|
4
4
|
import './auth-captcha.css';
|
|
5
|
+
import { showTitle } from '@ibiz-template/core';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const AuthCaptcha = /* @__PURE__ */ defineComponent({
|
|
@@ -55,7 +56,7 @@ const AuthCaptcha = /* @__PURE__ */ defineComponent({
|
|
|
55
56
|
"src": this.c.state.image,
|
|
56
57
|
"class": this.ns.e("image"),
|
|
57
58
|
"onClick": this.onClick,
|
|
58
|
-
"title": "\u70B9\u51FB\u56FE\u7247\u5237\u65B0"
|
|
59
|
+
"title": showTitle("\u70B9\u51FB\u56FE\u7247\u5237\u65B0")
|
|
59
60
|
}, {
|
|
60
61
|
error: () => {
|
|
61
62
|
return createVNode("div", {
|
|
@@ -2,6 +2,7 @@ import { ref, computed, resolveComponent, createVNode, defineComponent } from 'v
|
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { PanelButtonController } from './panel-button.controller.mjs';
|
|
4
4
|
import './panel-button.css';
|
|
5
|
+
import { showTitle } from '@ibiz-template/core';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const PanelButton = /* @__PURE__ */ defineComponent({
|
|
@@ -101,7 +102,7 @@ const PanelButton = /* @__PURE__ */ defineComponent({
|
|
|
101
102
|
}, [createVNode(resolveComponent("el-button"), {
|
|
102
103
|
"type": this.buttonType,
|
|
103
104
|
"text": this.isText,
|
|
104
|
-
"title":
|
|
105
|
+
"title": showTitle(this.tooltip),
|
|
105
106
|
"disabled": this.state.disabled,
|
|
106
107
|
"loading": this.state.loading,
|
|
107
108
|
"onClick": this.handleButtonClick
|
|
@@ -3,7 +3,7 @@ import { useRouter } from 'vue-router';
|
|
|
3
3
|
import { PanelItemController, OpenAppViewCommand } from '@ibiz-template/runtime';
|
|
4
4
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
5
5
|
import draggable from 'vuedraggable';
|
|
6
|
-
import { IBizContext } from '@ibiz-template/core';
|
|
6
|
+
import { IBizContext, showTitle } from '@ibiz-template/core';
|
|
7
7
|
import './short-cut.css';
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
@@ -101,7 +101,7 @@ const ShortCut = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
if (isVertical && !isShowToolbar.value || isVertical && isShowToolbar.value && index > 5 || !isVertical && index < 6) {
|
|
102
102
|
return createVNode("div", {
|
|
103
103
|
"class": [ns.e("item"), ns.e("draggable-item")],
|
|
104
|
-
"title": element.caption,
|
|
104
|
+
"title": showTitle(element.caption),
|
|
105
105
|
"onClick": () => onClick(element)
|
|
106
106
|
}, [createVNode("svg", {
|
|
107
107
|
"viewBox": "0 0 16 16",
|
|
@@ -2,6 +2,7 @@ import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { AppFuncCommand } from '@ibiz-template/runtime';
|
|
4
4
|
import './user-action.css';
|
|
5
|
+
import { showTitle } from '@ibiz-template/core';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const UserAction = /* @__PURE__ */ defineComponent({
|
|
@@ -74,7 +75,7 @@ const UserAction = /* @__PURE__ */ defineComponent({
|
|
|
74
75
|
render() {
|
|
75
76
|
return createVNode("div", {
|
|
76
77
|
"class": this.ns.b(),
|
|
77
|
-
"title": this.modelData.caption
|
|
78
|
+
"title": showTitle(this.modelData.caption)
|
|
78
79
|
}, [createVNode(resolveComponent("i-biz-icon"), {
|
|
79
80
|
"class": [this.ns.e("image")],
|
|
80
81
|
"icon": this.sysImage,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { computed, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
|
+
import { showTitle } from '@ibiz-template/core';
|
|
2
3
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
4
|
import './async-action.css';
|
|
4
5
|
import { isObject, isString } from 'lodash-es';
|
|
@@ -91,7 +92,7 @@ const AsyncAction = /* @__PURE__ */ defineComponent({
|
|
|
91
92
|
}, [createVNode("div", {
|
|
92
93
|
"class": this.ns.e("caption")
|
|
93
94
|
}, [asyncacitonname]), this.showErrorInfo && createVNode("div", {
|
|
94
|
-
"title": this.action.actionresult,
|
|
95
|
+
"title": showTitle(this.action.actionresult),
|
|
95
96
|
"class": this.ns.e("error-info")
|
|
96
97
|
}, [this.action.actionresult]), this.actionstate === 20 ? createVNode("div", {
|
|
97
98
|
"class": this.ns.e("progress")
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { showTitle } from '@ibiz-template/core';
|
|
2
3
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
4
|
import './internal-message-container.css';
|
|
4
5
|
|
|
@@ -90,7 +91,7 @@ const InternalMessageContainer = /* @__PURE__ */ defineComponent({
|
|
|
90
91
|
imagePath: "svg/read.svg"
|
|
91
92
|
},
|
|
92
93
|
"baseDir": "iconfont",
|
|
93
|
-
"title": item.tooltip,
|
|
94
|
+
"title": showTitle(item.tooltip),
|
|
94
95
|
"onClick": (e) => this.onToolbarClick(e, item.key)
|
|
95
96
|
}, null);
|
|
96
97
|
})]), createVNode("div", {
|
|
@@ -13,6 +13,7 @@ export declare const InternalMessageHTML: import("vue").DefineComponent<{
|
|
|
13
13
|
};
|
|
14
14
|
}, {
|
|
15
15
|
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
msgContent: import("vue").ComputedRef<string>;
|
|
16
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
close: () => true;
|
|
18
19
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './internal-message-html.css';
|
|
4
|
+
import '../../../../util/index.mjs';
|
|
5
|
+
import { parseHtml } from '../../../../util/wang-editor-util/wang-editor-util.mjs';
|
|
4
6
|
|
|
5
7
|
"use strict";
|
|
6
8
|
const InternalMessageHTML = /* @__PURE__ */ defineComponent({
|
|
@@ -18,10 +20,14 @@ const InternalMessageHTML = /* @__PURE__ */ defineComponent({
|
|
|
18
20
|
emits: {
|
|
19
21
|
close: () => true
|
|
20
22
|
},
|
|
21
|
-
setup() {
|
|
23
|
+
setup(props) {
|
|
22
24
|
const ns = useNamespace("internal-message-html");
|
|
25
|
+
const msgContent = computed(() => {
|
|
26
|
+
return parseHtml(props.message.content);
|
|
27
|
+
});
|
|
23
28
|
return {
|
|
24
|
-
ns
|
|
29
|
+
ns,
|
|
30
|
+
msgContent
|
|
25
31
|
};
|
|
26
32
|
},
|
|
27
33
|
render() {
|
|
@@ -33,7 +39,7 @@ const InternalMessageHTML = /* @__PURE__ */ defineComponent({
|
|
|
33
39
|
}, {
|
|
34
40
|
default: () => [createVNode("div", {
|
|
35
41
|
"class": this.ns.e("content"),
|
|
36
|
-
"innerHTML": this.
|
|
42
|
+
"innerHTML": this.msgContent
|
|
37
43
|
}, null)]
|
|
38
44
|
});
|
|
39
45
|
}
|
|
@@ -12,6 +12,7 @@ export declare class InternalMessageHTMLtProvider extends InternalMessageDefault
|
|
|
12
12
|
};
|
|
13
13
|
}, {
|
|
14
14
|
ns: import("@ibiz-template/core").Namespace;
|
|
15
|
+
msgContent: import("vue").ComputedRef<string>;
|
|
15
16
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
17
|
close: () => true;
|
|
17
18
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2,6 +2,7 @@ import { ref, onMounted, onUnmounted, resolveComponent, createVNode, defineCompo
|
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { PresetIdentifier } from '@ibiz-template/runtime';
|
|
4
4
|
import './user-message.css';
|
|
5
|
+
import { showTitle } from '@ibiz-template/core';
|
|
5
6
|
import { AsyncActionTab } from './async-action/async-action-tab/async-action-tab.mjs';
|
|
6
7
|
import './internal-message/index.mjs';
|
|
7
8
|
import './internal-message/common/index.mjs';
|
|
@@ -84,7 +85,7 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
84
85
|
},
|
|
85
86
|
render() {
|
|
86
87
|
return createVNode("div", {
|
|
87
|
-
"title": ibiz.i18n.t("panelComponent.userMessage.notice"),
|
|
88
|
+
"title": showTitle(ibiz.i18n.t("panelComponent.userMessage.notice")),
|
|
88
89
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
89
90
|
}, [createVNode(resolveComponent("el-popover"), {
|
|
90
91
|
"ref": "popoverRef",
|
|
@@ -142,7 +143,7 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
142
143
|
imagePath: "svg/read.svg"
|
|
143
144
|
},
|
|
144
145
|
"baseDir": "iconfont",
|
|
145
|
-
"title": ibiz.i18n.t("panelComponent.userMessage.allRead"),
|
|
146
|
+
"title": showTitle(ibiz.i18n.t("panelComponent.userMessage.allRead")),
|
|
146
147
|
"onClick": this.onBatchReadClick
|
|
147
148
|
}, null)])]);
|
|
148
149
|
}
|
package/es/util/index.d.ts
CHANGED
|
@@ -9,3 +9,4 @@ export { usePagination } from './pagination/use-pagination';
|
|
|
9
9
|
export { NoticeUtil } from './notice-util/notice-util';
|
|
10
10
|
export { RenderUtil } from './render-util/render-util';
|
|
11
11
|
export { AppUtil } from './app-util/app-util';
|
|
12
|
+
export * from './wang-editor-util/wang-editor-util';
|
package/es/util/index.mjs
CHANGED
|
@@ -9,5 +9,6 @@ export { usePagination } from './pagination/use-pagination.mjs';
|
|
|
9
9
|
export { NoticeUtil } from './notice-util/notice-util.mjs';
|
|
10
10
|
export { RenderUtil } from './render-util/render-util.mjs';
|
|
11
11
|
export { AppUtil } from './app-util/app-util.mjs';
|
|
12
|
+
export { parseHtml } from './wang-editor-util/wang-editor-util.mjs';
|
|
12
13
|
|
|
13
14
|
"use strict";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElNotification } from 'element-plus';
|
|
2
|
+
import { parseHtml } from '../wang-editor-util/wang-editor-util.mjs';
|
|
2
3
|
|
|
3
4
|
"use strict";
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
@@ -49,9 +50,10 @@ class NotificationUtil {
|
|
|
49
50
|
*/
|
|
50
51
|
handleNotice(params, noticeType) {
|
|
51
52
|
const duration = params.duration ? params.duration * 1e3 : 4500;
|
|
53
|
+
const msgContent = params.desc ? parseHtml(params.desc) : params.desc;
|
|
52
54
|
ElNotification({
|
|
53
55
|
title: params.title,
|
|
54
|
-
message:
|
|
56
|
+
message: msgContent,
|
|
55
57
|
dangerouslyUseHTMLString: !!params.isHtmlDesc,
|
|
56
58
|
type: noticeType,
|
|
57
59
|
position: params.position || "top-right",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 解析html内容
|
|
3
|
+
* @description 解析html内容, 用法传入字符串 返回值为string类型
|
|
4
|
+
* ```
|
|
5
|
+
* parseHtml(`<span data-w-e-type="emoji" class='emoji'>JUYwJTlGJTk4JTg0</span>` => `<span data-w-e-type="emoji" class='emoji'>😄</span>`
|
|
6
|
+
* ```
|
|
7
|
+
* @export
|
|
8
|
+
* @param {string} str
|
|
9
|
+
* @return {*} {string}
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseHtml(str: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function parseHtml(str) {
|
|
3
|
+
return str.replaceAll(
|
|
4
|
+
/<span data-w-e-type="emoji" class='emoji'>(.+?)<\/span>/g,
|
|
5
|
+
(x, emoji) => {
|
|
6
|
+
const tempVal = decodeURIComponent(atob(emoji));
|
|
7
|
+
return "<span data-w-e-type=\"emoji\" class='emoji'>".concat(tempVal, "</span>");
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { parseHtml };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
require('./action-toolbar.css');
|
|
6
|
+
var core = require('@ibiz-template/core');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
8
9
|
function _isSlot(s) {
|
|
@@ -106,7 +107,7 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
107
|
"text": true,
|
|
107
108
|
"size": "small",
|
|
108
109
|
"onClick": (e) => this.handleClick(detail, e),
|
|
109
|
-
"title":
|
|
110
|
+
"title": core.showTitle(detail.tooltip),
|
|
110
111
|
"disabled": this.actionsState[detail.id].disabled,
|
|
111
112
|
"class": this.calcActionItemClass(detail)
|
|
112
113
|
}, {
|
|
@@ -146,7 +147,7 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
146
147
|
icon: () => vue.createVNode("ion-icon", {
|
|
147
148
|
"class": this.ns.e("icon"),
|
|
148
149
|
"name": "ellipsis-vertical",
|
|
149
|
-
"title": ibiz.i18n.t("component.actionToolbar.more")
|
|
150
|
+
"title": core.showTitle(ibiz.i18n.t("component.actionToolbar.more"))
|
|
150
151
|
}, null)
|
|
151
152
|
}), vue.createVNode(vue.resolveComponent("el-popover"), {
|
|
152
153
|
"placement": "bottom-start",
|
|
@@ -187,7 +188,7 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
187
188
|
if (this.actionsState[detail.id].visible) {
|
|
188
189
|
return vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
|
|
189
190
|
"class": [this.ns.e("item"), this.ns.is("disabled", false)],
|
|
190
|
-
"title": detail.tooltip,
|
|
191
|
+
"title": core.showTitle(detail.tooltip),
|
|
191
192
|
"disabled": this.actionsState[detail.id].disabled,
|
|
192
193
|
"command": detail
|
|
193
194
|
}, {
|
|
@@ -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 customTheme_controller = require('./custom-theme.controller.cjs');
|
|
6
7
|
require('./custom-theme.css');
|
|
7
8
|
|
|
@@ -112,7 +113,7 @@ const CustomTheme = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
113
|
"class": ns.b("var")
|
|
113
114
|
}, [vue.createVNode("span", {
|
|
114
115
|
"class": ns.be("var", "description"),
|
|
115
|
-
"title": ibiz.i18n.t("control.common.customTheme.".concat(data.descLang))
|
|
116
|
+
"title": core.showTitle(ibiz.i18n.t("control.common.customTheme.".concat(data.descLang)))
|
|
116
117
|
}, [ibiz.i18n.t("control.common.customTheme.".concat(data.labelLang))]), content]);
|
|
117
118
|
})])]);
|
|
118
119
|
};
|
|
@@ -126,7 +127,7 @@ const CustomTheme = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
127
|
}, [c.predefineType.map((item) => {
|
|
127
128
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
128
129
|
"color": item.color,
|
|
129
|
-
"title":
|
|
130
|
+
"title": core.showTitle(ibiz.i18n.t("control.common.customTheme.".concat(item.labelLang))),
|
|
130
131
|
"onClick": () => {
|
|
131
132
|
handleThemeChange(item.codeName);
|
|
132
133
|
}
|
|
@@ -415,10 +415,7 @@ 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": (
|
|
419
|
-
// eslint-disable-next-line no-nested-ternary
|
|
420
|
-
ibiz.env.enableTitle ? !this.selectValues.join("") ? ibiz.i18n.t("component.dataImport2.selectProperties") : "" : void 0
|
|
421
|
-
)
|
|
418
|
+
"title": core.showTitle(!this.selectValues.join("") ? ibiz.i18n.t("component.dataImport2.selectProperties") : "")
|
|
422
419
|
}, _isSlot(_slot2 = ibiz.i18n.t("component.dataImport2.import")) ? _slot2 : {
|
|
423
420
|
default: () => [_slot2]
|
|
424
421
|
})]) : ""])])])]), vue.createVNode(vue.resolveComponent("data-import2-table"), {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
require('./categories.css');
|
|
6
|
+
var core = require('@ibiz-template/core');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
8
9
|
const Categories = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -40,7 +41,7 @@ const Categories = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
41
|
"onClick": () => this.onSelect(category)
|
|
41
42
|
}, [vue.createVNode("span", {
|
|
42
43
|
"class": this.ns.em("category", "svg"),
|
|
43
|
-
"title": category.label,
|
|
44
|
+
"title": core.showTitle(category.label),
|
|
44
45
|
"innerHTML": category.icon
|
|
45
46
|
}, null)]);
|
|
46
47
|
})]);
|
|
@@ -5,6 +5,7 @@ var dayjs = require('dayjs');
|
|
|
5
5
|
var ramda = require('ramda');
|
|
6
6
|
require('./extend-action-timeline.css');
|
|
7
7
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
8
|
+
var core = require('@ibiz-template/core');
|
|
8
9
|
|
|
9
10
|
"use strict";
|
|
10
11
|
const acceptingOfficerNoDup = (tag, dataS) => {
|
|
@@ -144,10 +145,10 @@ const IBizExtendActionTimeLine = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
145
|
"class": [ns.be("task", "user-task-name"), ns.is("task-link", task.linkName)]
|
|
145
146
|
}, [task.taskName]), task.linkName ? vue.createVNode("div", {
|
|
146
147
|
"class": ns.be("task", "link-name"),
|
|
147
|
-
"title": task.linkName
|
|
148
|
+
"title": core.showTitle(task.linkName)
|
|
148
149
|
}, [task.linkName]) : null, vue.createVNode("div", {
|
|
149
150
|
"class": [ns.be("task", "author-name"), ns.is("has-type", task.type)],
|
|
150
|
-
"title": task.authorName
|
|
151
|
+
"title": core.showTitle(task.authorName)
|
|
151
152
|
}, [task.authorName]), task.type && vue.createVNode("div", {
|
|
152
153
|
"class": ns.be("task", "type")
|
|
153
154
|
}, [task.type]), task.time && vue.createVNode("div", {
|
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
require('./grid-setting.css');
|
|
6
6
|
var draggable = require('vuedraggable');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -69,7 +70,7 @@ const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
|
|
|
69
70
|
return vue.createVNode("ion-icon", {
|
|
70
71
|
"name": "options-outline",
|
|
71
72
|
"class": this.ns.b("set-icon"),
|
|
72
|
-
"title": ibiz.i18n.t("component.gridSetting.hideControl")
|
|
73
|
+
"title": core.showTitle(ibiz.i18n.t("component.gridSetting.hideControl"))
|
|
73
74
|
}, null);
|
|
74
75
|
},
|
|
75
76
|
default: () => {
|
package/lib/common/index.cjs
CHANGED
|
@@ -26,11 +26,13 @@ var coopAlert = require('./coop-alert/coop-alert.cjs');
|
|
|
26
26
|
var customTheme = require('./custom-theme/custom-theme.cjs');
|
|
27
27
|
var carouselCard = require('./carousel-card/carousel-card.cjs');
|
|
28
28
|
var emojiSelect = require('./emoji-select/emoji-select.cjs');
|
|
29
|
+
var quickEdit = require('./quick-edit/quick-edit.cjs');
|
|
29
30
|
|
|
30
31
|
"use strict";
|
|
31
32
|
const IBizCommonComponents = {
|
|
32
33
|
install: (v) => {
|
|
33
34
|
v.component(vue3Util.IBizControlBase.name, vue3Util.IBizControlBase);
|
|
35
|
+
v.component(quickEdit.IBizQuickEdit.name, quickEdit.IBizQuickEdit);
|
|
34
36
|
v.component(emojiSelect.IBizEmojiSelect.name, emojiSelect.IBizEmojiSelect);
|
|
35
37
|
v.component(vue3Util.IBizIcon.name, vue3Util.IBizIcon);
|
|
36
38
|
v.component(doingNotice.DoingNotice.name, doingNotice.DoingNotice);
|
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var ramda = require('ramda');
|
|
6
6
|
require('./pagination.css');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
const IBizPagination = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -82,7 +83,7 @@ const IBizPagination = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
83
|
default: () => [vue.createVNode("span", {
|
|
83
84
|
"class": this.ns.b("btn")
|
|
84
85
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
85
|
-
"title": ibiz.i18n.t("app.refresh"),
|
|
86
|
+
"title": core.showTitle(ibiz.i18n.t("app.refresh")),
|
|
86
87
|
"onClick": this.pageRefresh
|
|
87
88
|
}, {
|
|
88
89
|
default: () => [vue.createVNode("ion-icon", {
|