@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
- package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
- package/components/appIcon/index.d.ts +3 -3
- package/components/banner/Banner.vue.d.ts +3 -3
- package/components/banner/index.d.ts +7 -7
- package/components/button/common/consts.d.ts +1 -0
- package/components/button/v3/Button.vue.d.ts +3 -3
- package/components/button/v3/ButtonBase.vue.d.ts +3 -3
- package/components/button/v3/IconButton.vue.d.ts +3 -3
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.d.ts +5 -3
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +28 -27
- package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
- package/components/chart/Chart.vue.d.ts +168 -37
- package/components/chart/Chart.vue.js +2 -2
- package/components/chart/Chart.vue2.js +154 -297
- package/components/chart/ChartHeader.vue.d.ts +50 -11
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +73 -54
- package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
- package/components/chart/ChartHeaderTrend.vue.js +7 -0
- package/components/chart/ChartHeaderTrend.vue2.js +97 -0
- package/components/chart/ChartLegend.vue.d.ts +24 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +82 -63
- package/components/chart/ChartPlane.vue.d.ts +236 -0
- package/components/chart/ChartPlane.vue.js +7 -0
- package/components/chart/ChartPlane.vue2.js +381 -0
- package/components/chart/ChartStoryArgs.d.ts +196 -0
- package/components/chart/ChartTooltip.vue.d.ts +22 -2
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +51 -56
- package/components/chart/LegendSorting.vue.d.ts +37 -0
- package/components/chart/LegendSorting.vue.js +45 -0
- package/components/chart/LegendSorting.vue2.js +4 -0
- package/components/chart/SettingsHeader.vue.d.ts +1 -0
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +17 -16
- package/components/chart/SubHeader.vue.d.ts +52 -0
- package/components/chart/SubHeader.vue.js +7 -0
- package/components/chart/SubHeader.vue2.js +61 -0
- package/components/chart/TooltipHeader.vue.d.ts +50 -0
- package/components/chart/TooltipHeader.vue.js +7 -0
- package/components/chart/TooltipHeader.vue2.js +70 -0
- package/components/chart/colorPalette.d.ts +5 -0
- package/components/chart/colorPalette.js +68 -0
- package/components/chart/composables/useChartHeight.d.ts +5 -0
- package/components/chart/composables/useChartHeight.js +24 -0
- package/components/chart/composables/useColorsMap.d.ts +12 -0
- package/components/chart/composables/useColorsMap.js +48 -0
- package/components/chart/composables/useTooltipPosition.d.ts +1 -1
- package/components/chart/composables/useTooltipPosition.js +11 -15
- package/components/chart/consts.d.ts +33 -7
- package/components/chart/consts.js +46 -22
- package/components/chart/index.d.ts +592 -119
- package/components/chart/mockData.d.ts +59 -5
- package/components/chart/types.d.ts +39 -6
- package/components/chart/types.js +5 -2
- package/components/chart/utils/formatNumber.d.ts +0 -1
- package/components/chart/utils/highlightUtils.d.ts +3 -0
- package/components/chart/utils/highlightUtils.js +18 -0
- package/components/chart/utils/utils.d.ts +3 -3
- package/components/chart/utils/utils.js +25 -10
- package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
- package/components/checkbox/v3/index.d.ts +7 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dateRange/common/DateRange.common.js +100 -94
- package/components/dateRange/common/DateServices.common.d.ts +7 -1
- package/components/dateRange/common/DateServices.common.js +88 -92
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -3
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +164 -164
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +161 -149
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +144 -122
- package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
- package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +162 -117
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +701 -162
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/forms/FormRow.vue.d.ts +9 -2
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +25 -14
- package/components/forms/index.d.ts +25 -5
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +40 -40
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +201 -0
- package/components/link/index.js +6 -0
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/search/v3/index.d.ts +3 -3
- package/components/shared/FieldLabel.vue.d.ts +19 -7
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +50 -37
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +10 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +104 -96
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/index.d.ts +39 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +39 -24
- package/components/switch/v4/index.d.ts +29 -0
- package/components/table/common/Table.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +18 -7
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +300 -250
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +82 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
- package/components/table/v4/index.d.ts +575 -293
- package/components/table/v4/index.js +7 -4
- package/components/table/v4/storyUtils.d.ts +27 -0
- package/components/tabs/v3/Tabs.vue.d.ts +3 -3
- package/components/tabs/v3/index.d.ts +7 -7
- package/components/tooltip/common/Tooltip.types.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
- package/components/tooltip/v3/Tooltip.vue.js +2 -2
- package/components/tooltip/v3/Tooltip.vue2.js +1 -1
- package/components/tooltip/v3/index.d.ts +7 -7
- package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +27 -8
- package/components/typography/Text.vue.d.ts +3 -3
- package/components/typography/index.d.ts +7 -7
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/composables/useFormValidation.d.ts +1 -0
- package/composables/useFormValidation.js +32 -27
- package/composables/useFullPageHeight.d.ts +10 -0
- package/composables/useFullPageHeight.js +15 -0
- package/consts/common.d.ts +1 -0
- package/consts/common.js +4 -0
- package/consts/regex.d.ts +1 -0
- package/consts/regex.js +2 -1
- package/index.d.ts +4185 -2363
- package/index.js +148 -132
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +13 -1
- package/testids/index.d.ts +8 -0
- package/testids/index.js +35 -33
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +37 -7
- package/utils/index.js +7 -0
- package/utils/text.d.ts +3 -0
- package/utils/text.js +24 -5
- package/utils/totals.d.ts +5 -0
- package/utils/totals.js +9 -0
- package/utils/utils.d.ts +1 -0
- package/utils/utils.js +4 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
- package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
- package/components/chart/utils/formatNumber.js +0 -11
package/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import { AppTriggerTypes as
|
|
1
|
+
import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
|
|
2
|
+
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
|
-
import { MenuItemTypes as
|
|
4
|
+
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
|
5
5
|
import { MenuTypes as fo } from "./components/menu/index.js";
|
|
6
|
-
import { AppIconTypes as
|
|
7
|
-
import { FloatingToolbarTypes as
|
|
8
|
-
import { IncludeExcludeTypes as
|
|
9
|
-
import { ID_INJECTION_KEY as
|
|
10
|
-
import { FilterDropdownTypes as
|
|
11
|
-
import { TypographyTypes as
|
|
12
|
-
import { TypographyTypesV4 as
|
|
13
|
-
import { MultiBarTypes as
|
|
14
|
-
import { FoldableSectionTypes as
|
|
15
|
-
import { FormCardTypes as
|
|
6
|
+
import { AppIconTypes as so } from "./components/appIcon/index.js";
|
|
7
|
+
import { FloatingToolbarTypes as lo } from "./components/floatingToolbar/index.js";
|
|
8
|
+
import { IncludeExcludeTypes as $o } from "./components/includeExclude/index.js";
|
|
9
|
+
import { ID_INJECTION_KEY as co, useId as yo } from "./composables/useId.js";
|
|
10
|
+
import { FilterDropdownTypes as Fo } from "./components/filterDropdown/index.js";
|
|
11
|
+
import { TypographyTypes as Ao } from "./components/typography/index.js";
|
|
12
|
+
import { TypographyTypesV4 as Co } from "./components/typography/v4/index.js";
|
|
13
|
+
import { MultiBarTypes as ho } from "./components/multibar/index.js";
|
|
14
|
+
import { FoldableSectionTypes as Mo } from "./components/layout/index.js";
|
|
15
|
+
import { FormCardTypes as wo, FormFieldTypes as ko } from "./components/forms/index.js";
|
|
16
16
|
import * as o from "./components/button/v3/index.js";
|
|
17
17
|
import * as r from "./components/button/v4/index.js";
|
|
18
18
|
import * as e from "./components/chip/v3/index.js";
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
19
|
+
import * as t from "./components/chip/v4/index.js";
|
|
20
|
+
import * as m from "./components/switch/v3/index.js";
|
|
21
21
|
import * as p from "./components/switch/v4/index.js";
|
|
22
22
|
import * as a from "./components/dropdown/v3/index.js";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
23
|
+
import * as i from "./components/dropdown/v4/index.js";
|
|
24
|
+
import * as f from "./components/search/v3/index.js";
|
|
25
25
|
import * as d from "./components/search/v4/index.js";
|
|
26
26
|
import * as x from "./components/filtersPanel/v3/index.js";
|
|
27
27
|
import * as s from "./components/filtersPanel/v4/index.js";
|
|
@@ -44,72 +44,79 @@ import * as B from "./components/table/v4/index.js";
|
|
|
44
44
|
import * as M from "./components/table-cells/v3/index.js";
|
|
45
45
|
import * as b from "./components/table-cells/v4/index.js";
|
|
46
46
|
import * as w from "./components/skeleton/v3/index.js";
|
|
47
|
-
import * as
|
|
48
|
-
import * as
|
|
49
|
-
import * as
|
|
47
|
+
import * as k from "./components/skeleton/v4/index.js";
|
|
48
|
+
import * as O from "./components/loader/v4/index.js";
|
|
49
|
+
import * as P from "./components/emptyState/v3/index.js";
|
|
50
50
|
import * as S from "./components/emptyState/v4/index.js";
|
|
51
|
-
import * as
|
|
52
|
-
import * as
|
|
53
|
-
import * as
|
|
54
|
-
import * as
|
|
55
|
-
import * as
|
|
56
|
-
import * as
|
|
57
|
-
import * as
|
|
58
|
-
import * as
|
|
59
|
-
import * as
|
|
60
|
-
import * as
|
|
61
|
-
import * as
|
|
62
|
-
import * as
|
|
63
|
-
import * as
|
|
64
|
-
import * as
|
|
51
|
+
import * as v from "./components/snackbar/v3/index.js";
|
|
52
|
+
import * as H from "./components/snackbar/v4/index.js";
|
|
53
|
+
import * as L from "./components/radioButton/v3/index.js";
|
|
54
|
+
import * as N from "./components/radioButton/v4/index.js";
|
|
55
|
+
import * as V from "./components/textArea/v3/index.js";
|
|
56
|
+
import * as J from "./components/textArea/v4/index.js";
|
|
57
|
+
import * as K from "./components/ThemeWrapper/index.js";
|
|
58
|
+
import * as R from "./components/appHeader/index.js";
|
|
59
|
+
import * as _ from "./components/inlineCopy/index.js";
|
|
60
|
+
import * as j from "./components/statusDot/index.js";
|
|
61
|
+
import * as q from "./components/sortableList/index.js";
|
|
62
|
+
import * as z from "./components/datePicker/v3/index.js";
|
|
63
|
+
import * as G from "./components/datePicker/v4/index.js";
|
|
64
|
+
import * as Q from "./components/dateRange/v3/index.js";
|
|
65
65
|
import * as Y from "./components/dateRange/v4/index.js";
|
|
66
66
|
import * as U from "./components/popover/v3/index.js";
|
|
67
67
|
import * as W from "./components/popover/v4/index.js";
|
|
68
|
-
import
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
68
|
+
import * as X from "./utils/index.js";
|
|
69
|
+
import { useToggle as Po } from "./composables/useToggle.js";
|
|
70
|
+
import { useSearch as vo } from "./composables/useSearch.js";
|
|
71
|
+
import { scrollToElementByClass as Lo, scrollToFirstInvalidElement as No, useFormValidation as Vo, yupValidation as Jo } from "./composables/useFormValidation.js";
|
|
72
|
+
import { useDateService as Ro } from "./composables/useDateService.js";
|
|
71
73
|
import { BannerTypes as jo } from "./components/banner/index.js";
|
|
72
|
-
import { AlertTypes as
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as Jr } from "./components/
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as jr } from "./components/forms/
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
|
|
74
|
+
import { AlertTypes as zo } from "./components/alert/index.js";
|
|
75
|
+
import { LinkTypes as Qo } from "./components/link/index.js";
|
|
76
|
+
import { AutocompleteTypes as Uo } from "./components/autocomplete/index.js";
|
|
77
|
+
import { ChartTypes as Xo } from "./components/chart/index.js";
|
|
78
|
+
import { ColumnPickerTypes as or } from "./components/columnPicker/index.js";
|
|
79
|
+
import { default as er } from "./components/appTrigger/AppTrigger.vue.js";
|
|
80
|
+
import { default as mr } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
|
|
81
|
+
import { default as ar } from "./components/menuItem/MenuItem.vue.js";
|
|
82
|
+
import { default as fr } from "./components/menu/Menu.vue.js";
|
|
83
|
+
import { default as xr } from "./components/appIcon/AppIcon.vue.js";
|
|
84
|
+
import { default as nr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
|
|
85
|
+
import { default as ur } from "./components/includeExclude/IncludeExclude.vue.js";
|
|
86
|
+
import { default as Tr } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
|
|
87
|
+
import { default as yr } from "./components/includeExclude/IncludeExcludeOption.vue.js";
|
|
88
|
+
import { default as Fr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
|
|
89
|
+
import { default as Ar } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
|
|
90
|
+
import { default as Cr } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
|
|
91
|
+
import { default as hr } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
|
|
92
|
+
import { default as Mr } from "./components/filterDropdown/FilterDropdown.vue.js";
|
|
93
|
+
import { default as wr } from "./components/filterDropdown/AddFilterButton.vue.js";
|
|
94
|
+
import { default as Or } from "./components/typography/Heading.vue.js";
|
|
95
|
+
import { default as Sr } from "./components/typography/Text.vue.js";
|
|
96
|
+
import { default as Hr } from "./components/typography/v4/Typography.vue.js";
|
|
97
|
+
import { default as Nr } from "./components/multibar/MultiBar.vue.js";
|
|
98
|
+
import { default as Jr } from "./components/layout/FoldableSection.vue.js";
|
|
99
|
+
import { default as Rr } from "./components/forms/FormRow.vue.js";
|
|
100
|
+
import { default as jr } from "./components/forms/FormCard.vue.js";
|
|
101
|
+
import { default as zr } from "./components/forms/CardPanel.vue.js";
|
|
102
|
+
import { default as Qr } from "./components/forms/FormField.vue.js";
|
|
103
|
+
import { default as Ur } from "./components/banner/Banner.vue.js";
|
|
104
|
+
import { default as Xr } from "./components/alert/Alert.vue.js";
|
|
105
|
+
import { default as oe } from "./components/link/Link.vue.js";
|
|
106
|
+
import { default as ee } from "./components/autocomplete/Autocomplete.vue.js";
|
|
107
|
+
import { default as me } from "./components/chart/Chart.vue.js";
|
|
108
|
+
import { ChartType as ae, TooltipOrder as ie, TrendDirection as fe } from "./components/chart/types.js";
|
|
109
|
+
import { default as xe } from "./components/columnPicker/ColumnPicker.vue.js";
|
|
110
|
+
const Z = {
|
|
104
111
|
...e,
|
|
105
|
-
...m,
|
|
106
112
|
...t,
|
|
113
|
+
...m,
|
|
107
114
|
...p,
|
|
108
115
|
...o,
|
|
109
116
|
...r,
|
|
110
117
|
...a,
|
|
111
|
-
...f,
|
|
112
118
|
...i,
|
|
119
|
+
...f,
|
|
113
120
|
...d,
|
|
114
121
|
...x,
|
|
115
122
|
...s,
|
|
@@ -129,85 +136,94 @@ const X = {
|
|
|
129
136
|
...B,
|
|
130
137
|
...M,
|
|
131
138
|
...b,
|
|
132
|
-
...
|
|
139
|
+
...P,
|
|
133
140
|
...S,
|
|
134
141
|
...w,
|
|
142
|
+
...k,
|
|
135
143
|
...O,
|
|
136
|
-
...H,
|
|
137
|
-
...V,
|
|
138
144
|
...v,
|
|
145
|
+
...H,
|
|
139
146
|
...n,
|
|
140
147
|
...l,
|
|
141
|
-
...
|
|
142
|
-
..._,
|
|
148
|
+
...V,
|
|
143
149
|
...J,
|
|
150
|
+
...L,
|
|
151
|
+
...N,
|
|
144
152
|
...K,
|
|
153
|
+
...R,
|
|
154
|
+
..._,
|
|
145
155
|
...j,
|
|
146
|
-
...k,
|
|
147
156
|
...q,
|
|
148
157
|
...z,
|
|
149
158
|
...G,
|
|
150
|
-
...L,
|
|
151
159
|
...Q,
|
|
152
|
-
...R,
|
|
153
160
|
...Y,
|
|
154
161
|
...U,
|
|
155
|
-
...W
|
|
162
|
+
...W,
|
|
163
|
+
...X
|
|
156
164
|
};
|
|
157
165
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
wr as AddFilterButton,
|
|
167
|
+
Xr as Alert,
|
|
168
|
+
zo as AlertTypes,
|
|
169
|
+
xr as AppIcon,
|
|
170
|
+
so as AppIconTypes,
|
|
171
|
+
er as AppTrigger,
|
|
172
|
+
eo as AppTriggerTypes,
|
|
173
|
+
ee as Autocomplete,
|
|
174
|
+
mr as AutocompleteDropdown,
|
|
167
175
|
mo as AutocompleteDropdownTypes,
|
|
168
|
-
|
|
169
|
-
|
|
176
|
+
Uo as AutocompleteTypes,
|
|
177
|
+
Ur as Banner,
|
|
170
178
|
jo as BannerTypes,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
179
|
+
zr as CardPanel,
|
|
180
|
+
me as Chart,
|
|
181
|
+
ae as ChartType,
|
|
182
|
+
Xo as ChartTypes,
|
|
183
|
+
xe as ColumnPicker,
|
|
184
|
+
or as ColumnPickerTypes,
|
|
185
|
+
Mr as FilterDropdown,
|
|
186
|
+
Fo as FilterDropdownTypes,
|
|
187
|
+
nr as FloatingToolbar,
|
|
188
|
+
lo as FloatingToolbarTypes,
|
|
189
|
+
Jr as FoldableSection,
|
|
190
|
+
Mo as FoldableSectionTypes,
|
|
191
|
+
jr as FormCard,
|
|
192
|
+
wo as FormCardTypes,
|
|
193
|
+
Qr as FormField,
|
|
194
|
+
ko as FormFieldTypes,
|
|
195
|
+
Rr as FormRow,
|
|
196
|
+
Or as Heading,
|
|
197
|
+
co as ID_INJECTION_KEY,
|
|
198
|
+
ur as IncludeExclude,
|
|
199
|
+
Cr as IncludeExcludeAppHeader,
|
|
200
|
+
Ar as IncludeExcludeAppTrigger,
|
|
201
|
+
hr as IncludeExcludeChipFilter,
|
|
202
|
+
Tr as IncludeExcludeDragDrop,
|
|
203
|
+
yr as IncludeExcludeOption,
|
|
204
|
+
Fr as IncludeExcludeOptionDraggable,
|
|
205
|
+
$o as IncludeExcludeTypes,
|
|
206
|
+
oe as Link,
|
|
207
|
+
Qo as LinkTypes,
|
|
208
|
+
fr as Menu,
|
|
209
|
+
ar as MenuItem,
|
|
210
|
+
ao as MenuItemTypes,
|
|
198
211
|
fo as MenuTypes,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
Nr as MultiBar,
|
|
213
|
+
ho as MultiBarTypes,
|
|
214
|
+
Sr as Text,
|
|
215
|
+
ie as TooltipOrder,
|
|
216
|
+
fe as TrendDirection,
|
|
217
|
+
Hr as Typography,
|
|
218
|
+
Ao as TypographyTypes,
|
|
219
|
+
Co as TypographyTypesV4,
|
|
220
|
+
Z as default,
|
|
221
|
+
Lo as scrollToElementByClass,
|
|
222
|
+
No as scrollToFirstInvalidElement,
|
|
223
|
+
Ro as useDateService,
|
|
224
|
+
Vo as useFormValidation,
|
|
225
|
+
yo as useId,
|
|
226
|
+
vo as useSearch,
|
|
227
|
+
Po as useToggle,
|
|
228
|
+
Jo as yupValidation
|
|
213
229
|
};
|
package/mocks/apps.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironsource/shared-ui",
|
|
3
|
-
"version": "2.1.12-rc.
|
|
3
|
+
"version": "2.1.12-rc.40",
|
|
4
4
|
"engines": {
|
|
5
5
|
"npm": ">=7.0.0",
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
"./chart": "./components/chart/index.js",
|
|
153
153
|
"./menuItem": "./components/menuItem/MenuItem.vue.js",
|
|
154
154
|
"./menu": "./components/menu/Menu.vue.js",
|
|
155
|
+
"./columnPicker": "./components/columnPicker/index.js",
|
|
155
156
|
".": {
|
|
156
157
|
"import": "./index.js"
|
|
157
158
|
},
|
|
@@ -222,6 +223,7 @@
|
|
|
222
223
|
"./styleguideV4": "./style/styleguideV4.scss",
|
|
223
224
|
"./banner": "./components/banner/Banner.vue.js",
|
|
224
225
|
"./alert": "./components/alert/index.js",
|
|
226
|
+
"./link": "./components/link/index.js",
|
|
225
227
|
"./multibar": "./components/multibar/index.js",
|
|
226
228
|
"./typography": "./components/typography/v4/index.js",
|
|
227
229
|
"./themeWrapper": "./components/ThemeWrapper/index.js",
|
|
@@ -231,6 +233,7 @@
|
|
|
231
233
|
"./statusDot": "./components/statusDot/index.js",
|
|
232
234
|
"./sortableList": "./components/sortableList/index.js",
|
|
233
235
|
"./composables/useFormValidation": "./composables/useFormValidation.js",
|
|
236
|
+
"./composables/useDateService": "./composables/useDateService.js",
|
|
234
237
|
"./utils/": "./utils/index.ts"
|
|
235
238
|
},
|
|
236
239
|
"typesVersions": {
|
|
@@ -253,6 +256,9 @@
|
|
|
253
256
|
"menu": [
|
|
254
257
|
"./components/menu/Menu.vue.d.ts"
|
|
255
258
|
],
|
|
259
|
+
"columnPicker": [
|
|
260
|
+
"./components/columnPicker/index.d.ts"
|
|
261
|
+
],
|
|
256
262
|
"editable": [
|
|
257
263
|
"./components/table-cells/v3/Editable.vue.d.ts"
|
|
258
264
|
],
|
|
@@ -436,6 +442,9 @@
|
|
|
436
442
|
"alert": [
|
|
437
443
|
"./components/alert/index.d.ts"
|
|
438
444
|
],
|
|
445
|
+
"link": [
|
|
446
|
+
"./components/link/index.d.ts"
|
|
447
|
+
],
|
|
439
448
|
"multibar": [
|
|
440
449
|
"./components/multibar/index.d.ts"
|
|
441
450
|
],
|
|
@@ -468,6 +477,9 @@
|
|
|
468
477
|
],
|
|
469
478
|
"composables/useFormValidation": [
|
|
470
479
|
"./composables/useFormValidation.d.ts"
|
|
480
|
+
],
|
|
481
|
+
"composables/useDateService": [
|
|
482
|
+
"./composables/useDateService.d.ts"
|
|
471
483
|
]
|
|
472
484
|
}
|
|
473
485
|
},
|
package/testids/index.d.ts
CHANGED
|
@@ -29,10 +29,18 @@ export declare enum DropdownTestIdModifiers {
|
|
|
29
29
|
SELECT_ALL = "dd-select-all",
|
|
30
30
|
NO_RESULT = "dd-no-result"
|
|
31
31
|
}
|
|
32
|
+
export declare enum ColumnPickerTestIdModifiers {
|
|
33
|
+
TRIGGER = "column-picker-trigger",
|
|
34
|
+
WRAPPER = "column-picker-wrapper"
|
|
35
|
+
}
|
|
32
36
|
export declare enum BannerTestIdModifiers {
|
|
33
37
|
WRAPPER = "banner-wrapper",
|
|
34
38
|
CONTENT = "banner-content"
|
|
35
39
|
}
|
|
40
|
+
export declare enum LinkTestIdModifiers {
|
|
41
|
+
WRAPPER = "link-wrapper",
|
|
42
|
+
ICON = "link-icon"
|
|
43
|
+
}
|
|
36
44
|
export declare enum AlertTestIdModifiers {
|
|
37
45
|
WRAPPER = "alert-wrapper",
|
|
38
46
|
TITLE = "alert-title",
|
package/testids/index.js
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
var a = /* @__PURE__ */ ((E) => (E.TRIGGER = "ie-trigger", E.CONTENT = "ie-content", E.SEARCH = "ie-search", E.LIST = "ie-list", E.LIST_SELECTED = "ie-list-selected", E.ACTION_CANCEL = "ie-action-cancel", E.ACTION_APPLY = "ie-action-apply", E.SELECT_ALL = "ie-select-all", E.CLEAR_ALL = "ie-clear-all", E))(a || {}), R = /* @__PURE__ */ ((E) => (E.TRIGGER = "dd-trigger", E.WRAPPER = "dd-wrapper", E.BUTTON = "dd-button", E.BUTTON_WRAPPER = "dd-button-wrapper", E.BUTTON_CONTENT = "dd-button-content", E.BUTTON_CONTENT_SUFFIX = "dd-button-content-suffix", E.BUTTON_CLEAR = "dd-button-clear", E.LABEL = "dd-label", E.LIST_CONTAINER = "dd-list-container", E.SEARCH = "dd-search", E.TITLE = "dd-title", E.ACTION_CANCEL = "dd-action-cancel", E.ACTION_APPLY = "dd-action-apply", E.ACTION_CLEAR_ALL = "dd-action-clear-all", E.HELPER_TEXT = "dd-helper-text", E.HELPER_TEXT_ERROR = "dd-helper-text-error", E.SELECT_ALL = "dd-select-all", E.NO_RESULT = "dd-no-result", E))(R || {}), O = /* @__PURE__ */ ((E) => (E.WRAPPER = "banner-wrapper", E.CONTENT = "banner-content", E))(
|
|
1
|
+
var a = /* @__PURE__ */ ((E) => (E.TRIGGER = "ie-trigger", E.CONTENT = "ie-content", E.SEARCH = "ie-search", E.LIST = "ie-list", E.LIST_SELECTED = "ie-list-selected", E.ACTION_CANCEL = "ie-action-cancel", E.ACTION_APPLY = "ie-action-apply", E.SELECT_ALL = "ie-select-all", E.CLEAR_ALL = "ie-clear-all", E))(a || {}), R = /* @__PURE__ */ ((E) => (E.TRIGGER = "dd-trigger", E.WRAPPER = "dd-wrapper", E.BUTTON = "dd-button", E.BUTTON_WRAPPER = "dd-button-wrapper", E.BUTTON_CONTENT = "dd-button-content", E.BUTTON_CONTENT_SUFFIX = "dd-button-content-suffix", E.BUTTON_CLEAR = "dd-button-clear", E.LABEL = "dd-label", E.LIST_CONTAINER = "dd-list-container", E.SEARCH = "dd-search", E.TITLE = "dd-title", E.ACTION_CANCEL = "dd-action-cancel", E.ACTION_APPLY = "dd-action-apply", E.ACTION_CLEAR_ALL = "dd-action-clear-all", E.HELPER_TEXT = "dd-helper-text", E.HELPER_TEXT_ERROR = "dd-helper-text-error", E.SELECT_ALL = "dd-select-all", E.NO_RESULT = "dd-no-result", E))(R || {}), O = /* @__PURE__ */ ((E) => (E.TRIGGER = "column-picker-trigger", E.WRAPPER = "column-picker-wrapper", E))(O || {}), t = /* @__PURE__ */ ((E) => (E.WRAPPER = "banner-wrapper", E.CONTENT = "banner-content", E))(t || {}), A = /* @__PURE__ */ ((E) => (E.WRAPPER = "link-wrapper", E.ICON = "link-icon", E))(A || {}), N = /* @__PURE__ */ ((E) => (E.WRAPPER = "alert-wrapper", E.TITLE = "alert-title", E.MESSAGE = "alert-message", E.ACTION_BUTTON = "alert-action-button", E.CLOSE_BUTTON = "alert-close-button", E))(N || {}), c = /* @__PURE__ */ ((E) => (E.WRAPPER = "dialog-wrapper", E.HEADER = "dialog-header", E.ACTION_CLOSE = "dialog-action-close", E.HEADER_SECONDARY = "dialog-header-secondary", E.CONTENT = "dialog-content", E.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", E.BACKDROP = "dialog-backdrop", E.SAVE_BUTTON = "dialog-save-button", E.CANCEL_BUTTON = "dialog-cancel-button", E))(c || {}), P = /* @__PURE__ */ ((E) => (E.WRAPPER = "input-wrapper", E.TOOLTIP = "input-tooltip", E.TOOLTIP_WITHOUT_ICON = "input-tooltip-without-icon", E.MANDATORY = "input-mandatory", E.LABEL_CONTAINER = "input-label-container", E.LABEL_TEXT = "input-label-text", E.FIELD = "input-field", E.EXTRA_TEXT = "input-extra-text", E.TOGGLE_PASSWORD = "input-toggle-password-icon", E))(P || {}), n = /* @__PURE__ */ ((E) => (E.WRAPPER = "cb-wrapper", E.LABEL = "cb-label", E.FIELD = "cb-field", E.CHECKED = "cb-checked", E))(n || {}), L = /* @__PURE__ */ ((E) => (E.FIELD = "radio-field", E.LABEL = "radio-label", E.ERROR_TEXT = "radio-error-text", E.GROUP = "radio-group", E.LABEL_DESCRIPTION = "label-description", E))(L || {}), _ = /* @__PURE__ */ ((E) => (E.WRAPPER = "swicth-wrapper", E.BUTTON = "swicth-button", E.TEXT = "swicth-text", E))(_ || {}), l = /* @__PURE__ */ ((E) => (E.WRAPPER = "ta-wrapper", E.LABEL = "ta-label", E.FIELD = "ta-field", E.TEXT = "ta-text", E))(l || {}), r = /* @__PURE__ */ ((E) => (E.CONTAINER = "search-container", E.FIELD = "search-field", E.CLOSE = "search-close", E.CLEAR = "search-clear", E))(r || {}), C = /* @__PURE__ */ ((E) => (E.CONTAINER = "tbl-container", E.TABLE = "tbl-table", E.HEADER = "tbl-header", E.TITLE = "tbl-title", E.HEADER_RIGHT = "tbl-header-right", E.ACTIONS = "tbl-actions", E.SECTIONS = "tbl-sections", E.BODY_WRAPPER = "tbl-body-wrapper", E.EMPTY_STATE = "tbl-empty-state", E.PRE_SEARCH_HEADER = "tbl-pre-search-header", E))(C || {}), b = /* @__PURE__ */ ((E) => (E.CONTAINER = "rc-container", E.COUNT = "rc-count", E.TOTAL = "rc-total", E))(b || {}), p = /* @__PURE__ */ ((E) => (E.WRAPPER = "toggle-wrapper", E.BODY = "toggle-body", E.FIELD = "toggle-field", E.TEXT = "toggle-text", E.HELPER_TEXT = "toggle-helper-text", E.ERROR_TEXT = "toggle-error-text", E))(p || {}), v = /* @__PURE__ */ ((E) => (E.TEXT = "tt-text", E.TRIGGER = "tt-trigger", E.HEADER = "tt-header", E))(v || {}), u = /* @__PURE__ */ ((E) => (E.WRAPPER = "at-wrapper", E.TITLE_TEXT = "at-title-text", E.TITLE_TOOLTIP_TEXT = "at-tooltip-text", E.DESCRIPTION_TOOLTIP_TEXT = "at-description-tooltip-text", E.DESCRIPTION_TEXT = "at-description-text", E.TRIGGER_BUTTON = "at-trigger-button", E))(u || {}), S = /* @__PURE__ */ ((E) => (E.WRAPPER = "ai-wrapper", E.SELECTED_OPTION = "ai-selected-option", E.SEARCH_FIELD = "ai-search-field", E))(S || {}), U = /* @__PURE__ */ ((E) => (E.WRAPPER = "chip-wrapper", E.CLEAR = "chip-clear", E))(U || {}), B = /* @__PURE__ */ ((E) => (E.WRAPPER = "dp-wrapper", E.INPUT = "dp-input", E))(B || {}), W = /* @__PURE__ */ ((E) => (E.WRAPPER = "cm-wrapper", E.DAYS_HEADER = "cm-days-header", E.PREVIOUS = "cm-previous", E.NEXT = "cm-next", E.DAYS_WRAPPER = "cm-days-wrapper", E.DAY = "cm-day", E.MONTH_HEADER_TEXT = "cm-month-header-text", E.MONTH_HEADER = "cm-month-header", E))(W || {}), h = /* @__PURE__ */ ((E) => (E.WRAPPER = "dr-wrapper", E.FIELD = "dr-field", E.TRIGGER = "dr-trigger", E.CONTAINER = "dr-container", E.MENU = "dr-menu", E.MESSAGE = "dr-message", E.ACTION_APPLY = "dr-action-apply", E.ACTION_CANCEL = "dr-action-cancel", E))(h || {}), m = /* @__PURE__ */ ((E) => (E.WRAPPER = "tabs-wrapper", E.TAB = "tabs-tab", E))(m || {}), X = /* @__PURE__ */ ((E) => (E.TEXT = "t-text", E))(X || {}), T = /* @__PURE__ */ ((E) => (E.HEADER = "h-header", E))(T || {}), G = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-label-container", E.TEXT = "field-label-text", E.MANDATORY = "field-label-mandatory", E.TOOLTIP = "field-label-help-tooltip", E))(G || {}), H = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-help-text-container", E.TEXT = "field-help-text-text", E.ICON = "field-help-text-icon", E))(H || {}), Y = /* @__PURE__ */ ((E) => (E.CONTAINER = "sb-container", E.TITLE = "sb-title", E.MESSAGE = "sb-message", E.CLOSE = "sb-close", E.ICON = "sb-icon", E.ACTION_BUTTON = "sb-action-button", E))(Y || {}), y = /* @__PURE__ */ ((E) => (E.TITLE = "foldable-section-title", E.CONTENT = "foldable-section-content", E))(y || {}), x = /* @__PURE__ */ ((E) => (E.TITLE = "form-card-title", E.CONTENT = "form-card-content", E.ACTIONS = "form-card-actions", E.SAVE_BUTTON = "form-card-save-btn", E.CANCEL_BUTTON = "form-card-cancel-btn", E))(x || {}), g = /* @__PURE__ */ ((E) => (E.TITLE = "ah-title", E.APP_KEY = "ah-app-key", E.APP_PLATFORM = "ah-app-platform", E.AB_ICON = "ah-ab-icon", E))(g || {}), w = /* @__PURE__ */ ((E) => (E.TEXT = "ic-text", E.COPY_BTN = "ic-copy-btn", E))(w || {}), V = /* @__PURE__ */ ((E) => (E.WRAPPER = "multibar-wrapper", E.CLOSE_BTN = "multibar-close-button", E.MENU = "multibar-menu", E.ACTION = "multibar-action", E))(V || {}), K = /* @__PURE__ */ ((E) => (E.CONTAINER = "sortable-list-container", E.DRAGGABLE_LIST = "sortable-list-draggable-list", E.LOCKED_LIST = "sortable-list-locked-list", E))(K || {}), D = /* @__PURE__ */ ((E) => (E.BUTTON_A = "ab-group-button-a", E.BUTTON_B = "ab-group-button-b", E.POPOVER_TRIGGER = "ab-group-popover-trigger", E.POPOVER_AB = "ab-group-popover", E))(D || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
B as
|
|
13
|
-
|
|
3
|
+
N as AlertTestIdModifiers,
|
|
4
|
+
g as AppHeaderTestIdModifiers,
|
|
5
|
+
u as AppTriggerTestIdModifiers,
|
|
6
|
+
S as AutocompleteInputTestIdModifiers,
|
|
7
|
+
t as BannerTestIdModifiers,
|
|
8
|
+
W as CalendarMonthTestIdModifiers,
|
|
9
|
+
n as CheckboxTestIdModifiers,
|
|
10
|
+
U as ChipTestIdModifiers,
|
|
11
|
+
O as ColumnPickerTestIdModifiers,
|
|
12
|
+
B as DatePickerTestIdModifiers,
|
|
13
|
+
h as DateRangeTestIdModifiers,
|
|
14
|
+
c as DialogTestIdModifiers,
|
|
14
15
|
R as DropdownTestIdModifiers,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
H as FieldHelpTextTestIdModifiers,
|
|
17
|
+
G as FieldLabelTestIdModifiers,
|
|
18
|
+
y as FoldableSectionTestIdModifiers,
|
|
19
|
+
x as FormCardTestIdModifiers,
|
|
20
|
+
T as HeaderTestIdModifiers,
|
|
20
21
|
a as IncludeExcludeTestIdModifiers,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
w as InlineCopyTestIdModifiers,
|
|
23
|
+
P as InputTestIdModifiers,
|
|
24
|
+
A as LinkTestIdModifiers,
|
|
25
|
+
V as MultiBarTestIdModifiers,
|
|
26
|
+
L as RadioTestIdModifiers,
|
|
27
|
+
b as RowsCounterTestIdModifiers,
|
|
28
|
+
r as SearchTestIdModifiers,
|
|
29
|
+
Y as SnackbarTestIdModifiers,
|
|
30
|
+
K as SortableListTestIdModifiers,
|
|
31
|
+
_ as SwitchTestIdModifiers,
|
|
32
|
+
C as TableTestIdModifiers,
|
|
33
|
+
m as TabsTestIdModifiers,
|
|
34
|
+
l as TextAreaTestIdModifiers,
|
|
35
|
+
X as TextTestIdModifiers,
|
|
36
|
+
D as ToggleButtonGroupABTestIdModifiers,
|
|
37
|
+
p as ToggleTestIdModifiers,
|
|
38
|
+
v as TooltipTestIdModifiers
|
|
37
39
|
};
|
package/utils/date.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getUTCDate: (date: Date | string | number) => Date;
|
package/utils/date.js
ADDED
package/utils/formatNumbers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const DEFAULT_FALLBACK = "N/A";
|
|
2
|
-
export declare const nFormatter: (num: number | string, fallback?: string | null) => string;
|
|
2
|
+
export declare const nFormatter: (num: number | string, formatLowDigits?: boolean, fallback?: string | null, withSuffixSpace?: boolean) => string;
|
|
3
3
|
export declare const diffInPersentage: (valueA: number | string, valueB: number | string, fallback?: string | null) => string | number;
|
|
4
4
|
export declare const formatNumberWithCommas: (num: number | string, fallback?: string | null) => string;
|
package/utils/formatNumbers.js
CHANGED
|
@@ -1,11 +1,41 @@
|
|
|
1
|
-
const
|
|
1
|
+
const L = "N/A", O = "∞", T = "B", i = "M", S = "K";
|
|
2
|
+
const _ = " ", N = (s, e, r) => s.toLocaleString("en", {
|
|
2
3
|
minimumFractionDigits: e,
|
|
3
|
-
maximumFractionDigits:
|
|
4
|
-
}),
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
4
|
+
maximumFractionDigits: r
|
|
5
|
+
}), I = (s, e, r, n = !0) => {
|
|
6
|
+
const t = s / e, o = ((H) => H >= 100 ? 0 : H >= 10 ? 1 : 2)(t), c = t.toFixed(o);
|
|
7
|
+
return n ? `${c}${_}${r}` : `${c}${r}`;
|
|
8
|
+
}, m = (s, e = !1, r = L, n = !0) => {
|
|
9
|
+
const t = Number(s), u = t % 1 !== 0;
|
|
10
|
+
if (isNaN(t) && r)
|
|
11
|
+
return r;
|
|
12
|
+
const o = Math.abs(t);
|
|
13
|
+
return o >= 1e12 ? O : o >= 1e9 ? I(
|
|
14
|
+
t,
|
|
15
|
+
1e9,
|
|
16
|
+
T,
|
|
17
|
+
n
|
|
18
|
+
) : o >= 1e6 ? I(
|
|
19
|
+
t,
|
|
20
|
+
1e6,
|
|
21
|
+
i,
|
|
22
|
+
n
|
|
23
|
+
) : o >= 1e3 ? I(
|
|
24
|
+
t,
|
|
25
|
+
1e3,
|
|
26
|
+
S,
|
|
27
|
+
n
|
|
28
|
+
) : u ? o >= 100 ? N(t, 0, 0) : o >= 10 ? N(t, 0, e ? 1 : 0) : N(t, e ? 2 : 0, e ? 2 : 0) : N(t, 0, 0);
|
|
29
|
+
}, D = (s, e, r = L) => {
|
|
30
|
+
const n = Number(s), t = Number(e);
|
|
31
|
+
return r && (isNaN(n) || isNaN(t)) ? r : n >= t ? (t - n) / n * 100 : (n - t) / n * -100;
|
|
32
|
+
}, a = (s, e = L) => {
|
|
33
|
+
const r = Number(s);
|
|
34
|
+
return isNaN(r) && e ? e : N(r, 0, 2);
|
|
7
35
|
};
|
|
8
36
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
37
|
+
L as DEFAULT_FALLBACK,
|
|
38
|
+
D as diffInPersentage,
|
|
39
|
+
a as formatNumberWithCommas,
|
|
40
|
+
m as nFormatter
|
|
11
41
|
};
|
package/utils/index.js
ADDED
package/utils/text.d.ts
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import { Font } from '@/components/chart/types';
|
|
1
2
|
export declare const isElementTruncated: (el: HTMLElement) => boolean;
|
|
3
|
+
export declare function measureTextWidth(text: string, font: Font): number;
|
|
4
|
+
export declare const truncateTextToFit: (text: string, font: Font, availableSpace: number) => string;
|