@ironsource/shared-ui 2.2.0-test.8 → 2.2.0-test.89

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 (54) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
  2. package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
  3. package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +1 -0
  4. package/PopoverV4.vue_vue_type_style_index_0_scoped_9ae00876_lang.css +1 -0
  5. package/Tag.vue_vue_type_style_index_0_scoped_b0662035_lang.css +1 -0
  6. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  7. package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
  8. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  9. package/components/chart/Chart.vue.d.ts +5 -0
  10. package/components/chart/Chart.vue.js +3 -3
  11. package/components/chart/Chart.vue2.js +17 -15
  12. package/components/chart/composables/useChartHeight.d.ts +1 -1
  13. package/components/chart/composables/useChartHeight.js +16 -15
  14. package/components/chart/index.d.ts +20 -1
  15. package/components/chart/types.d.ts +1 -0
  16. package/components/dateRange/common/consts.common.d.ts +5 -0
  17. package/components/dateRange/common/consts.common.js +9 -0
  18. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  19. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  20. package/components/dateRange/v3/index.d.ts +7 -7
  21. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  22. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  23. package/components/dateRange/v4/index.d.ts +7 -7
  24. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
  25. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  26. package/components/dropdown/v4/OptionV4.vue2.js +13 -12
  27. package/components/forms/FormCard.vue.js +3 -3
  28. package/components/forms/FormCard.vue2.js +5 -5
  29. package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
  30. package/components/popover/v4/PopoverV4.vue.js +2 -2
  31. package/components/popover/v4/PopoverV4.vue2.js +11 -9
  32. package/components/popover/v4/index.d.ts +41 -1
  33. package/components/tag/Tag.vue.d.ts +131 -0
  34. package/components/tag/Tag.vue.js +7 -0
  35. package/components/tag/Tag.vue2.js +295 -0
  36. package/components/tag/index.d.ts +192 -0
  37. package/components/tag/index.js +6 -0
  38. package/components/tagsField/TagsFieldChip.vue.d.ts +0 -43
  39. package/components/tagsField/TagsFieldChip.vue.js +3 -3
  40. package/components/tagsField/TagsFieldChip.vue2.js +54 -102
  41. package/components/tagsField/index.d.ts +0 -74
  42. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  43. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  44. package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
  45. package/components/tooltip/v4/index.d.ts +20 -1
  46. package/index.d.ts +157 -38
  47. package/index.js +84 -80
  48. package/package.json +6 -2
  49. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
  50. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
  51. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
  52. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
  53. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_fabe8ff0_lang.css +0 -1
  54. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
