@ironsource/shared-ui 2.1.12-test.72 → 2.1.12-test.73

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 (36) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  2. package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
  3. package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
  4. package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
  5. package/components/dateRange/common/DateServices.common.d.ts +6 -0
  6. package/components/dateRange/common/DateServices.common.js +87 -92
  7. package/components/dateRange/common/consts.common.d.ts +5 -0
  8. package/components/dateRange/common/consts.common.js +9 -3
  9. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  10. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  11. package/components/dateRange/v3/index.d.ts +7 -7
  12. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  13. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  14. package/components/dateRange/v4/index.d.ts +7 -7
  15. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  16. package/components/dropdown/common/Dropdown.common.js +44 -43
  17. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  18. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  19. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  20. package/components/dropdown/v4/DropdownV4.vue.d.ts +15 -0
  21. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  22. package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
  23. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  24. package/components/dropdown/v4/OptionV4.vue2.js +71 -68
  25. package/components/dropdown/v4/index.d.ts +67 -1
  26. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  27. package/components/switch/v4/SwitchV4.vue.js +3 -3
  28. package/components/switch/v4/SwitchV4.vue2.js +25 -23
  29. package/components/switch/v4/index.d.ts +11 -0
  30. package/index.d.ts +170 -16
  31. package/index.js +1 -1
  32. package/package.json +1 -1
  33. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  34. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
  35. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
  36. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
