@openui5/sap.ui.dt 1.96.2 → 1.98.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.
Files changed (54) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +2 -2
  4. package/src/sap/ui/dt/.library +2 -2
  5. package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +2 -2
  6. package/src/sap/ui/dt/AggregationOverlay.js +3 -2
  7. package/src/sap/ui/dt/ControlObserver.js +2 -2
  8. package/src/sap/ui/dt/DOMUtil.js +8 -7
  9. package/src/sap/ui/dt/DesignTime.js +74 -20
  10. package/src/sap/ui/dt/DesignTimeMetadata.js +3 -3
  11. package/src/sap/ui/dt/DesignTimeStatus.js +1 -1
  12. package/src/sap/ui/dt/ElementDesignTimeMetadata.js +6 -4
  13. package/src/sap/ui/dt/ElementOverlay.js +7 -3
  14. package/src/sap/ui/dt/ElementUtil.js +3 -40
  15. package/src/sap/ui/dt/ManagedObjectObserver.js +3 -2
  16. package/src/sap/ui/dt/MetadataPropagationUtil.js +7 -7
  17. package/src/sap/ui/dt/MutationObserver.js +2 -2
  18. package/src/sap/ui/dt/Overlay.js +17 -18
  19. package/src/sap/ui/dt/OverlayRegistry.js +3 -4
  20. package/src/sap/ui/dt/OverlayUtil.js +5 -5
  21. package/src/sap/ui/dt/Plugin.js +31 -2
  22. package/src/sap/ui/dt/ScrollbarSynchronizer.js +2 -2
  23. package/src/sap/ui/dt/SelectionManager.js +2 -2
  24. package/src/sap/ui/dt/SelectionMode.js +2 -2
  25. package/src/sap/ui/dt/TaskManager.js +58 -43
  26. package/src/sap/ui/dt/TaskRunner.js +16 -16
  27. package/src/sap/ui/dt/Util.js +2 -2
  28. package/src/sap/ui/dt/designtime/notAdaptable.designtime.js +1 -1
  29. package/src/sap/ui/dt/designtime/notAdaptableTree.designtime.js +1 -1
  30. package/src/sap/ui/dt/designtime/notAdaptableVisibility.designtime.js +1 -1
  31. package/src/sap/ui/dt/enablement/ElementEnablementTest.js +3 -4
  32. package/src/sap/ui/dt/enablement/Test.js +26 -25
  33. package/src/sap/ui/dt/enablement/Util.js +10 -10
  34. package/src/sap/ui/dt/enablement/elementDesigntimeTest.js +1 -1
  35. package/src/sap/ui/dt/enablement/libraryTest.js +3 -3
  36. package/src/sap/ui/dt/enablement/report/LibraryReport.js +2 -2
  37. package/src/sap/ui/dt/enablement/report/QUnitReport.js +3 -4
  38. package/src/sap/ui/dt/enablement/report/Statistic.js +2 -2
  39. package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +2 -2
  40. package/src/sap/ui/dt/enablement/report/Table.js +3 -4
  41. package/src/sap/ui/dt/enablement/report/TableRenderer.js +2 -2
  42. package/src/sap/ui/dt/library.js +3 -3
  43. package/src/sap/ui/dt/plugin/ContextMenu.js +8 -6
  44. package/src/sap/ui/dt/plugin/ControlDragDrop.js +2 -2
  45. package/src/sap/ui/dt/plugin/CutPaste.js +2 -2
  46. package/src/sap/ui/dt/plugin/DragDrop.js +20 -19
  47. package/src/sap/ui/dt/plugin/ElementMover.js +4 -3
  48. package/src/sap/ui/dt/plugin/MouseSelection.js +2 -2
  49. package/src/sap/ui/dt/plugin/TabHandling.js +2 -2
  50. package/src/sap/ui/dt/plugin/ToolHooks.js +2 -2
  51. package/src/sap/ui/dt/themes/base/library.source.less +1 -1
  52. package/src/sap/ui/dt/themes/sap_hcb/library.source.less +1 -1
  53. package/src/sap/ui/dt/util/ZIndexManager.js +2 -2
  54. package/src/sap/ui/dt/util/_createPromise.js +7 -5
