@ironsource/shared-ui 2.0.0 → 2.0.1-test.2

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 (101) hide show
  1. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c48dc06e_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +1 -0
  3. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_4e432056_lang.css +1 -0
  5. package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +1 -0
  6. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_11c1bb3f_lang.css +1 -0
  7. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +1 -0
  8. package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +1 -0
  9. package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  11. package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +1 -0
  12. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +1 -0
  13. package/OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css +1 -0
  14. package/{Skeleton.vue_vue_type_style_index_0_scoped_9837f0ce_lang.css → Skeleton.vue_vue_type_style_index_0_scoped_5ed40068_lang.css} +1 -1
  15. package/SkeletonV4.vue_vue_type_style_index_0_scoped_2f3b3470_lang.css +1 -0
  16. package/Table.vue_vue_type_style_index_0_scoped_76fef9bd_lang.css +1 -0
  17. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +1 -0
  18. package/components/button/v4/ButtonV4.vue.js +4 -4
  19. package/components/button/v4/ButtonV4.vue2.js +1 -1
  20. package/components/dialog/v4/DialogV4.vue.d.ts +34 -0
  21. package/components/dialog/v4/DialogV4.vue.js +3 -3
  22. package/components/dialog/v4/DialogV4.vue2.js +87 -56
  23. package/components/dialog/v4/index.d.ts +128 -2
  24. package/components/dropdown/common/Dropdown.common.js +29 -29
  25. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +136 -0
  26. package/components/dropdown/v4/AppDropdownTrigger.vue.js +7 -0
  27. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +147 -0
  28. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  29. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +8 -8
  30. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +39 -11
  31. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  32. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +77 -47
  33. package/components/dropdown/v4/Dropdown.types.d.ts +1 -1
  34. package/components/dropdown/v4/Dropdown.types.js +2 -1
  35. package/components/dropdown/v4/DropdownV4.vue.d.ts +42 -7
  36. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  37. package/components/dropdown/v4/DropdownV4.vue2.js +193 -163
  38. package/components/dropdown/v4/OptionV4.vue.d.ts +20 -0
  39. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  40. package/components/dropdown/v4/OptionV4.vue2.js +54 -37
  41. package/components/dropdown/v4/index.d.ts +824 -70
  42. package/components/dropdown/v4/index.js +11 -8
  43. package/components/includeExclude/IncludeExclude.vue.js +3 -3
  44. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  45. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  46. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
  47. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  48. package/components/includeExclude/index.d.ts +20 -20
  49. package/components/input/v4/TextField.vue.d.ts +1 -1
  50. package/components/input/v4/TextField.vue.js +3 -3
  51. package/components/input/v4/TextField.vue2.js +9 -10
  52. package/components/input/v4/index.d.ts +20 -20
  53. package/components/layout/FormCard.vue.d.ts +1 -1
  54. package/components/layout/index.d.ts +12 -12
  55. package/components/multibar/MultiBarMenu.vue2.js +7 -6
  56. package/components/skeleton/v3/Skeleton.vue.js +7 -0
  57. package/components/skeleton/{Skeleton.vue2.js → v3/Skeleton.vue2.js} +1 -1
  58. package/components/skeleton/v4/SkeletonV4.vue.d.ts +41 -0
  59. package/components/skeleton/v4/SkeletonV4.vue.js +7 -0
  60. package/components/skeleton/v4/SkeletonV4.vue2.js +23 -0
  61. package/components/skeleton/v4/index.d.ts +94 -0
  62. package/components/skeleton/v4/index.js +6 -0
  63. package/components/table/v3/Table.vue.js +5 -5
  64. package/components/table/v3/Table.vue2.js +3 -3
  65. package/components/table/v4/DataGrid.vue.d.ts +7 -2
  66. package/components/table/v4/DataGrid.vue.js +4 -4
  67. package/components/table/v4/DataGrid.vue2.js +175 -169
  68. package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
  69. package/components/table/v4/DataGridMenu.vue.js +3 -3
  70. package/components/table/v4/DataGridMenu.vue2.js +49 -38
  71. package/components/table/v4/DataGridRowsCounter.vue.d.ts +34 -0
  72. package/components/table/v4/DataGridRowsCounter.vue.js +7 -0
  73. package/components/table/v4/DataGridRowsCounter.vue2.js +36 -0
  74. package/components/table/v4/index.d.ts +56 -6
  75. package/components/table/v4/index.js +6 -4
  76. package/components/table/v4/storyUtils.d.ts +1 -0
  77. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  78. package/components/toggle/v4/index.d.ts +20 -20
  79. package/index.d.ts +2401 -360
  80. package/index.js +119 -119
  81. package/mocks/apps.d.ts +7 -0
  82. package/package.json +6 -2
  83. package/testids/index.d.ts +3 -1
  84. package/testids/index.js +10 -10
  85. package/utils/array.js +1 -1
  86. package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_lang.css +0 -1
  87. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_14dcdae5_lang.css +0 -1
  88. package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +0 -1
  89. package/DataGridMenu.vue_vue_type_style_index_0_scoped_99f1dcca_lang.css +0 -1
  90. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c218ef1f_lang.css +0 -1
  91. package/DialogV4.vue_vue_type_style_index_0_scoped_c0c12287_lang.css +0 -1
  92. package/DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css +0 -1
  93. package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +0 -1
  94. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +0 -1
  95. package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +0 -1
  96. package/Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css +0 -1
  97. package/TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css +0 -1
  98. package/components/skeleton/Skeleton.vue.js +0 -7
  99. /package/components/skeleton/{Skeleton.vue.d.ts → v3/Skeleton.vue.d.ts} +0 -0
  100. /package/components/skeleton/{index.d.ts → v3/index.d.ts} +0 -0
  101. /package/components/skeleton/{index.js → v3/index.js} +0 -0
