@syncfusion/ej2-react-ribbon 21.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/CHANGELOG.md +20 -0
- package/README.md +3 -0
- package/diConfig.json +437 -0
- package/dist/ej2-react-ribbon.min.js +10 -0
- package/dist/ej2-react-ribbon.umd.min.js +11 -0
- package/dist/ej2-react-ribbon.umd.min.js.map +1 -0
- package/dist/es6/ej2-react-ribbon.es2015.js +140 -0
- package/dist/es6/ej2-react-ribbon.es2015.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/license +6 -0
- package/package.json +59 -0
- package/ribbon.d.ts +4 -0
- package/ribbon.js +4 -0
- package/src/global.js +1 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +3 -0
- package/src/ribbon/collections-directive.d.ts +31 -0
- package/src/ribbon/collections-directive.js +53 -0
- package/src/ribbon/groups-directive.d.ts +27 -0
- package/src/ribbon/groups-directive.js +49 -0
- package/src/ribbon/index.d.ts +5 -0
- package/src/ribbon/index.js +5 -0
- package/src/ribbon/items-directive.d.ts +38 -0
- package/src/ribbon/items-directive.js +57 -0
- package/src/ribbon/ribbon.component.d.ts +38 -0
- package/src/ribbon/ribbon.component.js +47 -0
- package/src/ribbon/tabs-directive.d.ts +23 -0
- package/src/ribbon/tabs-directive.js +45 -0
- package/styles/bootstrap-dark.css +1502 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +1507 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +1557 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +1586 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +1586 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.css +1478 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +1476 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +1562 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1562 -0
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +1485 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +1494 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +1548 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +1581 -0
- package/styles/material.scss +1 -0
- package/styles/ribbon/bootstrap-dark.css +1502 -0
- package/styles/ribbon/bootstrap-dark.scss +1 -0
- package/styles/ribbon/bootstrap.css +1507 -0
- package/styles/ribbon/bootstrap.scss +1 -0
- package/styles/ribbon/bootstrap4.css +1557 -0
- package/styles/ribbon/bootstrap4.scss +1 -0
- package/styles/ribbon/bootstrap5-dark.css +1586 -0
- package/styles/ribbon/bootstrap5-dark.scss +1 -0
- package/styles/ribbon/bootstrap5.css +1586 -0
- package/styles/ribbon/bootstrap5.scss +1 -0
- package/styles/ribbon/fabric-dark.css +1478 -0
- package/styles/ribbon/fabric-dark.scss +1 -0
- package/styles/ribbon/fabric.css +1476 -0
- package/styles/ribbon/fabric.scss +1 -0
- package/styles/ribbon/fluent-dark.css +1562 -0
- package/styles/ribbon/fluent-dark.scss +1 -0
- package/styles/ribbon/fluent.css +1562 -0
- package/styles/ribbon/fluent.scss +1 -0
- package/styles/ribbon/highcontrast-light.css +1485 -0
- package/styles/ribbon/highcontrast-light.scss +1 -0
- package/styles/ribbon/highcontrast.css +1494 -0
- package/styles/ribbon/highcontrast.scss +1 -0
- package/styles/ribbon/material-dark.css +1548 -0
- package/styles/ribbon/material-dark.scss +1 -0
- package/styles/ribbon/material.css +1581 -0
- package/styles/ribbon/material.scss +1 -0
- package/styles/ribbon/tailwind-dark.css +1560 -0
- package/styles/ribbon/tailwind-dark.scss +1 -0
- package/styles/ribbon/tailwind.css +1560 -0
- package/styles/ribbon/tailwind.scss +1 -0
- package/styles/tailwind-dark.css +1560 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +1560 -0
- package/styles/tailwind.scss +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_from": "@syncfusion/ej2-react-ribbon@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-react-ribbon@0.25.0",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-rKbg/DkVUxNQ2414e4PJifQi32FbYdXf9P++TtHX3xABYWgKA6GJRqzdUbShBt84kGPsiwM6l3FIaWIRR7Cc4A==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-react-ribbon",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-react-ribbon@*",
|
|
12
|
+
"name": "@syncfusion/ej2-react-ribbon",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-react-ribbon",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/"
|
|
21
|
+
],
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-react-ribbon/-/ej2-react-ribbon-0.25.0.tgz",
|
|
23
|
+
"_shasum": "d4c4182977eafbabc952d349da92fc137145724b",
|
|
24
|
+
"_spec": "@syncfusion/ej2-react-ribbon@*",
|
|
25
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Syncfusion Inc."
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/syncfusion/ej2-react-ui-components/issues"
|
|
31
|
+
},
|
|
32
|
+
"bundleDependencies": false,
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@syncfusion/ej2-base": "~21.1.35",
|
|
35
|
+
"@syncfusion/ej2-react-base": "~21.1.35",
|
|
36
|
+
"@syncfusion/ej2-ribbon": "21.1.35"
|
|
37
|
+
},
|
|
38
|
+
"deprecated": false,
|
|
39
|
+
"description": "Essential JS 2 Component for React",
|
|
40
|
+
"devDependencies": {},
|
|
41
|
+
"es2015": "dist/es6/ej2-react-ribbon.es2015.js",
|
|
42
|
+
"homepage": "https://www.syncfusion.com/react-components",
|
|
43
|
+
"keywords": [
|
|
44
|
+
"react",
|
|
45
|
+
"reactjs",
|
|
46
|
+
"ej2-react-ribbon",
|
|
47
|
+
"react-ribbon"
|
|
48
|
+
],
|
|
49
|
+
"license": "SEE LICENSE IN license",
|
|
50
|
+
"main": "./dist/ej2-react-ribbon.umd.min.js",
|
|
51
|
+
"module": "./index.js",
|
|
52
|
+
"name": "@syncfusion/ej2-react-ribbon",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/syncfusion/ej2-react-ui-components.git"
|
|
56
|
+
},
|
|
57
|
+
"version": "21.1.35",
|
|
58
|
+
"sideEffects": false
|
|
59
|
+
}
|
package/ribbon.d.ts
ADDED
package/ribbon.js
ADDED
package/src/global.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index';
|
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
2
|
+
import { RibbonCollectionModel } from '@syncfusion/ej2-ribbon';
|
|
3
|
+
/**
|
|
4
|
+
* `RibbonCollectionDirective` represent a collection in the React Ribbon.
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <RibbonComponent>
|
|
7
|
+
* <RibbonTabsDirective>
|
|
8
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
9
|
+
* <RibbonTabDirective>
|
|
10
|
+
* <RibbonGroupsDirective>
|
|
11
|
+
* <RibbonGroupDirective>
|
|
12
|
+
* <RibbonCollectionsDirective>
|
|
13
|
+
* <RibbonCollectionDirective></RibbonCollectionDirective>
|
|
14
|
+
* <RibbonCollectionDirective></RibbonCollectionDirective>
|
|
15
|
+
* </RibbonCollectionsDirective>
|
|
16
|
+
* </RibbonGroupDirective>
|
|
17
|
+
* </RibbonGroupsDirective>
|
|
18
|
+
* </RibbonTabDirective>
|
|
19
|
+
* <RibbonTabsDirective>
|
|
20
|
+
* </RibbonComponent>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class RibbonCollectionDirective extends ComplexBase<RibbonCollectionModel & {
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}, RibbonCollectionModel> {
|
|
26
|
+
static moduleName: string;
|
|
27
|
+
}
|
|
28
|
+
export declare class RibbonCollectionsDirective extends ComplexBase<{}, {}> {
|
|
29
|
+
static propertyName: string;
|
|
30
|
+
static moduleName: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
15
|
+
/**
|
|
16
|
+
* `RibbonCollectionDirective` represent a collection in the React Ribbon.
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <RibbonComponent>
|
|
19
|
+
* <RibbonTabsDirective>
|
|
20
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
21
|
+
* <RibbonTabDirective>
|
|
22
|
+
* <RibbonGroupsDirective>
|
|
23
|
+
* <RibbonGroupDirective>
|
|
24
|
+
* <RibbonCollectionsDirective>
|
|
25
|
+
* <RibbonCollectionDirective></RibbonCollectionDirective>
|
|
26
|
+
* <RibbonCollectionDirective></RibbonCollectionDirective>
|
|
27
|
+
* </RibbonCollectionsDirective>
|
|
28
|
+
* </RibbonGroupDirective>
|
|
29
|
+
* </RibbonGroupsDirective>
|
|
30
|
+
* </RibbonTabDirective>
|
|
31
|
+
* <RibbonTabsDirective>
|
|
32
|
+
* </RibbonComponent>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
var RibbonCollectionDirective = /** @class */ (function (_super) {
|
|
36
|
+
__extends(RibbonCollectionDirective, _super);
|
|
37
|
+
function RibbonCollectionDirective() {
|
|
38
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
+
}
|
|
40
|
+
RibbonCollectionDirective.moduleName = 'ribbonCollection';
|
|
41
|
+
return RibbonCollectionDirective;
|
|
42
|
+
}(ComplexBase));
|
|
43
|
+
export { RibbonCollectionDirective };
|
|
44
|
+
var RibbonCollectionsDirective = /** @class */ (function (_super) {
|
|
45
|
+
__extends(RibbonCollectionsDirective, _super);
|
|
46
|
+
function RibbonCollectionsDirective() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
RibbonCollectionsDirective.propertyName = 'collections';
|
|
50
|
+
RibbonCollectionsDirective.moduleName = 'ribbonCollections';
|
|
51
|
+
return RibbonCollectionsDirective;
|
|
52
|
+
}(ComplexBase));
|
|
53
|
+
export { RibbonCollectionsDirective };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
2
|
+
import { RibbonGroupModel } from '@syncfusion/ej2-ribbon';
|
|
3
|
+
/**
|
|
4
|
+
* `RibbonGroupDirective` represent a group in the React Ribbon.
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <RibbonComponent>
|
|
7
|
+
* <RibbonTabsDirective>
|
|
8
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
9
|
+
* <RibbonTabDirective>
|
|
10
|
+
* <RibbonGroupsDirective>
|
|
11
|
+
* <RibbonGroupDirective></RibbonGroupDirective>
|
|
12
|
+
* <RibbonGroupDirective></RibbonGroupDirective>
|
|
13
|
+
* </RibbonGroupsDirective>
|
|
14
|
+
* </RibbonTabDirective>
|
|
15
|
+
* <RibbonTabsDirective>
|
|
16
|
+
* </RibbonComponent>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class RibbonGroupDirective extends ComplexBase<RibbonGroupModel & {
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}, RibbonGroupModel> {
|
|
22
|
+
static moduleName: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class RibbonGroupsDirective extends ComplexBase<{}, {}> {
|
|
25
|
+
static propertyName: string;
|
|
26
|
+
static moduleName: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
15
|
+
/**
|
|
16
|
+
* `RibbonGroupDirective` represent a group in the React Ribbon.
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <RibbonComponent>
|
|
19
|
+
* <RibbonTabsDirective>
|
|
20
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
21
|
+
* <RibbonTabDirective>
|
|
22
|
+
* <RibbonGroupsDirective>
|
|
23
|
+
* <RibbonGroupDirective></RibbonGroupDirective>
|
|
24
|
+
* <RibbonGroupDirective></RibbonGroupDirective>
|
|
25
|
+
* </RibbonGroupsDirective>
|
|
26
|
+
* </RibbonTabDirective>
|
|
27
|
+
* <RibbonTabsDirective>
|
|
28
|
+
* </RibbonComponent>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
var RibbonGroupDirective = /** @class */ (function (_super) {
|
|
32
|
+
__extends(RibbonGroupDirective, _super);
|
|
33
|
+
function RibbonGroupDirective() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
RibbonGroupDirective.moduleName = 'ribbonGroup';
|
|
37
|
+
return RibbonGroupDirective;
|
|
38
|
+
}(ComplexBase));
|
|
39
|
+
export { RibbonGroupDirective };
|
|
40
|
+
var RibbonGroupsDirective = /** @class */ (function (_super) {
|
|
41
|
+
__extends(RibbonGroupsDirective, _super);
|
|
42
|
+
function RibbonGroupsDirective() {
|
|
43
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
44
|
+
}
|
|
45
|
+
RibbonGroupsDirective.propertyName = 'groups';
|
|
46
|
+
RibbonGroupsDirective.moduleName = 'ribbonGroups';
|
|
47
|
+
return RibbonGroupsDirective;
|
|
48
|
+
}(ComplexBase));
|
|
49
|
+
export { RibbonGroupsDirective };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
2
|
+
import { RibbonItemModel } from '@syncfusion/ej2-ribbon';
|
|
3
|
+
export interface RibbonItemDirTypecast {
|
|
4
|
+
itemTemplate?: string | Function | any;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* `RibbonItemDirective` represent a item in the React Ribbon.
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <RibbonComponent>
|
|
10
|
+
* <RibbonTabsDirective>
|
|
11
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
12
|
+
* <RibbonTabDirective>
|
|
13
|
+
* <RibbonGroupsDirective>
|
|
14
|
+
* <RibbonGroupDirective>
|
|
15
|
+
* <RibbonCollectionsDirective>
|
|
16
|
+
* <RibbonCollectionDirective>
|
|
17
|
+
* <RibbonItemsDirective>
|
|
18
|
+
* <RibbonItemDirective></RibbonItemDirective>
|
|
19
|
+
* <RibbonItemDirective></RibbonItemDirective>
|
|
20
|
+
* </RibbonItemsDirective>
|
|
21
|
+
* </RibbonCollectionDirective>
|
|
22
|
+
* </RibbonCollectionsDirective>
|
|
23
|
+
* </RibbonGroupDirective>
|
|
24
|
+
* </RibbonGroupsDirective>
|
|
25
|
+
* </RibbonTabDirective>
|
|
26
|
+
* <RibbonTabsDirective>
|
|
27
|
+
* </RibbonComponent>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class RibbonItemDirective extends ComplexBase<RibbonItemModel | RibbonItemDirTypecast & {
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}, RibbonItemModel | RibbonItemDirTypecast> {
|
|
33
|
+
static moduleName: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class RibbonItemsDirective extends ComplexBase<{}, {}> {
|
|
36
|
+
static propertyName: string;
|
|
37
|
+
static moduleName: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
15
|
+
/**
|
|
16
|
+
* `RibbonItemDirective` represent a item in the React Ribbon.
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <RibbonComponent>
|
|
19
|
+
* <RibbonTabsDirective>
|
|
20
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
21
|
+
* <RibbonTabDirective>
|
|
22
|
+
* <RibbonGroupsDirective>
|
|
23
|
+
* <RibbonGroupDirective>
|
|
24
|
+
* <RibbonCollectionsDirective>
|
|
25
|
+
* <RibbonCollectionDirective>
|
|
26
|
+
* <RibbonItemsDirective>
|
|
27
|
+
* <RibbonItemDirective></RibbonItemDirective>
|
|
28
|
+
* <RibbonItemDirective></RibbonItemDirective>
|
|
29
|
+
* </RibbonItemsDirective>
|
|
30
|
+
* </RibbonCollectionDirective>
|
|
31
|
+
* </RibbonCollectionsDirective>
|
|
32
|
+
* </RibbonGroupDirective>
|
|
33
|
+
* </RibbonGroupsDirective>
|
|
34
|
+
* </RibbonTabDirective>
|
|
35
|
+
* <RibbonTabsDirective>
|
|
36
|
+
* </RibbonComponent>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
var RibbonItemDirective = /** @class */ (function (_super) {
|
|
40
|
+
__extends(RibbonItemDirective, _super);
|
|
41
|
+
function RibbonItemDirective() {
|
|
42
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
43
|
+
}
|
|
44
|
+
RibbonItemDirective.moduleName = 'ribbonItem';
|
|
45
|
+
return RibbonItemDirective;
|
|
46
|
+
}(ComplexBase));
|
|
47
|
+
export { RibbonItemDirective };
|
|
48
|
+
var RibbonItemsDirective = /** @class */ (function (_super) {
|
|
49
|
+
__extends(RibbonItemsDirective, _super);
|
|
50
|
+
function RibbonItemsDirective() {
|
|
51
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
52
|
+
}
|
|
53
|
+
RibbonItemsDirective.propertyName = 'items';
|
|
54
|
+
RibbonItemsDirective.moduleName = 'ribbonItems';
|
|
55
|
+
return RibbonItemsDirective;
|
|
56
|
+
}(ComplexBase));
|
|
57
|
+
export { RibbonItemsDirective };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Ribbon, RibbonModel } from '@syncfusion/ej2-ribbon';
|
|
3
|
+
import { DefaultHtmlAttributes } from '@syncfusion/ej2-react-base';
|
|
4
|
+
export interface RibbonTypecast {
|
|
5
|
+
helpPaneTemplate?: string | Function | any;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Represents the React Ribbon Component
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <RibbonComponent></RibbonComponent>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class RibbonComponent extends Ribbon {
|
|
14
|
+
state: Readonly<{
|
|
15
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
16
|
+
}> & Readonly<RibbonModel & DefaultHtmlAttributes | RibbonTypecast>;
|
|
17
|
+
setState: any;
|
|
18
|
+
private getDefaultAttributes;
|
|
19
|
+
initRenderCalled: boolean;
|
|
20
|
+
private checkInjectedModules;
|
|
21
|
+
directivekeys: {
|
|
22
|
+
[key: string]: Object;
|
|
23
|
+
};
|
|
24
|
+
private statelessTemplateProps;
|
|
25
|
+
private immediateRender;
|
|
26
|
+
props: Readonly<{
|
|
27
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
28
|
+
}> & Readonly<RibbonModel & DefaultHtmlAttributes | RibbonTypecast>;
|
|
29
|
+
forceUpdate: (callBack?: () => any) => void;
|
|
30
|
+
context: Object;
|
|
31
|
+
portals: any;
|
|
32
|
+
isReactComponent: Object;
|
|
33
|
+
refs: {
|
|
34
|
+
[key: string]: React.ReactInstance;
|
|
35
|
+
};
|
|
36
|
+
constructor(props: any);
|
|
37
|
+
render(): any;
|
|
38
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { Ribbon } from '@syncfusion/ej2-ribbon';
|
|
16
|
+
import { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';
|
|
17
|
+
/**
|
|
18
|
+
* Represents the React Ribbon Component
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <RibbonComponent></RibbonComponent>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
var RibbonComponent = /** @class */ (function (_super) {
|
|
24
|
+
__extends(RibbonComponent, _super);
|
|
25
|
+
function RibbonComponent(props) {
|
|
26
|
+
var _this = _super.call(this, props) || this;
|
|
27
|
+
_this.initRenderCalled = false;
|
|
28
|
+
_this.checkInjectedModules = true;
|
|
29
|
+
_this.directivekeys = { 'ribbonTabs': { 'ribbonTab': { 'ribbonGroups': { 'ribbonGroup': { 'ribbonCollections': { 'ribbonCollection': { 'ribbonItems': 'ribbonItem' } } } } } } };
|
|
30
|
+
_this.statelessTemplateProps = null;
|
|
31
|
+
_this.immediateRender = false;
|
|
32
|
+
_this.portals = [];
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
RibbonComponent.prototype.render = function () {
|
|
36
|
+
if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) {
|
|
37
|
+
_super.prototype.render.call(this);
|
|
38
|
+
this.initRenderCalled = true;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return React.createElement('div', this.getDefaultAttributes(), [].concat(this.props.children, this.portals));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return RibbonComponent;
|
|
45
|
+
}(Ribbon));
|
|
46
|
+
export { RibbonComponent };
|
|
47
|
+
applyMixins(RibbonComponent, [ComponentBase, React.Component]);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
2
|
+
import { RibbonTabModel } from '@syncfusion/ej2-ribbon';
|
|
3
|
+
/**
|
|
4
|
+
* `RibbonTabDirective` represent a tab of the React Ribbon.
|
|
5
|
+
* It must be contained in a Ribbon component(`RibbonComponent`).
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <RibbonComponent>
|
|
8
|
+
* <RibbonTabsDirective>
|
|
9
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
10
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
11
|
+
* <RibbonTabsDirective>
|
|
12
|
+
* </RibbonComponent>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class RibbonTabDirective extends ComplexBase<RibbonTabModel & {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}, RibbonTabModel> {
|
|
18
|
+
static moduleName: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class RibbonTabsDirective extends ComplexBase<{}, {}> {
|
|
21
|
+
static propertyName: string;
|
|
22
|
+
static moduleName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
15
|
+
/**
|
|
16
|
+
* `RibbonTabDirective` represent a tab of the React Ribbon.
|
|
17
|
+
* It must be contained in a Ribbon component(`RibbonComponent`).
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <RibbonComponent>
|
|
20
|
+
* <RibbonTabsDirective>
|
|
21
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
22
|
+
* <RibbonTabDirective></RibbonTabDirective>
|
|
23
|
+
* <RibbonTabsDirective>
|
|
24
|
+
* </RibbonComponent>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
var RibbonTabDirective = /** @class */ (function (_super) {
|
|
28
|
+
__extends(RibbonTabDirective, _super);
|
|
29
|
+
function RibbonTabDirective() {
|
|
30
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31
|
+
}
|
|
32
|
+
RibbonTabDirective.moduleName = 'ribbonTab';
|
|
33
|
+
return RibbonTabDirective;
|
|
34
|
+
}(ComplexBase));
|
|
35
|
+
export { RibbonTabDirective };
|
|
36
|
+
var RibbonTabsDirective = /** @class */ (function (_super) {
|
|
37
|
+
__extends(RibbonTabsDirective, _super);
|
|
38
|
+
function RibbonTabsDirective() {
|
|
39
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
+
}
|
|
41
|
+
RibbonTabsDirective.propertyName = 'tabs';
|
|
42
|
+
RibbonTabsDirective.moduleName = 'ribbonTabs';
|
|
43
|
+
return RibbonTabsDirective;
|
|
44
|
+
}(ComplexBase));
|
|
45
|
+
export { RibbonTabsDirective };
|