@ironsource/shared-ui 1.4.2-test.14 → 1.4.2-test.16
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/IncludeExcludeOptionDraggable.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 +19 -19
- 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 +34 -37
- 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,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> = {
|
|
@@ -4,13 +4,12 @@ import AppIcon from '../appIcon/AppIcon.vue.js';
|
|
|
4
4
|
import { useSearch } from '../../composables/useSearch.vue.js';
|
|
5
5
|
import IncludeExclude from './IncludeExclude.vue.js';
|
|
6
6
|
import IncludeExcludeOption from './IncludeExcludeOption.vue.js';
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
import './
|
|
10
|
-
/* empty css
|
|
11
|
-
|
|
7
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
8
|
+
/* empty css *//* empty css */import 'floating-vue';
|
|
9
|
+
/* empty css *//* empty css */import IncludeExcludeAppTrigger from './IncludeExcludeAppTrigger.vue.js';
|
|
10
|
+
/* empty css *//* empty css *//* empty css */
|
|
12
11
|
import "../../IncludeExcludeAppHeader.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
13
|
-
const _sfc_main = defineComponent({
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
13
|
__name: "IncludeExcludeAppHeader",
|
|
15
14
|
props: {
|
|
16
15
|
imgProps: { default: void 0 },
|
|
@@ -22,9 +21,9 @@ const _sfc_main = defineComponent({
|
|
|
22
21
|
keyField: { default: "appKey" },
|
|
23
22
|
subTitleKey: { default: "appKey" },
|
|
24
23
|
searchAttribute: { default: "name" },
|
|
25
|
-
applications:
|
|
24
|
+
applications: null,
|
|
26
25
|
titleText: { default: "Application" },
|
|
27
|
-
modelValue:
|
|
26
|
+
modelValue: null,
|
|
28
27
|
distanceOffset: { default: 4 },
|
|
29
28
|
skiddingOffset: { default: 4 },
|
|
30
29
|
isLoading: { type: Boolean, default: false }
|
|
@@ -37,22 +36,22 @@ const _sfc_main = defineComponent({
|
|
|
37
36
|
return openBlock(), createBlock(unref(IncludeExclude), mergeProps(_ctx.$attrs, {
|
|
38
37
|
modelValue: selectedOptionRef.value,
|
|
39
38
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedOptionRef.value = $event),
|
|
40
|
-
loading:
|
|
41
|
-
"distance-offset":
|
|
42
|
-
"skidding-offset":
|
|
43
|
-
"title-text":
|
|
39
|
+
loading: __props.isLoading,
|
|
40
|
+
"distance-offset": __props.distanceOffset,
|
|
41
|
+
"skidding-offset": __props.skiddingOffset,
|
|
42
|
+
"title-text": __props.titleText,
|
|
44
43
|
"is-on-top": true,
|
|
45
|
-
options:
|
|
46
|
-
"has-subtitle":
|
|
47
|
-
"search-placeholder":
|
|
44
|
+
options: __props.applications,
|
|
45
|
+
"has-subtitle": __props.showSubTitle,
|
|
46
|
+
"search-placeholder": __props.searchPlaceholder,
|
|
48
47
|
"on-search": unref(search),
|
|
49
|
-
"key-field":
|
|
48
|
+
"key-field": __props.keyField
|
|
50
49
|
}), {
|
|
51
50
|
trigger: withCtx(() => [
|
|
52
51
|
createVNode(unref(IncludeExcludeAppTrigger), {
|
|
53
52
|
selected: selectedOptionRef.value,
|
|
54
|
-
options:
|
|
55
|
-
loading:
|
|
53
|
+
options: __props.applications,
|
|
54
|
+
loading: __props.isLoading
|
|
56
55
|
}, null, 8, ["selected", "options", "loading"])
|
|
57
56
|
]),
|
|
58
57
|
option: withCtx(({ option, showCheckbox }) => [
|
|
@@ -60,12 +59,12 @@ const _sfc_main = defineComponent({
|
|
|
60
59
|
option,
|
|
61
60
|
"show-checkbox": showCheckbox,
|
|
62
61
|
"title-text": option?.name,
|
|
63
|
-
subtitle:
|
|
62
|
+
subtitle: __props.showSubTitle ? option[__props.subTitleKey] : ""
|
|
64
63
|
}, createSlots({
|
|
65
64
|
image: withCtx(() => [
|
|
66
|
-
createVNode(unref(AppIcon), mergeProps(
|
|
65
|
+
createVNode(unref(AppIcon), mergeProps(__props.imgProps, {
|
|
67
66
|
src: option.icon,
|
|
68
|
-
size:
|
|
67
|
+
size: __props.showSubTitle ? "lg" : "md"
|
|
69
68
|
}), null, 16, ["src", "size"])
|
|
70
69
|
]),
|
|
71
70
|
default: withCtx(() => [
|
|
@@ -73,7 +72,7 @@ const _sfc_main = defineComponent({
|
|
|
73
72
|
]),
|
|
74
73
|
_: 2
|
|
75
74
|
}, [
|
|
76
|
-
|
|
75
|
+
__props.showIcon ? {
|
|
77
76
|
name: "icon-start",
|
|
78
77
|
fn: withCtx(() => [
|
|
79
78
|
createVNode(unref(Icon), {
|
|
@@ -89,18 +88,18 @@ const _sfc_main = defineComponent({
|
|
|
89
88
|
"show-checkbox": false,
|
|
90
89
|
clearable: true,
|
|
91
90
|
option,
|
|
92
|
-
subtitle:
|
|
91
|
+
subtitle: __props.showSubTitle ? option[__props.subTitleKey] : "",
|
|
93
92
|
"title-text": option?.name
|
|
94
93
|
}, createSlots({
|
|
95
94
|
image: withCtx(() => [
|
|
96
|
-
createVNode(unref(AppIcon), mergeProps(
|
|
95
|
+
createVNode(unref(AppIcon), mergeProps(__props.imgProps, {
|
|
97
96
|
src: option.icon,
|
|
98
|
-
size:
|
|
97
|
+
size: __props.showSubTitle ? "lg" : "md"
|
|
99
98
|
}), null, 16, ["src", "size"])
|
|
100
99
|
]),
|
|
101
100
|
_: 2
|
|
102
101
|
}, [
|
|
103
|
-
|
|
102
|
+
__props.showIcon ? {
|
|
104
103
|
name: "icon-start",
|
|
105
104
|
fn: withCtx(() => [
|
|
106
105
|
createVNode(unref(Icon), {
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
loading: boolean;
|
|
20
20
|
selected: Application[];
|
|
21
21
|
options: Application[];
|
|
22
|
-
}
|
|
22
|
+
}>;
|
|
23
23
|
export default _default;
|
|
24
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
25
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createElementVNode, createBlock,
|
|
2
|
-
import '../button/Button.vue.js';
|
|
3
|
-
import IconButton from '../button/IconButton.vue.js';
|
|
4
|
-
import '../button/ScrollButton.vue.js';
|
|
5
|
-
import '../typography/Heading.vue.js';
|
|
6
|
-
import Text from '../typography/Text.vue.js';
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
7
2
|
import Icon from '../icon/Icon.vue.js';
|
|
3
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
4
|
+
import Text from '../typography/Text.vue.js';
|
|
5
|
+
/* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
|
|
8
6
|
import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
|
|
9
|
-
import AppIcon from '../appIcon/AppIcon.vue.js';
|
|
10
|
-
/* empty css */
|
|
11
|
-
|
|
7
|
+
/* empty css */import AppIcon from '../appIcon/AppIcon.vue.js';
|
|
8
|
+
/* empty css */
|
|
12
9
|
import "../../IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
13
10
|
const _hoisted_1 = { class: "include-exclude-trigger-left-image" };
|
|
14
|
-
const
|
|
15
|
-
const _sfc_main = defineComponent({
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
12
|
__name: "IncludeExcludeAppTrigger",
|
|
17
13
|
props: {
|
|
18
14
|
selected: { default: null },
|
|
@@ -21,6 +17,7 @@ const _sfc_main = defineComponent({
|
|
|
21
17
|
},
|
|
22
18
|
setup(__props) {
|
|
23
19
|
const props = __props;
|
|
20
|
+
const allTitle = "All apps selected";
|
|
24
21
|
const title = computed(() => {
|
|
25
22
|
if (allMode.value) {
|
|
26
23
|
return allTitle;
|
|
@@ -84,15 +81,15 @@ const _sfc_main = defineComponent({
|
|
|
84
81
|
return (_ctx, _cache) => {
|
|
85
82
|
return openBlock(), createElementBlock("div", {
|
|
86
83
|
class: normalizeClass(["include-exclude-trigger-container", {
|
|
87
|
-
"include-exclude-trigger-container--with-icons": selectedSize
|
|
84
|
+
"include-exclude-trigger-container--with-icons": unref(selectedSize) > 0 || unref(allMode)
|
|
88
85
|
}])
|
|
89
86
|
}, [
|
|
90
87
|
renderSlot(_ctx.$slots, "left-image", {}, () => [
|
|
91
88
|
createElementVNode("div", _hoisted_1, [
|
|
92
|
-
appImage
|
|
89
|
+
unref(appImage) ? (openBlock(), createBlock(unref(AppIcon), {
|
|
93
90
|
key: 0,
|
|
94
91
|
size: "xl",
|
|
95
|
-
src: appImage
|
|
92
|
+
src: unref(appImage)
|
|
96
93
|
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(Icon), {
|
|
97
94
|
key: 1,
|
|
98
95
|
class: "trigger-icon",
|
|
@@ -102,21 +99,21 @@ const _sfc_main = defineComponent({
|
|
|
102
99
|
])
|
|
103
100
|
], true),
|
|
104
101
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
105
|
-
osIcon
|
|
102
|
+
unref(osIcon) ? (openBlock(), createBlock(unref(Icon), {
|
|
106
103
|
key: 0,
|
|
107
104
|
class: "include-exclude-trigger-left-icon",
|
|
108
|
-
name: osIcon
|
|
105
|
+
name: unref(osIcon),
|
|
109
106
|
"font-size": "md"
|
|
110
107
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
111
108
|
], true),
|
|
112
109
|
createElementVNode("div", {
|
|
113
110
|
class: normalizeClass(["include-exclude-trigger-middle-section", {
|
|
114
|
-
"include-exclude-trigger-middle-section--single": singleApp
|
|
115
|
-
"include-exclude-trigger-middle-section--loading":
|
|
111
|
+
"include-exclude-trigger-middle-section--single": unref(singleApp),
|
|
112
|
+
"include-exclude-trigger-middle-section--loading": __props.loading || !__props.options?.length
|
|
116
113
|
}])
|
|
117
114
|
}, [
|
|
118
115
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
119
|
-
createVNode(unref(_sfc_main$1), { text: title
|
|
116
|
+
createVNode(unref(_sfc_main$1), { text: unref(title) }, {
|
|
120
117
|
default: withCtx(() => [
|
|
121
118
|
createVNode(unref(Text), {
|
|
122
119
|
strong: "",
|
|
@@ -125,7 +122,7 @@ const _sfc_main = defineComponent({
|
|
|
125
122
|
size: "sm"
|
|
126
123
|
}, {
|
|
127
124
|
default: withCtx(() => [
|
|
128
|
-
createTextVNode(toDisplayString(title
|
|
125
|
+
createTextVNode(toDisplayString(unref(title)), 1)
|
|
129
126
|
]),
|
|
130
127
|
_: 1
|
|
131
128
|
})
|
|
@@ -135,7 +132,7 @@ const _sfc_main = defineComponent({
|
|
|
135
132
|
], true),
|
|
136
133
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
137
134
|
createElementVNode("div", null, [
|
|
138
|
-
createVNode(unref(_sfc_main$1), { text: description
|
|
135
|
+
createVNode(unref(_sfc_main$1), { text: unref(description) }, {
|
|
139
136
|
default: withCtx(() => [
|
|
140
137
|
createVNode(unref(Text), {
|
|
141
138
|
class: "include-exclude-trigger-description",
|
|
@@ -143,7 +140,7 @@ const _sfc_main = defineComponent({
|
|
|
143
140
|
"is-truncated": ""
|
|
144
141
|
}, {
|
|
145
142
|
default: withCtx(() => [
|
|
146
|
-
createTextVNode(toDisplayString(description
|
|
143
|
+
createTextVNode(toDisplayString(unref(description)), 1)
|
|
147
144
|
]),
|
|
148
145
|
_: 1
|
|
149
146
|
})
|
|
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
98
98
|
textKey: string;
|
|
99
99
|
showImage: boolean;
|
|
100
100
|
triggerTextFunc: (option: unknown) => string;
|
|
101
|
-
}
|
|
101
|
+
}>;
|
|
102
102
|
export default _default;
|
|
103
103
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
104
104
|
type __VLS_TypePropsToRuntimeProps<T> = {
|