@@ -1,18 +1,18 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css"; import { defineComponent as C, openBlock as o, createElementBlock as n, normalizeClass as f, unref as e, createElementVNode as d, createBlock as p, createCommentVNode as l, renderSlot as c, createVNode as b, withCtx as k, createTextVNode as g, toDisplayString as B, withModifiers as $ } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css"; import { defineComponent as $, openBlock as n, createElementBlock as o, normalizeClass as y, unref as t, createElementVNode as d, createBlock as k, createCommentVNode as l, renderSlot as m, createVNode as r, withCtx as b, createTextVNode as g, toDisplayString as h, withModifiers as p } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
3
  import N from "../../typography/Text.vue.js";
4
- import V from "../../checkbox/v3/Checkbox.vue.js";
5
- import w from "../../icon/v4/IconV4.vue.js";
6
- import { NOOP as O } from "@vue/shared";
7
- import { optionCommon as S } from "../common/Option.common.js";
4
+ import T from "../../checkbox/v4/CheckboxV4.vue.js";
5
+ import v from "../../icon/v4/IconV4.vue.js";
6
+ import { NOOP as V } from "@vue/shared";
7
+ import { optionCommon as w } from "../common/Option.common.js";
8
8
  import x from "../../typography/v4/Typography.vue.js";
