@ibiz-template/vue3-components 0.7.24-alpha.1 → 0.7.24

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 (90) hide show
  1. package/dist/{index-d_MgYoar.js → index--XeT2CTZ.js} +1 -1
  2. package/dist/index-XTX4vyZZ.js +4 -0
  3. package/dist/{index-3r8aPzsK.js → index-_h-elF6t.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{xlsx-util-B5sYgU54.js → xlsx-util-aO-rYvlt.js} +1 -1
  7. package/es/common/grid-setting/grid-setting.d.ts +1 -0
  8. package/es/control/data-view/data-view.css +1 -1
  9. package/es/control/data-view/data-view.d.ts +1 -0
  10. package/es/control/data-view/data-view.mjs +35 -5
  11. package/es/control/data-view/index.d.ts +1 -0
  12. package/es/control/drtab/drtab-control.util.d.ts +17 -0
  13. package/es/control/drtab/drtab-control.util.mjs +115 -0
  14. package/es/control/drtab/drtab.controller.d.ts +7 -0
  15. package/es/control/drtab/drtab.controller.mjs +13 -0
  16. package/es/control/drtab/drtab.css +1 -1
  17. package/es/control/drtab/drtab.d.ts +4 -0
  18. package/es/control/drtab/drtab.mjs +94 -33
  19. package/es/control/drtab/index.d.ts +4 -0
  20. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +1 -0
  21. package/es/control/grid/grid/grid-control.util.mjs +3 -1
  22. package/es/control/grid/grid/grid.css +1 -1
  23. package/es/control/grid/grid/grid.d.ts +3 -0
  24. package/es/control/grid/grid/grid.mjs +43 -4
  25. package/es/control/grid/grid/index.d.ts +3 -0
  26. package/es/control/list/index.d.ts +1 -0
  27. package/es/control/list/list.css +1 -1
  28. package/es/control/list/list.d.ts +1 -0
  29. package/es/control/list/list.mjs +35 -7
  30. package/es/control/tree/el-tree-util.d.ts +0 -16
  31. package/es/control/tree/index.d.ts +0 -16
  32. package/es/control/tree/tree.d.ts +0 -16
  33. package/es/editor/check-box/check-box-editor.provider.mjs +1 -1
  34. package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +7 -2
  35. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +7 -2
  36. package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +7 -2
  37. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +7 -2
  38. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +12 -10
  39. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -2
  40. package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +7 -2
  41. package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +7 -2
  42. package/es/editor/span/span/span.d.ts +6 -0
  43. package/es/editor/span/span/span.mjs +11 -6
  44. package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +7 -2
  45. package/es/editor/text-box/input/input.d.ts +35 -0
  46. package/es/editor/text-box/input/input.mjs +30 -3
  47. package/es/editor/text-box/text-box-editor.controller.d.ts +10 -3
  48. package/es/editor/text-box/text-box-editor.controller.mjs +13 -2
  49. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +7 -2
  50. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +7 -2
  51. package/es/locale/en/index.d.ts +3 -1
  52. package/es/locale/en/index.mjs +2 -1
  53. package/es/locale/zh-CN/index.d.ts +3 -1
  54. package/es/locale/zh-CN/index.mjs +2 -1
  55. package/es/node_modules/.pnpm/@ibiz-template_core@0.7.18_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 +218 -0
  56. package/es/node_modules/.pnpm/{element-plus@2.7.5_vue@3.3.8 → element-plus@2.4.4_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.mjs +1 -14
  57. package/es/web-app/create-vue-app.mjs +1 -1
  58. package/lib/control/data-view/data-view.cjs +34 -4
  59. package/lib/control/data-view/data-view.css +1 -1
  60. package/lib/control/drtab/drtab-control.util.cjs +117 -0
  61. package/lib/control/drtab/drtab.cjs +93 -32
  62. package/lib/control/drtab/drtab.controller.cjs +13 -0
  63. package/lib/control/drtab/drtab.css +1 -1
  64. package/lib/control/grid/grid/grid-control.util.cjs +3 -1
  65. package/lib/control/grid/grid/grid.cjs +42 -3
  66. package/lib/control/grid/grid/grid.css +1 -1
  67. package/lib/control/list/list.cjs +34 -6
  68. package/lib/control/list/list.css +1 -1
  69. package/lib/editor/check-box/check-box-editor.provider.cjs +1 -1
  70. package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.cjs +6 -1
  71. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +6 -1
  72. package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +6 -1
  73. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +6 -1
  74. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +11 -9
  75. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +6 -1
  76. package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +6 -1
  77. package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +6 -1
  78. package/lib/editor/span/span/span.cjs +11 -6
  79. package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +6 -1
  80. package/lib/editor/text-box/input/input.cjs +28 -1
  81. package/lib/editor/text-box/text-box-editor.controller.cjs +12 -1
  82. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -1
  83. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +6 -1
  84. package/lib/locale/en/index.cjs +2 -1
  85. package/lib/locale/zh-CN/index.cjs +2 -1
  86. package/lib/node_modules/.pnpm/@ibiz-template_core@0.7.18_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 +221 -0
  87. package/lib/node_modules/.pnpm/{element-plus@2.7.5_vue@3.3.8 → element-plus@2.4.4_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.cjs +1 -14
  88. package/lib/web-app/create-vue-app.cjs +1 -1
  89. package/package.json +8 -8
  90. package/dist/index-O0hiquCe.js +0 -4
@@ -18,6 +18,10 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
18
18
  }) {
19
19
  const ns = vue3Util.useNamespace("file-upload");
20
20
  const c = props.controller;
21
+ const {
22
+ useInFocusAndBlur,
23
+ useInValueChange
24
+ } = vue3Util.useAutoFocusBlur(props, emit);
21
25
  const {
22
26
  uploadUrl,
23
27
  headers,
@@ -30,6 +34,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
30
34
  beforeUpload
31
35
  } = useIviewUpload.useIViewUpload(props, (value) => {
32
36
  emit("change", value);
37
+ useInValueChange();
33
38
  }, c);
34
39
  const noUploadIcon = vue.computed(() => {
35
40
  var _a;
@@ -46,7 +51,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
46
51
  });
47
52
  const {
48
53
  componentRef
49
- } = vue3Util.useFocusAndBlur(() => emit("focus"), () => emit("blur"));
54
+ } = vue3Util.useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
50
55
  return {
51
56
  ns,
52
57
  c,
@@ -15,6 +15,10 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
15
15
  }) {
16
16
  const ns = vue3Util.useNamespace("image-upload");
17
17
  const c = props.controller;
18
+ const {
19
+ useInFocusAndBlur,
20
+ useInValueChange
21
+ } = vue3Util.useAutoFocusBlur(props, emit);
18
22
  const {
19
23
  uploadUrl,
20
24
  headers,
@@ -27,6 +31,7 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
27
31
  beforeUpload
28
32
  } = useIviewUpload.useIViewUpload(props, (value) => {
29
33
  emit("change", value);
34
+ useInValueChange();
30
35
  }, c);
31
36
  const dialogImageUrl = vue.ref("");
32
37
  const dialogVisible = vue.ref(false);
@@ -48,7 +53,7 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
48
53
  });
