@web-utils/component 2.0.13 → 2.0.14

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 (172) hide show
  1. package/dist/chunks/3a79781b.js +75 -0
  2. package/dist/chunks/{44b78389.js → 41a066be.js} +8 -8
  3. package/dist/chunks/{e1939731.js → 5a78e0db.js} +5 -6
  4. package/dist/chunks/5d4282fb.js +30 -0
  5. package/dist/chunks/{822300f3.js → 61ad06b2.js} +3 -3
  6. package/dist/chunks/76680a03.js +24 -0
  7. package/dist/chunks/8c0142e0.js +81 -0
  8. package/dist/chunks/97652d86.js +26 -0
  9. package/dist/chunks/b4acd3a6.js +126 -0
  10. package/dist/chunks/f71045fc.js +184 -0
  11. package/dist/components/address-input/index.js +43 -56
  12. package/dist/components/address-input/style.css +1 -15
  13. package/dist/components/aside-menu/index.js +30 -36
  14. package/dist/components/aside-menu/style.css +1 -9
  15. package/dist/components/awesome-button/index.js +32 -35
  16. package/dist/components/base.css +1 -66
  17. package/dist/components/capsule-tab/index.js +27 -33
  18. package/dist/components/capsule-tab/style.css +1 -32
  19. package/dist/components/chunk-file-uploader/index.js +54 -88
  20. package/dist/components/chunk-file-uploader/style.css +1 -4
  21. package/dist/components/chunk-file-uploader-button/index.js +25 -31
  22. package/dist/components/chunk-file-uploader-button/style.css +1 -17
  23. package/dist/components/chunk-file-uploader-drop/index.js +28 -42
  24. package/dist/components/chunk-file-uploader-drop/style.css +1 -12
  25. package/dist/components/chunk-file-uploader-file/index.js +134 -211
  26. package/dist/components/chunk-file-uploader-file/style.css +1 -125
  27. package/dist/components/chunk-file-uploader-files/index.js +28 -34
  28. package/dist/components/chunk-file-uploader-files/style.css +1 -9
  29. package/dist/components/chunk-file-uploader-list/index.js +29 -35
  30. package/dist/components/chunk-file-uploader-list/style.css +1 -9
  31. package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
  32. package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
  33. package/dist/components/code-mirror-editor/index.js +153 -181
  34. package/dist/components/code-mirror-editor/style.css +1 -17
  35. package/dist/components/color-picker/index.js +49 -68
  36. package/dist/components/confirm-button/index.js +19 -21
  37. package/dist/components/confirmable/index.js +18 -19
  38. package/dist/components/context-menu/index.js +108 -130
  39. package/dist/components/context-menu/style.css +1 -88
  40. package/dist/components/custom-scrollbar/index.js +49 -67
  41. package/dist/components/data-table-picker/index.js +62 -81
  42. package/dist/components/dynamic-table/index.js +89 -113
  43. package/dist/components/dynamic-table/style.css +1 -30
  44. package/dist/components/e-charts/index.js +120 -201
  45. package/dist/components/e-charts/style.css +1 -10
  46. package/dist/components/editable-progress/index.js +60 -93
  47. package/dist/components/editable-progress/style.css +1 -37
  48. package/dist/components/editable-tree/index.js +423 -638
  49. package/dist/components/editable-tree/style.css +1 -82
  50. package/dist/components/egd-collapse/index.js +33 -46
  51. package/dist/components/egd-collapse-item/index.js +60 -76
  52. package/dist/components/element-dialog/index.js +95 -147
  53. package/dist/components/element-dialog/style.css +1 -102
  54. package/dist/components/empty-view/index.js +28 -34
  55. package/dist/components/empty-view/style.css +1 -17
  56. package/dist/components/error-view/index.js +26 -32
  57. package/dist/components/error-view/style.css +1 -17
  58. package/dist/components/flex-column/index.js +25 -40
  59. package/dist/components/flex-item/index.js +29 -57
  60. package/dist/components/flex-row/index.js +25 -40
  61. package/dist/components/flex-scroller/index.js +26 -32
  62. package/dist/components/flex-scroller/style.css +1 -20
  63. package/dist/components/form-button/index.js +34 -38
  64. package/dist/components/form-cascader/index.js +71 -81
  65. package/dist/components/form-checkbox-group/index.js +88 -113
  66. package/dist/components/form-checkbox-group/style.css +1 -51
  67. package/dist/components/form-date-picker/index.js +70 -132
  68. package/dist/components/form-holder/index.js +32 -39
  69. package/dist/components/form-input/index.js +56 -62
  70. package/dist/components/form-input-email/index.js +48 -60
  71. package/dist/components/form-input-id-card/index.js +53 -59
  72. package/dist/components/form-input-number/index.js +61 -68
  73. package/dist/components/form-input-number/style.css +1 -12
  74. package/dist/components/form-input-phone-number/index.js +49 -55
  75. package/dist/components/form-input-time/index.js +53 -59
  76. package/dist/components/form-item/index.js +80 -123
  77. package/dist/components/form-item/style.css +1 -11
  78. package/dist/components/form-item-config-provider/index.js +25 -26
  79. package/dist/components/form-item-group/index.js +85 -111
  80. package/dist/components/form-item-group/style.css +1 -30
  81. package/dist/components/form-radio-group/index.js +85 -104
  82. package/dist/components/form-radio-group/style.css +1 -53
  83. package/dist/components/form-select/index.js +76 -91
  84. package/dist/components/form-switch/index.js +51 -57
  85. package/dist/components/form-textarea/index.js +51 -57
  86. package/dist/components/form-view/index.js +165 -232
  87. package/dist/components/form-view/style.css +1 -158
  88. package/dist/components/guide-steps/index.js +44 -58
  89. package/dist/components/guide-steps/style.css +1 -34
  90. package/dist/components/icon-card/index.js +29 -35
  91. package/dist/components/icon-card/style.css +1 -56
  92. package/dist/components/iframe-window/index.js +29 -35
  93. package/dist/components/iframe-window/style.css +1 -20
  94. package/dist/components/image-viewer/index.js +48 -66
  95. package/dist/components/image-viewer/style.css +1 -21
  96. package/dist/components/input-number/index.js +127 -193
  97. package/dist/components/input-number/style.css +1 -15
  98. package/dist/components/input-number-range/index.js +45 -57
  99. package/dist/components/input-number-range/style.css +1 -12
  100. package/dist/components/j-s-x-component/index.js +4 -4
  101. package/dist/components/keep-view-alive/index.js +73 -120
  102. package/dist/components/loading-view/index.js +26 -32
  103. package/dist/components/loading-view/style.css +1 -17
  104. package/dist/components/nav-bar/index.js +27 -37
  105. package/dist/components/nav-bar/style.css +1 -17
  106. package/dist/components/not-implement/index.js +23 -31
  107. package/dist/components/not-implement/style.css +1 -15
  108. package/dist/components/page/index.js +22 -28
  109. package/dist/components/page/style.css +1 -12
  110. package/dist/components/page-header/index.js +30 -36
  111. package/dist/components/page-header/style.css +1 -14
  112. package/dist/components/page-index/index.js +62 -83
  113. package/dist/components/page-index/style.css +1 -23
  114. package/dist/components/page-index-top/index.js +53 -68
  115. package/dist/components/page-skeleton/index.js +31 -37
  116. package/dist/components/page-skeleton/style.css +1 -23
  117. package/dist/components/page-skeleton-new/index.js +42 -48
  118. package/dist/components/page-skeleton-new/style.css +1 -42
  119. package/dist/components/pageable-table/index.js +186 -253
  120. package/dist/components/pageable-table/style.css +1 -72
  121. package/dist/components/pageable-view/index.js +129 -199
  122. package/dist/components/pageable-view/style.css +1 -69
  123. package/dist/components/photo-swipe/index.js +110 -151
  124. package/dist/components/photo-swipe/style.css +1 -20
  125. package/dist/components/resize-observer/index.js +34 -68
  126. package/dist/components/resize-observer/style.css +1 -31
  127. package/dist/components/search-popover/index.js +153 -211
  128. package/dist/components/search-popover/style.css +1 -93
  129. package/dist/components/sign-panel/index.js +92 -142
  130. package/dist/components/sign-panel/style.css +1 -97
  131. package/dist/components/split-pane/index.js +101 -162
  132. package/dist/components/split-pane/style.css +1 -100
  133. package/dist/components/stateful/index.js +31 -34
  134. package/dist/components/stateful/style.css +1 -33
  135. package/dist/components/static-pageable-table/index.js +37 -44
  136. package/dist/components/static-pageable-table/style.css +1 -9
  137. package/dist/components/swiper/index.js +85 -150
  138. package/dist/components/swiper/style.css +1 -43
  139. package/dist/components/tab/index.js +54 -72
  140. package/dist/components/tab/style.css +1 -122
  141. package/dist/components/tab-item/index.js +30 -35
  142. package/dist/components/table-column/index.js +30 -32
  143. package/dist/components/table-view/index.js +156 -227
  144. package/dist/components/table-view/style.css +1 -95
  145. package/dist/components/tag-render/index.js +44 -58
  146. package/dist/components/tag-render/style.css +1 -33
  147. package/dist/components/tinymce-editor/index.js +79 -95
  148. package/dist/components/tinymce-editor/style.css +1 -43
  149. package/dist/components/tinymce-wrapper/index.js +92 -121
  150. package/dist/components/tinymce-wrapper/style.css +1 -36
  151. package/dist/components/toolbar/index.js +63 -84
  152. package/dist/components/toolbar/style.css +1 -39
  153. package/dist/components/toolbar-button/index.js +41 -48
  154. package/dist/components/toolbar-button/style.css +1 -21
  155. package/dist/components/trigger/index.js +29 -36
  156. package/dist/components/vue-tags-input/index.js +188 -308
  157. package/dist/components/vue-tags-input/style.css +1 -682
  158. package/dist/components/watermark/index.js +25 -37
  159. package/dist/components/watermark/style.css +1 -11
  160. package/dist/components/x-dialog/index.js +67 -93
  161. package/dist/components/x-dialog/style.css +1 -15
  162. package/dist/index.css +193 -1105
  163. package/dist/index.es.js +4790 -7243
  164. package/package.json +1 -1
  165. package/web-types.json +1 -1
  166. package/dist/chunks/3d28cc08.js +0 -57
  167. package/dist/chunks/5d33812d.js +0 -147
  168. package/dist/chunks/9d848bf6.js +0 -99
  169. package/dist/chunks/a0bb327b.js +0 -96
  170. package/dist/chunks/a8891d2c.js +0 -30
  171. package/dist/chunks/c69d5628.js +0 -248
  172. package/dist/chunks/de9fe802.js +0 -24
