@ironsource/shared-ui 1.4.2-test.14 → 1.4.2-test.15

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 (160) hide show
  1. package/DollarInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  2. package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  3. package/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  4. package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  5. package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  6. package/components/appIcon/AppIcon.vue.d.ts +1 -1
  7. package/components/appIcon/AppIcon.vue.js +3 -3
  8. package/components/appIcon/index.d.ts +1 -1
  9. package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
  10. package/components/appTrigger/AppTrigger.vue.js +22 -25
  11. package/components/appTrigger/index.d.ts +1 -1
  12. package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +1 -1
  13. package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +14 -16
  14. package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +1 -1
  15. package/components/autocompleteDropdown/AutocompleteInput.vue.js +7 -7
  16. package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
  17. package/components/autocompleteDropdown/GroupOption.vue.js +3 -4
  18. package/components/autocompleteDropdown/index.d.ts +1 -1
  19. package/components/banner/Banner.vue.d.ts +1 -1
  20. package/components/banner/Banner.vue.js +4 -4
  21. package/components/banner/index.d.ts +1 -1
  22. package/components/button/Button.vue.d.ts +1 -1
  23. package/components/button/Button.vue.js +12 -12
  24. package/components/button/ButtonBase.vue.d.ts +1 -1
  25. package/components/button/ButtonBase.vue.js +11 -12
  26. package/components/button/IconButton.vue.d.ts +1 -1
  27. package/components/button/IconButton.vue.js +5 -5
  28. package/components/button/ScrollButton.vue.d.ts +1 -1
  29. package/components/button/ScrollButton.vue.js +8 -9
  30. package/components/button/index.d.ts +3 -3
  31. package/components/checkbox/Checkbox.vue.d.ts +1 -1
  32. package/components/checkbox/Checkbox.vue.js +15 -16
  33. package/components/checkbox/index.d.ts +1 -1
  34. package/components/chip/Chip.vue.d.ts +1 -1
  35. package/components/chip/Chip.vue.js +5 -5
  36. package/components/chip/index.d.ts +1 -1
  37. package/components/datePicker/DatePicker.vue.d.ts +1 -1
  38. package/components/datePicker/DatePicker.vue.js +11 -11
  39. package/components/datePicker/DatePickerMonth.vue.d.ts +1 -1
  40. package/components/datePicker/DatePickerMonth.vue.js +4 -4
  41. package/components/datePicker/index.d.ts +1 -1
  42. package/components/dateRange/CalendarMonth.vue.d.ts +1 -1
  43. package/components/dateRange/CalendarMonth.vue.js +19 -20
  44. package/components/dateRange/DateRange.vue.d.ts +1 -1
  45. package/components/dateRange/DateRange.vue.js +26 -28
  46. package/components/dateRange/DateRangePicker.vue.d.ts +1 -1
  47. package/components/dateRange/index.d.ts +1 -1
  48. package/components/dialog/Dialog.vue.d.ts +1 -1
  49. package/components/dialog/Dialog.vue.js +16 -16
  50. package/components/dialog/index.d.ts +1 -1
  51. package/components/dropdown/Dropdown.vue.d.ts +1 -1
  52. package/components/dropdown/Dropdown.vue.js +57 -60
  53. package/components/dropdown/Label.vue.d.ts +1 -1
  54. package/components/dropdown/Label.vue.js +3 -4
  55. package/components/dropdown/Option.vue.d.ts +1 -1
  56. package/components/dropdown/Option.vue.js +16 -17
  57. package/components/dropdown/SearchInput.vue.d.ts +1 -1
  58. package/components/dropdown/SearchInput.vue.js +6 -6
  59. package/components/dropdown/index.d.ts +398 -1
  60. package/components/emptyState/EmptyState.vue.d.ts +1 -1
  61. package/components/emptyState/EmptyState.vue.js +19 -21
  62. package/components/emptyState/index.d.ts +1 -1
  63. package/components/filterDropdown/AddFilterButton.vue.d.ts +1 -1
  64. package/components/filterDropdown/AddFilterButton.vue.js +7 -7
  65. package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
  66. package/components/filterDropdown/FilterDropdown.vue.js +15 -17
  67. package/components/filterDropdown/index.d.ts +2 -2
  68. package/components/filtersPanel/FilterSearchInput.vue.d.ts +1 -1
  69. package/components/filtersPanel/FilterSearchInput.vue.js +7 -7
  70. package/components/filtersPanel/FiltersPanel.vue.d.ts +1 -1
  71. package/components/filtersPanel/FiltersPanel.vue.js +8 -8
  72. package/components/filtersPanel/index.d.ts +1 -1
  73. package/components/floatingToolbar/FloatingToolbar.vue.d.ts +1 -1
  74. package/components/floatingToolbar/FloatingToolbar.vue.js +3 -3
  75. package/components/floatingToolbar/index.d.ts +1 -1
  76. package/components/icon/Icon.vue.d.ts +1 -1
  77. package/components/icon/Icon.vue.js +4 -4
  78. package/components/icon/index.d.ts +1 -1
  79. package/components/icon/storyComponents/Code.vue.d.ts +1 -1
  80. package/components/icon/storyComponents/IconWrapper.vue.d.ts +1 -1
  81. package/components/icon/storyComponents/Page.vue.d.ts +1 -1
  82. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  83. package/components/includeExclude/IncludeExclude.vue.js +50 -52
  84. package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
  85. package/components/includeExclude/IncludeExcludeAppHeader.vue.js +25 -26
  86. package/components/includeExclude/IncludeExcludeAppTrigger.vue.d.ts +1 -1
  87. package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +19 -22
  88. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  89. package/components/includeExclude/IncludeExcludeChipFilter.vue.js +40 -42
  90. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  91. package/components/includeExclude/IncludeExcludeOption.vue.js +21 -22
  92. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  93. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +17 -18
  94. package/components/includeExclude/index.d.ts +5 -5
  95. package/components/input/DollarInput.vue.d.ts +2 -2
  96. package/components/input/DollarInput.vue.js +3 -4
  97. package/components/input/Input.vue.d.ts +1 -1
  98. package/components/input/Input.vue.js +30 -33
  99. package/components/input/PasswordInput.vue.d.ts +2 -2
  100. package/components/input/PasswordInput.vue.js +3 -4
  101. package/components/input/PercentageInput.vue.d.ts +2 -2
  102. package/components/input/PercentageInput.vue.js +3 -4
  103. package/components/input/index.d.ts +2 -2
  104. package/components/menu/Menu.vue.d.ts +1 -1
  105. package/components/menu/Menu.vue.js +4 -4
  106. package/components/menu/index.d.ts +1 -1
  107. package/components/menuItem/MenuItem.vue.d.ts +1 -1
  108. package/components/menuItem/MenuItem.vue.js +3 -4
  109. package/components/menuItem/index.d.ts +1 -1
  110. package/components/popover/Popover.vue.d.ts +1 -1
  111. package/components/popover/Popover.vue.js +7 -7
  112. package/components/popover/index.d.ts +1 -1
  113. package/components/radioButton/RadioButton.vue.d.ts +1 -1
  114. package/components/radioButton/RadioButton.vue.js +9 -9
  115. package/components/radioButton/RadioGroup.vue.d.ts +1 -1
  116. package/components/radioButton/RadioGroup.vue.js +3 -3
  117. package/components/radioButton/index.d.ts +2 -2
  118. package/components/radioButton/useRadio.d.ts +1 -1
  119. package/components/search/Search.vue.d.ts +1 -1
  120. package/components/search/Search.vue.js +15 -15
  121. package/components/search/index.d.ts +1 -1
  122. package/components/skeleton/Skeleton.vue.d.ts +1 -1
  123. package/components/skeleton/Skeleton.vue.js +2 -2
  124. package/components/skeleton/index.d.ts +1 -1
  125. package/components/snackbar/Snackbar.vue.d.ts +1 -1
  126. package/components/snackbar/Snackbar.vue.js +26 -26
  127. package/components/switch/Switch.vue.d.ts +1 -1
  128. package/components/switch/Switch.vue.js +9 -9
  129. package/components/switch/index.d.ts +1 -1
  130. package/components/table/Pagination.vue.d.ts +1 -1
  131. package/components/table/Table.vue.d.ts +1 -1
  132. package/components/table/Table.vue.js +37 -42
  133. package/components/table/TableHeaderSorter.vue.d.ts +1 -1
  134. package/components/table/TableHeaderSorter.vue.js +4 -4
  135. package/components/table/index.d.ts +1 -1
  136. package/components/table-cells/Editable.vue.d.ts +1 -1
  137. package/components/table-cells/Editable.vue.js +4 -4
  138. package/components/table-cells/index.d.ts +1 -1
  139. package/components/tabs/Tabs.vue.d.ts +1 -1
  140. package/components/tabs/Tabs.vue.js +15 -16
  141. package/components/tabs/index.d.ts +1 -1
  142. package/components/textArea/TextArea.vue.d.ts +1 -1
  143. package/components/textArea/TextArea.vue.js +12 -13
  144. package/components/textArea/index.d.ts +1 -1
  145. package/components/toggle/Toggle.vue.d.ts +1 -1
  146. package/components/toggle/Toggle.vue.js +16 -17
  147. package/components/toggle/index.d.ts +1 -1
  148. package/components/tooltip/TextWithTitleContent.vue.d.ts +1 -1
  149. package/components/tooltip/TextWithTitleContent.vue.js +7 -8
  150. package/components/tooltip/Tooltip.vue.d.ts +1 -1
  151. package/components/tooltip/Tooltip.vue.js +10 -11
  152. package/components/tooltip/index.d.ts +1 -1
  153. package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
  154. package/components/typography/Heading.vue.d.ts +1 -1
  155. package/components/typography/Heading.vue.js +4 -4
  156. package/components/typography/Text.vue.d.ts +1 -1
  157. package/components/typography/Text.vue.js +3 -3
  158. package/components/typography/index.d.ts +2 -2
  159. package/index.vue.js +3 -3
  160. package/package.json +3 -3
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode } from 'vue';
2
- import '../dropdown/Dropdown.vue.js';
3
- import '../dropdown/Option.vue.js';
4
- import '../dropdown/Label.vue.js';
5
- import SearchInput from '../dropdown/SearchInput.vue.js';
6
2
  import Icon from '../icon/Icon.vue.js';
