@gooddata/sdk-ui-kit 11.56.0-alpha.0 → 11.56.0-alpha.1
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/esm/@ui/@dev/ComponentTable.d.ts +1 -1
- package/esm/@ui/@dev/ComponentTable.d.ts.map +1 -1
- package/esm/@ui/@dev/ComponentTable.js +1 -2
- package/esm/@ui/@types/icon.d.ts +1 -1
- package/esm/@ui/@types/icon.d.ts.map +1 -1
- package/esm/@ui/@utils/bem.d.ts.map +1 -1
- package/esm/@ui/@utils/keyboardNavigation.d.ts +11 -11
- package/esm/@ui/@utils/keyboardNavigation.d.ts.map +1 -1
- package/esm/@ui/@utils/size.d.ts +2 -1
- package/esm/@ui/@utils/size.d.ts.map +1 -1
- package/esm/@ui/@utils/useKeyboardNavigationTarget.d.ts.map +1 -1
- package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialogCard.d.ts.map +1 -1
- package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialogCard.js +1 -5
- package/esm/@ui/UiAddGranteeDialog/useGranteeSelection.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.js +1 -3
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableDropdownItem.js +1 -2
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableEmptyState.js +1 -3
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableFilter.js +1 -5
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableHeader.js +1 -2
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableRow.js +1 -2
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableToolbar.js +5 -13
- package/esm/@ui/UiAsyncTable/UiAsyncTable/utils.d.ts +3 -3
- package/esm/@ui/UiAsyncTable/UiAsyncTable/utils.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTableTitle/UiAsyncTableTitle.js +1 -2
- package/esm/@ui/UiAsyncTable/useAsyncTableSearch.d.ts +1 -1
- package/esm/@ui/UiAsyncTable/useAsyncTableSearch.d.ts.map +1 -1
- package/esm/@ui/UiAutocomplete/UiAutocomplete.js +3 -7
- package/esm/@ui/UiAutocomplete/types.d.ts.map +1 -1
- package/esm/@ui/UiAutocomplete/useAsyncListSource.d.ts.map +1 -1
- package/esm/@ui/UiBreadcrumb/UiBreadcrumb.js +1 -2
- package/esm/@ui/UiCertificationIcon/UiCertificationIcon.js +1 -8
- package/esm/@ui/UiCheckbox/UiCheckbox.js +2 -5
- package/esm/@ui/UiColorPicker/UiColorPicker.js +2 -5
- package/esm/@ui/UiColorPicker/components/UiColorSlider.js +2 -4
- package/esm/@ui/UiColorPicker/components/UiColorValueField.js +1 -2
- package/esm/@ui/UiCombobox/UiComboboxListItem.d.ts +1 -1
- package/esm/@ui/UiCombobox/UiComboboxListItem.d.ts.map +1 -1
- package/esm/@ui/UiCombobox/UiComboboxListItem.js +1 -2
- package/esm/@ui/UiCombobox/types.d.ts.map +1 -1
- package/esm/@ui/UiCombobox/useComboboxSelection.d.ts.map +1 -1
- package/esm/@ui/UiConfigEditor/ConfigEditorToolbar.js +2 -4
- package/esm/@ui/UiConfigEditor/UiConfigEditor.js +2 -4
- package/esm/@ui/UiConfigEditor/types.d.ts.map +1 -1
- package/esm/@ui/UiConfirmDialog/UiConfirmDialogCard.d.ts.map +1 -1
- package/esm/@ui/UiConfirmDialog/UiConfirmDialogCard.js +1 -5
- package/esm/@ui/UiControlButton/UiControlButton.js +1 -4
- package/esm/@ui/UiDrawer/UiDrawer.js +2 -6
- package/esm/@ui/UiDropdown/UiDropdown.js +2 -4
- package/esm/@ui/UiErrorPage/UiErrorPage.js +1 -4
- package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiFocusManager.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiFocusTrap.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiReturnFocusOnUnmount.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiReturnFocusOnUnmount.js +9 -1
- package/esm/@ui/UiFocusManager/UiTabOutHandler.d.ts +1 -1
- package/esm/@ui/UiFocusManager/UiTabOutHandler.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/utils.d.ts +1 -1
- package/esm/@ui/UiFocusManager/utils.d.ts.map +1 -1
- package/esm/@ui/UiGeneralAccessRadio/UiGeneralAccessRadio.d.ts.map +1 -1
- package/esm/@ui/UiGeneralAccessRadio/UiGeneralAccessRadio.js +2 -4
- package/esm/@ui/UiGranteeAsyncPicker/UiGranteeAsyncPicker.d.ts.map +1 -1
- package/esm/@ui/UiGranteeAsyncPicker/UiGranteeAsyncPicker.js +2 -5
- package/esm/@ui/UiGranteeAvatar/UiGranteeAvatar.d.ts.map +1 -1
- package/esm/@ui/UiGranteeRow/UiGranteeRow.d.ts.map +1 -1
- package/esm/@ui/UiGranteeRow/UiGranteeRow.js +1 -3
- package/esm/@ui/UiGranteeRowControls/UiGranteeRowControls.d.ts.map +1 -1
- package/esm/@ui/UiGranteeRowControls/UiGranteeRowControls.js +1 -2
- package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.js +58 -168
- package/esm/@ui/UiIconButton/UiIconButtonRenderer.js +1 -2
- package/esm/@ui/UiInlineTextGenerator/UiInlineTextGenerator.js +1 -2
- package/esm/@ui/UiLabelsChecklist/UiLabelsChecklist.d.ts +1 -1
- package/esm/@ui/UiLabelsChecklist/UiLabelsChecklist.d.ts.map +1 -1
- package/esm/@ui/UiLabelsChecklist/UiLabelsChecklist.js +1 -5
- package/esm/@ui/UiLabelsList/UiLabelsList.js +1 -2
- package/esm/@ui/UiListbox/UiListbox.js +1 -5
- package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js +1 -3
- package/esm/@ui/UiMenu/UiMenu.js +3 -7
- package/esm/@ui/UiMenu/components/defaults/DefaultUiMenuContent.js +1 -2
- package/esm/@ui/UiMenu/components/defaults/DefaultUiMenuGroupItem.js +1 -2
- package/esm/@ui/UiMenu/context.d.ts.map +1 -1
- package/esm/@ui/UiMenu/itemUtils.d.ts +3 -3
- package/esm/@ui/UiMenu/itemUtils.d.ts.map +1 -1
- package/esm/@ui/UiModalDialog/UiDialogBody.d.ts.map +1 -1
- package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts.map +1 -1
- package/esm/@ui/UiNavigationBypass/UiNavigationBypass.js +1 -3
- package/esm/@ui/UiObjectShareDialog/UiObjectShareDialogCard.d.ts.map +1 -1
- package/esm/@ui/UiObjectShareDialog/UiObjectShareDialogCard.js +1 -4
- package/esm/@ui/UiPermissionMenu/UiPermissionMenu.d.ts.map +1 -1
- package/esm/@ui/UiPermissionMenu/UiPermissionMenu.js +1 -2
- package/esm/@ui/UiRadio/UiRadio.d.ts.map +1 -1
- package/esm/@ui/UiRadio/UiRadio.js +1 -4
- package/esm/@ui/UiRadioRow/UiRadioRow.d.ts.map +1 -1
- package/esm/@ui/UiRadioRow/UiRadioRow.js +1 -3
- package/esm/@ui/UiSectionHeading/UiSectionHeading.js +1 -2
- package/esm/@ui/UiTabs/context.d.ts.map +1 -1
- package/esm/@ui/UiTabs/defaultComponents/DefaultUiTabsAllTabs.js +1 -2
- package/esm/@ui/UiTabs/defaultComponents/DefaultUiTabsAllTabsButton.d.ts +2 -4
- package/esm/@ui/UiTabs/defaultComponents/DefaultUiTabsAllTabsButton.d.ts.map +1 -1
- package/esm/@ui/UiTabs/defaultComponents/DefaultUiTabsContainer.js +2 -4
- package/esm/@ui/UiTabs/defaultComponents/DefaultUiTabsTab.js +1 -3
- package/esm/@ui/UiTag/UiTag.js +1 -2
- package/esm/@ui/UiTags/UiTags.js +3 -9
- package/esm/@ui/UiTags/interactions.d.ts.map +1 -1
- package/esm/@ui/UiTextInput/UiTextInput.js +1 -2
- package/esm/@ui/UiToast/UiToastsContainer.js +2 -4
- package/esm/@ui/UiToast/types.d.ts.map +1 -1
- package/esm/@ui/UiTooltip/UiTooltip.js +1 -2
- package/esm/@ui/UiTooltip/utils.d.ts +4 -4
- package/esm/@ui/UiTooltip/utils.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/UITreeviewItem.js +1 -2
- package/esm/@ui/UiTreeview/UiTreeViewEvents.d.ts.map +1 -1
- package/esm/@ui/hooks/useScopedId.d.ts +1 -1
- package/esm/@ui/hooks/useScopedId.d.ts.map +1 -1
- package/esm/@ui/hooks/useVirtualizerRectObserver.d.ts.map +1 -1
- package/esm/AddButton/AddButton.js +1 -3
- package/esm/Bubble/Bubble.js +1 -5
- package/esm/Bubble/BubbleTrigger.js +1 -2
- package/esm/Bubble/withBubble.js +1 -3
- package/esm/Button/Button.js +1 -3
- package/esm/CatalogItemPicker/CatalogItemPickerBody.js +1 -3
- package/esm/CatalogItemPicker/CatalogItemPickerParts.js +3 -7
- package/esm/CatalogItemPicker/DateDatasetPickerItem.js +3 -6
- package/esm/CatalogItemPicker/messages.d.ts.map +1 -1
- package/esm/CatalogItemPicker/useCatalogItemPicker.d.ts +2 -2
- package/esm/CatalogItemPicker/useCatalogItemPickerState.d.ts +1 -1
- package/esm/CatalogItemPicker/useCatalogItemPickerState.d.ts.map +1 -1
- package/esm/CatalogItemPicker/utils.d.ts +3 -3
- package/esm/CatalogItemPicker/utils.d.ts.map +1 -1
- package/esm/ChartSorting/ChartSorting.js +1 -5
- package/esm/ChartSorting/ChartSortingDropdown.js +1 -2
- package/esm/ChartSorting/MeasureDropdown/MeasureDropdown.js +3 -7
- package/esm/ChartSorting/types.js +1 -2
- package/esm/ColorPicker/ColorPicker.js +1 -7
- package/esm/ColorPicker/components/ColorPickerMatrix.d.ts +2 -1
- package/esm/ColorPicker/components/ColorPickerMatrix.d.ts.map +1 -1
- package/esm/ColorPicker/components/ColorPickerMatrix.js +1 -3
- package/esm/ColorPicker/components/ColorsPreview.d.ts +2 -1
- package/esm/ColorPicker/components/ColorsPreview.d.ts.map +1 -1
- package/esm/ColorPicker/components/ColorsPreview.js +2 -6
- package/esm/ColorPicker/components/HexColorInput.d.ts +2 -1
- package/esm/ColorPicker/components/HexColorInput.d.ts.map +1 -1
- package/esm/ColorPicker/components/HexColorInput.js +1 -3
- package/esm/ColorPicker/components/HueColorPicker.d.ts +1 -1
- package/esm/ColorPicker/components/HueColorPicker.d.ts.map +1 -1
- package/esm/DateDatasets/dateDatasets.d.ts.map +1 -1
- package/esm/Datepicker/Datepicker.js +2 -4
- package/esm/DescriptionPanel/DescriptionPanel.d.ts.map +1 -1
- package/esm/DescriptionPanel/DescriptionPanel.js +1 -3
- package/esm/DescriptionPanel/EllipsisText.js +1 -4
- package/esm/DescriptionPanel/MetadataList.js +1 -4
- package/esm/Dialog/CommunityEditionDialog.js +1 -3
- package/esm/Dialog/ConfirmDialogBase.js +1 -3
- package/esm/Dialog/ConfirmDialogFooter.js +1 -2
- package/esm/Dialog/CsvDelimiterPicker.d.ts.map +1 -1
- package/esm/Dialog/CsvDelimiterPicker.js +3 -6
- package/esm/Dialog/DialogBase.js +1 -3
- package/esm/Dialog/DialogCloseButton.js +1 -5
- package/esm/Dialog/DialogList/DialogListHeader.js +1 -2
- package/esm/Dialog/DialogList/DialogListItemBasic.js +2 -7
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/EmbedInsightDialogBase.js +1 -2
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/CodeLanguageSelect.js +1 -7
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/CodeOptions.js +1 -2
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/CompleteListPropsMessage.js +1 -3
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/ComponentTypeItem.js +1 -4
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/ComponentTypeSelect.js +1 -3
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/EmbedInsightContent.js +1 -5
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/HeightSetting.js +1 -3
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/LocaleSetting.js +1 -2
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.js +1 -2
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/PrepareEnvMessage.js +1 -3
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/ReactOptions.js +1 -3
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/ToggleSwitch.js +1 -6
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/WebComponentsOptions.js +1 -2
- package/esm/Dialog/EmbedInsightDialog/utils.d.ts.map +1 -1
- package/esm/Dialog/ExportDialogBase.js +1 -4
- package/esm/Dialog/ExportTabularPdfDialog.js +2 -5
- package/esm/Dialog/FooterButtons.js +1 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.js +1 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeContent.js +1 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/AsyncSelectComponents.js +1 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/ComponentInteractionContext.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ComponentLabelsContext.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeIcons.js +2 -6
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeItem.js +4 -14
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeGroupItem.js +2 -4
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeUserItem.js +2 -5
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularPermissionsDropdownBody.js +1 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/permissionsLogic.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/usePermissionsDropdownState.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js +1 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeContent.js +1 -4
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareLink.js +2 -4
- package/esm/Dialog/ShareDialog/ShareDialogBase/SharedObjectCheckboxControl.js +1 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/backend/loadGranteeOptionsPromise.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/backend/useGetAccessList.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/utils.d.ts +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/utils.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/shareDialogMappers.d.ts +2 -2
- package/esm/Dialog/ShareDialog/shareDialogMappers.d.ts.map +1 -1
- package/esm/Dialog/StylingEditorDialog/BubbleHeaderSeparator.js +1 -4
- package/esm/Dialog/StylingEditorDialog/StylingEditorDialog.js +5 -18
- package/esm/Dialog/StylingEditorDialog/StylingEditorDialogFooter.js +1 -5
- package/esm/Dialog/StylingEditorDialog/StylingExample.js +1 -5
- package/esm/Dropdown/Dropdown.js +2 -4
- package/esm/Dropdown/DropdownInvertableSelect.js +1 -5
- package/esm/Dropdown/DropdownList.js +2 -4
- package/esm/Dropdown/customDictionary.d.ts.map +1 -1
- package/esm/FileUpload/FileDropzone/FileDropzone.js +2 -4
- package/esm/FileUpload/FilePickerButton/FilePickerButton.js +1 -3
- package/esm/FileUpload/UploadFileList/UploadFileList.js +2 -6
- package/esm/FileUpload/UploadStatusDialog/UploadStatusDialog.js +2 -7
- package/esm/FileUpload/hooks/useFileInput.d.ts.map +1 -1
- package/esm/FileUpload/parseAcceptedTypes.d.ts.map +1 -1
- package/esm/FileUpload/types.d.ts.map +1 -1
- package/esm/FilterGroupItem/FilterGroupItem.d.ts.map +1 -1
- package/esm/FilterGroupItem/FilterGroupItem.js +1 -9
- package/esm/FilterLabel/FilterLabel.js +1 -2
- package/esm/Form/Checkbox.js +1 -4
- package/esm/Form/InputPure.d.ts.map +1 -1
- package/esm/Form/InputPure.js +3 -6
- package/esm/Header/Header.js +6 -17
- package/esm/Header/Header.test.helpers.d.ts.map +1 -1
- package/esm/Header/HeaderAccount.js +1 -2
- package/esm/Header/HeaderBadgeWithModal.js +1 -2
- package/esm/Header/HeaderDataMenu.js +1 -2
- package/esm/Header/HeaderHelp.js +2 -4
- package/esm/Header/HeaderMenu.d.ts +2 -1
- package/esm/Header/HeaderMenu.d.ts.map +1 -1
- package/esm/Header/HeaderMenu.js +1 -2
- package/esm/Header/HeaderSearchButton.js +1 -2
- package/esm/Header/HeaderUpsellButton.js +1 -3
- package/esm/Header/HeaderWorkspacePickerItem.js +1 -2
- package/esm/Header/WorkspacePickerHomeFooter.js +1 -2
- package/esm/Icon/icons/AlertPaused.js +1 -3
- package/esm/Icon/icons/BoldHyperlink.js +1 -3
- package/esm/Icon/icons/ColumnContainer.js +1 -3
- package/esm/Icon/icons/Columns.js +1 -5
- package/esm/Icon/icons/Dashboard.js +1 -3
- package/esm/Icon/icons/Date.js +1 -5
- package/esm/Icon/icons/Ellipsis.js +1 -3
- package/esm/Icon/icons/Explore.js +1 -3
- package/esm/Icon/icons/GenAI.js +1 -3
- package/esm/Icon/icons/GenAI2.js +1 -3
- package/esm/Icon/icons/Hash.js +1 -3
- package/esm/Icon/icons/Header.js +1 -3
- package/esm/Icon/icons/Image.js +1 -3
- package/esm/Icon/icons/InsightIcons/Bubble.js +1 -3
- package/esm/Icon/icons/InsightIcons/Bullet.js +1 -3
- package/esm/Icon/icons/InsightIcons/Combo.js +1 -3
- package/esm/Icon/icons/InsightIcons/DependencyWheel.js +1 -5
- package/esm/Icon/icons/InsightIcons/Donut.js +1 -3
- package/esm/Icon/icons/InsightIcons/Funnel.js +1 -3
- package/esm/Icon/icons/InsightIcons/Geo.js +1 -3
- package/esm/Icon/icons/InsightIcons/HeadlineChart.js +1 -3
- package/esm/Icon/icons/InsightIcons/HeatMap.js +1 -3
- package/esm/Icon/icons/InsightIcons/Line.js +1 -3
- package/esm/Icon/icons/InsightIcons/Pie.js +1 -3
- package/esm/Icon/icons/InsightIcons/Pyramid.js +1 -3
- package/esm/Icon/icons/InsightIcons/Radar.js +1 -5
- package/esm/Icon/icons/InsightIcons/Repeater.js +1 -3
- package/esm/Icon/icons/InsightIcons/Sankey.js +1 -3
- package/esm/Icon/icons/InsightIcons/ScatterPlot.js +1 -3
- package/esm/Icon/icons/InsightIcons/StackedArea.js +1 -3
- package/esm/Icon/icons/InsightIcons/Table.js +1 -3
- package/esm/Icon/icons/InsightIcons/TreeMap.js +1 -3
- package/esm/Icon/icons/InsightIcons/Waterfall.js +1 -3
- package/esm/Icon/icons/InsightPicker.js +1 -3
- package/esm/Icon/icons/Keyword.js +1 -3
- package/esm/Icon/icons/Many.js +1 -3
- package/esm/Icon/icons/Metric.js +1 -3
- package/esm/Icon/icons/RichText.js +1 -3
- package/esm/Icon/icons/Rows.js +1 -3
- package/esm/Icon/icons/SimplifiedDashboard.js +1 -3
- package/esm/Icon/icons/User.js +1 -3
- package/esm/Icon/icons/UserGroup.js +1 -3
- package/esm/Icon/utils.d.ts +1 -1
- package/esm/Icon/utils.d.ts.map +1 -1
- package/esm/List/AsyncList.js +1 -3
- package/esm/List/InsightListItem.js +2 -6
- package/esm/List/InsightListItemDate.js +1 -7
- package/esm/List/InvertableSelect/InvertableSelect.js +2 -4
- package/esm/List/InvertableSelect/InvertableSelectAllCheckbox.js +1 -2
- package/esm/List/InvertableSelect/InvertableSelectItem.js +1 -4
- package/esm/List/InvertableSelect/InvertableSelectSelectionStatus.js +1 -2
- package/esm/List/InvertableSelect/InvertableSelectVirtualised.js +2 -4
- package/esm/List/InvertableSelect/useInvertableSelect.d.ts.map +1 -1
- package/esm/List/LegacyMultiSelectList.d.ts.map +1 -1
- package/esm/List/LegacyMultiSelectList.js +3 -9
- package/esm/List/LegacyMultiSelectListItem.js +1 -4
- package/esm/List/LegacySingleSelectListItem.js +1 -2
- package/esm/List/ListItem.js +2 -5
- package/esm/List/MultiSelectList.js +3 -9
- package/esm/List/MultiSelectListItem.js +1 -4
- package/esm/List/customDictionary.d.ts.map +1 -1
- package/esm/LoadingSpinner/LoadingSpinner.js +1 -3
- package/esm/Menu/menuOpener/MenuOpenedByClick.js +1 -9
- package/esm/Menu/positioning/MenuPosition.js +1 -3
- package/esm/Messages/toasts/ToastsCenter.js +1 -3
- package/esm/Messages/toasts/ToastsCenterMessage.js +2 -6
- package/esm/Messages/toasts/context.d.ts +1 -1
- package/esm/Messages/toasts/context.d.ts.map +1 -1
- package/esm/Messages/toasts/useToastMessage.d.ts.map +1 -1
- package/esm/Overlay/FullScreenOverlay.d.ts.map +1 -1
- package/esm/Overlay/Overlay.d.ts.map +1 -1
- package/esm/Overlay/Overlay.js +1 -2
- package/esm/Overlay/OverlayContext.d.ts.map +1 -1
- package/esm/ParameterControl/ParameterControlDropdown.js +2 -12
- package/esm/ParameterControl/ParameterInput.js +1 -4
- package/esm/ParameterPicker/ParameterPicker.js +5 -13
- package/esm/RecurrenceForm/CronExpression.js +2 -7
- package/esm/RecurrenceForm/DateTime.js +2 -7
- package/esm/RecurrenceForm/Recurrence.js +2 -5
- package/esm/RecurrenceForm/RecurrenceForm.js +1 -2
- package/esm/RecurrenceForm/constants.d.ts.map +1 -1
- package/esm/RecurrenceForm/useCronValidation.d.ts.map +1 -1
- package/esm/RecurrenceForm/useCronValidation.js +1 -2
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.d.ts +2 -1
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.d.ts.map +1 -1
- package/esm/RecurrenceForm/utils/utils.d.ts +4 -3
- package/esm/RecurrenceForm/utils/utils.d.ts.map +1 -1
- package/esm/RichText/RichTextWithTooltip.js +1 -12
- package/esm/RichText/hooks/useEvaluatedMetricsAndAttributes.d.ts.map +1 -1
- package/esm/RichText/plugins/rehype-references.d.ts.map +1 -1
- package/esm/RichText/plugins/remark-references.d.ts.map +1 -1
- package/esm/ScrollGradient/ScrollGradient.js +1 -3
- package/esm/ScrollablePanel/ScrollContext.d.ts +3 -3
- package/esm/ScrollablePanel/ScrollContext.d.ts.map +1 -1
- package/esm/SettingItem/SettingItem.js +2 -11
- package/esm/SettingWidget/FooterButtons.js +1 -2
- package/esm/SettingWidget/SimpleSettingsWidget/SimpleSettingWidget.js +1 -4
- package/esm/SettingWidget/StylingSettingWidget/StylingSettingBody.js +2 -8
- package/esm/SettingWidget/StylingSettingWidget/StylingSettingListItem.js +1 -6
- package/esm/SettingWidget/StylingSettingWidget/StylingSettingWidget.js +1 -5
- package/esm/SettingWidget/StylingSettingWidget/utils.d.ts.map +1 -1
- package/esm/SettingWidget/TooltipIcon.js +1 -3
- package/esm/SettingWidget/constants.d.ts.map +1 -1
- package/esm/ShortenedText/ShortenedText.js +2 -5
- package/esm/Timepicker/Timepicker.d.ts +1 -1
- package/esm/Timepicker/Timepicker.d.ts.map +1 -1
- package/esm/WidgetNotice/WidgetNotice.js +1 -6
- package/esm/ZoomContext/ZoomContext.d.ts.map +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/measureNumberFormat/MeasureNumberFormat.js +1 -2
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.d.ts +1 -1
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.js +1 -7
- package/esm/measureNumberFormat/customFormatDialog/DocumentationLink.js +1 -3
- package/esm/measureNumberFormat/customFormatDialog/FormatInput.d.ts +1 -1
- package/esm/measureNumberFormat/customFormatDialog/FormatInput.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/FormatInput.js +1 -4
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.d.ts +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.js +1 -6
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownToggleButton.js +1 -3
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.d.ts +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.js +1 -2
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.d.ts +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.js +2 -5
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.d.ts +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.js +1 -5
- package/esm/measureNumberFormat/customFormatDialog/shared/PreviewRows.js +1 -3
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdown.d.ts +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdown.d.ts.map +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.d.ts +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.d.ts.map +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.js +1 -2
- package/esm/measureNumberFormat/typings.js +1 -2
- package/esm/responsive/ResponsiveContext.d.ts.map +1 -1
- package/esm/responsive/useMediaQuery.d.ts.map +1 -1
- package/esm/sdk-ui-kit.d.ts +37 -39
- package/esm/syntaxHighlightingInput/hooks/useAutocompletion.d.ts.map +1 -1
- package/esm/syntaxHighlightingInput/hooks/useEventHandlers.d.ts.map +1 -1
- package/esm/typings/positioning.js +1 -2
- package/esm/typings/utilities.js +1 -2
- package/esm/utils/domUtilities.d.ts +7 -7
- package/esm/utils/domUtilities.d.ts.map +1 -1
- package/esm/utils/domUtilities.js +3 -1
- package/esm/utils/events.d.ts +9 -9
- package/esm/utils/events.d.ts.map +1 -1
- package/esm/utils/overlay.d.ts.map +1 -1
- package/esm/utils/positioning.d.ts.map +1 -1
- package/esm/utils/useId.d.ts +1 -1
- package/esm/utils/useId.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/@ui/UiChip/UiChip.scss +6 -6
- package/src/@ui/UiIcon/UiIcon.scss +2 -1
- package/src/@ui/UiLink/UiLink.scss +5 -6
- package/src/CatalogItemPicker/CatalogItemPicker.scss +12 -0
- package/src/FileUpload/UploadStatusDialog/UploadStatusDialog.scss +1 -2
- package/styles/css/dialog.css.map +1 -1
- package/styles/css/header.css.map +1 -1
- package/styles/css/main.css +7 -1
- package/styles/css/main.css.map +1 -1
- package/styles/css/messages.css +1 -1
- package/styles/css/messages.css.map +1 -1
- package/styles/css/overlay.css.map +1 -1
- package/styles/scss/dialog.scss +4 -5
- package/styles/scss/header.scss +1 -2
- package/styles/scss/messages.scss +12 -12
- package/styles/scss/overlay.scss +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShareDialogBase.d.ts","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,WAAW,EAEhB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAI7B,M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B,MAAM,YAAY,CAAC;AAoLpB;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,oBAAoB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACrD,qBAAqB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACtD,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,UAAU,EAAE,cAAc,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,wBAAwB,EAAE,WAAW,EAAE,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,2BAA2B,EAAE,CAAC,qBAAqB,EAAE,OAAO,KAAK,IAAI,CAAC;IACtE,4BAA4B,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnE,0BAA0B,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACpE;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAW,qBAAqB,KAAG,6BAgJjE,CAAC"}
|
|
@@ -70,7 +70,7 @@ export declare const getAppliedGrantees: (grantees: GranteeItem[], granteesToAdd
|
|
|
70
70
|
/**
|
|
71
71
|
* @internal
|
|
72
72
|
*/
|
|
73
|
-
export declare const getGranteeItemTestId: (grantee: GranteeItem, prefix?: "option"
|
|
73
|
+
export declare const getGranteeItemTestId: (grantee: GranteeItem, prefix?: "option") => string;
|
|
74
74
|
/**
|
|
75
75
|
* @internal
|
|
76
76
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,KAAK,EACV,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAKrB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,yBAAyB,2BAA2B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,aAO1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,qBAG3B,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/utils.ts"],"names":[],"m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EG;AACH,eAAO,MAAM,WAAW,UAAW,WAAW,EAAE,KAAG,OAElD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,UAAW,WAAW,EAAE,KAAG,OAEtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,aACjB,WAAW,EAAE,iBACR,WAAW,EAAE,oBACV,WAAW,EAAE,KAChC,WAAW,EAGb,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAAa,WAAW,WAAW,QAAQ,KAAG,MAI9E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,YAAa,WAAW,KAAG,MAGpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wCAAwC,oBAChC,sBAAsB,KACxC,wBAAwB,GAAG,SAU7B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,eAAgB,MAAM,eAAe,KAAK,YAI7E,CAAC"}
|
|
@@ -28,7 +28,7 @@ export declare const mapShareStatusToGroupAll: (shareStatus: ShareStatus) => IGr
|
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
|
-
export declare const mapGranteesToGranularAccessGrantees: (grantees: GranteeItem[], added?: boolean
|
|
31
|
+
export declare const mapGranteesToGranularAccessGrantees: (grantees: GranteeItem[], added?: boolean) => IGranularAccessGrantee[];
|
|
32
32
|
/**
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
@@ -57,5 +57,5 @@ export declare const mapGranteesToShareStatus: (grantees: GranteeItem[], grantee
|
|
|
57
57
|
/**
|
|
58
58
|
* @internal
|
|
59
59
|
*/
|
|
60
|
-
export declare const mapSharedObjectToAffectedSharedObject: (sharedObject: ISharedObject, owner:
|
|
60
|
+
export declare const mapSharedObjectToAffectedSharedObject: (sharedObject: ISharedObject, owner: IGranteeUser | IGranteeInactiveOwner, isLockingSupported: boolean, isLeniencyControlSupported: boolean, areGranularPermissionsSupported?: boolean, isMetadataObjectLockingSupported?: boolean, canWorkspaceManagerSeeEverySharedObject?: boolean) => IAffectedSharedObject;
|
|
61
61
|
//# sourceMappingURL=shareDialogMappers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shareDialogMappers.d.ts","sourceRoot":"","sources":["../../../src/Dialog/ShareDialog/shareDialogMappers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,WAAW,EAOnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAK5B,MAAM,4BAA4B,CAAC;AASpC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAUhD;;GAEG;AACH,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"shareDialogMappers.d.ts","sourceRoot":"","sources":["../../../src/Dialog/ShareDialog/shareDialogMappers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,WAAW,EAOnB,MAAM,qBAAqB,CAAC;AAG7B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eAAO,MAAM,+BAA+B,wBACnB,mBAAmB,eAC3B,KAAK,KACnB,WAeF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,aACvB,WAAW,EAAE,iBACR,WAAW,EAAE,oBACV,WAAW,EAAE,KAChC,WAYF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qCAAqC,iBAChC,aAAa,SACpB,YAAY,GAAG,qBAAqB,sBACvB,OAAO,8BACC,OAAO,+IAIpC,qBAcF,CAAC"}
|
|
@@ -7,8 +7,5 @@ import { Typography } from "../../Typography/Typography.js";
|
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
9
|
export function BubbleHeaderSeparator({ title, message }) {
|
|
10
|
-
return (_jsxs("div", { className: "gd-bubble-header-separator", children: [title ? _jsx(Typography, { tagName: "h3", children: title }) : null, message ? (_jsxs(BubbleHoverTrigger, { className: "gd-bubble-header-separator-icon", showDelay: 0, hideDelay: 0, children: [
|
|
11
|
-
_jsx("div", { className: "gd-icon-circle-question" }), _jsx(Bubble, { className: "bubble-primary", arrowOffsets: { "tc br": [13, -10] }, alignPoints: [{ align: "tc br" }], children: message })
|
|
12
|
-
] })) : null, _jsx("div", { className: "gd-bubble-header-separator-divider" })
|
|
13
|
-
] }));
|
|
10
|
+
return (_jsxs("div", { className: "gd-bubble-header-separator", children: [title ? _jsx(Typography, { tagName: "h3", children: title }) : null, message ? (_jsxs(BubbleHoverTrigger, { className: "gd-bubble-header-separator-icon", showDelay: 0, hideDelay: 0, children: [_jsx("div", { className: "gd-icon-circle-question" }), _jsx(Bubble, { className: "bubble-primary", arrowOffsets: { "tc br": [13, -10] }, alignPoints: [{ align: "tc br" }], children: message })] })) : null, _jsx("div", { className: "gd-bubble-header-separator-divider" })] }));
|
|
14
11
|
}
|
|
@@ -110,28 +110,16 @@ function StylingEditorDialogCore({ title, tooltip, link, stylingItem, examples,
|
|
|
110
110
|
}, className), onClose: () => {
|
|
111
111
|
onExit?.(nameField, definitionField);
|
|
112
112
|
onClose?.();
|
|
113
|
-
}, displayCloseButton: true, submitOnEnterKey: false, accessibilityConfig: { titleElementId }, children: [
|
|
114
|
-
_jsxs("div", { className: "gd-styling-editor-dialog-header", children: [showBackButton ? (_jsx("div", { className: "gd-styling-editor-dialog-header-back-button", children: _jsx(Button, { className: "gd-button-primary gd-button-icon-only gd-icon-navigateleft s-navigate-back-button", onClick: () => {
|
|
113
|
+
}, displayCloseButton: true, submitOnEnterKey: false, accessibilityConfig: { titleElementId }, children: [_jsxs("div", { className: "gd-styling-editor-dialog-header", children: [showBackButton ? (_jsx("div", { className: "gd-styling-editor-dialog-header-back-button", children: _jsx(Button, { className: "gd-button-primary gd-button-icon-only gd-icon-navigateleft s-navigate-back-button", onClick: () => {
|
|
115
114
|
onExit?.(nameField, definitionField);
|
|
116
115
|
onClose?.();
|
|
117
|
-
} }) })) : null, _jsx(Typography, { tagName: "h2", className: "gd-styling-editor-dialog-header-title", id: titleElementId, children: title })
|
|
118
|
-
] }), _jsxs("div", { className: "gd-styling-editor-dialog-content", children: [
|
|
119
|
-
_jsxs("form", { className: "gd-styling-editor-dialog-content-form", onSubmit: (e) => e.preventDefault(), children: [
|
|
120
|
-
_jsxs("label", { className: "gd-styling-editor-dialog-content-form-input", children: [intl.formatMessage({ id: "stylingEditor.dialog.name" }), _jsx("input", { "aria-label": "Styling item name", className: "gd-input-field s-input-field", type: "text", value: nameField, onChange: (e) => setNameField(e.target.value) })
|
|
121
|
-
] }), renderDefinitionEditor ? (
|
|
122
|
-
// Not a <label>: a custom editor brings its own controls, and a label
|
|
123
|
-
// wrapping them would route clicks on those to the labelled element. The
|
|
124
|
-
// editor is expected to carry its own accessible name instead.
|
|
125
|
-
_jsxs("div", { className: "gd-styling-editor-dialog-content-form-textarea", children: [intl.formatMessage({ id: "stylingEditor.dialog.definition" }), renderDefinitionEditor({
|
|
116
|
+
} }) })) : null, _jsx(Typography, { tagName: "h2", className: "gd-styling-editor-dialog-header-title", id: titleElementId, children: title })] }), _jsxs("div", { className: "gd-styling-editor-dialog-content", children: [_jsxs("form", { className: "gd-styling-editor-dialog-content-form", onSubmit: (e) => e.preventDefault(), children: [_jsxs("label", { className: "gd-styling-editor-dialog-content-form-input", children: [intl.formatMessage({ id: "stylingEditor.dialog.name" }), _jsx("input", { "aria-label": "Styling item name", className: "gd-input-field s-input-field", type: "text", value: nameField, onChange: (e) => setNameField(e.target.value) })] }), renderDefinitionEditor ? (_jsxs("div", { className: "gd-styling-editor-dialog-content-form-textarea", children: [intl.formatMessage({ id: "stylingEditor.dialog.definition" }), renderDefinitionEditor({
|
|
126
117
|
value: definitionField,
|
|
127
118
|
onChange: setDefinitionField,
|
|
128
|
-
})] })) : (_jsxs("label", { className: "gd-styling-editor-dialog-content-form-textarea", children: [intl.formatMessage({ id: "stylingEditor.dialog.definition" }), _jsx("textarea", { "aria-label": "Styling item definition", className: "gd-input-field s-textarea-field", wrap: "off", value: definitionField, onChange: (e) => setDefinitionField(e.target.value) })
|
|
129
|
-
] })), definitionContentWarning && !definitionContentError ? (_jsx(Message, { type: "warning", className: "gd-styling-editor-dialog-content-form-warning s-styling-editor-warning", children: definitionContentWarning })) : null] }), providedExamples ? (_jsxs("div", { className: cx("gd-styling-editor-dialog-content-examples", "s-gd-styling-editor-dialog-content-examples"), children: [
|
|
130
|
-
_jsx(BubbleHeaderSeparator, { title: intl.formatMessage({ id: "stylingEditor.dialog.examples" }), message: tooltip }), _jsx("div", { className: "gd-styling-editor-dialog-content-examples-list", children: examples.map((example, index) => (_jsx(StylingExample, { name: example.name ?? "", colors: exampleToColorPreview(example.content), onClick: () => {
|
|
119
|
+
})] })) : (_jsxs("label", { className: "gd-styling-editor-dialog-content-form-textarea", children: [intl.formatMessage({ id: "stylingEditor.dialog.definition" }), _jsx("textarea", { "aria-label": "Styling item definition", className: "gd-input-field s-textarea-field", wrap: "off", value: definitionField, onChange: (e) => setDefinitionField(e.target.value) })] })), definitionContentWarning && !definitionContentError ? (_jsx(Message, { type: "warning", className: "gd-styling-editor-dialog-content-form-warning s-styling-editor-warning", children: definitionContentWarning })) : null] }), providedExamples ? (_jsxs("div", { className: cx("gd-styling-editor-dialog-content-examples", "s-gd-styling-editor-dialog-content-examples"), children: [_jsx(BubbleHeaderSeparator, { title: intl.formatMessage({ id: "stylingEditor.dialog.examples" }), message: tooltip }), _jsx("div", { className: "gd-styling-editor-dialog-content-examples-list", children: examples.map((example, index) => (_jsx(StylingExample, { name: example.name ?? "", colors: exampleToColorPreview(example.content), onClick: () => {
|
|
131
120
|
setNameField(example.name ?? "");
|
|
132
121
|
setDefinitionField(JSON.stringify(example.content, null, 4));
|
|
133
|
-
} }, index))) })
|
|
134
|
-
] })) : null] }), _jsx(StylingEditorDialogFooter, { disableSubmit: isSubmitDisabled, showProgressIndicator: showProgressIndicator, link: link, errorMessage: errorMessage, onSubmit: () => {
|
|
122
|
+
} }, index))) })] })) : null] }), _jsx(StylingEditorDialogFooter, { disableSubmit: isSubmitDisabled, showProgressIndicator: showProgressIndicator, link: link, errorMessage: errorMessage, onSubmit: () => {
|
|
135
123
|
// Submission is disabled while the definition does not parse, so this only
|
|
136
124
|
// narrows the type rather than guarding a reachable state.
|
|
137
125
|
if (parsedDefinition.ok) {
|
|
@@ -140,6 +128,5 @@ function StylingEditorDialogCore({ title, tooltip, link, stylingItem, examples,
|
|
|
140
128
|
}, onCancel: () => {
|
|
141
129
|
onExit?.(nameField, definitionField);
|
|
142
130
|
onCancel?.();
|
|
143
|
-
}, onHelpClick: onHelpClick })
|
|
144
|
-
] }));
|
|
131
|
+
}, onHelpClick: onHelpClick })] }));
|
|
145
132
|
}
|
|
@@ -13,9 +13,5 @@ import { FooterButtons } from "../FooterButtons.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export function StylingEditorDialogFooter({ link, disableSubmit = false, showProgressIndicator = false, errorMessage, onSubmit, onCancel, onHelpClick = () => { }, }) {
|
|
15
15
|
const intl = useIntl();
|
|
16
|
-
return (_jsxs(Footer, { children: [
|
|
17
|
-
_jsx(Hyperlink, { text: link.text, href: link.url, onClick: () => onHelpClick(), iconClass: "gd-icon-circle-question" }), _jsxs(FooterButtons, { children: [showProgressIndicator ? (_jsx(LoadingSpinner, { className: "gd-loading-equalizer-spinner small s-gd-styling-editor-spinner" })) : null, _jsx(Button, { className: "gd-button-secondary s-dialog-cancel-button", value: intl.formatMessage({ id: "cancel" }), onClick: () => onCancel?.() }), _jsxs(BubbleHoverTrigger, { className: "gd-button", showDelay: 0, hideDelay: 0, children: [
|
|
18
|
-
_jsx(Button, { className: "gd-button-action s-dialog-submit-button", value: intl.formatMessage({ id: "save" }), onClick: () => onSubmit?.(), disabled: disableSubmit }), errorMessage && disableSubmit ? (_jsx(Bubble, { className: "bubble-negative", alignPoints: [{ align: "tc br" }], children: errorMessage })) : null] })
|
|
19
|
-
] })
|
|
20
|
-
] }));
|
|
16
|
+
return (_jsxs(Footer, { children: [_jsx(Hyperlink, { text: link.text, href: link.url, onClick: () => onHelpClick(), iconClass: "gd-icon-circle-question" }), _jsxs(FooterButtons, { children: [showProgressIndicator ? (_jsx(LoadingSpinner, { className: "gd-loading-equalizer-spinner small s-gd-styling-editor-spinner" })) : null, _jsx(Button, { className: "gd-button-secondary s-dialog-cancel-button", value: intl.formatMessage({ id: "cancel" }), onClick: () => onCancel?.() }), _jsxs(BubbleHoverTrigger, { className: "gd-button", showDelay: 0, hideDelay: 0, children: [_jsx(Button, { className: "gd-button-action s-dialog-submit-button", value: intl.formatMessage({ id: "save" }), onClick: () => onSubmit?.(), disabled: disableSubmit }), errorMessage && disableSubmit ? (_jsx(Bubble, { className: "bubble-negative", alignPoints: [{ align: "tc br" }], children: errorMessage })) : null] })] })] }));
|
|
21
17
|
}
|
|
@@ -7,9 +7,5 @@ import { ColorPreview } from "./ColorPreview.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export function StylingExample({ name, colors, onClick }) {
|
|
9
9
|
const intl = useIntl();
|
|
10
|
-
return (_jsxs("div", { className: "gd-styling-example", children: [
|
|
11
|
-
_jsxs("div", { className: "gd-styling-example-label", children: [
|
|
12
|
-
_jsx("div", { className: "gd-styling-example-label-name", children: name }), _jsx("div", { "aria-label": "Styling example action", className: "gd-styling-example-label-action s-gd-styling-example-label-action", onClick: onClick, children: intl.formatMessage({ id: "stylingEditor.dialog.example.paste" }) })
|
|
13
|
-
] }), _jsx(ColorPreview, { className: "color-preview-small", colors: colors })
|
|
14
|
-
] }));
|
|
10
|
+
return (_jsxs("div", { className: "gd-styling-example", children: [_jsxs("div", { className: "gd-styling-example-label", children: [_jsx("div", { className: "gd-styling-example-label-name", children: name }), _jsx("div", { "aria-label": "Styling example action", className: "gd-styling-example-label-action s-gd-styling-example-label-action", onClick: onClick, children: intl.formatMessage({ id: "stylingEditor.dialog.example.paste" }) })] }), _jsx(ColorPreview, { className: "color-preview-small", colors: colors })] }));
|
|
15
11
|
}
|
package/esm/Dropdown/Dropdown.js
CHANGED
|
@@ -152,16 +152,14 @@ export function Dropdown({ isOpen: isOpenProp, onToggle, className, openOnInit,
|
|
|
152
152
|
onAlign?.(alignment);
|
|
153
153
|
}, [onAlign]);
|
|
154
154
|
const isMobileDevice = useMediaQuery("mobileDevice");
|
|
155
|
-
const renderDropdown = isOpen ? (fullscreenOnMobile && isMobileDevice ? (_jsx(FullScreenOverlay, { alignTo: "body", alignPoints: MOBILE_DROPDOWN_ALIGN_POINTS, onAlign: handleOverlayAlign, children: _jsx(UiFocusManager, { tabOutHandler: shouldTrapFocus ? undefined : handleTabOut, enableFocusTrap: shouldTrapFocus, enableAutofocus: autofocusOnOpen ? { initialFocus, refocusKey: overlayAligned } : false, enableReturnFocusOnUnmount: { returnFocusTo }, children: _jsxs("div", { className: "gd-mobile-dropdown-overlay overlay gd-flex-row-container", onKeyDown: handleBodyKeyDown, children: [
|
|
156
|
-
_jsx("div", { className: "gd-mobile-dropdown-header gd-flex-item", children: _renderButton({
|
|
155
|
+
const renderDropdown = isOpen ? (fullscreenOnMobile && isMobileDevice ? (_jsx(FullScreenOverlay, { alignTo: "body", alignPoints: MOBILE_DROPDOWN_ALIGN_POINTS, onAlign: handleOverlayAlign, children: _jsx(UiFocusManager, { tabOutHandler: shouldTrapFocus ? undefined : handleTabOut, enableFocusTrap: shouldTrapFocus, enableAutofocus: autofocusOnOpen ? { initialFocus, refocusKey: overlayAligned } : false, enableReturnFocusOnUnmount: { returnFocusTo }, children: _jsxs("div", { className: "gd-mobile-dropdown-overlay overlay gd-flex-row-container", onKeyDown: handleBodyKeyDown, children: [_jsx("div", { className: "gd-mobile-dropdown-header gd-flex-item", children: _renderButton({
|
|
157
156
|
...renderButtonProps,
|
|
158
157
|
isMobile: true,
|
|
159
158
|
buttonRef: { current: null },
|
|
160
159
|
}) }), _jsx("div", { className: "gd-mobile-dropdown-content gd-flex-item-stretch gd-flex-row-container", children: renderBody({
|
|
161
160
|
...renderBodyProps,
|
|
162
161
|
isMobile: true,
|
|
163
|
-
}) })
|
|
164
|
-
] }) }) })) : (_jsx(Overlay, { alignTo: `#${dropdownButtonId}`, positionType: overlayPositionType, alignPoints: alignPoints, closeOnOutsideClick: closeOnOutsideClick, closeOnMouseDrag: closeOnMouseDrag, closeOnParentScroll: closeOnParentScroll, closeOnEscape: closeOnEscape, shouldCloseOnClick: shouldCloseOnClick, ignoreClicksOnByClass: ignoreClicksOnByClass, onAlign: handleOverlayAlign, onClose: closeDropdown,
|
|
162
|
+
}) })] }) }) })) : (_jsx(Overlay, { alignTo: `#${dropdownButtonId}`, positionType: overlayPositionType, alignPoints: alignPoints, closeOnOutsideClick: closeOnOutsideClick, closeOnMouseDrag: closeOnMouseDrag, closeOnParentScroll: closeOnParentScroll, closeOnEscape: closeOnEscape, shouldCloseOnClick: shouldCloseOnClick, ignoreClicksOnByClass: ignoreClicksOnByClass, onAlign: handleOverlayAlign, onClose: closeDropdown,
|
|
165
163
|
// Overlay prevents event propagation by default using defaultProps for these
|
|
166
164
|
onClick: enableEventPropagation ? () => { } : undefined, onMouseOver: enableEventPropagation ? () => { } : undefined, onMouseUp: enableEventPropagation ? () => { } : undefined, zIndex: overlayZIndex, children: _jsx(UiFocusManager, { tabOutHandler: shouldTrapFocus ? undefined : handleTabOut, enableFocusTrap: shouldTrapFocus, enableAutofocus: autofocusOnOpen ? { initialFocus, refocusKey: overlayAligned } : false, enableReturnFocusOnUnmount: { returnFocusTo }, children: _jsx("div", { className: cx("overlay", DROPDOWN_BODY_CLASS), onKeyDown: handleBodyKeyDown, children: renderBody({
|
|
167
165
|
...renderBodyProps,
|
|
@@ -87,9 +87,5 @@ function DropdownInvertableSelectActions({ onApply, isApplyDisabled, onCancel, }
|
|
|
87
87
|
const intl = useIntl();
|
|
88
88
|
const cancelText = intl.formatMessage(messages.cancel);
|
|
89
89
|
const applyText = intl.formatMessage(messages.apply);
|
|
90
|
-
return (_jsx(_Fragment, { children: _jsxs("div", { className: "gd-invertable-select-actions", children: [
|
|
91
|
-
_jsx(SeparatorLine, {}), _jsxs("div", { className: "gd-invertable-select-actions-buttons", children: [
|
|
92
|
-
_jsx(UiButton, { variant: "secondary", size: "small", onClick: onCancel, label: cancelText }), _jsx(UiButton, { variant: "primary", size: "small", onClick: onApply, label: applyText, isDisabled: isApplyDisabled })
|
|
93
|
-
] })
|
|
94
|
-
] }) }));
|
|
90
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { className: "gd-invertable-select-actions", children: [_jsx(SeparatorLine, {}), _jsxs("div", { className: "gd-invertable-select-actions-buttons", children: [_jsx(UiButton, { variant: "secondary", size: "small", onClick: onCancel, label: cancelText }), _jsx(UiButton, { variant: "primary", size: "small", onClick: onApply, label: applyText, isDisabled: isApplyDisabled })] })] }) }));
|
|
95
91
|
}
|
|
@@ -77,8 +77,7 @@ export function DropdownList({ id, title, className = "", tabsClassName = "", wi
|
|
|
77
77
|
// update string if dropdown is not getting unmounted on close to not have previous search on re-open
|
|
78
78
|
setCurrentSearchString(searchString);
|
|
79
79
|
}, [searchString]);
|
|
80
|
-
return (_jsxs(Fragment, { children: [title ? _jsx("div", { className: "gd-list-title", children: title }) : null, showSearch ? (_jsxs(_Fragment, { children: [
|
|
81
|
-
_jsx("div", { style: searchWrapperStyle, onKeyDown: (e) => {
|
|
80
|
+
return (_jsxs(Fragment, { children: [title ? _jsx("div", { className: "gd-list-title", children: title }) : null, showSearch ? (_jsxs(_Fragment, { children: [_jsx("div", { style: searchWrapperStyle, onKeyDown: (e) => {
|
|
82
81
|
if (isTypingKey(e)) {
|
|
83
82
|
e.stopPropagation();
|
|
84
83
|
}
|
|
@@ -86,8 +85,7 @@ export function DropdownList({ id, title, className = "", tabsClassName = "", wi
|
|
|
86
85
|
ariaLabel: searchLabel,
|
|
87
86
|
} }) }), _jsx(UiSearchResultsAnnouncement, { totalResults: currentSearchString ? itemsCount : undefined, resultValues: itemsCount <= DETAILED_ANNOUNCEMENT_THRESHOLD && itemTitleGetter
|
|
88
87
|
? items.map(itemTitleGetter)
|
|
89
|
-
: undefined })
|
|
90
|
-
] })) : null, showTabs ? (_jsx(DropdownTabs, { tabs: tabs, selectedTabId: selectedTabId, onTabSelect: onTabSelect, className: tabsClassName })) : null, renderBody(), hasNoData ? (_jsx("div", { style: { width: isMobile ? "auto" : width }, children: renderNoData({ hasNoMatchingData }) })) : null, isLoading ? _jsx(LoadingMask, { width: isMobile ? "100%" : width, height: LOADING_HEIGHT }) : null, !isLoading && itemsCount > 0 ? (_jsx(AutoSize, { children: (autoSize) => {
|
|
88
|
+
: undefined })] })) : null, showTabs ? (_jsx(DropdownTabs, { tabs: tabs, selectedTabId: selectedTabId, onTabSelect: onTabSelect, className: tabsClassName })) : null, renderBody(), hasNoData ? (_jsx("div", { style: { width: isMobile ? "auto" : width }, children: renderNoData({ hasNoMatchingData }) })) : null, isLoading ? _jsx(LoadingMask, { width: isMobile ? "100%" : width, height: LOADING_HEIGHT }) : null, !isLoading && itemsCount > 0 ? (_jsx(AutoSize, { children: (autoSize) => {
|
|
91
89
|
const listWidth = isMobile ? autoSize.width : (width ?? (autoSize.width || 200));
|
|
92
90
|
const listHeight = isMobile ? autoSize.height : height;
|
|
93
91
|
const effectiveItemHeight = isMobile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customDictionary.d.ts","sourceRoot":"","sources":["../../src/Dropdown/customDictionary.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"customDictionary.d.ts","sourceRoot":"","sources":["../../src/Dropdown/customDictionary.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;IACvB,0BAA0B;IAC1B,2BAA2B;CAC9B,CAAC"}
|
|
@@ -69,13 +69,11 @@ export const FileDropzone = forwardRef(function FileDropzone({ acceptedFileTypes
|
|
|
69
69
|
}
|
|
70
70
|
return idleLabel;
|
|
71
71
|
})();
|
|
72
|
-
return (_jsxs(_Fragment, { children: [
|
|
73
|
-
_jsx("div", { role: "button", tabIndex: disabled ? -1 : 0, "aria-disabled": disabled, "aria-label": ariaLabel, className: b({
|
|
72
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { role: "button", tabIndex: disabled ? -1 : 0, "aria-disabled": disabled, "aria-label": ariaLabel, className: b({
|
|
74
73
|
active: dragState === "valid",
|
|
75
74
|
invalid: dragState === "invalid",
|
|
76
75
|
disabled,
|
|
77
|
-
}), onClick: handleOpenFilePicker, onDragOver: handleDragOver, onDragLeave: resetDragState, onDrop: handleDrop, onKeyDown: handleKeyDown, children: label }), _jsx("input", { className: inputProps?.className, "data-testid": inputProps?.testId, ref: inputRef, hidden: true, type: "file", disabled: disabled, accept: acceptedFileTypes, multiple: multiple, onChange: handleInputChange })
|
|
78
|
-
] }));
|
|
76
|
+
}), onClick: handleOpenFilePicker, onDragOver: handleDragOver, onDragLeave: resetDragState, onDrop: handleDrop, onKeyDown: handleKeyDown, children: label }), _jsx("input", { className: inputProps?.className, "data-testid": inputProps?.testId, ref: inputRef, hidden: true, type: "file", disabled: disabled, accept: acceptedFileTypes, multiple: multiple, onChange: handleInputChange })] }));
|
|
79
77
|
});
|
|
80
78
|
function isValidDragData(items, acceptedFileTypes, multiple) {
|
|
81
79
|
const fileItems = Array.from(items).filter((item) => item.kind === "file");
|
|
@@ -14,7 +14,5 @@ export function FilePickerButton({ buttonLabel, acceptedFileTypes, multiple = fa
|
|
|
14
14
|
}
|
|
15
15
|
inputRef.current?.click();
|
|
16
16
|
}, [disabled, inputRef]);
|
|
17
|
-
return (_jsxs(_Fragment, { children: [
|
|
18
|
-
_jsx(UiButton, { isDisabled: disabled, label: buttonLabel, onClick: onButtonClick, accessibilityConfig: { ariaLabel }, ...buttonProps }), _jsx("input", { ref: inputRef, hidden: true, type: "file", disabled: disabled, accept: acceptedFileTypes, multiple: multiple, onChange: handleInputChange })
|
|
19
|
-
] }));
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsx(UiButton, { isDisabled: disabled, label: buttonLabel, onClick: onButtonClick, accessibilityConfig: { ariaLabel }, ...buttonProps }), _jsx("input", { ref: inputRef, hidden: true, type: "file", disabled: disabled, accept: acceptedFileTypes, multiple: multiple, onChange: handleInputChange })] }));
|
|
20
18
|
}
|
|
@@ -37,10 +37,7 @@ export function UploadFileList({ files, emptyStateLabel, onRemoveFile, onRetryFi
|
|
|
37
37
|
}
|
|
38
38
|
return (_jsx("ul", { className: b(), "aria-label": intl.formatMessage(messages.listLabel), children: files.map((item) => {
|
|
39
39
|
const isError = item.status === UploadItemStatus.Error;
|
|
40
|
-
return (_jsxs("li", { className: e("item"), children: [
|
|
41
|
-
_jsxs("div", { className: e("item-content"), children: [
|
|
42
|
-
_jsx("span", { className: e("item-name"), children: item.file.name }), _jsx("span", { className: e("item-status"), role: isError ? "alert" : undefined, "aria-live": isError ? undefined : "polite", children: getStatusText(item, intl) })
|
|
43
|
-
] }), _jsxs("div", { className: e("item-actions"), children: [isError && onRetryFile ? (_jsx(UiButton, { label: intl.formatMessage(messages.actionRetry), accessibilityConfig: {
|
|
40
|
+
return (_jsxs("li", { className: e("item"), children: [_jsxs("div", { className: e("item-content"), children: [_jsx("span", { className: e("item-name"), children: item.file.name }), _jsx("span", { className: e("item-status"), role: isError ? "alert" : undefined, "aria-live": isError ? undefined : "polite", children: getStatusText(item, intl) })] }), _jsxs("div", { className: e("item-actions"), children: [isError && onRetryFile ? (_jsx(UiButton, { label: intl.formatMessage(messages.actionRetry), accessibilityConfig: {
|
|
44
41
|
ariaLabel: intl.formatMessage(messages.actionRetryFile, {
|
|
45
42
|
fileName: item.file.name,
|
|
46
43
|
}),
|
|
@@ -48,7 +45,6 @@ export function UploadFileList({ files, emptyStateLabel, onRemoveFile, onRetryFi
|
|
|
48
45
|
ariaLabel: intl.formatMessage(messages.actionRemoveFile, {
|
|
49
46
|
fileName: item.file.name,
|
|
50
47
|
}),
|
|
51
|
-
}, onClick: () => onRemoveFile(item.id) })) : null] })
|
|
52
|
-
] }, item.id));
|
|
48
|
+
}, onClick: () => onRemoveFile(item.id) })) : null] })] }, item.id));
|
|
53
49
|
}) }));
|
|
54
50
|
}
|
|
@@ -15,12 +15,7 @@ export function UploadStatusDialog({ isOpen, title, fileName, status, onClose })
|
|
|
15
15
|
return (_jsx(Dialog, { displayCloseButton: !!onClose, className: b(), onCancel: onClose, onClose: onClose, accessibilityConfig: {
|
|
16
16
|
titleElementId: titleId,
|
|
17
17
|
isModal: true,
|
|
18
|
-
}, children: _jsxs("div", { className: e("content"), "aria-live": "polite", children: [
|
|
19
|
-
_jsxs("div", { className: e("hero-image"), children: [
|
|
20
|
-
_jsx(UiIcon, { type: "file", size: 48, color: "complementary-6" }), status === UploadItemStatus.Uploading || status === UploadItemStatus.Idle ? (_jsx("div", { className: e("status-icon", {
|
|
18
|
+
}, children: _jsxs("div", { className: e("content"), "aria-live": "polite", children: [_jsxs("div", { className: e("hero-image"), children: [_jsx(UiIcon, { type: "file", size: 48, color: "complementary-6" }), status === UploadItemStatus.Uploading || status === UploadItemStatus.Idle ? (_jsx("div", { className: e("status-icon", {
|
|
21
19
|
spinning: status === UploadItemStatus.Uploading,
|
|
22
|
-
}), children: _jsx(UiIcon, { type: "sync", size: 25, color: "primary", backgroundShape: "circle", backgroundColor: "complementary-0", backgroundSize: 30, accessibilityConfig: { ariaHidden: true } }) })) : null, status === UploadItemStatus.Success ? (_jsx("div", { className: e("status-icon"), children: _jsx(UiIcon, { type: "check", size: 20, color: "success", backgroundShape: "circle", backgroundColor: "complementary-0", backgroundSize: 30, accessibilityConfig: { ariaHidden: true } }) })) : null, status === UploadItemStatus.Error ? (_jsx("div", { className: e("status-icon"), children: _jsx(UiIcon, { type: "cross", size: 25, color: "error", backgroundShape: "circle", backgroundColor: "complementary-0", backgroundSize: 30, accessibilityConfig: { ariaHidden: true } }) })) : null] }), _jsxs("h3", { id: titleId, children: [title, fileName ? (_jsxs(_Fragment, { children: [
|
|
23
|
-
_jsx("br", {}),
|
|
24
|
-
"\"", fileName, "\""] })) : null] })
|
|
25
|
-
] }) }));
|
|
20
|
+
}), children: _jsx(UiIcon, { type: "sync", size: 25, color: "primary", backgroundShape: "circle", backgroundColor: "complementary-0", backgroundSize: 30, accessibilityConfig: { ariaHidden: true } }) })) : null, status === UploadItemStatus.Success ? (_jsx("div", { className: e("status-icon"), children: _jsx(UiIcon, { type: "check", size: 20, color: "success", backgroundShape: "circle", backgroundColor: "complementary-0", backgroundSize: 30, accessibilityConfig: { ariaHidden: true } }) })) : null, status === UploadItemStatus.Error ? (_jsx("div", { className: e("status-icon"), children: _jsx(UiIcon, { type: "cross", size: 25, color: "error", backgroundShape: "circle", backgroundColor: "complementary-0", backgroundSize: 30, accessibilityConfig: { ariaHidden: true } }) })) : null] }), _jsxs("h3", { id: titleId, children: [title, fileName ? (_jsxs(_Fragment, { children: [_jsx("br", {}), "\"", fileName, "\""] })) : null] })] }) }));
|
|
26
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileInput.d.ts","sourceRoot":"","sources":["../../../src/FileUpload/hooks/useFileInput.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,OAAO,CAAC;AAE9D;;GAEG;AACH,wBAAgB,YAAY,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI
|
|
1
|
+
{"version":3,"file":"useFileInput.d.ts","sourceRoot":"","sources":["../../../src/FileUpload/hooks/useFileInput.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,OAAO,CAAC;AAE9D;;GAEG;AACH,wBAAgB,YAAY,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI;;+BAIrD,WAAW,CAAC,gBAAgB,CAAC;EAY5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseAcceptedTypes.d.ts","sourceRoot":"","sources":["../../src/FileUpload/parseAcceptedTypes.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,oBAAoB,EAAE,MAAM,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"parseAcceptedTypes.d.ts","sourceRoot":"","sources":["../../src/FileUpload/parseAcceptedTypes.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,oBAAoB,EAAE,MAAM,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,MAAM,KAAG,oBAoB9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/FileUpload/types.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"types.d.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;CAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterGroupItem.d.ts","sourceRoot":"","sources":["../../src/FilterGroupItem/FilterGroupItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiD,KAAK,SAAS,EAAE,KAAK,GAAG,EAAe,MAAM,OAAO,CAAC;AAa7G;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAE7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"FilterGroupItem.d.ts","sourceRoot":"","sources":["../../src/FilterGroupItem/FilterGroupItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiD,KAAK,SAAS,EAAE,KAAK,GAAG,EAAe,MAAM,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
64
|
"gd-is-active": isOpen,
|
|
65
65
|
"gd-is-loaded": isLoaded,
|
|
66
66
|
"gd-is-disabled": disabled,
|
|
67
|
-
}), "aria-haspopup": "dialog", "aria-expanded": isOpen, "aria-describedby": disabled ? tooltipId : undefined, "aria-disabled": disabled, onClick: disabled ? undefined : onClick, onKeyDown: onKeyDown, "aria-controls": isOpen ? dropdownId : undefined, role: "button", tabIndex: 0, ref: handleButtonRef, "data-testid": `s-filter-group-item-${simplifyText(title ?? null)}`, children: [isError || icon ? (_jsx("div", { className: "gd-filter-group-item-icon", children: isError ? _jsx(UiIcon, { type: "crossCircle", size: 12, color: "currentColor" }) : icon })) : null, _jsxs("div", { className: "gd-filter-group-item-body", children: [
|
|
68
|
-
_jsxs("div", { className: "gd-filter-group-item-content", children: [
|
|
69
|
-
_jsxs("div", { className: "gd-filter-group-item-title-content", children: [
|
|
70
|
-
_jsx("div", { className: "gd-filter-group-item-title", children: _jsx(ShortenedText, { tooltipAlignPoints: ALIGN_POINT, "data-testid": "s-filter-group-item-title", ellipsisPosition: "end", children: `${buttonTitle}` }) }), _jsx("div", { className: "gd-filter-group-item-title-extension", children: titleExtension })
|
|
71
|
-
] }), _jsxs("div", { className: "gd-filter-group-item-subtitle", children: [
|
|
72
|
-
_jsx("span", { className: "gd-filter-group-item-selected-items", "data-testid": "s-filter-group-item-subtitle", children: buttonSubtitle }), showSelectionCount && isLoaded ? (_jsx("span", { className: "gd-filter-group-item-selected-items-count", children: `(${itemsCountString})` })) : null] })
|
|
73
|
-
] }), _jsx("div", { className: "gd-filter-group-item-chevron", children: _jsx(UiIcon, { type: "navigateRight", size: 14 }) })
|
|
74
|
-
] })
|
|
75
|
-
] }));
|
|
67
|
+
}), "aria-haspopup": "dialog", "aria-expanded": isOpen, "aria-describedby": disabled ? tooltipId : undefined, "aria-disabled": disabled, onClick: disabled ? undefined : onClick, onKeyDown: onKeyDown, "aria-controls": isOpen ? dropdownId : undefined, role: "button", tabIndex: 0, ref: handleButtonRef, "data-testid": `s-filter-group-item-${simplifyText(title ?? null)}`, children: [isError || icon ? (_jsx("div", { className: "gd-filter-group-item-icon", children: isError ? _jsx(UiIcon, { type: "crossCircle", size: 12, color: "currentColor" }) : icon })) : null, _jsxs("div", { className: "gd-filter-group-item-body", children: [_jsxs("div", { className: "gd-filter-group-item-content", children: [_jsxs("div", { className: "gd-filter-group-item-title-content", children: [_jsx("div", { className: "gd-filter-group-item-title", children: _jsx(ShortenedText, { tooltipAlignPoints: ALIGN_POINT, "data-testid": "s-filter-group-item-title", ellipsisPosition: "end", children: `${buttonTitle}` }) }), _jsx("div", { className: "gd-filter-group-item-title-extension", children: titleExtension })] }), _jsxs("div", { className: "gd-filter-group-item-subtitle", children: [_jsx("span", { className: "gd-filter-group-item-selected-items", "data-testid": "s-filter-group-item-subtitle", children: buttonSubtitle }), showSelectionCount && isLoaded ? (_jsx("span", { className: "gd-filter-group-item-selected-items-count", children: `(${itemsCountString})` })) : null] })] }), _jsx("div", { className: "gd-filter-group-item-chevron", children: _jsx(UiIcon, { type: "navigateRight", size: 14 }) })] })] }));
|
|
76
68
|
return disabled ? (_jsx(UiTooltip, { id: tooltipId, anchor: buttonComponent, content: intl.formatMessage({ id: "filters.locked.filter.tooltip" }), triggerBy: ["focus"], arrowPlacement: "top", showArrow: true, width: "same-as-anchor", anchorWrapperStyles: { width: "100%" } })) : (buttonComponent);
|
|
77
69
|
}
|
|
@@ -54,6 +54,5 @@ export const FilterLabel = memo(function FilterLabel({ isAllSelected = false, is
|
|
|
54
54
|
_jsx("span", { className: "filter-label-selection", children: selection }, "selection"),
|
|
55
55
|
];
|
|
56
56
|
}, [selection, isAllSelected]);
|
|
57
|
-
return (_jsxs("div", { role: "attribute-filter-label", className: "adi-attribute-filter-label s-attribute-filter-label", children: [
|
|
58
|
-
_jsxs("span", { className: "label", ref: labelRef, children: [renderTitle, renderSelectedElements] }), renderSelection] }));
|
|
57
|
+
return (_jsxs("div", { role: "attribute-filter-label", className: "adi-attribute-filter-label s-attribute-filter-label", children: [_jsxs("span", { className: "label", ref: labelRef, children: [renderTitle, renderSelectedElements] }), renderSelection] }));
|
|
59
58
|
});
|
package/esm/Form/Checkbox.js
CHANGED
|
@@ -13,8 +13,5 @@ export const Checkbox = memo(function Checkbox({ disabled = false, name = "", te
|
|
|
13
13
|
"gd-label-small gd-checkbox-label-small": labelSize === "small",
|
|
14
14
|
"gd-label gd-checkbox-label": labelSize === "normal",
|
|
15
15
|
}), [labelSize]);
|
|
16
|
-
return (_jsxs(Fragment, { children: [title ? _jsx("h6", { children: title }) : null, _jsxs("label", { className: "input-checkbox-label", children: [
|
|
17
|
-
_jsx("input", { id: id, type: "checkbox", className: "input-checkbox", name: name, checked: value, disabled: disabled, onChange: handleChange }), _jsx("span", { className: labelClasses, children: text })
|
|
18
|
-
] })
|
|
19
|
-
] }));
|
|
16
|
+
return (_jsxs(Fragment, { children: [title ? _jsx("h6", { children: title }) : null, _jsxs("label", { className: "input-checkbox-label", children: [_jsx("input", { id: id, type: "checkbox", className: "input-checkbox", name: name, checked: value, disabled: disabled, onChange: handleChange }), _jsx("span", { className: labelClasses, children: text })] })] }));
|
|
20
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputPure.d.ts","sourceRoot":"","sources":["../../src/Form/InputPure.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EAKjB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAKhF;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB;IAC3E,eAAe,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AAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,YAAY,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACzC;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAC9B,SAAS;IACT,SAAS;IACT,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,OAAO;IACP,SAAS;IACT,QAAQ,aAAa,OAAO,EAAE;IAC9B,aAAa,aAAa,OAAO,EAAE;IACnC,eAAe,aAAa,OAAO,EAAE;IACrC,MAAM,aAAa,OAAO,EAAE;IAC5B,OAAO,aAAa,OAAO,EAAE;IAC7B,WAAW;IACX,MAAM;IACN,QAAQ;IACR,MAAM;IACN,KAAK;IACL,gBAAgB;IAChB,KAAK;CACR,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,8GA+QpB,CAAC"}
|
package/esm/Form/InputPure.js
CHANGED
|
@@ -105,12 +105,10 @@ export const InputPure = forwardRef(function InputPure(props, ref) {
|
|
|
105
105
|
const getPrefixA11yId = () => `${getA11yIdBase()}-a11y-prefix`;
|
|
106
106
|
const getSuffixA11yId = () => `${getA11yIdBase()}-a11y-suffix`;
|
|
107
107
|
const renderPrefix = (prefixValue, ariaLabel) => {
|
|
108
|
-
return prefixValue ? (_jsxs(_Fragment, { children: [
|
|
109
|
-
_jsx("span", { className: "gd-input-prefix", "aria-hidden": "true", children: prefixValue }), ariaLabel ? (_jsx("span", { className: "sr-only", id: getPrefixA11yId(), children: ariaLabel })) : null] })) : (false);
|
|
108
|
+
return prefixValue ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "gd-input-prefix", "aria-hidden": "true", children: prefixValue }), ariaLabel ? (_jsx("span", { className: "sr-only", id: getPrefixA11yId(), children: ariaLabel })) : null] })) : (false);
|
|
110
109
|
};
|
|
111
110
|
const renderSuffix = (suffixValue, ariaLabel) => {
|
|
112
|
-
return suffixValue ? (_jsxs(_Fragment, { children: [
|
|
113
|
-
_jsx("span", { className: "gd-input-suffix", "aria-hidden": "true", children: suffixValue }), ariaLabel ? (_jsx("span", { className: "sr-only", id: getSuffixA11yId(), children: ariaLabel })) : null] })) : (false);
|
|
111
|
+
return suffixValue ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "gd-input-suffix", "aria-hidden": "true", children: suffixValue }), ariaLabel ? (_jsx("span", { className: "sr-only", id: getSuffixA11yId(), children: ariaLabel })) : null] })) : (false);
|
|
114
112
|
};
|
|
115
113
|
const renderLabel = (labelValue, htmlFor) => {
|
|
116
114
|
return labelValue ? (_jsx("label", { htmlFor: htmlFor, className: "gd-input-label", children: labelValue })) : (false);
|
|
@@ -143,8 +141,7 @@ export const InputPure = forwardRef(function InputPure(props, ref) {
|
|
|
143
141
|
return describedBy.length ? describedBy : undefined;
|
|
144
142
|
};
|
|
145
143
|
const renderInput = () => {
|
|
146
|
-
return (_jsxs("div", { className: "gd-input-wrapper", children: [
|
|
147
|
-
_jsx("input", { ref: inputRef, type: type ?? "text", id: getA11yIdBase(), name: name, required: required, className: getInputClassNames(), disabled: disabled, maxLength: maxlength, onChange: handleChange, onBlur: onBlur, onFocus: onFocus, onKeyDown: onKeyDown ?? onKeyPress, placeholder: placeholder, readOnly: readonly, value: value, role: accessibilityConfig?.role, "aria-label": accessibilityConfig?.ariaLabel ?? undefined, "aria-describedby": getAriaDescribedBy(), "aria-labelledby": accessibilityConfig?.ariaLabelledBy, "aria-expanded": accessibilityConfig?.ariaExpanded, "aria-controls": accessibilityConfig?.ariaControls, "aria-activedescendant": accessibilityConfig?.ariaActiveDescendant, "aria-readonly": readonly || undefined, "aria-autocomplete": accessibilityConfig?.ariaAutocomplete, "aria-invalid": accessibilityConfig?.ariaInvalid, autoComplete: isSearch ? "off" : autocomplete, "data-testid": dataTestId }), renderSearch(isSearch), renderClearIcon(clearOnEsc), renderPrefix(prefix, accessibilityConfig?.prefixAriaLabel), renderSuffix(suffix, accessibilityConfig?.suffixAriaLabel), renderIconButton(iconButton, iconButtonLabel ?? "", onIconButtonClick)] }));
|
|
144
|
+
return (_jsxs("div", { className: "gd-input-wrapper", children: [_jsx("input", { ref: inputRef, type: type ?? "text", id: getA11yIdBase(), name: name, required: required, className: getInputClassNames(), disabled: disabled, maxLength: maxlength, onChange: handleChange, onBlur: onBlur, onFocus: onFocus, onKeyDown: onKeyDown ?? onKeyPress, placeholder: placeholder, readOnly: readonly, value: value, role: accessibilityConfig?.role, "aria-label": accessibilityConfig?.ariaLabel ?? undefined, "aria-describedby": getAriaDescribedBy(), "aria-labelledby": accessibilityConfig?.ariaLabelledBy, "aria-expanded": accessibilityConfig?.ariaExpanded, "aria-controls": accessibilityConfig?.ariaControls, "aria-activedescendant": accessibilityConfig?.ariaActiveDescendant, "aria-readonly": readonly || undefined, "aria-autocomplete": accessibilityConfig?.ariaAutocomplete, "aria-invalid": accessibilityConfig?.ariaInvalid, autoComplete: isSearch ? "off" : autocomplete, "data-testid": dataTestId }), renderSearch(isSearch), renderClearIcon(clearOnEsc), renderPrefix(prefix, accessibilityConfig?.prefixAriaLabel), renderSuffix(suffix, accessibilityConfig?.suffixAriaLabel), renderIconButton(iconButton, iconButtonLabel ?? "", onIconButtonClick)] }));
|
|
148
145
|
};
|
|
149
146
|
if (label) {
|
|
150
147
|
return (_jsxs("div", { className: getLabelClassNames(className), children: [renderLabel(label, getA11yIdBase()), renderInput()] }));
|
package/esm/Header/Header.js
CHANGED
|
@@ -275,16 +275,13 @@ export function AppHeader({ logoHref = "/", accountMenuItems = [], helpMenuItems
|
|
|
275
275
|
return (_jsx("a", { "aria-label": logoHrefAccesibilityText, title: logoHrefAccesibilityText, href: logoHref, onClick: onLogoClick, className: logoLinkClassName, children: _jsx("img", { src: logoUrl, title: logoTitle, onLoad: measureChildren, onError: measureChildren, alt: imageAltAccessibilityText }) }));
|
|
276
276
|
};
|
|
277
277
|
const renderSearchMenu = () => {
|
|
278
|
-
return (_jsxs("div", { className: "gd-header-menu-search", children: [
|
|
279
|
-
_jsx(Typography, { tagName: "h3", className: "gd-header-menu-search-title", children: _jsx(FormattedMessage, { id: "gs.header.search" }) }), _jsx(HeaderSearchProvider, { isOpen: state.isSearchMenuOpen, toggleOpen: toggleSearchMenu, children: search })
|
|
280
|
-
] }));
|
|
278
|
+
return (_jsxs("div", { className: "gd-header-menu-search", children: [_jsx(Typography, { tagName: "h3", className: "gd-header-menu-search-title", children: _jsx(FormattedMessage, { id: "gs.header.search" }) }), _jsx(HeaderSearchProvider, { isOpen: state.isSearchMenuOpen, toggleOpen: toggleSearchMenu, children: search })] }));
|
|
281
279
|
};
|
|
282
280
|
const renderNotificationsOverlay = () => {
|
|
283
281
|
if (!notificationsPanel) {
|
|
284
282
|
return null;
|
|
285
283
|
}
|
|
286
|
-
return (_jsxs("div", { className: "gd-header-menu-notifications", children: [
|
|
287
|
-
_jsx(Typography, { tagName: "h3", className: "gd-header-menu-notifications-title", children: _jsx(FormattedMessage, { id: "gs.header.notifications" }) }), notificationsPanel({
|
|
284
|
+
return (_jsxs("div", { className: "gd-header-menu-notifications", children: [_jsx(Typography, { tagName: "h3", className: "gd-header-menu-notifications-title", children: _jsx(FormattedMessage, { id: "gs.header.notifications" }) }), notificationsPanel({
|
|
288
285
|
isMobile: true,
|
|
289
286
|
closeNotificationsOverlay: closeNotificationsMenu,
|
|
290
287
|
})] }));
|
|
@@ -300,9 +297,7 @@ export function AppHeader({ logoHref = "/", accountMenuItems = [], helpMenuItems
|
|
|
300
297
|
const LogoutIcon = Icon["Logout"];
|
|
301
298
|
return logoutMenuItem ? (_jsxs("button", { className: "logout-button gd-button s-logout", onClick: (e) => {
|
|
302
299
|
onMenuItemClick?.(logoutMenuItem, e);
|
|
303
|
-
}, children: [
|
|
304
|
-
_jsx(LogoutIcon, { className: "gd-icon-logout", color: theme?.palette?.complementary?.c0 }), _jsx("span", { className: "gd-button-text", children: _jsx(FormattedMessage, { id: "gs.header.logout" }) })
|
|
305
|
-
] })) : (false);
|
|
300
|
+
}, children: [_jsx(LogoutIcon, { className: "gd-icon-logout", color: theme?.palette?.complementary?.c0 }), _jsx("span", { className: "gd-button-text", children: _jsx(FormattedMessage, { id: "gs.header.logout" }) })] })) : (false);
|
|
306
301
|
};
|
|
307
302
|
const renderVerticalMenu = () => {
|
|
308
303
|
const menuItemsGroupsToRender = state.isHelpMenuOpen
|
|
@@ -310,11 +305,7 @@ export function AppHeader({ logoHref = "/", accountMenuItems = [], helpMenuItems
|
|
|
310
305
|
: showStaticHelpMenu
|
|
311
306
|
? [[getHelpMenuLink()]]
|
|
312
307
|
: addHelpItemGroup(addAdditionalItems(menuItemsGroups));
|
|
313
|
-
return (_jsxs("div", { className: "gd-header-menu-vertical-wrapper", children: [
|
|
314
|
-
_jsx("div", { className: "gd-header-menu-vertical-header", children: _jsx(FormattedMessage, { id: "gs.header.menu" }) }), _jsxs("div", { className: "gd-header-menu-vertical-content", children: [
|
|
315
|
-
_jsx(HeaderMenu, { onMenuItemClick: handleMenuItemClick, sections: menuItemsGroupsToRender, className: "gd-header-menu-vertical" }), renderTrialItems()] }), _jsxs("div", { className: "gd-header-menu-vertical-footer", children: [!!badges && _jsx("div", { className: "gd-header-vertical-badges", children: badges }), _jsx("div", { className: "gd-header-menu-vertical-bottom-item", children: _jsx("span", { className: "gd-header-username gd-icon-user", children: userName }) }), _jsx("div", { children: renderLogoutButton() })
|
|
316
|
-
] })
|
|
317
|
-
] }, "overlay-menu"));
|
|
308
|
+
return (_jsxs("div", { className: "gd-header-menu-vertical-wrapper", children: [_jsx("div", { className: "gd-header-menu-vertical-header", children: _jsx(FormattedMessage, { id: "gs.header.menu" }) }), _jsxs("div", { className: "gd-header-menu-vertical-content", children: [_jsx(HeaderMenu, { onMenuItemClick: handleMenuItemClick, sections: menuItemsGroupsToRender, className: "gd-header-menu-vertical" }), renderTrialItems()] }), _jsxs("div", { className: "gd-header-menu-vertical-footer", children: [!!badges && _jsx("div", { className: "gd-header-vertical-badges", children: badges }), _jsx("div", { className: "gd-header-menu-vertical-bottom-item", children: _jsx("span", { className: "gd-header-username gd-icon-user", children: userName }) }), _jsx("div", { children: renderLogoutButton() })] })] }, "overlay-menu"));
|
|
318
309
|
};
|
|
319
310
|
const renderOverlayMenu = () => {
|
|
320
311
|
let content = renderVerticalMenu();
|
|
@@ -339,14 +330,12 @@ export function AppHeader({ logoHref = "/", accountMenuItems = [], helpMenuItems
|
|
|
339
330
|
"search-open": state.isSearchMenuOpen,
|
|
340
331
|
"notifications-open": state.isNotificationsMenuOpen,
|
|
341
332
|
});
|
|
342
|
-
return (_jsxs(_Fragment, { children: [
|
|
343
|
-
_jsx("div", { "aria-label": intl.formatMessage({ id: "gs.header.mainMenu.ariaLabel" }), role: "button", tabIndex: 0, className: "hamburger-wrapper", onClick: () => {
|
|
333
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { "aria-label": intl.formatMessage({ id: "gs.header.mainMenu.ariaLabel" }), role: "button", tabIndex: 0, className: "hamburger-wrapper", onClick: () => {
|
|
344
334
|
setOverlayMenu(!state.isOverlayMenuOpen);
|
|
345
335
|
}, children: _jsx("div", { className: iconClasses, children: _jsx("i", {}) }, "hamburger-icon") }, "hamburger-wrapper"), state.isOverlayMenuOpen ? renderOverlayMenu() : null] }));
|
|
346
336
|
};
|
|
347
337
|
const renderStandardNav = () => {
|
|
348
|
-
return (_jsxs("div", { className: "gd-header-stretch gd-header-menu-wrapper", children: [
|
|
349
|
-
_jsx(HeaderMenu, { onMenuItemClick: onMenuItemClick, sections: menuItemsGroups, className: "gd-header-menu-horizontal" }), renderTrialItems(), showChatItem ? (_jsx(HeaderChatButton, { title: intl.formatMessage(messages.aiChat), isOpen: isChatOpen, onClick: onChatItemClick ?? (() => { }) })) : null, notificationsPanel
|
|
338
|
+
return (_jsxs("div", { className: "gd-header-stretch gd-header-menu-wrapper", children: [_jsx(HeaderMenu, { onMenuItemClick: onMenuItemClick, sections: menuItemsGroups, className: "gd-header-menu-horizontal" }), renderTrialItems(), showChatItem ? (_jsx(HeaderChatButton, { title: intl.formatMessage(messages.aiChat), isOpen: isChatOpen, onClick: onChatItemClick ?? (() => { }) })) : null, notificationsPanel
|
|
350
339
|
? notificationsPanel({
|
|
351
340
|
isMobile: false,
|
|
352
341
|
closeNotificationsOverlay: closeNotificationsMenu,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.test.helpers.d.ts","sourceRoot":"","sources":["../../src/Header/Header.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEvG,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"Header.test.helpers.d.ts","sourceRoot":"","sources":["../../src/Header/Header.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEvG,eAAO,MAAM,2BAA2B,iCACN,OAAO,+BACR,OAAO,KACrC,SAKF,CAAC;AAEF,eAAO,MAAM,8BAA8B,sBACpB,OAAO,mBACT,eAAe,KACjC,SAKF,CAAC;AAEF,eAAO,MAAM,2BAA2B,gBACvB,OAAO,mBACH,OAAO,iCAEzB,qBA4BF,CAAC"}
|
|
@@ -41,8 +41,7 @@ export function HeaderAccount({ className = "", items = [], userName = "", onMen
|
|
|
41
41
|
return (_jsxs(Button, { ref: buttonRef, className: classNames, onClick: toggleAccountMenuHandler, title: intl.formatMessage({ id: "gs.header.account.title" }), accessibilityConfig: {
|
|
42
42
|
isExpanded: isOpen,
|
|
43
43
|
popupId: dropdownId,
|
|
44
|
-
}, children: [
|
|
45
|
-
_jsx("span", { className: "gd-header-account-icon gd-icon-user" }), _jsx("span", { className: "gd-header-account-user", children: userName }), renderAccountMenu()] }));
|
|
44
|
+
}, children: [_jsx("span", { className: "gd-header-account-icon gd-icon-user" }), _jsx("span", { className: "gd-header-account-user", children: userName }), renderAccountMenu()] }));
|
|
46
45
|
}
|
|
47
46
|
function MenuItem({ item, toggleMenu, onMenuItemClick, }) {
|
|
48
47
|
const tabIndexProp = item.href ? {} : { tabIndex: 0 };
|
|
@@ -7,6 +7,5 @@ import { HeaderBadge } from "./HeaderBadge.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export function HeaderBadgeWithModal({ renderModalContent, children, color, ...badgeProps }) {
|
|
9
9
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
10
|
-
return (_jsxs(HeaderBadge, { ...badgeProps, children: [
|
|
11
|
-
_jsx("button", { type: "button", style: { color }, className: "gd-header-badge-button", onClick: () => setIsModalOpen(true), children: children }), isModalOpen ? renderModalContent({ closeModal: () => setIsModalOpen(false) }) : null] }));
|
|
10
|
+
return (_jsxs(HeaderBadge, { ...badgeProps, children: [_jsx("button", { type: "button", style: { color }, className: "gd-header-badge-button", onClick: () => setIsModalOpen(true), children: children }), isModalOpen ? renderModalContent({ closeModal: () => setIsModalOpen(false) }) : null] }));
|
|
12
11
|
}
|
|
@@ -19,8 +19,7 @@ export function HeaderDataMenu({ onMenuItemClick, dataMenuItems, className }) {
|
|
|
19
19
|
"is-normal": !isDisable && !isActive,
|
|
20
20
|
});
|
|
21
21
|
const clickHandler = onClick || (() => onMenuItemClick(item));
|
|
22
|
-
return (_jsx("li", { children: _jsxs(BubbleHoverTrigger, { tagName: "div", hideDelay: 100, showDelay: 100, className: "gd-bubble-trigger-data-menu", children: [
|
|
23
|
-
_jsx(Button, { onClick: clickHandler, className: classNames, value: intl.formatMessage({ id: `${key}` }), disabled: isDisable, iconLeft: item.iconName }), tooltipText && isDisable ? (_jsx(Bubble, { alignPoints: [{ align: "bc tc" }, { align: "bc tl" }, { align: "bc tr" }], children: tooltipText })) : null] }) }, key));
|
|
22
|
+
return (_jsx("li", { children: _jsxs(BubbleHoverTrigger, { tagName: "div", hideDelay: 100, showDelay: 100, className: "gd-bubble-trigger-data-menu", children: [_jsx(Button, { onClick: clickHandler, className: classNames, value: intl.formatMessage({ id: `${key}` }), disabled: isDisable, iconLeft: item.iconName }), tooltipText && isDisable ? (_jsx(Bubble, { alignPoints: [{ align: "bc tc" }, { align: "bc tl" }, { align: "bc tr" }], children: tooltipText })) : null] }) }, key));
|
|
24
23
|
});
|
|
25
24
|
};
|
|
26
25
|
const dataMenuClassName = cx("gd-data-header-menu-section", className);
|
package/esm/Header/HeaderHelp.js
CHANGED
|
@@ -25,8 +25,7 @@ export function HeaderHelp({ className, items, helpMenuDropdownAlignPoints, onMe
|
|
|
25
25
|
menuItemClicked(item);
|
|
26
26
|
}, className: cx("gd-list-item gd-list-help-menu-item", {
|
|
27
27
|
[item.className]: !!item.className,
|
|
28
|
-
}), children: [item.iconName ? _jsx("i", { className: cx(item.iconName, "gd-icon") }) : null, item.icon ? item.icon : null, _jsx("span", { children: item.label ?? _jsx(FormattedMessage, { id: item.key }) })
|
|
29
|
-
] }, item.key));
|
|
28
|
+
}), children: [item.iconName ? _jsx("i", { className: cx(item.iconName, "gd-icon") }) : null, item.icon ? item.icon : null, _jsx("span", { children: item.label ?? _jsx(FormattedMessage, { id: item.key }) })] }, item.key));
|
|
30
29
|
});
|
|
31
30
|
const toggleHelpMenu = useCallback((isMenuOpen = !isOpen) => {
|
|
32
31
|
onHelpClicked?.(isMenuOpen);
|
|
@@ -66,6 +65,5 @@ export function HeaderHelp({ className, items, helpMenuDropdownAlignPoints, onMe
|
|
|
66
65
|
return helpRedirectUrl ? (_jsx("a", { className: classNames, href: helpRedirectUrl, target: "_blank", rel: "noreferrer noopener", children: _jsx(FormattedMessage, { id: "gs.header.help" }) })) : (_jsxs(Button, { className: cx(classNames, "gd-header-button"), onClick: () => toggleHelpMenu(), accessibilityConfig: {
|
|
67
66
|
isExpanded: isOpen,
|
|
68
67
|
popupId: dropdownId,
|
|
69
|
-
}, ref: helpMenuButtonRef, children: [
|
|
70
|
-
_jsx(FormattedMessage, { id: "gs.header.help" }), renderHelpMenu()] }));
|
|
68
|
+
}, ref: helpMenuButtonRef, children: [_jsx(FormattedMessage, { id: "gs.header.help" }), renderHelpMenu()] }));
|
|
71
69
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { type IHeaderMenuProps } from "./typings.js";
|
|
2
|
-
export declare const HeaderMenu: import("react").
|
|
3
|
+
export declare const HeaderMenu: import("react").MemoExoticComponent<({ className, onMenuItemClick, sections, }: IHeaderMenuProps) => ReactNode>;
|
|
3
4
|
//# sourceMappingURL=HeaderMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderMenu.d.ts","sourceRoot":"","sources":["../../src/Header/HeaderMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderMenu.d.ts","sourceRoot":"","sources":["../../src/Header/HeaderMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAC;AAMpF,OAAO,EAAwB,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE3E,eAAO,MAAM,UAAU,kFAIpB,gBAAgB,KAAG,SAAS,CA2D7B,CAAC"}
|
package/esm/Header/HeaderMenu.js
CHANGED
|
@@ -18,8 +18,7 @@ export const HeaderMenu = memo(function HeaderMenu({ className = "", onMenuItemC
|
|
|
18
18
|
active: item.isActive,
|
|
19
19
|
[item.className]: !!item.className,
|
|
20
20
|
});
|
|
21
|
-
return (_jsxs("a", { onClick: clickHandler, href: item.href, className: itemClassNames, target: item.target, rel: item.target === "_blank" ? "noreferrer noopener" : undefined, children: [item.icon ? item.icon : null, item.iconName ? _jsx("i", { className: cx(item.iconName, "gd-icon") }) : null, _jsx("span", { className: item.className, children: _jsx(FormattedMessage, { id: item.key }) })
|
|
22
|
-
] }, item.key));
|
|
21
|
+
return (_jsxs("a", { onClick: clickHandler, href: item.href, className: itemClassNames, target: item.target, rel: item.target === "_blank" ? "noreferrer noopener" : undefined, children: [item.icon ? item.icon : null, item.iconName ? _jsx("i", { className: cx(item.iconName, "gd-icon") }) : null, _jsx("span", { className: item.className, children: _jsx(FormattedMessage, { id: item.key }) })] }, item.key));
|
|
23
22
|
});
|
|
24
23
|
}, [handleItemClick]);
|
|
25
24
|
const renderSections = useCallback(() => {
|
|
@@ -32,6 +32,5 @@ export function HeaderSearchButton({ children, title }) {
|
|
|
32
32
|
return (_jsxs(Button, { title: title, className: classNames, onClick: toggleOpen, accessibilityConfig: {
|
|
33
33
|
isExpanded: isOpen,
|
|
34
34
|
popupId: dropdownId,
|
|
35
|
-
}, ref: buttonRef, children: [
|
|
36
|
-
_jsx("span", { className: "gd-icon-header-search-button" }), _jsx("span", { className: "gd-header-search-label", children: title }), isOpen ? (_jsx(Overlay, { isModal: false, alignTo: ".gd-header-search", alignPoints: ALIGN_POINTS, resizeObserverThreshold: 0.2, closeOnEscape: true, closeOnOutsideClick: true, closeOnParentScroll: false, closeOnMouseDrag: false, onClose: toggleOpen, ignoreClicksOnByClass: [".gd-bubble"], children: _jsx(UiFocusManager, { enableFocusTrap: true, enableAutofocus: true, enableReturnFocusOnUnmount: { returnFocusTo: buttonRef }, children: _jsx("div", { id: dropdownId, className: "gd-dialog gd-dropdown overlay gd-header-search-dropdown", children: children }) }) })) : null] }));
|
|
35
|
+
}, ref: buttonRef, children: [_jsx("span", { className: "gd-icon-header-search-button" }), _jsx("span", { className: "gd-header-search-label", children: title }), isOpen ? (_jsx(Overlay, { isModal: false, alignTo: ".gd-header-search", alignPoints: ALIGN_POINTS, resizeObserverThreshold: 0.2, closeOnEscape: true, closeOnOutsideClick: true, closeOnParentScroll: false, closeOnMouseDrag: false, onClose: toggleOpen, ignoreClicksOnByClass: [".gd-bubble"], children: _jsx(UiFocusManager, { enableFocusTrap: true, enableAutofocus: true, enableReturnFocusOnUnmount: { returnFocusTo: buttonRef }, children: _jsx("div", { id: dropdownId, className: "gd-dialog gd-dropdown overlay gd-header-search-dropdown", children: children }) }) })) : null] }));
|
|
37
36
|
}
|