quail-ui 0.5.39 → 0.5.41

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as a, createElementBlock as u, createElementVNode as d, createStaticVNode as O, defineComponent as z, ref as L, watch as Z, computed as y, onMounted as G, withDirectives as U, vModelText as t1, createCommentVNode as B, nextTick as p2, Fragment as X, renderSlot as j, createBlock as V, Transition as I1, withCtx as N, normalizeClass as Q, normalizeStyle as J, withModifiers as B1, toDisplayString as A, resolveComponent as $, resolveDynamicComponent as Y, renderList as e1, createTextVNode as $1, getCurrentInstance as f2, unref as u1, vModelCheckbox as g2, createVNode as P, useSlots as R1, pushScopeId as P1, popScopeId as T1, vModelDynamic as w2 } from "vue";
1
+ import { openBlock as a, createElementBlock as u, createElementVNode as d, createStaticVNode as O, defineComponent as z, ref as L, watch as Z, computed as y, onMounted as G, withDirectives as U, vModelText as t1, createCommentVNode as B, nextTick as p2, Fragment as X, renderSlot as j, createBlock as V, Transition as I1, withCtx as N, normalizeClass as Q, normalizeStyle as J, withModifiers as B1, toDisplayString as A, resolveComponent as $, resolveDynamicComponent as Y, renderList as e1, createTextVNode as $1, getCurrentInstance as f2, unref as u1, vModelCheckbox as g2, createVNode as D, useSlots as R1, pushScopeId as P1, popScopeId as T1, vModelDynamic as w2 } from "vue";
2
2
  const m2 = {
3
3
  name: "QIconArrowUpRight"
4
4
  }, C = (e, o) => {
@@ -3217,7 +3217,7 @@ const sr = { class: "q-text-field-wrapper" }, ir = ["placeholder"], rr = { class
3217
3217
  ])
3218
3218
  ]),
