iking-web-ui-pro 0.3.3 → 0.3.5

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 (46) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +614 -638
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +153 -177
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +272 -296
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCollapseCard/ik.index.es.js +153 -177
  8. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  9. package/dist/IkDescription/ik.index.es.js +1496 -1520
  10. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  11. package/dist/IkDetailPreviewFiles/ik.index.es.js +1464 -1488
  12. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  13. package/dist/IkExpandCollapse/ik.index.es.js +144 -168
  14. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  15. package/dist/IkIconPicker/ik.index.es.js +227 -244
  16. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  17. package/dist/IkMonacoEditor/ik.index.es.js +357 -381
  18. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  19. package/dist/IkPageFull/ik.index.es.js +626 -650
  20. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  21. package/dist/IkPreviewFile/ik.index.es.js +1440 -1464
  22. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPreviewFileDialog/ik.index.es.js +573 -597
  24. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  25. package/dist/IkSchedule/ik.index.es.js +331 -355
  26. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  27. package/dist/IkSideText/ik.index.es.js +178 -202
  28. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSvgIcon/ik.index.es.js +131 -155
  30. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  31. package/dist/IkTree/ik.index.es.js +7 -7
  32. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  33. package/dist/IkUploadFile/ik.index.es.js +692 -716
  34. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  35. package/dist/IkUploadImage/ik.index.es.js +385 -409
  36. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  37. package/dist/IkVerticalStepBar/ik.index.es.js +193 -217
  38. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  39. package/dist/iking-web-ui-pro.css +2 -2
  40. package/dist/index.es.js +11633 -11650
  41. package/dist/index.umd.js +99 -99
  42. package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
  43. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
  44. package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
  45. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
  46. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { defineComponent as z, computed as d, resolveComponent as k, openBlock as t, createElementBlock as s, Fragment as x, normalizeClass as u, normalizeStyle as r, createElementVNode as m, createBlock as b, withCtx as w, createTextVNode as I, toDisplayString as C } from "vue";
