redmine-ui-kit 1.4.4 → 1.4.6

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.
@@ -487,7 +487,8 @@ const sl = (t, n = 150) => {
487
487
  beforeMount: Wn,
488
488
  updated: fl,
489
489
  unmounted: Hn
490
- }, oa = Vn ? pl : {}, hl = ["id"], yl = {
490
+ }, oa = Vn ? pl : {};
491
+ const hl = ["id"], yl = {
491
492
  key: 0,
492
493
  class: "rm-select-input__placeholder"
493
494
  }, gl = { class: "rm-select-input__placeholder-name" }, wl = {
@@ -559,7 +560,7 @@ const sl = (t, n = 150) => {
559
560
  ])
560
561
  ])
561
562
  ], -1), Nl = ["model-value"], Sl = ["onClick"], Il = {
562
- key: 1,
563
+ key: 2,
563
564
  class: "rm-select-inner__item rm-select-inner__item--empty"
564
565
  }, Ec = /* @__PURE__ */ Oe({
565
566
  __name: "RMSelect",
@@ -575,7 +576,8 @@ const sl = (t, n = 150) => {
575
576
  placeholder: { default: "" },
576
577
  staticPlaceholder: { type: Boolean, default: !1 },
577
578
  emptySelectLabel: { default: "No data to display" },
578
- disabled: { type: Boolean, default: !1 }
579
+ disabled: { type: Boolean, default: !1 },
580
+ opened: { type: Boolean, default: !1 }
579
581
  },
580
582
  emits: ["update:modelValue", "clear", "select", "chips:remove"],
581
583
  setup(t, { emit: n }) {
@@ -596,7 +598,7 @@ const sl = (t, n = 150) => {
596
598
  s.value = k.value;
597
599
  }, 300);
598
600
  ot(() => {
599
- (a.multiple || a.chips) && !Array.isArray(a.modelValue) && e("update:modelValue", []);
601
+ o.value = a.opened, (a.multiple || a.chips) && !Array.isArray(a.modelValue) && e("update:modelValue", []);
600
602
  });
601
603
  function f(k) {
602
604
  return typeof k[0] == "string" || typeof k[0] == "number" ? k.map((C) => ({ name: C, value: C })) : a.options;
@@ -606,7 +608,7 @@ const sl = (t, n = 150) => {
606
608
  }
607
609
  function h(k) {
608
610
  if (!a.multiple && !a.chips || !Array.isArray(a.modelValue)) {
609
- e("update:modelValue", k.value), e("select", k);
611
+ e("update:modelValue", k.value), e("select", k), o.value = !1;
610
612
  return;
611
613
  }
612
614
  if (a.modelValue.includes(k.value)) {
@@ -728,12 +730,12 @@ const sl = (t, n = 150) => {
728
730
  (...L) => v(D) && v(D)(...L))
729
731
  }, null, 40, Nl)
730
732
  ])) : M("", !0),
731
- k.$slots["slot-options"] ? q(k.$slots, "slot-options", {
732
- key: 2,
733
- options: d.value,
734
- selected: c.value
735
- }) : (p(), b(we, { key: 1 }, [
736
- d.value && d.value.length ? (p(!0), b(we, { key: 0 }, Be(d.value, (L, V) => (p(), b("li", {
733
+ d.value && d.value.length ? (p(), b(we, { key: 1 }, [
734
+ k.$slots["slot-options"] ? q(k.$slots, "slot-options", {
735
+ key: 1,
736
+ options: d.value,
737
+ selected: c.value
738
+ }) : (p(!0), b(we, { key: 0 }, Be(d.value, (L, V) => (p(), b("li", {
737
739
  key: `${V}_option`,
738
740
  class: he([
739
741
  "rm-select-inner__item",
@@ -743,8 +745,8 @@ const sl = (t, n = 150) => {
743
745
  }
744
746
  ]),
745
747
  onClick: (E) => h(L)
746
- }, pe(L.name), 11, Sl))), 128)) : (p(), b("li", Il, pe(k.emptySelectLabel), 1))
747
- ], 64))
748
+ }, pe(L.name), 11, Sl))), 128))
749
+ ], 64)) : (p(), b("li", Il, pe(k.emptySelectLabel), 1))
748
750
  ], 512), [
749
751
  [Mt, o.value]
750
752
  ])
@@ -755,8 +757,7 @@ const sl = (t, n = 150) => {
755
757
  [v(oa), () => o.value = !1]
756
758
  ]);
757
759
  }
758
- });
759
- const Rl = (t, n) => {
760
+ }), Rl = (t, n) => {
760
761
  const a = t.__vccOpts || t;
761
762
  for (const [e, r] of n)
762
763
  a[e] = r;