@skyux/text-editor 10.2.0 → 10.3.0
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 +441 -376
- package/esm2022/lib/modules/text-editor/menubar/text-editor-menubar.component.mjs +2 -2
- package/esm2022/lib/modules/text-editor/services/text-editor-adapter.service.mjs +21 -1
- package/esm2022/lib/modules/text-editor/text-editor.component.mjs +29 -5
- package/esm2022/lib/modules/text-editor/toolbar/text-editor-toolbar.component.mjs +2 -2
- package/fesm2022/skyux-text-editor.mjs +48 -13
- package/fesm2022/skyux-text-editor.mjs.map +1 -1
- package/lib/modules/text-editor/services/text-editor-adapter.service.d.ts +4 -0
- package/lib/modules/text-editor/text-editor.component.d.ts +2 -1
- package/package.json +12 -12
- package/esm2022/lib/modules/shared/forms-utility.mjs +0 -10
- package/lib/modules/shared/forms-utility.d.ts +0 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationErrors } from '@angular/forms';
|
|
1
2
|
import { SkyAppWindowRef } from '@skyux/core';
|
|
2
3
|
import { EditorCommand } from '../types/editor-command';
|
|
3
4
|
import { EditorSetting } from '../types/editor-setting';
|
|
@@ -36,7 +37,10 @@ export declare class SkyTextEditorAdapterService {
|
|
|
36
37
|
getSelectedAnchorTag(): HTMLAnchorElement | null | undefined;
|
|
37
38
|
saveSelection(): Range | undefined;
|
|
38
39
|
selectElement(element: HTMLElement): void;
|
|
40
|
+
setErrorAttributes(errorId: string, errors: ValidationErrors | null): void;
|
|
41
|
+
setLabelAttribute(label: string | undefined): void;
|
|
39
42
|
setPlaceholder(placeholder?: string): void;
|
|
43
|
+
setRequiredAttribute(required: boolean): void;
|
|
40
44
|
setFontSize(fontSize: number): void;
|
|
41
45
|
removeObservers(setting: EditorSetting): void;
|
|
42
46
|
editorSelected(): boolean;
|
|
@@ -51,7 +51,8 @@ export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy,
|
|
|
51
51
|
* The text to display as the text editor's label.
|
|
52
52
|
* @preview
|
|
53
53
|
*/
|
|
54
|
-
labelText: string | undefined;
|
|
54
|
+
set labelText(value: string | undefined);
|
|
55
|
+
get labelText(): string | undefined;
|
|
55
56
|
/**
|
|
56
57
|
* The menus to include in the menu bar.
|
|
57
58
|
* @default [ 'edit', 'format' ]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/text-editor",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"@angular/core": "^17.3.1",
|
|
35
35
|
"@angular/forms": "^17.3.1",
|
|
36
36
|
"@angular/platform-browser": "^17.3.1",
|
|
37
|
-
"@skyux/colorpicker": "10.
|
|
38
|
-
"@skyux/core": "10.
|
|
39
|
-
"@skyux/forms": "10.
|
|
40
|
-
"@skyux/i18n": "10.
|
|
41
|
-
"@skyux/indicators": "10.
|
|
42
|
-
"@skyux/layout": "10.
|
|
43
|
-
"@skyux/modals": "10.
|
|
44
|
-
"@skyux/popovers": "10.
|
|
45
|
-
"@skyux/tabs": "10.
|
|
46
|
-
"@skyux/theme": "10.
|
|
47
|
-
"@skyux/validation": "10.
|
|
37
|
+
"@skyux/colorpicker": "10.3.0",
|
|
38
|
+
"@skyux/core": "10.3.0",
|
|
39
|
+
"@skyux/forms": "10.3.0",
|
|
40
|
+
"@skyux/i18n": "10.3.0",
|
|
41
|
+
"@skyux/indicators": "10.3.0",
|
|
42
|
+
"@skyux/layout": "10.3.0",
|
|
43
|
+
"@skyux/modals": "10.3.0",
|
|
44
|
+
"@skyux/popovers": "10.3.0",
|
|
45
|
+
"@skyux/tabs": "10.3.0",
|
|
46
|
+
"@skyux/theme": "10.3.0",
|
|
47
|
+
"@skyux/validation": "10.3.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"dompurify": "3.0.11",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Need to add the following to classes which contain static methods.
|
|
2
|
-
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
3
|
-
// @dynamic
|
|
4
|
-
export class SkyFormsUtility {
|
|
5
|
-
/** Coerces a data-bound value (typically a string) to a boolean. */
|
|
6
|
-
static coerceBooleanProperty(value) {
|
|
7
|
-
return value !== undefined && `${value}` !== 'false';
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybXMtdXRpbGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy90ZXh0LWVkaXRvci9zcmMvbGliL21vZHVsZXMvc2hhcmVkL2Zvcm1zLXV0aWxpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEscUVBQXFFO0FBQ3JFLDJEQUEyRDtBQUMzRCxXQUFXO0FBQ1gsTUFBTSxPQUFPLGVBQWU7SUFDMUIsb0VBQW9FO0lBQzdELE1BQU0sQ0FBQyxxQkFBcUIsQ0FBQyxLQUFVO1FBQzVDLE9BQU8sS0FBSyxLQUFLLFNBQVMsSUFBSSxHQUFHLEtBQUssRUFBRSxLQUFLLE9BQU8sQ0FBQztJQUN2RCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBOZWVkIHRvIGFkZCB0aGUgZm9sbG93aW5nIHRvIGNsYXNzZXMgd2hpY2ggY29udGFpbiBzdGF0aWMgbWV0aG9kcy5cbi8vIFNlZTogaHR0cHM6Ly9naXRodWIuY29tL25nLXBhY2thZ3IvbmctcGFja2Fnci9pc3N1ZXMvNjQxXG4vLyBAZHluYW1pY1xuZXhwb3J0IGNsYXNzIFNreUZvcm1zVXRpbGl0eSB7XG4gIC8qKiBDb2VyY2VzIGEgZGF0YS1ib3VuZCB2YWx1ZSAodHlwaWNhbGx5IGEgc3RyaW5nKSB0byBhIGJvb2xlYW4uICovXG4gIHB1YmxpYyBzdGF0aWMgY29lcmNlQm9vbGVhblByb3BlcnR5KHZhbHVlOiBhbnkpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdmFsdWUgIT09IHVuZGVmaW5lZCAmJiBgJHt2YWx1ZX1gICE9PSAnZmFsc2UnO1xuICB9XG59XG4iXX0=
|