@ironsource/shared-ui 2.1.12-rc.20 → 2.1.12-rc.22
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/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +17 -16
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +34 -33
- package/components/chart/ChartStoryArgs.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.d.ts +6 -0
- package/components/dateRange/common/DateServices.common.js +87 -92
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -3
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +44 -43
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +218 -189
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +71 -68
- package/components/dropdown/v4/index.d.ts +39 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +25 -23
- package/components/switch/v4/index.d.ts +11 -0
- package/components/table/common/Table.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +10 -1
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +294 -237
- package/components/table/v4/index.d.ts +34 -1
- package/components/table/v4/storyUtils.d.ts +2 -0
- package/index.d.ts +182 -18
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_64205c96_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
|
@@ -4,7 +4,7 @@ const a = {
|
|
|
4
4
|
month: "Months"
|
|
5
5
|
}, s = "Date range is in an invalid format", d = "Please select a date range", t = {
|
|
6
6
|
week: "For more than 52 weeks switch to months"
|
|
7
|
-
}, n = "previous",
|
|
7
|
+
}, n = "previous", m = "next", e = {
|
|
8
8
|
date: [
|
|
9
9
|
{ name: "Today", id: "today", numid: 1 },
|
|
10
10
|
{ name: "Yesterday", id: "yesterday", numid: 2 },
|
|
@@ -62,14 +62,20 @@ const a = {
|
|
|
62
62
|
{ name: "Last 12 months", id: "last12months", numid: 3 },
|
|
63
63
|
{ name: "Last 24 months", id: "last24months", numid: 4 },
|
|
64
64
|
{ name: "Last 36 months", id: "last36months", numid: 5 }
|
|
65
|
+
],
|
|
66
|
+
"month-3-6-9-12": [
|
|
67
|
+
{ name: "Last 3 months", id: "last3months", numid: 1 },
|
|
68
|
+
{ name: "Last 6 months", id: "last6months", numid: 2 },
|
|
69
|
+
{ name: "Last 9 months", id: "last9months", numid: 3 },
|
|
70
|
+
{ name: "Last 12 months", id: "last12months", numid: 4 }
|
|
65
71
|
]
|
|
66
72
|
};
|
|
67
73
|
export {
|
|
68
74
|
s as formatError,
|
|
69
75
|
d as mandatoryValuesError,
|
|
70
76
|
t as messagePerType,
|
|
71
|
-
|
|
77
|
+
m as navigateNext,
|
|
72
78
|
n as navigatePrev,
|
|
73
|
-
|
|
79
|
+
e as presetsList,
|
|
74
80
|
a as typeToName
|
|
75
81
|
};
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
includeToday?: boolean;
|
|
8
8
|
allowedDays?: number;
|
|
9
9
|
maxDaysInRange?: number;
|
|
10
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
10
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
11
11
|
regex?: RegExp;
|
|
12
12
|
dateFormat?: string;
|
|
13
13
|
uniqueId?: string | number;
|
|
@@ -48,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
48
|
includeToday?: boolean;
|
|
49
49
|
allowedDays?: number;
|
|
50
50
|
maxDaysInRange?: number;
|
|
51
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
51
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
52
52
|
regex?: RegExp;
|
|
53
53
|
dateFormat?: string;
|
|
54
54
|
uniqueId?: string | number;
|
|
@@ -89,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
89
|
dateFormat: string;
|
|
90
90
|
types: ("date" | "week" | "month")[];
|
|
91
91
|
maxDaysInRange: number;
|
|
92
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
92
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
93
93
|
regex: RegExp;
|
|
94
94
|
initialType: "date" | "week" | "month";
|
|
95
95
|
openOnTop: boolean;
|
|
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
includeToday?: boolean;
|
|
9
9
|
allowedDays?: number;
|
|
10
10
|
maxDaysInRange?: number;
|
|
11
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
11
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
12
12
|
regex?: RegExp;
|
|
13
13
|
dateFormat?: string;
|
|
14
14
|
uniqueId?: string | number;
|
|
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
44
44
|
includeToday?: boolean;
|
|
45
45
|
allowedDays?: number;
|
|
46
46
|
maxDaysInRange?: number;
|
|
47
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
47
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
48
48
|
regex?: RegExp;
|
|
49
49
|
dateFormat?: string;
|
|
50
50
|
uniqueId?: string | number;
|
|
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
79
79
|
dateFormat: string;
|
|
80
80
|
types: ("date" | "week" | "month")[];
|
|
81
81
|
maxDaysInRange: number;
|
|
82
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
82
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
83
83
|
regex: RegExp;
|
|
84
84
|
initialType: "date" | "week" | "month";
|
|
85
85
|
openOnTop: boolean;
|
|
@@ -11,7 +11,7 @@ declare const DateRangeTypes: () => ({
|
|
|
11
11
|
dateFormat: string;
|
|
12
12
|
types: ("date" | "week" | "month")[];
|
|
13
13
|
maxDaysInRange: number;
|
|
14
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
14
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
15
15
|
regex: RegExp;
|
|
16
16
|
initialType: "date" | "week" | "month";
|
|
17
17
|
openOnTop: boolean;
|
|
@@ -58,7 +58,7 @@ declare const DateRangeTypes: () => ({
|
|
|
58
58
|
default: any;
|
|
59
59
|
};
|
|
60
60
|
datePresetList: {
|
|
61
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
61
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
regex: {
|
|
@@ -146,7 +146,7 @@ declare const DateRangeTypes: () => ({
|
|
|
146
146
|
default: any;
|
|
147
147
|
};
|
|
148
148
|
datePresetList: {
|
|
149
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
149
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
150
150
|
default: string;
|
|
151
151
|
};
|
|
152
152
|
regex: {
|
|
@@ -195,7 +195,7 @@ declare const DateRangeTypes: () => ({
|
|
|
195
195
|
dateFormat: string;
|
|
196
196
|
types: ("date" | "week" | "month")[];
|
|
197
197
|
maxDaysInRange: number;
|
|
198
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
198
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
199
199
|
regex: RegExp;
|
|
200
200
|
initialType: "date" | "week" | "month";
|
|
201
201
|
openOnTop: boolean;
|
|
@@ -262,7 +262,7 @@ declare const DateRangeTypes: () => ({
|
|
|
262
262
|
default: any;
|
|
263
263
|
};
|
|
264
264
|
datePresetList: {
|
|
265
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
265
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
266
266
|
default: string;
|
|
267
267
|
};
|
|
268
268
|
regex: {
|
|
@@ -340,7 +340,7 @@ declare const DateRangeTypes: () => ({
|
|
|
340
340
|
default: any;
|
|
341
341
|
};
|
|
342
342
|
datePresetList: {
|
|
343
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
343
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
344
344
|
default: string;
|
|
345
345
|
};
|
|
346
346
|
regex: {
|
|
@@ -389,7 +389,7 @@ declare const DateRangeTypes: () => ({
|
|
|
389
389
|
dateFormat: string;
|
|
390
390
|
types: ("date" | "week" | "month")[];
|
|
391
391
|
maxDaysInRange: number;
|
|
392
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
392
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
393
393
|
regex: RegExp;
|
|
394
394
|
initialType: "date" | "week" | "month";
|
|
395
395
|
openOnTop: boolean;
|
|
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
includeToday?: boolean;
|
|
9
9
|
allowedDays?: number;
|
|
10
10
|
maxDaysInRange?: number;
|
|
11
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
11
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
12
12
|
regex?: RegExp;
|
|
13
13
|
dateFormat?: string;
|
|
14
14
|
uniqueId?: string | number;
|
|
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
44
44
|
includeToday?: boolean;
|
|
45
45
|
allowedDays?: number;
|
|
46
46
|
maxDaysInRange?: number;
|
|
47
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
47
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
48
48
|
regex?: RegExp;
|
|
49
49
|
dateFormat?: string;
|
|
50
50
|
uniqueId?: string | number;
|
|
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
79
79
|
dateFormat: string;
|
|
80
80
|
types: ("date" | "week" | "month")[];
|
|
81
81
|
maxDaysInRange: number;
|
|
82
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
82
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
83
83
|
regex: RegExp;
|
|
84
84
|
initialType: "date" | "week" | "month";
|
|
85
85
|
openOnTop: boolean;
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
includeToday?: boolean;
|
|
8
8
|
allowedDays?: number;
|
|
9
9
|
maxDaysInRange?: number;
|
|
10
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
10
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
11
11
|
regex?: RegExp;
|
|
12
12
|
dateFormat?: string;
|
|
13
13
|
uniqueId?: string | number;
|
|
@@ -48,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
48
|
includeToday?: boolean;
|
|
49
49
|
allowedDays?: number;
|
|
50
50
|
maxDaysInRange?: number;
|
|
51
|
-
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
51
|
+
datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
52
52
|
regex?: RegExp;
|
|
53
53
|
dateFormat?: string;
|
|
54
54
|
uniqueId?: string | number;
|
|
@@ -89,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
89
|
dateFormat: string;
|
|
90
90
|
types: ("date" | "week" | "month")[];
|
|
91
91
|
maxDaysInRange: number;
|
|
92
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
92
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
93
93
|
regex: RegExp;
|
|
94
94
|
initialType: "date" | "week" | "month";
|
|
95
95
|
openOnTop: boolean;
|
|
@@ -11,7 +11,7 @@ declare const DateRangeTypes: () => ({
|
|
|
11
11
|
dateFormat: string;
|
|
12
12
|
types: ("date" | "week" | "month")[];
|
|
13
13
|
maxDaysInRange: number;
|
|
14
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
14
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
15
15
|
regex: RegExp;
|
|
16
16
|
initialType: "date" | "week" | "month";
|
|
17
17
|
openOnTop: boolean;
|
|
@@ -58,7 +58,7 @@ declare const DateRangeTypes: () => ({
|
|
|
58
58
|
default: any;
|
|
59
59
|
};
|
|
60
60
|
datePresetList: {
|
|
61
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
61
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
regex: {
|
|
@@ -146,7 +146,7 @@ declare const DateRangeTypes: () => ({
|
|
|
146
146
|
default: any;
|
|
147
147
|
};
|
|
148
148
|
datePresetList: {
|
|
149
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
149
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
150
150
|
default: string;
|
|
151
151
|
};
|
|
152
152
|
regex: {
|
|
@@ -195,7 +195,7 @@ declare const DateRangeTypes: () => ({
|
|
|
195
195
|
dateFormat: string;
|
|
196
196
|
types: ("date" | "week" | "month")[];
|
|
197
197
|
maxDaysInRange: number;
|
|
198
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
198
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
199
199
|
regex: RegExp;
|
|
200
200
|
initialType: "date" | "week" | "month";
|
|
201
201
|
openOnTop: boolean;
|
|
@@ -262,7 +262,7 @@ declare const DateRangeTypes: () => ({
|
|
|
262
262
|
default: any;
|
|
263
263
|
};
|
|
264
264
|
datePresetList: {
|
|
265
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
265
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
266
266
|
default: string;
|
|
267
267
|
};
|
|
268
268
|
regex: {
|
|
@@ -340,7 +340,7 @@ declare const DateRangeTypes: () => ({
|
|
|
340
340
|
default: any;
|
|
341
341
|
};
|
|
342
342
|
datePresetList: {
|
|
343
|
-
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
343
|
+
type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
|
|
344
344
|
default: string;
|
|
345
345
|
};
|
|
346
346
|
regex: {
|
|
@@ -389,7 +389,7 @@ declare const DateRangeTypes: () => ({
|
|
|
389
389
|
dateFormat: string;
|
|
390
390
|
types: ("date" | "week" | "month")[];
|
|
391
391
|
maxDaysInRange: number;
|
|
392
|
-
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
392
|
+
datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
|
|
393
393
|
regex: RegExp;
|
|
394
394
|
initialType: "date" | "week" | "month";
|
|
395
395
|
openOnTop: boolean;
|
|
@@ -46,4 +46,5 @@ export declare const dropdownCommon: (props: any, emit: any, commonOptions: any)
|
|
|
46
46
|
clearAll: Ref<HTMLButtonElement>;
|
|
47
47
|
onClearAllSelections: (applyChanges?: boolean) => void;
|
|
48
48
|
isGroup: (option: any) => boolean;
|
|
49
|
+
flattenAndMarkGroupOptions: (options: any) => any;
|
|
49
50
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useToggle as Ve } from "../../../composables/useToggle.js";
|
|
2
2
|
import { inject as ke, ref as r, computed as c, watch as b, useSlots as Ge, toRaw as I, nextTick as N, provide as Le, onMounted as Ue } from "vue";
|
|
3
|
-
import { isObjectInArray as
|
|
3
|
+
import { isObjectInArray as ne } from "../../../utils/array.js";
|
|
4
4
|
import { objectsEqual as Be } from "../../../utils/object.js";
|
|
5
|
-
import { useClamp as He, useVirtualList as qe, onClickOutside as
|
|
5
|
+
import { useClamp as He, useVirtualList as qe, onClickOutside as ue, useInfiniteScroll as Xe } from "@vueuse/core";
|
|
6
6
|
import { Mode as w, Type as U, DropdownContext as $e } from "./DropdownContext.js";
|
|
7
7
|
import { pxToRem as je } from "../../../utils/style.js";
|
|
8
8
|
import { useEditableContext as ze } from "../../table-cells/common/EditableContext.js";
|
|
@@ -10,20 +10,20 @@ import { useGroupedOptions as We } from "./useGroupedOptions.js";
|
|
|
10
10
|
const al = (e, d, y) => {
|
|
11
11
|
const B = ke("isTreeDropdown", !1), {
|
|
12
12
|
sortOutGroups: H,
|
|
13
|
-
flattenAndMarkGroupOptions:
|
|
14
|
-
isGroup:
|
|
13
|
+
flattenAndMarkGroupOptions: q,
|
|
14
|
+
isGroup: X,
|
|
15
15
|
selectAllWithGroups: ie,
|
|
16
16
|
isIndeterminateGrouped: re,
|
|
17
|
-
allSelectedGrouped:
|
|
17
|
+
allSelectedGrouped: $,
|
|
18
18
|
areAllPreviousSelected: oe,
|
|
19
19
|
groupedChildOptionsLength: ce
|
|
20
20
|
} = We(e), se = (l, t) => e.multi && Array.isArray(l) ? e.comparingKey ? l?.findIndex(
|
|
21
21
|
(i) => i[e.comparingKey] === t[e.comparingKey]
|
|
22
|
-
) > -1 :
|
|
23
|
-
let
|
|
22
|
+
) > -1 : ne(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
|
|
23
|
+
let j;
|
|
24
24
|
((l) => {
|
|
25
25
|
l[l.None = 0] = "None", l[l.Next = 1] = "Next", l[l.Previous = -1] = "Previous", l[l.NextPage = 10] = "NextPage", l[l.PrevPage = -10] = "PrevPage";
|
|
26
|
-
})(
|
|
26
|
+
})(j || (j = {}));
|
|
27
27
|
const a = r(
|
|
28
28
|
e.selected
|
|
29
29
|
), K = ze(), n = c({
|
|
@@ -40,7 +40,7 @@ const al = (e, d, y) => {
|
|
|
40
40
|
a.value = e.selected, v.value = e.selected;
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
|
-
const de = Ge(), x = r(null), m = r(null),
|
|
43
|
+
const de = Ge(), x = r(null), m = r(null), z = r(null), R = r(null), W = r(null), D = r(null), ve = r(), J = r(null), Q = r(null), Y = r(null), fe = 8, ge = c(() => D.value ? D.value.getBoundingClientRect().height + fe + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => D.value?.focus(), [S, ye, he] = Ve({
|
|
44
44
|
disabled: e.disabled,
|
|
45
45
|
initialValue: e.defaultOpen
|
|
46
46
|
});
|
|
@@ -50,7 +50,7 @@ const al = (e, d, y) => {
|
|
|
50
50
|
l !== void 0 && he(l);
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
const
|
|
53
|
+
const F = (l) => {
|
|
54
54
|
Oe.value = ye(l);
|
|
55
55
|
}, Oe = c({
|
|
56
56
|
get() {
|
|
@@ -59,7 +59,7 @@ const al = (e, d, y) => {
|
|
|
59
59
|
set(l) {
|
|
60
60
|
d("update:isOpen", l);
|
|
61
61
|
}
|
|
62
|
-
}), Se = c(() => o.value.length - 1), g = He(0, 0, Se),
|
|
62
|
+
}), Se = c(() => o.value.length - 1), g = He(0, 0, Se), p = c(() => n.value ? e.displayValue(n.value) : ""), me = (l) => {
|
|
63
63
|
if (!l.value.length && !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix)
|
|
64
64
|
return e.placeholder;
|
|
65
65
|
const t = !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix ? `${l.value.length} selected` : `${e.multiOptionsPlaceholderPrefix ?? ""}${l.value.length ?? "0"}${e.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
@@ -71,13 +71,13 @@ const al = (e, d, y) => {
|
|
|
71
71
|
return me(a);
|
|
72
72
|
}), E = c(() => {
|
|
73
73
|
if (Array.isArray(a.value))
|
|
74
|
-
return e.groupedOptions ?
|
|
74
|
+
return e.groupedOptions ? $(o, a) : a.value.length === o.value.length;
|
|
75
75
|
}), be = c(() => !e.multi || !Array.isArray(a.value) ? !1 : e.groupedOptions ? re(
|
|
76
76
|
o,
|
|
77
77
|
a
|
|
78
78
|
) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
|
|
79
79
|
O.value = l;
|
|
80
|
-
}, M = c(() => e.groupedOptions ?
|
|
80
|
+
}, M = c(() => e.groupedOptions ? q(e.options) : e.options), Te = c(() => {
|
|
81
81
|
if (oe(
|
|
82
82
|
M,
|
|
83
83
|
v
|
|
@@ -98,11 +98,11 @@ const al = (e, d, y) => {
|
|
|
98
98
|
}), o = c(() => {
|
|
99
99
|
const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Te.value : M.value;
|
|
100
100
|
if (e.onSearch) {
|
|
101
|
-
const t = l.filter((i) => e.groupedOptions &&
|
|
101
|
+
const t = l.filter((i) => e.groupedOptions && X(i) ? i : e.onSearch(i, O.value));
|
|
102
102
|
return e.groupedOptions ? H(t) : t;
|
|
103
103
|
} else
|
|
104
104
|
return l;
|
|
105
|
-
}), Pe = c(() => h.value[0]?.hasSubtitle),
|
|
105
|
+
}), Pe = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === w.Multi), le = c(
|
|
106
106
|
() => Pe.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
|
|
107
107
|
), {
|
|
108
108
|
list: V,
|
|
@@ -110,13 +110,13 @@ const al = (e, d, y) => {
|
|
|
110
110
|
wrapperProps: Ie,
|
|
111
111
|
scrollTo: P
|
|
112
112
|
} = qe(o, {
|
|
113
|
-
itemHeight:
|
|
113
|
+
itemHeight: le.value,
|
|
114
114
|
overscan: e.disableVirtualScroll ? 1 / 0 : 2
|
|
115
115
|
});
|
|
116
116
|
b(
|
|
117
117
|
() => e.isOpen,
|
|
118
118
|
(l) => {
|
|
119
|
-
|
|
119
|
+
F(l);
|
|
120
120
|
}
|
|
121
121
|
), b([T], async () => {
|
|
122
122
|
await N();
|
|
@@ -140,16 +140,16 @@ const al = (e, d, y) => {
|
|
|
140
140
|
d("onsearch", O.value), P(0);
|
|
141
141
|
});
|
|
142
142
|
const A = (l, t = !1) => {
|
|
143
|
-
e.disabled || (
|
|
143
|
+
e.disabled || (F(l), N(() => {
|
|
144
144
|
S.value && d("opened"), S.value || d("closed"), x.value && t && x.value.focus();
|
|
145
145
|
}));
|
|
146
146
|
};
|
|
147
147
|
b(S, (l) => {
|
|
148
148
|
if (l) {
|
|
149
|
-
O.value = "",
|
|
149
|
+
O.value = "", ee.value && Array.isArray(n.value) && (v.value = I(n.value).slice());
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
Z();
|
|
153
153
|
});
|
|
154
154
|
const we = () => {
|
|
155
155
|
if (E.value) {
|
|
@@ -179,14 +179,14 @@ const al = (e, d, y) => {
|
|
|
179
179
|
e.keepOpen || A(!1), s.goToOption(
|
|
180
180
|
0
|
|
181
181
|
/* None */
|
|
182
|
-
), n.value = l, _(""),
|
|
182
|
+
), n.value = l, _(""), Z(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), te();
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
if (!Array.isArray(a.value))
|
|
186
186
|
return;
|
|
187
187
|
m.value?.focus();
|
|
188
188
|
const f = I(a.value);
|
|
189
|
-
if (
|
|
189
|
+
if (ne(f, l) || e.comparingKey && f.findIndex(
|
|
190
190
|
(u) => u[e.comparingKey] === l[e.comparingKey]
|
|
191
191
|
) > -1) {
|
|
192
192
|
a.value = f.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !Be(u, l));
|
|
@@ -199,14 +199,14 @@ const al = (e, d, y) => {
|
|
|
199
199
|
activeIndex: g,
|
|
200
200
|
options: h,
|
|
201
201
|
selectedOption: n,
|
|
202
|
-
labelRef:
|
|
202
|
+
labelRef: W,
|
|
203
203
|
activeOption: R,
|
|
204
204
|
listRef: x,
|
|
205
205
|
clearable: e.clearable,
|
|
206
206
|
type: de.input ? U.Search : U.Dropdown,
|
|
207
207
|
mode: e.multi ? w.Multi : w.Single,
|
|
208
208
|
query: O,
|
|
209
|
-
selectedValue:
|
|
209
|
+
selectedValue: p,
|
|
210
210
|
toggle: A,
|
|
211
211
|
disabled: e.disabled,
|
|
212
212
|
open: S,
|
|
@@ -246,17 +246,17 @@ const al = (e, d, y) => {
|
|
|
246
246
|
h.value = h.value.filter((t) => t.id !== l);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
Le($e, s),
|
|
249
|
+
Le($e, s), ue(
|
|
250
250
|
x,
|
|
251
251
|
() => {
|
|
252
|
-
S.value &&
|
|
252
|
+
S.value && ae();
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
ignore: [
|
|
256
256
|
D,
|
|
257
|
-
W,
|
|
258
257
|
J,
|
|
259
258
|
Q,
|
|
259
|
+
Y,
|
|
260
260
|
m,
|
|
261
261
|
k.ref
|
|
262
262
|
]
|
|
@@ -267,16 +267,16 @@ const al = (e, d, y) => {
|
|
|
267
267
|
};
|
|
268
268
|
Ue(async () => {
|
|
269
269
|
e.autoFocus && (await N(), setTimeout(() => {
|
|
270
|
-
|
|
271
|
-
})), s.goToOption(0), e.multi && !B && (e.groupedOptions ? C.value =
|
|
270
|
+
z.value.focus();
|
|
271
|
+
})), s.goToOption(0), e.multi && !B && (e.groupedOptions ? C.value = $(
|
|
272
272
|
o,
|
|
273
273
|
a
|
|
274
274
|
) : C.value = e.options.length === e.selected.length);
|
|
275
275
|
});
|
|
276
|
-
const
|
|
276
|
+
const te = () => {
|
|
277
277
|
e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = I(n.value).slice(), C.value = e.groupedOptions ? ce(e.options) === n.value.length : e.options.length === n.value.length)), d("apply", n.value), d("allSelectedChanged", E.value), A(!1), Ce();
|
|
278
|
-
},
|
|
279
|
-
|
|
278
|
+
}, ae = () => {
|
|
279
|
+
ee.value && Array.isArray(v.value) && (n.value = I(v.value).slice()), O.value = "", A(!1);
|
|
280
280
|
}, Ne = (l) => {
|
|
281
281
|
if (!e.disableKeyboardEvents)
|
|
282
282
|
switch (l.key) {
|
|
@@ -339,7 +339,7 @@ const al = (e, d, y) => {
|
|
|
339
339
|
}, 0), t = e.multi && e.showSelectAll && !O.value ? 1 : 0, i = l > y.MAX_NUMBER_OF_OPTIONS, f = l + t;
|
|
340
340
|
let u = i ? y.MAX_NUMBER_OF_OPTIONS + 0.1 : f;
|
|
341
341
|
return e.loadMoreLoading && e.multi && (V.value.length ? u = u + 0.1 : u = u - 0.9), e.noResultsText && u === 0 && (u = u + 1), e.withConditions && O.value && (u = u + 1), je(
|
|
342
|
-
u *
|
|
342
|
+
u * le.value + y.PADDING_PX
|
|
343
343
|
);
|
|
344
344
|
});
|
|
345
345
|
return Xe(
|
|
@@ -357,7 +357,7 @@ const al = (e, d, y) => {
|
|
|
357
357
|
toggleMenu: A,
|
|
358
358
|
onButtonKeydown: Ne,
|
|
359
359
|
displayedValue: Ae,
|
|
360
|
-
labelRef:
|
|
360
|
+
labelRef: W,
|
|
361
361
|
query: O,
|
|
362
362
|
containerProps: k,
|
|
363
363
|
calculateTableHeight: Re,
|
|
@@ -371,22 +371,23 @@ const al = (e, d, y) => {
|
|
|
371
371
|
isSelected: se,
|
|
372
372
|
selectedOption: n,
|
|
373
373
|
selectedOptionPrevious: v,
|
|
374
|
-
selectedValue:
|
|
374
|
+
selectedValue: p,
|
|
375
375
|
onSelect: G,
|
|
376
376
|
activeIndex: g,
|
|
377
|
-
onCancel:
|
|
378
|
-
onApply:
|
|
377
|
+
onCancel: ae,
|
|
378
|
+
onApply: te,
|
|
379
379
|
scrollTo: P,
|
|
380
|
-
onClickOutside:
|
|
380
|
+
onClickOutside: ue,
|
|
381
381
|
listRef: x,
|
|
382
382
|
buttonRef: D,
|
|
383
|
-
apply:
|
|
384
|
-
cancel:
|
|
385
|
-
el:
|
|
383
|
+
apply: J,
|
|
384
|
+
cancel: Q,
|
|
385
|
+
el: z,
|
|
386
386
|
triggerRef: ve,
|
|
387
|
-
clearAll:
|
|
387
|
+
clearAll: Y,
|
|
388
388
|
onClearAllSelections: De,
|
|
389
|
-
isGroup:
|
|
389
|
+
isGroup: X,
|
|
390
|
+
flattenAndMarkGroupOptions: q
|
|
390
391
|
};
|
|
391
392
|
};
|
|
392
393
|
export {
|
|
@@ -18,6 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
autoSize?: boolean;
|
|
19
19
|
disableKeyboardEvents?: boolean;
|
|
20
20
|
dynamicFilterMode?: boolean;
|
|
21
|
+
minSelections?: number;
|
|
22
|
+
maxSelections?: number;
|
|
21
23
|
isOnTop?: boolean;
|
|
22
24
|
distance?: number;
|
|
23
25
|
container?: string;
|
|
@@ -92,6 +94,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
94
|
testId: string;
|
|
93
95
|
showSelectAll: boolean;
|
|
94
96
|
dynamicFilterMode: boolean;
|
|
97
|
+
minSelections: number;
|
|
98
|
+
maxSelections: any;
|
|
95
99
|
triggerLabel: string;
|
|
96
100
|
triggerHelperText: string;
|
|
97
101
|
triggerFeedbackText: string;
|
|
@@ -158,6 +162,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
158
162
|
autoSize?: boolean;
|
|
159
163
|
disableKeyboardEvents?: boolean;
|
|
160
164
|
dynamicFilterMode?: boolean;
|
|
165
|
+
minSelections?: number;
|
|
166
|
+
maxSelections?: number;
|
|
161
167
|
isOnTop?: boolean;
|
|
162
168
|
distance?: number;
|
|
163
169
|
container?: string;
|
|
@@ -232,6 +238,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
232
238
|
testId: string;
|
|
233
239
|
showSelectAll: boolean;
|
|
234
240
|
dynamicFilterMode: boolean;
|
|
241
|
+
minSelections: number;
|
|
242
|
+
maxSelections: any;
|
|
235
243
|
triggerLabel: string;
|
|
236
244
|
triggerHelperText: string;
|
|
237
245
|
triggerFeedbackText: string;
|
|
@@ -300,6 +308,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
300
308
|
autoSize: boolean;
|
|
301
309
|
disableKeyboardEvents: boolean;
|
|
302
310
|
dynamicFilterMode: boolean;
|
|
311
|
+
minSelections: number;
|
|
312
|
+
maxSelections: number;
|
|
303
313
|
isOnTop: boolean;
|
|
304
314
|
triggerLabel: string;
|
|
305
315
|
triggerHelperText: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */
|
|
5
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-86b82f0c"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|