@ngstarter-ui/components 22.2.4 → 22.2.6

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 (105) hide show
  1. package/ai/component-registry.json +89 -13
  2. package/content-editor/BLOCK_FORMAT.md +38 -0
  3. package/data-view/API.md +262 -0
  4. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +67 -44
  5. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  6. package/fesm2022/ngstarter-ui-components-button.mjs +2 -2
  7. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  8. package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs → ngstarter-ui-components-content-editor-attachment-block-Dvrxn-PJ.mjs} +2 -2
  9. package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs.map → ngstarter-ui-components-content-editor-attachment-block-Dvrxn-PJ.mjs.map} +1 -1
  10. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs → ngstarter-ui-components-content-editor-callout-block-hBA6Xogj.mjs} +3 -3
  11. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs.map → ngstarter-ui-components-content-editor-callout-block-hBA6Xogj.mjs.map} +1 -1
  12. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs → ngstarter-ui-components-content-editor-code-block.component-BaaymubZ.mjs} +4 -4
  13. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs.map → ngstarter-ui-components-content-editor-code-block.component-BaaymubZ.mjs.map} +1 -1
  14. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs → ngstarter-ui-components-content-editor-embed-block-BWAtix_P.mjs} +2 -2
  15. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs.map → ngstarter-ui-components-content-editor-embed-block-BWAtix_P.mjs.map} +1 -1
  16. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs → ngstarter-ui-components-content-editor-gallery-block-C8mgrc2q.mjs} +4 -4
  17. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs.map → ngstarter-ui-components-content-editor-gallery-block-C8mgrc2q.mjs.map} +1 -1
  18. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs → ngstarter-ui-components-content-editor-grid-block-B0AfTFLQ.mjs} +6 -6
  19. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs.map → ngstarter-ui-components-content-editor-grid-block-B0AfTFLQ.mjs.map} +1 -1
  20. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs → ngstarter-ui-components-content-editor-heading-block.component-B0ZuUcQn.mjs} +8 -5
  21. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-B0ZuUcQn.mjs.map +1 -0
  22. package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs → ngstarter-ui-components-content-editor-image-block.component-ZCS4hvUg.mjs} +4 -4
  23. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-ZCS4hvUg.mjs.map +1 -0
  24. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs → ngstarter-ui-components-content-editor-list-block.component-Ct-ARQ12.mjs} +4 -4
  25. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs.map → ngstarter-ui-components-content-editor-list-block.component-Ct-ARQ12.mjs.map} +1 -1
  26. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs → ngstarter-ui-components-content-editor-nested-blocks-B22kRf9a.mjs} +4 -4
  27. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs.map → ngstarter-ui-components-content-editor-nested-blocks-B22kRf9a.mjs.map} +1 -1
  28. package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-B_6Olt0R.mjs} +93 -41
  29. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-B_6Olt0R.mjs.map +1 -0
  30. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-BiBe4KAy.mjs} +4 -4
  31. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs.map → ngstarter-ui-components-content-editor-paragraph-block.component-BiBe4KAy.mjs.map} +1 -1
  32. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs → ngstarter-ui-components-content-editor-quote-block.component-BuCyqiE2.mjs} +4 -4
  33. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-BuCyqiE2.mjs.map} +1 -1
  34. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs → ngstarter-ui-components-content-editor-table-block.component-Ck5GsDJM.mjs} +4 -4
  35. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs.map → ngstarter-ui-components-content-editor-table-block.component-Ck5GsDJM.mjs.map} +1 -1
  36. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs → ngstarter-ui-components-content-editor-toggle-block-_hXAyzUb.mjs} +3 -3
  37. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs.map → ngstarter-ui-components-content-editor-toggle-block-_hXAyzUb.mjs.map} +1 -1
  38. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs → ngstarter-ui-components-content-editor-video-block.component-bDo8XvID.mjs} +2 -2
  39. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs.map → ngstarter-ui-components-content-editor-video-block.component-bDo8XvID.mjs.map} +1 -1
  40. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  41. package/fesm2022/ngstarter-ui-components-core.mjs +114 -3
  42. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-country-select.mjs +5 -17
  44. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-currency-select.mjs +6 -18
  46. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-data-view.mjs +1011 -90
  48. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +3 -4
  50. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-datepicker.mjs +45 -19
  52. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +1 -1
  54. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-form-builder.mjs +5 -5
  56. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +1 -1
  58. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-image-designer.mjs +2 -2
  60. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +1 -1
  62. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-menu.mjs +244 -29
  64. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-option.mjs +36 -31
  66. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-paginator.mjs +1 -1
  68. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1 -1
  70. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1 -1
  72. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2 -2
  74. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-select.mjs +157 -105
  76. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1 -1
  78. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-sort.mjs +9 -2
  80. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-table.mjs +10 -0
  82. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-timepicker.mjs +1 -1
  84. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +6 -13
  86. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  87. package/package.json +1 -1
  88. package/styles/_common.scss +2 -1
  89. package/styles/_tokens.scss +32 -1
  90. package/styles/themes/default.scss +1 -1
  91. package/types/ngstarter-ui-components-autocomplete.d.ts +6 -1
  92. package/types/ngstarter-ui-components-content-editor.d.ts +6 -1
  93. package/types/ngstarter-ui-components-core.d.ts +24 -3
  94. package/types/ngstarter-ui-components-country-select.d.ts +0 -2
  95. package/types/ngstarter-ui-components-currency-select.d.ts +0 -2
  96. package/types/ngstarter-ui-components-data-view.d.ts +204 -11
  97. package/types/ngstarter-ui-components-datepicker.d.ts +3 -1
  98. package/types/ngstarter-ui-components-menu.d.ts +44 -5
  99. package/types/ngstarter-ui-components-option.d.ts +11 -3
  100. package/types/ngstarter-ui-components-select.d.ts +12 -7
  101. package/types/ngstarter-ui-components-sort.d.ts +1 -0
  102. package/types/ngstarter-ui-components-table.d.ts +2 -0
  103. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs.map +0 -1
  104. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs.map +0 -1
  105. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs.map +0 -1
