ik-next-ui 0.0.11 → 0.0.13

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 (59) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +90 -90
  2. package/dist/IkApprovalProcessDetail/ik.index.es.js +4387 -4209
  3. package/dist/IkAvatar/ik.index.es.js +140 -0
  4. package/dist/IkBaseDialog/ik.index.es.js +28 -28
  5. package/dist/IkCollapseCard/ik.index.es.js +11 -11
  6. package/dist/IkDescription/ik.index.es.js +4004 -3826
  7. package/dist/IkDetailPreviewFiles/ik.index.es.js +4060 -3882
  8. package/dist/IkIconPicker/ik.index.es.js +13 -13
  9. package/dist/IkImage/ik-next-ui.css +1 -0
  10. package/dist/IkImage/ik.index.es.js +173 -0
  11. package/dist/IkImageUploadEditor/ik.index.es.js +1416 -1436
  12. package/dist/IkMonacoEditor/ik.index.es.js +1 -1
  13. package/dist/IkPickerUser/ik.index.es.js +55 -55
  14. package/dist/IkPlayer/ik.index.es.js +1316 -1138
  15. package/dist/IkPreviewFile/ik.index.es.js +4307 -4129
  16. package/dist/IkPreviewFileDialog/ik.index.es.js +4107 -3929
  17. package/dist/IkRadioGroup/ik.index.es.js +24 -24
  18. package/dist/IkSideText/ik-next-ui.css +1 -1
  19. package/dist/IkSideText/ik.index.es.js +208 -142
  20. package/dist/IkSvgIcon/ik.index.es.js +10 -10
  21. package/dist/IkUploadFile/ik.index.es.js +4947 -4769
  22. package/dist/IkUploadImage/ik-next-ui.css +1 -1
  23. package/dist/IkUploadImage/ik.index.es.js +32 -31
  24. package/dist/IkVerticalStepBar/ik.index.es.js +15 -15
  25. package/dist/Provider/ik.index.es.js +1 -1
  26. package/dist/build/version.json.d.ts +5 -0
  27. package/dist/ik-next-ui.css +2 -2
  28. package/dist/index.es.js +28408 -28098
  29. package/dist/index.umd.js +133 -132
  30. package/dist/src/components/IkAvatar/index.d.ts +56 -0
  31. package/dist/src/components/IkAvatar/src/index.vue.d.ts +49 -0
  32. package/dist/src/components/IkBtnContent/index.d.ts +34 -0
  33. package/dist/src/components/IkBtnContent/src/index.d.ts +36 -0
  34. package/dist/src/components/IkDragList/index.d.ts +3 -3
  35. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
  36. package/dist/src/components/IkImage/index.d.ts +107 -0
  37. package/dist/src/components/IkImage/src/index.vue.d.ts +98 -0
  38. package/dist/src/components/IkMonacoEditor/index.d.ts +2 -2
  39. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +2 -2
  40. package/dist/src/components/IkPickerUser/index.d.ts +1 -1
  41. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
  42. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
  43. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
  44. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
  45. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +10 -1
  46. package/dist/src/components/IkSideText/index.d.ts +10 -1
  47. package/dist/src/components/IkSvgIcon/index.d.ts +2 -2
  48. package/dist/src/components/IkTooltip/index.d.ts +3 -3
  49. package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
  50. package/dist/src/components/IkTree/IkTree.vue.d.ts +2123 -63
  51. package/dist/src/components/IkTree/index.d.ts +6481 -301
  52. package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +2 -2
  53. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  54. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  55. package/dist/src/components/index.d.ts +2 -0
  56. package/dist/src/iking-ui/version.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/dist/src/components/package.json.d.ts +0 -33
  59. package/dist/src/components-dev/IkUmoEditor/index.d.ts +0 -322
