@progress/kendo-vue-editor 6.4.0 → 6.4.1-develop.2
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/config/defaultStyles.js +5 -1
- package/config/defaultStyles.mjs +5 -1
- package/config/toolsSettings.js +1 -1
- package/config/toolsSettings.mjs +15 -14
- package/dialogs/FindReplace.js +1 -1
- package/dialogs/FindReplace.mjs +129 -118
- package/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/messages/main.js +1 -1
- package/messages/main.mjs +34 -32
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -12
package/config/defaultStyles.js
CHANGED
|
@@ -37,7 +37,7 @@ body > .k-content {
|
|
|
37
37
|
white-space: pre-wrap;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.k-content .k-text-selected
|
|
40
|
+
.k-content .k-text-selected {
|
|
41
41
|
color: HighlightText;
|
|
42
42
|
background-color: Highlight;
|
|
43
43
|
}
|
|
@@ -192,6 +192,10 @@ body > .k-content {
|
|
|
192
192
|
cursor: col-resize;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
.ProseMirror .selectedCell ::selection {
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
195
199
|
/* Give selected cells a blue overlay */
|
|
196
200
|
.ProseMirror .selectedCell:after {
|
|
197
201
|
z-index: 2;
|
package/config/defaultStyles.mjs
CHANGED
|
@@ -37,7 +37,7 @@ body > .k-content {
|
|
|
37
37
|
white-space: pre-wrap;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.k-content .k-text-selected
|
|
40
|
+
.k-content .k-text-selected {
|
|
41
41
|
color: HighlightText;
|
|
42
42
|
background-color: Highlight;
|
|
43
43
|
}
|
|
@@ -192,6 +192,10 @@ body > .k-content {
|
|
|
192
192
|
cursor: col-resize;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
.ProseMirror .selectedCell ::selection {
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
195
199
|
/* Give selected cells a blue overlay */
|
|
196
200
|
.ProseMirror .selectedCell:after {
|
|
197
201
|
z-index: 2;
|
package/config/toolsSettings.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@progress/kendo-vue-buttons");const e=require("../messages/main.js");require("@progress/kendo-vue-pdf");const l=require("@progress/kendo-editor-common"),a=require("@progress/kendo-svg-icons"),t={...l.indentRules.listsTypes};exports.EditorToolsSettings=void 0;(n=>{const s={type:"button"};n.bold={...l.bold,props:{icon:"bold",svgIcon:a.boldIcon,...s},messages:{title:e.keys.bold},commandName:"Bold"},n.italic={...l.italic,props:{icon:"italic",svgIcon:a.italicIcon,...s},messages:{title:e.keys.italic},commandName:"Italic"},n.underline={...l.underline,props:{icon:"underline",svgIcon:a.underlineIcon,...s},messages:{title:e.keys.underline},commandName:"Underline"},n.strikethrough={...l.strikethrough,props:{icon:"strikethrough",svgIcon:a.strikethroughIcon,...s},messages:{title:e.keys.strikethrough},commandName:"Strikethrough"},n.subscript={...l.subscript,props:{icon:"subscript",svgIcon:a.subscriptIcon,...s},messages:{title:e.keys.subscript},commandName:"Subscript"},n.superscript={...l.superscript,props:{icon:"supscript",svgIcon:a.supscriptIcon,...s},messages:{title:e.keys.superscript},commandName:"Superscript"},n.link={...l.link,props:{icon:"link",svgIcon:a.linkIcon,...s},messages:{insertHyperlink:e.keys.insertHyperlink,insertHyperlinkDialogTitle:e.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:e.keys.insertHyperlinkAddress,insertHyperlinkTitle:e.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:e.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:e.keys.insertHyperlinkCancel,insertHyperlinkInsert:e.keys.insertHyperlinkInsert},commandName:"Link"},n.insertFile={...l.link,props:{icon:"file-add",svgIcon:a.fileAddIcon,...s},messages:{insertHyperlink:e.keys.insertFile,insertHyperlinkDialogTitle:e.keys.insertFileDialogTitle,insertHyperlinkAddress:e.keys.insertFileAddress,insertHyperlinkTitle:e.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:e.keys.insertFileCancel,insertHyperlinkInsert:e.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1},n.insertTable={props:{icon:"table-add",svgIcon:a.tableAddIcon,...s},messages:{createTable:e.keys.createTable,createTableHint:e.keys.createTableHint},commandName:"InsertTable"},n.addRowBefore={command:l.addRowBefore,props:{icon:"table-row-insert-above",svgIcon:a.tableRowInsertAboveIcon,...s},messages:{title:e.keys.addRowBefore},commandName:"AddRowBefore"},n.addRowAfter={command:l.addRowAfter,props:{icon:"table-row-insert-below",svgIcon:a.tableRowInsertBelowIcon,...s},messages:{title:e.keys.addRowAfter},commandName:"AddRowAfter"},n.addColumnBefore={command:l.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...s},messages:{title:e.keys.addColumnBefore},commandName:"AddColumnBefore"},n.addColumnAfter={command:l.addColumnAfter,props:{icon:"table-column-insert-right",svgIcon:a.tableColumnInsertRightIcon,...s},messages:{title:e.keys.addColumnAfter},commandName:"AddColumnAfter"},n.deleteRow={command:l.deleteRow,props:{icon:"table-row-delete",svgIcon:a.tableRowDeleteIcon,...s},messages:{title:e.keys.deleteRow},commandName:"DeleteRow"},n.deleteColumn={command:l.deleteColumn,props:{icon:"table-column-delete",svgIcon:a.tableColumnDeleteIcon,...s},messages:{title:e.keys.deleteColumn},commandName:"DeleteColumn"},n.deleteTable={command:l.deleteTable,props:{icon:"table-delete",svgIcon:a.tableDeleteIcon,...s},messages:{title:e.keys.deleteTable},commandName:"DeleteTable"},n.mergeCells={command:l.mergeCells,props:{icon:"cells-merge",svgIcon:a.cellsMergeIcon,...s},messages:{title:e.keys.mergeCells},commandName:"MergeCells"},n.splitCell={command:l.splitCell,props:{icon:"cell-split-horizontally",svgIcon:a.cellSplitHorizontallyIcon,...s},messages:{title:e.keys.splitCell},commandName:"SplitCell"},n.print={props:{icon:"print",svgIcon:a.printIcon,...s},messages:{title:e.keys.print}},n.selectAll={props:{icon:"select-all",svgIcon:a.selectAllIcon,...s},messages:{title:e.keys.selectAll}},n.pdf={props:{icon:"file-pdf",svgIcon:a.filePdfIcon,...s},messages:{title:e.keys.pdf}},n.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},n.cleanFormatting={props:{icon:"clear-css",svgIcon:a.clearCssIcon,...s},messages:{title:e.keys.cleanFormatting},commandName:"CleanFormatting"},n.image={node:"image",props:{icon:"image",svgIcon:a.imageIcon,...s},messages:{insertImage:e.keys.insertImage,insertImageDialogTitle:e.keys.insertImageDialogTitle,insertImageAddress:e.keys.insertImageAddress,insertImageTitle:e.keys.insertImageTitle,insertImageAltText:e.keys.insertImageAltText,insertImageWidth:e.keys.insertImageWidth,insertImageHeight:e.keys.insertImageHeight,insertImageCancel:e.keys.insertImageCancel,insertImageInsert:e.keys.insertImageInsert},commandName:"InsertImage"},n.viewHtml={props:{icon:"code",svgIcon:a.codeIcon,...s},messages:{viewHtml:e.keys.viewHtml,viewHtmlDialogTitle:e.keys.viewHtmlDialogTitle,viewHtmlCancel:e.keys.viewHtmlCancel,viewHtmlUpdate:e.keys.viewHtmlUpdate},commandName:"SetContent"},n.findAndReplace={props:{icon:"search",svgIcon:a.searchIcon,...s},messages:{findReplaceToolTitle:e.keys.findReplaceToolTitle,findReplaceDialogTitle:e.keys.findReplaceDialogTitle,findReplaceTabFind:e.keys.findReplaceTabFind,findReplaceTabReplace:e.keys.findReplaceTabReplace,findReplaceFindWhat:e.keys.findReplaceFindWhat,findReplaceReplaceWith:e.keys.findReplaceReplaceWith,findReplaceReplace:e.keys.findReplaceReplace,findReplaceReplaceAll:e.keys.findReplaceReplaceAll,findReplaceMatchCase:e.keys.findReplaceMatchCase,findReplaceMatchWord:e.keys.findReplaceMatchWord,findReplaceMatchCyclic:e.keys.findReplaceMatchCyclic,findReplaceUseRegExp:e.keys.findReplaceUseRegExp,findReplacePrevMatch:e.keys.findReplacePrevMatch,findReplaceNextMatch:e.keys.findReplaceNextMatch,findReplaceMatches:e.keys.findReplaceMatches}},n.unlink={...l.link,props:{icon:"unlink",svgIcon:a.unlinkIcon,...s},messages:{title:e.keys.unlink},commandName:"Unlink"},n.undo={command:l.undo,props:{icon:"undo",svgIcon:a.undoIcon,...s},messages:{title:e.keys.undo},commandName:"Undo"},n.redo={command:l.redo,props:{icon:"redo",svgIcon:a.redoIcon,...s},messages:{title:e.keys.redo},commandName:"Redo"},n.fontSize={style:"font-size",defaultItem:{text:e.messages[e.keys.fontSize],value:"",localizationKey:e.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},n.fontName={style:"font-family",defaultItem:{text:e.messages[e.keys.fontName],value:"",localizationKey:e.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},n.formatBlock={defaultItem:{text:e.messages[e.keys.format],value:"",localizationKey:e.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},n.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",svgIcon:a.foregroundColorIcon,view:"palette",title:e.keys.foregroundColor},commandName:"ForeColor"},n.backColor={color:"background-color",colorPickerProps:{icon:"droplet",svgIcon:a.dropletIcon,view:"palette",title:e.keys.backgroundColor},commandName:"BackColor"},n.alignLeft={actions:[...l.alignLeftRules],props:{icon:"align-left",svgIcon:a.alignLeftIcon,...s},messages:{title:e.keys.alignLeft},commandName:"AlignLeft"},n.alignRight={actions:[...l.alignRightRules],props:{icon:"align-right",svgIcon:a.alignRightIcon,...s},messages:{title:e.keys.alignRight},commandName:"AlignRight"},n.alignCenter={actions:[...l.alignCenterRules],props:{icon:"align-center",svgIcon:a.alignCenterIcon,...s},messages:{title:e.keys.alignCenter},commandName:"AlignCenter"},n.alignJustify={actions:[...l.alignJustifyRules],props:{icon:"align-justify",svgIcon:a.alignJustifyIcon,...s},messages:{title:e.keys.alignJustify},commandName:"AlignJustify"},n.alignRemove={actions:[...l.alignRemoveRules],props:{icon:"align-remove",svgIcon:a.alignRemoveIcon,...s},messages:{},commandName:"AlignRemove"},n.indent={actions:l.indentRules.nodes,listsTypes:t,props:{icon:"indent",svgIcon:a.indentIcon,...s},messages:{title:e.keys.indent},commandName:"Indent"},n.outdent={actions:l.outdentRules.nodes,listsTypes:t,props:{icon:"outdent",svgIcon:a.outdentIcon,...s},messages:{title:e.keys.outdent},commandName:"Outdent"},n.orderedList={listType:t.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...s},messages:{title:e.keys.orderedList},commandName:"OrderedList",types:{...t}},n.bulletList={listType:t.bulletList,props:{icon:"list-unordered",svgIcon:a.listUnorderedIcon,...s},messages:{title:e.keys.bulletList},commandName:"UnorderedList",types:{...t}}})(exports.EditorToolsSettings||(exports.EditorToolsSettings={}));
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@progress/kendo-vue-buttons");const e=require("../messages/main.js");require("@progress/kendo-vue-pdf");const l=require("@progress/kendo-editor-common"),a=require("@progress/kendo-svg-icons"),i={...l.indentRules.listsTypes};exports.EditorToolsSettings=void 0;(n=>{const s={type:"button"};n.bold={...l.bold,props:{icon:"bold",svgIcon:a.boldIcon,...s},messages:{title:e.keys.bold},commandName:"Bold"},n.italic={...l.italic,props:{icon:"italic",svgIcon:a.italicIcon,...s},messages:{title:e.keys.italic},commandName:"Italic"},n.underline={...l.underline,props:{icon:"underline",svgIcon:a.underlineIcon,...s},messages:{title:e.keys.underline},commandName:"Underline"},n.strikethrough={...l.strikethrough,props:{icon:"strikethrough",svgIcon:a.strikethroughIcon,...s},messages:{title:e.keys.strikethrough},commandName:"Strikethrough"},n.subscript={...l.subscript,props:{icon:"subscript",svgIcon:a.subscriptIcon,...s},messages:{title:e.keys.subscript},commandName:"Subscript"},n.superscript={...l.superscript,props:{icon:"supscript",svgIcon:a.supscriptIcon,...s},messages:{title:e.keys.superscript},commandName:"Superscript"},n.link={...l.link,props:{icon:"link",svgIcon:a.linkIcon,...s},messages:{insertHyperlink:e.keys.insertHyperlink,insertHyperlinkDialogTitle:e.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:e.keys.insertHyperlinkAddress,insertHyperlinkTitle:e.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:e.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:e.keys.insertHyperlinkCancel,insertHyperlinkInsert:e.keys.insertHyperlinkInsert},commandName:"Link"},n.insertFile={...l.link,props:{icon:"file-add",svgIcon:a.fileAddIcon,...s},messages:{insertHyperlink:e.keys.insertFile,insertHyperlinkDialogTitle:e.keys.insertFileDialogTitle,insertHyperlinkAddress:e.keys.insertFileAddress,insertHyperlinkTitle:e.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:e.keys.insertFileCancel,insertHyperlinkInsert:e.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1},n.insertTable={props:{icon:"table-add",svgIcon:a.tableAddIcon,...s},messages:{createTable:e.keys.createTable,createTableHint:e.keys.createTableHint},commandName:"InsertTable"},n.addRowBefore={command:l.addRowBefore,props:{icon:"table-row-insert-above",svgIcon:a.tableRowInsertAboveIcon,...s},messages:{title:e.keys.addRowBefore},commandName:"AddRowBefore"},n.addRowAfter={command:l.addRowAfter,props:{icon:"table-row-insert-below",svgIcon:a.tableRowInsertBelowIcon,...s},messages:{title:e.keys.addRowAfter},commandName:"AddRowAfter"},n.addColumnBefore={command:l.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...s},messages:{title:e.keys.addColumnBefore},commandName:"AddColumnBefore"},n.addColumnAfter={command:l.addColumnAfter,props:{icon:"table-column-insert-right",svgIcon:a.tableColumnInsertRightIcon,...s},messages:{title:e.keys.addColumnAfter},commandName:"AddColumnAfter"},n.deleteRow={command:l.deleteRow,props:{icon:"table-row-delete",svgIcon:a.tableRowDeleteIcon,...s},messages:{title:e.keys.deleteRow},commandName:"DeleteRow"},n.deleteColumn={command:l.deleteColumn,props:{icon:"table-column-delete",svgIcon:a.tableColumnDeleteIcon,...s},messages:{title:e.keys.deleteColumn},commandName:"DeleteColumn"},n.deleteTable={command:l.deleteTable,props:{icon:"table-delete",svgIcon:a.tableDeleteIcon,...s},messages:{title:e.keys.deleteTable},commandName:"DeleteTable"},n.mergeCells={command:l.mergeCells,props:{icon:"cells-merge",svgIcon:a.cellsMergeIcon,...s},messages:{title:e.keys.mergeCells},commandName:"MergeCells"},n.splitCell={command:l.splitCell,props:{icon:"cell-split-horizontally",svgIcon:a.cellSplitHorizontallyIcon,...s},messages:{title:e.keys.splitCell},commandName:"SplitCell"},n.print={props:{icon:"print",svgIcon:a.printIcon,...s},messages:{title:e.keys.print}},n.selectAll={props:{icon:"select-all",svgIcon:a.selectAllIcon,...s},messages:{title:e.keys.selectAll}},n.pdf={props:{icon:"file-pdf",svgIcon:a.filePdfIcon,...s},messages:{title:e.keys.pdf}},n.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},n.cleanFormatting={props:{icon:"clear-css",svgIcon:a.clearCssIcon,...s},messages:{title:e.keys.cleanFormatting},commandName:"CleanFormatting"},n.image={node:"image",props:{icon:"image",svgIcon:a.imageIcon,...s},messages:{insertImage:e.keys.insertImage,insertImageDialogTitle:e.keys.insertImageDialogTitle,insertImageAddress:e.keys.insertImageAddress,insertImageTitle:e.keys.insertImageTitle,insertImageAltText:e.keys.insertImageAltText,insertImageWidth:e.keys.insertImageWidth,insertImageHeight:e.keys.insertImageHeight,insertImageCancel:e.keys.insertImageCancel,insertImageInsert:e.keys.insertImageInsert},commandName:"InsertImage"},n.viewHtml={props:{icon:"code",svgIcon:a.codeIcon,...s},messages:{viewHtml:e.keys.viewHtml,viewHtmlDialogTitle:e.keys.viewHtmlDialogTitle,viewHtmlCancel:e.keys.viewHtmlCancel,viewHtmlUpdate:e.keys.viewHtmlUpdate},commandName:"SetContent"},n.findAndReplace={props:{icon:"search",svgIcon:a.searchIcon,...s},messages:{findReplaceToolTitle:e.keys.findReplaceToolTitle,findReplaceDialogTitle:e.keys.findReplaceDialogTitle,findReplaceTabFind:e.keys.findReplaceTabFind,findReplaceTabReplace:e.keys.findReplaceTabReplace,findReplaceFindWhat:e.keys.findReplaceFindWhat,findReplaceReplaceWith:e.keys.findReplaceReplaceWith,findReplaceReplace:e.keys.findReplaceReplace,findReplaceReplaceAll:e.keys.findReplaceReplaceAll,findReplaceMatchCase:e.keys.findReplaceMatchCase,findReplaceMatchWord:e.keys.findReplaceMatchWord,findReplaceMatchCyclic:e.keys.findReplaceMatchCyclic,findReplaceUseRegExp:e.keys.findReplaceUseRegExp,findReplacePrevMatch:e.keys.findReplacePrevMatch,findReplaceNextMatch:e.keys.findReplaceNextMatch,findReplaceMatches:e.keys.findReplaceMatches,findReplaceInvalidRegExp:e.keys.findReplaceInvalidRegExp}},n.unlink={...l.link,props:{icon:"unlink",svgIcon:a.unlinkIcon,...s},messages:{title:e.keys.unlink},commandName:"Unlink"},n.undo={command:l.undo,props:{icon:"undo",svgIcon:a.undoIcon,...s},messages:{title:e.keys.undo},commandName:"Undo"},n.redo={command:l.redo,props:{icon:"redo",svgIcon:a.redoIcon,...s},messages:{title:e.keys.redo},commandName:"Redo"},n.fontSize={style:"font-size",defaultItem:{text:e.messages[e.keys.fontSize],value:"",localizationKey:e.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},n.fontName={style:"font-family",defaultItem:{text:e.messages[e.keys.fontName],value:"",localizationKey:e.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},n.formatBlock={defaultItem:{text:e.messages[e.keys.format],value:"",localizationKey:e.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},n.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",svgIcon:a.foregroundColorIcon,view:"palette",title:e.keys.foregroundColor},commandName:"ForeColor"},n.backColor={color:"background-color",colorPickerProps:{icon:"droplet",svgIcon:a.dropletIcon,view:"palette",title:e.keys.backgroundColor},commandName:"BackColor"},n.alignLeft={actions:[...l.alignLeftRules],props:{icon:"align-left",svgIcon:a.alignLeftIcon,...s},messages:{title:e.keys.alignLeft},commandName:"AlignLeft"},n.alignRight={actions:[...l.alignRightRules],props:{icon:"align-right",svgIcon:a.alignRightIcon,...s},messages:{title:e.keys.alignRight},commandName:"AlignRight"},n.alignCenter={actions:[...l.alignCenterRules],props:{icon:"align-center",svgIcon:a.alignCenterIcon,...s},messages:{title:e.keys.alignCenter},commandName:"AlignCenter"},n.alignJustify={actions:[...l.alignJustifyRules],props:{icon:"align-justify",svgIcon:a.alignJustifyIcon,...s},messages:{title:e.keys.alignJustify},commandName:"AlignJustify"},n.alignRemove={actions:[...l.alignRemoveRules],props:{icon:"align-remove",svgIcon:a.alignRemoveIcon,...s},messages:{},commandName:"AlignRemove"},n.indent={actions:l.indentRules.nodes,listsTypes:i,props:{icon:"indent",svgIcon:a.indentIcon,...s},messages:{title:e.keys.indent},commandName:"Indent"},n.outdent={actions:l.outdentRules.nodes,listsTypes:i,props:{icon:"outdent",svgIcon:a.outdentIcon,...s},messages:{title:e.keys.outdent},commandName:"Outdent"},n.orderedList={listType:i.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...s},messages:{title:e.keys.orderedList},commandName:"OrderedList",types:{...i}},n.bulletList={listType:i.bulletList,props:{icon:"list-unordered",svgIcon:a.listUnorderedIcon,...s},messages:{title:e.keys.bulletList},commandName:"UnorderedList",types:{...i}}})(exports.EditorToolsSettings||(exports.EditorToolsSettings={}));
|
package/config/toolsSettings.mjs
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import "@progress/kendo-vue-buttons";
|
|
9
|
-
import { keys as e, messages as
|
|
9
|
+
import { keys as e, messages as i } from "../messages/main.mjs";
|
|
10
10
|
import "@progress/kendo-vue-pdf";
|
|
11
|
-
import { indentRules as o, bold as c, italic as m, underline as r, strikethrough as d, subscript as p, superscript as g, link as
|
|
12
|
-
import { boldIcon as M, italicIcon as z, underlineIcon as W, strikethroughIcon as D, subscriptIcon as B, supscriptIcon as T, linkIcon as P, fileAddIcon as U, tableAddIcon as G, tableRowInsertAboveIcon as J, tableRowInsertBelowIcon as O, tableColumnInsertLeftIcon as K, tableColumnInsertRightIcon as V, tableRowDeleteIcon as j, tableColumnDeleteIcon as q, tableDeleteIcon as Q, cellsMergeIcon as X, cellSplitHorizontallyIcon as Y, printIcon as Z, selectAllIcon as _, filePdfIcon as $, clearCssIcon as S, imageIcon as E, codeIcon as ee, searchIcon as ne, unlinkIcon as ae, undoIcon as le, redoIcon as
|
|
11
|
+
import { indentRules as o, bold as c, italic as m, underline as r, strikethrough as d, subscript as p, superscript as g, link as t, addRowBefore as f, addRowAfter as u, addColumnBefore as I, addColumnAfter as v, deleteRow as R, deleteColumn as y, deleteTable as b, mergeCells as h, splitCell as C, undo as k, redo as N, alignLeftRules as H, alignRightRules as w, alignCenterRules as x, alignJustifyRules as A, alignRemoveRules as F, outdentRules as L } from "@progress/kendo-editor-common";
|
|
12
|
+
import { boldIcon as M, italicIcon as z, underlineIcon as W, strikethroughIcon as D, subscriptIcon as B, supscriptIcon as T, linkIcon as P, fileAddIcon as U, tableAddIcon as G, tableRowInsertAboveIcon as J, tableRowInsertBelowIcon as O, tableColumnInsertLeftIcon as K, tableColumnInsertRightIcon as V, tableRowDeleteIcon as j, tableColumnDeleteIcon as q, tableDeleteIcon as Q, cellsMergeIcon as X, cellSplitHorizontallyIcon as Y, printIcon as Z, selectAllIcon as _, filePdfIcon as $, clearCssIcon as S, imageIcon as E, codeIcon as ee, searchIcon as ne, unlinkIcon as ae, undoIcon as le, redoIcon as ie, foregroundColorIcon as te, dropletIcon as se, alignLeftIcon as oe, alignRightIcon as ce, alignCenterIcon as me, alignJustifyIcon as re, alignRemoveIcon as de, indentIcon as pe, outdentIcon as ge, listOrderedIcon as fe, listUnorderedIcon as ue } from "@progress/kendo-svg-icons";
|
|
13
13
|
const l = { ...o.listsTypes };
|
|
14
14
|
var s;
|
|
15
15
|
((n) => {
|
|
@@ -83,7 +83,7 @@ var s;
|
|
|
83
83
|
},
|
|
84
84
|
commandName: "Superscript"
|
|
85
85
|
}, n.link = {
|
|
86
|
-
...
|
|
86
|
+
...t,
|
|
87
87
|
props: {
|
|
88
88
|
icon: "link",
|
|
89
89
|
svgIcon: P,
|
|
@@ -100,7 +100,7 @@ var s;
|
|
|
100
100
|
},
|
|
101
101
|
commandName: "Link"
|
|
102
102
|
}, n.insertFile = {
|
|
103
|
-
...
|
|
103
|
+
...t,
|
|
104
104
|
props: {
|
|
105
105
|
icon: "file-add",
|
|
106
106
|
svgIcon: U,
|
|
@@ -173,7 +173,7 @@ var s;
|
|
|
173
173
|
},
|
|
174
174
|
commandName: "AddColumnAfter"
|
|
175
175
|
}, n.deleteRow = {
|
|
176
|
-
command:
|
|
176
|
+
command: R,
|
|
177
177
|
props: {
|
|
178
178
|
icon: "table-row-delete",
|
|
179
179
|
svgIcon: j,
|
|
@@ -184,7 +184,7 @@ var s;
|
|
|
184
184
|
},
|
|
185
185
|
commandName: "DeleteRow"
|
|
186
186
|
}, n.deleteColumn = {
|
|
187
|
-
command:
|
|
187
|
+
command: y,
|
|
188
188
|
props: {
|
|
189
189
|
icon: "table-column-delete",
|
|
190
190
|
svgIcon: q,
|
|
@@ -321,10 +321,11 @@ var s;
|
|
|
321
321
|
findReplaceUseRegExp: e.findReplaceUseRegExp,
|
|
322
322
|
findReplacePrevMatch: e.findReplacePrevMatch,
|
|
323
323
|
findReplaceNextMatch: e.findReplaceNextMatch,
|
|
324
|
-
findReplaceMatches: e.findReplaceMatches
|
|
324
|
+
findReplaceMatches: e.findReplaceMatches,
|
|
325
|
+
findReplaceInvalidRegExp: e.findReplaceInvalidRegExp
|
|
325
326
|
}
|
|
326
327
|
}, n.unlink = {
|
|
327
|
-
...
|
|
328
|
+
...t,
|
|
328
329
|
props: {
|
|
329
330
|
icon: "unlink",
|
|
330
331
|
svgIcon: ae,
|
|
@@ -349,7 +350,7 @@ var s;
|
|
|
349
350
|
command: N,
|
|
350
351
|
props: {
|
|
351
352
|
icon: "redo",
|
|
352
|
-
svgIcon:
|
|
353
|
+
svgIcon: ie,
|
|
353
354
|
...a
|
|
354
355
|
},
|
|
355
356
|
messages: {
|
|
@@ -358,7 +359,7 @@ var s;
|
|
|
358
359
|
commandName: "Redo"
|
|
359
360
|
}, n.fontSize = {
|
|
360
361
|
style: "font-size",
|
|
361
|
-
defaultItem: { text:
|
|
362
|
+
defaultItem: { text: i[e.fontSize], value: "", localizationKey: e.fontSize },
|
|
362
363
|
items: [
|
|
363
364
|
{ text: "1 (8pt)", value: "xx-small" },
|
|
364
365
|
{ text: "2 (10pt)", value: "x-small" },
|
|
@@ -371,7 +372,7 @@ var s;
|
|
|
371
372
|
commandName: "FontSize"
|
|
372
373
|
}, n.fontName = {
|
|
373
374
|
style: "font-family",
|
|
374
|
-
defaultItem: { text:
|
|
375
|
+
defaultItem: { text: i[e.fontName], value: "", localizationKey: e.fontName },
|
|
375
376
|
items: [
|
|
376
377
|
{
|
|
377
378
|
text: "Arial",
|
|
@@ -421,7 +422,7 @@ var s;
|
|
|
421
422
|
],
|
|
422
423
|
commandName: "FontName"
|
|
423
424
|
}, n.formatBlock = {
|
|
424
|
-
defaultItem: { text:
|
|
425
|
+
defaultItem: { text: i[e.format], value: "", localizationKey: e.format },
|
|
425
426
|
items: [
|
|
426
427
|
{ text: "Paragraph", value: "p", style: { display: "block", marginLeft: 0 } },
|
|
427
428
|
{ text: "Heading 1", value: "h1", style: { display: "block", fontSize: "2em", marginLeft: 0, fontWeight: "bold" } },
|
|
@@ -436,7 +437,7 @@ var s;
|
|
|
436
437
|
color: "color",
|
|
437
438
|
colorPickerProps: {
|
|
438
439
|
icon: "foreground-color",
|
|
439
|
-
svgIcon:
|
|
440
|
+
svgIcon: te,
|
|
440
441
|
view: "palette",
|
|
441
442
|
title: e.foregroundColor
|
|
442
443
|
},
|
package/dialogs/FindReplace.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),f=require("@progress/kendo-vue-buttons"),m=require("@progress/kendo-svg-icons"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),f=require("@progress/kendo-vue-buttons"),m=require("@progress/kendo-svg-icons"),z=require("@progress/kendo-vue-dialogs"),x=require("@progress/kendo-vue-layout"),K=require("@progress/kendo-vue-intl"),l=require("../messages/main.js"),P=require("../config/toolsSettings.js"),U=require("../tools/utils.js"),r=require("@progress/kendo-editor-common"),$=require("@progress/kendo-vue-common"),H=require("@progress/kendo-vue-labels");function b(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const G=13,J=27,Q=P.EditorToolsSettings.findAndReplace,X=t.defineComponent({name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return Q}},dir:String},inject:{kendoLocalizationService:{default:null}},created(){this._prevMatch=void 0,this.nextMatch=void 0},data(){return{selectedTab:0,searchText:r.selectedLineTextOnly(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout(function(){const e=document.getElementById("findWhatFind");e&&e.focus()},10)},updated(){const e=this.matches||[],s=this.nextMatch,a=this.$props.view;if(this._prevMatch!==s){const c=a.state,o=c.tr,n=[];e.forEach(i=>{n.push({from:i.from,to:i.to,attrs:{class:s&&i.eq(s)?"k-text-selected":"k-text-highlighted"}})}),o.setMeta(r.textHighlightKey,n),o.setSelection(s||r.TextSelection.create(c.doc,c.selection.from)),a.dispatch(o)}},unmounted(){this.$el&&this.$el.remove()},render(){let e,s;const a=K.provideLocalizationService(this),{findReplaceDialogTitle:c,findReplaceTabFind:o,findReplaceTabReplace:n,findReplaceFindWhat:i,findReplaceReplaceWith:d,findReplaceReplace:p,findReplaceReplaceAll:g,findReplaceMatchCase:S,findReplaceMatchWord:N,findReplaceMatchCyclic:v,findReplaceUseRegExp:C,findReplacePrevMatch:V,findReplaceNextMatch:R,findReplaceMatches:y}=this.settings.messages,{matchCase:F,matchWord:E,matchCyclic:q,useRegExp:I,searchText:B,replaceText:_,nextMatch:M,error:k}=this,T=t.createVNode("div",{class:"k-search-options"},[t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-case",checked:F,onChange:this.onMatchCaseChecked},null),t.createVNode("label",{for:"match-case",class:"k-checkbox-label"},[a.toLanguageString(S,l.messages[S])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-whole",checked:E,onChange:this.onMatchWordChecked},null),t.createVNode("label",{for:"match-whole",class:"k-checkbox-label"},[a.toLanguageString(N,l.messages[N])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-cyclic",checked:q,onChange:this.onMatchCyclicChecked},null),t.createVNode("label",{for:"match-cyclic",class:"k-checkbox-label"},[a.toLanguageString(v,l.messages[v])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"regular-expression",checked:I,onChange:this.onUseRegExpChecked},null),t.createVNode("label",{for:"regular-expression",class:"k-checkbox-label"},[a.toLanguageString(C,l.messages[C])])])]),w=function(u){const h=this.$props.dir==="rtl",O=t.createVNode(f.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},{default:()=>[t.createVNode($.Icon,{name:`chevron-${h?"right":"left"}`,icon:h?m.chevronRightIcon:m.chevronLeftIcon},null),a.toLanguageString(V,l.messages[V])]}),D=t.createVNode(f.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},{default:()=>[a.toLanguageString(R,l.messages[R]),t.createVNode($.Icon,{name:`chevron-${h?"left":"right"}`,icon:h?m.chevronLeftIcon:m.chevronRightIcon},null)]});return t.createVNode("div",{class:"k-matches-container"},[O,this.hasMounted&&t.createVNode("span",{ref:u},[this.matchesMessage(a.toLanguageString(y,l.messages[y]))]),D])},L=function(u){return t.createVNode("div",{class:"k-edit-label"},[t.createVNode("label",{ref:u,for:u},[a.toLanguageString(i,l.messages[i])])])},W=function(u){let h;return t.createVNode("div",{class:"k-edit-field"},[t.createVNode("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[t.createVNode("input",{id:u,ref:u,type:"text",class:"k-input-inner",value:B,onInput:this.onSearchChange,onFocus:this.onSearchChange,onKeydown:this.onKeyDown},null)]),k&&t.createVNode(H.Error,null,b(h=a.toLanguageString(k,l.messages[k]))?h:{default:()=>[h]})])},j=t.createVNode("div",{class:"k-edit-label"},[t.createVNode("label",{for:"replaceWith"},[a.toLanguageString(d,l.messages[d])])]),A=t.createVNode("div",{class:"k-edit-field"},[t.createVNode("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[t.createVNode("input",{id:"replaceWith",class:"k-input-inner",type:"text",value:_,onInput:this.onReplaceChange},null)])]);return t.createVNode(z.Window,{title:a.toLanguageString(c,l.messages[c]),onClose:this.onClose,windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:()=>null,maximizeButton:()=>null,dir:this.$props.dir},{default:()=>[t.createVNode(x.TabStrip,{dir:this.$props.dir,selected:this.selectedTab,class:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},{default:()=>[t.createVNode(x.TabStripTab,{title:a.toLanguageString(o,l.messages[o])},{default:()=>[t.createVNode("div",{class:"k-edit-form-container"},[L.call(this,"findWhatFind"),W.call(this,"findWhatFind")]),t.createVNode("div",{class:"k-actions k-hstack k-justify-content-end"},null),T,w.call(this,"findWhatFind")]}),t.createVNode(x.TabStripTab,{title:a.toLanguageString(n,l.messages[n])},{default:()=>[t.createVNode("div",{class:"k-edit-form-container"},[L.call(this,"findWhatReplace"),W.call(this,"findWhatReplace"),j,A]),t.createVNode("div",{class:"k-actions k-hstack k-justify-content-end"},[t.createVNode(f.Button,{disabled:!M,onClick:this.onReplace},b(e=a.toLanguageString(p,l.messages[p]))?e:{default:()=>[e]}),t.createVNode(f.Button,{disabled:!M,onClick:this.onReplaceAll},b(s=a.toLanguageString(g,l.messages[g]))?s:{default:()=>[s]})]),T,w.call(this,"findWhatReplace")]})]})]})},methods:{onTabSelect(e){this.selectedTab=e.selected},onClose(){const e=this.$props.view,s=e.state,a=s.tr.setSelection(r.TextSelection.create(s.doc,s.selection.from,s.selection.to));e.updateState(s.apply(a)),e.focus(),this.$emit("close")},matchesMessage(e){const s=this.matches,a=this.nextMatch;let c=0,o=0;if(s&&a){const n=s.findIndex(i=>i.eq(a));c=n===-1?s.length:n+1,o=s.length}return U.formatString(e,c,o)},onFindNext(){this.onFind()},onFindPrev(){this.onFind(!0)},onFind(e=!1){const s=this.$props.view,{searchText:a,matchCase:c,matchCyclic:o,matchWord:n,useRegExp:i}=this.$data,d={text:a,matchWord:n,matchCase:c,useRegExp:i,backward:e,matchCyclic:o},p=r.find(s.state,d);if(p){const g=s.state.tr.setSelection(p);g.scrollIntoView(),s.updateState(s.state.apply(g)),this._prevMatch=this.nextMatch,this.nextMatch=p,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace(){const e=this.$props.view,s=e.state.selection,{replaceText:a}=this.$data;if(!s.empty){const c=s.from,o=c+a.length,n=r.replace(s,a,e.state.tr);n.setSelection(r.TextSelection.create(n.doc,c,o)),n.scrollIntoView(),e.dispatch(n),this.onFind(),this.setNextState({})}},onReplaceAll(){const e=this.$props.view,{searchText:s,replaceText:a,matchCase:c,matchWord:o,useRegExp:n}=this.$data,i={text:s,matchWord:o,matchCase:c,useRegExp:n},d=r.replaceAll(e.state,a,i);d&&(e.dispatch(d),this.setNextState({}))},onKeyDown(e){e.keyCode===G?this.onFindNext():e.keyCode===J&&this.onClose()},onMatchCaseChecked(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange(e){this.replaceText=e.target.value,this.setNextState()},setNextState(){const e=this.$props.view;if(this.searchText){const s={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},a=e.state.selection;let c=[],o;try{c=r.findAll(e.state.doc,s)}catch(i){i instanceof SyntaxError&&(o=this.settings.messages.findReplaceInvalidRegExp)}const n=!this.searchText&&c[0]||c.find(i=>i.from>=a.from)||this.matchCyclic&&c[0]||void 0;this._prevMatch=this.nextMatch,this.matches=c,this.nextMatch=n,this.error=o}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0,this.error=void 0}}});exports.FindAndReplaceDialog=X;
|