2
- import { ikColor as $ } from "iking-utils-pro";
3
- const M = (o, c) => (o.install = (i) => {
4
- for (const e of [o, ...Object.values({})])
5
- i.component(e.name, e);
6
- }, o), S = {
1
+ import { defineComponent as z, computed as v, resolveComponent as p, openBlock as t, createElementBlock as a, normalizeClass as i, normalizeStyle as x, Fragment as d, createElementVNode as m, createBlock as g, withCtx as f, mergeProps as C, createTextVNode as I, toDisplayString as $ } from "vue";
2
+ import { ikColor as S } from "iking-utils-pro";
3
+ const T = (s, r) => (s.install = (n) => {
4
+ for (const e of [s, ...Object.values({})])
5
+ n.component(e.name, e);
6
+ }, s), M = {
7
7
  key: 1,
8
8
  class: "h-[1em] w-[1em]",
9
9
  "aria-hidden": "true"
10
- }, T = ["xlink:href"], j = ["src"], D = {
10
+ }, j = ["xlink:href"], D = ["src"], O = {
11
11
  key: 1,
12
12
  class: "h-[1em] w-[1em]",
13
13
  "aria-hidden": "true"
14
- }, E = ["xlink:href"], O = ["src"], L = /* @__PURE__ */ z({
14
+ }, E = ["xlink:href"], L = ["src"], N = /* @__PURE__ */ z({
15
15
  name: "IkSvgIcon",
16
16
  __name: "index",
17
17
  props: {
@@ -35,14 +35,15 @@ const M = (o, c) => (o.install = (i) => {
35
35
  title: {},
36
36
  type: { default: "primary" },
37
37
  warning: { type: Boolean },
38
- width: {}
38
+ width: {},
39
+ iconClass: { default: "" }
39
40
  },
40
41
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
41
- setup(o, { emit: c }) {
42
- const i = o, e = d(() => i), a = d(() => {
42
+ setup(s, { emit: r }) {
43
+ const n = s, e = v(() => n), o = v(() => {
43
44
  const { name: l } = e.value;
44
45
  return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
45
- }), n = d(() => {
46
+ }), h = v(() => {
46
47
  const l = [];
47
48
  if (e.value.flip)
48
49
  switch (e.value.flip) {
@@ -57,183 +58,158 @@ const M = (o, c) => (o.install = (i) => {
57
58
  break;
58
59
  }
59
60
  e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
60
- const p = {
61
- pointerEvents: e.value.disabled ? "none" : "auto",
61
+ const c = {
62
62
  ...e.value.color && { color: e.value.color },
63
63
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
64
64
  ...l.length && { transform: l.join(" ") },
65
65
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
66
- ...e.value.color && a.value !== "iksig" ? {
66
+ ...e.value.color && o.value !== "iksig" ? {
67
67
  "--ik-icon-deep-color": e.value.color,
68
- "--ik-icon-shallow-color": e.value.colorLight || $.setOpacity(e.value.color, e.value.opacity)
68
+ "--ik-icon-shallow-color": e.value.colorLight || S.setOpacity(e.value.color, e.value.opacity)
69
69
  } : {}
70
70
  };
71
- return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
72
- }), v = c, g = (l) => {
73
- v("click", l);
74
- }, y = (l) => {
75
- v("mouseenter", l);
76
- }, f = (l) => {
77
- v("mouseleave", l);
78
- }, h = (l) => {
79
- v("dblclick", l);
71
+ return e.value.width && (c.width = c.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), c;
72
+ }), u = r, y = (l) => {
73
+ u("click", l);
74
+ }, k = (l) => {
75
+ u("mouseenter", l);
76
+ }, _ = (l) => {
77
+ u("mouseleave", l);
78
+ }, b = (l) => {
79
+ u("dblclick", l);
80
80
  };
81
- return (l, p) => {
82
- const _ = k("el-tooltip"), B = k("el-button");
83
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), s(
84
- x,
85
- { key: 0 },
81
+ return (l, c) => {
82
+ const w = p("el-tooltip"), B = p("el-button");
83
+ return t(), a(
84
+ "i",
85
+ {
86
+ class: i(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
87
+ [l.iconClass]: !0,
88
+ [l.name]: o.value === "unocss",
89
+ "show-bg": e.value.showBg || e.value.bg,
90
+ default: e.value.size === "default",
91
+ small: e.value.size === "small",
92
+ big: e.value.size === "big",
93
+ warning: e.value.warning || e.value.type === "warning",
94
+ primary: e.value.primary || e.value.type === "primary",
95
+ success: l.success || e.value.type === "success",
96
+ error: e.value.error || e.value.type === "error",
97
+ active: e.value.active,
98
+ disabled: e.value.disabled
99
+ }]),
100
+ style: x(h.value),
101
+ onClick: y,
102
+ onDblclick: b,
103
+ onMouseenter: k,
104
+ onMouseleave: _
105
+ },
86
106
  [
87
- e.value.notip || !e.value.title ? (t(), s(
88
- "i",
89
- {
90
- key: 0,
91
- class: u(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
92
- [l.name]: a.value === "unocss",
93
- "show-bg": e.value.showBg || e.value.bg,
94
- default: e.value.size === "default",
95
- small: e.value.size === "small",
96
- big: e.value.size === "big",
97
- warning: e.value.warning || e.value.type === "warning",
98
- primary: e.value.primary || e.value.type === "primary",
99
- success: l.success || e.value.type === "success",
100
- error: e.value.error || e.value.type === "error",
101
- active: e.value.active,
102
- disabled: e.value.disabled
103
- }]),
104
- style: r(n.value),
105
- onClick: g,
106
- onDblclick: h,
107
- onMouseenter: y,
108
- onMouseleave: f
109
- },
107
+ e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), a(
108
+ d,
109
+ { key: 0 },
110
110
  [
111
- a.value === "iksig" ? (t(), s(
112
- "i",
113
- {
114
- key: 0,
115
- class: u(`iksig ${e.value.name}`),
116
- style: r(n.value)
117
- },
118
- null,
119
- 6
120
- /* CLASS, STYLE */
121
- )) : a.value === "svg" ? (t(), s("svg", S, [
122
- m("use", {
123
- "xlink:href": `#${e.value.name}`
124
- }, null, 8, T)
125
- ])) : a.value === "img" ? (t(), s("img", {
126
- key: 2,
127
- src: e.value.name,
128
- class: "h-[1em] w-[1em]"
129
- }, null, 8, j)) : (t(), s(
130
- "i",
131
- {
132
- key: 3,
133
- class: u(e.value.name),
134
- style: r(n.value)
135
- },
136
- null,
137
- 6
138
- /* CLASS, STYLE */
139
- ))
140
- ],
141
- 38
142
- /* CLASS, STYLE, NEED_HYDRATION */
143
- )) : (t(), b(_, {
144
- key: 1,
145
- content: e.value.title,
146
- placement: "top",
147
- "popper-class": "ik-svg-icon-tooltip",
148
- "hide-after": 0
149
- }, {
150
- default: w(() => [
151
- m(
152
- "i",
153
- {
154
- class: u(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
155
- [l.name]: a.value === "unocss",
156
- "show-bg": e.value.showBg || e.value.bg,
157
- default: e.value.size === "default",
158
- small: e.value.size === "small",
159
- big: e.value.size === "big",
160
- warning: e.value.warning || e.value.type === "warning",
161
- primary: l.primary || e.value.type === "primary",
162
- success: l.success || e.value.type === "success",
163
- error: e.value.error || e.value.type === "error",
164
- active: e.value.active,
165
- disabled: e.value.disabled
166
- }]),
167
- style: r(n.value),
168
- onClick: g,
169
- onDblclick: h,
170
- onMouseenter: y,
171
- onMouseleave: f
172
- },
111
+ e.value.notip || !e.value.title ? (t(), a(
112
+ d,
113
+ { key: 0 },
173
114
  [
174
- a.value === "iksig" ? (t(), s(
115
+ o.value === "iksig" ? (t(), a(
175
116
  "i",
176
117
  {
177
118
  key: 0,
178
- class: u(`iksig ${e.value.name}`),
179
- style: r(n.value)
119
+ class: i(`iksig ${e.value.name}`)
180
120
  },
181
121
  null,
182
- 6
183
- /* CLASS, STYLE */
184
- )) : a.value === "svg" ? (t(), s("svg", D, [
122
+ 2
123
+ /* CLASS */
124
+ )) : o.value === "svg" ? (t(), a("svg", M, [
185
125
  m("use", {
186
126
  "xlink:href": `#${e.value.name}`
187
- }, null, 8, E)
188
- ])) : a.value === "img" ? (t(), s("img", {
127
+ }, null, 8, j)
128
+ ])) : o.value === "img" ? (t(), a("img", {
189
129
  key: 2,
190
130
  src: e.value.name,
191
131
  class: "h-[1em] w-[1em]"
192
- }, null, 8, O)) : (t(), s(
132
+ }, null, 8, D)) : (t(), a(
193
133
  "i",
194
134
  {
195
135
  key: 3,
196
- class: u(e.value.name),
197
- style: r(n.value)
136
+ class: i(e.value.name)
198
137
  },
199
138
  null,
200
- 6
201
- /* CLASS, STYLE */
139
+ 2
140
+ /* CLASS */
202
141
  ))
203
142
  ],
204
- 38
205
- /* CLASS, STYLE, NEED_HYDRATION */
143
+ 64
144
+ /* STABLE_FRAGMENT */
145
+ )) : (t(), g(w, {
146
+ key: 1,
147
+ content: e.value.title,
148
+ placement: "top",
149
+ "popper-class": "ik-svg-icon-tooltip",
150
+ "hide-after": 0
151
+ }, {
152
+ default: f(() => [
153
+ o.value === "iksig" ? (t(), a(
154
+ "i",
155
+ {
156
+ key: 0,
157
+ class: i(`iksig ${e.value.name}`)
158
+ },
159
+ null,
160
+ 2
161
+ /* CLASS */
162
+ )) : o.value === "svg" ? (t(), a("svg", O, [
163
+ m("use", {
164
+ "xlink:href": `#${e.value.name}`
165
+ }, null, 8, E)
166
+ ])) : o.value === "img" ? (t(), a("img", {
167
+ key: 2,
168
+ src: e.value.name,
169
+ class: "h-[1em] w-[1em]"
170
+ }, null, 8, L)) : (t(), a(
171
+ "i",
172
+ {
173
+ key: 3,
174
+ class: i(e.value.name)
175
+ },
176
+ null,
177
+ 2
178
+ /* CLASS */
179
+ ))
180
+ ]),
181
+ _: 1
182
+ /* STABLE */
183
+ }, 8, ["content"]))
184
+ ],
185
+ 64
186
+ /* STABLE_FRAGMENT */
187
+ )) : (t(), g(B, C({ key: 1 }, l.$attrs, {
188
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
189
+ }), {
190
+ default: f(() => [
191
+ I(
192
+ $(e.value.title),
193
+ 1
194
+ /* TEXT */
206
195
  )
207
196
  ]),
208
197
  _: 1
209
198
  /* STABLE */
210
- }, 8, ["content"]))
199
+ }, 16, ["type"]))
211
200
  ],
212
- 64
213
- /* STABLE_FRAGMENT */
214
- )) : (t(), b(B, {
215
- key: 1,
216
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
217
- }, {
218
- default: w(() => [
219
- I(
220
- C(e.value.title),
221
- 1
222
- /* TEXT */
223
- )
224
- ]),
225
- _: 1
226
- /* STABLE */
227
- }, 8, ["type"]));
201
+ 38
202
+ /* CLASS, STYLE, NEED_HYDRATION */
203
+ );
228
204
  };
229
205
  }
230
- }), N = (o, c) => {
231
- const i = o.__vccOpts || o;
232
- for (const [e, a] of c)
233
- i[e] = a;
234
- return i;
235
- }, V = /* @__PURE__ */ N(L, [["__scopeId", "data-v-6889f3aa"]]), Y = M(V);
206
+ }), V = (s, r) => {
207
+ const n = s.__vccOpts || s;
208
+ for (const [e, o] of r)
209
+ n[e] = o;
210
+ return n;
211
+ }, W = /* @__PURE__ */ V(N, [["__scopeId", "data-v-2648e369"]]), F = T(W);
236
212
  export {
237
- Y as IkSvgIcon,
238
- Y as default
213
+ F as IkSvgIcon,
214
+ F as default
239
215
  };
@@ -1 +1 @@
1
- .row-title[data-v-6889f3aa]{display:flex}.ik-svg-icon.ik-icon-span[data-v-6889f3aa]:not(:first-child){margin-left:var(--ik-margin-s-8)}
1
+ .row-title[data-v-2648e369]{display:flex}.ik-svg-icon.ik-icon-span[data-v-2648e369]:not(:first-child){margin-left:var(--ik-margin-s-8)}
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, openBlock as u, createElementBlock as v, createElementVNode as h, useCssVars as w, ref as p, watch as x, computed as k, resolveComponent as S, Fragment as C, renderSlot as i, normalizeClass as T, createBlock as V, unref as f, createCommentVNode as b, createVNode as B, mergeProps as I, createSlots as $, withCtx as N } from "vue";
1
+ import { defineComponent as m, openBlock as u, createElementBlock as v, createElementVNode as h, useCssVars as w, ref as p, watch as x, computed as k, resolveComponent as S, Fragment as b, renderSlot as i, normalizeClass as C, createBlock as T, unref as f, createCommentVNode as V, createVNode as B, mergeProps as I, createSlots as $, withCtx as N } from "vue";
2
2
  import { ElTree as E } from "element-plus";
