@ngstarter-ui/components 22.2.3 → 22.2.5

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.
Files changed (96) hide show
  1. package/ai/component-registry.json +97 -8
  2. package/content-editor/BLOCK_FORMAT.md +182 -0
  3. package/data-view/API.md +262 -0
  4. package/fesm2022/ngstarter-ui-components-button.mjs +2 -2
  5. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs +35 -0
  7. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs.map +1 -0
  8. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-Jbf8h2yz.mjs → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs} +3 -4
  9. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-Jbf8h2yz.mjs.map → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs.map} +1 -1
  10. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-BizHRPdC.mjs → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs} +4 -4
  11. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-BizHRPdC.mjs.map → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs.map} +1 -1
  12. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-BzoaJvai.mjs → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs} +2 -2
  13. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-BzoaJvai.mjs.map → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs.map} +1 -1
  14. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-C4p-S0Do.mjs → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs} +16 -39
  15. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs.map +1 -0
  16. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Cdq_Dcv2.mjs → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs} +5 -6
  17. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Cdq_Dcv2.mjs.map → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs.map} +1 -1
  18. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-CDSt4rXe.mjs → ngstarter-ui-components-content-editor-heading-block.component-CnDuIpxQ.mjs} +8 -5
  19. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnDuIpxQ.mjs.map +1 -0
  20. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs +113 -0
  21. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs.map +1 -0
  22. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-CdQ30RjA.mjs → ngstarter-ui-components-content-editor-list-block.component-CHJr_pFf.mjs} +4 -4
  23. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-CdQ30RjA.mjs.map → ngstarter-ui-components-content-editor-list-block.component-CHJr_pFf.mjs.map} +1 -1
  24. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-CbZY0keH.mjs → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs} +4 -4
  25. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs.map +1 -0
  26. package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CK4ssnlk.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs} +2089 -1521
  27. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs.map +1 -0
  28. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-Dd0pQquG.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs} +4 -4
  29. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-Dd0pQquG.mjs.map → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs.map} +1 -1
  30. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-CUxKoeb_.mjs → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs} +4 -4
  31. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-CUxKoeb_.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs.map} +1 -1
  32. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-BTExrXy8.mjs → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs} +4 -4
  33. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-BTExrXy8.mjs.map → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs.map} +1 -1
  34. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-B46YeMGQ.mjs → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs} +3 -4
  35. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-B46YeMGQ.mjs.map → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs.map} +1 -1
  36. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +19 -0
  37. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +1 -0
  38. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs +134 -0
  39. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs.map +1 -0
  40. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  41. package/fesm2022/ngstarter-ui-components-core.mjs +46 -1
  42. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-data-view.mjs +1011 -90
  44. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-datepicker.mjs +45 -19
  46. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +1 -1
  48. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-form-builder.mjs +1 -1
  50. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +58 -1
  52. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-image-designer.mjs +1 -1
  54. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +1 -1
  56. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-menu.mjs +17 -4
  58. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1 -1
  60. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1 -1
  62. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-phone-input.mjs +1 -1
  64. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1 -1
  66. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-sort.mjs +9 -2
  68. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-table.mjs +10 -0
  70. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  71. package/package.json +1 -1
  72. package/styles/_common.scss +2 -1
  73. package/styles/_tokens.scss +32 -1
  74. package/styles/themes/default.scss +1 -1
  75. package/types/ngstarter-ui-components-content-editor.d.ts +211 -11
  76. package/types/ngstarter-ui-components-core.d.ts +4 -1
  77. package/types/ngstarter-ui-components-data-view.d.ts +204 -11
  78. package/types/ngstarter-ui-components-datepicker.d.ts +3 -1
  79. package/types/ngstarter-ui-components-headless-editor.d.ts +6 -1
  80. package/types/ngstarter-ui-components-menu.d.ts +5 -1
  81. package/types/ngstarter-ui-components-sort.d.ts +1 -0
  82. package/types/ngstarter-ui-components-table.d.ts +2 -0
  83. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-DlUkhwCu.mjs +0 -54
  84. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-DlUkhwCu.mjs.map +0 -1
  85. package/fesm2022/ngstarter-ui-components-content-editor-block-base-C46lyMrp.mjs +0 -47
  86. package/fesm2022/ngstarter-ui-components-content-editor-block-base-C46lyMrp.mjs.map +0 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-C4p-S0Do.mjs.map +0 -1
  88. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CDSt4rXe.mjs.map +0 -1
  89. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-LfKZapgv.mjs +0 -169
  90. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-LfKZapgv.mjs.map +0 -1
  91. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-CbZY0keH.mjs.map +0 -1
  92. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CK4ssnlk.mjs.map +0 -1
  93. package/fesm2022/ngstarter-ui-components-content-editor-upload-block-base-DKqojf--.mjs +0 -29
  94. package/fesm2022/ngstarter-ui-components-content-editor-upload-block-base-DKqojf--.mjs.map +0 -1
  95. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-hBR5AauH.mjs +0 -201
  96. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-hBR5AauH.mjs.map +0 -1
