@progress/kendo-angular-editor 24.2.0-develop.1 → 24.2.0-develop.10

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.
@@ -0,0 +1,33 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export interface IndentRule {
9
+ node: string;
10
+ style: string;
11
+ rtlStyle: string;
12
+ step: number;
13
+ unit: string;
14
+ }
15
+ /**
16
+ * @hidden
17
+ */
18
+ export interface IndentationRules {
19
+ nodes: Array<IndentRule>;
20
+ listsTypes: {
21
+ orderedList: string;
22
+ bulletList: string;
23
+ listItem: string;
24
+ };
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export declare const indentRules: IndentationRules;
30
+ /**
31
+ * @hidden
32
+ */
33
+ export declare const outdentRules: IndentationRules;
@@ -13,7 +13,7 @@ import { ToolBarToolComponent, ToolBarComponent, ToolBarButtonGroupComponent, To
13
13
  import * as i1$1 from '@progress/kendo-angular-dialog';
14
14
  import { DialogContentBase, DialogTitleBarComponent, DialogActionsComponent, DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
15
15
  import { isDocumentAvailable, guid, getLicenseMessage, shouldShowValidationUI, Keys, hasObservers, WatermarkOverlayComponent, KendoInput, KENDO_WEBMCP_HOST, isPresent as isPresent$1, ResizeBatchService } from '@progress/kendo-angular-common';
16
- import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, selectAll, expandToWordWrap, applyInlineStyle, removeLink, link, toggleInlineFormat, underline, superscript, subscript, strikethrough, italic, insertText, applyLink, cleanFormatting, bold, blockquote, undo, setHtml, redo, outdent, toggleUnorderedList, toggleOrderedList, insertImage, indent, getHtml, formatBlockElements, isAligned, alignRightRules, alignLeftRules, alignJustifyRules, alignCenterRules, deleteTable, splitCell, mergeCells, deleteColumn, deleteRow, addRowAfter, addRowBefore, addColumnAfter, addColumnBefore, expandSelection, hasMark, getActiveMarks, hasNode, canOutdentAsListItem, outdentRules, isIndented, canIndentAsListItem, canBeIndented, indentRules, activeNode, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeClassAttr, sanitizeStyleAttr, TextSelection, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableResizing, tableEditing, caretColor, cspFix, placeholder, EditorState, EditorView, pasteCleanup, AllSelection } from '@progress/kendo-editor-common';
16
+ import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, canIndentAsListItem, indent, canBeIndented, indentBlocks, hasNode, liftBlockquote, canOutdentAsListItem, outdent, selectAll, expandToWordWrap, applyInlineStyle, removeLink, link, toggleInlineFormat, underline, superscript, subscript, strikethrough, italic, insertText, applyLink, cleanFormatting, bold, blockquote, undo, setHtml, redo, toggleUnorderedList, toggleOrderedList, insertImage, getHtml, formatBlockElements, isAligned, alignRightRules, alignLeftRules, alignJustifyRules, alignCenterRules, deleteTable, splitCell, mergeCells, deleteColumn, deleteRow, addRowAfter, addRowBefore, addColumnAfter, addColumnBefore, expandSelection, hasMark, getActiveMarks, isIndented, activeNode, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeClassAttr, sanitizeStyleAttr, TextSelection, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableResizing, tableEditing, caretColor, cspFix, placeholder, EditorState, EditorView, pasteCleanup, AllSelection } from '@progress/kendo-editor-common';
17
17
  export { AllSelection, CellSelection, Decoration, DecorationSet, EditorState, EditorView, InputRule, Mark, MarkType, Node, NodeSelection, NodeType, Plugin, PluginKey, Schema, TextSelection, Transaction, baseKeymap, dropCursor, flattenNestedSpans, gapCursor, history, inputRules, keymap, tableNodes, textblockTypeInputRule, wrappingInputRule } from '@progress/kendo-editor-common';
18
18
  import { validatePackage } from '@progress/kendo-licensing';
19
19
  import * as i1 from '@progress/kendo-angular-l10n';
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCode: 'KENDOUIANGULAR',
38
38
  productCodes: ['KENDOUIANGULAR'],
39
- publishDate: 1781868669,
40
- version: '24.2.0-develop.1',
39
+ publishDate: 1782305927,
40
+ version: '24.2.0-develop.10',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -170,6 +170,59 @@ const schema = new Schema({
170
170
  nodes
171
171
  });
172
172
 
173
+ /**
174
+ * @hidden
175
+ */
176
+ const indentRules = {
177
+ nodes: [
178
+ {
179
+ node: 'paragraph',
180
+ step: 30,
181
+ style: 'margin-inline-start',
182
+ rtlStyle: 'margin-inline-start',
183
+ unit: 'px'
184
+ },
185
+ {
186
+ node: 'heading',
187
+ step: 30,
188
+ style: 'margin-inline-start',
189
+ rtlStyle: 'margin-inline-start',
190
+ unit: 'px'
191
+ }
192
+ ],
193
+ listsTypes: {
194
+ orderedList: 'ordered_list',
195
+ bulletList: 'bullet_list',
196
+ listItem: 'list_item'
197
+ }
198
+ };
199
+ /**
200
+ * @hidden
201
+ */
202
+ const outdentRules = {
203
+ nodes: [
204
+ {
205
+ node: 'paragraph',
206
+ step: -30,
207
+ style: 'margin-inline-start',
208
+ rtlStyle: 'margin-inline-start',
209
+ unit: 'px'
210
+ },
211
+ {
212
+ node: 'heading',
213
+ step: -30,
214
+ style: 'margin-inline-start',
215
+ rtlStyle: 'margin-inline-start',
216
+ unit: 'px'
217
+ }
218
+ ],
219
+ listsTypes: {
220
+ orderedList: 'ordered_list',
221
+ bulletList: 'bullet_list',
222
+ listItem: 'list_item'
223
+ }
224
+ };
225
+
173
226
  /**
174
227
  * @hidden
175
228
  */
@@ -181,6 +234,27 @@ const insertTable = (attrs) => (state, dispatch) => {
181
234
  };
182
235
 
183
236
  const alignRemove = (state, dispatch) => alignBlocks(alignRemoveRules)(state, dispatch);
237
+ const customIndent = (state, dispatch) => {
238
+ const listItem = state.schema.nodes[indentRules.listsTypes.listItem];
239
+ if (canIndentAsListItem(state, listItem)) {
240
+ return indent(state, dispatch);
241
+ }
242
+ if (canBeIndented(state, indentRules)) {
243
+ return indentBlocks(indentRules.nodes)(state, dispatch);
244
+ }
245
+ };
246
+ const customOutdent = (state, dispatch) => {
247
+ const nodes = state.schema.nodes;
248
+ if (hasNode(state, nodes['blockquote'])) {
249
+ return liftBlockquote(state, dispatch);
250
+ }
251
+ if (canOutdentAsListItem(state, outdentRules)) {
252
+ return outdent(state, dispatch);
253
+ }
254
+ if (canBeIndented(state, outdentRules)) {
255
+ return indentBlocks(outdentRules.nodes)(state, dispatch);
256
+ }
257
+ };
184
258
  const inlineCommand = {
185
259
  bold: (applyToWord) => expandToWordWrap(toggleInlineFormat, { ...bold, applyToWord }),
186
260
  cleanFormatting: (options) => cleanFormatting(options),
@@ -206,13 +280,13 @@ const blockCommand = {
206
280
  alignRight: () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch),
207
281
  format: formatAttr => formatBlockElements(formatAttr.tag),
208
282
  getHTML: () => getHtml,
209
- indent: () => indent,
283
+ indent: () => customIndent,
210
284
  insertImage: attrs => insertImage(attrs),
211
285
  // think about changing the command name.
212
286
  insertOrderedList: () => toggleOrderedList,
213
287
  // think about changing the command name.
214
288
  insertUnorderedList: () => toggleUnorderedList,
215
- outdent: () => outdent,
289
+ outdent: () => customOutdent,
216
290
  redo: () => redo,
217
291
  setHTML: ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions),
218
292
  undo: () => undo,
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1781868669,
11
- "version": "24.2.0-develop.1",
10
+ "publishDate": 1782305927,
11
+ "version": "24.2.0-develop.10",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-editor",
3
- "version": "24.2.0-develop.1",
3
+ "version": "24.2.0-develop.10",
4
4
  "description": "Kendo UI Editor for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -17,7 +17,7 @@
17
17
  "package": {
18
18
  "productName": "Kendo UI for Angular",
19
19
  "productCode": "KENDOUIANGULAR",
20
- "publishDate": 1781868669,
20
+ "publishDate": 1782305927,
21
21
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
22
22
  }
23
23
  },
