@openui5/sap.m 1.93.3 → 1.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- 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 +5 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -4
- package/src/sap/m/Bar.js +13 -7
- 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 +34 -1
- package/src/sap/m/Carousel.js +11 -3
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/CheckBoxRenderer.js +12 -3
- package/src/sap/m/ColorPalette.js +7 -11
- package/src/sap/m/ColorPalettePopover.js +1 -6
- package/src/sap/m/Column.js +6 -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 +5 -2
- package/src/sap/m/ComboBoxRenderer.js +25 -9
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +14 -2
- 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 +27 -10
- package/src/sap/m/DatePickerRenderer.js +1 -1
- 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 +44 -127
- package/src/sap/m/DialogRenderer.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +15 -6
- package/src/sap/m/DynamicDateOption.js +58 -17
- package/src/sap/m/DynamicDateRange.js +47 -10
- 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 +47 -16
- 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 +215 -52
- package/src/sap/m/GenericTileRenderer.js +218 -83
- 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 +53 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +8 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +8 -6
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +16 -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 +124 -28
- package/src/sap/m/InputBase.js +13 -6
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +2 -2
- 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 +12 -5
- package/src/sap/m/ListItemBase.js +16 -16
- 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 +20 -3
- package/src/sap/m/MenuButtonRenderer.js +1 -0
- 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 +16 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +7 -3
- package/src/sap/m/MessageStripRenderer.js +2 -2
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +27 -16
- package/src/sap/m/MultiComboBox.js +328 -113
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +55 -6
- package/src/sap/m/NavContainer.js +24 -7
- 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/ObjectAttribute.js +46 -5
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectHeaderRenderer.js +6 -7
- 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 +13 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/ObjectStatusRenderer.js +4 -1
- package/src/sap/m/OverflowToolbar.js +1 -1
- 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 +23 -53
- 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 +14 -5
- 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 +139 -41
- package/src/sap/m/PlanningCalendarHeader.js +1 -6
- package/src/sap/m/PlanningCalendarLegend.js +1 -6
- package/src/sap/m/PlanningCalendarLegendRenderer.js +2 -5
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -6
- package/src/sap/m/Popover.js +5 -5
- package/src/sap/m/PopoverRenderer.js +3 -2
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +10 -8
- 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 +6 -34
- package/src/sap/m/SearchFieldRenderer.js +16 -12
- package/src/sap/m/SegmentedButton.js +12 -17
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +18 -8
- 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 +6 -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 +9 -17
- 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 +15 -13
- 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 +31 -3
- package/src/sap/m/SlideTileRenderer.js +9 -0
- 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 +3 -7
- package/src/sap/m/SplitContainer.js +13 -8
- package/src/sap/m/StandardDynamicDateOption.js +50 -12
- package/src/sap/m/StandardListItem.js +69 -26
- package/src/sap/m/StandardListItemRenderer.js +21 -9
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +30 -14
- package/src/sap/m/Suggest.js +25 -25
- package/src/sap/m/SuggestionItem.js +1 -7
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +2 -2
- 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 +2 -4
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +3 -3
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +2 -2
- 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 +4 -3
- package/src/sap/m/TimePickerClock.js +2 -2
- package/src/sap/m/TimePickerClocks.js +2 -1
- package/src/sap/m/TimePickerInputs.js +3 -3
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +2 -2
- 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 +45 -3
- package/src/sap/m/TokenizerRenderer.js +5 -0
- 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 +2 -7
- 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 +2 -2
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +2 -1
- 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 +16 -17
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +86 -0
- package/src/sap/m/changeHandler/SplitMenuButton.js +12 -6
- package/src/sap/m/delegate/DateNavigation.js +4 -5
- package/src/sap/m/designtime/IconTabBar.designtime.js +85 -2
- package/src/sap/m/designtime/IconTabBarSelectTab.fragment.xml +17 -0
- package/src/sap/m/designtime/MenuButton.designtime.js +3 -0
- package/src/sap/m/designtime/ObjectIdentifier.designtime.js +16 -12
- package/src/sap/m/designtime/messagebundle.properties +9 -0
- package/src/sap/m/designtime/messagebundle_ar.properties +6 -0
- package/src/sap/m/designtime/messagebundle_bg.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ca.properties +6 -0
- package/src/sap/m/designtime/messagebundle_cs.properties +6 -0
- package/src/sap/m/designtime/messagebundle_cy.properties +6 -0
- package/src/sap/m/designtime/messagebundle_da.properties +6 -0
- package/src/sap/m/designtime/messagebundle_de.properties +8 -2
- package/src/sap/m/designtime/messagebundle_el.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_GB.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_US_sappsd.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_US_saptrc.properties +6 -0
- package/src/sap/m/designtime/messagebundle_es.properties +6 -0
- package/src/sap/m/designtime/messagebundle_es_MX.properties +6 -0
- package/src/sap/m/designtime/messagebundle_et.properties +6 -0
- package/src/sap/m/designtime/messagebundle_fi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_fr.properties +6 -0
- package/src/sap/m/designtime/messagebundle_fr_CA.properties +6 -0
- package/src/sap/m/designtime/messagebundle_hi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_hr.properties +6 -0
- package/src/sap/m/designtime/messagebundle_hu.properties +6 -0
- package/src/sap/m/designtime/messagebundle_id.properties +6 -0
- package/src/sap/m/designtime/messagebundle_it.properties +6 -0
- package/src/sap/m/designtime/messagebundle_iw.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ja.properties +6 -0
- package/src/sap/m/designtime/messagebundle_kk.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ko.properties +6 -0
- package/src/sap/m/designtime/messagebundle_lt.properties +6 -0
- package/src/sap/m/designtime/messagebundle_lv.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ms.properties +6 -0
- package/src/sap/m/designtime/messagebundle_nl.properties +6 -0
- package/src/sap/m/designtime/messagebundle_no.properties +6 -0
- package/src/sap/m/designtime/messagebundle_pl.properties +6 -0
- package/src/sap/m/designtime/messagebundle_pt.properties +6 -0
- package/src/sap/m/designtime/messagebundle_pt_PT.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ro.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ru.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sh.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sk.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sl.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sv.properties +6 -0
- package/src/sap/m/designtime/messagebundle_th.properties +6 -0
- package/src/sap/m/designtime/messagebundle_tr.properties +6 -0
- package/src/sap/m/designtime/messagebundle_uk.properties +6 -0
- package/src/sap/m/designtime/messagebundle_vi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_zh_CN.properties +6 -0
- package/src/sap/m/designtime/messagebundle_zh_TW.properties +6 -0
- package/src/sap/m/flexibility/IconTabBar.flexibility.js +21 -0
- 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 +60 -34
- package/src/sap/m/messagebundle.properties +59 -7
- package/src/sap/m/messagebundle_ar.properties +13 -5
- package/src/sap/m/messagebundle_bg.properties +13 -5
- package/src/sap/m/messagebundle_ca.properties +13 -5
- package/src/sap/m/messagebundle_cs.properties +24 -16
- package/src/sap/m/messagebundle_cy.properties +13 -5
- package/src/sap/m/messagebundle_da.properties +14 -6
- package/src/sap/m/messagebundle_de.properties +14 -6
- package/src/sap/m/messagebundle_el.properties +14 -6
- package/src/sap/m/messagebundle_en.properties +10 -2
- package/src/sap/m/messagebundle_en_GB.properties +10 -2
- package/src/sap/m/messagebundle_en_US_sappsd.properties +26 -3
- package/src/sap/m/messagebundle_en_US_saprigi.properties +39 -3
- package/src/sap/m/messagebundle_en_US_saptrc.properties +14 -6
- package/src/sap/m/messagebundle_es.properties +13 -5
- package/src/sap/m/messagebundle_es_MX.properties +16 -8
- package/src/sap/m/messagebundle_et.properties +13 -5
- package/src/sap/m/messagebundle_fi.properties +13 -5
- package/src/sap/m/messagebundle_fr.properties +26 -18
- package/src/sap/m/messagebundle_fr_CA.properties +14 -6
- package/src/sap/m/messagebundle_hi.properties +13 -5
- package/src/sap/m/messagebundle_hr.properties +13 -5
- package/src/sap/m/messagebundle_hu.properties +13 -5
- package/src/sap/m/messagebundle_id.properties +15 -7
- package/src/sap/m/messagebundle_it.properties +19 -11
- package/src/sap/m/messagebundle_iw.properties +13 -5
- package/src/sap/m/messagebundle_ja.properties +13 -5
- package/src/sap/m/messagebundle_kk.properties +13 -5
- package/src/sap/m/messagebundle_ko.properties +14 -6
- package/src/sap/m/messagebundle_lt.properties +13 -5
- package/src/sap/m/messagebundle_lv.properties +13 -5
- package/src/sap/m/messagebundle_ms.properties +14 -6
- package/src/sap/m/messagebundle_nl.properties +15 -7
- package/src/sap/m/messagebundle_no.properties +25 -17
- package/src/sap/m/messagebundle_pl.properties +17 -9
- package/src/sap/m/messagebundle_pt.properties +16 -8
- package/src/sap/m/messagebundle_pt_PT.properties +13 -5
- package/src/sap/m/messagebundle_ro.properties +18 -10
- package/src/sap/m/messagebundle_ru.properties +14 -6
- package/src/sap/m/messagebundle_sh.properties +14 -6
- package/src/sap/m/messagebundle_sk.properties +13 -5
- package/src/sap/m/messagebundle_sl.properties +13 -5
- package/src/sap/m/messagebundle_sv.properties +13 -5
- package/src/sap/m/messagebundle_th.properties +13 -5
- package/src/sap/m/messagebundle_tr.properties +13 -5
- package/src/sap/m/messagebundle_uk.properties +16 -8
- package/src/sap/m/messagebundle_vi.properties +14 -6
- package/src/sap/m/messagebundle_zh_CN.properties +13 -5
- package/src/sap/m/messagebundle_zh_TW.properties +13 -5
- 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 +23 -2
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +9 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/routing/TargetHandler.js +24 -22
- package/src/sap/m/routing/async/Target.js +3 -2
- 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 +2 -2
- 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/ColumnListItem.less +2 -2
- package/src/sap/m/themes/base/Dialog.less +11 -28
- package/src/sap/m/themes/base/GenericTile.less +397 -18
- package/src/sap/m/themes/base/IconTabBar.less +5 -6
- package/src/sap/m/themes/base/Input.less +12 -0
- package/src/sap/m/themes/base/ListBase.less +7 -5
- package/src/sap/m/themes/base/MessagePage.less +1 -7
- package/src/sap/m/themes/base/MessageView.less +4 -0
- package/src/sap/m/themes/base/MultiComboBox.less +17 -0
- package/src/sap/m/themes/base/NewsContent.less +19 -1
- package/src/sap/m/themes/base/NumericContent.less +87 -0
- package/src/sap/m/themes/base/ObjectMarker.less +3 -0
- package/src/sap/m/themes/base/ObjectNumber.less +10 -2
- package/src/sap/m/themes/base/ObjectStatus.less +14 -0
- package/src/sap/m/themes/base/OverflowToolbarAssociativePopover.less +0 -6
- 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/SinglePlanningCalendarGrid.less +1 -2
- package/src/sap/m/themes/base/SlideTile.less +15 -0
- package/src/sap/m/themes/base/StandardListItem.less +5 -0
- package/src/sap/m/themes/base/Table.less +9 -19
- package/src/sap/m/themes/base/TextArea.less +1 -1
- package/src/sap/m/themes/base/TileContent.less +11 -0
- package/src/sap/m/themes/base/Token.less +0 -3
- package/src/sap/m/themes/base/Tokenizer.less +6 -0
- package/src/sap/m/themes/base/UploadSet.less +5 -0
- package/src/sap/m/themes/base/ViewSettingsDialog.less +28 -1
- 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/IconTabBar.less +3 -3
- package/src/sap/m/upload/UploadSet.js +48 -23
- package/src/sap/m/upload/UploadSetItem.js +9 -4
- package/ui5.yaml +4 -1
- package/src/sap/m/ios7.js +0 -199
|
@@ -14,6 +14,8 @@ sap.ui.define([
|
|
|
14
14
|
'./StandardListItem',
|
|
15
15
|
'./Popover',
|
|
16
16
|
'./GroupHeaderListItem',
|
|
17
|
+
'./CheckBox',
|
|
18
|
+
'./Toolbar',
|
|
17
19
|
'./library',
|
|
18
20
|
'sap/ui/core/EnabledPropagator',
|
|
19
21
|
'sap/ui/core/IconPool',
|
|
@@ -56,6 +58,8 @@ function(
|
|
|
56
58
|
StandardListItem,
|
|
57
59
|
Popover,
|
|
58
60
|
GroupHeaderListItem,
|
|
61
|
+
CheckBox,
|
|
62
|
+
Toolbar,
|
|
59
63
|
library,
|
|
60
64
|
EnabledPropagator,
|
|
61
65
|
IconPool,
|
|
@@ -155,7 +159,7 @@ function(
|
|
|
155
159
|
* </ul>
|
|
156
160
|
*
|
|
157
161
|
* @author SAP SE
|
|
158
|
-
* @version 1.
|
|
162
|
+
* @version 1.96.1
|
|
159
163
|
*
|
|
160
164
|
* @constructor
|
|
161
165
|
* @extends sap.m.ComboBoxBase
|
|
@@ -179,7 +183,12 @@ function(
|
|
|
179
183
|
/**
|
|
180
184
|
* Defines if there are selected items or not.
|
|
181
185
|
*/
|
|
182
|
-
hasSelection: { type: "boolean", visibility: "hidden", defaultValue: false }
|
|
186
|
+
hasSelection: { type: "boolean", visibility: "hidden", defaultValue: false },
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Determines if the select all checkbox is visible on top of suggestions.
|
|
190
|
+
*/
|
|
191
|
+
showSelectAll: { type: "boolean", defaultValue: false }
|
|
183
192
|
},
|
|
184
193
|
associations: {
|
|
185
194
|
|
|
@@ -343,21 +352,9 @@ function(
|
|
|
343
352
|
return;
|
|
344
353
|
}
|
|
345
354
|
|
|
346
|
-
if (this.getValueState() != ValueState.None) {
|
|
347
|
-
this._handleFormattedTextNav();
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
355
|
// wait for the composition and input events to fire properly since the focus of the list item
|
|
352
356
|
// triggers unwanted extra events when called in while composing
|
|
353
|
-
setTimeout(
|
|
354
|
-
// If list is open then go to the first visible list item. Set this item into the visual viewport.
|
|
355
|
-
var aItems = ListHelpers.getVisibleItems(this.getItems()),
|
|
356
|
-
oItem = aItems[0];
|
|
357
|
-
|
|
358
|
-
oItem && ListHelpers.getListItem(oItem).focus();
|
|
359
|
-
}.bind(this), 0);
|
|
360
|
-
|
|
357
|
+
setTimeout(this.handleDownEvent.bind(this, oEvent), 0);
|
|
361
358
|
};
|
|
362
359
|
|
|
363
360
|
/**
|
|
@@ -395,6 +392,94 @@ function(
|
|
|
395
392
|
}
|
|
396
393
|
};
|
|
397
394
|
|
|
395
|
+
/**
|
|
396
|
+
* Handles the Down Arrow press event.
|
|
397
|
+
*
|
|
398
|
+
* @param {jquery.Event} oEvent The event object
|
|
399
|
+
* @private
|
|
400
|
+
*/
|
|
401
|
+
MultiComboBox.prototype.handleDownEvent = function (oEvent) {
|
|
402
|
+
if (!this.isOpen()) {
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
var oSrcControl = oEvent.srcControl,
|
|
407
|
+
oSrcDomRef = oSrcControl && oSrcControl.getDomRef(),
|
|
408
|
+
bFocusInInput = containsOrEquals(this.getDomRef(), oSrcDomRef),
|
|
409
|
+
oValueStateHeader = this.getPicker().getCustomHeader(),
|
|
410
|
+
oValueStateHeaderDom = oValueStateHeader && oValueStateHeader.getDomRef();
|
|
411
|
+
|
|
412
|
+
oEvent.setMarked();
|
|
413
|
+
// note: Prevent document scrolling when Down key is pressed
|
|
414
|
+
oEvent.preventDefault();
|
|
415
|
+
|
|
416
|
+
if (bFocusInInput && this.getValueState() != ValueState.None) {
|
|
417
|
+
this._handleFormattedTextNav();
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if ((bFocusInInput || containsOrEquals(oValueStateHeaderDom, oSrcDomRef)) && this.getShowSelectAll()) {
|
|
422
|
+
this.focusSelectAll();
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
this.focusFirstItemInList();
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Handles the End press event.
|
|
431
|
+
*
|
|
432
|
+
* @param {jquery.Event} oEvent The event object
|
|
433
|
+
* @private
|
|
434
|
+
*/
|
|
435
|
+
MultiComboBox.prototype.handleEndEvent = function (oEvent) {
|
|
436
|
+
oEvent.setMarked();
|
|
437
|
+
// Note: Prevent document scrolling when End key is pressed
|
|
438
|
+
oEvent.preventDefault();
|
|
439
|
+
|
|
440
|
+
var aVisibleItems = ListHelpers.getVisibleItems(this.getItems()),
|
|
441
|
+
oListItem = aVisibleItems.length && ListHelpers.getListItem(aVisibleItems[aVisibleItems.length - 1]);
|
|
442
|
+
|
|
443
|
+
oListItem && oListItem.focus();
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Handles the Home press event.
|
|
448
|
+
*
|
|
449
|
+
* @param {jquery.Event} oEvent The event object
|
|
450
|
+
* @private
|
|
451
|
+
*/
|
|
452
|
+
MultiComboBox.prototype.handleHomeEvent = function (oEvent) {
|
|
453
|
+
oEvent.setMarked();
|
|
454
|
+
// note: Prevent document scrolling when Home key is pressed
|
|
455
|
+
oEvent.preventDefault();
|
|
456
|
+
|
|
457
|
+
if (this.getValueState() !== ValueState.None) {
|
|
458
|
+
this._handleFormattedTextNav();
|
|
459
|
+
oEvent.stopPropagation(true);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
if (this.getShowSelectAll()) {
|
|
464
|
+
this.focusSelectAll();
|
|
465
|
+
oEvent.stopPropagation(true);
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
this.focusFirstItemInList();
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Focuses on the first item in the list of options.
|
|
474
|
+
* @private
|
|
475
|
+
*/
|
|
476
|
+
MultiComboBox.prototype.focusFirstItemInList = function () {
|
|
477
|
+
var aVisibleItems = ListHelpers.getVisibleItems(this.getItems()),
|
|
478
|
+
oListItem = aVisibleItems.length && ListHelpers.getListItem(aVisibleItems[0]);
|
|
479
|
+
|
|
480
|
+
oListItem && oListItem.focus();
|
|
481
|
+
};
|
|
482
|
+
|
|
398
483
|
/**
|
|
399
484
|
* Checks if the focused element is part of the Tokenizer.
|
|
400
485
|
* @returns {boolean} True if the focus is inside the Tokenizer
|
|
@@ -411,6 +496,8 @@ function(
|
|
|
411
496
|
* @private
|
|
412
497
|
*/
|
|
413
498
|
MultiComboBox.prototype.onsapshow = function(oEvent) {
|
|
499
|
+
oEvent.preventDefault();
|
|
500
|
+
|
|
414
501
|
this._handleItemToFocus();
|
|
415
502
|
ComboBoxBase.prototype.onsapshow.apply(this, arguments);
|
|
416
503
|
};
|
|
@@ -428,33 +515,17 @@ function(
|
|
|
428
515
|
* - pressing the Up arrow key will move the focus to the input,
|
|
429
516
|
* - pressing the Down arrow key - will select the first selectable item.
|
|
430
517
|
*
|
|
431
|
-
* @param {object}
|
|
518
|
+
* @param {object} oValueStateHeader The value state header.
|
|
432
519
|
* @param {array} aValueStateLinks The links in <code>sap.m.FormattedText</code> value state message.
|
|
433
520
|
* @returns {object} Delegate for navigation and focus handling for <code>sap.m.ValueStateHeader</code> containing <code>sap.m.FormattedText</code> message with links.
|
|
434
521
|
*
|
|
435
522
|
* @private
|
|
436
523
|
*/
|
|
437
|
-
MultiComboBox.prototype._valueStateNavDelegate = function(oValueStateHeader,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
var aVisibleItems = ListHelpers.getVisibleItems(this.getItems()),
|
|
443
|
-
oListItem = aVisibleItems.length && ListHelpers.getListItem(aVisibleItems[0]);
|
|
444
|
-
|
|
445
|
-
oEvent.preventDefault();
|
|
446
|
-
oListItem && oListItem.focus();
|
|
447
|
-
}.bind(this),
|
|
448
|
-
onsapup: function() {
|
|
449
|
-
oFocusDomRef.focus();
|
|
450
|
-
},
|
|
451
|
-
onsapend: function(oEvent) {
|
|
452
|
-
var aVisibleItems = ListHelpers.getVisibleItems(this.getItems()),
|
|
453
|
-
oListItem = aVisibleItems.length && ListHelpers.getListItem(aVisibleItems[aVisibleItems.length - 1]);
|
|
454
|
-
|
|
455
|
-
oEvent.preventDefault();
|
|
456
|
-
oListItem && oListItem.focus();
|
|
457
|
-
}.bind(this),
|
|
524
|
+
MultiComboBox.prototype._valueStateNavDelegate = function(oValueStateHeader, aValueStateLinks) {
|
|
525
|
+
return {
|
|
526
|
+
onsapdown: this.handleDownEvent,
|
|
527
|
+
onsapup: this.focus,
|
|
528
|
+
onsapend: this.handleEndEvent,
|
|
458
529
|
onfocusout: function(oEvent) {
|
|
459
530
|
// Links should not be tabbable after the focus is moved outside of the value state header
|
|
460
531
|
oValueStateHeader.removeStyleClass("sapMFocusable");
|
|
@@ -465,10 +536,10 @@ function(
|
|
|
465
536
|
oLink.getDomRef().setAttribute("tabindex", "-1");
|
|
466
537
|
});
|
|
467
538
|
}
|
|
468
|
-
}
|
|
539
|
+
},
|
|
540
|
+
onsapshow: this.close,
|
|
541
|
+
onsaphide: this.close
|
|
469
542
|
};
|
|
470
|
-
|
|
471
|
-
return this.oValueStateNavDelegate;
|
|
472
543
|
};
|
|
473
544
|
|
|
474
545
|
/**
|
|
@@ -494,16 +565,8 @@ function(
|
|
|
494
565
|
* @private
|
|
495
566
|
*/
|
|
496
567
|
MultiComboBox.prototype._formattedTextLinksNav = {
|
|
497
|
-
onsapup:
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
onsapdown: function() {
|
|
501
|
-
var aSelectableItems = ListHelpers.getSelectableItems(this.getItems());
|
|
502
|
-
|
|
503
|
-
if (aSelectableItems.length) {
|
|
504
|
-
aSelectableItems[0].focus();
|
|
505
|
-
}
|
|
506
|
-
}
|
|
568
|
+
onsapup: this.focus,
|
|
569
|
+
onsapdown: this.handleDownEvent
|
|
507
570
|
};
|
|
508
571
|
|
|
509
572
|
/**
|
|
@@ -515,8 +578,6 @@ function(
|
|
|
515
578
|
MultiComboBox.prototype._handleFormattedTextNav = function() {
|
|
516
579
|
var oCustomHeader = this.getPicker().getCustomHeader(),
|
|
517
580
|
aValueStateLinks = this.getValueStateLinks(),
|
|
518
|
-
oFormattedText = oCustomHeader.getFormattedText(),
|
|
519
|
-
oValueStateNavDelegate = this.oValueStateNavDelegate || this._valueStateNavDelegate(oCustomHeader, oFormattedText, aValueStateLinks),
|
|
520
581
|
oLastValueStateLink = aValueStateLinks ? aValueStateLinks[aValueStateLinks.length - 1] : null,
|
|
521
582
|
oFirstValueStateLink = aValueStateLinks ? aValueStateLinks[0] : null;
|
|
522
583
|
|
|
@@ -524,9 +585,13 @@ function(
|
|
|
524
585
|
return;
|
|
525
586
|
}
|
|
526
587
|
|
|
588
|
+
if (!this.oValueStateNavDelegate) {
|
|
589
|
+
this.oValueStateNavDelegate = this._valueStateNavDelegate(oCustomHeader, aValueStateLinks);
|
|
590
|
+
oCustomHeader.addEventDelegate(this.oValueStateNavDelegate, this);
|
|
591
|
+
}
|
|
592
|
+
|
|
527
593
|
// Make the value state header focusable and focus it
|
|
528
594
|
oCustomHeader.getDomRef().setAttribute("tabindex", "-1");
|
|
529
|
-
oCustomHeader.addDelegate(oValueStateNavDelegate);
|
|
530
595
|
oCustomHeader.addStyleClass("sapMFocusable");
|
|
531
596
|
oCustomHeader.focus();
|
|
532
597
|
|
|
@@ -534,7 +599,7 @@ function(
|
|
|
534
599
|
// (on the items list or on the input) and the opposite when the header is focused.
|
|
535
600
|
aValueStateLinks.forEach(function(oLink) {
|
|
536
601
|
oLink.getDomRef().setAttribute("tabindex", "0");
|
|
537
|
-
oLink.
|
|
602
|
+
oLink.addEventDelegate(this._formattedTextLinksNav, this);
|
|
538
603
|
}, this);
|
|
539
604
|
|
|
540
605
|
this.oMoveFocusBackToVSHeader = !this.oMoveFocusBackToVSHeader ? {
|
|
@@ -545,8 +610,8 @@ function(
|
|
|
545
610
|
}
|
|
546
611
|
} : this.oMoveFocusBackToVSHeader;
|
|
547
612
|
|
|
548
|
-
oLastValueStateLink && oLastValueStateLink.
|
|
549
|
-
oFirstValueStateLink && oFirstValueStateLink.
|
|
613
|
+
oLastValueStateLink && oLastValueStateLink.addEventDelegate(this._closePickerDelegate, this);
|
|
614
|
+
oFirstValueStateLink && oFirstValueStateLink.addEventDelegate(this.oMoveFocusBackToVSHeader, this);
|
|
550
615
|
};
|
|
551
616
|
|
|
552
617
|
/**
|
|
@@ -555,7 +620,9 @@ function(
|
|
|
555
620
|
* @param {jQuery.Event} oEvent The event object.
|
|
556
621
|
* @private
|
|
557
622
|
*/
|
|
558
|
-
MultiComboBox.prototype.onsaphide =
|
|
623
|
+
MultiComboBox.prototype.onsaphide = function (oEvent) {
|
|
624
|
+
this.onsapshow(oEvent);
|
|
625
|
+
};
|
|
559
626
|
|
|
560
627
|
/**
|
|
561
628
|
* Handles the item selection when user triggers an item selection via key press (TAB, ENTER etc.).
|
|
@@ -1124,6 +1191,8 @@ function(
|
|
|
1124
1191
|
onAfterRendering: this.onAfterRenderingList,
|
|
1125
1192
|
onfocusin: this.onFocusinList
|
|
1126
1193
|
}, this);
|
|
1194
|
+
|
|
1195
|
+
this.getShowSelectAll() && this.createSelectAllHeaderToolbar(oList);
|
|
1127
1196
|
};
|
|
1128
1197
|
|
|
1129
1198
|
/**
|
|
@@ -1184,6 +1253,8 @@ function(
|
|
|
1184
1253
|
this.syncPickerContent(true);
|
|
1185
1254
|
}
|
|
1186
1255
|
|
|
1256
|
+
this.toggleSelectAllVisibility(this.getShowSelectAll());
|
|
1257
|
+
|
|
1187
1258
|
this._deregisterResizeHandler();
|
|
1188
1259
|
this._synchronizeSelectedItemAndKey();
|
|
1189
1260
|
this.setProperty("hasSelection", !!this.getSelectedItems().length, true);
|
|
@@ -1472,6 +1543,8 @@ function(
|
|
|
1472
1543
|
} else {
|
|
1473
1544
|
itemsVisibilityHandler(this.getItems(), this.filterItems({value: sValue, items: aItems}));
|
|
1474
1545
|
}
|
|
1546
|
+
|
|
1547
|
+
this.manageSelectAllCheckBoxState();
|
|
1475
1548
|
};
|
|
1476
1549
|
|
|
1477
1550
|
/**
|
|
@@ -1796,9 +1869,7 @@ function(
|
|
|
1796
1869
|
oEvent.setMarked();
|
|
1797
1870
|
oEvent.preventDefault();
|
|
1798
1871
|
|
|
1799
|
-
var aVisibleItems = ListHelpers.getSelectableItems(this.getItems())
|
|
1800
|
-
return !oItem.isA("sap.ui.core.SeparatorItem") && !oItem.isA("sap.m.GroupHeaderListItem");
|
|
1801
|
-
});
|
|
1872
|
+
var aVisibleItems = ListHelpers.getSelectableItems(this.getItems());
|
|
1802
1873
|
var aSelectedItems = this._getSelectedItemsOf(aVisibleItems);
|
|
1803
1874
|
|
|
1804
1875
|
if (aSelectedItems.length !== aVisibleItems.length) {
|
|
@@ -1869,14 +1940,7 @@ function(
|
|
|
1869
1940
|
// Handle when F4 or Alt + DOWN arrow are pressed.
|
|
1870
1941
|
oEvent.setMarked();
|
|
1871
1942
|
|
|
1872
|
-
|
|
1873
|
-
this.close();
|
|
1874
|
-
return;
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
if (this.hasContent()) {
|
|
1878
|
-
this.open();
|
|
1879
|
-
}
|
|
1943
|
+
this.close();
|
|
1880
1944
|
},
|
|
1881
1945
|
|
|
1882
1946
|
onsaphide: function(oEvent) {
|
|
@@ -1891,40 +1955,9 @@ function(
|
|
|
1891
1955
|
this.close();
|
|
1892
1956
|
},
|
|
1893
1957
|
|
|
1894
|
-
onsaphome:
|
|
1895
|
-
|
|
1896
|
-
// Handle when Pos1 is pressed.
|
|
1897
|
-
oEvent.setMarked();
|
|
1898
|
-
|
|
1899
|
-
// note: prevent document scrolling when Home key is pressed
|
|
1900
|
-
oEvent.preventDefault();
|
|
1901
|
-
|
|
1902
|
-
if (this.getValueState() !== ValueState.None) {
|
|
1903
|
-
this._handleFormattedTextNav();
|
|
1904
|
-
oEvent.stopPropagation(true);
|
|
1905
|
-
return;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
var aVisibleItems = ListHelpers.getSelectableItems(this.getItems());
|
|
1909
|
-
var oItem = aVisibleItems[0];
|
|
1910
|
-
|
|
1911
|
-
// Scrolls an item into the visual viewport
|
|
1912
|
-
ListHelpers.getListItem(oItem).focus();
|
|
1913
|
-
},
|
|
1914
|
-
|
|
1915
|
-
onsapend: function(oEvent) {
|
|
1916
|
-
|
|
1917
|
-
// Handle when End is pressed.
|
|
1918
|
-
oEvent.setMarked();
|
|
1919
|
-
|
|
1920
|
-
// note: prevent document scrolling when End key is pressed
|
|
1921
|
-
oEvent.preventDefault();
|
|
1922
|
-
var aVisibleItems = ListHelpers.getSelectableItems(this.getItems());
|
|
1923
|
-
var oItem = aVisibleItems[aVisibleItems.length - 1];
|
|
1958
|
+
onsaphome: this.handleHomeEvent.bind(this),
|
|
1924
1959
|
|
|
1925
|
-
|
|
1926
|
-
ListHelpers.getListItem(oItem).focus();
|
|
1927
|
-
},
|
|
1960
|
+
onsapend: this.handleEndEvent.bind(this),
|
|
1928
1961
|
|
|
1929
1962
|
onsapup: function(oEvent) {
|
|
1930
1963
|
|
|
@@ -1938,18 +1971,20 @@ function(
|
|
|
1938
1971
|
var oItemFirst = aVisibleItems[0];
|
|
1939
1972
|
var oItemCurrent = jQuery(document.activeElement).control()[0];
|
|
1940
1973
|
|
|
1941
|
-
if (oItemCurrent
|
|
1942
|
-
this._handleFormattedTextNav();
|
|
1943
|
-
oEvent.stopPropagation(true);
|
|
1974
|
+
if (oItemCurrent !== ListHelpers.getListItem(oItemFirst)) {
|
|
1944
1975
|
return;
|
|
1945
|
-
}
|
|
1946
|
-
this.focus();
|
|
1976
|
+
}
|
|
1947
1977
|
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1978
|
+
if (this.getShowSelectAll()) {
|
|
1979
|
+
this.focusSelectAll();
|
|
1980
|
+
} else if (this.getValueState() !== ValueState.None) {
|
|
1981
|
+
this._handleFormattedTextNav();
|
|
1982
|
+
} else {
|
|
1983
|
+
this.focus();
|
|
1952
1984
|
}
|
|
1985
|
+
|
|
1986
|
+
// prevent list from focusing list item
|
|
1987
|
+
oEvent.stopPropagation(true);
|
|
1953
1988
|
},
|
|
1954
1989
|
|
|
1955
1990
|
onfocusin: function(oEvent) {
|
|
@@ -2184,6 +2219,8 @@ function(
|
|
|
2184
2219
|
oList.getItems()[this._iFocusedIndex].focus();
|
|
2185
2220
|
this._iFocusedIndex = null;
|
|
2186
2221
|
}
|
|
2222
|
+
|
|
2223
|
+
this.manageSelectAllCheckBoxState();
|
|
2187
2224
|
};
|
|
2188
2225
|
|
|
2189
2226
|
/**
|
|
@@ -3130,6 +3167,7 @@ function(
|
|
|
3130
3167
|
}
|
|
3131
3168
|
}
|
|
3132
3169
|
itemsVisibilityHandler(this.getItems(), this.filterItems({ value: sValue, items: aItemsToCheck }));
|
|
3170
|
+
this.manageSelectAllCheckBoxState();
|
|
3133
3171
|
|
|
3134
3172
|
this._sOldInput = sValue;
|
|
3135
3173
|
|
|
@@ -3204,8 +3242,6 @@ function(
|
|
|
3204
3242
|
};
|
|
3205
3243
|
|
|
3206
3244
|
MultiComboBox.prototype.init = function() {
|
|
3207
|
-
this._oRb = core.getLibraryResourceBundle("sap.m");
|
|
3208
|
-
|
|
3209
3245
|
ComboBoxBase.prototype.init.apply(this, arguments);
|
|
3210
3246
|
|
|
3211
3247
|
// Flag to mark that all the initial setters have completed.
|
|
@@ -3296,6 +3332,7 @@ function(
|
|
|
3296
3332
|
this._oRbC = null;
|
|
3297
3333
|
this._oRbM = null;
|
|
3298
3334
|
this._oListItemEnterEventDelegate = null;
|
|
3335
|
+
this.oValueStateNavDelegate = null;
|
|
3299
3336
|
|
|
3300
3337
|
this._sInitialValueState = null;
|
|
3301
3338
|
};
|
|
@@ -3370,7 +3407,7 @@ function(
|
|
|
3370
3407
|
oItemToFocus = this._getItemByValue(sValue);
|
|
3371
3408
|
}
|
|
3372
3409
|
|
|
3373
|
-
// If no items are selected
|
|
3410
|
+
// If no items are selected focus the first visible one
|
|
3374
3411
|
if (!oItemToFocus) {
|
|
3375
3412
|
oItemToFocus = aSelectedItems.length ? ListHelpers.getItemByListItem(this.getItems(), this._getList().getSelectedItems()[0]) : aSelectableItems[0];
|
|
3376
3413
|
}
|
|
@@ -3529,6 +3566,7 @@ function(
|
|
|
3529
3566
|
MultiComboBox.prototype.applyShowItemsFilters = function () {
|
|
3530
3567
|
this.syncPickerContent();
|
|
3531
3568
|
itemsVisibilityHandler(this.getItems(), this.filterItems({value: this.getValue() || "_", items: this.getItems()}));
|
|
3569
|
+
this.manageSelectAllCheckBoxState();
|
|
3532
3570
|
};
|
|
3533
3571
|
|
|
3534
3572
|
/**
|
|
@@ -3556,6 +3594,183 @@ function(
|
|
|
3556
3594
|
}
|
|
3557
3595
|
};
|
|
3558
3596
|
|
|
3597
|
+
/**
|
|
3598
|
+
* Creates a list header toolbar containing the select all checkbox.
|
|
3599
|
+
*
|
|
3600
|
+
* @param {sap.m.List} oList The list instance to be configured
|
|
3601
|
+
* @private
|
|
3602
|
+
*/
|
|
3603
|
+
MultiComboBox.prototype.createSelectAllHeaderToolbar = function (oList) {
|
|
3604
|
+
oList = oList || this._getList();
|
|
3605
|
+
|
|
3606
|
+
if (!oList || oList.getHeaderToolbar()) {
|
|
3607
|
+
return;
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
var oSelectAllCheckbox = new CheckBox({
|
|
3611
|
+
select: function (oEvent) {
|
|
3612
|
+
var oCheckBox = oEvent.getSource(),
|
|
3613
|
+
aVisibleSelectableItems = ListHelpers.getSelectableItems(this.getItems()),
|
|
3614
|
+
aSelectedVisibleItems = this._getSelectedItemsOf(aVisibleSelectableItems);
|
|
3615
|
+
|
|
3616
|
+
if (oEvent.getParameter("selected")) {
|
|
3617
|
+
var aNotSelectedVisibleItems = aVisibleSelectableItems.filter(function (aCurSelectedItem) {
|
|
3618
|
+
return aSelectedVisibleItems.indexOf(aCurSelectedItem) === -1;
|
|
3619
|
+
});
|
|
3620
|
+
|
|
3621
|
+
aNotSelectedVisibleItems.forEach(function(oItem) {
|
|
3622
|
+
this.setSelection({
|
|
3623
|
+
item: oItem,
|
|
3624
|
+
items: aNotSelectedVisibleItems,
|
|
3625
|
+
selectAll: true,
|
|
3626
|
+
id: oItem.getId(),
|
|
3627
|
+
key: oItem.getKey(),
|
|
3628
|
+
fireChangeEvent: true,
|
|
3629
|
+
suppressInvalidate: true,
|
|
3630
|
+
listItemUpdated: false
|
|
3631
|
+
});
|
|
3632
|
+
}, this);
|
|
3633
|
+
|
|
3634
|
+
} else {
|
|
3635
|
+
aSelectedVisibleItems.forEach(function(oItem) {
|
|
3636
|
+
this.removeSelection({
|
|
3637
|
+
item: oItem,
|
|
3638
|
+
items: aSelectedVisibleItems,
|
|
3639
|
+
selectAll: true,
|
|
3640
|
+
id: oItem.getId(),
|
|
3641
|
+
key: oItem.getKey(),
|
|
3642
|
+
fireChangeEvent: true,
|
|
3643
|
+
suppressInvalidate: true,
|
|
3644
|
+
listItemUpdated: false
|
|
3645
|
+
});
|
|
3646
|
+
}, this);
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
oCheckBox.focus();
|
|
3650
|
+
}.bind(this)
|
|
3651
|
+
});
|
|
3652
|
+
|
|
3653
|
+
oSelectAllCheckbox.addEventDelegate(this._selectAllDelegate(), this);
|
|
3654
|
+
|
|
3655
|
+
oList.setHeaderToolbar(new Toolbar({
|
|
3656
|
+
content: oSelectAllCheckbox
|
|
3657
|
+
}).addStyleClass("sapMMultiComboBoxSelectAll"))
|
|
3658
|
+
.setSticky(["HeaderToolbar"]);
|
|
3659
|
+
|
|
3660
|
+
this.attachSelectionChange(this.manageSelectAllCheckBoxState.bind(this));
|
|
3661
|
+
};
|
|
3662
|
+
|
|
3663
|
+
/**
|
|
3664
|
+
* Updates the state and text of the select all checkbox.
|
|
3665
|
+
*
|
|
3666
|
+
* @private
|
|
3667
|
+
*/
|
|
3668
|
+
MultiComboBox.prototype.manageSelectAllCheckBoxState = function () {
|
|
3669
|
+
var oSelectAllCheckbox = this.getSelectAllCheckbox();
|
|
3670
|
+
|
|
3671
|
+
if (!oSelectAllCheckbox) {
|
|
3672
|
+
return;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
var aItems = this.getItems(),
|
|
3676
|
+
aSelectedItems = this.getSelectedItems(),
|
|
3677
|
+
bSelectAll = ListHelpers.getSelectableItems(aItems).filter(function (oSelectableItem) {
|
|
3678
|
+
return aSelectedItems.indexOf(oSelectableItem) > -1;
|
|
3679
|
+
}).length === ListHelpers.getSelectableItems(aItems).length;
|
|
3680
|
+
|
|
3681
|
+
oSelectAllCheckbox
|
|
3682
|
+
.setText(this._oRbM.getText("MULTICOMBOBOX_SELECT_ALL_CHECKBOX", [aSelectedItems.length, ListHelpers.getAllSelectableItems(aItems).length]))
|
|
3683
|
+
.setSelected(bSelectAll);
|
|
3684
|
+
};
|
|
3685
|
+
|
|
3686
|
+
/**
|
|
3687
|
+
* Gets the list header toolbar containing the select all checkbox.
|
|
3688
|
+
*
|
|
3689
|
+
* @returns {sap.m.Toolbar|undefined} The header toolbar, if defined
|
|
3690
|
+
* @private
|
|
3691
|
+
*/
|
|
3692
|
+
MultiComboBox.prototype.getSelectAllToolbar = function () {
|
|
3693
|
+
var oList = this._getList();
|
|
3694
|
+
|
|
3695
|
+
return oList && oList.getHeaderToolbar();
|
|
3696
|
+
};
|
|
3697
|
+
|
|
3698
|
+
/**
|
|
3699
|
+
* Gets the select all checkbox.
|
|
3700
|
+
*
|
|
3701
|
+
* @returns {sap.m.Checkbox|undefined} The select all checkbox, if defined
|
|
3702
|
+
* @private
|
|
3703
|
+
*/
|
|
3704
|
+
MultiComboBox.prototype.getSelectAllCheckbox = function () {
|
|
3705
|
+
var oSelectAllToolbar = this.getSelectAllToolbar();
|
|
3706
|
+
|
|
3707
|
+
return oSelectAllToolbar && oSelectAllToolbar.getContent()[0];
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* Event Delegate for the select all checkbox.
|
|
3712
|
+
*
|
|
3713
|
+
* @returns {object} The delegate object, containing all event delegates
|
|
3714
|
+
* @private
|
|
3715
|
+
*/
|
|
3716
|
+
MultiComboBox.prototype._selectAllDelegate = function () {
|
|
3717
|
+
return {
|
|
3718
|
+
onsapdown: this.handleDownEvent,
|
|
3719
|
+
onsapup: function (oEvent) {
|
|
3720
|
+
oEvent.preventDefault();
|
|
3721
|
+
if (this.getValueState() !== ValueState.None) {
|
|
3722
|
+
this._handleFormattedTextNav();
|
|
3723
|
+
return;
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
this.getFocusDomRef().focus();
|
|
3727
|
+
},
|
|
3728
|
+
onsaphome: this.handleHomeEvent,
|
|
3729
|
+
onsapend: this.handleEndEvent,
|
|
3730
|
+
onfocusin: function () {
|
|
3731
|
+
var oRenderer = this.getRenderer(),
|
|
3732
|
+
oSelectAllToolbar = this.getSelectAllToolbar();
|
|
3733
|
+
|
|
3734
|
+
oSelectAllToolbar && oSelectAllToolbar.addStyleClass(oRenderer.CSS_CLASS_MULTICOMBOBOX + "SelectAllFocused");
|
|
3735
|
+
},
|
|
3736
|
+
onfocusout: function () {
|
|
3737
|
+
var oRenderer = this.getRenderer(),
|
|
3738
|
+
oSelectAllToolbar = this.getSelectAllToolbar();
|
|
3739
|
+
|
|
3740
|
+
oSelectAllToolbar && oSelectAllToolbar.removeStyleClass(oRenderer.CSS_CLASS_MULTICOMBOBOX + "SelectAllFocused");
|
|
3741
|
+
},
|
|
3742
|
+
onsapshow: this.close,
|
|
3743
|
+
onsaphide: this.close
|
|
3744
|
+
};
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Focuses the select all checkbox.
|
|
3749
|
+
* @private
|
|
3750
|
+
*/
|
|
3751
|
+
MultiComboBox.prototype.focusSelectAll = function () {
|
|
3752
|
+
var oSelectAllCheckbox = this.getSelectAllCheckbox();
|
|
3753
|
+
|
|
3754
|
+
oSelectAllCheckbox && oSelectAllCheckbox.focus();
|
|
3755
|
+
};
|
|
3756
|
+
|
|
3757
|
+
/**
|
|
3758
|
+
* Toggles the visibility of the list header toolbar, containing the select all checkbox.
|
|
3759
|
+
*
|
|
3760
|
+
* @param {boolean} bShow If true, the select all should be visible
|
|
3761
|
+
* @private
|
|
3762
|
+
*/
|
|
3763
|
+
MultiComboBox.prototype.toggleSelectAllVisibility = function (bShow) {
|
|
3764
|
+
var oSelectAllToolbar = this.getSelectAllToolbar();
|
|
3765
|
+
|
|
3766
|
+
if (oSelectAllToolbar) {
|
|
3767
|
+
oSelectAllToolbar.setVisible(bShow);
|
|
3768
|
+
return;
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3771
|
+
bShow && this.createSelectAllHeaderToolbar();
|
|
3772
|
+
};
|
|
3773
|
+
|
|
3559
3774
|
return MultiComboBox;
|
|
3560
3775
|
|
|
3561
3776
|
});
|
|
@@ -17,7 +17,7 @@ sap.ui.define(["sap/ui/core/XMLComposite", "./library", "sap/ui/core/Item"], fun
|
|
|
17
17
|
* @implements sap.ui.core.IFormContent
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.96.1
|
|
21
21
|
* @experimental since 1.52
|
|
22
22
|
* @since 1.52.0
|
|
23
23
|
* @alias sap.m.MultiEditField
|