@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.
Files changed (186) hide show
  1. package/dist/{index-RwYoggQd.js → index-HNRMy1_g.js} +1 -1
  2. package/dist/index-QB7iGpIB.js +4 -0
  3. package/dist/{index-s7g1-ymW.js → index-xa8K5AHD.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/wang-editor-YqnK5uQU.js +1 -0
  7. package/dist/{xlsx-util-Rf5FMxyR.js → xlsx-util-nADTbeWP.js} +1 -1
  8. package/es/common/action-toolbar/action-toolbar.mjs +1 -1
  9. package/es/common/custom-theme/custom-theme.mjs +1 -1
  10. package/es/common/data-import2/data-import2.mjs +4 -1
  11. package/es/control/context-menu/context-menu.mjs +2 -2
  12. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +0 -1
  13. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +1 -1
  14. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +3 -3
  15. package/es/control/drtab/drtab-control.util.mjs +7 -11
  16. package/es/control/form/form-detail/form-button/form-button.mjs +1 -1
  17. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  18. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +28 -0
  19. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +52 -7
  20. package/es/control/form/form-detail/form-item/form-item.mjs +4 -0
  21. package/es/control/grid/grid/grid-control.util.d.ts +0 -2
  22. package/es/control/grid/grid/grid-control.util.mjs +24 -83
  23. package/es/control/grid/grid/grid.css +1 -1
  24. package/es/control/grid/grid/grid.d.ts +0 -2
  25. package/es/control/grid/grid/grid.mjs +1 -7
  26. package/es/control/grid/grid/index.d.ts +0 -2
  27. package/es/control/report-panel/report-panel.mjs +5 -0
  28. package/es/control/search-bar/search-bar.mjs +2 -2
  29. package/es/control/toolbar/export-excel/export-excel.mjs +2 -2
  30. package/es/control/toolbar/short-cut-button/short-cut-button.mjs +4 -1
  31. package/es/control/toolbar/toolbar.css +1 -1
  32. package/es/control/toolbar/toolbar.mjs +146 -10
  33. package/es/control/tree/index.d.ts +9 -0
  34. package/es/control/tree/tree.d.ts +9 -0
  35. package/es/control/tree/tree.mjs +5 -1
  36. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
  37. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
  38. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  39. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +4 -0
  40. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +48 -3
  41. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
  42. package/es/editor/data-picker/picker-editor.controller.d.ts +2 -2
  43. package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +6 -0
  44. package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +10 -1
  45. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
  46. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +17 -4
  47. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -1
  48. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +3 -1
  49. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +26 -12
  50. package/es/editor/html/html-editor.controller.d.ts +88 -0
  51. package/es/editor/html/html-editor.controller.mjs +169 -6
  52. package/es/editor/html/wang-editor/component/emoji/emoji.css +1 -0
  53. package/es/editor/html/wang-editor/component/emoji/emoji.d.ts +17 -0
  54. package/es/editor/html/wang-editor/component/emoji/emoji.mjs +42 -0
  55. package/es/editor/html/wang-editor/component/index.d.ts +1 -0
  56. package/es/editor/html/wang-editor/component/index.mjs +3 -0
  57. package/es/editor/html/wang-editor/element/emoji.d.ts +7 -0
  58. package/es/editor/html/wang-editor/element/emoji.mjs +22 -0
  59. package/es/editor/html/wang-editor/element/index.d.ts +1 -0
  60. package/es/editor/html/wang-editor/element/index.mjs +3 -0
  61. package/es/editor/html/wang-editor/index.d.ts +4 -0
  62. package/es/editor/html/wang-editor/index.mjs +11 -0
  63. package/es/editor/html/wang-editor/module/ai-module.d.ts +67 -0
  64. package/es/editor/html/wang-editor/module/ai-module.mjs +76 -0
  65. package/es/editor/html/wang-editor/module/emoji-module.d.ts +7 -0
  66. package/es/editor/html/wang-editor/module/emoji-module.mjs +125 -0
  67. package/es/editor/html/wang-editor/module/index.d.ts +2 -0
  68. package/es/editor/html/wang-editor/module/index.mjs +4 -0
  69. package/es/editor/html/wang-editor/plugin/index.d.ts +1 -0
  70. package/es/editor/html/wang-editor/plugin/index.mjs +3 -0
  71. package/es/editor/html/wang-editor/plugin/plugin.d.ts +7 -0
  72. package/es/editor/html/wang-editor/plugin/plugin.mjs +23 -0
  73. package/es/editor/html/wang-editor/wang-editor.css +1 -1
  74. package/es/editor/html/wang-editor/wang-editor.mjs +7 -7
  75. package/es/editor/span/span/span.mjs +3 -1
  76. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +12 -10
  77. package/es/editor/text-box/input/input.mjs +3 -0
  78. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +1 -1
  79. package/es/locale/en/index.d.ts +4 -0
  80. package/es/locale/en/index.mjs +5 -1
  81. package/es/locale/zh-CN/index.d.ts +4 -0
  82. package/es/locale/zh-CN/index.mjs +5 -1
  83. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.mjs +89 -0
  84. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.mjs +47 -0
  85. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.mjs +1 -0
  86. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.mjs +115 -0
  87. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.mjs +18 -0
  88. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.mjs +376 -0
  89. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.mjs +9 -0
  90. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.mjs +64 -0
  91. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.mjs +59 -0
  92. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.mjs +28 -0
  93. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.mjs +42 -0
  94. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.mjs +85 -0
  95. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.mjs +24 -0
  96. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.mjs +115 -0
  97. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.mjs +52 -0
  98. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.mjs +62 -0
  99. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.mjs +6 -0
  100. package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -2
  101. package/es/panel-component/panel-button/panel-button.mjs +1 -1
  102. package/es/view-engine/edit-view.engine.mjs +3 -2
  103. package/es/view-engine/opt-view.engine.mjs +2 -1
  104. package/es/view-engine/pickup-tree-view.engine.mjs +1 -0
  105. package/es/web-app/attach-environment-config.mjs +2 -1
  106. package/lib/common/action-toolbar/action-toolbar.cjs +1 -1
  107. package/lib/common/custom-theme/custom-theme.cjs +1 -1
  108. package/lib/common/data-import2/data-import2.cjs +4 -1
  109. package/lib/control/context-menu/context-menu.cjs +2 -2
  110. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +1 -1
  111. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +3 -3
  112. package/lib/control/drtab/drtab-control.util.cjs +7 -11
  113. package/lib/control/form/form-detail/form-button/form-button.cjs +1 -1
  114. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +51 -6
  115. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  116. package/lib/control/form/form-detail/form-item/form-item.cjs +4 -0
  117. package/lib/control/grid/grid/grid-control.util.cjs +24 -83
  118. package/lib/control/grid/grid/grid.cjs +1 -7
  119. package/lib/control/grid/grid/grid.css +1 -1
  120. package/lib/control/report-panel/report-panel.cjs +5 -0
  121. package/lib/control/search-bar/search-bar.cjs +2 -2
  122. package/lib/control/toolbar/export-excel/export-excel.cjs +2 -2
  123. package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +4 -1
  124. package/lib/control/toolbar/toolbar.cjs +146 -10
  125. package/lib/control/toolbar/toolbar.css +1 -1
  126. package/lib/control/tree/tree.cjs +5 -1
  127. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
  128. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
  129. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +48 -3
  130. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  131. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
  132. package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +10 -1
  133. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +17 -4
  134. package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +24 -10
  135. package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -1
  136. package/lib/editor/html/html-editor.controller.cjs +169 -6
  137. package/lib/editor/html/wang-editor/component/emoji/emoji.cjs +44 -0
  138. package/lib/editor/html/wang-editor/component/emoji/emoji.css +1 -0
  139. package/lib/editor/html/wang-editor/component/index.cjs +7 -0
  140. package/lib/editor/html/wang-editor/element/emoji.cjs +24 -0
  141. package/lib/editor/html/wang-editor/element/index.cjs +7 -0
  142. package/lib/editor/html/wang-editor/index.cjs +19 -0
  143. package/lib/editor/html/wang-editor/module/ai-module.cjs +78 -0
  144. package/lib/editor/html/wang-editor/module/emoji-module.cjs +127 -0
  145. package/lib/editor/html/wang-editor/module/index.cjs +9 -0
  146. package/lib/editor/html/wang-editor/plugin/index.cjs +7 -0
  147. package/lib/editor/html/wang-editor/plugin/plugin.cjs +25 -0
  148. package/lib/editor/html/wang-editor/wang-editor.cjs +7 -7
  149. package/lib/editor/html/wang-editor/wang-editor.css +1 -1
  150. package/lib/editor/span/span/span.cjs +2 -0
  151. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +12 -10
  152. package/lib/editor/text-box/input/input.cjs +3 -0
  153. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +1 -1
  154. package/lib/locale/en/index.cjs +5 -1
  155. package/lib/locale/zh-CN/index.cjs +5 -1
  156. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.cjs +93 -0
  157. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.cjs +49 -0
  158. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.cjs +2 -0
  159. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.cjs +117 -0
  160. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.cjs +42 -0
  161. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.cjs +378 -0
  162. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.cjs +12 -0
  163. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.cjs +67 -0
  164. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.cjs +61 -0
  165. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.cjs +30 -0
  166. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.cjs +44 -0
  167. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.cjs +87 -0
  168. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.cjs +26 -0
  169. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.cjs +117 -0
  170. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.cjs +54 -0
  171. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.cjs +64 -0
  172. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.cjs +8 -0
  173. package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -2
  174. package/lib/panel-component/panel-button/panel-button.cjs +1 -1
  175. package/lib/view-engine/edit-view.engine.cjs +3 -2
  176. package/lib/view-engine/opt-view.engine.cjs +2 -1
  177. package/lib/view-engine/pickup-tree-view.engine.cjs +1 -0
  178. package/lib/web-app/attach-environment-config.cjs +2 -1
  179. package/package.json +8 -7
  180. package/dist/index-28jZm-aB.js +0 -4
  181. package/dist/wang-editor-XpJH4SXt.js +0 -1
  182. package/es/editor/html/wang-editor/ai/ai-modules.d.ts +0 -10
  183. package/es/editor/html/wang-editor/ai/ai-modules.mjs +0 -32
  184. package/lib/editor/html/wang-editor/ai/ai-modules.cjs +0 -34
  185. /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
  186. /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,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;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ function vnode(sel, data, children, text, elm) {
4
+ const key = data === undefined ? undefined : data.key;
5
+ return { sel, data, children, text, elm, key };
6
+ }
7
+
8
+ exports.vnode = vnode;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var runtime = require('@ibiz-template/runtime');
4
4
  var ramda = require('ramda');
5
+ var vue = require('vue');
5
6
  var navTabs_state = require('./nav-tabs.state.cjs');
6
7
 
7
8
  "use strict";
@@ -132,10 +133,10 @@ class NavTabsController extends runtime.PanelItemController {
132
133
  };
133
134
  this.state.tabItems.push(tempItem);
134
135
  this.state.activeTab = tempItem.key;
135
- setTimeout(() => {
136
+ vue.nextTick(() => {
136
137
  this.state.tabItems.pop();
137
138
  this.state.activeTab = this.state.tabItems[this.state.tabItems.length - 1].key;
138
- }, 100);
139
+ });
139
140
  }
