@ironsource/shared-ui 2.1.7-rc.9 → 2.1.7-test.10

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 (74) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  2. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
  4. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  5. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
  6. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  7. package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
  8. package/README.md +1 -1
  9. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  10. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  11. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  12. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  13. package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
  14. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  15. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  16. package/components/appHeader/AppHeader.vue.d.ts +1 -1
  17. package/components/appHeader/index.d.ts +9 -9
  18. package/components/dropdown/common/Dropdown.common.js +89 -89
  19. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
  20. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  21. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
  22. package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
  23. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  24. package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
  25. package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
  26. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  27. package/components/dropdown/v4/OptionV4.vue2.js +94 -71
  28. package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
  29. package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
  30. package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
  31. package/components/dropdown/v4/index.d.ts +451 -82
  32. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  33. package/components/icon/v4/IconV4.vue.js +4 -4
  34. package/components/icon/v4/IconV4.vue2.js +29 -26
  35. package/components/icon/v4/index.d.ts +20 -1
  36. package/components/input/v4/TextField.vue.js +3 -3
  37. package/components/input/v4/TextField.vue2.js +1 -1
  38. package/components/sortableList/SortableList.vue.d.ts +25 -0
  39. package/components/sortableList/SortableList.vue.js +4 -4
  40. package/components/sortableList/SortableList.vue2.js +129 -89
  41. package/components/sortableList/index.d.ts +88 -2
  42. package/components/table/v3/Table.vue.d.ts +2 -2
  43. package/components/table/v3/index.d.ts +39 -39
  44. package/components/table/v4/DataGrid.vue.d.ts +6 -2
  45. package/components/table/v4/DataGrid.vue.js +4 -4
  46. package/components/table/v4/DataGrid.vue2.js +131 -122
  47. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  48. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  49. package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
  50. package/components/table/v4/index.d.ts +92 -75
  51. package/components/table-cells/common/Editable.common.js +37 -26
  52. package/components/table-cells/common/EditableContext.d.ts +1 -0
  53. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  54. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  55. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  56. package/components/table-cells/v4/index.d.ts +20 -1
  57. package/components/tabs/v4/TabsV4.vue.js +4 -4
  58. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  59. package/design-foundation.stories/icons/iconsData.d.ts +6 -2
  60. package/index.d.ts +1694 -674
  61. package/mocks/options.d.ts +12 -0
  62. package/package.json +1 -1
  63. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  64. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
  65. package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
  66. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  67. package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
  68. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
  69. package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
  70. package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
  71. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  72. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  73. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
  74. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
@@ -1,12 +1,12 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; import { defineComponent as v, computed as r, openBlock as o, createElementBlock as a, createBlock as k, createCommentVNode as n, createElementVNode as c, mergeProps as m, unref as l, renderSlot as y, createVNode as i, withCtx as I, createTextVNode as x, toDisplayString as B } from "vue";
2
- import w from "../../typography/v4/Typography.vue.js";
3
- import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css"; import { defineComponent as O, computed as r, openBlock as o, createElementBlock as n, createBlock as k, createCommentVNode as d, createElementVNode as c, mergeProps as m, unref as l, renderSlot as u, createVNode as i, withCtx as I, createTextVNode as B, toDisplayString as w } from "vue";
2
+ import V from "../../typography/v4/Typography.vue.js";
3
+ import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
4
4
  import h from "../../icon/v4/IconV4.vue.js";
5
5
  import "../../icon/v4/IconFlag.vue.js";
6
- import V from "../../shared/FieldLabel.vue.js";
6
+ import x from "../../shared/FieldLabel.vue.js";
7
7
  import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
8
  import D from "../../statusDot/StatusDot.vue.js";
9
- const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
9
+ const $ = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
10
10
  key: 0,
11
11
  class: "image"
