@ironsource/shared-ui 2.1.11-rc.15 → 2.1.11-rc.17

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 (32) hide show
  1. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_93545ce0_lang.css +1 -0
  2. package/PopoverV4.vue_vue_type_style_index_0_scoped_68002589_lang.css +1 -0
  3. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
  4. package/components/autocomplete/Autocomplete.vue2.js +1 -1
  5. package/components/chart/SettingsHeader.vue2.js +1 -1
  6. package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
  7. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  8. package/components/dropdown/v3/index.d.ts +12 -12
  9. package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +7 -0
  10. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  11. package/components/dropdown/v4/{ConditionalDroprown.vue2.js → ConditionalDropdown.vue2.js} +44 -42
  12. package/components/dropdown/v4/DropdownV4.vue2.js +1 -1
  13. package/components/dropdown/v4/TreeDropdown.vue2.js +1 -1
  14. package/components/dropdown/v4/index.d.ts +25 -14
  15. package/components/dropdown/v4/index.js +3 -3
  16. package/components/multibar/MultiBarMenu.vue2.js +1 -1
  17. package/components/popover/v4/PopoverV4.vue.d.ts +6 -1
  18. package/components/popover/v4/PopoverV4.vue.js +4 -3
  19. package/components/popover/v4/PopoverV4.vue2.js +26 -20
  20. package/components/popover/v4/index.d.ts +27 -8
  21. package/components/table/v4/DataGridMenu.vue2.js +1 -1
  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 +14 -13
  25. package/components/tooltip/v4/index.d.ts +20 -1
  26. package/index.d.ts +141 -43
  27. package/index.js +1 -1
  28. package/package.json +1 -1
  29. package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
  30. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
  31. package/TooltipV4.vue_vue_type_style_index_0_scoped_bfc72006_lang.css +0 -1
  32. package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
