@idds/vue 1.4.3 → 1.4.4

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.es.js CHANGED
@@ -702,8 +702,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
702
702
  const registerItem = (item) => {
703
703
  const index2 = items.value.size;
704
704
  items.value.set(item.id, index2);
705
- if (!allowMultiple.value && item.defaultOpen && openIndexes.value.length === 0) {
706
- openIndexes.value = [index2];
705
+ if (item.defaultOpen) {
706
+ if (allowMultiple.value) {
707
+ if (!openIndexes.value.includes(index2)) {
708
+ openIndexes.value = [...openIndexes.value, index2];
709
+ }
710
+ } else {
711
+ if (openIndexes.value.length === 0) {
712
+ openIndexes.value = [index2];
713
+ }
714
+ }
707
715
  }
708
716
  return index2;
709
717
  };
@@ -763,7 +771,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
763
771
  };
764
772
  }
765
773
  });
766
- const AccordionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-b60ded7f"]]);
774
+ const AccordionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-a85c5702"]]);
767
775
  const _hoisted_1$G = ["disabled", "aria-expanded"];
768
776
  const _hoisted_2$B = { class: "ina-action-dropdown__trigger-content" };
769
777
  const _hoisted_3$x = { class: "ina-action-dropdown__menu" };