@worktile/theia 3.0.3 → 3.0.6
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 +277 -371
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/components/toolbar/toolbar.component.d.ts +1 -2
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +3 -13
- package/components/toolbar-group/toolbar-group.component.d.ts +2 -2
- package/components/toolbar-item/toolbar-item.component.d.ts +3 -11
- package/constants/node-types.d.ts +2 -1
- package/core/toolbar-item/base-toolbar-item.d.ts +29 -0
- package/editor.module.d.ts +42 -44
- package/esm2015/components/inline-toolbar/inline-toolbar.component.js +2 -2
- package/esm2015/components/toolbar/toolbar.component.js +14 -24
- package/esm2015/components/toolbar-dropdown/toolbar-dropdown.component.js +11 -41
- package/esm2015/components/toolbar-group/toolbar-group.component.js +4 -4
- package/esm2015/components/toolbar-item/toolbar-item.component.js +24 -41
- package/esm2015/constants/node-types.js +3 -2
- package/esm2015/core/toolbar-item/base-toolbar-item.js +92 -0
- package/esm2015/editor.component.js +2 -2
- package/esm2015/editor.module.js +1 -4
- package/esm2015/interfaces/plugins/plugins.js +1 -1
- package/esm2015/interfaces/toolbar.js +2 -2
- package/esm2015/plugins/align/align.editor.js +3 -7
- package/esm2015/plugins/align/align.plugin.js +7 -4
- package/esm2015/plugins/code/code.component.js +9 -6
- package/esm2015/plugins/color/color.plugin.js +6 -3
- package/esm2015/plugins/color/toolbar-item.component.js +14 -23
- package/esm2015/plugins/common/reset-type.plugin.js +3 -3
- package/esm2015/plugins/deserializers/deserialize-html.plugin.js +3 -3
- package/esm2015/plugins/font-size/font-size.editor.js +8 -14
- package/esm2015/plugins/heading/heading.editor.js +3 -2
- package/esm2015/plugins/heading/heading.plugin.js +2 -2
- package/esm2015/plugins/indent/indent.editor.js +1 -10
- package/esm2015/plugins/indent/indent.plugin.js +8 -7
- package/esm2015/plugins/inline-code/inline-code.plugin.js +6 -3
- package/esm2015/plugins/link/link.plugin.js +6 -3
- package/esm2015/plugins/mark/mark.plugin.js +6 -3
- package/esm2015/plugins/public-api.js +1 -2
- package/esm2015/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.js +2 -2
- package/esm2015/plugins/table/components/table.component.js +4 -1
- package/esm2015/plugins/table/toolbar-item.component.js +10 -20
- package/esm2015/plugins/vertical-align/toolbar-item.component.js +6 -20
- package/esm2015/plugins/vertical-align/vertical-align.editor.js +2 -2
- package/esm2015/public-api.js +2 -2
- package/esm2015/queries/get-insert-elements-path.js +1 -1
- package/esm2015/queries/get-plugin-by-toolbar.js +13 -0
- package/esm2015/queries/get-toolbar-disabled.js +14 -0
- package/esm2015/queries/index.js +4 -2
- package/esm2015/utils/fragment.js +7 -4
- package/fesm2015/worktile-theia.js +244 -336
- package/fesm2015/worktile-theia.js.map +1 -1
- package/interfaces/plugins/plugins.d.ts +5 -2
- package/interfaces/toolbar.d.ts +4 -1
- package/package.json +1 -1
- package/plugins/code/code.component.d.ts +2 -2
- package/plugins/color/toolbar-item.component.d.ts +3 -9
- package/plugins/font-size/font-size.editor.d.ts +0 -1
- package/plugins/heading/heading.plugin.d.ts +3 -3
- package/plugins/indent/indent.editor.d.ts +0 -1
- package/plugins/public-api.d.ts +0 -1
- package/plugins/table/toolbar-item.component.d.ts +3 -9
- package/plugins/vertical-align/toolbar-item.component.d.ts +5 -13
- package/public-api.d.ts +1 -1
- package/queries/get-plugin-by-toolbar.d.ts +3 -0
- package/queries/get-toolbar-disabled.d.ts +4 -0
- package/queries/index.d.ts +3 -1
- package/utils/fragment.d.ts +2 -2
- package/components/toolbar-base-item/toolbar-base-item.component.d.ts +0 -11
- package/esm2015/components/toolbar-base-item/toolbar-base-item.component.js +0 -24
- package/esm2015/plugins/indent/toolbar-item.component.js +0 -115
- package/plugins/indent/toolbar-item.component.d.ts +0 -36
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('slate-angular'), require('ngx-tethys/core'), require('is-hotkey'), require('slate'), require('slate-history'), require('rxjs'), require('ngx-tethys/popover'), require('ngx-tethys/icon'), require('ngx-tethys/input'), require('@atinc/selene'), require('lodash'), require('ngx-tethys/util'), require('@angular/cdk/overlay'), require('marked'), require('ngx-tethys'), require('ngx-tethys/alert'), require('rxjs/operators'), require('ngx-tethys/uploader'), require('@angular/platform-browser'), require('ngx-tethys/progress'), require('ngx-tethys/nav'), require('ngx-tethys/tooltip'), require('ng-codemirror'), require('ngx-tethys/notify'), require('ngx-tethys/action-menu'), require('ngx-tethys/switch'), require('ngx-tethys/resizable'), require('is-url'), require('ngx-tethys/button'), require('ngx-tethys/form'), require('ngx-tethys/shared'), require('@angular/cdk/coercion'), require('@angular/cdk/portal'), require('ngx-tethys/list'), require('ngx-tethys/autocomplete'), require('ngx-tethys/avatar'), require('ngx-tethys/select')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@worktile/theia', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'slate-angular', 'ngx-tethys/core', 'is-hotkey', 'slate', 'slate-history', 'rxjs', 'ngx-tethys/popover', 'ngx-tethys/icon', 'ngx-tethys/input', '@atinc/selene', 'lodash', 'ngx-tethys/util', '@angular/cdk/overlay', 'marked', 'ngx-tethys', 'ngx-tethys/alert', 'rxjs/operators', 'ngx-tethys/uploader', '@angular/platform-browser', 'ngx-tethys/progress', 'ngx-tethys/nav', 'ngx-tethys/tooltip', 'ng-codemirror', 'ngx-tethys/notify', 'ngx-tethys/action-menu', 'ngx-tethys/switch', 'ngx-tethys/resizable', 'is-url', 'ngx-tethys/button', 'ngx-tethys/form', 'ngx-tethys/shared', '@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.rxjs, global.i1$1, global.
|
|
5
|
-
})(this, (function (exports, i0, i10, i4
|
|
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.rxjs, global.i1$1, global.i3, global.i5, global.selene, global._lodash, global.util, global.ng.cdk.overlay, global.marked, global.i1$2, global.i1$3, global.rxjs.operators, global.uploader, global.ng.platformBrowser, global.i6, global.i3$1, global.i5$1, global.i8, global.i1$5, global.i2$1, global.i5$2, global.i9, global.isUrl, global.i1$6, global.i2$2, global.i5$3, global.ng.cdk.coercion, global.ng.cdk.portal, global.i1$7, global.autocomplete, global.avatar, global.select));
|
|
5
|
+
})(this, (function (exports, i0, i10, i4, i1, core, isHotkey, slate, slateHistory, rxjs, i1$1, i3, i5, selene, _lodash, util, i2, marked, i1$2, i1$3, operators, uploader, i1$4, i6, i3$1, i5$1, i8, i1$5, i2$1, i5$2, i9, isUrl, i1$6, i2$2, i5$3, coercion, portal, i1$7, autocomplete, avatar, select) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
28
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
29
|
-
var i4__namespace
|
|
29
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
30
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
31
31
|
var isHotkey__default = /*#__PURE__*/_interopDefaultLegacy(isHotkey);
|
|
32
32
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
33
|
-
var
|
|
33
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
34
34
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
35
35
|
var _lodash__namespace = /*#__PURE__*/_interopNamespace(_lodash);
|
|
36
36
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
40
40
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
41
41
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
42
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
42
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
43
43
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
44
44
|
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
45
45
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
@@ -510,7 +510,8 @@
|
|
|
510
510
|
var CONTAINER_BLOCKS = [exports.ElementKinds.blockquote, exports.ElementKinds.tableCell];
|
|
511
511
|
var LIST_BLOCK_TYPES = [exports.ElementKinds.numberedList, exports.ElementKinds.bulletedList];
|
|
512
512
|
var VOID_BLOCK_TYPES = [exports.ElementKinds.image, exports.ElementKinds.hr];
|
|
513
|
-
var
|
|
513
|
+
var BLOCK_DELETE_BACKWARD_TYPES = [exports.ElementKinds.tableCell];
|
|
514
|
+
var DISABLED_OPERATE_TYPES = [exports.ElementKinds.code, exports.ElementKinds.hr];
|
|
514
515
|
|
|
515
516
|
exports.ErrorCodes = void 0;
|
|
516
517
|
(function (ErrorCodes) {
|
|
@@ -810,7 +811,7 @@
|
|
|
810
811
|
exports.ToolbarItemType = void 0;
|
|
811
812
|
(function (ToolbarItemType) {
|
|
812
813
|
ToolbarItemType["default"] = "default";
|
|
813
|
-
ToolbarItemType["
|
|
814
|
+
ToolbarItemType["dropdown"] = "dropdown";
|
|
814
815
|
})(exports.ToolbarItemType || (exports.ToolbarItemType = {}));
|
|
815
816
|
exports.ToolbarAlignment = void 0;
|
|
816
817
|
(function (ToolbarAlignment) {
|
|
@@ -1034,7 +1035,7 @@
|
|
|
1034
1035
|
return TheColorSelectComponent;
|
|
1035
1036
|
}());
|
|
1036
1037
|
TheColorSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheColorSelectComponent, deps: [{ token: i1__namespace$1.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1037
|
-
TheColorSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheColorSelectComponent, selector: "the-color-select", inputs: { selectedColor: "selectedColor", selectAction: "selectAction", showCustom: "showCustom", colors: "colors", option: "option" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)", "mousedown": "handleMouseDown($event)", "keydown": "handleKeydown($event)" } }, ngImport: i0__namespace, template: "<div class=\"color-container\">\n <div class=\"colors\">\n <div *ngFor=\"let row of selectColors; let rowIndex = index\">\n <span\n class=\"color-item\"\n *ngFor=\"let _color of row.rowValue; let i = index\"\n [ngClass]=\"_color.classMaps\"\n (mousedown)=\"_selectColor($event, _color.value)\"\n >\n <span [ngStyle]=\"{ background: _color.value }\">\n <thy-icon thyIconName=\"check\" [ngStyle]=\"{ color: row.tickColor }\"></thy-icon>\n </span>\n </span>\n </div>\n </div>\n <div *ngIf=\"option.showCustom\" class=\"select-color\">\n <span class=\"color\" [ngStyle]=\"{ background: selectedColor }\"></span>\n #\n <input\n thyInput\n maxlength=\"6\"\n (keydown.enter)=\"customInputColorEnter($event)\"\n onkeyup=\"value=value.replace(/[^0-9A-Fa-f]/g,'')\"\n class=\"value\"\n [(ngModel)]=\"customColor\"\n (ngModelChange)=\"colorChange(false)\"\n />\n </div>\n</div>\n", components: [{ type:
|
|
1038
|
+
TheColorSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheColorSelectComponent, selector: "the-color-select", inputs: { selectedColor: "selectedColor", selectAction: "selectAction", showCustom: "showCustom", colors: "colors", option: "option" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)", "mousedown": "handleMouseDown($event)", "keydown": "handleKeydown($event)" } }, ngImport: i0__namespace, template: "<div class=\"color-container\">\n <div class=\"colors\">\n <div *ngFor=\"let row of selectColors; let rowIndex = index\">\n <span\n class=\"color-item\"\n *ngFor=\"let _color of row.rowValue; let i = index\"\n [ngClass]=\"_color.classMaps\"\n (mousedown)=\"_selectColor($event, _color.value)\"\n >\n <span [ngStyle]=\"{ background: _color.value }\">\n <thy-icon thyIconName=\"check\" [ngStyle]=\"{ color: row.tickColor }\"></thy-icon>\n </span>\n </span>\n </div>\n </div>\n <div *ngIf=\"option.showCustom\" class=\"select-color\">\n <span class=\"color\" [ngStyle]=\"{ background: selectedColor }\"></span>\n #\n <input\n thyInput\n maxlength=\"6\"\n (keydown.enter)=\"customInputColorEnter($event)\"\n onkeyup=\"value=value.replace(/[^0-9A-Fa-f]/g,'')\"\n class=\"value\"\n [(ngModel)]=\"customColor\"\n (ngModelChange)=\"colorChange(false)\"\n />\n </div>\n</div>\n", components: [{ type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5__namespace.ThyInputDirective, selector: "[thyInput]", inputs: ["thySize", "thyAutocomplete"] }, { type: i4__namespace.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1038
1039
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheColorSelectComponent, decorators: [{
|
|
1039
1040
|
type: i0.Component,
|
|
1040
1041
|
args: [{
|
|
@@ -1342,10 +1343,10 @@
|
|
|
1342
1343
|
return nodes;
|
|
1343
1344
|
}
|
|
1344
1345
|
/**
|
|
1345
|
-
*
|
|
1346
|
+
* 过滤文本格式:颜色/背景色/字体大小
|
|
1346
1347
|
* @param node
|
|
1347
1348
|
*/
|
|
1348
|
-
function
|
|
1349
|
+
function filterTextFormat(node) {
|
|
1349
1350
|
node.children.forEach(function (child) {
|
|
1350
1351
|
if (slate.Text.isText(child)) {
|
|
1351
1352
|
if (child['color']) {
|
|
@@ -1354,9 +1355,12 @@
|
|
|
1354
1355
|
if (child['background-color']) {
|
|
1355
1356
|
delete child['background-color'];
|
|
1356
1357
|
}
|
|
1358
|
+
if (child['font-size']) {
|
|
1359
|
+
delete child['font-size'];
|
|
1360
|
+
}
|
|
1357
1361
|
}
|
|
1358
1362
|
else {
|
|
1359
|
-
|
|
1363
|
+
filterTextFormat(child);
|
|
1360
1364
|
}
|
|
1361
1365
|
});
|
|
1362
1366
|
}
|
|
@@ -2445,6 +2449,31 @@
|
|
|
2445
2449
|
return false;
|
|
2446
2450
|
};
|
|
2447
2451
|
|
|
2452
|
+
var getToolbarItemDisabled = function (editor, key, customTypes) {
|
|
2453
|
+
var _a, _b;
|
|
2454
|
+
if (editor.selection) {
|
|
2455
|
+
var disabledOperateTypes = (_b = (_a = getPluginOptions(editor, key)) === null || _a === void 0 ? void 0 : _a.disabledOperateTypes) !== null && _b !== void 0 ? _b : [];
|
|
2456
|
+
if (customTypes === null || customTypes === void 0 ? void 0 : customTypes.length) {
|
|
2457
|
+
disabledOperateTypes = Array.from(new Set(__spreadArray(__spreadArray([], __read(disabledOperateTypes)), __read(customTypes))));
|
|
2458
|
+
}
|
|
2459
|
+
var anchorNode = anchorBlock(editor);
|
|
2460
|
+
return anchorNode && disabledOperateTypes.includes(anchorNode === null || anchorNode === void 0 ? void 0 : anchorNode.type);
|
|
2461
|
+
}
|
|
2462
|
+
};
|
|
2463
|
+
|
|
2464
|
+
var getPluginByToolbarItem = function (editor, toolbarItem) {
|
|
2465
|
+
var pluginKey = toolbarItem.pluginKey;
|
|
2466
|
+
if (pluginKey) {
|
|
2467
|
+
return editor.pluginsByKey[pluginKey];
|
|
2468
|
+
}
|
|
2469
|
+
for (var key in editor.pluginsByKey) {
|
|
2470
|
+
var toolbarItems = editor.pluginsByKey[key].toolbarItems;
|
|
2471
|
+
if (toolbarItems && toolbarItems.some(function (item) { return item.key === toolbarItem.key; })) {
|
|
2472
|
+
return editor.pluginsByKey[key];
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2448
2477
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
2449
2478
|
__proto__: null,
|
|
2450
2479
|
getLastNode: getLastNode,
|
|
@@ -2501,7 +2530,9 @@
|
|
|
2501
2530
|
findPath: findPath,
|
|
2502
2531
|
findNode: findNode,
|
|
2503
2532
|
findDescendant: findDescendant,
|
|
2504
|
-
someNode: someNode
|
|
2533
|
+
someNode: someNode,
|
|
2534
|
+
getToolbarItemDisabled: getToolbarItemDisabled,
|
|
2535
|
+
getPluginByToolbarItem: getPluginByToolbarItem
|
|
2505
2536
|
});
|
|
2506
2537
|
|
|
2507
2538
|
var insertElements = function (editor, elements) {
|
|
@@ -3037,7 +3068,7 @@
|
|
|
3037
3068
|
editor.onKeydown = function (event) {
|
|
3038
3069
|
var selection = editor.selection;
|
|
3039
3070
|
if (i1.IS_SAFARI && selection && slate.Range.isCollapsed(selection) && i1.hotkeys.isDeleteBackward(event)) {
|
|
3040
|
-
var blockEntry = getAboveByType(editor,
|
|
3071
|
+
var blockEntry = getAboveByType(editor, BLOCK_DELETE_BACKWARD_TYPES);
|
|
3041
3072
|
if (blockEntry && blockEntry[0]) {
|
|
3042
3073
|
var isStart = slate.Editor.isStart(editor, selection.anchor, blockEntry[1]);
|
|
3043
3074
|
if (isStart) {
|
|
@@ -3513,7 +3544,7 @@
|
|
|
3513
3544
|
return TheImageComponent;
|
|
3514
3545
|
}(TheBaseElementComponent));
|
|
3515
3546
|
TheImageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheImageComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.DomSanitizer }, { token: THE_UPLOAD_SERVICE_TOKEN }, { token: i0__namespace.ChangeDetectorRef }, { token: TheContextService }, { token: i1__namespace$1.ThyPopover }, { token: i2__namespace.Overlay }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3516
|
-
TheImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheImageComponent, selector: "the-image, [theImage]", viewQueries: [{ propertyName: "imageContent", first: true, predicate: ["imageContent"], descendants: true }, { propertyName: "img", first: true, predicate: ["img"], descendants: true }, { propertyName: "layoutToolbar", first: true, predicate: ["layoutToolbar"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n\n<div class=\"image-container\" contenteditable=\"false\" [style.textAlign]=\"imageEntry.align\">\n <div\n #imageContent\n *ngIf=\"imageEntry.thumbUrl\"\n class=\"image-content\"\n [class.pointer]=\"!selection\"\n [ngStyle]=\"{\n 'width.px':\n imageEntry?.layout && imageEntry?.width > layoutDefaultWidth && !imageEntry?.reSized\n ? layoutDefaultWidth\n : imageEntry.width,\n 'height.px': imageEntry.height\n }\"\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\n<ng-template #layoutToolbar>\n <div class=\"the-block-toolbar-popover\" contenteditable=\"false\">\n <thy-icon-nav>\n <ng-container *ngFor=\"let item of layoutOptions\">\n <a\n *ngIf=\"item.key !== 'split'\"\n href=\"javascript:;\"\n thyIconNavLink\n [ngClass]=\"{ 'remove-link': item.key === 'remove' }\"\n [thyIconNavLinkIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n [thyIconNavLinkActive]=\"layoutActive(item.key)\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"item?.handle($event, item.key)\"\n ></a>\n <nav-split-line *ngIf=\"item.key === 'split'\"></nav-split-line>\n </ng-container>\n </thy-icon-nav>\n </div>\n</ng-template>\n", components: [{ type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i6__namespace.ThyProgressComponent, selector: "thy-progress", inputs: ["thyType", "thySize", "thyValue", "thyMax", "thyTips"] }, { type:
|
|
3547
|
+
TheImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheImageComponent, selector: "the-image, [theImage]", viewQueries: [{ propertyName: "imageContent", first: true, predicate: ["imageContent"], descendants: true }, { propertyName: "img", first: true, predicate: ["img"], descendants: true }, { propertyName: "layoutToolbar", first: true, predicate: ["layoutToolbar"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n\n<div class=\"image-container\" contenteditable=\"false\" [style.textAlign]=\"imageEntry.align\">\n <div\n #imageContent\n *ngIf=\"imageEntry.thumbUrl\"\n class=\"image-content\"\n [class.pointer]=\"!selection\"\n [ngStyle]=\"{\n 'width.px':\n imageEntry?.layout && imageEntry?.width > layoutDefaultWidth && !imageEntry?.reSized\n ? layoutDefaultWidth\n : imageEntry.width,\n 'height.px': imageEntry.height\n }\"\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\n<ng-template #layoutToolbar>\n <div class=\"the-block-toolbar-popover\" contenteditable=\"false\">\n <thy-icon-nav>\n <ng-container *ngFor=\"let item of layoutOptions\">\n <a\n *ngIf=\"item.key !== 'split'\"\n href=\"javascript:;\"\n thyIconNavLink\n [ngClass]=\"{ 'remove-link': item.key === 'remove' }\"\n [thyIconNavLinkIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n [thyIconNavLinkActive]=\"layoutActive(item.key)\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"item?.handle($event, item.key)\"\n ></a>\n <nav-split-line *ngIf=\"item.key === 'split'\"></nav-split-line>\n </ng-container>\n </thy-icon-nav>\n </div>\n</ng-template>\n", components: [{ type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i6__namespace.ThyProgressComponent, selector: "thy-progress", inputs: ["thyType", "thySize", "thyValue", "thyMax", "thyTips"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i3__namespace$1.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
3517
3548
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheImageComponent, decorators: [{
|
|
3518
3549
|
type: i0.Component,
|
|
3519
3550
|
args: [{
|
|
@@ -5964,12 +5995,7 @@
|
|
|
5964
5995
|
var _a;
|
|
5965
5996
|
var contextService = (_a = editor === null || editor === void 0 ? void 0 : editor.injector) === null || _a === void 0 ? void 0 : _a.get(TheContextService);
|
|
5966
5997
|
var richMedia = contextService.getOptions().theOptions.richMedia;
|
|
5967
|
-
|
|
5968
|
-
var disableGroup = [exports.ElementKinds.image];
|
|
5969
|
-
var anchorBlock$1 = anchorBlock(editor);
|
|
5970
|
-
return anchorBlock$1 && disableGroup.includes(anchorBlock$1 === null || anchorBlock$1 === void 0 ? void 0 : anchorBlock$1.type);
|
|
5971
|
-
}
|
|
5972
|
-
return false;
|
|
5998
|
+
return getToolbarItemDisabled(editor, exports.PluginKeys.align, richMedia ? [exports.ElementKinds.image] : []);
|
|
5973
5999
|
},
|
|
5974
6000
|
setAlign: function (editor, alignment) {
|
|
5975
6001
|
if (TableEditor.setAlign(editor, alignment)) {
|
|
@@ -6009,7 +6035,7 @@
|
|
|
6009
6035
|
toolbarItems: [
|
|
6010
6036
|
{
|
|
6011
6037
|
key: exports.ToolbarActionTypes.alignType,
|
|
6012
|
-
type: exports.ToolbarItemType.
|
|
6038
|
+
type: exports.ToolbarItemType.dropdown,
|
|
6013
6039
|
dropdownMode: exports.DropdownMode.icon,
|
|
6014
6040
|
dropdownItemKey: exports.ToolbarActionTypes.alignLeft,
|
|
6015
6041
|
includes: [exports.ToolbarActionTypes.alignLeft, exports.ToolbarActionTypes.alignCenter, exports.ToolbarActionTypes.alignRight],
|
|
@@ -6037,11 +6063,15 @@
|
|
|
6037
6063
|
execute: function (editor) { return AlignEditor.setAlign(editor, exports.Alignment.right); },
|
|
6038
6064
|
active: function (editor) { return AlignEditor.isActive(editor, exports.Alignment.right); }
|
|
6039
6065
|
}
|
|
6040
|
-
]
|
|
6066
|
+
],
|
|
6067
|
+
options: {
|
|
6068
|
+
disabledOperateTypes: __spreadArray([], __read(DISABLED_OPERATE_TYPES))
|
|
6069
|
+
}
|
|
6041
6070
|
});
|
|
6042
6071
|
|
|
6043
6072
|
var headingOptions = {
|
|
6044
6073
|
allowParentTypes: [exports.ElementKinds.tableCell, exports.ElementKinds.blockquote],
|
|
6074
|
+
disabledOperateTypes: __spreadArray([exports.ElementKinds.image], __read(DISABLED_OPERATE_TYPES)),
|
|
6045
6075
|
cleanupTypes: [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.listItem]
|
|
6046
6076
|
};
|
|
6047
6077
|
var HeadingEditor = {
|
|
@@ -6120,7 +6150,7 @@
|
|
|
6120
6150
|
{
|
|
6121
6151
|
key: exports.ElementKinds.headingList,
|
|
6122
6152
|
name: '正文',
|
|
6123
|
-
type: exports.ToolbarItemType.
|
|
6153
|
+
type: exports.ToolbarItemType.dropdown,
|
|
6124
6154
|
dropdownItemKey: exports.ElementKinds.paragraph,
|
|
6125
6155
|
includes: __spreadArray([exports.ElementKinds.paragraph], __read(STANDARD_HEADING_TYPES))
|
|
6126
6156
|
},
|
|
@@ -6286,7 +6316,10 @@
|
|
|
6286
6316
|
execute: function (editor) { return MarkEditor.toggleMark(editor, exports.MarkTypes.underline); },
|
|
6287
6317
|
active: function (editor) { return MarkEditor.isMarkActive(editor, exports.MarkTypes.underline); }
|
|
6288
6318
|
}
|
|
6289
|
-
]
|
|
6319
|
+
],
|
|
6320
|
+
options: {
|
|
6321
|
+
disabledOperateTypes: __spreadArray([exports.ElementKinds.image], __read(DISABLED_OPERATE_TYPES))
|
|
6322
|
+
}
|
|
6290
6323
|
});
|
|
6291
6324
|
|
|
6292
6325
|
var withNodeID = function (e) {
|
|
@@ -7396,10 +7429,34 @@
|
|
|
7396
7429
|
withOverrides: withRemoveVoid
|
|
7397
7430
|
});
|
|
7398
7431
|
|
|
7399
|
-
var
|
|
7400
|
-
function
|
|
7432
|
+
var TheBaseToolbarItem = /** @class */ (function () {
|
|
7433
|
+
function TheBaseToolbarItem() {
|
|
7401
7434
|
}
|
|
7402
|
-
|
|
7435
|
+
Object.defineProperty(TheBaseToolbarItem.prototype, "toolbarItem", {
|
|
7436
|
+
get: function () {
|
|
7437
|
+
return this._toolbarItem;
|
|
7438
|
+
},
|
|
7439
|
+
set: function (value) {
|
|
7440
|
+
this._toolbarItem = value;
|
|
7441
|
+
},
|
|
7442
|
+
enumerable: false,
|
|
7443
|
+
configurable: true
|
|
7444
|
+
});
|
|
7445
|
+
Object.defineProperty(TheBaseToolbarItem.prototype, "disabledState", {
|
|
7446
|
+
get: function () {
|
|
7447
|
+
return this.disabled;
|
|
7448
|
+
},
|
|
7449
|
+
enumerable: false,
|
|
7450
|
+
configurable: true
|
|
7451
|
+
});
|
|
7452
|
+
Object.defineProperty(TheBaseToolbarItem.prototype, "activeState", {
|
|
7453
|
+
get: function () {
|
|
7454
|
+
return this.active;
|
|
7455
|
+
},
|
|
7456
|
+
enumerable: false,
|
|
7457
|
+
configurable: true
|
|
7458
|
+
});
|
|
7459
|
+
TheBaseToolbarItem.prototype.execute = function (event) {
|
|
7403
7460
|
var _a;
|
|
7404
7461
|
event.preventDefault();
|
|
7405
7462
|
event.stopPropagation();
|
|
@@ -7410,13 +7467,76 @@
|
|
|
7410
7467
|
i1.AngularEditor.focus(this.editor);
|
|
7411
7468
|
}
|
|
7412
7469
|
};
|
|
7413
|
-
|
|
7470
|
+
TheBaseToolbarItem.prototype.selectionChange = function (editor) {
|
|
7471
|
+
var _a, _b, _c, _d, _e;
|
|
7472
|
+
if (editor.selection) {
|
|
7473
|
+
this.active = ((_a = this._toolbarItem) === null || _a === void 0 ? void 0 : _a.active) ? (_b = this._toolbarItem) === null || _b === void 0 ? void 0 : _b.active(editor) : false;
|
|
7474
|
+
if ((_c = this._toolbarItem) === null || _c === void 0 ? void 0 : _c.disable) {
|
|
7475
|
+
this.disabled = ((_d = this._toolbarItem) === null || _d === void 0 ? void 0 : _d.disable) ? (_e = this._toolbarItem) === null || _e === void 0 ? void 0 : _e.disable(editor) : false;
|
|
7476
|
+
}
|
|
7477
|
+
else {
|
|
7478
|
+
var thePlugin = getPluginByToolbarItem(editor, this._toolbarItem);
|
|
7479
|
+
this.disabled = thePlugin && getToolbarItemDisabled(editor, thePlugin.key);
|
|
7480
|
+
}
|
|
7481
|
+
}
|
|
7482
|
+
};
|
|
7483
|
+
return TheBaseToolbarItem;
|
|
7414
7484
|
}());
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type:
|
|
7485
|
+
TheBaseToolbarItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheBaseToolbarItem, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
7486
|
+
TheBaseToolbarItem.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: TheBaseToolbarItem, inputs: { toolbarItem: "toolbarItem", editor: "editor" }, host: { properties: { "class.disabled": "this.disabledState", "class.active": "this.activeState" } }, ngImport: i0__namespace });
|
|
7487
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheBaseToolbarItem, decorators: [{
|
|
7418
7488
|
type: i0.Directive
|
|
7419
|
-
}]
|
|
7489
|
+
}], propDecorators: { toolbarItem: [{
|
|
7490
|
+
type: i0.Input
|
|
7491
|
+
}], editor: [{
|
|
7492
|
+
type: i0.Input
|
|
7493
|
+
}], disabledState: [{
|
|
7494
|
+
type: i0.HostBinding,
|
|
7495
|
+
args: ['class.disabled']
|
|
7496
|
+
}], activeState: [{
|
|
7497
|
+
type: i0.HostBinding,
|
|
7498
|
+
args: ['class.active']
|
|
7499
|
+
}] } });
|
|
7500
|
+
var TheBaseToolbarDropdown = /** @class */ (function (_super) {
|
|
7501
|
+
__extends(TheBaseToolbarDropdown, _super);
|
|
7502
|
+
function TheBaseToolbarDropdown() {
|
|
7503
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
7504
|
+
_this.mode = exports.DropdownMode.text;
|
|
7505
|
+
return _this;
|
|
7506
|
+
}
|
|
7507
|
+
Object.defineProperty(TheBaseToolbarDropdown.prototype, "defaultDropdownItem", {
|
|
7508
|
+
get: function () {
|
|
7509
|
+
var _this = this;
|
|
7510
|
+
var activeItem = this.dropdownItemKey && this.menus.find(function (item) { return item.key === _this.dropdownItemKey; });
|
|
7511
|
+
return activeItem ? activeItem : this.menus[0];
|
|
7512
|
+
},
|
|
7513
|
+
enumerable: false,
|
|
7514
|
+
configurable: true
|
|
7515
|
+
});
|
|
7516
|
+
TheBaseToolbarDropdown.prototype.selectionChange = function (editor) {
|
|
7517
|
+
_super.prototype.selectionChange.call(this, editor);
|
|
7518
|
+
var activeItem = this.menus.find(function (i) {
|
|
7519
|
+
if (i === null || i === void 0 ? void 0 : i.active) {
|
|
7520
|
+
return i === null || i === void 0 ? void 0 : i.active(editor);
|
|
7521
|
+
}
|
|
7522
|
+
});
|
|
7523
|
+
if (!this.toolbarItem.dropdownFixedIcon) {
|
|
7524
|
+
this.activeMenuItem = activeItem ? activeItem : this.defaultDropdownItem;
|
|
7525
|
+
}
|
|
7526
|
+
};
|
|
7527
|
+
return TheBaseToolbarDropdown;
|
|
7528
|
+
}(TheBaseToolbarItem));
|
|
7529
|
+
TheBaseToolbarDropdown.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheBaseToolbarDropdown, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
7530
|
+
TheBaseToolbarDropdown.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: TheBaseToolbarDropdown, inputs: { menus: "menus", mode: "mode", dropdownItemKey: "dropdownItemKey" }, usesInheritance: true, ngImport: i0__namespace });
|
|
7531
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheBaseToolbarDropdown, decorators: [{
|
|
7532
|
+
type: i0.Directive
|
|
7533
|
+
}], propDecorators: { menus: [{
|
|
7534
|
+
type: i0.Input
|
|
7535
|
+
}], mode: [{
|
|
7536
|
+
type: i0.Input
|
|
7537
|
+
}], dropdownItemKey: [{
|
|
7538
|
+
type: i0.Input
|
|
7539
|
+
}] } });
|
|
7420
7540
|
|
|
7421
7541
|
var TheToolbarDropdownComponent = /** @class */ (function (_super) {
|
|
7422
7542
|
__extends(TheToolbarDropdownComponent, _super);
|
|
@@ -7426,22 +7546,9 @@
|
|
|
7426
7546
|
_this.thyPopover = thyPopover;
|
|
7427
7547
|
_this.viewContainerRef = viewContainerRef;
|
|
7428
7548
|
_this.overlay = overlay;
|
|
7429
|
-
_this.mode = exports.DropdownMode.text;
|
|
7430
7549
|
_this.dropdownMode = exports.DropdownMode;
|
|
7431
|
-
_this.disabled = false;
|
|
7432
7550
|
return _this;
|
|
7433
7551
|
}
|
|
7434
|
-
Object.defineProperty(TheToolbarDropdownComponent.prototype, "item", {
|
|
7435
|
-
get: function () {
|
|
7436
|
-
return this._item;
|
|
7437
|
-
},
|
|
7438
|
-
set: function (i) {
|
|
7439
|
-
this._item = i;
|
|
7440
|
-
this.activeMenu = i;
|
|
7441
|
-
},
|
|
7442
|
-
enumerable: false,
|
|
7443
|
-
configurable: true
|
|
7444
|
-
});
|
|
7445
7552
|
Object.defineProperty(TheToolbarDropdownComponent.prototype, "isOpen", {
|
|
7446
7553
|
get: function () {
|
|
7447
7554
|
return this.dropdownPopoverRef && this.dropdownPopoverRef.getOverlayRef() && this.dropdownPopoverRef.getOverlayRef().hasAttached();
|
|
@@ -7462,38 +7569,24 @@
|
|
|
7462
7569
|
this.closeDropdownPopover();
|
|
7463
7570
|
}
|
|
7464
7571
|
};
|
|
7465
|
-
Object.defineProperty(TheToolbarDropdownComponent.prototype, "disabledState", {
|
|
7466
|
-
get: function () {
|
|
7467
|
-
return this.disabled;
|
|
7468
|
-
},
|
|
7469
|
-
enumerable: false,
|
|
7470
|
-
configurable: true
|
|
7471
|
-
});
|
|
7472
7572
|
TheToolbarDropdownComponent.prototype.ngOnInit = function () {
|
|
7473
7573
|
var _a;
|
|
7474
7574
|
if (!this.template) {
|
|
7475
7575
|
this.template = this.mode === this.dropdownMode.icon ? this.iconModeTemplate : this.textModeTemplate;
|
|
7476
7576
|
}
|
|
7477
|
-
if (!this.
|
|
7478
|
-
this.
|
|
7577
|
+
if (!this.activeMenuItem) {
|
|
7578
|
+
this.activeMenuItem = this.defaultDropdownItem;
|
|
7479
7579
|
}
|
|
7480
7580
|
if (this.toolbarItem) {
|
|
7481
7581
|
this.elementRef.nativeElement.classList.add("" + ((_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.key));
|
|
7482
7582
|
}
|
|
7483
7583
|
};
|
|
7484
|
-
TheToolbarDropdownComponent.prototype.statusChange = function (editor) {
|
|
7485
|
-
var _a, _b;
|
|
7486
|
-
this.disabled = ((_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.disable) ? (_b = this.toolbarItem) === null || _b === void 0 ? void 0 : _b.disable(editor) : false;
|
|
7487
|
-
var activeItem = this.menus.find(function (i) {
|
|
7488
|
-
if (i === null || i === void 0 ? void 0 : i.active) {
|
|
7489
|
-
return i === null || i === void 0 ? void 0 : i.active(editor);
|
|
7490
|
-
}
|
|
7491
|
-
});
|
|
7492
|
-
this.activeMenu = activeItem ? activeItem : this.item;
|
|
7493
|
-
};
|
|
7494
7584
|
TheToolbarDropdownComponent.prototype.itemMousedown = function (event, item) {
|
|
7495
7585
|
_super.prototype.execute.call(this, event);
|
|
7496
7586
|
this.closeDropdownPopover();
|
|
7587
|
+
if (!this.toolbarItem.dropdownFixedIcon) {
|
|
7588
|
+
this.activeMenuItem = item;
|
|
7589
|
+
}
|
|
7497
7590
|
if (this.itemMousedownHandle) {
|
|
7498
7591
|
this.itemMousedownHandle(item);
|
|
7499
7592
|
return;
|
|
@@ -7542,9 +7635,9 @@
|
|
|
7542
7635
|
.withPositions([bottomPosition, topPosition]);
|
|
7543
7636
|
};
|
|
7544
7637
|
return TheToolbarDropdownComponent;
|
|
7545
|
-
}(
|
|
7638
|
+
}(TheBaseToolbarDropdown));
|
|
7546
7639
|
TheToolbarDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarDropdownComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.ThyPopover }, { token: i0__namespace.ViewContainerRef }, { token: i2__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7547
|
-
TheToolbarDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: {
|
|
7640
|
+
TheToolbarDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: { 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]=\"activeMenuItem?.name\" thyTooltipPlacement=\"top\">\n <thy-icon [thyIconName]=\"activeMenuItem?.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]=\"activeMenuItem?.name\" thyTooltipPlacement=\"top\">\n <span class=\"show-text\">{{ activeMenuItem?.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 === activeMenuItem?.key && !toolbarItem?.dropdownFixedIcon\"\n (mousedown)=\"itemMousedown($event, menu)\"\n [ngStyle]=\"menu?.styles\"\n >\n <span *ngIf=\"menu.icon && mode === dropdownMode.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu.icon\"></thy-icon>\n </span>\n <span *ngIf=\"menu.name\" thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n <thy-action-menu-divider *ngIf=\"menu.key === 'split'\"></thy-action-menu-divider>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i2__namespace$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type: i2__namespace$1.ThyActionMenuDividerComponent, selector: "thy-action-menu-divider", inputs: ["thyTitle", "thyType"] }], directives: [{ type: i10__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i2__namespace$1.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2__namespace$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i2__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
7548
7641
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarDropdownComponent, decorators: [{
|
|
7549
7642
|
type: i0.Component,
|
|
7550
7643
|
args: [{
|
|
@@ -7554,15 +7647,7 @@
|
|
|
7554
7647
|
class: 'the-toolbar-dropdown-container'
|
|
7555
7648
|
}
|
|
7556
7649
|
}]
|
|
7557
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: {
|
|
7558
|
-
type: i0.Input
|
|
7559
|
-
}], menus: [{
|
|
7560
|
-
type: i0.Input
|
|
7561
|
-
}], mode: [{
|
|
7562
|
-
type: i0.Input
|
|
7563
|
-
}], item: [{
|
|
7564
|
-
type: i0.Input
|
|
7565
|
-
}], itemMousedownHandle: [{
|
|
7650
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: { itemMousedownHandle: [{
|
|
7566
7651
|
type: i0.Input
|
|
7567
7652
|
}], iconModeTemplate: [{
|
|
7568
7653
|
type: i0.ViewChild,
|
|
@@ -7579,9 +7664,6 @@
|
|
|
7579
7664
|
}], handleDocumentMouseDown: [{
|
|
7580
7665
|
type: i0.HostListener,
|
|
7581
7666
|
args: ['document: mousedown', ['$event']]
|
|
7582
|
-
}], disabledState: [{
|
|
7583
|
-
type: i0.HostBinding,
|
|
7584
|
-
args: ['class.disabled']
|
|
7585
7667
|
}] } });
|
|
7586
7668
|
|
|
7587
7669
|
var TheCodeComponent = /** @class */ (function (_super) {
|
|
@@ -7613,11 +7695,11 @@
|
|
|
7613
7695
|
lineWrapping: _this.config.mode === exports.TheMode.default ? false : true,
|
|
7614
7696
|
cursorBlinkRate: 500
|
|
7615
7697
|
};
|
|
7616
|
-
_this.
|
|
7698
|
+
_this.activeLanguage = _this.menus[0];
|
|
7617
7699
|
_this.resizeBounds = null;
|
|
7618
|
-
_this.
|
|
7700
|
+
_this.onChangeLanguage = function (item) {
|
|
7619
7701
|
_this.options = Object.assign(Object.assign({}, _this.options), { mode: item.key });
|
|
7620
|
-
_this.
|
|
7702
|
+
_this.activeLanguage = item;
|
|
7621
7703
|
CodeEditor.setCodeAttribute(_this.editor, _this.element, { language: item.key });
|
|
7622
7704
|
};
|
|
7623
7705
|
return _this;
|
|
@@ -7763,7 +7845,10 @@
|
|
|
7763
7845
|
TheCodeComponent.prototype.useMode = function () {
|
|
7764
7846
|
var _this = this;
|
|
7765
7847
|
this.options = Object.assign(Object.assign({}, this.options), { mode: this.element.language });
|
|
7766
|
-
|
|
7848
|
+
var menuItem = this.menus.find(function (i) { return i.key === _this.element.language; });
|
|
7849
|
+
if (menuItem) {
|
|
7850
|
+
this.activeLanguage = menuItem;
|
|
7851
|
+
}
|
|
7767
7852
|
};
|
|
7768
7853
|
TheCodeComponent.prototype.useAutoWrap = function () {
|
|
7769
7854
|
this.options = Object.assign(Object.assign({}, this.options), { lineWrapping: this.element.autoWrap || false });
|
|
@@ -7798,7 +7883,7 @@
|
|
|
7798
7883
|
return TheCodeComponent;
|
|
7799
7884
|
}(TheBaseElementComponent));
|
|
7800
7885
|
TheCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheCodeComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.ThyNotifyService }, { token: TheContextService }, { token: i0__namespace.NgZone }, { token: THE_MODE_TOKEN }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7801
|
-
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheCodeComponent, selector: "div[theCode]", viewQueries: [{ propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read: i8.CodeMirrorComponent }], usesInheritance: true, ngImport: i0__namespace, template: "<div contenteditable=\"false\" class=\"the-code-block-operation\" *ngIf=\"isCollapsed && codemirror && !options.readOnly\">\n <thy-icon-nav>\n <the-toolbar-dropdown
|
|
7886
|
+
TheCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheCodeComponent, selector: "div[theCode]", viewQueries: [{ propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read: i8.CodeMirrorComponent }], usesInheritance: true, ngImport: i0__namespace, template: "<div contenteditable=\"false\" class=\"the-code-block-operation\" *ngIf=\"isCollapsed && codemirror && !options.readOnly\">\n <thy-icon-nav>\n <the-toolbar-dropdown\n [menus]=\"menus\"\n [toolbarItem]=\"activeLanguage\"\n [dropdownItemKey]=\"activeLanguage?.key\"\n [itemMousedownHandle]=\"onChangeLanguage\"\n >\n </the-toolbar-dropdown>\n <span class=\"auto-wrap d-flex align-items-center\">\n <span>\u81EA\u52A8\u6362\u884C</span>\n <thy-switch\n class=\"auto-wrap-btn d-flex\"\n [(ngModel)]=\"options.lineWrapping\"\n (ngModelChange)=\"onChangeWrap($event)\"\n thySize=\"sm\"\n ></thy-switch>\n </span>\n <a\n href=\"javascript:;\"\n thyIconNavLink\n thyIconNavLinkIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <nav-split-line [mode]=\"ToolbarItemMode.vertical\"></nav-split-line>\n <a\n href=\"javascript:;\"\n thyIconNavLink\n thyIconNavLinkIcon=\"trash\"\n thyTooltip=\"\u5220\u9664\"\n class=\"remove-link\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"onDelete($event)\"\n ></a>\n </thy-icon-nav>\n</div>\n\n<slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n\n<!-- \u53EA\u8BFB\u6A21\u5F0F\u4E0BCodeMirror-sizer\u9AD8\u5EA6\u6BD4\u7F16\u8F91\u6A21\u5F0F\u4E0B\u591A2px\uFF0C\u8BBE\u7F6EthyMinHeight\u4E3A46px\u9632\u6B62\u62D6\u62FD\u5230\u6700\u5C0F\u9AD8\u5EA6\u65F6\u53EA\u8BFB\u6A21\u5F0F\u4E0B\u51FA\u73B0\u6EDA\u52A8\u6761 -->\n<div\n thyResizable\n [thyMinHeight]=\"46\"\n [thyBounds]=\"resizeBounds\"\n [style.height.px]=\"resizeHeight\"\n (thyResize)=\"onResize($event)\"\n (thyResizeEnd)=\"onEndResize()\"\n class=\"resize-code-container\"\n [ngClass]=\"{ focus: isCollapsed, readonly: options.readOnly, active: isHightLight && isCollapsed }\"\n>\n <ng-codemirror\n *ngIf=\"startRenderCodemirror\"\n #codemirror\n contenteditable=\"false\"\n class=\"ng-codemirror-wrapper\"\n [ngStyle]=\"{ maxHeight: maxHeight > 0 ? maxHeight + 'px' : 'auto' }\"\n [options]=\"options\"\n [ngModel]=\"code\"\n [delayRefreshTime]=\"300\"\n (ngModelChange)=\"codeChange($event)\"\n (focusChange)=\"focusChange($event)\"\n [autoMaxHeight]=\"maxHeight\"\n >\n </ng-codemirror>\n <thy-resize-handle thyDirection=\"bottom\" class=\"code-resize-icon\" *ngIf=\"isCollapsed && !options.readOnly\"></thy-resize-handle>\n</div>\n", components: [{ type: i3__namespace$1.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", inputs: ["itemMousedownHandle"] }, { type: i5__namespace$2.ThySwitchComponent, selector: "thy-switch", inputs: ["thyType", "thySize", "thyDisabled"], outputs: ["thyChange"] }, { type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }, { type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { type: i8__namespace.CodeMirrorComponent, selector: "ng-codemirror, [ngCodeMirror]", inputs: ["autoMaxHeight", "delayRefreshTime", "options"], outputs: ["focusChange"] }, { type: i9__namespace.ThyResizeHandleComponent, selector: "thy-resize-handle, [thy-resize-handle]", inputs: ["thyDirection"], outputs: ["thyMouseDown"], exportAs: ["thyResizeHandle"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i9__namespace.ThyResizableDirective, selector: "[thyResizable]", inputs: ["thyBounds", "thyMaxHeight", "thyMaxWidth", "thyMinHeight", "thyMinWidth", "thyGridColumnCount", "thyMaxColumn", "thyMinColumn", "thyLockAspectRatio", "thyPreview", "thyDisabled"], outputs: ["thyResize", "thyResizeEnd", "thyResizeStart"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
7802
7887
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheCodeComponent, decorators: [{
|
|
7803
7888
|
type: i0.Component,
|
|
7804
7889
|
args: [{
|
|
@@ -8050,7 +8135,7 @@
|
|
|
8050
8135
|
return TheLinkEditComponent;
|
|
8051
8136
|
}());
|
|
8052
8137
|
TheLinkEditComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheLinkEditComponent, deps: [{ token: i1__namespace$1.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8053
|
-
TheLinkEditComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheLinkEditComponent, selector: "the-link-edit", inputs: { tag: "tag", node: "node", link: "link", text: "text", originSelection: "originSelection" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class": "this.className" } }, ngImport: i0__namespace, template: "<form\n thyForm\n #linkForm=\"thyForm\"\n [thyFormValidatorConfig]=\"validatorConfig\"\n name=\"linkForm\"\n>\n <thy-form-group thyLabelText=\"\u6587\u672C\">\n <input\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u6587\u672C\"\n required\n name=\"text\"\n [(ngModel)]=\"text\"\n thyAutofocus\n type=\"text\"\n />\n </thy-form-group>\n <thy-form-group thyLabelText=\"\u94FE\u63A5\">\n <input\n name=\"link\"\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u94FE\u63A5\"\n required\n type=\"text\"\n #linkControl=\"ngModel\"\n [(ngModel)]=\"link\"\n />\n </thy-form-group>\n <thy-form-group-footer>\n <div class=\"btn-pair\">\n <button\n thyButton=\"link-secondary\"\n thySize=\"sm\"\n (click)=\"closePopover()\"\n >\u53D6\u6D88</button>\n <button\n thyButton=\"primary-square\"\n thySize=\"sm\"\n (thyFormSubmit)=\"applyLink(linkForm)\"\n >\u5E94\u7528</button>\n </div>\n </thy-form-group-footer>\n</form>\n", components: [{ type: i2__namespace$2.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { type: i2__namespace$2.ThyFormGroupFooterComponent, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { type: i1__namespace$5.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thySquare", "thyBlock"] }], directives: [{ type: i4__namespace
|
|
8138
|
+
TheLinkEditComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheLinkEditComponent, selector: "the-link-edit", inputs: { tag: "tag", node: "node", link: "link", text: "text", originSelection: "originSelection" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class": "this.className" } }, ngImport: i0__namespace, template: "<form\n thyForm\n #linkForm=\"thyForm\"\n [thyFormValidatorConfig]=\"validatorConfig\"\n name=\"linkForm\"\n>\n <thy-form-group thyLabelText=\"\u6587\u672C\">\n <input\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u6587\u672C\"\n required\n name=\"text\"\n [(ngModel)]=\"text\"\n thyAutofocus\n type=\"text\"\n />\n </thy-form-group>\n <thy-form-group thyLabelText=\"\u94FE\u63A5\">\n <input\n name=\"link\"\n thyInput\n placeholder=\"\u8BF7\u8F93\u5165\u94FE\u63A5\"\n required\n type=\"text\"\n #linkControl=\"ngModel\"\n [(ngModel)]=\"link\"\n />\n </thy-form-group>\n <thy-form-group-footer>\n <div class=\"btn-pair\">\n <button\n thyButton=\"link-secondary\"\n thySize=\"sm\"\n (click)=\"closePopover()\"\n >\u53D6\u6D88</button>\n <button\n thyButton=\"primary-square\"\n thySize=\"sm\"\n (thyFormSubmit)=\"applyLink(linkForm)\"\n >\u5E94\u7528</button>\n </div>\n </thy-form-group-footer>\n</form>\n", components: [{ type: i2__namespace$2.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { type: i2__namespace$2.ThyFormGroupFooterComponent, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { type: i1__namespace$5.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thySquare", "thyBlock"] }], directives: [{ type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { type: i5__namespace$3.ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutoSelect", "thyAutofocus"] }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5__namespace.ThyInputDirective, selector: "[thyInput]", inputs: ["thySize", "thyAutocomplete"] }, { type: i4__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace$2.ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }] });
|
|
8054
8139
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheLinkEditComponent, decorators: [{
|
|
8055
8140
|
type: i0.Component,
|
|
8056
8141
|
args: [{
|
|
@@ -8286,7 +8371,10 @@
|
|
|
8286
8371
|
execute: function (editor) { return LinkEditor.insertLink(editor); },
|
|
8287
8372
|
active: function (editor) { return LinkEditor.isLinkActive(editor); }
|
|
8288
8373
|
}
|
|
8289
|
-
]
|
|
8374
|
+
],
|
|
8375
|
+
options: {
|
|
8376
|
+
disabledOperateTypes: __spreadArray([exports.ElementKinds.image], __read(DISABLED_OPERATE_TYPES))
|
|
8377
|
+
}
|
|
8290
8378
|
});
|
|
8291
8379
|
|
|
8292
8380
|
/**
|
|
@@ -9164,7 +9252,7 @@
|
|
|
9164
9252
|
return TheTableOptionsComponent;
|
|
9165
9253
|
}());
|
|
9166
9254
|
TheTableOptionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheTableOptionsComponent, deps: [{ token: i1__namespace$6.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9167
|
-
TheTableOptionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheTableOptionsComponent, selector: "the-table-options", inputs: { tableStore: "tableStore", editor: "editor" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" } }, ngImport: i0__namespace, template: "\n <thy-action-menu class=\"table-drop-menu\">\n <ng-container *ngFor=\"let option of tableDropdownList\">\n <a thyActionMenuItem href=\"javascript:;\" (mousedown)=\"setTableOptions($event, option)\">\n <span thyActionMenuItemName>{{ option.name }}</span>\n <span thyActionMenuItemExtendIcon class=\"text-primary\" *ngIf=\"option.isActive\">\n <thy-icon thyIconName=\"check\"></thy-icon>\n </span>\n </a>\n </ng-container>\n </thy-action-menu>\n ", isInline: true, components: [{ type: i2__namespace$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type:
|
|
9255
|
+
TheTableOptionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheTableOptionsComponent, selector: "the-table-options", inputs: { tableStore: "tableStore", editor: "editor" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" } }, ngImport: i0__namespace, template: "\n <thy-action-menu class=\"table-drop-menu\">\n <ng-container *ngFor=\"let option of tableDropdownList\">\n <a thyActionMenuItem href=\"javascript:;\" (mousedown)=\"setTableOptions($event, option)\">\n <span thyActionMenuItemName>{{ option.name }}</span>\n <span thyActionMenuItemExtendIcon class=\"text-primary\" *ngIf=\"option.isActive\">\n <thy-icon thyIconName=\"check\"></thy-icon>\n </span>\n </a>\n </ng-container>\n </thy-action-menu>\n ", isInline: true, components: [{ type: i2__namespace$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i2__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.ThyActionMenuItemExtendIconDirective, selector: "[thyActionMenuItemExtendIcon]" }] });
|
|
9168
9256
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheTableOptionsComponent, decorators: [{
|
|
9169
9257
|
type: i0.Component,
|
|
9170
9258
|
args: [{
|
|
@@ -9318,7 +9406,7 @@
|
|
|
9318
9406
|
return TheTableToolbarComponent;
|
|
9319
9407
|
}());
|
|
9320
9408
|
TheTableToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheTableToolbarComponent, deps: [{ token: i0__namespace.NgZone }, { token: TheColorSelectService }, { token: i1__namespace$1.ThyPopover }, { token: i1__namespace$1.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9321
|
-
TheTableToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", 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=\"tableStore.isSelectedTable\"></nav-split-line>\n <button\n thyButton=\"default\"\n *ngIf=\"tableStore.isSelectedTable\"\n class=\"mr-2\"\n thySize=\"md\"\n class=\"table-options\"\n (mousedown)=\"openTableOptionMenu($event)\"\n >\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon thyIconName=\"caret-down\"></thy-icon>\n </button>\n <nav-split-line *ngIf=\"deleteIcon\"></nav-split-line>\n <a\n *ngIf=\"deleteIcon\"\n href=\"javascript:;\"\n thyIconNavLink\n [thyTooltip]=\"iconName\"\n class=\"danger\"\n [thyIconNavLinkIcon]=\"deleteIcon\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n</thy-icon-nav>\n", components: [{ type: i3__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type:
|
|
9409
|
+
TheTableToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", 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=\"tableStore.isSelectedTable\"></nav-split-line>\n <button\n thyButton=\"default\"\n *ngIf=\"tableStore.isSelectedTable\"\n class=\"mr-2\"\n thySize=\"md\"\n class=\"table-options\"\n (mousedown)=\"openTableOptionMenu($event)\"\n >\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon thyIconName=\"caret-down\"></thy-icon>\n </button>\n <nav-split-line *ngIf=\"deleteIcon\"></nav-split-line>\n <a\n *ngIf=\"deleteIcon\"\n href=\"javascript:;\"\n thyIconNavLink\n [thyTooltip]=\"iconName\"\n class=\"danger\"\n [thyIconNavLinkIcon]=\"deleteIcon\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n</thy-icon-nav>\n", components: [{ type: i3__namespace$1.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }, { type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }, { type: i1__namespace$5.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thySquare", "thyBlock"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
9322
9410
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheTableToolbarComponent, decorators: [{
|
|
9323
9411
|
type: i0.Component,
|
|
9324
9412
|
args: [{
|
|
@@ -9382,7 +9470,7 @@
|
|
|
9382
9470
|
return TheContextMenuComponent;
|
|
9383
9471
|
}());
|
|
9384
9472
|
TheContextMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheContextMenuComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.ThyPopoverRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9385
|
-
TheContextMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", 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: i2__namespace$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type:
|
|
9473
|
+
TheContextMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", 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: i2__namespace$1.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i2__namespace$1.ThyActionMenuDividerComponent, selector: "thy-action-menu-divider", inputs: ["thyTitle", "thyType"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i2__namespace$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i2__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }, { type: i2__namespace$1.ThyActionMenuItemExtendIconDirective, selector: "[thyActionMenuItemExtendIcon]" }] });
|
|
9386
9474
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheContextMenuComponent, decorators: [{
|
|
9387
9475
|
type: i0.Component,
|
|
9388
9476
|
args: [{
|
|
@@ -10163,6 +10251,9 @@
|
|
|
10163
10251
|
image.onload = function () {
|
|
10164
10252
|
resolve(true);
|
|
10165
10253
|
};
|
|
10254
|
+
image.onerror = function () {
|
|
10255
|
+
resolve(true);
|
|
10256
|
+
};
|
|
10166
10257
|
image.src = item.getAttribute('src');
|
|
10167
10258
|
});
|
|
10168
10259
|
imageResolves_1.push(imageLoad);
|
|
@@ -11645,7 +11736,6 @@
|
|
|
11645
11736
|
var _this = _super.call(this) || this;
|
|
11646
11737
|
_this.thyPopover = thyPopover;
|
|
11647
11738
|
_this.overlay = overlay;
|
|
11648
|
-
_this.active = false;
|
|
11649
11739
|
return _this;
|
|
11650
11740
|
}
|
|
11651
11741
|
Object.defineProperty(TheTableToolbarItemComponent.prototype, "isOpenTableSelect", {
|
|
@@ -11655,17 +11745,12 @@
|
|
|
11655
11745
|
enumerable: false,
|
|
11656
11746
|
configurable: true
|
|
11657
11747
|
});
|
|
11658
|
-
TheTableToolbarItemComponent.prototype.statusChange = function (editor) {
|
|
11659
|
-
var _a;
|
|
11660
|
-
this.active = (_a = this.item) === null || _a === void 0 ? void 0 : _a.active(editor);
|
|
11661
|
-
};
|
|
11662
11748
|
TheTableToolbarItemComponent.prototype.execute = function (event) {
|
|
11663
11749
|
var _a;
|
|
11664
11750
|
_super.prototype.execute.call(this, event);
|
|
11665
11751
|
if ((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) {
|
|
11666
11752
|
return;
|
|
11667
11753
|
}
|
|
11668
|
-
var type = this.item.key;
|
|
11669
11754
|
this.toggleTableSelect(event);
|
|
11670
11755
|
};
|
|
11671
11756
|
TheTableToolbarItemComponent.prototype.toggleTableSelect = function (event, optionsParam) {
|
|
@@ -11690,23 +11775,19 @@
|
|
|
11690
11775
|
return this.tableSelectRef;
|
|
11691
11776
|
};
|
|
11692
11777
|
return TheTableToolbarItemComponent;
|
|
11693
|
-
}(
|
|
11778
|
+
}(TheBaseToolbarItem));
|
|
11694
11779
|
TheTableToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheTableToolbarItemComponent, deps: [{ token: i1__namespace$6.ThyPopover }, { token: i2__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11695
|
-
TheTableToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheTableToolbarItemComponent, selector: "the-table-toolbar-item",
|
|
11780
|
+
TheTableToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheTableToolbarItemComponent, selector: "the-table-toolbar-item", host: { classAttribute: "the-toolbar-dropdown-container" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <a\n thyIconNavLink\n class=\"link-with-down\"\n [thyTooltip]=\"toolbarItem?.name\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"toolbarItem.icon\"></thy-icon>\n <thy-icon class=\"link-down-icon font-size-sm text-desc table-down-icon\" thyIconName=\"caret-down\"> </thy-icon>\n </a>\n ", isInline: true, components: [{ type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
11696
11781
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheTableToolbarItemComponent, decorators: [{
|
|
11697
11782
|
type: i0.Component,
|
|
11698
11783
|
args: [{
|
|
11699
11784
|
selector: 'the-table-toolbar-item',
|
|
11700
|
-
template: "\n <a\n thyIconNavLink\n class=\"link-with-down\"\n [thyTooltip]=\"
|
|
11785
|
+
template: "\n <a\n thyIconNavLink\n class=\"link-with-down\"\n [thyTooltip]=\"toolbarItem?.name\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"toolbarItem.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 ",
|
|
11701
11786
|
host: {
|
|
11702
11787
|
class: 'the-toolbar-dropdown-container'
|
|
11703
11788
|
}
|
|
11704
11789
|
}]
|
|
11705
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$6.ThyPopover }, { type: i2__namespace.Overlay }]; }
|
|
11706
|
-
type: i0.Input
|
|
11707
|
-
}], editor: [{
|
|
11708
|
-
type: i0.Input
|
|
11709
|
-
}] } });
|
|
11790
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$6.ThyPopover }, { type: i2__namespace.Overlay }]; } });
|
|
11710
11791
|
|
|
11711
11792
|
var _a;
|
|
11712
11793
|
var withTable = function (editor) {
|
|
@@ -12164,7 +12245,7 @@
|
|
|
12164
12245
|
return;
|
|
12165
12246
|
}
|
|
12166
12247
|
// 过滤 text 节点的 color/background-color 属性
|
|
12167
|
-
fragment.forEach(function (node) { return
|
|
12248
|
+
fragment.forEach(function (node) { return filterTextFormat(node); });
|
|
12168
12249
|
slate.Transforms.insertFragment(editor, fragment);
|
|
12169
12250
|
return;
|
|
12170
12251
|
}
|
|
@@ -12185,67 +12266,49 @@
|
|
|
12185
12266
|
_this.cfr = cfr;
|
|
12186
12267
|
_this.itemMode = exports.ToolbarItemMode.horizontal;
|
|
12187
12268
|
_this.ToolbarItemMode = exports.ToolbarItemMode;
|
|
12188
|
-
_this.active = false;
|
|
12189
|
-
_this.disabled = false;
|
|
12190
12269
|
return _this;
|
|
12191
12270
|
}
|
|
12192
12271
|
TheToolbarItemComponent.prototype.toggleDropdown = function (event) {
|
|
12193
12272
|
_super.prototype.execute.call(this, event);
|
|
12194
12273
|
};
|
|
12195
|
-
Object.defineProperty(TheToolbarItemComponent.prototype, "disabledState", {
|
|
12196
|
-
get: function () {
|
|
12197
|
-
return this.disabled;
|
|
12198
|
-
},
|
|
12199
|
-
enumerable: false,
|
|
12200
|
-
configurable: true
|
|
12201
|
-
});
|
|
12202
12274
|
TheToolbarItemComponent.prototype.ngOnInit = function () {
|
|
12203
12275
|
var _a, _b;
|
|
12204
|
-
if (((_a = this.
|
|
12276
|
+
if (((_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.quickItemComponent) && i1.isComponentType((_b = this.toolbarItem) === null || _b === void 0 ? void 0 : _b.quickItemComponent)) {
|
|
12205
12277
|
this.renderToolbarItem();
|
|
12206
12278
|
}
|
|
12207
12279
|
};
|
|
12208
|
-
TheToolbarItemComponent.prototype.statusChange = function (editor) {
|
|
12209
|
-
var _a, _b, _c, _d;
|
|
12210
|
-
this.disabled = ((_a = this.item) === null || _a === void 0 ? void 0 : _a.disable) ? (_b = this.item) === null || _b === void 0 ? void 0 : _b.disable(editor) : false;
|
|
12211
|
-
this.active = ((_c = this.item) === null || _c === void 0 ? void 0 : _c.active) ? (_d = this.item) === null || _d === void 0 ? void 0 : _d.active(editor) : false;
|
|
12212
|
-
};
|
|
12213
12280
|
TheToolbarItemComponent.prototype.execute = function (event) {
|
|
12214
12281
|
var _a, _b, _c;
|
|
12215
12282
|
_super.prototype.execute.call(this, event);
|
|
12216
|
-
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || this.disabled || !((_b = this.
|
|
12283
|
+
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || this.disabled || !((_b = this.toolbarItem) === null || _b === void 0 ? void 0 : _b.execute)) {
|
|
12217
12284
|
return;
|
|
12218
12285
|
}
|
|
12219
|
-
(_c = this.
|
|
12286
|
+
(_c = this.toolbarItem) === null || _c === void 0 ? void 0 : _c.execute(this.editor);
|
|
12220
12287
|
};
|
|
12221
12288
|
TheToolbarItemComponent.prototype.renderToolbarItem = function () {
|
|
12222
12289
|
var _this = this;
|
|
12223
12290
|
this.ngZone.run(function () {
|
|
12224
|
-
var toolbarItemFactory = _this.cfr.resolveComponentFactory(_this.
|
|
12225
|
-
var
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12291
|
+
var toolbarItemFactory = _this.cfr.resolveComponentFactory(_this.toolbarItem.quickItemComponent);
|
|
12292
|
+
var toolbarItemRef = _this.toolbarContainer.createComponent(toolbarItemFactory);
|
|
12293
|
+
toolbarItemRef.instance.editor = _this.editor;
|
|
12294
|
+
toolbarItemRef.instance.item = _this.toolbarItem;
|
|
12295
|
+
toolbarItemRef.instance.itemMode = exports.ToolbarItemMode.vertical;
|
|
12229
12296
|
});
|
|
12230
12297
|
};
|
|
12231
12298
|
return TheToolbarItemComponent;
|
|
12232
|
-
}(
|
|
12299
|
+
}(TheBaseToolbarItem));
|
|
12233
12300
|
TheToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarItemComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12234
|
-
TheToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: {
|
|
12301
|
+
TheToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { itemMode: "itemMode" }, host: { listeners: { "mousedown": "toggleDropdown($event)" }, 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]=\"toolbarItem.icon\"\n [thyTooltip]=\"tooltip\"\n [thyTooltipTemplateContext]=\"{ name: toolbarItem.name, shortcutKey: toolbarItem.shortcutKey }\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n ></a>\n </ng-container>\n <ng-template #selectionItem>\n <ng-container *ngIf=\"!toolbarItem?.quickItemComponent\">\n <thy-icon [thyIconName]=\"toolbarItem?.icon\" [thyIconRotate]=\"0\" class=\"quick-toolbar-icon\"></thy-icon>\n <span class=\"quick-toolbar-name\">{{ toolbarItem?.name }}</span>\n </ng-container>\n </ng-template>\n <ng-template #tooltip let-data> {{ data.name }} {{ data.shortcutKey }} </ng-template>\n <ng-container #toolbarContainer></ng-container>\n ", isInline: true, components: [{ type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
12235
12302
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarItemComponent, decorators: [{
|
|
12236
12303
|
type: i0.Component,
|
|
12237
12304
|
args: [{
|
|
12238
12305
|
selector: 'the-toolbar-item',
|
|
12239
|
-
template: "\n <ng-container *ngIf=\"itemMode === ToolbarItemMode.horizontal; else selectionItem\">\n <a\n thyIconNavLink\n [thyIconNavLinkIcon]=\"
|
|
12306
|
+
template: "\n <ng-container *ngIf=\"itemMode === ToolbarItemMode.horizontal; else selectionItem\">\n <a\n thyIconNavLink\n [thyIconNavLinkIcon]=\"toolbarItem.icon\"\n [thyTooltip]=\"tooltip\"\n [thyTooltipTemplateContext]=\"{ name: toolbarItem.name, shortcutKey: toolbarItem.shortcutKey }\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n ></a>\n </ng-container>\n <ng-template #selectionItem>\n <ng-container *ngIf=\"!toolbarItem?.quickItemComponent\">\n <thy-icon [thyIconName]=\"toolbarItem?.icon\" [thyIconRotate]=\"0\" class=\"quick-toolbar-icon\"></thy-icon>\n <span class=\"quick-toolbar-name\">{{ toolbarItem?.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 ",
|
|
12240
12307
|
host: {
|
|
12241
12308
|
class: 'the-toolbar-item'
|
|
12242
12309
|
}
|
|
12243
12310
|
}]
|
|
12244
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ComponentFactoryResolver }]; }, propDecorators: {
|
|
12245
|
-
type: i0.Input
|
|
12246
|
-
}], item: [{
|
|
12247
|
-
type: i0.Input
|
|
12248
|
-
}], itemMode: [{
|
|
12311
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ComponentFactoryResolver }]; }, propDecorators: { itemMode: [{
|
|
12249
12312
|
type: i0.Input
|
|
12250
12313
|
}], toolbarContainer: [{
|
|
12251
12314
|
type: i0.ViewChild,
|
|
@@ -12253,9 +12316,6 @@
|
|
|
12253
12316
|
}], toggleDropdown: [{
|
|
12254
12317
|
type: i0.HostListener,
|
|
12255
12318
|
args: ['mousedown', ['$event']]
|
|
12256
|
-
}], disabledState: [{
|
|
12257
|
-
type: i0.HostBinding,
|
|
12258
|
-
args: ['class.disabled']
|
|
12259
12319
|
}] } });
|
|
12260
12320
|
|
|
12261
12321
|
var TheQuickToolbarComponent = /** @class */ (function (_super) {
|
|
@@ -12309,7 +12369,7 @@
|
|
|
12309
12369
|
return TheQuickToolbarComponent;
|
|
12310
12370
|
}(core.mixinUnsubscribe(core.MixinBase)));
|
|
12311
12371
|
TheQuickToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12312
|
-
TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()", "document: keydown.escape": "handleEsc()" } }, usesInheritance: true, ngImport: i0__namespace, template: "<thy-selection-list\n class=\"the-quick-toolbar\"\n [thyBindKeyEventContainer]=\"editorElement\"\n (thySelectionChange)=\"selectionChange($event)\"\n [thyMultiple]=\"false\"\n>\n <ng-container *ngFor=\"let item of quickToolbarItems\">\n <ng-container *ngIf=\"item.key !== ToolbarActionTypes.split; else splitLine\">\n <thy-list-option [thyValue]=\"item?.key\" (mousedown)=\"stopPropagation($event)\">\n <the-toolbar-item [editor]=\"editor\" [
|
|
12372
|
+
TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()", "document: keydown.escape": "handleEsc()" } }, usesInheritance: true, ngImport: i0__namespace, template: "<thy-selection-list\n class=\"the-quick-toolbar\"\n [thyBindKeyEventContainer]=\"editorElement\"\n (thySelectionChange)=\"selectionChange($event)\"\n [thyMultiple]=\"false\"\n>\n <ng-container *ngFor=\"let item of quickToolbarItems\">\n <ng-container *ngIf=\"item.key !== ToolbarActionTypes.split; else splitLine\">\n <thy-list-option [thyValue]=\"item?.key\" (mousedown)=\"stopPropagation($event)\">\n <the-toolbar-item [editor]=\"editor\" [toolbarItem]=\"item\" [itemMode]=\"ToolbarItemMode.vertical\"></the-toolbar-item>\n </thy-list-option>\n </ng-container>\n </ng-container>\n</thy-selection-list>\n\n<ng-template #splitLine>\n <nav-split-line [mode]=\"ToolbarItemMode.horizontal\"></nav-split-line>\n</ng-template>\n", components: [{ type: i1__namespace$7.ThySelectionListComponent, selector: "thy-selection-list,[thy-selection-list]", inputs: ["thyMultiple", "thyBindKeyEventContainer", "thyScrollContainer", "thyBeforeKeydown", "thyUniqueKey", "thyCompareWith", "thyLayout", "thyAutoActiveFirstItem", "thySize", "thySpaceKeyEnabled"], outputs: ["thySelectionChange"] }, { type: i5__namespace$3.ThyListOptionComponent, selector: "thy-list-option,[thy-list-option]", inputs: ["id", "thyValue", "thyDisabled"] }, { type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: ["itemMode"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12313
12373
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
|
|
12314
12374
|
type: i0.Component,
|
|
12315
12375
|
args: [{
|
|
@@ -12549,123 +12609,11 @@
|
|
|
12549
12609
|
execute: function (editor) { return InlineCodeEditor.toggleInlineCode(editor); },
|
|
12550
12610
|
active: function (editor) { return InlineCodeEditor.isInlineCodeActive(editor); }
|
|
12551
12611
|
}
|
|
12552
|
-
]
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
var TheIndentToolbarComponent = /** @class */ (function (_super) {
|
|
12556
|
-
__extends(TheIndentToolbarComponent, _super);
|
|
12557
|
-
function TheIndentToolbarComponent(elementRef, thyPopover, viewContainerRef, overlay) {
|
|
12558
|
-
var _this = _super.call(this) || this;
|
|
12559
|
-
_this.elementRef = elementRef;
|
|
12560
|
-
_this.thyPopover = thyPopover;
|
|
12561
|
-
_this.viewContainerRef = viewContainerRef;
|
|
12562
|
-
_this.overlay = overlay;
|
|
12563
|
-
_this.mode = exports.DropdownMode.text;
|
|
12564
|
-
_this.dropdownMode = exports.DropdownMode;
|
|
12565
|
-
_this.disabled = false;
|
|
12566
|
-
return _this;
|
|
12612
|
+
],
|
|
12613
|
+
options: {
|
|
12614
|
+
disabledOperateTypes: __spreadArray([exports.ElementKinds.image], __read(DISABLED_OPERATE_TYPES))
|
|
12567
12615
|
}
|
|
12568
|
-
|
|
12569
|
-
get: function () {
|
|
12570
|
-
return this.dropdownPopoverRef && this.dropdownPopoverRef.getOverlayRef() && this.dropdownPopoverRef.getOverlayRef().hasAttached();
|
|
12571
|
-
},
|
|
12572
|
-
enumerable: false,
|
|
12573
|
-
configurable: true
|
|
12574
|
-
});
|
|
12575
|
-
TheIndentToolbarComponent.prototype.toggleDropdown = function (event) {
|
|
12576
|
-
var _a;
|
|
12577
|
-
_super.prototype.execute.call(this, event);
|
|
12578
|
-
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || this.disabled) {
|
|
12579
|
-
return;
|
|
12580
|
-
}
|
|
12581
|
-
this.openDropdownPopover();
|
|
12582
|
-
};
|
|
12583
|
-
TheIndentToolbarComponent.prototype.handleDocumentMouseDown = function (event) {
|
|
12584
|
-
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
12585
|
-
this.closeDropdownPopover();
|
|
12586
|
-
}
|
|
12587
|
-
};
|
|
12588
|
-
Object.defineProperty(TheIndentToolbarComponent.prototype, "disabledState", {
|
|
12589
|
-
get: function () {
|
|
12590
|
-
return this.disabled;
|
|
12591
|
-
},
|
|
12592
|
-
enumerable: false,
|
|
12593
|
-
configurable: true
|
|
12594
|
-
});
|
|
12595
|
-
TheIndentToolbarComponent.prototype.ngOnInit = function () {
|
|
12596
|
-
var _a;
|
|
12597
|
-
if (!this.activeMenu) {
|
|
12598
|
-
this.activeMenu = this.menus[0];
|
|
12599
|
-
}
|
|
12600
|
-
if (this.toolbarItem) {
|
|
12601
|
-
this.elementRef.nativeElement.classList.add("" + ((_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.key));
|
|
12602
|
-
}
|
|
12603
|
-
};
|
|
12604
|
-
TheIndentToolbarComponent.prototype.statusChange = function (editor) {
|
|
12605
|
-
var _a, _b;
|
|
12606
|
-
this.disabled = ((_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.disable) ? (_b = this.toolbarItem) === null || _b === void 0 ? void 0 : _b.disable(editor) : false;
|
|
12607
|
-
};
|
|
12608
|
-
TheIndentToolbarComponent.prototype.itemMousedown = function (event, item) {
|
|
12609
|
-
_super.prototype.execute.call(this, event);
|
|
12610
|
-
this.closeDropdownPopover();
|
|
12611
|
-
if (item === null || item === void 0 ? void 0 : item.execute) {
|
|
12612
|
-
item === null || item === void 0 ? void 0 : item.execute(this.editor);
|
|
12613
|
-
}
|
|
12614
|
-
};
|
|
12615
|
-
TheIndentToolbarComponent.prototype.openDropdownPopover = function () {
|
|
12616
|
-
var _a;
|
|
12617
|
-
this.dropdownPopoverRef = this.thyPopover.open(this.dropdownTemplate, {
|
|
12618
|
-
origin: this.elementRef,
|
|
12619
|
-
panelClass: ['the-toolbar-dropdown-popover', (_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.key],
|
|
12620
|
-
placement: 'bottomLeft',
|
|
12621
|
-
insideClosable: false,
|
|
12622
|
-
backdropClosable: true,
|
|
12623
|
-
hasBackdrop: false,
|
|
12624
|
-
offset: 10,
|
|
12625
|
-
viewContainerRef: this.viewContainerRef,
|
|
12626
|
-
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
12627
|
-
});
|
|
12628
|
-
};
|
|
12629
|
-
TheIndentToolbarComponent.prototype.closeDropdownPopover = function () {
|
|
12630
|
-
var _a;
|
|
12631
|
-
if (this.dropdownPopoverRef) {
|
|
12632
|
-
(_a = this.dropdownPopoverRef) === null || _a === void 0 ? void 0 : _a.close();
|
|
12633
|
-
}
|
|
12634
|
-
};
|
|
12635
|
-
return TheIndentToolbarComponent;
|
|
12636
|
-
}(TheToolbarBaseItemComponent));
|
|
12637
|
-
TheIndentToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheIndentToolbarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.ThyPopover }, { token: i0__namespace.ViewContainerRef }, { token: i2__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12638
|
-
TheIndentToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheIndentToolbarComponent, selector: "the-indent-toolbar-item", inputs: { toolbarItem: "toolbarItem", menus: "menus", mode: "mode", item: "item" }, host: { listeners: { "mousedown": "toggleDropdown($event)", "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class.disabled": "this.disabledState" }, classAttribute: "the-toolbar-dropdown-container" }, viewQueries: [{ propertyName: "dropdownTemplate", first: true, predicate: ["dropdownTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<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\n<ng-template #dropdownTemplate>\n <thy-action-menu class=\"dropdown-menu\">\n <ng-container *ngFor=\"let menu of menus\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n [thyTooltip]=\"tooltip\"\n [thyTooltipTemplateContext]=\"{ name: menu.name, shortcutKey: menu.shortcutKey }\"\n thyTooltipPlacement=\"right\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <span 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\n<ng-template #tooltip let-data>{{ data?.shortcutKey }}</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i2__namespace$1.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: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i2__namespace$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i2__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
12639
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheIndentToolbarComponent, decorators: [{
|
|
12640
|
-
type: i0.Component,
|
|
12641
|
-
args: [{
|
|
12642
|
-
selector: 'the-indent-toolbar-item',
|
|
12643
|
-
templateUrl: './toolbar-item.component.html',
|
|
12644
|
-
host: {
|
|
12645
|
-
class: 'the-toolbar-dropdown-container'
|
|
12646
|
-
}
|
|
12647
|
-
}]
|
|
12648
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ThyPopover }, { type: i0__namespace.ViewContainerRef }, { type: i2__namespace.Overlay }]; }, propDecorators: { toolbarItem: [{
|
|
12649
|
-
type: i0.Input
|
|
12650
|
-
}], menus: [{
|
|
12651
|
-
type: i0.Input
|
|
12652
|
-
}], mode: [{
|
|
12653
|
-
type: i0.Input
|
|
12654
|
-
}], item: [{
|
|
12655
|
-
type: i0.Input
|
|
12656
|
-
}], dropdownTemplate: [{
|
|
12657
|
-
type: i0.ViewChild,
|
|
12658
|
-
args: ['dropdownTemplate', { static: true }]
|
|
12659
|
-
}], toggleDropdown: [{
|
|
12660
|
-
type: i0.HostListener,
|
|
12661
|
-
args: ['mousedown', ['$event']]
|
|
12662
|
-
}], handleDocumentMouseDown: [{
|
|
12663
|
-
type: i0.HostListener,
|
|
12664
|
-
args: ['document: mousedown', ['$event']]
|
|
12665
|
-
}], disabledState: [{
|
|
12666
|
-
type: i0.HostBinding,
|
|
12667
|
-
args: ['class.disabled']
|
|
12668
|
-
}] } });
|
|
12616
|
+
});
|
|
12669
12617
|
|
|
12670
12618
|
var IndentEditor = {
|
|
12671
12619
|
getAllowedTypes: function (editor) {
|
|
@@ -12734,14 +12682,6 @@
|
|
|
12734
12682
|
return true;
|
|
12735
12683
|
}
|
|
12736
12684
|
return false;
|
|
12737
|
-
},
|
|
12738
|
-
isDisabled: function (editor) {
|
|
12739
|
-
if (editor.selection) {
|
|
12740
|
-
var allowedTypes = IndentEditor.getAllowedTypes(editor);
|
|
12741
|
-
var anchorBlock$1 = anchorBlock(editor);
|
|
12742
|
-
return anchorBlock$1 && !allowedTypes.includes(anchorBlock$1 === null || anchorBlock$1 === void 0 ? void 0 : anchorBlock$1.type);
|
|
12743
|
-
}
|
|
12744
|
-
return false;
|
|
12745
12685
|
}
|
|
12746
12686
|
};
|
|
12747
12687
|
|
|
@@ -12815,8 +12755,10 @@
|
|
|
12815
12755
|
{
|
|
12816
12756
|
key: exports.ElementKinds.indent,
|
|
12817
12757
|
includes: [exports.Indents.indentRight, exports.Indents.indentLeft],
|
|
12818
|
-
|
|
12819
|
-
|
|
12758
|
+
type: exports.ToolbarItemType.dropdown,
|
|
12759
|
+
dropdownMode: exports.DropdownMode.icon,
|
|
12760
|
+
dropdownItemKey: exports.Indents.indentRight,
|
|
12761
|
+
dropdownFixedIcon: true
|
|
12820
12762
|
},
|
|
12821
12763
|
{
|
|
12822
12764
|
key: exports.Indents.indentRight,
|
|
@@ -12830,7 +12772,6 @@
|
|
|
12830
12772
|
name: '减少缩进',
|
|
12831
12773
|
icon: 'float-right',
|
|
12832
12774
|
shortcutKey: 'Shift+Tab/BackSpace',
|
|
12833
|
-
type: exports.ToolbarItemType.toolDropdown,
|
|
12834
12775
|
execute: function (editor) { return IndentEditor.cancelIndent(editor); }
|
|
12835
12776
|
}
|
|
12836
12777
|
],
|
|
@@ -12842,7 +12783,8 @@
|
|
|
12842
12783
|
exports.ElementKinds.bulletedList,
|
|
12843
12784
|
exports.ElementKinds.paragraph
|
|
12844
12785
|
], __read(HEADING_TYPES)),
|
|
12845
|
-
disableIndentTypes: [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.checkItem]
|
|
12786
|
+
disableIndentTypes: [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.checkItem],
|
|
12787
|
+
disabledOperateTypes: __spreadArray([exports.ElementKinds.image], __read(DISABLED_OPERATE_TYPES))
|
|
12846
12788
|
}
|
|
12847
12789
|
});
|
|
12848
12790
|
|
|
@@ -12908,14 +12850,6 @@
|
|
|
12908
12850
|
}
|
|
12909
12851
|
}
|
|
12910
12852
|
return false;
|
|
12911
|
-
},
|
|
12912
|
-
isDisabled: function (editor) {
|
|
12913
|
-
if (editor.selection) {
|
|
12914
|
-
var disableGroup = HEADING_TYPES;
|
|
12915
|
-
var anchorBlock$1 = anchorBlock(editor);
|
|
12916
|
-
return anchorBlock$1 && disableGroup.includes(anchorBlock$1 === null || anchorBlock$1 === void 0 ? void 0 : anchorBlock$1.type);
|
|
12917
|
-
}
|
|
12918
|
-
return false;
|
|
12919
12853
|
}
|
|
12920
12854
|
};
|
|
12921
12855
|
var sizeOptions = function () {
|
|
@@ -12934,12 +12868,14 @@
|
|
|
12934
12868
|
{
|
|
12935
12869
|
key: exports.MarkTypes.fontSize,
|
|
12936
12870
|
name: '字号',
|
|
12937
|
-
type: exports.ToolbarItemType.
|
|
12871
|
+
type: exports.ToolbarItemType.dropdown,
|
|
12938
12872
|
dropdownItemKey: exports.FontSizes.fontSize14,
|
|
12939
|
-
includes: FontSizeTypes
|
|
12940
|
-
disable: function (editor) { return FontSizeEditor.isDisabled(editor); }
|
|
12873
|
+
includes: FontSizeTypes
|
|
12941
12874
|
}
|
|
12942
|
-
], __read(sizeOptions()))
|
|
12875
|
+
], __read(sizeOptions())),
|
|
12876
|
+
options: {
|
|
12877
|
+
disabledOperateTypes: __spreadArray(__spreadArray(__spreadArray([], __read(HEADING_TYPES)), [exports.ElementKinds.image]), __read(DISABLED_OPERATE_TYPES))
|
|
12878
|
+
}
|
|
12943
12879
|
});
|
|
12944
12880
|
|
|
12945
12881
|
var TheVerticalToolbarItemComponent = /** @class */ (function (_super) {
|
|
@@ -12950,7 +12886,6 @@
|
|
|
12950
12886
|
_this.thyPopover = thyPopover;
|
|
12951
12887
|
_this.viewContainerRef = viewContainerRef;
|
|
12952
12888
|
_this.isHide = true;
|
|
12953
|
-
_this.active = false;
|
|
12954
12889
|
return _this;
|
|
12955
12890
|
}
|
|
12956
12891
|
Object.defineProperty(TheVerticalToolbarItemComponent.prototype, "isOpened", {
|
|
@@ -12966,11 +12901,6 @@
|
|
|
12966
12901
|
}
|
|
12967
12902
|
};
|
|
12968
12903
|
TheVerticalToolbarItemComponent.prototype.ngOnInit = function () { };
|
|
12969
|
-
TheVerticalToolbarItemComponent.prototype.statusChange = function (editor) {
|
|
12970
|
-
var _a, _b;
|
|
12971
|
-
this.active = ((_a = this.toolbarItem) === null || _a === void 0 ? void 0 : _a.active) ? (_b = this.toolbarItem) === null || _b === void 0 ? void 0 : _b.active(editor) : false;
|
|
12972
|
-
this.activeMenu = this.menusActive(editor);
|
|
12973
|
-
};
|
|
12974
12904
|
TheVerticalToolbarItemComponent.prototype.menusActive = function (editor) {
|
|
12975
12905
|
var _this = this;
|
|
12976
12906
|
return this.menus.find(function (i) {
|
|
@@ -13015,9 +12945,9 @@
|
|
|
13015
12945
|
}
|
|
13016
12946
|
};
|
|
13017
12947
|
return TheVerticalToolbarItemComponent;
|
|
13018
|
-
}(
|
|
12948
|
+
}(TheBaseToolbarDropdown));
|
|
13019
12949
|
TheVerticalToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$6.ThyPopover }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13020
|
-
TheVerticalToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheVerticalToolbarItemComponent, selector: "the-toolbar-vertical-align-item",
|
|
12950
|
+
TheVerticalToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheVerticalToolbarItemComponent, selector: "the-toolbar-vertical-align-item", 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]=\"activeMenuItem?.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 === activeMenuItem?.key\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <span *ngIf=\"menu.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu?.icon\"></thy-icon>\n </span>\n <span thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i2__namespace$1.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: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i2__namespace$1.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i2__namespace$1.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
|
|
13021
12951
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, decorators: [{
|
|
13022
12952
|
type: i0.Component,
|
|
13023
12953
|
args: [{
|
|
@@ -13028,15 +12958,7 @@
|
|
|
13028
12958
|
'[class.hide]': '!active'
|
|
13029
12959
|
}
|
|
13030
12960
|
}]
|
|
13031
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$6.ThyPopover }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: {
|
|
13032
|
-
type: i0.Input
|
|
13033
|
-
}], menus: [{
|
|
13034
|
-
type: i0.Input
|
|
13035
|
-
}], editor: [{
|
|
13036
|
-
type: i0.Input
|
|
13037
|
-
}], toolbarItem: [{
|
|
13038
|
-
type: i0.Input
|
|
13039
|
-
}], template: [{
|
|
12961
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$6.ThyPopover }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { template: [{
|
|
13040
12962
|
type: i0.ViewChild,
|
|
13041
12963
|
args: ['VerticalAlignItems', { read: i0.TemplateRef, static: true }]
|
|
13042
12964
|
}], handleDocumentMouseDown: [{
|
|
@@ -13064,7 +12986,7 @@
|
|
|
13064
12986
|
{
|
|
13065
12987
|
key: exports.ToolbarActionTypes.verticalAlign,
|
|
13066
12988
|
name: '垂直对齐',
|
|
13067
|
-
type: exports.ToolbarItemType.
|
|
12989
|
+
type: exports.ToolbarItemType.dropdown,
|
|
13068
12990
|
dropdownMode: exports.DropdownMode.icon,
|
|
13069
12991
|
iconComponent: TheVerticalToolbarItemComponent,
|
|
13070
12992
|
includes: [exports.ToolbarActionTypes.verticalAlignTop, exports.ToolbarActionTypes.verticalAlignMiddle, exports.ToolbarActionTypes.verticalAlignBottom],
|
|
@@ -13272,7 +13194,6 @@
|
|
|
13272
13194
|
function TheColorToolbarItemComponent(thyPopover) {
|
|
13273
13195
|
var _this = _super.call(this) || this;
|
|
13274
13196
|
_this.thyPopover = thyPopover;
|
|
13275
|
-
_this.active = false;
|
|
13276
13197
|
return _this;
|
|
13277
13198
|
}
|
|
13278
13199
|
Object.defineProperty(TheColorToolbarItemComponent.prototype, "isOpenColorSelect", {
|
|
@@ -13282,17 +13203,13 @@
|
|
|
13282
13203
|
enumerable: false,
|
|
13283
13204
|
configurable: true
|
|
13284
13205
|
});
|
|
13285
|
-
TheColorToolbarItemComponent.prototype.statusChange = function (editor) {
|
|
13286
|
-
var _a;
|
|
13287
|
-
this.active = (_a = this.item) === null || _a === void 0 ? void 0 : _a.active(editor);
|
|
13288
|
-
};
|
|
13289
13206
|
TheColorToolbarItemComponent.prototype.execute = function (event) {
|
|
13290
13207
|
var _a;
|
|
13291
13208
|
_super.prototype.execute.call(this, event);
|
|
13292
|
-
if ((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) {
|
|
13209
|
+
if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.disabled) || this.disabled) {
|
|
13293
13210
|
return;
|
|
13294
13211
|
}
|
|
13295
|
-
var type = this.
|
|
13212
|
+
var type = this.toolbarItem.key;
|
|
13296
13213
|
this.toggleColorSelect(event, type);
|
|
13297
13214
|
};
|
|
13298
13215
|
TheColorToolbarItemComponent.prototype.toggleColorSelect = function (event, type) {
|
|
@@ -13332,23 +13249,19 @@
|
|
|
13332
13249
|
}
|
|
13333
13250
|
};
|
|
13334
13251
|
return TheColorToolbarItemComponent;
|
|
13335
|
-
}(
|
|
13252
|
+
}(TheBaseToolbarItem));
|
|
13336
13253
|
TheColorToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheColorToolbarItemComponent, deps: [{ token: i1__namespace$1.ThyPopover }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13337
|
-
TheColorToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheColorToolbarItemComponent, selector: "the-color-toolbar-item",
|
|
13254
|
+
TheColorToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheColorToolbarItemComponent, selector: "the-color-toolbar-item", host: { classAttribute: "the-toolbar-item" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <a\n class=\"link-width-down\"\n thyIconNavLink\n [ngStyle]=\"{\n width: toolbarItem.key === 'color' ? '42px' : 'auto'\n }\"\n [thyTooltip]=\"toolbarItem.name\"\n [thyIconNavLinkActive]=\"active\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"toolbarItem.icon\" thyIconType=\"twotone\" [thyTwotoneColor]=\"active\"></thy-icon>\n <thy-icon\n [ngClass]=\"{\n 'link-down-icon': true,\n 'font-size-sm': true,\n 'text-desc': true\n }\"\n thyIconName=\"caret-down\"\n ></thy-icon>\n </a>\n ", isInline: true, components: [{ type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], directives: [{ type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
13338
13255
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheColorToolbarItemComponent, decorators: [{
|
|
13339
13256
|
type: i0.Component,
|
|
13340
13257
|
args: [{
|
|
13341
13258
|
selector: 'the-color-toolbar-item',
|
|
13342
|
-
template: "\n <a\n class=\"link-width-down\"\n thyIconNavLink\n [ngStyle]=\"{\n width:
|
|
13259
|
+
template: "\n <a\n class=\"link-width-down\"\n thyIconNavLink\n [ngStyle]=\"{\n width: toolbarItem.key === 'color' ? '42px' : 'auto'\n }\"\n [thyTooltip]=\"toolbarItem.name\"\n [thyIconNavLinkActive]=\"active\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n >\n <thy-icon [thyIconName]=\"toolbarItem.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 ",
|
|
13343
13260
|
host: {
|
|
13344
13261
|
class: 'the-toolbar-item'
|
|
13345
13262
|
}
|
|
13346
13263
|
}]
|
|
13347
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.ThyPopover }]; }
|
|
13348
|
-
type: i0.Input
|
|
13349
|
-
}], editor: [{
|
|
13350
|
-
type: i0.Input
|
|
13351
|
-
}] } });
|
|
13264
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.ThyPopover }]; } });
|
|
13352
13265
|
|
|
13353
13266
|
var createColorPlugin = createPluginFactory({
|
|
13354
13267
|
key: exports.PluginKeys.color,
|
|
@@ -13367,7 +13280,10 @@
|
|
|
13367
13280
|
iconComponent: TheColorToolbarItemComponent,
|
|
13368
13281
|
active: function (editor) { return ColorEditor.getActiveColor(editor, exports.MarkTypes.backgroundColor); }
|
|
13369
13282
|
}
|
|
13370
|
-
]
|
|
13283
|
+
],
|
|
13284
|
+
options: {
|
|
13285
|
+
disabledOperateTypes: __spreadArray([exports.ElementKinds.image], __read(DISABLED_OPERATE_TYPES))
|
|
13286
|
+
}
|
|
13371
13287
|
});
|
|
13372
13288
|
|
|
13373
13289
|
var internalPlugins = function () { return [
|
|
@@ -13449,7 +13365,7 @@
|
|
|
13449
13365
|
TheToolbarComponent.prototype.ngOnInit = function () {
|
|
13450
13366
|
this.setToolbarClass();
|
|
13451
13367
|
this.renderToolbarView();
|
|
13452
|
-
this.
|
|
13368
|
+
this.selectionChange(this.editor);
|
|
13453
13369
|
if (this.isMore) {
|
|
13454
13370
|
this.resizeElement();
|
|
13455
13371
|
}
|
|
@@ -13466,9 +13382,9 @@
|
|
|
13466
13382
|
}
|
|
13467
13383
|
};
|
|
13468
13384
|
TheToolbarComponent.prototype.setToolbarClass = function () {
|
|
13469
|
-
var
|
|
13385
|
+
var _a;
|
|
13470
13386
|
if (this.editor && !!this.containerClass.length) {
|
|
13471
|
-
(
|
|
13387
|
+
(_a = this.elementRef.nativeElement.classList).add.apply(_a, __spreadArray([], __read(this.containerClass)));
|
|
13472
13388
|
}
|
|
13473
13389
|
};
|
|
13474
13390
|
TheToolbarComponent.prototype.resizeElement = function () {
|
|
@@ -13476,7 +13392,7 @@
|
|
|
13476
13392
|
var editableElement = this.elementRef.nativeElement;
|
|
13477
13393
|
// @ts-ignore
|
|
13478
13394
|
this.resizeObserver = new ResizeObserver(function (entries) {
|
|
13479
|
-
var e_1,
|
|
13395
|
+
var e_1, _a;
|
|
13480
13396
|
try {
|
|
13481
13397
|
for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {
|
|
13482
13398
|
var entry = entries_1_1.value;
|
|
@@ -13490,23 +13406,23 @@
|
|
|
13490
13406
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
13491
13407
|
finally {
|
|
13492
13408
|
try {
|
|
13493
|
-
if (entries_1_1 && !entries_1_1.done && (
|
|
13409
|
+
if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);
|
|
13494
13410
|
}
|
|
13495
13411
|
finally { if (e_1) throw e_1.error; }
|
|
13496
13412
|
}
|
|
13497
13413
|
});
|
|
13498
13414
|
this.resizeObserver.observe(editableElement);
|
|
13499
13415
|
};
|
|
13500
|
-
TheToolbarComponent.prototype.
|
|
13501
|
-
var e_2,
|
|
13416
|
+
TheToolbarComponent.prototype.selectionChange = function (editor) {
|
|
13417
|
+
var e_2, _a;
|
|
13502
13418
|
var toolbarItems = __spreadArray(__spreadArray([], __read(this.toolbarItems)), [this.moreGroupMenu]);
|
|
13503
13419
|
try {
|
|
13504
13420
|
for (var toolbarItems_1 = __values(toolbarItems), toolbarItems_1_1 = toolbarItems_1.next(); !toolbarItems_1_1.done; toolbarItems_1_1 = toolbarItems_1.next()) {
|
|
13505
13421
|
var item = toolbarItems_1_1.value;
|
|
13506
13422
|
if (item.key !== exports.ToolbarActionTypes.split) {
|
|
13507
13423
|
var itemComponent = this.components.get(item.key);
|
|
13508
|
-
if (itemComponent) {
|
|
13509
|
-
itemComponent.instance.
|
|
13424
|
+
if (itemComponent && itemComponent.instance.selectionChange) {
|
|
13425
|
+
itemComponent.instance.selectionChange(editor);
|
|
13510
13426
|
}
|
|
13511
13427
|
}
|
|
13512
13428
|
}
|
|
@@ -13514,7 +13430,7 @@
|
|
|
13514
13430
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
13515
13431
|
finally {
|
|
13516
13432
|
try {
|
|
13517
|
-
if (toolbarItems_1_1 && !toolbarItems_1_1.done && (
|
|
13433
|
+
if (toolbarItems_1_1 && !toolbarItems_1_1.done && (_a = toolbarItems_1.return)) _a.call(toolbarItems_1);
|
|
13518
13434
|
}
|
|
13519
13435
|
finally { if (e_2) throw e_2.error; }
|
|
13520
13436
|
}
|
|
@@ -13526,7 +13442,7 @@
|
|
|
13526
13442
|
var toolbarItems = this.toolbarItemsCompose();
|
|
13527
13443
|
var items = toolbarItems.items, group = toolbarItems.group;
|
|
13528
13444
|
this.ngZone.run(function () {
|
|
13529
|
-
var e_3,
|
|
13445
|
+
var e_3, _a;
|
|
13530
13446
|
try {
|
|
13531
13447
|
for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
|
|
13532
13448
|
var item = items_1_1.value;
|
|
@@ -13540,7 +13456,7 @@
|
|
|
13540
13456
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
13541
13457
|
finally {
|
|
13542
13458
|
try {
|
|
13543
|
-
if (items_1_1 && !items_1_1.done && (
|
|
13459
|
+
if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1);
|
|
13544
13460
|
}
|
|
13545
13461
|
finally { if (e_3) throw e_3.error; }
|
|
13546
13462
|
}
|
|
@@ -13564,7 +13480,7 @@
|
|
|
13564
13480
|
* set aside 50px
|
|
13565
13481
|
*/
|
|
13566
13482
|
TheToolbarComponent.prototype.toolbarItemsCompose = function () {
|
|
13567
|
-
var e_4,
|
|
13483
|
+
var e_4, _a;
|
|
13568
13484
|
var elementWidth = this.isMore ? this.elementWidth : null;
|
|
13569
13485
|
var maxItemWidth = 50;
|
|
13570
13486
|
var defaultItemWidth = 35;
|
|
@@ -13574,8 +13490,8 @@
|
|
|
13574
13490
|
var items = [];
|
|
13575
13491
|
var group = [];
|
|
13576
13492
|
try {
|
|
13577
|
-
for (var
|
|
13578
|
-
var item =
|
|
13493
|
+
for (var _b = __values(this.toolbarItems), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13494
|
+
var item = _c.value;
|
|
13579
13495
|
if (!this.isMore) {
|
|
13580
13496
|
items.push(item);
|
|
13581
13497
|
continue;
|
|
@@ -13597,14 +13513,14 @@
|
|
|
13597
13513
|
elementWidth -= headingWidth;
|
|
13598
13514
|
continue;
|
|
13599
13515
|
}
|
|
13600
|
-
var isCustomComponent = (item === null || item === void 0 ? void 0 : item.type) === exports.ToolbarItemType.
|
|
13516
|
+
var isCustomComponent = (item === null || item === void 0 ? void 0 : item.type) === exports.ToolbarItemType.dropdown || !!(item === null || item === void 0 ? void 0 : item.iconComponent);
|
|
13601
13517
|
elementWidth -= isCustomComponent ? maxItemWidth : defaultItemWidth;
|
|
13602
13518
|
}
|
|
13603
13519
|
}
|
|
13604
13520
|
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
13605
13521
|
finally {
|
|
13606
13522
|
try {
|
|
13607
|
-
if (
|
|
13523
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13608
13524
|
}
|
|
13609
13525
|
finally { if (e_4) throw e_4.error; }
|
|
13610
13526
|
}
|
|
@@ -13617,12 +13533,12 @@
|
|
|
13617
13533
|
* externally designated more group
|
|
13618
13534
|
*/
|
|
13619
13535
|
TheToolbarComponent.prototype.toolbarItemsAndMoreCompose = function () {
|
|
13620
|
-
var e_5,
|
|
13536
|
+
var e_5, _a;
|
|
13621
13537
|
var items = [];
|
|
13622
13538
|
var group = [];
|
|
13623
13539
|
try {
|
|
13624
|
-
for (var
|
|
13625
|
-
var item =
|
|
13540
|
+
for (var _b = __values(this.toolbarItems), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13541
|
+
var item = _c.value;
|
|
13626
13542
|
if (item.key === exports.ToolbarActionTypes.split) {
|
|
13627
13543
|
items.push(item);
|
|
13628
13544
|
continue;
|
|
@@ -13633,7 +13549,7 @@
|
|
|
13633
13549
|
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
13634
13550
|
finally {
|
|
13635
13551
|
try {
|
|
13636
|
-
if (
|
|
13552
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13637
13553
|
}
|
|
13638
13554
|
finally { if (e_5) throw e_5.error; }
|
|
13639
13555
|
}
|
|
@@ -13662,15 +13578,17 @@
|
|
|
13662
13578
|
TheToolbarComponent.prototype.createToolbarItem = function (item) {
|
|
13663
13579
|
var iconComponent = item.iconComponent, type = item.type, dropdownMode = item.dropdownMode, dropdownItemKey = item.dropdownItemKey, includes = item.includes, args = __rest(item, ["iconComponent", "type", "dropdownMode", "dropdownItemKey", "includes"]);
|
|
13664
13580
|
var viewComponent = this.viewComponentType(type);
|
|
13665
|
-
var dropdownItem = this.getDropdownItem(item);
|
|
13666
13581
|
var factory = this.cfr.resolveComponentFactory(iconComponent ? iconComponent : viewComponent);
|
|
13667
13582
|
var compRef = this.toolbarContainer.createComponent(factory);
|
|
13668
13583
|
compRef.instance.editor = this.editor;
|
|
13669
13584
|
compRef.instance.toolbarItem = item;
|
|
13670
|
-
compRef.instance.menus = includes;
|
|
13671
|
-
compRef.instance.item = includes && dropdownItem ? dropdownItem : args;
|
|
13672
|
-
compRef.instance.mode = dropdownMode;
|
|
13673
13585
|
this.components.set(item.key, compRef);
|
|
13586
|
+
if (item.type === exports.ToolbarItemType.dropdown) {
|
|
13587
|
+
var dropdownRef = compRef;
|
|
13588
|
+
dropdownRef.instance.dropdownItemKey = item.dropdownItemKey;
|
|
13589
|
+
dropdownRef.instance.menus = includes;
|
|
13590
|
+
dropdownRef.instance.mode = dropdownMode;
|
|
13591
|
+
}
|
|
13674
13592
|
};
|
|
13675
13593
|
TheToolbarComponent.prototype.createToolbarSplit = function () {
|
|
13676
13594
|
var navSplitLineFactory = this.cfr.resolveComponentFactory(NavSplitLineComponent);
|
|
@@ -13690,26 +13608,15 @@
|
|
|
13690
13608
|
if (type === exports.ToolbarItemType.default) {
|
|
13691
13609
|
return TheToolbarItemComponent;
|
|
13692
13610
|
}
|
|
13693
|
-
if (type === exports.ToolbarItemType.
|
|
13611
|
+
if (type === exports.ToolbarItemType.dropdown) {
|
|
13694
13612
|
return TheToolbarDropdownComponent;
|
|
13695
13613
|
}
|
|
13696
13614
|
return TheToolbarItemComponent;
|
|
13697
13615
|
};
|
|
13698
|
-
TheToolbarComponent.prototype.getDropdownItem = function (item) {
|
|
13699
|
-
var _a, _b, _c;
|
|
13700
|
-
var dropdownKey = item === null || item === void 0 ? void 0 : item.dropdownItemKey;
|
|
13701
|
-
// modify the fontsize option externally
|
|
13702
|
-
var contextService = (_b = (_a = this.editor) === null || _a === void 0 ? void 0 : _a.injector) === null || _b === void 0 ? void 0 : _b.get(TheContextService);
|
|
13703
|
-
var fontSize = contextService === null || contextService === void 0 ? void 0 : contextService.getDefaultFontSize();
|
|
13704
|
-
if (contextService && item.key === exports.MarkTypes.fontSize && fontSize) {
|
|
13705
|
-
dropdownKey = fontSize;
|
|
13706
|
-
}
|
|
13707
|
-
return (_c = item === null || item === void 0 ? void 0 : item.includes) === null || _c === void 0 ? void 0 : _c.find(function (item) { return item.key === dropdownKey; });
|
|
13708
|
-
};
|
|
13709
13616
|
return TheToolbarComponent;
|
|
13710
13617
|
}());
|
|
13711
13618
|
TheToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: TheToolbarGroupToken }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13712
|
-
TheToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarComponent, selector: "the-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems", align: "align", containerClass: "containerClass", isMore: "isMore", afterTemplate: "afterTemplate" }, host: { classAttribute: "the-toolbar-container" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<thy-icon-nav [style.justifyContent]=\"align\">\n <ng-container #toolbarContainer></ng-container>\n <ng-content></ng-content>\n <ng-template *ngIf=\"afterTemplate\" [ngTemplateOutlet]=\"afterTemplate\"></ng-template>\n</thy-icon-nav>\n", components: [{ type: i3__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
13619
|
+
TheToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarComponent, selector: "the-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems", align: "align", containerClass: "containerClass", isMore: "isMore", afterTemplate: "afterTemplate" }, host: { classAttribute: "the-toolbar-container" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<thy-icon-nav [style.justifyContent]=\"align\">\n <ng-container #toolbarContainer></ng-container>\n <ng-content></ng-content>\n <ng-template *ngIf=\"afterTemplate\" [ngTemplateOutlet]=\"afterTemplate\"></ng-template>\n</thy-icon-nav>\n", components: [{ type: i3__namespace$1.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
13713
13620
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarComponent, decorators: [{
|
|
13714
13621
|
type: i0.Component,
|
|
13715
13622
|
args: [{
|
|
@@ -13765,7 +13672,7 @@
|
|
|
13765
13672
|
.subscribe(function () {
|
|
13766
13673
|
var _a;
|
|
13767
13674
|
_this.updateInlineToolbar();
|
|
13768
|
-
(_a = _this.inlineToolbar) === null || _a === void 0 ? void 0 : _a.
|
|
13675
|
+
(_a = _this.inlineToolbar) === null || _a === void 0 ? void 0 : _a.selectionChange(_this.editor);
|
|
13769
13676
|
_this.cdr.detectChanges();
|
|
13770
13677
|
});
|
|
13771
13678
|
});
|
|
@@ -13939,7 +13846,7 @@
|
|
|
13939
13846
|
return TheQuickInsertComponent;
|
|
13940
13847
|
}());
|
|
13941
13848
|
TheQuickInsertComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickInsertComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13942
|
-
TheQuickInsertComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems", isVisible: "isVisible" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class.hide": "isHide" }, classAttribute: "the-quick-insert" }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n", components: [{ type:
|
|
13849
|
+
TheQuickInsertComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems", isVisible: "isVisible" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class.hide": "isHide" }, classAttribute: "the-quick-insert" }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n", components: [{ type: i3__namespace.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] });
|
|
13943
13850
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickInsertComponent, decorators: [{
|
|
13944
13851
|
type: i0.Component,
|
|
13945
13852
|
args: [{
|
|
@@ -14302,7 +14209,7 @@
|
|
|
14302
14209
|
TheEditorComponent.prototype.valueChange = function (value) {
|
|
14303
14210
|
var _a, _b, _c, _d, _e, _f;
|
|
14304
14211
|
var isEditable = !((_a = this.theOptions) === null || _a === void 0 ? void 0 : _a.readonly) && !((_b = this.theOptions) === null || _b === void 0 ? void 0 : _b.disabled);
|
|
14305
|
-
(_c = this.theGlobalToolbarInstance) === null || _c === void 0 ? void 0 : _c.
|
|
14212
|
+
(_c = this.theGlobalToolbarInstance) === null || _c === void 0 ? void 0 : _c.selectionChange(this.editor);
|
|
14306
14213
|
// quick insert button
|
|
14307
14214
|
if (isEditable) {
|
|
14308
14215
|
(_d = this.quickInsertInstance) === null || _d === void 0 ? void 0 : _d.checkStatus();
|
|
@@ -14438,11 +14345,11 @@
|
|
|
14438
14345
|
TheContextService,
|
|
14439
14346
|
TheColorSelectService,
|
|
14440
14347
|
{
|
|
14441
|
-
provide: i4
|
|
14348
|
+
provide: i4.NG_VALUE_ACCESSOR,
|
|
14442
14349
|
useExisting: i0.forwardRef(function () { return TheEditorComponent; }),
|
|
14443
14350
|
multi: true
|
|
14444
14351
|
}
|
|
14445
|
-
], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }, { propertyName: "quickInsertInstance", first: true, predicate: ["quickInsert"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<the-toolbar\n *ngIf=\"!theOptions?.readonly && !theGlobalToolbar\"\n [ngClass]=\"{\n 'the-toolbar-disabled': theOptions?.disabled\n }\"\n #globalToolbar\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.global\"\n [containerClass]=\"globalToolbarClass\"\n [align]=\"theOptions?.toolbar?.align\"\n></the-toolbar>\n\n<div\n class=\"the-editable-container\"\n [ngClass]=\"{\n 'the-editor-disabled': theOptions?.disabled,\n 'max-height': maxHeight\n }\"\n [ngStyle]=\"{ 'max-height': maxHeight }\"\n>\n <slate-editable\n class=\"the-editor-typo\"\n [editor]=\"editor\"\n [ngModel]=\"editorValue\"\n (ngModelChange)=\"valueChange($event)\"\n [decorate]=\"decorate\"\n [placeholder]=\"theOptions?.placeholder\"\n [placeholderDecorate]=\"theOptions?.placeholderDecorate ? theOptions?.placeholderDecorate : null\"\n [renderElement]=\"renderElement\"\n [renderText]=\"renderText\"\n [renderLeaf]=\"renderLeaf\"\n [readonly]=\"theOptions?.readonly || theOptions?.disabled\"\n [keydown]=\"onKeyDown\"\n [click]=\"onClick\"\n [paste]=\"onSlaPaste\"\n [beforeInput]=\"onSlaBeforeInput\"\n [blur]=\"onSlaBlur\"\n [focus]=\"onSlaFocus\"\n [copy]=\"onSlaCopy\"\n [cut]=\"onSlaCut\"\n [isStrictDecorate]=\"false\"\n [compositionStart]=\"onSlaCompositionStart\"\n [compositionEnd]=\"onSlaCompositionEnd\"\n [dragStart]=\"onSlaDragStart\"\n [dragOver]=\"onSlaDragOver\"\n [drop]=\"onDrop\"\n (mousedown)=\"mousedown($event)\"\n ></slate-editable>\n <the-inline-toolbar\n *ngIf=\"!theOptions?.readonly && theOptions?.inlineToobarVisible\"\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.inline\"\n ></the-inline-toolbar>\n <div\n #quickInsert\n theQuickInsert\n [editor]=\"editor\"\n [quickToolbarItems]=\"quickToolbarItems\"\n [isVisible]=\"theOptions?.quickInsertVisible\"\n ></div>\n <the-template #templateInstance></the-template>\n</div>\n", components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { type: i1__namespace.SlateEditableComponent, selector: "slate-editable", inputs: ["editor", "renderElement", "renderLeaf", "renderText", "decorate", "placeholderDecorate", "isStrictDecorate", "trackBy", "readonly", "placeholder", "beforeInput", "blur", "click", "compositionEnd", "compositionStart", "copy", "cut", "dragOver", "dragStart", "dragEnd", "drop", "focus", "keydown", "paste", "spellCheck", "autoCorrect", "autoCapitalize"] }, { type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "quickToolbarItems", "isVisible"] }, { type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace
|
|
14352
|
+
], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }, { propertyName: "quickInsertInstance", first: true, predicate: ["quickInsert"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<the-toolbar\n *ngIf=\"!theOptions?.readonly && !theGlobalToolbar\"\n [ngClass]=\"{\n 'the-toolbar-disabled': theOptions?.disabled\n }\"\n #globalToolbar\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.global\"\n [containerClass]=\"globalToolbarClass\"\n [align]=\"theOptions?.toolbar?.align\"\n></the-toolbar>\n\n<div\n class=\"the-editable-container\"\n [ngClass]=\"{\n 'the-editor-disabled': theOptions?.disabled,\n 'max-height': maxHeight\n }\"\n [ngStyle]=\"{ 'max-height': maxHeight }\"\n>\n <slate-editable\n class=\"the-editor-typo\"\n [editor]=\"editor\"\n [ngModel]=\"editorValue\"\n (ngModelChange)=\"valueChange($event)\"\n [decorate]=\"decorate\"\n [placeholder]=\"theOptions?.placeholder\"\n [placeholderDecorate]=\"theOptions?.placeholderDecorate ? theOptions?.placeholderDecorate : null\"\n [renderElement]=\"renderElement\"\n [renderText]=\"renderText\"\n [renderLeaf]=\"renderLeaf\"\n [readonly]=\"theOptions?.readonly || theOptions?.disabled\"\n [keydown]=\"onKeyDown\"\n [click]=\"onClick\"\n [paste]=\"onSlaPaste\"\n [beforeInput]=\"onSlaBeforeInput\"\n [blur]=\"onSlaBlur\"\n [focus]=\"onSlaFocus\"\n [copy]=\"onSlaCopy\"\n [cut]=\"onSlaCut\"\n [isStrictDecorate]=\"false\"\n [compositionStart]=\"onSlaCompositionStart\"\n [compositionEnd]=\"onSlaCompositionEnd\"\n [dragStart]=\"onSlaDragStart\"\n [dragOver]=\"onSlaDragOver\"\n [drop]=\"onDrop\"\n (mousedown)=\"mousedown($event)\"\n ></slate-editable>\n <the-inline-toolbar\n *ngIf=\"!theOptions?.readonly && theOptions?.inlineToobarVisible\"\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.inline\"\n ></the-inline-toolbar>\n <div\n #quickInsert\n theQuickInsert\n [editor]=\"editor\"\n [quickToolbarItems]=\"quickToolbarItems\"\n [isVisible]=\"theOptions?.quickInsertVisible\"\n ></div>\n <the-template #templateInstance></the-template>\n</div>\n", components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { type: i1__namespace.SlateEditableComponent, selector: "slate-editable", inputs: ["editor", "renderElement", "renderLeaf", "renderText", "decorate", "placeholderDecorate", "isStrictDecorate", "trackBy", "readonly", "placeholder", "beforeInput", "blur", "click", "compositionEnd", "compositionStart", "copy", "cut", "dragOver", "dragStart", "dragEnd", "drop", "focus", "keydown", "paste", "spellCheck", "autoCorrect", "autoCapitalize"] }, { type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "quickToolbarItems", "isVisible"] }, { type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
14446
14353
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheEditorComponent, decorators: [{
|
|
14447
14354
|
type: i0.Component,
|
|
14448
14355
|
args: [{
|
|
@@ -14452,7 +14359,7 @@
|
|
|
14452
14359
|
TheContextService,
|
|
14453
14360
|
TheColorSelectService,
|
|
14454
14361
|
{
|
|
14455
|
-
provide: i4
|
|
14362
|
+
provide: i4.NG_VALUE_ACCESSOR,
|
|
14456
14363
|
useExisting: i0.forwardRef(function () { return TheEditorComponent; }),
|
|
14457
14364
|
multi: true
|
|
14458
14365
|
}
|
|
@@ -14538,7 +14445,7 @@
|
|
|
14538
14445
|
},
|
|
14539
14446
|
set: function (i) {
|
|
14540
14447
|
this._item = i;
|
|
14541
|
-
this.
|
|
14448
|
+
this.activeMenuItem = i;
|
|
14542
14449
|
},
|
|
14543
14450
|
enumerable: false,
|
|
14544
14451
|
configurable: true
|
|
@@ -14573,9 +14480,9 @@
|
|
|
14573
14480
|
this.openGroup(event);
|
|
14574
14481
|
}
|
|
14575
14482
|
};
|
|
14576
|
-
TheToolbarGroupComponent.prototype.
|
|
14483
|
+
TheToolbarGroupComponent.prototype.selectionChange = function (editor) {
|
|
14577
14484
|
var activeItem = this.menusActive(editor);
|
|
14578
|
-
this.
|
|
14485
|
+
this.activeMenuItem = activeItem ? activeItem : null;
|
|
14579
14486
|
this.activeChange();
|
|
14580
14487
|
this.colseGroup();
|
|
14581
14488
|
};
|
|
@@ -14620,7 +14527,7 @@
|
|
|
14620
14527
|
return TheToolbarGroupComponent;
|
|
14621
14528
|
}());
|
|
14622
14529
|
TheToolbarGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarGroupComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.ThyPopover }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
14623
|
-
TheToolbarGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarGroupComponent, selector: "the-toolbar-group", inputs: { menus: "menus", item: "item" }, host: { listeners: { "mousedown": "mousedownHandler($event)", "click": "clickHandle($event)" }, classAttribute: "the-toolbar-group" }, viewQueries: [{ propertyName: "groupTemplate", first: true, predicate: ["groupTemplate"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<a thyIconNavLink [thyIconNavLinkIcon]=\"item.icon\" [thyTooltip]=\"item?.name\" thyTooltipPlacement=\"top\" [thyIconNavLinkActive]=\"active\"></a>\n\n<ng-template #groupTemplate>\n <the-toolbar class=\"group\" [editor]=\"editor\" [toolbarItems]=\"menus\" [isMore]=\"false\"></the-toolbar>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
14530
|
+
TheToolbarGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarGroupComponent, selector: "the-toolbar-group", inputs: { menus: "menus", item: "item" }, host: { listeners: { "mousedown": "mousedownHandler($event)", "click": "clickHandle($event)" }, classAttribute: "the-toolbar-group" }, viewQueries: [{ propertyName: "groupTemplate", first: true, predicate: ["groupTemplate"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<a thyIconNavLink [thyIconNavLinkIcon]=\"item.icon\" [thyTooltip]=\"item?.name\" thyTooltipPlacement=\"top\" [thyIconNavLinkActive]=\"active\"></a>\n\n<ng-template #groupTemplate>\n <the-toolbar class=\"group\" [editor]=\"editor\" [toolbarItems]=\"menus\" [isMore]=\"false\"></the-toolbar>\n</ng-template>\n", components: [{ type: i3__namespace$1.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
14624
14531
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarGroupComponent, decorators: [{
|
|
14625
14532
|
type: i0.Component,
|
|
14626
14533
|
args: [{
|
|
@@ -14646,9 +14553,9 @@
|
|
|
14646
14553
|
}] } });
|
|
14647
14554
|
|
|
14648
14555
|
var TETHYS = [
|
|
14649
|
-
|
|
14556
|
+
i3.ThyIconModule,
|
|
14650
14557
|
avatar.ThyAvatarModule,
|
|
14651
|
-
i3.ThyNavModule,
|
|
14558
|
+
i3$1.ThyNavModule,
|
|
14652
14559
|
i2$2.ThyFormModule,
|
|
14653
14560
|
i5$3.ThySharedModule,
|
|
14654
14561
|
i1$7.ThyListModule,
|
|
@@ -14683,7 +14590,6 @@
|
|
|
14683
14590
|
TheTableToolbarItemComponent,
|
|
14684
14591
|
TheConversionHintComponent,
|
|
14685
14592
|
TheVerticalToolbarItemComponent,
|
|
14686
|
-
TheIndentToolbarComponent,
|
|
14687
14593
|
TheTableOptionsComponent
|
|
14688
14594
|
];
|
|
14689
14595
|
var PLUGIN_COMPONENTS = [
|
|
@@ -14730,7 +14636,6 @@
|
|
|
14730
14636
|
TheTableToolbarItemComponent,
|
|
14731
14637
|
TheConversionHintComponent,
|
|
14732
14638
|
TheVerticalToolbarItemComponent,
|
|
14733
|
-
TheIndentToolbarComponent,
|
|
14734
14639
|
TheTableOptionsComponent, TheImageComponent,
|
|
14735
14640
|
TheTemplateComponent,
|
|
14736
14641
|
TheHrComponent,
|
|
@@ -14747,9 +14652,9 @@
|
|
|
14747
14652
|
TheTableComponent,
|
|
14748
14653
|
TheTableRowComponent,
|
|
14749
14654
|
TheTdComponent,
|
|
14750
|
-
TheInlineCodeComponent], imports: [i10.CommonModule, i1.SlateModule, i4
|
|
14655
|
+
TheInlineCodeComponent], imports: [i10.CommonModule, i1.SlateModule, i4.FormsModule, i3.ThyIconModule,
|
|
14751
14656
|
avatar.ThyAvatarModule,
|
|
14752
|
-
i3.ThyNavModule,
|
|
14657
|
+
i3$1.ThyNavModule,
|
|
14753
14658
|
i2$2.ThyFormModule,
|
|
14754
14659
|
i5$3.ThySharedModule,
|
|
14755
14660
|
i1$7.ThyListModule,
|
|
@@ -14770,12 +14675,12 @@
|
|
|
14770
14675
|
useValue: TheToolbarGroupComponent
|
|
14771
14676
|
},
|
|
14772
14677
|
THE_MODE_PROVIDER
|
|
14773
|
-
], imports: [__spreadArray(__spreadArray([i10.CommonModule, i1.SlateModule, i4
|
|
14678
|
+
], imports: [__spreadArray(__spreadArray([i10.CommonModule, i1.SlateModule, i4.FormsModule], __read(TETHYS)), [i8.CodemirrorModule, TheColumnSizeModule])] });
|
|
14774
14679
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheEditorModule, decorators: [{
|
|
14775
14680
|
type: i0.NgModule,
|
|
14776
14681
|
args: [{
|
|
14777
14682
|
declarations: __spreadArray(__spreadArray(__spreadArray([TheEditorComponent], __read(PIPES)), __read(COMPONENTS)), __read(PLUGIN_COMPONENTS)),
|
|
14778
|
-
imports: __spreadArray(__spreadArray([i10.CommonModule, i1.SlateModule, i4
|
|
14683
|
+
imports: __spreadArray(__spreadArray([i10.CommonModule, i1.SlateModule, i4.FormsModule], __read(TETHYS)), [i8.CodemirrorModule, TheColumnSizeModule]),
|
|
14779
14684
|
exports: [TheEditorComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarItemComponent, TheDefaultElementComponent],
|
|
14780
14685
|
entryComponents: __spreadArray(__spreadArray([], __read(COMPONENTS)), __read(PLUGIN_COMPONENTS)),
|
|
14781
14686
|
providers: [
|
|
@@ -14851,7 +14756,7 @@
|
|
|
14851
14756
|
exports.ALIGN_BLOCK_TYPES = ALIGN_BLOCK_TYPES;
|
|
14852
14757
|
exports.A_TAG_REL_ATTR = A_TAG_REL_ATTR;
|
|
14853
14758
|
exports.AlignEditor = AlignEditor;
|
|
14854
|
-
exports.
|
|
14759
|
+
exports.BLOCK_DELETE_BACKWARD_TYPES = BLOCK_DELETE_BACKWARD_TYPES;
|
|
14855
14760
|
exports.BlockquoteEditor = BlockquoteEditor;
|
|
14856
14761
|
exports.CLIPBOARD_FORMAT_KEY = CLIPBOARD_FORMAT_KEY;
|
|
14857
14762
|
exports.CODEMIRROR_PADDING_TOP = CODEMIRROR_PADDING_TOP;
|
|
@@ -14863,6 +14768,7 @@
|
|
|
14863
14768
|
exports.ColorEditor = ColorEditor;
|
|
14864
14769
|
exports.DEFAULT_LANGUAGE = DEFAULT_LANGUAGE;
|
|
14865
14770
|
exports.DEFAULT_SCROLL_CONTAINER = DEFAULT_SCROLL_CONTAINER;
|
|
14771
|
+
exports.DISABLED_OPERATE_TYPES = DISABLED_OPERATE_TYPES;
|
|
14866
14772
|
exports.DefaultElementOptions = DefaultElementOptions;
|
|
14867
14773
|
exports.DefaultGlobalToolbarDefinition = DefaultGlobalToolbarDefinition;
|
|
14868
14774
|
exports.DefaultInlineToolbarDefinition = DefaultInlineToolbarDefinition;
|
|
@@ -14896,16 +14802,16 @@
|
|
|
14896
14802
|
exports.THE_UPLOAD_SERVICE_TOKEN = THE_UPLOAD_SERVICE_TOKEN;
|
|
14897
14803
|
exports.TableEditor = TableEditor;
|
|
14898
14804
|
exports.TheBaseElementComponent = TheBaseElementComponent;
|
|
14805
|
+
exports.TheBaseToolbarDropdown = TheBaseToolbarDropdown;
|
|
14806
|
+
exports.TheBaseToolbarItem = TheBaseToolbarItem;
|
|
14899
14807
|
exports.TheContextService = TheContextService;
|
|
14900
14808
|
exports.TheDefaultElementComponent = TheDefaultElementComponent;
|
|
14901
14809
|
exports.TheEditor = TheEditor;
|
|
14902
14810
|
exports.TheEditorComponent = TheEditorComponent;
|
|
14903
14811
|
exports.TheEditorModule = TheEditorModule;
|
|
14904
14812
|
exports.TheImageComponent = TheImageComponent;
|
|
14905
|
-
exports.TheIndentToolbarComponent = TheIndentToolbarComponent;
|
|
14906
14813
|
exports.TheModeConfig = TheModeConfig;
|
|
14907
14814
|
exports.TheQueries = index$1;
|
|
14908
|
-
exports.TheToolbarBaseItemComponent = TheToolbarBaseItemComponent;
|
|
14909
14815
|
exports.TheToolbarComponent = TheToolbarComponent;
|
|
14910
14816
|
exports.TheToolbarDropdownComponent = TheToolbarDropdownComponent;
|
|
14911
14817
|
exports.TheToolbarGroupComponent = TheToolbarGroupComponent;
|
|
@@ -14928,9 +14834,9 @@
|
|
|
14928
14834
|
exports.createVerticalAlignPlugin = createVerticalAlignPlugin;
|
|
14929
14835
|
exports.dataDeserialize = dataDeserialize;
|
|
14930
14836
|
exports.dataSerializing = dataSerializing;
|
|
14931
|
-
exports.deleteColorAndBackgroundColorOfText = deleteColorAndBackgroundColorOfText;
|
|
14932
14837
|
exports.deleteElementKey = deleteElementKey;
|
|
14933
14838
|
exports.extractFragment = extractFragment;
|
|
14839
|
+
exports.filterTextFormat = filterTextFormat;
|
|
14934
14840
|
exports.flattenDeepPlugins = flattenDeepPlugins;
|
|
14935
14841
|
exports.getColsTotalWidth = getColsTotalWidth;
|
|
14936
14842
|
exports.getEditorUUID = getEditorUUID;
|