@@ -1,129 +1,81 @@
1
- import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_fabe8ff0_lang.css"; import { defineComponent as N, ref as d, computed as y, watch as S, nextTick as b, openBlock as s, createBlock as g, unref as t, normalizeClass as c, normalizeStyle as k, withModifiers as o, withCtx as C, createElementVNode as K, createTextVNode as D, toDisplayString as w, withDirectives as z, createElementBlock as x, isRef as F, withKeys as I, vModelText as O, createCommentVNode as W, createVNode as L, vShow as U } from "vue";
2
- import j from "../typography/v4/Typography.vue.js";
3
- import q from "../icon/v4/IconV4.vue.js";
1
+ import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css"; import { defineComponent as k, ref as p, computed as x, openBlock as C, createBlock as I, unref as t, normalizeClass as c, withModifiers as s, withCtx as f, createElementVNode as v, createVNode as m, createTextVNode as w, toDisplayString as T, withDirectives as B, isRef as E, withKeys as h, vShow as V, vModelText as K, nextTick as N } from "vue";
2
+ import R from "../typography/v4/Typography.vue.js";
3
+ import z from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
- import A from "../chip/v4/ChipV4.vue.js";
6
- const G = { class: "chip-content" }, H = ["placeholder", "onKeyup"], Z = /* @__PURE__ */ N({
5
+ import D from "../chip/v4/ChipV4.vue.js";
6
+ const M = { class: "chip-content" }, S = ["onKeyup"], j = /* @__PURE__ */ k({
7
7
  __name: "TagsFieldChip",
8
8
  props: {
9
9
  label: { default: "" },
10
10
  isInvalid: { type: Boolean, default: !1 },
11
- testId: { default: "" },
12
- size: { default: "small" },
13
- rounded: { type: Boolean, default: !0 },
14
- disabled: { type: Boolean, default: !1 },
15
- removable: { type: Boolean, default: !0 },
16
- color: { default: "default" },
17
- iconColor: { default: "var(--action-active)" },
18
- variant: { default: "filled" },
19
- placeholder: { default: "" }
11
+ testId: { default: "" }
20
12
  },
21
- emits: ["update:label", "remove", "stopEditing"],
22
- setup(e, { emit: n }) {
23
- const i = e, a = d(!1), l = y({
24
- get: () => i.label,
25
- set: (h) => {
26
- n("update:label", h);
13
+ emits: ["update:label", "remove"],
14
+ setup(l, { emit: n }) {
15
+ const b = l, i = p(!1), e = x({
16
+ get: () => b.label,
17
+ set: (d) => {
18
+ n("update:label", d);
27
19
  }
28
- }), m = d(null), B = () => m.value?.focus(), E = async () => {
29
- i.disabled || (a.value = !0, await b(), B());
30
- }, R = () => {
31
- n("stopEditing"), u();
32
- }, u = () => {
33
- console.log("stopEditing"), a.value = !1, !l.value && !i.placeholder && n("remove");
34
- }, v = d(null), f = d(void 0);
35
- S(
36
- () => [l.value, i.placeholder, a.value],
37
- async () => {
38
- await b(), a.value && v.value ? f.value = v.value.offsetWidth + "px" : f.value = void 0;
39
- },
40
- { immediate: !0 }
41
- );
42
- const p = {
43
- default: "var(--default-outlined-border)",
44
- primary: "var(--primary-main)",
45
- info: "var(--info-dark)",
46
- error: "var(--error-main)",
47
- warning: "var(--warning-main)",
48
- success: "var(--success-main)",
49
- dark: "var(--common-divider)"
50
- }, M = y(() => a.value && i.variant !== "outlined" ? {
51
- "--outline-color": i.isInvalid ? p.error : p[i.color] || "var(--default-outlined-border)"
52
- } : {}), T = () => {
53
- console.log("handleRemove"), n("remove");
20
+ }), r = p(null), g = () => r.value?.focus(), y = async () => {
21
+ i.value = !0, await N(), g();
22
+ }, o = () => {
23
+ i.value = !1, e.value || n("remove");
54
24
  };
55
- return (h, r) => (s(), g(t(A), {
56
- class: c({
57
- "rounded-chip": e.rounded,
58
- "tags-field-chip--editing": a.value && e.variant !== "outlined"
59
- // outlined chips have an outline
60
- }),
61
- label: t(l),
62
- "test-id": e.testId,
63
- color: e.isInvalid ? "error" : e.color,
64
- size: e.size,
65
- variant: e.variant,
66
- disabled: e.disabled,
67
- style: k(t(M)),
68
- onClick: o(E, ["stop"])
25
+ return (d, a) => (C(), I(t(D), {
26
+ class: c(["tags-field-chip", {
27
+ "tags-field-chip--editing": i.value,
28
+ "tags-field-chip--invalid": l.isInvalid
29
+ }]),
30
+ label: t(e),
31
+ "test-id": l.testId,
32
+ color: l.isInvalid ? "error" : "default",
33
+ onClick: s(y, ["stop"])
69
34
  }, {
70
- default: C(() => [
71
- K("div", G, [
72
- a.value ? z((s(), x("input", {
73
- key: 1,
35
+ default: f(() => [
36
+ v("div", M, [
37
+ m(t(R), {
38
+ variant: "chipLabel",
39
+ class: c(["chip-label", { "chip-label--hidden": i.value }])
40
+ }, {
41
+ default: f(() => [
42
+ w(T(t(e)), 1)
43
+ ]),
44
+ _: 1
45
+ }, 8, ["class"]),
46
+ B(v("input", {
74
47
  ref_key: "inputRef",
75
- ref: m,
76
- "onUpdate:modelValue": r[0] || (r[0] = (V) => F(l) ? l.value = V : null),
77
- placeholder: e.placeholder,
78
- class: c(["chip-input", { "chip-input-outline": e.variant === "outlined" }]),
48
+ ref: r,
49
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => E(e) ? e.value = u : null),
50
+ class: "chip-input",
79
51
  spellcheck: "false",
80
- style: k({ width: f.value }),
81
- onBlur: R,
52
+ onBlur: o,
82
53
  onKeyup: [
83
- I(o(u, ["prevent"]), ["enter"]),
84
- I(o(u, ["prevent"]), ["esc"])
54
+ h(s(o, ["prevent"]), ["enter"]),
55
+ h(s(o, ["prevent"]), ["esc"])
85
56
  ]
86
- }, null, 46, H)), [
57
+ }, null, 40, S), [
58
+ [V, i.value],
87
59
  [
88
- O,
89
- t(l),
60
+ K,
61
+ t(e),
90
62
  void 0,
91
63
  { trim: !0 }
92
64
  ]
93
- ]) : (s(), g(t(j), {
94
- key: 0,
95
- variant: "chipLabel",
96
- class: c(["chip-label", { "chip-label--placeholder": !t(l) && e.placeholder }])
97
- }, {
98
- default: C(() => [
99
- D(w(t(l) || e.placeholder), 1)
100
- ]),
101
- _: 1
102
- }, 8, ["class"])),
103
- a.value ? (s(), x("span", {
104
- key: 2,
105
- ref_key: "sizerRef",
106
- ref: v,
107
- class: "chip-input-sizer"
108
- }, w(t(l) || e.placeholder || ""), 513)) : W("", !0)
65
+ ])
109
66
  ]),
110
- z(L(t(q), {
111
- class: c(["clear-button", { "clear-button--invalid": e.isInvalid }]),
67
+ m(t(z), {
68
+ class: c(["clear-button", { "clear-button--invalid": l.isInvalid }]),
112
69
  name: "x-circle",
113
70
  size: "16px",
114
71
  type: "fill",
115
- color: e.isInvalid ? "var(--error-dark)" : e.iconColor,
116
- onMousedown: r[1] || (r[1] = o(() => {
117
- }, ["prevent"])),
118
- onClick: o(T, ["stop"])
119
- }, null, 8, ["class", "color", "onClick"]), [
120
- [U, e.removable]
121
- ])
72
+ onClick: a[1] || (a[1] = s((u) => n("remove"), ["stop"]))
73
+ }, null, 8, ["class"])
122
74
  ]),
123
75
  _: 1
124
- }, 8, ["class", "label", "test-id", "color", "size", "variant", "disabled", "style", "onClick"]));
76
+ }, 8, ["class", "label", "test-id", "color", "onClick"]));
125
77
  }
126
78
  });
127
79
  export {
128
- Z as default
80
+ j as default
129
81
  };
@@ -10,46 +10,13 @@ declare const TagsFieldTypes: () => (import("vue").DefineComponent<{
10
10
  type: import("vue").PropType<string>;
11
11
  default: string;
12
12
  };
13
- variant: {
14
- type: import("vue").PropType<"filled" | "outlined">;
15
- default: string;
16
- };
17
- disabled: {
18
- type: import("vue").PropType<boolean>;
19
- default: boolean;
20
- };
21
- color: {
22
- type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
23
- default: string;
24
- };
25
- size: {
26
- type: import("vue").PropType<"small" | "medium">;
27
- default: string;
28
- };
29
- rounded: {
30
- type: import("vue").PropType<boolean>;
31
- default: boolean;
32
- };
33
- placeholder: {
34
- type: import("vue").PropType<string>;
35
- default: string;
36
- };
37
13
  isInvalid: {
38
14
  type: import("vue").PropType<boolean>;
39
15
  default: boolean;
40
16
  };
41
- removable: {
42
- type: import("vue").PropType<boolean>;
43
- default: boolean;
44
- };
45
- iconColor: {
46
- type: import("vue").PropType<string>;
47
- default: string;
48
- };
49
17
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
18
  "update:label": (value: string) => void;
51
19
  remove: () => void;
52
- stopEditing: () => void;
53
20
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
21
  label: {
55
22
  type: import("vue").PropType<string>;
@@ -60,58 +27,17 @@ declare const TagsFieldTypes: () => (import("vue").DefineComponent<{
60
27
  type: import("vue").PropType<string>;
61
28
  default: string;
62
29
  };
63
- variant: {
64
- type: import("vue").PropType<"filled" | "outlined">;
65
- default: string;
66
- };
67
- disabled: {
68
- type: import("vue").PropType<boolean>;
69
- default: boolean;
70
- };
71
- color: {
72
- type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
73
- default: string;
74
- };
75
- size: {
76
- type: import("vue").PropType<"small" | "medium">;
77
- default: string;
78
- };
79
- rounded: {
80
- type: import("vue").PropType<boolean>;
81
- default: boolean;
82
- };
83
- placeholder: {
84
- type: import("vue").PropType<string>;
85
- default: string;
86
- };
87
30
  isInvalid: {
88
31
  type: import("vue").PropType<boolean>;
89
32
  default: boolean;
90
33
  };
91
- removable: {
92
- type: import("vue").PropType<boolean>;
93
- default: boolean;
94
- };
95
- iconColor: {
96
- type: import("vue").PropType<string>;
97
- default: string;
98
- };
99
34
  }>> & {
100
35
  onRemove?: () => any;
101
36
  "onUpdate:label"?: (value: string) => any;
102
- onStopEditing?: () => any;
103
37
  }, {
104
38
  label: string;
105
39
  testId: string;
106
- variant: "filled" | "outlined";
107
- disabled: boolean;
108
- color: "dark" | "default" | "primary" | "info" | "success" | "warning" | "error";
109
- size: "small" | "medium";
110
- rounded: boolean;
111
- placeholder: string;
112
40
  isInvalid: boolean;
113
- removable: boolean;
114
- iconColor: string;
115
41
  }> | import("vue").DefineComponent<{
116
42
  testId: {
117
43
  type: import("vue").PropType<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;