@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.51
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/Chart.vue.d.ts +17 -4
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +3 -2
- package/components/chart/index.d.ts +74 -35
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +200 -189
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
- package/components/dropdown/v4/index.d.ts +443 -110
- package/components/dropdown/v4/index.js +6 -3
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +57 -56
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +1 -1
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +82 -76
- package/components/sortableList/index.d.ts +4 -4
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +83 -77
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +4 -3
- package/components/table/v4/index.d.ts +64 -26
- package/components/table-cells/common/Editable.common.js +24 -19
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/composables/useFormValidation.d.ts +1 -1
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1426 -320
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -6
- package/mocks/words.d.ts +1 -1
- package/package.json +3 -239
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +1 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../../../SnackbarV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css"; import { defineComponent as $, computed as A, openBlock as n, createBlock as d, Transition as O, withCtx as f, withDirectives as I, createElementVNode as a, mergeProps as l, unref as t, createVNode as z, createTextVNode as T, toDisplayString as h, createCommentVNode as u, renderSlot as B, vShow as N, createElementBlock as S, Fragment as V, renderList as x, withModifiers as U } from "vue";
|
|
2
|
+
import D from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import H from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import F from "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { snackbarCommon as
|
|
10
|
-
import { useTestIdAttrs as
|
|
8
|
+
import b from "../../typography/v4/Typography.vue.js";
|
|
9
|
+
import { snackbarCommon as G } from "../common/snackbar.common.js";
|
|
10
|
+
import { useTestIdAttrs as P } from "../../../utils/testIds.js";
|
|
11
11
|
import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
|
|
12
|
-
const
|
|
12
|
+
const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { class: "message" }, K = { class: "action-wrapper" }, Q = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "actions"
|
|
15
|
-
},
|
|
15
|
+
}, W = { class: "close-button-wrapper" }, lt = /* @__PURE__ */ $({
|
|
16
16
|
__name: "SnackbarV4",
|
|
17
17
|
props: {
|
|
18
18
|
customClass: null,
|
|
@@ -32,15 +32,15 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
32
32
|
testId: { default: "" }
|
|
33
33
|
},
|
|
34
34
|
emits: ["destroy"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
visible:
|
|
38
|
-
horizontalClass:
|
|
39
|
-
positionStyle:
|
|
35
|
+
setup(e) {
|
|
36
|
+
const m = e, {
|
|
37
|
+
visible: p,
|
|
38
|
+
horizontalClass: w,
|
|
39
|
+
positionStyle: L,
|
|
40
40
|
clearTimer: k,
|
|
41
41
|
startTimer: C,
|
|
42
|
-
close:
|
|
43
|
-
} =
|
|
42
|
+
close: y
|
|
43
|
+
} = G(m), E = {
|
|
44
44
|
info: {
|
|
45
45
|
iconName: "info",
|
|
46
46
|
class: "snackbar-icon-info"
|
|
@@ -53,83 +53,85 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
53
53
|
iconName: "check-circle",
|
|
54
54
|
class: "snackbar-icon-success"
|
|
55
55
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
56
|
+
}, v = A(() => E[m.type]), r = P(m.testId, i), M = ({ closeOnClick: c, onClick: o }) => () => {
|
|
57
|
+
c && y(), o && o();
|
|
58
|
+
};
|
|
59
|
+
return (c, o) => (n(), d(O, {
|
|
58
60
|
name: "snackbar",
|
|
59
|
-
onBeforeLeave:
|
|
60
|
-
onAfterLeave: o[3] || (o[3] = (s) =>
|
|
61
|
+
onBeforeLeave: e.onClose,
|
|
62
|
+
onAfterLeave: o[3] || (o[3] = (s) => c.$emit("destroy"))
|
|
61
63
|
}, {
|
|
62
64
|
default: f(() => [
|
|
63
|
-
|
|
64
|
-
id:
|
|
65
|
-
class: ["snackbar light-theme-v4", [
|
|
66
|
-
style:
|
|
65
|
+
I(a("div", l({
|
|
66
|
+
id: e.id,
|
|
67
|
+
class: ["snackbar light-theme-v4", [e.customClass, t(w)]],
|
|
68
|
+
style: t(L),
|
|
67
69
|
role: "alert"
|
|
68
|
-
},
|
|
70
|
+
}, t(r)[t(i).CONTAINER], {
|
|
69
71
|
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
70
|
-
(...s) =>
|
|
72
|
+
(...s) => t(k) && t(k)(...s)),
|
|
71
73
|
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
72
|
-
(...s) =>
|
|
74
|
+
(...s) => t(C) && t(C)(...s)),
|
|
73
75
|
onClick: o[2] || (o[2] = //@ts-ignore
|
|
74
|
-
(...s) =>
|
|
76
|
+
(...s) => e.onClick && e.onClick(...s))
|
|
75
77
|
}), [
|
|
76
|
-
a("div",
|
|
77
|
-
a("div",
|
|
78
|
-
|
|
78
|
+
a("div", j, [
|
|
79
|
+
a("div", q, [
|
|
80
|
+
e.title ? (n(), d(t(b), l({
|
|
79
81
|
key: 0,
|
|
80
82
|
variant: "h4",
|
|
81
83
|
class: "title"
|
|
82
|
-
},
|
|
84
|
+
}, t(r)[t(i).TITLE]), {
|
|
83
85
|
default: f(() => [
|
|
84
|
-
z(
|
|
85
|
-
name:
|
|
86
|
+
z(t(D), l({
|
|
87
|
+
name: t(v).iconName,
|
|
86
88
|
type: "fill",
|
|
87
89
|
size: "20px",
|
|
88
|
-
class: [
|
|
89
|
-
},
|
|
90
|
-
|
|
90
|
+
class: [t(v).class, "icon-container"]
|
|
91
|
+
}, t(r)[t(i).ICON]), null, 16, ["name", "class"]),
|
|
92
|
+
T(" " + h(e.title), 1)
|
|
91
93
|
]),
|
|
92
94
|
_: 1
|
|
93
|
-
}, 16)) :
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
}, 16)) : u("", !0),
|
|
96
|
+
I(a("div", J, [
|
|
97
|
+
B(c.$slots, "default", {}, () => [
|
|
98
|
+
e.dangerouslyUseHTMLString ? u("", !0) : (n(), d(t(b), l({
|
|
97
99
|
key: 0,
|
|
98
100
|
variant: "body2"
|
|
99
|
-
},
|
|
101
|
+
}, t(r)[t(i).MESSAGE]), {
|
|
100
102
|
default: f(() => [
|
|
101
|
-
|
|
103
|
+
T(h(e.message), 1)
|
|
102
104
|
]),
|
|
103
105
|
_: 1
|
|
104
106
|
}, 16))
|
|
105
107
|
], !0)
|
|
106
108
|
], 512), [
|
|
107
|
-
[
|
|
109
|
+
[N, e.message]
|
|
108
110
|
]),
|
|
109
|
-
a("div",
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
(n(!0),
|
|
113
|
-
key:
|
|
114
|
-
"data-testid":
|
|
111
|
+
a("div", K, [
|
|
112
|
+
B(c.$slots, "actions", {}, () => [
|
|
113
|
+
e.actionButtons ? (n(), S("div", Q, [
|
|
114
|
+
(n(!0), S(V, null, x(e.actionButtons, (s, g) => (n(), d(t(H), l({
|
|
115
|
+
key: g,
|
|
116
|
+
"data-testid": e.testId ? `${e.testId}-${t(i).ACTION_BUTTON}-${g}` : "",
|
|
115
117
|
size: "small"
|
|
116
|
-
}, { ...s }), null, 16, ["data-testid"]))), 128))
|
|
117
|
-
])) :
|
|
118
|
+
}, { ...s, onClick: M(s) }), null, 16, ["data-testid"]))), 128))
|
|
119
|
+
])) : u("", !0)
|
|
118
120
|
], !0)
|
|
119
121
|
])
|
|
120
122
|
]),
|
|
121
|
-
a("div",
|
|
122
|
-
|
|
123
|
+
a("div", W, [
|
|
124
|
+
e.showClose ? (n(), d(t(F), l({
|
|
123
125
|
key: 0,
|
|
124
126
|
"icon-name": "x",
|
|
125
127
|
size: "small"
|
|
126
|
-
},
|
|
127
|
-
onClick:
|
|
128
|
-
}), null, 16, ["onClick"])) :
|
|
128
|
+
}, t(r)[t(i).CLOSE], {
|
|
129
|
+
onClick: U(t(y), ["stop"])
|
|
130
|
+
}), null, 16, ["onClick"])) : u("", !0)
|
|
129
131
|
])
|
|
130
132
|
])
|
|
131
|
-
], 16,
|
|
132
|
-
[
|
|
133
|
+
], 16, R), [
|
|
134
|
+
[N, t(p)]
|
|
133
135
|
])
|
|
134
136
|
]),
|
|
135
137
|
_: 3
|
|
@@ -137,5 +139,5 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
137
139
|
}
|
|
138
140
|
});
|
|
139
141
|
export {
|
|
140
|
-
|
|
142
|
+
lt as default
|
|
141
143
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SortableItem.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../SortableItem.
|
|
4
|
-
const
|
|
3
|
+
// import "../../SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7cb676f1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../SortableItem.
|
|
1
|
+
import "../../SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css"; import { defineComponent as P, useSlots as E, computed as x, watch as $, ref as I, openBlock as l, createElementBlock as i, normalizeClass as f, unref as e, withModifiers as u, createElementVNode as a, createVNode as h, createBlock as r, withCtx as b, createTextVNode as S, toDisplayString as w, createCommentVNode as d, renderSlot as R, mergeProps as F, normalizeProps as D, Fragment as j, renderList as q } from "vue";
|
|
2
2
|
import V from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import m from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import L from "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { useVirtualList as
|
|
7
|
-
import { matchString as
|
|
8
|
-
import { useHoverEffect as
|
|
9
|
-
const
|
|
5
|
+
import A from "./SortableItemLabel.vue.js";
|
|
6
|
+
import { useVirtualList as G } from "@vueuse/core";
|
|
7
|
+
import { matchString as J } from "../../utils/search.js";
|
|
8
|
+
import { useHoverEffect as K } from "./composables/useHoverEffect.js";
|
|
9
|
+
const U = { class: "draggable-handle" }, W = { class: "item__prefix" }, X = ["onClick"], Y = { class: "item__text" }, Z = ["onClick"], ae = /* @__PURE__ */ P({
|
|
10
10
|
__name: "SortableItem",
|
|
11
11
|
props: {
|
|
12
12
|
item: null,
|
|
@@ -20,121 +20,122 @@ const J = { class: "draggable-handle" }, K = { class: "item__prefix" }, U = ["on
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["toggle", "select", "selectChild"],
|
|
22
22
|
setup(t, { emit: y }) {
|
|
23
|
-
const n = t, Q = () => {
|
|
23
|
+
const n = t, Q = E(), B = () => {
|
|
24
24
|
y("toggle", !n.isOpen);
|
|
25
25
|
}, g = x(() => (n.item.children || []).filter(
|
|
26
|
-
(
|
|
27
|
-
)),
|
|
28
|
-
list:
|
|
29
|
-
containerProps:
|
|
30
|
-
wrapperProps:
|
|
26
|
+
(o) => n.searchHandler ? n.searchHandler(o, n.searchQuery) : J(o.displayText, n.searchQuery)
|
|
27
|
+
)), k = x(() => g.value.length > 0), H = (c) => c.id === n.selectedChildId, {
|
|
28
|
+
list: M,
|
|
29
|
+
containerProps: T,
|
|
30
|
+
wrapperProps: z,
|
|
31
31
|
scrollTo: N
|
|
32
|
-
} =
|
|
32
|
+
} = G(g, {
|
|
33
33
|
itemHeight: 34
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
$(
|
|
36
36
|
() => n.searchQuery,
|
|
37
37
|
() => N(0)
|
|
38
38
|
);
|
|
39
|
-
const
|
|
40
|
-
|
|
39
|
+
const p = I(null), { handleMouseout: v, handleMouseover: C } = K(
|
|
40
|
+
p,
|
|
41
41
|
"sortable-item--hovered"
|
|
42
42
|
);
|
|
43
|
-
return (
|
|
43
|
+
return (c, o) => (l(), i("div", {
|
|
44
44
|
ref_key: "itemRef",
|
|
45
|
-
ref:
|
|
45
|
+
ref: p,
|
|
46
46
|
class: f(["sortable-item", { "sortable-item--selected": t.isSelected }]),
|
|
47
|
-
onMouseover:
|
|
48
|
-
(...
|
|
49
|
-
onMouseout:
|
|
50
|
-
(...
|
|
51
|
-
onClick:
|
|
47
|
+
onMouseover: o[1] || (o[1] = //@ts-ignore
|
|
48
|
+
(...s) => e(C) && e(C)(...s)),
|
|
49
|
+
onMouseout: o[2] || (o[2] = //@ts-ignore
|
|
50
|
+
(...s) => e(v) && e(v)(...s)),
|
|
51
|
+
onClick: o[3] || (o[3] = u((s) => y("select"), ["stop"]))
|
|
52
52
|
}, [
|
|
53
|
-
|
|
53
|
+
a("div", {
|
|
54
54
|
class: f(["item", { "drag-allowed": !t.item.isLocked && !t.searchQuery }])
|
|
55
55
|
}, [
|
|
56
|
-
|
|
56
|
+
a("div", U, [
|
|
57
57
|
h(e(m), {
|
|
58
58
|
name: "dots-six-vertical",
|
|
59
59
|
width: "20px",
|
|
60
60
|
type: "bold"
|
|
61
61
|
})
|
|
62
62
|
]),
|
|
63
|
-
|
|
64
|
-
t.item.isLocked ? (
|
|
63
|
+
a("div", W, [
|
|
64
|
+
t.item.isLocked ? (l(), r(e(m), {
|
|
65
65
|
key: 1,
|
|
66
66
|
class: "locked-icon",
|
|
67
67
|
name: "lock",
|
|
68
68
|
width: "16px"
|
|
69
|
-
})) : (
|
|
69
|
+
})) : (l(), r(e(V), {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "order-num",
|
|
72
72
|
variant: "subtitle2"
|
|
73
73
|
}, {
|
|
74
74
|
default: b(() => [
|
|
75
|
-
w(
|
|
75
|
+
S(w(t.index + 1) + ". ", 1)
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}))
|
|
79
79
|
]),
|
|
80
|
-
e(
|
|
80
|
+
e(k) && !t.searchQuery ? (l(), i("div", {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "expand-icon",
|
|
83
|
-
onClick:
|
|
83
|
+
onClick: u(B, ["stop"])
|
|
84
84
|
}, [
|
|
85
|
-
t.isOpen ? (
|
|
85
|
+
t.isOpen ? (l(), r(e(m), {
|
|
86
86
|
key: 0,
|
|
87
87
|
name: "caret-down",
|
|
88
|
-
|
|
89
|
-
})) : (
|
|
88
|
+
size: "16px"
|
|
89
|
+
})) : (l(), r(e(m), {
|
|
90
90
|
key: 1,
|
|
91
91
|
name: "caret-right",
|
|
92
|
-
|
|
92
|
+
size: "16px"
|
|
93
93
|
}))
|
|
94
|
-
], 8,
|
|
95
|
-
|
|
96
|
-
t.item.countryFlag ? (
|
|
94
|
+
], 8, X)) : d("", !0),
|
|
95
|
+
a("div", Y, [
|
|
96
|
+
t.item.countryFlag ? (l(), r(e(L), {
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "country-flag",
|
|
99
99
|
"country-code": t.item.countryFlag
|
|
100
|
-
}, null, 8, ["country-code"])) :
|
|
101
|
-
h(
|
|
100
|
+
}, null, 8, ["country-code"])) : d("", !0),
|
|
101
|
+
h(A, {
|
|
102
102
|
"display-value": t.displayValue,
|
|
103
103
|
item: t.item
|
|
104
104
|
}, null, 8, ["display-value", "item"])
|
|
105
105
|
]),
|
|
106
|
-
|
|
106
|
+
e(Q).menu ? (l(), i("div", {
|
|
107
|
+
key: 1,
|
|
107
108
|
class: "item__menu",
|
|
108
|
-
onClick:
|
|
109
|
+
onClick: o[0] || (o[0] = u(() => {
|
|
109
110
|
}, ["stop"]))
|
|
110
111
|
}, [
|
|
111
|
-
|
|
112
|
-
])
|
|
112
|
+
R(c.$slots, "menu", {}, void 0, !0)
|
|
113
|
+
])) : d("", !0)
|
|
113
114
|
], 2),
|
|
114
|
-
|
|
115
|
-
e(
|
|
116
|
-
(
|
|
115
|
+
a("div", F(e(T), { class: "child-list" }), [
|
|
116
|
+
e(k) && t.isOpen ? (l(), i("ul", D(F({ key: 0 }, e(z))), [
|
|
117
|
+
(l(!0), i(j, null, q(e(M), ({ data: s, index: O }) => (l(), i("li", {
|
|
117
118
|
key: O,
|
|
118
|
-
class: f({ selected:
|
|
119
|
-
onClick:
|
|
119
|
+
class: f({ selected: H(s) }),
|
|
120
|
+
onClick: u((_) => y("selectChild", s), ["stop"])
|
|
120
121
|
}, [
|
|
121
|
-
|
|
122
|
+
s.countryFlag ? (l(), r(e(L), {
|
|
122
123
|
key: 0,
|
|
123
124
|
class: "country-flag",
|
|
124
|
-
"country-code":
|
|
125
|
-
}, null, 8, ["country-code"])) :
|
|
125
|
+
"country-code": s.countryFlag
|
|
126
|
+
}, null, 8, ["country-code"])) : d("", !0),
|
|
126
127
|
h(e(V), { variant: "body2" }, {
|
|
127
128
|
default: b(() => [
|
|
128
|
-
w(
|
|
129
|
+
S(w(t.displayValue(s)), 1)
|
|
129
130
|
]),
|
|
130
131
|
_: 2
|
|
131
132
|
}, 1024)
|
|
132
|
-
], 10,
|
|
133
|
-
], 16)) :
|
|
133
|
+
], 10, Z))), 128))
|
|
134
|
+
], 16)) : d("", !0)
|
|
134
135
|
], 16)
|
|
135
136
|
], 34));
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
139
|
export {
|
|
139
|
-
|
|
140
|
+
ae as default
|
|
140
141
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./SortableItemLabel.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../SortableItemLabel.
|
|
4
|
-
const
|
|
3
|
+
// import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f2ced2f4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import "../../SortableItemLabel.
|
|
1
|
+
import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css"; import { defineComponent as m, openBlock as a, createBlock as p, unref as l, withCtx as e, createElementVNode as u, createElementBlock as d, Fragment as f, renderList as h, createVNode as i, createTextVNode as o, toDisplayString as r } from "vue";
|
|
2
2
|
import n from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _ from "../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
const x = { class: "tooltip-content" }, g = /* @__PURE__ */ m({
|
|
5
5
|
__name: "SortableItemLabel",
|
|
6
6
|
props: {
|
|
7
7
|
item: null,
|
|
8
8
|
displayValue: null
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
return (
|
|
10
|
+
setup(t) {
|
|
11
|
+
return (y, b) => (a(), p(l(_), {
|
|
12
12
|
class: "item-label",
|
|
13
13
|
placement: "right",
|
|
14
|
-
disabled: !
|
|
14
|
+
disabled: !t.item.helpText
|
|
15
15
|
}, {
|
|
16
|
-
tooltip:
|
|
17
|
-
|
|
18
|
-
(a(!0),
|
|
19
|
-
key:
|
|
16
|
+
tooltip: e(() => [
|
|
17
|
+
u("div", x, [
|
|
18
|
+
(a(!0), d(f, null, h(t.item.helpText, (c, s) => (a(), d("div", {
|
|
19
|
+
key: s,
|
|
20
20
|
class: "help"
|
|
21
21
|
}, [
|
|
22
22
|
i(l(n), {
|
|
23
23
|
class: "help__title",
|
|
24
24
|
variant: "h5"
|
|
25
25
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
o(r(
|
|
26
|
+
default: e(() => [
|
|
27
|
+
o(r(c.title), 1)
|
|
28
28
|
]),
|
|
29
29
|
_: 2
|
|
30
30
|
}, 1024),
|
|
@@ -32,29 +32,26 @@ const _ = { class: "tooltip-content" }, k = /* @__PURE__ */ m({
|
|
|
32
32
|
class: "help__text",
|
|
33
33
|
variant: "body2"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
o(r(
|
|
35
|
+
default: e(() => [
|
|
36
|
+
o(r(c.text), 1)
|
|
37
37
|
]),
|
|
38
38
|
_: 2
|
|
39
39
|
}, 1024)
|
|
40
40
|
]))), 128))
|
|
41
41
|
])
|
|
42
42
|
]),
|
|
43
|
-
default:
|
|
44
|
-
i(l(n), {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, {
|
|
48
|
-
default: t(() => [
|
|
49
|
-
o(r(e.displayValue(e.item)), 1)
|
|
43
|
+
default: e(() => [
|
|
44
|
+
i(l(n), { variant: "body2" }, {
|
|
45
|
+
default: e(() => [
|
|
46
|
+
o(r(t.displayValue(t.item)), 1)
|
|
50
47
|
]),
|
|
51
48
|
_: 1
|
|
52
|
-
}
|
|
49
|
+
})
|
|
53
50
|
]),
|
|
54
51
|
_: 1
|
|
55
52
|
}, 8, ["disabled"]));
|
|
56
53
|
}
|
|
57
54
|
});
|
|
58
55
|
export {
|
|
59
|
-
|
|
56
|
+
g as default
|
|
60
57
|
};
|
|
@@ -67,6 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
67
|
emptyStateTitle: string;
|
|
68
68
|
testId: string;
|
|
69
69
|
}>>> & {
|
|
70
|
+
onClearSearch?: () => any;
|
|
70
71
|
onSortableItemDragged?: (event: {
|
|
71
72
|
id: string;
|
|
72
73
|
newIndex: number;
|
|
@@ -76,7 +77,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
76
77
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
77
78
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
78
79
|
"onUpdate:search"?: (query: string) => any;
|
|
79
|
-
onClearSearch?: () => any;
|
|
80
80
|
}, {
|
|
81
81
|
search: string;
|
|
82
82
|
testId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SortableList.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../SortableList.
|
|
4
|
-
const c = /* @__PURE__ */
|
|
2
|
+
/* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-156c01ca"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|