@@ -2450,6 +2450,7 @@
2450
2450
  "ngs-content-editor-table-renderer",
2451
2451
  "ngs-content-editor-toggle-block",
2452
2452
  "ngs-content-editor-toggle-renderer",
2453
+ "ngs-content-editor-upload-status",
2453
2454
  "ngs-content-editor-video-renderer",
2454
2455
  "ngs-divider-block",
2455
2456
  "ngs-draggable-table",
@@ -2481,12 +2482,14 @@
2481
2482
  "CONTENT_EDITOR_BLOCK_RENDERERS",
2482
2483
  "CONTENT_EDITOR_CALLOUT_HTML_STYLES",
2483
2484
  "CONTENT_EDITOR_CONFIG",
2485
+ "CONTENT_EDITOR_CONVERTIBLE_BLOCKS",
2484
2486
  "CONTENT_EDITOR_DEFAULT_HTML_CONVERTERS",
2485
2487
  "CONTENT_EDITOR_DEFAULT_RENDERERS",
2486
2488
  "CONTENT_EDITOR_EXTRA_BLOCK_DEFS",
2487
2489
  "CONTENT_EDITOR_EXTRA_SUGGESTIONS",
2488
2490
  "CONTENT_EDITOR_GALLERY_HTML_STYLES",
2489
2491
  "CONTENT_EDITOR_GRID_HTML_STYLES",
2492
+ "CONTENT_EDITOR_RENDER_CONFIG",
2490
2493
  "ContentBuilderComponent",
2491
2494
  "ContentBuilderStore",
2492
2495
  "ContentChangesObserverDirective",
@@ -2506,6 +2509,7 @@
2506
2509
  "ContentEditorBlockRendererDef",
2507
2510
  "ContentEditorBlockRendererInputs",
2508
2511
  "ContentEditorBlockRendererInputSignals",
2512
+ "contentEditorBlockScope",
2509
2513
  "ContentEditorBlockScope",
2510
2514
  "contentEditorBlockToHtml",
2511
2515
  "contentEditorBlockView",
@@ -2525,11 +2529,18 @@
2525
2529
  "contentEditorCollection",
2526
2530
  "ContentEditorConfig",
2527
2531
  "ContentEditorContentEditableDirective",
2532
+ "contentEditorConvertBlock",
2533
+ "ContentEditorConvertibleBlockType",
2534
+ "contentEditorCopyBlocks",
2528
2535
  "ContentEditorDataBlock",
2529
2536
  "ContentEditorDimension",
2530
2537
  "ContentEditorDividerRenderer",
2531
2538
  "contentEditorDividerToHtml",
2532
2539
  "ContentEditorDocument",
2540
+ "ContentEditorDraftConfig",
2541
+ "ContentEditorDraftController",
2542
+ "ContentEditorDraftStatus",
2543
+ "ContentEditorDraftStorage",
2533
2544
  "ContentEditorEmbedBlockSettings",
2534
2545
  "ContentEditorEmbedContent",
2535
2546
  "ContentEditorEmbedRenderer",
