@ironsource/shared-ui 2.1.12-test.71 → 2.1.12-test.73

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 (48) hide show
  1. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
  2. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  3. package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
  6. package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
  7. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  8. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  9. package/components/chart/ChartStoryArgs.d.ts +1 -1
  10. package/components/dateRange/common/DateServices.common.d.ts +6 -0
  11. package/components/dateRange/common/DateServices.common.js +87 -92
  12. package/components/dateRange/common/consts.common.d.ts +5 -0
  13. package/components/dateRange/common/consts.common.js +9 -3
  14. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  15. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  16. package/components/dateRange/v3/index.d.ts +7 -7
  17. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  18. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  19. package/components/dateRange/v4/index.d.ts +7 -7
  20. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  21. package/components/dropdown/common/Dropdown.common.js +44 -43
  22. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  23. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  24. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  25. package/components/dropdown/v4/DropdownV4.vue.d.ts +15 -0
  26. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  27. package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
  28. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  29. package/components/dropdown/v4/OptionV4.vue2.js +71 -68
  30. package/components/dropdown/v4/index.d.ts +67 -1
  31. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  32. package/components/switch/v4/SwitchV4.vue.js +3 -3
  33. package/components/switch/v4/SwitchV4.vue2.js +25 -23
  34. package/components/switch/v4/index.d.ts +11 -0
  35. package/components/table/common/Table.types.d.ts +2 -0
  36. package/components/table/v4/DataGrid.vue.d.ts +6 -1
  37. package/components/table/v4/DataGrid.vue.js +2 -2
  38. package/components/table/v4/DataGrid.vue2.js +192 -174
  39. package/components/table/v4/index.d.ts +20 -1
  40. package/index.d.ts +210 -18
  41. package/index.js +1 -1
  42. package/package.json +1 -1
  43. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
  44. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  45. package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +0 -1
  46. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
  47. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
  48. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
@@ -1,13 +1,13 @@
1
- import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; import { defineComponent as k, ref as f, computed as m, watch as D, openBlock as I, createBlock as S, unref as t, withCtx as y, createElementVNode as c, mergeProps as p, createVNode as d, createTextVNode as V, toDisplayString as v, withDirectives as x, vShow as _, withModifiers as $ } from "vue";
2
- import b from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css"; import { defineComponent as k, ref as m, computed as y, watch as S, openBlock as $, createBlock as D, unref as t, withCtx as h, createElementVNode as p, mergeProps as d, createVNode as u, createTextVNode as O, toDisplayString as C, withDirectives as b, vShow as x, withModifiers as E } from "vue";
2
+ import v from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import C from "../../typography/v4/Typography.vue.js";
4
+ import _ from "../../typography/v4/Typography.vue.js";
5
5
  import { DropdownTestIdModifiers as i } from "../../../testids/index.js";