7
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
8
-
3
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
4
+ /* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import 'floating-vue';
5
+ /* empty css *//* empty css *//* empty css */import '@vue/shared';
6
+ /* empty css *//* empty css */import '@vueuse/core';
7
+ /* empty css *//* empty css *//* empty css */import SearchInput from '../dropdown/SearchInput.vue.js';
8
+ /* empty css */
9
9
  import "../../FilterSearchInput.vue_vue_type_style_index_0_scoped_true_lang.css";
10
10
  const _hoisted_1 = {
11
11
  class: "search-container",
@@ -13,7 +13,7 @@ const _hoisted_1 = {
13
13
  };
14
14
  const _hoisted_2 = { class: "search" };
15
15
  const _hoisted_3 = ["placeholder", "disabled", "onInput"];
16
- const _sfc_main = defineComponent({
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  __name: "FilterSearchInput",
18
18
  setup(__props) {
19
19
  const element = ref(null);
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
15
  isOpen: boolean;
16
16
  }>>>, {
17
17
  isOpen: boolean;
18
- }, {}>;
18
+ }>;
19
19
  export default _default;
20
20
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
21
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,14 +1,14 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode } from 'vue';
2
2
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
3
 
4
4
  import "../../FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css";
5
5
  const _hoisted_1 = { class: "filter-panel" };
6
- const _sfc_main = defineComponent({
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "FiltersPanel",
8
8
  props: {
9
- filters: {},
9
+ filters: null,
10
10
  isOpen: { type: Boolean, default: false },
11
- selected: {},
11
+ selected: null,
12
12
  isMultiSelect: { type: Boolean }
13
13
  },
14
14
  setup(__props) {
@@ -30,22 +30,22 @@ const _sfc_main = defineComponent({
30
30
  );
31
31
  return (_ctx, _cache) => {
32
32
  return openBlock(), createElementBlock("div", _hoisted_1, [
33
- (openBlock(true), createElementBlock(Fragment, null, renderList(sortedFilters.value, (filter) => {
33
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortedFilters), (filter) => {
34
34
  return openBlock(), createElementBlock("div", {
35
35
  key: filter.id,
36
36
  class: normalizeClass(["filter-button", {
37
37
  [`always-first`]: !!filter.alwaysFirst,
38
38
  hidden: filter.hidden,
39
- selected: props.isMultiSelect ? _ctx.selected[filter.id].length > 0 : !!_ctx.selected[filter.id],
39
+ selected: props.isMultiSelect ? __props.selected[filter.id].length > 0 : !!__props.selected[filter.id],
40
40
  exposed: !filter.hidden
41
41
  }])
42
42
  }, [
43
43
  renderSlot(_ctx.$slots, filter.id, normalizeProps(guardReactiveProps(filter)), void 0, true)
44
44
  ], 2);
45
45
  }), 128)),
46
- !_ctx.isOpen ? renderSlot(_ctx.$slots, "add", {
46
+ !__props.isOpen ? renderSlot(_ctx.$slots, "add", {
47
47
  key: 0,
48
- hiddenFilters: hiddenFilters.value
48
+ hiddenFilters: unref(hiddenFilters)
49
49
  }, void 0, true) : createCommentVNode("", true)
50
50
  ]);
51
51
  };
@@ -2,7 +2,7 @@ import { default as FiltersPanel } from './FiltersPanel.vue';
2
2
  import { default as FilterSearchInput } from './FilterSearchInput.vue';
3
3
  import { useHiddenFilter } from './useHiddenFilter';
4
4
  import { Filter } from './Filter';
5
- declare const FilterPanelTypes: () => (import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}> | (({ filters }: {
5
+ declare const FilterPanelTypes: () => (import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (({ filters }: {
6
6
  filters: Filter[];
7
7
  }) => {
8
8
  onClear: (filter: any) => void;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  }, {
18
18
  appendToBody: boolean;
19
19
  count: number;
20
- }, {}>;
20
+ }>;
21
21
  export default _default;
22
22
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
23
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -22,7 +22,7 @@ const _hoisted_4 = {
22
22
  key: 2,
23
23
  class: "actions"
24
24
  };
25
- const _sfc_main = defineComponent({
25
+ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  __name: "FloatingToolbar",
27
27
  props: {
28
28
  modelValue: { type: Boolean },
@@ -36,12 +36,12 @@ const _sfc_main = defineComponent({
36
36
  return (_ctx, _cache) => {
37
37
  return openBlock(), createBlock(Teleport, {
38
38
  to: "body",
39
- disabled: !_ctx.appendToBody
39
+ disabled: !__props.appendToBody
40
40
  }, [
41
41
  createVNode(Transition, { name: "floating-toolbar" }, {
42
42
  default: withCtx(() => [
43
43
  unref(data) ? (openBlock(), createElementBlock("div", _hoisted_1, [
44
- _ctx.count ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.count), 1)) : createCommentVNode("", true),
44
+ __props.count ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(__props.count), 1)) : createCommentVNode("", true),
45
45
  _ctx.$slots.label ? (openBlock(), createElementBlock("div", _hoisted_3, [
46
46
  renderSlot(_ctx.$slots, "label", {}, void 0, true)
47
47
  ])) : createCommentVNode("", true),
@@ -33,6 +33,6 @@ declare const FloatingToolbarTypes: () => import("vue").DefineComponent<{
33
33
  }, {
34
34
  appendToBody: boolean;
35
35
  count: number;
36
- }, {}>[];
36
+ }>[];
37
37
  export { default as FloatingToolbar } from './FloatingToolbar.vue';
38
38
  export { FloatingToolbarTypes };
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
14
  }>>>, {
15
15
  name: keyof typeof icons | string;
16
16
  fontSize: string | 'sm' | 'md' | 'lg';
17
- }, {}>;
17
+ }>;
18
18
  export default _default;
19
19
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
20
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,4 +1,4 @@
1
- import { defineComponent, useCssVars, useSlots, computed, defineAsyncComponent, openBlock, createElementBlock, normalizeClass, createBlock, unref, normalizeProps, mergeProps, createCommentVNode, renderSlot } from 'vue';
1
+ import { defineComponent, useCssVars, useSlots, computed, defineAsyncComponent, openBlock, createElementBlock, normalizeClass, unref, createBlock, normalizeProps, mergeProps, createCommentVNode, renderSlot } from 'vue';
2
2
  import { icons } from './icons/index.vue.js';
3
3
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
4
4
 
@@ -232,7 +232,7 @@ function __variableDynamicImportRuntime0__(path) {
232
232
  })
233
233
  }
234
234
  }
235
- const _sfc_main = defineComponent({
235
+ const _sfc_main = /* @__PURE__ */ defineComponent({
236
236
  __name: "Icon",
237
237
  props: {
238
238
  name: { default: null },
@@ -241,7 +241,7 @@ const _sfc_main = defineComponent({
241
241
  setup(__props) {
242
242
  const props = __props;
243
243
  useCssVars((_ctx) => ({
244
- "de11e2fa": _ctx.fontSize
244
+ "de11e2fa": __props.fontSize
245
245
  }));
246
246
  const slots = useSlots();
247
247
  const iconData = computed(() => {
@@ -270,7 +270,7 @@ const _sfc_main = defineComponent({
270
270
  });
271
271
  return (_ctx, _cache) => {
272
272
  return openBlock(), createElementBlock("div", {
273
- class: normalizeClass(["icon", cls.value])
273
+ class: normalizeClass(["icon", unref(cls)])
274
274
  }, [
275
275
  !_ctx.$slots.default ? (openBlock(), createBlock(unref(IconComponent), normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), null, 16)) : createCommentVNode("", true),
276
276
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -682,7 +682,7 @@ declare const IconTypes: () => ({
682
682
  }>>, {
683
683
  name: string;
684
684
  fontSize: string;
685
- }, {}>)[];
685
+ }>)[];
686
686
  export type IconName = keyof typeof icons;
687
687
  export { default as Icon } from './Icon.vue';
688
688
  export * from './icons';
@@ -2,7 +2,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
2
2
  code: string;
3
3
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  code: string;
5
- }>>>, {}, {}>;
5
+ }>>>, {}>;
6
6
  export default _default;
7
7
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
8
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -2,7 +2,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
2
2
  name: string;
3
3
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  name: string;
5
- }>>>, {}, {}>;
5
+ }>>>, {}>;
6
6
  export default _default;
7
7
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
8
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -2,7 +2,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
2
2
  icons: Record<string, unknown>;
3
3
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  icons: Record<string, unknown>;
5
- }>>>, {}, {}>;
5
+ }>>>, {}>;
6
6
  export default _default;
7
7
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
8
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
104
104
  skiddingOffset: number;
105
105
  isDraggable: boolean;
106
106
  draggableArgs: object;
107
- }, {}>;
107
+ }>;
108
108
  export default _default;
109
109
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
110
110
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,11 +1,10 @@
1
1
  import { defineComponent, computed, ref, watch, provide, openBlock, createBlock, unref, withCtx, createElementVNode, renderSlot, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createVNode, Transition, createElementBlock, mergeProps, Fragment, renderList, toRaw, isRef, nextTick } from 'vue';
2
2
  import _sfc_main$1 from '../popover/Popover.vue.js';
3
3
  import Button from '../button/Button.vue.js';
4
- import '../button/IconButton.vue.js';
5
- import '../button/ScrollButton.vue.js';
6
- import Search from '../search/Search.vue.js';
7
- import '../typography/Heading.vue.js';
8
- import Text from '../typography/Text.vue.js';
4
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
+ /* empty css */import Text from '../typography/Text.vue.js';
6
+ /* empty css *//* empty css *//* empty css */import 'floating-vue';
7
+ /* empty css *//* empty css */import Search from '../search/Search.vue.js';
9
8
  import Checkbox from '../checkbox/Checkbox.vue.js';
10
9
  import Skeleton from '../skeleton/Skeleton.vue.js';
11
10
  import EmptyState from '../emptyState/EmptyState.vue.js';
@@ -13,8 +12,7 @@ import { useToggle } from '../../composables/useToggle.vue.js';
13
12
  import { IncludeExcludeContext } from './IncludeExcludeContext.vue.js';
14
13
  import { onClickOutside, useClamp, useVirtualList } from '@vueuse/core';
15
14
  import draggable from 'vuedraggable';
16
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
17
-
15
+ /* empty css */
18
16
  import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css";
19
17
  const _hoisted_1 = { class: "include-exclude-header" };
20
18
  const _hoisted_2 = { class: "include-exclude-header-left-section" };
@@ -49,21 +47,16 @@ const _hoisted_18 = { key: 2 };
49
47
  const _hoisted_19 = { class: "loader-wrapper" };
50
48
  const _hoisted_20 = { class: "include-exclude-footer" };
51
49
  const _hoisted_21 = { class: "include-exclude-footer-buttons" };
52
- const scrollPrerenderedItems = 50;
53
- const skeletonItems = 3;
54
- const boxDistanceBottom = 6;
55
- const OPTION_HEIGHT = 32;
56
- const OPTION_WITH_SUBTITLE_HEIGHT = 48;
57
- const _sfc_main = defineComponent({
50
+ const _sfc_main = /* @__PURE__ */ defineComponent({
58
51
  __name: "IncludeExclude",
59
52
  props: {
60
53
  titleText: { default: "" },
61
54
  loading: { type: Boolean, default: false },
62
55
  disabled: { type: Boolean, default: false },
63
- modelValue: {},
56
+ modelValue: null,
64
57
  clearable: { type: Boolean },
65
58
  placement: { default: "bottom-start" },
66
- options: {},
59
+ options: null,
67
60
  autoFocus: { type: Boolean, default: true },
68
61
  onSearch: { type: Function, default: () => true },
69
62
  searchPlaceholder: { default: "Search" },
@@ -75,13 +68,18 @@ const _sfc_main = defineComponent({
75
68
  distanceOffset: { default: 0 },
76
69
  skiddingOffset: { default: 0 },
77
70
  hasSubtitle: { type: Boolean, default: false },
78
- keyField: {},
71
+ keyField: null,
79
72
  isDraggable: { type: Boolean, default: false },
80
73
  draggableArgs: { default: null }
81
74
  },
82
75
  emits: ["update:modelValue", "changeDragDrop"],
83
76
  setup(__props, { emit }) {
84
77
  const props = __props;
78
+ const scrollPrerenderedItems = 50;
79
+ const skeletonItems = 3;
80
+ const boxDistanceBottom = 6;
81
+ const OPTION_HEIGHT = 32;
82
+ const OPTION_WITH_SUBTITLE_HEIGHT = 48;
85
83
  const popoverDistance = computed(() => {
86
84
  const notTopDistance = props.placement?.includes("bottom") ? boxDistanceBottom : 0;
87
85
  return props.isOnTop ? -buttonRef.value?.getBoundingClientRect().height : notTopDistance;
@@ -320,11 +318,11 @@ const _sfc_main = defineComponent({
320
318
  };
321
319
  return (_ctx, _cache) => {
322
320
  return openBlock(), createBlock(unref(_sfc_main$1), {
323
- distance: popoverDistance.value + _ctx.distanceOffset,
324
- skidding: _ctx.skiddingOffset,
321
+ distance: unref(popoverDistance) + __props.distanceOffset,
322
+ skidding: __props.skiddingOffset,
325
323
  trigger: "managed",
326
- open: unref(open) || _ctx.alwayesOpen,
327
- placement: _ctx.placement
324
+ open: unref(open) || __props.alwayesOpen,
325
+ placement: __props.placement
328
326
  }, {
329
327
  trigger: withCtx(() => [
330
328
  createElementVNode("div", {
@@ -348,20 +346,20 @@ const _sfc_main = defineComponent({
348
346
  ref_key: "popoverWrapperRef",
349
347
  ref: popoverWrapperRef,
350
348
  class: normalizeClass(["include-exclude-content", {
351
- "include-exclude-content-draggable": _ctx.isDraggable
349
+ "include-exclude-content-draggable": __props.isDraggable
352
350
  }])
353
351
  }, [
354
352
  createElementVNode("div", _hoisted_1, [
355
353
  createElementVNode("div", _hoisted_2, [
356
354
  renderSlot(_ctx.$slots, "header-left-section", {}, () => [
357
- _ctx.titleText ? (openBlock(), createBlock(unref(Text), {
355
+ __props.titleText ? (openBlock(), createBlock(unref(Text), {
358
356
  key: 0,
359
357
  class: "include-exclude-header-left-section-title",
360
358
  size: "md",
361
359
  strong: ""
362
360
  }, {
363
361
  default: withCtx(() => [
364
- createTextVNode(toDisplayString(_ctx.titleText), 1)
362
+ createTextVNode(toDisplayString(__props.titleText), 1)
365
363
  ]),
366
364
  _: 1
367
365
  })) : createCommentVNode("", true)
@@ -376,8 +374,8 @@ const _sfc_main = defineComponent({
376
374
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => query.value = $event),
377
375
  class: "include-exclude-header-right-section-search-input",
378
376
  variant: "transparent",
379
- placeholder: _ctx.searchPlaceholder,
380
- disabled: _ctx.loading
377
+ placeholder: __props.searchPlaceholder,
378
+ disabled: __props.loading
381
379
  }, null, 8, ["modelValue", "placeholder", "disabled"])
382
380
  ], true)
383
381
  ])
@@ -388,7 +386,7 @@ const _sfc_main = defineComponent({
388
386
  mode: "out-in"
389
387
  }, {
390
388
  default: withCtx(() => [
391
- !filteredOptions.value?.length && !_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_5, [
389
+ !unref(filteredOptions)?.length && !__props.loading ? (openBlock(), createElementBlock("div", _hoisted_5, [
392
390
  renderSlot(_ctx.$slots, "no-result", {}, () => [
393
391
  createVNode(unref(EmptyState), {
394
392
  size: "lg",
@@ -402,20 +400,20 @@ const _sfc_main = defineComponent({
402
400
  createElementVNode("div", _hoisted_7, [
403
401
  createElementVNode("div", {
404
402
  class: normalizeClass(["include-exclude-list-header", {
405
- "include-exclude-list-header-loading": _ctx.loading,
406
- "include-exclude-list-header-loaded": !_ctx.loading
403
+ "include-exclude-list-header-loading": __props.loading,
404
+ "include-exclude-list-header-loaded": !__props.loading
407
405
  }])
408
406
  }, [
409
- !_ctx.loading ? (openBlock(), createBlock(unref(Checkbox), {
407
+ !__props.loading ? (openBlock(), createBlock(unref(Checkbox), {
410
408
  key: 0,
411
409
  size: "sm",
412
- "is-checked": isAllFilteredSelected.value,
413
- "is-indeterminate": selectedOption.value?.length > 0 && !isAllFilteredSelected.value,
414
- disabled: !filteredOptions.value?.length,
410
+ "is-checked": unref(isAllFilteredSelected),
411
+ "is-indeterminate": unref(selectedOption)?.length > 0 && !unref(isAllFilteredSelected),
412
+ disabled: !unref(filteredOptions)?.length,
415
413
  label: "Select all",
416
414
  onClick: toggleSelectAll
417
415
  }, null, 8, ["is-checked", "is-indeterminate", "disabled"])) : createCommentVNode("", true),
418
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_8, [
416
+ __props.loading ? (openBlock(), createElementBlock("div", _hoisted_8, [
419
417
  createVNode(unref(Skeleton), {
420
418
  class: "dot-skeleton",
421
419
  round: ""
@@ -425,10 +423,10 @@ const _sfc_main = defineComponent({
425
423
  ], 2),
426
424
  createElementVNode("div", mergeProps({ class: "include-exclude-list" }, unref(containerProps), {
427
425
  class: {
428
- "include-exclude-list-draggable": _ctx.isDraggable
426
+ "include-exclude-list-draggable": __props.isDraggable
429
427
  }
430
428
  }), [
431
- !_ctx.loading ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperProps), {
429
+ !__props.loading ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperProps), {
432
430
  ref_key: "listRef",
433
431
  ref: listRef,
434
432
  tabindex: "1"
@@ -436,8 +434,8 @@ const _sfc_main = defineComponent({
436
434
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(virtualOptions), ({ data, index }) => {
437
435
  return openBlock(), createElementBlock("li", {
438
436
  key: index,
439
- "aria-selected": toRaw(selectedOption.value) === data,
440
- "aria-disabled": !!_ctx.disabled,
437
+ "aria-selected": toRaw(unref(selectedOption)) === data,
438
+ "aria-disabled": !!__props.disabled,
441
439
  onClick: () => onSelect(data)
442
440
  }, [
443
441
  data.groupOption ? (openBlock(), createElementBlock("div", {
@@ -451,13 +449,13 @@ const _sfc_main = defineComponent({
451
449
  key: 1,
452
450
  showCheckbox: true,
453
451
  option: data,
454
- selected: toRaw(selectedOption.value) === data,
452
+ selected: toRaw(unref(selectedOption)) === data,
455
453
  active: toRaw(unref(activeIndex)) === index
456
454
  }, void 0, true) : createCommentVNode("", true)
457
455
  ], 8, _hoisted_9);
458
456
  }), 128))
459
457
  ], 16)) : createCommentVNode("", true),
460
- _ctx.loading ? (openBlock(), createElementBlock("ul", _hoisted_11, [
458
+ __props.loading ? (openBlock(), createElementBlock("ul", _hoisted_11, [
461
459
  (openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (n) => {
462
460
  return createElementVNode("li", {
463
461
  key: n,
@@ -478,28 +476,28 @@ const _sfc_main = defineComponent({
478
476
  createElementVNode("div", _hoisted_13, [
479
477
  createElementVNode("div", {
480
478
  class: normalizeClass(["include-exclude-selected-header", {
481
- "include-exclude-list-selected-header-loading": _ctx.loading,
482
- "include-exclude-list-header-loaded": !_ctx.loading
479
+ "include-exclude-list-selected-header-loading": __props.loading,
480
+ "include-exclude-list-header-loaded": !__props.loading
483
481
  }])
484
482
  }, [
485
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_14, [
483
+ __props.loading ? (openBlock(), createElementBlock("div", _hoisted_14, [
486
484
  createVNode(unref(Skeleton), { round: "" })
487
485
  ])) : createCommentVNode("", true),
488
486
  createElementVNode("div", _hoisted_15, [
489
- !_ctx.loading ? (openBlock(), createBlock(unref(Text), {
487
+ !__props.loading ? (openBlock(), createBlock(unref(Text), {
490
488
  key: 0,
491
489
  class: "include-exclude-selected-header-left-selected",
492
490
  size: "sm"
493
491
  }, {
494
492
  default: withCtx(() => [
495
- createTextVNode(toDisplayString(selectedOption.value?.length) + " Selected", 1)
493
+ createTextVNode(toDisplayString(unref(selectedOption)?.length) + " Selected", 1)
496
494
  ]),
497
495
  _: 1
498
496
  })) : createCommentVNode("", true)
499
497
  ]),
500
498
  createElementVNode("div", _hoisted_16, [
501
499
  renderSlot(_ctx.$slots, "selected-header-right", {}, () => [
502
- selectedOption.value?.length && !_ctx.loading && _ctx.showClearAll ? (openBlock(), createBlock(unref(Button), {
500
+ unref(selectedOption)?.length && !__props.loading && __props.showClearAll ? (openBlock(), createBlock(unref(Button), {
503
501
  key: 0,
504
502
  variant: "link",
505
503
  theme: "third",
@@ -517,10 +515,10 @@ const _sfc_main = defineComponent({
517
515
  ], 2),
518
516
  createElementVNode("div", mergeProps({
519
517
  class: ["include-exclude-selected-list", {
520
- "include-exclude-list-draggable": _ctx.isDraggable
518
+ "include-exclude-list-draggable": __props.isDraggable
521
519
  }]
522
520
  }, unref(containerPropsSelected)), [
523
- selectedOption.value?.length && !_ctx.loading && !_ctx.isDraggable ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperPropsSelected), {
521
+ unref(selectedOption)?.length && !__props.loading && !__props.isDraggable ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperPropsSelected), {
524
522
  ref: "SelectedlistRef",
525
523
  tabindex: "2"
526
524
  }), [
@@ -528,25 +526,25 @@ const _sfc_main = defineComponent({
528
526
  return openBlock(), createElementBlock("li", { key: index }, [
529
527
  renderSlot(_ctx.$slots, "selected_option", {
530
528
  option: data,
531
- selected: toRaw(selectedOption.value) === data,
529
+ selected: toRaw(unref(selectedOption)) === data,
532
530
  active: toRaw(unref(activeIndex)) === index
533
531
  }, void 0, true)
534
532
  ]);
535
533
  }), 128))
536
534
  ], 16)) : createCommentVNode("", true),
537
- selectedOption.value?.length && !_ctx.loading && _ctx.isDraggable ? (openBlock(), createElementBlock("ul", mergeProps({ key: 1 }, unref(wrapperPropsSelected), {
535
+ unref(selectedOption)?.length && !__props.loading && __props.isDraggable ? (openBlock(), createElementBlock("ul", mergeProps({ key: 1 }, unref(wrapperPropsSelected), {
538
536
  ref: "SelectedlistRef",
539
537
  tabindex: "2"
540
538
  }), [
541
539
  createVNode(unref(draggable), mergeProps({
542
540
  modelValue: unref(virtualOptionsSelected),
543
541
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(virtualOptionsSelected) ? virtualOptionsSelected.value = $event : null)
544
- }, _ctx.draggableArgs, { onChange: onChangeDragDrop }), {
542
+ }, __props.draggableArgs, { onChange: onChangeDragDrop }), {
545
543
  item: withCtx(({ element }) => [
546
544
  createElementVNode("div", _hoisted_17, [
547
545
  renderSlot(_ctx.$slots, "selected_option_draggable", {
548
546
  option: element.data,
549
- selected: toRaw(selectedOption.value) === element.data,
547
+ selected: toRaw(unref(selectedOption)) === element.data,
550
548
  active: toRaw(unref(activeIndex)) === element.data.draggableItemKey
551
549
  }, void 0, true)
552
550
  ])
@@ -554,7 +552,7 @@ const _sfc_main = defineComponent({
554
552
  _: 3
555
553
  }, 16, ["modelValue"])
556
554
  ], 16)) : createCommentVNode("", true),
557
- _ctx.loading ? (openBlock(), createElementBlock("ul", _hoisted_18, [
555
+ __props.loading ? (openBlock(), createElementBlock("ul", _hoisted_18, [
558
556
  (openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (n) => {
559
557
  return createElementVNode("li", {
560
558
  key: n,
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
70
70
  imgProps: any;
71
71
  optionProps: any;
72
72
  isLoading: boolean;
73
- }, {}>;
73
+ }>;
74
74
  export default _default;
75
75
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
76
76
  type __VLS_TypePropsToRuntimeProps<T> = {