@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.
- package/Alert.vue_vue_type_style_index_0_scoped_1036ab1d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_6f05dc63_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_73af6757_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_bb0041c1_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_5545bc01_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -1
- package/Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_f19e742c_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_b0662035_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_8eef6574_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/ThemeWrapper/ThemeStrore.d.ts +2 -1
- package/components/ThemeWrapper/ThemeStrore.js +14 -11
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -11
- package/components/ThemeWrapper/index.d.ts +2 -1
- package/components/ThemeWrapper/index.js +4 -2
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +1 -1
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +17 -15
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -15
- package/components/chart/index.d.ts +20 -1
- package/components/chart/types.d.ts +1 -0
- package/components/datePicker/v4/DatePickerV4.vue.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -0
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +1 -1
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +152 -146
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +13 -12
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +5 -5
- package/components/loader/v4/Loader.vue.js +3 -3
- package/components/loader/v4/Loader.vue2.js +1 -1
- package/components/menu/Menu.vue.js +3 -3
- package/components/menu/Menu.vue2.js +33 -30
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +51 -50
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +20 -17
- package/components/popover/v4/index.d.ts +41 -1
- package/components/snackbar/v4/SnackbarV4.vue.js +3 -3
- package/components/snackbar/v4/SnackbarV4.vue2.js +1 -1
- package/components/tag/Tag.vue.d.ts +26 -0
- package/components/tag/Tag.vue.js +3 -3
- package/components/tag/Tag.vue2.js +227 -155
- package/components/tag/index.d.ts +42 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/v3/index.d.ts +20 -20
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -1
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
- package/components/tooltip/v4/index.d.ts +39 -20
- package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
- package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +28 -1
- package/index.d.ts +195 -76
- package/package.json +1 -1
- package/style/v4/border-radius.scss +2 -2
- package/style/v4/colors.scss +105 -0
- package/style/v4/elevations.scss +11 -0
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/grid.scss +1 -1
- package/style/v4/scrollbar.scss +21 -0
- package/style/v4/spacings.scss +1 -1
- package/style/v4/styleguideV4.scss +1 -0
- package/styleguide.scss +2 -2
- package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
- package/Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css +0 -1
- package/Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +0 -1
- package/Tag.vue_vue_type_style_index_0_scoped_043adaf5_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
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
|
|
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
|
-
},
|
|
74
|
+
}, p = I(null), w = I(!1), A = (t) => {
|
|
75
75
|
d.disabled && (t.stopPropagation(), $());
|
|
76
76
|
};
|
|
77
|
-
F([() => d.treeChildShown,
|
|
78
|
-
await Q(100), w.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:
|
|
149
|
+
ref: p,
|
|
149
150
|
class: "text-container"
|
|
150
151
|
}, [
|
|
151
|
-
a(n(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
3
|
-
// import "../../FormCard.
|
|
4
|
-
const t = /* @__PURE__ */
|
|
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.
|
|
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
|
|
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",
|
|
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",
|
|
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.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../Loader.
|
|
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.
|
|
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
|
|
5
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-545aa70b"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../../Menu.
|
|
2
|
-
import { Dropdown as
|
|
3
|
-
import { onClickOutside as
|
|
4
|
-
import { useToggle as
|
|
5
|
-
|
|
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(
|
|
16
|
-
const
|
|
17
|
-
|
|
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
|
|
23
|
-
|
|
24
|
-
}), (o, i) => (
|
|
25
|
+
return $(d, () => {
|
|
26
|
+
s(!1);
|
|
27
|
+
}), (o, i) => (T(), w(e(O), {
|
|
25
28
|
class: "menu",
|
|
26
|
-
theme:
|
|
29
|
+
theme: e(c),
|
|
27
30
|
triggers: [],
|
|
28
|
-
shown:
|
|
31
|
+
shown: e(g),
|
|
29
32
|
placement: "auto-start",
|
|
30
|
-
container:
|
|
33
|
+
container: t.container,
|
|
31
34
|
flip: "",
|
|
32
|
-
distance:
|
|
33
|
-
skidding:
|
|
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":
|
|
38
|
+
"test-id": t.testId
|
|
36
39
|
}, {
|
|
37
|
-
popper:
|
|
38
|
-
|
|
40
|
+
popper: u(() => [
|
|
41
|
+
f("div", {
|
|
39
42
|
ref_key: "popup",
|
|
40
|
-
ref:
|
|
41
|
-
class: "menu-popup",
|
|
42
|
-
onClick: i[1] || (i[1] = (
|
|
43
|
+
ref: d,
|
|
44
|
+
class: B(["menu-popup", e(p)]),
|
|
45
|
+
onClick: i[1] || (i[1] = (v) => e(s)(!1))
|
|
43
46
|
}, [
|
|
44
|
-
|
|
45
|
-
],
|
|
47
|
+
m(o.$slots, "default", {}, void 0, !0)
|
|
48
|
+
], 2)
|
|
46
49
|
]),
|
|
47
|
-
default:
|
|
48
|
-
|
|
50
|
+
default: u(() => [
|
|
51
|
+
f("div", {
|
|
49
52
|
ref_key: "triggerRef",
|
|
50
53
|
ref: n,
|
|
51
|
-
onClick: i[0] || (i[0] = (
|
|
54
|
+
onClick: i[0] || (i[0] = (v) => e(s)())
|
|
52
55
|
}, [
|
|
53
|
-
|
|
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
|
-
|
|
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.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import "../../MultiBar.
|
|
2
|
-
import { useVModel as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
|
9
|
-
import { useTestIdAttrs as
|
|
10
|
-
import { MultiBarTestIdModifiers as
|
|
11
|
-
const
|
|
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
|
-
},
|
|
15
|
+
}, W = {
|
|
15
16
|
inheritAttrs: !1
|
|
16
|
-
},
|
|
17
|
-
...
|
|
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:
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
() =>
|
|
38
|
-
),
|
|
39
|
-
() =>
|
|
40
|
-
),
|
|
41
|
-
return (a,
|
|
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
|
-
|
|
46
|
-
default:
|
|
47
|
-
|
|
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
|
-
|
|
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, ...
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
},
|
|
64
|
-
o.selectedCount ? (
|
|
65
|
-
|
|
66
|
-
default:
|
|
67
|
-
|
|
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
|
-
])) :
|
|
72
|
-
(
|
|
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:
|
|
75
|
-
"action-button--last":
|
|
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": `${
|
|
81
|
+
"data-testid": `${t.testId}-${e(l).ACTION}-${i.id}`,
|
|
81
82
|
disabled: i.disabled,
|
|
82
|
-
onClick: (
|
|
83
|
+
onClick: (q) => p(i)
|
|
83
84
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
|
|
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
|
-
|
|
90
|
+
e(h).length ? (s(), u(R, {
|
|
90
91
|
key: 1,
|
|
91
|
-
"menu-items":
|
|
92
|
-
"test-id": `${
|
|
93
|
-
onSelected:
|
|
94
|
-
}, null, 8, ["menu-items", "test-id"])) :
|
|
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)) :
|
|
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
|
-
|
|
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.
|
|
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-
|
|
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.
|
|
2
|
-
import { Dropdown as
|
|
3
|
-
import { popoverCommon as
|
|
4
|
-
|
|
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:
|
|
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
|
-
|
|
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(),
|
|
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
|
|
46
|
+
"popper-class": [e.popperClass, "v4-popover__popper"]
|
|
44
47
|
}, {
|
|
45
48
|
popper: u(() => [
|
|
46
|
-
a(t) ? (p(),
|
|
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
|
-
|
|
54
|
-
],
|
|
56
|
+
m(o.$slots, "content", {}, void 0, !0)
|
|
57
|
+
], 10, H)) : O("", !0)
|
|
55
58
|
]),
|
|
56
59
|
default: u(() => [
|
|
57
|
-
|
|
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
|
-
|
|
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
|
-
|
|
75
|
+
S as default
|
|
73
76
|
};
|