aefis-core-ui 7.0.0-rc.7 → 7.0.0-rc.70
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/core-ui/HOCs/withThemeProvider.tsx +2 -2
- package/core-ui/Icon/index.jsx +26 -2
- package/core-ui/components/ActionMenuButton/ActionMenuButton.jsx +20 -8
- package/core-ui/components/Actions/Actions.jsx +4 -3
- package/core-ui/components/Actions/components/Action/Action.jsx +3 -3
- package/core-ui/components/Actions/components/Action/components/ActionMenu/ActionMenu.jsx +31 -39
- package/core-ui/components/Actions/components/Action/components/Badge/Badge.jsx +3 -3
- package/core-ui/components/Actions/components/Action/components/Icon/Icon.jsx +4 -3
- package/core-ui/components/Actions/components/Action/components/Text/Text.jsx +4 -3
- package/core-ui/components/Alert/Alert.jsx +82 -13
- package/core-ui/components/Alert/components/ActionButton/ActionButton.jsx +51 -25
- package/core-ui/components/AnimatedExpandMoreIcon/AnimatedExpandMoreIcon.jsx +8 -4
- package/core-ui/components/AppToolbar/AppToolbar.jsx +68 -14
- package/core-ui/components/AppToolbar/components/Action/Action.jsx +14 -9
- package/core-ui/components/AppToolbar/components/UserButton/UserButton.jsx +12 -8
- package/core-ui/components/AutoComplete/AutoCompleteBase.jsx +2 -2
- package/core-ui/components/AutoComplete/AutoCompleteQuery.jsx +2 -2
- package/core-ui/components/AutoCompleteAddable/AutoCompleteAddable.jsx +2 -2
- package/core-ui/components/AutoCompleteAddable/components/AutoCompleteAddableBase.jsx +2 -2
- package/core-ui/components/AvatarBox/AvatarBox.jsx +32 -11
- package/core-ui/components/AvatarTitle/AvatarTitle.jsx +2 -2
- package/core-ui/components/AvatarTitle/UnstableAvatarTitle.jsx +12 -6
- package/core-ui/components/BusinessObject/BusinessObject.jsx +2 -2
- package/core-ui/components/BusinessObject/components/CardDisplay/CardDisplay.jsx +2 -2
- package/core-ui/components/BusinessObject/components/CardDisplay/components/OutcomeSpaceDisplay/OutcomeSpaceDisplay.jsx +2 -2
- package/core-ui/components/BusinessObject/components/ChipDisplay/ChipDisplay.jsx +2 -2
- package/core-ui/components/BusinessObject/components/ListItemDisplay/ListItemDisplay.jsx +2 -2
- package/core-ui/components/BusinessObject/entities/accreditor/accreditor.js +2 -2
- package/core-ui/components/BusinessObject/entities/administrativeDivision/administrativeDivision.js +2 -2
- package/core-ui/components/BusinessObject/entities/administrativeUnit/administrativeUnit.js +2 -2
- package/core-ui/components/BusinessObject/entities/assessment/assessment.js +2 -2
- package/core-ui/components/BusinessObject/entities/assignment/assignment.js +2 -2
- package/core-ui/components/BusinessObject/entities/badge/badge.js +2 -2
- package/core-ui/components/BusinessObject/entities/badge/components/BadgeChip/BadgeChip.jsx +2 -2
- package/core-ui/components/BusinessObject/entities/badge/components/BadgeListItem/BadgeListItem.jsx +2 -2
- package/core-ui/components/BusinessObject/entities/cocurricular/cocurricular.js +2 -2
- package/core-ui/components/BusinessObject/entities/college/college.js +2 -2
- package/core-ui/components/BusinessObject/entities/course/course.js +2 -2
- package/core-ui/components/BusinessObject/entities/courseOutcome/courseOutcome.js +2 -2
- package/core-ui/components/BusinessObject/entities/courseSection/courseSection.js +2 -2
- package/core-ui/components/BusinessObject/entities/department/department.js +2 -2
- package/core-ui/components/BusinessObject/entities/faculty/faculty.js +2 -2
- package/core-ui/components/BusinessObject/entities/institution/institution.js +2 -2
- package/core-ui/components/BusinessObject/entities/keyword/keyword.js +2 -2
- package/core-ui/components/BusinessObject/entities/outcome/outcome.js +2 -2
- package/core-ui/components/BusinessObject/entities/outcomeSpace/outcomeSpace.js +2 -2
- package/core-ui/components/BusinessObject/entities/performanceIndicator/performanceIndicator.js +2 -2
- package/core-ui/components/BusinessObject/entities/program/program.js +2 -2
- package/core-ui/components/BusinessObject/entities/programMap/programMap.js +2 -2
- package/core-ui/components/BusinessObject/entities/term/term.js +2 -2
- package/core-ui/components/BusinessObject/entities/user/user.js +2 -2
- package/core-ui/components/BusinessObjectCard/BusinessObjectCard.jsx +3 -7
- package/core-ui/components/BusinessObjectCard/components/CardSection/CardSection.jsx +2 -2
- package/core-ui/components/BusinessObjectCard/components/CardSectionTitle/CardSectionTitle.jsx +2 -2
- package/core-ui/components/BusinessObjectCard/components/EmptyCardSection/EmptyCardSection.jsx +2 -2
- package/core-ui/components/BusinessObjectCard/components/Skeleton/Skeleton.jsx +2 -2
- package/core-ui/components/BusinessObjectPanel/BusinessObjectPanel.jsx +4 -2
- package/core-ui/components/BusinessObjectPanel/components/Header/Header.jsx +7 -7
- package/core-ui/components/BusinessObjectPanel/components/Section/Section.jsx +3 -3
- package/core-ui/components/BusinessObjectPanel/components/SectionTitle/SectionTitle.jsx +3 -3
- package/core-ui/components/BusinessObjectPicker/BusinessObjectPicker.jsx +51 -36
- package/core-ui/components/BusinessObjectPicker/components/AddItemFormDialog/AddItemFormDialog.jsx +2 -2
- package/core-ui/components/BusinessObjectPicker/components/DebouncedTextField/DebouncedTextField.jsx +2 -2
- package/core-ui/components/BusinessObjectPicker/components/EnhancedSearchDialog/EnhancedSearchDialog.jsx +2 -2
- package/core-ui/components/BusinessObjectPicker/components/RadioGroup/RadioGroup.jsx +2 -2
- package/core-ui/components/BusinessObjectPicker/hooks/useAutoCompleteValue.js +2 -2
- package/core-ui/components/BusinessObjectPicker/services/withEventManager.js +2 -2
- package/core-ui/components/BusinessObjectPicker/utils/updateSelectedItems.js +2 -2
- package/core-ui/components/BusinessObjectStatus/BusinessObjectStatus.jsx +2 -2
- package/core-ui/components/BusinessObjectStatus/components/ChipDisplay/ChipDisplay.jsx +3 -2
- package/core-ui/components/BusinessObjectStatus/components/ListItemDisplay/ListItemDisplay.jsx +5 -4
- package/core-ui/components/BusinessObjectStatus/config.js +2 -2
- package/core-ui/components/BusinessObjectStatusButton/BusinessObjectStatusButton.jsx +3 -5
- package/core-ui/components/BusinessObjectStatusButton/withStatusButtonDataSource.jsx +2 -2
- package/core-ui/components/BusinessObjectStatusPicker/BusinessObjectStatusPicker.jsx +2 -2
- package/core-ui/components/BusinessObjectTable/BusinessObjectTable.jsx +2 -2
- package/core-ui/components/BusinessObjectTable/FilteredBusinessObjectTable.jsx +2 -2
- package/core-ui/components/Button/Button.jsx +25 -5
- package/core-ui/components/Button/theme.js +2 -2
- package/core-ui/components/Charts/Charts.js +2 -2
- package/core-ui/components/Charts/components/WordCloud/WordCloud.jsx +2 -2
- package/core-ui/components/Chip/Chip.jsx +3 -3
- package/core-ui/components/ChipList/ChipList.jsx +74 -101
- package/core-ui/components/Collapsible/Collapsible.jsx +2 -2
- package/core-ui/components/Collapsible/CollapsibleContent/CollapsibleContent.jsx +2 -2
- package/core-ui/components/Collapsible/CollapsibleContentButton/CollapsibleContentButton.jsx +2 -2
- package/core-ui/components/Collapsible/CollapsibleContentButtonContainer/CollapsibleContentButtonContainer.jsx +2 -2
- package/core-ui/components/Collapsible/CollapsibleContentContainer/CollapsibleContentContainer.jsx +2 -2
- package/core-ui/components/Collapsible/CollapsibleProvider.jsx +2 -2
- package/core-ui/components/ConfirmDialog/ConfirmContext.js +2 -2
- package/core-ui/components/ConfirmDialog/ConfirmDialog.jsx +2 -2
- package/core-ui/components/ConfirmDialog/ConfirmProvider.jsx +2 -2
- package/core-ui/components/ConfirmDialog/index.js +2 -2
- package/core-ui/components/ConfirmDialog/useConfirm.js +2 -2
- package/core-ui/components/ContactForm/ContactForm.jsx +2 -2
- package/core-ui/components/ContactForm/utils/checkFormValues.js +2 -2
- package/core-ui/components/ContactForm/utils/generateMailingTemplate.js +2 -2
- package/core-ui/components/ContentBox/ContentBox.jsx +89 -97
- package/core-ui/components/ContentBox/components/Header/Header.jsx +6 -5
- package/core-ui/components/ContentBox/components/Header/utils/index.js +2 -2
- package/core-ui/components/CoreProvider/CoreProvider.jsx +2 -2
- package/core-ui/components/CoreSnackbarProvider/CoreSnackbarProvider.jsx +2 -2
- package/core-ui/components/CurriculumChart/CurriculumChart.jsx +2 -2
- package/core-ui/components/CurriculumChart/components/CurriculumNode/CurriculumNode.jsx +2 -2
- package/core-ui/components/DataTable/DataTable.jsx +2 -2
- package/core-ui/components/DataTable/components/TableStyles/TableStyles.js +2 -2
- package/core-ui/components/DataTable/components/TooltipCell/TooltipCell.jsx +2 -2
- package/core-ui/components/DatePicker/DatePicker.jsx +2 -2
- package/core-ui/components/DateTitle/DateTitle.jsx +2 -2
- package/core-ui/components/DisplayInFrame/DisplayInFrame.jsx +2 -2
- package/core-ui/components/DocViewer/DocViewer.jsx +46 -10
- package/core-ui/components/DocViewer/PRIZMDOC_VIEWER_CONTROL_API.md +211 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/PrizmDocViewer.tsx +602 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/ALGORITHM.md +464 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/anchorPageCutSearch.ts +279 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/buildFallbackSearchPattern.test.ts +118 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/buildFallbackSearchPattern.ts +123 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/debugLog.ts +49 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/getTextOverlap.ts +61 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/normalizeSearchText.test.ts +121 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/normalizeSearchText.ts +70 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/pageCutSearch.ts +407 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/highlight/useTextHighlightSearch.ts +398 -0
- package/core-ui/components/DocViewer/components/PrizmDocViewer/prizmdoc.types.ts +321 -0
- package/core-ui/components/Drawer/Drawer.jsx +103 -44
- package/core-ui/components/DynamicContainer/DynamicContainer.jsx +2 -2
- package/core-ui/components/DynamicForm/DynamicForm.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/BadgeKeywordField/AutoCompleteBadgeQuery.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/BadgeKeywordField/BadgeKeyworField.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/BusinessObjectPickerField/BusinessObjectPickerField.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/DateRangeField/DateRangeField.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/DateSelect/DateSelect.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/DateSelect/DateSelectSimple.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/DateSelect/DateTypeUtil.js +2 -2
- package/core-ui/components/DynamicForm/Fields/LinkUserField/LinkUserField.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/LinkUserField/LinkUserWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/SelectField/SelectField.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/SelectField/SelectFieldLoading.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/SelectField/SelectFieldReadOnly.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/StatusField/StatusField.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/StatusField/StatusFieldReadOnly.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/UploadField/ImageUploadReadOnly.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/UploadField/Upload.jsx +2 -2
- package/core-ui/components/DynamicForm/Fields/UploadField/UploadField.js +2 -2
- package/core-ui/components/DynamicForm/HOCs/connect/connect.jsx +2 -2
- package/core-ui/components/DynamicForm/HOCs/globalHOC.js +2 -2
- package/core-ui/components/DynamicForm/HOCs/withEmtyValue/withEmptyValue.jsx +2 -2
- package/core-ui/components/DynamicForm/HOCs/withEvalDisable/withEvalDisable.jsx +2 -2
- package/core-ui/components/DynamicForm/HOCs/withReadOnly/withReadOnly.jsx +2 -2
- package/core-ui/components/DynamicForm/HOCs/withRenderUiSchema/withRenderUiSchema.jsx +2 -2
- package/core-ui/components/DynamicForm/HOCs/withValidate/withValidate.jsx +2 -2
- package/core-ui/components/DynamicForm/Templates/ArrayFieldTemplate.jsx +2 -2
- package/core-ui/components/DynamicForm/Templates/CustomFieldTemplate.jsx +2 -2
- package/core-ui/components/DynamicForm/Templates/ObjectFieldTemplate.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/CurrencyWidget/CurrencyWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/DateWidget/DateWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/PhoneWidget/PhoneWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/PhoneWidget/utils.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/SelectWidget/SelectWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/TextWidget/TextWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/TextareaWidget/TextareaWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/Widgets/ValidateWidget/ValidateWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/commonHOCs.js +2 -2
- package/core-ui/components/DynamicForm/components/AutoComplete/AutoCompleteBase.jsx +2 -2
- package/core-ui/components/DynamicForm/components/AutoComplete/AutoCompleteQuery.jsx +2 -2
- package/core-ui/components/DynamicForm/components/AutoComplete/AutoCompleteSearch.jsx +2 -2
- package/core-ui/components/DynamicForm/components/AutoComplete/AutoCompleteStatus.jsx +2 -2
- package/core-ui/components/DynamicForm/components/DisableWrapper/DisableWrapper.jsx +2 -2
- package/core-ui/components/DynamicForm/components/FieldContainer/FieldContainer.jsx +2 -2
- package/core-ui/components/DynamicForm/components/FormButtons/FormButtons.jsx +2 -2
- package/core-ui/components/DynamicForm/components/ReadOnlyView/ReadOnlyView.jsx +2 -2
- package/core-ui/components/DynamicForm/components/SelectComponent/SelectComponent.js +2 -2
- package/core-ui/components/DynamicForm/components/TextWidgetBase/TextWidgetBase.jsx +2 -2
- package/core-ui/components/DynamicForm/components/ToggleButtonField/ToggleButtonField.jsx +2 -2
- package/core-ui/components/DynamicForm/components/ToggleButtonWidget/ToggleButtonWidget.jsx +2 -2
- package/core-ui/components/DynamicForm/hooks/useEvalQueryParam/useEvalQueryParam.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useFormState/useFormState.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useFormStateScopedEval/useFormStateScopedEval.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useProcessCondition/useProcessCondition.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useQueryTemplateParam/useQueryTemplateParam.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useReadOnly/useReadOnly.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useRender/useRender.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useSelector/useSelector.js +2 -2
- package/core-ui/components/DynamicForm/hooks/useSubmitted/useSubmitted.js +2 -2
- package/core-ui/components/DynamicForm/store.js +2 -2
- package/core-ui/components/DynamicForm/utils/decodeHtml.js +2 -2
- package/core-ui/components/DynamicForm/utils/formStore.js +2 -2
- package/core-ui/components/DynamicForm/utils/getDateObject.js +2 -2
- package/core-ui/components/DynamicForm/utils/getError.jsx +2 -2
- package/core-ui/components/DynamicForm/utils/processForm.js +2 -2
- package/core-ui/components/DynamicForm/validation/rules.js +2 -2
- package/core-ui/components/DynamicForm/validation/transformErrors.js +2 -2
- package/core-ui/components/EditableText/EditableText.jsx +2 -2
- package/core-ui/components/EmptyStateMessage/EmptyStateMessage.jsx +194 -0
- package/core-ui/components/ErrorMessage/ErrorMessage.jsx +2 -2
- package/core-ui/components/FileViewer/FileViewer.jsx +8 -4
- package/core-ui/components/FileViewer/components/DownloadInfo/DownloadInfo.jsx +5 -4
- package/core-ui/components/FilterChipRow/FilterChipRow.jsx +10 -2
- package/core-ui/components/FilterChipRow/components/FilterChips/FilterChips.jsx +16 -12
- package/core-ui/components/FilterPanel/FilterPanel.jsx +30 -25
- package/core-ui/components/FilterPanel/components/FilterChips/FilterChips.jsx +3 -3
- package/core-ui/components/FilterPanel/components/FilterItem/FilterItem.jsx +5 -2
- package/core-ui/components/FilterPanel/components/FilterMenu/FilterMenu.jsx +3 -3
- package/core-ui/components/FilterPanel/components/FilterSelection/FilterSelection.jsx +3 -3
- package/core-ui/components/FilterPanel/components/PanelDisplay/PanelDisplay.jsx +3 -3
- package/core-ui/components/FilterPanel/components/SortPicker/SortPicker.jsx +5 -2
- package/core-ui/components/FilterPanel/components/TextSearch/TextSearch.jsx +3 -3
- package/core-ui/components/FilterPanel/hooks/useFilterState.js +2 -2
- package/core-ui/components/FilterPanel/utils/evaluatePickerFilter.js +2 -2
- package/core-ui/components/FilterPanel/utils/formatFilters.js +2 -2
- package/core-ui/components/FilterPanel/utils/getFilterItemId.js +2 -2
- package/core-ui/components/FilterPanel/utils/mapFilters.js +2 -2
- package/core-ui/components/FilterPanelWithTextSearch/FilterPanelWithTextSearch.jsx +10 -4
- package/core-ui/components/FocusWrapper/FocusWrapper.jsx +2 -2
- package/core-ui/components/Footer/Footer.jsx +17 -5
- package/core-ui/components/FormElements/FormElements.js +2 -2
- package/core-ui/components/FormElements/components/CopyInput/CopyInput.jsx +2 -2
- package/core-ui/components/FormElements/components/SimpleSelect/SimpleSelect.jsx +2 -2
- package/core-ui/components/FormElements/components/ToggleButton/ToggleButton.jsx +2 -2
- package/core-ui/components/FramerMotion/Collapsible/index.tsx +2 -2
- package/core-ui/components/FullPageViewer/FullPageViewer.jsx +186 -39
- package/core-ui/components/FullPageViewer/hooks/useFpvWindowMessage.js +2 -2
- package/core-ui/components/Helios/Breadcrumbs/Breadcrumbs.tsx +216 -0
- package/core-ui/components/Helios/BusinessObjectCard/BusinessObjectCard.tsx +405 -0
- package/core-ui/components/Helios/BusinessObjectCard/_ai_docs/2026-05-18-business-object-card-a11y-audit.md +71 -0
- package/core-ui/components/{BusinessObjectHeader/components/ArtifactDrawer/components/Attachments/Attachments.jsx → Helios/BusinessObjectCard/components/CardSection/CardSection.tsx} +34 -32
- package/core-ui/components/Helios/BusinessObjectCard/components/Skeleton/Skeleton.tsx +141 -0
- package/core-ui/components/Helios/BusinessObjectHeader/BusinessObjectHeader.tsx +508 -0
- package/core-ui/components/Helios/BusinessObjectHeader/HeaderActions.tsx +232 -0
- package/core-ui/components/Helios/Drawer/Drawer.tsx +58 -21
- package/core-ui/components/Helios/Drawer/Layouts/DrawerBottomBarLayout/DrawerBottomBarLayout.tsx +3 -3
- package/core-ui/components/Helios/Drawer/Layouts/DrawerContent/DrawerContent.tsx +2 -2
- package/core-ui/components/Helios/FilterPanel/FilterPanel.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/FilterChips/FilterChips.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/FilterItem/FilterItem.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/FilterMenu/FilterMenu.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/FilterSelection/FilterSelection.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/PanelDisplay/PanelDisplay.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/SortPicker/SortPicker.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/components/TextSearch/TextSearch.jsx +2 -2
- package/core-ui/components/Helios/FilterPanel/hooks/useFilterState.js +2 -2
- package/core-ui/components/Helios/FilterPanel/utils/evaluatePickerFilter.js +2 -2
- package/core-ui/components/Helios/FilterPanel/utils/formatFilters.js +2 -2
- package/core-ui/components/Helios/FilterPanel/utils/getFilterItemId.js +2 -2
- package/core-ui/components/Helios/FilterPanel/utils/mapFilters.js +2 -2
- package/core-ui/components/Helios/ScrollableContent/ScrollableContent.tsx +36 -13
- package/core-ui/components/Helios/SegmentedControl/SegmentedControl.tsx +272 -0
- package/core-ui/components/Helios/SegmentedControl/_ai_docs/2026-05-15-segmented-control-a11y-audit.md +66 -0
- package/core-ui/components/Helios/Typography/components/Body1/Body1.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/Body2/Body2.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/BodyText/BodyText.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/Caption/Caption.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/H1/H1.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/H2/H2.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/H3/H3.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/H4/H4.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/H5/H5.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/H6/H6.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/Overline/Overline.jsx +2 -2
- package/core-ui/components/Helios/Typography/components/SmallText/SmallText.jsx +2 -2
- package/core-ui/components/Helios/Typography/index.js +2 -2
- package/core-ui/components/Helios/Typography/styles/index.js +2 -2
- package/core-ui/components/Helios/index.js +9 -2
- package/core-ui/components/IconButton/IconButton.jsx +3 -3
- package/core-ui/components/IconPicker/IconPicker.jsx +2 -2
- package/core-ui/components/Image/Image.jsx +2 -2
- package/core-ui/components/Image/SvgImage.jsx +2 -2
- package/core-ui/components/Image/components/ErrorFallback.jsx +2 -2
- package/core-ui/components/Image/components/Skeleton/Skeleton.jsx +2 -2
- package/core-ui/components/IsometricImage/IsometricImage.jsx +2 -2
- package/core-ui/components/List/List.jsx +26 -20
- package/core-ui/components/ListItem/ListItem.jsx +70 -31
- package/core-ui/components/ListItemGroup/ListItemGroup.jsx +7 -7
- package/core-ui/components/MUI/Box/Box.tsx +2 -2
- package/core-ui/components/MUI/Divider/Divider.tsx +2 -2
- package/core-ui/components/MUI/Grid/Grid.tsx +2 -2
- package/core-ui/components/MUI/GridLegacyV2/GridLegacyV2.tsx +5 -3
- package/core-ui/components/MUI/LinearProgress/LinearProgress.tsx +2 -2
- package/core-ui/components/MUI/Link/Link.tsx +2 -2
- package/core-ui/components/MUI/Paper/Paper.tsx +2 -2
- package/core-ui/components/MUI/Stack/Stack.tsx +2 -2
- package/core-ui/components/MUI/TextField/TextField.tsx +2 -2
- package/core-ui/components/MUI/Tooltip/Tooltip.tsx +2 -2
- package/core-ui/components/MUI/Typography/Typography.tsx +2 -2
- package/core-ui/components/MenuButton/MenuButton.jsx +7 -3
- package/core-ui/components/ModalDialog/ModalDialog.jsx +45 -9
- package/core-ui/components/ModalDialog/TransitionComponent.jsx +89 -0
- package/core-ui/components/ModalDialog/components/DialogTitle/DialogTitle.jsx +26 -6
- package/core-ui/components/ModalDialog/components/FullScreenAppBar/FullScreenAppBar.jsx +28 -21
- package/core-ui/components/Navigation/Navigation.js +2 -2
- package/core-ui/components/Navigation/components/Breadcrumbs.jsx +2 -2
- package/core-ui/components/Navigation/components/Drawer.jsx +2 -2
- package/core-ui/components/Navigation/components/NavigationProvider.jsx +2 -2
- package/core-ui/components/Navigation/components/SecondaryMenu.jsx +2 -2
- package/core-ui/components/NavigationButtons/NavigationButtons.jsx +11 -10
- package/core-ui/components/NavigationDrawer/NavigationDrawer.jsx +2 -2
- package/core-ui/components/NavigationDrawerV2/NavigationDrawerV2.tsx +143 -42
- package/core-ui/components/NavigationDrawerV2/components/DrawerHeader.tsx +5 -5
- package/core-ui/components/NavigationDrawerV2/components/DrawerTitle.tsx +9 -5
- package/core-ui/components/NavigationDrawerV2/components/ItemIcon.tsx +3 -3
- package/core-ui/components/NavigationDrawerV2/components/MenuItem.tsx +231 -109
- package/core-ui/components/NavigationDrawerV2/components/SubMenuSidebar.tsx +85 -10
- package/core-ui/components/NavigationDrawerV2/components/index.ts +2 -2
- package/core-ui/components/NavigationDrawerV2/constants/index.ts +6 -4
- package/core-ui/components/NavigationDrawerV2/hooks/useNavigationMenuContext.tsx +18 -11
- package/core-ui/components/NavigationDrawerV2/types/index.ts +29 -8
- package/core-ui/components/NavigationDrawerV2/utils/animations.ts +2 -2
- package/core-ui/components/NavigationHorizontalMenuPanel/NavigationHorizontalMenuPanel.jsx +2 -2
- package/core-ui/components/NavigationHorizontalMenuPanel/components/Level1Base.jsx +2 -2
- package/core-ui/components/NavigationHorizontalMenuPanel/components/Level2Base.jsx +22 -12
- package/core-ui/components/NavigationHorizontalMenuPanel/components/Level3Base.jsx +26 -12
- package/core-ui/components/NavigationHorizontalMenuPanel/components/MenuItems.jsx +4 -2
- package/core-ui/components/NavigationMenuPanel/NavigationMenuPanel.jsx +2 -2
- package/core-ui/components/NavigationMenuPanel/components/ClickableItem/ClickableItem.jsx +2 -2
- package/core-ui/components/NavigationMenuPanel/components/ExpandableItem/ExpandableItem.jsx +2 -2
- package/core-ui/components/NavigationMenuPanel/components/ItemIcon/ItemIcon.jsx +2 -2
- package/core-ui/components/NavigationMenuPanel/components/MenuItem/MenuItem.jsx +2 -2
- package/core-ui/components/NavigationMenuPanel/components/MenuItemBase/MenuItemBase.jsx +2 -2
- package/core-ui/components/NestedMenu/NestedMenu.jsx +2 -2
- package/core-ui/components/Notification/Notification.jsx +5 -6
- package/core-ui/components/OutcomeSpace/OutcomeSpace.jsx +2 -2
- package/core-ui/components/OutcomeSpace/components/ChipDisplay/ChipDisplay.jsx +2 -2
- package/core-ui/components/OutcomeSpace/components/ListItemDisplay/ListItemDisplay.jsx +2 -2
- package/core-ui/components/OutcomeSpace/spaces/administrativeDivision/administrativeDivision.js +2 -2
- package/core-ui/components/OutcomeSpace/spaces/administrativeUnit/administrativeUnit.js +2 -2
- package/core-ui/components/OutcomeSpace/spaces/college/college.js +2 -2
- package/core-ui/components/OutcomeSpace/spaces/department/department.js +2 -2
- package/core-ui/components/OutcomeSpace/spaces/external/external.js +2 -2
- package/core-ui/components/OutcomeSpace/spaces/institution/institution.js +2 -2
- package/core-ui/components/OutcomeSpace/spaces/program/program.js +2 -2
- package/core-ui/components/PanelDrawer/PanelDrawer.jsx +2 -2
- package/core-ui/components/ProgressChart/ProgressChart.jsx +7 -6
- package/core-ui/components/ProgressChart/components/BarChart/BarChart.jsx +16 -13
- package/core-ui/components/ProgressChart/components/CircleChart/CircleChart.jsx +12 -7
- package/core-ui/components/ProgressChart/components/CircleChart/CircleChartTitle.jsx +5 -2
- package/core-ui/components/ProgressChart/components/MultiSeriesBar/MultiSeriesBar.jsx +15 -12
- package/core-ui/components/ProgressChart/components/SliderChart/SliderChart.jsx +7 -6
- package/core-ui/components/QueryBuilder/Operators.jsx +2 -2
- package/core-ui/components/QueryBuilder/QueryBuilder.jsx +2 -2
- package/core-ui/components/QueryBuilder/config.jsx +2 -2
- package/core-ui/components/QueryBuilder/init_logic.js +2 -2
- package/core-ui/components/QueryBuilder/init_value.js +2 -2
- package/core-ui/components/QueryBuilder/styles/styles.js +2 -2
- package/core-ui/components/RichDataTable/RichDataTable.jsx +2 -2
- package/core-ui/components/RichDataTable/functions.jsx +2 -2
- package/core-ui/components/RubricDistributionChart/RubricDistributionChart.jsx +19 -6
- package/core-ui/components/RubricDistributionChart/components/Legend/Legend.jsx +4 -3
- package/core-ui/components/RubricScoreSlider/RubricScoreSlider.jsx +3 -2
- package/core-ui/components/RubricScoreSlider/components/Legend/Legend.jsx +2 -2
- package/core-ui/components/RubricScoreSlider/css/RubricScoreSlider.css +73 -72
- package/core-ui/components/RubricScoreSlider/utils/utils.js +2 -2
- package/core-ui/components/SaveModal/SaveModal.jsx +14 -5
- package/core-ui/components/ScrollingContainer/ScrollingContainer.jsx +2 -2
- package/core-ui/components/SecondaryMenu/SecondaryMenu.jsx +2 -2
- package/core-ui/components/SecondaryMenu/components/Horizontal/Horizontal.jsx +2 -2
- package/core-ui/components/SecondaryMenu/components/Horizontal/components/Item/Item copy.jsx +2 -2
- package/core-ui/components/SecondaryMenu/components/Horizontal/components/Item/Item.jsx +2 -2
- package/core-ui/components/SecondaryMenu/components/Vertical/Vertical.jsx +2 -2
- package/core-ui/components/SecondaryMenu/components/Vertical/components/Item/Item.jsx +2 -2
- package/core-ui/components/SentimentScale/SentimentScale.jsx +22 -7
- package/core-ui/components/SentimentScale/components/SentimentIcon/SentimentIcon.jsx +5 -4
- package/core-ui/components/SkeletonContent/SkeletonContent.jsx +7 -6
- package/core-ui/components/SkeletonContent/components/Avatar/Avatar.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/AvatarMenuItem/AvatarMenuItem.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/Box/Box.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/DrawerWithForm/DrawerWithForm.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/DrawerWithHeader/DrawerWithHeader.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/ListItem/ListItem.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/PageHeader/PageHeader.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/SecondaryMenu/SecondaryMenu.jsx +3 -4
- package/core-ui/components/SkeletonContent/components/Text/Text.jsx +3 -4
- package/core-ui/components/StatCard/StatCard.jsx +284 -0
- package/core-ui/components/StatRow/StatRow.jsx +2 -2
- package/core-ui/components/StatusMessage/StatusMessage.jsx +2 -2
- package/core-ui/components/StatusMessage/components/AvatarHeader/AvatarHeader.jsx +5 -5
- package/core-ui/components/StatusMessage/components/ImageHeader/ImageHeader.jsx +2 -2
- package/core-ui/components/SurveyComments/SurveyComments.jsx +19 -5
- package/core-ui/components/SurveyComments/components/AI/AI.jsx +3 -3
- package/core-ui/components/SurveyComments/components/AI/components/Conversation/Conversation.jsx +5 -3
- package/core-ui/components/SurveyComments/components/AI/components/Conversation/components/SurveyThemes/SurveyThemes.jsx +4 -4
- package/core-ui/components/SurveyComments/components/AI/components/Conversation/components/ThinkingAnimation/ThinkingAnimation.jsx +3 -3
- package/core-ui/components/SurveyComments/components/Comments/Comments.jsx +7 -5
- package/core-ui/components/SwipeableTabPanel/SwipeableTabPanel.jsx +7 -3
- package/core-ui/components/SwipeableTabPanel/components/TabPanel/TabPanel.jsx +3 -2
- package/core-ui/components/SwipeableViews/SwipeableViews.jsx +2 -2
- package/core-ui/components/SwipeableViews/components/SwipeableComponent.jsx +2 -2
- package/core-ui/components/SwipeableViews/components/SwipeableContainer.jsx +2 -2
- package/core-ui/components/TabPanels/TabPanels.jsx +88 -12
- package/core-ui/components/TextBuilder/TextBuilder.jsx +2 -2
- package/core-ui/components/TextBuilder/components/BuilderFooter/BuilderFooter.jsx +2 -2
- package/core-ui/components/TextBuilder/components/RootField/RootField.jsx +2 -2
- package/core-ui/components/TextBuilder/components/RowActionsWrapper/RowActionsWrapper.jsx +2 -2
- package/core-ui/components/TextBuilder/components/RuleGroup/RuleGroup.jsx +2 -2
- package/core-ui/components/TextBuilder/components/RuleGroupFooter/RuleGroupFooter.jsx +2 -2
- package/core-ui/components/TextBuilder/components/RuleGroupIndex/RuleGroupIndex.jsx +2 -2
- package/core-ui/components/TextBuilder/components/TopGroupItemWrapper/TopGroupItemWrapper.jsx +2 -2
- package/core-ui/components/TextBuilder/store/store.jsx +2 -2
- package/core-ui/components/TextBuilder/utils/mutateFunctions.js +2 -2
- package/core-ui/components/TextSearch/TextSearch.jsx +4 -2
- package/core-ui/components/TextTransition/TextTransition.jsx +2 -2
- package/core-ui/components/Timeline/Timeline.jsx +30 -20
- package/core-ui/components/Timeline/components/Skeleton/Skeleton.jsx +3 -3
- package/core-ui/components/TitleAndActionHeader/TitleAndActionHeader.jsx +25 -5
- package/core-ui/components/TitleAndActionHeader/components/ActionButton/ActionButton.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/AsyncExportModal/AsyncExportModal.jsx +4 -4
- package/core-ui/components/TitleAndActionHeader/components/Breadcrumbs/Breadcrumbs.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/ButtonFollowedTextfield.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/DefaultFilter/DefaultFilter.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/DefaultIconButton/DefaultIconButton.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/FilterButton/FilterButton.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/FilterPanelWrapper/FilterPanelWrapper.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/FilterSetMenuItem/FilterSetMenuItem.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/PreDefinedFilters/PreDefinedFilters.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/components/UserDefinedFilters/UserDefinedFilters.jsx +2 -2
- package/core-ui/components/TitleAndActionHeader/utils.js +42 -13
- package/core-ui/components/TitleAndDescription/TitleAndDescription.jsx +6 -6
- package/core-ui/components/UnstableDataTable/DataTable.jsx +14 -7
- package/core-ui/components/UnstableDataTable/components/CustomColumnMenu/CustomColumnMenu.jsx +3 -2
- package/core-ui/components/UnstableDataTable/components/CustomFooter/CustomFooter.jsx +5 -4
- package/core-ui/components/UnstableDataTable/components/LoadingScreenWithTextTransition/LoadingScreenWithTextTransition.jsx +3 -3
- package/core-ui/components/UnstableDataTable/theme.js +2 -2
- package/core-ui/components/UnstableDataTable/utils/datagridColumnMap.js +2 -2
- package/core-ui/components/UnstableEditableTable/EditableDataTable.jsx +2 -2
- package/core-ui/components/UnstableRichDataTable/RichDataTable.jsx +39 -9
- package/core-ui/components/UnstableRichDataTable/functions.jsx +2 -2
- package/core-ui/components/UnstableScrollingContainer/ScrollingContainer.jsx +16 -6
- package/core-ui/components/UnstableScrollingContainer/components/ScrollBarContainer.jsx +4 -3
- package/core-ui/components/UnstableScrollingContainer/components/ScrollBarContent.jsx +3 -2
- package/core-ui/components/UnstableScrollingContainer/components/ScrollBarThumb.jsx +3 -2
- package/core-ui/components/UnstableScrollingContainer/components/ScrollBarTrack.jsx +3 -2
- package/core-ui/components/UserAvatar/UserAvatar.jsx +17 -4
- package/core-ui/components/Widget/Widget.jsx +6 -2
- package/core-ui/components/WizardPanel/WizardPanel.jsx +146 -27
- package/core-ui/components/WizardPanel/components/CompletedItemList/CompletedItemList.jsx +20 -6
- package/core-ui/components/WizardPanel/components/Header/Header.jsx +92 -24
- package/core-ui/components/index.js +2 -2
- package/core-ui/hooks/useAction/useAction.jsx +2 -2
- package/core-ui/hooks/useApiRequest/actionCreators.js +2 -2
- package/core-ui/hooks/useApiRequest/actionTypes.js +2 -2
- package/core-ui/hooks/useApiRequest/index.js +2 -2
- package/core-ui/hooks/useApiRequest/reducer.js +2 -2
- package/core-ui/hooks/useColumn/useColumn.jsx +2 -2
- package/core-ui/hooks/useComponentWillMount/useComponentWillMount.js +2 -2
- package/core-ui/hooks/useConfiguration/useConfiguration.js +2 -2
- package/core-ui/hooks/useDataSourceUrl/useDataSourceUrl.js +2 -2
- package/core-ui/hooks/useDebounce/useDebounce.js +2 -2
- package/core-ui/hooks/useDebounceCallback/useDebounceCallback.js +2 -2
- package/core-ui/hooks/useDependecyChange/useDependecyChange.js +2 -2
- package/core-ui/hooks/useDispatchAction/useDispatchAction.js +2 -2
- package/core-ui/hooks/useFilter/useFilter.js +2 -2
- package/core-ui/hooks/useLoadingDebounce/useLoadingDebounce.jsx +2 -2
- package/core-ui/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/core-ui/hooks/useMutateState/useMutateState.js +2 -2
- package/core-ui/hooks/useNotify/useNotify.js +2 -2
- package/core-ui/hooks/useOnPropChange/useOnPropChange.jsx +2 -2
- package/core-ui/hooks/usePrevState/usePrevState.js +2 -2
- package/core-ui/hooks/useRefDimensions/useRefDimensions.js +2 -2
- package/core-ui/hooks/useScopedEval/useScopedEval.js +2 -2
- package/core-ui/hooks/useScroller/defaults.js +2 -2
- package/core-ui/hooks/useScroller/useScroller.js +2 -2
- package/core-ui/hooks/useScroller/utils.js +2 -2
- package/core-ui/hooks/useSkipOnMount/useSkipOnMount.js +2 -2
- package/core-ui/hooks/useStatusOptions/useStatusOptions.js +2 -2
- package/core-ui/hooks/useTimeout/useTimeout.js +2 -2
- package/core-ui/hooks/useValueChange/useValueChange.js +2 -2
- package/core-ui/hooks/useWindowState/queryString.js +2 -2
- package/core-ui/hooks/useWindowState/useWindowState.js +2 -2
- package/core-ui/hooks/useZoomLevel/useZoomLevel.jsx +2 -2
- package/core-ui/index.js +24 -10
- package/core-ui/services/createAction.jsx +2 -2
- package/core-ui/services/createEvent.jsx +2 -2
- package/core-ui/services/createStore.jsx +2 -2
- package/core-ui/services/dataSourceManager.js +18 -4
- package/core-ui/services/http.js +2 -2
- package/core-ui/theme/colors/framework/index.js +6 -26
- package/core-ui/theme/colors/framework/primary.js +2 -2
- package/core-ui/theme/colors/framework/secondary.js +3 -3
- package/core-ui/{hooks/useTag/useTag.js → theme/colors/state/ai.js} +10 -13
- package/core-ui/theme/colors/state/common.js +4 -4
- package/core-ui/theme/colors/state/danger.js +3 -4
- package/core-ui/theme/colors/state/dynamicSuccess.js +3 -3
- package/core-ui/{components/BusinessObjectHeader/components/ArtifactDrawer/components/Notes/Notes.jsx → theme/colors/state/error.js} +8 -37
- package/core-ui/theme/colors/state/goalMet.js +6 -7
- package/core-ui/theme/colors/state/goalNotMet.js +6 -7
- package/core-ui/theme/colors/state/inProgress.js +3 -3
- package/core-ui/theme/colors/state/index.js +16 -19
- package/core-ui/theme/colors/state/info.js +6 -7
- package/core-ui/theme/colors/state/noData.js +3 -3
- package/core-ui/theme/colors/state/success.js +5 -3
- package/core-ui/theme/colors/state/warning.js +6 -7
- package/core-ui/theme/theme.js +2 -2
- package/core-ui/utils/PrivateRoute.jsx +2 -2
- package/core-ui/utils/array.js +2 -2
- package/core-ui/utils/color.js +2 -2
- package/core-ui/utils/date.js +2 -2
- package/core-ui/utils/formatting.js +2 -2
- package/core-ui/utils/humanReadableList.js +2 -2
- package/core-ui/utils/math.js +2 -2
- package/core-ui/utils/memoize.js +2 -2
- package/core-ui/utils/number.js +2 -2
- package/core-ui/utils/object.js +2 -2
- package/core-ui/utils/queryString.js +2 -2
- package/core-ui/utils/sanitizedEval.js +2 -2
- package/core-ui/utils/string.js +2 -2
- package/core-ui/utils/template.js +2 -2
- package/core-ui/utils/url.js +2 -2
- package/core-ui/with/withTheme/withTheme.jsx +2 -2
- package/package.json +2 -3
- package/core-ui/components/Breadcrumbs/Breadcrumbs.jsx +0 -102
- package/core-ui/components/BusinessObjectHeader/BusinessObjectHeader.jsx +0 -218
- package/core-ui/components/BusinessObjectHeader/components/ActionButton/ActionButton.jsx +0 -143
- package/core-ui/components/BusinessObjectHeader/components/ArtifactDrawer/ArtifactDrawer.jsx +0 -201
- package/core-ui/components/BusinessObjectHeader/components/ArtifactDrawer/components/Tasks/Tasks.jsx +0 -151
- package/core-ui/components/BusinessObjectHeader/components/BusinessObjectHeaderActionMenu/BusinessObjectHeaderActionMenu.jsx +0 -136
- package/core-ui/components/BusinessObjectHeader/components/BusinessObjectHeaderActionMenu/utils.js +0 -112
- package/core-ui/components/DocViewer/components/PrizmDocViewer/PrizmDocViewer.jsx +0 -280
- package/core-ui/components/StatBoxes/StatBoxes.jsx +0 -198
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
package/core-ui/Icon/index.jsx
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
@@ -172,6 +172,10 @@ import {
|
|
|
172
172
|
EqualizerOutlined as _EqualizerOutlined,
|
|
173
173
|
Face as _Face,
|
|
174
174
|
FaceOutlined as _FaceOutlined,
|
|
175
|
+
Favorite as _Favorite,
|
|
176
|
+
FavoriteBorder as _FavoriteBorder,
|
|
177
|
+
FavoriteOutlined as _FavoriteOutlined,
|
|
178
|
+
FavoriteBorderOutlined as _FavoriteBorderOutlined,
|
|
175
179
|
FileDownload as _FileDownload,
|
|
176
180
|
FileDownloadOutlined as _FileDownloadOutlined,
|
|
177
181
|
FilterList as _FilterList,
|
|
@@ -549,6 +553,10 @@ export const icons = {
|
|
|
549
553
|
EqualizerOutlined: <_EqualizerOutlined />,
|
|
550
554
|
Face: <_Face />,
|
|
551
555
|
FaceOutlined: <_FaceOutlined />,
|
|
556
|
+
Favorite: <_Favorite />,
|
|
557
|
+
FavoriteBorder: <_FavoriteBorder />,
|
|
558
|
+
FavoriteBorderOutlined: <_FavoriteBorderOutlined />,
|
|
559
|
+
FavoriteOutlined: <_FavoriteOutlined />,
|
|
552
560
|
FileDownload: <_FileDownload />,
|
|
553
561
|
FileDownloadOutlined: <_FileDownloadOutlined />,
|
|
554
562
|
FilterList: <_FilterList />,
|
|
@@ -1374,6 +1382,22 @@ export const FaceOutlined = (props) => {
|
|
|
1374
1382
|
return <_FaceOutlined {...props} />;
|
|
1375
1383
|
};
|
|
1376
1384
|
|
|
1385
|
+
export const Favorite = (props) => {
|
|
1386
|
+
return <_Favorite {...props} />;
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
export const FavoriteBorder = (props) => {
|
|
1390
|
+
return <_FavoriteBorder {...props} />;
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
export const FavoriteBorderOutlined = (props) => {
|
|
1394
|
+
return <_FavoriteBorderOutlined {...props} />;
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
export const FavoriteOutlined = (props) => {
|
|
1398
|
+
return <_FavoriteOutlined {...props} />;
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1377
1401
|
export const FileDownload = (props) => {
|
|
1378
1402
|
return <_FileDownload {...props} />;
|
|
1379
1403
|
};
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc, all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import Button from "../Button/Button";
|
|
@@ -50,7 +50,7 @@ const booleanOrFunction = (field, data) =>
|
|
|
50
50
|
(typeof field === "boolean" && field);
|
|
51
51
|
|
|
52
52
|
const renderIcon = (Icon) => {
|
|
53
|
-
return <Icon />;
|
|
53
|
+
return <Icon aria-hidden="true" />;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
/** Menu button with actions menu */
|
|
@@ -72,6 +72,13 @@ const ActionMenuButton = ({ actions, data, disabled = false, disableElevation =
|
|
|
72
72
|
setOpen((prevOpen) => !prevOpen);
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
+
const handleKeyDown = (event) => {
|
|
76
|
+
if (event.key === "Escape") {
|
|
77
|
+
setOpen(false);
|
|
78
|
+
anchorRef.current?.querySelector("button:last-child")?.focus();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
75
82
|
const handleActionClick = (e, action, index) => {
|
|
76
83
|
setSelectedIndex(index || null);
|
|
77
84
|
setOpen(false);
|
|
@@ -88,9 +95,10 @@ const ActionMenuButton = ({ actions, data, disabled = false, disableElevation =
|
|
|
88
95
|
(actions?.length === 1 && (
|
|
89
96
|
<>
|
|
90
97
|
{isMobile ? (
|
|
91
|
-
<Tooltip title={actions[0].name}>
|
|
98
|
+
<Tooltip title={actions[0].name || "action"}>
|
|
92
99
|
<IconButton
|
|
93
|
-
|
|
100
|
+
data-testid="hc-action-menu-button-single"
|
|
101
|
+
aria-label={actions[0].name || "action"}
|
|
94
102
|
disabled={disabled}
|
|
95
103
|
onClick={(e) => handleActionClick(e, actions[0])}
|
|
96
104
|
>
|
|
@@ -99,6 +107,7 @@ const ActionMenuButton = ({ actions, data, disabled = false, disableElevation =
|
|
|
99
107
|
</Tooltip>
|
|
100
108
|
) : (
|
|
101
109
|
<Button
|
|
110
|
+
data-testid="hc-action-menu-button-single"
|
|
102
111
|
sx={sx}
|
|
103
112
|
variant="contained"
|
|
104
113
|
color={actions[0].primary ? "primary" : "secondary"}
|
|
@@ -118,6 +127,7 @@ const ActionMenuButton = ({ actions, data, disabled = false, disableElevation =
|
|
|
118
127
|
(actions?.length > 1 && (
|
|
119
128
|
<>
|
|
120
129
|
<ButtonGroup
|
|
130
|
+
data-testid="hc-action-menu-button-group"
|
|
121
131
|
disableElevation={disableElevation}
|
|
122
132
|
sx={sx}
|
|
123
133
|
variant="contained"
|
|
@@ -134,8 +144,9 @@ const ActionMenuButton = ({ actions, data, disabled = false, disableElevation =
|
|
|
134
144
|
{actions[0].name}
|
|
135
145
|
</Button>
|
|
136
146
|
<Button
|
|
147
|
+
data-testid="hc-action-menu-button-toggle"
|
|
137
148
|
aria-controls={open ? "split-button-menu" : undefined}
|
|
138
|
-
aria-expanded={open
|
|
149
|
+
aria-expanded={open}
|
|
139
150
|
variant="contained"
|
|
140
151
|
aria-label="view more actions"
|
|
141
152
|
aria-haspopup="menu"
|
|
@@ -168,11 +179,12 @@ const ActionMenuButton = ({ actions, data, disabled = false, disableElevation =
|
|
|
168
179
|
>
|
|
169
180
|
<Paper elevation={3}>
|
|
170
181
|
<ClickAwayListener onClickAway={handleClose}>
|
|
171
|
-
<MenuList id="split-button-menu" autoFocusItem>
|
|
182
|
+
<MenuList data-testid="hc-action-menu-button-menu" id="split-button-menu" autoFocusItem onKeyDown={handleKeyDown}>
|
|
172
183
|
{actions?.map(
|
|
173
184
|
(action, index) =>
|
|
174
185
|
isHidden(action, data) === false && (
|
|
175
186
|
<MenuItem
|
|
187
|
+
data-testid={`hc-action-menu-button-item-${action.id}`}
|
|
176
188
|
key={`actionMenuItem-${action.id}`}
|
|
177
189
|
selected={index === selectedIndex}
|
|
178
190
|
disabled={booleanOrFunction(
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import PropTypes from "prop-types";
|
|
@@ -41,6 +41,7 @@ const Actions = ({ data, configuration }) => {
|
|
|
41
41
|
|
|
42
42
|
return configuration?.map((item, index) => (
|
|
43
43
|
<Box
|
|
44
|
+
data-testid={`hc-action-${index}`}
|
|
44
45
|
key={`actionMenuItem-${seededKeyValue(index)}`}
|
|
45
46
|
style={{ marginLeft: "8px", ...getStyle(item) }}
|
|
46
47
|
>
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import PropTypes from "prop-types";
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import { ListItemIcon, Menu, MenuItem, Typography } from "@mui/material";
|
|
@@ -81,6 +81,8 @@ const ActionMenu = ({
|
|
|
81
81
|
data
|
|
82
82
|
}) => {
|
|
83
83
|
|
|
84
|
+
const hasVisibleItems = configuration?.some((item) => !isHidden(item, data));
|
|
85
|
+
|
|
84
86
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
85
87
|
const open = Boolean(anchorEl);
|
|
86
88
|
|
|
@@ -99,46 +101,34 @@ const ActionMenu = ({
|
|
|
99
101
|
const id = useUID();
|
|
100
102
|
const seededKeyValue = useUIDSeed();
|
|
101
103
|
|
|
102
|
-
return hidden ? (
|
|
104
|
+
return hidden || !hasVisibleItems ? (
|
|
103
105
|
(<Root></Root>)
|
|
104
106
|
) : (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
107
|
+
<Root>
|
|
108
|
+
<IconButton
|
|
109
|
+
data-testid="hc-action-menu-trigger"
|
|
110
|
+
name={name || `more options`}
|
|
111
|
+
showTooltip={!disabled}
|
|
112
|
+
size="small"
|
|
113
|
+
disabled={disabled}
|
|
114
|
+
onClick={handleClick}
|
|
115
|
+
{...(!disabled && {
|
|
116
|
+
"aria-controls": id,
|
|
117
|
+
"aria-haspopup": "true",
|
|
118
|
+
"aria-expanded": open
|
|
119
|
+
})}
|
|
120
|
+
>
|
|
121
|
+
{disabled ? (
|
|
122
|
+
Icon ? <Icon /> : (
|
|
120
123
|
<MoreVertIcon
|
|
121
124
|
className={clsx(classes.expand, {
|
|
122
125
|
[classes.expandOpen]: open
|
|
123
126
|
})}
|
|
124
127
|
/>
|
|
125
|
-
)
|
|
126
|
-
|
|
127
|
-
) : (
|
|
128
|
-
<IconButton
|
|
129
|
-
name={name || `more options`}
|
|
130
|
-
showTooltip={true}
|
|
131
|
-
size="small"
|
|
132
|
-
aria-controls={id}
|
|
133
|
-
aria-haspopup="true"
|
|
134
|
-
aria-expanded={open}
|
|
135
|
-
onClick={handleClick}
|
|
136
|
-
disabled={disabled}
|
|
137
|
-
>
|
|
128
|
+
)
|
|
129
|
+
) : (
|
|
138
130
|
<Badge badgeContent={badge}>
|
|
139
|
-
{Icon ? (
|
|
140
|
-
<Icon />
|
|
141
|
-
) : (
|
|
131
|
+
{Icon ? <Icon /> : (
|
|
142
132
|
<MoreVertIcon
|
|
143
133
|
className={clsx(classes.expand, {
|
|
144
134
|
[classes.expandOpen]: open
|
|
@@ -146,10 +136,11 @@ const ActionMenu = ({
|
|
|
146
136
|
/>
|
|
147
137
|
)}
|
|
148
138
|
</Badge>
|
|
149
|
-
|
|
150
|
-
|
|
139
|
+
)}
|
|
140
|
+
</IconButton>
|
|
151
141
|
|
|
152
142
|
<Menu
|
|
143
|
+
data-testid="hc-action-menu"
|
|
153
144
|
id={id}
|
|
154
145
|
anchorEl={anchorEl}
|
|
155
146
|
keepMounted
|
|
@@ -168,6 +159,7 @@ const ActionMenu = ({
|
|
|
168
159
|
(item, index) =>
|
|
169
160
|
!isHidden(item, data) && (
|
|
170
161
|
<MenuItem
|
|
162
|
+
data-testid={`hc-action-menu-item-${index}`}
|
|
171
163
|
key={seededKeyValue(index)}
|
|
172
164
|
onClick={() => handleMenuClick(item.action)}
|
|
173
165
|
disabled={isDisabled(item, data) || false}
|
|
@@ -188,13 +180,13 @@ const ActionMenu = ({
|
|
|
188
180
|
}
|
|
189
181
|
}
|
|
190
182
|
>
|
|
191
|
-
{item.icon && <ListItemIcon>{item.icon}</ListItemIcon>}
|
|
183
|
+
{item.icon && <ListItemIcon aria-hidden="true">{item.icon}</ListItemIcon>}
|
|
192
184
|
<Typography variant="inherit">{item.name}</Typography>
|
|
193
185
|
</MenuItem>
|
|
194
186
|
)
|
|
195
187
|
)}
|
|
196
188
|
</Menu>
|
|
197
|
-
|
|
189
|
+
</Root>
|
|
198
190
|
);
|
|
199
191
|
};
|
|
200
192
|
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import { Badge as MuiBadge } from "@mui/material";
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import PropTypes from "prop-types";
|
|
@@ -34,6 +34,7 @@ const RenderIconButton = ({ name, item, data, disabled, badge, buttonStyle }) =>
|
|
|
34
34
|
const Icon = item?.icon ?? React.Fragment;
|
|
35
35
|
return (
|
|
36
36
|
<IconButton
|
|
37
|
+
data-testid="hc-action-icon-button"
|
|
37
38
|
name={name || "option"}
|
|
38
39
|
aria-label={name || "option"}
|
|
39
40
|
onClick={() => item?.action(data)}
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import PropTypes from "prop-types";
|
|
@@ -35,6 +35,7 @@ const TextButton = ({ name, item, data, disabled = false, badge, buttonStyle })
|
|
|
35
35
|
return (
|
|
36
36
|
<Badge badgeContent={badge}>
|
|
37
37
|
<Button
|
|
38
|
+
data-testid="hc-action-text-button"
|
|
38
39
|
name={name || "option"}
|
|
39
40
|
variant={item?.variant || "contained"}
|
|
40
41
|
aria-label={name || "option"}
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* ║ updating the npm package. 📦 ║
|
|
11
11
|
* ║ ║
|
|
12
12
|
* ║ Package: aefis-core-ui ║
|
|
13
|
-
* ║ Version: 7.0.0-rc.
|
|
13
|
+
* ║ Version: 7.0.0-rc.70 ║
|
|
14
14
|
* ║ ║
|
|
15
15
|
* ╠════════════════════════════════════════════════════════════════════╣
|
|
16
16
|
* ║ ⚠️ ANY CHANGES HERE WILL BE AUTOMATICALLY OVERWRITTEN ⚠️ ║
|
|
17
17
|
* ╚════════════════════════════════════════════════════════════════════╝
|
|
18
18
|
*
|
|
19
19
|
* @package aefis-core-ui
|
|
20
|
-
* @version 7.0.0-rc.
|
|
20
|
+
* @version 7.0.0-rc.70
|
|
21
21
|
* @generated automatically
|
|
22
22
|
* @warning do not modify
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// Copyright (c)
|
|
25
|
+
// Copyright (c) 2026 HelioCampus, Inc., all rights reserved.
|
|
26
26
|
// http://www.heliocampus.com/
|
|
27
27
|
|
|
28
28
|
import {
|
|
@@ -37,17 +37,55 @@ import DOMPurify from "dompurify";
|
|
|
37
37
|
import PropTypes from "prop-types";
|
|
38
38
|
import React, { forwardRef, useState } from "react";
|
|
39
39
|
|
|
40
|
-
import {
|
|
40
|
+
import {
|
|
41
|
+
AutoAwesomeOutlined as AIIcon,
|
|
42
|
+
LightbulbOutlined as BulbIcon,
|
|
43
|
+
Close as CloseIcon,
|
|
44
|
+
WarningOutlined as WarningOutlinedIcon
|
|
45
|
+
} from "../../Icon";
|
|
46
|
+
import { danger as error, info, success, warning } from "../../theme/colors/state";
|
|
41
47
|
import Button from "../Button/Button";
|
|
42
48
|
import ActionButton from "./components/ActionButton/ActionButton";
|
|
43
49
|
|
|
50
|
+
const themeColors = {
|
|
51
|
+
info: { light: info["light"], main: info["default"], dark: info["dark"] },
|
|
52
|
+
warning: { light: warning["light"], main: warning["default"], dark: warning["dark"] },
|
|
53
|
+
error: { light: error["light"], main: error["default"], dark: error["dark"] },
|
|
54
|
+
success: { light: success["light"], main: success["default"], dark: success["dark"] }
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// Color sets for non-themed alert types. Each variant must independently pass
|
|
58
|
+
// WCAG 2.2 AA: text >= 4.5:1 and outlined-button border (UI component) >= 3:1
|
|
59
|
+
// against the alert background.
|
|
60
|
+
const customTypeColors = {
|
|
61
|
+
basic: {
|
|
62
|
+
light: { bg: "transparent", text: "#424242", icon: "#424242" },
|
|
63
|
+
dark: { bg: "#424242", text: "#ffffff", icon: "#ffffff" }
|
|
64
|
+
},
|
|
65
|
+
aiSuggestion: {
|
|
66
|
+
light: { bg: "#faf5ff", text: "#1a0033", icon: "#6a1b9a" },
|
|
67
|
+
dark: { bg: "#4a148c", text: "#ffffff", icon: "#ffffff" }
|
|
68
|
+
},
|
|
69
|
+
pageAction: {
|
|
70
|
+
light: {
|
|
71
|
+
bg: "rgba(216, 168, 95, 0.12)",
|
|
72
|
+
text: "#6C5430",
|
|
73
|
+
icon: "#6C5430",
|
|
74
|
+
border: "1px solid rgba(0, 0, 0, 0.16)"
|
|
75
|
+
},
|
|
76
|
+
dark: { bg: "#6C5430", text: "#ffffff", icon: "#ffffff" }
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
44
80
|
const severityObject = {
|
|
45
81
|
info: "info",
|
|
46
82
|
warning: "warning",
|
|
47
83
|
error: "error",
|
|
48
84
|
success: "success",
|
|
49
85
|
hint: "info",
|
|
50
|
-
basic: "info"
|
|
86
|
+
basic: "info",
|
|
87
|
+
aiSuggestion: "info",
|
|
88
|
+
pageAction: "warning"
|
|
51
89
|
};
|
|
52
90
|
|
|
53
91
|
/** Wrap and extend the MUI alert. */
|
|
@@ -87,12 +125,27 @@ const Alert = forwardRef(function Alert(
|
|
|
87
125
|
severity: severityObject[type]
|
|
88
126
|
};
|
|
89
127
|
|
|
128
|
+
const colors = themeColors[type];
|
|
129
|
+
|
|
90
130
|
const style = {
|
|
91
131
|
boxShadow: shadow ? "rgb(58 53 65 / 42%) 0px 4px 8px -4px" : "none",
|
|
92
132
|
width: "100%",
|
|
93
133
|
...sx
|
|
94
134
|
};
|
|
95
135
|
|
|
136
|
+
if (colors) {
|
|
137
|
+
if (variant === "dark") {
|
|
138
|
+
style.backgroundColor = colors.dark;
|
|
139
|
+
style.color = "#ffffff";
|
|
140
|
+
style["& .MuiAlertTitle-root"] = { color: "#ffffff" };
|
|
141
|
+
} else {
|
|
142
|
+
style.backgroundColor = colors.light;
|
|
143
|
+
style.color = colors.dark;
|
|
144
|
+
style["& .MuiAlert-icon"] = { color: colors.main };
|
|
145
|
+
style["& .MuiAlertTitle-root"] = { color: colors.dark };
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
96
149
|
if (!showIcon) {
|
|
97
150
|
alertProps.icon = false;
|
|
98
151
|
}
|
|
@@ -103,9 +156,24 @@ const Alert = forwardRef(function Alert(
|
|
|
103
156
|
alertProps.icon = <BulbIcon />;
|
|
104
157
|
}
|
|
105
158
|
|
|
106
|
-
if (type
|
|
107
|
-
|
|
108
|
-
|
|
159
|
+
if (customTypeColors[type]) {
|
|
160
|
+
const variantKey = variant === "dark" ? "dark" : "light";
|
|
161
|
+
const c = customTypeColors[type][variantKey];
|
|
162
|
+
|
|
163
|
+
style.backgroundColor = c.bg;
|
|
164
|
+
style.color = c.text;
|
|
165
|
+
style["& .MuiAlertTitle-root"] = { color: c.text };
|
|
166
|
+
if (c.border) {
|
|
167
|
+
style.border = c.border;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (type === "aiSuggestion") {
|
|
171
|
+
alertProps.icon = (
|
|
172
|
+
<AIIcon sx={{ color: c.icon, fontSize: "1.25rem" }} />
|
|
173
|
+
);
|
|
174
|
+
} else if (type === "pageAction") {
|
|
175
|
+
alertProps.icon = <WarningOutlinedIcon sx={{ color: c.icon }} />;
|
|
176
|
+
}
|
|
109
177
|
}
|
|
110
178
|
|
|
111
179
|
if (dense) {
|
|
@@ -120,7 +188,7 @@ const Alert = forwardRef(function Alert(
|
|
|
120
188
|
const renderAction = () => {
|
|
121
189
|
if (canDismiss) {
|
|
122
190
|
return (
|
|
123
|
-
<IconButton aria-label="close" color="inherit" size="small" onClick={handleDismiss}>
|
|
191
|
+
<IconButton data-testid="hc-alert-dismiss" aria-label="close" color="inherit" size="small" onClick={handleDismiss}>
|
|
124
192
|
<CloseIcon fontSize="inherit" />
|
|
125
193
|
</IconButton>
|
|
126
194
|
);
|
|
@@ -130,7 +198,7 @@ const Alert = forwardRef(function Alert(
|
|
|
130
198
|
|
|
131
199
|
const renderContent = () => (
|
|
132
200
|
<>
|
|
133
|
-
{title && <MUIAlertTitle>{title}</MUIAlertTitle>}
|
|
201
|
+
{title && <MUIAlertTitle data-testid="hc-alert-title">{title}</MUIAlertTitle>}
|
|
134
202
|
{description && (
|
|
135
203
|
<Box sx={{ paddingRight: 0.5, width: "100%" }}>
|
|
136
204
|
{parseDescriptionHtml ? (
|
|
@@ -149,7 +217,7 @@ const Alert = forwardRef(function Alert(
|
|
|
149
217
|
actionText={actionText}
|
|
150
218
|
onActionClick={onActionClick}
|
|
151
219
|
buttonProps={buttonProps}
|
|
152
|
-
type={
|
|
220
|
+
type={type}
|
|
153
221
|
variant={variant}
|
|
154
222
|
/>
|
|
155
223
|
)}
|
|
@@ -158,6 +226,7 @@ const Alert = forwardRef(function Alert(
|
|
|
158
226
|
|
|
159
227
|
const alertComponent = (
|
|
160
228
|
<MUIAlert
|
|
229
|
+
data-testid="hc-alert-content"
|
|
161
230
|
ref={ref}
|
|
162
231
|
variant={
|
|
163
232
|
variant === "dark" ? "filled" : variant === "outlined" ? "outlined" : undefined
|
|
@@ -178,7 +247,7 @@ const Alert = forwardRef(function Alert(
|
|
|
178
247
|
);
|
|
179
248
|
|
|
180
249
|
return (
|
|
181
|
-
<Box sx={{ width: "100%" }}>
|
|
250
|
+
<Box data-testid="hc-alert" sx={{ width: "100%" }}>
|
|
182
251
|
{canDismiss ? <Collapse in={open}>{alertComponent}</Collapse> : alertComponent}
|
|
183
252
|
</Box>
|
|
184
253
|
);
|
|
@@ -186,7 +255,7 @@ const Alert = forwardRef(function Alert(
|
|
|
186
255
|
|
|
187
256
|
Alert.propTypes = {
|
|
188
257
|
/** The type of alert. */
|
|
189
|
-
type: PropTypes.oneOf(["info", "warning", "error", "success", "hint", "basic"]),
|
|
258
|
+
type: PropTypes.oneOf(["info", "warning", "error", "success", "hint", "basic", "aiSuggestion", "pageAction"]),
|
|
190
259
|
/** The color variant of the alert. */
|
|
191
260
|
variant: PropTypes.oneOf(["dark", "light", "outlined"]),
|
|
192
261
|
/** The title to display in the alert. */
|