@ironsource/shared-ui 2.1.6-test.2 → 2.1.6-test.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
- package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +3 -3
- package/components/autocomplete/Autocomplete.vue2.js +82 -61
- package/components/autocomplete/index.d.ts +20 -1
- package/components/datePicker/common/DatePicker.common.d.ts +11 -0
- package/components/datePicker/common/DatePicker.common.js +52 -0
- package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
- package/components/datePicker/common/DatePickerMonth.common.js +66 -0
- package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
- package/components/datePicker/v3/DatePicker.vue.js +7 -0
- package/components/datePicker/v3/DatePicker.vue2.js +69 -0
- package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
- package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
- package/components/datePicker/{index.d.ts → v3/index.d.ts} +1 -1
- package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
- package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
- package/components/datePicker/v4/index.d.ts +184 -0
- package/components/dateRange/common/CalendarMonth.common.d.ts +17 -0
- package/components/dateRange/common/CalendarMonth.common.js +131 -0
- package/components/dateRange/common/DateRange.common.d.ts +47 -0
- package/components/dateRange/common/DateRange.common.js +265 -0
- package/components/dateRange/common/DateRangePicker.common.d.ts +3 -0
- package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
- package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
- package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
- package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
- package/components/dateRange/v3/DateRange.vue.js +7 -0
- package/components/dateRange/v3/DateRange.vue2.js +226 -0
- package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
- package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
- package/components/dateRange/v4/index.d.ts +408 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +21 -21
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +40 -49
- package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +140 -128
- package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +61 -44
- package/components/dropdown/v4/index.d.ts +105 -4
- package/components/filtersPanel/v3/Filter.d.ts +1 -1
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +2 -2
- package/components/input/v4/TextField.vue2.js +43 -43
- package/components/input/v4/index.d.ts +20 -1
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +21 -21
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -147
- package/components/table/v4/index.d.ts +14 -2
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/index.d.ts +338 -34
- package/index.js +4 -4
- package/package.json +3 -3
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_bf8e7ff5_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_01778240_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
- package/components/datePicker/DatePicker.vue.js +0 -7
- package/components/datePicker/DatePicker.vue2.js +0 -97
- package/components/datePicker/DatePickerMonth.vue.js +0 -7
- package/components/datePicker/DatePickerMonth.vue2.js +0 -85
- package/components/dateRange/CalendarMonth.vue.js +0 -7
- package/components/dateRange/CalendarMonth.vue2.js +0 -244
- package/components/dateRange/DateRange.vue.js +0 -7
- package/components/dateRange/DateRange.vue2.js +0 -417
- /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
- /package/components/datePicker/{index.js → v3/index.js} +0 -0
- /package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +0 -0
- /package/components/dateRange/{DateServices.js → common/DateServices.common.js} +0 -0
- /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
- /package/components/dateRange/{consts.js → common/consts.common.js} +0 -0
- /package/components/dateRange/{index.js → v3/index.js} +0 -0
|
@@ -11,6 +11,7 @@ declare const AutocompleteTypes: () => ({
|
|
|
11
11
|
testId: string;
|
|
12
12
|
hoverHelpText: string;
|
|
13
13
|
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
14
|
+
maxLength: number;
|
|
14
15
|
modelValue: string | number;
|
|
15
16
|
placeholder: string;
|
|
16
17
|
labelDirection: "top" | "inside";
|
|
@@ -58,6 +59,10 @@ declare const AutocompleteTypes: () => ({
|
|
|
58
59
|
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
59
60
|
default: string;
|
|
60
61
|
};
|
|
62
|
+
maxLength: {
|
|
63
|
+
type: import("vue").PropType<number>;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
61
66
|
modelValue: {
|
|
62
67
|
type: import("vue").PropType<string | number>;
|
|
63
68
|
default: string;
|
|
@@ -108,7 +113,7 @@ declare const AutocompleteTypes: () => ({
|
|
|
108
113
|
};
|
|
109
114
|
}>> & {
|
|
110
115
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
111
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "modelValue" | "placeholder" | "labelDirection" | "inlineError" | "inlineErrorText" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "onSearch" | "optionNameKey" | "optionsListWidth">;
|
|
116
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "labelDirection" | "inlineError" | "inlineErrorText" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "onSearch" | "optionNameKey" | "optionsListWidth">;
|
|
112
117
|
$attrs: {
|
|
113
118
|
[x: string]: unknown;
|
|
114
119
|
};
|
|
@@ -158,6 +163,10 @@ declare const AutocompleteTypes: () => ({
|
|
|
158
163
|
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
159
164
|
default: string;
|
|
160
165
|
};
|
|
166
|
+
maxLength: {
|
|
167
|
+
type: import("vue").PropType<number>;
|
|
168
|
+
default: any;
|
|
169
|
+
};
|
|
161
170
|
modelValue: {
|
|
162
171
|
type: import("vue").PropType<string | number>;
|
|
163
172
|
default: string;
|
|
@@ -218,6 +227,7 @@ declare const AutocompleteTypes: () => ({
|
|
|
218
227
|
testId: string;
|
|
219
228
|
hoverHelpText: string;
|
|
220
229
|
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
230
|
+
maxLength: number;
|
|
221
231
|
modelValue: string | number;
|
|
222
232
|
placeholder: string;
|
|
223
233
|
labelDirection: "top" | "inside";
|
|
@@ -285,6 +295,10 @@ declare const AutocompleteTypes: () => ({
|
|
|
285
295
|
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
286
296
|
default: string;
|
|
287
297
|
};
|
|
298
|
+
maxLength: {
|
|
299
|
+
type: import("vue").PropType<number>;
|
|
300
|
+
default: any;
|
|
301
|
+
};
|
|
288
302
|
modelValue: {
|
|
289
303
|
type: import("vue").PropType<string | number>;
|
|
290
304
|
default: string;
|
|
@@ -375,6 +389,10 @@ declare const AutocompleteTypes: () => ({
|
|
|
375
389
|
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
376
390
|
default: string;
|
|
377
391
|
};
|
|
392
|
+
maxLength: {
|
|
393
|
+
type: import("vue").PropType<number>;
|
|
394
|
+
default: any;
|
|
395
|
+
};
|
|
378
396
|
modelValue: {
|
|
379
397
|
type: import("vue").PropType<string | number>;
|
|
380
398
|
default: string;
|
|
@@ -435,6 +453,7 @@ declare const AutocompleteTypes: () => ({
|
|
|
435
453
|
testId: string;
|
|
436
454
|
hoverHelpText: string;
|
|
437
455
|
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
456
|
+
maxLength: number;
|
|
438
457
|
modelValue: string | number;
|
|
439
458
|
placeholder: string;
|
|
440
459
|
labelDirection: "top" | "inside";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const dataPickerCommon: (props: any, emit: any) => {
|
|
2
|
+
close: () => void;
|
|
3
|
+
handleInput: (event: Event) => void;
|
|
4
|
+
updateValue: (value: Date | null) => void;
|
|
5
|
+
toggle: (value?: boolean) => boolean;
|
|
6
|
+
isOpen: import("vue").Ref<boolean>;
|
|
7
|
+
componentId: import("vue").ComputedRef<string>;
|
|
8
|
+
formattedValue: import("vue").ComputedRef<any>;
|
|
9
|
+
nearTheEdge: import("vue").ComputedRef<boolean>;
|
|
10
|
+
valueAsDate: import("vue").ComputedRef<Date>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { onClickOutside as p } from "@vueuse/core";
|
|
2
|
+
import { ref as m, computed as a } from "vue";
|
|
3
|
+
import { useToggle as v } from "../../../composables/useToggle.js";
|
|
4
|
+
import { isValid as d, format as k, parse as F, isFuture as C } from "date-fns";
|
|
5
|
+
const T = (t, c) => {
|
|
6
|
+
const u = m(null), f = m(null), [o, s] = v({ initialValue: !1 }), l = () => {
|
|
7
|
+
s(!1);
|
|
8
|
+
}, g = (e) => {
|
|
9
|
+
const n = e.target.value;
|
|
10
|
+
if (!o) {
|
|
11
|
+
c("update:modelValue", n);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const i = F(n, t.dateFormat, /* @__PURE__ */ new Date());
|
|
15
|
+
n.trim() || r(null), d(i) && (!t.allowFutureDates && C(i) || r(i));
|
|
16
|
+
}, r = (e) => {
|
|
17
|
+
l(), c("update:modelValue", e);
|
|
18
|
+
}, V = a(() => `datePicker${t.uniqueId || Math.random().toString().substring(2, 7)}`), D = a(() => {
|
|
19
|
+
const e = new Date(t.modelValue);
|
|
20
|
+
return d(t.modelValue) ? k(e, t.dateFormat) : t.modelValue;
|
|
21
|
+
}), w = a(() => {
|
|
22
|
+
if (!u.value || !o)
|
|
23
|
+
return !1;
|
|
24
|
+
const e = u.value.getBoundingClientRect(), n = 232;
|
|
25
|
+
return window.innerWidth - (e.x + n) < 0;
|
|
26
|
+
}), h = a(() => {
|
|
27
|
+
if (!t.modelValue)
|
|
28
|
+
return null;
|
|
29
|
+
const e = new Date(t.modelValue);
|
|
30
|
+
return d(e) ? e : null;
|
|
31
|
+
});
|
|
32
|
+
return p(
|
|
33
|
+
f,
|
|
34
|
+
() => {
|
|
35
|
+
l();
|
|
36
|
+
},
|
|
37
|
+
{ ignore: [u] }
|
|
38
|
+
), {
|
|
39
|
+
close: l,
|
|
40
|
+
handleInput: g,
|
|
41
|
+
updateValue: r,
|
|
42
|
+
toggle: s,
|
|
43
|
+
isOpen: o,
|
|
44
|
+
componentId: V,
|
|
45
|
+
formattedValue: D,
|
|
46
|
+
nearTheEdge: w,
|
|
47
|
+
valueAsDate: h
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
T as dataPickerCommon
|
|
52
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const dataPickerMonthCommon: (props: any, emit: any) => {
|
|
2
|
+
monthData: import("vue").Ref<{
|
|
3
|
+
weeks: {
|
|
4
|
+
value?: number;
|
|
5
|
+
isToday?: boolean;
|
|
6
|
+
date?: {
|
|
7
|
+
toString: () => string;
|
|
8
|
+
toDateString: () => string;
|
|
9
|
+
toTimeString: () => string;
|
|
10
|
+
toLocaleString: {
|
|
11
|
+
(): string;
|
|
12
|
+
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
|
13
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
14
|
+
};
|
|
15
|
+
toLocaleDateString: {
|
|
16
|
+
(): string;
|
|
17
|
+
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
|
18
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
19
|
+
};
|
|
20
|
+
toLocaleTimeString: {
|
|
21
|
+
(): string;
|
|
22
|
+
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
|
23
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
24
|
+
};
|
|
25
|
+
valueOf: () => number;
|
|
26
|
+
getTime: () => number;
|
|
27
|
+
getFullYear: () => number;
|
|
28
|
+
getUTCFullYear: () => number;
|
|
29
|
+
getMonth: () => number;
|
|
30
|
+
getUTCMonth: () => number;
|
|
31
|
+
getDate: () => number;
|
|
32
|
+
getUTCDate: () => number;
|
|
33
|
+
getDay: () => number;
|
|
34
|
+
getUTCDay: () => number;
|
|
35
|
+
getHours: () => number;
|
|
36
|
+
getUTCHours: () => number;
|
|
37
|
+
getMinutes: () => number;
|
|
38
|
+
getUTCMinutes: () => number;
|
|
39
|
+
getSeconds: () => number;
|
|
40
|
+
getUTCSeconds: () => number;
|
|
41
|
+
getMilliseconds: () => number;
|
|
42
|
+
getUTCMilliseconds: () => number;
|
|
43
|
+
getTimezoneOffset: () => number;
|
|
44
|
+
setTime: (time: number) => number;
|
|
45
|
+
setMilliseconds: (ms: number) => number;
|
|
46
|
+
setUTCMilliseconds: (ms: number) => number;
|
|
47
|
+
setSeconds: (sec: number, ms?: number) => number;
|
|
48
|
+
setUTCSeconds: (sec: number, ms?: number) => number;
|
|
49
|
+
setMinutes: (min: number, sec?: number, ms?: number) => number;
|
|
50
|
+
setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
|
|
51
|
+
setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
|
|
52
|
+
setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
|
|
53
|
+
setDate: (date: number) => number;
|
|
54
|
+
setUTCDate: (date: number) => number;
|
|
55
|
+
setMonth: (month: number, date?: number) => number;
|
|
56
|
+
setUTCMonth: (month: number, date?: number) => number;
|
|
57
|
+
setFullYear: (year: number, month?: number, date?: number) => number;
|
|
58
|
+
setUTCFullYear: (year: number, month?: number, date?: number) => number;
|
|
59
|
+
toUTCString: () => string;
|
|
60
|
+
toISOString: () => string;
|
|
61
|
+
toJSON: (key?: any) => string;
|
|
62
|
+
[Symbol.toPrimitive]: {
|
|
63
|
+
(hint: "default"): string;
|
|
64
|
+
(hint: "string"): string;
|
|
65
|
+
(hint: "number"): number;
|
|
66
|
+
(hint: string): string | number;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
isFuture?: boolean;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
}[][];
|
|
72
|
+
days: Record<string, import("../../dateRange/common/DateServices.common").Day>;
|
|
73
|
+
month: number;
|
|
74
|
+
year: number;
|
|
75
|
+
}>;
|
|
76
|
+
handleNavigation: (direction: 'next' | 'previous') => void;
|
|
77
|
+
navigation: import("vue").ComputedRef<"all" | "previous">;
|
|
78
|
+
selectedRange: import("vue").ComputedRef<{
|
|
79
|
+
fromStart: Date;
|
|
80
|
+
fromEnd: Date;
|
|
81
|
+
toStart: Date;
|
|
82
|
+
toEnd: Date;
|
|
83
|
+
}>;
|
|
84
|
+
handleSelection: (day: any) => void;
|
|
85
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import r from "../../dateRange/common/DateServices.common.js";
|
|
2
|
+
import { ref as g, watch as c, onMounted as D, computed as m } from "vue";
|
|
3
|
+
import { navigateNext as M } from "../../dateRange/common/consts.common.js";
|
|
4
|
+
import { startOfMonth as w, differenceInMonths as s, addMonths as C, subMonths as F } from "date-fns";
|
|
5
|
+
const x = (a, d) => {
|
|
6
|
+
const o = (e) => {
|
|
7
|
+
const n = e.getMonth(), u = e.getFullYear();
|
|
8
|
+
return r.createMonth(
|
|
9
|
+
n,
|
|
10
|
+
u,
|
|
11
|
+
a.includeToday,
|
|
12
|
+
!a.allowFutureDates
|
|
13
|
+
);
|
|
14
|
+
}, t = g(o(r.getCurrentTimeUTC())), l = () => {
|
|
15
|
+
const e = a.modelValue || r.getCurrentTimeUTC();
|
|
16
|
+
t.value = o(e);
|
|
17
|
+
}, i = (e) => {
|
|
18
|
+
const n = new Date(t.value.year, t.value.month), u = e === M ? C(n, 1) : F(n, 1);
|
|
19
|
+
t.value = o(u);
|
|
20
|
+
};
|
|
21
|
+
c(
|
|
22
|
+
() => a.modelValue,
|
|
23
|
+
() => {
|
|
24
|
+
l();
|
|
25
|
+
}
|
|
26
|
+
), c(
|
|
27
|
+
() => a.allowFutureDates,
|
|
28
|
+
() => {
|
|
29
|
+
t.value = o(
|
|
30
|
+
new Date(t.value.year, t.value.month)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
const h = (e) => {
|
|
35
|
+
const n = e || null;
|
|
36
|
+
return {
|
|
37
|
+
fromStart: n,
|
|
38
|
+
fromEnd: n,
|
|
39
|
+
toStart: n,
|
|
40
|
+
toEnd: n
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
D(() => {
|
|
44
|
+
l();
|
|
45
|
+
});
|
|
46
|
+
const v = m(() => {
|
|
47
|
+
if (a.allowFutureDates)
|
|
48
|
+
return "all";
|
|
49
|
+
const e = w(r.getCurrentTimeUTC());
|
|
50
|
+
s(t.value.year, t.value.month);
|
|
51
|
+
const n = new Date(t.value.year, t.value.month);
|
|
52
|
+
return s(n, e) >= 0 ? "previous" : "all";
|
|
53
|
+
}), f = m(() => h(a.modelValue));
|
|
54
|
+
return {
|
|
55
|
+
monthData: t,
|
|
56
|
+
handleNavigation: i,
|
|
57
|
+
navigation: v,
|
|
58
|
+
selectedRange: f,
|
|
59
|
+
handleSelection: (e) => {
|
|
60
|
+
e.isFuture || d("update:modelValue", e.date);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
x as dataPickerMonthCommon
|
|
66
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./DatePicker.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-67b44cbe"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import "../../../DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css"; import { defineComponent as D, openBlock as u, createElementBlock as n, unref as e, createElementVNode as r, renderSlot as P, withDirectives as h, isRef as y, vModelText as w, normalizeClass as $, createVNode as g, createCommentVNode as C } from "vue";
|
|
2
|
+
import M from "./DatePickerMonth.vue.js";
|
|
3
|
+
import { DatePickerTestIdModifiers as i } from "../../../testids/index.js";
|
|
4
|
+
import { dataPickerCommon as E } from "../common/DatePicker.common.js";
|
|
5
|
+
const N = ["id", "data-testid"], R = ["placeholder", "data-testid"], F = /* @__PURE__ */ D({
|
|
6
|
+
__name: "DatePicker",
|
|
7
|
+
props: {
|
|
8
|
+
uniqueId: { default: Date.now() },
|
|
9
|
+
modelValue: { default: null },
|
|
10
|
+
allowFutureDates: { type: Boolean, default: !1 },
|
|
11
|
+
dateFormat: { default: "yyyy-MM-d" },
|
|
12
|
+
placeholder: { default: "" },
|
|
13
|
+
testId: { default: "" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue"],
|
|
16
|
+
setup(t, { emit: s }) {
|
|
17
|
+
const m = t, {
|
|
18
|
+
handleInput: p,
|
|
19
|
+
toggle: f,
|
|
20
|
+
updateValue: c,
|
|
21
|
+
isOpen: k,
|
|
22
|
+
componentId: o,
|
|
23
|
+
formattedValue: d,
|
|
24
|
+
nearTheEdge: v,
|
|
25
|
+
valueAsDate: I
|
|
26
|
+
} = E(m, s);
|
|
27
|
+
return (V, a) => (u(), n("div", {
|
|
28
|
+
id: e(o),
|
|
29
|
+
ref: "datePicker",
|
|
30
|
+
class: "date-picker",
|
|
31
|
+
"data-testid": `${t.testId}-${e(i).WRAPPER}`
|
|
32
|
+
}, [
|
|
33
|
+
r("div", {
|
|
34
|
+
ref: "buttonRef",
|
|
35
|
+
onClick: a[2] || (a[2] = (l) => e(f)())
|
|
36
|
+
}, [
|
|
37
|
+
P(V.$slots, "default", { formattedDate: e(d) }, () => [
|
|
38
|
+
h(r("input", {
|
|
39
|
+
ref: "input",
|
|
40
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => y(d) ? d.value = l : null),
|
|
41
|
+
type: "text",
|
|
42
|
+
class: "input",
|
|
43
|
+
placeholder: t.placeholder,
|
|
44
|
+
"data-testid": `${t.testId}-${e(i).INPUT}`,
|
|
45
|
+
onInput: a[1] || (a[1] = (l) => e(p)(l))
|
|
46
|
+
}, null, 40, R), [
|
|
47
|
+
[w, e(d)]
|
|
48
|
+
])
|
|
49
|
+
], !0)
|
|
50
|
+
], 512),
|
|
51
|
+
e(k) ? (u(), n("div", {
|
|
52
|
+
key: 0,
|
|
53
|
+
ref: "popup",
|
|
54
|
+
class: $(["date-picker-popup", { "align-right": e(v) }])
|
|
55
|
+
}, [
|
|
56
|
+
g(M, {
|
|
57
|
+
id: e(o) + "-month",
|
|
58
|
+
"model-value": e(I),
|
|
59
|
+
"allow-future-dates": t.allowFutureDates,
|
|
60
|
+
"test-id": t.testId,
|
|
61
|
+
"onUpdate:modelValue": e(c)
|
|
62
|
+
}, null, 8, ["id", "model-value", "allow-future-dates", "test-id", "onUpdate:modelValue"])
|
|
63
|
+
], 2)) : C("", !0)
|
|
64
|
+
], 8, N));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
F as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./DatePickerMonth.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-929d3028"]]);
|
|
5
|
+
export {
|
|
6
|
+
c as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "../../../DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css"; import { defineComponent as u, openBlock as s, createBlock as m, unref as e } from "vue";
|
|
2
|
+
import c from "../../dateRange/v3/CalendarMonth.vue.js";
|
|
3
|
+
import { dataPickerMonthCommon as h } from "../common/DatePickerMonth.common.js";
|
|
4
|
+
const v = /* @__PURE__ */ u({
|
|
5
|
+
__name: "DatePickerMonth",
|
|
6
|
+
props: {
|
|
7
|
+
uniqueId: { default: Date.now() },
|
|
8
|
+
modelValue: { default: null },
|
|
9
|
+
includeToday: { type: Boolean, default: !0 },
|
|
10
|
+
allowFutureDates: { type: Boolean, default: !1 },
|
|
11
|
+
testId: { default: "" }
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(a, { emit: n }) {
|
|
15
|
+
const o = a, {
|
|
16
|
+
monthData: t,
|
|
17
|
+
handleNavigation: d,
|
|
18
|
+
navigation: i,
|
|
19
|
+
selectedRange: l,
|
|
20
|
+
handleSelection: r
|
|
21
|
+
} = h(o, n);
|
|
22
|
+
return (f, p) => (s(), m(c, {
|
|
23
|
+
id: a.uniqueId,
|
|
24
|
+
type: "month",
|
|
25
|
+
class: "date-picker-month",
|
|
26
|
+
range: e(l),
|
|
27
|
+
navigation: e(i),
|
|
28
|
+
year: e(t).year,
|
|
29
|
+
days: e(t).days,
|
|
30
|
+
weeks: e(t).weeks,
|
|
31
|
+
month: e(t).month,
|
|
32
|
+
"test-id": a.testId,
|
|
33
|
+
onSelectionChanged: e(r),
|
|
34
|
+
onNavigation: e(d)
|
|
35
|
+
}, null, 8, ["id", "range", "navigation", "year", "days", "weeks", "month", "test-id", "onSelectionChanged", "onNavigation"]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
v as default
|
|
40
|
+
};
|
|
@@ -176,7 +176,7 @@ declare const DatePickerTypes: () => ({
|
|
|
176
176
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
177
177
|
$slots: {
|
|
178
178
|
default?(_: {
|
|
179
|
-
formattedDate:
|
|
179
|
+
formattedDate: any;
|
|
180
180
|
}): any;
|
|
181
181
|
};
|
|
182
182
|
}))[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
uniqueId?: string | number;
|
|
3
|
+
modelValue?: Date;
|
|
4
|
+
includeToday?: boolean;
|
|
5
|
+
allowFutureDates?: boolean;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}>, {
|
|
8
|
+
uniqueId: number;
|
|
9
|
+
modelValue: any;
|
|
10
|
+
includeToday: boolean;
|
|
11
|
+
allowFutureDates: boolean;
|
|
12
|
+
testId: string;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
|
15
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
uniqueId?: string | number;
|
|
17
|
+
modelValue?: Date;
|
|
18
|
+
includeToday?: boolean;
|
|
19
|
+
allowFutureDates?: boolean;
|
|
20
|
+
testId?: string;
|
|
21
|
+
}>, {
|
|
22
|
+
uniqueId: number;
|
|
23
|
+
modelValue: any;
|
|
24
|
+
includeToday: boolean;
|
|
25
|
+
allowFutureDates: boolean;
|
|
26
|
+
testId: string;
|
|
27
|
+
}>>> & {
|
|
28
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
29
|
+
}, {
|
|
30
|
+
testId: string;
|
|
31
|
+
modelValue: Date;
|
|
32
|
+
uniqueId: string | number;
|
|
33
|
+
includeToday: boolean;
|
|
34
|
+
allowFutureDates: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: import('vue').PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
uniqueId?: string | number;
|
|
3
|
+
modelValue?: string | Date;
|
|
4
|
+
allowFutureDates?: boolean;
|
|
5
|
+
dateFormat?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}>, {
|
|
9
|
+
uniqueId: number;
|
|
10
|
+
modelValue: any;
|
|
11
|
+
dateFormat: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
allowFutureDates: boolean;
|
|
14
|
+
testId: string;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (val: string | Date) => void;
|
|
17
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
uniqueId?: string | number;
|
|
19
|
+
modelValue?: string | Date;
|
|
20
|
+
allowFutureDates?: boolean;
|
|
21
|
+
dateFormat?: string;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
testId?: string;
|
|
24
|
+
}>, {
|
|
25
|
+
uniqueId: number;
|
|
26
|
+
modelValue: any;
|
|
27
|
+
dateFormat: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
allowFutureDates: boolean;
|
|
30
|
+
testId: string;
|
|
31
|
+
}>>> & {
|
|
32
|
+
"onUpdate:modelValue"?: (val: string | Date) => any;
|
|
33
|
+
}, {
|
|
34
|
+
testId: string;
|
|
35
|
+
modelValue: string | Date;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
uniqueId: string | number;
|
|
38
|
+
allowFutureDates: boolean;
|
|
39
|
+
dateFormat: string;
|
|
40
|
+
}>, {
|
|
41
|
+
default?(_: {
|
|
42
|
+
formattedDate: any;
|
|
43
|
+
}): any;
|
|
44
|
+
}>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: import('vue').PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type __VLS_WithDefaults<P, D> = {
|
|
56
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
57
|
+
default: D[K];
|
|
58
|
+
}> : P[K];
|
|
59
|
+
};
|
|
60
|
+
type __VLS_Prettify<T> = {
|
|
61
|
+
[K in keyof T]: T[K];
|
|
62
|
+
} & {};
|
|
63
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|