@@ -0,0 +1,140 @@
1
+ import { inject as f, computed as n, defineComponent as h, ref as U, resolveComponent as v, openBlock as x, createElementBlock as k, Fragment as w, createVNode as y, normalizeStyle as C, withCtx as b, createElementVNode as z, toDisplayString as j, createBlock as A, createCommentVNode as I } from "vue";
2
+ const _ = (e, t) => (e.install = (o) => {
3
+ for (const l of [e, ...Object.values({})])
4
+ o.component(l.name, l);
5
+ }, e), E = (e, t) => {
6
+ if (!t) return "";
7
+ const o = /fileUrl=[^&]*fileUrl=/;
8
+ return t.startsWith("http") ? t.replace(o, "fileUrl=") : `${e || location.origin}${t}`.replace(o, "fileUrl=");
9
+ }, g = [
10
+ "csv",
11
+ "djvu",
12
+ "doc",
13
+ "docm",
14
+ "docx",
15
+ "docxf",
16
+ "dot",
17
+ "dotm",
18
+ "dotx",
19
+ "epub",
20
+ "fb2",
21
+ "fodp",
22
+ "fods",
23
+ "fodt",
24
+ "htm",
25
+ "html",
26
+ "mht",
27
+ "odp",
28
+ "ods",
29
+ "odt",
30
+ "oform",
31
+ "otp",
32
+ "ots",
33
+ "ott",
34
+ "oxps",
35
+ "pdf",
36
+ "pot",
37
+ "potm",
38
+ "potx",
39
+ "pps",
40
+ "ppsm",
41
+ "ppsx",
42
+ "ppt",
43
+ "pptm",
44
+ "pptx",
45
+ "rtf",
46
+ "txt",
47
+ "xls",
48
+ "xlsb",
49
+ "xlsm",
50
+ "xlsx",
51
+ "xlt",
52
+ "xltm",
53
+ "xltx",
54
+ "xml",
55
+ "xps",
56
+ "png",
57
+ "jpeg",
58
+ "jpg",
59
+ "webp",
60
+ "video",
61
+ "mp4",
62
+ "flv",
63
+ "tls"
64
+ ], B = (e) => {
65
+ const t = f("loadUrl"), o = n(() => e.loadUrl || e.fileUrl || (t == null ? void 0 : t.value)), l = f("uploadUrl"), u = n(() => e.action || e.uploadUrl || (l == null ? void 0 : l.value)), c = f("token"), r = n(() => e.token || (c == null ? void 0 : c.value)), a = f("onlyofficeConfig"), i = n(() => e.onlyofficeConfig || (a == null ? void 0 : a.value)), s = f("userInfo"), m = n(() => e.userInfo || (s == null ? void 0 : s.value)), d = [...g, ...g.map((p) => p.toLocaleUpperCase())];
66
+ return {
67
+ cLoadUrl: o,
68
+ cUploadUrl: u,
69
+ cToken: r,
70
+ cOnlyofficeConfig: i,
71
+ cUserInfo: m,
72
+ cOnlyofficePreviewType: d,
73
+ cHeaders: {
74
+ Authorization: r.value
75
+ }
76
+ };
77
+ }, L = { class: "text-sm text-white bg-[var(--el-avatar-bg-color)] flex-center h-full w-full" }, N = /* @__PURE__ */ h({
78
+ name: "IkAvatar",
79
+ __name: "index",
80
+ props: {
81
+ src: {},
82
+ name: {},
83
+ size: { default: 40 },
84
+ shape: { default: "circle" },
85
+ fit: { default: "fill" },
86
+ alt: {},
87
+ loadUrl: {}
88
+ },
89
+ setup(e) {
90
+ const t = e, o = n(() => {
91
+ var i;
92
+ return ((i = t.name) == null ? void 0 : i.slice(-1)) || "";
93
+ }), { cLoadUrl: l } = B(t), u = n(() => E(l.value, t.src || "")), c = n(() => t.src ? [u.value] : []), r = U(!1);
94
+ function a() {
95
+ t.src && (r.value = !0);
96
+ }
97
+ return (i, s) => {
98
+ const m = v("ElAvatar"), d = v("el-image-viewer");
99
+ return x(), k(
100
+ w,
101
+ null,
102
+ [
103
+ y(m, {
104
+ src: e.src,
105
+ size: e.size,
106
+ shape: e.shape,
107
+ fit: e.fit,
108
+ style: C({ "--el-avatar-bg-color": u.value ? "var(--ik-form-bg)" : "var(--ik-color-primary)" }),
109
+ onClick: a
110
+ }, {
111
+ default: b(() => [
112
+ z(
113
+ "span",
114
+ L,
115
+ j(o.value),
116
+ 1
117
+ /* TEXT */
118
+ )
119
+ ]),
120
+ _: 1
121
+ /* STABLE */
122
+ }, 8, ["src", "size", "shape", "fit", "style"]),
123
+ r.value ? (x(), A(d, {
124
+ key: 0,
125
+ "url-list": c.value,
126
+ "show-progress": "",
127
+ teleported: "",
128
+ onClose: s[0] || (s[0] = (p) => r.value = !1)
129
+ }, null, 8, ["url-list"])) : I("v-if", !0)
130
+ ],
131
+ 64
132
+ /* STABLE_FRAGMENT */
133
+ );
134
+ };
135
+ }
136
+ }), V = _(N);
137
+ export {
138
+ V as IkAvatar,
139
+ V as default
140
+ };
@@ -1,18 +1,18 @@
1
- import { defineComponent as B, computed as k, resolveComponent as V, openBlock as s, createElementBlock as c, normalizeStyle as v, normalizeClass as z, unref as f, createBlock as h, withCtx as d, createElementVNode as u, createCommentVNode as $, Fragment as H, createVNode as W, useModel as A, ref as E, h as P, mergeProps as U, createSlots as q, renderSlot as p, createTextVNode as x, toDisplayString as I, mergeModels as G } from "vue";
1
+ import { defineComponent as B, computed as k, resolveComponent as V, openBlock as s, createElementBlock as c, normalizeStyle as v, normalizeClass as z, unref as f, createBlock as h, withCtx as d, createElementVNode as u, createCommentVNode as $, Fragment as A, createVNode as H, useModel as W, ref as E, h as P, mergeProps as U, createSlots as q, renderSlot as w, createTextVNode as x, toDisplayString as I, mergeModels as G } from "vue";
2
2
  import { Icon as S } from "@iconify/vue";
