@romainbx/wpic-components 0.0.83 → 0.0.85

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.
@@ -2138,6 +2138,7 @@ const Og = ["is", "type", "disabled"], Mg = {
2138
2138
  destructive: Boolean,
2139
2139
  inverse: Boolean,
2140
2140
  disabled: Boolean,
2141
+ hideDisabled: Boolean,
2141
2142
  full: Boolean,
2142
2143
  loading: Boolean,
2143
2144
  colorless: Boolean,
@@ -2211,7 +2212,7 @@ const Og = ["is", "type", "disabled"], Mg = {
2211
2212
  class: G([{
2212
2213
  "cursor-pointer": !t.disabled && !t.loading,
2213
2214
  "active:outline active:outline-2 active:outline-offset-4": !t.disabled && !t.loading && t.outlining,
2214
- "cursor-not-allowed": t.disabled,
2215
+ "cursor-not-allowed": t.disabled && !t.hideDisabled,
2215
2216
  border: t.outline && !t.plain,
2216
2217
  [`${a[P(ce).theme]}`]: !0,
2217
2218
  [`${u[P(ce).theme]}`]: t.primary && !t.plain && !t.inverse,
@@ -22626,9 +22627,9 @@ const E4 = /* @__PURE__ */ ve(O4, [["render", A4]]), D4 = {}, N4 = {
22626
22627
  function V4(t, e) {
22627
22628
  return b(), S("svg", N4, P4);
22628
22629
  }
22629
- const R4 = /* @__PURE__ */ ve(D4, [["render", V4]]), _4 = {
22630
+ const R4 = /* @__PURE__ */ ve(D4, [["render", V4]]), _4 = { class: "flex-1" }, j4 = {
22630
22631
  name: "WpicBadge"
22631
- }, j4 = /* @__PURE__ */ Object.assign(_4, {
22632
+ }, z4 = /* @__PURE__ */ Object.assign(j4, {
22632
22633
  props: {
22633
22634
  success: Boolean,
22634
22635
  warning: Boolean,
@@ -22658,7 +22659,9 @@ const R4 = /* @__PURE__ */ ve(D4, [["render", V4]]), _4 = {
22658
22659
  key: 2,
22659
22660
  class: "w-2.5 h-2.5 opacity-80"
22660
22661
  })) : Q("", !0),
22661
- Me(e.$slots, "default")
22662
+ A("span", _4, [
22663
+ Me(e.$slots, "default")
22664
+ ])
22662
22665
  ], 2));
22663
22666
  }
22664
22667
  }), ta = {
@@ -23010,8 +23013,8 @@ var jp = { exports: {} };
23010
23013
  }, L.en = w[$], L.Ls = w, L.p = {}, L;
23011
23014
  });
23012
23015
  })(jp);
23013
- var z4 = jp.exports;
23014
- const U = /* @__PURE__ */ Ji(z4);
23016
+ var F4 = jp.exports;
23017
+ const U = /* @__PURE__ */ Ji(F4);
23015
23018
  var zp = { exports: {} };
23016
23019
  (function(t, e) {
23017
23020
  (function(n, r) {
@@ -23035,8 +23038,8 @@ var zp = { exports: {} };
23035
23038
  };
23036
23039
  });
23037
23040
  })(zp);
23038
- var F4 = zp.exports;
23039
- const H4 = /* @__PURE__ */ Ji(F4);
23041
+ var H4 = zp.exports;
23042
+ const W4 = /* @__PURE__ */ Ji(H4);
23040
23043
  var Fp = { exports: {} };
23041
23044
  (function(t, e) {
23042
23045
  (function(n, r) {
@@ -23050,10 +23053,10 @@ var Fp = { exports: {} };
23050
23053
  };
23051
23054
  });
23052
23055
  })(Fp);
