@ironsource/shared-ui 2.1.11-rc.6 → 2.1.11-rc.60

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 (197) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css +1 -0
  6. package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
  7. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  8. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  9. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  10. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2a77c137_lang.css +1 -0
  11. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  12. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  13. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  14. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  15. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  16. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  17. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  18. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  19. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  20. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  21. package/IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css +1 -0
  22. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  23. package/OptionV4.vue_vue_type_style_index_0_scoped_5ff4b654_lang.css +1 -0
  24. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  25. package/README.md +4 -15
  26. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
  27. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  28. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
  29. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  30. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  31. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  32. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  33. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  34. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  35. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  36. package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
  37. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  38. package/components/chart/Chart.vue.d.ts +16 -3
  39. package/components/chart/Chart.vue.js +5 -5
  40. package/components/chart/Chart.vue2.js +145 -123
  41. package/components/chart/ChartHeader.vue.d.ts +13 -6
  42. package/components/chart/ChartHeader.vue.js +2 -2
  43. package/components/chart/ChartHeader.vue2.js +32 -29
  44. package/components/chart/ChartLegend.vue.d.ts +5 -0
  45. package/components/chart/ChartLegend.vue.js +3 -3
  46. package/components/chart/ChartLegend.vue2.js +110 -50
  47. package/components/chart/ChartLoader.vue.js +5 -23
  48. package/components/chart/ChartLoader.vue2.js +15 -0
  49. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  50. package/components/chart/ChartTooltip.vue.js +2 -2
  51. package/components/chart/ChartTooltip.vue2.js +64 -43
  52. package/components/chart/SettingsHeader.vue.js +3 -3
  53. package/components/chart/SettingsHeader.vue2.js +34 -26
  54. package/components/chart/index.d.ts +55 -16
  55. package/components/chart/mockData.d.ts +22 -1
  56. package/components/chart/types.d.ts +15 -1
  57. package/components/chart/utils/utils.js +5 -5
  58. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  59. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  60. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  61. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  62. package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
  63. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  64. package/components/dialog/v4/DialogV4.vue.js +3 -3
  65. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  66. package/components/dialog/v4/index.d.ts +58 -1
  67. package/components/dropdown/common/Dropdown.common.js +200 -189
  68. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  69. package/components/dropdown/v3/index.d.ts +39 -39
  70. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  71. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  72. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  73. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  74. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  75. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  76. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  77. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  78. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
  79. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +133 -0
  80. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  81. package/components/dropdown/v4/ConditionalDropdown.vue2.js +246 -0
  82. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  83. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  84. package/components/dropdown/v4/DropdownV4.vue.d.ts +26 -6
  85. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  86. package/components/dropdown/v4/DropdownV4.vue2.js +187 -167
  87. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  88. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  89. package/components/dropdown/v4/OptionV4.vue2.js +116 -91
  90. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  91. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  92. package/components/dropdown/v4/TreeDropdown.vue2.js +123 -113
  93. package/components/dropdown/v4/index.d.ts +431 -95
  94. package/components/dropdown/v4/index.js +6 -3
  95. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  96. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  97. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  98. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  99. package/components/forms/FormCard.vue.js +3 -3
  100. package/components/forms/FormCard.vue2.js +1 -1
  101. package/components/icon/v4/IconFlag.vue.js +3 -3
  102. package/components/icon/v4/IconFlag.vue2.js +1 -1
  103. package/components/icon/v4/consts.d.ts +1 -1
  104. package/components/icon/v4/consts.js +1 -1
  105. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  106. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  107. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  108. package/components/inlineCopy/index.d.ts +9 -0
  109. package/components/input/v4/TextField.vue.js +3 -3
  110. package/components/input/v4/TextField.vue2.js +185 -165
  111. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  112. package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
  113. package/components/popover/v4/PopoverV4.vue.js +4 -3
  114. package/components/popover/v4/PopoverV4.vue2.js +40 -26
  115. package/components/popover/v4/index.d.ts +46 -8
  116. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  117. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  118. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  119. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  120. package/components/sortableList/SortableItem.vue.js +3 -3
  121. package/components/sortableList/SortableItem.vue2.js +86 -70
  122. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  123. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  124. package/components/sortableList/SortableList.vue.d.ts +17 -1
  125. package/components/sortableList/SortableList.vue.js +4 -4
  126. package/components/sortableList/SortableList.vue2.js +113 -94
  127. package/components/sortableList/index.d.ts +63 -5
  128. package/components/table/common/Table.common.d.ts +1 -1
  129. package/components/table/common/Table.common.js +83 -77
  130. package/components/table/common/Table.types.d.ts +1 -1
  131. package/components/table/common/consts.d.ts +4 -0
  132. package/components/table/common/consts.js +7 -0
  133. package/components/table/v3/Table.vue.d.ts +1 -1
  134. package/components/table/v3/index.d.ts +5 -5
  135. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  136. package/components/table/v4/DataGrid.vue.js +2 -2
  137. package/components/table/v4/DataGrid.vue2.js +164 -155
  138. package/components/table/v4/DataGridMenu.vue.js +5 -5
  139. package/components/table/v4/DataGridMenu.vue2.js +4 -3
  140. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  141. package/components/table/v4/index.d.ts +84 -46
  142. package/components/table-cells/common/Editable.common.js +29 -23
  143. package/components/table-cells/common/EditableContext.d.ts +1 -0
  144. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  145. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  146. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  147. package/components/table-cells/v4/index.d.ts +20 -1
  148. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  149. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  150. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  151. package/components/tooltip/v4/index.d.ts +39 -1
  152. package/components/typography/v4/Typography.vue.js +2 -2
  153. package/components/typography/v4/Typography.vue2.js +24 -18
  154. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  155. package/index.d.ts +1570 -328
  156. package/index.js +1 -1
  157. package/mocks/options.d.ts +19 -0
  158. package/mocks/words.d.ts +1 -1
  159. package/package.json +2 -1
  160. package/style/v4/grid.css +1 -1
  161. package/style/v4/grid.css.map +1 -1
  162. package/style/v4/spacings.scss +1 -0
  163. package/testids/index.d.ts +2 -0
  164. package/testids/index.js +13 -13
  165. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  166. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  167. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  168. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  169. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  170. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
  171. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  172. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  173. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  174. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  175. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  176. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  177. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  178. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  179. package/DropdownV4.vue_vue_type_style_index_0_scoped_111642c6_lang.css +0 -1
  180. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  181. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  182. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  183. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  184. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  185. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  186. package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +0 -1
  187. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
  188. package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
  189. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  190. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  191. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  192. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  193. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  194. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  195. package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +0 -1
  196. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
  197. package/consts/configs.js +0 -4