@@ -388,6 +388,7 @@
388
388
  "purpose": "Let users search and choose from suggestions while typing.",
389
389
  "useWhen": "Use for large option lists where a select would be too slow or crowded.",
390
390
  "exampleTopics": [
391
+ "Keyboard access",
391
392
  "Simple autocomplete",
392
393
  "Custom Filter",
393
394
  "Separate control and display values",
@@ -2767,29 +2768,55 @@
2767
2768
  "--ngs-carousel-gap",
2768
2769
  "--ngs-color-black",
2769
2770
  "--ngs-color-border",
2770
- "--ngs-color-neutral-200",
2771
- "--ngs-color-neutral-50",
2772
- "--ngs-color-neutral-500",
2773
- "--ngs-color-neutral-600",
2774
2771
  "--ngs-color-on-primary",
2772
+ "--ngs-color-on-primary-container",
2775
2773
  "--ngs-color-on-surface",
2776
2774
  "--ngs-color-on-surface-variant",
2775
+ "--ngs-color-outline",
2777
2776
  "--ngs-color-outline-variant",
2778
2777
  "--ngs-color-primary",
2779
- "--ngs-color-primary-100",
2780
2778
  "--ngs-color-primary-300",
2781
2779
  "--ngs-color-primary-400",
2780
+ "--ngs-color-primary-container",
2782
2781
  "--ngs-color-surface",
2783
2782
  "--ngs-color-surface-container",
2784
2783
  "--ngs-color-surface-container-high",
2785
2784
  "--ngs-color-surface-container-low",
2786
2785
  "--ngs-color-white",
2786
+ "--ngs-content-editor-block-padding",
2787
+ "--ngs-content-editor-block-radius",
2788
+ "--ngs-content-editor-border",
2787
2789
  "--ngs-content-editor-builder-content-width",
2790
+ "--ngs-content-editor-content-width",
2791
+ "--ngs-content-editor-control-size",
2792
+ "--ngs-content-editor-field-border",
2793
+ "--ngs-content-editor-font-size",
2794
+ "--ngs-content-editor-heading-1-size",
2795
+ "--ngs-content-editor-heading-2-size",
2796
+ "--ngs-content-editor-heading-3-size",
2797
+ "--ngs-content-editor-heading-4-size",
2798
+ "--ngs-content-editor-heading-5-size",
2799
+ "--ngs-content-editor-heading-6-size",
2800
+ "--ngs-content-editor-heading-line-height",
2801
+ "--ngs-content-editor-heading-weight",
2802
+ "--ngs-content-editor-hover-bg",
2803
+ "--ngs-content-editor-line-height",
2804
+ "--ngs-content-editor-muted-color",
2788
2805
  "--ngs-content-editor-nested-controls-offset",
2806
+ "--ngs-content-editor-placeholder-color",
2789
2807
  "--ngs-content-editor-renderer-block-gap",
2808
+ "--ngs-content-editor-selected-bg",
2809
+ "--ngs-content-editor-selected-color",
2810
+ "--ngs-content-editor-surface",
2811
+ "--ngs-content-editor-toolbar-bg",
2812
+ "--ngs-content-editor-toolbar-color",
2813
+ "--ngs-content-editor-toolbar-radius",
2814
+ "--ngs-control-radius",
2790
2815
  "--ngs-expansion-panel-content-padding",
2816
+ "--ngs-font-size-md",
2791
2817
  "--ngs-font-size-sm",
2792
2818
  "--ngs-form-field-border-color",
2819
+ "--ngs-form-field-border-radius",
2793
2820
  "--ngs-form-field-border-width",
2794
2821
  "--ngs-form-field-container-min-height",
2795
2822
  "--ngs-form-field-input-height",
@@ -2803,6 +2830,10 @@
2803
2830
  "--ngs-shadow-lg",
2804
2831
  "--ngs-shadow-sm",
2805
2832
  "--ngs-state-focus-ring",
2833
+ "--ngs-state-hover-bg",
2834
+ "--ngs-upload-area-border",
2835
+ "--ngs-upload-area-border-radius",
2836
+ "--ngs-upload-area-color",
2806
2837
  "--ngs-upload-area-padding"
2807
2838
  ],
