@ibiz-template/vue3-components 0.7.26 → 0.7.28-alpha.0
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-RwYoggQd.js → index-HNRMy1_g.js} +1 -1
- package/dist/index-QB7iGpIB.js +4 -0
- package/dist/{index-s7g1-ymW.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-Rf5FMxyR.js → xlsx-util-nADTbeWP.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/control/context-menu/context-menu.mjs +2 -2
- 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 +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +3 -3
- 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/grid/grid/grid-control.util.d.ts +0 -2
- package/es/control/grid/grid/grid-control.util.mjs +24 -83
- 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/report-panel/report-panel.mjs +5 -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.css +1 -1
- package/es/control/toolbar/toolbar.mjs +146 -10
- package/es/control/tree/index.d.ts +9 -0
- 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/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 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +3 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +26 -12
- 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/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.mjs +3 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +1 -1
- package/es/locale/en/index.d.ts +4 -0
- package/es/locale/en/index.mjs +5 -1
- package/es/locale/zh-CN/index.d.ts +4 -0
- package/es/locale/zh-CN/index.mjs +5 -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/nav-tabs/nav-tabs.controller.mjs +3 -2
- 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/control/context-menu/context-menu.cjs +2 -2
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +1 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +3 -3
- 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 +24 -83
- package/lib/control/grid/grid/grid.cjs +1 -7
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/report-panel/report-panel.cjs +5 -0
- 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 +146 -10
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +5 -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/ibiz-dropdown/ibiz-dropdown.cjs +17 -4
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +24 -10
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -1
- 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/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 +5 -1
- package/lib/locale/zh-CN/index.cjs +5 -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/nav-tabs/nav-tabs.controller.cjs +3 -2
- 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 -7
- package/dist/index-28jZm-aB.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.26_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.0_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.26_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.0_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 };
|
|
@@ -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";
|
|
@@ -130,10 +131,10 @@ class NavTabsController extends PanelItemController {
|
|
|
130
131
|
};
|
|
131
132
|
this.state.tabItems.push(tempItem);
|
|
132
133
|
this.state.activeTab = tempItem.key;
|
|
133
|
-
|
|
134
|
+
nextTick(() => {
|
|
134
135
|
this.state.tabItems.pop();
|
|
135
136
|
this.state.activeTab = this.state.tabItems[this.state.tabItems.length - 1].key;
|
|
136
|
-
}
|
|
137
|
+
});
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
|
|
@@ -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"), {
|
|
@@ -141,7 +141,7 @@ const ContextMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
141
141
|
"text": true,
|
|
142
142
|
"size": "small",
|
|
143
143
|
"onClick": (e) => this.handleClick(detail, e),
|
|
144
|
-
"title": detail.tooltip,
|
|
144
|
+
"title": ibiz.env.enableTitle ? detail.tooltip : void 0,
|
|
145
145
|
"disabled": this.c.state.buttonsState[detail.id].disabled,
|
|
146
146
|
"class": this.calcActionItemClass(detail)
|
|
147
147
|
}, {
|
|
@@ -167,7 +167,7 @@ const ContextMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
167
167
|
"text": true,
|
|
168
168
|
"size": "small",
|
|
169
169
|
"onClick": (e) => this.handleClick(detail, e),
|
|
170
|
-
"title": detail.tooltip,
|
|
170
|
+
"title": ibiz.env.enableTitle ? detail.tooltip : void 0,
|
|
171
171
|
"disabled": this.c.state.buttonsState[detail.id].disabled,
|
|
172
172
|
"class": this.calcActionItemClass(detail)
|
|
173
173
|
}, {
|
|
@@ -134,7 +134,7 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
134
|
"class": this.ns.b("build-btn")
|
|
135
135
|
}, [this.showTypeDir ? vue.createVNode("div", null, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
136
136
|
"class": this.ns.b("deisgn-btn"),
|
|
137
|
-
"title": ibiz.i18n.t("control.dashboard.customDashboardContainer.portalCustomPrompt"),
|
|
137
|
+
"title": ibiz.env.enableTitle ? ibiz.i18n.t("control.dashboard.customDashboardContainer.portalCustomPrompt") : void 0,
|
|
138
138
|
"onClick": this.openDesign
|
|
139
139
|
}, {
|
|
140
140
|
default: () => [vue.createVNode("ion-icon", {
|
|
@@ -111,7 +111,7 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
111
|
const prepareData = async () => {
|
|
112
112
|
const list3 = [];
|
|
113
113
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
114
|
-
if (c.
|
|
114
|
+
if (c.model.customizeMode === 2) {
|
|
115
115
|
const dynamicPortlets = await c.loadAllDynaPortlet();
|
|
116
116
|
dynamicPortlets == null ? void 0 : dynamicPortlets.forEach((portlet) => {
|
|
117
117
|
const temp = {
|
|
@@ -120,8 +120,8 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
120
120
|
portletId: portlet.psappportletid,
|
|
121
121
|
portletCodeName: portlet.codename,
|
|
122
122
|
portletName: portlet.psappportletname,
|
|
123
|
-
groupCodeName: "Ungroup",
|
|
124
|
-
groupName: "\u672A\u5206\u7C7B",
|
|
123
|
+
groupCodeName: portlet.groupcodename || "Ungroup",
|
|
124
|
+
groupName: portlet.groupname || "\u672A\u5206\u7C7B",
|
|
125
125
|
appCodeName: app.model.pkgcodeName,
|
|
126
126
|
appName: app.model.name
|
|
127
127
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.28-alpha.0_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');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -36,9 +36,10 @@ function useAppDRTab(c, controlRef, counterData) {
|
|
|
36
36
|
const totalDom = controlRef.value.$el;
|
|
37
37
|
const totalWidth = totalDom.offsetWidth;
|
|
38
38
|
let accumulatedWidth = 0;
|
|
39
|
-
|
|
39
|
+
visibleItems.value = [];
|
|
40
|
+
moreItems.value = [];
|
|
40
41
|
drTabPages.forEach((tab, index) => {
|
|
41
|
-
if (
|
|
42
|
+
if (!tab.hidden) {
|
|
42
43
|
const caption = tab.caption || "";
|
|
43
44
|
const counterNum = tab.counterId ? counterData[tab.counterId] : void 0;
|
|
44
45
|
const fontSize = "var(--".concat(namespace.defaultNamespace, "-font-size-regular)");
|
|
@@ -66,17 +67,12 @@ function useAppDRTab(c, controlRef, counterData) {
|
|
|
66
67
|
moreStyle
|
|
67
68
|
);
|
|
68
69
|
if (accumulatedWidth + moreWidth > totalWidth) {
|
|
69
|
-
|
|
70
|
+
moreItems.value.push(tab);
|
|
71
|
+
} else {
|
|
72
|
+
visibleItems.value.push(tab);
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
});
|
|
73
|
-
if (splitIndex !== -1) {
|
|
74
|
-
visibleItems.value = drTabPages.slice(0, splitIndex);
|
|
75
|
-
moreItems.value = drTabPages.slice(splitIndex);
|
|
76
|
-
} else {
|
|
77
|
-
visibleItems.value = drTabPages;
|
|
78
|
-
moreItems.value = [];
|
|
79
|
-
}
|
|
80
76
|
}
|
|
81
77
|
const calcDrTabWidth = () => {
|
|
82
78
|
if (window.ResizeObserver) {
|
|
@@ -48,7 +48,7 @@ const FormButton = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
"onClick": this.controller.onClick.bind(this.controller),
|
|
49
49
|
"loading": this.controller.state.loading,
|
|
50
50
|
"disabled": this.controller.state.disabled,
|
|
51
|
-
"title": this.modelData.tooltip
|
|
51
|
+
"title": ibiz.env.enableTitle ? this.modelData.tooltip : void 0
|
|
52
52
|
}, {
|
|
53
53
|
default: () => [vue.createVNode("div", {
|
|
54
54
|
"class": this.ns.b("content")
|
|
@@ -28,10 +28,23 @@ const IBizFormItemContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
28
|
labelWidth: {
|
|
29
29
|
type: Number,
|
|
30
30
|
default: 130
|
|
31
|
+
},
|
|
32
|
+
enableInputTip: {
|
|
33
|
+
type: Boolean
|
|
34
|
+
},
|
|
35
|
+
inputTip: {
|
|
36
|
+
type: String
|
|
37
|
+
},
|
|
38
|
+
inputTipUrl: {
|
|
39
|
+
type: String
|
|
40
|
+
},
|
|
41
|
+
inputTipClosable: {
|
|
42
|
+
type: Boolean
|
|
31
43
|
}
|
|
32
44
|
},
|
|
33
45
|
setup(props) {
|
|
34
46
|
const ns = vue3Util.useNamespace("form-item-container");
|
|
47
|
+
const tooltip = vue.ref();
|
|
35
48
|
const cssVars = vue.computed(() => {
|
|
36
49
|
if (props.labelWidth !== 130) {
|
|
37
50
|
return ns.cssVarBlock({
|
|
@@ -40,17 +53,49 @@ const IBizFormItemContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
53
|
}
|
|
41
54
|
return {};
|
|
42
55
|
});
|
|
56
|
+
const hiddenTooltip = () => {
|
|
57
|
+
if (tooltip.value) {
|
|
58
|
+
tooltip.value.hide();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const renderLabel = () => {
|
|
62
|
+
const classList = [ns.e("label"), ...props.labelClass || []];
|
|
63
|
+
if (props.enableInputTip) {
|
|
64
|
+
return vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
65
|
+
"ref": "tooltip"
|
|
66
|
+
}, {
|
|
67
|
+
default: () => {
|
|
68
|
+
return vue.createVNode("div", {
|
|
69
|
+
"class": classList
|
|
70
|
+
}, [props.label]);
|
|
71
|
+
},
|
|
72
|
+
content: () => {
|
|
73
|
+
return vue.createVNode("div", {
|
|
74
|
+
"class": ns.em("label", "tooltip")
|
|
75
|
+
}, [props.inputTip || props.label, props.inputTipUrl && vue.createVNode("a", {
|
|
76
|
+
"href": props.inputTipUrl,
|
|
77
|
+
"target": "_blank"
|
|
78
|
+
}, [ibiz.i18n.t("component.formItemContainer.more")]), props.inputTipClosable && vue.createVNode("ion-icon", {
|
|
79
|
+
"name": "close-outline",
|
|
80
|
+
"onClick": hiddenTooltip
|
|
81
|
+
}, null)]);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return vue.createVNode("div", {
|
|
86
|
+
"class": classList,
|
|
87
|
+
"title": props.label
|
|
88
|
+
}, [props.label]);
|
|
89
|
+
};
|
|
43
90
|
return {
|
|
44
91
|
ns,
|
|
45
|
-
cssVars
|
|
92
|
+
cssVars,
|
|
93
|
+
tooltip,
|
|
94
|
+
renderLabel
|
|
46
95
|
};
|
|
47
96
|
},
|
|
48
97
|
render() {
|
|
49
98
|
var _a, _b;
|
|
50
|
-
const label = vue.createVNode("div", {
|
|
51
|
-
"class": [this.ns.e("label"), ...this.labelClass || []],
|
|
52
|
-
"title": this.label
|
|
53
|
-
}, [this.label]);
|
|
54
99
|
const content = vue.createVNode("div", {
|
|
55
100
|
"class": [this.ns.e("content"), this.ns.em("content", "label-".concat(this.labelPos.toLowerCase()))]
|
|
56
101
|
}, [vue.createVNode("div", {
|
|
@@ -62,7 +107,7 @@ const IBizFormItemContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
107
|
return vue.createVNode("div", {
|
|
63
108
|
"class": [this.ns.b(), this.ns.m(this.labelPos.toLowerCase()), this.ns.is("required", this.required), this.ns.is("error", !!this.error)],
|
|
64
109
|
"style": this.cssVars
|
|
65
|
-
}, [this.labelPos === "LEFT" || this.labelPos === "TOP" ?
|
|
110
|
+
}, [this.labelPos === "LEFT" || this.labelPos === "TOP" ? this.renderLabel() : null, content, this.labelPos === "RIGHT" || this.labelPos === "BOTTOM" ? this.renderLabel() : null]);
|
|
66
111
|
}
|
|
67
112
|
});
|
|
68
113
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-item-container{--ibiz-form-item-container-label-width:130px;--ibiz-form-item-container-line-height:var(--ibiz-height-control-default);--ibiz-form-item-container-require-mark-color:var(--ibiz-color-danger);--ibiz-form-item-container-label-left-padding:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight) calc(var(--ibiz-spacing-base-tight) / 2) 0;--ibiz-form-item-container-label-right-padding:calc(var(--ibiz-spacing-base-tight) / 2) 0 calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-form-item-container-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);--ibiz-form-item-container-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-container-label-color:var(--ibiz-color-text-1);--ibiz-form-item-container-error-font-size:var(--ibiz-font-size-small);--ibiz-form-item-container-error-color:var(--ibiz-color-danger);width:100%;height:100%;padding:var(--ibiz-form-item-container-padding)}.ibiz-form-item-container__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;font-size:var(--ibiz-form-item-container-font-size);color:var(--ibiz-form-item-container-label-color)}.ibiz-form-item-container--left,.ibiz-form-item-container--right{display:flex;min-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item-container--left .ibiz-form-item-container__label,.ibiz-form-item-container--right .ibiz-form-item-container__label{width:var(--ibiz-form-item-container-label-width)}.ibiz-form-item-container--bottom,.ibiz-form-item-container--top{display:flex;flex-flow:column nowrap}.ibiz-form-item-container--top .ibiz-form-item-container__label{margin-bottom:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container--bottom .ibiz-form-item-container__label{margin-top:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container--left .ibiz-form-item-container__label{padding:var(--ibiz-form-item-container-label-left-padding);text-align:right}.ibiz-form-item-container--right .ibiz-form-item-container__label{padding:var(--ibiz-form-item-container-label-right-padding);text-align:left}.ibiz-form-item-container.is-required .ibiz-form-item-container__label::before{display:inline-block;margin-right:4px;font-family:SimSun;line-height:1;color:var(--ibiz-form-item-container-require-mark-color);content:"*"}.ibiz-form-item-container__content{display:flex;flex-flow:column nowrap;position:relative;flex-grow:1}.ibiz-form-item-container__content--label-left,.ibiz-form-item-container__content--label-none,.ibiz-form-item-container__content--label-right{height:100%}.ibiz-form-item-container__editor{position:relative;flex-grow:1;height:100%}.ibiz-form-item-container__error{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;top:100%;width:100%;font-size:var(--ibiz-form-item-container-error-font-size);line-height:calc(var(--ibiz-form-item-container-error-font-size) + 2px);color:var(--ibiz-form-item-container-error-color);word-wrap:break-word}.ibiz-form-item-container.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--ibiz-form-item-container-error-color) inset}
|
|
1
|
+
.ibiz-form-item-container{--ibiz-form-item-container-label-width:130px;--ibiz-form-item-container-line-height:var(--ibiz-height-control-default);--ibiz-form-item-container-require-mark-color:var(--ibiz-color-danger);--ibiz-form-item-container-label-left-padding:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight) calc(var(--ibiz-spacing-base-tight) / 2) 0;--ibiz-form-item-container-label-right-padding:calc(var(--ibiz-spacing-base-tight) / 2) 0 calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-form-item-container-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);--ibiz-form-item-container-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-container-label-color:var(--ibiz-color-text-1);--ibiz-form-item-container-error-font-size:var(--ibiz-font-size-small);--ibiz-form-item-container-error-color:var(--ibiz-color-danger);width:100%;height:100%;padding:var(--ibiz-form-item-container-padding)}.ibiz-form-item-container__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;font-size:var(--ibiz-form-item-container-font-size);color:var(--ibiz-form-item-container-label-color)}.ibiz-form-item-container__label--tooltip{--ibiz-form-item-container-label-width:130px;--ibiz-form-item-container-line-height:var(--ibiz-height-control-default);--ibiz-form-item-container-require-mark-color:var(--ibiz-color-danger);--ibiz-form-item-container-label-left-padding:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight) calc(var(--ibiz-spacing-base-tight) / 2) 0;--ibiz-form-item-container-label-right-padding:calc(var(--ibiz-spacing-base-tight) / 2) 0 calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-form-item-container-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);--ibiz-form-item-container-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-container-label-color:var(--ibiz-color-text-1);--ibiz-form-item-container-error-font-size:var(--ibiz-font-size-small);--ibiz-form-item-container-error-color:var(--ibiz-color-danger);max-width:150px;font-size:var(--ibiz-form-item-container-font-size);line-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item-container__label--tooltip:has(ion-icon){padding-right:var(--ibiz-spacing-base-tight)}.ibiz-form-item-container__label--tooltip a{padding:0 var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-link)}.ibiz-form-item-container__label--tooltip ion-icon{position:absolute;top:var(--ibiz-spacing-base-tight);right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-width-icon-large)}.ibiz-form-item-container--left,.ibiz-form-item-container--right{display:flex;min-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item-container--left .ibiz-form-item-container__label,.ibiz-form-item-container--right .ibiz-form-item-container__label{width:var(--ibiz-form-item-container-label-width)}.ibiz-form-item-container--bottom,.ibiz-form-item-container--top{display:flex;flex-flow:column nowrap}.ibiz-form-item-container--top .ibiz-form-item-container__label{margin-bottom:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container--bottom .ibiz-form-item-container__label{margin-top:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container--left .ibiz-form-item-container__label{padding:var(--ibiz-form-item-container-label-left-padding);text-align:right}.ibiz-form-item-container--right .ibiz-form-item-container__label{padding:var(--ibiz-form-item-container-label-right-padding);text-align:left}.ibiz-form-item-container.is-required .ibiz-form-item-container__label::before{display:inline-block;margin-right:4px;font-family:SimSun;line-height:1;color:var(--ibiz-form-item-container-require-mark-color);content:"*"}.ibiz-form-item-container__content{display:flex;flex-flow:column nowrap;position:relative;flex-grow:1}.ibiz-form-item-container__content--label-left,.ibiz-form-item-container__content--label-none,.ibiz-form-item-container__content--label-right{height:100%}.ibiz-form-item-container__editor{position:relative;flex-grow:1;height:100%}.ibiz-form-item-container__error{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;top:100%;width:100%;font-size:var(--ibiz-form-item-container-error-font-size);line-height:calc(var(--ibiz-form-item-container-error-font-size) + 2px);color:var(--ibiz-form-item-container-error-color);word-wrap:break-word}.ibiz-form-item-container.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--ibiz-form-item-container-error-color) inset}
|
|
@@ -81,6 +81,10 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
"labelClass": this.controller.labelClass,
|
|
82
82
|
"label-pos": this.c.model.labelPos,
|
|
83
83
|
"label-width": this.c.model.labelWidth,
|
|
84
|
+
"enableInputTip": this.modelData.enableInputTip,
|
|
85
|
+
"inputTip": this.modelData.inputTip,
|
|
86
|
+
"inputTipUrl": this.modelData.inputTipUrl,
|
|
87
|
+
"inputTipClosable": this.modelData.inputTipClosable,
|
|
84
88
|
"onClick": (event) => this.c.onClick(event)
|
|
85
89
|
}, _isSlot(editor) ? editor : {
|
|
86
90
|
default: () => [editor]
|