ik-next-ui 0.0.7 → 0.0.8

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.
@@ -1,5 +1,5 @@
1
- import { inject as z, computed as d, defineComponent as I, resolveComponent as N, openBlock as s, createElementBlock as f, normalizeStyle as v, normalizeClass as C, unref as k, createBlock as h, withCtx as x, createElementVNode as c, createCommentVNode as b, Fragment as M, useCssVars as V, ref as W, createTextVNode as F, toDisplayString as $ } from "vue";
2
- import { ikColor as P } from "iking-utils-pro";
1
+ import { inject as z, computed as d, defineComponent as I, resolveComponent as N, openBlock as s, createElementBlock as f, normalizeStyle as v, normalizeClass as C, unref as k, createBlock as h, withCtx as b, createElementVNode as c, createCommentVNode as w, Fragment as M, useCssVars as V, ref as W, createTextVNode as A, toDisplayString as $ } from "vue";
2
+ import { ikColor as F } from "iking-utils-pro";
3
3
  import { Icon as U } from "@iconify/vue";
4
4
  import { UseImage as j } from "@vueuse/components";
5
5
  const O = (e, i) => (e.install = (t) => {
@@ -81,21 +81,24 @@ const S = (e, i) => {
81
81
  "mp4",
82
82
  "flv",
83
83
  "tls"
84
- ], A = (e) => {
85
- const i = z("loadUrl"), t = d(() => e.loadUrl || e.fileUrl || (i == null ? void 0 : i.value)), n = z("uploadUrl"), r = d(() => e.action || e.uploadUrl || (n == null ? void 0 : n.value)), l = z("token"), w = d(() => e.token || (l == null ? void 0 : l.value)), u = z("onlyofficeConfig"), g = d(() => e.onlyofficeConfig || (u == null ? void 0 : u.value)), m = z("userInfo"), y = d(() => e.userInfo || (m == null ? void 0 : m.value)), p = [...L, ...L.map((o) => o.toLocaleUpperCase())];
84
+ ], P = (e) => {
85
+ const i = z("loadUrl"), t = d(() => e.loadUrl || e.fileUrl || (i == null ? void 0 : i.value)), n = z("uploadUrl"), r = d(() => e.action || e.uploadUrl || (n == null ? void 0 : n.value)), l = z("token"), g = d(() => e.token || (l == null ? void 0 : l.value)), u = z("onlyofficeConfig"), y = d(() => e.onlyofficeConfig || (u == null ? void 0 : u.value)), m = z("userInfo"), p = d(() => e.userInfo || (m == null ? void 0 : m.value)), x = [...L, ...L.map((o) => o.toLocaleUpperCase())];
86
86
  return {
87
87
  cLoadUrl: t,
88
88
  cUploadUrl: r,
89
- cToken: w,
90
- cOnlyofficeConfig: g,
91
- cUserInfo: y,
92
- cOnlyofficePreviewType: p
89
+ cToken: g,
90
+ cOnlyofficeConfig: y,
91
+ cUserInfo: p,
92
+ cOnlyofficePreviewType: x,
93
+ cHeaders: {
94
+ Authorization: g.value
95
+ }
93
96
  };
94
97
  }, q = {
95
98
  key: 2,
96
99
  class: "shrink-0 size-inherit",
97
100
  "aria-hidden": "true"
98
- }, D = ["xlink:href"], R = ["xlink:href"], H = ["size"], J = ["xlink:href"], K = ["xlink:href"], Q = /* @__PURE__ */ I({
101
+ }, D = ["xlink:href"], H = ["xlink:href"], R = ["size"], J = ["xlink:href"], K = ["xlink:href"], Q = /* @__PURE__ */ I({
99
102
  name: "IkSvgIcon",
100
103
  __name: "index",
101
104
  props: {
@@ -123,15 +126,15 @@ const S = (e, i) => {
123
126
  return;
124
127
  const o = (a) => /^\.{1,2}\//.test(a) || a.startsWith("/") || a.includes("/");
125
128
  return /^https?:\/\//.test(t.name) || o(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
126
- }), w = {
129
+ }), g = {
127
130
  big: 24,
128
131
  default: 22,
129
132
  small: 20
130
133
  };
131
134
  function u() {
132
- return t.size ? w[t.size] || t.size : 18;
135
+ return t.size ? g[t.size] || t.size : 18;
133
136
  }
134
- const g = d(() => {
137
+ const y = d(() => {
135
138
  const o = u(), a = typeof o == "number" ? `${o}px` : o;
136
139
  return {
137
140
  width: a,
@@ -145,10 +148,10 @@ const S = (e, i) => {
145
148
  height: a
146
149
  };
147
150
  });
148
- function y(o) {
151
+ function p(o) {
149
152
  t.onClick ? t.onClick(o) : n("click", o);
150
153
  }
151
- const p = d(() => {
154
+ const x = d(() => {
152
155
  if (l.value !== "two-color-svg")
153
156
  return {};
154
157
  const o = {};
@@ -184,15 +187,15 @@ const S = (e, i) => {
184
187
  e.unMargin ? "un-margin" : "margin",
185
188
  e.hover ? "is-hover" : ""
186
189
  )),
187
- style: v(e.showBg ? m.value : g.value),
188
- onClick: y
190
+ style: v(e.showBg ? m.value : y.value),
191
+ onClick: p
189
192
  },
190
193
  [
191
194
  e.title ? (s(), h(G, {
192
195
  key: 0,
193
196
  text: e.title
194
197
  }, {
195
- default: x(() => {
198
+ default: b(() => {
196
199
  var T;
197
200
  return [
198
201
  l.value === "unocss" ? (s(), f(
@@ -200,7 +203,7 @@ const S = (e, i) => {
200
203
  {
201
204
  key: 0,
202
205
  class: C(["iconfont shrink-0 size-inherit", `${e.name} ${(T = e.name) == null ? void 0 : T.split("_")[0]}`]),
203
- style: v({ ...p.value, ...e.showBg ? g.value : {} })
206
+ style: v({ ...x.value, ...e.showBg ? y.value : {} })
204
207
  },
205
208
  null,
206
209
  6
@@ -218,13 +221,13 @@ const S = (e, i) => {
218
221
  {
219
222
  key: 3,
220
223
  class: "two-color-icon shrink-0 size-inherit",
221
- style: v(p.value),
224
+ style: v(x.value),
222
225
  "aria-hidden": "true"
223
226
  },
224
227
  [
225
228
  c("use", {
226
229
  "xlink:href": `#${e.name}`
227
- }, null, 8, R)
230
+ }, null, 8, H)
228
231
  ],
229
232
  4
230
233
  /* STYLE */
@@ -233,7 +236,7 @@ const S = (e, i) => {
233
236
  src: e.name,
234
237
  class: "shrink-0"
235
238
  }, {
236
- loading: x(() => [...a[0] || (a[0] = [
239
+ loading: b(() => [...a[0] || (a[0] = [
237
240
  c(
238
241
  "i",
239
242
  { class: "i-line-md:loading-loop size-inherit" },
@@ -242,7 +245,7 @@ const S = (e, i) => {
242
245
  /* CACHED */
243
246
  )
244
247
  ])]),
245
- error: x(() => [...a[1] || (a[1] = [
248
+ error: b(() => [...a[1] || (a[1] = [
246
249
  c(
247
250
  "i",
248
251
  { class: "i-ph:image-broken-duotone size-inherit" },
@@ -253,7 +256,7 @@ const S = (e, i) => {
253
256
  ])]),
254
257
  _: 1
255
258
  /* STABLE */
256
- }, 8, ["src"])) : b("v-if", !0)
259
+ }, 8, ["src"])) : w("v-if", !0)
257
260
  ];
258
261
  }),
259
262
  _: 1
@@ -267,7 +270,7 @@ const S = (e, i) => {
267
270
  {
268
271
  key: 0,
269
272
  class: C(["iconfont shrink-0 size-inherit", `${e.name} ${(B = e.name) == null ? void 0 : B.split("_")[0]}`]),
270
- style: v({ ...p.value, ...e.showBg ? g.value : {} })
273
+ style: v({ ...x.value, ...e.showBg ? y.value : {} })
271
274
  },
272
275
  null,
273
276
  6
@@ -285,12 +288,12 @@ const S = (e, i) => {
285
288
  c("use", {
286
289
  "xlink:href": `#icon-${e.name}`
287
290
  }, null, 8, J)
288
- ], 8, H)) : l.value === "two-color-svg" ? (s(), f(
291
+ ], 8, R)) : l.value === "two-color-svg" ? (s(), f(
289
292
  "svg",
290
293
  {
291
294
  key: 3,
292
295
  class: "two-color-icon shrink-0 size-inherit",
293
- style: v(p.value),
296
+ style: v(x.value),
294
297
  "aria-hidden": "true"
295
298
  },
296
299
  [
@@ -305,7 +308,7 @@ const S = (e, i) => {
305
308
  src: e.name,
306
309
  class: "shrink-0"
307
310
  }, {
308
- loading: x(() => [...a[2] || (a[2] = [
311
+ loading: b(() => [...a[2] || (a[2] = [
309
312
  c(
310
313
  "i",
311
314
  { class: "i-line-md:loading-loop size-inherit" },
@@ -314,7 +317,7 @@ const S = (e, i) => {
314
317
  /* CACHED */
315
318
  )
316
319
  ])]),
317
- error: x(() => [...a[3] || (a[3] = [
320
+ error: b(() => [...a[3] || (a[3] = [
318
321
  c(
319
322
  "i",
320
323
  { class: "i-ph:image-broken-duotone size-inherit" },
@@ -325,7 +328,7 @@ const S = (e, i) => {
325
328
  ])]),
326
329
  _: 1
327
330
  /* STABLE */
328
- }, 8, ["src"])) : b("v-if", !0)
331
+ }, 8, ["src"])) : w("v-if", !0)
329
332
  ],
330
333
  64
331
334
  /* STABLE_FRAGMENT */
@@ -338,7 +341,7 @@ const S = (e, i) => {
338
341
  }
339
342
  }), X = /* @__PURE__ */ S(Q, [["__scopeId", "data-v-701f2359"]]), Y = O(X), Z = () => ({
340
343
  getLinearGradient: (i) => {
341
- const t = P.hexToRGB(i).replace(/[^\d,]/g, "").split(",").map(Number);
344
+ const t = F.hexToRGB(i).replace(/[^\d,]/g, "").split(",").map(Number);
342
345
  return `linear-gradient(to top, ${i} 4%, rgb(${t[0]},${t[1] + 50},${t[2]}) 88%)`;
343
346
  }
344
347
  }), _ = /* @__PURE__ */ I({
@@ -441,11 +444,11 @@ const S = (e, i) => {
441
444
  }
442
445
  },
443
446
  setup(e) {
444
- const i = e, { cLoadUrl: t } = A(i), n = (u) => u ? u.startsWith("http") ? u : `${t.value}${u}` : "", r = d(() => n(i.avatar)), l = W(!!i.avatar), w = () => {
447
+ const i = e, { cLoadUrl: t } = P(i), n = (u) => u ? u.startsWith("http") ? u : `${t.value}${u}` : "", r = d(() => n(i.avatar)), l = W(!!i.avatar), g = () => {
445
448
  l.value = !1;
446
449
  };
447
- return (u, g) => {
448
- var y;
450
+ return (u, y) => {
451
+ var p;
449
452
  const m = N("el-avatar");
450
453
  return s(), f("div", te, [
451
454
  c("div", oe, [
@@ -456,14 +459,14 @@ const S = (e, i) => {
456
459
  shape: e.shape,
457
460
  src: r.value,
458
461
  fit: "contain",
459
- onError: w
462
+ onError: g
460
463
  }, {
461
- default: x(() => [
462
- l.value ? b("v-if", !0) : (s(), f(
464
+ default: b(() => [
465
+ l.value ? w("v-if", !0) : (s(), f(
463
466
  M,
464
467
  { key: 0 },
465
468
  [
466
- F(
469
+ A(
467
470
  $(e.name.slice(-2)),
468
471
  1
469
472
  /* TEXT */
@@ -475,20 +478,20 @@ const S = (e, i) => {
475
478
  ]),
476
479
  _: 1
477
480
  /* STABLE */
478
- }, 8, ["style", "size", "shape", "src"])) : b("v-if", !0),
481
+ }, 8, ["style", "size", "shape", "src"])) : w("v-if", !0),
479
482
  e.avatarType === "icon" ? (s(), h(k(Y), {
480
483
  key: 1,
481
- name: `iksvg_${(y = e.avatar) == null ? void 0 : y.replace("iksvg_", "")}`,
484
+ name: `iksvg_${(p = e.avatar) == null ? void 0 : p.replace("iksvg_", "")}`,
482
485
  "show-bg": e.showIconBg,
483
486
  type: e.iconType,
484
487
  style: v({ fontSize: e.showIconBg ? "34px" : "40px" }),
485
488
  size: e.iconSize
486
- }, null, 8, ["name", "show-bg", "type", "style", "size"])) : b("v-if", !0),
489
+ }, null, 8, ["name", "show-bg", "type", "style", "size"])) : w("v-if", !0),
487
490
  e.avatarType === "linearIcon" ? (s(), h(ee, {
488
491
  key: 2,
489
492
  icon: e.avatar,
490
493
  "background-color": e.iconBackgroundColor
491
- }, null, 8, ["icon", "background-color"])) : b("v-if", !0)
494
+ }, null, 8, ["icon", "background-color"])) : w("v-if", !0)
492
495
  ]),
493
496
  c("div", ie, [
494
497
  c(
@@ -1 +1 @@
1
- :deep(.tox-tinymce){max-height:var(--b388792c);border-radius:4px}.tox-tinymce-aux{z-index:99999!important}.el-message{z-index:999999!important}.tox-fullscreen{z-index:2000!important}.tox-menu{z-index:99999!important}
1
+ :deep(.tox-tinymce){max-height:var(--v483f3b01);border-radius:4px}.tox-tinymce-aux{z-index:99999!important}.el-message{z-index:999999!important}.tox-fullscreen{z-index:2000!important}.tox-menu{z-index:99999!important}