@ironsource/shared-ui 2.2.0-test.9 → 2.2.0-test.90

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 (118) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_1036ab1d_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_6f05dc63_lang.css +1 -0
  3. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_73af6757_lang.css +1 -0
  4. package/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
  5. package/DatePickerV4.vue_vue_type_style_index_0_scoped_bb0041c1_lang.css +1 -0
  6. package/DateRangeV4.vue_vue_type_style_index_0_scoped_5545bc01_lang.css +1 -0
  7. package/DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css +1 -0
  8. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  9. package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
  10. package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -1
  11. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -1
  12. package/Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css +1 -0
  13. package/Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css +1 -0
  14. package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
  15. package/MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css +1 -0
  16. package/OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css +1 -0
  17. package/PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css +1 -0
  18. package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/SnackbarV4.vue_vue_type_style_index_0_scoped_f19e742c_lang.css +1 -0
  20. package/Tag.vue_vue_type_style_index_0_scoped_b0662035_lang.css +1 -0
  21. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_8eef6574_lang.css +1 -0
  22. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  23. package/TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css +1 -0
  24. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  25. package/components/ThemeWrapper/ThemeStrore.d.ts +2 -1
  26. package/components/ThemeWrapper/ThemeStrore.js +14 -11
  27. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  28. package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -11
  29. package/components/ThemeWrapper/index.d.ts +2 -1
  30. package/components/ThemeWrapper/index.js +4 -2
  31. package/components/alert/Alert.vue.js +4 -4
  32. package/components/alert/Alert.vue2.js +1 -1
  33. package/components/button/v3/ButtonBase.vue.d.ts +1 -1
  34. package/components/button/v4/ButtonV4.vue.js +3 -3
  35. package/components/button/v4/ButtonV4.vue2.js +1 -1
  36. package/components/chart/Chart.vue.d.ts +5 -0
  37. package/components/chart/Chart.vue.js +3 -3
  38. package/components/chart/Chart.vue2.js +17 -15
  39. package/components/chart/composables/useChartHeight.d.ts +1 -1
  40. package/components/chart/composables/useChartHeight.js +16 -15
  41. package/components/chart/index.d.ts +20 -1
  42. package/components/chart/types.d.ts +1 -0
  43. package/components/datePicker/v4/DatePickerV4.vue.js +2 -2
  44. package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
  45. package/components/dateRange/common/consts.common.d.ts +5 -0
  46. package/components/dateRange/common/consts.common.js +9 -0
  47. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  48. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  49. package/components/dateRange/v3/index.d.ts +7 -7
  50. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  51. package/components/dateRange/v4/CalendarMonthV4.vue2.js +1 -1
  52. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  53. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  54. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  55. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  56. package/components/dateRange/v4/index.d.ts +7 -7
  57. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  58. package/components/dropdown/v3/index.d.ts +12 -12
  59. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
  60. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  61. package/components/dropdown/v4/DropdownV4.vue2.js +152 -146
  62. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  63. package/components/dropdown/v4/OptionV4.vue2.js +13 -12
  64. package/components/forms/FormCard.vue.js +3 -3
  65. package/components/forms/FormCard.vue2.js +5 -5
  66. package/components/loader/v4/Loader.vue.js +3 -3
  67. package/components/loader/v4/Loader.vue2.js +1 -1
  68. package/components/menu/Menu.vue.js +3 -3
  69. package/components/menu/Menu.vue2.js +33 -30
  70. package/components/multibar/MultiBar.vue.js +3 -3
  71. package/components/multibar/MultiBar.vue2.js +51 -50
  72. package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
  73. package/components/popover/v4/PopoverV4.vue.js +2 -2
  74. package/components/popover/v4/PopoverV4.vue2.js +20 -17
  75. package/components/popover/v4/index.d.ts +41 -1
  76. package/components/snackbar/v4/SnackbarV4.vue.js +3 -3
  77. package/components/snackbar/v4/SnackbarV4.vue2.js +1 -1
  78. package/components/tag/Tag.vue.d.ts +26 -0
  79. package/components/tag/Tag.vue.js +3 -3
  80. package/components/tag/Tag.vue2.js +227 -155
  81. package/components/tag/index.d.ts +42 -0
  82. package/components/tooltip/v3/Tooltip.vue.d.ts +1 -1
  83. package/components/tooltip/v3/index.d.ts +20 -20
  84. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -1
  85. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  86. package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
  87. package/components/tooltip/v4/index.d.ts +39 -20
  88. package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
  89. package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +28 -1
  90. package/index.d.ts +195 -76
  91. package/package.json +1 -1
  92. package/style/v4/border-radius.scss +2 -2
  93. package/style/v4/colors.scss +105 -0
  94. package/style/v4/elevations.scss +11 -0
  95. package/style/v4/grid.css +1 -1
  96. package/style/v4/grid.css.map +1 -1
  97. package/style/v4/grid.scss +1 -1
  98. package/style/v4/scrollbar.scss +21 -0
  99. package/style/v4/spacings.scss +1 -1
  100. package/style/v4/styleguideV4.scss +1 -0
  101. package/styleguide.scss +2 -2
  102. package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +0 -1
  103. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +0 -1
  104. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +0 -1
  105. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
  106. package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +0 -1
  107. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
  108. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
  109. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
  110. package/Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css +0 -1
  111. package/Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css +0 -1
  112. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +0 -1
  113. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
  114. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
  115. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +0 -1
  116. package/Tag.vue_vue_type_style_index_0_scoped_043adaf5_lang.css +0 -1
  117. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +0 -1
  118. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
