@ironsource/shared-ui 2.1.6-test.3 → 2.1.6-test.5

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 (157) 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/CalendarMonthV4.vue_vue_type_style_index_0_scoped_a80364bd_lang.css +1 -0
  6. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
  8. package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
  9. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
  10. package/DatePickerMonthV4.vue_vue_type_style_index_0_scoped_11288104_lang.css +1 -0
  11. package/DatePickerV4.vue_vue_type_style_index_0_scoped_a5757773_lang.css +1 -0
  12. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
  13. package/DateRangeV4.vue_vue_type_style_index_0_scoped_590bb1db_lang.css +1 -0
  14. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
  15. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  16. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  17. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
  18. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  19. 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
  20. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
  21. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +1 -0
  22. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
  23. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +1 -0
  24. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  25. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  26. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  27. package/components/appHeader/AppHeader.vue.js +2 -2
  28. package/components/appHeader/AppHeader.vue2.js +30 -28
  29. package/components/appHeader/index.d.ts +6 -2
  30. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  31. package/components/autocomplete/Autocomplete.vue.js +4 -4
  32. package/components/autocomplete/Autocomplete.vue2.js +43 -37
  33. package/components/autocomplete/index.d.ts +20 -1
  34. package/components/datePicker/common/DatePicker.common.d.ts +11 -0
  35. package/components/datePicker/common/DatePicker.common.js +52 -0
  36. package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
  37. package/components/datePicker/common/DatePickerMonth.common.js +66 -0
  38. package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
  39. package/components/datePicker/v3/DatePicker.vue.js +7 -0
  40. package/components/datePicker/v3/DatePicker.vue2.js +69 -0
  41. package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
  42. package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
  43. package/components/datePicker/{index.d.ts → v3/index.d.ts} +1 -1
  44. package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
  45. package/components/datePicker/v4/DatePickerMonthV4.vue.js +7 -0
  46. package/components/datePicker/v4/DatePickerMonthV4.vue2.js +40 -0
  47. package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
  48. package/components/datePicker/v4/DatePickerV4.vue.js +7 -0
  49. package/components/datePicker/v4/DatePickerV4.vue2.js +73 -0
  50. package/components/datePicker/v4/index.d.ts +184 -0
  51. package/components/datePicker/v4/index.js +6 -0
  52. package/components/dateRange/common/CalendarMonth.common.d.ts +17 -0
  53. package/components/dateRange/common/CalendarMonth.common.js +131 -0
  54. package/components/dateRange/common/DateRange.common.d.ts +47 -0
  55. package/components/dateRange/common/DateRange.common.js +265 -0
  56. package/components/dateRange/common/DateRangePicker.common.d.ts +3 -0
  57. package/components/dateRange/{consts.js → common/consts.common.js} +5 -9
  58. package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
  59. package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
  60. package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
  61. package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
  62. package/components/dateRange/v3/DateRange.vue.js +7 -0
  63. package/components/dateRange/v3/DateRange.vue2.js +226 -0
  64. package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
  65. package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
  66. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
  67. package/components/dateRange/v4/CalendarMonthV4.vue.js +7 -0
  68. package/components/dateRange/v4/CalendarMonthV4.vue2.js +133 -0
  69. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
  70. package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
  71. package/components/dateRange/v4/DateRangeV4.vue.js +7 -0
  72. package/components/dateRange/v4/DateRangeV4.vue2.js +251 -0
  73. package/components/dateRange/v4/index.d.ts +408 -0
  74. package/components/dateRange/v4/index.js +6 -0
  75. package/components/dialog/v4/DialogV4.vue.js +3 -3
  76. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  77. package/components/dropdown/common/Dropdown.common.js +21 -21
  78. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  79. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  80. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  81. package/components/dropdown/v3/index.d.ts +13 -1
  82. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
  83. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  84. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
  85. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  86. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  87. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  88. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  89. package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
  90. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  91. package/components/dropdown/v4/DropdownV4.vue2.js +90 -85
  92. package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
  93. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  94. package/components/dropdown/v4/OptionV4.vue2.js +61 -44
  95. package/components/dropdown/v4/index.d.ts +105 -4
  96. package/components/filtersPanel/v3/Filter.d.ts +1 -1
  97. package/components/forms/FormCard.vue.js +2 -2
  98. package/components/forms/FormCard.vue2.js +9 -9
  99. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  100. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  101. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  102. package/components/inlineCopy/index.d.ts +6 -2
  103. package/components/input/v4/TextField.vue.d.ts +5 -0
  104. package/components/input/v4/TextField.vue.js +3 -3
  105. package/components/input/v4/TextField.vue2.js +24 -21
  106. package/components/input/v4/index.d.ts +20 -1
  107. package/components/multibar/MultiBar.vue.js +3 -3
  108. package/components/multibar/MultiBar.vue2.js +21 -21
  109. package/components/shared/FieldLabel.vue.js +3 -3
  110. package/components/shared/FieldLabel.vue2.js +9 -9
  111. package/components/table/v4/DataGrid.vue.d.ts +4 -0
  112. package/components/table/v4/DataGrid.vue.js +3 -3
  113. package/components/table/v4/DataGrid.vue2.js +147 -147
  114. package/components/table/v4/index.d.ts +14 -2
  115. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  116. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  117. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  118. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  119. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  120. package/components/tooltip/v4/index.d.ts +17 -5
  121. package/index.d.ts +1512 -34
  122. package/index.js +116 -116
  123. package/package.json +3 -3
  124. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  125. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  126. package/Autocomplete.vue_vue_type_style_index_0_scoped_e43dd7e6_lang.css +0 -1
  127. package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
  128. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
  129. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  130. package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
  131. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
  132. package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
  133. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
  134. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  135. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  136. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  137. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  138. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  139. package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +0 -1
  140. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  141. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
  142. package/TextField.vue_vue_type_style_index_0_scoped_e093021d_lang.css +0 -1
  143. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
  144. package/components/datePicker/DatePicker.vue.js +0 -7
  145. package/components/datePicker/DatePicker.vue2.js +0 -97
  146. package/components/datePicker/DatePickerMonth.vue.js +0 -7
  147. package/components/datePicker/DatePickerMonth.vue2.js +0 -85
  148. package/components/dateRange/CalendarMonth.vue.js +0 -7
  149. package/components/dateRange/CalendarMonth.vue2.js +0 -244
  150. package/components/dateRange/DateRange.vue.js +0 -7
  151. package/components/dateRange/DateRange.vue2.js +0 -417
  152. /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
  153. /package/components/datePicker/{index.js → v3/index.js} +0 -0
  154. /package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +0 -0
  155. /package/components/dateRange/{DateServices.js → common/DateServices.common.js} +0 -0
  156. /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
  157. /package/components/dateRange/{index.js → v3/index.js} +0 -0