@@ -1,41 +1,42 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_111642c6_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ye, computed as U, openBlock as i, createElementBlock as d, mergeProps as s, unref as t, renderSlot as g, createElementVNode as m, createVNode as n, withCtx as c, Transition as fe, normalizeClass as O, normalizeStyle as me, isRef as pe, createCommentVNode as r, createTextVNode as b, toDisplayString as W, withModifiers as M, Fragment as ge, renderList as Te, toRaw as w, createBlock as X, resolveDynamicComponent as ke } from "vue";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as U, openBlock as n, createElementBlock as r, mergeProps as y, unref as t, renderSlot as f, createElementVNode as m, createVNode as i, withCtx as u, Transition as me, normalizeClass as O, normalizeStyle as pe, createTextVNode as T, createCommentVNode as a, isRef as ge, toDisplayString as G, withModifiers as W, Fragment as Te, renderList as ke, toRaw as C, createBlock as X, resolveDynamicComponent as he } from "vue";
2
2
  import L from "../../button/v4/ButtonV4.vue.js";
3
3
  import "../../button/v4/IconButtonV4.vue.js";
4
4
  import "../../button/v4/ButtonGroup.vue.js";
5
5
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
6
  import "./DropdownV4.vue.js";
7
7
  import be from "./DefaultDropdownTrigger.vue.js";
8
- import Ie from "./IconButtonDropdownTrigger.vue.js";
9
- import he from "./ChipDropdownTrigger.vue.js";
10
- import we from "./AppDropdownTrigger.vue.js";
8
+ import we from "./IconButtonDropdownTrigger.vue.js";
9
+ import Ie from "./ChipDropdownTrigger.vue.js";
10
+ import ve from "./AppDropdownTrigger.vue.js";
11
11
  import "./ButtonDropdownTrigger.vue.js";
12
12
  import "./ButtonFilterDropdownTrigger.vue.js";
13
13
  import "./TreeDropdown.vue.js";
14
14
  import q from "./OptionV4.vue.js";
