@ironsource/shared-ui 2.0.2-rc.3 → 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/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/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 +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +6 -6
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +13 -13
- package/components/dropdown/v4/DropdownV4.vue.d.ts +11 -11
- package/components/dropdown/v4/OptionV4.vue.d.ts +4 -4
- package/components/dropdown/v4/index.d.ts +325 -325
- 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 +20 -20
- 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 -1
- package/components/search/v4/index.d.ts +9 -9
- 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/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/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 +1641 -1833
- package/index.js +105 -109
- 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_44158e5f_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_5afbd3dd_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_39577dfc_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
|
@@ -7,12 +7,12 @@ declare const TooltipTypes: () => ({
|
|
|
7
7
|
header: string;
|
|
8
8
|
text: string;
|
|
9
9
|
theme: string;
|
|
10
|
-
disabled: boolean;
|
|
11
10
|
testId: string;
|
|
12
11
|
delay: number;
|
|
13
|
-
triggers: ("
|
|
12
|
+
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
14
13
|
forceShowWithTruncate: boolean;
|
|
15
|
-
placement: "auto" | "
|
|
14
|
+
placement: "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
15
|
+
disabled: boolean;
|
|
16
16
|
distance: string | number;
|
|
17
17
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
header: {
|
|
@@ -27,10 +27,6 @@ declare const TooltipTypes: () => ({
|
|
|
27
27
|
type: import("vue").PropType<string>;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
|
-
disabled: {
|
|
31
|
-
type: import("vue").PropType<boolean>;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
30
|
testId: {
|
|
35
31
|
type: import("vue").PropType<string>;
|
|
36
32
|
default: string;
|
|
@@ -40,7 +36,7 @@ declare const TooltipTypes: () => ({
|
|
|
40
36
|
default: number;
|
|
41
37
|
};
|
|
42
38
|
triggers: {
|
|
43
|
-
type: import("vue").PropType<("
|
|
39
|
+
type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
|
|
44
40
|
default: () => string[];
|
|
45
41
|
};
|
|
46
42
|
forceShowWithTruncate: {
|
|
@@ -48,14 +44,18 @@ declare const TooltipTypes: () => ({
|
|
|
48
44
|
default: boolean;
|
|
49
45
|
};
|
|
50
46
|
placement: {
|
|
51
|
-
type: import("vue").PropType<"auto" | "
|
|
47
|
+
type: import("vue").PropType<"auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
52
48
|
default: string;
|
|
53
49
|
};
|
|
50
|
+
disabled: {
|
|
51
|
+
type: import("vue").PropType<boolean>;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
54
|
distance: {
|
|
55
55
|
type: import("vue").PropType<string | number>;
|
|
56
56
|
default: string;
|
|
57
57
|
};
|
|
58
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "
|
|
58
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance">;
|
|
59
59
|
$attrs: {
|
|
60
60
|
[x: string]: unknown;
|
|
61
61
|
};
|
|
@@ -82,10 +82,6 @@ declare const TooltipTypes: () => ({
|
|
|
82
82
|
type: import("vue").PropType<string>;
|
|
83
83
|
default: string;
|
|
84
84
|
};
|
|
85
|
-
disabled: {
|
|
86
|
-
type: import("vue").PropType<boolean>;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
85
|
testId: {
|
|
90
86
|
type: import("vue").PropType<string>;
|
|
91
87
|
default: string;
|
|
@@ -95,7 +91,7 @@ declare const TooltipTypes: () => ({
|
|
|
95
91
|
default: number;
|
|
96
92
|
};
|
|
97
93
|
triggers: {
|
|
98
|
-
type: import("vue").PropType<("
|
|
94
|
+
type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
|
|
99
95
|
default: () => string[];
|
|
100
96
|
};
|
|
101
97
|
forceShowWithTruncate: {
|
|
@@ -103,9 +99,13 @@ declare const TooltipTypes: () => ({
|
|
|
103
99
|
default: boolean;
|
|
104
100
|
};
|
|
105
101
|
placement: {
|
|
106
|
-
type: import("vue").PropType<"auto" | "
|
|
102
|
+
type: import("vue").PropType<"auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
107
103
|
default: string;
|
|
108
104
|
};
|
|
105
|
+
disabled: {
|
|
106
|
+
type: import("vue").PropType<boolean>;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
109
|
distance: {
|
|
110
110
|
type: import("vue").PropType<string | number>;
|
|
111
111
|
default: string;
|
|
@@ -114,12 +114,12 @@ declare const TooltipTypes: () => ({
|
|
|
114
114
|
header: string;
|
|
115
115
|
text: string;
|
|
116
116
|
theme: string;
|
|
117
|
-
disabled: boolean;
|
|
118
117
|
testId: string;
|
|
119
118
|
delay: number;
|
|
120
|
-
triggers: ("
|
|
119
|
+
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
121
120
|
forceShowWithTruncate: boolean;
|
|
122
|
-
placement: "auto" | "
|
|
121
|
+
placement: "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
122
|
+
disabled: boolean;
|
|
123
123
|
distance: string | number;
|
|
124
124
|
}, {}, string> & {
|
|
125
125
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -154,10 +154,6 @@ declare const TooltipTypes: () => ({
|
|
|
154
154
|
type: import("vue").PropType<string>;
|
|
155
155
|
default: string;
|
|
156
156
|
};
|
|
157
|
-
disabled: {
|
|
158
|
-
type: import("vue").PropType<boolean>;
|
|
159
|
-
default: boolean;
|
|
160
|
-
};
|
|
161
157
|
testId: {
|
|
162
158
|
type: import("vue").PropType<string>;
|
|
163
159
|
default: string;
|
|
@@ -167,7 +163,7 @@ declare const TooltipTypes: () => ({
|
|
|
167
163
|
default: number;
|
|
168
164
|
};
|
|
169
165
|
triggers: {
|
|
170
|
-
type: import("vue").PropType<("
|
|
166
|
+
type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
|
|
171
167
|
default: () => string[];
|
|
172
168
|
};
|
|
173
169
|
forceShowWithTruncate: {
|
|
@@ -175,9 +171,13 @@ declare const TooltipTypes: () => ({
|
|
|
175
171
|
default: boolean;
|
|
176
172
|
};
|
|
177
173
|
placement: {
|
|
178
|
-
type: import("vue").PropType<"auto" | "
|
|
174
|
+
type: import("vue").PropType<"auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
179
175
|
default: string;
|
|
180
176
|
};
|
|
177
|
+
disabled: {
|
|
178
|
+
type: import("vue").PropType<boolean>;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
181
|
distance: {
|
|
182
182
|
type: import("vue").PropType<string | number>;
|
|
183
183
|
default: string;
|
|
@@ -199,10 +199,6 @@ declare const TooltipTypes: () => ({
|
|
|
199
199
|
type: import("vue").PropType<string>;
|
|
200
200
|
default: string;
|
|
201
201
|
};
|
|
202
|
-
disabled: {
|
|
203
|
-
type: import("vue").PropType<boolean>;
|
|
204
|
-
default: boolean;
|
|
205
|
-
};
|
|
206
202
|
testId: {
|
|
207
203
|
type: import("vue").PropType<string>;
|
|
208
204
|
default: string;
|
|
@@ -212,7 +208,7 @@ declare const TooltipTypes: () => ({
|
|
|
212
208
|
default: number;
|
|
213
209
|
};
|
|
214
210
|
triggers: {
|
|
215
|
-
type: import("vue").PropType<("
|
|
211
|
+
type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
|
|
216
212
|
default: () => string[];
|
|
217
213
|
};
|
|
218
214
|
forceShowWithTruncate: {
|
|
@@ -220,9 +216,13 @@ declare const TooltipTypes: () => ({
|
|
|
220
216
|
default: boolean;
|
|
221
217
|
};
|
|
222
218
|
placement: {
|
|
223
|
-
type: import("vue").PropType<"auto" | "
|
|
219
|
+
type: import("vue").PropType<"auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
224
220
|
default: string;
|
|
225
221
|
};
|
|
222
|
+
disabled: {
|
|
223
|
+
type: import("vue").PropType<boolean>;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
226
|
distance: {
|
|
227
227
|
type: import("vue").PropType<string | number>;
|
|
228
228
|
default: string;
|
|
@@ -231,12 +231,12 @@ declare const TooltipTypes: () => ({
|
|
|
231
231
|
header: string;
|
|
232
232
|
text: string;
|
|
233
233
|
theme: string;
|
|
234
|
-
disabled: boolean;
|
|
235
234
|
testId: string;
|
|
236
235
|
delay: number;
|
|
237
|
-
triggers: ("
|
|
236
|
+
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
238
237
|
forceShowWithTruncate: boolean;
|
|
239
|
-
placement: "auto" | "
|
|
238
|
+
placement: "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
239
|
+
disabled: boolean;
|
|
240
240
|
distance: string | number;
|
|
241
241
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
242
242
|
$slots: {
|
|
@@ -13,8 +13,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
level: string;
|
|
14
14
|
testId: string;
|
|
15
15
|
}>>>, {
|
|
16
|
-
testId: string;
|
|
17
16
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
17
|
+
testId: string;
|
|
18
18
|
}>, {
|
|
19
19
|
default?(_: {}): any;
|
|
20
20
|
}>;
|
|
@@ -3,21 +3,21 @@ declare const TypographyTypes: () => (({
|
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
|
-
testId: string;
|
|
7
6
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
7
|
+
testId: string;
|
|
8
8
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
isTruncated: {
|
|
10
10
|
type: import("vue").PropType<boolean>;
|
|
11
11
|
};
|
|
12
|
-
testId: {
|
|
13
|
-
type: import("vue").PropType<string>;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
12
|
level: {
|
|
17
13
|
type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
18
14
|
default: string;
|
|
19
15
|
};
|
|
20
|
-
|
|
16
|
+
testId: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "level" | "testId">;
|
|
21
21
|
$attrs: {
|
|
22
22
|
[x: string]: unknown;
|
|
23
23
|
};
|
|
@@ -35,17 +35,17 @@ declare const TypographyTypes: () => (({
|
|
|
35
35
|
isTruncated: {
|
|
36
36
|
type: import("vue").PropType<boolean>;
|
|
37
37
|
};
|
|
38
|
-
testId: {
|
|
39
|
-
type: import("vue").PropType<string>;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
38
|
level: {
|
|
43
39
|
type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
44
40
|
default: string;
|
|
45
41
|
};
|
|
42
|
+
testId: {
|
|
43
|
+
type: import("vue").PropType<string>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
46
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
47
|
-
testId: string;
|
|
48
47
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
48
|
+
testId: string;
|
|
49
49
|
}, {}, string> & {
|
|
50
50
|
beforeCreate?: (() => void) | (() => void)[];
|
|
51
51
|
created?: (() => void) | (() => void)[];
|
|
@@ -70,14 +70,14 @@ declare const TypographyTypes: () => (({
|
|
|
70
70
|
isTruncated: {
|
|
71
71
|
type: import("vue").PropType<boolean>;
|
|
72
72
|
};
|
|
73
|
-
testId: {
|
|
74
|
-
type: import("vue").PropType<string>;
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
73
|
level: {
|
|
78
74
|
type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
79
75
|
default: string;
|
|
80
76
|
};
|
|
77
|
+
testId: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
81
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
82
82
|
__isFragment?: never;
|
|
83
83
|
__isTeleport?: never;
|
|
@@ -86,17 +86,17 @@ declare const TypographyTypes: () => (({
|
|
|
86
86
|
isTruncated: {
|
|
87
87
|
type: import("vue").PropType<boolean>;
|
|
88
88
|
};
|
|
89
|
-
testId: {
|
|
90
|
-
type: import("vue").PropType<string>;
|
|
91
|
-
default: string;
|
|
92
|
-
};
|
|
93
89
|
level: {
|
|
94
90
|
type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
95
91
|
default: string;
|
|
96
92
|
};
|
|
93
|
+
testId: {
|
|
94
|
+
type: import("vue").PropType<string>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
97
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
98
|
-
testId: string;
|
|
99
98
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
99
|
+
testId: string;
|
|
100
100
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
101
101
|
$slots: {
|
|
102
102
|
default?(_: {}): any;
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as s, watch as l } from "vue";
|
|
2
2
|
function p(o, i = 1, e = null) {
|
|
3
3
|
const n = i === 0 ? localStorage : sessionStorage, r = a();
|
|
4
|
-
r ? e =
|
|
4
|
+
r ? e = s(r) : (e = s(e), u()), l(e, () => {
|
|
5
5
|
u();
|
|
6
6
|
});
|
|
7
7
|
function a() {
|
|
8
8
|
const t = n.getItem(o);
|
|
9
|
-
return t ? JSON.parse(
|
|
9
|
+
return t ? JSON.parse(d(t)) : null;
|
|
10
10
|
}
|
|
11
11
|
function u() {
|
|
12
12
|
if (e.value === "" || e.value === null) {
|
|
13
13
|
n.removeItem(o);
|
|
14
14
|
return;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
n.setItem(o, l(JSON.stringify(e.value)));
|
|
15
|
+
}
|
|
16
|
+
n.setItem(o, m(JSON.stringify(e.value)));
|
|
18
17
|
}
|
|
19
|
-
function
|
|
18
|
+
function m(t) {
|
|
20
19
|
return btoa(
|
|
21
20
|
encodeURIComponent(t).replace(
|
|
22
21
|
/%([0-9A-F]{2})/g,
|
|
23
|
-
(
|
|
22
|
+
(c, f) => String.fromCharCode(+("0x" + f))
|
|
24
23
|
)
|
|
25
24
|
);
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function d(t) {
|
|
28
27
|
return decodeURIComponent(
|
|
29
|
-
atob(t).split("").map((
|
|
28
|
+
atob(t).split("").map((c) => "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2)).join("")
|
|
30
29
|
);
|
|
31
30
|
}
|
|
32
31
|
return e;
|