ik-next-ui 0.0.12 → 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.
@@ -1,8 +1,8 @@
1
- import { inject as z, computed as c, defineComponent as I, resolveComponent as S, openBlock as a, createElementBlock as f, normalizeStyle as k, normalizeClass as $, unref as p, createBlock as g, withCtx as x, createElementVNode as d, createCommentVNode as w, Fragment as B, ref as E, createVNode as F, toDisplayString as C, useCssVars as G, createTextVNode as P } from "vue";
1
+ import { inject as z, computed as c, defineComponent as I, resolveComponent as S, openBlock as a, createElementBlock as d, normalizeStyle as k, normalizeClass as C, unref as p, createBlock as g, withCtx as x, createElementVNode as f, createCommentVNode as w, Fragment as B, ref as E, createVNode as F, toDisplayString as $, useCssVars as G, createTextVNode as P } from "vue";
2
2
  import { ikColor as R } from "iking-utils-pro";
3
3
  import { Icon as N } from "@iconify/vue";
4
4
  import { UseImage as A } from "@vueuse/components";
5
- const T = (e, o) => (e.install = (t) => {
5
+ const U = (e, o) => (e.install = (t) => {
6
6
  for (const l of [e, ...Object.values({})])
7
7
  t.component(l.name, l);
8
8
  }, e);
@@ -21,15 +21,15 @@ function O(...e) {
21
21
  }
22
22
  return o.join(" ");
23
23
  }
24
- const U = (e, o) => {
24
+ const T = (e, o) => {
25
25
  const t = e.__vccOpts || e;
26
26
  for (const [l, s] of o)
27
27
  t[l] = s;
28
28
  return t;
29
29
  }, q = (e, o) => {
30
30
  if (!o) return "";
31
- const t = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
32
- return o.startsWith("http") ? o.replace(t, "$1$2") : `${e || location.origin}${o}`.replace(t, "$1$2");
31
+ const t = /fileUrl=[^&]*fileUrl=/;
32
+ return o.startsWith("http") ? o.replace(t, "fileUrl=") : `${e || location.origin}${o}`.replace(t, "fileUrl=");
33
33
  }, M = [
34
34
  "csv",
35
35
  "djvu",
@@ -178,10 +178,10 @@ const U = (e, o) => {
178
178
  return (i, r) => {
179
179
  var j;
180
180
  const W = S("IkTooltip");
181
- return a(), f(
181
+ return a(), d(
182
182
  "i",
183
183
  {
184
- class: $(p(O)(
184
+ class: C(p(O)(
185
185
  "ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
186
186
  t.class,
187
187
  e.showBg ? "bg" : "",
@@ -202,11 +202,11 @@ const U = (e, o) => {
202
202
  default: x(() => {
203
203
  var L;
204
204
  return [
205
- n.value === "unocss" ? (a(), f(
205
+ n.value === "unocss" ? (a(), d(
206
206
  "i",
207
207
  {
208
208
  key: 0,
209
- class: $(["iconfont shrink-0 size-inherit", `${e.name} ${(L = e.name) == null ? void 0 : L.split("_")[0]}`]),
209
+ class: C(["iconfont shrink-0 size-inherit", `${e.name} ${(L = e.name) == null ? void 0 : L.split("_")[0]}`]),
210
210
  style: k({ ...y.value, ...e.showBg ? m.value : {} })
211
211
  },
212
212
  null,
@@ -216,11 +216,11 @@ const U = (e, o) => {
216
216
  key: 1,
217
217
  icon: e.name,
218
218
  class: "shrink-0 size-inherit"
219
- }, null, 8, ["icon"])) : n.value === "svg" ? (a(), f("svg", D, [
220
- d("use", {
219
+ }, null, 8, ["icon"])) : n.value === "svg" ? (a(), d("svg", D, [
220
+ f("use", {
221
221
  "xlink:href": `#icon-${e.name}`
222
222
  }, null, 8, H)
223
- ])) : n.value === "two-color-svg" ? (a(), f(
223
+ ])) : n.value === "two-color-svg" ? (a(), d(
224
224
  "svg",
225
225
  {
226
226
  key: 3,
@@ -229,7 +229,7 @@ const U = (e, o) => {
229
229
  "aria-hidden": "true"
230
230
  },
231
231
  [
232
- d("use", {
232
+ f("use", {
233
233
  "xlink:href": `#${e.name}`
234
234
  }, null, 8, J)
235
235
  ],
@@ -241,7 +241,7 @@ const U = (e, o) => {
241
241
  class: "shrink-0"
242
242
  }, {
243
243
  loading: x(() => [...r[0] || (r[0] = [
244
- d(
244
+ f(
245
245
  "i",
246
246
  { class: "i-line-md:loading-loop size-inherit" },
247
247
  null,
@@ -250,7 +250,7 @@ const U = (e, o) => {
250
250
  )
251
251
  ])]),
252
252
  error: x(() => [...r[1] || (r[1] = [
253
- d(
253
+ f(
254
254
  "i",
255
255
  { class: "i-ph:image-broken-duotone size-inherit" },
256
256
  null,
@@ -265,15 +265,15 @@ const U = (e, o) => {
265
265
  }),
266
266
  _: 1
267
267
  /* STABLE */
268
- }, 8, ["text"])) : (a(), f(
268
+ }, 8, ["text"])) : (a(), d(
269
269
  B,
270
270
  { key: 1 },
271
271
  [
272
- n.value === "unocss" ? (a(), f(
272
+ n.value === "unocss" ? (a(), d(
273
273
  "i",
274
274
  {
275
275
  key: 0,
276
- class: $(["iconfont shrink-0 size-inherit", `${e.name} ${(j = e.name) == null ? void 0 : j.split("_")[0]}`]),
276
+ class: C(["iconfont shrink-0 size-inherit", `${e.name} ${(j = e.name) == null ? void 0 : j.split("_")[0]}`]),
277
277
  style: k({ ...y.value, ...e.showBg ? m.value : {} })
278
278
  },
279
279
  null,
@@ -283,16 +283,16 @@ const U = (e, o) => {
283
283
  key: 1,
284
284
  icon: e.name,
285
285
  class: "shrink-0 size-inherit"
286
- }, null, 8, ["icon"])) : n.value === "svg" ? (a(), f("svg", {
286
+ }, null, 8, ["icon"])) : n.value === "svg" ? (a(), d("svg", {
287
287
  key: 2,
288
288
  class: "shrink-0 size-inherit",
289
289
  size: e.size,
290
290
  "aria-hidden": "true"
291
291
  }, [
292
- d("use", {
292
+ f("use", {
293
293
  "xlink:href": `#icon-${e.name}`
294
294
  }, null, 8, Q)
295
- ], 8, K)) : n.value === "two-color-svg" ? (a(), f(
295
+ ], 8, K)) : n.value === "two-color-svg" ? (a(), d(
296
296
  "svg",
297
297
  {
298
298
  key: 3,
@@ -301,7 +301,7 @@ const U = (e, o) => {
301
301
  "aria-hidden": "true"
302
302
  },
303
303
  [
304
- d("use", {
304
+ f("use", {
305
305
  "xlink:href": `#${e.name}`
306
306
  }, null, 8, X)
307
307
  ],
@@ -313,7 +313,7 @@ const U = (e, o) => {
313
313
  class: "shrink-0"
314
314
  }, {
315
315
  loading: x(() => [...r[2] || (r[2] = [
316
- d(
316
+ f(
317
317
  "i",
318
318
  { class: "i-line-md:loading-loop size-inherit" },
319
319
  null,
@@ -322,7 +322,7 @@ const U = (e, o) => {
322
322
  )
323
323
  ])]),
324
324
  error: x(() => [...r[3] || (r[3] = [
325
- d(
325
+ f(
326
326
  "i",
327
327
  { class: "i-ph:image-broken-duotone size-inherit" },
328
328
  null,
@@ -343,7 +343,7 @@ const U = (e, o) => {
343
343
  );
344
344
  };
345
345
  }
346
- }), Z = /* @__PURE__ */ U(Y, [["__scopeId", "data-v-7dee8b6e"]]), _ = T(Z), ee = { class: "text-sm text-white bg-[var(--el-avatar-bg-color)] flex-center h-full w-full" }, te = /* @__PURE__ */ I({
346
+ }), Z = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-7dee8b6e"]]), _ = U(Z), ee = { class: "text-sm text-white bg-[var(--el-avatar-bg-color)] flex-center h-full w-full" }, te = /* @__PURE__ */ I({
347
347
  name: "IkAvatar",
348
348
  __name: "index",
349
349
  props: {
@@ -365,7 +365,7 @@ const U = (e, o) => {
365
365
  }
366
366
  return (m, v) => {
367
367
  const b = S("ElAvatar"), y = S("el-image-viewer");
368
- return a(), f(
368
+ return a(), d(
369
369
  B,
370
370
  null,
371
371
  [
@@ -378,10 +378,10 @@ const U = (e, o) => {
378
378
  onClick: u
379
379
  }, {
380
380
  default: x(() => [
381
- d(
381
+ f(
382
382
  "span",
383
383
  ee,
384
- C(t.value),
384
+ $(t.value),
385
385
  1
386
386
  /* TEXT */
387
387
  )
@@ -402,7 +402,7 @@ const U = (e, o) => {
402
402
  );
403
403
  };
404
404
  }
405
- }), oe = T(te), ie = () => ({
405
+ }), oe = U(te), ie = () => ({
406
406
  getLinearGradient: (o) => {
407
407
  const t = R.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
408
408
  return `linear-gradient(to top, ${o} 4%, rgb(${t[0]},${t[1] + 50},${t[2]}) 88%)`;
@@ -428,17 +428,17 @@ const U = (e, o) => {
428
428
  v435077c3: l.value
429
429
  }));
430
430
  const o = e, { getLinearGradient: t } = ie(), l = c(() => `${o.size}px`);
431
- return (s, n) => (a(), f(
431
+ return (s, n) => (a(), d(
432
432
  "div",
433
433
  {
434
434
  class: "form-icon",
435
435
  style: k({ backgroundImage: p(t)(e.backgroundColor || "#28b8a4") })
436
436
  },
437
437
  [
438
- d(
438
+ f(
439
439
  "i",
440
440
  {
441
- class: $(`ikflow ${e.icon}`)
441
+ class: C(`ikflow ${e.icon}`)
442
442
  },
443
443
  null,
444
444
  2
@@ -449,7 +449,7 @@ const U = (e, o) => {
449
449
  /* STYLE */
450
450
  ));
451
451
  }
452
- }), ne = /* @__PURE__ */ U(le, [["__scopeId", "data-v-0bc5a180"]]), ae = { class: "side-text items-center" }, se = { class: "side-left flex items-center" }, re = { class: "side-right" }, ce = { class: "text-over-line" }, ue = { class: "text-over-line sub-title" }, de = /* @__PURE__ */ I({
452
+ }), ne = /* @__PURE__ */ T(le, [["__scopeId", "data-v-0bc5a180"]]), ae = { class: "side-text items-center" }, se = { class: "side-left flex items-center" }, re = { class: "side-right" }, ce = { class: "text-over-line" }, ue = { class: "text-over-line sub-title" }, fe = /* @__PURE__ */ I({
453
453
  __name: "IkSideText",
454
454
  props: {
455
455
  // 名称
@@ -516,8 +516,8 @@ const U = (e, o) => {
516
516
  };
517
517
  return (u, m) => {
518
518
  var v;
519
- return a(), f("div", ae, [
520
- d("div", se, [
519
+ return a(), d("div", ae, [
520
+ f("div", se, [
521
521
  e.avatarType === "url" ? (a(), g(p(oe), {
522
522
  key: 0,
523
523
  style: k({ "--el-avatar-bg-color": s.value ? "var(--ik-form-bg)" : "var(--ik-color-primary)" }),
@@ -528,12 +528,12 @@ const U = (e, o) => {
528
528
  onError: h
529
529
  }, {
530
530
  default: x(() => [
531
- n.value ? w("v-if", !0) : (a(), f(
531
+ n.value ? w("v-if", !0) : (a(), d(
532
532
  B,
533
533
  { key: 0 },
534
534
  [
535
535
  P(
536
- C(e.name.slice(-2)),
536
+ $(e.name.slice(-2)),
537
537
  1
538
538
  /* TEXT */
539
539
  )
@@ -559,18 +559,18 @@ const U = (e, o) => {
559
559
  "background-color": e.iconBackgroundColor
560
560
  }, null, 8, ["icon", "background-color"])) : w("v-if", !0)
561
561
  ]),
562
- d("div", re, [
563
- d(
562
+ f("div", re, [
563
+ f(
564
564
  "p",
565
565
  ce,
566
- C(e.text),
566
+ $(e.text),
567
567
  1
568
568
  /* TEXT */
569
569
  ),
570
- d(
570
+ f(
571
571
  "p",
572
572
  ue,
573
- C(e.subText),
573
+ $(e.subText),
574
574
  1
575
575
  /* TEXT */
576
576
  )
@@ -578,7 +578,7 @@ const U = (e, o) => {
578
578
  ]);
579
579
  };
580
580
  }
581
- }), fe = /* @__PURE__ */ U(de, [["__scopeId", "data-v-ac7ef2be"]]), ge = T(fe);
581
+ }), de = /* @__PURE__ */ T(fe, [["__scopeId", "data-v-ac7ef2be"]]), ge = U(de);
582
582
  export {
583
583
  ge as IkSideText,
584
584
  ge as default
@@ -651,8 +651,8 @@ const ut = (a, s) => {
651
651
  return (e % 1 === 0 ? e.toFixed(s || 0) : e.toFixed(s)) + " " + r[t];
652
652
  }, Bt = (a, s) => {
653
653
  if (!s) return "";
654
- const r = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
655
- return s.startsWith("http") ? s.replace(r, "$1$2") : `${a || location.origin}${s}`.replace(r, "$1$2");
654
+ const r = /fileUrl=[^&]*fileUrl=/;
655
+ return s.startsWith("http") ? s.replace(r, "fileUrl=") : `${a || location.origin}${s}`.replace(r, "fileUrl=");
656
656
  }, Ha = [
657
657
  "csv",
658
658
  "djvu",
@@ -2,7 +2,7 @@ import { defineComponent as f, provide as n, computed as r, renderSlot as d } fr
2
2
  const p = (e, l) => (e.install = (o) => {
3
3
  for (const t of [e, ...Object.values({})])
4
4
  o.component(t.name, t);
5
- }, e), c = "0.0.1", s = {
5
+ }, e), c = "0.0.12", s = {
6
6
  version: c
7
7
  }, a = /* @__PURE__ */ f({
8
8
  __name: "ProviderConfig",
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ "version": "0.0.12"
3
+ };
4
+
5
+ export default _default;
package/dist/index.es.js CHANGED
@@ -810,8 +810,8 @@ const d_ = (d, u) => {
810
810
  return (r % 1 === 0 ? r.toFixed(u || 0) : r.toFixed(u)) + " " + i[a];
811
811
  }, Og = (d, u) => {
812
812
  if (!u) return "";
813
- const i = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
814
- return u.startsWith("http") ? u.replace(i, "$1$2") : `${d || location.origin}${u}`.replace(i, "$1$2");
813
+ const i = /fileUrl=[^&]*fileUrl=/;
814
+ return u.startsWith("http") ? u.replace(i, "fileUrl=") : `${d || location.origin}${u}`.replace(i, "fileUrl=");
815
815
  }, Ace = (d) => ({
816
816
  // ================all================
817
817
  nodeType: {
@@ -70986,7 +70986,7 @@ const e6e = /* @__PURE__ */ ms({
70986
70986
  })
70987
70987
  ]));
70988
70988
  }
70989
- }), mde = ii(N6e), L6e = "0.0.1", B6e = {
70989
+ }), mde = ii(N6e), L6e = "0.0.12", B6e = {
70990
70990
  version: L6e
70991
70991
  }, $6e = /* @__PURE__ */ ms({
70992
70992
  __name: "ProviderConfig",