@ironsource/shared-ui 2.1.11-test.98 → 2.1.11

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 (46) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  2. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +1 -0
  3. package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
  4. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +1 -0
  5. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  7. package/{IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css → IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css} +1 -1
  8. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +1 -0
  9. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
  10. package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
  11. package/components/chart/Chart.vue.js +4 -4
  12. package/components/chart/Chart.vue2.js +110 -105
  13. package/components/chart/ChartLegend.vue.js +3 -3
  14. package/components/chart/ChartLegend.vue2.js +64 -54
  15. package/components/chart/ChartLoader.vue.js +5 -23
  16. package/components/chart/ChartLoader.vue2.js +15 -0
  17. package/components/chart/mockData.d.ts +8 -0
  18. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  19. package/components/dateRange/v4/DateRangeV4.vue2.js +86 -81
  20. package/components/dropdown/common/Dropdown.common.js +65 -65
  21. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  22. package/components/dropdown/v4/ConditionalDropdown.vue2.js +93 -92
  23. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  24. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  25. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  26. package/components/dropdown/v4/OptionV4.vue2.js +97 -98
  27. package/components/icon/v4/IconFlag.vue.js +3 -3
  28. package/components/icon/v4/IconFlag.vue2.js +1 -1
  29. package/components/sortableList/SortableItem.vue.js +3 -3
  30. package/components/sortableList/SortableItem.vue2.js +14 -14
  31. package/components/typography/v4/Typography.vue.js +3 -3
  32. package/components/typography/v4/Typography.vue2.js +1 -1
  33. package/index.js +1 -1
  34. package/mocks/apps.d.ts +1 -0
  35. package/mocks/randomValue.d.ts +1 -0
  36. package/package.json +3 -3
  37. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
  38. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +0 -1
  39. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
  40. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_07fe5cf8_lang.css +0 -1
  41. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +0 -1
  42. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  43. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
  44. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +0 -1
  45. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +0 -1
  46. package/consts/configs.js +0 -4
@@ -1,13 +1,16 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css"; import { defineComponent as M, ref as N, computed as p, openBlock as r, createElementBlock as u, createElementVNode as a, createVNode as n, unref as i, mergeProps as x, Fragment as S, renderList as P, normalizeClass as A, withCtx as m, withModifiers as F, createBlock as H, createCommentVNode as U, createTextVNode as h, toDisplayString as I } from "vue";
1
+ import "../../ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css"; import { defineComponent as D, ref as M, computed as m, openBlock as r, createElementBlock as c, createElementVNode as d, createVNode as s, unref as o, mergeProps as I, withCtx as p, createTextVNode as b, Fragment as S, renderList as P, normalizeClass as A, withModifiers as F, createBlock as H, createCommentVNode as U, toDisplayString as L } from "vue";
2
2
  import { useVirtualList as z } from "@vueuse/core";
3
- import _ from "../typography/v4/Typography.vue.js";
3
+ import f from "../typography/v4/Typography.vue.js";
4
4
  import R from "../checkbox/v4/CheckboxV4.vue.js";
5
5
  import q from "../search/v4/SearchV4.vue.js";
6
6
  import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
7
7
  import $ from "../icon/v4/IconV4.vue.js";
8
8
  import "../icon/v4/IconFlag.vue.js";
9
9
  import j from "../tooltip/v4/TooltipV4.vue.js";