@@ -29,23 +29,23 @@
29
29
  "@angular/platform-browser": "19 - 22",
30
30
  "@progress/kendo-drawing": "^1.25.0",
31
31
  "@progress/kendo-licensing": "^1.11.0",
32
- "@progress/kendo-angular-buttons": "24.2.0-develop.1",
33
- "@progress/kendo-angular-common": "24.2.0-develop.1",
34
- "@progress/kendo-angular-dialog": "24.2.0-develop.1",
35
- "@progress/kendo-angular-dropdowns": "24.2.0-develop.1",
36
- "@progress/kendo-angular-inputs": "24.2.0-develop.1",
37
- "@progress/kendo-angular-intl": "24.2.0-develop.1",
38
- "@progress/kendo-angular-l10n": "24.2.0-develop.1",
39
- "@progress/kendo-angular-label": "24.2.0-develop.1",
40
- "@progress/kendo-angular-layout": "24.2.0-develop.1",
41
- "@progress/kendo-angular-icons": "24.2.0-develop.1",
42
- "@progress/kendo-angular-popup": "24.2.0-develop.1",
43
- "@progress/kendo-angular-toolbar": "24.2.0-develop.1",
32
+ "@progress/kendo-angular-buttons": "24.2.0-develop.10",
33
+ "@progress/kendo-angular-common": "24.2.0-develop.10",
34
+ "@progress/kendo-angular-dialog": "24.2.0-develop.10",
35
+ "@progress/kendo-angular-dropdowns": "24.2.0-develop.10",
36
+ "@progress/kendo-angular-inputs": "24.2.0-develop.10",
37
+ "@progress/kendo-angular-intl": "24.2.0-develop.10",
38
+ "@progress/kendo-angular-l10n": "24.2.0-develop.10",
39
+ "@progress/kendo-angular-label": "24.2.0-develop.10",
40
+ "@progress/kendo-angular-layout": "24.2.0-develop.10",
41
+ "@progress/kendo-angular-icons": "24.2.0-develop.10",
42
+ "@progress/kendo-angular-popup": "24.2.0-develop.10",
43
+ "@progress/kendo-angular-toolbar": "24.2.0-develop.10",
44
44
  "rxjs": "^6.5.3 || ^7.0.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "tslib": "^2.3.1",