2808
2839
  "example": null
@@ -2896,8 +2927,12 @@
2896
2927
  "Autofocusable",
2897
2928
  "AUTOFOCUSABLE",
2898
2929
  "AutoFocusDirective",
2930
+ "bindNgsOverlayTheme",
2931
+ "createDropdownActiveDescendantKeyManager",
2932
+ "createDropdownFocusKeyManager",
2899
2933
  "DebounceTimeDirective",
2900
2934
  "defaultRippleAnimationConfig",
2935
+ "DropdownNavigationConfig",
2901
2936
  "ENVIRONMENT",
2902
2937
  "EnvironmentService",
2903
2938
  "ErrorStateMatcher",
@@ -2913,6 +2948,8 @@
2913
2948
  "InactivityTrackerService",
2914
2949
  "InitialsPipe",
2915
2950
  "injectElement",
2951
+ "isDropdownItemHidden",
2952
+ "isDropdownTextInput",
2916
2953
  "isElement",
2917
2954
  "MutationObserverService",
2918
2955
  "NGS_THEME_COLOR_PRESET_IDS",
@@ -2946,6 +2983,7 @@
2946
2983
  "SafeHtmlPipe",
2947
2984
  "SafeResourceUrlPipe",
2948
2985
  "ScreenLoaderService",
2986
+ "scrollDropdownItemIntoView",
2949
2987
  "SearchByPropertyPipe",
2950
2988
  "SeoService",
2951
2989
  "ShowOnDirtyErrorStateMatcher",
@@ -3080,9 +3118,7 @@
3080
3118
  "selectionChange"
3081
3119
  ],
3082
3120
  "cssTokens": [
3083
- "--ngs-color-neutral-500",
3084
3121
  "--ngs-color-on-surface-variant",
3085
- "--ngs-dropdown-item-gap",
3086
3122
  "--ngs-font-size-sm"
3087
3123
  ],
3088
3124
  "example": null
@@ -3185,9 +3221,7 @@
3185
3221
  "opened"
3186
3222
  ],
3187
3223
  "cssTokens": [
3188
- "--ngs-color-neutral-500",
3189
3224
  "--ngs-color-on-surface-variant",
3190
- "--ngs-dropdown-item-gap",
3191
3225
  "--ngs-field-label-color",
3192
3226
  "--ngs-font-size-sm",
3193
3227
  "--ngs-select-placeholder-color"
@@ -3257,7 +3291,9 @@
3257
3291
  "[ngsDataViewEmptyFilterResults]",
3258
3292
  "ngs-data-view",
3259
3293
  "ngs-data-view-action-bar",
3260
- "ngs-data-view-column-settings-dialog"
3294
+ "ngs-data-view-column-filter-dialog",
3295
+ "ngs-data-view-column-settings-dialog",
3296
+ "ngs-data-view-saved-view-dialog"
3261
3297
  ],
