@dpa-id-components/dpa-shared-components 10.1.0 → 11.0.0

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.
@@ -4770,7 +4770,7 @@ var hp = {
4770
4770
  for (const a of r) {
4771
4771
  if (!a)
4772
4772
  continue;
4773
- if ((/* @__PURE__ */ new Set([...a.map((s) => s.value)])).size > 1)
4773
+ if (new Set(a.map((s) => s.value)).size > 1)
4774
4774
  break;
4775
4775
  a.forEach((s) => s.remove()), n.prepend(a[0]);
4776
4776
  }
@@ -7550,7 +7550,7 @@ const Ps = /* @__PURE__ */ Va(wh, [["render", _h]]), xh = ["checked", "aria-chec
7550
7550
  class: fe(["text-small flex flex-col", [a.disabled ? "text-gray-400" : "cursor-pointer text-gray-900"]])
7551
7551
  }, [
7552
7552
  se("input", {
7553
- class: fe(["peer relative h-0 w-0 appearance-none self-center focus:outline-none", a.size]),
7553
+ class: fe(["peer relative size-0 appearance-none self-center focus:outline-none", a.size]),
7554
7554
  type: "checkbox",
7555
7555
  checked: a.checked,
7556
7556
  "aria-checked": a.checked,
@@ -7559,8 +7559,8 @@ const Ps = /* @__PURE__ */ Va(wh, [["render", _h]]), xh = ["checked", "aria-chec
7559
7559
  }, null, 42, xh),
7560
7560
  se("span", {
7561
7561
  class: fe(["flex items-center before:box-border before:inline-block before:shrink-0 before:border-2 before:transition-colors before:content-[''] after:absolute after:block peer-checked:opacity-100 peer-checked:after:content-[url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyMCAyMCcgZmlsbD0nbm9uZSc+PHJlY3QgLz48cGF0aCBmaWxsLXJ1bGU9J2V2ZW5vZGQnIGNsaXAtcnVsZT0nZXZlbm9kZCcgZD0nTTguMjE5NjUgMTVDNy45ODk2NSAxNSA3Ljc2OTY1IDE0LjkwNSA3LjYxMjE1IDE0LjczNzVMMy41NTk2NSAxMC40MjE3QzMuMjQzODEgMTAuMDg2NyAzLjI2MTMxIDkuNTU5MTggMy41OTYzMSA5LjI0NDE4QzMuOTMyMTUgOC45MjkxOCA0LjQ1OTY1IDguOTQ1ODUgNC43NzM4MSA5LjI4MDg1TDguMjExMzEgMTIuOTRMMTUuMjE4IDUuMjcxNjhDMTUuNTI5NiA0LjkzMDg1IDE2LjA1NjMgNC45MDgzNSAxNi4zOTYzIDUuMjE4MzVDMTYuNzM1NSA1LjUyODM1IDE2Ljc1ODggNi4wNTU4NSAxNi40NDg4IDYuMzk1MDFMOC44MzQ2NSAxNC43MjgzQzguNjc4ODEgMTQuOSA4LjQ1NzE1IDE0Ljk5ODMgOC4yMjU0OCAxNUg4LjIxOTY1WicgZmlsbD0nd2hpdGUnLz48L3N2Zz4=)]", {
7562
- "before:h-5 before:w-5 after:h-5 after:w-5": a.size === "medium",
7563
- "before:h-4 before:w-4 after:h-4 after:w-4": a.size === "small",
7562
+ "before:size-5 after:size-5": a.size === "medium",
7563
+ "before:size-4 after:size-4": a.size === "small",
7564
7564
  "before:border-blue-default peer-checked:before:bg-blue-default peer-hover:before:border-blue-dark peer-hover:peer-checked:before:bg-blue-dark": a.color === "blue",
7565
7565
  "before:border-gray-800 peer-checked:before:bg-gray-800 peer-hover:before:border-gray-900 peer-hover:peer-checked:before:bg-gray-900": a.color === "gray",
7566
7566
  "before:border-gray-500 peer-checked:before:bg-gray-500": a.disabled,
@@ -7881,7 +7881,7 @@ const Ps = /* @__PURE__ */ Va(wh, [["render", _h]]), xh = ["checked", "aria-chec
7881
7881
  _: 3
7882
7882
  }, 8, ["class", "disabled", "href"]));
7883
7883
  }
7884
- }), $h = {}, Eh = { class: "flex [&>*:first-child]:rounded-l-full [&>*:last-child]:rounded-r-full [&>*:last-child]:border-r [&>*]:border-[1px] [&>*]:border-r-0 [&>*]:border-gray-300" };
7884
+ }), $h = {}, Eh = { class: "flex [&>*:first-child]:rounded-l-full [&>*:last-child]:rounded-r-full [&>*:last-child]:border-r [&>*]:border [&>*]:border-r-0 [&>*]:border-gray-300" };
7885
7885
  function Ih(e, t) {
7886
7886
  return P(), z("div", Eh, [
7887
7887
  de(e.$slots, "default")
@@ -7968,28 +7968,28 @@ const Rw = /* @__PURE__ */ Va(Bh, [["render", Rh]]), zw = /* @__PURE__ */ Ae({
7968
7968
  hasBorderTop: { type: Boolean, default: !0 },
7969
7969
  openAsDefault: { type: Boolean, default: !0 }
7970
7970
  },
7971
- setup(e) {
7972
- const t = e, r = re();
7971
+ setup(e, { expose: t }) {
7972
+ const r = e, n = re();
7973
7973
  Un(() => {
7974
- r.value = t.openAsDefault;
7974
+ n.value = r.openAsDefault;
7975
7975
  });
7976
- const n = () => {
7977
- r.value = !r.value;
7976
+ const a = () => {
7977
+ n.value = !n.value;
7978
7978
  };
7979
- return (a, o) => (P(), z($e, null, [
7979
+ return t({ openMenu: n }), (o, s) => (P(), z($e, null, [
7980
7980
  se("div", {
7981
- class: fe(a.hasBorderTop ? "border-t-[1px] border-t-gray-300" : "")
7981
+ class: fe(o.hasBorderTop ? "border-t-[1px] border-t-gray-300" : "")
7982
7982
  }, null, 2),
7983
7983
  Ne(Da, {
7984
7984
  color: "transparent",
7985
7985
  class: "flex w-full justify-between border-none",
7986
- onClick: n
7986
+ onClick: a
7987
7987
  }, {
7988
7988
  default: Te(() => [
7989
- se("h3", zh, Be(a.headline), 1),
7989
+ se("h3", zh, Be(o.headline), 1),
7990
7990
  Ne(gt, {
7991
7991
  name: "chevron-down",
7992
- class: fe(["rounded-full text-gray-700 transition-transform duration-500 hover:bg-gray-300", { "rotate-180": r.value }])
7992
+ class: fe(["rounded-full text-gray-700 transition-transform duration-500 hover:bg-gray-300", { "rotate-180": n.value }])
7993
7993
  }, null, 8, ["class"])
7994
7994
  ]),
7995
7995
  _: 1
@@ -8003,8 +8003,8 @@ const Rw = /* @__PURE__ */ Va(Bh, [["render", Rh]]), zw = /* @__PURE__ */ Ae({
8003
8003
  "leave-to-class": "transform -translate-y-[20px] opacity-0"
8004
8004
  }, {
8005
8005
  default: Te(() => [
8006
- r.value ? (P(), z("div", Nh, [
8007
- de(a.$slots, "default")
8006
+ n.value ? (P(), z("div", Nh, [
8007
+ de(o.$slots, "default")
8008
8008
  ])) : K("", !0)
8009
8009
  ]),
8010
8010
  _: 3
@@ -17698,7 +17698,7 @@ const Vi = {
17698
17698
  },
17699
17699
  v.monthPicker ? {} : {
17700
17700
  range: s.value,
17701
- startDate: Array.isArray(v.selectedDate) ? v.selectedDate[0] : v.selectedDate
17701
+ startDate: Array.isArray(n.selectedDate) ? n.selectedDate[0] : n.selectedDate
17702
17702
  },
17703
17703
  {
17704
17704
  "focus-start-date": "",
@@ -18122,7 +18122,7 @@ const Vb = {
18122
18122
  name: n.iconIsFilled ? "saved-search-fill" : "saved-search"
18123
18123
  }, null, 8, ["name"]),
18124
18124
  se("div", {
18125
- class: fe(["absolute inset-0 mt-0 h-full w-full rounded-full opacity-10 group-hover:block", { hidden: !n.isActive }]),
18125
+ class: fe(["absolute inset-0 mt-0 size-full rounded-full opacity-10 group-hover:block", { hidden: !n.isActive }]),
18126
18126
  style: rt({ backgroundColor: n.fill })
18127
18127
  }, null, 6),
18128
18128
  se("p", {
@@ -18624,7 +18624,7 @@ function Ja(e) {
18624
18624
  }
18625
18625
  function Ks(e) {
18626
18626
  const t = Js(), r = dn(e) ? fn(e) : e;
18627
- return r.transform !== "none" || r.perspective !== "none" || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
18627
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
18628
18628
  }
18629
18629
  function l1(e) {
18630
18630
  let t = Qn(e);
@@ -19305,7 +19305,7 @@ const O1 = { class: "flex items-center" }, D1 = ["placeholder"], C1 = /* @__PURE
19305
19305
  value: d
19306
19306
  });
19307
19307
  }, c = () => {
19308
- r.isOpen ? f() : h();
19308
+ (r.isOpen ? f : h)();
19309
19309
  }, f = () => {
19310
19310
  r.isOpen && n("close");
19311
19311
  }, h = () => {
@@ -19454,7 +19454,7 @@ const O1 = { class: "flex items-center" }, D1 = ["placeholder"], C1 = /* @__PURE
19454
19454
  [C(Wa), f]
19455
19455
  ]);
19456
19456
  }
19457
- }), Hw = /* @__PURE__ */ Va(z1, [["__scopeId", "data-v-5a437bcd"]]), jw = /* @__PURE__ */ Ae({
19457
+ }), Hw = /* @__PURE__ */ Va(z1, [["__scopeId", "data-v-50966021"]]), jw = /* @__PURE__ */ Ae({
19458
19458
  __name: "UiMenuList",
19459
19459
  props: {
19460
19460
  class: { default: void 0 }
@@ -19479,14 +19479,15 @@ const O1 = { class: "flex items-center" }, D1 = ["placeholder"], C1 = /* @__PURE
19479
19479
  checkboxColor: { default: "blue" }
19480
19480
  },
19481
19481
  setup(e) {
19482
- return (t, r) => (P(), xe(na, wt({
19483
- selectable: t.listVariant === "selectable",
19484
- "check-box-menu": t.listVariant === "checkbox",
19485
- "icon-size": t.iconSize,
19486
- "image-shape": t.imageShape,
19487
- "checkbox-size": t.checkboxSize,
19488
- "check-box-color": t.checkboxColor,
19489
- class: C(Oa)("hover:bg-gray-100 focus:bg-gray-300", t.$props.class)
19482
+ const t = e;
19483
+ return (r, n) => (P(), xe(na, wt({
19484
+ selectable: r.listVariant === "selectable",
19485
+ "check-box-menu": r.listVariant === "checkbox",
19486
+ "icon-size": r.iconSize,
19487
+ "image-shape": r.imageShape,
19488
+ "checkbox-size": r.checkboxSize,
19489
+ "check-box-color": r.checkboxColor,
19490
+ class: C(Oa)("hover:bg-gray-100 focus:bg-gray-300", r.$props.class)
19490
19491
  }, {
19491
19492
  ...t.option ? {
19492
19493
  selected: t.option.selected,
@@ -19495,12 +19496,12 @@ const O1 = { class: "flex items-center" }, D1 = ["placeholder"], C1 = /* @__PURE
19495
19496
  } : {}
19496
19497
  }), {
19497
19498
  default: Te(() => [
19498
- de(t.$slots, "default", { option: t.option })
19499
+ de(r.$slots, "default", { option: r.option })
19499
19500
  ]),
19500
19501
  _: 3
19501
19502
  }, 16, ["selectable", "check-box-menu", "icon-size", "image-shape", "checkbox-size", "check-box-color", "class"]));
19502
19503
  }
19503
- }), N1 = { class: "relative h-full w-full border-none" }, F1 = { class: "absolute right-3 top-12 z-10 block border-t bg-white px-4 py-3 shadow-lg" }, Gw = /* @__PURE__ */ Ae({
19504
+ }), N1 = { class: "relative size-full border-none" }, F1 = { class: "absolute right-3 top-12 z-10 block border-t bg-white px-4 py-3 shadow-lg" }, Gw = /* @__PURE__ */ Ae({
19504
19505
  __name: "UiOverlayMenu",
19505
19506
  props: {
19506
19507
  isOpen: { type: Boolean, default: !1 }
@@ -20072,7 +20073,11 @@ const O1 = { class: "flex items-center" }, D1 = ["placeholder"], C1 = /* @__PURE
20072
20073
  onInput: (_) => c(v, _.target.value),
20073
20074
  onBlur: h,
20074
20075
  onKeyup: or((_) => i(v, _.target.value), ["delete"]),
20075
- onKeydown: (_) => f(v, _.target.value, _)
20076
+ onKeydown: (_) => f(
20077
+ v,
20078
+ _.target.value,
20079
+ _
20080
+ )
20076
20081
  }, null, 40, tw),
20077
20082
  g.hasAddEntryOption && w(v) ? (P(), xe(Ia, {
20078
20083
  key: 0,
@@ -20154,7 +20159,7 @@ const O1 = { class: "flex items-center" }, D1 = ["placeholder"], C1 = /* @__PURE
20154
20159
  ref_key: "searchInputRef",
20155
20160
  ref: l,
20156
20161
  value: x.modelValue,
20157
- class: fe(["h-full w-full bg-transparent outline-none placeholder:text-gray-700 lg:text-sm", [
20162
+ class: fe(["size-full bg-transparent outline-none placeholder:text-gray-700 lg:text-sm", [
20158
20163
  x.isFilterChipEditable ? "px-4" : "px-2",
20159
20164
  !o.value && x.hasChips ? "text-transparent" : "",
20160
20165
  !o.value && (x.modelValue || !x.isFilterChipEditable) ? "absolute" : ""
@@ -21198,7 +21203,7 @@ const $o = /* @__PURE__ */ Xc(Ow), Dw = { class: "flex" }, Cw = ["id", "aria-che
21198
21203
  (P(!0), z($e, null, We(C(tr), (u, c) => (P(), z("div", {
21199
21204
  id: `color-${u}`,
21200
21205
  key: `ui-cp-${c}`,
21201
- class: "mr-3 flex h-4 w-4 rotate-45 cursor-pointer items-center justify-center",
21206
+ class: "mr-3 flex size-4 rotate-45 cursor-pointer items-center justify-center",
21202
21207
  style: rt({ backgroundColor: `#${u}` }),
21203
21208
  "aria-checked": a.value === u,
21204
21209
  onClick: (f) => {
@@ -21214,7 +21219,7 @@ const $o = /* @__PURE__ */ Xc(Ow), Dw = { class: "flex" }, Cw = ["id", "aria-che
21214
21219
  }, null, 8, ["class"])) : K("", !0)
21215
21220
  ], 12, Cw))), 128)),
21216
21221
  se("div", {
21217
- class: "UiColorPicker-inputWrapper flex h-4 w-4 rotate-45 items-center justify-center",
21222
+ class: "UiColorPicker-inputWrapper flex size-4 rotate-45 items-center justify-center",
21218
21223
  style: rt({
21219
21224
  backgroundColor: C(tr).includes(a.value) ? "" : o.value
21220
21225
  }),
@@ -21223,7 +21228,7 @@ const $o = /* @__PURE__ */ Xc(Ow), Dw = { class: "flex" }, Cw = ["id", "aria-che
21223
21228
  Kt(se("input", {
21224
21229
  "onUpdate:modelValue": i[0] || (i[0] = (u) => o.value = u),
21225
21230
  type: "color",
21226
- class: "UiColorPicker-input h-inherit w-inherit absolute z-10 cursor-pointer bg-gray-200 opacity-0"
21231
+ class: "UiColorPicker-input absolute z-10 size-inherit cursor-pointer bg-gray-200 opacity-0"
21227
21232
  }, null, 512), [
21228
21233
  [Gc, o.value]
21229
21234
  ]),