@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.40
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_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_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_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_55dd36a7_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_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/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_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_84dc8525_lang.css +1 -0
- package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_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_4ba9e4bd_lang.css +1 -0
- package/components/appIcon/index.d.ts +3 -3
- package/components/banner/Banner.vue.d.ts +3 -3
- package/components/banner/index.d.ts +7 -7
- package/components/button/common/consts.d.ts +1 -0
- package/components/button/v3/Button.vue.d.ts +3 -3
- package/components/button/v3/ButtonBase.vue.d.ts +3 -3
- package/components/button/v3/IconButton.vue.d.ts +3 -3
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.d.ts +5 -3
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +28 -27
- package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
- package/components/chart/Chart.vue.d.ts +168 -37
- package/components/chart/Chart.vue.js +2 -2
- package/components/chart/Chart.vue2.js +154 -297
- package/components/chart/ChartHeader.vue.d.ts +50 -11
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +73 -54
- package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
- package/components/chart/ChartHeaderTrend.vue.js +7 -0
- package/components/chart/ChartHeaderTrend.vue2.js +97 -0
- package/components/chart/ChartLegend.vue.d.ts +24 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +82 -63
- package/components/chart/ChartPlane.vue.d.ts +236 -0
- package/components/chart/ChartPlane.vue.js +7 -0
- package/components/chart/ChartPlane.vue2.js +381 -0
- package/components/chart/ChartStoryArgs.d.ts +196 -0
- package/components/chart/ChartTooltip.vue.d.ts +22 -2
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +51 -56
- package/components/chart/LegendSorting.vue.d.ts +37 -0
- package/components/chart/LegendSorting.vue.js +45 -0
- package/components/chart/LegendSorting.vue2.js +4 -0
- package/components/chart/SettingsHeader.vue.d.ts +1 -0
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +17 -16
- package/components/chart/SubHeader.vue.d.ts +52 -0
- package/components/chart/SubHeader.vue.js +7 -0
- package/components/chart/SubHeader.vue2.js +61 -0
- package/components/chart/TooltipHeader.vue.d.ts +50 -0
- package/components/chart/TooltipHeader.vue.js +7 -0
- package/components/chart/TooltipHeader.vue2.js +70 -0
- package/components/chart/colorPalette.d.ts +5 -0
- package/components/chart/colorPalette.js +68 -0
- package/components/chart/composables/useChartHeight.d.ts +5 -0
- package/components/chart/composables/useChartHeight.js +24 -0
- package/components/chart/composables/useColorsMap.d.ts +12 -0
- package/components/chart/composables/useColorsMap.js +48 -0
- package/components/chart/composables/useTooltipPosition.d.ts +1 -1
- package/components/chart/composables/useTooltipPosition.js +11 -15
- package/components/chart/consts.d.ts +33 -7
- package/components/chart/consts.js +46 -22
- package/components/chart/index.d.ts +592 -119
- package/components/chart/mockData.d.ts +59 -5
- package/components/chart/types.d.ts +39 -6
- package/components/chart/types.js +5 -2
- package/components/chart/utils/formatNumber.d.ts +0 -1
- package/components/chart/utils/highlightUtils.d.ts +3 -0
- package/components/chart/utils/highlightUtils.js +18 -0
- package/components/chart/utils/utils.d.ts +3 -3
- package/components/chart/utils/utils.js +25 -10
- package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
- package/components/checkbox/v3/index.d.ts +7 -7
- 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 +100 -94
- package/components/dateRange/common/DateServices.common.d.ts +7 -1
- package/components/dateRange/common/DateServices.common.js +88 -92
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -3
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dateRange/v4/index.d.ts +7 -7
- 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 +13 -12
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +164 -164
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +161 -149
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +144 -122
- package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
- package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +162 -117
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +701 -162
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/forms/FormRow.vue.d.ts +9 -2
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +25 -14
- package/components/forms/index.d.ts +25 -5
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +40 -40
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +201 -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/search/v3/index.d.ts +3 -3
- package/components/shared/FieldLabel.vue.d.ts +19 -7
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +50 -37
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +3 -3
- 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 +10 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +104 -96
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/index.d.ts +39 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +39 -24
- package/components/switch/v4/index.d.ts +29 -0
- package/components/table/common/Table.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +18 -7
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +300 -250
- 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 +82 -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 +91 -90
- package/components/table/v4/index.d.ts +575 -293
- package/components/table/v4/index.js +7 -4
- package/components/table/v4/storyUtils.d.ts +27 -0
- package/components/tabs/v3/Tabs.vue.d.ts +3 -3
- package/components/tabs/v3/index.d.ts +7 -7
- package/components/tooltip/common/Tooltip.types.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
- package/components/tooltip/v3/Tooltip.vue.js +2 -2
- package/components/tooltip/v3/Tooltip.vue2.js +1 -1
- package/components/tooltip/v3/index.d.ts +7 -7
- package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
- 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 +27 -8
- package/components/typography/Text.vue.d.ts +3 -3
- package/components/typography/index.d.ts +7 -7
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/composables/useFormValidation.d.ts +1 -0
- package/composables/useFormValidation.js +32 -27
- package/composables/useFullPageHeight.d.ts +10 -0
- package/composables/useFullPageHeight.js +15 -0
- package/consts/common.d.ts +1 -0
- package/consts/common.js +4 -0
- package/consts/regex.d.ts +1 -0
- package/consts/regex.js +2 -1
- package/index.d.ts +4185 -2363
- package/index.js +148 -132
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +13 -1
- package/testids/index.d.ts +8 -0
- package/testids/index.js +35 -33
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +37 -7
- package/utils/index.js +7 -0
- package/utils/text.d.ts +3 -0
- package/utils/text.js +24 -5
- package/utils/totals.d.ts +5 -0
- package/utils/totals.js +9 -0
- package/utils/utils.d.ts +1 -0
- package/utils/utils.js +4 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_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_1e8837dc_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_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/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
- package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
- package/components/chart/utils/formatNumber.js +0 -11
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as x, watch as Te, toRaw as S, openBlock as d, createElementBlock as r, mergeProps as m, unref as t, renderSlot as y, createElementVNode as f, createVNode as a, withCtx as u, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as T, createCommentVNode as s, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
|
|
2
|
+
import N from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
6
|
import "./DropdownV4.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import Ae from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import Oe from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import Le from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Ee from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import J from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { Dropdown as
|
|
16
|
+
import xe from "../../search/v4/SearchV4.vue.js";
|
|
17
|
+
import Q from "../../typography/v4/Typography.vue.js";
|
|
18
|
+
import { Dropdown as Be } from "floating-vue";
|
|
19
19
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
21
|
-
import
|
|
22
|
-
import { useTestIdAttrs as
|
|
23
|
-
import { TRIGGERS as
|
|
24
|
-
import { useElementSize as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
const
|
|
20
|
+
import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
|
|
21
|
+
import K from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
|
+
import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
|
|
23
|
+
import { TRIGGERS as w } from "./Dropdown.types.js";
|
|
24
|
+
import { useElementSize as Ve } from "@vueuse/core";
|
|
25
|
+
import De from "../../shared/FieldHelpText.vue.js";
|
|
26
|
+
import Pe from "./GroupOption.vue.js";
|
|
27
|
+
const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze = { key: 1 }, We = { key: 2 }, Ge = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
30
|
+
}, He = { class: "dropdown-conditions" }, Ue = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Ye = ["aria-selected", "aria-disabled", "onClick"], Xe = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, qe = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
},
|
|
39
|
+
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, vt = /* @__PURE__ */ ke({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -52,11 +52,14 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
52
52
|
isOpen: { type: Boolean },
|
|
53
53
|
options: null,
|
|
54
54
|
showSelectAll: { type: Boolean, default: !0 },
|
|
55
|
+
showClearAll: { type: Boolean, default: !0 },
|
|
55
56
|
defaultOpen: { type: Boolean, default: !1 },
|
|
56
57
|
keepOpen: { type: Boolean, default: !1 },
|
|
57
58
|
autoSize: { type: Boolean, default: !1 },
|
|
58
59
|
disableKeyboardEvents: { type: Boolean, default: !1 },
|
|
59
60
|
dynamicFilterMode: { type: Boolean, default: !1 },
|
|
61
|
+
minSelections: { default: 0 },
|
|
62
|
+
maxSelections: { default: null },
|
|
60
63
|
isOnTop: { type: Boolean, default: !1 },
|
|
61
64
|
distance: { default: 0 },
|
|
62
65
|
container: { default: "body" },
|
|
@@ -69,9 +72,10 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
69
72
|
triggerFeedbackVariant: { default: null },
|
|
70
73
|
triggerFeedbackShowIcon: { type: Boolean, default: !1 },
|
|
71
74
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
75
|
+
triggerShownValuesCount: { default: 1 },
|
|
72
76
|
size: { default: "medium" },
|
|
73
77
|
mandatory: { type: Boolean, default: !1 },
|
|
74
|
-
predefinedTrigger: { default:
|
|
78
|
+
predefinedTrigger: { default: w.DEFAULT },
|
|
75
79
|
inlineSearch: { type: Boolean, default: !1 },
|
|
76
80
|
inlineSearchPlaceholder: { default: "Search" },
|
|
77
81
|
onSearch: { type: Function, default: null },
|
|
@@ -87,6 +91,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
87
91
|
optionEndIconType: { default: null },
|
|
88
92
|
optionsEndTextIconKey: { default: null },
|
|
89
93
|
optionFlagKey: { default: null },
|
|
94
|
+
optionWarningKey: { default: null },
|
|
90
95
|
valueToCopy: { default: null },
|
|
91
96
|
disabledOptionKey: { default: "disabled" },
|
|
92
97
|
optionTwoLinesVariant: { default: void 0 },
|
|
@@ -94,6 +99,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
94
99
|
groupedOptions: { type: Boolean, default: !1 },
|
|
95
100
|
comparingKey: { default: null },
|
|
96
101
|
customNumberOfDisplayedOptions: { default: null },
|
|
102
|
+
optionTooltipPosition: { default: "right" },
|
|
97
103
|
theme: { default: "light-theme-v4" },
|
|
98
104
|
fullWidth: { type: Boolean, default: !0 },
|
|
99
105
|
optionsListWidth: { default: null },
|
|
@@ -103,8 +109,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
103
109
|
withConditions: { type: Boolean, default: !1 }
|
|
104
110
|
},
|
|
105
111
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
106
|
-
setup(e, { expose:
|
|
107
|
-
const
|
|
112
|
+
setup(e, { expose: Z, emit: V }) {
|
|
113
|
+
const o = e, D = {
|
|
108
114
|
MULTILINE_LIST_HEIGHT: 48,
|
|
109
115
|
LIST_HEIGHT: 32 + 4,
|
|
110
116
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -112,65 +118,95 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
112
118
|
DROPLIST_MIN_WIDTH: 240,
|
|
113
119
|
VERSION: 4
|
|
114
120
|
}, {
|
|
115
|
-
onKeydown:
|
|
116
|
-
open:
|
|
117
|
-
toggleMenu:
|
|
118
|
-
onButtonKeydown:
|
|
119
|
-
query:
|
|
120
|
-
containerProps:
|
|
121
|
-
calculateTableHeight:
|
|
122
|
-
wrapperProps:
|
|
123
|
-
filteredOptions:
|
|
124
|
-
allSelected:
|
|
125
|
-
allSelectedApplied:
|
|
126
|
-
isIndeterminate:
|
|
127
|
-
onSelectAll:
|
|
128
|
-
virtualOptions:
|
|
129
|
-
isSelected:
|
|
121
|
+
onKeydown: I,
|
|
122
|
+
open: c,
|
|
123
|
+
toggleMenu: v,
|
|
124
|
+
onButtonKeydown: P,
|
|
125
|
+
query: C,
|
|
126
|
+
containerProps: _,
|
|
127
|
+
calculateTableHeight: ee,
|
|
128
|
+
wrapperProps: te,
|
|
129
|
+
filteredOptions: oe,
|
|
130
|
+
allSelected: $,
|
|
131
|
+
allSelectedApplied: A,
|
|
132
|
+
isIndeterminate: ne,
|
|
133
|
+
onSelectAll: ie,
|
|
134
|
+
virtualOptions: M,
|
|
135
|
+
isSelected: O,
|
|
130
136
|
selectedOption: h,
|
|
131
137
|
selectedOptionPrevious: L,
|
|
132
|
-
selectedValue:
|
|
133
|
-
onSelect:
|
|
134
|
-
activeIndex:
|
|
135
|
-
onCancel:
|
|
136
|
-
onApply:
|
|
137
|
-
scrollTo:
|
|
138
|
-
listRef:
|
|
139
|
-
buttonRef:
|
|
140
|
-
apply:
|
|
141
|
-
cancel:
|
|
142
|
-
el:
|
|
143
|
-
onClearAllSelections:
|
|
144
|
-
clearAll:
|
|
145
|
-
isGroup:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
138
|
+
selectedValue: le,
|
|
139
|
+
onSelect: R,
|
|
140
|
+
activeIndex: z,
|
|
141
|
+
onCancel: ae,
|
|
142
|
+
onApply: de,
|
|
143
|
+
scrollTo: se,
|
|
144
|
+
listRef: re,
|
|
145
|
+
buttonRef: W,
|
|
146
|
+
apply: ue,
|
|
147
|
+
cancel: ce,
|
|
148
|
+
el: ye,
|
|
149
|
+
onClearAllSelections: G,
|
|
150
|
+
clearAll: me,
|
|
151
|
+
isGroup: fe,
|
|
152
|
+
flattenAndMarkGroupOptions: pe
|
|
153
|
+
} = Fe(o, V, D), g = Ne(o.testId, p), H = x(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Ee : null), { width: U } = Ve(W), ge = x(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? U.value - 2 > 240 ? `${U.value - 2}px` : `${D.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
154
|
+
Te(
|
|
155
|
+
() => o.optionsListWidth,
|
|
149
156
|
() => {
|
|
150
|
-
|
|
157
|
+
o.optionsListWidth && document.documentElement.style.setProperty(
|
|
151
158
|
"--options-list-width",
|
|
152
|
-
|
|
159
|
+
o.optionsListWidth
|
|
153
160
|
);
|
|
154
161
|
}
|
|
155
162
|
);
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
const Y = () => {
|
|
164
|
+
v();
|
|
165
|
+
}, X = x(() => {
|
|
166
|
+
const i = {
|
|
167
|
+
tooltipMessage: null,
|
|
168
|
+
selections: []
|
|
169
|
+
};
|
|
170
|
+
if (o.multi && o.comparingKey) {
|
|
171
|
+
const l = S(h.value);
|
|
172
|
+
if (o.minSelections || o.maxSelections) {
|
|
173
|
+
if (Array.isArray(l) && l.length <= o.minSelections)
|
|
174
|
+
return i.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, i.selections = l.map(
|
|
175
|
+
(n) => n[o.comparingKey]
|
|
176
|
+
), i;
|
|
177
|
+
if (o.maxSelections && Array.isArray(l) && l.length >= o.maxSelections) {
|
|
178
|
+
const n = l.map(
|
|
179
|
+
(b) => b[o.comparingKey]
|
|
180
|
+
), k = o.groupedOptions ? pe(o.options) : o.options;
|
|
181
|
+
return i.tooltipMessage = `You can only select up to ${o.maxSelections} items`, i.selections = k.map((b) => {
|
|
182
|
+
if (!n.includes(b[o.comparingKey]))
|
|
183
|
+
return b[o.comparingKey];
|
|
184
|
+
}), i;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return i.tooltipMessage = null, i.selections = [], i;
|
|
189
|
+
}), he = (i) => {
|
|
190
|
+
if ((o.minSelections || o.maxSelections) && o.comparingKey)
|
|
191
|
+
return X.value.selections.includes(
|
|
192
|
+
i[o.comparingKey]
|
|
193
|
+
);
|
|
194
|
+
}, E = (i) => i[o.disabledOptionKey] || he(i);
|
|
195
|
+
return Z({
|
|
196
|
+
selectItem: R,
|
|
197
|
+
scrollTo: se
|
|
198
|
+
}), (i, l) => (d(), r("div", m({
|
|
163
199
|
ref_key: "el",
|
|
164
|
-
ref:
|
|
200
|
+
ref: ye,
|
|
165
201
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
166
202
|
tabindex: e.disabled ? -1 : 0
|
|
167
203
|
}, t(g)[t(p).WRAPPER], {
|
|
168
204
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
169
|
-
(...
|
|
205
|
+
(...n) => t(I) && t(I)(...n))
|
|
170
206
|
}), [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
207
|
+
y(i.$slots, "label", {}, void 0, !0),
|
|
208
|
+
f("div", Me, [
|
|
209
|
+
a(t(Be), m({
|
|
174
210
|
theme: e.theme,
|
|
175
211
|
"popper-class": [
|
|
176
212
|
e.popperClass,
|
|
@@ -183,46 +219,46 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
183
219
|
distance: e.distance,
|
|
184
220
|
flip: e.flip,
|
|
185
221
|
triggers: [],
|
|
186
|
-
shown: !!t(
|
|
222
|
+
shown: !!t(c),
|
|
187
223
|
"auto-hide": !1,
|
|
188
224
|
container: e.container,
|
|
189
225
|
"auto-size": e.autoSize
|
|
190
226
|
}, t(g)[t(p).TRIGGER]), {
|
|
191
227
|
popper: u(() => [
|
|
192
|
-
|
|
228
|
+
a(we, null, {
|
|
193
229
|
default: u(() => [
|
|
194
|
-
t(
|
|
230
|
+
t(c) ? (d(), r("div", {
|
|
195
231
|
key: 0,
|
|
196
232
|
ref_key: "listRef",
|
|
197
|
-
ref:
|
|
198
|
-
class:
|
|
233
|
+
ref: re,
|
|
234
|
+
class: B(["light-theme-v4", {
|
|
199
235
|
"dropdown--disabled": e.disabled,
|
|
200
236
|
"inline-search": e.inlineSearch
|
|
201
237
|
}]),
|
|
202
|
-
style:
|
|
238
|
+
style: be({ width: t(ge) })
|
|
203
239
|
}, [
|
|
204
|
-
t(
|
|
240
|
+
t(c) ? (d(), r("div", {
|
|
205
241
|
key: 0,
|
|
206
|
-
class:
|
|
242
|
+
class: B(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
207
243
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
208
|
-
(...
|
|
244
|
+
(...n) => t(I) && t(I)(...n))
|
|
209
245
|
}, [
|
|
210
|
-
t(
|
|
211
|
-
e.withConditions ?
|
|
212
|
-
|
|
213
|
-
|
|
246
|
+
t(c) && e.inlineSearch ? (d(), r("div", Ge, [
|
|
247
|
+
e.withConditions ? y(i.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
248
|
+
f("div", He, [
|
|
249
|
+
a(t(Q), { variant: "body2" }, {
|
|
214
250
|
default: u(() => [
|
|
215
251
|
T("Conditions")
|
|
216
252
|
]),
|
|
217
253
|
_: 1
|
|
218
254
|
})
|
|
219
255
|
])
|
|
220
|
-
], !0) :
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
modelValue: t(
|
|
256
|
+
], !0) : s("", !0),
|
|
257
|
+
y(i.$slots, "inline-search", {}, () => [
|
|
258
|
+
a(t(xe), {
|
|
259
|
+
modelValue: t(C),
|
|
224
260
|
"onUpdate:modelValue": [
|
|
225
|
-
l[4] || (l[4] = (
|
|
261
|
+
l[4] || (l[4] = (n) => Ie(C) ? C.value = n : null),
|
|
226
262
|
e.onClearSearch
|
|
227
263
|
],
|
|
228
264
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -230,48 +266,48 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
230
266
|
size: "md",
|
|
231
267
|
"auto-focus": e.searchAutoFocus,
|
|
232
268
|
"test-id": e.testId,
|
|
233
|
-
onKeydown: t(
|
|
269
|
+
onKeydown: t(I)
|
|
234
270
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
235
271
|
], !0)
|
|
236
|
-
])) :
|
|
237
|
-
|
|
238
|
-
|
|
272
|
+
])) : s("", !0),
|
|
273
|
+
y(i.$slots, "input-list", { open: t(c) }, void 0, !0),
|
|
274
|
+
f("div", m({
|
|
239
275
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
240
|
-
style: { height: `${t(
|
|
276
|
+
style: { height: `${t(ee)}rem` }
|
|
241
277
|
}, {
|
|
242
|
-
...t(
|
|
278
|
+
...t(_),
|
|
243
279
|
...t(g)[t(p).LIST_CONTAINER]
|
|
244
280
|
}), [
|
|
245
|
-
|
|
246
|
-
|
|
281
|
+
y(i.$slots, "custom-list-area", {}, void 0, !0),
|
|
282
|
+
f("ul", m(t(te), {
|
|
247
283
|
role: "listbox",
|
|
248
284
|
class: ["list", {
|
|
249
285
|
"list--multi": e.multi,
|
|
250
286
|
"list--with-conditions": e.withConditions
|
|
251
287
|
}]
|
|
252
288
|
}), [
|
|
253
|
-
!t(
|
|
254
|
-
|
|
289
|
+
!t(oe).length && !e.loading && !e.withConditions ? (d(), r("li", Ue, [
|
|
290
|
+
a(t(Q), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
255
291
|
default: u(() => [
|
|
256
|
-
T(
|
|
292
|
+
T(q(e.noResultsText), 1)
|
|
257
293
|
]),
|
|
258
294
|
_: 1
|
|
259
295
|
}, 16)
|
|
260
|
-
])) :
|
|
261
|
-
e.showSelectAll !== !1 && e.multi && !t(
|
|
262
|
-
|
|
263
|
-
|
|
296
|
+
])) : s("", !0),
|
|
297
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? y(i.$slots, "select-all", { key: 1 }, () => [
|
|
298
|
+
f("li", null, [
|
|
299
|
+
a(t(J), m(
|
|
264
300
|
{
|
|
265
|
-
"aria-selected": t(
|
|
301
|
+
"aria-selected": t($),
|
|
266
302
|
"aria-disabled": !!e.disabled,
|
|
267
|
-
"selected-prop": t(
|
|
268
|
-
"is-indeterminate": t(
|
|
303
|
+
"selected-prop": t($),
|
|
304
|
+
"is-indeterminate": t(ne),
|
|
269
305
|
"is-multi": e.multi,
|
|
270
306
|
"select-all-option": ""
|
|
271
307
|
},
|
|
272
308
|
t(g)[t(p).SELECT_ALL],
|
|
273
309
|
{
|
|
274
|
-
onClick: l[5] || (l[5] =
|
|
310
|
+
onClick: l[5] || (l[5] = j((n) => t(ie)(), ["stop"]))
|
|
275
311
|
}
|
|
276
312
|
), {
|
|
277
313
|
default: u(() => [
|
|
@@ -280,33 +316,36 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
280
316
|
_: 1
|
|
281
317
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
282
318
|
])
|
|
283
|
-
], !0) :
|
|
284
|
-
t(
|
|
285
|
-
key:
|
|
286
|
-
"aria-selected": t(
|
|
319
|
+
], !0) : s("", !0),
|
|
320
|
+
t(M).length && !e.loading ? (d(!0), r(Se, { key: 2 }, ve(t(M), ({ data: n, index: k }) => (d(), r("li", {
|
|
321
|
+
key: k,
|
|
322
|
+
"aria-selected": t(O)(S(t(h)), n),
|
|
287
323
|
"aria-disabled": !!e.disabled,
|
|
288
|
-
onClick:
|
|
324
|
+
onClick: j(
|
|
325
|
+
() => !E(n) && t(R)(n, k),
|
|
326
|
+
["stop"]
|
|
327
|
+
)
|
|
289
328
|
}, [
|
|
290
|
-
e.groupedOptions && t(
|
|
291
|
-
|
|
329
|
+
e.groupedOptions && t(fe)(n) ? y(i.$slots, "group-option", { key: 0 }, () => [
|
|
330
|
+
a(Pe, null, {
|
|
292
331
|
default: u(() => [
|
|
293
|
-
T(
|
|
332
|
+
T(q(e.displayValue(n) || n[e.optionNameKey]), 1)
|
|
294
333
|
]),
|
|
295
334
|
_: 2
|
|
296
335
|
}, 1024)
|
|
297
|
-
], !0) :
|
|
336
|
+
], !0) : y(i.$slots, "default", {
|
|
298
337
|
key: 1,
|
|
299
|
-
option:
|
|
300
|
-
index:
|
|
301
|
-
selected: t(
|
|
302
|
-
active:
|
|
303
|
-
disabled:
|
|
338
|
+
option: n,
|
|
339
|
+
index: k,
|
|
340
|
+
selected: t(O)(S(t(h)), n),
|
|
341
|
+
active: S(t(z)) === k,
|
|
342
|
+
disabled: E(n)
|
|
304
343
|
}, () => [
|
|
305
|
-
|
|
306
|
-
option:
|
|
307
|
-
"selected-prop": t(
|
|
308
|
-
active:
|
|
309
|
-
disabled:
|
|
344
|
+
a(t(J), {
|
|
345
|
+
option: n,
|
|
346
|
+
"selected-prop": t(O)(t(h), n),
|
|
347
|
+
active: S(t(z)) === k,
|
|
348
|
+
disabled: E(n),
|
|
310
349
|
"name-key": e.optionNameKey,
|
|
311
350
|
"image-key": e.optionImageKey,
|
|
312
351
|
"icon-key": e.optionIconKey,
|
|
@@ -315,100 +354,112 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
315
354
|
"end-icon-type": e.optionEndIconType,
|
|
316
355
|
"end-text-icon-key": e.optionsEndTextIconKey,
|
|
317
356
|
"option-flag-key": e.optionFlagKey,
|
|
357
|
+
"warning-key": e.optionWarningKey,
|
|
318
358
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
319
359
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
320
|
-
"
|
|
321
|
-
|
|
360
|
+
"tooltip-placement": e.optionTooltipPosition,
|
|
361
|
+
"is-multi": e.multi,
|
|
362
|
+
"min-max-selection-tooltip-message": t(X)?.tooltipMessage
|
|
363
|
+
}, Ce({ _: 2 }, [
|
|
364
|
+
i.$slots["option-end"] ? {
|
|
365
|
+
name: "option-end",
|
|
366
|
+
fn: u(({ option: b }) => [
|
|
367
|
+
y(i.$slots, "option-end", { option: b }, void 0, !0)
|
|
368
|
+
]),
|
|
369
|
+
key: "0"
|
|
370
|
+
} : void 0
|
|
371
|
+
]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
|
|
322
372
|
], !0)
|
|
323
|
-
], 8,
|
|
324
|
-
e.loading || e.loadMoreLoading ? (
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
])) :
|
|
373
|
+
], 8, Ye))), 128)) : s("", !0),
|
|
374
|
+
e.loading || e.loadMoreLoading ? (d(), r("li", Xe, [
|
|
375
|
+
a(t(K), { round: "" }),
|
|
376
|
+
a(t(K), { round: "" }),
|
|
377
|
+
a(t(K), { round: "" }),
|
|
378
|
+
a(t(K), { round: "" })
|
|
379
|
+
])) : s("", !0)
|
|
330
380
|
], 16)
|
|
331
381
|
], 16),
|
|
332
|
-
e.multi ? (
|
|
333
|
-
|
|
334
|
-
|
|
382
|
+
e.multi ? (d(), r("div", qe, [
|
|
383
|
+
f("div", je, [
|
|
384
|
+
e.showClearAll ? (d(), F(t(N), m(
|
|
335
385
|
{
|
|
386
|
+
key: 0,
|
|
336
387
|
ref_key: "clearAll",
|
|
337
|
-
ref:
|
|
388
|
+
ref: me,
|
|
338
389
|
size: "small",
|
|
339
390
|
variant: "text",
|
|
340
391
|
color: "primary"
|
|
341
392
|
},
|
|
342
393
|
t(g)[t(p).ACTION_CLEAR_ALL],
|
|
343
394
|
{
|
|
344
|
-
onClick: l[6] || (l[6] = () => t(
|
|
395
|
+
onClick: l[6] || (l[6] = () => t(G)(!1))
|
|
345
396
|
}
|
|
346
397
|
), {
|
|
347
398
|
default: u(() => [
|
|
348
399
|
T(" Clear all ")
|
|
349
400
|
]),
|
|
350
401
|
_: 1
|
|
351
|
-
}, 16)
|
|
402
|
+
}, 16)) : s("", !0)
|
|
352
403
|
]),
|
|
353
|
-
|
|
354
|
-
|
|
404
|
+
f("div", Je, [
|
|
405
|
+
a(t(N), m(
|
|
355
406
|
{
|
|
356
407
|
ref_key: "cancel",
|
|
357
|
-
ref:
|
|
408
|
+
ref: ce,
|
|
358
409
|
size: "small",
|
|
359
410
|
variant: "outlined",
|
|
360
411
|
color: "primary"
|
|
361
412
|
},
|
|
362
413
|
t(g)[t(p).ACTION_CANCEL],
|
|
363
|
-
{ onClick: t(
|
|
414
|
+
{ onClick: t(ae) }
|
|
364
415
|
), {
|
|
365
416
|
default: u(() => [
|
|
366
417
|
T(" Cancel ")
|
|
367
418
|
]),
|
|
368
419
|
_: 1
|
|
369
420
|
}, 16, ["onClick"]),
|
|
370
|
-
|
|
421
|
+
a(t(N), m({
|
|
371
422
|
ref_key: "apply",
|
|
372
|
-
ref:
|
|
423
|
+
ref: ue,
|
|
373
424
|
"data-testid": "mutli-apply",
|
|
374
425
|
size: "small",
|
|
375
426
|
class: "apply-button"
|
|
376
|
-
}, t(g)[t(p).ACTION_APPLY], { onClick: t(
|
|
427
|
+
}, t(g)[t(p).ACTION_APPLY], { onClick: t(de) }), {
|
|
377
428
|
default: u(() => [
|
|
378
429
|
T(" Apply ")
|
|
379
430
|
]),
|
|
380
431
|
_: 1
|
|
381
432
|
}, 16, ["onClick"])
|
|
382
433
|
])
|
|
383
|
-
])) :
|
|
384
|
-
], 34)) :
|
|
385
|
-
], 6)) :
|
|
434
|
+
])) : s("", !0)
|
|
435
|
+
], 34)) : s("", !0)
|
|
436
|
+
], 6)) : s("", !0)
|
|
386
437
|
]),
|
|
387
438
|
_: 3
|
|
388
439
|
})
|
|
389
440
|
]),
|
|
390
441
|
default: u(() => [
|
|
391
|
-
|
|
392
|
-
class:
|
|
393
|
-
"button__container--open": !!t(
|
|
442
|
+
f("div", {
|
|
443
|
+
class: B(["button__container", {
|
|
444
|
+
"button__container--open": !!t(c),
|
|
394
445
|
[`button__container--${e.size}`]: !0,
|
|
395
446
|
"button__container--disabled": e.disabled
|
|
396
447
|
}])
|
|
397
448
|
}, [
|
|
398
|
-
|
|
449
|
+
f("div", {
|
|
399
450
|
ref_key: "buttonRef",
|
|
400
|
-
ref:
|
|
451
|
+
ref: W
|
|
401
452
|
}, [
|
|
402
|
-
|
|
453
|
+
y(i.$slots, "dropdown-trigger", {
|
|
403
454
|
buttonTriggerProps: {
|
|
404
|
-
open: t(
|
|
455
|
+
open: t(c),
|
|
405
456
|
disabled: e.disabled,
|
|
406
|
-
label: t(
|
|
407
|
-
onClick: () => t(
|
|
457
|
+
label: t(le) || e.placeholder,
|
|
458
|
+
onClick: () => t(v)()
|
|
408
459
|
},
|
|
409
460
|
defaultTriggerProps: {
|
|
410
461
|
placeholder: e.placeholder,
|
|
411
|
-
open: t(
|
|
462
|
+
open: t(c),
|
|
412
463
|
label: e.triggerLabel,
|
|
413
464
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
414
465
|
mandatory: e.mandatory,
|
|
@@ -431,15 +482,15 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
431
482
|
statusDotType: e.statusType,
|
|
432
483
|
size: e.size,
|
|
433
484
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
434
|
-
allSelected: t(
|
|
435
|
-
onKeydown: t(
|
|
436
|
-
onClick:
|
|
485
|
+
allSelected: t(A),
|
|
486
|
+
onKeydown: t(P),
|
|
487
|
+
onClick: Y
|
|
437
488
|
}
|
|
438
489
|
}, () => [
|
|
439
|
-
t(
|
|
440
|
-
(
|
|
490
|
+
t(H) ? (d(), r("div", Re, [
|
|
491
|
+
(d(), F(Ke(t(H)), {
|
|
441
492
|
placeholder: e.placeholder,
|
|
442
|
-
open: t(
|
|
493
|
+
open: t(c),
|
|
443
494
|
label: e.triggerLabel,
|
|
444
495
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
445
496
|
mandatory: e.mandatory,
|
|
@@ -462,49 +513,50 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
462
513
|
"status-dot-type": e.statusType,
|
|
463
514
|
size: e.size,
|
|
464
515
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
465
|
-
"all-selected": t(
|
|
466
|
-
onKeydown: t(
|
|
467
|
-
onClick:
|
|
468
|
-
onCopyToClipboard: l[0] || (l[0] = (
|
|
516
|
+
"all-selected": t(A),
|
|
517
|
+
onKeydown: t(P),
|
|
518
|
+
onClick: Y,
|
|
519
|
+
onCopyToClipboard: l[0] || (l[0] = (n) => V("copyToClipboard"))
|
|
469
520
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
470
|
-
])) :
|
|
471
|
-
e.predefinedTrigger === t(
|
|
472
|
-
|
|
473
|
-
onClick: l[1] || (l[1] = (
|
|
521
|
+
])) : s("", !0),
|
|
522
|
+
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div", ze, [
|
|
523
|
+
a(t(Oe), {
|
|
524
|
+
onClick: l[1] || (l[1] = (n) => t(v)())
|
|
474
525
|
})
|
|
475
|
-
])) :
|
|
476
|
-
e.predefinedTrigger === t(
|
|
477
|
-
|
|
478
|
-
open: t(
|
|
526
|
+
])) : s("", !0),
|
|
527
|
+
e.predefinedTrigger === t(w).CHIP ? (d(), r("div", We, [
|
|
528
|
+
a(t(Le), {
|
|
529
|
+
open: t(c),
|
|
479
530
|
label: e.placeholder,
|
|
480
531
|
"test-id": e.testId,
|
|
481
532
|
options: e.options,
|
|
482
533
|
"selected-option": e.multi ? t(L) : t(h),
|
|
483
534
|
"display-value": e.displayValue,
|
|
484
535
|
multi: e.multi,
|
|
485
|
-
"all-selected": t(
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
536
|
+
"all-selected": t(A),
|
|
537
|
+
"shown-values-count": e.triggerShownValuesCount,
|
|
538
|
+
onClick: l[2] || (l[2] = (n) => t(v)()),
|
|
539
|
+
onClear: l[3] || (l[3] = (n) => t(G)())
|
|
540
|
+
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
541
|
+
])) : s("", !0)
|
|
490
542
|
], !0)
|
|
491
543
|
], 512)
|
|
492
544
|
], 2)
|
|
493
545
|
]),
|
|
494
546
|
_: 3
|
|
495
547
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
496
|
-
e.triggerFeedbackText ? (
|
|
548
|
+
e.triggerFeedbackText ? (d(), F(De, {
|
|
497
549
|
key: 0,
|
|
498
550
|
text: e.triggerFeedbackText,
|
|
499
551
|
variant: e.triggerFeedbackVariant,
|
|
500
552
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
501
553
|
"test-id": e.testId,
|
|
502
554
|
class: "dropdown-field-help-text"
|
|
503
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
555
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : s("", !0)
|
|
504
556
|
])
|
|
505
|
-
], 16,
|
|
557
|
+
], 16, $e));
|
|
506
558
|
}
|
|
507
559
|
});
|
|
508
560
|
export {
|
|
509
|
-
|
|
561
|
+
vt as default
|
|
510
562
|
};
|