3262
3298
  "exportedSymbols": [
3263
3299
  "cellRenderer",
@@ -3273,28 +3309,51 @@
3273
3309
  "DataViewCellRenderer",
3274
3310
  "DataViewCellRendererDef",
3275
3311
  "DataViewColumnDef",
3312
+ "DataViewColumnFilter",
3313
+ "DataViewColumnFilterConfig",
3314
+ "DataViewColumnFilterDialog",
3276
3315
  "DataViewColumnSettingsDialog",
3277
3316
  "DataViewColumnWidth",
3278
3317
  "DataViewConfig",
3279
3318
  "DataViewDatasource",
3319
+ "dataViewDateKey",
3280
3320
  "DataViewEmptyDataDirective",
3281
3321
  "DataViewEmptyFilterResultsDirective",
3322
+ "DataViewFilterDialogData",
3323
+ "dataViewFilterLabel",
3324
+ "DataViewFilterModel",
3282
3325
  "DataViewGetRowsParams",
3283
3326
  "DataViewInterface",
3284
3327
  "DataViewPinAlign",
3328
+ "DataViewRowId",
3285
3329
  "DataViewRowModelType",
3286
3330
  "DataViewRowSelectionEvent",
3287
3331
  "DataViewRowSelectionEventSource",
3332
+ "DataViewSavedView",
3333
+ "DataViewSavedViewDialog",
3334
+ "DataViewSavedViewDialogData",
3335
+ "DataViewSelection",
3336
+ "DataViewSelectionScope",
3337
+ "DataViewSelectionState",
3288
3338
  "DataViewState",
3339
+ "DataViewViewState",
3340
+ "DataViewViewStorage",
3341
+ "matchesDataViewFilter",
3342
+ "normalizeDataViewFilter",
3343
+ "normalizeDataViewFilters",
3344
+ "normalizeDataViewSavedViews",
3345
+ "normalizeDataViewState",
3289
3346
  "provideDataView"
3290
3347
  ],
3291
3348
  "inputs": [
3292
3349
  "allowSingleRowSelectionByClick",
3350
+ "ariaLabel",
3293
3351
  "autoHeight",
3294
3352
  "bodyScroll",
3295
3353
  "bufferRows",
3296
3354
  "cellRenderers",
3297
3355
  "columnDefs",
3356
+ "columnFilters",
3298
3357
  "data",
3299
3358
  "datasource",
3300
3359
  "embedded",
@@ -3317,22 +3376,31 @@
3317
3376
  "rowHeight",
3318
3377
  "rowModelType",
3319
3378
  "rowSelection",
3379
+ "savedViews",
3320
3380
  "search",
3381
+ "selectionScope",
3321
3382
  "selectionWidth",
3322
3383
  "showFirstLastButtons",
3323
3384
  "snapshot",
3385
+ "sortState",
3324
3386
  "stickyHeader",
3387
+ "viewStorageKey",
3325
3388
  "width",
3326
3389
  "withColumnSettings",
3327
3390
  "withPagination",
3391
+ "withSavedViews",
3328
3392
  "withSelection"
3329
3393
  ],
3330
3394
  "outputs": [
3331
3395
  "allRowsSelectionChanged",
3332
3396
  "loadEnd",
3397
+ "loadError",
3333
3398
  "refreshEnd",
3399
+ "rowActivated",
3334
3400
  "selectionChanged",
3335
- "sortChange"
3401
+ "sortChange",
3402
+ "stateChanged",
3403
+ "viewApplied"
3336
3404
  ],
3337
3405
  "cssTokens": [
3338
3406
  "--ngs-color-background",
@@ -3355,6 +3423,7 @@
3355
3423
  "--ngs-data-view-row-bg",
3356
3424
  "--ngs-data-view-row-hover-bg",
3357
3425
  "--ngs-data-view-selection-column-width",
3426
+ "--ngs-form-field-width",
3358
3427
  "--ngs-radius-xl",
3359
3428
  "--ngs-table-background",
3360
3429
  "--ngs-table-header-cell-background",
@@ -6483,6 +6552,7 @@
6483
6552
  "purpose": "Show a short contextual set of commands in an overlay opened from a trigger or right-click area.",
6484
6553
  "useWhen": "Use ngs-menu for row actions, overflow more actions, user menus, context menus, toolbar actions, and nested command groups. Put ngsMenuTriggerFor on a button ngsButton, button ngsIconButton, row action, or toolbar control. Use ngsContextMenuTriggerFor for right-click menus. Use button ngs-menu-item for commands, and ngs-menu-divider, ngs-menu-heading, ngs-menu-header, and ngs-menu-footer for structure. Use nested menus when a command opens a secondary command group. Use ngsMenuContent with ngsMenuTriggerData when the same menu template must render lazily for a specific row, user, or item. Do not use Menu for selecting form values; use Select, Autocomplete, ColorSwitcher, Datepicker, or another dedicated form control. Do not use for persistent navigation; use Navigation, Sidebar, Sidenav, or NavList. Do not use for long lists, tables, filters, forms, modal workflows, command palettes, or bulk action bars; use List, Table/DataView, Dialog, CommandBar, or Overlay/Popover as appropriate.",
6485
6554
  "exampleTopics": [
6555
+ "Keyboard access",
6486
6556
  "Basic Menu",
6487
6557
  "Menu With Icons",
6488
6558
  "Menu Divider",
@@ -6560,6 +6630,7 @@
6560
6630
  "pushIntoViewport",
6561
6631
  "role",
6562
6632
  "selected",
6633
+ "themeSource",
6563
6634
  "xPosition",
6564
6635
  "yPosition"
6565
6636
  ],
@@ -6571,7 +6642,6 @@
6571
6642
  "valueChange"
6572
6643
  ],
