@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.
- package/DollarInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appIcon/AppIcon.vue.d.ts +1 -1
- package/components/appIcon/AppIcon.vue.js +3 -3
- package/components/appIcon/index.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.js +22 -25
- package/components/appTrigger/index.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +14 -16
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +7 -7
- package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
- package/components/autocompleteDropdown/GroupOption.vue.js +3 -4
- package/components/autocompleteDropdown/index.d.ts +1 -1
- package/components/banner/Banner.vue.d.ts +1 -1
- package/components/banner/Banner.vue.js +4 -4
- package/components/banner/index.d.ts +1 -1
- package/components/button/Button.vue.d.ts +1 -1
- package/components/button/Button.vue.js +12 -12
- package/components/button/ButtonBase.vue.d.ts +1 -1
- package/components/button/ButtonBase.vue.js +11 -12
- package/components/button/IconButton.vue.d.ts +1 -1
- package/components/button/IconButton.vue.js +5 -5
- package/components/button/ScrollButton.vue.d.ts +1 -1
- package/components/button/ScrollButton.vue.js +8 -9
- package/components/button/index.d.ts +3 -3
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/Checkbox.vue.js +15 -16
- package/components/checkbox/index.d.ts +1 -1
- package/components/chip/Chip.vue.d.ts +1 -1
- package/components/chip/Chip.vue.js +5 -5
- package/components/chip/index.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.js +11 -11
- package/components/datePicker/DatePickerMonth.vue.d.ts +1 -1
- package/components/datePicker/DatePickerMonth.vue.js +4 -4
- package/components/datePicker/index.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.js +19 -20
- package/components/dateRange/DateRange.vue.d.ts +1 -1
- package/components/dateRange/DateRange.vue.js +26 -28
- package/components/dateRange/DateRangePicker.vue.d.ts +1 -1
- package/components/dateRange/index.d.ts +1 -1
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +16 -16
- package/components/dialog/index.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.js +57 -60
- package/components/dropdown/Label.vue.d.ts +1 -1
- package/components/dropdown/Label.vue.js +3 -4
- package/components/dropdown/Option.vue.d.ts +1 -1
- package/components/dropdown/Option.vue.js +16 -17
- package/components/dropdown/SearchInput.vue.d.ts +1 -1
- package/components/dropdown/SearchInput.vue.js +6 -6
- package/components/dropdown/index.d.ts +398 -1
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +19 -21
- package/components/emptyState/index.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.js +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +15 -17
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/FilterSearchInput.vue.d.ts +1 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +7 -7
- package/components/filtersPanel/FiltersPanel.vue.d.ts +1 -1
- package/components/filtersPanel/FiltersPanel.vue.js +8 -8
- package/components/filtersPanel/index.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.js +3 -3
- package/components/floatingToolbar/index.d.ts +1 -1
- package/components/icon/Icon.vue.d.ts +1 -1
- package/components/icon/Icon.vue.js +4 -4
- package/components/icon/index.d.ts +1 -1
- package/components/icon/storyComponents/Code.vue.d.ts +1 -1
- package/components/icon/storyComponents/IconWrapper.vue.d.ts +1 -1
- package/components/icon/storyComponents/Page.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +50 -52
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +25 -26
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +19 -22
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +40 -42
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.js +21 -22
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +17 -18
- package/components/includeExclude/index.d.ts +5 -5
- package/components/input/DollarInput.vue.d.ts +2 -2
- package/components/input/DollarInput.vue.js +3 -4
- package/components/input/Input.vue.d.ts +1 -1
- package/components/input/Input.vue.js +30 -33
- package/components/input/PasswordInput.vue.d.ts +2 -2
- package/components/input/PasswordInput.vue.js +3 -4
- package/components/input/PercentageInput.vue.d.ts +2 -2
- package/components/input/PercentageInput.vue.js +3 -4
- package/components/input/index.d.ts +2 -2
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/Menu.vue.js +4 -4
- package/components/menu/index.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.js +3 -4
- package/components/menuItem/index.d.ts +1 -1
- package/components/popover/Popover.vue.d.ts +1 -1
- package/components/popover/Popover.vue.js +7 -7
- package/components/popover/index.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.js +9 -9
- package/components/radioButton/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/RadioGroup.vue.js +3 -3
- package/components/radioButton/index.d.ts +2 -2
- package/components/radioButton/useRadio.d.ts +1 -1
- package/components/search/Search.vue.d.ts +1 -1
- package/components/search/Search.vue.js +15 -15
- package/components/search/index.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.js +2 -2
- package/components/skeleton/index.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +26 -26
- package/components/switch/Switch.vue.d.ts +1 -1
- package/components/switch/Switch.vue.js +9 -9
- package/components/switch/index.d.ts +1 -1
- package/components/table/Pagination.vue.d.ts +1 -1
- package/components/table/Table.vue.d.ts +1 -1
- package/components/table/Table.vue.js +37 -42
- package/components/table/TableHeaderSorter.vue.d.ts +1 -1
- package/components/table/TableHeaderSorter.vue.js +4 -4
- package/components/table/index.d.ts +1 -1
- package/components/table-cells/Editable.vue.d.ts +1 -1
- package/components/table-cells/Editable.vue.js +4 -4
- package/components/table-cells/index.d.ts +1 -1
- package/components/tabs/Tabs.vue.d.ts +1 -1
- package/components/tabs/Tabs.vue.js +15 -16
- package/components/tabs/index.d.ts +1 -1
- package/components/textArea/TextArea.vue.d.ts +1 -1
- package/components/textArea/TextArea.vue.js +12 -13
- package/components/textArea/index.d.ts +1 -1
- package/components/toggle/Toggle.vue.d.ts +1 -1
- package/components/toggle/Toggle.vue.js +16 -17
- package/components/toggle/index.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.js +7 -8
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/Tooltip.vue.js +10 -11
- package/components/tooltip/index.d.ts +1 -1
- package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
- package/components/typography/Heading.vue.d.ts +1 -1
- package/components/typography/Heading.vue.js +4 -4
- package/components/typography/Text.vue.d.ts +1 -1
- package/components/typography/Text.vue.js +3 -3
- package/components/typography/index.d.ts +2 -2
- package/index.vue.js +3 -3
- 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
|
|
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
|
|
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 ?
|
|
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
|
-
!
|
|
46
|
+
!__props.isOpen ? renderSlot(_ctx.$slots, "add", {
|
|
47
47
|
key: 0,
|
|
48
|
-
hiddenFilters: hiddenFilters
|
|
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<{}>>, {}
|
|
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: !
|
|
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
|
-
|
|
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),
|
|
@@ -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,
|
|
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":
|
|
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
|
|
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)
|
|
@@ -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 '
|
|
5
|
-
import '../
|
|
6
|
-
|
|
7
|
-
import '../
|
|
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 */
|
|
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
|
|
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
|
|
324
|
-
skidding:
|
|
321
|
+
distance: unref(popoverDistance) + __props.distanceOffset,
|
|
322
|
+
skidding: __props.skiddingOffset,
|
|
325
323
|
trigger: "managed",
|
|
326
|
-
open: unref(open) ||
|
|
327
|
-
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":
|
|
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
|
-
|
|
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(
|
|
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:
|
|
380
|
-
disabled:
|
|
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
|
|
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":
|
|
406
|
-
"include-exclude-list-header-loaded": !
|
|
403
|
+
"include-exclude-list-header-loading": __props.loading,
|
|
404
|
+
"include-exclude-list-header-loaded": !__props.loading
|
|
407
405
|
}])
|
|
408
406
|
}, [
|
|
409
|
-
!
|
|
407
|
+
!__props.loading ? (openBlock(), createBlock(unref(Checkbox), {
|
|
410
408
|
key: 0,
|
|
411
409
|
size: "sm",
|
|
412
|
-
"is-checked": isAllFilteredSelected
|
|
413
|
-
"is-indeterminate": selectedOption
|
|
414
|
-
disabled: !filteredOptions
|
|
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
|
-
|
|
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":
|
|
426
|
+
"include-exclude-list-draggable": __props.isDraggable
|
|
429
427
|
}
|
|
430
428
|
}), [
|
|
431
|
-
!
|
|
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
|
|
440
|
-
"aria-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
|
|
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
|
-
|
|
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":
|
|
482
|
-
"include-exclude-list-header-loaded": !
|
|
479
|
+
"include-exclude-list-selected-header-loading": __props.loading,
|
|
480
|
+
"include-exclude-list-header-loaded": !__props.loading
|
|
483
481
|
}])
|
|
484
482
|
}, [
|
|
485
|
-
|
|
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
|
-
!
|
|
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
|
|
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
|
|
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":
|
|
518
|
+
"include-exclude-list-draggable": __props.isDraggable
|
|
521
519
|
}]
|
|
522
520
|
}, unref(containerPropsSelected)), [
|
|
523
|
-
selectedOption
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
-
|
|
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> = {
|