@progress/kendo-angular-editor 4.0.0-next.202204121114 → 4.0.0

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.
@@ -9,7 +9,7 @@ export declare const defaultStyle = "\n html, body {\n margin: 0;\n
9
9
  /**
10
10
  * @hidden
11
11
  */
12
- export declare const tablesStyles = "\n.ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n}\n\n.ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n}\n\n.ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n}\n\n.ProseMirror th {\n font-weight: bold;\n text-align: left;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n/* Give selected cells a blue overlay */\n.ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: \"\";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n}\n";
12
+ export declare const tablesStyles = "\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: \"\";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n\n /* Resizing */\n .k-editor-resize-wrap-element {\n display: inline-block;\n position: relative;\n }\n\n .ProseMirror .row-resize-handle {\n position: absolute;\n right: 0; left: 0; bottom: 0;\n transform: translate(0, 50%);\n height: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n \n .ProseMirror.resize-cursor-vertical {\n cursor: sn-resize;\n cursor: row-resize;\n }\n\n .k-editor-resize-wrap-element table td p,\n .k-editor-resize-wrap-element table th p {\n margin: 0 auto;\n }\n";
13
13
  /**
14
14
  * @hidden
15
15
  */
@@ -200,56 +200,82 @@ export const defaultStyle = `
200
200
  * @hidden
201
201
  */
202
202
  export const tablesStyles = `