package/.reuse/dep5 CHANGED
@@ -28,7 +28,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
28
28
  # OpenUI5 code
29
29
 
30
30
  Files: *
31
- Copyright: 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
31
+ Copyright: 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
32
32
  License: Apache-2.0
33
33
 
34
34
 
@@ -60,7 +60,7 @@ Comment: these files belong to: jQuery UI
60
60
 
61
61
  Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
62
62
  Copyright:
63
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
63
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
64
64
  Spencer Tipping
65
65
  License: Apache-2.0 and MIT
66
66
  Comment: these files contain content from SAP and jquery.fix.clone: Carousel.js is authored by SAP, but contains an improved implementation of the clone function which is taken from jquery-fix-clone
@@ -75,35 +75,35 @@ Comment: these files belong to: jQuery 3
75
75
 
76
76
  Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
77
77
  Copyright:
78
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
78
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
79
79
  OpenJS Foundation and other contributors
80
80
  License: Apache-2.0 and MIT
81
81
  Comment: these files contain content from SAP and jQuery 3: isPlainObject.js is overall written by SAP, but contains a modified implementation of jQuery.isPlainObject taken from jQuery
82
82
 
83
83
  Files: src/sap.ui.core/src/sap/base/util/_merge.js
84
84
  Copyright:
85
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
85
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
86
86
  OpenJS Foundation and other contributors
87
87
  License: Apache-2.0 and MIT
88
88
  Comment: these files contain content from SAP and jQuery 3: _merge.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
89
89
 
90
90
  Files: src/sap.ui.core/src/jquery.sap.script.js
91
91
  Copyright:
92
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
92
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
93
93
  OpenJS Foundation and other contributors
94
94
  License: Apache-2.0 and MIT
95
95
  Comment: these files contain content from SAP and jQuery 3: jquery.sap.script.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
96
96
 
97
97
  Files: src/sap.ui.core/src/sap/ui/Device.js
98
98
  Copyright:
99
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
99
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
100
100
  2011, John Resig
101
101
  License: Apache-2.0 and MIT
102
102
  Comment: these files contain content from SAP and jQuery 1: Device.js is overall written by SAP, but contains code taken from jQuery 1.7.1 (see the respective comment)
103
103
 
104
104
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
105
105
  Copyright:
106
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
106
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
107
107
  2014 jQuery Foundation and other contributors
108
108
  License: Apache-2.0 and MIT
109
109
  Comment: these files contain content from SAP and jQuery UI 1.8: Selectors.js is overall written by SAP, but contains code taken from jQuery UI (see the respective comments)
@@ -115,14 +115,14 @@ Comment: these files belong to: jQuery UI 1.10
115
115
 
116
116
  Files: src/sap.ui.core/src/jquery.sap.dom.js
117
117
  Copyright:
118
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
118
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
119
119
  2014 jQuery Foundation and other contributors
120
120
  License: Apache-2.0 and MIT
121
121
  Comment: these files contain content from SAP and jQuery UI 1.10: jquery.sap.dom.js is overall written by SAP, but contains code taken from jQuery UI Core (see the respective comment)
122
122
 
123
123
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
124
124
  Copyright:
125
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
125
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
126
126
  2014 jQuery Foundation and other contributors
127
127
  License: Apache-2.0 and MIT
128
128
  Comment: these files contain content from SAP and jQuery UI 1.11: zIndex.js is overall written by SAP, but contains an implementation of the function 'fnzIndex' which is taken from jQuery UI Datepicker 1.11.1
@@ -149,7 +149,7 @@ Comment: these files belong to: jQuery Mobile
149
149
 
150
150
  Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
151
151
  Copyright:
152
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
152
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
153
153
  2012 Wei-Ko Kao
154
154
  License: Apache-2.0 and MIT
155
155
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
@@ -281,14 +281,14 @@ Comment: these files belong to: blanket.js
281
281
 
282
282
  Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
283
283
  Copyright:
284
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
284
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
285
285
  Douglas Crockford
286
286
  License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
