@openui5/sap.m 1.120.6 → 1.121.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/.reuse/dep5 +23 -21
- package/THIRDPARTY.txt +6 -43
- package/package.json +4 -4
- package/src/sap/m/.library +18 -2
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +11 -11
- package/src/sap/m/ActionSheet.js +12 -8
- package/src/sap/m/ActionSheetRenderer.js +4 -4
- package/src/sap/m/ActionTile.js +7 -1
- package/src/sap/m/ActionTileContent.js +86 -7
- package/src/sap/m/ActionTileContentRenderer.js +4 -41
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +6 -6
- package/src/sap/m/Avatar.js +32 -14
- package/src/sap/m/Bar.js +5 -5
- package/src/sap/m/BarRenderer.js +3 -3
- package/src/sap/m/Breadcrumbs.js +12 -4
- package/src/sap/m/BreadcrumbsRenderer.js +1 -1
- package/src/sap/m/BusyDialog.js +19 -33
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +8 -8
- package/src/sap/m/ButtonRenderer.js +0 -4
- package/src/sap/m/Carousel.js +53 -25
- package/src/sap/m/CarouselLayout.js +14 -3
- package/src/sap/m/CarouselRenderer.js +4 -4
- package/src/sap/m/CheckBox.js +46 -5
- package/src/sap/m/CheckBoxRenderer.js +10 -3
- package/src/sap/m/ColorPalette.js +4 -2
- package/src/sap/m/ColorPalettePopover.js +5 -3
- package/src/sap/m/ColorPaletteRenderer.js +3 -3
- package/src/sap/m/Column.js +3 -4
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +59 -20
- package/src/sap/m/ColumnListItemRenderer.js +8 -9
- 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 +6 -6
- package/src/sap/m/ComboBox.js +16 -9
- package/src/sap/m/ComboBoxBase.js +10 -9
- package/src/sap/m/ComboBoxTextField.js +6 -4
- package/src/sap/m/ContentConfig.js +142 -0
- 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 +19 -18
- package/src/sap/m/DatePickerRenderer.js +3 -3
- package/src/sap/m/DateRangeSelection.js +16 -13
- package/src/sap/m/DateRangeSelectionRenderer.js +3 -3
- package/src/sap/m/DateTimeField.js +17 -9
- package/src/sap/m/DateTimeInput.js +6 -4
- package/src/sap/m/DateTimePicker.js +39 -30
- package/src/sap/m/DateTimePickerRenderer.js +4 -2
- package/src/sap/m/Dialog.js +21 -9
- package/src/sap/m/DialogRenderer.js +10 -3
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +5 -5
- package/src/sap/m/DynamicDate.js +5 -3
- package/src/sap/m/DynamicDateFormat.js +7 -6
- package/src/sap/m/DynamicDateOption.js +10 -5
- package/src/sap/m/DynamicDateRange.js +56 -43
- package/src/sap/m/DynamicDateUtil.js +3 -3
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +5 -9
- package/src/sap/m/ExpandableTextRenderer.js +3 -3
- package/src/sap/m/FacetFilter.js +17 -8
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +7 -7
- package/src/sap/m/FacetFilterRenderer.js +4 -4
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +4 -4
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/FeedListItemRenderer.js +3 -3
- package/src/sap/m/Fiori20Adapter.js +9 -9
- package/src/sap/m/FlexBox.js +2 -2
- package/src/sap/m/FlexItemData.js +17 -17
- package/src/sap/m/FormattedText.js +7 -6
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTagRenderer.js +5 -5
- package/src/sap/m/GenericTile.js +102 -14
- package/src/sap/m/GenericTileLineModeRenderer.js +3 -3
- package/src/sap/m/GenericTileRenderer.js +3 -3
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GroupHeaderListItemRenderer.js +3 -3
- package/src/sap/m/GrowingEnablement.js +7 -6
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +5 -5
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +4 -4
- package/src/sap/m/IconTabBarDragAndDropUtil.js +5 -5
- package/src/sap/m/IconTabBarSelectList.js +2 -2
- package/src/sap/m/IconTabFilter.js +27 -15
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +4 -4
- package/src/sap/m/IconTabHeader.js +61 -28
- package/src/sap/m/IconTabHeaderRenderer.js +5 -5
- package/src/sap/m/IconTabSeparator.js +7 -7
- package/src/sap/m/IllustratedMessage.js +8 -6
- package/src/sap/m/IllustratedMessageType.js +12 -0
- package/src/sap/m/Illustration.js +4 -4
- package/src/sap/m/IllustrationPool.js +3 -3
- package/src/sap/m/Image.js +6 -3
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +65 -36
- package/src/sap/m/InputBase.js +33 -8
- package/src/sap/m/InputBaseRenderer.js +3 -3
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputRenderer.js +5 -6
- package/src/sap/m/Label.js +6 -6
- package/src/sap/m/LightBox.js +4 -4
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +30 -6
- package/src/sap/m/LinkRenderer.js +4 -4
- package/src/sap/m/LinkTileContent.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +43 -24
- package/src/sap/m/ListItemBase.js +7 -6
- package/src/sap/m/ListItemBaseRenderer.js +3 -0
- package/src/sap/m/MaskEnabler.js +8 -6
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRenderer.js +2 -2
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +19 -17
- package/src/sap/m/MenuButton.js +8 -6
- package/src/sap/m/MenuItem.js +9 -9
- package/src/sap/m/MenuListItem.js +5 -4
- package/src/sap/m/MessageBox.js +5 -3
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +4 -3
- package/src/sap/m/MessagePage.js +4 -2
- package/src/sap/m/MessagePopover.js +9 -6
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +9 -7
- package/src/sap/m/MessageStripRenderer.js +5 -2
- package/src/sap/m/MessageStripUtilities.js +6 -4
- package/src/sap/m/MessageToast.js +8 -7
- package/src/sap/m/MessageView.js +29 -6
- package/src/sap/m/MessageViewRenderer.js +2 -2
- package/src/sap/m/MultiComboBox.js +36 -17
- package/src/sap/m/MultiComboBoxRenderer.js +4 -4
- package/src/sap/m/MultiEditField.js +4 -4
- package/src/sap/m/MultiInput.js +66 -19
- package/src/sap/m/MultiInputRenderer.js +3 -3
- package/src/sap/m/NavContainer.js +14 -9
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +4 -4
- package/src/sap/m/NotificationListGroup.js +4 -4
- package/src/sap/m/NotificationListItem.js +4 -4
- package/src/sap/m/NumericContent.js +6 -6
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/NumericInputRenderer.js +6 -6
- package/src/sap/m/ObjectAttribute.js +7 -6
- package/src/sap/m/ObjectAttributeRenderer.js +3 -3
- package/src/sap/m/ObjectHeader.js +15 -11
- package/src/sap/m/ObjectHeaderRenderer.js +4 -4
- package/src/sap/m/ObjectIdentifier.js +37 -8
- package/src/sap/m/ObjectIdentifierRenderer.js +3 -3
- package/src/sap/m/ObjectListItem.js +4 -4
- package/src/sap/m/ObjectMarker.js +6 -4
- package/src/sap/m/ObjectNumber.js +4 -3
- package/src/sap/m/ObjectNumberRenderer.js +6 -6
- package/src/sap/m/ObjectStatus.js +28 -22
- package/src/sap/m/ObjectStatusRenderer.js +26 -20
- package/src/sap/m/OverflowToolbar.js +2 -2
- package/src/sap/m/OverflowToolbarAssociativePopover.js +3 -3
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +2 -2
- 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 +33 -11
- package/src/sap/m/P13nConditionPanel.js +6 -4
- package/src/sap/m/P13nDialog.js +27 -13
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +18 -12
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +71 -49
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +5 -4
- 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 +28 -7
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +6 -5
- package/src/sap/m/PDFViewer.js +3 -6
- package/src/sap/m/Page.js +4 -8
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +5 -4
- package/src/sap/m/Panel.js +10 -5
- package/src/sap/m/PlanningCalendar.js +160 -109
- package/src/sap/m/PlanningCalendarHeader.js +9 -7
- package/src/sap/m/PlanningCalendarLegend.js +5 -5
- package/src/sap/m/PlanningCalendarRow.js +26 -15
- package/src/sap/m/PlanningCalendarView.js +1 -4
- package/src/sap/m/Popover.js +19 -21
- package/src/sap/m/PopoverRenderer.js +4 -4
- package/src/sap/m/ProgressIndicator.js +15 -13
- package/src/sap/m/ProgressIndicatorRenderer.js +3 -4
- package/src/sap/m/PullToRefresh.js +4 -3
- 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/QuickViewCardRenderer.js +3 -3
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +29 -17
- package/src/sap/m/RadioButton.js +4 -4
- package/src/sap/m/RadioButtonGroup.js +38 -5
- package/src/sap/m/RadioButtonGroupRenderer.js +4 -4
- package/src/sap/m/RadioButtonRenderer.js +3 -3
- package/src/sap/m/RangeSlider.js +9 -7
- package/src/sap/m/RangeSliderRenderer.js +2 -2
- package/src/sap/m/RatingIndicator.js +7 -6
- package/src/sap/m/RatingIndicatorRenderer.js +4 -4
- package/src/sap/m/ResponsivePopover.js +1 -3
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +3 -3
- package/src/sap/m/ScrollContainer.js +6 -6
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +7 -5
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +30 -16
- package/src/sap/m/SelectDialog.js +5 -3
- package/src/sap/m/SelectDialogBase.js +6 -6
- package/src/sap/m/SelectList.js +6 -6
- package/src/sap/m/SelectionDetails.js +7 -3
- 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 +4 -4
- package/src/sap/m/ShellRenderer.js +3 -2
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +41 -9
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +122 -54
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +22 -20
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +315 -61
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +88 -35
- package/src/sap/m/SinglePlanningCalendarMonthView.js +3 -4
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +5 -5
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +6 -5
- package/src/sap/m/SlideTile.js +6 -6
- package/src/sap/m/SlideTileRenderer.js +1 -3
- package/src/sap/m/Slider.js +38 -11
- package/src/sap/m/SliderRenderer.js +4 -4
- package/src/sap/m/SliderTooltip.js +4 -4
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +10 -8
- package/src/sap/m/SliderTooltipRenderer.js +3 -3
- package/src/sap/m/SplitApp.js +2 -1
- package/src/sap/m/SplitButton.js +5 -3
- package/src/sap/m/SplitContainer.js +20 -11
- package/src/sap/m/StandardDynamicDateOption.js +16 -12
- package/src/sap/m/StandardListItem.js +4 -3
- package/src/sap/m/StandardListItemRenderer.js +3 -3
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +6 -4
- package/src/sap/m/Suggest.js +5 -5
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsList.js +9 -7
- package/src/sap/m/SuggestionsListRenderer.js +2 -2
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +13 -11
- package/src/sap/m/SwitchRenderer.js +3 -3
- package/src/sap/m/TabContainer.js +9 -6
- package/src/sap/m/TabContainerItem.js +5 -8
- package/src/sap/m/TabStrip.js +23 -12
- package/src/sap/m/TabStripItem.js +7 -10
- package/src/sap/m/TabStripRenderer.js +2 -2
- package/src/sap/m/Table.js +4 -5
- package/src/sap/m/TablePersoController.js +10 -8
- package/src/sap/m/TablePersoDialog.js +19 -16
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +4 -4
- package/src/sap/m/TableSelectDialog.js +5 -3
- package/src/sap/m/Text.js +36 -39
- package/src/sap/m/TextArea.js +5 -3
- package/src/sap/m/TextRenderer.js +2 -7
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileAttribute.js +64 -0
- package/src/sap/m/TileAttributeRenderer.js +70 -0
- package/src/sap/m/TileContainer.js +10 -8
- package/src/sap/m/TileContent.js +8 -4
- package/src/sap/m/TileRenderer.js +3 -3
- package/src/sap/m/TimePicker.js +24 -19
- package/src/sap/m/TimePickerClock.js +4 -3
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +12 -10
- package/src/sap/m/TimePickerSlider.js +9 -7
- package/src/sap/m/TimePickerSliders.js +17 -13
- package/src/sap/m/TimePickerSlidersRenderer.js +3 -3
- package/src/sap/m/Title.js +5 -4
- package/src/sap/m/TitlePropagationSupport.js +4 -4
- package/src/sap/m/ToggleButton.js +4 -3
- package/src/sap/m/Token.js +6 -6
- package/src/sap/m/Tokenizer.js +16 -10
- package/src/sap/m/Toolbar.js +4 -4
- 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 +4 -2
- package/src/sap/m/TreeItemBase.js +4 -3
- package/src/sap/m/TreeItemBaseRenderer.js +3 -3
- package/src/sap/m/UploadCollection.js +28 -24
- 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 +5 -5
- package/src/sap/m/VariantItem.js +8 -3
- package/src/sap/m/VariantManagement.js +112 -33
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +34 -21
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +9 -2
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +4 -3
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/WheelSliderContainerRenderer.js +3 -3
- package/src/sap/m/Wizard.js +17 -15
- package/src/sap/m/WizardProgressNavigator.js +18 -2
- package/src/sap/m/WizardProgressNavigatorRenderer.js +9 -5
- package/src/sap/m/WizardRenderer.js +6 -4
- package/src/sap/m/WizardStep.js +9 -11
- package/src/sap/m/changeHandler/AddTableColumn.js +3 -7
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +4 -4
- package/src/sap/m/changeHandler/MoveTableColumns.js +3 -2
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/delegate/ValueStateMessage.js +3 -3
- package/src/sap/m/designtime/IconTabBar.designtime.js +3 -2
- package/src/sap/m/designtime/Link.designtime.js +4 -4
- package/src/sap/m/designtime/MenuButton.designtime.js +3 -0
- package/src/sap/m/designtime/ObjectIdentifier.designtime.js +0 -4
- package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +91 -91
- package/src/sap/m/flexibility/EngineFlex.js +14 -8
- package/src/sap/m/flexibility/MenuButton.flexibility.js +1 -0
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +4 -4
- package/src/sap/m/library.js +181 -59
- package/src/sap/m/messagebundle.properties +113 -90
- package/src/sap/m/messagebundle_ar.properties +16 -10
- package/src/sap/m/messagebundle_bg.properties +19 -13
- package/src/sap/m/messagebundle_ca.properties +16 -10
- package/src/sap/m/messagebundle_cnr.properties +21 -15
- package/src/sap/m/messagebundle_cs.properties +16 -10
- package/src/sap/m/messagebundle_cy.properties +19 -13
- package/src/sap/m/messagebundle_da.properties +14 -8
- package/src/sap/m/messagebundle_de.properties +12 -6
- package/src/sap/m/messagebundle_el.properties +27 -21
- package/src/sap/m/messagebundle_en.properties +1164 -22
- package/src/sap/m/messagebundle_en_GB.properties +23 -17
- package/src/sap/m/messagebundle_en_US_saprigi.properties +34 -22
- package/src/sap/m/messagebundle_es.properties +19 -13
- package/src/sap/m/messagebundle_es_MX.properties +18 -12
- package/src/sap/m/messagebundle_et.properties +14 -8
- package/src/sap/m/messagebundle_fi.properties +21 -15
- package/src/sap/m/messagebundle_fr.properties +15 -9
- package/src/sap/m/messagebundle_fr_CA.properties +11 -5
- package/src/sap/m/messagebundle_hi.properties +24 -18
- package/src/sap/m/messagebundle_hr.properties +15 -9
- package/src/sap/m/messagebundle_hu.properties +20 -14
- package/src/sap/m/messagebundle_id.properties +15 -9
- package/src/sap/m/messagebundle_it.properties +17 -11
- package/src/sap/m/messagebundle_iw.properties +13 -7
- package/src/sap/m/messagebundle_ja.properties +23 -17
- package/src/sap/m/messagebundle_kk.properties +14 -8
- package/src/sap/m/messagebundle_ko.properties +18 -12
- package/src/sap/m/messagebundle_lt.properties +17 -11
- package/src/sap/m/messagebundle_lv.properties +26 -20
- package/src/sap/m/messagebundle_mk.properties +20 -14
- package/src/sap/m/messagebundle_ms.properties +13 -7
- package/src/sap/m/messagebundle_nl.properties +16 -10
- package/src/sap/m/messagebundle_no.properties +15 -9
- package/src/sap/m/messagebundle_pl.properties +16 -10
- package/src/sap/m/messagebundle_pt.properties +16 -10
- package/src/sap/m/messagebundle_pt_PT.properties +13 -7
- package/src/sap/m/messagebundle_ro.properties +13 -7
- package/src/sap/m/messagebundle_ru.properties +15 -9
- package/src/sap/m/messagebundle_sh.properties +21 -15
- package/src/sap/m/messagebundle_sk.properties +13 -7
- package/src/sap/m/messagebundle_sl.properties +14 -8
- package/src/sap/m/messagebundle_sr.properties +21 -15
- package/src/sap/m/messagebundle_sv.properties +15 -9
- package/src/sap/m/messagebundle_th.properties +12 -6
- package/src/sap/m/messagebundle_tr.properties +15 -9
- package/src/sap/m/messagebundle_uk.properties +15 -9
- package/src/sap/m/messagebundle_vi.properties +16 -10
- package/src/sap/m/messagebundle_zh_CN.properties +12 -6
- package/src/sap/m/messagebundle_zh_TW.properties +12 -6
- package/src/sap/m/p13n/.eslintrc.json +19 -0
- package/src/sap/m/p13n/AbstractContainer.js +43 -29
- package/src/sap/m/p13n/AbstractContainerItem.js +8 -8
- package/src/sap/m/p13n/BasePanel.js +123 -76
- package/src/sap/m/p13n/Container.js +80 -50
- package/src/sap/m/p13n/Engine.js +331 -294
- package/src/sap/m/p13n/FilterController.js +335 -0
- package/src/sap/m/p13n/FilterPanel.js +291 -0
- package/src/sap/m/p13n/FlexUtil.js +23 -21
- package/src/sap/m/p13n/GroupController.js +97 -85
- package/src/sap/m/p13n/GroupPanel.js +30 -25
- package/src/sap/m/p13n/MetadataHelper.js +65 -21
- package/src/sap/m/p13n/PersistenceProvider.js +11 -9
- package/src/sap/m/p13n/Popup.js +63 -45
- package/src/sap/m/p13n/QueryPanel.js +117 -93
- package/src/sap/m/p13n/SelectionController.js +302 -237
- package/src/sap/m/p13n/SelectionPanel.js +117 -83
- package/src/sap/m/p13n/SortController.js +100 -89
- package/src/sap/m/p13n/SortPanel.js +46 -31
- package/src/sap/m/p13n/enums/PersistenceMode.js +57 -0
- package/src/sap/m/p13n/{enum → enums}/ProcessingStrategy.js +10 -8
- package/src/sap/m/p13n/handler/xConfigHandler.js +175 -161
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +151 -133
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +28 -28
- package/src/sap/m/p13n/modification/ModificationHandler.js +15 -15
- package/src/sap/m/p13n/modules/AdaptationProvider.js +7 -7
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +20 -18
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +7 -7
- package/src/sap/m/p13n/modules/UIManager.js +119 -117
- package/src/sap/m/p13n/modules/xConfigAPI.js +74 -68
- package/src/sap/m/plugins/CellSelector.js +142 -26
- package/src/sap/m/plugins/ColumnResizer.js +12 -17
- package/src/sap/m/plugins/ContextMenuSetting.js +155 -0
- package/src/sap/m/plugins/CopyProvider.js +170 -110
- package/src/sap/m/plugins/DataStateIndicator.js +9 -6
- package/src/sap/m/plugins/PasteProvider.js +18 -10
- package/src/sap/m/plugins/PluginBase.js +39 -15
- 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 +3 -3
- 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 +3 -3
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +3 -3
- 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 +7 -5
- 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 +4 -2
- 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 +6 -12
- 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 +2 -3
- package/src/sap/m/table/Util.js +67 -40
- 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 +5 -5
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +14 -21
- 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 +7 -5
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +6 -4
- package/src/sap/m/table/columnmenu/QuickSortItem.js +6 -4
- package/src/sap/m/table/columnmenu/QuickTotal.js +7 -5
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/ActionSheet.less +10 -3
- package/src/sap/m/themes/base/ActionTile.less +7 -4
- package/src/sap/m/themes/base/Carousel.less +1 -1
- package/src/sap/m/themes/base/ContextMenuSetting.less +3 -0
- package/src/sap/m/themes/base/IconTabBar.less +2 -2
- package/src/sap/m/themes/base/Label.less +2 -1
- package/src/sap/m/themes/base/Link.less +1 -1
- package/src/sap/m/themes/base/ListItemBase.less +1 -1
- package/src/sap/m/themes/base/MenuButton.less +2 -2
- package/src/sap/m/themes/base/MessageView.less +6 -0
- package/src/sap/m/themes/base/MultiComboBox.less +7 -4
- package/src/sap/m/themes/base/NumericContent.less +2 -2
- package/src/sap/m/themes/base/ObjectListItem.less +1 -1
- package/src/sap/m/themes/base/ObjectNumber.less +4 -4
- package/src/sap/m/themes/base/ObjectStatus.less +263 -160
- package/src/sap/m/themes/base/Panel.less +18 -4
- package/src/sap/m/themes/base/Popover.less +5 -0
- package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +21 -0
- package/src/sap/m/themes/base/StandardListItem.less +1 -1
- package/src/sap/m/themes/base/SuggestionItem.less +6 -0
- package/src/sap/m/themes/base/Table.less +0 -5
- package/src/sap/m/themes/base/TablePersoDialog.less +4 -2
- package/src/sap/m/themes/base/Text.less +2 -1
- package/src/sap/m/themes/base/UploadCollection.less +2 -2
- package/src/sap/m/themes/base/UploadSet.less +55 -0
- package/src/sap/m/themes/base/VariantManagement.less +2 -1
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NewMail.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SignOut.svg +24 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NewMail.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SignOut.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NewMail.svg +59 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SignOut.svg +113 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NewMail.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SignOut.svg +23 -0
- package/src/sap/m/themes/base/library.source.less +2 -1
- package/src/sap/m/upload/ActionsPlaceholder.js +1 -1
- package/src/sap/m/upload/Column.js +1 -1
- package/src/sap/m/upload/FilePreviewDialog.js +5 -5
- package/src/sap/m/upload/FilterPanel.js +5 -3
- package/src/sap/m/upload/UploadSet.js +122 -61
- package/src/sap/m/upload/UploadSetItem.js +31 -7
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploadSetwithTable.js +7 -6
- package/src/sap/m/upload/UploadSetwithTableItem.js +5 -5
- package/src/sap/m/upload/UploaderTableItem.js +1 -1
- package/src/sap/m/upload/p13n/PersManager.js +4 -2
- package/src/sap/m/upload/p13n/mediator/BaseMediator.js +1 -1
- package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +5 -4
- package/src/sap/m/upload/p13n/mediator/FilterMediator.js +5 -2
- package/src/sap/m/upload/p13n/mediator/GroupMediator.js +5 -4
- package/src/sap/m/upload/p13n/mediator/SortMediator.js +5 -4
- package/src/sap/m/upload/p13n/modules/PersPopupManager.js +3 -3
- package/LICENSES/BSD-2-Clause.txt +0 -22
- package/src/sap/m/CustomAttribute.js +0 -53
- package/src/sap/m/p13n/enum/PersistenceMode.js +0 -55
|
@@ -9,6 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
"sap/m/ColumnListItem",
|
|
10
10
|
"sap/m/HBox",
|
|
11
11
|
"sap/m/VBox",
|
|
12
|
+
"sap/ui/core/Lib",
|
|
12
13
|
"sap/ui/core/library",
|
|
13
14
|
"sap/ui/core/Icon",
|
|
14
15
|
"sap/m/Text",
|
|
@@ -21,23 +22,42 @@ sap.ui.define([
|
|
|
21
22
|
"sap/ui/model/Filter",
|
|
22
23
|
"sap/base/util/merge",
|
|
23
24
|
"sap/ui/core/InvisibleText"
|
|
24
|
-
],
|
|
25
|
+
], (
|
|
26
|
+
BasePanel,
|
|
27
|
+
Label,
|
|
28
|
+
ColumnListItem,
|
|
29
|
+
HBox,
|
|
30
|
+
VBox,
|
|
31
|
+
Library,
|
|
32
|
+
coreLibrary,
|
|
33
|
+
Icon,
|
|
34
|
+
Text,
|
|
35
|
+
Column,
|
|
36
|
+
Table,
|
|
37
|
+
mLibrary,
|
|
38
|
+
ToolbarSpacer,
|
|
39
|
+
Button,
|
|
40
|
+
OverflowToolbar,
|
|
41
|
+
Filter,
|
|
42
|
+
merge,
|
|
43
|
+
InvisibleText
|
|
44
|
+
) => {
|
|
25
45
|
"use strict";
|
|
26
46
|
|
|
27
47
|
// shortcut for sap.ui.core.IconColor
|
|
28
|
-
|
|
48
|
+
const {IconColor} = coreLibrary;
|
|
29
49
|
|
|
30
50
|
// shortcut for sap.m.ListKeyboardMode
|
|
31
|
-
|
|
51
|
+
const {ListKeyboardMode} = mLibrary;
|
|
32
52
|
|
|
33
53
|
// shortcut for sap.m.FlexJustifyContent
|
|
34
|
-
|
|
54
|
+
const {FlexJustifyContent} = mLibrary;
|
|
35
55
|
|
|
36
56
|
// shortcut for sap.m.ListType
|
|
37
|
-
|
|
57
|
+
const {ListType} = mLibrary;
|
|
38
58
|
|
|
39
59
|
// shortcut for sap.m.MultiSelectMode
|
|
40
|
-
|
|
60
|
+
const {MultiSelectMode} = mLibrary;
|
|
41
61
|
|
|
42
62
|
/**
|
|
43
63
|
* Constructor for a new <code>SelectionPanel</code>.
|
|
@@ -51,13 +71,13 @@ sap.ui.define([
|
|
|
51
71
|
* @extends sap.m.p13n.BasePanel
|
|
52
72
|
*
|
|
53
73
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
74
|
+
* @version 1.121.0
|
|
55
75
|
*
|
|
56
76
|
* @public
|
|
57
77
|
* @since 1.96
|
|
58
78
|
* @alias sap.m.p13n.SelectionPanel
|
|
59
79
|
*/
|
|
60
|
-
|
|
80
|
+
const SelectionPanel = BasePanel.extend("sap.m.p13n.SelectionPanel", {
|
|
61
81
|
metadata: {
|
|
62
82
|
library: "sap.m",
|
|
63
83
|
properties: {
|
|
@@ -67,7 +87,7 @@ sap.ui.define([
|
|
|
67
87
|
*/
|
|
68
88
|
title: {
|
|
69
89
|
type: "string",
|
|
70
|
-
defaultValue:
|
|
90
|
+
defaultValue: Library.getResourceBundleFor("sap.m").getText("p13n.DEFAULT_TITLE_SELECTION")
|
|
71
91
|
},
|
|
72
92
|
/**
|
|
73
93
|
/**
|
|
@@ -90,9 +110,9 @@ sap.ui.define([
|
|
|
90
110
|
*/
|
|
91
111
|
fieldColumn: {
|
|
92
112
|
type: "string",
|
|
93
|
-
defaultValue:
|
|
113
|
+
defaultValue: Library.getResourceBundleFor("sap.m").getText("p13n.DEFAULT_DESCRIPTION")
|
|
94
114
|
},
|
|
95
|
-
|
|
115
|
+
/**
|
|
96
116
|
* The second column in the panel showing the move buttons for reordering.
|
|
97
117
|
*/
|
|
98
118
|
activeColumn: {
|
|
@@ -124,7 +144,7 @@ sap.ui.define([
|
|
|
124
144
|
}
|
|
125
145
|
});
|
|
126
146
|
|
|
127
|
-
SelectionPanel.prototype.applySettings = function(){
|
|
147
|
+
SelectionPanel.prototype.applySettings = function() {
|
|
128
148
|
BasePanel.prototype.applySettings.apply(this, arguments);
|
|
129
149
|
this._setTemplate(this._getListTemplate());
|
|
130
150
|
this.addStyleClass("sapMSelectionPanel");
|
|
@@ -149,15 +169,15 @@ sap.ui.define([
|
|
|
149
169
|
};
|
|
150
170
|
|
|
151
171
|
SelectionPanel.prototype._getListTemplate = function() {
|
|
152
|
-
|
|
172
|
+
const oColumnListItem = new ColumnListItem({
|
|
153
173
|
selected: "{" + this.P13N_MODEL + ">" + this.PRESENCE_ATTRIBUTE + "}",
|
|
154
174
|
type: {
|
|
155
175
|
path: this.P13N_MODEL + ">" + this.PRESENCE_ATTRIBUTE,
|
|
156
|
-
formatter:
|
|
176
|
+
formatter: (bSelected) => {
|
|
157
177
|
//In case the factory control is displayed, no move buttons are displayed --> item should be inactive
|
|
158
178
|
//to avoid issues with the label for mechanism
|
|
159
179
|
return bSelected && !this._bShowFactory ? ListType.Active : ListType.Inactive;
|
|
160
|
-
}
|
|
180
|
+
}
|
|
161
181
|
},
|
|
162
182
|
cells: [
|
|
163
183
|
new VBox({
|
|
@@ -180,7 +200,7 @@ sap.ui.define([
|
|
|
180
200
|
visible: {
|
|
181
201
|
path: this.P13N_MODEL + ">active",
|
|
182
202
|
formatter: function(bactive) {
|
|
183
|
-
if (bactive){
|
|
203
|
+
if (bactive) {
|
|
184
204
|
return true;
|
|
185
205
|
} else {
|
|
186
206
|
return false;
|
|
@@ -197,12 +217,12 @@ sap.ui.define([
|
|
|
197
217
|
// The active status is visiually represented as dot icon in the tabular view, for the screen reader it needs to be ensured
|
|
198
218
|
// that a similar information is available without the UI. This InvisibleText will provide a text in the screen reader as:
|
|
199
219
|
// "Active Field is active" & "Active Field is inactive" --> this should only be done in case the active column is being used
|
|
200
|
-
|
|
220
|
+
const oActiveTextOutput = new InvisibleText({
|
|
201
221
|
text: {
|
|
202
222
|
path: this.P13N_MODEL + ">active",
|
|
203
|
-
formatter:
|
|
223
|
+
formatter: (bactive) => {
|
|
204
224
|
return bactive ? this._getResourceText("p13n.ACTIVESTATE_ACTIVE") : this._getResourceText("p13n.ACTIVESTATE_INACTIVE");
|
|
205
|
-
}
|
|
225
|
+
}
|
|
206
226
|
}
|
|
207
227
|
});
|
|
208
228
|
|
|
@@ -215,7 +235,7 @@ sap.ui.define([
|
|
|
215
235
|
SelectionPanel.prototype.setActiveColumn = function(sActiveText) {
|
|
216
236
|
this.setProperty("activeColumn", sActiveText);
|
|
217
237
|
this._setTemplate(this._getListTemplate()); //recreate template since its depending on this property
|
|
218
|
-
this._displayColumns()
|
|
238
|
+
this._displayColumns(); //update header texts in Table columns
|
|
219
239
|
return this;
|
|
220
240
|
};
|
|
221
241
|
|
|
@@ -226,21 +246,21 @@ sap.ui.define([
|
|
|
226
246
|
};
|
|
227
247
|
|
|
228
248
|
SelectionPanel.prototype.setShowHeader = function(bShowHeader) {
|
|
229
|
-
if (bShowHeader){
|
|
230
|
-
|
|
231
|
-
|
|
249
|
+
if (bShowHeader) {
|
|
250
|
+
this._oShowSelectedButton = new Button({
|
|
251
|
+
press: (oEvt) => {
|
|
252
|
+
this._bShowSelected = !this._bShowSelected;
|
|
253
|
+
this._filterList(this._bShowSelected, this._sSearch);
|
|
254
|
+
this._updateShowSelectedButton();
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
this._updateShowSelectedButton();
|
|
258
|
+
|
|
232
259
|
this._oListControl.setHeaderToolbar(new OverflowToolbar({
|
|
233
260
|
content: [
|
|
234
261
|
this._getSearchField(),
|
|
235
262
|
new ToolbarSpacer(),
|
|
236
|
-
|
|
237
|
-
press: function(oEvt){
|
|
238
|
-
this._bShowSelected = oEvt.getSource().getText() == sShowSelected;
|
|
239
|
-
this._filterList(this._bShowSelected, this._sSearch);
|
|
240
|
-
oEvt.getSource().setText(this._bShowSelected ? sShowAll : sShowSelected);
|
|
241
|
-
}.bind(this),
|
|
242
|
-
text: sShowSelected
|
|
243
|
-
})
|
|
263
|
+
this._oShowSelectedButton
|
|
244
264
|
]
|
|
245
265
|
}));
|
|
246
266
|
}
|
|
@@ -248,10 +268,17 @@ sap.ui.define([
|
|
|
248
268
|
return this;
|
|
249
269
|
};
|
|
250
270
|
|
|
271
|
+
SelectionPanel.prototype._updateShowSelectedButton = function() {
|
|
272
|
+
const sShowSelected = this._getResourceText("p13n.SHOW_SELECTED");
|
|
273
|
+
const sShowAll = this._getResourceText("p13n.SHOW_ALL");
|
|
274
|
+
|
|
275
|
+
this._oShowSelectedButton?.setText(this._bShowSelected ? sShowAll : sShowSelected);
|
|
276
|
+
};
|
|
277
|
+
|
|
251
278
|
SelectionPanel.prototype.getSelectedFields = function() {
|
|
252
|
-
|
|
253
|
-
this._loopItems(this._oListControl,
|
|
254
|
-
if (oItem.getSelected()){
|
|
279
|
+
const aSelectedItems = [];
|
|
280
|
+
this._loopItems(this._oListControl, (oItem, sKey) => {
|
|
281
|
+
if (oItem.getSelected()) {
|
|
255
282
|
aSelectedItems.push(sKey);
|
|
256
283
|
}
|
|
257
284
|
});
|
|
@@ -260,7 +287,8 @@ sap.ui.define([
|
|
|
260
287
|
};
|
|
261
288
|
|
|
262
289
|
SelectionPanel.prototype._filterList = function(bShowSelected, sSarch) {
|
|
263
|
-
|
|
290
|
+
let oSearchFilter = [],
|
|
291
|
+
oSelectedFilter = [];
|
|
264
292
|
if (bShowSelected) {
|
|
265
293
|
oSelectedFilter = new Filter(this.PRESENCE_ATTRIBUTE, "EQ", true);
|
|
266
294
|
}
|
|
@@ -279,24 +307,26 @@ sap.ui.define([
|
|
|
279
307
|
//remove move buttons if unselected item is hovered (not covered by updateStarted)
|
|
280
308
|
this._removeMoveButtons();
|
|
281
309
|
//Check if the prior hovered item had a visible icon and renable it if required
|
|
282
|
-
if (this._oHoveredItem && !this._oHoveredItem.bIsDestroyed && this._oHoveredItem.getBindingContextPath()){
|
|
283
|
-
|
|
284
|
-
|
|
310
|
+
if (this._oHoveredItem && !this._oHoveredItem.bIsDestroyed && this._oHoveredItem.getBindingContextPath()) {
|
|
311
|
+
const bVisible = !!this._getP13nModel().getProperty(this._oHoveredItem.getBindingContextPath()).active;
|
|
312
|
+
const oOldIcon = this._oHoveredItem.getCells()[1].getItems()[0];
|
|
285
313
|
oOldIcon.setVisible(bVisible);
|
|
286
314
|
}
|
|
287
315
|
//Store (new) hovered item and set its icon to visible: false + add move buttons to it
|
|
288
|
-
|
|
316
|
+
const oIcon = oHoveredItem.getCells()[1].getItems()[0];
|
|
289
317
|
if (oHoveredItem.getSelected()) {
|
|
290
318
|
oIcon.setVisible(false);
|
|
291
319
|
}
|
|
292
320
|
this._oHoveredItem = oHoveredItem;
|
|
293
|
-
|
|
294
|
-
|
|
321
|
+
if (!(oHoveredItem.getMultiSelectControl()?.getEnabled() == false)) {
|
|
322
|
+
this._updateEnableOfMoveButtons(oHoveredItem, false);
|
|
323
|
+
this._addMoveButtons(oHoveredItem);
|
|
324
|
+
}
|
|
295
325
|
};
|
|
296
326
|
|
|
297
327
|
SelectionPanel.prototype._removeMoveButtons = function() {
|
|
298
|
-
|
|
299
|
-
if (oMoveButtonBox){
|
|
328
|
+
const oMoveButtonBox = this._getMoveButtonContainer();
|
|
329
|
+
if (oMoveButtonBox) {
|
|
300
330
|
oMoveButtonBox.removeItem(this._getMoveTopButton());
|
|
301
331
|
oMoveButtonBox.removeItem(this._getMoveUpButton());
|
|
302
332
|
oMoveButtonBox.removeItem(this._getMoveDownButton());
|
|
@@ -308,7 +338,7 @@ sap.ui.define([
|
|
|
308
338
|
if (this._oMoveBottomButton &&
|
|
309
339
|
this._oMoveBottomButton.getParent() &&
|
|
310
340
|
this._oMoveBottomButton.getParent().isA("sap.m.FlexBox")
|
|
311
|
-
){
|
|
341
|
+
) {
|
|
312
342
|
return this._oMoveBottomButton.getParent();
|
|
313
343
|
}
|
|
314
344
|
};
|
|
@@ -317,11 +347,11 @@ sap.ui.define([
|
|
|
317
347
|
this._bShowFactory = bShow;
|
|
318
348
|
this._displayColumns();
|
|
319
349
|
|
|
320
|
-
this._oListControl.getItems().forEach(
|
|
350
|
+
this._oListControl.getItems().forEach((oItem) => {
|
|
321
351
|
oItem.setType(bShow ? "Inactive" : "Active");
|
|
322
352
|
});
|
|
323
353
|
|
|
324
|
-
if (bShow){
|
|
354
|
+
if (bShow) {
|
|
325
355
|
this.removeStyleClass("SelectionPanelHover");
|
|
326
356
|
this._oListControl.setKeyboardMode(ListKeyboardMode.Edit); //--> tab through editable fields (fields shown)
|
|
327
357
|
this._addFactoryControl();
|
|
@@ -333,13 +363,13 @@ sap.ui.define([
|
|
|
333
363
|
};
|
|
334
364
|
|
|
335
365
|
SelectionPanel.prototype._loopItems = function(oList, fnItemCallback) {
|
|
336
|
-
oList.getItems().forEach(
|
|
366
|
+
oList.getItems().forEach((oItem) => {
|
|
337
367
|
|
|
338
|
-
|
|
339
|
-
|
|
368
|
+
const sPath = oItem.getBindingContextPath();
|
|
369
|
+
const sKey = this._getP13nModel().getProperty(sPath).name;
|
|
340
370
|
|
|
341
371
|
fnItemCallback.call(this, oItem, sKey);
|
|
342
|
-
}
|
|
372
|
+
});
|
|
343
373
|
};
|
|
344
374
|
|
|
345
375
|
/**
|
|
@@ -361,10 +391,16 @@ sap.ui.define([
|
|
|
361
391
|
//remove the reorder buttons from their current location and hence reset the hover logic
|
|
362
392
|
this._removeMoveButtons();
|
|
363
393
|
this._oSelectedItem = null;
|
|
364
|
-
|
|
365
394
|
return this;
|
|
366
395
|
};
|
|
367
396
|
|
|
397
|
+
SelectionPanel.prototype.onReset = function() {
|
|
398
|
+
BasePanel.prototype.onReset.apply(this, arguments);
|
|
399
|
+
this._sSearch = "";
|
|
400
|
+
this._bShowSelected = false;
|
|
401
|
+
this._updateShowSelectedButton();
|
|
402
|
+
};
|
|
403
|
+
|
|
368
404
|
SelectionPanel.prototype._updateCount = function() {
|
|
369
405
|
this._getP13nModel().setProperty("/selectedItems", this._oListControl.getSelectedContexts(true).length);
|
|
370
406
|
};
|
|
@@ -375,9 +411,9 @@ sap.ui.define([
|
|
|
375
411
|
};
|
|
376
412
|
|
|
377
413
|
SelectionPanel.prototype._removeFactoryControl = function() {
|
|
378
|
-
this._oListControl.getItems().forEach(
|
|
379
|
-
|
|
380
|
-
if (oFirstCell.getItems().length > 1){
|
|
414
|
+
this._oListControl.getItems().forEach((oItem) => {
|
|
415
|
+
const oFirstCell = oItem.getCells()[0];
|
|
416
|
+
if (oFirstCell.getItems().length > 1) {
|
|
381
417
|
oFirstCell.removeItem(oFirstCell.getItems()[1]);
|
|
382
418
|
}
|
|
383
419
|
});
|
|
@@ -386,7 +422,7 @@ sap.ui.define([
|
|
|
386
422
|
};
|
|
387
423
|
|
|
388
424
|
SelectionPanel.prototype._moveSelectedItem = function(){
|
|
389
|
-
this._oSelectedItem = this._getMoveButtonContainer()
|
|
425
|
+
this._oSelectedItem = this._getMoveButtonContainer()?.getParent();
|
|
390
426
|
BasePanel.prototype._moveSelectedItem.apply(this, arguments);
|
|
391
427
|
};
|
|
392
428
|
|
|
@@ -400,10 +436,10 @@ sap.ui.define([
|
|
|
400
436
|
};
|
|
401
437
|
|
|
402
438
|
SelectionPanel.prototype._displayColumns = function() {
|
|
403
|
-
|
|
439
|
+
const aColumns = [
|
|
404
440
|
this.getFieldColumn()
|
|
405
441
|
];
|
|
406
|
-
|
|
442
|
+
const bShowActiveColumn = this.getEnableReorder() || this.getActiveColumn();
|
|
407
443
|
if (!this._bShowFactory && bShowActiveColumn) {
|
|
408
444
|
aColumns.push(new Column({
|
|
409
445
|
width: "30%",
|
|
@@ -419,23 +455,21 @@ sap.ui.define([
|
|
|
419
455
|
|
|
420
456
|
SelectionPanel.prototype._setPanelColumns = function(aColumns) {
|
|
421
457
|
this._sText = aColumns[0];
|
|
422
|
-
|
|
458
|
+
const bEnableCount = this.getEnableCount();
|
|
423
459
|
if (bEnableCount) {
|
|
424
|
-
|
|
460
|
+
const oColumn = new Column({
|
|
425
461
|
header: new Text({
|
|
426
462
|
text: {
|
|
427
|
-
parts: [
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
],
|
|
434
|
-
formatter: function(iSelected, aAll) {
|
|
463
|
+
parts: [{
|
|
464
|
+
path: this.P13N_MODEL + '>/selectedItems'
|
|
465
|
+
}, {
|
|
466
|
+
path: this.P13N_MODEL + '>/items'
|
|
467
|
+
}],
|
|
468
|
+
formatter: (iSelected, aAll) => {
|
|
435
469
|
return this._sText + " " + this._getResourceText('p13n.HEADER_COUNT', [
|
|
436
470
|
iSelected, aAll instanceof Array ? aAll.length : 0
|
|
437
471
|
]);
|
|
438
|
-
}
|
|
472
|
+
}
|
|
439
473
|
}
|
|
440
474
|
})
|
|
441
475
|
});
|
|
@@ -445,19 +479,19 @@ sap.ui.define([
|
|
|
445
479
|
};
|
|
446
480
|
|
|
447
481
|
SelectionPanel.prototype._addFactoryControl = function(oList) {
|
|
448
|
-
this._oListControl.getItems().forEach(
|
|
449
|
-
|
|
450
|
-
|
|
482
|
+
this._oListControl.getItems().forEach((oItem) => {
|
|
483
|
+
const oContext = oItem.getBindingContext(this.P13N_MODEL);
|
|
484
|
+
const oField = this.getItemFactory().call(this, oContext);
|
|
451
485
|
|
|
452
486
|
//set 'labelFor'
|
|
453
|
-
|
|
454
|
-
|
|
487
|
+
const oFirstCell = oItem.getCells()[0];
|
|
488
|
+
const oLabel = oFirstCell.getItems()[0];
|
|
455
489
|
if (oLabel) {
|
|
456
490
|
oLabel.setLabelFor(oField);
|
|
457
491
|
}
|
|
458
492
|
|
|
459
493
|
oFirstCell.addItem(oField);
|
|
460
|
-
}
|
|
494
|
+
});
|
|
461
495
|
this.addStyleClass("sapUiMDCAFLabelMarkingList");
|
|
462
496
|
};
|
|
463
497
|
|
|
@@ -466,31 +500,31 @@ sap.ui.define([
|
|
|
466
500
|
growing: false,
|
|
467
501
|
growingThreshold: 25,
|
|
468
502
|
growingScrollToLoad: true,
|
|
469
|
-
updateStarted:
|
|
503
|
+
updateStarted: () => {
|
|
470
504
|
this._removeMoveButtons();
|
|
471
505
|
this._removeFactoryControl();
|
|
472
|
-
}
|
|
473
|
-
updateFinished:
|
|
506
|
+
},
|
|
507
|
+
updateFinished: () => {
|
|
474
508
|
if (this._getShowFactory()) {
|
|
475
509
|
this._addFactoryControl();
|
|
476
510
|
}
|
|
477
|
-
}
|
|
511
|
+
}
|
|
478
512
|
}, this._getListControlConfig()));
|
|
479
513
|
};
|
|
480
514
|
|
|
481
515
|
SelectionPanel.prototype.filterContent = function(aFilter) {
|
|
482
|
-
if (this._oListControl.getBinding("items")){
|
|
516
|
+
if (this._oListControl.getBinding("items")) {
|
|
483
517
|
this._oListControl.getBinding("items").filter(aFilter, true);
|
|
484
518
|
}
|
|
485
519
|
};
|
|
486
520
|
|
|
487
521
|
SelectionPanel.prototype._addMoveButtons = function(oItem) {
|
|
488
|
-
|
|
489
|
-
if (!oTableItem){
|
|
522
|
+
const oTableItem = oItem;
|
|
523
|
+
if (!oTableItem) {
|
|
490
524
|
return;
|
|
491
525
|
}
|
|
492
|
-
|
|
493
|
-
if (bItemSelected){
|
|
526
|
+
const bItemSelected = this._getP13nModel().getProperty(oTableItem.getBindingContextPath())[this.PRESENCE_ATTRIBUTE];
|
|
527
|
+
if (bItemSelected) {
|
|
494
528
|
oTableItem.getCells()[1].addItem(this._getMoveTopButton());
|
|
495
529
|
oTableItem.getCells()[1].addItem(this._getMoveUpButton());
|
|
496
530
|
oTableItem.getCells()[1].addItem(this._getMoveDownButton());
|
|
@@ -5,16 +5,27 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
'sap/m/p13n/SelectionController',
|
|
9
|
-
],
|
|
8
|
+
'sap/m/p13n/SelectionController', 'sap/m/p13n/SortPanel', 'sap/m/p13n/modules/xConfigAPI'
|
|
9
|
+
], (BaseController, SortPanel, xConfigAPI) => {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Personalization <code>SortState</code> object type. This object describes the state processed by this controller when accessing it through the {@link sap.m.p13n.Engine Engine}.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
* @typedef {object} sap.m.p13n.SortState
|
|
17
|
+
* @property {string} key The key for the sort state
|
|
18
|
+
* @property {boolean} [sorted] Defines whether the item is sorted (if a sort state is provided, it's sorted automatically)
|
|
19
|
+
* @property {boolean} [descending] Defines whether the sorting is processed in a descending order (<code>false</code> is the default)
|
|
20
|
+
* @property {int} [index] Describes the index of the sorter
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
13
25
|
* Constructor for a new <code>SortController</code>.
|
|
14
26
|
*
|
|
15
|
-
* @param {
|
|
16
|
-
* @param {
|
|
17
|
-
* @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this controller
|
|
27
|
+
* @param {object} mSettings Initial settings for the new controller
|
|
28
|
+
* @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this controller
|
|
18
29
|
*
|
|
19
30
|
* @class
|
|
20
31
|
* The <code>SortController</code> entity serves as a base class to create personalization implementations that are specific to sorting.
|
|
@@ -22,110 +33,110 @@ sap.ui.define([
|
|
|
22
33
|
* @extends sap.m.p13n.SelectionController
|
|
23
34
|
*
|
|
24
35
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
36
|
+
* @version 1.121.0
|
|
26
37
|
* @public
|
|
27
38
|
* @alias sap.m.p13n.SortController
|
|
28
39
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
40
|
+
const SortController = BaseController.extend("sap.m.p13n.SortController", {
|
|
41
|
+
constructor: function() {
|
|
31
42
|
BaseController.apply(this, arguments);
|
|
32
43
|
this._bResetEnabled = true;
|
|
33
44
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
};
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
SortController.prototype.getStateKey = () => {
|
|
48
|
+
return "sorters";
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
SortController.prototype.getDelta = function(mPropertyBag) {
|
|
52
|
+
mPropertyBag.deltaAttributes.push("descending");
|
|
53
|
+
return BaseController.prototype.getDelta.apply(this, arguments);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
SortController.prototype.initAdaptationUI = function(oPropertyHelper) {
|
|
57
|
+
|
|
58
|
+
const oSortPanel = new SortPanel();
|
|
59
|
+
|
|
60
|
+
const oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
61
|
+
oSortPanel.setP13nData(oAdaptationData.items);
|
|
62
|
+
this._oPanel = oSortPanel;
|
|
63
|
+
|
|
64
|
+
return Promise.resolve(oSortPanel);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
SortController.prototype.model2State = function() {
|
|
68
|
+
const aItems = [];
|
|
69
|
+
if (this._oPanel) {
|
|
70
|
+
this._oPanel.getP13nData(true).forEach((oItem) => {
|
|
71
|
+
if (oItem.sorted) {
|
|
72
|
+
aItems.push({
|
|
73
|
+
key: oItem.key
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return aItems;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
71
80
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
SortController.prototype.getChangeOperations = () => {
|
|
82
|
+
return {
|
|
83
|
+
add: "addSort",
|
|
84
|
+
remove: "removeSort",
|
|
85
|
+
move: "moveSort"
|
|
86
|
+
};
|
|
87
|
+
};
|
|
79
88
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
89
|
+
SortController.prototype.getCurrentState = function(bExternalize) {
|
|
90
|
+
const oXConfig = xConfigAPI.readConfig(this.getAdaptationControl()) || {};
|
|
91
|
+
const aSortConditions = oXConfig.hasOwnProperty("properties") ? oXConfig.properties.sortConditions : [];
|
|
83
92
|
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
return aSortConditions || [];
|
|
94
|
+
};
|
|
86
95
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
SortController.prototype._createAddRemoveChange = (oControl, sOperation, oContent) => {
|
|
97
|
+
const oAddRemoveChange = {
|
|
98
|
+
selectorElement: oControl,
|
|
99
|
+
changeSpecificData: {
|
|
100
|
+
changeType: sOperation,
|
|
101
|
+
content: oContent
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
return oAddRemoveChange;
|
|
105
|
+
};
|
|
97
106
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
107
|
+
SortController.prototype._getPresenceAttribute = (bexternalAppliance) => {
|
|
108
|
+
return "sorted";
|
|
109
|
+
};
|
|
101
110
|
|
|
102
|
-
|
|
111
|
+
SortController.prototype.mixInfoAndState = function(oPropertyHelper) {
|
|
103
112
|
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
const aItemState = this.getCurrentState();
|
|
114
|
+
const mExistingSorters = this.arrayToMap(aItemState);
|
|
106
115
|
|
|
107
|
-
|
|
116
|
+
const oP13nData = this.prepareAdaptationData(oPropertyHelper, (mItem, oProperty) => {
|
|
108
117
|
|
|
109
|
-
|
|
118
|
+
const oExistingSorter = mExistingSorters[oProperty.key];
|
|
110
119
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
120
|
+
mItem.sorted = oExistingSorter ? true : false;
|
|
121
|
+
mItem.sortPosition = oExistingSorter ? oExistingSorter.position : -1;
|
|
122
|
+
mItem.descending = oExistingSorter ? !!oExistingSorter.descending : false;
|
|
114
123
|
|
|
115
|
-
|
|
116
|
-
|
|
124
|
+
return !(oProperty.sortable === false);
|
|
125
|
+
});
|
|
117
126
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
127
|
+
this.sortP13nData({
|
|
128
|
+
visible: "sorted",
|
|
129
|
+
position: "sortPosition"
|
|
130
|
+
}, oP13nData.items);
|
|
122
131
|
|
|
123
|
-
|
|
132
|
+
oP13nData.presenceAttribute = this._getPresenceAttribute();
|
|
124
133
|
|
|
125
|
-
|
|
134
|
+
oP13nData.items.forEach((oItem) => {
|
|
135
|
+
delete oItem.sortPosition;
|
|
136
|
+
});
|
|
126
137
|
|
|
127
|
-
|
|
128
|
-
|
|
138
|
+
return oP13nData;
|
|
139
|
+
};
|
|
129
140
|
|
|
130
141
|
return SortController;
|
|
131
142
|
|