@@ -2563,10 +2574,12 @@
2563
2574
  "ContentEditorImageContent",
2564
2575
  "ContentEditorImageRenderer",
2565
2576
  "contentEditorImageToHtml",
2577
+ "contentEditorImportedText",
2566
2578
  "ContentEditorImporter",
2567
2579
  "ContentEditorImportError",
2568
2580
  "ContentEditorImportMarkDefinition",
2569
2581
  "ContentEditorImportOptions",
2582
+ "ContentEditorImportPlacement",
2570
2583
  "ContentEditorItemProperty",
2571
2584
  "ContentEditorListItem",
2572
2585
  "ContentEditorListRenderer",
@@ -2588,6 +2601,7 @@
2588
2601
  "ContentEditorRenderer",
2589
2602
  "ContentEditorRendererBase",
2590
2603
  "contentEditorResourceUrl",
2604
+ "contentEditorSliceText",
2591
2605
  "ContentEditorSuggestionHeading",
2592
2606
  "ContentEditorSuggestionItem",
2593
2607
  "ContentEditorTableAttributes",
@@ -2606,7 +2620,12 @@
2606
2620
  "contentEditorToggleToHtml",
2607
2621
  "contentEditorToHtml",
2608
2622
  "ContentEditorUploadBlockBase",
2623
+ "ContentEditorUploadContext",
2624
+ "ContentEditorUploadedFile",
2609
2625
  "ContentEditorUploadFn",
2626
+ "ContentEditorUploadRequest",
2627
+ "ContentEditorUploadStatus",
2628
+ "ContentEditorUploadTask",
2610
2629
  "ContentEditorVideoBlockSettings",
2611
2630
  "ContentEditorVideoContent",
2612
2631
  "ContentEditorVideoRenderer",
@@ -2680,6 +2699,8 @@
2680
2699
  "contentChangedDelay",
2681
2700
  "detectAddedNode",
2682
2701
  "disabled",
2702
+ "documentId",
2703
+ "draftDebounceMs",
2683
2704
  "id",
2684
2705
  "ignoreClasses",
2685
2706
  "index",
@@ -2705,6 +2726,7 @@
2705
2726
  "stopTimeout",
2706
2727
  "suggestions",
2707
2728
  "targetComponent",
2729
+ "task",
2708
2730
  "textColors",
2709
2731
  "type"
2710
2732
  ],
@@ -2745,29 +2767,55 @@
2745
2767
  "--ngs-carousel-gap",
2746
2768
  "--ngs-color-black",
2747
2769
  "--ngs-color-border",
2748
- "--ngs-color-neutral-200",
2749
- "--ngs-color-neutral-50",
2750
- "--ngs-color-neutral-500",
2751
- "--ngs-color-neutral-600",
2752
2770
  "--ngs-color-on-primary",
2771
+ "--ngs-color-on-primary-container",
2753
2772
  "--ngs-color-on-surface",
2754
2773
  "--ngs-color-on-surface-variant",
2774
+ "--ngs-color-outline",
2755
2775
  "--ngs-color-outline-variant",
2756
2776
  "--ngs-color-primary",
2757
- "--ngs-color-primary-100",
2758
2777
  "--ngs-color-primary-300",
2759
2778
  "--ngs-color-primary-400",
2779
+ "--ngs-color-primary-container",
2760
2780
  "--ngs-color-surface",
2761
2781
  "--ngs-color-surface-container",
2762
2782
  "--ngs-color-surface-container-high",
2763
2783
  "--ngs-color-surface-container-low",
2764
2784
  "--ngs-color-white",
2785
+ "--ngs-content-editor-block-padding",
2786
+ "--ngs-content-editor-block-radius",
2787
+ "--ngs-content-editor-border",
2765
2788
  "--ngs-content-editor-builder-content-width",
