@syncfusion/ej2-ribbon 25.2.3 → 26.1.35

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 (117) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-ribbon.umd.min.js +2 -2
  3. package/dist/ej2-ribbon.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-ribbon.es2015.js +884 -599
  5. package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
  6. package/dist/es6/ej2-ribbon.es5.js +941 -584
  7. package/dist/es6/ej2-ribbon.es5.js.map +1 -1
  8. package/dist/global/ej2-ribbon.min.js +2 -2
  9. package/dist/global/ej2-ribbon.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +13 -13
  12. package/src/ribbon/base/interface.d.ts +14 -0
  13. package/src/ribbon/base/ribbon-model.d.ts +1 -1
  14. package/src/ribbon/base/ribbon.d.ts +4 -1
  15. package/src/ribbon/base/ribbon.js +222 -95
  16. package/src/ribbon/items/ribbon-button.js +22 -2
  17. package/src/ribbon/items/ribbon-checkbox.js +19 -1
  18. package/src/ribbon/items/ribbon-colorpicker.js +16 -1
  19. package/src/ribbon/items/ribbon-combobox.js +19 -1
  20. package/src/ribbon/items/ribbon-dropdown.js +16 -1
  21. package/src/ribbon/items/ribbon-gallery.d.ts +15 -6
  22. package/src/ribbon/items/ribbon-gallery.js +164 -96
  23. package/src/ribbon/items/ribbon-groupbutton.d.ts +1 -0
  24. package/src/ribbon/items/ribbon-groupbutton.js +11 -3
  25. package/src/ribbon/items/ribbon-splitbutton.js +16 -1
  26. package/src/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +1 -1
  27. package/src/ribbon/models/ribbon-gallery-group-model.d.ts +5 -5
  28. package/src/ribbon/models/ribbon-gallery-group.d.ts +2 -2
  29. package/src/ribbon/models/ribbon-gallery-group.js +2 -2
  30. package/src/ribbon/models/ribbon-gallery-item-model.d.ts +5 -5
  31. package/src/ribbon/models/ribbon-gallery-item.d.ts +1 -1
  32. package/src/ribbon/models/ribbon-gallery-item.js +1 -1
  33. package/src/ribbon/models/ribbon-gallery-settings-model.d.ts +1 -1
  34. package/src/ribbon/models/ribbon-gallery-settings.d.ts +3 -3
  35. package/src/ribbon/models/ribbon-gallery-settings.js +2 -2
  36. package/src/ribbon/modules/ribbon-backstage.d.ts +6 -3
  37. package/src/ribbon/modules/ribbon-backstage.js +65 -12
  38. package/src/ribbon/modules/ribbon-contextualtab.js +5 -2
  39. package/src/ribbon/modules/ribbon-keytip.d.ts +1 -0
  40. package/src/ribbon/modules/ribbon-keytip.js +58 -46
  41. package/styles/bootstrap-dark.css +452 -269
  42. package/styles/bootstrap-dark.scss +18 -1
  43. package/styles/bootstrap.css +456 -276
  44. package/styles/bootstrap.scss +18 -1
  45. package/styles/bootstrap4.css +455 -272
  46. package/styles/bootstrap4.scss +18 -1
  47. package/styles/bootstrap5-dark.css +470 -278
  48. package/styles/bootstrap5-dark.scss +18 -1
  49. package/styles/bootstrap5.css +470 -278
  50. package/styles/bootstrap5.scss +18 -1
  51. package/styles/fabric-dark.css +451 -269
  52. package/styles/fabric-dark.scss +18 -1
  53. package/styles/fabric.css +450 -272
  54. package/styles/fabric.scss +18 -1
  55. package/styles/fluent-dark.css +472 -277
  56. package/styles/fluent-dark.scss +18 -1
  57. package/styles/fluent.css +472 -277
  58. package/styles/fluent.scss +18 -1
  59. package/styles/fluent2.css +3868 -0
  60. package/styles/fluent2.scss +18 -0
  61. package/styles/highcontrast-light.css +445 -263
  62. package/styles/highcontrast-light.scss +17 -1
  63. package/styles/highcontrast.css +451 -273
  64. package/styles/highcontrast.scss +18 -1
  65. package/styles/material-dark.css +540 -283
  66. package/styles/material-dark.scss +18 -1
  67. package/styles/material.css +539 -289
  68. package/styles/material.scss +18 -1
  69. package/styles/material3-dark.css +496 -280
  70. package/styles/material3-dark.scss +18 -1
  71. package/styles/material3.css +496 -280
  72. package/styles/material3.scss +18 -1
  73. package/styles/ribbon/_bds-definition.scss +56 -20
  74. package/styles/ribbon/_bootstrap-dark-definition.scss +56 -20
  75. package/styles/ribbon/_bootstrap-definition.scss +57 -21
  76. package/styles/ribbon/_bootstrap4-definition.scss +57 -21
  77. package/styles/ribbon/_bootstrap5-definition.scss +57 -21
  78. package/styles/ribbon/_bootstrap5.3-definition.scss +396 -0
  79. package/styles/ribbon/_fabric-dark-definition.scss +55 -19
  80. package/styles/ribbon/_fabric-definition.scss +56 -20
  81. package/styles/ribbon/_fluent-definition.scss +59 -23
  82. package/styles/ribbon/_fluent2-definition.scss +396 -0
  83. package/styles/ribbon/_fusionnew-definition.scss +50 -14
  84. package/styles/ribbon/_highcontrast-definition.scss +58 -22
  85. package/styles/ribbon/_highcontrast-light-definition.scss +49 -13
  86. package/styles/ribbon/_layout.scss +359 -399
  87. package/styles/ribbon/_material-dark-definition.scss +56 -20
  88. package/styles/ribbon/_material-definition.scss +56 -20
  89. package/styles/ribbon/_material3-definition.scss +56 -19
  90. package/styles/ribbon/_tailwind-definition.scss +56 -20
  91. package/styles/ribbon/_theme.scss +118 -170
  92. package/styles/ribbon/bootstrap-dark.css +452 -269
  93. package/styles/ribbon/bootstrap.css +456 -276
  94. package/styles/ribbon/bootstrap4.css +455 -272
  95. package/styles/ribbon/bootstrap5-dark.css +470 -278
  96. package/styles/ribbon/bootstrap5.css +470 -278
  97. package/styles/ribbon/fabric-dark.css +451 -269
  98. package/styles/ribbon/fabric.css +450 -272
  99. package/styles/ribbon/fluent-dark.css +472 -277
  100. package/styles/ribbon/fluent.css +472 -277
  101. package/styles/ribbon/fluent2.css +3868 -0
  102. package/styles/ribbon/fluent2.scss +18 -0
  103. package/styles/ribbon/highcontrast-light.css +445 -263
  104. package/styles/ribbon/highcontrast.css +451 -273
  105. package/styles/ribbon/icons/_bootstrap5.3.scss +9 -0
  106. package/styles/ribbon/icons/_fluent2.scss +9 -0
  107. package/styles/ribbon/material-dark.css +540 -283
  108. package/styles/ribbon/material.css +539 -289
  109. package/styles/ribbon/material3-dark.css +496 -280
  110. package/styles/ribbon/material3.css +496 -280
  111. package/styles/ribbon/tailwind-dark.css +506 -280
  112. package/styles/ribbon/tailwind.css +506 -280
  113. package/styles/tailwind-dark.css +506 -280
  114. package/styles/tailwind-dark.scss +18 -1
  115. package/styles/tailwind.css +506 -280
  116. package/styles/tailwind.scss +18 -1
  117. package/CHANGELOG.md +0 -93