@@ -0,0 +1,75 @@
1
+ import { MessageBox as b, Loading as w } from "element-ui";
2
+ import { isFunction as i } from "@web-utils/core";
3
+ async function S(t, e, n) {
4
+ const { stop: o, prevent: r, message: f, loadable: l, loadingText: d, confirmable: y, confirmType: m, confirmText: x } = e;
5
+ o && t.stopPropagation(), r && t.preventDefault();
6
+ const { before: c, click: u, cancel: g, after: p } = n;
7
+ if (i(u))
8
+ try {
9
+ let a = !0;
10
+ if (i(c) && (a = await c(t)), a === !1)
11
+ return;
12
+ y && await b.confirm(f || x, { type: m });
13
+ let s;
14
+ l && (s = w.service({ background: "rgba(0,0,0,0.3)", text: d }));
15
+ try {
16
+ await u(t);
17
+ } catch {
18
+ }
19
+ l && s.close(), i(p) && await p(t);
20
+ } catch (a) {
21
+ i(g) && await g(a);
22
+ }
23
+ }
24
+ const v = {
25
+ functional: !0,
26
+ props: {
27
+ stop: {
28
+ type: Boolean,
29
+ default: !0
30
+ },
31
+ prevent: {
32
+ type: Boolean,
33
+ default: !0
34
+ },
35
+ text: {
36
+ type: String,
37
+ default: ""
38
+ },
39
+ message: {
40
+ type: String,
41
+ default: "你确定要删除该记录吗?"
42
+ },
43
+ confirmable: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ confirmText: {
48
+ type: String,
49
+ default: "你确定要删除该记录吗?"
50
+ },
51
+ confirmType: {
52
+ type: String,
53
+ default: "warning"
54
+ },
55
+ loadable: Boolean,
56
+ loadingText: {
57
+ type: String,
58
+ default: "正在处理中请稍候..."
59
+ },
60
+ tag: {
61
+ type: String,
62
+ default: "i"
63
+ }
64
+ },
65
+ render(t, { props: e, data: n, children: o, listeners: r }) {
66
+ return t(e.tag, {
67
+ ...n,
68
+ on: { click: (f) => S(f, e, r) },
69
+ props: e
70
+ }, o || e.text);
71
+ }
72
+ };
73
+ export {
74
+ v as c
75
+ };
@@ -1,4 +1,4 @@
1
- const inputNumberMixin = {
1
+ const t = {
2
2
  props: {
3
3
  suffixIcon: {
4
4
  type: String
@@ -12,15 +12,15 @@ const inputNumberMixin = {
12
12
  },
13
13
  stepStrictly: {
14
14
  type: Boolean,
15
- default: false
15
+ default: !1
16
16
  },
17
17
  max: {
18
18
  type: Number,
19
- default: Infinity
19
+ default: 1 / 0
20
20
  },
21
21
  min: {
22
22
  type: Number,
23
- default: -Infinity
23
+ default: -1 / 0
24
24
  },
25
25
  value: {
26
26
  type: [Number, String]
@@ -31,7 +31,7 @@ const inputNumberMixin = {
31
31
  },
32
32
  controls: {
33
33
  type: Boolean,
34
- default: true
34
+ default: !0
35
35
  },
36
36
  controlsPosition: {
37
37
  type: String,
@@ -49,12 +49,12 @@ const inputNumberMixin = {
49
49
  precision: {
50
50
  type: Number,
51
51
  default: void 0,
52
- validator(val) {
53
- return val >= 0 && val === parseInt(val, 10);
52
+ validator(e) {
53
+ return e >= 0 && e === parseInt(e, 10);
54
54
  }
55
55
  }
56
56
  }
57
57
  };
58
58
  export {
59
- inputNumberMixin as i
59
+ t as i
60
60
  };
@@ -1,10 +1,9 @@
1
- const uploaderMixin = {
1
+ const t = {
2
2
  inject: ["uploader"]
3
- };
4
- const supportMixin = {
3
+ }, p = {
5
4
  data() {
6
5
  return {
7
- support: true
6
+ support: !0
8
7
  };
9
8
  },
10
9
  mounted() {
@@ -12,6 +11,6 @@ const supportMixin = {
12
11
  }
13
12
  };
14
13
  export {
15
- supportMixin as s,
16
- uploaderMixin as u
14
+ p as s,
15
+ t as u
17
16
  };
@@ -0,0 +1,30 @@
1
+ function v(r, a, d, h, i, t, f, u) {
2
+ var e = typeof r == "function" ? r.options : r;
3
+ a && (e.render = a, e.staticRenderFns = d, e._compiled = !0), h && (e.functional = !0), t && (e._scopeId = "data-v-" + t);
4
+ var o;
5
+ if (f ? (o = function(n) {
6
+ n = n || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
7
+ }, e._ssrRegister = o) : i && (o = u ? function() {
8
+ i.call(
9
+ this,
10
+ (e.functional ? this.parent : this).$root.$options.shadowRoot
11
+ );
12
+ } : i), o)
13
+ if (e.functional) {
14
+ e._injectStyles = o;
15
+ var l = e.render;
16
+ e.render = function(p, _) {
17
+ return o.call(_), l(p, _);
18
+ };
19
+ } else {
20
+ var s = e.beforeCreate;
21
+ e.beforeCreate = s ? [].concat(s, o) : [o];
22
+ }
23
+ return {
24
+ exports: r,
25
+ options: e
26
+ };
27
+ }
28
+ export {
29
+ v as n
30
+ };
@@ -1,11 +1,11 @@
1
- const formPickMixin = {
1
+ const e = {
2
2
  props: {
3
3
  prefixPick: {
4
4
  type: Boolean,
5
- default: true
5
+ default: !0
6
6
  }
7
7
  }
8
8
  };
9
9
  export {
10
- formPickMixin as f
10
+ e as f
11
11
  };
@@ -0,0 +1,24 @@
1
+ import { f as e } from "./b4acd3a6.js";
2
+ import { i as r } from "./f71045fc.js";
3
+ const o = {
4
+ mixins: [e],
5
+ props: {
6
+ value: [Boolean, String, Array, Number, Object, Date],
7
+ readonly: Boolean,
8
+ disabled: Boolean
9
+ },
10
+ computed: {
11
+ computePlaceholder() {
12
+ return this.placeholder === !0 ? this.message : this.placeholder;
13
+ },
14
+ listeners() {
15
+ return r(this.$listeners, "input", !1);
16
+ },
17
+ inputDisabled() {
18
+ return this.disabled;
19
+ }
20
+ }
21
+ };
22
+ export {
23
+ o as f
24
+ };
@@ -0,0 +1,81 @@
1
+ const n = {
2
+ mounted() {
3
+ this.value >= 0 && (this.currentIndex = this.value), this.updateIndex();
4
+ },
5
+ methods: {
6
+ updateIndex() {
7
+ if (!this.$children || !this.$children.length)
8
+ return;
9
+ this.number = this.$children.length;
10
+ const e = this.$children;
11
+ for (let t = 0; t < e.length; t++)
12
+ e[t].currentIndex = t, e[t].currentSelected && (this.index = t);
13
+ }
14
+ },
15
+ props: {
16
+ value: Number
17
+ },
18
+ watch: {
19
+ currentIndex(e, t) {
20
+ t > -1 && this.$children[t] && (this.$children[t].currentSelected = !1), e > -1 && this.$children[e] && (this.$children[e].currentSelected = !0), this.$emit("input", e), this.$emit("on-index-change", e, t);
21
+ },
22
+ index(e) {
23
+ this.currentIndex = e;
24
+ },
25
+ value(e) {
26
+ this.index = e;
27
+ }
28
+ },
29
+ data() {
30
+ return {
31
+ index: -1,
32
+ currentIndex: this.index,
33
+ number: this.$children.length
34
+ };
35
+ }
36
+ }, i = {
37
+ props: {
38
+ selected: {
39
+ type: Boolean,
40
+ default: !1
41
+ }
42
+ },
43
+ mounted() {
44
+ this.$parent.updateIndex();
45
+ },
46
+ beforeDestroy() {
47
+ const e = this.$parent;
48
+ this.$nextTick(() => {
49
+ e.updateIndex();
50
+ });
51
+ },
52
+ methods: {
53
+ onItemClick(e) {
54
+ if (this.$parent.preventDefault) {
55
+ this.$parent.$emit("on-before-index-change", this.currentIndex);
56
+ return;
57
+ }
58
+ (typeof this.disabled > "u" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
59
+ this.$emit("on-item-click", this.currentIndex);
60
+ }));
61
+ }
62
+ },
63
+ watch: {
64
+ currentSelected(e) {
65
+ e && (this.$parent.index = this.currentIndex);
66
+ },
67
+ selected(e) {
68
+ this.currentSelected = e;
69
+ }
70
+ },
71
+ data() {
72
+ return {
73
+ currentIndex: -1,
74
+ currentSelected: this.selected
75
+ };
76
+ }
77
+ };
78
+ export {
79
+ i as c,
80
+ n as p
81
+ };
@@ -0,0 +1,26 @@
1
+ function c(r) {
2
+ const n = Math.floor(r / 31536e3);
3
+ if (n)
4
+ return `${n} 年${o(n)}`;
5
+ const t = Math.floor((r %= 31536e3) / 86400);
6
+ if (t)
7
+ return `${t} 天${o(t)}`;
8
+ const s = Math.floor((r %= 86400) / 3600);
9
+ if (s)
10
+ return `${s} 时${o(s)}`;
11
+ const e = Math.floor((r %= 3600) / 60);
12
+ if (e)
13
+ return `${e} 分${o(e)}`;
14
+ const u = r % 60;
15
+ return `${u} 秒${o(u)}`;
16
+ function o(a) {
17
+ return a > 1, "";
18
+ }
19
+ }
20
+ function f(r) {
21
+ return r.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
22
+ }
23
+ export {
24
+ f as k,
25
+ c as s
26
+ };
@@ -0,0 +1,126 @@
1
+ import { i as r } from "./f71045fc.js";
2
+ import { Col as i, FormItem as a } from "element-ui";
3
+ const u = ["span"], s = [...Object.keys(i.props)], n = s.filter((e) => !u.includes(e)), p = ["label", "prop", "rules", "labelWidth", "required"], l = [...Object.keys(a.props)], m = l.filter((e) => !p.includes(e)), f = [
4
+ "wrapCol",
5
+ "wrapFormItem",
6
+ "unwrap",
7
+ "prefixConfig",
8
+ "block",
9
+ "placeholder",
10
+ "prefixPick",
11
+ "half",
12
+ ...s,
13
+ ...l
14
+ ], h = {
15
+ inject: {
16
+ elForm: {
17
+ default: {}
18
+ },
19
+ formItemGroup: {
20
+ default: {}
21
+ }
22
+ },
23
+ props: {
24
+ disabled: Boolean,
25
+ wrapCol: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ wrapFormItem: {
30
+ type: Boolean,
31
+ default: !0
32
+ },
33
+ unwrap: Boolean,
34
+ half: Boolean,
35
+ prefixConfig: Boolean,
36
+ block: Boolean,
37
+ placeholder: {
38
+ type: [Boolean, String],
39
+ default: !0
40
+ },
41
+ formItemClass: String,
42
+ prefixPick: Boolean,
43
+ label: String,
44
+ labelWidth: String,
45
+ prop: String,
46
+ required: Boolean,
47
+ rules: [Object, Array],
48
+ error: String,
49
+ validateStatus: String,
50
+ for: String,
51
+ inlineMessage: {
52
+ type: [String, Boolean],
53
+ default: ""
54
+ },
55
+ showMessage: {
56
+ type: Boolean,
57
+ default: !0
58
+ },
59
+ size: String,
60
+ span: {
61
+ type: Number,
62
+ default: 12
63
+ },
64
+ tag: {
65
+ type: String,
66
+ default: "div"
67
+ },
68
+ offset: Number,
69
+ pull: Number,
70
+ push: Number,
71
+ xs: [Number, Object],
72
+ sm: [Number, Object],
73
+ md: [Number, Object],
74
+ lg: [Number, Object],
75
+ xl: [Number, Object]
76
+ },
77
+ computed: {
78
+ prefix() {
79
+ return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
80
+ },
81
+ message() {
82
+ var e;
83
+ return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
84
+ },
85
+ computeRules() {
86
+ const e = [...this.rules || []];
87
+ if (this.required) {
88
+ const t = e.find((o) => o.required);
89
+ t ? t.ref ? t.label = t.label || this.label : t.message = e.message || this.message : e.unshift(this.getRequireRule());
90
+ }
91
+ return e.concat(this.getRules());
92
+ },
93
+ computeSpan() {
94
+ return this.block ? 24 : this.span;
95
+ },
96
+ formItemProps() {
97
+ return r({ ...this.$props, ...this.$attrs }, f);
98
+ },
99
+ elFormItemProps() {
100
+ return r({ ...this.$props, ...this.$attrs }, m);
101
+ },
102
+ elColProps() {
103
+ return r({ ...this.$props, ...this.$attrs }, n);
104
+ }
105
+ },
106
+ watch: {
107
+ computeRules() {
108
+ var e, t;
109
+ (t = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || t.call(e, this.prop);
110
+ }
111
+ },
112
+ methods: {
113
+ getRules() {
114
+ return [];
115
+ },
116
+ getRequireRule() {
117
+ return {
118
+ required: !0,
119
+ message: this.message
120
+ };
121
+ }
122
+ }
123
+ };
124
+ export {
125
+ h as f
126
+ };
@@ -0,0 +1,184 @@
1
+ import { isObject as u, isString as a, hasOwn as f, isPlainObject as p, isArray as h, camelize as g, isFunction as m } from "@web-utils/core";
2
+ import x from "vue";
3
+ const T = (e, r) => p(e) || a(e) ? [r, e] : h(e) ? [r, ...e] : [r];
4
+ function E() {
5
+ const e = window.navigator.userAgent, r = e.indexOf("MSIE ");
6
+ if (r > 0)
7
+ return parseInt(e.substring(r + 5, e.indexOf(".", r)), 10);
8
+ if (e.indexOf("Trident/") > 0) {
9
+ const o = e.indexOf("rv:");
10
+ return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
11
+ }
12
+ const l = e.indexOf("Edge/");
13
+ return l > 0 ? parseInt(e.substring(l + 5, e.indexOf(".", l)), 10) : -1;
14
+ }
15
+ function z(e, r) {
16
+ for (const t in r)
17
+ x.set(e, t, r[t]);
18
+ return e;
19
+ }
20
+ const I = (e, r) => {
21
+ if (!e || !r)
22
+ return null;
23
+ let t = e;
24
+ for (; t && r(t); )
25
+ t = t.$parent;
26
+ return t;
27
+ }, w = [
28
+ "data",
29
+ "height",
30
+ "max-height",
31
+ "stripe",
32
+ "border",
33
+ "size",
34
+ "fit",
35
+ "show-header",
36
+ "highlight-current-row",
37
+ "current-row-key",
38
+ "row-class-name",
39
+ "row-style",
40
+ "cell-class-name",
41
+ "cell-style",
42
+ "header-row-class-name",
43
+ "header-row-style",
44
+ "header-cell-class-name",
45
+ "header-cell-style",
46
+ "row-key",
47
+ "empty-text",
48
+ "default-expand-all",
49
+ "expand-row-keys",
50
+ "default-sort",
51
+ "tooltip-effect",
52
+ "show-summary",
53
+ "sum-text",
54
+ "summary-method",
55
+ "span-method",
56
+ "select-on-indeterminate ",
57
+ "indent",
58
+ "lazy",
59
+ "load",
60
+ "tree-props"
61
+ ], b = [
62
+ "select",
63
+ "select-all",
64
+ "selection-change",
65
+ "cell-mouse-enter",
66
+ "cell-mouse-leave",
67
+ "cell-click",
68
+ "cell-dblclick",
69
+ "row-click",
70
+ "row-contextmenu",
71
+ "header-click",
72
+ "header-contextmenu",
73
+ "sort-change",
74
+ "filter-change",
75
+ "current-change",
76
+ "header-dragend",
77
+ "expand-change"
78
+ ], y = [
79
+ "type",
80
+ "index",
81
+ "column-key",
82
+ "label",
83
+ "prop",
84
+ "width",
85
+ "min-width",
86
+ "fixed",
87
+ "render-header",
88
+ "sortable",
89
+ "sort-method",
90
+ "sort-by",
91
+ "sort-orders",
92
+ "resizable",
93
+ "formatter",
94
+ "show-overflow-tooltip",
95
+ "align",
96
+ "header-align",
97
+ "class-name",
98
+ "label-class-name",
99
+ "selectable",
100
+ "reserve-selection",
101
+ "filters",
102
+ "filter-placement",
103
+ "filter-multiple",
104
+ "filter-method",
105
+ "filtered-value"
106
+ ], k = [
107
+ "data",
108
+ "empty-text",
109
+ "node-key",
110
+ "props",
111
+ "render-after-expand",
112
+ "load",
113
+ "render-content",
114
+ "highlight-current",
115
+ "default-expand-all",
116
+ "expand-on-click-node",
117
+ "check-on-click-node",
118
+ "auto-expand-parent",
119
+ "default-expanded-keys",
120
+ "show-checkbox",
121
+ "check-strictly",
122
+ "default-checked-keys",
123
+ "current-node-key",
124
+ "filter-node-method",
125
+ "accordion",
126
+ "indent",
127
+ "icon-class",
128
+ "lazy",
129
+ "draggable",
130
+ "allow-drag",
131
+ "allow-drop"
132
+ ], v = [
133
+ "node-click",
134
+ "node-contextmenu",
135
+ "check-change",
136
+ "check",
137
+ "current-change",
138
+ "node-expand",
139
+ "node-collapse",
140
+ "node-drag-start",
141
+ "node-drag-enter",
142
+ "node-drag-leave",
143
+ "node-drag-over",
144
+ "node-drag-end",
145
+ "node-drop"
146
+ ], s = (e, r, t = !0) => {
147
+ if (u(e)) {
148
+ let l = r;
149
+ a(r) && (l = l.split(","));
150
+ const o = {};
151
+ return l.forEach((n) => {
152
+ f(e, n) && (t ? o[n] = e[n] : l.includes(n) || (o[n] = e[n]));
153
+ }), o;
154
+ }
155
+ return e;
156
+ }, A = (e) => {
157
+ const r = {};
158
+ for (const t in e)
159
+ r[g(t)] = e[t];
160
+ return r;
161
+ }, V = (e) => s(e, w), K = (e) => s(e, y), R = (e) => s(e, b), S = (e) => s(e, k), F = (e) => s(e, v), c = (e = "", r) => {
162
+ const t = r || {};
163
+ return (e || "").replace(/{(.*?)}/g, (o, n) => {
164
+ if (n.indexOf(":")) {
165
+ const [i, d] = n.split(":");
166
+ return t[i] ? t[i] : d;
167
+ } else
168
+ return t[n] || "";
169
+ });
170
+ }, M = (e, r) => m(e) ? c(e(r), r) : a(e) ? c(e, r) : null;
171
+ export {
172
+ S as a,
173
+ F as b,
174
+ z as c,
175
+ V as d,
176
+ R as e,
177
+ K as f,
178
+ E as g,
179
+ T as h,
180
+ s as i,
181
+ I as j,
182
+ M as k,
183
+ A as n
184
+ };