@skyux/text-editor 7.5.0 → 7.6.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 +33 -33
- package/esm2020/lib/modules/rich-text-display/rich-text-display.component.mjs +2 -2
- package/esm2020/lib/modules/text-editor/text-editor.component.mjs +13 -13
- package/esm2020/lib/modules/text-editor/types/font-state.mjs +1 -1
- package/esm2020/lib/modules/text-editor/types/style-state.mjs +1 -1
- package/esm2020/lib/modules/text-editor/types/text-editor-merge-field.mjs +1 -1
- package/fesm2015/skyux-text-editor.mjs +13 -13
- package/fesm2015/skyux-text-editor.mjs.map +1 -1
- package/fesm2020/skyux-text-editor.mjs +13 -13
- package/fesm2020/skyux-text-editor.mjs.map +1 -1
- package/lib/modules/rich-text-display/rich-text-display.component.d.ts +1 -1
- package/lib/modules/text-editor/text-editor.component.d.ts +10 -10
- package/lib/modules/text-editor/types/font-state.d.ts +2 -2
- package/lib/modules/text-editor/types/style-state.d.ts +8 -8
- package/lib/modules/text-editor/types/text-editor-merge-field.d.ts +3 -3
- package/package.json +12 -12
|
@@ -82,7 +82,7 @@ class SkyRichTextDisplayComponent {
|
|
|
82
82
|
__classPrivateFieldSet(this, _SkyRichTextDisplayComponent_sanitizationService, sanitizationService, "f");
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* The rich text to display.
|
|
86
86
|
*/
|
|
87
87
|
set richText(value) {
|
|
88
88
|
if (value) {
|
|
@@ -1353,7 +1353,7 @@ class SkyTextEditorComponent {
|
|
|
1353
1353
|
constructor(changeDetector, coreAdapterService, adapterService, editorService, sanitizationService, ngControl, zone, idSvc) {
|
|
1354
1354
|
_SkyTextEditorComponent_instances.add(this);
|
|
1355
1355
|
/**
|
|
1356
|
-
*
|
|
1356
|
+
* Whether to put focus on the editor after it renders.
|
|
1357
1357
|
*/
|
|
1358
1358
|
this.autofocus = false;
|
|
1359
1359
|
this.editorFocusStream = new Subject();
|
|
@@ -1397,7 +1397,7 @@ class SkyTextEditorComponent {
|
|
|
1397
1397
|
ngControl.valueAccessor = this;
|
|
1398
1398
|
}
|
|
1399
1399
|
/**
|
|
1400
|
-
*
|
|
1400
|
+
* Whether to disable the text editor.
|
|
1401
1401
|
* @default false
|
|
1402
1402
|
*/
|
|
1403
1403
|
set disabled(value) {
|
|
@@ -1426,7 +1426,7 @@ class SkyTextEditorComponent {
|
|
|
1426
1426
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__disabled, "f");
|
|
1427
1427
|
}
|
|
1428
1428
|
/**
|
|
1429
|
-
*
|
|
1429
|
+
* The fonts to include in the font picker.
|
|
1430
1430
|
* @default [{name: 'Blackbaud Sans', value: '"Blackbaud Sans", Arial, sans-serif'}, {name: 'Arial', value: 'Arial'}, {name: 'Arial Black', value: '"Arial Black"'}, {name: 'Courier New', value: '"Courier New"'}, {name: 'Georgia', value: 'Georgia, serif'}, {name: 'Tahoma', value: 'Tahoma, Geneva, sans-serif'}, {name: 'Times New Roman', value: '"Times New Roman"'}, {name: 'Trebuchet MS', value: '"Trebuchet MS", sans-serif'}, {name: 'Verdana', value: 'Verdana, Geneva, sans-serif'}]
|
|
1431
1431
|
*/
|
|
1432
1432
|
set fontList(value) {
|
|
@@ -1436,7 +1436,7 @@ class SkyTextEditorComponent {
|
|
|
1436
1436
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__fontList, "f");
|
|
1437
1437
|
}
|
|
1438
1438
|
/**
|
|
1439
|
-
*
|
|
1439
|
+
* The font sizes to include in the font size picker.
|
|
1440
1440
|
* @default [6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 22, 24, 26, 28, 36, 48]
|
|
1441
1441
|
*/
|
|
1442
1442
|
set fontSizeList(value) {
|
|
@@ -1446,7 +1446,7 @@ class SkyTextEditorComponent {
|
|
|
1446
1446
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__fontSizeList, "f");
|
|
1447
1447
|
}
|
|
1448
1448
|
/**
|
|
1449
|
-
*
|
|
1449
|
+
* The unique ID attribute for the text editor.
|
|
1450
1450
|
* By default, the component generates a random ID.
|
|
1451
1451
|
*/
|
|
1452
1452
|
set id(value) {
|
|
@@ -1456,7 +1456,7 @@ class SkyTextEditorComponent {
|
|
|
1456
1456
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent_id, "f");
|
|
1457
1457
|
}
|
|
1458
1458
|
/**
|
|
1459
|
-
*
|
|
1459
|
+
* The initial styles for all content, including background color, font size, and link state.
|
|
1460
1460
|
*/
|
|
1461
1461
|
set initialStyleState(state) {
|
|
1462
1462
|
// Do not update the state after initialization has taken place
|
|
@@ -1472,7 +1472,7 @@ class SkyTextEditorComponent {
|
|
|
1472
1472
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__initialStyleState, "f");
|
|
1473
1473
|
}
|
|
1474
1474
|
/**
|
|
1475
|
-
*
|
|
1475
|
+
* The menus to include in the menu bar.
|
|
1476
1476
|
* @default [ 'edit', 'format' ]
|
|
1477
1477
|
*/
|
|
1478
1478
|
set menus(value) {
|
|
@@ -1482,7 +1482,7 @@ class SkyTextEditorComponent {
|
|
|
1482
1482
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__menus, "f");
|
|
1483
1483
|
}
|
|
1484
1484
|
/**
|
|
1485
|
-
*
|
|
1485
|
+
* The merge fields to include in the merge field menu.
|
|
1486
1486
|
*/
|
|
1487
1487
|
set mergeFields(value) {
|
|
1488
1488
|
__classPrivateFieldSet(this, _SkyTextEditorComponent__mergeFields, value || [], "f");
|
|
@@ -1491,7 +1491,7 @@ class SkyTextEditorComponent {
|
|
|
1491
1491
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__mergeFields, "f");
|
|
1492
1492
|
}
|
|
1493
1493
|
/**
|
|
1494
|
-
*
|
|
1494
|
+
* Placeholder text to display when the text entry area is empty.
|
|
1495
1495
|
*/
|
|
1496
1496
|
set placeholder(value) {
|
|
1497
1497
|
/* istanbul ignore else */
|
|
@@ -1506,7 +1506,7 @@ class SkyTextEditorComponent {
|
|
|
1506
1506
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__placeholder, "f");
|
|
1507
1507
|
}
|
|
1508
1508
|
/**
|
|
1509
|
-
*
|
|
1509
|
+
* The actions to include in the toolbar and determines their order.
|
|
1510
1510
|
* @default [ 'font-family', 'font-size', 'font-style', 'color', 'list', 'link ]
|
|
1511
1511
|
*/
|
|
1512
1512
|
set toolbarActions(value) {
|
|
@@ -1614,7 +1614,7 @@ _SkyTextEditorComponent_defaultId = new WeakMap(), _SkyTextEditorComponent_id =
|
|
|
1614
1614
|
.pipe(takeUntil(__classPrivateFieldGet(this, _SkyTextEditorComponent_ngUnsubscribe, "f")))
|
|
1615
1615
|
.subscribe(() => {
|
|
1616
1616
|
// Angular doesn't run change detection for changes originating inside an iframe,
|
|
1617
|
-
// so we have to call the onChange() event inside NgZone to force change
|
|
1617
|
+
// so we have to call the onChange() event inside NgZone to force change propagation to consuming components.
|
|
1618
1618
|
__classPrivateFieldGet(this, _SkyTextEditorComponent_zone, "f").run(() => {
|
|
1619
1619
|
__classPrivateFieldGet(this, _SkyTextEditorComponent_instances, "m", _SkyTextEditorComponent_viewToModelUpdate).call(this);
|
|
1620
1620
|
});
|
|
@@ -1637,7 +1637,7 @@ _SkyTextEditorComponent_defaultId = new WeakMap(), _SkyTextEditorComponent_id =
|
|
|
1637
1637
|
.pipe(takeUntil(__classPrivateFieldGet(this, _SkyTextEditorComponent_ngUnsubscribe, "f")))
|
|
1638
1638
|
.subscribe(() => {
|
|
1639
1639
|
// Angular doesn't run change detection for changes originating inside an iframe,
|
|
1640
|
-
// so we have to run markForCheck() inside the NgZone to force change
|
|
1640
|
+
// so we have to run markForCheck() inside the NgZone to force change propagation to consuming components.
|
|
1641
1641
|
__classPrivateFieldGet(this, _SkyTextEditorComponent_zone, "f").run(() => {
|
|
1642
1642
|
__classPrivateFieldGet(this, _SkyTextEditorComponent__onTouched, "f").call(this);
|
|
1643
1643
|
});
|