@openui5/sap.m 1.103.1 → 1.106.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/.eslintrc.json +2 -3
- package/.reuse/dep5 +35 -15
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +64 -21
- package/package.json +4 -4
- package/src/sap/m/.library +17 -1
- 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/App.js +2 -3
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +2 -2
- package/src/sap/m/BadgeEnabler.js +1 -2
- package/src/sap/m/Bar.js +11 -10
- package/src/sap/m/Breadcrumbs.js +2 -2
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +49 -10
- package/src/sap/m/ButtonRenderer.js +10 -2
- package/src/sap/m/Carousel.js +3 -4
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +3 -3
- package/src/sap/m/CheckBox.js +46 -6
- package/src/sap/m/CheckBoxRenderer.js +1 -0
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +5 -5
- package/src/sap/m/ColumnHeaderPopover.js +5 -7
- package/src/sap/m/ColumnListItem.js +1 -4
- package/src/sap/m/ColumnListItemRenderer.js +1 -2
- package/src/sap/m/ColumnPopoverActionItem.js +3 -3
- package/src/sap/m/ColumnPopoverCustomItem.js +3 -3
- package/src/sap/m/ColumnPopoverItem.js +3 -3
- package/src/sap/m/ColumnPopoverSelectListItem.js +3 -5
- package/src/sap/m/ColumnPopoverSortItem.js +3 -3
- package/src/sap/m/ComboBox.js +6 -5
- package/src/sap/m/ComboBoxBase.js +3 -7
- package/src/sap/m/ComboBoxBaseRenderer.js +2 -2
- package/src/sap/m/ComboBoxTextField.js +1 -7
- package/src/sap/m/ComboBoxTextFieldRenderer.js +19 -4
- package/src/sap/m/CustomDynamicDateOption.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 +3 -3
- package/src/sap/m/CustomTreeItemRenderer.js +2 -2
- package/src/sap/m/DatePicker.js +16 -26
- package/src/sap/m/DateRangeSelection.js +45 -38
- package/src/sap/m/DateTimeField.js +87 -20
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +58 -32
- package/src/sap/m/DateTimePickerRenderer.js +1 -1
- package/src/sap/m/Dialog.js +44 -2
- 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 +2 -5
- package/src/sap/m/DynamicDateOption.js +43 -16
- package/src/sap/m/DynamicDateRange.js +49 -7
- package/src/sap/m/DynamicDateRangeRenderer.js +5 -2
- package/src/sap/m/DynamicDateUtil.js +23 -2
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +2 -2
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.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 +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 +116 -23
- package/src/sap/m/GenericTileLineModeRenderer.js +4 -4
- package/src/sap/m/GenericTileRenderer.js +23 -10
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +60 -36
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +34 -32
- package/src/sap/m/HeaderContainerItemNavigator.js +3 -6
- package/src/sap/m/IconTabBar.js +54 -22
- 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 +6 -19
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +98 -25
- package/src/sap/m/IllustratedMessageRenderer.js +10 -6
- package/src/sap/m/Illustration.js +8 -1
- package/src/sap/m/IllustrationPool.js +1 -0
- package/src/sap/m/IllustrationRenderer.js +2 -1
- package/src/sap/m/Image.js +73 -3
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/ImageRenderer.js +66 -2
- package/src/sap/m/Input.js +62 -7
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputBaseRenderer.js +2 -2
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputRenderer.js +4 -0
- package/src/sap/m/InstanceManager.js +6 -6
- package/src/sap/m/Label.js +34 -4
- package/src/sap/m/LabelRenderer.js +7 -2
- package/src/sap/m/LightBox.js +2 -2
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +74 -10
- package/src/sap/m/LinkRenderer.js +26 -12
- package/src/sap/m/List.js +38 -1
- package/src/sap/m/ListBase.js +109 -44
- package/src/sap/m/ListBaseRenderer.js +7 -15
- package/src/sap/m/ListItemBase.js +40 -11
- package/src/sap/m/ListItemBaseRenderer.js +17 -6
- package/src/sap/m/ListRenderer.js +2 -2
- package/src/sap/m/MaskEnabler.js +52 -2
- package/src/sap/m/MaskInput.js +23 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageBox.js +1 -1
- package/src/sap/m/MessageItem.js +3 -4
- package/src/sap/m/MessageListItem.js +10 -6
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +4 -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 +1 -1
- package/src/sap/m/MultiComboBox.js +5 -16
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -15
- package/src/sap/m/NavContainer.js +21 -19
- package/src/sap/m/NewsContent.js +2 -3
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +3 -7
- package/src/sap/m/NotificationListGroupRenderer.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 +3 -3
- package/src/sap/m/ObjectIdentifier.js +8 -5
- package/src/sap/m/ObjectListItem.js +7 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +2 -3
- package/src/sap/m/ObjectNumberRenderer.js +10 -3
- package/src/sap/m/ObjectStatus.js +2 -3
- package/src/sap/m/ObjectStatusRenderer.js +2 -2
- package/src/sap/m/OverflowToolbar.js +3 -8
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopoverControls.js +3 -8
- package/src/sap/m/OverflowToolbarAssociativePopoverRenderer.js +2 -2
- package/src/sap/m/OverflowToolbarButton.js +2 -2
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +3 -3
- package/src/sap/m/P13nColumnsItem.js +3 -3
- package/src/sap/m/P13nColumnsPanel.js +3 -3
- package/src/sap/m/P13nConditionPanel.js +10 -3
- package/src/sap/m/P13nDialog.js +3 -3
- package/src/sap/m/P13nDimMeasureItem.js +3 -3
- package/src/sap/m/P13nDimMeasurePanel.js +3 -3
- package/src/sap/m/P13nFilterItem.js +3 -3
- package/src/sap/m/P13nFilterPanel.js +3 -3
- package/src/sap/m/P13nGroupItem.js +3 -3
- package/src/sap/m/P13nGroupPanel.js +3 -3
- package/src/sap/m/P13nItem.js +3 -3
- package/src/sap/m/P13nOperationsHelper.js +2 -2
- package/src/sap/m/P13nPanel.js +3 -3
- package/src/sap/m/P13nSelectionItem.js +3 -3
- package/src/sap/m/P13nSelectionPanel.js +3 -3
- package/src/sap/m/P13nSortItem.js +3 -3
- package/src/sap/m/P13nSortPanel.js +3 -3
- package/src/sap/m/PDFViewer.js +2 -2
- package/src/sap/m/PDFViewerRenderer.js +1 -0
- package/src/sap/m/Page.js +1 -3
- 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 +4 -16
- package/src/sap/m/PlanningCalendarHeader.js +1 -5
- 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 +11 -4
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/ProgressIndicatorRenderer.js +6 -3
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +3 -3
- package/src/sap/m/QuickViewBase.js +3 -3
- package/src/sap/m/QuickViewCard.js +3 -3
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +3 -3
- package/src/sap/m/QuickViewPage.js +3 -3
- package/src/sap/m/RadioButton.js +47 -20
- package/src/sap/m/RadioButtonGroup.js +29 -26
- package/src/sap/m/RangeSlider.js +1 -3
- package/src/sap/m/RatingIndicator.js +8 -1
- package/src/sap/m/RatingIndicatorRenderer.js +13 -4
- package/src/sap/m/ResponsivePopover.js +3 -3
- 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/SearchFieldRenderer.js +1 -0
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +8 -14
- package/src/sap/m/SelectDialog.js +2 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectListRenderer.js +2 -2
- package/src/sap/m/SelectionDetails.js +2 -2
- 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 +7 -9
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -7
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +0 -2
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +12 -13
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +30 -5
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -3
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipBaseRenderer.js +2 -2
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SliderTooltipContainerRenderer.js +2 -2
- package/src/sap/m/SliderTooltipRenderer.js +2 -2
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -3
- package/src/sap/m/SplitContainer.js +3 -7
- package/src/sap/m/StandardDynamicDateOption.js +9 -15
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardListItemRenderer.js +2 -2
- 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 +4 -2
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +11 -9
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +6 -15
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +2 -9
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/TextAreaRenderer.js +1 -2
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +8 -9
- package/src/sap/m/TileContentRenderer.js +3 -3
- package/src/sap/m/TimePicker.js +45 -8
- package/src/sap/m/TimePickerClock.js +2 -3
- package/src/sap/m/TimePickerClocks.js +5 -3
- package/src/sap/m/TimePickerClocksRenderer.js +4 -2
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInputsRenderer.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 +3 -5
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +2 -2
- package/src/sap/m/Token.js +1 -3
- 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 +8 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/TreeRenderer.js +0 -10
- package/src/sap/m/UploadCollection.js +2 -2
- 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/VariantItem.js +160 -0
- package/src/sap/m/VariantManagement.js +717 -571
- 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 +10 -3
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +3 -1
- package/src/sap/m/_thirdparty/purify.js +1622 -0
- package/src/sap/m/changeHandler/AddTableColumn.js +12 -13
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +2 -3
- package/src/sap/m/changeHandler/CombineButtons.js +19 -22
- package/src/sap/m/changeHandler/MoveTableColumns.js +6 -6
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +5 -5
- package/src/sap/m/changeHandler/SplitMenuButton.js +7 -6
- package/src/sap/m/delegate/DateNavigation.js +0 -4
- package/src/sap/m/designtime/Link.designtime.js +19 -11
- package/src/sap/m/designtime/VariantManagement.designtime.js +36 -26
- package/src/sap/m/flexibility/EngineFlex.js +48 -0
- package/src/sap/m/inputUtils/selectionRange.js +1 -2
- package/src/sap/m/library.js +60 -7
- package/src/sap/m/messagebundle.properties +57 -6
- package/src/sap/m/messagebundle_ar.properties +39 -9
- package/src/sap/m/messagebundle_bg.properties +33 -3
- package/src/sap/m/messagebundle_ca.properties +32 -2
- package/src/sap/m/messagebundle_cs.properties +32 -2
- package/src/sap/m/messagebundle_cy.properties +34 -4
- package/src/sap/m/messagebundle_da.properties +32 -2
- package/src/sap/m/messagebundle_de.properties +32 -2
- package/src/sap/m/messagebundle_el.properties +35 -5
- package/src/sap/m/messagebundle_en.properties +34 -4
- package/src/sap/m/messagebundle_en_GB.properties +34 -4
- package/src/sap/m/messagebundle_en_US_sappsd.properties +33 -3
- package/src/sap/m/messagebundle_en_US_saprigi.properties +31 -3
- package/src/sap/m/messagebundle_en_US_saptrc.properties +33 -3
- package/src/sap/m/messagebundle_es.properties +33 -3
- package/src/sap/m/messagebundle_es_MX.properties +32 -2
- package/src/sap/m/messagebundle_et.properties +32 -2
- package/src/sap/m/messagebundle_fi.properties +36 -6
- package/src/sap/m/messagebundle_fr.properties +33 -3
- package/src/sap/m/messagebundle_fr_CA.properties +34 -4
- package/src/sap/m/messagebundle_hi.properties +34 -4
- package/src/sap/m/messagebundle_hr.properties +36 -6
- package/src/sap/m/messagebundle_hu.properties +34 -4
- package/src/sap/m/messagebundle_id.properties +34 -4
- package/src/sap/m/messagebundle_it.properties +33 -3
- package/src/sap/m/messagebundle_iw.properties +34 -4
- package/src/sap/m/messagebundle_ja.properties +33 -3
- package/src/sap/m/messagebundle_kk.properties +32 -2
- package/src/sap/m/messagebundle_ko.properties +40 -10
- package/src/sap/m/messagebundle_lt.properties +32 -2
- package/src/sap/m/messagebundle_lv.properties +32 -2
- package/src/sap/m/messagebundle_ms.properties +33 -3
- package/src/sap/m/messagebundle_nl.properties +46 -16
- package/src/sap/m/messagebundle_no.properties +34 -4
- package/src/sap/m/messagebundle_pl.properties +33 -3
- package/src/sap/m/messagebundle_pt.properties +37 -7
- package/src/sap/m/messagebundle_pt_PT.properties +32 -2
- package/src/sap/m/messagebundle_ro.properties +33 -3
- package/src/sap/m/messagebundle_ru.properties +33 -3
- package/src/sap/m/messagebundle_sh.properties +33 -3
- package/src/sap/m/messagebundle_sk.properties +32 -2
- package/src/sap/m/messagebundle_sl.properties +33 -3
- package/src/sap/m/messagebundle_sv.properties +32 -2
- package/src/sap/m/messagebundle_th.properties +65 -35
- package/src/sap/m/messagebundle_tr.properties +36 -6
- package/src/sap/m/messagebundle_uk.properties +33 -3
- package/src/sap/m/messagebundle_vi.properties +33 -3
- package/src/sap/m/messagebundle_zh_CN.properties +33 -3
- package/src/sap/m/messagebundle_zh_TW.properties +32 -2
- package/src/sap/m/p13n/AbstractContainer.js +7 -7
- package/src/sap/m/p13n/AbstractContainerItem.js +4 -4
- package/src/sap/m/p13n/BasePanel.js +24 -13
- package/src/sap/m/p13n/Container.js +3 -3
- package/src/sap/m/p13n/Engine.js +1254 -0
- package/src/sap/m/p13n/FlexUtil.js +161 -0
- package/src/sap/m/p13n/GroupController.js +145 -0
- package/src/sap/m/p13n/GroupPanel.js +12 -5
- package/src/sap/m/p13n/MetadataHelper.js +35 -0
- package/src/sap/m/p13n/PersistenceProvider.js +160 -0
- package/src/sap/m/p13n/Popup.js +49 -12
- package/src/sap/m/p13n/QueryPanel.js +3 -3
- package/src/sap/m/p13n/SelectionController.js +548 -0
- package/src/sap/m/p13n/SelectionPanel.js +23 -5
- package/src/sap/m/p13n/SortController.js +153 -0
- package/src/sap/m/p13n/SortPanel.js +15 -5
- package/src/sap/m/p13n/enum/PersistenceMode.js +43 -0
- package/src/sap/m/p13n/handler/xConfigHandler.js +166 -0
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +90 -0
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +75 -0
- package/src/sap/m/p13n/modification/ModificationHandler.js +143 -0
- package/src/sap/m/p13n/modules/AdaptationProvider.js +67 -0
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +147 -0
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +101 -0
- package/src/sap/m/p13n/modules/UIManager.js +230 -0
- package/src/sap/m/p13n/modules/xConfigAPI.js +288 -0
- package/src/sap/m/plugins/CellSelector.js +741 -0
- package/src/sap/m/plugins/ColumnResizer.js +15 -1
- package/src/sap/m/plugins/DataStateIndicator.js +2 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +4 -3
- package/src/sap/m/rules/CheckBox.support.js +1 -1
- package/src/sap/m/rules/Image.support.js +1 -1
- package/src/sap/m/rules/Link.support.js +1 -1
- package/src/sap/m/rules/MessagePage.support.js +1 -1
- package/src/sap/m/rules/ObjectHeader.support.js +6 -6
- package/src/sap/m/rules/ObjectListItem.support.js +1 -1
- package/src/sap/m/rules/ObjectMarker.support.js +1 -1
- package/src/sap/m/rules/ObjectStatus.support.js +1 -1
- package/src/sap/m/rules/Panel.support.js +1 -1
- package/src/sap/m/rules/Select.support.js +1 -1
- package/src/sap/m/rules/Table.support.js +3 -3
- 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 +3 -4
- 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 -3
- 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/Util.js +30 -11
- 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 +50 -13
- package/src/sap/m/table/columnmenu/QuickAction.js +16 -8
- package/src/sap/m/table/columnmenu/QuickActionBase.js +18 -3
- package/src/sap/m/table/columnmenu/QuickActionItem.js +5 -6
- package/src/sap/m/table/columnmenu/QuickGroup.js +29 -5
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +13 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -3
- package/src/sap/m/table/columnmenu/QuickSortItem.js +8 -7
- package/src/sap/m/table/columnmenu/QuickTotal.js +29 -5
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +13 -1
- package/src/sap/m/themes/base/Breadcrumbs.less +6 -0
- package/src/sap/m/themes/base/Button.less +0 -1
- package/src/sap/m/themes/base/Carousel.less +8 -8
- package/src/sap/m/themes/base/CellSelector.less +9 -0
- package/src/sap/m/themes/base/CheckBox.less +1 -0
- package/src/sap/m/themes/base/Dialog.less +1 -0
- package/src/sap/m/themes/base/DisplayListItem.less +3 -3
- package/src/sap/m/themes/base/DynamicDateRange.less +4 -0
- package/src/sap/m/themes/base/FeedContent.less +13 -5
- package/src/sap/m/themes/base/GenericTile.less +56 -9
- package/src/sap/m/themes/base/IllustratedMessage.less +7 -0
- package/src/sap/m/themes/base/NewsContent.less +6 -0
- package/src/sap/m/themes/base/NumericContent.less +1 -1
- package/src/sap/m/themes/base/ObjectStatus.less +2 -1
- package/src/sap/m/themes/base/OverflowToolbarAssociativePopover.less +5 -1
- package/src/sap/m/themes/base/SelectList.less +0 -5
- package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +7 -0
- package/src/sap/m/themes/base/SlideTile.less +35 -4
- package/src/sap/m/themes/base/Table.less +11 -2
- package/src/sap/m/themes/base/TileContent.less +17 -0
- package/src/sap/m/themes/base/library.source.less +1 -0
- package/src/sap/m/upload/UploadSet.js +300 -23
- package/src/sap/m/upload/UploadSetItem.js +18 -7
- package/src/sap/m/upload/UploadSetRenderer.js +8 -16
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/Uploader.js +1 -2
|
@@ -16,19 +16,18 @@ sap.ui.define([
|
|
|
16
16
|
var CELLS_AGGREGATION_NAME = "cells";
|
|
17
17
|
var ITEMS_AGGREGATION_NAME = "items";
|
|
18
18
|
|
|
19
|
-
function getLabel(
|
|
20
|
-
var sEntityType =
|
|
19
|
+
function getLabel(oChangeContent, mInnerControls, oModifier, oView, oAppComponent, oChangeODataInformation){
|
|
20
|
+
var sEntityType = oChangeODataInformation && oChangeODataInformation.entityType;
|
|
21
21
|
if (sEntityType) {
|
|
22
|
-
var mContent = mChangeDefinition.content;
|
|
23
22
|
return Promise.resolve()
|
|
24
23
|
.then(oModifier.createControl.bind(
|
|
25
24
|
oModifier,
|
|
26
25
|
'sap.m.Text',
|
|
27
26
|
oAppComponent,
|
|
28
27
|
oView,
|
|
29
|
-
|
|
28
|
+
oChangeContent.newFieldSelector.id + '--column',
|
|
30
29
|
{
|
|
31
|
-
text: "{/#" + sEntityType + "/" +
|
|
30
|
+
text: "{/#" + sEntityType + "/" + oChangeContent.bindingPath + "/@sap:label}"
|
|
32
31
|
}
|
|
33
32
|
));
|
|
34
33
|
}
|
|
@@ -44,7 +43,7 @@ sap.ui.define([
|
|
|
44
43
|
*
|
|
45
44
|
* @author SAP SE
|
|
46
45
|
*
|
|
47
|
-
* @version 1.
|
|
46
|
+
* @version 1.106.0
|
|
48
47
|
*
|
|
49
48
|
* @experimental Since 1.51.0 This class is experimental and provides only limited functionality.
|
|
50
49
|
* Also the API might be changed in future.
|
|
@@ -55,9 +54,9 @@ sap.ui.define([
|
|
|
55
54
|
aggregationName: COLUMNS_AGGREGATION_NAME,
|
|
56
55
|
parentAlias: "targetTable",
|
|
57
56
|
fieldSuffix: "--field",
|
|
58
|
-
skipCreateLabel: function(
|
|
57
|
+
skipCreateLabel: function(oChangeODataInformation) {
|
|
59
58
|
//if entity type is given we create label ourselves
|
|
60
|
-
return !!
|
|
59
|
+
return !!(oChangeODataInformation && oChangeODataInformation.entityType);
|
|
61
60
|
},
|
|
62
61
|
skipCreateLayout: true,
|
|
63
62
|
supportsDefault: true,
|
|
@@ -82,10 +81,10 @@ sap.ui.define([
|
|
|
82
81
|
|
|
83
82
|
var oChange = mPropertyBag.change;
|
|
84
83
|
var oRevertData = oChange.getRevertData();
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var iIndex =
|
|
88
|
-
var mFieldSelector =
|
|
84
|
+
var oChangeContent = oChange.getContent();
|
|
85
|
+
var oChangeODataInformation = oChange.getODataInformation();
|
|
86
|
+
var iIndex = oChangeContent.newFieldIndex;
|
|
87
|
+
var mFieldSelector = oChangeContent.newFieldSelector;
|
|
89
88
|
|
|
90
89
|
return Promise.resolve()
|
|
91
90
|
.then(oModifier.getBindingTemplate.bind(oModifier,oTable, ITEMS_AGGREGATION_NAME, oView))
|
|
@@ -106,7 +105,7 @@ sap.ui.define([
|
|
|
106
105
|
})
|
|
107
106
|
.then(oModifier.createControl.bind(oModifier, 'sap.m.Column', oAppComponent, oView, mFieldSelector))
|
|
108
107
|
.then(function(oCreatedControl) {
|
|
109
|
-
return getLabel(
|
|
108
|
+
return getLabel(oChangeContent, mInnerControls, oModifier, oView, oAppComponent, oChangeODataInformation)
|
|
110
109
|
.then(function(oLabel) {
|
|
111
110
|
return Promise.resolve()
|
|
112
111
|
.then(oModifier.insertAggregation.bind(oModifier, oCreatedControl, 'header', oLabel, 0, oView))
|
|
@@ -12,7 +12,7 @@ sap.ui.define(function () {
|
|
|
12
12
|
*
|
|
13
13
|
* @alias sap.m.changeHandler.ChangeLinkTarget
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.106.0
|
|
16
16
|
* @experimental Since 1.71
|
|
17
17
|
*/
|
|
18
18
|
var ChangeLinkTarget = {};
|
|
@@ -30,8 +30,7 @@ sap.ui.define(function () {
|
|
|
30
30
|
*/
|
|
31
31
|
ChangeLinkTarget.applyChange = function(oChange, oControl, mPropertyBag) {
|
|
32
32
|
var oModifier = mPropertyBag.modifier;
|
|
33
|
-
var
|
|
34
|
-
var sTarget = oChangeDefinition.content;
|
|
33
|
+
var sTarget = oChange.getContent();
|
|
35
34
|
return Promise.resolve()
|
|
36
35
|
.then(oModifier.getProperty.bind(oModifier, oControl, "target"))
|
|
37
36
|
.then(function(oProperty) {
|
|
@@ -6,13 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/util/uid",
|
|
9
|
-
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
10
|
-
"sap/ui/core/Component",
|
|
11
9
|
"sap/ui/fl/util/ManagedObjectModel" // used implicitly by oModifier.createControl() function
|
|
12
10
|
], function (
|
|
13
|
-
uid
|
|
14
|
-
JsControlTreeModifier,
|
|
15
|
-
Component
|
|
11
|
+
uid
|
|
16
12
|
) {
|
|
17
13
|
"use strict";
|
|
18
14
|
|
|
@@ -21,14 +17,14 @@ sap.ui.define([
|
|
|
21
17
|
*
|
|
22
18
|
* @alias sap.m.changeHandler.CombineButtons
|
|
23
19
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
20
|
+
* @version 1.106.0
|
|
25
21
|
* @experimental Since 1.48
|
|
26
22
|
*/
|
|
27
23
|
var CombineButtons = {};
|
|
28
24
|
|
|
29
25
|
var sCombineButtonsModelName = "$sap.m.flexibility.CombineButtonsModel";
|
|
30
26
|
|
|
31
|
-
function fnHandleMenuItems(aButtons, oModifier, oAppComponent, oMenu, oParent, sParentAggregation, oView,
|
|
27
|
+
function fnHandleMenuItems(aButtons, oModifier, oAppComponent, oMenu, oParent, sParentAggregation, oView, oChangeContent, oRevertData) {
|
|
32
28
|
var sPropertyEnabled = "";
|
|
33
29
|
var sPropertyVisible = "";
|
|
34
30
|
var sOR = "";
|
|
@@ -41,7 +37,7 @@ sap.ui.define([
|
|
|
41
37
|
var iIndex = index;
|
|
42
38
|
var oMenuItem;
|
|
43
39
|
var oManagedObjectModel;
|
|
44
|
-
var oSelector =
|
|
40
|
+
var oSelector = oChangeContent.buttonsIdForSave[iIndex];
|
|
45
41
|
var sButtonText;
|
|
46
42
|
var sModelName = "$sap.m.flexibility.MenuButtonModel" + iIndex;
|
|
47
43
|
return oPreviousPromise
|
|
@@ -185,7 +181,7 @@ sap.ui.define([
|
|
|
185
181
|
return Promise.reject(new Error("Combine buttons change can't be applied on XML tree"));
|
|
186
182
|
}
|
|
187
183
|
|
|
188
|
-
var
|
|
184
|
+
var oChangeContent = oChange.getContent();
|
|
189
185
|
var oModifier = mPropertyBag.modifier;
|
|
190
186
|
var oView = mPropertyBag.view;
|
|
191
187
|
var oAppComponent = mPropertyBag.appComponent;
|
|
@@ -204,12 +200,12 @@ sap.ui.define([
|
|
|
204
200
|
var aMenuButtonName = [];
|
|
205
201
|
|
|
206
202
|
return Promise.resolve()
|
|
207
|
-
.then(oModifier.bySelector.bind(oModifier,
|
|
203
|
+
.then(oModifier.bySelector.bind(oModifier, oChangeContent.combineButtonSelectors[0], oAppComponent, oView))
|
|
208
204
|
.then(function(oReturnedSourceControl) {
|
|
209
205
|
oSourceControl = oReturnedSourceControl;
|
|
210
206
|
oParent = oModifier.getParent(oSourceControl); // === oControl
|
|
211
207
|
var aPromises = [];
|
|
212
|
-
|
|
208
|
+
oChangeContent.combineButtonSelectors.forEach(function(oCombineButtonSelector) {
|
|
213
209
|
var oPromise = Promise.resolve()
|
|
214
210
|
.then(oModifier.bySelector.bind(oModifier, oCombineButtonSelector, oAppComponent, oView));
|
|
215
211
|
aPromises.push(oPromise);
|
|
@@ -227,7 +223,7 @@ sap.ui.define([
|
|
|
227
223
|
})
|
|
228
224
|
.then(function(iAggrIndex){
|
|
229
225
|
iAggregationIndex = iAggrIndex;
|
|
230
|
-
return oModifier.createControl("sap.m.Menu", oAppComponent, oView,
|
|
226
|
+
return oModifier.createControl("sap.m.Menu", oAppComponent, oView, oChangeContent.menuIdSelector);
|
|
231
227
|
})
|
|
232
228
|
.then(function(oCreatedMenu){
|
|
233
229
|
oMenu = oCreatedMenu;
|
|
@@ -246,7 +242,7 @@ sap.ui.define([
|
|
|
246
242
|
oParent,
|
|
247
243
|
sParentAggregation,
|
|
248
244
|
oView,
|
|
249
|
-
|
|
245
|
+
oChangeContent,
|
|
250
246
|
oRevertData);
|
|
251
247
|
})
|
|
252
248
|
// Create MenuButton
|
|
@@ -259,7 +255,7 @@ sap.ui.define([
|
|
|
259
255
|
"sap.m.MenuButton",
|
|
260
256
|
oAppComponent,
|
|
261
257
|
oView,
|
|
262
|
-
|
|
258
|
+
oChangeContent.menuButtonIdSelector,
|
|
263
259
|
{
|
|
264
260
|
visible: "{= " + sPropertyVisible + "}",
|
|
265
261
|
enabled: "{= " + sPropertyEnabled + "}"
|
|
@@ -315,18 +311,18 @@ sap.ui.define([
|
|
|
315
311
|
var oModifier = mPropertyBag.modifier;
|
|
316
312
|
var oView = mPropertyBag.view;
|
|
317
313
|
var oRevertData = oChange.getRevertData();
|
|
318
|
-
var
|
|
314
|
+
var oChangeContent = oChange.getContent();
|
|
319
315
|
var sParentAggregation = oRevertData.parentAggregation;
|
|
320
316
|
var oMenuButton, oParent, aButtonsIdsReversed;
|
|
321
317
|
|
|
322
318
|
return Promise.resolve()
|
|
323
319
|
.then(function(){
|
|
324
|
-
return oModifier.bySelector(
|
|
320
|
+
return oModifier.bySelector(oChangeContent.menuButtonIdSelector, mPropertyBag.appComponent, oView);
|
|
325
321
|
})
|
|
326
322
|
.then(function(oRetrievedButton) {
|
|
327
323
|
oMenuButton = oRetrievedButton;
|
|
328
324
|
oParent = oModifier.getParent(oMenuButton);
|
|
329
|
-
aButtonsIdsReversed =
|
|
325
|
+
aButtonsIdsReversed = oChangeContent.combineButtonSelectors.slice().reverse();
|
|
330
326
|
// FIXME: fix implementation of ObjectPageDynamicHeaderTitle and remove next line
|
|
331
327
|
return oModifier.removeAggregation(oParent, sParentAggregation, oMenuButton);
|
|
332
328
|
})
|
|
@@ -374,23 +370,24 @@ sap.ui.define([
|
|
|
374
370
|
CombineButtons.completeChangeContent = function(oChange, oSpecificChangeInfo, mPropertyBag) {
|
|
375
371
|
var oModifier = mPropertyBag.modifier;
|
|
376
372
|
var oAppComponent = mPropertyBag.appComponent;
|
|
377
|
-
var oChangeDefinition = oChange.getDefinition();
|
|
378
373
|
var aCombineButtonIds = oSpecificChangeInfo.combineElementIds;
|
|
379
374
|
|
|
380
375
|
if (aCombineButtonIds && aCombineButtonIds.length > 1) {
|
|
376
|
+
var oContent = {};
|
|
381
377
|
oChange.addDependentControl(aCombineButtonIds, "combinedButtons", mPropertyBag);
|
|
382
|
-
|
|
378
|
+
oContent.combineButtonSelectors = aCombineButtonIds.map(function (sCombineButtonId) {
|
|
383
379
|
return oModifier.getSelector(sCombineButtonId, oAppComponent);
|
|
384
380
|
});
|
|
385
381
|
|
|
386
382
|
// generate ids for Menu and MenuButton
|
|
387
|
-
|
|
388
|
-
|
|
383
|
+
oContent.menuButtonIdSelector = oModifier.getSelector(oAppComponent.createId(uid()), oAppComponent);
|
|
384
|
+
oContent.menuIdSelector = oModifier.getSelector(oAppComponent.createId(uid()), oAppComponent);
|
|
389
385
|
|
|
390
386
|
// generate id for menu button items
|
|
391
|
-
|
|
387
|
+
oContent.buttonsIdForSave = aCombineButtonIds.map(function() {
|
|
392
388
|
return oModifier.getSelector(oAppComponent.createId(uid()), oAppComponent);
|
|
393
389
|
});
|
|
390
|
+
oChange.setContent(oContent);
|
|
394
391
|
} else {
|
|
395
392
|
throw new Error("Combine buttons action cannot be completed: oSpecificChangeInfo.combineElementIds attribute required");
|
|
396
393
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
sap.ui.define(["sap/base/Log"
|
|
8
|
+
sap.ui.define(["sap/base/Log"], function(Log) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/thirdparty/jquery"], function(Log, jQuery
|
|
|
13
13
|
*
|
|
14
14
|
* @alias sap.m.changeHandler.MoveTableColumns
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.106.0
|
|
17
17
|
* @experimental Since 1.48
|
|
18
18
|
*/
|
|
19
19
|
var MoveTableColumns = {};
|
|
@@ -113,7 +113,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/thirdparty/jquery"], function(Log, jQuery
|
|
|
113
113
|
iCurrentIndexInAggregation = aColumns.indexOf(oMovedElement);
|
|
114
114
|
iStoredSourceIndexInChange = mMovedElement.sourceIndex;
|
|
115
115
|
iTargetIndex = typeof fnIterator === "function" && fnIterator(iStoredSourceIndexInChange);
|
|
116
|
-
iTargetIndex =
|
|
116
|
+
iTargetIndex = typeof iTargetIndex === "number" ? iTargetIndex : mMovedElement.targetIndex;
|
|
117
117
|
|
|
118
118
|
if (iCurrentIndexInAggregation !== iTargetIndex) {
|
|
119
119
|
// By default we are getting the index from the aggregation, because it is possible that the order is
|
|
@@ -213,7 +213,6 @@ sap.ui.define(["sap/base/Log", "sap/ui/thirdparty/jquery"], function(Log, jQuery
|
|
|
213
213
|
MoveTableColumns.completeChangeContent = function (oChange, mSpecificChangeInfo, mPropertyBag) {
|
|
214
214
|
var oModifier = mPropertyBag.modifier;
|
|
215
215
|
var oAppComponent = mPropertyBag.appComponent;
|
|
216
|
-
var mChangeData = oChange.getDefinition();
|
|
217
216
|
var oSourceControl = oModifier.bySelector(mSpecificChangeInfo.source.id, oAppComponent);
|
|
218
217
|
var oTargetControl = oModifier.bySelector(mSpecificChangeInfo.target.id, oAppComponent);
|
|
219
218
|
var mAdditionalSourceInfo = {
|
|
@@ -226,17 +225,18 @@ sap.ui.define(["sap/base/Log", "sap/ui/thirdparty/jquery"], function(Log, jQuery
|
|
|
226
225
|
};
|
|
227
226
|
|
|
228
227
|
// We need to add the information about the movedElements together with the source and target index
|
|
229
|
-
|
|
228
|
+
var oContent = {movedElements: []};
|
|
230
229
|
mSpecificChangeInfo.movedElements.forEach(function (mElement) {
|
|
231
230
|
var oElement = mElement.element || oModifier.bySelector(mElement.id, oAppComponent);
|
|
232
231
|
|
|
233
|
-
|
|
232
|
+
oContent.movedElements.push({
|
|
234
233
|
selector: oModifier.getSelector(oElement, oAppComponent),
|
|
235
234
|
sourceIndex: mElement.sourceIndex,
|
|
236
235
|
targetIndex: mElement.targetIndex
|
|
237
236
|
});
|
|
238
237
|
});
|
|
239
238
|
|
|
239
|
+
oChange.setContent(oContent);
|
|
240
240
|
oChange.addDependentControl(mSpecificChangeInfo.source.id, SOURCE_ALIAS, mPropertyBag, mAdditionalSourceInfo);
|
|
241
241
|
oChange.addDependentControl(mSpecificChangeInfo.target.id, TARGET_ALIAS, mPropertyBag, mAdditionalTargetInfo);
|
|
242
242
|
oChange.addDependentControl(mSpecificChangeInfo.movedElements.map(function (element) {
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
*
|
|
15
15
|
* @alias sap.m.changeHandler.SelectIconTabBarFilter
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.106.0
|
|
18
18
|
* @experimental Since 1.96
|
|
19
19
|
*/
|
|
20
20
|
var SelectIconTabBarFilter = {};
|
|
@@ -31,16 +31,16 @@ sap.ui.define([
|
|
|
31
31
|
*/
|
|
32
32
|
SelectIconTabBarFilter.applyChange = function (oChange, oControl, mPropertyBag) {
|
|
33
33
|
var oModifier = mPropertyBag.modifier;
|
|
34
|
-
var
|
|
34
|
+
var oChangeContent = oChange.getContent();
|
|
35
35
|
|
|
36
36
|
// Make sure the "select" event of the control is fired.
|
|
37
37
|
// By default it is not fired when the "selectedKey" property is changed,
|
|
38
38
|
// but only via user interaction
|
|
39
|
-
oControl._bFireSelectEvent =
|
|
40
|
-
oModifier.setProperty(oControl, "selectedKey",
|
|
39
|
+
oControl._bFireSelectEvent = oChangeContent.fireEvent;
|
|
40
|
+
oModifier.setProperty(oControl, "selectedKey", oChangeContent.selectedKey);
|
|
41
41
|
oControl._bFireSelectEvent = false;
|
|
42
42
|
|
|
43
|
-
oChange.setRevertData({key:
|
|
43
|
+
oChange.setRevertData({key:oChangeContent.previousSelectedKey, fireEvent: oChangeContent.fireEvent});
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @alias sap.m.changeHandler.SplitMenuButton
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.106.0
|
|
24
24
|
* @experimental Since 1.48
|
|
25
25
|
*/
|
|
26
26
|
var SplitMenuButton = {};
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
return Promise.reject(new Error("Split change can't be applied on XML tree"));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var oChangeContent = oChange.getContent();
|
|
47
47
|
var oModifier = mPropertyBag.modifier;
|
|
48
48
|
var oView = mPropertyBag.view;
|
|
49
49
|
var oAppComponent = mPropertyBag.appComponent;
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
})
|
|
78
78
|
.then(function(iRetrievedAggregationIndex) {
|
|
79
79
|
iAggregationIndex = iRetrievedAggregationIndex;
|
|
80
|
-
aNewElementSelectors =
|
|
80
|
+
aNewElementSelectors = oChangeContent.newElementIds;
|
|
81
81
|
oRevertData = {
|
|
82
82
|
parentAggregation: sParentAggregation,
|
|
83
83
|
insertIndex: iAggregationIndex,
|
|
@@ -228,7 +228,6 @@ sap.ui.define([
|
|
|
228
228
|
SplitMenuButton.completeChangeContent = function(oChange, oSpecificChangeInfo, mPropertyBag) {
|
|
229
229
|
var oModifier = mPropertyBag.modifier;
|
|
230
230
|
var oAppComponent = mPropertyBag.appComponent;
|
|
231
|
-
var oChangeDefinition = oChange.getDefinition();
|
|
232
231
|
|
|
233
232
|
if (!oSpecificChangeInfo.newElementIds) {
|
|
234
233
|
throw new Error("Split of MenuButton cannot be applied : oSpecificChangeInfo.newElementIds attribute required");
|
|
@@ -239,10 +238,12 @@ sap.ui.define([
|
|
|
239
238
|
}
|
|
240
239
|
|
|
241
240
|
oChange.addDependentControl(oSpecificChangeInfo.sourceControlId, SOURCE_CONTROL, mPropertyBag);
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
var oContent = {};
|
|
242
|
+
oContent.sourceSelector = oModifier.getSelector(oSpecificChangeInfo.sourceControlId, oAppComponent);
|
|
243
|
+
oContent.newElementIds = oSpecificChangeInfo.newElementIds.map(function (sElementId) {
|
|
244
244
|
return oModifier.getSelector(sElementId, oAppComponent);
|
|
245
245
|
});
|
|
246
|
+
oChange.setContent(oContent);
|
|
246
247
|
};
|
|
247
248
|
|
|
248
249
|
/**
|
|
@@ -6,16 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
'sap/ui/base/EventProvider',
|
|
9
|
-
'sap/ui/core/date/UniversalDate',
|
|
10
9
|
'sap/ui/unified/calendar/CalendarUtils',
|
|
11
|
-
'sap/ui/unified/calendar/CalendarDate',
|
|
12
10
|
'sap/ui/unified/library'
|
|
13
11
|
],
|
|
14
12
|
function(
|
|
15
13
|
EventProvider,
|
|
16
|
-
UniversalDate,
|
|
17
14
|
CalendarUtils,
|
|
18
|
-
CalendarDate,
|
|
19
15
|
unifiedLibrary
|
|
20
16
|
) {
|
|
21
17
|
"use strict";
|
|
@@ -5,34 +5,36 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides the Design Time Metadata for the sap.m.Link control
|
|
8
|
-
sap.ui.define(["sap/ui/model/json/JSONModel"],
|
|
9
|
-
function (JSONModel) {
|
|
8
|
+
sap.ui.define(["sap/base/util/Deferred", "sap/ui/core/Fragment", "sap/ui/model/json/JSONModel"],
|
|
9
|
+
function (Deferred, Fragment, JSONModel) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var fnSelectTargetDialog = function(oControl, mPropertyBag) {
|
|
13
13
|
var oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.m.designtime");
|
|
14
|
-
return
|
|
14
|
+
return Fragment.load({
|
|
15
|
+
name: "sap.m.designtime.LinkTargetSelectDialog"
|
|
16
|
+
}).then(function(oDialog) {
|
|
15
17
|
|
|
16
|
-
var
|
|
18
|
+
var oModel = new JSONModel({
|
|
17
19
|
selectedKey : oControl.getTarget(),
|
|
18
20
|
titleText : oTextResources.getText("LINK_DIALOG_TITLE_CHANGE_TARGET"),
|
|
19
21
|
cancelBtn : oTextResources.getText("LINK_DIALOG_CANCEL_BTN"),
|
|
20
22
|
okBtn : oTextResources.getText("LINK_DIALOG_OK_BTN")
|
|
21
|
-
};
|
|
22
|
-
var oModel = new JSONModel();
|
|
23
|
-
oModel.setData(data);
|
|
23
|
+
});
|
|
24
24
|
|
|
25
|
-
var oDialog = sap.ui.xmlfragment("sap.m.designtime.LinkTargetSelectDialog", this);
|
|
26
25
|
oDialog.setModel(oModel);
|
|
27
26
|
|
|
27
|
+
var oDeferred = new Deferred();
|
|
28
|
+
|
|
28
29
|
oDialog.getBeginButton().attachPress(function(oEvent) {
|
|
29
30
|
var sTargetValue = sap.ui.getCore().byId("targetCombo").getValue();
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
oDeferred.resolve(sTargetValue);
|
|
32
33
|
oDialog.close();
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
oDialog.getEndButton().attachPress(function(oEvent) {
|
|
37
|
+
oDeferred.resolve(undefined);
|
|
36
38
|
oDialog.close();
|
|
37
39
|
});
|
|
38
40
|
|
|
@@ -42,8 +44,14 @@ sap.ui.define(["sap/ui/model/json/JSONModel"],
|
|
|
42
44
|
|
|
43
45
|
oDialog.addStyleClass(mPropertyBag.styleClass);
|
|
44
46
|
oDialog.open();
|
|
47
|
+
|
|
48
|
+
return oDeferred.promise;
|
|
45
49
|
}).then(
|
|
46
50
|
function (sTargetValue) {
|
|
51
|
+
if ( sTargetValue === undefined ) {
|
|
52
|
+
// no change (cancel)
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
47
55
|
return [{
|
|
48
56
|
selectorControl : oControl,
|
|
49
57
|
changeSpecificData : {
|
|
@@ -86,7 +94,7 @@ sap.ui.define(["sap/ui/model/json/JSONModel"],
|
|
|
86
94
|
isEnabled: function(oControl){
|
|
87
95
|
return !!oControl.getHref();
|
|
88
96
|
},
|
|
89
|
-
handler:
|
|
97
|
+
handler: fnSelectTargetDialog
|
|
90
98
|
}
|
|
91
99
|
};
|
|
92
100
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
3
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
@@ -13,16 +13,43 @@ sap.ui.define([
|
|
|
13
13
|
return {
|
|
14
14
|
annotations: {},
|
|
15
15
|
properties: {
|
|
16
|
-
|
|
16
|
+
supportDefault: {
|
|
17
17
|
ignore: false
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
supportFavorites: {
|
|
20
|
+
ignore: false
|
|
21
|
+
},
|
|
22
|
+
supportApplyAutomatically: {
|
|
23
|
+
ignore: false
|
|
24
|
+
},
|
|
25
|
+
supportPublic: {
|
|
26
|
+
ignore: false
|
|
27
|
+
},
|
|
28
|
+
supportContexts: {
|
|
29
|
+
ignore: false
|
|
30
|
+
},
|
|
31
|
+
selectedKey: {
|
|
32
|
+
ignore: false
|
|
33
|
+
},
|
|
34
|
+
defaultKey: {
|
|
20
35
|
ignore: false
|
|
21
36
|
},
|
|
22
|
-
|
|
37
|
+
showSaveAs: {
|
|
23
38
|
ignore: false
|
|
24
39
|
},
|
|
25
|
-
|
|
40
|
+
creationAllowed: {
|
|
41
|
+
ignore: false
|
|
42
|
+
},
|
|
43
|
+
showFooter: {
|
|
44
|
+
ignore: false
|
|
45
|
+
},
|
|
46
|
+
modified: {
|
|
47
|
+
ignore: false
|
|
48
|
+
},
|
|
49
|
+
popoverTitle: {
|
|
50
|
+
ignore: false
|
|
51
|
+
},
|
|
52
|
+
inErrorState: {
|
|
26
53
|
ignore: false
|
|
27
54
|
},
|
|
28
55
|
executeOnSelectionForStandardDefault: {
|
|
@@ -30,27 +57,10 @@ sap.ui.define([
|
|
|
30
57
|
},
|
|
31
58
|
displayTextForExecuteOnSelectionForStandardVariant: {
|
|
32
59
|
ignore: false
|
|
60
|
+
},
|
|
61
|
+
level: {
|
|
62
|
+
ignore: false
|
|
33
63
|
}
|
|
34
|
-
},
|
|
35
|
-
actions: {
|
|
36
|
-
// controlVariant: function(oVariantManagement) {
|
|
37
|
-
// var oAppComponent = flUtils.getAppComponentForControl(oVariantManagement);
|
|
38
|
-
// var sControlId = oVariantManagement.getId();
|
|
39
|
-
// var oModel = oAppComponent.getModel(flUtils.VARIANT_MODEL_NAME);
|
|
40
|
-
// var sVariantManagementReference = oAppComponent.getLocalId(sControlId) || sControlId;
|
|
41
|
-
// return {
|
|
42
|
-
// validators: [
|
|
43
|
-
// "noEmptyText",
|
|
44
|
-
// {
|
|
45
|
-
// validatorFunction: function(sNewText) {
|
|
46
|
-
// var iDuplicateCount = oModel._getVariantTitleCount(sNewText, sVariantManagementReference) || 0;
|
|
47
|
-
// return iDuplicateCount === 0;
|
|
48
|
-
// },
|
|
49
|
-
// errorMessage: sap.ui.getCore().getLibraryResourceBundle("sap.ui.fl").getText("VARIANT_MANAGEMENT_ERROR_DUPLICATE")
|
|
50
|
-
// }
|
|
51
|
-
// ]
|
|
52
|
-
// };
|
|
53
|
-
// }
|
|
54
64
|
}
|
|
55
65
|
};
|
|
56
66
|
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 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
|
+
"sap/ui/fl/changeHandler/HideControl",
|
|
9
|
+
"sap/ui/fl/changeHandler/UnhideControl",
|
|
10
|
+
"sap/m/p13n/handler/xConfigHandler"
|
|
11
|
+
], function(HideControl, UnhideControl, xConfigHandler) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
"hideControl": "default",
|
|
16
|
+
"unhideControl": "default",
|
|
17
|
+
createItem: {
|
|
18
|
+
layers: {
|
|
19
|
+
USER: true
|
|
20
|
+
},
|
|
21
|
+
changeHandler: UnhideControl
|
|
22
|
+
},
|
|
23
|
+
addItem: xConfigHandler.createHandler({
|
|
24
|
+
aggregationBased: true,
|
|
25
|
+
property: "visible"
|
|
26
|
+
}),
|
|
27
|
+
removeItem: xConfigHandler.createHandler({
|
|
28
|
+
aggregationBased: true,
|
|
29
|
+
property: "visible"
|
|
30
|
+
}),
|
|
31
|
+
moveItem: xConfigHandler.createHandler({
|
|
32
|
+
aggregationBased: true,
|
|
33
|
+
property: "position"
|
|
34
|
+
}),
|
|
35
|
+
addSort: xConfigHandler.createHandler({
|
|
36
|
+
property: "sortConditions"
|
|
37
|
+
}),
|
|
38
|
+
removeSort: xConfigHandler.createHandler({
|
|
39
|
+
property: "sortConditions"
|
|
40
|
+
}),
|
|
41
|
+
addGroup: xConfigHandler.createHandler({
|
|
42
|
+
property: "groupConditions"
|
|
43
|
+
}),
|
|
44
|
+
removeGroup: xConfigHandler.createHandler({
|
|
45
|
+
property: "groupConditions"
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
}, /* bExport= */ true);
|