140
141
  }
141
142
 
@@ -105,7 +105,7 @@ const PanelButton = /* @__PURE__ */ vue.defineComponent({
105
105
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
106
106
  "type": this.buttonType,
107
107
  "text": this.isText,
108
- "title": this.tooltip,
108
+ "title": ibiz.env.enableTitle ? this.tooltip : void 0,
109
109
  "disabled": this.state.disabled,
110
110
  "loading": this.state.loading,
111
111
  "onClick": this.handleButtonClick
@@ -63,9 +63,10 @@ class EditViewEngine extends runtime.ViewEngineBase {
63
63
  }
64
64
  this.view.slotProps.toolbar.manualCalcButtonState = true;
65
65
  modal.hooks.shouldDismiss.tapPromise(async (context) => {
66
+ var _a, _b;
66
67
  const uiDomain = ibiz.uiDomainManager.get(this.view.context.srfsessionid);
67
- const isChange = (this.form.state.modified || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
68
- if (isChange && this.form.model.enableAutoSave && !uiDomain.dataModification) {
68
+ const isChange = (((_a = this.form) == null ? void 0 : _a.state.modified) || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
69
+ if (isChange && ((_b = this.form) == null ? void 0 : _b.model.enableAutoSave) && !uiDomain.dataModification) {
69
70
  await this.form.immediateAutoSave();
70
71
  } else if (isChange && context.allowClose == null) {
71
72
  const isAllow = await ibiz.confirm.error({
@@ -32,8 +32,9 @@ class OptViewEngine extends runtime.ViewEngineBase {
32
32
  }
33
33
  this.view.slotProps.toolbar.manualCalcButtonState = true;
34
34
  modal.hooks.shouldDismiss.tapPromise(async (context) => {
35
+ var _a;
35
36
  const uiDomain = ibiz.uiDomainManager.get(this.view.context.srfsessionid);
36
- const isChange = (this.form.state.modified || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
37
+ const isChange = (((_a = this.form) == null ? void 0 : _a.state.modified) || uiDomain.dataModification) && this.view.model.enableDirtyChecking === true;
37
38
  if (isChange && context.allowClose == null) {
38
39
  const isAllow = await ibiz.confirm.error({
39
40
  title: ibiz.i18n.t("viewEngine.closeRemind"),
@@ -41,6 +41,7 @@ class PickupTreeViewEngine extends treeView_engine.TreeViewEngine {
41
41
  this.view.slotProps.tree = {};
42
42
  }
43
43
  this.view.slotProps.tree.singleSelect = this.view.state.singleSelect;
44
+ this.view.slotProps.tree.checkStrictly = this.view.state.checkStrictly;
44
45
  if (this.view.state.selectedData) {
45
46
  this.selectData = this.view.state.selectedData.map((item) => {
46
47
  return {
@@ -8,7 +8,8 @@ const envMap = /* @__PURE__ */ new Map([
8
8
  ["baseUrl", "BaseUrl"],
9
9
  ["remoteModelUrl", "remoteDynaPath"],
10
10
  ["dcSystem", "mockDcSystemId"],
11
- ["enablePermission", "enablePermissionValid"]
11
+ ["enablePermission", "enablePermissionValid"],
12
+ ["enableTitle", "enableTitle"]
12
13
  ]);
13
14
  async function attachEnvironmentConfig() {
14
15
  const env = window.Environment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.26",
3
+ "version": "0.7.28-alpha.0",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,15 +30,15 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.5",
32
32
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.6",
33
- "@ibiz-template-plugin/bi-report": "0.0.5",
34
- "@ibiz-template/core": "0.7.26",
33
+ "@ibiz-template-plugin/bi-report": "0.0.6",
34
+ "@ibiz-template/core": "0.7.28-alpha.0",
35
35
  "@ibiz-template/devtool": "0.0.1-dev.6",
36
- "@ibiz-template/model-helper": "0.7.26",
37
- "@ibiz-template/runtime": "0.7.26",
36
+ "@ibiz-template/model-helper": "0.7.28-alpha.0",
37
+ "@ibiz-template/runtime": "0.7.28-alpha.0",
38
38
  "@ibiz-template/theme": "^0.7.0",
39
- "@ibiz-template/vue3-util": "0.7.26",
39
+ "@ibiz-template/vue3-util": "0.7.28-alpha.0",
40
40
  "@ibiz-template/web-theme": "^1.1.18",
41
- "@ibiz/model-core": "^0.1.40",
41
+ "@ibiz/model-core": "^0.1.42",
42
42
  "@imengyu/vue3-context-menu": "^1.3.5",
43
43
  "@monaco-editor/loader": "^1.4.0",
44
44
  "@wangeditor/editor": "^5.1.23",
@@ -63,6 +63,7 @@
63
63
  "vue-i18n": "^9.6.5",
64
64
  "vue-router": "^4.2.5",
65
65
  "vuedraggable": "^4.1.0",
66
+ "snabbdom": "^3.3.1",
66
67
  "xlsx": "^0.18.5"
67
68
  },
68
69
  "devDependencies": {