@syncfusion/ej2-angular-documenteditor 31.2.12 → 31.2.13
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 +2 -0
- package/README.md +1 -1
- package/package.json +2 -2
- package/schematics/collection.json +14 -10
- package/schematics/generators/documenteditorcontainer-default/index.d.ts +3 -0
- package/schematics/generators/documenteditorcontainer-default/index.js +8 -0
- package/schematics/generators/documenteditorcontainer-default/index.ts +8 -0
- package/schematics/generators/documenteditorcontainer-default/sample-details.d.ts +5 -0
- package/schematics/generators/documenteditorcontainer-default/sample-details.js +8 -0
- package/schematics/generators/documenteditorcontainer-default/sample-details.ts +5 -0
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +25 -0
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/assets/data.ts +1423 -0
- package/schematics/generators/documenteditorcontainer-default/schema.d.ts +3 -0
- package/schematics/generators/documenteditorcontainer-default/schema.js +2 -0
- package/schematics/generators/documenteditorcontainer-default/schema.json +125 -0
- package/schematics/generators/documenteditorcontainer-default/schema.ts +3 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.ts +10 -10
- package/schematics/ng-add/schema.json +34 -34
- package/schematics/ng-add/schema.ts +30 -30
- package/schematics/tsconfig.json +25 -25
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +1 -0
- package/schematics/utils/lib-details.ts +4 -4
- package/styles/document-editor/material3-dark.scss +1 -1
- package/styles/document-editor/material3.scss +1 -1
- package/styles/document-editor-container/material3-dark.scss +1 -1
- package/styles/document-editor-container/material3.scss +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -170,4 +170,4 @@ Check the changelog [here](https://github.com/syncfusion/ej2-angular-ui-componen
|
|
|
170
170
|
|
|
171
171
|
See [LICENSE FILE](https://github.com/syncfusion/ej2-angular-ui-components/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm) for more info.
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
© Copyright 2025 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-angular-documenteditor",
|
|
3
|
-
"version": "31.2.
|
|
3
|
+
"version": "31.2.13",
|
|
4
4
|
"description": "Feature-rich document editor control with built-in support for context menu, options pane and dialogs. for Angular",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@syncfusion/ej2-base": "~31.2.12",
|
|
10
10
|
"@syncfusion/ej2-angular-base": "~31.2.12",
|
|
11
|
-
"@syncfusion/ej2-documenteditor": "31.2.
|
|
11
|
+
"@syncfusion/ej2-documenteditor": "31.2.13"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"ej2-angular-documenteditor",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds Essential JS 2 specific Angular package to an application",
|
|
6
|
+
"factory": "./ng-add",
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"documenteditorcontainer-default": {
|
|
10
|
+
"description": "Create an Angular documentEditorContainer component with toolbar feature ",
|
|
11
|
+
"factory": "./generators/documenteditorcontainer-default",
|
|
12
|
+
"schema": "./generators/documenteditorcontainer-default/schema.json"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
|
|
4
|
+
const sampleDetails = require("./sample-details");
|
|
5
|
+
function default_1(options) {
|
|
6
|
+
return (0, schematics_1.componentBuilder)(options, sampleDetails);
|
|
7
|
+
}
|
|
8
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
|
|
3
|
+
import { Schema } from './schema';
|
|
4
|
+
import * as sampleDetails from './sample-details';
|
|
5
|
+
|
|
6
|
+
export default function (options: Schema): Rule {
|
|
7
|
+
return componentBuilder(options, sampleDetails);
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.libModules = exports.packageName = exports.diModules = exports.sampleName = exports.componentName = void 0;
|
|
4
|
+
exports.componentName = 'documenteditorcontainer';
|
|
5
|
+
exports.sampleName = 'default';
|
|
6
|
+
exports.diModules = 'ToolbarService';
|
|
7
|
+
exports.packageName = '@syncfusion/ej2-angular-documenteditor';
|
|
8
|
+
exports.libModules = 'DocumentEditorContainerModule';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const componentName: string = 'documenteditorcontainer';
|
|
2
|
+
export const sampleName: string = 'default';
|
|
3
|
+
export const diModules: string = 'ToolbarService';
|
|
4
|
+
export const packageName: string = '@syncfusion/ej2-angular-documenteditor';
|
|
5
|
+
export const libModules: string = 'DocumentEditorContainerModule';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, ViewEncapsulation, ViewChild } from '@angular/core';
|
|
2
|
+
import { ToolbarService, DocumentEditorContainerComponent } from '@syncfusion/ej2-angular-documenteditor';
|
|
3
|
+
import { defaultDocument, WEB_API_ACTION } from './assets/data';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Document Editor Component
|
|
7
|
+
*/
|
|
8
|
+
@Component({
|
|
9
|
+
selector: '<%=dasherize(selector)%>',
|
|
10
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
11
|
+
styleUrls: ['<%=dasherize(name)%>.component.css'],
|
|
12
|
+
encapsulation: ViewEncapsulation.None,
|
|
13
|
+
providers: [ToolbarService],
|
|
14
|
+
})
|
|
15
|
+
export class <%= classify(name) %>Component {
|
|
16
|
+
public hostUrl: string = 'https://ej2services.syncfusion.com/production/web-services/';
|
|
17
|
+
@ViewChild('documentEditorContainerInstance')
|
|
18
|
+
public documentEditorContainerInstance: DocumentEditorContainerComponent;
|
|
19
|
+
|
|
20
|
+
render(): void {
|
|
21
|
+
this.documentEditorContainerInstance.locale = 'en-US';
|
|
22
|
+
this.documentEditorContainerInstance.serviceUrl = this.hostUrl + WEB_API_ACTION;
|
|
23
|
+
this.documentEditorContainerInstance.documentEditor.open(JSON.stringify(defaultDocument));
|
|
24
|
+
}
|
|
25
|
+
}
|