@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.50
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_27802170_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/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_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/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_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_2ca7b24c_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_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_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_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- 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 +16 -3
- 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 +55 -16
- 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/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/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.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 +185 -165
- 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.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- 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/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- 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/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1626 -366
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -6
- package/mocks/words.d.ts +1 -1
- package/package.json +2 -1
- 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 +2 -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/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_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/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_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,21 +1,21 @@
|
|
|
1
|
-
import "../../SortableList.
|
|
2
|
-
import { VueDraggable as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useVModel as
|
|
8
|
-
import { matchString as
|
|
9
|
-
import { useTestIdAttrs as
|
|
10
|
-
import { SortableListTestIdModifiers as
|
|
11
|
-
import { DRAG_CURSOR_CSS_CLASS as
|
|
12
|
-
const
|
|
1
|
+
import "../../SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css"; import { defineComponent as P, useCssVars as z, useSlots as G, computed as S, ref as U, openBlock as s, createElementBlock as r, mergeProps as V, unref as l, normalizeClass as K, renderSlot as g, createCommentVNode as h, createBlock as p, isRef as A, withCtx as I, Fragment as x, renderList as B, createSlots as E, createElementVNode as Q, createVNode as H, createTextVNode as j, toDisplayString as J } from "vue";
|
|
2
|
+
import { VueDraggable as W } from "vue-draggable-plus";
|
|
3
|
+
import N from "./SortableItem.vue.js";
|
|
4
|
+
import X from "../search/v4/SearchV4.vue.js";
|
|
5
|
+
import Y from "../typography/v4/Typography.vue.js";
|
|
6
|
+
import Z from "../skeleton/v4/SkeletonV4.vue.js";
|
|
7
|
+
import { useVModel as _ } from "@vueuse/core";
|
|
8
|
+
import { matchString as q } from "../../utils/search.js";
|
|
9
|
+
import { useTestIdAttrs as ee } from "../../utils/testIds.js";
|
|
10
|
+
import { SortableListTestIdModifiers as v } from "../../testids/index.js";
|
|
11
|
+
import { DRAG_CURSOR_CSS_CLASS as O } from "./consts.js";
|
|
12
|
+
const te = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "sortable-list-container"
|
|
15
|
-
},
|
|
15
|
+
}, le = { class: "loader-bars" }, de = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "empty-state-title"
|
|
18
|
-
},
|
|
18
|
+
}, ye = /* @__PURE__ */ P({
|
|
19
19
|
__name: "SortableList",
|
|
20
20
|
props: {
|
|
21
21
|
items: { default: () => [] },
|
|
@@ -30,131 +30,150 @@ const X = {
|
|
|
30
30
|
isLoading: { type: Boolean, default: !1 },
|
|
31
31
|
loadingRowCount: { default: 3 },
|
|
32
32
|
emptyStateTitle: { default: "No results" },
|
|
33
|
+
childListMaxHeight: { default: "530px" },
|
|
34
|
+
isSticky: { type: Boolean, default: !0 },
|
|
35
|
+
zIndexBase: { default: 100 },
|
|
33
36
|
testId: { default: "" }
|
|
34
37
|
},
|
|
35
38
|
emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
|
|
36
|
-
setup(d, { emit:
|
|
37
|
-
const
|
|
39
|
+
setup(d, { emit: n }) {
|
|
40
|
+
const i = d;
|
|
41
|
+
z((t) => ({
|
|
42
|
+
"2b5787e0": d.zIndexBase
|
|
43
|
+
}));
|
|
44
|
+
const y = G(), u = _(i, "search", n), k = S(() => !!u.value?.trim()), C = S(() => k.value ? i.items.filter((t) => {
|
|
38
45
|
const a = t.children || [], e = u.value;
|
|
39
|
-
return
|
|
40
|
-
a.some((
|
|
41
|
-
}) :
|
|
46
|
+
return i.searchHandler ? i.searchHandler(t, e) : q(t.displayText, e) || // match parent item
|
|
47
|
+
a.some((o) => q(o.displayText, e));
|
|
48
|
+
}) : i.items), f = S({
|
|
42
49
|
get() {
|
|
43
50
|
return C.value.filter((t) => !t.isLocked);
|
|
44
51
|
},
|
|
45
52
|
set(t) {
|
|
46
|
-
|
|
53
|
+
n("update:items", [...t, ...L.value]);
|
|
47
54
|
}
|
|
48
|
-
}),
|
|
55
|
+
}), L = S(
|
|
49
56
|
() => C.value.filter((t) => t.isLocked)
|
|
50
|
-
),
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
const { target: a, item: e, newIndex:
|
|
54
|
-
|
|
57
|
+
), b = U(!1), F = (t) => {
|
|
58
|
+
b.value = !0, setTimeout(() => t.target.classList.add(O), 50);
|
|
59
|
+
}, M = (t) => {
|
|
60
|
+
const { target: a, item: e, newIndex: o } = t;
|
|
61
|
+
b.value = !1, a.classList.remove(O);
|
|
55
62
|
const c = e.attributes["data-id"]?.value;
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
a ?
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
return (t, a) => (s(),
|
|
65
|
-
d.showSearch ? (s(),
|
|
63
|
+
n("sortableItemDragged", { id: c, newIndex: o });
|
|
64
|
+
}, D = (t) => (k.value || t.id === i.openId) && !b.value, R = (t, a) => {
|
|
65
|
+
a ? n("update:openId", t.id) : n("update:openId", null);
|
|
66
|
+
}, m = (t) => t.id === i.selectedId, $ = (t) => {
|
|
67
|
+
n("update:selectedId", t.id), n("update:selectedChildId", null);
|
|
68
|
+
}, w = (t, a) => {
|
|
69
|
+
n("update:selectedChildId", t.id), n("update:selectedId", a.id), n("update:openId", a.id);
|
|
70
|
+
}, T = ee(i.testId, v);
|
|
71
|
+
return (t, a) => (s(), r("div", V({ class: "sortable-list-and-header-container" }, l(T)[l(v).CONTAINER]), [
|
|
72
|
+
l(y).header || d.showSearch ? (s(), r("div", {
|
|
66
73
|
key: 0,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
class: K(["header-container", { sticky: d.isSticky }])
|
|
75
|
+
}, [
|
|
76
|
+
l(y).header ? g(t.$slots, "header", { key: 0 }, void 0, !0) : h("", !0),
|
|
77
|
+
d.showSearch ? (s(), p(l(X), {
|
|
78
|
+
key: 1,
|
|
79
|
+
modelValue: l(u),
|
|
80
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => A(u) ? u.value = e : null),
|
|
81
|
+
placeholder: d.searchPlaceholder,
|
|
82
|
+
"test-id": d.testId,
|
|
83
|
+
onOnClear: a[1] || (a[1] = (e) => n("clearSearch"))
|
|
84
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])) : h("", !0)
|
|
85
|
+
], 2)) : h("", !0),
|
|
86
|
+
d.isLoading ? g(t.$slots, "loader", { key: 2 }, () => [
|
|
87
|
+
Q("div", le, [
|
|
88
|
+
(s(!0), r(x, null, B(d.loadingRowCount, (e) => (s(), r("div", { key: e }, [
|
|
89
|
+
H(l(Z), {
|
|
78
90
|
round: "",
|
|
79
91
|
class: "loader-bar"
|
|
80
92
|
})
|
|
81
93
|
]))), 128))
|
|
82
94
|
])
|
|
83
|
-
], !0) : (s(),
|
|
84
|
-
l(
|
|
95
|
+
], !0) : (s(), r("div", te, [
|
|
96
|
+
l(f).length ? (s(), p(l(W), V({
|
|
85
97
|
key: 0,
|
|
86
|
-
modelValue: l(
|
|
87
|
-
"onUpdate:modelValue": a[2] || (a[2] = (e) =>
|
|
98
|
+
modelValue: l(f),
|
|
99
|
+
"onUpdate:modelValue": a[2] || (a[2] = (e) => A(f) ? f.value = e : null),
|
|
88
100
|
class: "sortable-list",
|
|
89
101
|
filter: ".expand-icon",
|
|
90
102
|
animation: 150,
|
|
91
103
|
handle: ".draggable-handle",
|
|
92
|
-
disabled: l(
|
|
93
|
-
}, l(
|
|
94
|
-
onStart:
|
|
95
|
-
onEnd:
|
|
104
|
+
disabled: l(k)
|
|
105
|
+
}, l(T)[l(v).DRAGGABLE_LIST], {
|
|
106
|
+
onStart: F,
|
|
107
|
+
onEnd: M
|
|
96
108
|
}), {
|
|
97
|
-
default:
|
|
98
|
-
(s(!0),
|
|
109
|
+
default: I(() => [
|
|
110
|
+
(s(!0), r(x, null, B(l(f), (e, o) => (s(), p(N, {
|
|
99
111
|
key: e.id,
|
|
100
112
|
"data-id": e.id,
|
|
101
113
|
item: e,
|
|
102
|
-
index:
|
|
103
|
-
"is-open":
|
|
104
|
-
"is-selected":
|
|
105
|
-
"selected-child-id":
|
|
114
|
+
index: o,
|
|
115
|
+
"is-open": D(e),
|
|
116
|
+
"is-selected": m(e),
|
|
117
|
+
"selected-child-id": m(e) ? d.selectedChildId : null,
|
|
106
118
|
"display-value": d.displayValue,
|
|
107
119
|
"search-query": l(u),
|
|
108
120
|
"search-handler": d.searchHandler,
|
|
109
|
-
onToggle: (c) =>
|
|
110
|
-
onSelect: (c) =>
|
|
111
|
-
onSelectChild: (c) =>
|
|
112
|
-
}, {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
onToggle: (c) => R(e, c),
|
|
122
|
+
onSelect: (c) => $(e),
|
|
123
|
+
onSelectChild: (c) => w(c, e)
|
|
124
|
+
}, E({ _: 2 }, [
|
|
125
|
+
l(y).menu ? {
|
|
126
|
+
name: "menu",
|
|
127
|
+
fn: I(() => [
|
|
128
|
+
g(t.$slots, "menu", { item: e }, void 0, !0)
|
|
129
|
+
]),
|
|
130
|
+
key: "0"
|
|
131
|
+
} : void 0
|
|
132
|
+
]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
118
133
|
]),
|
|
119
134
|
_: 3
|
|
120
|
-
}, 16, ["modelValue", "disabled"])) :
|
|
121
|
-
l(
|
|
135
|
+
}, 16, ["modelValue", "disabled"])) : h("", !0),
|
|
136
|
+
l(L).length ? (s(), r("div", V({
|
|
122
137
|
key: 1,
|
|
123
138
|
class: "locked-list"
|
|
124
|
-
}, l(
|
|
125
|
-
(s(!0),
|
|
139
|
+
}, l(T)[l(v).LOCKED_LIST]), [
|
|
140
|
+
(s(!0), r(x, null, B(l(L), (e) => (s(), p(N, {
|
|
126
141
|
key: e.id,
|
|
127
142
|
item: e,
|
|
128
|
-
"is-open":
|
|
129
|
-
"is-selected":
|
|
130
|
-
"selected-child-id":
|
|
143
|
+
"is-open": D(e),
|
|
144
|
+
"is-selected": m(e),
|
|
145
|
+
"selected-child-id": m(e) ? d.selectedChildId : null,
|
|
131
146
|
"display-value": d.displayValue,
|
|
132
147
|
"search-query": l(u),
|
|
133
148
|
"on-search": d.searchHandler,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
149
|
+
"child-list-max-height": d.childListMaxHeight,
|
|
150
|
+
onToggle: (o) => R(e, o),
|
|
151
|
+
onSelect: (o) => $(e),
|
|
152
|
+
onSelectChild: (o) => w(o, e)
|
|
153
|
+
}, E({ _: 2 }, [
|
|
154
|
+
l(y).menu ? {
|
|
155
|
+
name: "menu",
|
|
156
|
+
fn: I(() => [
|
|
157
|
+
g(t.$slots, "menu", { item: e }, void 0, !0)
|
|
158
|
+
]),
|
|
159
|
+
key: "0"
|
|
160
|
+
} : void 0
|
|
161
|
+
]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
162
|
+
], 16)) : h("", !0)
|
|
144
163
|
])),
|
|
145
|
-
!l(C).length && !d.isLoading ? (s(),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
default:
|
|
149
|
-
|
|
164
|
+
!l(C).length && !d.isLoading ? (s(), r("div", de, [
|
|
165
|
+
g(t.$slots, "empty-state", {}, () => [
|
|
166
|
+
H(l(Y), { variant: "body2" }, {
|
|
167
|
+
default: I(() => [
|
|
168
|
+
j(J(d.emptyStateTitle), 1)
|
|
150
169
|
]),
|
|
151
170
|
_: 1
|
|
152
171
|
})
|
|
153
172
|
], !0)
|
|
154
|
-
])) :
|
|
173
|
+
])) : h("", !0)
|
|
155
174
|
], 16));
|
|
156
175
|
}
|
|
157
176
|
});
|
|
158
177
|
export {
|
|
159
|
-
|
|
178
|
+
ye as default
|
|
160
179
|
};
|
|
@@ -11,12 +11,15 @@ declare const SortableListTypes: () => ({
|
|
|
11
11
|
searchPlaceholder: string;
|
|
12
12
|
items: import("./SortableList.types").SortableListItem[];
|
|
13
13
|
selectedChildId: string | number;
|
|
14
|
+
childListMaxHeight: string;
|
|
14
15
|
searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
|
|
15
16
|
openId: string | number;
|
|
16
17
|
selectedId: string | number;
|
|
17
18
|
showSearch: boolean;
|
|
18
19
|
loadingRowCount: number;
|
|
19
20
|
emptyStateTitle: string;
|
|
21
|
+
isSticky: boolean;
|
|
22
|
+
zIndexBase: number;
|
|
20
23
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
21
24
|
search: {
|
|
22
25
|
type: import("vue").PropType<string>;
|
|
@@ -48,6 +51,10 @@ declare const SortableListTypes: () => ({
|
|
|
48
51
|
type: import("vue").PropType<string | number>;
|
|
49
52
|
default: any;
|
|
50
53
|
};
|
|
54
|
+
childListMaxHeight: {
|
|
55
|
+
type: import("vue").PropType<string>;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
51
58
|
searchHandler: {
|
|
52
59
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
53
60
|
default: any;
|
|
@@ -72,7 +79,16 @@ declare const SortableListTypes: () => ({
|
|
|
72
79
|
type: import("vue").PropType<string>;
|
|
73
80
|
default: string;
|
|
74
81
|
};
|
|
82
|
+
isSticky: {
|
|
83
|
+
type: import("vue").PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
zIndexBase: {
|
|
87
|
+
type: import("vue").PropType<number>;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
75
90
|
}>> & {
|
|
91
|
+
onClearSearch?: () => any;
|
|
76
92
|
onSortableItemDragged?: (event: {
|
|
77
93
|
id: string;
|
|
78
94
|
newIndex: number;
|
|
@@ -82,8 +98,7 @@ declare const SortableListTypes: () => ({
|
|
|
82
98
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
83
99
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
84
100
|
"onUpdate:search"?: (query: string) => any;
|
|
85
|
-
|
|
86
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle">;
|
|
101
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "childListMaxHeight" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase">;
|
|
87
102
|
$attrs: {
|
|
88
103
|
[x: string]: unknown;
|
|
89
104
|
};
|
|
@@ -131,6 +146,10 @@ declare const SortableListTypes: () => ({
|
|
|
131
146
|
type: import("vue").PropType<string | number>;
|
|
132
147
|
default: any;
|
|
133
148
|
};
|
|
149
|
+
childListMaxHeight: {
|
|
150
|
+
type: import("vue").PropType<string>;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
134
153
|
searchHandler: {
|
|
135
154
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
136
155
|
default: any;
|
|
@@ -155,7 +174,16 @@ declare const SortableListTypes: () => ({
|
|
|
155
174
|
type: import("vue").PropType<string>;
|
|
156
175
|
default: string;
|
|
157
176
|
};
|
|
177
|
+
isSticky: {
|
|
178
|
+
type: import("vue").PropType<boolean>;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
zIndexBase: {
|
|
182
|
+
type: import("vue").PropType<number>;
|
|
183
|
+
default: number;
|
|
184
|
+
};
|
|
158
185
|
}>> & {
|
|
186
|
+
onClearSearch?: () => any;
|
|
159
187
|
onSortableItemDragged?: (event: {
|
|
160
188
|
id: string;
|
|
161
189
|
newIndex: number;
|
|
@@ -165,7 +193,6 @@ declare const SortableListTypes: () => ({
|
|
|
165
193
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
166
194
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
167
195
|
"onUpdate:search"?: (query: string) => any;
|
|
168
|
-
onClearSearch?: () => any;
|
|
169
196
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
170
197
|
sortableItemDragged: (event: {
|
|
171
198
|
id: string;
|
|
@@ -185,12 +212,15 @@ declare const SortableListTypes: () => ({
|
|
|
185
212
|
searchPlaceholder: string;
|
|
186
213
|
items: import("./SortableList.types").SortableListItem[];
|
|
187
214
|
selectedChildId: string | number;
|
|
215
|
+
childListMaxHeight: string;
|
|
188
216
|
searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
|
|
189
217
|
openId: string | number;
|
|
190
218
|
selectedId: string | number;
|
|
191
219
|
showSearch: boolean;
|
|
192
220
|
loadingRowCount: number;
|
|
193
221
|
emptyStateTitle: string;
|
|
222
|
+
isSticky: boolean;
|
|
223
|
+
zIndexBase: number;
|
|
194
224
|
}, {}, string> & {
|
|
195
225
|
beforeCreate?: (() => void) | (() => void)[];
|
|
196
226
|
created?: (() => void) | (() => void)[];
|
|
@@ -242,6 +272,10 @@ declare const SortableListTypes: () => ({
|
|
|
242
272
|
type: import("vue").PropType<string | number>;
|
|
243
273
|
default: any;
|
|
244
274
|
};
|
|
275
|
+
childListMaxHeight: {
|
|
276
|
+
type: import("vue").PropType<string>;
|
|
277
|
+
default: string;
|
|
278
|
+
};
|
|
245
279
|
searchHandler: {
|
|
246
280
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
247
281
|
default: any;
|
|
@@ -266,7 +300,16 @@ declare const SortableListTypes: () => ({
|
|
|
266
300
|
type: import("vue").PropType<string>;
|
|
267
301
|
default: string;
|
|
268
302
|
};
|
|
303
|
+
isSticky: {
|
|
304
|
+
type: import("vue").PropType<boolean>;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
307
|
+
zIndexBase: {
|
|
308
|
+
type: import("vue").PropType<number>;
|
|
309
|
+
default: number;
|
|
310
|
+
};
|
|
269
311
|
}>> & {
|
|
312
|
+
onClearSearch?: () => any;
|
|
270
313
|
onSortableItemDragged?: (event: {
|
|
271
314
|
id: string;
|
|
272
315
|
newIndex: number;
|
|
@@ -276,7 +319,6 @@ declare const SortableListTypes: () => ({
|
|
|
276
319
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
277
320
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
278
321
|
"onUpdate:search"?: (query: string) => any;
|
|
279
|
-
onClearSearch?: () => any;
|
|
280
322
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
281
323
|
__isFragment?: never;
|
|
282
324
|
__isTeleport?: never;
|
|
@@ -312,6 +354,10 @@ declare const SortableListTypes: () => ({
|
|
|
312
354
|
type: import("vue").PropType<string | number>;
|
|
313
355
|
default: any;
|
|
314
356
|
};
|
|
357
|
+
childListMaxHeight: {
|
|
358
|
+
type: import("vue").PropType<string>;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
315
361
|
searchHandler: {
|
|
316
362
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
317
363
|
default: any;
|
|
@@ -336,7 +382,16 @@ declare const SortableListTypes: () => ({
|
|
|
336
382
|
type: import("vue").PropType<string>;
|
|
337
383
|
default: string;
|
|
338
384
|
};
|
|
385
|
+
isSticky: {
|
|
386
|
+
type: import("vue").PropType<boolean>;
|
|
387
|
+
default: boolean;
|
|
388
|
+
};
|
|
389
|
+
zIndexBase: {
|
|
390
|
+
type: import("vue").PropType<number>;
|
|
391
|
+
default: number;
|
|
392
|
+
};
|
|
339
393
|
}>> & {
|
|
394
|
+
onClearSearch?: () => any;
|
|
340
395
|
onSortableItemDragged?: (event: {
|
|
341
396
|
id: string;
|
|
342
397
|
newIndex: number;
|
|
@@ -346,7 +401,6 @@ declare const SortableListTypes: () => ({
|
|
|
346
401
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
347
402
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
348
403
|
"onUpdate:search"?: (query: string) => any;
|
|
349
|
-
onClearSearch?: () => any;
|
|
350
404
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
351
405
|
sortableItemDragged: (event: {
|
|
352
406
|
id: string;
|
|
@@ -366,14 +420,18 @@ declare const SortableListTypes: () => ({
|
|
|
366
420
|
searchPlaceholder: string;
|
|
367
421
|
items: import("./SortableList.types").SortableListItem[];
|
|
368
422
|
selectedChildId: string | number;
|
|
423
|
+
childListMaxHeight: string;
|
|
369
424
|
searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
|
|
370
425
|
openId: string | number;
|
|
371
426
|
selectedId: string | number;
|
|
372
427
|
showSearch: boolean;
|
|
373
428
|
loadingRowCount: number;
|
|
374
429
|
emptyStateTitle: string;
|
|
430
|
+
isSticky: boolean;
|
|
431
|
+
zIndexBase: number;
|
|
375
432
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
376
433
|
$slots: {
|
|
434
|
+
header?(_: {}): any;
|
|
377
435
|
menu?(_: {
|
|
378
436
|
item: import("./SortableList.types").SortableListItem;
|
|
379
437
|
}): any;
|
|
@@ -19,7 +19,7 @@ export declare const tableCommon: (props: any, emit: any) => {
|
|
|
19
19
|
floatingActionRef: import("vue").Ref<HTMLDivElement>;
|
|
20
20
|
scrollToTop: () => void;
|
|
21
21
|
toggleSortOrder: (column: Column) => void;
|
|
22
|
-
columnsStickyPositions: import("vue").ComputedRef<Record<string,
|
|
22
|
+
columnsStickyPositions: import("vue").ComputedRef<Record<string, CSSProperties>>;
|
|
23
23
|
hasSearchSlot: import("vue").ComputedRef<boolean>;
|
|
24
24
|
showBackToTopButton: import("vue").ComputedRef<boolean>;
|
|
25
25
|
containerStyle: import("vue").ComputedRef<CSSProperties>;
|