@ck-ui/component-library 0.2.0 → 1.0.0
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/dist/DropdownFooter-CYkg2g5d.js +89 -0
- package/dist/Grow-D08Iq1uH.js +794 -0
- package/dist/IconSlot-CFKmSU2_.js +33 -0
- package/dist/OptionList-DN1xZbnV.js +951 -0
- package/dist/Select-Cw96VEHD.js +6411 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/DateRangePicker-BKND6jiD.css +1 -0
- package/dist/assets/DropdownFooter-DjdPf69A.css +1 -0
- package/dist/assets/IconSlot-CLpdZgmb.css +1 -0
- package/dist/assets/ReactToastify-tlSLHgLC.css +1 -0
- package/dist/assets/{ToastContent-DpF5zCks.css → ToastContent-PGkBxPUW.css} +1 -1
- package/dist/assets/index-B81zpOpq.css +1 -0
- package/dist/assets/index-BLz-9Nuk.css +1 -0
- package/dist/assets/index-BkNXS5fR.css +1 -0
- package/dist/assets/index-BmQOtMhS.css +1 -0
- package/dist/assets/index-BoQKDmZt.css +1 -0
- package/dist/assets/index-Cdmws__2.css +1 -0
- package/dist/assets/index-CiQd_iRw.css +1 -0
- package/dist/assets/index-CtR-jzNi.css +1 -0
- package/dist/assets/index-DNhNBxL9.css +1 -0
- package/dist/assets/index-DvlnFLG-.css +1 -0
- package/dist/assets/index-PKpDB4Cl.css +1 -0
- package/dist/assets/index-YHUWVH17.css +1 -0
- package/dist/assets/index-_Kh8p9R0.css +1 -0
- package/dist/assets/index-i-aBFBOq.css +1 -0
- package/dist/assets/index-nXJu3Pq0.css +1 -0
- package/dist/assets/index-rrYSS2rl.css +1 -0
- package/dist/assets/{main-3OqLSdPm.css → main-Dv8QUU_o.css} +1 -1
- package/dist/assets/styles-BTZL03H2.css +1 -0
- package/dist/assets/styles-Be-tqCP9.css +1 -0
- package/dist/assets/styles-Bqfs9eXV.css +1 -0
- package/dist/assets/styles-CYxKrBqL.css +1 -0
- package/dist/assets/styles-CZCmGNUn.css +1 -0
- package/dist/assets/{styles-C5uYY4fL.css → styles-Chhklrps.css} +1 -1
- package/dist/assets/styles-D8sahtFb.css +1 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.js +53 -47
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/_types/button.types.d.ts +2 -0
- package/dist/components/CKButton/_types/button.types.d.ts.map +1 -1
- package/dist/components/CKButton/index.d.ts.map +1 -1
- package/dist/components/CKButton/index.js +32 -30
- package/dist/components/CKCheckbox/_types/type.d.ts +4 -0
- package/dist/components/CKCheckbox/_types/type.d.ts.map +1 -1
- package/dist/components/CKCheckbox/index.d.ts +1 -1
- package/dist/components/CKCheckbox/index.d.ts.map +1 -1
- package/dist/components/CKCheckbox/index.js +40 -24
- package/dist/components/CKTag/_types/type.d.ts +1 -1
- package/dist/components/CKTag/_types/type.d.ts.map +1 -1
- package/dist/components/CKTag/index.d.ts +1 -1
- package/dist/components/CKTag/index.d.ts.map +1 -1
- package/dist/components/CKTag/index.js +33 -24
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +38 -0
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +54 -0
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts +14 -0
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +19 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +90 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.js +1 -0
- package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts +22 -0
- package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_utils/costComparator.utils.js +50 -0
- package/dist/components/CostComparatorTable/index.d.ts +23 -0
- package/dist/components/CostComparatorTable/index.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/index.js +185 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +6061 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +51 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.js +1 -0
- package/dist/components/DateRangePicker/helper/util.d.ts +26 -0
- package/dist/components/DateRangePicker/helper/util.d.ts.map +1 -0
- package/dist/components/DateRangePicker/helper/util.js +54 -0
- package/dist/components/DeviationTag/index.d.ts.map +1 -1
- package/dist/components/DeviationTag/index.js +42 -29
- package/dist/components/EmptyState/index.js +7 -7
- package/dist/components/FusionChart/_config/builders.d.ts +10 -0
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -0
- package/dist/components/FusionChart/_config/builders.js +573 -0
- package/dist/components/FusionChart/_config/events.d.ts +7 -0
- package/dist/components/FusionChart/_config/events.d.ts.map +1 -0
- package/dist/components/FusionChart/_config/events.js +40 -0
- package/dist/components/FusionChart/_config/helpers.d.ts +288 -0
- package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -0
- package/dist/components/FusionChart/_config/helpers.js +452 -0
- package/dist/components/FusionChart/_constant/chartTestData.d.ts +33 -0
- package/dist/components/FusionChart/_constant/chartTestData.d.ts.map +1 -0
- package/dist/components/FusionChart/_constant/chartTestData.js +460 -0
- package/dist/components/FusionChart/_constant/constants.d.ts +16 -0
- package/dist/components/FusionChart/_constant/constants.d.ts.map +1 -0
- package/dist/components/FusionChart/_constant/constants.js +18 -0
- package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts +17 -0
- package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -0
- package/dist/components/FusionChart/_helpers/doughnutHelper.js +70 -0
- package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts +8 -0
- package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts.map +1 -0
- package/dist/components/FusionChart/_helpers/multiAxisHelper.js +21 -0
- package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts +8 -0
- package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts.map +1 -0
- package/dist/components/FusionChart/_helpers/multiLineHelper.js +23 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +128 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -0
- package/dist/components/FusionChart/_types/fusionChart.types.js +1 -0
- package/dist/components/FusionChart/_utils/chartHelpers.d.ts +45 -0
- package/dist/components/FusionChart/_utils/chartHelpers.d.ts.map +1 -0
- package/dist/components/FusionChart/_utils/chartHelpers.js +25 -0
- package/dist/components/FusionChart/index.d.ts +7 -0
- package/dist/components/FusionChart/index.d.ts.map +1 -0
- package/dist/components/FusionChart/index.js +1059 -0
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +20 -11
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +28 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts +2 -9
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +5 -14
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +21 -14
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +46 -26
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +20 -12
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +33 -30
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +41 -32
- package/dist/components/GroupedMultiSelect/_types/type.d.ts +23 -16
- package/dist/components/GroupedMultiSelect/_types/type.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts +7 -0
- package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.js +8 -0
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.js +2 -2
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.js +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/index.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/index.js +122 -112
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +28 -19
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +22 -12
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +35 -24
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +42 -24
- package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/index.js +61 -51
- package/dist/components/Loader/_types/loader.types.d.ts +10 -0
- package/dist/components/Loader/_types/loader.types.d.ts.map +1 -0
- package/dist/components/Loader/_types/loader.types.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/Loader/index.js +37 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts +27 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts.map +1 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.js +1 -0
- package/dist/components/MAVDropdown/index.d.ts +6 -0
- package/dist/components/MAVDropdown/index.d.ts.map +1 -0
- package/dist/components/MAVDropdown/index.js +162 -0
- package/dist/components/MenuOptions/_types/menuOptions.types.d.ts +1 -7
- package/dist/components/MenuOptions/_types/menuOptions.types.d.ts.map +1 -1
- package/dist/components/MenuOptions/_utils/computeMenuPosition.js +1 -1
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +1 -1
- package/dist/components/MenuOptions/index.d.ts +1 -1
- package/dist/components/MenuOptions/index.d.ts.map +1 -1
- package/dist/components/MenuOptions/index.js +41 -35
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +43 -43
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +22 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.js +221 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +72 -0
- package/dist/components/MultiSelect/_helpers/OptionRow.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/OptionRow.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/OptionRow.js +40 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +7 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +30 -0
- package/dist/components/MultiSelect/_helpers/SearchResult.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/SearchResult.js +33 -0
- package/dist/components/MultiSelect/_helpers/TagContent.d.ts +5 -0
- package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/TagContent.js +48 -0
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +82 -0
- package/dist/components/MultiSelect/_types/type.d.ts +106 -0
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -0
- package/dist/components/MultiSelect/_types/type.js +1 -0
- package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts +9 -0
- package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/computeApplyDisabled.js +9 -0
- package/dist/components/MultiSelect/_utils/filterOptions.d.ts +6 -0
- package/dist/components/MultiSelect/_utils/filterOptions.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/filterOptions.js +7 -0
- package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts +6 -0
- package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/getInitialSelected.js +6 -0
- package/dist/components/MultiSelect/index.d.ts +4 -0
- package/dist/components/MultiSelect/index.d.ts.map +1 -0
- package/dist/components/MultiSelect/index.js +234 -0
- package/dist/components/Pagination/_types/pagination.types.d.ts +21 -0
- package/dist/components/Pagination/_types/pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/_types/pagination.types.js +1 -0
- package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts +5 -0
- package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts.map +1 -0
- package/dist/components/Pagination/_utils/computePageSizeOptions.js +10 -0
- package/dist/components/Pagination/_utils/generatePageNumbers.d.ts +4 -0
- package/dist/components/Pagination/_utils/generatePageNumbers.d.ts.map +1 -0
- package/dist/components/Pagination/_utils/generatePageNumbers.js +18 -0
- package/dist/components/Pagination/index.d.ts +6 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.js +164 -0
- package/dist/components/Popover/_types/popover.types.d.ts +13 -0
- package/dist/components/Popover/_types/popover.types.d.ts.map +1 -0
- package/dist/components/Popover/_types/popover.types.js +1 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Popover/index.js +91 -0
- package/dist/components/PopupAndDialogBox/components/DialogContent.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +1 -1
- package/dist/components/PopupAndDialogBox/index.js +1 -1
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts +28 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.js +13 -0
- package/dist/components/ProfileDropdown/constants.d.ts +3 -0
- package/dist/components/ProfileDropdown/constants.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/constants.js +8 -0
- package/dist/components/ProfileDropdown/index.d.ts +6 -0
- package/dist/components/ProfileDropdown/index.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/index.js +154 -0
- package/dist/components/ProgressBar/_types/progressBar.types.d.ts +34 -0
- package/dist/components/ProgressBar/_types/progressBar.types.d.ts.map +1 -0
- package/dist/components/ProgressBar/_types/progressBar.types.js +1 -0
- package/dist/components/ProgressBar/index.d.ts +3 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.js +48 -0
- package/dist/components/RadioButton/index.js +24 -24
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +15 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.js +1 -0
- package/dist/components/RadioGroup/index.d.ts +3 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/RadioGroup/index.js +44 -0
- package/dist/components/Search/index.d.ts.map +1 -1
- package/dist/components/Search/index.js +72 -62
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +2 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +15 -4
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +2 -2
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.js +81 -70
- package/dist/components/Switch/index.js +3 -3
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +5 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +84 -0
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts +4 -0
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ColumnManager/index.js +2456 -0
- package/dist/components/Table/_helpers/ExpandableRow/index.d.ts +16 -0
- package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ExpandableRow/index.js +54 -0
- package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts +14 -0
- package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts.map +1 -0
- package/dist/components/Table/_helpers/FilterColumnToolbar.js +121 -0
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +24 -0
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/GroupedHeader/index.js +193 -0
- package/dist/components/Table/_helpers/SelectionCell/index.d.ts +19 -0
- package/dist/components/Table/_helpers/SelectionCell/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/SelectionCell/index.js +50 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts +3 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +11 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts +3 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.js +75 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts +3 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +1544 -0
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts +4 -0
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/index.js +115 -0
- package/dist/components/Table/_helpers/TableRows.d.ts +3 -0
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableRows.js +408 -0
- package/dist/components/Table/_hooks/useExpansion.d.ts +20 -0
- package/dist/components/Table/_hooks/useExpansion.d.ts.map +1 -0
- package/dist/components/Table/_hooks/useExpansion.js +46 -0
- package/dist/components/Table/_hooks/useFilterColumnState.d.ts +17 -0
- package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -0
- package/dist/components/Table/_hooks/useFilterColumnState.js +94 -0
- package/dist/components/Table/_hooks/useSelection.d.ts +12 -0
- package/dist/components/Table/_hooks/useSelection.d.ts.map +1 -0
- package/dist/components/Table/_hooks/useSelection.js +45 -0
- package/dist/components/Table/_types/table.types.d.ts +286 -0
- package/dist/components/Table/_types/table.types.d.ts.map +1 -0
- package/dist/components/Table/_types/table.types.js +1 -0
- package/dist/components/Table/_utils/formatCellValue.d.ts +13 -0
- package/dist/components/Table/_utils/formatCellValue.d.ts.map +1 -0
- package/dist/components/Table/_utils/formatCellValue.js +17 -0
- package/dist/components/Table/_utils/table.utils.d.ts +10 -0
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -0
- package/dist/components/Table/_utils/table.utils.js +87 -0
- package/dist/components/Table/constants.d.ts +6 -0
- package/dist/components/Table/constants.d.ts.map +1 -0
- package/dist/components/Table/constants.js +13 -0
- package/dist/components/Table/index.d.ts +4 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +543 -0
- package/dist/components/TextField/index.js +685 -6956
- package/dist/components/Toast/_helper/ToastContent.js +25 -25
- package/dist/components/Toast/_helper/ToastProvider.js +9 -9
- package/dist/components/Toast/_hooks/useToast.js +1 -1
- package/dist/components/Tooltip/index.js +699 -781
- package/dist/components/Typography/_types/typography.types.d.ts +28 -0
- package/dist/components/Typography/_types/typography.types.d.ts.map +1 -0
- package/dist/components/Typography/_types/typography.types.js +1 -0
- package/dist/components/Typography/index.d.ts +3 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Typography/index.js +45 -0
- package/dist/contains-kLLEGdNH.js +41 -0
- package/dist/index-C8cPPHJD.js +1196 -0
- package/dist/index-f7TB87Mf.js +1846 -0
- package/dist/isFocusVisible-BzX3wEi7.js +12 -0
- package/dist/main.d.ts +17 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +128 -96
- package/dist/reset-icon-YxMt3Ozp.js +5 -0
- package/dist/search-B_cup-NN.js +5 -0
- package/dist/styles.module-BXby6f8d.js +16 -0
- package/dist/styles.module-BZaUJMlf.js +14 -0
- package/dist/styles.module-Dojg5FTS.js +41 -0
- package/dist/styles.module-ZyeVE7KZ.js +39 -0
- package/dist/table-filter-C0zetUfo.js +6 -0
- package/dist/useSlot-ylt7_lTY.js +4698 -0
- package/package.json +17 -3
- package/dist/DropdownFooter-De6BYlLK.js +0 -77
- package/dist/Grow-Bsrwqfek.js +0 -5468
- package/dist/IconSlot-CbpGCbaA.js +0 -32
- package/dist/assets/DropdownFooter-C7Cml53c.css +0 -1
- package/dist/assets/IconSlot-Ct_SZh2X.css +0 -1
- package/dist/assets/ReactToastify-GNLSjkBZ.css +0 -1
- package/dist/assets/index-0R9p-l95.css +0 -1
- package/dist/assets/index-BbJZjGLb.css +0 -1
- package/dist/assets/index-Bu-eyi44.css +0 -1
- package/dist/assets/index-DAtOlGx5.css +0 -1
- package/dist/assets/index-Dudb2XKF.css +0 -1
- package/dist/assets/index-fvceox3b.css +0 -1
- package/dist/assets/index-w7AdSPwF.css +0 -1
- package/dist/assets/styles-CGTFG68B.css +0 -1
- package/dist/index-BR6M9zUI.js +0 -382
- package/dist/styles.module-BpAF4ufQ.js +0 -38
- package/dist/styles.module-yNDMDNO-.js +0 -14
|
@@ -14,6 +14,8 @@ export interface BaseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
14
14
|
isSubmit?: boolean;
|
|
15
15
|
fullWidth?: boolean;
|
|
16
16
|
className?: string;
|
|
17
|
+
/** When true, removes min-width and renders a square icon-only button. */
|
|
18
|
+
iconOnly?: boolean;
|
|
17
19
|
}
|
|
18
20
|
type ButtonAsButton = BaseProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
19
21
|
href?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/CKButton/_types/button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAE5E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CACrC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,CACX;IACC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,SAAS,GAC7B,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEJ,KAAK,YAAY,GAAG,SAAS,GAC3B,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEJ,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/CKButton/_types/button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAE5E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CACrC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,CACX;IACC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,SAAS,GAC7B,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEJ,KAAK,YAAY,GAAG,SAAS,GAC3B,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEJ,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/CKButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMzD,eAAO,MAAM,QAAQ,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/CKButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMzD,eAAO,MAAM,QAAQ,+HAiGnB,CAAC"}
|
|
@@ -1,72 +1,74 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { s as o } from "../../IconSlot-CFKmSU2_.js";
|
|
4
4
|
import { StandardLayout as g } from "./_helper/StandardLayout.js";
|
|
5
5
|
import { ComboLayout as E } from "./_helper/ComboLayout.js";
|
|
6
6
|
import { mergeClasses as k } from "../../utils/mergeClasses.js";
|
|
7
|
-
import { VARIANT as C, SIZE as
|
|
8
|
-
const w =
|
|
7
|
+
import { VARIANT as C, SIZE as B, ERROR as F, IS_SUBMIT as N, FULL_WIDTH as O } from "./constants.js";
|
|
8
|
+
const w = y(function(A, i) {
|
|
9
9
|
const {
|
|
10
|
-
variant:
|
|
11
|
-
size: a =
|
|
12
|
-
label:
|
|
10
|
+
variant: n = C.PRIMARY,
|
|
11
|
+
size: a = B.LARGE,
|
|
12
|
+
label: s,
|
|
13
13
|
icons: l,
|
|
14
|
-
error: h =
|
|
15
|
-
isSubmit: v =
|
|
16
|
-
fullWidth: I =
|
|
14
|
+
error: h = F.FALSE,
|
|
15
|
+
isSubmit: v = N.FALSE,
|
|
16
|
+
fullWidth: I = O.FALSE,
|
|
17
17
|
disabled: t,
|
|
18
18
|
className: L,
|
|
19
19
|
href: c,
|
|
20
|
+
iconOnly: R,
|
|
20
21
|
...m
|
|
21
|
-
} = A, d = l?.left, b = l?.right,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
h &&
|
|
22
|
+
} = A, d = l?.left, b = l?.right, S = k(
|
|
23
|
+
o["ckds-button"],
|
|
24
|
+
o[n],
|
|
25
|
+
o[a],
|
|
26
|
+
h && o.error,
|
|
26
27
|
I && "ckds-w-full",
|
|
28
|
+
R && o["icon-only"],
|
|
27
29
|
L
|
|
28
|
-
), f =
|
|
30
|
+
), f = n === C.COMBO ? /* @__PURE__ */ e(
|
|
29
31
|
E,
|
|
30
32
|
{
|
|
31
33
|
leftIcon: d,
|
|
32
34
|
rightIcon: b,
|
|
33
|
-
label:
|
|
35
|
+
label: s,
|
|
34
36
|
size: a,
|
|
35
|
-
dividerClass:
|
|
36
|
-
labelAreaClass:
|
|
37
|
-
labelAreaWithDividerClass:
|
|
38
|
-
iconAreaClass:
|
|
37
|
+
dividerClass: o["combo-divider"],
|
|
38
|
+
labelAreaClass: o["combo-label-area"],
|
|
39
|
+
labelAreaWithDividerClass: o["combo-label-area-with-divider"],
|
|
40
|
+
iconAreaClass: o["combo-icon-area"]
|
|
39
41
|
}
|
|
40
42
|
) : /* @__PURE__ */ e(
|
|
41
43
|
g,
|
|
42
44
|
{
|
|
43
45
|
leftIcon: d,
|
|
44
46
|
rightIcon: b,
|
|
45
|
-
label:
|
|
47
|
+
label: s,
|
|
46
48
|
size: a
|
|
47
49
|
}
|
|
48
50
|
), u = {
|
|
49
|
-
className:
|
|
51
|
+
className: S
|
|
50
52
|
};
|
|
51
53
|
if (c) {
|
|
52
|
-
const
|
|
54
|
+
const r = m;
|
|
53
55
|
return /* @__PURE__ */ e(
|
|
54
56
|
"a",
|
|
55
57
|
{
|
|
56
58
|
...u,
|
|
57
|
-
ref:
|
|
59
|
+
ref: i,
|
|
58
60
|
href: t ? void 0 : c,
|
|
59
61
|
"aria-disabled": t || void 0,
|
|
60
|
-
target:
|
|
61
|
-
rel:
|
|
62
|
+
target: r.target,
|
|
63
|
+
rel: r.target === "_blank" ? r.rel ?? "noopener noreferrer" : r.rel,
|
|
62
64
|
onClick: (p) => {
|
|
63
65
|
if (t) {
|
|
64
66
|
p.preventDefault();
|
|
65
67
|
return;
|
|
66
68
|
}
|
|
67
|
-
|
|
69
|
+
r.onClick?.(p);
|
|
68
70
|
},
|
|
69
|
-
...
|
|
71
|
+
...r,
|
|
70
72
|
children: f
|
|
71
73
|
}
|
|
72
74
|
);
|
|
@@ -75,7 +77,7 @@ const w = S(function(A, s) {
|
|
|
75
77
|
"button",
|
|
76
78
|
{
|
|
77
79
|
...u,
|
|
78
|
-
ref:
|
|
80
|
+
ref: i,
|
|
79
81
|
type: v ? "submit" : "button",
|
|
80
82
|
disabled: t,
|
|
81
83
|
...m,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
type sizes = "sm" | "md" | "lg";
|
|
2
3
|
export interface DSCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
3
4
|
checked: boolean;
|
|
5
|
+
/** When true, shows a partial/indeterminate state (dash icon) */
|
|
6
|
+
indeterminate?: boolean;
|
|
4
7
|
wrapperClassName?: string;
|
|
8
|
+
classname?: string;
|
|
5
9
|
onChange?: (val: boolean) => void;
|
|
6
10
|
size?: sizes;
|
|
7
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../lib/components/CKCheckbox/_types/type.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,UAAU,CACpB;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../lib/components/CKCheckbox/_types/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,UAAU,CACpB;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,iEAAiE;IACjE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DSCheckboxProps } from './_types/type';
|
|
2
|
-
export declare function CKCheckbox({ checked, onChange, wrapperClassName,
|
|
2
|
+
export declare function CKCheckbox({ checked, indeterminate, onChange, wrapperClassName, classname, disabled, size, ...restProps }: DSCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/CKCheckbox/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/CKCheckbox/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,aAAqB,EACrB,QAAQ,EACR,gBAAqB,EACrB,SAAc,EACd,QAAgB,EAChB,IAAS,EACT,GAAG,SAAS,EACb,EAAE,eAAe,2CAgDjB"}
|
|
@@ -1,44 +1,60 @@
|
|
|
1
1
|
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"ckds-checkbox-
|
|
7
|
-
"ckds-checkbox
|
|
8
|
-
"ckds-checkbox-
|
|
2
|
+
import { useRef as p, useLayoutEffect as m } from "react";
|
|
3
|
+
import { LG as _ } from "../../constants.js";
|
|
4
|
+
import { mergeClasses as x } from "../../utils/mergeClasses.js";
|
|
5
|
+
import '../../assets/index-rrYSS2rl.css';const c = {
|
|
6
|
+
"ckds-checkbox-wrapper": "_ckds-checkbox-wrapper_2erx7_1",
|
|
7
|
+
"ckds-checkbox": "_ckds-checkbox_2erx7_1",
|
|
8
|
+
"ckds-checkbox-sm": "_ckds-checkbox-sm_2erx7_63",
|
|
9
|
+
"ckds-checkbox-md": "_ckds-checkbox-md_2erx7_67",
|
|
10
|
+
"ckds-checkbox-tick": "_ckds-checkbox-tick_2erx7_72",
|
|
11
|
+
"ckds-checkbox-indeterminate": "_ckds-checkbox-indeterminate_2erx7_99"
|
|
9
12
|
};
|
|
10
|
-
function
|
|
13
|
+
function w({
|
|
11
14
|
checked: o,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
indeterminate: s = !1,
|
|
16
|
+
onChange: t,
|
|
17
|
+
wrapperClassName: d = "",
|
|
18
|
+
classname: h = "",
|
|
19
|
+
disabled: a = !1,
|
|
20
|
+
size: i = _,
|
|
21
|
+
...n
|
|
18
22
|
}) {
|
|
19
|
-
|
|
23
|
+
const k = p(null);
|
|
24
|
+
return m(() => {
|
|
25
|
+
k.current && (k.current.indeterminate = s, k.current.checked = !!o);
|
|
26
|
+
}, [s, o]), /* @__PURE__ */ b(
|
|
20
27
|
"label",
|
|
21
28
|
{
|
|
22
|
-
className:
|
|
29
|
+
className: x(
|
|
30
|
+
c["ckds-checkbox-wrapper"],
|
|
31
|
+
c[d]
|
|
32
|
+
),
|
|
23
33
|
children: [
|
|
24
34
|
/* @__PURE__ */ e(
|
|
25
35
|
"input",
|
|
26
36
|
{
|
|
37
|
+
ref: k,
|
|
27
38
|
type: "checkbox",
|
|
28
39
|
checked: o,
|
|
29
|
-
onChange: (
|
|
30
|
-
|
|
40
|
+
onChange: (r) => {
|
|
41
|
+
t?.(r.target.checked);
|
|
31
42
|
},
|
|
32
|
-
onClick: (
|
|
33
|
-
disabled:
|
|
34
|
-
...
|
|
43
|
+
onClick: (r) => r.stopPropagation(),
|
|
44
|
+
disabled: a,
|
|
45
|
+
...n
|
|
35
46
|
}
|
|
36
47
|
),
|
|
37
48
|
/* @__PURE__ */ e(
|
|
38
49
|
"span",
|
|
39
50
|
{
|
|
40
|
-
className:
|
|
41
|
-
|
|
51
|
+
className: x(
|
|
52
|
+
c["ckds-checkbox"],
|
|
53
|
+
c[`ckds-checkbox-${i}`],
|
|
54
|
+
s && c["ckds-checkbox-indeterminate"],
|
|
55
|
+
h
|
|
56
|
+
),
|
|
57
|
+
children: s ? /* @__PURE__ */ e("svg", { className: c["ckds-checkbox-tick"], viewBox: "0 0 16 16", children: /* @__PURE__ */ e("path", { d: "M4 8H12" }) }) : /* @__PURE__ */ e("svg", { className: c["ckds-checkbox-tick"], viewBox: "0 0 16 16", children: /* @__PURE__ */ e("path", { d: "M4 8.5L7 11.5L12 5.5" }) })
|
|
42
58
|
}
|
|
43
59
|
)
|
|
44
60
|
]
|
|
@@ -46,5 +62,5 @@ function i({
|
|
|
46
62
|
);
|
|
47
63
|
}
|
|
48
64
|
export {
|
|
49
|
-
|
|
65
|
+
w as CKCheckbox
|
|
50
66
|
};
|
|
@@ -5,7 +5,7 @@ type Shapes = "rounded" | "pill";
|
|
|
5
5
|
export interface CKTagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
6
6
|
variation: CKTagVariation;
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
|
|
8
|
+
classname?: string;
|
|
9
9
|
size?: sizes;
|
|
10
10
|
fill?: FillVariants;
|
|
11
11
|
shape?: Shapes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../lib/components/CKTag/_types/type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../lib/components/CKTag/_types/type.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACjD,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AACX,KAAK,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AACjD,KAAK,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAEjC,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvE,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAMzD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CKTagProps } from './_types/type';
|
|
2
|
-
export declare function CKTag({ variation, children,
|
|
2
|
+
export declare function CKTag({ variation, children, classname, size, fill, shape, ...restProps }: CKTagProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/CKTag/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/CKTag/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,UAAU,EAEhB,MAAM,eAAe,CAAC;AAGvB,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,SAAc,EACd,IAAa,EACb,IAAY,EACZ,KAAe,EACf,GAAG,SAAS,EACb,EAAE,UAAU,2CA6BZ"}
|
|
@@ -1,41 +1,50 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { ROUNDED as m, MEDIUM as o, SOLID as u, SMALL as g, LARGE as p } from "../../constants.js";
|
|
3
|
+
import { mergeClasses as k } from "../../utils/mergeClasses.js";
|
|
4
|
+
import { statusClassMap as C } from "./_types/type.js";
|
|
5
|
+
import '../../assets/index-Bo4Tx8px.css';const D = "_small_9itnf_13", L = "_soft_9itnf_13", M = "_outline_9itnf_17", w = "_solid_9itnf_21", E = "_medium_9itnf_25", S = "_large_9itnf_37", x = "_rounded_9itnf_63", y = "_pill_9itnf_67", A = "_neutral_9itnf_72", I = "_success_9itnf_89", N = "_danger_9itnf_106", O = "_info_9itnf_123", R = "_warning_9itnf_140", n = {
|
|
5
6
|
"ckds-tag": "_ckds-tag_9itnf_1",
|
|
6
|
-
small:
|
|
7
|
-
soft:
|
|
8
|
-
outline:
|
|
9
|
-
solid:
|
|
10
|
-
medium:
|
|
11
|
-
large:
|
|
12
|
-
rounded:
|
|
13
|
-
pill:
|
|
14
|
-
neutral:
|
|
15
|
-
success:
|
|
16
|
-
danger:
|
|
17
|
-
info:
|
|
18
|
-
warning:
|
|
7
|
+
small: D,
|
|
8
|
+
soft: L,
|
|
9
|
+
outline: M,
|
|
10
|
+
solid: w,
|
|
11
|
+
medium: E,
|
|
12
|
+
large: S,
|
|
13
|
+
rounded: x,
|
|
14
|
+
pill: y,
|
|
15
|
+
neutral: A,
|
|
16
|
+
success: I,
|
|
17
|
+
danger: N,
|
|
18
|
+
info: O,
|
|
19
|
+
warning: R
|
|
19
20
|
};
|
|
20
|
-
function
|
|
21
|
+
function K({
|
|
21
22
|
variation: s,
|
|
22
23
|
children: i,
|
|
23
|
-
|
|
24
|
+
classname: e = "",
|
|
24
25
|
size: _ = o,
|
|
25
26
|
fill: l = u,
|
|
26
|
-
shape:
|
|
27
|
-
...
|
|
27
|
+
shape: r = m,
|
|
28
|
+
...c
|
|
28
29
|
}) {
|
|
29
|
-
const a =
|
|
30
|
+
const a = C[s] || s || "neutral", f = (t) => t === g ? "ckcl-cap-med" : t === o || t === p ? "ckds-body-sm-med" : "";
|
|
30
31
|
return /* @__PURE__ */ d(
|
|
31
32
|
"div",
|
|
32
33
|
{
|
|
33
|
-
className:
|
|
34
|
-
|
|
34
|
+
className: k(
|
|
35
|
+
n["ckds-tag"],
|
|
36
|
+
n[a],
|
|
37
|
+
n[l],
|
|
38
|
+
n[_],
|
|
39
|
+
f(_),
|
|
40
|
+
n[r],
|
|
41
|
+
e
|
|
42
|
+
),
|
|
43
|
+
...c,
|
|
35
44
|
children: i
|
|
36
45
|
}
|
|
37
46
|
);
|
|
38
47
|
}
|
|
39
48
|
export {
|
|
40
|
-
|
|
49
|
+
K as CKTag
|
|
41
50
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CompareValues, FormatValue } from '../_types/costComparatorTable.types';
|
|
3
|
+
interface CostCellProps<TRow> {
|
|
4
|
+
/** The comparator column key this cell belongs to. */
|
|
5
|
+
columnKey: string;
|
|
6
|
+
/** Index of this column inside the full ordered list of comparator columns. */
|
|
7
|
+
columnIndex: number;
|
|
8
|
+
/** The full ordered list of comparator column keys (used for non-comparator mode adjacency). */
|
|
9
|
+
orderedKeys: string[];
|
|
10
|
+
/** Original row, used to fetch sibling values for diff coloring. */
|
|
11
|
+
row: TRow;
|
|
12
|
+
/** The accessor used to read the row's value map (e.g. "costDates"). */
|
|
13
|
+
valueMapKey: string;
|
|
14
|
+
/** Current cell value. */
|
|
15
|
+
value: number | undefined;
|
|
16
|
+
/** Comparator mode toggle. */
|
|
17
|
+
comparatorMode: boolean;
|
|
18
|
+
/** Currently selected (and chronologically sorted) header keys. */
|
|
19
|
+
selected: string[];
|
|
20
|
+
/** Consumer-supplied formatter. */
|
|
21
|
+
formatValue: FormatValue<TRow>;
|
|
22
|
+
/** Consumer-supplied diff-class resolver. */
|
|
23
|
+
compareValues: CompareValues;
|
|
24
|
+
/** Column text alignment, forwarded from the column definition. */
|
|
25
|
+
align?: "left" | "center" | "right";
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Body cell wrapper that handles:
|
|
29
|
+
* • Comparator mode dim/disable styling.
|
|
30
|
+
* • Diff coloring vs. the previous selected (or adjacent) column.
|
|
31
|
+
* • Delegating value rendering to the consumer's `formatValue`.
|
|
32
|
+
*
|
|
33
|
+
* The library never produces color classes itself — `compareValues` is what
|
|
34
|
+
* chooses them. We just apply the returned class to the cell wrapper.
|
|
35
|
+
*/
|
|
36
|
+
export declare function CostCell<TRow extends Record<string, unknown>>({ columnKey, columnIndex, orderedKeys, row, valueMapKey, value, comparatorMode, selected, formatValue, compareValues, align, }: CostCellProps<TRow>): ReactNode;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=CostCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CostCell.d.ts","sourceRoot":"","sources":["../../../../lib/components/CostComparatorTable/_helpers/CostCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEtF,UAAU,aAAa,CAAC,IAAI;IAC1B,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,WAAW,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,oEAAoE;IACpE,GAAG,EAAE,IAAI,CAAC;IACV,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,8BAA8B;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,mEAAmE;IACnE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,6CAA6C;IAC7C,aAAa,EAAE,aAAa,CAAC;IAC7B,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAC7D,SAAS,EACT,WAAW,EACX,WAAW,EACX,GAAG,EACH,WAAW,EACX,KAAK,EACL,cAAc,EACd,QAAQ,EACR,WAAW,EACX,aAAa,EACb,KAAK,GACN,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,SAAS,CAoCjC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { s as d } from "../../../styles.module-BXby6f8d.js";
|
|
4
|
+
import { mergeClasses as g } from "../../../utils/mergeClasses.js";
|
|
5
|
+
import { pickPrecision as V } from "../_utils/costComparator.utils.js";
|
|
6
|
+
function O({
|
|
7
|
+
columnKey: s,
|
|
8
|
+
columnIndex: e,
|
|
9
|
+
orderedKeys: n,
|
|
10
|
+
row: t,
|
|
11
|
+
valueMapKey: r,
|
|
12
|
+
value: b,
|
|
13
|
+
comparatorMode: x,
|
|
14
|
+
selected: o,
|
|
15
|
+
formatValue: C,
|
|
16
|
+
compareValues: p,
|
|
17
|
+
align: k
|
|
18
|
+
}) {
|
|
19
|
+
const i = Number(b ?? 0), m = V(i);
|
|
20
|
+
let l = "", a = !1;
|
|
21
|
+
if (x)
|
|
22
|
+
if (!o.includes(s))
|
|
23
|
+
a = !0;
|
|
24
|
+
else {
|
|
25
|
+
const c = o.indexOf(s);
|
|
26
|
+
if (c > 0) {
|
|
27
|
+
const f = o[c - 1], v = u(t, r, f);
|
|
28
|
+
l = p(i, v, m);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else if (e > 0) {
|
|
32
|
+
const c = n[e - 1], f = u(t, r, c);
|
|
33
|
+
l = p(i, f, m);
|
|
34
|
+
}
|
|
35
|
+
return /* @__PURE__ */ N(
|
|
36
|
+
"span",
|
|
37
|
+
{
|
|
38
|
+
className: g(
|
|
39
|
+
d["ckds-cost-cell"],
|
|
40
|
+
a ? d["ckds-disabled"] : "",
|
|
41
|
+
l
|
|
42
|
+
),
|
|
43
|
+
style: { textAlign: k },
|
|
44
|
+
children: C(i, t, s)
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function u(s, e, n) {
|
|
49
|
+
const r = s[e];
|
|
50
|
+
return Number(r?.[n] ?? 0);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
O as CostCell
|
|
54
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface HeaderCheckboxProps {
|
|
2
|
+
label: string;
|
|
3
|
+
checked: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
onToggle: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Header content used while comparator mode is on.
|
|
9
|
+
* Renders a checkbox alongside the label and dims the whole header
|
|
10
|
+
* when the column is unselected.
|
|
11
|
+
*/
|
|
12
|
+
export declare function HeaderCheckbox({ label, checked, disabled, onToggle }: HeaderCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=HeaderCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderCheckbox.d.ts","sourceRoot":"","sources":["../../../../lib/components/CostComparatorTable/_helpers/HeaderCheckbox.tsx"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAWzF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { CKCheckbox as h } from "../../CKCheckbox/index.js";
|
|
3
|
+
import { s as e } from "../../../styles.module-BXby6f8d.js";
|
|
4
|
+
function l({ label: c, checked: r, disabled: a, onToggle: o }) {
|
|
5
|
+
return /* @__PURE__ */ d("span", { className: `${e["ckds-header-checkbox"]} ${a ? e["ckds-disabled"] : ""}`, children: [
|
|
6
|
+
/* @__PURE__ */ s(
|
|
7
|
+
h,
|
|
8
|
+
{
|
|
9
|
+
checked: r,
|
|
10
|
+
onChange: o,
|
|
11
|
+
size: "md"
|
|
12
|
+
}
|
|
13
|
+
),
|
|
14
|
+
/* @__PURE__ */ s("span", { className: e["ckds-header-checkbox-label"], children: c })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
l as HeaderCheckbox
|
|
19
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* One date / period column the user can compare across.
|
|
4
|
+
* `key` is the lookup key used inside each row's value map (e.g. "01-Jan").
|
|
5
|
+
* `label` is what is shown in the header cell.
|
|
6
|
+
* `align` controls text alignment for the header and cells of this column.
|
|
7
|
+
*/
|
|
8
|
+
export interface ComparatorColumn {
|
|
9
|
+
key: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Text alignment for the column header and cells. Defaults to "left". */
|
|
12
|
+
align?: "left" | "center" | "right";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Granularity hint. Used by the default header sorter to parse keys
|
|
16
|
+
* like "01-Jan", "01-Jan-07-Jan", "Jan-2025".
|
|
17
|
+
* Pass any string the consumer wants — only the three built-ins are sorted
|
|
18
|
+
* automatically; everything else falls back to lexical/insertion order.
|
|
19
|
+
*/
|
|
20
|
+
export type Granularity = "Daily" | "Weekly" | "Monthly" | (string & {});
|
|
21
|
+
/**
|
|
22
|
+
* Renders the value inside a cell (body or footer total).
|
|
23
|
+
* Stays in the consumer so number formatting / currency / locale stay there.
|
|
24
|
+
*
|
|
25
|
+
* @param value The raw numeric value from the row (or footer total).
|
|
26
|
+
* @param row The original row passed in `data` (undefined for footer cells).
|
|
27
|
+
* @param columnKey The comparator column key (or "__total" / "__group" for fixed cols).
|
|
28
|
+
*/
|
|
29
|
+
export type FormatValue<TRow> = (value: number, row: TRow | undefined, columnKey: string) => ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a CSS class name describing how `current` differs from `previous`.
|
|
32
|
+
* The library applies this class to the cell wrapper — it never decides colors itself.
|
|
33
|
+
*
|
|
34
|
+
* @param current Current cell value.
|
|
35
|
+
* @param previous Value of the previous selected (or adjacent) column.
|
|
36
|
+
* @param precision Suggested decimal precision (0 for big values, 2 for small).
|
|
37
|
+
*/
|
|
38
|
+
export type CompareValues = (current: number, previous: number, precision: number) => string;
|
|
39
|
+
export interface CostComparatorTableProps<TRow extends Record<string, unknown>> {
|
|
40
|
+
/** Source rows. */
|
|
41
|
+
data: TRow[];
|
|
42
|
+
/** Ordered list of date/period columns to render between group and total. */
|
|
43
|
+
comparatorColumns: ComparatorColumn[];
|
|
44
|
+
/** Field on each row that holds the row's display label (e.g. "groupValue"). */
|
|
45
|
+
groupKey: keyof TRow;
|
|
46
|
+
/** Field on each row that holds the row total (e.g. "totalCost"). */
|
|
47
|
+
totalKey: keyof TRow;
|
|
48
|
+
/** Field on each row that holds the per-column value map (e.g. "costDates"). */
|
|
49
|
+
valueKey: keyof TRow;
|
|
50
|
+
/** Header text for the first (group) column. Defaults to "Service". */
|
|
51
|
+
serviceHeader?: string;
|
|
52
|
+
/** Label for the first cell of the totals row. Defaults to "Total". */
|
|
53
|
+
footerTotalKey?: string;
|
|
54
|
+
/** Hint used to sort selected headers chronologically. */
|
|
55
|
+
granularity?: Granularity;
|
|
56
|
+
/**
|
|
57
|
+
* Format any numeric value into the cell. The library does not format numbers itself.
|
|
58
|
+
*/
|
|
59
|
+
formatValue: FormatValue<TRow>;
|
|
60
|
+
/**
|
|
61
|
+
* Return a class name that styles the diff between current and previous values.
|
|
62
|
+
* The class is applied to the cell wrapper.
|
|
63
|
+
*/
|
|
64
|
+
compareValues: CompareValues;
|
|
65
|
+
/** Optional legend (e.g. ColorCode component) rendered next to the toggle. */
|
|
66
|
+
legend?: ReactNode;
|
|
67
|
+
/** Optional override for the toggle label. */
|
|
68
|
+
toggleLabel?: string;
|
|
69
|
+
/** Forwarded to CustomTable. */
|
|
70
|
+
maxHeight?: string;
|
|
71
|
+
/** Forwarded to CustomTable. Defaults to false (cost grids are usually small). */
|
|
72
|
+
virtualization?: boolean;
|
|
73
|
+
/** Sticky behaviour. Defaults to first + last (group + total). */
|
|
74
|
+
stickyStart?: "none" | "first" | "firstTwo";
|
|
75
|
+
stickyEnd?: "none" | "last";
|
|
76
|
+
/** Text alignment for the group (service) column. Defaults to "left". */
|
|
77
|
+
groupColumnAlign?: "left" | "center" | "right";
|
|
78
|
+
/** Text alignment for the total column. Defaults to "left". */
|
|
79
|
+
totalColumnAlign?: "left" | "center" | "right";
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Shape of every row CustomTable actually receives after we flatten.
|
|
83
|
+
* Internal — not exported from the library entry point.
|
|
84
|
+
*/
|
|
85
|
+
export interface FlatComparatorRow<TRow> extends Record<string, unknown> {
|
|
86
|
+
__group: unknown;
|
|
87
|
+
__total: number;
|
|
88
|
+
__original: TRow;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=costComparatorTable.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"costComparatorTable.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/CostComparatorTable/_types/costComparatorTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI,CAC9B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,IAAI,GAAG,SAAS,EACrB,SAAS,EAAE,MAAM,KACd,SAAS,CAAC;AAEf;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,KACd,MAAM,CAAC;AAEZ,MAAM,WAAW,wBAAwB,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5E,mBAAmB;IACnB,IAAI,EAAE,IAAI,EAAE,CAAC;IAEb,6EAA6E;IAC7E,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAEtC,gFAAgF;IAChF,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,qEAAqE;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,gFAAgF;IAChF,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAE/B;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAC;IAE7B,8EAA8E;IAC9E,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kFAAkF;IAClF,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE/C,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAChD;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB,CAAC,IAAI,CAAE,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACtE,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComparatorColumn, Granularity } from '../_types/costComparatorTable.types';
|
|
2
|
+
/**
|
|
3
|
+
* Parse a header key into a comparable timestamp. Supports the three built-in
|
|
4
|
+
* granularities. Anything else returns NaN (callers fall back to insertion order).
|
|
5
|
+
*
|
|
6
|
+
* Note: this is a small, dependency-free parser. It deliberately doesn't pull
|
|
7
|
+
* moment/dayjs into the library bundle — keys outside the built-in formats
|
|
8
|
+
* are left to the consumer to provide pre-sorted.
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseDateKey(key: string, granularity: Granularity): number;
|
|
11
|
+
/**
|
|
12
|
+
* Sort selected header keys so cell-to-cell comparison always walks
|
|
13
|
+
* left-to-right in time order. Falls back to the original column order
|
|
14
|
+
* when keys can't be parsed.
|
|
15
|
+
*/
|
|
16
|
+
export declare function sortSelectedHeaders(selected: string[], granularity: Granularity, orderedColumns: ComparatorColumn[]): string[];
|
|
17
|
+
/**
|
|
18
|
+
* Cost-comparator color thresholds use 2 decimals for small values
|
|
19
|
+
* and 0 for large ones. Mirrors the legacy behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function pickPrecision(value: number): number;
|
|
22
|
+
//# sourceMappingURL=costComparator.utils.d.ts.map
|