@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,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Toaster = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_toastify_1 = require("react-toastify");
|
|
6
|
-
const Toaster_styled_1 = require("./Toaster.styled");
|
|
7
|
-
const Toaster = () => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(Toaster_styled_1.ToasterStyled, { position: "top-right", autoClose: 5000, hideProgressBar: true, newestOnTop: true, closeButton: false, closeOnClick: false, rtl: false, draggable: true, pauseOnHover: true, transition: react_toastify_1.Slide, limit: 5 }));
|
|
9
|
-
};
|
|
10
|
-
exports.Toaster = Toaster;
|
|
@@ -1,73 +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.HoverBox = exports.ToasterStyled = void 0;
|
|
7
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
-
const styles_1 = require("@mui/material/styles");
|
|
10
|
-
const react_toastify_1 = require("react-toastify");
|
|
11
|
-
exports.ToasterStyled = (0, styles_1.styled)(react_toastify_1.ToastContainer)(({ theme: { palette: { app: { color }, }, }, }) => {
|
|
12
|
-
const toastBody = {
|
|
13
|
-
"& .Toastify__toast-container": {
|
|
14
|
-
padding: "0px",
|
|
15
|
-
},
|
|
16
|
-
"& .Toastify__toast": {
|
|
17
|
-
padding: "0px",
|
|
18
|
-
inlineSize: "400px",
|
|
19
|
-
right: "80px",
|
|
20
|
-
borderRadius: "8px",
|
|
21
|
-
border: `2px solid ${color.iron[700]}`,
|
|
22
|
-
},
|
|
23
|
-
"& .Toastify__toast-body": {
|
|
24
|
-
padding: "0px",
|
|
25
|
-
},
|
|
26
|
-
"@media (min-width: 480px)": {
|
|
27
|
-
"& .Toastify__toast": {
|
|
28
|
-
top: "-10px",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
const toastSuccess = {
|
|
33
|
-
"& .Toastify__toast-theme--light.Toastify__toast--success": {
|
|
34
|
-
"& .Toastify__toast-body": {
|
|
35
|
-
borderInlineStart: `6px solid ${color.darkMint[900]}`,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const toastError = {
|
|
40
|
-
"& .Toastify__toast-theme--light.Toastify__toast--error": {
|
|
41
|
-
"& .Toastify__toast-body": {
|
|
42
|
-
borderInlineStart: `6px solid ${color.red[900]}`,
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
const toastWarning = {
|
|
47
|
-
"& .Toastify__toast-theme--light.Toastify__toast--warning": {
|
|
48
|
-
"& .Toastify__toast-body": {
|
|
49
|
-
borderInlineStart: `6px solid ${color.darkOrange[900]}`,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
const toastInfo = {
|
|
54
|
-
"& .Toastify__toast-theme--light.Toastify__toast--info": {
|
|
55
|
-
"& .Toastify__toast-body": {
|
|
56
|
-
borderInlineStart: `6px solid ${color.slate[900]}`,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
return {
|
|
61
|
-
...toastBody,
|
|
62
|
-
...toastSuccess,
|
|
63
|
-
...toastError,
|
|
64
|
-
...toastWarning,
|
|
65
|
-
...toastInfo,
|
|
66
|
-
};
|
|
67
|
-
});
|
|
68
|
-
exports.HoverBox = (0, styles_1.styled)(Box_1.default)(({ theme }) => ({
|
|
69
|
-
color: theme.palette.app.color.slate[900],
|
|
70
|
-
"&:hover": {
|
|
71
|
-
color: theme.palette.app.color.butterflyBlue[900],
|
|
72
|
-
},
|
|
73
|
-
}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toasts = exports.Toaster = void 0;
|
|
4
|
-
var Toaster_1 = require("./Toaster");
|
|
5
|
-
Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return Toaster_1.Toaster; } });
|
|
6
|
-
var toasts_1 = require("./toasts");
|
|
7
|
-
Object.defineProperty(exports, "toasts", { enumerable: true, get: function () { return toasts_1.toasts; } });
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toasts = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_toastify_1 = require("react-toastify");
|
|
6
|
-
const Toast_1 = require("./Toast");
|
|
7
|
-
// eslint-disable-next-line sonarjs/function-return-type
|
|
8
|
-
function createToast({ title, description, href, linkText }, type, options) {
|
|
9
|
-
const toastId = `${type}-${title}`;
|
|
10
|
-
if (!react_toastify_1.toast.isActive(toastId)) {
|
|
11
|
-
return (0, react_toastify_1.toast)((0, jsx_runtime_1.jsx)(Toast_1.Toast, { title: title, description: description, href: href, linkText: linkText, type: type }), { ...options, icon: false, type, toastId });
|
|
12
|
-
}
|
|
13
|
-
return toastId;
|
|
14
|
-
}
|
|
15
|
-
exports.toasts = {
|
|
16
|
-
info: (toast, options) => createToast(toast, "info", options),
|
|
17
|
-
success: (toast, options) => createToast(toast, "success", options),
|
|
18
|
-
warning: (toast, options) => createToast(toast, "warning", options),
|
|
19
|
-
error: (toast, options) => createToast(toast, "error", options),
|
|
20
|
-
};
|
|
@@ -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.Tooltip = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
-
const Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
10
|
-
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
|
-
const react_1 = require("react");
|
|
12
|
-
const Tooltip = ({ toolTipLabel, children, placement = "top-start", hidden = false, checkOverflow = false, ...rest }) => {
|
|
13
|
-
const wrapperRef = (0, react_1.useRef)(null);
|
|
14
|
-
const [isOverflowed, setIsOverflowed] = (0, react_1.useState)(false);
|
|
15
|
-
(0, react_1.useEffect)(() => {
|
|
16
|
-
if (checkOverflow && wrapperRef.current) {
|
|
17
|
-
const el = wrapperRef.current;
|
|
18
|
-
setIsOverflowed(el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight);
|
|
19
|
-
}
|
|
20
|
-
}, [children]);
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { arrow: true, placement: placement, title: toolTipLabel, disableHoverListener: checkOverflow ? !isOverflowed || hidden : hidden, ...rest, children: (0, jsx_runtime_1.jsx)(Box_1.default, { ref: wrapperRef, sx: {
|
|
22
|
-
maxWidth: "100%",
|
|
23
|
-
overflow: "hidden",
|
|
24
|
-
textOverflow: "ellipsis",
|
|
25
|
-
whiteSpace: "nowrap",
|
|
26
|
-
display: "inline-flex",
|
|
27
|
-
}, children: typeof children === "string" ? ((0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "body2", fontWeight: 500, children: children })) : (children) }) }));
|
|
28
|
-
};
|
|
29
|
-
exports.Tooltip = Tooltip;
|
|
@@ -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("./Tooltip"), exports);
|
|
@@ -1,22 +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.DesktopTreeNode = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
10
|
-
const map_1 = __importDefault(require("lodash/map"));
|
|
11
|
-
const Node_1 = require("./Node");
|
|
12
|
-
const DesktopTreeNode = ({ node, setRef, themeColor, itemWidth, }) => {
|
|
13
|
-
const { id, children } = node;
|
|
14
|
-
const hasChildren = !!children?.length;
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: {
|
|
16
|
-
display: "flex",
|
|
17
|
-
gap: 3,
|
|
18
|
-
alignItems: "flex-start",
|
|
19
|
-
flex: `1 0 ${itemWidth}`,
|
|
20
|
-
}, children: [(0, jsx_runtime_1.jsx)(Node_1.Node, { node: node, isParent: hasChildren, innerRef: (el) => setRef(id, el), themeColor: themeColor }), hasChildren && ((0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 1, sx: { mt: 0.5 }, children: (0, map_1.default)(children, (child) => ((0, jsx_runtime_1.jsx)(exports.DesktopTreeNode, { node: child, setRef: setRef, themeColor: themeColor, itemWidth: itemWidth }, child.id))) }))] }, id));
|
|
21
|
-
};
|
|
22
|
-
exports.DesktopTreeNode = DesktopTreeNode;
|
|
@@ -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.MobileTreeNode = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
9
|
-
const map_1 = __importDefault(require("lodash/map"));
|
|
10
|
-
const PadBox_1 = require("../PadBox");
|
|
11
|
-
const Node_1 = require("./Node");
|
|
12
|
-
const MobileTreeNode = ({ node, setRef, themeColor, }) => {
|
|
13
|
-
const { id, children } = node;
|
|
14
|
-
const hasChildren = !!children?.length;
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: 1, children: [(0, jsx_runtime_1.jsx)(Node_1.Node, { node: node, isParent: hasChildren, innerRef: (el) => setRef(id, el), themeColor: themeColor }), hasChildren && ((0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingLeft: 3, paddingTop: 1 }, children: (0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 1, children: (0, map_1.default)(children, (child) => ((0, jsx_runtime_1.jsx)(exports.MobileTreeNode, { node: child, setRef: setRef, themeColor: themeColor }, child.id))) }) }))] }, id));
|
|
16
|
-
};
|
|
17
|
-
exports.MobileTreeNode = MobileTreeNode;
|
|
@@ -1,23 +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.Node = 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 Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
|
-
const PadBox_1 = require("../PadBox");
|
|
12
|
-
const Node_styled_1 = require("./Node.styled");
|
|
13
|
-
const Node = ({ node, innerRef, isParent = false, themeColor, }) => {
|
|
14
|
-
const { id, title, subtitle, value } = node;
|
|
15
|
-
const theme = (0, styles_1.useTheme)();
|
|
16
|
-
const { butterflyBlue, slate } = theme.palette.app.color;
|
|
17
|
-
const baseColor = themeColor ?? butterflyBlue[900];
|
|
18
|
-
const nodeBorderColor = isParent ? baseColor : (0, styles_1.alpha)(baseColor, 0.7);
|
|
19
|
-
const nodeBackgroundColor = isParent ? (0, styles_1.alpha)(baseColor, 0.1) : "none";
|
|
20
|
-
const nodeSubtitleColor = slate[900];
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)(Node_styled_1.StyledNodePaper, { elevation: isParent ? 3 : 0, ref: innerRef, isParent: isParent, borderColor: nodeBorderColor, backgroundColor: nodeBackgroundColor, baseColor: baseColor, children: [(0, jsx_runtime_1.jsxs)(Box_1.default, { children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "subtitle2", noWrap: true, children: title }), (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "subtitle2", color: nodeSubtitleColor, noWrap: true, children: subtitle })] }), (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingLeft: 1 }, children: (0, jsx_runtime_1.jsx)(Box_1.default, { sx: { ml: "auto", textAlign: "right" }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { noWrap: true, variant: "body2", children: value }) }) })] }, id));
|
|
22
|
-
};
|
|
23
|
-
exports.Node = Node;
|
|
@@ -1,31 +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.StyledNodePaper = void 0;
|
|
7
|
-
const Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
8
|
-
const styles_1 = require("@mui/material/styles");
|
|
9
|
-
exports.StyledNodePaper = (0, styles_1.styled)(Paper_1.default, {
|
|
10
|
-
shouldForwardProp: (prop) => prop !== "$isParent" &&
|
|
11
|
-
prop !== "$borderColor" &&
|
|
12
|
-
prop !== "$backgroundColor" &&
|
|
13
|
-
prop !== "$baseColor",
|
|
14
|
-
})(({ theme, isParent, borderColor, backgroundColor, baseColor }) => ({
|
|
15
|
-
width: "auto",
|
|
16
|
-
minWidth: 0,
|
|
17
|
-
padding: theme.spacing(1),
|
|
18
|
-
borderRadius: 12,
|
|
19
|
-
border: `1px solid ${borderColor}`,
|
|
20
|
-
boxShadow: isParent ? `0 6px 18px ${(0, styles_1.alpha)(baseColor, 0.2)}` : "none",
|
|
21
|
-
backgroundColor,
|
|
22
|
-
display: "flex",
|
|
23
|
-
alignItems: "center",
|
|
24
|
-
gap: theme.spacing(1),
|
|
25
|
-
minHeight: 40,
|
|
26
|
-
overflow: "hidden",
|
|
27
|
-
flex: "1 1 auto",
|
|
28
|
-
[theme.breakpoints.down("sm")]: {
|
|
29
|
-
flex: "1 1 100%",
|
|
30
|
-
},
|
|
31
|
-
}));
|
|
@@ -1,149 +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.Tree = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
-
const Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
10
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
11
|
-
const forEach_1 = __importDefault(require("lodash/forEach"));
|
|
12
|
-
const map_1 = __importDefault(require("lodash/map"));
|
|
13
|
-
const omit_1 = __importDefault(require("lodash/omit"));
|
|
14
|
-
const values_1 = __importDefault(require("lodash/values"));
|
|
15
|
-
const react_1 = require("react");
|
|
16
|
-
const PadBox_1 = require("../PadBox");
|
|
17
|
-
const Svgs_1 = require("../Svgs");
|
|
18
|
-
const utils_1 = require("../utils");
|
|
19
|
-
const DesktopTreeNode_1 = require("./DesktopTreeNode");
|
|
20
|
-
const MobileTreeNode_1 = require("./MobileTreeNode");
|
|
21
|
-
const Tree = ({ nodes, direction = "horizontal", columns = 3, color, }) => {
|
|
22
|
-
const { isMobile } = (0, utils_1.useGetDeviceType)();
|
|
23
|
-
const refs = (0, react_1.useRef)({});
|
|
24
|
-
const containerRef = (0, react_1.useRef)(null);
|
|
25
|
-
const svgRef = (0, react_1.useRef)(null);
|
|
26
|
-
const resizeObserverRef = (0, react_1.useRef)(null);
|
|
27
|
-
const [paths, setPaths] = (0, react_1.useState)([]);
|
|
28
|
-
const setRef = (id, element) => {
|
|
29
|
-
if (element) {
|
|
30
|
-
refs.current[id] = element;
|
|
31
|
-
if (resizeObserverRef.current) {
|
|
32
|
-
resizeObserverRef.current.observe(element);
|
|
33
|
-
}
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
refs.current = (0, omit_1.default)(refs.current, id);
|
|
37
|
-
};
|
|
38
|
-
const getRectangleElementPosition = (element) => {
|
|
39
|
-
if (!element) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
return element.getBoundingClientRect();
|
|
43
|
-
};
|
|
44
|
-
const createMobilePath = (parentRectangle, currentRectangle, svgRect) => {
|
|
45
|
-
const { left: parentLeft, width: parentWidth, bottom: parentBottom, } = parentRectangle;
|
|
46
|
-
const { left: currentLeft, width: currentWidth, top: currentTop, } = currentRectangle;
|
|
47
|
-
const { left: svgLeft, top: svgTop } = svgRect;
|
|
48
|
-
const startX = parentLeft + parentWidth / 2 - svgLeft;
|
|
49
|
-
const startY = parentBottom - svgTop;
|
|
50
|
-
const endX = currentLeft + currentWidth / 2 - svgLeft;
|
|
51
|
-
const endY = currentTop - svgTop;
|
|
52
|
-
const midY = startY + Math.max(12, (endY - startY) / 2);
|
|
53
|
-
return `M ${startX} ${startY} C ${startX} ${midY} ${endX} ${midY} ${endX} ${endY}`;
|
|
54
|
-
};
|
|
55
|
-
const createDesktopPath = (parentRectangle, currentRectangle, svgRect) => {
|
|
56
|
-
const { right: parentRight, top: parentTop, height: parentHeight, } = parentRectangle;
|
|
57
|
-
const { left: currentLeft, top: currentTop, height: currentHeight, } = currentRectangle;
|
|
58
|
-
const { left: svgLeft, top: svgTop } = svgRect;
|
|
59
|
-
const startX = parentRight - svgLeft;
|
|
60
|
-
const startY = parentTop + parentHeight / 2 - svgTop;
|
|
61
|
-
const endX = currentLeft - svgLeft;
|
|
62
|
-
const endY = currentTop + currentHeight / 2 - svgTop;
|
|
63
|
-
const dx = endX - startX;
|
|
64
|
-
const absDx = Math.abs(dx);
|
|
65
|
-
const curvature = Math.min(120, Math.max(24, absDx / 2));
|
|
66
|
-
const direction = dx >= 0 ? 1 : -1;
|
|
67
|
-
const c1x = startX + curvature * direction;
|
|
68
|
-
const c1y = startY;
|
|
69
|
-
const c2x = endX - curvature * direction;
|
|
70
|
-
const c2y = endY;
|
|
71
|
-
return `M ${startX} ${startY} C ${c1x} ${c1y} ${c2x} ${c2y} ${endX} ${endY}`;
|
|
72
|
-
};
|
|
73
|
-
const computePathsRecursive = (nodeList, svgRect, paths) => {
|
|
74
|
-
(0, forEach_1.default)(nodeList, (node) => {
|
|
75
|
-
const { id, children } = node;
|
|
76
|
-
if (!children?.length) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const parentElement = refs.current[id];
|
|
80
|
-
if (!parentElement) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
const parentRectangle = getRectangleElementPosition(parentElement);
|
|
84
|
-
if (!parentRectangle) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
(0, forEach_1.default)(children, (child) => {
|
|
88
|
-
const { id, children } = child;
|
|
89
|
-
const currentElement = refs.current[id];
|
|
90
|
-
if (!currentElement) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const currentRectangle = getRectangleElementPosition(currentElement);
|
|
94
|
-
if (!currentRectangle) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const pathData = isMobile || direction === "vertical"
|
|
98
|
-
? createMobilePath(parentRectangle, currentRectangle, svgRect)
|
|
99
|
-
: createDesktopPath(parentRectangle, currentRectangle, svgRect);
|
|
100
|
-
paths.push({ definition: pathData });
|
|
101
|
-
if (children?.length) {
|
|
102
|
-
computePathsRecursive([child], svgRect, paths);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
const computePaths = () => {
|
|
108
|
-
const svg = svgRef.current;
|
|
109
|
-
const container = containerRef.current;
|
|
110
|
-
if (!svg || !container) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const width = container.clientWidth;
|
|
114
|
-
svg.setAttribute("width", String(width));
|
|
115
|
-
svg.setAttribute("height", "auto");
|
|
116
|
-
const svgRect = container.getBoundingClientRect();
|
|
117
|
-
const newPaths = [];
|
|
118
|
-
computePathsRecursive(nodes, svgRect, newPaths);
|
|
119
|
-
setPaths(newPaths);
|
|
120
|
-
};
|
|
121
|
-
(0, react_1.useEffect)(() => {
|
|
122
|
-
const scheduleCompute = () => {
|
|
123
|
-
return requestAnimationFrame(() => {
|
|
124
|
-
computePaths();
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
const initialId = scheduleCompute();
|
|
128
|
-
const observer = new ResizeObserver(scheduleCompute);
|
|
129
|
-
resizeObserverRef.current = observer;
|
|
130
|
-
if (containerRef.current) {
|
|
131
|
-
observer.observe(containerRef.current);
|
|
132
|
-
}
|
|
133
|
-
(0, values_1.default)(refs.current).forEach((el) => observer.observe(el));
|
|
134
|
-
const handleResize = scheduleCompute;
|
|
135
|
-
window.addEventListener("resize", handleResize);
|
|
136
|
-
return () => {
|
|
137
|
-
cancelAnimationFrame(initialId);
|
|
138
|
-
observer.disconnect();
|
|
139
|
-
resizeObserverRef.current = null;
|
|
140
|
-
window.removeEventListener("resize", handleResize);
|
|
141
|
-
};
|
|
142
|
-
}, [nodes, isMobile, direction]);
|
|
143
|
-
const itemWidth = `calc(${100 / columns}% - 24px)`;
|
|
144
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { ref: containerRef, variant: "outlined", component: Paper_1.default, position: "relative", sx: {
|
|
145
|
-
overflowX: "hidden",
|
|
146
|
-
overflowY: "visible",
|
|
147
|
-
}, children: [(0, jsx_runtime_1.jsx)(Svgs_1.SvgBranches, { ref: svgRef, paths: paths, strokeColor: color }), isMobile || direction === "vertical" ? ((0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: 2 }, children: (0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 3, children: (0, map_1.default)(nodes, (node) => ((0, jsx_runtime_1.jsx)(MobileTreeNode_1.MobileTreeNode, { node: node, setRef: setRef, themeColor: color }, node.id))) }) })) : ((0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: 2 }, children: (0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "row", alignItems: "flex-start", justifyContent: "flex-start", flexWrap: "wrap", gap: 3, children: (0, map_1.default)(nodes, (node) => ((0, jsx_runtime_1.jsx)(DesktopTreeNode_1.DesktopTreeNode, { node: node, setRef: setRef, themeColor: color, itemWidth: itemWidth }, node.id))) }) }))] }));
|
|
148
|
-
};
|
|
149
|
-
exports.Tree = Tree;
|
|
@@ -1,18 +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("./Tree"), exports);
|
|
18
|
-
__exportStar(require("./Node"), exports);
|
|
@@ -1,79 +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.UserProfileMenu = UserProfileMenu;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const KeyboardArrowDown_1 = __importDefault(require("@mui/icons-material/KeyboardArrowDown"));
|
|
9
|
-
const KeyboardArrowUp_1 = __importDefault(require("@mui/icons-material/KeyboardArrowUp"));
|
|
10
|
-
const Avatar_1 = __importDefault(require("@mui/material/Avatar"));
|
|
11
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
12
|
-
const Divider_1 = __importDefault(require("@mui/material/Divider"));
|
|
13
|
-
const ListItemButton_1 = __importDefault(require("@mui/material/ListItemButton"));
|
|
14
|
-
const ListItemIcon_1 = __importDefault(require("@mui/material/ListItemIcon"));
|
|
15
|
-
const Popover_1 = __importDefault(require("@mui/material/Popover"));
|
|
16
|
-
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
17
|
-
const styles_1 = require("@mui/material/styles");
|
|
18
|
-
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
19
|
-
const isFunction_1 = __importDefault(require("lodash/isFunction"));
|
|
20
|
-
const react_1 = require("react");
|
|
21
|
-
const utils_1 = require("../utils");
|
|
22
|
-
const UserProfileMenu_styled_1 = require("./UserProfileMenu.styled");
|
|
23
|
-
function UserProfileMenu({ userDetails, menuItems, shouldCloseOnClick = true, }) {
|
|
24
|
-
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
|
25
|
-
const buttonRef = (0, react_1.useRef)(null);
|
|
26
|
-
const { layout } = (0, utils_1.useGetDeviceType)();
|
|
27
|
-
const isDesktop = layout === "desktop";
|
|
28
|
-
const theme = (0, styles_1.useTheme)();
|
|
29
|
-
const { iron } = theme.palette.app.color;
|
|
30
|
-
const open = Boolean(anchorEl);
|
|
31
|
-
const handleClick = (event) => {
|
|
32
|
-
setAnchorEl(event.currentTarget);
|
|
33
|
-
};
|
|
34
|
-
const handleClose = () => setAnchorEl(null);
|
|
35
|
-
const { name } = userDetails;
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { position: "relative", children: [(0, jsx_runtime_1.jsx)(Box_1.default, { sx: { display: "flex", alignItems: "center" }, children: (0, jsx_runtime_1.jsx)(UserProfileMenu_styled_1.IconButtonStyled, { ref: buttonRef, onClick: handleClick, size: "small", "aria-haspopup": "true", children: (0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", alignItems: "center", gap: 1, color: "black", children: [(0, jsx_runtime_1.jsx)(Avatar_1.default, { src: userDetails.avatar, sx: { border: `1px solid ${iron[700]}`, width: 28, height: 28 } }), isDesktop && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { maxWidth: 150, noWrap: true, children: name }), open ? (0, jsx_runtime_1.jsx)(KeyboardArrowUp_1.default, {}) : (0, jsx_runtime_1.jsx)(KeyboardArrowDown_1.default, {})] }))] }) }) }), open && ((0, jsx_runtime_1.jsx)(Popover_1.default, { open: true, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: "bottom", horizontal: "right" }, transformOrigin: { vertical: "top", horizontal: "right" }, slotProps: {
|
|
37
|
-
paper: {
|
|
38
|
-
elevation: 0,
|
|
39
|
-
sx: {
|
|
40
|
-
width: 220,
|
|
41
|
-
overflow: "visible",
|
|
42
|
-
mt: 1.5,
|
|
43
|
-
px: 0,
|
|
44
|
-
py: 0,
|
|
45
|
-
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
|
|
46
|
-
"& .MuiAvatar-root": {
|
|
47
|
-
width: 32,
|
|
48
|
-
height: 32,
|
|
49
|
-
ml: -0.5,
|
|
50
|
-
mr: 1,
|
|
51
|
-
},
|
|
52
|
-
"&:before": {
|
|
53
|
-
// eslint-disable-next-line quotes
|
|
54
|
-
content: '""',
|
|
55
|
-
display: "block",
|
|
56
|
-
position: "absolute",
|
|
57
|
-
top: 0,
|
|
58
|
-
right: 14,
|
|
59
|
-
width: 10,
|
|
60
|
-
height: 10,
|
|
61
|
-
bgcolor: "background.paper",
|
|
62
|
-
transform: "translateY(-50%) rotate(45deg)",
|
|
63
|
-
zIndex: 0,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
}, children: (0, jsx_runtime_1.jsx)(Box_1.default, { sx: { padding: "4px 0" }, children: menuItems.map(({ key, divider, label, icon, sx, onClick }) => ((0, jsx_runtime_1.jsxs)(Box_1.default, { children: [divider && (0, jsx_runtime_1.jsx)(Divider_1.default, {}), (0, jsx_runtime_1.jsx)(ListItemButton_1.default, { onClick: () => {
|
|
68
|
-
if ((0, isFunction_1.default)(onClick)) {
|
|
69
|
-
onClick();
|
|
70
|
-
if (shouldCloseOnClick) {
|
|
71
|
-
handleClose();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, children: (icon || label) && ((0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: "16px", alignItems: "center", width: "100%", flexDirection: "row", sx: { ...sx }, children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { sx: {
|
|
75
|
-
minWidth: "20px",
|
|
76
|
-
alignItems: "center",
|
|
77
|
-
...sx,
|
|
78
|
-
}, children: icon }), label && ((0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { fontSize: "13px" }, children: label }))] })) })] }, `${key}_container`))) }) }))] }));
|
|
79
|
-
}
|
|
@@ -1,38 +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.IconButtonStyled = exports.MenuStyled = void 0;
|
|
7
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
8
|
-
const Menu_1 = __importDefault(require("@mui/material/Menu"));
|
|
9
|
-
const menuClasses_1 = __importDefault(require("@mui/material/Menu/menuClasses"));
|
|
10
|
-
const styles_1 = require("@mui/material/styles");
|
|
11
|
-
exports.MenuStyled = (0, styles_1.styled)(Menu_1.default)(({ theme, }) => {
|
|
12
|
-
const style = {
|
|
13
|
-
[`& .${menuClasses_1.default.paper}`]: {
|
|
14
|
-
boxShadow: theme.palette.app.paperBoxShadow,
|
|
15
|
-
minWidth: "29rem",
|
|
16
|
-
width: "auto",
|
|
17
|
-
margin: "0 0.5rem",
|
|
18
|
-
borderRadius: "8px",
|
|
19
|
-
overflow: "visible",
|
|
20
|
-
"& .MuiList-root": {
|
|
21
|
-
padding: "0",
|
|
22
|
-
overflow: "visible",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
return style;
|
|
27
|
-
});
|
|
28
|
-
exports.IconButtonStyled = (0, styles_1.styled)(IconButton_1.default, {
|
|
29
|
-
shouldForwardProp: (prop) => prop !== "isOpened",
|
|
30
|
-
})(({ theme }) => {
|
|
31
|
-
const style = {
|
|
32
|
-
paddingInline: "0.3rem",
|
|
33
|
-
paddingBlock: "0.2rem",
|
|
34
|
-
borderRadius: "8px",
|
|
35
|
-
color: theme.palette.app.color.black[900],
|
|
36
|
-
};
|
|
37
|
-
return style;
|
|
38
|
-
});
|
|
@@ -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("./UserProfileMenu"), exports);
|
|
@@ -1,51 +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.CodeSnippetBox = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Check_1 = __importDefault(require("@mui/icons-material/Check"));
|
|
9
|
-
const ContentCopy_1 = __importDefault(require("@mui/icons-material/ContentCopy"));
|
|
10
|
-
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
11
|
-
const styles_1 = require("@mui/material/styles");
|
|
12
|
-
const Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
13
|
-
const react_1 = require("react");
|
|
14
|
-
const react_syntax_highlighter_1 = require("react-syntax-highlighter");
|
|
15
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
16
|
-
const prism_1 = require("react-syntax-highlighter/dist/esm/styles/prism");
|
|
17
|
-
const Button_1 = require("../Button");
|
|
18
|
-
const CodeSnippetBox_styled_1 = require("./CodeSnippetBox.styled");
|
|
19
|
-
const CodeSnippetBox = ({ children, language = "typescript", isCopyable = true, }) => {
|
|
20
|
-
const theme = (0, styles_1.useTheme)();
|
|
21
|
-
const { mirage, iron } = theme.palette.app.color;
|
|
22
|
-
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
23
|
-
const handleCopy = () => {
|
|
24
|
-
if (typeof children !== "string" || !isCopyable) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
navigator.clipboard
|
|
28
|
-
.writeText(children)
|
|
29
|
-
.then(() => {
|
|
30
|
-
setCopied(true);
|
|
31
|
-
setTimeout(() => {
|
|
32
|
-
setCopied(false);
|
|
33
|
-
}, 2000);
|
|
34
|
-
})
|
|
35
|
-
.catch(() => {
|
|
36
|
-
// Silently fail
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: { position: "relative" }, children: typeof children === "string" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isCopyable && ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
|
|
40
|
-
position: "absolute",
|
|
41
|
-
top: theme.spacing(1),
|
|
42
|
-
right: theme.spacing(1),
|
|
43
|
-
zIndex: 1,
|
|
44
|
-
}, children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, { title: copied ? "Copied!" : "Copy code", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { size: "small", onClick: handleCopy, variant: "text", sx: { color: iron[600], fontSize: "10px" }, startIcon: copied ? ((0, jsx_runtime_1.jsx)(Check_1.default, { sx: { fontSize: "10px" } })) : ((0, jsx_runtime_1.jsx)(ContentCopy_1.default, { sx: { fontSize: "10px" } })), children: copied ? "Copied!" : "Copy code" }) }) })), (0, jsx_runtime_1.jsx)(react_syntax_highlighter_1.Prism, { language: language, style: prism_1.vscDarkPlus, customStyle: {
|
|
45
|
-
margin: 0,
|
|
46
|
-
borderRadius: "5px",
|
|
47
|
-
padding: theme.spacing(2),
|
|
48
|
-
background: mirage[900],
|
|
49
|
-
}, PreTag: "div", children: children })] })) : ((0, jsx_runtime_1.jsx)(CodeSnippetBox_styled_1.StyledCodeSnippetBox, { children: children })) }));
|
|
50
|
-
};
|
|
51
|
-
exports.CodeSnippetBox = CodeSnippetBox;
|