12
12
  }, C = ["src"], S = {
@@ -15,7 +15,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
15
15
  }, P = {
16
16
  key: 2,
17
17
  class: "status-dot"
18
- }, z = { class: "caret-down" }, q = /* @__PURE__ */ v({
18
+ }, z = { key: 0 }, E = { class: "caret-down" }, G = /* @__PURE__ */ O({
19
19
  __name: "DefaultDropdownTrigger",
20
20
  props: {
21
21
  placeholder: { default: "Select" },
@@ -50,7 +50,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
50
50
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
51
51
  ), b = () => {
52
52
  T("click");
53
- }, p = A(e.testId, u), O = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
53
+ }, f = A(e.testId, p), v = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), s = r(() => {
54
54
  if (!e.selectedOption)
55
55
  return null;
56
56
  if (!e.multi)
@@ -58,8 +58,8 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
58
58
  if (Array.isArray(e.selectedOption))
59
59
  return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
60
60
  });
61
- return (s, f) => (o(), a("div", N, [
62
- t.label ? (o(), k(V, {
61
+ return (a, y) => (o(), n("div", $, [
62
+ t.label ? (o(), k(x, {
63
63
  key: 0,
64
64
  label: t.label,
65
65
  mandatory: t.mandatory,
@@ -68,41 +68,44 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
68
68
  disabled: t.disabled,
69
69
  "test-id": t.testId,
70
70
  class: "dropdown-field-label"
71
- }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
71
+ }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : d("", !0),
72
72
  c("div", m({
73
73
  class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
74
- }, l(p)[l(u).BUTTON_WRAPPER], {
75
- onClick: f[0] || (f[0] = (E) => b())
74
+ }, l(f)[l(p).BUTTON_WRAPPER], {
75
+ onClick: y[0] || (y[0] = (H) => b())
76
76
  }), [
77
- c("div", K, [
78
- s.$slots.image || l(d) && t.optionImageKey ? (o(), a("div", $, [
79
- y(s.$slots, "image", {}, () => [
80
- t.optionImageKey ? (o(), a("img", {
77
+ c("div", N, [
78
+ a.$slots.image || l(s) && t.optionImageKey ? (o(), n("div", K, [
79
+ u(a.$slots, "image", {}, () => [
80
+ t.optionImageKey ? (o(), n("img", {
81
81
  key: 0,
82
- src: l(d)[t.optionImageKey]
83
- }, null, 8, C)) : n("", !0)
82
+ src: l(s)[t.optionImageKey]
83
+ }, null, 8, C)) : d("", !0)
84
84
  ], !0)
85
- ])) : n("", !0),
86
- s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div", S, [
87
- y(s.$slots, "icon-start", {}, () => [
85
+ ])) : d("", !0),
86
+ a.$slots["icon-start"] || l(s) && t.optionIconKey ? (o(), n("div", S, [
87
+ u(a.$slots, "icon-start", {}, () => [
88
88
  i(l(h), {
89
89
  type: t.optionIconType,
90
- name: l(d)[t.optionIconKey],
90
+ name: l(s)[t.optionIconKey],
91
91
  size: "20px"
92
92
  }, null, 8, ["type", "name"])
93
93
  ], !0)
94
- ])) : n("", !0),
95
- t.statusDotType ? (o(), a("div", P, [
94
+ ])) : d("", !0),
95
+ t.statusDotType ? (o(), n("div", P, [
96
96
  i(l(D), { type: t.statusDotType }, null, 8, ["type"])
97
- ])) : n("", !0),
98
- i(l(w), m({ variant: "body1" }, l(p)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
97
+ ])) : d("", !0),
98
+ i(l(V), m({ variant: "body1" }, l(f)[l(p).BUTTON_CONTENT], { class: "displayed-value" }), {
99
99
  default: I(() => [
100
- x(B(l(O)), 1)
100
+ B(w(l(v)), 1)
101
101
  ]),
102
102
  _: 1
103
103
  }, 16)
104
104
  ]),
105
- c("div", z, [
105
+ a.$slots["end-icon"] ? (o(), n("div", z, [
106
+ u(a.$slots, "end-icon", {}, void 0, !0)
107
+ ])) : d("", !0),
108
+ c("div", E, [
106
109
  i(l(h), {
107
110
  name: "caret-down",
108
111
  size: "20px"
@@ -113,5 +116,5 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
113
116
  }
114
117
  });
115
118
  export {
116
- q as default
119
+ G as default
117
120
  };
@@ -116,6 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
116
116
  selectAll: () => void;
117
117
  clear: () => void;
118
118
  copyToClipboard: () => void;
119
+ onsearch: (value: string) => void;
119
120
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
120
121
  modelValue?: unknown;
121
122
  selected?: unknown;
@@ -228,6 +229,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
228
229
  onSelectAll?: () => any;
229
230
  "onUpdate:selected"?: (value: unknown) => any;
230
231
  "onUpdate:isOpen"?: (value: unknown) => any;
232
+ onOnsearch?: (value: string) => any;
231
233
  onOpened?: () => any;
232
234
  onClosed?: () => any;
233
235
  }, {
@@ -289,7 +291,34 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
289
291
  label: any;
290
292
  onClick: () => void;
291
293
  };
294
+ defaultTriggerProps: {
295
+ placeholder: string;
296
+ open: boolean;
297
+ label: string;
298
+ showFeedbackIcon: boolean;
299
+ mandatory: boolean;
300
+ testId: string;
301
+ multi: boolean;
302
+ disabled: boolean;
303
+ selectedOption: unknown;
304
+ displayValue: (option: unknown) => string;
305
+ options: unknown[];
306
+ optionNameKey: string;
307
+ optionImageKey: string;
308
+ optionIconKey: string;
309
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
310
+ optionAndIconKey: string;
311
+ optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
312
+ feedbackVariant: "success" | "warning" | "error";
313
+ valueToCopy: string;
314
+ statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
315
+ size: "small" | "medium" | "large";
316
+ showAllSelectedText: boolean;
317
+ onKeydown: (event: any) => void;
318
+ onClick: () => void;
319
+ };
292
320
  }): any;
321
+ "inline-search"?(_: {}): any;
293
322
  "input-list"?(_: {
294
323
  open: true;
295
324
  }): any;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
- /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css"; //*');
2
+ /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-938772ee"]]);
5
+ const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-00ccab6b"]]);
6
6
  export {
7
- r as default
7
+ c as default
8
8
  };