@syncfusion/ej2-image-editor 25.1.39 → 25.1.42

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 : 25.1.39
3
+ * version : 25.1.42
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-image-editor@*",
3
- "_id": "@syncfusion/ej2-image-editor@25.1.38",
3
+ "_id": "@syncfusion/ej2-image-editor@25.1.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-X2EocZP+w7YICz06hF1pi8Es3eRTIbYWVztXRVQZ49YCDZJ3E6t49d5q0oskE/0qHPuWZizMXjdG1m6YaSDALA==",
5
+ "_integrity": "sha512-XMjEHXnbJE44A6WuIBbiBBQnQD3+VOCPNZnWcxUFHXubNhb4TsfG5xqNJM1szIryTRxA8yQ7h7dHUnHpEmN0LA==",
6
6
  "_location": "/@syncfusion/ej2-image-editor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-image-editor",
24
24
  "/@syncfusion/ej2-vue-image-editor"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.1.38.tgz",
27
- "_shasum": "c691770cca2b120b6933b6a59a64985a5f15ae2d",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.1.40.tgz",
27
+ "_shasum": "745bd56bc7c13ce0a23c78523129579f67fba1f6",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
30
30
  "author": {
@@ -34,9 +34,9 @@
34
34
  "dependencies": {
35
35
  "@syncfusion/ej2-base": "~25.1.35",
36
36
  "@syncfusion/ej2-buttons": "~25.1.39",
37
- "@syncfusion/ej2-inputs": "~25.1.38",
38
- "@syncfusion/ej2-navigations": "~25.1.39",
39
- "@syncfusion/ej2-popups": "~25.1.39",
37
+ "@syncfusion/ej2-inputs": "~25.1.42",
38
+ "@syncfusion/ej2-navigations": "~25.1.42",
39
+ "@syncfusion/ej2-popups": "~25.1.42",
40
40
  "@syncfusion/ej2-splitbuttons": "~25.1.38"
41
41
  },
42
42
  "deprecated": false,
@@ -67,7 +67,7 @@
67
67
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
68
68
  },
69
69
  "typings": "index.d.ts",
70
- "version": "25.1.39",
70
+ "version": "25.1.42",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -575,7 +575,7 @@ var ImageEditor = /** @class */ (function (_super) {
575
575
  var content = '';
576
576
  this.element.querySelector('#' + this.element.id + '_dialog').style.display = 'block';
577
577
  var headerObj;
578
- var okObj = { key: 'OK' };
578
+ var okObj = { key: 'DlgOK' };
579
579
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: okObj } });
580
580
  if (type === 'multi-select-image') {
581
581
  headerObj = { key: 'ImageErrorDialogHeader' };
@@ -604,7 +604,7 @@ var ImageEditor = /** @class */ (function (_super) {
604
604
  close: this.dlgCloseBtnClick.bind(this),
605
605
  buttons: [
606
606
  { click: this.dlgCloseBtnClick.bind(this),
607
- buttonModel: { content: okObj['value'], iconCss: 'e-icons e-close' }
607
+ buttonModel: { content: okObj['value'] }
608
608
  }
609
609
  ]
610
610
  });
@@ -167,13 +167,14 @@ var ToolbarModule = /** @class */ (function () {
167
167
  ConfirmDialogHeader: 'Confirm Save Changes',
168
168
  ConfirmDialogContent: 'Do you want to save the changes you made to the image?',
169
169
  AlertDialogHeader: 'Unsupported file',
170
- AlertDialogContent: 'The dropped file is unsupported.',
170
+ AlertDialogContent: 'The selected file is unsupported.',
171
171
  Yes: 'Yes',
172
172
  No: 'No',
173
173
  ImageErrorDialogHeader: 'Image Selection Error',
174
174
  ImageErrorDialogContent: 'Please select only one image to open.',
175
175
  Straighten: 'Straighten',
176
176
  NoOutline: 'No outline',
177
+ DlgOK: 'OK'
177
178
  };
178
179
  this.l10n = new L10n('image-editor', this.defaultLocale, this.parent.locale);
179
180
  };
@@ -1132,7 +1133,7 @@ var ToolbarModule = /** @class */ (function () {
1132
1133
  var isCustomized = false;
1133
1134
  var items = [];
1134
1135
  var id = parent.element.id;
1135
- var defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text'];
1136
+ var defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text', 'Image'];
1136
1137
  if (parent.toolbar) {
1137
1138
  for (var i = 0; i < defItems.length; i++) {
1138
1139
  if (parent.toolbar.indexOf(defItems[i]) !== -1) {
@@ -1162,7 +1163,7 @@ var ToolbarModule = /** @class */ (function () {
1162
1163
  if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Text') > -1)) {
1163
1164
  items.push({ text: this.l10n.getConstant('Text'), id: 'text', iconCss: 'e-icons e-add-text' });
1164
1165
  }
1165
- if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Image') > -1)) {
1166
+ if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Image') > -1)) {
1166
1167
  items.push({ text: this.l10n.getConstant('Image'), id: 'image', iconCss: 'e-icons e-image' });
1167
1168
  }
1168
1169
  var obj = { freehandDrawSelectedId: null };