@@ -1,9 +1,10 @@
1
- import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css"; import { defineComponent as c, watch as f, openBlock as i, createBlock as g, unref as o, withCtx as n, createElementBlock as k, renderSlot as p, createCommentVNode as v, createElementVNode as h } from "vue";
2
- import { Dropdown as C } from "floating-vue";
3
- import { popoverCommon as w } from "../common/Popover.common.js";
4
- const y = ["data-testid"], E = /* @__PURE__ */ c({
1
+ import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_68002589_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as g, watch as d, openBlock as i, createBlock as k, unref as o, withCtx as s, createElementBlock as v, renderSlot as p, createCommentVNode as h, createElementVNode as C } from "vue";
2
+ import { Dropdown as y } from "floating-vue";
3
+ import { popoverCommon as B } from "../common/Popover.common.js";
4
+ const w = ["data-testid"], E = /* @__PURE__ */ g({
5
5
  __name: "PopoverV4",
6
6
  props: {
7
+ isOpen: { type: Boolean, default: !1 },
7
8
  autoHide: { type: Boolean, default: !1 },
8
9
  trigger: { default: "click" },
9
10
  disabled: { type: Boolean, default: !1 },
@@ -14,13 +15,18 @@ const y = ["data-testid"], E = /* @__PURE__ */ c({
14
15
  popperClass: { default: "" }
15
16
  },
16
17
  emits: ["isOpen"],
17
- setup(e, { expose: s, emit: l }) {
18
- const { popup: u, open: t, toggle: a, triggerRef: m } = w();
19
- return f(t, () => {
20
- l("isOpen", t.value);
21
- }), s({
22
- toggle: a
23
- }), (r, d) => (i(), g(o(C), {
18
+ setup(e, { expose: l, emit: u }) {
19
+ const c = e, { popup: f, open: t, toggle: n, triggerRef: m } = B();
20
+ return d(t, () => {
21
+ u("isOpen", t.value);
22
+ }), d(
23
+ () => c.isOpen,
24
+ (a) => {
25
+ n(a);
26
+ }
27
+ ), l({
28
+ toggle: n
29
+ }), (a, r) => (i(), k(o(y), {
24
30
  theme: "custom-popover",
25
31
  placement: e.placement,
26
32
  shown: !!o(t),
@@ -30,24 +36,24 @@ const y = ["data-testid"], E = /* @__PURE__ */ c({
30
36
  skidding: e.skidding,
31
37
  "popper-class": [e.popperClass, "v4-popover__popper light-theme-v4"]
32
38
  }, {
33
- popper: n(() => [
34
- o(t) ? (i(), k("div", {
39
+ popper: s(() => [
40
+ o(t) ? (i(), v("div", {
35
41
  key: 0,
36
42
  ref_key: "popup",
37
- ref: u,
43
+ ref: f,
38
44
  class: "menu-popup",
39
45
  "data-testid": e.testId
40
46
  }, [
41
- p(r.$slots, "content", {}, void 0, !0)
42
- ], 8, y)) : v("", !0)
47
+ p(a.$slots, "content", {}, void 0, !0)
48
+ ], 8, w)) : h("", !0)
43
49
  ]),
44
- default: n(() => [
45
- h("div", {
50
+ default: s(() => [
51
+ C("div", {
46
52
  ref_key: "triggerRef",
47
53
  ref: m,
48
- onClick: d[0] || (d[0] = (B) => o(a)(!o(t)))
54
+ onClick: r[0] || (r[0] = (O) => o(n)(!o(t)))
49
55
  }, [
50
- p(r.$slots, "trigger", {}, void 0, !0)
56
+ p(a.$slots, "trigger", {}, void 0, !0)
51
57
  ], 512)
52
58
  ]),
53
59
  _: 3
@@ -8,8 +8,9 @@ declare const PopoverTypes: () => ({
8
8
  placement: import("floating-vue").Placement;
9
9
  disabled: boolean;
10
10
  distance: number;
11
- popperClass: string;
12
11
  autoHide: boolean;
12
+ popperClass: string;
13
+ isOpen: boolean;
13
14
  trigger: "hover" | "click" | "focus" | "touch" | "managed";
14
15
  skidding: number;
15
16
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
@@ -29,11 +30,15 @@ declare const PopoverTypes: () => ({
29
30
  type: import("vue").PropType<number>;
30
31
  default: number;
31
32
  };
33
+ autoHide: {
34
+ type: import("vue").PropType<boolean>;
35
+ default: boolean;
36
+ };
32
37
  popperClass: {
33
38
  type: import("vue").PropType<string>;
34
39
  default: string;
35
40
  };
36
- autoHide: {
41
+ isOpen: {
37
42
  type: import("vue").PropType<boolean>;
38
43
  default: boolean;
39
44
  };
@@ -47,7 +52,7 @@ declare const PopoverTypes: () => ({
47
52
  };
48
53
  }>> & {
49
54
  onIsOpen?: (value: boolean) => any;
50
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "placement" | "disabled" | "distance" | "popperClass" | "autoHide" | "trigger" | "skidding">;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "placement" | "disabled" | "distance" | "autoHide" | "popperClass" | "isOpen" | "trigger" | "skidding">;
51
56
  $attrs: {
52
57
  [x: string]: unknown;
53
58
  };
@@ -78,11 +83,15 @@ declare const PopoverTypes: () => ({
78
83
  type: import("vue").PropType<number>;
79
84
  default: number;
80
85
  };
86
+ autoHide: {
87
+ type: import("vue").PropType<boolean>;
88
+ default: boolean;
89
+ };
81
90
  popperClass: {
82
91
  type: import("vue").PropType<string>;
83
92
  default: string;
84
93
  };
85
- autoHide: {
94
+ isOpen: {
86
95
  type: import("vue").PropType<boolean>;
87
96
  default: boolean;
88
97
  };
@@ -105,8 +114,9 @@ declare const PopoverTypes: () => ({
105
114
  placement: import("floating-vue").Placement;
106
115
  disabled: boolean;
107
116
  distance: number;
108
- popperClass: string;
109
117
  autoHide: boolean;
118
+ popperClass: string;
119
+ isOpen: boolean;
110
120
  trigger: "hover" | "click" | "focus" | "touch" | "managed";
111
121
  skidding: number;
112
122
  }, {}, string> & {
@@ -146,11 +156,15 @@ declare const PopoverTypes: () => ({
146
156
  type: import("vue").PropType<number>;
147
157
  default: number;
148
158
  };
159
+ autoHide: {
160
+ type: import("vue").PropType<boolean>;
161
+ default: boolean;
162
+ };
149
163
  popperClass: {
150
164
  type: import("vue").PropType<string>;
151
165
  default: string;
152
166
  };
153
- autoHide: {
167
+ isOpen: {
154
168
  type: import("vue").PropType<boolean>;
155
169
  default: boolean;
156
170
  };
@@ -187,11 +201,15 @@ declare const PopoverTypes: () => ({
187
201
  type: import("vue").PropType<number>;
188
202
  default: number;
189
203
  };
204
+ autoHide: {
205
+ type: import("vue").PropType<boolean>;
206
+ default: boolean;
207
+ };
190
208
  popperClass: {
191
209
  type: import("vue").PropType<string>;
192
210
  default: string;
193
211
  };
194
- autoHide: {
212
+ isOpen: {
195
213
  type: import("vue").PropType<boolean>;
196
214
  default: boolean;
197
215
  };
@@ -214,8 +232,9 @@ declare const PopoverTypes: () => ({
214
232
  placement: import("floating-vue").Placement;
215
233
  disabled: boolean;
216
234
  distance: number;
217
- popperClass: string;
218
235
  autoHide: boolean;
236
+ popperClass: string;
237
+ isOpen: boolean;
219
238
  trigger: "hover" | "click" | "focus" | "touch" | "managed";
220
239
  skidding: number;
221
240
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -8,7 +8,7 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
8
  import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
9
9
  import "../../dropdown/v4/TreeDropdown.vue.js";
10
10
  import C from "../../dropdown/v4/OptionV4.vue.js";
11
- import "../../dropdown/v4/ConditionalDroprown.vue.js";
11
+ import "../../dropdown/v4/ConditionalDropdown.vue.js";
12
12
  import k from "../../icon/v4/IconV4.vue.js";
13
13
  import "../../icon/v4/IconFlag.vue.js";
14
14
  import { useTableContext as y } from "../common/TableContext.js";
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  distance?: string | number;
13
13
  container?: string;
14
14
  shown?: boolean;
15
+ autoHide?: boolean;
15
16
  }>, {
16
17
  text: any;
17
18
  header: any;
@@ -25,6 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
25
26
  distance: string;
26
27
  container: string;
27
28
  shown: any;
29
+ autoHide: boolean;
28
30
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
31
  show: () => void;
30
32
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -40,6 +42,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
42
  distance?: string | number;
41
43
  container?: string;
42
44
  shown?: boolean;
45
+ autoHide?: boolean;
43
46
  }>, {
44
47
  text: any;
45
48
  header: any;
@@ -53,6 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
53
56
  distance: string;
54
57
  container: string;
55
58
  shown: any;
59
+ autoHide: boolean;
56
60
  }>>> & {
57
61
  onShow?: () => any;
58
62
  }, {
@@ -68,6 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
68
72
  distance: string | number;
69
73
  container: string;
70
74
  shown: boolean;
75
+ autoHide: boolean;
71
76
  }>, {
72
77
  default?(_: {}): any;
73
78
  tooltip?(_: {
@@ -1,8 +1,8 @@
1
1
  import o from "./TooltipV4.vue2.js";
2
2
  /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_bfc72006_lang.css"; //*');
3
+ // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css"; //*');
4
4
  // import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-bfc72006"]]);
5
+ const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-82b46d6d"]]);
6
6
  export {
7
7
  l as default
8
8
  };
@@ -1,11 +1,11 @@
1
- import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_bfc72006_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as n, renderSlot as u, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
1
+ import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as n, renderSlot as m, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
2
2
  import g from "./TextWithTitleContent.vue.js";
3
3
  import { Tooltip as w } from "floating-vue";
4
- import { TooltipTestIdModifiers as r } from "../../../testids/index.js";
4
+ import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
5
5
  import x from "../../typography/v4/Typography.vue.js";
6
6
  import { tooltipCommon as v } from "../common/Tooltip.common.js";
7
7
  import { useTestIdAttrs as b } from "../../../utils/testIds.js";
8
- const I = {
8
+ const B = {
9
9
  ref: "container",
10
10
  class: "container"
11
11
  }, D = /* @__PURE__ */ c({
@@ -22,12 +22,13 @@ const I = {
22
22
  testId: { default: "" },
23
23
  distance: { default: "10" },
24
24
  container: { default: "body" },
25
- shown: { type: Boolean, default: null }
25
+ shown: { type: Boolean, default: null },
26
+ autoHide: { type: Boolean, default: !0 }
26
27
  },
27
28
  emits: ["show"],
28
29
  setup(e, { emit: h }) {
29
- const i = e, { textForDisplay: o } = v(i), s = b(i.testId, r);
30
- return (a, m) => (l(), d(t(w), f({ ...a.$props, ...t(s)[t(r).TRIGGER] }, {
30
+ const r = e, { textForDisplay: o } = v(r), s = b(r.testId, i);
31
+ return (a, u) => (l(), d(t(w), f({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
31
32
  theme: e.theme,
32
33
  "no-auto-focus": "",
33
34
  triggers: e.triggers,
@@ -37,12 +38,12 @@ const I = {
37
38
  "popper-class": [e.theme, e.placement, "v4-tooltip"],
38
39
  class: ["v4-tooltip"],
39
40
  distance: e.distance,
40
- "auto-hide": "",
41
+ "auto-hide": e.autoHide,
41
42
  shown: e.shown,
42
- onApplyShow: m[0] || (m[0] = (B) => h("show"))
43
+ onApplyShow: u[0] || (u[0] = (I) => h("show"))
43
44
  }), {
44
45
  popper: n(() => [
45
- u(a.$slots, "tooltip", { text: t(o) }, () => [
46
+ m(a.$slots, "tooltip", { text: t(o) }, () => [
46
47
  e.header ? (l(), d(g, {
47
48
  key: 1,
48
49
  text: e.text,
@@ -50,7 +51,7 @@ const I = {
50
51
  }, null, 8, ["text", "header"])) : (l(), d(t(x), f({
51
52
  key: 0,
52
53
  variant: "body2"
53
- }, t(s)[t(r).TEXT]), {
54
+ }, t(s)[t(i).TEXT]), {
54
55
  default: n(() => [
55
56
  p(y(t(o)), 1)
56
57
  ]),
@@ -59,12 +60,12 @@ const I = {
59
60
  ], !0)
60
61
  ]),
61
62
  default: n(() => [
62
- T("div", I, [
63
- u(a.$slots, "default", {}, void 0, !0)
63
+ T("div", B, [
64
+ m(a.$slots, "default", {}, void 0, !0)
64
65
  ], 512)
65
66
  ]),
66
67
  _: 3
67
- }, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance", "shown"]));
68
+ }, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance", "auto-hide", "shown"]));
68
69
  }
69
70
  });
70
71
  export {
@@ -16,6 +16,7 @@ declare const TooltipTypes: () => ({
16
16
  distance: string | number;
17
17
  container: string;
18
18
  shown: boolean;
19
+ autoHide: boolean;
19
20
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
20
21
  header: {
21
22
  type: import("vue").PropType<string>;
@@ -65,9 +66,13 @@ declare const TooltipTypes: () => ({
65
66
  type: import("vue").PropType<boolean>;
66
67
  default: any;
67
68
  };
69
+ autoHide: {
70
+ type: import("vue").PropType<boolean>;
71
+ default: boolean;
72
+ };
68
73
  }>> & {
69
74
  onShow?: () => any;
70
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown">;
75
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide">;
71
76
  $attrs: {
72
77
  [x: string]: unknown;
73
78
  };
@@ -130,6 +135,10 @@ declare const TooltipTypes: () => ({
130
135
  type: import("vue").PropType<boolean>;
131
136
  default: any;
132
137
  };
138
+ autoHide: {
139
+ type: import("vue").PropType<boolean>;
140
+ default: boolean;
141
+ };
133
142
  }>> & {
134
143
  onShow?: () => any;
135
144
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -147,6 +156,7 @@ declare const TooltipTypes: () => ({
147
156
  distance: string | number;
148
157
  container: string;
149
158
  shown: boolean;
159
+ autoHide: boolean;
150
160
  }, {}, string> & {
151
161
  beforeCreate?: (() => void) | (() => void)[];
152
162
  created?: (() => void) | (() => void)[];
@@ -216,6 +226,10 @@ declare const TooltipTypes: () => ({
216
226
  type: import("vue").PropType<boolean>;
217
227
  default: any;
218
228
  };
229
+ autoHide: {
230
+ type: import("vue").PropType<boolean>;
231
+ default: boolean;
232
+ };
219
233
  }>> & {
220
234
  onShow?: () => any;
221
235
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -271,6 +285,10 @@ declare const TooltipTypes: () => ({
271
285
  type: import("vue").PropType<boolean>;
272
286
  default: any;
273
287
  };
288
+ autoHide: {
289
+ type: import("vue").PropType<boolean>;
290
+ default: boolean;
291
+ };
274
292
  }>> & {
275
293
  onShow?: () => any;
276
294
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -288,6 +306,7 @@ declare const TooltipTypes: () => ({
288
306
  distance: string | number;
289
307
  container: string;
290
308
  shown: boolean;
309
+ autoHide: boolean;
291
310
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
292
311
  $slots: {
293
312
  default?(_: {}): any;