@@ -0,0 +1 @@
1
+ .chip-trigger[data-v-38354f10]{border:1px solid var(--default-outlined-border);padding:.3125rem .3125rem .3125rem .4375rem;border-radius:100px;cursor:pointer;user-select:none;display:inline-flex;max-width:250px}.chip-trigger[data-v-38354f10]:hover{border-color:var(--action-active);background:var(--action-selected)}.chip-trigger.active[data-v-38354f10]{border:none;background:var(--primary-light);padding:.375rem .375rem .375rem .5rem}.chip-trigger.active .chip-trigger--content[data-v-38354f10]{color:var(--primary-contrast-text)}.chip-trigger.active[data-v-38354f10]:hover{border:.0625rem solid var(--primary-main-50-p);padding:.3125rem .3125rem .3125rem .4375rem}.chip-trigger.open[data-v-38354f10]{border:.125rem solid var(--action-active);padding:.25rem .25rem .25rem .375rem;background:var(--action-selected)}.chip-trigger.open.active[data-v-38354f10]{border:.125rem solid var(--primary-main-50-p);background:var(--primary-light);padding:.25rem .25rem .25rem .375rem}.chip-trigger.disabled[data-v-38354f10]{cursor:auto}.chip-trigger--content[data-v-38354f10]{color:var(--text-primary);display:flex;width:100%}.chip-trigger--content .x-circle-wrapper[data-v-38354f10]{margin-left:4px;color:var(--primary-dark)}.chip-trigger--content .x-circle-wrapper[data-v-38354f10]:hover{color:var(--primary-darker)}.chip-trigger--text[data-v-38354f10]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;width:100%}.chip-trigger--suffix[data-v-38354f10]{white-space:nowrap}.chip-trigger--icon[data-v-38354f10]{margin-left:4px;color:var(--action-active)}
@@ -0,0 +1 @@
1
+ .v-enter-active[data-v-92ead583],.v-leave-active[data-v-92ead583]{transition:opacity .25s ease}ol[data-v-92ead583],ul[data-v-92ead583],menu[data-v-92ead583]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-92ead583],.dropdown.full-width .button__container[data-v-92ead583]{width:100%}.dropdown-list-wrapper[data-v-92ead583]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-92ead583]{padding:.5rem}.list-container--multi[data-v-92ead583]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-92ead583]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-92ead583]{width:100%}.inline-search .list-container[data-v-92ead583]{padding-top:0}.no-result-container[data-v-92ead583]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-92ead583]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-92ead583]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-92ead583]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-92ead583]{min-height:0;margin-bottom:0}.image-slot[data-v-92ead583]{margin-right:.5rem}.actions-wrapper[data-v-92ead583]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-92ead583]{margin-left:.5rem}
@@ -0,0 +1 @@
1
+ .label[data-v-3dc741c1]{color:#41454d}.item-container[data-v-3dc741c1]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-3dc741c1]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-3dc741c1]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-3dc741c1],.item-container[data-v-3dc741c1]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-3dc741c1]{background-color:var(--action-selected)}.subtitle[data-v-3dc741c1]{color:#7b838c;line-height:1rem}.clear-button[data-v-3dc741c1]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-3dc741c1]:hover{color:#3083ff}.item[data-v-3dc741c1]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-3dc741c1],.item--multi[data-v-3dc741c1]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-3dc741c1]{width:20px;height:20px;flex:none}.item .image img[data-v-3dc741c1]{width:20px;height:20px;border-radius:4px}.item .flag[data-v-3dc741c1]{width:16px;height:16px}.item .flag img[data-v-3dc741c1]{width:16px;height:16px;border-radius:50%}.item .start-icon[data-v-3dc741c1],.item .end-icon[data-v-3dc741c1]{display:flex;color:var(--action-active)}.item .end-text-icon[data-v-3dc741c1]{display:inline-flex}.item .option-text[data-v-3dc741c1]{line-height:1.1875rem}.text-container[data-v-3dc741c1]{width:100%;text-overflow:ellipsis;overflow:hidden}.v4-tooltip.tooltip-option[data-v-3dc741c1]{display:block}.tooltip-option[data-v-3dc741c1] .container{width:100%}.app-trigger--icon[data-v-3dc741c1]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-3dc741c1]{transform:rotate(0)}.option-warning[data-v-3dc741c1]{display:flex}.option-warning__icon[data-v-3dc741c1]{color:var(--warning-main)}.option-content[data-v-3dc741c1]{display:flex}.option-content[data-v-3dc741c1]:not(.option-content-vertical){gap:.5rem;align-items:center}.option-content-horizontal[data-v-3dc741c1]{justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-3dc741c1]{flex-direction:column}.option-text .main-text[data-v-3dc741c1]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .main-text .conditional-option-label[data-v-3dc741c1]{color:var(--text-secondary);display:inline-flex}.option-text .main-text .conditional-option-value[data-v-3dc741c1]{margin-left:4px;display:inline-flex;color:var(--primary-main)}.option-text .caption-text[data-v-3dc741c1]{color:var(--text-secondary)}.multiline-tooltip[data-v-3dc741c1]{display:flex;flex-direction:column}
@@ -0,0 +1 @@
1
+ .switch[data-v-fa120cf6]{position:relative;display:inline-flex;background:var(--default-main);border-radius:var(--border-radius-md);border:1px solid var(--default-outlined-border);overflow:hidden}.switch--variant-primary .option--selected[data-v-fa120cf6]{background:var(--primary-main-8-p)}.switch--variant-default .option--selected[data-v-fa120cf6]{background:var(--action-selected)}.switch--variant-default .option--selected[data-v-fa120cf6] .icon{color:var(--text-primary)}.option[data-v-fa120cf6]{border-radius:0;padding:3px}.option[data-v-fa120cf6]:not(:last-child){border-right:1px solid var(--default-outlined-border)}
@@ -117,6 +117,12 @@ declare class DateServices {
117
117
  to?: Date;
118
118
  };
119
119
  };