6573
6644
  "cssTokens": [
6574
- "--ngs-color-neutral-700",
6575
6645
  "--ngs-color-on-surface",
6576
6646
  "--ngs-color-on-surface-variant",
6577
6647
  "--ngs-color-subtle",
@@ -6599,6 +6669,7 @@
6599
6669
  "--ngs-menu-border",
6600
6670
  "--ngs-menu-divider-color",
6601
6671
  "--ngs-menu-divider-margin",
6672
+ "--ngs-menu-heading-color",
6602
6673
  "--ngs-menu-item-active-background",
6603
6674
  "--ngs-menu-item-color",
6604
6675
  "--ngs-menu-item-disabled-color",
@@ -7162,6 +7233,7 @@
7162
7233
  "inputs": [
7163
7234
  "data",
7164
7235
  "disabled",
7236
+ "id",
7165
7237
  "label",
7166
7238
  "selected",
7167
7239
  "value"
@@ -8695,6 +8767,7 @@
8695
8767
  "purpose": "Let users choose one or multiple values from a known dropdown list.",
8696
8768
  "useWhen": "Use ngs-select inside one ngs-form-field when a form, filter, setting, table filter, DataView filter, or admin configuration field should choose from predefined options. Use ngs-option for options, ngs-optgroup for visible grouping, multiple for array values, placeholder, required, disabled, Angular forms, value, and selectionChange for state. Use ngs-select-trigger to customize the closed label, and ngs-select-header, ngs-select-body, or ngs-select-footer when the dropdown panel needs search, custom scrolling, or supporting controls. Do not use Select as a command menu or action list; use Menu. Do not use for route or page navigation; use Navigation, Tabs, Sidebar, Sidenav, or RailNav. Do not use for compact visible mode switching; use Segmented. Do not use for simple visible choices or rich card choices; use Radio or RadioCard. Do not use for arbitrary free text or large remote search suggestion flows; use Autocomplete or a dedicated async picker. Do not use generic Select when a domain-specific control exists, such as CountrySelect, CurrencySelect, DateFormatSelect, or TimezoneSelect.",
8697
8769
  "exampleTopics": [
8770
+ "Keyboard access",
8698
8771
  "Basic Select",
8699
8772
  "Clearable Select",
8700
8773
  "Getting and setting the select value",
@@ -8813,6 +8886,7 @@
8813
8886
  "--ngs-field-font-size",
8814
8887
  "--ngs-field-label-color",
8815
8888
  "--ngs-field-line-height",
8889
+ "--ngs-field-radius",
8816
8890
  "--ngs-filter-trigger-badge-background",
8817
8891
  "--ngs-filter-trigger-badge-color",
8818
8892
  "--ngs-filter-trigger-badge-font-size",
@@ -8827,6 +8901,7 @@
8827
8901
  "--ngs-filter-trigger-value-color",
8828
8902
  "--ngs-filter-trigger-value-font-weight",
8829
8903
  "--ngs-font-size-sm",
8904
+ "--ngs-radius-md",
8830
8905
  "--ngs-select-arrow-color",
8831
8906
  "--ngs-select-arrow-container-width",
8832
8907
  "--ngs-select-arrow-size",
@@ -8856,7 +8931,8 @@
8856
8931
  "--ngs-select-state-font-size",
8857
8932
  "--ngs-select-state-min-height",
8858
8933
  "--ngs-select-state-padding",
8859
- "--ngs-select-trigger-gap"
8934
+ "--ngs-select-trigger-gap",
8935
+ "--ngs-state-focus-ring"
8860
8936
  ],
8861
8937
  "example": "<ngs-select [value]=\"value\">...</ngs-select>"
8862
8938
  },
@@ -859,3 +859,41 @@ implements synchronous `getItem(key): string | null`, `setItem(key, value): void
859
859
  `removeItem(key): void`; it stores serialized native JSON. The default is browser `localStorage`.
860
860
  `[draftDebounceMs]` overrides the configured delay. Use `contentChanged` for asynchronous server
861
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.
@@ -0,0 +1,262 @@
1
+ # DataView workflows API
2
+
3
+ Import from `@ngstarter-ui/components/data-view`. `DataView` is the operational,
4
+ virtualized data grid. Use `Table` for template-defined read-only tables.
5
+
6
+ ```ts
7
+ import { DataView, DataViewColumnDef, provideDataView } from '@ngstarter-ui/components/data-view';
8
+
9
+ interface RecordRow { id: number; name: string; amount: number; created: string; enabled: boolean; status: string; }
10
+
11
+ const columns: DataViewColumnDef[] = [
12
+ { field: 'id', name: 'ID', width: 80, pinned: true, sortable: true },
13
+ { field: 'name', name: 'Name', filter: { type: 'text' } },
14
+ { field: 'amount', name: 'Amount', filter: { type: 'number' } },
15
+ { field: 'created', name: 'Created', filter: { type: 'date' } },
16
+ { field: 'enabled', name: 'Enabled', filter: { type: 'boolean' } },
17
+ { field: 'status', name: 'Status', filter: { type: 'enum', options: [
18
+ { value: 'active', label: 'Active' }, { value: 'pending', label: 'Pending' }
19
+ ] } }
20
+ ];
21
+ const getRowId = (row: RecordRow) => row.id;
22
+
23
+ // Optional environment defaults; all instance inputs still override them.
24
+ export const appConfig = { providers: [provideDataView({ pageSize: 20, withSavedViews: true })] };
25
+ ```
26
+
27
+ ```html
28
+ <ngs-data-view #grid="ngsDataView" [data]="records" [columnDefs]="columns"
29
+ [getRowId]="getRowId" withSelection withPagination withColumnSettings withSavedViews
30
+ selectionScope="page" [(search)]="search" [(columnFilters)]="filters"
31
+ [(savedViews)]="views" viewStorageKey="orders:current-user:views"
32
+ ariaLabel="Orders" (stateChanged)="onState($event)"
33
+ (selectionStateChanged)="onSelection($event)" (rowActivated)="openRecord($event)"/>
34
+ ```
35
+
36
+ ## Stable row selection
37
+
38
+ `getRowId: (row: T) => string | number` is optional for local/reference-based
39
+ selection and required to preserve identity when records are replaced. IDs must
40
+ be unique and stable within the dataset. Number `1` and string `"1"` are distinct.
41
+
42
+ `selectionScope` defaults to `filtered`:
43
+
44
+ | Scope | Client | Server |
45
+ | --- | --- | --- |
46
+ | `page` | Current filtered/sorted page (all filtered rows without pagination) | Loaded page |
47
+ | `filtered` | All results matching quick search and column filters | All matching records, including unloaded rows, when `getRowId` is supplied |
48
+ | `all` | Entire input dataset, including rows hidden by filters | Entire server dataset; query fields are empty |
49
+
50
+ `api.selectAll(scope?)` can override the configured scope for that operation.
51
+ Single selection selects at most one record. Without `getRowId`, server selection
52
+ falls back to the loaded page and reports `scope: 'page'`.
53
+
54
+ ```ts
55
+ interface DataViewSelectionState<T = unknown> {
56
+ scope: 'page' | 'filtered' | 'all';
57
+ allMatching: boolean;
58
+ rowIds: (string | number)[];
59
+ excludedRowIds: (string | number)[];
60
+ rows: T[];
61
+ search: string;
62
+ columnFilters: DataViewFilterModel;
63
+ }
64
+ ```
65
+
66
+ `selectionChanged` remains a `T[]` event containing known selected records. It is
67
+ not the complete list for a server-wide selection. Use `selectionStateChanged`
68
+ or `api.getSelection()` for that descriptor. When `allMatching` is true, interpret
69
+ selection as **the query minus excluded IDs**, not as `rowIds`. `rows` and `rowIds`
70
+ contain known selected records only. After immutable refresh, these record objects
71
+ are updated to their current versions. Deleted client records are removed;
72
+ server records remain selected across pages. A query change clears a server
73
+ `filtered` all-matching selection; `all` selection survives query changes.
74
+ Checkbox events use source `checkbox`, single-row click uses `row`, and keyboard
75
+ selection uses `keyboard`. `api.unselectAll()` clears explicit and all-matching
76
+ selection.
77
+
78
+ ## Typed column filters
79
+
80
+ `columnFilters` is a two-way model keyed by field path. Filters combine with AND;
81
+ quick search is an additional condition. Column `filter` enables its header
82
+ button and declares the UI type; enum options preserve string/number values.
83
+ Text comparisons are case-insensitive; enum comparisons preserve value types;
84
+ boolean values must be actual booleans; missing/empty numeric values never match.
85
+
86
+ ```ts
87
+ type DataViewColumnFilter =
88
+ | { type: 'text'; operator: 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'notContains'; value: string }
89
+ | { type: 'number'; operator: 'equals' | 'notEquals' | 'greaterThan' | 'lessThan' | 'between'; value?: number; to?: number }
90
+ | { type: 'date'; from?: string; to?: string }
91
+ | { type: 'enum'; values: (string | number)[] }
92
+ | { type: 'boolean'; value: boolean };
93
+ type DataViewFilterModel = Record<string, DataViewColumnFilter>;
94
+ ```
95
+
96
+ Number `between` and date ranges are inclusive; either bound may be omitted.
97
+ Dates use `YYYY-MM-DD`, interpreted as calendar days. ISO timestamp values use
98
+ their date portion; `Date` values use their local calendar day. The date filter
99
+ uses NgStarter DateRangeInput/DateRangePicker, not native date inputs.
100
+ `DateRangeInput` now exposes `[(range)]="dateRange"` with `DateRange<D> | null`
101
+ for both typed values and picker updates.
102
+
103
+ ```ts
104
+ grid.api.setColumnFilter('amount', { type: 'number', operator: 'between', value: 100, to: 500 });
105
+ grid.api.setColumnFilter('created', { type: 'date', from: '2026-10-01', to: '2026-10-14' });
106
+ grid.api.setColumnFilter('status', { type: 'enum', values: ['active'] });
107
+ grid.api.setColumnFilter('enabled', { type: 'boolean', value: false });
108
+ grid.api.setColumnFilter('status', null); // remove one
109
+ grid.api.clearFilters(); // clear column filters AND quick search
110
+ ```
111
+
112
+ Empty text/enum/range conditions are removed. Invalid dates, non-finite numbers,
113
+ reversed ranges, unknown fields and configured type mismatches are rejected.
114
+ Changing filters/search resets the page and vertical scroll. Client page indexes
115
+ are also clamped when records shrink. Active chips can remove a single condition
116
+ or clear the query, even when no records match.
117
+
118
+ Public pure helpers `matchesDataViewFilter`, `normalizeDataViewFilter`,
119
+ `normalizeDataViewFilters`, `dataViewDateKey`, and `dataViewFilterLabel` share the
120
+ contract with adapters. Production servers must implement the same semantics.
121
+
122
+ ## Server requests, cancellation and errors
123
+
124
+ ```ts
125
+ interface DataViewGetRowsParams {
126
+ startRow: number; // inclusive
127
+ endRow: number; // exclusive
128
+ page: number; // zero-based
129
+ pageSize: number;
130
+ sortModel: { colId: string; sort: 'asc' | 'desc' | '' }[];
131
+ filterModel: string; // quick search, retained for existing adapters
132
+ columnFilters: DataViewFilterModel;
133
+ signal: AbortSignal;
134
+ successCallback(rows: any[], lastRow?: number): void;
135
+ failCallback(error?: unknown): void;
136
+ }
137
+ interface DataViewDatasource {
138
+ getItems(params: DataViewGetRowsParams): void | (() => void) | { unsubscribe(): void };
139
+ }
140
+ ```
141
+
142
+ `lastRow` is the **total number of matching records**, not the last index. Supply
143
+ it for accurate server pagination. Newer queries/datasources and destruction abort
144
+ `signal`, call pending cleanup/unsubscribe, and reject stale callbacks. Quick
145
+ search is debounced by 300ms; column conditions and pagination are immediate.
146
+ Synchronous adapter exceptions use the same failure path.
147
+
148
+ ```ts
149
+ const datasource: DataViewDatasource = {
150
+ getItems(params) {
151
+ fetch('/api/orders/query', {
152
+ method: 'POST', signal: params.signal,
153
+ headers: { 'Content-Type': 'application/json' },
154
+ body: JSON.stringify({ page: params.page, pageSize: params.pageSize,
155
+ search: params.filterModel, filters: params.columnFilters, sort: params.sortModel })
156
+ }).then(response => {
157
+ if (!response.ok) throw new Error('Could not load orders');
158
+ return response.json();
159
+ }).then(result => params.successCallback(result.rows, result.total))
160
+ .catch(error => { if (!params.signal.aborted) params.failCallback(error); });
161
+ }
162
+ };
163
+ ```
164
+
165
+ `error()` holds the visible message; `loadError` emits the original error.
166
+ `loadStatus()` is `idle | loading | refreshing | ready | error`.
167
+ `refreshing()` is true during background requests after an initial response.
168
+ Previously loaded rows remain visible with an updating status; the initial load
169
+ uses a blocking loader. The error alert includes Retry, which calls `refresh()`.
170
+ `loadEnd` / `refreshEnd` signal completion of successful **or failed** cycles;
171
+ check `error()` when completion alone is insufficient. `api.search(value)` updates
172
+ the same model as `[search]` and triggers a server request in server mode.
173
+
174
+ ## State and named views
175
+
176
+ ```ts
177
+ interface DataViewViewState {
178
+ version: 1;
179
+ columns: DataViewState[]; // array order is column order
180
+ sort: { active: string; direction: 'asc' | 'desc' | '' };
181
+ search: string;
182
+ columnFilters: DataViewFilterModel;
183
+ pageSize: number;
184
+ }
185
+ interface DataViewState {
186
+ field: string; visible?: boolean; width?: string | number;
187
+ pinned?: boolean; pinAlign?: 'start' | 'end';
188
+ }
189
+ interface DataViewSavedView { id: string; name: string; state: DataViewViewState; }
190
+ ```
191
+
192
+ `stateChanged` emits a serializable state when columns/query/page size change.
193
+ `sortState` is a two-way `{ active, direction }` model. `sortChange` remains the
194
+ user sorting event. `columnFilters`, `search`, and `savedViews` expose their normal
195
+ model change outputs. `getSnapshot()` / `applyState()` remain column-only APIs and
196
+ now restore order and visibility as well as width/pinning.
197
+
198
+ ```ts
199
+ const state = grid.api.getState();
200
+ grid.api.setState(state);
201
+ const view = grid.api.saveView('Review queue');
202
+ grid.api.applyView(view.id);
203
+ grid.api.saveView('Review queue', view.id); // update current state
204
+ // or rename without replacing its state:
205
+ grid.api.renameView(view.id, 'Priority queue');
206
+ grid.api.deleteView(view.id);
207
+ grid.api.applyView(null); // reset to initial instance state
208
+ ```
209
+
210
+ Names must contain 1–100 characters and be unique ignoring case.
211
+ `withSavedViews` enables the selector and save/update/rename/delete/reset menu.
212
+ An unsaved-change indicator compares the current query with the chosen view.
213
+ `activeViewId()` exposes the selection; `viewApplied` emits the applied view or
214
+ null for the default. Applying a view starts at page zero. Deleting the active
215
+ view resets to default. State restoration validates the version/types, removes
216
+ stale fields, appends new columns, clears sorting for removed fields, and rejects
217
+ views that hide every column. Pure helpers `normalizeDataViewState` and
218
+ `normalizeDataViewSavedViews` are also public.
219
+
220
+ Persistence is opt-in through a unique `viewStorageKey`. The default storage is
221
+ localStorage; use a key scoped to the user and dataset. No key means no storage
222
+ access. For another synchronous storage adapter:
223
+
224
+ ```ts
225
+ provideDataView({
226
+ viewStorage: {
227
+ getItem: key => myStorage.read(key),
228
+ setItem: (key, value) => myStorage.write(key, value)
229
+ }
230
+ });
231
+ ```
232
+
233
+ Storage failures and malformed payloads are exposed through `viewStorageError()`
234
+ and a visible alert when saved views UI is enabled. Named views and the active ID
235
+ are persisted; unsaved edits and row selection are not. Consumers can instead
236
+ bind `[(savedViews)]` and persist its change event themselves.
237
+
238
+ ## Keyboard and accessibility
239
+
240
+ The root uses a labelled `grid`, logical row/column counts, row indexes, selected
241
+ states and an active descendant. Pinned cell fragments belong to one logical
242
+ row through `aria-owns`; virtualized rows report their global position. Provide
243
+ `ariaLabel` for the dataset. Icon actions and selection checkboxes have labels.
244
+
245
+ | Key while grid is focused | Action |
246
+ | --- | --- |
247
+ | Arrows | Move active cell; scroll virtual rows/center columns into view |
248
+ | Home / End | First/last cell in current row |
249
+ | Ctrl/Command + Home / End | First/last row and cell in the loaded/client page |
250
+ | Page Up / Page Down | Move by one viewport |
251
+ | Space | Toggle current row selection |
252
+ | Shift + Space or Shift + Up/Down | Extend selection from the selection anchor |
253
+ | Ctrl/Command + A | Select configured scope |
254
+ | Escape | Clear selection |
255
+ | Enter | Emit `rowActivated` for the active record |
256
+
257
+ Inputs, buttons, custom interactive renderers and overlays retain their own
258
+ keyboard behavior. Tab reaches sorting headers and resize separators. Enter /
259
+ Space sorts a header. Resize handles support Left/Right (10px), Shift + Left/Right
260
+ (1px), Home (minimum), End (maximum, default 2000px). User resize constraints are
261
+ respected. Actual screen-reader support should also be evaluated in consumer
262
+ applications with their custom renderers.