2789
+ "--ngs-content-editor-content-width",
2790
+ "--ngs-content-editor-control-size",
2791
+ "--ngs-content-editor-field-border",
2792
+ "--ngs-content-editor-font-size",
2793
+ "--ngs-content-editor-heading-1-size",
2794
+ "--ngs-content-editor-heading-2-size",
2795
+ "--ngs-content-editor-heading-3-size",
2796
+ "--ngs-content-editor-heading-4-size",
2797
+ "--ngs-content-editor-heading-5-size",
2798
+ "--ngs-content-editor-heading-6-size",
2799
+ "--ngs-content-editor-heading-line-height",
2800
+ "--ngs-content-editor-heading-weight",
2801
+ "--ngs-content-editor-hover-bg",
2802
+ "--ngs-content-editor-line-height",
2803
+ "--ngs-content-editor-muted-color",
2766
2804
  "--ngs-content-editor-nested-controls-offset",
2805
+ "--ngs-content-editor-placeholder-color",
2767
2806
  "--ngs-content-editor-renderer-block-gap",
2807
+ "--ngs-content-editor-selected-bg",
2808
+ "--ngs-content-editor-selected-color",
2809
+ "--ngs-content-editor-surface",
2810
+ "--ngs-content-editor-toolbar-bg",
2811
+ "--ngs-content-editor-toolbar-color",
2812
+ "--ngs-content-editor-toolbar-radius",
2813
+ "--ngs-control-radius",
2768
2814
  "--ngs-expansion-panel-content-padding",
2815
+ "--ngs-font-size-md",
2769
2816
  "--ngs-font-size-sm",
2770
2817
  "--ngs-form-field-border-color",
2818
+ "--ngs-form-field-border-radius",
2771
2819
  "--ngs-form-field-border-width",
2772
2820
  "--ngs-form-field-container-min-height",
2773
2821
  "--ngs-form-field-input-height",
@@ -2781,6 +2829,10 @@
2781
2829
  "--ngs-shadow-lg",
2782
2830
  "--ngs-shadow-sm",
2783
2831
  "--ngs-state-focus-ring",
2832
+ "--ngs-state-hover-bg",
2833
+ "--ngs-upload-area-border",
2834
+ "--ngs-upload-area-border-radius",
2835
+ "--ngs-upload-area-color",
2784
2836
  "--ngs-upload-area-padding"
2785
2837
  ],
2786
2838
  "example": null
@@ -2874,6 +2926,7 @@
2874
2926
  "Autofocusable",
2875
2927
  "AUTOFOCUSABLE",
2876
2928
  "AutoFocusDirective",
2929
+ "bindNgsOverlayTheme",
2877
2930
  "DebounceTimeDirective",
2878
2931
  "defaultRippleAnimationConfig",
2879
2932
  "ENVIRONMENT",
@@ -3235,7 +3288,9 @@
3235
3288
  "[ngsDataViewEmptyFilterResults]",
3236
3289
  "ngs-data-view",
3237
3290
  "ngs-data-view-action-bar",
3238
- "ngs-data-view-column-settings-dialog"
3291
+ "ngs-data-view-column-filter-dialog",
3292
+ "ngs-data-view-column-settings-dialog",
3293
+ "ngs-data-view-saved-view-dialog"
3239
3294
  ],
3240
3295
  "exportedSymbols": [
3241
3296
  "cellRenderer",
@@ -3251,28 +3306,51 @@
3251
3306
  "DataViewCellRenderer",
3252
3307
  "DataViewCellRendererDef",
3253
3308
  "DataViewColumnDef",
3309
+ "DataViewColumnFilter",
3310
+ "DataViewColumnFilterConfig",
3311
+ "DataViewColumnFilterDialog",
3254
3312
  "DataViewColumnSettingsDialog",
3255
3313
  "DataViewColumnWidth",
3256
3314
  "DataViewConfig",
3257
3315
  "DataViewDatasource",
3316
+ "dataViewDateKey",
3258
3317
  "DataViewEmptyDataDirective",
3259
3318
  "DataViewEmptyFilterResultsDirective",
3319
+ "DataViewFilterDialogData",
3320
+ "dataViewFilterLabel",
3321
+ "DataViewFilterModel",
3260
3322
  "DataViewGetRowsParams",
3261
3323
  "DataViewInterface",
3262
3324
  "DataViewPinAlign",
3325
+ "DataViewRowId",
3263
3326
  "DataViewRowModelType",
3264
3327
  "DataViewRowSelectionEvent",
3265
3328
  "DataViewRowSelectionEventSource",
3329
+ "DataViewSavedView",
3330
+ "DataViewSavedViewDialog",
3331
+ "DataViewSavedViewDialogData",
3332
+ "DataViewSelection",
3333
+ "DataViewSelectionScope",
3334
+ "DataViewSelectionState",
3266
3335
  "DataViewState",
3336
+ "DataViewViewState",
3337
+ "DataViewViewStorage",
3338
+ "matchesDataViewFilter",
3339
+ "normalizeDataViewFilter",
3340
+ "normalizeDataViewFilters",
3341
+ "normalizeDataViewSavedViews",
3342
+ "normalizeDataViewState",
3267
3343
  "provideDataView"
3268
3344
  ],
