@sapui5/sap.fe.macros 1.99.0 → 1.100.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/package.json +2 -2
- package/src/sap/fe/macros/.library +1 -1
- package/src/sap/fe/macros/Chart.metadata.js +2 -2
- package/src/sap/fe/macros/ChartAPI.js +22 -43
- package/src/sap/fe/macros/ChartAPI.ts +3 -3
- package/src/sap/fe/macros/ChartDelegate.js +14 -24
- package/src/sap/fe/macros/CommonHelper.js +1 -1
- package/src/sap/fe/macros/DraftIndicator.fragment.xml +3 -2
- package/src/sap/fe/macros/Field.fragment.xml +16 -18
- package/src/sap/fe/macros/FieldAPI.js +162 -100
- package/src/sap/fe/macros/FieldAPI.ts +93 -16
- package/src/sap/fe/macros/FilterBar.fragment.xml +2 -1
- package/src/sap/fe/macros/FilterBar.metadata.js +16 -8
- package/src/sap/fe/macros/FilterBarAPI.js +58 -83
- package/src/sap/fe/macros/FilterBarAPI.ts +16 -2
- package/src/sap/fe/macros/FilterBarDelegate.js +112 -192
- package/src/sap/fe/macros/Form.metadata.js +1 -1
- package/src/sap/fe/macros/FormAPI.js +4 -20
- package/src/sap/fe/macros/FormContainer.fragment.xml +1 -1
- package/src/sap/fe/macros/FormContainerAPI.js +10 -31
- package/src/sap/fe/macros/MacroAPI.js +147 -162
- package/src/sap/fe/macros/MacroAPI.ts +32 -8
- package/src/sap/fe/macros/MacroMetadata.js +5 -0
- package/src/sap/fe/macros/PhantomUtil.js +56 -74
- package/src/sap/fe/macros/Table.fragment.xml +1 -1
- package/src/sap/fe/macros/Table.metadata.js +90 -39
- package/src/sap/fe/macros/TableAPI.js +284 -251
- package/src/sap/fe/macros/TableAPI.ts +126 -14
- package/src/sap/fe/macros/field/FieldHelper.js +38 -101
- package/src/sap/fe/macros/field/FieldRuntime.js +68 -6
- package/src/sap/fe/macros/field/FieldTemplating.js +72 -12
- package/src/sap/fe/macros/field/FieldTemplating.ts +67 -10
- package/src/sap/fe/macros/field/QuickViewLinkDelegate.js +5 -12
- package/src/sap/fe/macros/filter/DraftEditState.fragment.xml +1 -1
- package/src/sap/fe/macros/filter/FilterFieldHelper.js +1 -3
- package/src/sap/fe/macros/filter/FilterUtils.js +62 -39
- package/src/sap/fe/macros/filter/type/MultiValue.js +104 -50
- package/src/sap/fe/macros/filter/type/MultiValue.ts +66 -0
- package/src/sap/fe/macros/filter/type/Range.js +83 -35
- package/src/sap/fe/macros/filter/type/Range.ts +64 -0
- package/src/sap/fe/macros/filter/type/Value.js +327 -216
- package/src/sap/fe/macros/filter/type/Value.ts +301 -0
- package/src/sap/fe/macros/internal/CollaborationAvatar.fragment.xml +15 -0
- package/src/sap/fe/macros/internal/CollectionField.metadata.js +14 -2
- package/src/sap/fe/macros/internal/CollectionField.metadata.ts +18 -2
- package/src/sap/fe/macros/internal/DataPoint.fragment.xml +12 -29
- package/src/sap/fe/macros/internal/DataPoint.metadata.js +9 -0
- package/src/sap/fe/macros/internal/Field.fragment.xml +1 -0
- package/src/sap/fe/macros/internal/Field.metadata.js +529 -533
- package/src/sap/fe/macros/internal/Field.metadata.ts +568 -0
- package/src/sap/fe/macros/internal/FilterField.fragment.xml +0 -1
- package/src/sap/fe/macros/internal/SituationsIndicator.js +3 -3
- package/src/sap/fe/macros/internal/SituationsIndicator.ts +3 -2
- package/src/sap/fe/macros/internal/field/FieldContent.fragment.xml +3 -1
- package/src/sap/fe/macros/internal/field/FieldStructure.fragment.xml +13 -3
- package/src/sap/fe/macros/internal/field/displayStyle/DataPoint.fragment.xml +4 -1
- package/src/sap/fe/macros/internal/field/displayStyle/ExpandableText.fragment.xml +1 -0
- package/src/sap/fe/macros/internal/field/displayStyle/LabelSemanticKey.fragment.xml +1 -0
- package/src/sap/fe/macros/internal/field/displayStyle/Link.fragment.xml +38 -4
- package/src/sap/fe/macros/internal/field/displayStyle/LinkWithQuickViewForm.fragment.xml +2 -2
- package/src/sap/fe/macros/internal/field/displayStyle/LinkWrapper.fragment.xml +3 -3
- package/src/sap/fe/macros/internal/field/displayStyle/MdcFieldWithValueHelp.fragment.xml +1 -2
- package/src/sap/fe/macros/internal/field/displayStyle/ObjectIdentifier.fragment.xml +55 -11
- package/src/sap/fe/macros/internal/field/displayStyle/SemanticKeyWithDraftIndicator.fragment.xml +1 -1
- package/src/sap/fe/macros/internal/field/displayStyle/Text.fragment.xml +3 -3
- package/src/sap/fe/macros/internal/field/editStyle/DatePicker.fragment.xml +9 -2
- package/src/sap/fe/macros/internal/field/editStyle/DateTimePicker.fragment.xml +9 -2
- package/src/sap/fe/macros/internal/field/editStyle/Input.fragment.xml +12 -3
- package/src/sap/fe/macros/internal/field/editStyle/InputWithUnit.fragment.xml +26 -5
- package/src/sap/fe/macros/internal/field/editStyle/InputWithValueHelp.fragment.xml +10 -2
- package/src/sap/fe/macros/internal/field/editStyle/RatingIndicator.fragment.xml +9 -2
- package/src/sap/fe/macros/internal/field/editStyle/TimePicker.fragment.xml +9 -2
- package/src/sap/fe/macros/internal/field/fragments/ObjectIdentifierContent.fragment.xml +4 -0
- package/src/sap/fe/macros/internal/helpers/DataPointTemplating.js +31 -2
- package/src/sap/fe/macros/internal/helpers/DataPointTemplating.ts +20 -0
- package/src/sap/fe/macros/internal/situations/Runtime.js +2 -2
- package/src/sap/fe/macros/internal/situations/Runtime.ts +7 -9
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.js +90 -118
- package/src/sap/fe/macros/library.js +1 -1
- package/src/sap/fe/macros/messagebundle.properties +4 -1
- package/src/sap/fe/macros/messagebundle_ar.properties +3 -1
- package/src/sap/fe/macros/messagebundle_bg.properties +3 -1
- package/src/sap/fe/macros/messagebundle_ca.properties +3 -1
- package/src/sap/fe/macros/messagebundle_cs.properties +3 -1
- package/src/sap/fe/macros/messagebundle_cy.properties +3 -1
- package/src/sap/fe/macros/messagebundle_da.properties +3 -1
- package/src/sap/fe/macros/messagebundle_de.properties +4 -2
- package/src/sap/fe/macros/messagebundle_el.properties +3 -1
- package/src/sap/fe/macros/messagebundle_en.properties +3 -1
- package/src/sap/fe/macros/messagebundle_en_GB.properties +3 -1
- package/src/sap/fe/macros/messagebundle_en_US_sappsd.properties +3 -1
- package/src/sap/fe/macros/messagebundle_en_US_saprigi.properties +3 -1
- package/src/sap/fe/macros/messagebundle_en_US_saptrc.properties +3 -1
- package/src/sap/fe/macros/messagebundle_es.properties +3 -1
- package/src/sap/fe/macros/messagebundle_es_MX.properties +3 -1
- package/src/sap/fe/macros/messagebundle_et.properties +3 -1
- package/src/sap/fe/macros/messagebundle_fi.properties +3 -1
- package/src/sap/fe/macros/messagebundle_fr.properties +3 -1
- package/src/sap/fe/macros/messagebundle_fr_CA.properties +3 -1
- package/src/sap/fe/macros/messagebundle_hi.properties +3 -1
- package/src/sap/fe/macros/messagebundle_hr.properties +3 -1
- package/src/sap/fe/macros/messagebundle_hu.properties +4 -2
- package/src/sap/fe/macros/messagebundle_id.properties +4 -2
- package/src/sap/fe/macros/messagebundle_it.properties +3 -1
- package/src/sap/fe/macros/messagebundle_iw.properties +3 -1
- package/src/sap/fe/macros/messagebundle_ja.properties +3 -1
- package/src/sap/fe/macros/messagebundle_kk.properties +3 -1
- package/src/sap/fe/macros/messagebundle_ko.properties +3 -1
- package/src/sap/fe/macros/messagebundle_lt.properties +3 -1
- package/src/sap/fe/macros/messagebundle_lv.properties +3 -1
- package/src/sap/fe/macros/messagebundle_ms.properties +3 -1
- package/src/sap/fe/macros/messagebundle_nl.properties +3 -1
- package/src/sap/fe/macros/messagebundle_no.properties +3 -1
- package/src/sap/fe/macros/messagebundle_pl.properties +3 -1
- package/src/sap/fe/macros/messagebundle_pt.properties +3 -1
- package/src/sap/fe/macros/messagebundle_pt_PT.properties +3 -1
- package/src/sap/fe/macros/messagebundle_ro.properties +3 -1
- package/src/sap/fe/macros/messagebundle_ru.properties +3 -1
- package/src/sap/fe/macros/messagebundle_sh.properties +3 -1
- package/src/sap/fe/macros/messagebundle_sk.properties +3 -1
- package/src/sap/fe/macros/messagebundle_sl.properties +3 -1
- package/src/sap/fe/macros/messagebundle_sv.properties +3 -1
- package/src/sap/fe/macros/messagebundle_th.properties +3 -1
- package/src/sap/fe/macros/messagebundle_tr.properties +3 -1
- package/src/sap/fe/macros/messagebundle_uk.properties +3 -1
- package/src/sap/fe/macros/messagebundle_vi.properties +3 -1
- package/src/sap/fe/macros/messagebundle_zh_CN.properties +3 -1
- package/src/sap/fe/macros/messagebundle_zh_TW.properties +3 -1
- package/src/sap/fe/macros/table/Actions.fragment.xml +1 -1
- package/src/sap/fe/macros/table/Column.fragment.xml +1 -1
- package/src/sap/fe/macros/table/ColumnContent.fragment.xml +2 -0
- package/src/sap/fe/macros/table/CreationRow.fragment.xml +13 -20
- package/src/sap/fe/macros/table/CustomColumn.fragment.xml +1 -0
- package/src/sap/fe/macros/table/TableHelper.js +5 -110
- package/src/sap/fe/macros/table/delegates/TableDelegate.js +98 -78
- package/src/sap/fe/macros/valuehelp/ValueHelpFilterBar.metadata.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapui5/sap.fe.macros",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.100.0",
|
|
4
4
|
"description": "SAPUI5 Library sap.fe.macros",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "SAP SE (https://www.sap.com)",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"prepare-ui5-build-sources": "mkdirp target/ui5-build-tmp/src && babel src --out-dir target/ui5-build-tmp/src --extensions \".ts\" --config-file ../../.babelrc && babel test --out-dir target/ui5-build-tmp/test --extensions \".ts\" --config-file ../../.babelrc",
|
|
14
14
|
"test": "jest --maxWorkers=4",
|
|
15
15
|
"test-refs": "jest --runInBand --config jest.config-refs.js",
|
|
16
|
-
"test-updateSnapshots": "jest --
|
|
16
|
+
"test-updateSnapshots": "jest --maxWorkers=4 -u"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"sapui5",
|
|
@@ -205,7 +205,7 @@ sap.ui.define(
|
|
|
205
205
|
oProps.actions = this.createBindingContext(oChartDefinition.actions, mSettings);
|
|
206
206
|
oProps.selectionMode = oProps.selectionMode.toUpperCase();
|
|
207
207
|
if (oProps.filterBar) {
|
|
208
|
-
this.setDefaultValue(oProps, "filter", (oProps.filterBar
|
|
208
|
+
this.setDefaultValue(oProps, "filter", this.getContentId(oProps.filterBar));
|
|
209
209
|
} else if (!oProps.filter) {
|
|
210
210
|
this.setDefaultValue(oProps, "filter", oChartDefinition.filterId);
|
|
211
211
|
}
|
|
@@ -217,7 +217,7 @@ sap.ui.define(
|
|
|
217
217
|
oProps._contentId = oProps.id;
|
|
218
218
|
} else {
|
|
219
219
|
oProps._apiId = oProps.id;
|
|
220
|
-
oProps._contentId = oProps.id
|
|
220
|
+
oProps._contentId = this.getContentId(oProps.id);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
return oProps;
|
|
@@ -14,28 +14,12 @@ sap.ui.define(["sap/fe/core/helpers/ClassSupport", "./MacroAPI", "sap/base/util/
|
|
|
14
14
|
|
|
15
15
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
16
16
|
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
20
|
-
|
|
21
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
17
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
18
|
|
|
23
19
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
24
20
|
|
|
25
21
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
22
|
|
|
27
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
28
|
-
|
|
29
|
-
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
|
-
|
|
31
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
32
|
-
|
|
33
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
34
|
-
|
|
35
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
-
|
|
37
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
38
|
-
|
|
39
23
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
40
24
|
|
|
41
25
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
@@ -57,10 +41,10 @@ sap.ui.define(["sap/fe/core/helpers/ClassSupport", "./MacroAPI", "sap/base/util/
|
|
|
57
41
|
var ChartAPI = (_dec = APIClass("sap.fe.macros.ChartAPI"), _dec2 = Property({
|
|
58
42
|
type: "string"
|
|
59
43
|
}), _dec3 = Property({
|
|
60
|
-
type: "
|
|
44
|
+
type: "string",
|
|
61
45
|
required: true
|
|
62
46
|
}), _dec4 = Property({
|
|
63
|
-
type: "
|
|
47
|
+
type: "string",
|
|
64
48
|
required: true
|
|
65
49
|
}), _dec5 = Property({
|
|
66
50
|
type: "string",
|
|
@@ -72,47 +56,42 @@ sap.ui.define(["sap/fe/core/helpers/ClassSupport", "./MacroAPI", "sap/base/util/
|
|
|
72
56
|
}), _dec(_class = (_class2 = /*#__PURE__*/function (_MacroAPI) {
|
|
73
57
|
_inherits(ChartAPI, _MacroAPI);
|
|
74
58
|
|
|
75
|
-
var _super = _createSuper(ChartAPI);
|
|
76
|
-
|
|
77
59
|
function ChartAPI() {
|
|
78
60
|
var _this;
|
|
79
61
|
|
|
80
|
-
_classCallCheck(this, ChartAPI);
|
|
81
|
-
|
|
82
62
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
83
63
|
args[_key] = arguments[_key];
|
|
84
64
|
}
|
|
85
65
|
|
|
86
|
-
_this =
|
|
66
|
+
_this = _MacroAPI.call.apply(_MacroAPI, [this].concat(args)) || this;
|
|
87
67
|
|
|
88
|
-
_initializerDefineProperty(
|
|
68
|
+
_initializerDefineProperty(_this, "id", _descriptor, _assertThisInitialized(_this));
|
|
89
69
|
|
|
90
|
-
_initializerDefineProperty(
|
|
70
|
+
_initializerDefineProperty(_this, "metaPath", _descriptor2, _assertThisInitialized(_this));
|
|
91
71
|
|
|
92
|
-
_initializerDefineProperty(
|
|
72
|
+
_initializerDefineProperty(_this, "contextPath", _descriptor3, _assertThisInitialized(_this));
|
|
93
73
|
|
|
94
|
-
_initializerDefineProperty(
|
|
74
|
+
_initializerDefineProperty(_this, "selectionMode", _descriptor4, _assertThisInitialized(_this));
|
|
95
75
|
|
|
96
|
-
_initializerDefineProperty(
|
|
76
|
+
_initializerDefineProperty(_this, "filterBar", _descriptor5, _assertThisInitialized(_this));
|
|
97
77
|
|
|
98
|
-
_initializerDefineProperty(
|
|
78
|
+
_initializerDefineProperty(_this, "personalization", _descriptor6, _assertThisInitialized(_this));
|
|
99
79
|
|
|
100
|
-
_initializerDefineProperty(
|
|
80
|
+
_initializerDefineProperty(_this, "selectionChange", _descriptor7, _assertThisInitialized(_this));
|
|
101
81
|
|
|
102
82
|
return _this;
|
|
103
83
|
}
|
|
104
84
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}]);
|
|
85
|
+
var _proto = ChartAPI.prototype;
|
|
86
|
+
|
|
87
|
+
_proto.handleSelectionChange = function handleSelectionChange(oEvent) {
|
|
88
|
+
var aData = oEvent.getParameter("data");
|
|
89
|
+
var bSelected = oEvent.getParameter("name") === "selectData";
|
|
90
|
+
this.fireSelectionChange(merge({}, {
|
|
91
|
+
data: aData,
|
|
92
|
+
selected: bSelected
|
|
93
|
+
}));
|
|
94
|
+
};
|
|
116
95
|
|
|
117
96
|
return ChartAPI;
|
|
118
97
|
}(MacroAPI), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -153,4 +132,4 @@ sap.ui.define(["sap/fe/core/helpers/ClassSupport", "./MacroAPI", "sap/base/util/
|
|
|
153
132
|
}), _applyDecoratedDescriptor(_class2.prototype, "handleSelectionChange", [EventHandler], Object.getOwnPropertyDescriptor(_class2.prototype, "handleSelectionChange"), _class2.prototype)), _class2)) || _class);
|
|
154
133
|
return ChartAPI;
|
|
155
134
|
}, false);
|
|
156
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
135
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNoYXJ0QVBJLnRzIl0sIm5hbWVzIjpbIkNoYXJ0QVBJIiwiQVBJQ2xhc3MiLCJQcm9wZXJ0eSIsInR5cGUiLCJyZXF1aXJlZCIsImRlZmF1bHRWYWx1ZSIsImhhbmRsZVNlbGVjdGlvbkNoYW5nZSIsIm9FdmVudCIsImFEYXRhIiwiZ2V0UGFyYW1ldGVyIiwiYlNlbGVjdGVkIiwiZmlyZVNlbGVjdGlvbkNoYW5nZSIsIm1lcmdlIiwiZGF0YSIsInNlbGVjdGVkIiwiTWFjcm9BUEkiLCJFdmVudCIsIkV2ZW50SGFuZGxlciJdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO01BRU1BLFEsV0FETEMsUUFBUSxDQUFDLHdCQUFELEMsVU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VydHkoeyB0eXBlOiBcImJvb2xlYW58c3RyaW5nXCIgfSlcblx0cGVyc29uYWxpemF0aW9uITogYm9vbGVhbiB8IHN0cmluZztcblxuXHQvKipcblx0ICogQW4gZXZlbnQgdHJpZ2dlcmVkIHdoZW4gY2hhcnQgc2VsZWN0aW9ucyBhcmUgY2hhbmdlZC4gVGhlIGV2ZW50IGNvbnRhaW5zIGluZm9ybWF0aW9uIGFib3V0IHRoZSBkYXRhIHNlbGVjdGVkL2Rlc2VsZWN0ZWQgYW5kXG5cdCAqIGJvb2xlYW4gZmxhZyB0aGF0IGluZGljYXRlcyB3aGV0aGVyIGRhdGEgaXMgc2VsZWN0ZWQgb3IgZGVzZWxlY3RlZC5cblx0ICpcblx0ICogQHB1YmxpY1xuXHQgKi9cblx0QEV2ZW50XG5cdHNlbGVjdGlvbkNoYW5nZSE6IEZ1bmN0aW9uO1xuXG5cdEBFdmVudEhhbmRsZXJcblx0aGFuZGxlU2VsZWN0aW9uQ2hhbmdlKG9FdmVudDogVUk1RXZlbnQpIHtcblx0XHRjb25zdCBhRGF0YSA9IG9FdmVudC5nZXRQYXJhbWV0ZXIoXCJkYXRhXCIpO1xuXHRcdGNvbnN0IGJTZWxlY3RlZCA9IG9FdmVudC5nZXRQYXJhbWV0ZXIoXCJuYW1lXCIpID09PSBcInNlbGVjdERhdGFcIjtcblx0XHQodGhpcyBhcyBhbnkpLmZpcmVTZWxlY3Rpb25DaGFuZ2UobWVyZ2Uoe30sIHsgZGF0YTogYURhdGEsIHNlbGVjdGVkOiBiU2VsZWN0ZWQgfSkpO1xuXHR9XG59XG5cbmV4cG9ydCBkZWZhdWx0IENoYXJ0QVBJO1xuIl19
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIClass, Property, EventHandler, Event } from "sap/fe/core/helpers/ClassSupport";
|
|
2
2
|
import MacroAPI from "./MacroAPI";
|
|
3
3
|
import merge from "sap/base/util/merge";
|
|
4
|
-
|
|
4
|
+
import UI5Event from "sap/ui/base/Event";
|
|
5
5
|
/**
|
|
6
6
|
* Building block used to create a chart based on the metadata provided by OData V4.
|
|
7
7
|
* <br>
|
|
@@ -32,7 +32,7 @@ class ChartAPI extends MacroAPI {
|
|
|
32
32
|
*
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
|
-
@Property({ type: "
|
|
35
|
+
@Property({ type: "string", required: true })
|
|
36
36
|
metaPath!: string;
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -40,7 +40,7 @@ class ChartAPI extends MacroAPI {
|
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
|
-
@Property({ type: "
|
|
43
|
+
@Property({ type: "string", required: true })
|
|
44
44
|
contextPath!: string;
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -194,37 +194,31 @@ sap.ui.define(
|
|
|
194
194
|
aggregatable: false,
|
|
195
195
|
maxConditions: ODataMetaModelUtil.isMultiValueFilterExpression(oFilterRestrictionsInfo.propertyInfo[sKey]) ? -1 : 1,
|
|
196
196
|
sortKey: sKey,
|
|
197
|
-
kind: "Groupable", //TODO: Rename in type; Only needed for P13n Item Panel
|
|
198
|
-
availableRoles: ChartDelegate._getLayoutOptionsForType("groupable"), //for p13n
|
|
199
197
|
role: MDCLib.ChartItemRoleType.category, //standard, normally this should be interpreted from UI.Chart annotation
|
|
200
198
|
criticality: sCriticality, //To be implemented by FE
|
|
201
199
|
textProperty:
|
|
202
200
|
!bIsNavigationText && oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text"]
|
|
203
201
|
? oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text"].$Path
|
|
204
202
|
: null, //To be implemented by FE
|
|
205
|
-
textFormatter:
|
|
206
|
-
|
|
207
|
-
var oTextArrangementAnnotation =
|
|
208
|
-
oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text@com.sap.vocabularies.UI.v1.TextArrangement"];
|
|
209
|
-
if (oTextArrangementAnnotation.$EnumMember === "com.sap.vocabularies.UI.v1.TextArrangementType/TextFirst") {
|
|
210
|
-
return oValue2 + " (" + oValue1 + ")";
|
|
211
|
-
} else if (
|
|
212
|
-
oTextArrangementAnnotation.$EnumMember === "com.sap.vocabularies.UI.v1.TextArrangementType/TextLast"
|
|
213
|
-
) {
|
|
214
|
-
return oValue1 + " (" + oValue2 + ")";
|
|
215
|
-
} else if (
|
|
216
|
-
oTextArrangementAnnotation.$EnumMember === "com.sap.vocabularies.UI.v1.TextArrangementType/TextOnly"
|
|
217
|
-
) {
|
|
218
|
-
return oValue2;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return oValue2 ? oValue2 : oValue1;
|
|
222
|
-
}
|
|
203
|
+
textFormatter:
|
|
204
|
+
oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text@com.sap.vocabularies.UI.v1.TextArrangement"]
|
|
223
205
|
});
|
|
224
206
|
}
|
|
225
207
|
}
|
|
226
208
|
};
|
|
227
209
|
|
|
210
|
+
ChartDelegate._formatText = function(oValue1, oValue2) {
|
|
211
|
+
var oTextArrangementAnnotation = this.textFormatter;
|
|
212
|
+
if (oTextArrangementAnnotation.$EnumMember === "com.sap.vocabularies.UI.v1.TextArrangementType/TextFirst") {
|
|
213
|
+
return oValue2 + " (" + oValue1 + ")";
|
|
214
|
+
} else if (oTextArrangementAnnotation.$EnumMember === "com.sap.vocabularies.UI.v1.TextArrangementType/TextLast") {
|
|
215
|
+
return oValue1 + " (" + oValue2 + ")";
|
|
216
|
+
} else if (oTextArrangementAnnotation.$EnumMember === "com.sap.vocabularies.UI.v1.TextArrangementType/TextOnly") {
|
|
217
|
+
return oValue2;
|
|
218
|
+
}
|
|
219
|
+
return oValue2 ? oValue2 : oValue1;
|
|
220
|
+
};
|
|
221
|
+
|
|
228
222
|
ChartDelegate.updateBindingInfo = function(oChart, oBindingInfo) {
|
|
229
223
|
setChartNoDataText(oChart, oBindingInfo);
|
|
230
224
|
|
|
@@ -410,8 +404,6 @@ sap.ui.define(
|
|
|
410
404
|
aggregatable: true,
|
|
411
405
|
aggregationMethod: sAggregatable,
|
|
412
406
|
maxConditions: ODataMetaModelUtil.isMultiValueFilterExpression(oFilterRestrictionsInfo.propertyInfo[sKey]) ? -1 : 1,
|
|
413
|
-
kind: "Aggregatable", //Only needed for P13n Item Panel
|
|
414
|
-
availableRoles: ChartDelegate._getLayoutOptionsForType("aggregatable"), //for p13n
|
|
415
407
|
role: MDCLib.ChartItemRoleType.axis1,
|
|
416
408
|
datapoint: null //To be implemented by FE
|
|
417
409
|
});
|
|
@@ -422,8 +414,6 @@ sap.ui.define(
|
|
|
422
414
|
var oItem = merge({}, mCustomAggregates[sCustom], {
|
|
423
415
|
groupable: false,
|
|
424
416
|
aggregatable: true,
|
|
425
|
-
kind: "Aggregatable",
|
|
426
|
-
availableRoles: ChartDelegate._getLayoutOptionsForType("aggregatable"), //for p13n
|
|
427
417
|
role: MDCLib.ChartItemRoleType.axis1,
|
|
428
418
|
datapoint: null //To be implemented by FE
|
|
429
419
|
});
|
|
@@ -562,7 +562,7 @@ sap.ui.define(
|
|
|
562
562
|
* @function
|
|
563
563
|
* @memberof sap.fe.macros.CommonHelper
|
|
564
564
|
* @param {string} sValue Some string that needs to be converted into single quotes
|
|
565
|
-
* @param {boolean} bEscape Should the string be escaped beforehand
|
|
565
|
+
* @param {boolean} [bEscape] Should the string be escaped beforehand
|
|
566
566
|
* @returns {string} - String with single quotes
|
|
567
567
|
**/
|
|
568
568
|
addSingleQuotes: function(sValue, bEscape) {
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
xmlns="sap.m"
|
|
5
5
|
template:require="{
|
|
6
6
|
FIELD: 'sap/fe/macros/field/FieldHelper',
|
|
7
|
-
ID: 'sap/fe/core/helpers/StableIdHelper'
|
|
7
|
+
ID: 'sap/fe/core/helpers/StableIdHelper',
|
|
8
|
+
FieldTemplating: 'sap/fe/macros/field/FieldTemplating'
|
|
8
9
|
}"
|
|
9
10
|
>
|
|
10
11
|
<!-- {IsActiveEntity} true when there are unsaved changes by other users.
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
press="DraftIndicator.onDraftLinkPressed($event, '{entitySet>@sapui.name}','{this>indicatorType}')"
|
|
19
20
|
visibility="{= !%{HasDraftEntity} ? 'TextOnly' : 'IconAndText' }"
|
|
20
21
|
visible="{this>isDraftIndicatorVisible}"
|
|
21
|
-
additionalInfo="{path: 'entitySet>$Type', formatter: '
|
|
22
|
+
additionalInfo="{path: 'entitySet>$Type', formatter: 'FieldTemplating.getBindingForDraftAdminBlockInline'}"
|
|
22
23
|
ariaLabelledBy="{= ${this>ariaLabelledBy}}"
|
|
23
24
|
/>
|
|
24
25
|
</template:then>
|
|
@@ -10,25 +10,24 @@
|
|
|
10
10
|
UI: 'sap/fe/core/templating/UIFormatters'
|
|
11
11
|
}"
|
|
12
12
|
>
|
|
13
|
-
<template:with path="contextPath>" var="_entitySet" helper="UI.getTargetEntitySet">
|
|
14
13
|
<internalMacro:Field
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
entitySet="{contextPath>}"
|
|
15
|
+
dataField="{metaPath>}"
|
|
16
|
+
editMode="{this>editModeExpression}"
|
|
17
|
+
onChange="{this>change}"
|
|
18
|
+
_flexId="{this>id}"
|
|
19
|
+
semanticObject="{this>semanticObject}"
|
|
20
|
+
>
|
|
22
21
|
<internalMacro:formatOptions
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
textAlignMode="Form"
|
|
23
|
+
showEmptyIndicator="true"
|
|
24
|
+
displayMode="{this>formatOptions/displayMode}"
|
|
25
|
+
measureDisplayMode="{this>formatOptions/measureDisplayMode}"
|
|
26
|
+
textLinesEdit="{this>formatOptions/textLinesEdit}"
|
|
27
|
+
textMaxLines="{this>formatOptions/textMaxLines}"
|
|
28
|
+
textMaxCharactersDisplay="{this>formatOptions/textMaxCharactersDisplay}"
|
|
29
|
+
textExpandBehaviorDisplay="{this>formatOptions/textExpandBehaviorDisplay}"
|
|
30
|
+
/>
|
|
32
31
|
<template:with path="metaPath>" helper="FIELD.valueHelpProperty" var="vhProperty">
|
|
33
32
|
<template:if test="{=FIELD.hasValueHelpAnnotation(${vhProperty>@})}">
|
|
34
33
|
<macro:dependents>
|
|
@@ -37,5 +36,4 @@
|
|
|
37
36
|
</template:if>
|
|
38
37
|
</template:with>
|
|
39
38
|
</internalMacro:Field>
|
|
40
|
-
</template:with>
|
|
41
39
|
</core:FragmentDefinition>
|