prlg-ui 1.8.165 → 1.8.167
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/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +269 -256
- package/dist/icons.d.ts +2 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.es.js +3 -6
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -5618,13 +5618,10 @@ const _i = {
|
|
|
5618
5618
|
emits: ["update:value"],
|
|
5619
5619
|
setup(e, { emit: l }) {
|
|
5620
5620
|
const t = l, n = T(() => e.styleView), a = R(
|
|
5621
|
-
Array.isArray(e.value)
|
|
5621
|
+
Array.isArray(e.value) || e.value !== void 0 ? e.value : e.multiple ? [] : void 0
|
|
5622
5622
|
);
|
|
5623
|
-
ee(() => e.value, (o) => {
|
|
5624
|
-
Array.isArray(o) ? a.value = o : o !== void 0 ? a.value = [o] : a.value = [];
|
|
5625
|
-
});
|
|
5626
5623
|
function u(o) {
|
|
5627
|
-
e.multiple ? a.value.includes(o) ? a.value = a.value.filter((s) => s !== o) : a.value.push(o) : a.value = a.value
|
|
5624
|
+
e.multiple && Array.isArray(a.value) ? a.value.includes(o) ? a.value = a.value.filter((s) => s !== o) : a.value.push(o) : a.value = a.value === o ? void 0 : o, t("update:value", a.value);
|
|
5628
5625
|
}
|
|
5629
5626
|
return $e("accordionOpenValues", a), $e("accordionToggle", u), $e("accordionIsMultiple", e.multiple ?? !1), $e("accordionStyle", n), (o, s) => (f(), g("div", yr, [
|
|
5630
5627
|
J(o.$slots, "default")
|
|
@@ -5681,7 +5678,7 @@ const _i = {
|
|
|
5681
5678
|
value: {}
|
|
5682
5679
|
},
|
|
5683
5680
|
setup(e) {
|
|
5684
|
-
const l = e, t = ye("accordionOpenValues"), n = ye("accordionToggle"), a = ye("accordionStyle"), u = T(() => t?.value.includes(l.value));
|
|
5681
|
+
const l = e, t = ye("accordionOpenValues"), n = ye("accordionToggle"), a = ye("accordionStyle"), u = T(() => Array.isArray(t?.value) ? t?.value.includes(l.value) : t?.value === l.value);
|
|
5685
5682
|
return $e("panelValue", l.value), $e("panelIsOpen", u), $e("panelToggle", () => n?.(l.value)), (o, s) => (f(), g("div", {
|
|
5686
5683
|
class: K(["accordion-panel", `accordion-panel--${C(a)}`])
|
|
5687
5684
|
}, [
|