@ironsource/shared-ui 2.2.0-test.12 → 2.2.0-test.14

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 (31) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_4d927c4b_lang.css +1 -0
  2. package/Tag.vue_vue_type_style_index_0_scoped_78f19cb0_lang.css +1 -0
  3. package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
  4. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  5. package/components/chart/Chart.vue.d.ts +5 -0
  6. package/components/chart/Chart.vue.js +3 -3
  7. package/components/chart/Chart.vue2.js +74 -73
  8. package/components/chart/index.d.ts +20 -1
  9. package/components/dateRange/common/consts.common.d.ts +5 -0
  10. package/components/dateRange/common/consts.common.js +9 -0
  11. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  12. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  13. package/components/dateRange/v3/index.d.ts +7 -7
  14. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  15. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  16. package/components/dateRange/v4/index.d.ts +7 -7
  17. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
  18. package/components/tag/Tag.vue.d.ts +2 -0
  19. package/components/tag/Tag.vue.js +2 -2
  20. package/components/tag/Tag.vue2.js +45 -45
  21. package/components/tag/index.d.ts +2 -0
  22. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  23. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  24. package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
  25. package/components/tooltip/v4/index.d.ts +20 -1
  26. package/index.d.ts +74 -36
  27. package/index.js +1 -1
  28. package/package.json +1 -1
  29. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
  30. package/Tag.vue_vue_type_style_index_0_scoped_4fd00d7c_lang.css +0 -1
  31. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
@@ -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" | "month-3-6-9-12";
10
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12";
11
11
  regex?: RegExp;
12
12
  dateFormat?: string;
13
13
  uniqueId?: string | number;
@@ -50,7 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
50
  includeToday?: boolean;
51
51
  allowedDays?: number;
52
52
  maxDaysInRange?: number;
53
- 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";
53
+ datePresetList?: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12";
54
54
  regex?: RegExp;
55
55
  dateFormat?: string;
56
56
  uniqueId?: string | number;
@@ -93,7 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
93
93
  dateFormat: string;
94
94
  types: ("date" | "week" | "month")[];
95
95
  maxDaysInRange: number;
96
- 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";
96
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12";
97
97
  regex: RegExp;
98
98
  initialType: "date" | "week" | "month";
99
99
  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" | "month-3-6-9-12";
14
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12";
15
15
  regex: RegExp;
16
16
  initialType: "date" | "week" | "month";
17
17
  openOnTop: boolean;
