iguazio.dashboard-react-controls 3.2.21 → 3.2.23
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/components/ActionsMenu/ActionsMenu.d.ts +17 -10
- package/dist/components/ActionsMenu/ActionsMenu.d.ts.map +1 -1
- package/dist/components/Backdrop/Backdrop.d.ts +8 -7
- package/dist/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/dist/components/BlockerSpy/BlockerSpy.d.ts +4 -3
- package/dist/components/BlockerSpy/BlockerSpy.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +16 -15
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.d.ts +69 -7
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/ChipForm/ChipForm.d.ts +20 -12
- package/dist/components/ChipForm/ChipForm.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +21 -20
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +22 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +1 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.d.ts +11 -10
- package/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +5 -4
- package/dist/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/dist/components/FormCheckBox/FormCheckBox.d.ts +13 -12
- package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +1 -1
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +8 -1
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +1 -1
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts +24 -23
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +1 -1
- package/dist/components/FormChipCell/FormChipCell.d.ts +30 -29
- package/dist/components/FormChipCell/FormChipCell.d.ts.map +1 -1
- package/dist/components/FormChipCell/FormChipCellView.d.ts +29 -28
- package/dist/components/FormChipCell/FormChipCellView.d.ts.map +1 -1
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +16 -7
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -1
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +26 -18
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +1 -1
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +5 -4
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +1 -1
- package/dist/components/FormCombobox/FormCombobox.d.ts +44 -39
- package/dist/components/FormCombobox/FormCombobox.d.ts.map +1 -1
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts +58 -6
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +1 -1
- package/dist/components/FormInput/FormInput.d.ts +77 -1
- package/dist/components/FormInput/FormInput.d.ts.map +1 -1
- package/dist/components/FormInput/FormInput.stories.d.ts +86 -8
- package/dist/components/FormInput/FormInput.stories.d.ts.map +1 -1
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +12 -11
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +1 -1
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +41 -37
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +1 -1
- package/dist/components/FormOnChange/FormOnChange.d.ts +4 -3
- package/dist/components/FormOnChange/FormOnChange.d.ts.map +1 -1
- package/dist/components/FormRadio/FormRadio.d.ts +10 -9
- package/dist/components/FormRadio/FormRadio.d.ts.map +1 -1
- package/dist/components/FormRadio/FormRadio.stories.d.ts +8 -1
- package/dist/components/FormRadio/FormRadio.stories.d.ts.map +1 -1
- package/dist/components/FormSelect/FormSelect.d.ts +44 -34
- package/dist/components/FormSelect/FormSelect.d.ts.map +1 -1
- package/dist/components/FormSelect/FormSelect.stories.d.ts +36 -4
- package/dist/components/FormSelect/FormSelect.stories.d.ts.map +1 -1
- package/dist/components/FormTextarea/FormTextarea.d.ts +31 -30
- package/dist/components/FormTextarea/FormTextarea.d.ts.map +1 -1
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts +26 -3
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +1 -1
- package/dist/components/FormToggle/FormToggle.d.ts +14 -13
- package/dist/components/FormToggle/FormToggle.d.ts.map +1 -1
- package/dist/components/LoadButton/LoadButton.d.ts +8 -7
- package/dist/components/LoadButton/LoadButton.d.ts.map +1 -1
- package/dist/components/LoadButton/LoadButton.stories.d.ts +29 -3
- package/dist/components/LoadButton/LoadButton.stories.d.ts.map +1 -1
- package/dist/components/Loader/Loader.d.ts +14 -1
- package/dist/components/Loader/Loader.d.ts.map +1 -1
- package/dist/components/Loader/LoaderForSuspenseFallback.d.ts +2 -1
- package/dist/components/Loader/LoaderForSuspenseFallback.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +19 -18
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/PopUpDialog/PopUpDialog.d.ts +22 -20
- package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +1 -1
- package/dist/components/ReadOnlyChips/ReadOnlyChips.d.ts +5 -4
- package/dist/components/ReadOnlyChips/ReadOnlyChips.d.ts.map +1 -1
- package/dist/components/RoundedIcon/RoundedIcon.d.ts +15 -14
- package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +1 -1
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +13 -2
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +1 -1
- package/dist/components/TableCell/TableCell.d.ts +20 -19
- package/dist/components/TableCell/TableCell.d.ts.map +1 -1
- package/dist/components/TabsSlider/TabsSlider.d.ts +18 -12
- package/dist/components/TabsSlider/TabsSlider.d.ts.map +1 -1
- package/dist/components/Tip/Tip.d.ts +7 -6
- package/dist/components/Tip/Tip.d.ts.map +1 -1
- package/dist/components/Tip/Tip.stories.d.ts +6 -1
- package/dist/components/Tip/Tip.stories.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +17 -16
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +16 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +6 -5
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +1 -1
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +6 -5
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +1 -1
- package/dist/components/Wizard/Wizard.d.ts +16 -15
- package/dist/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +13 -6
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +1 -1
- package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts +7 -6
- package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts.map +1 -1
- package/dist/elements/FormActionButton/FormActionButton.d.ts +13 -12
- package/dist/elements/FormActionButton/FormActionButton.d.ts.map +1 -1
- package/dist/elements/FormRowActions/FormRowActions.d.ts +14 -13
- package/dist/elements/FormRowActions/FormRowActions.d.ts.map +1 -1
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts +7 -6
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +1 -1
- package/dist/elements/SelectOption/SelectOption.d.ts +20 -10
- package/dist/elements/SelectOption/SelectOption.d.ts.map +1 -1
- package/dist/elements/TableHead/TableHead.d.ts +8 -7
- package/dist/elements/TableHead/TableHead.d.ts.map +1 -1
- package/dist/elements/TableLinkCell/TableLinkCell.d.ts +15 -14
- package/dist/elements/TableLinkCell/TableLinkCell.d.ts.map +1 -1
- package/dist/elements/TableTypeCell/TableTypeCell.d.ts +5 -4
- package/dist/elements/TableTypeCell/TableTypeCell.d.ts.map +1 -1
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +4 -3
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +1 -1
- package/dist/hooks/useDetails.hook.d.ts +35 -29
- package/dist/hooks/useDetails.hook.d.ts.map +1 -1
- package/dist/hooks/useDetailsHeader.hook.d.ts +59 -44
- package/dist/hooks/useDetailsHeader.hook.d.ts.map +1 -1
- package/dist/hooks/useFormTable.hook.d.ts +5 -5
- package/dist/hooks/useTable.hook.d.ts +42 -32
- package/dist/hooks/useTable.hook.d.ts.map +1 -1
- package/dist/images/activeFilter.svg +6 -0
- package/dist/images/activeFilter.svg.mjs +6 -0
- package/dist/images/activeFilter.svg.mjs.map +1 -0
- package/dist/images/calendar-chevron.svg +3 -0
- package/dist/images/calendar-chevron.svg.mjs +6 -0
- package/dist/images/calendar-chevron.svg.mjs.map +1 -0
- package/dist/images/check.svg +3 -0
- package/dist/images/check.svg.mjs +6 -0
- package/dist/images/check.svg.mjs.map +1 -0
- package/dist/images/clock.svg.mjs +6 -0
- package/dist/images/clock.svg.mjs.map +1 -0
- package/dist/images/double-check.svg +3 -0
- package/dist/images/filter-2.svg +5 -0
- package/dist/images/filter-2.svg.mjs +6 -0
- package/dist/images/filter-2.svg.mjs.map +1 -0
- package/dist/images/refresh-2.svg +3 -0
- package/dist/images/refresh-2.svg.mjs +6 -0
- package/dist/images/refresh-2.svg.mjs.map +1 -0
- package/dist/images/search2-icon.svg +3 -0
- package/dist/images/select.svg +3 -0
- package/dist/images/select.svg.mjs +6 -0
- package/dist/images/select.svg.mjs.map +1 -0
- package/dist/images/sort-arrow.svg +3 -0
- package/dist/images/sort-arrow.svg.mjs +6 -0
- package/dist/images/sort-arrow.svg.mjs.map +1 -0
- package/dist/nextGenComponents/components/Badge/Badge.d.ts +13 -0
- package/dist/nextGenComponents/components/Badge/Badge.d.ts.map +1 -0
- package/dist/nextGenComponents/components/Badge/Badge.mjs +23 -0
- package/dist/nextGenComponents/components/Badge/Badge.mjs.map +1 -0
- package/dist/nextGenComponents/components/Badge/index.d.ts +3 -0
- package/dist/nextGenComponents/components/Badge/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/Badge/index.mjs +6 -0
- package/dist/nextGenComponents/components/Badge/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/BadgeCell/BadgeCell.d.ts +13 -0
- package/dist/nextGenComponents/components/BadgeCell/BadgeCell.d.ts.map +1 -0
- package/dist/nextGenComponents/components/BadgeCell/BadgeCell.mjs +109 -0
- package/dist/nextGenComponents/components/BadgeCell/BadgeCell.mjs.map +1 -0
- package/dist/nextGenComponents/components/BadgeCell/index.d.ts +3 -0
- package/dist/nextGenComponents/components/BadgeCell/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/BadgeCell/index.mjs +5 -0
- package/dist/nextGenComponents/components/BadgeCell/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.d.ts +10 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.mjs +103 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.d.ts +14 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.mjs +115 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.d.ts +14 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.mjs +109 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.d.ts +8 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.mjs +109 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.d.ts +2 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.mjs +5 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.d.ts +29 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.mjs +223 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.d.ts +11 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.mjs +17 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.d.ts +4 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.mjs +30 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/index.d.ts +2 -0
- package/dist/nextGenComponents/components/DataTable/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/index.mjs +5 -0
- package/dist/nextGenComponents/components/DataTable/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.d.ts +11 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.mjs +53 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.mjs.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.d.ts +2 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.mjs +5 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.d.ts +8 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.d.ts.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.mjs +20 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.mjs.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.d.ts +2 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.mjs +5 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.d.ts +11 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.d.ts.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.mjs +160 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.mjs.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/index.d.ts +2 -0
- package/dist/nextGenComponents/components/FilterPopover/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/index.mjs +5 -0
- package/dist/nextGenComponents/components/FilterPopover/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/Loader/Loader.d.ts +16 -0
- package/dist/nextGenComponents/components/Loader/Loader.d.ts.map +1 -0
- package/dist/nextGenComponents/components/Loader/Loader.mjs +62 -0
- package/dist/nextGenComponents/components/Loader/Loader.mjs.map +1 -0
- package/dist/nextGenComponents/components/Loader/index.d.ts +3 -0
- package/dist/nextGenComponents/components/Loader/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/Loader/index.mjs +5 -0
- package/dist/nextGenComponents/components/Loader/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.d.ts +15 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.d.ts.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.mjs +113 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.mjs.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.d.ts +3 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.mjs +6 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.d.ts +17 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.d.ts.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.mjs +106 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.mjs.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/index.d.ts +3 -0
- package/dist/nextGenComponents/components/PaginationControls/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/index.mjs +5 -0
- package/dist/nextGenComponents/components/PaginationControls/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.d.ts +5 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.mjs +20 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.mjs.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/index.d.ts +2 -0
- package/dist/nextGenComponents/components/RefreshButton/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/index.mjs +5 -0
- package/dist/nextGenComponents/components/RefreshButton/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.d.ts +8 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.mjs +58 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.d.ts +8 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.mjs +19 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.d.ts +9 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.mjs +27 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/index.d.ts +5 -0
- package/dist/nextGenComponents/components/RowActions/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/index.mjs +9 -0
- package/dist/nextGenComponents/components/RowActions/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.d.ts +47 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.d.ts.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.mjs +75 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.mjs.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/index.d.ts +2 -0
- package/dist/nextGenComponents/components/StatsCard/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/index.mjs +5 -0
- package/dist/nextGenComponents/components/StatsCard/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +4 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.d.ts.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.mjs +106 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.mjs.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.d.ts +2 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.mjs +5 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/index.d.ts +39 -0
- package/dist/nextGenComponents/components/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/index.mjs +103 -0
- package/dist/nextGenComponents/components/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/button.d.ts +14 -0
- package/dist/nextGenComponents/components/ui/button.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/button.mjs +56 -0
- package/dist/nextGenComponents/components/ui/button.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/calendar.d.ts +29 -0
- package/dist/nextGenComponents/components/ui/calendar.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/calendar.mjs +157 -0
- package/dist/nextGenComponents/components/ui/calendar.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/card.d.ts +9 -0
- package/dist/nextGenComponents/components/ui/card.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/card.mjs +50 -0
- package/dist/nextGenComponents/components/ui/card.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/checkbox.d.ts +8 -0
- package/dist/nextGenComponents/components/ui/checkbox.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/checkbox.mjs +33 -0
- package/dist/nextGenComponents/components/ui/checkbox.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/collapsible.d.ts +6 -0
- package/dist/nextGenComponents/components/ui/collapsible.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/collapsible.mjs +8 -0
- package/dist/nextGenComponents/components/ui/collapsible.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/dialog.d.ts +27 -0
- package/dist/nextGenComponents/components/ui/dialog.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/dialog.mjs +135 -0
- package/dist/nextGenComponents/components/ui/dialog.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.mjs +131 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/input.d.ts +4 -0
- package/dist/nextGenComponents/components/ui/input.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/input.mjs +33 -0
- package/dist/nextGenComponents/components/ui/input.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/pagination.d.ts +25 -0
- package/dist/nextGenComponents/components/ui/pagination.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/pagination.mjs +93 -0
- package/dist/nextGenComponents/components/ui/pagination.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/popover.d.ts +7 -0
- package/dist/nextGenComponents/components/ui/popover.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/popover.mjs +24 -0
- package/dist/nextGenComponents/components/ui/popover.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/scroll-area.d.ts +6 -0
- package/dist/nextGenComponents/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/scroll-area.mjs +39 -0
- package/dist/nextGenComponents/components/ui/scroll-area.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/select.d.ts +14 -0
- package/dist/nextGenComponents/components/ui/select.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/select.mjs +117 -0
- package/dist/nextGenComponents/components/ui/select.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/separator.d.ts +5 -0
- package/dist/nextGenComponents/components/ui/separator.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/separator.mjs +25 -0
- package/dist/nextGenComponents/components/ui/separator.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/tabs.d.ts +8 -0
- package/dist/nextGenComponents/components/ui/tabs.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/tabs.mjs +56 -0
- package/dist/nextGenComponents/components/ui/tabs.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/tooltip.d.ts +8 -0
- package/dist/nextGenComponents/components/ui/tooltip.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/tooltip.mjs +24 -0
- package/dist/nextGenComponents/components/ui/tooltip.mjs.map +1 -0
- package/dist/nextGenComponents/constants/index.d.ts +41 -0
- package/dist/nextGenComponents/constants/index.d.ts.map +1 -0
- package/dist/nextGenComponents/constants/index.mjs +49 -0
- package/dist/nextGenComponents/constants/index.mjs.map +1 -0
- package/dist/nextGenComponents/hooks/useClickOutside.d.ts +3 -0
- package/dist/nextGenComponents/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/nextGenComponents/hooks/useClickOutside.mjs +22 -0
- package/dist/nextGenComponents/hooks/useClickOutside.mjs.map +1 -0
- package/dist/nextGenComponents/index.d.ts +4 -0
- package/dist/nextGenComponents/index.d.ts.map +1 -0
- package/dist/nextGenComponents/index.mjs +126 -0
- package/dist/nextGenComponents/index.mjs.map +1 -0
- package/dist/nextGenComponents/lib/utils.d.ts +3 -0
- package/dist/nextGenComponents/lib/utils.d.ts.map +1 -0
- package/dist/nextGenComponents/lib/utils.mjs +7 -0
- package/dist/nextGenComponents/lib/utils.mjs.map +1 -0
- package/dist/nextGenComponents/stores/tableStore.d.ts +28 -0
- package/dist/nextGenComponents/stores/tableStore.d.ts.map +1 -0
- package/dist/nextGenComponents/stores/tableStore.mjs +58 -0
- package/dist/nextGenComponents/stores/tableStore.mjs.map +1 -0
- package/dist/nextGenComponents/types/table/filter.d.ts +21 -0
- package/dist/nextGenComponents/types/table/filter.d.ts.map +1 -0
- package/dist/nextGenComponents/types/table/rowAction.d.ts +13 -0
- package/dist/nextGenComponents/types/table/rowAction.d.ts.map +1 -0
- package/dist/nextGenComponents/types/table/timeFilter.d.ts +23 -0
- package/dist/nextGenComponents/types/table/timeFilter.d.ts.map +1 -0
- package/dist/nextGenComponents/utils/date.utils.d.ts +24 -0
- package/dist/nextGenComponents/utils/date.utils.d.ts.map +1 -0
- package/dist/nextGenComponents/utils/date.utils.mjs +79 -0
- package/dist/nextGenComponents/utils/date.utils.mjs.map +1 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.d.ts +7 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.d.ts.map +1 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.mjs +7 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.mjs.map +1 -0
- package/dist/reducers/notificationReducer.d.ts +1 -1
- package/dist/types.d.ts +148 -31
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/chips.util.d.ts +2 -2
- package/dist/utils/chips.util.d.ts.map +1 -1
- package/dist/utils/common.util.d.ts +1 -1
- package/dist/utils/common.util.d.ts.map +1 -1
- package/dist/utils/datetime.util.d.ts +3 -3
- package/dist/utils/datetime.util.d.ts.map +1 -1
- package/dist/utils/generateChipsList.util.d.ts +1 -1
- package/dist/utils/notification.util.d.ts +1 -1
- package/dist/utils/notification.util.d.ts.map +1 -1
- package/dist/utils/proxyServerConfig.util.d.ts +4 -4
- package/package.json +35 -8
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const T = "Copy", E = {
|
|
2
|
+
CHECKBOX_COLUMN_ID: "select",
|
|
3
|
+
PAGINATION_START_NO_ROWS: 0,
|
|
4
|
+
SELECT_ALL: "Select all",
|
|
5
|
+
SELECT_ROW: "Select row",
|
|
6
|
+
SORT: "Sort"
|
|
7
|
+
}, t = [
|
|
8
|
+
{ value: "any", label: "Any time" },
|
|
9
|
+
{ value: "24h", label: "Last 24 hours" },
|
|
10
|
+
{ value: "7d", label: "Last 7 days" },
|
|
11
|
+
{ value: "30d", label: "Last 30 days" },
|
|
12
|
+
{ value: "custom", label: "Custom range", rightIcon: "chevron" }
|
|
13
|
+
], _ = "Start time: ", s = "Details", o = 48, L = "Apply", e = "Clear", S = "Filter by", n = "Last 24 hrs", I = "Log out", O = "No rows available", R = "Personal Settings", c = "Refresh", A = "Remote Settings", a = "More actions", l = {
|
|
14
|
+
ASC: "asc",
|
|
15
|
+
DESC: "desc"
|
|
16
|
+
}, C = "Showing", r = "custom", N = "any", i = "Any time", P = "Reset", M = {
|
|
17
|
+
TITLE_COMPLETED: "File is ready",
|
|
18
|
+
TITLE_IN_PROGRESS: "Exporting file",
|
|
19
|
+
TITLE_ERROR: "Export failed",
|
|
20
|
+
EXPORTING: "· Exporting...",
|
|
21
|
+
CLOSE: "Close"
|
|
22
|
+
}, F = 16;
|
|
23
|
+
export {
|
|
24
|
+
T as COPY,
|
|
25
|
+
E as DATATABLE_TEXT,
|
|
26
|
+
t as DEFAULT_TIME_FILTER_OPTIONS,
|
|
27
|
+
s as DETAILS_FALLBACK_TITLE,
|
|
28
|
+
o as ESTIMATED_ROW_HEIGHT,
|
|
29
|
+
M as EXPORT_TOAST,
|
|
30
|
+
L as FILTER_BUTTON_APPLY,
|
|
31
|
+
e as FILTER_BUTTON_CLEAR,
|
|
32
|
+
S as FILTER_POPOVER_DEFAULT_TITLE,
|
|
33
|
+
F as HELP_TOOLTIP_ICON_SIZE,
|
|
34
|
+
I as LOG_OUT,
|
|
35
|
+
a as MORE_ACTIONS,
|
|
36
|
+
O as NO_ROWS_MESSAGES,
|
|
37
|
+
R as PERSONAL_SETTING,
|
|
38
|
+
c as REFRESH_BUTTON_TITLE,
|
|
39
|
+
A as REMOTE_SETTING,
|
|
40
|
+
P as RESET,
|
|
41
|
+
C as SHOWING,
|
|
42
|
+
l as SORT_DIRECTION,
|
|
43
|
+
_ as START_TIME_LABEL,
|
|
44
|
+
n as STATS_CARD_TIMESTAMP,
|
|
45
|
+
r as TIME_FILTER_CUSTOM_VALUE,
|
|
46
|
+
i as TIME_FILTER_FALLBACK_LABEL,
|
|
47
|
+
N as TIME_FILTER_RESET_VALUE
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/lib/nextGenComponents/constants/index.ts"],"sourcesContent":["import { TimeFilterOption } from '@/types/table/timeFilter'\n\nexport const COPY = 'Copy'\n\nexport const DATATABLE_TEXT = {\n CHECKBOX_COLUMN_ID: 'select',\n PAGINATION_START_NO_ROWS: 0,\n SELECT_ALL: 'Select all',\n SELECT_ROW: 'Select row',\n SORT: 'Sort'\n} as const\n\nexport const DEFAULT_TIME_FILTER_OPTIONS: TimeFilterOption[] = [\n { value: 'any', label: 'Any time' },\n { value: '24h', label: 'Last 24 hours' },\n { value: '7d', label: 'Last 7 days' },\n { value: '30d', label: 'Last 30 days' },\n { value: 'custom', label: 'Custom range', rightIcon: 'chevron' }\n]\n\nexport const START_TIME_LABEL = 'Start time: '\n\nexport const DETAILS_FALLBACK_TITLE = 'Details'\n\nexport const ESTIMATED_ROW_HEIGHT = 48\n\nexport const FILTER_BUTTON_APPLY = 'Apply'\n\nexport const FILTER_BUTTON_CLEAR = 'Clear'\n\nexport const FILTER_POPOVER_DEFAULT_TITLE = 'Filter by'\n\nexport const STATS_CARD_TIMESTAMP = 'Last 24 hrs'\n\nexport const LOG_OUT = 'Log out'\n\nexport const NO_ROWS_MESSAGES = 'No rows available'\n\nexport const PERSONAL_SETTING = 'Personal Settings'\n\nexport const REFRESH_BUTTON_TITLE = 'Refresh'\n\nexport const REMOTE_SETTING = 'Remote Settings'\n\nexport const MORE_ACTIONS = 'More actions'\n\nexport const SORT_DIRECTION = {\n ASC: 'asc',\n DESC: 'desc'\n} as const\n\nexport const SHOWING = 'Showing'\n\nexport const TIME_FILTER_CUSTOM_VALUE = 'custom'\n\nexport const TIME_FILTER_RESET_VALUE = 'any'\n\nexport const TIME_FILTER_FALLBACK_LABEL = 'Any time'\n\nexport const RESET = 'Reset'\n\nexport const EXPORT_TOAST = {\n TITLE_COMPLETED: 'File is ready',\n TITLE_IN_PROGRESS: 'Exporting file',\n TITLE_ERROR: 'Export failed',\n EXPORTING: '· Exporting...',\n CLOSE: 'Close'\n} as const\n\nexport const HELP_TOOLTIP_ICON_SIZE = 16\n"],"names":["COPY","DATATABLE_TEXT","DEFAULT_TIME_FILTER_OPTIONS","START_TIME_LABEL","DETAILS_FALLBACK_TITLE","ESTIMATED_ROW_HEIGHT","FILTER_BUTTON_APPLY","FILTER_BUTTON_CLEAR","FILTER_POPOVER_DEFAULT_TITLE","STATS_CARD_TIMESTAMP","LOG_OUT","NO_ROWS_MESSAGES","PERSONAL_SETTING","REFRESH_BUTTON_TITLE","REMOTE_SETTING","MORE_ACTIONS","SORT_DIRECTION","SHOWING","TIME_FILTER_CUSTOM_VALUE","TIME_FILTER_RESET_VALUE","TIME_FILTER_FALLBACK_LABEL","RESET","EXPORT_TOAST","HELP_TOOLTIP_ICON_SIZE"],"mappings":"AAEO,MAAMA,IAAO,QAEPC,IAAiB;AAAA,EAC5B,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,MAAM;AACR,GAEaC,IAAkD;AAAA,EAC7D,EAAE,OAAO,OAAO,OAAO,WAAA;AAAA,EACvB,EAAE,OAAO,OAAO,OAAO,gBAAA;AAAA,EACvB,EAAE,OAAO,MAAM,OAAO,cAAA;AAAA,EACtB,EAAE,OAAO,OAAO,OAAO,eAAA;AAAA,EACvB,EAAE,OAAO,UAAU,OAAO,gBAAgB,WAAW,UAAA;AACvD,GAEaC,IAAmB,gBAEnBC,IAAyB,WAEzBC,IAAuB,IAEvBC,IAAsB,SAEtBC,IAAsB,SAEtBC,IAA+B,aAE/BC,IAAuB,eAEvBC,IAAU,WAEVC,IAAmB,qBAEnBC,IAAmB,qBAEnBC,IAAuB,WAEvBC,IAAiB,mBAEjBC,IAAe,gBAEfC,IAAiB;AAAA,EAC5B,KAAK;AAAA,EACL,MAAM;AACR,GAEaC,IAAU,WAEVC,IAA2B,UAE3BC,IAA0B,OAE1BC,IAA6B,YAE7BC,IAAQ,SAERC,IAAe;AAAA,EAC1B,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,WAAW;AAAA,EACX,OAAO;AACT,GAEaC,IAAyB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../../src/lib/nextGenComponents/hooks/useClickOutside.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,eAAe,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,8CAiBzD,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useRef as u, useEffect as c } from "react";
|
|
2
|
+
const s = [
|
|
3
|
+
'[role="dialog"]',
|
|
4
|
+
'[role="alertdialog"]',
|
|
5
|
+
'[role="menu"]',
|
|
6
|
+
'[role="listbox"]'
|
|
7
|
+
].join(","), l = (e) => e instanceof Element ? !!(e.closest(s) || e.querySelector(s)) : !1, d = (e) => {
|
|
8
|
+
const n = u(null);
|
|
9
|
+
return c(() => {
|
|
10
|
+
if (!e) return;
|
|
11
|
+
const o = (i) => {
|
|
12
|
+
var r;
|
|
13
|
+
const t = i.target;
|
|
14
|
+
t instanceof Node && ((r = n.current) != null && r.contains(t) || l(t) || e());
|
|
15
|
+
};
|
|
16
|
+
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
17
|
+
}, [e]), n;
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
d as useClickOutside
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useClickOutside.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClickOutside.mjs","sources":["../../../src/lib/nextGenComponents/hooks/useClickOutside.ts"],"sourcesContent":["import { useEffect, useRef } from 'react'\n\nconst PORTAGED_UI_SELECTOR = [\n '[role=\"dialog\"]',\n '[role=\"alertdialog\"]',\n '[role=\"menu\"]',\n '[role=\"listbox\"]'\n].join(',')\n\nconst isInsidePortalUI = (target: EventTarget | null) => {\n if (!(target instanceof Element)) return false\n\n return Boolean(target.closest(PORTAGED_UI_SELECTOR) || target.querySelector(PORTAGED_UI_SELECTOR))\n}\n\nconst useClickOutside = (handler: (() => void) | undefined) => {\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n if (!handler) return\n const listener = (e: MouseEvent) => {\n const target = e.target\n if (!(target instanceof Node)) return\n if (ref.current?.contains(target)) return\n if (isInsidePortalUI(target)) return\n handler()\n }\n document.addEventListener('mousedown', listener)\n return () => document.removeEventListener('mousedown', listener)\n }, [handler])\n\n return ref\n}\n\nexport { useClickOutside }\n"],"names":["PORTAGED_UI_SELECTOR","isInsidePortalUI","target","useClickOutside","handler","ref","useRef","useEffect","listener","e","_a"],"mappings":";AAEA,MAAMA,IAAuB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG,GAEJC,IAAmB,CAACC,MAClBA,aAAkB,UAEjB,GAAQA,EAAO,QAAQF,CAAoB,KAAKE,EAAO,cAAcF,CAAoB,KAFvD,IAKrCG,IAAkB,CAACC,MAAsC;AAC7D,QAAMC,IAAMC,EAAuB,IAAI;AAEvC,SAAAC,EAAU,MAAM;AACd,QAAI,CAACH,EAAS;AACd,UAAMI,IAAW,CAACC,MAAkB;;AAClC,YAAMP,IAASO,EAAE;AACjB,MAAMP,aAAkB,UACpBQ,IAAAL,EAAI,YAAJ,QAAAK,EAAa,SAASR,MACtBD,EAAiBC,CAAM,KAC3BE,EAAA;AAAA,IACF;AACA,oBAAS,iBAAiB,aAAaI,CAAQ,GACxC,MAAM,SAAS,oBAAoB,aAAaA,CAAQ;AAAA,EACjE,GAAG,CAACJ,CAAO,CAAC,GAELC;AACT;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/nextGenComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import "./components/index.mjs";
|
|
2
|
+
import { useTableStore as t } from "./stores/tableStore.mjs";
|
|
3
|
+
import { default as l } from "./components/RowActions/ActionMenu/ActionMenu.mjs";
|
|
4
|
+
import { default as p, getBadgeColor as i } from "./components/Badge/Badge.mjs";
|
|
5
|
+
import { default as u } from "./components/BadgeCell/BadgeCell.mjs";
|
|
6
|
+
import { Button as g } from "./components/ui/button.mjs";
|
|
7
|
+
import { Calendar as s } from "./components/ui/calendar.mjs";
|
|
8
|
+
import { Card as D, CardContent as C, CardDescription as S, CardFooter as c, CardHeader as T, CardTitle as w } from "./components/ui/card.mjs";
|
|
9
|
+
import { Checkbox as P } from "./components/ui/checkbox.mjs";
|
|
10
|
+
import { Collapsible as B, CollapsibleContent as v, CollapsibleTrigger as I } from "./components/ui/collapsible.mjs";
|
|
11
|
+
import { default as F, default as L } from "./components/EllipsisTooltip/EllipsisTooltip.mjs";
|
|
12
|
+
import { default as R } from "./components/DataTable/DataTable.mjs";
|
|
13
|
+
import { default as y } from "./components/DetailsPanel/DetailsPanel.mjs";
|
|
14
|
+
import { Dialog as E, DialogBody as H, DialogClose as N, DialogContent as O, DialogDescription as U, DialogFooter as V, DialogHeader as j, DialogOverlay as q, DialogPortal as z, DialogTitle as J, DialogTrigger as K } from "./components/ui/dialog.mjs";
|
|
15
|
+
import { DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, DropdownMenuLabel as $, DropdownMenuPortal as oo, DropdownMenuRadioGroup as eo, DropdownMenuRadioItem as ro, DropdownMenuSeparator as to, DropdownMenuShortcut as ao, DropdownMenuSub as lo, DropdownMenuSubContent as no, DropdownMenuSubTrigger as po, DropdownMenuTrigger as io } from "./components/ui/dropdown-menu.mjs";
|
|
16
|
+
import { default as fo } from "./components/FilterPopover/FilterPopover.mjs";
|
|
17
|
+
import { Input as mo } from "./components/ui/input.mjs";
|
|
18
|
+
import { default as xo } from "./components/Loader/Loader.mjs";
|
|
19
|
+
import { default as Co, SelectArrow as So } from "./components/MultiSelectField/MultiSelectField.mjs";
|
|
20
|
+
import { Pagination as To, PaginationContent as wo, PaginationEllipsis as Mo, PaginationItem as Po, PaginationLink as bo, PaginationNext as Bo, PaginationPrevious as vo } from "./components/ui/pagination.mjs";
|
|
21
|
+
import { default as Ao } from "./components/PaginationControls/PaginationControls.mjs";
|
|
22
|
+
import { Popover as Lo, PopoverContent as ho, PopoverTrigger as Ro } from "./components/ui/popover.mjs";
|
|
23
|
+
import { default as yo } from "./components/RefreshButton/RefreshButton.mjs";
|
|
24
|
+
import { default as Eo } from "./components/RowActions/RowActions.mjs";
|
|
25
|
+
import { ScrollArea as No, ScrollBar as Oo } from "./components/ui/scroll-area.mjs";
|
|
26
|
+
import { Select as Vo, SelectContent as jo, SelectGroup as qo, SelectItem as zo, SelectLabel as Jo, SelectScrollDownButton as Ko, SelectScrollUpButton as Qo, SelectSeparator as Wo, SelectTrigger as Xo, SelectValue as Yo } from "./components/ui/select.mjs";
|
|
27
|
+
import { Separator as _o } from "./components/ui/separator.mjs";
|
|
28
|
+
import { default as oe } from "./components/RowActions/SingleActionButton/SingleActionButton.mjs";
|
|
29
|
+
import { default as re } from "./components/StatsCard/StatsCard.mjs";
|
|
30
|
+
import { Tabs as ae, TabsContent as le, TabsList as ne, TabsTrigger as pe } from "./components/ui/tabs.mjs";
|
|
31
|
+
import { default as de } from "./components/TimeFilterDropdown/TimeFilterDropdown.mjs";
|
|
32
|
+
import { Tooltip as fe, TooltipContent as ge, TooltipProvider as me, TooltipTrigger as se } from "./components/ui/tooltip.mjs";
|
|
33
|
+
import { cn as De } from "./lib/utils.mjs";
|
|
34
|
+
export {
|
|
35
|
+
l as ActionMenu,
|
|
36
|
+
p as Badge,
|
|
37
|
+
u as BadgeCell,
|
|
38
|
+
g as Button,
|
|
39
|
+
s as Calendar,
|
|
40
|
+
D as Card,
|
|
41
|
+
C as CardContent,
|
|
42
|
+
S as CardDescription,
|
|
43
|
+
c as CardFooter,
|
|
44
|
+
T as CardHeader,
|
|
45
|
+
w as CardTitle,
|
|
46
|
+
P as Checkbox,
|
|
47
|
+
B as Collapsible,
|
|
48
|
+
v as CollapsibleContent,
|
|
49
|
+
I as CollapsibleTrigger,
|
|
50
|
+
F as CopyButton,
|
|
51
|
+
R as DataTable,
|
|
52
|
+
y as DetailsPanel,
|
|
53
|
+
E as Dialog,
|
|
54
|
+
H as DialogBody,
|
|
55
|
+
N as DialogClose,
|
|
56
|
+
O as DialogContent,
|
|
57
|
+
U as DialogDescription,
|
|
58
|
+
V as DialogFooter,
|
|
59
|
+
j as DialogHeader,
|
|
60
|
+
q as DialogOverlay,
|
|
61
|
+
z as DialogPortal,
|
|
62
|
+
J as DialogTitle,
|
|
63
|
+
K as DialogTrigger,
|
|
64
|
+
W as DropdownMenu,
|
|
65
|
+
X as DropdownMenuCheckboxItem,
|
|
66
|
+
Y as DropdownMenuContent,
|
|
67
|
+
Z as DropdownMenuGroup,
|
|
68
|
+
_ as DropdownMenuItem,
|
|
69
|
+
$ as DropdownMenuLabel,
|
|
70
|
+
oo as DropdownMenuPortal,
|
|
71
|
+
eo as DropdownMenuRadioGroup,
|
|
72
|
+
ro as DropdownMenuRadioItem,
|
|
73
|
+
to as DropdownMenuSeparator,
|
|
74
|
+
ao as DropdownMenuShortcut,
|
|
75
|
+
lo as DropdownMenuSub,
|
|
76
|
+
no as DropdownMenuSubContent,
|
|
77
|
+
po as DropdownMenuSubTrigger,
|
|
78
|
+
io as DropdownMenuTrigger,
|
|
79
|
+
L as EllipsisTooltip,
|
|
80
|
+
fo as FilterPopover,
|
|
81
|
+
mo as Input,
|
|
82
|
+
xo as Loader,
|
|
83
|
+
Co as MultiSelectField,
|
|
84
|
+
To as Pagination,
|
|
85
|
+
wo as PaginationContent,
|
|
86
|
+
Ao as PaginationControls,
|
|
87
|
+
Mo as PaginationEllipsis,
|
|
88
|
+
Po as PaginationItem,
|
|
89
|
+
bo as PaginationLink,
|
|
90
|
+
Bo as PaginationNext,
|
|
91
|
+
vo as PaginationPrevious,
|
|
92
|
+
Lo as Popover,
|
|
93
|
+
ho as PopoverContent,
|
|
94
|
+
Ro as PopoverTrigger,
|
|
95
|
+
yo as RefreshButton,
|
|
96
|
+
Eo as RowActions,
|
|
97
|
+
No as ScrollArea,
|
|
98
|
+
Oo as ScrollBar,
|
|
99
|
+
Vo as Select,
|
|
100
|
+
So as SelectArrow,
|
|
101
|
+
jo as SelectContent,
|
|
102
|
+
qo as SelectGroup,
|
|
103
|
+
zo as SelectItem,
|
|
104
|
+
Jo as SelectLabel,
|
|
105
|
+
Ko as SelectScrollDownButton,
|
|
106
|
+
Qo as SelectScrollUpButton,
|
|
107
|
+
Wo as SelectSeparator,
|
|
108
|
+
Xo as SelectTrigger,
|
|
109
|
+
Yo as SelectValue,
|
|
110
|
+
_o as Separator,
|
|
111
|
+
oe as SingleActionButton,
|
|
112
|
+
re as StatsCard,
|
|
113
|
+
ae as Tabs,
|
|
114
|
+
le as TabsContent,
|
|
115
|
+
ne as TabsList,
|
|
116
|
+
pe as TabsTrigger,
|
|
117
|
+
de as TimeFilterDropdown,
|
|
118
|
+
fe as Tooltip,
|
|
119
|
+
ge as TooltipContent,
|
|
120
|
+
me as TooltipProvider,
|
|
121
|
+
se as TooltipTrigger,
|
|
122
|
+
De as cn,
|
|
123
|
+
i as getBadgeColor,
|
|
124
|
+
t as useTableStore
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/nextGenComponents/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAG5C,eAAO,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,WAEzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../../src/lib/nextGenComponents/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport const cn = (...inputs: ClassValue[]) => {\n return twMerge(clsx(inputs))\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAGO,MAAMA,IAAK,IAAIC,MACbC,EAAQC,EAAKF,CAAM,CAAC;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RowSelectionState, SortingState, ColumnSizingState, ColumnFiltersState } from '@tanstack/react-table';
|
|
2
|
+
export type DraftValues = Record<string, string | string[]>;
|
|
3
|
+
export type FilterPopoverState = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
draft: DraftValues;
|
|
6
|
+
};
|
|
7
|
+
export declare const DEFAULT_FILTER_SCOPE = "default";
|
|
8
|
+
type TableState = {
|
|
9
|
+
rowSelection: RowSelectionState;
|
|
10
|
+
sorting: SortingState;
|
|
11
|
+
columnSizing: ColumnSizingState;
|
|
12
|
+
globalFilter: string;
|
|
13
|
+
columnFilters: ColumnFiltersState;
|
|
14
|
+
filterPopovers: Record<string, FilterPopoverState>;
|
|
15
|
+
setRowSelection: (selection: RowSelectionState | ((old: RowSelectionState) => RowSelectionState)) => void;
|
|
16
|
+
setSorting: (sorting: SortingState | ((old: SortingState) => SortingState)) => void;
|
|
17
|
+
setColumnSizing: (sizing: ColumnSizingState | ((old: ColumnSizingState) => ColumnSizingState)) => void;
|
|
18
|
+
setGlobalFilter: (value: string | ((old: string) => string)) => void;
|
|
19
|
+
setColumnFilters: (value: ColumnFiltersState | ((old: ColumnFiltersState) => ColumnFiltersState)) => void;
|
|
20
|
+
getFilterPopover: (scopeId: string) => FilterPopoverState;
|
|
21
|
+
setFilterPopoverOpen: (scopeId: string, open: boolean) => void;
|
|
22
|
+
setFilterDraft: (scopeId: string, draft: DraftValues | ((old: DraftValues) => DraftValues)) => void;
|
|
23
|
+
resetFilterDraft: (scopeId: string, initial: DraftValues) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare const selectFilterPopover: (scopeId: string) => (state: TableState) => FilterPopoverState;
|
|
26
|
+
export declare const useTableStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TableState>>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=tableStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableStore.d.ts","sourceRoot":"","sources":["../../../src/lib/nextGenComponents/stores/tableStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,uBAAuB,CAAA;AAG9B,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AAE3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAI7C,KAAK,UAAU,GAAG;IAChB,YAAY,EAAE,iBAAiB,CAAA;IAC/B,OAAO,EAAE,YAAY,CAAA;IACrB,YAAY,EAAE,iBAAiB,CAAA;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,kBAAkB,CAAA;IAEjC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;IAElD,eAAe,EAAE,CACf,SAAS,EAAE,iBAAiB,GAAG,CAAC,CAAC,GAAG,EAAE,iBAAiB,KAAK,iBAAiB,CAAC,KAC3E,IAAI,CAAA;IACT,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,CAAC,CAAC,GAAG,EAAE,YAAY,KAAK,YAAY,CAAC,KAAK,IAAI,CAAA;IACnF,eAAe,EAAE,CACf,MAAM,EAAE,iBAAiB,GAAG,CAAC,CAAC,GAAG,EAAE,iBAAiB,KAAK,iBAAiB,CAAC,KACxE,IAAI,CAAA;IACT,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,KAAK,IAAI,CAAA;IACpE,gBAAgB,EAAE,CAChB,KAAK,EAAE,kBAAkB,GAAG,CAAC,CAAC,GAAG,EAAE,kBAAkB,KAAK,kBAAkB,CAAC,KAC1E,IAAI,CAAA;IAET,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,kBAAkB,CAAA;IACzD,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9D,cAAc,EAAE,CACd,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,GAAG,CAAC,CAAC,GAAG,EAAE,WAAW,KAAK,WAAW,CAAC,KACrD,IAAI,CAAA;IACT,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,CAAA;CAClE,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC7B,SAAS,MAAM,MACf,OAAO,UAAU,KAAG,kBAC+B,CAAA;AAEtD,eAAO,MAAM,aAAa,yEAqEvB,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { create as p } from "zustand";
|
|
2
|
+
const c = "default", l = { open: !1, draft: {} }, P = (e) => (n) => n.filterPopovers[e] ?? l, u = p((e, n) => ({
|
|
3
|
+
rowSelection: {},
|
|
4
|
+
sorting: [],
|
|
5
|
+
columnSizing: {},
|
|
6
|
+
globalFilter: "",
|
|
7
|
+
columnFilters: [],
|
|
8
|
+
filterPopovers: {},
|
|
9
|
+
setRowSelection: (o) => e((t) => ({
|
|
10
|
+
rowSelection: typeof o == "function" ? o(t.rowSelection) : o
|
|
11
|
+
})),
|
|
12
|
+
setSorting: (o) => e((t) => ({
|
|
13
|
+
sorting: typeof o == "function" ? o(t.sorting) : o
|
|
14
|
+
})),
|
|
15
|
+
setColumnSizing: (o) => e((t) => ({
|
|
16
|
+
columnSizing: typeof o == "function" ? o(t.columnSizing) : o
|
|
17
|
+
})),
|
|
18
|
+
setGlobalFilter: (o) => e((t) => ({
|
|
19
|
+
globalFilter: typeof o == "function" ? o(t.globalFilter) : o
|
|
20
|
+
})),
|
|
21
|
+
setColumnFilters: (o) => e((t) => ({
|
|
22
|
+
columnFilters: typeof o == "function" ? o(t.columnFilters) : o
|
|
23
|
+
})),
|
|
24
|
+
getFilterPopover: (o) => n().filterPopovers[o] ?? l,
|
|
25
|
+
setFilterPopoverOpen: (o, t) => e((r) => {
|
|
26
|
+
const i = r.filterPopovers[o] ?? l;
|
|
27
|
+
return {
|
|
28
|
+
filterPopovers: {
|
|
29
|
+
...r.filterPopovers,
|
|
30
|
+
[o]: { ...i, open: t }
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}),
|
|
34
|
+
setFilterDraft: (o, t) => e((r) => {
|
|
35
|
+
const i = r.filterPopovers[o] ?? l, f = typeof t == "function" ? t(i.draft) : t;
|
|
36
|
+
return {
|
|
37
|
+
filterPopovers: {
|
|
38
|
+
...r.filterPopovers,
|
|
39
|
+
[o]: { ...i, draft: f }
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}),
|
|
43
|
+
resetFilterDraft: (o, t) => e((r) => {
|
|
44
|
+
const i = r.filterPopovers[o] ?? l;
|
|
45
|
+
return {
|
|
46
|
+
filterPopovers: {
|
|
47
|
+
...r.filterPopovers,
|
|
48
|
+
[o]: { ...i, draft: t }
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
})
|
|
52
|
+
}));
|
|
53
|
+
export {
|
|
54
|
+
c as DEFAULT_FILTER_SCOPE,
|
|
55
|
+
P as selectFilterPopover,
|
|
56
|
+
u as useTableStore
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=tableStore.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableStore.mjs","sources":["../../../src/lib/nextGenComponents/stores/tableStore.ts"],"sourcesContent":["import type {\n RowSelectionState,\n SortingState,\n ColumnSizingState,\n ColumnFiltersState\n} from '@tanstack/react-table'\nimport { create } from 'zustand'\n\nexport type DraftValues = Record<string, string | string[]>\n\nexport type FilterPopoverState = {\n open: boolean\n draft: DraftValues\n}\n\nexport const DEFAULT_FILTER_SCOPE = 'default'\n\nconst emptyPopoverState: FilterPopoverState = { open: false, draft: {} }\n\ntype TableState = {\n rowSelection: RowSelectionState\n sorting: SortingState\n columnSizing: ColumnSizingState\n globalFilter: string\n columnFilters: ColumnFiltersState\n\n filterPopovers: Record<string, FilterPopoverState>\n\n setRowSelection: (\n selection: RowSelectionState | ((old: RowSelectionState) => RowSelectionState)\n ) => void\n setSorting: (sorting: SortingState | ((old: SortingState) => SortingState)) => void\n setColumnSizing: (\n sizing: ColumnSizingState | ((old: ColumnSizingState) => ColumnSizingState)\n ) => void\n setGlobalFilter: (value: string | ((old: string) => string)) => void\n setColumnFilters: (\n value: ColumnFiltersState | ((old: ColumnFiltersState) => ColumnFiltersState)\n ) => void\n\n getFilterPopover: (scopeId: string) => FilterPopoverState\n setFilterPopoverOpen: (scopeId: string, open: boolean) => void\n setFilterDraft: (\n scopeId: string,\n draft: DraftValues | ((old: DraftValues) => DraftValues)\n ) => void\n resetFilterDraft: (scopeId: string, initial: DraftValues) => void\n}\n\nexport const selectFilterPopover =\n (scopeId: string) =>\n (state: TableState): FilterPopoverState =>\n state.filterPopovers[scopeId] ?? emptyPopoverState\n\nexport const useTableStore = create<TableState>((set, get) => ({\n rowSelection: {},\n sorting: [],\n columnSizing: {},\n globalFilter: '',\n columnFilters: [],\n\n filterPopovers: {},\n\n setRowSelection: selection =>\n set(old => ({\n rowSelection: typeof selection === 'function' ? selection(old.rowSelection) : selection\n })),\n\n setSorting: sorting =>\n set(old => ({\n sorting: typeof sorting === 'function' ? sorting(old.sorting) : sorting\n })),\n\n setColumnSizing: sizing =>\n set(old => ({\n columnSizing: typeof sizing === 'function' ? sizing(old.columnSizing) : sizing\n })),\n\n setGlobalFilter: value =>\n set(old => ({\n globalFilter: typeof value === 'function' ? value(old.globalFilter) : value\n })),\n\n setColumnFilters: value =>\n set(old => ({\n columnFilters: typeof value === 'function' ? value(old.columnFilters) : value\n })),\n\n getFilterPopover: (scopeId: string) => get().filterPopovers[scopeId] ?? emptyPopoverState,\n\n setFilterPopoverOpen: (scopeId, open) =>\n set(old => {\n const prev = old.filterPopovers[scopeId] ?? emptyPopoverState\n return {\n filterPopovers: {\n ...old.filterPopovers,\n [scopeId]: { ...prev, open }\n }\n }\n }),\n\n setFilterDraft: (scopeId, draft) =>\n set(old => {\n const prev = old.filterPopovers[scopeId] ?? emptyPopoverState\n const nextDraft = typeof draft === 'function' ? draft(prev.draft) : draft\n return {\n filterPopovers: {\n ...old.filterPopovers,\n [scopeId]: { ...prev, draft: nextDraft }\n }\n }\n }),\n\n resetFilterDraft: (scopeId, initial) =>\n set(old => {\n const prev = old.filterPopovers[scopeId] ?? emptyPopoverState\n return {\n filterPopovers: {\n ...old.filterPopovers,\n [scopeId]: { ...prev, draft: initial }\n }\n }\n })\n}))\n"],"names":["DEFAULT_FILTER_SCOPE","emptyPopoverState","selectFilterPopover","scopeId","state","useTableStore","create","set","get","selection","old","sorting","sizing","value","open","prev","draft","nextDraft","initial"],"mappings":";AAeO,MAAMA,IAAuB,WAE9BC,IAAwC,EAAE,MAAM,IAAO,OAAO,CAAA,EAAC,GAgCxDC,IACX,CAACC,MACD,CAACC,MACCA,EAAM,eAAeD,CAAO,KAAKF,GAExBI,IAAgBC,EAAmB,CAACC,GAAKC,OAAS;AAAA,EAC7D,cAAc,CAAA;AAAA,EACd,SAAS,CAAA;AAAA,EACT,cAAc,CAAA;AAAA,EACd,cAAc;AAAA,EACd,eAAe,CAAA;AAAA,EAEf,gBAAgB,CAAA;AAAA,EAEhB,iBAAiB,CAAAC,MACfF,EAAI,CAAAG,OAAQ;AAAA,IACV,cAAc,OAAOD,KAAc,aAAaA,EAAUC,EAAI,YAAY,IAAID;AAAA,EAAA,EAC9E;AAAA,EAEJ,YAAY,CAAAE,MACVJ,EAAI,CAAAG,OAAQ;AAAA,IACV,SAAS,OAAOC,KAAY,aAAaA,EAAQD,EAAI,OAAO,IAAIC;AAAA,EAAA,EAChE;AAAA,EAEJ,iBAAiB,CAAAC,MACfL,EAAI,CAAAG,OAAQ;AAAA,IACV,cAAc,OAAOE,KAAW,aAAaA,EAAOF,EAAI,YAAY,IAAIE;AAAA,EAAA,EACxE;AAAA,EAEJ,iBAAiB,CAAAC,MACfN,EAAI,CAAAG,OAAQ;AAAA,IACV,cAAc,OAAOG,KAAU,aAAaA,EAAMH,EAAI,YAAY,IAAIG;AAAA,EAAA,EACtE;AAAA,EAEJ,kBAAkB,CAAAA,MAChBN,EAAI,CAAAG,OAAQ;AAAA,IACV,eAAe,OAAOG,KAAU,aAAaA,EAAMH,EAAI,aAAa,IAAIG;AAAA,EAAA,EACxE;AAAA,EAEJ,kBAAkB,CAACV,MAAoBK,IAAM,eAAeL,CAAO,KAAKF;AAAA,EAExE,sBAAsB,CAACE,GAASW,MAC9BP,EAAI,CAAAG,MAAO;AACT,UAAMK,IAAOL,EAAI,eAAeP,CAAO,KAAKF;AAC5C,WAAO;AAAA,MACL,gBAAgB;AAAA,QACd,GAAGS,EAAI;AAAA,QACP,CAACP,CAAO,GAAG,EAAE,GAAGY,GAAM,MAAAD,EAAA;AAAA,MAAK;AAAA,IAC7B;AAAA,EAEJ,CAAC;AAAA,EAEH,gBAAgB,CAACX,GAASa,MACxBT,EAAI,CAAAG,MAAO;AACT,UAAMK,IAAOL,EAAI,eAAeP,CAAO,KAAKF,GACtCgB,IAAY,OAAOD,KAAU,aAAaA,EAAMD,EAAK,KAAK,IAAIC;AACpE,WAAO;AAAA,MACL,gBAAgB;AAAA,QACd,GAAGN,EAAI;AAAA,QACP,CAACP,CAAO,GAAG,EAAE,GAAGY,GAAM,OAAOE,EAAA;AAAA,MAAU;AAAA,IACzC;AAAA,EAEJ,CAAC;AAAA,EAEH,kBAAkB,CAACd,GAASe,MAC1BX,EAAI,CAAAG,MAAO;AACT,UAAMK,IAAOL,EAAI,eAAeP,CAAO,KAAKF;AAC5C,WAAO;AAAA,MACL,gBAAgB;AAAA,QACd,GAAGS,EAAI;AAAA,QACP,CAACP,CAAO,GAAG,EAAE,GAAGY,GAAM,OAAOG,EAAA;AAAA,MAAQ;AAAA,IACvC;AAAA,EAEJ,CAAC;AACL,EAAE;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type FieldKind = 'text' | 'select' | 'multi-select' | 'number' | 'date';
|
|
2
|
+
export type Option = {
|
|
3
|
+
readonly label: string;
|
|
4
|
+
readonly value: string;
|
|
5
|
+
meta?: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
export type FilterFieldDef<K extends string = string> = {
|
|
8
|
+
key: K;
|
|
9
|
+
label: string;
|
|
10
|
+
kind: FieldKind;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
options?: Option[];
|
|
13
|
+
defaultValue?: string | string[];
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
resolveValue?: (next: string[], prev: string[]) => string[];
|
|
17
|
+
computeDisabled?: (optValue: string, currentValues: string[]) => boolean;
|
|
18
|
+
};
|
|
19
|
+
export type FilterSchema<K extends string> = Record<K, FilterFieldDef<K>>;
|
|
20
|
+
export type FilterValues<K extends string> = Partial<Record<K, string | string[]>>;
|
|
21
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/types/table/filter.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE9E,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IACtD,GAAG,EAAE,CAAC,CAAA;IACN,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAA;IAC3D,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,OAAO,CAAA;CACzE,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;AAEzE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentType, SVGProps } from 'react';
|
|
2
|
+
export type ActionMenuItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
variant?: 'default' | 'danger';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
singleActionAsIcon?: boolean;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rowAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowAction.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/types/table/rowAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type TimeFilterValue = 'any' | '24h' | '7d' | '30d' | 'custom';
|
|
2
|
+
export type TimeFilterOption = {
|
|
3
|
+
value: TimeFilterValue;
|
|
4
|
+
label: string;
|
|
5
|
+
rightIcon?: 'chevron';
|
|
6
|
+
};
|
|
7
|
+
export type CustomDateRange = {
|
|
8
|
+
since: string;
|
|
9
|
+
until: string;
|
|
10
|
+
};
|
|
11
|
+
export type TimeFilterDropdownProps = {
|
|
12
|
+
value?: TimeFilterValue;
|
|
13
|
+
defaultValue?: TimeFilterValue;
|
|
14
|
+
onChange?: (v: TimeFilterValue) => void;
|
|
15
|
+
onCustomRange?: (range: CustomDateRange) => void;
|
|
16
|
+
initialCustomRange?: CustomDateRange;
|
|
17
|
+
presetDateRange?: CustomDateRange;
|
|
18
|
+
options?: TimeFilterOption[];
|
|
19
|
+
startTimeOnly?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
triggerClassName?: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=timeFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeFilter.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/types/table/timeFilter.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,QAAQ,CAAA;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,eAAe,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,eAAe,CAAA;IAC9B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAA;IACvC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IAChD,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const getSupportedLocale: () => string;
|
|
2
|
+
export declare const is12HourFormat: () => boolean;
|
|
3
|
+
export declare const formatLocalDate: (d: Date) => string;
|
|
4
|
+
export declare const parseLocalDate: (text: string) => Date | null;
|
|
5
|
+
/** @deprecated Use formatLocalDate */
|
|
6
|
+
export declare const formatDateDDMMYYYY: (d: Date) => string;
|
|
7
|
+
/** @deprecated Use parseLocalDate */
|
|
8
|
+
export declare const parseDateDDMMYYYY: (text: string) => Date | null;
|
|
9
|
+
export declare const getDatePlaceholder: () => string;
|
|
10
|
+
export declare const getTimePlaceholder: () => string;
|
|
11
|
+
export declare const getDefaultSinceHour: () => string;
|
|
12
|
+
export declare const getDefaultUntilHour: () => string;
|
|
13
|
+
export declare const buildHalfHourOptions: () => string[];
|
|
14
|
+
/** @deprecated Use buildHalfHourOptions */
|
|
15
|
+
export declare const buildHalfHourOptions12h: () => string[];
|
|
16
|
+
export declare const toUTCISO: (d: Date) => string;
|
|
17
|
+
/** @deprecated Use toUTCISO */
|
|
18
|
+
export declare const toLocalISO: (d: Date) => string;
|
|
19
|
+
export declare const applyHourToDate: (date: Date, hour: string, defaultHour?: string) => Date;
|
|
20
|
+
export declare const isoToLocalDate: (iso: string) => Date | undefined;
|
|
21
|
+
export declare const isoToHour: (iso: string) => string;
|
|
22
|
+
export declare const parseTimeInput: (text: string) => string;
|
|
23
|
+
export declare const formatCustomRangeLabel: (since: string, until?: string) => string;
|
|
24
|
+
//# sourceMappingURL=date.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.utils.d.ts","sourceRoot":"","sources":["../../../src/lib/nextGenComponents/utils/date.utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,QAAO,MAMrC,CAAA;AAED,eAAO,MAAM,cAAc,QAAO,OAC6D,CAAA;AAI/F,eAAO,MAAM,eAAe,GAAI,GAAG,IAAI,KAAG,MAO5B,CAAA;AAEd,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,IAAI,GAAG,IAepD,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,kBAAkB,MA3BI,IAAI,KAAG,MA2BO,CAAA;AAEjD,qCAAqC;AACrC,eAAO,MAAM,iBAAiB,SArBO,MAAM,KAAG,IAAI,GAAG,IAqBN,CAAA;AAE/C,eAAO,MAAM,kBAAkB,QAAO,MAC0B,CAAA;AAEhE,eAAO,MAAM,kBAAkB,QAAO,MAAmD,CAAA;AAEzF,eAAO,MAAM,mBAAmB,QAAO,MAAmD,CAAA;AAE1F,eAAO,MAAM,mBAAmB,QAAO,MAAmD,CAAA;AAI1F,eAAO,MAAM,oBAAoB,QAAO,MAAM,EAK7C,CAAA;AAED,2CAA2C;AAC3C,eAAO,MAAM,uBAAuB,QARI,MAAM,EAQa,CAAA;AAE3D,eAAO,MAAM,QAAQ,GAAI,GAAG,IAAI,KAAG,MAAyB,CAAA;AAE5D,+BAA+B;AAC/B,eAAO,MAAM,UAAU,MAHK,IAAI,KAAG,MAGD,CAAA;AAIlC,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,MAAM,MAAM,EAAE,cAAc,MAAM,KAAG,IAQhF,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,IAAI,GAAG,SAKnD,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,KAAG,MAKvC,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAiB7C,CAAA;AAID,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,MAatE,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { format as i, parse as p } from "date-fns";
|
|
2
|
+
const d = "en-US", s = () => {
|
|
3
|
+
if (typeof navigator > "u") return d;
|
|
4
|
+
const t = /* @__PURE__ */ new Set(["en-GB", "en-US"]);
|
|
5
|
+
return (navigator.languages ?? [navigator.language]).find((r) => t.has(r)) ?? d;
|
|
6
|
+
}, m = () => !!new Intl.DateTimeFormat(s(), { hour: "numeric" }).resolvedOptions().hour12, u = () => m() ? "hh:mm a" : "HH:mm", H = (t) => new Intl.DateTimeFormat(s(), {
|
|
7
|
+
day: "2-digit",
|
|
8
|
+
month: "2-digit",
|
|
9
|
+
year: "numeric",
|
|
10
|
+
numberingSystem: "latn",
|
|
11
|
+
calendar: "gregory"
|
|
12
|
+
}).format(t), T = (t) => {
|
|
13
|
+
const e = t.trim().match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
14
|
+
if (!e) return null;
|
|
15
|
+
const [, n, r, o] = e, a = s() === "en-US", l = parseInt(a ? n : r, 10) - 1, f = parseInt(a ? r : n, 10), g = parseInt(o, 10), c = new Date(g, l, f);
|
|
16
|
+
return c.getFullYear() !== g || c.getMonth() !== l || c.getDate() !== f ? null : c;
|
|
17
|
+
}, A = H, I = T, N = () => s() === "en-US" ? "mm/dd/yyyy" : "dd/mm/yyyy", Y = () => m() ? "hh:mm AM" : "HH:mm", F = () => m() ? "12:00 AM" : "00:00", _ = () => m() ? "11:30 PM" : "23:30", y = 48, L = () => {
|
|
18
|
+
const t = u();
|
|
19
|
+
return Array.from(
|
|
20
|
+
{ length: y },
|
|
21
|
+
(e, n) => i(new Date(2e3, 0, 1, Math.floor(n / 2), n % 2 * 30), t)
|
|
22
|
+
);
|
|
23
|
+
}, w = L, M = (t) => t.toISOString(), U = M, S = ["hh:mm a", "h:mm a", "HH:mm", "H:mm"], b = (t, e, n) => {
|
|
24
|
+
const r = e || n;
|
|
25
|
+
if (!r) return t;
|
|
26
|
+
for (const o of S) {
|
|
27
|
+
const a = p(r, o, t);
|
|
28
|
+
if (!Number.isNaN(a.getTime())) return a;
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}, D = (t) => {
|
|
32
|
+
if (!t) return;
|
|
33
|
+
const e = new Date(t);
|
|
34
|
+
if (!Number.isNaN(e.getTime()))
|
|
35
|
+
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
36
|
+
}, E = (t) => {
|
|
37
|
+
if (!t) return "";
|
|
38
|
+
const e = new Date(t);
|
|
39
|
+
return Number.isNaN(e.getTime()) ? "" : i(new Date(2e3, 0, 1, e.getHours(), e.getMinutes()), u());
|
|
40
|
+
}, P = (t) => {
|
|
41
|
+
const e = t.trim().replace(/\s+/g, " ").replace(/(\d)([AaPp][Mm])/, "$1 $2");
|
|
42
|
+
if (!e) return "";
|
|
43
|
+
const n = new Date(2e3, 0, 1);
|
|
44
|
+
for (const r of S) {
|
|
45
|
+
const o = p(e, r, n);
|
|
46
|
+
if (!Number.isNaN(o.getTime()) && o.getFullYear() === 2e3)
|
|
47
|
+
return i(o, u());
|
|
48
|
+
}
|
|
49
|
+
return "";
|
|
50
|
+
}, h = { month: "short", day: "numeric" }, R = (t, e) => {
|
|
51
|
+
const n = D(t);
|
|
52
|
+
if (!n) return "";
|
|
53
|
+
const r = s(), o = n.toLocaleDateString(r, h);
|
|
54
|
+
if (!e) return o;
|
|
55
|
+
const a = D(e);
|
|
56
|
+
return a ? `${o} - ${a.toLocaleDateString(r, h)}` : o;
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
b as applyHourToDate,
|
|
60
|
+
L as buildHalfHourOptions,
|
|
61
|
+
w as buildHalfHourOptions12h,
|
|
62
|
+
R as formatCustomRangeLabel,
|
|
63
|
+
A as formatDateDDMMYYYY,
|
|
64
|
+
H as formatLocalDate,
|
|
65
|
+
N as getDatePlaceholder,
|
|
66
|
+
F as getDefaultSinceHour,
|
|
67
|
+
_ as getDefaultUntilHour,
|
|
68
|
+
s as getSupportedLocale,
|
|
69
|
+
Y as getTimePlaceholder,
|
|
70
|
+
m as is12HourFormat,
|
|
71
|
+
E as isoToHour,
|
|
72
|
+
D as isoToLocalDate,
|
|
73
|
+
I as parseDateDDMMYYYY,
|
|
74
|
+
T as parseLocalDate,
|
|
75
|
+
P as parseTimeInput,
|
|
76
|
+
U as toLocalISO,
|
|
77
|
+
M as toUTCISO
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=date.utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.utils.mjs","sources":["../../../src/lib/nextGenComponents/utils/date.utils.ts"],"sourcesContent":["import { format, parse } from 'date-fns'\n\nconst DEFAULT_LOCALE = 'en-US'\n\nexport const getSupportedLocale = (): string => {\n if (typeof navigator === 'undefined') return DEFAULT_LOCALE\n const SUPPORTED_LOCALES = new Set(['en-GB', 'en-US'])\n const userLocales = navigator.languages ?? [navigator.language]\n const match = userLocales.find(locale => SUPPORTED_LOCALES.has(locale))\n return match ?? DEFAULT_LOCALE\n}\n\nexport const is12HourFormat = (): boolean =>\n !!new Intl.DateTimeFormat(getSupportedLocale(), { hour: 'numeric' }).resolvedOptions().hour12\n\nconst getTimeFormat = (): string => (is12HourFormat() ? 'hh:mm a' : 'HH:mm')\n\nexport const formatLocalDate = (d: Date): string =>\n new Intl.DateTimeFormat(getSupportedLocale(), {\n day: '2-digit',\n month: '2-digit',\n year: 'numeric',\n numberingSystem: 'latn',\n calendar: 'gregory'\n }).format(d)\n\nexport const parseLocalDate = (text: string): Date | null => {\n const match = text.trim().match(/^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/)\n if (!match) return null\n\n const [, first, second, yearStr] = match\n const isUS = getSupportedLocale() === 'en-US'\n const month = (isUS ? parseInt(first, 10) : parseInt(second, 10)) - 1\n const day = isUS ? parseInt(second, 10) : parseInt(first, 10)\n const year = parseInt(yearStr, 10)\n\n const date = new Date(year, month, day)\n if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {\n return null\n }\n return date\n}\n\n/** @deprecated Use formatLocalDate */\nexport const formatDateDDMMYYYY = formatLocalDate\n\n/** @deprecated Use parseLocalDate */\nexport const parseDateDDMMYYYY = parseLocalDate\n\nexport const getDatePlaceholder = (): string =>\n getSupportedLocale() === 'en-US' ? 'mm/dd/yyyy' : 'dd/mm/yyyy'\n\nexport const getTimePlaceholder = (): string => (is12HourFormat() ? 'hh:mm AM' : 'HH:mm')\n\nexport const getDefaultSinceHour = (): string => (is12HourFormat() ? '12:00 AM' : '00:00')\n\nexport const getDefaultUntilHour = (): string => (is12HourFormat() ? '11:30 PM' : '23:30')\n\nconst HALF_HOUR_SLOTS_PER_DAY = 24 * 2\n\nexport const buildHalfHourOptions = (): string[] => {\n const fmt = getTimeFormat()\n return Array.from({ length: HALF_HOUR_SLOTS_PER_DAY }, (_, i) =>\n format(new Date(2000, 0, 1, Math.floor(i / 2), (i % 2) * 30), fmt)\n )\n}\n\n/** @deprecated Use buildHalfHourOptions */\nexport const buildHalfHourOptions12h = buildHalfHourOptions\n\nexport const toUTCISO = (d: Date): string => d.toISOString()\n\n/** @deprecated Use toUTCISO */\nexport const toLocalISO = toUTCISO\n\nconst TIME_PARSE_FORMATS = ['hh:mm a', 'h:mm a', 'HH:mm', 'H:mm'] as const\n\nexport const applyHourToDate = (date: Date, hour: string, defaultHour?: string): Date => {\n const effectiveHour = hour || defaultHour\n if (!effectiveHour) return date\n for (const fmt of TIME_PARSE_FORMATS) {\n const parsed = parse(effectiveHour, fmt, date)\n if (!Number.isNaN(parsed.getTime())) return parsed\n }\n return date\n}\n\nexport const isoToLocalDate = (iso: string): Date | undefined => {\n if (!iso) return undefined\n const d = new Date(iso)\n if (Number.isNaN(d.getTime())) return undefined\n return new Date(d.getFullYear(), d.getMonth(), d.getDate())\n}\n\nexport const isoToHour = (iso: string): string => {\n if (!iso) return ''\n const d = new Date(iso)\n if (Number.isNaN(d.getTime())) return ''\n return format(new Date(2000, 0, 1, d.getHours(), d.getMinutes()), getTimeFormat())\n}\n\nexport const parseTimeInput = (text: string): string => {\n const trimmed = text\n .trim()\n .replace(/\\s+/g, ' ')\n .replace(/(\\d)([AaPp][Mm])/, '$1 $2')\n if (!trimmed) return ''\n\n const ref = new Date(2000, 0, 1)\n\n for (const fmt of TIME_PARSE_FORMATS) {\n const parsed = parse(trimmed, fmt, ref)\n if (!Number.isNaN(parsed.getTime()) && parsed.getFullYear() === 2000) {\n return format(parsed, getTimeFormat())\n }\n }\n\n return ''\n}\n\nconst SHORT_DATE_FORMAT: Intl.DateTimeFormatOptions = { month: 'short', day: 'numeric' }\n\nexport const formatCustomRangeLabel = (since: string, until?: string): string => {\n const from = isoToLocalDate(since)\n if (!from) return ''\n\n const locale = getSupportedLocale()\n const fromStr = from.toLocaleDateString(locale, SHORT_DATE_FORMAT)\n\n if (!until) return fromStr\n\n const to = isoToLocalDate(until)\n if (!to) return fromStr\n\n return `${fromStr} - ${to.toLocaleDateString(locale, SHORT_DATE_FORMAT)}`\n}\n"],"names":["DEFAULT_LOCALE","getSupportedLocale","SUPPORTED_LOCALES","locale","is12HourFormat","getTimeFormat","formatLocalDate","d","parseLocalDate","text","match","first","second","yearStr","isUS","month","day","year","date","formatDateDDMMYYYY","parseDateDDMMYYYY","getDatePlaceholder","getTimePlaceholder","getDefaultSinceHour","getDefaultUntilHour","HALF_HOUR_SLOTS_PER_DAY","buildHalfHourOptions","fmt","_","i","format","buildHalfHourOptions12h","toUTCISO","toLocalISO","TIME_PARSE_FORMATS","applyHourToDate","hour","defaultHour","effectiveHour","parsed","parse","isoToLocalDate","iso","isoToHour","parseTimeInput","trimmed","ref","SHORT_DATE_FORMAT","formatCustomRangeLabel","since","until","from","fromStr","to"],"mappings":";AAEA,MAAMA,IAAiB,SAEVC,IAAqB,MAAc;AAC9C,MAAI,OAAO,YAAc,IAAa,QAAOD;AAC7C,QAAME,IAAoB,oBAAI,IAAI,CAAC,SAAS,OAAO,CAAC;AAGpD,UAFoB,UAAU,aAAa,CAAC,UAAU,QAAQ,GACpC,KAAK,OAAUA,EAAkB,IAAIC,CAAM,CAAC,KACtDH;AAClB,GAEaI,IAAiB,MAC5B,CAAC,CAAC,IAAI,KAAK,eAAeH,KAAsB,EAAE,MAAM,WAAW,EAAE,kBAAkB,QAEnFI,IAAgB,MAAeD,MAAmB,YAAY,SAEvDE,IAAkB,CAACC,MAC9B,IAAI,KAAK,eAAeN,KAAsB;AAAA,EAC5C,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,UAAU;AACZ,CAAC,EAAE,OAAOM,CAAC,GAEAC,IAAiB,CAACC,MAA8B;AAC3D,QAAMC,IAAQD,EAAK,KAAA,EAAO,MAAM,6BAA6B;AAC7D,MAAI,CAACC,EAAO,QAAO;AAEnB,QAAM,GAAGC,GAAOC,GAAQC,CAAO,IAAIH,GAC7BI,IAAOb,QAAyB,SAChCc,IAAgB,SAAPD,IAAgBH,IAAsBC,GAAf,EAAE,IAA4B,GAC9DI,IAAa,SAAPF,IAAgBF,IAAuBD,GAAf,EAAE,GAChCM,IAAO,SAASJ,GAAS,EAAE,GAE3BK,IAAO,IAAI,KAAKD,GAAMF,GAAOC,CAAG;AACtC,SAAIE,EAAK,kBAAkBD,KAAQC,EAAK,SAAA,MAAeH,KAASG,EAAK,QAAA,MAAcF,IAC1E,OAEFE;AACT,GAGaC,IAAqBb,GAGrBc,IAAoBZ,GAEpBa,IAAqB,MAChCpB,QAAyB,UAAU,eAAe,cAEvCqB,IAAqB,MAAelB,EAAA,IAAmB,aAAa,SAEpEmB,IAAsB,MAAenB,EAAA,IAAmB,aAAa,SAErEoB,IAAsB,MAAepB,EAAA,IAAmB,aAAa,SAE5EqB,IAA0B,IAEnBC,IAAuB,MAAgB;AAClD,QAAMC,IAAMtB,EAAA;AACZ,SAAO,MAAM;AAAA,IAAK,EAAE,QAAQoB,EAAA;AAAA,IAA2B,CAACG,GAAGC,MACzDC,EAAO,IAAI,KAAK,KAAM,GAAG,GAAG,KAAK,MAAMD,IAAI,CAAC,GAAIA,IAAI,IAAK,EAAE,GAAGF,CAAG;AAAA,EAAA;AAErE,GAGaI,IAA0BL,GAE1BM,IAAW,CAACzB,MAAoBA,EAAE,YAAA,GAGlC0B,IAAaD,GAEpBE,IAAqB,CAAC,WAAW,UAAU,SAAS,MAAM,GAEnDC,IAAkB,CAACjB,GAAYkB,GAAcC,MAA+B;AACvF,QAAMC,IAAgBF,KAAQC;AAC9B,MAAI,CAACC,EAAe,QAAOpB;AAC3B,aAAWS,KAAOO,GAAoB;AACpC,UAAMK,IAASC,EAAMF,GAAeX,GAAKT,CAAI;AAC7C,QAAI,CAAC,OAAO,MAAMqB,EAAO,QAAA,CAAS,EAAG,QAAOA;AAAA,EAC9C;AACA,SAAOrB;AACT,GAEauB,IAAiB,CAACC,MAAkC;AAC/D,MAAI,CAACA,EAAK;AACV,QAAMnC,IAAI,IAAI,KAAKmC,CAAG;AACtB,MAAI,QAAO,MAAMnC,EAAE,QAAA,CAAS;AAC5B,WAAO,IAAI,KAAKA,EAAE,YAAA,GAAeA,EAAE,SAAA,GAAYA,EAAE,SAAS;AAC5D,GAEaoC,IAAY,CAACD,MAAwB;AAChD,MAAI,CAACA,EAAK,QAAO;AACjB,QAAMnC,IAAI,IAAI,KAAKmC,CAAG;AACtB,SAAI,OAAO,MAAMnC,EAAE,QAAA,CAAS,IAAU,KAC/BuB,EAAO,IAAI,KAAK,KAAM,GAAG,GAAGvB,EAAE,SAAA,GAAYA,EAAE,WAAA,CAAY,GAAGF,GAAe;AACnF,GAEauC,IAAiB,CAACnC,MAAyB;AACtD,QAAMoC,IAAUpC,EACb,KAAA,EACA,QAAQ,QAAQ,GAAG,EACnB,QAAQ,oBAAoB,OAAO;AACtC,MAAI,CAACoC,EAAS,QAAO;AAErB,QAAMC,IAAM,IAAI,KAAK,KAAM,GAAG,CAAC;AAE/B,aAAWnB,KAAOO,GAAoB;AACpC,UAAMK,IAASC,EAAMK,GAASlB,GAAKmB,CAAG;AACtC,QAAI,CAAC,OAAO,MAAMP,EAAO,QAAA,CAAS,KAAKA,EAAO,YAAA,MAAkB;AAC9D,aAAOT,EAAOS,GAAQlC,GAAe;AAAA,EAEzC;AAEA,SAAO;AACT,GAEM0C,IAAgD,EAAE,OAAO,SAAS,KAAK,UAAA,GAEhEC,IAAyB,CAACC,GAAeC,MAA2B;AAC/E,QAAMC,IAAOV,EAAeQ,CAAK;AACjC,MAAI,CAACE,EAAM,QAAO;AAElB,QAAMhD,IAASF,EAAA,GACTmD,IAAUD,EAAK,mBAAmBhD,GAAQ4C,CAAiB;AAEjE,MAAI,CAACG,EAAO,QAAOE;AAEnB,QAAMC,IAAKZ,EAAeS,CAAK;AAC/B,SAAKG,IAEE,GAAGD,CAAO,MAAMC,EAAG,mBAAmBlD,GAAQ4C,CAAiB,CAAC,KAFvDK;AAGlB;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DraftValues } from '@/stores/tableStore';
|
|
2
|
+
import type { FilterSchema } from '@/types/table/filter';
|
|
3
|
+
declare const objectValues: <T extends Record<string, unknown>>(obj: T) => Array<T[keyof T]>;
|
|
4
|
+
declare const buildInitialFromSchema: <K extends string>(schema: FilterSchema<K>) => DraftValues;
|
|
5
|
+
declare const hasActiveFilters: <K extends string>(schema: FilterSchema<K>) => boolean;
|
|
6
|
+
export { objectValues, buildInitialFromSchema, hasActiveFilters };
|
|
7
|
+
//# sourceMappingURL=tableFilters.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableFilters.utils.d.ts","sourceRoot":"","sources":["../../../src/lib/nextGenComponents/utils/tableFilters.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExE,QAAA,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,KAChC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAC9C,CAAA;AAED,QAAA,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,YAAY,CAAC,CAAC,CAAC,KAAG,WAM3E,CAAA;AAQD,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,YAAY,CAAC,CAAC,CAAC,KAAG,OAGrE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const s = (e) => Object.values(e), l = (e) => s(e).reduce((t, r) => (t[r.key] = r.defaultValue ?? (r.kind === "multi-select" ? [] : ""), t), {}), i = (e) => e === void 0 || e === "" || e === "all" ? !1 : Array.isArray(e) ? e.length > 0 && !(e.length === 1 && e[0] === "all") : !0, n = (e) => s(e).some((t) => i(t.defaultValue));
|
|
2
|
+
export {
|
|
3
|
+
l as buildInitialFromSchema,
|
|
4
|
+
n as hasActiveFilters,
|
|
5
|
+
s as objectValues
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=tableFilters.utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableFilters.utils.mjs","sources":["../../../src/lib/nextGenComponents/utils/tableFilters.utils.ts"],"sourcesContent":["import type { DraftValues } from '@/stores/tableStore'\nimport type { FilterFieldDef, FilterSchema } from '@/types/table/filter'\n\nconst objectValues = <T extends Record<string, unknown>>(obj: T) => {\n return Object.values(obj) as Array<T[keyof T]>\n}\n\nconst buildInitialFromSchema = <K extends string>(schema: FilterSchema<K>): DraftValues => {\n const fields = objectValues(schema) as FilterFieldDef<K>[]\n return fields.reduce<DraftValues>((acc, f) => {\n acc[f.key] = f.defaultValue ?? (f.kind === 'multi-select' ? [] : '')\n return acc\n }, {})\n}\n\nconst isActiveValue = (val: string | string[] | undefined): boolean => {\n if (val === undefined || val === '' || val === 'all') return false\n if (Array.isArray(val)) return val.length > 0 && !(val.length === 1 && val[0] === 'all')\n return true\n}\n\nconst hasActiveFilters = <K extends string>(schema: FilterSchema<K>): boolean => {\n const fields = objectValues(schema) as FilterFieldDef<K>[]\n return fields.some(field => isActiveValue(field.defaultValue))\n}\n\nexport { objectValues, buildInitialFromSchema, hasActiveFilters }\n"],"names":["objectValues","obj","buildInitialFromSchema","schema","acc","f","isActiveValue","val","hasActiveFilters","field"],"mappings":"AAGA,MAAMA,IAAe,CAAoCC,MAChD,OAAO,OAAOA,CAAG,GAGpBC,IAAyB,CAAmBC,MACjCH,EAAaG,CAAM,EACpB,OAAoB,CAACC,GAAKC,OACtCD,EAAIC,EAAE,GAAG,IAAIA,EAAE,iBAAiBA,EAAE,SAAS,iBAAiB,CAAA,IAAK,KAC1DD,IACN,CAAA,CAAE,GAGDE,IAAgB,CAACC,MACjBA,MAAQ,UAAaA,MAAQ,MAAMA,MAAQ,QAAc,KACzD,MAAM,QAAQA,CAAG,IAAUA,EAAI,SAAS,KAAK,EAAEA,EAAI,WAAW,KAAKA,EAAI,CAAC,MAAM,SAC3E,IAGHC,IAAmB,CAAmBL,MAC3BH,EAAaG,CAAM,EACpB,KAAK,CAAAM,MAASH,EAAcG,EAAM,YAAY,CAAC;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const setNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "notification/setNotification">;
|
|
2
2
|
export const removeNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "notification/removeNotification">;
|
|
3
3
|
declare const _default: import("redux").Reducer<{
|
|
4
|
-
notification:
|
|
4
|
+
notification: never[];
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=notificationReducer.d.ts.map
|