203
- .ProseMirror .tableWrapper {
204
- overflow-x: auto;
205
- margin: 1em 0;
206
- }
207
-
208
- .ProseMirror table {
209
- margin: 0;
210
- border-collapse: collapse;
211
- table-layout: fixed;
212
- width: 100%;
213
- overflow: hidden;
214
- }
215
-
216
- .ProseMirror td, .ProseMirror th {
217
- min-width: 1em;
218
- border: 1px solid #ddd;
219
- padding: 3px 5px;
220
- vertical-align: top;
221
- box-sizing: border-box;
222
- position: relative;
223
- }
224
-
225
- .ProseMirror th {
226
- font-weight: bold;
227
- text-align: left;
228
- }
229
-
230
- .ProseMirror .column-resize-handle {
231
- position: absolute;
232
- right: -2px; top: 0; bottom: 0;
233
- width: 4px;
234
- z-index: 20;
235
- background-color: #adf;
236
- pointer-events: none;
237
- }
238
-
239
- .ProseMirror.resize-cursor {
240
- cursor: ew-resize;
241
- cursor: col-resize;
242
- }
243
-
244
- /* Give selected cells a blue overlay */
245
- .ProseMirror .selectedCell:after {
246
- z-index: 2;
247
- position: absolute;
248
- content: "";
249
- left: 0; right: 0; top: 0; bottom: 0;
250
- background: rgba(200, 200, 255, 0.4);
251
- pointer-events: none;
252
- }
203
+ .ProseMirror .tableWrapper {
204
+ overflow-x: auto;
205
+ margin: 1em 0;
206
+ }
207
+
208
+ .ProseMirror table {
209
+ margin: 0;
210
+ border-collapse: collapse;
211
+ table-layout: fixed;
212
+ width: 100%;
213
+ overflow: hidden;
214
+ }
215
+
216
+ .ProseMirror td, .ProseMirror th {
217
+ min-width: 1em;
218
+ border: 1px solid #ddd;
219
+ padding: 3px 5px;
220
+ vertical-align: top;
221
+ box-sizing: border-box;
222
+ position: relative;
223
+ }
224
+
225
+ .ProseMirror th {
226
+ font-weight: bold;
227
+ text-align: left;
228
+ }
229
+
230
+ .ProseMirror .column-resize-handle {
231
+ position: absolute;
232
+ right: -2px; top: 0; bottom: 0;
233
+ width: 4px;
234
+ z-index: 20;
235
+ background-color: #adf;
236
+ pointer-events: none;
237
+ }
238
+
239
+ .ProseMirror.resize-cursor {
240
+ cursor: ew-resize;
241
+ cursor: col-resize;
242
+ }
243
+
244
+ /* Give selected cells a blue overlay */
245
+ .ProseMirror .selectedCell:after {
246
+ z-index: 2;
247
+ position: absolute;
248
+ content: "";
249
+ left: 0; right: 0; top: 0; bottom: 0;
250
+ background: rgba(200, 200, 255, 0.4);
251
+ pointer-events: none;
252
+ }
253
+
254
+ /* Resizing */
255
+ .k-editor-resize-wrap-element {
256
+ display: inline-block;
257
+ position: relative;
258
+ }
259
+
260
+ .ProseMirror .row-resize-handle {
261
+ position: absolute;
262
+ right: 0; left: 0; bottom: 0;
263
+ transform: translate(0, 50%);
264
+ height: 4px;
265
+ z-index: 20;
266
+ background-color: #adf;
267
+ pointer-events: none;
268
+ }
269
+
270
+ .ProseMirror.resize-cursor-vertical {
271
+ cursor: sn-resize;
272
+ cursor: row-resize;
273
+ }
274
+
275
+ .k-editor-resize-wrap-element table td p,
276
+ .k-editor-resize-wrap-element table th p {
277
+ margin: 0 auto;
278
+ }
253
279
  `;
254
280
  /**
255
281
  * @hidden
@@ -8,7 +8,7 @@ import { BehaviorSubject, fromEvent, Subject, zip } from 'rxjs';
8
8
  import { map, filter, take } from 'rxjs/operators';
9
9
  import { ToolBarComponent } from '@progress/kendo-angular-toolbar';
10
10
  import { hasObservers, isDocumentAvailable, KendoInput } from '@progress/kendo-angular-common';
11
- import { buildKeymap, buildListKeymap, getHtml, pasteCleanup, sanitize, removeComments, sanitizeClassAttr, sanitizeStyleAttr, removeAttribute, placeholder, EditorView, EditorState, baseKeymap, keymap, history, parseContent, Plugin, PluginKey, TextSelection, Schema, AllSelection, gapCursor, getSelectionText, imageResizing, tableEditing, caretColor } from '@progress/kendo-editor-common';
11
+ import { buildKeymap, buildListKeymap, getHtml, pasteCleanup, sanitize, removeComments, sanitizeClassAttr, sanitizeStyleAttr, removeAttribute, placeholder, EditorView, EditorState, baseKeymap, keymap, history, parseContent, Plugin, PluginKey, TextSelection, Schema, AllSelection, gapCursor, getSelectionText, imageResizing, tableEditing, caretColor, tableResizing } from '@progress/kendo-editor-common';
12
12
  import { validatePackage } from '@progress/kendo-licensing';
13
13
  import { packageMetadata } from './package-metadata';
14
14
  import { schema } from './config/schema';
@@ -659,6 +659,7 @@ export class EditorComponent {
659
659
  keymap(baseKeymap),
660
660
  gapCursor(),
661
661
  imageResizing(),
662
+ ...tableResizing(),
662
663
  tableEditing(),
663
664
  caretColor()
664
665
  ];
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-editor',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1649761501,
12
+ publishDate: 1650441316,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -11,7 +11,7 @@ import { take, map, filter as filter$1, concatMap, takeUntil } from 'rxjs/operat
11
11
  import * as i1$3 from '@progress/kendo-angular-toolbar';
12
12
  import { ToolBarToolComponent, ToolBarComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
13
13
  import { isDocumentAvailable, guid, hasObservers, KendoInput, Keys } from '@progress/kendo-angular-common';
14
- import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr, pasteCleanup, parseContent, AllSelection, TextSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableEditing, caretColor, placeholder, EditorState, EditorView } from '@progress/kendo-editor-common';
14
+ import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr, pasteCleanup, parseContent, AllSelection, TextSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableResizing, tableEditing, caretColor, placeholder, EditorState, EditorView } from '@progress/kendo-editor-common';
15
15
  export { Decoration, DecorationSet, EditorState, EditorView, InputRule, Mark, MarkType, Node, NodeType, Plugin, PluginKey, Schema, Transaction, baseKeymap, dropCursor, gapCursor, history, inputRules, keymap, tableNodes, textblockTypeInputRule, wrappingInputRule } from '@progress/kendo-editor-common';
16
16
  import { validatePackage } from '@progress/kendo-licensing';
17
17
  import * as i1$1 from '@progress/kendo-angular-dialog';
@@ -35,7 +35,7 @@ const packageMetadata = {
35
35
  name: '@progress/kendo-angular-editor',
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
38
- publishDate: 1649761501,
38
+ publishDate: 1650441316,
39
39
  version: '',
40
40
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
41
41
  };
@@ -1279,56 +1279,82 @@ const defaultStyle = `
1279
1279
  * @hidden