10
- const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"], Q = { class: "label-container" }, ae = /* @__PURE__ */ M({
10
+ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
11
+ key: 0,
12
+ class: "empty-list"
13
+ }, Q = ["onClick"], W = { class: "label-container" }, ne = /* @__PURE__ */ D({
11
14
  __name: "ChartLegend",
12
15
  props: {
13
16
  items: { default: () => [] },
@@ -17,97 +20,104 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"
17
20
  maxLimitTooltipText: { default: "" }
18
21
  },
19
22
  emits: ["update:visibleIds"],
20
- setup(b, { emit: L }) {
21
- const o = b, T = 32, d = N(""), g = p(() => {
22
- const t = d.value.toLowerCase();
23
- return o.items.filter(
24
- (l) => l.label.toLowerCase().includes(t)
23
+ setup(h, { emit: g }) {
24
+ const l = h, k = 32, u = M(""), T = m(() => {
25
+ const t = u.value.toLowerCase();
26
+ return l.items.filter(
27
+ (i) => i.label.toLowerCase().includes(t)
25
28
  );
26
- }), s = (t) => o.visibleIds.includes(t.id), f = p(
27
- () => o.visibleIds.length >= o.maxVisible
28
- ), k = p(
29
- () => o.visibleIds.length <= o.minVisible
30
- ), c = (t) => k.value && s(t) || f.value && !s(t), C = (t) => !o.maxLimitTooltipText || s(t) || !f.value, V = (t, l) => {
31
- L(
29
+ }), a = (t) => l.visibleIds.includes(t.id), v = m(
30
+ () => l.visibleIds.length >= l.maxVisible
31
+ ), y = m(
32
+ () => l.visibleIds.length <= l.minVisible
33
+ ), n = (t) => y.value && a(t) || v.value && !a(t), C = (t) => !l.maxLimitTooltipText || a(t) || !v.value, V = (t, i) => {
34
+ g(
32
35
  "update:visibleIds",
33
- t ? [...o.visibleIds, l.id] : o.visibleIds.filter((e) => e !== l.id)
36
+ t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
34
37
  );
35
- }, { list: y, containerProps: w, wrapperProps: E } = z(g, {
36
- itemHeight: T,
38
+ }, { list: x, containerProps: w, wrapperProps: E } = z(T, {
39
+ itemHeight: k,
37
40
  overscan: 10
38
- }), B = (t) => {
39
- c(t) || V(!s(t), t);
41
+ }), N = (t) => {
42
+ n(t) || V(!a(t), t);
40
43
  };
41
- return (t, l) => (r(), u("div", J, [
42
- a("div", K, [
43
- n(i(q), {
44
- modelValue: d.value,
45
- "onUpdate:modelValue": l[0] || (l[0] = (e) => d.value = e)
44
+ return (t, i) => (r(), c("div", J, [
45
+ d("div", K, [
46
+ s(o(q), {
47
+ modelValue: u.value,
48
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => u.value = e)
46
49
  }, null, 8, ["modelValue"])
47
50
  ]),
48
- a("div", x({ class: "legend" }, i(w)), [
49
- a("ul", x({ class: "legend__list" }, i(E)), [
50
- (r(!0), u(S, null, P(i(y), ({ data: e, index: D }) => (r(), u("li", {
51
- key: D,
52
- class: A({ "disabled-item": c(e) })
51
+ d("div", I({ class: "legend" }, o(w)), [
52
+ d("ul", I({ class: "legend__list" }, o(E)), [
53
+ o(x).length === 0 ? (r(), c("li", O, [
54
+ s(o(f), { variant: "body2" }, {
55
+ default: p(() => [
56
+ b("No results")
57
+ ]),
58
+ _: 1
59
+ })
60
+ ])) : (r(!0), c(S, { key: 1 }, P(o(x), ({ data: e, index: B }) => (r(), c("li", {
61
+ key: B,
62
+ class: A({ "disabled-item": n(e) })
53
63
  }, [
54
- n(i(j), {
55
- text: b.maxLimitTooltipText,
64
+ s(o(j), {
65
+ text: h.maxLimitTooltipText,
56
66
  disabled: C(e),
57
67
  class: "disabled-tooltip"
58
68
  }, {
59
- default: m(() => [
60
- a("div", {
69
+ default: p(() => [
70
+ d("div", {
61
71
  class: "item-wrapper",
62
- onClick: (v) => B(e)
72
+ onClick: (_) => N(e)
63
73
  }, [
64
- n(i(R), {
74
+ s(o(R), {
65
75
  color: e.color,
66
- "is-checked": s(e),
67
- disabled: c(e),
68
- onClick: l[1] || (l[1] = F(
69
- (v) => {
70
- v.stopPropagation();
76
+ "is-checked": a(e),
77
+ disabled: n(e),
78
+ onClick: i[1] || (i[1] = F(
79
+ (_) => {
80
+ _.stopPropagation();
71
81
  },
72
82
  ["stop"]
73
83
  ))
74
84
  }, null, 8, ["color", "is-checked", "disabled"]),
75
- e.icon ? (r(), H(i($), {
85
+ e.icon ? (r(), H(o($), {
76
86
  key: 0,
77
87
  class: "icon-color",
78
88
  type: e.iconType,
79
89
  name: e.icon,
80
90
  size: "16px"
81
91
  }, null, 8, ["type", "name"])) : U("", !0),
82
- a("div", Q, [
83
- n(i(_), {
92
+ d("div", W, [
93
+ s(o(f), {
84
94
  variant: "body2",
85
95
  class: "legend-label",
86
96
  "is-truncated": "",
87
- "with-tooltip": "",
97
+ "with-tooltip": !n(e),
88
98
  "tooltip-text": e.label,
89
99
  "tooltip-placement": "left"
90
100
  }, {
91
- default: m(() => [
92
- h(I(e.label), 1)
101
+ default: p(() => [
102
+ b(L(e.label), 1)
93
103
  ]),
94
104
  _: 2
95
- }, 1032, ["tooltip-text"]),
96
- n(i(_), {
105
+ }, 1032, ["with-tooltip", "tooltip-text"]),
106
+ s(o(f), {
97
107
  variant: "caption",
98
108
  class: "legend-caption legend-label",
99
109
  "is-truncated": "",
100
- "with-tooltip": "",
110
+ "with-tooltip": !n(e),
101
111
  "tooltip-text": e.caption,
102
112
  "tooltip-placement": "left"
103
113
  }, {
104
- default: m(() => [
105
- h(I(e.caption), 1)
114
+ default: p(() => [
115
+ b(L(e.caption), 1)
106
116
  ]),
107
117
  _: 2
108
- }, 1032, ["tooltip-text"])
118
+ }, 1032, ["with-tooltip", "tooltip-text"])
109
119
  ])
110
- ], 8, O)
120
+ ], 8, Q)
111
121
  ]),
112
122
  _: 2
113
123
  }, 1032, ["text", "disabled"])
@@ -118,5 +128,5 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"
118
128
  }
119
129
  });
120
130
  export {
121
- ae as default
131
+ ne as default
122
132
  };
@@ -1,25 +1,7 @@
1
- import { openBlock as o, createElementBlock as c, pushScopeId as r, popScopeId as s, createElementVNode as t } from "vue";
2
- /* empty css */import a from "../../_virtual/_plugin-vue_export-helper.js";
3
- const d = {}, i = (e) => (r("data-v-142c444a"), e = e(), s(), e), n = { class: "chart-loader" }, p = /* @__PURE__ */ i(() => /* @__PURE__ */ t("svg", {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- viewBox: "0 0 1072 275",
6
- preserveAspectRatio: "none",
7
- width: "100%",
8
- height: "100%",
9
- fill: "none"
10
- }, [
11
- /* @__PURE__ */ t("path", {
12
- d: "M499.744 87.7024L499 87.4816C399.137 70.0475 293 138.418 218 173.72C120 219.848 87 235.892 0 275L1072 275C979 -57.3526 836.258 -31.5829 732 59.404C648.885 131.939 570.549 108.704 499.744 87.7024Z",
13
- fill: "black",
14
- "fill-opacity": "0.05"
15
- })
16
- ], -1)), _ = [
17
- p
18
- ];
19
- function l(e, h) {
20
- return o(), c("div", n, _);
21
- }
22
- const w = /* @__PURE__ */ a(d, [["render", l], ["__scopeId", "data-v-142c444a"]]);
1
+ import o from "./ChartLoader.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ffa4cc66"]]);
23
5
  export {
24
- w as default
6
+ c as default
25
7
  };
@@ -0,0 +1,15 @@
1
+ import "../../ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css"; import { defineComponent as e, openBlock as o, createElementBlock as r, createElementVNode as t, createVNode as a } from "vue";
2
+ import c from "../loader/v4/Loader.vue.js";
3
+ const n = { class: "chart-loader" }, s = { class: "chart-loader-wrapper" }, i = /* @__PURE__ */ e({
4
+ __name: "ChartLoader",
5
+ setup(d) {
6
+ return (_, p) => (o(), r("div", n, [
7
+ t("div", s, [
8
+ a(c)
9
+ ])
10
+ ]));
11
+ }
12
+ });
13
+ export {
14
+ i as default
15
+ };
@@ -34,4 +34,12 @@ export declare const MULTIPLE_DATASETS_DATE: ({
34
34
  value: number;
35
35
  }[];
36
36
  })[];
37
+ export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
38
+ id: string;
39
+ label: string;
40
+ data: {
41
+ date: string;
42
+ value: number;
43
+ }[];
44
+ }[];
37
45
  export declare const generateMockData: (numSeries?: number) => any[];
@@ -1,7 +1,7 @@
1
1
  import e from "./DateRangeV4.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-309e5351"]]);
3
+ // import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-8a2714eb"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css"; import { defineComponent as J, openBlock as n, createElementBlock as i, unref as e, normalizeClass as r, createElementVNode as d, renderSlot as N, createVNode as s, withDirectives as v, Fragment as k, renderList as C, withCtx as l, createTextVNode as m, toDisplayString as g, createCommentVNode as P, vShow as $, normalizeStyle as Q, setBlockTracking as x } from "vue";
2
- import X from "./CalendarMonthV4.vue.js";
3
- import { typeToName as Z, messagePerType as _ } from "../common/consts.common.js";
4
- import E from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css"; import { defineComponent as J, watch as Q, openBlock as n, createElementBlock as s, unref as e, normalizeClass as r, createElementVNode as d, renderSlot as x, createVNode as i, withDirectives as v, Fragment as k, renderList as C, withCtx as l, createTextVNode as m, toDisplayString as g, createCommentVNode as E, vShow as $, normalizeStyle as X, setBlockTracking as R } from "vue";
2
+ import Z from "./CalendarMonthV4.vue.js";
3
+ import { typeToName as _, messagePerType as ee } from "../common/consts.common.js";
4
+ import A from "../../button/v4/ButtonV4.vue.js";
5
5
  import "../../button/v4/IconButtonV4.vue.js";
6
6
  import "../../button/v4/ButtonGroup.vue.js";
7
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
@@ -11,17 +11,17 @@ import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
11
11
  import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
12
12
  import "../../dropdown/v4/AppDropdownTrigger.vue.js";
13
13
  import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
14
- import ee from "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
14
+ import te from "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
15
15
  import "../../dropdown/v4/TreeDropdown.vue.js";
16
16
  import "../../dropdown/v4/OptionV4.vue.js";
17
17
  import "../../dropdown/v4/ConditionalDropdown.vue.js";
18
- import { DateRangeTestIdModifiers as o, DatePickerTestIdModifiers as te } from "../../../testids/index.js";
19
- import { dateRangeCommon as ae } from "../common/DateRange.common.js";
18
+ import { DateRangeTestIdModifiers as o, DatePickerTestIdModifiers as ae } from "../../../testids/index.js";
19
+ import { dateRangeCommon as de } from "../common/DateRange.common.js";
20
20
  import p from "../../typography/v4/Typography.vue.js";
21
- const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid"], se = {
21
+ const ne = ["id", "data-testid"], se = ["data-testid"], ie = ["id", "data-testid"], oe = {
22
22
  key: 0,
23
23
  class: "type-picker"
24
- }, oe = ["onClick"], le = ["data-testid"], re = ["id"], ue = ["id"], ce = ["onClick"], me = { class: "dropdown-rightTriangle" }, pe = ["data-testid"], ye = { class: "date-picker-calendar left-box" }, ge = { class: "buttons-cover" }, fe = { class: "range" }, he = { class: "text-container" }, Le = /* @__PURE__ */ J({
24
+ }, le = ["onClick"], re = ["data-testid"], ce = ["id"], ue = ["id"], me = ["onClick"], pe = { class: "dropdown-rightTriangle" }, ye = ["data-testid"], ge = { class: "date-picker-calendar left-box" }, fe = { class: "buttons-cover" }, he = { class: "range" }, ve = { class: "text-container" }, Ve = /* @__PURE__ */ J({
25
25
  __name: "DateRangeV4",
26
26
  props: {
27
27
  range: null,
@@ -48,86 +48,91 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
48
48
  "opened",
49
49
  "dismissed"
50
50
  ],
51
- setup(t, { emit: R }) {
52
- const A = t, {
53
- datePicker: B,
54
- datePickerId: M,
55
- getMaxAllowedDate: S,
56
- selectedPreset: I,
57
- displayError: q,
51
+ setup(t, { emit: B }) {
52
+ const I = t, {
53
+ datePicker: M,
54
+ datePickerId: S,
55
+ getMaxAllowedDate: q,
56
+ selectedPreset: w,
57
+ displayError: O,
58
58
  rangeType: f,
59
- selectedRange: O,
60
- placement: L,
61
- currentDate: w,
62
- error: V,
63
- presets: z,
59
+ selectedRange: L,
60
+ placement: V,
61
+ currentDate: T,
62
+ error: z,
63
+ presets: U,
64
64
  isOpen: h,
65
- popup: U,
65
+ popup: F,
66
66
  currentMonths: y,
67
- displayedMonthsKeys: T,
68
- changeType: F,
67
+ displayedMonthsKeys: b,
68
+ changeType: P,
69
69
  presetChanged: G,
70
70
  apply: K,
71
71
  getNavigation: W,
72
72
  navigationCallback: Y,
73
73
  selectionChanged: j,
74
- toggle: b,
74
+ toggle: D,
75
75
  isCompact: H
76
- } = ae(A, R);
77
- return (D, u) => (n(), i("div", {
78
- id: e(M),
76
+ } = de(I, B);
77
+ return Q(
78
+ () => I.datePresetList,
79
+ () => {
80
+ P("date", !1);
81
+ }
82
+ ), (N, c) => (n(), s("div", {
83
+ id: e(S),
79
84
  ref_key: "datePicker",
80
- ref: B,
85
+ ref: M,
81
86
  class: r(["relative-wrap", { "date-range-disabled": t.disabled }]),
82
87
  "data-testid": `${t.testId}-${e(o).WRAPPER}`
83
88
  }, [
84
89
  d("div", {
85
90
  class: "date-range-field",
86
91
  "data-testid": `${t.testId}-${e(o).TRIGGER}`,
87
- onClick: u[0] || (u[0] = (a) => e(b)())
92
+ onClick: c[0] || (c[0] = (a) => e(D)())
88
93
  }, [
89
- N(D.$slots, "field", {
90
- currentDate: e(w),
94
+ x(N.$slots, "field", {
95
+ currentDate: e(T),
91
96
  isOpen: e(h)
92
97
  }, () => [
93
- s(e(ee), {
94
- label: e(w),
98
+ i(e(te), {
99
+ label: e(T),
95
100
  "start-icon-name": "calendar-blank",
96
101
  variant: "outlined",
97
- "test-id": `${t.testId}-${e(te).INPUT}`,
102
+ "test-id": `${t.testId}-${e(ae).INPUT}`,
98
103
  open: e(h)
99
104
  }, null, 8, ["label", "test-id", "open"])
100
105
  ], !0)
101
- ], 8, ne),
106
+ ], 8, se),
102
107
  v(d("div", {
103
108
  id: "datepickerPopup" + t.uniqueId,
104
109
  ref_key: "popup",
105
- ref: U,
110
+ ref: F,
106
111
  class: r(["pop-up", [
107
- e(L),
112
+ e(V),
108
113
  t.openOnTop ? "open-on-top" : "",
109
114
  t.showPresets ? "" : "hide-presets"
110
115
  ]]),
111
116
  "data-testid": `${t.testId}-${e(o).CONTAINER}`
112
117
  }, [
113
- t.types.length > 1 ? (n(), i("div", se, [
114
- (n(!0), i(k, null, C(t.types, (a) => (n(), i("span", {
118
+ t.types.length > 1 ? (n(), s("div", oe, [
119
+ (n(!0), s(k, null, C(t.types, (a) => (n(), s("span", {
115
120
  key: a,
116
121
  class: r(["range-type", { "selected-range-type": e(f) === a }]),
117
- onClick: (c) => e(F)(a, !0)
122
+ onClick: (u) => e(P)(a, !0)
118
123
  }, [
119
- s(e(p), { variant: "h1" }, {
124
+ i(e(p), { variant: "h1" }, {
120
125
  default: l(() => [
121
- m(g(e(Z)[a]), 1)
126
+ m(g(e(_)[a]), 1)
122
127
  ]),
123
128
  _: 2
124
129
  }, 1024)
125
- ], 10, oe))), 128))
126
- ])) : P("", !0),
130
+ ], 10, le))), 128))
131
+ ])) : E("", !0),
127
132
  d("div", {
128
133
  class: r(["flex", { "pop-up-content": t.types.length > 1 }])
129
134
  }, [
130
- t.showPresets ? (n(), i("div", {
135
+ t.showPresets ? (n(), s("div", {
131
136
  key: 0,
132
137
  class: "date-picker-menu",
133
138
  "data-testid": `${t.testId}-${e(o).MENU}`
@@ -139,17 +144,17 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
139
144
  d("ul", {
140
145
  id: "customDropDownList" + t.uniqueId
141
146
  }, [
142
- (n(!0), i(k, null, C(e(z), (a) => (n(), i("li", {
147
+ (n(!0), s(k, null, C(e(U), (a) => (n(), s("li", {
143
148
  key: a.id,
144
149
  class: r({
145
- "selected-preset-container": e(I) === a.id
150
+ "selected-preset-container": e(w) === a.id
146
151
  })
147
152
  }, [
148
153
  d("div", {
149
- class: r([{ "selected-preset": e(I) === a.id }, "preset-element"]),
150
- onClick: (c) => e(G)(a)
154
+ class: r([{ "selected-preset": e(w) === a.id }, "preset-element"]),
155
+ onClick: (u) => e(G)(a)
151
156
  }, [
152
- s(e(p), {
157
+ i(e(p), {
153
158
  variant: "body2",
154
159
  "data-testid": `${t.testId}-${e(o).MENU}-${a.id}`
155
160
  }, {
@@ -158,60 +163,60 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
158
163
  ]),
159
164
  _: 2
160
165
  }, 1032, ["data-testid"])
161
- ], 10, ce),
162
- v(d("div", me, null, 512), [
166
+ ], 10, me),
167
+ v(d("div", pe, null, 512), [
163
168
  [$, a.id === "custom"]
164
169
  ])
165
170
  ], 2))), 128))
166
171
  ], 8, ue)
167
- ], 8, re),
172
+ ], 8, ce),
168
173
  d("div", {
169
174
  class: "type-message",
170
175
  "data-testid": `${t.testId}-${e(o).MESSAGE}`
171
- }, g(e(_)[e(f)]), 9, pe)
172
- ], 8, le)) : P("", !0),
176
+ }, g(e(ee)[e(f)]), 9, ye)
177
+ ], 8, re)) : E("", !0),
173
178
  d("div", {
174
179
  class: "calendar-wrap",
175
- style: Q({ height: e(H) ? "336px" : "372px" })
180
+ style: X({ height: e(H) ? "336px" : "372px" })
176
181
  }, [
177
- d("div", ye, [
178
- (n(!0), i(k, null, C(e(T), (a, c) => (n(), i("div", { key: a }, [
179
- s(X, {
182
+ d("div", ge, [
183
+ (n(!0), s(k, null, C(e(b), (a, u) => (n(), s("div", { key: a }, [
184
+ i(Z, {
180
185
  id: t.uniqueId,
181
186
  navigation: e(W)(
182
- c === 0,
183
- c === e(T).length - 1
187
+ u === 0,
188
+ u === e(b).length - 1
184
189
  ),
185
190
  year: e(y)[a].parsedMonth.year,
186
191
  days: e(y)[a].parsedMonth.days,
187
192
  weeks: e(y)[a].parsedMonth.weeks,
188
193
  month: e(y)[a].parsedMonth.month,
189
- range: e(O),
194
+ range: e(L),
190
195
  type: e(f),
191
196
  "allowed-days": t.allowedDays,
192
- "max-allowed-date": e(S),
193
- "test-id": `${t.testId}-${c}`,
197
+ "max-allowed-date": e(q),
198
+ "test-id": `${t.testId}-${u}`,
194
199
  onSelectionChanged: e(j),
195
200
  onNavigation: e(Y)
196
201
  }, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date", "test-id", "onSelectionChanged", "onNavigation"])
197
202
  ]))), 128)),
198
- d("div", ge, [
199
- d("div", fe, [
200
- N(D.$slots, "footer", {}, void 0, !0)
201
- ]),
203
+ d("div", fe, [
202
204
  d("div", he, [
203
- s(e(p), { variant: "body2" }, {
205
+ x(N.$slots, "footer", {}, void 0, !0)
206
+ ]),
207
+ d("div", ve, [
208
+ i(e(p), { variant: "body2" }, {
204
209
  default: l(() => [
205
210
  m("All dates are in UTC")
206
211
  ]),
207
212
  _: 1
208
213
  })
209
214
  ]),
210
- v(d("div", { class: "error" }, g(e(V)), 513), [
211
- [$, e(q)]
215
+ v(d("div", { class: "error" }, g(e(z)), 513), [
216
+ [$, e(O)]
212
217
  ]),
213
- u[1] || (x(-1), u[1] = d("div", { class: "buttons" }, [
214
- s(e(E), {
218
+ c[1] || (R(-1), c[1] = d("div", { class: "buttons" }, [
219
+ i(e(A), {
215
220
  id: "button-ok" + t.uniqueId,
216
221
  size: "small",
217
222
  class: "button",
@@ -220,7 +225,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
220
225
  onClick: (a) => e(K)()
221
226
  }, {
222
227
  default: l(() => [
223
- s(e(p), { variant: "button" }, {
228
+ i(e(p), { variant: "button" }, {
224
229
  default: l(() => [
225
230
  m("Apply")
226
231
  ]),
@@ -229,7 +234,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
229
234
  ]),
230
235
  _: 1
231
236
  }, 8, ["id", "data-testid", "onClick"]),
232
- s(e(E), {
237
+ i(e(A), {
233
238
  id: "button-cancel" + t.uniqueId,
234
239
  size: "small",
235
240
  theme: "third",
@@ -237,10 +242,10 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
237
242
  variant: "outlined",
238
243
  class: "button",
239
244
  "data-testid": `${t.testId}-${e(o).ACTION_CANCEL}`,
240
- onClick: (a) => e(b)()
245
+ onClick: (a) => e(D)()
241
246
  }, {
242
247
  default: l(() => [
243
- s(e(p), { variant: "button" }, {
248
+ i(e(p), { variant: "button" }, {
244
249
  default: l(() => [
245
250
  m(" Cancel ")
246
251
  ]),
@@ -249,7 +254,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
249
254
  ]),
250
255
  _: 1
251
256
  }, 8, ["id", "data-testid", "onClick"])
252
- ]), x(1), u[1])
257
+ ]), R(1), c[1])
253
258
  ])
254
259
  ])
255
260
  ], 4)
@@ -257,9 +262,9 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
257
262
  ], 10, ie), [
258
263
  [$, e(h)]
259
264
  ])
260
- ], 10, de));
265
+ ], 10, ne));
261
266
  }
262
267
  });
263
268
  export {
264
- Le as default
269
+ Ve as default
265
270
  };