@openui5/sap.m 1.124.0 → 1.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +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 +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +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/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 +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 +1 -1
- 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/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 +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 +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 +2 -8
- 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 +6 -6
- 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/MenuListItem.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 +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 +1 -1
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -1
- 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 +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 +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +61 -60
- 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 +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +1 -1
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TileInfo.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 +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 +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 +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/library.js +2 -2
- 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 +1 -1
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +1 -1
- 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/Popup.js +1 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +7 -4
- 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/handler/xConfigHandler.js +6 -4
- 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 +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 +2 -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/plugins/UploadSetwithTable.js +155 -279
- 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 +1 -1
- 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 +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 +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/upload/ActionsPlaceholder.js +1 -1
- package/src/sap/m/upload/Column.js +1 -1
- package/src/sap/m/upload/FilePreviewDialog.js +1 -1
- package/src/sap/m/upload/UploadItem.js +1 -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/UploadSetwithTable.js +1 -1
- package/src/sap/m/upload/UploadSetwithTableItem.js +1 -1
- package/src/sap/m/upload/UploaderTableItem.js +1 -1
- package/src/sap/m/upload/p13n/PersManager.js +1 -1
- package/src/sap/m/upload/p13n/mediator/BaseMediator.js +1 -1
- package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +1 -1
- package/src/sap/m/upload/p13n/mediator/FilterMediator.js +1 -1
- package/src/sap/m/upload/p13n/mediator/GroupMediator.js +1 -1
- package/src/sap/m/upload/p13n/mediator/SortMediator.js +1 -1
- package/src/sap/m/upload/p13n/modules/PersPopupManager.js +1 -1
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class Provides configuration options and an extended behavior for the context menu that is applied to the related control.
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.124.
|
|
27
|
+
* @version 1.124.1
|
|
28
28
|
* @public
|
|
29
29
|
* @since 1.121
|
|
30
30
|
* @alias sap.m.plugins.ContextMenuSetting
|
|
@@ -37,7 +37,7 @@ sap.ui.define(["./PluginBase", "sap/base/Log", "sap/base/strings/formatMessage",
|
|
|
37
37
|
*
|
|
38
38
|
* @extends sap.ui.core.Element
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.124.
|
|
40
|
+
* @version 1.124.1
|
|
41
41
|
*
|
|
42
42
|
* @public
|
|
43
43
|
* @since 1.110
|
|
@@ -624,7 +624,7 @@ sap.ui.define(["./PluginBase", "sap/base/Log", "sap/base/strings/formatMessage",
|
|
|
624
624
|
PluginBase.setConfigs({
|
|
625
625
|
"sap.m.Table": {
|
|
626
626
|
_oWM: new WeakMap(),
|
|
627
|
-
allowForCopySelector: ".sapMLIBFocusable,.sapMLIBSelectM,.sapMLIBSelectS",
|
|
627
|
+
allowForCopySelector: ".sapMLIBFocusable,.sapMLIBSelectM,.sapMLIBSelectS,.sapMListTblCell",
|
|
628
628
|
selectedContexts: function(oTable, bSparse) {
|
|
629
629
|
const aSelectedContexts = [];
|
|
630
630
|
const oBindingInfo = oTable.getBindingInfo("items");
|
|
@@ -20,7 +20,7 @@ sap.ui.define(["sap/ui/core/Element"], function(Element) {
|
|
|
20
20
|
* @extends sap.ui.core.Element
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.124.
|
|
23
|
+
* @version 1.124.1
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @experimental Since 1.73. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* </pre>
|
|
73
73
|
*
|
|
74
74
|
* @extends sap.ui.core.Element
|
|
75
|
-
* @version 1.124.
|
|
75
|
+
* @version 1.124.1
|
|
76
76
|
* @author SAP SE
|
|
77
77
|
* @experimental Since 1.124
|
|
78
78
|
* @public
|
|
@@ -718,14 +718,14 @@ sap.ui.define([
|
|
|
718
718
|
* @param {sap.ui.model.Context} oBindingContext Context of the item to be renamed.
|
|
719
719
|
* @public
|
|
720
720
|
*/
|
|
721
|
-
UploadSetwithTable.prototype.renameItem = function (oBindingContext) {
|
|
721
|
+
UploadSetwithTable.prototype.renameItem = async function (oBindingContext) {
|
|
722
722
|
const oRowConfiguration = this.getRowConfiguration();
|
|
723
723
|
if (!oRowConfiguration) {
|
|
724
724
|
Log.error("Row configuration is not set for the plugin. Rename action is not possible.");
|
|
725
725
|
return;
|
|
726
726
|
}
|
|
727
727
|
if (oBindingContext) {
|
|
728
|
-
const oItem = this.
|
|
728
|
+
const oItem = await this.getItemForContext(oBindingContext);
|
|
729
729
|
const oDialog = this._getFileRenameDialog(oItem);
|
|
730
730
|
oDialog.open();
|
|
731
731
|
}
|
|
@@ -1429,6 +1429,136 @@ sap.ui.define([
|
|
|
1429
1429
|
return oIllustratedMessage;
|
|
1430
1430
|
};
|
|
1431
1431
|
|
|
1432
|
+
/**
|
|
1433
|
+
* @param {sap.ui.model.Context[]} aItemContexts array of item contexts.
|
|
1434
|
+
* @returns {Promise<sap.m.upload.UploadItem[]>} Promise on resolved returns the items array.
|
|
1435
|
+
* @private
|
|
1436
|
+
*/
|
|
1437
|
+
UploadSetwithTable.prototype.getItemsMap = function(aItemContexts) {
|
|
1438
|
+
return new Promise((resolve, reject) => {
|
|
1439
|
+
const aItemsmap = aItemContexts.map(async (oItemContext) => {
|
|
1440
|
+
const oItem = await this.getItemForContext(oItemContext);
|
|
1441
|
+
return oItem;
|
|
1442
|
+
});
|
|
1443
|
+
Promise.all(aItemsmap).then((aItems) => resolve(aItems));
|
|
1444
|
+
});
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* @param {Object} oBindingContext binding context for the item.
|
|
1449
|
+
* @param {boolean} createStaticBinding flag to create static binding.
|
|
1450
|
+
* @returns {Promise<sap.m.upload.UploadItem>} Promise on resolved returns the item with bound properties.
|
|
1451
|
+
* @private
|
|
1452
|
+
*/
|
|
1453
|
+
UploadSetwithTable.prototype.getItemForContext = async function(oBindingContext, createStaticBinding = false) {
|
|
1454
|
+
const sModelName = this.getConfig("getModelName");
|
|
1455
|
+
const oRowConfiguration = this.getRowConfiguration();
|
|
1456
|
+
|
|
1457
|
+
const oUploadSetItem = new UploadItem({
|
|
1458
|
+
customData: [
|
|
1459
|
+
new sap.ui.core.CustomData({
|
|
1460
|
+
key: "path",
|
|
1461
|
+
value: oBindingContext.getPath()
|
|
1462
|
+
}),
|
|
1463
|
+
new sap.ui.core.CustomData({
|
|
1464
|
+
key: "context",
|
|
1465
|
+
value: oBindingContext
|
|
1466
|
+
})
|
|
1467
|
+
]
|
|
1468
|
+
});
|
|
1469
|
+
|
|
1470
|
+
// Setting plugin as parent to the item to maintain the reference and access to plugin methods.
|
|
1471
|
+
oUploadSetItem.setParent(this);
|
|
1472
|
+
|
|
1473
|
+
if (sModelName) {
|
|
1474
|
+
oUploadSetItem.setBindingContext(oBindingContext, sModelName);
|
|
1475
|
+
} else {
|
|
1476
|
+
oUploadSetItem.setBindingContext(oBindingContext);
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
// BindProperties only if the types are valid else skip the binding to default value
|
|
1480
|
+
if (oRowConfiguration?._fileNameValidator(oBindingContext)) {
|
|
1481
|
+
await this.bindItemProperty(oUploadSetItem, {
|
|
1482
|
+
property: "fileName",
|
|
1483
|
+
propertyPath: oRowConfiguration.getFileNamePath(),
|
|
1484
|
+
modelName: sModelName,
|
|
1485
|
+
value: oBindingContext?.getProperty(oRowConfiguration.getFileNamePath())
|
|
1486
|
+
}, createStaticBinding);
|
|
1487
|
+
}
|
|
1488
|
+
if (oRowConfiguration?._urlValidator(oBindingContext)) {
|
|
1489
|
+
await this.bindItemProperty(oUploadSetItem, {
|
|
1490
|
+
property: "url",
|
|
1491
|
+
propertyPath: oRowConfiguration.getUrlPath(),
|
|
1492
|
+
modelName: sModelName,
|
|
1493
|
+
value: oBindingContext?.getProperty(oRowConfiguration.getUrlPath())
|
|
1494
|
+
}, createStaticBinding);
|
|
1495
|
+
}
|
|
1496
|
+
if (oRowConfiguration?._mediaTypeValidator(oBindingContext)) {
|
|
1497
|
+
await this.bindItemProperty(oUploadSetItem, {
|
|
1498
|
+
property: "mediaType",
|
|
1499
|
+
propertyPath: oRowConfiguration.getMediaTypePath(),
|
|
1500
|
+
modelName: sModelName,
|
|
1501
|
+
value: oBindingContext?.getProperty(oRowConfiguration.getMediaTypePath())
|
|
1502
|
+
}, createStaticBinding);
|
|
1503
|
+
}
|
|
1504
|
+
if (oRowConfiguration?._uploadUrlValidator(oBindingContext)) {
|
|
1505
|
+
await this.bindItemProperty(oUploadSetItem, {
|
|
1506
|
+
property: "uploadUrl",
|
|
1507
|
+
propertyPath: oRowConfiguration.getUploadUrlPath(),
|
|
1508
|
+
modelName: sModelName,
|
|
1509
|
+
value: oBindingContext?.getProperty(oRowConfiguration.getUploadUrlPath())
|
|
1510
|
+
}, createStaticBinding);
|
|
1511
|
+
}
|
|
1512
|
+
if (oRowConfiguration?._previewableValidator(oBindingContext)) {
|
|
1513
|
+
await this.bindItemProperty(oUploadSetItem, {
|
|
1514
|
+
property: "previewable",
|
|
1515
|
+
propertyPath: oRowConfiguration.getPreviewablePath(),
|
|
1516
|
+
modelName: sModelName,
|
|
1517
|
+
value: oBindingContext?.getProperty(oRowConfiguration.getPreviewablePath())
|
|
1518
|
+
}, createStaticBinding);
|
|
1519
|
+
}
|
|
1520
|
+
if (oRowConfiguration?._fileSizeValidator(oBindingContext)) {
|
|
1521
|
+
await this.bindItemProperty(oUploadSetItem, {
|
|
1522
|
+
property: "fileSize",
|
|
1523
|
+
propertyPath: oRowConfiguration.getFileSizePath(),
|
|
1524
|
+
modelName: sModelName,
|
|
1525
|
+
value: oBindingContext?.getProperty(oRowConfiguration.getFileSizePath())
|
|
1526
|
+
}, createStaticBinding);
|
|
1527
|
+
}
|
|
1528
|
+
return oUploadSetItem;
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* @param {sap.m.upload.UploadItem} oItem item to be bound.
|
|
1533
|
+
* @param {Object} mBindingInfo binding information for the property.
|
|
1534
|
+
* @param {boolean} createStaticBinding flag to create static binding.
|
|
1535
|
+
* @returns {Promise} Promise on resolved returns the bound property.
|
|
1536
|
+
* @private
|
|
1537
|
+
*/
|
|
1538
|
+
UploadSetwithTable.prototype.bindItemProperty = function (oItem, mBindingInfo, createStaticBinding = false) {
|
|
1539
|
+
|
|
1540
|
+
const {property, propertyPath, modelName} = mBindingInfo;
|
|
1541
|
+
|
|
1542
|
+
return new Promise((resolve, reject) => {
|
|
1543
|
+
let oBindingInfo = {
|
|
1544
|
+
path: modelName ? `${modelName}>${propertyPath}` : propertyPath,
|
|
1545
|
+
mode: sap.ui.model.BindingMode.TwoWay,
|
|
1546
|
+
events: {
|
|
1547
|
+
change: function () {
|
|
1548
|
+
oItem?.getBinding(property)?.detachChange((oEvent) => {
|
|
1549
|
+
// change event detached after the first change.
|
|
1550
|
+
});
|
|
1551
|
+
resolve();
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
};
|
|
1555
|
+
oBindingInfo = createStaticBinding ? Object.assign(oBindingInfo, {value: mBindingInfo?.value}) : oBindingInfo;
|
|
1556
|
+
|
|
1557
|
+
oItem.bindProperty(property, oBindingInfo);
|
|
1558
|
+
});
|
|
1559
|
+
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1432
1562
|
|
|
1433
1563
|
PluginBase.setConfigs({
|
|
1434
1564
|
"sap.ui.mdc.Table": {
|
|
@@ -1526,7 +1656,7 @@ sap.ui.define([
|
|
|
1526
1656
|
}
|
|
1527
1657
|
},
|
|
1528
1658
|
// Handles preview of the context passed. Requires access to all the contexts of inner table to setup the preview along with carousel.
|
|
1529
|
-
openFilePreview: function(oBindingContext) {
|
|
1659
|
+
openFilePreview: async function(oBindingContext) {
|
|
1530
1660
|
const oPlugin = this.getPluginInstance();
|
|
1531
1661
|
const oControl = this.getControlInstance();
|
|
1532
1662
|
|
|
@@ -1534,20 +1664,20 @@ sap.ui.define([
|
|
|
1534
1664
|
const oContexts = this.getTableContexts(oControl?._oTable);
|
|
1535
1665
|
let aUploadSetItems = [];
|
|
1536
1666
|
if (oContexts?.length) {
|
|
1537
|
-
aUploadSetItems =
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
const oPreviewUploaditem = aUploadSetItems.find((oItem) => oItem?.data("path") === oBindingContext.getPath());
|
|
1667
|
+
aUploadSetItems = await oPlugin.getItemsMap(oContexts, oRowConfiguration);
|
|
1668
|
+
const oPreviewUploaditem = aUploadSetItems.find((oItem) => oItem?.data("path") === oBindingContext.getPath());
|
|
1541
1669
|
|
|
1542
|
-
|
|
1543
|
-
|
|
1670
|
+
if (oPreviewUploaditem) {
|
|
1671
|
+
oPlugin._initiateFilePreview(oPreviewUploaditem, aUploadSetItems);
|
|
1672
|
+
}
|
|
1544
1673
|
}
|
|
1674
|
+
|
|
1545
1675
|
},
|
|
1546
1676
|
// Handles download of the file through the context passed.
|
|
1547
|
-
download: function(mDownloadInfo) {
|
|
1677
|
+
download: async function(mDownloadInfo) {
|
|
1548
1678
|
const {oBindingContext, bAskForLocation} = mDownloadInfo;
|
|
1549
1679
|
const oPlugin = this.getPluginInstance();
|
|
1550
|
-
const oItem =
|
|
1680
|
+
const oItem = await oPlugin.getItemForContext(oBindingContext);
|
|
1551
1681
|
if (oItem && oItem.getUrl()) {
|
|
1552
1682
|
return oPlugin._initiateFileDownload(oItem, bAskForLocation);
|
|
1553
1683
|
}
|
|
@@ -1560,91 +1690,6 @@ sap.ui.define([
|
|
|
1560
1690
|
return oTable?.getBinding("rows")?.getContexts();
|
|
1561
1691
|
}
|
|
1562
1692
|
return null;
|
|
1563
|
-
},
|
|
1564
|
-
getItemsMap: function(aItemContexts) {
|
|
1565
|
-
return aItemContexts.map((oItemContext) => {
|
|
1566
|
-
return this.getItemForContext(oItemContext);
|
|
1567
|
-
});
|
|
1568
|
-
},
|
|
1569
|
-
bindItemProperty: function(oItem, mBindingInfo) {
|
|
1570
|
-
const {property, propertyPath, modelName} = mBindingInfo;
|
|
1571
|
-
|
|
1572
|
-
oItem.bindProperty(property, {
|
|
1573
|
-
path: modelName ? `${modelName}>${propertyPath}` : propertyPath,
|
|
1574
|
-
mode: sap.ui.model.BindingMode.TwoWay
|
|
1575
|
-
});
|
|
1576
|
-
},
|
|
1577
|
-
getItemForContext: function(oBindingContext) {
|
|
1578
|
-
const oPlugin = this.getPluginInstance();
|
|
1579
|
-
const sModelName = this.getModelName();
|
|
1580
|
-
const oRowConfiguration = oPlugin.getRowConfiguration();
|
|
1581
|
-
|
|
1582
|
-
const oUploadSetItem = new UploadItem({
|
|
1583
|
-
customData: [
|
|
1584
|
-
new sap.ui.core.CustomData({
|
|
1585
|
-
key: "path",
|
|
1586
|
-
value: oBindingContext.getPath()
|
|
1587
|
-
}),
|
|
1588
|
-
new sap.ui.core.CustomData({
|
|
1589
|
-
key: "context",
|
|
1590
|
-
value: oBindingContext
|
|
1591
|
-
})
|
|
1592
|
-
]
|
|
1593
|
-
});
|
|
1594
|
-
|
|
1595
|
-
// Setting plugin as parent to the item to maintain the reference and access to plugin methods.
|
|
1596
|
-
oUploadSetItem.setParent(oPlugin);
|
|
1597
|
-
|
|
1598
|
-
if (sModelName) {
|
|
1599
|
-
oUploadSetItem.setBindingContext(oBindingContext, sModelName);
|
|
1600
|
-
} else {
|
|
1601
|
-
oUploadSetItem.setBindingContext(oBindingContext);
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
// BindProperties only if the types are valid else skip the binding to default value
|
|
1605
|
-
if (oRowConfiguration?._fileNameValidator(oBindingContext)) {
|
|
1606
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1607
|
-
property: "fileName",
|
|
1608
|
-
propertyPath: oRowConfiguration.getFileNamePath(),
|
|
1609
|
-
modelName: sModelName
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
if (oRowConfiguration?._urlValidator(oBindingContext)) {
|
|
1613
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1614
|
-
property: "url",
|
|
1615
|
-
propertyPath: oRowConfiguration.getUrlPath(),
|
|
1616
|
-
modelName: sModelName
|
|
1617
|
-
});
|
|
1618
|
-
}
|
|
1619
|
-
if (oRowConfiguration?._mediaTypeValidator(oBindingContext)) {
|
|
1620
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1621
|
-
property: "mediaType",
|
|
1622
|
-
propertyPath: oRowConfiguration.getMediaTypePath(),
|
|
1623
|
-
modelName: sModelName
|
|
1624
|
-
});
|
|
1625
|
-
}
|
|
1626
|
-
if (oRowConfiguration?._uploadUrlValidator(oBindingContext)) {
|
|
1627
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1628
|
-
property: "uploadUrl",
|
|
1629
|
-
propertyPath: oRowConfiguration.getUploadUrlPath(),
|
|
1630
|
-
modelName: sModelName
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
if (oRowConfiguration?._previewableValidator(oBindingContext)) {
|
|
1634
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1635
|
-
property: "previewable",
|
|
1636
|
-
propertyPath: oRowConfiguration.getPreviewablePath(),
|
|
1637
|
-
modelName: sModelName
|
|
1638
|
-
});
|
|
1639
|
-
}
|
|
1640
|
-
if (oRowConfiguration?._fileSizeValidator(oBindingContext)) {
|
|
1641
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1642
|
-
property: "fileSize",
|
|
1643
|
-
propertyPath: oRowConfiguration.getFileSizePath(),
|
|
1644
|
-
modelName: sModelName
|
|
1645
|
-
});
|
|
1646
|
-
}
|
|
1647
|
-
return oUploadSetItem;
|
|
1648
1693
|
}
|
|
1649
1694
|
},
|
|
1650
1695
|
"sap.m.Table": {
|
|
@@ -1738,7 +1783,7 @@ sap.ui.define([
|
|
|
1738
1783
|
}
|
|
1739
1784
|
},
|
|
1740
1785
|
// Handles preview of the context passed. Requires access to all the contexts of inner table to setup the preview along with carousel.
|
|
1741
|
-
openFilePreview: function(oBindingContext) {
|
|
1786
|
+
openFilePreview: async function(oBindingContext) {
|
|
1742
1787
|
const oPlugin = this.getPluginInstance();
|
|
1743
1788
|
const oControl = this.getControlInstance();
|
|
1744
1789
|
|
|
@@ -1746,7 +1791,7 @@ sap.ui.define([
|
|
|
1746
1791
|
const oContexts = this.getTableContexts(oControl);
|
|
1747
1792
|
let aUploadSetItems = [];
|
|
1748
1793
|
if (oContexts?.length) {
|
|
1749
|
-
aUploadSetItems =
|
|
1794
|
+
aUploadSetItems = await oPlugin.getItemsMap(oContexts, oRowConfiguration);
|
|
1750
1795
|
}
|
|
1751
1796
|
|
|
1752
1797
|
const oPreviewUploaditem = aUploadSetItems.find((oItem) => oItem?.data("path") === oBindingContext.getPath());
|
|
@@ -1756,10 +1801,10 @@ sap.ui.define([
|
|
|
1756
1801
|
}
|
|
1757
1802
|
},
|
|
1758
1803
|
// Handles download of the file through the context passed.
|
|
1759
|
-
download: function(mDownloadInfo) {
|
|
1804
|
+
download: async function(mDownloadInfo) {
|
|
1760
1805
|
const {oBindingContext, bAskForLocation} = mDownloadInfo;
|
|
1761
1806
|
const oPlugin = this.getPluginInstance();
|
|
1762
|
-
const oItem =
|
|
1807
|
+
const oItem = await oPlugin.getItemForContext(oBindingContext);
|
|
1763
1808
|
if (oItem && oItem.getUrl()) {
|
|
1764
1809
|
return oPlugin._initiateFileDownload(oItem, bAskForLocation);
|
|
1765
1810
|
}
|
|
@@ -1767,91 +1812,6 @@ sap.ui.define([
|
|
|
1767
1812
|
},
|
|
1768
1813
|
getTableContexts: function(oTable) {
|
|
1769
1814
|
return oTable?.getBinding("items")?.getContexts() || null;
|
|
1770
|
-
},
|
|
1771
|
-
getItemsMap: function(aItemContexts) {
|
|
1772
|
-
return aItemContexts.map((oItemContext) => {
|
|
1773
|
-
return this.getItemForContext(oItemContext);
|
|
1774
|
-
});
|
|
1775
|
-
},
|
|
1776
|
-
bindItemProperty: function(oItem, mBindingInfo) {
|
|
1777
|
-
const {property, propertyPath, modelName} = mBindingInfo;
|
|
1778
|
-
|
|
1779
|
-
oItem.bindProperty(property, {
|
|
1780
|
-
path: modelName ? `${modelName}>${propertyPath}` : propertyPath,
|
|
1781
|
-
mode: sap.ui.model.BindingMode.TwoWay
|
|
1782
|
-
});
|
|
1783
|
-
},
|
|
1784
|
-
getItemForContext: function(oBindingContext) {
|
|
1785
|
-
const oPlugin = this.getPluginInstance();
|
|
1786
|
-
const sModelName = this.getModelName();
|
|
1787
|
-
const oRowConfiguration = oPlugin.getRowConfiguration();
|
|
1788
|
-
|
|
1789
|
-
const oUploadSetItem = new UploadItem({
|
|
1790
|
-
customData: [
|
|
1791
|
-
new sap.ui.core.CustomData({
|
|
1792
|
-
key: "path",
|
|
1793
|
-
value: oBindingContext.getPath()
|
|
1794
|
-
}),
|
|
1795
|
-
new sap.ui.core.CustomData({
|
|
1796
|
-
key: "context",
|
|
1797
|
-
value: oBindingContext
|
|
1798
|
-
})
|
|
1799
|
-
]
|
|
1800
|
-
});
|
|
1801
|
-
|
|
1802
|
-
// Setting plugin as parent to the item to maintain the reference and access to plugin methods.
|
|
1803
|
-
oUploadSetItem.setParent(oPlugin);
|
|
1804
|
-
|
|
1805
|
-
if (sModelName) {
|
|
1806
|
-
oUploadSetItem.setBindingContext(oBindingContext, sModelName);
|
|
1807
|
-
} else {
|
|
1808
|
-
oUploadSetItem.setBindingContext(oBindingContext);
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
// BindProperties only if the types are valid else skip the binding to default value
|
|
1812
|
-
if (oRowConfiguration?._fileNameValidator(oBindingContext)) {
|
|
1813
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1814
|
-
property: "fileName",
|
|
1815
|
-
propertyPath: oRowConfiguration.getFileNamePath(),
|
|
1816
|
-
modelName: sModelName
|
|
1817
|
-
});
|
|
1818
|
-
}
|
|
1819
|
-
if (oRowConfiguration?._urlValidator(oBindingContext)) {
|
|
1820
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1821
|
-
property: "url",
|
|
1822
|
-
propertyPath: oRowConfiguration.getUrlPath(),
|
|
1823
|
-
modelName: sModelName
|
|
1824
|
-
});
|
|
1825
|
-
}
|
|
1826
|
-
if (oRowConfiguration?._mediaTypeValidator(oBindingContext)) {
|
|
1827
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1828
|
-
property: "mediaType",
|
|
1829
|
-
propertyPath: oRowConfiguration.getMediaTypePath(),
|
|
1830
|
-
modelName: sModelName
|
|
1831
|
-
});
|
|
1832
|
-
}
|
|
1833
|
-
if (oRowConfiguration?._uploadUrlValidator(oBindingContext)) {
|
|
1834
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1835
|
-
property: "uploadUrl",
|
|
1836
|
-
propertyPath: oRowConfiguration.getUploadUrlPath(),
|
|
1837
|
-
modelName: sModelName
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
if (oRowConfiguration?._previewableValidator(oBindingContext)) {
|
|
1841
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1842
|
-
property: "previewable",
|
|
1843
|
-
propertyPath: oRowConfiguration.getPreviewablePath(),
|
|
1844
|
-
modelName: sModelName
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
if (oRowConfiguration?._fileSizeValidator(oBindingContext)) {
|
|
1848
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
1849
|
-
property: "fileSize",
|
|
1850
|
-
propertyPath: oRowConfiguration.getFileSizePath(),
|
|
1851
|
-
modelName: sModelName
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
return oUploadSetItem;
|
|
1855
1815
|
}
|
|
1856
1816
|
},
|
|
1857
1817
|
"sap.ui.table.Table": {
|
|
@@ -1945,7 +1905,7 @@ sap.ui.define([
|
|
|
1945
1905
|
}
|
|
1946
1906
|
},
|
|
1947
1907
|
// Handles preview of the context passed. Requires access to all the contexts of inner table to setup the preview along with carousel.
|
|
1948
|
-
openFilePreview: function(oBindingContext) {
|
|
1908
|
+
openFilePreview: async function(oBindingContext) {
|
|
1949
1909
|
const oPlugin = this.getPluginInstance();
|
|
1950
1910
|
const oControl = this.getControlInstance();
|
|
1951
1911
|
|
|
@@ -1953,20 +1913,21 @@ sap.ui.define([
|
|
|
1953
1913
|
const oContexts = this.getTableContexts(oControl);
|
|
1954
1914
|
let aUploadSetItems = [];
|
|
1955
1915
|
if (oContexts?.length) {
|
|
1956
|
-
aUploadSetItems =
|
|
1957
|
-
}
|
|
1916
|
+
aUploadSetItems = await oPlugin.getItemsMap(oContexts, oRowConfiguration);
|
|
1958
1917
|
|
|
1959
|
-
|
|
1918
|
+
const oPreviewUploaditem = aUploadSetItems.find((oItem) => oItem?.data("path") === oBindingContext.getPath());
|
|
1960
1919
|
|
|
1961
|
-
|
|
1962
|
-
|
|
1920
|
+
if (oPreviewUploaditem) {
|
|
1921
|
+
oPlugin._initiateFilePreview(oPreviewUploaditem, aUploadSetItems);
|
|
1922
|
+
}
|
|
1963
1923
|
}
|
|
1924
|
+
|
|
1964
1925
|
},
|
|
1965
1926
|
// Handles download of the file through the context passed.
|
|
1966
|
-
download: function(mDownloadInfo) {
|
|
1927
|
+
download: async function(mDownloadInfo) {
|
|
1967
1928
|
const {oBindingContext, bAskForLocation} = mDownloadInfo;
|
|
1968
1929
|
const oPlugin = this.getPluginInstance();
|
|
1969
|
-
const oItem =
|
|
1930
|
+
const oItem = await oPlugin.getItemForContext(oBindingContext);
|
|
1970
1931
|
if (oItem && oItem.getUrl()) {
|
|
1971
1932
|
return oPlugin._initiateFileDownload(oItem, bAskForLocation);
|
|
1972
1933
|
}
|
|
@@ -1974,91 +1935,6 @@ sap.ui.define([
|
|
|
1974
1935
|
},
|
|
1975
1936
|
getTableContexts: function(oTable) {
|
|
1976
1937
|
return oTable?.getBinding("rows")?.getContexts() || null;
|
|
1977
|
-
},
|
|
1978
|
-
getItemsMap: function(aItemContexts) {
|
|
1979
|
-
return aItemContexts.map((oItemContext) => {
|
|
1980
|
-
return this.getItemForContext(oItemContext);
|
|
1981
|
-
});
|
|
1982
|
-
},
|
|
1983
|
-
bindItemProperty: function(oItem, mBindingInfo) {
|
|
1984
|
-
const {property, propertyPath, modelName} = mBindingInfo;
|
|
1985
|
-
|
|
1986
|
-
oItem.bindProperty(property, {
|
|
1987
|
-
path: modelName ? `${modelName}>${propertyPath}` : propertyPath,
|
|
1988
|
-
mode: sap.ui.model.BindingMode.TwoWay
|
|
1989
|
-
});
|
|
1990
|
-
},
|
|
1991
|
-
getItemForContext: function(oBindingContext) {
|
|
1992
|
-
const oPlugin = this.getPluginInstance();
|
|
1993
|
-
const sModelName = this.getModelName();
|
|
1994
|
-
const oRowConfiguration = oPlugin.getRowConfiguration();
|
|
1995
|
-
|
|
1996
|
-
const oUploadSetItem = new UploadItem({
|
|
1997
|
-
customData: [
|
|
1998
|
-
new sap.ui.core.CustomData({
|
|
1999
|
-
key: "path",
|
|
2000
|
-
value: oBindingContext.getPath()
|
|
2001
|
-
}),
|
|
2002
|
-
new sap.ui.core.CustomData({
|
|
2003
|
-
key: "context",
|
|
2004
|
-
value: oBindingContext
|
|
2005
|
-
})
|
|
2006
|
-
]
|
|
2007
|
-
});
|
|
2008
|
-
|
|
2009
|
-
// Setting plugin as parent to the item to maintain the reference and access to plugin methods.
|
|
2010
|
-
oUploadSetItem.setParent(oPlugin);
|
|
2011
|
-
|
|
2012
|
-
if (sModelName) {
|
|
2013
|
-
oUploadSetItem.setBindingContext(oBindingContext, sModelName);
|
|
2014
|
-
} else {
|
|
2015
|
-
oUploadSetItem.setBindingContext(oBindingContext);
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
// BindProperties only if the types are valid else skip the binding to default value
|
|
2019
|
-
if (oRowConfiguration?._fileNameValidator(oBindingContext)) {
|
|
2020
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
2021
|
-
property: "fileName",
|
|
2022
|
-
propertyPath: oRowConfiguration.getFileNamePath(),
|
|
2023
|
-
modelName: sModelName
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
if (oRowConfiguration?._urlValidator(oBindingContext)) {
|
|
2027
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
2028
|
-
property: "url",
|
|
2029
|
-
propertyPath: oRowConfiguration.getUrlPath(),
|
|
2030
|
-
modelName: sModelName
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
if (oRowConfiguration?._mediaTypeValidator(oBindingContext)) {
|
|
2034
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
2035
|
-
property: "mediaType",
|
|
2036
|
-
propertyPath: oRowConfiguration.getMediaTypePath(),
|
|
2037
|
-
modelName: sModelName
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
if (oRowConfiguration?._uploadUrlValidator(oBindingContext)) {
|
|
2041
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
2042
|
-
property: "uploadUrl",
|
|
2043
|
-
propertyPath: oRowConfiguration.getUploadUrlPath(),
|
|
2044
|
-
modelName: sModelName
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
if (oRowConfiguration?._previewableValidator(oBindingContext)) {
|
|
2048
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
2049
|
-
property: "previewable",
|
|
2050
|
-
propertyPath: oRowConfiguration.getPreviewablePath(),
|
|
2051
|
-
modelName: sModelName
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
if (oRowConfiguration?._fileSizeValidator(oBindingContext)) {
|
|
2055
|
-
this.bindItemProperty(oUploadSetItem, {
|
|
2056
|
-
property: "fileSize",
|
|
2057
|
-
propertyPath: oRowConfiguration.getFileSizePath(),
|
|
2058
|
-
modelName: sModelName
|
|
2059
|
-
});
|
|
2060
|
-
}
|
|
2061
|
-
return oUploadSetItem;
|
|
2062
1938
|
}
|
|
2063
1939
|
}
|
|
2064
1940
|
}, UploadSetwithTable);
|