@ironsource/shared-ui 2.1.7-test.1 → 2.1.7-test.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +1 -0
  5. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  8. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
  9. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
  11. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  12. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
  13. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
  14. package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
  15. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
  16. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  17. package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
  18. package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
  19. package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
  20. package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
  21. package/README.md +1 -1
  22. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +1 -0
  23. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +1 -0
  24. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  25. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  26. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
  27. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  28. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  29. package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
  30. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  31. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  32. package/components/appHeader/AppHeader.vue.d.ts +1 -1
  33. package/components/appHeader/index.d.ts +9 -9
  34. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  35. package/components/autocomplete/Autocomplete.vue.js +2 -2
  36. package/components/autocomplete/Autocomplete.vue2.js +57 -45
  37. package/components/autocomplete/index.d.ts +20 -1
  38. package/components/chart/Chart.vue.js +7 -0
  39. package/components/chart/Chart.vue2.js +281 -0
  40. package/components/chart/ChartHeader.vue.js +7 -0
  41. package/components/chart/ChartHeader.vue2.js +51 -0
  42. package/components/chart/ChartLegend.vue.js +7 -0
  43. package/components/chart/ChartLegend.vue2.js +65 -0
  44. package/components/chart/ChartLoader.vue.js +25 -0
  45. package/components/chart/ChartLoader.vue2.js +0 -0
  46. package/components/chart/ChartTooltip.vue.js +7 -0
  47. package/components/chart/ChartTooltip.vue2.js +81 -0
  48. package/components/chart/composables/useChartValues.js +32 -0
  49. package/components/chart/composables/useTooltipPosition.js +22 -0
  50. package/components/chart/consts.js +21 -0
  51. package/components/chart/index.js +6 -0
  52. package/components/chart/plugins/HoverVerticalLine.js +12 -0
  53. package/components/chart/types.js +4 -0
  54. package/components/chart/utils/formatNumber.js +11 -0
  55. package/components/chart/utils/utils.js +12 -0
  56. package/components/dropdown/common/Dropdown.common.js +89 -89
  57. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
  58. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  59. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
  60. package/components/dropdown/v4/DropdownV4.vue.d.ts +39 -0
  61. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  62. package/components/dropdown/v4/DropdownV4.vue2.js +256 -224
  63. package/components/dropdown/v4/OptionV4.vue.d.ts +36 -2
  64. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  65. package/components/dropdown/v4/OptionV4.vue2.js +99 -59
  66. package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
  67. package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
  68. package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
  69. package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
  70. package/components/dropdown/v4/index.d.ts +528 -83
  71. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  72. package/components/icon/v4/IconV4.vue.js +4 -4
  73. package/components/icon/v4/IconV4.vue2.js +29 -26
  74. package/components/icon/v4/index.d.ts +20 -1
  75. package/components/includeExclude/IncludeExclude.vue.js +4 -4
  76. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  77. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
  78. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  79. package/components/input/v4/TextField.vue.d.ts +6 -1
  80. package/components/input/v4/TextField.vue.js +3 -3
  81. package/components/input/v4/TextField.vue2.js +95 -90
  82. package/components/input/v4/index.d.ts +20 -1
  83. package/components/popover/common/Popover.common.d.ts +6 -0
  84. package/components/popover/common/Popover.common.js +17 -0
  85. package/components/popover/v3/Popover.vue.js +8 -0
  86. package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
  87. package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
  88. package/components/popover/v4/PopoverV4.vue.js +7 -0
  89. package/components/popover/v4/PopoverV4.vue2.js +54 -0
  90. package/components/popover/v4/index.d.ts +209 -0
  91. package/components/popover/v4/index.js +6 -0
  92. package/components/shared/FieldMaxLength.vue.js +3 -3
  93. package/components/shared/FieldMaxLength.vue2.js +2 -2
  94. package/components/shared/commonTypes.d.ts +2 -0
  95. package/components/sortableList/SortableItem.vue.js +7 -0
  96. package/components/sortableList/SortableItem.vue2.js +140 -0
  97. package/components/sortableList/SortableItemLabel.vue.js +7 -0
  98. package/components/sortableList/SortableItemLabel.vue2.js +60 -0
  99. package/components/sortableList/SortableList.vue.d.ts +25 -0
  100. package/components/sortableList/SortableList.vue.js +7 -0
  101. package/components/sortableList/SortableList.vue2.js +160 -0
  102. package/components/sortableList/composables/useHoverEffect.js +19 -0
  103. package/components/sortableList/consts.js +4 -0
  104. package/components/sortableList/index.d.ts +88 -2
  105. package/components/sortableList/index.js +6 -0
  106. package/components/table/v3/Table.vue.d.ts +2 -2
  107. package/components/table/v3/index.d.ts +39 -39
  108. package/components/table/v4/DataGrid.vue.d.ts +6 -2
  109. package/components/table/v4/DataGrid.vue.js +4 -4
  110. package/components/table/v4/DataGrid.vue2.js +131 -122
  111. package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
  112. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  113. package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
  114. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  115. package/components/table/v4/MultipleDataGrid.vue.js +4 -4
  116. package/components/table/v4/MultipleDataGrid.vue2.js +114 -66
  117. package/components/table/v4/index.d.ts +101 -75
  118. package/components/table-cells/common/Editable.common.js +37 -26
  119. package/components/table-cells/common/EditableContext.d.ts +1 -0
  120. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  121. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  122. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  123. package/components/table-cells/v4/index.d.ts +20 -1
  124. package/components/tabs/v4/TabsV4.vue.js +4 -4
  125. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  126. package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
  127. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  128. package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
  129. package/components/textArea/v4/index.d.ts +9 -0
  130. package/design-foundation.stories/icons/iconsData.d.ts +6 -2
  131. package/index.d.ts +9608 -7356
  132. package/index.js +136 -131
  133. package/mocks/options.d.ts +12 -0
  134. package/package.json +15 -3
  135. package/testids/index.d.ts +5 -0
  136. package/testids/index.js +27 -25
  137. package/utils/search.js +4 -0
  138. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
  139. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  140. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
  141. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
  142. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
  143. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  144. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
  145. package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
  146. package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
  147. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
  148. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
  149. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
  150. package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
  151. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  152. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
  153. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
  154. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
  155. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
  156. package/components/popover/Popover.vue.js +0 -8
  157. /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
  158. /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
  159. /package/components/popover/{index.js → v3/index.js} +0 -0
