@ambita/design-system 3.0.27-81.0 → 3.0.27
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/aux.common.js +61844 -24602
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +61844 -24602
- package/dist/aux.umd.js.map +1 -1
- package/dist/aux.umd.min.js +13 -5
- package/dist/aux.umd.min.js.map +1 -1
- package/dist/css/colors-scss-variables.scss +5 -0
- package/dist/favicons/ambita/favicon.ico +0 -0
- package/dist/favicons/ambita/favicon.svg +9 -0
- package/dist/types/components/AuxAriaAnnouncer/AuxAriaAnnouncer.stories.d.ts +21 -0
- package/dist/types/components/AuxAriaAnnouncer/AuxAriaAnnouncer.vue.d.ts +7 -7
- package/dist/types/components/Banner/Banner.stories.d.ts +48 -0
- package/dist/types/components/Banner/Banner.vue.d.ts +15 -15
- package/dist/types/components/Button/Button.stories.d.ts +55 -0
- package/dist/types/components/Button/Button.vue.d.ts +19 -14
- package/dist/types/components/Card/Card.stories.d.ts +7 -0
- package/dist/types/components/Card/Card.vue.d.ts +1 -5
- package/dist/types/components/Checkbox/Checkbox.stories.d.ts +65 -0
- package/dist/types/components/Checkbox/Checkbox.vue.d.ts +25 -17
- package/dist/types/components/Color/Colors.stories.d.ts +7 -0
- package/dist/types/components/Definition/Definition.stories.d.ts +71 -0
- package/dist/types/components/Definition/Definition.vue.d.ts +24 -16
- package/dist/types/components/DirectionalArrow/DirectionalArrow.stories.d.ts +28 -0
- package/dist/types/components/DirectionalArrow/DirectionalArrow.vue.d.ts +8 -7
- package/dist/types/components/FormElement/FormElement.vue.d.ts +20 -14
- package/dist/types/components/Icons/Icon.stories.d.ts +7 -0
- package/dist/types/components/Input/Input.stories.d.ts +122 -0
- package/dist/types/components/Input/Input.vue.d.ts +46 -32
- package/dist/types/components/JsonForm/Controls/Array.vue.d.ts +35 -0
- package/dist/types/components/JsonForm/Controls/Boolean.vue.d.ts +22 -0
- package/dist/types/components/JsonForm/Controls/Number.vue.d.ts +19 -0
- package/dist/types/components/JsonForm/Controls/String.vue.d.ts +29 -0
- package/dist/types/components/JsonForm/Controls/Wrapper.vue.d.ts +27 -0
- package/dist/types/components/JsonForm/JsonForm.stories.d.ts +7 -0
- package/dist/types/components/JsonForm/Renderers/Array.vue.d.ts +99 -0
- package/dist/types/components/JsonForm/Renderers/Boolean.vue.d.ts +99 -0
- package/dist/types/components/JsonForm/Renderers/Integer.vue.d.ts +99 -0
- package/dist/types/components/JsonForm/Renderers/Layout.vue.d.ts +88 -0
- package/dist/types/components/JsonForm/Renderers/Number.vue.d.ts +99 -0
- package/dist/types/components/JsonForm/Renderers/Object.vue.d.ts +97 -0
- package/dist/types/components/JsonForm/Renderers/String.vue.d.ts +99 -0
- package/dist/types/components/JsonForm/Renderers/index.d.ts +9 -0
- package/dist/types/components/Link/Link.stories.d.ts +50 -0
- package/dist/types/components/Link/Link.vue.d.ts +11 -8
- package/dist/types/components/Logo/Logo.stories.d.ts +7 -0
- package/dist/types/components/Modal/Actions.vue.d.ts +6 -5
- package/dist/types/components/Modal/Modal.stories.d.ts +42 -0
- package/dist/types/components/Modal/Modal.vue.d.ts +24 -16
- package/dist/types/components/Notification/Notification.stories.d.ts +7 -0
- package/dist/types/components/Notification/Notification.vue.d.ts +31 -0
- package/dist/types/components/Notification/Notifications.vue.d.ts +20 -0
- package/dist/types/components/Pagination/Pagination.stories.d.ts +52 -0
- package/dist/types/components/Pagination/Pagination.vue.d.ts +16 -10
- package/dist/types/components/Pill/Pill.stories.d.ts +27 -0
- package/dist/types/components/Pill/Pill.vue.d.ts +7 -7
- package/dist/types/components/Radio/Radio.stories.d.ts +59 -0
- package/dist/types/components/Radio/Radio.vue.d.ts +22 -15
- package/dist/types/components/Select/Select.stories.d.ts +102 -0
- package/dist/types/components/Select/Select.vue.d.ts +36 -23
- package/dist/types/components/Spinner/Spinner.stories.d.ts +8 -0
- package/dist/types/components/StatusBadge/StatusBadge.stories.d.ts +31 -0
- package/dist/types/components/StatusBadge/StatusBadge.vue.d.ts +25 -0
- package/dist/types/components/StatusBadge/Statuses.d.ts +1 -0
- package/dist/types/components/Tag/Colors.d.ts +1 -0
- package/dist/types/components/Tag/Tag.stories.d.ts +27 -0
- package/dist/types/components/Tag/Tag.vue.d.ts +21 -0
- package/dist/types/components/TextArea/TextArea.stories.d.ts +129 -0
- package/dist/types/components/TextArea/TextArea.vue.d.ts +54 -35
- package/dist/types/components/Toggle/Toggle.stories.d.ts +101 -0
- package/dist/types/components/Toggle/Toggle.vue.d.ts +94 -19
- package/dist/types/components/Upload/File/File.vue.d.ts +31 -18
- package/dist/types/components/Upload/Upload.stories.d.ts +94 -0
- package/dist/types/components/Upload/Upload.vue.d.ts +27 -18
- package/dist/types/helpers/formatters/formatDateAndTime/Storybook/formatDateAndTime.stories.d.ts +7 -0
- package/dist/types/helpers/formatters/formatQuantity/Storybook/formatAmount.stories.d.ts +7 -0
- package/dist/types/helpers/formatters/formatQuantity/Storybook/formatNumber.stories.d.ts +7 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +3 -2
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Story } from '@storybook/vue3';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("vue").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
7
|
+
};
|
|
8
|
+
label: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
id: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
15
|
+
};
|
|
16
|
+
description: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
hideLabel: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
name: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
placeholder: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
resize: {
|
|
31
|
+
type: import("vue").PropType<"vertical" | "horizontal" | "none" | "auto" | "both">;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
height: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
width: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
required: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
value: {
|
|
47
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
styles: import("vue").ComputedRef<{
|
|
52
|
+
resize: "vertical" | "horizontal" | "none" | "auto" | "both";
|
|
53
|
+
'max-width': string;
|
|
54
|
+
}>;
|
|
55
|
+
handleInput(event: {
|
|
56
|
+
target: {
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
}): void;
|
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "input" | "update:modelValue")[], "blur" | "input" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
modelValue: {
|
|
62
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
};
|
|
64
|
+
label: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
id: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
71
|
+
};
|
|
72
|
+
description: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
hideLabel: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
name: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
placeholder: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
};
|
|
86
|
+
resize: {
|
|
87
|
+
type: import("vue").PropType<"vertical" | "horizontal" | "none" | "auto" | "both">;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
height: {
|
|
91
|
+
type: NumberConstructor;
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
width: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
required: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
value: {
|
|
103
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
}>> & {
|
|
107
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
hideLabel: boolean;
|
|
112
|
+
id: string;
|
|
113
|
+
required: boolean;
|
|
114
|
+
value: string | number;
|
|
115
|
+
resize: "vertical" | "horizontal" | "none" | "auto" | "both";
|
|
116
|
+
width: string;
|
|
117
|
+
height: number;
|
|
118
|
+
}>;
|
|
119
|
+
argTypes: {
|
|
120
|
+
onBlur: {
|
|
121
|
+
action: string;
|
|
122
|
+
};
|
|
123
|
+
onChange: {
|
|
124
|
+
action: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export default _default;
|
|
129
|
+
export declare const Input: Story<import("@storybook/vue3").Args>;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
type: StringConstructor;
|
|
27
27
|
};
|
|
28
28
|
resize: {
|
|
29
|
-
type: PropType<"
|
|
29
|
+
type: PropType<"vertical" | "horizontal" | "none" | "auto" | "both">;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
height: {
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
49
|
styles: import("vue").ComputedRef<{
|
|
50
|
-
resize: "
|
|
50
|
+
resize: "vertical" | "horizontal" | "none" | "auto" | "both";
|
|
51
51
|
'max-width': string;
|
|
52
52
|
}>;
|
|
53
53
|
handleInput(event: {
|
|
@@ -55,44 +55,63 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
value: string;
|
|
56
56
|
};
|
|
57
57
|
}): void;
|
|
58
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
59
|
-
modelValue
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "input" | "update:modelValue")[], "blur" | "input" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
modelValue: {
|
|
60
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
61
|
+
};
|
|
62
|
+
label: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
id: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
69
|
+
};
|
|
70
|
+
description: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
};
|
|
73
|
+
hideLabel: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
name: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
required: false;
|
|
80
|
+
};
|
|
81
|
+
placeholder: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
resize: {
|
|
85
|
+
type: PropType<"vertical" | "horizontal" | "none" | "auto" | "both">;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
height: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
width: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
required: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
value: {
|
|
101
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
}>> & {
|
|
87
105
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
88
107
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
89
108
|
}, {
|
|
90
|
-
required: boolean;
|
|
91
|
-
value: string | number;
|
|
92
|
-
resize: "none" | "vertical" | "horizontal" | "auto" | "both";
|
|
93
109
|
hideLabel: boolean;
|
|
94
110
|
id: string;
|
|
95
|
-
|
|
111
|
+
required: boolean;
|
|
112
|
+
value: string | number;
|
|
113
|
+
resize: "vertical" | "horizontal" | "none" | "auto" | "both";
|
|
96
114
|
width: string;
|
|
115
|
+
height: number;
|
|
97
116
|
}>;
|
|
98
117
|
export default _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Story } from '@storybook/vue3';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
};
|
|
13
|
+
offLabel: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
onLabel: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
checked: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
hideLabel: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
hideOffLabel: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
hideOnLabel: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
dataTestid: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
activeText: import("vue").ComputedRef<string>;
|
|
43
|
+
inactiveText: import("vue").ComputedRef<string>;
|
|
44
|
+
getTestId: (testId: string) => string | undefined;
|
|
45
|
+
change: () => void;
|
|
46
|
+
toggle: () => void;
|
|
47
|
+
active: import("vue").Ref<boolean>;
|
|
48
|
+
radioOn: import("vue").Ref<HTMLInputElement | null>;
|
|
49
|
+
radioOff: import("vue").Ref<HTMLInputElement | null>;
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
id: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
54
|
+
};
|
|
55
|
+
label: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
};
|
|
59
|
+
offLabel: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
onLabel: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
checked: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
hideLabel: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
hideOffLabel: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
hideOnLabel: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
dataTestid: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
required: false;
|
|
86
|
+
};
|
|
87
|
+
}>> & {
|
|
88
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
hideLabel: boolean;
|
|
91
|
+
id: string;
|
|
92
|
+
checked: boolean;
|
|
93
|
+
offLabel: string;
|
|
94
|
+
onLabel: string;
|
|
95
|
+
hideOffLabel: boolean;
|
|
96
|
+
hideOnLabel: boolean;
|
|
97
|
+
}>;
|
|
98
|
+
};
|
|
99
|
+
export default _default;
|
|
100
|
+
export declare const Toggle: Story<import("@storybook/vue3").Args>;
|
|
101
|
+
export declare const Examples: Story<import("@storybook/vue3").Args>;
|
|
@@ -1,20 +1,95 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
offLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
onLabel: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
checked: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
hideLabel: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
hideOffLabel: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
hideOnLabel: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
dataTestid: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
activeText: import("vue").ComputedRef<string>;
|
|
40
|
+
inactiveText: import("vue").ComputedRef<string>;
|
|
41
|
+
getTestId: (testId: string) => string | undefined;
|
|
42
|
+
change: () => void;
|
|
43
|
+
toggle: () => void;
|
|
44
|
+
active: import("vue").Ref<boolean>;
|
|
45
|
+
radioOn: import("vue").Ref<HTMLInputElement | null>;
|
|
46
|
+
radioOff: import("vue").Ref<HTMLInputElement | null>;
|
|
47
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
id: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
51
|
+
};
|
|
52
|
+
label: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
56
|
+
offLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
onLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
checked: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
hideLabel: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
hideOffLabel: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
hideOnLabel: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
dataTestid: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
required: false;
|
|
83
|
+
};
|
|
84
|
+
}>> & {
|
|
85
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
hideLabel: boolean;
|
|
88
|
+
id: string;
|
|
89
|
+
checked: boolean;
|
|
90
|
+
offLabel: string;
|
|
91
|
+
onLabel: string;
|
|
92
|
+
hideOffLabel: boolean;
|
|
93
|
+
hideOnLabel: boolean;
|
|
94
|
+
}>;
|
|
20
95
|
export default _default;
|
|
@@ -30,24 +30,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
32
|
removeFile: () => void;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove-file"[], "remove-file", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
34
|
-
file
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove-file"[], "remove-file", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
file: {
|
|
35
|
+
type: {
|
|
36
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
37
|
+
prototype: File;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
filename: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
filePath: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: false;
|
|
47
|
+
};
|
|
48
|
+
time: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
percentage: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
};
|
|
55
|
+
uuid: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
failed: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
51
64
|
"onRemove-file"?: ((...args: any[]) => any) | undefined;
|
|
52
65
|
}, {
|
|
53
66
|
failed: boolean;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Story } from '@storybook/vue3';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("vue").DefineComponent<{
|
|
5
|
+
files: {
|
|
6
|
+
type: ArrayConstructor;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
id: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
description: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
hideLabel: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
maxFileSize: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: NumberConstructor;
|
|
26
|
+
};
|
|
27
|
+
maxAttachmentCount: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
removeFile: (uuid: string) => void;
|
|
32
|
+
filesUploaded: import("vue").ComputedRef<boolean>;
|
|
33
|
+
state: {
|
|
34
|
+
fileList: unknown[];
|
|
35
|
+
isOver: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
dragLeave: () => void;
|
|
39
|
+
addFile: (event: Event) => void;
|
|
40
|
+
wrapperClasses: import("vue").ComputedRef<{
|
|
41
|
+
'aux-input-upload-field-wrapper': boolean;
|
|
42
|
+
"aux-input-upload-field-wrapper--drag": boolean;
|
|
43
|
+
"aux-input-upload-field-wrapper--no-drag": boolean;
|
|
44
|
+
}>;
|
|
45
|
+
dragover: () => void;
|
|
46
|
+
inputField: import("vue").Ref<any>;
|
|
47
|
+
inputFieldWrapper: import("vue").Ref<any>;
|
|
48
|
+
errorMessage: import("vue").Ref<string>;
|
|
49
|
+
handleFile: (event: Event) => void;
|
|
50
|
+
filesCollection: any;
|
|
51
|
+
setWarning: (files: FileList) => void;
|
|
52
|
+
}, 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<import("vue").ExtractPropTypes<{
|
|
53
|
+
files: {
|
|
54
|
+
type: ArrayConstructor;
|
|
55
|
+
default: () => never[];
|
|
56
|
+
};
|
|
57
|
+
id: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
60
|
+
};
|
|
61
|
+
label: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
64
|
+
description: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
};
|
|
67
|
+
hideLabel: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
maxFileSize: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: NumberConstructor;
|
|
74
|
+
};
|
|
75
|
+
maxAttachmentCount: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
};
|
|
78
|
+
}>> & {
|
|
79
|
+
"onFile-added"?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
"onFile-removed"?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
hideLabel: boolean;
|
|
83
|
+
id: string;
|
|
84
|
+
files: unknown[];
|
|
85
|
+
maxFileSize: number;
|
|
86
|
+
}>;
|
|
87
|
+
argTypes: {
|
|
88
|
+
onUpload: {
|
|
89
|
+
action: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export default _default;
|
|
94
|
+
export declare const Upload: Story<import("@storybook/vue3").Args>;
|
|
@@ -46,24 +46,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
handleFile: (event: Event) => void;
|
|
47
47
|
filesCollection: any;
|
|
48
48
|
setWarning: (files: FileList) => void;
|
|
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<{
|
|
50
|
-
files
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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<import("vue").ExtractPropTypes<{
|
|
50
|
+
files: {
|
|
51
|
+
type: ArrayConstructor;
|
|
52
|
+
default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
id: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
|
|
57
|
+
};
|
|
58
|
+
label: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
};
|
|
61
|
+
description: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
64
|
+
hideLabel: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
maxFileSize: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: NumberConstructor;
|
|
71
|
+
};
|
|
72
|
+
maxAttachmentCount: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
};
|
|
75
|
+
}>> & {
|
|
67
76
|
"onFile-added"?: ((...args: any[]) => any) | undefined;
|
|
68
77
|
"onFile-removed"?: ((...args: any[]) => any) | undefined;
|
|
69
78
|
}, {
|
package/dist/types/helpers/formatters/formatDateAndTime/Storybook/formatDateAndTime.stories.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story } from '@storybook/vue3';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const formatDateAndTime: Story<import("@storybook/vue3").Args>;
|