3
3
  const F = (e, o) => (e.install = (r) => {
4
4
  for (const t of [e, ...Object.values({})])
@@ -48,7 +48,7 @@ const O = /* @__PURE__ */ m({
48
48
  },
49
49
  setup(e, { expose: o }) {
50
50
  w((a) => ({
51
- "5063aceb": _.value
51
+ "3be8d276": _.value
52
52
  }));
53
53
  const r = e, t = p(""), l = p();
54
54
  x(
@@ -64,17 +64,17 @@ const O = /* @__PURE__ */ m({
64
64
  } }), (a, n) => {
65
65
  const g = S("el-input");
66
66
  return u(), v(
67
- C,
67
+ b,
68
68
  null,
69
69
  [
70
70
  i(a.$slots, "inset", {}, void 0, !0),
71
71
  h(
72
72
  "div",
73
73
  {
74
- class: T(["ik-tree-main", { "auto-flow": e.autoFlow }])
74
+ class: C(["ik-tree-main", { "auto-flow": e.autoFlow }])
75
75
  },
76
76
  [
77
- e.showSearch ? (u(), V(g, {
77
+ e.showSearch ? (u(), T(g, {
78
78
  key: 0,
79
79
  modelValue: t.value,
80
80
  "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
@@ -83,7 +83,7 @@ const O = /* @__PURE__ */ m({
83
83
  placeholder: e.placeholder,
84
84
  clearable: "",
85
85
  "suffix-icon": f(M)
86
- }, null, 8, ["modelValue", "placeholder", "suffix-icon"])) : b("v-if", !0),
86
+ }, null, 8, ["modelValue", "placeholder", "suffix-icon"])) : V("v-if", !0),
87
87
  B(f(E), I({
88
88
  ref_key: "treeRef",
89
89
  ref: l,
@@ -121,7 +121,7 @@ const O = /* @__PURE__ */ m({
121
121
  for (const [t, l] of o)
122
122
  r[t] = l;
123
123
  return r;
124
- }, R = /* @__PURE__ */ P(O, [["__scopeId", "data-v-e9fdca57"]]), q = F(R);
124
+ }, R = /* @__PURE__ */ P(O, [["__scopeId", "data-v-b8ae6ec2"]]), q = F(R);
125
125
  export {
126
126
  q as IkTree,
127
127
  q as default
@@ -1 +1 @@
1
- .ik-tree-main[data-v-e9fdca57]{display:flex;flex-direction:column;height:100%}.ik-tree-main.auto-flow[data-v-e9fdca57]{margin:-20px}.ik-tree-main.auto-flow .ik-tree-search[data-v-e9fdca57]{padding:0 var(--5063aceb)}.ik-tree-main.auto-flow .ik-tree.el-tree[data-v-e9fdca57]{padding:0 var(--5063aceb);overflow:auto}.ik-tree-main .ik-tree-search[data-v-e9fdca57]{margin-bottom:8px}.ik-tree-main .ik-tree-search[data-v-e9fdca57] .el-input-group__append{padding:0}.ik-tree-main .ik-tree.el-tree[data-v-e9fdca57]{flex:1;color:var(--ik-header-menu-color)}.ik-tree-main .ik-tree.el-tree.auto-flow[data-v-e9fdca57]{margin-right:calc(var(--5063aceb) * -1);padding-right:var(--5063aceb)}.ik-tree-main .ik-tree.el-tree[data-v-e9fdca57] .el-tree-node.is-current.is-focusable>.el-tree-node__content{color:var(--el-color-primary)}.ik-tree-main .ik-tree.el-tree[data-v-e9fdca57] .el-tree-node.is-expanded.is-focusable>.el-tree-node__content{color:var(--ik-text-color)}.ik-tree-main .ik-tree.el-tree[data-v-e9fdca57] .el-tree-node.is-expanded.is-focusable .is-current>.el-tree-node__content{color:var(--ik-header-menu-active-color);background-color:var(--el-color-primary-light-9)}
1
+ .ik-tree-main[data-v-b8ae6ec2]{display:flex;flex-direction:column;height:100%}.ik-tree-main.auto-flow[data-v-b8ae6ec2]{margin:-20px}.ik-tree-main.auto-flow .ik-tree-search[data-v-b8ae6ec2]{padding:0 var(--3be8d276)}.ik-tree-main.auto-flow .ik-tree.el-tree[data-v-b8ae6ec2]{padding:0 var(--3be8d276);overflow:auto}.ik-tree-main .ik-tree-search[data-v-b8ae6ec2]{margin-bottom:8px}.ik-tree-main .ik-tree-search[data-v-b8ae6ec2] .el-input-group__append{padding:0}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2]{flex:1;color:var(--ik-color-font-normal)}.ik-tree-main .ik-tree.el-tree.auto-flow[data-v-b8ae6ec2]{margin-right:calc(var(--3be8d276) * -1);padding-right:var(--3be8d276)}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2] .el-tree-node.is-current.is-focusable>.el-tree-node__content{color:var(--el-color-primary)}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2] .el-tree-node.is-expanded.is-focusable:not(.is-current)>.el-tree-node__content{color:var(--ik-text-color)}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2] .el-tree-node.is-expanded.is-focusable:not(.is-current) .is-current>.el-tree-node__content{color:var(--ik-header-menu-active-color);background-color:var(--el-color-primary-light-9)}