@ironsource/shared-ui 2.1.6-test.3 → 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.
Files changed (143) hide show
  1. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
  2. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
  3. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
  4. package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +1 -0
  5. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
  7. package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
  8. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
  9. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
  10. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
  11. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  12. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  13. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
  14. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  15. 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
  16. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
  17. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
  19. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +1 -0
  20. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  21. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  22. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  23. package/components/appHeader/AppHeader.vue.js +2 -2
  24. package/components/appHeader/AppHeader.vue2.js +30 -28
  25. package/components/appHeader/index.d.ts +6 -2
  26. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  27. package/components/autocomplete/Autocomplete.vue.js +4 -4
  28. package/components/autocomplete/Autocomplete.vue2.js +43 -37
  29. package/components/autocomplete/index.d.ts +20 -1
  30. package/components/datePicker/common/DatePicker.common.d.ts +11 -0
  31. package/components/datePicker/common/DatePicker.common.js +52 -0
  32. package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
  33. package/components/datePicker/common/DatePickerMonth.common.js +66 -0
  34. package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
  35. package/components/datePicker/v3/DatePicker.vue.js +7 -0
  36. package/components/datePicker/v3/DatePicker.vue2.js +69 -0
  37. package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
  38. package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
  39. package/components/datePicker/{index.d.ts → v3/index.d.ts} +1 -1
  40. package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
  41. package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
  42. package/components/datePicker/v4/index.d.ts +184 -0
  43. package/components/dateRange/common/CalendarMonth.common.d.ts +17 -0
  44. package/components/dateRange/common/CalendarMonth.common.js +131 -0
  45. package/components/dateRange/common/DateRange.common.d.ts +47 -0
  46. package/components/dateRange/common/DateRange.common.js +265 -0
  47. package/components/dateRange/common/DateRangePicker.common.d.ts +3 -0
  48. package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
  49. package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
  50. package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
  51. package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
  52. package/components/dateRange/v3/DateRange.vue.js +7 -0
  53. package/components/dateRange/v3/DateRange.vue2.js +226 -0
  54. package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
  55. package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
  56. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
  57. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
  58. package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
  59. package/components/dateRange/v4/index.d.ts +408 -0
  60. package/components/dialog/v4/DialogV4.vue.js +3 -3
  61. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  62. package/components/dropdown/common/Dropdown.common.js +21 -21
  63. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  64. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  65. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  66. package/components/dropdown/v3/index.d.ts +13 -1
  67. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
  68. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  69. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
  70. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  71. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  72. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  73. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  74. package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
  75. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  76. package/components/dropdown/v4/DropdownV4.vue2.js +90 -85
  77. package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
  78. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  79. package/components/dropdown/v4/OptionV4.vue2.js +61 -44
  80. package/components/dropdown/v4/index.d.ts +105 -4
  81. package/components/filtersPanel/v3/Filter.d.ts +1 -1
  82. package/components/forms/FormCard.vue.js +2 -2
  83. package/components/forms/FormCard.vue2.js +9 -9
  84. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  85. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  86. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  87. package/components/inlineCopy/index.d.ts +6 -2
  88. package/components/input/v4/TextField.vue.d.ts +5 -0
  89. package/components/input/v4/TextField.vue.js +3 -3
  90. package/components/input/v4/TextField.vue2.js +24 -21
  91. package/components/input/v4/index.d.ts +20 -1
  92. package/components/multibar/MultiBar.vue.js +3 -3
  93. package/components/multibar/MultiBar.vue2.js +21 -21
  94. package/components/shared/FieldLabel.vue.js +3 -3
  95. package/components/shared/FieldLabel.vue2.js +9 -9
  96. package/components/table/v4/DataGrid.vue.d.ts +4 -0
  97. package/components/table/v4/DataGrid.vue.js +3 -3
  98. package/components/table/v4/DataGrid.vue2.js +147 -147
  99. package/components/table/v4/index.d.ts +14 -2
  100. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  101. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  102. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  103. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  104. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  105. package/components/tooltip/v4/index.d.ts +17 -5
  106. package/index.d.ts +338 -34
  107. package/index.js +4 -4
  108. package/package.json +3 -3
  109. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  110. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  111. package/Autocomplete.vue_vue_type_style_index_0_scoped_e43dd7e6_lang.css +0 -1
  112. package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
  113. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
  114. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  115. package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
  116. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
  117. package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
  118. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
  119. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  120. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  121. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  122. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  123. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  124. package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +0 -1
  125. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  126. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
  127. package/TextField.vue_vue_type_style_index_0_scoped_e093021d_lang.css +0 -1
  128. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
  129. package/components/datePicker/DatePicker.vue.js +0 -7
  130. package/components/datePicker/DatePicker.vue2.js +0 -97
  131. package/components/datePicker/DatePickerMonth.vue.js +0 -7
  132. package/components/datePicker/DatePickerMonth.vue2.js +0 -85
  133. package/components/dateRange/CalendarMonth.vue.js +0 -7
  134. package/components/dateRange/CalendarMonth.vue2.js +0 -244
  135. package/components/dateRange/DateRange.vue.js +0 -7
  136. package/components/dateRange/DateRange.vue2.js +0 -417
  137. /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
  138. /package/components/datePicker/{index.js → v3/index.js} +0 -0
  139. /package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +0 -0
  140. /package/components/dateRange/{DateServices.js → common/DateServices.common.js} +0 -0
  141. /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
  142. /package/components/dateRange/{consts.js → common/consts.common.js} +0 -0
  143. /package/components/dateRange/{index.js → v3/index.js} +0 -0