@@ -1,4 +1,4 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css"; import { defineComponent as V, ref as I, watch as F, computed as L, openBlock as i, createBlock as g, unref as n, createSlots as N, withCtx as s, createElementVNode as u, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as r, createVNode as a, toDisplayString as m, createTextVNode as T, withModifiers as O, Fragment as j, renderList as R } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css"; import { defineComponent as V, ref as I, watch as F, computed as L, openBlock as i, createBlock as g, unref as n, createSlots as N, withCtx as s, createElementVNode as u, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as r, createVNode as a, toDisplayString as m, createTextVNode as T, withModifiers as O, Fragment as j, renderList as R } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
3
  import D from "../../typography/Text.vue.js";
4
4
  import q from "../../checkbox/v4/CheckboxV4.vue.js";
@@ -6,7 +6,7 @@ import y from "../../icon/v4/IconV4.vue.js";
6
6
  import G from "../../icon/v4/IconFlag.vue.js";
7
7
  import { NOOP as $ } from "@vue/shared";
8
8
  import { optionCommon as H } from "../common/Option.common.js";
9
- import p from "../../typography/v4/Typography.vue.js";
9
+ import x from "../../typography/v4/Typography.vue.js";
10
10
  import h from "../../tooltip/v4/TooltipV4.vue.js";
11
11
  import { isElementTruncated as J } from "../../../utils/text.js";
12
12
  import { promiseTimeout as Q } from "@vueuse/core";