23053
- var W4 = Fp.exports;
23054
- const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" }, K4 = { class: "flex justify-between items-center mb-3" }, Y4 = { class: "flex" }, J4 = { class: "font-medium flex items-center gap-2" }, G4 = ["value", "onChange"], Z4 = ["value"], X4 = ["value", "onChange"], Q4 = ["value"], eD = { class: "flex" }, tD = { class: "grid grid-cols-7 border-b dark:border-gray-800 mb-2 pb-2" }, nD = { class: "flex justify-center text-sm" }, rD = {
23056
+ var U4 = Fp.exports;
23057
+ const q4 = /* @__PURE__ */ Ji(U4), K4 = { class: "w-full dark:text-gray-400" }, Y4 = { class: "flex justify-between items-center mb-3" }, J4 = { class: "flex" }, G4 = { class: "font-medium flex items-center gap-2" }, Z4 = ["value", "onChange"], X4 = ["value"], Q4 = ["value", "onChange"], eD = ["value"], tD = { class: "flex" }, nD = { class: "grid grid-cols-7 border-b dark:border-gray-800 mb-2 pb-2" }, rD = { class: "flex justify-center text-sm" }, iD = {
23055
23058
  name: "WpicCalendar"
23056
- }, Ul = /* @__PURE__ */ Object.assign(rD, {
23059
+ }, Ul = /* @__PURE__ */ Object.assign(iD, {
23057
23060
  props: {
23058
23061
  modelValue: {},
23059
23062
  range: Boolean,
@@ -23077,7 +23080,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23077
23080
  },
23078
23081
  emits: ["update:modelValue"],
23079
23082
  setup(t, { emit: e }) {
23080
- U.extend(U4), U.extend(H4);
23083
+ U.extend(q4), U.extend(W4);
23081
23084
  const n = t, r = ne([U(/* @__PURE__ */ new Date()).subtract(1, "month"), U(/* @__PURE__ */ new Date())]);
23082
23085
  Pe(() => n.initDates, () => {
23083
23086
  var N;
@@ -23260,9 +23263,9 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23260
23263
  }, [
23261
23264
  (b(!0), S($e, null, We(o.value, (W) => {
23262
23265
  var ie;
23263
- return b(), S("div", q4, [
23264
- A("div", K4, [
23265
- A("div", Y4, [
23266
+ return b(), S("div", K4, [
23267
+ A("div", Y4, [
23268
+ A("div", J4, [
23266
23269
  le(Mf, {
23267
23270
  class: G(["w-5 h-5 cursor-pointer select-none", { "opacity-25 cursor-not-allowed": !z(W), "hover:opacity-100": z(W) }]),
23268
23271
  onClick: (Y) => z(W) ? v(W) : null
@@ -23272,7 +23275,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23272
23275
  onClick: (Y) => w(W) ? k(W) : null
23273
23276
  }, null, 8, ["class", "onClick"])
23274
23277
  ]),
23275
- A("div", J4, [
23278
+ A("div", G4, [
23276
23279
  A("select", {
23277
23280
  value: r.value[W].format("YYYY"),
23278
23281
  onChange: (Y) => B(W, Y.target.value),
@@ -23281,8 +23284,8 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23281
23284
  (b(!0), S($e, null, We(ee.value, (Y) => (b(), S("option", {
23282
23285
  key: Y,
23283
23286
  value: Y
23284
- }, be(Y), 9, Z4))), 128))
23285
- ], 40, G4),
23287
+ }, be(Y), 9, X4))), 128))
23288
+ ], 40, Z4),
23286
23289
  A("select", {
23287
23290
  value: r.value[W].month(),
23288
23291
  onChange: (Y) => j(W, Y.target.value),
@@ -23291,10 +23294,10 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23291
23294
  (b(), S($e, null, We(re, (Y, F) => A("option", {
23292
23295
  key: F,
23293
23296
  value: F
23294
- }, be(Y), 9, Q4)), 64))
23295
- ], 40, X4)
23297
+ }, be(Y), 9, eD)), 64))
23298
+ ], 40, Q4)
23296
23299
  ]),
23297
- A("div", eD, [
23300
+ A("div", tD, [
23298
23301
  le(Af, {
23299
23302
  class: G(["w-5 h-5 cursor-pointer select-none", { "opacity-25 cursor-not-allowed": !I(W), "hover:opacity-100": I(W) }]),
23300
23303
  onClick: (Y) => I(W) ? E(W) : null
@@ -23305,10 +23308,10 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23305
23308
  }, null, 8, ["class", "onClick"])
23306
23309
  ])
23307
23310
  ]),
23308
- A("div", tD, [
23311
+ A("div", nD, [
23309
23312
  (b(), S($e, null, We(7, (Y) => {
23310
23313
  var F;
23311
- return A("div", nD, be((F = r.value[W]) == null ? void 0 : F.clone().startOf("week").subtract(1, "days").add(Y, "days").format("ddd")), 1);
23314
+ return A("div", rD, be((F = r.value[W]) == null ? void 0 : F.clone().startOf("week").subtract(1, "days").add(Y, "days").format("ddd")), 1);
23312
23315
  }), 64))
23313
23316
  ]),
23314
23317
  A("div", {
@@ -23355,44 +23358,44 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
23355
23358
  }), 256))
23356
23359
  ], 2));
23357
23360
  }
23358
- }), iD = {}, oD = {
23361
+ }), oD = {}, sD = {
23359
23362
  xmlns: "http://www.w3.org/2000/svg",
23360
23363
  fill: "none",
23361
23364
  viewBox: "0 0 24 24",
23362
23365
  "stroke-width": "1.5",
23363
23366
  stroke: "currentColor"
23364
- }, sD = /* @__PURE__ */ A("path", {
23367
+ }, aD = /* @__PURE__ */ A("path", {
23365
23368
  "stroke-linecap": "round",
23366
23369
  "stroke-linejoin": "round",
23367
23370
  d: "M6.75 2.994v2.25m10.5-2.25v2.25m-14.252 13.5V7.491a2.25 2.25 0 0 1 2.25-2.25h13.5a2.25 2.25 0 0 1 2.25 2.25v11.251m-18 0a2.25 2.25 0 0 0 2.25 2.25h13.5a2.25 2.25 0 0 0 2.25-2.25m-18 0v-7.5a2.25 2.25 0 0 1 2.25-2.25h13.5a2.25 2.25 0 0 1 2.25 2.25v7.5m-6.75-6h2.25m-9 2.25h4.5m.002-2.25h.005v.006H12v-.006Zm-.001 4.5h.006v.006h-.006v-.005Zm-2.25.001h.005v.006H9.75v-.006Zm-2.25 0h.005v.005h-.006v-.005Zm6.75-2.247h.005v.005h-.005v-.005Zm0 2.247h.006v.006h-.006v-.006Zm2.25-2.248h.006V15H16.5v-.005Z"
23368
- }, null, -1), aD = [
23369
- sD
23371
+ }, null, -1), lD = [
23372
+ aD
23370
23373
  ];
