@skyux/text-editor 5.0.3 → 5.5.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/README.md +7 -1
- package/bundles/skyux-text-editor.umd.js +39 -39
- package/documentation.json +61 -14
- package/esm2015/index.js +15 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/rich-text-display/rich-text-display.component.js +39 -0
- package/esm2015/lib/modules/rich-text-display/rich-text-display.component.js.map +1 -0
- package/esm2015/lib/modules/rich-text-display/rich-text-display.module.js +18 -0
- package/esm2015/lib/modules/rich-text-display/rich-text-display.module.js.map +1 -0
- package/esm2015/lib/modules/shared/forms-utility.js +10 -0
- package/esm2015/lib/modules/shared/forms-utility.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-text-editor-resources.module.js +106 -0
- package/esm2015/lib/modules/shared/sky-text-editor-resources.module.js.map +1 -0
- package/esm2015/lib/modules/text-editor/defaults/font-list-defaults.js +42 -0
- package/esm2015/lib/modules/text-editor/defaults/font-list-defaults.js.map +1 -0
- package/esm2015/lib/modules/text-editor/defaults/font-size-list-defaults.js +7 -0
- package/esm2015/lib/modules/text-editor/defaults/font-size-list-defaults.js.map +1 -0
- package/esm2015/lib/modules/text-editor/defaults/menu-defaults.js +5 -0
- package/esm2015/lib/modules/text-editor/defaults/menu-defaults.js.map +1 -0
- package/esm2015/lib/modules/text-editor/defaults/style-state-defaults.js +15 -0
- package/esm2015/lib/modules/text-editor/defaults/style-state-defaults.js.map +1 -0
- package/esm2015/lib/modules/text-editor/defaults/toolbar-action-defaults.js +12 -0
- package/esm2015/lib/modules/text-editor/defaults/toolbar-action-defaults.js.map +1 -0
- package/esm2015/lib/modules/text-editor/menubar/text-editor-menubar.component.js +196 -0
- package/esm2015/lib/modules/text-editor/menubar/text-editor-menubar.component.js.map +1 -0
- package/esm2015/lib/modules/text-editor/services/text-editor-adapter.service.js +473 -0
- package/esm2015/lib/modules/text-editor/services/text-editor-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/text-editor/services/text-editor-selection.service.js +80 -0
- package/esm2015/lib/modules/text-editor/services/text-editor-selection.service.js.map +1 -0
- package/esm2015/lib/modules/text-editor/services/text-editor.service.js +61 -0
- package/esm2015/lib/modules/text-editor/services/text-editor.service.js.map +1 -0
- package/esm2015/lib/modules/text-editor/services/text-sanitization.service.js +38 -0
- package/esm2015/lib/modules/text-editor/services/text-sanitization.service.js.map +1 -0
- package/esm2015/lib/modules/text-editor/text-editor.component.js +322 -0
- package/esm2015/lib/modules/text-editor/text-editor.component.js.map +1 -0
- package/esm2015/lib/modules/text-editor/text-editor.module.js +99 -0
- package/esm2015/lib/modules/text-editor/text-editor.module.js.map +1 -0
- package/esm2015/lib/modules/text-editor/toolbar/text-editor-toolbar.component.js +175 -0
- package/esm2015/lib/modules/text-editor/toolbar/text-editor-toolbar.component.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/editor-command.js +2 -0
- package/esm2015/lib/modules/text-editor/types/editor-command.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/editor-setting.js +2 -0
- package/esm2015/lib/modules/text-editor/types/editor-setting.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/font-state.js +2 -0
- package/esm2015/lib/modules/text-editor/types/font-state.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/menu-type.js +2 -0
- package/esm2015/lib/modules/text-editor/types/menu-type.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/style-state.js +2 -0
- package/esm2015/lib/modules/text-editor/types/style-state.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/text-editor-merge-field.js +2 -0
- package/esm2015/lib/modules/text-editor/types/text-editor-merge-field.js.map +1 -0
- package/esm2015/lib/modules/text-editor/types/toolbar-action-type.js +2 -0
- package/esm2015/lib/modules/text-editor/types/toolbar-action-type.js.map +1 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-modal-context.js +6 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-modal-context.js.map +1 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-modal-result.js +2 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-modal-result.js.map +1 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-modal.component.js +121 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-modal.component.js.map +1 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-target.js +9 -0
- package/esm2015/lib/modules/text-editor/url-modal/text-editor-url-target.js.map +1 -0
- package/esm2015/skyux-text-editor.js +2 -2
- package/esm2015/skyux-text-editor.js.map +1 -0
- package/fesm2015/skyux-text-editor.js +105 -105
- package/fesm2015/skyux-text-editor.js.map +1 -1
- package/index.d.ts +12 -0
- package/{modules → lib/modules}/rich-text-display/rich-text-display.component.d.ts +0 -0
- package/{modules → lib/modules}/rich-text-display/rich-text-display.module.d.ts +0 -0
- package/{modules → lib/modules}/shared/forms-utility.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-text-editor-resources.module.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/defaults/font-list-defaults.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/defaults/font-size-list-defaults.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/defaults/menu-defaults.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/defaults/style-state-defaults.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/defaults/toolbar-action-defaults.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/menubar/text-editor-menubar.component.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/services/text-editor-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/services/text-editor-selection.service.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/services/text-editor.service.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/services/text-sanitization.service.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/text-editor.component.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/text-editor.module.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/toolbar/text-editor-toolbar.component.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/editor-command.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/editor-setting.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/font-state.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/menu-type.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/style-state.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/text-editor-merge-field.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/types/toolbar-action-type.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/url-modal/text-editor-url-modal-context.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/url-modal/text-editor-url-modal-result.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/url-modal/text-editor-url-modal.component.d.ts +0 -0
- package/{modules → lib/modules}/text-editor/url-modal/text-editor-url-target.d.ts +0 -0
- package/package.json +27 -13
- package/skyux-text-editor.d.ts +1 -1
- package/LICENSE +0 -21
- package/bundles/skyux-text-editor.umd.js.map +0 -1
- package/esm2015/modules/rich-text-display/rich-text-display.component.js +0 -37
- package/esm2015/modules/rich-text-display/rich-text-display.module.js +0 -18
- package/esm2015/modules/shared/forms-utility.js +0 -10
- package/esm2015/modules/shared/sky-text-editor-resources.module.js +0 -106
- package/esm2015/modules/text-editor/defaults/font-list-defaults.js +0 -42
- package/esm2015/modules/text-editor/defaults/font-size-list-defaults.js +0 -7
- package/esm2015/modules/text-editor/defaults/menu-defaults.js +0 -5
- package/esm2015/modules/text-editor/defaults/style-state-defaults.js +0 -15
- package/esm2015/modules/text-editor/defaults/toolbar-action-defaults.js +0 -12
- package/esm2015/modules/text-editor/menubar/text-editor-menubar.component.js +0 -194
- package/esm2015/modules/text-editor/services/text-editor-adapter.service.js +0 -470
- package/esm2015/modules/text-editor/services/text-editor-selection.service.js +0 -80
- package/esm2015/modules/text-editor/services/text-editor.service.js +0 -61
- package/esm2015/modules/text-editor/services/text-sanitization.service.js +0 -38
- package/esm2015/modules/text-editor/text-editor.component.js +0 -317
- package/esm2015/modules/text-editor/text-editor.module.js +0 -99
- package/esm2015/modules/text-editor/toolbar/text-editor-toolbar.component.js +0 -173
- package/esm2015/modules/text-editor/types/editor-command.js +0 -2
- package/esm2015/modules/text-editor/types/editor-setting.js +0 -2
- package/esm2015/modules/text-editor/types/font-state.js +0 -2
- package/esm2015/modules/text-editor/types/menu-type.js +0 -2
- package/esm2015/modules/text-editor/types/style-state.js +0 -2
- package/esm2015/modules/text-editor/types/text-editor-merge-field.js +0 -2
- package/esm2015/modules/text-editor/types/toolbar-action-type.js +0 -2
- package/esm2015/modules/text-editor/url-modal/text-editor-url-modal-context.js +0 -6
- package/esm2015/modules/text-editor/url-modal/text-editor-url-modal-result.js +0 -2
- package/esm2015/modules/text-editor/url-modal/text-editor-url-modal.component.js +0 -119
- package/esm2015/modules/text-editor/url-modal/text-editor-url-target.js +0 -9
- package/esm2015/public-api.js +0 -15
- package/public-api.d.ts +0 -12
package/documentation.json
CHANGED
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
"name": "NgModule",
|
|
30
30
|
"type": {
|
|
31
31
|
"type": "reference",
|
|
32
|
+
"qualifiedName": "NgModuleDecorator",
|
|
33
|
+
"package": "@angular/core",
|
|
32
34
|
"name": "NgModule"
|
|
33
35
|
},
|
|
34
36
|
"arguments": {
|
|
@@ -87,6 +89,8 @@
|
|
|
87
89
|
"name": "NgModule",
|
|
88
90
|
"type": {
|
|
89
91
|
"type": "reference",
|
|
92
|
+
"qualifiedName": "NgModuleDecorator",
|
|
93
|
+
"package": "@angular/core",
|
|
90
94
|
"name": "NgModule"
|
|
91
95
|
},
|
|
92
96
|
"arguments": {
|
|
@@ -145,6 +149,8 @@
|
|
|
145
149
|
"name": "Component",
|
|
146
150
|
"type": {
|
|
147
151
|
"type": "reference",
|
|
152
|
+
"qualifiedName": "ComponentDecorator",
|
|
153
|
+
"package": "@angular/core",
|
|
148
154
|
"name": "Component"
|
|
149
155
|
},
|
|
150
156
|
"arguments": {
|
|
@@ -182,6 +188,8 @@
|
|
|
182
188
|
"flags": {},
|
|
183
189
|
"type": {
|
|
184
190
|
"type": "reference",
|
|
191
|
+
"qualifiedName": "DomSanitizer",
|
|
192
|
+
"package": "@angular/platform-browser",
|
|
185
193
|
"name": "DomSanitizer"
|
|
186
194
|
}
|
|
187
195
|
},
|
|
@@ -222,6 +230,8 @@
|
|
|
222
230
|
],
|
|
223
231
|
"type": {
|
|
224
232
|
"type": "reference",
|
|
233
|
+
"qualifiedName": "SafeHtml",
|
|
234
|
+
"package": "@angular/platform-browser",
|
|
225
235
|
"name": "SafeHtml"
|
|
226
236
|
},
|
|
227
237
|
"defaultValue": "''"
|
|
@@ -239,6 +249,8 @@
|
|
|
239
249
|
"name": "Input",
|
|
240
250
|
"type": {
|
|
241
251
|
"type": "reference",
|
|
252
|
+
"qualifiedName": "InputDecorator",
|
|
253
|
+
"package": "@angular/core",
|
|
242
254
|
"name": "Input"
|
|
243
255
|
},
|
|
244
256
|
"arguments": {}
|
|
@@ -327,6 +339,8 @@
|
|
|
327
339
|
"name": "Component",
|
|
328
340
|
"type": {
|
|
329
341
|
"type": "reference",
|
|
342
|
+
"qualifiedName": "ComponentDecorator",
|
|
343
|
+
"package": "@angular/core",
|
|
330
344
|
"name": "Component"
|
|
331
345
|
},
|
|
332
346
|
"arguments": {
|
|
@@ -364,6 +378,8 @@
|
|
|
364
378
|
"flags": {},
|
|
365
379
|
"type": {
|
|
366
380
|
"type": "reference",
|
|
381
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
382
|
+
"package": "@angular/core",
|
|
367
383
|
"name": "ChangeDetectorRef"
|
|
368
384
|
}
|
|
369
385
|
},
|
|
@@ -419,6 +435,8 @@
|
|
|
419
435
|
"flags": {},
|
|
420
436
|
"type": {
|
|
421
437
|
"type": "reference",
|
|
438
|
+
"qualifiedName": "NgControl",
|
|
439
|
+
"package": "@angular/forms",
|
|
422
440
|
"name": "NgControl"
|
|
423
441
|
}
|
|
424
442
|
},
|
|
@@ -430,6 +448,8 @@
|
|
|
430
448
|
"flags": {},
|
|
431
449
|
"type": {
|
|
432
450
|
"type": "reference",
|
|
451
|
+
"qualifiedName": "NgZone",
|
|
452
|
+
"package": "@angular/core",
|
|
433
453
|
"name": "NgZone"
|
|
434
454
|
}
|
|
435
455
|
}
|
|
@@ -458,6 +478,8 @@
|
|
|
458
478
|
"name": "Input",
|
|
459
479
|
"type": {
|
|
460
480
|
"type": "reference",
|
|
481
|
+
"qualifiedName": "InputDecorator",
|
|
482
|
+
"package": "@angular/core",
|
|
461
483
|
"name": "Input"
|
|
462
484
|
},
|
|
463
485
|
"arguments": {}
|
|
@@ -499,6 +521,8 @@
|
|
|
499
521
|
"name": "unknown"
|
|
500
522
|
}
|
|
501
523
|
],
|
|
524
|
+
"qualifiedName": "Subject",
|
|
525
|
+
"package": "rxjs",
|
|
502
526
|
"name": "Subject"
|
|
503
527
|
},
|
|
504
528
|
"defaultValue": "..."
|
|
@@ -525,6 +549,8 @@
|
|
|
525
549
|
"name": "Input",
|
|
526
550
|
"type": {
|
|
527
551
|
"type": "reference",
|
|
552
|
+
"qualifiedName": "InputDecorator",
|
|
553
|
+
"package": "@angular/core",
|
|
528
554
|
"name": "Input"
|
|
529
555
|
},
|
|
530
556
|
"arguments": {}
|
|
@@ -545,7 +571,7 @@
|
|
|
545
571
|
"name": "SkyTextEditorFont"
|
|
546
572
|
}
|
|
547
573
|
},
|
|
548
|
-
"defaultValue": "
|
|
574
|
+
"defaultValue": "FONT_LIST_DEFAULTS"
|
|
549
575
|
},
|
|
550
576
|
{
|
|
551
577
|
"id": 164,
|
|
@@ -569,6 +595,8 @@
|
|
|
569
595
|
"name": "Input",
|
|
570
596
|
"type": {
|
|
571
597
|
"type": "reference",
|
|
598
|
+
"qualifiedName": "InputDecorator",
|
|
599
|
+
"package": "@angular/core",
|
|
572
600
|
"name": "Input"
|
|
573
601
|
},
|
|
574
602
|
"arguments": {}
|
|
@@ -588,7 +616,7 @@
|
|
|
588
616
|
"name": "number"
|
|
589
617
|
}
|
|
590
618
|
},
|
|
591
|
-
"defaultValue": "
|
|
619
|
+
"defaultValue": "FONT_SIZE_LIST_DEFAULTS"
|
|
592
620
|
},
|
|
593
621
|
{
|
|
594
622
|
"id": 165,
|
|
@@ -606,6 +634,8 @@
|
|
|
606
634
|
"name": "Input",
|
|
607
635
|
"type": {
|
|
608
636
|
"type": "reference",
|
|
637
|
+
"qualifiedName": "InputDecorator",
|
|
638
|
+
"package": "@angular/core",
|
|
609
639
|
"name": "Input"
|
|
610
640
|
},
|
|
611
641
|
"arguments": {}
|
|
@@ -646,6 +676,8 @@
|
|
|
646
676
|
"name": "Input",
|
|
647
677
|
"type": {
|
|
648
678
|
"type": "reference",
|
|
679
|
+
"qualifiedName": "InputDecorator",
|
|
680
|
+
"package": "@angular/core",
|
|
649
681
|
"name": "Input"
|
|
650
682
|
},
|
|
651
683
|
"arguments": {}
|
|
@@ -666,7 +698,7 @@
|
|
|
666
698
|
"name": "SkyTextEditorMenuType"
|
|
667
699
|
}
|
|
668
700
|
},
|
|
669
|
-
"defaultValue": "
|
|
701
|
+
"defaultValue": "MENU_DEFAULTS"
|
|
670
702
|
},
|
|
671
703
|
{
|
|
672
704
|
"id": 171,
|
|
@@ -684,6 +716,8 @@
|
|
|
684
716
|
"name": "Input",
|
|
685
717
|
"type": {
|
|
686
718
|
"type": "reference",
|
|
719
|
+
"qualifiedName": "InputDecorator",
|
|
720
|
+
"package": "@angular/core",
|
|
687
721
|
"name": "Input"
|
|
688
722
|
},
|
|
689
723
|
"arguments": {}
|
|
@@ -728,6 +762,8 @@
|
|
|
728
762
|
"name": "Input",
|
|
729
763
|
"type": {
|
|
730
764
|
"type": "reference",
|
|
765
|
+
"qualifiedName": "InputDecorator",
|
|
766
|
+
"package": "@angular/core",
|
|
731
767
|
"name": "Input"
|
|
732
768
|
},
|
|
733
769
|
"arguments": {}
|
|
@@ -748,7 +784,7 @@
|
|
|
748
784
|
"name": "SkyTextEditorToolbarActionType"
|
|
749
785
|
}
|
|
750
786
|
},
|
|
751
|
-
"defaultValue": "
|
|
787
|
+
"defaultValue": "TOOLBAR_ACTION_DEFAULTS"
|
|
752
788
|
},
|
|
753
789
|
{
|
|
754
790
|
"id": 158,
|
|
@@ -763,6 +799,8 @@
|
|
|
763
799
|
"name": "Input",
|
|
764
800
|
"type": {
|
|
765
801
|
"type": "reference",
|
|
802
|
+
"qualifiedName": "InputDecorator",
|
|
803
|
+
"package": "@angular/core",
|
|
766
804
|
"name": "Input"
|
|
767
805
|
},
|
|
768
806
|
"arguments": {}
|
|
@@ -783,7 +821,13 @@
|
|
|
783
821
|
"kindString": "Get signature",
|
|
784
822
|
"flags": {},
|
|
785
823
|
"comment": {
|
|
786
|
-
"shortText": "Indicates whether to disable the text editor."
|
|
824
|
+
"shortText": "Indicates whether to disable the text editor.",
|
|
825
|
+
"tags": [
|
|
826
|
+
{
|
|
827
|
+
"tag": "default",
|
|
828
|
+
"text": "false\n"
|
|
829
|
+
}
|
|
830
|
+
]
|
|
787
831
|
},
|
|
788
832
|
"type": {
|
|
789
833
|
"type": "intrinsic",
|
|
@@ -840,6 +884,8 @@
|
|
|
840
884
|
"name": "Input",
|
|
841
885
|
"type": {
|
|
842
886
|
"type": "reference",
|
|
887
|
+
"qualifiedName": "InputDecorator",
|
|
888
|
+
"package": "@angular/core",
|
|
843
889
|
"name": "Input"
|
|
844
890
|
},
|
|
845
891
|
"arguments": {}
|
|
@@ -913,6 +959,8 @@
|
|
|
913
959
|
"name": "Input",
|
|
914
960
|
"type": {
|
|
915
961
|
"type": "reference",
|
|
962
|
+
"qualifiedName": "InputDecorator",
|
|
963
|
+
"package": "@angular/core",
|
|
916
964
|
"name": "Input"
|
|
917
965
|
},
|
|
918
966
|
"arguments": {}
|
|
@@ -1423,10 +1471,14 @@
|
|
|
1423
1471
|
"implementedTypes": [
|
|
1424
1472
|
{
|
|
1425
1473
|
"type": "reference",
|
|
1474
|
+
"qualifiedName": "AfterViewInit",
|
|
1475
|
+
"package": "@angular/core",
|
|
1426
1476
|
"name": "AfterViewInit"
|
|
1427
1477
|
},
|
|
1428
1478
|
{
|
|
1429
1479
|
"type": "reference",
|
|
1480
|
+
"qualifiedName": "OnDestroy",
|
|
1481
|
+
"package": "@angular/core",
|
|
1430
1482
|
"name": "OnDestroy"
|
|
1431
1483
|
}
|
|
1432
1484
|
]
|
|
@@ -1909,18 +1961,13 @@
|
|
|
1909
1961
|
],
|
|
1910
1962
|
"sources": [
|
|
1911
1963
|
{
|
|
1912
|
-
"fileName": "
|
|
1964
|
+
"fileName": "index.ts",
|
|
1913
1965
|
"line": 1,
|
|
1914
1966
|
"character": 0
|
|
1915
1967
|
}
|
|
1916
1968
|
]
|
|
1917
1969
|
},
|
|
1918
1970
|
"codeExamples": [
|
|
1919
|
-
{
|
|
1920
|
-
"fileName": ".eslintrc.json",
|
|
1921
|
-
"filePath": "/projects/text-editor/documentation/code-examples/.eslintrc.json",
|
|
1922
|
-
"rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n"
|
|
1923
|
-
},
|
|
1924
1971
|
{
|
|
1925
1972
|
"fileName": "rich-text-display-demo.component.html",
|
|
1926
1973
|
"filePath": "/projects/text-editor/documentation/code-examples/rich-text-display/rich-text-display-demo.component.html",
|
|
@@ -1929,7 +1976,7 @@
|
|
|
1929
1976
|
{
|
|
1930
1977
|
"fileName": "rich-text-display-demo.component.ts",
|
|
1931
1978
|
"filePath": "/projects/text-editor/documentation/code-examples/rich-text-display/rich-text-display-demo.component.ts",
|
|
1932
|
-
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-rich-text-display-demo',\n templateUrl: './rich-text-display-demo.component.html',\n})\nexport class RichTextDisplayDemoComponent {\n public richText
|
|
1979
|
+
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-rich-text-display-demo',\n templateUrl: './rich-text-display-demo.component.html',\n})\nexport class RichTextDisplayDemoComponent {\n public richText = `<font style=\"font-size: 18px\" face=\"Arial\" color=\"#a25353\"><b>Exclusively committed to your impact</b></font><p>Since day one, Blackbaud has been 100% focused on driving impact for social good organizations.</p><p>We equip change agents with <b>cloud software</b>, <i>services</i>, <u>expertise</u>, and <font color=\"#a25353\">data intelligence</font> designed with unmatched insight and supported with unparalleled commitment. Every day, our <b>customers</b> achieve unmatched impact as they advance their missions.</p><ul><li><a href=\"#\">Build a better world</a></li><li><a href=\"#\">Explore our solutions</a></li></ul>`;\n}\n"
|
|
1933
1980
|
},
|
|
1934
1981
|
{
|
|
1935
1982
|
"fileName": "rich-text-display-demo.module.ts",
|
|
@@ -1944,7 +1991,7 @@
|
|
|
1944
1991
|
{
|
|
1945
1992
|
"fileName": "text-editor-demo.component.ts",
|
|
1946
1993
|
"filePath": "/projects/text-editor/documentation/code-examples/text-editor/text-editor-demo.component.ts",
|
|
1947
|
-
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\n@Component({\n selector: 'app-text-editor-demo',\n templateUrl: './text-editor-demo.component.html',\n})\nexport class TextEditorDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n private richText
|
|
1994
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\n@Component({\n selector: 'app-text-editor-demo',\n templateUrl: './text-editor-demo.component.html',\n})\nexport class TextEditorDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n private richText = `<font style=\"font-size: 18px\" face=\"Arial\" color=\"#a25353\"><b>Exclusively committed to your impact</b></font><p>Since day one, Blackbaud has been 100% focused on driving impact for social good organizations.</p><p>We equip change agents with <b>cloud software</b>, <i>services</i>, <u>expertise</u>, and <font color=\"#a25353\">data intelligence</font> designed with unmatched insight and supported with unparalleled commitment. Every day, our <b>customers</b> achieve unmatched impact as they advance their missions.</p><ul><li><a href=\"#\">Build a better world</a></li><li><a href=\"#\">Explore our solutions</a></li></ul>`;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.myForm = this.formBuilder.group({\n myText: new FormControl(this.richText),\n });\n }\n}\n"
|
|
1948
1995
|
},
|
|
1949
1996
|
{
|
|
1950
1997
|
"fileName": "text-editor-demo.module.ts",
|
|
@@ -1952,4 +1999,4 @@
|
|
|
1952
1999
|
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyTextEditorModule } from '@skyux/text-editor';\n\nimport { TextEditorDemoComponent } from './text-editor-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyTextEditorModule,\n ],\n declarations: [TextEditorDemoComponent],\n exports: [TextEditorDemoComponent],\n})\nexport class TextEditorDemoModule {}\n"
|
|
1953
2000
|
}
|
|
1954
2001
|
]
|
|
1955
|
-
}
|
|
2002
|
+
}
|
package/esm2015/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './lib/modules/rich-text-display/rich-text-display.module';
|
|
2
|
+
export * from './lib/modules/text-editor/types/font-state';
|
|
3
|
+
export * from './lib/modules/text-editor/types/menu-type';
|
|
4
|
+
export * from './lib/modules/text-editor/types/style-state';
|
|
5
|
+
export * from './lib/modules/text-editor/types/text-editor-merge-field';
|
|
6
|
+
export * from './lib/modules/text-editor/types/toolbar-action-type';
|
|
7
|
+
export * from './lib/modules/text-editor/text-editor.module';
|
|
8
|
+
// Components and directives must be exported to support Angular's "partial" Ivy compiler.
|
|
9
|
+
// Obscure names are used to indicate types are not part of the public API.
|
|
10
|
+
export { SkyRichTextDisplayComponent as λ1 } from './lib/modules/rich-text-display/rich-text-display.component';
|
|
11
|
+
export { SkyTextEditorMenubarComponent as λ2 } from './lib/modules/text-editor/menubar/text-editor-menubar.component';
|
|
12
|
+
export { SkyTextEditorUrlModalComponent as λ3 } from './lib/modules/text-editor/url-modal/text-editor-url-modal.component';
|
|
13
|
+
export { SkyTextEditorToolbarComponent as λ4 } from './lib/modules/text-editor/toolbar/text-editor-toolbar.component';
|
|
14
|
+
export { SkyTextEditorComponent as λ5 } from './lib/modules/text-editor/text-editor.component';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/text-editor/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0DAA0D,CAAC;AAEzE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,8CAA8C,CAAC;AAE7D,0FAA0F;AAC1F,2EAA2E;AAC3E,OAAO,EAAE,2BAA2B,IAAI,EAAE,EAAE,MAAM,6DAA6D,CAAC;AAChH,OAAO,EAAE,6BAA6B,IAAI,EAAE,EAAE,MAAM,iEAAiE,CAAC;AACtH,OAAO,EAAE,8BAA8B,IAAI,EAAE,EAAE,MAAM,qEAAqE,CAAC;AAC3H,OAAO,EAAE,6BAA6B,IAAI,EAAE,EAAE,MAAM,iEAAiE,CAAC;AACtH,OAAO,EAAE,sBAAsB,IAAI,EAAE,EAAE,MAAM,iDAAiD,CAAC","sourcesContent":["export * from './lib/modules/rich-text-display/rich-text-display.module';\n\nexport * from './lib/modules/text-editor/types/font-state';\nexport * from './lib/modules/text-editor/types/menu-type';\nexport * from './lib/modules/text-editor/types/style-state';\nexport * from './lib/modules/text-editor/types/text-editor-merge-field';\nexport * from './lib/modules/text-editor/types/toolbar-action-type';\n\nexport * from './lib/modules/text-editor/text-editor.module';\n\n// Components and directives must be exported to support Angular's \"partial\" Ivy compiler.\n// Obscure names are used to indicate types are not part of the public API.\nexport { SkyRichTextDisplayComponent as λ1 } from './lib/modules/rich-text-display/rich-text-display.component';\nexport { SkyTextEditorMenubarComponent as λ2 } from './lib/modules/text-editor/menubar/text-editor-menubar.component';\nexport { SkyTextEditorUrlModalComponent as λ3 } from './lib/modules/text-editor/url-modal/text-editor-url-modal.component';\nexport { SkyTextEditorToolbarComponent as λ4 } from './lib/modules/text-editor/toolbar/text-editor-toolbar.component';\nexport { SkyTextEditorComponent as λ5 } from './lib/modules/text-editor/text-editor.component';\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { SkyTextSanitizationService } from '../text-editor/services/text-sanitization.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/platform-browser";
|
|
6
|
+
import * as i2 from "../text-editor/services/text-sanitization.service";
|
|
7
|
+
export class SkyRichTextDisplayComponent {
|
|
8
|
+
constructor(sanitizer, sanitizationService) {
|
|
9
|
+
this.sanitizer = sanitizer;
|
|
10
|
+
this.sanitizationService = sanitizationService;
|
|
11
|
+
this.sanitizedText = '';
|
|
12
|
+
this._richText = '';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the rich text to display.
|
|
16
|
+
*/
|
|
17
|
+
set richText(value) {
|
|
18
|
+
const cleaned = this.sanitizationService.sanitize(value);
|
|
19
|
+
/* istanbul ignore else */
|
|
20
|
+
if (cleaned !== this._richText) {
|
|
21
|
+
this._richText = cleaned;
|
|
22
|
+
// Text has already been sanitized with DOMPurifier.
|
|
23
|
+
// Tell Angular to bypass its own internal sanitization.
|
|
24
|
+
this.sanitizedText = this.sanitizer.bypassSecurityTrustHtml(cleaned);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
SkyRichTextDisplayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRichTextDisplayComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.SkyTextSanitizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
SkyRichTextDisplayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyRichTextDisplayComponent, selector: "sky-rich-text-display", inputs: { richText: "richText" }, ngImport: i0, template: "<span class=\"sky-rich-text-display-text\" [innerHTML]=\"sanitizedText\"> </span>\n" });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRichTextDisplayComponent, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: 'sky-rich-text-display',
|
|
34
|
+
templateUrl: './rich-text-display.component.html',
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }, { type: i2.SkyTextSanitizationService }]; }, propDecorators: { richText: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}] } });
|
|
39
|
+
//# sourceMappingURL=rich-text-display.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-display.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/text-editor/src/lib/modules/rich-text-display/rich-text-display.component.ts","../../../../../../../../libs/components/text-editor/src/lib/modules/rich-text-display/rich-text-display.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAY,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;;;;AAM/F,MAAM,OAAO,2BAA2B;IAqBtC,YACU,SAAuB,EACvB,mBAA+C;QAD/C,cAAS,GAAT,SAAS,CAAc;QACvB,wBAAmB,GAAnB,mBAAmB,CAA4B;QANlD,kBAAa,GAAa,EAAE,CAAC;QAE5B,cAAS,GAAW,EAAE,CAAC;IAK5B,CAAC;IAvBJ;;OAEG;IACH,IACW,QAAQ,CAAC,KAAa;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzD,0BAA0B;QAC1B,IAAI,OAAO,KAAK,IAAI,CAAC,SAAS,EAAE;YAC9B,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;YAEzB,oDAAoD;YACpD,wDAAwD;YACxD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;SACtE;IACH,CAAC;;yHAfU,2BAA2B;6GAA3B,2BAA2B,+FCVxC,qFACA;4FDSa,2BAA2B;kBAJvC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,WAAW,EAAE,oCAAoC;iBAClD;4IAMY,QAAQ;sBADlB,KAAK","sourcesContent":["import { Component, Input } from '@angular/core';\n\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\nimport { SkyTextSanitizationService } from '../text-editor/services/text-sanitization.service';\n\n@Component({\n selector: 'sky-rich-text-display',\n templateUrl: './rich-text-display.component.html',\n})\nexport class SkyRichTextDisplayComponent {\n /**\n * Specifies the rich text to display.\n */\n @Input()\n public set richText(value: string) {\n const cleaned = this.sanitizationService.sanitize(value);\n /* istanbul ignore else */\n if (cleaned !== this._richText) {\n this._richText = cleaned;\n\n // Text has already been sanitized with DOMPurifier.\n // Tell Angular to bypass its own internal sanitization.\n this.sanitizedText = this.sanitizer.bypassSecurityTrustHtml(cleaned);\n }\n }\n\n public sanitizedText: SafeHtml = '';\n\n private _richText: string = '';\n\n constructor(\n private sanitizer: DomSanitizer,\n private sanitizationService: SkyTextSanitizationService\n ) {}\n}\n","<span class=\"sky-rich-text-display-text\" [innerHTML]=\"sanitizedText\"> </span>\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { SkyRichTextDisplayComponent } from './rich-text-display.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class SkyRichTextDisplayModule {
|
|
6
|
+
}
|
|
7
|
+
SkyRichTextDisplayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRichTextDisplayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
SkyRichTextDisplayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRichTextDisplayModule, declarations: [SkyRichTextDisplayComponent], imports: [CommonModule], exports: [SkyRichTextDisplayComponent] });
|
|
9
|
+
SkyRichTextDisplayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRichTextDisplayModule, imports: [[CommonModule]] });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRichTextDisplayModule, decorators: [{
|
|
11
|
+
type: NgModule,
|
|
12
|
+
args: [{
|
|
13
|
+
imports: [CommonModule],
|
|
14
|
+
exports: [SkyRichTextDisplayComponent],
|
|
15
|
+
declarations: [SkyRichTextDisplayComponent],
|
|
16
|
+
}]
|
|
17
|
+
}] });
|
|
18
|
+
//# sourceMappingURL=rich-text-display.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-display.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/text-editor/src/lib/modules/rich-text-display/rich-text-display.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;;AAO5E,MAAM,OAAO,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,iBAFpB,2BAA2B,aAFhC,YAAY,aACZ,2BAA2B;uHAG1B,wBAAwB,YAJ1B,CAAC,YAAY,CAAC;4FAIZ,wBAAwB;kBALpC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,2BAA2B,CAAC;oBACtC,YAAY,EAAE,CAAC,2BAA2B,CAAC;iBAC5C","sourcesContent":["import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { SkyRichTextDisplayComponent } from './rich-text-display.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [SkyRichTextDisplayComponent],\n declarations: [SkyRichTextDisplayComponent],\n})\nexport class SkyRichTextDisplayModule {}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
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=forms-utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms-utility.js","sourceRoot":"","sources":["../../../../../../../../libs/components/text-editor/src/lib/modules/shared/forms-utility.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,2DAA2D;AAC3D,WAAW;AACX,MAAM,OAAO,eAAe;IAC1B,oEAAoE;IAC7D,MAAM,CAAC,qBAAqB,CAAC,KAAU;QAC5C,OAAO,KAAK,KAAK,SAAS,IAAI,GAAG,KAAK,EAAE,KAAK,OAAO,CAAC;IACvD,CAAC;CACF","sourcesContent":["// Need to add the following to classes which contain static methods.\n// See: https://github.com/ng-packagr/ng-packagr/issues/641\n// @dynamic\nexport class SkyFormsUtility {\n /** Coerces a data-bound value (typically a string) to a boolean. */\n public static coerceBooleanProperty(value: any): boolean {\n return value !== undefined && `${value}` !== 'false';\n }\n}\n"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
3
|
+
* The contents of this file were automatically generated by
|
|
4
|
+
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-text-editor' schematic.
|
|
5
|
+
* To update this file, simply rerun the command.
|
|
6
|
+
*/
|
|
7
|
+
import { NgModule } from '@angular/core';
|
|
8
|
+
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, } from '@skyux/i18n';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
const RESOURCES = {
|
|
11
|
+
'EN-US': {
|
|
12
|
+
skyux_text_editor_format_menu_action_bold_label: { message: 'Bold' },
|
|
13
|
+
skyux_text_editor_format_menu_action_bold_key_shortcut: {
|
|
14
|
+
message: 'Ctrl+B',
|
|
15
|
+
},
|
|
16
|
+
skyux_text_editor_format_menu_action_italic_label: { message: 'Italic' },
|
|
17
|
+
skyux_text_editor_format_menu_action_italic_key_shortcut: {
|
|
18
|
+
message: 'Ctrl+I',
|
|
19
|
+
},
|
|
20
|
+
skyux_text_editor_format_menu_action_underline_label: {
|
|
21
|
+
message: 'Underline',
|
|
22
|
+
},
|
|
23
|
+
skyux_text_editor_format_menu_action_underline_key_shortcut: {
|
|
24
|
+
message: 'Ctrl+U',
|
|
25
|
+
},
|
|
26
|
+
skyux_text_editor_format_menu_action_strikethrough_label: {
|
|
27
|
+
message: 'Strikethrough',
|
|
28
|
+
},
|
|
29
|
+
skyux_text_editor_format_menu_action_clear_formatting_label: {
|
|
30
|
+
message: 'Clear formatting',
|
|
31
|
+
},
|
|
32
|
+
skyux_text_editor_edit_menu_action_undo_label: { message: 'Undo' },
|
|
33
|
+
skyux_text_editor_edit_menu_action_undo_key_shortcut: { message: 'Ctrl+Z' },
|
|
34
|
+
skyux_text_editor_edit_menu_action_redo_label: { message: 'Redo' },
|
|
35
|
+
skyux_text_editor_edit_menu_action_redo_key_shortcut: { message: 'Ctrl+Y' },
|
|
36
|
+
skyux_text_editor_edit_menu_action_cut_label: { message: 'Cut' },
|
|
37
|
+
skyux_text_editor_edit_menu_action_cut_key_shortcut: { message: 'Ctrl+X' },
|
|
38
|
+
skyux_text_editor_edit_menu_action_copy_label: { message: 'Copy' },
|
|
39
|
+
skyux_text_editor_edit_menu_action_copy_key_shortcut: { message: 'Ctrl+C' },
|
|
40
|
+
skyux_text_editor_edit_menu_action_paste_label: { message: 'Paste' },
|
|
41
|
+
skyux_text_editor_edit_menu_action_paste_key_shortcut: {
|
|
42
|
+
message: 'Ctrl+V',
|
|
43
|
+
},
|
|
44
|
+
skyux_text_editor_edit_menu_action_select_all_label: {
|
|
45
|
+
message: 'Select all',
|
|
46
|
+
},
|
|
47
|
+
skyux_text_editor_edit_menu_action_select_all_key_shortcut: {
|
|
48
|
+
message: 'Ctrl+A',
|
|
49
|
+
},
|
|
50
|
+
skyux_text_editor_menubar_dropdown_button_edit_label: { message: 'Edit' },
|
|
51
|
+
skyux_text_editor_menubar_dropdown_button_format_label: {
|
|
52
|
+
message: 'Format',
|
|
53
|
+
},
|
|
54
|
+
skyux_text_editor_menubar_dropdown_button_insert_label: {
|
|
55
|
+
message: 'Insert merge field',
|
|
56
|
+
},
|
|
57
|
+
skyux_text_editor_url_modal_header_label: { message: 'Create link' },
|
|
58
|
+
skyux_text_editor_url_modal_url_label: {
|
|
59
|
+
message: 'Enter a URL to link to:',
|
|
60
|
+
},
|
|
61
|
+
skyux_text_editor_url_modal_open_label: {
|
|
62
|
+
message: 'Where should it open?',
|
|
63
|
+
},
|
|
64
|
+
skyux_text_editor_url_modal_current_option_label: {
|
|
65
|
+
message: 'Current window',
|
|
66
|
+
},
|
|
67
|
+
skyux_text_editor_url_modal_new_option_label: { message: 'New window' },
|
|
68
|
+
skyux_text_editor_url_modal_email_label: { message: 'Email address' },
|
|
69
|
+
skyux_text_editor_url_modal_subject_label: { message: 'Subject line' },
|
|
70
|
+
skyux_text_editor_url_modal_save_button_label: { message: 'Save' },
|
|
71
|
+
skyux_text_editor_url_modal_cancel_button_label: { message: 'Cancel' },
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
export class SkyTextEditorResourcesProvider {
|
|
75
|
+
getString(localeInfo, name) {
|
|
76
|
+
return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Import into any component library module that needs to use resource strings.
|
|
81
|
+
*/
|
|
82
|
+
export class SkyTextEditorResourcesModule {
|
|
83
|
+
}
|
|
84
|
+
SkyTextEditorResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyTextEditorResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
85
|
+
SkyTextEditorResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyTextEditorResourcesModule, exports: [SkyI18nModule] });
|
|
86
|
+
SkyTextEditorResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyTextEditorResourcesModule, providers: [
|
|
87
|
+
{
|
|
88
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
89
|
+
useClass: SkyTextEditorResourcesProvider,
|
|
90
|
+
multi: true,
|
|
91
|
+
},
|
|
92
|
+
], imports: [SkyI18nModule] });
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyTextEditorResourcesModule, decorators: [{
|
|
94
|
+
type: NgModule,
|
|
95
|
+
args: [{
|
|
96
|
+
exports: [SkyI18nModule],
|
|
97
|
+
providers: [
|
|
98
|
+
{
|
|
99
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
100
|
+
useClass: SkyTextEditorResourcesProvider,
|
|
101
|
+
multi: true,
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
}]
|
|
105
|
+
}] });
|
|
106
|
+
//# sourceMappingURL=sky-text-editor-resources.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sky-text-editor-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/text-editor/src/lib/modules/shared/sky-text-editor-resources.module.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-text-editor' schematic.\n * To update this file, simply rerun the command.\n */\n\nimport { NgModule } from '@angular/core';\nimport {\n getLibStringForLocale,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n SKY_LIB_RESOURCES_PROVIDERS,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_text_editor_format_menu_action_bold_label: { message: 'Bold' },\n skyux_text_editor_format_menu_action_bold_key_shortcut: {\n message: 'Ctrl+B',\n },\n skyux_text_editor_format_menu_action_italic_label: { message: 'Italic' },\n skyux_text_editor_format_menu_action_italic_key_shortcut: {\n message: 'Ctrl+I',\n },\n skyux_text_editor_format_menu_action_underline_label: {\n message: 'Underline',\n },\n skyux_text_editor_format_menu_action_underline_key_shortcut: {\n message: 'Ctrl+U',\n },\n skyux_text_editor_format_menu_action_strikethrough_label: {\n message: 'Strikethrough',\n },\n skyux_text_editor_format_menu_action_clear_formatting_label: {\n message: 'Clear formatting',\n },\n skyux_text_editor_edit_menu_action_undo_label: { message: 'Undo' },\n skyux_text_editor_edit_menu_action_undo_key_shortcut: { message: 'Ctrl+Z' },\n skyux_text_editor_edit_menu_action_redo_label: { message: 'Redo' },\n skyux_text_editor_edit_menu_action_redo_key_shortcut: { message: 'Ctrl+Y' },\n skyux_text_editor_edit_menu_action_cut_label: { message: 'Cut' },\n skyux_text_editor_edit_menu_action_cut_key_shortcut: { message: 'Ctrl+X' },\n skyux_text_editor_edit_menu_action_copy_label: { message: 'Copy' },\n skyux_text_editor_edit_menu_action_copy_key_shortcut: { message: 'Ctrl+C' },\n skyux_text_editor_edit_menu_action_paste_label: { message: 'Paste' },\n skyux_text_editor_edit_menu_action_paste_key_shortcut: {\n message: 'Ctrl+V',\n },\n skyux_text_editor_edit_menu_action_select_all_label: {\n message: 'Select all',\n },\n skyux_text_editor_edit_menu_action_select_all_key_shortcut: {\n message: 'Ctrl+A',\n },\n skyux_text_editor_menubar_dropdown_button_edit_label: { message: 'Edit' },\n skyux_text_editor_menubar_dropdown_button_format_label: {\n message: 'Format',\n },\n skyux_text_editor_menubar_dropdown_button_insert_label: {\n message: 'Insert merge field',\n },\n skyux_text_editor_url_modal_header_label: { message: 'Create link' },\n skyux_text_editor_url_modal_url_label: {\n message: 'Enter a URL to link to:',\n },\n skyux_text_editor_url_modal_open_label: {\n message: 'Where should it open?',\n },\n skyux_text_editor_url_modal_current_option_label: {\n message: 'Current window',\n },\n skyux_text_editor_url_modal_new_option_label: { message: 'New window' },\n skyux_text_editor_url_modal_email_label: { message: 'Email address' },\n skyux_text_editor_url_modal_subject_label: { message: 'Subject line' },\n skyux_text_editor_url_modal_save_button_label: { message: 'Save' },\n skyux_text_editor_url_modal_cancel_button_label: { message: 'Cancel' },\n },\n};\n\nexport class SkyTextEditorResourcesProvider implements SkyLibResourcesProvider {\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyTextEditorResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyTextEditorResourcesModule {}\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export const FONT_LIST_DEFAULTS = [
|
|
5
|
+
{
|
|
6
|
+
name: 'Blackbaud Sans',
|
|
7
|
+
value: '"Blackbaud Sans", Arial, sans-serif',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: 'Arial',
|
|
11
|
+
value: 'Arial',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'Arial Black',
|
|
15
|
+
value: '"Arial Black"',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'Courier New',
|
|
19
|
+
value: '"Courier New"',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Georgia',
|
|
23
|
+
value: 'Georgia, serif',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Tahoma',
|
|
27
|
+
value: 'Tahoma, Geneva, sans-serif',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Times New Roman',
|
|
31
|
+
value: '"Times New Roman"',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Trebuchet MS',
|
|
35
|
+
value: '"Trebuchet MS", sans-serif',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Verdana',
|
|
39
|
+
value: 'Verdana, Geneva, sans-serif',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
//# sourceMappingURL=font-list-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-list-defaults.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/text-editor/src/lib/modules/text-editor/defaults/font-list-defaults.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,qCAAqC;KAC7C;IACD;QACE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;KACf;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,gBAAgB;KACxB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,4BAA4B;KACpC;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,mBAAmB;KAC3B;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,4BAA4B;KACpC;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,6BAA6B;KACrC;CACF,CAAC","sourcesContent":["import { SkyTextEditorFont } from '../types/font-state';\n\n/**\n * @internal\n */\nexport const FONT_LIST_DEFAULTS: SkyTextEditorFont[] = [\n {\n name: 'Blackbaud Sans',\n value: '\"Blackbaud Sans\", Arial, sans-serif',\n },\n {\n name: 'Arial',\n value: 'Arial',\n },\n {\n name: 'Arial Black',\n value: '\"Arial Black\"',\n },\n {\n name: 'Courier New',\n value: '\"Courier New\"',\n },\n {\n name: 'Georgia',\n value: 'Georgia, serif',\n },\n {\n name: 'Tahoma',\n value: 'Tahoma, Geneva, sans-serif',\n },\n {\n name: 'Times New Roman',\n value: '\"Times New Roman\"',\n },\n {\n name: 'Trebuchet MS',\n value: '\"Trebuchet MS\", sans-serif',\n },\n {\n name: 'Verdana',\n value: 'Verdana, Geneva, sans-serif',\n },\n];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-size-list-defaults.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/text-editor/src/lib/modules/text-editor/defaults/font-size-list-defaults.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAa;IAC/C,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;CACpE,CAAC","sourcesContent":["/**\n * @internal\n */\nexport const FONT_SIZE_LIST_DEFAULTS: number[] = [\n 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 22, 24, 26, 28, 36, 48,\n];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-defaults.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/text-editor/src/lib/modules/text-editor/defaults/menu-defaults.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAA4B,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { SkyTextEditorMenuType } from '../types/menu-type';\n\n/**\n * @internal\n */\nexport const MENU_DEFAULTS: SkyTextEditorMenuType[] = ['edit', 'format'];\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FONT_LIST_DEFAULTS } from './font-list-defaults';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export const STYLE_STATE_DEFAULTS = {
|
|
6
|
+
backColor: 'rgba(0, 0, 0, 0)',
|
|
7
|
+
fontColor: '#000',
|
|
8
|
+
fontSize: 14,
|
|
9
|
+
font: FONT_LIST_DEFAULTS[0].value,
|
|
10
|
+
boldState: false,
|
|
11
|
+
italicState: false,
|
|
12
|
+
underlineState: false,
|
|
13
|
+
linkState: false,
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=style-state-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-state-defaults.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/text-editor/src/lib/modules/text-editor/defaults/style-state-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA4B;IAC3D,SAAS,EAAE,kBAAkB;IAC7B,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,KAAK;IACjC,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,KAAK;IAClB,cAAc,EAAE,KAAK;IACrB,SAAS,EAAE,KAAK;CACjB,CAAC","sourcesContent":["import { FONT_LIST_DEFAULTS } from './font-list-defaults';\n\nimport { SkyTextEditorStyleState } from '../types/style-state';\n\n/**\n * @internal\n */\nexport const STYLE_STATE_DEFAULTS: SkyTextEditorStyleState = {\n backColor: 'rgba(0, 0, 0, 0)',\n fontColor: '#000',\n fontSize: 14,\n font: FONT_LIST_DEFAULTS[0].value,\n boldState: false,\n italicState: false,\n underlineState: false,\n linkState: false,\n};\n"]}
|