3
3
  import { UseImage as M } from "@vueuse/components";
4
- const T = (o, t) => (o.install = (e) => {
4
+ const j = (o, t) => (o.install = (e) => {
5
5
  for (const a of [o, ...Object.values({})])
6
6
  e.component(a.name, a);
7
7
  }, o);
8
- function j(...o) {
8
+ function T(...o) {
9
9
  const t = [];
10
10
  for (const e of o)
11
11
  if (e) {
12
12
  if (typeof e == "string")
13
13
  t.push(e);
14
14
  else if (Array.isArray(e)) {
15
- const a = j(...e);
15
+ const a = T(...e);
16
16
  a && t.push(a);
17
17
  } else if (typeof e == "object")
18
18
  for (const [a, r] of Object.entries(e))
@@ -34,7 +34,7 @@ const F = (o, t) => {
34
34
  __name: "index",
35
35
  props: {
36
36
  name: {},
37
- class: {},
37
+ class: { type: [Boolean, null, String, Object, Array] },
38
38
  showBg: { type: Boolean, default: !1 },
39
39
  disabled: { type: Boolean, default: !1 },
40
40
  size: {},
@@ -79,10 +79,10 @@ const F = (o, t) => {
79
79
  height: i
80
80
  };
81
81
  });
82
- function D(l) {
82
+ function O(l) {
83
83
  e.onClick ? e.onClick(l) : a("click", l);
84
84
  }
85
- const w = k(() => {
85
+ const p = k(() => {
86
86
  if (n.value !== "two-color-svg")
87
87
  return {};
88
88
  const l = {};
@@ -103,12 +103,12 @@ const F = (o, t) => {
103
103
  return e.active && r.value !== "default" && !e.deepColor && !e.shallowColor && e.colorMode === "auto" && (l["--ik-icon-deep-color"] = `var(--ik-icon-${r.value}-deep-active)`, l["--ik-icon-shallow-color"] = `var(--ik-icon-${r.value}-shallow-active)`), l;
104
104
  });
105
105
  return (l, i) => {
106
- var C;
107
- const O = V("IkTooltip");
106
+ var b;
107
+ const D = V("IkTooltip");
108
108
  return s(), c(
109
109
  "i",
110
110
  {
111
- class: z(f(j)(
111
+ class: z(f(T)(
112
112
  "ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
113
113
  e.class,
114
114
  o.showBg ? "bg" : "",
@@ -119,22 +119,22 @@ const F = (o, t) => {
119
119
  o.hover ? "is-hover" : ""
120
120
  )),
121
121
  style: v(o.showBg ? N.value : m.value),
122
- onClick: D
122
+ onClick: O
123
123
  },
124
124
  [
125
- o.title ? (s(), h(O, {
125
+ o.title ? (s(), h(D, {
126
126
  key: 0,
127
127
  text: o.title
128
128
  }, {
129
129
  default: d(() => {
130
- var b;
130
+ var C;
131
131
  return [
132
132
  n.value === "unocss" ? (s(), c(
133
133
  "i",
134
134
  {
135
135
  key: 0,
136
- class: z(["iconfont shrink-0 size-inherit", `${o.name} ${(b = o.name) == null ? void 0 : b.split("_")[0]}`]),
137
- style: v({ ...w.value, ...o.showBg ? m.value : {} })
136
+ class: z(["iconfont shrink-0 size-inherit", `${o.name} ${(C = o.name) == null ? void 0 : C.split("_")[0]}`]),
137
+ style: v({ ...p.value, ...o.showBg ? m.value : {} })
138
138
  },
139
139
  null,
140
140
  6
@@ -152,7 +152,7 @@ const F = (o, t) => {
152
152
  {
153
153
  key: 3,
154
154
  class: "two-color-icon shrink-0 size-inherit",
155
- style: v(w.value),
155
+ style: v(p.value),
156
156
  "aria-hidden": "true"
157
157
  },
158
158
  [
@@ -193,15 +193,15 @@ const F = (o, t) => {
193
193
  _: 1
194
194
  /* STABLE */
195
195
  }, 8, ["text"])) : (s(), c(
196
- H,
196
+ A,
197
197
  { key: 1 },
198
198
  [
199
199
  n.value === "unocss" ? (s(), c(
200
200
  "i",
201
201
  {
202
202
  key: 0,
203
- class: z(["iconfont shrink-0 size-inherit", `${o.name} ${(C = o.name) == null ? void 0 : C.split("_")[0]}`]),
204
- style: v({ ...w.value, ...o.showBg ? m.value : {} })
203
+ class: z(["iconfont shrink-0 size-inherit", `${o.name} ${(b = o.name) == null ? void 0 : b.split("_")[0]}`]),
204
+ style: v({ ...p.value, ...o.showBg ? m.value : {} })
205
205
  },
206
206
  null,
207
207
  6
@@ -224,7 +224,7 @@ const F = (o, t) => {
224
224
  {
225
225
  key: 3,
226
226
  class: "two-color-icon shrink-0 size-inherit",
227
- style: v(w.value),
227
+ style: v(p.value),
228
228
  "aria-hidden": "true"
229
229
  },
230
230
  [
@@ -270,7 +270,7 @@ const F = (o, t) => {
270
270
  );
271
271
  };
272
272
  }
273
- }), Z = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-7dee8b6e"]]), _ = T(Z), ee = /* @__PURE__ */ B({
273
+ }), Z = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-7dee8b6e"]]), _ = j(Z), ee = /* @__PURE__ */ B({
274
274
  __name: "CloseIcon",
275
275
  props: {
276
276
  showBg: {
@@ -289,7 +289,7 @@ const F = (o, t) => {
289
289
  class: z({ "exit-main-page-maximize": o.showBg && o.fullscreen })
290
290
  },
291
291
  [
292
- W(f(_), {
292
+ H(f(_), {
293
293
  name: "iksvg_guanbidanchuang",
294
294
  danger: "",
295
295
  title: "关闭",
@@ -322,7 +322,7 @@ const F = (o, t) => {
322
322
  }),
323
323
  emits: ["update:modelValue"],
324
324
  setup(o) {
325
- const t = o, e = A(o, "modelValue"), a = E(t.fullscreen), r = B({
325
+ const t = o, e = W(o, "modelValue"), a = E(t.fullscreen), r = B({
326
326
  setup() {
327
327
  return () => P(oe, {
328
328
  showBg: t.showCloseBg,
@@ -344,7 +344,7 @@ const F = (o, t) => {
344
344
  "modal-class": "baseDialog"
345
345
  }), q({
346
346
  icon: d(() => [
347
- p(n.$slots, "title", {}, () => [
347
+ w(n.$slots, "title", {}, () => [
348
348
  x(
349
349
  I(o.title),
350
350
  1
@@ -354,7 +354,7 @@ const F = (o, t) => {
354
354
  ]),
355
355
  header: d(() => [
356
356
  u("div", le, [
357
- p(n.$slots, "header", {}, () => [
357
+ w(n.$slots, "header", {}, () => [
358
358
  x(
359
359
  I(o.title),
360
360
  1
@@ -364,7 +364,7 @@ const F = (o, t) => {
364
364
  ])
365
365
  ]),
366
366
  default: d(() => [
367
- p(n.$slots, "default")
367
+ w(n.$slots, "default")
368
368
  ]),
369
369
  _: 2
370
370
  /* DYNAMIC */
@@ -372,14 +372,14 @@ const F = (o, t) => {
372
372
  n.$slots.footer ? {
373
373
  name: "footer",
374
374
  fn: d(() => [
375
- p(n.$slots, "footer")
375
+ w(n.$slots, "footer")
376
376
  ]),
377
377
  key: "0"
378
378
  } : void 0
379
379
  ]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
380
380
  };
381
381
  }
382
- }), ae = T(ie);
382
+ }), ae = j(ie);
383
383
  export {
384
384
  ae as IkBaseDialog,
385
385
  ae as default
@@ -1,18 +1,18 @@
1
- import { defineComponent as M, computed as v, resolveComponent as b, openBlock as s, createElementBlock as u, normalizeStyle as m, normalizeClass as g, unref as h, createBlock as f, withCtx as d, createElementVNode as c, createCommentVNode as k, Fragment as A, useModel as E, renderSlot as C, toDisplayString as B, createTextVNode as F, createVNode as q, mergeModels as D } from "vue";
1
+ import { defineComponent as M, computed as v, resolveComponent as b, openBlock as s, createElementBlock as u, normalizeStyle as m, normalizeClass as g, unref as h, createBlock as f, withCtx as d, createElementVNode as c, createCommentVNode as k, Fragment as W, useModel as E, renderSlot as C, toDisplayString as B, createTextVNode as F, createVNode as q, mergeModels as D } from "vue";
2
2
  import { Icon as I } from "@iconify/vue";
3
3
  import { UseImage as S } from "@vueuse/components";
4
- const T = (o, n) => (o.install = (e) => {
4
+ const j = (o, n) => (o.install = (e) => {
5
5
  for (const t of [o, ...Object.values({})])
6
6
  e.component(t.name, t);
7
7
  }, o);
8
- function j(...o) {
8
+ function T(...o) {
9
9
  const n = [];
10
10
  for (const e of o)
11
11
  if (e) {
12
12
  if (typeof e == "string")
13
13
  n.push(e);
14
14
  else if (Array.isArray(e)) {
15
- const t = j(...e);
15
+ const t = T(...e);
16
16
  t && n.push(t);
17
17
  } else if (typeof e == "object")
18
18
  for (const [t, r] of Object.entries(e))
@@ -34,7 +34,7 @@ const V = (o, n) => {
34
34
  __name: "index",
35
35
  props: {
36
36
  name: {},
37
- class: {},
37
+ class: { type: [Boolean, null, String, Object, Array] },
38
38
  showBg: { type: Boolean, default: !1 },
39
39
  disabled: { type: Boolean, default: !1 },
40
40
  size: {},
@@ -104,11 +104,11 @@ const V = (o, n) => {
104
104
  });
105
105
  return (l, i) => {
106
106
  var x;
107
- const W = b("IkTooltip");
107
+ const A = b("IkTooltip");
108
108
  return s(), u(
109
109
  "i",
110
110
  {
111
- class: g(h(j)(
111
+ class: g(h(T)(
112
112
  "ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
113
113
  e.class,
114
114
  o.showBg ? "bg" : "",
@@ -122,7 +122,7 @@ const V = (o, n) => {
122
122
  onClick: O
123
123
  },
124
124
  [
125
- o.title ? (s(), f(W, {
125
+ o.title ? (s(), f(A, {
126
126
  key: 0,
127
127
  text: o.title
128
128
  }, {
@@ -193,7 +193,7 @@ const V = (o, n) => {
193
193
  _: 1
194
194
  /* STABLE */
195
195
  }, 8, ["text"])) : (s(), u(
196
- A,
196
+ W,
197
197
  { key: 1 },
198
198
  [
199
199
  a.value === "unocss" ? (s(), u(
@@ -270,7 +270,7 @@ const V = (o, n) => {
270
270
  );
271
271
  };
272
272
  }
273
- }), Q = /* @__PURE__ */ V(L, [["__scopeId", "data-v-7dee8b6e"]]), R = T(Q), X = { class: "align-center flex justify-between" }, Y = { class: "align-center flex" }, Z = { style: { overflow: "hidden" } }, _ = /* @__PURE__ */ M({
273
+ }), Q = /* @__PURE__ */ V(L, [["__scopeId", "data-v-7dee8b6e"]]), R = j(Q), X = { class: "align-center flex justify-between" }, Y = { class: "align-center flex" }, Z = { style: { overflow: "hidden" } }, _ = /* @__PURE__ */ M({
274
274
  __name: "index",
275
275
  props: /* @__PURE__ */ D({
276
276
  showToggle: {
@@ -349,7 +349,7 @@ const V = (o, n) => {
349
349
  }, 8, ["class"]);
350
350
  };
351
351
  }
352
- }), ee = /* @__PURE__ */ V(_, [["__scopeId", "data-v-7eb693b4"]]), ne = T(ee);
352
+ }), ee = /* @__PURE__ */ V(_, [["__scopeId", "data-v-7eb693b4"]]), ne = j(ee);
353
353
  export {
354
354
  ne as IkCollapseCard,
355
355
  ne as default