iking-web-ui-pro 0.3.0 → 0.3.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 (78) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +956 -942
  2. package/dist/IkApprovalProcessDetail/ik.index.umd.js +48 -48
  3. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  4. package/dist/IkBaseDialog/ik.index.es.js +210 -189
  5. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  6. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  7. package/dist/IkBtnSetting/ik.index.es.js +331 -310
  8. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  9. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  10. package/dist/IkCollapseCard/ik.index.es.js +195 -174
  11. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  12. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  13. package/dist/IkDescription/ik.index.es.js +1462 -1448
  14. package/dist/IkDescription/ik.index.umd.js +48 -48
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +1441 -1427
  17. package/dist/IkDetailPreviewFiles/ik.index.umd.js +48 -48
  18. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  19. package/dist/IkExpandCollapse/ik.index.es.js +191 -170
  20. package/dist/IkExpandCollapse/ik.index.umd.js +1 -1
  21. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  22. package/dist/IkIconPicker/ik.index.es.js +229 -208
  23. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  24. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  25. package/dist/IkMonacoEditor/ik.index.es.js +449 -428
  26. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  27. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  28. package/dist/IkPageFull/ik.index.es.js +1440 -1419
  29. package/dist/IkPageFull/ik.index.umd.js +2 -2
  30. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPreviewFile/ik.index.es.js +1444 -1430
  32. package/dist/IkPreviewFile/ik.index.umd.js +48 -48
  33. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPreviewFileDialog/ik.index.es.js +1047 -1026
  35. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  36. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  37. package/dist/IkSchedule/ik.index.es.js +3041 -3020
  38. package/dist/IkSchedule/ik.index.umd.js +1 -1
  39. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  40. package/dist/IkSelectTag/ik.index.es.js +141 -130
  41. package/dist/IkSelectTag/ik.index.umd.js +1 -1
  42. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +276 -190
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  46. package/dist/IkStatu/ik.index.es.js +47 -38
  47. package/dist/IkStatu/ik.index.umd.js +1 -1
  48. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  49. package/dist/IkStatuOver/ik.index.es.js +114 -106
  50. package/dist/IkStatuOver/ik.index.umd.js +1 -1
  51. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  52. package/dist/IkSvgIcon/ik.index.es.js +169 -148
  53. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  54. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  55. package/dist/IkTaskResume/ik.index.es.js +23 -0
  56. package/dist/IkTaskResume/ik.index.umd.js +1 -0
  57. package/dist/IkUploadFile/ik.index.es.js +993 -972
  58. package/dist/IkUploadFile/ik.index.umd.js +47 -47
  59. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  60. package/dist/IkUploadImage/ik.index.es.js +522 -522
  61. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  62. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  63. package/dist/IkVerticalStepBar/ik.index.es.js +234 -213
  64. package/dist/IkVerticalStepBar/ik.index.umd.js +3 -3
  65. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  66. package/dist/iking-web-ui-pro.css +2 -2
  67. package/dist/index.es.js +14080 -14047
  68. package/dist/index.umd.js +86 -86
  69. package/dist/src/components/IkMonacoEditor/index.d.ts +12 -2
  70. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -2
  71. package/dist/src/components/IkStatu/index.d.ts +3 -3
  72. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  73. package/dist/src/components/IkSvgIcon/index.d.ts +12 -2
  74. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +12 -2
  75. package/dist/src/components/IkTaskResume/index.d.ts +2 -0
  76. package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/package.json +1 -1
@@ -1,43 +1,40 @@
1
- import { defineComponent as F, openBlock as u, createElementBlock as f, createElementVNode as S, computed as L, resolveComponent as D, normalizeClass as w, normalizeStyle as B, createCommentVNode as E, createBlock as N, withCtx as m, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as _, createVNode as I, Transition as ne, renderSlot as q, mergeModels as R, useModel as se, resolveDirective as ie, Fragment as G, withDirectives as J, mergeProps as K, createSlots as ue, renderList as re } from "vue";
2
- import { ikColor as ce, _ as C, ikStore as H } from "iking-utils-pro";
1
+ import { defineComponent as A, openBlock as c, createElementBlock as m, createElementVNode as C, computed as L, resolveComponent as D, Fragment as P, normalizeClass as S, normalizeStyle as x, createCommentVNode as F, createBlock as N, withCtx as f, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as w, createVNode as $, Transition as ne, renderSlot as R, mergeModels as G, useModel as se, resolveDirective as ie, withDirectives as J, mergeProps as K, createSlots as ue, renderList as re } from "vue";
2
+ import { ikColor as ce, _ as I, ikStore as H } from "iking-utils-pro";
3
3
  import de from "vuedraggable";
4
- const P = (a, k) => (a.install = (e) => {
5
- for (const r of [a, ...Object.values({})])
6
- e.component(r.name, r);
7
- }, a);
4
+ const X = (o, b) => (o.install = (s) => {
5
+ for (const e of [o, ...Object.values({})])
6
+ s.component(e.name, e);
7
+ }, o);
8
8
  /*! Element Plus Icons Vue v2.3.1 */