23371
- function lD(t, e) {
23372
- return b(), S("svg", oD, aD);
23374
+ function cD(t, e) {
23375
+ return b(), S("svg", sD, lD);
23373
23376
  }
23374
- const Hp = /* @__PURE__ */ ve(iD, [["render", lD]]), cD = {}, uD = {
23377
+ const Hp = /* @__PURE__ */ ve(oD, [["render", cD]]), uD = {}, dD = {
23375
23378
  xmlns: "http://www.w3.org/2000/svg",
23376
23379
  fill: "none",
23377
23380
  viewBox: "0 0 24 24",
23378
23381
  "stroke-width": "1.5",
23379
23382
  stroke: "currentColor"
23380
- }, dD = /* @__PURE__ */ A("path", {
23383
+ }, fD = /* @__PURE__ */ A("path", {
23381
23384
  "stroke-linecap": "round",
23382
23385
  "stroke-linejoin": "round",
23383
23386
  d: "M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"
23384
- }, null, -1), fD = [
23385
- dD
23387
+ }, null, -1), hD = [
23388
+ fD
23386
23389
  ];
23387
- function hD(t, e) {
23388
- return b(), S("svg", uD, fD);
23390
+ function pD(t, e) {
23391
+ return b(), S("svg", dD, hD);
23389
23392
  }
23390
- const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3" }, mD = {
23393
+ const Wp = /* @__PURE__ */ ve(uD, [["render", pD]]), mD = { class: "flex gap-3" }, gD = {
23391
23394
  key: 0,
23392
23395
  class: "w-32 py-2 border-r dark:border-gray-800 flex flex-col gap-3 shrink-0"
23393
- }, gD = ["onClick"], yD = {
23396
+ }, yD = ["onClick"], vD = {
23394
23397
  name: "WpicDateField"
23395
- }, vD = /* @__PURE__ */ Object.assign(yD, {
23398
+ }, bD = /* @__PURE__ */ Object.assign(vD, {
23396
23399
  props: {
23397
23400
  modelValue: {},
23398
23401
  label: String,
@@ -23451,12 +23454,12 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23451
23454
  maxWidth: "1280px"
23452
23455
  }, {
23453
23456
  content: xe(() => [
23454
- A("div", pD, [
23455
- t.shortcuts ? (b(), S("div", mD, [
23457
+ A("div", mD, [
23458
+ t.shortcuts ? (b(), S("div", gD, [
23456
23459
  (b(!0), S($e, null, We(s, (c) => (b(), S("div", {
23457
23460
  class: "opacity-50 hover:opacity-100 dark:text-gray-300 cursor-pointer",
23458
23461
  onClick: (u) => c.onClick()
23459
- }, be(c.text), 9, gD))), 256))
23462
+ }, be(c.text), 9, yD))), 256))
23460
23463
  ])) : Q("", !0),
23461
23464
  le(Ul, {
23462
23465
  doubleMonths: t.doubleMonths,
@@ -23503,7 +23506,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23503
23506
  _: 1
23504
23507
  }, 8, ["disabled"]));
23505
23508
  }
23506
- }), bD = { class: "relative inline-block tabular-nums" }, xD = ["value", "placeholder", "maxlength"], na = {
23509
+ }), xD = { class: "relative inline-block tabular-nums" }, wD = ["value", "placeholder", "maxlength"], na = {
23507
23510
  __name: "DateSegment",
23508
23511
  props: {
23509
23512
  modelValue: String,
@@ -23523,7 +23526,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23523
23526
  function a() {
23524
23527
  r("blur");
23525
23528
  }
23526
- return (l, c) => (b(), S("div", bD, [
23529
+ return (l, c) => (b(), S("div", xD, [
23527
23530
  A("input", {
23528
23531
  ref_key: "inputRef",
23529
23532
  ref: i,
@@ -23540,10 +23543,10 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23540
23543
  inputmode: "numeric",
23541
23544
  pattern: "\\d*",
23542
23545
  maxlength: o.value
23543
- }, null, 42, xD)
23546
+ }, null, 42, wD)
23544
23547
  ]));
23545
23548
  }
23546
- }, wD = { class: "flex items-center gap-0" }, kD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-700" }, "/", -1), SD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-600" }, "/", -1), ra = {
23549
+ }, kD = { class: "flex items-center gap-0" }, SD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-700" }, "/", -1), CD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-600" }, "/", -1), ra = {
23547
23550
  __name: "DateInput",
23548
23551
  props: {
23549
23552
  modelValue: String,
@@ -23582,7 +23585,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23582
23585
  function m() {
23583
23586
  s.value || (s.value = U().format("DD")), u();
23584
23587
  }
23585
- return (y, k) => (b(), S("div", wD, [
23588
+ return (y, k) => (b(), S("div", kD, [
23586
23589
  le(na, {
23587
23590
  modelValue: i.value,
23588
23591
  "onUpdate:modelValue": [
@@ -23596,7 +23599,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23596
23599
  ref_key: "yearRef",
23597
23600
  ref: a
23598
23601
  }, null, 8, ["modelValue", "disabled"]),
23599
- kD,
23602
+ SD,
23600
23603
  le(na, {
23601
23604
  modelValue: o.value,
23602
23605
  "onUpdate:modelValue": [
@@ -23610,7 +23613,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23610
23613
  ref_key: "monthRef",
23611
23614
  ref: l
23612
23615
  }, null, 8, ["modelValue", "disabled"]),
23613
- SD,
23616
+ CD,
23614
23617
  le(na, {
23615
23618
  modelValue: s.value,
23616
23619
  "onUpdate:modelValue": [
@@ -23626,15 +23629,15 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23626
23629
  }, null, 8, ["modelValue", "disabled"])
23627
23630
  ]));
23628
23631
  }
23629
- }, CD = { class: "tabular-nums" }, OD = {
23632
+ }, OD = { class: "tabular-nums" }, MD = {
23630
23633
  key: 1,
23631
23634
  class: "flex items-center"
23632
- }, MD = /* @__PURE__ */ A("span", { class: "px-1 text-gray-400 dark:text-gray-600" }, "➞", -1), TD = { class: "flex gap-3" }, $D = {
23635
+ }, TD = /* @__PURE__ */ A("span", { class: "px-1 text-gray-400 dark:text-gray-600" }, "➞", -1), $D = { class: "flex gap-3" }, AD = {
23633
23636
  key: 0,
23634
23637
  class: "w-32 py-2 border-r dark:border-gray-800 flex flex-col gap-3 shrink-0"
23635
- }, AD = ["onClick"], ED = {
23638
+ }, ED = ["onClick"], DD = {
23636
23639
  name: "WpicAdvDateField"
23637
- }, DD = /* @__PURE__ */ Object.assign(ED, {
23640
+ }, ND = /* @__PURE__ */ Object.assign(DD, {
23638
23641
  props: {
23639
23642
  modelValue: {},
23640
23643
  label: String,
@@ -23713,12 +23716,12 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23713
23716
  noCloseClasses: ["date-segment"]
23714
23717
  }, {
23715
23718
  content: xe(() => [
23716
- A("div", TD, [
23717
- t.shortcuts ? (b(), S("div", $D, [
23719
+ A("div", $D, [
23720
+ t.shortcuts ? (b(), S("div", AD, [
23718
23721
  (b(!0), S($e, null, We(d, (p) => (b(), S("div", {
23719
23722
  class: "opacity-50 hover:opacity-100 dark:text-gray-300 cursor-pointer",
23720
23723
  onClick: (g) => p.onClick()
23721
- }, be(p.text), 9, AD))), 256))
23724
+ }, be(p.text), 9, ED))), 256))
23722
23725
  ])) : Q("", !0),
23723
23726
  le(Ul, {
23724
23727
  doubleMonths: t.doubleMonths,
@@ -23758,8 +23761,8 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23758
23761
  }))
23759
23762
  ]),
23760
23763
  default: xe(() => [
23761
- A("div", CD, [
23762
- t.range ? t.range ? (b(), S("div", OD, [
23764
+ A("div", OD, [
23765
+ t.range ? t.range ? (b(), S("div", MD, [
23763
23766
  le(ra, {
23764
23767
  modelValue: c.value[0],
23765
23768
  "onUpdate:modelValue": h[3] || (h[3] = (p) => c.value[0] = p),
@@ -23767,7 +23770,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23767
23770
  "onUpdate:displayYear": h[4] || (h[4] = (p) => i.value = p),
23768
23771
  "onUpdate:displayMonth": h[5] || (h[5] = (p) => o.value = p)
23769
23772
  }, null, 8, ["modelValue", "disabled"]),
23770
- MD,
23773
+ TD,
23771
23774
  le(ra, {
23772
23775
  modelValue: c.value[1],
23773
23776
  "onUpdate:modelValue": h[6] || (h[6] = (p) => c.value[1] = p),
@@ -23797,9 +23800,9 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23797
23800
  _: 1
23798
23801
  }, 8, ["disabled"]));
23799
23802
  }
23800
- }), ND = {
23803
+ }), LD = {
23801
23804
  name: "WpicSlidePanel"
23802
- }, LD = /* @__PURE__ */ Object.assign(ND, {
23805
+ }, ID = /* @__PURE__ */ Object.assign(LD, {
23803
23806
  props: {
23804
23807
  visible: {
23805
23808
  type: Boolean,
@@ -23870,12 +23873,12 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23870
23873
  ], 2)
23871
23874
  ], 2));
23872
23875
  }
23873
- }), ID = { class: "absolute inset-0 flex items-center justify-center py-12" }, BD = { class: "text-lg font-medium dark:text-gray-300" }, PD = {
23876
+ }), BD = { class: "absolute inset-0 flex items-center justify-center py-12" }, PD = { class: "text-lg font-medium dark:text-gray-300" }, VD = {
23874
23877
  key: 0,
23875
23878
  class: "flex justify-end px-6 pb-4"
23876
- }, VD = {
23879
+ }, RD = {
23877
23880
  name: "WpicDialog"
23878
- }, RD = /* @__PURE__ */ Object.assign(VD, {
23881
+ }, _D = /* @__PURE__ */ Object.assign(RD, {
23879
23882
  props: {
23880
23883
  title: String,
23881
23884
  visible: Boolean,
@@ -23914,7 +23917,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23914
23917
  }), (d, f) => (b(), S("div", {
23915
23918
  class: G(["", { flex: t.visible, hidden: !t.visible }])
23916
23919
  }, [
23917
- A("div", ID, [
23920
+ A("div", BD, [
23918
23921
  A("div", {
23919
23922
  class: "absolute inset-0 bg-black/10 dark:bg-black/75 z-10",
23920
23923
  onClick: o
@@ -23925,7 +23928,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23925
23928
  A("div", {
23926
23929
  class: G(["px-6 pt-4 pb-4 flex items-center justify-between", { "border-b pb-3 dark:border-gray-900": t.border }])
23927
23930
  }, [
23928
- A("span", BD, be(t.title), 1),
23931
+ A("span", PD, be(t.title), 1),
23929
23932
  A("span", {
23930
23933
  class: "cursor-pointer",
23931
23934
  onClick: o
@@ -23940,16 +23943,16 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23940
23943
  }, [
23941
23944
  Me(d.$slots, "default")
23942
23945
  ], 2),
23943
- d.$slots.buttons ? (b(), S("div", PD, [
23946
+ d.$slots.buttons ? (b(), S("div", VD, [
23944
23947
  Me(d.$slots, "buttons")
23945
23948
  ])) : Q("", !0)
23946
23949
  ], 2)
23947
23950
  ])
23948
23951
  ], 2));
23949
23952
  }
23950
- }), _D = ["onClick"], jD = {
23953
+ }), jD = ["onClick"], zD = {
23951
23954
  name: "WpicTabs"
23952
- }, zD = /* @__PURE__ */ Object.assign(jD, {
23955
+ }, FD = /* @__PURE__ */ Object.assign(zD, {
23953
23956
  props: {
23954
23957
  modelValue: {
23955
23958
  type: String,
@@ -23974,7 +23977,8 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23974
23977
  key: u.name,
23975
23978
  class: G(["items-center flex leading-snug cursor-pointer px-6 -mb-[px]", {
23976
23979
  "py-2": t.pills,
23977
- "border-b-[2px] border-transparent py-3": !t.pills,
23980
+ "border-b-[2px] py-3": !t.pills,
23981
+ "border-transparent": !t.pills && u.name != t.modelValue,
23978
23982
  "dark:border-gray-930 hover:text-gray-800 dark:hover:text-gray-400 hover:border-gray-200": u.name != t.modelValue,
23979
23983
  "text-wpic-500 border-b-wpic-500 dark:text-wpic-600 dark:border-b-wpic-600": !t.pills && u.name === t.modelValue,
23980
23984
  "rounded-lg": t.pills,
@@ -23995,16 +23999,16 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
23995
23999
  ]),
23996
24000
  _: 2
23997
24001
  }, 1032, ["class"]))
23998
- ], 10, _D))), 128))
24002
+ ], 10, jD))), 128))
23999
24003
  ], 2),
24000
24004
  A("div", null, [
24001
24005
  Me(l.$slots, "default")
24002
24006
  ])
24003
24007
  ], 64));
24004
24008
  }
24005
- }), FD = {
24009
+ }), HD = {
24006
24010
  name: "WpicTabPane"
24007
- }, HD = /* @__PURE__ */ Object.assign(FD, {
24011
+ }, WD = /* @__PURE__ */ Object.assign(HD, {
24008
24012
  props: {
24009
24013
  label: {
24010
24014
  type: String,
@@ -24039,76 +24043,76 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
24039
24043
  Me(s.$slots, "default")
24040
24044
  ], 2)) : Q("", !0);
24041
24045
  }
24042
- }), WD = {}, UD = {
24046
+ }), UD = {}, qD = {
24043
24047
  xmlns: "http://www.w3.org/2000/svg",
24044
24048
  fill: "none",
24045
24049
  viewBox: "0 0 24 24",
24046
24050
  "stroke-width": "1.5",
24047
24051
  stroke: "currentColor"
24048
- }, qD = /* @__PURE__ */ A("path", {
24052
+ }, KD = /* @__PURE__ */ A("path", {
24049
24053
  "stroke-linecap": "round",
24050
24054
  "stroke-linejoin": "round",
24051
24055
  d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"
24052
- }, null, -1), KD = [
24053
- qD
24056
+ }, null, -1), YD = [
24057
+ KD
24054
24058
  ];
