@ironsource/shared-ui 2.1.12-test.98 → 2.1.12
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_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +21 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +130 -114
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +43 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +15 -0
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +173 -156
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +39 -35
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +26 -26
- package/components/chart/colorPalette.d.ts +2 -1
- package/components/chart/colorPalette.js +47 -33
- package/components/chart/composables/useColorsMap.d.ts +3 -1
- package/components/chart/composables/useColorsMap.js +32 -30
- package/components/chart/consts.d.ts +5 -1
- package/components/chart/consts.js +30 -26
- package/components/chart/index.d.ts +77 -1
- package/components/chart/mockData.d.ts +15 -0
- package/components/chart/types.d.ts +3 -1
- package/components/chart/types.js +5 -5
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +20 -14
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dateRange/common/DateRange.common.js +60 -60
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +157 -157
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +81 -3
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/components/link/Link.vue.d.ts +95 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +65 -0
- package/components/link/index.d.ts +296 -0
- package/components/link/index.js +6 -0
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +5 -5
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +12 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +111 -113
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +77 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +12 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +273 -268
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +84 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
- package/components/table/v4/index.d.ts +646 -332
- package/components/table/v4/index.js +11 -5
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +2675 -1649
- package/index.js +137 -121
- package/package.json +18 -1
- package/testids/index.d.ts +47 -1
- package/testids/index.js +40 -32
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -3,13 +3,13 @@ import { useToggle as fe } from "../../../composables/useToggle.js";
|
|
|
3
3
|
import { ref as r, computed as b, onMounted as de, onBeforeMount as ce, onUnmounted as ve, watch as Q } from "vue";
|
|
4
4
|
import { min as me, addDays as ge, format as X } from "date-fns";
|
|
5
5
|
import { presetsList as he, formatError as De, mandatoryValuesError as Me, navigatePrev as Z, navigateNext as V } from "./consts.common.js";
|
|
6
|
-
import
|
|
6
|
+
import d from "./DateServices.common.js";
|
|
7
7
|
const pe = (o, y) => {
|
|
8
|
-
const N = r(null),
|
|
8
|
+
const N = r(null), c = r({ started: !1, date: null }), x = r(!1), _ = 2, T = r({ from: null, to: null }), u = r({}), g = r([]), k = r(null), i = r({}), p = r({}), E = r(!1), w = r(null), s = r(null), j = r("left"), P = r(null), O = r(null), C = r([]), K = r(null), [D] = fe({ initialValue: !1 }), q = r(null);
|
|
9
9
|
ie(q, () => {
|
|
10
10
|
D.value = !1;
|
|
11
11
|
});
|
|
12
|
-
const
|
|
12
|
+
const U = (e, t) => {
|
|
13
13
|
const a = {
|
|
14
14
|
weeks: [],
|
|
15
15
|
days: {},
|
|
@@ -17,20 +17,20 @@ const pe = (o, y) => {
|
|
|
17
17
|
year: t
|
|
18
18
|
};
|
|
19
19
|
let n, l;
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
const f =
|
|
20
|
+
const v = new Date(t, e, 1).getDay();
|
|
21
|
+
let m = 1;
|
|
22
|
+
const f = d.getCurrentTimeUTC();
|
|
23
23
|
f.setHours(0, 0, 0, 0);
|
|
24
|
-
const ue =
|
|
24
|
+
const ue = d.daysInMonth(e, t);
|
|
25
25
|
for (let I = 0; I < 6; I++) {
|
|
26
26
|
l = [];
|
|
27
27
|
for (let H = 0; H < 7; H++)
|
|
28
|
-
n = {}, I === 0 &&
|
|
28
|
+
n = {}, I === 0 && v > 0 && H < v && (n.value = 0), m > ue && (n.value = 0), !n.value && n.value !== 0 && (n.value = m, m += 1, a.days[n.value] = n, n.date = new Date(t, e, n.value), f < n.date ? n.isFuture = !0 : n.date.getTime() === f.getTime() && (n.isToday = !0, o.includeToday || (n.disabled = !0))), l.push(n);
|
|
29
29
|
a.weeks.push(l);
|
|
30
30
|
}
|
|
31
31
|
return a;
|
|
32
|
-
},
|
|
33
|
-
let e =
|
|
32
|
+
}, S = () => {
|
|
33
|
+
let e = d.getCurrentTimeUTC();
|
|
34
34
|
if (s.value && s.value.toEnd ? e = s.value.toEnd : o.range && o.range.to && (e = o.range.to), !u.value[`${e.getFullYear().toString()}_${e.getMonth().toString()}`]) {
|
|
35
35
|
u.value = {}, g.value = [];
|
|
36
36
|
for (let t = 0; t < _; t++) {
|
|
@@ -38,7 +38,7 @@ const pe = (o, y) => {
|
|
|
38
38
|
a.setDate(1), a.setMonth(e.getMonth() - t);
|
|
39
39
|
const n = `${a.getFullYear().toString()}_${a.getMonth().toString()}`;
|
|
40
40
|
u.value[n] = {
|
|
41
|
-
parsedMonth:
|
|
41
|
+
parsedMonth: U(
|
|
42
42
|
a.getMonth(),
|
|
43
43
|
a.getFullYear()
|
|
44
44
|
),
|
|
@@ -49,28 +49,28 @@ const pe = (o, y) => {
|
|
|
49
49
|
}, z = (e, t) => {
|
|
50
50
|
w.value = e;
|
|
51
51
|
let a = e;
|
|
52
|
-
e === "date" && (a = o.datePresetList),
|
|
52
|
+
e === "date" && (a = o.datePresetList), C.value = he[a], t && (s.value = {
|
|
53
53
|
fromStart: null,
|
|
54
54
|
fromEnd: null,
|
|
55
55
|
toStart: null,
|
|
56
56
|
toEnd: null
|
|
57
|
-
},
|
|
57
|
+
}, T.value.from = "", T.value.to = "", c.value = { started: !1, date: null }, i.value = "custom"), y("rangeTypeChanged", w.value);
|
|
58
58
|
}, ee = (e) => {
|
|
59
|
-
i.value = e.id, M(k.value[e.id].dates()),
|
|
59
|
+
i.value = e.id, M(k.value[e.id].dates()), S();
|
|
60
60
|
}, M = (e, t = !1) => {
|
|
61
61
|
let a = e;
|
|
62
|
-
return !e.from && !e.to && e.preset ? a = k.value[e.preset]?.dates() : (!e || !e.from && !e.to) && (a = k.value[
|
|
62
|
+
return !e.from && !e.to && e.preset ? a = k.value[e.preset]?.dates() : (!e || !e.from && !e.to) && (a = k.value[C.value[0]]), o.maxDaysInRange && (K.value = t ? ge(a.from, o.maxDaysInRange) : null), E.value = !1, !a.from || !a.to || !(a.from instanceof Date) || !(a.to instanceof Date) ? (O.value = De, E.value = !0, !1) : a.from > a.to ? (O.value = `"From" date can't be bigger than "To" date`, E.value = !0, !1) : (s.value = R(a), T.value.from = X(
|
|
63
63
|
s.value.fromStart,
|
|
64
64
|
o.dateFormat
|
|
65
|
-
),
|
|
65
|
+
), T.value.to = X(s.value.toEnd, o.dateFormat), !0);
|
|
66
66
|
}, F = () => {
|
|
67
|
-
i.value === "custom" ? P.value =
|
|
67
|
+
i.value === "custom" ? P.value = d.getDateRangeString(s.value) : P.value = J.value, y("currentDateChanged", P.value);
|
|
68
68
|
}, te = () => {
|
|
69
69
|
if (s.value.fromStart == null || s.value.toEnd == null) {
|
|
70
|
-
|
|
70
|
+
E.value = !0, O.value = Me;
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
const e =
|
|
73
|
+
const e = d.getCurrentTimeUTC();
|
|
74
74
|
s.value.toEnd > e && (s.value.toEnd = e), F(), p.value = i.value, y("rangeChanged", {
|
|
75
75
|
from: s.value.fromStart,
|
|
76
76
|
to: s.value.toEnd,
|
|
@@ -79,29 +79,29 @@ const pe = (o, y) => {
|
|
|
79
79
|
}, ae = (e, t) => e ? Z : t ? V : null, ne = (e) => {
|
|
80
80
|
let t = null, a = null;
|
|
81
81
|
const n = _ - 1;
|
|
82
|
-
let l = "", h = null,
|
|
82
|
+
let l = "", h = null, v = null;
|
|
83
83
|
switch (e) {
|
|
84
84
|
case V:
|
|
85
|
-
Object.keys(u.value).forEach((
|
|
86
|
-
const f = u.value[
|
|
85
|
+
Object.keys(u.value).forEach((m) => {
|
|
86
|
+
const f = u.value[m];
|
|
87
87
|
f.order === 0 && (h = f), f.order === n ? (g.value.splice(
|
|
88
|
-
g.value.indexOf(
|
|
88
|
+
g.value.indexOf(m),
|
|
89
89
|
1
|
|
90
|
-
), delete u.value[
|
|
90
|
+
), delete u.value[m]) : f.order += 1;
|
|
91
91
|
}), t = h.parsedMonth.month + 1, a = h.parsedMonth.year, t > 11 && (t = 0, a += 1), l = `${a.toString()}_${t.toString()}`, u.value[l] = {
|
|
92
|
-
parsedMonth:
|
|
92
|
+
parsedMonth: U(t, a),
|
|
93
93
|
order: 0
|
|
94
94
|
}, g.value.push(l);
|
|
95
95
|
break;
|
|
96
96
|
case Z:
|
|
97
|
-
Object.keys(u.value).forEach((
|
|
98
|
-
const f = u.value[
|
|
99
|
-
f.order === n && (
|
|
100
|
-
g.value.indexOf(
|
|
97
|
+
Object.keys(u.value).forEach((m) => {
|
|
98
|
+
const f = u.value[m];
|
|
99
|
+
f.order === n && (v = f), f.order === 0 ? (g.value.splice(
|
|
100
|
+
g.value.indexOf(m),
|
|
101
101
|
1
|
|
102
|
-
), delete u.value[
|
|
103
|
-
}), t =
|
|
104
|
-
parsedMonth:
|
|
102
|
+
), delete u.value[m]) : f.order -= 1;
|
|
103
|
+
}), t = v.parsedMonth.month - 1, a = v.parsedMonth.year, t < 0 && (t = 11, a -= 1), l = `${a.toString()}_${t.toString()}`, u.value[l] = {
|
|
104
|
+
parsedMonth: U(t, a),
|
|
105
105
|
order: n
|
|
106
106
|
}, g.value.unshift(l);
|
|
107
107
|
break;
|
|
@@ -111,10 +111,10 @@ const pe = (o, y) => {
|
|
|
111
111
|
switch (w.value) {
|
|
112
112
|
case "week":
|
|
113
113
|
t = {
|
|
114
|
-
fromStart:
|
|
115
|
-
fromEnd:
|
|
116
|
-
toStart:
|
|
117
|
-
toEnd:
|
|
114
|
+
fromStart: d.getFirstDayOfWeek(e.from),
|
|
115
|
+
fromEnd: d.getLastDayOfWeek(e.from),
|
|
116
|
+
toStart: d.getFirstDayOfWeek(e.to),
|
|
117
|
+
toEnd: d.getLastDayOfWeek(e.to)
|
|
118
118
|
};
|
|
119
119
|
break;
|
|
120
120
|
case "month":
|
|
@@ -124,13 +124,13 @@ const pe = (o, y) => {
|
|
|
124
124
|
e.from.getMonth(),
|
|
125
125
|
1
|
|
126
126
|
),
|
|
127
|
-
fromEnd:
|
|
127
|
+
fromEnd: d.getLastDayOfMonth(e.from),
|
|
128
128
|
toStart: new Date(
|
|
129
129
|
e.to.getFullYear(),
|
|
130
130
|
e.to.getMonth(),
|
|
131
131
|
1
|
|
132
132
|
),
|
|
133
|
-
toEnd:
|
|
133
|
+
toEnd: d.getLastDayOfMonth(e.to)
|
|
134
134
|
};
|
|
135
135
|
break;
|
|
136
136
|
case "date":
|
|
@@ -144,10 +144,10 @@ const pe = (o, y) => {
|
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
146
|
return t;
|
|
147
|
-
},
|
|
147
|
+
}, L = (e, t) => e.getUTCFullYear() === t.getUTCFullYear() && e.getUTCMonth() === t.getUTCMonth() && e.getUTCDate() === t.getUTCDate(), $ = (e) => {
|
|
148
148
|
let t = !1;
|
|
149
149
|
if (!e.from && !e.to && e.preset) {
|
|
150
|
-
const l =
|
|
150
|
+
const l = C.value.find(
|
|
151
151
|
(h) => h.id === e.preset
|
|
152
152
|
);
|
|
153
153
|
i.value = l.id, t = !0;
|
|
@@ -157,15 +157,15 @@ const pe = (o, y) => {
|
|
|
157
157
|
to: new Date(e.to)
|
|
158
158
|
};
|
|
159
159
|
a.from.setHours(0, 0, 0, 0), a.to.setHours(0, 0, 0, 0);
|
|
160
|
-
const n =
|
|
160
|
+
const n = C.value.map((l) => l.id);
|
|
161
161
|
if (Object.keys(k.value).forEach((l) => {
|
|
162
162
|
const h = k.value[l];
|
|
163
163
|
if (l !== "custom" && !t && n.indexOf(l) !== -1) {
|
|
164
|
-
const
|
|
165
|
-
|
|
164
|
+
const v = h.dates();
|
|
165
|
+
v.from.setHours(0, 0, 0, 0), v.to.setHours(0, 0, 0, 0), L(v.from, a.from) && L(v.to, a.to) && (i.value = l, t = !0);
|
|
166
166
|
}
|
|
167
167
|
}), t) {
|
|
168
|
-
const l =
|
|
168
|
+
const l = C.value.find(
|
|
169
169
|
(h) => h.id === i.value
|
|
170
170
|
);
|
|
171
171
|
y("dateRangePresetNameChanged", l.name);
|
|
@@ -173,24 +173,24 @@ const pe = (o, y) => {
|
|
|
173
173
|
y("dateRangePresetNameChanged", null), i.value = "custom";
|
|
174
174
|
p.value = i.value;
|
|
175
175
|
}, A = (e, t, a) => {
|
|
176
|
-
if (!
|
|
177
|
-
i.value = "custom",
|
|
178
|
-
{ from:
|
|
176
|
+
if (!c.value.started)
|
|
177
|
+
i.value = "custom", c.value.started = !0, c.value.date = new Date(a, t, e.value), M(
|
|
178
|
+
{ from: c.value.date, to: c.value.date },
|
|
179
179
|
!0
|
|
180
180
|
);
|
|
181
181
|
else {
|
|
182
|
-
const n = new Date(a, t, e.value), l =
|
|
183
|
-
|
|
182
|
+
const n = new Date(a, t, e.value), l = c.value.date;
|
|
183
|
+
c.value.started = !1, c.value.date = null, n < l ? A(e, t, a) : M({ from: l, to: n });
|
|
184
184
|
}
|
|
185
185
|
}, B = () => {
|
|
186
186
|
const e = N.value.offsetLeft;
|
|
187
187
|
return window.innerWidth - e > 930 ? "left" : "right";
|
|
188
188
|
}, W = (e = !0) => {
|
|
189
|
-
D.value = !D.value, D.value ? (j.value = B(), M(o.range),
|
|
189
|
+
D.value = !D.value, D.value ? (j.value = B(), M(o.range), S(), y("opened")) : (M(o.range), S(), i.value = p.value, e && y("dismissed"));
|
|
190
190
|
}, G = () => {
|
|
191
191
|
D.value && W();
|
|
192
192
|
}, le = () => {
|
|
193
|
-
k.value =
|
|
193
|
+
k.value = d.getPresetsFunctions(o.includeToday), k.value.custom = {
|
|
194
194
|
dates: () => o.range
|
|
195
195
|
};
|
|
196
196
|
}, oe = b(() => (g.value || []).reduce((e, t) => {
|
|
@@ -199,7 +199,7 @@ const pe = (o, y) => {
|
|
|
199
199
|
).length;
|
|
200
200
|
return e && !n;
|
|
201
201
|
}, !0)), Y = () => {
|
|
202
|
-
o.range && (x.value = !0, z(o.initialType || o.types[0]), le(), $(o.range), M(o.range),
|
|
202
|
+
o.range && (x.value = !0, z(o.initialType || o.types[0]), le(), $(o.range), M(o.range), S(), F());
|
|
203
203
|
};
|
|
204
204
|
de(() => {
|
|
205
205
|
Y();
|
|
@@ -216,10 +216,10 @@ const pe = (o, y) => {
|
|
|
216
216
|
e && e !== t && (x.value ? ($(e), M(e), F()) : Y());
|
|
217
217
|
}
|
|
218
218
|
), Q(D, (e) => {
|
|
219
|
-
e || (
|
|
219
|
+
e || (c.value.started = !1);
|
|
220
220
|
});
|
|
221
221
|
const J = b(() => {
|
|
222
|
-
const e =
|
|
222
|
+
const e = C.value.find(
|
|
223
223
|
(t) => t.id === i.value
|
|
224
224
|
);
|
|
225
225
|
return e ? e.name : "";
|
|
@@ -233,21 +233,21 @@ const pe = (o, y) => {
|
|
|
233
233
|
getMaxAllowedDate: se,
|
|
234
234
|
selectedPresetName: J,
|
|
235
235
|
selectedPreset: i,
|
|
236
|
-
displayError:
|
|
236
|
+
displayError: E,
|
|
237
237
|
rangeType: w,
|
|
238
238
|
selectedRange: s,
|
|
239
239
|
placement: j,
|
|
240
240
|
currentDate: P,
|
|
241
241
|
error: O,
|
|
242
|
-
presets:
|
|
242
|
+
presets: C,
|
|
243
243
|
isOpen: D,
|
|
244
244
|
popup: q,
|
|
245
|
-
selectionStart:
|
|
245
|
+
selectionStart: c,
|
|
246
246
|
initialized: x,
|
|
247
|
-
textDates:
|
|
247
|
+
textDates: T,
|
|
248
248
|
currentMonths: u,
|
|
249
249
|
displayedMonthsKeys: g,
|
|
250
|
-
initMonths:
|
|
250
|
+
initMonths: S,
|
|
251
251
|
changeType: z,
|
|
252
252
|
presetChanged: ee,
|
|
253
253
|
initRange: M,
|
|
@@ -256,7 +256,7 @@ const pe = (o, y) => {
|
|
|
256
256
|
getNavigation: ae,
|
|
257
257
|
navigationCallback: ne,
|
|
258
258
|
getSelectedRangeByType: R,
|
|
259
|
-
compareDates:
|
|
259
|
+
compareDates: L,
|
|
260
260
|
determinePreset: $,
|
|
261
261
|
selectionChanged: A,
|
|
262
262
|
checkPlacement: B,
|
|
@@ -75,15 +75,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
75
75
|
testId: string;
|
|
76
76
|
width: string | number;
|
|
77
77
|
content: string;
|
|
78
|
+
showCloseButton: boolean;
|
|
78
79
|
appendToBody: boolean;
|
|
80
|
+
showBackdrop: boolean;
|
|
79
81
|
closeDelay: number;
|
|
80
82
|
openDelay: number;
|
|
81
83
|
escapeToClose: boolean;
|
|
82
|
-
showBackdrop: boolean;
|
|
83
|
-
headerBorder: boolean;
|
|
84
84
|
closeOnClickOutside: boolean;
|
|
85
85
|
beforeClose: (show: () => void) => void;
|
|
86
|
-
|
|
86
|
+
headerBorder: boolean;
|
|
87
87
|
}>, {
|
|
88
88
|
header?(_: {}): any;
|
|
89
89
|
default?(_: {}): any;
|
|
@@ -8,15 +8,15 @@ declare const DialogTypes: () => ({
|
|
|
8
8
|
testId: string;
|
|
9
9
|
width: string | number;
|
|
10
10
|
content: string;
|
|
11
|
+
showCloseButton: boolean;
|
|
11
12
|
appendToBody: boolean;
|
|
13
|
+
showBackdrop: boolean;
|
|
12
14
|
closeDelay: number;
|
|
13
15
|
openDelay: number;
|
|
14
16
|
escapeToClose: boolean;
|
|
15
|
-
showBackdrop: boolean;
|
|
16
|
-
headerBorder: boolean;
|
|
17
17
|
closeOnClickOutside: boolean;
|
|
18
18
|
beforeClose: (show: () => void) => void;
|
|
19
|
-
|
|
19
|
+
headerBorder: boolean;
|
|
20
20
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
title: {
|
|
22
22
|
type: import("vue").PropType<string>;
|
|
@@ -42,10 +42,18 @@ declare const DialogTypes: () => ({
|
|
|
42
42
|
type: import("vue").PropType<boolean>;
|
|
43
43
|
required: true;
|
|
44
44
|
};
|
|
45
|
+
showCloseButton: {
|
|
46
|
+
type: import("vue").PropType<boolean>;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
45
49
|
appendToBody: {
|
|
46
50
|
type: import("vue").PropType<boolean>;
|
|
47
51
|
default: boolean;
|
|
48
52
|
};
|
|
53
|
+
showBackdrop: {
|
|
54
|
+
type: import("vue").PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
49
57
|
closeDelay: {
|
|
50
58
|
type: import("vue").PropType<number>;
|
|
51
59
|
default: number;
|
|
@@ -58,14 +66,6 @@ declare const DialogTypes: () => ({
|
|
|
58
66
|
type: import("vue").PropType<boolean>;
|
|
59
67
|
default: boolean;
|
|
60
68
|
};
|
|
61
|
-
showBackdrop: {
|
|
62
|
-
type: import("vue").PropType<boolean>;
|
|
63
|
-
default: boolean;
|
|
64
|
-
};
|
|
65
|
-
headerBorder: {
|
|
66
|
-
type: import("vue").PropType<boolean>;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
69
|
closeOnClickOutside: {
|
|
70
70
|
type: import("vue").PropType<boolean>;
|
|
71
71
|
default: boolean;
|
|
@@ -74,7 +74,7 @@ declare const DialogTypes: () => ({
|
|
|
74
74
|
type: import("vue").PropType<(show: () => void) => void>;
|
|
75
75
|
default: any;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
headerBorder: {
|
|
78
78
|
type: import("vue").PropType<boolean>;
|
|
79
79
|
default: boolean;
|
|
80
80
|
};
|
|
@@ -82,7 +82,7 @@ declare const DialogTypes: () => ({
|
|
|
82
82
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
83
83
|
onClose?: (reason: import("../common/Reason").Reason) => any;
|
|
84
84
|
onOpen?: () => any;
|
|
85
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "themeClass" | "testId" | "width" | "content" | "
|
|
85
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "themeClass" | "testId" | "width" | "content" | "showCloseButton" | "appendToBody" | "showBackdrop" | "closeDelay" | "openDelay" | "escapeToClose" | "closeOnClickOutside" | "beforeClose" | "headerBorder">;
|
|
86
86
|
$attrs: {
|
|
87
87
|
[x: string]: unknown;
|
|
88
88
|
};
|
|
@@ -121,10 +121,18 @@ declare const DialogTypes: () => ({
|
|
|
121
121
|
type: import("vue").PropType<boolean>;
|
|
122
122
|
required: true;
|
|
123
123
|
};
|
|
124
|
+
showCloseButton: {
|
|
125
|
+
type: import("vue").PropType<boolean>;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
124
128
|
appendToBody: {
|
|
125
129
|
type: import("vue").PropType<boolean>;
|
|
126
130
|
default: boolean;
|
|
127
131
|
};
|
|
132
|
+
showBackdrop: {
|
|
133
|
+
type: import("vue").PropType<boolean>;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
128
136
|
closeDelay: {
|
|
129
137
|
type: import("vue").PropType<number>;
|
|
130
138
|
default: number;
|
|
@@ -137,14 +145,6 @@ declare const DialogTypes: () => ({
|
|
|
137
145
|
type: import("vue").PropType<boolean>;
|
|
138
146
|
default: boolean;
|
|
139
147
|
};
|
|
140
|
-
showBackdrop: {
|
|
141
|
-
type: import("vue").PropType<boolean>;
|
|
142
|
-
default: boolean;
|
|
143
|
-
};
|
|
144
|
-
headerBorder: {
|
|
145
|
-
type: import("vue").PropType<boolean>;
|
|
146
|
-
default: boolean;
|
|
147
|
-
};
|
|
148
148
|
closeOnClickOutside: {
|
|
149
149
|
type: import("vue").PropType<boolean>;
|
|
150
150
|
default: boolean;
|
|
@@ -153,7 +153,7 @@ declare const DialogTypes: () => ({
|
|
|
153
153
|
type: import("vue").PropType<(show: () => void) => void>;
|
|
154
154
|
default: any;
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
headerBorder: {
|
|
157
157
|
type: import("vue").PropType<boolean>;
|
|
158
158
|
default: boolean;
|
|
159
159
|
};
|
|
@@ -171,15 +171,15 @@ declare const DialogTypes: () => ({
|
|
|
171
171
|
testId: string;
|
|
172
172
|
width: string | number;
|
|
173
173
|
content: string;
|
|
174
|
+
showCloseButton: boolean;
|
|
174
175
|
appendToBody: boolean;
|
|
176
|
+
showBackdrop: boolean;
|
|
175
177
|
closeDelay: number;
|
|
176
178
|
openDelay: number;
|
|
177
179
|
escapeToClose: boolean;
|
|
178
|
-
showBackdrop: boolean;
|
|
179
|
-
headerBorder: boolean;
|
|
180
180
|
closeOnClickOutside: boolean;
|
|
181
181
|
beforeClose: (show: () => void) => void;
|
|
182
|
-
|
|
182
|
+
headerBorder: boolean;
|
|
183
183
|
}, {}, string> & {
|
|
184
184
|
beforeCreate?: (() => void) | (() => void)[];
|
|
185
185
|
created?: (() => void) | (() => void)[];
|
|
@@ -225,10 +225,18 @@ declare const DialogTypes: () => ({
|
|
|
225
225
|
type: import("vue").PropType<boolean>;
|
|
226
226
|
required: true;
|
|
227
227
|
};
|
|
228
|
+
showCloseButton: {
|
|
229
|
+
type: import("vue").PropType<boolean>;
|
|
230
|
+
default: boolean;
|
|
231
|
+
};
|
|
228
232
|
appendToBody: {
|
|
229
233
|
type: import("vue").PropType<boolean>;
|
|
230
234
|
default: boolean;
|
|
231
235
|
};
|
|
236
|
+
showBackdrop: {
|
|
237
|
+
type: import("vue").PropType<boolean>;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
232
240
|
closeDelay: {
|
|
233
241
|
type: import("vue").PropType<number>;
|
|
234
242
|
default: number;
|
|
@@ -241,14 +249,6 @@ declare const DialogTypes: () => ({
|
|
|
241
249
|
type: import("vue").PropType<boolean>;
|
|
242
250
|
default: boolean;
|
|
243
251
|
};
|
|
244
|
-
showBackdrop: {
|
|
245
|
-
type: import("vue").PropType<boolean>;
|
|
246
|
-
default: boolean;
|
|
247
|
-
};
|
|
248
|
-
headerBorder: {
|
|
249
|
-
type: import("vue").PropType<boolean>;
|
|
250
|
-
default: boolean;
|
|
251
|
-
};
|
|
252
252
|
closeOnClickOutside: {
|
|
253
253
|
type: import("vue").PropType<boolean>;
|
|
254
254
|
default: boolean;
|
|
@@ -257,7 +257,7 @@ declare const DialogTypes: () => ({
|
|
|
257
257
|
type: import("vue").PropType<(show: () => void) => void>;
|
|
258
258
|
default: any;
|
|
259
259
|
};
|
|
260
|
-
|
|
260
|
+
headerBorder: {
|
|
261
261
|
type: import("vue").PropType<boolean>;
|
|
262
262
|
default: boolean;
|
|
263
263
|
};
|
|
@@ -294,10 +294,18 @@ declare const DialogTypes: () => ({
|
|
|
294
294
|
type: import("vue").PropType<boolean>;
|
|
295
295
|
required: true;
|
|
296
296
|
};
|
|
297
|
+
showCloseButton: {
|
|
298
|
+
type: import("vue").PropType<boolean>;
|
|
299
|
+
default: boolean;
|
|
300
|
+
};
|
|
297
301
|
appendToBody: {
|
|
298
302
|
type: import("vue").PropType<boolean>;
|
|
299
303
|
default: boolean;
|
|
300
304
|
};
|
|
305
|
+
showBackdrop: {
|
|
306
|
+
type: import("vue").PropType<boolean>;
|
|
307
|
+
default: boolean;
|
|
308
|
+
};
|
|
301
309
|
closeDelay: {
|
|
302
310
|
type: import("vue").PropType<number>;
|
|
303
311
|
default: number;
|
|
@@ -310,14 +318,6 @@ declare const DialogTypes: () => ({
|
|
|
310
318
|
type: import("vue").PropType<boolean>;
|
|
311
319
|
default: boolean;
|
|
312
320
|
};
|
|
313
|
-
showBackdrop: {
|
|
314
|
-
type: import("vue").PropType<boolean>;
|
|
315
|
-
default: boolean;
|
|
316
|
-
};
|
|
317
|
-
headerBorder: {
|
|
318
|
-
type: import("vue").PropType<boolean>;
|
|
319
|
-
default: boolean;
|
|
320
|
-
};
|
|
321
321
|
closeOnClickOutside: {
|
|
322
322
|
type: import("vue").PropType<boolean>;
|
|
323
323
|
default: boolean;
|
|
@@ -326,7 +326,7 @@ declare const DialogTypes: () => ({
|
|
|
326
326
|
type: import("vue").PropType<(show: () => void) => void>;
|
|
327
327
|
default: any;
|
|
328
328
|
};
|
|
329
|
-
|
|
329
|
+
headerBorder: {
|
|
330
330
|
type: import("vue").PropType<boolean>;
|
|
331
331
|
default: boolean;
|
|
332
332
|
};
|
|
@@ -344,15 +344,15 @@ declare const DialogTypes: () => ({
|
|
|
344
344
|
testId: string;
|
|
345
345
|
width: string | number;
|
|
346
346
|
content: string;
|
|
347
|
+
showCloseButton: boolean;
|
|
347
348
|
appendToBody: boolean;
|
|
349
|
+
showBackdrop: boolean;
|
|
348
350
|
closeDelay: number;
|
|
349
351
|
openDelay: number;
|
|
350
352
|
escapeToClose: boolean;
|
|
351
|
-
showBackdrop: boolean;
|
|
352
|
-
headerBorder: boolean;
|
|
353
353
|
closeOnClickOutside: boolean;
|
|
354
354
|
beforeClose: (show: () => void) => void;
|
|
355
|
-
|
|
355
|
+
headerBorder: boolean;
|
|
356
356
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
357
357
|
$slots: {
|
|
358
358
|
header?(_: {}): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ButtonColor } from '@/components/button/common/consts';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
showCancelButton?: boolean;
|
|
4
|
+
showSaveButton?: boolean;
|
|
5
|
+
saveButtonLabel?: string;
|
|
6
|
+
saveButtonLoading?: boolean;
|
|
7
|
+
saveButtonColor?: ButtonColor;
|
|
8
|
+
cancelButtonLabel?: string;
|
|
9
|
+
cancelButtonColor?: string;
|
|
10
|
+
testId: string;
|
|
11
|
+
}>, {
|
|
12
|
+
showCancelButton: boolean;
|
|
13
|
+
showSaveButton: boolean;
|
|
14
|
+
saveButtonLabel: string;
|
|
15
|
+
saveButtonLoading: boolean;
|
|
16
|
+
saveButtonColor: string;
|
|
17
|
+
cancelButtonLabel: string;
|
|
18
|
+
cancelButtonColor: string;
|
|
19
|
+
testId: string;
|
|
20
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
save: () => void;
|
|
22
|
+
cancel: () => void;
|
|
23
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
showCancelButton?: boolean;
|
|
25
|
+
showSaveButton?: boolean;
|
|
26
|
+
saveButtonLabel?: string;
|
|
27
|
+
saveButtonLoading?: boolean;
|
|
28
|
+
saveButtonColor?: ButtonColor;
|
|
29
|
+
cancelButtonLabel?: string;
|
|
30
|
+
cancelButtonColor?: string;
|
|
31
|
+
testId: string;
|
|
32
|
+
}>, {
|
|
33
|
+
showCancelButton: boolean;
|
|
34
|
+
showSaveButton: boolean;
|
|
35
|
+
saveButtonLabel: string;
|
|
36
|
+
saveButtonLoading: boolean;
|
|
37
|
+
saveButtonColor: string;
|
|
38
|
+
cancelButtonLabel: string;
|
|
39
|
+
cancelButtonColor: string;
|
|
40
|
+
testId: string;
|
|
41
|
+
}>>> & {
|
|
42
|
+
onCancel?: () => any;
|
|
43
|
+
onSave?: () => any;
|
|
44
|
+
}, {
|
|
45
|
+
testId: string;
|
|
46
|
+
showCancelButton: boolean;
|
|
47
|
+
showSaveButton: boolean;
|
|
48
|
+
saveButtonLabel: string;
|
|
49
|
+
saveButtonLoading: boolean;
|
|
50
|
+
saveButtonColor: ButtonColor;
|
|
51
|
+
cancelButtonLabel: string;
|
|
52
|
+
cancelButtonColor: string;
|
|
53
|
+
}>, {
|
|
54
|
+
footer?(_: {}): any;
|
|
55
|
+
}>;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
59
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
60
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
61
|
+
} : {
|
|
62
|
+
type: import('vue').PropType<T[K]>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_WithDefaults<P, D> = {
|
|
67
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
68
|
+
default: D[K];
|
|
69
|
+
}> : P[K];
|
|
70
|
+
};
|
|
71
|
+
type __VLS_Prettify<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./DialogFooter.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8b7f64fe"]]);
|
|
5
|
+
export {
|
|
6
|
+
p as default
|
|
7
|
+
};
|