@@ -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
+ };
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
39
39
  dateFormat: string;
40
40
  }>, {
41
41
  default?(_: {
42
- formattedDate: string | Date;
42
+ formattedDate: any;
43
43
  }): any;
44
44
  }>;
45
45
  export default _default;
@@ -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: string | Date;
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
+ };
@@ -0,0 +1,184 @@
1
+ declare const DatePickerTypes: () => ({
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ testId: string;
7
+ modelValue: string | Date;
8
+ placeholder: string;
9
+ uniqueId: string | number;
10
+ allowFutureDates: boolean;
11
+ dateFormat: string;
12
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
+ testId: {
14
+ type: import("vue").PropType<string>;
15
+ default: string;
16
+ };
17
+ modelValue: {
18
+ type: import("vue").PropType<string | Date>;
19
+ default: any;
20
+ };
21
+ placeholder: {
22
+ type: import("vue").PropType<string>;
23
+ default: string;
24
+ };
25
+ uniqueId: {
26
+ type: import("vue").PropType<string | number>;
27
+ default: number;
28
+ };
29
+ allowFutureDates: {
30
+ type: import("vue").PropType<boolean>;
31
+ default: boolean;
32
+ };
33
+ dateFormat: {
34
+ type: import("vue").PropType<string>;
35
+ default: string;
36
+ };
37
+ }>> & {
38
+ "onUpdate:modelValue"?: (val: string | Date) => any;
39
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "modelValue" | "placeholder" | "uniqueId" | "allowFutureDates" | "dateFormat">;
40
+ $attrs: {
41
+ [x: string]: unknown;
42
+ };
43
+ $refs: {
44
+ [x: string]: unknown;
45
+ };
46
+ $slots: Readonly<{
47
+ [name: string]: import("vue").Slot;
48
+ }>;
49
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
50
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
51
+ $emit: (event: "update:modelValue", val: string | Date) => void;
52
+ $el: any;
53
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
54
+ testId: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
58
+ modelValue: {
59
+ type: import("vue").PropType<string | Date>;
60
+ default: any;
61
+ };
62
+ placeholder: {
63
+ type: import("vue").PropType<string>;
64
+ default: string;
65
+ };
66
+ uniqueId: {
67
+ type: import("vue").PropType<string | number>;
68
+ default: number;
69
+ };
70
+ allowFutureDates: {
71
+ type: import("vue").PropType<boolean>;
72
+ default: boolean;
73
+ };
74
+ dateFormat: {
75
+ type: import("vue").PropType<string>;
76
+ default: string;
77
+ };
78
+ }>> & {
79
+ "onUpdate:modelValue"?: (val: string | Date) => any;
80
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
+ "update:modelValue": (val: string | Date) => void;
82
+ }, string, {
83
+ testId: string;
84
+ modelValue: string | Date;
85
+ placeholder: string;
86
+ uniqueId: string | number;
87
+ allowFutureDates: boolean;
88
+ dateFormat: string;
89
+ }, {}, string> & {
90
+ beforeCreate?: (() => void) | (() => void)[];
91
+ created?: (() => void) | (() => void)[];
92
+ beforeMount?: (() => void) | (() => void)[];
93
+ mounted?: (() => void) | (() => void)[];
94
+ beforeUpdate?: (() => void) | (() => void)[];
95
+ updated?: (() => void) | (() => void)[];
96
+ activated?: (() => void) | (() => void)[];
97
+ deactivated?: (() => void) | (() => void)[];
98
+ beforeDestroy?: (() => void) | (() => void)[];
99
+ beforeUnmount?: (() => void) | (() => void)[];
100
+ destroyed?: (() => void) | (() => void)[];
101
+ unmounted?: (() => void) | (() => void)[];
102
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
103
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
104
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
105
+ };
106
+ $forceUpdate: () => void;
107
+ $nextTick: typeof import("vue").nextTick;
108
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
109
+ } & Readonly<import("vue").ExtractPropTypes<{
110
+ testId: {
111
+ type: import("vue").PropType<string>;
112
+ default: string;
113
+ };
114
+ modelValue: {
115
+ type: import("vue").PropType<string | Date>;
116
+ default: any;
117
+ };
118
+ placeholder: {
119
+ type: import("vue").PropType<string>;
120
+ default: string;
121
+ };
122
+ uniqueId: {
123
+ type: import("vue").PropType<string | number>;
124
+ default: number;
125
+ };
126
+ allowFutureDates: {
127
+ type: import("vue").PropType<boolean>;
128
+ default: boolean;
129
+ };
130
+ dateFormat: {
131
+ type: import("vue").PropType<string>;
132
+ default: string;
133
+ };
134
+ }>> & {
135
+ "onUpdate:modelValue"?: (val: string | Date) => any;
136
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
137
+ __isFragment?: never;
138
+ __isTeleport?: never;
139
+ __isSuspense?: never;
140
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
141
+ testId: {
142
+ type: import("vue").PropType<string>;
143
+ default: string;
144
+ };
145
+ modelValue: {
146
+ type: import("vue").PropType<string | Date>;
147
+ default: any;
148
+ };
149
+ placeholder: {
150
+ type: import("vue").PropType<string>;
151
+ default: string;
152
+ };
153
+ uniqueId: {
154
+ type: import("vue").PropType<string | number>;
155
+ default: number;
156
+ };
157
+ allowFutureDates: {
158
+ type: import("vue").PropType<boolean>;
159
+ default: boolean;
160
+ };
161
+ dateFormat: {
162
+ type: import("vue").PropType<string>;
163
+ default: string;
164
+ };
165
+ }>> & {
166
+ "onUpdate:modelValue"?: (val: string | Date) => any;
167
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
168
+ "update:modelValue": (val: string | Date) => void;
169
+ }, string, {
170
+ testId: string;
171
+ modelValue: string | Date;
172
+ placeholder: string;
173
+ uniqueId: string | number;
174
+ allowFutureDates: boolean;
175
+ dateFormat: string;
176
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
177
+ $slots: {
178
+ default?(_: {
179
+ formattedDate: any;
180
+ }): any;
181
+ };
182
+ }))[];
183
+ export { default as DatePicker } from './DatePickerV4.vue';
184
+ export { DatePickerTypes };
@@ -0,0 +1,17 @@
1
+ export declare const calendarMonthCommon: (props: any, emit: any) => {
2
+ isEndDay: (day: any) => boolean;
3
+ isStartDay: (day: any) => boolean;
4
+ updateSelection: () => void;
5
+ refreshDisabledDays: () => void;
6
+ getMinDateInMonth: () => Date;
7
+ getLastDayInRangeForMonth: (date: any, month: any) => any;
8
+ getFirstDayInRangeForMonth: (date: any, month: any) => any;
9
+ isMonthInRange: () => boolean;
10
+ navigate: (navigation: any) => void;
11
+ selectDay: (day: any) => void;
12
+ monthName: import("vue").ComputedRef<string>;
13
+ dayNames: string[];
14
+ selectedDays: import("vue").Ref<any[]>;
15
+ selectedDaysMap: import("vue").Ref<{}>;
16
+ inBetweenMap: import("vue").Ref<{}>;
17
+ };