287
287
  Comment: these files contain content from SAP and JSON in JS: JSTokenizer.js is overall written by SAP, but contains code has been taken from the component JSON in JavaScript (https://github.com/douglascrockford/JSON-js/blob/master/json2.js) from Douglas Crockford which is licensed under Public Domain
288
288
 
289
289
  Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
290
290
  Copyright:
291
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
291
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
292
292
  2010 Douglas Crockford
293
293
  License: Apache-2.0
294
294
  Comment: these files contain content from SAP and Top Down Operator Precedence: ExpressionParser.js is overall written by SAP, but contains code taken from or inspired by TDOP by Douglas Crockford (see the respective comment)
@@ -322,7 +322,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
322
322
 
323
323
  Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
324
324
  Copyright:
325
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
325
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
326
326
  Behrang Norouzinia
327
327
  License: Apache-2.0 and MIT
328
328
  Comment: these files contain content from SAP and Jalaali JS: Persian.js is overall written by SAP, but the calculation is taken from jalaali-js
@@ -334,7 +334,7 @@ Comment: these files belong to: vkBeautify
334
334
 
335
335
  Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
336
336
  Copyright:
337
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
337
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
338
338
  Isaac Z. Schlueter and Contributors
339
339
  License: Apache-2.0 and ISC
340
340
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
@@ -370,21 +370,11 @@ Comment: these files belong to: Buttons extension for DataTables
370
370
 
371
371
  # Library: sap.ui.integration:
372
372
 
373
- Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*.*.json src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/bundle*
373
+ Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*
374
374
  Copyright: SAP
375
375
  License: Apache-2.0
376
376
  Comment: these files belong to: UI5 Web Components
377
377
 
378
- Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/webcomponentsjs/*
379
- Copyright: 2015 The Polymer Authors
380
- License: BSD-3-Clause
381
- Comment: these files belong to: Webcomponentsjs
382
-
383
- Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
384
- Copyright: 1991-2014 Unicode, Inc.
385
- License: Unicode-DFS-2015
386
- Comment: these files belong to: Unicode Common Locale Data Repository
387
-
388
378
  Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptivecards.js src/sap.ui.integration/src/sap/ui/integration/schemas/adaptive-card.json
389
379
  Copyright: 2017 Microsoft
390
380
  License: MIT
@@ -395,22 +385,27 @@ Copyright: 2017 Microsoft
395
385
  License: MIT
396
386
  Comment: these files belong to: Adaptive Cards Templating
397
387
 
388
+ Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
389
+ Copyright: Microsoft
390
+ License: MIT
391
+ Comment: these files belong to: Adaptive Expressions
392
+
398
393
  Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
399
394
  Copyright: 2014 Vitaly Puzrin, Alex Kocharin
400
395
  License: MIT
401
396
  Comment: these files belong to: Markdown-it
402
397
 
403
- Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
404
- Copyright: 2015-2017 Evgeny Poberezkin
398
+ Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/CfWorkerJsonSchemaValidator.js
399
+ Copyright: 2020 Jeremy Danyow
405
400
  License: MIT
406
- Comment: these files belong to: ajv
401
+ Comment: these files belong to: @cfworker/json-schema
407
402
 
408
403
 
409
404
  # Library: sap.ui.mdc:
410
405
 
411
406
  Files: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperators/BoolExprTool.js
412
407
  Copyright:
413
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
408
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
414
409
  2015 unnikked
415
410
  License: Apache-2.0 and MIT
416
411
  Comment: these files contain content from SAP and BooleanExpressionEvaluator: BoolExprTool.js is authored by SAP, but partly inspired by BooleanExpressionEvaluator
@@ -418,7 +413,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
418
413
 
419
414
  # Library: sap.ui.webc.common:
420
415
 
421
- Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
416
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
422
417
  Copyright: SAP
423
418
  License: Apache-2.0
424
419
  Comment: these files belong to: UI5 Web Components
@@ -454,7 +449,7 @@ Comment: these files belong to: LESS
454
449
 
455
450
  Files: lib/jsdoc/ui5/plugin.js
456
451
  Copyright:
457
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
452
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
458
453
  2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
459
454
  License: Apache-2.0
460
455
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
package/THIRDPARTY.txt CHANGED
@@ -351,24 +351,11 @@ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/D
351
351
 
352
352
  Library: sap.ui.integration:
353
353
 
354
- Component: UI5 Web Components, version: 1.0.0-rc.8
354
+ Component: UI5 Web Components, version: 1.0.1
355
355
  Copyright: SAP
356
356
  License: Apache-2.0
357
357
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
358
- Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*.*.json
359
- src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/bundle*
360
-
361
- Component: Webcomponentsjs, version: 1.0.2
362
- Copyright: 2015 The Polymer Authors
363
- License: BSD-3-Clause
364
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
365
- Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/webcomponentsjs/*
366
-
367
- Component: Unicode Common Locale Data Repository
368
- Copyright: 1991-2014 Unicode, Inc.
369
- License: Unicode-DFS-2015
370
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
371
- Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
358
+ Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*
372
359
 
373
360
  Component: Adaptive Cards, version: 2.9.0
374
361
  Copyright: 2017 Microsoft
@@ -377,23 +364,29 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
377
364
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptivecards.js
378
365
  src/sap.ui.integration/src/sap/ui/integration/schemas/adaptive-card.json
379
366
 
380
- Component: Adaptive Cards Templating, version: 0.1.1-alpha.0
367
+ Component: Adaptive Cards Templating, version: 2.2.0
381
368
  Copyright: 2017 Microsoft
382
369
  License: MIT
383
370
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
384
371
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptivecards-templating.js
385
372
 
386
- Component: Markdown-it, version: 10.0.0
373
+ Component: Adaptive Expressions, version: 4.15.0
374
+ Copyright: Microsoft
375
+ License: MIT
376
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
377
+ Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
378
+
379
+ Component: Markdown-it, version: 12.2.0
387
380
  Copyright: 2014 Vitaly Puzrin, Alex Kocharin
388
381
  License: MIT
389
382
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
390
383
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
391
384
 
392
- Component: ajv, version: 6.12.3
393
- Copyright: 2015-2017 Evgeny Poberezkin
385
+ Component: @cfworker/json-schema, version: 1.6.8
386
+ Copyright: 2020 Jeremy Danyow
394
387
  License: MIT
395
388
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
396
- Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
389
+ Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/CfWorkerJsonSchemaValidator.js
397
390
 
398
391
 
399
392
  Library: sap.ui.mdc:
@@ -412,10 +405,11 @@ Copyright: SAP
412
405
  License: Apache-2.0
413
406
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
414
407
  Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
415
- src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.*
408
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
416
409
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
417
410
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
418
411
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
412
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
419
413
 
420
414
  Component: lit-html, version: 1.4.1
421
415
  Copyright: Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.dt",
3
- "version": "1.96.2",
3
+ "version": "1.98.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.dt",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,6 +14,6 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.96.2"
17
+ "@openui5/sap.ui.core": "1.98.0"
18
18
  }
19
19
  }
@@ -4,9 +4,9 @@
4
4
  <name>sap.ui.dt</name>
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>OpenUI5
7
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
7
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.96.2</version>
9
+ <version>1.98.0</version>
10
10
 
11
11
  <documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
12
12
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -23,7 +23,7 @@ function (
23
23
  * @extends sap.ui.dt.DesignTimeMetadata
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.2
26
+ * @version 1.98.0
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -35,7 +35,7 @@ function(
35
35
  * @extends sap.ui.dt.Overlay
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.96.2
38
+ * @version 1.98.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -192,6 +192,7 @@ function(
192
192
  this.addStyleClass('sapUiDtAggregationOverlay');
193
193
  return Overlay.prototype.render.apply(this, arguments);
194
194
  }
195
+ return undefined;
195
196
  };
196
197
 
197
198
  /**
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -22,7 +22,7 @@ function(ManagedObjectObserver) {
22
22
  * @extends sap.ui.dt.ManagedObjectObserver
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.96.2
25
+ * @version 1.98.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * Utility functionality for DOM
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.2
26
+ * @version 1.98.0
27
27
  *
28
28
  * @private
29
29
  * @static
@@ -173,8 +173,8 @@ sap.ui.define([
173
173
 
174
174
  /**
175
175
  * Checks whether DOM Element has vertical or horizontal scrollbar
176
- * @param oDomRef {HTMLElement} - DOM Element
177
- * @returns {boolean}
176
+ * @param {HTMLElement} oDomRef - DOM element
177
+ * @returns {boolean} <code>true</code> if the DOM element has a scrollbar
178
178
  */
179
179
  DOMUtil.hasScrollBar = function(oDomRef) {
180
180
  return DOMUtil.hasVerticalScrollBar(oDomRef) || DOMUtil.hasHorizontalScrollBar(oDomRef);
@@ -217,7 +217,8 @@ sap.ui.define([
217
217
 
218
218
 
219
219
  /**
220
- * @param {HTMLElement} oDomRef
220
+ * @param {HTMLElement} oDomRef - DOM element
221
+ * @returns {object} Object with overflowX and overflowY
221
222
  */
222
223
  DOMUtil.getOverflows = function(oDomRef) {
223
224
  var $DomRef = jQuery(oDomRef);
@@ -438,8 +439,8 @@ sap.ui.define([
438
439
  /**
439
440
  * Check whether the target node is a descendant of a node referenced by id
440
441
  * @param {string} sId - ID of a potential parent node
441
- * @param oTargetNode - Node to look for in a potential parent node
442
- * @returns {boolean} - true if a potential parent contains the target node
442
+ * @param {HTMLElement} oTargetNode - Node to look for in a potential parent node
443
+ * @returns {boolean} <code>true</code> if a potential parent contains the target node
443
444
  */
444
445
  DOMUtil.contains = function (sId, oTargetNode) {
445
446
  var oNode = document.getElementById(sId);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -25,7 +25,9 @@ sap.ui.define([
25
25
  "sap/ui/dt/SelectionMode",
26
26
  "sap/base/util/includes",
27
27
  "sap/ui/dt/DesignTimeStatus",
28
- "sap/base/util/restricted/_curry"
28
+ "sap/base/util/restricted/_curry",
29
+ "sap/base/util/restricted/_difference",
30
+ "sap/base/util/isEmptyObject"
29
31
  ],
30
32
  function (
31
33
  ManagedObject,
@@ -48,7 +50,9 @@ function (
48
50
  SelectionMode,
49
51
  includes,
50
52
  DesignTimeStatus,
51
- _curry
53
+ _curry,
54
+ _difference,
55
+ isEmptyObject
52
56
  ) {
53
57
  "use strict";
54
58
 
@@ -64,7 +68,7 @@ function (
64
68
  * @extends sap.ui.base.ManagedObject
65
69
  *
66
70
  * @author SAP SE
67
- * @version 1.96.2
71
+ * @version 1.98.0
68
72
  *
69
73
  * @constructor
70
74
  * @private
@@ -352,11 +356,11 @@ function (
352
356
 
353
357
  DesignTime.prototype._onApplyStylesRequired = function (oEvent) {
354
358
  var mParameters = oEvent.getParameters();
355
- var oElementOverlay = oEvent.getSource();
359
+ var oOverlay = oEvent.getSource();
356
360
  this._oTaskManager.add({
357
361
  type: "applyStyles",
358
- callbackFn: oElementOverlay.applyStyles.bind(oElementOverlay, mParameters.bForceScrollbarSync),
359
- overlayId: oElementOverlay.getId()
362
+ callbackFn: oOverlay.applyStyles.bind(oOverlay, mParameters.bForceScrollbarSync),
363
+ overlayId: oOverlay.getId()
360
364
  }, "overlayId");
361
365
  };
362
366
 
@@ -503,6 +507,17 @@ function (
503
507
  });
504
508
  };
505
509
 
510
+ /**
511
+ * Resolves when all the currently busy plugins are not busy anymore
512
+ * @returns {Promise} Resolves with undefined when no plugin is busy anymore
513
+ */
514
+ DesignTime.prototype.waitForBusyPlugins = function() {
515
+ var aBusyPlugins = this.getBusyPlugins();
516
+ return Promise.all(aBusyPlugins.map(function(oPlugin) {
517
+ return oPlugin.waitForBusyAction();
518
+ }));
519
+ };
520
+
506
521
  /**
507
522
  * Adds new plugin to use with the DesignTime
508
523
  * @param {sap.ui.dt.Plugin} oPlugin to add
@@ -702,6 +717,7 @@ function (
702
717
  * @property {boolean} [root="true"] - Proxy for "isRoot" property of sap.ui.dt.ElementOverlay constructor
703
718
  * @property {object} [parentMetadata] - Map with metadata from the parent
704
719
  * @property {boolean} [visible] - Proxy for "visible" property of sap.ui.dt.ElementOverlay constructor
720
+ * @property {boolean} [isTemplate] - Marker that overlay is part of template
705
721
  * @private
706
722
  */
707
723
 
@@ -747,7 +763,7 @@ function (
747
763
  .then(
748
764
  // Fulfilled
749
765
  function (oElementOverlay) {
750
- return this._createChildren(oElementOverlay, mParams.parentMetadata)
766
+ return this._createChildren(oElementOverlay, mParams)
751
767
  .then(function () {
752
768
  // Remove overlay promise from the map only when it is "officially" available
753
769
  // and registered everywhere (OverlayRegistry, Plugins, etc)
@@ -929,24 +945,45 @@ function (
929
945
  }
930
946
 
931
947
  /**
932
- * Create children for specified ElementOverlay
948
+ * Creates children for specified ElementOverlay.
933
949
  * @param {sap.ui.dt.ElementOverlay} oElementOverlay - ElementOverlay to create children for
934
- * @param {object} [mParentAggregationMetadata] - Since children are being created for certain aggregation, this is an aggregation metadata.
935
- * @returns {Promise} - resolves when whole hierarchy of children for specified ElementOverlay is created
950
+ * @param {object} mParams - Property bag
951
+ * @param {object} [mParams.parentMetadata] - Parent aggregation metadata
952
+ * @param {boolean} [mParams.isTemplate] - Whether the overlay is part of an aggregation binding template
953
+ * @returns {Promise} Resolves when whole hierarchy of children for specified ElementOverlay is created
936
954
  * @private
937
955
  */
938
- DesignTime.prototype._createChildren = function (oElementOverlay, mParentAggregationMetadata) {
956
+ DesignTime.prototype._createChildren = function (oElementOverlay, mParams) {
939
957
  var aAggregationNames = oElementOverlay.getAggregationNames();
958
+ var mParentAggregationMetadata = mParams.parentMetadata;
940
959
  var mAggregationBindingTemplates = getAggregationBindingTemplates(oElementOverlay, aAggregationNames);
941
960
  var aTemplateAggregationNames = Object.keys(mAggregationBindingTemplates);
942
- return Promise.all([
943
- this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aTemplateAggregationNames, mAggregationBindingTemplates),
944
- this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aAggregationNames)
945
- ]);
961
+
962
+ // Consider each aggregation binding template which is not nested inside an existing template structure as a root template
963
+ // Separate root templates and their children from the instances of the root template as well as all nested template instances
964
+ var bEncounteredTemplate = mParams.isTemplate !== undefined;
965
+ var bHasTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
966
+ var bIsRootTemplate = bHasTemplateAggregation && !bEncounteredTemplate;
967
+ var bIsTemplate = bIsRootTemplate ? true : mParams.isTemplate;
968
+ // Whether cloned instances are nested deeply in the root template structure
969
+ var bIsCloneInsideTemplate = bIsRootTemplate ? false : mParams.isTemplate;
970
+
971
+ // Avoid creating aggregation overlays for cloned template instances inside the template structure
972
+ if (bHasTemplateAggregation && bIsTemplate && !bIsRootTemplate) {
973
+ aAggregationNames = _difference(aAggregationNames, aTemplateAggregationNames);
974
+ }
975
+
976
+ return this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aTemplateAggregationNames, bIsTemplate, mAggregationBindingTemplates)
977
+ .then(this._createChildrenOverlays.bind(this, oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsCloneInsideTemplate));
946
978
  };
947
979
 
948
- DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, mAggregationBindingTemplates) {
949
- var bIsTemplateAggregation = !!mAggregationBindingTemplates;
980
+ DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsTemplate, mAggregationBindingTemplates) {
981
+ var bIsTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
982
+ // Nested template inside a clone of another template
983
+ if (bIsTemplateAggregation && !bIsTemplate) {
984
+ return Promise.resolve();
985
+ }
986
+
950
987
  return Promise.all(
951
988
  aAggregationNames.map(function (sAggregationName) {
952
989
  var oElement = oElementOverlay.getElement();
@@ -975,7 +1012,8 @@ function (
975
1012
  return this.createOverlay({
976
1013
  element: oElement,
977
1014
  root: false,
978
- parentMetadata: mAggregationMetadata
1015
+ parentMetadata: mAggregationMetadata,
1016
+ isTemplate: bIsTemplate
979
1017
  })
980
1018
  // If creation of one of the children is aborted, we still continue our execution
981
1019
  .catch(function (oError) {
@@ -989,6 +1027,7 @@ function (
989
1027
  if (
990
1028
  oChildElementOverlay instanceof ElementOverlay
991
1029
  && !oChildElementOverlay.bIsDestroyed
1030
+ && !oChildElementOverlay.getParent()
992
1031
  ) {
993
1032
  oAggregationOverlay.addChild(oChildElementOverlay, true);
994
1033
  }
@@ -1084,6 +1123,12 @@ function (
1084
1123
 
1085
1124
  var oElementOverlay = oEvent.getSource();
1086
1125
 
1126
+ // cancel open applyStyles tasks for the destroyed overlays in the task manager
1127
+ this._oTaskManager.cancelBy({
1128
+ type: "applyStyles",
1129
+ overlayId: oElementOverlay.getId()
1130
+ }, "overlayId");
1131
+
1087
1132
  // FIXME: workaround. Overlays should not kill themselves (see ElementOverlay@_onElementDestroyed).
1088
1133
  var sElementId = oElementOverlay.getAssociation("element");
1089
1134
  if (sElementId in this._mPendingOverlays) { // means that the overlay was destroyed during initialization process
@@ -1117,7 +1162,13 @@ function (
1117
1162
  * @param {sap.ui.baseEvent} oEvent event object
1118
1163
  * @private
1119
1164
  */
1120
- DesignTime.prototype._onAggregationOverlayDestroyed = function () {
1165
+ DesignTime.prototype._onAggregationOverlayDestroyed = function (oEvent) {
1166
+ // cancel open applyStyles tasks for the destroyed overlays in the task manager
1167
+ this._oTaskManager.cancelBy({
1168
+ type: "applyStyles",
1169
+ overlayId: oEvent.getSource().getId()
1170
+ }, "overlayId");
1171
+
1121
1172
  if (!OverlayRegistry.hasOverlays()) {
1122
1173
  Overlay.removeOverlayContainer();
1123
1174
  }
@@ -1183,6 +1234,8 @@ function (
1183
1234
  this.fireElementPropertyChanged(oParams);
1184
1235
  }
1185
1236
  break;
1237
+ default:
1238
+ break;
1186
1239
  }
1187
1240
  };
1188
1241
 
@@ -1373,6 +1426,7 @@ function (
1373
1426
  bFoundAncestor = true;
1374
1427
  return false;
1375
1428
  }
1429
+ return undefined;
1376
1430
  });
1377
1431
 
1378
1432
  return bFoundAncestor;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -46,7 +46,7 @@ function(
46
46
  * @extends sap.ui.base.ManagedObject
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.96.2
49
+ * @version 1.98.0
50
50
  *
51
51
  * @constructor
52
52
  * @private
@@ -223,7 +223,7 @@ function(
223
223
  * If text parameters are given, then any occurrences of the pattern "{<i>n</i>}" with <i>n</i> being an integer
224
224
  * are replaced by the parameter value with index <i>n</i>. Note: This replacement is also applied if no text had been found (key).
225
225
  * For more details on this replacement mechanism refer also:
226
- * @see jQuery.sap.formatMessage
226
+ * @see {@link module:sap/base/strings/formatMessage formatMessage}
227
227
  *
228
228
  * @param {sap.ui.core.Element} oElement Element for which the text is being retrieved
229
229
  * @param {string} sKey Key
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 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([], function() {