@worktile/theia 2.4.10 → 2.5.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.
- package/bundles/worktile-theia.umd.js +97 -75
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/esm2015/constants/auto-format-rules.js +5 -2
- package/esm2015/constants/code.js +28 -8
- package/esm2015/plugins/code/code.component.js +6 -6
- package/fesm2015/worktile-theia.js +89 -67
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.scss +1 -1
- package/styles/editor.scss +1 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('slate-angular'), require('ngx-tethys/core'), require('is-hotkey'), require('slate'), require('slate-history'), require('marked'), require('@atinc/selene'), require('ngx-tethys/popover'), require('lodash'), require('@angular/cdk/overlay'), require('ngx-tethys/alert'), require('rxjs/operators'), require('ngx-tethys/uploader'), require('rxjs'), require('@angular/platform-browser'), require('ngx-tethys/progress'), require('ngx-tethys/icon'), require('ngx-tethys/nav'), require('ngx-tethys/tooltip'), require('ngx-tethys/input'), require('ng-codemirror'), require('ngx-tethys/notify'), require('ngx-tethys/action-menu'), require('ngx-tethys/switch'), require('ngx-tethys/resizable'), require('is-url'), require('ngx-tethys/button'), require('ngx-tethys/form'), require('ngx-tethys/shared'), require('ngx-tethys'), require('@angular/cdk/coercion'), require('@angular/cdk/portal'), require('ngx-tethys/list'), require('ngx-tethys/autocomplete'), require('ngx-tethys/avatar'), require('ngx-tethys/select')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@worktile/theia', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'slate-angular', 'ngx-tethys/core', 'is-hotkey', 'slate', 'slate-history', 'marked', '@atinc/selene', 'ngx-tethys/popover', 'lodash', '@angular/cdk/overlay', 'ngx-tethys/alert', 'rxjs/operators', 'ngx-tethys/uploader', 'rxjs', '@angular/platform-browser', 'ngx-tethys/progress', 'ngx-tethys/icon', 'ngx-tethys/nav', 'ngx-tethys/tooltip', 'ngx-tethys/input', 'ng-codemirror', 'ngx-tethys/notify', 'ngx-tethys/action-menu', 'ngx-tethys/switch', 'ngx-tethys/resizable', 'is-url', 'ngx-tethys/button', 'ngx-tethys/form', 'ngx-tethys/shared', 'ngx-tethys', '@angular/cdk/coercion', '@angular/cdk/portal', 'ngx-tethys/list', 'ngx-tethys/autocomplete', 'ngx-tethys/avatar', 'ngx-tethys/select'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.worktile = global.worktile || {}, global.worktile.theia = {}), global.ng.core, global.ng.common, global.ng.forms, global.i1, global.core, global.isHotkey, global.slate, global.slateHistory, global.marked, global.selene, global.i1$2, global._lodash, global.ng.cdk.overlay, global.i1$1, global.rxjs.operators, global.uploader, global.rxjs, global.ng.platformBrowser, global.i6, global.i3, global.i3$1, global.i5, global.i5$1, global.i8, global.i1$4, global.i2$1, global.
|
|
5
|
-
})(this, (function (exports, i0, i10, i4, i1, core, isHotkey, slate, slateHistory, marked, selene, i1$2, _lodash, i2, i1$1, operators, uploader, rxjs, i1$3, i6, i3, i3$1, i5, i5$1, i8, i1$4, i2$1,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.worktile = global.worktile || {}, global.worktile.theia = {}), global.ng.core, global.ng.common, global.ng.forms, global.i1, global.core, global.isHotkey, global.slate, global.slateHistory, global.marked, global.selene, global.i1$2, global._lodash, global.ng.cdk.overlay, global.i1$1, global.rxjs.operators, global.uploader, global.rxjs, global.ng.platformBrowser, global.i6, global.i3, global.i3$1, global.i5, global.i5$1, global.i8, global.i1$4, global.i2$1, global.i5$2, global.i9, global.isUrl, global.i1$5, global.i2$2, global.i5$3, global.i1$6, global.ng.cdk.coercion, global.ng.cdk.portal, global.i1$7, global.autocomplete, global.avatar, global.select));
|
|
5
|
+
})(this, (function (exports, i0, i10, i4, i1, core, isHotkey, slate, slateHistory, marked, selene, i1$2, _lodash, i2, i1$1, operators, uploader, rxjs, i1$3, i6, i3, i3$1, i5, i5$1, i8, i1$4, i2$1, i5$2, i9, isUrl, i1$5, i2$2, i5$3, i1$6, coercion, portal, i1$7, autocomplete, avatar, select) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
44
44
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
45
45
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
46
|
-
var
|
|
46
|
+
var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
|
|
47
47
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
48
48
|
var isUrl__default = /*#__PURE__*/_interopDefaultLegacy(isUrl);
|
|
49
49
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
50
50
|
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
51
|
-
var i5__namespace$
|
|
51
|
+
var i5__namespace$3 = /*#__PURE__*/_interopNamespace(i5$3);
|
|
52
52
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
53
53
|
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
54
54
|
|
|
@@ -528,11 +528,22 @@
|
|
|
528
528
|
showName: 'Plain Text',
|
|
529
529
|
value: ''
|
|
530
530
|
},
|
|
531
|
+
{
|
|
532
|
+
showName: 'C',
|
|
533
|
+
value: 'text/x-csrc'
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
showName: 'C#',
|
|
537
|
+
value: 'text/x-csharp'
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
showName: 'C++',
|
|
541
|
+
value: 'text/x-c++src'
|
|
542
|
+
},
|
|
531
543
|
{
|
|
532
544
|
showName: 'C-like',
|
|
533
545
|
value: 'clike'
|
|
534
546
|
},
|
|
535
|
-
DEFAULT_LANGUAGE,
|
|
536
547
|
{
|
|
537
548
|
showName: 'CSS',
|
|
538
549
|
value: 'css'
|
|
@@ -553,6 +564,15 @@
|
|
|
553
564
|
showName: 'Go',
|
|
554
565
|
value: 'go'
|
|
555
566
|
},
|
|
567
|
+
{
|
|
568
|
+
showName: 'HTML',
|
|
569
|
+
value: 'htmlmixed'
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
showName: 'Java',
|
|
573
|
+
value: 'text/x-java'
|
|
574
|
+
},
|
|
575
|
+
DEFAULT_LANGUAGE,
|
|
556
576
|
{
|
|
557
577
|
showName: 'Markdown',
|
|
558
578
|
value: 'markdown'
|
|
@@ -561,14 +581,14 @@
|
|
|
561
581
|
showName: 'Nginx',
|
|
562
582
|
value: 'nginx'
|
|
563
583
|
},
|
|
564
|
-
{
|
|
565
|
-
showName: 'PHP',
|
|
566
|
-
value: 'php'
|
|
567
|
-
},
|
|
568
584
|
{
|
|
569
585
|
showName: 'Python',
|
|
570
586
|
value: 'python'
|
|
571
587
|
},
|
|
588
|
+
{
|
|
589
|
+
showName: 'PHP',
|
|
590
|
+
value: 'php'
|
|
591
|
+
},
|
|
572
592
|
{
|
|
573
593
|
showName: 'Shell',
|
|
574
594
|
value: 'shell'
|
|
@@ -582,8 +602,8 @@
|
|
|
582
602
|
value: 'swift'
|
|
583
603
|
},
|
|
584
604
|
{
|
|
585
|
-
showName: '
|
|
586
|
-
value: '
|
|
605
|
+
showName: 'TypeScript',
|
|
606
|
+
value: 'text/typescript'
|
|
587
607
|
}
|
|
588
608
|
];
|
|
589
609
|
var CODEMIRROR_PADDING_TOP = 10;
|
|
@@ -4760,6 +4780,62 @@
|
|
|
4760
4780
|
}
|
|
4761
4781
|
};
|
|
4762
4782
|
|
|
4783
|
+
var CodeEditor = {
|
|
4784
|
+
setCodeAttribute: function (editor, element, value) {
|
|
4785
|
+
var at = i1.AngularEditor.findPath(editor, element);
|
|
4786
|
+
slate.Transforms.setNodes(editor, value, {
|
|
4787
|
+
at: at
|
|
4788
|
+
});
|
|
4789
|
+
},
|
|
4790
|
+
insertCode: function (editor) {
|
|
4791
|
+
var isSelectContent = slate.Editor.string(editor, editor.selection);
|
|
4792
|
+
var _a = __read(slate.Range.edges(editor.selection), 2), startPoint = _a[0], endPoint = _a[1];
|
|
4793
|
+
var elementEntryIterator = slate.Node.elements(editor, {
|
|
4794
|
+
from: startPoint.path,
|
|
4795
|
+
to: endPoint.path,
|
|
4796
|
+
pass: function (_a) {
|
|
4797
|
+
var _b = __read(_a, 2), node = _b[0], path = _b[1];
|
|
4798
|
+
return slate.Editor.isBlock(editor, node);
|
|
4799
|
+
}
|
|
4800
|
+
});
|
|
4801
|
+
var elementEntrys = Array.from(elementEntryIterator);
|
|
4802
|
+
var isAllParagraph = elementEntrys.every(function (item) { return item[0].type === exports.ElementKinds.paragraph; });
|
|
4803
|
+
if (isSelectContent && editor.selection.anchor.path.length === 2 && isAllParagraph) {
|
|
4804
|
+
var content = elementEntrys.reduce(function (content, _a, index) {
|
|
4805
|
+
var _b = __read(_a, 2), element = _b[0], path = _b[1];
|
|
4806
|
+
var text = slate.Node.string(element);
|
|
4807
|
+
return content + (elementEntrys.length - 1 === index ? "" + text : text + "\n");
|
|
4808
|
+
}, '');
|
|
4809
|
+
var codeElement_1 = {
|
|
4810
|
+
type: exports.ElementKinds.code,
|
|
4811
|
+
content: content,
|
|
4812
|
+
language: DEFAULT_LANGUAGE.value,
|
|
4813
|
+
children: [{ text: '' }]
|
|
4814
|
+
};
|
|
4815
|
+
slate.Editor.withoutNormalizing(editor, function () {
|
|
4816
|
+
var lastPath = elementEntrys[elementEntrys.length - 1][1];
|
|
4817
|
+
slate.Transforms.insertNodes(editor, codeElement_1, { at: slate.Path.next(lastPath) });
|
|
4818
|
+
slate.Transforms.select(editor, slate.Path.next(lastPath));
|
|
4819
|
+
slate.Transforms.removeNodes(editor, {
|
|
4820
|
+
at: {
|
|
4821
|
+
anchor: slate.Editor.start(editor, elementEntrys[0][1]),
|
|
4822
|
+
focus: slate.Editor.end(editor, lastPath)
|
|
4823
|
+
}
|
|
4824
|
+
});
|
|
4825
|
+
});
|
|
4826
|
+
}
|
|
4827
|
+
else {
|
|
4828
|
+
var codeElement = {
|
|
4829
|
+
type: exports.ElementKinds.code,
|
|
4830
|
+
content: '',
|
|
4831
|
+
language: DEFAULT_LANGUAGE.value,
|
|
4832
|
+
children: [{ text: '' }]
|
|
4833
|
+
};
|
|
4834
|
+
insertElement(editor, codeElement);
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
};
|
|
4838
|
+
|
|
4763
4839
|
var defaultAutoFormatRules = [
|
|
4764
4840
|
{
|
|
4765
4841
|
type: exports.ElementKinds.heading_1,
|
|
@@ -4852,7 +4928,9 @@
|
|
|
4852
4928
|
{
|
|
4853
4929
|
type: exports.ElementKinds.code,
|
|
4854
4930
|
markup: '```',
|
|
4855
|
-
|
|
4931
|
+
format: function (editor) {
|
|
4932
|
+
CodeEditor.insertCode(editor);
|
|
4933
|
+
}
|
|
4856
4934
|
},
|
|
4857
4935
|
{
|
|
4858
4936
|
type: exports.ElementKinds.listItem,
|
|
@@ -7118,62 +7196,6 @@
|
|
|
7118
7196
|
return editor;
|
|
7119
7197
|
};
|
|
7120
7198
|
|
|
7121
|
-
var CodeEditor = {
|
|
7122
|
-
setCodeAttribute: function (editor, element, value) {
|
|
7123
|
-
var at = i1.AngularEditor.findPath(editor, element);
|
|
7124
|
-
slate.Transforms.setNodes(editor, value, {
|
|
7125
|
-
at: at
|
|
7126
|
-
});
|
|
7127
|
-
},
|
|
7128
|
-
insertCode: function (editor) {
|
|
7129
|
-
var isSelectContent = slate.Editor.string(editor, editor.selection);
|
|
7130
|
-
var _a = __read(slate.Range.edges(editor.selection), 2), startPoint = _a[0], endPoint = _a[1];
|
|
7131
|
-
var elementEntryIterator = slate.Node.elements(editor, {
|
|
7132
|
-
from: startPoint.path,
|
|
7133
|
-
to: endPoint.path,
|
|
7134
|
-
pass: function (_a) {
|
|
7135
|
-
var _b = __read(_a, 2), node = _b[0], path = _b[1];
|
|
7136
|
-
return slate.Editor.isBlock(editor, node);
|
|
7137
|
-
}
|
|
7138
|
-
});
|
|
7139
|
-
var elementEntrys = Array.from(elementEntryIterator);
|
|
7140
|
-
var isAllParagraph = elementEntrys.every(function (item) { return item[0].type === exports.ElementKinds.paragraph; });
|
|
7141
|
-
if (isSelectContent && editor.selection.anchor.path.length === 2 && isAllParagraph) {
|
|
7142
|
-
var content = elementEntrys.reduce(function (content, _a, index) {
|
|
7143
|
-
var _b = __read(_a, 2), element = _b[0], path = _b[1];
|
|
7144
|
-
var text = slate.Node.string(element);
|
|
7145
|
-
return content + (elementEntrys.length - 1 === index ? "" + text : text + "\n");
|
|
7146
|
-
}, '');
|
|
7147
|
-
var codeElement_1 = {
|
|
7148
|
-
type: exports.ElementKinds.code,
|
|
7149
|
-
content: content,
|
|
7150
|
-
language: DEFAULT_LANGUAGE.value,
|
|
7151
|
-
children: [{ text: '' }]
|
|
7152
|
-
};
|
|
7153
|
-
slate.Editor.withoutNormalizing(editor, function () {
|
|
7154
|
-
var lastPath = elementEntrys[elementEntrys.length - 1][1];
|
|
7155
|
-
slate.Transforms.insertNodes(editor, codeElement_1, { at: slate.Path.next(lastPath) });
|
|
7156
|
-
slate.Transforms.select(editor, slate.Path.next(lastPath));
|
|
7157
|
-
slate.Transforms.removeNodes(editor, {
|
|
7158
|
-
at: {
|
|
7159
|
-
anchor: slate.Editor.start(editor, elementEntrys[0][1]),
|
|
7160
|
-
focus: slate.Editor.end(editor, lastPath)
|
|
7161
|
-
}
|
|
7162
|
-
});
|
|
7163
|
-
});
|
|
7164
|
-
}
|
|
7165
|
-
else {
|
|
7166
|
-
var codeElement = {
|
|
7167
|
-
type: exports.ElementKinds.code,
|
|
7168
|
-
content: '',
|
|
7169
|
-
language: DEFAULT_LANGUAGE.value,
|
|
7170
|
-
children: [{ text: '' }]
|
|
7171
|
-
};
|
|
7172
|
-
insertElement(editor, codeElement);
|
|
7173
|
-
}
|
|
7174
|
-
}
|
|
7175
|
-
};
|
|
7176
|
-
|
|
7177
7199
|
var CodeOptions = [
|
|
7178
7200
|
{
|
|
7179
7201
|
key: exports.ElementKinds.code,
|
|
@@ -7564,7 +7586,7 @@
|
|
|
7564
7586
|
return TheCodeComponent;
|
|
7565
7587
|
}(TheBaseElementComponent));
|
|
7566
7588
|
TheCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheCodeComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.ThyNotifyService }, { token: TheContextService }, { token: i0__namespace.NgZone }, { token: THE_MODE_TOKEN }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7567
|
-
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheCodeComponent, selector: "div[theCode]", viewQueries: [{ propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read: i8.CodeMirrorComponent }], usesInheritance: true, ngImport: i0__namespace, template: "<div contenteditable=\"false\" class=\"the-code-block-operation\" *ngIf=\"isCollapsed && codemirror && !options.readOnly\">\n <thy-icon-nav>\n <the-toolbar-dropdown [menus]=\"menus\" [item]=\"actives\" [itemMousedownHandle]=\"onChangeLangulage\"> </the-toolbar-dropdown>\n <
|
|
7589
|
+
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheCodeComponent, selector: "div[theCode]", viewQueries: [{ propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read: i8.CodeMirrorComponent }], usesInheritance: true, ngImport: i0__namespace, template: "<div contenteditable=\"false\" class=\"the-code-block-operation\" *ngIf=\"isCollapsed && codemirror && !options.readOnly\">\n <thy-icon-nav>\n <the-toolbar-dropdown [menus]=\"menus\" [item]=\"actives\" [itemMousedownHandle]=\"onChangeLangulage\"> </the-toolbar-dropdown>\n <span class=\"auto-wrap d-flex align-items-center\">\n <span>\u81EA\u52A8\u6362\u884C</span>\n <thy-switch\n class=\"auto-wrap-btn d-flex\"\n [(ngModel)]=\"options.lineWrapping\"\n (ngModelChange)=\"onChangeWrap($event)\"\n thySize=\"sm\"\n ></thy-switch>\n </span>\n <a\n href=\"javascript:;\"\n thyIconNavLink\n thyIconNavLinkIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <nav-split-line [mode]=\"ToolbarItemMode.vertical\"></nav-split-line>\n <a\n href=\"javascript:;\"\n thyIconNavLink\n thyIconNavLinkIcon=\"trash\"\n thyTooltip=\"\u5220\u9664\"\n class=\"remove-link\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"onDelete($event)\"\n ></a>\n </thy-icon-nav>\n</div>\n\n<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n\n<!-- \u53EA\u8BFB\u6A21\u5F0F\u4E0BCodeMirror-sizer\u9AD8\u5EA6\u6BD4\u7F16\u8F91\u6A21\u5F0F\u4E0B\u591A2px\uFF0C\u8BBE\u7F6EthyMinHeight\u4E3A46px\u9632\u6B62\u62D6\u62FD\u5230\u6700\u5C0F\u9AD8\u5EA6\u65F6\u53EA\u8BFB\u6A21\u5F0F\u4E0B\u51FA\u73B0\u6EDA\u52A8\u6761 -->\n<div\n thyResizable\n [thyMinHeight]=\"46\"\n [thyBounds]=\"resizeBounds\"\n [style.height.px]=\"resizeHeight\"\n (thyResize)=\"onResize($event)\"\n (thyResizeEnd)=\"onEndResize()\"\n class=\"resize-code-container\"\n [ngClass]=\"{ focus: isCollapsed, readonly: options.readOnly, active: isHightLight && isCollapsed }\"\n>\n <ng-codemirror\n *ngIf=\"startRenderCodemirror\"\n #codemirror\n contenteditable=\"false\"\n class=\"ng-codemirror-wrapper\"\n [ngStyle]=\"{ maxHeight: maxHeight > 0 ? maxHeight + 'px' : 'auto' }\"\n [options]=\"options\"\n [ngModel]=\"code\"\n [delayRefreshTime]=\"300\"\n (ngModelChange)=\"codeChange($event)\"\n (focusChange)=\"focusChange($event)\"\n [autoMaxHeight]=\"maxHeight\"\n >\n </ng-codemirror>\n <thy-resize-handle thyDirection=\"bottom\" class=\"code-resize-icon\" *ngIf=\"isCollapsed && !options.readOnly\"></thy-resize-handle>\n</div>\n", components: [{ type: i3__namespace$1.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: ["toolbarItem", "menus", "mode", "item", "itemMousedownHandle"] }, { type: i5__namespace$2.ThySwitchComponent, selector: "thy-switch", inputs: ["thyType", "thySize", "thyDisabled"], outputs: ["thyChange"] }, { type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }, { type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i8__namespace.CodeMirrorComponent, selector: "ng-codemirror, [ngCodeMirror]", inputs: ["autoMaxHeight", "delayRefreshTime", "options"], outputs: ["focusChange"] }, { type: i9__namespace.ThyResizeHandleComponent, selector: "thy-resize-handle, [thy-resize-handle]", inputs: ["thyDirection"], outputs: ["thyMouseDown"], exportAs: ["thyResizeHandle"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i9__namespace.ThyResizableDirective, selector: "[thyResizable]", inputs: ["thyBounds", "thyMaxHeight", "thyMaxWidth", "thyMinHeight", "thyMinWidth", "thyGridColumnCount", "thyMaxColumn", "thyMinColumn", "thyLockAspectRatio", "thyPreview", "thyDisabled"], outputs: ["thyResize", "thyResizeEnd", "thyResizeStart"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
7568
7590
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheCodeComponent, decorators: [{
|
|
7569
7591
|
type: i0.Component,
|
|
7570
7592
|
args: [{
|
|
@@ -7793,7 +7815,7 @@
|
|
|
7793
7815
|
return TheLinkEditComponent;
|
|
7794
7816
|
}());
|
|
7795
7817
|
TheLinkEditComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheLinkEditComponent, deps: [{ token: i1__namespace$3.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7796
|
-
TheLinkEditComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheLinkEditComponent, selector: "the-link-edit", inputs: { tag: "tag", node: "node", link: "link", text: "text", originSelection: "originSelection" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class": "this.className" } }, ngImport: i0__namespace, template: "<form\n thyForm\n #linkForm=\"thyForm\"\n [thyFormValidatorConfig]=\"validatorConfig\"\n name=\"linkForm\"\n>\n <thy-form-group thyLabelText=\"\u6587\u672C\">\n <input\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u6587\u672C\"\n required\n name=\"text\"\n [(ngModel)]=\"text\"\n thyAutofocus\n type=\"text\"\n />\n </thy-form-group>\n <thy-form-group thyLabelText=\"\u94FE\u63A5\">\n <input\n name=\"link\"\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u94FE\u63A5\"\n required\n type=\"text\"\n #linkControl=\"ngModel\"\n [(ngModel)]=\"link\"\n />\n </thy-form-group>\n <thy-form-group-footer>\n <div class=\"btn-pair\">\n <button\n thyButton=\"link-secondary\"\n thySize=\"sm\"\n (click)=\"closePopover()\"\n >\u53D6\u6D88</button>\n <button\n thyButton=\"primary-square\"\n thySize=\"sm\"\n (thyFormSubmit)=\"applyLink(linkForm)\"\n >\u5E94\u7528</button>\n </div>\n </thy-form-group-footer>\n</form>\n", components: [{ type: i2__namespace$2.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { type: i2__namespace$2.ThyFormGroupFooterComponent, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { type: i1__namespace$5.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thySquare", "thyBlock"] }], directives: [{ type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { type: i5__namespace$
|
|
7818
|
+
TheLinkEditComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheLinkEditComponent, selector: "the-link-edit", inputs: { tag: "tag", node: "node", link: "link", text: "text", originSelection: "originSelection" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class": "this.className" } }, ngImport: i0__namespace, template: "<form\n thyForm\n #linkForm=\"thyForm\"\n [thyFormValidatorConfig]=\"validatorConfig\"\n name=\"linkForm\"\n>\n <thy-form-group thyLabelText=\"\u6587\u672C\">\n <input\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u6587\u672C\"\n required\n name=\"text\"\n [(ngModel)]=\"text\"\n thyAutofocus\n type=\"text\"\n />\n </thy-form-group>\n <thy-form-group thyLabelText=\"\u94FE\u63A5\">\n <input\n name=\"link\"\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u94FE\u63A5\"\n required\n type=\"text\"\n #linkControl=\"ngModel\"\n [(ngModel)]=\"link\"\n />\n </thy-form-group>\n <thy-form-group-footer>\n <div class=\"btn-pair\">\n <button\n thyButton=\"link-secondary\"\n thySize=\"sm\"\n (click)=\"closePopover()\"\n >\u53D6\u6D88</button>\n <button\n thyButton=\"primary-square\"\n thySize=\"sm\"\n (thyFormSubmit)=\"applyLink(linkForm)\"\n >\u5E94\u7528</button>\n </div>\n </thy-form-group-footer>\n</form>\n", components: [{ type: i2__namespace$2.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { type: i2__namespace$2.ThyFormGroupFooterComponent, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { type: i1__namespace$5.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thySquare", "thyBlock"] }], directives: [{ type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { type: i5__namespace$3.ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutoSelect", "thyAutofocus"] }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5__namespace$1.ThyInputDirective, selector: "[thyInput]", inputs: ["thySize", "thyAutocomplete"] }, { type: i4__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace$2.ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }] });
|
|
7797
7819
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheLinkEditComponent, decorators: [{
|
|
7798
7820
|
type: i0.Component,
|
|
7799
7821
|
args: [{
|
|
@@ -12255,7 +12277,7 @@
|
|
|
12255
12277
|
return TheQuickToolbarComponent;
|
|
12256
12278
|
}(core.mixinUnsubscribe(core.MixinBase)));
|
|
12257
12279
|
TheQuickToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12258
|
-
TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()", "document: keydown.escape": "handleEsc()" } }, usesInheritance: true, ngImport: i0__namespace, template: "<thy-selection-list\n class=\"the-quick-toolbar\"\n [thyBindKeyEventContainer]=\"editorElement\"\n (thySelectionChange)=\"selectionChange($event)\"\n [thyMultiple]=\"false\"\n>\n <ng-container *ngFor=\"let item of quickToolbarItems\">\n <ng-container *ngIf=\"item.key !== ToolbarActionTypes.split; else splitLine\">\n <thy-list-option [thyValue]=\"item?.key\" (mousedown)=\"stopPropagation($event)\">\n <the-toolbar-item [editor]=\"editor\" [item]=\"item\" [itemMode]=\"ToolbarItemMode.vertical\"></the-toolbar-item>\n </thy-list-option>\n </ng-container>\n </ng-container>\n</thy-selection-list>\n\n<ng-template #splitLine>\n <nav-split-line [mode]=\"ToolbarItemMode.horizontal\"></nav-split-line>\n</ng-template>\n", components: [{ type: i1__namespace$7.ThySelectionListComponent, selector: "thy-selection-list,[thy-selection-list]", inputs: ["thyMultiple", "thyBindKeyEventContainer", "thyScrollContainer", "thyBeforeKeydown", "thyUniqueKey", "thyCompareWith", "thyLayout", "thyAutoActiveFirstItem", "thySize", "thySpaceKeyEnabled"], outputs: ["thySelectionChange"] }, { type: i5__namespace$
|
|
12280
|
+
TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()", "document: keydown.escape": "handleEsc()" } }, usesInheritance: true, ngImport: i0__namespace, template: "<thy-selection-list\n class=\"the-quick-toolbar\"\n [thyBindKeyEventContainer]=\"editorElement\"\n (thySelectionChange)=\"selectionChange($event)\"\n [thyMultiple]=\"false\"\n>\n <ng-container *ngFor=\"let item of quickToolbarItems\">\n <ng-container *ngIf=\"item.key !== ToolbarActionTypes.split; else splitLine\">\n <thy-list-option [thyValue]=\"item?.key\" (mousedown)=\"stopPropagation($event)\">\n <the-toolbar-item [editor]=\"editor\" [item]=\"item\" [itemMode]=\"ToolbarItemMode.vertical\"></the-toolbar-item>\n </thy-list-option>\n </ng-container>\n </ng-container>\n</thy-selection-list>\n\n<ng-template #splitLine>\n <nav-split-line [mode]=\"ToolbarItemMode.horizontal\"></nav-split-line>\n</ng-template>\n", components: [{ type: i1__namespace$7.ThySelectionListComponent, selector: "thy-selection-list,[thy-selection-list]", inputs: ["thyMultiple", "thyBindKeyEventContainer", "thyScrollContainer", "thyBeforeKeydown", "thyUniqueKey", "thyCompareWith", "thyLayout", "thyAutoActiveFirstItem", "thySize", "thySpaceKeyEnabled"], outputs: ["thySelectionChange"] }, { type: i5__namespace$3.ThyListOptionComponent, selector: "thy-list-option,[thy-list-option]", inputs: ["id", "thyValue", "thyDisabled"] }, { type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: ["editor", "item", "itemMode"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12259
12281
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
|
|
12260
12282
|
type: i0.Component,
|
|
12261
12283
|
args: [{
|
|
@@ -14248,7 +14270,7 @@
|
|
|
14248
14270
|
avatar.ThyAvatarModule,
|
|
14249
14271
|
i3$1.ThyNavModule,
|
|
14250
14272
|
i2$2.ThyFormModule,
|
|
14251
|
-
i5$
|
|
14273
|
+
i5$3.ThySharedModule,
|
|
14252
14274
|
i1$7.ThyListModule,
|
|
14253
14275
|
i5.ThyTooltipModule,
|
|
14254
14276
|
i6.ThyProgressModule,
|
|
@@ -14260,7 +14282,7 @@
|
|
|
14260
14282
|
i1$4.ThyNotifyModule,
|
|
14261
14283
|
i1$1.ThyAlertModule,
|
|
14262
14284
|
i9.ThyResizableModule,
|
|
14263
|
-
|
|
14285
|
+
i5$2.ThySwitchModule
|
|
14264
14286
|
];
|
|
14265
14287
|
var COMPONENTS = [
|
|
14266
14288
|
TheToolbarComponent,
|
|
@@ -14349,7 +14371,7 @@
|
|
|
14349
14371
|
avatar.ThyAvatarModule,
|
|
14350
14372
|
i3$1.ThyNavModule,
|
|
14351
14373
|
i2$2.ThyFormModule,
|
|
14352
|
-
i5$
|
|
14374
|
+
i5$3.ThySharedModule,
|
|
14353
14375
|
i1$7.ThyListModule,
|
|
14354
14376
|
i5.ThyTooltipModule,
|
|
14355
14377
|
i6.ThyProgressModule,
|
|
@@ -14361,7 +14383,7 @@
|
|
|
14361
14383
|
i1$4.ThyNotifyModule,
|
|
14362
14384
|
i1$1.ThyAlertModule,
|
|
14363
14385
|
i9.ThyResizableModule,
|
|
14364
|
-
|
|
14386
|
+
i5$2.ThySwitchModule, i8.CodemirrorModule, TheColumnSizeModule], exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent] });
|
|
14365
14387
|
TheEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheEditorModule, providers: [
|
|
14366
14388
|
{
|
|
14367
14389
|
provide: TheToolbarGroupToken,
|