@@ -0,0 +1,60 @@
1
+ import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css"; import { defineComponent as m, openBlock as a, createBlock as u, unref as l, withCtx as t, createElementVNode as p, createElementBlock as c, Fragment as h, renderList as f, createVNode as i, createTextVNode as o, toDisplayString as r, normalizeClass as x } from "vue";
2
+ import n from "../typography/v4/Typography.vue.js";
3
+ import y from "../tooltip/v4/TooltipV4.vue.js";
4
+ const _ = { class: "tooltip-content" }, k = /* @__PURE__ */ m({
5
+ __name: "SortableItemLabel",
6
+ props: {
7
+ item: null,
8
+ displayValue: null
9
+ },
10
+ setup(e) {
11
+ return (b, T) => (a(), u(l(y), {
12
+ class: "item-label",
13
+ placement: "right",
14
+ disabled: !e.item.helpText
15
+ }, {
16
+ tooltip: t(() => [
17
+ p("div", _, [
18
+ (a(!0), c(h, null, f(e.item.helpText, (s, d) => (a(), c("div", {
19
+ key: d,
20
+ class: "help"
21
+ }, [
22
+ i(l(n), {
23
+ class: "help__title",
24
+ variant: "h5"
25
+ }, {
26
+ default: t(() => [
27
+ o(r(s.title), 1)
28
+ ]),
29
+ _: 2
30
+ }, 1024),
31
+ i(l(n), {
32
+ class: "help__text",
33
+ variant: "body2"
34
+ }, {
35
+ default: t(() => [
36
+ o(r(s.text), 1)
37
+ ]),
38
+ _: 2
39
+ }, 1024)
40
+ ]))), 128))
41
+ ])
42
+ ]),
43
+ default: t(() => [
44
+ i(l(n), {
45
+ variant: "body2",
46
+ class: x({ "decorated-text": e.item.helpText?.length })
47
+ }, {
48
+ default: t(() => [
49
+ o(r(e.displayValue(e.item)), 1)
50
+ ]),
51
+ _: 1
52
+ }, 8, ["class"])
53
+ ]),
54
+ _: 1
55
+ }, 8, ["disabled"]));
56
+ }
57
+ });
58
+ export {
59
+ k as default
60
+ };
@@ -9,6 +9,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  showSearch?: boolean;
10
10
  searchPlaceholder?: string;
