@skyux/text-editor 7.5.0 → 7.6.1
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) {
|
|
@@ -1347,7 +1347,7 @@ class SkyTextEditorComponent {
|
|
|
1347
1347
|
constructor(changeDetector, coreAdapterService, adapterService, editorService, sanitizationService, ngControl, zone, idSvc) {
|
|
1348
1348
|
_SkyTextEditorComponent_instances.add(this);
|
|
1349
1349
|
/**
|
|
1350
|
-
*
|
|
1350
|
+
* Whether to put focus on the editor after it renders.
|
|
1351
1351
|
*/
|
|
1352
1352
|
this.autofocus = false;
|
|
1353
1353
|
this.editorFocusStream = new Subject();
|
|
@@ -1391,7 +1391,7 @@ class SkyTextEditorComponent {
|
|
|
1391
1391
|
ngControl.valueAccessor = this;
|
|
1392
1392
|
}
|
|
1393
1393
|
/**
|
|
1394
|
-
*
|
|
1394
|
+
* Whether to disable the text editor.
|
|
1395
1395
|
* @default false
|
|
1396
1396
|
*/
|
|
1397
1397
|
set disabled(value) {
|
|
@@ -1420,7 +1420,7 @@ class SkyTextEditorComponent {
|
|
|
1420
1420
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__disabled, "f");
|
|
1421
1421
|
}
|
|
1422
1422
|
/**
|
|
1423
|
-
*
|
|
1423
|
+
* The fonts to include in the font picker.
|
|
1424
1424
|
* @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'}]
|
|
1425
1425
|
*/
|
|
1426
1426
|
set fontList(value) {
|
|
@@ -1430,7 +1430,7 @@ class SkyTextEditorComponent {
|
|
|
1430
1430
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__fontList, "f");
|
|
1431
1431
|
}
|
|
1432
1432
|
/**
|
|
1433
|
-
*
|
|
1433
|
+
* The font sizes to include in the font size picker.
|
|
1434
1434
|
* @default [6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 22, 24, 26, 28, 36, 48]
|
|
1435
1435
|
*/
|
|
1436
1436
|
set fontSizeList(value) {
|
|
@@ -1440,7 +1440,7 @@ class SkyTextEditorComponent {
|
|
|
1440
1440
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__fontSizeList, "f");
|
|
1441
1441
|
}
|
|
1442
1442
|
/**
|
|
1443
|
-
*
|
|
1443
|
+
* The unique ID attribute for the text editor.
|
|
1444
1444
|
* By default, the component generates a random ID.
|
|
1445
1445
|
*/
|
|
1446
1446
|
set id(value) {
|
|
@@ -1450,7 +1450,7 @@ class SkyTextEditorComponent {
|
|
|
1450
1450
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent_id, "f");
|
|
1451
1451
|
}
|
|
1452
1452
|
/**
|
|
1453
|
-
*
|
|
1453
|
+
* The initial styles for all content, including background color, font size, and link state.
|
|
1454
1454
|
*/
|
|
1455
1455
|
set initialStyleState(state) {
|
|
1456
1456
|
// Do not update the state after initialization has taken place
|
|
@@ -1463,7 +1463,7 @@ class SkyTextEditorComponent {
|
|
|
1463
1463
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__initialStyleState, "f");
|
|
1464
1464
|
}
|
|
1465
1465
|
/**
|
|
1466
|
-
*
|
|
1466
|
+
* The menus to include in the menu bar.
|
|
1467
1467
|
* @default [ 'edit', 'format' ]
|
|
1468
1468
|
*/
|
|
1469
1469
|
set menus(value) {
|
|
@@ -1473,7 +1473,7 @@ class SkyTextEditorComponent {
|
|
|
1473
1473
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__menus, "f");
|
|
1474
1474
|
}
|
|
1475
1475
|
/**
|
|
1476
|
-
*
|
|
1476
|
+
* The merge fields to include in the merge field menu.
|
|
1477
1477
|
*/
|
|
1478
1478
|
set mergeFields(value) {
|
|
1479
1479
|
__classPrivateFieldSet(this, _SkyTextEditorComponent__mergeFields, value || [], "f");
|
|
@@ -1482,7 +1482,7 @@ class SkyTextEditorComponent {
|
|
|
1482
1482
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__mergeFields, "f");
|
|
1483
1483
|
}
|
|
1484
1484
|
/**
|
|
1485
|
-
*
|
|
1485
|
+
* Placeholder text to display when the text entry area is empty.
|
|
1486
1486
|
*/
|
|
1487
1487
|
set placeholder(value) {
|
|
1488
1488
|
/* istanbul ignore else */
|
|
@@ -1497,7 +1497,7 @@ class SkyTextEditorComponent {
|
|
|
1497
1497
|
return __classPrivateFieldGet(this, _SkyTextEditorComponent__placeholder, "f");
|
|
1498
1498
|
}
|
|
1499
1499
|
/**
|
|
1500
|
-
*
|
|
1500
|
+
* The actions to include in the toolbar and determines their order.
|
|
1501
1501
|
* @default [ 'font-family', 'font-size', 'font-style', 'color', 'list', 'link ]
|
|
1502
1502
|
*/
|
|
1503
1503
|
set toolbarActions(value) {
|
|
@@ -1603,7 +1603,7 @@ _SkyTextEditorComponent_defaultId = new WeakMap(), _SkyTextEditorComponent_id =
|
|
|
1603
1603
|
.pipe(takeUntil(__classPrivateFieldGet(this, _SkyTextEditorComponent_ngUnsubscribe, "f")))
|
|
1604
1604
|
.subscribe(() => {
|
|
1605
1605
|
// Angular doesn't run change detection for changes originating inside an iframe,
|
|
1606
|
-
// so we have to call the onChange() event inside NgZone to force change
|
|
1606
|
+
// so we have to call the onChange() event inside NgZone to force change propagation to consuming components.
|
|
1607
1607
|
__classPrivateFieldGet(this, _SkyTextEditorComponent_zone, "f").run(() => {
|
|
1608
1608
|
__classPrivateFieldGet(this, _SkyTextEditorComponent_instances, "m", _SkyTextEditorComponent_viewToModelUpdate).call(this);
|
|
1609
1609
|
});
|
|
@@ -1626,7 +1626,7 @@ _SkyTextEditorComponent_defaultId = new WeakMap(), _SkyTextEditorComponent_id =
|
|
|
1626
1626
|
.pipe(takeUntil(__classPrivateFieldGet(this, _SkyTextEditorComponent_ngUnsubscribe, "f")))
|
|
1627
1627
|
.subscribe(() => {
|
|
1628
1628
|
// Angular doesn't run change detection for changes originating inside an iframe,
|
|
1629
|
-
// so we have to run markForCheck() inside the NgZone to force change
|
|
1629
|
+
// so we have to run markForCheck() inside the NgZone to force change propagation to consuming components.
|
|
1630
1630
|
__classPrivateFieldGet(this, _SkyTextEditorComponent_zone, "f").run(() => {
|
|
1631
1631
|
__classPrivateFieldGet(this, _SkyTextEditorComponent__onTouched, "f").call(this);
|
|
1632
1632
|
});
|