@@ -59,7 +59,7 @@ declare const DateRangeTypes: () => ({
59
59
  default: any;
60
60
  };
61
61
  datePresetList: {
62
- 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
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12">;
63
63
  default: string;
64
64
  };
65
65
  regex: {
@@ -151,7 +151,7 @@ declare const DateRangeTypes: () => ({
151
151
  default: any;
152
152
  };
153
153
  datePresetList: {
154
- 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">;
154
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12">;
155
155
  default: string;
156
156
  };
157
157
  regex: {
@@ -204,7 +204,7 @@ declare const DateRangeTypes: () => ({
204
204
  dateFormat: string;
205
205
  types: ("date" | "week" | "month")[];
206
206
  maxDaysInRange: number;
207
- 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";
207
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12";
208
208
  regex: RegExp;
209
209
  initialType: "date" | "week" | "month";
210
210
  openOnTop: boolean;
@@ -272,7 +272,7 @@ declare const DateRangeTypes: () => ({
272
272
  default: any;
273
273
  };
274
274
  datePresetList: {
275
- 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">;
275
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12">;
276
276
  default: string;
277
277
  };
278
278
  regex: {
@@ -354,7 +354,7 @@ declare const DateRangeTypes: () => ({
354
354
  default: any;
355
355
  };
356
356
  datePresetList: {
357
- 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">;
357
+ type: import("vue").PropType<"date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12">;
358
358
  default: string;
359
359
  };
360
360
  regex: {
@@ -407,7 +407,7 @@ declare const DateRangeTypes: () => ({
407
407
  dateFormat: string;
408
408
  types: ("date" | "week" | "month")[];
409
409
  maxDaysInRange: number;
410
- 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";
410
+ datePresetList: "date" | "week" | "month" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth" | "dateWithLastMonth" | "month-3-6-9-12";
411
411
  regex: RegExp;
412
412
  initialType: "date" | "week" | "month";
413
413
  openOnTop: boolean;
@@ -58,8 +58,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
58
58
  withTooltip: boolean;
59
59
  tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
60
60
  disabled: boolean;
61
- size: "small" | "medium";
62
61
  maxWidth: number;
62
+ size: "small" | "medium";
63
63
  open: boolean;
64
64
  startIconName: string;
65
65
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -36,6 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
36
36
  "update:label": (value: string) => void;
37
37
  remove: () => void;
38
38
  stopEditing: () => void;
39
+ "update:isSelected": (value: boolean) => void;
39
40
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
40
41
  label: string;
41
42
  isSelected: boolean;
@@ -73,6 +74,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
73
74
  onRemove?: () => any;
74
75
  "onUpdate:label"?: (value: string) => any;
75
76
  onStopEditing?: () => any;
77
+ "onUpdate:isSelected"?: (value: boolean) => any;
76
78
  }, {
77
79
  label: string;
78
80
  testId: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./Tag.vue2.js";
2
2
  /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Tag.vue_vue_type_style_index_0_scoped_4fd00d7c_lang.css"; //*');
4
- const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-4fd00d7c"]]);
3
+ // import "../../Tag.vue_vue_type_style_index_0_scoped_78f19cb0_lang.css"; //*');
4
+ const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-78f19cb0"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../Tag.vue_vue_type_style_index_0_scoped_4fd00d7c_lang.css"; import { defineComponent as J, ref as u, computed as d, watch as N, nextTick as S, openBlock as v, createBlock as C, unref as l, withCtx as f, createElementVNode as E, createVNode as w, createTextVNode as V, toDisplayString as T, normalizeClass as p, normalizeStyle as R, withModifiers as m, createCommentVNode as $, withDirectives as O, createElementBlock as H, isRef as Q, withKeys as K, vModelText as X, vShow as Z } from "vue";
1
+ import "../../Tag.vue_vue_type_style_index_0_scoped_78f19cb0_lang.css"; import { defineComponent as J, ref as s, computed as d, watch as S, nextTick as N, openBlock as f, createBlock as C, unref as l, withCtx as m, createElementVNode as E, createVNode as w, createTextVNode as V, toDisplayString as T, normalizeClass as p, normalizeStyle as R, withModifiers as b, createCommentVNode as $, withDirectives as O, createElementBlock as H, isRef as Q, withKeys as K, vModelText as X, vShow as Z } from "vue";
2
2
  import D from "../typography/v4/Typography.vue.js";
3
3
  import W from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
@@ -24,33 +24,33 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
24
24
  maxLength: { default: void 0 },
25
25
  maxLengthTooltip: { default: "You have reached the maximum number of characters" }
26
26
  },
27
- emits: ["update:label", "remove", "stopEditing"],
28
- setup(a, { emit: b }) {
29
- const e = a, r = u(!1), y = u(null), h = u(void 0), k = u(!1), s = u(!1), o = u(e.isSelected || e.editable), z = d(() => !e.label && !r.value && e.placeholder), I = d(() => (console.log(
27
+ emits: ["update:label", "remove", "stopEditing", "update:isSelected"],
28
+ setup(a, { emit: v }) {
29
+ const e = a, r = s(!1), y = s(null), h = s(void 0), k = s(!1), u = s(!1), i = s(e.isSelected || e.editable), z = d(() => !e.label && !r.value && e.placeholder), I = d(() => (console.log(
30
30
  "isTooltipOpen",
31
- e.maxLength && i.value.length >= e.maxLength && r.value
32
- ), e.maxLength && i.value.length >= e.maxLength && r.value)), g = d(() => e.disabled || !e.selectable || r.value ? "outlined" : s.value ? "filled" : !o.value && !e.editable ? "outlined" : e.variant), F = d(() => e.disabled ? "default" : e.isInvalid ? "error" : o.value || !o.value && e.editable || !e.selectable ? e.color : "default"), i = d({
31
+ e.maxLength && o.value.length >= e.maxLength && r.value
32
+ ), e.maxLength && o.value.length >= e.maxLength && r.value)), g = d(() => e.disabled || !e.selectable || r.value ? "outlined" : u.value ? "filled" : !i.value && !e.editable ? "outlined" : e.variant), F = d(() => e.disabled ? "default" : e.isInvalid ? "error" : i.value || !i.value && e.editable || !e.selectable ? e.color : "default"), o = d({
33
33
  get: () => e.label,
34
34
  set: (n) => {
35
- b("update:label", n);
35
+ v("update:label", n);
36
36
  }
37
- }), M = u(null), P = () => M.value?.focus(), U = async () => {
38
- e.disabled || !e.selectable || (e.editable ? (r.value = !0, await S(), P()) : o.value = !o.value);
37
+ }), M = s(null), P = () => M.value?.focus(), U = async () => {
38
+ e.disabled || !e.selectable || (e.editable ? (r.value = !0, await N(), P()) : (i.value = !i.value, v("update:isSelected", i.value)));
39
39
  }, Y = () => {
40
- b("stopEditing"), x();
40
+ v("stopEditing"), x();
41
41
  }, x = () => {
42
- r.value = !1, !i.value && !e.placeholder && b("remove");
42
+ r.value = !1, !o.value && !e.placeholder && v("remove");
43
43
  };
44
- N(
45
- () => [i.value, e.placeholder, r.value],
44
+ S(
45
+ () => [o.value, e.placeholder, r.value],
46
46
  async () => {
47
- await S(), r.value && y.value ? h.value = y.value.offsetWidth + "px" : h.value = void 0;
47
+ await N(), r.value && y.value ? h.value = y.value.offsetWidth + "px" : h.value = void 0;
48
48
  },
49
49
  { immediate: !0 }
50
- ), N(
50
+ ), S(
51
51
  () => e.editable,
52
52
  () => {
53
- e.editable && (o.value = !0);
53
+ e.editable && (i.value = !0);
54
54
  }
55
55
  );
56
56
  const B = {
@@ -86,7 +86,7 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
86
86
  if (e.disabled)
87
87
  return "var(--action-disabled)";
88
88
  const n = e.isInvalid ? "error" : e.color;
89
- return o.value || !e.selectable ? L[n] : "var(--action-active)";
89
+ return i.value || !e.selectable ? L[n] : "var(--action-active)";
90
90
  }), G = d(() => {
91
91
  if (e.editable && e.variant !== "outlined" || !e.selectable) {
92
92
  const n = r.value ? B[e.color] : "var(--primary-main-50-p)";
@@ -94,11 +94,11 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
94
94
  "--outline-color": e.isInvalid ? B.error : n
95
95
  };
96
96
  }
97
- return s.value && e.variant !== "outlined" && e.color === "primary" && !e.editable ? {
98
- "--outline-color": o.value ? "var(--primary-main-50-p)" : "var(--action-active)"
97
+ return u.value && e.variant !== "outlined" && e.color === "primary" && !e.editable ? {
98
+ "--outline-color": i.value ? "var(--primary-main-50-p)" : "var(--action-active)"
99
99
  } : {};
100
100
  });
101
- return (n, t) => (v(), C(l(ee), {
101
+ return (n, t) => (f(), C(l(ee), {
102
102
  placement: "top",
103
103
  text: a.maxLengthTooltip,
104
104
  "is-open": l(I),
@@ -106,45 +106,45 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
106
106
  distance: 10,
107
107
  skidding: 10
108
108
  }, {
109
- content: f(() => [
109
+ content: m(() => [
110
110
  E("div", ae, [
111
111
  w(l(D), { variant: "body2" }, {
112
- default: f(() => [
112
+ default: m(() => [
113
113
  V(T(a.maxLengthTooltip), 1)
114
114
  ]),
115
115
  _: 1
116
116
  })
117
117
  ])
118
118
  ]),
119
- trigger: f(() => [
119
+ trigger: m(() => [
120
120
  w(l(_), {
121
121
  class: p({
122
122
  "rounded-tag": a.rounded,
123
123
  "tag-editing": r.value && l(g) !== "outlined",
124
124
  // outlined chips have an outline
125
- "tag-hover-outline": a.label && s.value && l(g) !== "outlined",
125
+ "tag-hover-outline": a.label && u.value && l(g) !== "outlined",
126
126
  // outlined chips have an outline
127
- "unselected-tag-hover-outline": a.label && s.value && l(g) !== "outlined" && !o.value && !a.editable,
127
+ "unselected-tag-hover-outline": a.label && u.value && l(g) !== "outlined" && !i.value && !a.editable,
128
128
  // for unselected tags that are not editable, we want to show a hover outline
129
129
  "tag-disabled": a.disabled,
130
130
  "empty-tag": l(z),
131
- "unselected-tag": !o.value && a.selectable && a.label,
131
+ "unselected-tag": !i.value && a.selectable && a.label && !u.value,
132
132
  "editable-tag": a.editable && !a.disabled
133
133
  }),
134
- label: l(i),
134
+ label: l(o),
135
135
  "test-id": a.testId,
136
136
  color: l(F),
137
137
  size: a.size,
138
138
  variant: l(g),
139
139
  disabled: a.disabled,
140
140
  style: R(l(G)),
141
- onMouseover: t[5] || (t[5] = (c) => s.value = !0),
142
- onMouseleave: t[6] || (t[6] = (c) => s.value = !1),
143
- onClick: m(U, ["stop"])
141
+ onMouseover: t[5] || (t[5] = (c) => u.value = !0),
142
+ onMouseleave: t[6] || (t[6] = (c) => u.value = !1),
143
+ onClick: b(U, ["stop"])
144
144
  }, {
145
- default: f(() => [
145
+ default: m(() => [
146
146
  E("div", le, [
147
- a.iconName ? (v(), C(l(W), {
147
+ a.iconName ? (f(), C(l(W), {
148
148
  key: 0,
149
149
  name: a.iconName,
150
150
  size: "16px",
@@ -152,11 +152,11 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
152
152
  class: "tag-icon",
153
153
  type: a.iconType
154
154
  }, null, 8, ["name", "color", "type"])) : $("", !0),
155
- r.value ? O((v(), H("input", {
155
+ r.value ? O((f(), H("input", {
156
156
  key: 2,
157
157
  ref_key: "inputRef",
158
158
  ref: M,
159
- "onUpdate:modelValue": t[0] || (t[0] = (c) => Q(i) ? i.value = c : null),
159
+ "onUpdate:modelValue": t[0] || (t[0] = (c) => Q(o) ? o.value = c : null),
160
160
  placeholder: a.placeholder,
161
161
  class: p(["tag-input", { "tag-input-outline": a.variant === "outlined" }]),
162
162
  spellcheck: "false",
@@ -164,35 +164,35 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
164
164
  maxlength: a.maxLength,
165
165
  onBlur: Y,
166
166
  onKeyup: [
167
- K(m(x, ["prevent"]), ["enter"]),
168
- K(m(x, ["prevent"]), ["esc"])
167
+ K(b(x, ["prevent"]), ["enter"]),
168
+ K(b(x, ["prevent"]), ["esc"])
169
169
  ]
170
170
  }, null, 46, te)), [
171
171
  [
172
172
  X,
173
- l(i),
173
+ l(o),
174
174
  void 0,
175
175
  { trim: !0 }
176
176
  ]
177
- ]) : (v(), C(l(D), {
177
+ ]) : (f(), C(l(D), {
178
178
  key: 1,
179
179
  variant: "chipLabel",
180
180
  class: p(["tag-label", {
181
- "tag-label--placeholder": !l(i) && a.placeholder,
181
+ "tag-label--placeholder": !l(o) && a.placeholder,
182
182
  "tag-label--disabled": a.disabled
183
183
  }])
184
184
  }, {
185
- default: f(() => [
186
- V(T(l(i) || a.placeholder), 1)
185
+ default: m(() => [
186
+ V(T(l(o) || a.placeholder), 1)
187
187
  ]),
188
188
  _: 1
189
189
  }, 8, ["class"])),
190
- r.value ? (v(), H("span", {
190
+ r.value ? (f(), H("span", {
191
191
  key: 3,
192
192
  ref_key: "sizerRef",
193
193
  ref: y,
194
194
  class: "tag-input-sizer"
195
- }, T(l(i) || a.placeholder || ""), 513)) : $("", !0)
195
+ }, T(l(o) || a.placeholder || ""), 513)) : $("", !0)
196
196
  ]),
197
197
  O(w(l(W), {
198
198
  class: p(["clear-button", { "clear-button--invalid": a.isInvalid }]),
@@ -200,11 +200,11 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
200
200
  size: "16px",
201
201
  type: "fill",
202
202
  color: l(q),
203
- onMousedown: t[1] || (t[1] = m(() => {
203
+ onMousedown: t[1] || (t[1] = b(() => {
204
204
  }, ["prevent"])),
205
205
  onMouseover: t[2] || (t[2] = (c) => k.value = !0),
206
206
  onMouseleave: t[3] || (t[3] = (c) => k.value = !1),
207
- onClick: t[4] || (t[4] = m((c) => b("remove"), ["stop"]))
207
+ onClick: t[4] || (t[4] = b((c) => v("remove"), ["stop"]))
208
208
  }, null, 8, ["class", "color"]), [
209
209
  [Z, a.editable && !l(z) && a.selectable]
210
210
  ])
@@ -69,6 +69,7 @@ declare const TagTypes: () => import("vue").DefineComponent<{
69
69
  "update:label": (value: string) => void;
70
70
  remove: () => void;
71
71
  stopEditing: () => void;
72
+ "update:isSelected": (value: boolean) => void;
72
73
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
73
74
  label: {
74
75
  type: import("vue").PropType<string>;
@@ -139,6 +140,7 @@ declare const TagTypes: () => import("vue").DefineComponent<{
139
140
  onRemove?: () => any;
140
141
  "onUpdate:label"?: (value: string) => any;
141
142
  onStopEditing?: () => any;
143
+ "onUpdate:isSelected"?: (value: boolean) => any;
142
144
  }, {
143
145
  label: string;
144
146
  testId: string;
@@ -14,6 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  shown?: boolean;
15
15
  autoHide?: boolean;
16
16
  dontWrapDisabled?: boolean;
17
+ maxWidth?: string;
17
18
  }>, {
18
19
  text: any;
19
20
  header: any;
@@ -29,6 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
30
  shown: any;
30
31
  autoHide: boolean;
31
32
  dontWrapDisabled: boolean;
33
+ maxWidth: string;
32
34
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
35
  show: () => void;
34
36
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -46,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
46
48
  shown?: boolean;
47
49
  autoHide?: boolean;
48
50
  dontWrapDisabled?: boolean;
51
+ maxWidth?: string;
49
52
  }>, {
50
53
  text: any;
51
54
  header: any;
@@ -61,6 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
61
64
  shown: any;
62
65
  autoHide: boolean;
63
66
  dontWrapDisabled: boolean;
67
+ maxWidth: string;
64
68
  }>>> & {
65
69
  onShow?: () => any;
66
70
  }, {
@@ -78,6 +82,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
78
82
  shown: boolean;
79
83
  autoHide: boolean;
80
84
  dontWrapDisabled: boolean;
85
+ maxWidth: string;
81
86
  }>, {
82
87
  default?(_: {}): any;
83
88
  tooltip?(_: {
@@ -1,8 +1,8 @@
1
1
  import o from "./TooltipV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css"; //*');
3
+ // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css"; //*');
4
4
  // import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8a451e54"]]);
5
+ const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a8aebfee"]]);
6
6
  export {
7
7
  l as default
8
8
  };
@@ -1,14 +1,14 @@
1
- import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, renderSlot as l, openBlock as d, createBlock as i, unref as t, mergeProps as m, withCtx as n, createTextVNode as y, toDisplayString as p, createElementVNode as T } from "vue";
2
- import g from "./TextWithTitleContent.vue.js";
3
- import { Tooltip as w } from "floating-vue";
4
- import { TooltipTestIdModifiers as r } from "../../../testids/index.js";
5
- import b from "../../typography/v4/Typography.vue.js";
6
- import { tooltipCommon as v } from "../common/Tooltip.common.js";
7
- import { useTestIdAttrs as x } from "../../../utils/testIds.js";
8
- const B = {
1
+ import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as T, computed as C, onMounted as N, watch as B, onUnmounted as E, renderSlot as i, openBlock as c, createBlock as u, unref as n, mergeProps as g, withCtx as f, createTextVNode as b, toDisplayString as $, createElementVNode as I } from "vue";
2
+ import V from "./TextWithTitleContent.vue.js";
3
+ import { Tooltip as W } from "floating-vue";
4
+ import { TooltipTestIdModifiers as p } from "../../../testids/index.js";
5
+ import k from "../../typography/v4/Typography.vue.js";
6
+ import { tooltipCommon as S } from "../common/Tooltip.common.js";
7
+ import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
+ const z = {
9
9
  ref: "container",
10
10
  class: "container"
11
- }, E = /* @__PURE__ */ c({
11
+ }, F = /* @__PURE__ */ T({
12
12
  __name: "TooltipV4",
13
13
  props: {
14
14
  text: { default: null },
@@ -24,45 +24,85 @@ const B = {
24
24
  container: { default: "body" },
25
25
  shown: { type: Boolean, default: null },
26
26
  autoHide: { type: Boolean, default: !0 },
27
- dontWrapDisabled: { type: Boolean, default: !1 }
27
+ dontWrapDisabled: { type: Boolean, default: !1 },
28
+ maxWidth: { default: "21.875rem" }
28
29
  },
29
30
  emits: ["show"],
30
- setup(e, { emit: h }) {
31
- const s = e, { textForDisplay: a } = v(s), u = x(s.testId, r);
32
- return (o, f) => (e.disabled || !e.text) && e.dontWrapDisabled ? l(o.$slots, "default", { key: 0 }, void 0, !0) : (d(), i(t(w), m({ key: 1 }, { ...o.$props, ...t(u)[t(r).TRIGGER] }, {
33
- theme: e.theme,
31
+ setup(t, { emit: v }) {
32
+ const a = t, { textForDisplay: m } = S(a), h = A(a.testId, p), d = (e) => `--tooltip-max-width-${e.replace(/[^a-zA-Z0-9]/g, "-")}`, r = (e) => `max-width-class-${e.replace(/[^a-zA-Z0-9]/g, "-")}`, x = (e) => {
33
+ const o = r(e), l = d(e);
34
+ return `
35
+ .v-popper--theme-light-theme-v4.v4-tooltip.${o} .v-popper__wrapper {
36
+ max-width: var(${l}, 21.875rem)
37
+ }
38
+ `;
39
+ }, w = C(
40
+ () => [
41
+ a.theme,
42
+ a.placement,
43
+ "v4-tooltip",
44
+ a.maxWidth ? r(a.maxWidth) : ""
45
+ // This is the class name that will be used as a selector for the tooltip
46
+ ].filter(Boolean)
47
+ ), y = (e) => {
48
+ const o = d(e), l = r(e);
49
+ if (document.documentElement.style.setProperty(o, e), !document.getElementById(l)) {
50
+ const s = document.createElement("style");
51
+ s.id = l, s.textContent = x(e), document.head.appendChild(s);
52
+ }
53
+ };
54
+ return N(() => {
55
+ a.maxWidth && y(a.maxWidth);
56
+ }), B(
57
+ () => a.maxWidth,
58
+ (e, o) => {
59
+ if (o) {
60
+ const l = d(o);
61
+ document.documentElement.style.removeProperty(l);
62
+ }
63
+ e && y(e);
64
+ }
65
+ ), E(() => {
66
+ if (a.maxWidth) {
67
+ const e = d(a.maxWidth);
68
+ document.documentElement.style.removeProperty(e);
69
+ const o = r(a.maxWidth), l = document.getElementById(o), s = document.getElementsByClassName(o);
70
+ l && s.length === 0 && l.remove();
71
+ }
72
+ }), (e, o) => (t.disabled || !t.text) && t.dontWrapDisabled ? i(e.$slots, "default", { key: 0 }, void 0, !0) : (c(), u(n(W), g({ key: 1 }, { ...e.$props, ...n(h)[n(p).TRIGGER] }, {
73
+ theme: t.theme,
34
74
  "no-auto-focus": "",
35
- triggers: e.triggers,
36
- delay: { show: e.delay, hide: 0 },
37
- placement: e.placement,
38
- disabled: e.disabled || e.text && !t(a),
39
- "popper-class": [e.theme, e.placement, "v4-tooltip"],
75
+ triggers: t.triggers,
76
+ delay: { show: t.delay, hide: 0 },
77
+ placement: t.placement,
78
+ disabled: t.disabled || t.text && !n(m),
79
+ "popper-class": n(w),
40
80
  class: ["v4-tooltip"],
41
- distance: e.distance,
42
- "auto-hide": e.autoHide,
43
- shown: e.shown,
44
- onApplyShow: f[0] || (f[0] = (k) => h("show"))
81
+ distance: t.distance,
82
+ "auto-hide": t.autoHide,
83
+ shown: t.shown,
84
+ onApplyShow: o[0] || (o[0] = (l) => v("show"))
45
85
  }), {
46
- popper: n(() => [
47
- l(o.$slots, "tooltip", { text: t(a) }, () => [
48
- e.header ? (d(), i(g, {
86
+ popper: f(() => [
87
+ i(e.$slots, "tooltip", { text: n(m) }, () => [
88
+ t.header ? (c(), u(V, {
49
89
  key: 1,
50
- text: e.text,
51
- header: e.header
52
- }, null, 8, ["text", "header"])) : (d(), i(t(b), m({
90
+ text: t.text,
91
+ header: t.header
92
+ }, null, 8, ["text", "header"])) : (c(), u(n(k), g({
53
93
  key: 0,
54
94
  variant: "body2"
55
- }, t(u)[t(r).TEXT]), {
56
- default: n(() => [
57
- y(p(t(a)), 1)
95
+ }, n(h)[n(p).TEXT]), {
96
+ default: f(() => [
97
+ b($(n(m)), 1)
58
98
  ]),
59
99
  _: 1
60
100
  }, 16))
61
101
  ], !0)
62
102
  ]),
63
- default: n(() => [
64
- T("div", B, [
65
- l(o.$slots, "default", {}, void 0, !0)
103
+ default: f(() => [
104
+ I("div", z, [
105
+ i(e.$slots, "default", {}, void 0, !0)
66
106
  ], 512)
67
107
  ]),
68
108
  _: 3
@@ -70,5 +110,5 @@ const B = {
70
110
  }
71
111
  });
72
112
  export {
73
- E as default
113
+ F as default
74
114
  };
@@ -18,6 +18,7 @@ declare const TooltipTypes: () => ({
18
18
  shown: boolean;
19
19
  autoHide: boolean;
20
20
  dontWrapDisabled: boolean;
21
+ maxWidth: string;
21
22
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
22
23
  header: {
23
24
  type: import("vue").PropType<string>;
@@ -75,9 +76,13 @@ declare const TooltipTypes: () => ({
75
76
  type: import("vue").PropType<boolean>;
76
77
  default: boolean;
77
78
  };
79
+ maxWidth: {
80
+ type: import("vue").PropType<string>;
81
+ default: string;
82
+ };
78
83
  }>> & {
79
84
  onShow?: () => any;
80
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide" | "dontWrapDisabled">;
85
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide" | "dontWrapDisabled" | "maxWidth">;
81
86
  $attrs: {
82
87
  [x: string]: unknown;
83
88
  };
@@ -148,6 +153,10 @@ declare const TooltipTypes: () => ({
148
153
  type: import("vue").PropType<boolean>;
149
154
  default: boolean;
150
155
  };
156
+ maxWidth: {
157
+ type: import("vue").PropType<string>;
158
+ default: string;
159
+ };
151
160
  }>> & {
152
161
  onShow?: () => any;
153
162
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -167,6 +176,7 @@ declare const TooltipTypes: () => ({
167
176
  shown: boolean;
168
177
  autoHide: boolean;
169
178
  dontWrapDisabled: boolean;
179
+ maxWidth: string;
170
180
  }, {}, string> & {
171
181
  beforeCreate?: (() => void) | (() => void)[];
172
182
  created?: (() => void) | (() => void)[];
@@ -244,6 +254,10 @@ declare const TooltipTypes: () => ({
244
254
  type: import("vue").PropType<boolean>;
245
255
  default: boolean;
246
256
  };
257
+ maxWidth: {
258
+ type: import("vue").PropType<string>;
259
+ default: string;
260
+ };
247
261
  }>> & {
248
262
  onShow?: () => any;
249
263
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -307,6 +321,10 @@ declare const TooltipTypes: () => ({
307
321
  type: import("vue").PropType<boolean>;
308
322
  default: boolean;
309
323
  };
324
+ maxWidth: {
325
+ type: import("vue").PropType<string>;
326
+ default: string;
327
+ };
310
328
  }>> & {
311
329
  onShow?: () => any;
312
330
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -326,6 +344,7 @@ declare const TooltipTypes: () => ({
326
344
  shown: boolean;
327
345
  autoHide: boolean;
328
346
  dontWrapDisabled: boolean;
347
+ maxWidth: string;
329
348
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
330
349
  $slots: {
331
350
  default?(_: {}): any;