@ironsource/shared-ui 2.0.2-rc.4 → 2.0.2-rc.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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_28bb325a_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_17d78416_lang.css +1 -0
- package/SearchV4.vue_vue_type_style_index_0_scoped_215f0f29_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_cde15298_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/ThemeWrapper/index.d.ts +2 -2
- package/components/ThemeWrapper/index.js +4 -4
- package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
- package/components/appTrigger/index.d.ts +20 -20
- package/components/banner/Banner.vue.d.ts +3 -3
- package/components/banner/index.d.ts +7 -7
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ButtonBase.vue.d.ts +3 -3
- package/components/button/v3/ScrollButton.vue.d.ts +1 -1
- package/components/button/v3/index.d.ts +23 -23
- package/components/button/v4/ButtonV4.vue.d.ts +12 -12
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/button/v4/IconButtonV4.vue.d.ts +8 -8
- package/components/button/v4/index.d.ts +116 -116
- package/components/checkbox/v3/index.d.ts +12 -12
- package/components/checkbox/v4/index.d.ts +12 -12
- package/components/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dateRange/DateRange.vue.d.ts +1 -1
- package/components/dateRange/DateRangePicker.vue.d.ts +1 -1
- package/components/dateRange/index.d.ts +20 -20
- package/components/dialog/v3/Dialog.vue.d.ts +2 -2
- package/components/dialog/v3/index.d.ts +25 -25
- package/components/dialog/v4/DialogV4.vue.d.ts +2 -2
- package/components/dialog/v4/index.d.ts +25 -25
- package/components/dropdown/v3/Dropdown.vue.d.ts +6 -6
- package/components/dropdown/v3/Option.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +111 -111
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +22 -25
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +13 -13
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +20 -22
- package/components/dropdown/v4/DropdownV4.vue.d.ts +11 -11
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +17 -17
- package/components/dropdown/v4/index.d.ts +331 -331
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/index.d.ts +9 -9
- package/components/icon/v4/IconV4.vue.d.ts +3 -3
- package/components/icon/v4/index.d.ts +7 -7
- package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
- package/components/includeExclude/index.d.ts +101 -101
- package/components/input/v3/Input.vue.d.ts +2 -2
- package/components/input/v3/index.d.ts +69 -69
- package/components/input/v4/TextField.vue.d.ts +2 -2
- package/components/input/v4/index.d.ts +53 -53
- package/components/layout/FoldableSection.vue.d.ts +1 -1
- package/components/layout/index.d.ts +21 -136
- package/components/layout/index.js +2 -4
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.vue.d.ts +1 -1
- package/components/multibar/index.d.ts +12 -12
- package/components/popover/Popover.vue.d.ts +5 -5
- package/components/popover/index.d.ts +58 -58
- package/components/radioButton/v3/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/v3/RadioGroup.vue.d.ts +2 -2
- package/components/radioButton/v3/index.d.ts +42 -42
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +1 -1
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +2 -2
- package/components/radioButton/v4/index.d.ts +42 -42
- package/components/search/v3/Search.vue.d.ts +2 -2
- package/components/search/v3/index.d.ts +16 -16
- package/components/search/v4/SearchV4.vue.d.ts +1 -4
- package/components/search/v4/SearchV4.vue.js +5 -5
- package/components/search/v4/SearchV4.vue2.js +14 -15
- package/components/search/v4/index.d.ts +9 -12
- package/components/shared/FieldHelpText.vue.d.ts +1 -1
- package/components/shared/FieldLabel.vue.d.ts +1 -1
- package/components/snackbar/common/snackbar.common.d.ts +1 -1
- package/components/snackbar/v3/Snackbar.vue.d.ts +6 -6
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +43 -43
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +6 -7
- package/components/table/common/Table.common.js +31 -31
- package/components/table/v3/index.d.ts +16 -16
- package/components/table/v4/index.d.ts +16 -16
- package/components/tabs/v3/Tabs.vue.d.ts +1 -1
- package/components/tabs/v3/index.d.ts +20 -20
- package/components/tabs/v4/TabsV4.vue.d.ts +1 -1
- package/components/tabs/v4/index.d.ts +20 -20
- package/components/textArea/TextArea.vue.d.ts +1 -1
- package/components/textArea/index.d.ts +9 -9
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +9 -9
- package/components/toggle/v4/ToggleV4.vue.d.ts +7 -7
- package/components/toggle/v4/index.d.ts +34 -34
- package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
- package/components/tooltip/v3/index.d.ts +34 -34
- package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
- package/components/tooltip/v4/index.d.ts +34 -34
- package/components/typography/Heading.vue.d.ts +1 -1
- package/components/typography/index.d.ts +20 -20
- package/composables/useStorage.js +9 -10
- package/index.d.ts +1650 -1848
- package/index.js +112 -118
- package/package.json +2 -10
- package/testids/index.d.ts +0 -8
- package/testids/index.js +11 -13
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_a64a46d0_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_5afbd3dd_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_38c0ed72_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c38e97df_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_06dcfe6d_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_54a11bf8_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_39577dfc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_58a19def_lang.css +0 -1
- package/components/appHeader/AppHeader.vue.d.ts +0 -49
- package/components/appHeader/AppHeader.vue.js +0 -7
- package/components/appHeader/AppHeader.vue2.js +0 -58
- package/components/appHeader/index.d.ts +0 -61
- package/components/appHeader/index.js +0 -6
- package/components/inlineCopy/InlineCopy.vue.d.ts +0 -39
- package/components/inlineCopy/InlineCopy.vue.js +0 -7
- package/components/inlineCopy/InlineCopy.vue2.js +0 -60
- package/components/inlineCopy/index.d.ts +0 -39
- package/components/inlineCopy/index.js +0 -6
- package/components/layout/FormRow.vue.d.ts +0 -46
- package/components/layout/FormRow.vue.js +0 -7
- package/components/layout/FormRow.vue2.js +0 -43
- package/mocks/optionsWithIcons.d.ts +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
2
|
-
disabled: {
|
|
3
|
-
type: import("vue").PropType<boolean>;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
2
|
testId: {
|
|
7
3
|
type: import("vue").PropType<string>;
|
|
8
4
|
default: string;
|
|
9
5
|
};
|
|
6
|
+
disabled: {
|
|
7
|
+
type: import("vue").PropType<boolean>;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
10
|
modelValue: {
|
|
11
11
|
type: import("vue").PropType<string>;
|
|
12
12
|
required: true;
|
|
@@ -14,7 +14,6 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
14
14
|
placeholder: {
|
|
15
15
|
type: import("vue").PropType<string>;
|
|
16
16
|
required: true;
|
|
17
|
-
default: string;
|
|
18
17
|
};
|
|
19
18
|
autoFocus: {
|
|
20
19
|
type: import("vue").PropType<boolean>;
|
|
@@ -25,14 +24,14 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
25
24
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
25
|
"update:modelValue": (value: string | number) => void;
|
|
27
26
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
disabled: {
|
|
29
|
-
type: import("vue").PropType<boolean>;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
27
|
testId: {
|
|
33
28
|
type: import("vue").PropType<string>;
|
|
34
29
|
default: string;
|
|
35
30
|
};
|
|
31
|
+
disabled: {
|
|
32
|
+
type: import("vue").PropType<boolean>;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
36
35
|
modelValue: {
|
|
37
36
|
type: import("vue").PropType<string>;
|
|
38
37
|
required: true;
|
|
@@ -40,7 +39,6 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
40
39
|
placeholder: {
|
|
41
40
|
type: import("vue").PropType<string>;
|
|
42
41
|
required: true;
|
|
43
|
-
default: string;
|
|
44
42
|
};
|
|
45
43
|
autoFocus: {
|
|
46
44
|
type: import("vue").PropType<boolean>;
|
|
@@ -49,9 +47,8 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
49
47
|
}>> & {
|
|
50
48
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
51
49
|
}, {
|
|
52
|
-
disabled: boolean;
|
|
53
50
|
testId: string;
|
|
54
|
-
|
|
51
|
+
disabled: boolean;
|
|
55
52
|
autoFocus: boolean;
|
|
56
53
|
}>[];
|
|
57
54
|
export { default as Search } from './SearchV4.vue';
|
|
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
21
21
|
showIcon: boolean;
|
|
22
22
|
}>>>, {
|
|
23
23
|
text: string;
|
|
24
|
-
variant: FeedbackVariant;
|
|
25
24
|
testId: string;
|
|
25
|
+
variant: FeedbackVariant;
|
|
26
26
|
showIcon: boolean;
|
|
27
27
|
}>;
|
|
28
28
|
export default _default;
|
|
@@ -29,9 +29,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
29
29
|
hoverHelpTextPlacement: string;
|
|
30
30
|
}>>>, {
|
|
31
31
|
label: string;
|
|
32
|
+
testId: string;
|
|
32
33
|
disabled: boolean;
|
|
33
34
|
mandatory: boolean;
|
|
34
|
-
testId: string;
|
|
35
35
|
hoverHelpText: string;
|
|
36
36
|
hoverHelpTextPlacement: TooltipPositions;
|
|
37
37
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from 'vue';
|
|
2
2
|
export declare const snackbarCommon: (props: any) => {
|
|
3
3
|
visible: import("vue").Ref<boolean>;
|
|
4
|
-
horizontalClass: import("vue").ComputedRef<"
|
|
4
|
+
horizontalClass: import("vue").ComputedRef<"right" | "left">;
|
|
5
5
|
positionStyle: import("vue").ComputedRef<CSSProperties>;
|
|
6
6
|
clearTimer: () => void;
|
|
7
7
|
startTimer: () => void;
|
|
@@ -11,8 +11,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
offset: number;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
onClose: () => void;
|
|
14
|
-
type?: "
|
|
15
|
-
position?: "
|
|
14
|
+
type?: "error" | "info" | "success";
|
|
15
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
16
16
|
showClose?: boolean;
|
|
17
17
|
title?: string;
|
|
18
18
|
zIndex?: number;
|
|
@@ -37,8 +37,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
37
|
offset: number;
|
|
38
38
|
onClick: () => void;
|
|
39
39
|
onClose: () => void;
|
|
40
|
-
type?: "
|
|
41
|
-
position?: "
|
|
40
|
+
type?: "error" | "info" | "success";
|
|
41
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
42
42
|
showClose?: boolean;
|
|
43
43
|
title?: string;
|
|
44
44
|
zIndex?: number;
|
|
@@ -52,9 +52,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
52
52
|
}>>> & {
|
|
53
53
|
onDestroy?: (...args: any[]) => any;
|
|
54
54
|
}, {
|
|
55
|
-
type: "
|
|
55
|
+
type: "error" | "info" | "success";
|
|
56
56
|
title: string;
|
|
57
|
-
position: "
|
|
57
|
+
position: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
58
58
|
zIndex: number;
|
|
59
59
|
duration: number;
|
|
60
60
|
showClose: boolean;
|
|
@@ -10,50 +10,50 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
offset: number;
|
|
11
11
|
onClick: () => void;
|
|
12
12
|
onClose: () => void;
|
|
13
|
-
type?: "
|
|
14
|
-
position?: "
|
|
13
|
+
type?: "error" | "info" | "success";
|
|
14
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
15
15
|
showClose?: boolean;
|
|
16
16
|
title?: string;
|
|
17
17
|
zIndex?: number;
|
|
18
18
|
actionButtons: (Partial<{
|
|
19
|
-
disabled: boolean;
|
|
20
19
|
size: "small" | "medium" | "large" | "extraLarge";
|
|
21
|
-
|
|
20
|
+
testId: string;
|
|
22
21
|
variant: "text" | "contained" | "outlined";
|
|
23
|
-
content: string;
|
|
24
22
|
loading: boolean;
|
|
25
|
-
|
|
23
|
+
content: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
color: "default" | "info" | "success" | "warning" | "primary" | "danger";
|
|
26
26
|
startIconName: string;
|
|
27
27
|
endIconName: string;
|
|
28
|
-
startIconType: "fill" | "bold" | "
|
|
29
|
-
endIconType: "fill" | "bold" | "
|
|
28
|
+
startIconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
29
|
+
endIconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
30
30
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
-
disabled: {
|
|
32
|
-
type: import("vue").PropType<boolean>;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
31
|
size: {
|
|
36
32
|
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
37
33
|
default: string;
|
|
38
34
|
};
|
|
39
|
-
|
|
40
|
-
type: import("vue").PropType<
|
|
35
|
+
testId: {
|
|
36
|
+
type: import("vue").PropType<string>;
|
|
41
37
|
default: string;
|
|
42
38
|
};
|
|
43
39
|
variant: {
|
|
44
40
|
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
45
41
|
default: string;
|
|
46
42
|
};
|
|
43
|
+
loading: {
|
|
44
|
+
type: import("vue").PropType<boolean>;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
47
|
content: {
|
|
48
48
|
type: import("vue").PropType<string>;
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
disabled: {
|
|
52
52
|
type: import("vue").PropType<boolean>;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
type: import("vue").PropType<
|
|
55
|
+
color: {
|
|
56
|
+
type: import("vue").PropType<"default" | "info" | "success" | "warning" | "primary" | "danger">;
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
59
|
startIconName: {
|
|
@@ -65,14 +65,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
65
65
|
default: any;
|
|
66
66
|
};
|
|
67
67
|
startIconType: {
|
|
68
|
-
type: import("vue").PropType<"fill" | "bold" | "
|
|
68
|
+
type: import("vue").PropType<"fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit">;
|
|
69
69
|
default: string;
|
|
70
70
|
};
|
|
71
71
|
endIconType: {
|
|
72
|
-
type: import("vue").PropType<"fill" | "bold" | "
|
|
72
|
+
type: import("vue").PropType<"fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit">;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
75
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "testId" | "variant" | "loading" | "content" | "disabled" | "color" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
76
76
|
testId: string;
|
|
77
77
|
}>, {
|
|
78
78
|
type: string;
|
|
@@ -95,50 +95,50 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
95
95
|
offset: number;
|
|
96
96
|
onClick: () => void;
|
|
97
97
|
onClose: () => void;
|
|
98
|
-
type?: "
|
|
99
|
-
position?: "
|
|
98
|
+
type?: "error" | "info" | "success";
|
|
99
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
100
100
|
showClose?: boolean;
|
|
101
101
|
title?: string;
|
|
102
102
|
zIndex?: number;
|
|
103
103
|
actionButtons: (Partial<{
|
|
104
|
-
disabled: boolean;
|
|
105
104
|
size: "small" | "medium" | "large" | "extraLarge";
|
|
106
|
-
|
|
105
|
+
testId: string;
|
|
107
106
|
variant: "text" | "contained" | "outlined";
|
|
108
|
-
content: string;
|
|
109
107
|
loading: boolean;
|
|
110
|
-
|
|
108
|
+
content: string;
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
color: "default" | "info" | "success" | "warning" | "primary" | "danger";
|
|
111
111
|
startIconName: string;
|
|
112
112
|
endIconName: string;
|
|
113
|
-
startIconType: "fill" | "bold" | "
|
|
114
|
-
endIconType: "fill" | "bold" | "
|
|
113
|
+
startIconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
114
|
+
endIconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
115
115
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
116
|
-
disabled: {
|
|
117
|
-
type: import("vue").PropType<boolean>;
|
|
118
|
-
default: boolean;
|
|
119
|
-
};
|
|
120
116
|
size: {
|
|
121
117
|
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
122
118
|
default: string;
|
|
123
119
|
};
|
|
124
|
-
|
|
125
|
-
type: import("vue").PropType<
|
|
120
|
+
testId: {
|
|
121
|
+
type: import("vue").PropType<string>;
|
|
126
122
|
default: string;
|
|
127
123
|
};
|
|
128
124
|
variant: {
|
|
129
125
|
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
130
126
|
default: string;
|
|
131
127
|
};
|
|
128
|
+
loading: {
|
|
129
|
+
type: import("vue").PropType<boolean>;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
132
|
content: {
|
|
133
133
|
type: import("vue").PropType<string>;
|
|
134
134
|
default: string;
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
disabled: {
|
|
137
137
|
type: import("vue").PropType<boolean>;
|
|
138
138
|
default: boolean;
|
|
139
139
|
};
|
|
140
|
-
|
|
141
|
-
type: import("vue").PropType<
|
|
140
|
+
color: {
|
|
141
|
+
type: import("vue").PropType<"default" | "info" | "success" | "warning" | "primary" | "danger">;
|
|
142
142
|
default: string;
|
|
143
143
|
};
|
|
144
144
|
startIconName: {
|
|
@@ -150,14 +150,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
150
150
|
default: any;
|
|
151
151
|
};
|
|
152
152
|
startIconType: {
|
|
153
|
-
type: import("vue").PropType<"fill" | "bold" | "
|
|
153
|
+
type: import("vue").PropType<"fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit">;
|
|
154
154
|
default: string;
|
|
155
155
|
};
|
|
156
156
|
endIconType: {
|
|
157
|
-
type: import("vue").PropType<"fill" | "bold" | "
|
|
157
|
+
type: import("vue").PropType<"fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit">;
|
|
158
158
|
default: string;
|
|
159
159
|
};
|
|
160
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
160
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "testId" | "variant" | "loading" | "content" | "disabled" | "color" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
161
161
|
testId: string;
|
|
162
162
|
}>, {
|
|
163
163
|
type: string;
|
|
@@ -170,11 +170,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
170
170
|
}>>> & {
|
|
171
171
|
onDestroy?: (...args: any[]) => any;
|
|
172
172
|
}, {
|
|
173
|
-
type: "
|
|
173
|
+
type: "error" | "info" | "success";
|
|
174
174
|
title: string;
|
|
175
|
-
position: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
176
|
-
zIndex: number;
|
|
177
175
|
testId: string;
|
|
176
|
+
position: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
177
|
+
zIndex: number;
|
|
178
178
|
duration: number;
|
|
179
179
|
showClose: boolean;
|
|
180
180
|
}>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SnackbarV4.
|
|
4
|
-
const
|
|
1
|
+
import o from "./SnackbarV4.vue2.js";
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-48311746"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../SnackbarV4.
|
|
1
|
+
import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css"; import { defineComponent as $, computed as p, openBlock as n, createBlock as c, Transition as A, withCtx as f, withDirectives as g, createElementVNode as a, mergeProps as l, unref as e, createVNode as O, createTextVNode as I, toDisplayString as T, createCommentVNode as d, renderSlot as h, vShow as B, createElementBlock as N, Fragment as V, renderList as x, withModifiers as z } from "vue";
|
|
2
2
|
import U from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import D from "../../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import H from "../../button/v4/IconButtonV4.vue.js";
|
|
@@ -78,10 +78,10 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
78
78
|
class: "title"
|
|
79
79
|
}, e(r)[e(i).TITLE]), {
|
|
80
80
|
default: f(() => [
|
|
81
|
-
|
|
81
|
+
O(e(U), l({
|
|
82
82
|
name: e(y).iconName,
|
|
83
83
|
type: "fill",
|
|
84
|
-
size: "
|
|
84
|
+
size: "24px",
|
|
85
85
|
class: [e(y).class, "icon-container"]
|
|
86
86
|
}, e(r)[e(i).ICON]), null, 16, ["name", "class"]),
|
|
87
87
|
I(" " + T(t.title), 1)
|
|
@@ -106,10 +106,9 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
106
106
|
a("div", J, [
|
|
107
107
|
h(m.$slots, "actions", {}, () => [
|
|
108
108
|
t.actionButtons ? (n(), N("div", K, [
|
|
109
|
-
(n(!0), N(
|
|
109
|
+
(n(!0), N(V, null, x(t.actionButtons, (s, v) => (n(), c(e(D), l({
|
|
110
110
|
key: v,
|
|
111
|
-
"data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${v}` : ""
|
|
112
|
-
size: "small"
|
|
111
|
+
"data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${v}` : ""
|
|
113
112
|
}, { ...s }), null, 16, ["data-testid"]))), 128))
|
|
114
113
|
])) : d("", !0)
|
|
115
114
|
], !0)
|
|
@@ -121,7 +120,7 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
121
120
|
"icon-name": "x",
|
|
122
121
|
size: "small"
|
|
123
122
|
}, e(r)[e(i).CLOSE], {
|
|
124
|
-
onClick:
|
|
123
|
+
onClick: z(e(E), ["stop"])
|
|
125
124
|
}), null, 16, ["onClick"])) : d("", !0)
|
|
126
125
|
])
|
|
127
126
|
])
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useSlots as z, ref as a, provide as G, computed as s, onMounted as K, nextTick as N } from "vue";
|
|
2
2
|
import { useVirtualList as V, useInfiniteScroll as j } from "@vueuse/core";
|
|
3
3
|
import { TableContext as q } from "./TableContext.js";
|
|
4
4
|
const F = 46, J = 46, Z = (o, u) => {
|
|
5
|
-
const c = a([]);
|
|
6
|
-
|
|
5
|
+
const v = z(), c = a([]);
|
|
6
|
+
G(q, {
|
|
7
7
|
onClose({ rowIndex: t, cellIndex: e, value: n } = {}) {
|
|
8
8
|
n && (c.value = [...c.value, t], u("saveRow", {
|
|
9
9
|
rowIndex: t,
|
|
@@ -11,37 +11,37 @@ const F = 46, J = 46, Z = (o, u) => {
|
|
|
11
11
|
value: n,
|
|
12
12
|
confirm: () => {
|
|
13
13
|
c.value = c.value.filter(
|
|
14
|
-
(
|
|
14
|
+
(i) => i !== t
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
}));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const
|
|
21
|
-
const t = (
|
|
20
|
+
const x = s(() => !!o.selection), T = s(() => {
|
|
21
|
+
const t = (x.value ? `${J}px ` : "") + (g.value ? `${F}px ` : "");
|
|
22
22
|
return o.columns.reduce((e, n) => {
|
|
23
|
-
const
|
|
24
|
-
return `${e} ${
|
|
23
|
+
const i = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
|
|
24
|
+
return `${e} ${i}`;
|
|
25
25
|
}, t);
|
|
26
|
-
}), R = a(null), y =
|
|
26
|
+
}), g = s(() => !!v.expanded), R = a(null), y = s(() => Array(o.loadingRowCount).fill(
|
|
27
27
|
Array(o.columns.length).fill("")
|
|
28
|
-
)),
|
|
29
|
-
itemHeight: (t) =>
|
|
30
|
-
}),
|
|
31
|
-
l.onScroll(),
|
|
28
|
+
)), H = s(() => o.isLoading ? [...o.rows, ...y.value] : o.rows), { list: C, containerProps: l, wrapperProps: $ } = V(H, {
|
|
29
|
+
itemHeight: g.value ? (t) => w[t] ?? o.rowHeight : o.rowHeight
|
|
30
|
+
}), b = a(null), h = a(0), k = s(() => !!v.search), B = (t) => {
|
|
31
|
+
l.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
|
|
32
32
|
};
|
|
33
33
|
K(() => {
|
|
34
|
-
|
|
34
|
+
h.value = l.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
|
|
35
35
|
l.ref.value?.scrollTo({
|
|
36
36
|
top: o.defaultScrollPosition,
|
|
37
37
|
behavior: "smooth"
|
|
38
38
|
});
|
|
39
39
|
}, 300);
|
|
40
40
|
});
|
|
41
|
-
const I =
|
|
42
|
-
const [t] =
|
|
41
|
+
const I = s(() => {
|
|
42
|
+
const [t] = C.value;
|
|
43
43
|
return t && t.index > 0;
|
|
44
|
-
}), O =
|
|
44
|
+
}), O = s(() => l.style), P = s(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = A(e)), t), {}));
|
|
45
45
|
j(
|
|
46
46
|
l.ref,
|
|
47
47
|
() => {
|
|
@@ -61,37 +61,37 @@ const F = 46, J = 46, Z = (o, u) => {
|
|
|
61
61
|
const e = o.sort.sortBy === t.id;
|
|
62
62
|
if (!(t.isSortable || t.isSortable === void 0))
|
|
63
63
|
return;
|
|
64
|
-
let
|
|
65
|
-
e ?
|
|
64
|
+
let i = o.sort.sortOrder, f = o.sort.sortBy;
|
|
65
|
+
e ? i = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: i });
|
|
66
66
|
}
|
|
67
67
|
function A(t) {
|
|
68
68
|
const { isSticky: e, width: n } = t;
|
|
69
69
|
if (!e || !n)
|
|
70
70
|
return null;
|
|
71
|
-
const
|
|
71
|
+
const i = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, S, m) => m < i ? r + S.width : r, 0), X = o.columns.reduce((r, S, m) => m > i ? r + S.width : r, 0);
|
|
72
72
|
return {
|
|
73
73
|
...t.isStickyRight ? { right: `${X}px` } : { left: `${f}px` },
|
|
74
74
|
zIndex: 1
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
const d = a([]),
|
|
77
|
+
const d = a([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, e) => {
|
|
78
78
|
const n = d.value.indexOf(t);
|
|
79
79
|
if (n === -1) {
|
|
80
80
|
d.value.push(t);
|
|
81
|
-
const
|
|
82
|
-
await N(),
|
|
81
|
+
const i = e.target.closest("tr");
|
|
82
|
+
await N(), i && (w[t] = i.offsetHeight);
|
|
83
83
|
} else
|
|
84
|
-
d.value.splice(n, 1), delete
|
|
85
|
-
},
|
|
84
|
+
d.value.splice(n, 1), delete w[t];
|
|
85
|
+
}, M = s(() => `${o.rowHeight}px`), W = s(
|
|
86
86
|
() => `1 / span ${o.columns.length + 1}`
|
|
87
87
|
);
|
|
88
88
|
return {
|
|
89
|
-
list:
|
|
89
|
+
list: C,
|
|
90
90
|
containerProps: l,
|
|
91
|
-
wrapperProps:
|
|
91
|
+
wrapperProps: $,
|
|
92
92
|
activeRow: R,
|
|
93
93
|
gridColumnTemplate: T,
|
|
94
|
-
floatingActionRef:
|
|
94
|
+
floatingActionRef: b,
|
|
95
95
|
scrollToTop: E,
|
|
96
96
|
toggleSortOrder: L,
|
|
97
97
|
columnsStickyPositions: P,
|
|
@@ -100,9 +100,9 @@ const F = 46, J = 46, Z = (o, u) => {
|
|
|
100
100
|
containerStyle: O,
|
|
101
101
|
onScroll: B,
|
|
102
102
|
savingRows: c,
|
|
103
|
-
floatingActionPosition:
|
|
104
|
-
hasExpandSlot:
|
|
105
|
-
hasCheckboxes:
|
|
103
|
+
floatingActionPosition: h,
|
|
104
|
+
hasExpandSlot: g,
|
|
105
|
+
hasCheckboxes: x,
|
|
106
106
|
toggleExpandRow: D,
|
|
107
107
|
isRowExpanded: _,
|
|
108
108
|
cssRowHeight: M,
|
|
@@ -24,14 +24,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
24
24
|
type: import("vue").PropType<string>;
|
|
25
25
|
required: true;
|
|
26
26
|
};
|
|
27
|
-
columns: {
|
|
28
|
-
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
27
|
testId: {
|
|
32
28
|
type: import("vue").PropType<string>;
|
|
33
29
|
default: string;
|
|
34
30
|
};
|
|
31
|
+
columns: {
|
|
32
|
+
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
35
|
isLoading: {
|
|
36
36
|
type: import("vue").PropType<boolean>;
|
|
37
37
|
default: boolean;
|
|
@@ -118,14 +118,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
118
118
|
type: import("vue").PropType<string>;
|
|
119
119
|
required: true;
|
|
120
120
|
};
|
|
121
|
-
columns: {
|
|
122
|
-
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
123
|
-
required: true;
|
|
124
|
-
};
|
|
125
121
|
testId: {
|
|
126
122
|
type: import("vue").PropType<string>;
|
|
127
123
|
default: string;
|
|
128
124
|
};
|
|
125
|
+
columns: {
|
|
126
|
+
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
127
|
+
required: true;
|
|
128
|
+
};
|
|
129
129
|
isLoading: {
|
|
130
130
|
type: import("vue").PropType<boolean>;
|
|
131
131
|
default: boolean;
|
|
@@ -236,14 +236,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
236
236
|
type: import("vue").PropType<string>;
|
|
237
237
|
required: true;
|
|
238
238
|
};
|
|
239
|
-
columns: {
|
|
240
|
-
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
241
|
-
required: true;
|
|
242
|
-
};
|
|
243
239
|
testId: {
|
|
244
240
|
type: import("vue").PropType<string>;
|
|
245
241
|
default: string;
|
|
246
242
|
};
|
|
243
|
+
columns: {
|
|
244
|
+
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
245
|
+
required: true;
|
|
246
|
+
};
|
|
247
247
|
isLoading: {
|
|
248
248
|
type: import("vue").PropType<boolean>;
|
|
249
249
|
default: boolean;
|
|
@@ -315,14 +315,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
315
315
|
type: import("vue").PropType<string>;
|
|
316
316
|
required: true;
|
|
317
317
|
};
|
|
318
|
-
columns: {
|
|
319
|
-
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
320
|
-
required: true;
|
|
321
|
-
};
|
|
322
318
|
testId: {
|
|
323
319
|
type: import("vue").PropType<string>;
|
|
324
320
|
default: string;
|
|
325
321
|
};
|
|
322
|
+
columns: {
|
|
323
|
+
type: import("vue").PropType<import("../common/Table.types").Column[]>;
|
|
324
|
+
required: true;
|
|
325
|
+
};
|
|
326
326
|
isLoading: {
|
|
327
327
|
type: import("vue").PropType<boolean>;
|
|
328
328
|
default: boolean;
|