fds-vue-core 8.6.3 → 8.6.5
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/Form/FdsSsn/FdsSsn.vue.d.ts +4 -0
- package/dist/components/Form/FdsSsn/types.d.ts +4 -1
- package/dist/fds-vue-core.cjs.js +318 -84
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +318 -84
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/src/components/Form/FdsInput/FdsInput.vue +2 -1
- package/src/components/Form/FdsSsn/FdsSsn.stories.ts +53 -0
- package/src/components/Form/FdsSsn/FdsSsn.vue +19 -2
- package/src/components/Form/FdsSsn/types.ts +5 -0
|
@@ -7,16 +7,19 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
7
7
|
blur: (ev: FocusEvent) => any;
|
|
8
8
|
"update:modelValue": (...args: unknown[]) => any;
|
|
9
9
|
valid: (value: boolean | null) => any;
|
|
10
|
+
clearInput: () => any;
|
|
10
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
12
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
12
13
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
13
14
|
onValid?: ((value: boolean | null) => any) | undefined;
|
|
15
|
+
onClearInput?: (() => any) | undefined;
|
|
14
16
|
}>, {
|
|
15
17
|
disabled: boolean;
|
|
16
18
|
required: boolean;
|
|
17
19
|
id: string;
|
|
18
20
|
name: string;
|
|
19
21
|
placeholder: string;
|
|
22
|
+
maxlength: number;
|
|
20
23
|
dataTestid: string;
|
|
21
24
|
label: string;
|
|
22
25
|
meta: string;
|
|
@@ -25,6 +28,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
25
28
|
valid: boolean | null;
|
|
26
29
|
optional: boolean;
|
|
27
30
|
invalidMessage: string;
|
|
31
|
+
clearButton: boolean;
|
|
28
32
|
autocomplete: string;
|
|
29
33
|
readonly: boolean;
|
|
30
34
|
allowCoordinationNumber: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FdsInputProps } from '../FdsInput/types';
|
|
2
|
-
type FdsSsnInputPassthroughProps = Pick<FdsInputProps, 'id' | 'autocomplete' | 'required' | 'placeholder' | 'name' | 'autofocus' | 'readonly' | 'inputClass'>;
|
|
2
|
+
type FdsSsnInputPassthroughProps = Pick<FdsInputProps, 'id' | 'autocomplete' | 'required' | 'placeholder' | 'name' | 'autofocus' | 'readonly' | 'inputClass' | 'maxlength' | 'clearButton'>;
|
|
3
3
|
export interface FdsSsnProps extends FdsSsnInputPassthroughProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
meta?: string;
|
|
6
6
|
optional?: boolean;
|
|
7
7
|
valid?: boolean | null;
|
|
8
|
+
/** Error text when invalid. Omit for default; pass `""` to hide the message. */
|
|
8
9
|
invalidMessage?: string;
|
|
9
10
|
/** Personnummer as shown in the input (12 characters, no separator). */
|
|
10
11
|
modelValue?: string;
|
|
@@ -14,11 +15,13 @@ export interface FdsSsnProps extends FdsSsnInputPassthroughProps {
|
|
|
14
15
|
dataTestid?: string;
|
|
15
16
|
onValid?: ((value: boolean | null) => void) | Array<(value: boolean | null) => void>;
|
|
16
17
|
onBlur?: ((event: FocusEvent) => void) | Array<(event: FocusEvent) => void>;
|
|
18
|
+
onClearInput?: (() => void) | Array<() => void>;
|
|
17
19
|
'onUpdate:modelValue'?: ((value: string) => void) | Array<(value: string) => void>;
|
|
18
20
|
}
|
|
19
21
|
export interface FdsSsnEmits {
|
|
20
22
|
'update:modelValue': [value: string];
|
|
21
23
|
valid: [value: boolean | null];
|
|
22
24
|
blur: [ev: FocusEvent];
|
|
25
|
+
clearInput: [];
|
|
23
26
|
}
|
|
24
27
|
export {};
|