@openui5/sap.m 1.129.0 → 1.130.0
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/THIRDPARTY.txt +1 -1
- package/package.json +4 -4
- package/src/sap/m/.library +2 -4
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSheet.js +1 -1
- package/src/sap/m/ActionTile.js +7 -8
- package/src/sap/m/ActionTileContent.js +1 -2
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +30 -11
- package/src/sap/m/AvatarRenderer.js +8 -4
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +8 -2
- package/src/sap/m/BreadcrumbsRenderer.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +31 -30
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +5 -5
- package/src/sap/m/CheckBox.js +13 -1
- package/src/sap/m/CheckBoxRenderer.js +40 -29
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/ContentConfig.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +1 -1
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/Dialog.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateFormat.js +14 -0
- package/src/sap/m/DynamicDateOption.js +1 -1
- package/src/sap/m/DynamicDateRange.js +76 -7
- package/src/sap/m/DynamicDateUtil.js +28 -0
- package/src/sap/m/DynamicDateValueHelpUIType.js +8 -3
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +7 -19
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -2
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +1 -1
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +7 -4
- package/src/sap/m/InputBase.js +15 -3
- package/src/sap/m/InputListItem.js +8 -2
- package/src/sap/m/InputListItemRenderer.js +16 -6
- package/src/sap/m/Label.js +14 -3
- package/src/sap/m/LabelRenderer.js +48 -5
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +15 -3
- package/src/sap/m/LinkTileContent.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +4 -4
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +24 -6
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuItemGroup.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +6 -2
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -1
- package/src/sap/m/NavContainer.js +1 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +14 -3
- package/src/sap/m/OverflowToolbar.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +1 -1
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +1 -1
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +1 -1
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +22 -6
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +11 -4
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -2
- package/src/sap/m/Slider.js +2 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +354 -27
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +39 -44
- package/src/sap/m/TabContainerItem.js +40 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +2 -4
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +99 -29
- package/src/sap/m/Text.js +15 -3
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +3 -3
- package/src/sap/m/TileInfo.js +1 -1
- package/src/sap/m/TimePicker.js +1 -1
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/_thirdparty/purify.js +632 -697
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/designtime/messagebundle_da.properties +2 -2
- package/src/sap/m/designtime/messagebundle_mk.properties +3 -3
- package/src/sap/m/inputUtils/ListHelpers.js +4 -0
- package/src/sap/m/library.js +111 -6
- package/src/sap/m/messagebundle.properties +39 -28
- package/src/sap/m/messagebundle_ar.properties +26 -10
- package/src/sap/m/messagebundle_bg.properties +29 -13
- package/src/sap/m/messagebundle_ca.properties +21 -5
- package/src/sap/m/messagebundle_cnr.properties +23 -7
- package/src/sap/m/messagebundle_cs.properties +23 -7
- package/src/sap/m/messagebundle_cy.properties +30 -14
- package/src/sap/m/messagebundle_da.properties +34 -18
- package/src/sap/m/messagebundle_de.properties +21 -5
- package/src/sap/m/messagebundle_el.properties +22 -6
- package/src/sap/m/messagebundle_en.properties +22 -20
- package/src/sap/m/messagebundle_en_GB.properties +21 -5
- package/src/sap/m/messagebundle_en_US_saprigi.properties +22 -6
- package/src/sap/m/messagebundle_es.properties +25 -9
- package/src/sap/m/messagebundle_es_MX.properties +22 -6
- package/src/sap/m/messagebundle_et.properties +21 -5
- package/src/sap/m/messagebundle_fi.properties +22 -6
- package/src/sap/m/messagebundle_fr.properties +34 -18
- package/src/sap/m/messagebundle_fr_CA.properties +20 -4
- package/src/sap/m/messagebundle_hi.properties +23 -7
- package/src/sap/m/messagebundle_hr.properties +76 -60
- package/src/sap/m/messagebundle_hu.properties +21 -5
- package/src/sap/m/messagebundle_id.properties +23 -7
- package/src/sap/m/messagebundle_it.properties +25 -9
- package/src/sap/m/messagebundle_iw.properties +21 -5
- package/src/sap/m/messagebundle_ja.properties +23 -7
- package/src/sap/m/messagebundle_kk.properties +23 -7
- package/src/sap/m/messagebundle_ko.properties +23 -7
- package/src/sap/m/messagebundle_lt.properties +21 -5
- package/src/sap/m/messagebundle_lv.properties +22 -6
- package/src/sap/m/messagebundle_mk.properties +28 -12
- package/src/sap/m/messagebundle_ms.properties +22 -6
- package/src/sap/m/messagebundle_nl.properties +23 -7
- package/src/sap/m/messagebundle_no.properties +23 -7
- package/src/sap/m/messagebundle_pl.properties +21 -5
- package/src/sap/m/messagebundle_pt.properties +21 -5
- package/src/sap/m/messagebundle_pt_PT.properties +21 -5
- package/src/sap/m/messagebundle_ro.properties +22 -6
- package/src/sap/m/messagebundle_ru.properties +23 -7
- package/src/sap/m/messagebundle_sh.properties +23 -7
- package/src/sap/m/messagebundle_sk.properties +23 -7
- package/src/sap/m/messagebundle_sl.properties +23 -7
- package/src/sap/m/messagebundle_sr.properties +23 -7
- package/src/sap/m/messagebundle_sv.properties +26 -10
- package/src/sap/m/messagebundle_th.properties +24 -8
- package/src/sap/m/messagebundle_tr.properties +22 -6
- package/src/sap/m/messagebundle_uk.properties +22 -6
- package/src/sap/m/messagebundle_vi.properties +26 -10
- package/src/sap/m/messagebundle_zh_CN.properties +23 -7
- package/src/sap/m/messagebundle_zh_TW.properties +21 -5
- package/src/sap/m/p13n/AbstractContainer.js +2 -2
- package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
- package/src/sap/m/p13n/BasePanel.js +1 -1
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +1 -1
- package/src/sap/m/p13n/FilterController.js +1 -1
- package/src/sap/m/p13n/FilterPanel.js +1 -1
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/MessageStrip.js +1 -1
- package/src/sap/m/p13n/Popup.js +1 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +1 -1
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +1 -1
- package/src/sap/m/plugins/CellSelector.js +10 -6
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
- package/src/sap/m/plugins/CopyProvider.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +3 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/plugins/UploadSetwithTable.js +54 -12
- package/src/sap/m/semantic/AddAction.js +1 -1
- package/src/sap/m/semantic/CancelAction.js +1 -1
- package/src/sap/m/semantic/DeleteAction.js +1 -1
- package/src/sap/m/semantic/DetailPage.js +1 -1
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/m/semantic/EditAction.js +1 -1
- package/src/sap/m/semantic/FavoriteAction.js +1 -1
- package/src/sap/m/semantic/FilterAction.js +1 -1
- package/src/sap/m/semantic/FilterSelect.js +1 -1
- package/src/sap/m/semantic/FlagAction.js +1 -1
- package/src/sap/m/semantic/ForwardAction.js +1 -1
- package/src/sap/m/semantic/FullscreenPage.js +1 -1
- package/src/sap/m/semantic/GroupAction.js +1 -1
- package/src/sap/m/semantic/GroupSelect.js +1 -1
- package/src/sap/m/semantic/MainAction.js +1 -1
- package/src/sap/m/semantic/MasterPage.js +1 -1
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +1 -1
- package/src/sap/m/semantic/NegativeAction.js +1 -1
- package/src/sap/m/semantic/OpenInAction.js +1 -1
- package/src/sap/m/semantic/PositiveAction.js +1 -1
- package/src/sap/m/semantic/PrintAction.js +1 -1
- package/src/sap/m/semantic/SaveAction.js +1 -1
- package/src/sap/m/semantic/Segment.js +1 -1
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -1
- package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/m/semantic/SemanticControl.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/table/ColumnWidthController.js +1 -1
- package/src/sap/m/table/Util.js +1 -1
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +1 -1
- package/src/sap/m/table/columnmenu/MenuBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/Breadcrumbs.less +5 -0
- package/src/sap/m/themes/base/Carousel.less +21 -7
- package/src/sap/m/themes/base/ColumnListItem.less +29 -22
- package/src/sap/m/themes/base/ColumnResizer.less +4 -4
- package/src/sap/m/themes/base/DisplayListItem.less +5 -10
- package/src/sap/m/themes/base/DynamicDateRange.less +3 -1
- package/src/sap/m/themes/base/GroupHeaderListItem.less +11 -15
- package/src/sap/m/themes/base/IconTabBar.less +168 -134
- package/src/sap/m/themes/base/IconTabBarSelectList.less +22 -25
- package/src/sap/m/themes/base/Illustration.less +26 -10
- package/src/sap/m/themes/base/InputListItem.less +16 -17
- package/src/sap/m/themes/base/Label.less +32 -81
- package/src/sap/m/themes/base/Link.less +16 -17
- package/src/sap/m/themes/base/ObjectStatus.less +29 -0
- package/src/sap/m/themes/base/RatingIndicator.less +2 -2
- package/src/sap/m/themes/base/StandardListItem.less +21 -0
- package/src/sap/m/themes/base/TabContainer.less +1 -1
- package/src/sap/m/themes/base/Table.less +10 -2
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-BeforeSearch.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoActivities.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoData.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoEntries.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoMail.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoNotifications.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoSavedItems.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoTasks.svg +20 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessBalloon.svg +19 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessCheckMark.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToLoad.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToUpload.svg +10 -0
- package/src/sap/m/upload/ActionsPlaceholder.js +12 -2
- package/src/sap/m/upload/Column.js +1 -1
- package/src/sap/m/upload/FilePreviewDialog.js +1 -2
- package/src/sap/m/upload/UploadItem.js +1 -1
- package/src/sap/m/upload/UploadItemConfiguration.js +1 -1
- package/src/sap/m/upload/UploadSet.js +6 -3
- package/src/sap/m/upload/UploadSetItem.js +1 -1
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploaderTableItem.js +7 -10
- package/src/sap/m/upload/UploadSetwithTable.js +0 -1607
- package/src/sap/m/upload/UploadSetwithTableItem.js +0 -344
- package/src/sap/m/upload/UploadSetwithTableItemRenderer.js +0 -23
- package/src/sap/m/upload/UploadSetwithTableRenderer.js +0 -31
- package/src/sap/m/upload/p13n/PersManager.js +0 -253
- package/src/sap/m/upload/p13n/flexibility/UploadSetwithTable.flexibility.js +0 -32
- package/src/sap/m/upload/p13n/handlers/BaseConfigHandler.js +0 -44
- package/src/sap/m/upload/p13n/handlers/ChangeHandler.js +0 -98
- package/src/sap/m/upload/p13n/handlers/ColumnConfigHandler.js +0 -57
- package/src/sap/m/upload/p13n/handlers/ColumnsStateChangeHandler.js +0 -43
- package/src/sap/m/upload/p13n/handlers/FilterConfigHandler.js +0 -71
- package/src/sap/m/upload/p13n/handlers/FilterStateChangeHandler.js +0 -65
- package/src/sap/m/upload/p13n/handlers/GroupConfigHandler.js +0 -57
- package/src/sap/m/upload/p13n/handlers/GroupStateChangeHandler.js +0 -46
- package/src/sap/m/upload/p13n/handlers/SortConfigHandler.js +0 -57
- package/src/sap/m/upload/p13n/handlers/SortStateChangeHandler.js +0 -48
- package/src/sap/m/upload/p13n/mediator/BaseMediator.js +0 -183
- package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +0 -211
- package/src/sap/m/upload/p13n/mediator/FilterMediator.js +0 -199
- package/src/sap/m/upload/p13n/mediator/GroupMediator.js +0 -193
- package/src/sap/m/upload/p13n/mediator/SortMediator.js +0 -201
- package/src/sap/m/upload/p13n/modules/CustomDataConfig.js +0 -100
- package/src/sap/m/upload/p13n/modules/PersPopupManager.js +0 -76
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
sap.ui.define(["sap/ui/base/Object", "sap/ui/core/mvc/XMLView"], function (BaseObject, View) {
|
|
8
|
-
"use strict";
|
|
9
|
-
/**
|
|
10
|
-
* Constructor for a new <code>BaseMediator</code>.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @param {object} [mSettings] Initial settings for the new control
|
|
14
|
-
* @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this mediator
|
|
15
|
-
* @param {string} mSettings.targetAggregation The name of the aggregation that is now managed by this mediator
|
|
16
|
-
* @param {string} mSettings.p13nMetadataTarget The name of the personalization metadata target that is now managed by this mediator
|
|
17
|
-
* @class
|
|
18
|
-
* The <code>BaseMediator</code> entity serves as a base class to create control-specific personalization implementations.
|
|
19
|
-
*
|
|
20
|
-
* @extends sap.ui.base.Object
|
|
21
|
-
*
|
|
22
|
-
* @author SAP SE
|
|
23
|
-
* @version 1.129.0
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
* @experimental since 1.120
|
|
27
|
-
* @since 1.120
|
|
28
|
-
* @alias sap.m.upload.p13n.mediator.BaseMediator
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
const BaseMediator = BaseObject.extend("sap.m.upload.p13n.mediator.BaseMediator", {
|
|
32
|
-
constructor: function (mSettings) {
|
|
33
|
-
BaseObject.call(this);
|
|
34
|
-
if (!mSettings?.control) {
|
|
35
|
-
throw Error('Please provide "control" for personalization');
|
|
36
|
-
}
|
|
37
|
-
this._oControl = mSettings.control;
|
|
38
|
-
if (!mSettings?.targetAggregation) {
|
|
39
|
-
throw Error('Please provide "targetAggregation" for personalization');
|
|
40
|
-
}
|
|
41
|
-
this._sTargetAggregation = mSettings.targetAggregation;
|
|
42
|
-
if (!mSettings?.p13nMetadataTarget) {
|
|
43
|
-
throw Error('Please provide "p13nMetadataTarget" for personalization');
|
|
44
|
-
}
|
|
45
|
-
this._sP13nMetadataTarget = mSettings.p13nMetadataTarget;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* Returns the control instance that has been set
|
|
52
|
-
* @returns {sap.m.upload.UploadSetwithTable} returns the upload set table control
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
BaseMediator.prototype.getControl = function () {
|
|
56
|
-
return this._oControl;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* Returns the target aggregation that has been set
|
|
62
|
-
* @returns {string} returns the target aggregation
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
BaseMediator.prototype.getTargetAggregation = function () {
|
|
66
|
-
return this._sTargetAggregation;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* Returns the target metadata that as been set
|
|
73
|
-
* @returns {string} returns the p13 target metadata
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
BaseMediator.prototype.getP13nMetadataTarget = function () {
|
|
77
|
-
return this._sP13nMetadataTarget;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* Abstract method for constructing a panel and populating it with data specific to that panel.
|
|
83
|
-
*
|
|
84
|
-
* @name sap.m.upload.p13n.mediator.BaseMediator.prototype.createPanel
|
|
85
|
-
* @function
|
|
86
|
-
* @protected
|
|
87
|
-
* @returns {Promise} returns a promise with the resolved p13 panel.
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* Abstract method to obtain changes by comparing the old and current states.
|
|
94
|
-
*
|
|
95
|
-
* @name sap.m.upload.p13n.mediator.BaseMediator.prototype.getChanges
|
|
96
|
-
* @function
|
|
97
|
-
* @protected
|
|
98
|
-
* @returns {Array} returns array of delta changes
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* An abstract method for applying changes to the upload set table.
|
|
106
|
-
* Essentially, these changes should be applied after the current data becomes available.
|
|
107
|
-
*
|
|
108
|
-
* @name sap.m.upload.p13n.mediator.BaseMediator.prototype.applyStateToTable
|
|
109
|
-
* @function
|
|
110
|
-
* @protected
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* Gets the view for the particular control
|
|
118
|
-
* @returns {object} returns the view object
|
|
119
|
-
* @public
|
|
120
|
-
*
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
BaseMediator.prototype.getView = function () {
|
|
124
|
-
return this.getControlOfType(this.getControl(), View);
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Helper method to get control view
|
|
129
|
-
* @private
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
BaseMediator.prototype.getControlOfType = function (oControl, oType) {
|
|
133
|
-
if (oControl instanceof oType) {
|
|
134
|
-
return oControl;
|
|
135
|
-
}
|
|
136
|
-
if (oControl && typeof oControl["getParent" === "function"]) {
|
|
137
|
-
return this.getControlOfType(oControl.getParent(), oType);
|
|
138
|
-
}
|
|
139
|
-
return undefined;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* Converts the array of objects with key properties to map and adds addIndex
|
|
145
|
-
* @param {Array} aArray expects array of objects with key property
|
|
146
|
-
* @param {boolean} addIndex expects a boolean in case index needs to be added
|
|
147
|
-
* @returns {object} returns the converted object with key as value of key property inside the object
|
|
148
|
-
* @internal
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
BaseMediator.prototype.arrayToMap = function (aArray, addIndex = false) {
|
|
153
|
-
return aArray.reduce(function (mMap, oProp, iIndex) {
|
|
154
|
-
mMap[oProp.key] = oProp;
|
|
155
|
-
if (addIndex) {
|
|
156
|
-
mMap[oProp.key].index = iIndex;
|
|
157
|
-
}
|
|
158
|
-
return mMap;
|
|
159
|
-
}, {});
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* Creates a change that can later be handeled by the flexibility layer to apply and revert the change.
|
|
165
|
-
* @param {string} sChangeType expects the name of change which will be later handled in change handlers.
|
|
166
|
-
* @param {*} oContent expects the changed content which is delta for the specific panel.
|
|
167
|
-
* @returns {object} returns the change object.
|
|
168
|
-
* @public
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
BaseMediator.prototype.createChange = function (sChangeType, oContent) {
|
|
172
|
-
oContent.targetAggregation = this.getTargetAggregation();
|
|
173
|
-
return {
|
|
174
|
-
selectorElement: this.getControl(),
|
|
175
|
-
changeSpecificData: {
|
|
176
|
-
changeType: sChangeType,
|
|
177
|
-
content: oContent
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
return BaseMediator;
|
|
183
|
-
});
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
sap.ui.define(
|
|
8
|
-
[
|
|
9
|
-
"sap/base/i18n/Localization",
|
|
10
|
-
"sap/m/upload/p13n/mediator/BaseMediator",
|
|
11
|
-
"sap/m/p13n/SelectionPanel",
|
|
12
|
-
"sap/m/upload/p13n/modules/CustomDataConfig",
|
|
13
|
-
"sap/ui/core/Locale",
|
|
14
|
-
"sap/base/util/deepEqual"
|
|
15
|
-
],
|
|
16
|
-
function(Localization, BaseMediator, SelectionPanel, CustomDataConfig, Locale, deepEqual) {
|
|
17
|
-
"use strict";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Constructor for a new <code>ColumnsMediator</code>.
|
|
21
|
-
*
|
|
22
|
-
* @param {object} [mSettings] Initial settings for the new control
|
|
23
|
-
* @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this mediator
|
|
24
|
-
* @param {string} mSettings.targetAggregation The name of the aggregation that is now managed by this mediator
|
|
25
|
-
* @param {string} mSettings.p13nMetadataTarget The name of the personalization metadata target that is now managed by this mediator
|
|
26
|
-
*
|
|
27
|
-
* @class
|
|
28
|
-
* The <code>ColumnsMediator</code> entity serves as a class which handles columns panel related logic.
|
|
29
|
-
*
|
|
30
|
-
* @extends sap.m.upload.p13n.mediator.BaseMediator
|
|
31
|
-
*
|
|
32
|
-
* @author SAP SE
|
|
33
|
-
* @version 1.129.0
|
|
34
|
-
* @private
|
|
35
|
-
* @experimental
|
|
36
|
-
* @internal
|
|
37
|
-
* @alias sap.m.upload.p13n.mediator.ColumnsMediator
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
const ColumnsMediator = BaseMediator.extend("sap.m.upload.p13n.mediator.ColumnsMediator", {
|
|
41
|
-
constructor: function (mSettings) {
|
|
42
|
-
BaseMediator.call(this, mSettings);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
ColumnsMediator.prototype.createPanel = function () {
|
|
47
|
-
return Promise.resolve(this.createUi(this.getPanelData()));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
ColumnsMediator.prototype.createUi = function (aPanelData) {
|
|
51
|
-
this._oPanel = new SelectionPanel({ enableCount: true, showHeader: true });
|
|
52
|
-
this._oPanel.setP13nData(aPanelData);
|
|
53
|
-
return this._oPanel;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
ColumnsMediator.prototype.getPanelData = function () {
|
|
57
|
-
const mCurrentState = this.arrayToMap(this.getCurrentState(), true);
|
|
58
|
-
const aPanelState = [],
|
|
59
|
-
oMetadata = this.getControl()._getP13nMetadata();
|
|
60
|
-
oMetadata[this.getP13nMetadataTarget()].forEach((oMetadataItem) => {
|
|
61
|
-
aPanelState.push({
|
|
62
|
-
key: oMetadataItem.key,
|
|
63
|
-
label: oMetadataItem.label || oMetadataItem.key,
|
|
64
|
-
tooltip: oMetadataItem.tooltip,
|
|
65
|
-
index: mCurrentState[oMetadataItem.key] ? mCurrentState[oMetadataItem.key].index : undefined,
|
|
66
|
-
visible: !!mCurrentState[oMetadataItem.key]
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
// Sort panel config
|
|
71
|
-
const sLocale = new Locale(Localization.getLanguageTag()).toString(),
|
|
72
|
-
oCollator = window.Intl.Collator(sLocale, {});
|
|
73
|
-
aPanelState.sort((mItem1, mItem2) => {
|
|
74
|
-
if (mItem1.visible && mItem2.visible) {
|
|
75
|
-
return (mItem1.index || 0) - (mItem2.index || 0);
|
|
76
|
-
}
|
|
77
|
-
if (mItem1.visible) {
|
|
78
|
-
return -1;
|
|
79
|
-
}
|
|
80
|
-
if (mItem2.visible) {
|
|
81
|
-
return 1;
|
|
82
|
-
}
|
|
83
|
-
return oCollator.compare(mItem1.label, mItem2.label);
|
|
84
|
-
});
|
|
85
|
-
aPanelState.forEach((oItem) => delete oItem.index);
|
|
86
|
-
return aPanelState;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
ColumnsMediator.prototype.getCurrentState = function () {
|
|
90
|
-
const oState = [],
|
|
91
|
-
aAggregateItems = this.getControl().getAggregation(this.getTargetAggregation()) || [],
|
|
92
|
-
oView = this.getView();
|
|
93
|
-
aAggregateItems.forEach((oItem, iIndex) => {
|
|
94
|
-
const sKey = oView ? oView.getLocalId(oItem.getId()) : oItem.getId();
|
|
95
|
-
oState[sKey] = { key: sKey, index: iIndex, visible: oItem.getVisible() };
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
const oCustomConfig = CustomDataConfig.read(this.getControl()) || {};
|
|
99
|
-
const oFlexConfig = oCustomConfig.hasOwnProperty("aggregations")
|
|
100
|
-
? oCustomConfig.aggregations[this.getTargetAggregation()]
|
|
101
|
-
: {};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
for (const sKey in oFlexConfig) {
|
|
105
|
-
const { index, visible = true } = oFlexConfig[sKey];
|
|
106
|
-
if (!oState[sKey]) {
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
if (index !== undefined) {
|
|
110
|
-
oState[sKey].index = index;
|
|
111
|
-
}
|
|
112
|
-
oState[sKey].visible = visible;
|
|
113
|
-
}
|
|
114
|
-
const aState = Object.values(oState)
|
|
115
|
-
.filter((oItem) => oItem.visible)
|
|
116
|
-
.sort((oItem1, oItem2) => {
|
|
117
|
-
return oItem1.index - oItem2.index;
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
return aState.map((oItem) => ({ key: oItem.key }));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
ColumnsMediator.prototype._getP13nData = function () {
|
|
124
|
-
return this._oPanel ? this._oPanel.getP13nData() : {};
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
ColumnsMediator.prototype.getChanges = function () {
|
|
128
|
-
const aChanges = [],
|
|
129
|
-
aCurrentState = this.getCurrentState(),
|
|
130
|
-
aP13nData = this._getP13nData(),
|
|
131
|
-
aNextState = aP13nData.filter((oEntry) => !!oEntry.visible).map((oEntry) => ({ key: oEntry.key }));
|
|
132
|
-
|
|
133
|
-
if (deepEqual(aCurrentState, aNextState)) {
|
|
134
|
-
return aChanges;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Calculate inserts, delete and move actions
|
|
138
|
-
const aDeleted = this._getDeletes(aCurrentState, aNextState),
|
|
139
|
-
aInserted = this._getInserts(aCurrentState, aNextState),
|
|
140
|
-
aMoved = this._getMove(aCurrentState, aNextState, aDeleted, aInserted);
|
|
141
|
-
|
|
142
|
-
aChanges.push(
|
|
143
|
-
this.createChange("uploadSetTableColumnsStateChange", { deleted: aDeleted, moved: aMoved, inserted: aInserted })
|
|
144
|
-
);
|
|
145
|
-
return aChanges;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
ColumnsMediator.prototype._getDeletes = function (aCurrentState, aNextState) {
|
|
149
|
-
const aResult = [],
|
|
150
|
-
mNextState = this.arrayToMap(aNextState);
|
|
151
|
-
|
|
152
|
-
aCurrentState.forEach((oState, iIndex) => {
|
|
153
|
-
if (!mNextState[oState.key]) {
|
|
154
|
-
aResult.push({ key: oState.key, prevIndex: iIndex });
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
return aResult;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
ColumnsMediator.prototype._getInserts = function (aCurrentState, aNextState) {
|
|
161
|
-
const aResult = [],
|
|
162
|
-
mCurrentState = this.arrayToMap(aCurrentState);
|
|
163
|
-
|
|
164
|
-
aNextState.forEach((oState, iIndex) => {
|
|
165
|
-
if (!mCurrentState[oState.key]) {
|
|
166
|
-
aResult.push({ key: oState.key, index: iIndex });
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
return aResult;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
ColumnsMediator.prototype._getMove = function (aCurrentState, aNextState) {
|
|
173
|
-
const aResult = [],
|
|
174
|
-
mNextState = this.arrayToMap(aNextState, true);
|
|
175
|
-
|
|
176
|
-
aCurrentState.forEach((oState, iIndex) => {
|
|
177
|
-
if (mNextState[oState.key] && mNextState[oState.key].index !== iIndex) {
|
|
178
|
-
aResult.push({ key: oState.key, index: mNextState[oState.key].index, prevIndex: iIndex });
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
return aResult;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
ColumnsMediator.prototype.applyStateToTable = function () {
|
|
185
|
-
const aState = this.getCurrentState(),
|
|
186
|
-
oView = this.getView();
|
|
187
|
-
|
|
188
|
-
this.getControl()
|
|
189
|
-
.getColumns()
|
|
190
|
-
.forEach((oCol) => {
|
|
191
|
-
oCol.setVisible(false);
|
|
192
|
-
});
|
|
193
|
-
const oColMap = this.getControl()
|
|
194
|
-
.getColumns()
|
|
195
|
-
.reduce((oInit, oCol) => {
|
|
196
|
-
const sKey = oView ? oView.getLocalId(oCol.getId()) : oCol.getId();
|
|
197
|
-
oInit[sKey] = oCol;
|
|
198
|
-
return oInit;
|
|
199
|
-
}, {});
|
|
200
|
-
|
|
201
|
-
aState.forEach((oCol, iIndex) => {
|
|
202
|
-
if (oColMap[oCol.key]) {
|
|
203
|
-
oColMap[oCol.key].setVisible(true);
|
|
204
|
-
oColMap[oCol.key].setOrder(iIndex);
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
return ColumnsMediator;
|
|
210
|
-
}
|
|
211
|
-
);
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
sap.ui.define(
|
|
8
|
-
[
|
|
9
|
-
"sap/m/upload/p13n/mediator/BaseMediator",
|
|
10
|
-
"sap/m/upload/FilterPanel",
|
|
11
|
-
"sap/m/upload/p13n/modules/CustomDataConfig",
|
|
12
|
-
"sap/base/util/deepEqual",
|
|
13
|
-
"sap/ui/model/Filter",
|
|
14
|
-
"sap/ui/model/FilterType"
|
|
15
|
-
],
|
|
16
|
-
function (BaseMediator, FilterPanel, CustomDataConfig, deepEqual, Filter, FilterType) {
|
|
17
|
-
"use strict";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Constructor for a new <code>FilterMediator</code>.
|
|
21
|
-
*
|
|
22
|
-
* @param {object} [mSettings] Initial settings for the new control
|
|
23
|
-
* @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this mediator
|
|
24
|
-
* @param {string} mSettings.targetAggregation The name of the aggregation that is now managed by this mediator
|
|
25
|
-
* @param {string} mSettings.p13nMetadataTarget The name of the personalization metadata target that is now managed by this mediator
|
|
26
|
-
*
|
|
27
|
-
* @class
|
|
28
|
-
* The <code>FilterMediator</code> entity serves as a class which handles filter panel related logic.
|
|
29
|
-
*
|
|
30
|
-
* @extends sap.m.upload.p13n.mediator.BaseMediator
|
|
31
|
-
*
|
|
32
|
-
* @author SAP SE
|
|
33
|
-
* @version 1.129.0
|
|
34
|
-
* @private
|
|
35
|
-
* @experimental
|
|
36
|
-
* @internal
|
|
37
|
-
* @alias sap.m.upload.p13n.mediator.FilterMediator
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
const FilterMediator = BaseMediator.extend("sap.m.upload.p13n.mediator.FilterMediator", {
|
|
41
|
-
constructor: function (mSettings) {
|
|
42
|
-
BaseMediator.call(this, mSettings);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
FilterMediator.prototype.createPanel = function () {
|
|
47
|
-
return Promise.resolve(this.createUi(this.getPanelData()));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
FilterMediator.prototype.createUi = function (aPanelData) {
|
|
51
|
-
const oMetadata = this.getControl()._getP13nMetadata();
|
|
52
|
-
this._oPanel = new FilterPanel({ fields: oMetadata[this.getP13nMetadataTarget()] });
|
|
53
|
-
this._oPanel.setP13nData(aPanelData);
|
|
54
|
-
return this._oPanel;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
FilterMediator.prototype.getPanelData = function () {
|
|
58
|
-
const aCurrentState = this.getCurrentState(),
|
|
59
|
-
aPanelState = [],
|
|
60
|
-
mMetadata = this.getControl()
|
|
61
|
-
._getP13nMetadata()
|
|
62
|
-
[this.getP13nMetadataTarget()].reduce((mMap, oProp) => {
|
|
63
|
-
mMap[oProp.path] = oProp;
|
|
64
|
-
return mMap;
|
|
65
|
-
}, {});
|
|
66
|
-
|
|
67
|
-
aCurrentState.forEach((oEntry) => {
|
|
68
|
-
if (!mMetadata[oEntry.path]) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
aPanelState.push({
|
|
72
|
-
name: oEntry.key,
|
|
73
|
-
path: oEntry.path,
|
|
74
|
-
operator: oEntry.operator,
|
|
75
|
-
value: oEntry.value
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
return aPanelState;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
FilterMediator.prototype.getCurrentState = function () {
|
|
83
|
-
const oCustomConfig = CustomDataConfig.read(this.getControl()) || {};
|
|
84
|
-
const oFilterConditions =
|
|
85
|
-
oCustomConfig.hasOwnProperty("properties") && oCustomConfig.properties[this.getTargetAggregation()]
|
|
86
|
-
? oCustomConfig.properties[this.getTargetAggregation()]
|
|
87
|
-
: {};
|
|
88
|
-
|
|
89
|
-
const aState = Object.values(oFilterConditions)
|
|
90
|
-
// .filter((oItem) => oItem.sorted)
|
|
91
|
-
.sort((oItem1, oItem2) => {
|
|
92
|
-
return oItem1.index - oItem2.index;
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
return aState.map((oItem) => ({ key: oItem.key, path: oItem.path, operator: oItem.operator, value: oItem.value }));
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
FilterMediator.prototype.getChanges = function () {
|
|
99
|
-
const aChanges = [],
|
|
100
|
-
aCurrentState = this.getCurrentState(),
|
|
101
|
-
aP13nData = this._getP13nData(),
|
|
102
|
-
aNextState = aP13nData
|
|
103
|
-
// .filter((oEntry) => !!oEntry.sorted)
|
|
104
|
-
.map((oEntry) => ({ key: oEntry.name, path: oEntry.path, operator: oEntry.operator, value: oEntry.value }));
|
|
105
|
-
|
|
106
|
-
if (deepEqual(aCurrentState, aNextState)) {
|
|
107
|
-
return aChanges;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const aDeleted = this._getDeletes(aCurrentState, aNextState),
|
|
111
|
-
aInserted = this._getInserts(aCurrentState, aNextState),
|
|
112
|
-
aMoved = this._getMove(aCurrentState, aNextState, aDeleted, aInserted);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
aChanges.push(
|
|
116
|
-
this.createChange("uploadSetTableFilterStateChange", { deleted: aDeleted, moved: aMoved, inserted: aInserted })
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
return aChanges;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
FilterMediator.prototype._getP13nData = function () {
|
|
123
|
-
return this._oPanel ? this._oPanel.getP13nData() : {};
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
FilterMediator.prototype._getDeletes = function (aCurrentState, aNextState) {
|
|
127
|
-
const aResult = [],
|
|
128
|
-
mNextState = this.arrayToMap(aNextState);
|
|
129
|
-
|
|
130
|
-
aCurrentState.forEach((oState, iIndex) => {
|
|
131
|
-
if (!mNextState[oState.key]) {
|
|
132
|
-
aResult.push({
|
|
133
|
-
key: oState.key,
|
|
134
|
-
prevIndex: iIndex,
|
|
135
|
-
prevPath: oState.path,
|
|
136
|
-
prevOperator: oState.operator,
|
|
137
|
-
prevValue: oState.value
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
return aResult;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
FilterMediator.prototype._getInserts = function (aCurrentState, aNextState) {
|
|
145
|
-
const aResult = [],
|
|
146
|
-
mCurrentState = this.arrayToMap(aCurrentState);
|
|
147
|
-
|
|
148
|
-
aNextState.forEach((oState, iIndex) => {
|
|
149
|
-
if (!mCurrentState[oState.key]) {
|
|
150
|
-
aResult.push({
|
|
151
|
-
key: oState.key,
|
|
152
|
-
index: iIndex,
|
|
153
|
-
path: oState.path,
|
|
154
|
-
operator: oState.operator,
|
|
155
|
-
value: oState.value
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
return aResult;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
FilterMediator.prototype._getMove = function (aCurrentState, aNextState) {
|
|
163
|
-
const aResult = [],
|
|
164
|
-
mNextState = this.arrayToMap(aNextState, true),
|
|
165
|
-
aProperties = ["path", "operator", "value"];
|
|
166
|
-
|
|
167
|
-
aCurrentState.forEach((oState, iIndex) => {
|
|
168
|
-
if (
|
|
169
|
-
mNextState[oState.key] &&
|
|
170
|
-
(mNextState[oState.key].index !== iIndex || !aProperties.every((sEntry) => mNextState[oState.key][sEntry] === oState[sEntry]))
|
|
171
|
-
) {
|
|
172
|
-
aResult.push({
|
|
173
|
-
key: oState.key,
|
|
174
|
-
index: mNextState[oState.key].index,
|
|
175
|
-
prevIndex: iIndex,
|
|
176
|
-
path: mNextState[oState.key].path,
|
|
177
|
-
prevPath: oState.path,
|
|
178
|
-
operator: mNextState[oState.key].operator,
|
|
179
|
-
prevOperator: oState.operator,
|
|
180
|
-
value: mNextState[oState.key].value,
|
|
181
|
-
prevValue: oState.value
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
return aResult;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
FilterMediator.prototype.applyStateToTable = function (oSorters = {}) {
|
|
189
|
-
const aState = this.getCurrentState(),
|
|
190
|
-
aFilters = aState.map((oEntry) => new Filter(oEntry.path, oEntry.operator, oEntry.value));
|
|
191
|
-
|
|
192
|
-
if (this.getControl().getBinding("items")){
|
|
193
|
-
this.getControl().getBinding("items").filter(aFilters.length ? new Filter(aFilters, true) : null, FilterType.Control);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
return FilterMediator;
|
|
198
|
-
}
|
|
199
|
-
);
|