120
+ last9months: {
121
+ dates(): {
122
+ from?: Date;
123
+ to?: Date;
124
+ };
125
+ };
120
126
  last12months: {
121
127
  dates(): {
122
128
  from?: Date;
@@ -1,6 +1,6 @@
1
- import { isSameDay as C, format as l } from "date-fns";
2
- const m = "MMM d, yyyy", u = 7;
3
- class c {
1
+ import { isSameDay as g, format as m } from "date-fns";
2
+ const y = "MMM d, yyyy", D = 7;
3
+ class C {
4
4
  // eslint-disable-next-line class-methods-use-this
5
5
  getCurrentTimeUTC() {
6
6
  const n = /* @__PURE__ */ new Date();
@@ -12,23 +12,23 @@ class c {
12
12
  }
13
13
  // eslint-disable-next-line consistent-return
14
14
  getDateRangeString(n) {
15
- if (C(n.fromStart, n.toEnd))
16
- return l(n.fromStart, m);
15
+ if (g(n.fromStart, n.toEnd))
16
+ return m(n.fromStart, y);
17
17
  if (n.fromStart && n.toEnd)
18
- return `${l(n.fromStart, m)} - ${l(
18
+ return `${m(n.fromStart, y)} - ${m(
19
19
  n.toEnd,
20
- m
20
+ y
21
21
  )}`;
22
22
  }
23
23
  // eslint-disable-next-line class-methods-use-this
24
24
  getFirstDayOfWeek(n) {
25
- const a = new Date(n), r = a.getDay(), s = a.getDate() - r;
26
- return a.setDate(s), a;
25
+ const a = new Date(n), r = a.getDay(), e = a.getDate() - r;
26
+ return a.setDate(e), a;
27
27
  }
28
28
  getLastDayOfWeek(n) {
29
29
  let a = new Date(n);
30
- const r = a.getDay(), s = a.getDate() + (6 - r);
31
- a.setDate(s);
30
+ const r = a.getDay(), e = a.getDate() + (6 - r);
31
+ a.setDate(e);
32
32
  const t = this.getCurrentTimeUTC();
33
33
  return a > t && (a = t), a;
34
34
  }
@@ -37,33 +37,40 @@ class c {
37
37
  let r = new Date(n.getFullYear(), n.getMonth() + 1, 0);
38
38
  return r > a && (r = a), r;
39
39
  }
40
- createMonth(n, a, r = !0, e = !0) {
41
- const s = {
40
+ createMonth(n, a, r = !0, o = !0) {
41
+ const e = {
42
42
  weeks: [],
43
43
  days: {},
44
44
  month: n,
45
45
  year: a
46
46
  };
47
- let t, o;
48
- const T = new Date(a, n, 1).getDay();
49
- let D = 1;
50
- const i = /* @__PURE__ */ new Date();
51
- i.setHours(0, 0, 0, 0);
52
- const g = this.daysInMonth(n, a);
53
- for (let d = 0; d < 6; d++) {
54
- o = [];
55
- for (let f = 0; f < 7; f++)
56
- t = {}, d === 0 && T > 0 && f < T && (t.value = 0), D > g && (t.value = 0), !t.value && t.value !== 0 && (t.value = D, D += 1, s.days[t.value] = t, t.date = new Date(a, n, t.value), i < t.date && e ? t.isFuture = !0 : t.date.getTime() === i.getTime() && (t.isToday = !0, r || (t.disabled = !0))), o.push(t);
57
- this.isWeekEmpty(o) || s.weeks.push(o);
47
+ let t, s;
48
+ const c = new Date(a, n, 1).getDay();
49
+ let i = 1;
50
+ const d = /* @__PURE__ */ new Date();
51
+ d.setHours(0, 0, 0, 0);
52
+ const T = this.daysInMonth(n, a);
53
+ for (let f = 0; f < 6; f++) {
54
+ s = [];
55
+ for (let l = 0; l < 7; l++)
56
+ t = {}, f === 0 && c > 0 && l < c && (t.value = 0), i > T && (t.value = 0), !t.value && t.value !== 0 && (t.value = i, i += 1, e.days[t.value] = t, t.date = new Date(a, n, t.value), d < t.date && o ? t.isFuture = !0 : t.date.getTime() === d.getTime() && (t.isToday = !0, r || (t.disabled = !0))), s.push(t);
57
+ this.isWeekEmpty(s) || e.weeks.push(s);
58
58
  }
59
- return s;
59
+ return e;
60
60
  }
61
61
  isWeekEmpty(n) {
62
62
  return n.every((a) => !a.value);
63
63
  }
64
64
  // eslint-disable-next-line class-methods-use-this
65
65
  getPresetsFunctions(n = !0) {
66
- const a = n, r = this;
66
+ const a = n, r = this, o = (e) => {
67
+ const t = {}, s = r.getCurrentTimeUTC(), u = new Date(
68
+ s.getFullYear(),
69
+ s.getMonth() - (e - 1),
70
+ 1
71
+ );
72
+ return (t.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0), t.from = u, t;
73
+ };
67
74
  return {
68
75
  today: {
69
76
  dates() {
@@ -82,167 +89,155 @@ class c {
82
89
  last7days: {
83
90
  dates() {
84
91
  const e = {};
85
- let s = 0, t = 6 * 24 * 3600 * 1e3;
86
- return a || (s = 24 * 3600 * 1e3, t = 7 * 24 * 3600 * 1e3), e.from = new Date(
87
- r.getCurrentTimeUTC() - t
92
+ let t = 0, s = 6 * 24 * 3600 * 1e3;
93
+ return a || (t = 24 * 3600 * 1e3, s = 7 * 24 * 3600 * 1e3), e.from = new Date(
94
+ r.getCurrentTimeUTC() - s
88
95
  ), e.to = new Date(
89
- r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - s
96
+ r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - t
90
97
  ), e;
91
98
  }
92
99
  },
93
100
  last14days: {
94
101
  dates() {
95
102
  const e = {};
96
- let s = 0, t = 13 * 24 * 3600 * 1e3;
97
- return a || (s = 24 * 3600 * 1e3, t = 14 * 24 * 3600 * 1e3), e.from = new Date(
98
- r.getCurrentTimeUTC() - t
103
+ let t = 0, s = 13 * 24 * 3600 * 1e3;
104
+ return a || (t = 24 * 3600 * 1e3, s = 14 * 24 * 3600 * 1e3), e.from = new Date(
105
+ r.getCurrentTimeUTC() - s
99
106
  ), e.to = new Date(
100
- r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - s
107
+ r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - t
101
108
  ), e;
102
109
  }
103
110
  },
104
111
  last30days: {
105
112
  dates() {
106
113
  const e = {};
107
- let s = 0, t = 29 * 24 * 3600 * 1e3;
108
- return a || (s = 24 * 3600 * 1e3, t = 30 * 24 * 3600 * 1e3), e.from = new Date(
109
- r.getCurrentTimeUTC() - t
114
+ let t = 0, s = 29 * 24 * 3600 * 1e3;
115
+ return a || (t = 24 * 3600 * 1e3, s = 30 * 24 * 3600 * 1e3), e.from = new Date(
116
+ r.getCurrentTimeUTC() - s
110
117
  ), e.to = new Date(
111
- r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - s
118
+ r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - t
112
119
  ), e;
113
120
  }
114
121
  },
115
122
  last31days: {
116
123
  dates() {
117
124
  const e = {};
118
- let s = 0, t = 30 * 24 * 3600 * 1e3;
119
- return a || (s = 24 * 3600 * 1e3, t = 31 * 24 * 3600 * 1e3), e.from = new Date(
120
- r.getCurrentTimeUTC() - t
125
+ let t = 0, s = 30 * 24 * 3600 * 1e3;
126
+ return a || (t = 24 * 3600 * 1e3, s = 31 * 24 * 3600 * 1e3), e.from = new Date(
127
+ r.getCurrentTimeUTC() - s
121
128
  ), e.to = new Date(
122
- r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - s
129
+ r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - t
123
130
  ), e;
124
131
  }
125
132
  },
126
133
  last60days: {
127
134
  dates() {
128
135
  const e = {};
129
- let s = 0, t = 59 * 24 * 3600 * 1e3;
130
- return a || (s = 24 * 3600 * 1e3, t = 60 * 24 * 3600 * 1e3), e.from = new Date(
131
- r.getCurrentTimeUTC() - t
136
+ let t = 0, s = 59 * 24 * 3600 * 1e3;
137
+ return a || (t = 24 * 3600 * 1e3, s = 60 * 24 * 3600 * 1e3), e.from = new Date(
138
+ r.getCurrentTimeUTC() - s
132
139
  ), e.to = new Date(
133
- r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - s
140
+ r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - t
134
141
  ), e;
135
142
  }
136
143
  },
137
144
  last90days: {
138
145
  dates() {
139
146
  const e = {};
140
- let s = 0, t = 89 * 24 * 3600 * 1e3;
141
- return a || (s = 24 * 3600 * 1e3, t = 90 * 24 * 3600 * 1e3), e.from = new Date(
142
- r.getCurrentTimeUTC() - t
147
+ let t = 0, s = 89 * 24 * 3600 * 1e3;
148
+ return a || (t = 24 * 3600 * 1e3, s = 90 * 24 * 3600 * 1e3), e.from = new Date(
149
+ r.getCurrentTimeUTC() - s
143
150
  ), e.to = new Date(
144
- r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - s
151
+ r.getCurrentTimeUTC().setHours(23, 59, 59, 0) - t
145
152
  ), e;
146
153
  }
147
154
  },
148
155
  thisMonth: {
149
156
  dates() {
150
- const e = {}, s = /* @__PURE__ */ new Date(), t = new Date(s.getFullYear(), s.getMonth(), 1);
157
+ const e = {}, t = /* @__PURE__ */ new Date(), s = new Date(t.getFullYear(), t.getMonth(), 1);
151
158
  if (a)
152
159
  (e.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0);
153
160
  else {
154
- const o = new Date(
161
+ const u = new Date(
155
162
  r.getCurrentTimeUTC().setHours(0, 0, 0, 0) - 864e5
156
163
  );
157
- o < t ? e.to = t : e.to = o;
164
+ u < s ? e.to = s : e.to = u;
158
165
  }
159
- return e.from = t, e;
166
+ return e.from = s, e;
160
167
  }
161
168
  },
162
169
  lastMonth: {
163
170
  dates() {
164
- const e = {}, s = /* @__PURE__ */ new Date();
165
- return e.from = new Date(s.getFullYear(), s.getMonth() - 1, 1), e.to = new Date(s.getFullYear(), s.getMonth(), 0), e;
171
+ const e = {}, t = /* @__PURE__ */ new Date();
172
+ return e.from = new Date(t.getFullYear(), t.getMonth() - 1, 1), e.to = new Date(t.getFullYear(), t.getMonth(), 0), e;
166
173
  }
167
174
  },
168
175
  last4weeks: {
169
176
  dates() {
170
- const e = {}, s = r.getCurrentTimeUTC(), t = r.getFirstDayOfWeek(s);
177
+ const e = {}, t = r.getCurrentTimeUTC(), s = r.getFirstDayOfWeek(t);
171
178
  return e.from = new Date(
172
- t.setDate(t.getDate() - u * 3)
173
- ), e.to = new Date(s.setHours(23, 59, 59, 0)), e;
179
+ s.setDate(s.getDate() - D * 3)
180
+ ), e.to = new Date(t.setHours(23, 59, 59, 0)), e;
174
181
  }
175
182
  },
176
183
  last12weeks: {
177
184
  dates() {
178
- const e = {}, s = r.getCurrentTimeUTC(), t = r.getFirstDayOfWeek(s);
185
+ const e = {}, t = r.getCurrentTimeUTC(), s = r.getFirstDayOfWeek(t);
179
186
  return e.from = new Date(
180
- t.setDate(t.getDate() - u * 11)
181
- ), e.to = new Date(s.setHours(23, 59, 59, 0)), e;
187
+ s.setDate(s.getDate() - D * 11)
188
+ ), e.to = new Date(t.setHours(23, 59, 59, 0)), e;
182
189
  }
183
190
  },
184
191
  last26weeks: {
185
192
  dates() {
186
- const e = {}, s = r.getCurrentTimeUTC(), t = r.getFirstDayOfWeek(s);
193
+ const e = {}, t = r.getCurrentTimeUTC(), s = r.getFirstDayOfWeek(t);
187
194
  return e.from = new Date(
188
- t.setDate(t.getDate() - u * 25)
189
- ), e.to = new Date(s.setHours(23, 59, 59, 0)), e;
195
+ s.setDate(s.getDate() - D * 25)
196
+ ), e.to = new Date(t.setHours(23, 59, 59, 0)), e;
190
197
  }
191
198
  },
192
199
  last52weeks: {
193
200
  dates() {
194
- const e = {}, s = r.getCurrentTimeUTC(), t = r.getFirstDayOfWeek(s);
201
+ const e = {}, t = r.getCurrentTimeUTC(), s = r.getFirstDayOfWeek(t);
195
202
  return e.from = new Date(
196
- t.setDate(t.getDate() - u * 51)
197
- ), e.to = new Date(s.setHours(23, 59, 59, 0)), e;
203
+ s.setDate(s.getDate() - D * 51)
204
+ ), e.to = new Date(t.setHours(23, 59, 59, 0)), e;
198
205
  }
199
206
  },
200
207
  last3months: {
201
208
  dates() {
202
- const e = {}, s = r.getCurrentTimeUTC(), t = new Date(s.getFullYear(), s.getMonth() - 2, 1);
203
- return (e.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0), e.from = t, e;
209
+ return o(3);
204
210
  }
205
211
  },
206
212
  last6months: {
207
213
  dates() {
208
- const e = {}, s = r.getCurrentTimeUTC(), t = new Date(s.getFullYear(), s.getMonth() - 5, 1);
209
- return (e.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0), e.from = t, e;
214
+ return o(6);
215
+ }
216
+ },
217
+ last9months: {
218
+ dates() {
219
+ return o(9);
210
220
  }
211
221
  },
212
222
  last12months: {
213
223
  dates() {
214
- const e = {}, s = r.getCurrentTimeUTC(), t = new Date(
215
- s.getFullYear(),
216
- s.getMonth() - 11,
217
- 1
218
- );
219
- return (e.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0), e.from = t, e;
224
+ return o(12);
220
225
  }
221
226
  },
222
227
  last24months: {
223
228
  dates() {
224
- const e = {}, s = r.getCurrentTimeUTC(), t = new Date(
225
- s.getFullYear(),
226
- s.getMonth() - 23,
227
- 1
228
- );
229
- return (e.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0), e.from = t, e;
229
+ return o(24);
230
230
  }
231
231
  },
232
232
  last36months: {
233
233
  dates() {
234
- const e = {}, s = r.getCurrentTimeUTC(), t = new Date(
235
- s.getFullYear(),
236
- s.getMonth() - 35,
237
- 1
238
- );
239
- return (e.to = r.getCurrentTimeUTC()).setHours(0, 0, 0, 0), e.from = t, e;
234
+ return o(36);
240
235
  }
241
236
  }
242
237
  };
243
238
  }
244
239
  }
245
- const h = new c();
240
+ const U = new C();
246
241
  export {
247
- h as default
242
+ U as default
248
243
  };
@@ -51,4 +51,9 @@ export declare const presetsList: {
51
51
  id: string;
52
52
  numid: number;
53
53
  }[];
54
+ 'month-3-6-9-12': {
55
+ name: string;
56
+ id: string;
57
+ numid: number;
58
+ }[];
54
59
  };
@@ -4,7 +4,7 @@ const a = {
4
4
  month: "Months"
5
5
  }, s = "Date range is in an invalid format", d = "Please select a date range", t = {
6
6
  week: "For more than 52 weeks switch to months"
7
- }, n = "previous", e = "next", m = {
7
+ }, n = "previous", m = "next", e = {
8
8
  date: [
9
9
  { name: "Today", id: "today", numid: 1 },
10
10
  { name: "Yesterday", id: "yesterday", numid: 2 },
@@ -62,14 +62,20 @@ const a = {
62
62
  { name: "Last 12 months", id: "last12months", numid: 3 },
63
63
  { name: "Last 24 months", id: "last24months", numid: 4 },
64
64
  { name: "Last 36 months", id: "last36months", numid: 5 }
65
+ ],
66
+ "month-3-6-9-12": [
67
+ { name: "Last 3 months", id: "last3months", numid: 1 },
68
+ { name: "Last 6 months", id: "last6months", numid: 2 },
69
+ { name: "Last 9 months", id: "last9months", numid: 3 },
70
+ { name: "Last 12 months", id: "last12months", numid: 4 }
65
71
  ]
66
72
  };
67
73
  export {
68
74
  s as formatError,
69
75
  d as mandatoryValuesError,
70
76
  t as messagePerType,
71
- e as navigateNext,
77
+ m as navigateNext,
72
78
  n as navigatePrev,
73
- m as presetsList,
79
+ e as presetsList,
74
80
  a as typeToName
75
81
  };
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  includeToday?: boolean;
8
8
  allowedDays?: number;
9
9
  maxDaysInRange?: number;
10
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
10
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
11
11
  regex?: RegExp;
12
12
  dateFormat?: string;
13
13
  uniqueId?: string | number;
@@ -48,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
48
48
  includeToday?: boolean;
49
49
  allowedDays?: number;
50
50
  maxDaysInRange?: number;
51
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
51
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
52
52
  regex?: RegExp;
53
53
  dateFormat?: string;
54
54
  uniqueId?: string | number;
@@ -89,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
89
  dateFormat: string;
90
90
  types: ("date" | "week" | "month")[];
91
91
  maxDaysInRange: number;
92
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
92
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
93
93
  regex: RegExp;
94
94
  initialType: "date" | "week" | "month";
95
95
  openOnTop: boolean;
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  includeToday?: boolean;
9
9
  allowedDays?: number;
10
10
  maxDaysInRange?: number;
11
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
11
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
12
12
  regex?: RegExp;
13
13
  dateFormat?: string;
14
14
  uniqueId?: string | number;
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
44
44
  includeToday?: boolean;
45
45
  allowedDays?: number;
46
46
  maxDaysInRange?: number;
47
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
47
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
48
48
  regex?: RegExp;
49
49
  dateFormat?: string;
50
50
  uniqueId?: string | number;
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
79
79
  dateFormat: string;
80
80
  types: ("date" | "week" | "month")[];
81
81
  maxDaysInRange: number;
82
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
82
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
83
83
  regex: RegExp;
84
84
  initialType: "date" | "week" | "month";
85
85
  openOnTop: boolean;
@@ -11,7 +11,7 @@ declare const DateRangeTypes: () => ({
11
11
  dateFormat: string;
12
12
  types: ("date" | "week" | "month")[];
13
13
  maxDaysInRange: number;
14
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
14
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
15
15
  regex: RegExp;
16
16
  initialType: "date" | "week" | "month";
17
17
  openOnTop: boolean;
@@ -58,7 +58,7 @@ declare const DateRangeTypes: () => ({
58
58
  default: any;
59
59
  };
60
60
  datePresetList: {
61
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
61
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
62
62
  default: string;
63
63
  };
64
64
  regex: {
@@ -146,7 +146,7 @@ declare const DateRangeTypes: () => ({
146
146
  default: any;
147
147
  };
148
148
  datePresetList: {
149
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
149
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
150
150
  default: string;
151
151
  };
152
152
  regex: {
@@ -195,7 +195,7 @@ declare const DateRangeTypes: () => ({
195
195
  dateFormat: string;
196
196
  types: ("date" | "week" | "month")[];
197
197
  maxDaysInRange: number;
198
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
198
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
199
199
  regex: RegExp;
200
200
  initialType: "date" | "week" | "month";
201
201
  openOnTop: boolean;
@@ -262,7 +262,7 @@ declare const DateRangeTypes: () => ({
262
262
  default: any;
263
263
  };
264
264
  datePresetList: {
265
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
265
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
266
266
  default: string;
267
267
  };
268
268
  regex: {
@@ -340,7 +340,7 @@ declare const DateRangeTypes: () => ({
340
340
  default: any;
341
341
  };
342
342
  datePresetList: {
343
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
343
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
344
344
  default: string;
345
345
  };
346
346
  regex: {
@@ -389,7 +389,7 @@ declare const DateRangeTypes: () => ({
389
389
  dateFormat: string;
390
390
  types: ("date" | "week" | "month")[];
391
391
  maxDaysInRange: number;
392
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
392
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
393
393
  regex: RegExp;
394
394
  initialType: "date" | "week" | "month";
395
395
  openOnTop: boolean;
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  includeToday?: boolean;
9
9
  allowedDays?: number;
10
10
  maxDaysInRange?: number;
11
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
11
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
12
12
  regex?: RegExp;
13
13
  dateFormat?: string;
14
14
  uniqueId?: string | number;
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
44
44
  includeToday?: boolean;
45
45
  allowedDays?: number;
46
46
  maxDaysInRange?: number;
47
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
47
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
48
48
  regex?: RegExp;
49
49
  dateFormat?: string;
50
50
  uniqueId?: string | number;
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
79
79
  dateFormat: string;
80
80
  types: ("date" | "week" | "month")[];
81
81
  maxDaysInRange: number;
82
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
82
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
83
83
  regex: RegExp;
84
84
  initialType: "date" | "week" | "month";
85
85
  openOnTop: boolean;
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  includeToday?: boolean;
8
8
  allowedDays?: number;
9
9
  maxDaysInRange?: number;
10
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
10
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
11
11
  regex?: RegExp;
12
12
  dateFormat?: string;
13
13
  uniqueId?: string | number;
@@ -48,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
48
48
  includeToday?: boolean;
49
49
  allowedDays?: number;
50
50
  maxDaysInRange?: number;
51
- datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
51
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
52
52
  regex?: RegExp;
53
53
  dateFormat?: string;
54
54
  uniqueId?: string | number;
@@ -89,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
89
  dateFormat: string;
90
90
  types: ("date" | "week" | "month")[];
91
91
  maxDaysInRange: number;
92
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
92
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
93
93
  regex: RegExp;
94
94
  initialType: "date" | "week" | "month";
95
95
  openOnTop: boolean;
@@ -11,7 +11,7 @@ declare const DateRangeTypes: () => ({
11
11
  dateFormat: string;
12
12
  types: ("date" | "week" | "month")[];
13
13
  maxDaysInRange: number;
14
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
14
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
15
15
  regex: RegExp;
16
16
  initialType: "date" | "week" | "month";
17
17
  openOnTop: boolean;
@@ -58,7 +58,7 @@ declare const DateRangeTypes: () => ({
58
58
  default: any;
59
59
  };
60
60
  datePresetList: {
61
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
61
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
62
62
  default: string;
63
63
  };
64
64
  regex: {
@@ -146,7 +146,7 @@ declare const DateRangeTypes: () => ({
146
146
  default: any;
147
147
  };
148
148
  datePresetList: {
149
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
149
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
150
150
  default: string;
151
151
  };
152
152
  regex: {
@@ -195,7 +195,7 @@ declare const DateRangeTypes: () => ({
195
195
  dateFormat: string;
196
196
  types: ("date" | "week" | "month")[];
197
197
  maxDaysInRange: number;
198
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
198
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
199
199
  regex: RegExp;
200
200
  initialType: "date" | "week" | "month";
201
201
  openOnTop: boolean;
@@ -262,7 +262,7 @@ declare const DateRangeTypes: () => ({
262
262
  default: any;
263
263
  };
264
264
  datePresetList: {
265
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
265
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
266
266
  default: string;
267
267
  };
268
268
  regex: {
@@ -340,7 +340,7 @@ declare const DateRangeTypes: () => ({
340
340
  default: any;
341
341
  };
342
342
  datePresetList: {
343
- type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
343
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12">;
344
344
  default: string;
345
345
  };
346
346
  regex: {
@@ -389,7 +389,7 @@ declare const DateRangeTypes: () => ({
389
389
  dateFormat: string;
390
390
  types: ("date" | "week" | "month")[];
391
391
  maxDaysInRange: number;
392
- datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
392
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "month-3-6-9-12";
393
393
  regex: RegExp;
394
394
  initialType: "date" | "week" | "month";
395
395
  openOnTop: boolean;