@openui5/sap.m 1.95.0 → 1.96.3
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 +10 -5
- package/THIRDPARTY.txt +17 -8
- package/package.json +4 -4
- package/src/sap/m/.library +1 -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 +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +7 -11
- package/src/sap/m/ColorPalettePopover.js +1 -6
- package/src/sap/m/Column.js +5 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +9 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +12 -10
- package/src/sap/m/DateRangeSelection.js +6 -9
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +6 -9
- package/src/sap/m/Dialog.js +16 -37
- 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/DynamicDateOption.js +3 -2
- package/src/sap/m/DynamicDateRange.js +7 -4
- package/src/sap/m/DynamicDateUtil.js +6 -3
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +264 -57
- package/src/sap/m/GenericTileRenderer.js +228 -84
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +7 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +13 -4
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +18 -7
- package/src/sap/m/InputBase.js +95 -13
- package/src/sap/m/InputBaseRenderer.js +8 -20
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +1 -1
- package/src/sap/m/ListItemBase.js +2 -2
- package/src/sap/m/MaskEnabler.js +106 -4
- package/src/sap/m/MaskInput.js +19 -4
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +8 -6
- 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/MessageItem.js +1 -16
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +7 -3
- package/src/sap/m/MessageStripRenderer.js +2 -2
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +12 -23
- package/src/sap/m/MultiComboBox.js +348 -115
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +30 -4
- package/src/sap/m/NavContainer.js +13 -5
- package/src/sap/m/NewsContent.js +19 -10
- package/src/sap/m/NewsContentRenderer.js +1 -2
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericContentRenderer.js +34 -17
- package/src/sap/m/NumericInput.js +138 -0
- package/src/sap/m/NumericInputRenderer.js +120 -0
- package/src/sap/m/ObjectAttribute.js +46 -5
- package/src/sap/m/ObjectHeader.js +3 -3
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/ObjectStatusRenderer.js +4 -1
- package/src/sap/m/OverflowToolbar.js +3 -5
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +4 -2
- package/src/sap/m/OverflowToolbarLayoutData.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 +3 -3
- package/src/sap/m/P13nConditionPanel.js +22 -52
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +3 -3
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -3
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -3
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -3
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +46 -31
- package/src/sap/m/PlanningCalendarHeader.js +5 -8
- package/src/sap/m/PlanningCalendarLegend.js +1 -6
- package/src/sap/m/PlanningCalendarLegendRenderer.js +0 -5
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -6
- package/src/sap/m/Popover.js +3 -3
- package/src/sap/m/PopoverRenderer.js +3 -2
- package/src/sap/m/ProgressIndicator.js +13 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +2 -33
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/SegmentedButtonRenderer.js +6 -0
- package/src/sap/m/Select.js +3 -4
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectRenderer.js +10 -1
- package/src/sap/m/SelectionDetails.js +7 -9
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +8 -4
- 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 -10
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -6
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +17 -7
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -6
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +4 -6
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -6
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -6
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -6
- package/src/sap/m/SlideTile.js +46 -3
- package/src/sap/m/SlideTileRenderer.js +13 -2
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitButtonRenderer.js +5 -1
- package/src/sap/m/SplitContainer.js +10 -4
- package/src/sap/m/StandardDynamicDateOption.js +6 -3
- package/src/sap/m/StandardListItem.js +11 -18
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +67 -166
- package/src/sap/m/SuggestionItem.js +1 -7
- package/src/sap/m/SuggestionsPopover.js +44 -1
- package/src/sap/m/Switch.js +9 -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 +1 -1
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +22 -4
- package/src/sap/m/TileContentRenderer.js +73 -5
- package/src/sap/m/TimePicker.js +1 -1
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +2 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -6
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +40 -12
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardProgressNavigatorRenderer.js +3 -2
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +24 -15
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/delegate/DateNavigation.js +4 -5
- package/src/sap/m/delegate/ValueStateMessage.js +4 -7
- package/src/sap/m/designtime/IconTabBar.designtime.js +4 -1
- package/src/sap/m/designtime/MenuButton.designtime.js +3 -0
- package/src/sap/m/designtime/messagebundle_ar.properties +3 -3
- package/src/sap/m/designtime/messagebundle_bg.properties +3 -3
- package/src/sap/m/designtime/messagebundle_ca.properties +3 -3
- package/src/sap/m/designtime/messagebundle_cs.properties +3 -3
- package/src/sap/m/designtime/messagebundle_cy.properties +3 -3
- package/src/sap/m/designtime/messagebundle_da.properties +3 -3
- package/src/sap/m/designtime/messagebundle_de.properties +5 -5
- package/src/sap/m/designtime/messagebundle_el.properties +3 -3
- package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_es.properties +3 -3
- package/src/sap/m/designtime/messagebundle_es_MX.properties +3 -3
- package/src/sap/m/designtime/messagebundle_et.properties +3 -3
- package/src/sap/m/designtime/messagebundle_fi.properties +3 -3
- package/src/sap/m/designtime/messagebundle_fr.properties +3 -3
- package/src/sap/m/designtime/messagebundle_fr_CA.properties +3 -3
- package/src/sap/m/designtime/messagebundle_hi.properties +3 -3
- package/src/sap/m/designtime/messagebundle_hr.properties +3 -3
- package/src/sap/m/designtime/messagebundle_hu.properties +3 -3
- package/src/sap/m/designtime/messagebundle_id.properties +3 -3
- package/src/sap/m/designtime/messagebundle_it.properties +3 -3
- package/src/sap/m/designtime/messagebundle_iw.properties +3 -3
- package/src/sap/m/designtime/messagebundle_ja.properties +3 -3
- package/src/sap/m/designtime/messagebundle_kk.properties +3 -3
- package/src/sap/m/designtime/messagebundle_ko.properties +3 -3
- package/src/sap/m/designtime/messagebundle_lt.properties +3 -3
- package/src/sap/m/designtime/messagebundle_lv.properties +3 -3
- package/src/sap/m/designtime/messagebundle_ms.properties +3 -3
- package/src/sap/m/designtime/messagebundle_nl.properties +3 -3
- package/src/sap/m/designtime/messagebundle_no.properties +3 -3
- package/src/sap/m/designtime/messagebundle_pl.properties +3 -3
- package/src/sap/m/designtime/messagebundle_pt.properties +3 -3
- package/src/sap/m/designtime/messagebundle_pt_PT.properties +3 -3
- package/src/sap/m/designtime/messagebundle_ro.properties +3 -3
- package/src/sap/m/designtime/messagebundle_ru.properties +3 -3
- package/src/sap/m/designtime/messagebundle_sh.properties +3 -3
- package/src/sap/m/designtime/messagebundle_sk.properties +3 -3
- package/src/sap/m/designtime/messagebundle_sl.properties +3 -3
- package/src/sap/m/designtime/messagebundle_sv.properties +3 -3
- package/src/sap/m/designtime/messagebundle_th.properties +3 -3
- package/src/sap/m/designtime/messagebundle_tr.properties +3 -3
- package/src/sap/m/designtime/messagebundle_uk.properties +3 -3
- package/src/sap/m/designtime/messagebundle_vi.properties +3 -3
- package/src/sap/m/designtime/messagebundle_zh_CN.properties +3 -3
- package/src/sap/m/designtime/messagebundle_zh_TW.properties +3 -3
- package/src/sap/m/flexibility/MenuButton.flexibility.js +1 -0
- package/src/sap/m/inputUtils/ListHelpers.js +16 -3
- package/src/sap/m/library.js +58 -31
- package/src/sap/m/messagebundle.properties +50 -3
- package/src/sap/m/messagebundle_ar.properties +29 -6
- package/src/sap/m/messagebundle_bg.properties +29 -6
- package/src/sap/m/messagebundle_ca.properties +33 -10
- package/src/sap/m/messagebundle_cs.properties +31 -8
- package/src/sap/m/messagebundle_cy.properties +31 -8
- package/src/sap/m/messagebundle_da.properties +31 -8
- package/src/sap/m/messagebundle_de.properties +30 -7
- package/src/sap/m/messagebundle_el.properties +30 -7
- package/src/sap/m/messagebundle_en.properties +30 -7
- package/src/sap/m/messagebundle_en_GB.properties +30 -7
- package/src/sap/m/messagebundle_en_US_sappsd.properties +17 -1
- package/src/sap/m/messagebundle_en_US_saprigi.properties +39 -3
- package/src/sap/m/messagebundle_en_US_saptrc.properties +3 -1
- package/src/sap/m/messagebundle_es.properties +29 -6
- package/src/sap/m/messagebundle_es_MX.properties +31 -8
- package/src/sap/m/messagebundle_et.properties +30 -7
- package/src/sap/m/messagebundle_fi.properties +31 -8
- package/src/sap/m/messagebundle_fr.properties +37 -14
- package/src/sap/m/messagebundle_fr_CA.properties +31 -8
- package/src/sap/m/messagebundle_hi.properties +31 -8
- package/src/sap/m/messagebundle_hr.properties +30 -7
- package/src/sap/m/messagebundle_hu.properties +30 -7
- package/src/sap/m/messagebundle_id.properties +31 -8
- package/src/sap/m/messagebundle_it.properties +29 -6
- package/src/sap/m/messagebundle_iw.properties +29 -6
- package/src/sap/m/messagebundle_ja.properties +30 -7
- package/src/sap/m/messagebundle_kk.properties +31 -8
- package/src/sap/m/messagebundle_ko.properties +31 -8
- package/src/sap/m/messagebundle_lt.properties +31 -8
- package/src/sap/m/messagebundle_lv.properties +31 -8
- package/src/sap/m/messagebundle_ms.properties +29 -6
- package/src/sap/m/messagebundle_nl.properties +29 -6
- package/src/sap/m/messagebundle_no.properties +29 -6
- package/src/sap/m/messagebundle_pl.properties +31 -8
- package/src/sap/m/messagebundle_pt.properties +31 -8
- package/src/sap/m/messagebundle_pt_PT.properties +29 -6
- package/src/sap/m/messagebundle_ro.properties +31 -8
- package/src/sap/m/messagebundle_ru.properties +31 -8
- package/src/sap/m/messagebundle_sh.properties +30 -7
- package/src/sap/m/messagebundle_sk.properties +30 -7
- package/src/sap/m/messagebundle_sl.properties +30 -7
- package/src/sap/m/messagebundle_sv.properties +30 -7
- package/src/sap/m/messagebundle_th.properties +31 -8
- package/src/sap/m/messagebundle_tr.properties +27 -4
- package/src/sap/m/messagebundle_uk.properties +35 -12
- package/src/sap/m/messagebundle_vi.properties +31 -8
- package/src/sap/m/messagebundle_zh_CN.properties +29 -6
- package/src/sap/m/messagebundle_zh_TW.properties +31 -8
- package/src/sap/m/p13n/AbstractContainer.js +243 -0
- package/src/sap/m/p13n/AbstractContainerItem.js +94 -0
- package/src/sap/m/p13n/BasePanel.js +643 -0
- package/src/sap/m/p13n/Container.js +239 -0
- package/src/sap/m/p13n/GroupPanel.js +119 -0
- package/src/sap/m/p13n/QueryPanel.js +312 -0
- package/src/sap/m/p13n/SelectionPanel.js +403 -0
- package/src/sap/m/p13n/SortPanel.js +139 -0
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/routing/TargetHandler.js +9 -4
- 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 -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 +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/table/Util.js +192 -0
- package/src/sap/m/themes/base/AbstractContainer.less +17 -0
- package/src/sap/m/themes/base/Carousel.less +37 -2
- package/src/sap/m/themes/base/Dialog.less +11 -5
- package/src/sap/m/themes/base/GenericTile.less +441 -18
- package/src/sap/m/themes/base/IconTabBar.less +13 -7
- package/src/sap/m/themes/base/IconTabBarSelectList.less +4 -2
- package/src/sap/m/themes/base/InputBase.less +0 -24
- package/src/sap/m/themes/base/Label.less +6 -0
- package/src/sap/m/themes/base/ListItemBase.less +4 -2
- package/src/sap/m/themes/base/MultiComboBox.less +17 -0
- package/src/sap/m/themes/base/NewsContent.less +48 -1
- package/src/sap/m/themes/base/NotificationListBase.less +1 -1
- package/src/sap/m/themes/base/NumericContent.less +87 -0
- package/src/sap/m/themes/base/ObjectNumber.less +10 -2
- package/src/sap/m/themes/base/ObjectStatus.less +5 -1
- package/src/sap/m/themes/base/P13nContainer.less +17 -0
- package/src/sap/m/themes/base/P13nDialog.less +4 -0
- package/src/sap/m/themes/base/SearchField.less +21 -14
- package/src/sap/m/themes/base/SegmentedButton.less +1 -1
- package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +1 -2
- package/src/sap/m/themes/base/SlideTile.less +15 -0
- package/src/sap/m/themes/base/StandardListItem.less +1 -1
- package/src/sap/m/themes/base/Table.less +9 -8
- package/src/sap/m/themes/base/Text.less +6 -0
- package/src/sap/m/themes/base/TileContent.less +20 -0
- package/src/sap/m/themes/base/Token.less +0 -3
- package/src/sap/m/themes/base/library.source.less +4 -0
- package/src/sap/m/themes/base/p13n.Container.less +17 -0
- package/src/sap/m/themes/base/p13n.QueryPanel.less +7 -0
- package/src/sap/m/themes/base/p13n.SelectionPanel.less +32 -0
- package/src/sap/m/themes/sap_hcb/InputBase.less +25 -0
- package/src/sap/m/upload/UploadSet.js +14 -18
- package/src/sap/m/upload/UploadSetItem.js +7 -2
- package/ui5.yaml +4 -1
- package/src/sap/m/ios7.js +0 -199
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"./BasePanel",
|
|
8
|
+
"sap/m/Label",
|
|
9
|
+
"sap/m/ColumnListItem",
|
|
10
|
+
"sap/m/HBox",
|
|
11
|
+
"sap/m/VBox",
|
|
12
|
+
"sap/ui/core/Icon",
|
|
13
|
+
"sap/m/Text",
|
|
14
|
+
"sap/m/Column",
|
|
15
|
+
"sap/m/Table",
|
|
16
|
+
"sap/m/library",
|
|
17
|
+
"sap/m/ToolbarSpacer",
|
|
18
|
+
"sap/m/Button",
|
|
19
|
+
"sap/m/OverflowToolbar",
|
|
20
|
+
"sap/ui/model/Filter"
|
|
21
|
+
], function(BasePanel, Label, ColumnListItem, HBox, VBox, Icon, Text, Column, Table, mLibrary, ToolbarSpacer, Button, OverflowToolbar, Filter) {
|
|
22
|
+
"use strict";
|
|
23
|
+
|
|
24
|
+
// shortcut for sap.m.ListKeyboardMode
|
|
25
|
+
var ListKeyboardMode = mLibrary.ListKeyboardMode;
|
|
26
|
+
|
|
27
|
+
// shortcut for sap.m.FlexJustifyContent
|
|
28
|
+
var FlexJustifyContent = mLibrary.FlexJustifyContent;
|
|
29
|
+
|
|
30
|
+
// shortcut for sap.m.ListType
|
|
31
|
+
var ListType = mLibrary.ListType;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Constructor for a new <code>SelectionPanel</code>.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
37
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
38
|
+
*
|
|
39
|
+
* @class
|
|
40
|
+
* This control can be used as personalization panel to define
|
|
41
|
+
* content that may be added/removed for an associated control instance during runtime by the user.
|
|
42
|
+
*
|
|
43
|
+
* @extends sap.m.p13n.BasePanel
|
|
44
|
+
*
|
|
45
|
+
* @author SAP SE
|
|
46
|
+
* @version 1.96.3
|
|
47
|
+
*
|
|
48
|
+
* @private
|
|
49
|
+
* @ui5-restricted
|
|
50
|
+
* @experimental
|
|
51
|
+
*
|
|
52
|
+
* @since 1.96
|
|
53
|
+
* @alias sap.m.p13n.SelectionPanel
|
|
54
|
+
*/
|
|
55
|
+
var SelectionPanel = BasePanel.extend("sap.m.p13n.SelectionPanel", {
|
|
56
|
+
metadata: {
|
|
57
|
+
library: "sap.m",
|
|
58
|
+
properties: {
|
|
59
|
+
/**
|
|
60
|
+
* Shows an additional header with a SearchField and 'Show Selected' button
|
|
61
|
+
*/
|
|
62
|
+
showHeader: {
|
|
63
|
+
type: "boolean",
|
|
64
|
+
defaultValue: false
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Enables a count for selected items compared to available items as '<fields> (3 / 12)' in addition
|
|
68
|
+
* for the first provided column text
|
|
69
|
+
*/
|
|
70
|
+
enableCount: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
defaultValue: false
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* The first column in the panel describing the selectable fields.
|
|
76
|
+
*/
|
|
77
|
+
fieldColumn: {
|
|
78
|
+
type: "string",
|
|
79
|
+
defaultValue: sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("p13n.DEFAULT_DESCRIPTION")
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* The secondary column in the panel showing the movement buttons for reordering.
|
|
83
|
+
*/
|
|
84
|
+
activeColumn: {
|
|
85
|
+
type: "string",
|
|
86
|
+
defaultValue: ""
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* An optional callback that may be used to display additional custom content in each selectable item.
|
|
90
|
+
* This factory can be toggled by executing the {@link sap.m.p13n.SelectionPanel#showFactory} method.
|
|
91
|
+
*/
|
|
92
|
+
itemFactory: {
|
|
93
|
+
type: "function"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
renderer: {
|
|
98
|
+
apiVersion: 2
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
SelectionPanel.prototype.applySettings = function(){
|
|
103
|
+
BasePanel.prototype.applySettings.apply(this, arguments);
|
|
104
|
+
this._setTemplate(this._getListTemplate());
|
|
105
|
+
this.addStyleClass("sapMSelectionPanel");
|
|
106
|
+
this._aInitializedFields = [];
|
|
107
|
+
//Do not show the factory by default
|
|
108
|
+
this._bShowFactory = false;
|
|
109
|
+
this.addStyleClass("SelectionPanelHover");
|
|
110
|
+
this._displayColumns();
|
|
111
|
+
this.setEnableReorder(true);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
SelectionPanel.prototype.setItemFactory = function(fnItemFactory) {
|
|
115
|
+
this.setProperty("itemFactory", fnItemFactory);
|
|
116
|
+
this._oListControl.setGrowing(!!fnItemFactory);
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
SelectionPanel.prototype._getListTemplate = function() {
|
|
121
|
+
return new ColumnListItem({
|
|
122
|
+
selected: "{" + this.P13N_MODEL + ">" + this.PRESENCE_ATTRIBUTE + "}",
|
|
123
|
+
type: ListType.Active,
|
|
124
|
+
cells: [
|
|
125
|
+
new VBox({
|
|
126
|
+
items: [
|
|
127
|
+
new Label({
|
|
128
|
+
wrapping: true,
|
|
129
|
+
required: "{" + this.P13N_MODEL + ">required}",
|
|
130
|
+
tooltip: "{" + this.P13N_MODEL + ">tooltip}",
|
|
131
|
+
text: "{" + this.P13N_MODEL + ">label}"
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
}),
|
|
135
|
+
new HBox({
|
|
136
|
+
justifyContent: FlexJustifyContent.Center,
|
|
137
|
+
items: [
|
|
138
|
+
new Icon({
|
|
139
|
+
src: "sap-icon://circle-task-2",
|
|
140
|
+
size: "0.5rem",
|
|
141
|
+
color: sap.ui.core.IconColor.Neutral,
|
|
142
|
+
visible: {
|
|
143
|
+
path: this.P13N_MODEL + ">active",
|
|
144
|
+
formatter: function(bactive) {
|
|
145
|
+
if (bactive){
|
|
146
|
+
return true;
|
|
147
|
+
} else {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
SelectionPanel.prototype.setShowHeader = function(bShowHeader) {
|
|
160
|
+
if (bShowHeader){
|
|
161
|
+
var sShowSelected = this._getResourceText("p13n.SHOW_SELECTED");
|
|
162
|
+
var sShowAll = this._getResourceText("p13n.SHOW_ALL");
|
|
163
|
+
this._oListControl.setHeaderToolbar(new OverflowToolbar({
|
|
164
|
+
content: [
|
|
165
|
+
this._getSearchField(),
|
|
166
|
+
new ToolbarSpacer(),
|
|
167
|
+
new Button({
|
|
168
|
+
press: function(oEvt){
|
|
169
|
+
this._bShowSelected = oEvt.getSource().getText() == sShowSelected;
|
|
170
|
+
this._filterList(this._bShowSelected, this._sSearch);
|
|
171
|
+
oEvt.getSource().setText(this._bShowSelected ? sShowAll : sShowSelected);
|
|
172
|
+
}.bind(this),
|
|
173
|
+
text: sShowSelected
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
178
|
+
this.setProperty("showHeader", bShowHeader);
|
|
179
|
+
return this;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
SelectionPanel.prototype.getSelectedFields = function() {
|
|
183
|
+
var aSelectedItems = [];
|
|
184
|
+
this._loopItems(this._oListControl, function(oItem, sKey){
|
|
185
|
+
if (oItem.getSelected()){
|
|
186
|
+
aSelectedItems.push(sKey);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
return aSelectedItems;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
SelectionPanel.prototype._filterList = function(bShowSelected, sSarch) {
|
|
194
|
+
var oSearchFilter = [], oSelectedFilter = [];
|
|
195
|
+
if (bShowSelected) {
|
|
196
|
+
oSelectedFilter = new Filter(this.PRESENCE_ATTRIBUTE, "EQ", true);
|
|
197
|
+
}
|
|
198
|
+
if (sSarch) {
|
|
199
|
+
oSearchFilter = new Filter("label", "Contains", sSarch);
|
|
200
|
+
}
|
|
201
|
+
this._oListControl.getBinding("items").filter(new Filter([].concat(oSelectedFilter, oSearchFilter), true));
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
SelectionPanel.prototype._onSearchFieldLiveChange = function(oEvent) {
|
|
205
|
+
this._sSearch = oEvent.getSource().getValue();
|
|
206
|
+
this._filterList(this._bShowSelected, this._sSearch);
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
SelectionPanel.prototype._handleActivated = function(oHoveredItem) {
|
|
210
|
+
//remove move buttons if unselected item is hovered (not covered by updateStarted)
|
|
211
|
+
this._removeMoveButtons();
|
|
212
|
+
//Check if the prior hovered item had a visible icon and renable it if required
|
|
213
|
+
if (this._oHoveredItem && this._oHoveredItem.getBindingContextPath()){
|
|
214
|
+
var bVisible = !!this._getP13nModel().getProperty(this._oHoveredItem.getBindingContextPath()).active;
|
|
215
|
+
var oOldIcon = this._oHoveredItem.getCells()[1].getItems()[0];
|
|
216
|
+
oOldIcon.setVisible(bVisible);
|
|
217
|
+
}
|
|
218
|
+
//Store (new) hovered item and set its icon to visible: false + add move buttons to it
|
|
219
|
+
var oIcon = oHoveredItem.getCells()[1].getItems()[0];
|
|
220
|
+
oIcon.setVisible(false);
|
|
221
|
+
this._oHoveredItem = oHoveredItem;
|
|
222
|
+
this._updateEnableOfMoveButtons(oHoveredItem, false);
|
|
223
|
+
this._addMoveButtons(oHoveredItem);
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
SelectionPanel.prototype._removeMoveButtons = function() {
|
|
227
|
+
var oMoveButtonBox = this._getMoveButtonContainer();
|
|
228
|
+
if (oMoveButtonBox){
|
|
229
|
+
oMoveButtonBox.removeItem(this._getMoveTopButton());
|
|
230
|
+
oMoveButtonBox.removeItem(this._getMoveUpButton());
|
|
231
|
+
oMoveButtonBox.removeItem(this._getMoveDownButton());
|
|
232
|
+
oMoveButtonBox.removeItem(this._getMoveBottomButton());
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
SelectionPanel.prototype._getMoveButtonContainer = function() {
|
|
237
|
+
if (this._oMoveBottomButton &&
|
|
238
|
+
this._oMoveBottomButton.getParent() &&
|
|
239
|
+
this._oMoveBottomButton.getParent().isA("sap.m.FlexBox")
|
|
240
|
+
){
|
|
241
|
+
return this._oMoveBottomButton.getParent();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
SelectionPanel.prototype.showFactory = function(bShow) {
|
|
246
|
+
this._bShowFactory = bShow;
|
|
247
|
+
this._displayColumns();
|
|
248
|
+
if (bShow){
|
|
249
|
+
this.removeStyleClass("SelectionPanelHover");
|
|
250
|
+
this._oListControl.setKeyboardMode(ListKeyboardMode.Edit); //--> tab through editable fields (fields shown)
|
|
251
|
+
this._addFactoryControl();
|
|
252
|
+
} else {
|
|
253
|
+
this.addStyleClass("SelectionPanelHover");
|
|
254
|
+
this._oListControl.setKeyboardMode(ListKeyboardMode.Navigation); //--> tab through list items (fields hidden)
|
|
255
|
+
this._removeFactoryControl();
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
SelectionPanel.prototype._loopItems = function(oList, fnItemCallback) {
|
|
260
|
+
oList.getItems().forEach(function(oItem){
|
|
261
|
+
|
|
262
|
+
var sPath = oItem.getBindingContextPath();
|
|
263
|
+
var sKey = this._getP13nModel().getProperty(sPath).name;
|
|
264
|
+
|
|
265
|
+
fnItemCallback.call(this, oItem, sKey);
|
|
266
|
+
}.bind(this));
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
SelectionPanel.prototype.setP13nData = function() {
|
|
270
|
+
BasePanel.prototype.setP13nData.apply(this, arguments);
|
|
271
|
+
this._updateCount();
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
SelectionPanel.prototype._updateCount = function() {
|
|
275
|
+
this._getP13nModel().setProperty("/selectedItems", this._oListControl.getSelectedContexts(true).length);
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
SelectionPanel.prototype._selectTableItem = function(oTableItem, bSelectAll) {
|
|
279
|
+
BasePanel.prototype._selectTableItem.apply(this, arguments);
|
|
280
|
+
this._updateCount();
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
SelectionPanel.prototype._removeFactoryControl = function() {
|
|
284
|
+
this._oListControl.getItems().forEach(function(oItem){
|
|
285
|
+
var oFirstCell = oItem.getCells()[0];
|
|
286
|
+
if (oFirstCell.getItems().length > 1){
|
|
287
|
+
oFirstCell.removeItem(oFirstCell.getItems()[1]);
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
this.removeStyleClass("sapUiMDCAFLabelMarkingList");
|
|
291
|
+
return this._aInitializedFields;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
SelectionPanel.prototype._moveSelectedItem = function(){
|
|
295
|
+
this._oSelectedItem = this._getMoveButtonContainer().getParent();
|
|
296
|
+
BasePanel.prototype._moveSelectedItem.apply(this, arguments);
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
SelectionPanel.prototype._getShowFactory = function() {
|
|
300
|
+
return this._bShowFactory;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
SelectionPanel.prototype._displayColumns = function() {
|
|
304
|
+
var aColumns = [
|
|
305
|
+
this.getFieldColumn()
|
|
306
|
+
];
|
|
307
|
+
if (!this._bShowFactory) {
|
|
308
|
+
aColumns.push(new Column({
|
|
309
|
+
width: "30%",
|
|
310
|
+
hAlign: "Center",
|
|
311
|
+
vAlign: "Middle",
|
|
312
|
+
header: new Text({
|
|
313
|
+
text: this.getActiveColumn()
|
|
314
|
+
})
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
this._setPanelColumns(aColumns);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
SelectionPanel.prototype._setPanelColumns = function(aColumns) {
|
|
321
|
+
this._sText = aColumns[0];
|
|
322
|
+
var bEnableCount = this.getEnableCount();
|
|
323
|
+
if (bEnableCount) {
|
|
324
|
+
var oColumn = new Column({
|
|
325
|
+
header: new Text({
|
|
326
|
+
text: {
|
|
327
|
+
parts: [
|
|
328
|
+
{
|
|
329
|
+
path: this.P13N_MODEL + '>/selectedItems'
|
|
330
|
+
}, {
|
|
331
|
+
path: this.P13N_MODEL + '>/items'
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
formatter: function(iSelected, aAll) {
|
|
335
|
+
return this._sText + " " + this._getResourceText('p13n.HEADER_COUNT', [
|
|
336
|
+
iSelected, aAll instanceof Array ? aAll.length : 0
|
|
337
|
+
]);
|
|
338
|
+
}.bind(this)
|
|
339
|
+
}
|
|
340
|
+
})
|
|
341
|
+
});
|
|
342
|
+
aColumns[0] = oColumn;
|
|
343
|
+
}
|
|
344
|
+
BasePanel.prototype._setPanelColumns.apply(this, arguments);
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
SelectionPanel.prototype._addFactoryControl = function(oList) {
|
|
348
|
+
this._oListControl.getItems().forEach(function(oItem){
|
|
349
|
+
var oContext = oItem.getBindingContext(this.P13N_MODEL);
|
|
350
|
+
var oField = this.getItemFactory().call(this, oContext);
|
|
351
|
+
var oCell = oItem.getCells()[0];
|
|
352
|
+
oCell.addItem(oField);
|
|
353
|
+
}.bind(this));
|
|
354
|
+
this.addStyleClass("sapUiMDCAFLabelMarkingList");
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
SelectionPanel.prototype._createInnerListControl = function() {
|
|
358
|
+
return new Table(this.getId() + "-innerSelectionPanelTable", Object.assign({
|
|
359
|
+
growing: false,
|
|
360
|
+
growingThreshold: 25,
|
|
361
|
+
growingScrollToLoad: true,
|
|
362
|
+
updateStarted: function() {
|
|
363
|
+
this._removeMoveButtons();
|
|
364
|
+
this._removeFactoryControl();
|
|
365
|
+
}.bind(this),
|
|
366
|
+
updateFinished: function() {
|
|
367
|
+
if (this._getShowFactory()) {
|
|
368
|
+
this._addFactoryControl();
|
|
369
|
+
}
|
|
370
|
+
}.bind(this)
|
|
371
|
+
}, this._getListControlConfig()));
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
SelectionPanel.prototype.filterContent = function(aFilter) {
|
|
375
|
+
if (this._oListControl.getBinding("items")){
|
|
376
|
+
this._oListControl.getBinding("items").filter(aFilter, true);
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
SelectionPanel.prototype._addMoveButtons = function(oItem) {
|
|
381
|
+
var oTableItem = oItem;
|
|
382
|
+
if (!oTableItem){
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
var bItemSelected = this._getP13nModel().getProperty(oTableItem.getBindingContextPath())[this.PRESENCE_ATTRIBUTE];
|
|
386
|
+
if (bItemSelected){
|
|
387
|
+
oTableItem.getCells()[1].addItem(this._getMoveTopButton());
|
|
388
|
+
oTableItem.getCells()[1].addItem(this._getMoveUpButton());
|
|
389
|
+
oTableItem.getCells()[1].addItem(this._getMoveDownButton());
|
|
390
|
+
oTableItem.getCells()[1].addItem(this._getMoveBottomButton());
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
SelectionPanel.prototype.exit = function() {
|
|
395
|
+
BasePanel.prototype.exit.apply(this, arguments);
|
|
396
|
+
this._aInitializedFields = null;
|
|
397
|
+
this._oHoveredItem = null;
|
|
398
|
+
this._bShowFactory = null;
|
|
399
|
+
this._sSearch = null;
|
|
400
|
+
this._bShowSelected = null;
|
|
401
|
+
};
|
|
402
|
+
return SelectionPanel;
|
|
403
|
+
});
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"./QueryPanel", "sap/m/Text", "sap/m/SegmentedButton", "sap/m/SegmentedButtonItem", "sap/ui/layout/Grid", "sap/ui/layout/GridData"
|
|
8
|
+
], function (QueryPanel, Text, SegmentedButton, SegmentedButtonItem, Grid, GridData) {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Constructor for a new <code>SortPanel</code>.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
15
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
16
|
+
*
|
|
17
|
+
* @class
|
|
18
|
+
* This control can be used to customize sort personalization content
|
|
19
|
+
* for an associated control instance.
|
|
20
|
+
*
|
|
21
|
+
* @extends sap.m.p13n.QueryPanel
|
|
22
|
+
*
|
|
23
|
+
* @author SAP SE
|
|
24
|
+
* @version 1.96.3
|
|
25
|
+
*
|
|
26
|
+
* @private
|
|
27
|
+
* @ui5-restricted
|
|
28
|
+
* @experimental
|
|
29
|
+
*
|
|
30
|
+
* @since 1.96
|
|
31
|
+
* @alias sap.m.p13n.SortPanel
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
var SortPanel = QueryPanel.extend("sap.m.p13n.SortPanel", {
|
|
35
|
+
renderer: {}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
SortPanel.prototype.PRESENCE_ATTRIBUTE = "sorted";
|
|
39
|
+
SortPanel.prototype.CHANGE_REASON_SORTORDER = "sortorder";
|
|
40
|
+
|
|
41
|
+
SortPanel.prototype._createRemoveButton = function () {
|
|
42
|
+
var oRemvoeBtn = QueryPanel.prototype._createRemoveButton.apply(this, arguments);
|
|
43
|
+
oRemvoeBtn.setLayoutData(new GridData({
|
|
44
|
+
span: "XL3 L3 M3 S4"//on "S" the Asc/Desc text is invisible, we need to increase the size the
|
|
45
|
+
}));
|
|
46
|
+
return oRemvoeBtn;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
SortPanel.prototype._createOrderSwitch = function (sKey, bDesc) {
|
|
50
|
+
var oSortOrderSwitch = new SegmentedButton({
|
|
51
|
+
enabled: sKey ? true : false,
|
|
52
|
+
layoutData: new GridData({
|
|
53
|
+
span: "XL2 L2 M2 S4" //on "S" the Asc/Desc text is invisible, we need to increase the size then
|
|
54
|
+
}),
|
|
55
|
+
items: [
|
|
56
|
+
new SegmentedButtonItem({
|
|
57
|
+
key: "asc",
|
|
58
|
+
icon: "sap-icon://sort-ascending"
|
|
59
|
+
}),
|
|
60
|
+
new SegmentedButtonItem({
|
|
61
|
+
key: "desc",
|
|
62
|
+
icon: "sap-icon://sort-descending"
|
|
63
|
+
})
|
|
64
|
+
],
|
|
65
|
+
select: function (oEvt) {
|
|
66
|
+
var sSortOrder = oEvt.getParameter("key");
|
|
67
|
+
var oText = oEvt.getSource().getParent().getContent()[2];
|
|
68
|
+
oText.setText(this._getSortOrderText(sSortOrder === "desc"));
|
|
69
|
+
var sKey = oEvt.oSource.getParent().getContent()[0].getSelectedItem().getKey();
|
|
70
|
+
|
|
71
|
+
this._changeOrder(sKey, sSortOrder == "desc");
|
|
72
|
+
}.bind(this)
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
oSortOrderSwitch.setSelectedItem(bDesc ? oSortOrderSwitch.getItems()[1] : oSortOrderSwitch.getItems()[0]);
|
|
76
|
+
|
|
77
|
+
return oSortOrderSwitch;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
SortPanel.prototype._createSortOrderText = function (bDesc) {
|
|
81
|
+
return new Text({
|
|
82
|
+
layoutData: new GridData({
|
|
83
|
+
span: "XL3 L3 M3 S3",
|
|
84
|
+
visibleS: false
|
|
85
|
+
}),
|
|
86
|
+
text: this._getSortOrderText(bDesc)
|
|
87
|
+
}).addStyleClass("sapUiTinyMarginTop");
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
SortPanel.prototype._createQueryRowGrid = function(oItem) {
|
|
91
|
+
//Enhance row with sort specific controls (Segmented Button + sort order text)
|
|
92
|
+
var oSelect = this._createKeySelect(oItem.name);
|
|
93
|
+
var oSortOrderSwitch = this._createOrderSwitch(oItem.name, oItem.descending);
|
|
94
|
+
var oSortOrderText = this._createSortOrderText(oItem.descending);
|
|
95
|
+
|
|
96
|
+
return new Grid({
|
|
97
|
+
containerQuery: true,
|
|
98
|
+
defaultSpan: "XL4 L4 M4 S4",
|
|
99
|
+
content: [
|
|
100
|
+
oSelect,
|
|
101
|
+
oSortOrderSwitch,
|
|
102
|
+
oSortOrderText
|
|
103
|
+
]
|
|
104
|
+
}).addStyleClass("sapUiTinyMargin");
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
SortPanel.prototype._selectKey = function(oEvt) {
|
|
108
|
+
QueryPanel.prototype._selectKey.apply(this, arguments);
|
|
109
|
+
|
|
110
|
+
//Enable SegmentedButton
|
|
111
|
+
var oListItem = oEvt.getSource().getParent().getParent();
|
|
112
|
+
var sNewKey = oEvt.getParameter("selectedItem").getKey();
|
|
113
|
+
oListItem.getContent()[0].getContent()[1].setEnabled(sNewKey !== this.NONE_KEY);
|
|
114
|
+
|
|
115
|
+
//keep existing 'sortorder' selection
|
|
116
|
+
var bDescending = oListItem.getContent()[0].getContent()[1].getSelectedKey() === "desc";
|
|
117
|
+
this._changeOrder(sNewKey, bDescending);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
SortPanel.prototype._getSortOrderText = function(bDesc) {
|
|
121
|
+
return bDesc ? this._getResourceText("p13n.SORT_DESCENDING") : this._getResourceText("p13n.SORT_ASCENDING");
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
SortPanel.prototype._changeOrder = function (sKey, bDesc) {
|
|
125
|
+
var aItems = this._getP13nModel().getProperty("/items").filter(function (oItem) {
|
|
126
|
+
return oItem.name === sKey;
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
aItems[0].descending = bDesc;
|
|
130
|
+
|
|
131
|
+
this.fireChange({
|
|
132
|
+
reason: this.CHANGE_REASON_SORTORDER,
|
|
133
|
+
item: aItems[0]
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
return SortPanel;
|
|
138
|
+
|
|
139
|
+
});
|
|
@@ -20,7 +20,7 @@ sap.ui.define(["sap/ui/core/Element"], function(Element) {
|
|
|
20
20
|
* @extends sap.ui.core.Element
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.96.3
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @experimental Since 1.73. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -28,11 +28,13 @@ sap.ui.define(['sap/m/InstanceManager', 'sap/m/NavContainer', 'sap/m/SplitContai
|
|
|
28
28
|
*
|
|
29
29
|
* <b>Note:</b> You should not create an own instance of this class. It is created
|
|
30
30
|
* when using <code>{@link sap.m.routing.Router}</code> or <code>{@link sap.m.routing.Targets}</code>.
|
|
31
|
-
* You may use the <code>{@link #setCloseDialogs}</code> function to specify if dialogs should be
|
|
32
|
-
* closed on displaying other views.
|
|
33
31
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* <b>Note:</b> You may use the <code>{@link #setCloseDialogs}</code> function to specify if dialogs should be
|
|
33
|
+
* closed on displaying other views. The dialogs are closed when a different target is displayed than the
|
|
34
|
+
* previously displayed one, otherwise the dialogs are kept open.
|
|
35
|
+
*
|
|
36
|
+
* @param {boolean} closeDialogs Closes all open dialogs before navigating to a different target, if set to
|
|
37
|
+
* <code>true</code> (default). If set to <code>false</code>, it will just navigate without closing dialogs.
|
|
36
38
|
* @public
|
|
37
39
|
* @since 1.28.1
|
|
38
40
|
* @alias sap.m.routing.TargetHandler
|
|
@@ -60,6 +62,9 @@ sap.ui.define(['sap/m/InstanceManager', 'sap/m/NavContainer', 'sap/m/SplitContai
|
|
|
60
62
|
/**
|
|
61
63
|
* Sets if a navigation should close dialogs.
|
|
62
64
|
*
|
|
65
|
+
* <b>Note:</b> The dialogs are closed when a different target is displayed than the previous one,
|
|
66
|
+
* otherwise the dialogs are kept open even when <code>bCloseDialogs</code> is <code>true</code>.
|
|
67
|
+
*
|
|
63
68
|
* @param {boolean} bCloseDialogs Close dialogs if <code>true</code>
|
|
64
69
|
* @public
|
|
65
70
|
* @returns {this} For chaining
|