@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,18 +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.Skeleton = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
9
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
10
|
-
const Skeleton = ({ rows, label, styling }) => {
|
|
11
|
-
const height = rows === undefined ? 35.69 : rows * 26.5;
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: "10px", children: [label && styling === "custom" && ((0, jsx_runtime_1.jsx)(Skeleton_1.default, { width: 120, height: "18.69px", sx: {
|
|
13
|
-
transform: "scale(1)",
|
|
14
|
-
} })), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { height: `${height}px`, sx: {
|
|
15
|
-
transform: "scale(1)",
|
|
16
|
-
} })] }));
|
|
17
|
-
};
|
|
18
|
-
exports.Skeleton = Skeleton;
|
|
@@ -1,133 +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.TextField = TextField;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const InfoOutlined_1 = __importDefault(require("@mui/icons-material/InfoOutlined"));
|
|
9
|
-
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
10
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
11
|
-
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
12
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
13
|
-
const Tooltip_1 = require("../../Tooltip");
|
|
14
|
-
const utils_1 = require("../../utils");
|
|
15
|
-
const useFormFieldFocus_1 = require("../../utils/hooks/useFormFieldFocus");
|
|
16
|
-
const commonStyles_1 = require("../commonStyles");
|
|
17
|
-
const Skeleton_1 = require("./Skeleton");
|
|
18
|
-
const characterTypeMessages = {
|
|
19
|
-
string: "Only alphabetic characters are allowed.",
|
|
20
|
-
"string-number": "Only letters and numbers are allowed.",
|
|
21
|
-
"string-number-special": "Special characters are allowed.",
|
|
22
|
-
"string-special": "Only letters, accents, apostrophes, and hyphens are allowed.",
|
|
23
|
-
"string-special-all": "Only letters and Special characters are allowed",
|
|
24
|
-
custom: "Please enter a valid input",
|
|
25
|
-
};
|
|
26
|
-
function TextField({ control, name, defaultValue, label = "", rules, type, required, disabled, loading = false, placeholder = "", isCapitalize = false, isTrimStartDisabled = false, rows, characterType = "string-number-special", letterCase = "mixed", setError, containerProps, styling = "custom", infoMessage, regexExpression = {
|
|
27
|
-
message: null,
|
|
28
|
-
regex: /^[\s\S]*$/,
|
|
29
|
-
}, navigationKey, customOnChange, ...inputFieldProps }) {
|
|
30
|
-
const { field: { value, onChange, ...restField }, fieldState: { error }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
31
|
-
const { navigationKey: navigationKeyFromContext } = (0, utils_1.useNavigationKeyContext)();
|
|
32
|
-
const resolvedNavigationKey = navigationKey ?? navigationKeyFromContext;
|
|
33
|
-
const { inputRef, maintainFocus, handleKeyDown: handleNavigationKeyDown, handleEnterNavigation, } = (0, useFormFieldFocus_1.useFormFieldFocus)({ navigationKey: resolvedNavigationKey });
|
|
34
|
-
const handleKeyDown = (event) => {
|
|
35
|
-
if (event.key === "-" && type === "number") {
|
|
36
|
-
event.preventDefault();
|
|
37
|
-
}
|
|
38
|
-
const isMultiline = Boolean(rows ?? inputFieldProps.multiline);
|
|
39
|
-
if (isMultiline &&
|
|
40
|
-
event.key === "Enter" &&
|
|
41
|
-
resolvedNavigationKey === "enter" &&
|
|
42
|
-
!event.shiftKey &&
|
|
43
|
-
!event.ctrlKey &&
|
|
44
|
-
!event.metaKey &&
|
|
45
|
-
!event.altKey) {
|
|
46
|
-
handleEnterNavigation(event, true);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
handleNavigationKeyDown(event, undefined, false);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const getCharacterRegex = (type) => {
|
|
53
|
-
switch (type) {
|
|
54
|
-
case "string":
|
|
55
|
-
return /^[A-Za-z\s]*$/;
|
|
56
|
-
case "string-number":
|
|
57
|
-
return /^[A-Za-z0-9\s]*$/;
|
|
58
|
-
case "string-number-special":
|
|
59
|
-
return /^[\s\S]*$/;
|
|
60
|
-
case "string-special":
|
|
61
|
-
return /^[\p{L}’'\-\s]+$/u;
|
|
62
|
-
case "string-special-all":
|
|
63
|
-
return /^[^\d]+$/;
|
|
64
|
-
case "custom":
|
|
65
|
-
return regexExpression.regex;
|
|
66
|
-
default:
|
|
67
|
-
return /^[\s\S]*$/;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const cleanInput = (input) => {
|
|
71
|
-
let result = input;
|
|
72
|
-
const regex = getCharacterRegex(characterType);
|
|
73
|
-
if (!regex.test(result)) {
|
|
74
|
-
result = result
|
|
75
|
-
.split("")
|
|
76
|
-
.filter((char) => regex.test(char))
|
|
77
|
-
.join("");
|
|
78
|
-
}
|
|
79
|
-
if (letterCase === "uppercase") {
|
|
80
|
-
result = result.toUpperCase();
|
|
81
|
-
}
|
|
82
|
-
else if (letterCase === "lowercase") {
|
|
83
|
-
result = result.toLowerCase();
|
|
84
|
-
}
|
|
85
|
-
return result;
|
|
86
|
-
};
|
|
87
|
-
const { message } = regexExpression;
|
|
88
|
-
const errorMessage = !message
|
|
89
|
-
? characterTypeMessages[characterType]
|
|
90
|
-
: message;
|
|
91
|
-
if (loading) {
|
|
92
|
-
return (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { label: label, rows: rows, styling: styling });
|
|
93
|
-
}
|
|
94
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { ...containerProps, gap: "5px", children: [label && styling === "custom" && ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, disabled: disabled, children: label }), infoMessage && ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: infoMessage, children: (0, jsx_runtime_1.jsx)(InfoOutlined_1.default, { sx: {
|
|
95
|
-
fontSize: 13,
|
|
96
|
-
} }) }))] })), (0, jsx_runtime_1.jsx)(TextField_1.default, { disabled: disabled, required: required, fullWidth: true, inputRef: inputRef, onKeyDown: handleKeyDown, placeholder: styling === "default" ? placeholder : (placeholder || label), type: type, label: styling === "default" ? label : undefined, sx: (0, commonStyles_1.getDefaultTextFieldSx)(styling), InputLabelProps: (0, commonStyles_1.getDefaultInputLabelProps)(styling), inputProps: {
|
|
97
|
-
min: 0,
|
|
98
|
-
}, error: Boolean(error), helperText: error?.message, onChange: (event) => {
|
|
99
|
-
const input = event.target;
|
|
100
|
-
const { selectionStart, selectionEnd } = input;
|
|
101
|
-
let value = event.target.value ?? null;
|
|
102
|
-
if (typeof value === "string" && value.trim() === "") {
|
|
103
|
-
value = "";
|
|
104
|
-
}
|
|
105
|
-
else if (!isTrimStartDisabled && typeof value === "string") {
|
|
106
|
-
value = value.trimStart();
|
|
107
|
-
}
|
|
108
|
-
const cleanedVal = value && cleanInput(value);
|
|
109
|
-
if (value !== cleanedVal) {
|
|
110
|
-
if (setError) {
|
|
111
|
-
setError(name, { type: "manual", message: errorMessage });
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
let finalValue = cleanedVal;
|
|
116
|
-
if (value && type === "number") {
|
|
117
|
-
finalValue = Number(value);
|
|
118
|
-
}
|
|
119
|
-
else if (isCapitalize && cleanedVal) {
|
|
120
|
-
finalValue = cleanedVal ? cleanedVal.toUpperCase() : null;
|
|
121
|
-
}
|
|
122
|
-
onChange(finalValue);
|
|
123
|
-
if (customOnChange) {
|
|
124
|
-
customOnChange(value);
|
|
125
|
-
}
|
|
126
|
-
requestAnimationFrame(() => {
|
|
127
|
-
if (type == "text") {
|
|
128
|
-
input.setSelectionRange(selectionStart, selectionEnd);
|
|
129
|
-
}
|
|
130
|
-
maintainFocus();
|
|
131
|
-
});
|
|
132
|
-
}, value: typeof value === "string" ? value.trimStart() : (value ?? ""), ...restField, ...inputFieldProps })] }));
|
|
133
|
-
}
|
|
@@ -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("./TextField"), exports);
|
|
@@ -1,17 +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.Skeleton = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
9
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
10
|
-
const Skeleton = ({ label, styling }) => {
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: "10px", flex: 1, children: [label && styling === "custom" && ((0, jsx_runtime_1.jsx)(Skeleton_1.default, { width: 120, height: "18.69px", sx: {
|
|
12
|
-
transform: "scale(1)",
|
|
13
|
-
} })), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { height: "35.69px", width: "100%", sx: {
|
|
14
|
-
transform: "scale(1)",
|
|
15
|
-
} })] }));
|
|
16
|
-
};
|
|
17
|
-
exports.Skeleton = Skeleton;
|
|
@@ -1,81 +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.TimeField = TimeField;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
9
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
10
|
-
const styles_1 = require("@mui/material/styles");
|
|
11
|
-
const TimeField_1 = require("@mui/x-date-pickers/TimeField");
|
|
12
|
-
const luxon_1 = require("luxon");
|
|
13
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
14
|
-
const utils_1 = require("../../utils");
|
|
15
|
-
const useFormFieldFocus_1 = require("../../utils/hooks/useFormFieldFocus");
|
|
16
|
-
const commonStyles_1 = require("../commonStyles");
|
|
17
|
-
const Skeleton_1 = require("./Skeleton");
|
|
18
|
-
function TimeField({ control, defaultValue, disabled = false, label, name, error, helperText, loading = false, required = false, rules, format = "HH:mm", isReturnLocalTime = false, isReturnDateWithTime = false, styling = "custom", navigationKey, ...restProps }) {
|
|
19
|
-
const { field: { value, onChange, ...restField }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
20
|
-
const { navigationKey: navigationKeyFromContext } = (0, utils_1.useNavigationKeyContext)();
|
|
21
|
-
const resolvedNavigationKey = navigationKey ?? navigationKeyFromContext;
|
|
22
|
-
const { inputRef, maintainFocus, handleKeyDown: handleNavigationKeyDown, } = (0, useFormFieldFocus_1.useFormFieldFocus)({ navigationKey: resolvedNavigationKey });
|
|
23
|
-
const theme = (0, styles_1.useTheme)();
|
|
24
|
-
const { butterflyBlue } = theme.palette.app.color;
|
|
25
|
-
if (error && value && typeof value === "object") {
|
|
26
|
-
helperText = "Invalid time";
|
|
27
|
-
}
|
|
28
|
-
const pickerValue = value
|
|
29
|
-
? luxon_1.DateTime.fromISO(value)
|
|
30
|
-
: null;
|
|
31
|
-
if (loading) {
|
|
32
|
-
return (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { label: label, styling: styling });
|
|
33
|
-
}
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: "5px", children: [label && styling === "custom" && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, disabled: disabled, children: label })), (0, jsx_runtime_1.jsx)(TimeField_1.TimeField, { ...restField, ...restProps, disabled: disabled, value: pickerValue, onChange: (value) => {
|
|
35
|
-
if (value?.isValid) {
|
|
36
|
-
if (isReturnLocalTime) {
|
|
37
|
-
onChange(value.toFormat(format));
|
|
38
|
-
maintainFocus();
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (isReturnDateWithTime) {
|
|
42
|
-
onChange(value.toUTC().toISO());
|
|
43
|
-
maintainFocus();
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
onChange(value.toUTC().toISOTime());
|
|
47
|
-
maintainFocus();
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
onChange(value);
|
|
51
|
-
maintainFocus();
|
|
52
|
-
}
|
|
53
|
-
}, slotProps: {
|
|
54
|
-
textField: {
|
|
55
|
-
disabled,
|
|
56
|
-
helperText,
|
|
57
|
-
error,
|
|
58
|
-
label: styling === "default" ? label : undefined,
|
|
59
|
-
required: styling === "default" ? required : undefined,
|
|
60
|
-
inputRef,
|
|
61
|
-
InputLabelProps: (0, commonStyles_1.getDefaultInputLabelProps)(styling),
|
|
62
|
-
onKeyDown: (event) => {
|
|
63
|
-
handleNavigationKeyDown(event, undefined, false);
|
|
64
|
-
},
|
|
65
|
-
sx: {
|
|
66
|
-
...(0, commonStyles_1.getDefaultTextFieldSx)(styling),
|
|
67
|
-
backgroundColor: "white",
|
|
68
|
-
"& .Mui-selected": {
|
|
69
|
-
backgroundColor: butterflyBlue[900],
|
|
70
|
-
borderRadius: "5px",
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
}, format: format, helperText: helperText, sx: {
|
|
75
|
-
backgroundColor: "white",
|
|
76
|
-
"& .Mui-selected": {
|
|
77
|
-
backgroundColor: butterflyBlue[900],
|
|
78
|
-
borderRadius: "5px",
|
|
79
|
-
},
|
|
80
|
-
} })] }));
|
|
81
|
-
}
|
|
@@ -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("./TimeField"), exports);
|
|
@@ -1,17 +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.Skeleton = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
9
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
10
|
-
const Skeleton = ({ label, styling }) => {
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: "10px", flex: 1, children: [label && styling === "custom" && ((0, jsx_runtime_1.jsx)(Skeleton_1.default, { width: 120, height: "18.69px", sx: {
|
|
12
|
-
transform: "scale(1)",
|
|
13
|
-
} })), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { height: "35.69px", width: "100%", sx: {
|
|
14
|
-
transform: "scale(1)",
|
|
15
|
-
} })] }));
|
|
16
|
-
};
|
|
17
|
-
exports.Skeleton = Skeleton;
|
|
@@ -1,164 +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.TimePicker = TimePicker;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
9
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
10
|
-
const styles_1 = require("@mui/material/styles");
|
|
11
|
-
const Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
12
|
-
const TimePicker_1 = require("@mui/x-date-pickers/TimePicker");
|
|
13
|
-
const luxon_1 = require("luxon");
|
|
14
|
-
const react_1 = require("react");
|
|
15
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
16
|
-
const utils_1 = require("../../utils");
|
|
17
|
-
const useFormFieldFocus_1 = require("../../utils/hooks/useFormFieldFocus");
|
|
18
|
-
const commonStyles_1 = require("../commonStyles");
|
|
19
|
-
const Skeleton_1 = require("./Skeleton");
|
|
20
|
-
function TimePicker({ control, defaultValue, disabled = false, label, readOnly = false, name, error = false, helperText, loading = false, required = false, rules, format = "HH:mm", isReturnLocalTime = false, isReturnDateWithTime = false, timeStepsMinutes = 1, helperIcon, toolTipText, containerProps, styling = "custom", navigationKey, ...restProps }) {
|
|
21
|
-
const { field: { value, onChange, ...restField }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
22
|
-
const [open, setOpen] = (0, react_1.useState)(false);
|
|
23
|
-
const { navigationKey: navigationKeyFromContext } = (0, utils_1.useNavigationKeyContext)();
|
|
24
|
-
const resolvedNavigationKey = navigationKey ?? navigationKeyFromContext;
|
|
25
|
-
const { setInputRef, maintainFocus, maintainFocusAfterClose, handleKeyDown, handleEnterNavigation, } = (0, useFormFieldFocus_1.useFormFieldFocus)({ isOpen: open, navigationKey: resolvedNavigationKey });
|
|
26
|
-
if (error && value && typeof value === "object") {
|
|
27
|
-
helperText = "Invalid time";
|
|
28
|
-
}
|
|
29
|
-
const theme = (0, styles_1.useTheme)();
|
|
30
|
-
const { butterflyBlue } = theme.palette.app.color;
|
|
31
|
-
const pickerValue = value
|
|
32
|
-
? luxon_1.DateTime.fromISO(value)
|
|
33
|
-
: null;
|
|
34
|
-
if (loading) {
|
|
35
|
-
return (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { label: label, styling: styling });
|
|
36
|
-
}
|
|
37
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: "5px", ...containerProps, children: [label && styling === "custom" && ((0, jsx_runtime_1.jsxs)(Stack_1.default, { alignItems: "center", flexDirection: "row", gap: "5px", children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, disabled: disabled, children: label }), helperIcon && toolTipText && ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { title: toolTipText, placement: "bottom", children: helperIcon }))] })), (0, jsx_runtime_1.jsx)(TimePicker_1.TimePicker, { ...restField, ...restProps, disabled: disabled, readOnly: readOnly, open: open, ampm: false, value: pickerValue, format: format, onOpen: () => setOpen(true), onClose: () => {
|
|
38
|
-
setOpen(false);
|
|
39
|
-
maintainFocusAfterClose();
|
|
40
|
-
}, timeSteps: { minutes: timeStepsMinutes }, slotProps: {
|
|
41
|
-
textField: {
|
|
42
|
-
disabled,
|
|
43
|
-
helperText,
|
|
44
|
-
error,
|
|
45
|
-
label: styling === "default" ? label : undefined,
|
|
46
|
-
required: styling === "default" ? required : undefined,
|
|
47
|
-
inputRef: setInputRef,
|
|
48
|
-
InputLabelProps: (0, commonStyles_1.getDefaultInputLabelProps)(styling),
|
|
49
|
-
sx: {
|
|
50
|
-
...(0, commonStyles_1.getDefaultTextFieldSx)(styling),
|
|
51
|
-
backgroundColor: "white",
|
|
52
|
-
"& .Mui-selected": {
|
|
53
|
-
backgroundColor: butterflyBlue[900],
|
|
54
|
-
borderRadius: "5px",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
onKeyDown: (event) => {
|
|
58
|
-
if (resolvedNavigationKey === "enter") {
|
|
59
|
-
if (event.key === " " && !open && !disabled && !readOnly) {
|
|
60
|
-
event.preventDefault();
|
|
61
|
-
event.stopPropagation();
|
|
62
|
-
setOpen(true);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (event.key === "Enter" && !open) {
|
|
66
|
-
event.preventDefault();
|
|
67
|
-
event.stopPropagation();
|
|
68
|
-
handleEnterNavigation(event);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
if (event.key === "Enter" && open) {
|
|
72
|
-
event.preventDefault();
|
|
73
|
-
event.stopPropagation();
|
|
74
|
-
setOpen(false);
|
|
75
|
-
maintainFocusAfterClose();
|
|
76
|
-
requestAnimationFrame(() => {
|
|
77
|
-
handleEnterNavigation(event);
|
|
78
|
-
});
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
handleKeyDown(event, () => setOpen(false), open);
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
openPickerButton: {
|
|
86
|
-
...(resolvedNavigationKey === "enter"
|
|
87
|
-
? {
|
|
88
|
-
onKeyDown: (event) => {
|
|
89
|
-
if (event.key === "Enter") {
|
|
90
|
-
event.preventDefault();
|
|
91
|
-
event.stopPropagation();
|
|
92
|
-
handleEnterNavigation(event);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
}
|
|
96
|
-
: {}),
|
|
97
|
-
},
|
|
98
|
-
popper: {
|
|
99
|
-
sx: {
|
|
100
|
-
"& .MuiMultiSectionDigitalClockSection-root::after": {
|
|
101
|
-
display: "unset",
|
|
102
|
-
},
|
|
103
|
-
"& .MuiList-padding": {
|
|
104
|
-
padding: "10px",
|
|
105
|
-
},
|
|
106
|
-
"& .MuiMultiSectionDigitalClockSection-item": {
|
|
107
|
-
padding: "4px",
|
|
108
|
-
},
|
|
109
|
-
"& .MuiMultiSectionDigitalClockSection-item.Mui-selected": {
|
|
110
|
-
backgroundColor: butterflyBlue[900],
|
|
111
|
-
borderRadius: "5px",
|
|
112
|
-
},
|
|
113
|
-
"& .MuiMultiSectionDigitalClockSection-item.Mui-selected:hover": {
|
|
114
|
-
backgroundColor: butterflyBlue[900],
|
|
115
|
-
borderRadius: "5px",
|
|
116
|
-
},
|
|
117
|
-
"& .Mui-selected:hover": {
|
|
118
|
-
backgroundColor: butterflyBlue[900],
|
|
119
|
-
borderRadius: "5px",
|
|
120
|
-
},
|
|
121
|
-
"& .MuiMultiSectionDigitalClockSection-item.Mui-selected:focus-visible": {
|
|
122
|
-
backgroundColor: butterflyBlue[900],
|
|
123
|
-
borderRadius: "5px",
|
|
124
|
-
},
|
|
125
|
-
"& .Mui-selected:focus-visible": {
|
|
126
|
-
backgroundColor: butterflyBlue[900],
|
|
127
|
-
borderRadius: "5px",
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
onKeyDown: (event) => {
|
|
131
|
-
if (resolvedNavigationKey === "enter" &&
|
|
132
|
-
event.key === "Enter" &&
|
|
133
|
-
open) {
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
event.stopPropagation();
|
|
136
|
-
setOpen(false);
|
|
137
|
-
maintainFocusAfterClose();
|
|
138
|
-
requestAnimationFrame(() => {
|
|
139
|
-
handleEnterNavigation(event);
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
}, onChange: (value) => {
|
|
145
|
-
if (value?.isValid) {
|
|
146
|
-
if (isReturnLocalTime) {
|
|
147
|
-
onChange(value.toFormat(format));
|
|
148
|
-
maintainFocus();
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
if (isReturnDateWithTime) {
|
|
152
|
-
onChange(value.toUTC().toISO());
|
|
153
|
-
maintainFocus();
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
onChange(value.toUTC().toISOTime());
|
|
157
|
-
maintainFocus();
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
onChange(value);
|
|
161
|
-
maintainFocus();
|
|
162
|
-
}
|
|
163
|
-
} })] }));
|
|
164
|
-
}
|
|
@@ -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("./TimePicker"), exports);
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultInputLabelSx = exports.getDefaultFormControlSx = exports.getDefaultTextFieldSx = exports.getDefaultInputLabelProps = void 0;
|
|
4
|
-
const getDefaultInputLabelProps = (styling) => {
|
|
5
|
-
if (styling !== "default") {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
return {
|
|
9
|
-
sx: {
|
|
10
|
-
opacity: 0.8,
|
|
11
|
-
"&:not(.MuiInputLabel-shrink)": {
|
|
12
|
-
fontSize: "13px",
|
|
13
|
-
top: "calc(var(--input-base-height, 56px) / 2)",
|
|
14
|
-
transform: "translate(14px, -90%)",
|
|
15
|
-
},
|
|
16
|
-
"&.MuiInputLabel-shrink": {
|
|
17
|
-
transform: "translate(14px, -9px) scale(0.75)",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.getDefaultInputLabelProps = getDefaultInputLabelProps;
|
|
23
|
-
const getDefaultTextFieldSx = (styling
|
|
24
|
-
// eslint-disable-next-line sonarjs/function-return-type
|
|
25
|
-
) => {
|
|
26
|
-
if (styling !== "default") {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
"& .MuiInputBase-root": {
|
|
31
|
-
"--input-base-height": "100%",
|
|
32
|
-
},
|
|
33
|
-
"&.MuiTextField-sizeSmall .MuiInputBase-root": {
|
|
34
|
-
"--input-base-height-small": "40px",
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
exports.getDefaultTextFieldSx = getDefaultTextFieldSx;
|
|
39
|
-
const getDefaultFormControlSx = (styling
|
|
40
|
-
// eslint-disable-next-line sonarjs/function-return-type
|
|
41
|
-
) => {
|
|
42
|
-
if (styling !== "default") {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
"& .MuiInputBase-root": {
|
|
47
|
-
"--input-base-height": "100%",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
exports.getDefaultFormControlSx = getDefaultFormControlSx;
|
|
52
|
-
const getDefaultInputLabelSx = (styling
|
|
53
|
-
// eslint-disable-next-line sonarjs/function-return-type
|
|
54
|
-
) => {
|
|
55
|
-
if (styling !== "default") {
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
opacity: 0.8,
|
|
60
|
-
"&:not(.MuiInputLabel-shrink)": {
|
|
61
|
-
fontSize: "13px",
|
|
62
|
-
top: "calc(var(--input-base-height, 56px) / 2)",
|
|
63
|
-
transform: "translate(14px, -90%)",
|
|
64
|
-
},
|
|
65
|
-
"&.MuiInputLabel-shrink": {
|
|
66
|
-
transform: "translate(14px, -9px) scale(0.75)",
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
exports.getDefaultInputLabelSx = getDefaultInputLabelSx;
|
|
@@ -1,36 +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("./Autocomplete"), exports);
|
|
18
|
-
__exportStar(require("./CheckBox"), exports);
|
|
19
|
-
__exportStar(require("./DatePicker"), exports);
|
|
20
|
-
__exportStar(require("./DateRangePicker"), exports);
|
|
21
|
-
__exportStar(require("./DateRangeSelector"), exports);
|
|
22
|
-
__exportStar(require("./DateTimePicker"), exports);
|
|
23
|
-
__exportStar(require("./DecimalTextField"), exports);
|
|
24
|
-
__exportStar(require("./FileUpload"), exports);
|
|
25
|
-
__exportStar(require("./ImageUpload"), exports);
|
|
26
|
-
__exportStar(require("./ListItemButton"), exports);
|
|
27
|
-
__exportStar(require("./PasswordField"), exports);
|
|
28
|
-
__exportStar(require("./PhoneInputField"), exports);
|
|
29
|
-
__exportStar(require("./RadioGroupField"), exports);
|
|
30
|
-
__exportStar(require("./Rating"), exports);
|
|
31
|
-
__exportStar(require("./SearchField"), exports);
|
|
32
|
-
__exportStar(require("./Select"), exports);
|
|
33
|
-
__exportStar(require("./SwitchField"), exports);
|
|
34
|
-
__exportStar(require("./TextField"), exports);
|
|
35
|
-
__exportStar(require("./TimeField"), exports);
|
|
36
|
-
__exportStar(require("./TimePicker"), exports);
|
|
@@ -1,29 +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.HighlightedText = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
-
const styles_1 = require("@mui/material/styles");
|
|
10
|
-
const regex_1 = require("../utils/regex");
|
|
11
|
-
const HighlightedText = ({ text, highlightWords, }) => {
|
|
12
|
-
const theme = (0, styles_1.useTheme)();
|
|
13
|
-
const { slate } = theme.palette.app.color;
|
|
14
|
-
if (!highlightWords?.length) {
|
|
15
|
-
return (0, jsx_runtime_1.jsx)(Box_1.default, { component: "span", children: text });
|
|
16
|
-
}
|
|
17
|
-
const escapedWords = highlightWords.map((w) => w.replace(regex_1.highlightWordsRegex, "\\$&"));
|
|
18
|
-
const pattern = new RegExp(`(${escapedWords.join("|")})`, "gi");
|
|
19
|
-
const segments = text.split(pattern);
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.default, { component: "span", children: segments.map((segment, index) => pattern.test(segment) ? ((0, jsx_runtime_1.jsx)(Box_1.default, { component: "span", sx: {
|
|
21
|
-
padding: "2px 4px",
|
|
22
|
-
backgroundColor: slate[800],
|
|
23
|
-
border: `1px solid ${slate[700]}`,
|
|
24
|
-
borderRadius: "5px",
|
|
25
|
-
fontFamily: "monospace",
|
|
26
|
-
fontSize: "0.9em",
|
|
27
|
-
}, children: segment }, `highlight-${index}-${segment}`)) : ((0, jsx_runtime_1.jsx)(Box_1.default, { component: "span", children: segment }, `text-${index}-${segment}`))) }));
|
|
28
|
-
};
|
|
29
|
-
exports.HighlightedText = HighlightedText;
|
|
@@ -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("./HighlightedText"), exports);
|