15
- import ve from "../../search/v4/SearchV4.vue.js";
16
- import Ce from "../../typography/v4/Typography.vue.js";
15
+ import "./ConditionalDropdown.vue.js";
16
+ import Ce from "../../search/v4/SearchV4.vue.js";
17
+ import Y from "../../typography/v4/Typography.vue.js";
17
18
  import { Dropdown as Se } from "floating-vue";
18
- import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
19
+ import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
19
20
  import { dropdownCommon as Ke } from "../common/Dropdown.common.js";
20
21
  import S from "../../skeleton/v4/SkeletonV4.vue.js";
21
22
  import { useTestIdAttrs as Ae } from "../../../utils/testIds.js";
22
- import { TRIGGERS as T } from "./Dropdown.types.js";
23
+ import { TRIGGERS as k } from "./Dropdown.types.js";
23
24
  import { useElementSize as Ee } from "@vueuse/core";
24
25
  import Oe from "../../shared/FieldHelpText.vue.js";
25
26
  import Le from "./GroupOption.vue.js";
26
- const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve = { key: 1 }, xe = { key: 2 }, De = {
27
+ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve = { key: 1 }, xe = { key: 2 }, De = {
27
28
  key: 0,
28
29
  class: "inline-search-wrapper"
29
- }, Pe = {
30
+ }, Pe = { class: "dropdown-conditions" }, Re = {
30
31
  key: 0,
31
32
  class: "no-result-container"
32
- }, Re = {
33
- key: 1,
34
- class: "loader"
35
33
  }, ze = ["aria-selected", "aria-disabled", "onClick"], $e = {
34
+ key: 3,
35
+ class: "loader"
36
+ }, Me = {
36
37
  key: 1,
37
38
  class: "actions-wrapper"
38
- }, He = { class: "actions-clear-all" }, Ge = { class: "actions-apply-cancel" }, pt = /* @__PURE__ */ ye({
39
+ }, He = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, Tt = /* @__PURE__ */ fe({
39
40
  __name: "DropdownV4",
40
41
  props: {
41
42
  modelValue: { default: null },
@@ -45,6 +46,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
45
46
  disabled: { type: Boolean, default: !1 },
46
47
  popperClass: { default: "" },
47
48
  loading: { type: Boolean },
49
+ loadMoreLoading: { type: Boolean },
50
+ infiniteLoading: { type: Boolean, default: !1 },
48
51
  testId: { default: "" },
49
52
  isOpen: { type: Boolean },
50
53
  options: null,
@@ -67,13 +70,13 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
67
70
  triggerShowAllSelectedText: { type: Boolean, default: !0 },
68
71
  size: { default: "medium" },
69
72
  mandatory: { type: Boolean, default: !1 },
70
- predefinedTrigger: { default: T.DEFAULT },
73
+ predefinedTrigger: { default: k.DEFAULT },
71
74
  inlineSearch: { type: Boolean, default: !1 },
72
75
  inlineSearchPlaceholder: { default: "Search" },
73
76
  onSearch: { type: Function, default: null },
74
77
  noResultsText: { default: "No results found" },
75
78
  searchAutoFocus: { type: Boolean, default: !0 },
76
- onClear: { type: Function, default: () => !0 },
79
+ onClearSearch: { type: Function, default: () => !0 },
77
80
  displayValue: null,
78
81
  optionNameKey: { default: "" },
79
82
  optionIconKey: { default: "" },
@@ -95,11 +98,12 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
95
98
  optionsListWidth: { default: null },
96
99
  statusType: { default: null },
97
100
  disableVirtualScroll: { type: Boolean, default: !1 },
98
- overrideOptionCountCalculation: { type: Function, default: null }
101
+ overrideOptionCountCalculation: { type: Function, default: null },
102
+ withConditions: { type: Boolean, default: !1 }
99
103
  },
100
- emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
101
- setup(e, { expose: Y, emit: F }) {
102
- const a = e, N = {
104
+ emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
105
+ setup(e, { expose: j, emit: B }) {
106
+ const d = e, F = {
103
107
  MULTILINE_LIST_HEIGHT: 48,
104
108
  LIST_HEIGHT: 32 + 4,
105
109
  MAX_NUMBER_OF_OPTIONS: 7.5,
@@ -107,55 +111,55 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
107
111
  DROPLIST_MIN_WIDTH: 240,
108
112
  VERSION: 4
109
113
  }, {
110
- onKeydown: I,
111
- open: u,
112
- toggleMenu: v,
113
- onButtonKeydown: B,
114
- query: C,
115
- containerProps: j,
116
- calculateTableHeight: J,
117
- wrapperProps: Q,
118
- filteredOptions: Z,
114
+ onKeydown: b,
115
+ open: s,
116
+ toggleMenu: I,
117
+ onButtonKeydown: N,
118
+ query: v,
119
+ containerProps: J,
120
+ calculateTableHeight: Q,
121
+ wrapperProps: Z,
122
+ filteredOptions: _,
119
123
  allSelected: V,
120
124
  allSelectedApplied: K,
121
- isIndeterminate: _,
122
- onSelectAll: ee,
125
+ isIndeterminate: ee,
126
+ onSelectAll: te,
123
127
  virtualOptions: x,
124
128
  isSelected: A,
125
- selectedOption: k,
129
+ selectedOption: h,
126
130
  selectedOptionPrevious: E,
127
- selectedValue: te,
131
+ selectedValue: oe,
128
132
  onSelect: D,
129
133
  activeIndex: P,
130
- onCancel: oe,
131
- onApply: le,
134
+ onCancel: le,
135
+ onApply: ie,
132
136
  scrollTo: ne,
133
- listRef: ie,
137
+ listRef: ae,
134
138
  buttonRef: R,
135
- apply: ae,
136
- cancel: de,
137
- el: re,
139
+ apply: de,
140
+ cancel: re,
141
+ el: se,
138
142
  onClearAllSelections: z,
139
143
  clearAll: ue,
140
- isGroup: se
141
- } = Ke(a, F, N), f = Ae(a.testId, y), $ = U(() => !a.predefinedTrigger || a.predefinedTrigger === T.DEFAULT ? be : a.predefinedTrigger === T.APP ? we : null), { width: H } = Ee(R), ce = U(() => a.optionsListWidth ? a.optionsListWidth : !a.predefinedTrigger || a.predefinedTrigger === T.DEFAULT || a.predefinedTrigger === T.APP ? H.value - 2 > 240 ? `${H.value - 2}px` : `${N.DROPLIST_MIN_WIDTH}px` : "auto"), G = () => {
142
- v();
144
+ isGroup: ce
145
+ } = Ke(d, B, F), g = Ae(d.testId, p), $ = U(() => !d.predefinedTrigger || d.predefinedTrigger === k.DEFAULT ? be : d.predefinedTrigger === k.APP ? ve : null), { width: M } = Ee(R), ye = U(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === k.DEFAULT || d.predefinedTrigger === k.APP ? M.value - 2 > 240 ? `${M.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto"), H = () => {
146
+ I();
143
147
  };
144
- return Y({
148
+ return j({
145
149
  selectItem: D,
146
150
  scrollTo: ne
147
- }), (p, l) => (i(), d("div", s({
151
+ }), (c, l) => (n(), r("div", y({
148
152
  ref_key: "el",
149
- ref: re,
153
+ ref: se,
150
154
  class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
151
155
  tabindex: e.disabled ? -1 : 0
152
- }, t(f)[t(y).WRAPPER], {
156
+ }, t(g)[t(p).WRAPPER], {
153
157
  onKeydown: l[8] || (l[8] = //@ts-ignore
154
- (...o) => t(I) && t(I)(...o))
158
+ (...o) => t(b) && t(b)(...o))
155
159
  }), [
156
- g(p.$slots, "label", {}, void 0, !0),
157
- m("div", Ne, [
158
- n(t(Se), s({
160
+ f(c.$slots, "label", {}, void 0, !0),
161
+ m("div", Fe, [
162
+ i(t(Se), y({
159
163
  theme: e.theme,
160
164
  "popper-class": [
161
165
  e.popperClass,
@@ -168,121 +172,130 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
168
172
  distance: e.distance,
169
173
  flip: e.flip,
170
174
  triggers: [],
171
- shown: !!t(u),
175
+ shown: !!t(s),
172
176
  "auto-hide": !1,
173
177
  container: e.container,
174
178
  "auto-size": e.autoSize
175
- }, t(f)[t(y).TRIGGER]), {
176
- popper: c(() => [
177
- n(fe, null, {
178
- default: c(() => [
179
- t(u) ? (i(), d("div", {
179
+ }, t(g)[t(p).TRIGGER]), {
180
+ popper: u(() => [
181
+ i(me, null, {
182
+ default: u(() => [
183
+ t(s) ? (n(), r("div", {
180
184
  key: 0,
181
185
  ref_key: "listRef",
182
- ref: ie,
186
+ ref: ae,
183
187
  class: O(["light-theme-v4", {
184
188
  "dropdown--disabled": e.disabled,
185
189
  "inline-search": e.inlineSearch
186
190
  }]),
187
- style: me({ width: t(ce) })
191
+ style: pe({ width: t(ye) })
188
192
  }, [
189
- t(u) ? (i(), d("div", {
193
+ t(s) ? (n(), r("div", {
190
194
  key: 0,
191
195
  class: O(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
192
196
  onKeydown: l[7] || (l[7] = //@ts-ignore
193
- (...o) => t(I) && t(I)(...o))
197
+ (...o) => t(b) && t(b)(...o))
194
198
  }, [
195
- t(u) && e.inlineSearch ? (i(), d("div", De, [
196
- g(p.$slots, "inline-search", {}, () => [
197
- n(t(ve), {
198
- modelValue: t(C),
199
+ t(s) && e.inlineSearch ? (n(), r("div", De, [
200
+ e.withConditions ? f(c.$slots, "dropdown-conditions", { key: 0 }, () => [
201
+ m("div", Pe, [
202
+ i(t(Y), { variant: "body2" }, {
203
+ default: u(() => [
204
+ T("Conditions")
205
+ ]),
206
+ _: 1
207
+ })
208
+ ])
209
+ ], !0) : a("", !0),
210
+ f(c.$slots, "inline-search", {}, () => [
211
+ i(t(Ce), {
212
+ modelValue: t(v),
199
213
  "onUpdate:modelValue": [
200
- l[4] || (l[4] = (o) => pe(C) ? C.value = o : null),
201
- e.onClear
214
+ l[4] || (l[4] = (o) => ge(v) ? v.value = o : null),
215
+ e.onClearSearch
202
216
  ],
203
217
  placeholder: e.inlineSearchPlaceholder,
204
218
  variant: "transparent",
205
219
  size: "md",
206
220
  "auto-focus": e.searchAutoFocus,
207
221
  "test-id": e.testId,
208
- onKeydown: t(I)
222
+ onKeydown: t(b)
209
223
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
210
224
  ], !0)
211
- ])) : r("", !0),
212
- g(p.$slots, "input-list", { open: t(u) }, void 0, !0),
213
- m("div", s({
225
+ ])) : a("", !0),
226
+ f(c.$slots, "input-list", { open: t(s) }, void 0, !0),
227
+ m("div", y({
214
228
  class: ["list-container", { "list-container--multi": e.multi }],
215
- style: { height: `${t(J)}rem` }
229
+ style: { height: `${t(Q)}rem` }
216
230
  }, {
217
- ...t(j),
218
- ...t(f)[t(y).LIST_CONTAINER]
231
+ ...t(J),
232
+ ...t(g)[t(p).LIST_CONTAINER]
219
233
  }), [
220
- m("ul", s(t(Q), {
234
+ f(c.$slots, "custom-list-area", {}, void 0, !0),
235
+ m("ul", y(t(Z), {
221
236
  role: "listbox",
222
- class: ["list", { "list--multi": e.multi }]
237
+ class: ["list", {
238
+ "list--multi": e.multi,
239
+ "list--with-conditions": e.withConditions
240
+ }]
223
241
  }), [
224
- !t(Z).length && !e.loading ? (i(), d("li", Pe, [
225
- n(t(Ce), s({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
226
- default: c(() => [
227
- b(W(e.noResultsText), 1)
242
+ !t(_).length && !e.loading && !e.withConditions ? (n(), r("li", Re, [
243
+ i(t(Y), y({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
244
+ default: u(() => [
245
+ T(G(e.noResultsText), 1)
228
246
  ]),
229
247
  _: 1
230
248
  }, 16)
231
- ])) : r("", !0),
232
- e.loading ? (i(), d("li", Re, [
233
- n(t(S), { round: "" }),
234
- n(t(S), { round: "" }),
235
- n(t(S), { round: "" }),
236
- n(t(S), { round: "" })
237
- ])) : r("", !0),
238
- e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading ? g(p.$slots, "select-all", { key: 2 }, () => [
249
+ ])) : a("", !0),
250
+ e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? f(c.$slots, "select-all", { key: 1 }, () => [
239
251
  m("li", null, [
240
- n(t(q), s(
252
+ i(t(q), y(
241
253
  {
242
254
  "aria-selected": t(V),
243
255
  "aria-disabled": !!e.disabled,
244
256
  "selected-prop": t(V),
245
- "is-indeterminate": t(_),
257
+ "is-indeterminate": t(ee),
258
+ "is-multi": e.multi,
246
259
  "select-all-option": ""
247
260
  },
248
- t(f)[t(y).SELECT_ALL],
261
+ t(g)[t(p).SELECT_ALL],
249
262
  {
250
- onClick: l[5] || (l[5] = M((o) => t(ee)(), ["stop"]))
263
+ onClick: l[5] || (l[5] = W((o) => t(te)(), ["stop"]))
251
264
  }
252
265
  ), {
253
- default: c(() => [
254
- b(" Select all ")
266
+ default: u(() => [
267
+ T(" Select all ")
255
268
  ]),
256
269
  _: 1
257
- }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
270
+ }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
258
271
  ])
259
- ], !0) : r("", !0),
260
- t(x).length && !e.loading ? (i(!0), d(ge, { key: 3 }, Te(t(x), ({ data: o, index: h }) => (i(), d("li", {
261
- key: h,
262
- "aria-selected": t(A)(w(t(k)), o),
272
+ ], !0) : a("", !0),
273
+ t(x).length && !e.loading ? (n(!0), r(Te, { key: 2 }, ke(t(x), ({ data: o, index: w }) => (n(), r("li", {
274
+ key: w,
275
+ "aria-selected": t(A)(C(t(h)), o),
263
276
  "aria-disabled": !!e.disabled,
264
- onClick: M(() => t(D)(o, h), ["stop"])
277
+ onClick: W(() => t(D)(o, w), ["stop"])
265
278
  }, [
266
- e.groupedOptions && t(se)(o) ? g(p.$slots, "group-option", { key: 0 }, () => [
267
- n(Le, null, {
268
- default: c(() => [
269
- b(W(e.displayValue(o) || o[e.optionNameKey]), 1)
279
+ e.groupedOptions && t(ce)(o) ? f(c.$slots, "group-option", { key: 0 }, () => [
280
+ i(Le, null, {
281
+ default: u(() => [
282
+ T(G(e.displayValue(o) || o[e.optionNameKey]), 1)
270
283
  ]),
271
284
  _: 2
272
285
  }, 1024)
273
- ], !0) : g(p.$slots, "default", {
286
+ ], !0) : f(c.$slots, "default", {
274
287
  key: 1,
275
288
  option: o,
276
- index: h,
277
- selected: t(A)(w(t(k)), o),
278
- active: w(t(P)) === h,
279
- disabled: o[a.disabledOptionKey]
289
+ index: w,
290
+ selected: t(A)(C(t(h)), o),
291
+ active: C(t(P)) === w,
292
+ disabled: o[d.disabledOptionKey]
280
293
  }, () => [
281
- n(t(q), {
294
+ i(t(q), {
282
295
  option: o,
283
- "selected-prop": t(A)(w(t(k)), o),
284
- active: w(t(P)) === h,
285
- disabled: o[a.disabledOptionKey],
296
+ "selected-prop": t(A)(t(h), o),
297
+ active: C(t(P)) === w,
298
+ disabled: o[d.disabledOptionKey],
286
299
  "name-key": e.optionNameKey,
287
300
  "image-key": e.optionImageKey,
288
301
  "icon-key": e.optionIconKey,
@@ -292,15 +305,22 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
292
305
  "end-text-icon-key": e.optionsEndTextIconKey,
293
306
  "option-flag-key": e.optionFlagKey,
294
307
  "option-two-lines-variant": e.optionTwoLinesVariant,
295
- "option-two-lines-key": e.optionTwoLinesKey
296
- }, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "option-two-lines-variant", "option-two-lines-key"])
308
+ "option-two-lines-key": e.optionTwoLinesKey,
309
+ "is-multi": e.multi
310
+ }, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
297
311
  ], !0)
298
- ], 8, ze))), 128)) : r("", !0)
312
+ ], 8, ze))), 128)) : a("", !0),
313
+ e.loading || e.loadMoreLoading ? (n(), r("li", $e, [
314
+ i(t(S), { round: "" }),
315
+ i(t(S), { round: "" }),
316
+ i(t(S), { round: "" }),
317
+ i(t(S), { round: "" })
318
+ ])) : a("", !0)
299
319
  ], 16)
300
320
  ], 16),
301
- e.multi ? (i(), d("div", $e, [
321
+ e.multi ? (n(), r("div", Me, [
302
322
  m("div", He, [
303
- n(t(L), s(
323
+ i(t(L), y(
304
324
  {
305
325
  ref_key: "clearAll",
306
326
  ref: ue,
@@ -308,58 +328,58 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
308
328
  variant: "text",
309
329
  color: "primary"
310
330
  },
311
- t(f)[t(y).ACTION_CLEAR_ALL],
331
+ t(g)[t(p).ACTION_CLEAR_ALL],
312
332
  {
313
333
  onClick: l[6] || (l[6] = () => t(z)(!1))
314
334
  }
315
335
  ), {
316
- default: c(() => [
317
- b(" Clear all ")
336
+ default: u(() => [
337
+ T(" Clear all ")
318
338
  ]),
319
339
  _: 1
320
340
  }, 16)
321
341
  ]),
322
- m("div", Ge, [
323
- n(t(L), s(
342
+ m("div", Ue, [
343
+ i(t(L), y(
324
344
  {
325
345
  ref_key: "cancel",
326
- ref: de,
346
+ ref: re,
327
347
  size: "small",
328
348
  variant: "outlined",
329
349
  color: "primary"
330
350
  },
331
- t(f)[t(y).ACTION_CANCEL],
332
- { onClick: t(oe) }
351
+ t(g)[t(p).ACTION_CANCEL],
352
+ { onClick: t(le) }
333
353
  ), {
334
- default: c(() => [
335
- b(" Cancel ")
354
+ default: u(() => [
355
+ T(" Cancel ")
336
356
  ]),
337
357
  _: 1
338
358
  }, 16, ["onClick"]),
339
- n(t(L), s({
359
+ i(t(L), y({
340
360
  ref_key: "apply",
341
- ref: ae,
361
+ ref: de,
342
362
  "data-testid": "mutli-apply",
343
363
  size: "small",
344
364
  class: "apply-button"
345
- }, t(f)[t(y).ACTION_APPLY], { onClick: t(le) }), {
346
- default: c(() => [
347
- b(" Apply ")
365
+ }, t(g)[t(p).ACTION_APPLY], { onClick: t(ie) }), {
366
+ default: u(() => [
367
+ T(" Apply ")
348
368
  ]),
349
369
  _: 1
350
370
  }, 16, ["onClick"])
351
371
  ])
352
- ])) : r("", !0)
353
- ], 34)) : r("", !0)
354
- ], 6)) : r("", !0)
372
+ ])) : a("", !0)
373
+ ], 34)) : a("", !0)
374
+ ], 6)) : a("", !0)
355
375
  ]),
356
376
  _: 3
357
377
  })
358
378
  ]),
359
- default: c(() => [
379
+ default: u(() => [
360
380
  m("div", {
361
381
  class: O(["button__container", {
362
- "button__container--open": !!t(u),
382
+ "button__container--open": !!t(s),
363
383
  [`button__container--${e.size}`]: !0,
364
384
  "button__container--disabled": e.disabled
365
385
  }])
@@ -368,23 +388,23 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
368
388
  ref_key: "buttonRef",
369
389
  ref: R
370
390
  }, [
371
- g(p.$slots, "dropdown-trigger", {
391
+ f(c.$slots, "dropdown-trigger", {
372
392
  buttonTriggerProps: {
373
- open: t(u),
393
+ open: t(s),
374
394
  disabled: e.disabled,
375
- label: t(te) || e.placeholder,
376
- onClick: () => t(v)()
395
+ label: t(oe) || e.placeholder,
396
+ onClick: () => t(I)()
377
397
  },
378
398
  defaultTriggerProps: {
379
399
  placeholder: e.placeholder,
380
- open: t(u),
400
+ open: t(s),
381
401
  label: e.triggerLabel,
382
402
  showFeedbackIcon: e.triggerFeedbackShowIcon,
383
403
  mandatory: e.mandatory,
384
404
  testId: e.testId,
385
405
  multi: e.multi,
386
406
  disabled: e.disabled,
387
- selectedOption: e.multi ? t(E) : t(k),
407
+ selectedOption: e.multi ? t(E) : t(h),
388
408
  displayValue: e.displayValue,
389
409
  options: e.options,
390
410
  optionNameKey: e.optionNameKey,
@@ -401,21 +421,21 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
401
421
  size: e.size,
402
422
  showAllSelectedText: e.triggerShowAllSelectedText,
403
423
  allSelected: t(K),
404
- onKeydown: t(B),
405
- onClick: G
424
+ onKeydown: t(N),
425
+ onClick: H
406
426
  }
407
427
  }, () => [
408
- t($) ? (i(), d("div", Be, [
409
- (i(), X(ke(t($)), {
428
+ t($) ? (n(), r("div", Ne, [
429
+ (n(), X(he(t($)), {
410
430
  placeholder: e.placeholder,
411
- open: t(u),
431
+ open: t(s),
412
432
  label: e.triggerLabel,
413
433
  "show-feedback-icon": e.triggerFeedbackShowIcon,
414
434
  mandatory: e.mandatory,
415
435
  "test-id": e.testId,
416
436
  multi: e.multi,
417
437
  disabled: e.disabled,
418
- "selected-option": e.multi ? t(E) : t(k),
438
+ "selected-option": e.multi ? t(E) : t(h),
419
439
  "display-value": e.displayValue,
420
440
  options: e.options,
421
441
  "option-name-key": e.optionNameKey,
@@ -432,48 +452,48 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
432
452
  size: e.size,
433
453
  "show-all-selected-text": e.triggerShowAllSelectedText,
434
454
  "all-selected": t(K),
435
- onKeydown: t(B),
436
- onClick: G,
437
- onCopyToClipboard: l[0] || (l[0] = (o) => F("copyToClipboard"))
455
+ onKeydown: t(N),
456
+ onClick: H,
457
+ onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
438
458
  }, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
439
- ])) : r("", !0),
440
- e.predefinedTrigger === t(T).ICON_BUTTON ? (i(), d("div", Ve, [
441
- n(t(Ie), {
442
- onClick: l[1] || (l[1] = (o) => t(v)())
459
+ ])) : a("", !0),
460
+ e.predefinedTrigger === t(k).ICON_BUTTON ? (n(), r("div", Ve, [
461
+ i(t(we), {
462
+ onClick: l[1] || (l[1] = (o) => t(I)())
443
463
  })
444
- ])) : r("", !0),
445
- e.predefinedTrigger === t(T).CHIP ? (i(), d("div", xe, [
446
- n(t(he), {
447
- open: t(u),
464
+ ])) : a("", !0),
465
+ e.predefinedTrigger === t(k).CHIP ? (n(), r("div", xe, [
466
+ i(t(Ie), {
467
+ open: t(s),
448
468
  label: e.placeholder,
449
469
  "test-id": e.testId,
450
470
  options: e.options,
451
- "selected-option": e.multi ? t(E) : t(k),
471
+ "selected-option": e.multi ? t(E) : t(h),
452
472
  "display-value": e.displayValue,
453
473
  multi: e.multi,
454
474
  "all-selected": t(K),
455
- onClick: l[2] || (l[2] = (o) => t(v)()),
475
+ onClick: l[2] || (l[2] = (o) => t(I)()),
456
476
  onClear: l[3] || (l[3] = (o) => t(z)())
457
477
  }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
458
- ])) : r("", !0)
478
+ ])) : a("", !0)
459
479
  ], !0)
460
480
  ], 512)
461
481
  ], 2)
462
482
  ]),
463
483
  _: 3
464
484
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
465
- e.triggerFeedbackText ? (i(), X(Oe, {
485
+ e.triggerFeedbackText ? (n(), X(Oe, {
466
486
  key: 0,
467
487
  text: e.triggerFeedbackText,
468
488
  variant: e.triggerFeedbackVariant,
469
489
  "show-icon": e.triggerFeedbackShowIcon,
470
490
  "test-id": e.testId,
471
491
  class: "dropdown-field-help-text"
472
- }, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
492
+ }, null, 8, ["text", "variant", "show-icon", "test-id"])) : a("", !0)
473
493
  ])
474
- ], 16, Fe));
494
+ ], 16, Be));
475
495
  }
476
496
  });
477
497
  export {
478
- pt as default
498
+ Tt as default
479
499
  };