3219
3219
  d("div", rr, [
3220
- P(x, {
3220
+ D(x, {
3221
3221
  class: Q(e.buttonCls),
3222
3222
  disabled: !l.value,
3223
3223
  onClick: h,
@@ -3384,14 +3384,14 @@ const lr = { class: "q-dropdown-menu" }, ar = { class: "q-dropdown-menu-inner na
3384
3384
  ])) : B("", !0),
3385
3385
  j(m.$slots, "default"),
3386
3386
  e.hideSelected || g.value ? (a(), u("div", gr)) : B("", !0),
3387
- P(_, { class: "icon chevron-icon" })
3387
+ D(_, { class: "icon chevron-icon" })
3388
3388
  ], 2),
3389
3389
  x.value ? B("", !0) : (a(), u("div", {
3390
3390
  key: 0,
3391
3391
  ref_key: "menuWrapper",
3392
3392
  ref: r
3393
3393
  }, [
3394
- P(I1, null, {
3394
+ D(I1, null, {
3395
3395
  default: N(() => [
3396
3396
  i.value ? (a(), V(M, {
3397
3397
  key: 0,
@@ -3506,19 +3506,19 @@ const Mr = { class: "q-pagination" }, xr = {
3506
3506
  return (p, h) => {
3507
3507
  const f = $("q-button");
3508
3508
  return a(), u("div", Mr, [
3509
- P(f, {
3509
+ D(f, {
3510
3510
  class: "prev sm outlined icon",
3511
3511
  onClick: l,
3512
3512
  disabled: !t.hasPrev
3513
3513
  }, {
3514
3514
  default: N(() => [
3515
- P(U1, { class: "icon" })
3515
+ D(U1, { class: "icon" })
3516
3516
  ]),
3517
3517
  _: 1
3518
3518
  }, 8, ["disabled"]),
3519
3519
  e.totalPage !== 0 ? (a(), u("div", xr, [
3520
3520
  (a(!0), u(X, null, e1(s.value, (g) => (a(), u("div", kr, [
3521
- P(f, {
3521
+ D(f, {
3522
3522
  class: Q(["q-page-indicator sm outlined", g.label === n.value ? "active" : ""]),
3523
3523
  disabled: g.disabled,
3524
3524
  onClick: (w) => c(g.label, g)
@@ -3538,13 +3538,13 @@ const Mr = { class: "q-pagination" }, xr = {
3538
3538
  ]),
3539
3539
  _: 1
3540
3540
  })),
3541
- P(f, {
3541
+ D(f, {
3542
3542
  class: "next sm outlined icon",
3543
3543
  onClick: r,
3544
3544
  disabled: !t.hasNext
3545
3545
  }, {
3546
3546
  default: N(() => [
3547
- P(Y1, { class: "icon" })
3547
+ D(Y1, { class: "icon" })
3548
3548
  ]),
3549
3549
  _: 1
3550
3550
  }, 8, ["disabled"])
@@ -4853,13 +4853,13 @@ var hc = d2.exports;
4853
4853
  function f(m) {
4854
4854
  const v = h(l.NUMERIC, o.NUMERIC, m), _ = h(l.ALPHANUMERIC, o.ALPHANUMERIC, m);
4855
4855
  let M, I;
4856
- return r.isKanjiModeEnabled() ? (M = h(l.BYTE, o.BYTE, m), I = h(l.KANJI, o.KANJI, m)) : (M = h(l.BYTE_KANJI, o.BYTE, m), I = []), v.concat(_, M, I).sort(function(T, q) {
4857
- return T.index - q.index;
4858
- }).map(function(T) {
4856
+ return r.isKanjiModeEnabled() ? (M = h(l.BYTE, o.BYTE, m), I = h(l.KANJI, o.KANJI, m)) : (M = h(l.BYTE_KANJI, o.BYTE, m), I = []), v.concat(_, M, I).sort(function(P, q) {
4857
+ return P.index - q.index;
4858
+ }).map(function(P) {
4859
4859
  return {
4860
- data: T.data,
4861
- mode: T.mode,
4862
- length: T.length
4860
+ data: P.data,
4861
+ mode: P.mode,
4862
+ length: P.length
4863
4863
  };
4864
4864
  });
4865
4865
  }
@@ -4917,9 +4917,9 @@ var hc = d2.exports;
4917
4917
  const _ = {}, M = { start: {} };
4918
4918
  let I = ["start"];
4919
4919
  for (let H = 0; H < m.length; H++) {
4920
- const T = m[H], q = [];
4921
- for (let D = 0; D < T.length; D++) {
4922
- const S = T[D], r1 = "" + H + D;
4920
+ const P = m[H], q = [];
4921
+ for (let T = 0; T < P.length; T++) {
4922
+ const S = P[T], r1 = "" + H + T;
4923
4923
  q.push(r1), _[r1] = { node: S, lastCount: 0 }, M[r1] = {};
4924
4924
  for (let v1 = 0; v1 < I.length; v1++) {
4925
4925
  const F = I[v1];
@@ -4954,9 +4954,9 @@ var hc = d2.exports;
4954
4954
  return typeof M == "string" ? _.push(b(M, null)) : M.data && _.push(b(M.data, M.mode)), _;
4955
4955
  }, []);
4956
4956
  }, e.fromString = function(v, _) {
4957
- const M = f(v, r.isKanjiModeEnabled()), I = x(M), H = k(I, _), T = c.find_path(H.map, "start", "end"), q = [];
4958
- for (let D = 1; D < T.length - 1; D++)
4959
- q.push(H.table[T[D]].node);
4957
+ const M = f(v, r.isKanjiModeEnabled()), I = x(M), H = k(I, _), P = c.find_path(H.map, "start", "end"), q = [];
4958
+ for (let T = 1; T < P.length - 1; T++)
4959
+ q.push(H.table[P[T]].node);
4960
4960
  return e.fromArray(w(q));
4961
4961
  }, e.rawSplit = function(v) {
4962
4962
  return e.fromArray(
@@ -5039,9 +5039,9 @@ function Ic(e, o, t) {
5039
5039
  const k = new Array(l), b = new Array(l);
5040
5040
  let m = 0;
5041
5041
  const v = new Uint8Array(e.buffer);
5042
- for (let T = 0; T < l; T++) {
5043
- const q = T < c ? h : f;
5044
- k[T] = v.slice(x, x + q), b[T] = w.encode(k[T]), x += q, m = Math.max(m, q);
5042
+ for (let P = 0; P < l; P++) {
5043
+ const q = P < c ? h : f;
5044
+ k[P] = v.slice(x, x + q), b[P] = w.encode(k[P]), x += q, m = Math.max(m, q);
5045
5045
  }
5046
5046
  const _ = new Uint8Array(s);
5047
5047
  let M = 0, I, H;
@@ -5346,33 +5346,33 @@ const Vc = { class: "q-dialog-content mastodon-dialog-content flex center" }, zc
5346
5346
  localStorage.setItem("quailui_global_mastodon_host", l.value), window.open(v, "_blank"), i.value = !1;
5347
5347
  }
5348
5348
  return (v, _) => {
5349
- const M = $("q-icon-color-mastodon"), I = $("q-icon-arrow-right"), H = $("q-button"), T = $("q-dialog"), q = $("q-icon-copy");
5349
+ const M = $("q-icon-color-mastodon"), I = $("q-icon-arrow-right"), H = $("q-button"), P = $("q-dialog"), q = $("q-icon-copy");
5350
5350
  return a(), u("div", {
5351
5351
  class: Q(["q-share", p.value])
5352
5352
  }, [
5353
- P(T, {
5353
+ D(P, {
5354
5354
  modelValue: i.value,
5355
- "onUpdate:modelValue": _[1] || (_[1] = (D) => i.value = D),
5355
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => i.value = T),
5356
5356
  title: "Share to Mastodon"
5357
5357
  }, {
5358
5358
  default: N(() => [
5359
5359
  d("div", Vc, [
5360
- P(M, { class: "service-icon" }),
5360
+ D(M, { class: "service-icon" }),
5361
5361
  U(d("input", {
5362
5362
  class: "text-field",
5363
- "onUpdate:modelValue": _[0] || (_[0] = (D) => l.value = D),
5363
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => l.value = T),
5364
5364
  placeholder: "Instance Domain",
5365
5365
  ref_key: "mastodonHostInput",
5366
5366
  ref: r
5367
5367
  }, null, 512), [
5368
5368
  [t1, l.value]
5369
5369
  ]),
5370
- P(H, {
5370
+ D(H, {
5371
5371
  class: "primary icon ml-2",
5372
5372
  onClick: m
5373
5373
  }, {
5374
5374
  default: N(() => [
5375
- P(I)
5375
+ D(I)
5376
5376
  ]),
5377
5377
  _: 1
5378
5378
  })
@@ -5380,9 +5380,9 @@ const Vc = { class: "q-dialog-content mastodon-dialog-content flex center" }, zc
5380
5380
  ]),
5381
5381
  _: 1
5382
5382
  }, 8, ["modelValue"]),
5383
- P(T, {
5383
+ D(P, {
5384
5384
  modelValue: t.value,
5385
- "onUpdate:modelValue": _[2] || (_[2] = (D) => t.value = D),
5385
+ "onUpdate:modelValue": _[2] || (_[2] = (T) => t.value = T),
5386
5386
  title: "Share"
5387
5387
  }, {
5388
5388
  default: N(() => [
@@ -5396,12 +5396,12 @@ const Vc = { class: "q-dialog-content mastodon-dialog-content flex center" }, zc
5396
5396
  ]),
5397
5397
  d("div", Tc, [
5398
5398
  d("div", Dc, [
5399
- P(H, {
5399
+ D(H, {
5400
5400
  class: "highlight",
5401
5401
  onClick: k
5402
5402
  }, {
5403
5403
  default: N(() => [
5404
- P(q, { class: "icon" }),
5404
+ D(q, { class: "icon" }),
5405
5405
  jc
5406
5406
  ]),
5407
5407
  _: 1
@@ -5412,16 +5412,16 @@ const Vc = { class: "q-dialog-content mastodon-dialog-content flex center" }, zc
5412
5412
  ]),
5413
5413
  _: 1
5414
5414
  }, 8, ["modelValue"]),
5415
- (a(!0), u(X, null, e1(g.value, (D) => (a(), u("a", {
5416
- key: `serv-${D.name}`,
5417
- title: D.tooltip,
5418
- class: Q(["q-share-link", D.name]),
5419
- onClick: (S) => x(D)
5415
+ (a(!0), u(X, null, e1(g.value, (T) => (a(), u("a", {
5416
+ key: `serv-${T.name}`,
5417
+ title: T.tooltip,
5418
+ class: Q(["q-share-link", T.name]),
5419
+ onClick: (S) => x(T)
5420
5420
  }, [
5421
5421
  d("span", {
5422
- class: Q(["q-share-link-inner", D.name])
5422
+ class: Q(["q-share-link-inner", T.name])
5423
5423
  }, [
5424
- (a(), V(Y(D.icon), { class: "icon share-icon" }))
5424
+ (a(), V(Y(T.icon), { class: "icon share-icon" }))
5425
5425
  ], 2)
5426
5426
  ], 10, Nc))), 128))
5427
5427
  ], 2);
@@ -5554,7 +5554,7 @@ const Sc = { class: "q-dropdown-menu-with-text-field" }, Gc = { class: "q-dropdo
5554
5554
  return a(), u("div", Sc, [
5555
5555
  d("div", Gc, [
5556
5556
  d("div", Rc, [
5557
- P(x, {
5557
+ D(x, {
5558
5558
  items: e.items,
5559
5559
  "initial-item": i.value,
5560
5560
  "use-dialog": "always",
@@ -5585,7 +5585,7 @@ const Sc = { class: "q-dropdown-menu-with-text-field" }, Gc = { class: "q-dropdo
5585
5585
  d("span", {
5586
5586
  textContent: A(t.fillActionLabel)
5587
5587
  }, null, 8, Xc),
5588
- P(F1, { class: "icon" })
5588
+ D(F1, { class: "icon" })
5589
5589
  ]),
5590
5590
  d("div", Kc, [
5591
5591
  d("span", {
@@ -5597,7 +5597,7 @@ const Sc = { class: "q-dropdown-menu-with-text-field" }, Gc = { class: "q-dropdo
5597
5597
  };
5598
5598
  }
5599
5599
  });
5600
- const tl = /* @__PURE__ */ C(Wc, [["__scopeId", "data-v-14fc858a"]]), el = (e) => (P1("data-v-71339cf9"), e = e(), T1(), e), nl = ["disabled", "ariaLabel"], ol = {
5600
+ const tl = /* @__PURE__ */ C(Wc, [["__scopeId", "data-v-026b04e9"]]), el = (e) => (P1("data-v-71339cf9"), e = e(), T1(), e), nl = ["disabled", "ariaLabel"], ol = {
5601
5601
  key: 0,
5602
5602
  class: "ocean"
5603
5603
  }, sl = /* @__PURE__ */ el(() => /* @__PURE__ */ d("div", { class: "wave" }, null, -1)), il = [
@@ -5788,15 +5788,16 @@ const dl = /* @__PURE__ */ C(al, [["__scopeId", "data-v-32e32610"]]), ul = { cla
5788
5788
  }, null, 40, fl), [
5789
5789
  [w2, n.value]
5790
5790
  ]),
5791
- P(b, {
5791
+ t.disabled ? B("", !0) : (a(), V(b, {
5792
+ key: 0,
5792
5793
  class: "clear-btn plain sm icon",
5793
5794
  onClick: f
5794
5795
  }, {
5795
5796
  default: N(() => [
5796
- P(k, { class: "icon" })
5797
+ D(k, { class: "icon" })
5797
5798
  ]),
5798
5799
  _: 1
5799
- }),
5800
+ })),
5800
5801
  d("div", gl, [
5801
5802
  j(w.$slots, "append", {}, void 0, !0)
5802
5803
  ])
@@ -5819,7 +5820,7 @@ const dl = /* @__PURE__ */ C(al, [["__scopeId", "data-v-32e32610"]]), ul = { cla
5819
5820
  };
5820
5821
  }
5821
5822
  });
5822
- const kl = /* @__PURE__ */ C(xl, [["__scopeId", "data-v-11d00f09"]]), yl = { class: "q-search-input" }, Ll = {
5823
+ const kl = /* @__PURE__ */ C(xl, [["__scopeId", "data-v-6bc5aa21"]]), yl = { class: "q-search-input" }, Ll = {
5823
5824
  key: 0,
5824
5825
  class: "result"
5825
5826
  }, Il = /* @__PURE__ */ z({
@@ -5873,7 +5874,7 @@ const kl = /* @__PURE__ */ C(xl, [["__scopeId", "data-v-11d00f09"]]), yl = { cla
5873
5874
  }), (h, f) => {
5874
5875
  const g = $("QInput"), w = $("QMenu");
5875
5876
  return a(), u("div", yl, [
5876
- P(g, {
5877
+ D(g, {
5877
5878
  modelValue: n.value,
5878
5879
  "onUpdate:modelValue": f[0] || (f[0] = (x) => n.value = x),
5879
5880
  type: "text",
@@ -5883,7 +5884,7 @@ const kl = /* @__PURE__ */ C(xl, [["__scopeId", "data-v-11d00f09"]]), yl = { cla
5883
5884
  onChange: c
5884
5885
  }, null, 8, ["modelValue", "placeholder", "disabled"]),
5885
5886
  e.items && i.value ? (a(), u("div", Ll, [
5886
- P(w, { items: l.value }, null, 8, ["items"])
5887
+ D(w, { items: l.value }, null, 8, ["items"])
5887
5888
  ])) : B("", !0)
5888
5889
  ]);
5889
5890
  };
@@ -6045,7 +6046,7 @@ const Bl = /* @__PURE__ */ C(Il, [["__scopeId", "data-v-2bc84f25"]]), bl = /* @_
6045
6046
  ], 2));
6046
6047
  }
6047
6048
  });
6048
- const Ol = /* @__PURE__ */ C(Zl, [["__scopeId", "data-v-cdd096aa"]]), ql = /* @__PURE__ */ z({
6049
+ const Ol = /* @__PURE__ */ C(Zl, [["__scopeId", "data-v-715c8a90"]]), ql = /* @__PURE__ */ z({
6049
6050
  __name: "QCurrencySelector",
6050
6051
  props: {
6051
6052
  currency: {
@@ -6190,7 +6191,7 @@ const Kl = /* @__PURE__ */ C(Xl, [["__scopeId", "data-v-9be70a45"]]), Jl = { cla
6190
6191
  class: Q(["q-payment-approach-item-wrapper", i(h)]),
6191
6192
  onClick: (f) => l(h)
6192
6193
  }, [
6193
- P(p, {
6194
+ D(p, {
6194
6195
  name: h.name,
6195
6196
  icons: h.icons,
6196
6197
  symbol: h.symbol,