@ibiz-template/vue3-components 0.7.27 → 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 (121) hide show
  1. package/dist/{index-0TO7mjm5.js → index-HNRMy1_g.js} +1 -1
  2. package/dist/index-QB7iGpIB.js +4 -0
  3. package/dist/{index-g6o3vQXo.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-qdXxbg2A.js → xlsx-util-nADTbeWP.js} +1 -1
  8. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +0 -1
  9. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +3 -3
  10. package/es/control/drtab/drtab-control.util.mjs +1 -1
  11. package/es/control/grid/grid/grid-control.util.d.ts +0 -2
  12. package/es/control/grid/grid/grid-control.util.mjs +9 -72
  13. package/es/control/grid/grid/grid.css +1 -1
  14. package/es/control/grid/grid/grid.d.ts +0 -2
  15. package/es/control/grid/grid/grid.mjs +1 -7
  16. package/es/control/grid/grid/index.d.ts +0 -2
  17. package/es/control/report-panel/report-panel.mjs +5 -0
  18. package/es/control/toolbar/toolbar.css +1 -1
  19. package/es/control/toolbar/toolbar.mjs +144 -8
  20. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
  21. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +2 -9
  22. package/es/editor/html/html-editor.controller.d.ts +88 -0
  23. package/es/editor/html/html-editor.controller.mjs +169 -6
  24. package/es/editor/html/wang-editor/component/emoji/emoji.css +1 -0
  25. package/es/editor/html/wang-editor/component/emoji/emoji.d.ts +17 -0
  26. package/es/editor/html/wang-editor/component/emoji/emoji.mjs +42 -0
  27. package/es/editor/html/wang-editor/component/index.d.ts +1 -0
  28. package/es/editor/html/wang-editor/component/index.mjs +3 -0
  29. package/es/editor/html/wang-editor/element/emoji.d.ts +7 -0
  30. package/es/editor/html/wang-editor/element/emoji.mjs +22 -0
  31. package/es/editor/html/wang-editor/element/index.d.ts +1 -0
  32. package/es/editor/html/wang-editor/element/index.mjs +3 -0
  33. package/es/editor/html/wang-editor/index.d.ts +4 -0
  34. package/es/editor/html/wang-editor/index.mjs +11 -0
  35. package/es/editor/html/wang-editor/module/ai-module.d.ts +67 -0
  36. package/es/editor/html/wang-editor/module/ai-module.mjs +76 -0
  37. package/es/editor/html/wang-editor/module/emoji-module.d.ts +7 -0
  38. package/es/editor/html/wang-editor/module/emoji-module.mjs +125 -0
  39. package/es/editor/html/wang-editor/module/index.d.ts +2 -0
  40. package/es/editor/html/wang-editor/module/index.mjs +4 -0
  41. package/es/editor/html/wang-editor/plugin/index.d.ts +1 -0
  42. package/es/editor/html/wang-editor/plugin/index.mjs +3 -0
  43. package/es/editor/html/wang-editor/plugin/plugin.d.ts +7 -0
  44. package/es/editor/html/wang-editor/plugin/plugin.mjs +23 -0
  45. package/es/editor/html/wang-editor/wang-editor.css +1 -1
  46. package/es/editor/html/wang-editor/wang-editor.mjs +7 -7
  47. package/es/editor/span/span/span.mjs +2 -2
  48. package/es/editor/text-box/input/input.mjs +2 -2
  49. package/es/locale/en/index.d.ts +1 -0
  50. package/es/locale/en/index.mjs +2 -1
  51. package/es/locale/zh-CN/index.d.ts +1 -0
  52. package/es/locale/zh-CN/index.mjs +2 -1
  53. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.mjs +89 -0
  54. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.mjs +47 -0
  55. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.mjs +1 -0
  56. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.mjs +115 -0
  57. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.mjs +18 -0
  58. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.mjs +376 -0
  59. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.mjs +9 -0
  60. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.mjs +64 -0
  61. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.mjs +59 -0
  62. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.mjs +28 -0
  63. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.mjs +42 -0
  64. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.mjs +85 -0
  65. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.mjs +24 -0
  66. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.mjs +115 -0
  67. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.mjs +52 -0
  68. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.mjs +62 -0
  69. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.mjs +6 -0
  70. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +3 -3
  71. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  72. package/lib/control/grid/grid/grid-control.util.cjs +9 -72
  73. package/lib/control/grid/grid/grid.cjs +1 -7
  74. package/lib/control/grid/grid/grid.css +1 -1
  75. package/lib/control/report-panel/report-panel.cjs +5 -0
  76. package/lib/control/toolbar/toolbar.cjs +144 -8
  77. package/lib/control/toolbar/toolbar.css +1 -1
  78. package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -8
  79. package/lib/editor/html/html-editor.controller.cjs +169 -6
  80. package/lib/editor/html/wang-editor/component/emoji/emoji.cjs +44 -0
  81. package/lib/editor/html/wang-editor/component/emoji/emoji.css +1 -0
  82. package/lib/editor/html/wang-editor/component/index.cjs +7 -0
  83. package/lib/editor/html/wang-editor/element/emoji.cjs +24 -0
  84. package/lib/editor/html/wang-editor/element/index.cjs +7 -0
  85. package/lib/editor/html/wang-editor/index.cjs +19 -0
  86. package/lib/editor/html/wang-editor/module/ai-module.cjs +78 -0
  87. package/lib/editor/html/wang-editor/module/emoji-module.cjs +127 -0
  88. package/lib/editor/html/wang-editor/module/index.cjs +9 -0
  89. package/lib/editor/html/wang-editor/plugin/index.cjs +7 -0
  90. package/lib/editor/html/wang-editor/plugin/plugin.cjs +25 -0
  91. package/lib/editor/html/wang-editor/wang-editor.cjs +7 -7
  92. package/lib/editor/html/wang-editor/wang-editor.css +1 -1
  93. package/lib/editor/span/span/span.cjs +1 -1
  94. package/lib/editor/text-box/input/input.cjs +1 -1
  95. package/lib/locale/en/index.cjs +2 -1
  96. package/lib/locale/zh-CN/index.cjs +2 -1
  97. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.cjs +93 -0
  98. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.cjs +49 -0
  99. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.cjs +2 -0
  100. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.cjs +117 -0
  101. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.cjs +42 -0
  102. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.cjs +378 -0
  103. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.cjs +12 -0
  104. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.cjs +67 -0
  105. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.cjs +61 -0
  106. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.cjs +30 -0
  107. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.cjs +44 -0
  108. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.cjs +87 -0
  109. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.cjs +26 -0
  110. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.cjs +117 -0
  111. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.cjs +54 -0
  112. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.cjs +64 -0
  113. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.cjs +8 -0
  114. package/package.json +6 -5
  115. package/dist/index-Dq21zXhV.js +0 -4
  116. package/dist/wang-editor-XpJH4SXt.js +0 -1
  117. package/es/editor/html/wang-editor/ai/ai-modules.d.ts +0 -10
  118. package/es/editor/html/wang-editor/ai/ai-modules.mjs +0 -32
  119. package/lib/editor/html/wang-editor/ai/ai-modules.cjs +0 -34
  120. /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.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
  121. /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.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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.27",
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",
@@ -31,12 +31,12 @@
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.5",
32
32
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.6",
33
33
  "@ibiz-template-plugin/bi-report": "0.0.6",
34
- "@ibiz-template/core": "0.7.27",
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.27",
37
- "@ibiz-template/runtime": "0.7.27",
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.27",
39
+ "@ibiz-template/vue3-util": "0.7.28-alpha.0",
40
40
  "@ibiz-template/web-theme": "^1.1.18",
41
41
  "@ibiz/model-core": "^0.1.42",
42
42
  "@imengyu/vue3-context-menu": "^1.3.5",
@@ -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": {