@ambita/design-system 3.0.25 → 3.0.26-271.0
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/README.md +14 -0
- package/dist/aux.common.js +705 -225
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +705 -225
- package/dist/aux.umd.js.map +1 -1
- package/dist/aux.umd.min.js +1 -1
- package/dist/aux.umd.min.js.map +1 -1
- package/dist/types/components/AuxAriaAnnouncer/AuxAriaAnnouncer.vue.d.ts +16 -0
- package/dist/types/components/Checkbox/Checkbox.vue.d.ts +3 -3
- package/dist/types/components/Definition/Definition.vue.d.ts +3 -3
- package/dist/types/components/DirectionalArrow/DirectionalArrow.vue.d.ts +22 -0
- package/dist/types/components/Input/Input.vue.d.ts +2 -2
- package/dist/types/components/Modal/Modal.vue.d.ts +2 -2
- package/dist/types/components/Radio/Radio.vue.d.ts +2 -2
- package/dist/types/components/Select/Select.vue.d.ts +12 -4
- package/dist/types/components/TextArea/TextArea.vue.d.ts +20 -9
- package/dist/types/components/Upload/File/File.vue.d.ts +1 -1
- package/dist/types/components/Upload/Upload.vue.d.ts +18 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
priority: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
validator: (priority: string) => boolean;
|
|
6
|
+
};
|
|
7
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
8
|
+
priority?: unknown;
|
|
9
|
+
} & {
|
|
10
|
+
priority: string;
|
|
11
|
+
} & {}> & {
|
|
12
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
priority: string;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
value: {
|
|
3
|
-
type: (StringConstructor |
|
|
3
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
|
4
4
|
};
|
|
5
5
|
disabled: {
|
|
6
6
|
type: BooleanConstructor;
|
|
@@ -29,8 +29,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
selected?: unknown;
|
|
30
30
|
indeterminate?: unknown;
|
|
31
31
|
} & {
|
|
32
|
-
id: string;
|
|
33
32
|
disabled: boolean;
|
|
33
|
+
id: string;
|
|
34
34
|
selected: boolean;
|
|
35
35
|
indeterminate: boolean;
|
|
36
36
|
} & {
|
|
@@ -39,8 +39,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
}> & {
|
|
40
40
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
id: string;
|
|
43
42
|
disabled: boolean;
|
|
43
|
+
id: string;
|
|
44
44
|
selected: boolean;
|
|
45
45
|
indeterminate: boolean;
|
|
46
46
|
}>;
|
|
@@ -34,17 +34,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
dataTestid?: unknown;
|
|
35
35
|
size?: unknown;
|
|
36
36
|
} & {
|
|
37
|
-
label: string;
|
|
38
37
|
size: string;
|
|
39
|
-
|
|
38
|
+
label: string;
|
|
40
39
|
vertical: boolean;
|
|
40
|
+
suffix: string;
|
|
41
41
|
} & {
|
|
42
42
|
dataTestid?: string | undefined;
|
|
43
43
|
}> & {
|
|
44
44
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
size: string;
|
|
47
|
-
suffix: string;
|
|
48
47
|
vertical: boolean;
|
|
48
|
+
suffix: string;
|
|
49
49
|
}>;
|
|
50
50
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
direction: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
require: boolean;
|
|
5
|
+
default: string;
|
|
6
|
+
validator: (value: string) => boolean;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
classes: import("vue").ComputedRef<{
|
|
10
|
+
[x: string]: boolean;
|
|
11
|
+
'aux-arrow': boolean;
|
|
12
|
+
}>;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
14
|
+
direction?: unknown;
|
|
15
|
+
} & {
|
|
16
|
+
direction: string;
|
|
17
|
+
} & {}> & {
|
|
18
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
direction: string;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
@@ -66,10 +66,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
min?: unknown;
|
|
67
67
|
max?: unknown;
|
|
68
68
|
} & {
|
|
69
|
+
type: string;
|
|
69
70
|
label: string;
|
|
70
71
|
hideLabel: boolean;
|
|
71
72
|
id: string;
|
|
72
|
-
type: string;
|
|
73
73
|
clearable: boolean;
|
|
74
74
|
fieldWidth: string;
|
|
75
75
|
} & {
|
|
@@ -86,9 +86,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
86
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}, {
|
|
89
|
+
type: string;
|
|
89
90
|
hideLabel: boolean;
|
|
90
91
|
id: string;
|
|
91
|
-
type: string;
|
|
92
92
|
clearable: boolean;
|
|
93
93
|
fieldWidth: string;
|
|
94
94
|
}>;
|
|
@@ -38,8 +38,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
title?: unknown;
|
|
39
39
|
dataTestid?: unknown;
|
|
40
40
|
} & {
|
|
41
|
-
id: string;
|
|
42
41
|
size: string;
|
|
42
|
+
id: string;
|
|
43
43
|
actions: Action[];
|
|
44
44
|
} & {
|
|
45
45
|
dataTestid?: string | undefined;
|
|
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
}> & {
|
|
48
48
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
id: string;
|
|
51
50
|
size: string;
|
|
51
|
+
id: string;
|
|
52
52
|
actions: Action[];
|
|
53
53
|
}>;
|
|
54
54
|
export default _default;
|
|
@@ -28,15 +28,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
selected?: unknown;
|
|
29
29
|
} & {
|
|
30
30
|
name: string;
|
|
31
|
-
id: string;
|
|
32
31
|
disabled: boolean;
|
|
32
|
+
id: string;
|
|
33
33
|
selected: string;
|
|
34
34
|
} & {
|
|
35
35
|
value?: string | number | undefined;
|
|
36
36
|
}> & {
|
|
37
37
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
id: string;
|
|
40
39
|
disabled: boolean;
|
|
40
|
+
id: string;
|
|
41
41
|
}>;
|
|
42
42
|
export default _default;
|
|
@@ -35,12 +35,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
value: {
|
|
36
36
|
type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
|
|
37
37
|
};
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
|
|
40
|
+
};
|
|
38
41
|
}, {
|
|
39
42
|
state: {
|
|
40
43
|
value: string | number | unknown[] | undefined;
|
|
41
44
|
};
|
|
42
45
|
updateValue: (value: string) => void;
|
|
43
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change")[], "blur" | "change" | "focus" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
44
47
|
items?: unknown;
|
|
45
48
|
label?: unknown;
|
|
46
49
|
required?: unknown;
|
|
@@ -49,21 +52,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
52
|
hideLabel?: unknown;
|
|
50
53
|
description?: unknown;
|
|
51
54
|
value?: unknown;
|
|
55
|
+
modelValue?: unknown;
|
|
52
56
|
} & {
|
|
57
|
+
required: boolean;
|
|
53
58
|
hideLabel: boolean;
|
|
54
59
|
id: string;
|
|
55
|
-
required: boolean;
|
|
56
60
|
items: Item[];
|
|
57
61
|
} & {
|
|
58
62
|
name?: string | undefined;
|
|
59
|
-
label?: string | undefined;
|
|
60
63
|
description?: string | undefined;
|
|
61
64
|
value?: string | number | unknown[] | undefined;
|
|
65
|
+
label?: string | undefined;
|
|
66
|
+
modelValue?: string | number | unknown[] | undefined;
|
|
62
67
|
}> & {
|
|
68
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
63
71
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
72
|
}, {
|
|
73
|
+
required: boolean;
|
|
65
74
|
hideLabel: boolean;
|
|
66
75
|
id: string;
|
|
67
|
-
required: boolean;
|
|
68
76
|
}>;
|
|
69
77
|
export default _default;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
5
|
+
};
|
|
3
6
|
label: {
|
|
4
7
|
type: StringConstructor;
|
|
5
8
|
required: true;
|
|
@@ -23,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
26
|
type: StringConstructor;
|
|
24
27
|
};
|
|
25
28
|
resize: {
|
|
26
|
-
type: PropType<"none" | "
|
|
29
|
+
type: PropType<"none" | "horizontal" | "vertical" | "auto" | "both">;
|
|
27
30
|
default: string;
|
|
28
31
|
};
|
|
29
32
|
height: {
|
|
@@ -44,10 +47,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
47
|
};
|
|
45
48
|
}, {
|
|
46
49
|
styles: import("vue").ComputedRef<{
|
|
47
|
-
resize: "none" | "
|
|
50
|
+
resize: "none" | "horizontal" | "vertical" | "auto" | "both";
|
|
48
51
|
'max-width': string;
|
|
49
52
|
}>;
|
|
50
|
-
|
|
53
|
+
handleInput(event: {
|
|
54
|
+
target: {
|
|
55
|
+
value: string;
|
|
56
|
+
};
|
|
57
|
+
}): void;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue")[], "input" | "blur" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
59
|
+
modelValue?: unknown;
|
|
51
60
|
label?: unknown;
|
|
52
61
|
id?: unknown;
|
|
53
62
|
description?: unknown;
|
|
@@ -60,27 +69,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
69
|
required?: unknown;
|
|
61
70
|
value?: unknown;
|
|
62
71
|
} & {
|
|
72
|
+
required: boolean;
|
|
73
|
+
value: string | number;
|
|
63
74
|
label: string;
|
|
75
|
+
resize: "none" | "horizontal" | "vertical" | "auto" | "both";
|
|
64
76
|
hideLabel: boolean;
|
|
65
77
|
id: string;
|
|
66
|
-
required: boolean;
|
|
67
|
-
value: string | number;
|
|
68
|
-
resize: "none" | "vertical" | "horizontal" | "auto" | "both";
|
|
69
78
|
height: number;
|
|
70
79
|
width: string;
|
|
71
80
|
} & {
|
|
72
81
|
name?: string | undefined;
|
|
73
82
|
description?: string | undefined;
|
|
83
|
+
modelValue?: string | number | undefined;
|
|
74
84
|
placeholder?: string | undefined;
|
|
75
85
|
}> & {
|
|
76
86
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
77
87
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
78
89
|
}, {
|
|
79
|
-
hideLabel: boolean;
|
|
80
|
-
id: string;
|
|
81
90
|
required: boolean;
|
|
82
91
|
value: string | number;
|
|
83
|
-
resize: "none" | "
|
|
92
|
+
resize: "none" | "horizontal" | "vertical" | "auto" | "both";
|
|
93
|
+
hideLabel: boolean;
|
|
94
|
+
id: string;
|
|
84
95
|
height: number;
|
|
85
96
|
width: string;
|
|
86
97
|
}>;
|
|
@@ -17,6 +17,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
+
maxFileSize: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: NumberConstructor;
|
|
23
|
+
};
|
|
24
|
+
maxAttachmentCount: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
};
|
|
20
27
|
}, {
|
|
21
28
|
removeFile: (uuid: string) => void;
|
|
22
29
|
filesUploaded: import("vue").ComputedRef<boolean>;
|
|
@@ -26,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
33
|
message: string;
|
|
27
34
|
};
|
|
28
35
|
dragLeave: () => void;
|
|
29
|
-
addFile: () => void;
|
|
36
|
+
addFile: (event: Event) => void;
|
|
30
37
|
wrapperClasses: import("vue").ComputedRef<{
|
|
31
38
|
'aux-input-upload-field-wrapper': boolean;
|
|
32
39
|
"aux-input-upload-field-wrapper--drag": boolean;
|
|
@@ -35,19 +42,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
42
|
dragover: () => void;
|
|
36
43
|
inputField: import("vue").Ref<any>;
|
|
37
44
|
inputFieldWrapper: import("vue").Ref<any>;
|
|
45
|
+
errorMessage: import("vue").Ref<string>;
|
|
46
|
+
handleFile: (event: Event) => void;
|
|
47
|
+
filesCollection: any;
|
|
48
|
+
setWarning: (files: FileList) => void;
|
|
38
49
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("file-added" | "file-removed")[], "file-added" | "file-removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
39
50
|
files?: unknown;
|
|
40
51
|
id?: unknown;
|
|
41
52
|
label?: unknown;
|
|
42
53
|
description?: unknown;
|
|
43
54
|
hideLabel?: unknown;
|
|
55
|
+
maxFileSize?: unknown;
|
|
56
|
+
maxAttachmentCount?: unknown;
|
|
44
57
|
} & {
|
|
45
58
|
hideLabel: boolean;
|
|
46
59
|
id: string;
|
|
47
60
|
files: unknown[];
|
|
61
|
+
maxFileSize: number;
|
|
48
62
|
} & {
|
|
49
|
-
label?: string | undefined;
|
|
50
63
|
description?: string | undefined;
|
|
64
|
+
label?: string | undefined;
|
|
65
|
+
maxAttachmentCount?: number | undefined;
|
|
51
66
|
}> & {
|
|
52
67
|
"onFile-added"?: ((...args: any[]) => any) | undefined;
|
|
53
68
|
"onFile-removed"?: ((...args: any[]) => any) | undefined;
|
|
@@ -55,5 +70,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
70
|
hideLabel: boolean;
|
|
56
71
|
id: string;
|
|
57
72
|
files: unknown[];
|
|
73
|
+
maxFileSize: number;
|
|
58
74
|
}>;
|
|
59
75
|
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,5 +15,7 @@ export { default as AuxUpload } from './components/Upload/Upload.vue';
|
|
|
15
15
|
export { default as AuxCard } from './components/Card/Card.vue';
|
|
16
16
|
export { default as AuxToggle } from './components/Toggle/Toggle.vue';
|
|
17
17
|
export { default as AuxPagination } from './components/Pagination/Pagination.vue';
|
|
18
|
+
export { default as AuxDirectionalArrow } from './components/DirectionalArrow/DirectionalArrow.vue';
|
|
19
|
+
export { default as AuxAriaAnnouncer } from './components/AuxAriaAnnouncer/AuxAriaAnnouncer.vue';
|
|
18
20
|
export { formatDate } from '@/helpers/formatting';
|
|
19
21
|
export { formatPrice } from '@/helpers/formatAmount';
|