fds-vue-core 8.0.0 → 8.0.1
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/components/FdsDevMode/FdsDevMode.stories.d.ts +1 -0
- package/dist/components/FdsDevMode/FdsDevMode.vue.d.ts +22 -5
- package/dist/components/FdsDevMode/FdsDevModeOverlay.vue.d.ts +21 -0
- package/dist/components/FdsDevMode/types.d.ts +13 -0
- package/dist/components/FdsSearchSelect/FdsSearchSelect.vue.d.ts +4 -4
- package/dist/components/FdsSearchSelectPro/FdsSearchSelectPro.vue.d.ts +4 -4
- package/dist/components/Form/FdsCheckbox/FdsCheckbox.vue.d.ts +2 -2
- package/dist/components/Form/FdsInput/FdsInput.vue.d.ts +2 -2
- package/dist/components/Form/FdsPhonenumber/FdsPhonenumber.vue.d.ts +4 -4
- package/dist/components/Form/FdsPhonenumber/countries.d.ts +0 -1
- package/dist/components/Form/FdsRadio/FdsRadio.vue.d.ts +3 -3
- package/dist/components/Form/FdsSelect/FdsSelect.vue.d.ts +2 -2
- package/dist/components/Form/FdsTextarea/FdsTextarea.vue.d.ts +3 -3
- package/dist/composables/useDevModeEnvironment.d.ts +10 -0
- package/dist/composables/useDevModePoEditor.d.ts +5 -0
- package/dist/fds-vue-core.cjs.js +6265 -6026
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +6266 -6027
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/lang/en.json.d.ts +72 -0
- package/dist/lang/sv.json.d.ts +72 -0
- package/dist/plugin/i18n.d.ts +7 -0
- package/dist/plugin/useFdsI18n.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue +1 -2
- package/src/components/FdsDevMode/FdsDevMode.stories.ts +79 -0
- package/src/components/FdsDevMode/FdsDevMode.vue +53 -57
- package/src/components/FdsDevMode/FdsDevModeOverlay.vue +142 -0
- package/src/components/FdsDevMode/FdsDevModeStorage.vue +1 -13
- package/src/components/FdsDevMode/types.ts +16 -0
- package/src/components/FdsPopover/FdsPopover.vue +1 -1
- package/src/components/Form/FdsPhonenumber/countries.ts +2 -4
- package/src/composables/useDevModeEnvironment.ts +54 -0
- package/src/composables/useDevModePoEditor.ts +87 -0
- package/src/index.ts +10 -1
- package/src/lang/en.json +9 -3
- package/src/lang/sv.json +9 -3
- package/src/plugin/i18n.ts +7 -0
- package/src/plugin/useFdsI18n.ts +11 -0
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DevModeEnvironmentKey } from '../../composables/useDevModeEnvironment';
|
|
2
|
+
import { DevModeAction, DevModeToggle } from './types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
environment?:
|
|
4
|
+
environment?: DevModeEnvironmentKey | null;
|
|
5
5
|
customActions?: DevModeAction[];
|
|
6
|
+
toggles?: DevModeToggle[];
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
'toggleChecked'?: Record<string, boolean>;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
toggle: (payload: {
|
|
13
|
+
key: string;
|
|
14
|
+
value: boolean;
|
|
15
|
+
}) => any;
|
|
16
|
+
"update:toggleChecked": (value: Record<string, boolean>) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
onToggle?: ((payload: {
|
|
19
|
+
key: string;
|
|
20
|
+
value: boolean;
|
|
21
|
+
}) => any) | undefined;
|
|
22
|
+
"onUpdate:toggleChecked"?: ((value: Record<string, boolean>) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
environment: DevModeEnvironmentKey | null;
|
|
25
|
+
toggles: DevModeToggle[];
|
|
8
26
|
customActions: DevModeAction[];
|
|
9
|
-
environment: EnvironmentKey | null;
|
|
10
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
28
|
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DevModeEnvironmentKey } from '../../composables/useDevModeEnvironment';
|
|
2
|
+
import { DevModeOverlayToggle } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
environment?: DevModeEnvironmentKey | null;
|
|
5
|
+
toggles?: DevModeOverlayToggle[];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
toggle: (payload: {
|
|
9
|
+
key: string;
|
|
10
|
+
value: boolean;
|
|
11
|
+
}) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onToggle?: ((payload: {
|
|
14
|
+
key: string;
|
|
15
|
+
value: boolean;
|
|
16
|
+
}) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
environment: DevModeEnvironmentKey | null;
|
|
19
|
+
toggles: DevModeOverlayToggle[];
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
export type DevModeToggle = {
|
|
2
|
+
/** Unique key – must match key in `toggle-checked`. */
|
|
3
|
+
key: string;
|
|
4
|
+
/** fds-vue-core i18n key. Defaults to `FdsDevMode.overlay.toggles.{key}`. */
|
|
5
|
+
labelKey?: string;
|
|
6
|
+
};
|
|
7
|
+
export type DevModeOverlayToggle = DevModeToggle & {
|
|
8
|
+
checked: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type DevModeToggleEvent = {
|
|
11
|
+
key: string;
|
|
12
|
+
value: boolean;
|
|
13
|
+
};
|
|
1
14
|
export type DevModeActionInput = {
|
|
2
15
|
placeholder?: string;
|
|
3
16
|
defaultValue?: string;
|
|
@@ -54,10 +54,10 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProps, {
|
|
|
54
54
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
55
55
|
onChange?: ((ev: Event) => any) | undefined;
|
|
56
56
|
onKeyup?: ((ev: KeyboardEvent) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
57
58
|
onClearInput?: (() => any) | undefined;
|
|
58
59
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
59
60
|
"onKeyup.enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
|
60
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
61
61
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
62
|
"update:modelValue": (value: string) => any;
|
|
63
63
|
} & {
|
|
@@ -78,12 +78,12 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProps, {
|
|
|
78
78
|
meta: string;
|
|
79
79
|
mask: string | RegExp | Array<string | RegExp>;
|
|
80
80
|
pattern: string;
|
|
81
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
81
82
|
valid: boolean | null;
|
|
82
83
|
optional: boolean;
|
|
83
84
|
labelLeft: boolean;
|
|
84
85
|
clearButton: boolean;
|
|
85
86
|
ariaLabel: string;
|
|
86
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
87
87
|
maskOptions: {
|
|
88
88
|
lazy?: boolean;
|
|
89
89
|
placeholderChar?: string;
|
|
@@ -108,10 +108,10 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProps, {
|
|
|
108
108
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
109
109
|
onChange?: ((ev: Event) => any) | undefined;
|
|
110
110
|
onKeyup?: ((ev: KeyboardEvent) => any) | undefined;
|
|
111
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
111
112
|
onClearInput?: (() => any) | undefined;
|
|
112
113
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
113
114
|
"onKeyup.enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
|
114
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, {
|
|
116
116
|
disabled: boolean;
|
|
117
117
|
required: boolean;
|
|
@@ -122,12 +122,12 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProps, {
|
|
|
122
122
|
meta: string;
|
|
123
123
|
mask: string | RegExp | Array<string | RegExp>;
|
|
124
124
|
pattern: string;
|
|
125
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
125
126
|
valid: boolean | null;
|
|
126
127
|
optional: boolean;
|
|
127
128
|
labelLeft: boolean;
|
|
128
129
|
clearButton: boolean;
|
|
129
130
|
ariaLabel: string;
|
|
130
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
131
131
|
maskOptions: {
|
|
132
132
|
lazy?: boolean;
|
|
133
133
|
placeholderChar?: string;
|
|
@@ -75,10 +75,10 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProProps, {
|
|
|
75
75
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
76
76
|
onChange?: ((ev: Event) => any) | undefined;
|
|
77
77
|
onKeyup?: ((ev: KeyboardEvent) => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
78
79
|
onClearInput?: (() => any) | undefined;
|
|
79
80
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
80
81
|
"onKeyup.enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
|
81
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
82
82
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
83
83
|
"update:modelValue": (value: string) => any;
|
|
84
84
|
} & {
|
|
@@ -99,12 +99,12 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProProps, {
|
|
|
99
99
|
meta: string;
|
|
100
100
|
mask: string | RegExp | Array<string | RegExp>;
|
|
101
101
|
pattern: string;
|
|
102
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
102
103
|
valid: boolean | null;
|
|
103
104
|
optional: boolean;
|
|
104
105
|
labelLeft: boolean;
|
|
105
106
|
clearButton: boolean;
|
|
106
107
|
ariaLabel: string;
|
|
107
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
108
108
|
maskOptions: {
|
|
109
109
|
lazy?: boolean;
|
|
110
110
|
placeholderChar?: string;
|
|
@@ -129,10 +129,10 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProProps, {
|
|
|
129
129
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
130
130
|
onChange?: ((ev: Event) => any) | undefined;
|
|
131
131
|
onKeyup?: ((ev: KeyboardEvent) => any) | undefined;
|
|
132
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
132
133
|
onClearInput?: (() => any) | undefined;
|
|
133
134
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
134
135
|
"onKeyup.enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
|
135
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
136
136
|
}>, {}, {}, {}, {}, {
|
|
137
137
|
disabled: boolean;
|
|
138
138
|
required: boolean;
|
|
@@ -143,12 +143,12 @@ declare const _default: import('vue').DefineComponent<FdsSearchSelectProProps, {
|
|
|
143
143
|
meta: string;
|
|
144
144
|
mask: string | RegExp | Array<string | RegExp>;
|
|
145
145
|
pattern: string;
|
|
146
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
146
147
|
valid: boolean | null;
|
|
147
148
|
optional: boolean;
|
|
148
149
|
labelLeft: boolean;
|
|
149
150
|
clearButton: boolean;
|
|
150
151
|
ariaLabel: string;
|
|
151
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
152
152
|
maskOptions: {
|
|
153
153
|
lazy?: boolean;
|
|
154
154
|
placeholderChar?: string;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
25
|
onInput?: ((value: boolean) => any) | undefined;
|
|
26
26
|
onChange?: ((value: boolean) => any) | undefined;
|
|
27
|
-
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean | null)[]) => any) | undefined;
|
|
28
27
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean | null)[]) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
required: boolean;
|
|
@@ -33,9 +33,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
33
33
|
dataTestid: string;
|
|
34
34
|
class: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
35
35
|
label: string;
|
|
36
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
37
36
|
indeterminate: boolean;
|
|
38
37
|
checked: boolean;
|
|
38
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
39
39
|
disablePseudoStates: boolean;
|
|
40
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -18,10 +18,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
18
18
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
19
19
|
onChange?: ((ev: Event) => any) | undefined;
|
|
20
20
|
onKeyup?: ((ev: KeyboardEvent) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
22
|
onClearInput?: (() => any) | undefined;
|
|
22
23
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
23
24
|
"onKeyup.enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
|
24
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
disabled: boolean;
|
|
27
27
|
required: boolean;
|
|
@@ -32,12 +32,12 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
32
32
|
meta: string;
|
|
33
33
|
mask: string | RegExp | Array<string | RegExp>;
|
|
34
34
|
pattern: string;
|
|
35
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
35
36
|
valid: boolean | null;
|
|
36
37
|
optional: boolean;
|
|
37
38
|
labelLeft: boolean;
|
|
38
39
|
clearButton: boolean;
|
|
39
40
|
ariaLabel: string;
|
|
40
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
41
41
|
maskOptions: {
|
|
42
42
|
lazy?: boolean;
|
|
43
43
|
placeholderChar?: string;
|
|
@@ -6,15 +6,15 @@ type __VLS_PublicProps = {
|
|
|
6
6
|
} & __VLS_Props;
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
blur: (ev: FocusEvent) => any;
|
|
9
|
-
valid: (value: boolean | null) => any;
|
|
10
9
|
"update:modelValue": (...args: unknown[]) => any;
|
|
10
|
+
valid: (value: boolean | null) => any;
|
|
11
11
|
noCountryResults: (value: boolean) => any;
|
|
12
12
|
"update:country": (...args: unknown[]) => any;
|
|
13
13
|
"update:e164": (phoneNumber: string) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
15
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
16
|
-
onValid?: ((value: boolean | null) => any) | undefined;
|
|
17
16
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
17
|
+
onValid?: ((value: boolean | null) => any) | undefined;
|
|
18
18
|
onNoCountryResults?: ((value: boolean) => any) | undefined;
|
|
19
19
|
"onUpdate:country"?: ((...args: unknown[]) => any) | undefined;
|
|
20
20
|
"onUpdate:e164"?: ((phoneNumber: string) => any) | undefined;
|
|
@@ -30,14 +30,14 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
30
30
|
meta: string;
|
|
31
31
|
pattern: string;
|
|
32
32
|
autofocus: boolean;
|
|
33
|
+
locale: string;
|
|
34
|
+
inputClass: string;
|
|
33
35
|
valid: boolean | null;
|
|
34
36
|
optional: boolean;
|
|
35
37
|
invalidMessage: string;
|
|
36
38
|
minlength: number;
|
|
37
39
|
autocomplete: string;
|
|
38
40
|
readonly: boolean;
|
|
39
|
-
inputClass: string;
|
|
40
|
-
locale: string;
|
|
41
41
|
defaultCountry: string;
|
|
42
42
|
countries: import('./countries').CountryPhoneOption[];
|
|
43
43
|
selectClass: string;
|
|
@@ -4,7 +4,6 @@ export interface CountryPhoneOption {
|
|
|
4
4
|
countryCode: string;
|
|
5
5
|
countryName: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const PRIORITIZED_COUNTRIES: readonly ["SE", "NO", "DK", "FI"];
|
|
8
7
|
export declare function isPrioritizedCountry(iso2: string): boolean;
|
|
9
8
|
export declare function sortCountryOptionsByName(options: CountryPhoneOption[], locale?: string, _preferredCountry?: string): CountryPhoneOption[];
|
|
10
9
|
/** Country options for phone fields; SE/NO/DK/FI first, then alphabetical by name. */
|
|
@@ -20,13 +20,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
20
20
|
} & {
|
|
21
21
|
input: (value: string | number | boolean | null) => any;
|
|
22
22
|
change: (value: string | number | boolean | null) => any;
|
|
23
|
-
"update:modelValue": (value: string | number | boolean | null) => any;
|
|
24
23
|
"update:checked": (value: boolean) => any;
|
|
24
|
+
"update:modelValue": (value: string | number | boolean | null) => any;
|
|
25
25
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
26
|
onInput?: ((value: string | number | boolean | null) => any) | undefined;
|
|
27
27
|
onChange?: ((value: string | number | boolean | null) => any) | undefined;
|
|
28
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean | null) => any) | undefined;
|
|
29
28
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | null) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
disabled: boolean;
|
|
32
32
|
required: boolean;
|
|
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
36
36
|
dataTestid: string;
|
|
37
37
|
class: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
38
38
|
label: string;
|
|
39
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
40
39
|
checked: boolean;
|
|
40
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
41
41
|
disablePseudoStates: boolean;
|
|
42
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
25
|
onInput?: ((ev: Event) => any) | undefined;
|
|
26
26
|
onChange?: ((ev: Event) => any) | undefined;
|
|
27
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
28
27
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
value: string;
|
|
31
31
|
dataTestid: string;
|
|
@@ -36,10 +36,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
36
36
|
label: string;
|
|
37
37
|
disabled?: boolean;
|
|
38
38
|
}[];
|
|
39
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
39
40
|
valid: boolean | null;
|
|
40
41
|
optional: boolean;
|
|
41
42
|
invalidMessage: string;
|
|
42
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
43
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
45
|
export default _default;
|
|
@@ -7,25 +7,25 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
7
7
|
input: (ev: Event) => any;
|
|
8
8
|
blur: (ev: FocusEvent) => any;
|
|
9
9
|
change: (ev: Event) => any;
|
|
10
|
+
"update:modelValue": (value: string) => any;
|
|
10
11
|
valid: (value: boolean | null) => any;
|
|
11
12
|
"update:value": (value: string) => any;
|
|
12
|
-
"update:modelValue": (value: string) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
onInput?: ((ev: Event) => any) | undefined;
|
|
15
15
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
16
16
|
onChange?: ((ev: Event) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
18
|
onValid?: ((value: boolean | null) => any) | undefined;
|
|
18
19
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
19
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
maxlength: number;
|
|
22
22
|
value: string;
|
|
23
23
|
dataTestid: string;
|
|
24
24
|
label: string;
|
|
25
25
|
meta: string;
|
|
26
|
+
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
26
27
|
valid: boolean | null;
|
|
27
28
|
optional: boolean;
|
|
28
|
-
inputClass: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
29
29
|
modelModifiers: {
|
|
30
30
|
lazy?: boolean;
|
|
31
31
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
export type DevModeEnvironmentKey = 'localhost' | 'development' | 'development:feature-branch' | 'preprod' | 'demo' | 'production';
|
|
3
|
+
export declare function useDevModeEnvironment(environment: MaybeRefOrGetter<DevModeEnvironmentKey | null | undefined>): {
|
|
4
|
+
environmentKey: import('vue').ComputedRef<DevModeEnvironmentKey | null>;
|
|
5
|
+
isDevEnv: import('vue').ComputedRef<boolean>;
|
|
6
|
+
isPreprod: import('vue').ComputedRef<boolean>;
|
|
7
|
+
isLocalhost: import('vue').ComputedRef<boolean>;
|
|
8
|
+
environmentText: import('vue').ComputedRef<"Localhost" | "Development" | "Dev: Feature" | "Preprod" | "Demo" | "Production" | "Environment not found">;
|
|
9
|
+
isBannerEnvironment: import('vue').ComputedRef<boolean>;
|
|
10
|
+
};
|