@porsche-design-system/components-vue 3.29.0-rc.2 → 3.29.0-rc.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/cjs/lib/components/FieldsetWrapper.vue.cjs +1 -1
  3. package/cjs/lib/components/FlagWrapper.vue.cjs +1 -0
  4. package/cjs/lib/components/FlagWrapper.vue2.cjs +1 -0
  5. package/cjs/lib/components/InputDateWrapper.vue.cjs +1 -0
  6. package/cjs/lib/components/InputDateWrapper.vue2.cjs +1 -0
  7. package/cjs/lib/components/InputEmailWrapper.vue.cjs +1 -0
  8. package/cjs/lib/components/InputEmailWrapper.vue2.cjs +1 -0
  9. package/cjs/lib/components/InputTelWrapper.vue.cjs +1 -0
  10. package/cjs/lib/components/InputTelWrapper.vue2.cjs +1 -0
  11. package/cjs/lib/components/InputTimeWrapper.vue.cjs +1 -0
  12. package/cjs/lib/components/InputTimeWrapper.vue2.cjs +1 -0
  13. package/cjs/lib/components/InputUrlWrapper.vue.cjs +1 -0
  14. package/cjs/lib/components/InputUrlWrapper.vue2.cjs +1 -0
  15. package/cjs/lib/components/MultiSelectWrapper.vue.cjs +1 -1
  16. package/cjs/lib/components/ScrollerWrapper.vue.cjs +1 -1
  17. package/cjs/lib/components/TabsBarWrapper.vue.cjs +1 -1
  18. package/cjs/lib/components/TabsWrapper.vue.cjs +1 -1
  19. package/cjs/public-api.cjs +1 -1
  20. package/esm/lib/components/FieldsetWrapper.vue.d.ts +5 -1
  21. package/esm/lib/components/FieldsetWrapper.vue.mjs +5 -4
  22. package/esm/lib/components/FlagWrapper.vue.d.ts +20 -0
  23. package/esm/lib/components/FlagWrapper.vue.mjs +20 -0
  24. package/esm/lib/components/FlagWrapper.vue2.mjs +4 -0
  25. package/esm/lib/components/InputDateWrapper.vue.d.ts +108 -0
  26. package/esm/lib/components/InputDateWrapper.vue.mjs +45 -0
  27. package/esm/lib/components/InputDateWrapper.vue2.mjs +4 -0
  28. package/esm/lib/components/InputEmailWrapper.vue.d.ts +122 -0
  29. package/esm/lib/components/InputEmailWrapper.vue.mjs +48 -0
  30. package/esm/lib/components/InputEmailWrapper.vue2.mjs +4 -0
  31. package/esm/lib/components/InputNumberWrapper.vue.d.ts +18 -18
  32. package/esm/lib/components/InputPasswordWrapper.vue.d.ts +19 -19
  33. package/esm/lib/components/InputSearchWrapper.vue.d.ts +18 -18
  34. package/esm/lib/components/InputTelWrapper.vue.d.ts +117 -0
  35. package/esm/lib/components/InputTelWrapper.vue.mjs +47 -0
  36. package/esm/lib/components/InputTelWrapper.vue2.mjs +4 -0
  37. package/esm/lib/components/InputTextWrapper.vue.d.ts +19 -19
  38. package/esm/lib/components/InputTimeWrapper.vue.d.ts +108 -0
  39. package/esm/lib/components/InputTimeWrapper.vue.mjs +45 -0
  40. package/esm/lib/components/InputTimeWrapper.vue2.mjs +4 -0
  41. package/esm/lib/components/InputUrlWrapper.vue.d.ts +117 -0
  42. package/esm/lib/components/InputUrlWrapper.vue.mjs +47 -0
  43. package/esm/lib/components/InputUrlWrapper.vue2.mjs +4 -0
  44. package/esm/lib/components/MultiSelectWrapper.vue.d.ts +5 -0
  45. package/esm/lib/components/MultiSelectWrapper.vue.mjs +7 -6
  46. package/esm/lib/components/ScrollerWrapper.vue.d.ts +2 -3
  47. package/esm/lib/components/ScrollerWrapper.vue.mjs +10 -10
  48. package/esm/lib/components/TabsBarWrapper.vue.d.ts +2 -3
  49. package/esm/lib/components/TabsBarWrapper.vue.mjs +10 -10
  50. package/esm/lib/components/TabsWrapper.vue.d.ts +1 -2
  51. package/esm/lib/components/TabsWrapper.vue.mjs +7 -7
  52. package/esm/lib/components/TextareaWrapper.vue.d.ts +20 -20
  53. package/esm/lib/components/index.d.ts +6 -0
  54. package/esm/lib/types.d.ts +153 -41
  55. package/esm/public-api.mjs +148 -136
  56. package/package.json +2 -2
