@quoreadmin/ui 1.0.15 → 1.0.16

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
@@ -64459,8 +64459,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
64459
64459
  idleClass: "!bg-idle-pass",
64460
64460
  loading: "",
64461
64461
  name: n("HC_PASS"),
64462
- statusText: n("HC_PASSED"),
64463
- mobileOrder: 1
64462
+ statusText: n("HC_PASSED")
64464
64463
  },
64465
64464
  {
64466
64465
  state: "failed",
@@ -64472,8 +64471,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
64472
64471
  mobileIdleClass: "!bg-red-30/25",
64473
64472
  loading: "",
64474
64473
  name: n("HC_FAIL"),
64475
- statusText: n("HC_A_TASK_HAS_BEEN_CREATED"),
64476
- mobileOrder: 4
64474
+ statusText: n("HC_A_TASK_HAS_BEEN_CREATED")
64477
64475
  },
64478
64476
  {
64479
64477
  state: "repaired",
@@ -64484,8 +64482,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
64484
64482
  idleClass: "!bg-orange-20/25",
64485
64483
  loading: "",
64486
64484
  name: n("HC_REPAIR"),
64487
- statusText: n("HC_TASK_CLOSED"),
64488
- mobileOrder: 3
64485
+ statusText: n("HC_TASK_CLOSED")
64489
64486
  },
64490
64487
  {
64491
64488
  state: "N/A",
@@ -64498,8 +64495,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
64498
64495
  loading: "",
64499
64496
  name: n("HC_N/A"),
64500
64497
  statusText: n("HC_N/A"),
64501
- mobileIconClass: "!p-[0.1rem]",
64502
- mobileOrder: 2
64498
+ mobileIconClass: "!p-[0.1rem]"
64503
64499
  }
64504
64500
  ];
64505
64501
  }
@@ -64512,13 +64508,10 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
64512
64508
  },
64513
64509
  emits: ["update:state"],
