@porsche-design-system/components-vue 3.30.0-rc.0 → 3.30.0-rc.2
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/CHANGELOG.md +59 -0
- package/OSS_NOTICE +1635 -2257
- package/cjs/lib/components/CheckboxWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlyoutWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputDateWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputEmailWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputNumberWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputPasswordWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputSearchWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputTelWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputTextWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputTimeWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InputUrlWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MultiSelectWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PinCodeWrapper.vue.cjs +1 -1
- package/cjs/lib/components/RadioGroupOptionWrapper.vue.cjs +1 -0
- package/cjs/lib/components/RadioGroupOptionWrapper.vue2.cjs +1 -0
- package/cjs/lib/components/RadioGroupWrapper.vue.cjs +1 -0
- package/cjs/lib/components/RadioGroupWrapper.vue2.cjs +1 -0
- package/cjs/lib/components/SegmentedControlWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SelectWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextareaWrapper.vue.cjs +1 -1
- package/cjs/public-api.cjs +1 -1
- package/cjs/utils.cjs +1 -1
- package/esm/PorscheDesignSystemProvider.vue.d.ts +3 -2
- package/esm/lib/components/AccordionWrapper.vue.d.ts +3 -2
- package/esm/lib/components/AccordionWrapper.vue.mjs +6 -6
- package/esm/lib/components/BannerWrapper.vue.d.ts +3 -4
- package/esm/lib/components/BannerWrapper.vue.mjs +3 -3
- package/esm/lib/components/ButtonGroupWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ButtonGroupWrapper.vue.mjs +2 -2
- package/esm/lib/components/ButtonPureWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ButtonPureWrapper.vue.mjs +2 -2
- package/esm/lib/components/ButtonTileWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ButtonTileWrapper.vue.mjs +2 -2
- package/esm/lib/components/ButtonWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ButtonWrapper.vue.mjs +2 -2
- package/esm/lib/components/CanvasWrapper.vue.d.ts +3 -4
- package/esm/lib/components/CanvasWrapper.vue.mjs +6 -6
- package/esm/lib/components/CarouselWrapper.vue.d.ts +3 -2
- package/esm/lib/components/CarouselWrapper.vue.mjs +6 -6
- package/esm/lib/components/CheckboxWrapper.vue.d.ts +5 -2
- package/esm/lib/components/CheckboxWrapper.vue.mjs +14 -12
- package/esm/lib/components/CheckboxWrapperWrapper.vue.d.ts +3 -2
- package/esm/lib/components/CheckboxWrapperWrapper.vue.mjs +2 -2
- package/esm/lib/components/ContentWrapperWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ContentWrapperWrapper.vue.mjs +2 -2
- package/esm/lib/components/CrestWrapper.vue.d.ts +2 -1
- package/esm/lib/components/CrestWrapper.vue.mjs +2 -2
- package/esm/lib/components/DisplayWrapper.vue.d.ts +3 -2
- package/esm/lib/components/DisplayWrapper.vue.mjs +2 -2
- package/esm/lib/components/DividerWrapper.vue.d.ts +2 -1
- package/esm/lib/components/DividerWrapper.vue.mjs +2 -2
- package/esm/lib/components/DrilldownItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/DrilldownItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/DrilldownLinkWrapper.vue.d.ts +3 -2
- package/esm/lib/components/DrilldownLinkWrapper.vue.mjs +2 -2
- package/esm/lib/components/DrilldownWrapper.vue.d.ts +3 -4
- package/esm/lib/components/DrilldownWrapper.vue.mjs +6 -6
- package/esm/lib/components/FieldsetWrapper.vue.d.ts +3 -2
- package/esm/lib/components/FieldsetWrapper.vue.mjs +2 -2
- package/esm/lib/components/FieldsetWrapperWrapper.vue.d.ts +3 -2
- package/esm/lib/components/FieldsetWrapperWrapper.vue.mjs +2 -2
- package/esm/lib/components/FlagWrapper.vue.d.ts +2 -1
- package/esm/lib/components/FlagWrapper.vue.mjs +2 -2
- package/esm/lib/components/FlexItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/FlexItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/FlexWrapper.vue.d.ts +3 -2
- package/esm/lib/components/FlexWrapper.vue.mjs +2 -2
- package/esm/lib/components/FlyoutWrapper.vue.d.ts +9 -5
- package/esm/lib/components/FlyoutWrapper.vue.mjs +9 -8
- package/esm/lib/components/GridItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/GridItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/GridWrapper.vue.d.ts +3 -2
- package/esm/lib/components/GridWrapper.vue.mjs +2 -2
- package/esm/lib/components/HeadingWrapper.vue.d.ts +3 -2
- package/esm/lib/components/HeadingWrapper.vue.mjs +2 -2
- package/esm/lib/components/HeadlineWrapper.vue.d.ts +3 -2
- package/esm/lib/components/HeadlineWrapper.vue.mjs +2 -2
- package/esm/lib/components/IconWrapper.vue.d.ts +2 -1
- package/esm/lib/components/IconWrapper.vue.mjs +2 -2
- package/esm/lib/components/InlineNotificationWrapper.vue.d.ts +3 -4
- package/esm/lib/components/InlineNotificationWrapper.vue.mjs +6 -6
- package/esm/lib/components/InputDateWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputDateWrapper.vue.mjs +14 -12
- package/esm/lib/components/InputEmailWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputEmailWrapper.vue.mjs +14 -12
- package/esm/lib/components/InputNumberWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputNumberWrapper.vue.mjs +13 -11
- package/esm/lib/components/InputPasswordWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputPasswordWrapper.vue.mjs +13 -11
- package/esm/lib/components/InputSearchWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputSearchWrapper.vue.mjs +13 -11
- package/esm/lib/components/InputTelWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputTelWrapper.vue.mjs +14 -12
- package/esm/lib/components/InputTextWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputTextWrapper.vue.mjs +14 -12
- package/esm/lib/components/InputTimeWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputTimeWrapper.vue.mjs +13 -11
- package/esm/lib/components/InputUrlWrapper.vue.d.ts +5 -2
- package/esm/lib/components/InputUrlWrapper.vue.mjs +14 -12
- package/esm/lib/components/LinkPureWrapper.vue.d.ts +3 -2
- package/esm/lib/components/LinkPureWrapper.vue.mjs +2 -2
- package/esm/lib/components/LinkSocialWrapper.vue.d.ts +3 -2
- package/esm/lib/components/LinkSocialWrapper.vue.mjs +2 -2
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +3 -2
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.mjs +2 -2
- package/esm/lib/components/LinkTileProductWrapper.vue.d.ts +3 -2
- package/esm/lib/components/LinkTileProductWrapper.vue.mjs +3 -3
- package/esm/lib/components/LinkTileWrapper.vue.d.ts +3 -2
- package/esm/lib/components/LinkTileWrapper.vue.mjs +2 -2
- package/esm/lib/components/LinkWrapper.vue.d.ts +3 -2
- package/esm/lib/components/LinkWrapper.vue.mjs +2 -2
- package/esm/lib/components/MarqueWrapper.vue.d.ts +3 -2
- package/esm/lib/components/MarqueWrapper.vue.mjs +2 -2
- package/esm/lib/components/ModalWrapper.vue.d.ts +4 -5
- package/esm/lib/components/ModalWrapper.vue.mjs +3 -3
- package/esm/lib/components/ModelSignatureWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ModelSignatureWrapper.vue.mjs +2 -2
- package/esm/lib/components/MultiSelectOptionWrapper.vue.d.ts +3 -2
- package/esm/lib/components/MultiSelectOptionWrapper.vue.mjs +2 -2
- package/esm/lib/components/MultiSelectWrapper.vue.d.ts +5 -4
- package/esm/lib/components/MultiSelectWrapper.vue.mjs +16 -14
- package/esm/lib/components/OptgroupWrapper.vue.d.ts +3 -2
- package/esm/lib/components/OptgroupWrapper.vue.mjs +2 -2
- package/esm/lib/components/PaginationWrapper.vue.d.ts +2 -1
- package/esm/lib/components/PaginationWrapper.vue.mjs +6 -6
- package/esm/lib/components/PinCodeWrapper.vue.d.ts +5 -4
- package/esm/lib/components/PinCodeWrapper.vue.mjs +15 -13
- package/esm/lib/components/PopoverWrapper.vue.d.ts +3 -2
- package/esm/lib/components/PopoverWrapper.vue.mjs +2 -2
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.d.ts +4 -2
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.mjs +2 -2
- package/esm/lib/components/RadioGroupOptionWrapper.vue.d.ts +24 -0
- package/esm/lib/components/RadioGroupOptionWrapper.vue.mjs +21 -0
- package/esm/lib/components/RadioGroupOptionWrapper.vue2.mjs +4 -0
- package/esm/lib/components/RadioGroupWrapper.vue.d.ts +88 -0
- package/esm/lib/components/RadioGroupWrapper.vue.mjs +43 -0
- package/esm/lib/components/RadioGroupWrapper.vue2.mjs +4 -0
- package/esm/lib/components/ScrollerWrapper.vue.d.ts +3 -2
- package/esm/lib/components/ScrollerWrapper.vue.mjs +2 -2
- package/esm/lib/components/SegmentedControlItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/SegmentedControlItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/SegmentedControlWrapper.vue.d.ts +10 -6
- package/esm/lib/components/SegmentedControlWrapper.vue.mjs +14 -11
- package/esm/lib/components/SelectOptionWrapper.vue.d.ts +3 -2
- package/esm/lib/components/SelectOptionWrapper.vue.mjs +2 -2
- package/esm/lib/components/SelectWrapper.vue.d.ts +6 -5
- package/esm/lib/components/SelectWrapper.vue.mjs +16 -14
- package/esm/lib/components/SelectWrapperWrapper.vue.d.ts +3 -2
- package/esm/lib/components/SelectWrapperWrapper.vue.mjs +2 -2
- package/esm/lib/components/SheetWrapper.vue.d.ts +3 -4
- package/esm/lib/components/SheetWrapper.vue.mjs +3 -3
- package/esm/lib/components/SpinnerWrapper.vue.d.ts +2 -1
- package/esm/lib/components/SpinnerWrapper.vue.mjs +2 -2
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/StepperHorizontalWrapper.vue.d.ts +3 -2
- package/esm/lib/components/StepperHorizontalWrapper.vue.mjs +6 -6
- package/esm/lib/components/SwitchWrapper.vue.d.ts +3 -2
- package/esm/lib/components/SwitchWrapper.vue.mjs +6 -6
- package/esm/lib/components/TableBodyWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableBodyWrapper.vue.mjs +2 -2
- package/esm/lib/components/TableCellWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableCellWrapper.vue.mjs +2 -2
- package/esm/lib/components/TableHeadCellWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableHeadCellWrapper.vue.mjs +2 -2
- package/esm/lib/components/TableHeadRowWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableHeadRowWrapper.vue.mjs +2 -2
- package/esm/lib/components/TableHeadWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableHeadWrapper.vue.mjs +2 -2
- package/esm/lib/components/TableRowWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableRowWrapper.vue.mjs +2 -2
- package/esm/lib/components/TableWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TableWrapper.vue.mjs +6 -6
- package/esm/lib/components/TabsBarWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TabsBarWrapper.vue.mjs +6 -6
- package/esm/lib/components/TabsItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TabsItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/TabsWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TabsWrapper.vue.mjs +6 -6
- package/esm/lib/components/TagDismissibleWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TagDismissibleWrapper.vue.mjs +2 -2
- package/esm/lib/components/TagWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TagWrapper.vue.mjs +2 -2
- package/esm/lib/components/TextFieldWrapperWrapper.vue.d.ts +3 -4
- package/esm/lib/components/TextFieldWrapperWrapper.vue.mjs +3 -3
- package/esm/lib/components/TextListItemWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TextListItemWrapper.vue.mjs +2 -2
- package/esm/lib/components/TextListWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TextListWrapper.vue.mjs +2 -2
- package/esm/lib/components/TextWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TextWrapper.vue.mjs +2 -2
- package/esm/lib/components/TextareaWrapper.vue.d.ts +5 -2
- package/esm/lib/components/TextareaWrapper.vue.mjs +12 -10
- package/esm/lib/components/TextareaWrapperWrapper.vue.d.ts +3 -2
- package/esm/lib/components/TextareaWrapperWrapper.vue.mjs +2 -2
- package/esm/lib/components/ToastWrapper.vue.d.ts +2 -1
- package/esm/lib/components/ToastWrapper.vue.mjs +2 -2
- package/esm/lib/components/WordmarkWrapper.vue.d.ts +2 -1
- package/esm/lib/components/WordmarkWrapper.vue.mjs +2 -2
- package/esm/lib/components/index.d.ts +2 -0
- package/esm/lib/types.d.ts +24 -5
- package/esm/plugin.mjs +3 -3
- package/esm/public-api.d.ts +1 -1
- package/esm/public-api.mjs +121 -116
- package/esm/utils.d.ts +1 -1
- package/esm/utils.mjs +15 -15
- package/package.json +2 -2
- package/tailwindcss/index.css +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePrefix as w, themeInjectionKey as R,
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as c, inject as m, onMounted as i, onUpdated as h, watch as y, createBlock as b, openBlock as v, resolveDynamicComponent as _, unref as B, withCtx as C, renderSlot as g } from "vue";
|
|
2
|
+
import { usePrefix as w, themeInjectionKey as R, syncProperties as s, addEventListenerToElementRef as n } from "../../utils.mjs";
|
|
3
|
+
const P = /* @__PURE__ */ f({
|
|
4
4
|
__name: "MultiSelectWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
compact: { type: Boolean, default: !1 },
|
|
@@ -17,24 +17,26 @@ const g = /* @__PURE__ */ p({
|
|
|
17
17
|
theme: {},
|
|
18
18
|
value: { default: () => [] }
|
|
19
19
|
},
|
|
20
|
-
emits: ["update"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}), (
|
|
20
|
+
emits: ["update:value", "blur", "change", "update"],
|
|
21
|
+
setup(u, { emit: d }) {
|
|
22
|
+
const p = w("p-multi-select"), a = u, e = c(), o = d, l = m(R), r = () => s(e, { ...a, theme: a.theme || l.value });
|
|
23
|
+
return i(() => {
|
|
24
|
+
r(), n(e, "blur", o), n(e, "change", o, (t) => {
|
|
25
|
+
o("update:value", t.target.value);
|
|
26
|
+
}), n(e, "update", o);
|
|
27
|
+
}), h(r), y(l, (t) => {
|
|
28
|
+
s(e, { theme: a.theme || t });
|
|
29
|
+
}), (t, j) => (v(), b(_(B(p)), {
|
|
28
30
|
ref_key: "pdsComponentRef",
|
|
29
31
|
ref: e
|
|
30
32
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
+
default: C(() => [
|
|
34
|
+
g(t.$slots, "default")
|
|
33
35
|
]),
|
|
34
36
|
_: 3
|
|
35
37
|
}, 512));
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
40
|
export {
|
|
39
|
-
|
|
41
|
+
P as default
|
|
40
42
|
};
|
|
@@ -12,10 +12,11 @@ declare var __VLS_8: {};
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_8) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<POptgroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<POptgroupProps> & Readonly<{}>, {
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
19
20
|
export default _default;
|
|
20
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
21
22
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, ref as a, onMounted as f, onUpdated as c,
|
|
1
|
+
import { defineComponent as s, ref as a, onMounted as f, onUpdated as c, createBlock as l, openBlock as d, resolveDynamicComponent as m, unref as u, withCtx as i, renderSlot as _ } from "vue";
|
|
2
2
|
import { usePrefix as C, syncProperties as y } from "../../utils.mjs";
|
|
3
3
|
const x = /* @__PURE__ */ s({
|
|
4
4
|
__name: "OptgroupWrapper",
|
|
@@ -8,7 +8,7 @@ const x = /* @__PURE__ */ s({
|
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
10
|
const n = C("p-optgroup"), p = t, e = a(), o = () => y(e, p);
|
|
11
|
-
return f(o), c(o), (r, b) => (
|
|
11
|
+
return f(o), c(o), (r, b) => (d(), l(m(u(n)), {
|
|
12
12
|
ref_key: "pdsComponentRef",
|
|
13
13
|
ref: e
|
|
14
14
|
}, {
|
|
@@ -46,7 +46,7 @@ type PPaginationProps = {
|
|
|
46
46
|
*/
|
|
47
47
|
totalItemsCount: number;
|
|
48
48
|
};
|
|
49
|
-
declare const
|
|
49
|
+
declare const __VLS_export: import("vue").DefineComponent<PPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
50
50
|
update: (value: import("../types").PaginationUpdateEvent) => any;
|
|
51
51
|
pageChange: (value: import("../types").PaginationUpdateEvent) => any;
|
|
52
52
|
}, string, import("vue").PublicProps, Readonly<PPaginationProps> & Readonly<{
|
|
@@ -59,4 +59,5 @@ declare const _default: import("vue").DefineComponent<PPaginationProps, void, {}
|
|
|
59
59
|
showLastPage: boolean;
|
|
60
60
|
totalItemsCount: number;
|
|
61
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
declare const _default: typeof __VLS_export;
|
|
62
63
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as c, ref as f, inject as u, onMounted as g, onUpdated as d, watch as P,
|
|
2
|
-
import { usePrefix as x, themeInjectionKey as L,
|
|
1
|
+
import { defineComponent as c, ref as f, inject as u, onMounted as g, onUpdated as d, watch as P, createBlock as h, openBlock as y, resolveDynamicComponent as C, unref as v } from "vue";
|
|
2
|
+
import { usePrefix as x, themeInjectionKey as L, syncProperties as r, addEventListenerToElementRef as l } from "../../utils.mjs";
|
|
3
3
|
const R = /* @__PURE__ */ c({
|
|
4
4
|
__name: "PaginationWrapper",
|
|
5
5
|
props: {
|
|
@@ -17,12 +17,12 @@ const R = /* @__PURE__ */ c({
|
|
|
17
17
|
},
|
|
18
18
|
emits: ["pageChange", "update"],
|
|
19
19
|
setup(s, { emit: m }) {
|
|
20
|
-
const i = x("p-pagination"), t = s, e = f(), a = m, n = u(L), o = () =>
|
|
20
|
+
const i = x("p-pagination"), t = s, e = f(), a = m, n = u(L), o = () => r(e, { ...t, theme: t.theme || n.value });
|
|
21
21
|
return g(() => {
|
|
22
|
-
o(),
|
|
22
|
+
o(), l(e, "pageChange", a), l(e, "update", a);
|
|
23
23
|
}), d(o), P(n, (p) => {
|
|
24
|
-
|
|
25
|
-
}), (p, _) => (
|
|
24
|
+
r(e, { theme: t.theme || p });
|
|
25
|
+
}), (p, _) => (y(), h(C(v(i)), {
|
|
26
26
|
ref_key: "pdsComponentRef",
|
|
27
27
|
ref: e
|
|
28
28
|
}, null, 512));
|
|
@@ -65,10 +65,10 @@ declare var __VLS_8: {};
|
|
|
65
65
|
type __VLS_Slots = {} & {
|
|
66
66
|
default?: (props: typeof __VLS_8) => any;
|
|
67
67
|
};
|
|
68
|
-
declare const
|
|
69
|
-
|
|
68
|
+
declare const __VLS_base: import("vue").DefineComponent<PPinCodeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
69
|
+
[x: string]: any;
|
|
70
70
|
}, string, import("vue").PublicProps, Readonly<PPinCodeProps> & Readonly<{
|
|
71
|
-
|
|
71
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
73
|
label: string;
|
|
74
74
|
length: PinCodeLength;
|
|
@@ -83,7 +83,8 @@ declare const __VLS_component: import("vue").DefineComponent<PPinCodeProps, void
|
|
|
83
83
|
value: string;
|
|
84
84
|
message: string;
|
|
85
85
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
86
|
-
declare const
|
|
86
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
|
+
declare const _default: typeof __VLS_export;
|
|
87
88
|
export default _default;
|
|
88
89
|
type __VLS_WithSlots<T, S> = T & {
|
|
89
90
|
new (): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePrefix as
|
|
3
|
-
const x = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as u, ref as m, inject as c, onMounted as i, onUpdated as h, watch as y, createBlock as b, openBlock as g, resolveDynamicComponent as v, unref as B, withCtx as C, renderSlot as _ } from "vue";
|
|
2
|
+
import { usePrefix as P, themeInjectionKey as R, syncProperties as p, addEventListenerToElementRef as n } from "../../utils.mjs";
|
|
3
|
+
const x = /* @__PURE__ */ u({
|
|
4
4
|
__name: "PinCodeWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
compact: { type: Boolean, default: !1 },
|
|
@@ -19,19 +19,21 @@ const x = /* @__PURE__ */ r({
|
|
|
19
19
|
type: { default: "number" },
|
|
20
20
|
value: { default: "" }
|
|
21
21
|
},
|
|
22
|
-
emits: ["update"],
|
|
23
|
-
setup(
|
|
24
|
-
const s =
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}), (
|
|
22
|
+
emits: ["update:value", "blur", "change", "update"],
|
|
23
|
+
setup(f, { emit: r }) {
|
|
24
|
+
const s = P("p-pin-code"), o = f, e = m(), a = r, l = c(R), d = () => p(e, { ...o, theme: o.theme || l.value });
|
|
25
|
+
return i(() => {
|
|
26
|
+
d(), n(e, "blur", a), n(e, "change", a, (t) => {
|
|
27
|
+
a("update:value", t.target.value);
|
|
28
|
+
}), n(e, "update", a);
|
|
29
|
+
}), h(d), y(l, (t) => {
|
|
30
|
+
p(e, { theme: o.theme || t });
|
|
31
|
+
}), (t, j) => (g(), b(v(B(s)), {
|
|
30
32
|
ref_key: "pdsComponentRef",
|
|
31
33
|
ref: e
|
|
32
34
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
+
default: C(() => [
|
|
36
|
+
_(t.$slots, "default")
|
|
35
37
|
]),
|
|
36
38
|
_: 3
|
|
37
39
|
}, 512));
|
|
@@ -21,10 +21,11 @@ declare var __VLS_8: {};
|
|
|
21
21
|
type __VLS_Slots = {} & {
|
|
22
22
|
default?: (props: typeof __VLS_8) => any;
|
|
23
23
|
};
|
|
24
|
-
declare const
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<PPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PPopoverProps> & Readonly<{}>, {
|
|
25
25
|
direction: PopoverDirection;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
declare const
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
28
29
|
export default _default;
|
|
29
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
30
31
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as a, inject as f, onMounted as i, onUpdated as d, watch as u,
|
|
1
|
+
import { defineComponent as m, ref as a, inject as f, onMounted as i, onUpdated as d, watch as u, createBlock as h, openBlock as l, resolveDynamicComponent as _, unref as C, withCtx as y, renderSlot as v } from "vue";
|
|
2
2
|
import { usePrefix as P, themeInjectionKey as k, syncProperties as p } from "../../utils.mjs";
|
|
3
3
|
const b = /* @__PURE__ */ m({
|
|
4
4
|
__name: "PopoverWrapper",
|
|
@@ -12,7 +12,7 @@ const b = /* @__PURE__ */ m({
|
|
|
12
12
|
const c = P("p-popover"), e = s, o = a(), n = f(k), r = () => p(o, { ...e, theme: e.theme || n.value });
|
|
13
13
|
return i(r), d(r), u(n, (t) => {
|
|
14
14
|
p(o, { theme: e.theme || t });
|
|
15
|
-
}), (t, w) => (
|
|
15
|
+
}), (t, w) => (l(), h(_(C(c)), {
|
|
16
16
|
ref_key: "pdsComponentRef",
|
|
17
17
|
ref: o
|
|
18
18
|
}, {
|
|
@@ -29,14 +29,16 @@ declare var __VLS_8: {};
|
|
|
29
29
|
type __VLS_Slots = {} & {
|
|
30
30
|
default?: (props: typeof __VLS_8) => any;
|
|
31
31
|
};
|
|
32
|
-
declare const
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<PRadioButtonWrapperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PRadioButtonWrapperProps> & Readonly<{}>, {
|
|
33
33
|
label: string;
|
|
34
34
|
state: RadioButtonWrapperState;
|
|
35
35
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
36
36
|
loading: boolean;
|
|
37
37
|
message: string;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
declare const
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
/** @deprecated since v3.30.0, will be removed with next major release. Please use `p-radio-group` instead. */
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
40
42
|
export default _default;
|
|
41
43
|
type __VLS_WithSlots<T, S> = T & {
|
|
42
44
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as l, inject as m, onMounted as c, onUpdated as d, watch as u,
|
|
1
|
+
import { defineComponent as f, ref as l, inject as m, onMounted as c, onUpdated as d, watch as u, createBlock as i, openBlock as h, resolveDynamicComponent as y, unref as _, withCtx as C, renderSlot as b } from "vue";
|
|
2
2
|
import { usePrefix as B, themeInjectionKey as w, syncProperties as r } from "../../utils.mjs";
|
|
3
3
|
const k = /* @__PURE__ */ f({
|
|
4
4
|
__name: "RadioButtonWrapperWrapper",
|
|
@@ -14,7 +14,7 @@ const k = /* @__PURE__ */ f({
|
|
|
14
14
|
const s = B("p-radio-button-wrapper"), e = p, t = l(), n = m(w), a = () => r(t, { ...e, theme: e.theme || n.value });
|
|
15
15
|
return c(a), d(a), u(n, (o) => {
|
|
16
16
|
r(t, { theme: e.theme || o });
|
|
17
|
-
}), (o, R) => (
|
|
17
|
+
}), (o, R) => (h(), i(y(_(s)), {
|
|
18
18
|
ref_key: "pdsComponentRef",
|
|
19
19
|
ref: t
|
|
20
20
|
}, {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type PRadioGroupOptionProps = {
|
|
2
|
+
/**
|
|
3
|
+
* A boolean value that, if present, makes the radio group option unusable and unclickable.
|
|
4
|
+
*/
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Text content for a user-facing label.
|
|
8
|
+
*/
|
|
9
|
+
label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @experimental Shows a loading indicator.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The value for the input.
|
|
16
|
+
*/
|
|
17
|
+
value?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_export: import("vue").DefineComponent<PRadioGroupOptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PRadioGroupOptionProps> & Readonly<{}>, {
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as r, ref as a, onMounted as s, onUpdated as l, createBlock as f, openBlock as c, resolveDynamicComponent as d, unref as i } from "vue";
|
|
2
|
+
import { usePrefix as u, syncProperties as m } from "../../utils.mjs";
|
|
3
|
+
const b = /* @__PURE__ */ r({
|
|
4
|
+
__name: "RadioGroupOptionWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: { type: Boolean, default: !1 },
|
|
7
|
+
label: {},
|
|
8
|
+
loading: { type: Boolean, default: !1 },
|
|
9
|
+
value: {}
|
|
10
|
+
},
|
|
11
|
+
setup(n) {
|
|
12
|
+
const p = u("p-radio-group-option"), t = n, e = a(), o = () => m(e, t);
|
|
13
|
+
return s(o), l(o), (_, y) => (c(), f(d(i(p)), {
|
|
14
|
+
ref_key: "pdsComponentRef",
|
|
15
|
+
ref: e
|
|
16
|
+
}, null, 512));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
b as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, RadioGroupDirection, RadioGroupState, Theme } from '../types';
|
|
2
|
+
type PRadioGroupProps = {
|
|
3
|
+
/**
|
|
4
|
+
* A boolean value that, if present, renders the radio group as a compact version.
|
|
5
|
+
*/
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Supplementary text providing more context or explanation for the radio group.
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the direction of the main and cross axis. The default is 'column' showing options vertically stacked. You always need to provide a base value when using breakpoints.
|
|
13
|
+
*/
|
|
14
|
+
direction?: BreakpointCustomizable<RadioGroupDirection>;
|
|
15
|
+
/**
|
|
16
|
+
* A boolean value that, if present, makes the radio group unusable and unclickable. The value will not be submitted with the form.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the id of the <form> element that the radio group belongs to (useful if the radio group is not a direct descendant of the form).
|
|
21
|
+
*/
|
|
22
|
+
form?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Controls the visibility of the label.
|
|
25
|
+
*/
|
|
26
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Text content for a user-facing label.
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @experimental Shows a loading indicator.
|
|
33
|
+
*/
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Dynamic feedback text for validation or status.
|
|
37
|
+
*/
|
|
38
|
+
message?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the group of radio buttons, used when submitting the form data.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* A boolean value that specifies a selection must be made from the group before the form can be submitted.
|
|
45
|
+
*/
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Indicates the validation or overall status of the radio group component.
|
|
49
|
+
*/
|
|
50
|
+
state?: RadioGroupState;
|
|
51
|
+
/**
|
|
52
|
+
* Controls the visual appearance of the component.
|
|
53
|
+
*/
|
|
54
|
+
theme?: Theme;
|
|
55
|
+
/**
|
|
56
|
+
* The default value for the radio-group.
|
|
57
|
+
*/
|
|
58
|
+
value?: string;
|
|
59
|
+
};
|
|
60
|
+
declare var __VLS_8: {};
|
|
61
|
+
type __VLS_Slots = {} & {
|
|
62
|
+
default?: (props: typeof __VLS_8) => any;
|
|
63
|
+
};
|
|
64
|
+
declare const __VLS_base: import("vue").DefineComponent<PRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
65
|
+
[x: string]: any;
|
|
66
|
+
}, string, import("vue").PublicProps, Readonly<PRadioGroupProps> & Readonly<{
|
|
67
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
label: string;
|
|
70
|
+
compact: boolean;
|
|
71
|
+
description: string;
|
|
72
|
+
state: RadioGroupState;
|
|
73
|
+
required: boolean;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
76
|
+
loading: boolean;
|
|
77
|
+
value: string;
|
|
78
|
+
direction: BreakpointCustomizable<RadioGroupDirection>;
|
|
79
|
+
message: string;
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
81
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
|
+
declare const _default: typeof __VLS_export;
|
|
83
|
+
export default _default;
|
|
84
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as u, ref as m, inject as c, onMounted as i, onUpdated as h, watch as y, createBlock as b, openBlock as g, resolveDynamicComponent as v, unref as B, withCtx as _, renderSlot as C } from "vue";
|
|
2
|
+
import { usePrefix as R, themeInjectionKey as j, syncProperties as r, addEventListenerToElementRef as d } from "../../utils.mjs";
|
|
3
|
+
const P = /* @__PURE__ */ u({
|
|
4
|
+
__name: "RadioGroupWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
compact: { type: Boolean, default: !1 },
|
|
7
|
+
description: { default: "" },
|
|
8
|
+
direction: { default: "column" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
form: {},
|
|
11
|
+
hideLabel: { type: [Boolean, Object], default: !1 },
|
|
12
|
+
label: { default: "" },
|
|
13
|
+
loading: { type: Boolean, default: !1 },
|
|
14
|
+
message: { default: "" },
|
|
15
|
+
name: {},
|
|
16
|
+
required: { type: Boolean, default: !1 },
|
|
17
|
+
state: { default: "none" },
|
|
18
|
+
theme: {},
|
|
19
|
+
value: { default: "" }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:value", "blur", "change"],
|
|
22
|
+
setup(s, { emit: f }) {
|
|
23
|
+
const p = R("p-radio-group"), o = s, e = m(), a = f, n = c(j), l = () => r(e, { ...o, theme: o.theme || n.value });
|
|
24
|
+
return i(() => {
|
|
25
|
+
l(), d(e, "blur", a), d(e, "change", a, (t) => {
|
|
26
|
+
a("update:value", t.target.value);
|
|
27
|
+
});
|
|
28
|
+
}), h(l), y(n, (t) => {
|
|
29
|
+
r(e, { theme: o.theme || t });
|
|
30
|
+
}), (t, k) => (g(), b(v(B(p)), {
|
|
31
|
+
ref_key: "pdsComponentRef",
|
|
32
|
+
ref: e
|
|
33
|
+
}, {
|
|
34
|
+
default: _(() => [
|
|
35
|
+
C(t.$slots, "default")
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 512));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
P as default
|
|
43
|
+
};
|
|
@@ -37,11 +37,12 @@ declare var __VLS_8: {};
|
|
|
37
37
|
type __VLS_Slots = {} & {
|
|
38
38
|
default?: (props: typeof __VLS_8) => any;
|
|
39
39
|
};
|
|
40
|
-
declare const
|
|
40
|
+
declare const __VLS_base: import("vue").DefineComponent<PScrollerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PScrollerProps> & Readonly<{}>, {
|
|
41
41
|
scrollbar: boolean;
|
|
42
42
|
alignScrollIndicator: ScrollerAlignScrollIndicator;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
-
declare const
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
45
46
|
export default _default;
|
|
46
47
|
type __VLS_WithSlots<T, S> = T & {
|
|
47
48
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, ref as p, inject as i, onMounted as m, onUpdated as f, watch as d,
|
|
1
|
+
import { defineComponent as a, ref as p, inject as i, onMounted as m, onUpdated as f, watch as d, createBlock as u, openBlock as h, resolveDynamicComponent as C, unref as _, withCtx as y, renderSlot as P } from "vue";
|
|
2
2
|
import { usePrefix as g, themeInjectionKey as S, syncProperties as c } from "../../utils.mjs";
|
|
3
3
|
const B = /* @__PURE__ */ a({
|
|
4
4
|
__name: "ScrollerWrapper",
|
|
@@ -16,7 +16,7 @@ const B = /* @__PURE__ */ a({
|
|
|
16
16
|
const s = g("p-scroller"), e = l, o = p(), n = i(S), r = () => c(o, { ...e, theme: e.theme || n.value });
|
|
17
17
|
return m(r), f(r), d(n, (t) => {
|
|
18
18
|
c(o, { theme: e.theme || t });
|
|
19
|
-
}), (t, k) => (
|
|
19
|
+
}), (t, k) => (h(), u(C(_(s)), {
|
|
20
20
|
ref_key: "pdsComponentRef",
|
|
21
21
|
ref: o
|
|
22
22
|
}, {
|
|
@@ -29,10 +29,11 @@ declare var __VLS_8: {};
|
|
|
29
29
|
type __VLS_Slots = {} & {
|
|
30
30
|
default?: (props: typeof __VLS_8) => any;
|
|
31
31
|
};
|
|
32
|
-
declare const
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<PSegmentedControlItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PSegmentedControlItemProps> & Readonly<{}>, {
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
36
37
|
export default _default;
|
|
37
38
|
type __VLS_WithSlots<T, S> = T & {
|
|
38
39
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, ref as a, onMounted as c, onUpdated as l,
|
|
1
|
+
import { defineComponent as s, ref as a, onMounted as c, onUpdated as l, createBlock as f, openBlock as m, resolveDynamicComponent as d, unref as i, withCtx as u, renderSlot as C } from "vue";
|
|
2
2
|
import { usePrefix as _, syncProperties as y } from "../../utils.mjs";
|
|
3
3
|
const x = /* @__PURE__ */ s({
|
|
4
4
|
__name: "SegmentedControlItemWrapper",
|
|
@@ -12,7 +12,7 @@ const x = /* @__PURE__ */ s({
|
|
|
12
12
|
},
|
|
13
13
|
setup(n) {
|
|
14
14
|
const t = _("p-segmented-control-item"), r = n, e = a(), o = () => y(e, r);
|
|
15
|
-
return c(o), l(o), (p, b) => (
|
|
15
|
+
return c(o), l(o), (p, b) => (m(), f(d(i(t)), {
|
|
16
16
|
ref_key: "pdsComponentRef",
|
|
17
17
|
ref: e
|
|
18
18
|
}, {
|
|
@@ -8,6 +8,10 @@ type PSegmentedControlProps = {
|
|
|
8
8
|
* Sets the amount of columns.
|
|
9
9
|
*/
|
|
10
10
|
columns?: BreakpointCustomizable<SegmentedControlColumns>;
|
|
11
|
+
/**
|
|
12
|
+
* A boolean value that, if present, renders the segmented-control as a compact version.
|
|
13
|
+
*/
|
|
14
|
+
compact?: boolean;
|
|
11
15
|
/**
|
|
12
16
|
* Disables the segmented-control.
|
|
13
17
|
*/
|
|
@@ -33,17 +37,17 @@ declare var __VLS_8: {};
|
|
|
33
37
|
type __VLS_Slots = {} & {
|
|
34
38
|
default?: (props: typeof __VLS_8) => any;
|
|
35
39
|
};
|
|
36
|
-
declare const
|
|
37
|
-
|
|
38
|
-
segmentedControlChange: (value: import("../types").SegmentedControlUpdateEvent) => any;
|
|
40
|
+
declare const __VLS_base: import("vue").DefineComponent<PSegmentedControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
41
|
+
[x: string]: any;
|
|
39
42
|
}, string, import("vue").PublicProps, Readonly<PSegmentedControlProps> & Readonly<{
|
|
40
|
-
|
|
41
|
-
onSegmentedControlChange?: ((value: import("../types").SegmentedControlUpdateEvent) => any) | undefined;
|
|
43
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
42
44
|
}>, {
|
|
45
|
+
compact: boolean;
|
|
43
46
|
disabled: boolean;
|
|
44
47
|
columns: BreakpointCustomizable<SegmentedControlColumns>;
|
|
45
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
-
declare const
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
47
51
|
export default _default;
|
|
48
52
|
type __VLS_WithSlots<T, S> = T & {
|
|
49
53
|
new (): {
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePrefix as
|
|
3
|
-
const j = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as d, ref as u, inject as f, onMounted as i, onUpdated as h, watch as C, createBlock as g, openBlock as v, resolveDynamicComponent as y, unref as _, withCtx as b, renderSlot as k } from "vue";
|
|
2
|
+
import { usePrefix as B, themeInjectionKey as R, syncProperties as s, addEventListenerToElementRef as n } from "../../utils.mjs";
|
|
3
|
+
const j = /* @__PURE__ */ d({
|
|
4
4
|
__name: "SegmentedControlWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
backgroundColor: {},
|
|
7
7
|
columns: { default: "auto" },
|
|
8
|
+
compact: { type: Boolean, default: !1 },
|
|
8
9
|
disabled: { type: Boolean, default: !1 },
|
|
9
10
|
form: {},
|
|
10
11
|
name: {},
|
|
11
12
|
theme: {},
|
|
12
13
|
value: {}
|
|
13
14
|
},
|
|
14
|
-
emits: ["segmentedControlChange", "update"],
|
|
15
|
-
setup(
|
|
16
|
-
const c =
|
|
15
|
+
emits: ["update:value", "blur", "change", "segmentedControlChange", "update"],
|
|
16
|
+
setup(l, { emit: p }) {
|
|
17
|
+
const c = B("p-segmented-control"), a = l, e = u(), t = p, r = f(R), m = () => s(e, { ...a, theme: a.theme || r.value });
|
|
17
18
|
return i(() => {
|
|
18
|
-
m(),
|
|
19
|
+
m(), n(e, "blur", t), n(e, "change", t, (o) => {
|
|
20
|
+
t("update:value", o.target.value);
|
|
21
|
+
}), n(e, "segmentedControlChange", t), n(e, "update", t);
|
|
19
22
|
}), h(m), C(r, (o) => {
|
|
20
|
-
|
|
21
|
-
}), (o,
|
|
23
|
+
s(e, { theme: a.theme || o });
|
|
24
|
+
}), (o, w) => (v(), g(y(_(c)), {
|
|
22
25
|
ref_key: "pdsComponentRef",
|
|
23
26
|
ref: e
|
|
24
27
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
|
|
28
|
+
default: b(() => [
|
|
29
|
+
k(o.$slots, "default")
|
|
27
30
|
]),
|
|
28
31
|
_: 3
|
|
29
32
|
}, 512));
|
|
@@ -12,10 +12,11 @@ declare var __VLS_8: {};
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_8) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<PSelectOptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PSelectOptionProps> & Readonly<{}>, {
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
19
20
|
export default _default;
|
|
20
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
21
22
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, ref as a, onMounted as c, onUpdated as f,
|
|
1
|
+
import { defineComponent as s, ref as a, onMounted as c, onUpdated as f, createBlock as l, openBlock as d, resolveDynamicComponent as m, unref as i, withCtx as u, renderSlot as _ } from "vue";
|
|
2
2
|
import { usePrefix as C, syncProperties as y } from "../../utils.mjs";
|
|
3
3
|
const P = /* @__PURE__ */ s({
|
|
4
4
|
__name: "SelectOptionWrapper",
|
|
@@ -8,7 +8,7 @@ const P = /* @__PURE__ */ s({
|
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
10
|
const n = C("p-select-option"), p = t, e = a(), o = () => y(e, p);
|
|
11
|
-
return c(o), f(o), (r, k) => (
|
|
11
|
+
return c(o), f(o), (r, k) => (d(), l(m(i(n)), {
|
|
12
12
|
ref_key: "pdsComponentRef",
|
|
13
13
|
ref: e
|
|
14
14
|
}, {
|