3269
3345
  "inputs": [
3270
3346
  "allowSingleRowSelectionByClick",
3347
+ "ariaLabel",
3271
3348
  "autoHeight",
3272
3349
  "bodyScroll",
3273
3350
  "bufferRows",
3274
3351
  "cellRenderers",
3275
3352
  "columnDefs",
3353
+ "columnFilters",
3276
3354
  "data",
3277
3355
  "datasource",
3278
3356
  "embedded",
@@ -3295,22 +3373,31 @@
3295
3373
  "rowHeight",
3296
3374
  "rowModelType",
3297
3375
  "rowSelection",
3376
+ "savedViews",
3298
3377
  "search",
3378
+ "selectionScope",
3299
3379
  "selectionWidth",
3300
3380
  "showFirstLastButtons",
3301
3381
  "snapshot",
3382
+ "sortState",
3302
3383
  "stickyHeader",
3384
+ "viewStorageKey",
3303
3385
  "width",
3304
3386
  "withColumnSettings",
3305
3387
  "withPagination",
3388
+ "withSavedViews",
3306
3389
  "withSelection"
3307
3390
  ],
3308
3391
  "outputs": [
3309
3392
  "allRowsSelectionChanged",
3310
3393
  "loadEnd",
3394
+ "loadError",
3311
3395
  "refreshEnd",
3396
+ "rowActivated",
3312
3397
  "selectionChanged",
3313
- "sortChange"
3398
+ "sortChange",
3399
+ "stateChanged",
3400
+ "viewApplied"
3314
3401
  ],
3315
3402
  "cssTokens": [
3316
3403
  "--ngs-color-background",
@@ -3333,6 +3420,7 @@
3333
3420
  "--ngs-data-view-row-bg",
3334
3421
  "--ngs-data-view-row-hover-bg",
3335
3422
  "--ngs-data-view-selection-column-width",
3423
+ "--ngs-form-field-width",
3336
3424
  "--ngs-radius-xl",
3337
3425
  "--ngs-table-background",
3338
3426
  "--ngs-table-header-cell-background",
@@ -6538,6 +6626,7 @@
6538
6626
  "pushIntoViewport",
6539
6627
  "role",
6540
6628
  "selected",
6629
+ "themeSource",
6541
6630
  "xPosition",
6542
6631
  "yPosition"
6543
6632
  ],
@@ -6549,7 +6638,6 @@
6549
6638
  "valueChange"
6550
6639
  ],