64514
64510
  setup(n, { emit: e }) {
64515
- const { deviceType: t } = yp(), r = B(n.currentState), i = B(n.options.length === 1), s = Y(() => n.disabled || !!n.loading), o = Y(() => {
64516
- const c = n.options;
64517
- return l.value ? c.sort((d, f) => d.mobileOrder - f.mobileOrder) : c;
64518
- }), a = Y(() => o.value.find(
64519
- (c) => c.state === r.value
64520
- )), l = Y(() => t.value !== "desktop" || !cr.md), u = (c, d) => {
64521
- r.value = r.value === d ? "default" : d, e("update:state", { state: r.value, event: c });
64511
+ const { deviceType: t } = yp(), r = B(n.currentState), i = B(n.options.length === 1), s = Y(() => n.disabled || !!n.loading), o = Y(() => n.options.find(
64512
+ (u) => u.state === r.value
64513
+ )), a = Y(() => t.value !== "desktop" || !cr.md), l = (u, c) => {
64514
+ r.value = r.value === c ? "default" : c, e("update:state", { state: r.value, event: u });
64522
64515
  };
64523
64516
  return dt(
64524
64517
  () => n.loading,
@@ -64530,12 +64523,11 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
64530
64523
  selectedState: r,
64531
64524
  singleOption: i,
64532
64525
  // Computed
64533
- sortedOptions: o,
64534
64526
  isDisabled: s,
64535
- selectedOption: a,
64536
- shouldUseSwipe: l,
64527
+ selectedOption: o,
64528
+ shouldUseSwipe: a,
64537
64529
  // Methods
64538
- onSetState: u,
64530
+ onSetState: l,
64539
64531
  // Composable
64540
64532
  mq: cr
64541
64533
  };
@@ -64551,8 +64543,8 @@ function nle(n, e, t, r, i, s) {
64551
64543
  const o = K("q-icon"), a = K("q-button"), l = K("q-tooltip");
64552
64544
  return C(), E(me, null, [
64553
64545
  n.isColorKey ? (C(), E("div", X0e, [
64554
- (C(!0), E(me, null, Pe(n.sortedOptions, (u, c) => (C(), E("div", {
64555
- key: c,
64546
+ (C(!0), E(me, null, Pe(n.options, (u) => (C(), E("div", {
64547
+ key: u.state,
64556
64548
  class: "flex flex-col items-center gap-1.5"
64557
64549
  }, [
64558
64550
  P("div", {
@@ -64562,11 +64554,12 @@ function nle(n, e, t, r, i, s) {
64562
64554
  ])
64563
64555
  }, [
64564
64556
  L(o, {
64565
- icon: u.mobileIcon || u.icon,
64557
+ icon: u.icon,
64566
64558
  type: u.iconType || "line",
64567
64559
  size: "lg",
64568
- color: "white"
64569
- }, null, 8, ["icon", "type"])
64560
+ color: "white",
64561
+ class: j(u.mobileIconClass || "!p-[0.4rem]")
64562
+ }, null, 8, ["icon", "type", "class"])
64570
64563
  ], 2),
64571
64564
  P("span", J0e, J(u.name), 1)
64572
64565
  ]))), 128))
@@ -64577,8 +64570,8 @@ function nle(n, e, t, r, i, s) {
64577
64570
  n.isDisabled ? "pointer-events-none" : ""
64578
64571
  ])
64579
64572
  }, [
64580
- (C(!0), E(me, null, Pe(n.sortedOptions, (u, c) => (C(), H(a, D({
64581
- key: c,
64573
+ (C(!0), E(me, null, Pe(n.options, (u) => (C(), H(a, D({
64574
+ key: u.state,
64582
64575
  size: "sm",
64583
64576
  class: [
64584
64577
  "!w-14 !h-14 !min-w-fit !p-0",
@@ -64586,7 +64579,7 @@ function nle(n, e, t, r, i, s) {
64586
64579
  ],
64587
64580
  loading: n.loading === "default" && u.state === n.currentState || n.loading === u.state
64588
64581
  }, {
64589
- [fo(!n.isDisabled && "click")]: (d) => n.onSetState(d, u.state)
64582
+ [fo(!n.isDisabled && "click")]: (c) => n.onSetState(c, u.state)
64590
64583
  }), {
64591
64584
  default: ne(() => [
64592
64585
  L(o, {
@@ -64607,15 +64600,15 @@ function nle(n, e, t, r, i, s) {
64607
64600
  n.isDisabled ? "pointer-events-none" : ""
64608
64601
  ])
64609
64602
  }, [
64610
- (C(!0), E(me, null, Pe(n.sortedOptions, (u, c) => (C(), E("div", D({
64611
- key: c,
64603
+ (C(!0), E(me, null, Pe(n.options, (u) => (C(), E("div", D({
64604
+ key: u.state,
64612
64605
  class: [
64613
64606
  "flex items-center justify-center shrink overflow-hidden max-w-[4.5rem]",
64614
64607
  n.singleOption ? "w-full" : "w-1/4",
64615
64608
  u.state !== n.selectedState && n.singleOption ? u.mobileIdleClass || u.idleClass : u.activeClass
64616
64609
  ]
64617
64610
  }, {
64618
- [fo(!n.isDisabled && "click")]: (d) => n.onSetState(d, u.state)
64611
+ [fo(!n.isDisabled && "click")]: (c) => n.onSetState(c, u.state)
64619
64612
  }), [
64620
64613
  L(o, {
64621
64614
  icon: u.mobileIcon || u.icon,
@@ -64632,7 +64625,9 @@ function nle(n, e, t, r, i, s) {
64632
64625
  n.isDisabled ? "pointer-events-none" : ""
64633
64626
  ])
64634
64627
  }, [
64635
- (C(!0), E(me, null, Pe(n.sortedOptions, (u, c) => (C(), E("div", { key: c }, [
64628
+ (C(!0), E(me, null, Pe(n.options, (u) => (C(), E("div", {
64629
+ key: u.state
64630
+ }, [
64636
64631
  L(l, {
64637
64632
  disabled: !n.mq.md,
64638
64633
  class: "h-6"
@@ -64647,7 +64642,7 @@ function nle(n, e, t, r, i, s) {
64647
64642
  loading: n.loading === "default" && u.state === n.currentState || n.loading === u.state,
64648
64643
  "is-fab": ""
64649
64644
  }, {
64650
- [fo(!n.isDisabled && "click")]: (d) => n.onSetState(d, u.state)
64645
+ [fo(!n.isDisabled && "click")]: (c) => n.onSetState(c, u.state)
64651
64646
  }), {
64652
64647
  default: ne(() => [
64653
64648
  L(o, {
@@ -64695,7 +64690,7 @@ function nle(n, e, t, r, i, s) {
64695
64690
  })
64696
64691
  ], 64);
64697
64692
  }
64698
- const qfe = /* @__PURE__ */ ze(Q0e, [["render", nle], ["__scopeId", "data-v-3b3cb1ea"]]), rle = xe({
64693
+ const qfe = /* @__PURE__ */ ze(Q0e, [["render", nle], ["__scopeId", "data-v-67cf0eab"]]), rle = xe({
64699
64694
  name: "QList",
64700
64695
  components: {
64701
64696
  QBadge: X2