@ironsource/shared-ui 2.1.6-test.4 → 2.1.6-test.6

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.
@@ -0,0 +1 @@
1
+ .label[data-v-a80364bd]{color:#41454d}.days-wrapper[data-v-a80364bd]{color:#53575b}.days-wrapper .date-wrapper[data-v-a80364bd]{position:relative;width:32px;height:32px;display:inline-block;text-align:center;margin-bottom:4px;line-height:21px;box-sizing:border-box}.days-wrapper .date-wrapper.start-day-wrapper[data-v-a80364bd]{background:var(--primary-light, #cee7fe);border-radius:100% 0% 0% 100%}.days-wrapper .date-wrapper.end-day-wrapper[data-v-a80364bd]{background:var(--primary-light, #cee7fe);border-radius:0% 100% 100% 0%}.days-wrapper .date-wrapper.start-day-wrapper.end-day-wrapper[data-v-a80364bd]{background-color:transparent!important}.days-wrapper .date-wrapper.start-day-wrapper.end-day-wrapper[data-v-a80364bd]:before{content:"";display:block;position:absolute;background:var(--primary-main, #0091ff);width:32px;height:32px;left:50%;top:0;margin-left:-16px;border-radius:100px;z-index:-1}.days-wrapper .day[data-v-a80364bd]{position:relative;width:32px;height:32px;display:inline-block;text-align:center;padding:5px;margin-bottom:4px;line-height:21px;box-sizing:border-box;cursor:pointer}.days-wrapper .day[data-v-a80364bd]:not(.non-day):not(.disabled-day):not(.selected-day):hover:not(.selected-day-between):before{content:"";display:block;position:absolute;background:var(--primary-main50p, rgba(0, 145, 255, .5));width:32px;height:32px;left:50%;top:0;margin-left:-16px;border-radius:100px;z-index:-1}.days-wrapper .day.today[data-v-a80364bd]:after{content:"";background:#3083ff;position:absolute;text-align:center;width:4px;height:4px;border-radius:100%;bottom:4px;left:50%;margin-left:-2px}.days-wrapper .day.today.selected-day[data-v-a80364bd]:after,.days-wrapper .day.today.selected-day-between[data-v-a80364bd]:after{background:#ffffff}.days-wrapper .day.start-day[data-v-a80364bd]{border-radius:100px 0 0 100px}.days-wrapper .day.end-day[data-v-a80364bd]{border-radius:0 100px 100px 0}.days-wrapper .day.start-day.end-day[data-v-a80364bd]{background-color:transparent!important}.days-wrapper .day.start-day.end-day[data-v-a80364bd]:before{content:"";display:block;position:absolute;background:var(--primary-main, #0091ff);width:32px;height:32px;left:50%;top:0;margin-left:-16px;border-radius:100px;z-index:-1}.days-wrapper .day.selected-day-between[data-v-a80364bd]{color:#53575b;background:var(--primary-light, #cee7fe)}.days-wrapper .day.selected-day-between[data-v-a80364bd]:hover{background-color:var(--primary-main50p, rgba(0, 145, 255, .5));color:#696a6b}.days-wrapper .day.selected-day[data-v-a80364bd]{background:var(--primary-main, #0091ff)!important;border-radius:100%;color:#fff}.days-wrapper .day.selected-day[data-v-a80364bd]:hover{color:#fff}.days-wrapper .day.disabled-day[data-v-a80364bd]{color:#a9afb4;cursor:default;background:transparent}.days-wrapper .day.non-day[data-v-a80364bd]{color:transparent;cursor:default;background:transparent}.calendar-month[data-v-a80364bd]{user-select:none;box-sizing:unset;padding:0;overflow:hidden;position:relative;width:224px;margin:auto}.calendar-month .days-header[data-v-a80364bd]{padding:21px 0 14px;color:#8e959d}.calendar-month .days-header span[data-v-a80364bd]{width:32px;display:inline-block;text-align:center}.calendar-month .month-header[data-v-a80364bd]{padding-top:13px;padding-bottom:3px;text-align:center;color:#53575b}.calendar-month .next[data-v-a80364bd]{right:4px;cursor:pointer;position:absolute;z-index:16}.calendar-month .next[data-v-a80364bd],.calendar-month .previous[data-v-a80364bd]{transform:translateY(8px)}.calendar-month .previous[data-v-a80364bd]{left:4px;cursor:pointer;position:absolute;z-index:16}
@@ -0,0 +1 @@
1
+ .label[data-v-11288104]{color:#41454d}
@@ -0,0 +1 @@
1
+ .label[data-v-a5757773]{color:#41454d}.date-picker[data-v-a5757773]{position:relative}.date-picker .input[data-v-a5757773]{max-width:100%}.date-picker-popup[data-v-a5757773]{width:252px;padding:16px;position:absolute;top:38px;left:0;z-index:1000!important;background-color:#fff;border-radius:.5rem;box-shadow:0 2px 4px #0000004d}.date-picker-popup.align-right[data-v-a5757773]{left:inherit;right:0}
@@ -0,0 +1 @@
1
+ .label[data-v-590bb1db]{color:#41454d}.pop-up[data-v-590bb1db]{width:652px;position:absolute;z-index:1000;top:32px;box-shadow:0 8px 24px -6px #00000029,0 0 1px #0006;background-color:#fff;border-radius:8px;left:1px;overflow:hidden}.pop-up.open-on-top[data-v-590bb1db]{top:0}.pop-up.hide-presets[data-v-590bb1db],.pop-up.hide-presets .calendar-wrap[data-v-590bb1db]{width:494px}.pop-up.hide-presets .date-picker-calendar[data-v-590bb1db]{padding:15px 16px}.pop-up .date-picker-menu[data-v-590bb1db]{width:164px;background:#ffffff;vertical-align:top;border-right:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-paper, #fcfcfc)}.pop-up .date-picker-menu .preset-element[data-v-590bb1db]{padding-left:8px;height:32px;border-radius:8px;color:#53575b;line-height:32px}.pop-up .date-picker-menu .preset-element[data-v-590bb1db]:hover{background:var(--action-hover, rgba(0, 0, 0, .05))}.pop-up .date-picker-menu .selected-preset[data-v-590bb1db]{border-radius:8px;background:var(--action-selected, #ebebeb)}.pop-up .date-picker-menu li[data-v-590bb1db]{cursor:pointer;margin-bottom:2px}.pop-up .left-box[data-v-590bb1db]{left:-1px}.pop-up .date-picker-calendar[data-v-590bb1db]{box-sizing:border-box;height:100%;padding:15px 0;display:grid;grid-template-columns:1fr 1fr;grid-gap:18px}.pop-up .calendars-wrapper[data-v-590bb1db]{padding-left:6px}.pop-up .preset-dropdown ul[data-v-590bb1db]{list-style:none;margin:0;padding:8px;line-height:32px}.pop-up .buttons-cover[data-v-590bb1db]{height:48px;position:absolute;bottom:0;width:calc(100% + 10px);right:-10px;box-sizing:border-box;border-top:1px solid #dddfe1;align-items:center;display:flex;justify-content:space-between;padding:12px 24px}.pop-up .buttons-cover .text-container[data-v-590bb1db]{flex:1;color:var(--text-secondary, #646464)}.pop-up button[data-v-590bb1db]{float:right;margin-left:4px}.pop-up .error[data-v-590bb1db]{display:none;position:absolute;left:270px;top:22px}.pop-up .inline-block[data-v-590bb1db]{display:inline-block}.pop-up.right[data-v-590bb1db]{left:initial;right:1px}.calendar-wrap[data-v-590bb1db]{width:478px;height:372px;position:relative;border-bottom-right-radius:8px;border-top-right-radius:8px;vertical-align:top}.type-picker[data-v-590bb1db]{height:60px;line-height:60px;padding-left:15px;box-shadow:0 1px 3px #0000003b}.range-type[data-v-590bb1db]{color:#8e959d;padding-left:15px;padding-right:15px;cursor:pointer}.selected-range-type[data-v-590bb1db]{color:#fff;background-color:#3083ff;border-radius:20px;padding:6px 15px;cursor:default}.date-range-field[data-v-590bb1db]{display:inline-block;width:100%;height:30px;position:relative;cursor:pointer;border-radius:3px}.date-range-field.selected-item-as-title[data-v-590bb1db]{left:0;border:none;background-image:none;max-width:100%;height:22px;color:#3083ff;overflow:visible}.date-range-field.selected-item-as-title .small-triangle[data-v-590bb1db]{right:-25px}.date-range-field.selected-item-as-title .small-triangle[data-v-590bb1db]:after{border-top-color:currentColor}.date-range-field.selected-item-as-title span[data-v-590bb1db]{padding-left:12px}.date-range-field.no-button-limit[data-v-590bb1db]{overflow:visible}.date-range-field.no-button-limit span[data-v-590bb1db]{width:100%;line-height:22px}.date-range-field span[data-v-590bb1db]{line-height:28px;padding-left:15px;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(100% - 26px);white-space:nowrap;position:relative}.date-range-disabled .date-range-field[data-v-590bb1db]{cursor:default;color:#8e959d;pointer-events:none}.date-range-disabled .small-triangle[data-v-590bb1db]:after{border-top-color:#8e959d}.pop-up-content[data-v-590bb1db]{margin-top:1px}.type-message[data-v-590bb1db]{color:#8e959d;padding:10px 20px;line-height:1.5}.relative-wrap[data-v-590bb1db]{position:relative}.space-right[data-v-590bb1db]{margin-right:13px}.space-left[data-v-590bb1db]{margin-left:9px}.top-date[data-v-590bb1db]{line-height:13px}.flex[data-v-590bb1db]{display:flex}
@@ -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,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,6 @@
1
+ import e from "./DatePickerV4.vue.js";
2
+ const t = () => [e];
3
+ export {
4
+ e as DatePicker,
5
+ t as DatePickerTypes
6
+ };
@@ -2,7 +2,7 @@ const a = {
2
2
  date: "Days",
3
3
  week: "Weeks",
4
4
  month: "Months"
5
- }, s = "Date range is in an invalid format", t = "Please select a date range", d = {
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
7
  }, n = "previous", e = "next", i = {
8
8
  date: [
@@ -11,8 +11,7 @@ const a = {
11
11
  { name: "Last 7 Days", id: "last7days", numid: 3 },
12
12
  { name: "Last 14 Days", id: "last14days", numid: 4 },
13
13
  { name: "Last 30 Days", id: "last30days", numid: 7 },
14
- { name: "This Month", id: "thisMonth", numid: 5 },
15
- { name: "Last Month", id: "lastMonth", numid: 6 }
14
+ { name: "This Month", id: "thisMonth", numid: 5 }
16
15
  ],
17
16
  "date1-7-14-30-90": [
18
17
  { name: "Today", id: "today", numid: 1 },
@@ -20,7 +19,6 @@ const a = {
20
19
  { name: "Last 7 Days", id: "last7days", numid: 3 },
21
20
  { name: "Last 14 Days", id: "last14days", numid: 4 },
22
21
  { name: "This Month", id: "thisMonth", numid: 5 },
23
- { name: "Last Month", id: "lastMonth", numid: 6 },
24
22
  { name: "Last 30 Days", id: "last30days", numid: 7 },
25
23
  { name: "Last 90 Days", id: "last90days", numid: 9 }
26
24
  ],
@@ -43,7 +41,6 @@ const a = {
43
41
  { name: "Last 7 Days", id: "last7days", numid: 3 },
44
42
  { name: "Last 14 Days", id: "last14days", numid: 4 },
45
43
  { name: "This Month", id: "thisMonth", numid: 5 },
46
- { name: "Last Month", id: "lastMonth", numid: 6 },
47
44
  { name: "Last 30 Days", id: "last30days", numid: 7 }
48
45
  ],
49
46
  dateWithoutLastMonth: [
@@ -51,8 +48,7 @@ const a = {
51
48
  { name: "Yesterday", id: "yesterday", numid: 2 },
52
49
  { name: "Last 7 Days", id: "last7days", numid: 3 },
53
50
  { name: "Last 14 Days", id: "last14days", numid: 4 },
54
- { name: "Last 30 Days", id: "last30days", numid: 5 },
55
- { name: "This Month", id: "thisMonth", numid: 6 }
51
+ { name: "Last 30 Days", id: "last30days", numid: 5 }
56
52
  ],
57
53
  week: [
58
54
  { name: "Last 4 Weeks", id: "last4weeks", numid: 1 },
@@ -70,8 +66,8 @@ const a = {
70
66
  };
71
67
  export {
72
68
  s as formatError,
73
- t as mandatoryValuesError,
74
- d as messagePerType,
69
+ d as mandatoryValuesError,
70
+ t as messagePerType,
75
71
  e as navigateNext,
76
72
  n as navigatePrev,
77
73
  i as presetsList,
@@ -0,0 +1,7 @@
1
+ import o from "./CalendarMonthV4.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../CalendarMonthV4.vue_vue_type_style_index_0_scoped_a80364bd_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a80364bd"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,133 @@
1
+ import "../../../CalendarMonthV4.vue_vue_type_style_index_0_scoped_a80364bd_lang.css"; import { defineComponent as z, openBlock as n, createElementBlock as i, unref as e, createElementVNode as s, createBlock as m, createCommentVNode as D, createVNode as E, withCtx as c, createTextVNode as v, toDisplayString as o, Fragment as f, renderList as $, normalizeClass as w } from "vue";
2
+ import { navigatePrev as C, navigateNext as I } from "../common/consts.common.js";
3
+ import "../../typography/Heading.vue.js";
4
+ import N from "../../typography/Text.vue.js";
5
+ import { calendarMonthCommon as B } from "../common/CalendarMonth.common.js";
6
+ import "../../button/v4/ButtonV4.vue.js";
7
+ import T from "../../button/v4/IconButtonV4.vue.js";
8
+ import H from "../../typography/v4/Typography.vue.js";
9
+ import { CalendarMonthTestIdModifiers as d } from "../../../testids/index.js";
10
+ const S = ["id", "data-testid"], b = ["data-testid"], F = ["data-testid"], O = ["data-testid"], Z = /* @__PURE__ */ z({
11
+ __name: "CalendarMonthV4",
12
+ props: {
13
+ year: null,
14
+ days: null,
15
+ weeks: null,
16
+ month: null,
17
+ navigation: null,
18
+ range: null,
19
+ type: null,
20
+ id: { default: Date.now() },
21
+ allowedDays: { default: null },
22
+ maxAllowedDate: { default: null },
23
+ testId: { default: "" }
24
+ },
25
+ emits: ["selectionChanged", "navigation"],
26
+ setup(t, { emit: x }) {
27
+ const A = t, {
28
+ isEndDay: y,
29
+ isStartDay: g,
30
+ navigate: h,
31
+ selectDay: p,
32
+ monthName: M,
33
+ dayNames: R,
34
+ selectedDaysMap: k,
35
+ inBetweenMap: P
36
+ } = B(A, x);
37
+ return (Y, r) => (n(), i("div", {
38
+ id: "datepickerCalendar" + t.id,
39
+ class: "calendar-month",
40
+ "data-testid": `${t.testId}-${e(d).WRAPPER}`
41
+ }, [
42
+ s("span", {
43
+ onClick: r[0] || (r[0] = (l) => e(h)(e(C)))
44
+ }, [
45
+ t.navigation === e(C) || t.navigation === "all" ? (n(), m(e(T), {
46
+ key: 0,
47
+ size: "medium",
48
+ class: "previous",
49
+ "data-testid": `${t.testId}-${e(d).PREVIOUS}`,
50
+ "icon-name": "caret-left"
51
+ }, null, 8, ["data-testid"])) : D("", !0)
52
+ ]),
53
+ s("span", {
54
+ onClick: r[1] || (r[1] = (l) => e(h)(e(I)))
55
+ }, [
56
+ t.navigation === e(I) || t.navigation === "all" ? (n(), m(e(T), {
57
+ key: 0,
58
+ class: "next",
59
+ size: "medium",
60
+ "icon-name": "caret-right",
61
+ "data-testid": `${t.testId}-${e(d).NEXT}`
62
+ }, null, 8, ["data-testid"])) : D("", !0)
63
+ ]),
64
+ s("div", {
65
+ class: "month-header",
66
+ "data-testid": `${t.testId}-${e(d).MONTH_HEADER}`
67
+ }, [
68
+ E(e(H), {
69
+ variant: "h4",
70
+ "test-id": `${t.testId}-${e(d).MONTH_HEADER_TEXT}`
71
+ }, {
72
+ default: c(() => [
73
+ v(o(e(M)) + " " + o(t.year), 1)
74
+ ]),
75
+ _: 1
76
+ }, 8, ["test-id"]),
77
+ s("div", {
78
+ class: "days-header",
79
+ "data-testid": `${t.testId}-${e(d).DAYS_HEADER}`
80
+ }, [
81
+ (n(!0), i(f, null, $(e(R), (l, u) => (n(), m(e(N), {
82
+ key: u,
83
+ size: "xs"
84
+ }, {
85
+ default: c(() => [
86
+ v(o(l), 1)
87
+ ]),
88
+ _: 2
89
+ }, 1024))), 128))
90
+ ], 8, F)
91
+ ], 8, b),
92
+ s("div", {
93
+ class: "days-wrapper",
94
+ "data-testid": `${t.testId}-${e(d).DAYS_WRAPPER}`
95
+ }, [
96
+ (n(!0), i(f, null, $(t.weeks, (l, u) => (n(), i("div", { key: u }, [
97
+ (n(!0), i(f, null, $(l, (a, V) => (n(), i("span", {
98
+ key: V,
99
+ class: w(["date-wrapper", {
100
+ "selected-day-wrapper": e(k)[a.value],
101
+ "start-day-wrapper": e(g)(a),
102
+ "end-day-wrapper": e(y)(a)
103
+ }])
104
+ }, [
105
+ E(e(N), {
106
+ class: w(["day", {
107
+ "selected-day": e(k)[a.value],
108
+ "selected-day-between": e(P)[a.value],
109
+ today: a.isToday,
110
+ "disabled-day": a.isFuture || a.disabled,
111
+ "non-day": a.value === 0,
112
+ "start-day": e(g)(a),
113
+ "end-day": e(y)(a)
114
+ }]),
115
+ size: "sm",
116
+ strong: "",
117
+ "data-testid": `${t.testId}-${e(d).DAY}-${a.value}`,
118
+ onClick: (W) => a.disabled || a.isFuture || e(p)(a)
119
+ }, {
120
+ default: c(() => [
121
+ v(o(a.value), 1)
122
+ ]),
123
+ _: 2
124
+ }, 1032, ["class", "data-testid", "onClick"])
125
+ ], 2))), 128))
126
+ ]))), 128))
127
+ ], 8, O)
128
+ ], 8, S));
129
+ }
130
+ });
131
+ export {
132
+ Z as default
133
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./DateRangeV4.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_590bb1db_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-590bb1db"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,251 @@
1
+ import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_590bb1db_lang.css"; import { defineComponent as Q, resolveComponent as X, openBlock as s, createElementBlock as n, unref as e, normalizeClass as o, createElementVNode as d, renderSlot as D, createVNode as l, withCtx as r, createTextVNode as c, toDisplayString as y, withDirectives as f, Fragment as h, renderList as v, createCommentVNode as x, vShow as k, normalizeStyle as Z, setBlockTracking as b } from "vue";
2
+ import _ from "./CalendarMonthV4.vue.js";
3
+ import { typeToName as ee, messagePerType as te } from "../common/consts.common.js";
4
+ import C from "../../button/v4/ButtonV4.vue.js";
5
+ import "../../button/v4/IconButtonV4.vue.js";
6
+ import { DateRangeTestIdModifiers as i, DatePickerTestIdModifiers as ae } from "../../../testids/index.js";
7
+ import { dateRangeCommon as de } from "../common/DateRange.common.js";
8
+ import R from "../../typography/v4/Typography.vue.js";
9
+ const se = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid"], le = {
10
+ key: 0,
11
+ class: "type-picker"
12
+ }, oe = ["onClick"], re = ["data-testid"], ce = ["id"], ue = ["id"], me = ["onClick"], ye = { class: "dropdown-rightTriangle" }, ge = ["data-testid"], pe = { class: "date-picker-calendar left-box" }, fe = { class: "buttons-cover" }, he = { class: "range" }, ve = { class: "text-container" }, De = /* @__PURE__ */ Q({
13
+ __name: "DateRangeV4",
14
+ props: {
15
+ range: null,
16
+ types: { default: () => ["date"] },
17
+ includeToday: { type: Boolean, default: !0 },
18
+ allowedDays: { default: null },
19
+ maxDaysInRange: { default: null },
20
+ datePresetList: { default: "date" },
21
+ regex: { default: () => /^(1[0-2]|0?[1-9])\/[\d]{1,2}\/[\d]{4}$/ },
22
+ dateFormat: { default: "mm/dd/yyyy" },
23
+ uniqueId: { default: Date.now() },
24
+ disabled: { type: Boolean, default: !1 },
25
+ initialType: { default: null },
26
+ openOnTop: { type: Boolean, default: !1 },
27
+ showPresets: { type: Boolean, default: !0 },
28
+ maxDate: { default: null },
29
+ testId: { default: "" }
30
+ },
31
+ emits: [
32
+ "rangeTypeChanged",
33
+ "currentDateChanged",
34
+ "rangeChanged",
35
+ "dateRangePresetNameChanged",
36
+ "opened",
37
+ "dismissed"
38
+ ],
39
+ setup(t, { emit: E }) {
40
+ const A = t, {
41
+ datePicker: M,
42
+ datePickerId: B,
43
+ getMaxAllowedDate: S,
44
+ selectedPreset: $,
45
+ displayError: q,
46
+ rangeType: p,
47
+ selectedRange: O,
48
+ placement: z,
49
+ currentDate: I,
50
+ error: L,
51
+ presets: V,
52
+ isOpen: w,
53
+ popup: U,
54
+ currentMonths: g,
55
+ displayedMonthsKeys: T,
56
+ changeType: G,
57
+ presetChanged: F,
58
+ apply: K,
59
+ getNavigation: W,
60
+ navigationCallback: Y,
61
+ selectionChanged: j,
62
+ toggle: N,
63
+ isCompact: H
64
+ } = de(A, E);
65
+ return (P, u) => {
66
+ const J = X("Text");
67
+ return s(), n("div", {
68
+ id: e(B),
69
+ ref_key: "datePicker",
70
+ ref: M,
71
+ class: o(["relative-wrap", { "date-range-disabled": t.disabled }]),
72
+ "data-testid": `${t.testId}-${e(i).WRAPPER}`
73
+ }, [
74
+ d("div", {
75
+ class: "date-range-field",
76
+ "data-testid": `${t.testId}-${e(i).TRIGGER}`,
77
+ onClick: u[0] || (u[0] = (a) => e(N)())
78
+ }, [
79
+ D(P.$slots, "field", {
80
+ currentDate: e(I),
81
+ isOpen: e(w)
82
+ }, () => [
83
+ l(e(C), {
84
+ "start-icon-name": "calendar-blank",
85
+ "end-icon-name": "caret-down",
86
+ color: "default",
87
+ variant: "outlined",
88
+ style: { marginRight: "10px" },
89
+ "data-testid": `${t.testId}-${e(ae).INPUT}`
90
+ }, {
91
+ default: r(() => [
92
+ c(y(e(I)), 1)
93
+ ]),
94
+ _: 1
95
+ }, 8, ["data-testid"])
96
+ ], !0)
97
+ ], 8, ne),
98
+ f(d("div", {
99
+ id: "datepickerPopup" + t.uniqueId,
100
+ ref_key: "popup",
101
+ ref: U,
102
+ class: o(["pop-up", [
103
+ e(z),
104
+ t.openOnTop ? "open-on-top" : "",
105
+ t.showPresets ? "" : "hide-presets"
106
+ ]]),
107
+ "data-testid": `${t.testId}-${e(i).CONTAINER}`
108
+ }, [
109
+ t.types.length > 1 ? (s(), n("div", le, [
110
+ (s(!0), n(h, null, v(t.types, (a) => (s(), n("span", {
111
+ key: a,
112
+ class: o(["range-type", { "selected-range-type": e(p) === a }]),
113
+ onClick: (m) => e(G)(a, !0)
114
+ }, [
115
+ l(J, { size: "sm" }, {
116
+ default: r(() => [
117
+ c(y(e(ee)[a]), 1)
118
+ ]),
119
+ _: 2
120
+ }, 1024)
121
+ ], 10, oe))), 128))
122
+ ])) : x("", !0),
123
+ d("div", {
124
+ class: o(["flex", { "pop-up-content": t.types.length > 1 }])
125
+ }, [
126
+ t.showPresets ? (s(), n("div", {
127
+ key: 0,
128
+ class: "date-picker-menu",
129
+ "data-testid": `${t.testId}-${e(i).MENU}`
130
+ }, [
131
+ d("div", {
132
+ id: "presets" + t.uniqueId,
133
+ class: "preset-dropdown"
134
+ }, [
135
+ d("ul", {
136
+ id: "customDropDownList" + t.uniqueId
137
+ }, [
138
+ (s(!0), n(h, null, v(e(V), (a) => (s(), n("li", {
139
+ key: a.id,
140
+ class: o({
141
+ "selected-preset-container": e($) === a.id
142
+ })
143
+ }, [
144
+ d("div", {
145
+ class: o([{ "selected-preset": e($) === a.id }, "preset-element"]),
146
+ onClick: (m) => e(F)(a)
147
+ }, [
148
+ l(e(R), {
149
+ size: "xs",
150
+ "data-testid": `${t.testId}-${e(i).MENU}-${a.id}`
151
+ }, {
152
+ default: r(() => [
153
+ c(y(a.name), 1)
154
+ ]),
155
+ _: 2
156
+ }, 1032, ["data-testid"])
157
+ ], 10, me),
158
+ f(d("div", ye, null, 512), [
159
+ [k, a.id === "custom"]
160
+ ])
161
+ ], 2))), 128))
162
+ ], 8, ue)
163
+ ], 8, ce),
164
+ d("div", {
165
+ class: "type-message",
166
+ "data-testid": `${t.testId}-${e(i).MESSAGE}`
167
+ }, y(e(te)[e(p)]), 9, ge)
168
+ ], 8, re)) : x("", !0),
169
+ d("div", {
170
+ class: "calendar-wrap",
171
+ style: Z({ height: e(H) ? "336px" : "372px" })
172
+ }, [
173
+ d("div", pe, [
174
+ (s(!0), n(h, null, v(e(T), (a, m) => (s(), n("div", { key: a }, [
175
+ l(_, {
176
+ id: t.uniqueId,
177
+ navigation: e(W)(
178
+ m === 0,
179
+ m === e(T).length - 1
180
+ ),
181
+ year: e(g)[a].parsedMonth.year,
182
+ days: e(g)[a].parsedMonth.days,
183
+ weeks: e(g)[a].parsedMonth.weeks,
184
+ month: e(g)[a].parsedMonth.month,
185
+ range: e(O),
186
+ type: e(p),
187
+ "allowed-days": t.allowedDays,
188
+ "max-allowed-date": e(S),
189
+ "test-id": `${t.testId}-${m}`,
190
+ onSelectionChanged: e(j),
191
+ onNavigation: e(Y)
192
+ }, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date", "test-id", "onSelectionChanged", "onNavigation"])
193
+ ]))), 128)),
194
+ d("div", fe, [
195
+ d("div", he, [
196
+ D(P.$slots, "footer", {}, void 0, !0)
197
+ ]),
198
+ d("div", ve, [
199
+ l(e(R), null, {
200
+ default: r(() => [
201
+ c("All dates are in UTC")
202
+ ]),
203
+ _: 1
204
+ })
205
+ ]),
206
+ f(d("div", { class: "error" }, y(e(L)), 513), [
207
+ [k, e(q)]
208
+ ]),
209
+ u[1] || (b(-1), u[1] = d("div", { class: "buttons" }, [
210
+ l(e(C), {
211
+ id: "button-ok" + t.uniqueId,
212
+ size: "small",
213
+ class: "primary button small",
214
+ "data-testid": `${t.testId}-${e(i).ACTION_APPLY}`,
215
+ onClick: (a) => e(K)()
216
+ }, {
217
+ default: r(() => [
218
+ c(" Apply ")
219
+ ]),
220
+ _: 1
221
+ }, 8, ["id", "data-testid", "onClick"]),
222
+ l(e(C), {
223
+ id: "button-cancel" + t.uniqueId,
224
+ size: "small",
225
+ theme: "third",
226
+ color: "default",
227
+ variant: "outlined",
228
+ class: "button small border third transparent",
229
+ "data-testid": `${t.testId}-${e(i).ACTION_CANCEL}`,
230
+ onClick: (a) => e(N)()
231
+ }, {
232
+ default: r(() => [
233
+ c(" Cancel ")
234
+ ]),
235
+ _: 1
236
+ }, 8, ["id", "data-testid", "onClick"])
237
+ ]), b(1), u[1])
238
+ ])
239
+ ])
240
+ ], 4)
241
+ ], 2)
242
+ ], 10, ie), [
243
+ [k, e(w)]
244
+ ])
245
+ ], 10, se);
246
+ };
247
+ }
248
+ });
249
+ export {
250
+ De as default
251
+ };
@@ -0,0 +1,6 @@
1
+ import e from "./DateRangeV4.vue.js";
2
+ const a = () => [e];
3
+ export {
4
+ e as DateRange,
5
+ a as DateRangeTypes
6
+ };