@ironsource/shared-ui 2.1.12-rc.5 → 2.1.12-rc.50
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_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_908ef54f_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_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_c13770d4_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_ef67c78e_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_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_f9907ea0_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_01f78cd7_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_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 +123 -10
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +120 -64
- package/components/chart/ChartHeader.vue.d.ts +36 -7
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +60 -63
- package/components/chart/ChartHeaderTrend.vue.d.ts +19 -5
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +83 -18
- package/components/chart/ChartLegend.vue.d.ts +24 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +80 -62
- package/components/chart/ChartPlane.vue.d.ts +106 -13
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +313 -238
- package/components/chart/ChartStoryArgs.d.ts +63 -2
- package/components/chart/ChartTooltip.vue.d.ts +22 -2
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +52 -58
- 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 +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 +473 -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 +72 -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 +161 -149
- 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 +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +205 -176
- package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -1
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +257 -199
- 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 +702 -162
- 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 +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +19 -7
- package/components/table/v4/DataGrid.vue.js +5 -5
- package/components/table/v4/DataGrid.vue2.js +375 -307
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +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 +581 -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 +10373 -8457
- package/index.js +158 -134
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +21 -1
- package/testids/index.d.ts +24 -1
- package/testids/index.js +36 -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 +39 -8
- package/utils/index.js +7 -0
- 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_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/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/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_b883d1fa_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
export declare const SINGLE_DATASET_DATE: {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
data: {
|
|
5
|
+
date: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
8
|
+
}[];
|
|
9
|
+
export declare const SINGLE_DATASET_DATE_MONTHLY: {
|
|
10
|
+
id: string;
|
|
2
11
|
label: string;
|
|
3
12
|
data: {
|
|
4
13
|
date: string;
|
|
5
14
|
value: number;
|
|
6
15
|
}[];
|
|
7
|
-
color: string;
|
|
8
16
|
}[];
|
|
9
17
|
export declare const SINGLE_DATASET_COUNTRY: {
|
|
10
18
|
id: string;
|
|
19
|
+
countryFlag: string;
|
|
11
20
|
label: string;
|
|
12
21
|
data: {
|
|
13
22
|
value: number;
|
|
@@ -15,10 +24,21 @@ export declare const SINGLE_DATASET_COUNTRY: {
|
|
|
15
24
|
value3: number;
|
|
16
25
|
}[];
|
|
17
26
|
}[];
|
|
18
|
-
export declare const
|
|
27
|
+
export declare const SINGLE_DATASET_APP: {
|
|
19
28
|
id: string;
|
|
20
29
|
label: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
image: string;
|
|
32
|
+
data: {
|
|
33
|
+
app: string;
|
|
34
|
+
value: number;
|
|
35
|
+
}[];
|
|
36
|
+
}[];
|
|
37
|
+
export declare const MULTIPLE_DATASETS_DATE: ({
|
|
38
|
+
id: number;
|
|
39
|
+
label: string;
|
|
21
40
|
caption: string;
|
|
41
|
+
isTotal: boolean;
|
|
22
42
|
icon: string;
|
|
23
43
|
data: {
|
|
24
44
|
date: string;
|
|
@@ -28,7 +48,7 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
28
48
|
}[];
|
|
29
49
|
iconType?: undefined;
|
|
30
50
|
} | {
|
|
31
|
-
id:
|
|
51
|
+
id: number;
|
|
32
52
|
label: string;
|
|
33
53
|
caption: string;
|
|
34
54
|
icon: string;
|
|
@@ -39,19 +59,23 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
39
59
|
value2: number;
|
|
40
60
|
value3: number;
|
|
41
61
|
}[];
|
|
62
|
+
isTotal?: undefined;
|
|
42
63
|
} | {
|
|
43
|
-
id:
|
|
64
|
+
id: number;
|
|
44
65
|
label: string;
|
|
45
66
|
caption: string;
|
|
46
67
|
icon: string;
|
|
47
68
|
data: {
|
|
48
69
|
date: string;
|
|
49
70
|
value: number;
|
|
71
|
+
value2: number;
|
|
72
|
+
value3: number;
|
|
50
73
|
}[];
|
|
74
|
+
isTotal?: undefined;
|
|
51
75
|
iconType?: undefined;
|
|
52
76
|
})[];
|
|
53
77
|
export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
54
|
-
id:
|
|
78
|
+
id: number;
|
|
55
79
|
label: string;
|
|
56
80
|
data: {
|
|
57
81
|
date: string;
|
|
@@ -69,3 +93,7 @@ export declare const breakdownsOptions: {
|
|
|
69
93
|
id: string;
|
|
70
94
|
label: string;
|
|
71
95
|
}[];
|
|
96
|
+
export declare const LEGEND_SORTING_OPTIONS: {
|
|
97
|
+
id: string;
|
|
98
|
+
label: string;
|
|
99
|
+
}[];
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { UseVirtualListItem } from '@vueuse/core';
|
|
3
3
|
import { IconTypes } from '../icon/v4/Icon.types';
|
|
4
|
-
import { ChartTypeRegistry, TooltipItem } from 'chart.js';
|
|
4
|
+
import { ChartDataset, ChartTypeRegistry, TooltipItem } from 'chart.js';
|
|
5
5
|
export declare enum ChartType {
|
|
6
6
|
Line = "line",
|
|
7
7
|
Bar = "bar",
|
|
8
8
|
StackedLine = "stackedLine",
|
|
9
9
|
StackedBar = "stackedBar"
|
|
10
10
|
}
|
|
11
|
+
export declare enum DateInterval {
|
|
12
|
+
DAILY = "daily",
|
|
13
|
+
WEEKLY = "weekly",
|
|
14
|
+
MONTHLY = "monthly"
|
|
15
|
+
}
|
|
11
16
|
export type ChartDataRecord = Record<string, unknown>;
|
|
12
17
|
export type ChartDataSet = {
|
|
13
18
|
id: string | number;
|
|
14
19
|
label: string;
|
|
15
20
|
data: ChartDataRecord[];
|
|
16
21
|
caption?: string;
|
|
17
|
-
color?:
|
|
22
|
+
color?: HexColor;
|
|
18
23
|
icon?: string;
|
|
19
24
|
iconType?: IconTypes;
|
|
25
|
+
countryFlag?: string;
|
|
26
|
+
image?: string;
|
|
27
|
+
isTotal?: boolean;
|
|
20
28
|
};
|
|
21
29
|
export type ChartParsingConfig = {
|
|
22
30
|
xAxisKey: string;
|
|
@@ -32,10 +40,7 @@ export type LegendItem = {
|
|
|
32
40
|
iconType?: IconTypes;
|
|
33
41
|
};
|
|
34
42
|
export interface MyTooltipItem<T extends keyof ChartTypeRegistry = keyof ChartTypeRegistry> extends TooltipItem<T> {
|
|
35
|
-
dataset:
|
|
36
|
-
icon?: string;
|
|
37
|
-
iconType?: IconTypes;
|
|
38
|
-
} & TooltipItem<T>['dataset'];
|
|
43
|
+
dataset: ChartDataSet & TooltipItem<T>['dataset'];
|
|
39
44
|
}
|
|
40
45
|
export type UseVirtualListResult = {
|
|
41
46
|
list: Ref<UseVirtualListItem<LegendItem>[]>;
|
|
@@ -58,4 +63,28 @@ export type DropdownTypeOption = {
|
|
|
58
63
|
export type UseChartHeightArgs = {
|
|
59
64
|
chartPlanesCount: Ref<number>;
|
|
60
65
|
useFullHeight: boolean;
|
|
66
|
+
bottomSpacing?: number;
|
|
61
67
|
};
|
|
68
|
+
export type HexColor = `#${string}`;
|
|
69
|
+
export type DataSetConfig = ChartDataset<'line'> & ChartDataSet;
|
|
70
|
+
export interface Font {
|
|
71
|
+
size: number;
|
|
72
|
+
weight: number;
|
|
73
|
+
family: string;
|
|
74
|
+
}
|
|
75
|
+
export type PrepareTicksLabelArgs = {
|
|
76
|
+
label: string;
|
|
77
|
+
format: ValueFormat;
|
|
78
|
+
availableSpace: number;
|
|
79
|
+
truncate?: boolean;
|
|
80
|
+
};
|
|
81
|
+
export declare enum TooltipOrder {
|
|
82
|
+
Legend = "legend",
|
|
83
|
+
YAxis = "yAxis"
|
|
84
|
+
}
|
|
85
|
+
export declare enum TrendDirection {
|
|
86
|
+
UP = "up",
|
|
87
|
+
DOWN = "down",
|
|
88
|
+
NEUTRAL = "neutral"
|
|
89
|
+
}
|
|
90
|
+
export type ColorVariant = 'default' | 'mediation';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L = /* @__PURE__ */ ((e) => (e.Line = "line", e.Bar = "bar", e.StackedLine = "stackedLine", e.StackedBar = "stackedBar", e))(L || {}), a = /* @__PURE__ */ ((e) => (e.DAILY = "daily", e.WEEKLY = "weekly", e.MONTHLY = "monthly", e))(a || {}), n = /* @__PURE__ */ ((e) => (e.Legend = "legend", e.YAxis = "yAxis", e))(n || {}), r = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e.NEUTRAL = "neutral", e))(r || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
L as ChartType,
|
|
4
|
+
a as DateInterval,
|
|
5
|
+
n as TooltipOrder,
|
|
6
|
+
r as TrendDirection
|
|
4
7
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const _ = [
|
|
2
|
+
"borderColor",
|
|
3
|
+
"backgroundColor",
|
|
4
|
+
"pointBackgroundColor",
|
|
5
|
+
"pointHoverBorderColor"
|
|
6
|
+
], l = (o) => {
|
|
7
|
+
_.forEach((r) => {
|
|
8
|
+
o[`___${r}`] = o[r];
|
|
9
|
+
});
|
|
10
|
+
}, n = (o) => {
|
|
11
|
+
_.forEach((r) => {
|
|
12
|
+
o[`___${r}`] && (o[r] = o[`___${r}`], delete o[`___${r}`]);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
n as restoreOriginalDatasetColors,
|
|
17
|
+
l as storeOriginalDatasetColors
|
|
18
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ValueFormat } from '@/components/chart/types';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import { PrepareTicksLabelArgs, ValueFormat } from '@/components/chart/types';
|
|
2
|
+
export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat, formatLowDigits?: boolean, withSuffixSpace?: boolean) => string;
|
|
3
|
+
export declare const prepareTickLabel: ({ label, format, availableSpace, truncate, }: PrepareTicksLabelArgs) => string | string[];
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { getUTCDate as e } from "../../../utils/date.js";
|
|
2
|
+
import { format as f } from "date-fns";
|
|
3
|
+
import { TICK_LABEL_FONT as d } from "../consts.js";
|
|
4
|
+
import { nFormatter as L, DEFAULT_FALLBACK as T } from "../../../utils/formatNumbers.js";
|
|
5
|
+
import { truncateTextToFit as c } from "../../../utils/text.js";
|
|
6
|
+
import { REGEX_LINEBREAK as s } from "../../../consts/regex.js";
|
|
7
|
+
const u = (r, t, o = !1, n = !0) => t === "day" ? f(e(r), "EEEE") : t === "number" ? L(
|
|
8
|
+
r,
|
|
9
|
+
o,
|
|
10
|
+
T,
|
|
11
|
+
n
|
|
12
|
+
) : t === "date" ? f(e(r), "MMM dd") : t === "dateLong" ? f(e(r), "MMM dd, yyyy") : String(r), B = ({
|
|
13
|
+
label: r,
|
|
14
|
+
format: t,
|
|
15
|
+
availableSpace: o,
|
|
16
|
+
truncate: n = !1
|
|
17
|
+
}) => {
|
|
18
|
+
const p = s.test(r), m = (E) => {
|
|
19
|
+
const i = u(E, t);
|
|
20
|
+
return n && o > 0 ? c(i, d, o) : i;
|
|
21
|
+
};
|
|
22
|
+
return p ? r.split(s).map(m) : m(r);
|
|
23
|
+
};
|
|
9
24
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
25
|
+
u as formatValue,
|
|
26
|
+
B as prepareTickLabel
|
|
12
27
|
};
|
|
@@ -2,7 +2,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
2
2
|
isChecked: boolean;
|
|
3
3
|
isIndeterminate?: boolean;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "sm" | "lg";
|
|
6
6
|
label?: string;
|
|
7
7
|
testId?: string;
|
|
8
8
|
}>, {
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
isChecked: boolean;
|
|
17
17
|
isIndeterminate?: boolean;
|
|
18
18
|
disabled?: boolean;
|
|
19
|
-
size?: "
|
|
19
|
+
size?: "md" | "sm" | "lg";
|
|
20
20
|
label?: string;
|
|
21
21
|
testId?: string;
|
|
22
22
|
}>, {
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
}, {
|
|
30
30
|
label: string;
|
|
31
31
|
testId: string;
|
|
32
|
-
size: "
|
|
32
|
+
size: "md" | "sm" | "lg";
|
|
33
33
|
}>, {
|
|
34
34
|
default?(_: {}): any;
|
|
35
35
|
}>;
|
|
@@ -5,7 +5,7 @@ declare const CheckboxTypes: () => ({
|
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
label: string;
|
|
7
7
|
testId: string;
|
|
8
|
-
size: "
|
|
8
|
+
size: "md" | "sm" | "lg";
|
|
9
9
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
10
10
|
label: {
|
|
11
11
|
type: import("vue").PropType<string>;
|
|
@@ -19,7 +19,7 @@ declare const CheckboxTypes: () => ({
|
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
20
20
|
};
|
|
21
21
|
size: {
|
|
22
|
-
type: import("vue").PropType<"
|
|
22
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
isIndeterminate: {
|
|
@@ -59,7 +59,7 @@ declare const CheckboxTypes: () => ({
|
|
|
59
59
|
type: import("vue").PropType<boolean>;
|
|
60
60
|
};
|
|
61
61
|
size: {
|
|
62
|
-
type: import("vue").PropType<"
|
|
62
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
isIndeterminate: {
|
|
@@ -78,7 +78,7 @@ declare const CheckboxTypes: () => ({
|
|
|
78
78
|
}, string, {
|
|
79
79
|
label: string;
|
|
80
80
|
testId: string;
|
|
81
|
-
size: "
|
|
81
|
+
size: "md" | "sm" | "lg";
|
|
82
82
|
}, {}, string> & {
|
|
83
83
|
beforeCreate?: (() => void) | (() => void)[];
|
|
84
84
|
created?: (() => void) | (() => void)[];
|
|
@@ -112,7 +112,7 @@ declare const CheckboxTypes: () => ({
|
|
|
112
112
|
type: import("vue").PropType<boolean>;
|
|
113
113
|
};
|
|
114
114
|
size: {
|
|
115
|
-
type: import("vue").PropType<"
|
|
115
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
116
116
|
default: string;
|
|
117
117
|
};
|
|
118
118
|
isIndeterminate: {
|
|
@@ -142,7 +142,7 @@ declare const CheckboxTypes: () => ({
|
|
|
142
142
|
type: import("vue").PropType<boolean>;
|
|
143
143
|
};
|
|
144
144
|
size: {
|
|
145
|
-
type: import("vue").PropType<"
|
|
145
|
+
type: import("vue").PropType<"md" | "sm" | "lg">;
|
|
146
146
|
default: string;
|
|
147
147
|
};
|
|
148
148
|
isIndeterminate: {
|
|
@@ -161,7 +161,7 @@ declare const CheckboxTypes: () => ({
|
|
|
161
161
|
}, string, {
|
|
162
162
|
label: string;
|
|
163
163
|
testId: string;
|
|
164
|
-
size: "
|
|
164
|
+
size: "md" | "sm" | "lg";
|
|
165
165
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
166
166
|
$slots: {
|
|
167
167
|
default?(_: {}): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SortableListItem } from '@/components/sortableList/SortableList.types';
|
|
2
|
+
export type ColumnConfigSection = {
|
|
3
|
+
sectionId: string;
|
|
4
|
+
title: string;
|
|
5
|
+
isGrouped: boolean;
|
|
6
|
+
maxSelections?: number;
|
|
7
|
+
sectionOptions: SortableListItem[] | SectionOptionsGroup[];
|
|
8
|
+
};
|
|
9
|
+
export type SectionOptionsGroup = {
|
|
10
|
+
displayText: string;
|
|
11
|
+
options: SortableListItem[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ColumnConfigSection } from '@/components/columnConfigurator/ColumnConfigurator.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
columnsConfig: ColumnConfigSection[];
|
|
4
|
+
selection: (string | number)[];
|
|
5
|
+
childSelection: Record<string, string | number>;
|
|
6
|
+
alwaysVisibleCount?: number;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}>, {
|
|
10
|
+
columnsConfig: () => any[];
|
|
11
|
+
selection: () => any[];
|
|
12
|
+
childSelection: () => {};
|
|
13
|
+
alwaysVisibleCount: number;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
testId: string;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:selection": (value: unknown[]) => void;
|
|
18
|
+
"update:childSelection": (value: Record<string, string | number>) => void;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
columnsConfig: ColumnConfigSection[];
|
|
21
|
+
selection: (string | number)[];
|
|
22
|
+
childSelection: Record<string, string | number>;
|
|
23
|
+
alwaysVisibleCount?: number;
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
testId?: string;
|
|
26
|
+
}>, {
|
|
27
|
+
columnsConfig: () => any[];
|
|
28
|
+
selection: () => any[];
|
|
29
|
+
childSelection: () => {};
|
|
30
|
+
alwaysVisibleCount: number;
|
|
31
|
+
loading: boolean;
|
|
32
|
+
testId: string;
|
|
33
|
+
}>>> & {
|
|
34
|
+
"onUpdate:selection"?: (value: unknown[]) => any;
|
|
35
|
+
"onUpdate:childSelection"?: (value: Record<string, string | number>) => any;
|
|
36
|
+
}, {
|
|
37
|
+
testId: string;
|
|
38
|
+
loading: boolean;
|
|
39
|
+
selection: (string | number)[];
|
|
40
|
+
alwaysVisibleCount: number;
|
|
41
|
+
columnsConfig: ColumnConfigSection[];
|
|
42
|
+
childSelection: Record<string, string | number>;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
47
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
48
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
49
|
+
} : {
|
|
50
|
+
type: import('vue').PropType<T[K]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type __VLS_WithDefaults<P, D> = {
|
|
55
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
56
|
+
default: D[K];
|
|
57
|
+
}> : P[K];
|
|
58
|
+
};
|
|
59
|
+
type __VLS_Prettify<T> = {
|
|
60
|
+
[K in keyof T]: T[K];
|
|
61
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./ColumnConfigurator.vue2.js";
|
|
2
|
+
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c13770d4"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css"; import { defineComponent as E, ref as g, computed as f, watch as I, openBlock as p, createElementBlock as v, mergeProps as O, unref as s, Fragment as w, renderList as T, createVNode as u, isRef as U, withCtx as h, createElementVNode as x } from "vue";
|
|
2
|
+
import N from "./SectionHeaderText.vue.js";
|
|
3
|
+
import R from "../sortableList/SortableSelectableList.vue.js";
|
|
4
|
+
import k from "../columnPicker/RemoveButton.vue.js";
|
|
5
|
+
import { mapOverObject as B, omitKeys as A } from "../../utils/object.js";
|
|
6
|
+
import { findOptionInSection as P } from "./utils.js";
|
|
7
|
+
import { useTestIdAttrs as V } from "../../utils/testIds.js";
|
|
8
|
+
import { ColumnConfiguratorTestIdModifiers as c } from "../../testids/index.js";
|
|
9
|
+
import L from "./SectionDropdown.vue.js";
|
|
10
|
+
const M = { class: "section-header" }, Q = /* @__PURE__ */ E({
|
|
11
|
+
__name: "ColumnConfigurator",
|
|
12
|
+
props: {
|
|
13
|
+
columnsConfig: { default: () => [] },
|
|
14
|
+
selection: { default: () => [] },
|
|
15
|
+
childSelection: { default: () => ({}) },
|
|
16
|
+
alwaysVisibleCount: { default: 6 },
|
|
17
|
+
loading: { type: Boolean, default: !1 },
|
|
18
|
+
testId: { default: "" }
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:selection", "update:childSelection"],
|
|
21
|
+
setup(n, { emit: m }) {
|
|
22
|
+
const i = n, r = g(null), d = f({
|
|
23
|
+
get: () => i.childSelection,
|
|
24
|
+
set: (t) => {
|
|
25
|
+
m("update:childSelection", t);
|
|
26
|
+
}
|
|
27
|
+
}), C = f(
|
|
28
|
+
() => B(a.value, (t) => t?.length ?? 0)
|
|
29
|
+
), a = g({});
|
|
30
|
+
I(
|
|
31
|
+
[() => i.selection, () => i.columnsConfig],
|
|
32
|
+
() => {
|
|
33
|
+
a.value = i.columnsConfig.reduce((t, l) => (t[l.sectionId] = (i.selection ?? []).map((e) => P(l, e)).filter((e) => e), t), {});
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
immediate: !0
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
const S = (t, l) => {
|
|
40
|
+
const e = l;
|
|
41
|
+
a.value[t] = e, e.forEach((o) => {
|
|
42
|
+
o.children?.length > 0 && (d.value = {
|
|
43
|
+
...d.value,
|
|
44
|
+
[o.id]: o.children[0].id
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}, $ = f(
|
|
48
|
+
() => Object.values(a.value).reduce(
|
|
49
|
+
(t, l) => t.concat(l.map(({ id: e }) => e)),
|
|
50
|
+
[]
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
I($, (t, l) => {
|
|
54
|
+
JSON.stringify(t) !== JSON.stringify(l) && m("update:selection", t);
|
|
55
|
+
});
|
|
56
|
+
const b = (t) => {
|
|
57
|
+
m(
|
|
58
|
+
"update:selection",
|
|
59
|
+
i.selection.filter((l) => l !== t)
|
|
60
|
+
), r.value === t && (r.value = null), d.value = A(d.value, [String(t)]);
|
|
61
|
+
}, y = V(
|
|
62
|
+
i.testId,
|
|
63
|
+
c
|
|
64
|
+
);
|
|
65
|
+
return (t, l) => (p(), v("div", O({ class: "column-configurator" }, s(y)[s(c).WRAPPER]), [
|
|
66
|
+
(p(!0), v(w, null, T(n.columnsConfig, (e) => (p(), v("div", {
|
|
67
|
+
key: e.sectionId,
|
|
68
|
+
class: "column-section"
|
|
69
|
+
}, [
|
|
70
|
+
u(R, {
|
|
71
|
+
items: a.value[e.sectionId],
|
|
72
|
+
"onUpdate:items": (o) => a.value[e.sectionId] = o,
|
|
73
|
+
"open-id": r.value,
|
|
74
|
+
"onUpdate:open-id": l[0] || (l[0] = (o) => r.value = o),
|
|
75
|
+
"selected-child-per-item": s(d),
|
|
76
|
+
"onUpdate:selected-child-per-item": l[1] || (l[1] = (o) => U(d) ? d.value = o : null),
|
|
77
|
+
"always-visible-count": n.alwaysVisibleCount,
|
|
78
|
+
"is-loading": n.loading,
|
|
79
|
+
variant: "compact",
|
|
80
|
+
"draggable-area": "full",
|
|
81
|
+
"loading-row-count": 3,
|
|
82
|
+
"test-id": `${n.testId}-${s(c).LIST}-${e.sectionId}`
|
|
83
|
+
}, {
|
|
84
|
+
header: h(() => [
|
|
85
|
+
x("div", M, [
|
|
86
|
+
u(N, {
|
|
87
|
+
"header-text": e.title,
|
|
88
|
+
"records-count": n.loading ? null : s(C)[e.sectionId],
|
|
89
|
+
"data-testid": `${n.testId}-${s(c).SECTION_HEADER}-${e.sectionId}`
|
|
90
|
+
}, null, 8, ["header-text", "records-count", "data-testid"]),
|
|
91
|
+
u(L, {
|
|
92
|
+
selected: a.value[e.sectionId],
|
|
93
|
+
section: e,
|
|
94
|
+
"test-id": n.testId,
|
|
95
|
+
"onUpdate:selected": (o) => S(e.sectionId, o)
|
|
96
|
+
}, null, 8, ["selected", "section", "test-id", "onUpdate:selected"])
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
menu: h(({ item: o }) => [
|
|
100
|
+
u(k, {
|
|
101
|
+
"test-id": `${n.testId}-${s(c).REMOVE_BUTTON}-${o.id}`,
|
|
102
|
+
onClick: (j) => b(o.id)
|
|
103
|
+
}, null, 8, ["test-id", "onClick"])
|
|
104
|
+
]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1032, ["items", "onUpdate:items", "open-id", "selected-child-per-item", "always-visible-count", "is-loading", "test-id"])
|
|
107
|
+
]))), 128))
|
|
108
|
+
], 16));
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
Q as default
|
|
113
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ColumnConfigSection } from '@/components/columnConfigurator/ColumnConfigurator.types';
|
|
2
|
+
import { SortableListItem } from '@/components/sortableList/SortableList.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
selected: SortableListItem[];
|
|
5
|
+
section: ColumnConfigSection;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}>, {
|
|
8
|
+
testId: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:selected": (value: SortableListItem[]) => void;
|
|
11
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
selected: SortableListItem[];
|
|
13
|
+
section: ColumnConfigSection;
|
|
14
|
+
testId?: string;
|
|
15
|
+
}>, {
|
|
16
|
+
testId: string;
|
|
17
|
+
}>>> & {
|
|
18
|
+
"onUpdate:selected"?: (value: SortableListItem[]) => any;
|
|
19
|
+
}, {
|
|
20
|
+
testId: string;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./SectionDropdown.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cfad60a8"]]);
|
|
5
|
+
export {
|
|
6
|
+
p as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "../../SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css"; import { defineComponent as c, openBlock as m, createBlock as a, unref as t, withCtx as p, createVNode as u, mergeProps as f } from "vue";
|
|
2
|
+
import { DISPLAY_FIELD_NAME as n } from "./consts.js";
|
|
3
|
+
import g from "../dropdown/v4/DropdownV4.vue.js";
|
|
4
|
+
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
5
|
+
import D from "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
6
|
+
import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
7
|
+
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
8
|
+
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
9
|
+
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
10
|
+
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
11
|
+
import "../dropdown/v4/OptionV4.vue.js";
|
|
12
|
+
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
13
|
+
import { ColumnConfiguratorTestIdModifiers as r } from "../../testids/index.js";
|
|
14
|
+
import { matchString as I } from "../../utils/search.js";
|
|
15
|
+
const v = /* @__PURE__ */ c({
|
|
16
|
+
__name: "SectionDropdown",
|
|
17
|
+
props: {
|
|
18
|
+
selected: null,
|
|
19
|
+
section: null,
|
|
20
|
+
testId: { default: "" }
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:selected"],
|
|
23
|
+
setup(e, { emit: l }) {
|
|
24
|
+
const d = (s, i) => I(s[n], i);
|
|
25
|
+
return (s, i) => (m(), a(t(g), {
|
|
26
|
+
selected: e.selected,
|
|
27
|
+
class: "section-dropdown",
|
|
28
|
+
"display-value": (o) => o[t(n)],
|
|
29
|
+
options: e.section.sectionOptions,
|
|
30
|
+
"grouped-options": e.section.isGrouped,
|
|
31
|
+
"max-selections": e.section.maxSelections,
|
|
32
|
+
"option-name-key": t(n),
|
|
33
|
+
"comparing-key": "id",
|
|
34
|
+
multi: "",
|
|
35
|
+
"inline-search": "",
|
|
36
|
+
"show-select-all": !1,
|
|
37
|
+
"show-clear-all": !1,
|
|
38
|
+
"on-search": d,
|
|
39
|
+
placement: "bottom-end",
|
|
40
|
+
"test-id": `${e.testId}-${t(r).DROPDOWN}-${e.section.sectionId}`,
|
|
41
|
+
"onUpdate:selected": i[0] || (i[0] = (o) => l("update:selected", o))
|
|
42
|
+
}, {
|
|
43
|
+
"dropdown-trigger": p(({ buttonTriggerProps: o }) => [
|
|
44
|
+
u(t(D), f({
|
|
45
|
+
"icon-name": "plus",
|
|
46
|
+
"icon-type": "regular",
|
|
47
|
+
size: "extraSmall",
|
|
48
|
+
"test-id": `${e.testId}-${t(r).ADD_BUTTON}-${e.section.sectionId}`
|
|
49
|
+
}, o), null, 16, ["test-id"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, ["selected", "display-value", "options", "grouped-options", "max-selections", "option-name-key", "test-id"]));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
v as default
|
|
57
|
+
};
|