@openui5/sap.m 1.100.0 → 1.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +18 -0
- package/THIRDPARTY.txt +5 -5
- 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 +10 -3
- 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 +6 -5
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BreadcrumbsRenderer.js +0 -5
- 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 +4 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +2 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnListItemRenderer.js +1 -0
- 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 +4 -2
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +33 -5
- package/src/sap/m/DatePickerRenderer.js +0 -1
- package/src/sap/m/DateRangeSelection.js +42 -4
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +35 -49
- package/src/sap/m/DateTimePickerRenderer.js +2 -2
- package/src/sap/m/Dialog.js +20 -7
- 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 +12 -2
- package/src/sap/m/DynamicDateRange.js +56 -15
- 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 +2 -2
- 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/GenericTagRenderer.js +10 -2
- package/src/sap/m/GenericTile.js +44 -4
- package/src/sap/m/GenericTileLineModeRenderer.js +77 -3
- package/src/sap/m/GenericTileRenderer.js +79 -28
- 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 +29 -13
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +2 -2
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +19 -1
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +4 -10
- package/src/sap/m/InputBase.js +1 -1
- 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 +36 -5
- package/src/sap/m/ListBaseRenderer.js +19 -3
- package/src/sap/m/ListItemBase.js +3 -2
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +5 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageBox.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +18 -36
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +3 -2
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -1
- package/src/sap/m/NavContainer.js +40 -40
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +3 -2
- package/src/sap/m/NumericInputRenderer.js +13 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +34 -10
- package/src/sap/m/ObjectMarkerRenderer.js +14 -2
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/OverflowToolbar.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +2 -2
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- 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 +1 -1
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +3 -3
- package/src/sap/m/PDFViewerRenderer.js +15 -7
- 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 +14 -14
- package/src/sap/m/PlanningCalendarHeader.js +1 -4
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +14 -9
- 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 +3 -2
- package/src/sap/m/RangeSlider.js +14 -2
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +5 -2
- package/src/sap/m/SelectDialog.js +2 -2
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +90 -48
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +10 -9
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +22 -10
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- 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 +5 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +25 -4
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +3 -3
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +5 -13
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +34 -3
- 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 +9 -4
- package/src/sap/m/TableSelectDialog.js +2 -2
- 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 +1 -1
- package/src/sap/m/TimePicker.js +2 -54
- 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/TimePickerRenderer.js +0 -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 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +7 -8
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +2 -2
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +22 -4
- package/src/sap/m/WizardProgressNavigator.js +10 -3
- 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 +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/designtime/ListBase.designtime.js +3 -0
- package/src/sap/m/inputUtils/SuggestionsPopoverDialogMixin.js +22 -16
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +10 -2
- package/src/sap/m/library.js +12 -19
- package/src/sap/m/messagebundle.properties +25 -16
- package/src/sap/m/messagebundle_ar.properties +11 -13
- package/src/sap/m/messagebundle_bg.properties +11 -13
- package/src/sap/m/messagebundle_ca.properties +11 -13
- package/src/sap/m/messagebundle_cs.properties +11 -13
- package/src/sap/m/messagebundle_cy.properties +11 -13
- package/src/sap/m/messagebundle_da.properties +11 -13
- package/src/sap/m/messagebundle_de.properties +11 -13
- package/src/sap/m/messagebundle_el.properties +11 -13
- package/src/sap/m/messagebundle_en.properties +10 -12
- package/src/sap/m/messagebundle_en_GB.properties +10 -12
- package/src/sap/m/messagebundle_en_US_sappsd.properties +9 -11
- package/src/sap/m/messagebundle_en_US_saprigi.properties +9 -11
- package/src/sap/m/messagebundle_en_US_saptrc.properties +9 -11
- package/src/sap/m/messagebundle_es.properties +11 -13
- package/src/sap/m/messagebundle_es_MX.properties +11 -13
- package/src/sap/m/messagebundle_et.properties +11 -13
- package/src/sap/m/messagebundle_fi.properties +10 -12
- package/src/sap/m/messagebundle_fr.properties +11 -13
- package/src/sap/m/messagebundle_fr_CA.properties +11 -13
- package/src/sap/m/messagebundle_hi.properties +11 -13
- package/src/sap/m/messagebundle_hr.properties +11 -13
- package/src/sap/m/messagebundle_hu.properties +11 -13
- package/src/sap/m/messagebundle_id.properties +11 -13
- package/src/sap/m/messagebundle_it.properties +18 -20
- package/src/sap/m/messagebundle_iw.properties +11 -13
- package/src/sap/m/messagebundle_ja.properties +11 -13
- package/src/sap/m/messagebundle_kk.properties +11 -13
- package/src/sap/m/messagebundle_ko.properties +12 -14
- package/src/sap/m/messagebundle_lt.properties +11 -13
- package/src/sap/m/messagebundle_lv.properties +10 -12
- package/src/sap/m/messagebundle_ms.properties +11 -13
- package/src/sap/m/messagebundle_nl.properties +10 -12
- package/src/sap/m/messagebundle_no.properties +11 -13
- package/src/sap/m/messagebundle_pl.properties +11 -13
- package/src/sap/m/messagebundle_pt.properties +11 -13
- package/src/sap/m/messagebundle_pt_PT.properties +11 -13
- package/src/sap/m/messagebundle_ro.properties +11 -13
- package/src/sap/m/messagebundle_ru.properties +11 -13
- package/src/sap/m/messagebundle_sh.properties +11 -13
- package/src/sap/m/messagebundle_sk.properties +11 -13
- package/src/sap/m/messagebundle_sl.properties +11 -13
- package/src/sap/m/messagebundle_sv.properties +12 -14
- package/src/sap/m/messagebundle_th.properties +11 -13
- package/src/sap/m/messagebundle_tr.properties +11 -13
- package/src/sap/m/messagebundle_uk.properties +11 -13
- package/src/sap/m/messagebundle_vi.properties +11 -13
- package/src/sap/m/messagebundle_zh_CN.properties +11 -13
- package/src/sap/m/messagebundle_zh_TW.properties +11 -13
- package/src/sap/m/p13n/AbstractContainer.js +2 -2
- package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
- package/src/sap/m/p13n/BasePanel.js +9 -3
- package/src/sap/m/p13n/Container.js +11 -4
- package/src/sap/m/p13n/GroupPanel.js +2 -1
- package/src/sap/m/p13n/Popup.js +9 -2
- package/src/sap/m/p13n/QueryPanel.js +38 -8
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +4 -1
- package/src/sap/m/plugins/ColumnResizer.js +31 -2
- 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/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 +7 -14
- 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 +84 -6
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/ItemContainer.js +29 -0
- package/src/sap/m/table/columnmenu/Menu.js +197 -23
- package/src/sap/m/table/columnmenu/MenuRenderer.js +1 -25
- package/src/sap/m/table/columnmenu/QuickAction.js +14 -3
- package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionContainer.js +29 -0
- package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroup.js +29 -16
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +13 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSortItem.js +29 -28
- package/src/sap/m/table/columnmenu/QuickTotal.js +32 -17
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +13 -1
- package/src/sap/m/themes/base/Avatar.less +11 -5
- package/src/sap/m/themes/base/CheckBox.less +0 -1
- package/src/sap/m/themes/base/ColumnMenu.less +12 -4
- package/src/sap/m/themes/base/Dialog.less +4 -6
- package/src/sap/m/themes/base/GenericTile.less +370 -55
- package/src/sap/m/themes/base/IconTabBar.less +45 -14
- package/src/sap/m/themes/base/Input.less +1 -1
- package/src/sap/m/themes/base/InputBase.less +112 -10
- package/src/sap/m/themes/base/Label.less +3 -0
- package/src/sap/m/themes/base/Link.less +12 -4
- package/src/sap/m/themes/base/ListBase.less +4 -0
- package/src/sap/m/themes/base/MultiInput.less +1 -1
- package/src/sap/m/themes/base/ObjectAttribute.less +1 -1
- package/src/sap/m/themes/base/ObjectMarker.less +3 -1
- package/src/sap/m/themes/base/ObjectStatus.less +5 -0
- package/src/sap/m/themes/base/Popover.less +10 -7
- package/src/sap/m/themes/base/RadioButton.less +21 -3
- package/src/sap/m/themes/base/SuggestionsPopover.less +1 -1
- package/src/sap/m/themes/base/TextArea.less +27 -0
- package/src/sap/m/themes/base/Token.less +14 -13
- package/src/sap/m/themes/base/Tokenizer.less +2 -2
- package/src/sap/m/themes/base/ValueStateMessage.less +3 -3
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyCalendar.svg +73 -72
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyList.svg +33 -18
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoEntries.svg +1 -3
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoNotifications.svg +3 -5
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleBell.svg +12 -9
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleCalendar.svg +41 -40
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SleepingBell.svg +29 -22
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-Tent.svg +28 -23
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Connection.svg +27 -27
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyCalendar.svg +86 -85
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyList.svg +42 -26
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoData.svg +0 -2
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoEntries.svg +0 -2
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleBell.svg +15 -12
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleCalendar.svg +43 -42
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SleepingBell.svg +49 -42
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Tent.svg +58 -53
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyCalendar.svg +42 -41
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyList.svg +24 -16
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoEntries.svg +10 -20
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoNotifications.svg +8 -13
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleBell.svg +11 -8
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleCalendar.svg +37 -39
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SleepingBell.svg +38 -22
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-Tent.svg +28 -23
- package/src/sap/m/themes/sap_hcb/ComboBoxBase.less +0 -12
- package/src/sap/m/themes/sap_hcb/InputBase.less +7 -42
- package/src/sap/m/themes/sap_hcb/Popover.less +3 -0
- package/src/sap/m/themes/sap_hcb/Token.less +4 -0
- package/src/sap/m/themes/sap_hcb/ValueStateHeader.less +4 -0
- package/src/sap/m/themes/sap_hcb/ValueStateMessage.less +12 -1
- package/src/sap/m/upload/UploadSet.js +91 -21
- package/src/sap/m/upload/UploadSetItem.js +11 -1
|
@@ -11,6 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
'./library',
|
|
12
12
|
'sap/ui/core/LocaleData',
|
|
13
13
|
'sap/ui/core/format/DateFormat',
|
|
14
|
+
'sap/ui/core/format/TimezoneUtil',
|
|
14
15
|
'sap/ui/core/date/UniversalDate',
|
|
15
16
|
'./DateRangeSelectionRenderer',
|
|
16
17
|
"sap/ui/unified/calendar/CustomMonthPicker",
|
|
@@ -26,6 +27,7 @@ sap.ui.define([
|
|
|
26
27
|
library,
|
|
27
28
|
LocaleData,
|
|
28
29
|
DateFormat,
|
|
30
|
+
TimezoneUtil,
|
|
29
31
|
UniversalDate,
|
|
30
32
|
DateRangeSelectionRenderer,
|
|
31
33
|
CustomMonthPicker,
|
|
@@ -126,8 +128,8 @@ sap.ui.define([
|
|
|
126
128
|
* compact mode and provides a touch-friendly size in cozy mode.
|
|
127
129
|
*
|
|
128
130
|
* @extends sap.m.DatePicker
|
|
129
|
-
* @version 1.
|
|
130
|
-
* @version 1.
|
|
131
|
+
* @version 1.101.0
|
|
132
|
+
* @version 1.101.0
|
|
131
133
|
*
|
|
132
134
|
* @constructor
|
|
133
135
|
* @public
|
|
@@ -200,6 +202,7 @@ sap.ui.define([
|
|
|
200
202
|
oCalendar._getYearPicker().setIntervalSelection(true);
|
|
201
203
|
}
|
|
202
204
|
|
|
205
|
+
this._getCalendar().detachWeekNumberSelect(this._handleWeekSelect, this);
|
|
203
206
|
this._getCalendar().attachWeekNumberSelect(this._handleWeekSelect, this);
|
|
204
207
|
this._getCalendar().getSelectedDates()[0].setStartDate(this._oDateRange.getStartDate());
|
|
205
208
|
this._getCalendar().getSelectedDates()[0].setEndDate(this._oDateRange.getEndDate());
|
|
@@ -807,11 +810,18 @@ sap.ui.define([
|
|
|
807
810
|
DatePicker.prototype._fillDateRange.apply(this, arguments);
|
|
808
811
|
|
|
809
812
|
var oEndDate = this.getSecondDateValue();
|
|
813
|
+
var sFormattedEndDate;
|
|
810
814
|
|
|
811
815
|
if (oEndDate &&
|
|
812
816
|
oEndDate.getTime() >= this._oMinDate.getTime() &&
|
|
813
817
|
oEndDate.getTime() <= this._oMaxDate.getTime()) {
|
|
814
818
|
if (!this._oDateRange.getEndDate() || this._oDateRange.getEndDate().getTime() !== oEndDate.getTime()) {
|
|
819
|
+
sFormattedEndDate = this._getPickerParser().format(
|
|
820
|
+
oEndDate,
|
|
821
|
+
sap.ui.getCore().getConfiguration().getTimezone()
|
|
822
|
+
);
|
|
823
|
+
oEndDate = this._getPickerParser().parse(sFormattedEndDate, TimezoneUtil.getLocalTimezone())[0];
|
|
824
|
+
|
|
815
825
|
this._oDateRange.setEndDate(new Date(oEndDate.getTime()));
|
|
816
826
|
}
|
|
817
827
|
} else {
|
|
@@ -824,6 +834,8 @@ sap.ui.define([
|
|
|
824
834
|
|
|
825
835
|
DateRangeSelection.prototype._selectDate = function () {
|
|
826
836
|
var aSelectedDates = this._getCalendar().getSelectedDates();
|
|
837
|
+
var sFormattedDate, oParts;
|
|
838
|
+
var sTimezone = sap.ui.getCore().getConfiguration().getTimezone();
|
|
827
839
|
|
|
828
840
|
if (aSelectedDates.length > 0) {
|
|
829
841
|
var oDate1 = aSelectedDates[0].getStartDate();
|
|
@@ -836,6 +848,17 @@ sap.ui.define([
|
|
|
836
848
|
// the selected range includes all of the hours from the second date
|
|
837
849
|
oDate2.setHours(23, 59, 59, 999);
|
|
838
850
|
|
|
851
|
+
sFormattedDate = this._getPickerParser().format(oDate1, TimezoneUtil.getLocalTimezone());
|
|
852
|
+
oParts = this._getPickerParser().parse(sFormattedDate, sTimezone);
|
|
853
|
+
oDate1 = oParts && oParts[0];
|
|
854
|
+
|
|
855
|
+
sFormattedDate = this._getPickerParser().format(oDate2, TimezoneUtil.getLocalTimezone());
|
|
856
|
+
oParts = this._getPickerParser().parse(sFormattedDate, sTimezone);
|
|
857
|
+
oDate2 = oParts && oParts[0];
|
|
858
|
+
|
|
859
|
+
//the parser does not include milliseconds, so restore them
|
|
860
|
+
oDate2.setMilliseconds(999);
|
|
861
|
+
|
|
839
862
|
var sValue;
|
|
840
863
|
if (!deepEqual(oDate1, oDate1Old) || !deepEqual(oDate2, oDate2Old)) {
|
|
841
864
|
// compare Dates because value can be the same if only 2 digits for year
|
|
@@ -888,8 +911,15 @@ sap.ui.define([
|
|
|
888
911
|
|
|
889
912
|
DateRangeSelection.prototype._handleWeekSelect = function(oEvent){
|
|
890
913
|
var oSelectedDates = oEvent.getParameter("weekDays"),
|
|
891
|
-
oSelectedStartDate
|
|
892
|
-
oSelectedEndDate
|
|
914
|
+
oSelectedStartDate,
|
|
915
|
+
oSelectedEndDate;
|
|
916
|
+
|
|
917
|
+
if (!oSelectedDates) {
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
oSelectedStartDate = oSelectedDates.getStartDate();
|
|
922
|
+
oSelectedEndDate = oSelectedDates.getEndDate();
|
|
893
923
|
|
|
894
924
|
if (this.getShowFooter()) {
|
|
895
925
|
this._oPopup.getBeginButton().setEnabled(!!(oSelectedStartDate && oSelectedEndDate));
|
|
@@ -1058,6 +1088,14 @@ sap.ui.define([
|
|
|
1058
1088
|
}
|
|
1059
1089
|
};
|
|
1060
1090
|
|
|
1091
|
+
DateRangeSelection.prototype._getPickerParser = function() {
|
|
1092
|
+
if (!this._calendarParser) {
|
|
1093
|
+
this._calendarParser = DateFormat.getDateTimeWithTimezoneInstance({ showTimezone: false });
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
return this._calendarParser;
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1061
1099
|
function _getIncrementedDate(oOldDate, iNumber, sUnit) {
|
|
1062
1100
|
// use UniversalDate to calculate new date based on used calendar
|
|
1063
1101
|
var oBinding = this.getBinding("value"),
|
|
@@ -16,9 +16,9 @@ sap.ui.define([
|
|
|
16
16
|
'sap/ui/core/Control',
|
|
17
17
|
'sap/ui/Device',
|
|
18
18
|
'sap/ui/core/format/DateFormat',
|
|
19
|
-
'sap/ui/core/format/DateFormatTimezoneDisplay',
|
|
20
19
|
'sap/ui/core/LocaleData',
|
|
21
20
|
'sap/ui/core/Core',
|
|
21
|
+
'sap/ui/core/format/TimezoneUtil',
|
|
22
22
|
'./TimePickerClocks',
|
|
23
23
|
'./DateTimePickerRenderer',
|
|
24
24
|
'./SegmentedButton',
|
|
@@ -39,9 +39,9 @@ sap.ui.define([
|
|
|
39
39
|
Control,
|
|
40
40
|
Device,
|
|
41
41
|
DateFormat,
|
|
42
|
-
DateFormatTimezoneDisplay,
|
|
43
42
|
LocaleData,
|
|
44
43
|
Core,
|
|
44
|
+
TimezoneUtil,
|
|
45
45
|
TimePickerClocks,
|
|
46
46
|
DateTimePickerRenderer,
|
|
47
47
|
SegmentedButton,
|
|
@@ -145,7 +145,7 @@ sap.ui.define([
|
|
|
145
145
|
* mobile devices, it opens in full screen.
|
|
146
146
|
*
|
|
147
147
|
* @extends sap.m.DatePicker
|
|
148
|
-
* @version 1.
|
|
148
|
+
* @version 1.101.0
|
|
149
149
|
*
|
|
150
150
|
* @constructor
|
|
151
151
|
* @public
|
|
@@ -313,19 +313,14 @@ sap.ui.define([
|
|
|
313
313
|
if (Device.system.phone || jQuery('html').hasClass("sapUiMedia-Std-Phone") || this.getForcePhoneView()) {
|
|
314
314
|
oSwitcher.setVisible(true);
|
|
315
315
|
oSwitcher.setSelectedKey("Cal");
|
|
316
|
+
this.getCalendar().addDelegate({
|
|
317
|
+
onAfterRendering: function() {
|
|
318
|
+
this._switchVisibility(oSwitcher.getSelectedKey());
|
|
319
|
+
}.bind(this)
|
|
320
|
+
});
|
|
316
321
|
} else {
|
|
317
322
|
oSwitcher.setVisible(false);
|
|
318
323
|
}
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
onAfterRendering: function() {
|
|
323
|
-
if (Device.system.phone || jQuery('html').hasClass("sapUiMedia-Std-Phone") || this.getForcePhoneView()) {
|
|
324
|
-
var oSwitcher = this.getAggregation("_switcher");
|
|
325
|
-
var sKey = oSwitcher.getSelectedKey();
|
|
326
|
-
this._switchVisibility(sKey);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
324
|
},
|
|
330
325
|
|
|
331
326
|
_handleSelect: function(oEvent) {
|
|
@@ -349,7 +344,7 @@ sap.ui.define([
|
|
|
349
344
|
}
|
|
350
345
|
|
|
351
346
|
if (sKey === "Cal") {
|
|
352
|
-
oCalendar.$().css("display", "");
|
|
347
|
+
oCalendar.$().css("display", "flex");
|
|
353
348
|
oClocks.$().css("display", "none");
|
|
354
349
|
oCalendar.getFocusDomRef() && oCalendar.getFocusDomRef().focus();
|
|
355
350
|
} else {
|
|
@@ -373,21 +368,6 @@ sap.ui.define([
|
|
|
373
368
|
|
|
374
369
|
return this._oDateTimePicker.getSpecialDates();
|
|
375
370
|
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
onkeydown: function(oEvent) {
|
|
379
|
-
var bIsTabForward = oEvent.keyCode === KeyCodes.TAB && !oEvent.shiftKey;
|
|
380
|
-
var bIsTabBackward = oEvent.keyCode === KeyCodes.TAB && oEvent.shiftKey;
|
|
381
|
-
if (bIsTabForward) {
|
|
382
|
-
if (oEvent.target.classList.contains('sapUiCalHeadToday')
|
|
383
|
-
|| (oEvent.target.classList.contains('sapUiCalHeadBLast') && !this._oDateTimePicker._oCalendar.getShowCurrentDateButton())) {
|
|
384
|
-
this.getAggregation('clocks').getDomRef().children[0].children[0].focus();
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
if (bIsTabBackward && oEvent.target.classList.contains('sapUiCalItem')) {
|
|
388
|
-
var iLastElementIndex = this.oParent.getAggregation("footer").getAggregation("content").length - 1;
|
|
389
|
-
this.oParent.getAggregation("footer").getAggregation("content")[iLastElementIndex].focus();
|
|
390
|
-
}
|
|
391
371
|
}
|
|
392
372
|
});
|
|
393
373
|
|
|
@@ -578,6 +558,7 @@ sap.ui.define([
|
|
|
578
558
|
var oResourceBundle;
|
|
579
559
|
|
|
580
560
|
if (this._oTimezonePopup) {
|
|
561
|
+
this._oTimezonePopup.setTitle(this._getTimezone(true));
|
|
581
562
|
return this._oTimezonePopup;
|
|
582
563
|
}
|
|
583
564
|
|
|
@@ -659,7 +640,7 @@ sap.ui.define([
|
|
|
659
640
|
|
|
660
641
|
if (bDisplayFormat || !this._getTimezone() ||
|
|
661
642
|
(oBindingType && !oBindingType.isA(["sap.ui.model.odata.type.DateTimeWithTimezone"]))) {
|
|
662
|
-
oFormatOptions.showTimezone =
|
|
643
|
+
oFormatOptions.showTimezone = false;
|
|
663
644
|
}
|
|
664
645
|
|
|
665
646
|
if (oFormatOptions.relative === undefined) {
|
|
@@ -703,7 +684,7 @@ sap.ui.define([
|
|
|
703
684
|
oBindingType = oBinding && oBinding.getType();
|
|
704
685
|
|
|
705
686
|
if (this.getShowTimezone() === undefined && oBindingType && oBindingType.isA(["sap.ui.model.odata.type.DateTimeWithTimezone"])) {
|
|
706
|
-
return oBindingType.getFormatOptions().showTimezone !==
|
|
687
|
+
return oBindingType.getFormatOptions().showTimezone !== false;
|
|
707
688
|
}
|
|
708
689
|
|
|
709
690
|
return this.getShowTimezone();
|
|
@@ -804,12 +785,24 @@ sap.ui.define([
|
|
|
804
785
|
|
|
805
786
|
DateTimePicker.prototype._getFallbackParser = function() {
|
|
806
787
|
if (!this._fallbackParser) {
|
|
807
|
-
this._fallbackParser = DateFormat.getDateTimeWithTimezoneInstance({
|
|
788
|
+
this._fallbackParser = DateFormat.getDateTimeWithTimezoneInstance({
|
|
789
|
+
showDate: false,
|
|
790
|
+
showTime: false,
|
|
791
|
+
showTimezone: true
|
|
792
|
+
});
|
|
808
793
|
}
|
|
809
794
|
|
|
810
795
|
return this._fallbackParser;
|
|
811
796
|
};
|
|
812
797
|
|
|
798
|
+
DateTimePicker.prototype._getPickerParser = function() {
|
|
799
|
+
if (!this._clocksParser) {
|
|
800
|
+
this._clocksParser = DateFormat.getDateTimeWithTimezoneInstance({ showTimezone: false });
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
return this._clocksParser;
|
|
804
|
+
};
|
|
805
|
+
|
|
813
806
|
DateTimePicker.prototype._getLocaleBasedPattern = function(sPlaceholder) {
|
|
814
807
|
var oLocaleData = LocaleData.getInstance(
|
|
815
808
|
Core.getConfiguration().getFormatSettings().getFormatLocale()
|
|
@@ -966,6 +959,10 @@ sap.ui.define([
|
|
|
966
959
|
this._oOKButton.setEnabled(false);
|
|
967
960
|
}
|
|
968
961
|
|
|
962
|
+
// convert the date to local date for the calendar and the clocks
|
|
963
|
+
sFormattedDate = this._getPickerParser().format(oDate, this._getTimezone(true));
|
|
964
|
+
oDate = this._getPickerParser().parse(sFormattedDate, TimezoneUtil.getLocalTimezone())[0];
|
|
965
|
+
|
|
969
966
|
this._oCalendar.focusDate(oDate);
|
|
970
967
|
|
|
971
968
|
if (bDateFound) {
|
|
@@ -974,17 +971,17 @@ sap.ui.define([
|
|
|
974
971
|
}
|
|
975
972
|
}
|
|
976
973
|
|
|
977
|
-
sFormattedDate = this._formatValue(oDate, false);
|
|
978
|
-
oDate = this._parseValue(sFormattedDate, true, Core.getConfiguration().getTimezone());
|
|
979
974
|
this._oClocks._setTimeValues(oDate);
|
|
980
975
|
};
|
|
981
976
|
|
|
982
977
|
DateTimePicker.prototype._getSelectedDate = function(){
|
|
983
|
-
|
|
984
978
|
var oDate = DatePicker.prototype._getSelectedDate.apply(this, arguments),
|
|
985
979
|
sFormattedDate;
|
|
986
980
|
|
|
987
981
|
if (oDate) {
|
|
982
|
+
sFormattedDate = this._getPickerParser().format(oDate, TimezoneUtil.getLocalTimezone());
|
|
983
|
+
oDate = this._getPickerParser().parse(sFormattedDate, this._getTimezone(true))[0];
|
|
984
|
+
|
|
988
985
|
var oDateTime = this._oClocks.getTimeValues();
|
|
989
986
|
var sPattern = this._oClocks._getDisplayFormatPattern();
|
|
990
987
|
if (sPattern.search("h") >= 0 || sPattern.search("H") >= 0) {
|
|
@@ -1004,9 +1001,6 @@ sap.ui.define([
|
|
|
1004
1001
|
}
|
|
1005
1002
|
}
|
|
1006
1003
|
|
|
1007
|
-
sFormattedDate = this._formatValue(oDate, false, Core.getConfiguration().getTimezone());
|
|
1008
|
-
oDate = this._parseValue(sFormattedDate, true, this._getTimezone(true));
|
|
1009
|
-
|
|
1010
1004
|
return oDate;
|
|
1011
1005
|
};
|
|
1012
1006
|
|
|
@@ -1053,12 +1047,11 @@ sap.ui.define([
|
|
|
1053
1047
|
} else {
|
|
1054
1048
|
oSwitcher.setVisible(false);
|
|
1055
1049
|
oClocks.$().css("display", "");
|
|
1056
|
-
oCalendar.$().css("display", "");
|
|
1050
|
+
oCalendar.$().css("display", "flex");
|
|
1057
1051
|
}
|
|
1058
1052
|
};
|
|
1059
1053
|
|
|
1060
1054
|
function _handleAfterOpen(oEvent){
|
|
1061
|
-
this.$("inner").attr("aria-expanded", true);
|
|
1062
1055
|
this._oCalendar.focus();
|
|
1063
1056
|
|
|
1064
1057
|
Device.media.attachHandler(this._handleWindowResize, this);
|
|
@@ -1066,7 +1059,6 @@ sap.ui.define([
|
|
|
1066
1059
|
|
|
1067
1060
|
function _handleAfterClose(){
|
|
1068
1061
|
this.removeStyleClass(InputBase.ICON_PRESSED_CSS_CLASS);
|
|
1069
|
-
this.$("inner").attr("aria-expanded", false);
|
|
1070
1062
|
|
|
1071
1063
|
this._oCalendar._closePickers();
|
|
1072
1064
|
Device.media.detachHandler(this._handleWindowResize, this);
|
|
@@ -1108,15 +1100,9 @@ sap.ui.define([
|
|
|
1108
1100
|
}
|
|
1109
1101
|
|
|
1110
1102
|
function _handleCalendarSelect(oEvent) {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
this._oPopupContent.getCalendar().getAggregation("month")[0].removeEventDelegate(oDelegate, this);
|
|
1114
|
-
this._oPopupContent.switchToTime();
|
|
1115
|
-
this._oPopupContent.getClocks()._focusActiveButton();
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1103
|
+
this._oPopupContent.switchToTime();
|
|
1104
|
+
this._oPopupContent.getClocks()._focusActiveButton();
|
|
1118
1105
|
this._oOKButton.setEnabled(true);
|
|
1119
|
-
this._oPopupContent.getCalendar().getAggregation("month")[0].addEventDelegate(oDelegate, this);
|
|
1120
1106
|
}
|
|
1121
1107
|
|
|
1122
1108
|
return DateTimePicker;
|
|
@@ -62,8 +62,8 @@ sap.ui.define(['sap/ui/core/Renderer', './DatePickerRenderer', './InputBaseRende
|
|
|
62
62
|
|
|
63
63
|
// try to choose the date that is the longest when formatted
|
|
64
64
|
oRm.text(oControl._getFormatter(true).format(
|
|
65
|
-
new Date(2000, 10, 20, 10, 10, 10),
|
|
66
|
-
|
|
65
|
+
new Date(Date.UTC(2000, 10, 20, 10, 10, 10)),
|
|
66
|
+
"UTC"));
|
|
67
67
|
oRm.close("span");
|
|
68
68
|
};
|
|
69
69
|
|
package/src/sap/m/Dialog.js
CHANGED
|
@@ -164,7 +164,7 @@ function(
|
|
|
164
164
|
* <li>If the <code>contentWidth</code> and/or <code>contentHeight</code> properties are set, the Dialog will try to fill those sizes.</li>
|
|
165
165
|
* <li>If there is no specific sizing, the Dialog will try to adjust its size to its content.</li>
|
|
166
166
|
* </ul>
|
|
167
|
-
* When using the <code>sap.m.Dialog</code> in SAP Quartz themes, the breakpoints and layout paddings could be determined by the Dialog's width. To enable this concept and add responsive paddings to an element of the Dialog control, you have to add the following classes depending on your use case: <code>sapUiResponsivePadding--header</code>, <code>sapUiResponsivePadding--subHeader</code>, <code>sapUiResponsivePadding--content</code>, <code>sapUiResponsivePadding--footer</code>.
|
|
167
|
+
* When using the <code>sap.m.Dialog</code> in SAP Quartz and Horizon themes, the breakpoints and layout paddings could be determined by the Dialog's width. To enable this concept and add responsive paddings to an element of the Dialog control, you have to add the following classes depending on your use case: <code>sapUiResponsivePadding--header</code>, <code>sapUiResponsivePadding--subHeader</code>, <code>sapUiResponsivePadding--content</code>, <code>sapUiResponsivePadding--footer</code>.
|
|
168
168
|
* <h4>Smartphones</h4>
|
|
169
169
|
* If the Dialog has one or two actions, they will cover the entire footer. If there are more actions, they will overflow.
|
|
170
170
|
* <h4>Tablets</h4>
|
|
@@ -175,7 +175,7 @@ function(
|
|
|
175
175
|
*
|
|
176
176
|
* @implements sap.ui.core.PopupInterface
|
|
177
177
|
* @author SAP SE
|
|
178
|
-
* @version 1.
|
|
178
|
+
* @version 1.101.0
|
|
179
179
|
*
|
|
180
180
|
* @constructor
|
|
181
181
|
* @public
|
|
@@ -325,13 +325,23 @@ function(
|
|
|
325
325
|
customHeader: {type: "sap.m.IBar", multiple: false},
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
* The button which is rendered to the left side (right side in RTL mode) of the <code>endButton</code> in the footer area inside the Dialog.
|
|
328
|
+
* The button which is rendered to the left side (right side in RTL mode) of the <code>endButton</code> in the footer area inside the Dialog.
|
|
329
|
+
* As of version 1.21.1, there's a new aggregation <code>buttons</code> created with which more than 2 buttons can be added to the footer area of the Dialog.
|
|
330
|
+
* If the new <code>buttons</code> aggregation is set, any change made to this aggregation has no effect anymore.
|
|
331
|
+
* With the Belize themes when running on a phone, this <code>button</code> (and the <code>endButton</code> together when set) is (are) rendered at the center of the footer area.
|
|
332
|
+
* While with the Quartz themes when running on a phone, this <code>button</code> (and the <code>endButton</code> together when set) is (are) rendered on the right side of the footer area.
|
|
333
|
+
* When running on other platforms, this <code>button</code> (and the <code>endButton</code> together when set) is (are) rendered at the right side (left side in RTL mode) of the footer area.
|
|
329
334
|
* @since 1.15.1
|
|
330
335
|
*/
|
|
331
336
|
beginButton: {type: "sap.m.Button", multiple: false},
|
|
332
337
|
|
|
333
338
|
/**
|
|
334
|
-
* The button which is rendered to the right side (left side in RTL mode) of the <code>beginButton</code> in the footer area inside the Dialog.
|
|
339
|
+
* The button which is rendered to the right side (left side in RTL mode) of the <code>beginButton</code> in the footer area inside the Dialog.
|
|
340
|
+
* As of version 1.21.1, there's a new aggregation <code>buttons</code> created with which more than 2 buttons can be added to the footer area of Dialog.
|
|
341
|
+
* If the new <code>buttons</code> aggregation is set, any change made to this aggregation has no effect anymore.
|
|
342
|
+
* With the Belize themes when running on a phone, this <code>button</code> (and the <code>beginButton</code> together when set) is (are) rendered at the center of the footer area.
|
|
343
|
+
* While with the Quartz themes when running on a phone, this <code>button</code> (and the <code>beginButton</code> together when set) is (are) rendered on the right side of the footer area.
|
|
344
|
+
* When running on other platforms, this <code>button</code> (and the <code>beginButton</code> together when set) is (are) rendered at the right side (left side in RTL mode) of the footer area.
|
|
335
345
|
* @since 1.15.1
|
|
336
346
|
*/
|
|
337
347
|
endButton: {type: "sap.m.Button", multiple: false},
|
|
@@ -550,10 +560,13 @@ function(
|
|
|
550
560
|
this._createToolbarButtons();
|
|
551
561
|
|
|
552
562
|
if (Core.getConfiguration().getAccessibility() && this.getState() != ValueState.None) {
|
|
553
|
-
|
|
563
|
+
if (!this._oValueState) {
|
|
564
|
+
this._oValueState = new InvisibleText();
|
|
554
565
|
|
|
555
|
-
|
|
556
|
-
|
|
566
|
+
this.setAggregation("_valueState", this._oValueState);
|
|
567
|
+
this.addAriaLabelledBy(this._oValueState.getId());
|
|
568
|
+
}
|
|
569
|
+
this._oValueState.setText(this.getValueStateString(this.getState()));
|
|
557
570
|
}
|
|
558
571
|
|
|
559
572
|
// title alignment
|
package/src/sap/m/DynamicDate.js
CHANGED
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @extends sap.ui.core.Element
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.101.0
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
* @since 1.92
|
|
@@ -100,7 +100,7 @@ sap.ui.define([
|
|
|
100
100
|
* @public
|
|
101
101
|
*/
|
|
102
102
|
DynamicDateOption.prototype.createValueHelpUI = function(oControl, fnControlsUpdated) {
|
|
103
|
-
var oValue = oControl.getValue(),
|
|
103
|
+
var oValue = oControl.getValue() && Object.assign({}, oControl.getValue()),
|
|
104
104
|
aParams = this.getValueHelpUITypes(oControl),
|
|
105
105
|
valueHelpUiTypesCount = aParams.length,
|
|
106
106
|
aControls = [],
|
|
@@ -111,6 +111,16 @@ sap.ui.define([
|
|
|
111
111
|
}
|
|
112
112
|
oControl.aControlsByParameters[this.getKey()] = [];
|
|
113
113
|
|
|
114
|
+
if (oValue && oValue.values) {
|
|
115
|
+
oValue.values = oValue.values.map(function(val) {
|
|
116
|
+
if (val instanceof Date) {
|
|
117
|
+
return oControl._reverseConvertDate(val);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return val;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
114
124
|
for (var i = 0; i < aParams.length; i++) {
|
|
115
125
|
if (aParams[i].getText()) {
|
|
116
126
|
aControls.push(
|
|
@@ -19,6 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
'sap/ui/core/Icon',
|
|
20
20
|
"sap/ui/core/LabelEnablement",
|
|
21
21
|
'sap/ui/core/format/DateFormat',
|
|
22
|
+
'sap/ui/core/format/TimezoneUtil',
|
|
22
23
|
'sap/ui/base/ManagedObjectObserver',
|
|
23
24
|
'sap/ui/Device',
|
|
24
25
|
'./Label',
|
|
@@ -52,6 +53,7 @@ sap.ui.define([
|
|
|
52
53
|
Icon,
|
|
53
54
|
LabelEnablement,
|
|
54
55
|
DateFormat,
|
|
56
|
+
TimezoneUtil,
|
|
55
57
|
ManagedObjectObserver,
|
|
56
58
|
Device,
|
|
57
59
|
Label,
|
|
@@ -119,7 +121,7 @@ sap.ui.define([
|
|
|
119
121
|
* is opened. The dialog is closed via a date time period value selection or by pressing the "Cancel" button.
|
|
120
122
|
*
|
|
121
123
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
124
|
+
* @version 1.101.0
|
|
123
125
|
*
|
|
124
126
|
* @constructor
|
|
125
127
|
* @public
|
|
@@ -627,7 +629,9 @@ sap.ui.define([
|
|
|
627
629
|
* @private
|
|
628
630
|
*/
|
|
629
631
|
DynamicDateRange.prototype._addSuggestionItem = function(oSuggestValue) {
|
|
630
|
-
var aResultingDates = DynamicDateUtil.toDates(oSuggestValue)
|
|
632
|
+
var aResultingDates = DynamicDateUtil.toDates(oSuggestValue).map(function(oDate) {
|
|
633
|
+
return this._convertDate(oDate);
|
|
634
|
+
}, this);
|
|
631
635
|
|
|
632
636
|
var oItem = new ListItem({
|
|
633
637
|
text: DynamicDateUtil.getOption(oSuggestValue.operator).format(oSuggestValue, this._getFormatter()),
|
|
@@ -696,7 +700,44 @@ sap.ui.define([
|
|
|
696
700
|
};
|
|
697
701
|
|
|
698
702
|
DynamicDateRange.prototype._toDatesString = function(oValue) {
|
|
699
|
-
|
|
703
|
+
var aDates = DynamicDateUtil.toDates(oValue).map(function(oDate) {
|
|
704
|
+
return this._convertDate(oDate);
|
|
705
|
+
}, this);
|
|
706
|
+
|
|
707
|
+
return this._getDatesLabelFormatter().format(aDates);
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
DynamicDateRange.prototype._convertDate = function(oDate) {
|
|
711
|
+
var sFormattedDate = this._getPickerParser().format(oDate, TimezoneUtil.getLocalTimezone());
|
|
712
|
+
var oParts = this._getPickerParser().parse(
|
|
713
|
+
sFormattedDate,
|
|
714
|
+
sap.ui.getCore().getConfiguration().getTimezone()
|
|
715
|
+
);
|
|
716
|
+
var oNewDate = oParts ? new Date(oParts[0].getTime()) : oParts;
|
|
717
|
+
|
|
718
|
+
return oNewDate;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
DynamicDateRange.prototype._reverseConvertDate = function(oDate) {
|
|
722
|
+
var sFormattedDate = this._getPickerParser().format(
|
|
723
|
+
oDate,
|
|
724
|
+
sap.ui.getCore().getConfiguration().getTimezone()
|
|
725
|
+
);
|
|
726
|
+
var oParts = this._getPickerParser().parse(
|
|
727
|
+
sFormattedDate,
|
|
728
|
+
TimezoneUtil.getLocalTimezone()
|
|
729
|
+
);
|
|
730
|
+
var oNewDate = oParts ? new Date(oParts[0].getTime()) : oParts;
|
|
731
|
+
|
|
732
|
+
return oNewDate;
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
DynamicDateRange.prototype._getPickerParser = function() {
|
|
736
|
+
if (!this._calendarParser) {
|
|
737
|
+
this._calendarParser = DateFormat.getDateTimeWithTimezoneInstance({ showTimezone: false });
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
return this._calendarParser;
|
|
700
741
|
};
|
|
701
742
|
|
|
702
743
|
DynamicDateRange.prototype._createPopup = function() {
|
|
@@ -918,7 +959,10 @@ sap.ui.define([
|
|
|
918
959
|
return;
|
|
919
960
|
}
|
|
920
961
|
|
|
921
|
-
aResultDates = DynamicDateUtil.toDates(oOutputValue)
|
|
962
|
+
aResultDates = DynamicDateUtil.toDates(oOutputValue).map(function(oDate) {
|
|
963
|
+
return this._convertDate(oDate);
|
|
964
|
+
}, this);
|
|
965
|
+
|
|
922
966
|
if (aResultDates) {
|
|
923
967
|
if (this._oSelectedOption.getKey() === "FROMDATETIME" || this._oSelectedOption.getKey() === "TODATETIME"
|
|
924
968
|
|| this._oSelectedOption.getKey() === "FROM" || this._oSelectedOption.getKey() === "TO") {
|
|
@@ -1132,6 +1176,14 @@ sap.ui.define([
|
|
|
1132
1176
|
DynamicDateRange.prototype._applyValue = function() {
|
|
1133
1177
|
this._oOutput = this._oSelectedOption.getValueHelpOutput(this);
|
|
1134
1178
|
|
|
1179
|
+
this._oOutput.values = this._oOutput.values.map(function(val) {
|
|
1180
|
+
if (val instanceof Date) {
|
|
1181
|
+
return this._convertDate(val);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
return val;
|
|
1185
|
+
}, this);
|
|
1186
|
+
|
|
1135
1187
|
var prevValue = this.getValue();
|
|
1136
1188
|
this.setValue(this._oOutput);
|
|
1137
1189
|
this.fireChange({ prevValue: prevValue, value: this.getValue(), valid: true });
|
|
@@ -1228,16 +1280,6 @@ sap.ui.define([
|
|
|
1228
1280
|
var DynamicDateRangeInputRenderer = Renderer.extend(InputRenderer);
|
|
1229
1281
|
DynamicDateRangeInputRenderer.apiVersion = 2;
|
|
1230
1282
|
|
|
1231
|
-
/**
|
|
1232
|
-
* Returns ARIA accessibility role for the control.
|
|
1233
|
-
*
|
|
1234
|
-
* @param {sap.ui.core.Control} oControl an object representation of the control
|
|
1235
|
-
* @returns {string}
|
|
1236
|
-
*/
|
|
1237
|
-
DynamicDateRangeInputRenderer.getAriaRole = function(oControl) {
|
|
1238
|
-
return "combobox";
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
1283
|
DynamicDateRangeInputRenderer.writeInnerAttributes = function(oRm, oControl) {
|
|
1242
1284
|
oRm.attr("type", "text");
|
|
1243
1285
|
};
|
|
@@ -1272,7 +1314,6 @@ sap.ui.define([
|
|
|
1272
1314
|
|
|
1273
1315
|
mAccessibilityState.roledescription = oResourceBundle.getText("ACC_CTR_TYPE_DYNAMIC_DATE_RANGE");
|
|
1274
1316
|
mAccessibilityState.role = this.getAriaRole();
|
|
1275
|
-
mAccessibilityState.expanded = oDynamicDateRange._oPopup ? oDynamicDateRange._oPopup.isOpen() : false;
|
|
1276
1317
|
mAccessibilityState.haspopup = coreLibrary.aria.HasPopup.ListBox.toLowerCase();
|
|
1277
1318
|
mAccessibilityState.autocomplete = "list";
|
|
1278
1319
|
mAccessibilityState.controls = oDynamicDateRange._oPopup && oDynamicDateRange._oPopup.getDomRef() ?
|
package/src/sap/m/FacetFilter.js
CHANGED
|
@@ -20,7 +20,7 @@ sap.ui.define(['./ListItemBase', './library', './FacetFilterItemRenderer'],
|
|
|
20
20
|
* @class
|
|
21
21
|
* Represents a value for the {@link sap.m.FacetFilterList} control.
|
|
22
22
|
* @extends sap.m.ListItemBase
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.101.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|