11
11
  searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
12
+ isLoading?: boolean;
13
+ loadingRowCount?: number;
14
+ emptyStateTitle?: string;
12
15
  testId?: string;
13
16
  }>, {
14
17
  items: () => any[];
@@ -20,8 +23,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
23
  showSearch: boolean;
21
24
  searchPlaceholder: string;
22
25
  searchHandler: any;
26
+ isLoading: boolean;
27
+ loadingRowCount: number;
28
+ emptyStateTitle: string;
23
29
  testId: string;
24
30
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ sortableItemDragged: (event: {
32
+ id: string;
33
+ newIndex: number;
34
+ }) => void;
25
35
  "update:items": (items: SortableListItem[]) => void;
26
36
  "update:openId": (id: string | number) => void;
27
37
  "update:selectedId": (id: string | number) => void;
@@ -38,6 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
38
48
  showSearch?: boolean;
39
49
  searchPlaceholder?: string;
40
50
  searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
51
+ isLoading?: boolean;
52
+ loadingRowCount?: number;
53
+ emptyStateTitle?: string;
41
54
  testId?: string;
42
55
  }>, {
43
56
  items: () => any[];
@@ -49,8 +62,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
49
62
  showSearch: boolean;
50
63
  searchPlaceholder: string;
51
64
  searchHandler: any;
65
+ isLoading: boolean;
66
+ loadingRowCount: number;
67
+ emptyStateTitle: string;
52
68
  testId: string;
53
69
  }>>> & {
70
+ onSortableItemDragged?: (event: {
71
+ id: string;
72
+ newIndex: number;
73
+ }) => any;
54
74
  "onUpdate:items"?: (items: SortableListItem[]) => any;
55
75
  "onUpdate:openId"?: (id: string | number) => any;
56
76
  "onUpdate:selectedId"?: (id: string | number) => any;
@@ -60,6 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
60
80
  }, {
61
81
  search: string;
62
82
  testId: string;
83
+ isLoading: boolean;
63
84
  displayValue: (item: SortableListItem) => string;
64
85
  searchPlaceholder: string;
65
86
  items: SortableListItem[];
@@ -68,10 +89,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
68
89
  openId: string | number;
69
90
  selectedId: string | number;
70
91
  showSearch: boolean;
92
+ loadingRowCount: number;
93
+ emptyStateTitle: string;
71
94
  }>, {
72
95
  menu?(_: {
73
96
  item: SortableListItem;
74
97
  }): any;
98
+ loader?(_: {}): any;
99
+ "empty-state"?(_: {}): any;
75
100
  }>;
76
101
  export default _default;
