@sapui5/sap.suite.ui.commons 1.108.14 → 1.108.16
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 +1 -1
- package/src/sap/suite/ui/commons/.library +1 -1
- package/src/sap/suite/ui/commons/AriaProperties.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilder.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderFunction.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderGroup.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderItem.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderValidationResult.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +1 -1
- package/src/sap/suite/ui/commons/CloudFilePicker.js +1 -1
- package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
- package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
- package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +34 -19
- package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +43 -2
- package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/library.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @extends sap.ui.core.Control
|
|
43
43
|
*
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.108.
|
|
45
|
+
* @version 1.108.16
|
|
46
46
|
* @since 1.66.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
@@ -251,14 +251,16 @@ sap.ui.define([
|
|
|
251
251
|
|
|
252
252
|
ImageEditor.prototype._getExifOrientation = function(oFile) {
|
|
253
253
|
var oFileReader = new FileReader(),
|
|
254
|
-
iOffset, oResult, oView, iLength, iMarker, iLittle, iTags, i, iError,
|
|
254
|
+
iOffset, oResult, oView, iLength, iMarker, iLittle, iTags, i, iValue, iError,
|
|
255
255
|
CONSTANTS = {
|
|
256
256
|
FIRST_CHECK: 65496,
|
|
257
|
-
SECOND_CHECK:
|
|
257
|
+
SECOND_CHECK: 9,
|
|
258
|
+
THIRD_CHECK: 65505,
|
|
258
259
|
CORRECT_FORMAT_CHECK: 1165519206,
|
|
259
260
|
LITTLE_CHECK: 18761,
|
|
260
261
|
FOURTH_CHECK: 65280,
|
|
261
262
|
EXIF_CHECK: 274,
|
|
263
|
+
ERR_GENERAL: -1,
|
|
262
264
|
ERR_FILE_FORMAT: -2,
|
|
263
265
|
OFFSET_STEP: 2, OFFSET_STEP_MED: 4, OFFSET_STEP_BIG: 6
|
|
264
266
|
};
|
|
@@ -273,45 +275,58 @@ sap.ui.define([
|
|
|
273
275
|
iError = 0;
|
|
274
276
|
|
|
275
277
|
try {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
+
iValue = oView.getUint16(0, false);
|
|
279
|
+
|
|
280
|
+
if (iValue !== CONSTANTS.FIRST_CHECK) {
|
|
281
|
+
iError = CONSTANTS.ERR_FILE_FORMAT;
|
|
278
282
|
}
|
|
279
283
|
|
|
280
|
-
while (iOffset
|
|
284
|
+
while (!iError && iOffset <= iLength - 1) {
|
|
285
|
+
iValue = oView.getUint16(iOffset + CONSTANTS.OFFSET_STEP, false);
|
|
286
|
+
|
|
287
|
+
if (iValue < CONSTANTS.SECOND_CHECK) {
|
|
288
|
+
iError = CONSTANTS.ERR_GENERAL;
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
|
|
281
292
|
iMarker = oView.getUint16(iOffset, false);
|
|
282
|
-
iOffset
|
|
293
|
+
iOffset = iOffset + 2;
|
|
283
294
|
|
|
284
|
-
if (iMarker
|
|
285
|
-
iOffset += CONSTANTS.OFFSET_STEP;
|
|
295
|
+
if (iMarker === CONSTANTS.THIRD_CHECK) {
|
|
296
|
+
iValue = oView.getUint32(iOffset += CONSTANTS.OFFSET_STEP, false);
|
|
286
297
|
|
|
287
|
-
if (
|
|
288
|
-
|
|
298
|
+
if (iValue !== CONSTANTS.CORRECT_FORMAT_CHECK) {
|
|
299
|
+
iError = CONSTANTS.ERR_GENERAL;
|
|
300
|
+
break;
|
|
289
301
|
}
|
|
290
302
|
|
|
291
|
-
iOffset += CONSTANTS.OFFSET_STEP_BIG;
|
|
292
|
-
iLittle = oView.getUint16(iOffset, false) == CONSTANTS.LITTLE_CHECK;
|
|
303
|
+
iLittle = oView.getUint16(iOffset += CONSTANTS.OFFSET_STEP_BIG, false) === CONSTANTS.LITTLE_CHECK;
|
|
293
304
|
iOffset += oView.getUint32(iOffset + CONSTANTS.OFFSET_STEP_MED, iLittle);
|
|
294
305
|
iTags = oView.getUint16(iOffset, iLittle);
|
|
295
|
-
iOffset +=
|
|
306
|
+
iOffset += 2;
|
|
307
|
+
|
|
308
|
+
for (i = 0; i <= iTags - 1; i++) {
|
|
309
|
+
iValue = oView.getUint16(iOffset + (i * 12), iLittle);
|
|
296
310
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
return oView.getUint16(iOffset + (i * 12) + 8, iLittle);
|
|
311
|
+
if (iValue === CONSTANTS.EXIF_CHECK) {
|
|
312
|
+
return resolve(oView.getUint16(iOffset + (i * 12) + 8, iLittle));
|
|
300
313
|
}
|
|
301
314
|
}
|
|
302
|
-
} else if ((iMarker & CONSTANTS.FOURTH_CHECK)
|
|
315
|
+
} else if ((iMarker & CONSTANTS.FOURTH_CHECK) !== CONSTANTS.FOURTH_CHECK) {
|
|
316
|
+
iError = CONSTANTS.ERR_GENERAL;
|
|
303
317
|
break;
|
|
304
318
|
} else {
|
|
305
319
|
iOffset += oView.getUint16(iOffset, false);
|
|
306
320
|
}
|
|
307
321
|
}
|
|
322
|
+
return resolve(iError);
|
|
308
323
|
} catch (oErr) {
|
|
309
324
|
// probably wrong file format
|
|
310
325
|
return resolve(CONSTANTS.ERR_FILE_FORMAT);
|
|
311
326
|
}
|
|
312
327
|
};
|
|
313
328
|
|
|
314
|
-
oFileReader.readAsArrayBuffer(oFile
|
|
329
|
+
oFileReader.readAsArrayBuffer(oFile);
|
|
315
330
|
});
|
|
316
331
|
};
|
|
317
332
|
|
|
@@ -124,7 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
* @extends sap.ui.core.Control
|
|
125
125
|
*
|
|
126
126
|
* @author SAP SE
|
|
127
|
-
* @version 1.108.
|
|
127
|
+
* @version 1.108.16
|
|
128
128
|
* @since 1.66.0
|
|
129
129
|
*
|
|
130
130
|
* @constructor
|
|
@@ -837,7 +837,47 @@ sap.ui.define([
|
|
|
837
837
|
return this._oHeaderToolbar;
|
|
838
838
|
};
|
|
839
839
|
|
|
840
|
-
ImageEditorContainer.prototype.
|
|
840
|
+
ImageEditorContainer.prototype._destroyDisabledToolbarButtons = function () {
|
|
841
|
+
var aEnabledButtons = this.getEnabledButtons();
|
|
842
|
+
|
|
843
|
+
[ImageEditorContainerButton.Filter,ImageEditorContainerButton.Transform,ImageEditorContainerButton.Crop]
|
|
844
|
+
.forEach(function (sButton) {
|
|
845
|
+
if (aEnabledButtons.indexOf(sButton) === -1) {
|
|
846
|
+
if (sButton === ImageEditorContainerButton.Filter) {
|
|
847
|
+
if (this._oFilterButton) {
|
|
848
|
+
this._oFilterButton.destroy();
|
|
849
|
+
this._oFilterButton = null;
|
|
850
|
+
}
|
|
851
|
+
if (this._oMobileFilterButton) {
|
|
852
|
+
this._oMobileFilterButton.destroy();
|
|
853
|
+
this._oMobileFilterButton = null;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if (sButton === ImageEditorContainerButton.Crop) {
|
|
857
|
+
if (this._oCropButton) {
|
|
858
|
+
this._oCropButton.destroy();
|
|
859
|
+
this._oCropButton = null;
|
|
860
|
+
}
|
|
861
|
+
if (this._oMobileCropButton) {
|
|
862
|
+
this._oMobileCropButton.destroy();
|
|
863
|
+
this._oMobileCropButton = null;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
if (sButton === ImageEditorContainerButton.Transform) {
|
|
867
|
+
if (this._oTransformButton) {
|
|
868
|
+
this._oTransformButton.destroy();
|
|
869
|
+
this._oTransformButton = null;
|
|
870
|
+
}
|
|
871
|
+
if (this._oMobileTransformButton) {
|
|
872
|
+
this._oMobileTransformButton.destroy();
|
|
873
|
+
this._oMobileTransformButton = null;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}.bind(this));
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
ImageEditorContainer.prototype._updateToolbarsContent = function () {
|
|
841
881
|
var oHeaderToolbar = this._getHeaderToolbar(),
|
|
842
882
|
oMobileHeaderToolbar = this._getMobileHeaderToolbar(),
|
|
843
883
|
oMobileFooterToolbar = this._getMobileFooterToolbar(),
|
|
@@ -847,6 +887,7 @@ sap.ui.define([
|
|
|
847
887
|
oHeaderToolbar.removeAllContent();
|
|
848
888
|
oMobileHeaderToolbar.removeAllContent();
|
|
849
889
|
oMobileFooterToolbar.removeAllContent();
|
|
890
|
+
this._destroyDisabledToolbarButtons();
|
|
850
891
|
|
|
851
892
|
this._getHistoryItems().forEach(function(oItem) {
|
|
852
893
|
oHeaderToolbar.addContent(oItem);
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"sap.suite.ui.commons.TargetFilterMeasureColumn",
|
|
186
186
|
"sap.suite.ui.commons.AriaProperties"
|
|
187
187
|
],
|
|
188
|
-
version: "1.108.
|
|
188
|
+
version: "1.108.16",
|
|
189
189
|
extensions: {
|
|
190
190
|
flChangeHandlers: {
|
|
191
191
|
"sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
|