48
- "@progress/kendo-angular-schematics": "24.2.0-develop.1",
48
+ "@progress/kendo-angular-schematics": "24.2.0-develop.10",
49
49
  "@progress/kendo-editor-common": "1.12.5"
50
50
  },
51
51
  "schematics": "./schematics/collection.json",
@@ -9,12 +9,12 @@ const schematics_1 = require("@angular-devkit/schematics");
9
9
  function default_1(options) {
10
10
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'EditorModule', package: 'editor', peerDependencies: {
11
11
  // peer dependencies of kendo-angular-dropdowns
12
- '@progress/kendo-angular-navigation': '24.2.0-develop.1',
13
- '@progress/kendo-angular-treeview': '24.2.0-develop.1',
12
+ '@progress/kendo-angular-navigation': '24.2.0-develop.10',
13
+ '@progress/kendo-angular-treeview': '24.2.0-develop.10',
14
14
  // peer dependency of kendo-angular-layout
15
- '@progress/kendo-angular-progressbar': '24.2.0-develop.1',
15
+ '@progress/kendo-angular-progressbar': '24.2.0-develop.10',
16
16
  // peer dependency of kendo-angular-inputs
17
- '@progress/kendo-angular-dialog': '24.2.0-develop.1',
17
+ '@progress/kendo-angular-dialog': '24.2.0-develop.10',
18
18
  // Peer dependency of icons
19
19
  '@progress/kendo-svg-icons': '^4.0.0'
20
20
  } });