@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../../LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css"; import { defineComponent as s, computed as d, openBlock as e, createElementBlock as a, normalizeClass as n, unref as o, Fragment as u, renderList as m, createVNode as i } from "vue";
|
|
2
|
+
import p from "../skeleton/v4/SkeletonV4.vue.js";
|
|
3
|
+
const v = /* @__PURE__ */ s({
|
|
4
|
+
__name: "LoaderBars",
|
|
5
|
+
props: {
|
|
6
|
+
loadingRowCount: { default: 3 },
|
|
7
|
+
variant: { default: "default" }
|
|
8
|
+
},
|
|
9
|
+
setup(r) {
|
|
10
|
+
const l = r, t = d(() => l.variant === "compact");
|
|
11
|
+
return (f, C) => (e(), a("div", {
|
|
12
|
+
class: n(["loader-bars", { "loader-bars--compact": o(t) }])
|
|
13
|
+
}, [
|
|
14
|
+
(e(!0), a(u, null, m(r.loadingRowCount, (c) => (e(), a("div", { key: c }, [
|
|
15
|
+
i(o(p), {
|
|
16
|
+
round: "",
|
|
17
|
+
class: n(["loader-bar", { "loader-bar--compact": o(t) }])
|
|
18
|
+
}, null, 8, ["class"])
|
|
19
|
+
]))), 128))
|
|
20
|
+
], 2));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
v as default
|
|
25
|
+
};
|
|
@@ -4,20 +4,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
index?: number;
|
|
5
5
|
isOpen?: boolean;
|
|
6
6
|
isSelected?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
7
8
|
selectedChildId?: string | number;
|
|
8
9
|
searchQuery?: string;
|
|
9
|
-
childListMaxHeight
|
|
10
|
+
childListMaxHeight?: string;
|
|
10
11
|
searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
|
|
11
12
|
displayValue: (item: SortableListItem) => string;
|
|
13
|
+
variant?: "default" | "compact";
|
|
14
|
+
draggableArea?: "handle" | "full";
|
|
12
15
|
}>, {
|
|
13
16
|
text: string;
|
|
14
17
|
isOpen: boolean;
|
|
15
18
|
isSelected: boolean;
|
|
19
|
+
isDisabled: boolean;
|
|
16
20
|
selectedChildId: any;
|
|
17
21
|
searchQuery: any;
|
|
18
22
|
index: any;
|
|
19
23
|
childListMaxHeight: string;
|
|
20
24
|
searchHandler: any;
|
|
25
|
+
variant: string;
|
|
26
|
+
draggableArea: string;
|
|
21
27
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
28
|
toggle: (value: boolean) => void;
|
|
23
29
|
select: () => void;
|
|
@@ -27,32 +33,41 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
33
|
index?: number;
|
|
28
34
|
isOpen?: boolean;
|
|
29
35
|
isSelected?: boolean;
|
|
36
|
+
isDisabled?: boolean;
|
|
30
37
|
selectedChildId?: string | number;
|
|
31
38
|
searchQuery?: string;
|
|
32
|
-
childListMaxHeight
|
|
39
|
+
childListMaxHeight?: string;
|
|
33
40
|
searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
|
|
34
41
|
displayValue: (item: SortableListItem) => string;
|
|
42
|
+
variant?: "default" | "compact";
|
|
43
|
+
draggableArea?: "handle" | "full";
|
|
35
44
|
}>, {
|
|
36
45
|
text: string;
|
|
37
46
|
isOpen: boolean;
|
|
38
47
|
isSelected: boolean;
|
|
48
|
+
isDisabled: boolean;
|
|
39
49
|
selectedChildId: any;
|
|
40
50
|
searchQuery: any;
|
|
41
51
|
index: any;
|
|
42
52
|
childListMaxHeight: string;
|
|
43
53
|
searchHandler: any;
|
|
54
|
+
variant: string;
|
|
55
|
+
draggableArea: string;
|
|
44
56
|
}>>> & {
|
|
45
57
|
onSelect?: () => any;
|
|
46
58
|
onToggle?: (value: boolean) => any;
|
|
47
59
|
onSelectChild?: (childItem: SortableListItem) => any;
|
|
48
60
|
}, {
|
|
61
|
+
variant: "default" | "compact";
|
|
49
62
|
isOpen: boolean;
|
|
50
63
|
index: number;
|
|
51
64
|
isSelected: boolean;
|
|
52
65
|
searchQuery: string;
|
|
66
|
+
isDisabled: boolean;
|
|
53
67
|
selectedChildId: string | number;
|
|
54
68
|
childListMaxHeight: string;
|
|
55
69
|
searchHandler: (item: SortableListItem, searchQuery: string) => boolean;
|
|
70
|
+
draggableArea: "handle" | "full";
|
|
56
71
|
}>, {
|
|
57
72
|
menu?(_: {}): any;
|
|
58
73
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../SortableItem.
|
|
4
|
-
const
|
|
1
|
+
import e from "./SortableItem.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c72be7ed"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,156 +1,172 @@
|
|
|
1
|
-
import "../../SortableItem.
|
|
1
|
+
import "../../SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css"; import { defineComponent as P, useCssVars as A, useSlots as E, computed as h, watch as $, ref as I, openBlock as l, createElementBlock as o, normalizeClass as d, unref as e, withModifiers as y, createElementVNode as c, createVNode as b, createBlock as n, withCtx as S, createTextVNode as V, toDisplayString as F, createCommentVNode as u, renderSlot as R, mergeProps as H, normalizeProps as j, Fragment as q, renderList as G } from "vue";
|
|
2
2
|
import L from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import f from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import w from "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { useVirtualList as
|
|
7
|
-
import { matchString as
|
|
8
|
-
import { useHoverEffect as
|
|
9
|
-
const
|
|
5
|
+
import J from "./SortableItemLabel.vue.js";
|
|
6
|
+
import { useVirtualList as K } from "@vueuse/core";
|
|
7
|
+
import { matchString as U } from "../../utils/search.js";
|
|
8
|
+
import { useHoverEffect as W } from "./composables/useHoverEffect.js";
|
|
9
|
+
const X = { class: "item__prefix" }, Y = ["onClick"], Z = ["onClick"], re = /* @__PURE__ */ P({
|
|
10
10
|
__name: "SortableItem",
|
|
11
11
|
props: {
|
|
12
12
|
item: null,
|
|
13
13
|
index: { default: null },
|
|
14
14
|
isOpen: { type: Boolean, default: !1 },
|
|
15
15
|
isSelected: { type: Boolean, default: !1 },
|
|
16
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
16
17
|
selectedChildId: { default: null },
|
|
17
18
|
searchQuery: { default: null },
|
|
18
19
|
childListMaxHeight: { default: "530px" },
|
|
19
20
|
searchHandler: { type: Function, default: null },
|
|
20
|
-
displayValue: null
|
|
21
|
+
displayValue: null,
|
|
22
|
+
variant: { default: "default" },
|
|
23
|
+
draggableArea: { default: "handle" }
|
|
21
24
|
},
|
|
22
25
|
emits: ["toggle", "select", "selectChild"],
|
|
23
|
-
setup(
|
|
24
|
-
const s =
|
|
25
|
-
|
|
26
|
-
"
|
|
26
|
+
setup(t, { emit: g }) {
|
|
27
|
+
const s = t;
|
|
28
|
+
A((r) => ({
|
|
29
|
+
"6b8d7a5c": t.childListMaxHeight
|
|
27
30
|
}));
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
(
|
|
32
|
-
)),
|
|
31
|
+
const M = E(), z = () => {
|
|
32
|
+
g("toggle", !s.isOpen);
|
|
33
|
+
}, k = h(() => (s.item.children || []).filter(
|
|
34
|
+
(a) => s.searchHandler ? s.searchHandler(a, s.searchQuery) : U(a.displayText, s.searchQuery)
|
|
35
|
+
)), v = h(() => k.value.length > 0), m = h(() => s.draggableArea === "full"), B = (r) => r.id === s.selectedChildId, {
|
|
33
36
|
list: Q,
|
|
34
|
-
containerProps:
|
|
35
|
-
wrapperProps:
|
|
37
|
+
containerProps: T,
|
|
38
|
+
wrapperProps: D,
|
|
36
39
|
scrollTo: N
|
|
37
|
-
} =
|
|
40
|
+
} = K(k, {
|
|
38
41
|
itemHeight: 34
|
|
39
42
|
});
|
|
40
|
-
|
|
43
|
+
$(
|
|
41
44
|
() => s.searchQuery,
|
|
42
45
|
() => N(0)
|
|
43
46
|
);
|
|
44
|
-
const p =
|
|
47
|
+
const p = I(null), { handleMouseout: x, handleMouseover: C } = W(
|
|
45
48
|
p,
|
|
46
49
|
"sortable-item--hovered"
|
|
47
50
|
);
|
|
48
|
-
return (r,
|
|
51
|
+
return (r, a) => (l(), o("div", {
|
|
49
52
|
ref_key: "itemRef",
|
|
50
53
|
ref: p,
|
|
51
|
-
class:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
class: d(["sortable-item", {
|
|
55
|
+
"sortable-item--fully-draggable": e(m),
|
|
56
|
+
"sortable-item--selected": t.isSelected,
|
|
57
|
+
"sortable-item--compact": t.variant === "compact",
|
|
58
|
+
"sortable-item--disabled": t.item.isDisabled
|
|
59
|
+
}]),
|
|
60
|
+
onMouseover: a[1] || (a[1] = //@ts-ignore
|
|
61
|
+
(...i) => e(C) && e(C)(...i)),
|
|
62
|
+
onMouseout: a[2] || (a[2] = //@ts-ignore
|
|
63
|
+
(...i) => e(x) && e(x)(...i)),
|
|
64
|
+
onClick: a[3] || (a[3] = y((i) => g("select"), ["stop"]))
|
|
57
65
|
}, [
|
|
58
66
|
c("div", {
|
|
59
|
-
class:
|
|
60
|
-
"
|
|
61
|
-
"
|
|
67
|
+
class: d(["item", {
|
|
68
|
+
"item--fully-draggable": e(m),
|
|
69
|
+
"drag-allowed": !t.item.isLocked && !t.searchQuery,
|
|
70
|
+
"item--selected": t.isSelected && !t.selectedChildId
|
|
62
71
|
}])
|
|
63
72
|
}, [
|
|
64
|
-
c("div",
|
|
65
|
-
|
|
73
|
+
c("div", {
|
|
74
|
+
class: d(["draggable-handle", {
|
|
75
|
+
"handle-area": e(m),
|
|
76
|
+
"draggable-handle--disabled": t.item.isDisabled
|
|
77
|
+
}])
|
|
78
|
+
}, [
|
|
79
|
+
b(e(f), {
|
|
66
80
|
name: "dots-six-vertical",
|
|
67
81
|
size: "20px",
|
|
68
82
|
type: "bold"
|
|
69
83
|
})
|
|
70
|
-
]),
|
|
84
|
+
], 2),
|
|
71
85
|
c("div", X, [
|
|
72
|
-
|
|
86
|
+
t.item.isLocked ? (l(), n(e(f), {
|
|
73
87
|
key: 1,
|
|
74
88
|
class: "locked-icon",
|
|
75
89
|
name: "lock",
|
|
76
90
|
size: "16px"
|
|
77
|
-
})) : (l(),
|
|
91
|
+
})) : (l(), n(e(L), {
|
|
78
92
|
key: 0,
|
|
79
93
|
class: "order-num",
|
|
80
94
|
variant: "subtitle2"
|
|
81
95
|
}, {
|
|
82
|
-
default:
|
|
83
|
-
|
|
96
|
+
default: S(() => [
|
|
97
|
+
V(F(t.index + 1) + ". ", 1)
|
|
84
98
|
]),
|
|
85
99
|
_: 1
|
|
86
100
|
}))
|
|
87
101
|
]),
|
|
88
|
-
|
|
102
|
+
e(v) && !t.searchQuery ? (l(), o("div", {
|
|
89
103
|
key: 0,
|
|
90
104
|
class: "expand-icon",
|
|
91
|
-
onClick:
|
|
105
|
+
onClick: y(z, ["stop"])
|
|
92
106
|
}, [
|
|
93
|
-
|
|
107
|
+
t.isOpen ? (l(), n(e(f), {
|
|
94
108
|
key: 0,
|
|
95
109
|
name: "caret-down",
|
|
96
110
|
size: "16px"
|
|
97
|
-
})) : (l(),
|
|
111
|
+
})) : (l(), n(e(f), {
|
|
98
112
|
key: 1,
|
|
99
113
|
name: "caret-right",
|
|
100
114
|
size: "16px"
|
|
101
115
|
}))
|
|
102
|
-
], 8, Y)) :
|
|
103
|
-
c("div",
|
|
104
|
-
|
|
116
|
+
], 8, Y)) : u("", !0),
|
|
117
|
+
c("div", {
|
|
118
|
+
class: d(["item__text", { "handle-area": e(m) }])
|
|
119
|
+
}, [
|
|
120
|
+
t.item.countryFlag ? (l(), n(e(w), {
|
|
105
121
|
key: 0,
|
|
106
122
|
class: "country-flag",
|
|
107
|
-
"country-code":
|
|
108
|
-
}, null, 8, ["country-code"])) :
|
|
109
|
-
|
|
110
|
-
"display-value":
|
|
111
|
-
item:
|
|
123
|
+
"country-code": t.item.countryFlag
|
|
124
|
+
}, null, 8, ["country-code"])) : u("", !0),
|
|
125
|
+
b(J, {
|
|
126
|
+
"display-value": t.displayValue,
|
|
127
|
+
item: t.item
|
|
112
128
|
}, null, 8, ["display-value", "item"])
|
|
113
|
-
]),
|
|
114
|
-
|
|
129
|
+
], 2),
|
|
130
|
+
e(M)?.menu ? (l(), o("div", {
|
|
115
131
|
key: 1,
|
|
116
132
|
class: "item__menu",
|
|
117
|
-
onClick:
|
|
133
|
+
onClick: a[0] || (a[0] = y(() => {
|
|
118
134
|
}, ["stop"]))
|
|
119
135
|
}, [
|
|
120
|
-
|
|
121
|
-
])) :
|
|
136
|
+
R(r.$slots, "menu", {}, void 0, !0)
|
|
137
|
+
])) : u("", !0)
|
|
122
138
|
], 2),
|
|
123
|
-
c("div",
|
|
124
|
-
|
|
125
|
-
(l(!0),
|
|
139
|
+
c("div", H(e(T), { class: "child-list" }), [
|
|
140
|
+
e(v) && t.isOpen ? (l(), o("ul", j(H({ key: 0 }, e(D))), [
|
|
141
|
+
(l(!0), o(q, null, G(e(Q), ({ data: i, index: O }) => (l(), o("li", {
|
|
126
142
|
key: O,
|
|
127
|
-
class:
|
|
128
|
-
onClick:
|
|
143
|
+
class: d({ selected: B(i) }),
|
|
144
|
+
onClick: y((_) => g("selectChild", i), ["stop"])
|
|
129
145
|
}, [
|
|
130
|
-
i.countryFlag ? (l(),
|
|
146
|
+
i.countryFlag ? (l(), n(e(w), {
|
|
131
147
|
key: 0,
|
|
132
148
|
class: "country-flag",
|
|
133
149
|
"country-code": i.countryFlag
|
|
134
|
-
}, null, 8, ["country-code"])) :
|
|
135
|
-
|
|
150
|
+
}, null, 8, ["country-code"])) : u("", !0),
|
|
151
|
+
b(e(L), {
|
|
136
152
|
class: "country-title",
|
|
137
153
|
variant: "body2",
|
|
138
154
|
"tooltip-placement": "top",
|
|
139
|
-
"tooltip-text":
|
|
155
|
+
"tooltip-text": t.displayValue(i),
|
|
140
156
|
"is-truncated": "",
|
|
141
157
|
"with-tooltip": ""
|
|
142
158
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
|
|
159
|
+
default: S(() => [
|
|
160
|
+
V(F(t.displayValue(i)), 1)
|
|
145
161
|
]),
|
|
146
162
|
_: 2
|
|
147
163
|
}, 1032, ["tooltip-text"])
|
|
148
|
-
], 10,
|
|
149
|
-
], 16)) :
|
|
164
|
+
], 10, Z))), 128))
|
|
165
|
+
], 16)) : u("", !0)
|
|
150
166
|
], 16)
|
|
151
167
|
], 34));
|
|
152
168
|
}
|
|
153
169
|
});
|
|
154
170
|
export {
|
|
155
|
-
|
|
171
|
+
re as default
|
|
156
172
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./SortableItemLabel.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../SortableItemLabel.
|
|
4
|
-
const
|
|
3
|
+
// import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a534c7af"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,57 +1,60 @@
|
|
|
1
|
-
import "../../SortableItemLabel.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css"; import { defineComponent as m, openBlock as a, createBlock as u, unref as l, withCtx as t, createElementVNode as p, createElementBlock as d, Fragment as f, renderList as h, createVNode as i, createTextVNode as o, toDisplayString as r, normalizeClass as x } from "vue";
|
|
2
|
+
import s from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import b from "../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
const y = { class: "tooltip-content" }, k = /* @__PURE__ */ m({
|
|
5
5
|
__name: "SortableItemLabel",
|
|
6
6
|
props: {
|
|
7
7
|
item: null,
|
|
8
8
|
displayValue: null
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
return (
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (_, v) => (a(), u(l(b), {
|
|
12
12
|
class: "item-label",
|
|
13
13
|
placement: "right",
|
|
14
|
-
disabled: !
|
|
14
|
+
disabled: !e.item.helpText
|
|
15
15
|
}, {
|
|
16
|
-
tooltip:
|
|
17
|
-
|
|
18
|
-
(a(!0), d(f, null, h(
|
|
19
|
-
key:
|
|
16
|
+
tooltip: t(() => [
|
|
17
|
+
p("div", y, [
|
|
18
|
+
(a(!0), d(f, null, h(e.item.helpText, (n, c) => (a(), d("div", {
|
|
19
|
+
key: c,
|
|
20
20
|
class: "help"
|
|
21
21
|
}, [
|
|
22
|
-
i(l(
|
|
22
|
+
i(l(s), {
|
|
23
23
|
class: "help__title",
|
|
24
24
|
variant: "h5"
|
|
25
25
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
o(r(
|
|
26
|
+
default: t(() => [
|
|
27
|
+
o(r(n.title), 1)
|
|
28
28
|
]),
|
|
29
29
|
_: 2
|
|
30
30
|
}, 1024),
|
|
31
|
-
i(l(
|
|
31
|
+
i(l(s), {
|
|
32
32
|
class: "help__text",
|
|
33
33
|
variant: "body2"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
o(r(
|
|
35
|
+
default: t(() => [
|
|
36
|
+
o(r(n.text), 1)
|
|
37
37
|
]),
|
|
38
38
|
_: 2
|
|
39
39
|
}, 1024)
|
|
40
40
|
]))), 128))
|
|
41
41
|
])
|
|
42
42
|
]),
|
|
43
|
-
default:
|
|
44
|
-
i(l(
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
default: t(() => [
|
|
44
|
+
i(l(s), {
|
|
45
|
+
variant: "body2",
|
|
46
|
+
class: x(["item-text", { "item-text--disabled": e.item.isDisabled }])
|
|
47
|
+
}, {
|
|
48
|
+
default: t(() => [
|
|
49
|
+
o(r(e.displayValue(e.item)), 1)
|
|
47
50
|
]),
|
|
48
51
|
_: 1
|
|
49
|
-
})
|
|
52
|
+
}, 8, ["class"])
|
|
50
53
|
]),
|
|
51
54
|
_: 1
|
|
52
55
|
}, 8, ["disabled"]));
|
|
53
56
|
}
|
|
54
57
|
});
|
|
55
58
|
export {
|
|
56
|
-
|
|
59
|
+
k as default
|
|
57
60
|
};
|
|
@@ -5,6 +5,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
openId?: string | number;
|
|
6
6
|
selectedId?: string | number;
|
|
7
7
|
selectedChildId?: string | number;
|
|
8
|
+
variant?: "default" | "compact";
|
|
9
|
+
draggableArea?: "handle" | "full";
|
|
8
10
|
search?: string;
|
|
9
11
|
showSearch?: boolean;
|
|
10
12
|
searchPlaceholder?: string;
|
|
@@ -22,6 +24,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
24
|
openId: any;
|
|
23
25
|
selectedId: any;
|
|
24
26
|
selectedChildId: any;
|
|
27
|
+
variant: string;
|
|
28
|
+
draggableArea: string;
|
|
25
29
|
search: any;
|
|
26
30
|
showSearch: boolean;
|
|
27
31
|
searchPlaceholder: string;
|
|
@@ -50,6 +54,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
54
|
openId?: string | number;
|
|
51
55
|
selectedId?: string | number;
|
|
52
56
|
selectedChildId?: string | number;
|
|
57
|
+
variant?: "default" | "compact";
|
|
58
|
+
draggableArea?: "handle" | "full";
|
|
53
59
|
search?: string;
|
|
54
60
|
showSearch?: boolean;
|
|
55
61
|
searchPlaceholder?: string;
|
|
@@ -67,6 +73,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
73
|
openId: any;
|
|
68
74
|
selectedId: any;
|
|
69
75
|
selectedChildId: any;
|
|
76
|
+
variant: string;
|
|
77
|
+
draggableArea: string;
|
|
70
78
|
search: any;
|
|
71
79
|
showSearch: boolean;
|
|
72
80
|
searchPlaceholder: string;
|
|
@@ -92,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
100
|
}, {
|
|
93
101
|
search: string;
|
|
94
102
|
testId: string;
|
|
103
|
+
variant: "default" | "compact";
|
|
95
104
|
isLoading: boolean;
|
|
96
105
|
displayValue: (item: SortableListItem) => string;
|
|
97
106
|
searchPlaceholder: string;
|
|
@@ -99,13 +108,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
99
108
|
selectedChildId: string | number;
|
|
100
109
|
childListMaxHeight: string;
|
|
101
110
|
searchHandler: (item: SortableListItem, searchQuery: string) => boolean;
|
|
111
|
+
draggableArea: "handle" | "full";
|
|
112
|
+
loadingRowCount: number;
|
|
102
113
|
openId: string | number;
|
|
114
|
+
zIndexBase: number;
|
|
103
115
|
selectedId: string | number;
|
|
104
116
|
showSearch: boolean;
|
|
105
|
-
loadingRowCount: number;
|
|
106
117
|
emptyStateTitle: string;
|
|
107
118
|
isSticky: boolean;
|
|
108
|
-
zIndexBase: number;
|
|
109
119
|
}>, {
|
|
110
120
|
header?(_: {}): any;
|
|
111
121
|
menu?(_: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../SortableList.
|
|
4
|
-
const
|
|
1
|
+
import e from "./SortableList.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9aec4e9b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|