49
54
  const {
50
55
  componentRef
51
- } = vue3Util.useFocusAndBlur(() => emit("focus"), () => emit("blur"));
56
+ } = vue3Util.useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
52
57
  return {
53
58
  ns,
54
59
  c,
@@ -238,7 +238,8 @@ var index = {
238
238
  gridRowHoverDesc: "Table row suspension color, background color when a row is hover",
239
239
  gridRowSelect: "Select color for table row",
240
240
  gridRowSelectDesc: "Table row selected color, background color when a row is selected"
241
- }
241
+ },
242
+ loadMore: "Load more"
242
243
  },
243
244
  menu: {
244
245
  noSupportAlign: "The menu direction {align} is not supported temporarily",
@@ -238,7 +238,8 @@ var index = {
238
238
  gridRowHoverDesc: "\u8868\u683C\u884C\u60AC\u6D6E\u8272, \u5F53\u67D0\u4E00\u884Chover\u65F6\u80CC\u666F\u8272",
239
239
  gridRowSelect: "\u8868\u683C\u884C\u9009\u4E2D\u8272",
240
240
  gridRowSelectDesc: "\u8868\u683C\u884C\u9009\u4E2D\u8272\uFF0C\u5F53\u67D0\u4E00\u884C\u9009\u4E2D\u65F6\u80CC\u666F\u8272"
241
- }
241
+ },
242
+ loadMore: "\u52A0\u8F7D\u66F4\u591A"
242
243
  },
