@worktile/theia 15.0.8 → 15.0.10
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/components/action/prevent-default.d.ts +1 -1
- package/components/color-select/color-select.component.d.ts +1 -1
- package/components/column-resize/column-resize.directive.d.ts +1 -1
- package/components/column-resize/overlay-handle.component.d.ts +1 -1
- package/components/contextmenu/contextmenu.component.d.ts +1 -1
- package/components/conversion-hint/conversion-hint.component.d.ts +1 -1
- package/components/element/element.component.d.ts +1 -1
- package/components/inline-toolbar/inline-toolbar.component.d.ts +1 -1
- package/components/listbox/listbox.d.ts +3 -3
- package/components/listbox/listbox.type.d.ts +1 -1
- package/components/plugin-menu/plugin-menu.component.d.ts +1 -1
- package/components/table-select/table-select.component.d.ts +1 -1
- package/components/template/template.component.d.ts +1 -1
- package/components/text/text.component.d.ts +1 -1
- package/components/toolbar/toolbar.component.d.ts +1 -1
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +1 -1
- package/components/toolbar-group/toolbar-group.component.d.ts +1 -1
- package/components/toolbar-item/toolbar-item.component.d.ts +1 -1
- package/constants/color-select.d.ts +1 -1
- package/core/toolbar-item/base-toolbar-item.d.ts +2 -2
- package/custom-types.d.ts +6 -6
- package/editor.component.d.ts +1 -1
- package/esm2020/components/action/prevent-default.mjs +3 -3
- package/esm2020/components/color-select/color-select.component.mjs +9 -9
- package/esm2020/components/column-resize/column-resize-notifier.mjs +3 -3
- package/esm2020/components/column-resize/column-resize.directive.mjs +3 -3
- package/esm2020/components/column-resize/column-resize.module.mjs +8 -8
- package/esm2020/components/column-resize/event-dispatcher.mjs +3 -3
- package/esm2020/components/column-resize/overlay-handle.component.mjs +3 -3
- package/esm2020/components/column-resize/resizing.store.mjs +3 -3
- package/esm2020/components/contextmenu/contextmenu.component.mjs +10 -10
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +3 -3
- package/esm2020/components/element/element.component.mjs +3 -3
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
- package/esm2020/components/listbox/listbox.mjs +16 -16
- package/esm2020/components/plugin-menu/plugin-menu.component.mjs +3 -3
- package/esm2020/components/table-select/table-select.component.mjs +3 -3
- package/esm2020/components/template/template.component.mjs +3 -3
- package/esm2020/components/text/text.component.mjs +3 -3
- package/esm2020/components/toolbar/toolbar.component.mjs +7 -7
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +14 -14
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +11 -11
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +7 -7
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +6 -6
- package/esm2020/editor.component.mjs +10 -10
- package/esm2020/editor.module.mjs +4 -4
- package/esm2020/interfaces/view-base.mjs +3 -3
- package/esm2020/pipes.mjs +6 -6
- package/esm2020/plugins/blockquote/blockquote.component.mjs +3 -3
- package/esm2020/plugins/code/code.component.mjs +10 -10
- package/esm2020/plugins/color/toolbar-item.component.mjs +7 -7
- package/esm2020/plugins/common/{auto-insert-data..mjs → auto-insert-data.mjs} +9 -6
- package/esm2020/plugins/hr/hr.component.mjs +3 -3
- package/esm2020/plugins/image/image.component.mjs +13 -13
- package/esm2020/plugins/index.mjs +2 -2
- package/esm2020/plugins/inline-code/inline-code.component.mjs +3 -3
- package/esm2020/plugins/link/edit/link-edit.component.mjs +9 -9
- package/esm2020/plugins/link/hover/link-hover.component.mjs +3 -3
- package/esm2020/plugins/link/link.component.mjs +13 -13
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +7 -7
- package/esm2020/plugins/list/components/list-item.component.mjs +3 -3
- package/esm2020/plugins/list/components/numbered-list.component.mjs +9 -9
- package/esm2020/plugins/mention/suggestion.component.mjs +3 -3
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +8 -8
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +10 -15
- package/esm2020/plugins/table/components/row/row.component.mjs +3 -3
- package/esm2020/plugins/table/components/table.component.mjs +113 -97
- package/esm2020/plugins/table/components/td/td.component.mjs +20 -20
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +7 -7
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +13 -13
- package/esm2020/plugins/table/table.pipe.mjs +22 -8
- package/esm2020/plugins/table/table.service.mjs +7 -7
- package/esm2020/plugins/table/table.store.mjs +10 -10
- package/esm2020/plugins/table/table.types.mjs +7 -1
- package/esm2020/plugins/table/toolbar-item.component.mjs +7 -7
- package/esm2020/plugins/table/utils/get-grid-columns.mjs +39 -0
- package/esm2020/plugins/todo-item/todo-item.component.mjs +11 -11
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +11 -11
- package/esm2020/services/color-select.service.mjs +7 -7
- package/esm2020/services/context.service.mjs +19 -7
- package/esm2020/services/table-contextmenu.service.mjs +13 -13
- package/esm2020/services/toolbar.service.mjs +3 -3
- package/fesm2015/worktile-theia.mjs +603 -522
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +595 -515
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +2 -2
- package/interfaces/element.d.ts +3 -3
- package/interfaces/plugins/no-infer.d.ts +1 -1
- package/interfaces/plugins/plugin-key.d.ts +1 -1
- package/interfaces/plugins/plugin-menu.d.ts +4 -4
- package/interfaces/plugins/plugins.d.ts +4 -4
- package/interfaces/plugins/with-override.d.ts +1 -1
- package/interfaces/toolbar.d.ts +4 -4
- package/interfaces/utility/nested-structure-by-key.d.ts +1 -1
- package/interfaces/utility/override-by-key.d.ts +1 -1
- package/interfaces/utility/types.d.ts +1 -1
- package/interfaces/view-base.d.ts +1 -1
- package/package.json +1 -1
- package/plugins/blockquote/blockquote.component.d.ts +1 -1
- package/plugins/code/code.component.d.ts +1 -1
- package/plugins/color/toolbar-item.component.d.ts +1 -1
- package/plugins/common/transforms.plugin.d.ts +1 -1
- package/plugins/heading/heading.plugin.d.ts +1 -1
- package/plugins/hr/hr.component.d.ts +1 -1
- package/plugins/image/image.component.d.ts +1 -1
- package/plugins/inline-code/inline-code.component.d.ts +1 -1
- package/plugins/link/edit/link-edit.component.d.ts +1 -1
- package/plugins/link/hover/link-hover.component.d.ts +1 -1
- package/plugins/link/link.component.d.ts +2 -2
- package/plugins/list/components/bulleted-list.component.d.ts +1 -1
- package/plugins/list/components/list-item.component.d.ts +1 -1
- package/plugins/list/components/numbered-list.component.d.ts +1 -1
- package/plugins/list/types.d.ts +1 -1
- package/plugins/mention/suggestion.component.d.ts +1 -1
- package/plugins/quick-insert/components/quick-insert.component.d.ts +1 -1
- package/plugins/table/components/insert-mark/insert-mark.component.d.ts +1 -1
- package/plugins/table/components/row/row.component.d.ts +1 -1
- package/plugins/table/components/table.component.d.ts +8 -6
- package/plugins/table/components/table.component.scss +31 -18
- package/plugins/table/components/td/td.component.d.ts +1 -1
- package/plugins/table/components/toolbar/table-options.component.d.ts +1 -1
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +1 -1
- package/plugins/table/table.types.d.ts +9 -1
- package/plugins/table/toolbar-item.component.d.ts +1 -1
- package/plugins/table/utils/get-grid-columns.d.ts +9 -0
- package/plugins/todo-item/todo-item.component.d.ts +1 -1
- package/plugins/vertical-align/toolbar-item.component.d.ts +1 -1
- package/queries/find-node.d.ts +1 -1
- package/queries/get-range-before.d.ts +1 -1
- package/services/context.service.d.ts +5 -1
- package/utils/match.d.ts +3 -3
- /package/plugins/common/{auto-insert-data..d.ts → auto-insert-data.d.ts} +0 -0
|
@@ -100,9 +100,9 @@ class TheBaseElementComponent extends BaseElementComponent {
|
|
|
100
100
|
this.nativeElement.classList.add(`slate-element-${this.element.type}`, blockClass);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
TheBaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
104
|
-
TheBaseElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
103
|
+
TheBaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
TheBaseElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheBaseElementComponent, selector: "TheBaseElementComponent", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseElementComponent, decorators: [{
|
|
106
106
|
type: Component,
|
|
107
107
|
args: [{
|
|
108
108
|
selector: 'TheBaseElementComponent',
|
|
@@ -116,9 +116,9 @@ class TheDefaultElementComponent extends TheBaseElementComponent {
|
|
|
116
116
|
return (_a = this.element) === null || _a === void 0 ? void 0 : _a.indent;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
TheDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
120
|
-
TheDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
TheDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheDefaultElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
120
|
+
TheDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheDefaultElementComponent, selector: "[theDefaultElement]", host: { properties: { "attr.the-indent": "this.indent" } }, usesInheritance: true, ngImport: i0, template: '<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>', isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheDefaultElementComponent, decorators: [{
|
|
122
122
|
type: Component,
|
|
123
123
|
args: [{
|
|
124
124
|
selector: '[theDefaultElement]',
|
|
@@ -816,9 +816,9 @@ class ElementStylePipe {
|
|
|
816
816
|
return style;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
ElementStylePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
820
|
-
ElementStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
819
|
+
ElementStylePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ElementStylePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
820
|
+
ElementStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ElementStylePipe, name: "elementStyle" });
|
|
821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ElementStylePipe, decorators: [{
|
|
822
822
|
type: Pipe,
|
|
823
823
|
args: [{
|
|
824
824
|
name: 'elementStyle'
|
|
@@ -834,9 +834,9 @@ class ElementClassPipe {
|
|
|
834
834
|
return classStr;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
ElementClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
838
|
-
ElementClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
837
|
+
ElementClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ElementClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
838
|
+
ElementClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ElementClassPipe, name: "elementClass" });
|
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ElementClassPipe, decorators: [{
|
|
840
840
|
type: Pipe,
|
|
841
841
|
args: [{
|
|
842
842
|
name: 'elementClass'
|
|
@@ -871,9 +871,9 @@ class TheTemplateComponent {
|
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
|
-
TheTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
875
|
-
TheTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
874
|
+
TheTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
875
|
+
TheTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTemplateComponent, selector: "the-template,[theTemplate]", viewQueries: [{ propertyName: "paragraphTemplate", first: true, predicate: ["paragraph"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingOneTemplate", first: true, predicate: ["headingOne"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingTwoTemplate", first: true, predicate: ["headingTwo"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingThreeTemplate", first: true, predicate: ["headingThree"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingFourTemplate", first: true, predicate: ["headingFour"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingFiveTemplate", first: true, predicate: ["headingFive"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingSixTemplate", first: true, predicate: ["headingSix"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #paragraph let-context=\"context\" let-viewContext=\"viewContext\">\n <div theDefaultElement [context]=\"context\" [viewContext]=\"viewContext\" [ngStyle]=\"context.element | elementStyle\"></div>\n</ng-template>\n<ng-template #headingOne let-context=\"context\" let-viewContext=\"viewContext\">\n <h1\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h1>\n</ng-template>\n<ng-template #headingTwo let-context=\"context\" let-viewContext=\"viewContext\">\n <h2\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h2>\n</ng-template>\n<ng-template #headingThree let-context=\"context\" let-viewContext=\"viewContext\">\n <h3\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h3>\n</ng-template>\n<ng-template #headingFour let-context=\"context\" let-viewContext=\"viewContext\">\n <h4\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h4>\n</ng-template>\n<ng-template #headingFive let-context=\"context\" let-viewContext=\"viewContext\">\n <h5\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h5>\n</ng-template>\n<ng-template #headingSix let-context=\"context\" let-viewContext=\"viewContext\">\n <h6\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h6>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TheDefaultElementComponent, selector: "[theDefaultElement]" }, { kind: "pipe", type: ElementStylePipe, name: "elementStyle" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTemplateComponent, decorators: [{
|
|
877
877
|
type: Component,
|
|
878
878
|
args: [{ selector: 'the-template,[theTemplate]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #paragraph let-context=\"context\" let-viewContext=\"viewContext\">\n <div theDefaultElement [context]=\"context\" [viewContext]=\"viewContext\" [ngStyle]=\"context.element | elementStyle\"></div>\n</ng-template>\n<ng-template #headingOne let-context=\"context\" let-viewContext=\"viewContext\">\n <h1\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h1>\n</ng-template>\n<ng-template #headingTwo let-context=\"context\" let-viewContext=\"viewContext\">\n <h2\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h2>\n</ng-template>\n<ng-template #headingThree let-context=\"context\" let-viewContext=\"viewContext\">\n <h3\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h3>\n</ng-template>\n<ng-template #headingFour let-context=\"context\" let-viewContext=\"viewContext\">\n <h4\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h4>\n</ng-template>\n<ng-template #headingFive let-context=\"context\" let-viewContext=\"viewContext\">\n <h5\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h5>\n</ng-template>\n<ng-template #headingSix let-context=\"context\" let-viewContext=\"viewContext\">\n <h6\n theDefaultElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h6>\n</ng-template>\n" }]
|
|
879
879
|
}], propDecorators: { paragraphTemplate: [{
|
|
@@ -939,9 +939,9 @@ class TheTextComponent extends BaseTextComponent {
|
|
|
939
939
|
this.applyTextMark();
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
TheTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
943
|
-
TheTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
942
|
+
TheTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTextComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
943
|
+
TheTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTextComponent, selector: "span[theText]", host: { attributes: { "data-slate-node": "text" } }, usesInheritance: true, ngImport: i0, template: `<slate-leaves [context]="context" [viewContext]="viewContext"></slate-leaves>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateLeavesComponent, selector: "slate-leaves", inputs: ["context"] }] });
|
|
944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTextComponent, decorators: [{
|
|
945
945
|
type: Component,
|
|
946
946
|
args: [{
|
|
947
947
|
selector: 'span[theText]',
|
|
@@ -2530,68 +2530,68 @@ const isEmptyContentByFilter = (editor, rules) => {
|
|
|
2530
2530
|
|
|
2531
2531
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
2532
2532
|
__proto__: null,
|
|
2533
|
-
|
|
2534
|
-
anchorBlockEntry: anchorBlockEntry,
|
|
2535
|
-
anchorInlineEntry: anchorInlineEntry,
|
|
2536
|
-
findDescendant: findDescendant,
|
|
2537
|
-
findNode: findNode,
|
|
2538
|
-
findPath: findPath,
|
|
2539
|
-
getAbove: getAbove,
|
|
2540
|
-
getAboveByType: getAboveByType,
|
|
2533
|
+
getLastNode: getLastNode,
|
|
2541
2534
|
getAnchorBlockEntry: getAnchorBlockEntry,
|
|
2535
|
+
getAboveByType: getAboveByType,
|
|
2536
|
+
getNodes: getNodes,
|
|
2537
|
+
getNodesByType: getNodesByType,
|
|
2542
2538
|
getBlockAbove: getBlockAbove,
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
getDirectlyParent: getDirectlyParent,
|
|
2547
|
-
getInsertElementsPath: getInsertElementsPath,
|
|
2539
|
+
getPreviousPath: getPreviousPath,
|
|
2540
|
+
getNode: getNode,
|
|
2541
|
+
getParent: getParent,
|
|
2548
2542
|
getLastChild: getLastChild,
|
|
2549
2543
|
getLastChildPath: getLastChildPath,
|
|
2550
|
-
getLastNode: getLastNode,
|
|
2551
2544
|
getNextSiblingNodes: getNextSiblingNodes,
|
|
2552
|
-
|
|
2553
|
-
getNodes: getNodes,
|
|
2554
|
-
getNodesByType: getNodesByType,
|
|
2555
|
-
getParent: getParent,
|
|
2556
|
-
getPlainText: getPlainText,
|
|
2557
|
-
getPluginByToolbarItem: getPluginByToolbarItem,
|
|
2545
|
+
getAbove: getAbove,
|
|
2558
2546
|
getPointBefore: getPointBefore,
|
|
2547
|
+
getSelectionNodesByType: getSelectionNodesByType,
|
|
2548
|
+
getText: getText,
|
|
2559
2549
|
getPointFromLocation: getPointFromLocation,
|
|
2560
|
-
getPreviousPath: getPreviousPath,
|
|
2561
|
-
getRangeBefore: getRangeBefore,
|
|
2562
2550
|
getRangeFromBlockStart: getRangeFromBlockStart,
|
|
2551
|
+
getRangeBefore: getRangeBefore,
|
|
2552
|
+
getBlockCardCenterCursor: getBlockCardCenterCursor,
|
|
2553
|
+
getBlockCardAbove: getBlockCardAbove,
|
|
2554
|
+
getPlainText: getPlainText,
|
|
2563
2555
|
getSelectionMarks: getSelectionMarks,
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
getToolbarItemDisabled: getToolbarItemDisabled,
|
|
2567
|
-
isAcrossBlocks: isAcrossBlocks,
|
|
2556
|
+
getContainerBlocks: getContainerBlocks,
|
|
2557
|
+
getDirectlyParent: getDirectlyParent,
|
|
2568
2558
|
isAncestor: isAncestor,
|
|
2569
|
-
isAncestorEmpty: isAncestorEmpty,
|
|
2570
|
-
isBlockAboveEmpty: isBlockAboveEmpty,
|
|
2571
|
-
isBlockActive: isBlockActive,
|
|
2572
|
-
isBlockCardCursor: isBlockCardCursor,
|
|
2573
|
-
isBlockTextEmptyAfterSelection: isBlockTextEmptyAfterSelection,
|
|
2574
2559
|
isCollapsed: isCollapsed,
|
|
2575
|
-
isContainNestedType: isContainNestedType,
|
|
2576
|
-
isContainer: isContainer,
|
|
2577
|
-
isDescendant: isDescendant,
|
|
2578
|
-
isEmptyContent: isEmptyContent,
|
|
2579
|
-
isEmptyContentByFilter: isEmptyContentByFilter,
|
|
2580
2560
|
isEmptyParagraph: isEmptyParagraph,
|
|
2581
|
-
isEmptyParagraphByPath: isEmptyParagraphByPath,
|
|
2582
2561
|
isEmptyParagraphElement: isEmptyParagraphElement,
|
|
2583
|
-
isFirstChild: isFirstChild,
|
|
2584
|
-
isGlobalCollapsed: isGlobalCollapsed,
|
|
2585
|
-
isIncludeTypes: isIncludeTypes,
|
|
2586
2562
|
isLogicEmptyParagraphElement: isLogicEmptyParagraphElement,
|
|
2587
|
-
isNodeType: isNodeType,
|
|
2588
|
-
isNodeTypeIn: isNodeTypeIn,
|
|
2589
2563
|
isParagraph: isParagraph,
|
|
2564
|
+
isBlockActive: isBlockActive,
|
|
2565
|
+
isIncludeTypes: isIncludeTypes,
|
|
2566
|
+
isAncestorEmpty: isAncestorEmpty,
|
|
2567
|
+
isBlockAboveEmpty: isBlockAboveEmpty,
|
|
2568
|
+
isNodeTypeIn: isNodeTypeIn,
|
|
2569
|
+
isFirstChild: isFirstChild,
|
|
2590
2570
|
isPointAtRoot: isPointAtRoot,
|
|
2591
|
-
isRangeAcrossBlocks: isRangeAcrossBlocks,
|
|
2592
2571
|
isRangeAtRoot: isRangeAtRoot,
|
|
2572
|
+
isBlockTextEmptyAfterSelection: isBlockTextEmptyAfterSelection,
|
|
2593
2573
|
isStart: isStart,
|
|
2594
|
-
|
|
2574
|
+
isRangeAcrossBlocks: isRangeAcrossBlocks,
|
|
2575
|
+
isDescendant: isDescendant,
|
|
2576
|
+
isNodeType: isNodeType,
|
|
2577
|
+
isAcrossBlocks: isAcrossBlocks,
|
|
2578
|
+
isBlockCardCursor: isBlockCardCursor,
|
|
2579
|
+
isEmptyParagraphByPath: isEmptyParagraphByPath,
|
|
2580
|
+
isEmptyContent: isEmptyContent,
|
|
2581
|
+
isEmptyContentByFilter: isEmptyContentByFilter,
|
|
2582
|
+
isContainer: isContainer,
|
|
2583
|
+
getInsertElementsPath: getInsertElementsPath,
|
|
2584
|
+
isContainNestedType: isContainNestedType,
|
|
2585
|
+
anchorBlock: anchorBlock,
|
|
2586
|
+
anchorBlockEntry: anchorBlockEntry,
|
|
2587
|
+
anchorInlineEntry: anchorInlineEntry,
|
|
2588
|
+
findPath: findPath,
|
|
2589
|
+
findNode: findNode,
|
|
2590
|
+
findDescendant: findDescendant,
|
|
2591
|
+
someNode: someNode,
|
|
2592
|
+
getToolbarItemDisabled: getToolbarItemDisabled,
|
|
2593
|
+
getPluginByToolbarItem: getPluginByToolbarItem,
|
|
2594
|
+
isGlobalCollapsed: isGlobalCollapsed
|
|
2595
2595
|
});
|
|
2596
2596
|
|
|
2597
2597
|
class TheBaseToolbarItem {
|
|
@@ -2625,9 +2625,9 @@ class TheBaseToolbarItem {
|
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
|
-
TheBaseToolbarItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2629
|
-
TheBaseToolbarItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2628
|
+
TheBaseToolbarItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseToolbarItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2629
|
+
TheBaseToolbarItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheBaseToolbarItem, inputs: { toolbarItem: "toolbarItem", editor: "editor", itemMousedownHandle: "itemMousedownHandle" }, host: { properties: { "class.disabled": "this.disabledState", "class.active": "this.activeState" } }, ngImport: i0 });
|
|
2630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseToolbarItem, decorators: [{
|
|
2631
2631
|
type: Directive
|
|
2632
2632
|
}], propDecorators: { toolbarItem: [{
|
|
2633
2633
|
type: Input
|
|
@@ -2663,9 +2663,9 @@ class TheBaseToolbarDropdown extends TheBaseToolbarItem {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
}
|
|
2666
|
-
TheBaseToolbarDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2667
|
-
TheBaseToolbarDropdown.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2666
|
+
TheBaseToolbarDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseToolbarDropdown, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2667
|
+
TheBaseToolbarDropdown.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheBaseToolbarDropdown, inputs: { menus: "menus", mode: "mode", dropdownItemKey: "dropdownItemKey" }, usesInheritance: true, ngImport: i0 });
|
|
2668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseToolbarDropdown, decorators: [{
|
|
2669
2669
|
type: Directive
|
|
2670
2670
|
}], propDecorators: { menus: [{
|
|
2671
2671
|
type: Input
|
|
@@ -2676,6 +2676,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
2676
2676
|
}] } });
|
|
2677
2677
|
|
|
2678
2678
|
class TheToolbarDropdownComponent extends TheBaseToolbarDropdown {
|
|
2679
|
+
constructor(elementRef, thyPopover, viewContainerRef, overlay) {
|
|
2680
|
+
super();
|
|
2681
|
+
this.elementRef = elementRef;
|
|
2682
|
+
this.thyPopover = thyPopover;
|
|
2683
|
+
this.viewContainerRef = viewContainerRef;
|
|
2684
|
+
this.overlay = overlay;
|
|
2685
|
+
this.className = 'the-toolbar-dropdown-container';
|
|
2686
|
+
this.activeKeys = [];
|
|
2687
|
+
this.dropdownMode = DropdownMode;
|
|
2688
|
+
}
|
|
2679
2689
|
get isOpen() {
|
|
2680
2690
|
return this.dropdownPopoverRef && this.dropdownPopoverRef.getOverlayRef() && this.dropdownPopoverRef.getOverlayRef().hasAttached();
|
|
2681
2691
|
}
|
|
@@ -2689,16 +2699,6 @@ class TheToolbarDropdownComponent extends TheBaseToolbarDropdown {
|
|
|
2689
2699
|
get activeDropdown() {
|
|
2690
2700
|
return this.toolbarItem.dropdownFixedIcon && !!this.activeKeys.length;
|
|
2691
2701
|
}
|
|
2692
|
-
constructor(elementRef, thyPopover, viewContainerRef, overlay) {
|
|
2693
|
-
super();
|
|
2694
|
-
this.elementRef = elementRef;
|
|
2695
|
-
this.thyPopover = thyPopover;
|
|
2696
|
-
this.viewContainerRef = viewContainerRef;
|
|
2697
|
-
this.overlay = overlay;
|
|
2698
|
-
this.className = 'the-toolbar-dropdown-container';
|
|
2699
|
-
this.activeKeys = [];
|
|
2700
|
-
this.dropdownMode = DropdownMode;
|
|
2701
|
-
}
|
|
2702
2702
|
ngOnInit() {
|
|
2703
2703
|
var _a, _b, _c, _d;
|
|
2704
2704
|
if (!this.activeMenuItem) {
|
|
@@ -2790,9 +2790,9 @@ class TheToolbarDropdownComponent extends TheBaseToolbarDropdown {
|
|
|
2790
2790
|
.withPositions([bottomPosition, topPosition]);
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
2793
|
-
TheToolbarDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2794
|
-
TheToolbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2793
|
+
TheToolbarDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarDropdownComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.ThyPopover }, { token: i0.ViewContainerRef }, { token: i2$1.Overlay }], target: i0.ɵɵFactoryTarget.Component });
|
|
2794
|
+
TheToolbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown", host: { properties: { "class": "this.className" } }, 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, template: "<a\n *ngIf=\"mode === dropdownMode.icon\"\n href=\"javascript:;\"\n class=\"icon-mode\"\n thyAction\n [thyActionIcon]=\"activeIcon\"\n [thyActionActive]=\"activeDropdown\"\n (mousedown)=\"preventDefault($event)\"\n (click)=\"toggleDropdown($event)\"\n>\n <thy-icon *ngIf=\"!toolbarItem.isHideDropdownActionIcon\" class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n<a\n *ngIf=\"mode !== dropdownMode.icon\"\n href=\"javascript:;\"\n class=\"text-mode\"\n thyAction\n (mousedown)=\"preventDefault($event)\"\n (click)=\"toggleDropdown($event)\"\n>\n <span class=\"show-text\">{{ activeMenuItem?.name }}</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #dropdownTemplate>\n <div class=\"thy-dropdown-menu\">\n <ng-container *ngFor=\"let menu of menus\">\n <a\n *ngIf=\"menu.key !== 'split'\"\n class=\"d-flex justify-content-between text-secondary\"\n href=\"javascript:;\"\n thyDropdownMenuItem\n [ngStyle]=\"menu?.styles\"\n [thyDropdownMenuItemActive]=\"activeKeys.includes(menu.key)\"\n (mousedown)=\"preventDefault($event)\"\n (click)=\"itemMousedown($event, menu)\"\n >\n <div class=\"d-flex align-items-center\">\n <thy-icon\n class=\"text-secondary\"\n *ngIf=\"menu?.icon && mode === dropdownMode.icon\"\n thyDropdownMenuItemIcon\n [thyIconName]=\"menu.icon\"\n ></thy-icon>\n <span class=\"text-body\" *ngIf=\"menu?.name\" thyDropdownMenuItemName>{{ menu.name }}</span>\n </div>\n <div class=\"menu-item-right font-size-sm text-muted\" *ngIf=\"menu?.shortcutKey\">{{ menu.shortcutKey }}</div>\n </a>\n <thy-dropdown-menu-divider *ngIf=\"menu.key === 'split'\"></thy-dropdown-menu-divider>\n </ng-container>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i6.ThyDropdownMenuDividerComponent, selector: "thy-dropdown-menu-divider" }, { kind: "directive", type: i6.ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: i6.ThyDropdownMenuItemNameDirective, selector: "[thyDropdownMenuItemName]" }, { kind: "directive", type: i6.ThyDropdownMenuItemIconDirective, selector: "[thyDropdownMenuItemIcon]" }, { kind: "directive", type: i6.ThyDropdownMenuItemActiveDirective, selector: "[thyDropdownMenuItemActive]", inputs: ["thyDropdownMenuItemActive"] }] });
|
|
2795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarDropdownComponent, decorators: [{
|
|
2796
2796
|
type: Component,
|
|
2797
2797
|
args: [{ selector: 'the-toolbar-dropdown', template: "<a\n *ngIf=\"mode === dropdownMode.icon\"\n href=\"javascript:;\"\n class=\"icon-mode\"\n thyAction\n [thyActionIcon]=\"activeIcon\"\n [thyActionActive]=\"activeDropdown\"\n (mousedown)=\"preventDefault($event)\"\n (click)=\"toggleDropdown($event)\"\n>\n <thy-icon *ngIf=\"!toolbarItem.isHideDropdownActionIcon\" class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n<a\n *ngIf=\"mode !== dropdownMode.icon\"\n href=\"javascript:;\"\n class=\"text-mode\"\n thyAction\n (mousedown)=\"preventDefault($event)\"\n (click)=\"toggleDropdown($event)\"\n>\n <span class=\"show-text\">{{ activeMenuItem?.name }}</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #dropdownTemplate>\n <div class=\"thy-dropdown-menu\">\n <ng-container *ngFor=\"let menu of menus\">\n <a\n *ngIf=\"menu.key !== 'split'\"\n class=\"d-flex justify-content-between text-secondary\"\n href=\"javascript:;\"\n thyDropdownMenuItem\n [ngStyle]=\"menu?.styles\"\n [thyDropdownMenuItemActive]=\"activeKeys.includes(menu.key)\"\n (mousedown)=\"preventDefault($event)\"\n (click)=\"itemMousedown($event, menu)\"\n >\n <div class=\"d-flex align-items-center\">\n <thy-icon\n class=\"text-secondary\"\n *ngIf=\"menu?.icon && mode === dropdownMode.icon\"\n thyDropdownMenuItemIcon\n [thyIconName]=\"menu.icon\"\n ></thy-icon>\n <span class=\"text-body\" *ngIf=\"menu?.name\" thyDropdownMenuItemName>{{ menu.name }}</span>\n </div>\n <div class=\"menu-item-right font-size-sm text-muted\" *ngIf=\"menu?.shortcutKey\">{{ menu.shortcutKey }}</div>\n </a>\n <thy-dropdown-menu-divider *ngIf=\"menu.key === 'split'\"></thy-dropdown-menu-divider>\n </ng-container>\n </div>\n</ng-template>\n" }]
|
|
2798
2798
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.ThyPopover }, { type: i0.ViewContainerRef }, { type: i2$1.Overlay }]; }, propDecorators: { className: [{
|
|
@@ -2810,13 +2810,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
2810
2810
|
}] } });
|
|
2811
2811
|
|
|
2812
2812
|
class TheToolbarItemComponent extends TheBaseToolbarItem {
|
|
2813
|
-
toggleDropdown(event) {
|
|
2814
|
-
super.execute(event);
|
|
2815
|
-
}
|
|
2816
2813
|
constructor() {
|
|
2817
2814
|
super();
|
|
2818
2815
|
this.className = 'the-toolbar-item';
|
|
2819
2816
|
}
|
|
2817
|
+
toggleDropdown(event) {
|
|
2818
|
+
super.execute(event);
|
|
2819
|
+
}
|
|
2820
2820
|
ngOnInit() { }
|
|
2821
2821
|
preventDefault(event) {
|
|
2822
2822
|
event.preventDefault();
|
|
@@ -2834,8 +2834,8 @@ class TheToolbarItemComponent extends TheBaseToolbarItem {
|
|
|
2834
2834
|
(_d = this.toolbarItem) === null || _d === void 0 ? void 0 : _d.execute(this.editor);
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
|
-
TheToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2838
|
-
TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2837
|
+
TheToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2838
|
+
TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheToolbarItemComponent, selector: "the-toolbar-item", host: { listeners: { "mousedown": "toggleDropdown($event)" }, properties: { "class": "this.className" } }, usesInheritance: true, ngImport: i0, template: `
|
|
2839
2839
|
<a
|
|
2840
2840
|
href="javascript:;"
|
|
2841
2841
|
thyAction
|
|
@@ -2849,7 +2849,7 @@ TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
2849
2849
|
></a>
|
|
2850
2850
|
<ng-template #tooltip let-data> {{ data?.name }} {{ data?.shortcutKey }} </ng-template>
|
|
2851
2851
|
`, isInline: true, dependencies: [{ kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }] });
|
|
2852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarItemComponent, decorators: [{
|
|
2853
2853
|
type: Component,
|
|
2854
2854
|
args: [{
|
|
2855
2855
|
selector: 'the-toolbar-item',
|
|
@@ -2877,9 +2877,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
2877
2877
|
}] } });
|
|
2878
2878
|
|
|
2879
2879
|
class TheToolbarComponent {
|
|
2880
|
-
get justifyContent() {
|
|
2881
|
-
return this.align;
|
|
2882
|
-
}
|
|
2883
2880
|
constructor(cdr, elementRef, ngZone, toolbarGroupComponent) {
|
|
2884
2881
|
this.cdr = cdr;
|
|
2885
2882
|
this.elementRef = elementRef;
|
|
@@ -2892,6 +2889,9 @@ class TheToolbarComponent {
|
|
|
2892
2889
|
this.moreGroupMenu = ToolbarMoreGroup;
|
|
2893
2890
|
this.elementWidth = 0;
|
|
2894
2891
|
}
|
|
2892
|
+
get justifyContent() {
|
|
2893
|
+
return this.align;
|
|
2894
|
+
}
|
|
2895
2895
|
ngOnInit() {
|
|
2896
2896
|
this.setToolbarClass();
|
|
2897
2897
|
this.renderToolbarView();
|
|
@@ -3103,9 +3103,9 @@ class TheToolbarComponent {
|
|
|
3103
3103
|
return TheToolbarItemComponent;
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
TheToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3107
|
-
TheToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3106
|
+
TheToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: TheToolbarGroupToken }], target: i0.ɵɵFactoryTarget.Component });
|
|
3107
|
+
TheToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheToolbarComponent, selector: "the-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems", align: "align", containerClass: "containerClass", isMore: "isMore", afterTemplate: "afterTemplate" }, host: { properties: { "style.justifyContent": "this.justifyContent" }, classAttribute: "the-toolbar-container d-flex align-items-center" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container #toolbarContainer></ng-container>\n<ng-content></ng-content>\n<ng-template *ngIf=\"afterTemplate\" [ngTemplateOutlet]=\"afterTemplate\"></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
3108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarComponent, decorators: [{
|
|
3109
3109
|
type: Component,
|
|
3110
3110
|
args: [{ selector: 'the-toolbar', host: {
|
|
3111
3111
|
class: 'the-toolbar-container d-flex align-items-center'
|
|
@@ -3159,11 +3159,11 @@ class TheContextService {
|
|
|
3159
3159
|
this.bindContainerResize();
|
|
3160
3160
|
}
|
|
3161
3161
|
rebindContainerScroll() {
|
|
3162
|
-
var _a, _b;
|
|
3162
|
+
var _a, _b, _c, _d;
|
|
3163
3163
|
(_a = this.scrollSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
3164
3164
|
if ((_b = this.options.theOptions) === null || _b === void 0 ? void 0 : _b.scrollContainer) {
|
|
3165
|
-
const containerElement = this.options.nativeElement.closest(this.options.theOptions.scrollContainer) ||
|
|
3166
|
-
this.options.nativeElement.querySelector(this.options.theOptions.scrollContainer);
|
|
3165
|
+
const containerElement = this.options.nativeElement.closest((_c = this.options.theOptions) === null || _c === void 0 ? void 0 : _c.scrollContainer) ||
|
|
3166
|
+
this.options.nativeElement.querySelector((_d = this.options.theOptions) === null || _d === void 0 ? void 0 : _d.scrollContainer);
|
|
3167
3167
|
if (containerElement) {
|
|
3168
3168
|
this.ngZone.runOutsideAngular(() => {
|
|
3169
3169
|
this.scrollSubscription = fromEvent(containerElement, 'scroll').subscribe(event => {
|
|
@@ -3174,7 +3174,19 @@ class TheContextService {
|
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
3176
3176
|
bindContainerResize() {
|
|
3177
|
-
|
|
3177
|
+
let previousContainerRect = this.options.nativeElement.getBoundingClientRect();
|
|
3178
|
+
this.resizeObserver = new ResizeObserver(entires => {
|
|
3179
|
+
const currentRect = entires[0].contentRect;
|
|
3180
|
+
const result = { entry: entires[0], widthChanged: false, heightChanged: false };
|
|
3181
|
+
if (currentRect.width !== previousContainerRect.width) {
|
|
3182
|
+
result.widthChanged = true;
|
|
3183
|
+
}
|
|
3184
|
+
if (currentRect.height !== previousContainerRect.height) {
|
|
3185
|
+
result.heightChanged = true;
|
|
3186
|
+
}
|
|
3187
|
+
previousContainerRect = currentRect;
|
|
3188
|
+
this.containerResized$.next(result);
|
|
3189
|
+
});
|
|
3178
3190
|
return this.resizeObserver.observe(this.options.nativeElement);
|
|
3179
3191
|
}
|
|
3180
3192
|
getOptions() {
|
|
@@ -3215,23 +3227,23 @@ class TheContextService {
|
|
|
3215
3227
|
this.destroy$.complete();
|
|
3216
3228
|
}
|
|
3217
3229
|
}
|
|
3218
|
-
TheContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3219
|
-
TheContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3230
|
+
TheContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheContextService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3231
|
+
TheContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheContextService });
|
|
3232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheContextService, decorators: [{
|
|
3221
3233
|
type: Injectable
|
|
3222
3234
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
3223
3235
|
|
|
3224
3236
|
class TheColorSelectComponent {
|
|
3225
|
-
handleDocumentMouseDown(event) {
|
|
3226
|
-
if (!document.querySelector('.color-container').contains(event.target)) {
|
|
3227
|
-
this.popoverRef.close();
|
|
3228
|
-
}
|
|
3229
|
-
}
|
|
3230
3237
|
constructor(popoverRef) {
|
|
3231
3238
|
this.popoverRef = popoverRef;
|
|
3232
3239
|
this.showCustom = true;
|
|
3233
3240
|
this.selectColors = [];
|
|
3234
3241
|
}
|
|
3242
|
+
handleDocumentMouseDown(event) {
|
|
3243
|
+
if (!document.querySelector('.color-container').contains(event.target)) {
|
|
3244
|
+
this.popoverRef.close();
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3235
3247
|
ngOnInit() {
|
|
3236
3248
|
if (this.selectedColor) {
|
|
3237
3249
|
this.customColor = this.selectedColor.slice(1);
|
|
@@ -3297,9 +3309,9 @@ class TheColorSelectComponent {
|
|
|
3297
3309
|
this.popoverRef.close();
|
|
3298
3310
|
}
|
|
3299
3311
|
}
|
|
3300
|
-
TheColorSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3301
|
-
TheColorSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3312
|
+
TheColorSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorSelectComponent, deps: [{ token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3313
|
+
TheColorSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", 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, 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", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i5.ThyInputDirective, selector: "[thyInput]", inputs: ["thySize", "thyAutocomplete"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorSelectComponent, decorators: [{
|
|
3303
3315
|
type: Component,
|
|
3304
3316
|
args: [{ selector: 'the-color-select', changeDetection: ChangeDetectionStrategy.OnPush, 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" }]
|
|
3305
3317
|
}], ctorParameters: function () { return [{ type: i1$1.ThyPopoverRef }]; }, propDecorators: { selectedColor: [{
|
|
@@ -3324,9 +3336,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
3324
3336
|
}] } });
|
|
3325
3337
|
|
|
3326
3338
|
class TheColorSelectService {
|
|
3327
|
-
get isOpenColorSelect() {
|
|
3328
|
-
return this.colorSelectRef && this.colorSelectRef.componentInstance;
|
|
3329
|
-
}
|
|
3330
3339
|
constructor(thyPopover) {
|
|
3331
3340
|
this.thyPopover = thyPopover;
|
|
3332
3341
|
this.backdropClosable = false;
|
|
@@ -3335,6 +3344,9 @@ class TheColorSelectService {
|
|
|
3335
3344
|
this.placement = 'bottomLeft';
|
|
3336
3345
|
this.offset = 10;
|
|
3337
3346
|
}
|
|
3347
|
+
get isOpenColorSelect() {
|
|
3348
|
+
return this.colorSelectRef && this.colorSelectRef.componentInstance;
|
|
3349
|
+
}
|
|
3338
3350
|
toggleColorSelect(origin, selectedColor, colors, option, selectAction, placement, offset) {
|
|
3339
3351
|
if (this.isOpenColorSelect) {
|
|
3340
3352
|
this.colorSelectRef.close();
|
|
@@ -3364,9 +3376,9 @@ class TheColorSelectService {
|
|
|
3364
3376
|
}
|
|
3365
3377
|
}
|
|
3366
3378
|
}
|
|
3367
|
-
TheColorSelectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3368
|
-
TheColorSelectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3379
|
+
TheColorSelectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorSelectService, deps: [{ token: i1$1.ThyPopover }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3380
|
+
TheColorSelectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorSelectService });
|
|
3381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorSelectService, decorators: [{
|
|
3370
3382
|
type: Injectable
|
|
3371
3383
|
}], ctorParameters: function () { return [{ type: i1$1.ThyPopover }]; } });
|
|
3372
3384
|
|
|
@@ -3386,7 +3398,13 @@ const TABLE_INSERT_MASK$1 = 19;
|
|
|
3386
3398
|
const TABLE_BORDER$1 = 1;
|
|
3387
3399
|
const TABLE_PADDING$1 = 8;
|
|
3388
3400
|
const TABLE_CONTROL = 11;
|
|
3401
|
+
const TABLE_NUMBER_COLUMN = 45;
|
|
3389
3402
|
const TableWithStickyRowClass = 'the-table-with-sticky-row';
|
|
3403
|
+
var FullscreenState;
|
|
3404
|
+
(function (FullscreenState) {
|
|
3405
|
+
FullscreenState["on"] = "on";
|
|
3406
|
+
FullscreenState["off"] = "off";
|
|
3407
|
+
})(FullscreenState || (FullscreenState = {}));
|
|
3390
3408
|
class TableOptions {
|
|
3391
3409
|
constructor(options) {
|
|
3392
3410
|
// The type of table blocks
|
|
@@ -4060,22 +4078,22 @@ function handleContinualInsertBreak(editor, lowestBlock, type) {
|
|
|
4060
4078
|
|
|
4061
4079
|
var index = /*#__PURE__*/Object.freeze({
|
|
4062
4080
|
__proto__: null,
|
|
4063
|
-
|
|
4081
|
+
setMarks: setMarks,
|
|
4064
4082
|
clearMarks: clearMarks,
|
|
4065
|
-
closeConversionHint: closeConversionHint,
|
|
4066
|
-
deleteElement: deleteElement,
|
|
4067
|
-
handleContinualDeleteBackward: handleContinualDeleteBackward,
|
|
4068
|
-
handleContinualInsertBreak: handleContinualInsertBreak,
|
|
4069
4083
|
insertElements: insertElements,
|
|
4070
4084
|
insertParagraph: insertParagraph,
|
|
4071
|
-
mergeDeepToNodes: mergeDeepToNodes,
|
|
4072
|
-
moveChildren: moveChildren,
|
|
4073
|
-
onKeyDownResetBlockType: onKeyDownResetBlockType,
|
|
4074
|
-
setEndSelection: setEndSelection,
|
|
4075
|
-
setMarks: setMarks,
|
|
4076
4085
|
setNode: setNode,
|
|
4086
|
+
unwrapNodesByType: unwrapNodesByType,
|
|
4087
|
+
onKeyDownResetBlockType: onKeyDownResetBlockType,
|
|
4088
|
+
moveChildren: moveChildren,
|
|
4089
|
+
applyDeepToNodes: applyDeepToNodes,
|
|
4090
|
+
mergeDeepToNodes: mergeDeepToNodes,
|
|
4077
4091
|
unWrap: unWrap,
|
|
4078
|
-
|
|
4092
|
+
deleteElement: deleteElement,
|
|
4093
|
+
setEndSelection: setEndSelection,
|
|
4094
|
+
closeConversionHint: closeConversionHint,
|
|
4095
|
+
handleContinualDeleteBackward: handleContinualDeleteBackward,
|
|
4096
|
+
handleContinualInsertBreak: handleContinualInsertBreak
|
|
4079
4097
|
});
|
|
4080
4098
|
|
|
4081
4099
|
/**
|
|
@@ -5207,9 +5225,9 @@ class TheBaseSuggestion {
|
|
|
5207
5225
|
event.preventDefault();
|
|
5208
5226
|
}
|
|
5209
5227
|
}
|
|
5210
|
-
TheBaseSuggestion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5211
|
-
TheBaseSuggestion.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5228
|
+
TheBaseSuggestion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseSuggestion, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5229
|
+
TheBaseSuggestion.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheBaseSuggestion, inputs: { editor: "editor", type: "type", keywords: "keywords" }, host: { listeners: { "mousedown": "handleMousedown($event)" } }, ngImport: i0 });
|
|
5230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseSuggestion, decorators: [{
|
|
5213
5231
|
type: Directive
|
|
5214
5232
|
}], propDecorators: { editor: [{
|
|
5215
5233
|
type: Input
|
|
@@ -5251,9 +5269,9 @@ class TheTableSelectComponent {
|
|
|
5251
5269
|
}
|
|
5252
5270
|
}
|
|
5253
5271
|
}
|
|
5254
|
-
TheTableSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5255
|
-
TheTableSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5272
|
+
TheTableSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableSelectComponent, deps: [{ token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5273
|
+
TheTableSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTableSelectComponent, selector: "table-select", inputs: { optionsParam: "optionsParam", editor: "editor", beforeInsert: "beforeInsert" }, ngImport: i0, template: "<div class=\"table-selector-container\">\n <div *ngFor=\"let item of tableData; let rowIndex = index\" class=\"selector-row\" (mousedown)=\"executeTable($event)\">\n <span\n *ngFor=\"let item of tableData; let colIndex = index\"\n [ngClass]=\"{ 'active-cell': rowIndex <= maxRowIndex && colIndex <= maxColIndex, 'selector-cell': true }\"\n (mouseenter)=\"onSelectCells(rowIndex, colIndex)\"\n >\n </span>\n </div>\n <span class=\"selector-text\">{{ maxRowIndex + 1 }} x {{ maxColIndex + 1 }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
5274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableSelectComponent, decorators: [{
|
|
5257
5275
|
type: Component,
|
|
5258
5276
|
args: [{ selector: 'table-select', template: "<div class=\"table-selector-container\">\n <div *ngFor=\"let item of tableData; let rowIndex = index\" class=\"selector-row\" (mousedown)=\"executeTable($event)\">\n <span\n *ngFor=\"let item of tableData; let colIndex = index\"\n [ngClass]=\"{ 'active-cell': rowIndex <= maxRowIndex && colIndex <= maxColIndex, 'selector-cell': true }\"\n (mouseenter)=\"onSelectCells(rowIndex, colIndex)\"\n >\n </span>\n </div>\n <span class=\"selector-text\">{{ maxRowIndex + 1 }} x {{ maxColIndex + 1 }}</span>\n</div>\n" }]
|
|
5259
5277
|
}], ctorParameters: function () { return [{ type: i1$1.ThyPopoverRef }]; }, propDecorators: { optionsParam: [{
|
|
@@ -5269,12 +5287,6 @@ const THE_LISTBOX_PARENT_GROUP_TOKEN = new InjectionToken('THE_LISTBOX_PARENT_GR
|
|
|
5269
5287
|
const THE_LISTBOX_TOKEN = new InjectionToken('THE_LISTBOX_TOKEN');
|
|
5270
5288
|
|
|
5271
5289
|
class TheListboxOptionDirective {
|
|
5272
|
-
get hasChild() {
|
|
5273
|
-
return this._options.length > 0;
|
|
5274
|
-
}
|
|
5275
|
-
get firstChild() {
|
|
5276
|
-
return this._options.first;
|
|
5277
|
-
}
|
|
5278
5290
|
constructor(parentOption, parentGroup, elementRef) {
|
|
5279
5291
|
this.parentOption = parentOption;
|
|
5280
5292
|
this.parentGroup = parentGroup;
|
|
@@ -5282,6 +5294,12 @@ class TheListboxOptionDirective {
|
|
|
5282
5294
|
this._active = false;
|
|
5283
5295
|
this.className = 'the-listbox-option';
|
|
5284
5296
|
}
|
|
5297
|
+
get hasChild() {
|
|
5298
|
+
return this._options.length > 0;
|
|
5299
|
+
}
|
|
5300
|
+
get firstChild() {
|
|
5301
|
+
return this._options.first;
|
|
5302
|
+
}
|
|
5285
5303
|
ngOnInit() { }
|
|
5286
5304
|
ngAfterContentInit() { }
|
|
5287
5305
|
getGroups() {
|
|
@@ -5306,14 +5324,14 @@ class TheListboxOptionDirective {
|
|
|
5306
5324
|
return this._active;
|
|
5307
5325
|
}
|
|
5308
5326
|
}
|
|
5309
|
-
TheListboxOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5310
|
-
TheListboxOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5327
|
+
TheListboxOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListboxOptionDirective, deps: [{ token: THE_LISTBOX_PARENT_OPTION_TOKEN, optional: true, skipSelf: true }, { token: THE_LISTBOX_PARENT_GROUP_TOKEN }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5328
|
+
TheListboxOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheListboxOptionDirective, selector: "[theListboxOption]", inputs: { theOptionValue: "theOptionValue", theOptionDisabled: "theOptionDisabled" }, host: { properties: { "class": "this.className" } }, providers: [
|
|
5311
5329
|
{
|
|
5312
5330
|
provide: THE_LISTBOX_PARENT_OPTION_TOKEN,
|
|
5313
5331
|
useExisting: TheListboxOptionDirective
|
|
5314
5332
|
}
|
|
5315
5333
|
], queries: [{ propertyName: "_options", predicate: i0.forwardRef(function () { return TheListboxOptionDirective; }), descendants: true }], exportAs: ["theListboxOption"], ngImport: i0 });
|
|
5316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListboxOptionDirective, decorators: [{
|
|
5317
5335
|
type: Directive,
|
|
5318
5336
|
args: [{
|
|
5319
5337
|
selector: '[theListboxOption]',
|
|
@@ -5391,14 +5409,14 @@ class TheListboxGroupDirective {
|
|
|
5391
5409
|
return this.options[this.options.length - 1];
|
|
5392
5410
|
}
|
|
5393
5411
|
}
|
|
5394
|
-
TheListboxGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5395
|
-
TheListboxGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5412
|
+
TheListboxGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListboxGroupDirective, deps: [{ token: THE_LISTBOX_PARENT_OPTION_TOKEN, optional: true, skipSelf: true }, { token: THE_LISTBOX_TOKEN }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5413
|
+
TheListboxGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheListboxGroupDirective, selector: "[theListboxGroup]", inputs: { horizontalColumn: "horizontalColumn" }, host: { properties: { "class": "this.className" } }, providers: [
|
|
5396
5414
|
{
|
|
5397
5415
|
provide: THE_LISTBOX_PARENT_GROUP_TOKEN,
|
|
5398
5416
|
useExisting: TheListboxGroupDirective
|
|
5399
5417
|
}
|
|
5400
5418
|
], queries: [{ propertyName: "_options", predicate: TheListboxOptionDirective, descendants: true }], exportAs: ["theListboxGroup"], ngImport: i0 });
|
|
5401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListboxGroupDirective, decorators: [{
|
|
5402
5420
|
type: Directive,
|
|
5403
5421
|
args: [{
|
|
5404
5422
|
selector: '[theListboxGroup]',
|
|
@@ -5604,14 +5622,14 @@ class TheListboxDirective {
|
|
|
5604
5622
|
this._keyboardSubscription.unsubscribe();
|
|
5605
5623
|
}
|
|
5606
5624
|
}
|
|
5607
|
-
TheListboxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5608
|
-
TheListboxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5625
|
+
TheListboxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListboxDirective, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5626
|
+
TheListboxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheListboxDirective, selector: "[theListBox]", inputs: { keyboardContainer: "keyboardContainer", autoActiveFirstItem: "autoActiveFirstItem" }, outputs: { theListboxChange: "theListboxChange" }, host: { properties: { "class": "this.className" } }, providers: [
|
|
5609
5627
|
{
|
|
5610
5628
|
provide: THE_LISTBOX_TOKEN,
|
|
5611
5629
|
useExisting: TheListboxDirective
|
|
5612
5630
|
}
|
|
5613
5631
|
], queries: [{ propertyName: "_groups", predicate: TheListboxGroupDirective, descendants: true }, { propertyName: "_options", predicate: TheListboxOptionDirective, descendants: true }], exportAs: ["theListBox"], ngImport: i0 });
|
|
5614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListboxDirective, decorators: [{
|
|
5615
5633
|
type: Directive,
|
|
5616
5634
|
args: [{
|
|
5617
5635
|
selector: '[theListBox]',
|
|
@@ -5645,9 +5663,9 @@ class ThePreventDefaultDirective {
|
|
|
5645
5663
|
event.preventDefault();
|
|
5646
5664
|
}
|
|
5647
5665
|
}
|
|
5648
|
-
ThePreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5649
|
-
ThePreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5666
|
+
ThePreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ThePreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5667
|
+
ThePreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", host: { listeners: { "mousedown": "mousedown($event)" } }, exportAs: ["thePreventDefault"], ngImport: i0 });
|
|
5668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ThePreventDefaultDirective, decorators: [{
|
|
5651
5669
|
type: Directive,
|
|
5652
5670
|
args: [{
|
|
5653
5671
|
selector: '[thePreventDefault]',
|
|
@@ -5809,9 +5827,9 @@ class ThePluginMenuComponent extends mixinUnsubscribe(MixinBase) {
|
|
|
5809
5827
|
super.ngOnDestroy();
|
|
5810
5828
|
}
|
|
5811
5829
|
}
|
|
5812
|
-
ThePluginMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5813
|
-
ThePluginMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.2", type: ThePluginMenuComponent, selector: "the-plugin-menu", inputs: { editor: "editor", theDisplaySearch: "theDisplaySearch", thePluginMenu: "thePluginMenu" }, host: { properties: { "class": "this.containerClassName" } }, viewQueries: [{ propertyName: "dropdownTriggers", predicate: ["dropdownTriggers"], descendants: true, read: ThyDropdownDirective }], usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"theDisplaySearch\" class=\"menu-search px-5 pt-5 pb-2\">\n <thy-input-search [(ngModel)]=\"keyWords\" placeholder=\"\u641C\u7D22\" thyIconPosition=\"after\" (ngModelChange)=\"updateKeywords(keyWords)\">\n </thy-input-search>\n</div>\n\n<div\n *ngIf=\"groupMenu.length > 0; else thyEmpty\"\n theListBox\n [keyboardContainer]=\"keyboardContainer\"\n [autoActiveFirstItem]=\"autoActiveFirstItem\"\n (theListboxChange)=\"theListboxChange($event)\"\n class=\"thy-dropdown-menu the-plugin-menu-scroll-container pb-2 pt-0\"\n>\n <div *ngIf=\"iconMenu?.length > 0\" theListboxGroup [horizontalColumn]=\"6\" class=\"icon-menu d-flex pl-5 py-1\">\n <ng-container *ngFor=\"let item of iconMenu; trackBy: trackByFn\">\n <a\n *ngIf=\"item.type === ThePluginMenuItemType.icon\"\n href=\"javascript:;\"\n class=\"mt-2\"\n thyAction\n theListboxOption\n [theOptionValue]=\"item\"\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item?.name\"\n [thyDisabled]=\"item.disabled\"\n [theOptionDisabled]=\"item.disabled\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n ></a>\n </ng-container>\n </div>\n\n <thy-divider *ngIf=\"this.iconMenu?.length\" class=\"my-2\"></thy-divider>\n <div theListboxGroup>\n <ng-container *ngFor=\"let item of groupMenu; trackBy: trackByFn\">\n <ng-container *ngIf=\"item.isMenuItem && !(item.children?.length > 0) && item.key !== 'table'\">\n <div\n thyDropdownMenuItem\n theListboxOption\n [theOptionValue]=\"item\"\n class=\"py-0\"\n thePreventDefault\n [thyDisabled]=\"item.disabled\"\n [theOptionDisabled]=\"item.disabled\"\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"item.isMenuItem && item.children?.length > 0\" #hasExpanded>\n <div\n #dropdownTriggers\n [thyDropdown]=\"expand\"\n thyTrigger=\"hover\"\n thyDropdownMenuItem\n [thyDisabled]=\"item.disabled\"\n theListboxOption\n [theOptionValue]=\"item\"\n [theOptionDisabled]=\"item.disabled\"\n [thyPopoverOptions]=\"expandPopoverOptions\"\n class=\"py-0\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n <div *ngIf=\"item.children?.length > 0\">\n <thy-icon class=\"text-muted\" thyIconName=\"angle-right\"></thy-icon>\n </div>\n <thy-dropdown-menu #expand>\n <div class=\"the-plugin-menu-container expand-menu\" theListboxGroup>\n <ng-container *ngFor=\"let child of item.children\">\n <div\n *ngIf=\"child.type === ThePluginMenuItemType.group\"\n thyDropdownMenuItem\n theListboxOption\n class=\"py-0\"\n thePreventDefault\n [theOptionDisabled]=\"item.disabled\"\n [thyDisabled]=\"child.disabled\"\n (click)=\"handleItemSelection(child)\"\n [theOptionValue]=\"child\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"child.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ child.name }}\n </div>\n </div>\n </div>\n <thy-divider *ngIf=\"child === 'divider'\" class=\"my-2\"></thy-divider>\n </ng-container>\n </div>\n </thy-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngIf=\"item.isMenuItem && item.key === 'table'\">\n <div\n #dropdownTriggers\n [thyPopover]=\"tableSelect\"\n thyPlacement=\"rightTop\"\n thyTrigger=\"hover\"\n thyDropdownMenuItem\n theListboxOption\n [thyConfig]=\"tableSelectPopoverConfig\"\n [theOptionValue]=\"item\"\n [theOptionDisabled]=\"item.disabled\"\n [thyDisabled]=\"item.disabled\"\n class=\"py-0\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n <div>\n <thy-icon class=\"text-muted\" thyIconName=\"angle-right\"></thy-icon>\n </div>\n\n <ng-template #tableSelect>\n <table-select\n class=\"plugin-menu-table the-table-selector-panel\"\n [editor]=\"editor\"\n [beforeInsert]=\"removeKeywords\"\n ></table-select>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!item.isMenuItem\" #menuGroup>\n <thy-dropdown-menu-group class=\"font-size-sm\" [thyTitle]=\"item.groupName\"></thy-dropdown-menu-group>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #thyEmpty>\n <div class=\"empty d-flex align-items-center justify-content-center\">\n <thy-empty [thyMessage]=\"thyMessage\"></thy-empty>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i5.ThyInputSearchComponent, selector: "thy-input-search", inputs: ["name", "placeholder", "thyTheme", "thySearchFocus", "thyIconPosition", "thySize"], outputs: ["clear", "thyClear"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "directive", type: i6.ThyDropdownDirective, selector: "[thyDropdown]", inputs: ["thyDropdownMenu", "thyDropdown", "thyTrigger", "thyShowDelay", "thyHideDelay", "thyActiveClass", "thyPopoverOptions"], outputs: ["thyActiveChange"] }, { kind: "component", type: i6.ThyDropdownMenuComponent, selector: "thy-dropdown-menu", inputs: ["thyWidth"] }, { kind: "component", type: i6.ThyDropdownMenuGroupComponent, selector: "thy-dropdown-menu-group", inputs: ["thyTitle"] }, { kind: "directive", type: i6.ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "component", type: i10.ThyEmptyComponent, selector: "thy-empty", inputs: ["thyMessage", "thyTranslationKey", "thyTranslationValues", "thyEntityName", "thyEntityNameTranslateKey", "thyIconName", "thySize", "thyMarginTop", "thyTopAuto", "thyContainer", "thyImageUrl", "thyImageLoading", "thyImageFetchPriority", "thyDescription"] }, { kind: "directive", type: i1$1.ThyPopoverDirective, selector: "[thyPopover]", inputs: ["thyPopover", "thyTrigger", "thyPlacement", "thyOffset", "thyConfig", "thyShowDelay", "thyHideDelay", "thyAutoAdaptive", "thyDisabled"] }, { kind: "component", type: TheTableSelectComponent, selector: "table-select", inputs: ["optionsParam", "editor", "beforeInsert"] }, { kind: "directive", type: TheListboxOptionDirective, selector: "[theListboxOption]", inputs: ["theOptionValue", "theOptionDisabled"], exportAs: ["theListboxOption"] }, { kind: "directive", type: TheListboxGroupDirective, selector: "[theListboxGroup]", inputs: ["horizontalColumn"], exportAs: ["theListboxGroup"] }, { kind: "directive", type: TheListboxDirective, selector: "[theListBox]", inputs: ["keyboardContainer", "autoActiveFirstItem"], outputs: ["theListboxChange"], exportAs: ["theListBox"] }, { kind: "directive", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", exportAs: ["thePreventDefault"] }] });
|
|
5814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5830
|
+
ThePluginMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ThePluginMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5831
|
+
ThePluginMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ThePluginMenuComponent, selector: "the-plugin-menu", inputs: { editor: "editor", theDisplaySearch: "theDisplaySearch", thePluginMenu: "thePluginMenu" }, host: { properties: { "class": "this.containerClassName" } }, viewQueries: [{ propertyName: "dropdownTriggers", predicate: ["dropdownTriggers"], descendants: true, read: ThyDropdownDirective }], usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"theDisplaySearch\" class=\"menu-search px-5 pt-5 pb-2\">\n <thy-input-search [(ngModel)]=\"keyWords\" placeholder=\"\u641C\u7D22\" thyIconPosition=\"after\" (ngModelChange)=\"updateKeywords(keyWords)\">\n </thy-input-search>\n</div>\n\n<div\n *ngIf=\"groupMenu.length > 0; else thyEmpty\"\n theListBox\n [keyboardContainer]=\"keyboardContainer\"\n [autoActiveFirstItem]=\"autoActiveFirstItem\"\n (theListboxChange)=\"theListboxChange($event)\"\n class=\"thy-dropdown-menu the-plugin-menu-scroll-container pb-2 pt-0\"\n>\n <div *ngIf=\"iconMenu?.length > 0\" theListboxGroup [horizontalColumn]=\"6\" class=\"icon-menu d-flex pl-5 py-1\">\n <ng-container *ngFor=\"let item of iconMenu; trackBy: trackByFn\">\n <a\n *ngIf=\"item.type === ThePluginMenuItemType.icon\"\n href=\"javascript:;\"\n class=\"mt-2\"\n thyAction\n theListboxOption\n [theOptionValue]=\"item\"\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item?.name\"\n [thyDisabled]=\"item.disabled\"\n [theOptionDisabled]=\"item.disabled\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n ></a>\n </ng-container>\n </div>\n\n <thy-divider *ngIf=\"this.iconMenu?.length\" class=\"my-2\"></thy-divider>\n <div theListboxGroup>\n <ng-container *ngFor=\"let item of groupMenu; trackBy: trackByFn\">\n <ng-container *ngIf=\"item.isMenuItem && !(item.children?.length > 0) && item.key !== 'table'\">\n <div\n thyDropdownMenuItem\n theListboxOption\n [theOptionValue]=\"item\"\n class=\"py-0\"\n thePreventDefault\n [thyDisabled]=\"item.disabled\"\n [theOptionDisabled]=\"item.disabled\"\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"item.isMenuItem && item.children?.length > 0\" #hasExpanded>\n <div\n #dropdownTriggers\n [thyDropdown]=\"expand\"\n thyTrigger=\"hover\"\n thyDropdownMenuItem\n [thyDisabled]=\"item.disabled\"\n theListboxOption\n [theOptionValue]=\"item\"\n [theOptionDisabled]=\"item.disabled\"\n [thyPopoverOptions]=\"expandPopoverOptions\"\n class=\"py-0\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n <div *ngIf=\"item.children?.length > 0\">\n <thy-icon class=\"text-muted\" thyIconName=\"angle-right\"></thy-icon>\n </div>\n <thy-dropdown-menu #expand>\n <div class=\"the-plugin-menu-container expand-menu\" theListboxGroup>\n <ng-container *ngFor=\"let child of item.children\">\n <div\n *ngIf=\"child.type === ThePluginMenuItemType.group\"\n thyDropdownMenuItem\n theListboxOption\n class=\"py-0\"\n thePreventDefault\n [theOptionDisabled]=\"item.disabled\"\n [thyDisabled]=\"child.disabled\"\n (click)=\"handleItemSelection(child)\"\n [theOptionValue]=\"child\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"child.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ child.name }}\n </div>\n </div>\n </div>\n <thy-divider *ngIf=\"child === 'divider'\" class=\"my-2\"></thy-divider>\n </ng-container>\n </div>\n </thy-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngIf=\"item.isMenuItem && item.key === 'table'\">\n <div\n #dropdownTriggers\n [thyPopover]=\"tableSelect\"\n thyPlacement=\"rightTop\"\n thyTrigger=\"hover\"\n thyDropdownMenuItem\n theListboxOption\n [thyConfig]=\"tableSelectPopoverConfig\"\n [theOptionValue]=\"item\"\n [theOptionDisabled]=\"item.disabled\"\n [thyDisabled]=\"item.disabled\"\n class=\"py-0\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n <div>\n <thy-icon class=\"text-muted\" thyIconName=\"angle-right\"></thy-icon>\n </div>\n\n <ng-template #tableSelect>\n <table-select\n class=\"plugin-menu-table the-table-selector-panel\"\n [editor]=\"editor\"\n [beforeInsert]=\"removeKeywords\"\n ></table-select>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!item.isMenuItem\" #menuGroup>\n <thy-dropdown-menu-group class=\"font-size-sm\" [thyTitle]=\"item.groupName\"></thy-dropdown-menu-group>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #thyEmpty>\n <div class=\"empty d-flex align-items-center justify-content-center\">\n <thy-empty [thyMessage]=\"thyMessage\"></thy-empty>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i5.ThyInputSearchComponent, selector: "thy-input-search", inputs: ["name", "placeholder", "thyTheme", "thySearchFocus", "thyIconPosition", "thySize"], outputs: ["clear", "thyClear"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "directive", type: i6.ThyDropdownDirective, selector: "[thyDropdown]", inputs: ["thyDropdownMenu", "thyDropdown", "thyTrigger", "thyActiveClass", "thyPopoverOptions"], outputs: ["thyActiveChange"] }, { kind: "component", type: i6.ThyDropdownMenuComponent, selector: "thy-dropdown-menu", inputs: ["thyWidth"] }, { kind: "component", type: i6.ThyDropdownMenuGroupComponent, selector: "thy-dropdown-menu-group", inputs: ["thyTitle"] }, { kind: "directive", type: i6.ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "component", type: i10.ThyEmptyComponent, selector: "thy-empty", inputs: ["thyMessage", "thyTranslationKey", "thyTranslationValues", "thyEntityName", "thyEntityNameTranslateKey", "thyIconName", "thySize", "thyMarginTop", "thyTopAuto", "thyContainer", "thyImageUrl", "thyImageLoading", "thyImageFetchPriority", "thyDescription"] }, { kind: "directive", type: i1$1.ThyPopoverDirective, selector: "[thyPopover]", inputs: ["thyPopover", "thyTrigger", "thyPlacement", "thyOffset", "thyConfig", "thyShowDelay", "thyHideDelay", "thyAutoAdaptive", "thyDisabled"] }, { kind: "component", type: TheTableSelectComponent, selector: "table-select", inputs: ["optionsParam", "editor", "beforeInsert"] }, { kind: "directive", type: TheListboxOptionDirective, selector: "[theListboxOption]", inputs: ["theOptionValue", "theOptionDisabled"], exportAs: ["theListboxOption"] }, { kind: "directive", type: TheListboxGroupDirective, selector: "[theListboxGroup]", inputs: ["horizontalColumn"], exportAs: ["theListboxGroup"] }, { kind: "directive", type: TheListboxDirective, selector: "[theListBox]", inputs: ["keyboardContainer", "autoActiveFirstItem"], outputs: ["theListboxChange"], exportAs: ["theListBox"] }, { kind: "directive", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", exportAs: ["thePreventDefault"] }] });
|
|
5832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ThePluginMenuComponent, decorators: [{
|
|
5815
5833
|
type: Component,
|
|
5816
5834
|
args: [{ selector: 'the-plugin-menu', template: "<div *ngIf=\"theDisplaySearch\" class=\"menu-search px-5 pt-5 pb-2\">\n <thy-input-search [(ngModel)]=\"keyWords\" placeholder=\"\u641C\u7D22\" thyIconPosition=\"after\" (ngModelChange)=\"updateKeywords(keyWords)\">\n </thy-input-search>\n</div>\n\n<div\n *ngIf=\"groupMenu.length > 0; else thyEmpty\"\n theListBox\n [keyboardContainer]=\"keyboardContainer\"\n [autoActiveFirstItem]=\"autoActiveFirstItem\"\n (theListboxChange)=\"theListboxChange($event)\"\n class=\"thy-dropdown-menu the-plugin-menu-scroll-container pb-2 pt-0\"\n>\n <div *ngIf=\"iconMenu?.length > 0\" theListboxGroup [horizontalColumn]=\"6\" class=\"icon-menu d-flex pl-5 py-1\">\n <ng-container *ngFor=\"let item of iconMenu; trackBy: trackByFn\">\n <a\n *ngIf=\"item.type === ThePluginMenuItemType.icon\"\n href=\"javascript:;\"\n class=\"mt-2\"\n thyAction\n theListboxOption\n [theOptionValue]=\"item\"\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item?.name\"\n [thyDisabled]=\"item.disabled\"\n [theOptionDisabled]=\"item.disabled\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n ></a>\n </ng-container>\n </div>\n\n <thy-divider *ngIf=\"this.iconMenu?.length\" class=\"my-2\"></thy-divider>\n <div theListboxGroup>\n <ng-container *ngFor=\"let item of groupMenu; trackBy: trackByFn\">\n <ng-container *ngIf=\"item.isMenuItem && !(item.children?.length > 0) && item.key !== 'table'\">\n <div\n thyDropdownMenuItem\n theListboxOption\n [theOptionValue]=\"item\"\n class=\"py-0\"\n thePreventDefault\n [thyDisabled]=\"item.disabled\"\n [theOptionDisabled]=\"item.disabled\"\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"item.isMenuItem && item.children?.length > 0\" #hasExpanded>\n <div\n #dropdownTriggers\n [thyDropdown]=\"expand\"\n thyTrigger=\"hover\"\n thyDropdownMenuItem\n [thyDisabled]=\"item.disabled\"\n theListboxOption\n [theOptionValue]=\"item\"\n [theOptionDisabled]=\"item.disabled\"\n [thyPopoverOptions]=\"expandPopoverOptions\"\n class=\"py-0\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n <div *ngIf=\"item.children?.length > 0\">\n <thy-icon class=\"text-muted\" thyIconName=\"angle-right\"></thy-icon>\n </div>\n <thy-dropdown-menu #expand>\n <div class=\"the-plugin-menu-container expand-menu\" theListboxGroup>\n <ng-container *ngFor=\"let child of item.children\">\n <div\n *ngIf=\"child.type === ThePluginMenuItemType.group\"\n thyDropdownMenuItem\n theListboxOption\n class=\"py-0\"\n thePreventDefault\n [theOptionDisabled]=\"item.disabled\"\n [thyDisabled]=\"child.disabled\"\n (click)=\"handleItemSelection(child)\"\n [theOptionValue]=\"child\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"child.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ child.name }}\n </div>\n </div>\n </div>\n <thy-divider *ngIf=\"child === 'divider'\" class=\"my-2\"></thy-divider>\n </ng-container>\n </div>\n </thy-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngIf=\"item.isMenuItem && item.key === 'table'\">\n <div\n #dropdownTriggers\n [thyPopover]=\"tableSelect\"\n thyPlacement=\"rightTop\"\n thyTrigger=\"hover\"\n thyDropdownMenuItem\n theListboxOption\n [thyConfig]=\"tableSelectPopoverConfig\"\n [theOptionValue]=\"item\"\n [theOptionDisabled]=\"item.disabled\"\n [thyDisabled]=\"item.disabled\"\n class=\"py-0\"\n thePreventDefault\n (click)=\"handleItemSelection(item)\"\n >\n <div class=\"menu-icon mr-2\">\n <thy-icon [thyIconName]=\"item.menuIcon\"></thy-icon>\n </div>\n <div class=\"menu-content d-flex align-items-center\">\n <div class=\"menu-item-title w-100\">\n {{ item.name }}\n </div>\n </div>\n <div>\n <thy-icon class=\"text-muted\" thyIconName=\"angle-right\"></thy-icon>\n </div>\n\n <ng-template #tableSelect>\n <table-select\n class=\"plugin-menu-table the-table-selector-panel\"\n [editor]=\"editor\"\n [beforeInsert]=\"removeKeywords\"\n ></table-select>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!item.isMenuItem\" #menuGroup>\n <thy-dropdown-menu-group class=\"font-size-sm\" [thyTitle]=\"item.groupName\"></thy-dropdown-menu-group>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #thyEmpty>\n <div class=\"empty d-flex align-items-center justify-content-center\">\n <thy-empty [thyMessage]=\"thyMessage\"></thy-empty>\n </div>\n</ng-template>\n" }]
|
|
5817
5835
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$1.ThyPopoverRef }]; }, propDecorators: { dropdownTriggers: [{
|
|
@@ -5918,6 +5936,13 @@ const TodoItemEditor = {
|
|
|
5918
5936
|
};
|
|
5919
5937
|
|
|
5920
5938
|
class TheVerticalToolbarItemComponent extends TheBaseToolbarDropdown {
|
|
5939
|
+
constructor(elementRef, thyPopover, viewContainerRef) {
|
|
5940
|
+
super();
|
|
5941
|
+
this.elementRef = elementRef;
|
|
5942
|
+
this.thyPopover = thyPopover;
|
|
5943
|
+
this.viewContainerRef = viewContainerRef;
|
|
5944
|
+
this.isHide = true;
|
|
5945
|
+
}
|
|
5921
5946
|
get isOpened() {
|
|
5922
5947
|
return this.dropdownPopoverRef && this.dropdownPopoverRef.getOverlayRef() && this.dropdownPopoverRef.getOverlayRef().hasAttached();
|
|
5923
5948
|
}
|
|
@@ -5926,13 +5951,6 @@ class TheVerticalToolbarItemComponent extends TheBaseToolbarDropdown {
|
|
|
5926
5951
|
this.close();
|
|
5927
5952
|
}
|
|
5928
5953
|
}
|
|
5929
|
-
constructor(elementRef, thyPopover, viewContainerRef) {
|
|
5930
|
-
super();
|
|
5931
|
-
this.elementRef = elementRef;
|
|
5932
|
-
this.thyPopover = thyPopover;
|
|
5933
|
-
this.viewContainerRef = viewContainerRef;
|
|
5934
|
-
this.isHide = true;
|
|
5935
|
-
}
|
|
5936
5954
|
ngOnInit() { }
|
|
5937
5955
|
menusActive(editor) {
|
|
5938
5956
|
return this.menus.find(i => {
|
|
@@ -5978,9 +5996,9 @@ class TheVerticalToolbarItemComponent extends TheBaseToolbarDropdown {
|
|
|
5978
5996
|
}
|
|
5979
5997
|
}
|
|
5980
5998
|
}
|
|
5981
|
-
TheVerticalToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5982
|
-
TheVerticalToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5999
|
+
TheVerticalToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheVerticalToolbarItemComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.ThyPopover }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6000
|
+
TheVerticalToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", 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: TemplateRef, static: true }], usesInheritance: true, ngImport: i0, template: "<a\n href=\"javascript:;\"\n class=\"icon-mode link-with-down\"\n thyAction\n [thyActionIcon]=\"activeMenuItem?.icon\"\n [thyActionActive]=\"isOpened\"\n [thyTooltip]=\"toolbarItem?.name\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #VerticalAlignItems>\n <div class=\"thy-dropdown-menu\">\n <ng-container *ngFor=\"let menu of toolbarItem?.includes\">\n <a\n href=\"javascript:;\"\n thyDropdownMenuItem\n [thyDropdownMenuItemActive]=\"menu.key === activeMenuItem?.key\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <thy-icon *ngIf=\"menu.icon\" thyDropdownMenuItemIcon [thyIconName]=\"menu?.icon\"></thy-icon>\n <span thyDropdownMenuItemName>{{ menu.name }}</span>\n </a>\n </ng-container>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "directive", type: i6.ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: i6.ThyDropdownMenuItemNameDirective, selector: "[thyDropdownMenuItemName]" }, { kind: "directive", type: i6.ThyDropdownMenuItemIconDirective, selector: "[thyDropdownMenuItemIcon]" }, { kind: "directive", type: i6.ThyDropdownMenuItemActiveDirective, selector: "[thyDropdownMenuItemActive]", inputs: ["thyDropdownMenuItemActive"] }] });
|
|
6001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheVerticalToolbarItemComponent, decorators: [{
|
|
5984
6002
|
type: Component,
|
|
5985
6003
|
args: [{ selector: 'the-toolbar-vertical-align-item', host: {
|
|
5986
6004
|
class: 'the-toolbar-dropdown-container verticalAlign',
|
|
@@ -6790,9 +6808,9 @@ class TheBlockquoteComponent extends TheBaseElementComponent {
|
|
|
6790
6808
|
this.cdr = cdr;
|
|
6791
6809
|
}
|
|
6792
6810
|
}
|
|
6793
|
-
TheBlockquoteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6794
|
-
TheBlockquoteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
6795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6811
|
+
TheBlockquoteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBlockquoteComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6812
|
+
TheBlockquoteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheBlockquoteComponent, selector: "blockquote[theBlockquote]", usesInheritance: true, ngImport: i0, template: `<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
6813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBlockquoteComponent, decorators: [{
|
|
6796
6814
|
type: Component,
|
|
6797
6815
|
args: [{
|
|
6798
6816
|
selector: 'blockquote[theBlockquote]',
|
|
@@ -6876,12 +6894,6 @@ const createBlockquotePlugin = createPluginFactory({
|
|
|
6876
6894
|
});
|
|
6877
6895
|
|
|
6878
6896
|
class TheCodeComponent extends TheBaseElementComponent {
|
|
6879
|
-
get code() {
|
|
6880
|
-
return this.element.content;
|
|
6881
|
-
}
|
|
6882
|
-
get isToolbarOpen() {
|
|
6883
|
-
return this.toolbarPopoverRef && this.toolbarPopoverRef.getOverlayRef() && this.toolbarPopoverRef.getOverlayRef().hasAttached();
|
|
6884
|
-
}
|
|
6885
6897
|
constructor(elementRef, cdr, thyNotifyService, contextService, ngZone, config, thyPopover, viewContainerRef, overlay) {
|
|
6886
6898
|
super(elementRef, cdr);
|
|
6887
6899
|
this.elementRef = elementRef;
|
|
@@ -6919,6 +6931,12 @@ class TheCodeComponent extends TheBaseElementComponent {
|
|
|
6919
6931
|
CodeEditor.setCodeAttribute(this.editor, this.element, { language: item.key });
|
|
6920
6932
|
};
|
|
6921
6933
|
}
|
|
6934
|
+
get code() {
|
|
6935
|
+
return this.element.content;
|
|
6936
|
+
}
|
|
6937
|
+
get isToolbarOpen() {
|
|
6938
|
+
return this.toolbarPopoverRef && this.toolbarPopoverRef.getOverlayRef() && this.toolbarPopoverRef.getOverlayRef().hasAttached();
|
|
6939
|
+
}
|
|
6922
6940
|
onContextChange() {
|
|
6923
6941
|
super.onContextChange();
|
|
6924
6942
|
if (this.isCollapsedAndNonReadonly) {
|
|
@@ -7089,9 +7107,9 @@ class TheCodeComponent extends TheBaseElementComponent {
|
|
|
7089
7107
|
this.destroy$.complete();
|
|
7090
7108
|
}
|
|
7091
7109
|
}
|
|
7092
|
-
TheCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7093
|
-
TheCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
7094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7110
|
+
TheCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheCodeComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.ThyNotifyService }, { token: TheContextService }, { token: i0.NgZone }, { token: THE_MODE_TOKEN }, { token: i1$1.ThyPopover }, { token: i0.ViewContainerRef }, { token: i2$1.Overlay }], target: i0.ɵɵFactoryTarget.Component });
|
|
7111
|
+
TheCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheCodeComponent, selector: "div[theCode]", viewQueries: [{ propertyName: "toolbar", first: true, predicate: ["toolbar"], descendants: true, read: TemplateRef, static: true }, { propertyName: "codemirror", first: true, predicate: ["codemirror"], descendants: true, read: CodeMirrorComponent }, { propertyName: "toolbarDropdownComponent", first: true, predicate: TheToolbarDropdownComponent, descendants: true, read: TheToolbarDropdownComponent }], usesInheritance: true, ngImport: i0, template: "<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: isCollapsedAndNonReadonly, readonly: options.readOnly, active: isHightLight && isCollapsedAndNonReadonly }\"\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=\"isCollapsedAndNonReadonly\"></thy-resize-handle>\n</div>\n\n<ng-template #toolbar>\n <thy-actions thySize=\"xxs\" thePreventDefault>\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 px-2 text-secondary\">\n <span>\u81EA\u52A8\u6362\u884C</span>\n <thy-switch\n class=\"auto-wrap-btn d-flex ml-1\"\n [(ngModel)]=\"options.lineWrapping\"\n (ngModelChange)=\"onChangeWrap($event)\"\n thySize=\"sm\"\n ></thy-switch>\n </span>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"copy\" thyTooltip=\"\u590D\u5236\" thyTooltipPlacement=\"top\" (click)=\"onCopy($event)\"></a>\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a\n href=\"javascript:;\"\n thyAction\n thyType=\"danger\"\n thyActionIcon=\"trash\"\n thyTooltip=\"\u5220\u9664\"\n thyTooltipPlacement=\"top\"\n (click)=\"onDelete($event)\"\n ></a>\n </thy-actions>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "directive", type: i9.ThyResizableDirective, selector: "[thyResizable]", inputs: ["thyBounds", "thyMaxHeight", "thyMaxWidth", "thyMinHeight", "thyMinWidth", "thyGridColumnCount", "thyMaxColumn", "thyMinColumn", "thyLockAspectRatio", "thyPreview", "thyDisabled"], outputs: ["thyResize", "thyResizeEnd", "thyResizeStart"] }, { kind: "component", type: i9.ThyResizeHandleComponent, selector: "thy-resize-handle, [thy-resize-handle]", inputs: ["thyDirection", "thyLine"], outputs: ["thyMouseDown"], exportAs: ["thyResizeHandle"] }, { kind: "component", type: i10$1.ThySwitchComponent, selector: "thy-switch", inputs: ["thyType", "thySize", "thyDisabled"], outputs: ["thyChange"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i7.ThyActionsComponent, selector: "thy-actions", inputs: ["thySize"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "component", type: i13.CodeMirrorComponent, selector: "ng-codemirror, [ngCodeMirror]", inputs: ["autoMaxHeight", "options", "delayRefreshTime"], outputs: ["focusChange"] }, { kind: "component", type: TheToolbarDropdownComponent, selector: "the-toolbar-dropdown" }, { kind: "directive", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", exportAs: ["thePreventDefault"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheCodeComponent, decorators: [{
|
|
7095
7113
|
type: Component,
|
|
7096
7114
|
args: [{ selector: 'div[theCode]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<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: isCollapsedAndNonReadonly, readonly: options.readOnly, active: isHightLight && isCollapsedAndNonReadonly }\"\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=\"isCollapsedAndNonReadonly\"></thy-resize-handle>\n</div>\n\n<ng-template #toolbar>\n <thy-actions thySize=\"xxs\" thePreventDefault>\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 px-2 text-secondary\">\n <span>\u81EA\u52A8\u6362\u884C</span>\n <thy-switch\n class=\"auto-wrap-btn d-flex ml-1\"\n [(ngModel)]=\"options.lineWrapping\"\n (ngModelChange)=\"onChangeWrap($event)\"\n thySize=\"sm\"\n ></thy-switch>\n </span>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"copy\" thyTooltip=\"\u590D\u5236\" thyTooltipPlacement=\"top\" (click)=\"onCopy($event)\"></a>\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a\n href=\"javascript:;\"\n thyAction\n thyType=\"danger\"\n thyActionIcon=\"trash\"\n thyTooltip=\"\u5220\u9664\"\n thyTooltipPlacement=\"top\"\n (click)=\"onDelete($event)\"\n ></a>\n </thy-actions>\n</ng-template>\n" }]
|
|
7097
7115
|
}], ctorParameters: function () {
|
|
@@ -7160,15 +7178,15 @@ const createCodePlugin = createPluginFactory({
|
|
|
7160
7178
|
});
|
|
7161
7179
|
|
|
7162
7180
|
class TheColorToolbarItemComponent extends TheBaseToolbarItem {
|
|
7163
|
-
get isOpenColorSelect() {
|
|
7164
|
-
return this.colorSelectRef && this.colorSelectRef.componentInstance;
|
|
7165
|
-
}
|
|
7166
7181
|
constructor(thyPopover) {
|
|
7167
7182
|
super();
|
|
7168
7183
|
this.thyPopover = thyPopover;
|
|
7169
7184
|
this.defaultColorLine = '#FF0100';
|
|
7170
7185
|
this.defaultBackgroundColorLine = '#FFDA00';
|
|
7171
7186
|
}
|
|
7187
|
+
get isOpenColorSelect() {
|
|
7188
|
+
return this.colorSelectRef && this.colorSelectRef.componentInstance;
|
|
7189
|
+
}
|
|
7172
7190
|
preventDefault(event) {
|
|
7173
7191
|
event.preventDefault();
|
|
7174
7192
|
event.stopPropagation();
|
|
@@ -7222,8 +7240,8 @@ class TheColorToolbarItemComponent extends TheBaseToolbarItem {
|
|
|
7222
7240
|
}
|
|
7223
7241
|
}
|
|
7224
7242
|
}
|
|
7225
|
-
TheColorToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7226
|
-
TheColorToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
7243
|
+
TheColorToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorToolbarItemComponent, deps: [{ token: i1$1.ThyPopover }], target: i0.ɵɵFactoryTarget.Component });
|
|
7244
|
+
TheColorToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheColorToolbarItemComponent, selector: "the-color-toolbar-item", host: { classAttribute: "the-toolbar-item" }, usesInheritance: true, ngImport: i0, template: `
|
|
7227
7245
|
<a
|
|
7228
7246
|
href="javascript:;"
|
|
7229
7247
|
thyAction
|
|
@@ -7241,7 +7259,7 @@ TheColorToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
7241
7259
|
<thy-icon class="link-down-icon font-size-sm text-desc ml-1" thyIconName="caret-down"></thy-icon>
|
|
7242
7260
|
</a>
|
|
7243
7261
|
`, isInline: true, dependencies: [{ kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }] });
|
|
7244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColorToolbarItemComponent, decorators: [{
|
|
7245
7263
|
type: Component,
|
|
7246
7264
|
args: [{
|
|
7247
7265
|
selector: 'the-color-toolbar-item',
|
|
@@ -7339,14 +7357,17 @@ const withAutoInsertData = (editor) => {
|
|
|
7339
7357
|
Transforms.insertNodes(editor, fragment);
|
|
7340
7358
|
isEmptyParagraph$1 && Transforms.delete(editor, { at: emptyPath });
|
|
7341
7359
|
// This is to focus after withTrailingNode.normalizeNode() to avoid incorrect focus element.
|
|
7360
|
+
// If the pasted element is the last element, focus on its right side.
|
|
7342
7361
|
setTimeout(() => {
|
|
7343
7362
|
const lastPath = emptyPath.pop();
|
|
7344
7363
|
const currentPath = [...emptyPath, lastPath + fragment.length - (isEmptyParagraph$1 ? 1 : 0)];
|
|
7345
7364
|
const nextPath = Path.next(currentPath);
|
|
7346
|
-
const
|
|
7347
|
-
const
|
|
7348
|
-
const
|
|
7349
|
-
|
|
7365
|
+
const hasNextNode = Node.has(editor, nextPath);
|
|
7366
|
+
const focusPath = hasNextNode ? nextPath : currentPath;
|
|
7367
|
+
const focusNode = Node.get(editor, focusPath);
|
|
7368
|
+
const isBlockCard = editor.isBlockCard(focusNode);
|
|
7369
|
+
const cursorPath = { path: focusPath, offset: isBlockCard ? (hasNextNode ? -1 : -2) : 0 };
|
|
7370
|
+
Transforms.select(editor, cursorPath);
|
|
7350
7371
|
AngularEditor.focus(editor);
|
|
7351
7372
|
Transforms.collapse(editor, { edge: 'end' });
|
|
7352
7373
|
});
|
|
@@ -8032,9 +8053,9 @@ class TheConversionHintComponent {
|
|
|
8032
8053
|
clearInterval(this.closeTimer);
|
|
8033
8054
|
}
|
|
8034
8055
|
}
|
|
8035
|
-
TheConversionHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8036
|
-
TheConversionHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
8037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8056
|
+
TheConversionHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheConversionHintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8057
|
+
TheConversionHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheConversionHintComponent, selector: "the-conversion-hint", inputs: { editor: "editor", conversion: "conversion" }, host: { listeners: { "mouseenter": "mouseenter()", "mouseleave": "mouseleave()" }, classAttribute: "the-conversion-hint" }, ngImport: i0, template: "<ng-container>\n <thy-alert thyType=\"primary-weak\" thyIcon=\"info-circle-fill\" thyCloseable=\"true\" thyMessage=\"\u68C0\u6D4B\u5230\u7C98\u8D34\u5185\u5BB9\u7B26\u5408Markdown\u8BED\u6CD5\">\n <ng-template #operation>\n <a href=\"javascript:;\" thyAlertActionItem (click)=\"conversion()\"> \u7ACB\u5373\u8F6C\u6362 </a>\n </ng-template>\n </thy-alert>\n</ng-container>\n", dependencies: [{ kind: "component", type: i1$3.ThyAlertComponent, selector: "thy-alert", inputs: ["thyType", "thyTheme", "thyMessage", "thyIcon", "thyCloseable"] }, { kind: "directive", type: i1$3.ThyAlertActionItemDirective, selector: "[thyAlertActionItem]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheConversionHintComponent, decorators: [{
|
|
8038
8059
|
type: Component,
|
|
8039
8060
|
args: [{ selector: 'the-conversion-hint', host: {
|
|
8040
8061
|
class: 'the-conversion-hint'
|
|
@@ -8402,14 +8423,14 @@ class TheHrComponent extends TheBaseElementComponent {
|
|
|
8402
8423
|
});
|
|
8403
8424
|
}
|
|
8404
8425
|
}
|
|
8405
|
-
TheHrComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8406
|
-
TheHrComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
8426
|
+
TheHrComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheHrComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8427
|
+
TheHrComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheHrComponent, selector: "the-hr, [theHr]", usesInheritance: true, ngImport: i0, template: `
|
|
8407
8428
|
<div class="the-hr" contenteditable="false" [ngClass]="{ active: isCollapsedAndNonReadonly }">
|
|
8408
8429
|
<hr class="the-hr" />
|
|
8409
8430
|
<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>
|
|
8410
8431
|
</div>
|
|
8411
8432
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
8412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheHrComponent, decorators: [{
|
|
8413
8434
|
type: Component,
|
|
8414
8435
|
args: [{
|
|
8415
8436
|
selector: 'the-hr, [theHr]',
|
|
@@ -8472,16 +8493,6 @@ const createHrPlugin = createPluginFactory({
|
|
|
8472
8493
|
});
|
|
8473
8494
|
|
|
8474
8495
|
class TheImageComponent extends TheBaseElementComponent {
|
|
8475
|
-
get isOpen() {
|
|
8476
|
-
return this.layoutToolbarRef && this.layoutToolbarRef.getOverlayRef() && this.layoutToolbarRef.getOverlayRef().hasAttached();
|
|
8477
|
-
}
|
|
8478
|
-
get imageBindingWidth() {
|
|
8479
|
-
var _a, _b, _c;
|
|
8480
|
-
const currentWidth = ((_a = this.imageEntry) === null || _a === void 0 ? void 0 : _a.width) || this.naturalWidth;
|
|
8481
|
-
return ((_b = this.imageEntry) === null || _b === void 0 ? void 0 : _b.layout) && currentWidth > this.layoutDefaultWidth && !((_c = this.imageEntry) === null || _c === void 0 ? void 0 : _c.reSized)
|
|
8482
|
-
? this.layoutDefaultWidth
|
|
8483
|
-
: this.imageEntry.width;
|
|
8484
|
-
}
|
|
8485
8496
|
constructor(elementRef, imageUploaderService, cdr, theContextService, thyPopover, overlay, thyImageService, viewContainerRef) {
|
|
8486
8497
|
super(elementRef, cdr);
|
|
8487
8498
|
this.elementRef = elementRef;
|
|
@@ -8566,6 +8577,16 @@ class TheImageComponent extends TheBaseElementComponent {
|
|
|
8566
8577
|
}
|
|
8567
8578
|
};
|
|
8568
8579
|
}
|
|
8580
|
+
get isOpen() {
|
|
8581
|
+
return this.layoutToolbarRef && this.layoutToolbarRef.getOverlayRef() && this.layoutToolbarRef.getOverlayRef().hasAttached();
|
|
8582
|
+
}
|
|
8583
|
+
get imageBindingWidth() {
|
|
8584
|
+
var _a, _b, _c;
|
|
8585
|
+
const currentWidth = ((_a = this.imageEntry) === null || _a === void 0 ? void 0 : _a.width) || this.naturalWidth;
|
|
8586
|
+
return ((_b = this.imageEntry) === null || _b === void 0 ? void 0 : _b.layout) && currentWidth > this.layoutDefaultWidth && !((_c = this.imageEntry) === null || _c === void 0 ? void 0 : _c.reSized)
|
|
8587
|
+
? this.layoutDefaultWidth
|
|
8588
|
+
: this.imageEntry.width;
|
|
8589
|
+
}
|
|
8569
8590
|
ngOnInit() {
|
|
8570
8591
|
var _a;
|
|
8571
8592
|
this.fileItem = this.theContextService.uploadingFiles.find(item => item.url === this.element.url);
|
|
@@ -8815,9 +8836,9 @@ class TheImageComponent extends TheBaseElementComponent {
|
|
|
8815
8836
|
event.stopPropagation();
|
|
8816
8837
|
}
|
|
8817
8838
|
}
|
|
8818
|
-
TheImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8819
|
-
TheImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
8820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8839
|
+
TheImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheImageComponent, deps: [{ token: i0.ElementRef }, { token: THE_UPLOAD_SERVICE_TOKEN }, { token: i0.ChangeDetectorRef }, { token: TheContextService }, { token: i1$1.ThyPopover }, { token: i2$1.Overlay }, { token: i4.ThyImageService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8840
|
+
TheImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", 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, 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 #imageContent *ngIf=\"imageEntry.thumbUrl\" class=\"image-content\" [class.pointer]=\"!selection\">\n <img\n #img\n thyImage\n [ngStyle]=\"{ 'width.px': imageBindingWidth }\"\n [class.image-collapsed]=\"selection && !uploading\"\n class=\"main-image\"\n (load)=\"imageLoaded($event)\"\n (mousedown)=\"preventDefault($event)\"\n [thySrc]=\"imageEntry.thumbUrl\"\n [thyPreviewSrc]=\"imageEntry.thumbUrl\"\n [thyOriginSrc]=\"imageEntry.originUrl\"\n [thyImageMeta]=\"{ name: imageEntry.name, size: imageEntry.size }\"\n [alt]=\"imageEntry.name\"\n />\n <div *ngIf=\"isCollapsedAndNonReadonly\" class=\"image-profile\" [class.outline]=\"selection\">\n <span *ngIf=\"isCollapsedAndNonReadonly\" (mousedown)=\"startDrag($event, '-xl')\" class=\"image-pointer left top\"></span>\n <span *ngIf=\"isCollapsedAndNonReadonly\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right top\"></span>\n <span *ngIf=\"isCollapsedAndNonReadonly\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right bottom\"></span>\n <span *ngIf=\"isCollapsedAndNonReadonly\" (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\" [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 <thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of layoutOptions\">\n <a\n *ngIf=\"item.key !== 'split'\"\n href=\"javascript:;\"\n thyAction\n [thyType]=\"item.key === 'remove' ? 'danger' : 'primary'\"\n [thyActionIcon]=\"item.icon\"\n [thyActionActive]=\"layoutActive(item.key)\"\n [thyTooltip]=\"item.name\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"item?.handle($event, item.key)\"\n ></a>\n <thy-divider *ngIf=\"item.key === 'split'\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n </ng-container>\n </thy-actions>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i9$1.ThyProgressComponent, selector: "thy-progress", inputs: ["thyType", "thySize", "thyValue", "thyMax", "thyTips"] }, { kind: "directive", type: i4.ThyImageDirective, selector: "img[thyImage]", inputs: ["thySrc", "thyPreviewSrc", "thyOriginSrc", "thyImageMeta", "thyDisablePreview", "thyResolveSize"], exportAs: ["thyImage"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i7.ThyActionsComponent, selector: "thy-actions", inputs: ["thySize"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }] });
|
|
8841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheImageComponent, decorators: [{
|
|
8821
8842
|
type: Component,
|
|
8822
8843
|
args: [{ selector: 'the-image, [theImage]', 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 #imageContent *ngIf=\"imageEntry.thumbUrl\" class=\"image-content\" [class.pointer]=\"!selection\">\n <img\n #img\n thyImage\n [ngStyle]=\"{ 'width.px': imageBindingWidth }\"\n [class.image-collapsed]=\"selection && !uploading\"\n class=\"main-image\"\n (load)=\"imageLoaded($event)\"\n (mousedown)=\"preventDefault($event)\"\n [thySrc]=\"imageEntry.thumbUrl\"\n [thyPreviewSrc]=\"imageEntry.thumbUrl\"\n [thyOriginSrc]=\"imageEntry.originUrl\"\n [thyImageMeta]=\"{ name: imageEntry.name, size: imageEntry.size }\"\n [alt]=\"imageEntry.name\"\n />\n <div *ngIf=\"isCollapsedAndNonReadonly\" class=\"image-profile\" [class.outline]=\"selection\">\n <span *ngIf=\"isCollapsedAndNonReadonly\" (mousedown)=\"startDrag($event, '-xl')\" class=\"image-pointer left top\"></span>\n <span *ngIf=\"isCollapsedAndNonReadonly\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right top\"></span>\n <span *ngIf=\"isCollapsedAndNonReadonly\" (mousedown)=\"startDrag($event, 'xl')\" class=\"image-pointer right bottom\"></span>\n <span *ngIf=\"isCollapsedAndNonReadonly\" (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\" [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 <thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of layoutOptions\">\n <a\n *ngIf=\"item.key !== 'split'\"\n href=\"javascript:;\"\n thyAction\n [thyType]=\"item.key === 'remove' ? 'danger' : 'primary'\"\n [thyActionIcon]=\"item.icon\"\n [thyActionActive]=\"layoutActive(item.key)\"\n [thyTooltip]=\"item.name\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"item?.handle($event, item.key)\"\n ></a>\n <thy-divider *ngIf=\"item.key === 'split'\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n </ng-container>\n </thy-actions>\n</ng-template>\n" }]
|
|
8823
8844
|
}], ctorParameters: function () {
|
|
@@ -9018,11 +9039,11 @@ class TheInlineCodeComponent extends TheBaseElementComponent {
|
|
|
9018
9039
|
this.inlineChromiumBugfix = String.fromCodePoint(160);
|
|
9019
9040
|
}
|
|
9020
9041
|
}
|
|
9021
|
-
TheInlineCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9022
|
-
TheInlineCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9042
|
+
TheInlineCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheInlineCodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9043
|
+
TheInlineCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheInlineCodeComponent, selector: "span[theInlineCode]", usesInheritance: true, ngImport: i0, template: `<span contenteditable="false" class="the-break-char">{{ inlineChromiumBugfix }}</span>
|
|
9023
9044
|
<span><slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children></span>
|
|
9024
9045
|
<span contenteditable="false" class="the-break-char">{{ inlineChromiumBugfix }}</span>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
9025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheInlineCodeComponent, decorators: [{
|
|
9026
9047
|
type: Component,
|
|
9027
9048
|
args: [{
|
|
9028
9049
|
selector: 'span[theInlineCode]',
|
|
@@ -9123,9 +9144,9 @@ class TheLinkHoverComponent {
|
|
|
9123
9144
|
event.stopPropagation();
|
|
9124
9145
|
}
|
|
9125
9146
|
}
|
|
9126
|
-
TheLinkHoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9127
|
-
TheLinkHoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9147
|
+
TheLinkHoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheLinkHoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9148
|
+
TheLinkHoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheLinkHoverComponent, selector: "the-link-hover", inputs: { link: "link", dom: "dom", editHandle: "editHandle", deleteHandle: "deleteHandle" }, ngImport: i0, template: "<div class=\"link-hover-card px-1\">\n <a readonly href=\"{{ link }}\" target=\"_blank\" rel=\"{{ aTagRelAttr }}\" class=\"hover-control-plaintext text-truncate mx-2\">\n {{ link }}\n </a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"edit\" thePreventDefault (click)=\"editLink($event)\"></a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"unlink-insert\" thePreventDefault (click)=\"removeLink($event)\"></a>\n</div>\n", dependencies: [{ kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "directive", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", exportAs: ["thePreventDefault"] }] });
|
|
9149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheLinkHoverComponent, decorators: [{
|
|
9129
9150
|
type: Component,
|
|
9130
9151
|
args: [{ selector: 'the-link-hover', template: "<div class=\"link-hover-card px-1\">\n <a readonly href=\"{{ link }}\" target=\"_blank\" rel=\"{{ aTagRelAttr }}\" class=\"hover-control-plaintext text-truncate mx-2\">\n {{ link }}\n </a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"edit\" thePreventDefault (click)=\"editLink($event)\"></a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"unlink-insert\" thePreventDefault (click)=\"removeLink($event)\"></a>\n</div>\n" }]
|
|
9131
9152
|
}], ctorParameters: function () { return []; }, propDecorators: { link: [{
|
|
@@ -9139,11 +9160,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
9139
9160
|
}] } });
|
|
9140
9161
|
|
|
9141
9162
|
class TheLinkEditComponent {
|
|
9142
|
-
handleDocumentMouseDown(event) {
|
|
9143
|
-
if (!document.querySelector('.the-link-edit-container').contains(event.target)) {
|
|
9144
|
-
this.thyPopoverRef.close();
|
|
9145
|
-
}
|
|
9146
|
-
}
|
|
9147
9163
|
constructor(thyPopoverRef) {
|
|
9148
9164
|
this.thyPopoverRef = thyPopoverRef;
|
|
9149
9165
|
this.className = 'the-link-edit-container';
|
|
@@ -9161,6 +9177,11 @@ class TheLinkEditComponent {
|
|
|
9161
9177
|
}
|
|
9162
9178
|
};
|
|
9163
9179
|
}
|
|
9180
|
+
handleDocumentMouseDown(event) {
|
|
9181
|
+
if (!document.querySelector('.the-link-edit-container').contains(event.target)) {
|
|
9182
|
+
this.thyPopoverRef.close();
|
|
9183
|
+
}
|
|
9184
|
+
}
|
|
9164
9185
|
ngOnInit() {
|
|
9165
9186
|
this.originText = this.text;
|
|
9166
9187
|
this.originLink = this.link;
|
|
@@ -9207,9 +9228,9 @@ class TheLinkEditComponent {
|
|
|
9207
9228
|
}
|
|
9208
9229
|
}
|
|
9209
9230
|
}
|
|
9210
|
-
TheLinkEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9211
|
-
TheLinkEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9231
|
+
TheLinkEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheLinkEditComponent, deps: [{ token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9232
|
+
TheLinkEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", 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, template: "<form thyForm #linkForm=\"thyForm\" [thyFormValidatorConfig]=\"validatorConfig\" name=\"linkForm\">\n <thy-form-group thyLabelText=\"\u6587\u672C\">\n <input thyInput placeholder=\"\u8BF7\u8F93\u5165\u6587\u672C\" required name=\"text\" [(ngModel)]=\"text\" thyAutofocus type=\"text\" />\n </thy-form-group>\n <thy-form-group thyLabelText=\"\u94FE\u63A5\">\n <input name=\"link\" thyInput placeholder=\"\u8BF7\u8F93\u5165\u94FE\u63A5\" required type=\"text\" #linkControl=\"ngModel\" [(ngModel)]=\"link\" />\n </thy-form-group>\n <thy-form-group-footer>\n <div class=\"btn-pair\">\n <button thyButton=\"link-secondary\" thySize=\"sm\" (click)=\"closePopover()\">\u53D6\u6D88</button>\n <button thyButton=\"primary-square\" thySize=\"sm\" (thyFormSubmit)=\"applyLink(linkForm)\">\u5E94\u7528</button>\n </div>\n </thy-form-group-footer>\n</form>\n", dependencies: [{ kind: "directive", type: i3$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { kind: "component", type: i3$2.ThyFormGroupComponent, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { kind: "directive", type: i3$2.ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }, { kind: "component", type: i3$2.ThyFormGroupFooterComponent, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { kind: "directive", type: i5$1.ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutoSelect", "thyAutofocus"] }, { kind: "directive", type: i5.ThyInputDirective, selector: "[thyInput]", inputs: ["thySize", "thyAutocomplete"] }, { kind: "component", type: i6$1.ThyButtonComponent, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thyBlock"] }] });
|
|
9233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheLinkEditComponent, decorators: [{
|
|
9213
9234
|
type: Component,
|
|
9214
9235
|
args: [{ selector: 'the-link-edit', template: "<form thyForm #linkForm=\"thyForm\" [thyFormValidatorConfig]=\"validatorConfig\" name=\"linkForm\">\n <thy-form-group thyLabelText=\"\u6587\u672C\">\n <input thyInput placeholder=\"\u8BF7\u8F93\u5165\u6587\u672C\" required name=\"text\" [(ngModel)]=\"text\" thyAutofocus type=\"text\" />\n </thy-form-group>\n <thy-form-group thyLabelText=\"\u94FE\u63A5\">\n <input name=\"link\" thyInput placeholder=\"\u8BF7\u8F93\u5165\u94FE\u63A5\" required type=\"text\" #linkControl=\"ngModel\" [(ngModel)]=\"link\" />\n </thy-form-group>\n <thy-form-group-footer>\n <div class=\"btn-pair\">\n <button thyButton=\"link-secondary\" thySize=\"sm\" (click)=\"closePopover()\">\u53D6\u6D88</button>\n <button thyButton=\"primary-square\" thySize=\"sm\" (thyFormSubmit)=\"applyLink(linkForm)\">\u5E94\u7528</button>\n </div>\n </thy-form-group-footer>\n</form>\n" }]
|
|
9215
9236
|
}], ctorParameters: function () { return [{ type: i1$1.ThyPopoverRef }]; }, propDecorators: { className: [{
|
|
@@ -9231,12 +9252,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
9231
9252
|
}] } });
|
|
9232
9253
|
|
|
9233
9254
|
class TheBaseLinkComponent extends TheBaseElementComponent {
|
|
9234
|
-
get linkHoverOpened() {
|
|
9235
|
-
return this.thyPopoverHoverRef && this.thyPopoverHoverRef.componentInstance;
|
|
9236
|
-
}
|
|
9237
|
-
get linkEditOpened() {
|
|
9238
|
-
return this.thyPopoverEditRef && this.thyPopoverEditRef.componentInstance;
|
|
9239
|
-
}
|
|
9240
9255
|
constructor(elementRef, cdr, thyPopover, overlay, viewContainerRef) {
|
|
9241
9256
|
super(elementRef, cdr);
|
|
9242
9257
|
this.elementRef = elementRef;
|
|
@@ -9253,6 +9268,12 @@ class TheBaseLinkComponent extends TheBaseElementComponent {
|
|
|
9253
9268
|
}
|
|
9254
9269
|
};
|
|
9255
9270
|
}
|
|
9271
|
+
get linkHoverOpened() {
|
|
9272
|
+
return this.thyPopoverHoverRef && this.thyPopoverHoverRef.componentInstance;
|
|
9273
|
+
}
|
|
9274
|
+
get linkEditOpened() {
|
|
9275
|
+
return this.thyPopoverEditRef && this.thyPopoverEditRef.componentInstance;
|
|
9276
|
+
}
|
|
9256
9277
|
ngOnInit() {
|
|
9257
9278
|
super.ngOnInit();
|
|
9258
9279
|
}
|
|
@@ -9348,9 +9369,9 @@ class TheBaseLinkComponent extends TheBaseElementComponent {
|
|
|
9348
9369
|
this.close(LinkCloseTypes.destroy);
|
|
9349
9370
|
}
|
|
9350
9371
|
}
|
|
9351
|
-
TheBaseLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9352
|
-
TheBaseLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9372
|
+
TheBaseLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseLinkComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ThyPopover }, { token: i2$1.Overlay }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9373
|
+
TheBaseLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheBaseLinkComponent, selector: "[TheBaseLinkComponent]", host: { listeners: { "click": "mousedownHandle($event)" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
9374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBaseLinkComponent, decorators: [{
|
|
9354
9375
|
type: Component,
|
|
9355
9376
|
args: [{
|
|
9356
9377
|
selector: '[TheBaseLinkComponent]',
|
|
@@ -9368,11 +9389,11 @@ class TheLinkComponent extends TheBaseLinkComponent {
|
|
|
9368
9389
|
this.inlineChromiumBugfix = String.fromCodePoint(160);
|
|
9369
9390
|
}
|
|
9370
9391
|
}
|
|
9371
|
-
TheLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9372
|
-
TheLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9392
|
+
TheLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheLinkComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9393
|
+
TheLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheLinkComponent, selector: "a[theLink]", host: { attributes: { "target": "_blank" }, properties: { "attr.href": "element.url" } }, usesInheritance: true, ngImport: i0, template: ` <span contenteditable="false" class="the-break-char">{{ inlineChromiumBugfix }}</span>
|
|
9373
9394
|
<span><slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children></span>
|
|
9374
9395
|
<span contenteditable="false" class="the-break-char">{{ inlineChromiumBugfix }}</span>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
9375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheLinkComponent, decorators: [{
|
|
9376
9397
|
type: Component,
|
|
9377
9398
|
args: [{
|
|
9378
9399
|
selector: 'a[theLink]',
|
|
@@ -10011,6 +10032,11 @@ function onKeyDownList(e, editor) {
|
|
|
10011
10032
|
}
|
|
10012
10033
|
|
|
10013
10034
|
class TheNumberedListComponent extends TheBaseElementComponent {
|
|
10035
|
+
constructor(elementRef, cdr) {
|
|
10036
|
+
super(elementRef, cdr);
|
|
10037
|
+
this.elementRef = elementRef;
|
|
10038
|
+
this.cdr = cdr;
|
|
10039
|
+
}
|
|
10014
10040
|
get start() {
|
|
10015
10041
|
return this.element.start;
|
|
10016
10042
|
}
|
|
@@ -10018,11 +10044,6 @@ class TheNumberedListComponent extends TheBaseElementComponent {
|
|
|
10018
10044
|
var _a;
|
|
10019
10045
|
return ((_a = this.element) === null || _a === void 0 ? void 0 : _a.indent) || null;
|
|
10020
10046
|
}
|
|
10021
|
-
constructor(elementRef, cdr) {
|
|
10022
|
-
super(elementRef, cdr);
|
|
10023
|
-
this.elementRef = elementRef;
|
|
10024
|
-
this.cdr = cdr;
|
|
10025
|
-
}
|
|
10026
10047
|
ngOnInit() {
|
|
10027
10048
|
super.ngOnInit();
|
|
10028
10049
|
}
|
|
@@ -10030,9 +10051,9 @@ class TheNumberedListComponent extends TheBaseElementComponent {
|
|
|
10030
10051
|
super.ngOnDestroy();
|
|
10031
10052
|
}
|
|
10032
10053
|
}
|
|
10033
|
-
TheNumberedListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10034
|
-
TheNumberedListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10054
|
+
TheNumberedListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheNumberedListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10055
|
+
TheNumberedListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheNumberedListComponent, selector: "ol[theOl]", host: { properties: { "attr.start": "this.start", "attr.the-level": "this.level" } }, usesInheritance: true, ngImport: i0, template: `<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
10056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheNumberedListComponent, decorators: [{
|
|
10036
10057
|
type: Component,
|
|
10037
10058
|
args: [{
|
|
10038
10059
|
selector: 'ol[theOl]',
|
|
@@ -10047,25 +10068,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
10047
10068
|
}] } });
|
|
10048
10069
|
|
|
10049
10070
|
class TheBulletedListComponent extends TheBaseElementComponent {
|
|
10050
|
-
get level() {
|
|
10051
|
-
var _a;
|
|
10052
|
-
return ((_a = this.element) === null || _a === void 0 ? void 0 : _a.indent) || null;
|
|
10053
|
-
}
|
|
10054
10071
|
constructor(elementRef, cdr) {
|
|
10055
10072
|
super(elementRef, cdr);
|
|
10056
10073
|
this.elementRef = elementRef;
|
|
10057
10074
|
this.cdr = cdr;
|
|
10058
10075
|
}
|
|
10059
|
-
|
|
10076
|
+
get level() {
|
|
10077
|
+
var _a;
|
|
10078
|
+
return ((_a = this.element) === null || _a === void 0 ? void 0 : _a.indent) || null;
|
|
10079
|
+
}
|
|
10080
|
+
ngOnInit() {
|
|
10060
10081
|
super.ngOnInit();
|
|
10061
10082
|
}
|
|
10062
10083
|
ngOnDestroy() {
|
|
10063
10084
|
super.ngOnDestroy();
|
|
10064
10085
|
}
|
|
10065
10086
|
}
|
|
10066
|
-
TheBulletedListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10067
|
-
TheBulletedListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10087
|
+
TheBulletedListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBulletedListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10088
|
+
TheBulletedListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheBulletedListComponent, selector: "ul[theUl]", host: { properties: { "attr.the-level": "this.level" } }, usesInheritance: true, ngImport: i0, template: `<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
10089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheBulletedListComponent, decorators: [{
|
|
10069
10090
|
type: Component,
|
|
10070
10091
|
args: [{
|
|
10071
10092
|
selector: 'ul[theUl]',
|
|
@@ -10153,9 +10174,9 @@ class TheListItemComponent extends TheBaseElementComponent {
|
|
|
10153
10174
|
}
|
|
10154
10175
|
}
|
|
10155
10176
|
}
|
|
10156
|
-
TheListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10157
|
-
TheListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10177
|
+
TheListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10178
|
+
TheListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheListItemComponent, selector: "li[theLi]", usesInheritance: true, ngImport: i0, template: `<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
10179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheListItemComponent, decorators: [{
|
|
10159
10180
|
type: Component,
|
|
10160
10181
|
args: [{
|
|
10161
10182
|
selector: 'li[theLi]',
|
|
@@ -10907,6 +10928,13 @@ const SLA_TABLE_SELECTOR = '.slate-element-table';
|
|
|
10907
10928
|
const SLA_TABLE_CELL_SELECTOR = '.slate-element-table-cell';
|
|
10908
10929
|
|
|
10909
10930
|
class TheToolbarGroupComponent {
|
|
10931
|
+
constructor(elementRef, thyPopover, viewContainerRef) {
|
|
10932
|
+
this.elementRef = elementRef;
|
|
10933
|
+
this.thyPopover = thyPopover;
|
|
10934
|
+
this.viewContainerRef = viewContainerRef;
|
|
10935
|
+
this.className = 'the-toolbar-group';
|
|
10936
|
+
this.active = false;
|
|
10937
|
+
}
|
|
10910
10938
|
set item(i) {
|
|
10911
10939
|
this._item = i;
|
|
10912
10940
|
this.activeMenuItem = i;
|
|
@@ -10931,13 +10959,6 @@ class TheToolbarGroupComponent {
|
|
|
10931
10959
|
clickHandle(event) {
|
|
10932
10960
|
event.stopPropagation();
|
|
10933
10961
|
}
|
|
10934
|
-
constructor(elementRef, thyPopover, viewContainerRef) {
|
|
10935
|
-
this.elementRef = elementRef;
|
|
10936
|
-
this.thyPopover = thyPopover;
|
|
10937
|
-
this.viewContainerRef = viewContainerRef;
|
|
10938
|
-
this.className = 'the-toolbar-group';
|
|
10939
|
-
this.active = false;
|
|
10940
|
-
}
|
|
10941
10962
|
ngOnInit() { }
|
|
10942
10963
|
ngOnDestroy() {
|
|
10943
10964
|
this.closeGroup();
|
|
@@ -10998,9 +11019,9 @@ class TheToolbarGroupComponent {
|
|
|
10998
11019
|
}
|
|
10999
11020
|
}
|
|
11000
11021
|
}
|
|
11001
|
-
TheToolbarGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11002
|
-
TheToolbarGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
11003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11022
|
+
TheToolbarGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarGroupComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.ThyPopover }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11023
|
+
TheToolbarGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheToolbarGroupComponent, selector: "the-toolbar-group", inputs: { menus: "menus", item: "item" }, host: { listeners: { "mousedown": "mousedownHandler($event)", "document:mouseup": "documentMouseupHandle($event)", "click": "clickHandle($event)" }, properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "groupTemplate", first: true, predicate: ["groupTemplate"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<a\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyActionActive]=\"active\"\n [thyTooltip]=\"item?.name\"\n thyTooltipPlacement=\"top\"\n></a>\n\n<ng-template #groupTemplate>\n <the-toolbar class=\"group\" [editor]=\"editor\" [toolbarItems]=\"menus\" [isMore]=\"false\"></the-toolbar>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }] });
|
|
11024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarGroupComponent, decorators: [{
|
|
11004
11025
|
type: Component,
|
|
11005
11026
|
args: [{ selector: 'the-toolbar-group', template: "<a\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyActionActive]=\"active\"\n [thyTooltip]=\"item?.name\"\n thyTooltipPlacement=\"top\"\n></a>\n\n<ng-template #groupTemplate>\n <the-toolbar class=\"group\" [editor]=\"editor\" [toolbarItems]=\"menus\" [isMore]=\"false\"></the-toolbar>\n</ng-template>\n" }]
|
|
11006
11027
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.ThyPopover }, { type: i0.ViewContainerRef }]; }, propDecorators: { className: [{
|
|
@@ -11046,9 +11067,9 @@ class ColumnResizeNotifierSource {
|
|
|
11046
11067
|
this.triggerResize = new Subject();
|
|
11047
11068
|
}
|
|
11048
11069
|
}
|
|
11049
|
-
ColumnResizeNotifierSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11050
|
-
ColumnResizeNotifierSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11070
|
+
ColumnResizeNotifierSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ColumnResizeNotifierSource, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11071
|
+
ColumnResizeNotifierSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ColumnResizeNotifierSource });
|
|
11072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ColumnResizeNotifierSource, decorators: [{
|
|
11052
11073
|
type: Injectable
|
|
11053
11074
|
}] });
|
|
11054
11075
|
|
|
@@ -11098,9 +11119,9 @@ class TableCellEventDispatcher {
|
|
|
11098
11119
|
}));
|
|
11099
11120
|
}
|
|
11100
11121
|
}
|
|
11101
|
-
TableCellEventDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11102
|
-
TableCellEventDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11122
|
+
TableCellEventDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableCellEventDispatcher, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11123
|
+
TableCellEventDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableCellEventDispatcher });
|
|
11124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableCellEventDispatcher, decorators: [{
|
|
11104
11125
|
type: Injectable
|
|
11105
11126
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
11106
11127
|
|
|
@@ -11273,6 +11294,12 @@ function setCellMenuVisibility(editor, menuList, tableInfo) {
|
|
|
11273
11294
|
}
|
|
11274
11295
|
|
|
11275
11296
|
class TheContextMenuComponent {
|
|
11297
|
+
constructor(elementRef, thyPopoverRef) {
|
|
11298
|
+
this.elementRef = elementRef;
|
|
11299
|
+
this.thyPopoverRef = thyPopoverRef;
|
|
11300
|
+
this.menuEntities = [];
|
|
11301
|
+
this.wrap = true;
|
|
11302
|
+
}
|
|
11276
11303
|
handleDocumentMouseDown(event) {
|
|
11277
11304
|
if (!this.elementRef.nativeElement.contains(event.target) && event.button !== 2) {
|
|
11278
11305
|
this.thyPopoverRef.close();
|
|
@@ -11304,17 +11331,11 @@ class TheContextMenuComponent {
|
|
|
11304
11331
|
this.actionHandle(entity);
|
|
11305
11332
|
this.thyPopoverRef.close();
|
|
11306
11333
|
}
|
|
11307
|
-
constructor(elementRef, thyPopoverRef) {
|
|
11308
|
-
this.elementRef = elementRef;
|
|
11309
|
-
this.thyPopoverRef = thyPopoverRef;
|
|
11310
|
-
this.menuEntities = [];
|
|
11311
|
-
this.wrap = true;
|
|
11312
|
-
}
|
|
11313
11334
|
ngOnInit() { }
|
|
11314
11335
|
}
|
|
11315
|
-
TheContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11316
|
-
TheContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
11317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11336
|
+
TheContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheContextMenuComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11337
|
+
TheContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheContextMenuComponent, selector: "the-contextmenu", inputs: { menuEntities: "menuEntities", actionHandle: "actionHandle", activeHandle: "activeHandle", deactivateHandle: "deactivateHandle" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)", "mousedown": "handleMouseDown($event)" }, properties: { "class.the-overlay-menu-wrap": "this.wrap" } }, ngImport: i0, template: "<div class=\"thy-dropdown-menu\">\n <ng-container *ngFor=\"let menuItem of menuEntities\">\n <ng-container *ngIf=\"menuItem.visibility && !menuItem?.isInputNumber\">\n <ng-template [ngTemplateOutlet]=\"defaultMenuTemplate\" [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"menuItem.visibility && menuItem?.isInputNumber\">\n <ng-template [ngTemplateOutlet]=\"inputNumberMenuTemplate\" [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"></ng-template>\n </ng-container>\n <thy-dropdown-menu-divider *ngIf=\"menuItem.divider && menuItem.visibility\"></thy-dropdown-menu-divider>\n </ng-container>\n</div>\n\n<ng-template #defaultMenuTemplate let-item>\n <a\n href=\"javascript:;\"\n thyDropdownMenuItem\n (mousedown)=\"itemMousedown($event, item)\"\n (mouseenter)=\"itemMouseenter($event, item)\"\n (mouseleave)=\"itemMouseleave($event, item)\"\n >\n <span thyDropdownMenuItemIcon>\n <thy-icon\n *ngIf=\"item?.backgroundColor; else elseIcon\"\n [thyIconName]=\"item.icon\"\n thyIconType=\"twotone\"\n [thyTwotoneColor]=\"item.backgroundColor\"\n ></thy-icon>\n <ng-template #elseIcon>\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n </ng-template>\n </span>\n <span thyDropdownMenuItemName>{{ item.name }}</span>\n <span *ngIf=\"item.extendIcon\" thyDropdownMenuItemExtendIcon>\n <thy-icon thyIconName=\"{{ item.extendIcon }}\"></thy-icon>\n </span>\n </a>\n</ng-template>\n\n<ng-template #inputNumberMenuTemplate let-item>\n <a href=\"javascript:;\" class=\"the-input-number-menu\" thyDropdownMenuItem (click)=\"itemMousedown($event, item)\">\n <span thyDropdownMenuItemIcon>\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n </span>\n <span thyDropdownMenuItemName class=\"d-flex align-items-center\">\n {{ item.name }}\n <thy-input-number\n #inputNumber\n class=\"mx-2\"\n thySize=\"sm\"\n [(ngModel)]=\"item.count\"\n [thyStep]=\"1\"\n [thyMin]=\"1\"\n (click)=\"inputNumberFocus($event)\"\n (thyEnter)=\"itemEnterHandle($event, item)\"\n thyStopPropagation\n ></thy-input-number>\n {{ item.nameSuffix }}\n </span>\n </a>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i5$1.ThyEnterDirective, selector: "[thyEnter]", outputs: ["thyEnter"] }, { kind: "directive", type: i5$1.ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "component", type: i6.ThyDropdownMenuDividerComponent, selector: "thy-dropdown-menu-divider" }, { kind: "directive", type: i6.ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: i6.ThyDropdownMenuItemNameDirective, selector: "[thyDropdownMenuItemName]" }, { kind: "directive", type: i6.ThyDropdownMenuItemIconDirective, selector: "[thyDropdownMenuItemIcon]" }, { kind: "directive", type: i6.ThyDropdownMenuItemExtendIconDirective, selector: "[thyDropdownMenuItemExtendIcon]" }, { kind: "component", type: i7$1.ThyInputNumberComponent, selector: "thy-input-number", inputs: ["thyAutoFocus", "thyPlaceholder", "thyDisabled", "thyMax", "thyMin", "thyStep", "thySize", "thyPrecision", "thySuffix"], outputs: ["thyBlur", "thyFocus"] }] });
|
|
11338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheContextMenuComponent, decorators: [{
|
|
11318
11339
|
type: Component,
|
|
11319
11340
|
args: [{ selector: 'the-contextmenu', template: "<div class=\"thy-dropdown-menu\">\n <ng-container *ngFor=\"let menuItem of menuEntities\">\n <ng-container *ngIf=\"menuItem.visibility && !menuItem?.isInputNumber\">\n <ng-template [ngTemplateOutlet]=\"defaultMenuTemplate\" [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"menuItem.visibility && menuItem?.isInputNumber\">\n <ng-template [ngTemplateOutlet]=\"inputNumberMenuTemplate\" [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"></ng-template>\n </ng-container>\n <thy-dropdown-menu-divider *ngIf=\"menuItem.divider && menuItem.visibility\"></thy-dropdown-menu-divider>\n </ng-container>\n</div>\n\n<ng-template #defaultMenuTemplate let-item>\n <a\n href=\"javascript:;\"\n thyDropdownMenuItem\n (mousedown)=\"itemMousedown($event, item)\"\n (mouseenter)=\"itemMouseenter($event, item)\"\n (mouseleave)=\"itemMouseleave($event, item)\"\n >\n <span thyDropdownMenuItemIcon>\n <thy-icon\n *ngIf=\"item?.backgroundColor; else elseIcon\"\n [thyIconName]=\"item.icon\"\n thyIconType=\"twotone\"\n [thyTwotoneColor]=\"item.backgroundColor\"\n ></thy-icon>\n <ng-template #elseIcon>\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n </ng-template>\n </span>\n <span thyDropdownMenuItemName>{{ item.name }}</span>\n <span *ngIf=\"item.extendIcon\" thyDropdownMenuItemExtendIcon>\n <thy-icon thyIconName=\"{{ item.extendIcon }}\"></thy-icon>\n </span>\n </a>\n</ng-template>\n\n<ng-template #inputNumberMenuTemplate let-item>\n <a href=\"javascript:;\" class=\"the-input-number-menu\" thyDropdownMenuItem (click)=\"itemMousedown($event, item)\">\n <span thyDropdownMenuItemIcon>\n <thy-icon [thyIconName]=\"item.icon\"></thy-icon>\n </span>\n <span thyDropdownMenuItemName class=\"d-flex align-items-center\">\n {{ item.name }}\n <thy-input-number\n #inputNumber\n class=\"mx-2\"\n thySize=\"sm\"\n [(ngModel)]=\"item.count\"\n [thyStep]=\"1\"\n [thyMin]=\"1\"\n (click)=\"inputNumberFocus($event)\"\n (thyEnter)=\"itemEnterHandle($event, item)\"\n thyStopPropagation\n ></thy-input-number>\n {{ item.nameSuffix }}\n </span>\n </a>\n</ng-template>\n" }]
|
|
11320
11341
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.ThyPopoverRef }]; }, propDecorators: { menuEntities: [{
|
|
@@ -11337,12 +11358,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
11337
11358
|
}] } });
|
|
11338
11359
|
|
|
11339
11360
|
class TableStore {
|
|
11340
|
-
get selectedCellPositions() {
|
|
11341
|
-
return this.getSelectedCellPositions();
|
|
11342
|
-
}
|
|
11343
|
-
get dangerousCells() {
|
|
11344
|
-
return this.dangerousCells$.getValue();
|
|
11345
|
-
}
|
|
11346
11361
|
constructor() {
|
|
11347
11362
|
this.selectedCells$ = new BehaviorSubject([]);
|
|
11348
11363
|
this.dangerousCells$ = new BehaviorSubject([]);
|
|
@@ -11366,6 +11381,12 @@ class TableStore {
|
|
|
11366
11381
|
return TablePosition.create(opts, this.editor, path);
|
|
11367
11382
|
};
|
|
11368
11383
|
}
|
|
11384
|
+
get selectedCellPositions() {
|
|
11385
|
+
return this.getSelectedCellPositions();
|
|
11386
|
+
}
|
|
11387
|
+
get dangerousCells() {
|
|
11388
|
+
return this.dangerousCells$.getValue();
|
|
11389
|
+
}
|
|
11369
11390
|
getTableEntry() {
|
|
11370
11391
|
const { tableEntry } = this.createTablePosition();
|
|
11371
11392
|
return tableEntry;
|
|
@@ -11825,22 +11846,13 @@ class TableStore {
|
|
|
11825
11846
|
}
|
|
11826
11847
|
}
|
|
11827
11848
|
}
|
|
11828
|
-
TableStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11829
|
-
TableStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11849
|
+
TableStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11850
|
+
TableStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableStore });
|
|
11851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableStore, decorators: [{
|
|
11831
11852
|
type: Injectable
|
|
11832
11853
|
}], ctorParameters: function () { return []; } });
|
|
11833
11854
|
|
|
11834
11855
|
class TheTableContextMenuService {
|
|
11835
|
-
get isOpened() {
|
|
11836
|
-
return this.menuRef && this.menuRef.componentInstance;
|
|
11837
|
-
}
|
|
11838
|
-
get editor() {
|
|
11839
|
-
return this.tableStore && this.tableStore.editor;
|
|
11840
|
-
}
|
|
11841
|
-
get backgroundColor() {
|
|
11842
|
-
return this.tableStore.getSelectedCellBackgroundColor();
|
|
11843
|
-
}
|
|
11844
11856
|
constructor(colorSelectService, tableStore, thyPopover, ngZone, theContextService) {
|
|
11845
11857
|
this.colorSelectService = colorSelectService;
|
|
11846
11858
|
this.tableStore = tableStore;
|
|
@@ -12014,6 +12026,15 @@ class TheTableContextMenuService {
|
|
|
12014
12026
|
}
|
|
12015
12027
|
];
|
|
12016
12028
|
}
|
|
12029
|
+
get isOpened() {
|
|
12030
|
+
return this.menuRef && this.menuRef.componentInstance;
|
|
12031
|
+
}
|
|
12032
|
+
get editor() {
|
|
12033
|
+
return this.tableStore && this.tableStore.editor;
|
|
12034
|
+
}
|
|
12035
|
+
get backgroundColor() {
|
|
12036
|
+
return this.tableStore.getSelectedCellBackgroundColor();
|
|
12037
|
+
}
|
|
12017
12038
|
getSelectedCell() {
|
|
12018
12039
|
const selectedCellPositions = this.tableStore.selectedCellPositions;
|
|
12019
12040
|
const selectCellNodes = getSelectCellNode(this.editor, selectedCellPositions);
|
|
@@ -12100,16 +12121,13 @@ class TheTableContextMenuService {
|
|
|
12100
12121
|
}
|
|
12101
12122
|
}
|
|
12102
12123
|
}
|
|
12103
|
-
TheTableContextMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12104
|
-
TheTableContextMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12124
|
+
TheTableContextMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableContextMenuService, deps: [{ token: TheColorSelectService }, { token: TableStore }, { token: i1$1.ThyPopover }, { token: i0.NgZone }, { token: TheContextService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12125
|
+
TheTableContextMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableContextMenuService });
|
|
12126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableContextMenuService, decorators: [{
|
|
12106
12127
|
type: Injectable
|
|
12107
12128
|
}], ctorParameters: function () { return [{ type: TheColorSelectService }, { type: TableStore }, { type: i1$1.ThyPopover }, { type: i0.NgZone }, { type: TheContextService }]; } });
|
|
12108
12129
|
|
|
12109
12130
|
class TheTableOptionsComponent {
|
|
12110
|
-
get table() {
|
|
12111
|
-
return this.tableStore && this.tableStore.getTableEntry()[0];
|
|
12112
|
-
}
|
|
12113
12131
|
constructor(popoverRef) {
|
|
12114
12132
|
this.popoverRef = popoverRef;
|
|
12115
12133
|
this.tableDropdownList = [
|
|
@@ -12127,6 +12145,9 @@ class TheTableOptionsComponent {
|
|
|
12127
12145
|
}
|
|
12128
12146
|
];
|
|
12129
12147
|
}
|
|
12148
|
+
get table() {
|
|
12149
|
+
return this.tableStore && this.tableStore.getTableEntry()[0];
|
|
12150
|
+
}
|
|
12130
12151
|
ngOnInit() {
|
|
12131
12152
|
this.setColumnOptions();
|
|
12132
12153
|
}
|
|
@@ -12156,8 +12177,8 @@ class TheTableOptionsComponent {
|
|
|
12156
12177
|
}
|
|
12157
12178
|
}
|
|
12158
12179
|
}
|
|
12159
|
-
TheTableOptionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12160
|
-
TheTableOptionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
12180
|
+
TheTableOptionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableOptionsComponent, deps: [{ token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12181
|
+
TheTableOptionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTableOptionsComponent, selector: "the-table-options", inputs: { tableStore: "tableStore", editor: "editor" }, ngImport: i0, template: `
|
|
12161
12182
|
<div class="thy-dropdown-menu table-drop-menu">
|
|
12162
12183
|
<ng-container *ngFor="let option of tableDropdownList">
|
|
12163
12184
|
<a thyDropdownMenuItem href="javascript:;" (mousedown)="setTableOptions($event, option)">
|
|
@@ -12169,7 +12190,7 @@ TheTableOptionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
12169
12190
|
</ng-container>
|
|
12170
12191
|
</div>
|
|
12171
12192
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i6.ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: i6.ThyDropdownMenuItemNameDirective, selector: "[thyDropdownMenuItemName]" }, { kind: "directive", type: i6.ThyDropdownMenuItemIconDirective, selector: "[thyDropdownMenuItemIcon]" }] });
|
|
12172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableOptionsComponent, decorators: [{
|
|
12173
12194
|
type: Component,
|
|
12174
12195
|
args: [{
|
|
12175
12196
|
selector: 'the-table-options',
|
|
@@ -12193,15 +12214,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
12193
12214
|
}] } });
|
|
12194
12215
|
|
|
12195
12216
|
class TheTableToolbarComponent {
|
|
12196
|
-
get editor() {
|
|
12197
|
-
return this.tableStore && this.tableStore.editor;
|
|
12198
|
-
}
|
|
12199
|
-
get hasDivider() {
|
|
12200
|
-
return this.cellMenuList.filter(item => item.visibility).length > 1;
|
|
12201
|
-
}
|
|
12202
|
-
get tableOptions() {
|
|
12203
|
-
return getPluginOptions(this.editor, PluginKeys.table);
|
|
12204
|
-
}
|
|
12205
12217
|
constructor(ngZone, colorSelectService, thyPopover, popoverRef, thyNotifyService) {
|
|
12206
12218
|
this.ngZone = ngZone;
|
|
12207
12219
|
this.colorSelectService = colorSelectService;
|
|
@@ -12237,6 +12249,15 @@ class TheTableToolbarComponent {
|
|
|
12237
12249
|
}
|
|
12238
12250
|
];
|
|
12239
12251
|
}
|
|
12252
|
+
get editor() {
|
|
12253
|
+
return this.tableStore && this.tableStore.editor;
|
|
12254
|
+
}
|
|
12255
|
+
get hasDivider() {
|
|
12256
|
+
return this.cellMenuList.filter(item => item.visibility).length > 1;
|
|
12257
|
+
}
|
|
12258
|
+
get tableOptions() {
|
|
12259
|
+
return getPluginOptions(this.editor, PluginKeys.table);
|
|
12260
|
+
}
|
|
12240
12261
|
ngOnInit() {
|
|
12241
12262
|
var _a, _b, _c;
|
|
12242
12263
|
this.isColumnEqual = (_c = (_b = (_a = this.tableElement) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.every(col => this.tableElement.columns[0].width === col.width)) !== null && _c !== void 0 ? _c : true;
|
|
@@ -12357,9 +12378,9 @@ class TheTableToolbarComponent {
|
|
|
12357
12378
|
});
|
|
12358
12379
|
}
|
|
12359
12380
|
}
|
|
12360
|
-
TheTableToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12361
|
-
TheTableToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
12362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12381
|
+
TheTableToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableToolbarComponent, deps: [{ token: i0.NgZone }, { token: TheColorSelectService }, { token: i1$1.ThyPopover }, { token: i1$1.ThyPopoverRef }, { token: i1$2.ThyNotifyService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12382
|
+
TheTableToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTableToolbarComponent, selector: "the-table-toolbar", inputs: { tableStore: "tableStore", tableElement: "tableElement" }, ngImport: i0, template: "<thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a\n *ngIf=\"item.visibility\"\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n (mousedown)=\"item.actionHandle()\"\n ></a>\n </ng-container>\n <thy-divider *ngIf=\"hasDivider\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"> </thy-divider>\n <a href=\"javascript:;\" thyAction thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && !isColumnEqual\"\n thyAction\n thyTooltip=\"\u5217\u7B49\u5BBD\"\n (mousedown)=\"setEquallyColumnHandle($event)\"\n >\n <thy-icon thyIconName=\"table-column-equal-width\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && tableOptions?.showFullscreen\"\n thyAction\n thyTooltip=\"\u5168\u5C4F\"\n (mousedown)=\"setFullscreen($event)\"\n >\n <thy-icon thyIconName=\"arrows-alt\"></thy-icon>\n </a>\n <a\n *ngIf=\"tableStore.isSelectedTable && !tableStore?.isFullscreen\"\n class=\"fullscreen-hidden\"\n href=\"javascript:;\"\n thyAction\n thyActionIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <ng-container *ngIf=\"tableStore.isSelectedTable\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" class=\"link-with-down\" thyAction (mousedown)=\"mousedown($event)\" (click)=\"openTableOptionMenu($event)\">\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n </ng-container>\n <ng-container *ngIf=\"tableStore?.isFullscreen ? deleteIcon && !tableStore.isSelectedTable : deleteIcon\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a\n href=\"javascript:;\"\n thyAction\n thyType=\"danger\"\n [thyActionIcon]=\"deleteIcon\"\n [thyTooltip]=\"iconName\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n </ng-container>\n</thy-actions>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i7.ThyActionsComponent, selector: "thy-actions", inputs: ["thySize"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }] });
|
|
12383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableToolbarComponent, decorators: [{
|
|
12363
12384
|
type: Component,
|
|
12364
12385
|
args: [{ selector: 'the-table-toolbar', template: "<thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a\n *ngIf=\"item.visibility\"\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n (mousedown)=\"item.actionHandle()\"\n ></a>\n </ng-container>\n <thy-divider *ngIf=\"hasDivider\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"> </thy-divider>\n <a href=\"javascript:;\" thyAction thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && !isColumnEqual\"\n thyAction\n thyTooltip=\"\u5217\u7B49\u5BBD\"\n (mousedown)=\"setEquallyColumnHandle($event)\"\n >\n <thy-icon thyIconName=\"table-column-equal-width\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && tableOptions?.showFullscreen\"\n thyAction\n thyTooltip=\"\u5168\u5C4F\"\n (mousedown)=\"setFullscreen($event)\"\n >\n <thy-icon thyIconName=\"arrows-alt\"></thy-icon>\n </a>\n <a\n *ngIf=\"tableStore.isSelectedTable && !tableStore?.isFullscreen\"\n class=\"fullscreen-hidden\"\n href=\"javascript:;\"\n thyAction\n thyActionIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <ng-container *ngIf=\"tableStore.isSelectedTable\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" class=\"link-with-down\" thyAction (mousedown)=\"mousedown($event)\" (click)=\"openTableOptionMenu($event)\">\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n </ng-container>\n <ng-container *ngIf=\"tableStore?.isFullscreen ? deleteIcon && !tableStore.isSelectedTable : deleteIcon\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a\n href=\"javascript:;\"\n thyAction\n thyType=\"danger\"\n [thyActionIcon]=\"deleteIcon\"\n [thyTooltip]=\"iconName\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n </ng-container>\n</thy-actions>\n" }]
|
|
12365
12386
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: TheColorSelectService }, { type: i1$1.ThyPopover }, { type: i1$1.ThyPopoverRef }, { type: i1$2.ThyNotifyService }]; }, propDecorators: { tableStore: [{
|
|
@@ -12375,9 +12396,6 @@ var DeleteIcon;
|
|
|
12375
12396
|
})(DeleteIcon || (DeleteIcon = {}));
|
|
12376
12397
|
|
|
12377
12398
|
class TableService {
|
|
12378
|
-
get isOpened() {
|
|
12379
|
-
return this.toolbarRef && this.toolbarRef.componentInstance;
|
|
12380
|
-
}
|
|
12381
12399
|
constructor(thyPopover, overlay, tableStore, theTableContextMenuService, ngZone, theContextService) {
|
|
12382
12400
|
this.thyPopover = thyPopover;
|
|
12383
12401
|
this.overlay = overlay;
|
|
@@ -12391,6 +12409,9 @@ class TableService {
|
|
|
12391
12409
|
this.placement = 'topLeft';
|
|
12392
12410
|
this.offset = 8;
|
|
12393
12411
|
}
|
|
12412
|
+
get isOpened() {
|
|
12413
|
+
return this.toolbarRef && this.toolbarRef.componentInstance;
|
|
12414
|
+
}
|
|
12394
12415
|
openToolbar(origin, tableElement) {
|
|
12395
12416
|
if (this.isOpened) {
|
|
12396
12417
|
if (this.toolbarRef.containerInstance.config.origin === origin) {
|
|
@@ -12446,9 +12467,9 @@ class TableService {
|
|
|
12446
12467
|
}
|
|
12447
12468
|
}
|
|
12448
12469
|
}
|
|
12449
|
-
TableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12450
|
-
TableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12470
|
+
TableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableService, deps: [{ token: i1$1.ThyPopover }, { token: i2$1.Overlay }, { token: TableStore }, { token: TheTableContextMenuService }, { token: i0.NgZone }, { token: TheContextService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12471
|
+
TableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableService });
|
|
12472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableService, decorators: [{
|
|
12452
12473
|
type: Injectable
|
|
12453
12474
|
}], ctorParameters: function () { return [{ type: i1$1.ThyPopover }, { type: i2$1.Overlay }, { type: TableStore }, { type: TheTableContextMenuService }, { type: i0.NgZone }, { type: TheContextService }]; } });
|
|
12454
12475
|
|
|
@@ -12466,16 +12487,27 @@ function isVirtualKey(e) {
|
|
|
12466
12487
|
|
|
12467
12488
|
class TableFreezeColumnPipe {
|
|
12468
12489
|
transform(table, tablePluginOptions) {
|
|
12469
|
-
var _a, _b;
|
|
12490
|
+
var _a, _b, _c;
|
|
12470
12491
|
const rows = (_a = table.children) === null || _a === void 0 ? void 0 : _a.map(item => item.children);
|
|
12492
|
+
const headerColumnWidth = table.columns && table.columns[0].width;
|
|
12493
|
+
const tableComponent = ELEMENT_TO_COMPONENT.get(table);
|
|
12494
|
+
let stickyColumn = true;
|
|
12495
|
+
let buffer = TABLE_CONTROL;
|
|
12496
|
+
if ((_b = table.options) === null || _b === void 0 ? void 0 : _b.numberedColumn) {
|
|
12497
|
+
buffer = TABLE_NUMBER_COLUMN + TABLE_CONTROL;
|
|
12498
|
+
}
|
|
12499
|
+
if (tableComponent) {
|
|
12500
|
+
const tableWidth = getElementWidth(tableComponent.elementRef.nativeElement);
|
|
12501
|
+
stickyColumn = headerColumnWidth + buffer < tableWidth;
|
|
12502
|
+
}
|
|
12471
12503
|
// 标题列存在合并的列时,取消冻结
|
|
12472
12504
|
const mergeColumnCells = rows && rows.map(cells => cells[0]).filter(item => item.colspan && item.colspan !== 1);
|
|
12473
|
-
return !!((tablePluginOptions === null || tablePluginOptions === void 0 ? void 0 : tablePluginOptions.freezeColumnHeader) && ((
|
|
12505
|
+
return !!((tablePluginOptions === null || tablePluginOptions === void 0 ? void 0 : tablePluginOptions.freezeColumnHeader) && ((_c = table.options) === null || _c === void 0 ? void 0 : _c.headerColumn) && !mergeColumnCells.length && stickyColumn);
|
|
12474
12506
|
}
|
|
12475
12507
|
}
|
|
12476
|
-
TableFreezeColumnPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12477
|
-
TableFreezeColumnPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12508
|
+
TableFreezeColumnPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableFreezeColumnPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
12509
|
+
TableFreezeColumnPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: TableFreezeColumnPipe, name: "freezeColumn" });
|
|
12510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableFreezeColumnPipe, decorators: [{
|
|
12479
12511
|
type: Pipe,
|
|
12480
12512
|
args: [{ name: 'freezeColumn' }]
|
|
12481
12513
|
}] });
|
|
@@ -12490,13 +12522,53 @@ class TableFreezeRowPipe {
|
|
|
12490
12522
|
return false;
|
|
12491
12523
|
}
|
|
12492
12524
|
}
|
|
12493
|
-
TableFreezeRowPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12494
|
-
TableFreezeRowPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12525
|
+
TableFreezeRowPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableFreezeRowPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
12526
|
+
TableFreezeRowPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: TableFreezeRowPipe, name: "freezeRow" });
|
|
12527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TableFreezeRowPipe, decorators: [{
|
|
12496
12528
|
type: Pipe,
|
|
12497
12529
|
args: [{ name: 'freezeRow' }]
|
|
12498
12530
|
}] });
|
|
12499
12531
|
|
|
12532
|
+
/**
|
|
12533
|
+
* 设置标题行网格列
|
|
12534
|
+
* @param editor
|
|
12535
|
+
* @param headerRow 标题行
|
|
12536
|
+
* @param cellRow
|
|
12537
|
+
* @returns string
|
|
12538
|
+
*/
|
|
12539
|
+
const getGridColumns = (headerRow, cellsWidth) => {
|
|
12540
|
+
let result = '';
|
|
12541
|
+
headerRow.childNodes.forEach((node, i) => {
|
|
12542
|
+
var _a;
|
|
12543
|
+
const col = node.getAttribute('colspan');
|
|
12544
|
+
const display = node.style.display;
|
|
12545
|
+
if (display === 'none') {
|
|
12546
|
+
return;
|
|
12547
|
+
}
|
|
12548
|
+
if (col) {
|
|
12549
|
+
const colSpan = (_a = Number(col)) !== null && _a !== void 0 ? _a : 1;
|
|
12550
|
+
let width = 0;
|
|
12551
|
+
Array.from({ length: colSpan }, (_, j) => {
|
|
12552
|
+
width += cellsWidth[i + j];
|
|
12553
|
+
});
|
|
12554
|
+
result += width + 'px ';
|
|
12555
|
+
}
|
|
12556
|
+
else {
|
|
12557
|
+
result += cellsWidth[i] + 'px ';
|
|
12558
|
+
}
|
|
12559
|
+
});
|
|
12560
|
+
return result;
|
|
12561
|
+
};
|
|
12562
|
+
const getColumnsWidth = (cellRow) => {
|
|
12563
|
+
const result = [];
|
|
12564
|
+
cellRow.childNodes.forEach((item) => {
|
|
12565
|
+
if (item.getBoundingClientRect) {
|
|
12566
|
+
result.push(item.getBoundingClientRect().width);
|
|
12567
|
+
}
|
|
12568
|
+
});
|
|
12569
|
+
return result;
|
|
12570
|
+
};
|
|
12571
|
+
|
|
12500
12572
|
const TABLE_SELECTOR = '.the-table';
|
|
12501
12573
|
const TABLE_WRAPPER_SELECTOR = '.the-table-wrapper';
|
|
12502
12574
|
const RESIZE_OVERLAY_SELECTOR = '.the-table-resize-overlay-thumb';
|
|
@@ -12579,9 +12651,9 @@ class TheColumnResizeDirective {
|
|
|
12579
12651
|
this.destroyed.complete();
|
|
12580
12652
|
}
|
|
12581
12653
|
}
|
|
12582
|
-
TheColumnResizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12583
|
-
TheColumnResizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
12584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12654
|
+
TheColumnResizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: TableCellEventDispatcher }, { token: ColumnResizeNotifierSource }, { token: THE_TABLE_COMPONENT_TOKEN }], target: i0.ɵɵFactoryTarget.Directive });
|
|
12655
|
+
TheColumnResizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: TheColumnResizeDirective, selector: "div[theColumnResize]", ngImport: i0 });
|
|
12656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeDirective, decorators: [{
|
|
12585
12657
|
type: Directive,
|
|
12586
12658
|
args: [{
|
|
12587
12659
|
selector: 'div[theColumnResize]'
|
|
@@ -12594,17 +12666,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
12594
12666
|
} });
|
|
12595
12667
|
|
|
12596
12668
|
class TheInsertMarkComponent {
|
|
12669
|
+
constructor(cdr, renderer2) {
|
|
12670
|
+
this.cdr = cdr;
|
|
12671
|
+
this.renderer2 = renderer2;
|
|
12672
|
+
this.tooltipContent = '';
|
|
12673
|
+
}
|
|
12597
12674
|
get disabled() {
|
|
12598
12675
|
return this.tableStore && !!this.tableStore.selectedCellPositions.length;
|
|
12599
12676
|
}
|
|
12600
12677
|
get editor() {
|
|
12601
12678
|
return this.tableStore && this.tableStore.editor;
|
|
12602
12679
|
}
|
|
12603
|
-
constructor(cdr, renderer2) {
|
|
12604
|
-
this.cdr = cdr;
|
|
12605
|
-
this.renderer2 = renderer2;
|
|
12606
|
-
this.tooltipContent = '';
|
|
12607
|
-
}
|
|
12608
12680
|
ngOnInit() {
|
|
12609
12681
|
this.tooltipContent = this.type === 'row' ? '插入行' : '插入列';
|
|
12610
12682
|
}
|
|
@@ -12650,13 +12722,8 @@ class TheInsertMarkComponent {
|
|
|
12650
12722
|
const tableWrapper = tableComponent.tableWrapper.nativeElement;
|
|
12651
12723
|
const tableElement = tableComponent.theTableElement.nativeElement;
|
|
12652
12724
|
let result = 0;
|
|
12653
|
-
const rowControl = tableComponent.nativeElement.querySelector('.the-table-row-controls');
|
|
12654
|
-
let rowControlWidth = 11;
|
|
12655
|
-
if (rowControl) {
|
|
12656
|
-
rowControlWidth = rowControl.getBoundingClientRect().width;
|
|
12657
|
-
}
|
|
12658
12725
|
if (this.type === 'row') {
|
|
12659
|
-
result = tableWrapper.offsetWidth
|
|
12726
|
+
result = tableWrapper.offsetWidth;
|
|
12660
12727
|
}
|
|
12661
12728
|
else {
|
|
12662
12729
|
result = tableElement.offsetHeight - 1;
|
|
@@ -12665,9 +12732,9 @@ class TheInsertMarkComponent {
|
|
|
12665
12732
|
}
|
|
12666
12733
|
}
|
|
12667
12734
|
}
|
|
12668
|
-
TheInsertMarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12669
|
-
TheInsertMarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
12670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12735
|
+
TheInsertMarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheInsertMarkComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
12736
|
+
TheInsertMarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheInsertMarkComponent, selector: "the-table-insert-mark", inputs: { type: "type", at: "at", tableStore: "tableStore", parentElement: "parentElement" }, host: { classAttribute: "the-table-insert-mark" }, ngImport: i0, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (mousedown)=\"onMouseDown($event)\"\n (mouseenter)=\"onMouseEnter($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n <div\n class=\"the-table-controls-insert-line\"\n *ngIf=\"dotWrapperHovered\"\n [attr.data-dot-type]=\"type\"\n [ngStyle]=\"{ height: type === 'column' && insertLength, width: type === 'row' && insertLength }\"\n ></div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
12737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheInsertMarkComponent, decorators: [{
|
|
12671
12738
|
type: Component,
|
|
12672
12739
|
args: [{ selector: 'the-table-insert-mark', host: {
|
|
12673
12740
|
class: 'the-table-insert-mark'
|
|
@@ -12683,6 +12750,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
12683
12750
|
}] } });
|
|
12684
12751
|
|
|
12685
12752
|
class TheTableComponent extends TheBaseElementComponent {
|
|
12753
|
+
constructor(elementRef, eventDispatcher, resizeNotifier, tableStore, cdr, ngZone, tableService, theTableContextMenuService, freezeColumnPipe, freezeRowPipe, renderer, contextService) {
|
|
12754
|
+
super(elementRef, cdr);
|
|
12755
|
+
this.eventDispatcher = eventDispatcher;
|
|
12756
|
+
this.resizeNotifier = resizeNotifier;
|
|
12757
|
+
this.tableStore = tableStore;
|
|
12758
|
+
this.cdr = cdr;
|
|
12759
|
+
this.ngZone = ngZone;
|
|
12760
|
+
this.tableService = tableService;
|
|
12761
|
+
this.theTableContextMenuService = theTableContextMenuService;
|
|
12762
|
+
this.freezeColumnPipe = freezeColumnPipe;
|
|
12763
|
+
this.freezeRowPipe = freezeRowPipe;
|
|
12764
|
+
this.renderer = renderer;
|
|
12765
|
+
this.contextService = contextService;
|
|
12766
|
+
this.headerRow = false;
|
|
12767
|
+
this.isSelectedAllCell = false;
|
|
12768
|
+
this.destroy$ = new Subject();
|
|
12769
|
+
this.rowControls = [];
|
|
12770
|
+
this.colControls = [];
|
|
12771
|
+
}
|
|
12686
12772
|
get columns() {
|
|
12687
12773
|
return this.element && this.element.columns;
|
|
12688
12774
|
}
|
|
@@ -12712,68 +12798,14 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12712
12798
|
this.bindTableScrollingShadow();
|
|
12713
12799
|
this.useRowControls();
|
|
12714
12800
|
this.setHeaderCellStyle();
|
|
12801
|
+
this.setHeaderRowShadow();
|
|
12715
12802
|
this.cdr.markForCheck();
|
|
12716
12803
|
});
|
|
12717
12804
|
this.getIsInTable();
|
|
12718
12805
|
this.getColControls();
|
|
12719
|
-
this.setHeaderRowShadow();
|
|
12720
12806
|
}
|
|
12721
12807
|
this.headerRow = this.getHeaderRow();
|
|
12722
12808
|
}
|
|
12723
|
-
constructor(elementRef, eventDispatcher, resizeNotifier, tableStore, cdr, ngZone, tableService, theTableContextMenuService, freezeColumnPipe, freezeRowPipe, renderer, contextService) {
|
|
12724
|
-
super(elementRef, cdr);
|
|
12725
|
-
this.eventDispatcher = eventDispatcher;
|
|
12726
|
-
this.resizeNotifier = resizeNotifier;
|
|
12727
|
-
this.tableStore = tableStore;
|
|
12728
|
-
this.cdr = cdr;
|
|
12729
|
-
this.ngZone = ngZone;
|
|
12730
|
-
this.tableService = tableService;
|
|
12731
|
-
this.theTableContextMenuService = theTableContextMenuService;
|
|
12732
|
-
this.freezeColumnPipe = freezeColumnPipe;
|
|
12733
|
-
this.freezeRowPipe = freezeRowPipe;
|
|
12734
|
-
this.renderer = renderer;
|
|
12735
|
-
this.contextService = contextService;
|
|
12736
|
-
this.headerRow = false;
|
|
12737
|
-
this.isSelectedAllCell = false;
|
|
12738
|
-
this.destroy$ = new Subject();
|
|
12739
|
-
this.rowControls = [];
|
|
12740
|
-
this.colControls = [];
|
|
12741
|
-
/* 给标题行的左/右加阴影 */
|
|
12742
|
-
this.setHeaderRowShadow = () => {
|
|
12743
|
-
// 固定标题行遮盖
|
|
12744
|
-
this.tableWrapper.nativeElement.style.zIndex = this.isStickyTop ? '3' : '0';
|
|
12745
|
-
const headerRowRightShadow = this.headerRowRightShadow.nativeElement;
|
|
12746
|
-
const headerRowLeftShadow = this.headerRowLeftShadow.nativeElement;
|
|
12747
|
-
if (this.isLeftShadow || this.isRightShadow) {
|
|
12748
|
-
let { height, top } = this.calcHeaderRowShadow();
|
|
12749
|
-
let { left, width } = this.tableWrapper.nativeElement.getBoundingClientRect();
|
|
12750
|
-
if (this.isRightShadow) {
|
|
12751
|
-
headerRowRightShadow.style.height = height + 'px';
|
|
12752
|
-
headerRowRightShadow.style.top = top + 'px';
|
|
12753
|
-
headerRowRightShadow.style.left = left + width - 8 + 'px';
|
|
12754
|
-
}
|
|
12755
|
-
if (this.isLeftShadow) {
|
|
12756
|
-
headerRowLeftShadow.style.height = height + 'px';
|
|
12757
|
-
headerRowLeftShadow.style.top = top + 'px';
|
|
12758
|
-
const rowControl = this.elementRef.nativeElement.querySelector('.the-table-row-controls-wrapper');
|
|
12759
|
-
rowControl.style.zIndex = this.isCollapsedAndNonReadonly ? '4' : '1';
|
|
12760
|
-
}
|
|
12761
|
-
}
|
|
12762
|
-
};
|
|
12763
|
-
this.calcHeaderRowShadow = () => {
|
|
12764
|
-
var _a;
|
|
12765
|
-
const headerRowHeight = (_a = this.calculateRowControls()[0]) === null || _a === void 0 ? void 0 : _a.height;
|
|
12766
|
-
let height = headerRowHeight;
|
|
12767
|
-
// 默认(没有聚焦)的 top 值:滚动容器高度 + 表格的padding(8)
|
|
12768
|
-
let top = this.scrollContainerTop + TABLE_PADDING$1;
|
|
12769
|
-
// 聚焦状态下: 高度 + control(11),top 加一个 mask(19)
|
|
12770
|
-
if (this.isCollapsedAndNonReadonly) {
|
|
12771
|
-
height = height + TABLE_CONTROL;
|
|
12772
|
-
top = top + TABLE_INSERT_MASK$1 - 1;
|
|
12773
|
-
}
|
|
12774
|
-
return { height, top };
|
|
12775
|
-
};
|
|
12776
|
-
}
|
|
12777
12809
|
ngOnInit() {
|
|
12778
12810
|
super.ngOnInit();
|
|
12779
12811
|
this.getColControls();
|
|
@@ -12782,12 +12814,16 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12782
12814
|
if (this.tablePluginOptions.showFullscreen && this.tablePluginOptions.fullscreenAction) {
|
|
12783
12815
|
this.tablePluginOptions
|
|
12784
12816
|
.fullscreenAction(this.editor)
|
|
12785
|
-
.pipe(takeUntil(this.destroy$)
|
|
12817
|
+
.pipe(takeUntil(this.destroy$), filter(content => {
|
|
12818
|
+
return content.element === this.element;
|
|
12819
|
+
}), map$1(content => {
|
|
12820
|
+
return content.state === 'off' ? false : true;
|
|
12821
|
+
}))
|
|
12786
12822
|
.subscribe(value => {
|
|
12787
12823
|
this.tableStore.isFullscreen = value;
|
|
12788
12824
|
if (this.tableStore.isFullscreen) {
|
|
12789
12825
|
this.previousScrollContainer = this.editor.options.scrollContainer;
|
|
12790
|
-
this.editor.options.scrollContainer =
|
|
12826
|
+
this.editor.options.scrollContainer = DEFAULT_SCROLL_CONTAINER;
|
|
12791
12827
|
}
|
|
12792
12828
|
else {
|
|
12793
12829
|
this.editor.options.scrollContainer = this.previousScrollContainer;
|
|
@@ -12853,9 +12889,46 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12853
12889
|
}
|
|
12854
12890
|
this.setHeaderCellStyle();
|
|
12855
12891
|
this.subscribeScrollContainerScroll();
|
|
12856
|
-
this.contextService.containerResized$.pipe(takeUntil(this.destroy$)).subscribe(
|
|
12892
|
+
this.contextService.containerResized$.pipe(takeUntil(this.destroy$)).subscribe(result => {
|
|
12893
|
+
if (result.widthChanged) {
|
|
12894
|
+
this.setHeaderRowStyle();
|
|
12895
|
+
}
|
|
12896
|
+
});
|
|
12857
12897
|
}));
|
|
12858
12898
|
}
|
|
12899
|
+
/* 给标题行的左/右加阴影 */
|
|
12900
|
+
setHeaderRowShadow() {
|
|
12901
|
+
// 固定标题行遮盖
|
|
12902
|
+
this.tableWrapper.nativeElement.style.zIndex = this.isStickyTop ? '3' : '0';
|
|
12903
|
+
const headerRowRightShadow = this.headerRowRightShadow.nativeElement;
|
|
12904
|
+
const headerRowLeftShadow = this.headerRowLeftShadow.nativeElement;
|
|
12905
|
+
if (this.isLeftShadow || this.isRightShadow) {
|
|
12906
|
+
let { height, top } = this.calcHeaderRowShadow();
|
|
12907
|
+
let { left, width } = this.tableWrapper.nativeElement.getBoundingClientRect();
|
|
12908
|
+
if (this.isRightShadow) {
|
|
12909
|
+
headerRowRightShadow.style.height = height + 'px';
|
|
12910
|
+
headerRowRightShadow.style.top = top + 'px';
|
|
12911
|
+
headerRowRightShadow.style.left = left + width - 8 + 'px';
|
|
12912
|
+
}
|
|
12913
|
+
if (this.isLeftShadow) {
|
|
12914
|
+
headerRowLeftShadow.style.height = height + 'px';
|
|
12915
|
+
headerRowLeftShadow.style.top = top + 'px';
|
|
12916
|
+
}
|
|
12917
|
+
}
|
|
12918
|
+
}
|
|
12919
|
+
calcHeaderRowShadow() {
|
|
12920
|
+
var _a;
|
|
12921
|
+
const headerRowHeight = (_a = this.calculateRowControls()[0]) === null || _a === void 0 ? void 0 : _a.height;
|
|
12922
|
+
let height = headerRowHeight;
|
|
12923
|
+
// 默认(没有聚焦)的 top 值:滚动容器高度 + 表格的padding(8)
|
|
12924
|
+
let top = this.scrollContainerTop + TABLE_PADDING$1;
|
|
12925
|
+
// 聚焦状态下: 高度 + control(11),top 加一个 mask(19)
|
|
12926
|
+
if (this.isCollapsedAndNonReadonly) {
|
|
12927
|
+
height = height + TABLE_CONTROL;
|
|
12928
|
+
top = top + TABLE_INSERT_MASK$1 - 1;
|
|
12929
|
+
}
|
|
12930
|
+
return { height, top };
|
|
12931
|
+
}
|
|
12859
12932
|
subscribeScrollContainerScroll() {
|
|
12860
12933
|
this.ngZone.runOutsideAngular(() => {
|
|
12861
12934
|
this.contextService.containerScrolled$
|
|
@@ -12904,7 +12977,7 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12904
12977
|
this.renderer.addClass(cellElement, HEADER_CELL_CLASS);
|
|
12905
12978
|
});
|
|
12906
12979
|
}
|
|
12907
|
-
this.
|
|
12980
|
+
this.setHeaderColumnAndControlStyle(headerColumnCells);
|
|
12908
12981
|
this.setHeaderRowStyle();
|
|
12909
12982
|
}
|
|
12910
12983
|
removeHeaderCellStyle(cells) {
|
|
@@ -12913,7 +12986,7 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12913
12986
|
this.renderer.removeClass(cellElement, HEADER_CELL_CLASS);
|
|
12914
12987
|
});
|
|
12915
12988
|
}
|
|
12916
|
-
|
|
12989
|
+
setHeaderColumnAndControlStyle(cells) {
|
|
12917
12990
|
let headerColumnCells = [];
|
|
12918
12991
|
if (cells.length === 0) {
|
|
12919
12992
|
headerColumnCells = this.element.children.map(item => item.children[0]).filter(item => !item.hidden);
|
|
@@ -12921,13 +12994,16 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12921
12994
|
else {
|
|
12922
12995
|
headerColumnCells = cells.filter(item => !item.hidden);
|
|
12923
12996
|
}
|
|
12924
|
-
|
|
12925
|
-
|
|
12997
|
+
const headerColControl = this.columnControlsWrapper.nativeElement.firstChild;
|
|
12998
|
+
const headerColumnElements = headerColumnCells.map(item => {
|
|
12999
|
+
return TheEditor.toDOMNode(this.editor, item);
|
|
13000
|
+
});
|
|
13001
|
+
[...headerColumnElements, headerColControl].map(item => {
|
|
12926
13002
|
if (this.freezeColumnPipe.transform(this.element, this.tablePluginOptions)) {
|
|
12927
|
-
this.renderer.addClass(
|
|
13003
|
+
this.renderer.addClass(item, 'the-sticky-cell');
|
|
12928
13004
|
}
|
|
12929
13005
|
else {
|
|
12930
|
-
this.renderer.removeClass(
|
|
13006
|
+
this.renderer.removeClass(item, 'the-sticky-cell');
|
|
12931
13007
|
}
|
|
12932
13008
|
});
|
|
12933
13009
|
}
|
|
@@ -12937,23 +13013,16 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12937
13013
|
this.setHeaderRowShadow();
|
|
12938
13014
|
}
|
|
12939
13015
|
setGridColumnsStyle() {
|
|
12940
|
-
var _a;
|
|
13016
|
+
var _a, _b;
|
|
12941
13017
|
const colControl = this.columnControlsWrapper.nativeElement;
|
|
12942
|
-
const rows = [...this.nativeElement.querySelectorAll('tbody tr')];
|
|
12943
|
-
// 只有一行的表格不支持固定
|
|
12944
|
-
if (rows.length <= 1) {
|
|
12945
|
-
return;
|
|
12946
|
-
}
|
|
12947
13018
|
if (this.freezeRowPipe.transform(this.element, this.headerRow, this.tablePluginOptions)) {
|
|
12948
|
-
|
|
13019
|
+
const headerRow = this.tbodyElement.nativeElement.childNodes[0];
|
|
13020
|
+
const cellsWidth = ((_a = this.colgroup) === null || _a === void 0 ? void 0 : _a.nativeElement) ? getColumnsWidth(this.colgroup.nativeElement) : this.getDefaultCellWidth();
|
|
13021
|
+
const gridColumns = getGridColumns(headerRow, cellsWidth);
|
|
12949
13022
|
const tablePadding = 44;
|
|
12950
|
-
let tableWidth = this.
|
|
12951
|
-
tableWidth = ((
|
|
12952
|
-
const
|
|
12953
|
-
cellElements.forEach(item => {
|
|
12954
|
-
gridColumns += item.getBoundingClientRect().width + 'px ';
|
|
12955
|
-
});
|
|
12956
|
-
const stickyRows = this.isInTable ? [colControl, rows[0]] : [rows[0]];
|
|
13023
|
+
let tableWidth = this.elementRef.nativeElement.getBoundingClientRect().width;
|
|
13024
|
+
tableWidth = ((_b = this.element.options) === null || _b === void 0 ? void 0 : _b.numberedColumn) ? tableWidth - tablePadding : tableWidth;
|
|
13025
|
+
const stickyRows = this.isInTable ? [colControl, headerRow] : [headerRow];
|
|
12957
13026
|
stickyRows.map(item => {
|
|
12958
13027
|
this.renderer.setStyle(item, 'grid-template-columns', gridColumns);
|
|
12959
13028
|
this.renderer.setStyle(item, 'width', tableWidth + 'px');
|
|
@@ -12993,18 +13062,24 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12993
13062
|
this.renderer.setStyle(rowControlInner, 'padding-top', null);
|
|
12994
13063
|
}
|
|
12995
13064
|
// setTimeout: 需要等待 rowControls 在 dom 中渲染完毕后才能获取到 rowControlButton
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13065
|
+
if (this.initialized) {
|
|
13066
|
+
this.setRowControlButtonStyle(numberedColumn);
|
|
13067
|
+
}
|
|
13068
|
+
else {
|
|
13069
|
+
setTimeout(() => this.setRowControlButtonStyle(numberedColumn));
|
|
13070
|
+
}
|
|
13071
|
+
}
|
|
13072
|
+
setRowControlButtonStyle(numberedColumn) {
|
|
13073
|
+
var _a;
|
|
13074
|
+
const rowControlButton = (_a = this.rowControlsButtonWrapper.first) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
13075
|
+
if (this.isStickyTop) {
|
|
13076
|
+
if ((this.isInTable || numberedColumn) && rowControlButton) {
|
|
13077
|
+
this.renderer.setStyle(rowControlButton, 'top', this.scrollContainerTop + 'px');
|
|
13006
13078
|
}
|
|
13007
|
-
}
|
|
13079
|
+
}
|
|
13080
|
+
else {
|
|
13081
|
+
rowControlButton && this.renderer.setStyle(rowControlButton, 'top', null);
|
|
13082
|
+
}
|
|
13008
13083
|
}
|
|
13009
13084
|
bindTableScrollingShadow() {
|
|
13010
13085
|
const nativeElement = this.tableWrapper.nativeElement;
|
|
@@ -13060,8 +13135,7 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
13060
13135
|
this.cdr.detectChanges();
|
|
13061
13136
|
}
|
|
13062
13137
|
calculateMinRowSpanCellForRows() {
|
|
13063
|
-
const
|
|
13064
|
-
const cells = table.children.map((row, index) => {
|
|
13138
|
+
const cells = this.element.children.map((row, index) => {
|
|
13065
13139
|
const noHiddenCells = row.children.filter(cell => !cell.hidden);
|
|
13066
13140
|
if (noHiddenCells.length > 0) {
|
|
13067
13141
|
const minRowspan = Math.min.apply(Math, noHiddenCells.map(cell => {
|
|
@@ -13192,6 +13266,13 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
13192
13266
|
this.isInTable = false;
|
|
13193
13267
|
}
|
|
13194
13268
|
}
|
|
13269
|
+
getDefaultCellWidth() {
|
|
13270
|
+
const tr = this.element.children[0];
|
|
13271
|
+
const tableWidth = AngularEditor.toDOMNode(this.editor, tr).getBoundingClientRect().width;
|
|
13272
|
+
return tr.children.map(cell => {
|
|
13273
|
+
return Number((tableWidth / tr.children.length).toFixed(2));
|
|
13274
|
+
});
|
|
13275
|
+
}
|
|
13195
13276
|
initializeColumns() {
|
|
13196
13277
|
if (this.element.columns) {
|
|
13197
13278
|
const columns = [];
|
|
@@ -13405,8 +13486,8 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
13405
13486
|
this.destroy$.complete();
|
|
13406
13487
|
}
|
|
13407
13488
|
}
|
|
13408
|
-
TheTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13409
|
-
TheTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
13489
|
+
TheTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableComponent, deps: [{ token: i0.ElementRef }, { token: TableCellEventDispatcher }, { token: ColumnResizeNotifierSource }, { token: TableStore }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: TableService }, { token: TheTableContextMenuService }, { token: TableFreezeColumnPipe }, { token: TableFreezeRowPipe }, { token: i0.Renderer2 }, { token: TheContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13490
|
+
TheTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTableComponent, selector: "the-table, [theTable]", host: { listeners: { "mousedown": "handleMousedown($event)" }, properties: { "class.the-table-with-controls": "isInTable || tableStore.isRightClicking", "class.the-table-with-sticky-column": "freezeColumnPipe.transform(element, tablePluginOptions)", "class.the-numberd-table": "element?.options?.numberedColumn", "class.the-table-selection-hide": "tableStore.isCellSelecting || tableStore.isRightClicking" } }, providers: [
|
|
13410
13491
|
TableStore,
|
|
13411
13492
|
TableService,
|
|
13412
13493
|
TheTableContextMenuService,
|
|
@@ -13418,8 +13499,8 @@ TheTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
13418
13499
|
provide: THE_TABLE_COMPONENT_TOKEN,
|
|
13419
13500
|
useExisting: TheTableComponent
|
|
13420
13501
|
}
|
|
13421
|
-
], viewQueries: [{ propertyName: "tableWrapper", first: true, predicate: ["tableWrapper"], descendants: true, read: ElementRef, static: true }, { propertyName: "theTableElement", first: true, predicate: ["theTable"], descendants: true, read: ElementRef, static: true }, { propertyName: "tbodyElement", first: true, predicate: ["tbody"], descendants: true, read: ElementRef, static: true }, { propertyName: "columnControlsWrapper", first: true, predicate: ["columnControlsWrapper"], descendants: true, read: ElementRef }, { propertyName: "cornerControl", first: true, predicate: ["cornerControl"], descendants: true, read: ElementRef }, { propertyName: "rowControlsInner", first: true, predicate: ["rowControlsInner"], descendants: true, read: ElementRef }, { propertyName: "
|
|
13422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13502
|
+
], viewQueries: [{ propertyName: "tableWrapper", first: true, predicate: ["tableWrapper"], descendants: true, read: ElementRef, static: true }, { propertyName: "theTableElement", first: true, predicate: ["theTable"], descendants: true, read: ElementRef, static: true }, { propertyName: "tbodyElement", first: true, predicate: ["tbody"], descendants: true, read: ElementRef, static: true }, { propertyName: "columnControlsWrapper", first: true, predicate: ["columnControlsWrapper"], descendants: true, read: ElementRef }, { propertyName: "cornerControl", first: true, predicate: ["cornerControl"], descendants: true, read: ElementRef }, { propertyName: "rowControlsInner", first: true, predicate: ["rowControlsInner"], descendants: true, read: ElementRef }, { propertyName: "headerRowLeftShadow", first: true, predicate: ["headerRowLeftShadow"], descendants: true, read: ElementRef }, { propertyName: "headerRowRightShadow", first: true, predicate: ["headerRowRightShadow"], descendants: true, read: ElementRef }, { propertyName: "colgroup", first: true, predicate: ["colgroup"], descendants: true, read: ElementRef }, { propertyName: "rowControlsButtonWrapper", predicate: ["rowControlsButtonWrapper"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div class=\"the-table-container\" theColumnResize>\n <div class=\"the-table-row-controls-wrapper\">\n <div\n class=\"the-table-corner-controls the-sticky-corner-controls\"\n #cornerControl\n [ngClass]=\"{\n visible: !readonly && (isInTable || tableStore.isRightClicking),\n 'control-active': isSelectedAllCell,\n dangerous: tableStore.isSelectedTable && tableStore.dangerousCells.length > 0\n }\"\n >\n <div class=\"the-table-corner-button\" (mousedown)=\"onSelectTable($event)\"></div>\n <div class=\"the-table-corner-controls-insert-row-marker\" *ngIf=\"!headerRow\">\n <the-table-insert-mark type=\"row\" [at]=\"0\" [tableStore]=\"tableStore\"></the-table-insert-mark>\n </div>\n <div class=\"the-table-corner-controls-insert-column-marker\" *ngIf=\"!element.options?.headerColumn\">\n <the-table-insert-mark type=\"column\" [at]=\"0\" [tableStore]=\"tableStore\"></the-table-insert-mark>\n </div>\n </div>\n <div class=\"the-table-row-controls\">\n <div class=\"the-table-row-controls-inner\" #rowControlsInner>\n <div\n class=\"the-table-row-controls-button-wrap\"\n #rowControlsButtonWrapper\n *ngFor=\"let control of rowControls; let i = index; trackBy: trackByFnRowControls\"\n [ngClass]=\"{\n 'control-active': tableStore.selectedRowsIndex.includes(control.rowIndex),\n dangerous: tableStore.dangerousRowsIndex.includes(control.rowIndex) && tableStore.dangerousCells.length > 0\n }\"\n >\n <ng-container *ngIf=\"!readonly && (isInTable || tableStore.isRightClicking) && !element?.options?.numberedColumn\">\n <button\n (mousedown)=\"onRowMousedown($event, control.rowIndex)\"\n type=\"button\"\n [ngStyle]=\"{ height: control.height + 1 + 'px' }\"\n class=\"the-table-row-controls-button the-table-controls-button\"\n ></button>\n </ng-container>\n <ng-container *ngIf=\"element?.options?.numberedColumn\">\n <div\n [contentEditable]=\"false\"\n contenteditable=\"false\"\n (mousedown)=\"onRowMousedown($event, control.rowIndex)\"\n class=\"the-table-numbered-controls-button\"\n [ngStyle]=\"{ height: control.height + 1 + 'px' }\"\n >\n <p class=\"row-number d-flex align-items-center\">{{ headerRow && i === 0 ? '' : headerRow ? i : i + 1 }}</p>\n </div>\n </ng-container>\n <the-table-insert-mark type=\"row\" [at]=\"control.rowIndex + 1\" [tableStore]=\"tableStore\"> </the-table-insert-mark>\n </div>\n </div>\n </div>\n </div>\n <div class=\"the-table-wrapper\" #tableWrapper [ngClass]=\"{ 'the-table-numbered': element?.options?.numberedColumn }\">\n <table class=\"the-table\" #theTable>\n <colgroup #colgroup *ngIf=\"columns\">\n <col *ngFor=\"let col of columns\" [ngStyle]=\"{ width: col.width + 'px' }\" />\n </colgroup>\n <thead>\n <tr class=\"the-table-col-controls-wrapper the-sticky-row\" #columnControlsWrapper>\n <th\n #colControl\n class=\"the-table-col-controls\"\n *ngFor=\"let control of colControls; let i = index; trackBy: trackByFnColControls\"\n [ngClass]=\"{\n 'control-active': tableStore.selectedColumnsIndex.includes(i),\n dangerous: tableStore.dangerousColumnsIndex.includes(i) && tableStore.dangerousCells.length > 0\n }\"\n (mousedown)=\"onColMousedown($event, i)\"\n >\n <the-table-insert-mark\n *ngIf=\"isInTable || tableStore.isRightClicking\"\n type=\"column\"\n [at]=\"i + 1\"\n [tableStore]=\"tableStore\"\n [parentElement]=\"colControl\"\n >\n </the-table-insert-mark>\n </th>\n </tr>\n </thead>\n <tbody #tbody>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"> </slate-children>\n </tbody>\n <div class=\"header-row-shadow header-row-left-shadow\" #headerRowLeftShadow contenteditable=\"false\"></div>\n <div class=\"header-row-shadow header-row-right-shadow\" #headerRowRightShadow contenteditable=\"false\"></div>\n </table>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }, { kind: "directive", type: TheColumnResizeDirective, selector: "div[theColumnResize]" }, { kind: "component", type: TheInsertMarkComponent, selector: "the-table-insert-mark", inputs: ["type", "at", "tableStore", "parentElement"] }] });
|
|
13503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableComponent, decorators: [{
|
|
13423
13504
|
type: Component,
|
|
13424
13505
|
args: [{ selector: 'the-table, [theTable]', providers: [
|
|
13425
13506
|
TableStore,
|
|
@@ -13435,10 +13516,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
13435
13516
|
}
|
|
13436
13517
|
], host: {
|
|
13437
13518
|
'[class.the-table-with-controls]': 'isInTable || tableStore.isRightClicking',
|
|
13438
|
-
'[class.the-table-with-sticky-column]': 'element
|
|
13519
|
+
'[class.the-table-with-sticky-column]': 'freezeColumnPipe.transform(element, tablePluginOptions)',
|
|
13439
13520
|
'[class.the-numberd-table]': 'element?.options?.numberedColumn',
|
|
13440
13521
|
'[class.the-table-selection-hide]': 'tableStore.isCellSelecting || tableStore.isRightClicking'
|
|
13441
|
-
}, template: "<div class=\"the-table-container\" theColumnResize>\n <div class=\"the-table-row-controls-wrapper\"
|
|
13522
|
+
}, template: "<div class=\"the-table-container\" theColumnResize>\n <div class=\"the-table-row-controls-wrapper\">\n <div\n class=\"the-table-corner-controls the-sticky-corner-controls\"\n #cornerControl\n [ngClass]=\"{\n visible: !readonly && (isInTable || tableStore.isRightClicking),\n 'control-active': isSelectedAllCell,\n dangerous: tableStore.isSelectedTable && tableStore.dangerousCells.length > 0\n }\"\n >\n <div class=\"the-table-corner-button\" (mousedown)=\"onSelectTable($event)\"></div>\n <div class=\"the-table-corner-controls-insert-row-marker\" *ngIf=\"!headerRow\">\n <the-table-insert-mark type=\"row\" [at]=\"0\" [tableStore]=\"tableStore\"></the-table-insert-mark>\n </div>\n <div class=\"the-table-corner-controls-insert-column-marker\" *ngIf=\"!element.options?.headerColumn\">\n <the-table-insert-mark type=\"column\" [at]=\"0\" [tableStore]=\"tableStore\"></the-table-insert-mark>\n </div>\n </div>\n <div class=\"the-table-row-controls\">\n <div class=\"the-table-row-controls-inner\" #rowControlsInner>\n <div\n class=\"the-table-row-controls-button-wrap\"\n #rowControlsButtonWrapper\n *ngFor=\"let control of rowControls; let i = index; trackBy: trackByFnRowControls\"\n [ngClass]=\"{\n 'control-active': tableStore.selectedRowsIndex.includes(control.rowIndex),\n dangerous: tableStore.dangerousRowsIndex.includes(control.rowIndex) && tableStore.dangerousCells.length > 0\n }\"\n >\n <ng-container *ngIf=\"!readonly && (isInTable || tableStore.isRightClicking) && !element?.options?.numberedColumn\">\n <button\n (mousedown)=\"onRowMousedown($event, control.rowIndex)\"\n type=\"button\"\n [ngStyle]=\"{ height: control.height + 1 + 'px' }\"\n class=\"the-table-row-controls-button the-table-controls-button\"\n ></button>\n </ng-container>\n <ng-container *ngIf=\"element?.options?.numberedColumn\">\n <div\n [contentEditable]=\"false\"\n contenteditable=\"false\"\n (mousedown)=\"onRowMousedown($event, control.rowIndex)\"\n class=\"the-table-numbered-controls-button\"\n [ngStyle]=\"{ height: control.height + 1 + 'px' }\"\n >\n <p class=\"row-number d-flex align-items-center\">{{ headerRow && i === 0 ? '' : headerRow ? i : i + 1 }}</p>\n </div>\n </ng-container>\n <the-table-insert-mark type=\"row\" [at]=\"control.rowIndex + 1\" [tableStore]=\"tableStore\"> </the-table-insert-mark>\n </div>\n </div>\n </div>\n </div>\n <div class=\"the-table-wrapper\" #tableWrapper [ngClass]=\"{ 'the-table-numbered': element?.options?.numberedColumn }\">\n <table class=\"the-table\" #theTable>\n <colgroup #colgroup *ngIf=\"columns\">\n <col *ngFor=\"let col of columns\" [ngStyle]=\"{ width: col.width + 'px' }\" />\n </colgroup>\n <thead>\n <tr class=\"the-table-col-controls-wrapper the-sticky-row\" #columnControlsWrapper>\n <th\n #colControl\n class=\"the-table-col-controls\"\n *ngFor=\"let control of colControls; let i = index; trackBy: trackByFnColControls\"\n [ngClass]=\"{\n 'control-active': tableStore.selectedColumnsIndex.includes(i),\n dangerous: tableStore.dangerousColumnsIndex.includes(i) && tableStore.dangerousCells.length > 0\n }\"\n (mousedown)=\"onColMousedown($event, i)\"\n >\n <the-table-insert-mark\n *ngIf=\"isInTable || tableStore.isRightClicking\"\n type=\"column\"\n [at]=\"i + 1\"\n [tableStore]=\"tableStore\"\n [parentElement]=\"colControl\"\n >\n </the-table-insert-mark>\n </th>\n </tr>\n </thead>\n <tbody #tbody>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"> </slate-children>\n </tbody>\n <div class=\"header-row-shadow header-row-left-shadow\" #headerRowLeftShadow contenteditable=\"false\"></div>\n <div class=\"header-row-shadow header-row-right-shadow\" #headerRowRightShadow contenteditable=\"false\"></div>\n </table>\n </div>\n</div>\n" }]
|
|
13442
13523
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: TableCellEventDispatcher }, { type: ColumnResizeNotifierSource }, { type: TableStore }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: TableService }, { type: TheTableContextMenuService }, { type: TableFreezeColumnPipe }, { type: TableFreezeRowPipe }, { type: i0.Renderer2 }, { type: TheContextService }]; }, propDecorators: { tableWrapper: [{
|
|
13443
13524
|
type: ViewChild,
|
|
13444
13525
|
args: ['tableWrapper', { read: ElementRef, static: true }]
|
|
@@ -13457,15 +13538,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
13457
13538
|
}], rowControlsInner: [{
|
|
13458
13539
|
type: ViewChild,
|
|
13459
13540
|
args: ['rowControlsInner', { read: ElementRef, static: false }]
|
|
13460
|
-
}], tableRowControlsWrapper: [{
|
|
13461
|
-
type: ViewChild,
|
|
13462
|
-
args: ['tableRowControlsWrapper', { read: ElementRef, static: false }]
|
|
13463
13541
|
}], headerRowLeftShadow: [{
|
|
13464
13542
|
type: ViewChild,
|
|
13465
13543
|
args: ['headerRowLeftShadow', { read: ElementRef, static: false }]
|
|
13466
13544
|
}], headerRowRightShadow: [{
|
|
13467
13545
|
type: ViewChild,
|
|
13468
13546
|
args: ['headerRowRightShadow', { read: ElementRef, static: false }]
|
|
13547
|
+
}], colgroup: [{
|
|
13548
|
+
type: ViewChild,
|
|
13549
|
+
args: ['colgroup', { read: ElementRef, static: false }]
|
|
13469
13550
|
}], rowControlsButtonWrapper: [{
|
|
13470
13551
|
type: ViewChildren,
|
|
13471
13552
|
args: ['rowControlsButtonWrapper', { read: ElementRef }]
|
|
@@ -13554,9 +13635,9 @@ class TheTableRowComponent extends TheBaseElementComponent {
|
|
|
13554
13635
|
}
|
|
13555
13636
|
}
|
|
13556
13637
|
}
|
|
13557
|
-
TheTableRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13558
|
-
TheTableRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
13559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13638
|
+
TheTableRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableRowComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
13639
|
+
TheTableRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTableRowComponent, selector: "tr[theTableRow]", host: { properties: { "style.height": "this.height" } }, usesInheritance: true, ngImport: i0, template: '<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>', isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
13640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableRowComponent, decorators: [{
|
|
13560
13641
|
type: Component,
|
|
13561
13642
|
args: [{
|
|
13562
13643
|
selector: 'tr[theTableRow]',
|
|
@@ -13712,9 +13793,9 @@ class ColumnResizingStore {
|
|
|
13712
13793
|
this.resizeRows.pop();
|
|
13713
13794
|
}
|
|
13714
13795
|
}
|
|
13715
|
-
ColumnResizingStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13716
|
-
ColumnResizingStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13796
|
+
ColumnResizingStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ColumnResizingStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13797
|
+
ColumnResizingStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ColumnResizingStore });
|
|
13798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ColumnResizingStore, decorators: [{
|
|
13718
13799
|
type: Injectable
|
|
13719
13800
|
}], ctorParameters: function () { return []; } });
|
|
13720
13801
|
|
|
@@ -13869,9 +13950,9 @@ class TheColumnResizeOverlayHandleComponent {
|
|
|
13869
13950
|
this.destroyed.complete();
|
|
13870
13951
|
}
|
|
13871
13952
|
}
|
|
13872
|
-
TheColumnResizeOverlayHandleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13873
|
-
TheColumnResizeOverlayHandleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
13874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13953
|
+
TheColumnResizeOverlayHandleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeOverlayHandleComponent, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: ResizeRef }, { token: TableCellEventDispatcher }, { token: DOCUMENT }, { token: ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Component });
|
|
13954
|
+
TheColumnResizeOverlayHandleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheColumnResizeOverlayHandleComponent, selector: "ng-component", host: { classAttribute: "the-table-resize-overlay-thumb" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeOverlayHandleComponent, decorators: [{
|
|
13875
13956
|
type: Component,
|
|
13876
13957
|
args: [{
|
|
13877
13958
|
host: { class: 'the-table-resize-overlay-thumb' },
|
|
@@ -13937,6 +14018,22 @@ const POSITION_MAP = {
|
|
|
13937
14018
|
}
|
|
13938
14019
|
};
|
|
13939
14020
|
class TheTdComponent extends TheBaseElementComponent {
|
|
14021
|
+
constructor(elementRef, cdr, renderer, viewContainerRef, ngZone, injector, overlay, resizingStore, scrollDispatcher, freezeColumnPipe) {
|
|
14022
|
+
super(elementRef, cdr);
|
|
14023
|
+
this.elementRef = elementRef;
|
|
14024
|
+
this.cdr = cdr;
|
|
14025
|
+
this.renderer = renderer;
|
|
14026
|
+
this.viewContainerRef = viewContainerRef;
|
|
14027
|
+
this.ngZone = ngZone;
|
|
14028
|
+
this.injector = injector;
|
|
14029
|
+
this.overlay = overlay;
|
|
14030
|
+
this.resizingStore = resizingStore;
|
|
14031
|
+
this.scrollDispatcher = scrollDispatcher;
|
|
14032
|
+
this.freezeColumnPipe = freezeColumnPipe;
|
|
14033
|
+
this.destroy$ = new Subject();
|
|
14034
|
+
this.tableOptions = new TableOptions();
|
|
14035
|
+
this.cellInnerMinHeight = null;
|
|
14036
|
+
}
|
|
13940
14037
|
get tableStore() {
|
|
13941
14038
|
return this.tableComponent.tableStore;
|
|
13942
14039
|
}
|
|
@@ -13985,22 +14082,6 @@ class TheTdComponent extends TheBaseElementComponent {
|
|
|
13985
14082
|
this.useState();
|
|
13986
14083
|
}
|
|
13987
14084
|
}
|
|
13988
|
-
constructor(elementRef, cdr, renderer, viewContainerRef, ngZone, injector, overlay, resizingStore, scrollDispatcher, freezeColumnPipe) {
|
|
13989
|
-
super(elementRef, cdr);
|
|
13990
|
-
this.elementRef = elementRef;
|
|
13991
|
-
this.cdr = cdr;
|
|
13992
|
-
this.renderer = renderer;
|
|
13993
|
-
this.viewContainerRef = viewContainerRef;
|
|
13994
|
-
this.ngZone = ngZone;
|
|
13995
|
-
this.injector = injector;
|
|
13996
|
-
this.overlay = overlay;
|
|
13997
|
-
this.resizingStore = resizingStore;
|
|
13998
|
-
this.scrollDispatcher = scrollDispatcher;
|
|
13999
|
-
this.freezeColumnPipe = freezeColumnPipe;
|
|
14000
|
-
this.destroy$ = new Subject();
|
|
14001
|
-
this.tableOptions = new TableOptions();
|
|
14002
|
-
this.cellInnerMinHeight = null;
|
|
14003
|
-
}
|
|
14004
14085
|
ngOnInit() {
|
|
14005
14086
|
super.ngOnInit();
|
|
14006
14087
|
this.useBackground();
|
|
@@ -14585,9 +14666,9 @@ class TheTdComponent extends TheBaseElementComponent {
|
|
|
14585
14666
|
this.destroy$.complete();
|
|
14586
14667
|
}
|
|
14587
14668
|
}
|
|
14588
|
-
TheTdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14589
|
-
TheTdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
14590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14669
|
+
TheTdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTdComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2$1.Overlay }, { token: ColumnResizingStore }, { token: i2$1.ScrollDispatcher }, { token: TableFreezeColumnPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
14670
|
+
TheTdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTdComponent, selector: "td[theTd]", host: { properties: { "style.backgroundColor": "this.backgroundColor", "attr.colspan": "this.colspan", "attr.rowspan": "this.rowspan", "style.display": "this.display" } }, providers: [ColumnResizingStore], usesInheritance: true, ngImport: i0, template: "<div #cellInner>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n</div>\n", dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
14671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTdComponent, decorators: [{
|
|
14591
14672
|
type: Component,
|
|
14592
14673
|
args: [{ selector: 'td[theTd]', providers: [ColumnResizingStore], template: "<div #cellInner>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n</div>\n" }]
|
|
14593
14674
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i0.Injector }, { type: i2$1.Overlay }, { type: ColumnResizingStore }, { type: i2$1.ScrollDispatcher }, { type: TableFreezeColumnPipe }]; }, propDecorators: { backgroundColor: [{
|
|
@@ -14635,14 +14716,14 @@ const normalizeTable = (table) => {
|
|
|
14635
14716
|
};
|
|
14636
14717
|
|
|
14637
14718
|
class TheTableToolbarItemComponent extends TheBaseToolbarItem {
|
|
14638
|
-
get isOpenTableSelect() {
|
|
14639
|
-
return this.tableSelectRef && this.tableSelectRef.componentInstance;
|
|
14640
|
-
}
|
|
14641
14719
|
constructor(thyPopover, overlay) {
|
|
14642
14720
|
super();
|
|
14643
14721
|
this.thyPopover = thyPopover;
|
|
14644
14722
|
this.overlay = overlay;
|
|
14645
14723
|
}
|
|
14724
|
+
get isOpenTableSelect() {
|
|
14725
|
+
return this.tableSelectRef && this.tableSelectRef.componentInstance;
|
|
14726
|
+
}
|
|
14646
14727
|
preventDefault(event) {
|
|
14647
14728
|
event.preventDefault();
|
|
14648
14729
|
event.stopPropagation();
|
|
@@ -14679,8 +14760,8 @@ class TheTableToolbarItemComponent extends TheBaseToolbarItem {
|
|
|
14679
14760
|
return this.tableSelectRef;
|
|
14680
14761
|
}
|
|
14681
14762
|
}
|
|
14682
|
-
TheTableToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14683
|
-
TheTableToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
14763
|
+
TheTableToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableToolbarItemComponent, deps: [{ token: i1$1.ThyPopover }, { token: i2$1.Overlay }], target: i0.ɵɵFactoryTarget.Component });
|
|
14764
|
+
TheTableToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTableToolbarItemComponent, selector: "the-table-toolbar-item", host: { classAttribute: "the-toolbar-dropdown-container" }, usesInheritance: true, ngImport: i0, template: `
|
|
14684
14765
|
<a
|
|
14685
14766
|
href="javascript:;"
|
|
14686
14767
|
class="link-with-down"
|
|
@@ -14695,7 +14776,7 @@ TheTableToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
14695
14776
|
<thy-icon class="link-down-icon font-size-sm text-desc ml-1" thyIconName="caret-down"> </thy-icon>
|
|
14696
14777
|
</a>
|
|
14697
14778
|
`, isInline: true, dependencies: [{ kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }] });
|
|
14698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTableToolbarItemComponent, decorators: [{
|
|
14699
14780
|
type: Component,
|
|
14700
14781
|
args: [{
|
|
14701
14782
|
selector: 'the-table-toolbar-item',
|
|
@@ -15144,6 +15225,13 @@ const createTablePlugin = createPluginFactory({
|
|
|
15144
15225
|
});
|
|
15145
15226
|
|
|
15146
15227
|
class TheTodoItemComponent extends TheBaseElementComponent {
|
|
15228
|
+
constructor(elementRef, cdr, ctxService) {
|
|
15229
|
+
super(elementRef, cdr);
|
|
15230
|
+
this.elementRef = elementRef;
|
|
15231
|
+
this.cdr = cdr;
|
|
15232
|
+
this.ctxService = ctxService;
|
|
15233
|
+
this.checkItemClass = true;
|
|
15234
|
+
}
|
|
15147
15235
|
get checkItemSelectable() {
|
|
15148
15236
|
return this.editableWithReadonly && this.readonly;
|
|
15149
15237
|
}
|
|
@@ -15155,13 +15243,6 @@ class TheTodoItemComponent extends TheBaseElementComponent {
|
|
|
15155
15243
|
var _a;
|
|
15156
15244
|
return (_a = getPluginOptions(this.editor, PluginKeys.checkItem)) === null || _a === void 0 ? void 0 : _a.editableWithReadonly;
|
|
15157
15245
|
}
|
|
15158
|
-
constructor(elementRef, cdr, ctxService) {
|
|
15159
|
-
super(elementRef, cdr);
|
|
15160
|
-
this.elementRef = elementRef;
|
|
15161
|
-
this.cdr = cdr;
|
|
15162
|
-
this.ctxService = ctxService;
|
|
15163
|
-
this.checkItemClass = true;
|
|
15164
|
-
}
|
|
15165
15246
|
ngOnInit() {
|
|
15166
15247
|
super.ngOnInit();
|
|
15167
15248
|
}
|
|
@@ -15172,14 +15253,14 @@ class TheTodoItemComponent extends TheBaseElementComponent {
|
|
|
15172
15253
|
setNode(this.editor, { checked }, this.element);
|
|
15173
15254
|
}
|
|
15174
15255
|
}
|
|
15175
|
-
TheTodoItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15176
|
-
TheTodoItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
15256
|
+
TheTodoItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTodoItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: TheContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
15257
|
+
TheTodoItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheTodoItemComponent, selector: "div[theTodoItem]", host: { properties: { "class.the-check-item": "this.checkItemClass", "class.the-todo-item-selectable": "this.checkItemSelectable", "attr.the-level": "this.level" } }, usesInheritance: true, ngImport: i0, template: `
|
|
15177
15258
|
<span contenteditable="false" class="todo-item-status">
|
|
15178
15259
|
<input #checkbox type="checkbox" [checked]="element.checked" (click)="onCheck(checkbox.checked)" />
|
|
15179
15260
|
</span>
|
|
15180
15261
|
<span><slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children></span>
|
|
15181
15262
|
`, isInline: true, dependencies: [{ kind: "component", type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
15182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheTodoItemComponent, decorators: [{
|
|
15183
15264
|
type: Component,
|
|
15184
15265
|
args: [{
|
|
15185
15266
|
selector: 'div[theTodoItem]',
|
|
@@ -15446,15 +15527,15 @@ class TheInlineToolbarComponent {
|
|
|
15446
15527
|
this.destroy$.complete();
|
|
15447
15528
|
}
|
|
15448
15529
|
}
|
|
15449
|
-
TheInlineToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15450
|
-
TheInlineToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
15530
|
+
TheInlineToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheInlineToolbarComponent, deps: [{ token: i0.ElementRef }, { token: i2$1.ScrollDispatcher }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: TheContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
15531
|
+
TheInlineToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems" }, host: { properties: { "class.hide": "toolbarItems.length === 0" } }, viewQueries: [{ propertyName: "inlineToolbar", first: true, predicate: ["inlineToolbar"], descendants: true }], ngImport: i0, template: `<the-toolbar
|
|
15451
15532
|
#inlineToolbar
|
|
15452
15533
|
class="the-inline-toolbar"
|
|
15453
15534
|
[editor]="editor"
|
|
15454
15535
|
[toolbarItems]="toolbarItems"
|
|
15455
15536
|
[isMore]="false"
|
|
15456
15537
|
></the-toolbar> `, isInline: true, dependencies: [{ kind: "component", type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheInlineToolbarComponent, decorators: [{
|
|
15458
15539
|
type: Component,
|
|
15459
15540
|
args: [{
|
|
15460
15541
|
selector: 'the-inline-toolbar',
|
|
@@ -15480,10 +15561,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
15480
15561
|
}] } });
|
|
15481
15562
|
|
|
15482
15563
|
class TheQuickInsertComponent {
|
|
15483
|
-
handleMousedownNativeElement(event) {
|
|
15484
|
-
event.preventDefault();
|
|
15485
|
-
event.stopPropagation();
|
|
15486
|
-
}
|
|
15487
15564
|
constructor(renderer, elementRef, cdr) {
|
|
15488
15565
|
this.renderer = renderer;
|
|
15489
15566
|
this.elementRef = elementRef;
|
|
@@ -15494,6 +15571,10 @@ class TheQuickInsertComponent {
|
|
|
15494
15571
|
this.iconNameFill = 'plus-circle-thin-fill';
|
|
15495
15572
|
this.displayIconName = this.defaultIconName;
|
|
15496
15573
|
}
|
|
15574
|
+
handleMousedownNativeElement(event) {
|
|
15575
|
+
event.preventDefault();
|
|
15576
|
+
event.stopPropagation();
|
|
15577
|
+
}
|
|
15497
15578
|
ngOnInit() {
|
|
15498
15579
|
const { onChange } = this.editor;
|
|
15499
15580
|
this.editor.onChange = () => {
|
|
@@ -15573,9 +15654,9 @@ class TheQuickInsertComponent {
|
|
|
15573
15654
|
}, 100);
|
|
15574
15655
|
}
|
|
15575
15656
|
}
|
|
15576
|
-
TheQuickInsertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15577
|
-
TheQuickInsertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
15578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15657
|
+
TheQuickInsertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheQuickInsertComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
15658
|
+
TheQuickInsertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", isVisible: "isVisible" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef }], ngImport: i0, 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", dependencies: [{ kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] });
|
|
15659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheQuickInsertComponent, decorators: [{
|
|
15579
15660
|
type: Component,
|
|
15580
15661
|
args: [{ selector: '[theQuickInsert]', 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" }]
|
|
15581
15662
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { className: [{
|
|
@@ -15594,13 +15675,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
15594
15675
|
}] } });
|
|
15595
15676
|
|
|
15596
15677
|
class TheEditorComponent extends mixinUnsubscribe(MixinBase) {
|
|
15597
|
-
get theGlobalToolbarInstance() {
|
|
15598
|
-
return this.theGlobalToolbar ? this.theGlobalToolbar : this.globalToolbarInstance;
|
|
15599
|
-
}
|
|
15600
|
-
get maxHeight() {
|
|
15601
|
-
var _a, _b;
|
|
15602
|
-
return ((_a = this.theOptions) === null || _a === void 0 ? void 0 : _a.maxHeight) ? `${(_b = this.theOptions) === null || _b === void 0 ? void 0 : _b.maxHeight}px` : null;
|
|
15603
|
-
}
|
|
15604
15678
|
constructor(theContextService, viewContainerRef, elementRef, scrollDispatcher, ngZone, cdr, iconRegistry) {
|
|
15605
15679
|
super();
|
|
15606
15680
|
this.theContextService = theContextService;
|
|
@@ -15717,6 +15791,13 @@ class TheEditorComponent extends mixinUnsubscribe(MixinBase) {
|
|
|
15717
15791
|
});
|
|
15718
15792
|
};
|
|
15719
15793
|
}
|
|
15794
|
+
get theGlobalToolbarInstance() {
|
|
15795
|
+
return this.theGlobalToolbar ? this.theGlobalToolbar : this.globalToolbarInstance;
|
|
15796
|
+
}
|
|
15797
|
+
get maxHeight() {
|
|
15798
|
+
var _a, _b;
|
|
15799
|
+
return ((_a = this.theOptions) === null || _a === void 0 ? void 0 : _a.maxHeight) ? `${(_b = this.theOptions) === null || _b === void 0 ? void 0 : _b.maxHeight}px` : null;
|
|
15800
|
+
}
|
|
15720
15801
|
ngOnInit() {
|
|
15721
15802
|
this.initialize();
|
|
15722
15803
|
this.initCdkScroll();
|
|
@@ -15959,8 +16040,8 @@ class TheEditorComponent extends mixinUnsubscribe(MixinBase) {
|
|
|
15959
16040
|
};
|
|
15960
16041
|
}
|
|
15961
16042
|
}
|
|
15962
|
-
TheEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15963
|
-
TheEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
16043
|
+
TheEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheEditorComponent, deps: [{ token: TheContextService }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i2$2.ScrollDispatcher }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i3.ThyIconRegistry }], target: i0.ɵɵFactoryTarget.Component });
|
|
16044
|
+
TheEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: TheEditorComponent, selector: "the-editor, theEditor", inputs: { theOptions: "theOptions", thePlugins: "thePlugins", theGlobalToolbar: "theGlobalToolbar", theDecorate: "theDecorate", theOnError: "theOnError" }, outputs: { theOnSave: "theOnSave", theOnDOMEvent: "theOnDOMEvent", theEditorCreated: "theEditorCreated", theUploadingStatus: "theUploadingStatus" }, host: { properties: { "class.the-editor-readonly": "theOptions?.readonly" }, classAttribute: "the-editor" }, providers: [
|
|
15964
16045
|
TheContextService,
|
|
15965
16046
|
TheColorSelectService,
|
|
15966
16047
|
{
|
|
@@ -15969,7 +16050,7 @@ TheEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
15969
16050
|
multi: true
|
|
15970
16051
|
}
|
|
15971
16052
|
], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "theEditableContainer", first: true, predicate: ["theEditableContainer"], descendants: true, read: ElementRef, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, 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 #theEditableContainer\n class=\"the-editable-container\"\n thyImageGroup\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?.inlineToolbarVisible\"\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.inline\"\n ></the-inline-toolbar>\n <div *ngIf=\"!theOptions?.readonly\" theQuickInsert [editor]=\"editor\" [isVisible]=\"visibleQuickInsertPlus\"></div>\n <the-template #templateInstance></the-template>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i1.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"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.ThyImageGroupComponent, selector: "thy-image-group, [thyImageGroup]" }, { kind: "component", type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { kind: "component", type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { kind: "component", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "isVisible"] }, { kind: "component", type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheEditorComponent, decorators: [{
|
|
15973
16054
|
type: Component,
|
|
15974
16055
|
args: [{ selector: 'the-editor, theEditor', providers: [
|
|
15975
16056
|
TheContextService,
|
|
@@ -16016,10 +16097,10 @@ const ENTRY_COMMON_COMPONENTS = [TheColumnResizeOverlayHandleComponent];
|
|
|
16016
16097
|
const DIRECTIVES = [TheColumnResizeDirective];
|
|
16017
16098
|
class TheColumnResizeCommonModule {
|
|
16018
16099
|
}
|
|
16019
|
-
TheColumnResizeCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16020
|
-
TheColumnResizeCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
16021
|
-
TheColumnResizeCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
16022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16100
|
+
TheColumnResizeCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16101
|
+
TheColumnResizeCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeCommonModule, declarations: [TheColumnResizeOverlayHandleComponent], exports: [TheColumnResizeOverlayHandleComponent] });
|
|
16102
|
+
TheColumnResizeCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeCommonModule });
|
|
16103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnResizeCommonModule, decorators: [{
|
|
16023
16104
|
type: NgModule,
|
|
16024
16105
|
args: [{
|
|
16025
16106
|
declarations: ENTRY_COMMON_COMPONENTS,
|
|
@@ -16028,10 +16109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
16028
16109
|
}] });
|
|
16029
16110
|
class TheColumnSizeModule {
|
|
16030
16111
|
}
|
|
16031
|
-
TheColumnSizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16032
|
-
TheColumnSizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
16033
|
-
TheColumnSizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
16034
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16112
|
+
TheColumnSizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnSizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16113
|
+
TheColumnSizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: TheColumnSizeModule, declarations: [TheColumnResizeDirective], imports: [OverlayModule, TheColumnResizeCommonModule], exports: [TheColumnResizeDirective] });
|
|
16114
|
+
TheColumnSizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnSizeModule, imports: [OverlayModule, TheColumnResizeCommonModule] });
|
|
16115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheColumnSizeModule, decorators: [{
|
|
16035
16116
|
type: NgModule,
|
|
16036
16117
|
args: [{
|
|
16037
16118
|
imports: [OverlayModule, TheColumnResizeCommonModule],
|
|
@@ -16113,8 +16194,8 @@ const PLUGIN_COMPONENTS = [
|
|
|
16113
16194
|
const PIPES = [ElementStylePipe, ElementClassPipe, TableFreezeColumnPipe, TableFreezeRowPipe];
|
|
16114
16195
|
class TheEditorModule {
|
|
16115
16196
|
}
|
|
16116
|
-
TheEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16117
|
-
TheEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
16197
|
+
TheEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16198
|
+
TheEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: TheEditorModule, declarations: [TheEditorComponent, ElementStylePipe, ElementClassPipe, TableFreezeColumnPipe, TableFreezeRowPipe, TheToolbarComponent,
|
|
16118
16199
|
TheToolbarDropdownComponent,
|
|
16119
16200
|
TheToolbarGroupComponent,
|
|
16120
16201
|
TheToolbarItemComponent,
|
|
@@ -16185,14 +16266,14 @@ TheEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
16185
16266
|
TheListboxGroupDirective,
|
|
16186
16267
|
TheListboxDirective,
|
|
16187
16268
|
ThePreventDefaultDirective] });
|
|
16188
|
-
TheEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
16269
|
+
TheEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheEditorModule, providers: [
|
|
16189
16270
|
{
|
|
16190
16271
|
provide: TheToolbarGroupToken,
|
|
16191
16272
|
useValue: TheToolbarGroupComponent
|
|
16192
16273
|
},
|
|
16193
16274
|
THE_MODE_PROVIDER
|
|
16194
16275
|
], imports: [CommonModule, ScrollingModule, SlateModule, FormsModule, TETHYS, CodemirrorModule, TheColumnSizeModule] });
|
|
16195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheEditorModule, decorators: [{
|
|
16196
16277
|
type: NgModule,
|
|
16197
16278
|
args: [{
|
|
16198
16279
|
declarations: [TheEditorComponent, ...PIPES, ...COMPONENTS, ...PLUGIN_COMPONENTS],
|
|
@@ -16257,9 +16338,9 @@ class TheToolbarService {
|
|
|
16257
16338
|
});
|
|
16258
16339
|
}
|
|
16259
16340
|
}
|
|
16260
|
-
TheToolbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16261
|
-
TheToolbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
16262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16341
|
+
TheToolbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16342
|
+
TheToolbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarService });
|
|
16343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TheToolbarService, decorators: [{
|
|
16263
16344
|
type: Injectable
|
|
16264
16345
|
}] });
|
|
16265
16346
|
|