@@ -71,11 +71,11 @@ const U = { class: "multiline-tooltip" }, W = {
71
71
  setup(e, { emit: M }) {
72
72
  const d = e, { selected: b, id: B, onClick: S, api: K } = H(d), z = (t) => {
73
73
  d.stopOptionClickEventPropagation && t.stopPropagation(), d.disabled ? $() : S(t);
74
- }, x = I(null), w = I(!1), A = (t) => {
74
+ }, p = I(null), w = I(!1), A = (t) => {
75
75
  d.disabled && (t.stopPropagation(), $());
76
76
  };
77
- F([() => d.treeChildShown, x], async () => {
78
- await Q(100), w.value = x.value && J(x.value);
77
+ F([() => d.treeChildShown, p], async () => {
78
+ await Q(100), w.value = p.value && J(p.value);
79
79
  });
80
80
  const P = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : w.value ? t[d.nameKey] : "", k = L(() => {
81
81
  const t = d.disabled && d.minMaxSelectionTooltipMessage || "", c = P(d.option);
@@ -97,7 +97,8 @@ const U = { class: "multiline-tooltip" }, W = {
97
97
  "item-container--disabled": e.disabled,
98
98
  "item-container--active": e.nameKey ? !1 : e.active,
99
99
  "item-container--selected": n(b),
100
- "item-container--multi": e.isMulti
100
+ "item-container--multi": e.isMulti,
101
+ "item-container--filtered-out": e.option?.filteredOut
101
102
  }]),
102
103
  onClick: A
103
104
  }, [
@@ -145,10 +146,10 @@ const U = { class: "multiline-tooltip" }, W = {
145
146
  ])) : o("", !0),
146
147
  u("div", {
147
148
  ref_key: "textContainerRef",
148
- ref: x,
149
+ ref: p,
149
150
  class: "text-container"
150
151
  }, [
151
- a(n(p), {
152
+ a(n(x), {
152
153
  class: "option-text",
153
154
  variant: "body2"
154
155
  }, {
@@ -166,7 +167,7 @@ const U = { class: "multiline-tooltip" }, W = {
166
167
  }, {
167
168
  default: s(() => [
168
169
  e.option?.conditionalOptions ? (i(), l("div", ee, [
169
- a(n(p), {
170
+ a(n(x), {
170
171
  variant: "body2",
171
172
  class: "conditional-option-label"
172
173
  }, {
@@ -175,7 +176,7 @@ const U = { class: "multiline-tooltip" }, W = {
175
176
  ]),
176
177
  _: 1
177
178
  }),
178
- a(n(p), {
179
+ a(n(x), {
179
180
  variant: "h5",
180
181
  class: "conditional-option-value"
181
182
  }, {
@@ -196,7 +197,7 @@ const U = { class: "multiline-tooltip" }, W = {
196
197
  }, null, 8, ["name"])
197
198
  ])) : o("", !0),
198
199
  e.optionTwoLinesKey ? (i(), l("div", ne, [
199
- a(n(p), { variant: "caption" }, {
200
+ a(n(x), { variant: "caption" }, {
200
201
  default: s(() => [
201
202
  T(m(e.option[e.optionTwoLinesKey]), 1)
202
203
  ]),
@@ -279,7 +280,7 @@ const U = { class: "multiline-tooltip" }, W = {
279
280
  name: "tooltip",
280
281
  fn: s(() => [
281
282
  u("div", U, [
282
- (i(!0), l(j, null, R(n(k), (f) => (i(), g(n(p), {
283
+ (i(!0), l(j, null, R(n(k), (f) => (i(), g(n(x), {
283
284
  key: f,
284
285
  variant: "body2"
285
286
  }, {
@@ -1,7 +1,7 @@
1
1
  import o from "./FormCard.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-86feae7b"]]);
2
+ /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css"; //*');
4
+ const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-98458a8f"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css"; import { defineComponent as B, openBlock as d, createElementBlock as c, createElementVNode as f, mergeProps as n, unref as e, renderSlot as m, createVNode as a, withCtx as u, createTextVNode as g, toDisplayString as v, createBlock as T, createCommentVNode as C } from "vue";
1
+ import "../../FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css"; import { defineComponent as B, openBlock as d, createElementBlock as c, createElementVNode as f, mergeProps as n, unref as e, renderSlot as m, createVNode as a, withCtx as u, createTextVNode as g, toDisplayString as v, createBlock as T, createCommentVNode as C } from "vue";
2
2
  import b from "../typography/v4/Typography.vue.js";
3
3
  import k from "../button/v4/ButtonV4.vue.js";
4
4
  import "../button/v4/IconButtonV4.vue.js";
@@ -7,7 +7,7 @@ import "../button/v4/ToggleButtonGroupAB.vue.js";
7
7
  import { FormCardTestIdModifiers as o } from "../../testids/index.js";
8
8
  import { useTestIdAttrs as N } from "../../utils/testIds.js";
9
9
  import i from "../skeleton/v4/SkeletonV4.vue.js";
10
- const p = { class: "form-card" }, h = {
10
+ const h = { class: "form-card" }, p = {
11
11
  key: 1,
12
12
  class: "content-skeleton-container"
13
13
  }, F = /* @__PURE__ */ B({
@@ -27,7 +27,7 @@ const p = { class: "form-card" }, h = {
27
27
  setup(t, { emit: y }) {
28
28
  const l = N(t.testId, o);
29
29
  return (r, s) => (d(), c("div", null, [
30
- f("div", p, [
30
+ f("div", h, [
31
31
  f("header", n({ class: "card-header" }, e(l)[e(o).TITLE]), [
32
32
  t.isLoading ? (d(), T(e(i), {
33
33
  key: 1,
@@ -46,7 +46,7 @@ const p = { class: "form-card" }, h = {
46
46
  f("div", n({
47
47
  class: ["card-content", { "card-content--no-padding": t.noPadding }]
48
48
  }, e(l)[e(o).CONTENT]), [
49
- t.isLoading ? (d(), c("div", h, [
49
+ t.isLoading ? (d(), c("div", p, [
50
50
  a(e(i), {
51
51
  type: "rectangle",
52
52
  size: 20,
@@ -85,7 +85,7 @@ const p = { class: "form-card" }, h = {
85
85
  class: "form-action",
86
86
  loading: t.saveLoading
87
87
  }, e(l)[e(o).SAVE_BUTTON], {
88
- disabled: t.saveDisabled || t.isLoading,
88
+ disabled: t.saveDisabled || t.isLoading || t.saveLoading,
89
89
  onClick: s[1] || (s[1] = (L) => y("save"))
90
90
  }), {
91
91
  default: u(() => [
@@ -1,7 +1,7 @@
1
1
  import o from "./Loader.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-50d9be64"]]);
3
+ // import "../../../Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-94c3c850"]]);
5
5
  export {
6
- d as default
6
+ t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css"; import { defineComponent as v, ref as l, onMounted as m, openBlock as u, createElementBlock as h, createElementVNode as g, renderSlot as x, normalizeStyle as p } from "vue";
1
+ import "../../../Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css"; import { defineComponent as v, ref as l, onMounted as m, openBlock as u, createElementBlock as h, createElementVNode as g, renderSlot as x, normalizeStyle as p } from "vue";
2
2
  const W = { style: { visibility: "hidden" } }, O = ["width", "height"], _ = ["r"], y = /* @__PURE__ */ v({
3
3
  __name: "Loader",
4
4
  props: {
@@ -1,8 +1,8 @@
1
1
  import e from "./Menu.vue2.js";
2
2
  /* empty css *//* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css"; //*');
3
+ // import "../../Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css"; //*');
4
4
  // import "../../Menu.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb057818"]]);
5
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-545aa70b"]]);
6
6
  export {
7
- l as default
7
+ a as default
8
8
  };
@@ -1,8 +1,9 @@
1
- import "../../Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css"; import "../../Menu.vue_vue_type_style_index_1_lang.css"; import { defineComponent as k, ref as s, computed as u, openBlock as v, createBlock as h, unref as t, withCtx as a, createElementVNode as l, renderSlot as f } from "vue";
2
- import { Dropdown as C } from "floating-vue";
3
- import { onClickOutside as w } from "@vueuse/core";
4
- import { useToggle as B } from "../../composables/useToggle.js";
5
- const $ = /* @__PURE__ */ k({
1
+ import "../../Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css"; import "../../Menu.vue_vue_type_style_index_1_lang.css"; import { defineComponent as C, computed as r, ref as l, openBlock as T, createBlock as w, unref as e, withCtx as u, createElementVNode as f, normalizeClass as B, renderSlot as m } from "vue";
2
+ import { Dropdown as O } from "floating-vue";
3
+ import { onClickOutside as $ } from "@vueuse/core";
4
+ import { useToggle as y } from "../../composables/useToggle.js";
5
+ import { useThemeStore as R } from "../ThemeWrapper/ThemeStrore.js";
6
+ const z = /* @__PURE__ */ C({
6
7
  __name: "Menu",
7
8
  props: {
8
9
  isOnTop: { type: Boolean, default: !0 },
@@ -12,51 +13,53 @@ const $ = /* @__PURE__ */ k({
12
13
  container: { default: "body" },
13
14
  testId: { default: "" }
14
15
  },
15
- setup(e) {
16
- const [c, d] = B({ initialValue: !1 }), r = s(), n = s(), p = u(() => n.value?.getBoundingClientRect()), g = u(() => {
17
- if (!r.value || !n.value)
16
+ setup(t) {
17
+ const { theme: a } = R(), c = r(
18
+ () => a.value === "dark" ? "is-menu-dark" : "is-menu"
19
+ ), p = r(() => `${a.value}-theme-v4`), [g, s] = y({ initialValue: !1 }), d = l(), n = l(), h = r(() => n.value?.getBoundingClientRect()), k = r(() => {
20
+ if (!d.value || !n.value)
18
21
  return;
19
22
  const { width: o } = n.value.getBoundingClientRect();
20
23
  return -o;
21
24
  });
22
- return w(r, () => {
23
- d(!1);
24
- }), (o, i) => (v(), h(t(C), {
25
+ return $(d, () => {
26
+ s(!1);
27
+ }), (o, i) => (T(), w(e(O), {
25
28
  class: "menu",
26
- theme: "is-menu",
29
+ theme: e(c),
27
30
  triggers: [],
28
- shown: t(c),
31
+ shown: e(g),
29
32
  placement: "auto-start",
30
- container: e.container,
33
+ container: t.container,
31
34
  flip: "",
32
- distance: e.isOnTop ? t(g) : e.distance,
33
- skidding: e.isOnTop ? -t(p)?.height / 2 : e.distance,
35
+ distance: t.isOnTop ? e(k) : t.distance,
36
+ skidding: t.isOnTop ? -e(h)?.height / 2 : t.distance,
34
37
  "auto-hide": !1,
35
- "test-id": e.testId
38
+ "test-id": t.testId
36
39
  }, {
37
- popper: a(() => [
38
- l("div", {
40
+ popper: u(() => [
41
+ f("div", {
39
42
  ref_key: "popup",
40
- ref: r,
41
- class: "menu-popup",
42
- onClick: i[1] || (i[1] = (m) => t(d)(!1))
43
+ ref: d,
44
+ class: B(["menu-popup", e(p)]),
45
+ onClick: i[1] || (i[1] = (v) => e(s)(!1))
43
46
  }, [
44
- f(o.$slots, "default", {}, void 0, !0)
45
- ], 512)
47
+ m(o.$slots, "default", {}, void 0, !0)
48
+ ], 2)
46
49
  ]),
47
- default: a(() => [
48
- l("div", {
50
+ default: u(() => [
51
+ f("div", {
49
52
  ref_key: "triggerRef",
50
53
  ref: n,
51
- onClick: i[0] || (i[0] = (m) => t(d)())
54
+ onClick: i[0] || (i[0] = (v) => e(s)())
52
55
  }, [
53
- f(o.$slots, "trigger", {}, void 0, !0)
56
+ m(o.$slots, "trigger", {}, void 0, !0)
54
57
  ], 512)
55
58
  ]),
56
59
  _: 3
57
- }, 8, ["shown", "container", "distance", "skidding", "test-id"]));
60
+ }, 8, ["theme", "shown", "container", "distance", "skidding", "test-id"]));
58
61
  }
59
62
  });
60
63
  export {
61
- $ as default
64
+ z as default
62
65
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./MultiBar.vue2.js";
2
2
  /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css"; //*');
4
- const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c4395fb6"]]);
3
+ // import "../../MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-7c2477ad"]]);
5
5
  export {
6
- c as default
6
+ a as default
7
7
  };
@@ -1,20 +1,21 @@
1
- import "../../MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css"; import { defineComponent as k, computed as v, openBlock as l, createBlock as d, Teleport as x, createVNode as u, Transition as g, withCtx as c, unref as t, createElementBlock as r, mergeProps as B, createElementVNode as V, createTextVNode as h, toDisplayString as A, createCommentVNode as m, Fragment as z, renderList as M, normalizeClass as N } from "vue";
2
- import { useVModel as $ } from "@vueuse/core";
3
- import E from "../typography/v4/Typography.vue.js";
4
- import S from "../button/v4/ButtonV4.vue.js";
5
- import P from "../button/v4/IconButtonV4.vue.js";
1
+ import "../../MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css"; import { defineComponent as g, computed as d, openBlock as s, createBlock as u, Teleport as V, createVNode as c, Transition as $, withCtx as r, unref as e, createElementBlock as m, mergeProps as y, createElementVNode as z, createTextVNode as B, toDisplayString as T, createCommentVNode as f, Fragment as M, renderList as N, normalizeClass as E } from "vue";
2
+ import { useVModel as S } from "@vueuse/core";
3
+ import { useThemeStore as P } from "../ThemeWrapper/ThemeStrore.js";
4
+ import w from "../typography/v4/Typography.vue.js";
5
+ import L from "../button/v4/ButtonV4.vue.js";
6
+ import O from "../button/v4/IconButtonV4.vue.js";
6
7
  import "../button/v4/ButtonGroup.vue.js";
7
8
  import "../button/v4/ToggleButtonGroupAB.vue.js";
8
- import w from "./MultiBarMenu.vue.js";
9
- import { useTestIdAttrs as L } from "../../utils/testIds.js";
10
- import { MultiBarTestIdModifiers as n } from "../../testids/index.js";
11
- const O = { class: "multi-bar-panel" }, R = {
9
+ import R from "./MultiBarMenu.vue.js";
10
+ import { useTestIdAttrs as D } from "../../utils/testIds.js";
11
+ import { MultiBarTestIdModifiers as l } from "../../testids/index.js";
12
+ const F = { class: "multi-bar-panel" }, U = {
12
13
  key: 0,
13
14
  class: "count-text"
14
- }, D = {
15
+ }, W = {
15
16
  inheritAttrs: !1
16
- }, Z = /* @__PURE__ */ k({
17
- ...D,
17
+ }, oe = /* @__PURE__ */ g({
18
+ ...W,
18
19
  __name: "MultiBar",
19
20
  props: {
20
21
  modelValue: { type: Boolean },
@@ -28,26 +29,26 @@ const O = { class: "multi-bar-panel" }, R = {
28
29
  zIndex: { default: 1e3 }
29
30
  },
30
31
  emits: ["update:modelValue", "close", "action"],
31
- setup(o, { emit: s }) {
32
- const e = o, f = $(e, "modelValue", s), I = () => {
33
- f.value = !1, s("close");
34
- }, b = (a) => {
35
- s("action", a);
36
- }, p = v(
37
- () => e.actions.length > e.visibleActionsCount ? e.actions.slice(0, e.visibleActionsCount) : e.actions
38
- ), C = v(
39
- () => e.actions.length > e.visibleActionsCount ? e.actions.slice(e.visibleActionsCount) : []
40
- ), y = L(e.testId, n);
41
- return (a, F) => (l(), d(x, {
32
+ setup(o, { emit: n }) {
33
+ const t = o, b = S(t, "modelValue", n), A = () => {
34
+ b.value = !1, n("close");
35
+ }, p = (a) => {
36
+ n("action", a);
37
+ }, C = d(
38
+ () => t.actions.length > t.visibleActionsCount ? t.actions.slice(0, t.visibleActionsCount) : t.actions
39
+ ), h = d(
40
+ () => t.actions.length > t.visibleActionsCount ? t.actions.slice(t.visibleActionsCount) : []
41
+ ), v = D(t.testId, l), { theme: I } = P(), k = d(() => `${I.value}-theme-v4`);
42
+ return (a, j) => (s(), u(V, {
42
43
  to: "body",
43
44
  disabled: !o.appendToBody
44
45
  }, [
45
- u(g, { name: "multi-bar" }, {
46
- default: c(() => [
47
- t(f) ? (l(), r("div", B({
46
+ c($, { name: "multi-bar" }, {
47
+ default: r(() => [
48
+ e(b) ? (s(), m("div", y({
48
49
  key: 0,
49
50
  class: ["multi-bar", {
50
- "light-theme-v4": !0,
51
+ [e(k)]: !0,
51
52
  "multi-bar--fixed": o.appendToBody,
52
53
  "multi-bar--absolute": !o.appendToBody,
53
54
  "multi-bar--small": o.size === "small",
@@ -55,45 +56,45 @@ const O = { class: "multi-bar-panel" }, R = {
55
56
  "multi-bar--left": o.position === "left"
56
57
  }],
57
58
  style: { zIndex: o.zIndex }
58
- }, { ...a.$attrs, ...t(y)[t(n).WRAPPER] }), [
59
- V("div", O, [
60
- u(t(P), B({
59
+ }, { ...a.$attrs, ...e(v)[e(l).WRAPPER] }), [
60
+ z("div", F, [
61
+ c(e(O), y({
61
62
  "icon-name": "x",
62
63
  class: "close-icon"
63
- }, t(y)[t(n).CLOSE_BTN], { onClick: I }), null, 16),
64
- o.selectedCount ? (l(), r("div", R, [
65
- u(t(E), { variant: "body1" }, {
66
- default: c(() => [
67
- h(A(o.selectedCount) + " selected ", 1)
64
+ }, e(v)[e(l).CLOSE_BTN], { onClick: A }), null, 16),
65
+ o.selectedCount ? (s(), m("div", U, [
66
+ c(e(w), { variant: "body1" }, {
67
+ default: r(() => [
68
+ B(T(o.selectedCount) + " selected ", 1)
68
69
  ]),
69
70
  _: 1
70
71
  })
71
- ])) : m("", !0),
72
- (l(!0), r(z, null, M(t(p), (i, T) => (l(), d(t(S), {
72
+ ])) : f("", !0),
73
+ (s(!0), m(M, null, N(e(C), (i, x) => (s(), u(e(L), {
73
74
  key: i.id,
74
- class: N(["action-button", {
75
- "action-button--last": T === t(p).length - 1
75
+ class: E(["action-button", {
76
+ "action-button--last": x === e(C).length - 1
76
77
  }]),
77
78
  variant: "text",
78
79
  color: "default",
79
80
  "start-icon-name": i.icon,
80
- "data-testid": `${e.testId}-${t(n).ACTION}-${i.id}`,
81
+ "data-testid": `${t.testId}-${e(l).ACTION}-${i.id}`,
81
82
  disabled: i.disabled,
82
- onClick: (U) => b(i)
83
+ onClick: (q) => p(i)
83
84
  }, {
84
- default: c(() => [
85
- h(A(i.title), 1)
85
+ default: r(() => [
86
+ B(T(i.title), 1)
86
87
  ]),
87
88
  _: 2
88
89
  }, 1032, ["class", "start-icon-name", "data-testid", "disabled", "onClick"]))), 128)),
89
- t(C).length ? (l(), d(w, {
90
+ e(h).length ? (s(), u(R, {
90
91
  key: 1,
91
- "menu-items": t(C),
92
- "test-id": `${e.testId}-${t(n).MENU}`,
93
- onSelected: b
94
- }, null, 8, ["menu-items", "test-id"])) : m("", !0)
92
+ "menu-items": e(h),
93
+ "test-id": `${t.testId}-${e(l).MENU}`,
94
+ onSelected: p
95
+ }, null, 8, ["menu-items", "test-id"])) : f("", !0)
95
96
  ])
96
- ], 16)) : m("", !0)
97
+ ], 16)) : f("", !0)
97
98
  ]),
98
99
  _: 1
99
100
  })
@@ -101,5 +102,5 @@ const O = { class: "multi-bar-panel" }, R = {
101
102
  }
102
103
  });
103
104
  export {
104
- Z as default
105
+ oe as default
105
106
  };
@@ -7,6 +7,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  placement?: Placement;
8
8
  distance?: number;
9
9
  skidding?: number;
10
+ delay?: number | {
11
+ show: number;
12
+ hide: number;
13
+ };
10
14
  testId?: string;
11
15
  popperClass?: string;
12
16
  container?: string;
@@ -18,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
22
  placement: string;
19
23
  distance: number;
20
24
  skidding: number;
25
+ delay: number;
21
26
  testId: string;
22
27
  popperClass: string;
23
28
  container: string;
@@ -33,6 +38,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
33
38
  placement?: Placement;
34
39
  distance?: number;
35
40
  skidding?: number;
41
+ delay?: number | {
42
+ show: number;
43
+ hide: number;
44
+ };
36
45
  testId?: string;
37
46
  popperClass?: string;
38
47
  container?: string;
@@ -44,6 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
44
53
  placement: string;
45
54
  distance: number;
46
55
  skidding: number;
56
+ delay: number;
47
57
  testId: string;
48
58
  popperClass: string;
49
59
  container: string;
@@ -51,6 +61,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
51
61
  onIsOpen?: (value: boolean) => any;
52
62
  }, {
53
63
  testId: string;
64
+ delay: number | {
65
+ show: number;
66
+ hide: number;
67
+ };
54
68
  placement: Placement;
55
69
  disabled: boolean;
56
70
  distance: number;
@@ -1,8 +1,8 @@
1
1
  import o from "./PopoverV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css"; //*');
3
+ // import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css"; //*');
4
4
  // import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-66694b4e"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ea1a3e8c"]]);
6
6
  export {
7
7
  r as default
8
8
  };
@@ -1,7 +1,8 @@
1
- import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as k, watch as s, openBlock as p, createBlock as y, unref as a, withCtx as u, createElementBlock as h, renderSlot as g, createCommentVNode as B, createElementVNode as C } from "vue";
2
- import { Dropdown as w } from "floating-vue";
3
- import { popoverCommon as $ } from "../common/Popover.common.js";
4
- const O = ["data-testid"], H = /* @__PURE__ */ k({
1
+ import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as h, computed as C, watch as s, openBlock as p, createBlock as B, unref as a, withCtx as u, createElementBlock as $, normalizeClass as w, renderSlot as m, createCommentVNode as O, createElementVNode as T } from "vue";
2
+ import { Dropdown as b } from "floating-vue";
3
+ import { popoverCommon as V } from "../common/Popover.common.js";
4
+ import { useThemeStore as E } from "../../ThemeWrapper/ThemeStrore.js";
5
+ const H = ["data-testid"], S = /* @__PURE__ */ h({
5
6
  __name: "PopoverV4",
6
7
  props: {
7
8
  isOpen: { type: Boolean, default: !1 },
@@ -11,15 +12,16 @@ const O = ["data-testid"], H = /* @__PURE__ */ k({
11
12
  placement: { default: "bottom-start" },
12
13
  distance: { default: 0 },
13
14
  skidding: { default: 0 },
15
+ delay: { default: 0 },
14
16
  testId: { default: "" },
15
17
  popperClass: { default: "" },
16
18
  container: { default: "body" }
17
19
  },
18
20
  emits: ["isOpen"],
19
- setup(e, { expose: f, emit: m }) {
20
- const i = e, { popup: c, open: t, toggle: d, triggerRef: v } = $();
21
+ setup(e, { expose: f, emit: g }) {
22
+ const i = e, { popup: c, open: t, toggle: d, triggerRef: v } = V(), { theme: k } = E(), y = C(() => `${k.value}-theme-v4`);
21
23
  s(t, () => {
22
- m("isOpen", t.value);
24
+ g("isOpen", t.value);
23
25
  }), s(
24
26
  () => i.isOpen,
25
27
  (o) => {
@@ -31,7 +33,7 @@ const O = ["data-testid"], H = /* @__PURE__ */ k({
31
33
  };
32
34
  return f({
33
35
  toggle: d
34
- }), (o, n) => (p(), y(a(w), {
36
+ }), (o, n) => (p(), B(a(b), {
35
37
  theme: "custom-popover",
36
38
  placement: e.placement,
37
39
  shown: !!a(t),
@@ -39,35 +41,36 @@ const O = ["data-testid"], H = /* @__PURE__ */ k({
39
41
  "auto-hide": e.autoHide,
40
42
  distance: e.distance,
41
43
  skidding: e.skidding,
44
+ delay: e.delay,
42
45
  container: e.container,
43
- "popper-class": [e.popperClass, "v4-popover__popper light-theme-v4"]
46
+ "popper-class": [e.popperClass, "v4-popover__popper"]
44
47
  }, {
45
48
  popper: u(() => [
46
- a(t) ? (p(), h("div", {
49
+ a(t) ? (p(), $("div", {
47
50
  key: 0,
48
51
  ref_key: "popup",
49
52
  ref: c,
50
- class: "menu-popup",
53
+ class: w(["menu-popup", a(y)]),
51
54
  "data-testid": e.testId
52
55
  }, [
53
- g(o.$slots, "content", {}, void 0, !0)
54
- ], 8, O)) : B("", !0)
56
+ m(o.$slots, "content", {}, void 0, !0)
57
+ ], 10, H)) : O("", !0)
55
58
  ]),
56
59
  default: u(() => [
57
- C("div", {
60
+ T("div", {
58
61
  ref_key: "triggerRef",
59
62
  ref: v,
60
63
  onClick: n[0] || (n[0] = (l) => r("click")),
61
64
  onMouseenter: n[1] || (n[1] = (l) => r("hover")),
62
65
  onMouseleave: n[2] || (n[2] = (l) => r("hover"))
63
66
  }, [
64
- g(o.$slots, "trigger", {}, void 0, !0)
67
+ m(o.$slots, "trigger", {}, void 0, !0)
65
68
  ], 544)
66
69
  ]),
67
70
  _: 3
68
- }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "container", "popper-class"]));
71
+ }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "delay", "container", "popper-class"]));
69
72
  }
70
73
  });
71
74
  export {
72
- H as default
75
+ S as default
73
76
  };