@worktile/theia 1.2.19 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/worktile-theia.umd.js +137 -323
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/constants/code.d.ts +3 -3
- package/constants/node-types.d.ts +1 -2
- package/custom-types.d.ts +1 -3
- package/editor.module.d.ts +39 -43
- package/esm2015/components/text/text.component.js +2 -7
- package/esm2015/constants/code.js +2 -2
- package/esm2015/constants/node-types.js +2 -4
- package/esm2015/constants/toolbar.js +1 -2
- package/esm2015/custom-types.js +1 -1
- package/esm2015/editor.module.js +5 -14
- package/esm2015/plugins/code/code.component.js +30 -74
- package/esm2015/plugins/code/code.editor.js +9 -3
- package/esm2015/plugins/image/image.component.js +1 -1
- package/esm2015/plugins/index.js +1 -3
- package/esm2015/plugins/link/edit/link-edit.component.js +1 -1
- package/esm2015/plugins/table/transforms/insert-table.js +2 -2
- package/fesm2015/worktile-theia.js +105 -283
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.d.ts +4 -16
- package/plugins/code/code.component.scss +7 -46
- package/plugins/code/code.editor.d.ts +2 -3
- package/plugins/table/transforms/insert-table.d.ts +1 -1
- package/queries/get-selection-marks.d.ts +0 -1
- package/styles/editor.scss +0 -6
- package/styles/index.scss +0 -1
- package/transforms/set-marks.d.ts +0 -1
- package/esm2015/plugins/font-size/options.js +0 -11
- package/esm2015/plugins/font-size/toolbar-item.component.js +0 -129
- package/plugins/font-size/options.d.ts +0 -3
- package/plugins/font-size/toolbar-item.component.d.ts +0 -35
- package/plugins/font-size/toolbar-item.component.scss +0 -13
|
@@ -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('
|
|
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', '
|
|
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('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.i2$1, global.i7, global.i5$2, global.i1$4, global.i5$1, global.isUrl, global.i1$5, global.i2$2, global.i5$3, global.i1$6, global.ng.cdk.coercion, global.ng.cdk.portal, global.i2$3, 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, i2$1, i7, i5$2, i1$4, i5$1, isUrl, i1$5, i2$2, i5$3, i1$6, coercion, portal, i2$3, 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,25 +32,23 @@
|
|
|
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 = /*#__PURE__*/_interopNamespace(i2);
|
|
35
|
+
var i2__namespace$1 = /*#__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 i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
41
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
|
|
43
42
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
44
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
45
43
|
var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
|
|
46
|
-
var
|
|
47
|
-
var
|
|
44
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
45
|
+
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
48
46
|
var isUrl__default = /*#__PURE__*/_interopDefaultLegacy(isUrl);
|
|
49
47
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
50
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
51
|
-
var i5__namespace$4 = /*#__PURE__*/_interopNamespace(i5$4);
|
|
52
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
53
48
|
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
49
|
+
var i5__namespace$3 = /*#__PURE__*/_interopNamespace(i5$3);
|
|
50
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
51
|
+
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
54
52
|
|
|
55
53
|
/*! *****************************************************************************
|
|
56
54
|
Copyright (c) Microsoft Corporation.
|
|
@@ -431,7 +429,6 @@
|
|
|
431
429
|
MarkTypes["color"] = "color";
|
|
432
430
|
MarkTypes["backgroundColor"] = "background-color";
|
|
433
431
|
MarkTypes["codeLine"] = "code-line";
|
|
434
|
-
MarkTypes["fontSize"] = "font-size";
|
|
435
432
|
})(exports.MarkTypes || (exports.MarkTypes = {}));
|
|
436
433
|
exports.ToolbarActionTypes = void 0;
|
|
437
434
|
(function (ToolbarActionTypes) {
|
|
@@ -460,8 +457,7 @@
|
|
|
460
457
|
exports.MarkTypes.color,
|
|
461
458
|
exports.MarkTypes.italic,
|
|
462
459
|
exports.MarkTypes.strike,
|
|
463
|
-
exports.MarkTypes.underline
|
|
464
|
-
exports.MarkTypes.fontSize
|
|
460
|
+
exports.MarkTypes.underline
|
|
465
461
|
];
|
|
466
462
|
var THE_INLINE_TOOLBAR_TYPES = [exports.ElementKinds.default, exports.ElementKinds.listItem, exports.ElementKinds.checkItem];
|
|
467
463
|
var STANDARD_HEADING_TYPES = [
|
|
@@ -491,7 +487,6 @@
|
|
|
491
487
|
})(exports.ToolbarItemMode || (exports.ToolbarItemMode = {}));
|
|
492
488
|
var DefaultGlobalToolbarDefinition = [
|
|
493
489
|
exports.ElementKinds.headingList,
|
|
494
|
-
exports.MarkTypes.fontSize,
|
|
495
490
|
exports.ToolbarActionTypes.split,
|
|
496
491
|
exports.MarkTypes.bold,
|
|
497
492
|
exports.MarkTypes.italic,
|
|
@@ -625,10 +620,10 @@
|
|
|
625
620
|
default: 'default',
|
|
626
621
|
print: 'print'
|
|
627
622
|
};
|
|
628
|
-
var
|
|
629
|
-
function
|
|
623
|
+
var TheCodeMode = /** @class */ (function () {
|
|
624
|
+
function TheCodeMode() {
|
|
630
625
|
}
|
|
631
|
-
return
|
|
626
|
+
return TheCodeMode;
|
|
632
627
|
}());
|
|
633
628
|
var THE_CODE_MODE_TOKEN = new i0.InjectionToken('the-code-mode');
|
|
634
629
|
var THE_CODE_MODE_PROVIDER = {
|
|
@@ -645,7 +640,7 @@
|
|
|
645
640
|
var _this = _super.call(this, elementRef, cdr) || this;
|
|
646
641
|
_this.elementRef = elementRef;
|
|
647
642
|
_this.renderer2 = renderer2;
|
|
648
|
-
_this.excludes = ['color', '
|
|
643
|
+
_this.excludes = ['color', 'background-color', 'text'];
|
|
649
644
|
_this.attributes = [];
|
|
650
645
|
return _this;
|
|
651
646
|
}
|
|
@@ -662,11 +657,6 @@
|
|
|
662
657
|
this.attributes.push(attr);
|
|
663
658
|
}
|
|
664
659
|
}
|
|
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
|
-
}
|
|
670
660
|
if (this.text[exports.MarkTypes.color]) {
|
|
671
661
|
this.renderer2.setStyle(this.elementRef.nativeElement, 'color', this.text[exports.MarkTypes.color]);
|
|
672
662
|
}
|
|
@@ -2889,7 +2879,7 @@
|
|
|
2889
2879
|
return TheImageComponent;
|
|
2890
2880
|
}(TheBaseElementComponent));
|
|
2891
2881
|
TheImageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheImageComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$2.DomSanitizer }, { token: THE_UPLOAD_SERVICE_TOKEN }, { token: i0__namespace.ChangeDetectorRef }, { token: TheContextService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2892
|
-
TheImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheImageComponent, selector: "the-image, [theImage]", viewQueries: [{ propertyName: "imageContent", first: true, predicate: ["imageContent"], descendants: true }, { propertyName: "img", first: true, predicate: ["img"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n<div class=\"image-container\" contenteditable=\"false\" [style.textAlign]=\"imageEntry.align || 'center'\">\n <div\n #imageContent\n *ngIf=\"imageEntry.thumbUrl\"\n class=\"image-content\"\n [class.pointer]=\"!selection\"\n [ngStyle]=\"{ width: imageEntry.width + 'px', height: imageEntry.height + 'px' }\"\n >\n <img #img class=\"main-image\" [src]=\"imageEntry.thumbUrl\" [alt]=\"imageEntry.name\" />\n <div *ngIf=\"selection\" class=\"image-profile\" [class.outline]=\"selection\">\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, '-xl')\" class=\"image-pointer left top\"></span>\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right top\"></span>\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right bottom\"></span>\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, '-xl')\" class=\"image-pointer left bottom\"></span>\n </div>\n <div *ngIf=\"uploading\" class=\"uploading\">\n <div class=\"uploading-percentage\">\n <thy-progress thyType=\"primary\" [thyValue]=\"percentage\" thySize=\"sm\"></thy-progress>\n <thy-icon (click)=\"cancelUpload($event)\" thyIconName=\"close-circle-bold-fill\" thyIconLegging=\"true\"></thy-icon>\n </div>\n </div>\n <div *ngIf=\"!uploading\" class=\"layer\" (mousedown)=\"preview($event)\" [class.readonly]=\"readonly\"></div>\n </div>\n <div *ngIf=\"!imageEntry.thumbUrl\" class=\"image-loading\" contenteditable=\"false\">\n <thy-icon thyIconName=\"image\"></thy-icon>\n </div>\n</div>\n", components: [{ type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i4__namespace.ThyProgressComponent, selector: "thy-progress", inputs: ["thyType", "
|
|
2882
|
+
TheImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheImageComponent, selector: "the-image, [theImage]", viewQueries: [{ propertyName: "imageContent", first: true, predicate: ["imageContent"], descendants: true }, { propertyName: "img", first: true, predicate: ["img"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n<div class=\"image-container\" contenteditable=\"false\" [style.textAlign]=\"imageEntry.align || 'center'\">\n <div\n #imageContent\n *ngIf=\"imageEntry.thumbUrl\"\n class=\"image-content\"\n [class.pointer]=\"!selection\"\n [ngStyle]=\"{ width: imageEntry.width + 'px', height: imageEntry.height + 'px' }\"\n >\n <img #img class=\"main-image\" [src]=\"imageEntry.thumbUrl\" [alt]=\"imageEntry.name\" />\n <div *ngIf=\"selection\" class=\"image-profile\" [class.outline]=\"selection\">\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, '-xl')\" class=\"image-pointer left top\"></span>\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right top\"></span>\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right bottom\"></span>\n <span *ngIf=\"isCollapsed\" (mousedown)=\"startDrag($event, '-xl')\" class=\"image-pointer left bottom\"></span>\n </div>\n <div *ngIf=\"uploading\" class=\"uploading\">\n <div class=\"uploading-percentage\">\n <thy-progress thyType=\"primary\" [thyValue]=\"percentage\" thySize=\"sm\"></thy-progress>\n <thy-icon (click)=\"cancelUpload($event)\" thyIconName=\"close-circle-bold-fill\" thyIconLegging=\"true\"></thy-icon>\n </div>\n </div>\n <div *ngIf=\"!uploading\" class=\"layer\" (mousedown)=\"preview($event)\" [class.readonly]=\"readonly\"></div>\n </div>\n <div *ngIf=\"!imageEntry.thumbUrl\" class=\"image-loading\" contenteditable=\"false\">\n <thy-icon thyIconName=\"image\"></thy-icon>\n </div>\n</div>\n", components: [{ type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i4__namespace.ThyProgressComponent, selector: "thy-progress", inputs: ["thyType", "thySize", "thyValue", "thyMax", "thyTips"] }, { 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: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
2893
2883
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheImageComponent, decorators: [{
|
|
2894
2884
|
type: i0.Component,
|
|
2895
2885
|
args: [{
|
|
@@ -5531,9 +5521,9 @@
|
|
|
5531
5521
|
/**
|
|
5532
5522
|
* Insert a new table
|
|
5533
5523
|
*/
|
|
5534
|
-
function insertTable(opts, editor,
|
|
5535
|
-
if (columns === void 0) { columns = 3; }
|
|
5524
|
+
function insertTable(opts, editor, rows, columns, getCellContent) {
|
|
5536
5525
|
if (rows === void 0) { rows = 3; }
|
|
5526
|
+
if (columns === void 0) { columns = 3; }
|
|
5537
5527
|
var selection = editor.selection;
|
|
5538
5528
|
if (!(selection === null || selection === void 0 ? void 0 : selection.anchor)) {
|
|
5539
5529
|
return;
|
|
@@ -6579,7 +6569,7 @@
|
|
|
6579
6569
|
return TheColorToolbarItemComponent;
|
|
6580
6570
|
}(TheToolbarBaseItemComponent));
|
|
6581
6571
|
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 });
|
|
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:
|
|
6572
|
+
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: i2__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: i7__namespace.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"] }] });
|
|
6583
6573
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheColorToolbarItemComponent, decorators: [{
|
|
6584
6574
|
type: i0.Component,
|
|
6585
6575
|
args: [{
|
|
@@ -6659,9 +6649,15 @@
|
|
|
6659
6649
|
};
|
|
6660
6650
|
|
|
6661
6651
|
var CodeEditor = {
|
|
6662
|
-
|
|
6652
|
+
setLanguage: function (editor, language, element) {
|
|
6663
6653
|
var at = i1.AngularEditor.findPath(editor, element);
|
|
6664
|
-
slate.Transforms.setNodes(editor,
|
|
6654
|
+
slate.Transforms.setNodes(editor, { language: language }, {
|
|
6655
|
+
at: at
|
|
6656
|
+
});
|
|
6657
|
+
},
|
|
6658
|
+
setCodeContent: function (editor, content, element) {
|
|
6659
|
+
var at = i1.AngularEditor.findPath(editor, element);
|
|
6660
|
+
slate.Transforms.setNodes(editor, { content: content }, {
|
|
6665
6661
|
at: at
|
|
6666
6662
|
});
|
|
6667
6663
|
},
|
|
@@ -6839,8 +6835,8 @@
|
|
|
6839
6835
|
};
|
|
6840
6836
|
return TheToolbarDropdownComponent;
|
|
6841
6837
|
}(TheToolbarBaseItemComponent));
|
|
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:
|
|
6838
|
+
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$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6839
|
+
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: i2__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$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type: i5__namespace$1.ThyActionMenuDividerComponent, selector: "thy-action-menu-divider", inputs: ["thyTitle", "thyType"] }], directives: [{ type: i6__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7__namespace.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$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$1.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
6844
6840
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarDropdownComponent, decorators: [{
|
|
6845
6841
|
type: i0.Component,
|
|
6846
6842
|
args: [{
|
|
@@ -6850,7 +6846,7 @@
|
|
|
6850
6846
|
class: 'the-toolbar-dropdown-container'
|
|
6851
6847
|
}
|
|
6852
6848
|
}]
|
|
6853
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: { toolbarItem: [{
|
|
6849
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace$1.Overlay }]; }, propDecorators: { toolbarItem: [{
|
|
6854
6850
|
type: i0.Input
|
|
6855
6851
|
}], menus: [{
|
|
6856
6852
|
type: i0.Input
|
|
@@ -6877,49 +6873,6 @@
|
|
|
6877
6873
|
args: ['document: mousedown', ['$event']]
|
|
6878
6874
|
}] } });
|
|
6879
6875
|
|
|
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
|
-
|
|
6923
6876
|
var TheCodeComponent = /** @class */ (function (_super) {
|
|
6924
6877
|
__extends(TheCodeComponent, _super);
|
|
6925
6878
|
function TheCodeComponent(elementRef, cdr, thyNotifyService, ngZone, config) {
|
|
@@ -6931,15 +6884,11 @@
|
|
|
6931
6884
|
_this.config = config;
|
|
6932
6885
|
_this.startRenderCodemirror = false;
|
|
6933
6886
|
_this.dropdownMode = exports.DropdownMode;
|
|
6934
|
-
_this.codeMirrorFocused = false;
|
|
6935
6887
|
_this.maxHeight = _this.config.mode === CodeMode.default ? 350 - CODEMIRROR_PADDING_TOP * 2 : 0;
|
|
6888
|
+
_this.codeMirrorFocused = false;
|
|
6936
6889
|
_this.menus = CODE_MODES.map(function (item) {
|
|
6937
6890
|
return { key: item.value, name: item.showName };
|
|
6938
6891
|
});
|
|
6939
|
-
_this.ToolbarItemMode = exports.ToolbarItemMode;
|
|
6940
|
-
_this.isAutoWrap = false;
|
|
6941
|
-
_this.isResizing = false;
|
|
6942
|
-
_this.resizeHeight = null;
|
|
6943
6892
|
_this.options = {
|
|
6944
6893
|
mode: _this.menus[0].key,
|
|
6945
6894
|
lineNumbers: false,
|
|
@@ -6953,7 +6902,7 @@
|
|
|
6953
6902
|
_this.onChangeLangulage = function (item) {
|
|
6954
6903
|
_this.options = Object.assign(Object.assign({}, _this.options), { mode: item.key });
|
|
6955
6904
|
_this.actives = item;
|
|
6956
|
-
CodeEditor.
|
|
6905
|
+
CodeEditor.setLanguage(_this.editor, item.key, _this.element);
|
|
6957
6906
|
};
|
|
6958
6907
|
return _this;
|
|
6959
6908
|
}
|
|
@@ -6964,11 +6913,6 @@
|
|
|
6964
6913
|
enumerable: false,
|
|
6965
6914
|
configurable: true
|
|
6966
6915
|
});
|
|
6967
|
-
TheCodeComponent.prototype.handleCodeMousedown = function (event) {
|
|
6968
|
-
if (!(event.target instanceof HTMLElement && this.elementRef.nativeElement.contains(event.target))) {
|
|
6969
|
-
this.codeMirrorFocused = false;
|
|
6970
|
-
}
|
|
6971
|
-
};
|
|
6972
6916
|
TheCodeComponent.prototype.onContextChange = function () {
|
|
6973
6917
|
_super.prototype.onContextChange.call(this);
|
|
6974
6918
|
if (this.initialized) {
|
|
@@ -7004,21 +6948,15 @@
|
|
|
7004
6948
|
});
|
|
7005
6949
|
}
|
|
7006
6950
|
};
|
|
7007
|
-
TheCodeComponent.prototype.focusChange = function (codeMirrorFocused) {
|
|
7008
|
-
if (codeMirrorFocused)
|
|
7009
|
-
this.codeMirrorFocused = codeMirrorFocused;
|
|
7010
|
-
};
|
|
7011
6951
|
TheCodeComponent.prototype.renderCodemirror = function () {
|
|
7012
6952
|
this.startRenderCodemirror = true;
|
|
7013
6953
|
this.useReadonly();
|
|
7014
6954
|
this.useMode();
|
|
7015
|
-
this.useAutoWrap();
|
|
7016
|
-
this.useHeight();
|
|
7017
6955
|
this.cdr.detectChanges();
|
|
7018
6956
|
};
|
|
7019
6957
|
TheCodeComponent.prototype.initializeCodemirrorFocus = function () {
|
|
7020
6958
|
var _this = this;
|
|
7021
|
-
if (this.isCollapsed
|
|
6959
|
+
if (this.isCollapsed) {
|
|
7022
6960
|
setTimeout(function () {
|
|
7023
6961
|
if (_this.isCollapsed && _this.codemirror && _this.codemirror.editor && !_this.codemirror.editor.hasFocus()) {
|
|
7024
6962
|
i1.AngularEditor.blur(_this.editor);
|
|
@@ -7029,14 +6967,17 @@
|
|
|
7029
6967
|
}
|
|
7030
6968
|
};
|
|
7031
6969
|
TheCodeComponent.prototype.codeChange = function ($event) {
|
|
7032
|
-
CodeEditor.
|
|
6970
|
+
CodeEditor.setCodeContent(this.editor, $event, this.element);
|
|
6971
|
+
};
|
|
6972
|
+
TheCodeComponent.prototype.focusChange = function (codeMirrorFocused) {
|
|
6973
|
+
this.codeMirrorFocused = codeMirrorFocused;
|
|
7033
6974
|
};
|
|
7034
6975
|
TheCodeComponent.prototype.onDelete = function (event) {
|
|
7035
6976
|
event.preventDefault();
|
|
7036
|
-
this.codeMirrorFocused = false;
|
|
7037
6977
|
deleteElement(this.editor, this.element);
|
|
7038
6978
|
};
|
|
7039
6979
|
TheCodeComponent.prototype.onCopy = function (event) {
|
|
6980
|
+
var _this = this;
|
|
7040
6981
|
event.preventDefault();
|
|
7041
6982
|
event.stopPropagation();
|
|
7042
6983
|
// remove codemorrir selection
|
|
@@ -7044,73 +6985,44 @@
|
|
|
7044
6985
|
if (selection.rangeCount > 0) {
|
|
7045
6986
|
selection.removeAllRanges();
|
|
7046
6987
|
}
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
6988
|
+
// focus the element
|
|
6989
|
+
setTimeout(function () {
|
|
6990
|
+
i1.AngularEditor.focus(_this.editor);
|
|
6991
|
+
slate.Transforms.select(_this.editor, i1.AngularEditor.findPath(_this.editor, _this.element));
|
|
6992
|
+
});
|
|
6993
|
+
// copy the element
|
|
6994
|
+
setTimeout(function () {
|
|
6995
|
+
document.execCommand('copy');
|
|
6996
|
+
_this.thyNotifyService.success('复制成功');
|
|
6997
|
+
}, 200);
|
|
7053
6998
|
};
|
|
7054
6999
|
TheCodeComponent.prototype.useMode = function () {
|
|
7055
7000
|
var _this = this;
|
|
7056
7001
|
this.options = Object.assign(Object.assign({}, this.options), { mode: this.element.language });
|
|
7057
7002
|
this.actives = this.menus.find(function (i) { return i.key === _this.element.language; });
|
|
7058
7003
|
};
|
|
7059
|
-
TheCodeComponent.prototype.useAutoWrap = function () {
|
|
7060
|
-
if (this.element.autoWrap) {
|
|
7061
|
-
this.cdr.detectChanges();
|
|
7062
|
-
this.isAutoWrap = this.element.autoWrap;
|
|
7063
|
-
this.codemirror.setOptionIfChanged('lineWrapping', this.element.autoWrap);
|
|
7064
|
-
}
|
|
7065
|
-
};
|
|
7066
|
-
TheCodeComponent.prototype.useHeight = function () {
|
|
7067
|
-
if (this.element.height) {
|
|
7068
|
-
this.resizeHeight = this.element.height;
|
|
7069
|
-
this.maxHeight = this.element.height;
|
|
7070
|
-
}
|
|
7071
|
-
};
|
|
7072
7004
|
TheCodeComponent.prototype.useReadonly = function () {
|
|
7073
7005
|
this.options = Object.assign(Object.assign({}, this.options), { readOnly: this.readonly, cursorBlinkRate: this.readonly ? -1 : 500 });
|
|
7074
7006
|
};
|
|
7075
|
-
TheCodeComponent.prototype.onResize = function (_a) {
|
|
7076
|
-
var height = _a.height;
|
|
7077
|
-
this.resizeHeight = height;
|
|
7078
|
-
slate.Transforms.select(this.editor, i1.AngularEditor.findPath(this.editor, this.element));
|
|
7079
|
-
CodeEditor.setCodeAttribute(this.editor, this.element, { height: height });
|
|
7080
|
-
this.maxHeight = height;
|
|
7081
|
-
};
|
|
7082
|
-
TheCodeComponent.prototype.onStartResize = function () {
|
|
7083
|
-
this.isResizing = true;
|
|
7084
|
-
};
|
|
7085
|
-
TheCodeComponent.prototype.onEndResize = function () {
|
|
7086
|
-
this.isResizing = false;
|
|
7087
|
-
};
|
|
7088
|
-
TheCodeComponent.prototype.onChangeWrap = function (value) {
|
|
7089
|
-
i1.AngularEditor.deselect(this.editor);
|
|
7090
|
-
this.codemirror.setOptionIfChanged('lineWrapping', value);
|
|
7091
|
-
CodeEditor.setCodeAttribute(this.editor, this.element, { autoWrap: value ? value : null });
|
|
7092
|
-
};
|
|
7093
7007
|
return TheCodeComponent;
|
|
7094
7008
|
}(TheBaseElementComponent));
|
|
7095
7009
|
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 });
|
|
7096
|
-
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheCodeComponent, selector: "div[theCode]",
|
|
7010
|
+
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: i5$2.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 </thy-icon-nav>\n</div>\n\n<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\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></ng-codemirror>\n", components: [{ type: i2__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: ["toolbarItem", "menus", "mode", "item", "itemMousedownHandle"] }, { type: i2__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i5__namespace$2.CodeMirrorComponent, selector: "ng-codemirror, [ngCodeMirror]", inputs: ["autoMaxHeight", "delayRefreshTime", "options"], outputs: ["focusChange"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { 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"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
7097
7011
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheCodeComponent, decorators: [{
|
|
7098
7012
|
type: i0.Component,
|
|
7099
7013
|
args: [{
|
|
7100
7014
|
selector: 'div[theCode]',
|
|
7101
|
-
templateUrl: './code.component.html'
|
|
7015
|
+
templateUrl: './code.component.html',
|
|
7016
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7102
7017
|
}]
|
|
7103
7018
|
}], ctorParameters: function () {
|
|
7104
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.ThyNotifyService }, { type: i0__namespace.NgZone }, { type:
|
|
7019
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.ThyNotifyService }, { type: i0__namespace.NgZone }, { type: TheCodeMode, decorators: [{
|
|
7105
7020
|
type: i0.Inject,
|
|
7106
7021
|
args: [THE_CODE_MODE_TOKEN]
|
|
7107
7022
|
}] }];
|
|
7108
7023
|
}, propDecorators: { codemirror: [{
|
|
7109
7024
|
type: i0.ViewChild,
|
|
7110
|
-
args: ['codemirror', { read:
|
|
7111
|
-
}], handleCodeMousedown: [{
|
|
7112
|
-
type: i0.HostListener,
|
|
7113
|
-
args: ['document: mousedown', ['$event']]
|
|
7025
|
+
args: ['codemirror', { read: i5$2.CodeMirrorComponent, static: false }]
|
|
7114
7026
|
}] } });
|
|
7115
7027
|
|
|
7116
7028
|
var withCode = function (editor) {
|
|
@@ -7324,7 +7236,7 @@
|
|
|
7324
7236
|
return TheLinkEditComponent;
|
|
7325
7237
|
}());
|
|
7326
7238
|
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 });
|
|
7327
|
-
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$
|
|
7239
|
+
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$2.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { type: i2__namespace$2.ThyFormGroupFooterComponent, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { type: i1__namespace$5.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thySquare", "thyBlock"] }], directives: [{ type: i4__namespace$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$2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { type: i5__namespace$3.ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutoSelect", "thyAutofocus"] }, { type: i4__namespace$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$2.ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }] });
|
|
7328
7240
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheLinkEditComponent, decorators: [{
|
|
7329
7241
|
type: i0.Component,
|
|
7330
7242
|
args: [{
|
|
@@ -7477,7 +7389,7 @@
|
|
|
7477
7389
|
};
|
|
7478
7390
|
return TheBaseLinkComponent;
|
|
7479
7391
|
}(TheBaseElementComponent));
|
|
7480
|
-
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 });
|
|
7392
|
+
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$1.Overlay }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace$6.ThyClickDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7481
7393
|
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 });
|
|
7482
7394
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheBaseLinkComponent, decorators: [{
|
|
7483
7395
|
type: i0.Component,
|
|
@@ -7485,7 +7397,7 @@
|
|
|
7485
7397
|
selector: '[TheBaseLinkComponent]',
|
|
7486
7398
|
template: ''
|
|
7487
7399
|
}]
|
|
7488
|
-
}], 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: [{
|
|
7400
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$3.ThyPopover }, { type: i2__namespace$1.Overlay }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace$6.ThyClickDispatcher }]; }, propDecorators: { mousedownHandle: [{
|
|
7489
7401
|
type: i0.HostListener,
|
|
7490
7402
|
args: ['click', ['$event']]
|
|
7491
7403
|
}] } });
|
|
@@ -7677,8 +7589,8 @@
|
|
|
7677
7589
|
};
|
|
7678
7590
|
return TheTableToolbarItemComponent;
|
|
7679
7591
|
}(TheToolbarBaseItemComponent));
|
|
7680
|
-
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 });
|
|
7681
|
-
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:
|
|
7592
|
+
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$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7593
|
+
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: i2__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: i7__namespace.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
7682
7594
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarItemComponent, decorators: [{
|
|
7683
7595
|
type: i0.Component,
|
|
7684
7596
|
args: [{
|
|
@@ -7688,7 +7600,7 @@
|
|
|
7688
7600
|
class: 'the-toolbar-dropdown-container'
|
|
7689
7601
|
}
|
|
7690
7602
|
}]
|
|
7691
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$6.ThyPopover }, { type: i2__namespace.Overlay }]; }, propDecorators: { item: [{
|
|
7603
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$6.ThyPopover }, { type: i2__namespace$1.Overlay }]; }, propDecorators: { item: [{
|
|
7692
7604
|
type: i0.Input
|
|
7693
7605
|
}], editor: [{
|
|
7694
7606
|
type: i0.Input
|
|
@@ -8450,6 +8362,49 @@
|
|
|
8450
8362
|
});
|
|
8451
8363
|
}
|
|
8452
8364
|
|
|
8365
|
+
var NavSplitLineComponent = /** @class */ (function () {
|
|
8366
|
+
function NavSplitLineComponent() {
|
|
8367
|
+
this.mode = exports.ToolbarItemMode.vertical;
|
|
8368
|
+
this.theNavSplitLine = true;
|
|
8369
|
+
}
|
|
8370
|
+
Object.defineProperty(NavSplitLineComponent.prototype, "horizontal", {
|
|
8371
|
+
get: function () {
|
|
8372
|
+
return this.mode === exports.ToolbarItemMode.horizontal;
|
|
8373
|
+
},
|
|
8374
|
+
enumerable: false,
|
|
8375
|
+
configurable: true
|
|
8376
|
+
});
|
|
8377
|
+
Object.defineProperty(NavSplitLineComponent.prototype, "vertical", {
|
|
8378
|
+
get: function () {
|
|
8379
|
+
return this.mode === exports.ToolbarItemMode.vertical;
|
|
8380
|
+
},
|
|
8381
|
+
enumerable: false,
|
|
8382
|
+
configurable: true
|
|
8383
|
+
});
|
|
8384
|
+
NavSplitLineComponent.prototype.ngOnInit = function () { };
|
|
8385
|
+
return NavSplitLineComponent;
|
|
8386
|
+
}());
|
|
8387
|
+
NavSplitLineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: NavSplitLineComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8388
|
+
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 });
|
|
8389
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: NavSplitLineComponent, decorators: [{
|
|
8390
|
+
type: i0.Component,
|
|
8391
|
+
args: [{
|
|
8392
|
+
selector: 'nav-split-line',
|
|
8393
|
+
template: ''
|
|
8394
|
+
}]
|
|
8395
|
+
}], ctorParameters: function () { return []; }, propDecorators: { mode: [{
|
|
8396
|
+
type: i0.Input
|
|
8397
|
+
}], theNavSplitLine: [{
|
|
8398
|
+
type: i0.HostBinding,
|
|
8399
|
+
args: ['class.the-nav-split-line']
|
|
8400
|
+
}], horizontal: [{
|
|
8401
|
+
type: i0.HostBinding,
|
|
8402
|
+
args: ['class.horizontal']
|
|
8403
|
+
}], vertical: [{
|
|
8404
|
+
type: i0.HostBinding,
|
|
8405
|
+
args: ['class.vertical']
|
|
8406
|
+
}] } });
|
|
8407
|
+
|
|
8453
8408
|
var TheTableToolbarComponent = /** @class */ (function () {
|
|
8454
8409
|
function TheTableToolbarComponent(ngZone, colorSelectService, popoverRef) {
|
|
8455
8410
|
var _this = this;
|
|
@@ -8571,7 +8526,7 @@
|
|
|
8571
8526
|
return TheTableToolbarComponent;
|
|
8572
8527
|
}());
|
|
8573
8528
|
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 });
|
|
8574
|
-
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:
|
|
8529
|
+
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: i2__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: i2__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: i7__namespace.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
8575
8530
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTableToolbarComponent, decorators: [{
|
|
8576
8531
|
type: i0.Component,
|
|
8577
8532
|
args: [{
|
|
@@ -8635,7 +8590,7 @@
|
|
|
8635
8590
|
return TheContextMenuComponent;
|
|
8636
8591
|
}());
|
|
8637
8592
|
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 });
|
|
8638
|
-
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$
|
|
8593
|
+
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$1.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$1.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$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }, { type: i5__namespace$1.ThyActionMenuItemExtendIconDirective, selector: "[thyActionMenuItemExtendIcon]" }] });
|
|
8639
8594
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheContextMenuComponent, decorators: [{
|
|
8640
8595
|
type: i0.Component,
|
|
8641
8596
|
args: [{
|
|
@@ -8946,11 +8901,11 @@
|
|
|
8946
8901
|
};
|
|
8947
8902
|
return TableService;
|
|
8948
8903
|
}());
|
|
8949
|
-
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 });
|
|
8904
|
+
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$1.Overlay }, { token: TableStore }, { token: TheTableContextMenuService }, { token: i0__namespace.NgZone }, { token: TheContextService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8950
8905
|
TableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TableService });
|
|
8951
8906
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TableService, decorators: [{
|
|
8952
8907
|
type: i0.Injectable
|
|
8953
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$3.ThyPopover }, { type: i2__namespace.Overlay }, { type: TableStore }, { type: TheTableContextMenuService }, { type: i0__namespace.NgZone }, { type: TheContextService }]; } });
|
|
8908
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$3.ThyPopover }, { type: i2__namespace$1.Overlay }, { type: TableStore }, { type: TheTableContextMenuService }, { type: i0__namespace.NgZone }, { type: TheContextService }]; } });
|
|
8954
8909
|
|
|
8955
8910
|
var SLA_TABLE_SELECTOR = '.slate-element-table';
|
|
8956
8911
|
var SLA_TABLE_CELL_SELECTOR = '.slate-element-table-cell';
|
|
@@ -9038,7 +8993,7 @@
|
|
|
9038
8993
|
return TheInsertMarkComponent;
|
|
9039
8994
|
}());
|
|
9040
8995
|
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 });
|
|
9041
|
-
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:
|
|
8996
|
+
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: i7__namespace.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"] }] });
|
|
9042
8997
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInsertMarkComponent, decorators: [{
|
|
9043
8998
|
type: i0.Component,
|
|
9044
8999
|
args: [{
|
|
@@ -10703,7 +10658,7 @@
|
|
|
10703
10658
|
};
|
|
10704
10659
|
return TheTdComponent;
|
|
10705
10660
|
}(TheBaseElementComponent));
|
|
10706
|
-
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 });
|
|
10661
|
+
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$1.Overlay }, { token: ColumnResizingStore }, { token: i2__namespace$1.ScrollDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10707
10662
|
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"] }] });
|
|
10708
10663
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheTdComponent, decorators: [{
|
|
10709
10664
|
type: i0.Component,
|
|
@@ -10712,7 +10667,7 @@
|
|
|
10712
10667
|
templateUrl: './td.component.html',
|
|
10713
10668
|
providers: [ColumnResizingStore]
|
|
10714
10669
|
}]
|
|
10715
|
-
}], 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: [{
|
|
10670
|
+
}], 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$1.Overlay }, { type: ColumnResizingStore }, { type: i2__namespace$1.ScrollDispatcher }]; }, propDecorators: { backgroundColor: [{
|
|
10716
10671
|
type: i0.HostBinding,
|
|
10717
10672
|
args: ['style.backgroundColor']
|
|
10718
10673
|
}], colspan: [{
|
|
@@ -11293,7 +11248,7 @@
|
|
|
11293
11248
|
return TheVerticalToolbarItemComponent;
|
|
11294
11249
|
}(TheToolbarBaseItemComponent));
|
|
11295
11250
|
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 });
|
|
11296
|
-
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:
|
|
11251
|
+
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: i2__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$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }], directives: [{ type: i7__namespace.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$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$1.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$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
11297
11252
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, decorators: [{
|
|
11298
11253
|
type: i0.Component,
|
|
11299
11254
|
args: [{
|
|
@@ -11555,7 +11510,7 @@
|
|
|
11555
11510
|
return TheToolbarItemComponent;
|
|
11556
11511
|
}(TheToolbarBaseItemComponent));
|
|
11557
11512
|
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 });
|
|
11558
|
-
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:
|
|
11513
|
+
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: i2__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: i7__namespace.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
11559
11514
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarItemComponent, decorators: [{
|
|
11560
11515
|
type: i0.Component,
|
|
11561
11516
|
args: [{
|
|
@@ -11622,7 +11577,7 @@
|
|
|
11622
11577
|
return TheQuickToolbarComponent;
|
|
11623
11578
|
}(core.mixinUnsubscribe(core.MixinBase)));
|
|
11624
11579
|
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 });
|
|
11625
|
-
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$
|
|
11580
|
+
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$3.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"] }] });
|
|
11626
11581
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
|
|
11627
11582
|
type: i0.Component,
|
|
11628
11583
|
args: [{
|
|
@@ -11746,141 +11701,6 @@
|
|
|
11746
11701
|
};
|
|
11747
11702
|
};
|
|
11748
11703
|
|
|
11749
|
-
var TheFontSizeToolbarItemComponent = /** @class */ (function (_super) {
|
|
11750
|
-
__extends(TheFontSizeToolbarItemComponent, _super);
|
|
11751
|
-
function TheFontSizeToolbarItemComponent(elementRef, thyPopover, viewContainerRef, overlay) {
|
|
11752
|
-
var _this = _super.call(this) || this;
|
|
11753
|
-
_this.elementRef = elementRef;
|
|
11754
|
-
_this.thyPopover = thyPopover;
|
|
11755
|
-
_this.viewContainerRef = viewContainerRef;
|
|
11756
|
-
_this.overlay = overlay;
|
|
11757
|
-
_this.fontSizes = FontSizes;
|
|
11758
|
-
_this.disabled = false;
|
|
11759
|
-
_this.disableGroup = HEADING_TYPES;
|
|
11760
|
-
_this.toolbarItemContainer = true;
|
|
11761
|
-
_this.fontSizeToolbarItem = true;
|
|
11762
|
-
return _this;
|
|
11763
|
-
}
|
|
11764
|
-
Object.defineProperty(TheFontSizeToolbarItemComponent.prototype, "isOpen", {
|
|
11765
|
-
get: function () {
|
|
11766
|
-
return this.dropdownPopoverRef && this.dropdownPopoverRef.getOverlayRef() && this.dropdownPopoverRef.getOverlayRef().hasAttached();
|
|
11767
|
-
},
|
|
11768
|
-
enumerable: false,
|
|
11769
|
-
configurable: true
|
|
11770
|
-
});
|
|
11771
|
-
Object.defineProperty(TheFontSizeToolbarItemComponent.prototype, "disableClass", {
|
|
11772
|
-
get: function () {
|
|
11773
|
-
return this.disabled;
|
|
11774
|
-
},
|
|
11775
|
-
enumerable: false,
|
|
11776
|
-
configurable: true
|
|
11777
|
-
});
|
|
11778
|
-
TheFontSizeToolbarItemComponent.prototype.toggleDropdown = function (event) {
|
|
11779
|
-
var _a;
|
|
11780
|
-
_super.prototype.execute.call(this, event);
|
|
11781
|
-
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || this.disabled) {
|
|
11782
|
-
return;
|
|
11783
|
-
}
|
|
11784
|
-
this.openDropdownPopover();
|
|
11785
|
-
};
|
|
11786
|
-
TheFontSizeToolbarItemComponent.prototype.handleDocumentMouseDown = function (event) {
|
|
11787
|
-
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
11788
|
-
this.closeDropdownPopover();
|
|
11789
|
-
}
|
|
11790
|
-
};
|
|
11791
|
-
TheFontSizeToolbarItemComponent.prototype.ngOnInit = function () {
|
|
11792
|
-
this.activeSize = this.fontSizes[2];
|
|
11793
|
-
};
|
|
11794
|
-
TheFontSizeToolbarItemComponent.prototype.statusChange = function (editor) {
|
|
11795
|
-
if (editor.selection) {
|
|
11796
|
-
var anchorBlock$1 = anchorBlock(editor);
|
|
11797
|
-
if (anchorBlock$1 && this.disableGroup.includes(anchorBlock$1.type)) {
|
|
11798
|
-
this.activeSize = null;
|
|
11799
|
-
this.disabled = true;
|
|
11800
|
-
return;
|
|
11801
|
-
}
|
|
11802
|
-
var marks = getSelectionMarks(editor);
|
|
11803
|
-
var fontSizeMark = marks[exports.MarkTypes.fontSize];
|
|
11804
|
-
this.activeSize = fontSizeMark ? fontSizeMark : this.fontSizes[2];
|
|
11805
|
-
this.disabled = false;
|
|
11806
|
-
}
|
|
11807
|
-
};
|
|
11808
|
-
TheFontSizeToolbarItemComponent.prototype.itemMousedown = function (event, size) {
|
|
11809
|
-
var _a, _b;
|
|
11810
|
-
_super.prototype.execute.call(this, event);
|
|
11811
|
-
this.closeDropdownPopover();
|
|
11812
|
-
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || ((_b = this.editor) === null || _b === void 0 ? void 0 : _b.readOnly)) {
|
|
11813
|
-
return;
|
|
11814
|
-
}
|
|
11815
|
-
var anchorBlock$1 = anchorBlock(this.editor);
|
|
11816
|
-
if (anchorBlock$1 && this.disableGroup.includes(anchorBlock$1.type)) {
|
|
11817
|
-
return;
|
|
11818
|
-
}
|
|
11819
|
-
slate.Editor.addMark(this.editor, exports.MarkTypes.fontSize, size);
|
|
11820
|
-
};
|
|
11821
|
-
TheFontSizeToolbarItemComponent.prototype.openDropdownPopover = function () {
|
|
11822
|
-
var _a;
|
|
11823
|
-
this.dropdownPopoverRef = this.thyPopover.open(this.dropdownTemplate, {
|
|
11824
|
-
origin: this.elementRef,
|
|
11825
|
-
panelClass: ['the-toolbar-dropdown-popover', (_a = this.item) === null || _a === void 0 ? void 0 : _a.key],
|
|
11826
|
-
placement: 'bottomLeft',
|
|
11827
|
-
insideClosable: false,
|
|
11828
|
-
backdropClosable: true,
|
|
11829
|
-
hasBackdrop: false,
|
|
11830
|
-
offset: 10,
|
|
11831
|
-
viewContainerRef: this.viewContainerRef,
|
|
11832
|
-
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
11833
|
-
});
|
|
11834
|
-
};
|
|
11835
|
-
TheFontSizeToolbarItemComponent.prototype.closeDropdownPopover = function () {
|
|
11836
|
-
var _a;
|
|
11837
|
-
if (this.dropdownPopoverRef) {
|
|
11838
|
-
(_a = this.dropdownPopoverRef) === null || _a === void 0 ? void 0 : _a.close();
|
|
11839
|
-
}
|
|
11840
|
-
};
|
|
11841
|
-
return TheFontSizeToolbarItemComponent;
|
|
11842
|
-
}(TheToolbarBaseItemComponent));
|
|
11843
|
-
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 });
|
|
11844
|
-
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 }}px</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 }}px</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]" }] });
|
|
11845
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheFontSizeToolbarItemComponent, decorators: [{
|
|
11846
|
-
type: i0.Component,
|
|
11847
|
-
args: [{
|
|
11848
|
-
selector: 'the-font-size-toolbar-item',
|
|
11849
|
-
templateUrl: './toolbar-item.component.html'
|
|
11850
|
-
}]
|
|
11851
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: { editor: [{
|
|
11852
|
-
type: i0.Input
|
|
11853
|
-
}], item: [{
|
|
11854
|
-
type: i0.Input
|
|
11855
|
-
}], dropdownTemplate: [{
|
|
11856
|
-
type: i0.ViewChild,
|
|
11857
|
-
args: ['dropdownTemplate', { static: true }]
|
|
11858
|
-
}], toolbarItemContainer: [{
|
|
11859
|
-
type: i0.HostBinding,
|
|
11860
|
-
args: ['class.the-toolbar-dropdown-container']
|
|
11861
|
-
}], fontSizeToolbarItem: [{
|
|
11862
|
-
type: i0.HostBinding,
|
|
11863
|
-
args: ['class.the-font-size-toolbar-item']
|
|
11864
|
-
}], disableClass: [{
|
|
11865
|
-
type: i0.HostBinding,
|
|
11866
|
-
args: ['class.disabled']
|
|
11867
|
-
}], toggleDropdown: [{
|
|
11868
|
-
type: i0.HostListener,
|
|
11869
|
-
args: ['mousedown', ['$event']]
|
|
11870
|
-
}], handleDocumentMouseDown: [{
|
|
11871
|
-
type: i0.HostListener,
|
|
11872
|
-
args: ['document: mousedown', ['$event']]
|
|
11873
|
-
}] } });
|
|
11874
|
-
|
|
11875
|
-
var FontSizes = [12, 13, 14, 15, 16, 19, 22, 24, 29, 32, 40, 48];
|
|
11876
|
-
var FontSizeOptions = [
|
|
11877
|
-
{
|
|
11878
|
-
key: exports.MarkTypes.fontSize,
|
|
11879
|
-
name: '字号',
|
|
11880
|
-
iconComponent: TheFontSizeToolbarItemComponent
|
|
11881
|
-
}
|
|
11882
|
-
];
|
|
11883
|
-
|
|
11884
11704
|
var internalPlugins = [
|
|
11885
11705
|
withTheHistory,
|
|
11886
11706
|
withAutoInsertData(),
|
|
@@ -11922,7 +11742,7 @@
|
|
|
11922
11742
|
withDeserializeMd(),
|
|
11923
11743
|
withQuickInsert
|
|
11924
11744
|
];
|
|
11925
|
-
var internalToolbarItems = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(
|
|
11745
|
+
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));
|
|
11926
11746
|
var toolbarCompose = function (toolbarItems) {
|
|
11927
11747
|
if (toolbarItems === void 0) { toolbarItems = []; }
|
|
11928
11748
|
return __spreadArray(__spreadArray([], __read(internalToolbarItems)), __read(toolbarItems));
|
|
@@ -12314,7 +12134,7 @@
|
|
|
12314
12134
|
return TheToolbarComponent;
|
|
12315
12135
|
}());
|
|
12316
12136
|
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 });
|
|
12317
|
-
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:
|
|
12137
|
+
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: i2__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"] }] });
|
|
12318
12138
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarComponent, decorators: [{
|
|
12319
12139
|
type: i0.Component,
|
|
12320
12140
|
args: [{
|
|
@@ -12454,7 +12274,7 @@
|
|
|
12454
12274
|
};
|
|
12455
12275
|
return TheInlineToolbarComponent;
|
|
12456
12276
|
}());
|
|
12457
|
-
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 });
|
|
12277
|
+
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$1.ScrollDispatcher }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }, { token: TheContextService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12458
12278
|
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 });
|
|
12459
12279
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheInlineToolbarComponent, decorators: [{
|
|
12460
12280
|
type: i0.Component,
|
|
@@ -12466,7 +12286,7 @@
|
|
|
12466
12286
|
},
|
|
12467
12287
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
12468
12288
|
}]
|
|
12469
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i2__namespace.ScrollDispatcher }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }, { type: TheContextService }]; }, propDecorators: { editor: [{
|
|
12289
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i2__namespace$1.ScrollDispatcher }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }, { type: TheContextService }]; }, propDecorators: { editor: [{
|
|
12470
12290
|
type: i0.Input
|
|
12471
12291
|
}], toolbarItems: [{
|
|
12472
12292
|
type: i0.Input
|
|
@@ -13226,7 +13046,7 @@
|
|
|
13226
13046
|
return TheToolbarGroupComponent;
|
|
13227
13047
|
}());
|
|
13228
13048
|
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 });
|
|
13229
|
-
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:
|
|
13049
|
+
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: i2__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }], directives: [{ type: i7__namespace.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
13230
13050
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheToolbarGroupComponent, decorators: [{
|
|
13231
13051
|
type: i0.Component,
|
|
13232
13052
|
args: [{
|
|
@@ -13254,21 +13074,19 @@
|
|
|
13254
13074
|
var TETHYS = [
|
|
13255
13075
|
i4$1.ThyIconModule,
|
|
13256
13076
|
avatar.ThyAvatarModule,
|
|
13257
|
-
|
|
13258
|
-
i2$
|
|
13259
|
-
i5$
|
|
13260
|
-
i2$
|
|
13261
|
-
|
|
13077
|
+
i2$1.ThyNavModule,
|
|
13078
|
+
i2$2.ThyFormModule,
|
|
13079
|
+
i5$3.ThySharedModule,
|
|
13080
|
+
i2$3.ThyListModule,
|
|
13081
|
+
i7.ThyTooltipModule,
|
|
13262
13082
|
i4.ThyProgressModule,
|
|
13263
13083
|
autocomplete.ThyAutocompleteModule,
|
|
13264
|
-
i5$
|
|
13084
|
+
i5$1.ThyActionMenuModule,
|
|
13265
13085
|
i5.ThyInputModule,
|
|
13266
13086
|
select.ThySelectModule,
|
|
13267
13087
|
i1$5.ThyButtonModule,
|
|
13268
13088
|
i1$4.ThyNotifyModule,
|
|
13269
|
-
i1$1.ThyAlertModule
|
|
13270
|
-
i8.ThyResizableModule,
|
|
13271
|
-
i5$3.ThySwitchModule
|
|
13089
|
+
i1$1.ThyAlertModule
|
|
13272
13090
|
];
|
|
13273
13091
|
var COMPONENTS = [
|
|
13274
13092
|
TheToolbarComponent,
|
|
@@ -13288,8 +13106,7 @@
|
|
|
13288
13106
|
TheTableSelectComponent,
|
|
13289
13107
|
TheTableToolbarItemComponent,
|
|
13290
13108
|
TheConversionHintComponent,
|
|
13291
|
-
TheVerticalToolbarItemComponent
|
|
13292
|
-
TheFontSizeToolbarItemComponent
|
|
13109
|
+
TheVerticalToolbarItemComponent
|
|
13293
13110
|
];
|
|
13294
13111
|
var PLUGIN_COMPONENTS = [
|
|
13295
13112
|
TheImageComponent,
|
|
@@ -13335,8 +13152,7 @@
|
|
|
13335
13152
|
TheTableSelectComponent,
|
|
13336
13153
|
TheTableToolbarItemComponent,
|
|
13337
13154
|
TheConversionHintComponent,
|
|
13338
|
-
TheVerticalToolbarItemComponent,
|
|
13339
|
-
TheFontSizeToolbarItemComponent, TheImageComponent,
|
|
13155
|
+
TheVerticalToolbarItemComponent, TheImageComponent,
|
|
13340
13156
|
TheTemplateComponent,
|
|
13341
13157
|
TheHrComponent,
|
|
13342
13158
|
TheBlockquoteComponent,
|
|
@@ -13355,33 +13171,31 @@
|
|
|
13355
13171
|
TheTdComponent,
|
|
13356
13172
|
ThePlaceholderComponent], imports: [i6.CommonModule, i1.SlateModule, i4$2.FormsModule, i4$1.ThyIconModule,
|
|
13357
13173
|
avatar.ThyAvatarModule,
|
|
13358
|
-
|
|
13359
|
-
i2$
|
|
13360
|
-
i5$
|
|
13361
|
-
i2$
|
|
13362
|
-
|
|
13174
|
+
i2$1.ThyNavModule,
|
|
13175
|
+
i2$2.ThyFormModule,
|
|
13176
|
+
i5$3.ThySharedModule,
|
|
13177
|
+
i2$3.ThyListModule,
|
|
13178
|
+
i7.ThyTooltipModule,
|
|
13363
13179
|
i4.ThyProgressModule,
|
|
13364
13180
|
autocomplete.ThyAutocompleteModule,
|
|
13365
|
-
i5$
|
|
13181
|
+
i5$1.ThyActionMenuModule,
|
|
13366
13182
|
i5.ThyInputModule,
|
|
13367
13183
|
select.ThySelectModule,
|
|
13368
13184
|
i1$5.ThyButtonModule,
|
|
13369
13185
|
i1$4.ThyNotifyModule,
|
|
13370
|
-
i1$1.ThyAlertModule,
|
|
13371
|
-
i8.ThyResizableModule,
|
|
13372
|
-
i5$3.ThySwitchModule, i7.CodemirrorModule, TheColumnSizeModule], exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent] });
|
|
13186
|
+
i1$1.ThyAlertModule, i5$2.CodemirrorModule, TheColumnSizeModule], exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent] });
|
|
13373
13187
|
TheEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheEditorModule, providers: [
|
|
13374
13188
|
{
|
|
13375
13189
|
provide: TheToolbarGroupToken,
|
|
13376
13190
|
useValue: TheToolbarGroupComponent
|
|
13377
13191
|
},
|
|
13378
13192
|
THE_CODE_MODE_PROVIDER
|
|
13379
|
-
], imports: [__spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [
|
|
13193
|
+
], imports: [__spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [i5$2.CodemirrorModule, TheColumnSizeModule])] });
|
|
13380
13194
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TheEditorModule, decorators: [{
|
|
13381
13195
|
type: i0.NgModule,
|
|
13382
13196
|
args: [{
|
|
13383
13197
|
declarations: __spreadArray(__spreadArray(__spreadArray([TheEditorComponent], __read(PIPES)), __read(COMPONENTS)), __read(PLUGIN_COMPONENTS)),
|
|
13384
|
-
imports: __spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [
|
|
13198
|
+
imports: __spreadArray(__spreadArray([i6.CommonModule, i1.SlateModule, i4$2.FormsModule], __read(TETHYS)), [i5$2.CodemirrorModule, TheColumnSizeModule]),
|
|
13385
13199
|
exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent],
|
|
13386
13200
|
entryComponents: __spreadArray(__spreadArray([], __read(COMPONENTS)), __read(PLUGIN_COMPONENTS)),
|
|
13387
13201
|
providers: [
|
|
@@ -13450,7 +13264,7 @@
|
|
|
13450
13264
|
exports.THE_UPLOAD_SERVICE_TOKEN = THE_UPLOAD_SERVICE_TOKEN;
|
|
13451
13265
|
exports.TableEditor = TableEditor;
|
|
13452
13266
|
exports.TheBaseElementComponent = TheBaseElementComponent;
|
|
13453
|
-
exports.
|
|
13267
|
+
exports.TheCodeMode = TheCodeMode;
|
|
13454
13268
|
exports.TheContextService = TheContextService;
|
|
13455
13269
|
exports.TheDefaultElementComponent = TheDefaultElementComponent;
|
|
13456
13270
|
exports.TheEditor = TheEditor;
|