@openui5/sap.m 1.117.1 → 1.119.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/THIRDPARTY.txt +2 -2
- package/package.json +4 -4
- package/src/sap/m/.library +16 -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 +1 -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 +5 -5
- package/src/sap/m/Bar.js +38 -19
- package/src/sap/m/BarRenderer.js +12 -1
- package/src/sap/m/Breadcrumbs.js +55 -2
- package/src/sap/m/BreadcrumbsRenderer.js +4 -0
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +11 -6
- 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 +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +13 -26
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +52 -13
- package/src/sap/m/ColumnListItemRenderer.js +96 -83
- 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 +3 -2
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.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 +1 -1
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +25 -22
- package/src/sap/m/Dialog.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateFormat.js +4 -0
- package/src/sap/m/DynamicDateOption.js +2 -2
- package/src/sap/m/DynamicDateRange.js +119 -6
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +2 -2
- package/src/sap/m/FacetFilterItem.js +6 -2
- package/src/sap/m/FacetFilterList.js +8 -5
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +3 -3
- package/src/sap/m/FeedListItem.js +6 -5
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +37 -2
- package/src/sap/m/GroupHeaderListItem.js +7 -4
- package/src/sap/m/GroupHeaderListItemRenderer.js +36 -17
- package/src/sap/m/GrowingEnablement.js +10 -6
- 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 +2 -2
- package/src/sap/m/IconTabBarRenderer.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +35 -10
- package/src/sap/m/IconTabFilter.js +2 -2
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +4 -2
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +1 -1
- package/src/sap/m/Illustration.js +59 -7
- package/src/sap/m/IllustrationPool.js +47 -13
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +33 -22
- 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 -16
- package/src/sap/m/ListBase.js +109 -148
- package/src/sap/m/ListBaseRenderer.js +5 -9
- package/src/sap/m/ListItemBase.js +36 -133
- package/src/sap/m/ListItemBaseRenderer.js +26 -3
- 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 +33 -18
- package/src/sap/m/MenuButton.js +2 -2
- package/src/sap/m/MenuItem.js +23 -1
- package/src/sap/m/MenuListItem.js +6 -5
- 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 +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +13 -9
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +5 -4
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +4 -6
- package/src/sap/m/NavContainer.js +17 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -3
- 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 +16 -14
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +15 -3
- package/src/sap/m/ObjectHeaderRenderer.js +24 -9
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +10 -3
- package/src/sap/m/ObjectListItemRenderer.js +7 -1
- package/src/sap/m/ObjectMarker.js +2 -2
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectNumberRenderer.js +17 -2
- 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 +2 -3
- 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 +5 -1
- package/src/sap/m/PanelRenderer.js +6 -1
- package/src/sap/m/PlanningCalendar.js +92 -24
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarLegendRenderer.js +5 -2
- 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 +8 -2
- 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 +6 -4
- 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 +6 -4
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/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 +12 -2
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +54 -30
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +8 -22
- 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 +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 +1 -1
- 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 +14 -14
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +5 -3
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +165 -141
- 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 +123 -90
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TimePicker.js +1 -1
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +2 -5
- 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 +3 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +25 -4
- 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/VariantManagement.js +91 -19
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +35 -24
- 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 +12 -2
- 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 +4 -2
- 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 +3 -2
- package/src/sap/m/designtime/IconTabBar.designtime.js +20 -1
- package/src/sap/m/designtime/IconTabFilter.designtime.js +12 -3
- package/src/sap/m/designtime/messagebundle_hu.properties +1 -1
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +13 -4
- package/src/sap/m/library.js +146 -22
- package/src/sap/m/messagebundle.properties +74 -20
- package/src/sap/m/messagebundle_ar.properties +51 -44
- package/src/sap/m/messagebundle_bg.properties +116 -109
- package/src/sap/m/messagebundle_ca.properties +19 -12
- package/src/sap/m/messagebundle_cs.properties +42 -35
- package/src/sap/m/messagebundle_cy.properties +21 -14
- package/src/sap/m/messagebundle_da.properties +19 -12
- package/src/sap/m/messagebundle_de.properties +22 -15
- package/src/sap/m/messagebundle_el.properties +23 -16
- package/src/sap/m/messagebundle_en.properties +43 -9
- package/src/sap/m/messagebundle_en_GB.properties +12 -5
- package/src/sap/m/messagebundle_en_US_sappsd.properties +7 -0
- package/src/sap/m/messagebundle_en_US_saprigi.properties +7 -0
- package/src/sap/m/messagebundle_en_US_saptrc.properties +7 -0
- package/src/sap/m/messagebundle_es.properties +32 -25
- package/src/sap/m/messagebundle_es_MX.properties +19 -12
- package/src/sap/m/messagebundle_et.properties +19 -12
- package/src/sap/m/messagebundle_fi.properties +25 -18
- package/src/sap/m/messagebundle_fr.properties +65 -58
- package/src/sap/m/messagebundle_fr_CA.properties +20 -13
- package/src/sap/m/messagebundle_hi.properties +26 -19
- package/src/sap/m/messagebundle_hr.properties +49 -42
- package/src/sap/m/messagebundle_hu.properties +21 -14
- package/src/sap/m/messagebundle_id.properties +22 -15
- package/src/sap/m/messagebundle_it.properties +49 -42
- package/src/sap/m/messagebundle_iw.properties +25 -18
- package/src/sap/m/messagebundle_ja.properties +60 -53
- package/src/sap/m/messagebundle_kk.properties +61 -54
- package/src/sap/m/messagebundle_ko.properties +29 -22
- package/src/sap/m/messagebundle_lt.properties +19 -12
- package/src/sap/m/messagebundle_lv.properties +19 -12
- package/src/sap/m/messagebundle_ms.properties +19 -12
- package/src/sap/m/messagebundle_nl.properties +31 -24
- package/src/sap/m/messagebundle_no.properties +22 -15
- package/src/sap/m/messagebundle_pl.properties +25 -18
- package/src/sap/m/messagebundle_pt.properties +21 -14
- package/src/sap/m/messagebundle_pt_PT.properties +19 -12
- package/src/sap/m/messagebundle_ro.properties +20 -13
- package/src/sap/m/messagebundle_ru.properties +20 -13
- package/src/sap/m/messagebundle_sh.properties +30 -23
- package/src/sap/m/messagebundle_sk.properties +26 -19
- package/src/sap/m/messagebundle_sl.properties +100 -93
- package/src/sap/m/messagebundle_sv.properties +31 -24
- package/src/sap/m/messagebundle_th.properties +38 -31
- package/src/sap/m/messagebundle_tr.properties +22 -15
- package/src/sap/m/messagebundle_uk.properties +57 -50
- package/src/sap/m/messagebundle_vi.properties +19 -12
- package/src/sap/m/messagebundle_zh_CN.properties +34 -27
- package/src/sap/m/messagebundle_zh_TW.properties +23 -16
- 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 +4 -10
- package/src/sap/m/p13n/Container.js +1 -15
- package/src/sap/m/p13n/Engine.js +42 -8
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/Popup.js +3 -3
- package/src/sap/m/p13n/QueryPanel.js +7 -2
- package/src/sap/m/p13n/SelectionController.js +1 -1
- package/src/sap/m/p13n/SelectionPanel.js +18 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/enum/PersistenceMode.js +1 -1
- package/src/sap/m/p13n/enum/ProcessingStrategy.js +10 -1
- package/src/sap/m/p13n/handler/xConfigHandler.js +6 -5
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +16 -3
- 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/p13n/modules/xConfigAPI.js +5 -0
- package/src/sap/m/plugins/CellSelector.js +72 -29
- package/src/sap/m/plugins/ColumnResizer.js +3 -5
- package/src/sap/m/plugins/CopyProvider.js +27 -10
- package/src/sap/m/plugins/DataStateIndicator.js +4 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/rules/IconTabBar.support.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 +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/Util.js +25 -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 +32 -3
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +12 -9
- 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 +1 -1
- 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/Avatar.less +5 -5
- package/src/sap/m/themes/base/Breadcrumbs.less +2 -1
- package/src/sap/m/themes/base/Button.less +2 -172
- package/src/sap/m/themes/base/CellSelector.less +9 -0
- package/src/sap/m/themes/base/ColumnListItem.less +12 -8
- package/src/sap/m/themes/base/DateTimePicker.less +9 -1
- package/src/sap/m/themes/base/Dialog.less +1 -1
- package/src/sap/m/themes/base/GroupHeaderListItem.less +4 -6
- package/src/sap/m/themes/base/IconTabBar.less +13 -0
- package/src/sap/m/themes/base/InputBase.less +2 -2
- package/src/sap/m/themes/base/ListItemBase.less +9 -6
- package/src/sap/m/themes/base/ObjectStatus.less +7 -1
- package/src/sap/m/themes/base/Panel.less +2 -5
- package/src/sap/m/themes/base/QuickView.less +1 -1
- package/src/sap/m/themes/base/SearchField.less +2 -2
- package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +9 -6
- package/src/sap/m/themes/base/StepInput.less +4 -0
- package/src/sap/m/themes/base/SuggestionsPopover.less +10 -4
- package/src/sap/m/themes/base/Table.less +30 -12
- package/src/sap/m/themes/base/TextArea.less +13 -29
- package/src/sap/m/themes/base/TimePicker.less +1 -0
- package/src/sap/m/themes/base/Toolbar.less +3 -1
- package/src/sap/m/themes/base/UploadCollection.less +0 -1
- package/src/sap/m/themes/base/{UploadSetTable.less → UploadSetwithTable.less} +0 -5
- package/src/sap/m/themes/base/VariantManagement.less +8 -0
- package/src/sap/m/themes/base/ViewSettingsDialog.less +3 -0
- package/src/sap/m/themes/base/library.source.less +1 -1
- package/src/sap/m/themes/sap_hcb/InputBase.less +1 -2
- package/src/sap/m/upload/FilePreviewDialog.js +298 -141
- package/src/sap/m/upload/UploadSet.js +2 -3
- package/src/sap/m/upload/UploadSetItem.js +3 -2
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploadSetwithTable.js +1211 -0
- package/src/sap/m/upload/{UploadSetTableItem.js → UploadSetwithTableItem.js} +81 -78
- package/src/sap/m/upload/{UploadSetTableItemRenderer.js → UploadSetwithTableItemRenderer.js} +6 -5
- package/src/sap/m/upload/{UploadSetTableRenderer.js → UploadSetwithTableRenderer.js} +7 -10
- package/src/sap/m/upload/UploaderTableItem.js +16 -18
- package/src/sap/m/upload/UploadSetTable.js +0 -929
|
@@ -4,69 +4,80 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Provides control sap.m.upload.
|
|
7
|
+
// Provides control sap.m.upload.UploadSetwithTableItem.
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/m/ColumnListItem",
|
|
10
10
|
"sap/ui/core/IconPool",
|
|
11
|
-
"sap/m/upload/
|
|
11
|
+
"sap/m/upload/UploadSetwithTableItemRenderer",
|
|
12
12
|
"sap/base/Log",
|
|
13
|
-
"sap/
|
|
14
|
-
], function (ColumnListItem, IconPool,
|
|
13
|
+
"sap/ui/core/Core"
|
|
14
|
+
], function (ColumnListItem, IconPool, UploadSetwithTableItemRenderer, Log, Core) {
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Constructor for a new
|
|
18
|
+
* Constructor for a new UploadSetwithTableItem.
|
|
19
19
|
*
|
|
20
20
|
* @param {string} [sId] ID for the new control, will be generated automatically if no ID is provided.
|
|
21
21
|
* @param {object} [mSettings] Initial settings for the new control.
|
|
22
|
-
* @class
|
|
22
|
+
* @class
|
|
23
|
+
* <code>sap.m.UploadSetwithTableItem</code> represents one item to be uploaded using the {@link sap.m.upload.UploadSetwithTable UploadSetwithTable} control. This control can be used with the cells aggregation to create rows for the {@link sap.m.upload.UploadSetwithTable UploadSetwithTable} control. The columns aggregation of the sap.m.upload.UploadSetwithTable should match with the cells aggregation.
|
|
24
|
+
* Note: This control should only be used within the {@link sap.m.upload.UploadSetwithTable UploadSetwithTable} control. The inherited counter property of sap.m.ListItemBase is not supported.
|
|
23
25
|
* @extends sap.m.ColumnListItem
|
|
24
26
|
* @author SAP SE
|
|
25
27
|
* @constructor
|
|
26
28
|
* @private
|
|
27
29
|
* @experimental
|
|
28
30
|
* @internal
|
|
29
|
-
* @alias sap.m.upload.
|
|
31
|
+
* @alias sap.m.upload.UploadSetwithTableItem
|
|
30
32
|
*/
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
33
|
+
var UploadSetwithTableItem = ColumnListItem.extend("sap.m.upload.UploadSetwithTableItem", {
|
|
34
|
+
metadata: {
|
|
35
|
+
library: "sap.m",
|
|
36
|
+
properties: {
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the name of the uploaded file.
|
|
39
|
+
*/
|
|
40
|
+
fileName: {type: "string", defaultValue: null},
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the MIME type of the file.
|
|
43
|
+
*/
|
|
44
|
+
mediaType: {type: "string", defaultValue: null},
|
|
45
|
+
/**
|
|
46
|
+
* Specifies the URL where the file is located.
|
|
47
|
+
*/
|
|
48
|
+
url: {type: "string", defaultValue: null},
|
|
49
|
+
/**
|
|
50
|
+
* URL where the uploaded files are stored. If empty, uploadUrl from the uploader is considered.
|
|
51
|
+
*/
|
|
52
|
+
uploadUrl: {type: "string", defaultValue: null},
|
|
53
|
+
/**
|
|
54
|
+
* State of the item relevant to its upload process.
|
|
55
|
+
*/
|
|
56
|
+
uploadState: {type: "sap.m.UploadState", defaultValue: null},
|
|
57
|
+
/**
|
|
58
|
+
* Specifies whether the item can be previewed.
|
|
59
|
+
*/
|
|
60
|
+
previewable: {type: "boolean", defaultValue: true},
|
|
61
|
+
/**
|
|
62
|
+
* Specifies file size of the item in bytes.
|
|
63
|
+
*/
|
|
64
|
+
fileSize: {type: "float", defaultValue: 0}
|
|
65
|
+
},
|
|
66
|
+
aggregations: {
|
|
67
|
+
/**
|
|
68
|
+
* Header fields to be included in the header section of an XMLHttpRequest (XHR) request
|
|
69
|
+
*/
|
|
70
|
+
headerFields: {type: "sap.ui.core.Item", multiple: true, singularName: "headerField"}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
render: UploadSetwithTableItemRenderer
|
|
63
74
|
});
|
|
64
75
|
|
|
65
76
|
/* ================== */
|
|
66
77
|
/* Lifecycle handling */
|
|
67
78
|
/* ================== */
|
|
68
79
|
|
|
69
|
-
|
|
80
|
+
UploadSetwithTableItem.prototype.init = function () {
|
|
70
81
|
ColumnListItem.prototype.init.apply(this, arguments);
|
|
71
82
|
this._oFileObject = null;
|
|
72
83
|
this._fFileSize = null;
|
|
@@ -75,17 +86,18 @@ sap.ui.define([
|
|
|
75
86
|
this._bNameLengthRestricted = false;
|
|
76
87
|
this._bSizeRestricted = false;
|
|
77
88
|
this._bMediaTypeRestricted = false;
|
|
89
|
+
this._oRb = Core.getLibraryResourceBundle("sap.m");
|
|
78
90
|
};
|
|
79
91
|
|
|
80
|
-
|
|
92
|
+
UploadSetwithTableItem.prototype.onBeforeRendering = function () {
|
|
81
93
|
ColumnListItem.prototype.onBeforeRendering.apply(this, arguments);
|
|
82
94
|
};
|
|
83
95
|
|
|
84
|
-
|
|
96
|
+
UploadSetwithTableItem.prototype.onAfterRendering = function() {
|
|
85
97
|
ColumnListItem.prototype.onAfterRendering.call(this);
|
|
86
98
|
};
|
|
87
99
|
|
|
88
|
-
|
|
100
|
+
UploadSetwithTableItem.prototype.exit = function() {
|
|
89
101
|
ColumnListItem.prototype.exit.call(this);
|
|
90
102
|
};
|
|
91
103
|
|
|
@@ -93,7 +105,7 @@ sap.ui.define([
|
|
|
93
105
|
/* Overriden API methods */
|
|
94
106
|
/* ===================== */
|
|
95
107
|
|
|
96
|
-
|
|
108
|
+
UploadSetwithTableItem.prototype.setFileName = function (sFileName) {
|
|
97
109
|
if (this.getFileName() !== sFileName) {
|
|
98
110
|
this.setProperty("fileName", sFileName, true);
|
|
99
111
|
// File name related controls available no sooner than a parent is set
|
|
@@ -117,17 +129,16 @@ sap.ui.define([
|
|
|
117
129
|
* @returns {File|Blob} File object.
|
|
118
130
|
*
|
|
119
131
|
*/
|
|
120
|
-
|
|
132
|
+
UploadSetwithTableItem.prototype.getFileObject = function () {
|
|
121
133
|
return this._oFileObject;
|
|
122
134
|
};
|
|
123
135
|
|
|
124
136
|
/**
|
|
125
137
|
* Previews pressed file.
|
|
126
|
-
* @param {sap.m.upload.UploadSetTableItem} oItem The pressed UploadSetTableItem.
|
|
127
138
|
* @public
|
|
128
139
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
140
|
+
UploadSetwithTableItem.prototype.openPreview = function () {
|
|
141
|
+
this.getParent()?._openFilePreview(this);
|
|
131
142
|
};
|
|
132
143
|
|
|
133
144
|
/**
|
|
@@ -136,7 +147,7 @@ sap.ui.define([
|
|
|
136
147
|
* @public
|
|
137
148
|
* @returns {boolean} <code>true</code> if download is possible, <code>false</code> otherwise.
|
|
138
149
|
*/
|
|
139
|
-
|
|
150
|
+
UploadSetwithTableItem.prototype.download = function (bAskForLocation) {
|
|
140
151
|
var oParent = this.getParent();
|
|
141
152
|
if (!oParent) {
|
|
142
153
|
Log.warning("Download cannot proceed without a parent association.");
|
|
@@ -147,14 +158,13 @@ sap.ui.define([
|
|
|
147
158
|
};
|
|
148
159
|
|
|
149
160
|
/**
|
|
150
|
-
* Validates if the item is restricted,
|
|
161
|
+
* Validates if the item is restricted, to check if it is restricted for the file type, media type, maximum file name length and maximum file size limit.
|
|
151
162
|
*
|
|
152
163
|
* @public
|
|
153
|
-
* @since 1.98
|
|
154
164
|
* @returns {boolean} <code>true</code> if item is restricted, <code>false</code> otherwise.
|
|
155
165
|
*
|
|
156
166
|
*/
|
|
157
|
-
|
|
167
|
+
UploadSetwithTableItem.prototype.isRestricted = function () {
|
|
158
168
|
return this._isRestricted();
|
|
159
169
|
};
|
|
160
170
|
|
|
@@ -162,15 +172,7 @@ sap.ui.define([
|
|
|
162
172
|
/* Private methods */
|
|
163
173
|
/* =============== */
|
|
164
174
|
|
|
165
|
-
|
|
166
|
-
* Previews file in a dialog with carousel.
|
|
167
|
-
*/
|
|
168
|
-
UploadSetTableItem.prototype._previewCarousel = function () {
|
|
169
|
-
var filePreviewDialog = new FilePreviewDialog(this);
|
|
170
|
-
filePreviewDialog.open();
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
UploadSetTableItem._getIconByMimeType = function(sMimeType, fileName) {
|
|
175
|
+
UploadSetwithTableItem._getIconByMimeType = function(sMimeType, fileName) {
|
|
174
176
|
|
|
175
177
|
var mimeTypeForImages = ["image/png", "image/tiff", "image/bmp", "image/jpeg", "image/gif"];
|
|
176
178
|
|
|
@@ -178,14 +180,14 @@ sap.ui.define([
|
|
|
178
180
|
if (mimeTypeForImages.indexOf(sMimeType) === -1) {
|
|
179
181
|
return IconPool.getIconForMimeType(sMimeType);
|
|
180
182
|
}
|
|
181
|
-
return
|
|
183
|
+
return UploadSetwithTableItem._getIconByFileType(fileName);
|
|
182
184
|
} else {
|
|
183
|
-
return
|
|
185
|
+
return UploadSetwithTableItem._getIconByFileType(fileName);
|
|
184
186
|
}
|
|
185
187
|
};
|
|
186
188
|
|
|
187
|
-
|
|
188
|
-
var sFileExtension =
|
|
189
|
+
UploadSetwithTableItem._getIconByFileType = function (fileName) {
|
|
190
|
+
var sFileExtension = UploadSetwithTableItem._splitFileName(fileName).extension;
|
|
189
191
|
if (!sFileExtension) {
|
|
190
192
|
return "sap-icon://document";
|
|
191
193
|
}
|
|
@@ -195,7 +197,7 @@ sap.ui.define([
|
|
|
195
197
|
case "jpg" :
|
|
196
198
|
case "jpeg" :
|
|
197
199
|
case "png" :
|
|
198
|
-
return
|
|
200
|
+
return UploadSetwithTableItem.IMAGE_FILE_ICON;
|
|
199
201
|
case "csv" :
|
|
200
202
|
case "xls" :
|
|
201
203
|
case "xlsx" :
|
|
@@ -216,7 +218,7 @@ sap.ui.define([
|
|
|
216
218
|
}
|
|
217
219
|
};
|
|
218
220
|
|
|
219
|
-
|
|
221
|
+
UploadSetwithTableItem._splitFileName = function (sFileName, bWithDot) {
|
|
220
222
|
var oResult = {};
|
|
221
223
|
var oRegex = /(?:\.([^.]+))?$/;
|
|
222
224
|
var aFileExtension = oRegex.exec(sFileName);
|
|
@@ -234,10 +236,11 @@ sap.ui.define([
|
|
|
234
236
|
return oResult;
|
|
235
237
|
};
|
|
236
238
|
|
|
237
|
-
|
|
239
|
+
UploadSetwithTableItem.prototype._setFileObject = function (oFileObject) {
|
|
238
240
|
this._oFileObject = oFileObject;
|
|
239
241
|
if (oFileObject) {
|
|
240
|
-
this._fFileSize = oFileObject.size /
|
|
242
|
+
this._fFileSize = oFileObject.size / UploadSetwithTableItem.MEGABYTE;
|
|
243
|
+
this.setFileSize(oFileObject.size);
|
|
241
244
|
this.setMediaType(oFileObject.type);
|
|
242
245
|
} else {
|
|
243
246
|
this._fFileSize = null;
|
|
@@ -254,7 +257,7 @@ sap.ui.define([
|
|
|
254
257
|
* @param {int} iMaxLength Maximum length of file name.
|
|
255
258
|
* @private
|
|
256
259
|
*/
|
|
257
|
-
|
|
260
|
+
UploadSetwithTableItem.prototype._checkNameLengthRestriction = function (iMaxLength) {
|
|
258
261
|
var bRestricted = (iMaxLength && !!this.getFileName() && this.getFileName().length > iMaxLength);
|
|
259
262
|
if (bRestricted !== this._bNameLengthRestricted) {
|
|
260
263
|
this._bNameLengthRestricted = bRestricted;
|
|
@@ -270,7 +273,7 @@ sap.ui.define([
|
|
|
270
273
|
* @param {float} fMaxSize Maximum file size allowed in megabytes.
|
|
271
274
|
* @private
|
|
272
275
|
*/
|
|
273
|
-
|
|
276
|
+
UploadSetwithTableItem.prototype._checkSizeRestriction = function (fMaxSize) {
|
|
274
277
|
var bRestricted = (fMaxSize && this._fFileSize > fMaxSize);
|
|
275
278
|
if (bRestricted !== this._bSizeRestricted) {
|
|
276
279
|
this._bSizeRestricted = bRestricted;
|
|
@@ -286,7 +289,7 @@ sap.ui.define([
|
|
|
286
289
|
* @param {string[]} aTypes List of allowed mime types.
|
|
287
290
|
* @private
|
|
288
291
|
*/
|
|
289
|
-
|
|
292
|
+
UploadSetwithTableItem.prototype._checkMediaTypeRestriction = function (aTypes) {
|
|
290
293
|
var bRestricted = (!!aTypes && (aTypes.length > 0) && !!this.getMediaType() && aTypes.indexOf(this.getMediaType()) === -1);
|
|
291
294
|
if (bRestricted !== this._bMediaTypeRestricted) {
|
|
292
295
|
this._bMediaTypeRestricted = bRestricted;
|
|
@@ -302,8 +305,8 @@ sap.ui.define([
|
|
|
302
305
|
* @param {string[]} aTypes List of allowed file types.
|
|
303
306
|
* @private
|
|
304
307
|
*/
|
|
305
|
-
|
|
306
|
-
var oFile =
|
|
308
|
+
UploadSetwithTableItem.prototype._checkTypeRestriction = function (aTypes) {
|
|
309
|
+
var oFile = UploadSetwithTableItem._splitFileName(this.getFileName()),
|
|
307
310
|
bRestricted =
|
|
308
311
|
(!!this.getFileName() && !!aTypes && (aTypes.length > 0)
|
|
309
312
|
&& oFile.extension && aTypes.indexOf(oFile.extension.toLowerCase()) === -1);
|
|
@@ -316,12 +319,12 @@ sap.ui.define([
|
|
|
316
319
|
}
|
|
317
320
|
};
|
|
318
321
|
|
|
319
|
-
|
|
322
|
+
UploadSetwithTableItem.prototype._isRestricted = function () {
|
|
320
323
|
return this._bFileTypeRestricted || this._bNameLengthRestricted || this._bSizeRestricted || this._bMediaTypeRestricted;
|
|
321
324
|
};
|
|
322
325
|
|
|
323
|
-
|
|
324
|
-
|
|
326
|
+
UploadSetwithTableItem.IMAGE_FILE_ICON = "sap-icon://card";
|
|
327
|
+
UploadSetwithTableItem.MEGABYTE = 1048576;
|
|
325
328
|
|
|
326
|
-
return
|
|
329
|
+
return UploadSetwithTableItem;
|
|
327
330
|
});
|
package/src/sap/m/upload/{UploadSetTableItemRenderer.js → UploadSetwithTableItemRenderer.js}
RENAMED
|
@@ -8,15 +8,16 @@ sap.ui.define(["sap/ui/core/Renderer", "sap/m/ColumnListItemRenderer", "sap/m/Li
|
|
|
8
8
|
"use strict";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* UploadSetwithTableItem renderer.
|
|
12
12
|
* @namespace
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
|
|
14
|
+
var UploadSetwithTableItemRenderer = Renderer.extend(ColumnListItemRenderer);
|
|
15
|
+
UploadSetwithTableItemRenderer.apiVersion = 2;
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
UploadSetwithTableItemRenderer.render = function(rm, oLI) {
|
|
18
|
+
oLI.addStyleClass("SapMUSTI");
|
|
18
19
|
ColumnListItemRenderer.render.apply(this, arguments);
|
|
19
20
|
};
|
|
20
21
|
// enable in-place DOM patching
|
|
21
|
-
return
|
|
22
|
+
return UploadSetwithTableItemRenderer;
|
|
22
23
|
}, /* bExport= */ true);
|
|
@@ -9,26 +9,23 @@ sap.ui.define(["sap/ui/core/Renderer", "sap/m/TableRenderer", "sap/m/Table"
|
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* UploadSetwithTable renderer.
|
|
13
13
|
* @namespace
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
|
|
15
|
+
var UploadSetwithTableRenderer = Renderer.extend(TableRenderer);
|
|
16
|
+
UploadSetwithTableRenderer.apiVersion = 2; // enable in-place DOM patching
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
21
21
|
*
|
|
22
22
|
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the render output buffer.
|
|
23
|
-
* @param {sap.m.upload.
|
|
23
|
+
* @param {sap.m.upload.UploadSetwithTable} oControl an object representation of the control that should be rendered.
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
oRm.class("sapMUST");
|
|
28
|
-
oRm.openEnd();
|
|
25
|
+
UploadSetwithTableRenderer.render = function (oRm, oControl) {
|
|
26
|
+
oControl.addStyleClass("sapMUST");
|
|
29
27
|
TableRenderer.render.apply(this,arguments);
|
|
30
|
-
oRm.close("div");
|
|
31
28
|
};
|
|
32
29
|
|
|
33
|
-
return
|
|
30
|
+
return UploadSetwithTableRenderer;
|
|
34
31
|
});
|
|
@@ -10,7 +10,7 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/core/Element",
|
|
11
11
|
"sap/ui/core/util/File",
|
|
12
12
|
"sap/ui/Device",
|
|
13
|
-
"sap/m/upload/
|
|
13
|
+
"sap/m/upload/UploadSetwithTableItem",
|
|
14
14
|
"sap/m/upload/UploaderHttpRequestMethod"
|
|
15
15
|
], function (Log, MobileLibrary, Element, FileUtil, Device, UploadSetItem, UploaderHttpRequestMethod) {
|
|
16
16
|
"use strict";
|
|
@@ -40,48 +40,46 @@ sap.ui.define([
|
|
|
40
40
|
*/
|
|
41
41
|
uploadUrl: {type: "string", defaultValue: null},
|
|
42
42
|
/**
|
|
43
|
-
* URL where the next file is going to be
|
|
43
|
+
* URL where the next file is going to be downloaded from.
|
|
44
44
|
*/
|
|
45
45
|
downloadUrl: {type: "string", defaultValue: null},
|
|
46
46
|
/**
|
|
47
47
|
* HTTP request method chosen for file upload.
|
|
48
|
-
* @since 1.90
|
|
49
48
|
*/
|
|
50
49
|
httpRequestMethod: {type: "sap.m.upload.UploaderHttpRequestMethod", defaultValue: UploaderHttpRequestMethod.Post},
|
|
51
50
|
/**
|
|
52
51
|
* This property decides the type of request. If set to "true", the request gets sent as a multipart/form-data request instead of file only request.
|
|
53
|
-
* @since 1.92
|
|
54
52
|
*/
|
|
55
53
|
useMultipart: { type: "boolean", defaultValue: false }
|
|
56
54
|
},
|
|
57
55
|
events: {
|
|
58
56
|
/**
|
|
59
|
-
* The event is fired just after the POST request
|
|
57
|
+
* The event is fired just after the POST request is sent.
|
|
60
58
|
*/
|
|
61
59
|
uploadStarted: {
|
|
62
60
|
parameters: {
|
|
63
61
|
/**
|
|
64
62
|
* The item that is going to be uploaded.
|
|
65
63
|
*/
|
|
66
|
-
item: {type: "sap.m.upload.
|
|
64
|
+
item: {type: "sap.m.upload.UploadSetwithTableItem"}
|
|
67
65
|
}
|
|
68
66
|
},
|
|
69
67
|
/**
|
|
70
|
-
* The event is fired every time an XHR request reports progress
|
|
68
|
+
* The event is fired every time an XHR request reports progress while uploading.
|
|
71
69
|
*/
|
|
72
70
|
uploadProgressed: {
|
|
73
71
|
parameters: {
|
|
74
72
|
/**
|
|
75
73
|
* The item that is being uploaded.
|
|
76
74
|
*/
|
|
77
|
-
item: {type: "sap.m.upload.
|
|
75
|
+
item: {type: "sap.m.upload.UploadSetwithTableItem"},
|
|
78
76
|
/**
|
|
79
77
|
* The number of bytes transferred since the beginning of the operation.
|
|
80
78
|
* This doesn't include headers and other overhead, but only the content itself
|
|
81
79
|
*/
|
|
82
80
|
loaded: {type: "int"},
|
|
83
81
|
/**
|
|
84
|
-
* The total number of bytes of content that
|
|
82
|
+
* The total number of bytes of content that is transferred during the operation.
|
|
85
83
|
* If the total size is unknown, this value is zero.
|
|
86
84
|
*/
|
|
87
85
|
total: {type: "int"}
|
|
@@ -95,7 +93,7 @@ sap.ui.define([
|
|
|
95
93
|
/**
|
|
96
94
|
* The item that was uploaded.
|
|
97
95
|
*/
|
|
98
|
-
item: {type: "sap.m.upload.
|
|
96
|
+
item: {type: "sap.m.upload.UploadSetwithTableItem"},
|
|
99
97
|
/**
|
|
100
98
|
* A JSON object containing the additional response parameters like response, responseXML, readyState, status and headers.
|
|
101
99
|
* <i>Sample response object:</i>
|
|
@@ -121,12 +119,12 @@ sap.ui.define([
|
|
|
121
119
|
};
|
|
122
120
|
|
|
123
121
|
/**
|
|
124
|
-
* Starts function for uploading one file object to given
|
|
122
|
+
* Starts the function for uploading one file object to a given URL. Returns promise that is resolved when the upload is finished, or is rejected when the upload fails.
|
|
125
123
|
*
|
|
126
|
-
* @param {File|Blob} oFile File or
|
|
124
|
+
* @param {File|Blob} oFile File or blob object to be uploaded.
|
|
127
125
|
* @param {string} sUrl Upload Url.
|
|
128
126
|
* @param {sap.ui.core.Item[]} [aHeaderFields] Collection of request header fields to be send along.
|
|
129
|
-
* @returns {Promise} Promise that
|
|
127
|
+
* @returns {Promise} Promise that is resolved when the upload is finished, or is rejected when the upload fails.
|
|
130
128
|
* @public
|
|
131
129
|
*/
|
|
132
130
|
Uploader.uploadFile = function (oFile, sUrl, aHeaderFields) {
|
|
@@ -163,7 +161,7 @@ sap.ui.define([
|
|
|
163
161
|
/**
|
|
164
162
|
* Starts the process of uploading the specified file.
|
|
165
163
|
*
|
|
166
|
-
* @param {sap.m.upload.
|
|
164
|
+
* @param {sap.m.upload.UploadSetwithTableItem} oItem Item representing the file to be uploaded.
|
|
167
165
|
* @param {sap.ui.core.Item[]} [aHeaderFields] Collection of request header fields to be send along.
|
|
168
166
|
* @public
|
|
169
167
|
*/
|
|
@@ -231,16 +229,16 @@ sap.ui.define([
|
|
|
231
229
|
/**
|
|
232
230
|
* Starts the process of downloading a file.
|
|
233
231
|
*
|
|
234
|
-
* @param {sap.m.upload.
|
|
232
|
+
* @param {sap.m.upload.UploadSetwithTableItem} oItem Item representing the file to be downloaded.
|
|
235
233
|
* @param {sap.ui.core.Item[]} aHeaderFields List of header fields to be added to the GET request.
|
|
236
|
-
* @param {boolean} bAskForLocation
|
|
237
|
-
* @return {boolean}
|
|
234
|
+
* @param {boolean} bAskForLocation If it is true, the location of where the file is to be downloaded is queried by a browser dialog.
|
|
235
|
+
* @return {boolean} It returns true if the download is processed successfully
|
|
238
236
|
* @public
|
|
239
237
|
*/
|
|
240
238
|
Uploader.prototype.download = function (oItem, aHeaderFields, bAskForLocation) {
|
|
241
239
|
var sUrl = this.getDownloadUrl() || oItem.getUrl();
|
|
242
240
|
|
|
243
|
-
// File.save doesn't work in Safari
|
|
241
|
+
// File.save doesn't work in Safari, however, URLHelper.redirect works.
|
|
244
242
|
// So, this overwrites the value of bAskForLocation in order to make it work.
|
|
245
243
|
if (Device.browser.name === "sf") {
|
|
246
244
|
bAskForLocation = false;
|