@syncfusion/ej2-ribbon 25.2.5 → 26.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -2
- package/dist/ej2-ribbon.umd.min.js +2 -2
- package/dist/ej2-ribbon.umd.min.js.map +1 -1
- package/dist/es6/ej2-ribbon.es2015.js +830 -593
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +821 -578
- package/dist/es6/ej2-ribbon.es5.js.map +1 -1
- package/dist/global/ej2-ribbon.min.js +2 -2
- package/dist/global/ej2-ribbon.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +13 -13
- package/src/ribbon/base/interface.d.ts +14 -0
- package/src/ribbon/base/ribbon-model.d.ts +1 -1
- package/src/ribbon/base/ribbon.d.ts +3 -1
- package/src/ribbon/base/ribbon.js +204 -95
- package/src/ribbon/items/ribbon-button.js +6 -1
- package/src/ribbon/items/ribbon-gallery.d.ts +15 -6
- package/src/ribbon/items/ribbon-gallery.js +164 -96
- package/src/ribbon/items/ribbon-groupbutton.d.ts +1 -0
- package/src/ribbon/items/ribbon-groupbutton.js +11 -3
- package/src/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +1 -1
- package/src/ribbon/models/ribbon-gallery-group-model.d.ts +5 -5
- package/src/ribbon/models/ribbon-gallery-group.d.ts +2 -2
- package/src/ribbon/models/ribbon-gallery-group.js +2 -2
- package/src/ribbon/models/ribbon-gallery-item-model.d.ts +5 -5
- package/src/ribbon/models/ribbon-gallery-item.d.ts +1 -1
- package/src/ribbon/models/ribbon-gallery-item.js +1 -1
- package/src/ribbon/models/ribbon-gallery-settings-model.d.ts +1 -1
- package/src/ribbon/models/ribbon-gallery-settings.d.ts +3 -3
- package/src/ribbon/models/ribbon-gallery-settings.js +2 -2
- package/src/ribbon/modules/ribbon-backstage.d.ts +6 -3
- package/src/ribbon/modules/ribbon-backstage.js +65 -12
- package/src/ribbon/modules/ribbon-contextualtab.js +5 -2
- package/src/ribbon/modules/ribbon-keytip.d.ts +1 -0
- package/src/ribbon/modules/ribbon-keytip.js +58 -46
- package/styles/bootstrap-dark.css +477 -269
- package/styles/bootstrap-dark.scss +18 -1
- package/styles/bootstrap.css +481 -276
- package/styles/bootstrap.scss +18 -1
- package/styles/bootstrap4.css +480 -272
- package/styles/bootstrap4.scss +18 -1
- package/styles/bootstrap5-dark.css +495 -278
- package/styles/bootstrap5-dark.scss +18 -1
- package/styles/bootstrap5.css +495 -278
- package/styles/bootstrap5.scss +18 -1
- package/styles/fabric-dark.css +476 -269
- package/styles/fabric-dark.scss +18 -1
- package/styles/fabric.css +475 -272
- package/styles/fabric.scss +18 -1
- package/styles/fluent-dark.css +497 -277
- package/styles/fluent-dark.scss +18 -1
- package/styles/fluent.css +497 -277
- package/styles/fluent.scss +18 -1
- package/styles/fluent2.css +3893 -0
- package/styles/fluent2.scss +18 -0
- package/styles/highcontrast-light.css +470 -263
- package/styles/highcontrast-light.scss +17 -1
- package/styles/highcontrast.css +476 -273
- package/styles/highcontrast.scss +18 -1
- package/styles/material-dark.css +565 -283
- package/styles/material-dark.scss +18 -1
- package/styles/material.css +564 -289
- package/styles/material.scss +18 -1
- package/styles/material3-dark.css +521 -280
- package/styles/material3-dark.scss +18 -1
- package/styles/material3.css +521 -280
- package/styles/material3.scss +18 -1
- package/styles/ribbon/_bds-definition.scss +58 -20
- package/styles/ribbon/_bootstrap-dark-definition.scss +58 -20
- package/styles/ribbon/_bootstrap-definition.scss +59 -21
- package/styles/ribbon/_bootstrap4-definition.scss +59 -21
- package/styles/ribbon/_bootstrap5-definition.scss +59 -21
- package/styles/ribbon/_bootstrap5.3-definition.scss +398 -0
- package/styles/ribbon/_fabric-dark-definition.scss +57 -19
- package/styles/ribbon/_fabric-definition.scss +58 -20
- package/styles/ribbon/_fluent-definition.scss +61 -23
- package/styles/ribbon/_fluent2-definition.scss +398 -0
- package/styles/ribbon/_fusionnew-definition.scss +52 -14
- package/styles/ribbon/_highcontrast-definition.scss +60 -22
- package/styles/ribbon/_highcontrast-light-definition.scss +51 -13
- package/styles/ribbon/_layout.scss +371 -399
- package/styles/ribbon/_material-dark-definition.scss +58 -20
- package/styles/ribbon/_material-definition.scss +58 -20
- package/styles/ribbon/_material3-definition.scss +58 -19
- package/styles/ribbon/_tailwind-definition.scss +58 -20
- package/styles/ribbon/_theme.scss +118 -170
- package/styles/ribbon/bootstrap-dark.css +477 -269
- package/styles/ribbon/bootstrap.css +481 -276
- package/styles/ribbon/bootstrap4.css +480 -272
- package/styles/ribbon/bootstrap5-dark.css +495 -278
- package/styles/ribbon/bootstrap5.css +495 -278
- package/styles/ribbon/fabric-dark.css +476 -269
- package/styles/ribbon/fabric.css +475 -272
- package/styles/ribbon/fluent-dark.css +497 -277
- package/styles/ribbon/fluent.css +497 -277
- package/styles/ribbon/fluent2.css +3893 -0
- package/styles/ribbon/fluent2.scss +18 -0
- package/styles/ribbon/highcontrast-light.css +470 -263
- package/styles/ribbon/highcontrast.css +476 -273
- package/styles/ribbon/icons/_bootstrap5.3.scss +9 -0
- package/styles/ribbon/icons/_fluent2.scss +9 -0
- package/styles/ribbon/material-dark.css +565 -283
- package/styles/ribbon/material.css +564 -289
- package/styles/ribbon/material3-dark.css +521 -280
- package/styles/ribbon/material3.css +521 -280
- package/styles/ribbon/tailwind-dark.css +531 -280
- package/styles/ribbon/tailwind.css +531 -280
- package/styles/tailwind-dark.css +531 -280
- package/styles/tailwind-dark.scss +18 -1
- package/styles/tailwind.css +531 -280
- package/styles/tailwind.scss +18 -1
- package/CHANGELOG.md +0 -101
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChildProperty,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ChildProperty, Property, Event, Complex, Collection, getComponent, merge, EventHandler, isNullOrUndefined, closest, remove, select, compile, addClass, setValue, formatUnit, append, Component, getUniqueID, KeyboardEvents, getInstance, isUndefined, removeClass, NotifyPropertyChanges } 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 {
|
|
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 __decorate
|
|
138
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
139
139
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
140
140
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
141
141
|
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;
|
|
@@ -155,32 +155,32 @@ class RibbonButtonSettings extends ChildProperty {
|
|
|
155
155
|
super.setProperties(prop, muteOnChange);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
__decorate
|
|
158
|
+
__decorate([
|
|
159
159
|
Property('')
|
|
160
160
|
], RibbonButtonSettings.prototype, "content", void 0);
|
|
161
|
-
__decorate
|
|
161
|
+
__decorate([
|
|
162
162
|
Property('')
|
|
163
163
|
], RibbonButtonSettings.prototype, "cssClass", void 0);
|
|
164
|
-
__decorate
|
|
164
|
+
__decorate([
|
|
165
165
|
Property('')
|
|
166
166
|
], RibbonButtonSettings.prototype, "iconCss", void 0);
|
|
167
|
-
__decorate
|
|
167
|
+
__decorate([
|
|
168
168
|
Property(false)
|
|
169
169
|
], RibbonButtonSettings.prototype, "isToggle", void 0);
|
|
170
|
-
__decorate
|
|
170
|
+
__decorate([
|
|
171
171
|
Property(false)
|
|
172
172
|
], RibbonButtonSettings.prototype, "isPrimary", void 0);
|
|
173
|
-
__decorate
|
|
173
|
+
__decorate([
|
|
174
174
|
Property({})
|
|
175
175
|
], RibbonButtonSettings.prototype, "htmlAttributes", void 0);
|
|
176
|
-
__decorate
|
|
176
|
+
__decorate([
|
|
177
177
|
Event()
|
|
178
178
|
], RibbonButtonSettings.prototype, "created", void 0);
|
|
179
|
-
__decorate
|
|
179
|
+
__decorate([
|
|
180
180
|
Event()
|
|
181
181
|
], RibbonButtonSettings.prototype, "clicked", void 0);
|
|
182
182
|
|
|
183
|
-
var __decorate$
|
|
183
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
184
184
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
185
185
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
186
186
|
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;
|
|
@@ -200,29 +200,29 @@ class RibbonCheckBoxSettings extends ChildProperty {
|
|
|
200
200
|
super.setProperties(prop, muteOnChange);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
__decorate$
|
|
203
|
+
__decorate$1([
|
|
204
204
|
Property(false)
|
|
205
205
|
], RibbonCheckBoxSettings.prototype, "checked", void 0);
|
|
206
|
-
__decorate$
|
|
206
|
+
__decorate$1([
|
|
207
207
|
Property('')
|
|
208
208
|
], RibbonCheckBoxSettings.prototype, "cssClass", void 0);
|
|
209
|
-
__decorate$
|
|
209
|
+
__decorate$1([
|
|
210
210
|
Property('')
|
|
211
211
|
], RibbonCheckBoxSettings.prototype, "label", void 0);
|
|
212
|
-
__decorate$
|
|
212
|
+
__decorate$1([
|
|
213
213
|
Property('After')
|
|
214
214
|
], RibbonCheckBoxSettings.prototype, "labelPosition", void 0);
|
|
215
|
-
__decorate$
|
|
215
|
+
__decorate$1([
|
|
216
216
|
Property({})
|
|
217
217
|
], RibbonCheckBoxSettings.prototype, "htmlAttributes", void 0);
|
|
218
|
-
__decorate$
|
|
218
|
+
__decorate$1([
|
|
219
219
|
Event()
|
|
220
220
|
], RibbonCheckBoxSettings.prototype, "created", void 0);
|
|
221
|
-
__decorate$
|
|
221
|
+
__decorate$1([
|
|
222
222
|
Event()
|
|
223
223
|
], RibbonCheckBoxSettings.prototype, "change", void 0);
|
|
224
224
|
|
|
225
|
-
var __decorate$
|
|
225
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
226
226
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
227
227
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
228
228
|
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;
|
|
@@ -242,62 +242,62 @@ class RibbonColorPickerSettings extends ChildProperty {
|
|
|
242
242
|
super.setProperties(prop, muteOnChange);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
__decorate$
|
|
245
|
+
__decorate$2([
|
|
246
246
|
Property(10)
|
|
247
247
|
], RibbonColorPickerSettings.prototype, "columns", void 0);
|
|
248
|
-
__decorate$
|
|
248
|
+
__decorate$2([
|
|
249
249
|
Property('')
|
|
250
250
|
], RibbonColorPickerSettings.prototype, "cssClass", void 0);
|
|
251
|
-
__decorate$
|
|
251
|
+
__decorate$2([
|
|
252
252
|
Property('')
|
|
253
253
|
], RibbonColorPickerSettings.prototype, "label", void 0);
|
|
254
|
-
__decorate$
|
|
254
|
+
__decorate$2([
|
|
255
255
|
Property(true)
|
|
256
256
|
], RibbonColorPickerSettings.prototype, "enableOpacity", void 0);
|
|
257
|
-
__decorate$
|
|
257
|
+
__decorate$2([
|
|
258
258
|
Property('Palette')
|
|
259
259
|
], RibbonColorPickerSettings.prototype, "mode", void 0);
|
|
260
|
-
__decorate$
|
|
260
|
+
__decorate$2([
|
|
261
261
|
Property(true)
|
|
262
262
|
], RibbonColorPickerSettings.prototype, "modeSwitcher", void 0);
|
|
263
|
-
__decorate$
|
|
263
|
+
__decorate$2([
|
|
264
264
|
Property(false)
|
|
265
265
|
], RibbonColorPickerSettings.prototype, "noColor", void 0);
|
|
266
|
-
__decorate$
|
|
266
|
+
__decorate$2([
|
|
267
267
|
Property(null)
|
|
268
268
|
], RibbonColorPickerSettings.prototype, "presetColors", void 0);
|
|
269
|
-
__decorate$
|
|
269
|
+
__decorate$2([
|
|
270
270
|
Property(true)
|
|
271
271
|
], RibbonColorPickerSettings.prototype, "showButtons", void 0);
|
|
272
|
-
__decorate$
|
|
272
|
+
__decorate$2([
|
|
273
273
|
Property('#008000ff')
|
|
274
274
|
], RibbonColorPickerSettings.prototype, "value", void 0);
|
|
275
|
-
__decorate$
|
|
275
|
+
__decorate$2([
|
|
276
276
|
Property({})
|
|
277
277
|
], RibbonColorPickerSettings.prototype, "htmlAttributes", void 0);
|
|
278
|
-
__decorate$
|
|
278
|
+
__decorate$2([
|
|
279
279
|
Event()
|
|
280
280
|
], RibbonColorPickerSettings.prototype, "beforeClose", void 0);
|
|
281
|
-
__decorate$
|
|
281
|
+
__decorate$2([
|
|
282
282
|
Event()
|
|
283
283
|
], RibbonColorPickerSettings.prototype, "beforeOpen", void 0);
|
|
284
|
-
__decorate$
|
|
284
|
+
__decorate$2([
|
|
285
285
|
Event()
|
|
286
286
|
], RibbonColorPickerSettings.prototype, "beforeTileRender", void 0);
|
|
287
|
-
__decorate$
|
|
287
|
+
__decorate$2([
|
|
288
288
|
Event()
|
|
289
289
|
], RibbonColorPickerSettings.prototype, "created", void 0);
|
|
290
|
-
__decorate$
|
|
290
|
+
__decorate$2([
|
|
291
291
|
Event()
|
|
292
292
|
], RibbonColorPickerSettings.prototype, "change", void 0);
|
|
293
|
-
__decorate$
|
|
293
|
+
__decorate$2([
|
|
294
294
|
Event()
|
|
295
295
|
], RibbonColorPickerSettings.prototype, "open", void 0);
|
|
296
|
-
__decorate$
|
|
296
|
+
__decorate$2([
|
|
297
297
|
Event()
|
|
298
298
|
], RibbonColorPickerSettings.prototype, "select", void 0);
|
|
299
299
|
|
|
300
|
-
var __decorate$
|
|
300
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
301
301
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
302
302
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303
303
|
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;
|
|
@@ -317,95 +317,95 @@ class RibbonComboBoxSettings extends ChildProperty {
|
|
|
317
317
|
super.setProperties(prop, muteOnChange);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
__decorate$
|
|
320
|
+
__decorate$3([
|
|
321
321
|
Property(false)
|
|
322
322
|
], RibbonComboBoxSettings.prototype, "allowFiltering", void 0);
|
|
323
|
-
__decorate$
|
|
323
|
+
__decorate$3([
|
|
324
324
|
Property(true)
|
|
325
325
|
], RibbonComboBoxSettings.prototype, "autofill", void 0);
|
|
326
|
-
__decorate$
|
|
326
|
+
__decorate$3([
|
|
327
327
|
Property('')
|
|
328
328
|
], RibbonComboBoxSettings.prototype, "cssClass", void 0);
|
|
329
|
-
__decorate$
|
|
329
|
+
__decorate$3([
|
|
330
330
|
Property('')
|
|
331
331
|
], RibbonComboBoxSettings.prototype, "label", void 0);
|
|
332
|
-
__decorate$
|
|
332
|
+
__decorate$3([
|
|
333
333
|
Property([])
|
|
334
334
|
], RibbonComboBoxSettings.prototype, "dataSource", void 0);
|
|
335
|
-
__decorate$
|
|
335
|
+
__decorate$3([
|
|
336
336
|
Complex({ text: null, value: null, iconCss: null, groupBy: null }, FieldSettings)
|
|
337
337
|
], RibbonComboBoxSettings.prototype, "fields", void 0);
|
|
338
|
-
__decorate$
|
|
338
|
+
__decorate$3([
|
|
339
339
|
Property('Contains')
|
|
340
340
|
], RibbonComboBoxSettings.prototype, "filterType", void 0);
|
|
341
|
-
__decorate$
|
|
341
|
+
__decorate$3([
|
|
342
342
|
Property(null)
|
|
343
343
|
], RibbonComboBoxSettings.prototype, "footerTemplate", void 0);
|
|
344
|
-
__decorate$
|
|
344
|
+
__decorate$3([
|
|
345
345
|
Property(null)
|
|
346
346
|
], RibbonComboBoxSettings.prototype, "groupTemplate", void 0);
|
|
347
|
-
__decorate$
|
|
347
|
+
__decorate$3([
|
|
348
348
|
Property(null)
|
|
349
349
|
], RibbonComboBoxSettings.prototype, "headerTemplate", void 0);
|
|
350
|
-
__decorate$
|
|
350
|
+
__decorate$3([
|
|
351
351
|
Property(null)
|
|
352
352
|
], RibbonComboBoxSettings.prototype, "index", void 0);
|
|
353
|
-
__decorate$
|
|
353
|
+
__decorate$3([
|
|
354
354
|
Property(null)
|
|
355
355
|
], RibbonComboBoxSettings.prototype, "itemTemplate", void 0);
|
|
356
|
-
__decorate$
|
|
356
|
+
__decorate$3([
|
|
357
357
|
Property('No records found')
|
|
358
358
|
], RibbonComboBoxSettings.prototype, "noRecordsTemplate", void 0);
|
|
359
|
-
__decorate$
|
|
359
|
+
__decorate$3([
|
|
360
360
|
Property(null)
|
|
361
361
|
], RibbonComboBoxSettings.prototype, "placeholder", void 0);
|
|
362
|
-
__decorate$
|
|
362
|
+
__decorate$3([
|
|
363
363
|
Property('300px')
|
|
364
364
|
], RibbonComboBoxSettings.prototype, "popupHeight", void 0);
|
|
365
|
-
__decorate$
|
|
365
|
+
__decorate$3([
|
|
366
366
|
Property('100%')
|
|
367
367
|
], RibbonComboBoxSettings.prototype, "popupWidth", void 0);
|
|
368
|
-
__decorate$
|
|
368
|
+
__decorate$3([
|
|
369
369
|
Property(true)
|
|
370
370
|
], RibbonComboBoxSettings.prototype, "showClearButton", void 0);
|
|
371
|
-
__decorate$
|
|
371
|
+
__decorate$3([
|
|
372
372
|
Property('None')
|
|
373
373
|
], RibbonComboBoxSettings.prototype, "sortOrder", void 0);
|
|
374
|
-
__decorate$
|
|
374
|
+
__decorate$3([
|
|
375
375
|
Property(null)
|
|
376
376
|
], RibbonComboBoxSettings.prototype, "text", void 0);
|
|
377
|
-
__decorate$
|
|
377
|
+
__decorate$3([
|
|
378
378
|
Property(null)
|
|
379
379
|
], RibbonComboBoxSettings.prototype, "value", void 0);
|
|
380
|
-
__decorate$
|
|
380
|
+
__decorate$3([
|
|
381
381
|
Property('150px')
|
|
382
382
|
], RibbonComboBoxSettings.prototype, "width", void 0);
|
|
383
|
-
__decorate$
|
|
383
|
+
__decorate$3([
|
|
384
384
|
Property({})
|
|
385
385
|
], RibbonComboBoxSettings.prototype, "htmlAttributes", void 0);
|
|
386
|
-
__decorate$
|
|
386
|
+
__decorate$3([
|
|
387
387
|
Event()
|
|
388
388
|
], RibbonComboBoxSettings.prototype, "beforeOpen", void 0);
|
|
389
|
-
__decorate$
|
|
389
|
+
__decorate$3([
|
|
390
390
|
Event()
|
|
391
391
|
], RibbonComboBoxSettings.prototype, "change", void 0);
|
|
392
|
-
__decorate$
|
|
392
|
+
__decorate$3([
|
|
393
393
|
Event()
|
|
394
394
|
], RibbonComboBoxSettings.prototype, "close", void 0);
|
|
395
|
-
__decorate$
|
|
395
|
+
__decorate$3([
|
|
396
396
|
Event()
|
|
397
397
|
], RibbonComboBoxSettings.prototype, "created", void 0);
|
|
398
|
-
__decorate$
|
|
398
|
+
__decorate$3([
|
|
399
399
|
Event()
|
|
400
400
|
], RibbonComboBoxSettings.prototype, "filtering", void 0);
|
|
401
|
-
__decorate$
|
|
401
|
+
__decorate$3([
|
|
402
402
|
Event()
|
|
403
403
|
], RibbonComboBoxSettings.prototype, "open", void 0);
|
|
404
|
-
__decorate$
|
|
404
|
+
__decorate$3([
|
|
405
405
|
Event()
|
|
406
406
|
], RibbonComboBoxSettings.prototype, "select", void 0);
|
|
407
407
|
|
|
408
|
-
var __decorate$
|
|
408
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
409
409
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
410
410
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
411
411
|
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;
|
|
@@ -425,53 +425,53 @@ class RibbonDropDownSettings extends ChildProperty {
|
|
|
425
425
|
super.setProperties(prop, muteOnChange);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
__decorate$
|
|
428
|
+
__decorate$4([
|
|
429
429
|
Property('')
|
|
430
430
|
], RibbonDropDownSettings.prototype, "closeActionEvents", void 0);
|
|
431
|
-
__decorate$
|
|
431
|
+
__decorate$4([
|
|
432
432
|
Property('')
|
|
433
433
|
], RibbonDropDownSettings.prototype, "content", void 0);
|
|
434
|
-
__decorate$
|
|
434
|
+
__decorate$4([
|
|
435
435
|
Property('')
|
|
436
436
|
], RibbonDropDownSettings.prototype, "cssClass", void 0);
|
|
437
|
-
__decorate$
|
|
437
|
+
__decorate$4([
|
|
438
438
|
Property('')
|
|
439
439
|
], RibbonDropDownSettings.prototype, "iconCss", void 0);
|
|
440
|
-
__decorate$
|
|
440
|
+
__decorate$4([
|
|
441
441
|
Collection([], Item)
|
|
442
442
|
], RibbonDropDownSettings.prototype, "items", void 0);
|
|
443
|
-
__decorate$
|
|
443
|
+
__decorate$4([
|
|
444
444
|
Property('')
|
|
445
445
|
], RibbonDropDownSettings.prototype, "target", void 0);
|
|
446
|
-
__decorate$
|
|
446
|
+
__decorate$4([
|
|
447
447
|
Property(false)
|
|
448
448
|
], RibbonDropDownSettings.prototype, "createPopupOnClick", void 0);
|
|
449
|
-
__decorate$
|
|
449
|
+
__decorate$4([
|
|
450
450
|
Property({})
|
|
451
451
|
], RibbonDropDownSettings.prototype, "htmlAttributes", void 0);
|
|
452
|
-
__decorate$
|
|
452
|
+
__decorate$4([
|
|
453
453
|
Event()
|
|
454
454
|
], RibbonDropDownSettings.prototype, "beforeClose", void 0);
|
|
455
|
-
__decorate$
|
|
455
|
+
__decorate$4([
|
|
456
456
|
Event()
|
|
457
457
|
], RibbonDropDownSettings.prototype, "beforeItemRender", void 0);
|
|
458
|
-
__decorate$
|
|
458
|
+
__decorate$4([
|
|
459
459
|
Event()
|
|
460
460
|
], RibbonDropDownSettings.prototype, "beforeOpen", void 0);
|
|
461
|
-
__decorate$
|
|
461
|
+
__decorate$4([
|
|
462
462
|
Event()
|
|
463
463
|
], RibbonDropDownSettings.prototype, "close", void 0);
|
|
464
|
-
__decorate$
|
|
464
|
+
__decorate$4([
|
|
465
465
|
Event()
|
|
466
466
|
], RibbonDropDownSettings.prototype, "created", void 0);
|
|
467
|
-
__decorate$
|
|
467
|
+
__decorate$4([
|
|
468
468
|
Event()
|
|
469
469
|
], RibbonDropDownSettings.prototype, "open", void 0);
|
|
470
|
-
__decorate$
|
|
470
|
+
__decorate$4([
|
|
471
471
|
Event()
|
|
472
472
|
], RibbonDropDownSettings.prototype, "select", void 0);
|
|
473
473
|
|
|
474
|
-
var __decorate$
|
|
474
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
475
475
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
476
476
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
477
477
|
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;
|
|
@@ -491,53 +491,53 @@ class RibbonSplitButtonSettings extends ChildProperty {
|
|
|
491
491
|
super.setProperties(prop, muteOnChange);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
__decorate$
|
|
494
|
+
__decorate$5([
|
|
495
495
|
Property('')
|
|
496
496
|
], RibbonSplitButtonSettings.prototype, "closeActionEvents", void 0);
|
|
497
|
-
__decorate$
|
|
497
|
+
__decorate$5([
|
|
498
498
|
Property('')
|
|
499
499
|
], RibbonSplitButtonSettings.prototype, "content", void 0);
|
|
500
|
-
__decorate$
|
|
500
|
+
__decorate$5([
|
|
501
501
|
Property('')
|
|
502
502
|
], RibbonSplitButtonSettings.prototype, "cssClass", void 0);
|
|
503
|
-
__decorate$
|
|
503
|
+
__decorate$5([
|
|
504
504
|
Property('')
|
|
505
505
|
], RibbonSplitButtonSettings.prototype, "iconCss", void 0);
|
|
506
|
-
__decorate$
|
|
506
|
+
__decorate$5([
|
|
507
507
|
Collection([], Item)
|
|
508
508
|
], RibbonSplitButtonSettings.prototype, "items", void 0);
|
|
509
|
-
__decorate$
|
|
509
|
+
__decorate$5([
|
|
510
510
|
Property('')
|
|
511
511
|
], RibbonSplitButtonSettings.prototype, "target", void 0);
|
|
512
|
-
__decorate$
|
|
512
|
+
__decorate$5([
|
|
513
513
|
Property({})
|
|
514
514
|
], RibbonSplitButtonSettings.prototype, "htmlAttributes", void 0);
|
|
515
|
-
__decorate$
|
|
515
|
+
__decorate$5([
|
|
516
516
|
Event()
|
|
517
517
|
], RibbonSplitButtonSettings.prototype, "beforeClose", void 0);
|
|
518
|
-
__decorate$
|
|
518
|
+
__decorate$5([
|
|
519
519
|
Event()
|
|
520
520
|
], RibbonSplitButtonSettings.prototype, "beforeItemRender", void 0);
|
|
521
|
-
__decorate$
|
|
521
|
+
__decorate$5([
|
|
522
522
|
Event()
|
|
523
523
|
], RibbonSplitButtonSettings.prototype, "beforeOpen", void 0);
|
|
524
|
-
__decorate$
|
|
524
|
+
__decorate$5([
|
|
525
525
|
Event()
|
|
526
526
|
], RibbonSplitButtonSettings.prototype, "close", void 0);
|
|
527
|
-
__decorate$
|
|
527
|
+
__decorate$5([
|
|
528
528
|
Event()
|
|
529
529
|
], RibbonSplitButtonSettings.prototype, "click", void 0);
|
|
530
|
-
__decorate$
|
|
530
|
+
__decorate$5([
|
|
531
531
|
Event()
|
|
532
532
|
], RibbonSplitButtonSettings.prototype, "created", void 0);
|
|
533
|
-
__decorate$
|
|
533
|
+
__decorate$5([
|
|
534
534
|
Event()
|
|
535
535
|
], RibbonSplitButtonSettings.prototype, "open", void 0);
|
|
536
|
-
__decorate$
|
|
536
|
+
__decorate$5([
|
|
537
537
|
Event()
|
|
538
538
|
], RibbonSplitButtonSettings.prototype, "select", void 0);
|
|
539
539
|
|
|
540
|
-
var __decorate$
|
|
540
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
541
541
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
542
542
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
543
543
|
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;
|
|
@@ -548,23 +548,23 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
548
548
|
*/
|
|
549
549
|
class RibbonTooltip extends ChildProperty {
|
|
550
550
|
}
|
|
551
|
-
__decorate$
|
|
551
|
+
__decorate$6([
|
|
552
552
|
Property('')
|
|
553
553
|
], RibbonTooltip.prototype, "cssClass", void 0);
|
|
554
|
-
__decorate$
|
|
554
|
+
__decorate$6([
|
|
555
555
|
Property('')
|
|
556
556
|
], RibbonTooltip.prototype, "id", void 0);
|
|
557
|
-
__decorate$
|
|
557
|
+
__decorate$6([
|
|
558
558
|
Property('')
|
|
559
559
|
], RibbonTooltip.prototype, "title", void 0);
|
|
560
|
-
__decorate$
|
|
560
|
+
__decorate$6([
|
|
561
561
|
Property('')
|
|
562
562
|
], RibbonTooltip.prototype, "content", void 0);
|
|
563
|
-
__decorate$
|
|
563
|
+
__decorate$6([
|
|
564
564
|
Property('')
|
|
565
565
|
], RibbonTooltip.prototype, "iconCss", void 0);
|
|
566
566
|
|
|
567
|
-
var __decorate$
|
|
567
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
568
568
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
569
569
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
570
570
|
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,32 +584,32 @@ class RibbonGroupButtonItem extends ChildProperty {
|
|
|
584
584
|
super.setProperties(prop, muteOnChange);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
__decorate$
|
|
587
|
+
__decorate$7([
|
|
588
588
|
Property('')
|
|
589
589
|
], RibbonGroupButtonItem.prototype, "content", void 0);
|
|
590
|
-
__decorate$
|
|
590
|
+
__decorate$7([
|
|
591
591
|
Property('')
|
|
592
592
|
], RibbonGroupButtonItem.prototype, "iconCss", void 0);
|
|
593
|
-
__decorate$
|
|
593
|
+
__decorate$7([
|
|
594
594
|
Property('')
|
|
595
595
|
], RibbonGroupButtonItem.prototype, "keyTip", void 0);
|
|
596
|
-
__decorate$
|
|
596
|
+
__decorate$7([
|
|
597
597
|
Complex({}, RibbonTooltip)
|
|
598
598
|
], RibbonGroupButtonItem.prototype, "ribbonTooltipSettings", void 0);
|
|
599
|
-
__decorate$
|
|
599
|
+
__decorate$7([
|
|
600
600
|
Property(false)
|
|
601
601
|
], RibbonGroupButtonItem.prototype, "selected", void 0);
|
|
602
|
-
__decorate$
|
|
602
|
+
__decorate$7([
|
|
603
603
|
Property({})
|
|
604
604
|
], RibbonGroupButtonItem.prototype, "htmlAttributes", void 0);
|
|
605
|
-
__decorate$
|
|
605
|
+
__decorate$7([
|
|
606
606
|
Event()
|
|
607
607
|
], RibbonGroupButtonItem.prototype, "beforeClick", void 0);
|
|
608
|
-
__decorate$
|
|
608
|
+
__decorate$7([
|
|
609
609
|
Event()
|
|
610
610
|
], RibbonGroupButtonItem.prototype, "click", void 0);
|
|
611
611
|
|
|
612
|
-
var __decorate$
|
|
612
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
613
613
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
614
614
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
615
615
|
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;
|
|
@@ -620,17 +620,17 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
620
620
|
*/
|
|
621
621
|
class RibbonGroupButtonSettings extends ChildProperty {
|
|
622
622
|
}
|
|
623
|
-
__decorate$
|
|
623
|
+
__decorate$8([
|
|
624
624
|
Property('')
|
|
625
625
|
], RibbonGroupButtonSettings.prototype, "header", void 0);
|
|
626
|
-
__decorate$
|
|
626
|
+
__decorate$8([
|
|
627
627
|
Property('Single')
|
|
628
628
|
], RibbonGroupButtonSettings.prototype, "selection", void 0);
|
|
629
|
-
__decorate$
|
|
629
|
+
__decorate$8([
|
|
630
630
|
Collection([], RibbonGroupButtonItem)
|
|
631
631
|
], RibbonGroupButtonSettings.prototype, "items", void 0);
|
|
632
632
|
|
|
633
|
-
var __decorate$
|
|
633
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
634
634
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
635
635
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
636
636
|
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;
|
|
@@ -641,23 +641,23 @@ var __decorate$16 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
641
641
|
*/
|
|
642
642
|
class RibbonGalleryItem extends ChildProperty {
|
|
643
643
|
}
|
|
644
|
-
__decorate$
|
|
644
|
+
__decorate$9([
|
|
645
645
|
Property('')
|
|
646
646
|
], RibbonGalleryItem.prototype, "content", void 0);
|
|
647
|
-
__decorate$
|
|
647
|
+
__decorate$9([
|
|
648
648
|
Property('')
|
|
649
649
|
], RibbonGalleryItem.prototype, "iconCss", void 0);
|
|
650
|
-
__decorate$
|
|
650
|
+
__decorate$9([
|
|
651
651
|
Property({})
|
|
652
652
|
], RibbonGalleryItem.prototype, "htmlAttributes", void 0);
|
|
653
|
-
__decorate$
|
|
653
|
+
__decorate$9([
|
|
654
654
|
Property('')
|
|
655
655
|
], RibbonGalleryItem.prototype, "cssClass", void 0);
|
|
656
|
-
__decorate$
|
|
656
|
+
__decorate$9([
|
|
657
657
|
Property(false)
|
|
658
658
|
], RibbonGalleryItem.prototype, "disabled", void 0);
|
|
659
659
|
|
|
660
|
-
var __decorate$
|
|
660
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
661
661
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
662
662
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
663
663
|
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,23 +668,23 @@ var __decorate$15 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
668
668
|
*/
|
|
669
669
|
class RibbonGalleryGroup extends ChildProperty {
|
|
670
670
|
}
|
|
671
|
-
__decorate$
|
|
671
|
+
__decorate$a([
|
|
672
672
|
Collection([], RibbonGalleryItem)
|
|
673
673
|
], RibbonGalleryGroup.prototype, "items", void 0);
|
|
674
|
-
__decorate$
|
|
674
|
+
__decorate$a([
|
|
675
675
|
Property('')
|
|
676
676
|
], RibbonGalleryGroup.prototype, "header", void 0);
|
|
677
|
-
__decorate$
|
|
677
|
+
__decorate$a([
|
|
678
678
|
Property('auto')
|
|
679
679
|
], RibbonGalleryGroup.prototype, "itemWidth", void 0);
|
|
680
|
-
__decorate$
|
|
680
|
+
__decorate$a([
|
|
681
681
|
Property('auto')
|
|
682
682
|
], RibbonGalleryGroup.prototype, "itemHeight", void 0);
|
|
683
|
-
__decorate$
|
|
683
|
+
__decorate$a([
|
|
684
684
|
Property('')
|
|
685
685
|
], RibbonGalleryGroup.prototype, "cssClass", void 0);
|
|
686
686
|
|
|
687
|
-
var __decorate$
|
|
687
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
688
688
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
689
689
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
690
690
|
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;
|
|
@@ -695,47 +695,47 @@ var __decorate$14 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
695
695
|
*/
|
|
696
696
|
class RibbonGallerySettings extends ChildProperty {
|
|
697
697
|
}
|
|
698
|
-
__decorate$
|
|
698
|
+
__decorate$b([
|
|
699
699
|
Collection([], RibbonGalleryGroup)
|
|
700
700
|
], RibbonGallerySettings.prototype, "groups", void 0);
|
|
701
|
-
__decorate$
|
|
701
|
+
__decorate$b([
|
|
702
702
|
Property(3)
|
|
703
703
|
], RibbonGallerySettings.prototype, "itemCount", void 0);
|
|
704
|
-
__decorate$
|
|
704
|
+
__decorate$b([
|
|
705
705
|
Property(null)
|
|
706
706
|
], RibbonGallerySettings.prototype, "selectedItemIndex", void 0);
|
|
707
|
-
__decorate$
|
|
707
|
+
__decorate$b([
|
|
708
708
|
Property('auto')
|
|
709
709
|
], RibbonGallerySettings.prototype, "popupHeight", void 0);
|
|
710
|
-
__decorate$
|
|
710
|
+
__decorate$b([
|
|
711
711
|
Property('auto')
|
|
712
712
|
], RibbonGallerySettings.prototype, "popupWidth", void 0);
|
|
713
|
-
__decorate$
|
|
713
|
+
__decorate$b([
|
|
714
714
|
Property('')
|
|
715
715
|
], RibbonGallerySettings.prototype, "template", void 0);
|
|
716
|
-
__decorate$
|
|
716
|
+
__decorate$b([
|
|
717
717
|
Property('')
|
|
718
718
|
], RibbonGallerySettings.prototype, "popupTemplate", void 0);
|
|
719
|
-
__decorate$
|
|
719
|
+
__decorate$b([
|
|
720
720
|
Event()
|
|
721
721
|
], RibbonGallerySettings.prototype, "popupOpen", void 0);
|
|
722
|
-
__decorate$
|
|
722
|
+
__decorate$b([
|
|
723
723
|
Event()
|
|
724
724
|
], RibbonGallerySettings.prototype, "popupClose", void 0);
|
|
725
|
-
__decorate$
|
|
725
|
+
__decorate$b([
|
|
726
726
|
Event()
|
|
727
727
|
], RibbonGallerySettings.prototype, "itemHover", void 0);
|
|
728
|
-
__decorate$
|
|
728
|
+
__decorate$b([
|
|
729
729
|
Event()
|
|
730
730
|
], RibbonGallerySettings.prototype, "beforeItemRender", void 0);
|
|
731
|
-
__decorate$
|
|
731
|
+
__decorate$b([
|
|
732
732
|
Event()
|
|
733
733
|
], RibbonGallerySettings.prototype, "beforeSelect", void 0);
|
|
734
|
-
__decorate$
|
|
734
|
+
__decorate$b([
|
|
735
735
|
Event()
|
|
736
736
|
], RibbonGallerySettings.prototype, "select", void 0);
|
|
737
737
|
|
|
738
|
-
var __decorate$
|
|
738
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
739
739
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
740
740
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
741
741
|
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;
|
|
@@ -755,62 +755,62 @@ class RibbonItem extends ChildProperty {
|
|
|
755
755
|
super.setProperties(prop, muteOnChange);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
__decorate$
|
|
758
|
+
__decorate$c([
|
|
759
759
|
Property('')
|
|
760
760
|
], RibbonItem.prototype, "keyTip", void 0);
|
|
761
|
-
__decorate$
|
|
761
|
+
__decorate$c([
|
|
762
762
|
Property(RibbonItemSize.Medium)
|
|
763
763
|
], RibbonItem.prototype, "activeSize", void 0);
|
|
764
|
-
__decorate$
|
|
764
|
+
__decorate$c([
|
|
765
765
|
Property(RibbonItemSize.Small | RibbonItemSize.Medium | RibbonItemSize.Large)
|
|
766
766
|
], RibbonItem.prototype, "allowedSizes", void 0);
|
|
767
|
-
__decorate$
|
|
767
|
+
__decorate$c([
|
|
768
768
|
Property('')
|
|
769
769
|
], RibbonItem.prototype, "id", void 0);
|
|
770
|
-
__decorate$
|
|
770
|
+
__decorate$c([
|
|
771
771
|
Property('')
|
|
772
772
|
], RibbonItem.prototype, "cssClass", void 0);
|
|
773
|
-
__decorate$
|
|
773
|
+
__decorate$c([
|
|
774
774
|
Property(false)
|
|
775
775
|
], RibbonItem.prototype, "disabled", void 0);
|
|
776
|
-
__decorate$
|
|
776
|
+
__decorate$c([
|
|
777
777
|
Property('')
|
|
778
778
|
], RibbonItem.prototype, "itemTemplate", void 0);
|
|
779
|
-
__decorate$
|
|
779
|
+
__decorate$c([
|
|
780
780
|
Property('Button')
|
|
781
781
|
], RibbonItem.prototype, "type", void 0);
|
|
782
|
-
__decorate$
|
|
782
|
+
__decorate$c([
|
|
783
783
|
Property(DisplayMode.Auto)
|
|
784
784
|
], RibbonItem.prototype, "displayOptions", void 0);
|
|
785
|
-
__decorate$
|
|
785
|
+
__decorate$c([
|
|
786
786
|
Complex({}, RibbonTooltip)
|
|
787
787
|
], RibbonItem.prototype, "ribbonTooltipSettings", void 0);
|
|
788
|
-
__decorate$
|
|
788
|
+
__decorate$c([
|
|
789
789
|
Complex({}, RibbonButtonSettings)
|
|
790
790
|
], RibbonItem.prototype, "buttonSettings", void 0);
|
|
791
|
-
__decorate$
|
|
791
|
+
__decorate$c([
|
|
792
792
|
Complex({}, RibbonDropDownSettings)
|
|
793
793
|
], RibbonItem.prototype, "dropDownSettings", void 0);
|
|
794
|
-
__decorate$
|
|
794
|
+
__decorate$c([
|
|
795
795
|
Complex({}, RibbonCheckBoxSettings)
|
|
796
796
|
], RibbonItem.prototype, "checkBoxSettings", void 0);
|
|
797
|
-
__decorate$
|
|
797
|
+
__decorate$c([
|
|
798
798
|
Complex({}, RibbonColorPickerSettings)
|
|
799
799
|
], RibbonItem.prototype, "colorPickerSettings", void 0);
|
|
800
|
-
__decorate$
|
|
800
|
+
__decorate$c([
|
|
801
801
|
Complex({}, RibbonComboBoxSettings)
|
|
802
802
|
], RibbonItem.prototype, "comboBoxSettings", void 0);
|
|
803
|
-
__decorate$
|
|
803
|
+
__decorate$c([
|
|
804
804
|
Complex({}, RibbonSplitButtonSettings)
|
|
805
805
|
], RibbonItem.prototype, "splitButtonSettings", void 0);
|
|
806
|
-
__decorate$
|
|
806
|
+
__decorate$c([
|
|
807
807
|
Complex({}, RibbonGroupButtonSettings)
|
|
808
808
|
], RibbonItem.prototype, "groupButtonSettings", void 0);
|
|
809
|
-
__decorate$
|
|
809
|
+
__decorate$c([
|
|
810
810
|
Complex({}, RibbonGallerySettings)
|
|
811
811
|
], RibbonItem.prototype, "gallerySettings", void 0);
|
|
812
812
|
|
|
813
|
-
var __decorate$
|
|
813
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
814
814
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
815
815
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
816
816
|
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;
|
|
@@ -830,17 +830,17 @@ class RibbonCollection extends ChildProperty {
|
|
|
830
830
|
super.setProperties(prop, muteOnChange);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
__decorate$
|
|
833
|
+
__decorate$d([
|
|
834
834
|
Property('')
|
|
835
835
|
], RibbonCollection.prototype, "id", void 0);
|
|
836
|
-
__decorate$
|
|
836
|
+
__decorate$d([
|
|
837
837
|
Property('')
|
|
838
838
|
], RibbonCollection.prototype, "cssClass", void 0);
|
|
839
|
-
__decorate$
|
|
839
|
+
__decorate$d([
|
|
840
840
|
Collection([], RibbonItem)
|
|
841
841
|
], RibbonCollection.prototype, "items", void 0);
|
|
842
842
|
|
|
843
|
-
var __decorate$
|
|
843
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
844
844
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
845
845
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
846
846
|
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,50 +860,50 @@ class RibbonGroup extends ChildProperty {
|
|
|
860
860
|
super.setProperties(prop, muteOnChange);
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
__decorate$
|
|
863
|
+
__decorate$e([
|
|
864
864
|
Property('')
|
|
865
865
|
], RibbonGroup.prototype, "keyTip", void 0);
|
|
866
|
-
__decorate$
|
|
866
|
+
__decorate$e([
|
|
867
867
|
Property('')
|
|
868
868
|
], RibbonGroup.prototype, "launcherIconKeyTip", void 0);
|
|
869
|
-
__decorate$
|
|
869
|
+
__decorate$e([
|
|
870
870
|
Collection([], RibbonCollection)
|
|
871
871
|
], RibbonGroup.prototype, "collections", void 0);
|
|
872
|
-
__decorate$
|
|
872
|
+
__decorate$e([
|
|
873
873
|
Property('')
|
|
874
874
|
], RibbonGroup.prototype, "cssClass", void 0);
|
|
875
|
-
__decorate$
|
|
875
|
+
__decorate$e([
|
|
876
876
|
Property('')
|
|
877
877
|
], RibbonGroup.prototype, "id", void 0);
|
|
878
|
-
__decorate$
|
|
878
|
+
__decorate$e([
|
|
879
879
|
Property(false)
|
|
880
880
|
], RibbonGroup.prototype, "isCollapsed", void 0);
|
|
881
|
-
__decorate$
|
|
881
|
+
__decorate$e([
|
|
882
882
|
Property(true)
|
|
883
883
|
], RibbonGroup.prototype, "isCollapsible", void 0);
|
|
884
|
-
__decorate$
|
|
884
|
+
__decorate$e([
|
|
885
885
|
Property(false)
|
|
886
886
|
], RibbonGroup.prototype, "enableGroupOverflow", void 0);
|
|
887
|
-
__decorate$
|
|
887
|
+
__decorate$e([
|
|
888
888
|
Property('')
|
|
889
889
|
], RibbonGroup.prototype, "groupIconCss", void 0);
|
|
890
|
-
__decorate$
|
|
890
|
+
__decorate$e([
|
|
891
891
|
Property('')
|
|
892
892
|
], RibbonGroup.prototype, "header", void 0);
|
|
893
|
-
__decorate$
|
|
893
|
+
__decorate$e([
|
|
894
894
|
Property('Column')
|
|
895
895
|
], RibbonGroup.prototype, "orientation", void 0);
|
|
896
|
-
__decorate$
|
|
896
|
+
__decorate$e([
|
|
897
897
|
Property('')
|
|
898
898
|
], RibbonGroup.prototype, "overflowHeader", void 0);
|
|
899
|
-
__decorate$
|
|
899
|
+
__decorate$e([
|
|
900
900
|
Property(0)
|
|
901
901
|
], RibbonGroup.prototype, "priority", void 0);
|
|
902
|
-
__decorate$
|
|
902
|
+
__decorate$e([
|
|
903
903
|
Property(false)
|
|
904
904
|
], RibbonGroup.prototype, "showLauncherIcon", void 0);
|
|
905
905
|
|
|
906
|
-
var __decorate$
|
|
906
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
907
907
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
908
908
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
909
909
|
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;
|
|
@@ -923,23 +923,23 @@ class RibbonTab extends ChildProperty {
|
|
|
923
923
|
super.setProperties(prop, muteOnChange);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
__decorate$
|
|
926
|
+
__decorate$f([
|
|
927
927
|
Property('')
|
|
928
928
|
], RibbonTab.prototype, "keyTip", void 0);
|
|
929
|
-
__decorate$
|
|
929
|
+
__decorate$f([
|
|
930
930
|
Property('')
|
|
931
931
|
], RibbonTab.prototype, "id", void 0);
|
|
932
|
-
__decorate$
|
|
932
|
+
__decorate$f([
|
|
933
933
|
Property('')
|
|
934
934
|
], RibbonTab.prototype, "cssClass", void 0);
|
|
935
|
-
__decorate$
|
|
935
|
+
__decorate$f([
|
|
936
936
|
Collection([], RibbonGroup)
|
|
937
937
|
], RibbonTab.prototype, "groups", void 0);
|
|
938
|
-
__decorate$
|
|
938
|
+
__decorate$f([
|
|
939
939
|
Property('')
|
|
940
940
|
], RibbonTab.prototype, "header", void 0);
|
|
941
941
|
|
|
942
|
-
var __decorate$
|
|
942
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
943
943
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
944
944
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
945
945
|
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;
|
|
@@ -959,53 +959,53 @@ class FileMenuSettings extends ChildProperty {
|
|
|
959
959
|
super.setProperties(prop, muteOnChange);
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
|
-
__decorate$
|
|
962
|
+
__decorate$g([
|
|
963
963
|
Property('File')
|
|
964
964
|
], FileMenuSettings.prototype, "text", void 0);
|
|
965
|
-
__decorate$
|
|
965
|
+
__decorate$g([
|
|
966
966
|
Property(false)
|
|
967
967
|
], FileMenuSettings.prototype, "visible", void 0);
|
|
968
|
-
__decorate$
|
|
968
|
+
__decorate$g([
|
|
969
969
|
Collection([], MenuItem)
|
|
970
970
|
], FileMenuSettings.prototype, "menuItems", void 0);
|
|
971
|
-
__decorate$
|
|
971
|
+
__decorate$g([
|
|
972
972
|
Property(false)
|
|
973
973
|
], FileMenuSettings.prototype, "showItemOnClick", void 0);
|
|
974
|
-
__decorate$
|
|
974
|
+
__decorate$g([
|
|
975
975
|
Complex({}, MenuAnimationSettings)
|
|
976
976
|
], FileMenuSettings.prototype, "animationSettings", void 0);
|
|
977
|
-
__decorate$
|
|
977
|
+
__decorate$g([
|
|
978
978
|
Property('')
|
|
979
979
|
], FileMenuSettings.prototype, "itemTemplate", void 0);
|
|
980
|
-
__decorate$
|
|
980
|
+
__decorate$g([
|
|
981
981
|
Property('')
|
|
982
982
|
], FileMenuSettings.prototype, "popupTemplate", void 0);
|
|
983
|
-
__decorate$
|
|
983
|
+
__decorate$g([
|
|
984
984
|
Complex({}, RibbonTooltip)
|
|
985
985
|
], FileMenuSettings.prototype, "ribbonTooltipSettings", void 0);
|
|
986
|
-
__decorate$
|
|
986
|
+
__decorate$g([
|
|
987
987
|
Event()
|
|
988
988
|
], FileMenuSettings.prototype, "beforeClose", void 0);
|
|
989
|
-
__decorate$
|
|
989
|
+
__decorate$g([
|
|
990
990
|
Event()
|
|
991
991
|
], FileMenuSettings.prototype, "beforeOpen", void 0);
|
|
992
|
-
__decorate$
|
|
992
|
+
__decorate$g([
|
|
993
993
|
Event()
|
|
994
994
|
], FileMenuSettings.prototype, "beforeItemRender", void 0);
|
|
995
|
-
__decorate$
|
|
995
|
+
__decorate$g([
|
|
996
996
|
Event()
|
|
997
997
|
], FileMenuSettings.prototype, "close", void 0);
|
|
998
|
-
__decorate$
|
|
998
|
+
__decorate$g([
|
|
999
999
|
Event()
|
|
1000
1000
|
], FileMenuSettings.prototype, "open", void 0);
|
|
1001
|
-
__decorate$
|
|
1001
|
+
__decorate$g([
|
|
1002
1002
|
Event()
|
|
1003
1003
|
], FileMenuSettings.prototype, "select", void 0);
|
|
1004
|
-
__decorate$
|
|
1004
|
+
__decorate$g([
|
|
1005
1005
|
Property('')
|
|
1006
1006
|
], FileMenuSettings.prototype, "keyTip", void 0);
|
|
1007
1007
|
|
|
1008
|
-
var __decorate$
|
|
1008
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1009
1009
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1010
1010
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1011
1011
|
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;
|
|
@@ -1016,17 +1016,17 @@ var __decorate$19 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1016
1016
|
*/
|
|
1017
1017
|
class BackstageBackButton extends ChildProperty {
|
|
1018
1018
|
}
|
|
1019
|
-
__decorate$
|
|
1019
|
+
__decorate$h([
|
|
1020
1020
|
Property('')
|
|
1021
1021
|
], BackstageBackButton.prototype, "text", void 0);
|
|
1022
|
-
__decorate$
|
|
1022
|
+
__decorate$h([
|
|
1023
1023
|
Property('')
|
|
1024
1024
|
], BackstageBackButton.prototype, "iconCss", void 0);
|
|
1025
|
-
__decorate$
|
|
1025
|
+
__decorate$h([
|
|
1026
1026
|
Property(true)
|
|
1027
1027
|
], BackstageBackButton.prototype, "visible", void 0);
|
|
1028
1028
|
|
|
1029
|
-
var __decorate$
|
|
1029
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1030
1030
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1031
1031
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1032
1032
|
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;
|
|
@@ -1037,32 +1037,32 @@ var __decorate$20 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
class BackstageItem extends ChildProperty {
|
|
1039
1039
|
}
|
|
1040
|
-
__decorate$
|
|
1040
|
+
__decorate$i([
|
|
1041
1041
|
Property('')
|
|
1042
1042
|
], BackstageItem.prototype, "text", void 0);
|
|
1043
|
-
__decorate$
|
|
1043
|
+
__decorate$i([
|
|
1044
1044
|
Property('')
|
|
1045
1045
|
], BackstageItem.prototype, "id", void 0);
|
|
1046
|
-
__decorate$
|
|
1046
|
+
__decorate$i([
|
|
1047
1047
|
Property('')
|
|
1048
1048
|
], BackstageItem.prototype, "keyTip", void 0);
|
|
1049
|
-
__decorate$
|
|
1049
|
+
__decorate$i([
|
|
1050
1050
|
Property('')
|
|
1051
1051
|
], BackstageItem.prototype, "content", void 0);
|
|
1052
|
-
__decorate$
|
|
1052
|
+
__decorate$i([
|
|
1053
1053
|
Property('')
|
|
1054
1054
|
], BackstageItem.prototype, "iconCss", void 0);
|
|
1055
|
-
__decorate$
|
|
1055
|
+
__decorate$i([
|
|
1056
1056
|
Property(false)
|
|
1057
1057
|
], BackstageItem.prototype, "separator", void 0);
|
|
1058
|
-
__decorate$
|
|
1058
|
+
__decorate$i([
|
|
1059
1059
|
Property(false)
|
|
1060
1060
|
], BackstageItem.prototype, "isFooter", void 0);
|
|
1061
|
-
__decorate$
|
|
1061
|
+
__decorate$i([
|
|
1062
1062
|
Event()
|
|
1063
1063
|
], BackstageItem.prototype, "backStageItemClick", void 0);
|
|
1064
1064
|
|
|
1065
|
-
var __decorate$
|
|
1065
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1066
1066
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1067
1067
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1068
1068
|
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;
|
|
@@ -1082,38 +1082,38 @@ class BackStageMenu extends ChildProperty {
|
|
|
1082
1082
|
super.setProperties(prop, muteOnChange);
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
|
-
__decorate$
|
|
1085
|
+
__decorate$j([
|
|
1086
1086
|
Property('File')
|
|
1087
1087
|
], BackStageMenu.prototype, "text", void 0);
|
|
1088
|
-
__decorate$
|
|
1088
|
+
__decorate$j([
|
|
1089
1089
|
Property('')
|
|
1090
1090
|
], BackStageMenu.prototype, "keyTip", void 0);
|
|
1091
|
-
__decorate$
|
|
1091
|
+
__decorate$j([
|
|
1092
1092
|
Property(false)
|
|
1093
1093
|
], BackStageMenu.prototype, "visible", void 0);
|
|
1094
|
-
__decorate$
|
|
1094
|
+
__decorate$j([
|
|
1095
1095
|
Property('auto')
|
|
1096
1096
|
], BackStageMenu.prototype, "height", void 0);
|
|
1097
|
-
__decorate$
|
|
1097
|
+
__decorate$j([
|
|
1098
1098
|
Property('auto')
|
|
1099
1099
|
], BackStageMenu.prototype, "width", void 0);
|
|
1100
|
-
__decorate$
|
|
1100
|
+
__decorate$j([
|
|
1101
1101
|
Property(null)
|
|
1102
1102
|
], BackStageMenu.prototype, "target", void 0);
|
|
1103
|
-
__decorate$
|
|
1103
|
+
__decorate$j([
|
|
1104
1104
|
Complex({}, BackstageBackButton)
|
|
1105
1105
|
], BackStageMenu.prototype, "backButton", void 0);
|
|
1106
|
-
__decorate$
|
|
1106
|
+
__decorate$j([
|
|
1107
1107
|
Collection([], BackstageItem)
|
|
1108
1108
|
], BackStageMenu.prototype, "items", void 0);
|
|
1109
|
-
__decorate$
|
|
1109
|
+
__decorate$j([
|
|
1110
1110
|
Property('')
|
|
1111
1111
|
], BackStageMenu.prototype, "template", void 0);
|
|
1112
|
-
__decorate$
|
|
1112
|
+
__decorate$j([
|
|
1113
1113
|
Complex({}, RibbonTooltip)
|
|
1114
1114
|
], BackStageMenu.prototype, "ribbonTooltipSettings", void 0);
|
|
1115
1115
|
|
|
1116
|
-
var __decorate$
|
|
1116
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1117
1117
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1118
1118
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1119
1119
|
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;
|
|
@@ -1133,18 +1133,16 @@ class RibbonContextualTabSettings extends ChildProperty {
|
|
|
1133
1133
|
super.setProperties(prop, muteOnChange);
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
|
-
__decorate$
|
|
1136
|
+
__decorate$k([
|
|
1137
1137
|
Property(false)
|
|
1138
1138
|
], RibbonContextualTabSettings.prototype, "visible", void 0);
|
|
1139
|
-
__decorate$
|
|
1139
|
+
__decorate$k([
|
|
1140
1140
|
Property(false)
|
|
1141
1141
|
], RibbonContextualTabSettings.prototype, "isSelected", void 0);
|
|
1142
|
-
__decorate$
|
|
1142
|
+
__decorate$k([
|
|
1143
1143
|
Collection([], RibbonTab)
|
|
1144
1144
|
], RibbonContextualTabSettings.prototype, "tabs", void 0);
|
|
1145
1145
|
|
|
1146
|
-
// export * from './file-menu';
|
|
1147
|
-
|
|
1148
1146
|
/**
|
|
1149
1147
|
* Specifies the File Manager internal ID's
|
|
1150
1148
|
*/
|
|
@@ -1399,7 +1397,12 @@ class RibbonButton {
|
|
|
1399
1397
|
btnSettings.clicked.call(this, e);
|
|
1400
1398
|
}
|
|
1401
1399
|
};
|
|
1402
|
-
|
|
1400
|
+
if (btnSettings.content) {
|
|
1401
|
+
buttonEle.setAttribute('aria-label', btnSettings.content);
|
|
1402
|
+
}
|
|
1403
|
+
else {
|
|
1404
|
+
buttonEle.setAttribute('aria-label', 'button');
|
|
1405
|
+
}
|
|
1403
1406
|
}
|
|
1404
1407
|
/**
|
|
1405
1408
|
* Adds the additional event handlers as the item moved into overflow popup.
|
|
@@ -1732,7 +1735,7 @@ class RibbonColorPicker {
|
|
|
1732
1735
|
* @hidden
|
|
1733
1736
|
*/
|
|
1734
1737
|
addOverFlowEvents(item, itemEle, overflowButton) {
|
|
1735
|
-
|
|
1738
|
+
const colorPickerSettings = item.colorPickerSettings;
|
|
1736
1739
|
if (colorPickerSettings.label && this.parent.activeLayout === 'Simplified') {
|
|
1737
1740
|
const label = this.parent.createElement('div', {
|
|
1738
1741
|
className: 'e-ribbon-colorpicker-label',
|
|
@@ -1770,7 +1773,7 @@ class RibbonColorPicker {
|
|
|
1770
1773
|
* @hidden
|
|
1771
1774
|
*/
|
|
1772
1775
|
removeOverFlowEvents(item, itemEle) {
|
|
1773
|
-
|
|
1776
|
+
const colorPickerSettings = item.colorPickerSettings;
|
|
1774
1777
|
if (colorPickerSettings.label) {
|
|
1775
1778
|
const label = itemEle.querySelector('#' + item.id + '_label');
|
|
1776
1779
|
if (label) {
|
|
@@ -3150,6 +3153,10 @@ class RibbonGroupButton {
|
|
|
3150
3153
|
}
|
|
3151
3154
|
if (groupBtnSettings.items[parseInt(i.toString(), 10)].content) {
|
|
3152
3155
|
groupButtonEle.classList.add(RIBBON_GROUP_BUTTON_CONTENT);
|
|
3156
|
+
groupButtonEle.setAttribute('aria-label', groupBtnSettings.items[parseInt(i.toString(), 10)].content);
|
|
3157
|
+
}
|
|
3158
|
+
else {
|
|
3159
|
+
groupButtonEle.setAttribute('aria-label', 'groupbuttonitem');
|
|
3153
3160
|
}
|
|
3154
3161
|
const buttonEle = itemElement.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + i);
|
|
3155
3162
|
if (groupBtnSettings.selection === RibbonGroupButtonSelection.Single) {
|
|
@@ -3268,7 +3275,8 @@ class RibbonGroupButton {
|
|
|
3268
3275
|
for (let j = 0; j < grpBtnSettings.items.length; j++) {
|
|
3269
3276
|
if (document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + j) && document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + j).classList.contains('e-active')) {
|
|
3270
3277
|
document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + j).classList.remove('e-active');
|
|
3271
|
-
grpBtnSettings.items[parseInt(j.toString(), 10)].
|
|
3278
|
+
grpBtnSettings.items[parseInt(j.toString(), 10)].
|
|
3279
|
+
setProperties({ selected: false }, true);
|
|
3272
3280
|
}
|
|
3273
3281
|
}
|
|
3274
3282
|
document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + itemIndex).classList.toggle('e-active');
|
|
@@ -3289,10 +3297,12 @@ class RibbonGroupButton {
|
|
|
3289
3297
|
}
|
|
3290
3298
|
document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + itemIndex).classList.toggle('e-active');
|
|
3291
3299
|
if (document.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID + itemIndex).classList.contains('e-active')) {
|
|
3292
|
-
grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].
|
|
3300
|
+
grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].
|
|
3301
|
+
setProperties({ selected: true }, true);
|
|
3293
3302
|
}
|
|
3294
3303
|
else {
|
|
3295
|
-
grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].
|
|
3304
|
+
grpBtnSettings.items[parseInt(itemIndex.toString(), 10)].
|
|
3305
|
+
setProperties({ selected: false }, true);
|
|
3296
3306
|
}
|
|
3297
3307
|
let activeEleCount = 0;
|
|
3298
3308
|
for (let n = 0; n < grpBtnSettings.items.length; n++) {
|
|
@@ -3494,6 +3504,7 @@ class RibbonGroupButton {
|
|
|
3494
3504
|
*
|
|
3495
3505
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
3496
3506
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
3507
|
+
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
3497
3508
|
* @returns {void}
|
|
3498
3509
|
* @hidden
|
|
3499
3510
|
*/
|
|
@@ -3597,7 +3608,12 @@ class RibbonGallery {
|
|
|
3597
3608
|
this.count = 0;
|
|
3598
3609
|
this.isAdded = false;
|
|
3599
3610
|
this.galleryItemsIndex = 0;
|
|
3611
|
+
this.registeredTemplate = {};
|
|
3600
3612
|
this.parent = parent;
|
|
3613
|
+
const ref = 'viewContainerRef';
|
|
3614
|
+
setValue('registeredTemplate', this.registeredTemplate, this);
|
|
3615
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3616
|
+
setValue(ref, this.parent[`${ref}`], this);
|
|
3601
3617
|
}
|
|
3602
3618
|
getModuleName() {
|
|
3603
3619
|
return 'ribbonGallery';
|
|
@@ -3620,21 +3636,27 @@ class RibbonGallery {
|
|
|
3620
3636
|
id: item.id + '_popupButton',
|
|
3621
3637
|
className: 'e-ribbon-gallery-button e-icons e-drop-icon'
|
|
3622
3638
|
});
|
|
3639
|
+
buttonEle.setAttribute('aria-label', 'gallerydropdownbutton');
|
|
3623
3640
|
itemEle.appendChild(buttonEle);
|
|
3624
3641
|
this.createPopup(item, buttonEle);
|
|
3625
3642
|
buttonEle.onclick = (args) => {
|
|
3626
|
-
|
|
3643
|
+
const popupEle = document.querySelector('#' + item.id + '_galleryPopup');
|
|
3627
3644
|
if (popupEle) {
|
|
3628
|
-
|
|
3629
|
-
popupEle.classList.contains('e-popup-close')
|
|
3645
|
+
const popup = getComponent(popupEle, Popup);
|
|
3646
|
+
if (popupEle.classList.contains('e-popup-close')) {
|
|
3647
|
+
this.showPopup(popup, popupEle, args, gallerySettings, item.id);
|
|
3648
|
+
}
|
|
3649
|
+
else {
|
|
3650
|
+
this.hidePopup(popup, popupEle, args, gallerySettings, item.id);
|
|
3651
|
+
}
|
|
3630
3652
|
}
|
|
3631
3653
|
};
|
|
3632
3654
|
document.onclick = (args) => {
|
|
3633
|
-
|
|
3655
|
+
const popupEle = document.querySelectorAll('.e-ribbon-gallery-popup.e-popup-open');
|
|
3634
3656
|
let popupID;
|
|
3635
3657
|
let itemProp;
|
|
3636
3658
|
for (let i = 0; i < popupEle.length; i++) {
|
|
3637
|
-
|
|
3659
|
+
const popup = getComponent(popupEle[parseInt(i.toString(), 10)], Popup);
|
|
3638
3660
|
if (args.target.classList.contains('e-ribbon-gallery-button')) {
|
|
3639
3661
|
popupID = (popupEle[parseInt(i.toString(), 10)].id).replace(/_galleryPopup/g, '');
|
|
3640
3662
|
if ((args.target.id).replace(/_popupButton/g, '') !== popupID) {
|
|
@@ -3659,7 +3681,7 @@ class RibbonGallery {
|
|
|
3659
3681
|
if (itemProp && itemProp.group) {
|
|
3660
3682
|
itemProp.group.isCollapsible = false;
|
|
3661
3683
|
}
|
|
3662
|
-
|
|
3684
|
+
const galleryWrapper = this.parent.createElement('div', {
|
|
3663
3685
|
className: 'e-ribbon-gallery-wrapper',
|
|
3664
3686
|
id: id + '_galleryWrapper'
|
|
3665
3687
|
});
|
|
@@ -3681,7 +3703,7 @@ class RibbonGallery {
|
|
|
3681
3703
|
for (let j = 0; j < gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
|
|
3682
3704
|
galleryEle = this.parent.createElement('li', {
|
|
3683
3705
|
className: 'e-ribbon-gallery-item',
|
|
3684
|
-
id: galleryContainerEle.id + '_gallery' + j,
|
|
3706
|
+
id: (isPopup ? 'popup_' : '') + galleryContainerEle.id + '_gallery' + j,
|
|
3685
3707
|
attrs: { 'tabindex': '0' }
|
|
3686
3708
|
});
|
|
3687
3709
|
const itemEventArgs = { name: 'beforeItemRender', item: gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)] };
|
|
@@ -3700,11 +3722,11 @@ class RibbonGallery {
|
|
|
3700
3722
|
}
|
|
3701
3723
|
this.count = this.count + 1;
|
|
3702
3724
|
galleryEle.onclick = (e) => {
|
|
3703
|
-
this.setActiveState(e.currentTarget, gallerySettings, id, true, e);
|
|
3725
|
+
this.setActiveState(e.currentTarget, gallerySettings, id, true, e, isPopup);
|
|
3704
3726
|
};
|
|
3705
3727
|
galleryEle.onkeydown = (e) => {
|
|
3706
3728
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
3707
|
-
this.setActiveState(e.currentTarget, gallerySettings, id, true, e);
|
|
3729
|
+
this.setActiveState(e.currentTarget, gallerySettings, id, true, e, isPopup);
|
|
3708
3730
|
}
|
|
3709
3731
|
};
|
|
3710
3732
|
galleryEle.onmouseover = (e) => {
|
|
@@ -3724,9 +3746,12 @@ class RibbonGallery {
|
|
|
3724
3746
|
galleryContainerEle.style.flexFlow = 'wrap';
|
|
3725
3747
|
}
|
|
3726
3748
|
}
|
|
3727
|
-
if ((!gallerySettings.template && !gallerySettings.popupTemplate) ||
|
|
3749
|
+
if ((!gallerySettings.template && !gallerySettings.popupTemplate) ||
|
|
3750
|
+
((gallerySettings.template && !gallerySettings.popupTemplate) && isPopup) ||
|
|
3751
|
+
((gallerySettings.popupTemplate && !gallerySettings.template) && !isPopup)) {
|
|
3728
3752
|
if (gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)].htmlAttributes) {
|
|
3729
|
-
setCustomAttributes(galleryEle, gallerySettings.groups[parseInt(i.toString(), 10)]
|
|
3753
|
+
setCustomAttributes(galleryEle, gallerySettings.groups[parseInt(i.toString(), 10)]
|
|
3754
|
+
.items[parseInt(j.toString(), 10)].htmlAttributes);
|
|
3730
3755
|
}
|
|
3731
3756
|
if (gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)].iconCss) {
|
|
3732
3757
|
const iconEle = this.parent.createElement('span', {
|
|
@@ -3765,9 +3790,14 @@ class RibbonGallery {
|
|
|
3765
3790
|
if (this.isAdded && !isPopup) {
|
|
3766
3791
|
break;
|
|
3767
3792
|
}
|
|
3768
|
-
!isPopup
|
|
3793
|
+
if (!isPopup) {
|
|
3794
|
+
galleryWrapper.appendChild(galleryContainerEle);
|
|
3795
|
+
}
|
|
3796
|
+
else {
|
|
3797
|
+
itemEle.appendChild(galleryContainerEle);
|
|
3798
|
+
}
|
|
3769
3799
|
if (isPopup && gallerySettings.groups[parseInt(i.toString(), 10)].header) {
|
|
3770
|
-
|
|
3800
|
+
const headerEle = (this.parent.createElement('div', {
|
|
3771
3801
|
className: 'e-ribbon-gallery-header',
|
|
3772
3802
|
innerHTML: gallerySettings.groups[parseInt(i.toString(), 10)].header
|
|
3773
3803
|
}));
|
|
@@ -3776,6 +3806,14 @@ class RibbonGallery {
|
|
|
3776
3806
|
}
|
|
3777
3807
|
this.count = 0;
|
|
3778
3808
|
this.isAdded = false;
|
|
3809
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3810
|
+
if (this.parent.isReact) {
|
|
3811
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3812
|
+
this.parent.portals = this.parent.portals.concat(this['portals']);
|
|
3813
|
+
this.parent['renderReactTemplates']();
|
|
3814
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3815
|
+
this['portals'] = undefined;
|
|
3816
|
+
}
|
|
3779
3817
|
}
|
|
3780
3818
|
setWrapperWidth(itemCount, galleryWrapper, gallerySettings, itemID) {
|
|
3781
3819
|
let count = 1;
|
|
@@ -3783,74 +3821,77 @@ class RibbonGallery {
|
|
|
3783
3821
|
let isWidthApplied = false;
|
|
3784
3822
|
for (let i = 0; i < gallerySettings.groups.length; i++) {
|
|
3785
3823
|
for (let j = 0; j < gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
|
|
3786
|
-
if (
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3824
|
+
if (itemCount >= count) {
|
|
3825
|
+
const galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + i + '_gallery' + j);
|
|
3826
|
+
if (galleryItemEle) {
|
|
3827
|
+
itemsWidth += galleryItemEle.offsetWidth;
|
|
3828
|
+
const itemStyles = window.getComputedStyle(galleryItemEle);
|
|
3829
|
+
if (itemStyles) {
|
|
3830
|
+
const paddingWidth = parseFloat(itemStyles.paddingLeft) + parseFloat(itemStyles.paddingRight);
|
|
3831
|
+
if (!(isNullOrUndefined(paddingWidth))) {
|
|
3832
|
+
itemsWidth += paddingWidth;
|
|
3833
|
+
}
|
|
3834
|
+
const marginWidth = parseFloat(itemStyles.marginLeft) + parseFloat(itemStyles.marginRight);
|
|
3835
|
+
if (!(isNullOrUndefined(marginWidth))) {
|
|
3836
|
+
itemsWidth += marginWidth;
|
|
3799
3837
|
}
|
|
3800
3838
|
}
|
|
3801
3839
|
}
|
|
3802
|
-
else {
|
|
3803
|
-
isWidthApplied = true;
|
|
3804
|
-
break;
|
|
3805
|
-
}
|
|
3806
|
-
count++;
|
|
3807
3840
|
}
|
|
3841
|
+
else {
|
|
3842
|
+
isWidthApplied = true;
|
|
3843
|
+
break;
|
|
3844
|
+
}
|
|
3845
|
+
count++;
|
|
3808
3846
|
}
|
|
3809
3847
|
if (isWidthApplied) {
|
|
3810
3848
|
break;
|
|
3811
3849
|
}
|
|
3812
3850
|
}
|
|
3813
|
-
if (itemsWidth > 0)
|
|
3851
|
+
if (itemsWidth > 0) {
|
|
3814
3852
|
galleryWrapper.style.width = itemsWidth + 'px';
|
|
3853
|
+
}
|
|
3815
3854
|
}
|
|
3816
3855
|
/**
|
|
3817
3856
|
* Checks the gallery items height.
|
|
3818
3857
|
*
|
|
3819
|
-
* @param {number} selectedTab - Gets the current selected tab.
|
|
3820
3858
|
* @param {HTMLElement} activeContent - Gets the current active content.
|
|
3821
3859
|
* @returns {void}
|
|
3822
3860
|
* @hidden
|
|
3823
3861
|
*/
|
|
3824
|
-
checkAvailableHeight(
|
|
3825
|
-
|
|
3862
|
+
checkAvailableHeight(activeContent) {
|
|
3863
|
+
const galleryWrapperItems = activeContent.querySelectorAll('.e-ribbon-gallery-wrapper');
|
|
3826
3864
|
for (let n = 0; n < galleryWrapperItems.length; n++) {
|
|
3865
|
+
let count = 0;
|
|
3866
|
+
let simplifiedItemsCount = 0;
|
|
3827
3867
|
let isHeight = false;
|
|
3828
|
-
|
|
3829
|
-
|
|
3868
|
+
const galleryWrapper = galleryWrapperItems[parseInt(n.toString(), 10)];
|
|
3869
|
+
const itemID = galleryWrapper.id.replace(/_galleryWrapper/g, '');
|
|
3830
3870
|
let galleryWrapperHeight = galleryWrapper.offsetHeight;
|
|
3831
|
-
let itemID = galleryWrapper.id.replace(/_galleryWrapper/g, '');
|
|
3832
3871
|
const itemProp = getItem(this.parent.tabs, itemID);
|
|
3833
3872
|
if (itemProp) {
|
|
3834
3873
|
this.setWrapperWidth(itemProp.item.gallerySettings.itemCount, galleryWrapper, itemProp.item.gallerySettings, itemID);
|
|
3835
3874
|
for (let i = 0; i < itemProp.item.gallerySettings.groups.length; i++) {
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
if (
|
|
3840
|
-
|
|
3875
|
+
for (let j = 0; j < itemProp.item.gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
|
|
3876
|
+
const galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + i + '_gallery' + j);
|
|
3877
|
+
if (galleryItemEle) {
|
|
3878
|
+
if (this.parent.activeLayout === 'Classic') {
|
|
3879
|
+
if (galleryItemEle.classList.contains('e-hidden')) {
|
|
3880
|
+
galleryItemEle.classList.remove('e-hidden');
|
|
3881
|
+
}
|
|
3841
3882
|
if (!isHeight) {
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
itemsValues += paddingWidth;
|
|
3849
|
-
let marginWidth = parseFloat(itemStyles.marginTop) + parseFloat(itemStyles.marginBottom);
|
|
3850
|
-
if (!(isNullOrUndefined(marginWidth)))
|
|
3851
|
-
itemsValues += marginWidth;
|
|
3883
|
+
let itemsValues = 0;
|
|
3884
|
+
const itemStyles = window.getComputedStyle(galleryItemEle);
|
|
3885
|
+
if (itemStyles) {
|
|
3886
|
+
const marginWidth = parseFloat(itemStyles.marginTop) + parseFloat(itemStyles.marginBottom);
|
|
3887
|
+
if (!(isNullOrUndefined(marginWidth))) {
|
|
3888
|
+
itemsValues += marginWidth;
|
|
3852
3889
|
}
|
|
3853
|
-
|
|
3890
|
+
}
|
|
3891
|
+
count++;
|
|
3892
|
+
if (itemProp.item.gallerySettings.itemCount === count) {
|
|
3893
|
+
count = 0;
|
|
3894
|
+
if (galleryWrapperHeight >= (galleryItemEle.offsetHeight + itemsValues)) {
|
|
3854
3895
|
galleryWrapperHeight -= (galleryItemEle.offsetHeight + itemsValues);
|
|
3855
3896
|
}
|
|
3856
3897
|
else {
|
|
@@ -3858,32 +3899,50 @@ class RibbonGallery {
|
|
|
3858
3899
|
galleryItemEle.remove();
|
|
3859
3900
|
}
|
|
3860
3901
|
}
|
|
3861
|
-
if (
|
|
3862
|
-
|
|
3902
|
+
else if (galleryWrapperHeight < (galleryItemEle.offsetHeight + itemsValues)) {
|
|
3903
|
+
isHeight = true;
|
|
3904
|
+
galleryItemEle.remove();
|
|
3863
3905
|
}
|
|
3864
3906
|
}
|
|
3865
3907
|
else {
|
|
3866
3908
|
galleryItemEle.remove();
|
|
3867
3909
|
}
|
|
3868
3910
|
}
|
|
3911
|
+
else {
|
|
3912
|
+
simplifiedItemsCount++;
|
|
3913
|
+
if (simplifiedItemsCount > itemProp.item.gallerySettings.itemCount) {
|
|
3914
|
+
galleryItemEle.classList.add('e-hidden');
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3869
3917
|
}
|
|
3870
3918
|
}
|
|
3871
3919
|
}
|
|
3872
3920
|
}
|
|
3873
3921
|
}
|
|
3874
3922
|
}
|
|
3875
|
-
|
|
3923
|
+
/**
|
|
3924
|
+
* Checks the popup collision.
|
|
3925
|
+
*
|
|
3926
|
+
* @param {Popup} popup - Gets the popup.
|
|
3927
|
+
* @param {HTMLElement} popupEle - Gets the popup element.
|
|
3928
|
+
* @param {number} offsetValue - Gets the offset value of gallery popup button.
|
|
3929
|
+
* @returns {void}
|
|
3930
|
+
* @hidden
|
|
3931
|
+
*/
|
|
3932
|
+
checkCollision(popup, popupEle, offsetValue = 0) {
|
|
3876
3933
|
let paddingWidth = 0;
|
|
3877
3934
|
let marginWidth = 0;
|
|
3878
3935
|
if (popupEle) {
|
|
3879
|
-
|
|
3880
|
-
let
|
|
3936
|
+
const windowWidth = window.innerWidth;
|
|
3937
|
+
let screenWidth = offsetValue === 0 ? windowWidth : Math.abs(windowWidth - (windowWidth - offsetValue));
|
|
3938
|
+
const paddingStyles = window.getComputedStyle(popupEle);
|
|
3881
3939
|
if (paddingStyles) {
|
|
3882
3940
|
paddingWidth = parseFloat(paddingStyles.paddingLeft) + parseFloat(paddingStyles.paddingRight);
|
|
3883
|
-
if (!(isNullOrUndefined(paddingWidth)))
|
|
3941
|
+
if (!(isNullOrUndefined(paddingWidth))) {
|
|
3884
3942
|
screenWidth = screenWidth - paddingWidth;
|
|
3943
|
+
}
|
|
3885
3944
|
}
|
|
3886
|
-
|
|
3945
|
+
const popupContainerItems = popupEle.querySelectorAll('.e-ribbon-gallery-container');
|
|
3887
3946
|
if (popup.width !== 'auto') {
|
|
3888
3947
|
popupContainerItems.forEach((ele) => {
|
|
3889
3948
|
ele.style.flexFlow = 'wrap';
|
|
@@ -3893,15 +3952,16 @@ class RibbonGallery {
|
|
|
3893
3952
|
for (let i = 0; i < popupContainerItems.length; i++) {
|
|
3894
3953
|
let itemsWidth = 0;
|
|
3895
3954
|
for (let j = 0; j < popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item').length; j++) {
|
|
3896
|
-
|
|
3897
|
-
if (
|
|
3898
|
-
marginWidth = parseFloat(
|
|
3899
|
-
if (!(isNullOrUndefined(marginWidth)))
|
|
3955
|
+
const popupItemStyles = window.getComputedStyle(popupContainerItems[parseInt(i.toString(), 10)].querySelectorAll('.e-ribbon-gallery-item')[parseInt(j.toString(), 10)]);
|
|
3956
|
+
if (popupItemStyles) {
|
|
3957
|
+
marginWidth = parseFloat(popupItemStyles.marginLeft) + parseFloat(popupItemStyles.marginRight);
|
|
3958
|
+
if (!(isNullOrUndefined(marginWidth))) {
|
|
3900
3959
|
itemsWidth += marginWidth;
|
|
3960
|
+
}
|
|
3901
3961
|
}
|
|
3902
|
-
itemsWidth +=
|
|
3962
|
+
itemsWidth += Math.round(parseFloat(popupItemStyles.width));
|
|
3903
3963
|
if (((screenWidth <= itemsWidth) && popup.width === 'auto') || ((popup.width !== 'auto') && (screenWidth <= parseInt(popup.width.toString(), 10)) && (screenWidth <= itemsWidth))) {
|
|
3904
|
-
popupEle.style.width = ((itemsWidth + Math.abs(paddingWidth - marginWidth)) -
|
|
3964
|
+
popupEle.style.width = ((itemsWidth + Math.abs(paddingWidth - marginWidth)) - Math.round(parseFloat(popupItemStyles.width))) + 'px';
|
|
3905
3965
|
isCollideOccurs = true;
|
|
3906
3966
|
break;
|
|
3907
3967
|
}
|
|
@@ -3910,6 +3970,9 @@ class RibbonGallery {
|
|
|
3910
3970
|
popupContainerItems.forEach((ele) => {
|
|
3911
3971
|
ele.style.flexFlow = 'wrap';
|
|
3912
3972
|
});
|
|
3973
|
+
if (popup.height === 'auto') {
|
|
3974
|
+
this.setGalleryPopupHeight(popupEle, parseFloat(paddingStyles.height), parseFloat(paddingStyles.top));
|
|
3975
|
+
}
|
|
3913
3976
|
break;
|
|
3914
3977
|
}
|
|
3915
3978
|
}
|
|
@@ -3923,11 +3986,22 @@ class RibbonGallery {
|
|
|
3923
3986
|
else {
|
|
3924
3987
|
popupEle.style.width = (popup.width).toString();
|
|
3925
3988
|
}
|
|
3989
|
+
if (popup.height === 'auto') {
|
|
3990
|
+
this.setGalleryPopupHeight(popupEle, parseFloat(paddingStyles.height), parseFloat(paddingStyles.top));
|
|
3991
|
+
}
|
|
3926
3992
|
}
|
|
3927
3993
|
}
|
|
3928
3994
|
}
|
|
3995
|
+
setGalleryPopupHeight(popupEle, popupHeight, popupTop) {
|
|
3996
|
+
if (window.innerHeight < popupHeight || window.innerHeight < Math.round(popupHeight + popupTop)) {
|
|
3997
|
+
popupEle.style.height = (window.innerHeight - popupTop) + 'px';
|
|
3998
|
+
}
|
|
3999
|
+
else {
|
|
4000
|
+
popupEle.style.height = 'auto';
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
3929
4003
|
createPopup(item, buttonEle) {
|
|
3930
|
-
|
|
4004
|
+
const popupContainer = this.parent.createElement('div', {
|
|
3931
4005
|
className: 'e-ribbon-popup-container',
|
|
3932
4006
|
id: item.id + '_popupContainer'
|
|
3933
4007
|
});
|
|
@@ -3959,16 +4033,19 @@ class RibbonGallery {
|
|
|
3959
4033
|
* @hidden
|
|
3960
4034
|
*/
|
|
3961
4035
|
switchGalleryItems(activeLayout, itemID) {
|
|
3962
|
-
|
|
3963
|
-
let count = 0;
|
|
4036
|
+
const itemEle = this.parent.element.querySelector('#' + itemID + CONTAINER_ID);
|
|
3964
4037
|
const itemProp = getItem(this.parent.tabs, itemID);
|
|
3965
4038
|
if (itemEle) {
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
let galleryContainer = itemEle.querySelectorAll('.e-ribbon-gallery-container');
|
|
4039
|
+
const galleryIcons = itemEle.querySelectorAll('.e-ribbon-gallery-icons');
|
|
4040
|
+
const galleryContainer = itemEle.querySelectorAll('.e-ribbon-gallery-container');
|
|
3969
4041
|
if (galleryIcons.length) {
|
|
3970
4042
|
for (let i = 0; i < galleryIcons.length; i++) {
|
|
3971
|
-
activeLayout === 'Simplified'
|
|
4043
|
+
if (activeLayout === 'Simplified') {
|
|
4044
|
+
galleryIcons[parseInt(i.toString(), 10)].classList.add('e-hidden');
|
|
4045
|
+
}
|
|
4046
|
+
else {
|
|
4047
|
+
galleryIcons[parseInt(i.toString(), 10)].classList.remove('e-hidden');
|
|
4048
|
+
}
|
|
3972
4049
|
}
|
|
3973
4050
|
}
|
|
3974
4051
|
if (galleryContainer.length && itemProp) {
|
|
@@ -3976,24 +4053,20 @@ class RibbonGallery {
|
|
|
3976
4053
|
for (let i = 0; i < galleryContainer.length; i++) {
|
|
3977
4054
|
if (itemProp.item.gallerySettings.groups[parseInt(n.toString(), 10)].itemHeight && itemProp.item.gallerySettings.groups[parseInt(n.toString(), 10)].itemHeight !== 'auto') {
|
|
3978
4055
|
if (itemID + '_galleryContainer' + n === galleryContainer[parseInt(i.toString(), 10)].id) {
|
|
3979
|
-
activeLayout === 'Simplified'
|
|
4056
|
+
if (activeLayout === 'Simplified') {
|
|
4057
|
+
galleryContainer[parseInt(i.toString(), 10)].style.flexFlow = 'nowrap';
|
|
4058
|
+
}
|
|
4059
|
+
else {
|
|
4060
|
+
galleryContainer[parseInt(i.toString(), 10)].style.flexFlow = 'wrap';
|
|
4061
|
+
}
|
|
3980
4062
|
}
|
|
3981
4063
|
}
|
|
3982
4064
|
}
|
|
3983
4065
|
}
|
|
3984
4066
|
}
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
count++;
|
|
3989
|
-
if (count > itemProp.item.gallerySettings.itemCount) {
|
|
3990
|
-
let galleryItemEle = galleryWrapper.querySelector('#' + itemID + '_galleryContainer' + n + '_gallery' + i);
|
|
3991
|
-
if (galleryItemEle) {
|
|
3992
|
-
activeLayout === 'Simplified' ? galleryItemEle.classList.add('e-hidden') : galleryItemEle.classList.remove('e-hidden');
|
|
3993
|
-
}
|
|
3994
|
-
}
|
|
3995
|
-
}
|
|
3996
|
-
}
|
|
4067
|
+
const activeContent = this.parent.tabObj.element.querySelector('#' + this.parent.tabs[this.parent.selectedTab].id + CONTENT_ID);
|
|
4068
|
+
if (activeContent) {
|
|
4069
|
+
this.checkAvailableHeight(activeContent);
|
|
3997
4070
|
}
|
|
3998
4071
|
}
|
|
3999
4072
|
}
|
|
@@ -4002,26 +4075,26 @@ class RibbonGallery {
|
|
|
4002
4075
|
*
|
|
4003
4076
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
4004
4077
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
4005
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
4006
4078
|
* @returns {void}
|
|
4007
4079
|
* @hidden
|
|
4008
4080
|
*/
|
|
4009
|
-
addOverFlowEvents(item, itemEle
|
|
4081
|
+
addOverFlowEvents(item, itemEle) {
|
|
4010
4082
|
if (itemEle.closest('.e-ribbon-overflow-target')) {
|
|
4011
4083
|
const buttonEle = this.parent.createElement('button', {
|
|
4012
|
-
id: item.id
|
|
4084
|
+
id: item.id
|
|
4013
4085
|
});
|
|
4014
4086
|
itemEle.appendChild(buttonEle);
|
|
4015
4087
|
itemEle.querySelector('.e-ribbon-gallery-wrapper').classList.add('e-hidden');
|
|
4016
4088
|
itemEle.querySelectorAll('.e-ribbon-gallery-container').forEach((ele) => {
|
|
4017
4089
|
ele.classList.add('e-hidden');
|
|
4018
4090
|
});
|
|
4019
|
-
|
|
4020
|
-
if (popupButton)
|
|
4091
|
+
const popupButton = itemEle.querySelector('#' + item.id + '_popupButton');
|
|
4092
|
+
if (popupButton) {
|
|
4021
4093
|
popupButton.classList.add('e-hidden');
|
|
4094
|
+
}
|
|
4022
4095
|
const itemProp = getItem(this.parent.tabs, item.id);
|
|
4023
4096
|
let iconCss = itemProp && itemProp.group.groupIconCss ? itemProp.group.groupIconCss : '';
|
|
4024
|
-
|
|
4097
|
+
const content = itemProp && itemProp.group.header ? itemProp.group.header : '';
|
|
4025
4098
|
if (!iconCss) {
|
|
4026
4099
|
for (let i = 0; i < item.gallerySettings.groups.length; i++) {
|
|
4027
4100
|
for (let j = 0; j < item.gallerySettings.groups[parseInt(i.toString(), 10)].items.length; j++) {
|
|
@@ -4035,9 +4108,9 @@ class RibbonGallery {
|
|
|
4035
4108
|
}
|
|
4036
4109
|
}
|
|
4037
4110
|
}
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4111
|
+
const popupEle = document.querySelector('#' + item.id + '_galleryPopup');
|
|
4112
|
+
const popup = getComponent(popupEle, Popup);
|
|
4113
|
+
const popupContainerEle = document.querySelector('#' + item.id + '_galleryPopup .e-ribbon-popup-container');
|
|
4041
4114
|
const dropdown = new DropDownButton({
|
|
4042
4115
|
iconCss: iconCss,
|
|
4043
4116
|
content: content,
|
|
@@ -4047,7 +4120,6 @@ class RibbonGallery {
|
|
|
4047
4120
|
disabled: item.disabled,
|
|
4048
4121
|
open: () => {
|
|
4049
4122
|
this.setFoucsToFirstItem(popupContainerEle, true, item.id);
|
|
4050
|
-
this.checkCollision(dropdown.dropDown, dropdown.dropDown.element);
|
|
4051
4123
|
},
|
|
4052
4124
|
beforeClose: (args) => {
|
|
4053
4125
|
const isCancelled = this.popupEvents(args.event, item.gallerySettings, 'popupClose', false);
|
|
@@ -4074,7 +4146,7 @@ class RibbonGallery {
|
|
|
4074
4146
|
* @hidden
|
|
4075
4147
|
*/
|
|
4076
4148
|
removeOverFlowEvents(item, itemEle) {
|
|
4077
|
-
|
|
4149
|
+
const popupButton = itemEle.querySelector('#' + item.id + '_popupButton');
|
|
4078
4150
|
if (popupButton) {
|
|
4079
4151
|
popupButton.classList.remove('e-hidden');
|
|
4080
4152
|
}
|
|
@@ -4084,20 +4156,20 @@ class RibbonGallery {
|
|
|
4084
4156
|
});
|
|
4085
4157
|
const galleryDDBEle = document.querySelector('#' + item.id);
|
|
4086
4158
|
if (galleryDDBEle) {
|
|
4087
|
-
|
|
4159
|
+
const popupEle = document.querySelector('#' + item.id + '_galleryPopup');
|
|
4088
4160
|
const dropdown = getComponent(galleryDDBEle, DropDownButton);
|
|
4089
4161
|
popupEle.appendChild(dropdown.target);
|
|
4090
4162
|
dropdown.destroy();
|
|
4091
4163
|
remove(galleryDDBEle);
|
|
4092
4164
|
}
|
|
4093
4165
|
}
|
|
4094
|
-
setActiveState(galleryEle, gallerySettings, itemID, isInteracted, event) {
|
|
4166
|
+
setActiveState(galleryEle, gallerySettings, itemID, isInteracted, event, isPopup) {
|
|
4095
4167
|
let previousItem;
|
|
4096
4168
|
let currentItem;
|
|
4097
|
-
|
|
4169
|
+
const itemEle = document.querySelector('#' + itemID + CONTAINER_ID);
|
|
4098
4170
|
let selctedGalleryItem = Array.prototype.slice.call(itemEle.querySelectorAll('.e-ribbon-gallery-selected'));
|
|
4099
|
-
|
|
4100
|
-
|
|
4171
|
+
const popupEle = document.querySelector('#' + itemID + '_popupContainer');
|
|
4172
|
+
const popupGalleryItem = Array.prototype.slice.call(popupEle.querySelectorAll('.e-ribbon-gallery-selected'));
|
|
4101
4173
|
if (popupGalleryItem.length) {
|
|
4102
4174
|
selctedGalleryItem = selctedGalleryItem.concat(popupGalleryItem);
|
|
4103
4175
|
}
|
|
@@ -4106,12 +4178,13 @@ class RibbonGallery {
|
|
|
4106
4178
|
if (selctedGalleryItem[0].id === itemID + '_galleryContainer' + i + '_gallery' + j) {
|
|
4107
4179
|
previousItem = gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)];
|
|
4108
4180
|
}
|
|
4109
|
-
if (galleryEle.id === itemID + '_galleryContainer' + i + '_gallery' + j) {
|
|
4181
|
+
if (galleryEle.id === (isPopup ? 'popup_' : '') + itemID + '_galleryContainer' + i + '_gallery' + j) {
|
|
4110
4182
|
currentItem = gallerySettings.groups[parseInt(i.toString(), 10)].items[parseInt(j.toString(), 10)];
|
|
4111
4183
|
}
|
|
4112
4184
|
}
|
|
4113
4185
|
}
|
|
4114
|
-
|
|
4186
|
+
const galleryItem = document.getElementById(galleryEle.id);
|
|
4187
|
+
let galleryItemPopup;
|
|
4115
4188
|
const selectingEventArgs = { cancel: false, name: 'beforeSelect', previousItem: previousItem, currentItem: currentItem, isInteracted: isInteracted, event: event };
|
|
4116
4189
|
if (gallerySettings.beforeSelect) {
|
|
4117
4190
|
gallerySettings.beforeSelect.call(this, selectingEventArgs);
|
|
@@ -4123,11 +4196,18 @@ class RibbonGallery {
|
|
|
4123
4196
|
for (let i = 0; i < selctedGalleryItem.length; i++) {
|
|
4124
4197
|
selctedGalleryItem[parseInt(i.toString(), 10)].classList.remove('e-ribbon-gallery-selected');
|
|
4125
4198
|
}
|
|
4126
|
-
|
|
4127
|
-
|
|
4199
|
+
if (!galleryItem.id.startsWith('popup_')) {
|
|
4200
|
+
galleryItemPopup = document.getElementById('popup_' + galleryEle.id);
|
|
4201
|
+
}
|
|
4202
|
+
else if (document.getElementById(galleryItem.id.slice(6))) {
|
|
4203
|
+
galleryItemPopup = document.getElementById(galleryItem.id.slice(6));
|
|
4204
|
+
}
|
|
4205
|
+
if (galleryItemPopup) {
|
|
4206
|
+
galleryItemPopup.classList.add('e-ribbon-gallery-selected');
|
|
4128
4207
|
}
|
|
4208
|
+
galleryItem.classList.add('e-ribbon-gallery-selected');
|
|
4129
4209
|
const selectedEventArgs = { previousItem: previousItem, currentItem: currentItem, name: 'select', isInteracted: isInteracted, event: event };
|
|
4130
|
-
|
|
4210
|
+
const galleryPopupItems = document.querySelectorAll('#' + itemID + '_popupContainer .e-ribbon-gallery-item');
|
|
4131
4211
|
for (let i = 0; i < galleryPopupItems.length; i++) {
|
|
4132
4212
|
if (galleryPopupItems[parseInt(i.toString(), 10)].id === galleryEle.id) {
|
|
4133
4213
|
gallerySettings.selectedItemIndex = i;
|
|
@@ -4162,6 +4242,9 @@ class RibbonGallery {
|
|
|
4162
4242
|
const buttonEle = document.querySelector('#' + itemID + '_popupButton');
|
|
4163
4243
|
buttonEle.classList.add('e-gallery-button-active');
|
|
4164
4244
|
const buttonPosition = buttonEle.getBoundingClientRect();
|
|
4245
|
+
if (popupEle.offsetWidth > buttonPosition.left) {
|
|
4246
|
+
this.checkCollision(popup, popupEle, buttonPosition.left);
|
|
4247
|
+
}
|
|
4165
4248
|
const offsetX = Math.abs((popupEle.offsetWidth - buttonPosition.left)) + buttonEle.offsetWidth;
|
|
4166
4249
|
popupEle.style.left = offsetX + 'px';
|
|
4167
4250
|
popupEle.style.top = popupEle.getBoundingClientRect().top + 2 + 'px';
|
|
@@ -4184,8 +4267,8 @@ class RibbonGallery {
|
|
|
4184
4267
|
*/
|
|
4185
4268
|
showGalleryPopup(id) {
|
|
4186
4269
|
const itemProp = getItem(this.parent.tabs, id);
|
|
4187
|
-
|
|
4188
|
-
|
|
4270
|
+
const popupEle = document.querySelector('#' + id + '_galleryPopup');
|
|
4271
|
+
const popup = getComponent(popupEle, Popup);
|
|
4189
4272
|
this.showPopup(popup, popupEle, null, itemProp.item.gallerySettings, id);
|
|
4190
4273
|
}
|
|
4191
4274
|
/**
|
|
@@ -4196,8 +4279,8 @@ class RibbonGallery {
|
|
|
4196
4279
|
*/
|
|
4197
4280
|
hideGalleryPopup(id) {
|
|
4198
4281
|
const itemProp = getItem(this.parent.tabs, id);
|
|
4199
|
-
|
|
4200
|
-
|
|
4282
|
+
const popupEle = document.querySelector('#' + id + '_galleryPopup');
|
|
4283
|
+
const popup = getComponent(popupEle, Popup);
|
|
4201
4284
|
this.hidePopup(popup, popupEle, null, itemProp.item.gallerySettings, id);
|
|
4202
4285
|
}
|
|
4203
4286
|
setFoucsToFirstItem(popupEle, isDropdown, itemID, popup, gallerySettings) {
|
|
@@ -4208,7 +4291,7 @@ class RibbonGallery {
|
|
|
4208
4291
|
};
|
|
4209
4292
|
}
|
|
4210
4293
|
handleGalleryPopupNavigation(e, popupEle, isDropdown, itemID, popup, gallerySettings) {
|
|
4211
|
-
|
|
4294
|
+
const galleryPopupEle = popupEle.querySelectorAll('.e-ribbon-gallery-item');
|
|
4212
4295
|
if (galleryPopupEle) {
|
|
4213
4296
|
if (e.key === 'Home') {
|
|
4214
4297
|
this.galleryItemsIndex = 0;
|
|
@@ -4242,10 +4325,7 @@ class RibbonGallery {
|
|
|
4242
4325
|
galleryPopupEle[this.galleryItemsIndex].focus();
|
|
4243
4326
|
}
|
|
4244
4327
|
}
|
|
4245
|
-
else if (e.key === 'Enter' || e.code === 'Space') {
|
|
4246
|
-
galleryPopupEle[this.galleryItemsIndex].click();
|
|
4247
|
-
}
|
|
4248
|
-
else if (e.key === 'Escape' && !isDropdown) {
|
|
4328
|
+
else if ((e.key === 'Enter' || e.code === 'Space') || (e.key === 'Escape' && !isDropdown)) {
|
|
4249
4329
|
this.hidePopup(popup, popupEle, e, gallerySettings, itemID);
|
|
4250
4330
|
}
|
|
4251
4331
|
}
|
|
@@ -4261,8 +4341,7 @@ class RibbonGallery {
|
|
|
4261
4341
|
if (items.cssClass) {
|
|
4262
4342
|
galleryItemEle.classList.add(items.cssClass);
|
|
4263
4343
|
}
|
|
4264
|
-
append(templateFunction({ items: items }, this, templateName, (id + 'galleryTemplate'), this.parent.isStringTemplate), galleryItemEle);
|
|
4265
|
-
this.parent['renderReactTemplates']();
|
|
4344
|
+
append(templateFunction({ items: items }, this, templateName, (id + 'galleryTemplate'), this.parent.isStringTemplate, null, null, this.parent), galleryItemEle);
|
|
4266
4345
|
}
|
|
4267
4346
|
createGalleryPopupTemplate(galleryItemEle, gallerySettings, id, items) {
|
|
4268
4347
|
galleryItemEle.classList.add('e-ribbon-gallery-popup-template');
|
|
@@ -4275,12 +4354,11 @@ class RibbonGallery {
|
|
|
4275
4354
|
if (items.cssClass) {
|
|
4276
4355
|
galleryItemEle.classList.add(items.cssClass);
|
|
4277
4356
|
}
|
|
4278
|
-
append(templateFunction({ items: items }, this, templateName, (id + 'galleryPopupTemplate'), this.parent.isStringTemplate), galleryItemEle);
|
|
4279
|
-
this.parent['renderReactTemplates']();
|
|
4357
|
+
append(templateFunction({ items: items }, this, templateName, (id + 'galleryPopupTemplate'), this.parent.isStringTemplate, null, null, this.parent), galleryItemEle);
|
|
4280
4358
|
}
|
|
4281
4359
|
}
|
|
4282
4360
|
|
|
4283
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4361
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4284
4362
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4285
4363
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4286
4364
|
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;
|
|
@@ -4655,16 +4733,16 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4655
4733
|
}
|
|
4656
4734
|
}
|
|
4657
4735
|
}
|
|
4658
|
-
|
|
4736
|
+
const galleryPopupEle = document.querySelector('.e-ribbon-gallery-popup.e-popup-open');
|
|
4659
4737
|
if (galleryPopupEle) {
|
|
4660
|
-
|
|
4738
|
+
const popup = getComponent(galleryPopupEle, Popup);
|
|
4661
4739
|
popup.hide();
|
|
4662
4740
|
}
|
|
4663
4741
|
if (this.ribbonKeyTipModule && this.enableKeyTips) {
|
|
4664
4742
|
this.ribbonKeyTipModule.removeKeytip();
|
|
4665
4743
|
}
|
|
4666
4744
|
}
|
|
4667
|
-
mouseEventHandler(
|
|
4745
|
+
mouseEventHandler() {
|
|
4668
4746
|
if (this.ribbonKeyTipModule && this.enableKeyTips) {
|
|
4669
4747
|
this.ribbonKeyTipModule.removeKeytip();
|
|
4670
4748
|
}
|
|
@@ -4740,25 +4818,24 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4740
4818
|
addKeyTip(tabIndex, keyTip, id, type) {
|
|
4741
4819
|
if (this.keyTipElements && this.keyTipElements[parseInt(tabIndex.toString(), 10)]) {
|
|
4742
4820
|
let isKeyTipExist = false;
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
this.keyTipElements[parseInt(tabIndex.toString(), 10)][type] = [];
|
|
4821
|
+
if (!(this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`])) {
|
|
4822
|
+
this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`] = [];
|
|
4746
4823
|
}
|
|
4747
|
-
if (Object.keys(this.keyTipElements[tabIndex][type]).length) {
|
|
4748
|
-
|
|
4749
|
-
for (let i = 0; i < Object.keys(this.keyTipElements[tabIndex][type]).length; i++) {
|
|
4824
|
+
if (Object.keys(this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`]).length) {
|
|
4825
|
+
const keytipData = this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`];
|
|
4826
|
+
for (let i = 0; i < Object.keys(this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`]).length; i++) {
|
|
4750
4827
|
if (keytipData[parseInt(i.toString(), 10)].id === id) {
|
|
4751
4828
|
isKeyTipExist = true;
|
|
4752
4829
|
}
|
|
4753
4830
|
}
|
|
4754
4831
|
if (!isKeyTipExist) {
|
|
4755
|
-
this.keyTipElements[tabIndex
|
|
4832
|
+
this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`].
|
|
4833
|
+
push({ id: id, type: type, keyTip: keyTip });
|
|
4756
4834
|
}
|
|
4757
4835
|
}
|
|
4758
4836
|
else {
|
|
4759
|
-
this.keyTipElements[tabIndex][type].push({ id: id, type: type, keyTip: keyTip });
|
|
4837
|
+
this.keyTipElements[parseInt(tabIndex.toString(), 10)][`${type}`].push({ id: id, type: type, keyTip: keyTip });
|
|
4760
4838
|
}
|
|
4761
|
-
/* eslint-enable */
|
|
4762
4839
|
}
|
|
4763
4840
|
}
|
|
4764
4841
|
renderTabs() {
|
|
@@ -4826,7 +4903,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4826
4903
|
const selectedTabId = e.selectedItem.getAttribute('data-id');
|
|
4827
4904
|
let selectedIndex = getIndex(this.tabs, ((tab) => (tab.id === selectedTabId)));
|
|
4828
4905
|
selectedIndex = selectedIndex === -1 ? this.selectedTab : selectedIndex;
|
|
4829
|
-
|
|
4906
|
+
const selectedContent = this.tabObj.items[parseInt(selectedIndex.toString(), 10)].content;
|
|
4907
|
+
if ((!selectedContent.querySelector('.' + RIBBON_GROUP)) && (this.tabs[parseInt(selectedIndex.toString(), 10)].groups.length !== 0)) {
|
|
4908
|
+
const elements = this.createGroups(this.tabs[parseInt(selectedIndex.toString(), 10)].groups, selectedIndex);
|
|
4909
|
+
append(elements, selectedContent);
|
|
4910
|
+
}
|
|
4911
|
+
const isContextual = this.isContextualTab(selectedTabId);
|
|
4830
4912
|
this.updateSelectedState(selectedTabId);
|
|
4831
4913
|
const eventArgs = { previousIndex: this.selectedTab, selectedIndex: selectedIndex, isContextual: isContextual };
|
|
4832
4914
|
this.setProperties({ selectedTab: selectedIndex }, true);
|
|
@@ -4844,10 +4926,10 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4844
4926
|
this.isUpdateItems = false;
|
|
4845
4927
|
}
|
|
4846
4928
|
}
|
|
4847
|
-
this.
|
|
4848
|
-
|
|
4849
|
-
this.ribbonGalleryModule.checkAvailableHeight(selectedIndex, e.selectedContent.firstChild);
|
|
4929
|
+
if (this.ribbonGalleryModule) {
|
|
4930
|
+
this.ribbonGalleryModule.checkAvailableHeight(e.selectedContent.firstChild);
|
|
4850
4931
|
}
|
|
4932
|
+
this.checkOverflow(selectedIndex, selectedContent);
|
|
4851
4933
|
if (this.activeLayout === 'Simplified' && this.overflowDDB) {
|
|
4852
4934
|
const overflowTarget = this.overflowDDB.target;
|
|
4853
4935
|
const ofTabContainer = overflowTarget.querySelector('.' + RIBBON_TAB_ACTIVE);
|
|
@@ -4876,7 +4958,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4876
4958
|
break;
|
|
4877
4959
|
}
|
|
4878
4960
|
}
|
|
4879
|
-
this.contextualTabs[parseInt(i.toString(), 10)].
|
|
4961
|
+
this.contextualTabs[parseInt(i.toString(), 10)].
|
|
4962
|
+
setProperties({ isSelected: isSelected }, true);
|
|
4880
4963
|
}
|
|
4881
4964
|
}
|
|
4882
4965
|
}
|
|
@@ -5074,7 +5157,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5074
5157
|
item.setProperties({ activeSize: RibbonItemSize.Medium }, true);
|
|
5075
5158
|
this.setItemSize(itemEle, item);
|
|
5076
5159
|
}
|
|
5077
|
-
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
5160
|
+
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
5161
|
+
(item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
|
|
5078
5162
|
this.updatePopupItems(item, itemContainer, group.enableGroupOverflow, true);
|
|
5079
5163
|
}
|
|
5080
5164
|
}
|
|
@@ -5083,7 +5167,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5083
5167
|
if (!(group.enableGroupOverflow || groupEle.querySelector('.' + RIBBON_ITEM))) {
|
|
5084
5168
|
groupEle.classList.add('e-ribbon-emptyCollection');
|
|
5085
5169
|
}
|
|
5086
|
-
|
|
5170
|
+
const itemsLength = groupEle.querySelectorAll('.' + RIBBON_ITEM);
|
|
5087
5171
|
if (itemsLength && !group.enableGroupOverflow) {
|
|
5088
5172
|
isEmptyCollection = this.checkEmptyCollection(itemsLength);
|
|
5089
5173
|
if (isEmptyCollection) {
|
|
@@ -5115,6 +5199,9 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5115
5199
|
if (isMenu) {
|
|
5116
5200
|
dropdown.beforeOpen = () => {
|
|
5117
5201
|
if (isLeft) {
|
|
5202
|
+
if (item.type === RibbonItemType.Gallery && this.ribbonGalleryModule) {
|
|
5203
|
+
this.ribbonGalleryModule.checkCollision(dropDownPopup, dropDownPopup.element);
|
|
5204
|
+
}
|
|
5118
5205
|
dropDownPopup.element.style.setProperty('visibility', 'hidden');
|
|
5119
5206
|
dropDownPopup.element.style.setProperty('display', 'block');
|
|
5120
5207
|
dropDownPopup.setProperties({ offsetX: -1 * dropDownPopup.element.offsetWidth });
|
|
@@ -5169,7 +5256,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5169
5256
|
break;
|
|
5170
5257
|
}
|
|
5171
5258
|
const groupEle = tabContent.querySelector('#' + collection.id);
|
|
5172
|
-
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
5259
|
+
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
5260
|
+
(item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
|
|
5173
5261
|
this.updatePopupItems(item, itemContainer, group.enableGroupOverflow, false);
|
|
5174
5262
|
}
|
|
5175
5263
|
groupEle.append(itemContainer);
|
|
@@ -5201,7 +5289,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5201
5289
|
const groupElement = tabContent.querySelector('#' + group.id);
|
|
5202
5290
|
const itemEle = groupElement.querySelector('.' + RIBBON_ITEM);
|
|
5203
5291
|
if (groupElement.classList.contains('e-ribbon-emptyCollection') && itemEle !== null) {
|
|
5204
|
-
|
|
5292
|
+
const itemsLength = groupElement.querySelectorAll('.' + RIBBON_ITEM);
|
|
5205
5293
|
if (itemsLength) {
|
|
5206
5294
|
isEmptyCollection = this.checkEmptyCollection(itemsLength);
|
|
5207
5295
|
if (!isEmptyCollection) {
|
|
@@ -5214,7 +5302,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5214
5302
|
}
|
|
5215
5303
|
if (overflowDDB) {
|
|
5216
5304
|
if (group.enableGroupOverflow) {
|
|
5217
|
-
if (overflowtarget.childElementCount === 0 ||
|
|
5305
|
+
if (overflowtarget.childElementCount === 0 ||
|
|
5306
|
+
(overflowtarget.childElementCount === 1 && this.isHeaderVisible(overflowtarget, group.id))) {
|
|
5218
5307
|
this.removeOverflowButton(overflowDDB);
|
|
5219
5308
|
}
|
|
5220
5309
|
}
|
|
@@ -5248,7 +5337,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5248
5337
|
if (overflowDDB) {
|
|
5249
5338
|
const overflowButton = getInstance(overflowDDB, DropDownButton);
|
|
5250
5339
|
const overflowBtnTarget = overflowButton.target;
|
|
5251
|
-
|
|
5340
|
+
const itemEle = overflowBtnTarget.querySelectorAll('.e-ribbon-item');
|
|
5252
5341
|
let isHidden = true;
|
|
5253
5342
|
for (let i = 0; i < itemEle.length; i++) {
|
|
5254
5343
|
if (!(itemEle[parseInt(i.toString(), 10)].classList.contains('e-hidden'))) {
|
|
@@ -5269,7 +5358,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5269
5358
|
for (let k = 0; k < ofTabContainer.children.length; k++) {
|
|
5270
5359
|
isItemHidden = true;
|
|
5271
5360
|
const overflowTab = ofTabContainer.children[parseInt(k.toString(), 10)];
|
|
5272
|
-
|
|
5361
|
+
const groupTabContainer = overflowTab.querySelectorAll('.e-ribbon-item');
|
|
5273
5362
|
for (let n = 0; n < groupTabContainer.length; n++) {
|
|
5274
5363
|
if (!(groupTabContainer[parseInt(n.toString(), 10)].classList.contains('e-hidden'))) {
|
|
5275
5364
|
isItemHidden = false;
|
|
@@ -5305,7 +5394,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5305
5394
|
this.addKeyTip(tabIndex, '0' + (itemProp.groupIndex + 1), overflowButton.element.id, 'grpofbtn');
|
|
5306
5395
|
overflowtarget = overflowButton.target;
|
|
5307
5396
|
const overflowBtnTarget = overflowButton.target;
|
|
5308
|
-
|
|
5397
|
+
const headerEle = overflowBtnTarget.querySelector('#' + groupId + GROUPOF_BUTTON_ID + HEADER_ID);
|
|
5309
5398
|
if (!headerEle) {
|
|
5310
5399
|
if (itemProp.group.overflowHeader) {
|
|
5311
5400
|
const groupHeader = this.createElement('div', {
|
|
@@ -5327,8 +5416,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5327
5416
|
overflowBtnTarget.classList.add('e-hide-group');
|
|
5328
5417
|
}
|
|
5329
5418
|
}
|
|
5330
|
-
|
|
5331
|
-
|
|
5419
|
+
if (isResize) {
|
|
5420
|
+
overflowBtnTarget.insertBefore(itemEle, overflowBtnTarget.querySelector('.' + RIBBON_ITEM));
|
|
5421
|
+
}
|
|
5422
|
+
else {
|
|
5423
|
+
overflowBtnTarget.append(itemEle);
|
|
5424
|
+
}
|
|
5332
5425
|
}
|
|
5333
5426
|
else {
|
|
5334
5427
|
if (!this.overflowDDB) {
|
|
@@ -5340,7 +5433,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5340
5433
|
else {
|
|
5341
5434
|
this.overflowDDB.element.classList.remove(HIDE_CSS);
|
|
5342
5435
|
const overflowEle = this.overflowDDB.target;
|
|
5343
|
-
const ofTabContainer = overflowEle.querySelector('#' +
|
|
5436
|
+
const ofTabContainer = overflowEle.querySelector('#' +
|
|
5437
|
+
this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
|
|
5344
5438
|
if (ofTabContainer) {
|
|
5345
5439
|
let ofGroupContainer = overflowEle.querySelector('#' + groupId + CONTAINER_ID);
|
|
5346
5440
|
if (!ofGroupContainer) {
|
|
@@ -5358,7 +5452,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5358
5452
|
}
|
|
5359
5453
|
ofTabContainer.append(ofGroupContainer);
|
|
5360
5454
|
}
|
|
5361
|
-
|
|
5455
|
+
if (isResize) {
|
|
5456
|
+
ofGroupContainer.insertBefore(itemEle, ofGroupContainer.querySelector('.' + RIBBON_ITEM));
|
|
5457
|
+
}
|
|
5458
|
+
else {
|
|
5459
|
+
ofGroupContainer.append(itemEle);
|
|
5460
|
+
}
|
|
5362
5461
|
}
|
|
5363
5462
|
else {
|
|
5364
5463
|
this.createOfTabContainer(groupId, groupHeader, itemEle, tabIndex);
|
|
@@ -5398,7 +5497,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5398
5497
|
break;
|
|
5399
5498
|
case 'Gallery':
|
|
5400
5499
|
if (this.activeLayout === 'Simplified') {
|
|
5401
|
-
this.ribbonGalleryModule.addOverFlowEvents(item, itemEle
|
|
5500
|
+
this.ribbonGalleryModule.addOverFlowEvents(item, itemEle);
|
|
5402
5501
|
}
|
|
5403
5502
|
break;
|
|
5404
5503
|
case 'GroupButton':
|
|
@@ -5416,13 +5515,14 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5416
5515
|
const overflowtarget = this.overflowDDB.target;
|
|
5417
5516
|
overflowtarget.append(ofTabContainer);
|
|
5418
5517
|
const itemProp = getGroup(this.tabs, groupId);
|
|
5419
|
-
|
|
5518
|
+
const ofGroupContainer = itemProp.group.overflowHeader ?
|
|
5519
|
+
this.createGroupContainer(groupId, itemProp.group.overflowHeader) : this.createGroupContainer(groupId, groupHeader);
|
|
5420
5520
|
ofGroupContainer.append(itemEle);
|
|
5421
5521
|
ofTabContainer.append(ofGroupContainer);
|
|
5422
5522
|
if (tabIndex === this.selectedTab) {
|
|
5423
5523
|
ofTabContainer.classList.add(RIBBON_TAB_ACTIVE);
|
|
5424
5524
|
}
|
|
5425
|
-
|
|
5525
|
+
const groupEle = document.querySelector('#' + groupId);
|
|
5426
5526
|
if (groupEle) {
|
|
5427
5527
|
if (groupEle.classList.contains('e-disabled')) {
|
|
5428
5528
|
ofGroupContainer.classList.add('e-disabled');
|
|
@@ -5768,7 +5868,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
5768
5868
|
}
|
|
5769
5869
|
const item = collection.items[parseInt(l.toString(), 10)];
|
|
5770
5870
|
if (canReduceItem(item)) {
|
|
5771
|
-
item.type !== RibbonItemType.GroupButton
|
|
5871
|
+
if (item.type !== RibbonItemType.GroupButton) {
|
|
5872
|
+
setWidth(item.id);
|
|
5873
|
+
}
|
|
5874
|
+
else {
|
|
5875
|
+
setWidth(item.id + RIBBON_GROUP_BUTTON_ID);
|
|
5876
|
+
}
|
|
5772
5877
|
reduceItemsToSmall(k, l, l);
|
|
5773
5878
|
if (!shouldSkip && (tabContent.offsetWidth > activeContent.offsetWidth)) {
|
|
5774
5879
|
return true;
|
|
@@ -6019,7 +6124,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6019
6124
|
}
|
|
6020
6125
|
handleContentSize(itemEle, isRemoveOverflow) {
|
|
6021
6126
|
const itemContainer = itemEle.closest('.' + RIBBON_GROUP_CONTENT);
|
|
6022
|
-
(isRemoveOverflow
|
|
6127
|
+
if (isRemoveOverflow) {
|
|
6128
|
+
itemContainer.classList.add(RIBBON_CONTENT_HEIGHT);
|
|
6129
|
+
}
|
|
6130
|
+
else {
|
|
6131
|
+
itemContainer.classList.remove(RIBBON_CONTENT_HEIGHT);
|
|
6132
|
+
}
|
|
6023
6133
|
}
|
|
6024
6134
|
setItemSize(itemEle, item) {
|
|
6025
6135
|
if (itemEle) {
|
|
@@ -6206,14 +6316,15 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6206
6316
|
}
|
|
6207
6317
|
ribbonTabSelecting(e) {
|
|
6208
6318
|
this.currentControlIndex = 0;
|
|
6209
|
-
const nextTabId = e.selectingItem.getAttribute('data-id');
|
|
6319
|
+
const nextTabId = e.selectingItem ? e.selectingItem.getAttribute('data-id') : null;
|
|
6210
6320
|
const previousTabId = e.previousItem.getAttribute('data-id');
|
|
6211
6321
|
let nextIndex = getIndex(this.tabs, ((tab) => (tab.id === nextTabId)));
|
|
6212
|
-
|
|
6322
|
+
const isContextual = this.isContextualTab(nextTabId);
|
|
6213
6323
|
const previousIndex = getIndex(this.tabs, ((tab) => (tab.id === previousTabId)));
|
|
6214
6324
|
nextIndex = nextIndex === -1 ? this.selectedTab : nextIndex;
|
|
6215
6325
|
const eventArgs = {
|
|
6216
|
-
cancel: e.cancel, isInteracted: e.isInteracted, previousIndex: previousIndex,
|
|
6326
|
+
cancel: e.cancel, isInteracted: e.isInteracted, previousIndex: previousIndex,
|
|
6327
|
+
selectedIndex: nextIndex, isContextual: isContextual
|
|
6217
6328
|
};
|
|
6218
6329
|
this.trigger('tabSelecting', eventArgs, (args) => {
|
|
6219
6330
|
if (args.cancel) {
|
|
@@ -6266,9 +6377,10 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6266
6377
|
this.element.classList.add(RIBBON_SIMPLIFIED_MODE);
|
|
6267
6378
|
}
|
|
6268
6379
|
const activeContent = this.tabObj.element.querySelector('#' + this.tabs[this.selectedTab].id + CONTENT_ID);
|
|
6380
|
+
if (this.ribbonGalleryModule) {
|
|
6381
|
+
this.ribbonGalleryModule.checkAvailableHeight(activeContent);
|
|
6382
|
+
}
|
|
6269
6383
|
this.checkOverflow(this.selectedTab, activeContent);
|
|
6270
|
-
if (this.activeLayout === 'Classic' && this.ribbonGalleryModule)
|
|
6271
|
-
this.ribbonGalleryModule.checkAvailableHeight(this.selectedTab, activeContent);
|
|
6272
6384
|
}
|
|
6273
6385
|
addOverflowButton(btnId, isGroupOF) {
|
|
6274
6386
|
const overflowButton = this.createElement('button', {
|
|
@@ -6325,7 +6437,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6325
6437
|
items = currentList.getElementsByClassName('e-ribbon-item');
|
|
6326
6438
|
}
|
|
6327
6439
|
const control = items[(!this.itemIndex || this.itemIndex < 0) ? 0 : this.itemIndex].querySelector('.e-control');
|
|
6328
|
-
const comboBoxEle = control && control.classList.contains('e-combobox') ?
|
|
6440
|
+
const comboBoxEle = control && control.classList.contains('e-combobox') ?
|
|
6441
|
+
items[(!this.itemIndex || this.itemIndex < 0) ? 0 : this.itemIndex].querySelector('.e-combobox') : null;
|
|
6329
6442
|
let ribbonItem;
|
|
6330
6443
|
let templateEle;
|
|
6331
6444
|
if (comboBoxEle === null || (e.key === 'Tab') || this.itemIndex < 0) {
|
|
@@ -6382,7 +6495,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6382
6495
|
target.setAttribute('index', this.itemIndex.toString());
|
|
6383
6496
|
}
|
|
6384
6497
|
const currentItemIndex = parseInt(target.getAttribute('index'), 10);
|
|
6385
|
-
let itemType =
|
|
6498
|
+
let itemType = '';
|
|
6386
6499
|
const controlItem = items[parseInt(currentItemIndex.toString(), 10)] ? items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control') : null;
|
|
6387
6500
|
if (controlItem) {
|
|
6388
6501
|
itemType = controlItem.getAttribute('data-control');
|
|
@@ -6412,12 +6525,20 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6412
6525
|
}
|
|
6413
6526
|
if (((itemType === 'SplitButton') && (e.key === 'ArrowRight' || e.key === 'ArrowLeft'))) {
|
|
6414
6527
|
if (e.key === 'ArrowRight') {
|
|
6415
|
-
this.enableRtl
|
|
6528
|
+
if (this.enableRtl) {
|
|
6529
|
+
items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control').focus();
|
|
6530
|
+
}
|
|
6531
|
+
else {
|
|
6416
6532
|
items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-dropdown-btn').focus();
|
|
6533
|
+
}
|
|
6417
6534
|
}
|
|
6418
6535
|
if (e.key === 'ArrowLeft') {
|
|
6419
|
-
this.enableRtl
|
|
6536
|
+
if (this.enableRtl) {
|
|
6537
|
+
items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-dropdown-btn').focus();
|
|
6538
|
+
}
|
|
6539
|
+
else {
|
|
6420
6540
|
items[parseInt(currentItemIndex.toString(), 10)].querySelector('.e-control').focus();
|
|
6541
|
+
}
|
|
6421
6542
|
}
|
|
6422
6543
|
}
|
|
6423
6544
|
if (e.key === 'Enter') {
|
|
@@ -6526,11 +6647,11 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6526
6647
|
reRenderTabs(tabs) {
|
|
6527
6648
|
this.destroyScroll();
|
|
6528
6649
|
this.checkID(this.tabs, 'tab', this.element.id);
|
|
6529
|
-
for (const key
|
|
6650
|
+
for (const key of Object.keys(tabs)) {
|
|
6530
6651
|
const index = parseInt(key, 10);
|
|
6531
6652
|
const tab = tabs[parseInt(index.toString(), 10)];
|
|
6532
6653
|
let isNewTab = false;
|
|
6533
|
-
for (
|
|
6654
|
+
for (let j = 0; j < (this.tabObj.items.length); j++) {
|
|
6534
6655
|
if (this.tabs[parseInt(index.toString(), 10)].id === this.tabObj.items[parseInt(j.toString(), 10)].id) {
|
|
6535
6656
|
isNewTab = true;
|
|
6536
6657
|
break;
|
|
@@ -6672,7 +6793,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6672
6793
|
itemEle = groupContainer.querySelector('#' + item.id + CONTAINER_ID);
|
|
6673
6794
|
if (item.displayOptions === (DisplayMode.Classic | DisplayMode.Overflow)) {
|
|
6674
6795
|
this.createOverflowPopup(item, tabIndex, group.enableGroupOverflow, group.id, group.header, itemEle, groupContainer);
|
|
6675
|
-
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
6796
|
+
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
6797
|
+
(item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
|
|
6676
6798
|
this.updatePopupItems(item, itemEle, group.enableGroupOverflow, true);
|
|
6677
6799
|
}
|
|
6678
6800
|
}
|
|
@@ -6771,7 +6893,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6771
6893
|
let itemEle = groupContainer.querySelector('#' + item.id + CONTAINER_ID);
|
|
6772
6894
|
if (!itemEle && overflowtarget) {
|
|
6773
6895
|
itemEle = overflowtarget.querySelector('#' + item.id + CONTAINER_ID);
|
|
6774
|
-
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
6896
|
+
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
6897
|
+
(item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
|
|
6775
6898
|
this.updatePopupItems(item, itemEle, group.enableGroupOverflow, false);
|
|
6776
6899
|
}
|
|
6777
6900
|
this.removeOverflowEvent(item, itemEle);
|
|
@@ -6796,7 +6919,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6796
6919
|
}
|
|
6797
6920
|
}
|
|
6798
6921
|
if (group.enableGroupOverflow && overflowDDB) {
|
|
6799
|
-
if (overflowtarget.childElementCount === 0 ||
|
|
6922
|
+
if (overflowtarget.childElementCount === 0 ||
|
|
6923
|
+
(overflowtarget.childElementCount === 1 && this.isHeaderVisible(overflowtarget, group.id))) {
|
|
6800
6924
|
this.removeOverflowButton(overflowDDB);
|
|
6801
6925
|
}
|
|
6802
6926
|
}
|
|
@@ -6908,7 +7032,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6908
7032
|
// eslint-disable-next-line
|
|
6909
7033
|
let groupIndex = initialProps[key].indexOf(groupEle.id);
|
|
6910
7034
|
if (groupIndex !== -1) {
|
|
6911
|
-
key === 'hiddenGroups'
|
|
7035
|
+
if (key === 'hiddenGroups') {
|
|
7036
|
+
groupEle.classList.add('e-hidden');
|
|
7037
|
+
}
|
|
7038
|
+
else {
|
|
7039
|
+
groupEle.classList.add('e-disabled');
|
|
7040
|
+
}
|
|
6912
7041
|
}
|
|
6913
7042
|
}
|
|
6914
7043
|
validateItemSize() {
|
|
@@ -7032,7 +7161,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7032
7161
|
}
|
|
7033
7162
|
if (item.type === RibbonItemType.GroupButton) {
|
|
7034
7163
|
for (let i = 0; i < item.groupButtonSettings.items.length; i++) {
|
|
7035
|
-
if (this.keyTipElements[parseInt(tabIndex.toString(), 10)] &&
|
|
7164
|
+
if (this.keyTipElements[parseInt(tabIndex.toString(), 10)] &&
|
|
7165
|
+
item.groupButtonSettings.items[parseInt(i.toString(), 10)].keyTip) {
|
|
7036
7166
|
this.addKeyTip(tabIndex, item.groupButtonSettings.items[parseInt(i.toString(), 10)].keyTip, item.id + (RIBBON_GROUP_BUTTON_ID + i), 'item');
|
|
7037
7167
|
}
|
|
7038
7168
|
}
|
|
@@ -7069,7 +7199,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7069
7199
|
this.createRibbonItem(item, itemEle);
|
|
7070
7200
|
if ((this.activeLayout === 'Simplified') && ((item.displayOptions === DisplayMode.Overflow) || (item.displayOptions === (DisplayMode.Classic | DisplayMode.Overflow)))) {
|
|
7071
7201
|
this.createOverflowPopup(item, tabIndex, isGroupOF, groupId, groupHeader, itemEle, groupContainer);
|
|
7072
|
-
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
7202
|
+
if ((item.type === RibbonItemType.DropDown) || (item.type === RibbonItemType.SplitButton) ||
|
|
7203
|
+
(item.type === RibbonItemType.GroupButton) || (item.type === RibbonItemType.Gallery)) {
|
|
7073
7204
|
this.updatePopupItems(item, itemEle, isGroupOF, true);
|
|
7074
7205
|
}
|
|
7075
7206
|
}
|
|
@@ -7142,8 +7273,6 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7142
7273
|
case 'collection':
|
|
7143
7274
|
listitem.setProperties({ items: this.checkID(listitem.items, 'item', listitem.id) }, true);
|
|
7144
7275
|
break;
|
|
7145
|
-
default:
|
|
7146
|
-
break;
|
|
7147
7276
|
}
|
|
7148
7277
|
}
|
|
7149
7278
|
return list;
|
|
@@ -7283,8 +7412,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7283
7412
|
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) :
|
|
7284
7413
|
contentEle.querySelector('#' + item.id);
|
|
7285
7414
|
if (item.type === RibbonItemType.GroupButton) {
|
|
7286
|
-
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
|
|
7287
|
-
contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
|
|
7415
|
+
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
|
|
7416
|
+
RIBBON_GROUP_BUTTON_ID) : contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
|
|
7288
7417
|
}
|
|
7289
7418
|
if (item.type === RibbonItemType.Gallery) {
|
|
7290
7419
|
ele = contentEle.querySelector('#' + item.id + CONTAINER_ID);
|
|
@@ -7351,22 +7480,22 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7351
7480
|
else if (moduleName === 'gallery') {
|
|
7352
7481
|
if (ele.closest('.e-ribbon-overflow-target')) {
|
|
7353
7482
|
destroyControl(ele, 'dropdown-btn');
|
|
7354
|
-
|
|
7483
|
+
const galleryPopupEle = Array.prototype.slice.call(document.querySelectorAll('#' + item.id + '_galleryPopup'));
|
|
7355
7484
|
galleryPopupEle.concat(Array.prototype.slice.call(document.querySelectorAll('#' + item.id + '-popup')));
|
|
7356
7485
|
for (let i = 0; i < galleryPopupEle.length; i++) {
|
|
7357
7486
|
galleryPopupEle[parseInt(i.toString(), 10)].remove();
|
|
7358
7487
|
}
|
|
7359
7488
|
}
|
|
7360
7489
|
else {
|
|
7361
|
-
|
|
7362
|
-
|
|
7490
|
+
const galleryEle = ele.querySelectorAll('.e-ribbon-gallery-item');
|
|
7491
|
+
const galleryPopupBtn = ele.querySelector('#' + item.id + '_popupButton');
|
|
7363
7492
|
if (galleryPopupBtn) {
|
|
7364
7493
|
galleryPopupBtn.remove();
|
|
7365
7494
|
}
|
|
7366
7495
|
for (let i = 0; i < galleryEle.length; i++) {
|
|
7367
7496
|
galleryEle[parseInt(i.toString(), 10)].remove();
|
|
7368
7497
|
}
|
|
7369
|
-
|
|
7498
|
+
const galleryPopupEle = document.querySelectorAll('#' + item.id + '_galleryPopup');
|
|
7370
7499
|
for (let i = 0; i < galleryPopupEle.length; i++) {
|
|
7371
7500
|
galleryPopupEle[parseInt(i.toString(), 10)].remove();
|
|
7372
7501
|
}
|
|
@@ -7447,6 +7576,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7447
7576
|
* Shows a specific tab in the ribbon.
|
|
7448
7577
|
*
|
|
7449
7578
|
* @param {string} tabId - The ID of the tab to be shown.
|
|
7579
|
+
* @param {boolean} isContextual - The boolean if the rendering is contextual.
|
|
7450
7580
|
* @returns {void}
|
|
7451
7581
|
*/
|
|
7452
7582
|
showTab(tabId, isContextual = false) {
|
|
@@ -7456,6 +7586,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7456
7586
|
* Hides a specific tab in the ribbon.
|
|
7457
7587
|
*
|
|
7458
7588
|
* @param {string} tabId - The ID of the tab to be hidden.
|
|
7589
|
+
* @param {boolean} isContextual - The boolean if the rendering is contextual.
|
|
7459
7590
|
* @returns {void}
|
|
7460
7591
|
*/
|
|
7461
7592
|
hideTab(tabId, isContextual = false) {
|
|
@@ -7480,7 +7611,9 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7480
7611
|
if (contextualTab) {
|
|
7481
7612
|
let isTabHidden = true;
|
|
7482
7613
|
for (let i = 0; i < contextualTab.tabs.length; i++) {
|
|
7483
|
-
const index = getIndex(this.tabs, (e) => {
|
|
7614
|
+
const index = getIndex(this.tabs, (e) => {
|
|
7615
|
+
return e.id === contextualTab.tabs[parseInt(i.toString(), 10)].id;
|
|
7616
|
+
});
|
|
7484
7617
|
if (index !== -1) {
|
|
7485
7618
|
const toolbarEle = tabEle.querySelectorAll('.e-toolbar-item')[parseInt(index.toString(), 10)];
|
|
7486
7619
|
if (!(toolbarEle.classList.contains('e-hidden'))) {
|
|
@@ -7520,6 +7653,9 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7520
7653
|
if (index === -1) {
|
|
7521
7654
|
return;
|
|
7522
7655
|
}
|
|
7656
|
+
const tbItems = this.tabObj.items[parseInt(index.toString(), 10)].content;
|
|
7657
|
+
this.tabObj.element.querySelector('#' + tabId + HEADER_ID).classList[value ? 'remove' : 'add']('e-disabled');
|
|
7658
|
+
tbItems.classList[value ? 'remove' : 'add']('e-disabled');
|
|
7523
7659
|
this.tabObj.enableTab(index, value);
|
|
7524
7660
|
}
|
|
7525
7661
|
/**
|
|
@@ -7562,8 +7698,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7562
7698
|
for (const item of collection.items) {
|
|
7563
7699
|
let ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) : contentEle.querySelector('#' + item.id);
|
|
7564
7700
|
if (item.type === RibbonItemType.GroupButton && this.activeLayout === 'Classic') {
|
|
7565
|
-
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
|
|
7566
|
-
contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
|
|
7701
|
+
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
|
|
7702
|
+
RIBBON_GROUP_BUTTON_ID) : contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
|
|
7567
7703
|
}
|
|
7568
7704
|
if (ele) {
|
|
7569
7705
|
this.destroyFunction(item, ele);
|
|
@@ -7659,7 +7795,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7659
7795
|
}
|
|
7660
7796
|
if (this.activeLayout === RibbonLayout.Simplified) {
|
|
7661
7797
|
if (itemProp.group.enableGroupOverflow) {
|
|
7662
|
-
if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount
|
|
7798
|
+
if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount
|
|
7799
|
+
=== 1 && this.isHeaderVisible(dropdown.target, itemProp.group.id))) {
|
|
7663
7800
|
this.removeOverflowButton(dropdown);
|
|
7664
7801
|
}
|
|
7665
7802
|
}
|
|
@@ -7732,13 +7869,23 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7732
7869
|
overflowtarget = overflowDDB.target;
|
|
7733
7870
|
}
|
|
7734
7871
|
if (overflowtarget) {
|
|
7735
|
-
|
|
7872
|
+
if (isHidden) {
|
|
7873
|
+
overflowtarget.classList.add('e-hidden');
|
|
7874
|
+
}
|
|
7875
|
+
else {
|
|
7876
|
+
overflowtarget.classList.remove('e-hidden');
|
|
7877
|
+
}
|
|
7736
7878
|
}
|
|
7737
7879
|
}
|
|
7738
7880
|
else if (ofTabContainer) {
|
|
7739
7881
|
const grpContainer = ofTabContainer.querySelector('#' + groupID + CONTAINER_ID);
|
|
7740
7882
|
if (grpContainer) {
|
|
7741
|
-
|
|
7883
|
+
if (isHidden) {
|
|
7884
|
+
grpContainer.classList.add('e-hidden');
|
|
7885
|
+
}
|
|
7886
|
+
else {
|
|
7887
|
+
grpContainer.classList.remove('e-hidden');
|
|
7888
|
+
}
|
|
7742
7889
|
}
|
|
7743
7890
|
}
|
|
7744
7891
|
}
|
|
@@ -7776,38 +7923,35 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7776
7923
|
hiddenProps = this.hiddenElements[parseInt(tabIndex.toString(), 10)];
|
|
7777
7924
|
}
|
|
7778
7925
|
if (hiddenProps) {
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
hiddenProps[key] = [];
|
|
7926
|
+
if (!hiddenProps[`${key}`]) {
|
|
7927
|
+
hiddenProps[`${key}`] = [];
|
|
7782
7928
|
}
|
|
7783
|
-
if (hiddenProps[key].length) {
|
|
7784
|
-
|
|
7929
|
+
if (hiddenProps[`${key}`].length) {
|
|
7930
|
+
const index = hiddenProps[`${key}`].indexOf(id);
|
|
7785
7931
|
if (index === -1) {
|
|
7786
|
-
hiddenProps[key].push(id);
|
|
7932
|
+
hiddenProps[`${key}`].push(id);
|
|
7787
7933
|
}
|
|
7788
7934
|
}
|
|
7789
7935
|
else {
|
|
7790
|
-
hiddenProps[key].push(id);
|
|
7936
|
+
hiddenProps[`${key}`].push(id);
|
|
7791
7937
|
}
|
|
7792
|
-
/* eslint-enable */
|
|
7793
7938
|
}
|
|
7794
7939
|
}
|
|
7795
7940
|
}
|
|
7796
7941
|
updateItemsSimplifiedWidth(tabIndex, key) {
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
const contentEle = this.tabObj.items[tabIndex].content;
|
|
7942
|
+
const hiddenProps = this.hiddenElements[parseInt(tabIndex.toString(), 10)];
|
|
7943
|
+
if (hiddenProps && hiddenProps[`${key}`] && hiddenProps[`${key}`].length) {
|
|
7944
|
+
for (let i = 0; i < hiddenProps[`${key}`].length; i++) {
|
|
7945
|
+
const contentEle = this.tabObj.items[parseInt(tabIndex.toString(), 10)].content;
|
|
7802
7946
|
let hiddenEle;
|
|
7803
7947
|
let groupEle;
|
|
7804
7948
|
let isGroupHidden = false;
|
|
7805
7949
|
let widthDifference = 0;
|
|
7806
7950
|
if (key === 'hideGroup' || key === 'showGroup') {
|
|
7807
|
-
hiddenEle = contentEle.querySelector('#' + hiddenProps[key][i]);
|
|
7951
|
+
hiddenEle = contentEle.querySelector('#' + hiddenProps[`${key}`][parseInt(i.toString(), 10)]);
|
|
7808
7952
|
}
|
|
7809
7953
|
else {
|
|
7810
|
-
hiddenEle = contentEle.querySelector('#' + hiddenProps[key][i] + CONTAINER_ID);
|
|
7954
|
+
hiddenEle = contentEle.querySelector('#' + hiddenProps[`${key}`][parseInt(i.toString(), 10)] + CONTAINER_ID);
|
|
7811
7955
|
}
|
|
7812
7956
|
if (hiddenEle) {
|
|
7813
7957
|
if (key === 'hideGroup' || key === 'hideItem') {
|
|
@@ -7843,7 +7987,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7843
7987
|
}
|
|
7844
7988
|
else {
|
|
7845
7989
|
if (this.hiddenGroups.indexOf(groupEle.id) !== -1) {
|
|
7846
|
-
|
|
7990
|
+
const hiddenItems = groupEle.querySelectorAll('.e-ribbon-item:not(.e-hidden)');
|
|
7847
7991
|
hiddenItems.forEach((item) => {
|
|
7848
7992
|
if (item.id !== hiddenEle.id) {
|
|
7849
7993
|
item.classList.add('e-hidden');
|
|
@@ -7867,12 +8011,11 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7867
8011
|
groupEle.classList.add('e-ribbon-emptyCollection');
|
|
7868
8012
|
}
|
|
7869
8013
|
}
|
|
7870
|
-
|
|
8014
|
+
const index = hiddenProps[`${key}`].indexOf(hiddenProps[`${key}`][parseInt(i.toString(), 10)]);
|
|
7871
8015
|
if (index !== -1) {
|
|
7872
|
-
hiddenProps[key].splice(index, 1);
|
|
8016
|
+
hiddenProps[`${key}`].splice(index, 1);
|
|
7873
8017
|
i--;
|
|
7874
8018
|
}
|
|
7875
|
-
/* eslint-enable */
|
|
7876
8019
|
}
|
|
7877
8020
|
}
|
|
7878
8021
|
}
|
|
@@ -7894,7 +8037,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7894
8037
|
}
|
|
7895
8038
|
calculateHiddenElementsWidth(tabIndex) {
|
|
7896
8039
|
if (tabIndex === this.selectedTab && this.activeLayout === 'Simplified') {
|
|
7897
|
-
|
|
8040
|
+
const hiddenProps = this.hiddenElements[parseInt(tabIndex.toString(), 10)];
|
|
7898
8041
|
if (hiddenProps) {
|
|
7899
8042
|
for (let i = 0; i < Object.keys(hiddenProps).length; i++) {
|
|
7900
8043
|
this.updateItemsSimplifiedWidth(tabIndex, Object.keys(hiddenProps)[parseInt(i.toString(), 10)]);
|
|
@@ -7905,23 +8048,23 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7905
8048
|
calculateMediumDataWidth(hiddenWidth, tabIndex, isHidden) {
|
|
7906
8049
|
if (this.selectedTab === tabIndex && this.activeLayout === 'Simplified') {
|
|
7907
8050
|
const activeContent = this.tabObj.element.querySelector('#' + this.tabs[parseInt(tabIndex.toString(), 10)].id + CONTENT_ID);
|
|
7908
|
-
|
|
8051
|
+
const mediumDataItems = Array.prototype.slice.call(activeContent.querySelectorAll('.e-ribbon-item'));
|
|
7909
8052
|
if (this.overflowDDB) {
|
|
7910
8053
|
const overflowEle = this.overflowDDB.target;
|
|
7911
|
-
|
|
7912
|
-
|
|
8054
|
+
const overflowItems = overflowEle.querySelectorAll('.e-ribbon-item');
|
|
8055
|
+
const selectedOFTab = document.querySelector('#' + this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
|
|
7913
8056
|
for (let i = 0; i < overflowItems.length; i++) {
|
|
7914
|
-
|
|
8057
|
+
const ofTab = overflowItems[parseInt(i.toString(), 10)].closest('#' + this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
|
|
7915
8058
|
if (selectedOFTab && ofTab && selectedOFTab.id === ofTab.id && overflowItems[parseInt(i.toString(), 10)].hasAttribute('data-medium-width')) {
|
|
7916
8059
|
mediumDataItems.push(overflowItems[parseInt(i.toString(), 10)]);
|
|
7917
8060
|
}
|
|
7918
8061
|
}
|
|
7919
8062
|
}
|
|
7920
|
-
|
|
8063
|
+
const groupOFButton = activeContent.querySelectorAll('.e-ribbon-group-of-btn');
|
|
7921
8064
|
for (let i = 0; i < groupOFButton.length; i++) {
|
|
7922
|
-
|
|
8065
|
+
const overflowButton = getInstance(groupOFButton[parseInt(i.toString(), 10)], DropDownButton);
|
|
7923
8066
|
const overflowBtnTarget = overflowButton.target;
|
|
7924
|
-
|
|
8067
|
+
const overflowItems = overflowBtnTarget.querySelectorAll('.e-ribbon-item');
|
|
7925
8068
|
for (let i = 0; i < overflowItems.length; i++) {
|
|
7926
8069
|
if (overflowItems[parseInt(i.toString(), 10)].hasAttribute('data-medium-width')) {
|
|
7927
8070
|
mediumDataItems.push(overflowItems[parseInt(i.toString(), 10)]);
|
|
@@ -7930,7 +8073,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7930
8073
|
}
|
|
7931
8074
|
for (let i = 0; i < mediumDataItems.length; i++) {
|
|
7932
8075
|
if (mediumDataItems[parseInt(i.toString(), 10)].hasAttribute('data-medium-width')) {
|
|
7933
|
-
|
|
8076
|
+
const previousWidth = parseInt(mediumDataItems[parseInt(i.toString(), 10)].getAttribute('data-medium-width'), 10);
|
|
7934
8077
|
mediumDataItems[parseInt(i.toString(), 10)].setAttribute('data-medium-width', isHidden ? (previousWidth - hiddenWidth).toString() : (previousWidth + hiddenWidth).toString());
|
|
7935
8078
|
}
|
|
7936
8079
|
}
|
|
@@ -7942,7 +8085,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7942
8085
|
for (let i = 0; i < groupList.length; i++) {
|
|
7943
8086
|
const group = groupList[parseInt(i.toString(), 10)];
|
|
7944
8087
|
if (group.enableGroupOverflow) {
|
|
7945
|
-
|
|
8088
|
+
const groupContainer = document.querySelector('#' + group.id);
|
|
7946
8089
|
let overflowButton;
|
|
7947
8090
|
const overflowDDB = groupContainer.querySelector('#' + group.id + GROUPOF_BUTTON_ID);
|
|
7948
8091
|
if (overflowDDB) {
|
|
@@ -7950,9 +8093,9 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7950
8093
|
}
|
|
7951
8094
|
if (overflowButton) {
|
|
7952
8095
|
const overflowEle = overflowButton.target;
|
|
7953
|
-
|
|
8096
|
+
const overflowItems = overflowEle.querySelectorAll('.e-ribbon-item');
|
|
7954
8097
|
for (let i = 0; i < overflowItems.length; i++) {
|
|
7955
|
-
|
|
8098
|
+
const previousWidth = parseInt(overflowItems[parseInt(i.toString(), 10)].getAttribute('data-simplified-width'), 10);
|
|
7956
8099
|
if (previousWidth) {
|
|
7957
8100
|
overflowItems[parseInt(i.toString(), 10)].setAttribute('data-simplified-width', isHidden ? (previousWidth - hiddenItem).toString() : (previousWidth + hiddenItem).toString());
|
|
7958
8101
|
}
|
|
@@ -7962,13 +8105,13 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7962
8105
|
}
|
|
7963
8106
|
}
|
|
7964
8107
|
if (this.overflowDDB) {
|
|
7965
|
-
|
|
8108
|
+
const selectedOFTab = document.querySelector('#' + this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
|
|
7966
8109
|
const overflowEle = this.overflowDDB.target;
|
|
7967
|
-
|
|
8110
|
+
const overflowItems = overflowEle.querySelectorAll('.e-ribbon-item');
|
|
7968
8111
|
for (let i = 0; i < overflowItems.length; i++) {
|
|
7969
|
-
|
|
8112
|
+
const ofTab = overflowItems[parseInt(i.toString(), 10)].closest('#' + this.tabs[parseInt(tabIndex.toString(), 10)].id + OVERFLOW_ID);
|
|
7970
8113
|
if (selectedOFTab && ofTab && selectedOFTab.id === ofTab.id) {
|
|
7971
|
-
|
|
8114
|
+
const previousWidth = parseInt(overflowItems[parseInt(i.toString(), 10)].getAttribute('data-simplified-width'), 10);
|
|
7972
8115
|
if (previousWidth) {
|
|
7973
8116
|
overflowItems[parseInt(i.toString(), 10)].setAttribute('data-simplified-width', isHidden ? (previousWidth - hiddenItem).toString() : (previousWidth + hiddenItem).toString());
|
|
7974
8117
|
}
|
|
@@ -8004,7 +8147,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8004
8147
|
const contentEle = this.tabObj.items[itemProp.tabIndex].content;
|
|
8005
8148
|
const groupEle = contentEle.querySelector('#' + groupID);
|
|
8006
8149
|
if (groupEle) {
|
|
8007
|
-
|
|
8150
|
+
if (isDisabled) {
|
|
8151
|
+
groupEle.classList.add('e-disabled');
|
|
8152
|
+
}
|
|
8153
|
+
else {
|
|
8154
|
+
groupEle.classList.remove('e-disabled');
|
|
8155
|
+
}
|
|
8008
8156
|
}
|
|
8009
8157
|
else {
|
|
8010
8158
|
this.updateInitialProps(itemProp.tabIndex, groupID, 'disabledGroups', isDisabled);
|
|
@@ -8019,13 +8167,23 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8019
8167
|
overflowtarget = overflowDDB.target;
|
|
8020
8168
|
}
|
|
8021
8169
|
if (overflowtarget) {
|
|
8022
|
-
|
|
8170
|
+
if (isDisabled) {
|
|
8171
|
+
overflowtarget.classList.add('e-disabled');
|
|
8172
|
+
}
|
|
8173
|
+
else {
|
|
8174
|
+
overflowtarget.classList.remove('e-disabled');
|
|
8175
|
+
}
|
|
8023
8176
|
}
|
|
8024
8177
|
}
|
|
8025
8178
|
else if (ofTabContainer) {
|
|
8026
8179
|
const grpContainer = ofTabContainer.querySelector('#' + groupID + CONTAINER_ID);
|
|
8027
8180
|
if (grpContainer) {
|
|
8028
|
-
|
|
8181
|
+
if (isDisabled) {
|
|
8182
|
+
grpContainer.classList.add('e-disabled');
|
|
8183
|
+
}
|
|
8184
|
+
else {
|
|
8185
|
+
grpContainer.classList.remove('e-disabled');
|
|
8186
|
+
}
|
|
8029
8187
|
}
|
|
8030
8188
|
}
|
|
8031
8189
|
}
|
|
@@ -8250,19 +8408,22 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8250
8408
|
initialProps = this.initialPropsData[parseInt(tabIndex.toString(), 10)];
|
|
8251
8409
|
}
|
|
8252
8410
|
if (initialProps) {
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
const itemIndex = initialProps[key].indexOf(id);
|
|
8411
|
+
if (!initialProps[`${key}`]) {
|
|
8412
|
+
initialProps[`${key}`] = [];
|
|
8413
|
+
}
|
|
8414
|
+
const itemIndex = initialProps[`${key}`].indexOf(id);
|
|
8257
8415
|
if (isInsert) {
|
|
8258
|
-
if (itemIndex === -1)
|
|
8259
|
-
initialProps[key].push(id);
|
|
8416
|
+
if (itemIndex === -1) {
|
|
8417
|
+
initialProps[`${key}`].push(id);
|
|
8418
|
+
}
|
|
8260
8419
|
}
|
|
8261
8420
|
else {
|
|
8262
|
-
if (itemIndex !== -1)
|
|
8263
|
-
initialProps[key].splice(itemIndex, 1);
|
|
8264
|
-
|
|
8265
|
-
|
|
8421
|
+
if (itemIndex !== -1) {
|
|
8422
|
+
initialProps[`${key}`].splice(itemIndex, 1);
|
|
8423
|
+
}
|
|
8424
|
+
if (initialProps[`${key}`].length === 0) {
|
|
8425
|
+
delete initialProps[`${key}`];
|
|
8426
|
+
}
|
|
8266
8427
|
if (Object.keys(initialProps).length === 0) {
|
|
8267
8428
|
delete this.initialPropsData[parseInt(tabIndex.toString(), 10)];
|
|
8268
8429
|
}
|
|
@@ -8288,7 +8449,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8288
8449
|
else {
|
|
8289
8450
|
itemEle = getItemElement(this, item.id);
|
|
8290
8451
|
}
|
|
8291
|
-
|
|
8452
|
+
const itemContainer = itemEle ? itemEle.closest('.e-ribbon-item') : null;
|
|
8292
8453
|
if (!(itemContainer.classList.contains('e-hidden'))) {
|
|
8293
8454
|
isItemsHidden = false;
|
|
8294
8455
|
break;
|
|
@@ -8306,7 +8467,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8306
8467
|
this.checkOverflowItems(isHidden, contentEle, group.enableGroupOverflow, tabIndex, group.id);
|
|
8307
8468
|
}
|
|
8308
8469
|
if (this.activeLayout === 'Simplified' && !group.enableGroupOverflow) {
|
|
8309
|
-
|
|
8470
|
+
const itemsLength = groupEle.querySelectorAll('.' + RIBBON_ITEM);
|
|
8310
8471
|
if (itemsLength) {
|
|
8311
8472
|
isEmptyCollection = this.checkEmptyCollection(itemsLength);
|
|
8312
8473
|
groupEle.classList[isEmptyCollection ? 'add' : 'remove']('e-ribbon-emptyCollection');
|
|
@@ -8323,7 +8484,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8323
8484
|
overflowtarget = overflowDDB.target;
|
|
8324
8485
|
}
|
|
8325
8486
|
if (overflowtarget) {
|
|
8326
|
-
|
|
8487
|
+
if (isHidden) {
|
|
8488
|
+
overflowtarget.classList.add('e-hide-group');
|
|
8489
|
+
}
|
|
8490
|
+
else {
|
|
8491
|
+
overflowtarget.classList.remove('e-hide-group');
|
|
8492
|
+
}
|
|
8327
8493
|
}
|
|
8328
8494
|
}
|
|
8329
8495
|
else {
|
|
@@ -8333,7 +8499,12 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8333
8499
|
if (ofTabContainer) {
|
|
8334
8500
|
const grpContainer = ofTabContainer.querySelector('#' + groupID + CONTAINER_ID);
|
|
8335
8501
|
if (grpContainer) {
|
|
8336
|
-
|
|
8502
|
+
if (isHidden) {
|
|
8503
|
+
grpContainer.classList.add('e-hide-group');
|
|
8504
|
+
}
|
|
8505
|
+
else {
|
|
8506
|
+
grpContainer.classList.remove('e-hide-group');
|
|
8507
|
+
}
|
|
8337
8508
|
}
|
|
8338
8509
|
}
|
|
8339
8510
|
}
|
|
@@ -8370,8 +8541,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8370
8541
|
for (const item of collection.items) {
|
|
8371
8542
|
let ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id) : contentEle.querySelector('#' + item.id);
|
|
8372
8543
|
if (item.type === RibbonItemType.GroupButton && this.activeLayout === 'Classic') {
|
|
8373
|
-
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
|
|
8374
|
-
contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
|
|
8544
|
+
ele = dropdownElement ? this.ribbonDropDownModule.getDDBItemElement(dropdownElement, item.id +
|
|
8545
|
+
RIBBON_GROUP_BUTTON_ID) : contentEle.querySelector('#' + item.id + RIBBON_GROUP_BUTTON_ID);
|
|
8375
8546
|
}
|
|
8376
8547
|
if (ele) {
|
|
8377
8548
|
this.destroyFunction(item, ele);
|
|
@@ -8475,7 +8646,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8475
8646
|
}
|
|
8476
8647
|
if (this.activeLayout === RibbonLayout.Simplified) {
|
|
8477
8648
|
if (itemProp.group.enableGroupOverflow) {
|
|
8478
|
-
if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount
|
|
8649
|
+
if (dropdown.target.childElementCount === 0 || (dropdown.target.childElementCount
|
|
8650
|
+
=== 1 && this.isHeaderVisible(dropdown.target, itemProp.group.id))) {
|
|
8479
8651
|
this.removeOverflowButton(dropdown);
|
|
8480
8652
|
}
|
|
8481
8653
|
}
|
|
@@ -8772,7 +8944,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8772
8944
|
* Gets the Ribbon item model associated with the specified item ID.
|
|
8773
8945
|
*
|
|
8774
8946
|
* @param {string} itemId - The unique ID of the Ribbon item.
|
|
8775
|
-
* @returns {RibbonItemModel}
|
|
8947
|
+
* @returns {RibbonItemModel} - Returns the Ribbon item model.
|
|
8776
8948
|
*/
|
|
8777
8949
|
getItem(itemId) {
|
|
8778
8950
|
return getItem(this.tabs, itemId).item;
|
|
@@ -8794,7 +8966,8 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8794
8966
|
if (ele) {
|
|
8795
8967
|
const itemEle = closest(ele, '.e-ribbon-item');
|
|
8796
8968
|
const moduleName = this.getItemModuleName(itemProp.item);
|
|
8797
|
-
isUpdated = isDisabled ? !itemEle.classList.contains(DISABLED_CSS) :
|
|
8969
|
+
isUpdated = isDisabled ? !itemEle.classList.contains(DISABLED_CSS) :
|
|
8970
|
+
itemEle.classList.contains(DISABLED_CSS);
|
|
8798
8971
|
if (moduleName !== 'template') {
|
|
8799
8972
|
if (isUpdated) {
|
|
8800
8973
|
if (moduleName === 'group-btn' && this.activeLayout === 'Simplified') {
|
|
@@ -8932,13 +9105,14 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8932
9105
|
}
|
|
8933
9106
|
}
|
|
8934
9107
|
break;
|
|
8935
|
-
case 'selectedTab':
|
|
9108
|
+
case 'selectedTab': {
|
|
8936
9109
|
const tabEle = this.tabObj.element;
|
|
8937
9110
|
const toolbarItem = tabEle.querySelectorAll('.e-toolbar-item')[parseInt(newProp.selectedTab.toString(), 10)];
|
|
8938
9111
|
if (!(toolbarItem.classList.contains('e-hidden') || toolbarItem.classList.contains('e-disable'))) {
|
|
8939
9112
|
this.tabObj.setProperties({ selectedItem: newProp.selectedTab });
|
|
8940
9113
|
}
|
|
8941
9114
|
break;
|
|
9115
|
+
}
|
|
8942
9116
|
case 'tabAnimation':
|
|
8943
9117
|
this.tabObj.setProperties({ animation: newProp.tabAnimation });
|
|
8944
9118
|
break;
|
|
@@ -8956,21 +9130,23 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8956
9130
|
this.element.style.width = formatUnit(newProp.width);
|
|
8957
9131
|
this.refreshLayout();
|
|
8958
9132
|
break;
|
|
8959
|
-
case 'fileMenu':
|
|
9133
|
+
case 'fileMenu': {
|
|
8960
9134
|
if (this.ribbonFileMenuModule) {
|
|
8961
9135
|
this.ribbonFileMenuModule.updateFileMenu(this.fileMenu);
|
|
8962
9136
|
}
|
|
8963
9137
|
const toolbarEle = this.tabObj['tbObj'];
|
|
8964
9138
|
toolbarEle.refreshOverflow();
|
|
8965
9139
|
break;
|
|
8966
|
-
|
|
9140
|
+
}
|
|
9141
|
+
case 'backStageMenu': {
|
|
8967
9142
|
if (this.ribbonBackstageModule) {
|
|
8968
9143
|
this.ribbonBackstageModule.updateBackStageMenu(this.backStageMenu);
|
|
8969
9144
|
}
|
|
8970
9145
|
const toolbarElement = this.tabObj['tbObj'];
|
|
8971
9146
|
toolbarElement.refreshOverflow();
|
|
8972
9147
|
break;
|
|
8973
|
-
|
|
9148
|
+
}
|
|
9149
|
+
case 'helpPaneTemplate': {
|
|
8974
9150
|
if (this.ribbonTempEle) {
|
|
8975
9151
|
remove(this.ribbonTempEle);
|
|
8976
9152
|
this.ribbonTempEle = null;
|
|
@@ -8982,93 +9158,95 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
8982
9158
|
const toolbar = this.tabObj['tbObj'];
|
|
8983
9159
|
toolbar.refreshOverflow();
|
|
8984
9160
|
break;
|
|
9161
|
+
}
|
|
8985
9162
|
case 'hideLayoutSwitcher':
|
|
8986
|
-
this.hideLayoutSwitcher
|
|
9163
|
+
if (this.hideLayoutSwitcher) {
|
|
9164
|
+
this.removeExpandCollapse();
|
|
9165
|
+
}
|
|
9166
|
+
else {
|
|
9167
|
+
this.addExpandCollapse();
|
|
9168
|
+
}
|
|
8987
9169
|
break;
|
|
8988
9170
|
}
|
|
8989
9171
|
}
|
|
8990
9172
|
}
|
|
8991
9173
|
};
|
|
8992
|
-
__decorate([
|
|
9174
|
+
__decorate$l([
|
|
8993
9175
|
Property('Classic')
|
|
8994
9176
|
], Ribbon.prototype, "activeLayout", void 0);
|
|
8995
|
-
__decorate([
|
|
9177
|
+
__decorate$l([
|
|
8996
9178
|
Property('')
|
|
8997
9179
|
], Ribbon.prototype, "cssClass", void 0);
|
|
8998
|
-
__decorate([
|
|
9180
|
+
__decorate$l([
|
|
8999
9181
|
Property(false)
|
|
9000
9182
|
], Ribbon.prototype, "enableKeyTips", void 0);
|
|
9001
|
-
__decorate([
|
|
9183
|
+
__decorate$l([
|
|
9002
9184
|
Property('')
|
|
9003
9185
|
], Ribbon.prototype, "layoutSwitcherKeyTip", void 0);
|
|
9004
|
-
__decorate([
|
|
9186
|
+
__decorate$l([
|
|
9005
9187
|
Complex({}, FileMenuSettings)
|
|
9006
9188
|
], Ribbon.prototype, "fileMenu", void 0);
|
|
9007
|
-
__decorate([
|
|
9189
|
+
__decorate$l([
|
|
9008
9190
|
Complex({}, BackStageMenu)
|
|
9009
9191
|
], Ribbon.prototype, "backStageMenu", void 0);
|
|
9010
|
-
__decorate([
|
|
9192
|
+
__decorate$l([
|
|
9011
9193
|
Property('')
|
|
9012
9194
|
], Ribbon.prototype, "launcherIconCss", void 0);
|
|
9013
|
-
__decorate([
|
|
9195
|
+
__decorate$l([
|
|
9014
9196
|
Property(false)
|
|
9015
9197
|
], Ribbon.prototype, "isMinimized", void 0);
|
|
9016
|
-
__decorate([
|
|
9198
|
+
__decorate$l([
|
|
9017
9199
|
Property('en-us')
|
|
9018
9200
|
], Ribbon.prototype, "locale", void 0);
|
|
9019
|
-
__decorate([
|
|
9201
|
+
__decorate$l([
|
|
9020
9202
|
Property(0)
|
|
9021
9203
|
], Ribbon.prototype, "selectedTab", void 0);
|
|
9022
|
-
__decorate([
|
|
9204
|
+
__decorate$l([
|
|
9023
9205
|
Complex({}, TabAnimationSettings)
|
|
9024
9206
|
], Ribbon.prototype, "tabAnimation", void 0);
|
|
9025
|
-
__decorate([
|
|
9207
|
+
__decorate$l([
|
|
9026
9208
|
Collection([], RibbonTab)
|
|
9027
9209
|
], Ribbon.prototype, "tabs", void 0);
|
|
9028
|
-
__decorate([
|
|
9210
|
+
__decorate$l([
|
|
9029
9211
|
Collection([], RibbonContextualTabSettings)
|
|
9030
9212
|
], Ribbon.prototype, "contextualTabs", void 0);
|
|
9031
|
-
__decorate([
|
|
9213
|
+
__decorate$l([
|
|
9032
9214
|
Property('100%')
|
|
9033
9215
|
], Ribbon.prototype, "width", void 0);
|
|
9034
|
-
__decorate([
|
|
9216
|
+
__decorate$l([
|
|
9035
9217
|
Property('')
|
|
9036
9218
|
], Ribbon.prototype, "helpPaneTemplate", void 0);
|
|
9037
|
-
__decorate([
|
|
9219
|
+
__decorate$l([
|
|
9038
9220
|
Property(false)
|
|
9039
9221
|
], Ribbon.prototype, "hideLayoutSwitcher", void 0);
|
|
9040
|
-
__decorate([
|
|
9222
|
+
__decorate$l([
|
|
9041
9223
|
Event()
|
|
9042
9224
|
], Ribbon.prototype, "tabSelecting", void 0);
|
|
9043
|
-
__decorate([
|
|
9225
|
+
__decorate$l([
|
|
9044
9226
|
Event()
|
|
9045
9227
|
], Ribbon.prototype, "tabSelected", void 0);
|
|
9046
|
-
__decorate([
|
|
9228
|
+
__decorate$l([
|
|
9047
9229
|
Event()
|
|
9048
9230
|
], Ribbon.prototype, "ribbonExpanding", void 0);
|
|
9049
|
-
__decorate([
|
|
9231
|
+
__decorate$l([
|
|
9050
9232
|
Event()
|
|
9051
9233
|
], Ribbon.prototype, "ribbonCollapsing", void 0);
|
|
9052
|
-
__decorate([
|
|
9234
|
+
__decorate$l([
|
|
9053
9235
|
Event()
|
|
9054
9236
|
], Ribbon.prototype, "launcherIconClick", void 0);
|
|
9055
|
-
__decorate([
|
|
9237
|
+
__decorate$l([
|
|
9056
9238
|
Event()
|
|
9057
9239
|
], Ribbon.prototype, "created", void 0);
|
|
9058
|
-
__decorate([
|
|
9240
|
+
__decorate$l([
|
|
9059
9241
|
Event()
|
|
9060
9242
|
], Ribbon.prototype, "overflowPopupOpen", void 0);
|
|
9061
|
-
__decorate([
|
|
9243
|
+
__decorate$l([
|
|
9062
9244
|
Event()
|
|
9063
9245
|
], Ribbon.prototype, "overflowPopupClose", void 0);
|
|
9064
|
-
Ribbon = Ribbon_1 = __decorate([
|
|
9246
|
+
Ribbon = Ribbon_1 = __decorate$l([
|
|
9065
9247
|
NotifyPropertyChanges
|
|
9066
9248
|
], Ribbon);
|
|
9067
9249
|
|
|
9068
|
-
/**
|
|
9069
|
-
* Ribbon modules
|
|
9070
|
-
*/
|
|
9071
|
-
|
|
9072
9250
|
/**
|
|
9073
9251
|
* Defines the items of Ribbon.
|
|
9074
9252
|
*/
|
|
@@ -9407,9 +9585,9 @@ class RibbonBackstage extends Component {
|
|
|
9407
9585
|
this.parent = parent;
|
|
9408
9586
|
}
|
|
9409
9587
|
/**
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9588
|
+
* @private
|
|
9589
|
+
* @returns {void}
|
|
9590
|
+
*/
|
|
9413
9591
|
render() {
|
|
9414
9592
|
// render code
|
|
9415
9593
|
}
|
|
@@ -9510,6 +9688,8 @@ class RibbonBackstage extends Component {
|
|
|
9510
9688
|
if (firstMenuEle) {
|
|
9511
9689
|
firstMenuEle.classList.add('e-selected');
|
|
9512
9690
|
firstMenuEle.focus();
|
|
9691
|
+
this.menuIndex = 0;
|
|
9692
|
+
this.isCloseBtn = false;
|
|
9513
9693
|
}
|
|
9514
9694
|
this.createBackStageContent(this.menuCtrl.items[0].id, item.content);
|
|
9515
9695
|
break;
|
|
@@ -9573,7 +9753,8 @@ class RibbonBackstage extends Component {
|
|
|
9573
9753
|
});
|
|
9574
9754
|
let targetEle;
|
|
9575
9755
|
if (backStageOptions.target) {
|
|
9576
|
-
targetEle = backStageOptions.target instanceof HTMLElement ? backStageOptions.target :
|
|
9756
|
+
targetEle = backStageOptions.target instanceof HTMLElement ? backStageOptions.target :
|
|
9757
|
+
document.querySelector(backStageOptions.target);
|
|
9577
9758
|
targetEle.appendChild(this.popupHTMLElement);
|
|
9578
9759
|
}
|
|
9579
9760
|
else {
|
|
@@ -9588,10 +9769,47 @@ class RibbonBackstage extends Component {
|
|
|
9588
9769
|
if (this.parent.enableRtl) {
|
|
9589
9770
|
this.updatePopupPositionOnRtl(this.parent.enableRtl);
|
|
9590
9771
|
}
|
|
9591
|
-
this.popupHTMLElement.onkeydown = (e) => { if (e.code === 'Escape') {
|
|
9592
|
-
this.hideBackstage();
|
|
9593
|
-
} };
|
|
9594
9772
|
this.hideBackstage();
|
|
9773
|
+
EventHandler.add(this.popupHTMLElement, 'keyup', (e) => {
|
|
9774
|
+
if (e.code === 'Escape') {
|
|
9775
|
+
this.hideBackstage();
|
|
9776
|
+
}
|
|
9777
|
+
this.handleNavigation(e);
|
|
9778
|
+
}, this);
|
|
9779
|
+
}
|
|
9780
|
+
handleNavigation(e) {
|
|
9781
|
+
const closeBtnEle = this.popupHTMLElement.querySelector('.e-ribbon-close-btn');
|
|
9782
|
+
const menuItems = this.popupHTMLElement.querySelectorAll('.e-menu-item');
|
|
9783
|
+
const arrowUp = e.key === 'ArrowUp';
|
|
9784
|
+
const arrowDown = e.key === 'ArrowDown';
|
|
9785
|
+
if (arrowUp || arrowDown) {
|
|
9786
|
+
if ((arrowUp && this.menuIndex > 0) || (arrowDown && this.menuIndex < menuItems.length - 1 && !this.isCloseBtn)) {
|
|
9787
|
+
this.menuIndex = arrowUp ? this.menuIndex - 1 : this.menuIndex + 1;
|
|
9788
|
+
}
|
|
9789
|
+
else {
|
|
9790
|
+
if (closeBtnEle && !this.isCloseBtn) {
|
|
9791
|
+
closeBtnEle.focus();
|
|
9792
|
+
this.isCloseBtn = true;
|
|
9793
|
+
}
|
|
9794
|
+
else {
|
|
9795
|
+
this.menuIndex = arrowUp ? menuItems.length - 1 : 0;
|
|
9796
|
+
this.isCloseBtn = false;
|
|
9797
|
+
}
|
|
9798
|
+
}
|
|
9799
|
+
for (let i = 0; i < menuItems.length; i++) {
|
|
9800
|
+
menuItems[parseInt(i.toString(), 10)].classList.remove('e-focused');
|
|
9801
|
+
}
|
|
9802
|
+
if (!this.isCloseBtn) {
|
|
9803
|
+
if (arrowUp && menuItems[this.menuIndex].classList.contains('e-separator')) {
|
|
9804
|
+
this.menuIndex--;
|
|
9805
|
+
}
|
|
9806
|
+
else if (arrowDown && menuItems[this.menuIndex].classList.contains('e-separator')) {
|
|
9807
|
+
this.menuIndex++;
|
|
9808
|
+
}
|
|
9809
|
+
menuItems[this.menuIndex].classList.add('e-focused');
|
|
9810
|
+
menuItems[this.menuIndex].focus();
|
|
9811
|
+
}
|
|
9812
|
+
}
|
|
9595
9813
|
}
|
|
9596
9814
|
updatePopupPositionOnRtl(enableRtl) {
|
|
9597
9815
|
const popupStyle = this.popupHTMLElement.style;
|
|
@@ -9745,11 +9963,13 @@ class RibbonBackstage extends Component {
|
|
|
9745
9963
|
const item = menuOptions.items[parseInt(i.toString(), 10)];
|
|
9746
9964
|
if (item.text === args.item.text) {
|
|
9747
9965
|
this.contentItem = item;
|
|
9966
|
+
this.menuIndex = i;
|
|
9748
9967
|
break;
|
|
9749
9968
|
}
|
|
9750
9969
|
}
|
|
9751
9970
|
this.createBackStageContent(args.item.id, this.contentItem.content);
|
|
9752
|
-
const eventArgs = { cancel: false, target: args.element,
|
|
9971
|
+
const eventArgs = { cancel: false, target: args.element,
|
|
9972
|
+
item: this.contentItem, isBackButton: this.isBackButtonClicked };
|
|
9753
9973
|
if (this.contentItem.backStageItemClick) {
|
|
9754
9974
|
this.contentItem.backStageItemClick.call(this, eventArgs);
|
|
9755
9975
|
}
|
|
@@ -9769,8 +9989,9 @@ class RibbonBackstage extends Component {
|
|
|
9769
9989
|
this.backstageButton.setProperties(commonProp);
|
|
9770
9990
|
if (this.popupEle) {
|
|
9771
9991
|
this.popupEle.setProperties(commonProp);
|
|
9772
|
-
if (this.popupHTMLElement)
|
|
9992
|
+
if (this.popupHTMLElement) {
|
|
9773
9993
|
this.updatePopupPositionOnRtl(commonProp.enableRtl);
|
|
9994
|
+
}
|
|
9774
9995
|
if (this.menuCtrl) {
|
|
9775
9996
|
this.menuCtrl.setProperties(commonProp);
|
|
9776
9997
|
if (this.closeBtn) {
|
|
@@ -9803,7 +10024,7 @@ class RibbonBackstage extends Component {
|
|
|
9803
10024
|
this.popupEle.setProperties({
|
|
9804
10025
|
height: backStageOptions.height,
|
|
9805
10026
|
width: backStageOptions.width,
|
|
9806
|
-
target: backStageOptions.target || this.parent.element
|
|
10027
|
+
target: backStageOptions.target || this.parent.element
|
|
9807
10028
|
});
|
|
9808
10029
|
}
|
|
9809
10030
|
if (backStageOptions.template) {
|
|
@@ -9910,10 +10131,20 @@ class RibbonBackstage extends Component {
|
|
|
9910
10131
|
for (let i = 0; i < items.length; i++) {
|
|
9911
10132
|
const item = items[parseInt(i.toString(), 10)];
|
|
9912
10133
|
if (item.isFooter) {
|
|
9913
|
-
|
|
10134
|
+
if (isAfter) {
|
|
10135
|
+
this.footerMenuCtrl.insertAfter(items, target, isUniqueId);
|
|
10136
|
+
}
|
|
10137
|
+
else {
|
|
10138
|
+
this.footerMenuCtrl.insertBefore(items, target, isUniqueId);
|
|
10139
|
+
}
|
|
9914
10140
|
}
|
|
9915
10141
|
else {
|
|
9916
|
-
|
|
10142
|
+
if (isAfter) {
|
|
10143
|
+
this.menuCtrl.insertAfter(items, target, isUniqueId);
|
|
10144
|
+
}
|
|
10145
|
+
else {
|
|
10146
|
+
this.menuCtrl.insertBefore(items, target, isUniqueId);
|
|
10147
|
+
}
|
|
9917
10148
|
}
|
|
9918
10149
|
}
|
|
9919
10150
|
const backstageItems = [].concat(this.menuCtrl.items, this.footerMenuCtrl.items);
|
|
@@ -10038,8 +10269,8 @@ class RibbonContextualTab {
|
|
|
10038
10269
|
}
|
|
10039
10270
|
}
|
|
10040
10271
|
if (newProp.tabs) {
|
|
10041
|
-
for (const key
|
|
10042
|
-
|
|
10272
|
+
for (const key of Object.keys(newProp.tabs)) {
|
|
10273
|
+
const index = parseInt(key, 10);
|
|
10043
10274
|
const tab = this.parent.tabs.filter((e) => e.id === contextualTab.tabs[parseInt(index.toString(), 10)].id)[0];
|
|
10044
10275
|
this.parent.updateTab(tab);
|
|
10045
10276
|
}
|
|
@@ -10074,8 +10305,7 @@ class RibbonKeyTip {
|
|
|
10074
10305
|
if (key === 'tab') {
|
|
10075
10306
|
for (let i = 0; i < this.parent.tabs.length; i++) {
|
|
10076
10307
|
if (this.parent.keyTipElements[parseInt(i.toString(), 10)]) {
|
|
10077
|
-
|
|
10078
|
-
keytipData = this.parent.keyTipElements[i][key];
|
|
10308
|
+
keytipData = this.parent.keyTipElements[parseInt(i.toString(), 10)][`${key}`];
|
|
10079
10309
|
this.createKeyTipElement((keytipData[0].id), keytipData[0].keyTip, 'tab', 'center', 'bottom', true);
|
|
10080
10310
|
}
|
|
10081
10311
|
}
|
|
@@ -10157,15 +10387,12 @@ class RibbonKeyTip {
|
|
|
10157
10387
|
calculateItemPosition(key, isMethod = false, keyTip) {
|
|
10158
10388
|
let xOffset;
|
|
10159
10389
|
let yOffset;
|
|
10160
|
-
|
|
10161
|
-
/* eslint-disable */
|
|
10162
|
-
keytipData = this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)][key];
|
|
10390
|
+
const keytipData = this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)][`${key}`];
|
|
10163
10391
|
if (keytipData) {
|
|
10164
|
-
for (let i = 0; i < Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)][key]).length; i++) {
|
|
10165
|
-
/* eslint-enable */
|
|
10392
|
+
for (let i = 0; i < Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)][`${key}`]).length; i++) {
|
|
10166
10393
|
if ((isMethod && (keytipData[parseInt(i.toString(), 10)].keyTip === keyTip)) || !isMethod) {
|
|
10167
10394
|
let itemID = keytipData[parseInt(i.toString(), 10)].id;
|
|
10168
|
-
if (keytipData[parseInt(i.toString(), 10)].id.
|
|
10395
|
+
if (keytipData[parseInt(i.toString(), 10)].id.indexOf('_grpbtn') !== -1) {
|
|
10169
10396
|
itemID = keytipData[parseInt(i.toString(), 10)].id.replace(/_grpbtn\d+/, '');
|
|
10170
10397
|
}
|
|
10171
10398
|
const itemProp = getItem(this.parent.tabs, itemID);
|
|
@@ -10193,7 +10420,12 @@ class RibbonKeyTip {
|
|
|
10193
10420
|
yOffset = 'bottom';
|
|
10194
10421
|
}
|
|
10195
10422
|
}
|
|
10196
|
-
key === 'item'
|
|
10423
|
+
if (key === 'item') {
|
|
10424
|
+
this.createKeyTipElement((keytipData[parseInt(i.toString(), 10)].id), keytipData[parseInt(i.toString(), 10)].keyTip, key, xOffset, yOffset);
|
|
10425
|
+
}
|
|
10426
|
+
else {
|
|
10427
|
+
this.createKeyTipElement((keytipData[parseInt(i.toString(), 10)].id), keytipData[parseInt(i.toString(), 10)].keyTip, key, xOffset, yOffset, false, true);
|
|
10428
|
+
}
|
|
10197
10429
|
}
|
|
10198
10430
|
}
|
|
10199
10431
|
}
|
|
@@ -10213,7 +10445,7 @@ class RibbonKeyTip {
|
|
|
10213
10445
|
isPopUpPresent = true;
|
|
10214
10446
|
}
|
|
10215
10447
|
if (keyEle.closest('.e-split-btn-wrapper')) {
|
|
10216
|
-
|
|
10448
|
+
const splitBtn = keyEle.closest('.e-split-btn-wrapper');
|
|
10217
10449
|
splitBtnID = splitBtn.closest('.e-ribbon-item').id;
|
|
10218
10450
|
}
|
|
10219
10451
|
else {
|
|
@@ -10239,12 +10471,12 @@ class RibbonKeyTip {
|
|
|
10239
10471
|
enableRtl: this.parent.enableRtl
|
|
10240
10472
|
});
|
|
10241
10473
|
keytipPopup.show();
|
|
10242
|
-
this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset
|
|
10474
|
+
this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset);
|
|
10243
10475
|
this.parent.isKeytipOpen = true;
|
|
10244
10476
|
}
|
|
10245
10477
|
}
|
|
10246
10478
|
}
|
|
10247
|
-
calculateKeyTipPosition(itemEle, keytipElement, type, yOffset
|
|
10479
|
+
calculateKeyTipPosition(itemEle, keytipElement, type, yOffset) {
|
|
10248
10480
|
const position = itemEle.getBoundingClientRect();
|
|
10249
10481
|
if (type === 'backstageMenu') {
|
|
10250
10482
|
keytipElement.style.top = position.top + ((keytipElement.offsetHeight) / 2) + 'px';
|
|
@@ -10266,6 +10498,7 @@ class RibbonKeyTip {
|
|
|
10266
10498
|
* Performs keytip action.
|
|
10267
10499
|
*
|
|
10268
10500
|
* @param {string} keyPress - Gets the keytip text.
|
|
10501
|
+
* @param {boolean} isMethod - Gets the isMethod.
|
|
10269
10502
|
* @returns {void}
|
|
10270
10503
|
* @hidden
|
|
10271
10504
|
*/
|
|
@@ -10273,9 +10506,11 @@ class RibbonKeyTip {
|
|
|
10273
10506
|
this.isKeytipPresent = false;
|
|
10274
10507
|
for (let i = 0; ((i < Object.keys(this.parent.keyTipElements).length) && !this.isKeytipPresent); i++) {
|
|
10275
10508
|
if (this.parent.keyTipElements[parseInt(i.toString(), 10)]) {
|
|
10276
|
-
for (let j = 0; ((j < Object.keys(this.parent.keyTipElements[parseInt(i.toString(), 10)]).length) &&
|
|
10277
|
-
|
|
10278
|
-
|
|
10509
|
+
for (let j = 0; ((j < Object.keys(this.parent.keyTipElements[parseInt(i.toString(), 10)]).length) &&
|
|
10510
|
+
!this.isKeytipPresent); j++) {
|
|
10511
|
+
const keytipData = this.parent.keyTipElements[parseInt(i.toString(), 10)][Object.
|
|
10512
|
+
keys(this.parent.keyTipElements[parseInt(i.toString(), 10)])[parseInt(j.toString(), 10)]];
|
|
10513
|
+
for (let k = 0; ((k < Object.keys(keytipData).length) && !this.isKeytipPresent); k++) {
|
|
10279
10514
|
if (keyPress.toUpperCase() === keytipData[parseInt(k.toString(), 10)].keyTip) {
|
|
10280
10515
|
const keyTipElement = document.querySelector('#' + keytipData[parseInt(k.toString(), 10)].id + RIBBON_KEYTIP_ID);
|
|
10281
10516
|
if (keyTipElement || isMethod) {
|
|
@@ -10286,8 +10521,9 @@ class RibbonKeyTip {
|
|
|
10286
10521
|
this.parent.tabObj.select(i);
|
|
10287
10522
|
setTimeout(() => {
|
|
10288
10523
|
const tabOverflow = this.parent.tabObj.element.querySelector('.e-nav-active');
|
|
10289
|
-
if (tabOverflow)
|
|
10524
|
+
if (tabOverflow) {
|
|
10290
10525
|
tabOverflow.click();
|
|
10526
|
+
}
|
|
10291
10527
|
this.createKeytip('item');
|
|
10292
10528
|
}, 600);
|
|
10293
10529
|
}
|
|
@@ -10302,7 +10538,7 @@ class RibbonKeyTip {
|
|
|
10302
10538
|
}
|
|
10303
10539
|
else {
|
|
10304
10540
|
let itemProp;
|
|
10305
|
-
if ((keytipData[parseInt(k.toString(), 10)].id).
|
|
10541
|
+
if ((keytipData[parseInt(k.toString(), 10)].id).indexOf('_popupButton') !== -1) {
|
|
10306
10542
|
const galleryID = keytipData[parseInt(k.toString(), 10)].id.replace(/_popupButton/g, '');
|
|
10307
10543
|
itemProp = getItem(this.parent.tabs, galleryID);
|
|
10308
10544
|
}
|
|
@@ -10320,7 +10556,7 @@ class RibbonKeyTip {
|
|
|
10320
10556
|
if (keyEle) {
|
|
10321
10557
|
let groupID = keytipData[parseInt(k.toString(), 10)].id;
|
|
10322
10558
|
if (isMethod) {
|
|
10323
|
-
if (keytipData[parseInt(k.toString(), 10)].id.
|
|
10559
|
+
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) {
|
|
10324
10560
|
groupID = keytipData[parseInt(k.toString(), 10)].id.replace(/_launcher|_sim_grp_overflow|_overflow_dropdown/g, '');
|
|
10325
10561
|
const itemProp = getGroup(this.parent.tabs, groupID);
|
|
10326
10562
|
if (itemProp.tabIndex === this.parent.selectedTab) {
|
|
@@ -10351,11 +10587,16 @@ class RibbonKeyTip {
|
|
|
10351
10587
|
keyEle.click();
|
|
10352
10588
|
if (!(keytipData[parseInt(k.toString(), 10)].type === 'launcher')) {
|
|
10353
10589
|
this.isKeytipPopupOpen = true;
|
|
10354
|
-
keytipData[parseInt(k.toString(), 10)].type === 'grpoverflow'
|
|
10590
|
+
if (keytipData[parseInt(k.toString(), 10)].type === 'grpoverflow') {
|
|
10591
|
+
this.createKeytip('grpoverflowpopup');
|
|
10592
|
+
}
|
|
10593
|
+
else {
|
|
10594
|
+
this.createKeytip('popupitem');
|
|
10595
|
+
}
|
|
10355
10596
|
}
|
|
10356
10597
|
}
|
|
10357
10598
|
else {
|
|
10358
|
-
|
|
10599
|
+
const itemID = keytipData[parseInt(k.toString(), 10)].id;
|
|
10359
10600
|
if (document.querySelector('#' + itemID) && isMethod) {
|
|
10360
10601
|
if (this.parent.activeLayout === 'Simplified') {
|
|
10361
10602
|
if (document.querySelector('#' + itemID).closest('#' + itemProp.group.id + '_sim_grp_overflow-popup') && document.querySelector('#' + itemID).closest('#' + itemProp.group.id + '_sim_grp_overflow-popup').classList.contains('e-popup-close')) {
|
|
@@ -10388,21 +10629,24 @@ class RibbonKeyTip {
|
|
|
10388
10629
|
case 'colorpicker':
|
|
10389
10630
|
this.parent.ribbonColorPickerModule.toggle(itemID);
|
|
10390
10631
|
break;
|
|
10391
|
-
case 'combobox':
|
|
10632
|
+
case 'combobox': {
|
|
10392
10633
|
const itemEle = document.querySelector('#' + itemID);
|
|
10393
10634
|
setTimeout(() => {
|
|
10394
10635
|
itemEle.focus();
|
|
10395
10636
|
}, 100);
|
|
10396
10637
|
break;
|
|
10397
|
-
|
|
10638
|
+
}
|
|
10639
|
+
case 'gallery': {
|
|
10398
10640
|
const galleryEle = document.querySelector('#' + itemID);
|
|
10399
10641
|
galleryEle.click();
|
|
10400
10642
|
break;
|
|
10401
|
-
|
|
10643
|
+
}
|
|
10644
|
+
case 'template': {
|
|
10402
10645
|
const templateEle = document.querySelector('#' + itemID);
|
|
10403
10646
|
templateEle.focus();
|
|
10404
10647
|
break;
|
|
10405
|
-
|
|
10648
|
+
}
|
|
10649
|
+
case 'group-btn': {
|
|
10406
10650
|
const itemElement = document.querySelector('#' + itemID);
|
|
10407
10651
|
if (itemElement) {
|
|
10408
10652
|
const item = getInstance(itemElement, DropDownButton);
|
|
@@ -10414,20 +10658,19 @@ class RibbonKeyTip {
|
|
|
10414
10658
|
}
|
|
10415
10659
|
}
|
|
10416
10660
|
break;
|
|
10661
|
+
}
|
|
10417
10662
|
}
|
|
10418
10663
|
}
|
|
10419
10664
|
}
|
|
10420
10665
|
commonItemsKeyTipPress(keyPress, key, isMethod) {
|
|
10421
|
-
|
|
10422
|
-
if (this.parent.keyTipElements[key]) {
|
|
10666
|
+
if (this.parent.keyTipElements[`${key}`]) {
|
|
10423
10667
|
let isKeyPressed = false;
|
|
10424
|
-
|
|
10668
|
+
const keytipData = this.parent.keyTipElements[`${key}`];
|
|
10425
10669
|
let keyEle;
|
|
10426
10670
|
let keytipElement;
|
|
10427
10671
|
if (keytipData) {
|
|
10428
10672
|
if (key === 'backstageMenu') {
|
|
10429
|
-
for (let i = 0; i < Object.keys(this.parent.keyTipElements[key]).length; i++) {
|
|
10430
|
-
/* eslint-enable */
|
|
10673
|
+
for (let i = 0; i < Object.keys(this.parent.keyTipElements[`${key}`]).length; i++) {
|
|
10431
10674
|
if (keytipData[parseInt(i.toString(), 10)].keyTip === keyPress.toUpperCase()) {
|
|
10432
10675
|
keyEle = document.querySelector('#' + keytipData[parseInt(i.toString(), 10)].id);
|
|
10433
10676
|
keytipElement = document.querySelector('#' + keyEle.id + RIBBON_KEYTIP_ID);
|
|
@@ -10467,7 +10710,7 @@ class RibbonKeyTip {
|
|
|
10467
10710
|
setTimeout(() => {
|
|
10468
10711
|
for (let i = 0; i < Object.keys(this.parent.keyTipElements).length; i++) {
|
|
10469
10712
|
if (this.parent.keyTipElements[parseInt(i.toString(), 10)]) {
|
|
10470
|
-
|
|
10713
|
+
const keytipData = this.parent.keyTipElements[parseInt(i.toString(), 10)]['tab'];
|
|
10471
10714
|
this.createKeyTipElement((keytipData[0].id), keytipData[0].keyTip, 'tab', 'center', 'bottom', true, true);
|
|
10472
10715
|
}
|
|
10473
10716
|
}
|
|
@@ -10491,34 +10734,34 @@ class RibbonKeyTip {
|
|
|
10491
10734
|
for (let i = 0; i < keyTipItems.length; i++) {
|
|
10492
10735
|
const keyTipItem = keyTipItems[parseInt(i.toString(), 10)];
|
|
10493
10736
|
if (key === 'Escape' && this.parent.keyTipElements && this.parent.keyTipElements[this.parent.selectedTab]) {
|
|
10494
|
-
/* eslint-disable */
|
|
10495
10737
|
for (let j = 0; j < Object.keys(this.parent.keyTipElements[this.parent.selectedTab]).length; j++) {
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10738
|
+
const keyText = (Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)]))[parseInt(j.toString(), 10)];
|
|
10739
|
+
const keyTipElement = this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(), 10)];
|
|
10740
|
+
const index = getIndex(keyTipElement[`${keyText}`], (e) => {
|
|
10741
|
+
return e.id +
|
|
10742
|
+
RIBBON_KEYTIP_ID === keyTipItems[parseInt(i.toString(), 10)].id;
|
|
10743
|
+
});
|
|
10744
|
+
if (index !== -1) {
|
|
10745
|
+
if ((keyText === 'item' && !(this.isKeytipPopupOpen)) || (keyText === 'grpoverflow' && this.parent.activeLayout === 'Classic')) {
|
|
10746
|
+
this.createKeytip('tab');
|
|
10747
|
+
key = '';
|
|
10748
|
+
isKeyTipExist = true;
|
|
10749
|
+
break;
|
|
10750
|
+
}
|
|
10751
|
+
else if (this.isKeytipPopupOpen) {
|
|
10752
|
+
if ((keyText === 'popupitem' && this.parent.activeLayout === 'Simplified') || (keyText === 'grpoverflowpopup' && this.parent.activeLayout === 'Classic')) {
|
|
10753
|
+
this.createKeytip('item');
|
|
10503
10754
|
key = '';
|
|
10504
10755
|
isKeyTipExist = true;
|
|
10505
10756
|
break;
|
|
10506
10757
|
}
|
|
10507
|
-
else if (this.isKeytipPopupOpen) {
|
|
10508
|
-
if ((keyText === 'popupitem' && this.parent.activeLayout === 'Simplified') || (keyText === 'grpoverflowpopup' && this.parent.activeLayout === 'Classic')) {
|
|
10509
|
-
this.createKeytip('item');
|
|
10510
|
-
key = '';
|
|
10511
|
-
isKeyTipExist = true;
|
|
10512
|
-
break;
|
|
10513
|
-
}
|
|
10514
|
-
}
|
|
10515
10758
|
}
|
|
10516
10759
|
}
|
|
10517
10760
|
}
|
|
10518
10761
|
for (let n = 0; n < Object.keys(this.parent.keyTipElements).length; n++) {
|
|
10519
10762
|
if (this.parent.keyTipElements[parseInt(n.toString(), 10)]) {
|
|
10520
|
-
|
|
10521
|
-
for (let j = 0; j < keytipData.length; j++) {
|
|
10763
|
+
const keytipData = this.parent.keyTipElements[parseInt(n.toString(), 10)]['tab'];
|
|
10764
|
+
for (let j = 0; j < Object.keys(keytipData).length; j++) {
|
|
10522
10765
|
if (keyTipItem.id === keytipData[0].id + RIBBON_KEYTIP_ID) {
|
|
10523
10766
|
if (document.querySelector('#' + keytipData[0].id + HEADER_ID).closest('.e-toolbar-pop')) {
|
|
10524
10767
|
const tabOverflow = this.parent.tabObj.element.querySelector('.e-nav-active');
|
|
@@ -10551,8 +10794,9 @@ class RibbonKeyTip {
|
|
|
10551
10794
|
}
|
|
10552
10795
|
}
|
|
10553
10796
|
this.isKeytipPopupOpen = false;
|
|
10554
|
-
if (!isKeyTipExist)
|
|
10797
|
+
if (!isKeyTipExist) {
|
|
10555
10798
|
this.parent.isKeytipOpen = false;
|
|
10799
|
+
}
|
|
10556
10800
|
}
|
|
10557
10801
|
/**
|
|
10558
10802
|
* Shows the Keytip dynamically.
|
|
@@ -10580,12 +10824,5 @@ class RibbonKeyTip {
|
|
|
10580
10824
|
}
|
|
10581
10825
|
}
|
|
10582
10826
|
|
|
10583
|
-
|
|
10584
|
-
* Ribbon modules
|
|
10585
|
-
*/
|
|
10586
|
-
|
|
10587
|
-
// export all modules from current location
|
|
10588
|
-
// example: export * from './module'
|
|
10589
|
-
|
|
10590
|
-
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 };
|
|
10827
|
+
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 };
|
|
10591
10828
|
//# sourceMappingURL=ej2-ribbon.es2015.js.map
|