@syncfusion/ej2-ribbon 25.2.3 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +884 -599
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +941 -584
- 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 +4 -1
- package/src/ribbon/base/ribbon.js +222 -95
- package/src/ribbon/items/ribbon-button.js +22 -2
- package/src/ribbon/items/ribbon-checkbox.js +19 -1
- package/src/ribbon/items/ribbon-colorpicker.js +16 -1
- package/src/ribbon/items/ribbon-combobox.js +19 -1
- package/src/ribbon/items/ribbon-dropdown.js +16 -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/items/ribbon-splitbutton.js +16 -1
- 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 +452 -269
- package/styles/bootstrap-dark.scss +18 -1
- package/styles/bootstrap.css +456 -276
- package/styles/bootstrap.scss +18 -1
- package/styles/bootstrap4.css +455 -272
- package/styles/bootstrap4.scss +18 -1
- package/styles/bootstrap5-dark.css +470 -278
- package/styles/bootstrap5-dark.scss +18 -1
- package/styles/bootstrap5.css +470 -278
- package/styles/bootstrap5.scss +18 -1
- package/styles/fabric-dark.css +451 -269
- package/styles/fabric-dark.scss +18 -1
- package/styles/fabric.css +450 -272
- package/styles/fabric.scss +18 -1
- package/styles/fluent-dark.css +472 -277
- package/styles/fluent-dark.scss +18 -1
- package/styles/fluent.css +472 -277
- package/styles/fluent.scss +18 -1
- package/styles/fluent2.css +3868 -0
- package/styles/fluent2.scss +18 -0
- package/styles/highcontrast-light.css +445 -263
- package/styles/highcontrast-light.scss +17 -1
- package/styles/highcontrast.css +451 -273
- package/styles/highcontrast.scss +18 -1
- package/styles/material-dark.css +540 -283
- package/styles/material-dark.scss +18 -1
- package/styles/material.css +539 -289
- package/styles/material.scss +18 -1
- package/styles/material3-dark.css +496 -280
- package/styles/material3-dark.scss +18 -1
- package/styles/material3.css +496 -280
- package/styles/material3.scss +18 -1
- package/styles/ribbon/_bds-definition.scss +56 -20
- package/styles/ribbon/_bootstrap-dark-definition.scss +56 -20
- package/styles/ribbon/_bootstrap-definition.scss +57 -21
- package/styles/ribbon/_bootstrap4-definition.scss +57 -21
- package/styles/ribbon/_bootstrap5-definition.scss +57 -21
- package/styles/ribbon/_bootstrap5.3-definition.scss +396 -0
- package/styles/ribbon/_fabric-dark-definition.scss +55 -19
- package/styles/ribbon/_fabric-definition.scss +56 -20
- package/styles/ribbon/_fluent-definition.scss +59 -23
- package/styles/ribbon/_fluent2-definition.scss +396 -0
- package/styles/ribbon/_fusionnew-definition.scss +50 -14
- package/styles/ribbon/_highcontrast-definition.scss +58 -22
- package/styles/ribbon/_highcontrast-light-definition.scss +49 -13
- package/styles/ribbon/_layout.scss +359 -399
- package/styles/ribbon/_material-dark-definition.scss +56 -20
- package/styles/ribbon/_material-definition.scss +56 -20
- package/styles/ribbon/_material3-definition.scss +56 -19
- package/styles/ribbon/_tailwind-definition.scss +56 -20
- package/styles/ribbon/_theme.scss +118 -170
- package/styles/ribbon/bootstrap-dark.css +452 -269
- package/styles/ribbon/bootstrap.css +456 -276
- package/styles/ribbon/bootstrap4.css +455 -272
- package/styles/ribbon/bootstrap5-dark.css +470 -278
- package/styles/ribbon/bootstrap5.css +470 -278
- package/styles/ribbon/fabric-dark.css +451 -269
- package/styles/ribbon/fabric.css +450 -272
- package/styles/ribbon/fluent-dark.css +472 -277
- package/styles/ribbon/fluent.css +472 -277
- package/styles/ribbon/fluent2.css +3868 -0
- package/styles/ribbon/fluent2.scss +18 -0
- package/styles/ribbon/highcontrast-light.css +445 -263
- package/styles/ribbon/highcontrast.css +451 -273
- package/styles/ribbon/icons/_bootstrap5.3.scss +9 -0
- package/styles/ribbon/icons/_fluent2.scss +9 -0
- package/styles/ribbon/material-dark.css +540 -283
- package/styles/ribbon/material.css +539 -289
- package/styles/ribbon/material3-dark.css +496 -280
- package/styles/ribbon/material3.css +496 -280
- package/styles/ribbon/tailwind-dark.css +506 -280
- package/styles/ribbon/tailwind.css +506 -280
- package/styles/tailwind-dark.css +506 -280
- package/styles/tailwind-dark.scss +18 -1
- package/styles/tailwind.css +506 -280
- package/styles/tailwind.scss +18 -1
- package/CHANGELOG.md +0 -93
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { Button } from '@syncfusion/ej2-buttons';
|
|
3
14
|
import { getItem, getItemElement, RibbonItemSize, setCustomAttributes } from '../base/index';
|
|
@@ -44,14 +55,23 @@ var RibbonButton = /** @class */ (function () {
|
|
|
44
55
|
created: btnSettings.created
|
|
45
56
|
}, buttonEle);
|
|
46
57
|
if (btnSettings.htmlAttributes) {
|
|
47
|
-
|
|
58
|
+
var htmlAttr = __assign({}, btnSettings.htmlAttributes);
|
|
59
|
+
if (htmlAttr.id) {
|
|
60
|
+
delete htmlAttr.id;
|
|
61
|
+
}
|
|
62
|
+
setCustomAttributes(buttonEle, htmlAttr);
|
|
48
63
|
}
|
|
49
64
|
buttonEle.onclick = function (e) {
|
|
50
65
|
if (btnSettings.clicked) {
|
|
51
66
|
btnSettings.clicked.call(_this, e);
|
|
52
67
|
}
|
|
53
68
|
};
|
|
54
|
-
|
|
69
|
+
if (btnSettings.content) {
|
|
70
|
+
buttonEle.setAttribute('aria-label', btnSettings.content);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
buttonEle.setAttribute('aria-label', 'button');
|
|
74
|
+
}
|
|
55
75
|
};
|
|
56
76
|
/**
|
|
57
77
|
* Adds the additional event handlers as the item moved into overflow popup.
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
3
14
|
import { getItem, getItemElement, RIBBON_CONTROL, SPACE, RIBBON_POPUP_CONTROL } from '../base/index';
|
|
@@ -29,6 +40,13 @@ var RibbonCheckBox = /** @class */ (function () {
|
|
|
29
40
|
});
|
|
30
41
|
itemEle.appendChild(inputEle);
|
|
31
42
|
var checkBoxSettings = item.checkBoxSettings;
|
|
43
|
+
var htmlAttr = {};
|
|
44
|
+
if (checkBoxSettings.htmlAttributes) {
|
|
45
|
+
htmlAttr = __assign({}, checkBoxSettings.htmlAttributes);
|
|
46
|
+
if (htmlAttr.id) {
|
|
47
|
+
delete htmlAttr.id;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
new CheckBox({
|
|
33
51
|
locale: this.parent.locale,
|
|
34
52
|
enableRtl: this.parent.enableRtl,
|
|
@@ -39,7 +57,7 @@ var RibbonCheckBox = /** @class */ (function () {
|
|
|
39
57
|
labelPosition: checkBoxSettings.labelPosition,
|
|
40
58
|
disabled: item.disabled,
|
|
41
59
|
created: checkBoxSettings.created,
|
|
42
|
-
htmlAttributes:
|
|
60
|
+
htmlAttributes: htmlAttr,
|
|
43
61
|
change: function (e) {
|
|
44
62
|
if (checkBoxSettings.change) {
|
|
45
63
|
checkBoxSettings.change.call(_this, e);
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { EventHandler, getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { ColorPicker } from '@syncfusion/ej2-inputs';
|
|
3
14
|
import { getItem, getItemElement, setCustomAttributes } from '../base/index';
|
|
@@ -68,7 +79,11 @@ var RibbonColorPicker = /** @class */ (function () {
|
|
|
68
79
|
select: colorPickerSettings.select
|
|
69
80
|
}, inputEle);
|
|
70
81
|
if (colorPickerSettings.htmlAttributes) {
|
|
71
|
-
|
|
82
|
+
var htmlAttr = __assign({}, colorPickerSettings.htmlAttributes);
|
|
83
|
+
if (htmlAttr.id) {
|
|
84
|
+
delete htmlAttr.id;
|
|
85
|
+
}
|
|
86
|
+
setCustomAttributes(inputEle, htmlAttr);
|
|
72
87
|
}
|
|
73
88
|
var wrapper = colorPicker.element.parentElement;
|
|
74
89
|
EventHandler.add(wrapper, 'mouseenter', this.toggleWrapperHover.bind(this, wrapper, true), this);
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { ComboBox } from '@syncfusion/ej2-dropdowns';
|
|
3
14
|
import { getItem, getItemElement, RIBBON_CONTROL, SPACE, RIBBON_POPUP_CONTROL } from '../base/index';
|
|
@@ -29,6 +40,13 @@ var RibbonComboBox = /** @class */ (function () {
|
|
|
29
40
|
});
|
|
30
41
|
itemEle.appendChild(inputEle);
|
|
31
42
|
var comboBoxSettings = item.comboBoxSettings;
|
|
43
|
+
var htmlAttr = {};
|
|
44
|
+
if (comboBoxSettings.htmlAttributes) {
|
|
45
|
+
htmlAttr = __assign({}, comboBoxSettings.htmlAttributes);
|
|
46
|
+
if (htmlAttr.id) {
|
|
47
|
+
delete htmlAttr.id;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
new ComboBox({
|
|
33
51
|
locale: this.parent.locale,
|
|
34
52
|
enableRtl: this.parent.enableRtl,
|
|
@@ -60,7 +78,7 @@ var RibbonComboBox = /** @class */ (function () {
|
|
|
60
78
|
width: comboBoxSettings.width,
|
|
61
79
|
beforeOpen: comboBoxSettings.beforeOpen,
|
|
62
80
|
open: comboBoxSettings.open,
|
|
63
|
-
htmlAttributes:
|
|
81
|
+
htmlAttributes: htmlAttr,
|
|
64
82
|
close: function (e) {
|
|
65
83
|
if (comboBoxSettings.close) {
|
|
66
84
|
comboBoxSettings.close.call(_this, e);
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { closest, getComponent, isNullOrUndefined, merge, remove } from '@syncfusion/ej2-base';
|
|
2
13
|
import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
3
14
|
import { Tooltip } from '@syncfusion/ej2-popups';
|
|
@@ -63,7 +74,11 @@ var RibbonDropDown = /** @class */ (function () {
|
|
|
63
74
|
select: dropDownSettings.select
|
|
64
75
|
}).appendTo(buttonEle);
|
|
65
76
|
if (dropDownSettings.htmlAttributes) {
|
|
66
|
-
|
|
77
|
+
var htmlAttr = __assign({}, dropDownSettings.htmlAttributes);
|
|
78
|
+
if (htmlAttr.id) {
|
|
79
|
+
delete htmlAttr.id;
|
|
80
|
+
}
|
|
81
|
+
setCustomAttributes(buttonEle, htmlAttr);
|
|
67
82
|
}
|
|
68
83
|
};
|
|
69
84
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ribbon } from '../base/index';
|
|
2
2
|
import { RibbonItemModel } from '../models/index';
|
|
3
|
-
import {
|
|
3
|
+
import { Popup } from '@syncfusion/ej2-popups';
|
|
4
4
|
/**
|
|
5
5
|
* Defines the items of Ribbon.
|
|
6
6
|
*/
|
|
@@ -9,6 +9,7 @@ export declare class RibbonGallery {
|
|
|
9
9
|
private count;
|
|
10
10
|
private isAdded;
|
|
11
11
|
private galleryItemsIndex;
|
|
12
|
+
private registeredTemplate;
|
|
12
13
|
constructor(parent: Ribbon);
|
|
13
14
|
protected getModuleName(): string;
|
|
14
15
|
protected destroy(): void;
|
|
@@ -26,13 +27,22 @@ export declare class RibbonGallery {
|
|
|
26
27
|
/**
|
|
27
28
|
* Checks the gallery items height.
|
|
28
29
|
*
|
|
29
|
-
* @param {number} selectedTab - Gets the current selected tab.
|
|
30
30
|
* @param {HTMLElement} activeContent - Gets the current active content.
|
|
31
31
|
* @returns {void}
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
|
-
checkAvailableHeight(
|
|
35
|
-
|
|
34
|
+
checkAvailableHeight(activeContent: HTMLElement): void;
|
|
35
|
+
/**
|
|
36
|
+
* Checks the popup collision.
|
|
37
|
+
*
|
|
38
|
+
* @param {Popup} popup - Gets the popup.
|
|
39
|
+
* @param {HTMLElement} popupEle - Gets the popup element.
|
|
40
|
+
* @param {number} offsetValue - Gets the offset value of gallery popup button.
|
|
41
|
+
* @returns {void}
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
checkCollision(popup: Popup, popupEle: HTMLElement, offsetValue?: number): void;
|
|
45
|
+
private setGalleryPopupHeight;
|
|
36
46
|
private createPopup;
|
|
37
47
|
/**
|
|
38
48
|
* Updates gallery in mode switching.
|
|
@@ -48,11 +58,10 @@ export declare class RibbonGallery {
|
|
|
48
58
|
*
|
|
49
59
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
50
60
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
51
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
52
61
|
* @returns {void}
|
|
53
62
|
* @hidden
|
|
54
63
|
*/
|
|
55
|
-
addOverFlowEvents(item: RibbonItemModel, itemEle: HTMLElement
|
|
64
|
+
addOverFlowEvents(item: RibbonItemModel, itemEle: HTMLElement): void;
|
|
56
65
|
/**
|
|
57
66
|
* Removes the additional event handlers as the item moved into overflow popup.
|
|
58
67
|
*
|