@wikicasa-dev/components 2.2.9-alpha.52 → 2.2.9-alpha.54
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/Swiper/autoplay.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/BaseSnackbar.d.ts +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +5 -2
- package/dist/UIKit/Radio/RadioButton.d.ts +27 -23
- package/dist/UIKit/Radio/RadioGroup.d.ts +49 -50
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +60 -55
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +37 -33
- package/package.json +3 -3
- /package/dist/assets/{swiper-keyboard.css → swiper-thumbs.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -33,14 +33,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
33
33
|
open?: Optional<boolean>;
|
|
34
34
|
refresh?: Optional<boolean>;
|
|
35
35
|
} & SnackbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
-
"update:open": (value: Optional<boolean>) => any;
|
|
37
36
|
"update:refresh": (value: Optional<boolean>) => any;
|
|
37
|
+
"update:open": (value: Optional<boolean>) => any;
|
|
38
38
|
}, string, import('vue').PublicProps, Readonly<{
|
|
39
39
|
open?: Optional<boolean>;
|
|
40
40
|
refresh?: Optional<boolean>;
|
|
41
41
|
} & SnackbarProps> & Readonly<{
|
|
42
|
-
"onUpdate:open"?: ((value: Optional<boolean>) => any) | undefined;
|
|
43
42
|
"onUpdate:refresh"?: ((value: Optional<boolean>) => any) | undefined;
|
|
43
|
+
"onUpdate:open"?: ((value: Optional<boolean>) => any) | undefined;
|
|
44
44
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
45
45
|
trigger?(_: {
|
|
46
46
|
open: () => boolean;
|
|
@@ -34,9 +34,12 @@ export type CheckboxGroupProps<TID = string | number, TLabel = string | number,
|
|
|
34
34
|
declare const _default: <TID extends string | number, TLabel extends string | number, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
35
35
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
36
36
|
readonly "onUpdate:modelValue"?: ((args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => any) | undefined;
|
|
37
|
+
readonly "onUpdate:refresh"?: ((value: boolean) => any) | undefined;
|
|
37
38
|
readonly onResetted?: (() => any) | undefined;
|
|
38
39
|
readonly onCheckedGroup?: ((args_0: string) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onResetted" | "onCheckedGroup"> &
|
|
40
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:refresh" | "onResetted" | "onCheckedGroup"> & ({
|
|
41
|
+
refresh?: boolean;
|
|
42
|
+
} & CheckboxGroupProps<TID, TLabel, TPayload>) & Partial<{}>> & import('vue').PublicProps;
|
|
40
43
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
44
|
attrs: any;
|
|
42
45
|
slots: {
|
|
@@ -52,7 +55,7 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
|
|
|
52
55
|
reset: () => void;
|
|
53
56
|
}): any;
|
|
54
57
|
};
|
|
55
|
-
emit: ((evt: "update:modelValue", args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => void) & ((evt: "resetted") => void) & ((evt: "checkedGroup", args_0: string) => void);
|
|
58
|
+
emit: (((evt: "update:modelValue", args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => void) & ((evt: "resetted") => void) & ((evt: "checkedGroup", args_0: string) => void)) & ((evt: "update:refresh", value: boolean) => void);
|
|
56
59
|
}>) => import('vue').VNode & {
|
|
57
60
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
61
|
};
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import { Nullable } from '@wikicasa-dev/types';
|
|
2
1
|
import { ClassTypeProp } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
change: (args_0: {
|
|
14
|
-
id: string | number;
|
|
15
|
-
label: string;
|
|
2
|
+
declare const _default: <TID extends string | number | null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
5
|
+
readonly onChange?: ((args_0: {
|
|
6
|
+
id: NonNullable<TID>;
|
|
7
|
+
label: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}) => any) | undefined;
|
|
10
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onChange"> & {
|
|
11
|
+
id?: TID;
|
|
16
12
|
name?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
label: string;
|
|
14
|
+
modelValue?: boolean;
|
|
15
|
+
inputClasses?: ClassTypeProp;
|
|
16
|
+
labelClasses?: ClassTypeProp;
|
|
17
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
18
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {};
|
|
21
|
+
emit: ((evt: "update:modelValue", args_0: boolean) => void) & ((evt: "change", args_0: {
|
|
22
|
+
id: NonNullable<TID>;
|
|
22
23
|
label: string;
|
|
23
24
|
name?: string;
|
|
24
|
-
}) =>
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
25
|
+
}) => void);
|
|
26
|
+
}>) => import('vue').VNode & {
|
|
27
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
|
+
};
|
|
28
29
|
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} & {};
|
|
@@ -1,56 +1,55 @@
|
|
|
1
1
|
import { Nullable, Optional } from '@wikicasa-dev/types';
|
|
2
2
|
import { ClassTypeProp } from '../types';
|
|
3
|
-
export type RadioButtonType<
|
|
4
|
-
id?:
|
|
5
|
-
label: string
|
|
6
|
-
payload?:
|
|
3
|
+
export type RadioButtonType<TID = string | number | null, TPayload = unknown> = {
|
|
4
|
+
id?: TID;
|
|
5
|
+
label: string;
|
|
6
|
+
payload?: TPayload;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const _default:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
reset: () => void;
|
|
48
|
-
isActive: (elem: RadioButtonType) => boolean;
|
|
49
|
-
}): any;
|
|
50
|
-
}>;
|
|
51
|
-
export default _default;
|
|
52
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
-
new (): {
|
|
54
|
-
$slots: S;
|
|
9
|
+
declare const _default: <TID extends string | number | null, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
10
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
11
|
+
readonly "onUpdate:modelValue"?: ((args_0: Nullable<RadioButtonType<TID, TPayload>>) => any) | undefined;
|
|
12
|
+
readonly "onUpdate:refresh"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
readonly "onUpdate:resetRadio"?: ((value: Optional<boolean>) => any) | undefined;
|
|
14
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:refresh" | "onUpdate:resetRadio"> & ({
|
|
15
|
+
resetRadio?: Optional<boolean>;
|
|
16
|
+
refresh?: boolean;
|
|
17
|
+
} & {
|
|
18
|
+
radioValues?: RadioButtonType<TID, TPayload>[];
|
|
19
|
+
dataCy?: string;
|
|
20
|
+
radioContainerClasses?: ClassTypeProp;
|
|
21
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
22
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
23
|
+
attrs: any;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {
|
|
26
|
+
handleClick: (elem: RadioButtonType<TID, TPayload>) => void;
|
|
27
|
+
activeValue: {
|
|
28
|
+
id?: import('vue').UnwrapRef<TID> | undefined;
|
|
29
|
+
label: string;
|
|
30
|
+
payload?: import('vue').UnwrapRef<TPayload> | undefined;
|
|
31
|
+
active?: boolean | undefined;
|
|
32
|
+
} | null;
|
|
33
|
+
reset: () => void;
|
|
34
|
+
isActive: (elem: RadioButtonType<TID, TPayload>) => boolean;
|
|
35
|
+
}): any;
|
|
36
|
+
radio_elements?(_: {
|
|
37
|
+
handleClick: (elem: RadioButtonType<TID, TPayload>) => void;
|
|
38
|
+
activeValue: {
|
|
39
|
+
id?: import('vue').UnwrapRef<TID> | undefined;
|
|
40
|
+
label: string;
|
|
41
|
+
payload?: import('vue').UnwrapRef<TPayload> | undefined;
|
|
42
|
+
active?: boolean | undefined;
|
|
43
|
+
} | null;
|
|
44
|
+
reset: () => void;
|
|
45
|
+
isActive: (elem: RadioButtonType<TID, TPayload>) => boolean;
|
|
46
|
+
}): any;
|
|
55
47
|
};
|
|
48
|
+
emit: ((evt: "update:modelValue", args_0: Nullable<RadioButtonType<TID, TPayload>>) => void) & (((evt: "update:refresh", value: boolean) => void) & ((evt: "update:resetRadio", value: Optional<boolean>) => void));
|
|
49
|
+
}>) => import('vue').VNode & {
|
|
50
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
51
|
};
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_PrettifyLocal<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { stringToHyphened as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as B, mergeModels as y, useModel as A, ref as I, computed as i, watch as C, renderSlot as p, createElementVNode as M, normalizeClass as x, createElementBlock as R, createCommentVNode as K, openBlock as v, Fragment as V, renderList as w, createBlock as L, unref as G } from "vue";
|
|
2
|
+
import { stringToHyphened as N, isArrNullOrEmpty as T } from "@wikicasa-dev/utilities";
|
|
3
|
+
import F from "./CheckboxBtn.vue.js";
|
|
4
4
|
import '../../../../../assets/CheckboxBtn.css';/* empty css */
|
|
5
|
-
const
|
|
5
|
+
const O = ["id", "data-cy"], q = /* @__PURE__ */ B({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "CheckboxGroup",
|
|
8
|
-
props: {
|
|
8
|
+
props: /* @__PURE__ */ y({
|
|
9
9
|
checkboxData: { default() {
|
|
10
10
|
return [];
|
|
11
11
|
} },
|
|
@@ -18,95 +18,100 @@ const T = ["id", "data-cy"], j = /* @__PURE__ */ v({
|
|
|
18
18
|
getKey: { type: Function, default: (a) => typeof a == "string" || typeof a == "number" ? `${a}` : `${a.id}` },
|
|
19
19
|
groupId: { default: "" },
|
|
20
20
|
dataCy: { default: "" }
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
}, {
|
|
22
|
+
refresh: { type: Boolean, default: !1 },
|
|
23
|
+
refreshModifiers: {}
|
|
24
|
+
}),
|
|
25
|
+
emits: /* @__PURE__ */ y(["resetted", "update:modelValue", "checkedGroup"], ["update:refresh"]),
|
|
26
|
+
setup(a, { emit: D }) {
|
|
27
|
+
const o = a, s = D, f = A(a, "refresh"), l = I(
|
|
25
28
|
/* @__PURE__ */ new Map()
|
|
26
|
-
), r =
|
|
29
|
+
), r = i(() => {
|
|
27
30
|
for (const e of o.checkboxData)
|
|
28
31
|
if (e.reset) return e;
|
|
29
32
|
return null;
|
|
30
|
-
}),
|
|
33
|
+
}), E = i(() => o.checkboxData.length), k = i(() => {
|
|
31
34
|
let e = 0;
|
|
32
|
-
return l.value.forEach((
|
|
33
|
-
|
|
35
|
+
return l.value.forEach((c) => {
|
|
36
|
+
c.checked && e++;
|
|
34
37
|
}), e;
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const e = [];
|
|
38
|
+
}), m = () => {
|
|
39
|
+
const e = [], c = /* @__PURE__ */ new Map();
|
|
38
40
|
for (const t of o.checkboxData)
|
|
39
|
-
|
|
41
|
+
c.set(`${t.id}`, {
|
|
40
42
|
...t,
|
|
41
43
|
checked: !!t.checked
|
|
42
44
|
}), t.checked && e.push(t);
|
|
43
|
-
s("update:modelValue", e);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
l.value = c, s("update:modelValue", e);
|
|
46
|
+
};
|
|
47
|
+
m();
|
|
48
|
+
const u = (e, c) => {
|
|
49
|
+
const t = l.value.get(e);
|
|
50
|
+
if (t) {
|
|
51
|
+
if (c) {
|
|
52
|
+
l.value.set(e, { ...t, ...c });
|
|
50
53
|
return;
|
|
51
54
|
}
|
|
52
|
-
l.value.set(e, { ...
|
|
55
|
+
l.value.set(e, { ...t, checked: !t.checked });
|
|
53
56
|
}
|
|
54
|
-
},
|
|
57
|
+
}, b = () => {
|
|
55
58
|
l.value.forEach((e) => {
|
|
56
59
|
e.checked = !1;
|
|
57
60
|
});
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
}, d = (e) => l.value.get(o.getKey(e))?.checked ?? !1,
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
|
|
61
|
+
}, g = () => {
|
|
62
|
+
b(), s("update:modelValue", []), s("resetted");
|
|
63
|
+
}, d = (e) => l.value.get(o.getKey(e))?.checked ?? !1, h = (e) => {
|
|
64
|
+
if (T(o.checkboxData)) return;
|
|
65
|
+
const c = l.value.get(e.id);
|
|
66
|
+
c?.reset && e.checked ? b() : r.value && !c?.reset && u(o.getKey(r.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && r.value && k.value === E.value - 1 && l.value.forEach((n) => {
|
|
64
67
|
n.checked = !!n.reset;
|
|
65
|
-
}), o.autoCheckResetEmpty && r.value && !
|
|
66
|
-
const
|
|
68
|
+
}), o.autoCheckResetEmpty && r.value && !k.value && (!o.manualToggleResetButton || !c?.reset) && u(o.getKey(r.value), { checked: !0 });
|
|
69
|
+
const t = [];
|
|
67
70
|
l.value.forEach((n) => {
|
|
68
|
-
n.checked &&
|
|
69
|
-
}), s("update:modelValue",
|
|
71
|
+
n.checked && t.push(n);
|
|
72
|
+
}), s("update:modelValue", t), s("checkedGroup", o.groupId);
|
|
70
73
|
};
|
|
71
|
-
return
|
|
74
|
+
return C(
|
|
72
75
|
() => o.reset,
|
|
73
76
|
(e) => {
|
|
74
|
-
e &&
|
|
77
|
+
e && g();
|
|
75
78
|
}
|
|
76
|
-
), (
|
|
79
|
+
), C(f, (e) => {
|
|
80
|
+
e && (m(), f.value = !1);
|
|
81
|
+
}), (e, c) => p(e.$slots, "default", {
|
|
77
82
|
isActive: d,
|
|
78
|
-
handleChange:
|
|
83
|
+
handleChange: h,
|
|
79
84
|
checkboxesData: a.checkboxData
|
|
80
85
|
}, () => [
|
|
81
|
-
|
|
86
|
+
M("div", {
|
|
82
87
|
id: a.groupId,
|
|
83
|
-
class:
|
|
88
|
+
class: x(["checkbox-group-container", e.$attrs.class || ""]),
|
|
84
89
|
"data-cy": a.dataCy
|
|
85
90
|
}, [
|
|
86
|
-
|
|
91
|
+
p(e.$slots, "checkbox_elements", {
|
|
87
92
|
isActive: d,
|
|
88
|
-
handleChange:
|
|
93
|
+
handleChange: h,
|
|
89
94
|
checkboxesData: a.checkboxData,
|
|
90
|
-
reset:
|
|
95
|
+
reset: g
|
|
91
96
|
}, () => [
|
|
92
|
-
a.checkboxData ? (
|
|
93
|
-
id: a.getKey(
|
|
97
|
+
a.checkboxData ? (v(!0), R(V, { key: 0 }, w(a.checkboxData, (t, n) => (v(), L(F, {
|
|
98
|
+
id: a.getKey(t),
|
|
94
99
|
key: n,
|
|
95
|
-
"data-cy":
|
|
96
|
-
label:
|
|
100
|
+
"data-cy": t.dataCy ?? `checkbox_${G(N)(`${t.label}`)}`,
|
|
101
|
+
label: t.label,
|
|
97
102
|
inline: a.formCheckInline,
|
|
98
|
-
"model-value": d(
|
|
99
|
-
class:
|
|
103
|
+
"model-value": d(t),
|
|
104
|
+
class: x([
|
|
100
105
|
a.formCheckInline ? "uikit-mr-10px" : "uikit-mb-10px",
|
|
101
106
|
a.checkboxContainerClasses
|
|
102
107
|
]),
|
|
103
|
-
onChange:
|
|
104
|
-
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "class"]))), 128)) :
|
|
108
|
+
onChange: c[0] || (c[0] = ($) => h($))
|
|
109
|
+
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "class"]))), 128)) : K("", !0)
|
|
105
110
|
])
|
|
106
|
-
], 10,
|
|
111
|
+
], 10, O)
|
|
107
112
|
]);
|
|
108
113
|
}
|
|
109
114
|
});
|
|
110
115
|
export {
|
|
111
|
-
|
|
116
|
+
q as default
|
|
112
117
|
};
|
|
@@ -1,60 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as k, mergeModels as f, useModel as m, ref as R, watch as v, renderSlot as h, createElementVNode as g, normalizeClass as C, createElementBlock as B, openBlock as $, Fragment as M, renderList as b, createBlock as A } from "vue";
|
|
2
|
+
import E from "./RadioButton.vue.js";
|
|
3
|
+
const w = ["data-cy"], G = /* @__PURE__ */ k({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "RadioGroup",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ f({
|
|
7
7
|
radioValues: { default: () => [] },
|
|
8
8
|
dataCy: {},
|
|
9
9
|
radioContainerClasses: {}
|
|
10
10
|
}, {
|
|
11
11
|
resetRadio: { type: Boolean, default: !1 },
|
|
12
|
-
resetRadioModifiers: {}
|
|
12
|
+
resetRadioModifiers: {},
|
|
13
|
+
refresh: { type: Boolean, default: !1 },
|
|
14
|
+
refreshModifiers: {}
|
|
13
15
|
}),
|
|
14
|
-
emits: /* @__PURE__ */
|
|
15
|
-
setup(
|
|
16
|
-
const n =
|
|
17
|
-
a.value = e,
|
|
16
|
+
emits: /* @__PURE__ */ f(["update:modelValue"], ["update:resetRadio", "update:refresh"]),
|
|
17
|
+
setup(l, { emit: V }) {
|
|
18
|
+
const o = V, n = m(l, "resetRadio"), i = m(l, "refresh"), a = R(null), t = (e) => {
|
|
19
|
+
a.value = e, o("update:modelValue", e);
|
|
18
20
|
}, s = () => {
|
|
19
|
-
a.value = null,
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
for (const e of t.radioValues)
|
|
21
|
+
a.value = null, n.value = !1, o("update:modelValue", null);
|
|
22
|
+
}, d = (e) => a.value ? `${a.value.id}` == `${e.id}` : !1, u = () => {
|
|
23
|
+
for (const e of l.radioValues)
|
|
23
24
|
if (e.active) {
|
|
24
|
-
|
|
25
|
+
t(e);
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
|
+
};
|
|
29
|
+
return u(), v(n, (e) => {
|
|
28
30
|
e && s();
|
|
29
|
-
}), (
|
|
30
|
-
|
|
31
|
+
}), v(i, (e) => {
|
|
32
|
+
e && (u(), i.value = !1);
|
|
33
|
+
}), (e, c) => h(e.$slots, "default", {
|
|
34
|
+
handleClick: t,
|
|
31
35
|
activeValue: a.value,
|
|
32
36
|
reset: s,
|
|
33
|
-
isActive:
|
|
37
|
+
isActive: d
|
|
34
38
|
}, () => [
|
|
35
|
-
|
|
36
|
-
class:
|
|
37
|
-
"data-cy":
|
|
39
|
+
g("div", {
|
|
40
|
+
class: C(["radio-group-container", e.$attrs.class]),
|
|
41
|
+
"data-cy": l.dataCy
|
|
38
42
|
}, [
|
|
39
|
-
|
|
40
|
-
handleClick:
|
|
43
|
+
h(e.$slots, "radio_elements", {
|
|
44
|
+
handleClick: t,
|
|
41
45
|
activeValue: a.value,
|
|
42
46
|
reset: s,
|
|
43
|
-
isActive:
|
|
47
|
+
isActive: d
|
|
44
48
|
}, () => [
|
|
45
|
-
(
|
|
46
|
-
id:
|
|
47
|
-
key:
|
|
48
|
-
class:
|
|
49
|
-
label: `${
|
|
50
|
-
"model-value": `${
|
|
51
|
-
onChange:
|
|
49
|
+
($(!0), B(M, null, b(l.radioValues, (r, p) => ($(), A(E, {
|
|
50
|
+
id: r.id,
|
|
51
|
+
key: p,
|
|
52
|
+
class: C(l.radioContainerClasses),
|
|
53
|
+
label: `${r.label}`,
|
|
54
|
+
"model-value": `${r.id}` == `${a.value?.id}`,
|
|
55
|
+
onChange: c[0] || (c[0] = (y) => t(y))
|
|
52
56
|
}, null, 8, ["id", "class", "label", "model-value"]))), 128))
|
|
53
57
|
])
|
|
54
|
-
], 10,
|
|
58
|
+
], 10, w)
|
|
55
59
|
]);
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
62
|
export {
|
|
59
|
-
|
|
63
|
+
G as default
|
|
60
64
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.2.9-alpha.
|
|
3
|
+
"version": "2.2.9-alpha.54",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"date-fns": "^4.0.0",
|
|
47
47
|
"@wikicasa-dev/svg-icons": "^1.2.28-alpha.1",
|
|
48
48
|
"@wikicasa-dev/vue-composables": "0.0.33-alpha.4",
|
|
49
|
-
"@wikicasa-dev/types": "^2.
|
|
49
|
+
"@wikicasa-dev/types": "^2.5.0",
|
|
50
50
|
"@wikicasa-dev/utilities": "^1.2.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@wikicasa-dev/svg-icons": "1.2.28-alpha.1",
|
|
68
68
|
"@wikicasa-dev/vue-composables": "0.0.33-alpha.4",
|
|
69
69
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
70
|
-
"@wikicasa-dev/types": "2.
|
|
70
|
+
"@wikicasa-dev/types": "2.5.0",
|
|
71
71
|
"@wikicasa-dev/utilities": "1.2.0",
|
|
72
72
|
"autoprefixer": "^10.4.22",
|
|
73
73
|
"date-fns": "4.1.0",
|
|
File without changes
|