243
244
  menu: {
244
245
  noSupportAlign: "\u6682\u672A\u652F\u6301\u83DC\u5355\u65B9\u5411\u4E3A {align}",
@@ -0,0 +1,221 @@
1
+ 'use strict';
2
+
3
+ const defaultNamespace = 'ibiz';
4
+ const statePrefix = 'is-';
5
+ /**
6
+ * css bem 命名规则拼接
7
+ * _bem('ibiz', 'layout') => ibiz-layout
8
+ * _bem('ibiz', 'layout', '', 'title') => ibiz-layout__title
9
+ * _bem('ibiz', 'layout', '', '', 'right') => ibiz-layout--right
10
+ * _bem('ibiz', 'layout', '', 'title', 'right') => ibiz-layout__title--right
11
+ * _bem('ibiz', 'layout', 'header', 'title', 'right') => ibiz-layout-header__title--right
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-09-06 11:09:42
15
+ * @param {string} namespace 命名空间
16
+ * @param {string} block 块
17
+ * @param {string} blockSuffix 块后缀
18
+ * @param {string} element 元素
19
+ * @param {string} modifier 修饰符
20
+ * @return {*} {string}
21
+ */
22
+ function _bem(namespace, block, blockSuffix, element, modifier) {
23
+ let cls = `${namespace}-${block}`;
24
+ if (blockSuffix) {
25
+ cls += `-${blockSuffix}`;
26
+ }
27
+ if (element) {
28
+ cls += `__${element}`;
29
+ }
30
+ if (modifier) {
31
+ cls += `--${modifier}`;
32
+ }
33
+ return cls;
34
+ }
35
+ /**
36
+ * 全局样式处理命名空间
37
+ *
38
+ * @author chitanda
39
+ * @date 2022-09-06 11:09:50
40
+ * @export
41
+ * @class Namespace
42
+ */
43
+ class Namespace {
44
+ /**
45
+ * Creates an instance of Namespace.
46
+ *
47
+ * @author chitanda
48
+ * @date 2022-09-06 12:09:12
49
+ * @param {string} block 当前命名空间的根模块,例如组件的名称
50
+ * @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
51
+ */
52
+ constructor(block, namespace) {
53
+ this.block = block;
54
+ this.namespace = namespace || defaultNamespace;
55
+ }
56
+ /**
57
+ * namespace-block
58
+ * namespace-block-blockSuffix
59
+ *
60
+ * @author chitanda
61
+ * @date 2022-09-06 12:09:08
62
+ * @param {string} [blockSuffix='']
63
+ * @return {*} {string}
64
+ */
65
+ b(blockSuffix = '') {
66
+ return _bem(this.namespace, this.block, blockSuffix, '', '');
67
+ }
68
+ /**
69
+ * namespace-block__element
70
+ *
71
+ * @author chitanda
72
+ * @date 2022-09-06 12:09:48
73
+ * @param {string} [element]
74
+ * @return {*} {string}
75
+ */
76
+ e(element) {
77
+ return element ? _bem(this.namespace, this.block, '', element, '') : '';
78
+ }
79
+ /**
80
+ * namespace-block--modifier
81
+ *
82
+ * @author chitanda
83
+ * @date 2022-09-06 12:09:37
84
+ * @param {string} [modifier]
85
+ * @return {*} {string}
86
+ */
87
+ m(modifier) {
88
+ return modifier ? _bem(this.namespace, this.block, '', '', modifier) : '';
89
+ }
90
+ /**
91
+ * namespace-block-blockSuffix__element
92
+ *
93
+ * @author chitanda
94
+ * @date 2022-09-06 12:09:52
95
+ * @param {string} [blockSuffix]
96
+ * @param {string} [element]
97
+ * @return {*} {string}
98
+ */
99
+ be(blockSuffix, element) {
100
+ return blockSuffix && element
101
+ ? _bem(this.namespace, this.block, blockSuffix, element, '')
102
+ : '';
103
+ }
104
+ /**
105
+ * namespace-block__element--modifier
106
+ *
107
+ * @author chitanda
108
+ * @date 2022-09-06 12:09:19
109
+ * @param {string} [element]
110
+ * @param {string} [modifier]
111
+ * @return {*} {string}
112
+ */
113
+ em(element, modifier) {
114
+ return element && modifier
115
+ ? _bem(this.namespace, this.block, '', element, modifier)
116
+ : '';
117
+ }
118
+ /**
119
+ * namespace-block-blockSuffix--modifier
120
+ *
121
+ * @author chitanda
122
+ * @date 2022-09-06 12:09:59
123
+ * @param {string} [blockSuffix]
124
+ * @param {string} [modifier]
125
+ * @return {*} {string}
126
+ */
127
+ bm(blockSuffix, modifier) {
128
+ return blockSuffix && modifier
129
+ ? _bem(this.namespace, this.block, blockSuffix, '', modifier)
130
+ : '';
131
+ }
132
+ /**
133
+ * namespace-block-blockSuffix__element--modifier
134
+ *
135
+ * @author chitanda
136
+ * @date 2022-09-06 12:09:37
137
+ * @param {string} [blockSuffix]
138
+ * @param {string} [element]
139
+ * @param {string} [modifier]
140
+ * @return {*} {string}
141
+ */
142
+ bem(blockSuffix, element, modifier) {
143
+ return blockSuffix && element && modifier
144
+ ? _bem(this.namespace, this.block, blockSuffix, element, modifier)
145
+ : '';
146
+ }
147
+ /**
148
+ * 返回状态 class
149
+ *
150
+ * is('loading', false) => '';
151
+ * is('loading', true) => 'is-loading';
152
+ *
153
+ * @author chitanda
154
+ * @date 2022-09-06 12:09:57
155
+ * @param {string} name
156
+ * @param {boolean} [state]
157
+ * @return {*} {string}
158
+ */
159
+ is(name, state) {
160
+ return name && state ? `${statePrefix}${name}` : '';
161
+ }
162
+ /**
163
+ * 生成使用到的 css 变量 style 对象
164
+ *
165
+ * @author chitanda
166
+ * @date 2022-09-06 15:09:41
167
+ * @param {Record<string, string>} object
168
+ * @return {*} {Record<string, string>}
169
+ */
170
+ cssVar(object) {
171
+ const styles = {};
172
+ for (const key in object) {
173
+ if (object[key]) {
174
+ styles[this.cssVarName(key)] = object[key];
175
+ }
176
+ }
177
+ return styles;
178
+ }
179
+ /**
180
+ * 生成使用到的 css block 变量 style 对象
181
+ *
182
+ * @author chitanda
183
+ * @date 2022-09-06 15:09:03
184
+ * @param {Record<string, string>} object
185
+ * @return {*} {Record<string, string>}
186
+ */
187
+ cssVarBlock(object) {
188
+ const styles = {};
189
+ for (const key in object) {
190
+ if (object[key]) {
191
+ styles[this.cssVarBlockName(key)] = object[key];
192
+ }
193
+ }
194
+ return styles;
195
+ }
196
+ /**
197
+ * 生成 css var 变量名称
198
+ *
199
+ * @author chitanda
200
+ * @date 2022-09-06 15:09:21
201
+ * @param {string} name
202
+ * @return {*} {string}
203
+ */
204
+ cssVarName(name) {
205
+ return `--${this.namespace}-${name}`;
206
+ }
207
+ /**
208
+ * 生成块 css var 变量名称
209
+ *
210
+ * @author chitanda
211
+ * @date 2022-09-06 15:09:35
212
+ * @param {string} name
213
+ * @return {*} {string}
214
+ */
215
+ cssVarBlockName(name) {
216
+ return `--${this.namespace}-${this.block}-${name}`;
217
+ }
218
+ }
219
+
220
+ exports.Namespace = Namespace;
221
+ exports.defaultNamespace = defaultNamespace;
@@ -2,14 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- /*! Element Plus v2.7.5 */
5
+ /*! Element Plus v2.4.4 */
6
6
 
7
7
  var zhCn = {
8
8
  name: "zh-cn",
9
9
  el: {
10
- breadcrumb: {
11
- label: "\u9762\u5305\u5C51"
12
- },
13
10
  colorpicker: {
14
11
  confirm: "\u786E\u5B9A",
15
12
  clear: "\u6E05\u7A7A"
@@ -111,11 +108,6 @@ var zhCn = {
111
108
  clearFilter: "\u5168\u90E8",
112
109
  sumText: "\u5408\u8BA1"
113
110
  },
114
- tour: {
115
- next: "\u4E0B\u4E00\u6B65",
116
- previous: "\u4E0A\u4E00\u6B65",
117
- finish: "\u7ED3\u675F\u5BFC\u89C8"
118
- },
119
111
  tree: {
120
112
  emptyText: "\u6682\u65E0\u6570\u636E"
121
113
  },
@@ -136,11 +128,6 @@ var zhCn = {
136
128
  popconfirm: {
137
129
  confirmButtonText: "\u786E\u5B9A",
138
130
  cancelButtonText: "\u53D6\u6D88"
139
- },
140
- carousel: {
141
- leftArrow: "\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",
142
- rightArrow: "\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",
143
- indicator: "\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"
144
131
  }
145
132
  }
146
133
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var ElementPlus = require('element-plus');
5
- var zhCn = require('../node_modules/.pnpm/element-plus@2.7.5_vue@3.3.8/node_modules/element-plus/dist/locale/zh-cn.cjs');
5
+ var zhCn = require('../node_modules/.pnpm/element-plus@2.4.4_vue@3.3.8/node_modules/element-plus/dist/locale/zh-cn.cjs');
6
6
  var vue3Util = require('@ibiz-template/vue3-util');
7
7
  var ibizVue3 = require('../ibiz-vue3.cjs');
8
8
  var index = require('../locale/index.cjs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.24-alpha.1",
3
+ "version": "0.7.24",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -32,12 +32,12 @@
32
32
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.3",
33
33
  "@ibiz-template/core": "0.7.18",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.7.24-alpha.0",
36
- "@ibiz-template/runtime": "0.7.24-alpha.0",
35
+ "@ibiz-template/model-helper": "0.7.24",
36
+ "@ibiz-template/runtime": "0.7.24",
37
37
  "@ibiz-template/theme": "^0.7.0",
38
- "@ibiz-template/vue3-util": "0.7.24-alpha.0",
38
+ "@ibiz-template/vue3-util": "0.7.24",
39
39
  "@ibiz-template/web-theme": "^1.1.18",
40
- "@ibiz/model-core": "^0.1.30",
40
+ "@ibiz/model-core": "^0.1.34",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",
42
42
  "@monaco-editor/loader": "^1.4.0",
43
43
  "@wangeditor/editor": "^5.1.23",
@@ -46,7 +46,7 @@
46
46
  "cherry-markdown": "0.8.26",
47
47
  "dayjs": "^1.11.10",
48
48
  "echarts": "^5.4.3",
49
- "element-plus": "^2.4.4",
49
+ "element-plus": "2.4.4",
50
50
  "file-saver": "^2.0.5",
51
51
  "interactjs": "^1.10.20",
52
52
  "lodash-es": "^4.17.21",
@@ -101,7 +101,7 @@
101
101
  "@ibiz-template/runtime": "^0.7.0",
102
102
  "@ibiz-template/theme": "^0.7.0",
103
103
  "@ibiz-template/vue3-util": "^0.7.0",
104
- "@ibiz/model-core": "^0.1.30",
104
+ "@ibiz/model-core": "^0.1.34",
105
105
  "@imengyu/vue3-context-menu": "^1.3.3",
106
106
  "@monaco-editor/loader": "^1.3.3",
107
107
  "@wangeditor/editor": "^5.1.23",
@@ -110,7 +110,7 @@
110
110
  "cherry-markdown": "^0.8.22",
111
111
  "dayjs": "^1.11.9",
112
112
  "echarts": "^5.4.3",
113
- "element-plus": "^2.4.4",
113
+ "element-plus": "2.4.4",
114
114
  "lodash-es": "^4.17.21",
115
115
  "monaco-editor": "^0.45.0",
116
116
  "pinia": "^2.1.6",