@ironsource/shared-ui 2.1.12-test.98 → 2.1.12
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/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +21 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +130 -114
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +43 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +15 -0
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +173 -156
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +39 -35
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +26 -26
- package/components/chart/colorPalette.d.ts +2 -1
- package/components/chart/colorPalette.js +47 -33
- package/components/chart/composables/useColorsMap.d.ts +3 -1
- package/components/chart/composables/useColorsMap.js +32 -30
- package/components/chart/consts.d.ts +5 -1
- package/components/chart/consts.js +30 -26
- package/components/chart/index.d.ts +77 -1
- package/components/chart/mockData.d.ts +15 -0
- package/components/chart/types.d.ts +3 -1
- package/components/chart/types.js +5 -5
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +20 -14
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dateRange/common/DateRange.common.js +60 -60
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +157 -157
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +81 -3
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/components/link/Link.vue.d.ts +95 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +65 -0
- package/components/link/index.d.ts +296 -0
- package/components/link/index.js +6 -0
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +5 -5
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +12 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +111 -113
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +77 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +12 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +273 -268
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +84 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
- package/components/table/v4/index.d.ts +646 -332
- package/components/table/v4/index.js +11 -5
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +2675 -1649
- package/index.js +137 -121
- package/package.json +18 -1
- package/testids/index.d.ts +47 -1
- package/testids/index.js +40 -32
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css"; import { defineComponent as H, computed as b, ref as r, watch as g, onMounted as J, resolveComponent as X, openBlock as B, createBlock as Y, unref as p, createSlots as Z, withCtx as f, createVNode as y, mergeProps as _, createElementVNode as ee, isRef as te, normalizeProps as F, guardReactiveProps as I, createElementBlock as le, createTextVNode as oe, toDisplayString as ne, createCommentVNode as ae, renderSlot as ie } from "vue";
|
|
2
|
+
import U from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import ue from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
7
|
import "./ButtonDropdownTrigger.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import se from "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
10
|
import "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
12
|
import re from "../../search/v4/SearchV4.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
const
|
|
13
|
+
import de from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { useDebounceFn as ce } from "@vueuse/core";
|
|
15
|
+
const pe = { class: "conditional-container" }, ve = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
|
-
}, Ne = /* @__PURE__ */
|
|
18
|
+
}, Ne = /* @__PURE__ */ H({
|
|
19
19
|
__name: "ConditionalDropdown",
|
|
20
20
|
props: {
|
|
21
21
|
selectedCondition: null,
|
|
@@ -42,225 +42,232 @@ const ce = { class: "conditional-container" }, pe = {
|
|
|
42
42
|
triggerShownValuesCount: { default: 1 }
|
|
43
43
|
},
|
|
44
44
|
emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
|
|
45
|
-
setup(
|
|
46
|
-
const e =
|
|
45
|
+
setup(a, { emit: h }) {
|
|
46
|
+
const e = a, S = b({
|
|
47
47
|
get: () => e.appliedSelections,
|
|
48
|
-
set: (
|
|
49
|
-
|
|
48
|
+
set: (t) => {
|
|
49
|
+
h("update:appliedSelections", t);
|
|
50
50
|
}
|
|
51
|
-
}), T =
|
|
51
|
+
}), T = r(
|
|
52
52
|
e.selectedCondition || e.conditionalOptions[0]
|
|
53
|
-
),
|
|
53
|
+
), i = b({
|
|
54
54
|
get: () => T.value || e.conditionalOptions[0],
|
|
55
|
-
set: (
|
|
56
|
-
T.value =
|
|
55
|
+
set: (t) => {
|
|
56
|
+
T.value = t;
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
g(
|
|
60
60
|
() => e.selectedCondition,
|
|
61
|
-
(
|
|
62
|
-
|
|
61
|
+
(t) => {
|
|
62
|
+
t && t.value !== i.value?.value && (i.value = t, k());
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
const A = () => {
|
|
66
|
-
const { appliedSelections:
|
|
67
|
-
return
|
|
68
|
-
},
|
|
69
|
-
const
|
|
66
|
+
const { appliedSelections: t } = e;
|
|
67
|
+
return t ? Array.isArray(t) ? t : [t] : [];
|
|
68
|
+
}, D = r(null), v = r(!0), o = r([]), u = r(A()), N = r(!0), c = r(!1), w = r(!1), s = r(e.searchQuery), M = r(""), C = r(e.label), K = r([]), E = b(() => (!s.value || s.value?.length < e.minCharsToStart) && !o.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), Q = b(() => {
|
|
69
|
+
const t = v.value ? 4 : 4.5, l = o.value.length > 4 ? o.value.length : t;
|
|
70
70
|
if (e.groupedOptions) {
|
|
71
|
-
let
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
}),
|
|
71
|
+
let d = 0;
|
|
72
|
+
return o.value.forEach((n) => {
|
|
73
|
+
n.options && (d = d + n.options.length);
|
|
74
|
+
}), d > 4 ? d : t;
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
}),
|
|
78
|
-
if (e.infiniteLoading &&
|
|
79
|
-
const
|
|
80
|
-
(
|
|
76
|
+
return l > t ? l : t;
|
|
77
|
+
}), V = (t, l) => {
|
|
78
|
+
if (e.infiniteLoading && i.value.multi && Array.isArray(u.value) && u.value.length && t && l.length) {
|
|
79
|
+
const d = [], n = u.value.filter(
|
|
80
|
+
(m) => m[e.optionNameKey].includes(t)
|
|
81
81
|
);
|
|
82
|
-
return
|
|
83
|
-
|
|
84
|
-
(
|
|
85
|
-
) &&
|
|
86
|
-
}),
|
|
87
|
-
(
|
|
82
|
+
return l.forEach((m) => {
|
|
83
|
+
n.find(
|
|
84
|
+
(G) => G[e.comparingKey] === m[e.comparingKey]
|
|
85
|
+
) && d.push(m[e.comparingKey]);
|
|
86
|
+
}), n.filter(
|
|
87
|
+
(m) => !d.includes(m[e.comparingKey])
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
return [];
|
|
91
|
-
}, L = async (
|
|
91
|
+
}, L = async (t) => {
|
|
92
92
|
try {
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
c.value = !0;
|
|
94
|
+
const l = await e.fetchFnCallback(t), d = V(
|
|
95
|
+
t,
|
|
96
|
+
l
|
|
97
97
|
);
|
|
98
|
-
|
|
99
|
-
} catch (
|
|
100
|
-
|
|
98
|
+
o.value = [...d, ...l], c.value = !1;
|
|
99
|
+
} catch (l) {
|
|
100
|
+
c.value = !1, console.error("Error fetching data:", l);
|
|
101
101
|
}
|
|
102
|
-
},
|
|
102
|
+
}, $ = async () => {
|
|
103
103
|
if (e.infiniteLoading)
|
|
104
104
|
try {
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
} catch (
|
|
109
|
-
|
|
105
|
+
w.value = !0;
|
|
106
|
+
const t = await e.loadMoreFn();
|
|
107
|
+
w.value = !1, Array.isArray(t) && (o.value = [...o.value, ...t]);
|
|
108
|
+
} catch (t) {
|
|
109
|
+
w.value = !1, console.error("Error fetching data:", t);
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, x = ce(
|
|
112
112
|
L,
|
|
113
113
|
e.fetchDataDebounceTime
|
|
114
|
-
),
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
[e.optionNameKey]:
|
|
114
|
+
), O = (t) => {
|
|
115
|
+
t.length >= e.minCharsToStart ? (x(t), D.value?.scrollTo(0)) : e.infiniteLoading && i.value.multi ? o.value = K.value || [] : o.value = [];
|
|
116
|
+
}, R = () => {
|
|
117
|
+
s.value && o.value.length && !c.value && !i.value.multi ? o.value[0].conditionalOptions ? o.value[0] = {
|
|
118
|
+
[e.optionNameKey]: s.value,
|
|
119
119
|
conditionalOptions: !0,
|
|
120
|
-
conditionalName:
|
|
121
|
-
[e.comparingKey]:
|
|
122
|
-
} :
|
|
120
|
+
conditionalName: i.value.label,
|
|
121
|
+
[e.comparingKey]: s.value
|
|
122
|
+
} : o.value = [
|
|
123
123
|
{
|
|
124
|
-
[e.optionNameKey]:
|
|
124
|
+
[e.optionNameKey]: s.value,
|
|
125
125
|
conditionalOptions: !0,
|
|
126
|
-
conditionalName:
|
|
127
|
-
[e.comparingKey]:
|
|
126
|
+
conditionalName: i.value.label,
|
|
127
|
+
[e.comparingKey]: s.value
|
|
128
128
|
},
|
|
129
|
-
...
|
|
130
|
-
] :
|
|
129
|
+
...o.value
|
|
130
|
+
] : o.value.length && o.value[0].conditionalOptions && o.value.shift();
|
|
131
131
|
}, k = () => {
|
|
132
|
-
|
|
132
|
+
v.value && u.value.length === 0 ? C.value = e.label : C.value = `${e.label} ${i.value.label.toLowerCase()}`;
|
|
133
133
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}),
|
|
137
|
-
|
|
138
|
-
}),
|
|
134
|
+
g(s, () => {
|
|
135
|
+
O(s.value);
|
|
136
|
+
}), g([i, o], () => {
|
|
137
|
+
R();
|
|
138
|
+
}), g(
|
|
139
139
|
() => e.loadingOverride,
|
|
140
|
-
(
|
|
141
|
-
!
|
|
140
|
+
(t, l) => {
|
|
141
|
+
!t && l && !e.infiniteLoading && L(e.searchQuery);
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
const z = () => {
|
|
145
|
+
v.value && u.value.length === 0 ? (S.value = [], i.value = null) : (M.value = s.value, S.value = v.value ? [...u.value] : { ...u.value }, N.value = v.value), h("update:selectedCondition", i.value), k();
|
|
146
146
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}, 100)) : (!
|
|
151
|
-
!
|
|
147
|
+
g(i, (t, l) => {
|
|
148
|
+
i.value.multi ? (c.value = !0, !l.multi && t.multi && (Array.isArray(e.appliedSelections) ? u.value = e.appliedSelections : u.value = [e.appliedSelections]), setTimeout(() => {
|
|
149
|
+
c.value = !1, v.value = !0;
|
|
150
|
+
}, 100)) : (!l.multi && !t.multi && (c.value = !0), setTimeout(() => {
|
|
151
|
+
!l.multi && !t.multi && (c.value = !1), v.value = !1;
|
|
152
152
|
}, 100));
|
|
153
|
-
}),
|
|
154
|
-
|
|
153
|
+
}), g(S, () => {
|
|
154
|
+
u.value = A();
|
|
155
155
|
});
|
|
156
|
-
const P = (
|
|
157
|
-
K.value =
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
|
|
156
|
+
const P = (t) => {
|
|
157
|
+
K.value = t;
|
|
158
|
+
}, j = () => {
|
|
159
|
+
u.value = [], S.value = [], i.value = null, h("update:selectedCondition", null), C.value = e.label, s.value = "", h("clear");
|
|
160
|
+
}, W = (t) => {
|
|
161
|
+
i.value === null && (i.value = e.conditionalOptions[0]), t && i.value.multi && e.infiniteLoading && u.value && (o.value = u.value, s.value && O(s.value));
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) &&
|
|
163
|
+
J(() => {
|
|
164
|
+
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && O(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (o.value = e.appliedSelections, u.value = e.appliedSelections, K.value = e.appliedSelections), k();
|
|
165
165
|
});
|
|
166
|
-
const
|
|
167
|
-
|
|
166
|
+
const q = () => {
|
|
167
|
+
h("closed");
|
|
168
168
|
};
|
|
169
|
-
return (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
placeholder: "Search",
|
|
239
|
-
variant: "transparent",
|
|
240
|
-
size: "md",
|
|
241
|
-
"auto-focus": u.autoFocusSearch
|
|
242
|
-
}, null, 8, ["modelValue", "auto-focus"])
|
|
243
|
-
]),
|
|
244
|
-
"custom-list-area": v(() => [
|
|
245
|
-
!a.value.length && !d.value ? (F(), le("div", pe, [
|
|
246
|
-
C(se, { variant: "body1" }, {
|
|
247
|
-
default: v(() => [
|
|
248
|
-
oe(te(c(I)), 1)
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
})
|
|
252
|
-
])) : ae("", !0)
|
|
253
|
-
]),
|
|
254
|
-
_: 2
|
|
255
|
-
}, [
|
|
256
|
-
l.$slots["option-end"] ? {
|
|
257
|
-
name: "option-end",
|
|
258
|
-
fn: v(({ option: o }) => [
|
|
259
|
-
ne(l.$slots, "option-end", { option: o }, void 0, !0)
|
|
169
|
+
return (t, l) => {
|
|
170
|
+
const d = X("ButtonDropdownTrigger");
|
|
171
|
+
return B(), Y(p(U), {
|
|
172
|
+
ref_key: "dropdownRef",
|
|
173
|
+
ref: D,
|
|
174
|
+
selected: u.value,
|
|
175
|
+
"onUpdate:selected": l[2] || (l[2] = (n) => u.value = n),
|
|
176
|
+
"predefined-trigger": "chip",
|
|
177
|
+
"display-value": (n) => n?.[a.optionNameKey],
|
|
178
|
+
multi: v.value,
|
|
179
|
+
options: o.value,
|
|
180
|
+
placeholder: C.value,
|
|
181
|
+
"search-placeholder": "Search",
|
|
182
|
+
"option-name-key": a.optionNameKey,
|
|
183
|
+
"with-conditions": "",
|
|
184
|
+
"inline-search": "",
|
|
185
|
+
"custom-number-of-displayed-options": p(Q),
|
|
186
|
+
"options-list-width": "330px",
|
|
187
|
+
loading: c.value || a.loadingOverride,
|
|
188
|
+
"load-more-loading": w.value,
|
|
189
|
+
"comparing-key": a.comparingKey,
|
|
190
|
+
"is-open": a.isOpen,
|
|
191
|
+
"infinite-loading": a.infiniteLoading,
|
|
192
|
+
"show-select-all": !a.infiniteLoading && !s.value,
|
|
193
|
+
"grouped-options": a.groupedOptions,
|
|
194
|
+
"option-flag-key": a.optionFlagKey,
|
|
195
|
+
"option-image-key": a.optionImageKey,
|
|
196
|
+
"option-icon-key": a.optionIconKey,
|
|
197
|
+
"option-icon-type": a.optionIconType,
|
|
198
|
+
"trigger-shown-values-count": a.triggerShownValuesCount,
|
|
199
|
+
"test-id": a.testId,
|
|
200
|
+
"onUpdate:isOpen": W,
|
|
201
|
+
onOnsearch: O,
|
|
202
|
+
onApply: z,
|
|
203
|
+
onLoadMore: $,
|
|
204
|
+
onUnsavedSelectionUpdate: P,
|
|
205
|
+
onClosed: q
|
|
206
|
+
}, Z({
|
|
207
|
+
"dropdown-trigger": f(({ defaultTriggerProps: n }) => [
|
|
208
|
+
y(p(ue), _(n, {
|
|
209
|
+
label: C.value,
|
|
210
|
+
"selected-option": p(S),
|
|
211
|
+
multi: N.value,
|
|
212
|
+
"cancel-all-selected-display": "",
|
|
213
|
+
"test-id": a.testId,
|
|
214
|
+
"display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
|
|
215
|
+
"shown-values-count": a.triggerShownValuesCount,
|
|
216
|
+
onClear: j
|
|
217
|
+
}), null, 16, ["label", "selected-option", "multi", "test-id", "display-value-in-quotes", "shown-values-count"])
|
|
218
|
+
]),
|
|
219
|
+
"dropdown-conditions": f(() => [
|
|
220
|
+
ee("div", pe, [
|
|
221
|
+
y(p(U), {
|
|
222
|
+
selected: p(i),
|
|
223
|
+
"onUpdate:selected": l[0] || (l[0] = (n) => te(i) ? i.value = n : null),
|
|
224
|
+
options: a.conditionalOptions,
|
|
225
|
+
"option-name-key": "label",
|
|
226
|
+
"display-value": (n) => n?.label,
|
|
227
|
+
container: ".conditional-container",
|
|
228
|
+
size: "small",
|
|
229
|
+
"test-id": `${a.testId}-conditions`
|
|
230
|
+
}, {
|
|
231
|
+
"dropdown-trigger": f(({ buttonTriggerProps: n }) => [
|
|
232
|
+
y(d, F(I(n)), null, 16),
|
|
233
|
+
y(p(se), F(I(n)), null, 16)
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["selected", "options", "display-value", "test-id"])
|
|
237
|
+
])
|
|
260
238
|
]),
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
239
|
+
"inline-search": f(() => [
|
|
240
|
+
y(p(re), {
|
|
241
|
+
modelValue: s.value,
|
|
242
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => s.value = n),
|
|
243
|
+
class: "inline-search",
|
|
244
|
+
placeholder: "Search",
|
|
245
|
+
variant: "transparent",
|
|
246
|
+
size: "md",
|
|
247
|
+
"auto-focus": a.autoFocusSearch
|
|
248
|
+
}, null, 8, ["modelValue", "auto-focus"])
|
|
249
|
+
]),
|
|
250
|
+
"custom-list-area": f(() => [
|
|
251
|
+
!o.value.length && !c.value ? (B(), le("div", ve, [
|
|
252
|
+
y(de, { variant: "body1" }, {
|
|
253
|
+
default: f(() => [
|
|
254
|
+
oe(ne(p(E)), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
])) : ae("", !0)
|
|
259
|
+
]),
|
|
260
|
+
_: 2
|
|
261
|
+
}, [
|
|
262
|
+
t.$slots["option-end"] ? {
|
|
263
|
+
name: "option-end",
|
|
264
|
+
fn: f(({ option: n }) => [
|
|
265
|
+
ie(t.$slots, "option-end", { option: n }, void 0, !0)
|
|
266
|
+
]),
|
|
267
|
+
key: "0"
|
|
268
|
+
} : void 0
|
|
269
|
+
]), 1032, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key", "option-image-key", "option-icon-key", "option-icon-type", "trigger-shown-values-count", "test-id"]);
|
|
270
|
+
};
|
|
264
271
|
}
|
|
265
272
|
});
|
|
266
273
|
export {
|
|
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
dynamicFilterMode?: boolean;
|
|
22
22
|
minSelections?: number;
|
|
23
23
|
maxSelections?: number;
|
|
24
|
+
alwaysShowScroll?: boolean;
|
|
24
25
|
isOnTop?: boolean;
|
|
25
26
|
distance?: number;
|
|
26
27
|
container?: string;
|
|
@@ -100,6 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
101
|
dynamicFilterMode: boolean;
|
|
101
102
|
minSelections: number;
|
|
102
103
|
maxSelections: any;
|
|
104
|
+
alwaysShowScroll: boolean;
|
|
103
105
|
triggerLabel: string;
|
|
104
106
|
triggerHelperText: string;
|
|
105
107
|
triggerFeedbackText: string;
|
|
@@ -171,6 +173,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
171
173
|
dynamicFilterMode?: boolean;
|
|
172
174
|
minSelections?: number;
|
|
173
175
|
maxSelections?: number;
|
|
176
|
+
alwaysShowScroll?: boolean;
|
|
174
177
|
isOnTop?: boolean;
|
|
175
178
|
distance?: number;
|
|
176
179
|
container?: string;
|
|
@@ -250,6 +253,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
250
253
|
dynamicFilterMode: boolean;
|
|
251
254
|
minSelections: number;
|
|
252
255
|
maxSelections: any;
|
|
256
|
+
alwaysShowScroll: boolean;
|
|
253
257
|
triggerLabel: string;
|
|
254
258
|
triggerHelperText: string;
|
|
255
259
|
triggerFeedbackText: string;
|
|
@@ -323,6 +327,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
323
327
|
dynamicFilterMode: boolean;
|
|
324
328
|
minSelections: number;
|
|
325
329
|
maxSelections: number;
|
|
330
|
+
alwaysShowScroll: boolean;
|
|
326
331
|
isOnTop: boolean;
|
|
327
332
|
triggerLabel: string;
|
|
328
333
|
triggerHelperText: string;
|
|
@@ -368,6 +373,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
368
373
|
disabled: boolean;
|
|
369
374
|
label: any;
|
|
370
375
|
onClick: () => void;
|
|
376
|
+
testId: string;
|
|
371
377
|
};
|
|
372
378
|
defaultTriggerProps: {
|
|
373
379
|
placeholder: string;
|
|
@@ -417,6 +423,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
417
423
|
"option-end"?(_: {
|
|
418
424
|
option: any;
|
|
419
425
|
}): any;
|
|
426
|
+
footer?(_: {}): any;
|
|
420
427
|
}>;
|
|
421
428
|
export default _default;
|
|
422
429
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a594c97e"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|