77
102
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,7 @@
1
+ import o from "./SortableList.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9cd63b8"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,160 @@
1
+ import "../../SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css"; import { defineComponent as F, computed as f, ref as P, openBlock as s, createElementBlock as i, mergeProps as T, unref as l, createBlock as g, isRef as N, createCommentVNode as y, withCtx as m, Fragment as V, renderList as D, renderSlot as S, createElementVNode as G, createVNode as $, createTextVNode as U, toDisplayString as M } from "vue";
2
+ import { VueDraggable as K } from "vue-draggable-plus";
3
+ import w from "./SortableItem.vue.js";
4
+ import Q from "../search/v4/SearchV4.vue.js";
5
+ import j from "../typography/v4/Typography.vue.js";
6
+ import z from "../skeleton/v4/SkeletonV4.vue.js";
7
+ import { useVModel as J } from "@vueuse/core";
8
+ import { matchString as x } from "../../utils/search.js";
9
+ import { useTestIdAttrs as W } from "../../utils/testIds.js";
10
+ import { SortableListTestIdModifiers as I } from "../../testids/index.js";
11
+ import { DRAG_CURSOR_CSS_CLASS as q } from "./consts.js";
12
+ const X = {
13
+ key: 1,
14
+ class: "sortable-list-container"
15
+ }, Y = { class: "loader-bars" }, Z = {
16
+ key: 3,
17
+ class: "empty-state-title"
18
+ }, ue = /* @__PURE__ */ F({
19
+ __name: "SortableList",
20
+ props: {
21
+ items: { default: () => [] },
22
+ displayValue: { type: Function, default: (d) => d.displayText || d.toString() },
23
+ openId: { default: null },
24
+ selectedId: { default: null },
25
+ selectedChildId: { default: null },
26
+ search: { default: null },
27
+ showSearch: { type: Boolean, default: !1 },
28
+ searchPlaceholder: { default: "Search" },
29
+ searchHandler: { type: Function, default: null },
30
+ isLoading: { type: Boolean, default: !1 },
31
+ loadingRowCount: { default: 3 },
32
+ emptyStateTitle: { default: "No results" },
33
+ testId: { default: "" }
34
+ },
35
+ emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
36
+ setup(d, { emit: o }) {
37
+ const n = d, u = J(n, "search", o), v = f(() => !!u.value?.trim()), C = f(() => v.value ? n.items.filter((t) => {
38
+ const a = t.children || [], e = u.value;
39
+ return n.searchHandler ? n.searchHandler(t, e) : x(t.displayText, e) || // match parent item
40
+ a.some((r) => x(r.displayText, e));
41
+ }) : n.items), h = f({
42
+ get() {
43
+ return C.value.filter((t) => !t.isLocked);
44
+ },
45
+ set(t) {
46
+ o("update:items", [...t, ...b.value]);
47
+ }
48
+ }), b = f(
49
+ () => C.value.filter((t) => t.isLocked)
50
+ ), k = P(!1), H = (t) => {
51
+ k.value = !0, setTimeout(() => t.target.classList.add(q), 50);
52
+ }, O = (t) => {
53
+ const { target: a, item: e, newIndex: r } = t;
54
+ k.value = !1, a.classList.remove(q);
55
+ const c = e.attributes["data-id"]?.value;
56
+ o("sortableItemDragged", { id: c, newIndex: r });
57
+ }, R = (t) => (v.value || t.id === n.openId) && !k.value, A = (t, a) => {
58
+ a ? o("update:openId", t.id) : o("update:openId", null);
59
+ }, p = (t) => t.id === n.selectedId, B = (t) => {
60
+ o("update:selectedId", t.id), o("update:selectedChildId", null);
61
+ }, E = (t, a) => {
62
+ o("update:selectedChildId", t.id), o("update:selectedId", a.id), o("update:openId", a.id);
63
+ }, L = W(n.testId, I);
64
+ return (t, a) => (s(), i("div", T({ class: "sortable-list-and-search-container" }, l(L)[l(I).CONTAINER]), [
65
+ d.showSearch ? (s(), g(l(Q), {
66
+ key: 0,
67
+ modelValue: l(u),
68
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => N(u) ? u.value = e : null),
69
+ class: "list-search",
70
+ placeholder: d.searchPlaceholder,
71
+ "test-id": d.testId,
72
+ onOnClear: a[1] || (a[1] = (e) => o("clearSearch"))
73
+ }, null, 8, ["modelValue", "placeholder", "test-id"])) : y("", !0),
74
+ d.isLoading ? S(t.$slots, "loader", { key: 2 }, () => [
75
+ G("div", Y, [
76
+ (s(!0), i(V, null, D(d.loadingRowCount, (e) => (s(), i("div", { key: e }, [
77
+ $(l(z), {
78
+ round: "",
79
+ class: "loader-bar"
80
+ })
81
+ ]))), 128))
82
+ ])
83
+ ], !0) : (s(), i("div", X, [
84
+ l(h).length ? (s(), g(l(K), T({
85
+ key: 0,
86
+ modelValue: l(h),
87
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => N(h) ? h.value = e : null),
88
+ class: "sortable-list",
89
+ filter: ".expand-icon",
90
+ animation: 150,
91
+ handle: ".draggable-handle",
92
+ disabled: l(v)
93
+ }, l(L)[l(I).DRAGGABLE_LIST], {
94
+ onStart: H,
95
+ onEnd: O
96
+ }), {
97
+ default: m(() => [
98
+ (s(!0), i(V, null, D(l(h), (e, r) => (s(), g(w, {
99
+ key: e.id,
100
+ "data-id": e.id,
101
+ item: e,
102
+ index: r,
103
+ "is-open": R(e),
104
+ "is-selected": p(e),
105
+ "selected-child-id": p(e) ? d.selectedChildId : null,
106
+ "display-value": d.displayValue,
107
+ "search-query": l(u),
108
+ "search-handler": d.searchHandler,
109
+ onToggle: (c) => A(e, c),
110
+ onSelect: (c) => B(e),
111
+ onSelectChild: (c) => E(c, e)
112
+ }, {
113
+ menu: m(() => [
114
+ S(t.$slots, "menu", { item: e }, void 0, !0)
115
+ ]),
116
+ _: 2
117
+ }, 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
118
+ ]),
119
+ _: 3
120
+ }, 16, ["modelValue", "disabled"])) : y("", !0),
121
+ l(b).length ? (s(), i("div", T({
122
+ key: 1,
123
+ class: "locked-list"
124
+ }, l(L)[l(I).LOCKED_LIST]), [
125
+ (s(!0), i(V, null, D(l(b), (e) => (s(), g(w, {
126
+ key: e.id,
127
+ item: e,
128
+ "is-open": R(e),
129
+ "is-selected": p(e),
130
+ "selected-child-id": p(e) ? d.selectedChildId : null,
131
+ "display-value": d.displayValue,
132
+ "search-query": l(u),
133
+ "on-search": d.searchHandler,
134
+ onToggle: (r) => A(e, r),
135
+ onSelect: (r) => B(e),
136
+ onSelectChild: (r) => E(r, e)
137
+ }, {
138
+ menu: m(() => [
139
+ S(t.$slots, "menu", { item: e }, void 0, !0)
140
+ ]),
141
+ _: 2
142
+ }, 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
143
+ ], 16)) : y("", !0)
144
+ ])),
145
+ !l(C).length && !d.isLoading ? (s(), i("div", Z, [
146
+ S(t.$slots, "empty-state", {}, () => [
147
+ $(l(j), { variant: "body2" }, {
148
+ default: m(() => [
149
+ U(M(d.emptyStateTitle), 1)
150
+ ]),
151
+ _: 1
152
+ })
153
+ ], !0)
154
+ ])) : y("", !0)
155
+ ], 16));
156
+ }
157
+ });
158
+ export {
159
+ ue as default
160
+ };
@@ -0,0 +1,19 @@
1
+ import { computed as t } from "vue";
2
+ const d = (e, r) => {
3
+ const s = t(() => e.value ? Array.from(e.value.parentElement?.children || []) : []);
4
+ return {
5
+ handleMouseover: (n) => {
6
+ s.value.forEach(
7
+ (o) => o.classList.remove(r)
8
+ ), s.value.some(
9
+ (o) => o.classList.contains("sortable-chosen")
10
+ ) || n.currentTarget.classList.add(r);
11
+ },
12
+ handleMouseout: () => {
13
+ e.value.classList.remove(r);
14
+ }
15
+ };
16
+ };
17
+ export {
18
+ d as useHoverEffect
19
+ };
@@ -0,0 +1,4 @@
1
+ const r = "force-grabbing-cursor";
2
+ export {
3
+ r as DRAG_CURSOR_CSS_CLASS
4
+ };
@@ -6,6 +6,7 @@ declare const SortableListTypes: () => ({
6
6
  $props: Partial<{
7
7
  search: string;
8
8
  testId: string;
9
+ isLoading: boolean;
9
10
  displayValue: (item: import("./SortableList.types").SortableListItem) => string;
10
11
  searchPlaceholder: string;
11
12
  items: import("./SortableList.types").SortableListItem[];
@@ -14,6 +15,8 @@ declare const SortableListTypes: () => ({
14
15
  openId: string | number;
15
16
  selectedId: string | number;
16
17
  showSearch: boolean;
18
+ loadingRowCount: number;
19
+ emptyStateTitle: string;
17
20
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
18
21
  search: {
19
22
  type: import("vue").PropType<string>;
@@ -23,6 +26,10 @@ declare const SortableListTypes: () => ({
23
26
  type: import("vue").PropType<string>;
24
27
  default: string;
25
28
  };
29
+ isLoading: {
30
+ type: import("vue").PropType<boolean>;
31
+ default: boolean;
32
+ };
26
33
  displayValue: {
27
34
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
28
35
  required: true;
@@ -57,14 +64,26 @@ declare const SortableListTypes: () => ({
57
64
  type: import("vue").PropType<boolean>;
58
65
  default: boolean;
59
66
  };
67
+ loadingRowCount: {
68
+ type: import("vue").PropType<number>;
69
+ default: number;
70
+ };
71
+ emptyStateTitle: {
72
+ type: import("vue").PropType<string>;
73
+ default: string;
74
+ };
60
75
  }>> & {
76
+ onSortableItemDragged?: (event: {
77
+ id: string;
78
+ newIndex: number;
79
+ }) => any;
61
80
  "onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
62
81
  "onUpdate:openId"?: (id: string | number) => any;
63
82
  "onUpdate:selectedId"?: (id: string | number) => any;
64
83
  "onUpdate:selectedChildId"?: (id: string | number) => any;
65
84
  "onUpdate:search"?: (query: string) => any;
66
85
  onClearSearch?: () => any;
67
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch">;
86
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle">;
68
87
  $attrs: {
69
88
  [x: string]: unknown;
70
89
  };
@@ -76,7 +95,10 @@ declare const SortableListTypes: () => ({
76
95
  }>;
77
96
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
78
97
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
79
- $emit: ((event: "update:items", items: import("./SortableList.types").SortableListItem[]) => void) & ((event: "update:openId", id: string | number) => void) & ((event: "update:selectedId", id: string | number) => void) & ((event: "update:selectedChildId", id: string | number) => void) & ((event: "update:search", query: string) => void) & ((event: "clearSearch") => void);
98
+ $emit: ((event: "sortableItemDragged", event: {
99
+ id: string;
100
+ newIndex: number;
101
+ }) => void) & ((event: "update:items", items: import("./SortableList.types").SortableListItem[]) => void) & ((event: "update:openId", id: string | number) => void) & ((event: "update:selectedId", id: string | number) => void) & ((event: "update:selectedChildId", id: string | number) => void) & ((event: "update:search", query: string) => void) & ((event: "clearSearch") => void);
80
102
  $el: any;
81
103
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
82
104
  search: {
@@ -87,6 +109,10 @@ declare const SortableListTypes: () => ({
87
109
  type: import("vue").PropType<string>;
88
110
  default: string;
89
111
  };
112
+ isLoading: {
113
+ type: import("vue").PropType<boolean>;
114
+ default: boolean;
115
+ };
90
116
  displayValue: {
91
117
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
92
118
  required: true;
@@ -121,7 +147,19 @@ declare const SortableListTypes: () => ({
121
147
  type: import("vue").PropType<boolean>;
122
148
  default: boolean;
123
149
  };
150
+ loadingRowCount: {
151
+ type: import("vue").PropType<number>;
152
+ default: number;
153
+ };
154
+ emptyStateTitle: {
155
+ type: import("vue").PropType<string>;
156
+ default: string;
157
+ };
124
158
  }>> & {
159
+ onSortableItemDragged?: (event: {
160
+ id: string;
161
+ newIndex: number;
162
+ }) => any;
125
163
  "onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
126
164
  "onUpdate:openId"?: (id: string | number) => any;
127
165
  "onUpdate:selectedId"?: (id: string | number) => any;
@@ -129,6 +167,10 @@ declare const SortableListTypes: () => ({
129
167
  "onUpdate:search"?: (query: string) => any;
130
168
  onClearSearch?: () => any;
131
169
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
170
+ sortableItemDragged: (event: {
171
+ id: string;
172
+ newIndex: number;
173
+ }) => void;
132
174
  "update:items": (items: import("./SortableList.types").SortableListItem[]) => void;
133
175
  "update:openId": (id: string | number) => void;
134
176
  "update:selectedId": (id: string | number) => void;
@@ -138,6 +180,7 @@ declare const SortableListTypes: () => ({
138
180
  }, string, {
139
181
  search: string;
140
182
  testId: string;
183
+ isLoading: boolean;
141
184
  displayValue: (item: import("./SortableList.types").SortableListItem) => string;
142
185
  searchPlaceholder: string;
143
186
  items: import("./SortableList.types").SortableListItem[];
@@ -146,6 +189,8 @@ declare const SortableListTypes: () => ({
146
189
  openId: string | number;
147
190
  selectedId: string | number;
148
191
  showSearch: boolean;
192
+ loadingRowCount: number;
193
+ emptyStateTitle: string;
149
194
  }, {}, string> & {
150
195
  beforeCreate?: (() => void) | (() => void)[];
151
196
  created?: (() => void) | (() => void)[];
@@ -175,6 +220,10 @@ declare const SortableListTypes: () => ({
175
220
  type: import("vue").PropType<string>;
176
221
  default: string;
177
222
  };
223
+ isLoading: {
224
+ type: import("vue").PropType<boolean>;
225
+ default: boolean;
226
+ };
178
227
  displayValue: {
179
228
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
180
229
  required: true;
@@ -209,7 +258,19 @@ declare const SortableListTypes: () => ({
209
258
  type: import("vue").PropType<boolean>;
210
259
  default: boolean;
211
260
  };
261
+ loadingRowCount: {
262
+ type: import("vue").PropType<number>;
263
+ default: number;
264
+ };
265
+ emptyStateTitle: {
266
+ type: import("vue").PropType<string>;
267
+ default: string;
268
+ };
212
269
  }>> & {
270
+ onSortableItemDragged?: (event: {
271
+ id: string;
272
+ newIndex: number;
273
+ }) => any;
213
274
  "onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
214
275
  "onUpdate:openId"?: (id: string | number) => any;
215
276
  "onUpdate:selectedId"?: (id: string | number) => any;
@@ -229,6 +290,10 @@ declare const SortableListTypes: () => ({
229
290
  type: import("vue").PropType<string>;
230
291
  default: string;
231
292
  };
293
+ isLoading: {
294
+ type: import("vue").PropType<boolean>;
295
+ default: boolean;
296
+ };
232
297
  displayValue: {
233
298
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
234
299
  required: true;
@@ -263,7 +328,19 @@ declare const SortableListTypes: () => ({
263
328
  type: import("vue").PropType<boolean>;
264
329
  default: boolean;
265
330
  };
331
+ loadingRowCount: {
332
+ type: import("vue").PropType<number>;
333
+ default: number;
334
+ };
335
+ emptyStateTitle: {
336
+ type: import("vue").PropType<string>;
337
+ default: string;
338
+ };
266
339
  }>> & {
340
+ onSortableItemDragged?: (event: {
341
+ id: string;
342
+ newIndex: number;
343
+ }) => any;
267
344
  "onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
268
345
  "onUpdate:openId"?: (id: string | number) => any;
269
346
  "onUpdate:selectedId"?: (id: string | number) => any;
@@ -271,6 +348,10 @@ declare const SortableListTypes: () => ({
271
348
  "onUpdate:search"?: (query: string) => any;
272
349
  onClearSearch?: () => any;
273
350
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
351
+ sortableItemDragged: (event: {
352
+ id: string;
353
+ newIndex: number;
354
+ }) => void;
274
355
  "update:items": (items: import("./SortableList.types").SortableListItem[]) => void;
275
356
  "update:openId": (id: string | number) => void;
276
357
  "update:selectedId": (id: string | number) => void;
@@ -280,6 +361,7 @@ declare const SortableListTypes: () => ({
280
361
  }, string, {
281
362
  search: string;
282
363
  testId: string;
364
+ isLoading: boolean;
283
365
  displayValue: (item: import("./SortableList.types").SortableListItem) => string;
284
366
  searchPlaceholder: string;
285
367
  items: import("./SortableList.types").SortableListItem[];
@@ -288,11 +370,15 @@ declare const SortableListTypes: () => ({
288
370
  openId: string | number;
289
371
  selectedId: string | number;
290
372
  showSearch: boolean;
373
+ loadingRowCount: number;
374
+ emptyStateTitle: string;
291
375
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
292
376
  $slots: {
293
377
  menu?(_: {
294
378
  item: import("./SortableList.types").SortableListItem;
295
379
  }): any;
380
+ loader?(_: {}): any;
381
+ "empty-state"?(_: {}): any;
296
382
  };
297
383
  }))[];
298
384
  export { SortableList, SortableListTypes };
@@ -0,0 +1,6 @@
1
+ import t from "./SortableList.vue.js";
2
+ const r = () => [t];
3
+ export {
4
+ t as SortableList,
5
+ r as SortableListTypes
6
+ };
@@ -84,15 +84,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
84
84
  }, {
85
85
  testId: string;
86
86
  isLoading: boolean;
87
+ loadingRowCount: number;
88
+ emptyStateTitle: string;
87
89
  isSticky: boolean;
88
90
  sections: Section[];
89
91
  isStickyHeader: boolean;
90
- emptyStateTitle: string;
91
92
  emptyStateSubtitle: string;
92
93
  isInfiniteScroll: boolean;
93
94
  infiniteScrollThreshold: number;
94
95
  rowHeight: number | ((index: number) => number);
95
- loadingRowCount: number;
96
96
  defaultScrollPosition: number;
97
97
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
98
98
  column: Column;