@syncfusion/ej2-ribbon 26.1.40 → 26.1.41

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.1.40
3
+ * version : 26.1.41
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.38",
3
+ "_id": "@syncfusion/ej2-ribbon@26.1.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-2keECQflUgb0MtUUp0Rr7UibEduNznYBNPt7810kc001JuzGF4fd7FUjsa2jmAwYBLeSv3komIlm7TUpGkPorA==",
5
+ "_integrity": "sha512-fhwFQoEoGE07k2AAKX5WrdTgCNukNypTmyEHSDlN3GG55+Ll+DwKOmUdcH9cNIsUvUZ5N8KLwrL2ZNj2IhIasQ==",
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.38.tgz",
27
- "_shasum": "10f6d376c175ad92a84748840dcfad6622788b13",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-26.1.40.tgz",
27
+ "_shasum": "ce5e44a2feec5115d91aedb0417b8e1ebacb42a9",
28
28
  "_spec": "@syncfusion/ej2-ribbon@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
@@ -37,10 +37,10 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~26.1.37",
39
39
  "@syncfusion/ej2-buttons": "~26.1.40",
40
- "@syncfusion/ej2-dropdowns": "~26.1.40",
40
+ "@syncfusion/ej2-dropdowns": "~26.1.41",
41
41
  "@syncfusion/ej2-lists": "~26.1.35",
42
- "@syncfusion/ej2-navigations": "~26.1.40",
43
- "@syncfusion/ej2-popups": "~26.1.38",
42
+ "@syncfusion/ej2-navigations": "~26.1.41",
43
+ "@syncfusion/ej2-popups": "~26.1.41",
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.40",
65
+ "version": "26.1.41",
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);
@@ -4978,6 +4980,9 @@ var Ribbon = /** @class */ (function (_super) {
4978
4980
  __decorate([
4979
4981
  Event()
4980
4982
  ], Ribbon.prototype, "ribbonCollapsing", void 0);
4983
+ __decorate([
4984
+ Event()
4985
+ ], Ribbon.prototype, "ribbonLayoutSwitched", void 0);
4981
4986
  __decorate([
4982
4987
  Event()
4983
4988
  ], Ribbon.prototype, "launcherIconClick", void 0);