@ironsource/shared-ui 2.1.6-rc.9 → 2.1.6-test.10

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 (135) 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/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +1 -0
  4. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_a80364bd_lang.css +1 -0
  5. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
  6. package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
  7. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
  8. package/DatePickerMonthV4.vue_vue_type_style_index_0_scoped_11288104_lang.css +1 -0
  9. package/DatePickerV4.vue_vue_type_style_index_0_scoped_a5757773_lang.css +1 -0
  10. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
  11. package/DateRangeV4.vue_vue_type_style_index_0_scoped_590bb1db_lang.css +1 -0
  12. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  13. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  14. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
  15. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  16. 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
  17. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
  19. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  20. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  21. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  22. package/components/appHeader/AppHeader.vue.js +2 -2
  23. package/components/appHeader/AppHeader.vue2.js +30 -28
  24. package/components/appHeader/index.d.ts +6 -2
  25. package/components/datePicker/common/DatePicker.common.d.ts +11 -0
  26. package/components/datePicker/common/DatePicker.common.js +52 -0
  27. package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
  28. package/components/datePicker/common/DatePickerMonth.common.js +66 -0
  29. package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
  30. package/components/datePicker/v3/DatePicker.vue.js +7 -0
  31. package/components/datePicker/v3/DatePicker.vue2.js +69 -0
  32. package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
  33. package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
  34. package/components/datePicker/{index.d.ts → v3/index.d.ts} +3 -3
  35. package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
  36. package/components/datePicker/v4/DatePickerMonthV4.vue.js +7 -0
  37. package/components/datePicker/v4/DatePickerMonthV4.vue2.js +40 -0
  38. package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
  39. package/components/datePicker/v4/DatePickerV4.vue.js +7 -0
  40. package/components/datePicker/v4/DatePickerV4.vue2.js +73 -0
  41. package/components/datePicker/v4/index.d.ts +184 -0
  42. package/components/datePicker/v4/index.js +6 -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/{consts.js → common/consts.common.js} +5 -9
  49. package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
  50. package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
  51. package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
  52. package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
  53. package/components/dateRange/v3/DateRange.vue.js +7 -0
  54. package/components/dateRange/v3/DateRange.vue2.js +226 -0
  55. package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
  56. package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
  57. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
  58. package/components/dateRange/v4/CalendarMonthV4.vue.js +7 -0
  59. package/components/dateRange/v4/CalendarMonthV4.vue2.js +133 -0
  60. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
  61. package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
  62. package/components/dateRange/v4/DateRangeV4.vue.js +7 -0
  63. package/components/dateRange/v4/DateRangeV4.vue2.js +251 -0
  64. package/components/dateRange/v4/index.d.ts +408 -0
  65. package/components/dateRange/v4/index.js +6 -0
  66. package/components/dialog/v4/DialogV4.vue.js +3 -3
  67. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  68. package/components/dropdown/common/Dropdown.common.js +21 -21
  69. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  70. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  71. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  72. package/components/dropdown/v3/index.d.ts +13 -1
  73. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
  74. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  75. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
  76. package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
  77. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  78. package/components/dropdown/v4/DropdownV4.vue2.js +90 -85
  79. package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
  80. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  81. package/components/dropdown/v4/OptionV4.vue2.js +61 -44
  82. package/components/dropdown/v4/index.d.ts +105 -4
  83. package/components/filtersPanel/v3/Filter.d.ts +1 -1
  84. package/components/forms/FormCard.vue.js +2 -2
  85. package/components/forms/FormCard.vue2.js +9 -9
  86. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  87. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  88. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  89. package/components/inlineCopy/index.d.ts +6 -2
  90. package/components/input/v4/TextField.vue.d.ts +5 -0
  91. package/components/input/v4/TextField.vue.js +3 -3
  92. package/components/input/v4/TextField.vue2.js +21 -19
  93. package/components/input/v4/index.d.ts +20 -1
  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/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  101. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  102. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  103. package/components/tooltip/v4/index.d.ts +17 -5
  104. package/index.d.ts +1512 -34
  105. package/index.js +116 -116
  106. package/package.json +13 -5
  107. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  108. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  109. package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
  110. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  111. package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
  112. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
  113. package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
  114. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  115. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  116. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  117. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  118. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  119. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  120. package/TextField.vue_vue_type_style_index_0_scoped_22c12586_lang.css +0 -1
  121. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
  122. package/components/datePicker/DatePicker.vue.js +0 -7
  123. package/components/datePicker/DatePicker.vue2.js +0 -97
  124. package/components/datePicker/DatePickerMonth.vue.js +0 -7
  125. package/components/datePicker/DatePickerMonth.vue2.js +0 -85
  126. package/components/dateRange/CalendarMonth.vue.js +0 -7
  127. package/components/dateRange/CalendarMonth.vue2.js +0 -244
  128. package/components/dateRange/DateRange.vue.js +0 -7
  129. package/components/dateRange/DateRange.vue2.js +0 -417
  130. /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
  131. /package/components/datePicker/{index.js → v3/index.js} +0 -0
  132. /package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +0 -0
  133. /package/components/dateRange/{DateServices.js → common/DateServices.common.js} +0 -0
  134. /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
  135. /package/components/dateRange/{index.js → v3/index.js} +0 -0
