@openui5/sap.tnt 1.119.0 → 1.120.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/THIRDPARTY.txt CHANGED
@@ -179,7 +179,7 @@ License: Apache-2.0
179
179
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
180
180
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
181
181
 
182
- Component: Unicode Common Locale Data Repository, version: 41
182
+ Component: Unicode Common Locale Data Repository, version: 43
183
183
  Copyright: 1991-2014 Unicode, Inc.
184
184
  License: Unicode-DFS-2015
185
185
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
@@ -334,7 +334,7 @@ License: ISC
334
334
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
335
335
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
336
336
 
337
- Component: Time Zone Database, version: 2022a
337
+ Component: Time Zone Database, version: 2023c
338
338
  Copyright: Arthur David Olson, Paul Eggert and other contributors
339
339
  License: LicenseRef-tzdata-PublicDomain
340
340
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
@@ -416,7 +416,7 @@ Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplore
416
416
 
417
417
  Library: sap.ui.webc.common:
418
418
 
419
- Component: UI5 Web Components, version: 1.5.0
419
+ Component: UI5 Web Components, version: 1.18.0
420
420
  Copyright: SAP
421
421
  License: Apache-2.0
422
422
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -436,13 +436,13 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
436
436
 
437
437
  Library: sap.ui.webc.fiori:
438
438
 
439
- Component: UI5 Web Components, version: 1.5.0
439
+ Component: UI5 Web Components, version: 1.18.0
440
440
  Copyright: SAP
441
441
  License: Apache-2.0
442
442
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
443
443
  Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
444
444
 
445
- Component: ZXing, version: 0.19.1
445
+ Component: ZXing, version: 0.17.1
446
446
  Copyright: 2005 Sun Microsystems, Inc.; 2010-2014 University of Manchester; 2010-2015 Stian Soiland-Reyes; 2015 Peter Hull
447
447
  License: Apache-2.0
448
448
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -451,7 +451,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/lib/zxing.js
451
451
 
452
452
  Library: sap.ui.webc.main:
453
453
 
454
- Component: UI5 Web Components, version: 1.5.0
454
+ Component: UI5 Web Components, version: 1.18.0
455
455
  Copyright: SAP
456
456
  License: Apache-2.0
457
457
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.tnt",
3
- "version": "1.119.0",
3
+ "version": "1.120.0",
4
4
  "description": "OpenUI5 UI Library sap.tnt",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.119.0",
18
- "@openui5/sap.ui.core": "1.119.0"
17
+ "@openui5/sap.m": "1.120.0",
18
+ "@openui5/sap.ui.core": "1.120.0"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.119.0</version>
9
+ <version>1.120.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with responsive controls.</documentation>
12
12
 
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @extends sap.ui.core.Control
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.119.0
50
+ * @version 1.120.0
51
51
  *
52
52
  * @constructor
53
53
  * @public
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @extends sap.ui.core.Control
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.119.0
56
+ * @version 1.120.0
57
57
  *
58
58
  * @constructor
59
59
  * @public
@@ -32,7 +32,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
32
32
  * @extends sap.ui.core.Item
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.119.0
35
+ * @version 1.120.0
36
36
  *
37
37
  * @constructor