6
- import { useTestIdAttrs as E } from "../../../utils/testIds.js";
7
- import { isElementTruncated as U } from "../../../utils/text.js";
8
- import { promiseTimeout as F } from "@vueuse/core";
9
- import L from "../../tooltip/v4/TooltipV4.vue.js";
10
- const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */ k({
6
+ import { useTestIdAttrs as U } from "../../../utils/testIds.js";
7
+ import { isElementTruncated as F } from "../../../utils/text.js";
8
+ import { promiseTimeout as L } from "@vueuse/core";
9
+ import R from "../../tooltip/v4/TooltipV4.vue.js";
10
+ const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */ k({
11
11
  __name: "ChipDropdownTrigger",
12
12
  props: {
13
13
  label: { default: "Status" },
@@ -22,87 +22,97 @@ const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
22
22
  displayValue: null,
23
23
  multi: { type: Boolean },
24
24
  cancelAllSelectedDisplay: { type: Boolean, default: !1 },
25
- displayValueInQuotes: { type: Boolean, default: !1 }
25
+ displayValueInQuotes: { type: Boolean, default: !1 },
26
+ shownValuesCount: { default: 1 }
26
27
  },
27
28
  emits: ["clear"],
28
- setup(u, { emit: A }) {
29
- const e = u, B = () => {
30
- A("clear");
31
- }, o = f(null), r = f(!0), T = f(!1), h = (l) => {
29
+ setup(f, { emit: w }) {
30
+ const e = f, A = () => {
31
+ w("clear");
32
+ }, o = m(null), r = m(!0), T = m(!1), g = (l) => {
32
33
  let a = l;
33
- Array.isArray(l) && (l.length > 1 ? a = `${l[0]}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
34
- let O = a;
35
- return e.displayValueInQuotes && (O = `"${a}"`), a ? `${e.label}: ${O}` : e.label;
36
- }, g = (l) => {
37
- let a = "";
38
- return Array.isArray(l) && l.length > 1 && (a = `, +${l[1]}`), a;
39
- }, N = m(
34
+ Array.isArray(l) && (l.length > 1 ? a = `${l.filter((I) => typeof I == "string").join(", ")}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
35
+ let c = a;
36
+ return e.displayValueInQuotes && (c = `"${a}"`), a ? `${e.label}: ${c}` : e.label;
37
+ }, V = (l) => {
38
+ if (Array.isArray(l) && l.length > 1) {
39
+ const a = l[l.length - 1];
40
+ if (typeof a == "number" && a > 0)
41
+ return `, +${a}`;
42
+ }
43
+ return "";
44
+ }, B = y(
40
45
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
41
- ), s = E(e.testId, i), n = m(() => {
46
+ ), n = U(e.testId, i), s = y(() => {
42
47
  if (!e.multi)
43
48
  return e.selectedOption ? e.displayValue(e.selectedOption) : "";
44
- if (Array.isArray(e.selectedOption))
45
- return e.selectedOption.length ? e.allSelected && !e.cancelAllSelectedDisplay ? ["All"] : e.selectedOption.length == 1 && e.displayValue ? [e.displayValue(e.selectedOption[0])] : [
46
- e.displayValue(e.selectedOption[0]),
47
- e.selectedOption.length - 1
48
- ] : [];
49
+ if (!Array.isArray(e.selectedOption))
50
+ return;
51
+ if (!e.selectedOption.length)
52
+ return [];
53
+ if (e.allSelected && !e.cancelAllSelectedDisplay)
54
+ return ["All"];
55
+ if (e.selectedOption.length === 1 && e.displayValue)
56
+ return [e.displayValue(e.selectedOption[0])];
57
+ const l = e.selectedOption.slice(0, e.shownValuesCount).map((c) => e.displayValue(c)), a = e.selectedOption.length - l.length;
58
+ return [...l, a];
49
59
  });
50
- D([() => e.selectedOption, o], async () => {
51
- await F(100), T.value = o.value && U(o.value);
60
+ S([() => e.selectedOption, o], async () => {
61
+ await L(100), T.value = o.value && F(o.value);
52
62
  });
53
- const w = m(() => T.value ? `${h(n.value)}${g(
54
- n.value
63
+ const N = y(() => T.value ? `${g(s.value)}${V(
64
+ s.value
55
65
  )}` : "");
56
- return (l, a) => (I(), S(t(L), {
57
- text: t(w),
66
+ return (l, a) => ($(), D(t(R), {
67
+ text: t(N),
58
68
  class: "tooltip-option",
59
69
  placement: "top"
60
70
  }, {
61
- default: y(() => [
62
- c("div", p({
63
- class: ["chip-trigger", [t(N), { active: r.value, disabled: u.disabled, open: u.open }]]
64
- }, t(s)[t(i).BUTTON]), [
65
- c("div", {
71
+ default: h(() => [
72
+ p("div", d({
73
+ class: ["chip-trigger", [t(B), { active: r.value, disabled: f.disabled, open: f.open }]]
74
+ }, t(n)[t(i).BUTTON]), [
75
+ p("div", {
66
76
  ref_key: "textContainerRef",
67
77
  ref: o,
68
78
  class: "chip-trigger--content"
69
79
  }, [
70
- d(t(C), p({
80
+ u(t(_), d({
71
81
  class: "chip-trigger--text",
72
82
  variant: "chipLabel"
73
- }, t(s)[t(i).BUTTON_CONTENT]), {
74
- default: y(() => [
75
- V(v(h(t(n))), 1)
83
+ }, t(n)[t(i).BUTTON_CONTENT]), {
84
+ default: h(() => [
85
+ O(C(g(t(s))), 1)
76
86
  ]),
77
87
  _: 1
78
88
  }, 16),
79
- d(t(C), p({
89
+ u(t(_), d({
80
90
  class: "chip-trigger--suffix",
81
91
  variant: "chipLabel"
82
- }, t(s)[t(i).BUTTON_CONTENT_SUFFIX]), {
83
- default: y(() => [
84
- V(v(g(t(n))), 1)
92
+ }, t(n)[t(i).BUTTON_CONTENT_SUFFIX]), {
93
+ default: h(() => [
94
+ O(C(V(t(s))), 1)
85
95
  ]),
86
96
  _: 1
87
97
  }, 16),
88
- x(c("div", R, [
89
- d(t(b), {
98
+ b(p("div", z, [
99
+ u(t(v), {
90
100
  name: "caret-down",
91
101
  size: "16px"
92
102
  })
93
103
  ], 512), [
94
- [_, !r.value]
104
+ [x, !r.value]
95
105
  ]),
96
- x(c("div", p({ class: "x-circle-wrapper" }, t(s)[t(i).BUTTON_CLEAR], {
97
- onClick: $(B, ["stop"])
106
+ b(p("div", d({ class: "x-circle-wrapper" }, t(n)[t(i).BUTTON_CLEAR], {
107
+ onClick: E(A, ["stop"])
98
108
  }), [
99
- d(t(b), {
109
+ u(t(v), {
100
110
  name: "x-circle",
101
111
  size: "16px",
102
112
  type: "fill"
103
113
  })
104
- ], 16, z), [
105
- [_, r.value]
114
+ ], 16, M), [
115
+ [x, r.value]
106
116
  ])
107
117
  ], 512)
108
118
  ], 16)
@@ -112,5 +122,5 @@ const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
112
122
  }
113
123
  });
114
124
  export {
115
- K as default
125
+ W as default
116
126
  };
@@ -18,6 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
18
  autoSize?: boolean;
19
19
  disableKeyboardEvents?: boolean;
20
20
  dynamicFilterMode?: boolean;
21
+ minSelections?: number;
22
+ maxSelections?: number;
21
23
  isOnTop?: boolean;
22
24
  distance?: number;
23
25
  container?: string;
@@ -30,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
30
32
  triggerFeedbackVariant?: "success" | "warning" | "error";
31
33
  triggerFeedbackShowIcon?: boolean;
32
34
  triggerShowAllSelectedText?: boolean;
35
+ triggerShownValuesCount?: number;
33
36
  size?: "small" | "medium" | "large";
34
37
  mandatory?: boolean;
35
38
  predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
@@ -92,12 +95,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
92
95
  testId: string;
93
96
  showSelectAll: boolean;
94
97
  dynamicFilterMode: boolean;
98
+ minSelections: number;
99
+ maxSelections: any;
95
100
  triggerLabel: string;
96
101
  triggerHelperText: string;
97
102
  triggerFeedbackText: string;
98
103
  triggerFeedbackVariant: any;
99
104
  triggerFeedbackShowIcon: boolean;
100
105
  triggerShowAllSelectedText: boolean;
106
+ triggerShownValuesCount: number;
101
107
  searchAutoFocus: boolean;
102
108
  predefinedTrigger: "default" | "icon-button" | "chip" | "app";
103
109
  optionNameKey: string;
@@ -158,6 +164,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
158
164
  autoSize?: boolean;
159
165
  disableKeyboardEvents?: boolean;
160
166
  dynamicFilterMode?: boolean;
167
+ minSelections?: number;
168
+ maxSelections?: number;
161
169
  isOnTop?: boolean;
162
170
  distance?: number;
163
171
  container?: string;
@@ -170,6 +178,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
170
178
  triggerFeedbackVariant?: "success" | "warning" | "error";
171
179
  triggerFeedbackShowIcon?: boolean;
172
180
  triggerShowAllSelectedText?: boolean;
181
+ triggerShownValuesCount?: number;
173
182
  size?: "small" | "medium" | "large";
174
183
  mandatory?: boolean;
175
184
  predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
@@ -232,12 +241,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
232
241
  testId: string;
233
242
  showSelectAll: boolean;
234
243
  dynamicFilterMode: boolean;
244
+ minSelections: number;
245
+ maxSelections: any;
235
246
  triggerLabel: string;
236
247
  triggerHelperText: string;
237
248
  triggerFeedbackText: string;
238
249
  triggerFeedbackVariant: any;
239
250
  triggerFeedbackShowIcon: boolean;
240
251
  triggerShowAllSelectedText: boolean;
252
+ triggerShownValuesCount: number;
241
253
  searchAutoFocus: boolean;
242
254
  predefinedTrigger: "default" | "icon-button" | "chip" | "app";
243
255
  optionNameKey: string;
@@ -300,6 +312,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
300
312
  autoSize: boolean;
301
313
  disableKeyboardEvents: boolean;
302
314
  dynamicFilterMode: boolean;
315
+ minSelections: number;
316
+ maxSelections: number;
303
317
  isOnTop: boolean;
304
318
  triggerLabel: string;
305
319
  triggerHelperText: string;
@@ -307,6 +321,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
307
321
  triggerFeedbackVariant: "success" | "warning" | "error";
308
322
  triggerFeedbackShowIcon: boolean;
309
323
  triggerShowAllSelectedText: boolean;
324
+ triggerShownValuesCount: number;
310
325
  predefinedTrigger: "default" | "icon-button" | "chip" | "app";
311
326
  inlineSearch: boolean;
312
327
  inlineSearchPlaceholder: string;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css"; //*');
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-08cb822e"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-92ead583"]]);
6
6
  export {
7
7
  r as default
8
8
  };