1280
1280
  */
1281
1281
  const tablesStyles = `
1282
- .ProseMirror .tableWrapper {
1283
- overflow-x: auto;
1284
- margin: 1em 0;
1285
- }
1282
+ .ProseMirror .tableWrapper {
1283
+ overflow-x: auto;
1284
+ margin: 1em 0;
1285
+ }
1286
1286
 
1287
- .ProseMirror table {
1288
- margin: 0;
1289
- border-collapse: collapse;
1290
- table-layout: fixed;
1291
- width: 100%;
1292
- overflow: hidden;
1293
- }
1287
+ .ProseMirror table {
1288
+ margin: 0;
1289
+ border-collapse: collapse;
1290
+ table-layout: fixed;
1291
+ width: 100%;
1292
+ overflow: hidden;
1293
+ }
1294
1294
 
1295
- .ProseMirror td, .ProseMirror th {
1296
- min-width: 1em;
1297
- border: 1px solid #ddd;
1298
- padding: 3px 5px;
1299
- vertical-align: top;
1300
- box-sizing: border-box;
1301
- position: relative;
1302
- }
1295
+ .ProseMirror td, .ProseMirror th {
1296
+ min-width: 1em;
1297
+ border: 1px solid #ddd;
1298
+ padding: 3px 5px;
1299
+ vertical-align: top;
1300
+ box-sizing: border-box;
1301
+ position: relative;
1302
+ }
1303
1303
 
1304
- .ProseMirror th {
1305
- font-weight: bold;
1306
- text-align: left;
1307
- }
1304
+ .ProseMirror th {
1305
+ font-weight: bold;
1306
+ text-align: left;
1307
+ }
1308
1308
 
1309
- .ProseMirror .column-resize-handle {
1310
- position: absolute;
1311
- right: -2px; top: 0; bottom: 0;
1312
- width: 4px;
1313
- z-index: 20;
1314
- background-color: #adf;
1315
- pointer-events: none;
1316
- }
1309
+ .ProseMirror .column-resize-handle {
1310
+ position: absolute;
1311
+ right: -2px; top: 0; bottom: 0;
1312
+ width: 4px;
1313
+ z-index: 20;
1314
+ background-color: #adf;
1315
+ pointer-events: none;
1316
+ }
1317
1317
 
1318
- .ProseMirror.resize-cursor {
1319
- cursor: ew-resize;
1320
- cursor: col-resize;
1321
- }
1318
+ .ProseMirror.resize-cursor {
1319
+ cursor: ew-resize;
1320
+ cursor: col-resize;
1321
+ }
1322
1322
 
1323
- /* Give selected cells a blue overlay */
1324
- .ProseMirror .selectedCell:after {
1325
- z-index: 2;
1326
- position: absolute;
1327
- content: "";
1328
- left: 0; right: 0; top: 0; bottom: 0;
1329
- background: rgba(200, 200, 255, 0.4);
1330
- pointer-events: none;
1331
- }
1323
+ /* Give selected cells a blue overlay */
1324
+ .ProseMirror .selectedCell:after {
1325
+ z-index: 2;
1326
+ position: absolute;
1327
+ content: "";
1328
+ left: 0; right: 0; top: 0; bottom: 0;
1329
+ background: rgba(200, 200, 255, 0.4);
1330
+ pointer-events: none;
1331
+ }
1332
+
1333
+ /* Resizing */
1334
+ .k-editor-resize-wrap-element {
1335
+ display: inline-block;
1336
+ position: relative;
1337
+ }
1338
+
1339
+ .ProseMirror .row-resize-handle {
1340
+ position: absolute;
1341
+ right: 0; left: 0; bottom: 0;
1342
+ transform: translate(0, 50%);
1343
+ height: 4px;
1344
+ z-index: 20;
1345
+ background-color: #adf;
1346
+ pointer-events: none;
1347
+ }
1348
+
1349
+ .ProseMirror.resize-cursor-vertical {
1350
+ cursor: sn-resize;
1351
+ cursor: row-resize;
1352
+ }
1353
+
1354
+ .k-editor-resize-wrap-element table td p,
1355
+ .k-editor-resize-wrap-element table th p {
1356
+ margin: 0 auto;
1357
+ }
1332
1358
  `;