38
38
  * @public
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Control
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.119.0
41
+ * @version 1.120.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -49,6 +49,14 @@ sap.ui.define([
49
49
  metadata: {
50
50
  library: 'sap.tnt',
51
51
  properties: {
52
+ /**
53
+ * Specifies the width of the control.
54
+ *
55
+ * <Note:> Depending on the theme, there is a minimum width set (16rem for Horizon theme).
56
+ * This property can be used to set a bigger width.
57
+ * @since 1.120
58
+ */
59
+ width: {type: "sap.ui.core.CSSSize", group: "Dimension"},
52
60
  /**
53
61
  * Specifies if the control is expanded.
54
62
  */
@@ -111,12 +119,6 @@ sap.ui.define([
111
119
  this.data('sap-ui-fastnavgroup', 'true', true);
112
120
  };
113
121
 
114
- // event listener for theme changed
115
- SideNavigation.prototype.onThemeChanged = function() {
116
- this._mThemeParams = null;
117
- this._initThemeParams();
118
- };
119
-
120
122
  SideNavigation.prototype.setAggregation = function (aggregationName, object) {
121
123
  if (object && object.attachItemSelect) {
122
124
  object.attachItemSelect(this._itemSelectionHandler.bind(this));
@@ -133,109 +135,27 @@ sap.ui.define([
133
135
  * @returns {this} this SideNavigation reference for chaining.
134
136
  */
135
137
  SideNavigation.prototype.setExpanded = function (isExpanded) {
136
-
137
138
  if (this.getExpanded() === isExpanded) {
138
139
  return this;
139
140
  }
140
141
 
141
142
  var that = this,
142
- $this = this.$(),
143
143
  itemAggregation = that.getAggregation('item'),
144
- fixedItemAggregation = that.getAggregation('fixedItem'),
145
- themeParams,
146
- expandedWidth,
147
- collapsedWidth,
148
- width;
149
-
150
- if (!this.getDomRef()) {
151
- this.setProperty('expanded', isExpanded);
152
-
153
- if (itemAggregation) {
154
- itemAggregation.setExpanded(isExpanded);
155
- }
156
-
157
- if (fixedItemAggregation) {
158
- fixedItemAggregation.setExpanded(isExpanded);
159
- }
160
-
161
- return this;
162
- }
144
+ fixedItemAggregation = that.getAggregation('fixedItem');
163
145
 
164
- this.setProperty('expanded', isExpanded, true);
146
+ this.setProperty('expanded', isExpanded);
165
147
 
166
- if (that._hasActiveAnimation) {
167
- that._finishAnimation(!isExpanded);
168
- $this.stop();
148
+ if (itemAggregation) {
149
+ itemAggregation.setExpanded(isExpanded);
169
150
  }
170
151
 
171
- if (isExpanded) {
172
- this.getDomRef().classList.toggle('sapTntSideNavigationNotExpanded', !isExpanded);
173
-
174
- if (itemAggregation) {
175
- itemAggregation.setExpanded(isExpanded);
176
- }
177
-
178
- if (fixedItemAggregation) {
179
- fixedItemAggregation.setExpanded(isExpanded);
180
- }
152
+ if (fixedItemAggregation) {
153
+ fixedItemAggregation.setExpanded(isExpanded);
181
154
  }
182
155
 
183
- that._hasActiveAnimation = true;
184
-
185
- themeParams = this._mThemeParams || {};
186
- expandedWidth = themeParams['_sap_tnt_SideNavigation_Width'] || "15rem";
187
- collapsedWidth = themeParams['_sap_tnt_SideNavigation_CollapsedWidth'] || "3rem";
188
- width = isExpanded ? expandedWidth : collapsedWidth;
189
-
190
- $this.animate({
191
- width: width
192
- },
193
- {
194
- duration: 300,
195
- complete: function () {
196
- var isExpanded = that.getExpanded();
197
- that._finishAnimation(isExpanded);
198
- }
199
- });
200
-
201
156
  return this;
202
157
  };
203
158
 
204
- /**
205
- * @private
206
- */
207
- SideNavigation.prototype._finishAnimation = function (isExpanded) {
208
- if (!this._hasActiveAnimation || !this.getDomRef()) {
209
- return;
210
- }
211
-
212
- this.getDomRef().classList.toggle('sapTntSideNavigationNotExpandedWidth', !isExpanded);
213
-
214
- if (!isExpanded) {
215
- this.getDomRef().classList.toggle('sapTntSideNavigationNotExpanded', !isExpanded);
216
-
217
- if (this.getAggregation('item')) {
218
- this.getAggregation('item').setExpanded(isExpanded);
219
- }
220
-
221
- if (this.getAggregation('fixedItem')) {
222
- this.getAggregation('fixedItem').setExpanded(isExpanded);
223
- }
224
- }
225
-
226
- this.$().css('width', '');
227
- this._hasActiveAnimation = false;
228
- };
229
-
230
- SideNavigation.prototype._initThemeParams = function() {
231
- this._mThemeParams = Parameters.get({
232
- name: ["_sap_tnt_SideNavigation_Width", "_sap_tnt_SideNavigation_CollapsedWidth"],
233
- callback: function (mParams) {
234
- this._mThemeParams = mParams;
235
- }.bind(this)
236
- });
237
- };
238
-
239
159
  /**
240
160
  * @private
241
161
  */
@@ -248,10 +168,6 @@ sap.ui.define([
248
168
  } else if (selectedItem) {
249
169
  this.setSelectedItem(selectedItem);
250
170
  }
251
-
252
- if (!this._mThemeParams) {
253
- this._initThemeParams();
254
- }
255
171
  };
256
172
 
257
173
  /**
@@ -45,6 +45,11 @@ sap.ui.define([
45
45
 
46
46
  rm.openStart('div', control);
47
47
 
48
+ const width = control.getWidth();
49
+ if (width && isExpanded) {
50
+ rm.style("width", width);
51
+ }
52
+
48
53
  rm.attr("role", 'navigation');
49
54
  rm.attr('aria-roledescription', oRB.getText("SIDENAVIGATION_ROLE_DESCRIPTION"));
50
55
 
@@ -123,7 +123,7 @@ sap.ui.define([
123
123
  * @implements sap.tnt.IToolHeader
124
124
  *
125
125
  * @author SAP SE
126
- * @version 1.119.0
126
+ * @version 1.120.0
127
127
  *
128
128
  * @constructor
129
129
  * @public
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Control
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.119.0
27
+ * @version 1.120.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.core.Control
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.119.0
44
+ * @version 1.120.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -17,13 +17,13 @@ sap.ui.define(["sap/ui/core/library", "sap/m/library"],
17
17
  * @namespace
18
18
  * @alias sap.tnt
19
19
  * @author SAP SE
20
- * @version 1.119.0
20
+ * @version 1.120.0
21
21
  * @since 1.36
22
22
  * @public
23
23
  */
24
24
  var thisLib = sap.ui.getCore().initLibrary({
25
25
  name : "sap.tnt",
26
- version: "1.119.0",
26
+ version: "1.120.0",
27
27
  dependencies : ["sap.ui.core", "sap.m"],
28
28
  designtime: "sap/tnt/designtime/library.designtime",
29
29
  types: [
@@ -0,0 +1,21 @@
1
+
2
+
3
+ INFOLABEL_DEFAULT=\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430 \u043E\u0437\u043D\u0430\u043A\u0430
4
+
5
+ INFOLABEL_EMPTY=\u041F\u0440\u0430\u0437\u043D\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430 \u043E\u0437\u043D\u0430\u043A\u0430
6
+
7
+ SIDENAVIGATION_ROLE_DESCRIPTION=\u0421\u0442\u0440\u0430\u043D\u0438\u0447\u043D\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
8
+
9
+ SIDENAVIGATION_ROLE_DESCRIPTION_SEPARATOR=\u0421\u0435\u043F\u0430\u0440\u0430\u0442\u043E\u0440 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0447\u043D\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
10
+
11
+ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUITEM=\u0421\u0442\u0430\u0432\u043A\u0430 \u043D\u0430 \u043C\u0435\u043D\u0438\u0442\u043E \u043D\u0430 \u0441\u043F\u0438\u0441\u043E\u043A\u043E\u0442 \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
12
+
13
+ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=\u041B\u0435\u043D\u0442\u0430 \u043D\u0430 \u043C\u0435\u043D\u0438\u0442\u043E \u043D\u0430 \u0441\u043F\u0438\u0441\u043E\u043A\u043E\u0442 \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
14
+
15
+ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=\u0414\u0440\u0432\u043E \u043D\u0430 \u0441\u043F\u0438\u0441\u043E\u043A\u043E\u0442 \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
16
+
17
+ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE_ITEM=\u0421\u0442\u0430\u0432\u043A\u0430 \u043D\u0430 \u0434\u0440\u0432\u043E\u0442\u043E \u043D\u0430 \u0441\u043F\u0438\u0441\u043E\u043A\u043E\u0442 \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
18
+
19
+ NAVIGATION_LIST_DIALOG_TITLE=\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430
20
+
21
+ NAVIGATION_LIST_NAVIGATION_OVERFLOW=\u041F\u043E\u0432\u0435\u045C\u0435 \u0441\u0442\u0430\u0432\u043A\u0438
@@ -135,6 +135,11 @@
135
135
  outline: none;
136
136
  display: flex;
137
137
  align-items: center;
138
+ }
139
+ }
140
+
141
+ .sapTntNavLI.sapTntNavLICollapsed {
142
+ .sapTntNavLIItem a {
138
143
  justify-content: center;
139
144
  }
140
145
  }
@@ -400,9 +405,8 @@
400
405
 
401
406
  // NavigationList with icons
402
407
  .sapTntNavLI:not(.sapTntNavLINoIcons) {
403
-
404
408
  span.sapTntNavLIGroupIcon {
405
- width: @_sap_tnt_NavigationList_GroupIconWidth;
409
+ min-width: @_sap_tnt_NavigationList_GroupIconWidth;
406
410
  }
407
411
 
408
412
  .sapTntNavLIGroupItem .sapMText {
@@ -16,6 +16,7 @@
16
16
  @_sap_tnt_SideNavigation_PhoneBorderRadius: 0;
17
17
  @_sap_tnt_SideNavigation_BoxShadow: none;
18
18
  @_sap_tnt_SideNavigation_TriangleDisplay: block;
19
+ @_sap_tnt_SideNavigation_PhoneWidth: @_sap_tnt_SideNavigation_Width;
19
20
 
20
21
  .sapTntSideNavigation {
21
22
  display: flex;
@@ -26,7 +27,14 @@
26
27
  border-right: @_sap_tnt_SideNavigation_BorderRight;
27
28
  box-shadow: @_sap_tnt_SideNavigation_BoxShadow;
28
29
  border-radius: @_sap_tnt_SideNavigation_BorderRadius;
30
+ min-width: @_sap_tnt_SideNavigation_Width;
31
+ max-width: 100%;
29
32
  width: @_sap_tnt_SideNavigation_Width;
33
+ transition: width 0.3s, min-width 0.3s;
34
+ }
35
+
36
+ html[data-sap-ui-animation='off'] .sapTntSideNavigation {
37
+ transition: none;
30
38
  }
31
39
 
32
40
  html.sap-phone,
@@ -36,8 +44,15 @@ html.sap-tablet:not(html.sap-combi) {
36
44
  }
37
45
  }
38
46
 
47
+ html.sap-phone {
48
+ .sapTntSideNavigation {
49
+ width: @_sap_tnt_SideNavigation_PhoneWidth;
50
+ }
51
+ }
52
+
39
53
  .sapTntSideNavigation.sapTntSideNavigationNotExpandedWidth {
40
- width: @_sap_tnt_SideNavigation_CollapsedWidth;
54
+ min-width: @_sap_tnt_SideNavigation_CollapsedWidth;
55
+ width: @_sap_tnt_SideNavigation_CollapsedWidth;
41
56
  }
42
57
 
43
58
  .sapTntSideNavigationNotExpanded {
@@ -24,6 +24,8 @@
24
24
  @_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone: 0;
25
25
  @_sap_tnt_ToolPage_AsideCollapsedPhoneTransform: -100%;
26
26
  @_sap_tnt_ToolPage_AsideCollapsedPhoneTransformRtl: 100%;
27
+ @_sap_tnt_ToolPage_AsidePhoneTop: 0;
28
+ @_sap_tnt_ToolPage_AsidePhoneWidth: auto;
27
29
 
28
30
  /* ==========================================================================
29
31
  Root element
@@ -58,6 +60,7 @@
58
60
  ========================================================================== */
59
61
 
60
62
  .sapTntToolPageAside {
63
+ max-width: 100%;
61
64
  display: flex;
62
65
  flex-direction: column;
63
66
 
@@ -100,7 +103,8 @@ html.sap-phone {
100
103
  position: absolute;
101
104
  left: 0;
102
105
  bottom: 0;
103
- top: 0;
106
+ top: @_sap_tnt_ToolPage_AsidePhoneTop;
107
+ width: @_sap_tnt_ToolPage_AsidePhoneWidth;
104
108
 
105
109
  margin: @_sap_tnt_ToolPage_AsideMarginsPhone;
106
110
  }