@@ -0,0 +1,73 @@
1
+ import "../../../DatePickerV4.vue_vue_type_style_index_0_scoped_a5757773_lang.css"; import { defineComponent as D, openBlock as l, createElementBlock as n, unref as e, createElementVNode as g, renderSlot as h, createVNode as r, withCtx as v, createTextVNode as y, toDisplayString as I, normalizeClass as P, createCommentVNode as w } from "vue";
2
+ import C from "./DatePickerMonthV4.vue.js";
3
+ import { DatePickerTestIdModifiers as i } from "../../../testids/index.js";
4
+ import { dataPickerCommon as $ } from "../common/DatePicker.common.js";
5
+ import M from "../../button/v4/ButtonV4.vue.js";
6
+ import "../../button/v4/IconButtonV4.vue.js";
7
+ const N = ["id", "data-testid"], b = /* @__PURE__ */ D({
8
+ __name: "DatePickerV4",
9
+ props: {
10
+ uniqueId: { default: Date.now() },
11
+ modelValue: { default: null },
12
+ allowFutureDates: { type: Boolean, default: !1 },
13
+ dateFormat: { default: "MMM dd, yyyy" },
14
+ placeholder: { default: "" },
15
+ testId: { default: "" }
16
+ },
17
+ emits: ["update:modelValue"],
18
+ setup(t, { emit: u }) {
19
+ const m = t, {
20
+ toggle: s,
21
+ updateValue: c,
22
+ isOpen: f,
23
+ componentId: a,
24
+ formattedValue: d,
25
+ nearTheEdge: p,
26
+ valueAsDate: k
27
+ } = $(m, u);
28
+ return (V, o) => (l(), n("div", {
29
+ id: e(a),
30
+ ref: "datePicker",
31
+ class: "date-picker",
32
+ "data-testid": `${t.testId}-${e(i).WRAPPER}`
33
+ }, [
34
+ g("div", {
35
+ ref: "buttonRef",
36
+ onClick: o[0] || (o[0] = (x) => e(s)())
37
+ }, [
38
+ h(V.$slots, "default", { formattedDate: e(d) }, () => [
39
+ r(e(M), {
40
+ "start-icon-name": "calendar-blank",
41
+ "end-icon-name": "caret-down",
42
+ color: "default",
43
+ variant: "outlined",
44
+ style: { marginRight: "10px" },
45
+ content: t.placeholder,
46
+ "data-testid": `${t.testId}-${e(i).INPUT}`
47
+ }, {
48
+ default: v(() => [
49
+ y(I(e(d)), 1)
50
+ ]),
51
+ _: 1
52
+ }, 8, ["content", "data-testid"])
53
+ ], !0)
54
+ ], 512),
55
+ e(f) ? (l(), n("div", {
56
+ key: 0,
57
+ ref: "popup",
58
+ class: P(["date-picker-popup", { "align-right": e(p) }])
59
+ }, [
60
+ r(C, {
61
+ id: e(a) + "-month",
62
+ "model-value": e(k),
63
+ "allow-future-dates": t.allowFutureDates,
64
+ "test-id": t.testId,
65
+ "onUpdate:modelValue": e(c)
66
+ }, null, 8, ["id", "model-value", "allow-future-dates", "test-id", "onUpdate:modelValue"])
67
+ ], 2)) : w("", !0)
68
+ ], 8, N));
69
+ }
70
+ });
71
+ export {
72
+ b as default
73
+ };
@@ -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,6 @@
1
+ import e from "./DatePickerV4.vue.js";
2
+ const t = () => [e];
3
+ export {
4
+ e as DatePicker,
5
+ t as DatePickerTypes
6
+ };
@@ -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
+ };
@@ -0,0 +1,131 @@
1
+ import g from "./DateServices.common.js";
2
+ import { ref as d, computed as A, watch as D, onMounted as x } from "vue";
3
+ import { isBefore as C, isAfter as J, isSameDay as F } from "date-fns";
4
+ const j = (t, M) => {
5
+ const E = [
6
+ "January",
7
+ "February",
8
+ "March",
9
+ "April",
10
+ "May",
11
+ "June",
12
+ "July",
13
+ "August",
14
+ "September",
15
+ "October",
16
+ "November",
17
+ "December"
18
+ ], b = ["S", "M", "T", "W", "T", "F", "S"], l = d([]), i = d({}), s = d({}), Y = A(() => E[t.month]), w = (e) => {
19
+ e.value !== 0 && M("selectionChanged", e, t.month, t.year);
20
+ }, I = (e) => {
21
+ M("navigation", e);
22
+ }, S = () => {
23
+ if (!t.range.fromStart || !t.range.toEnd)
24
+ return !1;
25
+ const e = t.range.fromStart.getMonth(), n = t.range.fromStart.getFullYear(), r = t.range.toEnd.getMonth(), a = t.range.toEnd.getFullYear();
26
+ return t.year < n || t.year > a ? !1 : !(t.year === n && t.month < e || t.year === a && t.month > r);
27
+ }, f = (e, n) => e.getMonth() < n.month && e.getFullYear() === n.year || e.getFullYear() < n.year ? 1 : e.getMonth() === n.month && e.getFullYear() === n.year ? e.getDate() : g.daysInMonth(n.month, n.year), y = (e, n) => e.getMonth() > n.month && e.getFullYear() === n.year || e.getFullYear() > n.year ? g.daysInMonth(n.month, n.year) : e.getMonth() === n.month && e.getFullYear() === n.year ? e.getDate() : 1, v = () => {
28
+ if (t.allowedDays) {
29
+ const e = g.getCurrentTimeUTC();
30
+ e.setDate(e.getDate() - t.allowedDays + 1);
31
+ let n = e;
32
+ switch (t.type) {
33
+ case "week":
34
+ n = g.getFirstDayOfWeek(e);
35
+ break;
36
+ case "month":
37
+ n.setDate(1);
38
+ break;
39
+ }
40
+ return n.setHours(0, 0, 0, 0), n;
41
+ }
42
+ return null;
43
+ }, m = () => {
44
+ const e = v(), n = t.maxAllowedDate;
45
+ Object.keys(t.days).forEach((r) => {
46
+ const a = t.days[r];
47
+ e && C(a.date, e) || n && J(a.date, n) ? a.disabled = !0 : delete a.disabled;
48
+ });
49
+ }, u = (e, n, r, a) => {
50
+ t.year === e.getFullYear() && t.month === e.getMonth() && n >= r && n <= a && (i.value[n] = !0);
51
+ }, c = () => {
52
+ for (let e = 0; e < l.value.length; e++) {
53
+ const n = l.value[e];
54
+ delete i.value[n.value], delete s.value[n.value];
55
+ }
56
+ if (l.value = [], S()) {
57
+ const e = { month: t.month, year: t.year }, n = f(
58
+ t.range.fromStart,
59
+ e
60
+ ), r = y(
61
+ t.range.fromEnd,
62
+ e
63
+ ), a = f(
64
+ t.range.toStart,
65
+ e
66
+ ), h = y(
67
+ t.range.toEnd,
68
+ e
69
+ );
70
+ for (let o = n; o <= h; o++)
71
+ s.value[o] = !0, u(
72
+ t.range.fromStart,
73
+ o,
74
+ n,
75
+ r
76
+ ), u(
77
+ t.range.fromEnd,
78
+ o,
79
+ n,
80
+ r
81
+ ), u(
82
+ t.range.toStart,
83
+ o,
84
+ a,
85
+ h
86
+ ), u(
87
+ t.range.toEnd,
88
+ o,
89
+ a,
90
+ h
91
+ ), l.value.push(t.days[o]);
92
+ }
93
+ }, T = (e) => e.value === 0 ? !1 : F(e.date, t.range.fromStart), k = (e) => e.value === 0 ? !1 : F(e.date, t.range.toEnd);
94
+ return D(
95
+ () => t.month,
96
+ () => {
97
+ c();
98
+ }
99
+ ), D(
100
+ () => t.range,
101
+ (e, n) => {
102
+ e && e !== n && c();
103
+ }
104
+ ), D(
105
+ () => t.maxAllowedDate,
106
+ () => {
107
+ m();
108
+ }
109
+ ), x(() => {
110
+ m(), c();
111
+ }), {
112
+ isEndDay: k,
113
+ isStartDay: T,
114
+ updateSelection: c,
115
+ refreshDisabledDays: m,
116
+ getMinDateInMonth: v,
117
+ getLastDayInRangeForMonth: y,
118
+ getFirstDayInRangeForMonth: f,
119
+ isMonthInRange: S,
120
+ navigate: I,
121
+ selectDay: w,
122
+ monthName: Y,
123
+ dayNames: b,
124
+ selectedDays: l,
125
+ selectedDaysMap: i,
126
+ inBetweenMap: s
127
+ };
128
+ };
129
+ export {
130
+ j as calendarMonthCommon
131
+ };
@@ -0,0 +1,47 @@
1
+ export declare const dateRangeCommon: (props: any, emit: any) => {
2
+ datePicker: import("vue").Ref<HTMLDivElement>;
3
+ datePickerId: import("vue").ComputedRef<string>;
4
+ getMaxAllowedDate: import("vue").ComputedRef<Date>;
5
+ selectedPresetName: import("vue").ComputedRef<any>;
6
+ selectedPreset: import("vue").Ref<{}>;
7
+ displayError: import("vue").Ref<boolean>;
8
+ rangeType: any;
9
+ selectedRange: any;
10
+ placement: import("vue").Ref<string>;
11
+ currentDate: any;
12
+ error: any;
13
+ presets: import("vue").Ref<any[]>;
14
+ isOpen: import("vue").Ref<boolean>;
15
+ popup: any;
16
+ selectionStart: import("vue").Ref<{
17
+ started: boolean;
18
+ date: any;
19
+ }>;
20
+ initialized: import("vue").Ref<boolean>;
21
+ textDates: import("vue").Ref<{
22
+ from: any;
23
+ to: any;
24
+ }>;
25
+ currentMonths: import("vue").Ref<{}>;
26
+ displayedMonthsKeys: import("vue").Ref<any[]>;
27
+ initMonths: () => void;
28
+ changeType: (type: any, resetDate?: any) => void;
29
+ presetChanged: (selectedObj: any) => void;
30
+ initRange: (newValue: any, selectionNotCompleted?: boolean) => boolean;
31
+ setCurrentDate: () => void;
32
+ apply: () => void;
33
+ getNavigation: (isFirst: any, isLast: any) => "previous" | "next";
34
+ navigationCallback: (direction: any) => void;
35
+ getSelectedRangeByType: (dateRange: {
36
+ from: Date;
37
+ to: Date;
38
+ }) => any;
39
+ compareDates: (dateA: Date, dateB: Date) => boolean;
40
+ determinePreset: (range: any) => void;
41
+ selectionChanged: (day: any, month: any, year: any) => void;
42
+ checkPlacement: () => "left" | "right";
43
+ toggle: (dismiss?: boolean) => void;
44
+ closeDatePicker: () => void;
45
+ isCompact: import("vue").ComputedRef<any>;
46
+ init: () => void;
47
+ };