@@ -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
+ };
@@ -1,3 +1,4 @@
1
+ import { default as DatePicker } from './DatePicker.vue';
1
2
  declare const DatePickerTypes: () => ({
2
3
  new (...args: any[]): {
3
4
  $: import("vue").ComponentInternalInstance;
@@ -176,9 +177,8 @@ declare const DatePickerTypes: () => ({
176
177
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
177
178
  $slots: {
178
179
  default?(_: {
179
- formattedDate: string | Date;
180
+ formattedDate: any;
180
181
  }): any;
181
182
  };
182
183
  }))[];
183
- export { default as DatePicker } from './DatePicker.vue';
184
- export { DatePickerTypes };
184
+ export { DatePicker, DatePickerTypes };
@@ -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,7 @@
1
+ import o from "./DatePickerMonthV4.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DatePickerMonthV4.vue_vue_type_style_index_0_scoped_11288104_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-11288104"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,40 @@
1
+ import "../../../DatePickerMonthV4.vue_vue_type_style_index_0_scoped_11288104_lang.css"; import { defineComponent as u, openBlock as s, createBlock as m, unref as e } from "vue";
2
+ import c from "../../dateRange/v4/CalendarMonthV4.vue.js";
3
+ import { dataPickerMonthCommon as h } from "../common/DatePickerMonth.common.js";
4
+ const v = /* @__PURE__ */ u({
5
+ __name: "DatePickerMonthV4",
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
+ };
@@ -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,7 @@
1
+ import e from "./DatePickerV4.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DatePickerV4.vue_vue_type_style_index_0_scoped_a5757773_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a5757773"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -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
+ import { default as DatePicker } from './DatePickerV4.vue';
2
+ declare const DatePickerTypes: () => ({
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ testId: string;
8
+ modelValue: string | Date;
9
+ placeholder: string;
10
+ uniqueId: string | number;
11
+ allowFutureDates: boolean;
12
+ dateFormat: string;
13
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
14
+ testId: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ modelValue: {
19
+ type: import("vue").PropType<string | Date>;
20
+ default: any;
21
+ };
22
+ placeholder: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ uniqueId: {
27
+ type: import("vue").PropType<string | number>;
28
+ default: number;
29
+ };
30
+ allowFutureDates: {
31
+ type: import("vue").PropType<boolean>;
32
+ default: boolean;
33
+ };
34
+ dateFormat: {
35
+ type: import("vue").PropType<string>;
36
+ default: string;
37
+ };
38
+ }>> & {
39
+ "onUpdate:modelValue"?: (val: string | Date) => any;
40
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "modelValue" | "placeholder" | "uniqueId" | "allowFutureDates" | "dateFormat">;
41
+ $attrs: {
42
+ [x: string]: unknown;
43
+ };
44
+ $refs: {
45
+ [x: string]: unknown;
46
+ };
47
+ $slots: Readonly<{
48
+ [name: string]: import("vue").Slot;
49
+ }>;
50
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
51
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
52
+ $emit: (event: "update:modelValue", val: string | Date) => void;
53
+ $el: any;
54
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
55
+ testId: {
56
+ type: import("vue").PropType<string>;
57
+ default: string;
58
+ };
59
+ modelValue: {
60
+ type: import("vue").PropType<string | Date>;
61
+ default: any;
62
+ };
63
+ placeholder: {
64
+ type: import("vue").PropType<string>;
65
+ default: string;
66
+ };
67
+ uniqueId: {
68
+ type: import("vue").PropType<string | number>;
69
+ default: number;
70
+ };
71
+ allowFutureDates: {
72
+ type: import("vue").PropType<boolean>;
73
+ default: boolean;
74
+ };
75
+ dateFormat: {
76
+ type: import("vue").PropType<string>;
77
+ default: string;
78
+ };
79
+ }>> & {
80
+ "onUpdate:modelValue"?: (val: string | Date) => any;
81
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
82
+ "update:modelValue": (val: string | Date) => void;
83
+ }, string, {
84
+ testId: string;
85
+ modelValue: string | Date;
86
+ placeholder: string;
87
+ uniqueId: string | number;
88
+ allowFutureDates: boolean;
89
+ dateFormat: string;
90
+ }, {}, string> & {
91
+ beforeCreate?: (() => void) | (() => void)[];
92
+ created?: (() => void) | (() => void)[];
93
+ beforeMount?: (() => void) | (() => void)[];
94
+ mounted?: (() => void) | (() => void)[];
95
+ beforeUpdate?: (() => void) | (() => void)[];
96
+ updated?: (() => void) | (() => void)[];
97
+ activated?: (() => void) | (() => void)[];
98
+ deactivated?: (() => void) | (() => void)[];
99
+ beforeDestroy?: (() => void) | (() => void)[];
100
+ beforeUnmount?: (() => void) | (() => void)[];
101
+ destroyed?: (() => void) | (() => void)[];
102
+ unmounted?: (() => void) | (() => void)[];
103
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
104
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
105
+ 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)[];
106
+ };
107
+ $forceUpdate: () => void;
108
+ $nextTick: typeof import("vue").nextTick;
109
+ $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;
110
+ } & Readonly<import("vue").ExtractPropTypes<{
111
+ testId: {
112
+ type: import("vue").PropType<string>;
113
+ default: string;
114
+ };
115
+ modelValue: {
116
+ type: import("vue").PropType<string | Date>;
117
+ default: any;
118
+ };
119
+ placeholder: {
120
+ type: import("vue").PropType<string>;
121
+ default: string;
122
+ };
123
+ uniqueId: {
124
+ type: import("vue").PropType<string | number>;
125
+ default: number;
126
+ };
127
+ allowFutureDates: {
128
+ type: import("vue").PropType<boolean>;
129
+ default: boolean;
130
+ };
131
+ dateFormat: {
132
+ type: import("vue").PropType<string>;
133
+ default: string;
134
+ };
135
+ }>> & {
136
+ "onUpdate:modelValue"?: (val: string | Date) => any;
137
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
138
+ __isFragment?: never;
139
+ __isTeleport?: never;
140
+ __isSuspense?: never;
141
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
142
+ testId: {
143
+ type: import("vue").PropType<string>;
144
+ default: string;
145
+ };
146
+ modelValue: {
147
+ type: import("vue").PropType<string | Date>;
148
+ default: any;
149
+ };
150
+ placeholder: {
151
+ type: import("vue").PropType<string>;
152
+ default: string;
153
+ };
154
+ uniqueId: {
155
+ type: import("vue").PropType<string | number>;
156
+ default: number;
157
+ };
158
+ allowFutureDates: {
159
+ type: import("vue").PropType<boolean>;
160
+ default: boolean;
161
+ };
162
+ dateFormat: {
163
+ type: import("vue").PropType<string>;
164
+ default: string;
165
+ };
166
+ }>> & {
167
+ "onUpdate:modelValue"?: (val: string | Date) => any;
168
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
169
+ "update:modelValue": (val: string | Date) => void;
170
+ }, string, {
171
+ testId: string;
172
+ modelValue: string | Date;
173
+ placeholder: string;
174
+ uniqueId: string | number;
175
+ allowFutureDates: boolean;
176
+ dateFormat: string;
177
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
178
+ $slots: {
179
+ default?(_: {
180
+ formattedDate: any;
181
+ }): any;
182
+ };
183
+ }))[];
184
+ export { DatePicker, 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
+ };