@openui5/sap.ui.dt 1.96.5 → 1.99.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/dep5 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +2 -2
- package/src/sap/ui/dt/.library +1 -1
- package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +1 -1
- package/src/sap/ui/dt/AggregationOverlay.js +2 -1
- package/src/sap/ui/dt/ControlObserver.js +1 -1
- package/src/sap/ui/dt/DOMUtil.js +7 -6
- package/src/sap/ui/dt/DesignTime.js +80 -29
- package/src/sap/ui/dt/DesignTimeMetadata.js +6 -7
- package/src/sap/ui/dt/ElementDesignTimeMetadata.js +7 -5
- package/src/sap/ui/dt/ElementOverlay.js +6 -2
- package/src/sap/ui/dt/ElementUtil.js +5 -42
- package/src/sap/ui/dt/ManagedObjectObserver.js +2 -1
- package/src/sap/ui/dt/MetadataPropagationUtil.js +6 -6
- package/src/sap/ui/dt/MutationObserver.js +1 -1
- package/src/sap/ui/dt/Overlay.js +16 -17
- package/src/sap/ui/dt/OverlayRegistry.js +2 -3
- package/src/sap/ui/dt/OverlayUtil.js +5 -5
- package/src/sap/ui/dt/Plugin.js +30 -1
- package/src/sap/ui/dt/ScrollbarSynchronizer.js +2 -2
- package/src/sap/ui/dt/SelectionManager.js +1 -1
- package/src/sap/ui/dt/SelectionMode.js +1 -1
- package/src/sap/ui/dt/TaskManager.js +57 -42
- package/src/sap/ui/dt/TaskRunner.js +15 -15
- package/src/sap/ui/dt/Util.js +2 -2
- package/src/sap/ui/dt/enablement/ElementEnablementTest.js +2 -3
- package/src/sap/ui/dt/enablement/Test.js +25 -24
- package/src/sap/ui/dt/enablement/Util.js +9 -9
- package/src/sap/ui/dt/enablement/libraryTest.js +2 -2
- package/src/sap/ui/dt/enablement/report/LibraryReport.js +1 -1
- package/src/sap/ui/dt/enablement/report/QUnitReport.js +2 -3
- package/src/sap/ui/dt/enablement/report/Statistic.js +1 -1
- package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +2 -2
- package/src/sap/ui/dt/enablement/report/Table.js +2 -3
- package/src/sap/ui/dt/enablement/report/TableRenderer.js +2 -2
- package/src/sap/ui/dt/library.js +2 -2
- package/src/sap/ui/dt/plugin/ContextMenu.js +7 -5
- package/src/sap/ui/dt/plugin/ControlDragDrop.js +1 -1
- package/src/sap/ui/dt/plugin/CutPaste.js +1 -1
- package/src/sap/ui/dt/plugin/DragDrop.js +19 -18
- package/src/sap/ui/dt/plugin/ElementMover.js +3 -2
- package/src/sap/ui/dt/plugin/MouseSelection.js +1 -1
- package/src/sap/ui/dt/plugin/TabHandling.js +1 -1
- package/src/sap/ui/dt/plugin/ToolHooks.js +1 -1
- package/src/sap/ui/dt/util/ZIndexManager.js +1 -1
- package/src/sap/ui/dt/util/_createPromise.js +6 -4
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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/
|
|
404
|
-
Copyright:
|
|
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:
|
|
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-
|
|
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/
|
|
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-
|
|
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.
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
393
|
-
Copyright:
|
|
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/
|
|
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/
|
|
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.
|
|
3
|
+
"version": "1.99.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.
|
|
17
|
+
"@openui5/sap.ui.core": "1.99.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/src/sap/ui/dt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
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.
|
|
9
|
+
<version>1.99.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
|
|
12
12
|
|
|
@@ -35,7 +35,7 @@ function(
|
|
|
35
35
|
* @extends sap.ui.dt.Overlay
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.99.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
|
/**
|
package/src/sap/ui/dt/DOMUtil.js
CHANGED
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* Utility functionality for DOM
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.99.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
|
|
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}
|
|
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);
|
|
@@ -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.
|
|
71
|
+
* @version 1.99.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
|
|
359
|
+
var oOverlay = oEvent.getSource();
|
|
356
360
|
this._oTaskManager.add({
|
|
357
361
|
type: "applyStyles",
|
|
358
|
-
callbackFn:
|
|
359
|
-
overlayId:
|
|
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
|
|
@@ -696,12 +711,19 @@ function (
|
|
|
696
711
|
return aElementOverlays;
|
|
697
712
|
};
|
|
698
713
|
|
|
714
|
+
function ensureRoot(bIsRoot, oElementOverlay) {
|
|
715
|
+
if (bIsRoot) {
|
|
716
|
+
oElementOverlay.setIsRoot(true);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
699
720
|
/**
|
|
700
721
|
* @typedef {object} sap.ui.dt.DesignTime.CreateOverlayParameters
|
|
701
722
|
* @property {sap.ui.base.ManagedObject} element - Control instance for which overlay is being created
|
|
702
723
|
* @property {boolean} [root="true"] - Proxy for "isRoot" property of sap.ui.dt.ElementOverlay constructor
|
|
703
724
|
* @property {object} [parentMetadata] - Map with metadata from the parent
|
|
704
725
|
* @property {boolean} [visible] - Proxy for "visible" property of sap.ui.dt.ElementOverlay constructor
|
|
726
|
+
* @property {boolean} [isTemplate] - Marker that overlay is part of template
|
|
705
727
|
* @private
|
|
706
728
|
*/
|
|
707
729
|
|
|
@@ -731,6 +753,7 @@ function (
|
|
|
731
753
|
|
|
732
754
|
// 2. ElementOverlay is already created
|
|
733
755
|
if (oElementOverlay) {
|
|
756
|
+
ensureRoot(mParams.root, oElementOverlay);
|
|
734
757
|
this._oTaskManager.complete(iTaskId);
|
|
735
758
|
return Promise.resolve(oElementOverlay);
|
|
736
759
|
// 3. ElementOverlay is in creation phase
|
|
@@ -747,7 +770,7 @@ function (
|
|
|
747
770
|
.then(
|
|
748
771
|
// Fulfilled
|
|
749
772
|
function (oElementOverlay) {
|
|
750
|
-
return this._createChildren(oElementOverlay, mParams
|
|
773
|
+
return this._createChildren(oElementOverlay, mParams)
|
|
751
774
|
.then(function () {
|
|
752
775
|
// Remove overlay promise from the map only when it is "officially" available
|
|
753
776
|
// and registered everywhere (OverlayRegistry, Plugins, etc)
|
|
@@ -929,24 +952,45 @@ function (
|
|
|
929
952
|
}
|
|
930
953
|
|
|
931
954
|
/**
|
|
932
|
-
*
|
|
955
|
+
* Creates children for specified ElementOverlay.
|
|
933
956
|
* @param {sap.ui.dt.ElementOverlay} oElementOverlay - ElementOverlay to create children for
|
|
934
|
-
* @param {object}
|
|
935
|
-
* @
|
|
957
|
+
* @param {object} mParams - Property bag
|
|
958
|
+
* @param {object} [mParams.parentMetadata] - Parent aggregation metadata
|
|
959
|
+
* @param {boolean} [mParams.isTemplate] - Whether the overlay is part of an aggregation binding template
|
|
960
|
+
* @returns {Promise} Resolves when whole hierarchy of children for specified ElementOverlay is created
|
|
936
961
|
* @private
|
|
937
962
|
*/
|
|
938
|
-
DesignTime.prototype._createChildren = function (oElementOverlay,
|
|
963
|
+
DesignTime.prototype._createChildren = function (oElementOverlay, mParams) {
|
|
939
964
|
var aAggregationNames = oElementOverlay.getAggregationNames();
|
|
965
|
+
var mParentAggregationMetadata = mParams.parentMetadata;
|
|
940
966
|
var mAggregationBindingTemplates = getAggregationBindingTemplates(oElementOverlay, aAggregationNames);
|
|
941
967
|
var aTemplateAggregationNames = Object.keys(mAggregationBindingTemplates);
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
968
|
+
|
|
969
|
+
// Consider each aggregation binding template which is not nested inside an existing template structure as a root template
|
|
970
|
+
// Separate root templates and their children from the instances of the root template as well as all nested template instances
|
|
971
|
+
var bEncounteredTemplate = mParams.isTemplate !== undefined;
|
|
972
|
+
var bHasTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
|
|
973
|
+
var bIsRootTemplate = bHasTemplateAggregation && !bEncounteredTemplate;
|
|
974
|
+
var bIsTemplate = bIsRootTemplate ? true : mParams.isTemplate;
|
|
975
|
+
// Whether cloned instances are nested deeply in the root template structure
|
|
976
|
+
var bIsCloneInsideTemplate = bIsRootTemplate ? false : mParams.isTemplate;
|
|
977
|
+
|
|
978
|
+
// Avoid creating aggregation overlays for cloned template instances inside the template structure
|
|
979
|
+
if (bHasTemplateAggregation && bIsTemplate && !bIsRootTemplate) {
|
|
980
|
+
aAggregationNames = _difference(aAggregationNames, aTemplateAggregationNames);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
return this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aTemplateAggregationNames, bIsTemplate, mAggregationBindingTemplates)
|
|
984
|
+
.then(this._createChildrenOverlays.bind(this, oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsCloneInsideTemplate));
|
|
946
985
|
};
|
|
947
986
|
|
|
948
|
-
DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, mAggregationBindingTemplates) {
|
|
949
|
-
var bIsTemplateAggregation =
|
|
987
|
+
DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsTemplate, mAggregationBindingTemplates) {
|
|
988
|
+
var bIsTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
|
|
989
|
+
// Nested template inside a clone of another template
|
|
990
|
+
if (bIsTemplateAggregation && !bIsTemplate) {
|
|
991
|
+
return Promise.resolve();
|
|
992
|
+
}
|
|
993
|
+
|
|
950
994
|
return Promise.all(
|
|
951
995
|
aAggregationNames.map(function (sAggregationName) {
|
|
952
996
|
var oElement = oElementOverlay.getElement();
|
|
@@ -975,7 +1019,8 @@ function (
|
|
|
975
1019
|
return this.createOverlay({
|
|
976
1020
|
element: oElement,
|
|
977
1021
|
root: false,
|
|
978
|
-
parentMetadata: mAggregationMetadata
|
|
1022
|
+
parentMetadata: mAggregationMetadata,
|
|
1023
|
+
isTemplate: bIsTemplate
|
|
979
1024
|
})
|
|
980
1025
|
// If creation of one of the children is aborted, we still continue our execution
|
|
981
1026
|
.catch(function (oError) {
|
|
@@ -989,6 +1034,7 @@ function (
|
|
|
989
1034
|
if (
|
|
990
1035
|
oChildElementOverlay instanceof ElementOverlay
|
|
991
1036
|
&& !oChildElementOverlay.bIsDestroyed
|
|
1037
|
+
&& !oChildElementOverlay.getParent()
|
|
992
1038
|
) {
|
|
993
1039
|
oAggregationOverlay.addChild(oChildElementOverlay, true);
|
|
994
1040
|
}
|
|
@@ -1084,6 +1130,12 @@ function (
|
|
|
1084
1130
|
|
|
1085
1131
|
var oElementOverlay = oEvent.getSource();
|
|
1086
1132
|
|
|
1133
|
+
// cancel open applyStyles tasks for the destroyed overlays in the task manager
|
|
1134
|
+
this._oTaskManager.cancelBy({
|
|
1135
|
+
type: "applyStyles",
|
|
1136
|
+
overlayId: oElementOverlay.getId()
|
|
1137
|
+
}, "overlayId");
|
|
1138
|
+
|
|
1087
1139
|
// FIXME: workaround. Overlays should not kill themselves (see ElementOverlay@_onElementDestroyed).
|
|
1088
1140
|
var sElementId = oElementOverlay.getAssociation("element");
|
|
1089
1141
|
if (sElementId in this._mPendingOverlays) { // means that the overlay was destroyed during initialization process
|
|
@@ -1117,7 +1169,13 @@ function (
|
|
|
1117
1169
|
* @param {sap.ui.baseEvent} oEvent event object
|
|
1118
1170
|
* @private
|
|
1119
1171
|
*/
|
|
1120
|
-
DesignTime.prototype._onAggregationOverlayDestroyed = function () {
|
|
1172
|
+
DesignTime.prototype._onAggregationOverlayDestroyed = function (oEvent) {
|
|
1173
|
+
// cancel open applyStyles tasks for the destroyed overlays in the task manager
|
|
1174
|
+
this._oTaskManager.cancelBy({
|
|
1175
|
+
type: "applyStyles",
|
|
1176
|
+
overlayId: oEvent.getSource().getId()
|
|
1177
|
+
}, "overlayId");
|
|
1178
|
+
|
|
1121
1179
|
if (!OverlayRegistry.hasOverlays()) {
|
|
1122
1180
|
Overlay.removeOverlayContainer();
|
|
1123
1181
|
}
|
|
@@ -1183,6 +1241,8 @@ function (
|
|
|
1183
1241
|
this.fireElementPropertyChanged(oParams);
|
|
1184
1242
|
}
|
|
1185
1243
|
break;
|
|
1244
|
+
default:
|
|
1245
|
+
break;
|
|
1186
1246
|
}
|
|
1187
1247
|
};
|
|
1188
1248
|
|
|
@@ -1217,25 +1277,15 @@ function (
|
|
|
1217
1277
|
var oParentOverlay = OverlayRegistry.getOverlay(oParent);
|
|
1218
1278
|
var oParentAggregationOverlay = oParentOverlay && oParentOverlay.getAggregationOverlay(sAggregationName);
|
|
1219
1279
|
if (!oParentAggregationOverlay) {
|
|
1220
|
-
var onSynced;
|
|
1221
1280
|
var onElementOverlayCreated = function (oEvent) {
|
|
1222
1281
|
var oElementOverlay = oEvent.getParameter("elementOverlay");
|
|
1223
1282
|
if (oElementOverlay.getElement().getId() === oParent.getId()) {
|
|
1224
1283
|
var oParentAggregationOverlay = oElementOverlay.getAggregationOverlay(sAggregationName);
|
|
1225
|
-
this.detachSynced(onSynced, this);
|
|
1226
1284
|
this.detachElementOverlayCreated(onElementOverlayCreated, this);
|
|
1227
1285
|
this._addAggregation(oElement, oParentAggregationOverlay);
|
|
1228
1286
|
}
|
|
1229
1287
|
};
|
|
1230
|
-
onSynced = function () {
|
|
1231
|
-
var oParentOverlay = OverlayRegistry.getOverlay(oParent);
|
|
1232
|
-
var oParentAggregationOverlay = oParentOverlay && oParentOverlay.getAggregationOverlay(sAggregationName);
|
|
1233
|
-
this.detachSynced(onSynced, this);
|
|
1234
|
-
this.detachElementOverlayCreated(onElementOverlayCreated, this);
|
|
1235
|
-
this._addAggregation(oElement, oParentAggregationOverlay);
|
|
1236
|
-
};
|
|
1237
1288
|
this.attachElementOverlayCreated(onElementOverlayCreated, this);
|
|
1238
|
-
this.attachSynced(onSynced, this);
|
|
1239
1289
|
} else {
|
|
1240
1290
|
this._addAggregation(oElement, oParentAggregationOverlay);
|
|
1241
1291
|
}
|
|
@@ -1373,6 +1423,7 @@ function (
|
|
|
1373
1423
|
bFoundAncestor = true;
|
|
1374
1424
|
return false;
|
|
1375
1425
|
}
|
|
1426
|
+
return undefined;
|
|
1376
1427
|
});
|
|
1377
1428
|
|
|
1378
1429
|
return bFoundAncestor;
|
|
@@ -46,7 +46,7 @@ function(
|
|
|
46
46
|
* @extends sap.ui.base.ManagedObject
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.99.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
@@ -108,7 +108,6 @@ function(
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Returns 'not-adaptable' flag as boolean
|
|
111
|
-
* @param {Object} oElement Element instance
|
|
112
111
|
* @return {boolean} Returns 'true' if not adaptable
|
|
113
112
|
* @public
|
|
114
113
|
*/
|
|
@@ -127,10 +126,10 @@ function(
|
|
|
127
126
|
};
|
|
128
127
|
|
|
129
128
|
/**
|
|
130
|
-
* Returns a DOM representation for an Element or aggregation, if it can be found or undefined
|
|
131
|
-
* @param {
|
|
132
|
-
* @param {
|
|
133
|
-
* @param {
|
|
129
|
+
* Returns a DOM representation for an Element or aggregation, if it can be found or undefined.
|
|
130
|
+
* @param {sap.ui.core.Element} oElement Element we need DomRef for
|
|
131
|
+
* @param {string|function} vDomRef Selector or Function for fetchting DomRef
|
|
132
|
+
* @param {string} [sAggregationName] Aggregation Name
|
|
134
133
|
* @return {jQuery} Returns associated DOM references wrapped by jQuery object
|
|
135
134
|
* @public
|
|
136
135
|
*/
|
|
@@ -223,7 +222,7 @@ function(
|
|
|
223
222
|
* If text parameters are given, then any occurrences of the pattern "{<i>n</i>}" with <i>n</i> being an integer
|
|
224
223
|
* 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
224
|
* For more details on this replacement mechanism refer also:
|
|
226
|
-
* @see
|
|
225
|
+
* @see {@link module:sap/base/strings/formatMessage formatMessage}
|
|
227
226
|
*
|
|
228
227
|
* @param {sap.ui.core.Element} oElement Element for which the text is being retrieved
|
|
229
228
|
* @param {string} sKey Key
|