9
- var ve = /* @__PURE__ */ F({
9
+ var ve = /* @__PURE__ */ A({
10
10
  name: "DCaret",
11
11
  __name: "d-caret",
12
- setup(a) {
13
- return (k, e) => (u(), f("svg", {
12
+ setup(o) {
13
+ return (b, s) => (c(), m("svg", {
14
14
  xmlns: "http://www.w3.org/2000/svg",
15
15
  viewBox: "0 0 1024 1024"
16
16
  }, [
17
- S("path", {
17
+ C("path", {
18
18
  fill: "currentColor",
19
19
  d: "m512 128 288 320H224zM224 576h576L512 896z"
20
20
  })
21
21
  ]));
22
22
  }
23
23
  }), pe = ve;
24
- const X = (a, k) => {
25
- const e = a.__vccOpts || a;
26
- for (const [r, c] of k)
27
- e[r] = c;
28
- return e;
29
- }, fe = {
30
- key: 0,
31
- class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
24
+ const Y = (o, b) => {
25
+ const s = o.__vccOpts || o;
26
+ for (const [e, d] of b)
27
+ s[e] = d;
28
+ return s;
32
29
  }, me = {
33
30
  key: 1,
34
31
  class: "h-[1em] w-[1em]",
35
32
  "aria-hidden": "true"
36
- }, ge = ["xlink:href"], ye = ["src"], he = {
33
+ }, fe = ["xlink:href"], ge = ["src"], ye = {
37
34
  key: 1,
38
35
  class: "h-[1em] w-[1em]",
39
36
  "aria-hidden": "true"
40
- }, ke = ["xlink:href"], be = ["src"], _e = /* @__PURE__ */ F({
37
+ }, he = ["xlink:href"], ke = ["src"], be = /* @__PURE__ */ A({
41
38
  name: "IkSvgIcon",
42
39
  __name: "index",
43
40
  props: {
@@ -63,11 +60,12 @@ const X = (a, k) => {
63
60
  warning: { type: Boolean },
64
61
  width: {}
65
62
  },
66
- setup(a) {
67
- const k = a, e = L(() => k), r = L(() => {
63
+ emits: ["click", "mouseenter", "mouseleave", "dblclick"],
64
+ setup(o, { emit: b }) {
65
+ const s = o, e = L(() => s), d = L(() => {
68
66
  const { name: t } = e.value;
69
67
  return /^http?:\/\//.test(t) ? "img" : /i-[^:]+:[^:]+/.test(t) ? "unocss" : t != null && t.startsWith("iksig") ? "iksig" : t != null && t.includes(":") ? "iconify" : t != null && t.startsWith("iksvg") ? "svg" : "i";
70
- }), c = L(() => {
68
+ }), i = L(() => {
71
69
  const t = [];
72
70
  if (e.value.flip)
73
71
  switch (e.value.flip) {
@@ -82,141 +80,164 @@ const X = (a, k) => {
82
80
  break;
83
81
  }
84
82
  e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
85
- const h = {
83
+ const a = {
86
84
  pointerEvents: e.value.disabled ? "none" : "auto",
87
85
  ...e.value.color && { color: e.value.color },
88
86
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
89
87
  ...t.length && { transform: t.join(" ") },
90
88
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
91
- ...e.value.color && r.value !== "iksig" ? {
89
+ ...e.value.color && d.value !== "iksig" ? {
92
90
  "--ik-icon-deep-color": e.value.color,
93
91
  "--ik-icon-shallow-color": e.value.colorLight || ce.setOpacity(e.value.color, e.value.opacity)
94
92
  } : {}
95
93
  };
96
- return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
97
- });
98
- return (t, h) => {
99
- const O = D("el-tooltip"), $ = D("el-button");
100
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), f("span", fe, [
101
- e.value.notip || !e.value.title ? (u(), f(
102
- "i",
103
- {
104
- key: 0,
105
- class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
106
- [t.name]: r.value === "unocss",
107
- "show-bg": e.value.showBg || e.value.bg,
108
- default: e.value.size === "default",
109
- small: e.value.size === "small",
110
- big: e.value.size === "big",
111
- warning: e.value.warning || e.value.type === "warning",
112
- primary: e.value.primary || e.value.type === "primary",
113
- success: t.success || e.value.type === "success",
114
- error: e.value.error || e.value.type === "error",
115
- active: e.value.active,
116
- disabled: e.value.disabled
117
- }]),
118
- style: B(c.value)
119
- },
120
- [
121
- E(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
122
- r.value === "iksig" ? (u(), f(
123
- "i",
124
- {
125
- key: 0,
126
- class: w(`iksig ${e.value.name}`),
127
- style: B(c.value)
128
- },
129
- null,
130
- 6
131
- /* CLASS, STYLE */
132
- )) : r.value === "svg" ? (u(), f("svg", me, [
133
- S("use", {
134
- "xlink:href": `#${e.value.name}`
135
- }, null, 8, ge)
136
- ])) : r.value === "img" ? (u(), f("img", {
137
- key: 2,
138
- src: e.value.name,
139
- class: "h-[1em] w-[1em]"
140
- }, null, 8, ye)) : (u(), f(
141
- "i",
142
- {
143
- key: 3,
144
- class: w(e.value.name),
145
- style: B(c.value)
146
- },
147
- null,
148
- 6
149
- /* CLASS, STYLE */
150
- ))
151
- ],
152
- 6
153
- /* CLASS, STYLE */
154
- )) : (u(), N(O, {
155
- key: 1,
156
- content: e.value.title,
157
- placement: "top"
158
- }, {
159
- default: m(() => [
160
- S(
161
- "i",
162
- {
163
- class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
164
- [t.name]: r.value === "unocss",
165
- "show-bg": e.value.showBg || e.value.bg,
166
- default: e.value.size === "default",
167
- small: e.value.size === "small",
168
- big: e.value.size === "big",
169
- warning: e.value.warning || e.value.type === "warning",
170
- primary: t.primary || e.value.type === "primary",
171
- success: t.success || e.value.type === "success",
172
- error: e.value.error || e.value.type === "error",
173
- active: e.value.active
174
- }]),
175
- style: B(c.value)
176
- },
177
- [
178
- r.value === "iksig" ? (u(), f(
179
- "i",
180
- {
181
- key: 0,
182
- class: w(`iksig ${e.value.name}`),
183
- style: B(c.value)
184
- },
185
- null,
186
- 6
187
- /* CLASS, STYLE */
188
- )) : r.value === "svg" ? (u(), f("svg", he, [
189
- S("use", {
190
- "xlink:href": `#${e.value.name}`
191
- }, null, 8, ke)
192
- ])) : r.value === "img" ? (u(), f("img", {
193
- key: 2,
194
- src: e.value.name,
195
- class: "h-[1em] w-[1em]"
196
- }, null, 8, be)) : (u(), f(
197
- "i",
198
- {
199
- key: 3,
200
- class: w(e.value.name),
201
- style: B(c.value)
202
- },
203
- null,
204
- 6
205
- /* CLASS, STYLE */
206
- ))
207
- ],
208
- 6
209
- /* CLASS, STYLE */
210
- )
211
- ]),
212
- _: 1
213
- /* STABLE */
214
- }, 8, ["content"]))
215
- ])) : (u(), N($, {
94
+ return e.value.width && (a.width = a.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), a;
95
+ }), k = b, M = (t) => {
96
+ k("click", t);
97
+ }, B = (t) => {
98
+ k("mouseenter", t);
99
+ }, v = (t) => {
100
+ k("mouseleave", t);
101
+ }, y = (t) => {
102
+ k("dblclick", t);
103
+ };
104
+ return (t, a) => {
105
+ const O = D("el-tooltip"), E = D("el-button");
106
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), m(
107
+ P,
108
+ { key: 0 },
109
+ [
110
+ e.value.notip || !e.value.title ? (c(), m(
111
+ "span",
112
+ {
113
+ key: 0,
114
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
115
+ [t.name]: d.value === "unocss",
116
+ "show-bg": e.value.showBg || e.value.bg,
117
+ default: e.value.size === "default",
118
+ small: e.value.size === "small",
119
+ big: e.value.size === "big",
120
+ warning: e.value.warning || e.value.type === "warning",
121
+ primary: e.value.primary || e.value.type === "primary",
122
+ success: t.success || e.value.type === "success",
123
+ error: e.value.error || e.value.type === "error",
124
+ active: e.value.active,
125
+ disabled: e.value.disabled
126
+ }]),
127
+ style: x(i.value),
128
+ onClick: M,
129
+ onDblclick: y,
130
+ onMouseenter: B,
131
+ onMouseleave: v
132
+ },
133
+ [
134
+ F(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
135
+ d.value === "iksig" ? (c(), m(
136
+ "i",
137
+ {
138
+ key: 0,
139
+ class: S(`iksig ${e.value.name}`),
140
+ style: x(i.value)
141
+ },
142
+ null,
143
+ 6
144
+ /* CLASS, STYLE */
145
+ )) : d.value === "svg" ? (c(), m("svg", me, [
146
+ C("use", {
147
+ "xlink:href": `#${e.value.name}`
148
+ }, null, 8, fe)
149
+ ])) : d.value === "img" ? (c(), m("img", {
150
+ key: 2,
151
+ src: e.value.name,
152
+ class: "h-[1em] w-[1em]"
153
+ }, null, 8, ge)) : (c(), m(
154
+ "i",
155
+ {
156
+ key: 3,
157
+ class: S(e.value.name),
158
+ style: x(i.value)
159
+ },
160
+ null,
161
+ 6
162
+ /* CLASS, STYLE */
163
+ ))
164
+ ],
165
+ 38
166
+ /* CLASS, STYLE, NEED_HYDRATION */
167
+ )) : (c(), N(O, {
168
+ key: 1,
169
+ content: e.value.title,
170
+ placement: "top",
171
+ "hide-after": 0
172
+ }, {
173
+ default: f(() => [
174
+ C(
175
+ "span",
176
+ {
177
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
178
+ [t.name]: d.value === "unocss",
179
+ "show-bg": e.value.showBg || e.value.bg,
180
+ default: e.value.size === "default",
181
+ small: e.value.size === "small",
182
+ big: e.value.size === "big",
183
+ warning: e.value.warning || e.value.type === "warning",
184
+ primary: t.primary || e.value.type === "primary",
185
+ success: t.success || e.value.type === "success",
186
+ error: e.value.error || e.value.type === "error",
187
+ active: e.value.active
188
+ }]),
189
+ style: x(i.value),
190
+ onClick: M,
191
+ onDblclick: y,
192
+ onMouseenter: B,
193
+ onMouseleave: v
194
+ },
195
+ [
196
+ d.value === "iksig" ? (c(), m(
197
+ "i",
198
+ {
199
+ key: 0,
200
+ class: S(`iksig ${e.value.name}`),
201
+ style: x(i.value)
202
+ },
203
+ null,
204
+ 6
205
+ /* CLASS, STYLE */
206
+ )) : d.value === "svg" ? (c(), m("svg", ye, [
207
+ C("use", {
208
+ "xlink:href": `#${e.value.name}`
209
+ }, null, 8, he)
210
+ ])) : d.value === "img" ? (c(), m("img", {
211
+ key: 2,
212
+ src: e.value.name,
213
+ class: "h-[1em] w-[1em]"
214
+ }, null, 8, ke)) : (c(), m(
215
+ "i",
216
+ {
217
+ key: 3,
218
+ class: S(e.value.name),
219
+ style: x(i.value)
220
+ },
221
+ null,
222
+ 6
223
+ /* CLASS, STYLE */
224
+ ))
225
+ ],
226
+ 38
227
+ /* CLASS, STYLE, NEED_HYDRATION */
228
+ )
229
+ ]),
230
+ _: 1
231
+ /* STABLE */
232
+ }, 8, ["content"]))
233
+ ],
234
+ 64
235
+ /* STABLE_FRAGMENT */
236
+ )) : (c(), N(E, {
216
237
  key: 1,
217
238
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
218
239
  }, {
219
- default: m(() => [
240
+ default: f(() => [
220
241
  z(
221
242
  T(e.value.title),
222
243
  1
@@ -228,7 +249,7 @@ const X = (a, k) => {
228
249
  }, 8, ["type"]));
229
250
  };
230
251
  }
231
- }), we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-bd4bda5f"]]), Se = P(we), Q = {
252
+ }), _e = /* @__PURE__ */ Y(be, [["__scopeId", "data-v-c7804024"]]), we = X(_e), Q = {
232
253
  animation: 200,
233
254
  group: "gl",
234
255
  disabled: !1,
@@ -241,7 +262,7 @@ const X = (a, k) => {
241
262
  bottom: 8,
242
263
  background: "var(--ik-sub-sidebar-menu-bg)"
243
264
  }
244
- }, xe = {
265
+ }, Se = {
245
266
  list: {
246
267
  required: !0,
247
268
  type: Array,
@@ -379,90 +400,90 @@ const X = (a, k) => {
379
400
  }
380
401
  })
381
402
  }
382
- }, Ce = /* @__PURE__ */ F({
403
+ }, Ce = /* @__PURE__ */ A({
383
404
  __name: "IkDragList",
384
- props: xe,
405
+ props: Se,
385
406
  emits: ["change"],
386
- setup(a, { emit: k }) {
387
- const e = a, r = k, c = V([]);
407
+ setup(o, { emit: b }) {
408
+ const s = o, e = b, d = V([]);
388
409
  Z(
389
- () => e.list,
410
+ () => s.list,
390
411
  (v) => {
391
- c.value = C.cloneDeep(v);
412
+ d.value = I.cloneDeep(v);
392
413
  },
393
414
  {
394
415
  immediate: !0,
395
416
  deep: !0
396
417
  }
397
418
  );
398
- const t = L(() => ({
419
+ const i = L(() => ({
399
420
  ...Q,
400
- ...e,
421
+ ...s,
401
422
  itemStyle: {
402
423
  ...Q.itemStyle,
403
- ...e.itemStyle
424
+ ...s.itemStyle
404
425
  }
405
- })), h = V(!1), O = () => {
406
- h.value = !0;
407
- }, $ = (v) => {
408
- h.value = !1;
409
- const x = e.list[v.oldIndex];
410
- r("change", c.value, {
411
- ...x,
426
+ })), k = V(!1), M = () => {
427
+ k.value = !0;
428
+ }, B = (v) => {
429
+ k.value = !1;
430
+ const y = s.list[v.oldIndex];
431
+ e("change", d.value, {
432
+ ...y,
412
433
  oldIndex: v.oldIndex,
413
434
  newIndex: v.newIndex
414
435
  });
415
436
  };
416
- return (v, x) => {
417
- const p = D("el-icon");
418
- return u(), N(_(de), {
419
- modelValue: c.value,
420
- "onUpdate:modelValue": x[0] || (x[0] = (n) => c.value = n),
421
- class: w(["list-group", [t.value.groupClass]]),
437
+ return (v, y) => {
438
+ const t = D("el-icon");
439
+ return c(), N(w(de), {
440
+ modelValue: d.value,
441
+ "onUpdate:modelValue": y[0] || (y[0] = (a) => d.value = a),
442
+ class: S(["list-group", [i.value.groupClass]]),
422
443
  tag: "ul",
423
- attrs: t.value,
424
- animation: t.value.animation,
425
- group: t.value.group,
426
- disabled: t.value.disabled,
427
- "ghost-class": t.value.ghostClass,
428
- "force-fallback": t.value.ghostClass,
444
+ attrs: i.value,
445
+ animation: i.value.animation,
446
+ group: i.value.group,
447
+ disabled: i.value.disabled,
448
+ "ghost-class": i.value.ghostClass,
449
+ "force-fallback": i.value.ghostClass,
429
450
  "item-key": "order",
430
- onStart: O,
431
- onEnd: $
451
+ onStart: M,
452
+ onEnd: B
432
453
  }, {
433
- item: m(({ element: n }) => [
434
- I(
454
+ item: f(({ element: a }) => [
455
+ $(
435
456
  ne,
436
457
  {
437
458
  type: "transition",
438
459
  name: "flip-list"
439
460
  },
440
461
  {
441
- default: m(() => [
442
- v.$slots.item ? q(v.$slots, "item", {
462
+ default: f(() => [
463
+ v.$slots.item ? R(v.$slots, "item", {
443
464
  key: 0,
444
- item: n
445
- }, void 0, !0) : (u(), f(
465
+ item: a
466
+ }, void 0, !0) : (c(), m(
446
467
  "li",
447
468
  {
448
469
  key: 1,
449
- class: w(["list-group-item", [t.value.itemClass]]),
450
- style: B({
451
- borderRadius: `${t.value.itemStyle.radius}px`,
452
- marginBottom: `${t.value.itemStyle.bottom}px`,
453
- backgroundColor: `${t.value.itemStyle.background}`
470
+ class: S(["list-group-item", [i.value.itemClass]]),
471
+ style: x({
472
+ borderRadius: `${i.value.itemStyle.radius}px`,
473
+ marginBottom: `${i.value.itemStyle.bottom}px`,
474
+ backgroundColor: `${i.value.itemStyle.background}`
454
475
  })
455
476
  },
456
477
  [
457
- t.value.showIcon && !v.$slots.icon ? (u(), N(p, { key: 0 }, {
458
- default: m(() => [
459
- I(_(pe))
478
+ i.value.showIcon && !v.$slots.icon ? (c(), N(t, { key: 0 }, {
479
+ default: f(() => [
480
+ $(w(pe))
460
481
  ]),
461
482
  _: 1
462
483
  /* STABLE */
463
- })) : q(v.$slots, "icon", { key: 1 }, void 0, !0),
484
+ })) : R(v.$slots, "icon", { key: 1 }, void 0, !0),
464
485
  z(
465
- " " + T(n.label),
486
+ " " + T(a.label),
466
487
  1
467
488
  /* TEXT */
468
489
  )
@@ -483,9 +504,9 @@ const X = (a, k) => {
483
504
  }, 8, ["modelValue", "class", "attrs", "animation", "group", "disabled", "ghost-class", "force-fallback"]);
484
505
  };
485
506
  }
486
- }), Be = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), Ie = P(Be), $e = { class: "check-right" }, ze = { class: "dialog-footer" }, Ve = /* @__PURE__ */ F({
507
+ }), Be = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-3716c05e"]]), Ie = X(Be), xe = { class: "check-right" }, $e = { class: "dialog-footer" }, ze = /* @__PURE__ */ A({
487
508
  __name: "IkBtnSetting",
488
- props: /* @__PURE__ */ R({
509
+ props: /* @__PURE__ */ G({
489
510
  list: {
490
511
  type: Array,
491
512
  default: () => []
@@ -523,7 +544,7 @@ const X = (a, k) => {
523
544
  config: {
524
545
  type: Object,
525
546
  default: () => ({
526
- t: (a) => a,
547
+ t: (o) => o,
527
548
  dialog: {
528
549
  l: "700px",
529
550
  sl: "600px"
@@ -541,104 +562,104 @@ const X = (a, k) => {
541
562
  },
542
563
  modelModifiers: {}
543
564
  }),
544
- emits: /* @__PURE__ */ R(["sort"], ["update:modelValue"]),
545
- setup(a, { emit: k }) {
546
- const e = a, r = k, c = se(a, "modelValue"), { t, dialog: h, path: O, user: $ } = e.config, v = L(() => `${$ == null ? void 0 : $.id}_${O}${e.tab !== "" ? `_${e.tab}` : ""}`), x = V([]), p = V([]), n = V([]), M = /* @__PURE__ */ new Map(), A = V(!1), ee = L(() => {
547
- const s = p.value.length && p.value.length !== e.list.length;
548
- return !s && p.value.length && (A.value = !0), !!s;
549
- }), U = (s) => {
550
- var i;
551
- const l = C.cloneDeep(n.value);
552
- l == null || l.forEach((o) => {
553
- var b;
554
- if (!p.value.length)
555
- n.value = [];
556
- else if (!p.value.includes(o == null ? void 0 : o.key)) {
557
- const y = (b = n.value) == null ? void 0 : b.findIndex((d) => d.key === o.key);
558
- y !== -1 && n.value.splice(y, 1), o.show = !1, M.set(o.key, o);
565
+ emits: /* @__PURE__ */ G(["sort"], ["update:modelValue"]),
566
+ setup(o, { emit: b }) {
567
+ const s = o, e = b, d = se(o, "modelValue"), { t: i, dialog: k, path: M, user: B } = s.config, v = L(() => `${B == null ? void 0 : B.id}_${M}${s.tab !== "" ? `_${s.tab}` : ""}`), y = V([]), t = V([]), a = V([]), O = /* @__PURE__ */ new Map(), E = V(!1), ee = L(() => {
568
+ const u = t.value.length && t.value.length !== s.list.length;
569
+ return !u && t.value.length && (E.value = !0), !!u;
570
+ }), U = (u) => {
571
+ var r;
572
+ const l = I.cloneDeep(a.value);
573
+ l == null || l.forEach((n) => {
574
+ var _;
575
+ if (!t.value.length)
576
+ a.value = [];
577
+ else if (!t.value.includes(n == null ? void 0 : n.key)) {
578
+ const h = (_ = a.value) == null ? void 0 : _.findIndex((p) => p.key === n.key);
579
+ h !== -1 && a.value.splice(h, 1), n.show = !1, O.set(n.key, n);
559
580
  }
560
- }), p.value.forEach((o) => {
561
- var y;
562
- if (((y = n.value) == null ? void 0 : y.findIndex((d) => (d == null ? void 0 : d.key) === o)) === -1) {
563
- const d = M.get(o);
564
- d && (d.show = !0, n.value.push(d));
581
+ }), t.value.forEach((n) => {
582
+ var h;
583
+ if (((h = a.value) == null ? void 0 : h.findIndex((p) => (p == null ? void 0 : p.key) === n)) === -1) {
584
+ const p = O.get(n);
585
+ p && (p.show = !0, a.value.push(p));
565
586
  }
566
- }), (i = n.value) != null && i.length || (n.value = C.cloneDeep(e.list)), s === !0 && (r("sort", C.cloneDeep(n.value)), c.value = C.cloneDeep(n.value));
567
- }, te = (s) => {
568
- if (s)
569
- p.value = e.list.map((l) => l.key);
587
+ }), (r = a.value) != null && r.length || (a.value = I.cloneDeep(s.list)), u === !0 && (e("sort", I.cloneDeep(a.value)), d.value = I.cloneDeep(a.value));
588
+ }, te = (u) => {
589
+ if (u)
590
+ t.value = s.list.map((l) => l.key);
570
591
  else {
571
- const l = e.list.find((i) => !i.key || i.label === "操作");
572
- p.value = l ? [l.key] : [];
592
+ const l = s.list.find((r) => !r.key || r.label === "操作");
593
+ t.value = l ? [l.key] : [];
573
594
  }
574
595
  U();
575
596
  }, W = () => {
576
- const s = H.local.getItem(v.value);
597
+ const u = H.local.getItem(v.value);
577
598
  try {
578
- const l = C.cloneDeep(e == null ? void 0 : e.list);
579
- if ((!s || !(s != null && s.length)) && H.local.setItem(
599
+ const l = I.cloneDeep(s == null ? void 0 : s.list);
600
+ if ((!u || !(u != null && u.length)) && H.local.setItem(
580
601
  v.value,
581
- l.map(({ show: i, type: o, key: b, label: y, width: d, minWidth: g, align: oe }) => ({
582
- show: i,
583
- key: b,
584
- type: o,
585
- label: y,
586
- width: d,
602
+ l.map(({ show: r, type: n, key: _, label: h, width: p, minWidth: g, align: oe }) => ({
603
+ show: r,
604
+ key: _,
605
+ type: n,
606
+ label: h,
607
+ width: p,
587
608
  minWidth: g,
588
609
  align: oe
589
610
  }))
590
- ), x.value = [
591
- ...(l == null ? void 0 : l.map((i) => (M.set(i.key, i), {
592
- ...i,
593
- show: i.show || !1
611
+ ), y.value = [
612
+ ...(l == null ? void 0 : l.map((r) => (O.set(r.key, r), {
613
+ ...r,
614
+ show: r.show || !1
594
615
  }))) || []
595
- ], s) {
596
- const i = s.filter((o) => o.show).map((o) => o.key);
597
- p.value = [...i];
616
+ ], u) {
617
+ const r = u.filter((n) => n.show).map((n) => n.key);
618
+ t.value = [...r];
598
619
  } else {
599
- const i = x.value.filter((o) => o.show);
600
- p.value = i.map((o) => o.key);
620
+ const r = y.value.filter((n) => n.show);
621
+ t.value = r.map((n) => n.key);
601
622
  }
602
623
  U(!0);
603
624
  } catch (l) {
604
625
  console.info("error: ", l);
605
626
  }
606
627
  };
607
- W(), Z(() => e.list, () => {
628
+ W(), Z(() => s.list, () => {
608
629
  W();
609
630
  }, { deep: !0 });
610
- const j = V(!1), Y = () => {
631
+ const j = V(!1), q = () => {
611
632
  j.value = !0;
612
- }, le = (s) => {
613
- n.value = s;
633
+ }, le = (u) => {
634
+ a.value = u;
614
635
  }, ae = () => {
615
636
  j.value = !1, H.local.setItem(
616
637
  v.value,
617
- n.value.map(({ show: s, key: l, label: i, value: o, width: b, minWidth: y, align: d }) => ({
618
- show: s,
638
+ a.value.map(({ show: u, key: l, label: r, value: n, width: _, minWidth: h, align: p }) => ({
639
+ show: u,
619
640
  key: l,
620
- label: i,
621
- value: o,
622
- width: b,
623
- minWidth: y,
624
- align: d
641
+ label: r,
642
+ value: n,
643
+ width: _,
644
+ minWidth: h,
645
+ align: p
625
646
  }))
626
- ), r("sort", C.cloneDeep(n.value)), c.value = C.cloneDeep(n.value);
647
+ ), e("sort", I.cloneDeep(a.value)), d.value = I.cloneDeep(a.value);
627
648
  };
628
- return (s, l) => {
629
- const i = D("el-button"), o = D("el-checkbox"), b = D("el-checkbox-group"), y = D("el-dialog"), d = ie("role");
630
- return u(), f(
631
- G,
649
+ return (u, l) => {
650
+ const r = D("el-button"), n = D("el-checkbox"), _ = D("el-checkbox-group"), h = D("el-dialog"), p = ie("role");
651
+ return c(), m(
652
+ P,
632
653
  null,
633
654
  [
634
- a.btnType === "button" ? J((u(), N(i, K({ key: 0 }, s.$attrs, {
635
- circle: a.circle,
636
- type: a.type,
637
- style: { minWidth: a.circle ? "40px" : "", minHeight: a.circle ? "40px" : "" },
638
- onClick: Y
655
+ o.btnType === "button" ? J((c(), N(r, K({ key: 0 }, u.$attrs, {
656
+ circle: o.circle,
657
+ type: o.type,
658
+ style: { minWidth: o.circle ? "40px" : "", minHeight: o.circle ? "40px" : "" },
659
+ onClick: q
639
660
  }), ue({
640
- icon: m(() => [
641
- l[4] || (l[4] = S(
661
+ icon: f(() => [
662
+ l[4] || (l[4] = C(
642
663
  "i",
643
664
  { class: "ik ik-shezhi" },
644
665
  null,
@@ -649,12 +670,12 @@ const X = (a, k) => {
649
670
  _: 2
650
671
  /* DYNAMIC */
651
672
  }, [
652
- a.circle ? void 0 : {
673
+ o.circle ? void 0 : {
653
674
  name: "default",
654
- fn: m(() => [
655
- E(' {{ t("action.setting") }} '),
675
+ fn: f(() => [
676
+ F(' {{ t("action.setting") }} '),
656
677
  z(
657
- " " + T(_(t)("设置")),
678
+ " " + T(w(i)("设置")),
658
679
  1
659
680
  /* TEXT */
660
681
  )
@@ -662,57 +683,57 @@ const X = (a, k) => {
662
683
  key: "0"
663
684
  }
664
685
  ]), 1040, ["circle", "type", "style"])), [
665
- [d, s.$props.role]
666
- ]) : E("v-if", !0),
667
- a.btnType === "icon" ? J((u(), N(
668
- _(Se),
686
+ [p, u.$props.role]
687
+ ]) : F("v-if", !0),
688
+ o.btnType === "icon" ? J((c(), N(
689
+ w(we),
669
690
  K({
670
691
  key: 1,
671
692
  name: "iksvg_shezhi-daohang",
672
693
  "show-bg": "",
673
694
  size: "default"
674
- }, s.$attrs, { onClick: Y }),
695
+ }, u.$attrs, { onClick: q }),
675
696
  null,
676
697
  16
677
698
  /* FULL_PROPS */
678
699
  )), [
679
- [d, s.$props.role]
680
- ]) : E("v-if", !0),
681
- I(y, {
700
+ [p, u.$props.role]
701
+ ]) : F("v-if", !0),
702
+ $(h, {
682
703
  modelValue: j.value,
683
704
  "onUpdate:modelValue": l[3] || (l[3] = (g) => j.value = g),
684
705
  draggable: "",
685
- width: a.inline ? _(h).l : _(h).sl,
706
+ width: o.inline ? w(k).l : w(k).sl,
686
707
  "close-on-click-modal": !1,
687
708
  "close-on-press-escape": !1,
688
709
  title: "显示字段",
689
710
  "append-to-body": "",
690
711
  onOpen: W
691
712
  }, {
692
- footer: m(() => [
693
- S("div", ze, [
694
- I(i, {
713
+ footer: f(() => [
714
+ C("div", $e, [
715
+ $(r, {
695
716
  onClick: l[2] || (l[2] = (g) => j.value = !1)
696
717
  }, {
697
- default: m(() => [
718
+ default: f(() => [
698
719
  z(
699
- T(_(t)("关闭")) + " ",
720
+ T(w(i)("关闭")) + " ",
700
721
  1
701
722
  /* TEXT */
702
723
  ),
703
- E(' {{ t("action.close") }} ')
724
+ F(' {{ t("action.close") }} ')
704
725
  ]),
705
726
  _: 1
706
727
  /* STABLE */
707
728
  }),
708
- I(i, {
729
+ $(r, {
709
730
  type: "primary",
710
- disabled: n.value.length < 2,
731
+ disabled: a.value.length < 2,
711
732
  onClick: ae
712
733
  }, {
713
- default: m(() => [
734
+ default: f(() => [
714
735
  z(
715
- T(n.value.length < 2 ? "至少选择一个字段" : _(t)("确定")),
736
+ T(a.value.length < 2 ? "至少选择一个字段" : w(i)("确定")),
716
737
  1
717
738
  /* TEXT */
718
739
  )
@@ -722,47 +743,47 @@ const X = (a, k) => {
722
743
  }, 8, ["disabled"])
723
744
  ])
724
745
  ]),
725
- default: m(() => [
726
- S(
746
+ default: f(() => [
747
+ C(
727
748
  "div",
728
749
  {
729
- class: w(["view-fields", [a.inline ? null : "un-inline"]])
750
+ class: S(["view-fields", [o.inline ? null : "un-inline"]])
730
751
  },
731
752
  [
732
- S(
753
+ C(
733
754
  "div",
734
755
  {
735
- style: B({ flex: a.inline ? 2 : 1 })
756
+ style: x({ flex: o.inline ? 2 : 1 })
736
757
  },
737
758
  [
738
- I(o, {
739
- modelValue: A.value,
740
- "onUpdate:modelValue": l[0] || (l[0] = (g) => A.value = g),
759
+ $(n, {
760
+ modelValue: E.value,
761
+ "onUpdate:modelValue": l[0] || (l[0] = (g) => E.value = g),
741
762
  class: "single-line",
742
763
  indeterminate: ee.value,
743
764
  onChange: te
744
765
  }, {
745
- default: m(() => l[5] || (l[5] = [
766
+ default: f(() => l[5] || (l[5] = [
746
767
  z(" 全选 ")
747
768
  ])),
748
769
  _: 1
749
770
  /* STABLE */
750
771
  }, 8, ["modelValue", "indeterminate"]),
751
- I(b, {
752
- modelValue: p.value,
753
- "onUpdate:modelValue": l[1] || (l[1] = (g) => p.value = g),
772
+ $(_, {
773
+ modelValue: t.value,
774
+ "onUpdate:modelValue": l[1] || (l[1] = (g) => t.value = g),
754
775
  onChange: U
755
776
  }, {
756
- default: m(() => [
757
- (u(!0), f(
758
- G,
777
+ default: f(() => [
778
+ (c(!0), m(
779
+ P,
759
780
  null,
760
- re(x.value, (g) => (u(), N(o, {
781
+ re(y.value, (g) => (c(), N(n, {
761
782
  key: g.key,
762
783
  disabled: !g.key,
763
784
  label: g.key
764
785
  }, {
765
- default: m(() => [
786
+ default: f(() => [
766
787
  z(
767
788
  T(g.label),
768
789
  1
@@ -783,9 +804,9 @@ const X = (a, k) => {
783
804
  4
784
805
  /* STYLE */
785
806
  ),
786
- S("div", $e, [
787
- I(_(Ie), {
788
- list: n.value,
807
+ C("div", xe, [
808
+ $(w(Ie), {
809
+ list: a.value,
789
810
  "item-style": { bottom: 4 },
790
811
  onChange: le
791
812
  }, null, 8, ["list"])
@@ -804,8 +825,8 @@ const X = (a, k) => {
804
825
  );
805
826
  };
806
827
  }
807
- }), De = /* @__PURE__ */ X(Ve, [["__scopeId", "data-v-b5ed17ed"]]), Oe = P(De);
828
+ }), Ve = /* @__PURE__ */ Y(ze, [["__scopeId", "data-v-b5ed17ed"]]), Te = X(Ve);
808
829
  export {
809
- Oe as IkBtnSetting,
810
- Oe as default
830
+ Te as IkBtnSetting,
831
+ Te as default
811
832
  };