@openui5/sap.ui.integration 1.145.1 → 1.147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REUSE.toml +0 -51
- package/THIRDPARTY.txt +6 -50
- package/package.json +6 -6
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +2 -3
- package/src/sap/ui/integration/Designtime.js +1 -2
- package/src/sap/ui/integration/Extension.js +5 -8
- package/src/sap/ui/integration/Host.js +14 -21
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +3 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +65 -2
- package/src/sap/ui/integration/cards/CalendarContent.js +13 -11
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -2
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +15 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +1 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +27 -3
- package/src/sap/ui/integration/cards/TimelineContent.js +2 -2
- package/src/sap/ui/integration/cards/WebPageContent.js +2 -3
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/ComboBoxFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +5 -1
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +1 -1
- package/src/sap/ui/integration/cards/list/MicrochartsResizeHelper.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +1 -1
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/BlockingMessage.js +2 -2
- package/src/sap/ui/integration/controls/ComboBox.js +1 -1
- package/src/sap/ui/integration/controls/HeaderInfoSectionColumn.js +1 -1
- package/src/sap/ui/integration/controls/HeaderInfoSectionRow.js +1 -1
- package/src/sap/ui/integration/controls/ImageWithOverlay.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- package/src/sap/ui/integration/controls/Microchart.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/controls/ObjectStatus.js +1 -1
- package/src/sap/ui/integration/delegate/OverflowHandler.js +1 -1
- package/src/sap/ui/integration/delegate/Paginator.js +1 -1
- package/src/sap/ui/integration/delegate/PreventKeyboardScrolling.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/layout/Form.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.fragment.xml +6 -6
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditorPlain.fragment.xml +6 -6
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.fragment.xml +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.js +18 -7
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditorDialog.fragment.xml +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +2 -3
- 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 +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.fragment.xml +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditorDialog.fragment.xml +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.fragment.xml +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditorDialog.fragment.xml +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.fragment.xml +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.fragment.xml +6 -6
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/resolveBinding.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/cleanupDesigntimeMetadata.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/createPromise.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/escapeParameter.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/findClosestInstance.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/hasTag.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/isTemplate.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/isValidBindingString.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +1 -2
- package/src/sap/ui/integration/designtime/cardEditor/BASEditor.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/CardEditor.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/AppConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/FooterConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/HeaderConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/ListCardConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/ObjectCardConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/TableCardConfig.js +84 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateActionConfig.js +7 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateDataConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateFooterActionsStripConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/index.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +45 -0
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.fragment.xml +5 -5
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditorSettingsDialog.fragment.xml +4 -4
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersConfigurationEditor.fragment.xml +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +2 -3
- package/src/sap/ui/integration/designtime/editor/Card.js +1 -3
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +2 -3
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -2
- package/src/sap/ui/integration/editor/Editor.js +123 -45
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +5 -30
- package/src/sap/ui/integration/editor/Extension.js +1 -1
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +1 -2
- package/src/sap/ui/integration/editor/fields/BaseField.js +1 -4
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -2
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -2
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -2
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -2
- package/src/sap/ui/integration/editor/fields/GroupField.js +1 -2
- package/src/sap/ui/integration/editor/fields/IntegerField.js +1 -2
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -2
- package/src/sap/ui/integration/editor/fields/ObjectField.js +2 -5
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -2
- package/src/sap/ui/integration/editor/fields/StringField.js +1 -4
- package/src/sap/ui/integration/editor/fields/StringListField.js +1 -2
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/ImageSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +28 -8
- package/src/sap/ui/integration/extensions/OAuth3LO.js +1 -1
- package/src/sap/ui/integration/formatters/IconFormatter.js +1 -1
- package/src/sap/ui/integration/library.js +17 -22
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- package/src/sap/ui/integration/model/ObservableModel.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +128 -4
- package/src/sap/ui/integration/services/Data.js +0 -1
- package/src/sap/ui/integration/services/Navigation.js +0 -1
- package/src/sap/ui/integration/services/Service.js +0 -1
- package/src/sap/ui/integration/themes/base/ObjectContent.less +8 -1
- package/src/sap/ui/integration/util/AnalyticsCloudHelper.js +1 -1
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +1 -1
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ComboBoxHelper.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +1 -1
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -1
- package/src/sap/ui/integration/util/DataProviderFactory.js +3 -4
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/DisplayVariants.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +1 -1
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +1 -1
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/ManifestResolver.js +4 -1
- package/src/sap/ui/integration/util/OAuth3LOHelper.js +1 -1
- package/src/sap/ui/integration/util/ObjectStatusFactory.js +1 -1
- package/src/sap/ui/integration/util/RadioButtonHelper.js +1 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceManager.js +1 -1
- package/src/sap/ui/integration/util/SkeletonCard.js +1 -1
- package/src/sap/ui/integration/util/SorterHelper.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +1 -1
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +172 -69
|
@@ -41,17 +41,16 @@ sap.ui.define([
|
|
|
41
41
|
* @alias sap.ui.integration.designtime.cardEditor.propertyEditor.destinationsEditor.DestinationsEditor
|
|
42
42
|
* @author SAP SE
|
|
43
43
|
* @since 1.77
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.147.0
|
|
45
45
|
*
|
|
46
46
|
* @private
|
|
47
|
-
* @experimental 1.77
|
|
48
47
|
* @ui5-restricted
|
|
49
48
|
*/
|
|
50
49
|
var DestinationsEditor = ComplexMapEditor.extend("sap.ui.integration.designtime.cardEditor.propertyEditor.destinationsEditor.DestinationsEditor", {
|
|
51
50
|
metadata: {
|
|
52
51
|
library: "sap.ui.integration"
|
|
53
52
|
},
|
|
54
|
-
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
53
|
+
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
55
54
|
});
|
|
56
55
|
|
|
57
56
|
DestinationsEditor.configMetadata = Object.assign({}, ComplexMapEditor.configMetadata, {
|
package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js
CHANGED
|
@@ -43,17 +43,16 @@ sap.ui.define([
|
|
|
43
43
|
* @alias sap.ui.integration.designtime.cardEditor.propertyEditor.filtersEditor.FiltersEditor
|
|
44
44
|
* @author SAP SE
|
|
45
45
|
* @since 1.98
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.147.0
|
|
47
47
|
*
|
|
48
48
|
* @private
|
|
49
|
-
* @experimental 1.97
|
|
50
49
|
* @ui5-restricted
|
|
51
50
|
*/
|
|
52
51
|
var FiltersEditor = ComplexMapEditor.extend("sap.ui.integration.designtime.cardEditor.propertyEditor.filtersEditor.FiltersEditor", {
|
|
53
52
|
metadata: {
|
|
54
53
|
library: "sap.ui.integration"
|
|
55
54
|
},
|
|
56
|
-
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
55
|
+
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
57
56
|
});
|
|
58
57
|
|
|
59
58
|
FiltersEditor.configMetadata = Object.assign({}, ComplexMapEditor.configMetadata, {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<layout:VerticalLayout>
|
|
9
9
|
<PropertyEditor
|
|
10
10
|
renderLabel="false"
|
|
11
|
-
init="wrapperInit"
|
|
12
|
-
valueChange="_onTypeChange"
|
|
11
|
+
init=".wrapperInit"
|
|
12
|
+
valueChange="._onTypeChange"
|
|
13
13
|
config="{path: 'configs>/selectConfig'}"
|
|
14
14
|
value="{path: 'icon>/type'}"
|
|
15
15
|
/>
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<layout:VerticalLayout width="calc(100% - 16px)" class="sapUiTinyMarginBeginEnd">
|
|
21
21
|
<PropertyEditor
|
|
22
22
|
renderLabel="false"
|
|
23
|
-
init="wrapperInit"
|
|
24
|
-
valueChange="_updateValue"
|
|
23
|
+
init=".wrapperInit"
|
|
24
|
+
valueChange="._updateValue"
|
|
25
25
|
config="{path: 'configs>/valueConfig/config'}"
|
|
26
26
|
value="{parts: ['configs>/valueConfig/key', 'icon>/'], formatter: '._prepareValue'}"
|
|
27
27
|
/>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<m:Button
|
|
33
33
|
icon="sap-icon://developer-settings"
|
|
34
34
|
tooltip="{i18n>BASE_EDITOR.ICON.BUTTON_SETTINGS}"
|
|
35
|
-
press="_handleSettings"
|
|
35
|
+
press="._handleSettings"
|
|
36
36
|
/>
|
|
37
37
|
</m:FlexBox>
|
|
38
38
|
</core:FragmentDefinition>
|
package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js
CHANGED
|
@@ -42,10 +42,9 @@ sap.ui.define([
|
|
|
42
42
|
* @alias sap.ui.integration.designtime.cardEditor.propertyEditor.iconEditor.IconEditor
|
|
43
43
|
* @author SAP SE
|
|
44
44
|
* @since 1.81
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.147.0
|
|
46
46
|
*
|
|
47
47
|
* @private
|
|
48
|
-
* @experimental 1.81
|
|
49
48
|
* @ui5-restricted
|
|
50
49
|
*/
|
|
51
50
|
var IconEditor = BasePropertyEditor.extend("sap.ui.integration.designtime.cardEditor.propertyEditor.iconEditor.IconEditor", {
|
|
@@ -53,7 +52,7 @@ sap.ui.define([
|
|
|
53
52
|
library: "sap.ui.integration"
|
|
54
53
|
},
|
|
55
54
|
xmlFragment: "sap.ui.integration.designtime.cardEditor.propertyEditor.iconEditor.IconEditor",
|
|
56
|
-
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
55
|
+
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
57
56
|
});
|
|
58
57
|
|
|
59
58
|
IconEditor.configMetadata = Object.assign(
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
value="{data>/backgroundColor}"
|
|
47
47
|
visible="{settings>/backgroundColorVisible}"
|
|
48
48
|
showValueHelp="true"
|
|
49
|
-
valueHelpRequest="_openColorPickerPopup"
|
|
49
|
+
valueHelpRequest="._openColorPickerPopup"
|
|
50
50
|
/>
|
|
51
51
|
<Label
|
|
52
52
|
text="{i18n>BASE_EDITOR.ICON.SETTINGS_DIALOG_COLOR_LABEL}"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
value="{data>/color}"
|
|
59
59
|
visible="{settings>/colorVisible}"
|
|
60
60
|
showValueHelp="true"
|
|
61
|
-
valueHelpRequest="_openColorPickerPopup"
|
|
61
|
+
valueHelpRequest="._openColorPickerPopup"
|
|
62
62
|
/>
|
|
63
63
|
</form:content>
|
|
64
64
|
</form:SimpleForm>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<beginButton>
|
|
69
69
|
<Button
|
|
70
70
|
text="{i18n>BASE_EDITOR.JSON.SAVE}"
|
|
71
|
-
press="_onSettingsSave"
|
|
71
|
+
press="._onSettingsSave"
|
|
72
72
|
type="Emphasized"
|
|
73
73
|
/>
|
|
74
74
|
</beginButton>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<Button
|
|
77
77
|
text="{i18n>BASE_EDITOR.JSON.CANCEL}"
|
|
78
78
|
type="Transparent"
|
|
79
|
-
press="_onSettingsCancel"
|
|
79
|
+
press="._onSettingsCancel"
|
|
80
80
|
/>
|
|
81
81
|
</endButton>
|
|
82
82
|
</Dialog>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
xmlns:core="sap.ui.core"
|
|
4
4
|
>
|
|
5
5
|
<PropertyEditors
|
|
6
|
-
init="wrapperInit"
|
|
7
|
-
propertyEditorsChange="_propertyEditorsChange"
|
|
6
|
+
init=".wrapperInit"
|
|
7
|
+
propertyEditorsChange="._propertyEditorsChange"
|
|
8
8
|
config="{
|
|
9
9
|
path: 'itemsModel>/',
|
|
10
10
|
formatter: '._configItemsFormatter'
|
|
@@ -43,17 +43,16 @@ sap.ui.define([
|
|
|
43
43
|
* @alias sap.ui.integration.designtime.cardEditor.propertyEditor.parametersEditor.ParametersEditor
|
|
44
44
|
* @author SAP SE
|
|
45
45
|
* @since 1.70
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.147.0
|
|
47
47
|
*
|
|
48
48
|
* @private
|
|
49
|
-
* @experimental 1.70
|
|
50
49
|
* @ui5-restricted
|
|
51
50
|
*/
|
|
52
51
|
var ParametersEditor = MapEditor.extend("sap.ui.integration.designtime.cardEditor.propertyEditor.parametersEditor.ParametersEditor", {
|
|
53
52
|
metadata: {
|
|
54
53
|
library: "sap.ui.integration"
|
|
55
54
|
},
|
|
56
|
-
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
55
|
+
renderer: BasePropertyEditor.getMetadata().getRenderer()
|
|
57
56
|
});
|
|
58
57
|
|
|
59
58
|
ParametersEditor.configMetadata = Object.assign({}, MapEditor.configMetadata, {
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @extends sap.ui.integration.widgets.Card
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.147.0
|
|
28
28
|
* @private
|
|
29
29
|
* @constructor
|
|
30
30
|
* @since 1.112
|
|
@@ -37,7 +37,6 @@ sap.ui.define([
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Defines if the card is readonly.
|
|
40
|
-
* @experimental Since 1.112
|
|
41
40
|
* @private
|
|
42
41
|
* @ui5-restricted sap.ui.integration.designtime.editor.Card
|
|
43
42
|
* @since 1.112
|
|
@@ -46,7 +45,6 @@ sap.ui.define([
|
|
|
46
45
|
|
|
47
46
|
/**
|
|
48
47
|
* Defines the z-index of the readonly dom.
|
|
49
|
-
* @experimental Since 1.112
|
|
50
48
|
* @private
|
|
51
49
|
* @ui5-restricted sap.ui.integration.designtime.editor.Card
|
|
52
50
|
* @since 1.112
|
|
@@ -53,12 +53,11 @@ sap.ui.define([
|
|
|
53
53
|
* @extends sap.ui.integration.editor.Editor
|
|
54
54
|
*
|
|
55
55
|
* @author SAP SE
|
|
56
|
-
* @version 1.
|
|
56
|
+
* @version 1.147.0
|
|
57
57
|
* @constructor
|
|
58
58
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
59
59
|
* @since 1.83
|
|
60
60
|
* @private
|
|
61
|
-
* @experimental since 1.83.0
|
|
62
61
|
* @alias sap.ui.integration.designtime.editor.CardEditor
|
|
63
62
|
*/
|
|
64
63
|
var CardEditor = Editor.extend("sap.ui.integration.designtime.editor.CardEditor", /** @lends sap.ui.integration.designtime.editor.CardEditor.prototype */ {
|
|
@@ -90,7 +89,7 @@ sap.ui.define([
|
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
},
|
|
93
|
-
renderer: Editor.getMetadata().getRenderer()
|
|
92
|
+
renderer: Editor.getMetadata().getRenderer()
|
|
94
93
|
});
|
|
95
94
|
|
|
96
95
|
CardEditor.prototype.hasPreview = function() {
|
|
@@ -44,9 +44,8 @@ sap.ui.define([
|
|
|
44
44
|
* @alias sap.ui.integration.designtime.editor.CardPreview
|
|
45
45
|
* @author SAP SE
|
|
46
46
|
* @since 1.83.0
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.147.0
|
|
48
48
|
* @private
|
|
49
|
-
* @experimental since 1.83.0
|
|
50
49
|
* @ui5-restricted
|
|
51
50
|
*/
|
|
52
51
|
var CardPreview = Control.extend("sap.ui.integration.designtime.editor.CardPreview", {
|
|
@@ -141,11 +141,10 @@ sap.ui.define([
|
|
|
141
141
|
* @extends sap.ui.core.Control
|
|
142
142
|
*
|
|
143
143
|
* @author SAP SE
|
|
144
|
-
* @version 1.
|
|
144
|
+
* @version 1.147.0
|
|
145
145
|
* @constructor
|
|
146
146
|
* @since 1.94
|
|
147
147
|
* @private
|
|
148
|
-
* @experimental since 1.94.0
|
|
149
148
|
* @alias sap.ui.integration.editor.Editor
|
|
150
149
|
*/
|
|
151
150
|
var Editor = Control.extend("sap.ui.integration.editor.Editor", /** @lends sap.ui.integration.editor.Editor.prototype */ {
|
|
@@ -232,6 +231,7 @@ sap.ui.define([
|
|
|
232
231
|
manifestReady: {},
|
|
233
232
|
fieldReady: {},
|
|
234
233
|
destinationReady: {},
|
|
234
|
+
childTreeDataReady: {},
|
|
235
235
|
UIReady: {},
|
|
236
236
|
ready: {}
|
|
237
237
|
}
|
|
@@ -935,11 +935,22 @@ sap.ui.define([
|
|
|
935
935
|
if (!oControl.isReady()) {
|
|
936
936
|
if (bChildTreeRendered === false && renderChildsTreePromise) {
|
|
937
937
|
renderChildsTreePromise.then(function() {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
938
|
+
if (oControl._oChildTree.getModel().getData()[0].dataReady) {
|
|
939
|
+
// add a timeout to make sure all UI updates are done before firing ready
|
|
940
|
+
setTimeout(function () {
|
|
941
|
+
oControl._ready = true;
|
|
942
|
+
oControl.fireReady();
|
|
943
|
+
}, 200);
|
|
944
|
+
} else {
|
|
945
|
+
// attach to child tree data ready event, then fire ready
|
|
946
|
+
oControl.attachEventOnce("childTreeDataReady", function() {
|
|
947
|
+
// add a timeout to make sure all UI updates are done before firing ready
|
|
948
|
+
setTimeout(function () {
|
|
949
|
+
oControl._ready = true;
|
|
950
|
+
oControl.fireReady();
|
|
951
|
+
}, 200);
|
|
952
|
+
});
|
|
953
|
+
}
|
|
943
954
|
});
|
|
944
955
|
} else {
|
|
945
956
|
oControl._ready = true;
|
|
@@ -949,11 +960,22 @@ sap.ui.define([
|
|
|
949
960
|
});
|
|
950
961
|
} else if (bChildTreeRendered === false && renderChildsTreePromise) {
|
|
951
962
|
renderChildsTreePromise.then(function() {
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
963
|
+
if (oControl._oChildTree.getModel().getData()[0].dataReady) {
|
|
964
|
+
// add a timeout to make sure all UI updates are done before firing ready
|
|
965
|
+
setTimeout(function () {
|
|
966
|
+
oControl._ready = true;
|
|
967
|
+
oControl.fireReady();
|
|
968
|
+
}, 200);
|
|
969
|
+
} else {
|
|
970
|
+
// attach to child tree data ready event, then fire ready
|
|
971
|
+
oControl.attachEventOnce("childTreeDataReady", function() {
|
|
972
|
+
// add a timeout to make sure all UI updates are done before firing ready
|
|
973
|
+
setTimeout(function () {
|
|
974
|
+
oControl._ready = true;
|
|
975
|
+
oControl.fireReady();
|
|
976
|
+
}, 200);
|
|
977
|
+
});
|
|
978
|
+
}
|
|
957
979
|
});
|
|
958
980
|
} else {
|
|
959
981
|
oControl._ready = true;
|
|
@@ -992,10 +1014,9 @@ sap.ui.define([
|
|
|
992
1014
|
* Facade of the {@link sap.ui.integration.editor.Editor} control.
|
|
993
1015
|
* @interface
|
|
994
1016
|
* @name sap.ui.integration.editor.EditorFacade
|
|
995
|
-
* @experimental since 1.94
|
|
996
1017
|
* @public
|
|
997
1018
|
* @author SAP SE
|
|
998
|
-
* @version 1.
|
|
1019
|
+
* @version 1.147.0
|
|
999
1020
|
* @borrows sap.ui.integration.editor.Editor#getParameters as getParameters
|
|
1000
1021
|
* @borrows sap.ui.integration.editor.Editor#resolveDestination as resolveDestination
|
|
1001
1022
|
* @borrows sap.ui.integration.editor.Editor#request as request
|
|
@@ -1194,21 +1215,14 @@ sap.ui.define([
|
|
|
1194
1215
|
Editor.prototype._initResourceBundlesForMultiTranslation = function () {
|
|
1195
1216
|
var vI18n = this._oManifest.get("/sap.app/i18n");
|
|
1196
1217
|
var sResourceBundleURL;
|
|
1197
|
-
var aSupportedLocales;
|
|
1198
1218
|
if (typeof vI18n === "string") {
|
|
1199
1219
|
sResourceBundleURL = this.getBaseUrl() + vI18n;
|
|
1200
|
-
} else if (typeof vI18n === "object") {
|
|
1201
|
-
|
|
1202
|
-
sResourceBundleURL = this.getBaseUrl() + vI18n.bundleUrl;
|
|
1203
|
-
}
|
|
1204
|
-
if (vI18n.supportedLocales) {
|
|
1205
|
-
aSupportedLocales = vI18n.supportedLocales;
|
|
1206
|
-
}
|
|
1220
|
+
} else if (typeof vI18n === "object" && vI18n.bundleUrl) {
|
|
1221
|
+
sResourceBundleURL = this.getBaseUrl() + vI18n.bundleUrl;
|
|
1207
1222
|
}
|
|
1208
1223
|
this._oEditorResourceBundles = new EditorResourceBundles({
|
|
1209
1224
|
url: sResourceBundleURL,
|
|
1210
|
-
languages: Editor._oLanguages
|
|
1211
|
-
supportedLocales: aSupportedLocales
|
|
1225
|
+
languages: Editor._oLanguages
|
|
1212
1226
|
});
|
|
1213
1227
|
this._oEditorResourceBundles.loadResourceBundles();
|
|
1214
1228
|
};
|
|
@@ -1287,7 +1301,6 @@ sap.ui.define([
|
|
|
1287
1301
|
* Performs an HTTP request using the given configuration.
|
|
1288
1302
|
*
|
|
1289
1303
|
* @public
|
|
1290
|
-
* @experimental since 1.94
|
|
1291
1304
|
* @param {object} oConfiguration The configuration of the request.
|
|
1292
1305
|
* @param {string} oConfiguration.URL The URL of the resource.
|
|
1293
1306
|
* @param {string} [oConfiguration.mode="cors"] The mode of the request. Possible values are "cors", "no-cors", "same-origin".
|
|
@@ -1346,35 +1359,40 @@ sap.ui.define([
|
|
|
1346
1359
|
};
|
|
1347
1360
|
|
|
1348
1361
|
/**
|
|
1349
|
-
* Resolves the given URL
|
|
1362
|
+
* Resolves the given URL relative to the manifest base path.
|
|
1350
1363
|
* Absolute paths are not changed.
|
|
1351
1364
|
*
|
|
1352
1365
|
* @example
|
|
1353
|
-
* oEditor.
|
|
1354
|
-
* oEditor.
|
|
1355
|
-
* oEditor.
|
|
1366
|
+
* oEditor.resolveUrl("images/Avatar.png") === "sample/card/images/Avatar.png"
|
|
1367
|
+
* oEditor.resolveUrl("http://www.someurl.com/Avatar.png") === "http://www.someurl.com/Avatar.png"
|
|
1368
|
+
* oEditor.resolveUrl("https://www.someurl.com/Avatar.png") === "https://www.someurl.com/Avatar.png"
|
|
1356
1369
|
*
|
|
1357
1370
|
* @ui5-restricted
|
|
1358
1371
|
* @param {string} sUrl The URL to resolve.
|
|
1359
1372
|
* @returns {string} The resolved URL.
|
|
1360
1373
|
*/
|
|
1361
|
-
Editor.prototype.
|
|
1362
|
-
var
|
|
1363
|
-
sAppName,
|
|
1374
|
+
Editor.prototype.resolveUrl = function (sUrl) {
|
|
1375
|
+
var sAppName,
|
|
1364
1376
|
sSanitizedUrl = sUrl && sUrl.trim().replace(/^\//, "");
|
|
1365
1377
|
|
|
1366
|
-
if (
|
|
1367
|
-
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");
|
|
1378
|
+
if (!this._oManifest) {
|
|
1379
|
+
Log.error("sap.ui.integration.editor.Editor: The manifest is not ready so the URL can not be resolved. Consider using the 'manifestReady' event.", "sap.ui.integration.editor.Editor");
|
|
1368
1380
|
return null;
|
|
1369
1381
|
}
|
|
1370
1382
|
|
|
1371
|
-
|
|
1372
|
-
|
|
1383
|
+
const sAppId = this._sAppId;
|
|
1384
|
+
|
|
1385
|
+
if (sUrl.startsWith("http://") ||
|
|
1373
1386
|
sUrl.startsWith("https://") ||
|
|
1374
1387
|
sUrl.startsWith("//")) {
|
|
1375
1388
|
return sUrl;
|
|
1376
1389
|
}
|
|
1377
1390
|
|
|
1391
|
+
if (!sAppId) {
|
|
1392
|
+
Log.error("The manifest property 'sap.app/id' is missing or empty. The URL '" + sUrl + "' cannot be resolved.", "sap.ui.integration.editor.Editor");
|
|
1393
|
+
return sUrl;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1378
1396
|
sAppName = sAppId.replace(/\./g, "/");
|
|
1379
1397
|
|
|
1380
1398
|
// do not use sap.ui.require.toUrl(sAppName + "/" + sSanitizedUrl)
|
|
@@ -1382,6 +1400,25 @@ sap.ui.define([
|
|
|
1382
1400
|
return sap.ui.require.toUrl(sAppName) + "/" + sSanitizedUrl;
|
|
1383
1401
|
};
|
|
1384
1402
|
|
|
1403
|
+
/**
|
|
1404
|
+
* Resolves the given URL relative to the manifest base path.
|
|
1405
|
+
* Absolute paths are not modified.
|
|
1406
|
+
*
|
|
1407
|
+
* @example
|
|
1408
|
+
* oEditor.resolveUrl("images/Avatar.png") === "sample/card/images/Avatar.png"
|
|
1409
|
+
* oEditor.resolveUrl("http://www.someurl.com/Avatar.png") === "http://www.someurl.com/Avatar.png"
|
|
1410
|
+
* oEditor.resolveUrl("https://www.someurl.com/Avatar.png") === "https://www.someurl.com/Avatar.png"
|
|
1411
|
+
*
|
|
1412
|
+
* @deprecated As of version 1.146, replaced by {@link sap.ui.integration.editor.Editor#resolveUrl}
|
|
1413
|
+
* @ui5-restricted
|
|
1414
|
+
* @param {string} sUrl The URL to resolve.
|
|
1415
|
+
* @returns {string} The resolved URL.
|
|
1416
|
+
*/
|
|
1417
|
+
Editor.prototype.getRuntimeUrl = function (sUrl) {
|
|
1418
|
+
Log.warning("'getRuntimeUrl' is deprecated. Use 'resolveUrl' instead.", "sap.ui.integration.editor.Editor");
|
|
1419
|
+
return this.resolveUrl(sUrl);
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1385
1422
|
/**
|
|
1386
1423
|
* @private
|
|
1387
1424
|
* @ui5-restricted
|
|
@@ -1404,7 +1441,6 @@ sap.ui.define([
|
|
|
1404
1441
|
* Gets the instance of the <code>host</code> association.
|
|
1405
1442
|
*
|
|
1406
1443
|
* @public
|
|
1407
|
-
* @experimental Since 1.77
|
|
1408
1444
|
* @returns {sap.ui.integration.Host} The host object associated with this editor.
|
|
1409
1445
|
*/
|
|
1410
1446
|
Editor.prototype.getHostInstance = function () {
|
|
@@ -1585,10 +1621,27 @@ sap.ui.define([
|
|
|
1585
1621
|
manifest: sMainManifest,
|
|
1586
1622
|
path: "",
|
|
1587
1623
|
selected: true,
|
|
1624
|
+
textReady: true,
|
|
1625
|
+
dataReady: false,
|
|
1588
1626
|
nodes: []
|
|
1589
1627
|
}];
|
|
1590
1628
|
var oModel = new JSONModel(oData);
|
|
1591
1629
|
|
|
1630
|
+
// check if all texts are ready
|
|
1631
|
+
var checkTextsReady = function (oDataNode) {
|
|
1632
|
+
oDataNode = oDataNode || oData[0];
|
|
1633
|
+
if (!oDataNode.textReady) {
|
|
1634
|
+
return false;
|
|
1635
|
+
}
|
|
1636
|
+
var oNodes = oDataNode.nodes;
|
|
1637
|
+
for (var i = 0; i < oNodes.length; i++) {
|
|
1638
|
+
if (!checkTextsReady(oNodes[i])) {
|
|
1639
|
+
return false;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
return true;
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1592
1645
|
var loadChildNode = function (sName, oChildConfig, sPath, sBaseUrl, sParentName) {
|
|
1593
1646
|
// calculate base url and manifest path for childs
|
|
1594
1647
|
var sManifestPath = sBaseUrl + oChildConfig.manifest;
|
|
@@ -1600,6 +1653,7 @@ sap.ui.define([
|
|
|
1600
1653
|
isChild: true,
|
|
1601
1654
|
path: sPath,
|
|
1602
1655
|
selected: false,
|
|
1656
|
+
textReady: false,
|
|
1603
1657
|
nodes: []
|
|
1604
1658
|
};
|
|
1605
1659
|
if (oChildConfig.manifest) {
|
|
@@ -1627,17 +1681,42 @@ sap.ui.define([
|
|
|
1627
1681
|
} else if (oChildConfig.title) {
|
|
1628
1682
|
oNode.text = oChildConfig.title;
|
|
1629
1683
|
}
|
|
1630
|
-
|
|
1684
|
+
oNode.textReady = true;
|
|
1685
|
+
// check if all texts are ready. If true, set dataReady true and fire event
|
|
1686
|
+
if (checkTextsReady()) {
|
|
1687
|
+
oData[0].dataReady = true;
|
|
1688
|
+
oModel.checkUpdate(true);
|
|
1689
|
+
that.fireChildTreeDataReady();
|
|
1690
|
+
} else {
|
|
1691
|
+
oModel.checkUpdate(true);
|
|
1692
|
+
}
|
|
1631
1693
|
});
|
|
1632
1694
|
} catch (e) {
|
|
1633
1695
|
if (oChildConfig.title) {
|
|
1634
1696
|
oNode.text = oChildConfig.title;
|
|
1635
1697
|
}
|
|
1636
|
-
|
|
1698
|
+
oNode.textReady = true;
|
|
1699
|
+
// check if all texts are ready. If true, set dataReady true and fire event
|
|
1700
|
+
if (checkTextsReady()) {
|
|
1701
|
+
oData[0].dataReady = true;
|
|
1702
|
+
oModel.checkUpdate(true);
|
|
1703
|
+
that.fireChildTreeDataReady();
|
|
1704
|
+
} else {
|
|
1705
|
+
oModel.checkUpdate(true);
|
|
1706
|
+
}
|
|
1637
1707
|
Log.error("sap.ui.integration.editor.Editor: child edtior tree manifest load error: " + e);
|
|
1638
1708
|
}
|
|
1639
1709
|
} else if (oChildConfig.title) {
|
|
1640
1710
|
oNode.text = oChildConfig.title;
|
|
1711
|
+
oNode.textReady = true;
|
|
1712
|
+
// check if all texts are ready. If true, set dataReady true and fire event
|
|
1713
|
+
if (checkTextsReady()) {
|
|
1714
|
+
oData[0].dataReady = true;
|
|
1715
|
+
oModel.checkUpdate(true);
|
|
1716
|
+
that.fireChildTreeDataReady();
|
|
1717
|
+
} else {
|
|
1718
|
+
oModel.checkUpdate(true);
|
|
1719
|
+
}
|
|
1641
1720
|
}
|
|
1642
1721
|
return oNode;
|
|
1643
1722
|
};
|
|
@@ -3163,6 +3242,9 @@ sap.ui.define([
|
|
|
3163
3242
|
}
|
|
3164
3243
|
var oNewLabel = null;
|
|
3165
3244
|
var sLanguage = Utils._language;
|
|
3245
|
+
if (!Editor._oLanguages[sLanguage] && sLanguage.indexOf("-") > -1) {
|
|
3246
|
+
sLanguage = sLanguage.substring(0, sLanguage.indexOf("-"));
|
|
3247
|
+
}
|
|
3166
3248
|
if (sMode === Constants.EDITOR_MODE.TRANSLATION) {
|
|
3167
3249
|
if (oConfig.type !== "string") {
|
|
3168
3250
|
return;
|
|
@@ -3188,9 +3270,6 @@ sap.ui.define([
|
|
|
3188
3270
|
origLangFieldConfig.editable = false;
|
|
3189
3271
|
origLangFieldConfig.required = false;
|
|
3190
3272
|
//if has value transaltions, get value via language setting in core
|
|
3191
|
-
if (!Editor._oLanguages[sLanguage] && sLanguage.indexOf("-") > -1) {
|
|
3192
|
-
sLanguage = sLanguage.substring(0, sLanguage.indexOf("-"));
|
|
3193
|
-
}
|
|
3194
3273
|
if (Editor._oLanguages[sLanguage]) {
|
|
3195
3274
|
var sTranslateText = this.getTranslationValueInTexts(sLanguage, oConfig.manifestpath);
|
|
3196
3275
|
if (sTranslateText) {
|
|
@@ -3250,8 +3329,7 @@ sap.ui.define([
|
|
|
3250
3329
|
oConfig._beforeLayerChange = oConfig.value;
|
|
3251
3330
|
}
|
|
3252
3331
|
//only get translations of string fields
|
|
3253
|
-
if (oConfig.type === "string") {
|
|
3254
|
-
sLanguage = this._language;
|
|
3332
|
+
if (oConfig.type === "string" && Editor._oLanguages[sLanguage]) {
|
|
3255
3333
|
var sTranslateText = this.getTranslationValueInTexts(sLanguage, oConfig.manifestpath);
|
|
3256
3334
|
if (sTranslateText) {
|
|
3257
3335
|
oConfig.value = sTranslateText;
|
|
@@ -3325,7 +3403,7 @@ sap.ui.define([
|
|
|
3325
3403
|
if (vI18n.bundleUrl) {
|
|
3326
3404
|
sResourceBundleURL = this.getBaseUrl() + vI18n.bundleUrl;
|
|
3327
3405
|
}
|
|
3328
|
-
if (
|
|
3406
|
+
if (Array.isArray(vI18n.supportedLocales)) {
|
|
3329
3407
|
aSupportedLocales = vI18n.supportedLocales;
|
|
3330
3408
|
for (var i = 0; i < aSupportedLocales.length; i++) {
|
|
3331
3409
|
aSupportedLocales[i] = aSupportedLocales[i].replaceAll('_', '-');
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* @alias sap.ui.integration.editor.EditorResourceBundles
|
|
19
19
|
* @author SAP SE
|
|
20
20
|
* @since 1.94.0
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.147.0
|
|
22
22
|
* @private
|
|
23
23
|
*/
|
|
24
24
|
var EditorResourceBundles = ManagedObject.extend("sap.ui.integration.editor.EditorResourceBundles", {
|
|
@@ -31,9 +31,6 @@ sap.ui.define([
|
|
|
31
31
|
},
|
|
32
32
|
languages: {
|
|
33
33
|
type: "object"
|
|
34
|
-
},
|
|
35
|
-
supportedLocales: {
|
|
36
|
-
type: "array"
|
|
37
34
|
}
|
|
38
35
|
},
|
|
39
36
|
events: {
|
|
@@ -45,7 +42,6 @@ sap.ui.define([
|
|
|
45
42
|
EditorResourceBundles.prototype.loadResourceBundles = function () {
|
|
46
43
|
var that = this;
|
|
47
44
|
var sUrl = that.getUrl();
|
|
48
|
-
var aSupportedLocales = that.getSupportedLocales();
|
|
49
45
|
var aLanguages = that.getLanguages();
|
|
50
46
|
that._ready = false;
|
|
51
47
|
that._aResourceBundles = [];
|
|
@@ -53,41 +49,24 @@ sap.ui.define([
|
|
|
53
49
|
// according to the language list, load each resource bundle
|
|
54
50
|
Object.keys(aLanguages).forEach(function (language) {
|
|
55
51
|
if (sUrl) {
|
|
56
|
-
var aFallbacks = [language];
|
|
57
|
-
if (language.indexOf("-") > -1) {
|
|
58
|
-
aFallbacks.push(language.substring(0, language.indexOf("-")));
|
|
59
|
-
}
|
|
60
|
-
// add en into fallbacks
|
|
61
|
-
if (!aFallbacks.includes("en")) {
|
|
62
|
-
aFallbacks.push("en");
|
|
63
|
-
}
|
|
64
52
|
that._aResourceBundles[language] = "";
|
|
65
53
|
var oResourceBundleReadyPromie = ResourceBundle.create({
|
|
66
54
|
url: sUrl,
|
|
67
55
|
async: true,
|
|
68
|
-
locale: language
|
|
69
|
-
supportedLocales: aFallbacks
|
|
56
|
+
locale: language
|
|
70
57
|
}).then(function (oResourceBundle) {
|
|
71
58
|
var oResourceBundleObject = {
|
|
72
59
|
"language": aLanguages[language],
|
|
73
|
-
"resourceBundle": oResourceBundle
|
|
74
|
-
"isSupportedLocale": true
|
|
60
|
+
"resourceBundle": oResourceBundle
|
|
75
61
|
};
|
|
76
|
-
if (Array.isArray(aSupportedLocales) && !aSupportedLocales.includes(language) && !aSupportedLocales.includes(language.replace('-', '_'))) {
|
|
77
|
-
oResourceBundleObject.isSupportedLocale = false;
|
|
78
|
-
}
|
|
79
62
|
that._aResourceBundles[language] = oResourceBundleObject;
|
|
80
63
|
});
|
|
81
64
|
that._aResourceBundleReadyPromise.push(oResourceBundleReadyPromie);
|
|
82
65
|
} else {
|
|
83
66
|
// i18n not defined in card manifest
|
|
84
67
|
var oResourceBundleObject = {
|
|
85
|
-
"language": aLanguages[language]
|
|
86
|
-
"isSupportedLocale": true
|
|
68
|
+
"language": aLanguages[language]
|
|
87
69
|
};
|
|
88
|
-
if (Array.isArray(aSupportedLocales) && !aSupportedLocales.includes(language) && !aSupportedLocales.includes(language.replace('-', '_'))) {
|
|
89
|
-
oResourceBundleObject.isSupportedLocale = false;
|
|
90
|
-
}
|
|
91
70
|
that._aResourceBundles[language] = oResourceBundleObject;
|
|
92
71
|
}
|
|
93
72
|
});
|
|
@@ -97,12 +76,8 @@ sap.ui.define([
|
|
|
97
76
|
// add missing languages
|
|
98
77
|
if (that._aResourceBundles[language] == "") {
|
|
99
78
|
var oResourceBundleObject = {
|
|
100
|
-
"language": aLanguages[language]
|
|
101
|
-
"isSupportedLocale": true
|
|
79
|
+
"language": aLanguages[language]
|
|
102
80
|
};
|
|
103
|
-
if (Array.isArray(aSupportedLocales) && !aSupportedLocales.includes(language) && !aSupportedLocales.includes(language.replace('-', '_'))) {
|
|
104
|
-
oResourceBundleObject.isSupportedLocale = false;
|
|
105
|
-
}
|
|
106
81
|
that._aResourceBundles[language] = oResourceBundleObject;
|
|
107
82
|
}
|
|
108
83
|
});
|
|
@@ -82,9 +82,8 @@ 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.147.0
|
|
86
86
|
* @private
|
|
87
|
-
* @experimental since 1.83.0
|
|
88
87
|
* @ui5-restricted
|
|
89
88
|
*/
|
|
90
89
|
var Settings = Control.extend("sap.ui.integration.editor.Settings", {
|