@codezee/sixtify-brahma 0.2.207 → 0.2.209
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/package.json +16 -2
- package/packages/shared-components/dist/ActionButtons/ActionButtons.d.ts +1 -1
- package/packages/shared-components/dist/ActionButtons/ActionButtons.d.ts.map +1 -1
- package/packages/shared-components/dist/Button/SplitButton.d.ts +1 -1
- package/packages/shared-components/dist/Button/SplitButton.d.ts.map +1 -1
- package/packages/shared-components/dist/Card/CardItem/CardItem.d.ts +1 -1
- package/packages/shared-components/dist/Card/CardItem/CardItem.d.ts.map +1 -1
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCard.d.ts.map +1 -1
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCardItem/ProfileCardBody.d.ts.map +1 -1
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCardItem/ProfileCardHeader.d.ts +1 -1
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCardItem/ProfileCardHeader.d.ts.map +1 -1
- package/packages/shared-components/dist/CellSelectionTable/utils/types.d.ts +1 -1
- package/packages/shared-components/dist/CellSelectionTable/utils/types.d.ts.map +1 -1
- package/packages/shared-components/dist/FilterList/FilterPopup.d.ts +1 -1
- package/packages/shared-components/dist/FilterList/FilterPopup.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/CheckBox/CheckBox.styled.d.ts +1 -1
- package/packages/shared-components/dist/FormFields/CheckBox/CheckBox.styled.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/FileUpload.styled.d.ts +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/FileUpload.styled.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/Rating/Ratting.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/Rating/types.d.ts +1 -1
- package/packages/shared-components/dist/FormFields/Rating/types.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/TextField/TextField.d.ts.map +1 -1
- package/packages/shared-components/dist/Layouts/FormRow/FormRow.styled.d.ts +1 -1
- package/packages/shared-components/dist/Layouts/FormRow/FormRow.styled.d.ts.map +1 -1
- package/packages/shared-components/dist/TabBar/Tab.d.ts.map +1 -1
- package/packages/shared-components/dist/Toast/Toaster.styled.d.ts.map +1 -1
- package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.d.ts +1 -1
- package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.d.ts.map +1 -1
- package/packages/shared-components/dist/index.cjs.js +2 -0
- package/packages/shared-components/dist/index.cjs.js.map +1 -0
- package/packages/shared-components/dist/index.esm.js +2 -0
- package/packages/shared-components/dist/index.esm.js.map +1 -0
- package/packages/shared-components/dist/ActionButtons/ActionButtons.js +0 -102
- package/packages/shared-components/dist/ActionButtons/FormActionButton.js +0 -49
- package/packages/shared-components/dist/ActionButtons/index.js +0 -19
- package/packages/shared-components/dist/ActionButtons/types.js +0 -2
- package/packages/shared-components/dist/Actions/AddIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/CalendarIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ColumnIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ConfigureIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/CurrentLocationAction.js +0 -14
- package/packages/shared-components/dist/Actions/DeleteIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/DownloadIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/DownloadPrintAction.js +0 -14
- package/packages/shared-components/dist/Actions/EditIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ExportIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/FilterIconAction.js +0 -15
- package/packages/shared-components/dist/Actions/HistoryIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ImportIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/InboxIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/KeyBoardIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ProcessIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ViewDetailsIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/ViewIconAction.js +0 -14
- package/packages/shared-components/dist/Actions/index.js +0 -34
- package/packages/shared-components/dist/AgGrid/ActionCell/ActionButtonsWrapper.js +0 -134
- package/packages/shared-components/dist/AgGrid/ActionCell/ActionCell.js +0 -39
- package/packages/shared-components/dist/AgGrid/ActionCell/Popover.js +0 -22
- package/packages/shared-components/dist/AgGrid/ActionCell/index.js +0 -18
- package/packages/shared-components/dist/AgGrid/AgGrid.js +0 -179
- package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.js +0 -69
- package/packages/shared-components/dist/AgGrid/LoadingCell.js +0 -12
- package/packages/shared-components/dist/AgGrid/LoadingOverlay.js +0 -15
- package/packages/shared-components/dist/AgGrid/NoDataOverlay.js +0 -14
- package/packages/shared-components/dist/AgGrid/RedirectionCell/RedirectionCell.js +0 -123
- package/packages/shared-components/dist/AgGrid/RedirectionCell/index.js +0 -17
- package/packages/shared-components/dist/AgGrid/hooks/index.js +0 -23
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridCheckBoxSelection.js +0 -161
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridFilteredData.js +0 -22
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridKeyboardShortcuts.js +0 -173
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridRowSelectionConfig.js +0 -63
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridSelection.js +0 -326
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridSummaryRow.js +0 -159
- package/packages/shared-components/dist/AgGrid/hooks/useAgGridSummaryRowUpdate.js +0 -33
- package/packages/shared-components/dist/AgGrid/hooks/useCellEnterClick.js +0 -71
- package/packages/shared-components/dist/AgGrid/index.js +0 -25
- package/packages/shared-components/dist/AgGrid/registerAgGridModules.js +0 -4
- package/packages/shared-components/dist/AgGrid/types/agGrid.js +0 -2
- package/packages/shared-components/dist/AgGrid/types/agSummaryTypes.js +0 -2
- package/packages/shared-components/dist/AgGrid/types/index.js +0 -18
- package/packages/shared-components/dist/AgGrid/utils/ag-grid-custom-filter.js +0 -108
- package/packages/shared-components/dist/AgGrid/utils/extractPrefixedValue.js +0 -15
- package/packages/shared-components/dist/AgGrid/utils/index.js +0 -18
- package/packages/shared-components/dist/AppBar/AppBar.js +0 -17
- package/packages/shared-components/dist/AppBar/AppBar.styled.js +0 -46
- package/packages/shared-components/dist/AppBar/index.js +0 -5
- package/packages/shared-components/dist/Badge/Badge.js +0 -19
- package/packages/shared-components/dist/Badge/index.js +0 -17
- package/packages/shared-components/dist/Breadcrumbs/Breadcrumb.styled.js +0 -95
- package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.js +0 -30
- package/packages/shared-components/dist/Breadcrumbs/index.js +0 -17
- package/packages/shared-components/dist/Button/ActionButton.js +0 -22
- package/packages/shared-components/dist/Button/Button.js +0 -32
- package/packages/shared-components/dist/Button/ButtonGroup.js +0 -18
- package/packages/shared-components/dist/Button/SplitButton.js +0 -117
- package/packages/shared-components/dist/Button/index.js +0 -20
- package/packages/shared-components/dist/Card/AttendanceCard.js +0 -27
- package/packages/shared-components/dist/Card/Card.js +0 -17
- package/packages/shared-components/dist/Card/CardItem/CardItem.js +0 -12
- package/packages/shared-components/dist/Card/CardItem/CardItemValue.js +0 -27
- package/packages/shared-components/dist/Card/CardItem/index.js +0 -18
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCard.js +0 -15
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCardItem/ProfileCardBody.js +0 -18
- package/packages/shared-components/dist/Card/ProfileCard/ProfileCardItem/ProfileCardHeader.js +0 -21
- package/packages/shared-components/dist/Card/index.js +0 -22
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.js +0 -478
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.js +0 -34
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/TableBodyLoader.js +0 -16
- package/packages/shared-components/dist/CellSelectionTable/hook/useOutsideClick.js +0 -48
- package/packages/shared-components/dist/CellSelectionTable/hook/useSorting.js +0 -68
- package/packages/shared-components/dist/CellSelectionTable/hook/useStickyColumns.js +0 -29
- package/packages/shared-components/dist/CellSelectionTable/index.js +0 -20
- package/packages/shared-components/dist/CellSelectionTable/utils/employeeSelectionUtils.js +0 -97
- package/packages/shared-components/dist/CellSelectionTable/utils/helper.js +0 -159
- package/packages/shared-components/dist/CellSelectionTable/utils/index.js +0 -17
- package/packages/shared-components/dist/CellSelectionTable/utils/sortUtils.js +0 -84
- package/packages/shared-components/dist/CellSelectionTable/utils/types.js +0 -2
- package/packages/shared-components/dist/Charts/BarChart.js +0 -32
- package/packages/shared-components/dist/Charts/LineChart.js +0 -51
- package/packages/shared-components/dist/Charts/PieChart.js +0 -49
- package/packages/shared-components/dist/Charts/Skeleton.js +0 -28
- package/packages/shared-components/dist/Charts/index.js +0 -19
- package/packages/shared-components/dist/Chips/Chip.js +0 -13
- package/packages/shared-components/dist/Chips/ChipWithBorder.js +0 -28
- package/packages/shared-components/dist/Chips/FilterPill.js +0 -42
- package/packages/shared-components/dist/Chips/index.js +0 -19
- package/packages/shared-components/dist/ColumnArranger/ColumnArranger.js +0 -18
- package/packages/shared-components/dist/ColumnArranger/ColumnArrangerDialog.js +0 -28
- package/packages/shared-components/dist/ColumnArranger/ColumnArrangerForm.js +0 -44
- package/packages/shared-components/dist/ColumnArranger/ColumnItem.js +0 -17
- package/packages/shared-components/dist/ColumnArranger/LockedColumnItem.js +0 -17
- package/packages/shared-components/dist/ColumnArranger/hooks/useRefinedColumns.js +0 -18
- package/packages/shared-components/dist/ColumnArranger/index.js +0 -9
- package/packages/shared-components/dist/ContentBox/ContentBox.js +0 -21
- package/packages/shared-components/dist/ContentBox/index.js +0 -17
- package/packages/shared-components/dist/Dialog/BottomDialog.js +0 -13
- package/packages/shared-components/dist/Dialog/BottomDialog.styled.js +0 -26
- package/packages/shared-components/dist/Dialog/DeleteDialog.js +0 -25
- package/packages/shared-components/dist/Dialog/Dialog.js +0 -35
- package/packages/shared-components/dist/Dialog/SaveDialog.js +0 -20
- package/packages/shared-components/dist/Dialog/index.js +0 -20
- package/packages/shared-components/dist/Drawer/Bullet.js +0 -15
- package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItem.js +0 -30
- package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItemList.js +0 -57
- package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.js +0 -49
- package/packages/shared-components/dist/Drawer/CloseDrawer/Popover.js +0 -26
- package/packages/shared-components/dist/Drawer/CloseDrawer/Popper.js +0 -33
- package/packages/shared-components/dist/Drawer/Drawer.js +0 -29
- package/packages/shared-components/dist/Drawer/Drawer.styled.js +0 -58
- package/packages/shared-components/dist/Drawer/MenuItem.js +0 -32
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerCollapse.js +0 -12
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItem.js +0 -21
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.js +0 -129
- package/packages/shared-components/dist/Drawer/index.js +0 -17
- package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.js +0 -42
- package/packages/shared-components/dist/FilterList/FilterList.js +0 -97
- package/packages/shared-components/dist/FilterList/FilterListV2.js +0 -440
- package/packages/shared-components/dist/FilterList/FilterPopup.js +0 -72
- package/packages/shared-components/dist/FilterList/FilterPopupWrapper.js +0 -30
- package/packages/shared-components/dist/FilterList/FilterTypeWrapper.js +0 -18
- package/packages/shared-components/dist/FilterList/GetFilterPopupComponent.js +0 -40
- package/packages/shared-components/dist/FilterList/getFormData.js +0 -27
- package/packages/shared-components/dist/FilterList/index.js +0 -23
- package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.js +0 -508
- package/packages/shared-components/dist/FormFields/Autocomplete/AvatarCell.js +0 -16
- package/packages/shared-components/dist/FormFields/Autocomplete/Chip.styled.js +0 -34
- package/packages/shared-components/dist/FormFields/Autocomplete/ChipV2.styled.js +0 -23
- package/packages/shared-components/dist/FormFields/Autocomplete/Skeleton.js +0 -17
- package/packages/shared-components/dist/FormFields/Autocomplete/Tags.js +0 -18
- package/packages/shared-components/dist/FormFields/Autocomplete/index.js +0 -17
- package/packages/shared-components/dist/FormFields/CheckBox/CheckBox.js +0 -43
- package/packages/shared-components/dist/FormFields/CheckBox/CheckBox.styled.js +0 -59
- package/packages/shared-components/dist/FormFields/CheckBox/Skeleton.js +0 -12
- package/packages/shared-components/dist/FormFields/CheckBox/index.js +0 -17
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.js +0 -245
- package/packages/shared-components/dist/FormFields/DatePicker/Skeleton.js +0 -17
- package/packages/shared-components/dist/FormFields/DatePicker/index.js +0 -17
- package/packages/shared-components/dist/FormFields/DateRangePicker/DateRangePicker.js +0 -45
- package/packages/shared-components/dist/FormFields/DateRangePicker/Skeleton.js +0 -21
- package/packages/shared-components/dist/FormFields/DateRangePicker/index.js +0 -17
- package/packages/shared-components/dist/FormFields/DateRangeSelector/DateRangeSelector.js +0 -59
- package/packages/shared-components/dist/FormFields/DateRangeSelector/index.js +0 -17
- package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.js +0 -211
- package/packages/shared-components/dist/FormFields/DateTimePicker/Skeleton.js +0 -17
- package/packages/shared-components/dist/FormFields/DateTimePicker/index.js +0 -17
- package/packages/shared-components/dist/FormFields/DecimalTextField/DecimalTextField.js +0 -186
- package/packages/shared-components/dist/FormFields/DecimalTextField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.js +0 -202
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.js +0 -34
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/index.js +0 -18
- package/packages/shared-components/dist/FormFields/FileUpload/DownloadAction.js +0 -17
- package/packages/shared-components/dist/FormFields/FileUpload/FileNames.js +0 -44
- package/packages/shared-components/dist/FormFields/FileUpload/FileUpload.js +0 -190
- package/packages/shared-components/dist/FormFields/FileUpload/FileUpload.styled.js +0 -23
- package/packages/shared-components/dist/FormFields/FileUpload/Skeleton.js +0 -17
- package/packages/shared-components/dist/FormFields/FileUpload/index.js +0 -20
- package/packages/shared-components/dist/FormFields/ImageUpload/ImageUpload.js +0 -132
- package/packages/shared-components/dist/FormFields/ImageUpload/ImageUpload.styled.js +0 -23
- package/packages/shared-components/dist/FormFields/ImageUpload/ImageUploadView.js +0 -73
- package/packages/shared-components/dist/FormFields/ImageUpload/PhotoCaptureDialog.js +0 -36
- package/packages/shared-components/dist/FormFields/ImageUpload/Skeleton.js +0 -19
- package/packages/shared-components/dist/FormFields/ImageUpload/index.js +0 -18
- package/packages/shared-components/dist/FormFields/ListItemButton/ListItemButton.js +0 -37
- package/packages/shared-components/dist/FormFields/ListItemButton/ListItemButton.styled.js +0 -24
- package/packages/shared-components/dist/FormFields/ListItemButton/index.js +0 -17
- package/packages/shared-components/dist/FormFields/PasswordField/PasswordField.js +0 -24
- package/packages/shared-components/dist/FormFields/PasswordField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/PhoneInputField/PhoneInputField.js +0 -134
- package/packages/shared-components/dist/FormFields/PhoneInputField/PhoneInputField.styled.js +0 -219
- package/packages/shared-components/dist/FormFields/PhoneInputField/Skeleton.js +0 -18
- package/packages/shared-components/dist/FormFields/PhoneInputField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/RadioGroupField/RadioGroupField.js +0 -89
- package/packages/shared-components/dist/FormFields/RadioGroupField/Skeleton.js +0 -13
- package/packages/shared-components/dist/FormFields/RadioGroupField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/Rating/Ratting.js +0 -27
- package/packages/shared-components/dist/FormFields/Rating/Skeleton.js +0 -18
- package/packages/shared-components/dist/FormFields/Rating/index.js +0 -17
- package/packages/shared-components/dist/FormFields/Rating/types.js +0 -2
- package/packages/shared-components/dist/FormFields/SearchField/SearchField.js +0 -29
- package/packages/shared-components/dist/FormFields/SearchField/StickySearchField.js +0 -20
- package/packages/shared-components/dist/FormFields/SearchField/index.js +0 -18
- package/packages/shared-components/dist/FormFields/Select/Select.js +0 -264
- package/packages/shared-components/dist/FormFields/Select/Select.styled.js +0 -49
- package/packages/shared-components/dist/FormFields/Select/index.js +0 -17
- package/packages/shared-components/dist/FormFields/SwitchField/Skeleton.js +0 -12
- package/packages/shared-components/dist/FormFields/SwitchField/SwitchField.js +0 -103
- package/packages/shared-components/dist/FormFields/SwitchField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/TextField/Skeleton.js +0 -18
- package/packages/shared-components/dist/FormFields/TextField/TextField.js +0 -133
- package/packages/shared-components/dist/FormFields/TextField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/TimeField/Skeleton.js +0 -17
- package/packages/shared-components/dist/FormFields/TimeField/TimeField.js +0 -81
- package/packages/shared-components/dist/FormFields/TimeField/index.js +0 -17
- package/packages/shared-components/dist/FormFields/TimePicker/Skeleton.js +0 -17
- package/packages/shared-components/dist/FormFields/TimePicker/TimePicker.js +0 -164
- package/packages/shared-components/dist/FormFields/TimePicker/index.js +0 -17
- package/packages/shared-components/dist/FormFields/commonStyles.js +0 -70
- package/packages/shared-components/dist/FormFields/index.js +0 -36
- package/packages/shared-components/dist/HighlightedText/HighlightedText.js +0 -29
- package/packages/shared-components/dist/HighlightedText/index.js +0 -17
- package/packages/shared-components/dist/Indicator/Indicator.js +0 -13
- package/packages/shared-components/dist/Indicator/SeverityIndicator.js +0 -21
- package/packages/shared-components/dist/Indicator/index.js +0 -18
- package/packages/shared-components/dist/Layouts/ButtonContainer.js +0 -15
- package/packages/shared-components/dist/Layouts/FilePreviewContainer.js +0 -11
- package/packages/shared-components/dist/Layouts/FormContainer.js +0 -12
- package/packages/shared-components/dist/Layouts/FormGridLayout.js +0 -21
- package/packages/shared-components/dist/Layouts/FormRow/FormRow.js +0 -9
- package/packages/shared-components/dist/Layouts/FormRow/FormRow.styled.js +0 -31
- package/packages/shared-components/dist/Layouts/FormRow/index.js +0 -5
- package/packages/shared-components/dist/Layouts/FormSection.js +0 -16
- package/packages/shared-components/dist/Layouts/GridProvider.js +0 -17
- package/packages/shared-components/dist/Layouts/MasterPageLayout.js +0 -30
- package/packages/shared-components/dist/Layouts/index.js +0 -24
- package/packages/shared-components/dist/Loader/FacebookCircularProgress.js +0 -23
- package/packages/shared-components/dist/Loader/index.js +0 -17
- package/packages/shared-components/dist/PadBox/PadBox.js +0 -17
- package/packages/shared-components/dist/PadBox/index.js +0 -17
- package/packages/shared-components/dist/Pagination/Pagination.js +0 -36
- package/packages/shared-components/dist/Pagination/index.js +0 -17
- package/packages/shared-components/dist/PrintDownloadAction/PrintDownloadActions.js +0 -30
- package/packages/shared-components/dist/PrintDownloadAction/index.js +0 -17
- package/packages/shared-components/dist/SmartGrid/Components/CellRenderer.js +0 -55
- package/packages/shared-components/dist/SmartGrid/Components/CircularLoader.js +0 -19
- package/packages/shared-components/dist/SmartGrid/Components/ColumnChooser/ColumnArranger.js +0 -49
- package/packages/shared-components/dist/SmartGrid/Components/ColumnChooser/ColumnArrangerDialog.js +0 -117
- package/packages/shared-components/dist/SmartGrid/Components/ColumnChooser/ColumnArrangerForm.js +0 -47
- package/packages/shared-components/dist/SmartGrid/Components/ColumnChooser/ColumnItem.js +0 -122
- package/packages/shared-components/dist/SmartGrid/Components/ColumnChooser/LockedColumnItem.js +0 -17
- package/packages/shared-components/dist/SmartGrid/Components/ColumnChooser/hooks/useRefinedColumns.js +0 -24
- package/packages/shared-components/dist/SmartGrid/Components/DataNotFound.js +0 -16
- package/packages/shared-components/dist/SmartGrid/Components/EditableFields/SmartSelectField.js +0 -58
- package/packages/shared-components/dist/SmartGrid/Components/EditableFields/SmartTextField.js +0 -59
- package/packages/shared-components/dist/SmartGrid/Components/EditableFields/SmartTooltip.js +0 -113
- package/packages/shared-components/dist/SmartGrid/Components/EditableFields/index.js +0 -19
- package/packages/shared-components/dist/SmartGrid/Components/FacetedFilter/FacetedFilter.js +0 -195
- package/packages/shared-components/dist/SmartGrid/Components/FacetedFilter/VirtualCheckboxList.js +0 -117
- package/packages/shared-components/dist/SmartGrid/Components/FacetedFilter/hooks/useGetDynamicOptionData.js +0 -39
- package/packages/shared-components/dist/SmartGrid/Components/FilterStatusPanel.js +0 -89
- package/packages/shared-components/dist/SmartGrid/Components/Grouped/GroupAreaOverlay.js +0 -101
- package/packages/shared-components/dist/SmartGrid/Components/Grouped/GroupChip.js +0 -73
- package/packages/shared-components/dist/SmartGrid/Components/Grouped/GroupedColumn.js +0 -64
- package/packages/shared-components/dist/SmartGrid/Components/Grouped/GroupedPanel.js +0 -62
- package/packages/shared-components/dist/SmartGrid/Components/HeaderCells/DraggableHeaderCell.js +0 -15
- package/packages/shared-components/dist/SmartGrid/Components/HeaderCells/DraggableHeaderGroupRows.js +0 -28
- package/packages/shared-components/dist/SmartGrid/Components/HeaderCells/HeaderCell.js +0 -114
- package/packages/shared-components/dist/SmartGrid/Components/IndeterminateCheckbox.js +0 -25
- package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/DateRangeInput/DateRangeInput.js +0 -127
- package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/DateRangeInput/StyleDateRangeWrapper.js +0 -120
- package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/DebouncedInput.js +0 -38
- package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/GetRenderInputs.js +0 -76
- package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/SearchFilterRow.js +0 -34
- package/packages/shared-components/dist/SmartGrid/Components/SmartAlignments.js +0 -63
- package/packages/shared-components/dist/SmartGrid/Components/SmartButton.js +0 -21
- package/packages/shared-components/dist/SmartGrid/Components/SmartDialog.js +0 -42
- package/packages/shared-components/dist/SmartGrid/Components/SmartSwitch.js +0 -53
- package/packages/shared-components/dist/SmartGrid/Components/Svgs/HideIcon.js +0 -6
- package/packages/shared-components/dist/SmartGrid/Components/TableFooterComponent/TableFooterComponent.js +0 -30
- package/packages/shared-components/dist/SmartGrid/Components/TableFooterComponent/components/FooterCell.js +0 -42
- package/packages/shared-components/dist/SmartGrid/Components/TableRowComponent.js +0 -224
- package/packages/shared-components/dist/SmartGrid/Components/index.js +0 -17
- package/packages/shared-components/dist/SmartGrid/SmartGrid.js +0 -415
- package/packages/shared-components/dist/SmartGrid/context/CellSelectionContext.js +0 -18
- package/packages/shared-components/dist/SmartGrid/exportUtils/helper.js +0 -90
- package/packages/shared-components/dist/SmartGrid/exportUtils/index.js +0 -18
- package/packages/shared-components/dist/SmartGrid/exportUtils/types.js +0 -2
- package/packages/shared-components/dist/SmartGrid/hooks/index.js +0 -17
- package/packages/shared-components/dist/SmartGrid/hooks/useCellSelection.js +0 -207
- package/packages/shared-components/dist/SmartGrid/hooks/useCopyToClipboard.js +0 -80
- package/packages/shared-components/dist/SmartGrid/hooks/useExportToExcel.js +0 -241
- package/packages/shared-components/dist/SmartGrid/hooks/useGetColumnWidth.js +0 -65
- package/packages/shared-components/dist/SmartGrid/hooks/useGetDragMethods.js +0 -101
- package/packages/shared-components/dist/SmartGrid/hooks/useGetFacetedFilter.js +0 -116
- package/packages/shared-components/dist/SmartGrid/hooks/useGetGroupedColumn.js +0 -169
- package/packages/shared-components/dist/SmartGrid/hooks/useGetPinStyle.js +0 -36
- package/packages/shared-components/dist/SmartGrid/hooks/useGetPinningColumns.js +0 -24
- package/packages/shared-components/dist/SmartGrid/hooks/useGetRowSelection.js +0 -92
- package/packages/shared-components/dist/SmartGrid/hooks/useGetSortedColumn.js +0 -23
- package/packages/shared-components/dist/SmartGrid/hooks/useTableState.js +0 -112
- package/packages/shared-components/dist/SmartGrid/index.js +0 -20
- package/packages/shared-components/dist/SmartGrid/types/index.js +0 -2
- package/packages/shared-components/dist/SmartGrid/utils/helper.js +0 -15
- package/packages/shared-components/dist/SmartGrid/utils/summaryCalculations.js +0 -58
- package/packages/shared-components/dist/Stepper/Stepper.js +0 -51
- package/packages/shared-components/dist/Stepper/StepperV2.js +0 -108
- package/packages/shared-components/dist/Stepper/StepperV3.js +0 -33
- package/packages/shared-components/dist/Stepper/index.js +0 -19
- package/packages/shared-components/dist/Svgs/AppLogo/AppLogoMedium.js +0 -8
- package/packages/shared-components/dist/Svgs/AppLogo/AppLogoSmall.js +0 -6
- package/packages/shared-components/dist/Svgs/AppLogo/index.js +0 -18
- package/packages/shared-components/dist/Svgs/ArrowUp.js +0 -6
- package/packages/shared-components/dist/Svgs/ArrowUpRight.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgArrival.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgDeparture.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgHoliday.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgLeaveCalendar.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUnverifieduser.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUser.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgVerifiedUser.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgWeekoffCalendar.js +0 -8
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/index.js +0 -24
- package/packages/shared-components/dist/Svgs/BookMarkSvg.js +0 -6
- package/packages/shared-components/dist/Svgs/Company/CompanyBanner.js +0 -8
- package/packages/shared-components/dist/Svgs/Company/index.js +0 -17
- package/packages/shared-components/dist/Svgs/DownloadSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/Drawer/MasterIcon.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SettingIcon.js +0 -8
- package/packages/shared-components/dist/Svgs/Drawer/SvgBankConfig.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SvgConfiguration.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SvgEmployees.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SvgLetteremplate.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SvgOrganization.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SvgPayroll.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/SvgTransaction.js +0 -6
- package/packages/shared-components/dist/Svgs/Drawer/index.js +0 -25
- package/packages/shared-components/dist/Svgs/FormAction.js +0 -9
- package/packages/shared-components/dist/Svgs/HomePage/AttendanceManagementDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/AttendanceReportDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/BriefcaseSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/BulkOperationsDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/CalendarSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/ChartIconSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/ClockSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/DashboardIconSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/EmployeeManagementDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/EmployeeReportsDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/HolidayCalendarSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/HomePageBanner.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/MiscellaneousManagementDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/PayrollManagementDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/PayrollReportDarkSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/HomePage/index.js +0 -31
- package/packages/shared-components/dist/Svgs/ImportExcelSuccessIcon.js +0 -6
- package/packages/shared-components/dist/Svgs/Inbox/ExitIcon.js +0 -8
- package/packages/shared-components/dist/Svgs/Inbox/LeaveIcon.js +0 -8
- package/packages/shared-components/dist/Svgs/Inbox/LoanIcon.js +0 -8
- package/packages/shared-components/dist/Svgs/Inbox/OvertimeIcon.js +0 -8
- package/packages/shared-components/dist/Svgs/Inbox/SalaryIcon.js +0 -8
- package/packages/shared-components/dist/Svgs/Inbox/index.js +0 -21
- package/packages/shared-components/dist/Svgs/InboxIcon.js +0 -9
- package/packages/shared-components/dist/Svgs/LogoIcon.js +0 -6
- package/packages/shared-components/dist/Svgs/NoDataFoundSvg.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgAccessDenied.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgAdd.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgAddRounded.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgBranches.js +0 -23
- package/packages/shared-components/dist/Svgs/SvgCalendar.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgColumn.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgConfigure.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgCurrentLocation.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgDelete.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgDownload.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgDrop.js +0 -13
- package/packages/shared-components/dist/Svgs/SvgEdit.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgEmail.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgExport.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgFilterList.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgFilteredList.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgHistory.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgHome.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgImport.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgIndicator.js +0 -10
- package/packages/shared-components/dist/Svgs/SvgKeyBoard.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgNoLogo.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgNoSign.js +0 -8
- package/packages/shared-components/dist/Svgs/SvgPageNotFound.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgPhone.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgProfile.js +0 -9
- package/packages/shared-components/dist/Svgs/SvgReGenerate.js +0 -6
- package/packages/shared-components/dist/Svgs/SvgView.js +0 -6
- package/packages/shared-components/dist/Svgs/index.js +0 -60
- package/packages/shared-components/dist/Tab/Skeleton.js +0 -16
- package/packages/shared-components/dist/Tab/Tabs.js +0 -26
- package/packages/shared-components/dist/Tab/index.js +0 -17
- package/packages/shared-components/dist/TabBar/Tab.js +0 -60
- package/packages/shared-components/dist/TabBar/TabBar.js +0 -58
- package/packages/shared-components/dist/TabBar/TabsMenus.js +0 -19
- package/packages/shared-components/dist/TabBar/index.js +0 -9
- package/packages/shared-components/dist/Timeline/AttendanceStatus.js +0 -43
- package/packages/shared-components/dist/Timeline/Timeline.js +0 -89
- package/packages/shared-components/dist/Timeline/TimelineTrackSegments.js +0 -95
- package/packages/shared-components/dist/Timeline/index.js +0 -18
- package/packages/shared-components/dist/Toast/Toast.js +0 -27
- package/packages/shared-components/dist/Toast/ToastBody.js +0 -14
- package/packages/shared-components/dist/Toast/ToastFooterLink.js +0 -13
- package/packages/shared-components/dist/Toast/Toaster.js +0 -10
- package/packages/shared-components/dist/Toast/Toaster.styled.js +0 -73
- package/packages/shared-components/dist/Toast/index.js +0 -7
- package/packages/shared-components/dist/Toast/toasts.js +0 -20
- package/packages/shared-components/dist/Toast/types.js +0 -2
- package/packages/shared-components/dist/Tooltip/Tooltip.js +0 -29
- package/packages/shared-components/dist/Tooltip/index.js +0 -17
- package/packages/shared-components/dist/Tree/DesktopTreeNode.js +0 -22
- package/packages/shared-components/dist/Tree/MobileTreeNode.js +0 -17
- package/packages/shared-components/dist/Tree/Node.js +0 -23
- package/packages/shared-components/dist/Tree/Node.styled.js +0 -31
- package/packages/shared-components/dist/Tree/Tree.js +0 -149
- package/packages/shared-components/dist/Tree/index.js +0 -18
- package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.js +0 -79
- package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.styled.js +0 -38
- package/packages/shared-components/dist/UserProfileMenu/index.js +0 -17
- package/packages/shared-components/dist/codeSnippetBox/CodeSnippetBox.js +0 -51
- package/packages/shared-components/dist/codeSnippetBox/CodeSnippetBox.styled.js +0 -27
- package/packages/shared-components/dist/codeSnippetBox/index.js +0 -17
- package/packages/shared-components/dist/index.js +0 -52
- package/packages/shared-components/dist/utils/CheckboxInput.js +0 -36
- package/packages/shared-components/dist/utils/colorVariant.js +0 -137
- package/packages/shared-components/dist/utils/context/NavigationKeyContext.js +0 -15
- package/packages/shared-components/dist/utils/context/index.js +0 -6
- package/packages/shared-components/dist/utils/date.js +0 -56
- package/packages/shared-components/dist/utils/download.js +0 -13
- package/packages/shared-components/dist/utils/downloadPrintHtml.js +0 -68
- package/packages/shared-components/dist/utils/file.js +0 -24
- package/packages/shared-components/dist/utils/helper.js +0 -50
- package/packages/shared-components/dist/utils/hooks/index.js +0 -20
- package/packages/shared-components/dist/utils/hooks/useAutocompleteScrollToSelected.js +0 -39
- package/packages/shared-components/dist/utils/hooks/useDialogActions.js +0 -14
- package/packages/shared-components/dist/utils/hooks/useFormFieldFocus.js +0 -228
- package/packages/shared-components/dist/utils/hooks/useGetDeviceType.js +0 -24
- package/packages/shared-components/dist/utils/hooks/useGlobalKeyboardShortcut.js +0 -95
- package/packages/shared-components/dist/utils/index.js +0 -30
- package/packages/shared-components/dist/utils/regex.js +0 -20
- package/packages/shared-components/dist/utils/theme/colorPalette.js +0 -309
- package/packages/shared-components/dist/utils/theme/colorPaletteUI.js +0 -29
- package/packages/shared-components/dist/utils/theme/paletteDark.js +0 -11
- package/packages/shared-components/dist/utils/theme/paletteLight.js +0 -31
- package/packages/shared-components/dist/utils/theme/theme.js +0 -377
- package/packages/shared-components/dist/utils/theme/types.js +0 -2
- package/packages/shared-components/dist/utils/theme/typography.js +0 -65
- package/packages/shared-components/dist/utils/types.js +0 -2
- package/packages/shared-components/dist/utils/urlToNestedObject.js +0 -13
package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/GetRenderInputs.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetRenderInputs = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const DateRangeInput_1 = require("./DateRangeInput/DateRangeInput");
|
|
7
|
-
const DebouncedInput_1 = require("./DebouncedInput");
|
|
8
|
-
const GetRenderInputs = ({ filterVariant, header, resetAllFilters, }) => {
|
|
9
|
-
const { columnDef, getFilterValue, setFilterValue } = header.column;
|
|
10
|
-
const { facetedFilter, filterParams, filterVariant: hasFilterVariant, } = columnDef;
|
|
11
|
-
const isCombinedFilter = facetedFilter && hasFilterVariant;
|
|
12
|
-
const rawFilterValue = getFilterValue();
|
|
13
|
-
const combinedFilterValue = isCombinedFilter
|
|
14
|
-
? (rawFilterValue ?? { facets: [], search: "" })
|
|
15
|
-
: undefined;
|
|
16
|
-
const updateCombinedFilter = (updates) => {
|
|
17
|
-
if (isCombinedFilter) {
|
|
18
|
-
setFilterValue({
|
|
19
|
-
...combinedFilterValue,
|
|
20
|
-
...updates,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const getValue = () => isCombinedFilter
|
|
25
|
-
? (combinedFilterValue?.search ?? "")
|
|
26
|
-
: // eslint-disable-next-line sonarjs/no-nested-conditional
|
|
27
|
-
typeof rawFilterValue === "string" ||
|
|
28
|
-
typeof rawFilterValue === "boolean" ||
|
|
29
|
-
typeof rawFilterValue === "number"
|
|
30
|
-
? rawFilterValue
|
|
31
|
-
: "";
|
|
32
|
-
const setValue = (value) => {
|
|
33
|
-
if (isCombinedFilter) {
|
|
34
|
-
return updateCombinedFilter({ search: value.toString() });
|
|
35
|
-
}
|
|
36
|
-
return setFilterValue(value);
|
|
37
|
-
};
|
|
38
|
-
const renderDebouncedInput = (type) => ((0, jsx_runtime_1.jsx)(DebouncedInput_1.DebouncedInput, { onChange: (value) => setValue(resetAllFilters ? "" : value), type: type, value: resetAllFilters ? "" : getValue().toString(), style: { width: "100%" } }));
|
|
39
|
-
const renderSelectInput = () => {
|
|
40
|
-
const options = filterParams?.filterOptions ?? [];
|
|
41
|
-
const value = isCombinedFilter
|
|
42
|
-
? (combinedFilterValue?.search ?? "")
|
|
43
|
-
: // eslint-disable-next-line sonarjs/no-nested-conditional
|
|
44
|
-
typeof rawFilterValue === "string" ||
|
|
45
|
-
typeof rawFilterValue === "boolean" ||
|
|
46
|
-
typeof rawFilterValue === "number"
|
|
47
|
-
? rawFilterValue
|
|
48
|
-
: "";
|
|
49
|
-
const selected = options.find((opt) => opt.value === value) || null;
|
|
50
|
-
const handleChange = (_, newValue) => setValue(newValue ? newValue.value : "");
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { options: options, getOptionLabel: (option) => option.label || "", value: selected, onChange: handleChange, renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, { ...params, variant: "outlined", placeholder: "All", sx: {
|
|
52
|
-
"& .MuiInputBase-root": { height: 28 },
|
|
53
|
-
} })), size: "small", sx: { width: "100%" }, slotProps: {
|
|
54
|
-
paper: {
|
|
55
|
-
sx: {
|
|
56
|
-
"& .MuiAutocomplete-option": { fontSize: 12 },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
} }));
|
|
60
|
-
};
|
|
61
|
-
switch (filterVariant) {
|
|
62
|
-
case "smartTextFilter":
|
|
63
|
-
return renderDebouncedInput("text");
|
|
64
|
-
case "smartNumberFilter":
|
|
65
|
-
return renderDebouncedInput("number");
|
|
66
|
-
case "smartDateFilter":
|
|
67
|
-
return ((0, jsx_runtime_1.jsx)(DateRangeInput_1.DateRangeInput, { width: "100%", initialValue: Array.isArray(rawFilterValue)
|
|
68
|
-
? rawFilterValue
|
|
69
|
-
: undefined, onApply: (dates) => setFilterValue(dates) }));
|
|
70
|
-
case "smartSelectFilter":
|
|
71
|
-
return renderSelectInput();
|
|
72
|
-
default:
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
exports.GetRenderInputs = GetRenderInputs;
|
package/packages/shared-components/dist/SmartGrid/Components/SearchFilterRow/SearchFilterRow.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchFilterRow = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const GetRenderInputs_1 = require("./GetRenderInputs");
|
|
7
|
-
const SearchFilterRow = ({ header, resetAllFilters, }) => {
|
|
8
|
-
const theme = (0, material_1.useTheme)();
|
|
9
|
-
const { iron } = theme.palette.app.color;
|
|
10
|
-
const headerDyanmicWidth = header.column.getIsPinned()
|
|
11
|
-
? header.getSize() - 8
|
|
12
|
-
: header.getSize();
|
|
13
|
-
const columnDef = header.column.columnDef;
|
|
14
|
-
const filterVariant = columnDef.filterVariant;
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("th", { style: {
|
|
16
|
-
backgroundColor: "#fafafb",
|
|
17
|
-
borderBottom: `1px solid ${iron[700]}`,
|
|
18
|
-
height: "40px",
|
|
19
|
-
left: header.column.getIsPinned() === "left"
|
|
20
|
-
? `${header.column.getStart("left")}px`
|
|
21
|
-
: undefined,
|
|
22
|
-
maxWidth: headerDyanmicWidth,
|
|
23
|
-
minWidth: headerDyanmicWidth,
|
|
24
|
-
padding: "0px 8px 0px 8px",
|
|
25
|
-
position: header.column.getIsPinned() ? "sticky" : "relative",
|
|
26
|
-
right: header.column.getIsPinned() === "right"
|
|
27
|
-
? `${header.column.getAfter("right")}px`
|
|
28
|
-
: undefined,
|
|
29
|
-
textAlign: "left",
|
|
30
|
-
width: headerDyanmicWidth,
|
|
31
|
-
zIndex: header.column.getIsPinned() ? 3 : 0,
|
|
32
|
-
}, children: filterVariant ? ((0, jsx_runtime_1.jsx)(GetRenderInputs_1.GetRenderInputs, { filterVariant: filterVariant, header: header, resetAllFilters: resetAllFilters })) : ("-") }));
|
|
33
|
-
};
|
|
34
|
-
exports.SearchFilterRow = SearchFilterRow;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SmartAlignments = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const iconoir_react_1 = require("iconoir-react");
|
|
6
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
7
|
-
const SmartAlignments = ({ name, control, defaultValue, rules, disabled = false, }) => {
|
|
8
|
-
const { field: { value = defaultValue ?? "left", onChange }, } = (0, react_hook_form_1.useController)({
|
|
9
|
-
name,
|
|
10
|
-
control,
|
|
11
|
-
rules,
|
|
12
|
-
});
|
|
13
|
-
const alignments = [
|
|
14
|
-
{
|
|
15
|
-
value: "left",
|
|
16
|
-
icon: (0, jsx_runtime_1.jsx)(iconoir_react_1.AlignLeft, { width: 18, height: 18 }),
|
|
17
|
-
label: "Left",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
value: "center",
|
|
21
|
-
icon: (0, jsx_runtime_1.jsx)(iconoir_react_1.AlignCenter, { width: 18, height: 18 }),
|
|
22
|
-
label: "Center",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
value: "right",
|
|
26
|
-
icon: (0, jsx_runtime_1.jsx)(iconoir_react_1.AlignRight, { width: 18, height: 18 }),
|
|
27
|
-
label: "Right",
|
|
28
|
-
},
|
|
29
|
-
];
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
31
|
-
display: "inline-flex",
|
|
32
|
-
backgroundColor: " #FFFFFF",
|
|
33
|
-
borderRadius: "6px",
|
|
34
|
-
border: "1px solid #E1E3E5",
|
|
35
|
-
}, children: alignments.map(({ value: alignmentValue, icon }) => {
|
|
36
|
-
const Icon = icon;
|
|
37
|
-
const isSelected = value === alignmentValue;
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)("button", { onClick: () => {
|
|
39
|
-
if (!disabled) {
|
|
40
|
-
onChange(alignmentValue);
|
|
41
|
-
}
|
|
42
|
-
}, disabled: disabled, style: {
|
|
43
|
-
padding: "4.5px 10px",
|
|
44
|
-
backgroundColor: "transparent",
|
|
45
|
-
border: "none",
|
|
46
|
-
borderRadius: "4px",
|
|
47
|
-
cursor: disabled ? "not-allowed" : "pointer",
|
|
48
|
-
transition: "background-color 0.15s",
|
|
49
|
-
color: disabled ? "rgb(0, 0, 0, 0.5)" : "rgb(0, 0, 0)",
|
|
50
|
-
display: "flex",
|
|
51
|
-
alignItems: "center",
|
|
52
|
-
justifyContent: "center",
|
|
53
|
-
margin: "0px",
|
|
54
|
-
opacity: disabled ? 0.5 : 1,
|
|
55
|
-
...(isSelected
|
|
56
|
-
? {
|
|
57
|
-
backgroundColor: "rgb(229, 231, 231)",
|
|
58
|
-
}
|
|
59
|
-
: {}),
|
|
60
|
-
}, "aria-label": `Align ${alignmentValue}`, type: "button", children: Icon }, alignmentValue));
|
|
61
|
-
}) }));
|
|
62
|
-
};
|
|
63
|
-
exports.SmartAlignments = SmartAlignments;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SmartButton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const SmartButton = ({ children, style, ...props }) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("button", { ...props, style: {
|
|
7
|
-
flex: 1,
|
|
8
|
-
cursor: "pointer",
|
|
9
|
-
padding: "8px",
|
|
10
|
-
backgroundColor: "white",
|
|
11
|
-
color: "#333",
|
|
12
|
-
border: "1px solid #ddd",
|
|
13
|
-
borderRadius: "4px",
|
|
14
|
-
fontSize: "14px",
|
|
15
|
-
fontWeight: 500,
|
|
16
|
-
transition: "all 0.2s",
|
|
17
|
-
maxWidth: "80px",
|
|
18
|
-
...style,
|
|
19
|
-
}, children: children }));
|
|
20
|
-
};
|
|
21
|
-
exports.SmartButton = SmartButton;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SmartDialog = SmartDialog;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
function SmartDialog({ open, onClose, children, width = 420, actions, }) {
|
|
7
|
-
const dialogRef = (0, react_1.useRef)(null);
|
|
8
|
-
// Sync React state with native dialog
|
|
9
|
-
(0, react_1.useEffect)(() => {
|
|
10
|
-
const dialog = dialogRef.current;
|
|
11
|
-
if (!dialog) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (open && !dialog.open) {
|
|
15
|
-
dialog.showModal();
|
|
16
|
-
}
|
|
17
|
-
if (!open && dialog.open) {
|
|
18
|
-
dialog.close();
|
|
19
|
-
}
|
|
20
|
-
}, [open]);
|
|
21
|
-
return (
|
|
22
|
-
// eslint-disable-next-line sonarjs/mouse-events-a11y
|
|
23
|
-
(0, jsx_runtime_1.jsx)("dialog", { ref: dialogRef, onCancel: (e) => {
|
|
24
|
-
e.preventDefault(); // prevent native auto-close
|
|
25
|
-
onClose();
|
|
26
|
-
}, onClick: (e) => {
|
|
27
|
-
if (e.target == dialogRef.current) {
|
|
28
|
-
onClose();
|
|
29
|
-
}
|
|
30
|
-
}, style: {
|
|
31
|
-
border: "none",
|
|
32
|
-
background: "transparent",
|
|
33
|
-
outline: "none",
|
|
34
|
-
width,
|
|
35
|
-
padding: 0,
|
|
36
|
-
borderRadius: 2,
|
|
37
|
-
backgroundColor: "white",
|
|
38
|
-
boxShadow: "0 0 10px 0 rgba(0, 0, 0, 0.1)",
|
|
39
|
-
}, children: (0, jsx_runtime_1.jsxs)("div", { style: {
|
|
40
|
-
padding: 0,
|
|
41
|
-
}, children: [children, actions] }) }));
|
|
42
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SmartSwitch = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
6
|
-
const SmartSwitch = ({ name, control, defaultValue, rules, label, }) => {
|
|
7
|
-
const { field: { value = false, onChange }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
8
|
-
const handleToggle = () => {
|
|
9
|
-
onChange(!value);
|
|
10
|
-
};
|
|
11
|
-
const containerStyle = {
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
gap: "12px",
|
|
15
|
-
};
|
|
16
|
-
const labelStyle = {
|
|
17
|
-
color: "#374151",
|
|
18
|
-
fontWeight: "500",
|
|
19
|
-
};
|
|
20
|
-
const buttonStyle = {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "42px",
|
|
23
|
-
height: "20px",
|
|
24
|
-
background: "transparent",
|
|
25
|
-
border: "none",
|
|
26
|
-
cursor: "pointer",
|
|
27
|
-
outline: "none",
|
|
28
|
-
padding: "0",
|
|
29
|
-
};
|
|
30
|
-
const trackStyle = {
|
|
31
|
-
position: "absolute",
|
|
32
|
-
top: "0",
|
|
33
|
-
left: "0",
|
|
34
|
-
width: "100%",
|
|
35
|
-
height: "100%",
|
|
36
|
-
borderRadius: "11px",
|
|
37
|
-
backgroundColor: value ? "#38bdf8" : "#e5e7eb",
|
|
38
|
-
transition: "background-color 0.25s ease",
|
|
39
|
-
};
|
|
40
|
-
const circleStyle = {
|
|
41
|
-
position: "absolute",
|
|
42
|
-
top: "2px",
|
|
43
|
-
left: value ? "23px" : "3px",
|
|
44
|
-
width: "18px",
|
|
45
|
-
height: "16px",
|
|
46
|
-
borderRadius: "50%",
|
|
47
|
-
backgroundColor: "#ffffff",
|
|
48
|
-
transition: "left 0.25s ease",
|
|
49
|
-
boxShadow: "0 1px 2px rgba(0, 0, 0, 0.2)",
|
|
50
|
-
};
|
|
51
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: containerStyle, children: [label && (0, jsx_runtime_1.jsx)("span", { style: labelStyle, children: label }), (0, jsx_runtime_1.jsxs)("button", { onClick: handleToggle, style: buttonStyle, role: "switch", "aria-checked": value, type: "button", children: [(0, jsx_runtime_1.jsx)("span", { style: trackStyle }), (0, jsx_runtime_1.jsx)("span", { style: circleStyle })] })] }));
|
|
52
|
-
};
|
|
53
|
-
exports.SmartSwitch = SmartSwitch;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HideIcon = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const HideIcon = (props) => ((0, jsx_runtime_1.jsxs)("svg", { fill: "#000000", width: "800px", height: "800px", viewBox: "0 0 36 36", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", ...props, children: [(0, jsx_runtime_1.jsx)("title", { children: "eye-hide-line" }), (0, jsx_runtime_1.jsx)("path", { d: "M25.19,20.4A6.78,6.78,0,0,0,25.62,18a6.86,6.86,0,0,0-6.86-6.86,6.79,6.79,0,0,0-2.37.43L18,13.23a4.78,4.78,0,0,1,.74-.06A4.87,4.87,0,0,1,23.62,18a4.79,4.79,0,0,1-.06.74Z", className: "clr-i-outline clr-i-outline-path-1" }), (0, jsx_runtime_1.jsx)("path", { d: "M34.29,17.53c-3.37-6.23-9.28-10-15.82-10a16.82,16.82,0,0,0-5.24.85L14.84,10a14.78,14.78,0,0,1,3.63-.47c5.63,0,10.75,3.14,13.8,8.43a17.75,17.75,0,0,1-4.37,5.1l1.42,1.42a19.93,19.93,0,0,0,5-6l.26-.48Z", className: "clr-i-outline clr-i-outline-path-2" }), (0, jsx_runtime_1.jsx)("path", { d: "M4.87,5.78l4.46,4.46a19.52,19.52,0,0,0-6.69,7.29L2.38,18l.26.48c3.37,6.23,9.28,10,15.82,10a16.93,16.93,0,0,0,7.37-1.69l5,5,1.75-1.5-26-26Zm9.75,9.75,6.65,6.65a4.81,4.81,0,0,1-2.5.72A4.87,4.87,0,0,1,13.9,18,4.81,4.81,0,0,1,14.62,15.53Zm-1.45-1.45a6.85,6.85,0,0,0,9.55,9.55l1.6,1.6a14.91,14.91,0,0,1-5.86,1.2c-5.63,0-10.75-3.14-13.8-8.43a17.29,17.29,0,0,1,6.12-6.3Z", className: "clr-i-outline clr-i-outline-path-3" }), (0, jsx_runtime_1.jsx)("rect", { x: 0, y: 0, width: 36, height: 36, fillOpacity: 0 })] }));
|
|
6
|
-
exports.HideIcon = HideIcon;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableFooterComponent = TableFooterComponent;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const FooterCell_1 = require("./components/FooterCell");
|
|
7
|
-
function TableFooterComponent({ summary, table, }) {
|
|
8
|
-
const theme = (0, material_1.useTheme)();
|
|
9
|
-
const allColumns = table.getVisibleLeafColumns();
|
|
10
|
-
const leftPinnedColumns = allColumns.filter((col) => col.getIsPinned() === "left");
|
|
11
|
-
const centerColumns = allColumns.filter((col) => !col.getIsPinned());
|
|
12
|
-
const rightPinnedColumns = allColumns.filter((col) => col.getIsPinned() === "right");
|
|
13
|
-
const orderedColumns = [
|
|
14
|
-
...leftPinnedColumns,
|
|
15
|
-
...centerColumns,
|
|
16
|
-
...rightPinnedColumns,
|
|
17
|
-
];
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("tfoot", { style: {
|
|
19
|
-
background: theme.palette.background.paper,
|
|
20
|
-
bottom: 0,
|
|
21
|
-
position: "sticky",
|
|
22
|
-
zIndex: 2,
|
|
23
|
-
}, children: (0, jsx_runtime_1.jsx)("tr", { children: orderedColumns.map((col, index) => {
|
|
24
|
-
// Type assertion: columnDef may contain a generic accessorKey of type Path<T>
|
|
25
|
-
const accessorKey = col.columnDef
|
|
26
|
-
?.accessorKey;
|
|
27
|
-
const summaryValue = accessorKey !== undefined ? summary?.[accessorKey] : undefined;
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)(FooterCell_1.FooterCell, { col: col, colIndex: index, orderedColumns: orderedColumns, summaryValue: summaryValue }, `footer-${col.id}`));
|
|
29
|
-
}) }) }));
|
|
30
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FooterCell = FooterCell;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
function FooterCell({ col, colIndex, orderedColumns, summaryValue, }) {
|
|
7
|
-
const theme = (0, material_1.useTheme)();
|
|
8
|
-
const { iron, slate } = theme.palette.app.color;
|
|
9
|
-
const isPinned = col.getIsPinned();
|
|
10
|
-
// Apply pinning styles (same logic as TableRowComponent)
|
|
11
|
-
const pinStyle = {};
|
|
12
|
-
if (isPinned === "left") {
|
|
13
|
-
const nextCol = orderedColumns[colIndex + 1];
|
|
14
|
-
const isLastLeft = !nextCol || nextCol.getIsPinned() !== "left";
|
|
15
|
-
pinStyle.position = "sticky";
|
|
16
|
-
pinStyle.left = col.getStart("left");
|
|
17
|
-
pinStyle.zIndex = 2;
|
|
18
|
-
pinStyle.background = slate[600];
|
|
19
|
-
if (isLastLeft) {
|
|
20
|
-
pinStyle.borderRight = `1px solid ${iron[700]}`;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (isPinned === "right") {
|
|
24
|
-
const prevCol = orderedColumns[colIndex - 1];
|
|
25
|
-
const isFirstRight = !prevCol || prevCol.getIsPinned() !== "right";
|
|
26
|
-
pinStyle.position = "sticky";
|
|
27
|
-
pinStyle.right = col.getAfter("right");
|
|
28
|
-
pinStyle.zIndex = 2;
|
|
29
|
-
pinStyle.background = slate[600];
|
|
30
|
-
if (isFirstRight) {
|
|
31
|
-
pinStyle.borderLeft = `1px solid ${iron[700]}`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)("td", { style: {
|
|
35
|
-
background: "#F8F9FA",
|
|
36
|
-
borderTop: `1px solid ${iron[700]}`,
|
|
37
|
-
fontWeight: 500,
|
|
38
|
-
padding: "8px",
|
|
39
|
-
...pinStyle,
|
|
40
|
-
...summaryValue?.style,
|
|
41
|
-
}, children: summaryValue?.value ?? null }, `footer-${col.id}`));
|
|
42
|
-
}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableRowComponent = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
/* eslint-disable sonarjs/function-return-type */
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const Button_1 = require("../../Button");
|
|
9
|
-
const CellSelectionContext_1 = require("../context/CellSelectionContext");
|
|
10
|
-
const useGetPinStyle_1 = require("../hooks/useGetPinStyle");
|
|
11
|
-
const CellRenderer_1 = require("./CellRenderer");
|
|
12
|
-
const TableRowComponent = ({ columnWidths, exportActions, exportData, grouping = [], index, isSummaryRow = false, row, rowHeight, summaryData, virtualRow, }) => {
|
|
13
|
-
const theme = (0, material_1.useTheme)();
|
|
14
|
-
const { butterflyBlue, iron, mirage, slate } = theme.palette.app.color;
|
|
15
|
-
const cellSelectionContext = (0, CellSelectionContext_1.useCellSelectionContext)();
|
|
16
|
-
const [isRowHovered, setIsRowHovered] = (0, react_1.useState)(false);
|
|
17
|
-
const [activePopupRowId, setActivePopupRowId] = (0, react_1.useState)(null);
|
|
18
|
-
const [popupPosition, setPopupPosition] = (0, react_1.useState)({ left: 0, top: 0 });
|
|
19
|
-
const trRef = (0, react_1.useRef)(null);
|
|
20
|
-
const popupRef = (0, react_1.useRef)(null);
|
|
21
|
-
const { enabled: cellSelectionEnabled, isCellSelected, isCopyFlashing, startCellSelection, updateCellSelection, } = cellSelectionContext;
|
|
22
|
-
const getPinStyle = (0, useGetPinStyle_1.useGetPinStyle)();
|
|
23
|
-
const isRowSelected = row.getIsSelected();
|
|
24
|
-
const getRowBackgroundColor = () => {
|
|
25
|
-
if (isSummaryRow) {
|
|
26
|
-
return slate[600];
|
|
27
|
-
}
|
|
28
|
-
if (isRowHovered && !isSummaryRow) {
|
|
29
|
-
return butterflyBlue[600];
|
|
30
|
-
}
|
|
31
|
-
if (isRowSelected) {
|
|
32
|
-
return butterflyBlue[600];
|
|
33
|
-
}
|
|
34
|
-
return iron[600];
|
|
35
|
-
};
|
|
36
|
-
// Handle right-click (context menu) to open popup
|
|
37
|
-
const handleContextMenu = (e) => {
|
|
38
|
-
if (isSummaryRow) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
e.preventDefault();
|
|
42
|
-
const rect = trRef.current?.getBoundingClientRect();
|
|
43
|
-
if (rect) {
|
|
44
|
-
setPopupPosition({
|
|
45
|
-
left: e.clientX,
|
|
46
|
-
top: e.clientY,
|
|
47
|
-
});
|
|
48
|
-
setActivePopupRowId(row.id);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
// Close popup when clicking outside is managed with useEffect and avoid dupilcate open
|
|
52
|
-
(0, react_1.useMemo)(() => {
|
|
53
|
-
const handleClickOutside = (e) => {
|
|
54
|
-
if (popupRef.current &&
|
|
55
|
-
!popupRef.current.contains(e.target) &&
|
|
56
|
-
trRef.current &&
|
|
57
|
-
!trRef.current.contains(e.target)) {
|
|
58
|
-
setActivePopupRowId(null);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
if (activePopupRowId) {
|
|
62
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
63
|
-
return () => {
|
|
64
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}, [activePopupRowId]);
|
|
68
|
-
const isPopupOpen = activePopupRowId === row.id;
|
|
69
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("tr", { ref: trRef, style: {
|
|
70
|
-
backgroundColor: getRowBackgroundColor(),
|
|
71
|
-
borderTop: `1px solid ${iron[700]}`,
|
|
72
|
-
display: "flex",
|
|
73
|
-
position: virtualRow ? "absolute" : "relative",
|
|
74
|
-
transform: virtualRow
|
|
75
|
-
? `translateY(${virtualRow.start}px)`
|
|
76
|
-
: undefined,
|
|
77
|
-
width: "100%",
|
|
78
|
-
}, onMouseEnter: () => {
|
|
79
|
-
if (!isSummaryRow) {
|
|
80
|
-
setIsRowHovered(true);
|
|
81
|
-
}
|
|
82
|
-
}, onMouseLeave: () => {
|
|
83
|
-
if (!isSummaryRow) {
|
|
84
|
-
setIsRowHovered(false);
|
|
85
|
-
}
|
|
86
|
-
}, onContextMenu: handleContextMenu, children: (() => {
|
|
87
|
-
const visibleCells = row.getVisibleCells();
|
|
88
|
-
// Filter out grouping columns (except the group column) when grouping is enabled
|
|
89
|
-
const cellsToRender = grouping.length > 0
|
|
90
|
-
? visibleCells.filter((cell) => {
|
|
91
|
-
// Keep the group column
|
|
92
|
-
if (cell.column.id === "grouped_by") {
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
// Keep the grouped cell for grouped rows (this shows the expand/collapse and group label)
|
|
96
|
-
if (cell.getIsGrouped()) {
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
// Filter out grouping columns - check both if cell is grouped AND if column ID is in grouping array
|
|
100
|
-
const columnId = cell.column.id;
|
|
101
|
-
const accessorKey = cell.column.columnDef?.accessorKey;
|
|
102
|
-
const isGroupingColumn = grouping.includes(columnId) ||
|
|
103
|
-
(accessorKey && grouping.includes(accessorKey));
|
|
104
|
-
return !isGroupingColumn;
|
|
105
|
-
})
|
|
106
|
-
: visibleCells;
|
|
107
|
-
// Check if this is a grouped row (has grouping header)
|
|
108
|
-
const isGroupedRow = row.getIsGrouped();
|
|
109
|
-
// For grouped rows, render a single cell that spans all columns
|
|
110
|
-
if (isGroupedRow && cellsToRender.length > 0) {
|
|
111
|
-
const groupedCell = cellsToRender.find((c) => c.getIsGrouped());
|
|
112
|
-
if (groupedCell) {
|
|
113
|
-
return ((0, jsx_runtime_1.jsx)("td", { colSpan: cellsToRender.length, style: {
|
|
114
|
-
boxSizing: "border-box",
|
|
115
|
-
lineHeight: "21px",
|
|
116
|
-
overflow: "hidden",
|
|
117
|
-
padding: "0px 8px",
|
|
118
|
-
position: "relative",
|
|
119
|
-
textAlign: "left",
|
|
120
|
-
width: "100%",
|
|
121
|
-
}, children: (0, jsx_runtime_1.jsx)("div", { style: {
|
|
122
|
-
alignItems: "center",
|
|
123
|
-
color: iron[400],
|
|
124
|
-
display: "flex",
|
|
125
|
-
fontFamily: "Poppins",
|
|
126
|
-
fontSize: "13px",
|
|
127
|
-
height: rowHeight,
|
|
128
|
-
justifyContent: "flex-start",
|
|
129
|
-
}, children: (0, jsx_runtime_1.jsx)(CellRenderer_1.CellRenderer, { cell: groupedCell, row: row, isSummaryRow: isSummaryRow, summaryData: summaryData, isGroupColumn: false }) }) }, groupedCell.id));
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return cellsToRender.map((cell, cellIndex, allCells) => {
|
|
133
|
-
const width = columnWidths[cellIndex] ?? cell.column.getSize();
|
|
134
|
-
const pinStyle = getPinStyle(cell, cellIndex, allCells);
|
|
135
|
-
const isSelected = isCellSelected(row.id, cell.column.id);
|
|
136
|
-
const handleMouseDown = (event) => {
|
|
137
|
-
if (cellSelectionEnabled && !isSummaryRow) {
|
|
138
|
-
const isShiftClick = event.shiftKey;
|
|
139
|
-
startCellSelection(row.id, cell.column.id, isShiftClick);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
const handleMouseEnter = () => {
|
|
143
|
-
if (cellSelectionEnabled && !isSummaryRow) {
|
|
144
|
-
updateCellSelection(row.id, cell.column.id);
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
// Apply copy flash animation when cell is selected and flash is active
|
|
148
|
-
const cellBackgroundColor = isSelected && !isCopyFlashing ? butterflyBlue[600] : undefined;
|
|
149
|
-
const cellAnimation = isSelected && isCopyFlashing
|
|
150
|
-
? "copyFlash 0.5s ease-in-out"
|
|
151
|
-
: undefined;
|
|
152
|
-
// Check if this cell is pinned
|
|
153
|
-
const isPinned = cell.column.getIsPinned();
|
|
154
|
-
const finalBackgroundColor = isPinned
|
|
155
|
-
? // eslint-disable-next-line sonarjs/no-nested-conditional
|
|
156
|
-
isSelected && !isCopyFlashing
|
|
157
|
-
? butterflyBlue[600]
|
|
158
|
-
: getRowBackgroundColor()
|
|
159
|
-
: cellBackgroundColor;
|
|
160
|
-
// Get alignment from column definition
|
|
161
|
-
const columnDef = cell.column.columnDef;
|
|
162
|
-
const textAlign = columnDef.align ?? "left";
|
|
163
|
-
let justifyContent;
|
|
164
|
-
if (textAlign === "right") {
|
|
165
|
-
justifyContent = "flex-end";
|
|
166
|
-
}
|
|
167
|
-
else if (textAlign === "center") {
|
|
168
|
-
justifyContent = "center";
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
justifyContent = "flex-start";
|
|
172
|
-
}
|
|
173
|
-
return ((0, jsx_runtime_1.jsx)("td", { onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, style: {
|
|
174
|
-
animation: cellAnimation,
|
|
175
|
-
backgroundColor: finalBackgroundColor,
|
|
176
|
-
boxSizing: "border-box",
|
|
177
|
-
cursor: cellSelectionEnabled ? "cell" : "default",
|
|
178
|
-
lineHeight: "21px",
|
|
179
|
-
maxWidth: width,
|
|
180
|
-
minWidth: width,
|
|
181
|
-
overflow: "hidden",
|
|
182
|
-
padding: "0px 8px",
|
|
183
|
-
position: "relative",
|
|
184
|
-
textAlign,
|
|
185
|
-
textOverflow: "ellipsis",
|
|
186
|
-
textWrap: "nowrap",
|
|
187
|
-
userSelect: cellSelectionEnabled ? "none" : "auto",
|
|
188
|
-
width,
|
|
189
|
-
...pinStyle,
|
|
190
|
-
}, children: (0, jsx_runtime_1.jsx)("div", { style: {
|
|
191
|
-
alignItems: "center",
|
|
192
|
-
color: iron[400],
|
|
193
|
-
display: "flex",
|
|
194
|
-
fontFamily: "Poppins",
|
|
195
|
-
fontSize: "13px",
|
|
196
|
-
fontWeight: isSummaryRow ? "500" : 400,
|
|
197
|
-
height: rowHeight,
|
|
198
|
-
justifyContent,
|
|
199
|
-
overflow: "hidden",
|
|
200
|
-
textOverflow: "ellipsis",
|
|
201
|
-
}, children: (0, jsx_runtime_1.jsx)(CellRenderer_1.CellRenderer, { cell: cell, row: row, isSummaryRow: isSummaryRow, summaryData: summaryData, isGroupColumn: cell.column.id === "grouped_by" }) }) }, cell.id));
|
|
202
|
-
});
|
|
203
|
-
})() }, `table-row-${index}${isSummaryRow ? "-summary" : ""}`), isPopupOpen && exportData && ((0, jsx_runtime_1.jsx)("div", { ref: popupRef, style: {
|
|
204
|
-
backgroundColor: iron[600],
|
|
205
|
-
borderRadius: "6px",
|
|
206
|
-
boxShadow: `0 0 20px ${mirage[50]}`,
|
|
207
|
-
display: "flex",
|
|
208
|
-
flexDirection: "column",
|
|
209
|
-
left: `${popupPosition.left}px`,
|
|
210
|
-
minWidth: "120px",
|
|
211
|
-
padding: "8px",
|
|
212
|
-
position: "fixed",
|
|
213
|
-
top: `${popupPosition.top}px`,
|
|
214
|
-
width: "120px",
|
|
215
|
-
zIndex: 99,
|
|
216
|
-
}, children: exportActions?.map((item) => {
|
|
217
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: item.onClick, variant: "text", style: {
|
|
218
|
-
borderBottom: `1px solid ${iron[700]}`,
|
|
219
|
-
fontSize: "13px",
|
|
220
|
-
padding: 0,
|
|
221
|
-
}, disableRipple: true, children: item.label }, item.label));
|
|
222
|
-
}) }))] }));
|
|
223
|
-
};
|
|
224
|
-
exports.TableRowComponent = TableRowComponent;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./EditableFields"), exports);
|