@web-utils/component 4.0.0 → 4.0.2

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/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/style.css +1 -1
  4. package/carousel/style.css +1 -1
  5. package/chat/style.css +1 -1
  6. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  7. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  8. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  9. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  10. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  11. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  12. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  13. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  14. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  15. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  16. package/chunks/core.DJEgjQW6.mjs +54 -0
  17. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  18. package/chunks/dictionary.DsN-2ukC.mjs +70 -0
  19. package/chunks/form-input.B8z37eqj.mjs +31 -0
  20. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  21. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  22. package/chunks/helper.BiMLcEEk.mjs +41 -0
  23. package/chunks/index.9OxHjTIE.mjs +16 -0
  24. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  25. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  26. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  27. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  28. package/color-picker/index.mjs +19 -37
  29. package/comment/style.css +1 -1
  30. package/confirm-button/index.mjs +1 -1
  31. package/confirmable/index.mjs +1 -1
  32. package/context-menu/style.css +1 -1
  33. package/count-up/index.mjs +13 -24
  34. package/custom-scrollbar/index.mjs +1 -2
  35. package/data-operatext/style.css +1 -1
  36. package/data-panel/style.css +1 -1
  37. package/data-pay/style.css +1 -1
  38. package/data-price/style.css +1 -1
  39. package/data-rotate/style.css +1 -1
  40. package/data-table-picker/index.mjs +1 -1
  41. package/data-tabs/style.css +1 -1
  42. package/dialog-form/index.mjs +16 -28
  43. package/dynamic-table/style.css +1 -1
  44. package/easy-popup/index.mjs +22 -40
  45. package/easy-popup/style.css +1 -1
  46. package/editable-tree/index.mjs +203 -250
  47. package/editable-tree/style.css +1 -1
  48. package/element-dialog/index.mjs +30 -52
  49. package/element-dialog/style.css +1 -1
  50. package/flex-column/index.mjs +13 -25
  51. package/flex-item/index.mjs +15 -27
  52. package/flex-row/index.mjs +13 -25
  53. package/flow-designer/index.mjs +343 -374
  54. package/flow-designer/style.css +1 -1
  55. package/flow-viewer/index.mjs +64 -91
  56. package/form-block/index.mjs +33 -26
  57. package/form-card/index.mjs +25 -0
  58. package/form-cascader/index.mjs +70 -67
  59. package/form-checkbox/index.mjs +71 -0
  60. package/form-checkbox-group/index.mjs +33 -53
  61. package/form-date-picker/index.mjs +44 -73
  62. package/form-holder/index.mjs +54 -40
  63. package/form-holder/style.css +1 -0
  64. package/form-input/index.mjs +62 -40
  65. package/form-input-cron-expression/index.mjs +77 -0
  66. package/form-input-cron-expression/style.css +1 -0
  67. package/form-input-email/index.mjs +21 -33
  68. package/form-input-id-card/index.mjs +25 -38
  69. package/form-input-number/index.mjs +39 -42
  70. package/form-input-number/style.css +1 -1
  71. package/form-input-phone-number/index.mjs +26 -37
  72. package/form-input-tag/index.mjs +32 -34
  73. package/form-input-time/index.mjs +22 -37
  74. package/form-item/index.mjs +109 -101
  75. package/form-item/style.css +1 -1
  76. package/form-item-config-provider/index.mjs +18 -10
  77. package/form-item-group/index.mjs +73 -69
  78. package/form-item-group/style.css +1 -1
  79. package/form-radio-group/index.mjs +41 -36
  80. package/form-radio-group/style.css +1 -1
  81. package/form-select/index.mjs +142 -75
  82. package/form-select/style.css +1 -0
  83. package/form-switch/index.mjs +29 -34
  84. package/form-table/index.mjs +85 -0
  85. package/form-table-plus/index.mjs +109 -0
  86. package/form-textarea/index.mjs +23 -35
  87. package/form-tree-select/index.mjs +72 -0
  88. package/form-tree-select/style.css +1 -0
  89. package/form-tree-select-multiple/index.mjs +78 -0
  90. package/form-view/index.mjs +37 -69
  91. package/form-view/style.css +1 -1
  92. package/fy-curd/index.mjs +131 -140
  93. package/fy-curd/style.css +1 -1
  94. package/fy-draggable/index.mjs +16 -26
  95. package/fy-draggable/style.css +1 -1
  96. package/fy-dynamic/index.mjs +48 -57
  97. package/fy-empty/style.css +1 -1
  98. package/fy-form/style.css +1 -1
  99. package/fy-form-design/index.mjs +314 -339
  100. package/fy-form-design/style.css +1 -1
  101. package/fy-input-map/index.mjs +40 -50
  102. package/fy-input-map/style.css +1 -1
  103. package/fy-input-table/index.mjs +31 -41
  104. package/fy-u-editor/index.mjs +77 -103
  105. package/fy-upload/style.css +1 -1
  106. package/highlight-j-s/style.css +1 -1
  107. package/image-cropper/index.mjs +14 -65
  108. package/image-preview/index.mjs +17 -45
  109. package/image-preview/style.css +1 -1
  110. package/image-viewer/style.css +1 -1
  111. package/index.mjs +666 -496
  112. package/input-number/index.mjs +64 -9
  113. package/keyboard/style.css +1 -1
  114. package/monaco-editor/index.mjs +43 -71
  115. package/name-avatar/style.css +1 -1
  116. package/package.json +5 -4
  117. package/page-index/index.mjs +30 -54
  118. package/page-index-top/index.mjs +25 -47
  119. package/pageable-table/index.mjs +385 -218
  120. package/pageable-table/style.css +1 -1
  121. package/pageable-view/index.mjs +56 -95
  122. package/photo-swipe/index.mjs +51 -74
  123. package/picker-table-view/index.mjs +117 -0
  124. package/present-view/index.mjs +43 -77
  125. package/present-view/style.css +1 -1
  126. package/resize-observer/index.mjs +1 -1
  127. package/resize-observer/style.css +1 -1
  128. package/search/style.css +1 -1
  129. package/search-popover/index.mjs +28 -48
  130. package/search-popover/style.css +1 -1
  131. package/sign/index.mjs +1 -1
  132. package/sign-panel/style.css +1 -1
  133. package/skeleton-panel/index.mjs +38 -0
  134. package/skeleton-panel/style.css +1 -0
  135. package/split-pane/index.mjs +31 -49
  136. package/split-pane/style.css +1 -1
  137. package/sub-table/index.mjs +206 -0
  138. package/sub-table/style.css +1 -0
  139. package/sub-table-plus/index.mjs +231 -0
  140. package/sub-table-plus/style.css +1 -0
  141. package/swiper/index.mjs +18 -38
  142. package/swiper/style.css +1 -1
  143. package/tab/index.mjs +1 -1
  144. package/tab/style.css +1 -1
  145. package/tab-item/index.mjs +2 -2
  146. package/table-column/index.mjs +166 -37
  147. package/table-column/style.css +1 -0
  148. package/table-view/index.mjs +177 -132
  149. package/table-view/style.css +1 -1
  150. package/tabs-view/index.mjs +104 -0
  151. package/tabs-view/style.css +1 -0
  152. package/tag-render/index.mjs +13 -24
  153. package/toolbar/index.mjs +115 -58
  154. package/toolbar/style.css +1 -1
  155. package/toolbar-button/index.mjs +92 -48
  156. package/vue-cron/index.mjs +47 -65
  157. package/vue-qr-code/index.mjs +14 -32
  158. package/vue-quill-editor/index.mjs +13 -24
  159. package/vue-tags-input/index.mjs +10 -21
  160. package/vue-tree-select/index.mjs +352 -393
  161. package/vue-tree-select/style.css +1 -1
  162. package/vue-video-player/index.mjs +34 -63
  163. package/watermark/index.mjs +21 -31
  164. package/web-types.json +9240 -3840
  165. package/x-input-tag/index.mjs +29 -61
  166. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  167. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  168. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  169. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  170. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  171. package/toolbar-button/style.css +0 -1
  172. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -1,17 +1,63 @@
