@skyux/text-editor 9.0.0-alpha.7 → 9.0.0-alpha.9
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/documentation.json +377 -490
- package/esm2022/lib/modules/shared/sky-text-editor-resources.module.mjs +4 -2
- package/esm2022/lib/modules/text-editor/menubar/text-editor-menubar.component.mjs +37 -26
- package/esm2022/lib/modules/text-editor/text-editor.component.mjs +40 -33
- package/esm2022/lib/modules/text-editor/text-editor.module.mjs +5 -81
- package/esm2022/lib/modules/text-editor/toolbar/text-editor-toolbar.component.mjs +52 -37
- package/esm2022/lib/modules/text-editor/url-modal/text-editor-url-modal.component.mjs +36 -21
- package/fesm2022/skyux-text-editor.mjs +226 -254
- package/fesm2022/skyux-text-editor.mjs.map +1 -1
- package/lib/modules/text-editor/menubar/text-editor-menubar.component.d.ts +2 -5
- package/lib/modules/text-editor/text-editor.component.d.ts +5 -9
- package/lib/modules/text-editor/text-editor.module.d.ts +1 -16
- package/lib/modules/text-editor/toolbar/text-editor-toolbar.component.d.ts +2 -5
- package/lib/modules/text-editor/url-modal/text-editor-url-modal.component.d.ts +2 -4
- package/package.json +12 -12
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
2
|
import { SkyDropdownMessage } from '@skyux/popovers';
|
|
4
3
|
import { Subject } from 'rxjs';
|
|
5
|
-
import { SkyTextEditorAdapterService } from '../services/text-editor-adapter.service';
|
|
6
4
|
import { SkyTextEditorMenuType } from '../types/menu-type';
|
|
7
5
|
import { SkyTextEditorMergeField } from '../types/text-editor-merge-field';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
@@ -31,11 +29,10 @@ export declare class SkyTextEditorMenubarComponent implements OnDestroy, OnInit
|
|
|
31
29
|
keyShortcut?: string;
|
|
32
30
|
}[] | undefined;
|
|
33
31
|
mergeFieldDropdownStream: Subject<SkyDropdownMessage>;
|
|
34
|
-
constructor(adapterService: SkyTextEditorAdapterService, changeDetector: ChangeDetectorRef, resources: SkyLibResourcesService);
|
|
35
32
|
ngOnInit(): void;
|
|
36
33
|
ngOnDestroy(): void;
|
|
37
34
|
execCommand(command: string, value?: string): void;
|
|
38
35
|
insertMergeField(field: SkyTextEditorMergeField): void;
|
|
39
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorMenubarComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorMenubarComponent, "sky-text-editor-menubar", never, { "editorFocusStream": { "alias": "editorFocusStream"; "required": false; }; "menus": { "alias": "menus"; "required": false; }; "mergeFields": { "alias": "mergeFields"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never,
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorMenubarComponent, "sky-text-editor-menubar", never, { "editorFocusStream": { "alias": "editorFocusStream"; "required": false; }; "menus": { "alias": "menus"; "required": false; }; "mergeFields": { "alias": "mergeFields"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
41
38
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import {
|
|
3
|
-
import { SkyCoreAdapterService, SkyIdService } from '@skyux/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
3
|
import { Subject } from 'rxjs';
|
|
5
|
-
import { SkyTextEditorAdapterService } from './services/text-editor-adapter.service';
|
|
6
|
-
import { SkyTextEditorService } from './services/text-editor.service';
|
|
7
|
-
import { SkyTextSanitizationService } from './services/text-sanitization.service';
|
|
8
4
|
import { SkyTextEditorFont } from './types/font-state';
|
|
9
5
|
import { SkyTextEditorMenuType } from './types/menu-type';
|
|
10
6
|
import { SkyTextEditorStyleState } from './types/style-state';
|
|
@@ -14,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
14
10
|
/**
|
|
15
11
|
* The text editor component lets users format and manipulate text.
|
|
16
12
|
*/
|
|
17
|
-
export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy {
|
|
13
|
+
export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
18
14
|
#private;
|
|
19
15
|
/**
|
|
20
16
|
* Whether to put focus on the editor after it renders.
|
|
@@ -81,7 +77,7 @@ export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy
|
|
|
81
77
|
inputTemplateRef: TemplateRef<unknown> | undefined;
|
|
82
78
|
editorFocusStream: Subject<void>;
|
|
83
79
|
formControlClass: boolean;
|
|
84
|
-
constructor(
|
|
80
|
+
constructor();
|
|
85
81
|
ngAfterViewInit(): void;
|
|
86
82
|
ngOnDestroy(): void;
|
|
87
83
|
onIframeLoad(): void;
|
|
@@ -102,5 +98,5 @@ export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy
|
|
|
102
98
|
*/
|
|
103
99
|
setDisabledState(isDisabled: boolean): void;
|
|
104
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorComponent, never>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorComponent, "sky-text-editor", never, { "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "id": { "alias": "id"; "required": false; }; "initialStyleState": { "alias": "initialStyleState"; "required": false; }; "menus": { "alias": "menus"; "required": false; }; "mergeFields": { "alias": "mergeFields"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; }, {}, never, never,
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorComponent, "sky-text-editor", never, { "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "id": { "alias": "id"; "required": false; }; "initialStyleState": { "alias": "initialStyleState"; "required": false; }; "menus": { "alias": "menus"; "required": false; }; "mergeFields": { "alias": "mergeFields"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; }, {}, never, never, true, never>;
|
|
106
102
|
}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./text-editor.component";
|
|
3
|
-
import * as i2 from "./url-modal/text-editor-url-modal.component";
|
|
4
|
-
import * as i3 from "./toolbar/text-editor-toolbar.component";
|
|
5
|
-
import * as i4 from "./menubar/text-editor-menubar.component";
|
|
6
|
-
import * as i5 from "@angular/common";
|
|
7
|
-
import * as i6 from "@angular/forms";
|
|
8
|
-
import * as i7 from "@skyux/core";
|
|
9
|
-
import * as i8 from "../shared/sky-text-editor-resources.module";
|
|
10
|
-
import * as i9 from "@skyux/indicators";
|
|
11
|
-
import * as i10 from "@skyux/forms";
|
|
12
|
-
import * as i11 from "@skyux/colorpicker";
|
|
13
|
-
import * as i12 from "@skyux/popovers";
|
|
14
|
-
import * as i13 from "@skyux/modals";
|
|
15
|
-
import * as i14 from "@skyux/tabs";
|
|
16
|
-
import * as i15 from "@skyux/theme";
|
|
17
|
-
import * as i16 from "@skyux/layout";
|
|
18
3
|
export declare class SkyTextEditorModule {
|
|
19
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyTextEditorModule, [typeof i1.SkyTextEditorComponent
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyTextEditorModule, never, [typeof i1.SkyTextEditorComponent], [typeof i1.SkyTextEditorComponent]>;
|
|
21
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyTextEditorModule>;
|
|
22
7
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { SkyColorpickerMessage, SkyColorpickerOutput } from '@skyux/colorpicker';
|
|
3
|
-
import { SkyModalService } from '@skyux/modals';
|
|
4
3
|
import { SkyDropdownMessage } from '@skyux/popovers';
|
|
5
4
|
import { Subject } from 'rxjs';
|
|
6
|
-
import { SkyTextEditorAdapterService } from '../services/text-editor-adapter.service';
|
|
7
5
|
import { SkyTextEditorFont } from '../types/font-state';
|
|
8
6
|
import { SkyTextEditorStyleState } from '../types/style-state';
|
|
9
7
|
import { SkyTextEditorToolbarActionType } from '../types/toolbar-action-type';
|
|
@@ -27,7 +25,6 @@ export declare class SkyTextEditorToolbarComponent implements OnInit {
|
|
|
27
25
|
fontPickerStream: Subject<SkyDropdownMessage>;
|
|
28
26
|
fontSizeStream: Subject<SkyDropdownMessage>;
|
|
29
27
|
styleStateFontName: string | undefined;
|
|
30
|
-
constructor(adapterService: SkyTextEditorAdapterService, changeDetector: ChangeDetectorRef, modalService: SkyModalService);
|
|
31
28
|
ngOnInit(): void;
|
|
32
29
|
execCommand(command: string, value?: string): void;
|
|
33
30
|
toggleFontStyle(currentState: boolean, newState: boolean, command: string): void;
|
|
@@ -36,5 +33,5 @@ export declare class SkyTextEditorToolbarComponent implements OnInit {
|
|
|
36
33
|
changeFontSize(size: number): void;
|
|
37
34
|
onColorpickerColorChanged(color: SkyColorpickerOutput, isBackground?: boolean): void;
|
|
38
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorToolbarComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorToolbarComponent, "sky-text-editor-toolbar", never, { "editorFocusStream": { "alias": "editorFocusStream"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; "styleState": { "alias": "styleState"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never,
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorToolbarComponent, "sky-text-editor-toolbar", never, { "editorFocusStream": { "alias": "editorFocusStream"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; "styleState": { "alias": "styleState"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
37
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { SkyModalInstance } from '@skyux/modals';
|
|
2
1
|
import { SkyTabIndex } from '@skyux/tabs';
|
|
3
|
-
import { SkyUrlModalContext } from './text-editor-url-modal-context';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
/**
|
|
6
4
|
* @internal
|
|
@@ -17,10 +15,10 @@ export declare class SkyTextEditorUrlModalComponent {
|
|
|
17
15
|
subject: string;
|
|
18
16
|
target: number | string;
|
|
19
17
|
valid: boolean;
|
|
20
|
-
constructor(
|
|
18
|
+
constructor();
|
|
21
19
|
activeTabChanged(value: SkyTabIndex): void;
|
|
22
20
|
save(): void;
|
|
23
21
|
cancel(): void;
|
|
24
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorUrlModalComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorUrlModalComponent, "sky-text-editor-url-modal", never, {}, {}, never, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorUrlModalComponent, "sky-text-editor-url-modal", never, {}, {}, never, never, true, never>;
|
|
26
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/text-editor",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.9",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"@angular/core": "^16.2.1",
|
|
35
35
|
"@angular/forms": "^16.2.1",
|
|
36
36
|
"@angular/platform-browser": "^16.2.1",
|
|
37
|
-
"@skyux/colorpicker": "9.0.0-alpha.
|
|
38
|
-
"@skyux/core": "9.0.0-alpha.
|
|
39
|
-
"@skyux/forms": "9.0.0-alpha.
|
|
40
|
-
"@skyux/i18n": "9.0.0-alpha.
|
|
41
|
-
"@skyux/indicators": "9.0.0-alpha.
|
|
42
|
-
"@skyux/layout": "9.0.0-alpha.
|
|
43
|
-
"@skyux/modals": "9.0.0-alpha.
|
|
44
|
-
"@skyux/popovers": "9.0.0-alpha.
|
|
45
|
-
"@skyux/tabs": "9.0.0-alpha.
|
|
46
|
-
"@skyux/theme": "9.0.0-alpha.
|
|
47
|
-
"@skyux/validation": "9.0.0-alpha.
|
|
37
|
+
"@skyux/colorpicker": "9.0.0-alpha.9",
|
|
38
|
+
"@skyux/core": "9.0.0-alpha.9",
|
|
39
|
+
"@skyux/forms": "9.0.0-alpha.9",
|
|
40
|
+
"@skyux/i18n": "9.0.0-alpha.9",
|
|
41
|
+
"@skyux/indicators": "9.0.0-alpha.9",
|
|
42
|
+
"@skyux/layout": "9.0.0-alpha.9",
|
|
43
|
+
"@skyux/modals": "9.0.0-alpha.9",
|
|
44
|
+
"@skyux/popovers": "9.0.0-alpha.9",
|
|
45
|
+
"@skyux/tabs": "9.0.0-alpha.9",
|
|
46
|
+
"@skyux/theme": "9.0.0-alpha.9",
|
|
47
|
+
"@skyux/validation": "9.0.0-alpha.9"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"dompurify": "3.0.5",
|