24055
- function YD(t, e) {
24056
- return b(), S("svg", UD, KD);
24059
+ function JD(t, e) {
24060
+ return b(), S("svg", qD, YD);
24057
24061
  }
24058
- const JD = /* @__PURE__ */ ve(WD, [["render", YD]]), GD = {}, ZD = {
24062
+ const GD = /* @__PURE__ */ ve(UD, [["render", JD]]), ZD = {}, XD = {
24059
24063
  xmlns: "http://www.w3.org/2000/svg",
24060
24064
  fill: "none",
24061
24065
  viewBox: "0 0 24 24",
24062
24066
  "stroke-width": "1.5",
24063
24067
  stroke: "currentColor"
24064
- }, XD = /* @__PURE__ */ A("path", {
24068
+ }, QD = /* @__PURE__ */ A("path", {
24065
24069
  "stroke-linecap": "round",
24066
24070
  "stroke-linejoin": "round",
24067
24071
  d: "m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"
24068
- }, null, -1), QD = [
24069
- XD
24072
+ }, null, -1), e6 = [
24073
+ QD
24070
24074
  ];
24071
- function e6(t, e) {
24072
- return b(), S("svg", ZD, QD);
24075
+ function t6(t, e) {
24076
+ return b(), S("svg", XD, e6);
24073
24077
  }
24074
- const t6 = /* @__PURE__ */ ve(GD, [["render", e6]]), n6 = {}, r6 = {
24078
+ const n6 = /* @__PURE__ */ ve(ZD, [["render", t6]]), r6 = {}, i6 = {
24075
24079
  xmlns: "http://www.w3.org/2000/svg",
24076
24080
  fill: "none",
24077
24081
  viewBox: "0 0 24 24",
24078
24082
  "stroke-width": "1.5",
24079
24083
  stroke: "currentColor"
24080
- }, i6 = /* @__PURE__ */ A("path", {
24084
+ }, o6 = /* @__PURE__ */ A("path", {
24081
24085
  "stroke-linecap": "round",
24082
24086
  "stroke-linejoin": "round",
24083
24087
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
24084
- }, null, -1), o6 = [
24085
- i6
24088
+ }, null, -1), s6 = [
24089
+ o6
24086
24090
  ];
24087
- function s6(t, e) {
24088
- return b(), S("svg", r6, o6);
24091
+ function a6(t, e) {
24092
+ return b(), S("svg", i6, s6);
24089
24093
  }
24090
- const a6 = /* @__PURE__ */ ve(n6, [["render", s6]]), l6 = {}, c6 = {
24094
+ const l6 = /* @__PURE__ */ ve(r6, [["render", a6]]), c6 = {}, u6 = {
24091
24095
  xmlns: "http://www.w3.org/2000/svg",
24092
24096
  fill: "none",
24093
24097
  viewBox: "0 0 24 24",
24094
24098
  "stroke-width": "1.5",
24095
24099
  stroke: "currentColor"
24096
- }, u6 = /* @__PURE__ */ A("path", {
24100
+ }, d6 = /* @__PURE__ */ A("path", {
24097
24101
  "stroke-linecap": "round",
24098
24102
  "stroke-linejoin": "round",
24099
24103
  d: "m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
24100
- }, null, -1), d6 = [
24101
- u6
24104
+ }, null, -1), f6 = [
24105
+ d6
24102
24106
  ];
24103
- function f6(t, e) {
24104
- return b(), S("svg", c6, d6);
24107
+ function h6(t, e) {
24108
+ return b(), S("svg", u6, f6);
24105
24109
  }
24106
- const h6 = /* @__PURE__ */ ve(l6, [["render", f6]]), p6 = { class: "w-6" }, m6 = { class: "flex-1" }, g6 = {
24110
+ const p6 = /* @__PURE__ */ ve(c6, [["render", h6]]), m6 = { class: "w-6" }, g6 = { class: "flex-1" }, y6 = {
24107
24111
  key: 0,
24108
24112
  class: "mb-2"
24109
- }, y6 = {
24113
+ }, v6 = {
24110
24114
  name: "WpicAlert"
24111
- }, v6 = /* @__PURE__ */ Object.assign(y6, {
24115
+ }, b6 = /* @__PURE__ */ Object.assign(v6, {
24112
24116
  props: {
24113
24117
  title: String,
24114
24118
  text: String,
@@ -24127,23 +24131,23 @@ const h6 = /* @__PURE__ */ ve(l6, [["render", f6]]), p6 = { class: "w-6" }, m6 =
24127
24131
  "bg-green-50 text-green-950 dark:text-green-200 dark:bg-green-950 text-opacity-75": t.success
24128
24132
  }])
24129
24133
  }, [
24130
- A("div", p6, [
24131
- t.warning ? (b(), ge(JD, {
24134
+ A("div", m6, [
24135
+ t.warning ? (b(), ge(GD, {
24132
24136
  key: 0,
24133
24137
  class: "w-full aspect-square"
24134
- })) : t.info ? (b(), ge(t6, {
24138
+ })) : t.info ? (b(), ge(n6, {
24135
24139
  key: 1,
24136
24140
  class: "w-full aspect-square"
24137
- })) : t.success ? (b(), ge(a6, {
24141
+ })) : t.success ? (b(), ge(l6, {
24138
24142
  key: 2,
24139
24143
  class: "w-full aspect-square"
24140
- })) : t.error ? (b(), ge(h6, {
24144
+ })) : t.error ? (b(), ge(p6, {
24141
24145
  key: 3,
24142
24146
  class: "w-full aspect-square"
24143
24147
  })) : Q("", !0)
24144
24148
  ]),
24145
- A("div", m6, [
24146
- t.title ? (b(), S("div", g6, be(t.title), 1)) : Q("", !0),
24149
+ A("div", g6, [
24150
+ t.title ? (b(), S("div", y6, be(t.title), 1)) : Q("", !0),
24147
24151
  A("span", {
24148
24152
  class: G(["", {
24149
24153
  "text-gray-950 dark:text-gray-200 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
@@ -24187,19 +24191,19 @@ function Up() {
24187
24191
  }
24188
24192
  };
24189
24193
  }
24190
- const b6 = {
24194
+ const x6 = {
24191
24195
  key: 0,
24192
24196
  class: "confirm-modal-overlay z-40"
24193
- }, x6 = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940 p-6 rounded-lg w-128 flex flex-col" }, w6 = { class: "text-lg font-semibold mb-6" }, k6 = { class: "mb-12" }, S6 = { class: "flex justify-end" }, C6 = {
24197
+ }, w6 = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940 p-6 rounded-lg w-128 flex flex-col" }, k6 = { class: "text-lg font-semibold mb-6" }, S6 = { class: "mb-12" }, C6 = { class: "flex justify-end" }, O6 = {
24194
24198
  name: "WpicConfirm"
24195
- }, O6 = /* @__PURE__ */ Object.assign(C6, {
24199
+ }, M6 = /* @__PURE__ */ Object.assign(O6, {
24196
24200
  setup(t) {
24197
24201
  const { visible: e, title: n, text: r, positive: i, negative: o, onConfirm: s, onCancel: a } = Up();
24198
- return (l, c) => P(e) ? (b(), S("div", b6, [
24199
- A("div", x6, [
24200
- A("div", w6, be(P(n)), 1),
24201
- A("div", k6, be(P(r)), 1),
24202
- A("div", S6, [
24202
+ return (l, c) => P(e) ? (b(), S("div", x6, [
24203
+ A("div", w6, [
24204
+ A("div", k6, be(P(n)), 1),
24205
+ A("div", S6, be(P(r)), 1),
24206
+ A("div", C6, [
24203
24207
  le(Mi, { onClick: P(a) }, {
24204
24208
  default: xe(() => [
24205
24209
  Ie("Cancel")
@@ -24220,15 +24224,15 @@ const b6 = {
24220
24224
  ])
24221
24225
  ])) : Q("", !0);
24222
24226
  }
24223
- }), M6 = /* @__PURE__ */ ve(O6, [["__scopeId", "data-v-613542ab"]]), oa = { WpicColorPicker: Sf, WpicAlert: v6, WpicToggleSwitch: wf, WpicAdvDateField: DD, WpicCalendar: Ul, WpicTextarea: kf, WpicDialog: RD, WpicSlidePanel: LD, WpicDateField: vD, WpicFormInput: Yi, WpicButton: Mi, WpicBadge: j4, WpicTextEditor: v4, WpicInputGroup: Bg, WpicButtonGroup: Dg, WpicForm: Vg, WpicFormField: Cf, WpicSpinner: Zr, WpicTooltip: Of, WpicPopover: mr, WpicChoiceList: xf, WpicCard: t5, WpicCardSection: o5, WpicProgressBar: c5, WpicTag: f5, WpicTagGroup: p5, WpicPagination: J5, WpicLoadingPanel: w5, WpicTable: NS, WpicTableColumn: LS, WpicTabs: zD, WpicTabPane: HD, WpicConfirm: M6 };
24227
+ }), T6 = /* @__PURE__ */ ve(M6, [["__scopeId", "data-v-613542ab"]]), oa = { WpicColorPicker: Sf, WpicAlert: b6, WpicToggleSwitch: wf, WpicAdvDateField: ND, WpicCalendar: Ul, WpicTextarea: kf, WpicDialog: _D, WpicSlidePanel: ID, WpicDateField: bD, WpicFormInput: Yi, WpicButton: Mi, WpicBadge: z4, WpicTextEditor: v4, WpicInputGroup: Bg, WpicButtonGroup: Dg, WpicForm: Vg, WpicFormField: Cf, WpicSpinner: Zr, WpicTooltip: Of, WpicPopover: mr, WpicChoiceList: xf, WpicCard: t5, WpicCardSection: o5, WpicProgressBar: c5, WpicTag: f5, WpicTagGroup: p5, WpicPagination: J5, WpicLoadingPanel: w5, WpicTable: NS, WpicTableColumn: LS, WpicTabs: FD, WpicTabPane: WD, WpicConfirm: T6 };
24224
24228
  function qp(t, e) {
24225
24229
  for (const n in e)
24226
24230
  Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? qp(t[n], e[n]) : t[n] = e[n]);
24227
24231
  }
24228
- const T6 = {
24232
+ const $6 = {
24229
24233
  useConfirm: Up
24230
24234
  };
24231
- function $6(t, e) {
24235
+ function A6(t, e) {
24232
24236
  qp(ce, e);
24233
24237
  for (const n in oa)
24234
24238
  if (oa.hasOwnProperty(n)) {
@@ -24236,12 +24240,12 @@ function $6(t, e) {
24236
24240
  t.component(r.name, r);
24237
24241
  }
24238
24242
  }
24239
- const D6 = {
24240
- install: $6,
24241
- composables: T6,
24243
+ const N6 = {
24244
+ install: A6,
24245
+ composables: $6,
24242
24246
  options: ce
24243
24247
  };
24244
24248
  export {
24245
- D6 as default,
24249
+ N6 as default,
24246
24250
  Up as useConfirm
24247
24251
  };