1
- var s = Object.defineProperty, u = Object.defineProperties;
2
- var d = Object.getOwnPropertyDescriptors;
3
- var o = Object.getOwnPropertySymbols;
4
- var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
5
- var i = (t, e, n) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e) => {
6
- for (var n in e || (e = {}))
7
- c.call(e, n) && i(t, n, e[n]);
8
- if (o)
9
- for (var n of o(e))
10
- f.call(e, n) && i(t, n, e[n]);
11
- return t;
12
- }, r = (t, e) => u(t, d(e));
13
- import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
14
- const g = {
1
+ import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
2
+ import { h as d } from "vue";
3
+ import { g as C } from "../chunks/dictionary.DsN-2ukC.mjs";
4
+ import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ import { f as V } from "../chunks/core.DJEgjQW6.mjs";
6
+ const D = {
7
+ name: "DictRender",
8
+ inheritAttrs: !1,
9
+ props: {
10
+ row: Object,
11
+ column: Object,
12
+ dictType: String,
13
+ options: Array,
14
+ treeDict: Boolean,
15
+ idAsValue: {
16
+ type: Boolean,
17
+ default: !0
18
+ },
19
+ labelAsValue: Boolean
20
+ },
21
+ data() {
22
+ return {
23
+ label: ""
24
+ };
25
+ },
26
+ computed: {
27
+ value() {
28
+ return this.row[this.column.property];
29
+ }
30
+ },
31
+ watch: {
32
+ value: {
33
+ immediate: !0,
34
+ async handler() {
35
+ var l, e;
36
+ this.dictType ? this.label = await C(this.dictType, this.value, !0, {
37
+ treeDict: this.treeDict,
38
+ idAsValue: this.idAsValue,
39
+ labelAsValue: this.labelAsValue
40
+ }) : this.label = ((e = (l = this.options) == null ? void 0 : l.find((t) => `${t.value}` == `${this.value}`)) == null ? void 0 : e.label) ?? `${this.value}`;
41
+ }
42
+ }
43
+ },
44
+ render() {
45
+ return d("span", T([{}, {
46
+ on: this.$listeners
47
+ }, {}, {
48
+ domProps: this.$attrs
49
+ }]), [this.label]);
50
+ }
51
+ }, F = null, O = null;
52
+ var $ = /* @__PURE__ */ B(
53
+ D,
54
+ F,
55
+ O,
56
+ !1,
57
+ null,
58
+ null
59
+ );
60
+ const x = $.exports, N = {
15
61
  props: {
16
62
  type: {
17
63
  type: String,
@@ -27,7 +73,7 @@ const g = {
27
73
  renderHeader: Function,
28
74
  sortable: {
29
75
  type: [Boolean, String],
30
- default: !1
76
+ default: !0
31
77
  },
32
78
  sortMethod: Function,
33
79
  sortBy: [String, Function, Array],
@@ -39,6 +85,8 @@ const g = {
39
85
  align: String,
40
86
  headerAlign: String,
41
87
  showTooltipWhenOverflow: Boolean,
88
+ clickable: Boolean,
89
+ cellClick: Function,
42
90
  showOverflowTooltip: {
43
91
  type: Boolean,
44
92
  default: !0
@@ -61,36 +109,117 @@ const g = {
61
109
  default() {
62
110
  return ["ascending", "descending", null];
63
111
  },
64
- validator(t) {
65
- return t.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
112
+ validator(l) {
113
+ return l.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
66
114
  }
67
- }
115
+ },
116
+ dictType: String,
117
+ options: Array,
118
+ autoUpdate: Boolean,
119
+ treeDict: Boolean,
120
+ idAsValue: {
121
+ type: Boolean,
122
+ default: !0
123
+ },
124
+ labelAsValue: Boolean
125
+ }
126
+ }, M = {
127
+ selection: !0,
128
+ "single-selection": !0,
129
+ index: !0,
130
+ expand: !0
131
+ }, k = (l, e, t, y, p) => {
132
+ var i;
133
+ const n = l.rowDbClick || ((i = l.$children.find((f) => f.$options.name === "TableView")) == null ? void 0 : i.rowDbClick);
134
+ n == null || n(e, t, y, p);
135
+ }, H = (l) => {
136
+ let e = l.target;
137
+ for (; e && e.tagName.toUpperCase() !== "HTML"; ) {
138
+ if (e.tagName.toUpperCase() === "TD")
139
+ return e;
140
+ e = e.parentNode;
68
141
  }
69
- }, m = {
142
+ return null;
143
+ }, P = () => {
144
+ }, R = (l) => !V(l).length, U = {
70
145
  name: "TableColumn",
71
146
  functional: !0,
72
- mixins: [g],
73
- render(t, { data: e, props: n, children: a }) {
74
- return t(
75
- "ElTableColumn",
76
- r(l({}, e), {
77
- props: r(l({}, n), {
78
- showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(n.type) ? !1 : n.showOverflowTooltip
79
- })
80
- }),
81
- a
82
- );
147
+ mixins: [N],
148
+ render(l, {
149
+ data: e,
150
+ props: t,
151
+ children: y,
152
+ parent: p,
153
+ listeners: {
154
+ click: n
155
+ }
156
+ }) {
157
+ const {
158
+ scopedSlots: i,
159
+ ...f
160
+ } = e, {
161
+ clickable: v,
162
+ cellClick: a,
163
+ ...b
164
+ } = t, g = {
165
+ ...i || {}
166
+ }, _ = M[t.type];
167
+ if (!_) {
168
+ const m = i == null ? void 0 : i.default, c = v || n || a;
169
+ (c || t.dictType || t.options) && (g.default = (A) => {
170
+ const {
171
+ row: o,
172
+ column: r
173
+ } = A, S = c ? (u) => {
174
+ const h = H(u);
175
+ n || a ? (n == null || n(o, r, o, r, h, u), a == null || a(o, r, o, r, h, u)) : k(p, o, r, h, u);
176
+ } : P;
177
+ let s = m == null ? void 0 : m(A);
178
+ return R(s) && (s = null), (t.dictType || t.options) && !s ? d(x, {
179
+ class: {
180
+ "is-clickable": c
181
+ },
182
+ on: {
183
+ click: S
184
+ },
185
+ attrs: {
186
+ row: o,
187
+ column: r,
188
+ dictType: t.dictType,
189
+ treeDict: t.treeDict,
190
+ idAsValue: t.idAsValue,
191
+ labelAsValue: t.labelAsValue,
192
+ options: t.options
193
+ }
194
+ }) : c ? d("span", {
195
+ class: "is-clickable",
196
+ on: {
197
+ click: S
198
+ }
199
+ }, [s || (o == null ? void 0 : o[r == null ? void 0 : r.property])]) : s;
200
+ });
201
+ }
202
+ const w = {
203
+ ...f,
204
+ props: {
205
+ ...b,
206
+ showOverflowTooltip: _ ? !1 : b.showOverflowTooltip
207
+ }
208
+ };
209
+ return d("ElTableColumn", T([{}, w, {
210
+ scopedSlots: g
211
+ }]));
83
212
  }
84
- }, y = null, S = null;
85
- var b = /* @__PURE__ */ p(
86
- m,
87
- y,
88
- S,
213
+ }, j = null, z = null;
214
+ var E = /* @__PURE__ */ B(
215
+ U,
216
+ j,
217
+ z,
89
218
  !1,
90
219
  null,
91
220
  null
92
221
  );
93
- const w = b.exports;
222
+ const X = E.exports;
94
223
  export {
95
- w as default
224
+ X as default
96
225
  };
@@ -0,0 +1 @@
1
+ .is-clickable{cursor:pointer;text-decoration:underline}.is-clickable:hover{color:var(--color-primary)}.el-table__column-filter-trigger{line-height:unset}