1333
1359
  /**
1334
1360
  * @hidden
@@ -3255,6 +3281,7 @@ class EditorComponent {
3255
3281
  keymap(baseKeymap),
3256
3282
  gapCursor(),
3257
3283
  imageResizing(),
3284
+ ...tableResizing(),
3258
3285
  tableEditing(),
3259
3286
  caretColor()
3260
3287
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-editor",
3
- "version": "4.0.0-next.202204121114",
3
+ "version": "4.0.0",
4
4
  "description": "Kendo UI Editor for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -20,24 +20,24 @@
20
20
  "friendlyName": "Editor"
21
21
  },
22
22
  "dependencies": {
23
- "@progress/kendo-editor-common": "dev",
23
+ "@progress/kendo-editor-common": "1.9.0",
24
24
  "@progress/kendo-schematics": "^3.0.0",
25
25
  "tslib": "^2.3.1"
26
26
  },
27
27
  "peerDependencies": {
28
- "@angular/common": "^12.0.0 || ^13.0.0",
29
- "@angular/core": "^12.0.0 || ^13.0.0",
30
- "@angular/forms": "^12.0.0 || ^13.0.0",
31
- "@progress/kendo-angular-buttons": ">8.0.0-next",
32
- "@progress/kendo-angular-common": ">3.0.0-next",
33
- "@progress/kendo-angular-dialog": ">7.0.0-next",
34
- "@progress/kendo-angular-dropdowns": ">7.0.0-next",
35
- "@progress/kendo-angular-inputs": ">9.0.0-next",
36
- "@progress/kendo-angular-intl": ">4.0.0-next",
37
- "@progress/kendo-angular-l10n": ">4.0.0-next",
38
- "@progress/kendo-angular-layout": ">7.0.0-next",
39
- "@progress/kendo-angular-popup": ">5.0.0-next",
40
- "@progress/kendo-angular-toolbar": ">6.0.0-next",
28
+ "@angular/common": "12 - 14",
29
+ "@angular/core": "12 - 14",
30
+ "@angular/forms": "12 - 14",
31
+ "@progress/kendo-angular-buttons": "^8.0.0",
32
+ "@progress/kendo-angular-common": "^3.0.0",
33
+ "@progress/kendo-angular-dialog": "^7.0.0",
34
+ "@progress/kendo-angular-dropdowns": "^7.0.0",
35
+ "@progress/kendo-angular-inputs": "^9.0.0",
36
+ "@progress/kendo-angular-intl": "^4.0.0",
37
+ "@progress/kendo-angular-l10n": "^4.0.0",
38
+ "@progress/kendo-angular-layout": "^7.0.0",
39
+ "@progress/kendo-angular-popup": "^5.0.0",
40
+ "@progress/kendo-angular-toolbar": "^6.0.0",
41
41
  "@progress/kendo-drawing": "^1.5.12",
42
42
  "@progress/kendo-licensing": "^1.0.2",
43
43
  "rxjs": "^6.5.3 || ^7.0.0"
@@ -69,12 +69,10 @@
69
69
  "release": {
70
70
  "debug": false,
71
71
  "branchTags": {
72
- "develop": "dev",
73
- "ng12-update": "next"
72
+ "develop": "dev"
74
73
  },
75
74
  "fallbackTags": {
76
- "dev": "latest",
77
- "next": "latest"
75
+ "dev": "latest"
78
76
  },
79
77
  "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
80
78
  "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
@@ -8,9 +8,9 @@ const schematics_1 = require("@angular-devkit/schematics");
8
8
  function default_1(options) {
9
9
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'EditorModule', package: 'editor', peerDependencies: {
10
10
  // peer dependency of kendo-angular-dropdowns
11
- '@progress/kendo-angular-treeview': '^6.0.0',
11
+ '@progress/kendo-angular-treeview': '^7.0.0',
12
12
  // peer dependency of kendo-angular-layout
13
- '@progress/kendo-angular-progressbar': '^2.0.0'
13
+ '@progress/kendo-angular-progressbar': '^3.0.0'
14
14
  } });
15
15
  return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
16
16
  }