@openui5/sap.m 1.133.0 → 1.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +0 -7
- package/THIRDPARTY.txt +1 -22
- 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/ActionTile.js +1 -1
- package/src/sap/m/ActionTileContent.js +20 -1
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +2 -2
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +20 -7
- 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/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/ContentConfig.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 +14 -6
- package/src/sap/m/DateRangeSelection.js +12 -23
- package/src/sap/m/DateTimeField.js +15 -2
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/Dialog.js +11 -25
- 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 +1 -1
- package/src/sap/m/DynamicDateRange.js +1 -1
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +24 -2
- package/src/sap/m/FlexBoxRenderer.js +16 -0
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +12 -3
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +33 -2
- package/src/sap/m/GenericTileRenderer.js +1 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +1 -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 +1 -1
- 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/LinkTileContent.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +5 -3
- package/src/sap/m/ListItemBase.js +1 -1
- 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 +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuItemGroup.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +7 -3
- package/src/sap/m/MessageListItemRenderer.js +34 -0
- 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 +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +22 -6
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +9 -4
- package/src/sap/m/NavContainer.js +1 -1
- 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 +1 -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 +1 -1
- 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 +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +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 +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +1 -1
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- 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 +1 -1
- 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 +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 +3 -3
- package/src/sap/m/SelectDialog.js +4 -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 +43 -41
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +2 -1
- 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 +5 -5
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +23 -6
- 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 +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- 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 +1 -1
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +3 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TileInfo.js +1 -1
- package/src/sap/m/TimePicker.js +3 -3
- package/src/sap/m/TimePickerClock.js +85 -176
- package/src/sap/m/TimePickerClockRenderer.js +67 -63
- package/src/sap/m/TimePickerClocks.js +105 -49
- package/src/sap/m/TimePickerInputs.js +4 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +38 -5
- 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/VariantManagement.js +4 -0
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- 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/delegate/ValueStateMessage.js +0 -6
- package/src/sap/m/library.js +2 -2
- package/src/sap/m/messagebundle.properties +13 -7
- package/src/sap/m/messagebundle_ar.properties +11 -1
- package/src/sap/m/messagebundle_bg.properties +28 -18
- package/src/sap/m/messagebundle_ca.properties +11 -1
- package/src/sap/m/messagebundle_cnr.properties +12 -2
- package/src/sap/m/messagebundle_cs.properties +13 -3
- package/src/sap/m/messagebundle_cy.properties +12 -2
- package/src/sap/m/messagebundle_da.properties +11 -1
- package/src/sap/m/messagebundle_de.properties +11 -1
- package/src/sap/m/messagebundle_el.properties +13 -3
- package/src/sap/m/messagebundle_en.properties +8 -4
- package/src/sap/m/messagebundle_en_GB.properties +12 -2
- package/src/sap/m/messagebundle_en_US_saprigi.properties +10 -4
- package/src/sap/m/messagebundle_es.properties +12 -2
- package/src/sap/m/messagebundle_es_MX.properties +21 -11
- package/src/sap/m/messagebundle_et.properties +10 -0
- package/src/sap/m/messagebundle_fi.properties +11 -1
- package/src/sap/m/messagebundle_fr.properties +12 -2
- package/src/sap/m/messagebundle_fr_CA.properties +11 -1
- package/src/sap/m/messagebundle_hi.properties +11 -1
- package/src/sap/m/messagebundle_hr.properties +12 -2
- package/src/sap/m/messagebundle_hu.properties +13 -3
- package/src/sap/m/messagebundle_id.properties +12 -2
- package/src/sap/m/messagebundle_it.properties +12 -2
- package/src/sap/m/messagebundle_iw.properties +11 -1
- package/src/sap/m/messagebundle_ja.properties +11 -1
- package/src/sap/m/messagebundle_kk.properties +17 -7
- package/src/sap/m/messagebundle_ko.properties +12 -2
- package/src/sap/m/messagebundle_lt.properties +13 -3
- package/src/sap/m/messagebundle_lv.properties +12 -2
- package/src/sap/m/messagebundle_mk.properties +11 -1
- package/src/sap/m/messagebundle_ms.properties +12 -2
- package/src/sap/m/messagebundle_nl.properties +11 -1
- package/src/sap/m/messagebundle_no.properties +11 -1
- package/src/sap/m/messagebundle_pl.properties +11 -1
- package/src/sap/m/messagebundle_pt.properties +11 -1
- package/src/sap/m/messagebundle_pt_PT.properties +11 -1
- package/src/sap/m/messagebundle_ro.properties +11 -1
- package/src/sap/m/messagebundle_ru.properties +11 -1
- package/src/sap/m/messagebundle_sh.properties +12 -2
- package/src/sap/m/messagebundle_sk.properties +11 -1
- package/src/sap/m/messagebundle_sl.properties +19 -9
- package/src/sap/m/messagebundle_sr.properties +12 -2
- package/src/sap/m/messagebundle_sv.properties +7 -3
- package/src/sap/m/messagebundle_th.properties +11 -1
- package/src/sap/m/messagebundle_tr.properties +11 -1
- package/src/sap/m/messagebundle_uk.properties +11 -1
- package/src/sap/m/messagebundle_vi.properties +13 -3
- package/src/sap/m/messagebundle_zh_CN.properties +11 -1
- package/src/sap/m/messagebundle_zh_TW.properties +11 -1
- 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 +3 -2
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +13 -4
- package/src/sap/m/p13n/FilterController.js +1 -1
- package/src/sap/m/p13n/FilterPanel.js +1 -1
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/MessageStrip.js +1 -1
- package/src/sap/m/p13n/Popup.js +1 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +12 -2
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +1 -1
- package/src/sap/m/plugins/CellSelector.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
- package/src/sap/m/plugins/CopyProvider.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/plugins/UploadSetwithTable.js +412 -400
- 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 +1 -1
- 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/ColumnWidthController.js +17 -2
- package/src/sap/m/table/Util.js +1 -1
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +19 -8
- package/src/sap/m/table/columnmenu/MenuBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionItem.js +3 -2
- package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/ActionTile.less +3 -3
- package/src/sap/m/themes/base/GenericTile.less +18 -16
- package/src/sap/m/themes/base/ImageContent.less +1 -1
- package/src/sap/m/themes/base/MessageToast.less +3 -3
- package/src/sap/m/themes/base/MessageView.less +19 -3
- package/src/sap/m/themes/base/NumericContent.less +4 -4
- package/src/sap/m/themes/base/ObjectStatus.less +29 -29
- package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +10 -2
- package/src/sap/m/themes/base/SplitButton.less +7 -3
- package/src/sap/m/themes/base/StandardTile.less +15 -15
- package/src/sap/m/themes/base/StandardTreeItem.less +1 -1
- package/src/sap/m/themes/base/StepInput.less +5 -2
- package/src/sap/m/themes/base/SuggestionsPopover.less +18 -16
- package/src/sap/m/themes/base/Switch.less +41 -98
- package/src/sap/m/themes/base/TabContainer.less +13 -10
- package/src/sap/m/themes/base/TabStrip.less +78 -46
- package/src/sap/m/themes/base/Table.less +53 -44
- package/src/sap/m/themes/base/TablePersoDialog.less +20 -20
- package/src/sap/m/themes/base/Text.less +22 -17
- package/src/sap/m/themes/base/TextArea.less +45 -17
- package/src/sap/m/themes/base/Tile.less +11 -15
- package/src/sap/m/themes/base/TileContainer.less +30 -37
- package/src/sap/m/themes/base/TileContent.less +2 -1
- package/src/sap/m/themes/base/TimePickerClock.less +231 -5
- package/src/sap/m/themes/base/TimePickerClocks.less +4 -0
- package/src/sap/m/themes/base/ToggleButton.less +40 -31
- package/src/sap/m/themes/base/ValueStateMessage.less +1 -0
- package/src/sap/m/themes/base/ViewSettingsDialog.less +30 -8
- package/src/sap/m/themes/base/WheelSlider.less +121 -43
- package/src/sap/m/themes/base/WheelSliderContainer.less +12 -5
- package/src/sap/m/upload/ActionsPlaceholder.js +1 -1
- package/src/sap/m/upload/Column.js +1 -1
- package/src/sap/m/upload/FilePreviewDialog.js +5 -4
- package/src/sap/m/upload/FilterPanel.js +1 -0
- package/src/sap/m/upload/UploadItem.js +52 -1
- package/src/sap/m/upload/UploadItemConfiguration.js +1 -1
- package/src/sap/m/upload/UploadSet.js +1 -1
- package/src/sap/m/upload/UploadSetItem.js +1 -1
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploaderTableItem.js +39 -1
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
package/src/sap/m/TextArea.js
CHANGED
package/src/sap/m/Tile.js
CHANGED
package/src/sap/m/TileContent.js
CHANGED
package/src/sap/m/TileInfo.js
CHANGED
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @class This element is used within the GenericTile control that generates a combination of an icon and a text to create a TileInfo
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.134.0
|
|
21
21
|
* @constructor
|
|
22
22
|
* @public
|
|
23
23
|
* @since 1.124
|
package/src/sap/m/TimePicker.js
CHANGED
|
@@ -181,7 +181,7 @@ function(
|
|
|
181
181
|
* @extends sap.m.DateTimeField
|
|
182
182
|
*
|
|
183
183
|
* @author SAP SE
|
|
184
|
-
* @version 1.
|
|
184
|
+
* @version 1.134.0
|
|
185
185
|
*
|
|
186
186
|
* @constructor
|
|
187
187
|
* @public
|
|
@@ -679,6 +679,7 @@ function(
|
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
oClocks._setTimeValues(oDateValue, TimePickerInternals._isHoursValue24(this._$input.val(), iIndexOfHH, iIndexOfH));
|
|
682
|
+
oClocks.prepareForOpen();
|
|
682
683
|
|
|
683
684
|
/* Mark input as active */
|
|
684
685
|
this.$().addClass(InputBase.ICON_PRESSED_CSS_CLASS);
|
|
@@ -694,9 +695,9 @@ function(
|
|
|
694
695
|
var oClocks = this._getClocks();
|
|
695
696
|
|
|
696
697
|
if (oClocks) {
|
|
697
|
-
oClocks.showFirstClock();
|
|
698
698
|
oClocks._focusActiveButton();
|
|
699
699
|
}
|
|
700
|
+
|
|
700
701
|
this.fireAfterValueHelpOpen();
|
|
701
702
|
};
|
|
702
703
|
|
|
@@ -708,7 +709,6 @@ function(
|
|
|
708
709
|
*/
|
|
709
710
|
TimePicker.prototype.onAfterClose = function() {
|
|
710
711
|
this.$().removeClass(InputBase.ICON_PRESSED_CSS_CLASS);
|
|
711
|
-
this._getClocks().showFirstClock(); // prepare for the next opening
|
|
712
712
|
this.fireAfterValueHelpClose();
|
|
713
713
|
};
|
|
714
714
|
|
|
@@ -15,9 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
function(Control, Configuration, TimePickerClockRenderer, Device, ControlBehavior, jQuery) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
ANIMATION_DELAY_EVENT = 100, // delay before firing the event
|
|
20
|
-
LONG_TOUCH_DURATION = 1000; // duration for long-touch interaction
|
|
18
|
+
var LONG_TOUCH_DURATION = 1000; // duration for long-touch interaction
|
|
21
19
|
|
|
22
20
|
/**
|
|
23
21
|
* Constructor for a new <code>TimePickerClock</code>.
|
|
@@ -30,7 +28,7 @@ sap.ui.define([
|
|
|
30
28
|
* @extends sap.ui.core.Control
|
|
31
29
|
*
|
|
32
30
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
31
|
+
* @version 1.134.0
|
|
34
32
|
*
|
|
35
33
|
* @constructor
|
|
36
34
|
* @private
|
|
@@ -45,42 +43,49 @@ sap.ui.define([
|
|
|
45
43
|
* If set to <code>true</code>, the clock is interactive.
|
|
46
44
|
*/
|
|
47
45
|
enabled : {type : "boolean", group : "Misc", defaultValue : true},
|
|
46
|
+
|
|
48
47
|
/**
|
|
49
48
|
* Minimum item value for the outer circle.
|
|
50
49
|
*/
|
|
51
50
|
itemMin: {type: "int", group: "Data", defaultValue: -1},
|
|
51
|
+
|
|
52
52
|
/**
|
|
53
53
|
* Maximum item value for the outer circle.
|
|
54
54
|
*/
|
|
55
55
|
itemMax: {type: "int", group: "Data", defaultValue: -1},
|
|
56
|
-
|
|
57
|
-
* If set to <code>true</code>, an inner circle is displayed. The first item value of the inner circle will be itemMax + 1
|
|
58
|
-
*/
|
|
59
|
-
innerItems: {type: "boolean", group: "Appearance", defaultValue: false},
|
|
56
|
+
|
|
60
57
|
/**
|
|
61
58
|
* Label of the clock dial - for example, 'Hours', 'Minutes', or 'Seconds'.
|
|
62
59
|
*/
|
|
63
60
|
label: {type: "string", group: "Appearance", defaultValue: null},
|
|
61
|
+
|
|
64
62
|
/**
|
|
65
63
|
* If set to <code>true</code>, a surrounding circle with markers (dots) will be displayed
|
|
66
64
|
* (for example, on the 'Minutes' clock-dial, markers represent minutes)
|
|
67
65
|
*/
|
|
68
66
|
fractions: {type: "boolean", group: "Appearance", defaultValue: true},
|
|
67
|
+
|
|
69
68
|
/**
|
|
70
|
-
* If provided, this will replace the last item displayed.
|
|
71
|
-
* the last item from outer circle will be replaced; if there is an inner circle too, the last
|
|
72
|
-
* item of inner circle will be replaced. Usually, the last item '24' is replaced with '0'.
|
|
69
|
+
* If provided, this will replace the last item displayed. Usually, the last item '24' or '60' is replaced with '0'.
|
|
73
70
|
* Do not replace the last item if <code>support2400</code> is set to <code>true</code>.
|
|
74
71
|
*/
|
|
75
72
|
lastItemReplacement: {type: "int", group: "Data", defaultValue: -1},
|
|
73
|
+
|
|
76
74
|
/**
|
|
77
75
|
* Prepend with zero flag. If <code>true</code>, values less than 10 will be prepend with 0.
|
|
78
76
|
*/
|
|
79
77
|
prependZero: {type: "boolean", group: "Appearance", defaultValue: false},
|
|
78
|
+
|
|
80
79
|
/**
|
|
81
80
|
* The currently selected value of the clock.
|
|
82
81
|
*/
|
|
83
82
|
selectedValue: {type: "int", group: "Data", defaultValue: -1},
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The currently hovered value of the clock.
|
|
86
|
+
*/
|
|
87
|
+
hoveredValue: {type: "int", group: "Data", defaultValue: -1},
|
|
88
|
+
|
|
84
89
|
/**
|
|
85
90
|
* The step for displaying of one unit of items.
|
|
86
91
|
* 1 means 1/60 of the circle.
|
|
@@ -88,6 +93,7 @@ sap.ui.define([
|
|
|
88
93
|
* For hours the display step must be set to 1.
|
|
89
94
|
*/
|
|
90
95
|
displayStep: {type: "int", group: "Data", defaultValue: 5},
|
|
96
|
+
|
|
91
97
|
/**
|
|
92
98
|
* The step for selection of items.
|
|
93
99
|
* 1 means 1 unit:
|
|
@@ -95,6 +101,7 @@ sap.ui.define([
|
|
|
95
101
|
* - if the clock displays minutes/seconds - 1 unit = 1 minute/second
|
|
96
102
|
*/
|
|
97
103
|
valueStep: {type: "int", group: "Data", defaultValue: 1},
|
|
104
|
+
|
|
98
105
|
/**
|
|
99
106
|
* Allows to set a value of 24:00, used to indicate the end of the day.
|
|
100
107
|
* Works only with HH or H formats. Don't use it together with am/pm.
|
|
@@ -110,7 +117,24 @@ sap.ui.define([
|
|
|
110
117
|
*
|
|
111
118
|
* - on both device types, if there is a keyboard attached: 24 or 00 can be typed directly.
|
|
112
119
|
*/
|
|
113
|
-
support2400: {type: "boolean", group: "Misc", defaultValue: false}
|
|
120
|
+
support2400: {type: "boolean", group: "Misc", defaultValue: false},
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* When set to <code>true</code>, the clock will be displayed without the animation.
|
|
124
|
+
*/
|
|
125
|
+
skipAnimation: {type: "boolean", group: "Misc", defaultValue: false},
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* When set to <code>true</code>, the clock will fade in from transparent to full opacity, otherwise it will be hidden.
|
|
129
|
+
* If the skipAnimation property is set to <code>true</code>, the clock will fade in without the animation, otherwise
|
|
130
|
+
* the fade in will be animated.
|
|
131
|
+
*/
|
|
132
|
+
fadeIn: {type: "boolean", group: "Misc", defaultValue: false},
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* When set to <code>true</code>, the clock will fade out to transparent
|
|
136
|
+
*/
|
|
137
|
+
fadeOut: {type: "boolean", group: "Misc", defaultValue: false}
|
|
114
138
|
},
|
|
115
139
|
events: {
|
|
116
140
|
/**
|
|
@@ -147,8 +171,7 @@ sap.ui.define([
|
|
|
147
171
|
*/
|
|
148
172
|
TimePickerClock.prototype.init = function() {
|
|
149
173
|
this._onMouseWheel = this._onMouseWheel.bind(this);
|
|
150
|
-
this.
|
|
151
|
-
this._iPrevHoveredValue = -1;
|
|
174
|
+
this._bFinalChange = false;
|
|
152
175
|
};
|
|
153
176
|
|
|
154
177
|
/**
|
|
@@ -197,7 +220,6 @@ sap.ui.define([
|
|
|
197
220
|
this.invalidate();
|
|
198
221
|
};
|
|
199
222
|
|
|
200
|
-
|
|
201
223
|
/**
|
|
202
224
|
* Value setter.
|
|
203
225
|
*
|
|
@@ -206,7 +228,7 @@ sap.ui.define([
|
|
|
206
228
|
*/
|
|
207
229
|
TimePickerClock.prototype.setSelectedValue = function(iValue) {
|
|
208
230
|
var iReplacement = this.getLastItemReplacement(),
|
|
209
|
-
iMaxValue = this.getItemMax()
|
|
231
|
+
iMaxValue = this.getItemMax();
|
|
210
232
|
|
|
211
233
|
if (!this.getSupport2400()) {
|
|
212
234
|
if (iValue === 0) {
|
|
@@ -218,12 +240,12 @@ sap.ui.define([
|
|
|
218
240
|
}
|
|
219
241
|
|
|
220
242
|
this.setProperty("selectedValue", iValue);
|
|
221
|
-
this.fireChange({value: iValue, stringValue: this._getStringValue(iValue), finalChange:
|
|
243
|
+
this.fireChange({value: iValue, stringValue: this._getStringValue(iValue), finalChange: this._bFinalChange});
|
|
244
|
+
this._bFinalChange = false;
|
|
222
245
|
|
|
223
246
|
return this;
|
|
224
247
|
};
|
|
225
248
|
|
|
226
|
-
|
|
227
249
|
/**
|
|
228
250
|
* Value getter.
|
|
229
251
|
*
|
|
@@ -231,10 +253,9 @@ sap.ui.define([
|
|
|
231
253
|
*/
|
|
232
254
|
TimePickerClock.prototype.getSelectedValue = function() {
|
|
233
255
|
var iValue = this.getProperty("selectedValue"),
|
|
234
|
-
iReplacement = this.getLastItemReplacement()
|
|
235
|
-
iMaxValue = this.getItemMax() * (this.getInnerItems() ? 2 : 1);
|
|
256
|
+
iReplacement = this.getLastItemReplacement();
|
|
236
257
|
|
|
237
|
-
if (this.getSupport2400() && this._get24HoursVisible() && iValue ===
|
|
258
|
+
if (this.getSupport2400() && this._get24HoursVisible() && iValue === this.getItemMax() && iReplacement !== -1) {
|
|
238
259
|
iValue = iReplacement;
|
|
239
260
|
}
|
|
240
261
|
|
|
@@ -388,12 +409,7 @@ sap.ui.define([
|
|
|
388
409
|
* @private
|
|
389
410
|
*/
|
|
390
411
|
TimePickerClock.prototype._onMouseOut = function(oEvent) {
|
|
391
|
-
|
|
392
|
-
oNumber = document.getElementById(sId + "-" + this._iHoveredValue);
|
|
393
|
-
|
|
394
|
-
oNumber && oNumber.classList.remove("sapMTPCNumberHover");
|
|
395
|
-
this._iHoveredValue = -1;
|
|
396
|
-
this._iPrevHoveredValue = -1;
|
|
412
|
+
this.setHoveredValue(-1);
|
|
397
413
|
};
|
|
398
414
|
|
|
399
415
|
/**
|
|
@@ -405,9 +421,8 @@ sap.ui.define([
|
|
|
405
421
|
TimePickerClock.prototype.modifyValue = function(bIncreaseValue) {
|
|
406
422
|
var iSelectedValue = this.getSelectedValue(),
|
|
407
423
|
iReplacementValue = this.getLastItemReplacement(),
|
|
408
|
-
bInnerItems = this.getInnerItems(),
|
|
409
424
|
iMin = this.getItemMin(),
|
|
410
|
-
iMax = this.getItemMax()
|
|
425
|
+
iMax = this.getItemMax(),
|
|
411
426
|
iStep = this.getValueStep(),
|
|
412
427
|
iNewSelectedValue;
|
|
413
428
|
|
|
@@ -465,7 +480,7 @@ sap.ui.define([
|
|
|
465
480
|
*/
|
|
466
481
|
TimePickerClock.prototype._onTouchStart = function(oEvent) {
|
|
467
482
|
this._cancelTouchOut = false;
|
|
468
|
-
if (!this.getEnabled()) {
|
|
483
|
+
if (!this.getEnabled() || (oEvent.type === "mousedown" && oEvent.button !== 0) || this.getFadeOut()) {
|
|
469
484
|
return;
|
|
470
485
|
}
|
|
471
486
|
|
|
@@ -489,10 +504,9 @@ sap.ui.define([
|
|
|
489
504
|
* @private
|
|
490
505
|
*/
|
|
491
506
|
TimePickerClock.prototype._onTouchMove = function(oEvent) {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
507
|
+
if (this.getFadeOut()) {
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
496
510
|
oEvent.preventDefault();
|
|
497
511
|
if (this._mouseOrTouchDown) {
|
|
498
512
|
this._x = oEvent.type === "touchmove" ? oEvent.touches[0].pageX : oEvent.pageX;
|
|
@@ -513,18 +527,6 @@ sap.ui.define([
|
|
|
513
527
|
this._x = oEvent.pageX;
|
|
514
528
|
this._y = oEvent.pageY;
|
|
515
529
|
this._calculatePosition(this._x, this._y);
|
|
516
|
-
iDisplayStep = this.getDisplayStep();
|
|
517
|
-
if (iDisplayStep > 1) {
|
|
518
|
-
this._iHoveredValue = Math.round(this._iHoveredValue / iDisplayStep) * iDisplayStep;
|
|
519
|
-
}
|
|
520
|
-
if (this.getEnabled() && this._iHoveredValue !== this._iPrevHoveredValue) {
|
|
521
|
-
sId = this.getId();
|
|
522
|
-
oNumber = document.getElementById(sId + "-" + this._iPrevHoveredValue);
|
|
523
|
-
oNumber && oNumber.classList.remove("sapMTPCNumberHover");
|
|
524
|
-
this._iPrevHoveredValue = this._iHoveredValue;
|
|
525
|
-
oNumber = document.getElementById(sId + "-" + this._iPrevHoveredValue);
|
|
526
|
-
oNumber && oNumber.classList.add("sapMTPCNumberHover");
|
|
527
|
-
}
|
|
528
530
|
}
|
|
529
531
|
};
|
|
530
532
|
|
|
@@ -535,10 +537,7 @@ sap.ui.define([
|
|
|
535
537
|
* @private
|
|
536
538
|
*/
|
|
537
539
|
TimePickerClock.prototype._onTouchEnd = function(oEvent) {
|
|
538
|
-
|
|
539
|
-
bSkipAnimation = oAnimationMode === Configuration.AnimationMode.none || oAnimationMode === Configuration.AnimationMode.minimal;
|
|
540
|
-
|
|
541
|
-
if (!this._mouseOrTouchDown) {
|
|
540
|
+
if (!this._mouseOrTouchDown || this.getFadeOut()) {
|
|
542
541
|
return;
|
|
543
542
|
}
|
|
544
543
|
|
|
@@ -554,7 +553,8 @@ sap.ui.define([
|
|
|
554
553
|
}
|
|
555
554
|
|
|
556
555
|
if (!this._cancelTouchOut) {
|
|
557
|
-
this.
|
|
556
|
+
this._bFinalChange = true;
|
|
557
|
+
this.setSelectedValue(this._iSelectedValue);
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
|
|
@@ -584,18 +584,6 @@ sap.ui.define([
|
|
|
584
584
|
}.bind(this), LONG_TOUCH_DURATION);
|
|
585
585
|
};
|
|
586
586
|
|
|
587
|
-
/**
|
|
588
|
-
* Returns real maximum value of the clock items depending on existing of inner items.
|
|
589
|
-
*
|
|
590
|
-
* @returns {int} The real maximum value
|
|
591
|
-
* @private
|
|
592
|
-
*/
|
|
593
|
-
TimePickerClock.prototype._getMaxValue = function() {
|
|
594
|
-
var iItemMax = this.getItemMax();
|
|
595
|
-
|
|
596
|
-
return this.getInnerItems() ? iItemMax * 2 : iItemMax;
|
|
597
|
-
};
|
|
598
|
-
|
|
599
587
|
/**
|
|
600
588
|
* Toggles 24 and 0 values when a clock has <code>support2400</code> property set.
|
|
601
589
|
*
|
|
@@ -618,53 +606,22 @@ sap.ui.define([
|
|
|
618
606
|
};
|
|
619
607
|
|
|
620
608
|
/**
|
|
621
|
-
*
|
|
609
|
+
* Returns the number of items in the clock.
|
|
622
610
|
*
|
|
623
|
-
* @param {int} iNewValue the new value that must be set
|
|
624
|
-
* @param {boolean} bSkipAnimation whether to skip the animation
|
|
625
611
|
* @private
|
|
626
612
|
*/
|
|
627
|
-
TimePickerClock.prototype.
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
iMax = this.getItemMax() * (bInnerItems ? 2 : 1),
|
|
631
|
-
iPath1,
|
|
632
|
-
iPath2,
|
|
633
|
-
iDelay,
|
|
634
|
-
iFirstSelected = iOldValue,
|
|
635
|
-
iLastSelected = iNewValue,
|
|
636
|
-
iDirection = 1;
|
|
637
|
-
|
|
638
|
-
if (!bSkipAnimation) {
|
|
639
|
-
// do the animation here
|
|
640
|
-
if (iFirstSelected < iLastSelected) {
|
|
641
|
-
iPath1 = iLastSelected - iFirstSelected;
|
|
642
|
-
iPath2 = iMax - iPath1;
|
|
643
|
-
if (iPath2 < iPath1) {
|
|
644
|
-
iFirstSelected += iMax;
|
|
645
|
-
iDirection = -1;
|
|
646
|
-
}
|
|
647
|
-
} else {
|
|
648
|
-
iPath1 = iFirstSelected - iLastSelected;
|
|
649
|
-
iPath2 = iMax - iPath1;
|
|
650
|
-
if (iPath2 < iPath1) {
|
|
651
|
-
iLastSelected += iMax;
|
|
652
|
-
} else {
|
|
653
|
-
iDirection = -1;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
613
|
+
TimePickerClock.prototype._getItemsCount = function(bForceRealCount) {
|
|
614
|
+
return this.getItemMax() - this.getItemMin() + 1;
|
|
615
|
+
};
|
|
656
616
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
this.setSelectedValue(iNewValue);
|
|
666
|
-
this.fireChange({value: iNewValue, stringValue: this._getStringValue(iNewValue), finalChange: true});
|
|
667
|
-
}
|
|
617
|
+
/**
|
|
618
|
+
* Returns the angle step for the clock.
|
|
619
|
+
*
|
|
620
|
+
* @private
|
|
621
|
+
*/
|
|
622
|
+
TimePickerClock.prototype._getAngleStep = function(bForceRealAngle) {
|
|
623
|
+
const iItemsCount = this._getItemsCount();
|
|
624
|
+
return iItemsCount === 12 ? 6 : 360 / this._getItemsCount();
|
|
668
625
|
};
|
|
669
626
|
|
|
670
627
|
/**
|
|
@@ -673,8 +630,13 @@ sap.ui.define([
|
|
|
673
630
|
* @private
|
|
674
631
|
*/
|
|
675
632
|
TimePickerClock.prototype._calculateDimensions = function() {
|
|
676
|
-
|
|
677
|
-
|
|
633
|
+
const oCover = this._getClockCoverContainerDomRef();
|
|
634
|
+
|
|
635
|
+
if (!oCover) {
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
|
|
678
640
|
scrollTop = window.pageYOffset || document.documentElement.scrollTop,
|
|
679
641
|
iRadius = Math.round(oCover.offsetHeight / 2),
|
|
680
642
|
iDotHeight = jQuery('.sapMTPCDot').first().outerHeight(true),
|
|
@@ -687,10 +649,8 @@ sap.ui.define([
|
|
|
687
649
|
'centerY': iRadius,
|
|
688
650
|
'dotHeight': iDotHeight,
|
|
689
651
|
'numberHeight': iNumberHeight,
|
|
690
|
-
'
|
|
691
|
-
'
|
|
692
|
-
'innerMax': iRadius - iNumberHeight - 1,
|
|
693
|
-
'innerMin': iRadius - iNumberHeight * 2 - 1,
|
|
652
|
+
'radiusMax': iRadius,
|
|
653
|
+
'radiusMin': iRadius - iNumberHeight * 1.6 - 1,
|
|
694
654
|
'offsetX': oOffset.left + scrollLeft,
|
|
695
655
|
'offsetY': oOffset.top + scrollTop
|
|
696
656
|
};
|
|
@@ -706,19 +666,16 @@ sap.ui.define([
|
|
|
706
666
|
TimePickerClock.prototype._calculatePosition = function(iX, iY) {
|
|
707
667
|
var iItemMax = this.getItemMax(),
|
|
708
668
|
iReplacement = this.getLastItemReplacement(),
|
|
709
|
-
|
|
669
|
+
iValueStep = this.getValueStep(),
|
|
710
670
|
iDx = iX - this._dimensionParameters.offsetX + 1 - this._dimensionParameters.radius,
|
|
711
671
|
iDy = iY - this._dimensionParameters.offsetY + 1 - this._dimensionParameters.radius,
|
|
712
672
|
iMod = iDx >= 0 ? 0 : 180,
|
|
713
673
|
iAngle = (Math.atan(iDy / iDx) * 180 / Math.PI) + 90 + iMod,
|
|
714
|
-
iAngleStep =
|
|
715
|
-
bInnerItems = this.getInnerItems(),
|
|
674
|
+
iAngleStep = this._getAngleStep(true),
|
|
716
675
|
iRadius = Math.sqrt(iDx * iDx + iDy * iDy),
|
|
717
|
-
iFinalAngle = Math.round((iAngle === 0 ? 360 : iAngle) / iAngleStep) * iAngleStep,
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
bIsOuterHover = iRadius <= this._dimensionParameters.outerMax && iRadius > this._dimensionParameters.outerMin,
|
|
721
|
-
bIsInnerHover = bIsInner,
|
|
676
|
+
iFinalAngle = Math.round((iAngle === 0 ? 360 : iAngle) / iAngleStep / iValueStep) * iAngleStep * iValueStep,
|
|
677
|
+
bIsInActiveZone = iRadius <= this._dimensionParameters.radiusMax && iRadius > this._dimensionParameters.radiusMin,
|
|
678
|
+
iMultiplier = 360 / this._getItemsCount() / iAngleStep,
|
|
722
679
|
bSupport2400 = this.getSupport2400(),
|
|
723
680
|
bIs24HoursVisible = this._get24HoursVisible();
|
|
724
681
|
|
|
@@ -727,10 +684,10 @@ sap.ui.define([
|
|
|
727
684
|
}
|
|
728
685
|
|
|
729
686
|
// selected item calculations
|
|
730
|
-
if (
|
|
731
|
-
this._iSelectedValue = (iFinalAngle / iAngleStep) *
|
|
732
|
-
if (
|
|
733
|
-
this._iSelectedValue
|
|
687
|
+
if (bIsInActiveZone) {
|
|
688
|
+
this._iSelectedValue = Math.round((iFinalAngle / iAngleStep / iMultiplier / iValueStep)) * iValueStep;
|
|
689
|
+
if (this._iSelectedValue === 0 && iReplacement === -1) {
|
|
690
|
+
this._iSelectedValue = iItemMax;
|
|
734
691
|
}
|
|
735
692
|
if (bSupport2400 && !bIs24HoursVisible && this._iSelectedValue === 24) {
|
|
736
693
|
this._iSelectedValue = 0;
|
|
@@ -739,16 +696,12 @@ sap.ui.define([
|
|
|
739
696
|
this._iSelectedValue = -1;
|
|
740
697
|
}
|
|
741
698
|
|
|
742
|
-
|
|
743
|
-
if (bIsInnerHover || bIsOuterHover) {
|
|
744
|
-
this._iHoveredValue = bSupport2400 && !bIs24HoursVisible && this._iSelectedValue === 0 ? 24 : this._iSelectedValue;
|
|
745
|
-
} else {
|
|
746
|
-
this._iHoveredValue = -1;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
if (this._iSelectedValue === this._getMaxValue() && iReplacement !== -1) {
|
|
699
|
+
if (this._iSelectedValue === iItemMax && iReplacement !== -1) {
|
|
750
700
|
this._iSelectedValue = iReplacement;
|
|
751
701
|
}
|
|
702
|
+
|
|
703
|
+
// hover simulation calculations
|
|
704
|
+
this.setHoveredValue(bIsInActiveZone ? this._iSelectedValue : -1);
|
|
752
705
|
};
|
|
753
706
|
|
|
754
707
|
/**
|
|
@@ -767,50 +720,6 @@ sap.ui.define([
|
|
|
767
720
|
return this;
|
|
768
721
|
};
|
|
769
722
|
|
|
770
|
-
/**
|
|
771
|
-
* Does the animation between old and new selected values.
|
|
772
|
-
*
|
|
773
|
-
* @param {sap.m.TimePickerClock} oClock clock object
|
|
774
|
-
* @param {int} iFirstSelected first/current value to move from
|
|
775
|
-
* @param {int} iLastSelected last value to move to
|
|
776
|
-
* @param {int} iDirection direction of the animation
|
|
777
|
-
* @param {int} iMax max clock value
|
|
778
|
-
* @param {int} iNewValue new value
|
|
779
|
-
* @param {int} iDelay delay of the single step
|
|
780
|
-
* @param {boolean} bSupport2400 <code>true</code> when the clock has <code>support2400</code> property set
|
|
781
|
-
* @param {boolean} bIs24HoursVisible is "24" visible or not
|
|
782
|
-
*/
|
|
783
|
-
function _selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible) {
|
|
784
|
-
var iCurrent;
|
|
785
|
-
|
|
786
|
-
if (iFirstSelected === iLastSelected) {
|
|
787
|
-
oClock._animationInProgress = false;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
iCurrent = iFirstSelected > iMax ? iFirstSelected - iMax : iFirstSelected;
|
|
791
|
-
if (bSupport2400) {
|
|
792
|
-
if (iCurrent === 24 && !bIs24HoursVisible) {
|
|
793
|
-
iCurrent = 0;
|
|
794
|
-
} else if (iCurrent === 0 && bIs24HoursVisible) {
|
|
795
|
-
iCurrent = 24;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
oClock.setSelectedValue(iCurrent);
|
|
800
|
-
|
|
801
|
-
if (iFirstSelected !== iLastSelected) {
|
|
802
|
-
iFirstSelected += iDirection;
|
|
803
|
-
setTimeout(function() {
|
|
804
|
-
_selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible);
|
|
805
|
-
}, iDelay);
|
|
806
|
-
} else {
|
|
807
|
-
// the new value is set, fire event
|
|
808
|
-
setTimeout(function() {
|
|
809
|
-
oClock.fireChange({value: iNewValue, stringValue: oClock._getStringValue(iNewValue), finalChange: true});
|
|
810
|
-
}, ANIMATION_DELAY_EVENT);
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
|
|
814
723
|
return TimePickerClock;
|
|
815
724
|
|
|
816
725
|
});
|