@worktile/theia 1.2.15 → 1.2.20
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 +457 -167
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/constants/code.d.ts +3 -3
- package/constants/node-types.d.ts +2 -1
- package/custom-types.d.ts +3 -1
- package/editor.module.d.ts +43 -39
- package/esm2015/components/text/text.component.js +7 -2
- package/esm2015/constants/code.js +2 -2
- package/esm2015/constants/node-types.js +4 -2
- package/esm2015/constants/toolbar.js +2 -1
- package/esm2015/custom-types.js +1 -1
- package/esm2015/editor.component.js +1 -1
- package/esm2015/editor.module.js +14 -5
- package/esm2015/plugins/code/code.component.js +88 -34
- package/esm2015/plugins/code/code.editor.js +3 -9
- package/esm2015/plugins/common/block-card.plugin.js +51 -5
- package/esm2015/plugins/font-size/options.js +11 -0
- package/esm2015/plugins/font-size/toolbar-item.component.js +129 -0
- package/esm2015/plugins/index.js +3 -1
- package/esm2015/plugins/placeholder/placeholder.component.js +4 -3
- package/esm2015/plugins/table/table.editor.js +10 -2
- package/esm2015/plugins/table/table.plugin.js +53 -19
- package/esm2015/plugins/table/utils/calc-span.js +2 -2
- package/esm2015/plugins/table/utils/normalize-table.js +3 -3
- package/esm2015/plugins/table/utils/table-position.js +5 -2
- package/esm2015/queries/is-empty-content.js +2 -2
- package/esm2015/queries/is-empty-paragraph.js +6 -2
- package/fesm2015/worktile-theia.js +415 -133
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.d.ts +20 -5
- package/plugins/code/code.component.scss +46 -7
- package/plugins/code/code.editor.d.ts +3 -2
- package/plugins/font-size/options.d.ts +3 -0
- package/plugins/font-size/toolbar-item.component.d.ts +35 -0
- package/plugins/font-size/toolbar-item.component.scss +24 -0
- package/plugins/table/table.editor.d.ts +2 -0
- package/plugins/table/utils/calc-span.d.ts +1 -1
- package/queries/get-selection-marks.d.ts +1 -0
- package/styles/editor.scss +6 -0
- package/styles/index.scss +1 -0
- package/styles/typo.scss +8 -23
- package/transforms/set-marks.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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('lodash'), require('marked'), require('@atinc/selene'), require('ngx-tethys/popover'), require('@angular/cdk/overlay'), require('ngx-tethys/alert'), require('rxjs/operators'), require('ngx-tethys/uploader'), require('@angular/platform-browser'), require('rxjs'), require('ngx-tethys/progress'), require('ngx-tethys/icon'), require('ngx-tethys/input'), require('ngx-tethys/nav'), require('ngx-tethys/tooltip'), require('ng-codemirror'), require('ngx-tethys/notify'), require('ngx-tethys/action-menu'), 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
|
-
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', 'lodash', 'marked', '@atinc/selene', 'ngx-tethys/popover', '@angular/cdk/overlay', 'ngx-tethys/alert', 'rxjs/operators', 'ngx-tethys/uploader', '@angular/platform-browser', 'rxjs', 'ngx-tethys/progress', 'ngx-tethys/icon', 'ngx-tethys/input', 'ngx-tethys/nav', 'ngx-tethys/tooltip', 'ng-codemirror', 'ngx-tethys/notify', 'ngx-tethys/action-menu', '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._lodash, global.marked, global.selene, global.i1$2, global.ng.cdk.overlay, global.i1$1, global.rxjs.operators, global.uploader, global.ng.platformBrowser, global.rxjs, global.i4, global.i4$1, global.i5, global.
|
|
5
|
-
})(this, (function (exports, i0, i6, i4$2, i1, core, isHotkey, slate, slateHistory, _lodash, marked, selene, i1$2, i2, i1$1, operators, uploader, i1$3, rxjs, i4, i4$1, i5,
|
|
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('lodash'), require('marked'), require('@atinc/selene'), require('ngx-tethys/popover'), require('@angular/cdk/overlay'), require('ngx-tethys/alert'), require('rxjs/operators'), require('ngx-tethys/uploader'), require('@angular/platform-browser'), require('rxjs'), require('ngx-tethys/progress'), require('ngx-tethys/icon'), require('ngx-tethys/input'), require('ngx-tethys/nav'), require('ngx-tethys/tooltip'), 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
|
+
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', 'lodash', 'marked', '@atinc/selene', 'ngx-tethys/popover', '@angular/cdk/overlay', 'ngx-tethys/alert', 'rxjs/operators', 'ngx-tethys/uploader', '@angular/platform-browser', 'rxjs', 'ngx-tethys/progress', 'ngx-tethys/icon', 'ngx-tethys/input', 'ngx-tethys/nav', 'ngx-tethys/tooltip', '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._lodash, global.marked, global.selene, global.i1$2, global.ng.cdk.overlay, global.i1$1, global.rxjs.operators, global.uploader, global.ng.platformBrowser, global.rxjs, global.i4, global.i4$1, global.i5, global.i3, global.i5$1, global.i8, global.i1$4, global.i5$2, global.i6$1, global.i9, global.isUrl, global.i1$5, global.i2$1, global.i5$3, global.i1$6, global.ng.cdk.coercion, global.ng.cdk.portal, global.i2$2, global.autocomplete, global.avatar, global.select));
|
|
5
|
+
})(this, (function (exports, i0, i6, i4$2, i1, core, isHotkey, slate, slateHistory, _lodash, marked, selene, i1$2, i2, i1$1, operators, uploader, i1$3, rxjs, i4, i4$1, i5, i3, i5$1, i8, i1$4, i5$2, i6$1, i9, isUrl, i1$5, i2$1, i5$3, i1$6, coercion, portal, i2$2, 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
|
|
|
@@ -32,23 +32,25 @@
|
|
|
32
32
|
var _lodash__namespace = /*#__PURE__*/_interopNamespace(_lodash);
|
|
33
33
|
var marked__default = /*#__PURE__*/_interopDefaultLegacy(marked);
|
|
34
34
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
35
|
-
var i2__namespace
|
|
35
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
36
36
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
37
37
|
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
38
38
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
39
39
|
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
40
40
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
41
|
-
var
|
|
42
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
43
|
-
var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
|
|
44
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
41
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
45
42
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
43
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
44
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
45
|
+
var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
|
|
46
|
+
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
47
|
+
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
46
48
|
var isUrl__default = /*#__PURE__*/_interopDefaultLegacy(isUrl);
|
|
47
49
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
48
|
-
var i2__namespace$
|
|
50
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
49
51
|
var i5__namespace$3 = /*#__PURE__*/_interopNamespace(i5$3);
|
|
50
52
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
51
|
-
var i2__namespace$
|
|
53
|
+
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
52
54
|
|
|
53
55
|
/*! *****************************************************************************
|
|
54
56
|
Copyright (c) Microsoft Corporation.
|
|
@@ -429,6 +431,7 @@
|
|
|
429
431
|
MarkTypes["color"] = "color";
|
|
430
432
|
MarkTypes["backgroundColor"] = "background-color";
|
|
431
433
|
MarkTypes["codeLine"] = "code-line";
|
|
434
|
+
MarkTypes["fontSize"] = "font-size";
|
|
432
435
|
})(exports.MarkTypes || (exports.MarkTypes = {}));
|
|
433
436
|
exports.ToolbarActionTypes = void 0;
|
|
434
437
|
(function (ToolbarActionTypes) {
|
|
@@ -457,7 +460,8 @@
|
|
|
457
460
|
exports.MarkTypes.color,
|
|
458
461
|
exports.MarkTypes.italic,
|
|
459
462
|
exports.MarkTypes.strike,
|
|
460
|
-
exports.MarkTypes.underline
|
|
463
|
+
exports.MarkTypes.underline,
|
|
464
|
+
exports.MarkTypes.fontSize
|
|
461
465
|
];
|
|
462
466
|
var THE_INLINE_TOOLBAR_TYPES = [exports.ElementKinds.default, exports.ElementKinds.listItem, exports.ElementKinds.checkItem];
|
|
463
467
|
var STANDARD_HEADING_TYPES = [
|
|
@@ -487,6 +491,7 @@
|
|
|
487
491
|
})(exports.ToolbarItemMode || (exports.ToolbarItemMode = {}));
|
|
488
492
|
var DefaultGlobalToolbarDefinition = [
|
|
489
493
|
exports.ElementKinds.headingList,
|
|
494
|
+
exports.MarkTypes.fontSize,
|
|
490
495
|
exports.ToolbarActionTypes.split,
|
|
491
496
|
exports.MarkTypes.bold,
|
|
492
497
|
exports.MarkTypes.italic,
|
|
@@ -620,10 +625,10 @@
|
|
|
620
625
|
default: 'default',
|
|
621
626
|
print: 'print'
|
|
622
627
|
};
|
|
623
|
-
var
|
|
624
|
-
function
|
|
628
|
+
var TheCodeConfig = /** @class */ (function () {
|
|
629
|
+
function TheCodeConfig() {
|
|
625
630
|
}
|
|
626
|
-
return
|
|
631
|
+
return TheCodeConfig;
|
|
627
632
|
}());
|
|
628
633
|
var THE_CODE_MODE_TOKEN = new i0.InjectionToken('the-code-mode');
|
|
629
634
|
var THE_CODE_MODE_PROVIDER = {
|
|
@@ -640,7 +645,7 @@
|
|
|
640
645
|
var _this = _super.call(this, elementRef, cdr) || this;
|
|
641
646
|
_this.elementRef = elementRef;
|
|
642
647
|
_this.renderer2 = renderer2;
|
|
643
|
-
_this.excludes = ['color', 'background-color', 'text'];
|
|
648
|
+
_this.excludes = ['color', 'font-size', 'background-color', 'text'];
|
|
644
649
|
_this.attributes = [];
|
|
645
650
|
return _this;
|
|
646
651
|
}
|
|
@@ -657,6 +662,11 @@
|
|
|
657
662
|
this.attributes.push(attr);
|
|
658
663
|
}
|
|
659
664
|
}
|
|
665
|
+
var fontSize = this.text[exports.MarkTypes.fontSize];
|
|
666
|
+
if (fontSize) {
|
|
667
|
+
var attr = "the-" + exports.MarkTypes.fontSize;
|
|
668
|
+
this.renderer2.setAttribute(this.elementRef.nativeElement, attr, fontSize);
|
|
669
|
+
}
|
|
660
670
|
if (this.text[exports.MarkTypes.color]) {
|
|
661
671
|
this.renderer2.setStyle(this.elementRef.nativeElement, 'color', this.text[exports.MarkTypes.color]);
|
|
662
672
|
}
|
|
@@ -828,7 +838,11 @@
|
|
|
828
838
|
};
|
|
829
839
|
|
|
830
840
|
var isEmptyParagraph = function (editor, at) {
|
|
831
|
-
var
|
|
841
|
+
var entry = getAnchorBlockEntry(editor, at);
|
|
842
|
+
if (!entry) {
|
|
843
|
+
return false;
|
|
844
|
+
}
|
|
845
|
+
var _a = __read(entry, 1), block = _a[0];
|
|
832
846
|
return slate.Editor.isEmpty(editor, block) && block.type === exports.ElementKinds.paragraph;
|
|
833
847
|
};
|
|
834
848
|
|
|
@@ -1526,7 +1540,7 @@
|
|
|
1526
1540
|
}
|
|
1527
1541
|
if (children && children.length === 1) {
|
|
1528
1542
|
var firstNode = children[0];
|
|
1529
|
-
if (firstNode.type === exports.ElementKinds.default && !slate.Node.string(firstNode)) {
|
|
1543
|
+
if (firstNode.type === exports.ElementKinds.default && firstNode.children.length === 1 && !slate.Node.string(firstNode)) {
|
|
1530
1544
|
return true;
|
|
1531
1545
|
}
|
|
1532
1546
|
}
|
|
@@ -4727,20 +4741,66 @@
|
|
|
4727
4741
|
// block card cursor
|
|
4728
4742
|
if (anchorNode && i1.hasBlockCard(domSelection)) {
|
|
4729
4743
|
var isCardLeftCursor = i1.isCardLeft(anchorNode);
|
|
4730
|
-
|
|
4731
|
-
if ((isMoveDown && isCardLeftCursor) || (isMoveForward && !isCardLeftCursor)) {
|
|
4732
|
-
nativeEvent.preventDefault();
|
|
4744
|
+
if (isMoveUp) {
|
|
4733
4745
|
var _a = __read(i1.AngularEditor.toSlateCardEntry(editor, anchorNode), 2), path = _a[1];
|
|
4746
|
+
var previousPath = slate.Path.hasPrevious(path) && slate.Path.previous(path);
|
|
4747
|
+
var previousNode = previousPath && getNode(editor, previousPath);
|
|
4748
|
+
if (previousNode && editor.isBlockCard(previousNode)) {
|
|
4749
|
+
i1.AngularEditor.moveBlockCard(editor, previousNode, { direction: isCardLeftCursor ? 'left' : 'right' });
|
|
4750
|
+
}
|
|
4751
|
+
else {
|
|
4752
|
+
var before = slate.Editor.before(editor, path);
|
|
4753
|
+
if (before) {
|
|
4754
|
+
slate.Transforms.select(editor, before);
|
|
4755
|
+
}
|
|
4756
|
+
}
|
|
4757
|
+
nativeEvent.preventDefault();
|
|
4758
|
+
return;
|
|
4759
|
+
}
|
|
4760
|
+
if (isMoveDown) {
|
|
4761
|
+
var _b = __read(i1.AngularEditor.toSlateCardEntry(editor, anchorNode), 2), path = _b[1];
|
|
4762
|
+
var nextPath = slate.Path.next(path);
|
|
4763
|
+
var nextNode = getNode(editor, nextPath);
|
|
4764
|
+
if (nextNode && editor.isBlockCard(nextNode)) {
|
|
4765
|
+
i1.AngularEditor.moveBlockCard(editor, nextNode, { direction: isCardLeftCursor ? 'left' : 'right' });
|
|
4766
|
+
}
|
|
4767
|
+
else {
|
|
4768
|
+
var after = slate.Editor.after(editor, path);
|
|
4769
|
+
if (after) {
|
|
4770
|
+
slate.Transforms.select(editor, slate.Editor.after(editor, path));
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4773
|
+
nativeEvent.preventDefault();
|
|
4774
|
+
return;
|
|
4775
|
+
}
|
|
4776
|
+
// → + right-block-card
|
|
4777
|
+
if ((isMoveForward && !isCardLeftCursor)) {
|
|
4778
|
+
nativeEvent.preventDefault();
|
|
4779
|
+
var _c = __read(i1.AngularEditor.toSlateCardEntry(editor, anchorNode), 2), path = _c[1];
|
|
4780
|
+
var nextPath = slate.Path.next(path);
|
|
4781
|
+
var nextNode = getNode(editor, nextPath);
|
|
4782
|
+
if (nextNode && editor.isBlockCard(nextNode)) {
|
|
4783
|
+
event.preventDefault();
|
|
4784
|
+
i1.AngularEditor.moveBlockCard(editor, nextNode, { direction: 'left' });
|
|
4785
|
+
return;
|
|
4786
|
+
}
|
|
4734
4787
|
var after = slate.Editor.after(editor, path);
|
|
4735
4788
|
if (after) {
|
|
4736
4789
|
slate.Transforms.select(editor, slate.Editor.after(editor, path));
|
|
4737
4790
|
}
|
|
4738
4791
|
return;
|
|
4739
4792
|
}
|
|
4740
|
-
//
|
|
4741
|
-
if (
|
|
4793
|
+
// ← + left-block-card
|
|
4794
|
+
if (isMoveBackward && isCardLeftCursor) {
|
|
4742
4795
|
nativeEvent.preventDefault();
|
|
4743
|
-
var
|
|
4796
|
+
var _d = __read(i1.AngularEditor.toSlateCardEntry(editor, anchorNode), 2), path = _d[1];
|
|
4797
|
+
var previousPath = slate.Path.hasPrevious(path) && slate.Path.previous(path);
|
|
4798
|
+
var previousNode = previousPath && getNode(editor, previousPath);
|
|
4799
|
+
if (previousNode && editor.isBlockCard(previousNode)) {
|
|
4800
|
+
event.preventDefault();
|
|
4801
|
+
i1.AngularEditor.moveBlockCard(editor, previousNode, { direction: 'right' });
|
|
4802
|
+
return;
|
|
4803
|
+
}
|
|
4744
4804
|
var before = slate.Editor.before(editor, path);
|
|
4745
4805
|
if (before) {
|
|
4746
4806
|
slate.Transforms.select(editor, before);
|
|
@@ -4750,14 +4810,14 @@
|
|
|
4750
4810
|
// move to card center
|
|
4751
4811
|
if ((isCardLeftCursor && isMoveForward) || (!isCardLeftCursor && isMoveBackward)) {
|
|
4752
4812
|
nativeEvent.preventDefault();
|
|
4753
|
-
var
|
|
4813
|
+
var _e = __read(i1.AngularEditor.toSlateCardEntry(editor, anchorNode), 2), path = _e[1];
|
|
4754
4814
|
slate.Transforms.select(editor, isCardLeftCursor ? slate.Editor.start(editor, path) : slate.Editor.end(editor, path));
|
|
4755
4815
|
return;
|
|
4756
4816
|
}
|
|
4757
4817
|
}
|
|
4758
4818
|
// block card center
|
|
4759
4819
|
if (isCollapsed && (isMoveUp || isMoveDown) && anchorEntry) {
|
|
4760
|
-
var
|
|
4820
|
+
var _f = __read(anchorEntry, 2), block = _f[0], path = _f[1];
|
|
4761
4821
|
if (editor.isBlockCard(block)) {
|
|
4762
4822
|
event.preventDefault();
|
|
4763
4823
|
slate.Transforms.select(editor, isMoveUp ? slate.Editor.before(editor, path) : slate.Editor.after(editor, path));
|
|
@@ -4765,7 +4825,7 @@
|
|
|
4765
4825
|
}
|
|
4766
4826
|
}
|
|
4767
4827
|
if (isCollapsed && (isMoveBackward || isMoveForward) && anchorEntry) {
|
|
4768
|
-
var
|
|
4828
|
+
var _g = __read(anchorEntry, 1), block = _g[0];
|
|
4769
4829
|
if (editor.isBlockCard(block)) {
|
|
4770
4830
|
event.preventDefault();
|
|
4771
4831
|
i1.AngularEditor.moveBlockCard(editor, block, { direction: isMoveBackward ? 'left' : 'right' });
|
|
@@ -5151,11 +5211,14 @@
|
|
|
5151
5211
|
columnIndex++;
|
|
5152
5212
|
nextCell = this.table.children[rowIndex].children[columnIndex];
|
|
5153
5213
|
}
|
|
5154
|
-
else {
|
|
5214
|
+
else if (rowIndex + 1 < this.getHeight()) {
|
|
5155
5215
|
columnIndex = 0;
|
|
5156
5216
|
rowIndex++;
|
|
5157
5217
|
nextCell = this.table.children[rowIndex].children[columnIndex];
|
|
5158
5218
|
}
|
|
5219
|
+
else {
|
|
5220
|
+
nextCell = null;
|
|
5221
|
+
}
|
|
5159
5222
|
}
|
|
5160
5223
|
return nextCell;
|
|
5161
5224
|
};
|
|
@@ -5307,7 +5370,7 @@
|
|
|
5307
5370
|
return rowspans.some(function (rowspan) { return isInside(rowspan, rowIndx, targetIndex); });
|
|
5308
5371
|
});
|
|
5309
5372
|
}
|
|
5310
|
-
function
|
|
5373
|
+
function getOriginCell(table, targetRowIndex, targetColumnIndex) {
|
|
5311
5374
|
var _loop_1 = function (rowIndex) {
|
|
5312
5375
|
var row = table.children[rowIndex];
|
|
5313
5376
|
var originCell = row.children
|
|
@@ -5830,6 +5893,13 @@
|
|
|
5830
5893
|
isActiveHeader: function (editor) {
|
|
5831
5894
|
var _a = __read(slate.Editor.nodes(editor, { match: function (n) { return n.type === exports.ElementKinds.tableRow; } }), 1), tableRowEntry = _a[0];
|
|
5832
5895
|
return tableRowEntry && tableRowEntry[0] && tableRowEntry[0].header;
|
|
5896
|
+
},
|
|
5897
|
+
selectOriginCell: function (editor, table, rowIndex, columnIndex, isStart) {
|
|
5898
|
+
var origin = getOriginCell(table, rowIndex, columnIndex);
|
|
5899
|
+
if (origin) {
|
|
5900
|
+
var path = i1.AngularEditor.findPath(editor, origin);
|
|
5901
|
+
slate.Transforms.select(editor, isStart ? slate.Editor.start(editor, path) : slate.Editor.end(editor, path));
|
|
5902
|
+
}
|
|
5833
5903
|
}
|
|
5834
5904
|
};
|
|
5835
5905
|
|
|
@@ -6509,7 +6579,7 @@
|
|
|
6509
6579
|
return TheColorToolbarItemComponent;
|
|
6510
6580
|
}(TheToolbarBaseItemComponent));
|
|
6511
6581
|
TheColorToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheColorToolbarItemComponent, deps: [{ token: i1__namespace$3.ThyPopover }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6512
|
-
TheColorToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheColorToolbarItemComponent, selector: "the-color-toolbar-item", inputs: { item: "item", editor: "editor" }, host: { classAttribute: "the-toolbar-item" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <a\n class=\"link-width-down\"\n thyIconNavLink\n [ngStyle]=\"{\n width: item.key === 'color' ? '42px' : 'auto'\n }\"\n [thyTooltip]=\"item.name\"\n [thyIconNavLinkActive]=\"active\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"item.icon\" thyIconType=\"twotone\" [thyTwotoneColor]=\"active\"></thy-icon>\n <thy-icon\n [ngClass]=\"{\n 'link-down-icon': true,\n 'font-size-sm': true,\n 'text-desc': true\n }\"\n thyIconName=\"caret-down\"\n ></thy-icon>\n </a>\n ", isInline: true, components: [{ type:
|
|
6582
|
+
TheColorToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheColorToolbarItemComponent, selector: "the-color-toolbar-item", inputs: { item: "item", editor: "editor" }, host: { classAttribute: "the-toolbar-item" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <a\n class=\"link-width-down\"\n thyIconNavLink\n [ngStyle]=\"{\n width: item.key === 'color' ? '42px' : 'auto'\n }\"\n [thyTooltip]=\"item.name\"\n [thyIconNavLinkActive]=\"active\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"item.icon\" thyIconType=\"twotone\" [thyTwotoneColor]=\"active\"></thy-icon>\n <thy-icon\n [ngClass]=\"{\n 'link-down-icon': true,\n 'font-size-sm': true,\n 'text-desc': true\n }\"\n thyIconName=\"caret-down\"\n ></thy-icon>\n </a>\n ", isInline: true, components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
6513
6583
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheColorToolbarItemComponent, decorators: [{
|
|
6514
6584
|
type: i0.Component,
|
|
6515
6585
|
args: [{
|
|
@@ -6589,15 +6659,9 @@
|
|
|
6589
6659
|
};
|
|
6590
6660
|
|
|
6591
6661
|
var CodeEditor = {
|
|
6592
|
-
|
|
6593
|
-
var at = i1.AngularEditor.findPath(editor, element);
|
|
6594
|
-
slate.Transforms.setNodes(editor, { language: language }, {
|
|
6595
|
-
at: at
|
|
6596
|
-
});
|
|
6597
|
-
},
|
|
6598
|
-
setCodeContent: function (editor, content, element) {
|
|
6662
|
+
setCodeAttribute: function (editor, element, value) {
|
|
6599
6663
|
var at = i1.AngularEditor.findPath(editor, element);
|
|
6600
|
-
slate.Transforms.setNodes(editor,
|
|
6664
|
+
slate.Transforms.setNodes(editor, value, {
|
|
6601
6665
|
at: at
|
|
6602
6666
|
});
|
|
6603
6667
|
},
|
|
@@ -6775,8 +6839,8 @@
|
|
|
6775
6839
|
};
|
|
6776
6840
|
return TheToolbarDropdownComponent;
|
|
6777
6841
|
}(TheToolbarBaseItemComponent));
|
|
6778
|
-
TheToolbarDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarDropdownComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.ThyPopover }, { token: i0__namespace.ViewContainerRef }, { token: i2__namespace
|
|
6779
|
-
TheToolbarDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: { toolbarItem: "toolbarItem", menus: "menus", mode: "mode", item: "item", itemMousedownHandle: "itemMousedownHandle" }, host: { listeners: { "mousedown": "toggleDropdown($event)", "document: mousedown": "handleDocumentMouseDown($event)" }, classAttribute: "the-toolbar-dropdown-container" }, viewQueries: [{ propertyName: "iconModeTemplate", first: true, predicate: ["iconModeTemplate"], descendants: true, static: true }, { propertyName: "textModeTemplate", first: true, predicate: ["textModeTemplate"], descendants: true, static: true }, { propertyName: "dropdownTemplate", first: true, predicate: ["dropdownTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template [ngTemplateOutlet]=\"template\"></ng-template>\n\n<ng-template #iconModeTemplate>\n <a thyIconNavLink class=\"icon-mode link-with-down\" [thyTooltip]=\"activeMenu?.name\" thyTooltipPlacement=\"top\">\n <thy-icon [thyIconName]=\"activeMenu?.icon\"></thy-icon>\n <thy-icon class=\"caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n</ng-template>\n\n<ng-template #textModeTemplate>\n <a thyIconNavLink class=\"text-mode\" [thyTooltip]=\"activeMenu?.name\" thyTooltipPlacement=\"top\">\n <span class=\"show-text\">{{ activeMenu?.name }}</span>\n <thy-icon class=\"text-caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n</ng-template>\n\n<ng-template #dropdownTemplate>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let menu of menus\">\n <a\n *ngIf=\"menu.key !== 'split'\"\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"menu.key === activeMenu.key\"\n (mousedown)=\"itemMousedown($event, menu)\"\n [ngStyle]=\"menu?.styles\"\n >\n <span *ngIf=\"menu.icon && mode === dropdownMode.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu.icon\"></thy-icon>\n </span>\n <span *ngIf=\"menu.name\" thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n <thy-action-menu-divider *ngIf=\"menu.key === 'split'\"></thy-action-menu-divider>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type:
|
|
6842
|
+
TheToolbarDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarDropdownComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.ThyPopover }, { token: i0__namespace.ViewContainerRef }, { token: i2__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6843
|
+
TheToolbarDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: { toolbarItem: "toolbarItem", menus: "menus", mode: "mode", item: "item", itemMousedownHandle: "itemMousedownHandle" }, host: { listeners: { "mousedown": "toggleDropdown($event)", "document: mousedown": "handleDocumentMouseDown($event)" }, classAttribute: "the-toolbar-dropdown-container" }, viewQueries: [{ propertyName: "iconModeTemplate", first: true, predicate: ["iconModeTemplate"], descendants: true, static: true }, { propertyName: "textModeTemplate", first: true, predicate: ["textModeTemplate"], descendants: true, static: true }, { propertyName: "dropdownTemplate", first: true, predicate: ["dropdownTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template [ngTemplateOutlet]=\"template\"></ng-template>\n\n<ng-template #iconModeTemplate>\n <a thyIconNavLink class=\"icon-mode link-with-down\" [thyTooltip]=\"activeMenu?.name\" thyTooltipPlacement=\"top\">\n <thy-icon [thyIconName]=\"activeMenu?.icon\"></thy-icon>\n <thy-icon class=\"caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n</ng-template>\n\n<ng-template #textModeTemplate>\n <a thyIconNavLink class=\"text-mode\" [thyTooltip]=\"activeMenu?.name\" thyTooltipPlacement=\"top\">\n <span class=\"show-text\">{{ activeMenu?.name }}</span>\n <thy-icon class=\"text-caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n</ng-template>\n\n<ng-template #dropdownTemplate>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let menu of menus\">\n <a\n *ngIf=\"menu.key !== 'split'\"\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"menu.key === activeMenu.key\"\n (mousedown)=\"itemMousedown($event, menu)\"\n [ngStyle]=\"menu?.styles\"\n >\n <span *ngIf=\"menu.icon && mode === dropdownMode.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu.icon\"></thy-icon>\n </span>\n <span *ngIf=\"menu.name\" thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n <thy-action-menu-divider *ngIf=\"menu.key === 'split'\"></thy-action-menu-divider>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i5__namespace$2.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type: i5__namespace$2.ThyActionMenuDividerComponent, selector: "thy-action-menu-divider", inputs: ["thyTitle", "thyType"] }], directives: [{ type: i6__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$2.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$2.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace$2.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$2.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
6780
6844
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarDropdownComponent, decorators: [{
|
|
6781
6845
|
type: i0.Component,
|
|
6782
6846
|
args: [{
|
|
@@ -6786,7 +6850,7 @@
|
|
|
6786
6850
|
class: 'the-toolbar-dropdown-container'
|
|
6787
6851
|
}
|
|
6788
6852
|
}]
|
|
6789
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace
|
|
6853
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: { toolbarItem: [{
|
|
6790
6854
|
type: i0.Input
|
|
6791
6855
|
}], menus: [{
|
|
6792
6856
|
type: i0.Input
|
|
@@ -6813,36 +6877,85 @@
|
|
|
6813
6877
|
args: ['document: mousedown', ['$event']]
|
|
6814
6878
|
}] } });
|
|
6815
6879
|
|
|
6880
|
+
var NavSplitLineComponent = /** @class */ (function () {
|
|
6881
|
+
function NavSplitLineComponent() {
|
|
6882
|
+
this.mode = exports.ToolbarItemMode.vertical;
|
|
6883
|
+
this.theNavSplitLine = true;
|
|
6884
|
+
}
|
|
6885
|
+
Object.defineProperty(NavSplitLineComponent.prototype, "horizontal", {
|
|
6886
|
+
get: function () {
|
|
6887
|
+
return this.mode === exports.ToolbarItemMode.horizontal;
|
|
6888
|
+
},
|
|
6889
|
+
enumerable: false,
|
|
6890
|
+
configurable: true
|
|
6891
|
+
});
|
|
6892
|
+
Object.defineProperty(NavSplitLineComponent.prototype, "vertical", {
|
|
6893
|
+
get: function () {
|
|
6894
|
+
return this.mode === exports.ToolbarItemMode.vertical;
|
|
6895
|
+
},
|
|
6896
|
+
enumerable: false,
|
|
6897
|
+
configurable: true
|
|
6898
|
+
});
|
|
6899
|
+
NavSplitLineComponent.prototype.ngOnInit = function () { };
|
|
6900
|
+
return NavSplitLineComponent;
|
|
6901
|
+
}());
|
|
6902
|
+
NavSplitLineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: NavSplitLineComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6903
|
+
NavSplitLineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: NavSplitLineComponent, selector: "nav-split-line", inputs: { mode: "mode" }, host: { properties: { "class.the-nav-split-line": "this.theNavSplitLine", "class.horizontal": "this.horizontal", "class.vertical": "this.vertical" } }, ngImport: i0__namespace, template: '', isInline: true });
|
|
6904
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: NavSplitLineComponent, decorators: [{
|
|
6905
|
+
type: i0.Component,
|
|
6906
|
+
args: [{
|
|
6907
|
+
selector: 'nav-split-line',
|
|
6908
|
+
template: ''
|
|
6909
|
+
}]
|
|
6910
|
+
}], ctorParameters: function () { return []; }, propDecorators: { mode: [{
|
|
6911
|
+
type: i0.Input
|
|
6912
|
+
}], theNavSplitLine: [{
|
|
6913
|
+
type: i0.HostBinding,
|
|
6914
|
+
args: ['class.the-nav-split-line']
|
|
6915
|
+
}], horizontal: [{
|
|
6916
|
+
type: i0.HostBinding,
|
|
6917
|
+
args: ['class.horizontal']
|
|
6918
|
+
}], vertical: [{
|
|
6919
|
+
type: i0.HostBinding,
|
|
6920
|
+
args: ['class.vertical']
|
|
6921
|
+
}] } });
|
|
6922
|
+
|
|
6816
6923
|
var TheCodeComponent = /** @class */ (function (_super) {
|
|
6817
6924
|
__extends(TheCodeComponent, _super);
|
|
6818
|
-
function TheCodeComponent(elementRef, cdr, thyNotifyService, ngZone,
|
|
6925
|
+
function TheCodeComponent(elementRef, cdr, thyNotifyService, contextService, ngZone, config) {
|
|
6819
6926
|
var _this = _super.call(this, elementRef, cdr) || this;
|
|
6820
6927
|
_this.elementRef = elementRef;
|
|
6821
6928
|
_this.cdr = cdr;
|
|
6822
6929
|
_this.thyNotifyService = thyNotifyService;
|
|
6930
|
+
_this.contextService = contextService;
|
|
6823
6931
|
_this.ngZone = ngZone;
|
|
6824
|
-
_this.
|
|
6932
|
+
_this.config = config;
|
|
6825
6933
|
_this.startRenderCodemirror = false;
|
|
6826
6934
|
_this.dropdownMode = exports.DropdownMode;
|
|
6827
|
-
_this.maxHeight = _this.mode === CodeMode.default ? 350 - CODEMIRROR_PADDING_TOP * 2 : 0;
|
|
6828
6935
|
_this.codeMirrorFocused = false;
|
|
6936
|
+
_this.maxHeight = _this.config.mode === CodeMode.default ? 350 - CODEMIRROR_PADDING_TOP * 2 : 0;
|
|
6829
6937
|
_this.menus = CODE_MODES.map(function (item) {
|
|
6830
6938
|
return { key: item.value, name: item.showName };
|
|
6831
6939
|
});
|
|
6940
|
+
_this.ToolbarItemMode = exports.ToolbarItemMode;
|
|
6941
|
+
_this.isAutoWrap = false;
|
|
6942
|
+
_this.isResizing = false;
|
|
6943
|
+
_this.resizeHeight = null;
|
|
6832
6944
|
_this.options = {
|
|
6833
6945
|
mode: _this.menus[0].key,
|
|
6834
6946
|
lineNumbers: false,
|
|
6835
6947
|
readOnly: false,
|
|
6836
6948
|
autofocus: false,
|
|
6837
6949
|
lineWiseCopyCut: true,
|
|
6838
|
-
lineWrapping: _this.mode === CodeMode.default ? false : true,
|
|
6950
|
+
lineWrapping: _this.config.mode === CodeMode.default ? false : true,
|
|
6839
6951
|
cursorBlinkRate: 500
|
|
6840
6952
|
};
|
|
6841
6953
|
_this.actives = _this.menus[0];
|
|
6954
|
+
_this.resizeBounds = null;
|
|
6842
6955
|
_this.onChangeLangulage = function (item) {
|
|
6843
6956
|
_this.options = Object.assign(Object.assign({}, _this.options), { mode: item.key });
|
|
6844
6957
|
_this.actives = item;
|
|
6845
|
-
CodeEditor.
|
|
6958
|
+
CodeEditor.setCodeAttribute(_this.editor, _this.element, { langulage: item.key });
|
|
6846
6959
|
};
|
|
6847
6960
|
return _this;
|
|
6848
6961
|
}
|
|
@@ -6853,6 +6966,11 @@
|
|
|
6853
6966
|
enumerable: false,
|
|
6854
6967
|
configurable: true
|
|
6855
6968
|
});
|
|
6969
|
+
TheCodeComponent.prototype.handleCodeMousedown = function (event) {
|
|
6970
|
+
if (!(event.target instanceof HTMLElement && this.elementRef.nativeElement.contains(event.target))) {
|
|
6971
|
+
this.codeMirrorFocused = false;
|
|
6972
|
+
}
|
|
6973
|
+
};
|
|
6856
6974
|
TheCodeComponent.prototype.onContextChange = function () {
|
|
6857
6975
|
_super.prototype.onContextChange.call(this);
|
|
6858
6976
|
if (this.initialized) {
|
|
@@ -6862,6 +6980,9 @@
|
|
|
6862
6980
|
if (this.options.mode !== this.element.language) {
|
|
6863
6981
|
this.useMode();
|
|
6864
6982
|
}
|
|
6983
|
+
if (!this.readonly && this.isCollapsed) {
|
|
6984
|
+
this.initializeCodemirrorFocus();
|
|
6985
|
+
}
|
|
6865
6986
|
}
|
|
6866
6987
|
};
|
|
6867
6988
|
TheCodeComponent.prototype.ngOnInit = function () {
|
|
@@ -6882,18 +7003,27 @@
|
|
|
6882
7003
|
this.ngZone.onStable.pipe(operators.take(1)).subscribe(function () {
|
|
6883
7004
|
_this.renderCodemirror();
|
|
6884
7005
|
_this.initializeCodemirrorFocus();
|
|
7006
|
+
_this.resizeBounds = {
|
|
7007
|
+
nativeElement: _this.contextService.getEditableElement()
|
|
7008
|
+
};
|
|
6885
7009
|
});
|
|
6886
7010
|
}
|
|
6887
7011
|
};
|
|
7012
|
+
TheCodeComponent.prototype.focusChange = function (codeMirrorFocused) {
|
|
7013
|
+
if (codeMirrorFocused)
|
|
7014
|
+
this.codeMirrorFocused = codeMirrorFocused;
|
|
7015
|
+
};
|
|
6888
7016
|
TheCodeComponent.prototype.renderCodemirror = function () {
|
|
6889
7017
|
this.startRenderCodemirror = true;
|
|
6890
7018
|
this.useReadonly();
|
|
6891
7019
|
this.useMode();
|
|
7020
|
+
this.useAutoWrap();
|
|
7021
|
+
this.useHeight();
|
|
6892
7022
|
this.cdr.detectChanges();
|
|
6893
7023
|
};
|
|
6894
7024
|
TheCodeComponent.prototype.initializeCodemirrorFocus = function () {
|
|
6895
7025
|
var _this = this;
|
|
6896
|
-
if (this.isCollapsed) {
|
|
7026
|
+
if (this.isCollapsed && !this.isResizing) {
|
|
6897
7027
|
setTimeout(function () {
|
|
6898
7028
|
if (_this.isCollapsed && _this.codemirror && _this.codemirror.editor && !_this.codemirror.editor.hasFocus()) {
|
|
6899
7029
|
i1.AngularEditor.blur(_this.editor);
|
|
@@ -6904,17 +7034,14 @@
|
|
|
6904
7034
|
}
|
|
6905
7035
|
};
|
|
6906
7036
|
TheCodeComponent.prototype.codeChange = function ($event) {
|
|
6907
|
-
CodeEditor.
|
|
6908
|
-
};
|
|
6909
|
-
TheCodeComponent.prototype.focusChange = function (codeMirrorFocused) {
|
|
6910
|
-
this.codeMirrorFocused = codeMirrorFocused;
|
|
7037
|
+
CodeEditor.setCodeAttribute(this.editor, this.element, { content: $event });
|
|
6911
7038
|
};
|
|
6912
7039
|
TheCodeComponent.prototype.onDelete = function (event) {
|
|
6913
7040
|
event.preventDefault();
|
|
7041
|
+
this.codeMirrorFocused = false;
|
|
6914
7042
|
deleteElement(this.editor, this.element);
|
|
6915
7043
|
};
|
|
6916
7044
|
TheCodeComponent.prototype.onCopy = function (event) {
|
|
6917
|
-
var _this = this;
|
|
6918
7045
|
event.preventDefault();
|
|
6919
7046
|
event.stopPropagation();
|
|
6920
7047
|
// remove codemorrir selection
|
|
@@ -6922,29 +7049,56 @@
|
|
|
6922
7049
|
if (selection.rangeCount > 0) {
|
|
6923
7050
|
selection.removeAllRanges();
|
|
6924
7051
|
}
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
setTimeout(function () {
|
|
6932
|
-
document.execCommand('copy');
|
|
6933
|
-
_this.thyNotifyService.success('复制成功');
|
|
6934
|
-
}, 200);
|
|
7052
|
+
i1.AngularEditor.focus(this.editor);
|
|
7053
|
+
slate.Transforms.select(this.editor, i1.AngularEditor.findPath(this.editor, this.element));
|
|
7054
|
+
document.execCommand('copy');
|
|
7055
|
+
this.thyNotifyService.success('复制成功');
|
|
7056
|
+
i1.AngularEditor.deselect(this.editor);
|
|
7057
|
+
this.codeMirrorFocused = false;
|
|
6935
7058
|
};
|
|
6936
7059
|
TheCodeComponent.prototype.useMode = function () {
|
|
6937
7060
|
var _this = this;
|
|
6938
7061
|
this.options = Object.assign(Object.assign({}, this.options), { mode: this.element.language });
|
|
6939
7062
|
this.actives = this.menus.find(function (i) { return i.key === _this.element.language; });
|
|
6940
7063
|
};
|
|
7064
|
+
TheCodeComponent.prototype.useAutoWrap = function () {
|
|
7065
|
+
if (this.element.autoWrap) {
|
|
7066
|
+
this.cdr.detectChanges();
|
|
7067
|
+
this.isAutoWrap = this.element.autoWrap;
|
|
7068
|
+
this.codemirror.setOptionIfChanged('lineWrapping', this.element.autoWrap);
|
|
7069
|
+
}
|
|
7070
|
+
};
|
|
7071
|
+
TheCodeComponent.prototype.useHeight = function () {
|
|
7072
|
+
if (this.element.height) {
|
|
7073
|
+
this.resizeHeight = this.element.height;
|
|
7074
|
+
this.maxHeight = this.element.height;
|
|
7075
|
+
}
|
|
7076
|
+
};
|
|
6941
7077
|
TheCodeComponent.prototype.useReadonly = function () {
|
|
6942
7078
|
this.options = Object.assign(Object.assign({}, this.options), { readOnly: this.readonly, cursorBlinkRate: this.readonly ? -1 : 500 });
|
|
6943
7079
|
};
|
|
7080
|
+
TheCodeComponent.prototype.onResize = function (_a) {
|
|
7081
|
+
var height = _a.height;
|
|
7082
|
+
this.resizeHeight = height;
|
|
7083
|
+
slate.Transforms.select(this.editor, i1.AngularEditor.findPath(this.editor, this.element));
|
|
7084
|
+
CodeEditor.setCodeAttribute(this.editor, this.element, { height: height });
|
|
7085
|
+
this.maxHeight = height;
|
|
7086
|
+
};
|
|
7087
|
+
TheCodeComponent.prototype.onStartResize = function () {
|
|
7088
|
+
this.isResizing = true;
|
|
7089
|
+
};
|
|
7090
|
+
TheCodeComponent.prototype.onEndResize = function () {
|
|
7091
|
+
this.isResizing = false;
|
|
7092
|
+
};
|
|
7093
|
+
TheCodeComponent.prototype.onChangeWrap = function (value) {
|
|
7094
|
+
i1.AngularEditor.deselect(this.editor);
|
|
7095
|
+
this.codemirror.setOptionIfChanged('lineWrapping', value);
|
|
7096
|
+
CodeEditor.setCodeAttribute(this.editor, this.element, { autoWrap: value ? value : null });
|
|
7097
|
+
};
|
|
6944
7098
|
return TheCodeComponent;
|
|
6945
7099
|
}(TheBaseElementComponent));
|
|
6946
|
-
TheCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheCodeComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.ThyNotifyService }, { token: i0__namespace.NgZone }, { token: THE_CODE_MODE_TOKEN }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6947
|
-
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheCodeComponent, selector: "div[theCode]", viewQueries: [{ propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read:
|
|
7100
|
+
TheCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", 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_CODE_MODE_TOKEN }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7101
|
+
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheCodeComponent, selector: "div[theCode]", host: { listeners: { "document: mousedown": "handleCodeMousedown($event)" } }, viewQueries: [{ propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read: i8.CodeMirrorComponent }], usesInheritance: true, ngImport: i0__namespace, template: "<div contenteditable=\"false\" class=\"the-block-operation\" *ngIf=\"codeMirrorFocused && !options.readOnly\">\n <thy-icon-nav>\n <the-toolbar-dropdown [menus]=\"menus\" [item]=\"actives\" [itemMousedownHandle]=\"onChangeLangulage\"> </the-toolbar-dropdown>\n <a\n href=\"javascript:;\"\n thyIconNavLink\n thyIconNavLinkIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"onCopy($event)\"\n ></a>\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 <nav-split-line [mode]=\"ToolbarItemMode.vertical\"></nav-split-line>\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)]=\"isAutoWrap\"\n (ngModelChange)=\"onChangeWrap($event)\"\n thySize=\"sm\"\n ></thy-switch>\n </span>\n </thy-icon-nav>\n</div>\n\n<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n<div\n thyResizable\n [thyMinHeight]=\"42\"\n [thyBounds]=\"resizeBounds\"\n [style.height.px]=\"resizeHeight\"\n (thyResize)=\"onResize($event)\"\n (thyResizeStart)=\"onStartResize()\"\n (thyResizeEnd)=\"onEndResize()\"\n class=\"resize-code-container\"\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=\"codeMirrorFocused && !options.readOnly\"></thy-resize-handle>\n</div>\n", components: [{ type: i3__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: ["toolbarItem", "menus", "mode", "item", "itemMousedownHandle"] }, { type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }, { type: i6__namespace$1.ThySwitchComponent, selector: "thy-switch", inputs: ["thyType", "thySize", "thyDisabled"], outputs: ["thyChange"] }, { 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: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i4__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.ThyResizableDirective, selector: "[thyResizable]", inputs: ["thyBounds", "thyMaxHeight", "thyMaxWidth", "thyMinHeight", "thyMinWidth", "thyGridColumnCount", "thyMaxColumn", "thyMinColumn", "thyLockAspectRatio", "thyPreview", "thyDisabled"], outputs: ["thyResize", "thyResizeEnd", "thyResizeStart"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
6948
7102
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheCodeComponent, decorators: [{
|
|
6949
7103
|
type: i0.Component,
|
|
6950
7104
|
args: [{
|
|
@@ -6953,13 +7107,16 @@
|
|
|
6953
7107
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
6954
7108
|
}]
|
|
6955
7109
|
}], ctorParameters: function () {
|
|
6956
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.ThyNotifyService }, { type: i0__namespace.NgZone }, { type:
|
|
7110
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.ThyNotifyService }, { type: TheContextService }, { type: i0__namespace.NgZone }, { type: TheCodeConfig, decorators: [{
|
|
6957
7111
|
type: i0.Inject,
|
|
6958
7112
|
args: [THE_CODE_MODE_TOKEN]
|
|
6959
7113
|
}] }];
|
|
6960
7114
|
}, propDecorators: { codemirror: [{
|
|
6961
7115
|
type: i0.ViewChild,
|
|
6962
|
-
args: ['codemirror', { read:
|
|
7116
|
+
args: ['codemirror', { read: i8.CodeMirrorComponent, static: false }]
|
|
7117
|
+
}], handleCodeMousedown: [{
|
|
7118
|
+
type: i0.HostListener,
|
|
7119
|
+
args: ['document: mousedown', ['$event']]
|
|
6963
7120
|
}] } });
|
|
6964
7121
|
|
|
6965
7122
|
var withCode = function (editor) {
|
|
@@ -7173,7 +7330,7 @@
|
|
|
7173
7330
|
return TheLinkEditComponent;
|
|
7174
7331
|
}());
|
|
7175
7332
|
TheLinkEditComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheLinkEditComponent, deps: [{ token: i1__namespace$3.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7176
|
-
TheLinkEditComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", 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$
|
|
7333
|
+
TheLinkEditComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", 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$1.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { type: i2__namespace$1.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$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace$2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.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$2.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.ThyInputDirective, selector: "[thyInput]", inputs: ["thySize", "thyAutocomplete"] }, { type: i4__namespace$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace$1.ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }] });
|
|
7177
7334
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheLinkEditComponent, decorators: [{
|
|
7178
7335
|
type: i0.Component,
|
|
7179
7336
|
args: [{
|
|
@@ -7326,7 +7483,7 @@
|
|
|
7326
7483
|
};
|
|
7327
7484
|
return TheBaseLinkComponent;
|
|
7328
7485
|
}(TheBaseElementComponent));
|
|
7329
|
-
TheBaseLinkComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheBaseLinkComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$3.ThyPopover }, { token: i2__namespace
|
|
7486
|
+
TheBaseLinkComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheBaseLinkComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$3.ThyPopover }, { token: i2__namespace.Overlay }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace$6.ThyClickDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7330
7487
|
TheBaseLinkComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheBaseLinkComponent, selector: "[TheBaseLinkComponent]", host: { listeners: { "click": "mousedownHandle($event)" } }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
7331
7488
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheBaseLinkComponent, decorators: [{
|
|
7332
7489
|
type: i0.Component,
|
|
@@ -7334,7 +7491,7 @@
|
|
|
7334
7491
|
selector: '[TheBaseLinkComponent]',
|
|
7335
7492
|
template: ''
|
|
7336
7493
|
}]
|
|
7337
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$3.ThyPopover }, { type: i2__namespace
|
|
7494
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$3.ThyPopover }, { type: i2__namespace.Overlay }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace$6.ThyClickDispatcher }]; }, propDecorators: { mousedownHandle: [{
|
|
7338
7495
|
type: i0.HostListener,
|
|
7339
7496
|
args: ['click', ['$event']]
|
|
7340
7497
|
}] } });
|
|
@@ -7526,8 +7683,8 @@
|
|
|
7526
7683
|
};
|
|
7527
7684
|
return TheTableToolbarItemComponent;
|
|
7528
7685
|
}(TheToolbarBaseItemComponent));
|
|
7529
|
-
TheTableToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarItemComponent, deps: [{ token: i1__namespace$6.ThyPopover }, { token: i2__namespace
|
|
7530
|
-
TheTableToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheTableToolbarItemComponent, selector: "the-table-toolbar-item", inputs: { item: "item", editor: "editor" }, host: { classAttribute: "the-toolbar-dropdown-container" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <a\n thyIconNavLink\n class=\"link-with-down\"\n [thyTooltip]=\"item?.name\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n <thy-icon class=\"link-down-icon font-size-sm text-desc table-down-icon\" thyIconName=\"caret-down\"> </thy-icon>\n </a>\n ", isInline: true, components: [{ type:
|
|
7686
|
+
TheTableToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarItemComponent, deps: [{ token: i1__namespace$6.ThyPopover }, { token: i2__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7687
|
+
TheTableToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheTableToolbarItemComponent, selector: "the-table-toolbar-item", inputs: { item: "item", editor: "editor" }, host: { classAttribute: "the-toolbar-dropdown-container" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <a\n thyIconNavLink\n class=\"link-with-down\"\n [thyTooltip]=\"item?.name\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n <thy-icon class=\"link-down-icon font-size-sm text-desc table-down-icon\" thyIconName=\"caret-down\"> </thy-icon>\n </a>\n ", isInline: true, components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
7531
7688
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarItemComponent, decorators: [{
|
|
7532
7689
|
type: i0.Component,
|
|
7533
7690
|
args: [{
|
|
@@ -7537,7 +7694,7 @@
|
|
|
7537
7694
|
class: 'the-toolbar-dropdown-container'
|
|
7538
7695
|
}
|
|
7539
7696
|
}]
|
|
7540
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$6.ThyPopover }, { type: i2__namespace
|
|
7697
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$6.ThyPopover }, { type: i2__namespace.Overlay }]; }, propDecorators: { item: [{
|
|
7541
7698
|
type: i0.Input
|
|
7542
7699
|
}], editor: [{
|
|
7543
7700
|
type: i0.Input
|
|
@@ -8299,49 +8456,6 @@
|
|
|
8299
8456
|
});
|
|
8300
8457
|
}
|
|
8301
8458
|
|
|
8302
|
-
var NavSplitLineComponent = /** @class */ (function () {
|
|
8303
|
-
function NavSplitLineComponent() {
|
|
8304
|
-
this.mode = exports.ToolbarItemMode.vertical;
|
|
8305
|
-
this.theNavSplitLine = true;
|
|
8306
|
-
}
|
|
8307
|
-
Object.defineProperty(NavSplitLineComponent.prototype, "horizontal", {
|
|
8308
|
-
get: function () {
|
|
8309
|
-
return this.mode === exports.ToolbarItemMode.horizontal;
|
|
8310
|
-
},
|
|
8311
|
-
enumerable: false,
|
|
8312
|
-
configurable: true
|
|
8313
|
-
});
|
|
8314
|
-
Object.defineProperty(NavSplitLineComponent.prototype, "vertical", {
|
|
8315
|
-
get: function () {
|
|
8316
|
-
return this.mode === exports.ToolbarItemMode.vertical;
|
|
8317
|
-
},
|
|
8318
|
-
enumerable: false,
|
|
8319
|
-
configurable: true
|
|
8320
|
-
});
|
|
8321
|
-
NavSplitLineComponent.prototype.ngOnInit = function () { };
|
|
8322
|
-
return NavSplitLineComponent;
|
|
8323
|
-
}());
|
|
8324
|
-
NavSplitLineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: NavSplitLineComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8325
|
-
NavSplitLineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: NavSplitLineComponent, selector: "nav-split-line", inputs: { mode: "mode" }, host: { properties: { "class.the-nav-split-line": "this.theNavSplitLine", "class.horizontal": "this.horizontal", "class.vertical": "this.vertical" } }, ngImport: i0__namespace, template: '', isInline: true });
|
|
8326
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: NavSplitLineComponent, decorators: [{
|
|
8327
|
-
type: i0.Component,
|
|
8328
|
-
args: [{
|
|
8329
|
-
selector: 'nav-split-line',
|
|
8330
|
-
template: ''
|
|
8331
|
-
}]
|
|
8332
|
-
}], ctorParameters: function () { return []; }, propDecorators: { mode: [{
|
|
8333
|
-
type: i0.Input
|
|
8334
|
-
}], theNavSplitLine: [{
|
|
8335
|
-
type: i0.HostBinding,
|
|
8336
|
-
args: ['class.the-nav-split-line']
|
|
8337
|
-
}], horizontal: [{
|
|
8338
|
-
type: i0.HostBinding,
|
|
8339
|
-
args: ['class.horizontal']
|
|
8340
|
-
}], vertical: [{
|
|
8341
|
-
type: i0.HostBinding,
|
|
8342
|
-
args: ['class.vertical']
|
|
8343
|
-
}] } });
|
|
8344
|
-
|
|
8345
8459
|
var TheTableToolbarComponent = /** @class */ (function () {
|
|
8346
8460
|
function TheTableToolbarComponent(ngZone, colorSelectService, popoverRef) {
|
|
8347
8461
|
var _this = this;
|
|
@@ -8463,7 +8577,7 @@
|
|
|
8463
8577
|
return TheTableToolbarComponent;
|
|
8464
8578
|
}());
|
|
8465
8579
|
TheTableToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarComponent, deps: [{ token: i0__namespace.NgZone }, { token: TheColorSelectService }, { token: i1__namespace$3.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8466
|
-
TheTableToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheTableToolbarComponent, selector: "the-table-toolbar", inputs: { tableStore: "tableStore", isActiveSelect: "isActiveSelect" }, ngImport: i0__namespace, template: "<thy-icon-nav>\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a href=\"javascript:;\" thyIconNavLink *ngIf=\"!item.invisibility\" [thyTooltip]=\"item.name\" (mousedown)=\"item.actionHandle()\">\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n </a>\n </ng-container>\n <nav-split-line *ngIf=\"!isActiveSelect && isShowSplitLine\"></nav-split-line>\n <a href=\"javascript:;\" thyIconNavLink thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <nav-split-line *ngIf=\"deleteIcon\"></nav-split-line>\n <a\n *ngIf=\"deleteIcon\"\n href=\"javascript:;\"\n thyIconNavLink\n [thyTooltip]=\"iconName\"\n class=\"danger\"\n [thyIconNavLinkIcon]=\"deleteIcon\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n</thy-icon-nav>\n", components: [{ type:
|
|
8580
|
+
TheTableToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheTableToolbarComponent, selector: "the-table-toolbar", inputs: { tableStore: "tableStore", isActiveSelect: "isActiveSelect" }, ngImport: i0__namespace, template: "<thy-icon-nav>\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a href=\"javascript:;\" thyIconNavLink *ngIf=\"!item.invisibility\" [thyTooltip]=\"item.name\" (mousedown)=\"item.actionHandle()\">\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n </a>\n </ng-container>\n <nav-split-line *ngIf=\"!isActiveSelect && isShowSplitLine\"></nav-split-line>\n <a href=\"javascript:;\" thyIconNavLink thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <nav-split-line *ngIf=\"deleteIcon\"></nav-split-line>\n <a\n *ngIf=\"deleteIcon\"\n href=\"javascript:;\"\n thyIconNavLink\n [thyTooltip]=\"iconName\"\n class=\"danger\"\n [thyIconNavLinkIcon]=\"deleteIcon\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n</thy-icon-nav>\n", components: [{ type: i3__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
8467
8581
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarComponent, decorators: [{
|
|
8468
8582
|
type: i0.Component,
|
|
8469
8583
|
args: [{
|
|
@@ -8527,7 +8641,7 @@
|
|
|
8527
8641
|
return TheContextMenuComponent;
|
|
8528
8642
|
}());
|
|
8529
8643
|
TheContextMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheContextMenuComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8530
|
-
TheContextMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheContextMenuComponent, selector: "the-contextmenu", inputs: { menuEntities: "menuEntities", actionHandle: "actionHandle", activeHandle: "activeHandle", deactiveHandle: "deactiveHandle" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)", "mousedown": "handleMouseDown($event)" }, properties: { "class.the-overlay-menu-wrap": "this.wrap" } }, ngImport: i0__namespace, template: "<thy-action-menu>\n <ng-container *ngFor=\"let menuItem of menuEntities\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n *ngIf=\"!menuItem.invisibility\"\n (mousedown)=\"itemMousedown($event, menuItem)\"\n (mouseenter)=\"itemMouseenter($event, menuItem)\"\n (mouseleave)=\"itemMouseleave($event, menuItem)\"\n >\n <span thyActionMenuItemIcon>\n <thy-icon\n *ngIf=\"menuItem.backgroundColor; else elseIcon\"\n [thyIconName]=\"menuItem.icon\"\n thyIconType=\"twotone\"\n [thyTwotoneColor]=\"menuItem.backgroundColor\"\n ></thy-icon>\n <ng-template #elseIcon>\n <thy-icon [thyIconName]=\"menuItem.icon\"></thy-icon>\n </ng-template>\n </span>\n <span thyActionMenuItemName>{{ menuItem.name }}</span>\n <span *ngIf=\"menuItem.extendIcon\" thyActionMenuItemExtendIcon>\n <thy-icon thyIconName=\"{{ menuItem.extendIcon }}\"></thy-icon>\n </span>\n </a>\n <thy-action-menu-divider *ngIf=\"menuItem.divider\"></thy-action-menu-divider>\n </ng-container>\n</thy-action-menu>\n", components: [{ type: i5__namespace$
|
|
8644
|
+
TheContextMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheContextMenuComponent, selector: "the-contextmenu", inputs: { menuEntities: "menuEntities", actionHandle: "actionHandle", activeHandle: "activeHandle", deactiveHandle: "deactiveHandle" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)", "mousedown": "handleMouseDown($event)" }, properties: { "class.the-overlay-menu-wrap": "this.wrap" } }, ngImport: i0__namespace, template: "<thy-action-menu>\n <ng-container *ngFor=\"let menuItem of menuEntities\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n *ngIf=\"!menuItem.invisibility\"\n (mousedown)=\"itemMousedown($event, menuItem)\"\n (mouseenter)=\"itemMouseenter($event, menuItem)\"\n (mouseleave)=\"itemMouseleave($event, menuItem)\"\n >\n <span thyActionMenuItemIcon>\n <thy-icon\n *ngIf=\"menuItem.backgroundColor; else elseIcon\"\n [thyIconName]=\"menuItem.icon\"\n thyIconType=\"twotone\"\n [thyTwotoneColor]=\"menuItem.backgroundColor\"\n ></thy-icon>\n <ng-template #elseIcon>\n <thy-icon [thyIconName]=\"menuItem.icon\"></thy-icon>\n </ng-template>\n </span>\n <span thyActionMenuItemName>{{ menuItem.name }}</span>\n <span *ngIf=\"menuItem.extendIcon\" thyActionMenuItemExtendIcon>\n <thy-icon thyIconName=\"{{ menuItem.extendIcon }}\"></thy-icon>\n </span>\n </a>\n <thy-action-menu-divider *ngIf=\"menuItem.divider\"></thy-action-menu-divider>\n </ng-container>\n</thy-action-menu>\n", components: [{ type: i5__namespace$2.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i5__namespace$2.ThyActionMenuDividerComponent, selector: "thy-action-menu-divider", inputs: ["thyTitle", "thyType"] }], directives: [{ type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$2.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$2.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$2.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }, { type: i5__namespace$2.ThyActionMenuItemExtendIconDirective, selector: "[thyActionMenuItemExtendIcon]" }] });
|
|
8531
8645
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheContextMenuComponent, decorators: [{
|
|
8532
8646
|
type: i0.Component,
|
|
8533
8647
|
args: [{
|
|
@@ -8838,11 +8952,11 @@
|
|
|
8838
8952
|
};
|
|
8839
8953
|
return TableService;
|
|
8840
8954
|
}());
|
|
8841
|
-
TableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TableService, deps: [{ token: i1__namespace$3.ThyPopover }, { token: i2__namespace
|
|
8955
|
+
TableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TableService, deps: [{ token: i1__namespace$3.ThyPopover }, { token: i2__namespace.Overlay }, { token: TableStore }, { token: TheTableContextMenuService }, { token: i0__namespace.NgZone }, { token: TheContextService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8842
8956
|
TableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TableService });
|
|
8843
8957
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TableService, decorators: [{
|
|
8844
8958
|
type: i0.Injectable
|
|
8845
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$3.ThyPopover }, { type: i2__namespace
|
|
8959
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$3.ThyPopover }, { type: i2__namespace.Overlay }, { type: TableStore }, { type: TheTableContextMenuService }, { type: i0__namespace.NgZone }, { type: TheContextService }]; } });
|
|
8846
8960
|
|
|
8847
8961
|
var SLA_TABLE_SELECTOR = '.slate-element-table';
|
|
8848
8962
|
var SLA_TABLE_CELL_SELECTOR = '.slate-element-table-cell';
|
|
@@ -8930,7 +9044,7 @@
|
|
|
8930
9044
|
return TheInsertMarkComponent;
|
|
8931
9045
|
}());
|
|
8932
9046
|
TheInsertMarkComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInsertMarkComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8933
|
-
TheInsertMarkComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheInsertMarkComponent, selector: "the-table-insert-mark", inputs: { type: "type", at: "at", tableStore: "tableStore" }, ngImport: i0__namespace, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (mousedown)=\"onMouseDown($event)\"\n (mouseenter)=\"onMouseEnter($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n <div\n class=\"the-table-controls-insert-line\"\n *ngIf=\"dotWrapperHovered\"\n [attr.data-dot-type]=\"type\"\n [ngStyle]=\"{ height: type === 'column' && insertLength, width: type === 'row' && insertLength }\"\n ></div>\n</div>\n", directives: [{ type:
|
|
9047
|
+
TheInsertMarkComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheInsertMarkComponent, selector: "the-table-insert-mark", inputs: { type: "type", at: "at", tableStore: "tableStore" }, ngImport: i0__namespace, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (mousedown)=\"onMouseDown($event)\"\n (mouseenter)=\"onMouseEnter($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n <div\n class=\"the-table-controls-insert-line\"\n *ngIf=\"dotWrapperHovered\"\n [attr.data-dot-type]=\"type\"\n [ngStyle]=\"{ height: type === 'column' && insertLength, width: type === 'row' && insertLength }\"\n ></div>\n</div>\n", directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
8934
9048
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInsertMarkComponent, decorators: [{
|
|
8935
9049
|
type: i0.Component,
|
|
8936
9050
|
args: [{
|
|
@@ -10595,7 +10709,7 @@
|
|
|
10595
10709
|
};
|
|
10596
10710
|
return TheTdComponent;
|
|
10597
10711
|
}(TheBaseElementComponent));
|
|
10598
|
-
TheTdComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTdComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }, { token: i0__namespace.Injector }, { token: i2__namespace
|
|
10712
|
+
TheTdComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTdComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }, { token: i0__namespace.Injector }, { token: i2__namespace.Overlay }, { token: ColumnResizingStore }, { token: i2__namespace.ScrollDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10599
10713
|
TheTdComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheTdComponent, selector: "td[theTd]", host: { properties: { "style.backgroundColor": "this.backgroundColor", "attr.colspan": "this.colspan", "attr.rowspan": "this.rowspan", "style.display": "this.display" } }, providers: [ColumnResizingStore], viewQueries: [{ propertyName: "cellInner", first: true, predicate: ["cellInner"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div #cellInner>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n</div>\n", components: [{ type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
10600
10714
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTdComponent, decorators: [{
|
|
10601
10715
|
type: i0.Component,
|
|
@@ -10604,7 +10718,7 @@
|
|
|
10604
10718
|
templateUrl: './td.component.html',
|
|
10605
10719
|
providers: [ColumnResizingStore]
|
|
10606
10720
|
}]
|
|
10607
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }, { type: i0__namespace.Injector }, { type: i2__namespace
|
|
10721
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }, { type: i0__namespace.Injector }, { type: i2__namespace.Overlay }, { type: ColumnResizingStore }, { type: i2__namespace.ScrollDispatcher }]; }, propDecorators: { backgroundColor: [{
|
|
10608
10722
|
type: i0.HostBinding,
|
|
10609
10723
|
args: ['style.backgroundColor']
|
|
10610
10724
|
}], colspan: [{
|
|
@@ -10641,7 +10755,7 @@
|
|
|
10641
10755
|
}
|
|
10642
10756
|
// case 2
|
|
10643
10757
|
if (cell.hidden && !normalizedNodes.includes(cell)) {
|
|
10644
|
-
var origin =
|
|
10758
|
+
var origin = getOriginCell(table, rowIndex, columnIndex);
|
|
10645
10759
|
if (!origin) {
|
|
10646
10760
|
delete table.children[rowIndex].children[columnIndex].hidden;
|
|
10647
10761
|
}
|
|
@@ -10652,7 +10766,7 @@
|
|
|
10652
10766
|
};
|
|
10653
10767
|
|
|
10654
10768
|
var withTable = function (editor) {
|
|
10655
|
-
var deleteBackward = editor.deleteBackward, deleteForward = editor.deleteForward, onKeydown = editor.onKeydown, setFragmentData = editor.setFragmentData, insertData = editor.insertData, normalizeNode = editor.normalizeNode, isBlockCard = editor.isBlockCard, renderElement = editor.renderElement, deleteCutData = editor.deleteCutData, isContainer = editor.isContainer;
|
|
10769
|
+
var deleteBackward = editor.deleteBackward, deleteForward = editor.deleteForward, onKeydown = editor.onKeydown, setFragmentData = editor.setFragmentData, insertData = editor.insertData, normalizeNode = editor.normalizeNode, isBlockCard = editor.isBlockCard, renderElement = editor.renderElement, deleteCutData = editor.deleteCutData, isContainer = editor.isContainer, onChange = editor.onChange;
|
|
10656
10770
|
editor.deleteBackward = function (unit) {
|
|
10657
10771
|
var opts = new TableOptions$1();
|
|
10658
10772
|
if (!isSelectionInTable(opts, editor)) {
|
|
@@ -10723,13 +10837,11 @@
|
|
|
10723
10837
|
var aboveCell = aboveRow && aboveRow.children[startPosition.getColumnIndex()];
|
|
10724
10838
|
if (aboveCell) {
|
|
10725
10839
|
if (aboveCell.hidden) {
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
at = slate.Editor.start(editor, TheEditor.findPath(editor, originSpan));
|
|
10729
|
-
}
|
|
10840
|
+
TableEditor.selectOriginCell(editor, startPosition.table, startPosition.getRowIndex() - 1, startPosition.getColumnIndex(), false);
|
|
10841
|
+
return;
|
|
10730
10842
|
}
|
|
10731
10843
|
else {
|
|
10732
|
-
at = slate.Editor.
|
|
10844
|
+
at = slate.Editor.end(editor, TheEditor.findPath(editor, aboveCell));
|
|
10733
10845
|
}
|
|
10734
10846
|
}
|
|
10735
10847
|
else {
|
|
@@ -10758,10 +10870,8 @@
|
|
|
10758
10870
|
var belowCell = belowRow && belowRow.children[startPosition.getColumnIndex()];
|
|
10759
10871
|
if (belowCell) {
|
|
10760
10872
|
if (belowCell.hidden) {
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
at = slate.Editor.start(editor, TheEditor.findPath(editor, originSpan));
|
|
10764
|
-
}
|
|
10873
|
+
TableEditor.selectOriginCell(editor, startPosition.table, startPosition.getRowIndex() + 1, startPosition.getColumnIndex(), true);
|
|
10874
|
+
return;
|
|
10765
10875
|
}
|
|
10766
10876
|
else {
|
|
10767
10877
|
at = slate.Editor.start(editor, TheEditor.findPath(editor, belowCell));
|
|
@@ -10780,18 +10890,27 @@
|
|
|
10780
10890
|
var beforePoint = slate.Editor.before(editor, editor.selection);
|
|
10781
10891
|
var beforePosition = beforePoint && TablePosition.create(opts, editor, beforePoint.path);
|
|
10782
10892
|
if (beforePosition && beforePosition.cell && beforePosition.cell.hidden) {
|
|
10893
|
+
event.preventDefault();
|
|
10783
10894
|
var at = slate.Editor.end(editor, TheEditor.findPath(editor, beforePosition.findPrevious()));
|
|
10784
10895
|
slate.Transforms.select(editor, at);
|
|
10785
|
-
event.preventDefault();
|
|
10786
10896
|
}
|
|
10787
10897
|
}
|
|
10788
10898
|
if (isMoveForward) {
|
|
10789
10899
|
var afterPoint = slate.Editor.after(editor, editor.selection);
|
|
10790
10900
|
var afterPosition = afterPoint && TablePosition.create(opts, editor, afterPoint.path);
|
|
10791
10901
|
if (afterPosition.cell && afterPosition.cell.hidden) {
|
|
10792
|
-
var at = slate.Editor.start(editor, TheEditor.findPath(editor, afterPosition.findNext()));
|
|
10793
|
-
slate.Transforms.select(editor, at);
|
|
10794
10902
|
event.preventDefault();
|
|
10903
|
+
var nextCell = afterPosition.findNext();
|
|
10904
|
+
if (nextCell) {
|
|
10905
|
+
var at = slate.Editor.start(editor, TheEditor.findPath(editor, afterPosition.findNext()));
|
|
10906
|
+
slate.Transforms.select(editor, at);
|
|
10907
|
+
event.preventDefault();
|
|
10908
|
+
}
|
|
10909
|
+
else {
|
|
10910
|
+
i1.AngularEditor.moveBlockCard(editor, startPosition.tableEntry[0], { direction: 'right' });
|
|
10911
|
+
event.preventDefault();
|
|
10912
|
+
}
|
|
10913
|
+
return;
|
|
10795
10914
|
}
|
|
10796
10915
|
}
|
|
10797
10916
|
// Prevent deleting cells in the table
|
|
@@ -10872,12 +10991,12 @@
|
|
|
10872
10991
|
}
|
|
10873
10992
|
if (tableFragment) {
|
|
10874
10993
|
tableFragment = normalizeTable(_.cloneDeep(tableFragment));
|
|
10994
|
+
var plainText = slate.Node.string(tableFragment);
|
|
10875
10995
|
tableFragment = [tableFragment];
|
|
10876
10996
|
var stringObj = JSON.stringify(tableFragment);
|
|
10877
10997
|
var encoded = window.btoa(encodeURIComponent(stringObj));
|
|
10878
10998
|
unit.setData("application/" + CLIPBOARD_FORMAT_KEY, encoded);
|
|
10879
|
-
|
|
10880
|
-
unit.setData('text/plain', slate.Node.string(tableFragment));
|
|
10999
|
+
unit.setData('text/plain', plainText);
|
|
10881
11000
|
return;
|
|
10882
11001
|
}
|
|
10883
11002
|
setFragmentData(unit);
|
|
@@ -10902,7 +11021,7 @@
|
|
|
10902
11021
|
for (var j = selectColIndex_1; j <= lastColIndex_1; j++) {
|
|
10903
11022
|
var row = tablePosition_1.table.children[i];
|
|
10904
11023
|
if (row && row.children[j]) {
|
|
10905
|
-
var originCell =
|
|
11024
|
+
var originCell = getOriginCell(tablePosition_1.table, i, j);
|
|
10906
11025
|
if (originCell && (originCell.colspan || originCell.rowspan)) {
|
|
10907
11026
|
var path = TheEditor.findPath(editor, originCell).slice(-2);
|
|
10908
11027
|
resetTableCell(editor, tablePosition_1.table, originCell, path[0], path[1]);
|
|
@@ -10960,6 +11079,21 @@
|
|
|
10960
11079
|
slate.Transforms.setNodes(editor, { columns: columns }, { at: entry[1] });
|
|
10961
11080
|
}
|
|
10962
11081
|
}
|
|
11082
|
+
// adjust selection when selection is in hidden cell
|
|
11083
|
+
if (slate.Element.isElement(entry[0]) && entry[0].type === exports.ElementKinds.tableCell && entry[0].hidden) {
|
|
11084
|
+
if (editor.selection && slate.Range.isCollapsed(editor.selection) && slate.Path.isAncestor(entry[1], editor.selection.anchor.path)) {
|
|
11085
|
+
setTimeout(function () {
|
|
11086
|
+
var opts = new TableOptions$1();
|
|
11087
|
+
var tablePosition = TablePosition.create(opts, editor, editor.selection.anchor.path);
|
|
11088
|
+
var origin = getOriginCell(tablePosition.table, tablePosition.getRowIndex(), tablePosition.getColumnIndex());
|
|
11089
|
+
if (origin) {
|
|
11090
|
+
var path = i1.AngularEditor.findPath(editor, origin);
|
|
11091
|
+
slate.Transforms.select(editor, slate.Editor.end(editor, path));
|
|
11092
|
+
}
|
|
11093
|
+
}, 0);
|
|
11094
|
+
return;
|
|
11095
|
+
}
|
|
11096
|
+
}
|
|
10963
11097
|
normalizeNode(entry);
|
|
10964
11098
|
};
|
|
10965
11099
|
editor.isBlockCard = function (element) {
|
|
@@ -11007,6 +11141,20 @@
|
|
|
11007
11141
|
editor.isContainer = function (element) {
|
|
11008
11142
|
return element.type === exports.ElementKinds.tableCell ? true : isContainer(element);
|
|
11009
11143
|
};
|
|
11144
|
+
editor.onChange = function () {
|
|
11145
|
+
onChange();
|
|
11146
|
+
// adujst selection when selection is in hidden cell
|
|
11147
|
+
// just hook set_selection
|
|
11148
|
+
var isCollapsed = editor.selection && slate.Range.isCollapsed(editor.selection);
|
|
11149
|
+
var isSelectionOperation = editor.operations.every(function (op) { return slate.Operation.isSelectionOperation(op); });
|
|
11150
|
+
if (isCollapsed && isSelectionOperation) {
|
|
11151
|
+
var opts = new TableOptions$1();
|
|
11152
|
+
var tablePosition = TablePosition.create(opts, editor, editor.selection.anchor.path);
|
|
11153
|
+
if (tablePosition.isInTable() && tablePosition.cell.hidden) {
|
|
11154
|
+
TableEditor.selectOriginCell(editor, tablePosition.table, tablePosition.getRowIndex(), tablePosition.getColumnIndex(), false);
|
|
11155
|
+
}
|
|
11156
|
+
}
|
|
11157
|
+
};
|
|
11010
11158
|
return editor;
|
|
11011
11159
|
};
|
|
11012
11160
|
|
|
@@ -11151,7 +11299,7 @@
|
|
|
11151
11299
|
return TheVerticalToolbarItemComponent;
|
|
11152
11300
|
}(TheToolbarBaseItemComponent));
|
|
11153
11301
|
TheVerticalToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$6.ThyPopover }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11154
|
-
TheVerticalToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheVerticalToolbarItemComponent, selector: "the-toolbar-vertical-align-item", inputs: { item: "item", menus: "menus", editor: "editor", toolbarItem: "toolbarItem" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class.hide": "!active" }, classAttribute: "the-toolbar-dropdown-container verticalAlign" }, viewQueries: [{ propertyName: "template", first: true, predicate: ["VerticalAlignItems"], descendants: true, read: i0.TemplateRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<a\n thyIconNavLink\n class=\"icon-mode link-with-down\"\n [thyTooltip]=\"toolbarItem?.name\"\n [thyIconNavLinkActive]=\"isOpened\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n>\n <thy-icon [thyIconName]=\"activeMenu?.icon\"></thy-icon>\n <thy-icon class=\"caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #VerticalAlignItems>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let menu of toolbarItem?.includes\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"menu.key === activeMenu?.key\"\n [ngStyle]=\"menu?.styles\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <span *ngIf=\"menu.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu?.icon\"></thy-icon>\n </span>\n <span thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type:
|
|
11302
|
+
TheVerticalToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheVerticalToolbarItemComponent, selector: "the-toolbar-vertical-align-item", inputs: { item: "item", menus: "menus", editor: "editor", toolbarItem: "toolbarItem" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class.hide": "!active" }, classAttribute: "the-toolbar-dropdown-container verticalAlign" }, viewQueries: [{ propertyName: "template", first: true, predicate: ["VerticalAlignItems"], descendants: true, read: i0.TemplateRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<a\n thyIconNavLink\n class=\"icon-mode link-with-down\"\n [thyTooltip]=\"toolbarItem?.name\"\n [thyIconNavLinkActive]=\"isOpened\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n>\n <thy-icon [thyIconName]=\"activeMenu?.icon\"></thy-icon>\n <thy-icon class=\"caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #VerticalAlignItems>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let menu of toolbarItem?.includes\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"menu.key === activeMenu?.key\"\n [ngStyle]=\"menu?.styles\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <span *ngIf=\"menu.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu?.icon\"></thy-icon>\n </span>\n <span thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i5__namespace$2.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$2.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$2.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$2.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$2.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
11155
11303
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, decorators: [{
|
|
11156
11304
|
type: i0.Component,
|
|
11157
11305
|
args: [{
|
|
@@ -11413,7 +11561,7 @@
|
|
|
11413
11561
|
return TheToolbarItemComponent;
|
|
11414
11562
|
}(TheToolbarBaseItemComponent));
|
|
11415
11563
|
TheToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarItemComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11416
|
-
TheToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { item: "item", editor: "editor", itemMode: "itemMode" }, host: { classAttribute: "the-toolbar-item" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"itemMode === ToolbarItemMode.horizontal; else selectionItem\">\n <a\n thyIconNavLink\n [thyIconNavLinkIcon]=\"item.icon\"\n [thyTooltip]=\"tooltip\"\n [thyTooltipTemplateContext]=\"{ name: item.name, shortcutKey: item.shortcutKey }\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n ></a>\n </ng-container>\n <ng-template #selectionItem>\n <ng-container *ngIf=\"!item?.quickItemComponent\">\n <thy-icon [thyIconName]=\"item?.icon\" [thyIconRotate]=\"0\" class=\"quick-toolbar-icon\"></thy-icon>\n <span class=\"quick-toolbar-name\">{{ item?.name }}</span>\n </ng-container>\n </ng-template>\n <ng-template #tooltip let-data> {{ data.name }} {{ data.shortcutKey }} </ng-template>\n <ng-container #toolbarContainer></ng-container>\n ", isInline: true, components: [{ type:
|
|
11564
|
+
TheToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { item: "item", editor: "editor", itemMode: "itemMode" }, host: { classAttribute: "the-toolbar-item" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"itemMode === ToolbarItemMode.horizontal; else selectionItem\">\n <a\n thyIconNavLink\n [thyIconNavLinkIcon]=\"item.icon\"\n [thyTooltip]=\"tooltip\"\n [thyTooltipTemplateContext]=\"{ name: item.name, shortcutKey: item.shortcutKey }\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n ></a>\n </ng-container>\n <ng-template #selectionItem>\n <ng-container *ngIf=\"!item?.quickItemComponent\">\n <thy-icon [thyIconName]=\"item?.icon\" [thyIconRotate]=\"0\" class=\"quick-toolbar-icon\"></thy-icon>\n <span class=\"quick-toolbar-name\">{{ item?.name }}</span>\n </ng-container>\n </ng-template>\n <ng-template #tooltip let-data> {{ data.name }} {{ data.shortcutKey }} </ng-template>\n <ng-container #toolbarContainer></ng-container>\n ", isInline: true, components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
11417
11565
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarItemComponent, decorators: [{
|
|
11418
11566
|
type: i0.Component,
|
|
11419
11567
|
args: [{
|
|
@@ -11480,7 +11628,7 @@
|
|
|
11480
11628
|
return TheQuickToolbarComponent;
|
|
11481
11629
|
}(core.mixinUnsubscribe(core.MixinBase)));
|
|
11482
11630
|
TheQuickToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheQuickToolbarComponent, deps: [{ token: i1__namespace$3.ThyPopoverRef }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11483
|
-
TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()" } }, 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: i2__namespace$
|
|
11631
|
+
TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()" } }, 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: i2__namespace$2.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: ["item", "editor", "itemMode"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
11484
11632
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
|
|
11485
11633
|
type: i0.Component,
|
|
11486
11634
|
args: [{
|
|
@@ -11604,6 +11752,141 @@
|
|
|
11604
11752
|
};
|
|
11605
11753
|
};
|
|
11606
11754
|
|
|
11755
|
+
var TheFontSizeToolbarItemComponent = /** @class */ (function (_super) {
|
|
11756
|
+
__extends(TheFontSizeToolbarItemComponent, _super);
|
|
11757
|
+
function TheFontSizeToolbarItemComponent(elementRef, thyPopover, viewContainerRef, overlay) {
|
|
11758
|
+
var _this = _super.call(this) || this;
|
|
11759
|
+
_this.elementRef = elementRef;
|
|
11760
|
+
_this.thyPopover = thyPopover;
|
|
11761
|
+
_this.viewContainerRef = viewContainerRef;
|
|
11762
|
+
_this.overlay = overlay;
|
|
11763
|
+
_this.fontSizes = FontSizes;
|
|
11764
|
+
_this.disabled = false;
|
|
11765
|
+
_this.disableGroup = HEADING_TYPES;
|
|
11766
|
+
_this.toolbarItemContainer = true;
|
|
11767
|
+
_this.fontSizeToolbarItem = true;
|
|
11768
|
+
return _this;
|
|
11769
|
+
}
|
|
11770
|
+
Object.defineProperty(TheFontSizeToolbarItemComponent.prototype, "isOpen", {
|
|
11771
|
+
get: function () {
|
|
11772
|
+
return this.dropdownPopoverRef && this.dropdownPopoverRef.getOverlayRef() && this.dropdownPopoverRef.getOverlayRef().hasAttached();
|
|
11773
|
+
},
|
|
11774
|
+
enumerable: false,
|
|
11775
|
+
configurable: true
|
|
11776
|
+
});
|
|
11777
|
+
Object.defineProperty(TheFontSizeToolbarItemComponent.prototype, "disableClass", {
|
|
11778
|
+
get: function () {
|
|
11779
|
+
return this.disabled;
|
|
11780
|
+
},
|
|
11781
|
+
enumerable: false,
|
|
11782
|
+
configurable: true
|
|
11783
|
+
});
|
|
11784
|
+
TheFontSizeToolbarItemComponent.prototype.toggleDropdown = function (event) {
|
|
11785
|
+
var _a;
|
|
11786
|
+
_super.prototype.execute.call(this, event);
|
|
11787
|
+
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || this.disabled) {
|
|
11788
|
+
return;
|
|
11789
|
+
}
|
|
11790
|
+
this.openDropdownPopover();
|
|
11791
|
+
};
|
|
11792
|
+
TheFontSizeToolbarItemComponent.prototype.handleDocumentMouseDown = function (event) {
|
|
11793
|
+
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
11794
|
+
this.closeDropdownPopover();
|
|
11795
|
+
}
|
|
11796
|
+
};
|
|
11797
|
+
TheFontSizeToolbarItemComponent.prototype.ngOnInit = function () {
|
|
11798
|
+
this.activeSize = this.fontSizes[2];
|
|
11799
|
+
};
|
|
11800
|
+
TheFontSizeToolbarItemComponent.prototype.statusChange = function (editor) {
|
|
11801
|
+
if (editor.selection) {
|
|
11802
|
+
var anchorBlock$1 = anchorBlock(editor);
|
|
11803
|
+
if (anchorBlock$1 && this.disableGroup.includes(anchorBlock$1.type)) {
|
|
11804
|
+
this.activeSize = null;
|
|
11805
|
+
this.disabled = true;
|
|
11806
|
+
return;
|
|
11807
|
+
}
|
|
11808
|
+
var marks = getSelectionMarks(editor);
|
|
11809
|
+
var fontSizeMark = marks[exports.MarkTypes.fontSize];
|
|
11810
|
+
this.activeSize = fontSizeMark ? fontSizeMark : this.fontSizes[2];
|
|
11811
|
+
this.disabled = false;
|
|
11812
|
+
}
|
|
11813
|
+
};
|
|
11814
|
+
TheFontSizeToolbarItemComponent.prototype.itemMousedown = function (event, size) {
|
|
11815
|
+
var _a, _b;
|
|
11816
|
+
_super.prototype.execute.call(this, event);
|
|
11817
|
+
this.closeDropdownPopover();
|
|
11818
|
+
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || ((_b = this.editor) === null || _b === void 0 ? void 0 : _b.readOnly)) {
|
|
11819
|
+
return;
|
|
11820
|
+
}
|
|
11821
|
+
var anchorBlock$1 = anchorBlock(this.editor);
|
|
11822
|
+
if (anchorBlock$1 && this.disableGroup.includes(anchorBlock$1.type)) {
|
|
11823
|
+
return;
|
|
11824
|
+
}
|
|
11825
|
+
slate.Editor.addMark(this.editor, exports.MarkTypes.fontSize, size);
|
|
11826
|
+
};
|
|
11827
|
+
TheFontSizeToolbarItemComponent.prototype.openDropdownPopover = function () {
|
|
11828
|
+
var _a;
|
|
11829
|
+
this.dropdownPopoverRef = this.thyPopover.open(this.dropdownTemplate, {
|
|
11830
|
+
origin: this.elementRef,
|
|
11831
|
+
panelClass: ['the-toolbar-dropdown-popover', (_a = this.item) === null || _a === void 0 ? void 0 : _a.key],
|
|
11832
|
+
placement: 'bottomLeft',
|
|
11833
|
+
insideClosable: false,
|
|
11834
|
+
backdropClosable: true,
|
|
11835
|
+
hasBackdrop: false,
|
|
11836
|
+
offset: 10,
|
|
11837
|
+
viewContainerRef: this.viewContainerRef,
|
|
11838
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
11839
|
+
});
|
|
11840
|
+
};
|
|
11841
|
+
TheFontSizeToolbarItemComponent.prototype.closeDropdownPopover = function () {
|
|
11842
|
+
var _a;
|
|
11843
|
+
if (this.dropdownPopoverRef) {
|
|
11844
|
+
(_a = this.dropdownPopoverRef) === null || _a === void 0 ? void 0 : _a.close();
|
|
11845
|
+
}
|
|
11846
|
+
};
|
|
11847
|
+
return TheFontSizeToolbarItemComponent;
|
|
11848
|
+
}(TheToolbarBaseItemComponent));
|
|
11849
|
+
TheFontSizeToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheFontSizeToolbarItemComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.ThyPopover }, { token: i0__namespace.ViewContainerRef }, { token: i2__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11850
|
+
TheFontSizeToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheFontSizeToolbarItemComponent, selector: "the-font-size-toolbar-item", inputs: { editor: "editor", item: "item" }, host: { listeners: { "mousedown": "toggleDropdown($event)", "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class.the-toolbar-dropdown-container": "this.toolbarItemContainer", "class.the-font-size-toolbar-item": "this.fontSizeToolbarItem", "class.disabled": "this.disableClass" } }, viewQueries: [{ propertyName: "dropdownTemplate", first: true, predicate: ["dropdownTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<a thyIconNavLink class=\"text-mode\" [thyTooltip]=\"item?.name\" thyTooltipPlacement=\"top\">\n <span *ngIf=\"activeSize\" class=\"show-text\">{{ activeSize }}</span>\n <thy-icon class=\"text-caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #dropdownTemplate>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let size of fontSizes\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"size === activeSize\"\n (mousedown)=\"itemMousedown($event, size)\"\n >\n <span thyActionMenuItemName>{{ size }}</span>\n </a>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i5__namespace$2.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$2.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$2.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i5__namespace$2.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
11851
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheFontSizeToolbarItemComponent, decorators: [{
|
|
11852
|
+
type: i0.Component,
|
|
11853
|
+
args: [{
|
|
11854
|
+
selector: 'the-font-size-toolbar-item',
|
|
11855
|
+
templateUrl: './toolbar-item.component.html'
|
|
11856
|
+
}]
|
|
11857
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: { editor: [{
|
|
11858
|
+
type: i0.Input
|
|
11859
|
+
}], item: [{
|
|
11860
|
+
type: i0.Input
|
|
11861
|
+
}], dropdownTemplate: [{
|
|
11862
|
+
type: i0.ViewChild,
|
|
11863
|
+
args: ['dropdownTemplate', { static: true }]
|
|
11864
|
+
}], toolbarItemContainer: [{
|
|
11865
|
+
type: i0.HostBinding,
|
|
11866
|
+
args: ['class.the-toolbar-dropdown-container']
|
|
11867
|
+
}], fontSizeToolbarItem: [{
|
|
11868
|
+
type: i0.HostBinding,
|
|
11869
|
+
args: ['class.the-font-size-toolbar-item']
|
|
11870
|
+
}], disableClass: [{
|
|
11871
|
+
type: i0.HostBinding,
|
|
11872
|
+
args: ['class.disabled']
|
|
11873
|
+
}], toggleDropdown: [{
|
|
11874
|
+
type: i0.HostListener,
|
|
11875
|
+
args: ['mousedown', ['$event']]
|
|
11876
|
+
}], handleDocumentMouseDown: [{
|
|
11877
|
+
type: i0.HostListener,
|
|
11878
|
+
args: ['document: mousedown', ['$event']]
|
|
11879
|
+
}] } });
|
|
11880
|
+
|
|
11881
|
+
var FontSizes = [12, 13, 14, 15, 16, 19, 22, 24, 29, 32, 40, 48];
|
|
11882
|
+
var FontSizeOptions = [
|
|
11883
|
+
{
|
|
11884
|
+
key: exports.MarkTypes.fontSize,
|
|
11885
|
+
name: '字号',
|
|
11886
|
+
iconComponent: TheFontSizeToolbarItemComponent
|
|
11887
|
+
}
|
|
11888
|
+
];
|
|
11889
|
+
|
|
11607
11890
|
var internalPlugins = [
|
|
11608
11891
|
withTheHistory,
|
|
11609
11892
|
withAutoInsertData(),
|
|
@@ -11645,7 +11928,7 @@
|
|
|
11645
11928
|
withDeserializeMd(),
|
|
11646
11929
|
withQuickInsert
|
|
11647
11930
|
];
|
|
11648
|
-
var internalToolbarItems = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(AlignOptions)), __read(MarkOptions)), __read(ColorOptions)), __read(HeadingOptions)), __read(TodoItemOptions)), __read(ListOptions)), __read(ImageOptions)), __read(HrOptions)), __read(BlockquoteOptions)), __read(CodeOptions)), __read(LinkOptions)), __read(TableOptions)), __read(VerticalAlignOptions)), __read(PaintFormatOptions));
|
|
11931
|
+
var internalToolbarItems = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(AlignOptions)), __read(MarkOptions)), __read(ColorOptions)), __read(HeadingOptions)), __read(FontSizeOptions)), __read(TodoItemOptions)), __read(ListOptions)), __read(ImageOptions)), __read(HrOptions)), __read(BlockquoteOptions)), __read(CodeOptions)), __read(LinkOptions)), __read(TableOptions)), __read(VerticalAlignOptions)), __read(PaintFormatOptions));
|
|
11649
11932
|
var toolbarCompose = function (toolbarItems) {
|
|
11650
11933
|
if (toolbarItems === void 0) { toolbarItems = []; }
|
|
11651
11934
|
return __spreadArray(__spreadArray([], __read(internalToolbarItems)), __read(toolbarItems));
|
|
@@ -12037,7 +12320,7 @@
|
|
|
12037
12320
|
return TheToolbarComponent;
|
|
12038
12321
|
}());
|
|
12039
12322
|
TheToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: TheToolbarGroupToken }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12040
|
-
TheToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarComponent, selector: "the-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems", align: "align", containerClass: "containerClass", isMore: "isMore", afterTemplate: "afterTemplate" }, host: { classAttribute: "the-toolbar-container" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<thy-icon-nav [style.justifyContent]=\"align\">\n <ng-container #toolbarContainer></ng-container>\n <ng-content></ng-content>\n <ng-template *ngIf=\"afterTemplate\" [ngTemplateOutlet]=\"afterTemplate\"></ng-template>\n</thy-icon-nav>\n", components: [{ type:
|
|
12323
|
+
TheToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarComponent, selector: "the-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems", align: "align", containerClass: "containerClass", isMore: "isMore", afterTemplate: "afterTemplate" }, host: { classAttribute: "the-toolbar-container" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<thy-icon-nav [style.justifyContent]=\"align\">\n <ng-container #toolbarContainer></ng-container>\n <ng-content></ng-content>\n <ng-template *ngIf=\"afterTemplate\" [ngTemplateOutlet]=\"afterTemplate\"></ng-template>\n</thy-icon-nav>\n", components: [{ type: i3__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
12041
12324
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarComponent, decorators: [{
|
|
12042
12325
|
type: i0.Component,
|
|
12043
12326
|
args: [{
|
|
@@ -12177,7 +12460,7 @@
|
|
|
12177
12460
|
};
|
|
12178
12461
|
return TheInlineToolbarComponent;
|
|
12179
12462
|
}());
|
|
12180
|
-
TheInlineToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInlineToolbarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i2__namespace
|
|
12463
|
+
TheInlineToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInlineToolbarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i2__namespace.ScrollDispatcher }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }, { token: TheContextService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12181
12464
|
TheInlineToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems" }, host: { properties: { "class.hide": "toolbarItems.length === 0" } }, viewQueries: [{ propertyName: "inlineToolbar", first: true, predicate: ["inlineToolbar"], descendants: true }], ngImport: i0__namespace, template: "<the-toolbar\n #inlineToolbar\n class=\"the-inline-toolbar\"\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarItems\"\n [isMore]=\"false\"\n ></the-toolbar> ", isInline: true, components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
12182
12465
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInlineToolbarComponent, decorators: [{
|
|
12183
12466
|
type: i0.Component,
|
|
@@ -12189,7 +12472,7 @@
|
|
|
12189
12472
|
},
|
|
12190
12473
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
12191
12474
|
}]
|
|
12192
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i2__namespace
|
|
12475
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i2__namespace.ScrollDispatcher }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }, { type: TheContextService }]; }, propDecorators: { editor: [{
|
|
12193
12476
|
type: i0.Input
|
|
12194
12477
|
}], toolbarItems: [{
|
|
12195
12478
|
type: i0.Input
|
|
@@ -12290,12 +12573,13 @@
|
|
|
12290
12573
|
};
|
|
12291
12574
|
ThePlaceholderComponent.prototype.checkStatus = function () {
|
|
12292
12575
|
var _this = this;
|
|
12293
|
-
var _a, _b;
|
|
12576
|
+
var _a, _b, _c;
|
|
12294
12577
|
var editor = this.editor;
|
|
12295
12578
|
var isEmptyShow = typeof ((_a = this.options) === null || _a === void 0 ? void 0 : _a.isEmptyShowPlaceholder) === 'undefined' ? true : this.options.isEmptyShowPlaceholder;
|
|
12296
12579
|
var isMustShow = (_b = this.options) === null || _b === void 0 ? void 0 : _b.isMustShowPlaceholder;
|
|
12580
|
+
var isReadonly = (_c = this.options) === null || _c === void 0 ? void 0 : _c.readonly;
|
|
12297
12581
|
// empty content and no selection processing
|
|
12298
|
-
if (isEmptyShow && isEmptyContent(editor.children)) {
|
|
12582
|
+
if (!isReadonly && isEmptyShow && isEmptyContent(editor.children)) {
|
|
12299
12583
|
var firstElementChild = this.contextService.getFirstElementChild();
|
|
12300
12584
|
var offsetTop = firstElementChild.offsetTop;
|
|
12301
12585
|
var offsetLeft = firstElementChild.offsetLeft;
|
|
@@ -12767,7 +13051,7 @@
|
|
|
12767
13051
|
useExisting: i0.forwardRef(function () { return TheEditorComponent; }),
|
|
12768
13052
|
multi: true
|
|
12769
13053
|
}
|
|
12770
|
-
], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }, { propertyName: "quickInsertInstance", first: true, predicate: ["quickInsert"], descendants: true, static: true }, { propertyName: "placeholderInstance", first: true, predicate: ["placeholder"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<the-toolbar\n *ngIf=\"!theOptions?.readonly && !theGlobalToolbar\"\n [ngClass]=\"{\n 'the-toolbar-disabled': theOptions?.disabled\n }\"\n #globalToolbar\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.global\"\n [containerClass]=\"globalToolbarClass\"\n [align]=\"theOptions?.toolbar?.align\"\n></the-toolbar>\n\n<div\n class=\"the-editable-container\"\n [ngClass]=\"{\n 'the-editor-disabled': theOptions?.disabled,\n 'max-height': maxHeight\n }\"\n [ngStyle]=\"{ 'max-height': maxHeight }\"\n>\n <slate-editable\n class=\"the-editor-typo\"\n [editor]=\"editor\"\n [ngModel]=\"editorValue\"\n (ngModelChange)=\"valueChange($event)\"\n [decorate]=\"decorate\"\n [renderElement]=\"renderElement\"\n [renderText]=\"renderText\"\n [renderLeaf]=\"renderLeaf\"\n [readonly]=\"theOptions?.readonly || theOptions?.disabled\"\n [keydown]=\"onKeyDown\"\n [click]=\"onClick\"\n [paste]=\"onSlaPaste\"\n [beforeInput]=\"onSlaBeforeInput\"\n [blur]=\"onSlaBlur\"\n [focus]=\"onSlaFocus\"\n [copy]=\"onSlaCopy\"\n [cut]=\"onSlaCut\"\n [isStrictDecorate]=\"false\"\n [compositionStart]=\"onSlaCompositionStart\"\n [compositionEnd]=\"onSlaCompositionEnd\"\n [dragStart]=\"onSlaDragStart\"\n [dragOver]=\"onSlaDragOver\"\n [drop]=\"onDrop\"\n (mousedown)=\"mousedown($event)\"\n ></slate-editable>\n <the-inline-toolbar *ngIf=\"!theOptions?.readonly\" [editor]=\"editor\" [toolbarItems]=\"toolbarEntity.inline\"></the-inline-toolbar>\n <div #quickInsert theQuickInsert [editor]=\"editor\" [quickToolbarItems]=\"quickToolbarItems\"></div>\n <div #placeholder thePlaceholder [editor]=\"editor\" [options]=\"theOptions\"></div>\n <the-template #templateInstance></the-template>\n</div>\n", components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { type: i1__namespace.SlateEditableComponent, selector: "slate-editable", inputs: ["editor", "renderElement", "renderLeaf", "renderText", "decorate", "isStrictDecorate", "trackBy", "readonly", "beforeInput", "blur", "click", "compositionEnd", "compositionStart", "copy", "cut", "dragOver", "dragStart", "dragEnd", "drop", "focus", "keydown", "paste", "spellCheck", "autoCorrect", "autoCapitalize"] }, { type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "quickToolbarItems"] }, { type: ThePlaceholderComponent, selector: "div[thePlaceholder]", inputs: ["editor", "options"] }, { type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
13054
|
+
], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }, { propertyName: "quickInsertInstance", first: true, predicate: ["quickInsert"], descendants: true, static: true }, { propertyName: "placeholderInstance", first: true, predicate: ["placeholder"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<the-toolbar\n *ngIf=\"!theOptions?.readonly && !theGlobalToolbar\"\n [ngClass]=\"{\n 'the-toolbar-disabled': theOptions?.disabled\n }\"\n #globalToolbar\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.global\"\n [containerClass]=\"globalToolbarClass\"\n [align]=\"theOptions?.toolbar?.align\"\n></the-toolbar>\n\n<div\n class=\"the-editable-container\"\n [ngClass]=\"{\n 'the-editor-disabled': theOptions?.disabled,\n 'max-height': maxHeight\n }\"\n [ngStyle]=\"{ 'max-height': maxHeight }\"\n>\n <slate-editable\n class=\"the-editor-typo\"\n [editor]=\"editor\"\n [ngModel]=\"editorValue\"\n (ngModelChange)=\"valueChange($event)\"\n [decorate]=\"decorate\"\n [renderElement]=\"renderElement\"\n [renderText]=\"renderText\"\n [renderLeaf]=\"renderLeaf\"\n [readonly]=\"theOptions?.readonly || theOptions?.disabled\"\n [keydown]=\"onKeyDown\"\n [click]=\"onClick\"\n [paste]=\"onSlaPaste\"\n [beforeInput]=\"onSlaBeforeInput\"\n [blur]=\"onSlaBlur\"\n [focus]=\"onSlaFocus\"\n [copy]=\"onSlaCopy\"\n [cut]=\"onSlaCut\"\n [isStrictDecorate]=\"false\"\n [compositionStart]=\"onSlaCompositionStart\"\n [compositionEnd]=\"onSlaCompositionEnd\"\n [dragStart]=\"onSlaDragStart\"\n [dragOver]=\"onSlaDragOver\"\n [drop]=\"onDrop\"\n (mousedown)=\"mousedown($event)\"\n ></slate-editable>\n <the-inline-toolbar *ngIf=\"!theOptions?.readonly\" [editor]=\"editor\" [toolbarItems]=\"toolbarEntity.inline\"></the-inline-toolbar>\n <div #quickInsert theQuickInsert [editor]=\"editor\" [quickToolbarItems]=\"quickToolbarItems\"></div>\n <div #placeholder thePlaceholder [editor]=\"editor\" [options]=\"theOptions\"></div>\n <the-template #templateInstance></the-template>\n</div>\n", components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { type: i1__namespace.SlateEditableComponent, selector: "slate-editable", inputs: ["editor", "renderElement", "renderLeaf", "renderText", "decorate", "placeholderDecorate", "isStrictDecorate", "trackBy", "readonly", "placeholder", "beforeInput", "blur", "click", "compositionEnd", "compositionStart", "copy", "cut", "dragOver", "dragStart", "dragEnd", "drop", "focus", "keydown", "paste", "spellCheck", "autoCorrect", "autoCapitalize"] }, { type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "quickToolbarItems"] }, { type: ThePlaceholderComponent, selector: "div[thePlaceholder]", inputs: ["editor", "options"] }, { type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
12771
13055
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheEditorComponent, decorators: [{
|
|
12772
13056
|
type: i0.Component,
|
|
12773
13057
|
args: [{
|
|
@@ -12948,7 +13232,7 @@
|
|
|
12948
13232
|
return TheToolbarGroupComponent;
|
|
12949
13233
|
}());
|
|
12950
13234
|
TheToolbarGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarGroupComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.ThyPopover }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12951
|
-
TheToolbarGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarGroupComponent, selector: "the-toolbar-group", inputs: { menus: "menus", item: "item" }, host: { listeners: { "mousedown": "mousedownHandler($event)", "click": "clickHandle($event)" }, classAttribute: "the-toolbar-group" }, viewQueries: [{ propertyName: "groupTemplate", first: true, predicate: ["groupTemplate"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<a thyIconNavLink [thyIconNavLinkIcon]=\"item.icon\" [thyTooltip]=\"item?.name\" thyTooltipPlacement=\"top\" [thyIconNavLinkActive]=\"active\"></a>\n\n<ng-template #groupTemplate>\n <the-toolbar class=\"group\" [editor]=\"editor\" [toolbarItems]=\"menus\" [isMore]=\"false\"></the-toolbar>\n</ng-template>\n", components: [{ type:
|
|
13235
|
+
TheToolbarGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheToolbarGroupComponent, selector: "the-toolbar-group", inputs: { menus: "menus", item: "item" }, host: { listeners: { "mousedown": "mousedownHandler($event)", "click": "clickHandle($event)" }, classAttribute: "the-toolbar-group" }, viewQueries: [{ propertyName: "groupTemplate", first: true, predicate: ["groupTemplate"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<a thyIconNavLink [thyIconNavLinkIcon]=\"item.icon\" [thyTooltip]=\"item?.name\" thyTooltipPlacement=\"top\" [thyIconNavLinkActive]=\"active\"></a>\n\n<ng-template #groupTemplate>\n <the-toolbar class=\"group\" [editor]=\"editor\" [toolbarItems]=\"menus\" [isMore]=\"false\"></the-toolbar>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
12952
13236
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarGroupComponent, decorators: [{
|
|
12953
13237
|
type: i0.Component,
|
|
12954
13238
|
args: [{
|
|
@@ -12976,19 +13260,21 @@
|
|
|
12976
13260
|
var TETHYS = [
|
|
12977
13261
|
i4$1.ThyIconModule,
|
|
12978
13262
|
avatar.ThyAvatarModule,
|
|
12979
|
-
|
|
12980
|
-
i2$
|
|
13263
|
+
i3.ThyNavModule,
|
|
13264
|
+
i2$1.ThyFormModule,
|
|
12981
13265
|
i5$3.ThySharedModule,
|
|
12982
|
-
i2$
|
|
12983
|
-
|
|
13266
|
+
i2$2.ThyListModule,
|
|
13267
|
+
i5$1.ThyTooltipModule,
|
|
12984
13268
|
i4.ThyProgressModule,
|
|
12985
13269
|
autocomplete.ThyAutocompleteModule,
|
|
12986
|
-
i5$
|
|
13270
|
+
i5$2.ThyActionMenuModule,
|
|
12987
13271
|
i5.ThyInputModule,
|
|
12988
13272
|
select.ThySelectModule,
|
|
12989
13273
|
i1$5.ThyButtonModule,
|
|
12990
13274
|
i1$4.ThyNotifyModule,
|
|
12991
|
-
i1$1.ThyAlertModule
|
|
13275
|
+
i1$1.ThyAlertModule,
|
|
13276
|
+
i9.ThyResizableModule,
|
|
13277
|
+
i6$1.ThySwitchModule
|
|
12992
13278
|
];
|
|
12993
13279
|
var COMPONENTS = [
|
|
12994
13280
|
TheToolbarComponent,
|
|
@@ -13008,7 +13294,8 @@
|
|
|
13008
13294
|
TheTableSelectComponent,
|
|
13009
13295
|
TheTableToolbarItemComponent,
|
|
13010
13296
|
TheConversionHintComponent,
|
|
13011
|
-
TheVerticalToolbarItemComponent
|
|
13297
|
+
TheVerticalToolbarItemComponent,
|
|
13298
|
+
TheFontSizeToolbarItemComponent
|
|
13012
13299
|
];
|
|
13013
13300
|
var PLUGIN_COMPONENTS = [
|
|
13014
13301
|
TheImageComponent,
|
|
@@ -13054,7 +13341,8 @@
|
|
|
13054
13341
|
TheTableSelectComponent,
|
|
13055
13342
|
TheTableToolbarItemComponent,
|
|
13056
13343
|
TheConversionHintComponent,
|
|
13057
|
-
TheVerticalToolbarItemComponent,
|
|
13344
|
+
TheVerticalToolbarItemComponent,
|
|
13345
|
+
TheFontSizeToolbarItemComponent, TheImageComponent,
|
|
13058
13346
|
TheTemplateComponent,
|
|
13059
13347
|
TheHrComponent,
|
|
13060
13348
|
TheBlockquoteComponent,
|
|
@@ -13073,31 +13361,33 @@
|
|
|
13073
13361
|
TheTdComponent,
|
|
13074
13362
|
ThePlaceholderComponent], imports: [i6.CommonModule, i1.SlateModule, i4$2.FormsModule, i4$1.ThyIconModule,
|
|
13075
13363
|
avatar.ThyAvatarModule,
|
|
13076
|
-
|
|
13077
|
-
i2$
|
|
13364
|
+
i3.ThyNavModule,
|
|
13365
|
+
i2$1.ThyFormModule,
|
|
13078
13366
|
i5$3.ThySharedModule,
|
|
13079
|
-
i2$
|
|
13080
|
-
|
|
13367
|
+
i2$2.ThyListModule,
|
|
13368
|
+
i5$1.ThyTooltipModule,
|
|
13081
13369
|
i4.ThyProgressModule,
|
|
13082
13370
|
autocomplete.ThyAutocompleteModule,
|
|
13083
|
-
i5$
|
|
13371
|
+
i5$2.ThyActionMenuModule,
|
|
13084
13372
|
i5.ThyInputModule,
|
|
13085
13373
|
select.ThySelectModule,
|
|
13086
13374
|
i1$5.ThyButtonModule,
|
|
13087
13375
|
i1$4.ThyNotifyModule,
|
|
13088
|
-
i1$1.ThyAlertModule,
|
|
13376
|
+
i1$1.ThyAlertModule,
|
|
13377
|
+
i9.ThyResizableModule,
|
|
13378
|
+
i6$1.ThySwitchModule, i8.CodemirrorModule, TheColumnSizeModule], exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent] });
|
|
13089
13379
|
TheEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheEditorModule, providers: [
|
|
13090
13380
|
{
|
|
13091
13381
|
provide: TheToolbarGroupToken,
|
|
13092
13382
|
useValue: TheToolbarGroupComponent
|
|
13093
13383
|
},
|
|
13094
13384
|
THE_CODE_MODE_PROVIDER
|
|
13095
|
-
], imports: [__spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [
|
|
13385
|
+
], imports: [__spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [i8.CodemirrorModule, TheColumnSizeModule])] });
|
|
13096
13386
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheEditorModule, decorators: [{
|
|
13097
13387
|
type: i0.NgModule,
|
|
13098
13388
|
args: [{
|
|
13099
13389
|
declarations: __spreadArray(__spreadArray(__spreadArray([TheEditorComponent], __read(PIPES)), __read(COMPONENTS)), __read(PLUGIN_COMPONENTS)),
|
|
13100
|
-
imports: __spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [
|
|
13390
|
+
imports: __spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [i8.CodemirrorModule, TheColumnSizeModule]),
|
|
13101
13391
|
exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent],
|
|
13102
13392
|
entryComponents: __spreadArray(__spreadArray([], __read(COMPONENTS)), __read(PLUGIN_COMPONENTS)),
|
|
13103
13393
|
providers: [
|
|
@@ -13166,7 +13456,7 @@
|
|
|
13166
13456
|
exports.THE_UPLOAD_SERVICE_TOKEN = THE_UPLOAD_SERVICE_TOKEN;
|
|
13167
13457
|
exports.TableEditor = TableEditor;
|
|
13168
13458
|
exports.TheBaseElementComponent = TheBaseElementComponent;
|
|
13169
|
-
exports.
|
|
13459
|
+
exports.TheCodeConfig = TheCodeConfig;
|
|
13170
13460
|
exports.TheContextService = TheContextService;
|
|
13171
13461
|
exports.TheDefaultElementComponent = TheDefaultElementComponent;
|
|
13172
13462
|
exports.TheEditor = TheEditor;
|