@ironsource/shared-ui 2.1.12-rc.2 → 2.1.12-rc.21
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
- package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
- package/components/appIcon/index.d.ts +3 -3
- package/components/banner/Banner.vue.d.ts +3 -3
- package/components/banner/index.d.ts +7 -7
- package/components/button/common/consts.d.ts +1 -0
- package/components/button/v3/Button.vue.d.ts +3 -3
- package/components/button/v3/ButtonBase.vue.d.ts +3 -3
- package/components/button/v3/IconButton.vue.d.ts +3 -3
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.d.ts +4 -3
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +149 -38
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +146 -297
- package/components/chart/ChartHeader.vue.d.ts +45 -11
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +64 -53
- package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
- package/components/chart/ChartHeaderTrend.vue.js +7 -0
- package/components/chart/ChartHeaderTrend.vue2.js +95 -0
- package/components/chart/ChartLegend.vue.d.ts +24 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +82 -63
- package/components/chart/ChartPlane.vue.d.ts +221 -0
- package/components/chart/ChartPlane.vue.js +7 -0
- package/components/chart/ChartPlane.vue2.js +368 -0
- package/components/chart/ChartStoryArgs.d.ts +179 -0
- package/components/chart/ChartTooltip.vue.d.ts +22 -2
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +50 -55
- package/components/chart/LegendSorting.vue.d.ts +37 -0
- package/components/chart/LegendSorting.vue.js +45 -0
- package/components/chart/LegendSorting.vue2.js +4 -0
- package/components/chart/SettingsHeader.vue.d.ts +1 -0
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +17 -16
- package/components/chart/SubHeader.vue.d.ts +52 -0
- package/components/chart/SubHeader.vue.js +7 -0
- package/components/chart/SubHeader.vue2.js +61 -0
- package/components/chart/TooltipHeader.vue.d.ts +50 -0
- package/components/chart/TooltipHeader.vue.js +7 -0
- package/components/chart/TooltipHeader.vue2.js +69 -0
- package/components/chart/colorPalette.d.ts +4 -0
- package/components/chart/colorPalette.js +54 -0
- package/components/chart/composables/useChartHeight.d.ts +5 -0
- package/components/chart/composables/useChartHeight.js +24 -0
- package/components/chart/composables/useColorsMap.d.ts +10 -0
- package/components/chart/composables/useColorsMap.js +46 -0
- package/components/chart/composables/useTooltipPosition.d.ts +1 -1
- package/components/chart/composables/useTooltipPosition.js +11 -15
- package/components/chart/consts.d.ts +29 -7
- package/components/chart/consts.js +41 -21
- package/components/chart/index.d.ts +515 -118
- package/components/chart/mockData.d.ts +44 -5
- package/components/chart/types.d.ts +37 -6
- package/components/chart/types.js +5 -2
- package/components/chart/utils/formatNumber.d.ts +0 -1
- package/components/chart/utils/highlightUtils.d.ts +3 -0
- package/components/chart/utils/highlightUtils.js +18 -0
- package/components/chart/utils/utils.d.ts +3 -2
- package/components/chart/utils/utils.js +23 -8
- package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
- package/components/checkbox/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dialog/v4/index.d.ts +7 -7
- package/components/dropdown/common/Dropdown.common.js +92 -85
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +76 -76
- package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +105 -95
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
- package/components/dropdown/v4/OptionV4.vue.d.ts +8 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +91 -69
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
- package/components/dropdown/v4/index.d.ts +64 -2
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/forms/FormRow.vue.d.ts +9 -2
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +25 -14
- package/components/forms/index.d.ts +25 -5
- package/components/search/v3/index.d.ts +3 -3
- package/components/shared/FieldLabel.vue.d.ts +19 -7
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +50 -37
- package/components/table/v4/DataGrid.vue.d.ts +4 -3
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +151 -142
- package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
- package/components/table/v4/index.d.ts +15 -14
- package/components/tabs/v3/Tabs.vue.d.ts +3 -3
- package/components/tabs/v3/index.d.ts +7 -7
- package/components/tooltip/common/Tooltip.types.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
- package/components/tooltip/v3/Tooltip.vue.js +2 -2
- package/components/tooltip/v3/Tooltip.vue2.js +1 -1
- package/components/tooltip/v3/index.d.ts +7 -7
- 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 +7 -7
- package/components/typography/Text.vue.d.ts +3 -3
- package/components/typography/index.d.ts +7 -7
- package/composables/useFormValidation.d.ts +1 -0
- package/composables/useFormValidation.js +32 -27
- package/composables/useFullPageHeight.d.ts +10 -0
- package/composables/useFullPageHeight.js +15 -0
- package/consts/common.d.ts +1 -0
- package/consts/common.js +4 -0
- package/consts/regex.d.ts +1 -0
- package/consts/regex.js +2 -1
- package/index.d.ts +211 -81
- package/index.js +106 -100
- package/package.json +1 -1
- package/testids/index.d.ts +2 -1
- package/testids/index.js +10 -10
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +19 -6
- package/utils/index.js +7 -0
- package/utils/text.d.ts +3 -0
- package/utils/text.js +24 -5
- package/utils/totals.d.ts +5 -0
- package/utils/totals.js +9 -0
- package/utils/utils.d.ts +1 -0
- package/utils/utils.js +4 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_020072b0_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
- package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
- package/components/chart/utils/formatNumber.js +0 -11
|
@@ -1,30 +1,53 @@
|
|
|
1
1
|
export declare const SINGLE_DATASET_DATE: {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
data: {
|
|
5
|
+
date: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
8
|
+
}[];
|
|
9
|
+
export declare const SINGLE_DATASET_DATE_MONTHLY: {
|
|
10
|
+
id: string;
|
|
2
11
|
label: string;
|
|
3
12
|
data: {
|
|
4
13
|
date: string;
|
|
5
14
|
value: number;
|
|
6
15
|
}[];
|
|
7
|
-
color: string;
|
|
8
16
|
}[];
|
|
9
17
|
export declare const SINGLE_DATASET_COUNTRY: {
|
|
18
|
+
id: string;
|
|
19
|
+
countryFlag: string;
|
|
10
20
|
label: string;
|
|
11
21
|
data: {
|
|
12
|
-
country: string;
|
|
13
22
|
value: number;
|
|
23
|
+
value2: number;
|
|
24
|
+
value3: number;
|
|
14
25
|
}[];
|
|
15
26
|
}[];
|
|
16
|
-
export declare const
|
|
27
|
+
export declare const SINGLE_DATASET_APP: {
|
|
17
28
|
id: string;
|
|
18
29
|
label: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
image: string;
|
|
32
|
+
data: {
|
|
33
|
+
app: string;
|
|
34
|
+
value: number;
|
|
35
|
+
}[];
|
|
36
|
+
}[];
|
|
37
|
+
export declare const MULTIPLE_DATASETS_DATE: ({
|
|
38
|
+
id: number;
|
|
39
|
+
label: string;
|
|
19
40
|
caption: string;
|
|
20
41
|
icon: string;
|
|
21
42
|
data: {
|
|
22
43
|
date: string;
|
|
23
44
|
value: number;
|
|
45
|
+
value2: number;
|
|
46
|
+
value3: number;
|
|
24
47
|
}[];
|
|
25
48
|
iconType?: undefined;
|
|
26
49
|
} | {
|
|
27
|
-
id:
|
|
50
|
+
id: number;
|
|
28
51
|
label: string;
|
|
29
52
|
caption: string;
|
|
30
53
|
icon: string;
|
|
@@ -32,14 +55,30 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
32
55
|
data: {
|
|
33
56
|
date: string;
|
|
34
57
|
value: number;
|
|
58
|
+
value2: number;
|
|
59
|
+
value3: number;
|
|
35
60
|
}[];
|
|
36
61
|
})[];
|
|
37
62
|
export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
38
|
-
id:
|
|
63
|
+
id: number;
|
|
39
64
|
label: string;
|
|
40
65
|
data: {
|
|
41
66
|
date: string;
|
|
42
67
|
value: number;
|
|
68
|
+
value2: number;
|
|
69
|
+
value3: number;
|
|
43
70
|
}[];
|
|
44
71
|
}[];
|
|
45
72
|
export declare const generateMockData: (numSeries?: number) => any[];
|
|
73
|
+
export declare const metricOptions: {
|
|
74
|
+
id: string;
|
|
75
|
+
label: string;
|
|
76
|
+
}[];
|
|
77
|
+
export declare const breakdownsOptions: {
|
|
78
|
+
id: string;
|
|
79
|
+
label: string;
|
|
80
|
+
}[];
|
|
81
|
+
export declare const LEGEND_SORTING_OPTIONS: {
|
|
82
|
+
id: string;
|
|
83
|
+
label: string;
|
|
84
|
+
}[];
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { UseVirtualListItem } from '@vueuse/core';
|
|
3
3
|
import { IconTypes } from '../icon/v4/Icon.types';
|
|
4
|
-
import { ChartTypeRegistry, TooltipItem } from 'chart.js';
|
|
4
|
+
import { ChartDataset, ChartTypeRegistry, TooltipItem } from 'chart.js';
|
|
5
5
|
export declare enum ChartType {
|
|
6
6
|
Line = "line",
|
|
7
7
|
Bar = "bar",
|
|
8
8
|
StackedLine = "stackedLine",
|
|
9
9
|
StackedBar = "stackedBar"
|
|
10
10
|
}
|
|
11
|
+
export declare enum DateInterval {
|
|
12
|
+
DAILY = "daily",
|
|
13
|
+
WEEKLY = "weekly",
|
|
14
|
+
MONTHLY = "monthly"
|
|
15
|
+
}
|
|
11
16
|
export type ChartDataRecord = Record<string, unknown>;
|
|
12
17
|
export type ChartDataSet = {
|
|
13
18
|
id: string | number;
|
|
14
19
|
label: string;
|
|
15
20
|
data: ChartDataRecord[];
|
|
16
21
|
caption?: string;
|
|
17
|
-
color?:
|
|
22
|
+
color?: HexColor;
|
|
18
23
|
icon?: string;
|
|
19
24
|
iconType?: IconTypes;
|
|
25
|
+
countryFlag?: string;
|
|
26
|
+
image?: string;
|
|
20
27
|
};
|
|
21
28
|
export type ChartParsingConfig = {
|
|
22
29
|
xAxisKey: string;
|
|
@@ -32,10 +39,7 @@ export type LegendItem = {
|
|
|
32
39
|
iconType?: IconTypes;
|
|
33
40
|
};
|
|
34
41
|
export interface MyTooltipItem<T extends keyof ChartTypeRegistry = keyof ChartTypeRegistry> extends TooltipItem<T> {
|
|
35
|
-
dataset:
|
|
36
|
-
icon?: string;
|
|
37
|
-
iconType?: IconTypes;
|
|
38
|
-
} & TooltipItem<T>['dataset'];
|
|
42
|
+
dataset: ChartDataSet & TooltipItem<T>['dataset'];
|
|
39
43
|
}
|
|
40
44
|
export type UseVirtualListResult = {
|
|
41
45
|
list: Ref<UseVirtualListItem<LegendItem>[]>;
|
|
@@ -55,3 +59,30 @@ export type DropdownTypeOption = {
|
|
|
55
59
|
id: ChartType;
|
|
56
60
|
name: string;
|
|
57
61
|
};
|
|
62
|
+
export type UseChartHeightArgs = {
|
|
63
|
+
chartPlanesCount: Ref<number>;
|
|
64
|
+
useFullHeight: boolean;
|
|
65
|
+
bottomSpacing?: number;
|
|
66
|
+
};
|
|
67
|
+
export type HexColor = `#${string}`;
|
|
68
|
+
export type DataSetConfig = ChartDataset<'line'> & ChartDataSet;
|
|
69
|
+
export interface Font {
|
|
70
|
+
size: number;
|
|
71
|
+
weight: number;
|
|
72
|
+
family: string;
|
|
73
|
+
}
|
|
74
|
+
export type PrepareTicksLabelArgs = {
|
|
75
|
+
label: string;
|
|
76
|
+
format: ValueFormat;
|
|
77
|
+
availableSpace: number;
|
|
78
|
+
truncate?: boolean;
|
|
79
|
+
};
|
|
80
|
+
export declare enum TooltipOrder {
|
|
81
|
+
Legend = "legend",
|
|
82
|
+
YAxis = "yAxis"
|
|
83
|
+
}
|
|
84
|
+
export declare enum TrendDirection {
|
|
85
|
+
UP = "up",
|
|
86
|
+
DOWN = "down",
|
|
87
|
+
NEUTRAL = "right"
|
|
88
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e = /* @__PURE__ */ ((L) => (L.Line = "line", L.Bar = "bar", L.StackedLine = "stackedLine", L.StackedBar = "stackedBar", L))(e || {}), r = /* @__PURE__ */ ((L) => (L.DAILY = "daily", L.WEEKLY = "weekly", L.MONTHLY = "monthly", L))(r || {}), a = /* @__PURE__ */ ((L) => (L.Legend = "legend", L.YAxis = "yAxis", L))(a || {}), n = /* @__PURE__ */ ((L) => (L.UP = "up", L.DOWN = "down", L.NEUTRAL = "right", L))(n || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as ChartType,
|
|
4
|
+
r as DateInterval,
|
|
5
|
+
a as TooltipOrder,
|
|
6
|
+
n as TrendDirection
|
|
4
7
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const _ = [
|
|
2
|
+
"borderColor",
|
|
3
|
+
"backgroundColor",
|
|
4
|
+
"pointBackgroundColor",
|
|
5
|
+
"pointHoverBorderColor"
|
|
6
|
+
], l = (o) => {
|
|
7
|
+
_.forEach((r) => {
|
|
8
|
+
o[`___${r}`] = o[r];
|
|
9
|
+
});
|
|
10
|
+
}, n = (o) => {
|
|
11
|
+
_.forEach((r) => {
|
|
12
|
+
o[`___${r}`] && (o[r] = o[`___${r}`], delete o[`___${r}`]);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
n as restoreOriginalDatasetColors,
|
|
17
|
+
l as storeOriginalDatasetColors
|
|
18
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ValueFormat } from '@/components/chart/types';
|
|
1
|
+
import { PrepareTicksLabelArgs, ValueFormat } from '@/components/chart/types';
|
|
2
2
|
export declare const calcStepSize: (min: number, max: number, tickCount: number) => number;
|
|
3
|
-
export declare const formatValue: (value: number | string, valueFormat: ValueFormat) => string;
|
|
3
|
+
export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat) => string;
|
|
4
|
+
export declare const prepareTickLabel: ({ label, format, availableSpace, truncate, }: PrepareTicksLabelArgs) => string | string[];
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import { format as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { format as f } from "date-fns";
|
|
2
|
+
import { TICK_LABEL_FONT as c } from "../consts.js";
|
|
3
|
+
import { nFormatter as d } from "../../../utils/formatNumbers.js";
|
|
4
|
+
import { truncateTextToFit as E } from "../../../utils/text.js";
|
|
5
|
+
import { REGEX_LINEBREAK as i } from "../../../consts/regex.js";
|
|
6
|
+
const g = (r, t, e) => {
|
|
4
7
|
if (e === 0)
|
|
5
8
|
return 0;
|
|
6
|
-
const
|
|
7
|
-
return (
|
|
8
|
-
},
|
|
9
|
+
const n = t - r, o = n / e * 0.4;
|
|
10
|
+
return (n + o) / e;
|
|
11
|
+
}, a = (r, t) => t === "day" ? f(new Date(r), "EEEE") : t === "number" ? d(r) : t === "date" ? f(new Date(r), "MMM dd") : t === "dateLong" ? f(new Date(r), "MMM dd, yyyy") : String(r), w = ({
|
|
12
|
+
label: r,
|
|
13
|
+
format: t,
|
|
14
|
+
availableSpace: e,
|
|
15
|
+
truncate: n = !1
|
|
16
|
+
}) => {
|
|
17
|
+
const s = i.test(r), o = (p) => {
|
|
18
|
+
const m = a(p, t);
|
|
19
|
+
return n && e > 0 ? E(m, c, e) : m;
|
|
20
|
+
};
|
|
21
|
+
return s ? r.split(i).map(o) : o(r);
|
|
22
|
+
};
|
|
9
23
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
24
|
+
g as calcStepSize,
|
|
25
|
+
a as formatValue,
|
|
26
|
+
w as prepareTickLabel
|
|
12
27
|
};
|
|
@@ -2,7 +2,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
2
2
|
isChecked: boolean;
|
|
3
3
|
isIndeterminate?: boolean;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "sm" | "lg";
|
|
6
6
|
label?: string;
|
|
7
7
|
testId?: string;
|
|
8
8
|
}>, {
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
isChecked: boolean;
|
|
17
17
|
isIndeterminate?: boolean;
|
|
18
18
|
disabled?: boolean;
|
|
19
|
-
size?: "
|
|
19
|
+
size?: "md" | "sm" | "lg";
|
|
20
20
|
label?: string;
|
|
21
21
|
testId?: string;
|
|
22
22
|
}>, {
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
}, {
|
|
30
30
|
label: string;
|
|
31
31
|
testId: string;
|
|
32
|
-
size: "
|
|
32
|
+
size: "md" | "sm" | "lg";
|
|
33
33
|
}>, {
|
|
34
34
|
default?(_: {}): any;
|
|
35
35
|
}>;
|
|
@@ -5,7 +5,7 @@ declare const CheckboxTypes: () => ({
|
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
label: string;
|
|
7
7
|
testId: string;
|
|
8
|
-
size: "
|
|
8
|
+
size: "md" | "sm" | "lg";
|
|
9
9
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
10
10
|
label: {
|
|
11
11
|
type: import("vue").PropType<string>;
|
|
@@ -19,7 +19,7 @@ declare const CheckboxTypes: () => ({
|
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
20
20
|
};
|
|
21
21
|
size: {
|
|
22
|
-
type: import("vue").PropType<"
|
|
22
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
isIndeterminate: {
|
|
@@ -59,7 +59,7 @@ declare const CheckboxTypes: () => ({
|
|
|
59
59
|
type: import("vue").PropType<boolean>;
|
|
60
60
|
};
|
|
61
61
|
size: {
|
|
62
|
-
type: import("vue").PropType<"
|
|
62
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
isIndeterminate: {
|
|
@@ -78,7 +78,7 @@ declare const CheckboxTypes: () => ({
|
|
|
78
78
|
}, string, {
|
|
79
79
|
label: string;
|
|
80
80
|
testId: string;
|
|
81
|
-
size: "
|
|
81
|
+
size: "md" | "sm" | "lg";
|
|
82
82
|
}, {}, string> & {
|
|
83
83
|
beforeCreate?: (() => void) | (() => void)[];
|
|
84
84
|
created?: (() => void) | (() => void)[];
|
|
@@ -112,7 +112,7 @@ declare const CheckboxTypes: () => ({
|
|
|
112
112
|
type: import("vue").PropType<boolean>;
|
|
113
113
|
};
|
|
114
114
|
size: {
|
|
115
|
-
type: import("vue").PropType<"
|
|
115
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
116
116
|
default: string;
|
|
117
117
|
};
|
|
118
118
|
isIndeterminate: {
|
|
@@ -142,7 +142,7 @@ declare const CheckboxTypes: () => ({
|
|
|
142
142
|
type: import("vue").PropType<boolean>;
|
|
143
143
|
};
|
|
144
144
|
size: {
|
|
145
|
-
type: import("vue").PropType<"
|
|
145
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
146
146
|
default: string;
|
|
147
147
|
};
|
|
148
148
|
isIndeterminate: {
|
|
@@ -161,7 +161,7 @@ declare const CheckboxTypes: () => ({
|
|
|
161
161
|
}, string, {
|
|
162
162
|
label: string;
|
|
163
163
|
testId: string;
|
|
164
|
-
size: "
|
|
164
|
+
size: "md" | "sm" | "lg";
|
|
165
165
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
166
166
|
$slots: {
|
|
167
167
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./DateRangeV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DateRangeV4.
|
|
4
|
-
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a849128a"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DateRangeV4.
|
|
1
|
+
import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css"; import { defineComponent as J, watch as Q, openBlock as n, createElementBlock as s, unref as e, normalizeClass as r, createElementVNode as d, renderSlot as x, createVNode as i, withDirectives as v, Fragment as k, renderList as C, withCtx as l, createTextVNode as m, toDisplayString as g, createCommentVNode as E, vShow as $, normalizeStyle as X, setBlockTracking as R } from "vue";
|
|
2
2
|
import Z from "./CalendarMonthV4.vue.js";
|
|
3
3
|
import { typeToName as _, messagePerType as ee } from "../common/consts.common.js";
|
|
4
4
|
import A from "../../button/v4/ButtonV4.vue.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Reason } from '@/components/dialog/common/Reason';
|
|
2
|
+
import { ButtonColor } from '@/components/button/common/consts';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
modelValue: boolean;
|
|
4
5
|
content?: string;
|
|
@@ -18,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
19
|
showFooter?: boolean;
|
|
19
20
|
saveButtonLabel?: string;
|
|
20
21
|
saveButtonLoading?: boolean;
|
|
21
|
-
saveButtonColor?:
|
|
22
|
+
saveButtonColor?: ButtonColor;
|
|
22
23
|
cancelButtonLabel?: string;
|
|
23
24
|
cancelButtonColor?: string;
|
|
24
25
|
testId?: string;
|
|
@@ -71,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
71
72
|
showFooter?: boolean;
|
|
72
73
|
saveButtonLabel?: string;
|
|
73
74
|
saveButtonLoading?: boolean;
|
|
74
|
-
saveButtonColor?:
|
|
75
|
+
saveButtonColor?: ButtonColor;
|
|
75
76
|
cancelButtonLabel?: string;
|
|
76
77
|
cancelButtonColor?: string;
|
|
77
78
|
testId?: string;
|
|
@@ -124,7 +125,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
124
125
|
showFooter: boolean;
|
|
125
126
|
saveButtonLabel: string;
|
|
126
127
|
saveButtonLoading: boolean;
|
|
127
|
-
saveButtonColor:
|
|
128
|
+
saveButtonColor: ButtonColor;
|
|
128
129
|
cancelButtonLabel: string;
|
|
129
130
|
cancelButtonColor: string;
|
|
130
131
|
noPadding: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DialogV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DialogV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-eb226e31"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DialogV4.
|
|
1
|
+
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css"; import { defineComponent as L, openBlock as o, createBlock as u, Teleport as E, createVNode as A, Transition as P, withCtx as i, unref as t, createElementBlock as m, createElementVNode as y, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as l } from "vue";
|
|
2
2
|
import { NOOP as I } from "@vue/shared";
|
|
3
3
|
import b from "../../typography/v4/Typography.vue.js";
|
|
4
4
|
import O from "../../button/v4/ButtonV4.vue.js";
|
|
@@ -22,7 +22,7 @@ declare const DialogTypes: () => ({
|
|
|
22
22
|
showFooter: boolean;
|
|
23
23
|
saveButtonLabel: string;
|
|
24
24
|
saveButtonLoading: boolean;
|
|
25
|
-
saveButtonColor:
|
|
25
|
+
saveButtonColor: import("../../button/common/consts").ButtonColor;
|
|
26
26
|
cancelButtonLabel: string;
|
|
27
27
|
cancelButtonColor: string;
|
|
28
28
|
noPadding: boolean;
|
|
@@ -104,7 +104,7 @@ declare const DialogTypes: () => ({
|
|
|
104
104
|
default: boolean;
|
|
105
105
|
};
|
|
106
106
|
saveButtonColor: {
|
|
107
|
-
type: import("vue").PropType<
|
|
107
|
+
type: import("vue").PropType<import("../../button/common/consts").ButtonColor>;
|
|
108
108
|
default: string;
|
|
109
109
|
};
|
|
110
110
|
cancelButtonLabel: {
|
|
@@ -217,7 +217,7 @@ declare const DialogTypes: () => ({
|
|
|
217
217
|
default: boolean;
|
|
218
218
|
};
|
|
219
219
|
saveButtonColor: {
|
|
220
|
-
type: import("vue").PropType<
|
|
220
|
+
type: import("vue").PropType<import("../../button/common/consts").ButtonColor>;
|
|
221
221
|
default: string;
|
|
222
222
|
};
|
|
223
223
|
cancelButtonLabel: {
|
|
@@ -263,7 +263,7 @@ declare const DialogTypes: () => ({
|
|
|
263
263
|
showFooter: boolean;
|
|
264
264
|
saveButtonLabel: string;
|
|
265
265
|
saveButtonLoading: boolean;
|
|
266
|
-
saveButtonColor:
|
|
266
|
+
saveButtonColor: import("../../button/common/consts").ButtonColor;
|
|
267
267
|
cancelButtonLabel: string;
|
|
268
268
|
cancelButtonColor: string;
|
|
269
269
|
noPadding: boolean;
|
|
@@ -365,7 +365,7 @@ declare const DialogTypes: () => ({
|
|
|
365
365
|
default: boolean;
|
|
366
366
|
};
|
|
367
367
|
saveButtonColor: {
|
|
368
|
-
type: import("vue").PropType<
|
|
368
|
+
type: import("vue").PropType<import("../../button/common/consts").ButtonColor>;
|
|
369
369
|
default: string;
|
|
370
370
|
};
|
|
371
371
|
cancelButtonLabel: {
|
|
@@ -468,7 +468,7 @@ declare const DialogTypes: () => ({
|
|
|
468
468
|
default: boolean;
|
|
469
469
|
};
|
|
470
470
|
saveButtonColor: {
|
|
471
|
-
type: import("vue").PropType<
|
|
471
|
+
type: import("vue").PropType<import("../../button/common/consts").ButtonColor>;
|
|
472
472
|
default: string;
|
|
473
473
|
};
|
|
474
474
|
cancelButtonLabel: {
|
|
@@ -514,7 +514,7 @@ declare const DialogTypes: () => ({
|
|
|
514
514
|
showFooter: boolean;
|
|
515
515
|
saveButtonLabel: string;
|
|
516
516
|
saveButtonLoading: boolean;
|
|
517
|
-
saveButtonColor:
|
|
517
|
+
saveButtonColor: import("../../button/common/consts").ButtonColor;
|
|
518
518
|
cancelButtonLabel: string;
|
|
519
519
|
cancelButtonColor: string;
|
|
520
520
|
noPadding: boolean;
|