@syncfusion/ej2-ribbon 26.1.40 → 26.1.42
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/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 +52 -10
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +52 -10
- 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 +9 -9
- package/src/ribbon/base/interface.d.ts +13 -0
- package/src/ribbon/base/ribbon-model.d.ts +8 -1
- package/src/ribbon/base/ribbon.d.ts +7 -1
- package/src/ribbon/base/ribbon.js +49 -10
- package/src/ribbon/items/ribbon-gallery.js +3 -0
- package/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/fluent2.css +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material.css +1 -0
- package/styles/material3-dark.css +1 -0
- package/styles/material3.css +1 -0
- package/styles/ribbon/_layout.scss +1 -0
- package/styles/ribbon/bootstrap-dark.css +1 -0
- package/styles/ribbon/bootstrap.css +1 -0
- package/styles/ribbon/bootstrap4.css +1 -0
- package/styles/ribbon/bootstrap5-dark.css +1 -0
- package/styles/ribbon/bootstrap5.css +1 -0
- package/styles/ribbon/fabric-dark.css +1 -0
- package/styles/ribbon/fabric.css +1 -0
- package/styles/ribbon/fluent-dark.css +1 -0
- package/styles/ribbon/fluent.css +1 -0
- package/styles/ribbon/fluent2.css +1 -0
- package/styles/ribbon/highcontrast-light.css +1 -0
- package/styles/ribbon/highcontrast.css +1 -0
- package/styles/ribbon/material-dark.css +1 -0
- package/styles/ribbon/material.css +1 -0
- package/styles/ribbon/material3-dark.css +1 -0
- package/styles/ribbon/material3.css +1 -0
- package/styles/ribbon/tailwind-dark.css +1 -0
- package/styles/ribbon/tailwind.css +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.1.
|
|
3
|
+
* version : 26.1.42
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-ribbon@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-ribbon@26.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-ribbon@26.1.41",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-sFNYCnCHzrse9jMS3esuvQR+axCghFfd5hefHBOyYjs6oN1z2oLTTJKWdukrH30JT1eMIHyTm1K5/AxOLRSHug==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-ribbon",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-ribbon",
|
|
24
24
|
"/@syncfusion/ej2-vue-ribbon"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-26.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-26.1.41.tgz",
|
|
27
|
+
"_shasum": "0fb91a23bb125e13ac150f2f171b26d6a3197818",
|
|
28
28
|
"_spec": "@syncfusion/ej2-ribbon@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~26.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~26.1.42",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~26.1.40",
|
|
40
|
-
"@syncfusion/ej2-dropdowns": "~26.1.
|
|
40
|
+
"@syncfusion/ej2-dropdowns": "~26.1.42",
|
|
41
41
|
"@syncfusion/ej2-lists": "~26.1.35",
|
|
42
|
-
"@syncfusion/ej2-navigations": "~26.1.
|
|
43
|
-
"@syncfusion/ej2-popups": "~26.1.
|
|
42
|
+
"@syncfusion/ej2-navigations": "~26.1.41",
|
|
43
|
+
"@syncfusion/ej2-popups": "~26.1.42",
|
|
44
44
|
"@syncfusion/ej2-splitbuttons": "~26.1.35"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "git+https://github.com/syncfusion/ej2-ribbon-component.git"
|
|
63
63
|
},
|
|
64
64
|
"typings": "index.d.ts",
|
|
65
|
-
"version": "26.1.
|
|
65
|
+
"version": "26.1.42",
|
|
66
66
|
"sideEffects": false
|
|
67
67
|
}
|
|
@@ -173,6 +173,19 @@ export interface ExpandCollapseEventArgs extends BaseEventArgs {
|
|
|
173
173
|
*/
|
|
174
174
|
cancel: boolean;
|
|
175
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Event triggers when the ribbon layout is switched.
|
|
178
|
+
*/
|
|
179
|
+
export interface LayoutSwitchedEventArgs extends BaseEventArgs {
|
|
180
|
+
/**
|
|
181
|
+
* Specifies the active layout of the ribbon.
|
|
182
|
+
*/
|
|
183
|
+
activeLayout: string;
|
|
184
|
+
/**
|
|
185
|
+
* Provides the actual native event.
|
|
186
|
+
*/
|
|
187
|
+
event: Event;
|
|
188
|
+
}
|
|
176
189
|
/**
|
|
177
190
|
* Event Triggers when the launcher icon is clicked.
|
|
178
191
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup, RibbonContextualTabSettingsModel, RibbonContextualTabSettings } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType, KeyTipDataType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { CheckBox } from '@syncfusion/ej2-buttons';import { RibbonContextualTab } from '../modules/ribbon-contextualtab';import { RibbonGallery } from '../items/ribbon-gallery';
|
|
1
|
+
import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup, RibbonContextualTabSettingsModel, RibbonContextualTabSettings } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType, KeyTipDataType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { CheckBox } from '@syncfusion/ej2-buttons';import { RibbonContextualTab } from '../modules/ribbon-contextualtab';import { RibbonGallery } from '../items/ribbon-gallery';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -157,6 +157,13 @@ export interface RibbonModel extends ComponentModel{
|
|
|
157
157
|
*/
|
|
158
158
|
ribbonCollapsing?: EmitType<ExpandCollapseEventArgs>;
|
|
159
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Event triggers when the ribbon layout is switched.
|
|
162
|
+
*
|
|
163
|
+
* @event ribbonLayoutSwitched
|
|
164
|
+
*/
|
|
165
|
+
ribbonLayoutSwitched?: EmitType<LayoutSwitchedEventArgs>;
|
|
166
|
+
|
|
160
167
|
/**
|
|
161
168
|
* Event triggers when the launcher icon of the group is clicked.
|
|
162
169
|
*
|
|
@@ -3,7 +3,7 @@ import { INotifyPropertyChanged, ModuleDeclaration } from '@syncfusion/ej2-base'
|
|
|
3
3
|
import { Tab, TabAnimationSettingsModel } from '@syncfusion/ej2-navigations';
|
|
4
4
|
import { RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettingsModel, BackStageMenuModel, RibbonContextualTabSettingsModel } from '../models/index';
|
|
5
5
|
import { RibbonModel } from './ribbon-model';
|
|
6
|
-
import { ExpandCollapseEventArgs, LauncherClickEventArgs, OverflowPopupEventArgs, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';
|
|
6
|
+
import { ExpandCollapseEventArgs, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';
|
|
7
7
|
import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';
|
|
8
8
|
import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';
|
|
9
9
|
import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
@@ -144,6 +144,12 @@ export declare class Ribbon extends Component<HTMLElement> implements INotifyPro
|
|
|
144
144
|
* @event ribbonCollapsing
|
|
145
145
|
*/
|
|
146
146
|
ribbonCollapsing: EmitType<ExpandCollapseEventArgs>;
|
|
147
|
+
/**
|
|
148
|
+
* Event triggers when the ribbon layout is switched.
|
|
149
|
+
*
|
|
150
|
+
* @event ribbonLayoutSwitched
|
|
151
|
+
*/
|
|
152
|
+
ribbonLayoutSwitched: EmitType<LayoutSwitchedEventArgs>;
|
|
147
153
|
/**
|
|
148
154
|
* Event triggers when the launcher icon of the group is clicked.
|
|
149
155
|
*
|
|
@@ -556,9 +556,11 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
};
|
|
559
|
-
Ribbon.prototype.toggleLayout = function () {
|
|
559
|
+
Ribbon.prototype.toggleLayout = function (args) {
|
|
560
560
|
this.setProperties({ activeLayout: this.activeLayout === 'Simplified' ? 'Classic' : 'Simplified' }, true);
|
|
561
561
|
this.switchLayout();
|
|
562
|
+
var eventArgs = { activeLayout: this.activeLayout, event: args };
|
|
563
|
+
this.trigger('ribbonLayoutSwitched', eventArgs);
|
|
562
564
|
};
|
|
563
565
|
Ribbon.prototype.tabCreated = function () {
|
|
564
566
|
if (!this.hideLayoutSwitcher) {
|
|
@@ -2320,10 +2322,10 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
2320
2322
|
id: this.tabObj.element.id + constants.COLLAPSE_BUTTON_ID,
|
|
2321
2323
|
attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Layout Switcher', 'role': 'button' }
|
|
2322
2324
|
});
|
|
2323
|
-
this.collapseButton.onclick = function () { _this.toggleLayout(); };
|
|
2325
|
+
this.collapseButton.onclick = function (e) { _this.toggleLayout(e); };
|
|
2324
2326
|
this.collapseButton.onkeydown = function (e) {
|
|
2325
2327
|
if (e.key === 'Enter') {
|
|
2326
|
-
_this.toggleLayout();
|
|
2328
|
+
_this.toggleLayout(e);
|
|
2327
2329
|
}
|
|
2328
2330
|
};
|
|
2329
2331
|
this.element.classList.add(constants.RIBBON_COLLAPSIBLE);
|
|
@@ -3205,10 +3207,18 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
3205
3207
|
for (var i = 0; i < galleryPopupEle.length; i++) {
|
|
3206
3208
|
galleryPopupEle[parseInt(i.toString(), 10)].remove();
|
|
3207
3209
|
}
|
|
3210
|
+
var galleryPopupBtn = document.querySelector('#' + item.id + '_popupButton');
|
|
3211
|
+
if (galleryPopupBtn) {
|
|
3212
|
+
galleryPopupBtn.remove();
|
|
3213
|
+
}
|
|
3214
|
+
var galleryWrapper = document.querySelector('#' + item.id + '_galleryWrapper');
|
|
3215
|
+
if (galleryWrapper) {
|
|
3216
|
+
galleryWrapper.remove();
|
|
3217
|
+
}
|
|
3208
3218
|
}
|
|
3209
3219
|
else {
|
|
3210
3220
|
var galleryEle = ele.querySelectorAll('.e-ribbon-gallery-item');
|
|
3211
|
-
var galleryPopupBtn = ele.querySelector('#' + item.id + '_popupButton');
|
|
3221
|
+
var galleryPopupBtn = ele.parentElement.querySelector('#' + item.id + '_popupButton');
|
|
3212
3222
|
if (galleryPopupBtn) {
|
|
3213
3223
|
galleryPopupBtn.remove();
|
|
3214
3224
|
}
|
|
@@ -4558,6 +4568,17 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4558
4568
|
else {
|
|
4559
4569
|
itemContainer = groupContainer.querySelector('#' + itemId + constants.CONTAINER_ID);
|
|
4560
4570
|
itemEle = contentEle.querySelector('#' + itemId);
|
|
4571
|
+
if (!itemContainer) {
|
|
4572
|
+
itemContainer = dropdown ? dropdown.target.querySelector('#' + itemId + constants.CONTAINER_ID) : groupContainer.querySelector('#' + itemId + constants.CONTAINER_ID);
|
|
4573
|
+
}
|
|
4574
|
+
if (!itemEle) {
|
|
4575
|
+
itemEle = dropdown ? dropdown.target.querySelector('#' + itemId) : contentEle.querySelector('#' + itemId);
|
|
4576
|
+
}
|
|
4577
|
+
if (itemProp.item.type === 'Gallery') {
|
|
4578
|
+
if (!itemEle) {
|
|
4579
|
+
itemEle = contentEle.querySelector('#' + itemId + '_galleryWrapper');
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4561
4582
|
if (itemProp.item.type === 'GroupButton' && this.activeLayout === RibbonLayout.Classic) {
|
|
4562
4583
|
itemEle = contentEle.querySelector('#' + itemId + constants.RIBBON_GROUP_BUTTON_ID);
|
|
4563
4584
|
}
|
|
@@ -4586,12 +4607,6 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4586
4607
|
ribbonItem.setProperties(item, true);
|
|
4587
4608
|
this.validateItemSize();
|
|
4588
4609
|
if (contentEle.innerHTML !== '') {
|
|
4589
|
-
if (!(this.activeLayout === RibbonLayout.Simplified && ribbonItem.displayOptions === DisplayMode.Overflow)) {
|
|
4590
|
-
itemContainer = groupContainer.querySelector('#' + itemId + constants.CONTAINER_ID);
|
|
4591
|
-
}
|
|
4592
|
-
else {
|
|
4593
|
-
itemContainer = dropdown.target.querySelector('#' + itemId + constants.CONTAINER_ID);
|
|
4594
|
-
}
|
|
4595
4610
|
// To avoid undefined items condition is added
|
|
4596
4611
|
if (ribbonItem.ribbonTooltipSettings && isTooltipPresent(ribbonItem.ribbonTooltipSettings)) {
|
|
4597
4612
|
itemContainer.classList.add(constants.RIBBON_TOOLTIP_TARGET);
|
|
@@ -4615,6 +4630,9 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4615
4630
|
}
|
|
4616
4631
|
}
|
|
4617
4632
|
this.createRibbonItem(ribbonItem, itemContainer);
|
|
4633
|
+
if (itemProp.item.type === 'Gallery' && document.querySelector('#' + itemId + '_container').closest('.e-ribbon-overflow-target') && item.displayOptions !== DisplayMode.Overflow) {
|
|
4634
|
+
this.createOverflowPopup(itemProp.item, itemProp.tabIndex, itemProp.group.enableGroupOverflow, itemProp.group.id, itemProp.group.header, itemContainer, groupContainer);
|
|
4635
|
+
}
|
|
4618
4636
|
if (this.activeLayout === 'Simplified' && itemProp.group.enableGroupOverflow) {
|
|
4619
4637
|
if (dropdown.target.childElementCount === 0 ||
|
|
4620
4638
|
(dropdown.target.childElementCount === 1 &&
|
|
@@ -4695,6 +4713,7 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4695
4713
|
};
|
|
4696
4714
|
Ribbon.prototype.enableDisableItem = function (itemId, isDisabled) {
|
|
4697
4715
|
var isUpdated = false;
|
|
4716
|
+
var isOverflow = false;
|
|
4698
4717
|
var itemProp = getItem(this.tabs, itemId);
|
|
4699
4718
|
if (!itemProp) {
|
|
4700
4719
|
return;
|
|
@@ -4704,6 +4723,15 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4704
4723
|
if (itemProp.item.type === 'GroupButton') {
|
|
4705
4724
|
ele = getItemElement(this, itemId + constants.RIBBON_GROUP_BUTTON_ID, itemProp);
|
|
4706
4725
|
}
|
|
4726
|
+
else if (itemProp.item.type === 'Gallery') {
|
|
4727
|
+
ele = document.querySelector('#' + itemId);
|
|
4728
|
+
if (!ele) {
|
|
4729
|
+
ele = document.querySelector('#' + itemId + '_galleryWrapper');
|
|
4730
|
+
}
|
|
4731
|
+
else {
|
|
4732
|
+
isOverflow = true;
|
|
4733
|
+
}
|
|
4734
|
+
}
|
|
4707
4735
|
else {
|
|
4708
4736
|
ele = getItemElement(this, itemId, itemProp);
|
|
4709
4737
|
}
|
|
@@ -4727,6 +4755,14 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4727
4755
|
updateControlDisabled(btnEle, 'btn', isDisabled);
|
|
4728
4756
|
}
|
|
4729
4757
|
}
|
|
4758
|
+
else if (moduleName === 'gallery') {
|
|
4759
|
+
ele.classList.toggle(constants.DISABLED_CSS, isDisabled);
|
|
4760
|
+
document.getElementById(itemId + '_popupButton').classList.toggle(constants.DISABLED_CSS, isDisabled);
|
|
4761
|
+
if (isOverflow) {
|
|
4762
|
+
var galleryEle = document.getElementById(itemId + '_galleryWrapper');
|
|
4763
|
+
galleryEle.classList.toggle(constants.DISABLED_CSS, isDisabled);
|
|
4764
|
+
}
|
|
4765
|
+
}
|
|
4730
4766
|
else {
|
|
4731
4767
|
updateControlDisabled(ele, moduleName, isDisabled);
|
|
4732
4768
|
}
|
|
@@ -4978,6 +5014,9 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4978
5014
|
__decorate([
|
|
4979
5015
|
Event()
|
|
4980
5016
|
], Ribbon.prototype, "ribbonCollapsing", void 0);
|
|
5017
|
+
__decorate([
|
|
5018
|
+
Event()
|
|
5019
|
+
], Ribbon.prototype, "ribbonLayoutSwitched", void 0);
|
|
4981
5020
|
__decorate([
|
|
4982
5021
|
Event()
|
|
4983
5022
|
], Ribbon.prototype, "launcherIconClick", void 0);
|
|
@@ -502,6 +502,9 @@ var RibbonGallery = /** @class */ (function () {
|
|
|
502
502
|
id: item.id
|
|
503
503
|
});
|
|
504
504
|
itemEle.appendChild(buttonEle);
|
|
505
|
+
if (itemEle.querySelector('.e-ribbon-gallery-wrapper').classList.contains('e-disabled')) {
|
|
506
|
+
buttonEle.classList.add('e-disabled');
|
|
507
|
+
}
|
|
505
508
|
itemEle.querySelector('.e-ribbon-gallery-wrapper').classList.add('e-hidden');
|
|
506
509
|
itemEle.querySelectorAll('.e-ribbon-gallery-container').forEach(function (ele) {
|
|
507
510
|
ele.classList.add('e-hidden');
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/fluent2.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/ribbon/fabric.css
CHANGED
package/styles/ribbon/fluent.css
CHANGED
package/styles/tailwind-dark.css
CHANGED