@@ -1,10 +1,10 @@
1
- import { ChildProperty, Collection, Complex, Component, Event, EventHandler, KeyboardEvents, NotifyPropertyChanges, Property, addClass, append, closest, compile, formatUnit, getComponent, getInstance, getUniqueID, isNullOrUndefined, isUndefined, merge, remove, removeClass, select } from '@syncfusion/ej2-base';
2
- import { HScroll, Menu, MenuAnimationSettings, MenuItem, Tab, TabAnimationSettings, Toolbar } from '@syncfusion/ej2-navigations';
3
- import { ComboBox, FieldSettings } from '@syncfusion/ej2-dropdowns';
4
- import { DropDownButton, Item, SplitButton } from '@syncfusion/ej2-splitbuttons';
1
+ import { Property, Event, ChildProperty, Complex, Collection, getComponent, merge, EventHandler, isNullOrUndefined, closest, remove, select, compile, addClass, formatUnit, append, setValue, getUniqueID, KeyboardEvents, getInstance, isUndefined, removeClass, NotifyPropertyChanges, Component } from '@syncfusion/ej2-base';
2
+ import { MenuItem, MenuAnimationSettings, Tab, Toolbar, HScroll, TabAnimationSettings, Menu } from '@syncfusion/ej2-navigations';
3
+ import { FieldSettings, ComboBox } from '@syncfusion/ej2-dropdowns';
4
+ import { Item, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';
5
5
  import { Button, CheckBox } from '@syncfusion/ej2-buttons';
6
6
  import { ColorPicker } from '@syncfusion/ej2-inputs';
7
- import { Popup, Tooltip } from '@syncfusion/ej2-popups';
7
+ import { Tooltip, Popup } from '@syncfusion/ej2-popups';
8
8
 
9
9
  /**
10
10
  * Defines the layout types of ribbon.
@@ -135,7 +135,7 @@ var RibbonGroupButtonSelection;
135
135
  RibbonGroupButtonSelection["Multiple"] = "Multiple";
136
136
  })(RibbonGroupButtonSelection || (RibbonGroupButtonSelection = {}));
137
137
 
138
- var __extends$5 = (undefined && undefined.__extends) || (function () {
138
+ var __extends = (undefined && undefined.__extends) || (function () {
139
139
  var extendStatics = function (d, b) {
140
140
  extendStatics = Object.setPrototypeOf ||
141
141
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -148,7 +148,7 @@ var __extends$5 = (undefined && undefined.__extends) || (function () {
148
148
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
149
149
  };
150
150
  })();
151
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
151
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
152
152
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
153
153
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
154
154
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -158,7 +158,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
158
158
  * Defines the ribbon button item.
159
159
  */
160
160
  var RibbonButtonSettings = /** @__PURE__ @class */ (function (_super) {
161
- __extends$5(RibbonButtonSettings, _super);
161
+ __extends(RibbonButtonSettings, _super);
162
162
  function RibbonButtonSettings() {
163
163
  return _super !== null && _super.apply(this, arguments) || this;
164
164
  }
@@ -171,34 +171,34 @@ var RibbonButtonSettings = /** @__PURE__ @class */ (function (_super) {
171
171
  RibbonButtonSettings.prototype.setProperties = function (prop, muteOnChange) {
172
172
  _super.prototype.setProperties.call(this, prop, muteOnChange);
173
173
  };
174
- __decorate$5([
174
+ __decorate([
175
175
  Property('')
176
176
  ], RibbonButtonSettings.prototype, "content", void 0);
177
- __decorate$5([
177
+ __decorate([
178
178
  Property('')
179
179
  ], RibbonButtonSettings.prototype, "cssClass", void 0);
180
- __decorate$5([
180
+ __decorate([
181
181
  Property('')
182
182
  ], RibbonButtonSettings.prototype, "iconCss", void 0);
183
- __decorate$5([
183
+ __decorate([
184
184
  Property(false)
185
185
  ], RibbonButtonSettings.prototype, "isToggle", void 0);
186
- __decorate$5([
186
+ __decorate([
187
187
  Property(false)
188
188
  ], RibbonButtonSettings.prototype, "isPrimary", void 0);
189
- __decorate$5([
189
+ __decorate([
190
190
  Property({})
191
191
  ], RibbonButtonSettings.prototype, "htmlAttributes", void 0);
192
- __decorate$5([
192
+ __decorate([
193
193
  Event()
194
194
  ], RibbonButtonSettings.prototype, "created", void 0);
195
- __decorate$5([
195
+ __decorate([
196
196
  Event()
197
197
  ], RibbonButtonSettings.prototype, "clicked", void 0);
198
198
  return RibbonButtonSettings;
199
199
  }(ChildProperty));
200
200
 
201
- var __extends$6 = (undefined && undefined.__extends) || (function () {
201
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
202
202
  var extendStatics = function (d, b) {
203
203
  extendStatics = Object.setPrototypeOf ||
204
204
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -211,7 +211,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
211
211
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
212
212
  };
213
213
  })();
214
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
214
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
215
215
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
216
216
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
217
217
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -221,7 +221,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
221
221
  * Defines the ribbon checkbox item.
222
222
  */
223
223
  var RibbonCheckBoxSettings = /** @__PURE__ @class */ (function (_super) {
224
- __extends$6(RibbonCheckBoxSettings, _super);
224
+ __extends$1(RibbonCheckBoxSettings, _super);
225
225
  function RibbonCheckBoxSettings() {
226
226
  return _super !== null && _super.apply(this, arguments) || this;
227
227
  }
@@ -234,31 +234,31 @@ var RibbonCheckBoxSettings = /** @__PURE__ @class */ (function (_super) {
234
234
  RibbonCheckBoxSettings.prototype.setProperties = function (prop, muteOnChange) {
235
235
  _super.prototype.setProperties.call(this, prop, muteOnChange);
236
236
  };
237
- __decorate$6([
237
+ __decorate$1([
238
238
  Property(false)
239
239
  ], RibbonCheckBoxSettings.prototype, "checked", void 0);
240
- __decorate$6([
240
+ __decorate$1([
241
241
  Property('')
242
242
  ], RibbonCheckBoxSettings.prototype, "cssClass", void 0);
243
- __decorate$6([
243
+ __decorate$1([
244
244
  Property('')
245
245
  ], RibbonCheckBoxSettings.prototype, "label", void 0);
246
- __decorate$6([
246
+ __decorate$1([
247
247
  Property('After')
248
248
  ], RibbonCheckBoxSettings.prototype, "labelPosition", void 0);
249
- __decorate$6([
249
+ __decorate$1([
250
250
  Property({})
251
251
  ], RibbonCheckBoxSettings.prototype, "htmlAttributes", void 0);
252
- __decorate$6([
252
+ __decorate$1([
253
253
  Event()
254
254
  ], RibbonCheckBoxSettings.prototype, "created", void 0);
255
- __decorate$6([
255
+ __decorate$1([
256
256
  Event()
257
257
  ], RibbonCheckBoxSettings.prototype, "change", void 0);
258
258
  return RibbonCheckBoxSettings;
259
259
  }(ChildProperty));
260
260
 
261
- var __extends$7 = (undefined && undefined.__extends) || (function () {
261
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
262
262
  var extendStatics = function (d, b) {
263
263
  extendStatics = Object.setPrototypeOf ||
264
264
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -271,7 +271,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
271
271
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
272
272
  };
273
273
  })();
274
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
274
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
275
275
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
276
276
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
277
277
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -281,7 +281,7 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
281
281
  * Defines the ribbon color picker.
282
282
  */
283
283
  var RibbonColorPickerSettings = /** @__PURE__ @class */ (function (_super) {
284
- __extends$7(RibbonColorPickerSettings, _super);
284
+ __extends$2(RibbonColorPickerSettings, _super);
285
285
  function RibbonColorPickerSettings() {
286
286
  return _super !== null && _super.apply(this, arguments) || this;
287
287
  }
@@ -294,64 +294,64 @@ var RibbonColorPickerSettings = /** @__PURE__ @class */ (function (_super) {
294
294
  RibbonColorPickerSettings.prototype.setProperties = function (prop, muteOnChange) {
295
295
  _super.prototype.setProperties.call(this, prop, muteOnChange);
296
296
  };
297
- __decorate$7([
297
+ __decorate$2([
298
298
  Property(10)
299
299
  ], RibbonColorPickerSettings.prototype, "columns", void 0);
300
- __decorate$7([
300
+ __decorate$2([
301
301
  Property('')
302
302
  ], RibbonColorPickerSettings.prototype, "cssClass", void 0);
303
- __decorate$7([
303
+ __decorate$2([
304
304
  Property('')
305
305
  ], RibbonColorPickerSettings.prototype, "label", void 0);
306
- __decorate$7([
306
+ __decorate$2([
307
307
  Property(true)
308
308
  ], RibbonColorPickerSettings.prototype, "enableOpacity", void 0);
309
- __decorate$7([
309
+ __decorate$2([
310
310
  Property('Palette')
311
311
  ], RibbonColorPickerSettings.prototype, "mode", void 0);
312
- __decorate$7([
312
+ __decorate$2([
313
313
  Property(true)
314
314
  ], RibbonColorPickerSettings.prototype, "modeSwitcher", void 0);
315
- __decorate$7([
315
+ __decorate$2([
316
316
  Property(false)
317
317
  ], RibbonColorPickerSettings.prototype, "noColor", void 0);
318
- __decorate$7([
318
+ __decorate$2([
319
319
  Property(null)
320
320
  ], RibbonColorPickerSettings.prototype, "presetColors", void 0);
321
- __decorate$7([
321
+ __decorate$2([
322
322
  Property(true)
323
323
  ], RibbonColorPickerSettings.prototype, "showButtons", void 0);
324
- __decorate$7([
324
+ __decorate$2([
325
325
  Property('#008000ff')
326
326
  ], RibbonColorPickerSettings.prototype, "value", void 0);
327
- __decorate$7([
327
+ __decorate$2([
328
328
  Property({})
329
329
  ], RibbonColorPickerSettings.prototype, "htmlAttributes", void 0);
330
- __decorate$7([
330
+ __decorate$2([
331
331
  Event()
332
332
  ], RibbonColorPickerSettings.prototype, "beforeClose", void 0);
333
- __decorate$7([
333
+ __decorate$2([
334
334
  Event()
335
335
  ], RibbonColorPickerSettings.prototype, "beforeOpen", void 0);
336
- __decorate$7([
336
+ __decorate$2([
337
337
  Event()
338
338
  ], RibbonColorPickerSettings.prototype, "beforeTileRender", void 0);
339
- __decorate$7([
339
+ __decorate$2([
340
340
  Event()
341
341
  ], RibbonColorPickerSettings.prototype, "created", void 0);
342
- __decorate$7([
342
+ __decorate$2([
343
343
  Event()
344
344
  ], RibbonColorPickerSettings.prototype, "change", void 0);
345
- __decorate$7([
345
+ __decorate$2([
346
346
  Event()
347
347
  ], RibbonColorPickerSettings.prototype, "open", void 0);
348
- __decorate$7([
348
+ __decorate$2([
349
349
  Event()
350
350
  ], RibbonColorPickerSettings.prototype, "select", void 0);
351
351
  return RibbonColorPickerSettings;
352
352
  }(ChildProperty));
353
353
 
354
- var __extends$8 = (undefined && undefined.__extends) || (function () {
354
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
355
355
  var extendStatics = function (d, b) {
356
356
  extendStatics = Object.setPrototypeOf ||
357
357
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -364,7 +364,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
364
364
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
365
365
  };
366
366
  })();
367
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
367
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
368
368
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
369
369
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
370
370
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -374,7 +374,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
374
374
  * Defines the ribbon combobox item.
375
375
  */
376
376
  var RibbonComboBoxSettings = /** @__PURE__ @class */ (function (_super) {
377
- __extends$8(RibbonComboBoxSettings, _super);
377
+ __extends$3(RibbonComboBoxSettings, _super);
378
378
  function RibbonComboBoxSettings() {
379
379
  return _super !== null && _super.apply(this, arguments) || this;
380
380
  }
@@ -387,97 +387,97 @@ var RibbonComboBoxSettings = /** @__PURE__ @class */ (function (_super) {
387
387
  RibbonComboBoxSettings.prototype.setProperties = function (prop, muteOnChange) {
388
388
  _super.prototype.setProperties.call(this, prop, muteOnChange);
389
389
  };
390
- __decorate$8([
390
+ __decorate$3([
391
391
  Property(false)
392
392
  ], RibbonComboBoxSettings.prototype, "allowFiltering", void 0);
393
- __decorate$8([
393
+ __decorate$3([
394
394
  Property(true)
395
395
  ], RibbonComboBoxSettings.prototype, "autofill", void 0);
396
- __decorate$8([
396
+ __decorate$3([
397
397
  Property('')
398
398
  ], RibbonComboBoxSettings.prototype, "cssClass", void 0);
399
- __decorate$8([
399
+ __decorate$3([
400
400
  Property('')
401
401
  ], RibbonComboBoxSettings.prototype, "label", void 0);
402
- __decorate$8([
402
+ __decorate$3([
403
403
  Property([])
404
404
  ], RibbonComboBoxSettings.prototype, "dataSource", void 0);
405
- __decorate$8([
405
+ __decorate$3([
406
406
  Complex({ text: null, value: null, iconCss: null, groupBy: null }, FieldSettings)
407
407
  ], RibbonComboBoxSettings.prototype, "fields", void 0);
408
- __decorate$8([
408
+ __decorate$3([
409
409
  Property('Contains')
410
410
  ], RibbonComboBoxSettings.prototype, "filterType", void 0);
411
- __decorate$8([
411
+ __decorate$3([
412
412
  Property(null)
413
413
  ], RibbonComboBoxSettings.prototype, "footerTemplate", void 0);
414
- __decorate$8([
414
+ __decorate$3([
415
415
  Property(null)
416
416
  ], RibbonComboBoxSettings.prototype, "groupTemplate", void 0);
417
- __decorate$8([
417
+ __decorate$3([
418
418
  Property(null)
419
419
  ], RibbonComboBoxSettings.prototype, "headerTemplate", void 0);
420
- __decorate$8([
420
+ __decorate$3([
421
421
  Property(null)
422
422
  ], RibbonComboBoxSettings.prototype, "index", void 0);
423
- __decorate$8([
423
+ __decorate$3([
424
424
  Property(null)
425
425
  ], RibbonComboBoxSettings.prototype, "itemTemplate", void 0);
426
- __decorate$8([
426
+ __decorate$3([
427
427
  Property('No records found')
428
428
  ], RibbonComboBoxSettings.prototype, "noRecordsTemplate", void 0);
429
- __decorate$8([
429
+ __decorate$3([
430
430
  Property(null)
431
431
  ], RibbonComboBoxSettings.prototype, "placeholder", void 0);
432
- __decorate$8([
432
+ __decorate$3([
433
433
  Property('300px')
434
434
  ], RibbonComboBoxSettings.prototype, "popupHeight", void 0);
435
- __decorate$8([
435
+ __decorate$3([
436
436
  Property('100%')
437
437
  ], RibbonComboBoxSettings.prototype, "popupWidth", void 0);
438
- __decorate$8([
438
+ __decorate$3([
439
439
  Property(true)
440
440
  ], RibbonComboBoxSettings.prototype, "showClearButton", void 0);
441
- __decorate$8([
441
+ __decorate$3([
442
442
  Property('None')
443
443
  ], RibbonComboBoxSettings.prototype, "sortOrder", void 0);
444
- __decorate$8([
444
+ __decorate$3([
445
445
  Property(null)
446
446
  ], RibbonComboBoxSettings.prototype, "text", void 0);
447
- __decorate$8([
447
+ __decorate$3([
448
448
  Property(null)
449
449
  ], RibbonComboBoxSettings.prototype, "value", void 0);
450
- __decorate$8([
450
+ __decorate$3([
451
451
  Property('150px')
452
452
  ], RibbonComboBoxSettings.prototype, "width", void 0);
453
- __decorate$8([
453
+ __decorate$3([
454
454
  Property({})
455
455
  ], RibbonComboBoxSettings.prototype, "htmlAttributes", void 0);
456
- __decorate$8([
456
+ __decorate$3([
457
457
  Event()
458
458
  ], RibbonComboBoxSettings.prototype, "beforeOpen", void 0);
459
- __decorate$8([
459
+ __decorate$3([
460
460
  Event()
461
461
  ], RibbonComboBoxSettings.prototype, "change", void 0);
462
- __decorate$8([
462
+ __decorate$3([
463
463
  Event()
464
464
  ], RibbonComboBoxSettings.prototype, "close", void 0);
465
- __decorate$8([
465
+ __decorate$3([
466
466
  Event()
467
467
  ], RibbonComboBoxSettings.prototype, "created", void 0);
468
- __decorate$8([
468
+ __decorate$3([
469
469
  Event()
470
470
  ], RibbonComboBoxSettings.prototype, "filtering", void 0);
471
- __decorate$8([
471
+ __decorate$3([
472
472
  Event()
473
473
  ], RibbonComboBoxSettings.prototype, "open", void 0);
474
- __decorate$8([
474
+ __decorate$3([
475
475
  Event()
476
476
  ], RibbonComboBoxSettings.prototype, "select", void 0);
477
477
  return RibbonComboBoxSettings;
478
478
  }(ChildProperty));
479
479
 
480
- var __extends$9 = (undefined && undefined.__extends) || (function () {
480
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
481
481
  var extendStatics = function (d, b) {
482
482
  extendStatics = Object.setPrototypeOf ||
483
483
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -490,7 +490,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
490
490
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
491
491
  };
492
492
  })();
493
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
493
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
494
494
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
495
495
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
496
496
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -500,7 +500,7 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
500
500
  * Defines the ribbon DropDownButton item.
501
501
  */
502
502
  var RibbonDropDownSettings = /** @__PURE__ @class */ (function (_super) {
503
- __extends$9(RibbonDropDownSettings, _super);
503
+ __extends$4(RibbonDropDownSettings, _super);
504
504
  function RibbonDropDownSettings() {
505
505
  return _super !== null && _super.apply(this, arguments) || this;
506
506
  }
@@ -513,55 +513,55 @@ var RibbonDropDownSettings = /** @__PURE__ @class */ (function (_super) {
513
513
  RibbonDropDownSettings.prototype.setProperties = function (prop, muteOnChange) {
514
514
  _super.prototype.setProperties.call(this, prop, muteOnChange);
515
515
  };
516
- __decorate$9([
516
+ __decorate$4([
517
517
  Property('')
518
518
  ], RibbonDropDownSettings.prototype, "closeActionEvents", void 0);
519
- __decorate$9([
519
+ __decorate$4([
520
520
  Property('')
521
521
  ], RibbonDropDownSettings.prototype, "content", void 0);
522
- __decorate$9([
522
+ __decorate$4([
523
523
  Property('')
524
524
  ], RibbonDropDownSettings.prototype, "cssClass", void 0);
525
- __decorate$9([
525
+ __decorate$4([
526
526
  Property('')
527
527
  ], RibbonDropDownSettings.prototype, "iconCss", void 0);
528
- __decorate$9([
528
+ __decorate$4([
529
529
  Collection([], Item)
530
530
  ], RibbonDropDownSettings.prototype, "items", void 0);
531
- __decorate$9([
531
+ __decorate$4([
532
532
  Property('')
533
533
  ], RibbonDropDownSettings.prototype, "target", void 0);
534
- __decorate$9([
534
+ __decorate$4([
535
535
  Property(false)
536
536
  ], RibbonDropDownSettings.prototype, "createPopupOnClick", void 0);
537
- __decorate$9([
537
+ __decorate$4([
538
538
  Property({})
539
539
  ], RibbonDropDownSettings.prototype, "htmlAttributes", void 0);
540
- __decorate$9([
540
+ __decorate$4([
541
541
  Event()
542
542
  ], RibbonDropDownSettings.prototype, "beforeClose", void 0);
543
- __decorate$9([
543
+ __decorate$4([
544
544
  Event()
545
545
  ], RibbonDropDownSettings.prototype, "beforeItemRender", void 0);
546
- __decorate$9([
546
+ __decorate$4([
547
547
  Event()
548
548
  ], RibbonDropDownSettings.prototype, "beforeOpen", void 0);
549
- __decorate$9([
549
+ __decorate$4([
550
550
  Event()
551
551
  ], RibbonDropDownSettings.prototype, "close", void 0);
552
- __decorate$9([
552
+ __decorate$4([
553
553
  Event()
554
554
  ], RibbonDropDownSettings.prototype, "created", void 0);
555
- __decorate$9([
555
+ __decorate$4([
556
556
  Event()
557
557
  ], RibbonDropDownSettings.prototype, "open", void 0);
558
- __decorate$9([
558
+ __decorate$4([
559
559
  Event()
560
560
  ], RibbonDropDownSettings.prototype, "select", void 0);
561
561
  return RibbonDropDownSettings;
562
562
  }(ChildProperty));
563
563
 
564
- var __extends$10 = (undefined && undefined.__extends) || (function () {
564
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
565
565
  var extendStatics = function (d, b) {
566
566
  extendStatics = Object.setPrototypeOf ||
567
567
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -574,7 +574,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
574
574
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
575
575
  };
576
576
  })();
577
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
577
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
578
578
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
579
579
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
580
580
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -584,7 +584,7 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
584
584
  * Defines the ribbon SplitButton item.
585
585
  */
586
586
  var RibbonSplitButtonSettings = /** @__PURE__ @class */ (function (_super) {
587
- __extends$10(RibbonSplitButtonSettings, _super);
587
+ __extends$5(RibbonSplitButtonSettings, _super);
588
588
  function RibbonSplitButtonSettings() {
589
589
  return _super !== null && _super.apply(this, arguments) || this;
590
590
  }
@@ -597,55 +597,55 @@ var RibbonSplitButtonSettings = /** @__PURE__ @class */ (function (_super) {
597
597
  RibbonSplitButtonSettings.prototype.setProperties = function (prop, muteOnChange) {
598
598
  _super.prototype.setProperties.call(this, prop, muteOnChange);
599
599
  };
600
- __decorate$10([
600
+ __decorate$5([
601
601
  Property('')
602
602
  ], RibbonSplitButtonSettings.prototype, "closeActionEvents", void 0);
603
- __decorate$10([
603
+ __decorate$5([
604
604
  Property('')
605
605
  ], RibbonSplitButtonSettings.prototype, "content", void 0);
606
- __decorate$10([
606
+ __decorate$5([
607
607
  Property('')
608
608
  ], RibbonSplitButtonSettings.prototype, "cssClass", void 0);
609
- __decorate$10([
609
+ __decorate$5([
610
610
  Property('')
611
611
  ], RibbonSplitButtonSettings.prototype, "iconCss", void 0);
612
- __decorate$10([
612
+ __decorate$5([
613
613
  Collection([], Item)
614
614
  ], RibbonSplitButtonSettings.prototype, "items", void 0);
615
- __decorate$10([
615
+ __decorate$5([
616
616
  Property('')
617
617
  ], RibbonSplitButtonSettings.prototype, "target", void 0);
618
- __decorate$10([
618
+ __decorate$5([
619
619
  Property({})
620
620
  ], RibbonSplitButtonSettings.prototype, "htmlAttributes", void 0);
621
- __decorate$10([
621
+ __decorate$5([
622
622
  Event()
623
623
  ], RibbonSplitButtonSettings.prototype, "beforeClose", void 0);
624
- __decorate$10([
624
+ __decorate$5([
625
625
  Event()
626
626
  ], RibbonSplitButtonSettings.prototype, "beforeItemRender", void 0);
627
- __decorate$10([
627
+ __decorate$5([
628
628
  Event()
629
629
  ], RibbonSplitButtonSettings.prototype, "beforeOpen", void 0);
630
- __decorate$10([
630
+ __decorate$5([
631
631
  Event()
632
632
  ], RibbonSplitButtonSettings.prototype, "close", void 0);
633
- __decorate$10([
633
+ __decorate$5([
634
634
  Event()
635
635
  ], RibbonSplitButtonSettings.prototype, "click", void 0);
636
- __decorate$10([
636
+ __decorate$5([
637
637
  Event()
638
638
  ], RibbonSplitButtonSettings.prototype, "created", void 0);
639
- __decorate$10([
639
+ __decorate$5([
640
640
  Event()
641
641
  ], RibbonSplitButtonSettings.prototype, "open", void 0);
642
- __decorate$10([
642
+ __decorate$5([
643
643
  Event()
644
644
  ], RibbonSplitButtonSettings.prototype, "select", void 0);
645
645
  return RibbonSplitButtonSettings;
646
646
  }(ChildProperty));
647
647
 
648
- var __extends$11 = (undefined && undefined.__extends) || (function () {
648
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
649
649
  var extendStatics = function (d, b) {
650
650
  extendStatics = Object.setPrototypeOf ||
651
651
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -658,7 +658,7 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
658
658
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
659
659
  };
660
660
  })();
661
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
661
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
662
662
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
663
663
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
664
664
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -668,29 +668,29 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
668
668
  * Defines the ribbon tooltip.
669
669
  */
670
670
  var RibbonTooltip = /** @__PURE__ @class */ (function (_super) {
671
- __extends$11(RibbonTooltip, _super);
671
+ __extends$6(RibbonTooltip, _super);
672
672
  function RibbonTooltip() {
673
673
  return _super !== null && _super.apply(this, arguments) || this;
674
674
  }
675
- __decorate$11([
675
+ __decorate$6([
676
676
  Property('')
677
677
  ], RibbonTooltip.prototype, "cssClass", void 0);
678
- __decorate$11([
678
+ __decorate$6([
679
679
  Property('')
680
680
  ], RibbonTooltip.prototype, "id", void 0);
681
- __decorate$11([
681
+ __decorate$6([
682
682
  Property('')
683
683
  ], RibbonTooltip.prototype, "title", void 0);
684
- __decorate$11([
684
+ __decorate$6([
685
685
  Property('')
686
686
  ], RibbonTooltip.prototype, "content", void 0);
687
- __decorate$11([
687
+ __decorate$6([
688
688
  Property('')
689
689
  ], RibbonTooltip.prototype, "iconCss", void 0);
690
690
  return RibbonTooltip;
691
691
  }(ChildProperty));
692
692
 
693
- var __extends$13 = (undefined && undefined.__extends) || (function () {
693
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
694
694
  var extendStatics = function (d, b) {
695
695
  extendStatics = Object.setPrototypeOf ||
696
696
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -703,7 +703,7 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
703
703
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
704
704
  };
705
705
  })();
706
- var __decorate$13 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
706
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
707
707
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
708
708
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
709
709
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -713,7 +713,7 @@ var __decorate$13 = (undefined && undefined.__decorate) || function (decorators,
713
713
  * Defines the ribbon group button settings.
714
714
  */
715
715
  var RibbonGroupButtonItem = /** @__PURE__ @class */ (function (_super) {
716
- __extends$13(RibbonGroupButtonItem, _super);
716
+ __extends$7(RibbonGroupButtonItem, _super);
717
717
  function RibbonGroupButtonItem() {
718
718
  return _super !== null && _super.apply(this, arguments) || this;
719
719
  }
@@ -726,34 +726,34 @@ var RibbonGroupButtonItem = /** @__PURE__ @class */ (function (_super) {
726
726
  RibbonGroupButtonItem.prototype.setProperties = function (prop, muteOnChange) {
727
727
  _super.prototype.setProperties.call(this, prop, muteOnChange);
728
728
  };
729
- __decorate$13([
729
+ __decorate$7([
730
730
  Property('')
731
731
  ], RibbonGroupButtonItem.prototype, "content", void 0);
732
- __decorate$13([
732
+ __decorate$7([
733
733
  Property('')
734
734
  ], RibbonGroupButtonItem.prototype, "iconCss", void 0);
735
- __decorate$13([
735
+ __decorate$7([
736
736
  Property('')
737
737
  ], RibbonGroupButtonItem.prototype, "keyTip", void 0);
738
- __decorate$13([
738
+ __decorate$7([
739
739
  Complex({}, RibbonTooltip)
740
740
  ], RibbonGroupButtonItem.prototype, "ribbonTooltipSettings", void 0);
741
- __decorate$13([
741
+ __decorate$7([
742
742
  Property(false)
743
743
  ], RibbonGroupButtonItem.prototype, "selected", void 0);
744
- __decorate$13([
744
+ __decorate$7([
745
745
  Property({})
746
746
  ], RibbonGroupButtonItem.prototype, "htmlAttributes", void 0);
747
- __decorate$13([
747
+ __decorate$7([
748
748
  Event()
749
749
  ], RibbonGroupButtonItem.prototype, "beforeClick", void 0);
750
- __decorate$13([
750
+ __decorate$7([
751
751
  Event()
752
752
  ], RibbonGroupButtonItem.prototype, "click", void 0);
753
753
  return RibbonGroupButtonItem;
754
754
  }(ChildProperty));
755
755
 
756
- var __extends$12 = (undefined && undefined.__extends) || (function () {
756
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
757
757
  var extendStatics = function (d, b) {
758
758
  extendStatics = Object.setPrototypeOf ||
759
759
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -766,7 +766,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
766
766
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
767
767
  };
768
768
  })();
769
- var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
769
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
770
770
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
771
771
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
772
772
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -776,23 +776,23 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
776
776
  * Defines the ribbon group button settings.
777
777
  */
778
778
  var RibbonGroupButtonSettings = /** @__PURE__ @class */ (function (_super) {
779
- __extends$12(RibbonGroupButtonSettings, _super);
779
+ __extends$8(RibbonGroupButtonSettings, _super);
780
780
  function RibbonGroupButtonSettings() {
781
781
  return _super !== null && _super.apply(this, arguments) || this;
782
782
  }
783
- __decorate$12([
783
+ __decorate$8([
784
784
  Property('')
785
785
  ], RibbonGroupButtonSettings.prototype, "header", void 0);
786
- __decorate$12([
786
+ __decorate$8([
787
787
  Property('Single')
788
788
  ], RibbonGroupButtonSettings.prototype, "selection", void 0);
789
- __decorate$12([
789
+ __decorate$8([
790
790
  Collection([], RibbonGroupButtonItem)
791
791
  ], RibbonGroupButtonSettings.prototype, "items", void 0);
792
792
  return RibbonGroupButtonSettings;
793
793
  }(ChildProperty));
794
794
 
795
- var __extends$16 = (undefined && undefined.__extends) || (function () {
795
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
796
796
  var extendStatics = function (d, b) {
797
797
  extendStatics = Object.setPrototypeOf ||
798
798
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -805,7 +805,7 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
805
805
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
806
806
  };
807
807
  })();
808
- var __decorate$16 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
808
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
809
809
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
810
810
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
811
811
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -815,29 +815,29 @@ var __decorate$16 = (undefined && undefined.__decorate) || function (decorators,
815
815
  * Defines the ribbon gallery item.
816
816
  */
817
817
  var RibbonGalleryItem = /** @__PURE__ @class */ (function (_super) {
818
- __extends$16(RibbonGalleryItem, _super);
818
+ __extends$9(RibbonGalleryItem, _super);
819
819
  function RibbonGalleryItem() {
820
820
  return _super !== null && _super.apply(this, arguments) || this;
821
821
  }
822
- __decorate$16([
822
+ __decorate$9([
823
823
  Property('')
824
824
  ], RibbonGalleryItem.prototype, "content", void 0);
825
- __decorate$16([
825
+ __decorate$9([
826
826
  Property('')
827
827
  ], RibbonGalleryItem.prototype, "iconCss", void 0);
828
- __decorate$16([
828
+ __decorate$9([
829
829
  Property({})
830
830
  ], RibbonGalleryItem.prototype, "htmlAttributes", void 0);
831
- __decorate$16([
831
+ __decorate$9([
832
832
  Property('')
833
833
  ], RibbonGalleryItem.prototype, "cssClass", void 0);
834
- __decorate$16([
834
+ __decorate$9([
835
835
  Property(false)
836
836
  ], RibbonGalleryItem.prototype, "disabled", void 0);
837
837
  return RibbonGalleryItem;
838
838
  }(ChildProperty));
839
839
 
840
- var __extends$15 = (undefined && undefined.__extends) || (function () {
840
+ var __extends$a = (undefined && undefined.__extends) || (function () {
841
841
  var extendStatics = function (d, b) {
842
842
  extendStatics = Object.setPrototypeOf ||
843
843
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -850,7 +850,7 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
850
850
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
851
851
  };
852
852
  })();
853
- var __decorate$15 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
853
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
854
854
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
855
855
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
856
856
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -860,29 +860,29 @@ var __decorate$15 = (undefined && undefined.__decorate) || function (decorators,
860
860
  * Defines the ribbon gallery group.
861
861
  */
862
862
  var RibbonGalleryGroup = /** @__PURE__ @class */ (function (_super) {
863
- __extends$15(RibbonGalleryGroup, _super);
863
+ __extends$a(RibbonGalleryGroup, _super);
864
864
  function RibbonGalleryGroup() {
865
865
  return _super !== null && _super.apply(this, arguments) || this;
866
866
  }
867
- __decorate$15([
867
+ __decorate$a([
868
868
  Collection([], RibbonGalleryItem)
869
869
  ], RibbonGalleryGroup.prototype, "items", void 0);
870
- __decorate$15([
870
+ __decorate$a([
871
871
  Property('')
872
872
  ], RibbonGalleryGroup.prototype, "header", void 0);
873
- __decorate$15([
873
+ __decorate$a([
874
874
  Property('auto')
875
875
  ], RibbonGalleryGroup.prototype, "itemWidth", void 0);
876
- __decorate$15([
876
+ __decorate$a([
877
877
  Property('auto')
878
878
  ], RibbonGalleryGroup.prototype, "itemHeight", void 0);
879
- __decorate$15([
879
+ __decorate$a([
880
880
  Property('')
881
881
  ], RibbonGalleryGroup.prototype, "cssClass", void 0);
882
882
  return RibbonGalleryGroup;
883
883
  }(ChildProperty));
884
884
 
885
- var __extends$14 = (undefined && undefined.__extends) || (function () {
885
+ var __extends$b = (undefined && undefined.__extends) || (function () {
886
886
  var extendStatics = function (d, b) {
887
887
  extendStatics = Object.setPrototypeOf ||
888
888
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -895,7 +895,7 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
895
895
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
896
896
  };
897
897
  })();
898
- var __decorate$14 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
898
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
899
899
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
900
900
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
901
901
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -905,53 +905,53 @@ var __decorate$14 = (undefined && undefined.__decorate) || function (decorators,
905
905
  * Defines the ribbon gallery settings.
906
906
  */
907
907
  var RibbonGallerySettings = /** @__PURE__ @class */ (function (_super) {
908
- __extends$14(RibbonGallerySettings, _super);
908
+ __extends$b(RibbonGallerySettings, _super);
909
909
  function RibbonGallerySettings() {
910
910
  return _super !== null && _super.apply(this, arguments) || this;
911
911
  }
912
- __decorate$14([
912
+ __decorate$b([
913
913
  Collection([], RibbonGalleryGroup)
914
914
  ], RibbonGallerySettings.prototype, "groups", void 0);
915
- __decorate$14([
915
+ __decorate$b([
916
916
  Property(3)
917
917
  ], RibbonGallerySettings.prototype, "itemCount", void 0);
918
- __decorate$14([
918
+ __decorate$b([
919
919
  Property(null)
920
920
  ], RibbonGallerySettings.prototype, "selectedItemIndex", void 0);
921
- __decorate$14([
921
+ __decorate$b([
922
922
  Property('auto')
923
923
  ], RibbonGallerySettings.prototype, "popupHeight", void 0);
924
- __decorate$14([
924
+ __decorate$b([
925
925
  Property('auto')
926
926
  ], RibbonGallerySettings.prototype, "popupWidth", void 0);
927
- __decorate$14([
927
+ __decorate$b([
928
928
  Property('')
929
929
  ], RibbonGallerySettings.prototype, "template", void 0);
930
- __decorate$14([
930
+ __decorate$b([
931
931
  Property('')
932
932
  ], RibbonGallerySettings.prototype, "popupTemplate", void 0);
933
- __decorate$14([
933
+ __decorate$b([
934
934
  Event()
935
935
  ], RibbonGallerySettings.prototype, "popupOpen", void 0);
936
- __decorate$14([
936
+ __decorate$b([
937
937
  Event()
938
938
  ], RibbonGallerySettings.prototype, "popupClose", void 0);
939
- __decorate$14([
939
+ __decorate$b([
940
940
  Event()
941
941
  ], RibbonGallerySettings.prototype, "itemHover", void 0);
942
- __decorate$14([
942
+ __decorate$b([
943
943
  Event()
944
944
  ], RibbonGallerySettings.prototype, "beforeItemRender", void 0);
945
- __decorate$14([
945
+ __decorate$b([
946
946
  Event()
947
947
  ], RibbonGallerySettings.prototype, "beforeSelect", void 0);
948
- __decorate$14([
948
+ __decorate$b([
949
949
  Event()
950
950
  ], RibbonGallerySettings.prototype, "select", void 0);
951
951
  return RibbonGallerySettings;
952
952
  }(ChildProperty));
953
953
 
954
- var __extends$4 = (undefined && undefined.__extends) || (function () {
954
+ var __extends$c = (undefined && undefined.__extends) || (function () {
955
955
  var extendStatics = function (d, b) {
956
956
  extendStatics = Object.setPrototypeOf ||
957
957
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -964,7 +964,7 @@ var __extends$4 = (undefined && undefined.__extends) || (function () {
964
964
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
965
965
  };
966
966
  })();
967
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
967
+ var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
968
968
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
969
969
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
970
970
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -974,7 +974,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
974
974
  * Defines the ribbon item.
975
975
  */
976
976
  var RibbonItem = /** @__PURE__ @class */ (function (_super) {
977
- __extends$4(RibbonItem, _super);
977
+ __extends$c(RibbonItem, _super);
978
978
  function RibbonItem() {
979
979
  return _super !== null && _super.apply(this, arguments) || this;
980
980
  }
@@ -987,64 +987,64 @@ var RibbonItem = /** @__PURE__ @class */ (function (_super) {
987
987
  RibbonItem.prototype.setProperties = function (prop, muteOnChange) {
988
988
  _super.prototype.setProperties.call(this, prop, muteOnChange);
989
989
  };
990
- __decorate$4([
990
+ __decorate$c([
991
991
  Property('')
992
992
  ], RibbonItem.prototype, "keyTip", void 0);
993
- __decorate$4([
993
+ __decorate$c([
994
994
  Property(RibbonItemSize.Medium)
995
995
  ], RibbonItem.prototype, "activeSize", void 0);
996
- __decorate$4([
996
+ __decorate$c([
997
997
  Property(RibbonItemSize.Small | RibbonItemSize.Medium | RibbonItemSize.Large)
998
998
  ], RibbonItem.prototype, "allowedSizes", void 0);
999
- __decorate$4([
999
+ __decorate$c([
1000
1000
  Property('')
1001
1001
  ], RibbonItem.prototype, "id", void 0);
1002
- __decorate$4([
1002
+ __decorate$c([
1003
1003
  Property('')
1004
1004
  ], RibbonItem.prototype, "cssClass", void 0);
1005
- __decorate$4([
1005
+ __decorate$c([
1006
1006
  Property(false)
1007
1007
  ], RibbonItem.prototype, "disabled", void 0);
1008
- __decorate$4([
1008
+ __decorate$c([
1009
1009
  Property('')
1010
1010
  ], RibbonItem.prototype, "itemTemplate", void 0);
1011
- __decorate$4([
1011
+ __decorate$c([
1012
1012
  Property('Button')
1013
1013
  ], RibbonItem.prototype, "type", void 0);
1014
- __decorate$4([
1014
+ __decorate$c([
1015
1015
  Property(DisplayMode.Auto)
1016
1016
  ], RibbonItem.prototype, "displayOptions", void 0);
1017
- __decorate$4([
1017
+ __decorate$c([
1018
1018
  Complex({}, RibbonTooltip)
1019
1019
  ], RibbonItem.prototype, "ribbonTooltipSettings", void 0);
1020
- __decorate$4([
1020
+ __decorate$c([
1021
1021
  Complex({}, RibbonButtonSettings)
1022
1022
  ], RibbonItem.prototype, "buttonSettings", void 0);
1023
- __decorate$4([
1023
+ __decorate$c([
1024
1024
  Complex({}, RibbonDropDownSettings)
1025
1025
  ], RibbonItem.prototype, "dropDownSettings", void 0);
1026
- __decorate$4([
1026
+ __decorate$c([
1027
1027
  Complex({}, RibbonCheckBoxSettings)
1028
1028
  ], RibbonItem.prototype, "checkBoxSettings", void 0);
1029
- __decorate$4([
1029
+ __decorate$c([
1030
1030
  Complex({}, RibbonColorPickerSettings)
1031
1031
  ], RibbonItem.prototype, "colorPickerSettings", void 0);
1032
- __decorate$4([
1032
+ __decorate$c([
1033
1033
  Complex({}, RibbonComboBoxSettings)
1034
1034
  ], RibbonItem.prototype, "comboBoxSettings", void 0);
1035
- __decorate$4([
1035
+ __decorate$c([
1036
1036
  Complex({}, RibbonSplitButtonSettings)
1037
1037
  ], RibbonItem.prototype, "splitButtonSettings", void 0);
1038
- __decorate$4([
1038
+ __decorate$c([
1039
1039
  Complex({}, RibbonGroupButtonSettings)
1040
1040
  ], RibbonItem.prototype, "groupButtonSettings", void 0);
1041
- __decorate$4([
1041
+ __decorate$c([
1042
1042
  Complex({}, RibbonGallerySettings)
1043
1043
  ], RibbonItem.prototype, "gallerySettings", void 0);
1044
1044
  return RibbonItem;
1045
1045
  }(ChildProperty));
1046
1046
 
1047
- var __extends$3 = (undefined && undefined.__extends) || (function () {
1047
+ var __extends$d = (undefined && undefined.__extends) || (function () {
1048
1048
  var extendStatics = function (d, b) {
1049
1049
  extendStatics = Object.setPrototypeOf ||
1050
1050
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1057,7 +1057,7 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
1057
1057
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1058
1058
  };
1059
1059
  })();
1060
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1060
+ var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1061
1061
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1062
1062
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1063
1063
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1067,7 +1067,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
1067
1067
  * Defines the items of Ribbon.
1068
1068
  */
1069
1069
  var RibbonCollection = /** @__PURE__ @class */ (function (_super) {
1070
- __extends$3(RibbonCollection, _super);
1070
+ __extends$d(RibbonCollection, _super);
1071
1071
  function RibbonCollection() {
1072
1072
  return _super !== null && _super.apply(this, arguments) || this;
1073
1073
  }
@@ -1080,19 +1080,19 @@ var RibbonCollection = /** @__PURE__ @class */ (function (_super) {
1080
1080
  RibbonCollection.prototype.setProperties = function (prop, muteOnChange) {
1081
1081
  _super.prototype.setProperties.call(this, prop, muteOnChange);
1082
1082
  };
1083
- __decorate$3([
1083
+ __decorate$d([
1084
1084
  Property('')
1085
1085
  ], RibbonCollection.prototype, "id", void 0);
1086
- __decorate$3([
1086
+ __decorate$d([
1087
1087
  Property('')
1088
1088
  ], RibbonCollection.prototype, "cssClass", void 0);
1089
- __decorate$3([
1089
+ __decorate$d([
1090
1090
  Collection([], RibbonItem)
1091
1091
  ], RibbonCollection.prototype, "items", void 0);
1092
1092
  return RibbonCollection;
1093
1093
  }(ChildProperty));
1094
1094
 
1095
- var __extends$2 = (undefined && undefined.__extends) || (function () {
1095
+ var __extends$e = (undefined && undefined.__extends) || (function () {
1096
1096
  var extendStatics = function (d, b) {
1097
1097
  extendStatics = Object.setPrototypeOf ||
1098
1098
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1105,7 +1105,7 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
1105
1105
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1106
1106
  };
1107
1107
  })();
1108
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1108
+ var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1109
1109
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1110
1110
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1111
1111
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1115,7 +1115,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
1115
1115
  * Defines the ribbon group.
1116
1116
  */
1117
1117
  var RibbonGroup = /** @__PURE__ @class */ (function (_super) {
1118
- __extends$2(RibbonGroup, _super);
1118
+ __extends$e(RibbonGroup, _super);
1119
1119
  function RibbonGroup() {
1120
1120
  return _super !== null && _super.apply(this, arguments) || this;
1121
1121
  }
@@ -1128,52 +1128,52 @@ var RibbonGroup = /** @__PURE__ @class */ (function (_super) {
1128
1128
  RibbonGroup.prototype.setProperties = function (prop, muteOnChange) {
1129
1129
  _super.prototype.setProperties.call(this, prop, muteOnChange);
1130
1130
  };
1131
- __decorate$2([
1131
+ __decorate$e([
1132
1132
  Property('')
1133
1133
  ], RibbonGroup.prototype, "keyTip", void 0);
1134
- __decorate$2([
1134
+ __decorate$e([
1135
1135
  Property('')
1136
1136
  ], RibbonGroup.prototype, "launcherIconKeyTip", void 0);
1137
- __decorate$2([
1137
+ __decorate$e([
1138
1138
  Collection([], RibbonCollection)
1139
1139
  ], RibbonGroup.prototype, "collections", void 0);
1140
- __decorate$2([
1140
+ __decorate$e([
1141
1141
  Property('')
1142
1142
  ], RibbonGroup.prototype, "cssClass", void 0);
1143
- __decorate$2([
1143
+ __decorate$e([
1144
1144
  Property('')
1145
1145
  ], RibbonGroup.prototype, "id", void 0);
1146
- __decorate$2([
1146
+ __decorate$e([
1147
1147
  Property(false)
1148
1148
  ], RibbonGroup.prototype, "isCollapsed", void 0);
1149
- __decorate$2([
1149
+ __decorate$e([
1150
1150
  Property(true)
1151
1151
  ], RibbonGroup.prototype, "isCollapsible", void 0);
1152
- __decorate$2([
1152
+ __decorate$e([
1153
1153
  Property(false)
1154
1154
  ], RibbonGroup.prototype, "enableGroupOverflow", void 0);
1155
- __decorate$2([
1155
+ __decorate$e([
1156
1156
  Property('')
1157
1157
  ], RibbonGroup.prototype, "groupIconCss", void 0);
1158
- __decorate$2([
1158
+ __decorate$e([
1159
1159
  Property('')
1160
1160
  ], RibbonGroup.prototype, "header", void 0);
1161
- __decorate$2([
1161
+ __decorate$e([
1162
1162
  Property('Column')
1163
1163
  ], RibbonGroup.prototype, "orientation", void 0);
1164
- __decorate$2([
1164
+ __decorate$e([
1165
1165
  Property('')
1166
1166
  ], RibbonGroup.prototype, "overflowHeader", void 0);
1167
- __decorate$2([
1167
+ __decorate$e([
1168
1168
  Property(0)
1169
1169
  ], RibbonGroup.prototype, "priority", void 0);
1170
- __decorate$2([
1170
+ __decorate$e([
1171
1171
  Property(false)
1172
1172
  ], RibbonGroup.prototype, "showLauncherIcon", void 0);
1173
1173
  return RibbonGroup;
1174
1174
  }(ChildProperty));
1175
1175
 
1176
- var __extends$1 = (undefined && undefined.__extends) || (function () {
1176
+ var __extends$f = (undefined && undefined.__extends) || (function () {
1177
1177
  var extendStatics = function (d, b) {
1178
1178
  extendStatics = Object.setPrototypeOf ||
1179
1179
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1186,7 +1186,7 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
1186
1186
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1187
1187
  };
1188
1188
  })();
1189
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1189
+ var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1190
1190
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1191
1191
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1192
1192
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1196,7 +1196,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
1196
1196
  * Defines the ribbon tab.
1197
1197
  */
1198
1198
  var RibbonTab = /** @__PURE__ @class */ (function (_super) {
1199
- __extends$1(RibbonTab, _super);
1199
+ __extends$f(RibbonTab, _super);
1200
1200
  function RibbonTab() {
1201
1201
  return _super !== null && _super.apply(this, arguments) || this;
1202
1202
  }
@@ -1209,25 +1209,25 @@ var RibbonTab = /** @__PURE__ @class */ (function (_super) {
1209
1209
  RibbonTab.prototype.setProperties = function (prop, muteOnChange) {
1210
1210
  _super.prototype.setProperties.call(this, prop, muteOnChange);
1211
1211
  };
1212
- __decorate$1([
1212
+ __decorate$f([
1213
1213
  Property('')
1214
1214
  ], RibbonTab.prototype, "keyTip", void 0);
1215
- __decorate$1([
1215
+ __decorate$f([
1216
1216
  Property('')
1217
1217
  ], RibbonTab.prototype, "id", void 0);
1218
- __decorate$1([
1218
+ __decorate$f([
1219
1219
  Property('')
1220
1220
  ], RibbonTab.prototype, "cssClass", void 0);
1221
- __decorate$1([
1221
+ __decorate$f([
1222
1222
  Collection([], RibbonGroup)
1223
1223
  ], RibbonTab.prototype, "groups", void 0);
1224
- __decorate$1([
1224
+ __decorate$f([
1225
1225
  Property('')
1226
1226
  ], RibbonTab.prototype, "header", void 0);
1227
1227
  return RibbonTab;
1228
1228
  }(ChildProperty));
1229
1229
 
1230
- var __extends$17 = (undefined && undefined.__extends) || (function () {
1230
+ var __extends$g = (undefined && undefined.__extends) || (function () {
1231
1231
  var extendStatics = function (d, b) {
1232
1232
  extendStatics = Object.setPrototypeOf ||
1233
1233
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1240,7 +1240,7 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
1240
1240
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1241
1241
  };
1242
1242
  })();
1243
- var __decorate$17 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1243
+ var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1244
1244
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1245
1245
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1246
1246
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1250,7 +1250,7 @@ var __decorate$17 = (undefined && undefined.__decorate) || function (decorators,
1250
1250
  * Defines the ribbon file menu settings.
1251
1251
  */
1252
1252
  var FileMenuSettings = /** @__PURE__ @class */ (function (_super) {
1253
- __extends$17(FileMenuSettings, _super);
1253
+ __extends$g(FileMenuSettings, _super);
1254
1254
  function FileMenuSettings() {
1255
1255
  return _super !== null && _super.apply(this, arguments) || this;
1256
1256
  }
@@ -1263,55 +1263,55 @@ var FileMenuSettings = /** @__PURE__ @class */ (function (_super) {
1263
1263
  FileMenuSettings.prototype.setProperties = function (prop, muteOnChange) {
1264
1264
  _super.prototype.setProperties.call(this, prop, muteOnChange);
1265
1265
  };
1266
- __decorate$17([
1266
+ __decorate$g([
1267
1267
  Property('File')
1268
1268
  ], FileMenuSettings.prototype, "text", void 0);
1269
- __decorate$17([
1269
+ __decorate$g([
1270
1270
  Property(false)
1271
1271
  ], FileMenuSettings.prototype, "visible", void 0);
1272
- __decorate$17([
1272
+ __decorate$g([
1273
1273
  Collection([], MenuItem)
1274
1274
  ], FileMenuSettings.prototype, "menuItems", void 0);
1275
- __decorate$17([
1275
+ __decorate$g([
1276
1276
  Property(false)
1277
1277
  ], FileMenuSettings.prototype, "showItemOnClick", void 0);
1278
- __decorate$17([
1278
+ __decorate$g([
1279
1279
  Complex({}, MenuAnimationSettings)
1280
1280
  ], FileMenuSettings.prototype, "animationSettings", void 0);
1281
- __decorate$17([
1281
+ __decorate$g([
1282
1282
  Property('')
1283
1283
  ], FileMenuSettings.prototype, "itemTemplate", void 0);
1284
- __decorate$17([
1284
+ __decorate$g([
1285
1285
  Property('')
1286
1286
  ], FileMenuSettings.prototype, "popupTemplate", void 0);
1287
- __decorate$17([
1287
+ __decorate$g([
1288
1288
  Complex({}, RibbonTooltip)
1289
1289
  ], FileMenuSettings.prototype, "ribbonTooltipSettings", void 0);
1290
- __decorate$17([
1290
+ __decorate$g([
1291
1291
  Event()
1292
1292
  ], FileMenuSettings.prototype, "beforeClose", void 0);
1293
- __decorate$17([
1293
+ __decorate$g([
1294
1294
  Event()
1295
1295
  ], FileMenuSettings.prototype, "beforeOpen", void 0);
1296
- __decorate$17([
1296
+ __decorate$g([
1297
1297
  Event()
1298
1298
  ], FileMenuSettings.prototype, "beforeItemRender", void 0);
1299
- __decorate$17([
1299
+ __decorate$g([
1300
1300
  Event()
1301
1301
  ], FileMenuSettings.prototype, "close", void 0);
1302
- __decorate$17([
1302
+ __decorate$g([
1303
1303
  Event()
1304
1304
  ], FileMenuSettings.prototype, "open", void 0);
1305
- __decorate$17([
1305
+ __decorate$g([
1306
1306
  Event()
1307
1307
  ], FileMenuSettings.prototype, "select", void 0);
1308
- __decorate$17([
1308
+ __decorate$g([
1309
1309
  Property('')
1310
1310
  ], FileMenuSettings.prototype, "keyTip", void 0);
1311
1311
  return FileMenuSettings;
1312
1312
  }(ChildProperty));
1313
1313
 
1314
- var __extends$19 = (undefined && undefined.__extends) || (function () {
1314
+ var __extends$h = (undefined && undefined.__extends) || (function () {
1315
1315
  var extendStatics = function (d, b) {
1316
1316
  extendStatics = Object.setPrototypeOf ||
1317
1317
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1324,7 +1324,7 @@ var __extends$19 = (undefined && undefined.__extends) || (function () {
1324
1324
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1325
1325
  };
1326
1326
  })();
1327
- var __decorate$19 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1327
+ var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1328
1328
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1329
1329
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1330
1330
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1334,23 +1334,23 @@ var __decorate$19 = (undefined && undefined.__decorate) || function (decorators,
1334
1334
  * Defines the ribbon backstage back button.
1335
1335
  */
1336
1336
  var BackstageBackButton = /** @__PURE__ @class */ (function (_super) {
1337
- __extends$19(BackstageBackButton, _super);
1337
+ __extends$h(BackstageBackButton, _super);
1338
1338
  function BackstageBackButton() {
1339
1339
  return _super !== null && _super.apply(this, arguments) || this;
1340
1340
  }
1341
- __decorate$19([
1341
+ __decorate$h([
1342
1342
  Property('')
1343
1343
  ], BackstageBackButton.prototype, "text", void 0);
1344
- __decorate$19([
1344
+ __decorate$h([
1345
1345
  Property('')
1346
1346
  ], BackstageBackButton.prototype, "iconCss", void 0);
1347
- __decorate$19([
1347
+ __decorate$h([
1348
1348
  Property(true)
1349
1349
  ], BackstageBackButton.prototype, "visible", void 0);
1350
1350
  return BackstageBackButton;
1351
1351
  }(ChildProperty));
1352
1352
 
1353
- var __extends$20 = (undefined && undefined.__extends) || (function () {
1353
+ var __extends$i = (undefined && undefined.__extends) || (function () {
1354
1354
  var extendStatics = function (d, b) {
1355
1355
  extendStatics = Object.setPrototypeOf ||
1356
1356
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1363,7 +1363,7 @@ var __extends$20 = (undefined && undefined.__extends) || (function () {
1363
1363
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1364
1364
  };
1365
1365
  })();
1366
- var __decorate$20 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1366
+ var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1367
1367
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1368
1368
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1369
1369
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1373,38 +1373,38 @@ var __decorate$20 = (undefined && undefined.__decorate) || function (decorators,
1373
1373
  * Defines the ribbon backstage back button.
1374
1374
  */
1375
1375
  var BackstageItem = /** @__PURE__ @class */ (function (_super) {
1376
- __extends$20(BackstageItem, _super);
1376
+ __extends$i(BackstageItem, _super);
1377
1377
  function BackstageItem() {
1378
1378
  return _super !== null && _super.apply(this, arguments) || this;
1379
1379
  }
1380
- __decorate$20([
1380
+ __decorate$i([
1381
1381
  Property('')
1382
1382
  ], BackstageItem.prototype, "text", void 0);
1383
- __decorate$20([
1383
+ __decorate$i([
1384
1384
  Property('')
1385
1385
  ], BackstageItem.prototype, "id", void 0);
1386
- __decorate$20([
1386
+ __decorate$i([
1387
1387
  Property('')
1388
1388
  ], BackstageItem.prototype, "keyTip", void 0);
1389
- __decorate$20([
1389
+ __decorate$i([
1390
1390
  Property('')
1391
1391
  ], BackstageItem.prototype, "content", void 0);
1392
- __decorate$20([
1392
+ __decorate$i([
1393
1393
  Property('')
1394
1394
  ], BackstageItem.prototype, "iconCss", void 0);
1395
- __decorate$20([
1395
+ __decorate$i([
1396
1396
  Property(false)
1397
1397
  ], BackstageItem.prototype, "separator", void 0);
1398
- __decorate$20([
1398
+ __decorate$i([
1399
1399
  Property(false)
1400
1400
  ], BackstageItem.prototype, "isFooter", void 0);
1401
- __decorate$20([
1401
+ __decorate$i([
1402
1402
  Event()
1403
1403
  ], BackstageItem.prototype, "backStageItemClick", void 0);
1404
1404
  return BackstageItem;
1405
1405
  }(ChildProperty));
1406
1406
 
1407
- var __extends$18 = (undefined && undefined.__extends) || (function () {
1407
+ var __extends$j = (undefined && undefined.__extends) || (function () {
1408
1408
  var extendStatics = function (d, b) {
1409
1409
  extendStatics = Object.setPrototypeOf ||
1410
1410
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1417,7 +1417,7 @@ var __extends$18 = (undefined && undefined.__extends) || (function () {
1417
1417
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1418
1418
  };
1419
1419
  })();
1420
- var __decorate$18 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1420
+ var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1421
1421
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1422
1422
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1423
1423
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1427,7 +1427,7 @@ var __decorate$18 = (undefined && undefined.__decorate) || function (decorators,
1427
1427
  * Defines the ribbon file menu settings.
1428
1428
  */
1429
1429
  var BackStageMenu = /** @__PURE__ @class */ (function (_super) {
1430
- __extends$18(BackStageMenu, _super);
1430
+ __extends$j(BackStageMenu, _super);
1431
1431
  function BackStageMenu() {
1432
1432
  return _super !== null && _super.apply(this, arguments) || this;
1433
1433
  }
@@ -1440,40 +1440,40 @@ var BackStageMenu = /** @__PURE__ @class */ (function (_super) {
1440
1440
  BackStageMenu.prototype.setProperties = function (prop, muteOnChange) {
1441
1441
  _super.prototype.setProperties.call(this, prop, muteOnChange);
1442
1442
  };
1443
- __decorate$18([
1443
+ __decorate$j([
1444
1444
  Property('File')
1445
1445
  ], BackStageMenu.prototype, "text", void 0);
1446
- __decorate$18([
1446
+ __decorate$j([
1447
1447
  Property('')
1448
1448
  ], BackStageMenu.prototype, "keyTip", void 0);
1449
- __decorate$18([
1449
+ __decorate$j([
1450
1450
  Property(false)
1451
1451
  ], BackStageMenu.prototype, "visible", void 0);
1452
- __decorate$18([
1452
+ __decorate$j([
1453
1453
  Property('auto')
1454
1454
  ], BackStageMenu.prototype, "height", void 0);
1455
- __decorate$18([
1455
+ __decorate$j([
1456
1456
  Property('auto')
1457
1457
  ], BackStageMenu.prototype, "width", void 0);
1458
- __decorate$18([
1458
+ __decorate$j([
1459
1459
  Property(null)
1460
1460
  ], BackStageMenu.prototype, "target", void 0);
1461
- __decorate$18([
1461
+ __decorate$j([
1462
1462
  Complex({}, BackstageBackButton)
1463
1463
  ], BackStageMenu.prototype, "backButton", void 0);
1464
- __decorate$18([
1464
+ __decorate$j([
1465
1465
  Collection([], BackstageItem)
1466
1466
  ], BackStageMenu.prototype, "items", void 0);
1467
- __decorate$18([
1467
+ __decorate$j([
1468
1468
  Property('')
1469
1469
  ], BackStageMenu.prototype, "template", void 0);
1470
- __decorate$18([
1470
+ __decorate$j([
1471
1471
  Complex({}, RibbonTooltip)
1472
1472
  ], BackStageMenu.prototype, "ribbonTooltipSettings", void 0);
1473
1473
  return BackStageMenu;
1474
1474
  }(ChildProperty));
1475
1475
 
1476
- var __extends$21 = (undefined && undefined.__extends) || (function () {
1476
+ var __extends$k = (undefined && undefined.__extends) || (function () {
1477
1477
  var extendStatics = function (d, b) {
1478
1478
  extendStatics = Object.setPrototypeOf ||
1479
1479
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1486,7 +1486,7 @@ var __extends$21 = (undefined && undefined.__extends) || (function () {
1486
1486
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1487
1487
  };
1488
1488
  })();
1489
- var __decorate$21 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1489
+ var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1490
1490
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1491
1491
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1492
1492
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1496,7 +1496,7 @@ var __decorate$21 = (undefined && undefined.__decorate) || function (decorators,
1496
1496
  * Defines the ribbon contextual tab.
1497
1497
  */
1498
1498
  var RibbonContextualTabSettings = /** @__PURE__ @class */ (function (_super) {
1499
- __extends$21(RibbonContextualTabSettings, _super);
1499
+ __extends$k(RibbonContextualTabSettings, _super);
1500
1500
  function RibbonContextualTabSettings() {
1501
1501
  return _super !== null && _super.apply(this, arguments) || this;
1502
1502
  }
@@ -1509,20 +1509,18 @@ var RibbonContextualTabSettings = /** @__PURE__ @class */ (function (_super) {
1509
1509
  RibbonContextualTabSettings.prototype.setProperties = function (prop, muteOnChange) {
1510
1510
  _super.prototype.setProperties.call(this, prop, muteOnChange);
1511
1511
  };
1512
- __decorate$21([
1512
+ __decorate$k([
1513
1513
  Property(false)
1514
1514
  ], RibbonContextualTabSettings.prototype, "visible", void 0);
1515
- __decorate$21([
1515
+ __decorate$k([
1516
1516
  Property(false)
1517
1517
  ], RibbonContextualTabSettings.prototype, "isSelected", void 0);
1518
- __decorate$21([
1518
+ __decorate$k([
1519
1519
  Collection([], RibbonTab)
1520
1520
  ], RibbonContextualTabSettings.prototype, "tabs", void 0);
1521
1521
  return RibbonContextualTabSettings;
1522
1522
  }(ChildProperty));
1523
1523
 
1524
- // export * from './file-menu';
1525
-
1526
1524
  /**
1527
1525
  * Specifies the File Manager internal ID's
1528
1526
  */
@@ -1725,6 +1723,17 @@ var RIBBON_FILE_MENU_WIDTH = '--fileMenuWidth';
1725
1723
  /** @hidden */
1726
1724
  var RIBBON_HELP_PANE_TEMPLATE_WIDTH = '--helpTemplateWidth';
1727
1725
 
1726
+ var __assign = (undefined && undefined.__assign) || function () {
1727
+ __assign = Object.assign || function(t) {
1728
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1729
+ s = arguments[i];
1730
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1731
+ t[p] = s[p];
1732
+ }
1733
+ return t;
1734
+ };
1735
+ return __assign.apply(this, arguments);
1736
+ };
1728
1737
  /**
1729
1738
  * Defines the items of Ribbon.
1730
1739
  */
@@ -1767,14 +1776,23 @@ var RibbonButton = /** @__PURE__ @class */ (function () {
1767
1776
  created: btnSettings.created
1768
1777
  }, buttonEle);
1769
1778
  if (btnSettings.htmlAttributes) {
1770
- setCustomAttributes(buttonEle, btnSettings.htmlAttributes);
1779
+ var htmlAttr = __assign({}, btnSettings.htmlAttributes);
1780
+ if (htmlAttr.id) {
1781
+ delete htmlAttr.id;
1782
+ }
1783
+ setCustomAttributes(buttonEle, htmlAttr);
1771
1784
  }
1772
1785
  buttonEle.onclick = function (e) {
1773
1786
  if (btnSettings.clicked) {
1774
1787
  btnSettings.clicked.call(_this, e);
1775
1788
  }
1776
1789
  };
1777
- buttonEle.setAttribute('aria-label', btnSettings.content);
1790
+ if (btnSettings.content) {
1791
+ buttonEle.setAttribute('aria-label', btnSettings.content);
1792
+ }
1793
+ else {
1794
+ buttonEle.setAttribute('aria-label', 'button');
1795
+ }
1778
1796
  };
1779
1797
  /**
1780
1798
  * Adds the additional event handlers as the item moved into overflow popup.
@@ -1882,6 +1900,17 @@ var RibbonButton = /** @__PURE__ @class */ (function () {
1882
1900
  return RibbonButton;
1883
1901
  }());
1884
1902
 
1903
+ var __assign$1 = (undefined && undefined.__assign) || function () {
1904
+ __assign$1 = Object.assign || function(t) {
1905
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1906
+ s = arguments[i];
1907
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1908
+ t[p] = s[p];
1909
+ }
1910
+ return t;
1911
+ };
1912
+ return __assign$1.apply(this, arguments);
1913
+ };
1885
1914
  /**
1886
1915
  * Defines the items of Ribbon.
1887
1916
  */
@@ -1910,6 +1939,13 @@ var RibbonCheckBox = /** @__PURE__ @class */ (function () {
1910
1939
  });
1911
1940
  itemEle.appendChild(inputEle);
1912
1941
  var checkBoxSettings = item.checkBoxSettings;
1942
+ var htmlAttr = {};
1943
+ if (checkBoxSettings.htmlAttributes) {
1944
+ htmlAttr = __assign$1({}, checkBoxSettings.htmlAttributes);
1945
+ if (htmlAttr.id) {
1946
+ delete htmlAttr.id;
1947
+ }
1948
+ }
1913
1949
  new CheckBox({
1914
1950
  locale: this.parent.locale,
1915
1951
  enableRtl: this.parent.enableRtl,
@@ -1920,7 +1956,7 @@ var RibbonCheckBox = /** @__PURE__ @class */ (function () {
1920
1956
  labelPosition: checkBoxSettings.labelPosition,
1921
1957
  disabled: item.disabled,
1922
1958
  created: checkBoxSettings.created,
1923
- htmlAttributes: checkBoxSettings.htmlAttributes,
1959
+ htmlAttributes: htmlAttr,
1924
1960
  change: function (e) {
1925
1961
  if (checkBoxSettings.change) {
1926
1962
  checkBoxSettings.change.call(_this, e);
@@ -2014,6 +2050,17 @@ var RibbonCheckBox = /** @__PURE__ @class */ (function () {
2014
2050
  return RibbonCheckBox;
2015
2051
  }());
2016
2052
 
2053
+ var __assign$2 = (undefined && undefined.__assign) || function () {
2054
+ __assign$2 = Object.assign || function(t) {
2055
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2056
+ s = arguments[i];
2057
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2058
+ t[p] = s[p];
2059
+ }
2060
+ return t;
2061
+ };
2062
+ return __assign$2.apply(this, arguments);
2063
+ };
2017
2064
  /**
2018
2065
  * Defines the items of Ribbon.
2019
2066
  */
@@ -2080,7 +2127,11 @@ var RibbonColorPicker = /** @__PURE__ @class */ (function () {
2080
2127
  select: colorPickerSettings.select
2081
2128
  }, inputEle);
2082
2129
  if (colorPickerSettings.htmlAttributes) {
2083
- setCustomAttributes(inputEle, colorPickerSettings.htmlAttributes);
2130
+ var htmlAttr = __assign$2({}, colorPickerSettings.htmlAttributes);
2131
+ if (htmlAttr.id) {
2132
+ delete htmlAttr.id;
2133
+ }
2134
+ setCustomAttributes(inputEle, htmlAttr);
2084
2135
  }
2085
2136
  var wrapper = colorPicker.element.parentElement;
2086
2137
  EventHandler.add(wrapper, 'mouseenter', this.toggleWrapperHover.bind(this, wrapper, true), this);
@@ -2234,6 +2285,17 @@ var RibbonColorPicker = /** @__PURE__ @class */ (function () {
2234
2285
  return RibbonColorPicker;
2235
2286
  }());
2236
2287
 
2288
+ var __assign$3 = (undefined && undefined.__assign) || function () {
2289
+ __assign$3 = Object.assign || function(t) {
2290
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2291
+ s = arguments[i];
2292
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2293
+ t[p] = s[p];
2294
+ }
2295
+ return t;
2296
+ };
2297
+ return __assign$3.apply(this, arguments);
2298
+ };
2237
2299
  /**
2238
2300
  * Defines the items of Ribbon.
2239
2301
  */
@@ -2262,6 +2324,13 @@ var RibbonComboBox = /** @__PURE__ @class */ (function () {
2262
2324
  });
2263
2325
  itemEle.appendChild(inputEle);
2264
2326
  var comboBoxSettings = item.comboBoxSettings;
2327
+ var htmlAttr = {};
2328
+ if (comboBoxSettings.htmlAttributes) {
2329
+ htmlAttr = __assign$3({}, comboBoxSettings.htmlAttributes);
2330
+ if (htmlAttr.id) {
2331
+ delete htmlAttr.id;
2332
+ }
2333
+ }
2265
2334
  new ComboBox({
2266
2335
  locale: this.parent.locale,
2267
2336
  enableRtl: this.parent.enableRtl,
@@ -2293,7 +2362,7 @@ var RibbonComboBox = /** @__PURE__ @class */ (function () {
2293
2362
  width: comboBoxSettings.width,
2294
2363
  beforeOpen: comboBoxSettings.beforeOpen,
2295
2364
  open: comboBoxSettings.open,
2296
- htmlAttributes: comboBoxSettings.htmlAttributes,
2365
+ htmlAttributes: htmlAttr,
2297
2366
  close: function (e) {
2298
2367
  if (comboBoxSettings.close) {
2299
2368
  comboBoxSettings.close.call(_this, e);
@@ -2436,6 +2505,17 @@ var RibbonComboBox = /** @__PURE__ @class */ (function () {
2436
2505
  return RibbonComboBox;
2437
2506
  }());
2438
2507
 
2508
+ var __assign$4 = (undefined && undefined.__assign) || function () {
2509
+ __assign$4 = Object.assign || function(t) {
2510
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2511
+ s = arguments[i];
2512
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2513
+ t[p] = s[p];
2514
+ }
2515
+ return t;
2516
+ };
2517
+ return __assign$4.apply(this, arguments);
2518
+ };
2439
2519
  /**
2440
2520
  * Defines the items of Ribbon.
2441
2521
  */
@@ -2496,7 +2576,11 @@ var RibbonDropDown = /** @__PURE__ @class */ (function () {
2496
2576
  select: dropDownSettings.select
2497
2577
  }).appendTo(buttonEle);
2498
2578
  if (dropDownSettings.htmlAttributes) {
2499
- setCustomAttributes(buttonEle, dropDownSettings.htmlAttributes);
2579
+ var htmlAttr = __assign$4({}, dropDownSettings.htmlAttributes);
2580
+ if (htmlAttr.id) {
2581
+ delete htmlAttr.id;
2582
+ }
2583
+ setCustomAttributes(buttonEle, htmlAttr);
2500
2584
  }
2501
2585
  };
2502
2586
  /**
@@ -2874,6 +2958,17 @@ var RibbonDropDown = /** @__PURE__ @class */ (function () {
2874
2958
  return RibbonDropDown;
2875
2959
  }());
2876
2960
 
2961
+ var __assign$5 = (undefined && undefined.__assign) || function () {
2962
+ __assign$5 = Object.assign || function(t) {
2963
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2964
+ s = arguments[i];
2965
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2966
+ t[p] = s[p];
2967
+ }
2968
+ return t;
2969
+ };
2970
+ return __assign$5.apply(this, arguments);
2971
+ };
2877
2972
  /**
2878
2973
  * Defines the items of Ribbon.
2879
2974
  */
@@ -2943,7 +3038,11 @@ var RibbonSplitButton = /** @__PURE__ @class */ (function () {
2943
3038
  }
2944
3039
  }, buttonEle);
2945
3040
  if (splitButtonSettings.htmlAttributes) {
2946
- setCustomAttributes(buttonEle, splitButtonSettings.htmlAttributes);
3041
+ var htmlAttr = __assign$5({}, splitButtonSettings.htmlAttributes);
3042
+ if (htmlAttr.id) {
3043
+ delete htmlAttr.id;
3044
+ }
3045
+ setCustomAttributes(buttonEle, htmlAttr);
2947
3046
  }
2948
3047
  var dropdownEle = buttonEle.parentElement.querySelector('.e-dropdown-btn');
2949
3048
  dropdownEle.onkeydown = function (e) {
@@ -3524,6 +3623,10 @@ var RibbonGroupButton = /** @__PURE__ @class */ (function () {
3524
3623
  }
3525
3624
  if (groupBtnSettings.items[parseInt(i.toString(), 10)].content) {
3526
3625
  groupButtonEle.classList.add(RIBBON_GROUP_BUTTON_CONTENT);
3626
+ groupButtonEle.setAttribute('aria-label', groupBtnSettings.items[parseInt(i.toString(), 10)].content);
3627
+ }
3628
+ else {
3629
+ groupButtonEle.setAttribute('aria-label', 'groupbuttonitem');
3527
3630
  }
3528
3631
  var buttonEle = itemElement.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + i);
3529
3632
  if (groupBtnSettings.selection === RibbonGroupButtonSelection.Single) {
@@ -3642,7 +3745,8 @@ var RibbonGroupButton = /** @__PURE__ @class */ (function () {
3642
3745
  for (var j = 0; j < grpBtnSettings.items.length; j++) {
3643
3746
  if (document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + j) && document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + j).classList.contains('e-active')) {
3644
3747
  document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + j).classList.remove('e-active');
3645
- grpBtnSettings.items[parseInt(j.toString(), 10)].setProperties({ selected: false }, true);
3748
+ grpBtnSettings.items[parseInt(j.toString(), 10)].
3749
+ setProperties({ selected: false }, true);
3646
3750
  }
3647
3751
  }
3648
3752
  document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + itemIndex).classList.toggle('e-active');
@@ -3663,10 +3767,12 @@ var RibbonGroupButton = /** @__PURE__ @class */ (function () {
3663
3767
  }
3664
3768
  document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + itemIndex).classList.toggle('e-active');
3665
3769
  if (document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + itemIndex).classList.contains('e-active')) {
3666
- grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].setProperties({ selected: true }, true);
3770
+ grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].
3771
+ setProperties({ selected: true }, true);
3667
3772
  }
3668
3773
  else {
3669
- grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].setProperties({ selected: false }, true);
3774
+ grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].
3775
+ setProperties({ selected: false }, true);
3670
3776
  }
3671
3777
  var activeEleCount = 0;
3672
3778
  for (var n = 0; n < grpBtnSettings.items.length; n++) {
@@ -3869,6 +3975,7 @@ var RibbonGroupButton = /** @__PURE__ @class */ (function () {
3869
3975
  *
3870
3976
  * @param {RibbonItemModel} item - Gets the ribbon item model.
3871
3977
  * @param {HTMLElement} itemEle - Gets the ribbon item element.
3978
+ * @param {DropDownButton} overflowButton - Gets the overflow button.
3872
3979
  * @returns {void}
3873
3980
  * @hidden
3874
3981
  */
@@ -3974,7 +4081,12 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
3974
4081
  this.count = 0;
3975
4082
  this.isAdded = false;
3976
4083
  this.galleryItemsIndex = 0;
4084
+ this.registeredTemplate = {};
3977
4085
  this.parent = parent;
4086
+ var ref = 'viewContainerRef';
4087
+ setValue('registeredTemplate', this.registeredTemplate, this);
4088
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4089
+ setValue(ref, this.parent["" + ref], this);
3978
4090
  }
3979
4091
  RibbonGallery.prototype.getModuleName = function () {
3980
4092
  return 'ribbonGallery';
@@ -3998,13 +4110,19 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
3998
4110
  id: item.id + '_popupButton',
3999
4111
  className: 'e-ribbon-gallery-button e-icons e-drop-icon'
4000
4112
  });
4113
+ buttonEle.setAttribute('aria-label', 'gallerydropdownbutton');
4001
4114
  itemEle.appendChild(buttonEle);
4002
4115
  this.createPopup(item, buttonEle);
4003
4116
  buttonEle.onclick = function (args) {
4004
4117
  var popupEle = document.querySelector('#' + item.id + '_galleryPopup');
4005
4118
  if (popupEle) {
4006
4119
  var popup = getComponent(popupEle, Popup);
4007
- popupEle.classList.contains('e-popup-close') ? _this.showPopup(popup, popupEle, args, gallerySettings, item.id) : _this.hidePopup(popup, popupEle, args, gallerySettings, item.id);
4120
+ if (popupEle.classList.contains('e-popup-close')) {
4121
+ _this.showPopup(popup, popupEle, args, gallerySettings, item.id);
4122
+ }
4123
+ else {
4124
+ _this.hidePopup(popup, popupEle, args, gallerySettings, item.id);
4125
+ }
4008
4126
  }
4009
4127
  };
4010
4128
  document.onclick = function (args) {
@@ -4060,7 +4178,7 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4060
4178
  var _loop_2 = function (j) {
4061
4179
  galleryEle = this_1.parent.createElement('li', {
4062
4180
  className: 'e-ribbon-gallery-item',
4063
- id: galleryContainerEle.id + '_gallery' + j,
4181
+ id: (isPopup ? 'popup_' : '') + galleryContainerEle.id + '_gallery' + j,
4064
4182
  attrs: { 'tabindex': '0' }
4065
4183
  });
4066
4184
  var itemEventArgs = { name: 'beforeItemRender', item: gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)] };
@@ -4079,11 +4197,11 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4079
4197
  }
4080
4198
  this_1.count = this_1.count + 1;
4081
4199
  galleryEle.onclick = function (e) {
4082
- _this.setActiveState(e.currentTarget, gallerySettings, id, true, e);
4200
+ _this.setActiveState(e.currentTarget, gallerySettings, id, true, e, isPopup);
4083
4201
  };
4084
4202
  galleryEle.onkeydown = function (e) {
4085
4203
  if (e.key === 'Enter' || e.key === ' ') {
4086
- _this.setActiveState(e.currentTarget, gallerySettings, id, true, e);
4204
+ _this.setActiveState(e.currentTarget, gallerySettings, id, true, e, isPopup);
4087
4205
  }
4088
4206
  };
4089
4207
  galleryEle.onmouseover = function (e) {
@@ -4103,9 +4221,12 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4103
4221
  galleryContainerEle.style.flexFlow = 'wrap';
4104
4222
  }
4105
4223
  }
4106
- if ((!gallerySettings.template && !gallerySettings.popupTemplate) || ((gallerySettings.template && !gallerySettings.popupTemplate) && isPopup) || ((gallerySettings.popupTemplate && !gallerySettings.template) && !isPopup)) {
4224
+ if ((!gallerySettings.template && !gallerySettings.popupTemplate) ||
4225
+ ((gallerySettings.template && !gallerySettings.popupTemplate) && isPopup) ||
4226
+ ((gallerySettings.popupTemplate && !gallerySettings.template) && !isPopup)) {
4107
4227
  if (gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)].htmlAttributes) {
4108
- setCustomAttributes(galleryEle, gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)].htmlAttributes);
4228
+ setCustomAttributes(galleryEle, gallerySettings.groups[parseInt(i.toString(), 10)]
4229
+ .items[parseInt(j.toString(), 10)].htmlAttributes);
4109
4230
  }
4110
4231
  if (gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)].iconCss) {
4111
4232
  var iconEle = this_1.parent.createElement('span', {
@@ -4149,7 +4270,12 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4149
4270
  if (this_1.isAdded && !isPopup) {
4150
4271
  return "break";
4151
4272
  }
4152
- !isPopup ? galleryWrapper.appendChild(galleryContainerEle) : itemEle.appendChild(galleryContainerEle);
4273
+ if (!isPopup) {
4274
+ galleryWrapper.appendChild(galleryContainerEle);
4275
+ }
4276
+ else {
4277
+ itemEle.appendChild(galleryContainerEle);
4278
+ }
4153
4279
  if (isPopup && gallerySettings.groups[parseInt(i.toString(), 10)].header) {
4154
4280
  var headerEle = (this_1.parent.createElement('div', {
4155
4281
  className: 'e-ribbon-gallery-header',
@@ -4166,6 +4292,14 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4166
4292
  }
4167
4293
  this.count = 0;
4168
4294
  this.isAdded = false;
4295
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4296
+ if (this.parent.isReact) {
4297
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4298
+ this.parent.portals = this.parent.portals.concat(this['portals']);
4299
+ this.parent['renderReactTemplates']();
4300
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4301
+ this['portals'] = undefined;
4302
+ }
4169
4303
  };
4170
4304
  RibbonGallery.prototype.setWrapperWidth = function (itemCount, galleryWrapper, gallerySettings, itemID) {
4171
4305
  var count = 1;
@@ -4173,74 +4307,77 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4173
4307
  var isWidthApplied = false;
4174
4308
  for (var i = 0; i < gallerySettings.groups.length; i++) {
4175
4309
  for (var j = 0; j < gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
4176
- if (gallerySettings.groups[parseInt(i.toString(), 10)].itemHeight && gallerySettings.groups[parseInt(i.toString(), 10)].itemHeight !== 'auto') {
4177
- if (itemCount >= count) {
4178
- var galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + i + '_gallery' + j);
4179
- if (galleryItemEle) {
4180
- itemsWidth += galleryItemEle.offsetWidth;
4181
- var itemStyles = window.getComputedStyle(galleryItemEle);
4182
- if (itemStyles) {
4183
- var paddingWidth = parseFloat(itemStyles.paddingLeft) + parseFloat(itemStyles.paddingRight);
4184
- if (!(isNullOrUndefined(paddingWidth)))
4185
- itemsWidth += paddingWidth;
4186
- var marginWidth = parseFloat(itemStyles.marginLeft) + parseFloat(itemStyles.marginRight);
4187
- if (!(isNullOrUndefined(marginWidth)))
4188
- itemsWidth += marginWidth;
4310
+ if (itemCount >= count) {
4311
+ var galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + i + '_gallery' + j);
4312
+ if (galleryItemEle) {
4313
+ itemsWidth += galleryItemEle.offsetWidth;
4314
+ var itemStyles = window.getComputedStyle(galleryItemEle);
4315
+ if (itemStyles) {
4316
+ var paddingWidth = parseFloat(itemStyles.paddingLeft) + parseFloat(itemStyles.paddingRight);
4317
+ if (!(isNullOrUndefined(paddingWidth))) {
4318
+ itemsWidth += paddingWidth;
4319
+ }
4320
+ var marginWidth = parseFloat(itemStyles.marginLeft) + parseFloat(itemStyles.marginRight);
4321
+ if (!(isNullOrUndefined(marginWidth))) {
4322
+ itemsWidth += marginWidth;
4189
4323
  }
4190
4324
  }
4191
4325
  }
4192
- else {
4193
- isWidthApplied = true;
4194
- break;
4195
- }
4196
- count++;
4197
4326
  }
4327
+ else {
4328
+ isWidthApplied = true;
4329
+ break;
4330
+ }
4331
+ count++;
4198
4332
  }
4199
4333
  if (isWidthApplied) {
4200
4334
  break;
4201
4335
  }
4202
4336
  }
4203
- if (itemsWidth > 0)
4337
+ if (itemsWidth > 0) {
4204
4338
  galleryWrapper.style.width = itemsWidth + 'px';
4339
+ }
4205
4340
  };
4206
4341
  /**
4207
4342
  * Checks the gallery items height.
4208
4343
  *
4209
- * @param {number} selectedTab - Gets the current selected tab.
4210
4344
  * @param {HTMLElement} activeContent - Gets the current active content.
4211
4345
  * @returns {void}
4212
4346
  * @hidden
4213
4347
  */
4214
- RibbonGallery.prototype.checkAvailableHeight = function (selectedTab, activeContent) {
4348
+ RibbonGallery.prototype.checkAvailableHeight = function (activeContent) {
4215
4349
  var galleryWrapperItems = activeContent.querySelectorAll('.e-ribbon-gallery-wrapper');
4216
4350
  for (var n = 0; n < galleryWrapperItems.length; n++) {
4351
+ var count = 0;
4352
+ var simplifiedItemsCount = 0;
4217
4353
  var isHeight = false;
4218
- var itemsCount = 0;
4219
4354
  var galleryWrapper = galleryWrapperItems[parseInt(n.toString(), 10)];
4220
- var galleryWrapperHeight = galleryWrapper.offsetHeight;
4221
4355
  var itemID = galleryWrapper.id.replace(/_galleryWrapper/g, '');
4356
+ var galleryWrapperHeight = galleryWrapper.offsetHeight;
4222
4357
  var itemProp = getItem(this.parent.tabs, itemID);
4223
4358
  if (itemProp) {
4224
4359
  this.setWrapperWidth(itemProp.item.gallerySettings.itemCount, galleryWrapper, itemProp.item.gallerySettings, itemID);
4225
4360
  for (var i = 0; i < itemProp.item.gallerySettings.groups.length; i++) {
4226
- if (itemProp.item.gallerySettings.groups[parseInt(i.toString(), 10)].itemHeight && itemProp.item.gallerySettings.groups[parseInt(i.toString(), 10)].itemHeight !== 'auto') {
4227
- for (var j = 0; j < itemProp.item.gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
4228
- var galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + i + '_gallery' + j);
4229
- if (galleryItemEle) {
4230
- itemsCount++;
4361
+ for (var j = 0; j < itemProp.item.gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
4362
+ var galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + i + '_gallery' + j);
4363
+ if (galleryItemEle) {
4364
+ if (this.parent.activeLayout === 'Classic') {
4365
+ if (galleryItemEle.classList.contains('e-hidden')) {
4366
+ galleryItemEle.classList.remove('e-hidden');
4367
+ }
4231
4368
  if (!isHeight) {
4232
- if (itemsCount === 1) {
4233
- var itemsValues = 0;
4234
- var itemStyles = window.getComputedStyle(galleryItemEle);
4235
- if (itemStyles) {
4236
- var paddingWidth = parseFloat(itemStyles.paddingTop) + parseFloat(itemStyles.paddingBottom);
4237
- if (!(isNullOrUndefined(paddingWidth)))
4238
- itemsValues += paddingWidth;
4239
- var marginWidth = parseFloat(itemStyles.marginTop) + parseFloat(itemStyles.marginBottom);
4240
- if (!(isNullOrUndefined(marginWidth)))
4241
- itemsValues += marginWidth;
4369
+ var itemsValues = 0;
4370
+ var itemStyles = window.getComputedStyle(galleryItemEle);
4371
+ if (itemStyles) {
4372
+ var marginWidth = parseFloat(itemStyles.marginTop) + parseFloat(itemStyles.marginBottom);
4373
+ if (!(isNullOrUndefined(marginWidth))) {
4374
+ itemsValues += marginWidth;
4242
4375
  }
4243
- if (galleryWrapperHeight > (galleryItemEle.offsetHeight + itemsValues)) {
4376
+ }
4377
+ count++;
4378
+ if (itemProp.item.gallerySettings.itemCount === count) {
4379
+ count = 0;
4380
+ if (galleryWrapperHeight >= (galleryItemEle.offsetHeight + itemsValues)) {
4244
4381
  galleryWrapperHeight -= (galleryItemEle.offsetHeight + itemsValues);
4245
4382
  }
4246
4383
  else {
@@ -4248,30 +4385,49 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4248
4385
  galleryItemEle.remove();
4249
4386
  }
4250
4387
  }
4251
- if (itemsCount === itemProp.item.gallerySettings.itemCount) {
4252
- itemsCount = 0;
4388
+ else if (galleryWrapperHeight < (galleryItemEle.offsetHeight + itemsValues)) {
4389
+ isHeight = true;
4390
+ galleryItemEle.remove();
4253
4391
  }
4254
4392
  }
4255
4393
  else {
4256
4394
  galleryItemEle.remove();
4257
4395
  }
4258
4396
  }
4397
+ else {
4398
+ simplifiedItemsCount++;
4399
+ if (simplifiedItemsCount > itemProp.item.gallerySettings.itemCount) {
4400
+ galleryItemEle.classList.add('e-hidden');
4401
+ }
4402
+ }
4259
4403
  }
4260
4404
  }
4261
4405
  }
4262
4406
  }
4263
4407
  }
4264
4408
  };
4265
- RibbonGallery.prototype.checkCollision = function (popup, popupEle) {
4409
+ /**
4410
+ * Checks the popup collision.
4411
+ *
4412
+ * @param {Popup} popup - Gets the popup.
4413
+ * @param {HTMLElement} popupEle - Gets the popup element.
4414
+ * @param {number} offsetValue - Gets the offset value of gallery popup button.
4415
+ * @returns {void}
4416
+ * @hidden
4417
+ */
4418
+ RibbonGallery.prototype.checkCollision = function (popup, popupEle, offsetValue) {
4419
+ if (offsetValue === void 0) { offsetValue = 0; }
4266
4420
  var paddingWidth = 0;
4267
4421
  var marginWidth = 0;
4268
4422
  if (popupEle) {
4269
- var screenWidth = window.innerWidth;
4423
+ var windowWidth = window.innerWidth;
4424
+ var screenWidth = offsetValue === 0 ? windowWidth : Math.abs(windowWidth - (windowWidth - offsetValue));
4270
4425
  var paddingStyles = window.getComputedStyle(popupEle);
4271
4426
  if (paddingStyles) {
4272
4427
  paddingWidth = parseFloat(paddingStyles.paddingLeft) + parseFloat(paddingStyles.paddingRight);
4273
- if (!(isNullOrUndefined(paddingWidth)))
4428
+ if (!(isNullOrUndefined(paddingWidth))) {
4274
4429
  screenWidth = screenWidth - paddingWidth;
4430
+ }
4275
4431
  }
4276
4432
  var popupContainerItems = popupEle.querySelectorAll('.e-ribbon-gallery-container');
4277
4433
  if (popup.width !== 'auto') {
@@ -4283,15 +4439,16 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4283
4439
  for (var i = 0; i < popupContainerItems.length; i++) {
4284
4440
  var itemsWidth = 0;
4285
4441
  for (var j = 0; j < popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item').length; j++) {
4286
- var marginStyles = window.getComputedStyle(popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item')[parseInt(j.toString(), 10)]);
4287
- if (marginStyles) {
4288
- marginWidth = parseFloat(marginStyles.marginLeft) + parseFloat(marginStyles.marginRight);
4289
- if (!(isNullOrUndefined(marginWidth)))
4442
+ var popupItemStyles = window.getComputedStyle(popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item')[parseInt(j.toString(), 10)]);
4443
+ if (popupItemStyles) {
4444
+ marginWidth = parseFloat(popupItemStyles.marginLeft) + parseFloat(popupItemStyles.marginRight);
4445
+ if (!(isNullOrUndefined(marginWidth))) {
4290
4446
  itemsWidth += marginWidth;
4447
+ }
4291
4448
  }
4292
- itemsWidth += popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item')[parseInt(j.toString(), 10)].offsetWidth;
4449
+ itemsWidth += Math.round(parseFloat(popupItemStyles.width));
4293
4450
  if (((screenWidth <= itemsWidth) && popup.width === 'auto') || ((popup.width !== 'auto') && (screenWidth <= parseInt(popup.width.toString(), 10)) && (screenWidth <= itemsWidth))) {
4294
- popupEle.style.width = ((itemsWidth + Math.abs(paddingWidth - marginWidth)) - popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item')[parseInt(j.toString(), 10)].offsetWidth) + 'px';
4451
+ popupEle.style.width = ((itemsWidth + Math.abs(paddingWidth - marginWidth)) - Math.round(parseFloat(popupItemStyles.width))) + 'px';
4295
4452
  isCollideOccurs = true;
4296
4453
  break;
4297
4454
  }
@@ -4300,6 +4457,9 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4300
4457
  popupContainerItems.forEach(function (ele) {
4301
4458
  ele.style.flexFlow = 'wrap';
4302
4459
  });
4460
+ if (popup.height === 'auto') {
4461
+ this.setGalleryPopupHeight(popupEle, parseFloat(paddingStyles.height), parseFloat(paddingStyles.top));
4462
+ }
4303
4463
  break;
4304
4464
  }
4305
4465
  }
@@ -4313,9 +4473,20 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4313
4473
  else {
4314
4474
  popupEle.style.width = (popup.width).toString();
4315
4475
  }
4476
+ if (popup.height === 'auto') {
4477
+ this.setGalleryPopupHeight(popupEle, parseFloat(paddingStyles.height), parseFloat(paddingStyles.top));
4478
+ }
4316
4479
  }
4317
4480
  }
4318
4481
  };
4482
+ RibbonGallery.prototype.setGalleryPopupHeight = function (popupEle, popupHeight, popupTop) {
4483
+ if (window.innerHeight < popupHeight || window.innerHeight < Math.round(popupHeight + popupTop)) {
4484
+ popupEle.style.height = (window.innerHeight - popupTop) + 'px';
4485
+ }
4486
+ else {
4487
+ popupEle.style.height = 'auto';
4488
+ }
4489
+ };
4319
4490
  RibbonGallery.prototype.createPopup = function (item, buttonEle) {
4320
4491
  var popupContainer = this.parent.createElement('div', {
4321
4492
  className: 'e-ribbon-popup-container',
@@ -4350,15 +4521,18 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4350
4521
  */
4351
4522
  RibbonGallery.prototype.switchGalleryItems = function (activeLayout, itemID) {
4352
4523
  var itemEle = this.parent.element.querySelector('#' + itemID + CONTAINER_ID);
4353
- var count = 0;
4354
4524
  var itemProp = getItem(this.parent.tabs, itemID);
4355
4525
  if (itemEle) {
4356
- var galleryWrapper = itemEle.querySelector('.e-ribbon-gallery-wrapper');
4357
4526
  var galleryIcons = itemEle.querySelectorAll('.e-ribbon-gallery-icons');
4358
4527
  var galleryContainer = itemEle.querySelectorAll('.e-ribbon-gallery-container');
4359
4528
  if (galleryIcons.length) {
4360
4529
  for (var i = 0; i < galleryIcons.length; i++) {
4361
- activeLayout === 'Simplified' ? galleryIcons[parseInt(i.toString(), 10)].classList.add('e-hidden') : galleryIcons[parseInt(i.toString(), 10)].classList.remove('e-hidden');
4530
+ if (activeLayout === 'Simplified') {
4531
+ galleryIcons[parseInt(i.toString(), 10)].classList.add('e-hidden');
4532
+ }
4533
+ else {
4534
+ galleryIcons[parseInt(i.toString(), 10)].classList.remove('e-hidden');
4535
+ }
4362
4536
  }
4363
4537
  }
4364
4538
  if (galleryContainer.length && itemProp) {
@@ -4366,24 +4540,20 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4366
4540
  for (var i = 0; i < galleryContainer.length; i++) {
4367
4541
  if (itemProp.item.gallerySettings.groups[parseInt(n.toString(), 10)].itemHeight && itemProp.item.gallerySettings.groups[parseInt(n.toString(), 10)].itemHeight !== 'auto') {
4368
4542
  if (itemID + '_galleryContainer' + n === galleryContainer[parseInt(i.toString(), 10)].id) {
4369
- activeLayout === 'Simplified' ? galleryContainer[parseInt(i.toString(), 10)].style.flexFlow = 'nowrap' : galleryContainer[parseInt(i.toString(), 10)].style.flexFlow = 'wrap';
4543
+ if (activeLayout === 'Simplified') {
4544
+ galleryContainer[parseInt(i.toString(), 10)].style.flexFlow = 'nowrap';
4545
+ }
4546
+ else {
4547
+ galleryContainer[parseInt(i.toString(), 10)].style.flexFlow = 'wrap';
4548
+ }
4370
4549
  }
4371
4550
  }
4372
4551
  }
4373
4552
  }
4374
4553
  }
4375
- if (galleryWrapper) {
4376
- for (var n = 0; n < itemProp.item.gallerySettings.groups.length; n++) {
4377
- for (var i = 0; i < itemProp.item.gallerySettings.groups[parseInt(n.toString(), 10)].items.length; i++) {
4378
- count++;
4379
- if (count > itemProp.item.gallerySettings.itemCount) {
4380
- var galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + n + '_gallery' + i);
4381
- if (galleryItemEle) {
4382
- activeLayout === 'Simplified' ? galleryItemEle.classList.add('e-hidden') : galleryItemEle.classList.remove('e-hidden');
4383
- }
4384
- }
4385
- }
4386
- }
4554
+ var activeContent = this.parent.tabObj.element.querySelector('#' + this.parent.tabs[this.parent.selectedTab].id + CONTENT_ID);
4555
+ if (activeContent) {
4556
+ this.checkAvailableHeight(activeContent);
4387
4557
  }
4388
4558
  }
4389
4559
  };
@@ -4392,15 +4562,14 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4392
4562
  *
4393
4563
  * @param {RibbonItemModel} item - Gets the ribbon item model.
4394
4564
  * @param {HTMLElement} itemEle - Gets the ribbon item element.
4395
- * @param {DropDownButton} overflowButton - Gets the overflow button.
4396
4565
  * @returns {void}
4397
4566
  * @hidden
4398
4567
  */
4399
- RibbonGallery.prototype.addOverFlowEvents = function (item, itemEle, overflowButton) {
4568
+ RibbonGallery.prototype.addOverFlowEvents = function (item, itemEle) {
4400
4569
  var _this = this;
4401
4570
  if (itemEle.closest('.e-ribbon-overflow-target')) {
4402
4571
  var buttonEle = this.parent.createElement('button', {
4403
- id: item.id,
4572
+ id: item.id
4404
4573
  });
4405
4574
  itemEle.appendChild(buttonEle);
4406
4575
  itemEle.querySelector('.e-ribbon-gallery-wrapper').classList.add('e-hidden');
@@ -4408,8 +4577,9 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4408
4577
  ele.classList.add('e-hidden');
4409
4578
  });
4410
4579
  var popupButton = itemEle.querySelector('#' + item.id + '_popupButton');
4411
- if (popupButton)
4580
+ if (popupButton) {
4412
4581
  popupButton.classList.add('e-hidden');
4582
+ }
4413
4583
  var itemProp = getItem(this.parent.tabs, item.id);
4414
4584
  var iconCss = itemProp && itemProp.group.groupIconCss ? itemProp.group.groupIconCss : '';
4415
4585
  var content = itemProp && itemProp.group.header ? itemProp.group.header : '';
@@ -4429,7 +4599,7 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4429
4599
  var popupEle = document.querySelector('#' + item.id + '_galleryPopup');
4430
4600
  var popup = getComponent(popupEle, Popup);
4431
4601
  var popupContainerEle_1 = document.querySelector('#' + item.id + '_galleryPopup .e-ribbon-popup-container');
4432
- var dropdown_1 = new DropDownButton({
4602
+ var dropdown = new DropDownButton({
4433
4603
  iconCss: iconCss,
4434
4604
  content: content,
4435
4605
  target: popupContainerEle_1,
@@ -4438,7 +4608,6 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4438
4608
  disabled: item.disabled,
4439
4609
  open: function () {
4440
4610
  _this.setFoucsToFirstItem(popupContainerEle_1, true, item.id);
4441
- _this.checkCollision(dropdown_1.dropDown, dropdown_1.dropDown.element);
4442
4611
  },
4443
4612
  beforeClose: function (args) {
4444
4613
  var isCancelled = _this.popupEvents(args.event, item.gallerySettings, 'popupClose', false);
@@ -4448,11 +4617,11 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4448
4617
  }
4449
4618
  }, buttonEle);
4450
4619
  if (popup.width !== 'auto') {
4451
- dropdown_1.dropDown.width = formatUnit(popup.width);
4620
+ dropdown.dropDown.width = formatUnit(popup.width);
4452
4621
  }
4453
4622
  if (popup.height !== 'auto') {
4454
- dropdown_1.dropDown.height = formatUnit(popup.height);
4455
- dropdown_1.dropDown.element.style.height = (popup.height).toString();
4623
+ dropdown.dropDown.height = formatUnit(popup.height);
4624
+ dropdown.dropDown.element.style.height = (popup.height).toString();
4456
4625
  }
4457
4626
  }
4458
4627
  };
@@ -4482,7 +4651,7 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4482
4651
  remove(galleryDDBEle);
4483
4652
  }
4484
4653
  };
4485
- RibbonGallery.prototype.setActiveState = function (galleryEle, gallerySettings, itemID, isInteracted, event) {
4654
+ RibbonGallery.prototype.setActiveState = function (galleryEle, gallerySettings, itemID, isInteracted, event, isPopup) {
4486
4655
  var previousItem;
4487
4656
  var currentItem;
4488
4657
  var itemEle = document.querySelector('#' + itemID + CONTAINER_ID);
@@ -4497,12 +4666,13 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4497
4666
  if (selctedGalleryItem[0].id === itemID + '_galleryContainer' + i + '_gallery' + j) {
4498
4667
  previousItem = gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)];
4499
4668
  }
4500
- if (galleryEle.id === itemID + '_galleryContainer' + i + '_gallery' + j) {
4669
+ if (galleryEle.id === (isPopup ? 'popup_' : '') + itemID + '_galleryContainer' + i + '_gallery' + j) {
4501
4670
  currentItem = gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)];
4502
4671
  }
4503
4672
  }
4504
4673
  }
4505
- var galleryItem = document.querySelectorAll('#' + galleryEle.id);
4674
+ var galleryItem = document.getElementById(galleryEle.id);
4675
+ var galleryItemPopup;
4506
4676
  var selectingEventArgs = { cancel: false, name: 'beforeSelect', previousItem: previousItem, currentItem: currentItem, isInteracted: isInteracted, event: event };
4507
4677
  if (gallerySettings.beforeSelect) {
4508
4678
  gallerySettings.beforeSelect.call(this, selectingEventArgs);
@@ -4514,9 +4684,16 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4514
4684
  for (var i = 0; i < selctedGalleryItem.length; i++) {
4515
4685
  selctedGalleryItem[parseInt(i.toString(), 10)].classList.remove('e-ribbon-gallery-selected');
4516
4686
  }
4517
- for (var i = 0; i < galleryItem.length; i++) {
4518
- galleryItem[parseInt(i.toString(), 10)].classList.add('e-ribbon-gallery-selected');
4687
+ if (!galleryItem.id.startsWith('popup_')) {
4688
+ galleryItemPopup = document.getElementById('popup_' + galleryEle.id);
4689
+ }
4690
+ else if (document.getElementById(galleryItem.id.slice(6))) {
4691
+ galleryItemPopup = document.getElementById(galleryItem.id.slice(6));
4692
+ }
4693
+ if (galleryItemPopup) {
4694
+ galleryItemPopup.classList.add('e-ribbon-gallery-selected');
4519
4695
  }
4696
+ galleryItem.classList.add('e-ribbon-gallery-selected');
4520
4697
  var selectedEventArgs = { previousItem: previousItem, currentItem: currentItem, name: 'select', isInteracted: isInteracted, event: event };
4521
4698
  var galleryPopupItems = document.querySelectorAll('#' + itemID + '_popupContainer .e-ribbon-gallery-item');
4522
4699
  for (var i = 0; i < galleryPopupItems.length; i++) {
@@ -4553,6 +4730,9 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4553
4730
  var buttonEle = document.querySelector('#' + itemID + '_popupButton');
4554
4731
  buttonEle.classList.add('e-gallery-button-active');
4555
4732
  var buttonPosition = buttonEle.getBoundingClientRect();
4733
+ if (popupEle.offsetWidth > buttonPosition.left) {
4734
+ this.checkCollision(popup, popupEle, buttonPosition.left);
4735
+ }
4556
4736
  var offsetX = Math.abs((popupEle.offsetWidth - buttonPosition.left)) + buttonEle.offsetWidth;
4557
4737
  popupEle.style.left = offsetX + 'px';
4558
4738
  popupEle.style.top = popupEle.getBoundingClientRect().top + 2 + 'px';
@@ -4634,10 +4814,7 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4634
4814
  galleryPopupEle[this.galleryItemsIndex].focus();
4635
4815
  }
4636
4816
  }
4637
- else if (e.key === 'Enter' || e.code === 'Space') {
4638
- galleryPopupEle[this.galleryItemsIndex].click();
4639
- }
4640
- else if (e.key === 'Escape' && !isDropdown) {
4817
+ else if ((e.key === 'Enter' || e.code === 'Space') || (e.key === 'Escape' && !isDropdown)) {
4641
4818
  this.hidePopup(popup, popupEle, e, gallerySettings, itemID);
4642
4819
  }
4643
4820
  }
@@ -4653,8 +4830,7 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4653
4830
  if (items.cssClass) {
4654
4831
  galleryItemEle.classList.add(items.cssClass);
4655
4832
  }
4656
- append(templateFunction({ items: items }, this, templateName, (id + 'galleryTemplate'), this.parent.isStringTemplate), galleryItemEle);
4657
- this.parent['renderReactTemplates']();
4833
+ append(templateFunction({ items: items }, this, templateName, (id + 'galleryTemplate'), this.parent.isStringTemplate, null, null, this.parent), galleryItemEle);
4658
4834
  };
4659
4835
  RibbonGallery.prototype.createGalleryPopupTemplate = function (galleryItemEle, gallerySettings, id, items) {
4660
4836
  galleryItemEle.classList.add('e-ribbon-gallery-popup-template');
@@ -4667,13 +4843,12 @@ var RibbonGallery = /** @__PURE__ @class */ (function () {
4667
4843
  if (items.cssClass) {
4668
4844
  galleryItemEle.classList.add(items.cssClass);
4669
4845
  }
4670
- append(templateFunction({ items: items }, this, templateName, (id + 'galleryPopupTemplate'), this.parent.isStringTemplate), galleryItemEle);
4671
- this.parent['renderReactTemplates']();
4846
+ append(templateFunction({ items: items }, this, templateName, (id + 'galleryPopupTemplate'), this.parent.isStringTemplate, null, null, this.parent), galleryItemEle);
4672
4847
  };
4673
4848
  return RibbonGallery;
4674
4849
  }());
4675
4850
 
4676
- var __extends = (undefined && undefined.__extends) || (function () {
4851
+ var __extends$l = (undefined && undefined.__extends) || (function () {
4677
4852
  var extendStatics = function (d, b) {
4678
4853
  extendStatics = Object.setPrototypeOf ||
4679
4854
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4686,7 +4861,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
4686
4861
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4687
4862
  };
4688
4863
  })();
4689
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4864
+ var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4690
4865
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4691
4866
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4692
4867
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4696,7 +4871,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
4696
4871
  * The Ribbon Component is a structured layout to manage tools with tabs and groups.
4697
4872
  */
4698
4873
  var Ribbon = /** @__PURE__ @class */ (function (_super) {
4699
- __extends(Ribbon, _super);
4874
+ __extends$l(Ribbon, _super);
4700
4875
  /**
4701
4876
  * Constructor for creating the widget.
4702
4877
  *
@@ -5073,7 +5248,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5073
5248
  this.ribbonKeyTipModule.removeKeytip();
5074
5249
  }
5075
5250
  };
5076
- Ribbon.prototype.mouseEventHandler = function (e) {
5251
+ Ribbon.prototype.mouseEventHandler = function () {
5077
5252
  if (this.ribbonKeyTipModule && this.enableKeyTips) {
5078
5253
  this.ribbonKeyTipModule.removeKeytip();
5079
5254
  }
@@ -5149,25 +5324,24 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5149
5324
  Ribbon.prototype.addKeyTip = function (tabIndex, keyTip, id, type) {
5150
5325
  if (this.keyTipElements && this.keyTipElements[parseInt(tabIndex.toString(), 10)]) {
5151
5326
  var isKeyTipExist = false;
5152
- /* eslint-disable */
5153
- if (!(this.keyTipElements[parseInt(tabIndex.toString(), 10)][type])) {
5154
- this.keyTipElements[parseInt(tabIndex.toString(), 10)][type] = [];
5327
+ if (!(this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type])) {
5328
+ this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type] = [];
5155
5329
  }
5156
- if (Object.keys(this.keyTipElements[tabIndex][type]).length) {
5157
- var keytipData = this.keyTipElements[tabIndex][type];
5158
- for (var i = 0; i < Object.keys(this.keyTipElements[tabIndex][type]).length; i++) {
5330
+ if (Object.keys(this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type]).length) {
5331
+ var keytipData = this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type];
5332
+ for (var i = 0; i < Object.keys(this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type]).length; i++) {
5159
5333
  if (keytipData[parseInt(i.toString(), 10)].id === id) {
5160
5334
  isKeyTipExist = true;
5161
5335
  }
5162
5336
  }
5163
5337
  if (!isKeyTipExist) {
5164
- this.keyTipElements[tabIndex][type].push({ id: id, type: type, keyTip: keyTip });
5338
+ this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type].
5339
+ push({ id: id, type: type, keyTip: keyTip });
5165
5340
  }
5166
5341
  }
5167
5342
  else {
5168
- this.keyTipElements[tabIndex][type].push({ id: id, type: type, keyTip: keyTip });
5343
+ this.keyTipElements[parseInt(tabIndex.toString(), 10)]["" + type].push({ id: id, type: type, keyTip: keyTip });
5169
5344
  }
5170
- /* eslint-enable */
5171
5345
  }
5172
5346
  };
5173
5347
  Ribbon.prototype.renderTabs = function () {
@@ -5254,10 +5428,10 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5254
5428
  this.isUpdateItems = false;
5255
5429
  }
5256
5430
  }
5257
- this.checkOverflow(selectedIndex, e.selectedContent.firstChild);
5258
- if (this.activeLayout === 'Classic' && this.ribbonGalleryModule) {
5259
- this.ribbonGalleryModule.checkAvailableHeight(selectedIndex, e.selectedContent.firstChild);
5431
+ if (this.ribbonGalleryModule) {
5432
+ this.ribbonGalleryModule.checkAvailableHeight(e.selectedContent.firstChild);
5260
5433
  }
5434
+ this.checkOverflow(selectedIndex, e.selectedContent.firstChild);
5261
5435
  if (this.activeLayout === 'Simplified' && this.overflowDDB) {
5262
5436
  var overflowTarget = this.overflowDDB.target;
5263
5437
  var ofTabContainer = overflowTarget.querySelector('.' + RIBBON_TAB_ACTIVE);
@@ -5286,7 +5460,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5286
5460
  break;
5287
5461
  }
5288
5462
  }
5289
- this.contextualTabs[parseInt(i.toString(), 10)].setProperties({ isSelected: isSelected }, true);
5463
+ this.contextualTabs[parseInt(i.toString(), 10)].
5464
+ setProperties({ isSelected: isSelected }, true);
5290
5465
  }
5291
5466
  }
5292
5467
  };
@@ -5484,7 +5659,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5484
5659
  item.setProperties({ activeSize: RibbonItemSize.Medium }, true);
5485
5660
  this.setItemSize(itemEle, item);
5486
5661
  }
5487
- if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) || (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
5662
+ if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
5663
+ (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
5488
5664
  this.updatePopupItems(item, itemContainer, group.enableGroupOverflow, true);
5489
5665
  }
5490
5666
  }
@@ -5514,6 +5690,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5514
5690
  return isEmptyCollection;
5515
5691
  };
5516
5692
  Ribbon.prototype.updatePopupItems = function (item, itemEle, isGroupOF, isMenu) {
5693
+ var _this = this;
5517
5694
  var dropdown = getComponent(itemEle.querySelector('#' + item.id), (item.type === RibbonItemType.DropDown || item.type === RibbonItemType.Gallery || item.type === RibbonItemType.GroupButton) ? DropDownButton : SplitButton);
5518
5695
  var dropDownPopup = dropdown.dropDown;
5519
5696
  // popup is on right if (isGroupOF && isMenu)
@@ -5525,6 +5702,9 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5525
5702
  if (isMenu) {
5526
5703
  dropdown.beforeOpen = function () {
5527
5704
  if (isLeft) {
5705
+ if (item.type === RibbonItemType.Gallery && _this.ribbonGalleryModule) {
5706
+ _this.ribbonGalleryModule.checkCollision(dropDownPopup, dropDownPopup.element);
5707
+ }
5528
5708
  dropDownPopup.element.style.setProperty('visibility', 'hidden');
5529
5709
  dropDownPopup.element.style.setProperty('display', 'block');
5530
5710
  dropDownPopup.setProperties({ offsetX: -1 * dropDownPopup.element.offsetWidth });
@@ -5580,7 +5760,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5580
5760
  break;
5581
5761
  }
5582
5762
  var groupEle = tabContent.querySelector('#' + collection.id);
5583
- if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) || (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
5763
+ if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
5764
+ (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
5584
5765
  this.updatePopupItems(item, itemContainer, group.enableGroupOverflow, false);
5585
5766
  }
5586
5767
  groupEle.append(itemContainer);
@@ -5625,7 +5806,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5625
5806
  }
5626
5807
  if (overflowDDB) {
5627
5808
  if (group.enableGroupOverflow) {
5628
- if (overflowtarget.childElementCount === 0 || (overflowtarget.childElementCount === 1 && this.isHeaderVisible(overflowtarget, group.id))) {
5809
+ if (overflowtarget.childElementCount === 0 ||
5810
+ (overflowtarget.childElementCount === 1 && this.isHeaderVisible(overflowtarget, group.id))) {
5629
5811
  this.removeOverflowButton(overflowDDB);
5630
5812
  }
5631
5813
  }
@@ -5738,8 +5920,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5738
5920
  overflowBtnTarget.classList.add('e-hide-group');
5739
5921
  }
5740
5922
  }
5741
- isResize ? overflowBtnTarget.insertBefore(itemEle, overflowBtnTarget.querySelector('.' + RIBBON_ITEM))
5742
- : overflowBtnTarget.append(itemEle);
5923
+ if (isResize) {
5924
+ overflowBtnTarget.insertBefore(itemEle, overflowBtnTarget.querySelector('.' + RIBBON_ITEM));
5925
+ }
5926
+ else {
5927
+ overflowBtnTarget.append(itemEle);
5928
+ }
5743
5929
  }
5744
5930
  else {
5745
5931
  if (!this.overflowDDB) {
@@ -5751,7 +5937,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5751
5937
  else {
5752
5938
  this.overflowDDB.element.classList.remove(HIDE_CSS);
5753
5939
  var overflowEle = this.overflowDDB.target;
5754
- var ofTabContainer = overflowEle.querySelector('#' + this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
5940
+ var ofTabContainer = overflowEle.querySelector('#' +
5941
+ this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
5755
5942
  if (ofTabContainer) {
5756
5943
  var ofGroupContainer = overflowEle.querySelector('#' + groupId + CONTAINER_ID);
5757
5944
  if (!ofGroupContainer) {
@@ -5769,7 +5956,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5769
5956
  }
5770
5957
  ofTabContainer.append(ofGroupContainer);
5771
5958
  }
5772
- isResize ? ofGroupContainer.insertBefore(itemEle, ofGroupContainer.querySelector('.' + RIBBON_ITEM)) : ofGroupContainer.append(itemEle);
5959
+ if (isResize) {
5960
+ ofGroupContainer.insertBefore(itemEle, ofGroupContainer.querySelector('.' + RIBBON_ITEM));
5961
+ }
5962
+ else {
5963
+ ofGroupContainer.append(itemEle);
5964
+ }
5773
5965
  }
5774
5966
  else {
5775
5967
  this.createOfTabContainer(groupId, groupHeader, itemEle, tabIndex);
@@ -5809,7 +6001,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5809
6001
  break;
5810
6002
  case 'Gallery':
5811
6003
  if (this.activeLayout === 'Simplified') {
5812
- this.ribbonGalleryModule.addOverFlowEvents(item, itemEle, overflowButton);
6004
+ this.ribbonGalleryModule.addOverFlowEvents(item, itemEle);
5813
6005
  }
5814
6006
  break;
5815
6007
  case 'GroupButton':
@@ -5827,7 +6019,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5827
6019
  var overflowtarget = this.overflowDDB.target;
5828
6020
  overflowtarget.append(ofTabContainer);
5829
6021
  var itemProp = getGroup(this.tabs, groupId);
5830
- var ofGroupContainer = itemProp.group.overflowHeader ? this.createGroupContainer(groupId, itemProp.group.overflowHeader) : this.createGroupContainer(groupId, groupHeader);
6022
+ var ofGroupContainer = itemProp.group.overflowHeader ?
6023
+ this.createGroupContainer(groupId, itemProp.group.overflowHeader) : this.createGroupContainer(groupId, groupHeader);
5831
6024
  ofGroupContainer.append(itemEle);
5832
6025
  ofTabContainer.append(ofGroupContainer);
5833
6026
  if (tabIndex === this.selectedTab) {
@@ -6185,7 +6378,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6185
6378
  }
6186
6379
  var item = collection.items[parseInt(l.toString(), 10)];
6187
6380
  if (canReduceItem(item)) {
6188
- item.type !== RibbonItemType.GroupButton ? setWidth(item.id) : setWidth(item.id + RIBBON_GROUP_BUTTON_ID);
6381
+ if (item.type !== RibbonItemType.GroupButton) {
6382
+ setWidth(item.id);
6383
+ }
6384
+ else {
6385
+ setWidth(item.id + RIBBON_GROUP_BUTTON_ID);
6386
+ }
6189
6387
  reduceItemsToSmall(k, l, l);
6190
6388
  if (!shouldSkip && (tabContent.offsetWidth > activeContent.offsetWidth)) {
6191
6389
  return true;
@@ -6438,7 +6636,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6438
6636
  };
6439
6637
  Ribbon.prototype.handleContentSize = function (itemEle, isRemoveOverflow) {
6440
6638
  var itemContainer = itemEle.closest('.' + RIBBON_GROUP_CONTENT);
6441
- (isRemoveOverflow ? (itemContainer.classList.add(RIBBON_CONTENT_HEIGHT)) : (itemContainer.classList.remove(RIBBON_CONTENT_HEIGHT)));
6639
+ if (isRemoveOverflow) {
6640
+ itemContainer.classList.add(RIBBON_CONTENT_HEIGHT);
6641
+ }
6642
+ else {
6643
+ itemContainer.classList.remove(RIBBON_CONTENT_HEIGHT);
6644
+ }
6442
6645
  };
6443
6646
  Ribbon.prototype.setItemSize = function (itemEle, item) {
6444
6647
  if (itemEle) {
@@ -6647,7 +6850,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6647
6850
  var previousIndex = getIndex(this.tabs, (function (tab) { return (tab.id === previousTabId); }));
6648
6851
  nextIndex = nextIndex === -1 ? this.selectedTab : nextIndex;
6649
6852
  var eventArgs = {
6650
- cancel: e.cancel, isInteracted: e.isInteracted, previousIndex: previousIndex, selectedIndex: nextIndex, isContextual: isContextual
6853
+ cancel: e.cancel, isInteracted: e.isInteracted, previousIndex: previousIndex,
6854
+ selectedIndex: nextIndex, isContextual: isContextual
6651
6855
  };
6652
6856
  this.trigger('tabSelecting', eventArgs, function (args) {
6653
6857
  if (args.cancel) {
@@ -6705,9 +6909,10 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6705
6909
  this.element.classList.add(RIBBON_SIMPLIFIED_MODE);
6706
6910
  }
6707
6911
  var activeContent = this.tabObj.element.querySelector('#' + this.tabs[this.selectedTab].id + CONTENT_ID);
6912
+ if (this.ribbonGalleryModule) {
6913
+ this.ribbonGalleryModule.checkAvailableHeight(activeContent);
6914
+ }
6708
6915
  this.checkOverflow(this.selectedTab, activeContent);
6709
- if (this.activeLayout === 'Classic' && this.ribbonGalleryModule)
6710
- this.ribbonGalleryModule.checkAvailableHeight(this.selectedTab, activeContent);
6711
6916
  };
6712
6917
  Ribbon.prototype.addOverflowButton = function (btnId, isGroupOF) {
6713
6918
  var _this = this;
@@ -6765,7 +6970,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6765
6970
  items = currentList.getElementsByClassName('e-ribbon-item');
6766
6971
  }
6767
6972
  var control = items[(!this.itemIndex || this.itemIndex < 0) ? 0 : this.itemIndex].querySelector('.e-control');
6768
- var comboBoxEle = control && control.classList.contains('e-combobox') ? items[(!this.itemIndex || this.itemIndex < 0) ? 0 : this.itemIndex].querySelector('.e-combobox') : null;
6973
+ var comboBoxEle = control && control.classList.contains('e-combobox') ?
6974
+ items[(!this.itemIndex || this.itemIndex < 0) ? 0 : this.itemIndex].querySelector('.e-combobox') : null;
6769
6975
  var ribbonItem;
6770
6976
  var templateEle;
6771
6977
  if (comboBoxEle === null || (e.key === 'Tab') || this.itemIndex < 0) {
@@ -6822,7 +7028,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6822
7028
  target.setAttribute('index', this.itemIndex.toString());
6823
7029
  }
6824
7030
  var currentItemIndex = parseInt(target.getAttribute('index'), 10);
6825
- var itemType = "";
7031
+ var itemType = '';
6826
7032
  var controlItem = items[parseInt(currentItemIndex.toString(), 10)] ? items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control') : null;
6827
7033
  if (controlItem) {
6828
7034
  itemType = controlItem.getAttribute('data-control');
@@ -6852,12 +7058,20 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6852
7058
  }
6853
7059
  if (((itemType === 'SplitButton') && (e.key === 'ArrowRight' || e.key === 'ArrowLeft'))) {
6854
7060
  if (e.key === 'ArrowRight') {
6855
- this.enableRtl ? items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control').focus() :
7061
+ if (this.enableRtl) {
7062
+ items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control').focus();
7063
+ }
7064
+ else {
6856
7065
  items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-dropdown-btn').focus();
7066
+ }
6857
7067
  }
6858
7068
  if (e.key === 'ArrowLeft') {
6859
- this.enableRtl ? items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-dropdown-btn').focus() :
7069
+ if (this.enableRtl) {
7070
+ items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-dropdown-btn').focus();
7071
+ }
7072
+ else {
6860
7073
  items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control').focus();
7074
+ }
6861
7075
  }
6862
7076
  }
6863
7077
  if (e.key === 'Enter') {
@@ -6968,7 +7182,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6968
7182
  Ribbon.prototype.reRenderTabs = function (tabs) {
6969
7183
  this.destroyScroll();
6970
7184
  this.checkID(this.tabs, 'tab', this.element.id);
6971
- for (var key in tabs) {
7185
+ for (var _i = 0, _a = Object.keys(tabs); _i < _a.length; _i++) {
7186
+ var key = _a[_i];
6972
7187
  var index = parseInt(key, 10);
6973
7188
  var tab = tabs[parseInt(index.toString(), 10)];
6974
7189
  var isNewTab = false;
@@ -7013,13 +7228,13 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7013
7228
  }
7014
7229
  // Check whether group is passed by the user, and if it is, then remove the old values.
7015
7230
  if (tab.groups) {
7016
- for (var _i = 0, groups_1 = groups; _i < groups_1.length; _i++) {
7017
- var group = groups_1[_i];
7231
+ for (var _b = 0, groups_1 = groups; _b < groups_1.length; _b++) {
7232
+ var group = groups_1[_b];
7018
7233
  var dropdownElement = group.isCollapsed ? contentEle.querySelector('#' + group.id + OVERFLOW_ID + DROPDOWN_ID) : null;
7019
- for (var _a = 0, _b = group.collections; _a < _b.length; _a++) {
7020
- var collection = _b[_a];
7021
- for (var _c = 0, _d = collection.items; _c < _d.length; _c++) {
7022
- var item = _d[_c];
7234
+ for (var _c = 0, _d = group.collections; _c < _d.length; _c++) {
7235
+ var collection = _d[_c];
7236
+ for (var _e = 0, _f = collection.items; _e < _f.length; _e++) {
7237
+ var item = _f[_e];
7023
7238
  var ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) : contentEle.querySelector('#' + item.id);
7024
7239
  if (ele) {
7025
7240
  this.destroyFunction(item, ele);
@@ -7117,7 +7332,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7117
7332
  itemEle = groupContainer.querySelector('#' + item.id + CONTAINER_ID);
7118
7333
  if (item.displayOptions === (DisplayMode.Classic | DisplayMode.Overflow)) {
7119
7334
  this.createOverflowPopup(item, tabIndex, group.enableGroupOverflow, group.id, group.header, itemEle, groupContainer);
7120
- if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) || (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
7335
+ if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
7336
+ (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
7121
7337
  this.updatePopupItems(item, itemEle, group.enableGroupOverflow, true);
7122
7338
  }
7123
7339
  }
@@ -7216,7 +7432,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7216
7432
  var itemEle = groupContainer.querySelector('#' + item.id + CONTAINER_ID);
7217
7433
  if (!itemEle && overflowtarget) {
7218
7434
  itemEle = overflowtarget.querySelector('#' + item.id + CONTAINER_ID);
7219
- if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) || (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
7435
+ if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
7436
+ (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
7220
7437
  this.updatePopupItems(item, itemEle, group.enableGroupOverflow, false);
7221
7438
  }
7222
7439
  this.removeOverflowEvent(item, itemEle);
@@ -7241,7 +7458,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7241
7458
  }
7242
7459
  }
7243
7460
  if (group.enableGroupOverflow && overflowDDB) {
7244
- if (overflowtarget.childElementCount === 0 || (overflowtarget.childElementCount === 1 && this.isHeaderVisible(overflowtarget, group.id))) {
7461
+ if (overflowtarget.childElementCount === 0 ||
7462
+ (overflowtarget.childElementCount === 1 && this.isHeaderVisible(overflowtarget, group.id))) {
7245
7463
  this.removeOverflowButton(overflowDDB);
7246
7464
  }
7247
7465
  }
@@ -7354,7 +7572,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7354
7572
  // eslint-disable-next-line
7355
7573
  var groupIndex = initialProps[key].indexOf(groupEle.id);
7356
7574
  if (groupIndex !== -1) {
7357
- key === 'hiddenGroups' ? groupEle.classList.add('e-hidden') : groupEle.classList.add('e-disabled');
7575
+ if (key === 'hiddenGroups') {
7576
+ groupEle.classList.add('e-hidden');
7577
+ }
7578
+ else {
7579
+ groupEle.classList.add('e-disabled');
7580
+ }
7358
7581
  }
7359
7582
  };
7360
7583
  Ribbon.prototype.validateItemSize = function () {
@@ -7479,7 +7702,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7479
7702
  }
7480
7703
  if (item.type === RibbonItemType.GroupButton) {
7481
7704
  for (var i_7 = 0; i_7 < item.groupButtonSettings.items.length; i_7++) {
7482
- if (this.keyTipElements[parseInt(tabIndex.toString(), 10)] && item.groupButtonSettings.items[parseInt(i_7.toString(), 10)].keyTip) {
7705
+ if (this.keyTipElements[parseInt(tabIndex.toString(), 10)] &&
7706
+ item.groupButtonSettings.items[parseInt(i_7.toString(), 10)].keyTip) {
7483
7707
  this.addKeyTip(tabIndex, item.groupButtonSettings.items[parseInt(i_7.toString(), 10)].keyTip, item.id + (RIBBON_GROUP_BUTTON_ID + i_7), 'item');
7484
7708
  }
7485
7709
  }
@@ -7516,7 +7740,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7516
7740
  this.createRibbonItem(item, itemEle);
7517
7741
  if ((this.activeLayout === 'Simplified') && ((item.displayOptions === DisplayMode.Overflow) || (item.displayOptions === (DisplayMode.Classic | DisplayMode.Overflow)))) {
7518
7742
  this.createOverflowPopup(item, tabIndex, isGroupOF, groupId, groupHeader, itemEle, groupContainer);
7519
- if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) || (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
7743
+ if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
7744
+ (item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
7520
7745
  this.updatePopupItems(item, itemEle, isGroupOF, true);
7521
7746
  }
7522
7747
  }
@@ -7573,7 +7798,11 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7573
7798
  for (var i = 0; i < list.length; i++) {
7574
7799
  var listitem = list[parseInt(i.toString(), 10)];
7575
7800
  if (!listitem.id) {
7576
- listitem.setProperties({ id: initId + key + (this.idIndex++) }, true);
7801
+ var htmlAttrID = void 0;
7802
+ if (type === 'item') {
7803
+ htmlAttrID = this.hasHtmlAtrrID(listitem);
7804
+ }
7805
+ listitem.setProperties({ id: htmlAttrID ? htmlAttrID : initId + key + (this.idIndex++) }, true);
7577
7806
  }
7578
7807
  switch (type) {
7579
7808
  case 'tab':
@@ -7585,12 +7814,32 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7585
7814
  case 'collection':
7586
7815
  listitem.setProperties({ items: this.checkID(listitem.items, 'item', listitem.id) }, true);
7587
7816
  break;
7588
- default:
7589
- break;
7590
7817
  }
7591
7818
  }
7592
7819
  return list;
7593
7820
  };
7821
+ Ribbon.prototype.hasHtmlAtrrID = function (listItem) {
7822
+ var id = '';
7823
+ if (listItem.buttonSettings.htmlAttributes.id) {
7824
+ id = listItem.buttonSettings.htmlAttributes.id;
7825
+ }
7826
+ else if (listItem.checkBoxSettings.htmlAttributes.id) {
7827
+ id = listItem.checkBoxSettings.htmlAttributes.id;
7828
+ }
7829
+ else if (listItem.colorPickerSettings.htmlAttributes.id) {
7830
+ id = listItem.colorPickerSettings.htmlAttributes.id;
7831
+ }
7832
+ else if (listItem.comboBoxSettings.htmlAttributes.id) {
7833
+ id = listItem.comboBoxSettings.htmlAttributes.id;
7834
+ }
7835
+ else if (listItem.dropDownSettings.htmlAttributes.id) {
7836
+ id = listItem.dropDownSettings.htmlAttributes.id;
7837
+ }
7838
+ else if (listItem.splitButtonSettings.htmlAttributes.id) {
7839
+ id = listItem.splitButtonSettings.htmlAttributes.id;
7840
+ }
7841
+ return id;
7842
+ };
7594
7843
  Ribbon.prototype.updateCommonProperty = function (commonProp) {
7595
7844
  this.tabObj.setProperties(commonProp);
7596
7845
  if (this.ribbonFileMenuModule) {
@@ -7710,8 +7959,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7710
7959
  ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) :
7711
7960
  contentEle.querySelector('#' + item.id);
7712
7961
  if (item.type === RibbonItemType.GroupButton) {
7713
- ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id + RIBBON_GROUP_BUTTON_ID) :
7714
- contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
7962
+ ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
7963
+ RIBBON_GROUP_BUTTON_ID) : contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
7715
7964
  }
7716
7965
  if (item.type === RibbonItemType.Gallery) {
7717
7966
  ele = contentEle.querySelector('#' + item.id + CONTAINER_ID);
@@ -7878,6 +8127,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7878
8127
  * Shows a specific tab in the ribbon.
7879
8128
  *
7880
8129
  * @param {string} tabId - The ID of the tab to be shown.
8130
+ * @param {boolean} isContextual - The boolean if the rendering is contextual.
7881
8131
  * @returns {void}
7882
8132
  */
7883
8133
  Ribbon.prototype.showTab = function (tabId, isContextual) {
@@ -7888,6 +8138,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7888
8138
  * Hides a specific tab in the ribbon.
7889
8139
  *
7890
8140
  * @param {string} tabId - The ID of the tab to be hidden.
8141
+ * @param {boolean} isContextual - The boolean if the rendering is contextual.
7891
8142
  * @returns {void}
7892
8143
  */
7893
8144
  Ribbon.prototype.hideTab = function (tabId, isContextual) {
@@ -7913,7 +8164,9 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7913
8164
  if (contextualTab_1) {
7914
8165
  var isTabHidden = true;
7915
8166
  var _loop_5 = function (i) {
7916
- var index_1 = getIndex(this_5.tabs, function (e) { return e.id === contextualTab_1.tabs[parseInt(i.toString(), 10)].id; });
8167
+ var index_1 = getIndex(this_5.tabs, function (e) {
8168
+ return e.id === contextualTab_1.tabs[parseInt(i.toString(), 10)].id;
8169
+ });
7917
8170
  if (index_1 !== -1) {
7918
8171
  var toolbarEle = tabEle.querySelectorAll('.e-toolbar-item')[parseInt(index_1.toString(), 10)];
7919
8172
  if (!(toolbarEle.classList.contains('e-hidden'))) {
@@ -8002,8 +8255,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8002
8255
  var item = _d[_c];
8003
8256
  var ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) : contentEle.querySelector('#' + item.id);
8004
8257
  if (item.type === RibbonItemType.GroupButton && this.activeLayout === 'Classic') {
8005
- ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id + RIBBON_GROUP_BUTTON_ID) :
8006
- contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
8258
+ ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
8259
+ RIBBON_GROUP_BUTTON_ID) : contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
8007
8260
  }
8008
8261
  if (ele) {
8009
8262
  this.destroyFunction(item, ele);
@@ -8101,7 +8354,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8101
8354
  }
8102
8355
  if (this.activeLayout === RibbonLayout.Simplified) {
8103
8356
  if (itemProp.group.enableGroupOverflow) {
8104
- if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount === 1 && this.isHeaderVisible(dropdown.target, itemProp.group.id))) {
8357
+ if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount
8358
+ === 1 && this.isHeaderVisible(dropdown.target, itemProp.group.id))) {
8105
8359
  this.removeOverflowButton(dropdown);
8106
8360
  }
8107
8361
  }
@@ -8174,13 +8428,23 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8174
8428
  overflowtarget = overflowDDB.target;
8175
8429
  }
8176
8430
  if (overflowtarget) {
8177
- isHidden ? overflowtarget.classList.add('e-hidden') : overflowtarget.classList.remove('e-hidden');
8431
+ if (isHidden) {
8432
+ overflowtarget.classList.add('e-hidden');
8433
+ }
8434
+ else {
8435
+ overflowtarget.classList.remove('e-hidden');
8436
+ }
8178
8437
  }
8179
8438
  }
8180
8439
  else if (ofTabContainer) {
8181
8440
  var grpContainer = ofTabContainer.querySelector('#' + groupID + CONTAINER_ID);
8182
8441
  if (grpContainer) {
8183
- isHidden ? grpContainer.classList.add('e-hidden') : grpContainer.classList.remove('e-hidden');
8442
+ if (isHidden) {
8443
+ grpContainer.classList.add('e-hidden');
8444
+ }
8445
+ else {
8446
+ grpContainer.classList.remove('e-hidden');
8447
+ }
8184
8448
  }
8185
8449
  }
8186
8450
  }
@@ -8218,38 +8482,35 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8218
8482
  hiddenProps = this.hiddenElements[parseInt(tabIndex.toString(), 10)];
8219
8483
  }
8220
8484
  if (hiddenProps) {
8221
- /* eslint-disable */
8222
- if (!hiddenProps[key]) {
8223
- hiddenProps[key] = [];
8485
+ if (!hiddenProps["" + key]) {
8486
+ hiddenProps["" + key] = [];
8224
8487
  }
8225
- if (hiddenProps[key].length) {
8226
- var index = hiddenProps[key].indexOf(id);
8488
+ if (hiddenProps["" + key].length) {
8489
+ var index = hiddenProps["" + key].indexOf(id);
8227
8490
  if (index === -1) {
8228
- hiddenProps[key].push(id);
8491
+ hiddenProps["" + key].push(id);
8229
8492
  }
8230
8493
  }
8231
8494
  else {
8232
- hiddenProps[key].push(id);
8495
+ hiddenProps["" + key].push(id);
8233
8496
  }
8234
- /* eslint-enable */
8235
8497
  }
8236
8498
  }
8237
8499
  };
8238
8500
  Ribbon.prototype.updateItemsSimplifiedWidth = function (tabIndex, key) {
8239
8501
  var hiddenProps = this.hiddenElements[parseInt(tabIndex.toString(), 10)];
8240
- /* eslint-disable */
8241
- if (hiddenProps && hiddenProps[key] && hiddenProps[key].length) {
8502
+ if (hiddenProps && hiddenProps["" + key] && hiddenProps["" + key].length) {
8242
8503
  var _loop_6 = function (i) {
8243
- var contentEle = this_6.tabObj.items[tabIndex].content;
8504
+ var contentEle = this_6.tabObj.items[parseInt(tabIndex.toString(), 10)].content;
8244
8505
  var hiddenEle;
8245
8506
  var groupEle = void 0;
8246
8507
  var isGroupHidden = false;
8247
8508
  var widthDifference = 0;
8248
8509
  if (key === 'hideGroup' || key === 'showGroup') {
8249
- hiddenEle = contentEle.querySelector('#' + hiddenProps[key][i]);
8510
+ hiddenEle = contentEle.querySelector('#' + hiddenProps["" + key][parseInt(i.toString(), 10)]);
8250
8511
  }
8251
8512
  else {
8252
- hiddenEle = contentEle.querySelector('#' + hiddenProps[key][i] + CONTAINER_ID);
8513
+ hiddenEle = contentEle.querySelector('#' + hiddenProps["" + key][parseInt(i.toString(), 10)] + CONTAINER_ID);
8253
8514
  }
8254
8515
  if (hiddenEle) {
8255
8516
  if (key === 'hideGroup' || key === 'hideItem') {
@@ -8309,15 +8570,15 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8309
8570
  groupEle.classList.add('e-ribbon-emptyCollection');
8310
8571
  }
8311
8572
  }
8312
- var index = hiddenProps[key].indexOf(hiddenProps[key][i]);
8573
+ var index = hiddenProps["" + key].indexOf(hiddenProps["" + key][parseInt(i.toString(), 10)]);
8313
8574
  if (index !== -1) {
8314
- hiddenProps[key].splice(index, 1);
8575
+ hiddenProps["" + key].splice(index, 1);
8315
8576
  i--;
8316
8577
  }
8317
8578
  out_i_1 = i;
8318
8579
  };
8319
8580
  var this_6 = this, out_i_1;
8320
- for (var i = 0; i < hiddenProps[key].length; i++) {
8581
+ for (var i = 0; i < hiddenProps["" + key].length; i++) {
8321
8582
  _loop_6(i);
8322
8583
  i = out_i_1;
8323
8584
  }
@@ -8451,7 +8712,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8451
8712
  var contentEle = this.tabObj.items[itemProp.tabIndex].content;
8452
8713
  var groupEle = contentEle.querySelector('#' + groupID);
8453
8714
  if (groupEle) {
8454
- isDisabled ? groupEle.classList.add('e-disabled') : groupEle.classList.remove('e-disabled');
8715
+ if (isDisabled) {
8716
+ groupEle.classList.add('e-disabled');
8717
+ }
8718
+ else {
8719
+ groupEle.classList.remove('e-disabled');
8720
+ }
8455
8721
  }
8456
8722
  else {
8457
8723
  this.updateInitialProps(itemProp.tabIndex, groupID, 'disabledGroups', isDisabled);
@@ -8466,13 +8732,23 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8466
8732
  overflowtarget = overflowDDB.target;
8467
8733
  }
8468
8734
  if (overflowtarget) {
8469
- isDisabled ? overflowtarget.classList.add('e-disabled') : overflowtarget.classList.remove('e-disabled');
8735
+ if (isDisabled) {
8736
+ overflowtarget.classList.add('e-disabled');
8737
+ }
8738
+ else {
8739
+ overflowtarget.classList.remove('e-disabled');
8740
+ }
8470
8741
  }
8471
8742
  }
8472
8743
  else if (ofTabContainer) {
8473
8744
  var grpContainer = ofTabContainer.querySelector('#' + groupID + CONTAINER_ID);
8474
8745
  if (grpContainer) {
8475
- isDisabled ? grpContainer.classList.add('e-disabled') : grpContainer.classList.remove('e-disabled');
8746
+ if (isDisabled) {
8747
+ grpContainer.classList.add('e-disabled');
8748
+ }
8749
+ else {
8750
+ grpContainer.classList.remove('e-disabled');
8751
+ }
8476
8752
  }
8477
8753
  }
8478
8754
  }
@@ -8698,19 +8974,22 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8698
8974
  initialProps = this.initialPropsData[parseInt(tabIndex.toString(), 10)];
8699
8975
  }
8700
8976
  if (initialProps) {
8701
- /* eslint-disable */
8702
- if (!initialProps[key])
8703
- initialProps[key] = [];
8704
- var itemIndex = initialProps[key].indexOf(id);
8977
+ if (!initialProps["" + key]) {
8978
+ initialProps["" + key] = [];
8979
+ }
8980
+ var itemIndex = initialProps["" + key].indexOf(id);
8705
8981
  if (isInsert) {
8706
- if (itemIndex === -1)
8707
- initialProps[key].push(id);
8982
+ if (itemIndex === -1) {
8983
+ initialProps["" + key].push(id);
8984
+ }
8708
8985
  }
8709
8986
  else {
8710
- if (itemIndex !== -1)
8711
- initialProps[key].splice(itemIndex, 1);
8712
- initialProps[key].length === 0 && delete initialProps[key];
8713
- /* eslint-enable */
8987
+ if (itemIndex !== -1) {
8988
+ initialProps["" + key].splice(itemIndex, 1);
8989
+ }
8990
+ if (initialProps["" + key].length === 0) {
8991
+ delete initialProps["" + key];
8992
+ }
8714
8993
  if (Object.keys(initialProps).length === 0) {
8715
8994
  delete this.initialPropsData[parseInt(tabIndex.toString(), 10)];
8716
8995
  }
@@ -8771,7 +9050,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8771
9050
  overflowtarget = overflowDDB.target;
8772
9051
  }
8773
9052
  if (overflowtarget) {
8774
- isHidden ? overflowtarget.classList.add('e-hide-group') : overflowtarget.classList.remove('e-hide-group');
9053
+ if (isHidden) {
9054
+ overflowtarget.classList.add('e-hide-group');
9055
+ }
9056
+ else {
9057
+ overflowtarget.classList.remove('e-hide-group');
9058
+ }
8775
9059
  }
8776
9060
  }
8777
9061
  else {
@@ -8781,7 +9065,12 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8781
9065
  if (ofTabContainer) {
8782
9066
  var grpContainer = ofTabContainer.querySelector('#' + groupID + CONTAINER_ID);
8783
9067
  if (grpContainer) {
8784
- isHidden ? grpContainer.classList.add('e-hide-group') : grpContainer.classList.remove('e-hide-group');
9068
+ if (isHidden) {
9069
+ grpContainer.classList.add('e-hide-group');
9070
+ }
9071
+ else {
9072
+ grpContainer.classList.remove('e-hide-group');
9073
+ }
8785
9074
  }
8786
9075
  }
8787
9076
  }
@@ -8821,8 +9110,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8821
9110
  var item = _d[_c];
8822
9111
  var ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) : contentEle.querySelector('#' + item.id);
8823
9112
  if (item.type === RibbonItemType.GroupButton && this.activeLayout === 'Classic') {
8824
- ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id + RIBBON_GROUP_BUTTON_ID) :
8825
- contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
9113
+ ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
9114
+ RIBBON_GROUP_BUTTON_ID) : contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
8826
9115
  }
8827
9116
  if (ele) {
8828
9117
  this.destroyFunction(item, ele);
@@ -8928,7 +9217,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
8928
9217
  }
8929
9218
  if (this.activeLayout === RibbonLayout.Simplified) {
8930
9219
  if (itemProp.group.enableGroupOverflow) {
8931
- if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount === 1 && this.isHeaderVisible(dropdown.target, itemProp.group.id))) {
9220
+ if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount
9221
+ === 1 && this.isHeaderVisible(dropdown.target, itemProp.group.id))) {
8932
9222
  this.removeOverflowButton(dropdown);
8933
9223
  }
8934
9224
  }
@@ -9226,7 +9516,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9226
9516
  * Gets the Ribbon item model associated with the specified item ID.
9227
9517
  *
9228
9518
  * @param {string} itemId - The unique ID of the Ribbon item.
9229
- * @returns {RibbonItemModel}
9519
+ * @returns {RibbonItemModel} - Returns the Ribbon item model.
9230
9520
  */
9231
9521
  Ribbon.prototype.getItem = function (itemId) {
9232
9522
  return getItem(this.tabs, itemId).item;
@@ -9248,7 +9538,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9248
9538
  if (ele) {
9249
9539
  var itemEle = closest(ele, '.e-ribbon-item');
9250
9540
  var moduleName = this.getItemModuleName(itemProp.item);
9251
- isUpdated = isDisabled ? !itemEle.classList.contains(DISABLED_CSS) : itemEle.classList.contains(DISABLED_CSS);
9541
+ isUpdated = isDisabled ? !itemEle.classList.contains(DISABLED_CSS) :
9542
+ itemEle.classList.contains(DISABLED_CSS);
9252
9543
  if (moduleName !== 'template') {
9253
9544
  if (isUpdated) {
9254
9545
  if (moduleName === 'group-btn' && this.activeLayout === 'Simplified') {
@@ -9389,13 +9680,14 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9389
9680
  }
9390
9681
  }
9391
9682
  break;
9392
- case 'selectedTab':
9683
+ case 'selectedTab': {
9393
9684
  var tabEle = this.tabObj.element;
9394
9685
  var toolbarItem = tabEle.querySelectorAll('.e-toolbar-item')[parseInt(newProp.selectedTab.toString(), 10)];
9395
9686
  if (!(toolbarItem.classList.contains('e-hidden') || toolbarItem.classList.contains('e-disable'))) {
9396
9687
  this.tabObj.setProperties({ selectedItem: newProp.selectedTab });
9397
9688
  }
9398
9689
  break;
9690
+ }
9399
9691
  case 'tabAnimation':
9400
9692
  this.tabObj.setProperties({ animation: newProp.tabAnimation });
9401
9693
  break;
@@ -9413,21 +9705,23 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9413
9705
  this.element.style.width = formatUnit(newProp.width);
9414
9706
  this.refreshLayout();
9415
9707
  break;
9416
- case 'fileMenu':
9708
+ case 'fileMenu': {
9417
9709
  if (this.ribbonFileMenuModule) {
9418
9710
  this.ribbonFileMenuModule.updateFileMenu(this.fileMenu);
9419
9711
  }
9420
9712
  var toolbarEle = this.tabObj['tbObj'];
9421
9713
  toolbarEle.refreshOverflow();
9422
9714
  break;
9423
- case 'backStageMenu':
9715
+ }
9716
+ case 'backStageMenu': {
9424
9717
  if (this.ribbonBackstageModule) {
9425
9718
  this.ribbonBackstageModule.updateBackStageMenu(this.backStageMenu);
9426
9719
  }
9427
9720
  var toolbarElement = this.tabObj['tbObj'];
9428
9721
  toolbarElement.refreshOverflow();
9429
9722
  break;
9430
- case 'helpPaneTemplate':
9723
+ }
9724
+ case 'helpPaneTemplate': {
9431
9725
  if (this.ribbonTempEle) {
9432
9726
  remove(this.ribbonTempEle);
9433
9727
  this.ribbonTempEle = null;
@@ -9439,95 +9733,97 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9439
9733
  var toolbar_1 = this.tabObj['tbObj'];
9440
9734
  toolbar_1.refreshOverflow();
9441
9735
  break;
9736
+ }
9442
9737
  case 'hideLayoutSwitcher':
9443
- this.hideLayoutSwitcher ? this.removeExpandCollapse() : this.addExpandCollapse();
9738
+ if (this.hideLayoutSwitcher) {
9739
+ this.removeExpandCollapse();
9740
+ }
9741
+ else {
9742
+ this.addExpandCollapse();
9743
+ }
9444
9744
  break;
9445
9745
  }
9446
9746
  }
9447
9747
  };
9448
9748
  var Ribbon_1;
9449
- __decorate([
9749
+ __decorate$l([
9450
9750
  Property('Classic')
9451
9751
  ], Ribbon.prototype, "activeLayout", void 0);
9452
- __decorate([
9752
+ __decorate$l([
9453
9753
  Property('')
9454
9754
  ], Ribbon.prototype, "cssClass", void 0);
9455
- __decorate([
9755
+ __decorate$l([
9456
9756
  Property(false)
9457
9757
  ], Ribbon.prototype, "enableKeyTips", void 0);
9458
- __decorate([
9758
+ __decorate$l([
9459
9759
  Property('')
9460
9760
  ], Ribbon.prototype, "layoutSwitcherKeyTip", void 0);
9461
- __decorate([
9761
+ __decorate$l([
9462
9762
  Complex({}, FileMenuSettings)
9463
9763
  ], Ribbon.prototype, "fileMenu", void 0);
9464
- __decorate([
9764
+ __decorate$l([
9465
9765
  Complex({}, BackStageMenu)
9466
9766
  ], Ribbon.prototype, "backStageMenu", void 0);
9467
- __decorate([
9767
+ __decorate$l([
9468
9768
  Property('')
9469
9769
  ], Ribbon.prototype, "launcherIconCss", void 0);
9470
- __decorate([
9770
+ __decorate$l([
9471
9771
  Property(false)
9472
9772
  ], Ribbon.prototype, "isMinimized", void 0);
9473
- __decorate([
9773
+ __decorate$l([
9474
9774
  Property('en-us')
9475
9775
  ], Ribbon.prototype, "locale", void 0);
9476
- __decorate([
9776
+ __decorate$l([
9477
9777
  Property(0)
9478
9778
  ], Ribbon.prototype, "selectedTab", void 0);
9479
- __decorate([
9779
+ __decorate$l([
9480
9780
  Complex({}, TabAnimationSettings)
9481
9781
  ], Ribbon.prototype, "tabAnimation", void 0);
9482
- __decorate([
9782
+ __decorate$l([
9483
9783
  Collection([], RibbonTab)
9484
9784
  ], Ribbon.prototype, "tabs", void 0);
9485
- __decorate([
9785
+ __decorate$l([
9486
9786
  Collection([], RibbonContextualTabSettings)
9487
9787
  ], Ribbon.prototype, "contextualTabs", void 0);
9488
- __decorate([
9788
+ __decorate$l([
9489
9789
  Property('100%')
9490
9790
  ], Ribbon.prototype, "width", void 0);
9491
- __decorate([
9791
+ __decorate$l([
9492
9792
  Property('')
9493
9793
  ], Ribbon.prototype, "helpPaneTemplate", void 0);
9494
- __decorate([
9794
+ __decorate$l([
9495
9795
  Property(false)
9496
9796
  ], Ribbon.prototype, "hideLayoutSwitcher", void 0);
9497
- __decorate([
9797
+ __decorate$l([
9498
9798
  Event()
9499
9799
  ], Ribbon.prototype, "tabSelecting", void 0);
9500
- __decorate([
9800
+ __decorate$l([
9501
9801
  Event()
9502
9802
  ], Ribbon.prototype, "tabSelected", void 0);
9503
- __decorate([
9803
+ __decorate$l([
9504
9804
  Event()
9505
9805
  ], Ribbon.prototype, "ribbonExpanding", void 0);
9506
- __decorate([
9806
+ __decorate$l([
9507
9807
  Event()
9508
9808
  ], Ribbon.prototype, "ribbonCollapsing", void 0);
9509
- __decorate([
9809
+ __decorate$l([
9510
9810
  Event()
9511
9811
  ], Ribbon.prototype, "launcherIconClick", void 0);
9512
- __decorate([
9812
+ __decorate$l([
9513
9813
  Event()
9514
9814
  ], Ribbon.prototype, "created", void 0);
9515
- __decorate([
9815
+ __decorate$l([
9516
9816
  Event()
9517
9817
  ], Ribbon.prototype, "overflowPopupOpen", void 0);
9518
- __decorate([
9818
+ __decorate$l([
9519
9819
  Event()
9520
9820
  ], Ribbon.prototype, "overflowPopupClose", void 0);
9521
- Ribbon = Ribbon_1 = __decorate([
9821
+ Ribbon = Ribbon_1 = __decorate$l([
9522
9822
  NotifyPropertyChanges
9523
9823
  ], Ribbon);
9524
9824
  return Ribbon;
9525
9825
  }(Component));
9526
9826
 
9527
- /**
9528
- * Ribbon modules
9529
- */
9530
-
9531
9827
  /**
9532
9828
  * Defines the items of Ribbon.
9533
9829
  */
@@ -9862,7 +10158,7 @@ var RibbonFileMenu = /** @__PURE__ @class */ (function () {
9862
10158
  return RibbonFileMenu;
9863
10159
  }());
9864
10160
 
9865
- var __extends$22 = (undefined && undefined.__extends) || (function () {
10161
+ var __extends$m = (undefined && undefined.__extends) || (function () {
9866
10162
  var extendStatics = function (d, b) {
9867
10163
  extendStatics = Object.setPrototypeOf ||
9868
10164
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9879,16 +10175,16 @@ var __extends$22 = (undefined && undefined.__extends) || (function () {
9879
10175
  * Defines the items of Ribbon.
9880
10176
  */
9881
10177
  var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
9882
- __extends$22(RibbonBackstage, _super);
10178
+ __extends$m(RibbonBackstage, _super);
9883
10179
  function RibbonBackstage(parent) {
9884
10180
  var _this = _super.call(this) || this;
9885
10181
  _this.parent = parent;
9886
10182
  return _this;
9887
10183
  }
9888
10184
  /**
9889
- * @private
9890
- * @returns {void}
9891
- */
10185
+ * @private
10186
+ * @returns {void}
10187
+ */
9892
10188
  RibbonBackstage.prototype.render = function () {
9893
10189
  // render code
9894
10190
  };
@@ -9990,6 +10286,8 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
9990
10286
  if (firstMenuEle) {
9991
10287
  firstMenuEle.classList.add('e-selected');
9992
10288
  firstMenuEle.focus();
10289
+ _this.menuIndex = 0;
10290
+ _this.isCloseBtn = false;
9993
10291
  }
9994
10292
  _this.createBackStageContent(_this.menuCtrl.items[0].id, item.content);
9995
10293
  break;
@@ -10054,7 +10352,8 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
10054
10352
  });
10055
10353
  var targetEle;
10056
10354
  if (backStageOptions.target) {
10057
- targetEle = backStageOptions.target instanceof HTMLElement ? backStageOptions.target : document.querySelector(backStageOptions.target);
10355
+ targetEle = backStageOptions.target instanceof HTMLElement ? backStageOptions.target :
10356
+ document.querySelector(backStageOptions.target);
10058
10357
  targetEle.appendChild(this.popupHTMLElement);
10059
10358
  }
10060
10359
  else {
@@ -10069,10 +10368,47 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
10069
10368
  if (this.parent.enableRtl) {
10070
10369
  this.updatePopupPositionOnRtl(this.parent.enableRtl);
10071
10370
  }
10072
- this.popupHTMLElement.onkeydown = function (e) { if (e.code === 'Escape') {
10073
- _this.hideBackstage();
10074
- } };
10075
10371
  this.hideBackstage();
10372
+ EventHandler.add(this.popupHTMLElement, 'keyup', function (e) {
10373
+ if (e.code === 'Escape') {
10374
+ _this.hideBackstage();
10375
+ }
10376
+ _this.handleNavigation(e);
10377
+ }, this);
10378
+ };
10379
+ RibbonBackstage.prototype.handleNavigation = function (e) {
10380
+ var closeBtnEle = this.popupHTMLElement.querySelector('.e-ribbon-close-btn');
10381
+ var menuItems = this.popupHTMLElement.querySelectorAll('.e-menu-item');
10382
+ var arrowUp = e.key === 'ArrowUp';
10383
+ var arrowDown = e.key === 'ArrowDown';
10384
+ if (arrowUp || arrowDown) {
10385
+ if ((arrowUp && this.menuIndex > 0) || (arrowDown && this.menuIndex < menuItems.length - 1 && !this.isCloseBtn)) {
10386
+ this.menuIndex = arrowUp ? this.menuIndex - 1 : this.menuIndex + 1;
10387
+ }
10388
+ else {
10389
+ if (closeBtnEle && !this.isCloseBtn) {
10390
+ closeBtnEle.focus();
10391
+ this.isCloseBtn = true;
10392
+ }
10393
+ else {
10394
+ this.menuIndex = arrowUp ? menuItems.length - 1 : 0;
10395
+ this.isCloseBtn = false;
10396
+ }
10397
+ }
10398
+ for (var i = 0; i < menuItems.length; i++) {
10399
+ menuItems[parseInt(i.toString(), 10)].classList.remove('e-focused');
10400
+ }
10401
+ if (!this.isCloseBtn) {
10402
+ if (arrowUp && menuItems[this.menuIndex].classList.contains('e-separator')) {
10403
+ this.menuIndex--;
10404
+ }
10405
+ else if (arrowDown && menuItems[this.menuIndex].classList.contains('e-separator')) {
10406
+ this.menuIndex++;
10407
+ }
10408
+ menuItems[this.menuIndex].classList.add('e-focused');
10409
+ menuItems[this.menuIndex].focus();
10410
+ }
10411
+ }
10076
10412
  };
10077
10413
  RibbonBackstage.prototype.updatePopupPositionOnRtl = function (enableRtl) {
10078
10414
  var popupStyle = this.popupHTMLElement.style;
@@ -10227,11 +10563,13 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
10227
10563
  var item = menuOptions.items[parseInt(i.toString(), 10)];
10228
10564
  if (item.text === args.item.text) {
10229
10565
  this.contentItem = item;
10566
+ this.menuIndex = i;
10230
10567
  break;
10231
10568
  }
10232
10569
  }
10233
10570
  this.createBackStageContent(args.item.id, this.contentItem.content);
10234
- var eventArgs = { cancel: false, target: args.element, item: this.contentItem, isBackButton: this.isBackButtonClicked };
10571
+ var eventArgs = { cancel: false, target: args.element,
10572
+ item: this.contentItem, isBackButton: this.isBackButtonClicked };
10235
10573
  if (this.contentItem.backStageItemClick) {
10236
10574
  this.contentItem.backStageItemClick.call(this, eventArgs);
10237
10575
  }
@@ -10251,8 +10589,9 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
10251
10589
  this.backstageButton.setProperties(commonProp);
10252
10590
  if (this.popupEle) {
10253
10591
  this.popupEle.setProperties(commonProp);
10254
- if (this.popupHTMLElement)
10592
+ if (this.popupHTMLElement) {
10255
10593
  this.updatePopupPositionOnRtl(commonProp.enableRtl);
10594
+ }
10256
10595
  if (this.menuCtrl) {
10257
10596
  this.menuCtrl.setProperties(commonProp);
10258
10597
  if (this.closeBtn) {
@@ -10285,7 +10624,7 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
10285
10624
  this.popupEle.setProperties({
10286
10625
  height: backStageOptions.height,
10287
10626
  width: backStageOptions.width,
10288
- target: backStageOptions.target || this.parent.element,
10627
+ target: backStageOptions.target || this.parent.element
10289
10628
  });
10290
10629
  }
10291
10630
  if (backStageOptions.template) {
@@ -10394,10 +10733,20 @@ var RibbonBackstage = /** @__PURE__ @class */ (function (_super) {
10394
10733
  for (var i = 0; i < items.length; i++) {
10395
10734
  var item = items[parseInt(i.toString(), 10)];
10396
10735
  if (item.isFooter) {
10397
- isAfter ? this.footerMenuCtrl.insertAfter(items, target, isUniqueId) : this.footerMenuCtrl.insertBefore(items, target, isUniqueId);
10736
+ if (isAfter) {
10737
+ this.footerMenuCtrl.insertAfter(items, target, isUniqueId);
10738
+ }
10739
+ else {
10740
+ this.footerMenuCtrl.insertBefore(items, target, isUniqueId);
10741
+ }
10398
10742
  }
10399
10743
  else {
10400
- isAfter ? this.menuCtrl.insertAfter(items, target, isUniqueId) : this.menuCtrl.insertBefore(items, target, isUniqueId);
10744
+ if (isAfter) {
10745
+ this.menuCtrl.insertAfter(items, target, isUniqueId);
10746
+ }
10747
+ else {
10748
+ this.menuCtrl.insertBefore(items, target, isUniqueId);
10749
+ }
10401
10750
  }
10402
10751
  }
10403
10752
  var backstageItems = [].concat(this.menuCtrl.items, this.footerMenuCtrl.items);
@@ -10525,11 +10874,14 @@ var RibbonContextualTab = /** @__PURE__ @class */ (function () {
10525
10874
  if (newProp.tabs) {
10526
10875
  var _loop_1 = function (key) {
10527
10876
  var index = parseInt(key, 10);
10528
- var tab = this_1.parent.tabs.filter(function (e) { return e.id === contextualTab.tabs[parseInt(index.toString(), 10)].id; })[0];
10877
+ var tab = this_1.parent.tabs.filter(function (e) {
10878
+ return e.id === contextualTab.tabs[parseInt(index.toString(), 10)].id;
10879
+ })[0];
10529
10880
  this_1.parent.updateTab(tab);
10530
10881
  };
10531
10882
  var this_1 = this;
10532
- for (var key in newProp.tabs) {
10883
+ for (var _i = 0, _a = Object.keys(newProp.tabs); _i < _a.length; _i++) {
10884
+ var key = _a[_i];
10533
10885
  _loop_1(key);
10534
10886
  }
10535
10887
  }
@@ -10564,8 +10916,7 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10564
10916
  if (key === 'tab') {
10565
10917
  for (var i = 0; i < this.parent.tabs.length; i++) {
10566
10918
  if (this.parent.keyTipElements[parseInt(i.toString(), 10)]) {
10567
- // eslint-disable-next-line
10568
- keytipData = this.parent.keyTipElements[i][key];
10919
+ keytipData = this.parent.keyTipElements[parseInt(i.toString(), 10)]["" + key];
10569
10920
  this.createKeyTipElement((keytipData[0].id), keytipData[0].keyTip, 'tab', 'center', 'bottom', true);
10570
10921
  }
10571
10922
  }
@@ -10648,15 +10999,12 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10648
10999
  if (isMethod === void 0) { isMethod = false; }
10649
11000
  var xOffset;
10650
11001
  var yOffset;
10651
- var keytipData;
10652
- /* eslint-disable */
10653
- keytipData = this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)][key];
11002
+ var keytipData = this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)]["" + key];
10654
11003
  if (keytipData) {
10655
- for (var i = 0; i < Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)][key]).length; i++) {
10656
- /* eslint-enable */
11004
+ for (var i = 0; i < Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)]["" + key]).length; i++) {
10657
11005
  if ((isMethod && (keytipData[parseInt(i.toString(), 10)].keyTip === keyTip)) || !isMethod) {
10658
11006
  var itemID = keytipData[parseInt(i.toString(), 10)].id;
10659
- if (keytipData[parseInt(i.toString(), 10)].id.includes("_grpbtn")) {
11007
+ if (keytipData[parseInt(i.toString(), 10)].id.indexOf('_grpbtn') !== -1) {
10660
11008
  itemID = keytipData[parseInt(i.toString(), 10)].id.replace(/_grpbtn\d+/, '');
10661
11009
  }
10662
11010
  var itemProp = getItem(this.parent.tabs, itemID);
@@ -10684,7 +11032,12 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10684
11032
  yOffset = 'bottom';
10685
11033
  }
10686
11034
  }
10687
- key === 'item' ? this.createKeyTipElement((keytipData[parseInt(i.toString(), 10)].id), keytipData[parseInt(i.toString(), 10)].keyTip, key, xOffset, yOffset) : this.createKeyTipElement((keytipData[parseInt(i.toString(), 10)].id), keytipData[parseInt(i.toString(), 10)].keyTip, key, xOffset, yOffset, false, true);
11035
+ if (key === 'item') {
11036
+ this.createKeyTipElement((keytipData[parseInt(i.toString(), 10)].id), keytipData[parseInt(i.toString(), 10)].keyTip, key, xOffset, yOffset);
11037
+ }
11038
+ else {
11039
+ this.createKeyTipElement((keytipData[parseInt(i.toString(), 10)].id), keytipData[parseInt(i.toString(), 10)].keyTip, key, xOffset, yOffset, false, true);
11040
+ }
10688
11041
  }
10689
11042
  }
10690
11043
  }
@@ -10734,13 +11087,12 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10734
11087
  enableRtl: this.parent.enableRtl
10735
11088
  });
10736
11089
  keytipPopup.show();
10737
- this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset, (isTab && isPopUpItem));
11090
+ this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset);
10738
11091
  this.parent.isKeytipOpen = true;
10739
11092
  }
10740
11093
  }
10741
11094
  };
10742
- RibbonKeyTip.prototype.calculateKeyTipPosition = function (itemEle, keytipElement, type, yOffset, isTabOverflow) {
10743
- if (isTabOverflow === void 0) { isTabOverflow = false; }
11095
+ RibbonKeyTip.prototype.calculateKeyTipPosition = function (itemEle, keytipElement, type, yOffset) {
10744
11096
  var position = itemEle.getBoundingClientRect();
10745
11097
  if (type === 'backstageMenu') {
10746
11098
  keytipElement.style.top = position.top + ((keytipElement.offsetHeight) / 2) + 'px';
@@ -10762,6 +11114,7 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10762
11114
  * Performs keytip action.
10763
11115
  *
10764
11116
  * @param {string} keyPress - Gets the keytip text.
11117
+ * @param {boolean} isMethod - Gets the isMethod.
10765
11118
  * @returns {void}
10766
11119
  * @hidden
10767
11120
  */
@@ -10771,9 +11124,11 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10771
11124
  this.isKeytipPresent = false;
10772
11125
  for (var i = 0; ((i < Object.keys(this.parent.keyTipElements).length) && !this.isKeytipPresent); i++) {
10773
11126
  if (this.parent.keyTipElements[parseInt(i.toString(), 10)]) {
10774
- for (var j = 0; ((j < Object.keys(this.parent.keyTipElements[parseInt(i.toString(), 10)]).length) && !this.isKeytipPresent); j++) {
10775
- var keytipData = this.parent.keyTipElements[parseInt(i.toString(), 10)][Object.keys(this.parent.keyTipElements[parseInt(i.toString(), 10)])[parseInt(j.toString(), 10)]];
10776
- for (var k = 0; ((k < keytipData.length) && !this.isKeytipPresent); k++) {
11127
+ for (var j = 0; ((j < Object.keys(this.parent.keyTipElements[parseInt(i.toString(), 10)]).length) &&
11128
+ !this.isKeytipPresent); j++) {
11129
+ var keytipData = this.parent.keyTipElements[parseInt(i.toString(), 10)][Object.
11130
+ keys(this.parent.keyTipElements[parseInt(i.toString(), 10)])[parseInt(j.toString(), 10)]];
11131
+ for (var k = 0; ((k < Object.keys(keytipData).length) && !this.isKeytipPresent); k++) {
10777
11132
  if (keyPress.toUpperCase() === keytipData[parseInt(k.toString(), 10)].keyTip) {
10778
11133
  var keyTipElement = document.querySelector('#' + keytipData[parseInt(k.toString(), 10)].id + RIBBON_KEYTIP_ID);
10779
11134
  if (keyTipElement || isMethod) {
@@ -10784,8 +11139,9 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10784
11139
  this.parent.tabObj.select(i);
10785
11140
  setTimeout(function () {
10786
11141
  var tabOverflow = _this.parent.tabObj.element.querySelector('.e-nav-active');
10787
- if (tabOverflow)
11142
+ if (tabOverflow) {
10788
11143
  tabOverflow.click();
11144
+ }
10789
11145
  _this.createKeytip('item');
10790
11146
  }, 600);
10791
11147
  }
@@ -10800,7 +11156,7 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10800
11156
  }
10801
11157
  else {
10802
11158
  var itemProp = void 0;
10803
- if ((keytipData[parseInt(k.toString(), 10)].id).includes("_popupButton")) {
11159
+ if ((keytipData[parseInt(k.toString(), 10)].id).indexOf('_popupButton') !== -1) {
10804
11160
  var galleryID = keytipData[parseInt(k.toString(), 10)].id.replace(/_popupButton/g, '');
10805
11161
  itemProp = getItem(this.parent.tabs, galleryID);
10806
11162
  }
@@ -10818,7 +11174,7 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10818
11174
  if (keyEle) {
10819
11175
  var groupID = keytipData[parseInt(k.toString(), 10)].id;
10820
11176
  if (isMethod) {
10821
- if (keytipData[parseInt(k.toString(), 10)].id.includes("_launcher") || keytipData[parseInt(k.toString(), 10)].id.includes("_sim_grp_overflow") || keytipData[parseInt(k.toString(), 10)].id.includes("_overflow_dropdown")) {
11177
+ if (keytipData[parseInt(k.toString(), 10)].id.indexOf('_launcher') !== -1 || keytipData[parseInt(k.toString(), 10)].id.indexOf('_sim_grp_overflow') !== -1 || keytipData[parseInt(k.toString(), 10)].id.indexOf('_overflow_dropdown') !== -1) {
10822
11178
  groupID = keytipData[parseInt(k.toString(), 10)].id.replace(/_launcher|_sim_grp_overflow|_overflow_dropdown/g, '');
10823
11179
  var itemProp = getGroup(this.parent.tabs, groupID);
10824
11180
  if (itemProp.tabIndex === this.parent.selectedTab) {
@@ -10849,7 +11205,12 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10849
11205
  keyEle.click();
10850
11206
  if (!(keytipData[parseInt(k.toString(), 10)].type === 'launcher')) {
10851
11207
  this.isKeytipPopupOpen = true;
10852
- keytipData[parseInt(k.toString(), 10)].type === 'grpoverflow' ? this.createKeytip('grpoverflowpopup') : this.createKeytip('popupitem');
11208
+ if (keytipData[parseInt(k.toString(), 10)].type === 'grpoverflow') {
11209
+ this.createKeytip('grpoverflowpopup');
11210
+ }
11211
+ else {
11212
+ this.createKeytip('popupitem');
11213
+ }
10853
11214
  }
10854
11215
  }
10855
11216
  else {
@@ -10886,21 +11247,24 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10886
11247
  case 'colorpicker':
10887
11248
  this.parent.ribbonColorPickerModule.toggle(itemID);
10888
11249
  break;
10889
- case 'combobox':
11250
+ case 'combobox': {
10890
11251
  var itemEle_1 = document.querySelector('#' + itemID);
10891
11252
  setTimeout(function () {
10892
11253
  itemEle_1.focus();
10893
11254
  }, 100);
10894
11255
  break;
10895
- case 'gallery':
11256
+ }
11257
+ case 'gallery': {
10896
11258
  var galleryEle = document.querySelector('#' + itemID);
10897
11259
  galleryEle.click();
10898
11260
  break;
10899
- case 'template':
11261
+ }
11262
+ case 'template': {
10900
11263
  var templateEle = document.querySelector('#' + itemID);
10901
11264
  templateEle.focus();
10902
11265
  break;
10903
- case 'group-btn':
11266
+ }
11267
+ case 'group-btn': {
10904
11268
  var itemElement = document.querySelector('#' + itemID);
10905
11269
  if (itemElement) {
10906
11270
  var item = getInstance(itemElement, DropDownButton);
@@ -10912,21 +11276,20 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10912
11276
  }
10913
11277
  }
10914
11278
  break;
11279
+ }
10915
11280
  }
10916
11281
  }
10917
11282
  };
10918
11283
  RibbonKeyTip.prototype.commonItemsKeyTipPress = function (keyPress, key, isMethod) {
10919
11284
  var _this = this;
10920
- /* eslint-disable */
10921
- if (this.parent.keyTipElements[key]) {
11285
+ if (this.parent.keyTipElements["" + key]) {
10922
11286
  var isKeyPressed = false;
10923
- var keytipData = this.parent.keyTipElements[key];
11287
+ var keytipData = this.parent.keyTipElements["" + key];
10924
11288
  var keyEle = void 0;
10925
11289
  var keytipElement = void 0;
10926
11290
  if (keytipData) {
10927
11291
  if (key === 'backstageMenu') {
10928
- for (var i = 0; i < Object.keys(this.parent.keyTipElements[key]).length; i++) {
10929
- /* eslint-enable */
11292
+ for (var i = 0; i < Object.keys(this.parent.keyTipElements["" + key]).length; i++) {
10930
11293
  if (keytipData[parseInt(i.toString(), 10)].keyTip === keyPress.toUpperCase()) {
10931
11294
  keyEle = document.querySelector('#' + keytipData[parseInt(i.toString(), 10)].id);
10932
11295
  keytipElement = document.querySelector('#' + keyEle.id + RIBBON_KEYTIP_ID);
@@ -10991,34 +11354,34 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
10991
11354
  var _loop_1 = function (i) {
10992
11355
  var keyTipItem = keyTipItems[parseInt(i.toString(), 10)];
10993
11356
  if (key === 'Escape' && this_1.parent.keyTipElements && this_1.parent.keyTipElements[this_1.parent.selectedTab]) {
10994
- /* eslint-disable */
10995
11357
  for (var j = 0; j < Object.keys(this_1.parent.keyTipElements[this_1.parent.selectedTab]).length; j++) {
10996
- var keyText = (Object.keys(this_1.parent.keyTipElements[this_1.parent.selectedTab]))[j];
10997
- if (this_1.parent.keyTipElements[this_1.parent.selectedTab][keyText]) {
10998
- var index = getIndex(this_1.parent.keyTipElements[this_1.parent.selectedTab][keyText], function (e) { return e.id + RIBBON_KEYTIP_ID === keyTipItems[parseInt(i.toString(), 10)].id; });
10999
- /* eslint-enable */
11000
- if (index !== -1) {
11001
- if ((keyText === 'item' && !(this_1.isKeytipPopupOpen)) || (keyText === 'grpoverflow' && this_1.parent.activeLayout === 'Classic')) {
11002
- this_1.createKeytip('tab');
11358
+ var keyText = (Object.keys(this_1.parent.keyTipElements[parseInt(this_1.parent.selectedTab.toString(), 10)]))[parseInt(j.toString(), 10)];
11359
+ var keyTipElement = this_1.parent.keyTipElements[parseInt(this_1.parent.selectedTab.toString(), 10)];
11360
+ var index = getIndex(keyTipElement["" + keyText], function (e) {
11361
+ return e.id +
11362
+ RIBBON_KEYTIP_ID === keyTipItems[parseInt(i.toString(), 10)].id;
11363
+ });
11364
+ if (index !== -1) {
11365
+ if ((keyText === 'item' && !(this_1.isKeytipPopupOpen)) || (keyText === 'grpoverflow' && this_1.parent.activeLayout === 'Classic')) {
11366
+ this_1.createKeytip('tab');
11367
+ key = '';
11368
+ isKeyTipExist = true;
11369
+ break;
11370
+ }
11371
+ else if (this_1.isKeytipPopupOpen) {
11372
+ if ((keyText === 'popupitem' && this_1.parent.activeLayout === 'Simplified') || (keyText === 'grpoverflowpopup' && this_1.parent.activeLayout === 'Classic')) {
11373
+ this_1.createKeytip('item');
11003
11374
  key = '';
11004
11375
  isKeyTipExist = true;
11005
11376
  break;
11006
11377
  }
11007
- else if (this_1.isKeytipPopupOpen) {
11008
- if ((keyText === 'popupitem' && this_1.parent.activeLayout === 'Simplified') || (keyText === 'grpoverflowpopup' && this_1.parent.activeLayout === 'Classic')) {
11009
- this_1.createKeytip('item');
11010
- key = '';
11011
- isKeyTipExist = true;
11012
- break;
11013
- }
11014
- }
11015
11378
  }
11016
11379
  }
11017
11380
  }
11018
11381
  for (var n = 0; n < Object.keys(this_1.parent.keyTipElements).length; n++) {
11019
11382
  if (this_1.parent.keyTipElements[parseInt(n.toString(), 10)]) {
11020
11383
  var keytipData = this_1.parent.keyTipElements[parseInt(n.toString(), 10)]['tab'];
11021
- for (var j = 0; j < keytipData.length; j++) {
11384
+ for (var j = 0; j < Object.keys(keytipData).length; j++) {
11022
11385
  if (keyTipItem.id === keytipData[0].id + RIBBON_KEYTIP_ID) {
11023
11386
  if (document.querySelector('#' + keytipData[0].id + HEADER_ID).closest('.e-toolbar-pop')) {
11024
11387
  var tabOverflow = this_1.parent.tabObj.element.querySelector('.e-nav-active');
@@ -11055,8 +11418,9 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
11055
11418
  _loop_1(i);
11056
11419
  }
11057
11420
  this.isKeytipPopupOpen = false;
11058
- if (!isKeyTipExist)
11421
+ if (!isKeyTipExist) {
11059
11422
  this.parent.isKeytipOpen = false;
11423
+ }
11060
11424
  };
11061
11425
  /**
11062
11426
  * Shows the Keytip dynamically.
@@ -11085,12 +11449,5 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
11085
11449
  return RibbonKeyTip;
11086
11450
  }());
11087
11451
 
11088
- /**
11089
- * Ribbon modules
11090
- */
11091
-
11092
- // export all modules from current location
11093
- // example: export * from './module'
11094
-
11095
- export { Ribbon, RibbonLayout, ItemOrientation, RibbonItemSize, DisplayMode, RibbonItemType, RibbonGroupButtonSelection, ITEM_VERTICAL_CENTER, EXPAND_COLLAPSE_ICON, BACKSTAGE_CLOSE_ICON, OVERFLOW_ICON, VERTICAL_DDB, DISABLED_CSS, RTL_CSS, RIBBON_HOVER, RIBBON_CONTROL, RIBBON_POPUP_CONTROL, RIBBON_POPUP_OPEN, RIBBON_KEYTIP, SPACE, HORIZONTAL_SCROLLBAR, HIDE_CSS, RIBBON_TAB, RIBBON_CONTEXTUAL_TAB, RIBBON_TAB_ACTIVE, RIBBON_TAB_ITEM, RIBBON_COLLAPSE_BUTTON, RIBBON_EXPAND_BUTTON, RIBBON_COLLAPSIBLE, RIBBON_OVERALL_OF_BUTTON, RIBBON_GROUP_OF_BUTTON, RIBBON_OVERFLOW_TARGET, RIBBON_OVERFLOW, TAB_CONTENT, RIBBON_MINIMIZE, RIBBON_GROUP, RIBBON_SINGLE_BUTTON_SELECTION, RIBBON_MULTIPLE_BUTTON_SELECTION, RIBBON_GROUP_BUTTON, RIBBON_GROUP_BUTTON_OVERFLOW_POPUP, RIBBON_GROUP_BUTTON_CONTENT, RIBBON_GROUP_CONTAINER, RIBBON_OF_TAB_CONTAINER, RIBBON_OF_GROUP_CONTAINER, RIBBON_GROUP_CONTENT, RIBBON_GROUP_HEADER, RIBBON_OVERFLOW_HEADER, RIBBON_GROUP_OVERFLOW, RIBBON_GROUP_OVERFLOW_DDB, RIBBON_LAUNCHER, RIBBON_LAUNCHER_ICON_ELE, RIBBON_LAUNCHER_ICON, RIBBON_COLLECTION, RIBBON_ITEM, RIBBON_ROW, RIBBON_COLUMN, RIBBON_LARGE_ITEM, RIBBON_MEDIUM_ITEM, RIBBON_SMALL_ITEM, RIBBON_CONTENT_HEIGHT, DROPDOWNBUTTON, DROPDOWNBUTTON_HIDE, RIBBON_TEMPLATE, RIBBON_HELP_TEMPLATE, RIBBON_TOOLTIP, RIBBON_TOOLTIP_TARGET, RIBBON_TOOLTIP_TITLE, RIBBON_TOOLTIP_CONTENT, RIBBON_TOOLTIP_ICON, RIBBON_TOOLTIP_CONTAINER, RIBBON_TEXT_CONTAINER, RIBBON_SIMPLIFIED_MODE, RIBBON_BACKSTAGE_POPUP, RIBBON_BACKSTAGE_OPEN, RIBBON_BACKSTAGE_CONTENT, RIBBON_SELECTED_CONTENT, RIBBON_BACKSTAGE, RIBBON_BACKSTAGE_MENU, RIBBON_BACKSTAGE_TEMPLATE, RIBBON_BACKSTAGE_MENU_WRAPPER, RIBBON_BACKSTAGE_ITEMS_WRAPPER, RIBBON_BACKSTAGE_TEXT_MENU, TAB_ID, GROUP_ID, COLLECTION_ID, ITEM_ID, COLLAPSE_BUTTON_ID, OVRLOF_BUTTON_ID, GROUPOF_BUTTON_ID, HEADER_ID, LAUNCHER_ID, CONTENT_ID, CONTAINER_ID, OVERFLOW_ID, DROPDOWN_ID, RIBBON_FILE_MENU_ID, RIBBON_BACKSTAGE_MENU_ID, RIBBON_BACKSTAGE_POPUP_ID, RIBBON_FILE_MENU_LIST, RIBBON_MENU_LIST, RIBBON_FOOTER_MENU_LIST, RIBBON_HELP_PANE_TEMPLATE_ID, RIBBON_GROUP_BUTTON_ID, RIBBON_KEYTIP_ID, RIBBON_FILE_MENU_WIDTH, RIBBON_HELP_PANE_TEMPLATE_WIDTH, getIndex, getTemplateFunction, getItem, getCollection, getGroup, destroyControl, updateCommonProperty, updateControlDisabled, getItemElement, isTooltipPresent, setToolTipContent, createTooltip, destroyTooltip, updateTooltipProp, setCustomAttributes, RibbonTab, RibbonGroup, RibbonCollection, RibbonItem, RibbonButtonSettings, RibbonCheckBoxSettings, RibbonColorPickerSettings, RibbonComboBoxSettings, RibbonDropDownSettings, RibbonSplitButtonSettings, FileMenuSettings, BackStageMenu, BackstageBackButton, BackstageItem, RibbonTooltip, RibbonGroupButtonSettings, RibbonGroupButtonItem, RibbonContextualTabSettings, RibbonGalleryGroup, RibbonGalleryItem, RibbonGallerySettings, RibbonButton, RibbonCheckBox, RibbonColorPicker, RibbonComboBox, RibbonDropDown, RibbonSplitButton, RibbonGroupButton, RibbonGallery, RibbonFileMenu, RibbonBackstage, RibbonContextualTab, RibbonKeyTip };
11452
+ export { BACKSTAGE_CLOSE_ICON, BackStageMenu, BackstageBackButton, BackstageItem, COLLAPSE_BUTTON_ID, COLLECTION_ID, CONTAINER_ID, CONTENT_ID, DISABLED_CSS, DROPDOWNBUTTON, DROPDOWNBUTTON_HIDE, DROPDOWN_ID, DisplayMode, EXPAND_COLLAPSE_ICON, FileMenuSettings, GROUPOF_BUTTON_ID, GROUP_ID, HEADER_ID, HIDE_CSS, HORIZONTAL_SCROLLBAR, ITEM_ID, ITEM_VERTICAL_CENTER, ItemOrientation, LAUNCHER_ID, OVERFLOW_ICON, OVERFLOW_ID, OVRLOF_BUTTON_ID, RIBBON_BACKSTAGE, RIBBON_BACKSTAGE_CONTENT, RIBBON_BACKSTAGE_ITEMS_WRAPPER, RIBBON_BACKSTAGE_MENU, RIBBON_BACKSTAGE_MENU_ID, RIBBON_BACKSTAGE_MENU_WRAPPER, RIBBON_BACKSTAGE_OPEN, RIBBON_BACKSTAGE_POPUP, RIBBON_BACKSTAGE_POPUP_ID, RIBBON_BACKSTAGE_TEMPLATE, RIBBON_BACKSTAGE_TEXT_MENU, RIBBON_COLLAPSE_BUTTON, RIBBON_COLLAPSIBLE, RIBBON_COLLECTION, RIBBON_COLUMN, RIBBON_CONTENT_HEIGHT, RIBBON_CONTEXTUAL_TAB, RIBBON_CONTROL, RIBBON_EXPAND_BUTTON, RIBBON_FILE_MENU_ID, RIBBON_FILE_MENU_LIST, RIBBON_FILE_MENU_WIDTH, RIBBON_FOOTER_MENU_LIST, RIBBON_GROUP, RIBBON_GROUP_BUTTON, RIBBON_GROUP_BUTTON_CONTENT, RIBBON_GROUP_BUTTON_ID, RIBBON_GROUP_BUTTON_OVERFLOW_POPUP, RIBBON_GROUP_CONTAINER, RIBBON_GROUP_CONTENT, RIBBON_GROUP_HEADER, RIBBON_GROUP_OF_BUTTON, RIBBON_GROUP_OVERFLOW, RIBBON_GROUP_OVERFLOW_DDB, RIBBON_HELP_PANE_TEMPLATE_ID, RIBBON_HELP_PANE_TEMPLATE_WIDTH, RIBBON_HELP_TEMPLATE, RIBBON_HOVER, RIBBON_ITEM, RIBBON_KEYTIP, RIBBON_KEYTIP_ID, RIBBON_LARGE_ITEM, RIBBON_LAUNCHER, RIBBON_LAUNCHER_ICON, RIBBON_LAUNCHER_ICON_ELE, RIBBON_MEDIUM_ITEM, RIBBON_MENU_LIST, RIBBON_MINIMIZE, RIBBON_MULTIPLE_BUTTON_SELECTION, RIBBON_OF_GROUP_CONTAINER, RIBBON_OF_TAB_CONTAINER, RIBBON_OVERALL_OF_BUTTON, RIBBON_OVERFLOW, RIBBON_OVERFLOW_HEADER, RIBBON_OVERFLOW_TARGET, RIBBON_POPUP_CONTROL, RIBBON_POPUP_OPEN, RIBBON_ROW, RIBBON_SELECTED_CONTENT, RIBBON_SIMPLIFIED_MODE, RIBBON_SINGLE_BUTTON_SELECTION, RIBBON_SMALL_ITEM, RIBBON_TAB, RIBBON_TAB_ACTIVE, RIBBON_TAB_ITEM, RIBBON_TEMPLATE, RIBBON_TEXT_CONTAINER, RIBBON_TOOLTIP, RIBBON_TOOLTIP_CONTAINER, RIBBON_TOOLTIP_CONTENT, RIBBON_TOOLTIP_ICON, RIBBON_TOOLTIP_TARGET, RIBBON_TOOLTIP_TITLE, RTL_CSS, Ribbon, RibbonBackstage, RibbonButton, RibbonButtonSettings, RibbonCheckBox, RibbonCheckBoxSettings, RibbonCollection, RibbonColorPicker, RibbonColorPickerSettings, RibbonComboBox, RibbonComboBoxSettings, RibbonContextualTab, RibbonContextualTabSettings, RibbonDropDown, RibbonDropDownSettings, RibbonFileMenu, RibbonGallery, RibbonGalleryGroup, RibbonGalleryItem, RibbonGallerySettings, RibbonGroup, RibbonGroupButton, RibbonGroupButtonItem, RibbonGroupButtonSelection, RibbonGroupButtonSettings, RibbonItem, RibbonItemSize, RibbonItemType, RibbonKeyTip, RibbonLayout, RibbonSplitButton, RibbonSplitButtonSettings, RibbonTab, RibbonTooltip, SPACE, TAB_CONTENT, TAB_ID, VERTICAL_DDB, createTooltip, destroyControl, destroyTooltip, getCollection, getGroup, getIndex, getItem, getItemElement, getTemplateFunction, isTooltipPresent, setCustomAttributes, setToolTipContent, updateCommonProperty, updateControlDisabled, updateTooltipProp };
11096
11453
  //# sourceMappingURL=ej2-ribbon.es5.js.map