@ironsource/shared-ui 2.2.0-test.9 → 2.2.0-test.91
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/AddFilterButton.vue_vue_type_style_index_0_scoped_e87c83df_lang.css +1 -0
- package/Alert.vue_vue_type_style_index_0_scoped_1036ab1d_lang.css +1 -0
- package/AppTrigger.vue_vue_type_style_index_0_scoped_735d152c_lang.css +1 -0
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_7bfd1b2b_lang.css +1 -0
- package/Banner.vue_vue_type_style_index_0_scoped_c76863fc_lang.css +1 -0
- package/Button.vue_vue_type_style_index_0_scoped_35545b8c_lang.css +1 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_37783fab_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_6f05dc63_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_2d8c9e98_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_c054d65d_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_1fcb0465_lang.css +1 -0
- package/Checkbox.vue_vue_type_style_index_0_scoped_d6d0f9ef_lang.css +1 -0
- package/Chip.vue_vue_type_style_index_0_scoped_5c5674fc_lang.css +1 -0
- package/DatePicker.vue_vue_type_style_index_0_scoped_1e1143ac_lang.css +1 -0
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -1
- package/DatePickerMonthV4.vue_vue_type_style_index_0_scoped_11288104_lang.css +1 -1
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_bb0041c1_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_6249380e_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_eb1733fa_lang.css +1 -0
- package/Dialog.vue_vue_type_style_index_0_scoped_5d321934_lang.css +1 -0
- package/DollarInput.vue_vue_type_style_index_0_scoped_edfcc8c5_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_c5e0eb4a_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_1_lang.css +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/Editable.vue_vue_type_style_index_0_scoped_4cdaada8_lang.css +1 -0
- package/EmptyState.vue_vue_type_style_index_0_scoped_93b6937e_lang.css +1 -0
- package/EmptyStateIcon.vue_vue_type_style_index_0_scoped_9e29e2d2_lang.css +1 -0
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_34409b6b_lang.css +1 -0
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_9d2f3413_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_6b91ae9a_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
- package/GroupOption.vue_vue_type_style_index_0_scoped_8922333d_lang.css +1 -0
- package/Heading.vue_vue_type_style_index_0_scoped_19878c4b_lang.css +1 -1
- package/IconButton.vue_vue_type_style_index_0_scoped_6dffd3f6_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_0a5bbce1_lang.css +1 -0
- package/IncludeExcludeAppHeader.vue_vue_type_style_index_0_scoped_5467ea5e_lang.css +1 -0
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_f40d8742_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_573a8670_lang.css +1 -0
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_d13cebf1_lang.css +1 -0
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_7006d3c6_lang.css +1 -0
- package/Input.vue_vue_type_style_index_0_scoped_6e29de03_lang.css +1 -0
- package/Label.vue_vue_type_style_index_0_scoped_d9395f53_lang.css +1 -0
- package/Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_9924c6c1_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css +1 -0
- package/Option.vue_vue_type_style_index_0_scoped_83464ba3_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css +1 -0
- package/PasswordInput.vue_vue_type_style_index_0_scoped_8c1082ea_lang.css +1 -0
- package/PercentageInput.vue_vue_type_style_index_0_scoped_8afc27af_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_7f510cb8_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_1_lang.css +1 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/README.md +2 -2
- package/RadioButton.vue_vue_type_style_index_0_scoped_2b66ac25_lang.css +1 -0
- package/ScrollButton.vue_vue_type_style_index_0_scoped_c302f4a4_lang.css +1 -0
- package/Search.vue_vue_type_style_index_0_scoped_6ada15c9_lang.css +1 -0
- package/SearchInput.vue_vue_type_style_index_0_scoped_d3f49471_lang.css +1 -0
- package/Skeleton.vue_vue_type_style_index_0_scoped_a45dcbb9_lang.css +1 -0
- package/SkeletonV4.vue_vue_type_style_index_0_scoped_93ae1260_lang.css +1 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_26cd9aa3_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_f19e742c_lang.css +1 -0
- package/Switch.vue_vue_type_style_index_0_scoped_2c00c273_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_3ae8705f_lang.css +1 -0
- package/Table.vue_vue_type_style_index_1_lang.css +1 -1
- package/TableHeaderSorter.vue_vue_type_style_index_0_scoped_cc63bc78_lang.css +1 -0
- package/Tabs.vue_vue_type_style_index_0_scoped_3ad630ee_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_b0662035_lang.css +1 -0
- package/Text.vue_vue_type_style_index_0_scoped_94bd409b_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_295167e0_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_adae060d_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_fbf7dbeb_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_b9b75a5a_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/ThemeWrapper/ThemeStrore.d.ts +2 -1
- package/components/ThemeWrapper/ThemeStrore.js +16 -11
- package/components/ThemeWrapper/ThemeWrapper.vue.js +3 -3
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -11
- package/components/ThemeWrapper/index.d.ts +2 -1
- package/components/ThemeWrapper/index.js +4 -2
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +1 -1
- package/components/appTrigger/AppTrigger.vue.js +2 -2
- package/components/appTrigger/AppTrigger.vue2.js +1 -1
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +2 -2
- package/components/autocompleteDropdown/AutocompleteInput.vue2.js +1 -1
- package/components/autocompleteDropdown/GroupOption.vue.js +3 -3
- package/components/autocompleteDropdown/GroupOption.vue2.js +1 -1
- package/components/banner/Banner.vue.js +3 -3
- package/components/banner/Banner.vue2.js +9 -9
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v3/ButtonBase.vue.js +3 -3
- package/components/button/v3/ButtonBase.vue2.js +1 -1
- package/components/button/v3/ScrollButton.vue.js +3 -3
- package/components/button/v3/ScrollButton.vue2.js +1 -1
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +17 -15
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +131 -127
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -15
- package/components/chart/composables/useChartThemeColors.d.ts +6 -0
- package/components/chart/composables/useChartThemeColors.js +21 -0
- package/components/chart/consts.d.ts +0 -3
- package/components/chart/consts.js +35 -38
- package/components/chart/index.d.ts +20 -1
- package/components/chart/plugins/HoverVerticalLine.js +5 -3
- package/components/chart/types.d.ts +1 -0
- package/components/checkbox/v3/Checkbox.vue.js +2 -2
- package/components/checkbox/v3/Checkbox.vue2.js +2 -2
- package/components/chip/v3/Chip.vue.js +3 -3
- package/components/chip/v3/Chip.vue2.js +1 -1
- package/components/datePicker/v3/DatePicker.vue.js +2 -2
- package/components/datePicker/v3/DatePicker.vue2.js +1 -1
- package/components/datePicker/v4/DatePickerV4.vue.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +1 -1
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +1 -1
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +1 -1
- 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 +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dialog/v3/Dialog.vue.js +4 -4
- package/components/dialog/v3/Dialog.vue2.js +11 -11
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +2 -2
- package/components/dropdown/v3/Label.vue.js +5 -5
- package/components/dropdown/v3/Label.vue2.js +1 -1
- package/components/dropdown/v3/Option.vue.js +4 -4
- package/components/dropdown/v3/Option.vue2.js +1 -1
- package/components/dropdown/v3/SearchInput.vue.js +4 -4
- package/components/dropdown/v3/SearchInput.vue2.js +1 -1
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +152 -146
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +13 -12
- package/components/emptyState/v3/EmptyState.vue.js +2 -2
- package/components/emptyState/v3/EmptyState.vue2.js +1 -1
- package/components/emptyState/v3/EmptyStateIcon.vue.js +9 -9
- package/components/emptyState/v4/icons/IconError.vue.js +9 -9
- package/components/emptyState/v4/icons/IconFiles.vue.js +9 -9
- package/components/emptyState/v4/icons/IconNoAccess.vue.js +9 -9
- package/components/emptyState/v4/icons/IconNoData.vue.js +9 -9
- package/components/emptyState/v4/icons/IconNoResults.vue.js +8 -8
- package/components/emptyState/v4/icons/IconSettings.vue.js +8 -8
- package/components/filterDropdown/AddFilterButton.vue.js +2 -2
- package/components/filterDropdown/AddFilterButton.vue2.js +1 -1
- package/components/filtersPanel/v3/FilterSearchInput.vue.js +2 -2
- package/components/filtersPanel/v3/FilterSearchInput.vue2.js +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.js +4 -4
- package/components/floatingToolbar/FloatingToolbar.vue2.js +1 -1
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +5 -5
- package/components/icon/v3/icons/CubeBackground.vue.js +5 -5
- package/components/icon/v3/icons/Duplicate.vue.js +10 -10
- package/components/icon/v3/icons/FiltersSearch.vue.js +7 -7
- package/components/icon/v3/icons/Marketing.vue.js +2 -2
- package/components/icon/v3/icons/TableEdit.vue.js +9 -9
- package/components/includeExclude/IncludeExclude.vue.js +5 -5
- package/components/includeExclude/IncludeExclude.vue2.js +1 -1
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeAppHeader.vue2.js +1 -1
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeAppTrigger.vue2.js +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeOption.vue2.js +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue2.js +1 -1
- package/components/input/v3/DollarInput.vue.js +4 -4
- package/components/input/v3/DollarInput.vue2.js +1 -1
- package/components/input/v3/Input.vue.js +4 -4
- package/components/input/v3/Input.vue2.js +1 -1
- package/components/input/v3/PasswordInput.vue.js +2 -2
- package/components/input/v3/PasswordInput.vue2.js +1 -1
- package/components/input/v3/PercentageInput.vue.js +3 -3
- package/components/input/v3/PercentageInput.vue2.js +1 -1
- package/components/loader/v4/Loader.vue.js +3 -3
- package/components/loader/v4/Loader.vue2.js +1 -1
- package/components/menu/Menu.vue.js +3 -3
- package/components/menu/Menu.vue2.js +33 -30
- package/components/menuItem/MenuItem.vue.js +3 -3
- package/components/menuItem/MenuItem.vue2.js +1 -1
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +51 -50
- package/components/popover/v3/Popover.vue.js +2 -2
- package/components/popover/v3/Popover.vue2.js +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +20 -17
- package/components/popover/v4/index.d.ts +41 -1
- package/components/radioButton/v3/RadioButton.vue.js +2 -2
- package/components/radioButton/v3/RadioButton.vue2.js +1 -1
- package/components/search/v3/Search.vue.js +5 -5
- package/components/search/v3/Search.vue2.js +1 -1
- package/components/skeleton/v3/Skeleton.vue.js +5 -5
- package/components/skeleton/v3/Skeleton.vue2.js +1 -1
- package/components/snackbar/v3/Snackbar.vue.js +4 -4
- package/components/snackbar/v3/Snackbar.vue2.js +1 -1
- package/components/snackbar/v4/SnackbarV4.vue.js +3 -3
- package/components/snackbar/v4/SnackbarV4.vue2.js +1 -1
- package/components/switch/v3/Switch.vue.js +2 -2
- package/components/switch/v3/Switch.vue2.js +1 -1
- package/components/table/v3/Table.vue.js +5 -5
- package/components/table/v3/Table.vue2.js +2 -2
- package/components/table/v3/TableHeaderSorter.vue.js +2 -2
- package/components/table/v3/TableHeaderSorter.vue2.js +1 -1
- package/components/table-cells/v3/Editable.vue.js +5 -5
- package/components/table-cells/v3/Editable.vue2.js +1 -1
- package/components/tabs/v3/Tabs.vue.js +4 -4
- package/components/tabs/v3/Tabs.vue2.js +15 -15
- package/components/tag/Tag.vue.d.ts +26 -0
- package/components/tag/Tag.vue.js +3 -3
- package/components/tag/Tag.vue2.js +227 -155
- package/components/tag/index.d.ts +42 -0
- package/components/textArea/v3/TextArea.vue.js +3 -3
- package/components/textArea/v3/TextArea.vue2.js +1 -1
- package/components/toggle/v3/Toggle.vue.js +3 -3
- package/components/toggle/v3/Toggle.vue2.js +14 -14
- package/components/tooltip/v3/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/v3/Tooltip.vue.js +2 -2
- package/components/tooltip/v3/Tooltip.vue2.js +11 -11
- package/components/tooltip/v3/index.d.ts +20 -20
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -1
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
- package/components/tooltip/v4/index.d.ts +39 -20
- package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
- package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +28 -1
- package/index.d.ts +195 -76
- package/index.js +1 -1
- package/package.json +1 -1
- package/style/v3/theme-bridge.css +1 -0
- package/style/v3/theme-bridge.css.map +1 -0
- package/style/v3/theme-bridge.scss +93 -0
- package/style/v4/border-radius.scss +2 -2
- package/style/v4/colors.scss +105 -0
- package/style/v4/elevations.scss +11 -0
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/grid.scss +1 -1
- package/style/v4/scrollbar.scss +21 -0
- package/style/v4/spacings.scss +1 -1
- package/style/v4/styleguideV4.scss +1 -0
- package/styleguide.scss +18 -18
- package/AddFilterButton.vue_vue_type_style_index_0_scoped_fd98af08_lang.css +0 -1
- package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +0 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css +0 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_2b63231b_lang.css +0 -1
- package/Banner.vue_vue_type_style_index_0_scoped_a293c6d0_lang.css +0 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_9021cac4_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +0 -1
- package/Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css +0 -1
- package/Chip.vue_vue_type_style_index_0_scoped_f89d9361_lang.css +0 -1
- package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +0 -1
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_eeac406b_lang.css +0 -1
- package/DollarInput.vue_vue_type_style_index_0_scoped_9ef40daf_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
- package/Editable.vue_vue_type_style_index_0_scoped_2561e913_lang.css +0 -1
- package/EmptyState.vue_vue_type_style_index_0_scoped_d3aecf34_lang.css +0 -1
- package/EmptyStateIcon.vue_vue_type_style_index_0_scoped_18855436_lang.css +0 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_51006ea0_lang.css +0 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_04d485be_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
- package/GroupOption.vue_vue_type_style_index_0_scoped_8aae9eb9_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +0 -1
- package/IncludeExcludeAppHeader.vue_vue_type_style_index_0_scoped_947cb1fc_lang.css +0 -1
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_f738b223_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +0 -1
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css +0 -1
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css +0 -1
- package/Input.vue_vue_type_style_index_0_scoped_7092804b_lang.css +0 -1
- package/Label.vue_vue_type_style_index_0_scoped_48e00c04_lang.css +0 -1
- package/Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css +0 -1
- package/Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css +0 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +0 -1
- package/Option.vue_vue_type_style_index_0_scoped_3d6ce2fc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
- package/PasswordInput.vue_vue_type_style_index_0_scoped_243f3e16_lang.css +0 -1
- package/PercentageInput.vue_vue_type_style_index_0_scoped_08a15760_lang.css +0 -1
- package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +0 -1
- package/ScrollButton.vue_vue_type_style_index_0_scoped_35ed2cfe_lang.css +0 -1
- package/Search.vue_vue_type_style_index_0_scoped_63beaf6b_lang.css +0 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_b256f8ef_lang.css +0 -1
- package/Skeleton.vue_vue_type_style_index_0_scoped_5ed40068_lang.css +0 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +0 -1
- package/Switch.vue_vue_type_style_index_0_scoped_9c008fc4_lang.css +0 -1
- package/Table.vue_vue_type_style_index_0_scoped_9375215d_lang.css +0 -1
- package/TableHeaderSorter.vue_vue_type_style_index_0_scoped_745a44a2_lang.css +0 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_06c58d5a_lang.css +0 -1
- package/Tag.vue_vue_type_style_index_0_scoped_043adaf5_lang.css +0 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +0 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_1cf7973e_lang.css +0 -1
- package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../Chart.
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css"; import { defineComponent as P, ref as U, computed as d, openBlock as n, createElementBlock as g, Fragment as S, createBlock as D, unref as l, isRef as b, withCtx as s, renderSlot as u, createCommentVNode as A, createElementVNode as L, mergeProps as y, normalizeClass as $, createVNode as k, createSlots as M, renderList as R } from "vue";
|
|
2
2
|
import { useVModel as B } from "@vueuse/core";
|
|
3
3
|
import K from "./ChartLegend.vue.js";
|
|
4
4
|
import X from "./SettingsHeader.vue.js";
|
|
@@ -60,7 +60,8 @@ const at = {
|
|
|
60
60
|
fullHeightBottomSpacing: { default: 50 },
|
|
61
61
|
withSettingsHeader: { type: Boolean, default: !0 },
|
|
62
62
|
extraCharts: { default: () => [] },
|
|
63
|
-
colorVariant: { default: "default" }
|
|
63
|
+
colorVariant: { default: "default" },
|
|
64
|
+
height: { default: void 0 }
|
|
64
65
|
},
|
|
65
66
|
emits: ["update:chartType", "update:visibleIds", "update:sortSelected"],
|
|
66
67
|
setup(e, { emit: c }) {
|
|
@@ -106,23 +107,24 @@ const at = {
|
|
|
106
107
|
dataSets: E,
|
|
107
108
|
visibleIds: I,
|
|
108
109
|
variant: t.colorVariant
|
|
109
|
-
}),
|
|
110
|
+
}), H = d(() => t.dataSets.map((a) => ({
|
|
110
111
|
id: a.id,
|
|
111
112
|
label: a.label,
|
|
112
113
|
caption: a.caption || null,
|
|
113
114
|
color: m.value[a.id] || null,
|
|
114
115
|
icon: a.icon || null,
|
|
115
116
|
iconType: a.iconType || "branded"
|
|
116
|
-
}))), { containerProps:
|
|
117
|
+
}))), { containerProps: w, eachPlaneHeight: N } = Z({
|
|
117
118
|
chartPlanesCount: C,
|
|
118
119
|
useFullHeight: t.fullHeight,
|
|
119
|
-
bottomSpacing: t.fullHeightBottomSpacing
|
|
120
|
+
bottomSpacing: t.fullHeightBottomSpacing,
|
|
121
|
+
customHeight: t.height
|
|
120
122
|
}), O = et(t.testId, p);
|
|
121
|
-
return (a, i) => (n(),
|
|
123
|
+
return (a, i) => (n(), g(S, null, [
|
|
122
124
|
e.withSettingsHeader ? (n(), D(X, {
|
|
123
125
|
key: 0,
|
|
124
126
|
"chart-type": l(r),
|
|
125
|
-
"onUpdate:chart-type": i[0] || (i[0] = (o) =>
|
|
127
|
+
"onUpdate:chart-type": i[0] || (i[0] = (o) => b(r) ? r.value = o : null),
|
|
126
128
|
"hide-legend": e.hideLegend,
|
|
127
129
|
"test-id": e.testId
|
|
128
130
|
}, {
|
|
@@ -137,16 +139,16 @@ const at = {
|
|
|
137
139
|
]),
|
|
138
140
|
_: 3
|
|
139
141
|
}, 8, ["chart-type", "hide-legend", "test-id"])) : A("", !0),
|
|
140
|
-
L("div",
|
|
141
|
-
...l(
|
|
142
|
+
L("div", y({ class: "chart-container" }, {
|
|
143
|
+
...l(w),
|
|
142
144
|
...l(O)[l(p).CONTAINER]
|
|
143
145
|
}), [
|
|
144
146
|
L("section", {
|
|
145
147
|
class: $(["chart-planes", [{ "with-legend": !e.hideLegend }]])
|
|
146
148
|
}, [
|
|
147
|
-
k(V,
|
|
149
|
+
k(V, y({
|
|
148
150
|
"chart-type": l(r),
|
|
149
|
-
"onUpdate:chart-type": i[1] || (i[1] = (o) =>
|
|
151
|
+
"onUpdate:chart-type": i[1] || (i[1] = (o) => b(r) ? r.value = o : null)
|
|
150
152
|
}, l(v)), M({ _: 2 }, [
|
|
151
153
|
a.$slots["subheader-tooltip"] ? {
|
|
152
154
|
name: "subheader-tooltip",
|
|
@@ -156,7 +158,7 @@ const at = {
|
|
|
156
158
|
key: "0"
|
|
157
159
|
} : void 0
|
|
158
160
|
]), 1040, ["chart-type"]),
|
|
159
|
-
(n(!0),
|
|
161
|
+
(n(!0), g(S, null, R(e.extraCharts, (o, T) => (n(), D(V, y({
|
|
160
162
|
key: T,
|
|
161
163
|
class: "extra-chart-plane"
|
|
162
164
|
}, { ...l(v), ...o }, {
|
|
@@ -167,13 +169,13 @@ const at = {
|
|
|
167
169
|
"test-id": `${e.testId}-${l(p).EXTRA_CHART}-${T}`
|
|
168
170
|
}), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge", "test-id"]))), 128))
|
|
169
171
|
], 2),
|
|
170
|
-
e.hideLegend ? A("", !0) : (n(),
|
|
172
|
+
e.hideLegend ? A("", !0) : (n(), g("section", at, [
|
|
171
173
|
k(K, {
|
|
172
174
|
"sort-selected": l(f),
|
|
173
|
-
"onUpdate:sort-selected": i[2] || (i[2] = (o) =>
|
|
175
|
+
"onUpdate:sort-selected": i[2] || (i[2] = (o) => b(f) ? f.value = o : null),
|
|
174
176
|
"highlighted-id": h.value,
|
|
175
177
|
"onUpdate:highlighted-id": i[3] || (i[3] = (o) => h.value = o),
|
|
176
|
-
items: l(
|
|
178
|
+
items: l(H),
|
|
177
179
|
"visible-ids": l(I),
|
|
178
180
|
"max-limit-tooltip-text": e.maxLimitTooltipText,
|
|
179
181
|
"sort-options": e.sortOptions,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const
|
|
1
|
+
import o from "./ChartPlane.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_1fcb0465_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-1fcb0465"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import "../../ChartPlane.
|
|
2
|
-
import { Chart as
|
|
3
|
-
import { HoverVerticalLine as
|
|
4
|
-
import { prepareTickLabel as Be, formatValue as
|
|
5
|
-
import { DEFAULT_TICK_COUNT as
|
|
6
|
-
import { ChartType as d, DateInterval as
|
|
1
|
+
import "../../ChartPlane.vue_vue_type_style_index_0_scoped_1fcb0465_lang.css"; import { defineComponent as se, useCssVars as de, unref as n, computed as i, ref as E, onMounted as ue, watch as y, nextTick as M, openBlock as p, createElementBlock as L, createVNode as ce, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as D, createElementVNode as I, normalizeStyle as ve, createBlock as R, mergeProps as Te } from "vue";
|
|
2
|
+
import { Chart as Y, ArcElement as ye, LineElement as Ce, BarElement as ge, PointElement as be, LineController as xe, BarController as Ae, PieController as ke, ScatterController as Se, CategoryScale as Ee, LinearScale as Le, Filler as De, Tooltip as Ie } from "chart.js";
|
|
3
|
+
import { HoverVerticalLine as Re } from "./plugins/HoverVerticalLine.js";
|
|
4
|
+
import { prepareTickLabel as Be, formatValue as Pe } from "./utils/utils.js";
|
|
5
|
+
import { DEFAULT_TICK_COUNT as He, TOTALS_HELPER_KEY as K, LINE_DASH_STYLE as Ne, BASE_COLOR_KEY as U, CHART_PADDING as we, TICK_LABEL_FONT as G, TICKS_EXTRA_PADDING as Oe, HEADER_HEIGHT as Ve, COMPACT_HEADER_HEIGHT as Fe, HOVER_AREA_TRANSPARENCY as Me, HOVER_TRANSPARENCY as C, CHART_ITEM_TRANSPARENCY as Ye, INCOMPLETE_DATA_BAR_TRANSPARENCY as Ke, STACKED_LINE_TRANSPARENCY as Ue } from "./consts.js";
|
|
6
|
+
import { ChartType as d, DateInterval as Ge, TooltipOrder as $, TrendDirection as $e } from "./types.js";
|
|
7
7
|
import { useTooltipPosition as ze } from "./composables/useTooltipPosition.js";
|
|
8
|
-
import We from "./
|
|
8
|
+
import { useChartThemeColors as We } from "./composables/useChartThemeColors.js";
|
|
9
|
+
import { useThemeStore as Ze } from "../ThemeWrapper/ThemeStrore.js";
|
|
10
|
+
import Xe from "./ChartTooltip.vue.js";
|
|
9
11
|
import { hexColorToRgba as h } from "../../utils/color.js";
|
|
10
|
-
import
|
|
11
|
-
import { useMemoize as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { DEFAULT_CHART_COLOR as
|
|
15
|
-
import { TotalType as
|
|
16
|
-
import { isNullOrUndefined as
|
|
17
|
-
import { storeOriginalDatasetColors as
|
|
18
|
-
import { useTestIdAttrs as
|
|
19
|
-
import { ChartTestIdModifiers as
|
|
20
|
-
const
|
|
12
|
+
import je from "./ChartHeader.vue.js";
|
|
13
|
+
import { useMemoize as qe, useVModel as Je } from "@vueuse/core";
|
|
14
|
+
import Qe from "../emptyState/v4/EmptyStateV4.vue.js";
|
|
15
|
+
import _e from "./ChartLoader.vue.js";
|
|
16
|
+
import { DEFAULT_CHART_COLOR as et } from "./colorPalette.js";
|
|
17
|
+
import { TotalType as z, calculateTotal as tt } from "../../utils/totals.js";
|
|
18
|
+
import { isNullOrUndefined as at } from "../../utils/utils.js";
|
|
19
|
+
import { storeOriginalDatasetColors as ot, restoreOriginalDatasetColors as lt } from "./utils/highlightUtils.js";
|
|
20
|
+
import { useTestIdAttrs as rt } from "../../utils/testIds.js";
|
|
21
|
+
import { ChartTestIdModifiers as W } from "../../testids/index.js";
|
|
22
|
+
const it = { class: "chart-plane-container" }, nt = {
|
|
21
23
|
key: 0,
|
|
22
24
|
class: "header-wrapper"
|
|
23
|
-
},
|
|
25
|
+
}, st = {
|
|
24
26
|
key: 1,
|
|
25
27
|
class: "chart-plane"
|
|
26
|
-
},
|
|
28
|
+
}, dt = { class: "chart" }, Bt = /* @__PURE__ */ se({
|
|
27
29
|
__name: "ChartPlane",
|
|
28
30
|
props: {
|
|
29
31
|
dataSets: { default: () => [] },
|
|
@@ -33,8 +35,8 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
33
35
|
parsing: { default: void 0 },
|
|
34
36
|
xAxisFormat: { default: "string" },
|
|
35
37
|
yAxisFormat: { default: "number" },
|
|
36
|
-
xAxisDateInterval: { default:
|
|
37
|
-
tickCount: { default:
|
|
38
|
+
xAxisDateInterval: { default: Ge.DAILY },
|
|
39
|
+
tickCount: { default: He },
|
|
38
40
|
truncateTickLabels: { type: Boolean, default: !1 },
|
|
39
41
|
header: { default: "" },
|
|
40
42
|
headerTooltip: { default: null },
|
|
@@ -52,9 +54,9 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
52
54
|
compactHeader: { type: Boolean, default: !1 },
|
|
53
55
|
noteText: { default: "" },
|
|
54
56
|
tooltipRespectsTopEdge: { type: Boolean, default: !0 },
|
|
55
|
-
tooltipTotalType: { default:
|
|
56
|
-
tooltipTotalCalcFn: { type: Function, default:
|
|
57
|
-
tooltipOrder: { default:
|
|
57
|
+
tooltipTotalType: { default: z.Total },
|
|
58
|
+
tooltipTotalCalcFn: { type: Function, default: tt },
|
|
59
|
+
tooltipOrder: { default: $.Legend },
|
|
58
60
|
trendValue: { default: null },
|
|
59
61
|
trendDirection: { default: $e.UP },
|
|
60
62
|
trendTooltip: { default: null },
|
|
@@ -67,14 +69,14 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
67
69
|
testId: { default: "" }
|
|
68
70
|
},
|
|
69
71
|
emits: ["update:chartType"],
|
|
70
|
-
setup(o, { emit:
|
|
72
|
+
setup(o, { emit: Z }) {
|
|
71
73
|
const e = o;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
de((t) => ({
|
|
75
|
+
"88f7e4ae": n(le),
|
|
76
|
+
ccb5f6d8: o.height
|
|
75
77
|
}));
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
+
const X = qe(Be);
|
|
79
|
+
Y.register(
|
|
78
80
|
ye,
|
|
79
81
|
Ce,
|
|
80
82
|
ge,
|
|
@@ -82,65 +84,67 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
82
84
|
xe,
|
|
83
85
|
Ae,
|
|
84
86
|
ke,
|
|
85
|
-
Ee,
|
|
86
87
|
Se,
|
|
88
|
+
Ee,
|
|
87
89
|
Le,
|
|
88
|
-
|
|
90
|
+
De,
|
|
89
91
|
Ie,
|
|
90
|
-
|
|
92
|
+
Re
|
|
91
93
|
);
|
|
92
|
-
const
|
|
94
|
+
const g = Je(e, "chartType", Z), j = i(
|
|
93
95
|
() => e.withAnimation ? "" : "none"
|
|
94
|
-
),
|
|
96
|
+
), m = E(null), v = We(m), { theme: q } = Ze();
|
|
95
97
|
let s = null;
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
s && (s.data.datasets =
|
|
98
|
+
const B = i(() => e.empty || e.dataSets.length === 0), c = i(() => !e.loading && !B.value), b = () => {
|
|
99
|
+
m.value && (s && s.destroy(), s = new Y(m.value, w.value));
|
|
100
|
+
}, P = () => {
|
|
101
|
+
s && (s.data.datasets = N.value, s.options = w.value.options, s.update(j.value));
|
|
100
102
|
};
|
|
101
|
-
|
|
102
|
-
t && (await
|
|
103
|
-
}),
|
|
103
|
+
ue(b), y(() => e.chartType, b), y(c, async (t) => {
|
|
104
|
+
t && (await M(), b());
|
|
105
|
+
}), y(
|
|
104
106
|
[
|
|
105
107
|
() => e.visibleIds,
|
|
106
108
|
() => e.dataSets,
|
|
107
109
|
() => e.valuePrefix,
|
|
108
110
|
() => e.valueSuffix
|
|
109
111
|
],
|
|
110
|
-
|
|
111
|
-
)
|
|
112
|
-
|
|
112
|
+
P
|
|
113
|
+
), y(q, async () => {
|
|
114
|
+
await M(), P();
|
|
115
|
+
});
|
|
116
|
+
const f = i(() => e.totalsChart), x = i(
|
|
113
117
|
() => e.chartType === d.StackedLine || e.chartType === d.StackedBar || f.value
|
|
114
|
-
),
|
|
118
|
+
), A = i(
|
|
115
119
|
() => e.chartType === d.Line || e.chartType === d.StackedLine
|
|
116
|
-
),
|
|
120
|
+
), J = i(() => f.value && !e.parsing.xAxisKey ? { ...e.parsing, xAxisKey: K } : e.parsing), Q = i(() => f.value ? e.dataSets.map((t) => ({
|
|
117
121
|
...t,
|
|
118
122
|
data: t.data.map((r) => ({
|
|
119
123
|
...r,
|
|
120
|
-
[
|
|
124
|
+
[K]: t.label
|
|
121
125
|
}))
|
|
122
|
-
})) : e.dataSets),
|
|
123
|
-
() =>
|
|
124
|
-
),
|
|
125
|
-
() =>
|
|
126
|
+
})) : e.dataSets), k = i(
|
|
127
|
+
() => Q.value.filter((t) => e.visibleIds.includes(t.id))
|
|
128
|
+
), _ = (t) => e.colorsMap[t] || et, H = i(
|
|
129
|
+
() => k.value.length && k.value.every(
|
|
126
130
|
(t) => t.data.length === 1
|
|
127
131
|
)
|
|
128
|
-
),
|
|
132
|
+
), ee = (t) => (r) => {
|
|
129
133
|
const a = r.chart.data.labels.length - 1;
|
|
130
|
-
let l =
|
|
131
|
-
return e.chartType === d.Bar && e.indicateIncompleteData && r.index === a ? l =
|
|
132
|
-
},
|
|
133
|
-
const a =
|
|
134
|
-
borderDash: (
|
|
135
|
-
if (
|
|
134
|
+
let l = Ye;
|
|
135
|
+
return e.chartType === d.Bar && e.indicateIncompleteData && r.index === a ? l = Ke : e.chartType === d.StackedLine && (l = Ue), h(t, l);
|
|
136
|
+
}, N = i(() => k.value.map((t, r) => {
|
|
137
|
+
const a = _(t.id), l = x.value ? r !== 0 ? "-1" : "start" : void 0, T = e.indicateIncompleteData ? {
|
|
138
|
+
borderDash: (F) => {
|
|
139
|
+
if (F.p1DataIndex === F.chart.data.labels.length - 1)
|
|
136
140
|
return Ne;
|
|
137
141
|
}
|
|
138
|
-
} : void 0,
|
|
142
|
+
} : void 0, S = ee(a);
|
|
139
143
|
return {
|
|
140
144
|
...t,
|
|
141
145
|
fill: l,
|
|
142
|
-
segment:
|
|
143
|
-
backgroundColor:
|
|
146
|
+
segment: T,
|
|
147
|
+
backgroundColor: S,
|
|
144
148
|
borderColor: a,
|
|
145
149
|
pointBackgroundColor: a,
|
|
146
150
|
pointHoverBorderColor: a,
|
|
@@ -149,22 +153,22 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
149
153
|
// draw a bit outside the chart area
|
|
150
154
|
icon: t.icon || null,
|
|
151
155
|
iconType: t.iconType || "branded",
|
|
152
|
-
[
|
|
156
|
+
[U]: a
|
|
153
157
|
// store base color for later use
|
|
154
158
|
};
|
|
155
|
-
})),
|
|
156
|
-
() => e.tooltipTotalType ===
|
|
157
|
-
),
|
|
159
|
+
})), te = i(
|
|
160
|
+
() => e.tooltipTotalType === z.Total ? "Total" : "Mean"
|
|
161
|
+
), ae = (t) => t.filter(
|
|
158
162
|
(r) => !r.dataset.isTotal
|
|
159
|
-
),
|
|
163
|
+
), w = i(() => ({
|
|
160
164
|
type: e.chartType == d.Bar || e.chartType === d.StackedBar ? "bar" : "line",
|
|
161
165
|
// Chart Data
|
|
162
166
|
data: {
|
|
163
|
-
datasets:
|
|
167
|
+
datasets: N.value
|
|
164
168
|
},
|
|
165
169
|
// Chart Options
|
|
166
170
|
options: {
|
|
167
|
-
parsing:
|
|
171
|
+
parsing: J.value,
|
|
168
172
|
interaction: {
|
|
169
173
|
intersect: !1,
|
|
170
174
|
mode: f.value ? "point" : "index",
|
|
@@ -174,7 +178,7 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
174
178
|
plugins: {
|
|
175
179
|
legend: { display: !1 },
|
|
176
180
|
title: { display: !1 },
|
|
177
|
-
hoverVerticalLine:
|
|
181
|
+
hoverVerticalLine: A.value,
|
|
178
182
|
// tooltip
|
|
179
183
|
tooltip: {
|
|
180
184
|
enabled: !1,
|
|
@@ -184,15 +188,15 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
184
188
|
},
|
|
185
189
|
callbacks: {
|
|
186
190
|
footer: (t) => {
|
|
187
|
-
const a = (e.tooltipExcludeTotalItem && t.length > 1 ?
|
|
191
|
+
const a = (e.tooltipExcludeTotalItem && t.length > 1 ? ae(t) : t).map((T) => T.parsed.y || 0), l = e.tooltipTotalCalcFn(
|
|
188
192
|
a,
|
|
189
193
|
e.tooltipTotalType
|
|
190
194
|
);
|
|
191
|
-
return [
|
|
195
|
+
return [te.value, String(l)];
|
|
192
196
|
}
|
|
193
197
|
},
|
|
194
198
|
itemSort: (t, r) => {
|
|
195
|
-
if (e.tooltipOrder ===
|
|
199
|
+
if (e.tooltipOrder === $.YAxis) {
|
|
196
200
|
const a = t.parsed.y || 0, l = r.parsed.y || 0;
|
|
197
201
|
return a === l ? 0 : a > l ? -1 : 1;
|
|
198
202
|
}
|
|
@@ -204,7 +208,7 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
204
208
|
responsive: !0,
|
|
205
209
|
maintainAspectRatio: !1,
|
|
206
210
|
layout: {
|
|
207
|
-
padding:
|
|
211
|
+
padding: we
|
|
208
212
|
},
|
|
209
213
|
// basic styles
|
|
210
214
|
elements: {
|
|
@@ -213,12 +217,12 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
213
217
|
tension: 0
|
|
214
218
|
},
|
|
215
219
|
point: {
|
|
216
|
-
radius:
|
|
220
|
+
radius: H.value ? 3 : 1,
|
|
217
221
|
hitRadius: 8,
|
|
218
222
|
borderWidth: 0,
|
|
219
223
|
hoverRadius: 4,
|
|
220
224
|
hoverBorderWidth: 2,
|
|
221
|
-
pointHoverBackgroundColor:
|
|
225
|
+
pointHoverBackgroundColor: v.value.pointBorderColor
|
|
222
226
|
},
|
|
223
227
|
bar: {
|
|
224
228
|
borderRadius: 4
|
|
@@ -228,31 +232,31 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
228
232
|
// Horizontal Axis (X)
|
|
229
233
|
x: {
|
|
230
234
|
beginAtZero: !0,
|
|
231
|
-
offset: !
|
|
235
|
+
offset: !A.value || H.value,
|
|
232
236
|
border: { display: !1 },
|
|
233
|
-
stacked:
|
|
237
|
+
stacked: x.value,
|
|
234
238
|
// stack on top of each other
|
|
235
239
|
// ticks
|
|
236
240
|
ticks: {
|
|
237
|
-
color:
|
|
238
|
-
font:
|
|
241
|
+
color: v.value.tickLabelColor,
|
|
242
|
+
font: G,
|
|
239
243
|
padding: 4,
|
|
240
244
|
maxRotation: 0,
|
|
241
245
|
autoSkip: !e.truncateTickLabels,
|
|
242
246
|
autoSkipPadding: 8,
|
|
243
247
|
callback: function(t, r, a) {
|
|
244
|
-
const l = this.getLabelForValue(t),
|
|
245
|
-
return
|
|
248
|
+
const l = this.getLabelForValue(t), T = A.value && !f.value ? a.length - 1 : a.length, S = this.chart.scales?.x?.width / T - Oe;
|
|
249
|
+
return X({
|
|
246
250
|
label: l,
|
|
247
251
|
format: e.xAxisFormat,
|
|
248
|
-
availableSpace:
|
|
252
|
+
availableSpace: S,
|
|
249
253
|
truncate: e.truncateTickLabels
|
|
250
254
|
});
|
|
251
255
|
}
|
|
252
256
|
},
|
|
253
257
|
// grid lines
|
|
254
258
|
grid: {
|
|
255
|
-
color:
|
|
259
|
+
color: v.value.gridLineColor,
|
|
256
260
|
drawOnChartArea: !1,
|
|
257
261
|
drawTicks: !0,
|
|
258
262
|
drawBorder: !1,
|
|
@@ -264,61 +268,61 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
264
268
|
beginAtZero: !0,
|
|
265
269
|
border: { display: !1 },
|
|
266
270
|
// hide left borderline
|
|
267
|
-
stacked:
|
|
271
|
+
stacked: x.value,
|
|
268
272
|
// stack on top of each other
|
|
269
273
|
// ticks
|
|
270
274
|
ticks: {
|
|
271
|
-
color:
|
|
272
|
-
font:
|
|
275
|
+
color: v.value.tickLabelColor,
|
|
276
|
+
font: G,
|
|
273
277
|
count: e.tickCount + 1,
|
|
274
278
|
padding: 8,
|
|
275
279
|
min: 0,
|
|
276
|
-
callback: (t) => e.valuePrefix +
|
|
280
|
+
callback: (t) => e.valuePrefix + Pe(t, e.yAxisFormat, { formatLowDigits: !0 }) + e.valueSuffix
|
|
277
281
|
},
|
|
278
282
|
// grid lines
|
|
279
283
|
grid: {
|
|
280
|
-
color:
|
|
284
|
+
color: v.value.gridLineColor,
|
|
281
285
|
drawOnChartArea: !0,
|
|
282
286
|
drawTicks: !1
|
|
283
287
|
}
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
290
|
}
|
|
287
|
-
})),
|
|
288
|
-
|
|
289
|
-
|
|
291
|
+
})), O = E(null), u = E(null), { position: V } = ze(
|
|
292
|
+
m,
|
|
293
|
+
O,
|
|
290
294
|
u,
|
|
291
295
|
e.tooltipRespectsTopEdge
|
|
292
|
-
),
|
|
293
|
-
left: `${
|
|
294
|
-
top: `${
|
|
296
|
+
), oe = i(() => ({
|
|
297
|
+
left: `${V.value.left}px`,
|
|
298
|
+
top: `${V.value.top}px`,
|
|
295
299
|
opacity: u.value?.opacity || 0
|
|
296
|
-
})),
|
|
297
|
-
() => (e.compactHeader ?
|
|
300
|
+
})), le = i(
|
|
301
|
+
() => (e.compactHeader ? Fe : Ve) + "px"
|
|
298
302
|
);
|
|
299
|
-
|
|
303
|
+
y(
|
|
300
304
|
() => e.highlightedId,
|
|
301
305
|
(t) => {
|
|
302
|
-
s && (
|
|
306
|
+
s && (at(t) ? ie() : re(t), s.update());
|
|
303
307
|
}
|
|
304
308
|
);
|
|
305
|
-
const
|
|
309
|
+
const re = (t) => {
|
|
306
310
|
(s?.data.datasets || []).forEach((a) => {
|
|
307
|
-
|
|
308
|
-
const l = a[
|
|
311
|
+
ot(a);
|
|
312
|
+
const l = a[U];
|
|
309
313
|
a.id === t ? e.chartType === d.StackedLine && (a.backgroundColor = h(
|
|
310
314
|
l,
|
|
311
|
-
|
|
312
|
-
)) : (a.backgroundColor = h(l,
|
|
315
|
+
Me
|
|
316
|
+
)) : (a.backgroundColor = h(l, C), a.borderColor = h(l, C), a.pointBackgroundColor = h(l, C), a.pointHoverBorderColor = h(l, C));
|
|
313
317
|
});
|
|
314
|
-
},
|
|
315
|
-
(s?.data.datasets || []).forEach(
|
|
316
|
-
},
|
|
317
|
-
return (t, r) => (p(),
|
|
318
|
-
n(c) || o.keepSubheaderVisible ? (p(),
|
|
319
|
-
ce(
|
|
320
|
-
"chart-type": n(
|
|
321
|
-
"onUpdate:chart-type": r[0] || (r[0] = (a) => fe(
|
|
318
|
+
}, ie = () => {
|
|
319
|
+
(s?.data.datasets || []).forEach(lt);
|
|
320
|
+
}, ne = rt(e.testId, W);
|
|
321
|
+
return (t, r) => (p(), L("div", it, [
|
|
322
|
+
n(c) || o.keepSubheaderVisible ? (p(), L("div", nt, [
|
|
323
|
+
ce(je, {
|
|
324
|
+
"chart-type": n(g),
|
|
325
|
+
"onUpdate:chart-type": r[0] || (r[0] = (a) => fe(g) ? g.value = a : null),
|
|
322
326
|
"type-switcher": n(c) ? o.typeSwitcher : !1,
|
|
323
327
|
header: n(c) ? o.header : null,
|
|
324
328
|
subheader: o.subheader,
|
|
@@ -339,21 +343,21 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
339
343
|
key: "0"
|
|
340
344
|
} : void 0
|
|
341
345
|
]), 1032, ["chart-type", "type-switcher", "header", "subheader", "subheader-tooltip", "header-tooltip", "trend-tooltip", "compact", "trend-value", "trend-direction", "note-text", "test-id"])
|
|
342
|
-
])) :
|
|
343
|
-
n(c) ? (p(),
|
|
344
|
-
|
|
345
|
-
|
|
346
|
+
])) : D("", !0),
|
|
347
|
+
n(c) ? (p(), L("section", st, [
|
|
348
|
+
I("div", dt, [
|
|
349
|
+
I("canvas", {
|
|
346
350
|
ref_key: "chartRef",
|
|
347
|
-
ref:
|
|
351
|
+
ref: m,
|
|
348
352
|
class: "chart__canvas"
|
|
349
353
|
}, null, 512),
|
|
350
|
-
|
|
354
|
+
I("div", {
|
|
351
355
|
ref_key: "tooltipRef",
|
|
352
|
-
ref:
|
|
356
|
+
ref: O,
|
|
353
357
|
class: "chart__tooltip",
|
|
354
|
-
style:
|
|
358
|
+
style: ve(n(oe))
|
|
355
359
|
}, [
|
|
356
|
-
u.value ? (p(),
|
|
360
|
+
u.value ? (p(), R(Xe, {
|
|
357
361
|
key: 0,
|
|
358
362
|
"totals-chart": n(f),
|
|
359
363
|
title: String(u.value.title),
|
|
@@ -366,13 +370,13 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
366
370
|
"value-suffix": o.valueSuffix,
|
|
367
371
|
"value-prefix": o.valuePrefix,
|
|
368
372
|
"test-id": o.testId
|
|
369
|
-
}, 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"])) :
|
|
373
|
+
}, 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"])) : D("", !0)
|
|
370
374
|
], 4)
|
|
371
375
|
])
|
|
372
|
-
])) : o.loading ? (p(),
|
|
376
|
+
])) : o.loading ? (p(), R(_e, Te({
|
|
373
377
|
key: 2,
|
|
374
378
|
class: "chart-loading"
|
|
375
|
-
}, n(
|
|
379
|
+
}, n(ne)[n(W).LOADER]), null, 16)) : n(B) ? (p(), R(n(Qe), {
|
|
376
380
|
key: 3,
|
|
377
381
|
class: "chart-empty",
|
|
378
382
|
variant: null,
|
|
@@ -380,10 +384,10 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
380
384
|
subtitle: o.noDataSubtitle,
|
|
381
385
|
"icon-name": o.noDataIcon,
|
|
382
386
|
"test-id": o.testId
|
|
383
|
-
}, null, 8, ["title", "subtitle", "icon-name", "test-id"])) :
|
|
387
|
+
}, null, 8, ["title", "subtitle", "icon-name", "test-id"])) : D("", !0)
|
|
384
388
|
]));
|
|
385
389
|
}
|
|
386
390
|
});
|
|
387
391
|
export {
|
|
388
|
-
|
|
392
|
+
Bt as default
|
|
389
393
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseChartHeightArgs } from '@/components/chart/types';
|
|
2
|
-
export declare const useChartHeight: ({ chartPlanesCount, useFullHeight, bottomSpacing, }: UseChartHeightArgs) => {
|
|
2
|
+
export declare const useChartHeight: ({ chartPlanesCount, useFullHeight, bottomSpacing, customHeight, }: UseChartHeightArgs) => {
|
|
3
3
|
containerProps: import("vue").ComputedRef<Record<string, unknown>>;
|
|
4
4
|
eachPlaneHeight: import("vue").ComputedRef<string>;
|
|
5
5
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useElementBounding as m, useWindowScroll as
|
|
3
|
-
import { useFullPageHeight as
|
|
4
|
-
import { DEFAULT_CHART_PLANE_HEIGHT as
|
|
5
|
-
const
|
|
1
|
+
import { ref as f, computed as r } from "vue";
|
|
2
|
+
import { useElementBounding as m, useWindowScroll as p } from "@vueuse/core";
|
|
3
|
+
import { useFullPageHeight as E } from "../../../composables/useFullPageHeight.js";
|
|
4
|
+
import { DEFAULT_CHART_PLANE_HEIGHT as v, HEADER_HEIGHT as d, MIN_PLANE_HEIGHT as n } from "../consts.js";
|
|
5
|
+
const I = ({
|
|
6
6
|
chartPlanesCount: e,
|
|
7
|
-
useFullHeight:
|
|
8
|
-
bottomSpacing:
|
|
7
|
+
useFullHeight: i,
|
|
8
|
+
bottomSpacing: c = 50,
|
|
9
|
+
customHeight: o
|
|
9
10
|
}) => {
|
|
10
|
-
const t =
|
|
11
|
+
const t = f(), { height: l } = m(t), { cssHeightValue: u } = E({
|
|
11
12
|
elem: t,
|
|
12
|
-
bottomSpacing:
|
|
13
|
-
}), { y: s } =
|
|
13
|
+
bottomSpacing: c
|
|
14
|
+
}), { y: s } = p(), h = r(() => o || (i && !s.value ? u.value : v + d + "px")), a = r(() => ({
|
|
14
15
|
ref: t,
|
|
15
|
-
style: { height:
|
|
16
|
-
})),
|
|
16
|
+
style: { height: h.value }
|
|
17
|
+
})), H = r(() => e.value === 1 ? "100%" : l.value / e.value < n ? `${n}px` : 100 / e.value + "%");
|
|
17
18
|
return {
|
|
18
|
-
containerProps:
|
|
19
|
-
eachPlaneHeight:
|
|
19
|
+
containerProps: a,
|
|
20
|
+
eachPlaneHeight: H
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
I as useChartHeight
|
|
24
25
|
};
|