@@ -1,11 +1,11 @@
1
- import type { InputNumberAutoComplete, BreakpointCustomizable, InputNumberState, Theme } from '../types';
1
+ import type { BreakpointCustomizable, InputNumberState, Theme } from '../types';
2
2
  type PInputNumberProps = {
3
3
  /**
4
- * Specifies whether the input can be autofilled by the browser
4
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='postal-code').
5
5
  */
6
- autoComplete?: InputNumberAutoComplete;
6
+ autoComplete?: string;
7
7
  /**
8
- * Displays as a compact version.
8
+ * A boolean value that, if present, renders the input field as a compact version.
9
9
  */
10
10
  compact?: boolean;
11
11
  /**
@@ -13,23 +13,23 @@ type PInputNumberProps = {
13
13
  */
14
14
  controls?: boolean;
15
15
  /**
16
- * The description text.
16
+ * Supplementary text providing more context or explanation for the input.
17
17
  */
18
18
  description?: string;
19
19
  /**
20
- * Marks the number input as disabled.
20
+ * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
21
21
  */
22
22
  disabled?: boolean;
23
23
  /**
24
- * The id of a form element the number input should be associated with.
24
+ * Specifies the id of the <form> element that the input belongs to (useful if the input is not a direct descendant of the form).
25
25
  */
26
26
  form?: string;
27
27
  /**
28
- * Show or hide label and description text. For better accessibility, it is recommended to show the label.
28
+ * Controls the visibility of the label.
29
29
  */
30
30
  hideLabel?: BreakpointCustomizable<boolean>;
31
31
  /**
32
- * The label text.
32
+ * Text content for a user-facing label.
33
33
  */
34
34
  label?: string;
35
35
  /**
@@ -41,7 +41,7 @@ type PInputNumberProps = {
41
41
  */
42
42
  max?: number;
43
43
  /**
44
- * The message styled depending on validation state.
44
+ * Dynamic feedback text for validation or status.
45
45
  */
46
46
  message?: string;
47
47
  /**
@@ -49,23 +49,23 @@ type PInputNumberProps = {
49
49
  */
50
50
  min?: number;
51
51
  /**
52
- * The name of the number input.
52
+ * The name of the input field, used when submitting the form data.
53
53
  */
54
54
  name: string;
55
55
  /**
56
- * The placeholder text.
56
+ * A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Enter a number'). This text is displayed when the input field is empty.
57
57
  */
58
58
  placeholder?: string;
59
59
  /**
60
- * Specifies whether the number input should be read-only.
60
+ * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
61
61
  */
62
62
  readOnly?: boolean;
63
63
  /**
64
- * Marks the number input as required.
64
+ * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
65
65
  */
66
66
  required?: boolean;
67
67
  /**
68
- * The validation state.
68
+ * Indicates the validation or overall status of the input component.
69
69
  */
70
70
  state?: InputNumberState;
71
71
  /**
@@ -73,7 +73,7 @@ type PInputNumberProps = {
73
73
  */
74
74
  step?: number;
75
75
  /**
76
- * Adapts the color depending on the theme.
76
+ * Controls the visual appearance of the component.
77
77
  */
78
78
  theme?: Theme;
79
79
  /**
@@ -105,9 +105,9 @@ declare const __VLS_component: import("vue").DefineComponent<PInputNumberProps,
105
105
  loading: boolean;
106
106
  value: string;
107
107
  message: string;
108
- controls: boolean;
109
- placeholder: string;
110
108
  readOnly: boolean;
109
+ placeholder: string;
110
+ controls: boolean;
111
111
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
112
112
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
113
113
  export default _default;
@@ -1,31 +1,31 @@
1
- import type { InputPasswordAutoComplete, BreakpointCustomizable, InputPasswordState, Theme } from '../types';
1
+ import type { BreakpointCustomizable, InputPasswordState, Theme } from '../types';
2
2
  type PInputPasswordProps = {
3
3
  /**
4
- * Specifies whether the input can be autofilled by the browser
4
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='current-password', autocomplete='new-password').
5
5
  */
6
- autoComplete?: InputPasswordAutoComplete;
6
+ autoComplete?: string;
7
7
  /**
8
- * Displays as a compact version.
8
+ * A boolean value that, if present, renders the input field as a compact version.
9
9
  */
10
10
  compact?: boolean;
11
11
  /**
12
- * The description text.
12
+ * Supplementary text providing more context or explanation for the input.
13
13
  */
14
14
  description?: string;
15
15
  /**
16
- * Marks the password input as disabled.
16
+ * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
17
17
  */
18
18
  disabled?: boolean;
19
19
  /**
20
- * The id of a form element the password input should be associated with.
20
+ * Specifies the id of the <form> element that the input belongs to (useful if the input is not a direct descendant of the form).
21
21
  */
22
22
  form?: string;
23
23
  /**
24
- * Show or hide label and description text. For better accessibility it is recommended to show the label.
24
+ * Controls the visibility of the label.
25
25
  */
26
26
  hideLabel?: BreakpointCustomizable<boolean>;
27
27
  /**
28
- * The label text.
28
+ * Text content for a user-facing label.
29
29
  */
30
30
  label?: string;
31
31
  /**
@@ -33,39 +33,39 @@ type PInputPasswordProps = {
33
33
  */
34
34
  loading?: boolean;
35
35
  /**
36
- * The max length of the password input.
36
+ * A non-negative integer specifying the maximum number of characters the user can enter into the input.
37
37
  */
38
38
  maxLength?: number;
39
39
  /**
40
- * The message styled depending on validation state.
40
+ * Dynamic feedback text for validation or status.
41
41
  */
42
42
  message?: string;
43
43
  /**
44
- * The min length of the password input.
44
+ * A non-negative integer specifying the minimum number of characters required for the input's value to be considered valid.
45
45
  */
46
46
  minLength?: number;
47
47
  /**
48
- * The name of the password input.
48
+ * The name of the input field, used when submitting the form data.
49
49
  */
50
50
  name: string;
51
51
  /**
52
- * The placeholder text.
52
+ * A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Enter your password'). This text is displayed when the input field is empty.
53
53
  */
54
54
  placeholder?: string;
55
55
  /**
56
- * Specifies whether the password input should be read-only.
56
+ * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
57
57
  */
58
58
  readOnly?: boolean;
59
59
  /**
60
- * Marks the password input as required.
60
+ * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
61
61
  */
62
62
  required?: boolean;
63
63
  /**
64
- * The validation state.
64
+ * Indicates the validation or overall status of the input component.
65
65
  */
66
66
  state?: InputPasswordState;
67
67
  /**
68
- * Adapts the color depending on the theme.
68
+ * Controls the visual appearance of the component.
69
69
  */
70
70
  theme?: Theme;
71
71
  /**
@@ -101,8 +101,8 @@ declare const __VLS_component: import("vue").DefineComponent<PInputPasswordProps
101
101
  loading: boolean;
102
102
  value: string;
103
103
  message: string;
104
- placeholder: string;
105
104
  readOnly: boolean;
105
+ placeholder: string;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
107
107
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
108
108
  export default _default;
@@ -1,31 +1,31 @@
1
- import type { InputSearchAutoComplete, BreakpointCustomizable, InputSearchState, Theme } from '../types';
1
+ import type { BreakpointCustomizable, InputSearchState, Theme } from '../types';
2
2
  type PInputSearchProps = {
3
3
  /**
4
- * Specifies whether the input can be autofilled by the browser
4
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='on').
5
5
  */
6
- autoComplete?: InputSearchAutoComplete;
6
+ autoComplete?: string;
7
7
  /**
8
8
  * Show clear input value button
9
9
  */
10
10
  clear?: boolean;
11
11
  /**
12
- * Displays as a compact version.
12
+ * A boolean value that, if present, renders the input field as a compact version.
13
13
  */
14
14
  compact?: boolean;
15
15
  /**
16
- * The description text.
16
+ * Supplementary text providing more context or explanation for the input.
17
17
  */
18
18
  description?: string;
19
19
  /**
20
- * Marks the search input as disabled.
20
+ * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
21
21
  */
22
22
  disabled?: boolean;
23
23
  /**
24
- * The id of a form element the search input should be associated with.
24
+ * Specifies the id of the <form> element that the input belongs to (useful if the input is not a direct descendant of the form).
25
25
  */
26
26
  form?: string;
27
27
  /**
28
- * Show or hide label and description text. For better accessibility it is recommended to show the label.
28
+ * Controls the visibility of the label.
29
29
  */
30
30
  hideLabel?: BreakpointCustomizable<boolean>;
31
31
  /**
@@ -33,7 +33,7 @@ type PInputSearchProps = {
33
33
  */
34
34
  indicator?: boolean;
35
35
  /**
36
- * The label text.
36
+ * Text content for a user-facing label.
37
37
  */
38
38
  label?: string;
39
39
  /**
@@ -41,31 +41,31 @@ type PInputSearchProps = {
41
41
  */
42
42
  loading?: boolean;
43
43
  /**
44
- * The message styled depending on validation state.
44
+ * Dynamic feedback text for validation or status.
45
45
  */
46
46
  message?: string;
47
47
  /**
48
- * The name of the search input.
48
+ * The name of the input field, used when submitting the form data.
49
49
  */
50
50
  name: string;
51
51
  /**
52
- * The placeholder text.
52
+ * A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Search...'). This text is displayed when the input field is empty.
53
53
  */
54
54
  placeholder?: string;
55
55
  /**
56
- * Specifies whether the search input should be read-only.
56
+ * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
57
57
  */
58
58
  readOnly?: boolean;
59
59
  /**
60
- * Marks the search input as required.
60
+ * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
61
61
  */
62
62
  required?: boolean;
63
63
  /**
64
- * The validation state.
64
+ * Indicates the validation or overall status of the input component.
65
65
  */
66
66
  state?: InputSearchState;
67
67
  /**
68
- * Adapts the color depending on the theme.
68
+ * Controls the visual appearance of the component.
69
69
  */
70
70
  theme?: Theme;
71
71
  /**
@@ -96,10 +96,10 @@ declare const __VLS_component: import("vue").DefineComponent<PInputSearchProps,
96
96
  loading: boolean;
97
97
  value: string;
98
98
  message: string;
99
- placeholder: string;
100
99
  readOnly: boolean;
101
- clear: boolean;
102
100
  indicator: boolean;
101
+ placeholder: string;
102
+ clear: boolean;
103
103
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
104
104
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
105
105
  export default _default;
@@ -0,0 +1,117 @@
1
+ import type { BreakpointCustomizable, InputTelState, Theme } from '../types';
2
+ type PInputTelProps = {
3
+ /**
4
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='tel').
5
+ */
6
+ autoComplete?: string;
7
+ /**
8
+ * A boolean value that, if present, renders the input field as a compact version.
9
+ */
10
+ compact?: boolean;
11
+ /**
12
+ * Supplementary text providing more context or explanation for the input.
13
+ */
14
+ description?: string;
15
+ /**
16
+ * A boolean value that, if present, makes the input field 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 input belongs to (useful if the input 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
+ * Controls the visibility of the phone icon.
29
+ */
30
+ indicator?: boolean;
31
+ /**
32
+ * Text content for a user-facing label.
33
+ */
34
+ label?: string;
35
+ /**
36
+ * @experimental Shows a loading indicator.
37
+ */
38
+ loading?: boolean;
39
+ /**
40
+ * A non-negative integer specifying the maximum number of characters the user can enter into the input.
41
+ */
42
+ maxLength?: number;
43
+ /**
44
+ * Dynamic feedback text for validation or status.
45
+ */
46
+ message?: string;
47
+ /**
48
+ * A non-negative integer specifying the minimum number of characters required for the input's value to be considered valid.
49
+ */
50
+ minLength?: number;
51
+ /**
52
+ * The name of the input field, used when submitting the form data.
53
+ */
54
+ name: string;
55
+ /**
56
+ * Specifies a regular expression that the input's value must match for the value to pass constraint validation. This allows for more specific tel validation rules than the browser's default. If provided, it overrides the browser's default tel validation.
57
+ */
58
+ pattern?: string;
59
+ /**
60
+ * A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='(123) 456-7890')
61
+ */
62
+ placeholder?: string;
63
+ /**
64
+ * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
65
+ */
66
+ readOnly?: boolean;
67
+ /**
68
+ * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
69
+ */
70
+ required?: boolean;
71
+ /**
72
+ * Indicates the validation or overall status of the input component.
73
+ */
74
+ state?: InputTelState;
75
+ /**
76
+ * Controls the visual appearance of the component.
77
+ */
78
+ theme?: Theme;
79
+ /**
80
+ * The tel input value.
81
+ */
82
+ value?: string;
83
+ };
84
+ declare var __VLS_8: {};
85
+ type __VLS_Slots = {} & {
86
+ default?: (props: typeof __VLS_8) => any;
87
+ };
88
+ declare const __VLS_component: import("vue").DefineComponent<PInputTelProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
89
+ blur: (value: Event) => any;
90
+ change: (value: Event) => any;
91
+ input: (value: InputEvent) => any;
92
+ }, string, import("vue").PublicProps, Readonly<PInputTelProps> & Readonly<{
93
+ onBlur?: ((value: Event) => any) | undefined;
94
+ onChange?: ((value: Event) => any) | undefined;
95
+ onInput?: ((value: InputEvent) => any) | undefined;
96
+ }>, {
97
+ label: string;
98
+ compact: boolean;
99
+ description: string;
100
+ state: InputTelState;
101
+ required: boolean;
102
+ disabled: boolean;
103
+ hideLabel: BreakpointCustomizable<boolean>;
104
+ loading: boolean;
105
+ value: string;
106
+ message: string;
107
+ readOnly: boolean;
108
+ indicator: boolean;
109
+ placeholder: string;
110
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
111
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
112
+ export default _default;
113
+ type __VLS_WithSlots<T, S> = T & {
114
+ new (): {
115
+ $slots: S;
116
+ };
117
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent as u, ref as m, inject as c, onMounted as i, onUpdated as h, watch as y, openBlock as B, createBlock as g, resolveDynamicComponent as C, unref as _, withCtx as b, renderSlot as v } from "vue";
2
+ import { usePrefix as x, themeInjectionKey as L, addEventListenerToElementRef as o, syncProperties as p } from "../../utils.mjs";
3
+ const P = /* @__PURE__ */ u({
4
+ __name: "InputTelWrapper",
5
+ props: {
6
+ autoComplete: {},
7
+ compact: { type: Boolean, default: !1 },
8
+ description: { default: "" },
9
+ disabled: { type: Boolean, default: !1 },
10
+ form: {},
11
+ hideLabel: { default: !1 },
12
+ indicator: { type: Boolean, default: !1 },
13
+ label: { default: "" },
14
+ loading: { type: Boolean, default: !1 },
15
+ maxLength: {},
16
+ message: { default: "" },
17
+ minLength: {},
18
+ name: {},
19
+ pattern: {},
20
+ placeholder: { default: "" },
21
+ readOnly: { type: Boolean, default: !1 },
22
+ required: { type: Boolean, default: !1 },
23
+ state: { default: "none" },
24
+ theme: {},
25
+ value: { default: "" }
26
+ },
27
+ emits: ["blur", "change", "input"],
28
+ setup(r, { emit: s }) {
29
+ const d = x("p-input-tel"), t = r, e = m(), n = s, l = c(L), f = () => p(e, { ...t, theme: t.theme || l.value });
30
+ return i(() => {
31
+ f(), o(e, "blur", n), o(e, "change", n), o(e, "input", n);
32
+ }), h(f), y(l, (a) => {
33
+ p(e, { theme: t.theme || a });
34
+ }), (a, R) => (B(), g(C(_(d)), {
35
+ ref_key: "pdsComponentRef",
36
+ ref: e
37
+ }, {
38
+ default: b(() => [
39
+ v(a.$slots, "default")
40
+ ]),
41
+ _: 3
42
+ }, 512));
43
+ }
44
+ });
45
+ export {
46
+ P as default
47
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./InputTelWrapper.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,11 +1,11 @@
1
- import type { InputTextAutoComplete, BreakpointCustomizable, InputTextState, Theme } from '../types';
1
+ import type { BreakpointCustomizable, InputTextState, Theme } from '../types';
2
2
  type PInputTextProps = {
3
3
  /**
4
- * Specifies whether the input can be autofilled by the browser
4
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='name').
5
5
  */
6
- autoComplete?: InputTextAutoComplete;
6
+ autoComplete?: string;
7
7
  /**
8
- * Displays as a compact version.
8
+ * A boolean value that, if present, renders the input field as a compact version.
9
9
  */
10
10
  compact?: boolean;
11
11
  /**
@@ -13,23 +13,23 @@ type PInputTextProps = {
13
13
  */
14
14
  counter?: boolean;
15
15
  /**
16
- * The description text.
16
+ * Supplementary text providing more context or explanation for the input.
17
17
  */
18
18
  description?: string;
19
19
  /**
20
- * Marks the text input as disabled.
20
+ * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
21
21
  */
22
22
  disabled?: boolean;
23
23
  /**
24
- * The id of a form element the text input should be associated with.
24
+ * Specifies the id of the <form> element that the input belongs to (useful if the input is not a direct descendant of the form).
25
25
  */
26
26
  form?: string;
27
27
  /**
28
- * Show or hide label and description text. For better accessibility, it is recommended to show the label.
28
+ * Controls the visibility of the label.
29
29
  */
30
30
  hideLabel?: BreakpointCustomizable<boolean>;
31
31
  /**
32
- * The label text.
32
+ * Text content for a user-facing label.
33
33
  */
34
34
  label?: string;
35
35
  /**
@@ -37,31 +37,31 @@ type PInputTextProps = {
37
37
  */
38
38
  loading?: boolean;
39
39
  /**
40
- * The max length of the text input.
40
+ * A non-negative integer specifying the maximum number of characters the user can enter into the input.
41
41
  */
42
42
  maxLength?: number;
43
43
  /**
44
- * The message styled depending on validation state.
44
+ * Dynamic feedback text for validation or status.
45
45
  */
46
46
  message?: string;
47
47
  /**
48
- * The min length of the text input.
48
+ * A non-negative integer specifying the minimum number of characters required for the input's value to be considered valid.
49
49
  */
50
50
  minLength?: number;
51
51
  /**
52
- * The name of the text input.
52
+ * The name of the input field, used when submitting the form data.
53
53
  */
54
54
  name: string;
55
55
  /**
56
- * The placeholder text.
56
+ * A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Enter your full name'). This text is displayed when the input field is empty.
57
57
  */
58
58
  placeholder?: string;
59
59
  /**
60
- * Specifies whether the text input should be read-only.
60
+ * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
61
61
  */
62
62
  readOnly?: boolean;
63
63
  /**
64
- * Marks the text input as required.
64
+ * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
65
65
  */
66
66
  required?: boolean;
67
67
  /**
@@ -69,11 +69,11 @@ type PInputTextProps = {
69
69
  */
70
70
  spellCheck?: boolean;
71
71
  /**
72
- * The validation state.
72
+ * Indicates the validation or overall status of the input component.
73
73
  */
74
74
  state?: InputTextState;
75
75
  /**
76
- * Adapts the color depending on the theme.
76
+ * Controls the visual appearance of the component.
77
77
  */
78
78
  theme?: Theme;
79
79
  /**
@@ -104,8 +104,8 @@ declare const __VLS_component: import("vue").DefineComponent<PInputTextProps, vo
104
104
  loading: boolean;
105
105
  value: string;
106
106
  message: string;
107
- placeholder: string;
108
107
  readOnly: boolean;
108
+ placeholder: string;
109
109
  counter: boolean;
110
110
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
111
111
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;