@ironsource/shared-ui 2.1.12-rc.9 → 2.1.12-test.100
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/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- 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/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_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_7e61692c_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/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_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_a869d327_lang.css +1 -0
- 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/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/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/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_63dc057e_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 +128 -10
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +152 -86
- package/components/chart/ChartHeader.vue.d.ts +41 -7
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +67 -65
- package/components/chart/ChartHeaderTrend.vue.d.ts +24 -5
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +89 -21
- package/components/chart/ChartLegend.vue.d.ts +29 -0
- package/components/chart/ChartLegend.vue.js +2 -2
- package/components/chart/ChartLegend.vue2.js +88 -65
- package/components/chart/ChartPlane.vue.d.ts +111 -13
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +321 -240
- package/components/chart/ChartStoryArgs.d.ts +63 -2
- package/components/chart/ChartTooltip.vue.d.ts +27 -2
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +52 -54
- package/components/chart/LegendSorting.vue.d.ts +42 -0
- package/components/chart/LegendSorting.vue.js +47 -0
- package/components/chart/LegendSorting.vue2.js +4 -0
- package/components/chart/SettingsHeader.vue.d.ts +20 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +39 -31
- 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 +2 -2
- package/components/chart/composables/useChartHeight.js +16 -14
- package/components/chart/composables/useColorsMap.d.ts +5 -3
- package/components/chart/composables/useColorsMap.js +43 -12
- package/components/chart/consts.d.ts +29 -8
- package/components/chart/consts.js +45 -26
- package/components/chart/index.d.ts +492 -76
- package/components/chart/mockData.d.ts +33 -5
- package/components/chart/types.d.ts +35 -6
- package/components/chart/types.js +5 -2
- 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/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 +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/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 +108 -103
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- 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/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 +205 -176
- package/components/dropdown/v4/DropdownV4.vue.d.ts +41 -1
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +269 -206
- 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 +11 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +760 -162
- 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/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/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.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 +110 -110
- 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/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/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/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 +3 -0
- package/components/table/common/consts.js +7 -4
- package/components/table/v4/DataGrid.vue.d.ts +24 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +381 -302
- 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 +91 -90
- package/components/table/v4/index.d.ts +600 -298
- 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/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/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/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 +5309 -3205
- package/index.js +138 -116
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +22 -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/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/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_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_8d5521da_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/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/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_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/TextField.vue_vue_type_style_index_0_scoped_fce3948c_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_4ba9e4bd_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
|
@@ -1,34 +1,47 @@
|
|
|
1
|
-
import "../../ChartPlane.
|
|
2
|
-
import { Chart as
|
|
3
|
-
import { HoverVerticalLine as
|
|
4
|
-
import {
|
|
5
|
-
import { DEFAULT_TICK_COUNT as
|
|
6
|
-
import { ChartType as
|
|
7
|
-
import { useTooltipPosition as
|
|
8
|
-
import
|
|
9
|
-
import { hexColorToRgba as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ce, openBlock as p, createElementBlock as S, createVNode as ue, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
|
|
2
|
+
import { Chart as V, ArcElement as ye, LineElement as Ce, BarElement as ge, PointElement as be, LineController as xe, BarController as Ae, PieController as ke, ScatterController as Ee, CategoryScale as Se, LinearScale as Le, Filler as Re, Tooltip as Ie } from "chart.js";
|
|
3
|
+
import { HoverVerticalLine as De } from "./plugins/HoverVerticalLine.js";
|
|
4
|
+
import { prepareTickLabel as Be, formatValue as Oe } from "./utils/utils.js";
|
|
5
|
+
import { DEFAULT_TICK_COUNT as Pe, TOTALS_HELPER_KEY as F, LINE_DASH_STYLE as Ne, BASE_COLOR_KEY as M, CHART_PADDING as He, POINT_BORDER_COLOR as we, TICK_LABEL_COLOR as Y, TICK_LABEL_FONT as K, TICKS_EXTRA_PADDING as Ve, GRID_LINE_COLOR as U, HEADER_HEIGHT as Fe, COMPACT_HEADER_HEIGHT as Me, HOVER_AREA_TRANSPARENCY as Ye, HOVER_TRANSPARENCY as y, CHART_ITEM_TRANSPARENCY as Ke, INCOMPLETE_DATA_BAR_TRANSPARENCY as Ue, STACKED_LINE_TRANSPARENCY as _e } from "./consts.js";
|
|
6
|
+
import { ChartType as d, DateInterval as Ge, TooltipOrder as _, TrendDirection as $e } from "./types.js";
|
|
7
|
+
import { useTooltipPosition as ze } from "./composables/useTooltipPosition.js";
|
|
8
|
+
import We from "./ChartTooltip.vue.js";
|
|
9
|
+
import { hexColorToRgba as h } from "../../utils/color.js";
|
|
10
|
+
import Ze from "./ChartHeader.vue.js";
|
|
11
|
+
import { useMemoize as Xe, useVModel as je } from "@vueuse/core";
|
|
12
|
+
import qe from "../emptyState/v4/EmptyStateV4.vue.js";
|
|
13
|
+
import Je from "./ChartLoader.vue.js";
|
|
14
|
+
import { DEFAULT_CHART_COLOR as Qe } from "./colorPalette.js";
|
|
15
|
+
import { TotalType as G, calculateTotal as et } from "../../utils/totals.js";
|
|
16
|
+
import { isNullOrUndefined as tt } from "../../utils/utils.js";
|
|
17
|
+
import { storeOriginalDatasetColors as at, restoreOriginalDatasetColors as ot } from "./utils/highlightUtils.js";
|
|
18
|
+
import { useTestIdAttrs as lt } from "../../utils/testIds.js";
|
|
19
|
+
import { ChartTestIdModifiers as $ } from "../../testids/index.js";
|
|
20
|
+
const rt = { class: "chart-plane-container" }, it = {
|
|
17
21
|
key: 0,
|
|
22
|
+
class: "header-wrapper"
|
|
23
|
+
}, nt = {
|
|
24
|
+
key: 1,
|
|
18
25
|
class: "chart-plane"
|
|
19
|
-
},
|
|
26
|
+
}, st = { class: "chart" }, Rt = /* @__PURE__ */ ne({
|
|
20
27
|
__name: "ChartPlane",
|
|
21
28
|
props: {
|
|
22
29
|
dataSets: { default: () => [] },
|
|
23
30
|
visibleIds: { default: () => [] },
|
|
24
|
-
|
|
31
|
+
highlightedId: { default: null },
|
|
32
|
+
chartType: { default: d.Line },
|
|
25
33
|
parsing: { default: void 0 },
|
|
26
34
|
xAxisFormat: { default: "string" },
|
|
27
35
|
yAxisFormat: { default: "number" },
|
|
28
|
-
|
|
36
|
+
xAxisDateInterval: { default: Ge.DAILY },
|
|
37
|
+
tickCount: { default: Pe },
|
|
38
|
+
truncateTickLabels: { type: Boolean, default: !1 },
|
|
29
39
|
header: { default: "" },
|
|
30
40
|
subheader: { default: "" },
|
|
41
|
+
subheaderTooltip: { default: null },
|
|
42
|
+
keepSubheaderVisible: { type: Boolean, default: !1 },
|
|
31
43
|
loading: { type: Boolean, default: !1 },
|
|
44
|
+
empty: { type: Boolean, default: !1 },
|
|
32
45
|
noDataIcon: { default: "file-search" },
|
|
33
46
|
noDataTitle: { default: "No data to display" },
|
|
34
47
|
noDataSubtitle: { default: "Search again with different filters" },
|
|
@@ -36,271 +49,339 @@ const Ie = {
|
|
|
36
49
|
typeSwitcher: { type: Boolean, default: !0 },
|
|
37
50
|
height: { default: "100%" },
|
|
38
51
|
compactHeader: { type: Boolean, default: !1 },
|
|
52
|
+
noteText: { default: "" },
|
|
39
53
|
tooltipRespectsTopEdge: { type: Boolean, default: !0 },
|
|
54
|
+
tooltipTotalType: { default: G.Total },
|
|
55
|
+
tooltipTotalCalcFn: { type: Function, default: et },
|
|
56
|
+
tooltipOrder: { default: _.Legend },
|
|
40
57
|
trendValue: { default: null },
|
|
41
|
-
trendDirection: { default:
|
|
42
|
-
|
|
58
|
+
trendDirection: { default: $e.UP },
|
|
59
|
+
trendTooltip: { default: null },
|
|
60
|
+
totalsChart: { type: Boolean, default: !1 },
|
|
61
|
+
colorsMap: { default: () => ({}) },
|
|
62
|
+
valueSuffix: { default: "" },
|
|
63
|
+
valuePrefix: { default: "" },
|
|
64
|
+
indicateIncompleteData: { type: Boolean, default: !1 },
|
|
65
|
+
tooltipExcludeTotalItem: { type: Boolean, default: !1 },
|
|
66
|
+
testId: { default: "" }
|
|
43
67
|
},
|
|
44
68
|
emits: ["update:chartType"],
|
|
45
69
|
setup(o, { emit: z }) {
|
|
46
70
|
const e = o;
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
}))
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
se,
|
|
54
|
-
ce,
|
|
55
|
-
de,
|
|
56
|
-
ue,
|
|
57
|
-
pe,
|
|
58
|
-
fe,
|
|
59
|
-
he,
|
|
60
|
-
me,
|
|
61
|
-
ve,
|
|
71
|
+
se((t) => ({
|
|
72
|
+
"6a964917": n(oe),
|
|
73
|
+
"322ee3fc": o.height
|
|
74
|
+
}));
|
|
75
|
+
const W = Xe(Be);
|
|
76
|
+
V.register(
|
|
62
77
|
ye,
|
|
63
|
-
Ce
|
|
78
|
+
Ce,
|
|
79
|
+
ge,
|
|
80
|
+
be,
|
|
81
|
+
xe,
|
|
82
|
+
Ae,
|
|
83
|
+
ke,
|
|
84
|
+
Ee,
|
|
85
|
+
Se,
|
|
86
|
+
Le,
|
|
87
|
+
Re,
|
|
88
|
+
Ie,
|
|
89
|
+
De
|
|
64
90
|
);
|
|
65
|
-
const
|
|
91
|
+
const C = je(e, "chartType", z), Z = i(
|
|
66
92
|
() => e.withAnimation ? "" : "none"
|
|
67
|
-
),
|
|
68
|
-
let
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
93
|
+
), T = E(null);
|
|
94
|
+
let s = null;
|
|
95
|
+
const D = i(() => e.empty || e.dataSets.length === 0), u = i(() => !e.loading && !D.value), g = () => {
|
|
96
|
+
T.value && (s && s.destroy(), s = new V(T.value, P.value));
|
|
97
|
+
}, X = () => {
|
|
98
|
+
s && (s.data.datasets = O.value, s.options = P.value.options, s.update(Z.value));
|
|
73
99
|
};
|
|
74
|
-
|
|
75
|
-
t && (await
|
|
76
|
-
}),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
100
|
+
de(g), v(() => e.chartType, g), v(u, async (t) => {
|
|
101
|
+
t && (await ce(), g());
|
|
102
|
+
}), v(
|
|
103
|
+
[
|
|
104
|
+
() => e.visibleIds,
|
|
105
|
+
() => e.dataSets,
|
|
106
|
+
() => e.valuePrefix,
|
|
107
|
+
() => e.valueSuffix
|
|
108
|
+
],
|
|
109
|
+
X
|
|
110
|
+
);
|
|
111
|
+
const f = i(() => e.totalsChart), b = i(
|
|
112
|
+
() => e.chartType === d.StackedLine || e.chartType === d.StackedBar || f.value
|
|
113
|
+
), x = i(
|
|
114
|
+
() => e.chartType === d.Line || e.chartType === d.StackedLine
|
|
115
|
+
), j = i(() => f.value && !e.parsing.xAxisKey ? { ...e.parsing, xAxisKey: F } : e.parsing), q = i(() => f.value ? e.dataSets.map((t) => ({
|
|
82
116
|
...t,
|
|
83
117
|
data: t.data.map((r) => ({
|
|
84
118
|
...r,
|
|
85
|
-
[
|
|
119
|
+
[F]: t.label
|
|
86
120
|
}))
|
|
87
|
-
})) : e.dataSets),
|
|
88
|
-
() =>
|
|
89
|
-
),
|
|
90
|
-
|
|
121
|
+
})) : e.dataSets), A = i(
|
|
122
|
+
() => q.value.filter((t) => e.visibleIds.includes(t.id))
|
|
123
|
+
), J = (t) => e.colorsMap[t] || Qe, B = i(
|
|
124
|
+
() => A.value.length && A.value.every(
|
|
125
|
+
(t) => t.data.length === 1
|
|
126
|
+
)
|
|
127
|
+
), Q = (t) => (r) => {
|
|
128
|
+
const a = r.chart.data.labels.length - 1;
|
|
129
|
+
let l = Ke;
|
|
130
|
+
return e.chartType === d.Bar && e.indicateIncompleteData && r.index === a ? l = Ue : e.chartType === d.StackedLine && (l = _e), h(t, l);
|
|
131
|
+
}, O = i(() => A.value.map((t, r) => {
|
|
132
|
+
const a = J(t.id), l = b.value ? r !== 0 ? "-1" : "start" : void 0, m = e.indicateIncompleteData ? {
|
|
133
|
+
borderDash: (w) => {
|
|
134
|
+
if (w.p1DataIndex === w.chart.data.labels.length - 1)
|
|
135
|
+
return Ne;
|
|
136
|
+
}
|
|
137
|
+
} : void 0, k = Q(a);
|
|
91
138
|
return {
|
|
92
139
|
...t,
|
|
93
|
-
fill:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
pointBackgroundColor: r,
|
|
100
|
-
pointHoverBorderColor: r,
|
|
140
|
+
fill: l,
|
|
141
|
+
segment: m,
|
|
142
|
+
backgroundColor: k,
|
|
143
|
+
borderColor: a,
|
|
144
|
+
pointBackgroundColor: a,
|
|
145
|
+
pointHoverBorderColor: a,
|
|
101
146
|
maxBarThickness: 50,
|
|
102
147
|
clip: 5,
|
|
103
148
|
// draw a bit outside the chart area
|
|
104
149
|
icon: t.icon || null,
|
|
105
|
-
iconType: t.iconType || "branded"
|
|
150
|
+
iconType: t.iconType || "branded",
|
|
151
|
+
[M]: a
|
|
152
|
+
// store base color for later use
|
|
106
153
|
};
|
|
107
|
-
})),
|
|
108
|
-
() =>
|
|
109
|
-
|
|
110
|
-
)
|
|
111
|
-
),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
154
|
+
})), ee = i(
|
|
155
|
+
() => e.tooltipTotalType === G.Total ? "Total" : "Mean"
|
|
156
|
+
), te = (t) => t.filter(
|
|
157
|
+
(r) => !r.dataset.isTotal
|
|
158
|
+
), P = i(() => ({
|
|
159
|
+
type: e.chartType == d.Bar || e.chartType === d.StackedBar ? "bar" : "line",
|
|
160
|
+
// Chart Data
|
|
161
|
+
data: {
|
|
162
|
+
datasets: O.value
|
|
163
|
+
},
|
|
164
|
+
// Chart Options
|
|
165
|
+
options: {
|
|
166
|
+
parsing: j.value,
|
|
167
|
+
interaction: {
|
|
168
|
+
intersect: !1,
|
|
169
|
+
mode: f.value ? "point" : "index",
|
|
170
|
+
axis: "x"
|
|
117
171
|
},
|
|
118
|
-
//
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
callbacks: {
|
|
139
|
-
footer: (t) => {
|
|
140
|
-
const r = t.reduce((y, Y) => y + (Y.parsed.y || 0), 0);
|
|
141
|
-
return ["Total", String(r)];
|
|
142
|
-
}
|
|
172
|
+
// plugins
|
|
173
|
+
plugins: {
|
|
174
|
+
legend: { display: !1 },
|
|
175
|
+
title: { display: !1 },
|
|
176
|
+
hoverVerticalLine: x.value,
|
|
177
|
+
// tooltip
|
|
178
|
+
tooltip: {
|
|
179
|
+
enabled: !1,
|
|
180
|
+
position: "average",
|
|
181
|
+
external: ({ tooltip: t }) => {
|
|
182
|
+
c.value = { ...t };
|
|
183
|
+
},
|
|
184
|
+
callbacks: {
|
|
185
|
+
footer: (t) => {
|
|
186
|
+
const a = (e.tooltipExcludeTotalItem && t.length > 1 ? te(t) : t).map((m) => m.parsed.y || 0), l = e.tooltipTotalCalcFn(
|
|
187
|
+
a,
|
|
188
|
+
e.tooltipTotalType
|
|
189
|
+
);
|
|
190
|
+
return [ee.value, String(l)];
|
|
143
191
|
}
|
|
192
|
+
},
|
|
193
|
+
itemSort: (t, r) => {
|
|
194
|
+
if (e.tooltipOrder === _.YAxis) {
|
|
195
|
+
const a = t.parsed.y || 0, l = r.parsed.y || 0;
|
|
196
|
+
return a === l ? 0 : a > l ? -1 : 1;
|
|
197
|
+
}
|
|
198
|
+
return 0;
|
|
144
199
|
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
// chart layout
|
|
203
|
+
responsive: !0,
|
|
204
|
+
maintainAspectRatio: !1,
|
|
205
|
+
layout: {
|
|
206
|
+
padding: He
|
|
207
|
+
},
|
|
208
|
+
// basic styles
|
|
209
|
+
elements: {
|
|
210
|
+
line: {
|
|
211
|
+
borderWidth: 2,
|
|
212
|
+
tension: 0
|
|
145
213
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
bottom: 11
|
|
154
|
-
}
|
|
214
|
+
point: {
|
|
215
|
+
radius: B.value ? 3 : 1,
|
|
216
|
+
hitRadius: 8,
|
|
217
|
+
borderWidth: 0,
|
|
218
|
+
hoverRadius: 4,
|
|
219
|
+
hoverBorderWidth: 2,
|
|
220
|
+
pointHoverBackgroundColor: we
|
|
155
221
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
222
|
+
bar: {
|
|
223
|
+
borderRadius: 4
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
scales: {
|
|
227
|
+
// Horizontal Axis (X)
|
|
228
|
+
x: {
|
|
229
|
+
beginAtZero: !0,
|
|
230
|
+
offset: !x.value || B.value,
|
|
231
|
+
border: { display: !1 },
|
|
232
|
+
stacked: b.value,
|
|
233
|
+
// stack on top of each other
|
|
234
|
+
// ticks
|
|
235
|
+
ticks: {
|
|
236
|
+
color: Y,
|
|
237
|
+
font: K,
|
|
238
|
+
padding: 4,
|
|
239
|
+
maxRotation: 0,
|
|
240
|
+
autoSkip: !e.truncateTickLabels,
|
|
241
|
+
autoSkipPadding: 8,
|
|
242
|
+
callback: function(t, r, a) {
|
|
243
|
+
const l = this.getLabelForValue(t), m = x.value && !f.value ? a.length - 1 : a.length, k = this.chart.scales?.x?.width / m - Ve;
|
|
244
|
+
return W({
|
|
245
|
+
label: l,
|
|
246
|
+
format: e.xAxisFormat,
|
|
247
|
+
availableSpace: k,
|
|
248
|
+
truncate: e.truncateTickLabels
|
|
249
|
+
});
|
|
250
|
+
}
|
|
169
251
|
},
|
|
170
|
-
|
|
171
|
-
|
|
252
|
+
// grid lines
|
|
253
|
+
grid: {
|
|
254
|
+
color: U,
|
|
255
|
+
drawOnChartArea: !1,
|
|
256
|
+
drawTicks: !0,
|
|
257
|
+
drawBorder: !1,
|
|
258
|
+
tickLength: 7
|
|
172
259
|
}
|
|
173
260
|
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
this.getLabelForValue(t),
|
|
190
|
-
e.xAxisFormat
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
// grid lines
|
|
195
|
-
grid: {
|
|
196
|
-
color: M,
|
|
197
|
-
drawOnChartArea: !1,
|
|
198
|
-
drawTicks: !0,
|
|
199
|
-
drawBorder: !1,
|
|
200
|
-
tickLength: 7
|
|
201
|
-
}
|
|
261
|
+
// Vertical Axis (Y)
|
|
262
|
+
y: {
|
|
263
|
+
beginAtZero: !0,
|
|
264
|
+
border: { display: !1 },
|
|
265
|
+
// hide left borderline
|
|
266
|
+
stacked: b.value,
|
|
267
|
+
// stack on top of each other
|
|
268
|
+
// ticks
|
|
269
|
+
ticks: {
|
|
270
|
+
color: Y,
|
|
271
|
+
font: K,
|
|
272
|
+
count: e.tickCount + 1,
|
|
273
|
+
padding: 8,
|
|
274
|
+
min: 0,
|
|
275
|
+
callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, !0) + e.valueSuffix
|
|
202
276
|
},
|
|
203
|
-
//
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
stacked: u.value,
|
|
209
|
-
// stack on top of each other
|
|
210
|
-
// ticks
|
|
211
|
-
ticks: {
|
|
212
|
-
color: F,
|
|
213
|
-
font: N,
|
|
214
|
-
padding: 8,
|
|
215
|
-
stepSize: D.value,
|
|
216
|
-
min: V.value,
|
|
217
|
-
max: D.value * e.tickCount,
|
|
218
|
-
callback: (t) => O(t, e.yAxisFormat)
|
|
219
|
-
},
|
|
220
|
-
// grid lines
|
|
221
|
-
grid: {
|
|
222
|
-
color: M,
|
|
223
|
-
drawOnChartArea: !0,
|
|
224
|
-
drawTicks: !1
|
|
225
|
-
}
|
|
277
|
+
// grid lines
|
|
278
|
+
grid: {
|
|
279
|
+
color: U,
|
|
280
|
+
drawOnChartArea: !0,
|
|
281
|
+
drawTicks: !1
|
|
226
282
|
}
|
|
227
283
|
}
|
|
228
284
|
}
|
|
229
|
-
}
|
|
230
|
-
),
|
|
285
|
+
}
|
|
286
|
+
})), N = E(null), c = E(null), { position: H } = ze(
|
|
287
|
+
T,
|
|
288
|
+
N,
|
|
231
289
|
c,
|
|
232
|
-
R,
|
|
233
|
-
l,
|
|
234
290
|
e.tooltipRespectsTopEdge
|
|
235
|
-
),
|
|
236
|
-
left: `${
|
|
237
|
-
top: `${
|
|
238
|
-
opacity:
|
|
239
|
-
})),
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
() =>
|
|
245
|
-
|
|
246
|
-
|
|
291
|
+
), ae = i(() => ({
|
|
292
|
+
left: `${H.value.left}px`,
|
|
293
|
+
top: `${H.value.top}px`,
|
|
294
|
+
opacity: c.value?.opacity || 0
|
|
295
|
+
})), oe = i(
|
|
296
|
+
() => (e.compactHeader ? Me : Fe) + "px"
|
|
297
|
+
);
|
|
298
|
+
v(
|
|
299
|
+
() => e.highlightedId,
|
|
300
|
+
(t) => {
|
|
301
|
+
s && (tt(t) ? re() : le(t), s.update());
|
|
302
|
+
}
|
|
247
303
|
);
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
304
|
+
const le = (t) => {
|
|
305
|
+
(s?.data.datasets || []).forEach((a) => {
|
|
306
|
+
at(a);
|
|
307
|
+
const l = a[M];
|
|
308
|
+
a.id === t ? e.chartType === d.StackedLine && (a.backgroundColor = h(
|
|
309
|
+
l,
|
|
310
|
+
Ye
|
|
311
|
+
)) : (a.backgroundColor = h(l, y), a.borderColor = h(l, y), a.pointBackgroundColor = h(l, y), a.pointHoverBorderColor = h(l, y));
|
|
312
|
+
});
|
|
313
|
+
}, re = () => {
|
|
314
|
+
(s?.data.datasets || []).forEach(ot);
|
|
315
|
+
}, ie = lt(e.testId, $);
|
|
316
|
+
return (t, r) => (p(), S("div", rt, [
|
|
317
|
+
n(u) || o.keepSubheaderVisible ? (p(), S("div", it, [
|
|
318
|
+
ue(Ze, {
|
|
319
|
+
"chart-type": n(C),
|
|
320
|
+
"onUpdate:chart-type": r[0] || (r[0] = (a) => fe(C) ? C.value = a : null),
|
|
321
|
+
"type-switcher": n(u) ? o.typeSwitcher : !1,
|
|
322
|
+
header: n(u) ? o.header : null,
|
|
255
323
|
subheader: o.subheader,
|
|
324
|
+
"subheader-tooltip": o.subheaderTooltip,
|
|
325
|
+
"trend-tooltip": o.trendTooltip,
|
|
256
326
|
compact: o.compactHeader,
|
|
257
|
-
"trend-value": o.trendValue,
|
|
258
|
-
"trend-direction": o.trendDirection
|
|
259
|
-
|
|
327
|
+
"trend-value": n(u) ? o.trendValue : null,
|
|
328
|
+
"trend-direction": o.trendDirection,
|
|
329
|
+
"note-text": o.noteText,
|
|
330
|
+
"test-id": o.testId
|
|
331
|
+
}, pe({ _: 2 }, [
|
|
260
332
|
t.$slots["subheader-tooltip"] ? {
|
|
261
333
|
name: "subheader-tooltip",
|
|
262
|
-
fn:
|
|
263
|
-
|
|
334
|
+
fn: he(() => [
|
|
335
|
+
me(t.$slots, "subheader-tooltip", {}, void 0, !0)
|
|
264
336
|
]),
|
|
265
337
|
key: "0"
|
|
266
338
|
} : void 0
|
|
267
|
-
]), 1032, ["chart-type", "type-switcher", "header", "subheader", "compact", "trend-value", "trend-direction"])
|
|
268
|
-
]),
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
339
|
+
]), 1032, ["chart-type", "type-switcher", "header", "subheader", "subheader-tooltip", "trend-tooltip", "compact", "trend-value", "trend-direction", "note-text", "test-id"])
|
|
340
|
+
])) : L("", !0),
|
|
341
|
+
n(u) ? (p(), S("section", nt, [
|
|
342
|
+
R("div", st, [
|
|
343
|
+
R("canvas", {
|
|
344
|
+
ref_key: "chartRef",
|
|
345
|
+
ref: T,
|
|
346
|
+
class: "chart__canvas"
|
|
347
|
+
}, null, 512),
|
|
348
|
+
R("div", {
|
|
349
|
+
ref_key: "tooltipRef",
|
|
350
|
+
ref: N,
|
|
351
|
+
class: "chart__tooltip",
|
|
352
|
+
style: Te(n(ae))
|
|
353
|
+
}, [
|
|
354
|
+
c.value ? (p(), I(We, {
|
|
355
|
+
key: 0,
|
|
356
|
+
"totals-chart": n(f),
|
|
357
|
+
title: String(c.value.title),
|
|
358
|
+
"data-points": c.value.dataPoints,
|
|
359
|
+
"x-axis-format": o.xAxisFormat,
|
|
360
|
+
"y-axis-format": o.yAxisFormat,
|
|
361
|
+
"x-axis-date-interval": o.xAxisDateInterval,
|
|
362
|
+
"total-label": c.value.footer?.[0],
|
|
363
|
+
"total-value": Number(c.value.footer?.[1]),
|
|
364
|
+
"value-suffix": o.valueSuffix,
|
|
365
|
+
"value-prefix": o.valuePrefix,
|
|
366
|
+
"test-id": o.testId
|
|
367
|
+
}, null, 8, ["totals-chart", "title", "data-points", "x-axis-format", "y-axis-format", "x-axis-date-interval", "total-label", "total-value", "value-suffix", "value-prefix", "test-id"])) : L("", !0)
|
|
368
|
+
], 4)
|
|
369
|
+
])
|
|
370
|
+
])) : o.loading ? (p(), I(Je, ve({
|
|
371
|
+
key: 2,
|
|
372
|
+
class: "chart-loading"
|
|
373
|
+
}, n(ie)[n($).LOADER]), null, 16)) : n(D) ? (p(), I(n(qe), {
|
|
374
|
+
key: 3,
|
|
375
|
+
class: "chart-empty",
|
|
376
|
+
variant: null,
|
|
377
|
+
title: o.noDataTitle,
|
|
378
|
+
subtitle: o.noDataSubtitle,
|
|
379
|
+
"icon-name": o.noDataIcon,
|
|
380
|
+
"test-id": o.testId
|
|
381
|
+
}, null, 8, ["title", "subtitle", "icon-name", "test-id"])) : L("", !0)
|
|
382
|
+
]));
|
|
302
383
|
}
|
|
303
384
|
});
|
|
304
385
|
export {
|
|
305
|
-
|
|
386
|
+
Rt as default
|
|
306
387
|
};
|