@openui5/sap.ui.integration 1.131.1 → 1.132.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/THIRDPARTY.txt +1 -1
- package/package.json +7 -7
- package/src/sap/ui/integration/.library +2 -2
- package/src/sap/ui/integration/ActionDefinition.js +2 -2
- package/src/sap/ui/integration/Designtime.js +2 -2
- package/src/sap/ui/integration/Extension.js +2 -2
- package/src/sap/ui/integration/Host.js +2 -2
- package/src/sap/ui/integration/bindingFeatures/DateRange.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +2 -2
- package/src/sap/ui/integration/cards/AnalyticalContent.js +6 -2
- package/src/sap/ui/integration/cards/AnalyticalContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +2 -2
- package/src/sap/ui/integration/cards/AnalyticsCloudContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +11 -4
- package/src/sap/ui/integration/cards/BaseContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/BaseListContent.js +16 -24
- package/src/sap/ui/integration/cards/BaseListContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +6 -2
- package/src/sap/ui/integration/cards/CalendarContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/ComponentContent.js +2 -2
- package/src/sap/ui/integration/cards/ComponentContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +2 -2
- package/src/sap/ui/integration/cards/Header.js +64 -64
- package/src/sap/ui/integration/cards/ListContent.js +7 -5
- package/src/sap/ui/integration/cards/ListContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +99 -97
- package/src/sap/ui/integration/cards/ObjectContent.js +2 -2
- package/src/sap/ui/integration/cards/ObjectContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +9 -13
- package/src/sap/ui/integration/cards/TableContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContent.js +2 -2
- package/src/sap/ui/integration/cards/TimelineContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/WebPageContent.js +48 -31
- package/src/sap/ui/integration/cards/WebPageContentRenderer.js +26 -13
- package/src/sap/ui/integration/cards/actions/BaseAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/CardActions.js +12 -3
- package/src/sap/ui/integration/cards/actions/CustomAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/DateChangeAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/HideCardAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/MonthChangeAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/NavigationAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/ShowCardAction.js +1 -1
- package/src/sap/ui/integration/cards/actions/SubmitAction.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +2 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +2 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +2 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +2 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputTime.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +2 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/hostConfig.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/overwrites/ActionRender.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/overwrites/inputsGeneralOverwrites.js +1 -1
- package/src/sap/ui/integration/cards/data/CsrfToken.js +1 -1
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +2 -2
- package/src/sap/ui/integration/cards/filters/ComboBoxFilter.js +13 -5
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +2 -2
- package/src/sap/ui/integration/cards/filters/FilterBar.js +2 -2
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +2 -2
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +2 -2
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +2 -2
- package/src/sap/ui/integration/cards/list/MicrochartsResizeHelper.js +2 -2
- package/src/sap/ui/integration/controls/ActionsStrip.js +2 -2
- package/src/sap/ui/integration/controls/ActionsToolbar.js +20 -10
- package/src/sap/ui/integration/controls/ActionsToolbarRenderer.js +1 -1
- package/src/sap/ui/integration/controls/BlockingMessage.js +2 -2
- package/src/sap/ui/integration/controls/ComboBox.js +2 -2
- package/src/sap/ui/integration/controls/ImageWithOverlay.js +2 -2
- package/src/sap/ui/integration/controls/ImageWithOverlayRenderer.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +2 -2
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +1 -1
- package/src/sap/ui/integration/controls/Microchart.js +2 -2
- package/src/sap/ui/integration/controls/MicrochartLegend.js +2 -2
- package/src/sap/ui/integration/controls/MicrochartLegendRenderer.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartRenderer.js +1 -1
- package/src/sap/ui/integration/controls/ObjectStatus.js +2 -2
- package/src/sap/ui/integration/customElements/CustomElementBase.js +1 -1
- package/src/sap/ui/integration/customElements/CustomElementCard.js +1 -1
- package/src/sap/ui/integration/customElements/CustomElementCardEditor.js +1 -1
- package/src/sap/ui/integration/customElements/CustomElementEditor.js +1 -1
- package/src/sap/ui/integration/delegate/Paginator.js +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saptrc.properties +80 -80
- package/src/sap/ui/integration/designtime/baseEditor/layout/Form.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/util/BaseDefaultValidatorModules.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/EvalUtils.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/StylesheetManager.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/resolveBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/cleanupDesigntimeMetadata.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/createPromise.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/escapeParameter.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/findClosestInstance.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/hasTag.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/isTemplate.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/isValidBindingString.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsPatternMatch.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/BASEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/CardEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/PropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/AppConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/FooterConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/HeaderConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/ListCardConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/ObjectCardConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/TableCardConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateActionConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateDataConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateFooterActionsStripConfig.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/index.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saptrc.properties +171 -171
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/util/CommonPatterns.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/validator/IsPatternMatchList.js +1 -1
- package/src/sap/ui/integration/designtime/editor/Card.js +2 -2
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +2 -2
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +2 -2
- package/src/sap/ui/integration/designtime/editor/CardRenderer.js +1 -1
- package/src/sap/ui/integration/editor/Editor.js +88 -38
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +70 -31
- package/src/sap/ui/integration/editor/Extension.js +3 -3
- package/src/sap/ui/integration/editor/Manifest.js +2 -2
- package/src/sap/ui/integration/editor/Merger.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +3 -2
- package/src/sap/ui/integration/editor/fields/BaseField.js +8 -4
- package/src/sap/ui/integration/editor/fields/BooleanField.js +2 -2
- package/src/sap/ui/integration/editor/fields/DateField.js +2 -2
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +2 -2
- package/src/sap/ui/integration/editor/fields/DestinationField.js +2 -2
- package/src/sap/ui/integration/editor/fields/GroupField.js +2 -2
- package/src/sap/ui/integration/editor/fields/IntegerField.js +2 -2
- package/src/sap/ui/integration/editor/fields/NumberField.js +2 -2
- package/src/sap/ui/integration/editor/fields/ObjectField.js +31 -7
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +2 -2
- package/src/sap/ui/integration/editor/fields/StringField.js +32 -15
- package/src/sap/ui/integration/editor/fields/StringListField.js +2 -2
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +2 -2
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +2 -2
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +2 -2
- package/src/sap/ui/integration/editor/fields/viz/ImageSelect.js +2 -2
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +2 -2
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +2 -2
- package/src/sap/ui/integration/extensions/OAuth3LO.js +2 -2
- package/src/sap/ui/integration/formatters/DateTimeFormatter.js +1 -1
- package/src/sap/ui/integration/formatters/IconFormatter.js +1 -1
- package/src/sap/ui/integration/formatters/InitialsFormatter.js +1 -1
- package/src/sap/ui/integration/formatters/NumberFormatter.js +1 -1
- package/src/sap/ui/integration/formatters/TextFormatter.js +1 -1
- package/src/sap/ui/integration/library-bootstrap.js +1 -1
- package/src/sap/ui/integration/library.js +3 -3
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +159 -155
- package/src/sap/ui/integration/messagebundle_ko.properties +1 -1
- package/src/sap/ui/integration/model/ContextModel.js +2 -2
- package/src/sap/ui/integration/model/ObservableModel.js +2 -2
- package/src/sap/ui/integration/sap-ui-integration-config.js +1 -1
- package/src/sap/ui/integration/sap-ui-integration-define-nojQuery.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +7 -3
- package/src/sap/ui/integration/services/Data.js +1 -1
- package/src/sap/ui/integration/services/Navigation.js +1 -1
- package/src/sap/ui/integration/services/Service.js +1 -1
- package/src/sap/ui/integration/themes/base/Card.less +21 -6
- package/src/sap/ui/integration/themes/base/ListContentItem.less +5 -0
- package/src/sap/ui/integration/themes/base/WebPageContent.less +5 -0
- package/src/sap/ui/integration/themes/base/library.source.less +1 -1
- package/src/sap/ui/integration/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/integration/util/AnalyticsCloudHelper.js +2 -2
- package/src/sap/ui/integration/util/BaseFactory.js +2 -2
- package/src/sap/ui/integration/util/BindingHelper.js +2 -2
- package/src/sap/ui/integration/util/BindingResolver.js +2 -2
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/CardMerger.js +1 -1
- package/src/sap/ui/integration/util/CardObserver.js +2 -2
- package/src/sap/ui/integration/util/ComboBoxHelper.js +2 -2
- package/src/sap/ui/integration/util/ContentFactory.js +2 -2
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +2 -2
- package/src/sap/ui/integration/util/DataProvider.js +2 -2
- package/src/sap/ui/integration/util/DataProviderFactory.js +3 -3
- package/src/sap/ui/integration/util/DateRangeHelper.js +1 -1
- package/src/sap/ui/integration/util/Destinations.js +2 -2
- package/src/sap/ui/integration/util/DisplayVariants.js +2 -2
- package/src/sap/ui/integration/util/Duration.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +2 -2
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +2 -2
- package/src/sap/ui/integration/util/Form.js +3 -3
- package/src/sap/ui/integration/util/HeaderFactory.js +4 -4
- package/src/sap/ui/integration/util/JSONBindingHelper.js +2 -2
- package/src/sap/ui/integration/util/LoadingProvider.js +2 -2
- package/src/sap/ui/integration/util/Manifest.js +2 -2
- package/src/sap/ui/integration/util/ManifestResolver.js +19 -1
- package/src/sap/ui/integration/util/Measurement.js +1 -1
- package/src/sap/ui/integration/util/OAuth3LOHelper.js +2 -2
- package/src/sap/ui/integration/util/ParameterMap.js +1 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +2 -2
- package/src/sap/ui/integration/util/ServiceDataProvider.js +2 -2
- package/src/sap/ui/integration/util/ServiceManager.js +2 -2
- package/src/sap/ui/integration/util/SkeletonCard.js +2 -2
- package/src/sap/ui/integration/util/SorterHelper.js +45 -0
- package/src/sap/ui/integration/util/Utils.js +2 -2
- package/src/sap/ui/integration/util/Validators.js +2 -2
- package/src/sap/ui/integration/util/loadCardEditor.js +1 -1
- package/src/sap/ui/integration/util/openCardDialog.js +60 -57
- package/src/sap/ui/integration/widgets/Card.js +43 -7
- package/src/sap/ui/integration/widgets/CardRenderer.js +1 -1
- package/src/sap-ui-integration-card-editor.js +1 -1
- package/src/sap-ui-integration-editor.js +1 -1
- package/src/sap-ui-integration.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @extends sap.ui.integration.editor.Editor
|
|
48
48
|
*
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.132.1
|
|
51
51
|
* @constructor
|
|
52
52
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
53
53
|
* @since 1.83
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @alias sap.ui.integration.designtime.editor.CardPreview
|
|
43
43
|
* @author SAP SE
|
|
44
44
|
* @since 1.83.0
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.132.1
|
|
46
46
|
* @private
|
|
47
47
|
* @experimental since 1.83.0
|
|
48
48
|
* @ui5-restricted
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -133,7 +133,7 @@ sap.ui.define([
|
|
|
133
133
|
* @extends sap.ui.core.Control
|
|
134
134
|
*
|
|
135
135
|
* @author SAP SE
|
|
136
|
-
* @version 1.
|
|
136
|
+
* @version 1.132.1
|
|
137
137
|
* @constructor
|
|
138
138
|
* @since 1.94
|
|
139
139
|
* @private
|
|
@@ -221,8 +221,11 @@ sap.ui.define([
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
events: {
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
manifestReady: {},
|
|
225
|
+
fieldReady: {},
|
|
226
|
+
destinationReady: {},
|
|
227
|
+
UIReady: {},
|
|
228
|
+
ready: {}
|
|
226
229
|
}
|
|
227
230
|
},
|
|
228
231
|
renderer: {
|
|
@@ -235,7 +238,7 @@ sap.ui.define([
|
|
|
235
238
|
oRm.openStart("div", oControl);
|
|
236
239
|
oRm.openEnd();
|
|
237
240
|
//render the additional content if alignment of it is "top"
|
|
238
|
-
if (oControl.
|
|
241
|
+
if (oControl.isFieldReady() && sPreviewPosition === "top") {
|
|
239
242
|
oRm.renderControl(oPreview);
|
|
240
243
|
}
|
|
241
244
|
}
|
|
@@ -243,7 +246,7 @@ sap.ui.define([
|
|
|
243
246
|
oRm.openStart("div", oControl);
|
|
244
247
|
oRm.class("sapUiIntegrationEditor");
|
|
245
248
|
oRm.openEnd();
|
|
246
|
-
if (oControl.
|
|
249
|
+
if (oControl.isFieldReady()){
|
|
247
250
|
oRm.renderControl(oPreview);
|
|
248
251
|
}
|
|
249
252
|
} else if (bShowPreview && (sPreviewPosition === "top" || sPreviewPosition === "bottom")) {
|
|
@@ -255,7 +258,7 @@ sap.ui.define([
|
|
|
255
258
|
oRm.class("sapUiIntegrationEditor");
|
|
256
259
|
oRm.openEnd();
|
|
257
260
|
}
|
|
258
|
-
if (oControl.
|
|
261
|
+
if (oControl.isFieldReady()) {
|
|
259
262
|
//surrounding div tag for form <div class="sapUiIntegrationEditorForm"
|
|
260
263
|
oRm.openStart("div");
|
|
261
264
|
oRm.class("sapUiIntegrationEditorForm");
|
|
@@ -858,20 +861,34 @@ sap.ui.define([
|
|
|
858
861
|
}
|
|
859
862
|
oRm.close("div");
|
|
860
863
|
}
|
|
864
|
+
if (oControl.isFieldReady()) {
|
|
865
|
+
oControl.fireUIReady();
|
|
866
|
+
if (oControl._aFieldDataReadyPromise.length > 0) {
|
|
867
|
+
Promise.all(oControl._aFieldDataReadyPromise).then(function () {
|
|
868
|
+
oControl._ready = true;
|
|
869
|
+
oControl.fireReady();
|
|
870
|
+
});
|
|
871
|
+
} else {
|
|
872
|
+
oControl._ready = true;
|
|
873
|
+
oControl.fireReady();
|
|
874
|
+
}
|
|
875
|
+
}
|
|
861
876
|
}
|
|
862
877
|
}
|
|
863
878
|
});
|
|
864
879
|
|
|
865
880
|
/**
|
|
866
|
-
|
|
867
|
-
|
|
881
|
+
* Init of the editor
|
|
882
|
+
*/
|
|
868
883
|
Editor.prototype.init = function () {
|
|
869
884
|
if (Editor.oResourceBundle && Editor.oResourceBundle.sLocale !== Utils._language) {
|
|
870
885
|
Editor.oResourceBundle = Library.getResourceBundleFor("sap.ui.integration", Utils._language);
|
|
871
886
|
this._applyLanguageChange();
|
|
872
887
|
}
|
|
888
|
+
this._fieldReady = false;
|
|
873
889
|
this._ready = false;
|
|
874
890
|
this._aFieldReadyPromise = [];
|
|
891
|
+
this._aFieldDataReadyPromise = [];
|
|
875
892
|
this._oResourceBundle = Library.getResourceBundleFor("sap.ui.integration", Utils._language);
|
|
876
893
|
this._appliedLayerManifestChanges = [];
|
|
877
894
|
this._currentLayerManifestChanges = {};
|
|
@@ -890,7 +907,7 @@ sap.ui.define([
|
|
|
890
907
|
* @experimental since 1.94
|
|
891
908
|
* @public
|
|
892
909
|
* @author SAP SE
|
|
893
|
-
* @version 1.
|
|
910
|
+
* @version 1.132.1
|
|
894
911
|
* @borrows sap.ui.integration.editor.Editor#getParameters as getParameters
|
|
895
912
|
* @borrows sap.ui.integration.editor.Editor#resolveDestination as resolveDestination
|
|
896
913
|
* @borrows sap.ui.integration.editor.Editor#request as request
|
|
@@ -906,7 +923,7 @@ sap.ui.define([
|
|
|
906
923
|
|
|
907
924
|
Editor.prototype.getParameters = function () {
|
|
908
925
|
if (!this._isManifestReady) {
|
|
909
|
-
Log.error("
|
|
926
|
+
Log.error("sap.ui.integration.editor.Editor: the manifest is not ready. Consider using the 'manifestReady' event.", "sap.ui.integration.editor.Editor");
|
|
910
927
|
return null;
|
|
911
928
|
}
|
|
912
929
|
|
|
@@ -932,6 +949,13 @@ sap.ui.define([
|
|
|
932
949
|
return this._ready;
|
|
933
950
|
};
|
|
934
951
|
|
|
952
|
+
/**
|
|
953
|
+
* Returns whether the fields of editor are ready to be used
|
|
954
|
+
*/
|
|
955
|
+
Editor.prototype.isFieldReady = function () {
|
|
956
|
+
return this._fieldReady;
|
|
957
|
+
};
|
|
958
|
+
|
|
935
959
|
Editor.prototype.hasPreview = function() {
|
|
936
960
|
var oPreview = this.getAggregation("_preview");
|
|
937
961
|
if (oPreview && oPreview.visible !== false) {
|
|
@@ -942,7 +966,7 @@ sap.ui.define([
|
|
|
942
966
|
|
|
943
967
|
Editor.prototype.getSeparatePreview = function() {
|
|
944
968
|
var sPreviewPosition = this.getPreviewPosition();
|
|
945
|
-
if (!this.
|
|
969
|
+
if (!this.isFieldReady() || sPreviewPosition !== "separate") {
|
|
946
970
|
return null;
|
|
947
971
|
}
|
|
948
972
|
if (!this._oPreview) {
|
|
@@ -982,6 +1006,7 @@ sap.ui.define([
|
|
|
982
1006
|
};
|
|
983
1007
|
|
|
984
1008
|
Editor.prototype.setJson = function (vIdOrSettings, bSuppress) {
|
|
1009
|
+
this._fieldReady = false;
|
|
985
1010
|
this._ready = false;
|
|
986
1011
|
if (deepEqual(vIdOrSettings, this._preIdOrSettings)) {
|
|
987
1012
|
return this;
|
|
@@ -1091,6 +1116,7 @@ sap.ui.define([
|
|
|
1091
1116
|
languages: Editor._oLanguages,
|
|
1092
1117
|
supportedLocales: aSupportedLocales
|
|
1093
1118
|
});
|
|
1119
|
+
this._oEditorResourceBundles.loadResourceBundles();
|
|
1094
1120
|
};
|
|
1095
1121
|
|
|
1096
1122
|
/**
|
|
@@ -1104,7 +1130,7 @@ sap.ui.define([
|
|
|
1104
1130
|
if (this._sAppId) {
|
|
1105
1131
|
LoaderExtensions.registerResourcePath(this._sAppId.replace(/\./g, "/"), this._oEditorManifest.getUrl() || "/");
|
|
1106
1132
|
} else {
|
|
1107
|
-
Log.error("sap.app/id entry in the manifest is mandatory");
|
|
1133
|
+
Log.error("sap.ui.integration.editor.Editor: sap.app/id entry in the manifest is mandatory");
|
|
1108
1134
|
}
|
|
1109
1135
|
};
|
|
1110
1136
|
|
|
@@ -1133,7 +1159,7 @@ sap.ui.define([
|
|
|
1133
1159
|
var sExtensionPath = this._oEditorManifest.get(this.getConfigurationPath() + "/extension") || this._oEditorManifest.get("/" + this.getSection() + "/extension"),
|
|
1134
1160
|
sFullExtensionPath;
|
|
1135
1161
|
if (!sExtensionPath) {
|
|
1136
|
-
Log.info("
|
|
1162
|
+
Log.info("sap.ui.integration.editor.Editor: extension is not defined in manifest, do not load it.");
|
|
1137
1163
|
return new Promise(function (resolve, reject) {
|
|
1138
1164
|
resolve();
|
|
1139
1165
|
});
|
|
@@ -1154,7 +1180,7 @@ sap.ui.define([
|
|
|
1154
1180
|
}
|
|
1155
1181
|
resolve();
|
|
1156
1182
|
}.bind(this), function (vErr) {
|
|
1157
|
-
Log.error("
|
|
1183
|
+
Log.error("sap.ui.integration.editor.Editor: failed to load " + sExtensionPath + ". Check if the path is correct. Reason: " + vErr);
|
|
1158
1184
|
reject(vErr);
|
|
1159
1185
|
});
|
|
1160
1186
|
}.bind(this));
|
|
@@ -1189,7 +1215,7 @@ sap.ui.define([
|
|
|
1189
1215
|
|
|
1190
1216
|
if (vHost && !oHostInstance) {
|
|
1191
1217
|
Log.error(
|
|
1192
|
-
"Host with id '" + vHost + "' is not available during editor initialization. It must be available for host specific features to work.",
|
|
1218
|
+
"sap.ui.integration.editor.Editor: Host with id '" + vHost + "' is not available during editor initialization. It must be available for host specific features to work.",
|
|
1193
1219
|
"Make sure that the host already exists, before assigning it to the editor.",
|
|
1194
1220
|
"sap.ui.integration.editor.Editor"
|
|
1195
1221
|
);
|
|
@@ -1237,7 +1263,7 @@ sap.ui.define([
|
|
|
1237
1263
|
sSanitizedUrl = sUrl && sUrl.trim().replace(/^\//, "");
|
|
1238
1264
|
|
|
1239
1265
|
if (sAppId === null) {
|
|
1240
|
-
Log.error("
|
|
1266
|
+
Log.error("sap.ui.integration.editor.Editor: manifest is not ready so the URL can not be resolved. Consider using the 'manifestReady' event.", "sap.ui.integration.editor.Editor");
|
|
1241
1267
|
return null;
|
|
1242
1268
|
}
|
|
1243
1269
|
|
|
@@ -1309,7 +1335,7 @@ sap.ui.define([
|
|
|
1309
1335
|
this._language = this._language.split("-")[0];
|
|
1310
1336
|
}
|
|
1311
1337
|
if (!Editor._oLanguages[this._language]) {
|
|
1312
|
-
Log.warning("
|
|
1338
|
+
Log.warning("sap.ui.integration.editor.Editor: language: " + sValue + " is currently unknown, some UI controls might show " + sValue + " instead of the language name.");
|
|
1313
1339
|
}
|
|
1314
1340
|
return this;
|
|
1315
1341
|
};
|
|
@@ -1782,13 +1808,13 @@ sap.ui.define([
|
|
|
1782
1808
|
if (bResolved) {
|
|
1783
1809
|
return;
|
|
1784
1810
|
}
|
|
1785
|
-
Log.error("Editor context could not be determined with " + CONTEXT_TIMEOUT + ".");
|
|
1811
|
+
Log.error("sap.ui.integration.editor.Editor: context could not be determined with " + CONTEXT_TIMEOUT + ".");
|
|
1786
1812
|
bResolved = true;
|
|
1787
1813
|
resolve({});
|
|
1788
1814
|
}, CONTEXT_TIMEOUT);
|
|
1789
1815
|
oHost.getContext().then(function (oContextData) {
|
|
1790
1816
|
if (bResolved) {
|
|
1791
|
-
Log.error("Editor context returned after more than " + CONTEXT_TIMEOUT + ". Context is ignored.");
|
|
1817
|
+
Log.error("sap.ui.integration.editor.Editor: context returned after more than " + CONTEXT_TIMEOUT + ". Context is ignored.");
|
|
1792
1818
|
}
|
|
1793
1819
|
bResolved = true;
|
|
1794
1820
|
resolve(oContextData || {});
|
|
@@ -1828,7 +1854,7 @@ sap.ui.define([
|
|
|
1828
1854
|
.catch(function (sReason) {
|
|
1829
1855
|
this._mValues[sAbsolutePath] = null;
|
|
1830
1856
|
this.checkUpdate();
|
|
1831
|
-
Log.error("
|
|
1857
|
+
Log.error("sap.ui.integration.editor.Editor: path " + sAbsolutePath + " could not be resolved. Reason: " + sReason);
|
|
1832
1858
|
}.bind(this));
|
|
1833
1859
|
|
|
1834
1860
|
this._aPendingPromises.push(pGetProperty);
|
|
@@ -2154,7 +2180,13 @@ sap.ui.define([
|
|
|
2154
2180
|
if (oConfig.type === "string[]" && oField.isFilterBackend() && oConfig.visualization && oConfig.visualization.type === "MultiInput") {
|
|
2155
2181
|
oField.setModel(new JSONModel({}), undefined);
|
|
2156
2182
|
} else {
|
|
2157
|
-
this._addValueListModel(oConfig, oField);
|
|
2183
|
+
var pGetFieldData = Utils.timeoutPromise(this._addValueListModel(oConfig, oField));
|
|
2184
|
+
pGetFieldData = pGetFieldData
|
|
2185
|
+
.catch(function (sReason) {
|
|
2186
|
+
Log.error("sap.ui.integration.editor.Editor: get data of field " + sParameterKey + " could not be resolved. Reason: " + sReason);
|
|
2187
|
+
});
|
|
2188
|
+
|
|
2189
|
+
this._aFieldDataReadyPromise.push(pGetFieldData);
|
|
2158
2190
|
}
|
|
2159
2191
|
}
|
|
2160
2192
|
this._createDependentFields(oConfig, oField);
|
|
@@ -2170,7 +2202,7 @@ sap.ui.define([
|
|
|
2170
2202
|
};
|
|
2171
2203
|
|
|
2172
2204
|
Editor.prototype._updateEditor = function (aDependentFields) {
|
|
2173
|
-
if (this.
|
|
2205
|
+
if (this._fieldReady) {
|
|
2174
2206
|
if (aDependentFields.length === 0) {
|
|
2175
2207
|
return;
|
|
2176
2208
|
}
|
|
@@ -2206,6 +2238,7 @@ sap.ui.define([
|
|
|
2206
2238
|
* request data via data provider in RT
|
|
2207
2239
|
* @param {object} oConfig
|
|
2208
2240
|
* @param {sap.ui.integration.editor.fields.BaseField} oField
|
|
2241
|
+
* @returns {Promise} the getData promise of dataProvider
|
|
2209
2242
|
*/
|
|
2210
2243
|
Editor.prototype._requestData = function (oConfig, oField) {
|
|
2211
2244
|
var oDataProvider = this._oDataProviderFactory.create(oConfig.values.data);
|
|
@@ -2219,7 +2252,7 @@ sap.ui.define([
|
|
|
2219
2252
|
path: "context>/"
|
|
2220
2253
|
});
|
|
2221
2254
|
var oPromise = oDataProvider.getData();
|
|
2222
|
-
oPromise.then(function (oData) {
|
|
2255
|
+
return oPromise.then(function (oData) {
|
|
2223
2256
|
if (oConfig._cancel) {
|
|
2224
2257
|
oConfig._values = [];
|
|
2225
2258
|
this._settingsModel.setProperty(oConfig._settingspath + "/_loading", false);
|
|
@@ -2394,7 +2427,7 @@ sap.ui.define([
|
|
|
2394
2427
|
Editor.prototype._requestExtensionData = function () {
|
|
2395
2428
|
var oExtension = this.getAggregation("_extension");
|
|
2396
2429
|
if (!oExtension) {
|
|
2397
|
-
Log.info("
|
|
2430
|
+
Log.info("sap.ui.integration.editor.Editor: extension is not defined or created, do not load data of it.");
|
|
2398
2431
|
return new Promise(function (resolve, reject) {
|
|
2399
2432
|
resolve();
|
|
2400
2433
|
});
|
|
@@ -2426,7 +2459,7 @@ sap.ui.define([
|
|
|
2426
2459
|
}
|
|
2427
2460
|
}
|
|
2428
2461
|
if (!bHasExtensionData) {
|
|
2429
|
-
Log.info("
|
|
2462
|
+
Log.info("sap.ui.integration.editor.Editor: extension data is not defined in manifest, do not load data of it.");
|
|
2430
2463
|
return new Promise(function (resolve, reject) {
|
|
2431
2464
|
resolve();
|
|
2432
2465
|
});
|
|
@@ -2460,12 +2493,12 @@ sap.ui.define([
|
|
|
2460
2493
|
sError = (oErrorInResponse.code || oErrorInResponse.errorCode || oResponse.status) + ": " + oErrorInResponse.message;
|
|
2461
2494
|
}
|
|
2462
2495
|
|
|
2463
|
-
Log.error("
|
|
2496
|
+
Log.error("sap.ui.integration.editor.Editor: request extension data failed, " + sError);
|
|
2464
2497
|
});
|
|
2465
2498
|
}
|
|
2466
2499
|
} else if (typeof (oError) === "string") {
|
|
2467
2500
|
sError = oError;
|
|
2468
|
-
Log.error("
|
|
2501
|
+
Log.error("sap.ui.integration.editor.Editor: request extension data failed, " + sError);
|
|
2469
2502
|
}
|
|
2470
2503
|
}.bind(this));
|
|
2471
2504
|
};
|
|
@@ -2474,11 +2507,17 @@ sap.ui.define([
|
|
|
2474
2507
|
* Creates a unnamed model if a values.data section exists in the configuration
|
|
2475
2508
|
* @param {object} oConfig
|
|
2476
2509
|
* @param {sap.ui.integration.editor.fields.BaseField} oField
|
|
2510
|
+
* @returns {promise} the return promise
|
|
2477
2511
|
*/
|
|
2478
2512
|
Editor.prototype._addValueListModel = function (oConfig, oField, nTimeout) {
|
|
2479
2513
|
if (oConfig.values) {
|
|
2480
2514
|
var oValueModel;
|
|
2481
2515
|
if (oConfig.values.data) {
|
|
2516
|
+
//we use the binding context to connect the given path from oConfig.values.data.path
|
|
2517
|
+
//with that the result of the data request can be have also other structures.
|
|
2518
|
+
oField.bindObject({
|
|
2519
|
+
path: oConfig.values.data.path || "/"
|
|
2520
|
+
});
|
|
2482
2521
|
if (this._oDataProviderFactory) {
|
|
2483
2522
|
oValueModel = oField.getModel();
|
|
2484
2523
|
if (!oValueModel) {
|
|
@@ -2487,18 +2526,13 @@ sap.ui.define([
|
|
|
2487
2526
|
}
|
|
2488
2527
|
this._settingsModel.setProperty(oConfig._settingspath + "/_loading", true);
|
|
2489
2528
|
if (!nTimeout) {
|
|
2490
|
-
this._requestData(oConfig, oField);
|
|
2529
|
+
return this._requestData(oConfig, oField);
|
|
2491
2530
|
} else {
|
|
2492
2531
|
setTimeout(function() {
|
|
2493
|
-
this._requestData(oConfig, oField);
|
|
2532
|
+
return this._requestData(oConfig, oField);
|
|
2494
2533
|
}.bind(this), nTimeout);
|
|
2495
2534
|
}
|
|
2496
2535
|
}
|
|
2497
|
-
//we use the binding context to connect the given path from oConfig.values.data.path
|
|
2498
|
-
//with that the result of the data request can be have also other structures.
|
|
2499
|
-
oField.bindObject({
|
|
2500
|
-
path: oConfig.values.data.path || "/"
|
|
2501
|
-
});
|
|
2502
2536
|
} else if (this.getAggregation("_extension")) {
|
|
2503
2537
|
oValueModel = this.getAggregation("_extension").getModel();
|
|
2504
2538
|
//filter data for page admin
|
|
@@ -2531,6 +2565,7 @@ sap.ui.define([
|
|
|
2531
2565
|
//in the designtime the item bindings will not use a named model, therefore we add a unnamed model for the field
|
|
2532
2566
|
//to carry the values.
|
|
2533
2567
|
oField.setModel(oValueModel, undefined);
|
|
2568
|
+
return Promise.resolve(null);
|
|
2534
2569
|
}
|
|
2535
2570
|
}
|
|
2536
2571
|
};
|
|
@@ -3134,8 +3169,13 @@ sap.ui.define([
|
|
|
3134
3169
|
this._initPreview();
|
|
3135
3170
|
}
|
|
3136
3171
|
Promise.all(this._aFieldReadyPromise).then(function () {
|
|
3137
|
-
this.
|
|
3138
|
-
this.
|
|
3172
|
+
this._fieldReady = true;
|
|
3173
|
+
this.fireFieldReady();
|
|
3174
|
+
if (this.getMode() !== "admin" && this.getMode() !== "all") {
|
|
3175
|
+
setTimeout(function () {
|
|
3176
|
+
this.fireDestinationReady();
|
|
3177
|
+
}.bind(this), 100);
|
|
3178
|
+
}
|
|
3139
3179
|
}.bind(this));
|
|
3140
3180
|
};
|
|
3141
3181
|
|
|
@@ -3177,6 +3217,7 @@ sap.ui.define([
|
|
|
3177
3217
|
this._oInitialManifestModel = null;
|
|
3178
3218
|
this._settingsModel = null;
|
|
3179
3219
|
this._destinationsModel = null;
|
|
3220
|
+
this._oEditorResourceBundles = null;
|
|
3180
3221
|
document.body.style.removeProperty("--sapUiIntegrationEditorFormWidth");
|
|
3181
3222
|
document.body.style.removeProperty("--sapUiIntegrationEditorFormHeight");
|
|
3182
3223
|
Control.prototype.destroy.apply(this, arguments);
|
|
@@ -3428,6 +3469,9 @@ sap.ui.define([
|
|
|
3428
3469
|
this._destinationsModel.setProperty("/_loading", false);
|
|
3429
3470
|
this._destinationsModel.setSizeLimit(a.length);
|
|
3430
3471
|
this._destinationsModel.checkUpdate(true);
|
|
3472
|
+
setTimeout(function () {
|
|
3473
|
+
this.fireDestinationReady();
|
|
3474
|
+
}.bind(this), 100);
|
|
3431
3475
|
}.bind(this)).catch(function () {
|
|
3432
3476
|
//Fix DIGITALWORKPLACE-4359, retry once for the timeout issue
|
|
3433
3477
|
return this.getHostInstance().getDestinations();
|
|
@@ -3439,10 +3483,16 @@ sap.ui.define([
|
|
|
3439
3483
|
this._destinationsModel.setProperty("/_loading", false);
|
|
3440
3484
|
this._destinationsModel.setSizeLimit(b.length);
|
|
3441
3485
|
this._destinationsModel.checkUpdate(true);
|
|
3486
|
+
setTimeout(function () {
|
|
3487
|
+
this.fireDestinationReady();
|
|
3488
|
+
}.bind(this), 100);
|
|
3442
3489
|
}.bind(this)).catch(function (e) {
|
|
3443
3490
|
this._destinationsModel.setProperty("/_loading", false);
|
|
3444
3491
|
this._destinationsModel.checkUpdate(true);
|
|
3445
|
-
|
|
3492
|
+
setTimeout(function () {
|
|
3493
|
+
this.fireDestinationReady();
|
|
3494
|
+
}.bind(this), 100);
|
|
3495
|
+
Log.error("sap.ui.integration.editor.Editor: can not get destinations list from '" + oHost.getId() + "'.");
|
|
3446
3496
|
}.bind(this));
|
|
3447
3497
|
}
|
|
3448
3498
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/base/ManagedObject",
|
|
9
|
-
"sap/base/i18n/ResourceBundle"
|
|
10
|
-
|
|
9
|
+
"sap/base/i18n/ResourceBundle",
|
|
10
|
+
"sap/base/Log"
|
|
11
|
+
], function (ManagedObject, ResourceBundle, Log) {
|
|
11
12
|
"use strict";
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -17,7 +18,7 @@ sap.ui.define([
|
|
|
17
18
|
* @alias sap.ui.integration.editor.EditorResourceBundles
|
|
18
19
|
* @author SAP SE
|
|
19
20
|
* @since 1.94.0
|
|
20
|
-
* @version 1.
|
|
21
|
+
* @version 1.132.1
|
|
21
22
|
* @private
|
|
22
23
|
*/
|
|
23
24
|
var EditorResourceBundles = ManagedObject.extend("sap.ui.integration.editor.EditorResourceBundles", {
|
|
@@ -39,46 +40,84 @@ sap.ui.define([
|
|
|
39
40
|
});
|
|
40
41
|
|
|
41
42
|
EditorResourceBundles.prototype.loadResourceBundles = function () {
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
var that = this;
|
|
44
|
+
var sUrl = that.getUrl();
|
|
45
|
+
var aSupportedLocales = that.getSupportedLocales();
|
|
46
|
+
var aLanguages = that.getLanguages();
|
|
47
|
+
that._ready = false;
|
|
48
|
+
that._aResourceBundles = [];
|
|
49
|
+
that._aResourceBundleReadyPromise = [];
|
|
50
|
+
// according to the language list, load each resource bundle
|
|
51
|
+
Object.keys(aLanguages).forEach(function (language) {
|
|
49
52
|
if (sUrl) {
|
|
50
|
-
var aFallbacks = [
|
|
51
|
-
if (
|
|
52
|
-
aFallbacks.push(
|
|
53
|
+
var aFallbacks = [language];
|
|
54
|
+
if (language.indexOf("-") > -1) {
|
|
55
|
+
aFallbacks.push(language.substring(0, language.indexOf("-")));
|
|
53
56
|
}
|
|
54
|
-
//add en into fallbacks
|
|
57
|
+
// add en into fallbacks
|
|
55
58
|
if (!aFallbacks.includes("en")) {
|
|
56
59
|
aFallbacks.push("en");
|
|
57
60
|
}
|
|
58
|
-
|
|
61
|
+
that._aResourceBundles[language] = "";
|
|
62
|
+
var oResourceBundleReadyPromie = ResourceBundle.create({
|
|
59
63
|
url: sUrl,
|
|
60
|
-
async:
|
|
61
|
-
locale:
|
|
64
|
+
async: true,
|
|
65
|
+
locale: language,
|
|
62
66
|
supportedLocales: aFallbacks
|
|
67
|
+
}).then(function (oResourceBundle) {
|
|
68
|
+
var oResourceBundleObject = {
|
|
69
|
+
"language": aLanguages[language],
|
|
70
|
+
"resourceBundle": oResourceBundle,
|
|
71
|
+
"isSupportedLocale": true
|
|
72
|
+
};
|
|
73
|
+
if (Array.isArray(aSupportedLocales) && !aSupportedLocales.includes(language) && !aSupportedLocales.includes(language.replace('-', '_'))) {
|
|
74
|
+
oResourceBundleObject.isSupportedLocale = false;
|
|
75
|
+
}
|
|
76
|
+
that._aResourceBundles[language] = oResourceBundleObject;
|
|
63
77
|
});
|
|
78
|
+
that._aResourceBundleReadyPromise.push(oResourceBundleReadyPromie);
|
|
79
|
+
} else {
|
|
80
|
+
// i18n not defined in card manifest
|
|
81
|
+
var oResourceBundleObject = {
|
|
82
|
+
"language": aLanguages[language],
|
|
83
|
+
"isSupportedLocale": true
|
|
84
|
+
};
|
|
85
|
+
if (Array.isArray(aSupportedLocales) && !aSupportedLocales.includes(language) && !aSupportedLocales.includes(language.replace('-', '_'))) {
|
|
86
|
+
oResourceBundleObject.isSupportedLocale = false;
|
|
87
|
+
}
|
|
88
|
+
that._aResourceBundles[language] = oResourceBundleObject;
|
|
64
89
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
});
|
|
91
|
+
if (that._aResourceBundleReadyPromise.length > 0) {
|
|
92
|
+
Promise.all(that._aResourceBundleReadyPromise).then(function () {
|
|
93
|
+
Object.keys(aLanguages).forEach(function (language) {
|
|
94
|
+
// add missing languages
|
|
95
|
+
if (that._aResourceBundles[language] == "") {
|
|
96
|
+
var oResourceBundleObject = {
|
|
97
|
+
"language": aLanguages[language],
|
|
98
|
+
"isSupportedLocale": true
|
|
99
|
+
};
|
|
100
|
+
if (Array.isArray(aSupportedLocales) && !aSupportedLocales.includes(language) && !aSupportedLocales.includes(language.replace('-', '_'))) {
|
|
101
|
+
oResourceBundleObject.isSupportedLocale = false;
|
|
102
|
+
}
|
|
103
|
+
that._aResourceBundles[language] = oResourceBundleObject;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
Log.info("sap.ui.integration.editor.EditorResourceBundles: resource bundles loaded.");
|
|
107
|
+
that._ready = true;
|
|
108
|
+
});
|
|
109
|
+
} else {
|
|
110
|
+
Log.info("sap.ui.integration.editor.EditorResourceBundles: no resource bundles.");
|
|
111
|
+
that._ready = true;
|
|
74
112
|
}
|
|
75
113
|
};
|
|
76
114
|
|
|
115
|
+
EditorResourceBundles.prototype.isReady = function () {
|
|
116
|
+
return this._ready;
|
|
117
|
+
};
|
|
118
|
+
|
|
77
119
|
EditorResourceBundles.prototype.getResourceBundles = function () {
|
|
78
|
-
|
|
79
|
-
this.loadResourceBundles();
|
|
80
|
-
}
|
|
81
|
-
return this._aEditorResourceBundles;
|
|
120
|
+
return this._aResourceBundles;
|
|
82
121
|
};
|
|
83
122
|
|
|
84
123
|
return EditorResourceBundles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.ui.integration.Extension
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.132.1
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (this._oEditor.getAggregation("_extension") !== this) {
|
|
55
|
-
Log.error("Extension formatters must be set before the initialization of the editor. Do this inside Extension#init().");
|
|
55
|
+
Log.error("sap.ui.integration.editor.Extension: extension formatters must be set before the initialization of the editor. Do this inside Extension#init().");
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @extends sap.ui.integration.util.Manifest
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.132.1
|
|
21
21
|
*
|
|
22
22
|
* @constructor
|
|
23
23
|
* @since 1.94
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
* @alias sap.ui.integration.editor.Settings
|
|
83
83
|
* @author SAP SE
|
|
84
84
|
* @since 1.83.0
|
|
85
|
-
* @version 1.
|
|
85
|
+
* @version 1.132.1
|
|
86
86
|
* @private
|
|
87
87
|
* @experimental since 1.83.0
|
|
88
88
|
* @ui5-restricted
|
|
@@ -308,6 +308,7 @@ sap.ui.define([
|
|
|
308
308
|
oCurrentModel.setProperty("/selectedValues", "All");
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
+
oField.fireSettingsPanelOpened();
|
|
311
312
|
}
|
|
312
313
|
});
|
|
313
314
|
oPopover.setCustomHeader(oHeader);
|