@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
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ActionButtons = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
9
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
10
|
-
const Menu_1 = __importDefault(require("@mui/material/Menu"));
|
|
11
|
-
const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
|
|
12
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
13
|
-
const noop_1 = __importDefault(require("lodash/noop"));
|
|
14
|
-
const react_1 = require("react");
|
|
15
|
-
const utils_1 = require("../utils");
|
|
16
|
-
const ActionButtons = ({ buttons, justifyContent = "end", sx, buttonSx, shouldOpenMenuOnShortcut = false, disable = false, shortcutKey = "a", }) => {
|
|
17
|
-
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
|
18
|
-
const [openMenuKey, setOpenMenuKey] = (0, react_1.useState)(null);
|
|
19
|
-
const buttonRefs = (0, react_1.useRef)({});
|
|
20
|
-
const uniqueId = (0, react_1.useId)();
|
|
21
|
-
const handleMenuOpen = (event, key) => {
|
|
22
|
-
const element = event instanceof HTMLElement ? event : event.currentTarget;
|
|
23
|
-
setAnchorEl(element);
|
|
24
|
-
setOpenMenuKey(key);
|
|
25
|
-
};
|
|
26
|
-
const handleMenuClose = () => {
|
|
27
|
-
setAnchorEl(null);
|
|
28
|
-
setOpenMenuKey(null);
|
|
29
|
-
};
|
|
30
|
-
const hasValidButton = buttons.some((button) => {
|
|
31
|
-
const hasVisibleMenuItems = button.menuItems?.some((item) => !item.hidden);
|
|
32
|
-
return (!!button.menuItems?.length &&
|
|
33
|
-
!button.hidden &&
|
|
34
|
-
!button.disabled &&
|
|
35
|
-
hasVisibleMenuItems);
|
|
36
|
-
});
|
|
37
|
-
const shouldRegisterShortcut = shouldOpenMenuOnShortcut && hasValidButton && !disable;
|
|
38
|
-
const effectiveShortcutKey = shouldRegisterShortcut
|
|
39
|
-
? shortcutKey
|
|
40
|
-
: `disabled-${uniqueId}`;
|
|
41
|
-
(0, utils_1.useGlobalKeyboardShortcut)({
|
|
42
|
-
key: effectiveShortcutKey,
|
|
43
|
-
modifierKeys: ["ctrl", "shift"],
|
|
44
|
-
onTrigger: () => {
|
|
45
|
-
if (!shouldRegisterShortcut) {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
const buttonWithMenu = buttons.find((button) => {
|
|
49
|
-
const hasVisibleMenuItems = button.menuItems?.some((item) => !item.hidden);
|
|
50
|
-
return (!!button.menuItems?.length &&
|
|
51
|
-
!button.hidden &&
|
|
52
|
-
!button.disabled &&
|
|
53
|
-
hasVisibleMenuItems);
|
|
54
|
-
});
|
|
55
|
-
if (buttonWithMenu) {
|
|
56
|
-
const buttonElement = buttonRefs.current[buttonWithMenu.key];
|
|
57
|
-
if (buttonElement && document.contains(buttonElement)) {
|
|
58
|
-
handleMenuOpen(buttonElement, buttonWithMenu.key);
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return false;
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
return ((0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "row", sx: sx, gap: "1.6rem", justifyContent: justifyContent, children: buttons
|
|
66
|
-
.filter((button) => !button.hidden)
|
|
67
|
-
.map(({ menuItems, key, menuPlacement, ...button }) => {
|
|
68
|
-
const visibleMenuItems = menuItems?.filter((menuItem) => !menuItem.hidden);
|
|
69
|
-
const isMenuOpen = openMenuKey === key;
|
|
70
|
-
const onClick = visibleMenuItems && visibleMenuItems.length > 0
|
|
71
|
-
? (e) => handleMenuOpen(e, key)
|
|
72
|
-
: (button.onClick ?? noop_1.default);
|
|
73
|
-
const buttonProps = {
|
|
74
|
-
...button,
|
|
75
|
-
onClick,
|
|
76
|
-
};
|
|
77
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [button.label ? ((0, jsx_runtime_1.jsx)(Button_1.default, { sx: buttonSx, ...buttonProps, disabled: disable || button.disabled, ref: (el) => {
|
|
78
|
-
buttonRefs.current[key] = el;
|
|
79
|
-
}, children: button.label }, key)) : ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ref: (el) => {
|
|
80
|
-
buttonRefs.current[key] = el;
|
|
81
|
-
}, ...buttonProps, children: button.icon }, key)), isMenuOpen && visibleMenuItems && ((0, jsx_runtime_1.jsx)(Menu_1.default, { anchorEl: anchorEl, open: Boolean(anchorEl && isMenuOpen), onClose: handleMenuClose, anchorOrigin: {
|
|
82
|
-
vertical: "bottom",
|
|
83
|
-
horizontal: menuPlacement === "left" ? "left" : "right",
|
|
84
|
-
}, sx: {
|
|
85
|
-
top: "3px",
|
|
86
|
-
}, children: visibleMenuItems.map((item) => {
|
|
87
|
-
if (item.subMenuItems && item.subMenuItems.length > 0) {
|
|
88
|
-
return item.subMenuItems.map((sub) => ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, {
|
|
89
|
-
// eslint-disable-next-line sonarjs/no-nested-functions
|
|
90
|
-
onClick: () => {
|
|
91
|
-
handleMenuClose();
|
|
92
|
-
sub.onClick?.();
|
|
93
|
-
}, children: [sub.icon, sub.label] }, sub.key)));
|
|
94
|
-
}
|
|
95
|
-
return ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { onClick: () => {
|
|
96
|
-
handleMenuClose();
|
|
97
|
-
item.onClick?.();
|
|
98
|
-
}, children: [item.icon, item.label] }, item.key));
|
|
99
|
-
}) }))] }, key));
|
|
100
|
-
}) }));
|
|
101
|
-
};
|
|
102
|
-
exports.ActionButtons = ActionButtons;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormActionButton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const Button_1 = require("../Button");
|
|
6
|
-
const utils_1 = require("../utils");
|
|
7
|
-
const FormActionButton = ({ actionType, onClick, shortcutKey, label, withoutModifiers = false, loading = false, disabled = false, disableKeyboardShortcut = false, variant = "contained", ...rest }) => {
|
|
8
|
-
const getShortcutKey = () => {
|
|
9
|
-
if (actionType == "cancel") {
|
|
10
|
-
return "Escape";
|
|
11
|
-
}
|
|
12
|
-
if (shortcutKey) {
|
|
13
|
-
return shortcutKey;
|
|
14
|
-
}
|
|
15
|
-
return "s";
|
|
16
|
-
};
|
|
17
|
-
const getLabel = () => {
|
|
18
|
-
if (label) {
|
|
19
|
-
return label;
|
|
20
|
-
}
|
|
21
|
-
if (actionType == "cancel") {
|
|
22
|
-
return "Cancel";
|
|
23
|
-
}
|
|
24
|
-
if (actionType == "update") {
|
|
25
|
-
return "Update";
|
|
26
|
-
}
|
|
27
|
-
return "Save";
|
|
28
|
-
};
|
|
29
|
-
const getVariant = () => {
|
|
30
|
-
if (actionType == "cancel") {
|
|
31
|
-
return "outlined";
|
|
32
|
-
}
|
|
33
|
-
return variant;
|
|
34
|
-
};
|
|
35
|
-
(0, utils_1.useGlobalKeyboardShortcut)({
|
|
36
|
-
key: getShortcutKey(),
|
|
37
|
-
enabled: !disableKeyboardShortcut && !loading && !disabled,
|
|
38
|
-
withoutModifiers: actionType == "cancel" ? true : withoutModifiers,
|
|
39
|
-
modifierKeys: actionType != "cancel" ? ["ctrl", "shift"] : undefined,
|
|
40
|
-
onTrigger: () => {
|
|
41
|
-
if (disabled || loading) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
onClick();
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClick, variant: getVariant(), loading: loading, disabled: disabled, ...rest, children: getLabel() }));
|
|
48
|
-
};
|
|
49
|
-
exports.FormActionButton = FormActionButton;
|
|
@@ -1,19 +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("./ActionButtons"), exports);
|
|
18
|
-
__exportStar(require("./FormActionButton"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AddIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const AddIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Add", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgAdd, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.AddIconAction = AddIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CalendarIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const CalendarIconAction = ({ showTooltip = true, ...props }) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { sx: { color: "#4C5D70" }, ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { hidden: !showTooltip, toolTipLabel: "Calendar", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgCalendar, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.CalendarIconAction = CalendarIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ColumnIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ColumnIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, sx: { padding: 0, height: "36px" }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Column Chooser", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgColumn, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ColumnIconAction = ColumnIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ConfigureIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ConfigureIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Configure", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgConfigure, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ConfigureIconAction = ConfigureIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CurrentLocationAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const CurrentLocationAction = ({ toolTipLabel = "Current Location", ...props }) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: toolTipLabel, children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgCurrentLocation, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.CurrentLocationAction = CurrentLocationAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DeleteIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const SvgDelete_1 = require("../Svgs/SvgDelete");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const DeleteIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Delete", children: (0, jsx_runtime_1.jsx)(SvgDelete_1.SvgDelete, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.DeleteIconAction = DeleteIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DownloadIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const DownloadIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Download", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgDownload, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.DownloadIconAction = DownloadIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DownloadPrintAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const DownloadPrintAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Download Print", children: (0, jsx_runtime_1.jsx)(Svgs_1.DownloadSvg, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.DownloadPrintAction = DownloadPrintAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EditIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const SvgEdit_1 = require("../Svgs/SvgEdit");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const EditIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Edit", children: (0, jsx_runtime_1.jsx)(SvgEdit_1.SvgEdit, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.EditIconAction = EditIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ExportIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ExportIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Export", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgExport, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ExportIconAction = ExportIconAction;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FilterIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const SvgFilteredList_1 = require("../Svgs/SvgFilteredList");
|
|
10
|
-
const SvgFilterList_1 = require("../Svgs/SvgFilterList");
|
|
11
|
-
const Tooltip_1 = require("../Tooltip");
|
|
12
|
-
const FilterIconAction = ({ isFiltered = false, ...props }) => {
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Filter", children: isFiltered ? ((0, jsx_runtime_1.jsx)(SvgFilteredList_1.SvgFilteredList, {})) : ((0, jsx_runtime_1.jsx)(SvgFilterList_1.SvgFilterList, { disabled: props.disabled })) }) }));
|
|
14
|
-
};
|
|
15
|
-
exports.FilterIconAction = FilterIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.HistoryIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const SvgHistory_1 = require("../Svgs/SvgHistory");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const HistoryIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "History", children: (0, jsx_runtime_1.jsx)(SvgHistory_1.SvgHistory, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.HistoryIconAction = HistoryIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ImportIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ImportIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Import", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgImport, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ImportIconAction = ImportIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.InboxIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const InboxIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, sx: { padding: "10px" }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Inbox", children: (0, jsx_runtime_1.jsx)(Svgs_1.InboxIcon, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.InboxIconAction = InboxIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.KeyBoardIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const SvgKeyBoard_1 = require("../Svgs/SvgKeyBoard");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const KeyBoardIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, sx: { padding: "10px" }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Keyboard Shortcuts", children: (0, jsx_runtime_1.jsx)(SvgKeyBoard_1.SvgKeyBoard, {}) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.KeyBoardIconAction = KeyBoardIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ProcessIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ProcessIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Add", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgAddRounded, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ProcessIconAction = ProcessIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ViewDetailsIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ViewDetailsIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "View Details", children: (0, jsx_runtime_1.jsx)(Svgs_1.ArrowUpRight, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ViewDetailsIconAction = ViewDetailsIconAction;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ViewIconAction = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
9
|
-
const Svgs_1 = require("../Svgs");
|
|
10
|
-
const Tooltip_1 = require("../Tooltip");
|
|
11
|
-
const ViewIconAction = (props) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "View", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgView, { disabled: props.disabled }) }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.ViewIconAction = ViewIconAction;
|
|
@@ -1,34 +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("./AddIconAction"), exports);
|
|
18
|
-
__exportStar(require("./CalendarIconAction"), exports);
|
|
19
|
-
__exportStar(require("./ColumnIconAction"), exports);
|
|
20
|
-
__exportStar(require("./ConfigureIconAction"), exports);
|
|
21
|
-
__exportStar(require("./DeleteIconAction"), exports);
|
|
22
|
-
__exportStar(require("./DownloadIconAction"), exports);
|
|
23
|
-
__exportStar(require("./DownloadPrintAction"), exports);
|
|
24
|
-
__exportStar(require("./EditIconAction"), exports);
|
|
25
|
-
__exportStar(require("./ExportIconAction"), exports);
|
|
26
|
-
__exportStar(require("./FilterIconAction"), exports);
|
|
27
|
-
__exportStar(require("./HistoryIconAction"), exports);
|
|
28
|
-
__exportStar(require("./ImportIconAction"), exports);
|
|
29
|
-
__exportStar(require("./InboxIconAction"), exports);
|
|
30
|
-
__exportStar(require("./ProcessIconAction"), exports);
|
|
31
|
-
__exportStar(require("./ViewDetailsIconAction"), exports);
|
|
32
|
-
__exportStar(require("./ViewIconAction"), exports);
|
|
33
|
-
__exportStar(require("./KeyBoardIconAction"), exports);
|
|
34
|
-
__exportStar(require("./CurrentLocationAction"), exports);
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionButtonsWrapper = ActionButtonsWrapper;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
function ActionButtonsWrapper({ children, disabled, }) {
|
|
7
|
-
const containerRef = (0, react_1.useRef)(null);
|
|
8
|
-
(0, react_1.useEffect)(() => {
|
|
9
|
-
const container = containerRef.current;
|
|
10
|
-
if (!container || disabled) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
const getAllButtons = () => {
|
|
14
|
-
return Array.from(container.querySelectorAll("button, [role='button'], [tabindex='0']"));
|
|
15
|
-
};
|
|
16
|
-
const handleCellKeyDown = (event) => {
|
|
17
|
-
if (event.key !== "Enter" ||
|
|
18
|
-
event.shiftKey ||
|
|
19
|
-
event.ctrlKey ||
|
|
20
|
-
event.metaKey ||
|
|
21
|
-
event.altKey ||
|
|
22
|
-
disabled) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (document.querySelector(
|
|
26
|
-
// eslint-disable-next-line quotes
|
|
27
|
-
'.MuiDialog-root, [role="dialog"], .MuiPopover-root, .MuiModal-root')) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const activeElement = document.activeElement;
|
|
31
|
-
const cell = activeElement?.closest(".ag-cell");
|
|
32
|
-
if (!cell || !container || !cell.contains(container)) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const isEditing = cell.classList.contains("ag-cell-inline-editing");
|
|
36
|
-
if (isEditing) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (!activeElement) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
const isActiveElementInCell = activeElement === cell || cell.contains(activeElement);
|
|
43
|
-
if (!isActiveElementInCell) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const focusedButton = container.querySelector("button:focus, [role='button']:focus, [tabindex='0']:focus");
|
|
47
|
-
if (focusedButton) {
|
|
48
|
-
event.preventDefault();
|
|
49
|
-
event.stopPropagation();
|
|
50
|
-
focusedButton.click();
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const firstButton = container.querySelector("button, [role='button'], [tabindex='0']");
|
|
54
|
-
if (firstButton) {
|
|
55
|
-
event.preventDefault();
|
|
56
|
-
event.stopPropagation();
|
|
57
|
-
firstButton.focus();
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const handleEnterOrSpace = (event, target) => {
|
|
61
|
-
if ((event.key === "Enter" || event.key === " ") &&
|
|
62
|
-
(target.tagName === "BUTTON" ||
|
|
63
|
-
(target.hasAttribute("role") &&
|
|
64
|
-
target.getAttribute("role") === "button"))) {
|
|
65
|
-
event.preventDefault();
|
|
66
|
-
event.stopPropagation();
|
|
67
|
-
target.click();
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const handleTabForward = (event, target, allButtons, currentIndex) => {
|
|
71
|
-
const isLastButton = currentIndex === allButtons.length - 1;
|
|
72
|
-
if (isLastButton) {
|
|
73
|
-
event.preventDefault();
|
|
74
|
-
event.stopPropagation();
|
|
75
|
-
target.blur();
|
|
76
|
-
const agCell = container.closest(".ag-cell");
|
|
77
|
-
if (agCell) {
|
|
78
|
-
agCell.focus();
|
|
79
|
-
}
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const nextButton = allButtons[currentIndex + 1];
|
|
83
|
-
if (nextButton) {
|
|
84
|
-
event.preventDefault();
|
|
85
|
-
event.stopPropagation();
|
|
86
|
-
nextButton.focus();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const handleTabBackward = (event, target, allButtons, currentIndex) => {
|
|
90
|
-
const isFirstButton = currentIndex === 0;
|
|
91
|
-
if (isFirstButton) {
|
|
92
|
-
event.preventDefault();
|
|
93
|
-
event.stopPropagation();
|
|
94
|
-
target.blur();
|
|
95
|
-
const agCell = container.closest(".ag-cell");
|
|
96
|
-
if (agCell) {
|
|
97
|
-
agCell.focus();
|
|
98
|
-
}
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const previousButton = allButtons[currentIndex - 1];
|
|
102
|
-
if (previousButton) {
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
event.stopPropagation();
|
|
105
|
-
previousButton.focus();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
const handleButtonKeyDown = (event) => {
|
|
109
|
-
const target = event.target;
|
|
110
|
-
if (!container?.contains(target)) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const allButtons = getAllButtons();
|
|
114
|
-
const currentIndex = allButtons.indexOf(target);
|
|
115
|
-
handleEnterOrSpace(event, target);
|
|
116
|
-
if (event.key === "Tab" && !event.shiftKey && currentIndex !== -1) {
|
|
117
|
-
handleTabForward(event, target, allButtons, currentIndex);
|
|
118
|
-
}
|
|
119
|
-
if (event.key === "Tab" && event.shiftKey && currentIndex !== -1) {
|
|
120
|
-
handleTabBackward(event, target, allButtons, currentIndex);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
const cell = container.closest(".ag-cell");
|
|
124
|
-
if (cell) {
|
|
125
|
-
cell.addEventListener("keydown", handleCellKeyDown, true);
|
|
126
|
-
container.addEventListener("keydown", handleButtonKeyDown);
|
|
127
|
-
return () => {
|
|
128
|
-
cell.removeEventListener("keydown", handleCellKeyDown, true);
|
|
129
|
-
container.removeEventListener("keydown", handleButtonKeyDown);
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
}, [disabled]);
|
|
133
|
-
return ((0, jsx_runtime_1.jsx)("div", { ref: containerRef, style: { display: "contents" }, "data-action-buttons-wrapper": "true", children: children }));
|
|
134
|
-
}
|