9
9
  const z = {
10
10
  key: 1,
11
11
  class: "image"
12
- }, I = {
12
+ }, O = ["src"], S = {
13
13
  key: 2,
14
14
  class: "start-icon"
15
- }, T = { class: "text-container" }, E = { key: 0 }, H = /* @__PURE__ */ C({
15
+ }, I = { class: "text-container" }, E = { key: 0 }, H = /* @__PURE__ */ $({
16
16
  __name: "OptionV4",
17
17
  props: {
18
18
  option: { default: null },
@@ -21,66 +21,83 @@ const z = {
21
21
  selectedProp: { type: Boolean },
22
22
  isIndeterminate: { type: Boolean, default: !1 },
23
23
  selectAllOption: { type: Boolean, default: !1 },
24
- active: { type: Boolean, default: null }
24
+ active: { type: Boolean, default: null },
25
+ nameKey: { default: null },
26
+ imageKey: { default: null },
27
+ iconKey: { default: null },
28
+ iconType: { default: null }
25
29
  },
26
- setup(t) {
27
- const v = t, { selected: a, isMulti: r, id: y, onClick: h, api: m } = S(v);
28
- return (i, s) => (o(), n("div", {
30
+ setup(e) {
31
+ const K = e, { selected: s, isMulti: c, id: C, onClick: B, api: u } = w(K);
32
+ return (i, a) => (n(), o("div", {
29
33
  ref: "el",
30
- class: f(["item-container", {
31
- "item-container--disabled": t.disabled,
32
- "item-container--active": t.active,
33
- "item-container--selected": e(a),
34
- "item-container--multi": e(r)
34
+ class: y(["item-container", {
35
+ "item-container--disabled": e.disabled,
36
+ "item-container--active": e.nameKey ? !1 : e.active,
37
+ "item-container--selected": t(s),
38
+ "item-container--multi": t(c)
35
39
  }])
36
40
  }, [
37
41
  d("div", {
38
- class: f(["item", {
39
- "item--multi": e(r),
42
+ class: y(["item", {
43
+ "item--multi": t(c),
40
44
  "item--with-icon": i.$slots["icon-start"] || i.$slots.image
41
45
  }])
42
46
  }, [
43
- e(r) ? (o(), p(e(V), {
47
+ t(c) ? (n(), k(t(T), {
44
48
  key: 0,
45
- id: e(y).toString(),
49
+ id: t(C).toString(),
46
50
  tabindex: "-1",
47
51
  class: "checkbox",
48
52
  size: "sm",
49
- "is-checked": e(a),
50
- "is-indeterminate": t.isIndeterminate && !t.option,
51
- onClick: s[0] || (s[0] = (u) => t.disabled ? e(O)() : e(h)(u))
53
+ "is-checked": t(s),
54
+ "is-indeterminate": e.isIndeterminate && !e.option,
55
+ onClick: a[0] || (a[0] = (f) => e.disabled ? t(V)() : t(B)(f))
52
56
  }, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
53
- i.$slots.image ? (o(), n("div", z, [
54
- c(i.$slots, "image", {}, void 0, !0)
57
+ i.$slots.image || e.imageKey ? (n(), o("div", z, [
58
+ m(i.$slots, "image", {}, () => [
59
+ e.imageKey ? (n(), o("img", {
60
+ key: 0,
61
+ src: e.option[e.imageKey]
62
+ }, null, 8, O)) : l("", !0)
63
+ ], !0)
55
64
  ])) : l("", !0),
56
- i.$slots["icon-start"] ? (o(), n("div", I, [
57
- c(i.$slots, "icon-start", {}, void 0, !0)
65
+ i.$slots["icon-start"] || e.iconKey ? (n(), o("div", S, [
66
+ m(i.$slots, "icon-start", {}, () => [
67
+ r(t(v), {
68
+ type: e.iconType,
69
+ name: e.option[e.iconKey],
70
+ size: "16px"
71
+ }, null, 8, ["type", "name"])
72
+ ], !0)
58
73
  ])) : l("", !0),
59
- d("div", T, [
60
- b(e(x), { variant: "body2" }, {
61
- default: k(() => [
62
- c(i.$slots, "default", {}, void 0, !0)
74
+ d("div", I, [
75
+ r(t(x), { variant: "body2" }, {
76
+ default: b(() => [
77
+ m(i.$slots, "default", {}, () => [
78
+ g(h(e.option[e.nameKey]), 1)
79
+ ], !0)
63
80
  ]),
64
81
  _: 3
65
82
  }),
66
- t.subtitle ? (o(), p(e(N), {
83
+ e.subtitle ? (n(), k(t(N), {
67
84
  key: 0,
68
85
  class: "subtitle",
69
86
  size: "xs"
70
87
  }, {
71
- default: k(() => [
72
- g(B(t.subtitle), 1)
88
+ default: b(() => [
89
+ g(h(e.subtitle), 1)
73
90
  ]),
74
91
  _: 1
75
92
  })) : l("", !0)
76
93
  ])
77
94
  ], 2),
78
- e(m).clearable && e(a) ? (o(), n("div", E, [
95
+ t(u).clearable && t(s) ? (n(), o("div", E, [
79
96
  d("button", {
80
97
  class: "clear-button",
81
- onClick: s[1] || (s[1] = $((u) => e(m).clearSelection(), ["prevent", "stop"]))
98
+ onClick: a[1] || (a[1] = p((f) => t(u).clearSelection(), ["prevent", "stop"]))
82
99
  }, [
83
- b(e(w), {
100
+ r(t(v), {
84
101
  name: "close",
85
102
  width: "8",
86
103
  height: 8