@syncfusion/ej2-ribbon 33.2.5 → 34.1.29
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 +108 -9
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +116 -17
- 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 +8 -8
- package/src/ribbon/base/ribbon-model.d.ts +1 -1
- package/src/ribbon/base/ribbon.js +2 -3
- package/src/ribbon/base/utils.js +8 -0
- package/src/ribbon/items/ribbon-colorpicker.js +20 -1
- package/src/ribbon/items/ribbon-combobox.js +30 -1
- package/src/ribbon/items/ribbon-gallery.js +17 -5
- package/src/ribbon/items/ribbon-groupbutton.js +18 -6
- package/src/ribbon/items/ribbon-splitbutton.js +8 -2
- package/src/ribbon/modules/ribbon-filemenu.js +14 -0
- package/styles/bds-lite.css +15 -312
- package/styles/bds-lite.scss +1 -15
- package/styles/bds.css +20 -316
- package/styles/bds.scss +2 -16
- package/styles/bootstrap-dark-lite.css +6 -74
- package/styles/bootstrap-dark-lite.scss +1 -15
- package/styles/bootstrap-dark.css +6 -74
- package/styles/bootstrap-dark.scss +2 -16
- package/styles/bootstrap-lite.css +6 -76
- package/styles/bootstrap-lite.scss +1 -15
- package/styles/bootstrap.css +6 -76
- package/styles/bootstrap.scss +2 -16
- package/styles/bootstrap4-lite.css +7 -127
- package/styles/bootstrap4-lite.scss +1 -15
- package/styles/bootstrap4.css +7 -127
- package/styles/bootstrap4.scss +2 -16
- package/styles/bootstrap5-dark-lite.css +6 -149
- package/styles/bootstrap5-dark-lite.scss +1 -15
- package/styles/bootstrap5-dark.css +11 -149
- package/styles/bootstrap5-dark.scss +2 -16
- package/styles/bootstrap5-lite.css +7 -150
- package/styles/bootstrap5-lite.scss +1 -16
- package/styles/bootstrap5.3-lite.css +7 -318
- package/styles/bootstrap5.3-lite.scss +1 -16
- package/styles/bootstrap5.3.css +13 -403
- package/styles/bootstrap5.3.scss +2 -17
- package/styles/bootstrap5.css +12 -150
- package/styles/bootstrap5.scss +2 -17
- package/styles/fabric-dark-lite.css +6 -50
- package/styles/fabric-dark-lite.scss +1 -16
- package/styles/fabric-dark.css +6 -50
- package/styles/fabric-dark.scss +2 -17
- package/styles/fabric-lite.css +6 -51
- package/styles/fabric-lite.scss +1 -16
- package/styles/fabric.css +6 -51
- package/styles/fabric.scss +2 -17
- package/styles/fluent-dark-lite.css +6 -141
- package/styles/fluent-dark-lite.scss +1 -16
- package/styles/fluent-dark.css +6 -141
- package/styles/fluent-dark.scss +2 -17
- package/styles/fluent-lite.css +6 -141
- package/styles/fluent-lite.scss +1 -16
- package/styles/fluent.css +6 -141
- package/styles/fluent.scss +2 -17
- package/styles/fluent2-lite.css +7 -390
- package/styles/fluent2-lite.scss +1 -16
- package/styles/fluent2.css +7 -476
- package/styles/fluent2.scss +2 -17
- package/styles/highcontrast-light-lite.css +6 -71
- package/styles/highcontrast-light-lite.scss +1 -16
- package/styles/highcontrast-light.css +6 -71
- package/styles/highcontrast-light.scss +2 -17
- package/styles/highcontrast-lite.css +6 -72
- package/styles/highcontrast-lite.scss +1 -16
- package/styles/highcontrast.css +6 -72
- package/styles/highcontrast.scss +2 -17
- package/styles/material-dark-lite.css +7 -211
- package/styles/material-dark-lite.scss +1 -16
- package/styles/material-dark.css +7 -211
- package/styles/material-dark.scss +2 -17
- package/styles/material-lite.css +6 -215
- package/styles/material-lite.scss +1 -15
- package/styles/material.css +6 -215
- package/styles/material.scss +2 -16
- package/styles/material3-dark-lite.css +7 -358
- package/styles/material3-dark-lite.scss +1 -16
- package/styles/material3-dark.css +7 -440
- package/styles/material3-dark.scss +2 -17
- package/styles/material3-lite.css +7 -362
- package/styles/material3-lite.scss +1 -16
- package/styles/material3.css +7 -446
- package/styles/material3.scss +2 -17
- package/styles/ribbon/_all.scss +2 -2
- package/styles/ribbon/_bds-definition.scss +2 -2
- package/styles/ribbon/_bigger.scss +8 -1
- package/styles/ribbon/_bootstrap-dark-definition.scss +1 -2
- package/styles/ribbon/_bootstrap-definition.scss +2 -2
- package/styles/ribbon/_bootstrap4-definition.scss +1 -2
- package/styles/ribbon/_bootstrap5-dark-definition.scss +2 -2
- package/styles/ribbon/_bootstrap5-definition.scss +2 -2
- package/styles/ribbon/_bootstrap5.3-definition.scss +3 -3
- package/styles/ribbon/_fabric-dark-definition.scss +2 -2
- package/styles/ribbon/_fabric-definition.scss +2 -2
- package/styles/ribbon/_fluent-dark-definition.scss +2 -2
- package/styles/ribbon/_fluent-definition.scss +2 -2
- package/styles/ribbon/_fluent2-definition.scss +2 -2
- package/styles/ribbon/_highcontrast-definition.scss +2 -2
- package/styles/ribbon/_highcontrast-light-definition.scss +2 -2
- package/styles/ribbon/_layout.scss +1 -1
- package/styles/ribbon/_material-dark-definition.scss +2 -2
- package/styles/ribbon/_material-definition.scss +2 -2
- package/styles/ribbon/_material3-dark-definition.scss +2 -2
- package/styles/ribbon/_material3-definition.scss +2 -2
- package/styles/ribbon/_tailwind-dark-definition.scss +2 -2
- package/styles/ribbon/_tailwind-definition.scss +2 -2
- package/styles/ribbon/_tailwind3-definition.scss +2 -2
- package/styles/ribbon/_theme.scss +1 -1
- package/styles/ribbon/_variables.scss +2 -0
- package/styles/ribbon/bds.css +20 -316
- package/styles/ribbon/bds.scss +2 -17
- package/styles/ribbon/bootstrap-dark.css +6 -74
- package/styles/ribbon/bootstrap-dark.scss +2 -17
- package/styles/ribbon/bootstrap.css +6 -76
- package/styles/ribbon/bootstrap.scss +2 -17
- package/styles/ribbon/bootstrap4.css +7 -127
- package/styles/ribbon/bootstrap4.scss +2 -17
- package/styles/ribbon/bootstrap5-dark.css +11 -149
- package/styles/ribbon/bootstrap5-dark.scss +2 -17
- package/styles/ribbon/bootstrap5.3.css +13 -403
- package/styles/ribbon/bootstrap5.3.scss +2 -17
- package/styles/ribbon/bootstrap5.css +12 -150
- package/styles/ribbon/bootstrap5.scss +2 -17
- package/styles/ribbon/fabric-dark.css +6 -50
- package/styles/ribbon/fabric-dark.scss +2 -17
- package/styles/ribbon/fabric.css +6 -51
- package/styles/ribbon/fabric.scss +2 -17
- package/styles/ribbon/fluent-dark.css +6 -141
- package/styles/ribbon/fluent-dark.scss +2 -17
- package/styles/ribbon/fluent.css +6 -141
- package/styles/ribbon/fluent.scss +2 -17
- package/styles/ribbon/fluent2.css +7 -476
- package/styles/ribbon/fluent2.scss +2 -17
- package/styles/ribbon/highcontrast-light.css +6 -71
- package/styles/ribbon/highcontrast-light.scss +2 -17
- package/styles/ribbon/highcontrast.css +6 -72
- package/styles/ribbon/highcontrast.scss +2 -17
- package/styles/ribbon/icons/_bds.scss +1 -1
- package/styles/ribbon/icons/_bootstrap-dark.scss +1 -1
- package/styles/ribbon/icons/_bootstrap.scss +1 -1
- package/styles/ribbon/icons/_bootstrap4.scss +1 -1
- package/styles/ribbon/icons/_bootstrap5.3.scss +1 -1
- package/styles/ribbon/icons/_bootstrap5.scss +1 -1
- package/styles/ribbon/icons/_fabric-dark.scss +1 -1
- package/styles/ribbon/icons/_fabric.scss +1 -1
- package/styles/ribbon/icons/_fluent.scss +1 -1
- package/styles/ribbon/icons/_fluent2.scss +1 -1
- package/styles/ribbon/icons/_fusionnew.scss +1 -1
- package/styles/ribbon/icons/_highcontrast.scss +1 -1
- package/styles/ribbon/icons/_material-dark.scss +1 -1
- package/styles/ribbon/icons/_material.scss +1 -1
- package/styles/ribbon/icons/_material3.scss +1 -1
- package/styles/ribbon/icons/_tailwind-dark.scss +1 -1
- package/styles/ribbon/icons/_tailwind.scss +1 -1
- package/styles/ribbon/icons/_tailwind3.scss +1 -1
- package/styles/ribbon/material-dark.css +7 -211
- package/styles/ribbon/material-dark.scss +2 -17
- package/styles/ribbon/material.css +6 -215
- package/styles/ribbon/material.scss +2 -17
- package/styles/ribbon/material3-dark.css +7 -440
- package/styles/ribbon/material3-dark.scss +2 -17
- package/styles/ribbon/material3.css +7 -446
- package/styles/ribbon/material3.scss +2 -17
- package/styles/ribbon/tailwind-dark.css +19 -176
- package/styles/ribbon/tailwind-dark.scss +2 -17
- package/styles/ribbon/tailwind.css +20 -177
- package/styles/ribbon/tailwind.scss +2 -17
- package/styles/ribbon/tailwind3.css +15 -376
- package/styles/ribbon/tailwind3.scss +2 -17
- package/styles/tailwind-dark-lite.css +14 -176
- package/styles/tailwind-dark-lite.scss +1 -16
- package/styles/tailwind-dark.css +19 -176
- package/styles/tailwind-dark.scss +2 -17
- package/styles/tailwind-lite.css +15 -177
- package/styles/tailwind-lite.scss +1 -16
- package/styles/tailwind.css +20 -177
- package/styles/tailwind.scss +2 -17
- package/styles/tailwind3-lite.css +15 -302
- package/styles/tailwind3-lite.scss +1 -16
- package/styles/tailwind3.css +15 -376
- package/styles/tailwind3.scss +2 -17
- package/styles/ribbon/_all.bds.scss +0 -2
- package/styles/ribbon/_all.bootstrap-dark.scss +0 -2
- package/styles/ribbon/_all.bootstrap.scss +0 -2
- package/styles/ribbon/_all.bootstrap4.scss +0 -2
- package/styles/ribbon/_all.bootstrap5-dark.scss +0 -2
- package/styles/ribbon/_all.bootstrap5.3.scss +0 -2
- package/styles/ribbon/_all.bootstrap5.scss +0 -2
- package/styles/ribbon/_all.fabric-dark.scss +0 -2
- package/styles/ribbon/_all.fabric.scss +0 -2
- package/styles/ribbon/_all.fluent-dark.scss +0 -2
- package/styles/ribbon/_all.fluent.scss +0 -2
- package/styles/ribbon/_all.fluent2.scss +0 -2
- package/styles/ribbon/_all.highcontrast-light.scss +0 -2
- package/styles/ribbon/_all.highcontrast.scss +0 -2
- package/styles/ribbon/_all.material-dark.scss +0 -2
- package/styles/ribbon/_all.material.scss +0 -2
- package/styles/ribbon/_all.material3-dark.scss +0 -2
- package/styles/ribbon/_all.material3.scss +0 -2
- package/styles/ribbon/_all.tailwind-dark.scss +0 -2
- package/styles/ribbon/_all.tailwind.scss +0 -2
- package/styles/ribbon/_all.tailwind3.scss +0 -2
- package/styles/ribbon/_bigger.bds.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap-dark.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap4.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap5-dark.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap5.3.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap5.scss +0 -3
- package/styles/ribbon/_bigger.fabric-dark.scss +0 -3
- package/styles/ribbon/_bigger.fabric.scss +0 -3
- package/styles/ribbon/_bigger.fluent-dark.scss +0 -3
- package/styles/ribbon/_bigger.fluent.scss +0 -3
- package/styles/ribbon/_bigger.fluent2.scss +0 -3
- package/styles/ribbon/_bigger.highcontrast-light.scss +0 -3
- package/styles/ribbon/_bigger.highcontrast.scss +0 -3
- package/styles/ribbon/_bigger.material-dark.scss +0 -3
- package/styles/ribbon/_bigger.material.scss +0 -3
- package/styles/ribbon/_bigger.material3-dark.scss +0 -3
- package/styles/ribbon/_bigger.material3.scss +0 -3
- package/styles/ribbon/_bigger.tailwind-dark.scss +0 -3
- package/styles/ribbon/_bigger.tailwind.scss +0 -3
- package/styles/ribbon/_bigger.tailwind3.scss +0 -3
- package/styles/ribbon/_layout.bds.scss +0 -3
- package/styles/ribbon/_layout.bootstrap-dark.scss +0 -3
- package/styles/ribbon/_layout.bootstrap.scss +0 -3
- package/styles/ribbon/_layout.bootstrap4.scss +0 -3
- package/styles/ribbon/_layout.bootstrap5-dark.scss +0 -3
- package/styles/ribbon/_layout.bootstrap5.3.scss +0 -3
- package/styles/ribbon/_layout.bootstrap5.scss +0 -3
- package/styles/ribbon/_layout.fabric-dark.scss +0 -3
- package/styles/ribbon/_layout.fabric.scss +0 -3
- package/styles/ribbon/_layout.fluent-dark.scss +0 -3
- package/styles/ribbon/_layout.fluent.scss +0 -3
- package/styles/ribbon/_layout.fluent2.scss +0 -3
- package/styles/ribbon/_layout.highcontrast-light.scss +0 -3
- package/styles/ribbon/_layout.highcontrast.scss +0 -3
- package/styles/ribbon/_layout.material-dark.scss +0 -3
- package/styles/ribbon/_layout.material.scss +0 -3
- package/styles/ribbon/_layout.material3-dark.scss +0 -3
- package/styles/ribbon/_layout.material3.scss +0 -3
- package/styles/ribbon/_layout.tailwind-dark.scss +0 -3
- package/styles/ribbon/_layout.tailwind.scss +0 -3
- package/styles/ribbon/_layout.tailwind3.scss +0 -3
- package/styles/ribbon/_theme-variables.bds.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap4.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap5-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap5.3.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap5.scss +0 -1
- package/styles/ribbon/_theme-variables.fabric-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.fabric.scss +0 -1
- package/styles/ribbon/_theme-variables.fluent-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.fluent.scss +0 -1
- package/styles/ribbon/_theme-variables.fluent2.scss +0 -1
- package/styles/ribbon/_theme-variables.highcontrast-light.scss +0 -1
- package/styles/ribbon/_theme-variables.highcontrast.scss +0 -1
- package/styles/ribbon/_theme-variables.material-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.material.scss +0 -1
- package/styles/ribbon/_theme-variables.material3-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.material3.scss +0 -1
- package/styles/ribbon/_theme-variables.tailwind-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.tailwind.scss +0 -1
- package/styles/ribbon/_theme-variables.tailwind3.scss +0 -1
- package/styles/ribbon/_theme.bds.scss +0 -4
- package/styles/ribbon/_theme.bootstrap-dark.scss +0 -4
- package/styles/ribbon/_theme.bootstrap.scss +0 -4
- package/styles/ribbon/_theme.bootstrap4.scss +0 -4
- package/styles/ribbon/_theme.bootstrap5-dark.scss +0 -4
- package/styles/ribbon/_theme.bootstrap5.3.scss +0 -4
- package/styles/ribbon/_theme.bootstrap5.scss +0 -4
- package/styles/ribbon/_theme.fabric-dark.scss +0 -4
- package/styles/ribbon/_theme.fabric.scss +0 -4
- package/styles/ribbon/_theme.fluent-dark.scss +0 -4
- package/styles/ribbon/_theme.fluent.scss +0 -4
- package/styles/ribbon/_theme.fluent2.scss +0 -4
- package/styles/ribbon/_theme.highcontrast-light.scss +0 -4
- package/styles/ribbon/_theme.highcontrast.scss +0 -4
- package/styles/ribbon/_theme.material-dark.scss +0 -4
- package/styles/ribbon/_theme.material.scss +0 -4
- package/styles/ribbon/_theme.material3-dark.scss +0 -4
- package/styles/ribbon/_theme.material3.scss +0 -4
- package/styles/ribbon/_theme.tailwind-dark.scss +0 -4
- package/styles/ribbon/_theme.tailwind.scss +0 -4
- package/styles/ribbon/_theme.tailwind3.scss +0 -4
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 34.1.29
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-ribbon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.1.29",
|
|
4
4
|
"description": "Essential JS 2 Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"es2015": "./dist/es6/ej2-ribbon.es5.js",
|
|
10
10
|
"typings": "index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@syncfusion/ej2-base": "~
|
|
13
|
-
"@syncfusion/ej2-buttons": "~
|
|
14
|
-
"@syncfusion/ej2-dropdowns": "~
|
|
15
|
-
"@syncfusion/ej2-lists": "~
|
|
16
|
-
"@syncfusion/ej2-navigations": "~
|
|
17
|
-
"@syncfusion/ej2-popups": "~
|
|
18
|
-
"@syncfusion/ej2-splitbuttons": "~
|
|
12
|
+
"@syncfusion/ej2-base": "~34.1.29",
|
|
13
|
+
"@syncfusion/ej2-buttons": "~34.1.29",
|
|
14
|
+
"@syncfusion/ej2-dropdowns": "~34.1.29",
|
|
15
|
+
"@syncfusion/ej2-lists": "~34.1.29",
|
|
16
|
+
"@syncfusion/ej2-navigations": "~34.1.29",
|
|
17
|
+
"@syncfusion/ej2-popups": "~34.1.29",
|
|
18
|
+
"@syncfusion/ej2-splitbuttons": "~34.1.29"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {},
|
|
21
21
|
"keywords": [
|
|
@@ -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
|
|
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, L10n, 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 { ColorPicker } from '@syncfusion/ej2-inputs';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
|
/**
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { addClass, append, Event, Collection, Complex, Component, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEvents } from '@syncfusion/ej2-base';
|
|
21
|
-
import { isNullOrUndefined, isUndefined, NotifyPropertyChanges, Property, remove, removeClass
|
|
21
|
+
import { isNullOrUndefined, isUndefined, L10n, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';
|
|
22
22
|
import { Tab, TabAnimationSettings, HScroll, Toolbar } from '@syncfusion/ej2-navigations';
|
|
23
23
|
import { RibbonTab, FileMenuSettings, BackStageMenu, RibbonContextualTabSettings } from '../models/index';
|
|
24
24
|
import { DisplayMode, RibbonLayout } from './interface';
|
|
@@ -415,7 +415,7 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
415
415
|
this.scrollModule.scrollStep = scrollEle.offsetWidth;
|
|
416
416
|
}
|
|
417
417
|
if (this.activeLayout === 'Simplified') {
|
|
418
|
-
var activePopups = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active');
|
|
418
|
+
var activePopups = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active[aria-expanded="true"], .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active[aria-expanded="true"]');
|
|
419
419
|
var colorPickerPopups = document.querySelectorAll('.e-ribbon .e-colorpicker-wrapper.e-ribbon-control.e-ribbon-open .e-colorpicker, .e-ribbon-group-overflow-ddb .e-colorpicker-wrapper.e-ribbon-control.e-ribbon-open .e-colorpicker');
|
|
420
420
|
activePopups.forEach(function (popup) {
|
|
421
421
|
var dropDownBtn = getInstance(popup, DropDownButton);
|
|
@@ -4853,7 +4853,6 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4853
4853
|
_super.prototype.destroy.call(this);
|
|
4854
4854
|
this.tabObj.destroy();
|
|
4855
4855
|
this.tabObj = undefined;
|
|
4856
|
-
this.l10n = null;
|
|
4857
4856
|
this.initialPropsData = {};
|
|
4858
4857
|
this.hiddenGroups = [];
|
|
4859
4858
|
this.hiddenElements = {};
|
package/src/ribbon/base/utils.js
CHANGED
|
@@ -273,6 +273,7 @@ export function createTooltip(element, ribbon) {
|
|
|
273
273
|
var ribbonTooltip = new Tooltip({
|
|
274
274
|
target: '.' + constants.RIBBON_TOOLTIP_TARGET,
|
|
275
275
|
beforeRender: beforeTooltipRender.bind(this),
|
|
276
|
+
beforeOpen: beforeTooltipOpen.bind(this),
|
|
276
277
|
windowCollision: true
|
|
277
278
|
});
|
|
278
279
|
ribbonTooltip.appendTo(element);
|
|
@@ -284,6 +285,13 @@ export function createTooltip(element, ribbon) {
|
|
|
284
285
|
function beforeTooltipRender(args) {
|
|
285
286
|
setToolTipContent(args, ribbonTooltip, ribbon.tooltipData);
|
|
286
287
|
}
|
|
288
|
+
function beforeTooltipOpen(args) {
|
|
289
|
+
var target = ribbon.getAppendToElement();
|
|
290
|
+
var tooltipPopup = args.element;
|
|
291
|
+
if (tooltipPopup && !target.contains(tooltipPopup)) {
|
|
292
|
+
target.appendChild(tooltipPopup);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
287
295
|
}
|
|
288
296
|
/**
|
|
289
297
|
* Destroys tooltip
|
|
@@ -50,7 +50,16 @@ var RibbonColorPicker = /** @class */ (function () {
|
|
|
50
50
|
colorPickerSettings.beforeClose.call(_this);
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
beforeOpen:
|
|
53
|
+
beforeOpen: function (e) {
|
|
54
|
+
var target = _this.parent.getAppendToElement();
|
|
55
|
+
var splitBtn = colorPicker['splitBtn'];
|
|
56
|
+
if (splitBtn && splitBtn.dropDown && !target.contains(splitBtn.dropDown.element)) {
|
|
57
|
+
target.appendChild(splitBtn.dropDown.element);
|
|
58
|
+
}
|
|
59
|
+
if (colorPickerSettings.beforeOpen) {
|
|
60
|
+
colorPickerSettings.beforeOpen.call(_this, e);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
54
63
|
beforeTileRender: colorPickerSettings.beforeTileRender,
|
|
55
64
|
created: colorPickerSettings.created,
|
|
56
65
|
change: function (e) {
|
|
@@ -119,6 +128,16 @@ var RibbonColorPicker = /** @class */ (function () {
|
|
|
119
128
|
item.colorPickerSettings.beforeClose.call(_this);
|
|
120
129
|
}
|
|
121
130
|
};
|
|
131
|
+
colorPickerObj.beforeOpen = function (e) {
|
|
132
|
+
var target = _this.parent.getAppendToElement();
|
|
133
|
+
var splitBtn = colorPickerObj['splitBtn'];
|
|
134
|
+
if (splitBtn && splitBtn.dropDown && !target.contains(splitBtn.dropDown.element)) {
|
|
135
|
+
target.appendChild(splitBtn.dropDown.element);
|
|
136
|
+
}
|
|
137
|
+
if (item.colorPickerSettings.beforeOpen) {
|
|
138
|
+
item.colorPickerSettings.beforeOpen.call(_this, e);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
122
141
|
splitBtn.close = function () {
|
|
123
142
|
if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
|
|
124
143
|
if (overflowButton.element.classList.contains('e-active')) {
|
|
@@ -63,7 +63,21 @@ var RibbonComboBox = /** @class */ (function () {
|
|
|
63
63
|
text: comboBoxSettings.text,
|
|
64
64
|
value: comboBoxSettings.value,
|
|
65
65
|
width: comboBoxSettings.width,
|
|
66
|
-
beforeOpen:
|
|
66
|
+
beforeOpen: function (e) {
|
|
67
|
+
requestAnimationFrame(function () {
|
|
68
|
+
if (!_this.parent) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
var target = _this.parent.getAppendToElement();
|
|
72
|
+
var popupEle = document.getElementById(inputEle.id + '_popup');
|
|
73
|
+
if (popupEle && !target.contains(popupEle)) {
|
|
74
|
+
target.appendChild(popupEle);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
if (comboBoxSettings.beforeOpen) {
|
|
78
|
+
comboBoxSettings.beforeOpen.call(_this, e);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
67
81
|
open: comboBoxSettings.open,
|
|
68
82
|
htmlAttributes: comboBoxSettings.htmlAttributes,
|
|
69
83
|
close: function (e) {
|
|
@@ -100,6 +114,21 @@ var RibbonComboBox = /** @class */ (function () {
|
|
|
100
114
|
var inputEle = itemEle.querySelector('#' + item.id);
|
|
101
115
|
inputEle.setAttribute('data-control', item.type.toString());
|
|
102
116
|
var comboBoxObj = getComponent(inputEle, ComboBox);
|
|
117
|
+
comboBoxObj.beforeOpen = function (e) {
|
|
118
|
+
requestAnimationFrame(function () {
|
|
119
|
+
if (!_this.parent) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
var target = _this.parent.getAppendToElement();
|
|
123
|
+
var popupEle = document.getElementById(item.id + '_popup');
|
|
124
|
+
if (popupEle && !target.contains(popupEle)) {
|
|
125
|
+
target.appendChild(popupEle);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
if (item.comboBoxSettings.beforeOpen) {
|
|
129
|
+
item.comboBoxSettings.beforeOpen.call(_this, e);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
103
132
|
comboBoxObj.setProperties({ cssClass: comboBoxObj.cssClass + SPACE + RIBBON_POPUP_CONTROL });
|
|
104
133
|
comboBoxObj.close = function (e) {
|
|
105
134
|
var target = e.event ? e.event.target : null;
|
|
@@ -428,7 +428,8 @@ var RibbonGallery = /** @class */ (function () {
|
|
|
428
428
|
className: 'e-ribbon-gallery-popup',
|
|
429
429
|
id: item.id + '_galleryPopup'
|
|
430
430
|
});
|
|
431
|
-
|
|
431
|
+
var appendTarget = this.parent.getAppendToElement();
|
|
432
|
+
appendTarget.append(gallerypopupElement);
|
|
432
433
|
var galleryPopup = new Popup(gallerypopupElement, {
|
|
433
434
|
relateTo: buttonEle,
|
|
434
435
|
content: popupContainer,
|
|
@@ -533,13 +534,20 @@ var RibbonGallery = /** @class */ (function () {
|
|
|
533
534
|
var popupEle = document.querySelector('#' + item.id + '_galleryPopup');
|
|
534
535
|
var popup_1 = getComponent(popupEle, Popup);
|
|
535
536
|
var popupContainerEle_1 = document.querySelector('#' + item.id + '_galleryPopup .e-ribbon-popup-container');
|
|
536
|
-
var
|
|
537
|
+
var dropdown_1 = new DropDownButton({
|
|
537
538
|
iconCss: iconCss,
|
|
538
539
|
content: content,
|
|
539
540
|
target: popupContainerEle_1,
|
|
540
541
|
enableRtl: this.parent.enableRtl,
|
|
541
542
|
cssClass: 'e-ribbon-gallery-dropdown',
|
|
542
543
|
disabled: item.disabled,
|
|
544
|
+
beforeOpen: function () {
|
|
545
|
+
var target = _this.parent.getAppendToElement();
|
|
546
|
+
var dropDownPopup = dropdown_1 && dropdown_1.dropDown ? dropdown_1.dropDown.element : null;
|
|
547
|
+
if (dropDownPopup && !target.contains(dropDownPopup)) {
|
|
548
|
+
target.appendChild(dropDownPopup);
|
|
549
|
+
}
|
|
550
|
+
},
|
|
543
551
|
open: function () {
|
|
544
552
|
var popupContainerItems = popupContainerEle_1.querySelectorAll('.e-ribbon-gallery-container');
|
|
545
553
|
_this.setWrapperStyle(popup_1, popupContainerItems);
|
|
@@ -556,11 +564,11 @@ var RibbonGallery = /** @class */ (function () {
|
|
|
556
564
|
}
|
|
557
565
|
}, buttonEle_1);
|
|
558
566
|
if (popup_1.width !== 'auto') {
|
|
559
|
-
|
|
567
|
+
dropdown_1.dropDown.width = formatUnit(popup_1.width);
|
|
560
568
|
}
|
|
561
569
|
if (popup_1.height !== 'auto') {
|
|
562
|
-
|
|
563
|
-
|
|
570
|
+
dropdown_1.dropDown.height = formatUnit(popup_1.height);
|
|
571
|
+
dropdown_1.dropDown.element.style.height = (popup_1.height).toString();
|
|
564
572
|
}
|
|
565
573
|
}
|
|
566
574
|
};
|
|
@@ -664,6 +672,10 @@ var RibbonGallery = /** @class */ (function () {
|
|
|
664
672
|
if (isCancelled) {
|
|
665
673
|
return;
|
|
666
674
|
}
|
|
675
|
+
var target = this.parent.getAppendToElement();
|
|
676
|
+
if (!target.contains(popupEle)) {
|
|
677
|
+
target.appendChild(popupEle);
|
|
678
|
+
}
|
|
667
679
|
popup.show();
|
|
668
680
|
this.checkCollision(popup, popupEle);
|
|
669
681
|
var buttonEle = document.querySelector('#' + itemID + '_popupButton');
|
|
@@ -122,15 +122,21 @@ var RibbonGroupButton = /** @class */ (function () {
|
|
|
122
122
|
}
|
|
123
123
|
count++;
|
|
124
124
|
}
|
|
125
|
-
var
|
|
125
|
+
var dropdown_1 = new DropDownButton({
|
|
126
126
|
iconCss: dropdownIcon,
|
|
127
127
|
target: btnContainerEle,
|
|
128
128
|
enableRtl: this.parent.enableRtl,
|
|
129
129
|
cssClass: 'e-ribbon-dropdown-group-button',
|
|
130
|
-
disabled: item.disabled
|
|
130
|
+
disabled: item.disabled,
|
|
131
|
+
beforeOpen: function () {
|
|
132
|
+
var target = _this.parent.getAppendToElement();
|
|
133
|
+
if (dropdown_1 && dropdown_1.dropDown && !target.contains(dropdown_1.dropDown.element)) {
|
|
134
|
+
target.appendChild(dropdown_1.dropDown.element);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
131
137
|
}, buttonEle);
|
|
132
138
|
if (groupBtnSettings.header) {
|
|
133
|
-
var dropDownPopup =
|
|
139
|
+
var dropDownPopup = dropdown_1.dropDown;
|
|
134
140
|
this.addGroupButtonHeader(item.id, groupBtnSettings, dropDownPopup.element);
|
|
135
141
|
}
|
|
136
142
|
buttonEle.onclick = buttonEle.onkeydown = function () {
|
|
@@ -298,15 +304,21 @@ var RibbonGroupButton = /** @class */ (function () {
|
|
|
298
304
|
}
|
|
299
305
|
itemsCount++;
|
|
300
306
|
}
|
|
301
|
-
var
|
|
307
|
+
var dropdown_2 = new DropDownButton({
|
|
302
308
|
iconCss: dropdownIcon,
|
|
303
309
|
target: containerEle,
|
|
304
310
|
enableRtl: this.parent.enableRtl,
|
|
305
311
|
cssClass: 'e-ribbon-dropdown-group-button',
|
|
306
|
-
disabled: item.disabled
|
|
312
|
+
disabled: item.disabled,
|
|
313
|
+
beforeOpen: function () {
|
|
314
|
+
var target = _this.parent.getAppendToElement();
|
|
315
|
+
if (dropdown_2 && dropdown_2.dropDown && !target.contains(dropdown_2.dropDown.element)) {
|
|
316
|
+
target.appendChild(dropdown_2.dropDown.element);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
307
319
|
}, buttonEle);
|
|
308
320
|
if (groupBtnSettings.header) {
|
|
309
|
-
var dropDownPopup =
|
|
321
|
+
var dropDownPopup = dropdown_2.dropDown;
|
|
310
322
|
this.addGroupButtonHeader(item.id, groupBtnSettings, dropDownPopup.element);
|
|
311
323
|
}
|
|
312
324
|
buttonEle.onclick = buttonEle.onkeydown = function () {
|
|
@@ -130,9 +130,15 @@ var RibbonSplitButton = /** @class */ (function () {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
var target;
|
|
133
|
-
splitbutton.beforeOpen = function (
|
|
133
|
+
splitbutton.beforeOpen = function () {
|
|
134
|
+
var splitBtn = getComponent(splitButtonEle, SplitButton);
|
|
135
|
+
var popupEl = splitBtn && splitBtn.dropDown ? splitBtn.dropDown.element : null;
|
|
136
|
+
var target = _this.parent.getAppendToElement();
|
|
137
|
+
if (popupEl && !target.contains(popupEl)) {
|
|
138
|
+
target.appendChild(popupEl);
|
|
139
|
+
}
|
|
134
140
|
if (item.splitButtonSettings.beforeOpen) {
|
|
135
|
-
item.splitButtonSettings.beforeOpen.call(_this
|
|
141
|
+
item.splitButtonSettings.beforeOpen.call(_this);
|
|
136
142
|
}
|
|
137
143
|
};
|
|
138
144
|
splitbutton.beforeClose = function (e) {
|
|
@@ -76,6 +76,13 @@ var RibbonFileMenu = /** @class */ (function () {
|
|
|
76
76
|
if (!isOpen && args.event && args.event.target.closest('.e-ribbon-menu')) {
|
|
77
77
|
args.cancel = true;
|
|
78
78
|
}
|
|
79
|
+
if (isOpen && this.fileMenuDDB && this.fileMenuDDB.dropDown) {
|
|
80
|
+
var target = this.parent.getAppendToElement();
|
|
81
|
+
var popupEl = this.fileMenuDDB.dropDown.element;
|
|
82
|
+
if (popupEl && !target.contains(popupEl)) {
|
|
83
|
+
target.appendChild(popupEl);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
79
86
|
var event = isOpen ? this.parent.fileMenu.beforeOpen :
|
|
80
87
|
this.parent.fileMenu.beforeClose;
|
|
81
88
|
if (event) {
|
|
@@ -137,6 +144,13 @@ var RibbonFileMenu = /** @class */ (function () {
|
|
|
137
144
|
}, this);
|
|
138
145
|
};
|
|
139
146
|
RibbonFileMenu.prototype.menuBeforeEvent = function (isOpen, args) {
|
|
147
|
+
if (isOpen) {
|
|
148
|
+
var target = this.parent.getAppendToElement();
|
|
149
|
+
var popup = args.element && args.element.closest('.e-popup');
|
|
150
|
+
if (popup && !target.contains(popup)) {
|
|
151
|
+
target.appendChild(popup);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
140
154
|
var event = isOpen ? this.parent.fileMenu.beforeOpen :
|
|
141
155
|
this.parent.fileMenu.beforeClose;
|
|
142
156
|
if (event) {
|