6551
6640
  "cssTokens": [
6552
- "--ngs-color-neutral-700",
6553
6641
  "--ngs-color-on-surface",
6554
6642
  "--ngs-color-on-surface-variant",
6555
6643
  "--ngs-color-subtle",
@@ -6577,6 +6665,7 @@
6577
6665
  "--ngs-menu-border",
6578
6666
  "--ngs-menu-divider-color",
6579
6667
  "--ngs-menu-divider-margin",
6668
+ "--ngs-menu-heading-color",
6580
6669
  "--ngs-menu-item-active-background",
6581
6670
  "--ngs-menu-item-color",
6582
6671
  "--ngs-menu-item-disabled-color",
@@ -715,3 +715,185 @@ Use `config.importMarks` for additional HTML mark definitions (type, tagName, pa
715
715
  4. Include all required media fields, including empty strings/arrays if unfilled, and attachment byte count/MIME type. Use persistent URLs for production assets. Runtime uploadFn callbacks do not belong in JSON.
716
716
  5. Validate against document.schema.json, then use contentEditorFromJson for semantic ID, URL and limit checks before storing/importing.
717
717
  6. Use native JSON for exact re-import. Treat HTML as an interoperable display/import representation with the documented metadata limitations.
718
+
719
+ ## Editing, insertion and application-defined blocks
720
+
721
+ Builder import defaults to replacement. Insert mode copies the entire imported tree with fresh
722
+ block, grid-cell and gallery-image IDs, leaving the source object untouched. A destination is a
723
+ root collection, Toggle body, or Grid cell. Capture the destination before opening an overlay:
724
+
725
+ ```ts
726
+ const target = builder.getInsertionTarget();
727
+ // Root: { scope: {}, afterId: 'paragraph-id' }
728
+ // Toggle: { scope: { parentId: 'toggle-id' }, afterId: 'child-id' }
729
+ // Grid: { scope: { parentId: 'grid-id', cellId: 'cell-id' }, afterId: 'child-id' }
730
+ builder.importHtml(html, {}, { mode: 'insert', target });
731
+ builder.importJson(json, {}, { mode: 'insert', target });
732
+ // Omit afterId to append to the collection; omit target to use the active destination.
733
+ ```
734
+
735
+ The destination must still exist when importing. An invalid parent, cell, or `afterId` raises
736
+ `ContentEditorImportError` without changing the document. Import remains one Undo/Redo operation.
737
+ Paste uses the same HTML importer and configuration. Paragraph/Heading fields split around the current selection when pasting structured blocks, retaining lists/tables and surrounding marked text. Other inline text fields flatten supported HTML structure to text lines while retaining supported marks; code fields retain literal text.
738
+
739
+ `builder.convertBlock(id, type, settings?)` converts `paragraph`, `heading`, `quote` and `callout`,
740
+ including nested blocks. It retains ID, rich text, custom attrs and alignment. Quote attribution
741
+ becomes a final text line when converting to another type. Unsupported source types return `false`.
742
+ Use the block action menu's **Turn into** action. The heading default is level 2; callout defaults
743
+ to `note`. Conversion is a single history operation and restores the active text range.
744
+
745
+ ### A single block registration
746
+
747
+ Each `ContentEditorConfig.blocks[type]` entry may define all block behaviour:
748
+
749
+ | Field | Contract |
750
+ | --- | --- |
751
+ | `editor` | Standalone Angular component with the standard editor inputs. |
752
+ | `loadEditor` | `() => Promise<Type<unknown>>`; takes precedence over `editor`. |
753
+ | `renderer` | Standalone preview component with the standard renderer inputs. |
754
+ | `create` | `() => { content, attrs? }`; the builder supplies the new ID and type. |
755
+ | `menu` | `{ title, description?, iconName?, settings? }`; registers a global menu item. |
756
+ | `options` | Runtime editor options, including upload callbacks and maximum file size. |
757
+ | `toHtml` | HTML converter; use `ctx.escape()` and `ctx.safeUrl()` for dynamic values. |
758
+ | `fromHtml` | `{ selector, parse(element, context) }` importer. |
759
+ | `validateImport` | Return an error string to reject imported block data; otherwise return `undefined`. |
760
+
761
+ Provide the configuration globally with `provideContentEditorConfig(config)` or pass `[config]`
762
+ to a builder/renderer. Nested editing uses the root builder's definitions. Nested preview renderers
763
+ inherit instance configuration, so a custom block inside Grid/Toggle needs no additional provider.
764
+ Environment defaults are merged first, then instance overrides; block fields and options merge
765
+ individually. Legacy renderer providers remain supported; `blocks[type].renderer` takes precedence.
766
+
767
+ ```ts
768
+ import { ContentEditorConfig, provideContentEditorConfig }
769
+ from '@ngstarter-ui/components/content-editor';
770
+
771
+ const config: ContentEditorConfig = {
772
+ blocks: {
773
+ product: {
774
+ editor: ProductEditor,
775
+ renderer: ProductPreview,
776
+ create: () => ({ content: { productId: '' } }),
777
+ menu: { title: 'Product', description: 'A product card' },
778
+ validateImport: block =>
779
+ typeof (block.content as { productId?: unknown })?.productId === 'string'
780
+ ? undefined : 'productId must be a string',
781
+ fromHtml: {
782
+ selector: '[data-product-id]',
783
+ parse: (element, ctx) => ctx.createBlock('product', {
784
+ productId: element.getAttribute('data-product-id') ?? ''
785
+ })
786
+ },
787
+ toHtml: (block, ctx) =>
788
+ `<div data-product-id="${ctx.escape((block.content as { productId: string }).productId)}"></div>`
789
+ }
790
+ }
791
+ };
792
+ // Application/route providers: [provideContentEditorConfig(config)]
793
+ // Or: <ngs-content-editor-builder [config]="config" ... />
794
+ // And: <ngs-content-editor-renderer [config]="config" ... />
795
+ ```
796
+
797
+ `ContentEditorBlockBase<TContent, TSettings>` supplies `id`, `content`, `settings`, `props`, `index`,
798
+ `initialized`, focus and history integration. Extend it in an editor and call protected
799
+ `save(nextContent, nextSettings?)`. `latestContent()` reads the current native value for edits that
800
+ may race with another field. `ContentEditorRendererBase<TContent, TSettings>` supplies preview
801
+ inputs, including the native `block`. Import both through the public `content-editor` entry point.
802
+ The docs builder includes a working Bookmark registration using these APIs.
803
+
804
+ A custom block entry explicitly permits its type during JSON import, and its `validateImport`
805
+ checks its content. Extend the supplied built-in JSON Schema with your own block shape when external
806
+ systems also validate custom documents. Unknown types without an explicit entry are rejected by
807
+ default. Runtime components/callbacks never belong in the saved JSON.
808
+
809
+ ## Media upload contract
810
+
811
+ Image, Video, Gallery and Attachment share progress, cancellation, visible errors and retry.
812
+ Configure `options.uploadFn` and optionally `options.maxFileSize` (bytes) in their block entry:
813
+
814
+ ```ts
815
+ import { ContentEditorUploadFn } from '@ngstarter-ui/components/content-editor';
816
+
817
+ const uploadFn: ContentEditorUploadFn = async (file, dataUrl, context) => {
818
+ const form = new FormData();
819
+ form.append('file', file);
820
+ const response = await fetch('/api/uploads', { method: 'POST', body: form, signal: context.signal });
821
+ if (!response.ok) throw new Error('Upload failed');
822
+ const result = await response.json() as { url: string };
823
+ return result.url;
824
+ };
825
+ // For a transport supporting progress, call context.onProgress(percent), from 0 to 100.
826
+ // Existing callbacks taking (file, dataUrl) continue to work.
827
+ provideContentEditorConfig({ blocks: { image: { options: { uploadFn, maxFileSize: 10 * 1024 * 1024 } } } });
828
+ ```
829
+
830
+ Cancellation aborts file reading and signals the transport. Late results never update a cancelled,
831
+ removed, replaced or read-only block. Consumers must pass `context.signal` to their transport to
832
+ stop its network request. Gallery keeps successful files and retry resends only failed files.
833
+ MIME/size rejection requires choosing another file and is not automatically retried.
834
+ Without transport progress the indicator is indeterminate. A successful upload returns a supported
835
+ resource URL; callbacks must reject on failure. Default callbacks use data URLs.
836
+
837
+ ## Draft persistence
838
+
839
+ Use a stable document ID for multiple editors or multiple documents on the same route:
840
+
841
+ ```html
842
+ <ngs-content-editor-builder documentId="article-42" [content]="document"
843
+ [persistDraft]="true" [draftDebounceMs]="500" />
844
+ ```
845
+
846
+ `persistDraft` defaults to true. Saves are delayed by 500ms by default and flushed on component
847
+ destruction or document switch. `documentId` identifies the storage entry; when omitted, the
848
+ existing route + element-ID storage key remains in use. Provide distinct IDs for independent editors.
849
+ Drafts are validated with the same JSON importer and custom configuration before restoration.
850
+ Malformed data falls back to the supplied document and exposes the error; it is not silently removed.
851
+
852
+ The builder exposes `draftStatus` (`disabled`, `idle`, `saving`, `saved`, `error`), `draftError`,
853
+ `draftSavedAt`, `saveDraftNow()` and `clearDraft()`. Status signals can drive an `aria-live` indicator
854
+ and a retry action. `clearDraft()` removes persisted state without altering the current document.
855
+ Storage/quota failures remain visible. No draft storage runs during SSR.
856
+
857
+ Environment or instance config can set `draft.debounceMs` and `draft.storage`. A storage adapter
858
+ implements synchronous `getItem(key): string | null`, `setItem(key, value): void`, and
859
+ `removeItem(key): void`; it stores serialized native JSON. The default is browser `localStorage`.
860
+ `[draftDebounceMs]` overrides the configured delay. Use `contentChanged` for asynchronous server
861
+ persistence.
862
+
863
+
864
+ ## Editor design tokens
865
+
866
+ Editing and preview share typography and theme roles. Override the following CSS custom properties
867
+ on the editor/renderer or a surrounding theme scope; do not store visual theme settings in document JSON.
868
+
869
+ | Token | Purpose |
870
+ | --- | --- |
871
+ | `--ngs-content-editor-content-width` | Default text/table content width (704px). |
872
+ | `--ngs-content-editor-font-size`, `--ngs-content-editor-line-height` | Body typography in editing and preview. |
873
+ | `--ngs-content-editor-heading-1-size` … `--ngs-content-editor-heading-6-size` | Responsive heading scale shared by both surfaces. |
874
+ | `--ngs-content-editor-heading-weight`, `--ngs-content-editor-heading-line-height` | Heading typography. |
875
+ | `--ngs-content-editor-muted-color`, `--ngs-content-editor-placeholder-color` | Metadata and empty text fields. |
876
+ | `--ngs-content-editor-hover-bg` | Hovered block background. |
877
+ | `--ngs-content-editor-selected-bg`, `--ngs-content-editor-selected-color` | Selected block colors as a matching pair. |
878
+ | `--ngs-content-editor-block-padding`, `--ngs-content-editor-block-radius` | Block geometry. |
879
+ | `--ngs-content-editor-control-size` | Block actions; follows the shared small control size/density. |
880
+ | `--ngs-content-editor-toolbar-bg`, `--ngs-content-editor-toolbar-color`, `--ngs-content-editor-toolbar-radius` | Floating toolbar appearance; inverse surface roles by default. |
881
+ | `--ngs-content-editor-surface`, `--ngs-content-editor-border`, `--ngs-content-editor-field-border` | Media surfaces and visible field edges. |
882
+
883
+ ```scss
884
+ .article-editor {
885
+ --ngs-content-editor-content-width: 760px;
886
+ --ngs-content-editor-heading-weight: 600;
887
+ --ngs-content-editor-block-radius: var(--ngs-radius-md);
888
+ }
889
+ ```
890
+
891
+ The floating toolbar and its menus copy the editor's NgStarter tokens into CDK overlay panes and
892
+ follow changes to ancestor theme attributes, classes or inline token overrides while open.
893
+ `Menu.themeSource` is an optional HTML element for the same behaviour in other menus.
894
+ `bindNgsOverlayTheme(source, target)` from the public `core` entry point returns a cleanup function
895
+ for custom overlays. Call cleanup when detaching/destroying the overlay.
896
+
897
+ The insertion menu has a fixed search header, retains its 70vh size, filters block names/descriptions,
898
+ and supports Enter to insert the first result into the triggering root/nested collection.
899
+ ArrowDown moves from search to the first result; Escape closes the menu. Closing clears the query.