@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.41
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_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_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 +69 -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,69 +1,88 @@
|
|
|
1
|
-
import "../../ChartHeader.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import "../../ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css"; import { defineComponent as k, computed as m, openBlock as r, createElementBlock as C, normalizeClass as S, createElementVNode as c, createVNode as p, createSlots as w, withCtx as f, renderSlot as x, unref as a, createTextVNode as B, toDisplayString as N, createBlock as l, normalizeProps as y, mergeProps as T, createCommentVNode as d, isRef as g } from "vue";
|
|
2
|
+
import D from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import P from "../switch/v4/SwitchV4.vue.js";
|
|
4
|
+
import H from "../chip/v4/ChipV4.vue.js";
|
|
5
|
+
import { ChartType as n, TrendDirection as L } from "./types.js";
|
|
6
|
+
import b from "./ChartHeaderTrend.vue.js";
|
|
7
|
+
import $ from "./SubHeader.vue.js";
|
|
8
|
+
const z = { class: "header-texts" }, E = { class: "header-row" }, U = { class: "header-actions" }, I = /* @__PURE__ */ k({
|
|
7
9
|
__name: "ChartHeader",
|
|
8
10
|
props: {
|
|
9
|
-
chartType: { default:
|
|
10
|
-
|
|
11
|
+
chartType: { default: n.Line },
|
|
12
|
+
typeSwitcher: { type: Boolean, default: !0 },
|
|
11
13
|
header: { default: "" },
|
|
12
14
|
subheader: { default: "" },
|
|
13
|
-
|
|
15
|
+
subheaderTooltip: { default: null },
|
|
16
|
+
trendTooltip: { default: null },
|
|
17
|
+
compact: { type: Boolean, default: !1 },
|
|
18
|
+
trendValue: { default: null },
|
|
19
|
+
trendDirection: { default: L.UP },
|
|
20
|
+
noteText: { default: "" }
|
|
14
21
|
},
|
|
15
22
|
emits: ["update:chartType"],
|
|
16
|
-
setup(e, { emit:
|
|
17
|
-
const
|
|
18
|
-
{ id:
|
|
19
|
-
{ id:
|
|
20
|
-
{ id:
|
|
21
|
-
],
|
|
23
|
+
setup(e, { emit: V }) {
|
|
24
|
+
const o = e, u = [
|
|
25
|
+
{ id: n.Line, icon: "chart-line-up" },
|
|
26
|
+
{ id: n.Bar, icon: "chart-bar" },
|
|
27
|
+
{ id: n.StackedLine, icon: "chart-line" }
|
|
28
|
+
], i = m({
|
|
22
29
|
get() {
|
|
23
|
-
return
|
|
30
|
+
return u.find(({ id: t }) => t === o.chartType);
|
|
24
31
|
},
|
|
25
32
|
set(t) {
|
|
26
|
-
|
|
33
|
+
V("update:chartType", t.id);
|
|
27
34
|
}
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
35
|
+
}), s = m(() => ({
|
|
36
|
+
value: o.trendValue,
|
|
37
|
+
direction: o.trendDirection,
|
|
38
|
+
trendTooltip: o.trendTooltip
|
|
39
|
+
}));
|
|
40
|
+
return (t, h) => (r(), C("div", {
|
|
41
|
+
class: S(["chart-header", { "chart-header--compact": e.compact }])
|
|
42
|
+
}, [
|
|
43
|
+
c("div", z, [
|
|
44
|
+
p($, {
|
|
45
|
+
subheader: e.subheader,
|
|
46
|
+
"subheader-tooltip": e.subheaderTooltip,
|
|
47
|
+
"show-separator": e.compact && (!!e.header || !!e.trendValue)
|
|
48
|
+
}, w({ _: 2 }, [
|
|
49
|
+
t.$slots["subheader-tooltip"] ? {
|
|
50
|
+
name: "subheader-tooltip",
|
|
51
|
+
fn: f(() => [
|
|
52
|
+
x(t.$slots, "subheader-tooltip", {}, void 0, !0)
|
|
53
|
+
]),
|
|
54
|
+
key: "0"
|
|
55
|
+
} : void 0
|
|
56
|
+
]), 1032, ["subheader", "subheader-tooltip", "show-separator"]),
|
|
57
|
+
c("div", E, [
|
|
58
|
+
p(a(D), {
|
|
59
|
+
class: "header-text",
|
|
60
|
+
variant: e.compact ? "h5" : "chart2"
|
|
61
|
+
}, {
|
|
62
|
+
default: f(() => [
|
|
63
|
+
B(N(e.header), 1)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["variant"]),
|
|
67
|
+
!e.compact && e.trendValue !== null ? (r(), l(b, y(T({ key: 0 }, a(s))), null, 16)) : d("", !0)
|
|
68
|
+
]),
|
|
69
|
+
e.compact && e.trendValue !== null ? (r(), l(b, y(T({ key: 0 }, a(s))), null, 16)) : d("", !0)
|
|
57
70
|
]),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
c("div", U, [
|
|
72
|
+
e.noteText ? (r(), l(a(H), {
|
|
73
|
+
key: 0,
|
|
74
|
+
label: `Note: ${e.noteText}`
|
|
75
|
+
}, null, 8, ["label"])) : d("", !0),
|
|
76
|
+
e.typeSwitcher ? (r(), l(a(P), {
|
|
77
|
+
key: 1,
|
|
78
|
+
modelValue: a(i),
|
|
79
|
+
"onUpdate:modelValue": h[0] || (h[0] = (v) => g(i) ? i.value = v : null),
|
|
80
|
+
options: u
|
|
81
|
+
}, null, 8, ["modelValue"])) : d("", !0)
|
|
82
|
+
])
|
|
83
|
+
], 2));
|
|
65
84
|
}
|
|
66
85
|
});
|
|
67
86
|
export {
|
|
68
|
-
|
|
87
|
+
I as default
|
|
69
88
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TrendDirection } from '@/components/chart/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
value?: number | string;
|
|
4
|
+
direction?: TrendDirection;
|
|
5
|
+
trendTooltip?: {
|
|
6
|
+
header?: string;
|
|
7
|
+
rangeCurrent?: string;
|
|
8
|
+
rangePrevious?: string;
|
|
9
|
+
};
|
|
10
|
+
}>, {
|
|
11
|
+
value: any;
|
|
12
|
+
direction: TrendDirection;
|
|
13
|
+
trendTooltip: any;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
value?: number | string;
|
|
16
|
+
direction?: TrendDirection;
|
|
17
|
+
trendTooltip?: {
|
|
18
|
+
header?: string;
|
|
19
|
+
rangeCurrent?: string;
|
|
20
|
+
rangePrevious?: string;
|
|
21
|
+
};
|
|
22
|
+
}>, {
|
|
23
|
+
value: any;
|
|
24
|
+
direction: TrendDirection;
|
|
25
|
+
trendTooltip: any;
|
|
26
|
+
}>>>, {
|
|
27
|
+
value: number | string;
|
|
28
|
+
direction: TrendDirection;
|
|
29
|
+
trendTooltip: any;
|
|
30
|
+
}>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./ChartHeaderTrend.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2f916aeb"]]);
|
|
5
|
+
export {
|
|
6
|
+
a as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css"; import { defineComponent as g, computed as p, openBlock as n, createElementBlock as m, normalizeClass as y, createVNode as l, unref as t, withCtx as o, createElementVNode as u, createBlock as s, createTextVNode as a, toDisplayString as d, createCommentVNode as c, pushScopeId as C, popScopeId as _ } from "vue";
|
|
2
|
+
import i from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import b from "../icon/v4/IconV4.vue.js";
|
|
4
|
+
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
+
import x from "../tooltip/v4/TooltipV4.vue.js";
|
|
6
|
+
import { TrendDirection as h } from "./types.js";
|
|
7
|
+
const f = (e) => (C("data-v-2f916aeb"), e = e(), _(), e), k = { class: "trend-tooltip" }, N = {
|
|
8
|
+
key: 2,
|
|
9
|
+
class: "separator"
|
|
10
|
+
}, I = /* @__PURE__ */ f(() => /* @__PURE__ */ u("hr", null, null, -1)), P = /* @__PURE__ */ f(() => /* @__PURE__ */ u("hr", null, null, -1)), U = /* @__PURE__ */ g({
|
|
11
|
+
__name: "ChartHeaderTrend",
|
|
12
|
+
props: {
|
|
13
|
+
value: { default: null },
|
|
14
|
+
direction: { default: h.UP },
|
|
15
|
+
trendTooltip: { default: null }
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
const r = e, T = p(
|
|
19
|
+
() => r.trendTooltip?.header || r.trendTooltip?.rangeCurrent || r.trendTooltip?.rangePrevious
|
|
20
|
+
), v = p(
|
|
21
|
+
() => r.direction === h.NEUTRAL ? "minus" : `arrow-${r.direction}`
|
|
22
|
+
);
|
|
23
|
+
return (S, V) => (n(), m("div", {
|
|
24
|
+
class: y(["chart-trend", [`chart-trend--${e.direction}`]])
|
|
25
|
+
}, [
|
|
26
|
+
l(t(x), {
|
|
27
|
+
disabled: !t(T)
|
|
28
|
+
}, {
|
|
29
|
+
tooltip: o(() => [
|
|
30
|
+
u("div", k, [
|
|
31
|
+
e.trendTooltip?.header ? (n(), s(t(i), {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "trend-tooltip__header",
|
|
34
|
+
variant: "subtitle2"
|
|
35
|
+
}, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
a(d(e.trendTooltip.header), 1)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
})) : c("", !0),
|
|
41
|
+
e.trendTooltip?.rangeCurrent ? (n(), s(t(i), {
|
|
42
|
+
key: 1,
|
|
43
|
+
variant: "body2",
|
|
44
|
+
class: "trend-tooltip__text"
|
|
45
|
+
}, {
|
|
46
|
+
default: o(() => [
|
|
47
|
+
a(d(e.trendTooltip.rangeCurrent), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})) : c("", !0),
|
|
51
|
+
e.trendTooltip?.rangeCurrent && e.trendTooltip?.rangePrevious ? (n(), m("div", N, [
|
|
52
|
+
I,
|
|
53
|
+
l(t(i), {
|
|
54
|
+
class: "separator__text",
|
|
55
|
+
variant: "caption"
|
|
56
|
+
}, {
|
|
57
|
+
default: o(() => [
|
|
58
|
+
a(" vs. ")
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}),
|
|
62
|
+
P
|
|
63
|
+
])) : c("", !0),
|
|
64
|
+
e.trendTooltip?.rangePrevious ? (n(), s(t(i), {
|
|
65
|
+
key: 3,
|
|
66
|
+
variant: "body2",
|
|
67
|
+
class: "trend-tooltip__text"
|
|
68
|
+
}, {
|
|
69
|
+
default: o(() => [
|
|
70
|
+
a(d(e.trendTooltip.rangePrevious), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})) : c("", !0)
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
default: o(() => [
|
|
77
|
+
l(t(b), {
|
|
78
|
+
class: "trend-icon",
|
|
79
|
+
type: "bold",
|
|
80
|
+
name: t(v),
|
|
81
|
+
size: "15px"
|
|
82
|
+
}, null, 8, ["name"]),
|
|
83
|
+
l(t(i), { variant: "chipLabel" }, {
|
|
84
|
+
default: o(() => [
|
|
85
|
+
a(d(e.value), 1)
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["disabled"])
|
|
92
|
+
], 2));
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
U as default
|
|
97
|
+
};
|
|
@@ -2,37 +2,61 @@ import { LegendItem } from '@/components/chart/types';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
items: LegendItem[];
|
|
4
4
|
visibleIds: unknown[];
|
|
5
|
+
highlightedId?: string | number;
|
|
5
6
|
minVisible?: number;
|
|
6
7
|
maxVisible?: number;
|
|
7
8
|
maxLimitTooltipText?: string;
|
|
9
|
+
sortSelected?: unknown;
|
|
10
|
+
sortOptions?: unknown[];
|
|
11
|
+
sortOptionNameKey?: string;
|
|
8
12
|
}>, {
|
|
9
13
|
items: () => any[];
|
|
10
14
|
visibleIds: () => any[];
|
|
15
|
+
highlightedId: any;
|
|
11
16
|
minVisible: number;
|
|
12
17
|
maxVisible: number;
|
|
13
18
|
maxLimitTooltipText: string;
|
|
19
|
+
sortSelected: any;
|
|
20
|
+
sortOptions: () => any[];
|
|
21
|
+
sortOptionNameKey: string;
|
|
14
22
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
23
|
"update:visibleIds": (visibleIds: unknown[]) => void;
|
|
24
|
+
"update:sortSelected": (sortOption: unknown) => void;
|
|
25
|
+
"update:highlightedId": (id: string | number) => void;
|
|
16
26
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
27
|
items: LegendItem[];
|
|
18
28
|
visibleIds: unknown[];
|
|
29
|
+
highlightedId?: string | number;
|
|
19
30
|
minVisible?: number;
|
|
20
31
|
maxVisible?: number;
|
|
21
32
|
maxLimitTooltipText?: string;
|
|
33
|
+
sortSelected?: unknown;
|
|
34
|
+
sortOptions?: unknown[];
|
|
35
|
+
sortOptionNameKey?: string;
|
|
22
36
|
}>, {
|
|
23
37
|
items: () => any[];
|
|
24
38
|
visibleIds: () => any[];
|
|
39
|
+
highlightedId: any;
|
|
25
40
|
minVisible: number;
|
|
26
41
|
maxVisible: number;
|
|
27
42
|
maxLimitTooltipText: string;
|
|
43
|
+
sortSelected: any;
|
|
44
|
+
sortOptions: () => any[];
|
|
45
|
+
sortOptionNameKey: string;
|
|
28
46
|
}>>> & {
|
|
29
47
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
48
|
+
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
49
|
+
"onUpdate:highlightedId"?: (id: string | number) => any;
|
|
30
50
|
}, {
|
|
31
51
|
items: LegendItem[];
|
|
32
52
|
visibleIds: unknown[];
|
|
53
|
+
highlightedId: string | number;
|
|
33
54
|
minVisible: number;
|
|
34
55
|
maxVisible: number;
|
|
35
56
|
maxLimitTooltipText: string;
|
|
57
|
+
sortSelected: any;
|
|
58
|
+
sortOptions: unknown[];
|
|
59
|
+
sortOptionNameKey: string;
|
|
36
60
|
}>;
|
|
37
61
|
export default _default;
|
|
38
62
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartLegend.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartLegend.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-6103d8bd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,132 +1,151 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
2
|
-
import { useVirtualList as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { DEFAULT_MIN_VISIBLE as
|
|
7
|
-
import
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css"; import { defineComponent as F, ref as H, computed as v, openBlock as s, createElementBlock as u, createElementVNode as r, createVNode as c, unref as o, createBlock as g, isRef as R, createCommentVNode as x, mergeProps as T, withCtx as p, createTextVNode as I, Fragment as $, renderList as z, normalizeClass as K, withModifiers as q, toDisplayString as V } from "vue";
|
|
2
|
+
import { useVModel as C, useVirtualList as G } from "@vueuse/core";
|
|
3
|
+
import k from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import X from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import j from "../search/v4/SearchV4.vue.js";
|
|
6
|
+
import { DEFAULT_MIN_VISIBLE as J, DEFAULT_MAX_VISIBLE as Q } from "./consts.js";
|
|
7
|
+
import W from "../icon/v4/IconV4.vue.js";
|
|
8
8
|
import "../icon/v4/IconFlag.vue.js";
|
|
9
|
-
import
|
|
10
|
-
|
|
9
|
+
import Y from "../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
import Z from "./LegendSorting.vue.js";
|
|
11
|
+
const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "empty-list"
|
|
13
|
-
},
|
|
14
|
+
}, le = ["onMouseenter"], ie = ["onClick"], se = { class: "label-container" }, be = /* @__PURE__ */ F({
|
|
14
15
|
__name: "ChartLegend",
|
|
15
16
|
props: {
|
|
16
17
|
items: { default: () => [] },
|
|
17
18
|
visibleIds: { default: () => [] },
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
highlightedId: { default: null },
|
|
20
|
+
minVisible: { default: J },
|
|
21
|
+
maxVisible: { default: Q },
|
|
22
|
+
maxLimitTooltipText: { default: "" },
|
|
23
|
+
sortSelected: { default: null },
|
|
24
|
+
sortOptions: { default: () => [] },
|
|
25
|
+
sortOptionNameKey: { default: "" }
|
|
21
26
|
},
|
|
22
|
-
emits: ["update:visibleIds"],
|
|
23
|
-
setup(
|
|
24
|
-
const l =
|
|
25
|
-
|
|
27
|
+
emits: ["update:visibleIds", "update:sortSelected", "update:highlightedId"],
|
|
28
|
+
setup(a, { emit: m }) {
|
|
29
|
+
const l = a, M = 32, h = C(l, "sortSelected", m), y = C(l, "highlightedId", m), w = (t) => {
|
|
30
|
+
y.value = n(t) ? t.id : null;
|
|
31
|
+
}, E = () => {
|
|
32
|
+
y.value = null;
|
|
33
|
+
}, f = H(""), S = v(() => {
|
|
34
|
+
const t = f.value.toLowerCase();
|
|
26
35
|
return l.items.filter(
|
|
27
36
|
(i) => i.label.toLowerCase().includes(t)
|
|
28
37
|
);
|
|
29
|
-
}),
|
|
38
|
+
}), n = (t) => l.visibleIds.includes(t.id), L = v(
|
|
30
39
|
() => l.visibleIds.length >= l.maxVisible
|
|
31
|
-
),
|
|
40
|
+
), N = v(
|
|
32
41
|
() => l.visibleIds.length <= l.minVisible
|
|
33
|
-
),
|
|
34
|
-
|
|
42
|
+
), d = (t) => N.value && n(t) || L.value && !n(t), B = (t) => !l.maxLimitTooltipText || n(t) || !L.value, D = (t, i) => {
|
|
43
|
+
m(
|
|
35
44
|
"update:visibleIds",
|
|
36
45
|
t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
|
|
37
46
|
);
|
|
38
|
-
}, { list:
|
|
39
|
-
itemHeight:
|
|
47
|
+
}, { list: _, containerProps: O, wrapperProps: P } = G(S, {
|
|
48
|
+
itemHeight: M,
|
|
40
49
|
overscan: 10
|
|
41
|
-
}),
|
|
42
|
-
|
|
50
|
+
}), U = (t) => {
|
|
51
|
+
d(t) || D(!n(t), t);
|
|
43
52
|
};
|
|
44
|
-
return (t, i) => (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
modelValue:
|
|
48
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) =>
|
|
49
|
-
}, null, 8, ["modelValue"])
|
|
53
|
+
return (t, i) => (s(), u("div", ee, [
|
|
54
|
+
r("div", te, [
|
|
55
|
+
c(o(j), {
|
|
56
|
+
modelValue: f.value,
|
|
57
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => f.value = e)
|
|
58
|
+
}, null, 8, ["modelValue"]),
|
|
59
|
+
a.sortOptions?.length > 0 ? (s(), g(Z, {
|
|
60
|
+
key: 0,
|
|
61
|
+
selected: o(h),
|
|
62
|
+
"onUpdate:selected": i[1] || (i[1] = (e) => R(h) ? h.value = e : null),
|
|
63
|
+
options: a.sortOptions,
|
|
64
|
+
"option-name-key": a.sortOptionNameKey
|
|
65
|
+
}, null, 8, ["selected", "options", "option-name-key"])) : x("", !0)
|
|
50
66
|
]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
o(
|
|
54
|
-
|
|
67
|
+
r("div", T({ class: "legend" }, o(O)), [
|
|
68
|
+
r("ul", T({ class: "legend__list" }, o(P)), [
|
|
69
|
+
o(_).length === 0 ? (s(), u("li", oe, [
|
|
70
|
+
c(o(k), { variant: "body2" }, {
|
|
55
71
|
default: p(() => [
|
|
56
|
-
|
|
72
|
+
I("No results")
|
|
57
73
|
]),
|
|
58
74
|
_: 1
|
|
59
75
|
})
|
|
60
|
-
])) : (
|
|
61
|
-
key:
|
|
62
|
-
class:
|
|
76
|
+
])) : (s(!0), u($, { key: 1 }, z(o(_), ({ data: e, index: A }) => (s(), u("li", {
|
|
77
|
+
key: A,
|
|
78
|
+
class: K({ "disabled-item": d(e) }),
|
|
79
|
+
onMouseenter: (b) => w(e),
|
|
80
|
+
onMouseleave: E
|
|
63
81
|
}, [
|
|
64
|
-
|
|
65
|
-
text:
|
|
66
|
-
disabled:
|
|
82
|
+
c(o(Y), {
|
|
83
|
+
text: a.maxLimitTooltipText,
|
|
84
|
+
disabled: B(e),
|
|
67
85
|
class: "disabled-tooltip"
|
|
68
86
|
}, {
|
|
69
87
|
default: p(() => [
|
|
70
|
-
|
|
88
|
+
r("div", {
|
|
71
89
|
class: "item-wrapper",
|
|
72
|
-
onClick: (
|
|
90
|
+
onClick: (b) => U(e)
|
|
73
91
|
}, [
|
|
74
|
-
|
|
92
|
+
c(o(X), {
|
|
75
93
|
color: e.color,
|
|
76
|
-
"is-checked":
|
|
77
|
-
disabled:
|
|
78
|
-
onClick: i[
|
|
79
|
-
(
|
|
80
|
-
|
|
94
|
+
"is-checked": n(e),
|
|
95
|
+
disabled: d(e),
|
|
96
|
+
onClick: i[2] || (i[2] = q(
|
|
97
|
+
(b) => {
|
|
98
|
+
b.stopPropagation();
|
|
81
99
|
},
|
|
82
100
|
["stop"]
|
|
83
101
|
))
|
|
84
102
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
85
|
-
e.icon ? (
|
|
103
|
+
e.icon ? (s(), g(o(W), {
|
|
86
104
|
key: 0,
|
|
87
105
|
class: "icon-color",
|
|
88
106
|
type: e.iconType,
|
|
89
107
|
name: e.icon,
|
|
90
108
|
size: "16px"
|
|
91
|
-
}, null, 8, ["type", "name"])) :
|
|
92
|
-
|
|
93
|
-
|
|
109
|
+
}, null, 8, ["type", "name"])) : x("", !0),
|
|
110
|
+
r("div", se, [
|
|
111
|
+
c(o(k), {
|
|
94
112
|
variant: "body2",
|
|
95
113
|
class: "legend-label",
|
|
96
114
|
"is-truncated": "",
|
|
97
|
-
"with-tooltip": !
|
|
115
|
+
"with-tooltip": !d(e),
|
|
98
116
|
"tooltip-text": e.label,
|
|
99
117
|
"tooltip-placement": "left"
|
|
100
118
|
}, {
|
|
101
119
|
default: p(() => [
|
|
102
|
-
|
|
120
|
+
I(V(e.label), 1)
|
|
103
121
|
]),
|
|
104
122
|
_: 2
|
|
105
123
|
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
106
|
-
s(o(
|
|
124
|
+
e.caption ? (s(), g(o(k), {
|
|
125
|
+
key: 0,
|
|
107
126
|
variant: "caption",
|
|
108
127
|
class: "legend-caption legend-label",
|
|
109
128
|
"is-truncated": "",
|
|
110
|
-
"with-tooltip": !
|
|
129
|
+
"with-tooltip": !d(e),
|
|
111
130
|
"tooltip-text": e.caption,
|
|
112
131
|
"tooltip-placement": "left"
|
|
113
132
|
}, {
|
|
114
133
|
default: p(() => [
|
|
115
|
-
|
|
134
|
+
I(V(e.caption), 1)
|
|
116
135
|
]),
|
|
117
136
|
_: 2
|
|
118
|
-
}, 1032, ["with-tooltip", "tooltip-text"])
|
|
137
|
+
}, 1032, ["with-tooltip", "tooltip-text"])) : x("", !0)
|
|
119
138
|
])
|
|
120
|
-
], 8,
|
|
139
|
+
], 8, ie)
|
|
121
140
|
]),
|
|
122
141
|
_: 2
|
|
123
142
|
}, 1032, ["text", "disabled"])
|
|
124
|
-
],
|
|
143
|
+
], 42, le))), 128))
|
|
125
144
|
], 16)
|
|
126
145
|
], 16)
|
|
127
146
|
]));
|
|
128
147
|
}
|
|
129
148
|
});
|
|
130
149
|
export {
|
|
131
|
-
|
|
150
|
+
be as default
|
|
132
151
|
};
|