@ngstarter-ui/components 22.2.4 → 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 (82) hide show
  1. package/ai/component-registry.json +75 -8
  2. package/content-editor/BLOCK_FORMAT.md +38 -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-rzZKJ2JH.mjs → ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs} +2 -2
  7. package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs.map → ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs.map} +1 -1
  8. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs} +3 -3
  9. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.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-DpONkTMU.mjs → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs} +4 -4
  11. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.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-CmhzpaRk.mjs → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs} +2 -2
  13. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs.map → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs.map} +1 -1
  14. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs} +4 -4
  15. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs.map → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs.map} +1 -1
  16. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs} +5 -5
  17. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.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-BKe9Zy_x.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-DSpBVTu-.mjs → ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs} +4 -4
  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-BPKPE1uY.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-BPKPE1uY.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-Dh-p3WMp.mjs → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs} +4 -4
  25. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs.map → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs.map} +1 -1
  26. 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-dGibIV4n.mjs} +93 -41
  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-D5wS3m6O.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs} +4 -4
  29. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.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-C3GFAGKF.mjs → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs} +4 -4
  31. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.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-DQgs_kyN.mjs → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs} +4 -4
  33. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.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-Cb67ChE8.mjs → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs} +3 -3
  35. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs.map → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs.map} +1 -1
  36. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs → ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs} +2 -2
  37. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs.map → ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs.map} +1 -1
  38. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  39. package/fesm2022/ngstarter-ui-components-core.mjs +46 -1
  40. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-data-view.mjs +1011 -90
  42. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-datepicker.mjs +45 -19
  44. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +1 -1
  46. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-form-builder.mjs +1 -1
  48. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +1 -1
  50. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-image-designer.mjs +1 -1
  52. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +1 -1
  54. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-menu.mjs +17 -4
  56. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1 -1
  58. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1 -1
  60. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-phone-input.mjs +1 -1
  62. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1 -1
  64. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-sort.mjs +9 -2
  66. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-table.mjs +10 -0
  68. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  69. package/package.json +1 -1
  70. package/styles/_common.scss +2 -1
  71. package/styles/_tokens.scss +32 -1
  72. package/styles/themes/default.scss +1 -1
  73. package/types/ngstarter-ui-components-content-editor.d.ts +6 -1
  74. package/types/ngstarter-ui-components-core.d.ts +4 -1
  75. package/types/ngstarter-ui-components-data-view.d.ts +204 -11
  76. package/types/ngstarter-ui-components-datepicker.d.ts +3 -1
  77. package/types/ngstarter-ui-components-menu.d.ts +5 -1
  78. package/types/ngstarter-ui-components-sort.d.ts +1 -0
  79. package/types/ngstarter-ui-components-table.d.ts +2 -0
  80. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs.map +0 -1
  81. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs.map +0 -1
  82. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-table.mjs","sources":["../../../projects/components/table/src/table/table.ts","../../../projects/components/table/src/table/table.html","../../../projects/components/table/src/cell/cell.ts","../../../projects/components/table/src/cell-def.ts","../../../projects/components/table/src/column-def.ts","../../../projects/components/table/src/footer-cell/footer-cell.ts","../../../projects/components/table/src/footer-cell-def.ts","../../../projects/components/table/src/footer-row/footer-row.ts","../../../projects/components/table/src/footer-row/footer-row.html","../../../projects/components/table/src/footer-row-def.ts","../../../projects/components/table/src/header-cell/header-cell.ts","../../../projects/components/table/src/header-cell-def.ts","../../../projects/components/table/src/header-row/header-row.ts","../../../projects/components/table/src/header-row/header-row.html","../../../projects/components/table/src/header-row-def.ts","../../../projects/components/table/src/no-data-row.ts","../../../projects/components/table/src/row/row.ts","../../../projects/components/table/src/row/row.html","../../../projects/components/table/src/row-def.ts","../../../projects/components/table/src/text-column/text-column.ts","../../../projects/components/table/src/text-column/text-column.html","../../../projects/components/table/src/table-data-source.ts","../../../projects/components/table/src/native-table/native-table.ts","../../../projects/components/table/src/native-table/native-table.html","../../../projects/components/table/ngstarter-ui-components-table.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n ContentChildren,\n QueryList,\n signal,\n DestroyRef,\n inject\n} from '@angular/core';\nimport {\n CdkColumnDef,\n CdkHeaderRowDef,\n CdkTable,\n CDK_TABLE,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n NoDataRowOutlet,\n STICKY_POSITIONING_LISTENER,\n CdkTableModule,\n} from '@angular/cdk/table';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-table, table[ngs-table]',\n exportAs: 'ngsTable',\n imports: [\n CdkTableModule,\n HeaderRowOutlet,\n FooterRowOutlet,\n DataRowOutlet,\n NoDataRowOutlet,\n ],\n templateUrl: './table.html',\n styleUrl: './table.scss',\n providers: [\n { provide: CdkTable, useExisting: forwardRef(() => Table) },\n { provide: CDK_TABLE, useExisting: forwardRef(() => Table) },\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-table not-prose',\n '[class.ngs-table-fixed-layout]': 'fixedLayout',\n '[class.ngs-table-sticky]': 'hasStickyColumns()',\n 'role': 'grid'\n },\n})\nexport class Table<T> extends CdkTable<T> {\n hideHeader = input(false, { transform: booleanAttribute });\n hideBody = input(false, { transform: booleanAttribute });\n hideFooter = input(false, { transform: booleanAttribute });\n\n private readonly destroyRef = inject(DestroyRef);\n\n /**\n * Whether the table has any sticky header rows.\n * This is used to apply the 'ngs-table-sticky-header' class.\n */\n private readonly _hasStickyHeader = signal<boolean>(false);\n\n readonly hasStickyHeader = computed(() => this._hasStickyHeader());\n\n // We define our own queries to track changes, avoiding conflict with CdkTable's internal properties.\n // Angular will populate these just fine alongside the parent's queries.\n @ContentChildren(CdkHeaderRowDef, { descendants: true })\n headerRowDefsQuery!: QueryList<CdkHeaderRowDef>;\n\n @ContentChildren(CdkColumnDef, { descendants: true })\n columnDefsQuery!: QueryList<CdkColumnDef>;\n\n /**\n * Whether the table has any sticky columns.\n */\n private readonly _hasStickyColumns = signal<boolean>(false);\n\n readonly hasStickyColumns = computed(() => this._hasStickyColumns());\n\n private _updateStickyStates(): void {\n if (this.headerRowDefsQuery) {\n const headerRowDefs = this.headerRowDefsQuery.toArray();\n const hasStickyHeaderRows = headerRowDefs.some((def: any) => def.sticky);\n this._hasStickyHeader.set(hasStickyHeaderRows);\n }\n if (this.columnDefsQuery) {\n const colDefs = this.columnDefsQuery.toArray();\n const hasStickyColumns = colDefs.some((def: any) => def.sticky || def.stickyEnd);\n\n this._hasStickyColumns.set(hasStickyColumns);\n\n // Directly set the property on the base class.\n // This triggers the base class setter logic which handles style updates.\n this.fixedLayout = hasStickyColumns;\n }\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n }\n\n override ngAfterContentInit(): void {\n super.ngAfterContentInit();\n\n this.headerRowDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this.columnDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this._updateStickyStates();\n }\n\n protected override stickyCssClass = 'ngs-table-sticky';\n}\n","<thead [class.ngs-table-sticky-header]=\"hasStickyHeader()\" [class.hidden]=\"hideHeader()\">\n <ng-container headerRowOutlet />\n</thead>\n<tbody [class.hidden]=\"hideBody()\">\n <ng-container rowOutlet />\n <ng-container noDataRowOutlet />\n</tbody>\n<tfoot [class.hidden]=\"hideFooter()\">\n <ng-container footerRowOutlet />\n</tfoot>\n","import { Directive } from '@angular/core';\nimport { CdkCell } from '@angular/cdk/table';\n\n/** Cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-cell, [ngs-cell], td[ngs-cell]',\n host: {\n 'class': 'ngs-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class Cell extends CdkCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkCellDef } from '@angular/cdk/table';\n\n/** Cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsCellDef]',\n standalone: true,\n providers: [{provide: CdkCellDef, useExisting: forwardRef(() => CellDef)}],\n})\nexport class CellDef extends CdkCellDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkColumnDef } from '@angular/cdk/table';\n\n/**\n * Column definition for the ngs-table.\n * Defines a set of cells available for a table column.\n */\n@Directive({\n selector: '[ngsColumnDef]',\n standalone: true,\n providers: [{provide: CdkColumnDef, useExisting: forwardRef(() => ColumnDef)}],\n inputs: ['name: ngsColumnDef'],\n})\nexport class ColumnDef extends CdkColumnDef {}\n","import { Directive } from '@angular/core';\nimport { CdkFooterCell } from '@angular/cdk/table';\n\n/** Footer cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]',\n host: {\n 'class': 'ngs-footer-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class FooterCell extends CdkFooterCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterCellDef } from '@angular/cdk/table';\n\n/** Footer cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterCellDef]',\n standalone: true,\n providers: [{provide: CdkFooterCellDef, useExisting: forwardRef(() => FooterCellDef)}],\n})\nexport class FooterCellDef extends CdkFooterCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkFooterRow\n} from '@angular/cdk/table';\n\n/** Footer template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]',\n templateUrl: './footer-row.html',\n styleUrl: './footer-row.scss',\n host: {\n 'class': 'ngs-footer-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkFooterRow, useExisting: forwardRef(() => FooterRow)}],\n})\nexport class FooterRow extends CdkFooterRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterRowDef } from '@angular/cdk/table';\n\n/** Footer row definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterRowDef]',\n standalone: true,\n providers: [{provide: CdkFooterRowDef, useExisting: forwardRef(() => FooterRowDef)}],\n inputs: ['columns: ngsFooterRowDef', 'sticky: ngsFooterRowDefSticky'],\n})\nexport class FooterRowDef extends CdkFooterRowDef {}\n","import { Directive } from '@angular/core';\nimport { CdkHeaderCell } from '@angular/cdk/table';\n\n/** Header cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]',\n host: {\n 'class': 'ngs-header-cell',\n 'role': 'columnheader',\n },\n standalone: true,\n})\nexport class HeaderCell extends CdkHeaderCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderCellDef } from '@angular/cdk/table';\n\n/** Header cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderCellDef]',\n standalone: true,\n providers: [{provide: CdkHeaderCellDef, useExisting: forwardRef(() => HeaderCellDef)}],\n})\nexport class HeaderCellDef extends CdkHeaderCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkHeaderRow\n} from '@angular/cdk/table';\n\n/** Header template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-header-row, [ngs-header-row], tr[ngs-header-row]',\n templateUrl: './header-row.html',\n styleUrl: './header-row.scss',\n host: {\n 'class': 'ngs-header-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkHeaderRow, useExisting: forwardRef(() => HeaderRow)}],\n})\nexport class HeaderRow extends CdkHeaderRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderRowDef } from '@angular/cdk/table';\n\n/** Header row definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderRowDef]',\n standalone: true,\n providers: [{provide: CdkHeaderRowDef, useExisting: forwardRef(() => HeaderRowDef)}],\n inputs: ['columns: ngsHeaderRowDef', 'sticky: ngsHeaderRowDefSticky'],\n})\nexport class HeaderRowDef extends CdkHeaderRowDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkNoDataRow } from '@angular/cdk/table';\n\n/** Row that can be used to display a message when no data is shown in the table. */\n@Directive({\n selector: 'ng-template[ngsNoDataRow]',\n standalone: true,\n providers: [{provide: CdkNoDataRow, useExisting: forwardRef(() => NoDataRow)}],\n})\nexport class NoDataRow extends CdkNoDataRow {\n}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkRow\n} from '@angular/cdk/table';\n\n/** Data row template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-row, [ngs-row], tr[ngs-row]',\n templateUrl: './row.html',\n styleUrl: './row.scss',\n host: {\n 'class': 'ngs-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkRow, useExisting: forwardRef(() => Row)}],\n})\nexport class Row extends CdkRow {}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkRowDef } from '@angular/cdk/table';\n\n/** Data row definition for the ngs-table. */\n@Directive({\n selector: '[ngsRowDef]',\n standalone: true,\n providers: [{provide: CdkRowDef, useExisting: forwardRef(() => RowDef)}],\n inputs: ['columns: ngsRowDefColumns', 'when: ngsRowDefWhen'],\n})\nexport class RowDef<T> extends CdkRowDef<T> {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { CdkTextColumn } from '@angular/cdk/table';\nimport { ColumnDef } from '../column-def';\nimport { CellDef } from '../cell-def';\nimport { HeaderCellDef } from '../header-cell-def';\nimport { HeaderCell } from '../header-cell/header-cell';\nimport { Cell } from '../cell/cell';\n\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`<table>`).\n *\n * By default, the name of this column will be the same as the data property that it should show.\n * The header can be overridden by setting the `headerText` input.\n *\n * Example usage:\n * <table ngs-table [dataSource]=\"dataSource\">\n * <ngs-text-column name=\"userName\"></ngs-text-column>\n * <tr ngs-header-row *ngsHeaderRowDef=\"['userName']\"></tr>\n * <tr ngs-row *ngsRowDef=\"['userName']\"></tr>\n * </table>\n */\n@Component({\n selector: 'ngs-text-column',\n exportAs: 'ngsTextColumn',\n imports: [\n ColumnDef,\n HeaderCellDef,\n HeaderCell,\n CellDef,\n Cell\n ],\n templateUrl: './text-column.html',\n styleUrl: './text-column.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-text-column',\n }\n})\nexport class TextColumn<T> extends CdkTextColumn<T> {}\n","<ng-container ngsColumnDef>\n <th ngs-header-cell *ngsHeaderCellDef> {{headerText}} </th>\n <td ngs-cell *ngsCellDef=\"let data\"> {{dataAccessor(data, name)}} </td>\n</ng-container>\n","import { DataSource as _DataSource } from '@angular/cdk/collections';\nimport {\n BehaviorSubject,\n combineLatest,\n isObservable,\n merge,\n Observable,\n of,\n Subject,\n Subscription\n} from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\nimport { SortDirective, Sort } from '@ngstarter-ui/components/sort';\nimport { Paginator } from '@ngstarter-ui/components/paginator';\n\nexport class TableDataSource<T> extends _DataSource<T> {\n /** Stream that emits when a new data array is set on the data source. */\n private readonly _data: BehaviorSubject<T[]>;\n\n /** Stream emitting render data to the table (depends on ordered data changes). */\n private readonly _renderData: BehaviorSubject<T[]>;\n\n /** Stream that emits when a new filter string is set on the data source. */\n private readonly _filter = new BehaviorSubject<string>('');\n\n /** Used to react to internal changes of the paginator that the table needs to be notified about. */\n private readonly _internalPageChanges = new Subject<void>();\n\n /**\n * Subscription to the changes that should trigger an update to the table's rendered data, such\n * as filtering, sorting, pagination, or base data changes.\n */\n _renderChangesSubscription = Subscription.EMPTY;\n\n /**\n * Cache for quick filter strings. Maps each data object to its concatenated string representation\n * used for filtering.\n */\n private _quickFilterCache = new WeakMap<T & object, string>();\n\n /**\n * The filtered set of data that has been matched by the filter string, or all the data if there\n * is no filter. Useful for knowing the set of data the table represents.\n * For example, a 'scrolled' paginator can use this to know the total number of items when\n * pagination has been applied.\n */\n filteredData: T[];\n\n /**\n * The sorted set of data that has been ordered by the sort state, or all the filtered data if there\n * is no sort. Useful for knowing the set of data the table represents.\n */\n sortedData: T[];\n\n /** Array of data that should be rendered by the table, where each object represents one row. */\n get data() {\n return this._data.value;\n }\n set data(data: T[]) {\n this._data.next(data);\n if (!this._renderChangesSubscription) {\n this._filterData(data);\n }\n }\n\n /**\n * Filter term that should be used to filter out objects from the data array. To `TableDataSource`'s\n * default implementation, this string checks for stringification matches anywhere in the object.\n */\n get filter(): string {\n return this._filter.value;\n }\n set filter(filter: string) {\n this._filter.next(filter);\n if (!this._renderChangesSubscription) {\n this._filterData(this.data);\n }\n }\n\n /**\n * Instance of the MatSort directive used by the table to control its sorting. Sort changes\n * emitted by the MatSort will trigger an update to the table's rendered data.\n */\n get sort(): SortDirective | null {\n return this._sort;\n }\n set sort(sort: SortDirective | null) {\n this._sort = sort;\n this._updateChangeSubscription();\n }\n private _sort: SortDirective | null = null;\n\n /**\n * Instance of the Paginator component used by the table to control what page of the data is\n * displayed. Page changes emitted by the Paginator will trigger an update to the\n * table's rendered data.\n */\n get paginator(): Paginator | null {\n return this._paginator;\n }\n set paginator(paginator: Paginator | null) {\n this._paginator = paginator;\n this._updateChangeSubscription();\n }\n private _paginator: Paginator | null = null;\n\n /**\n * Data accessor function that is used for accessing data properties for sorting through\n * the default sortData function.\n * This default function assumes that the data objects are flat and can be accessed directly by\n * the column name.\n */\n sortingDataAccessor: (data: T, sortHeaderId: string) => string | number = (\n data: T,\n sortHeaderId: string,\n ): string | number => {\n const value = (data as unknown as Record<string, any>)[sortHeaderId];\n return typeof value === 'number' || typeof value === 'string' ? value : '' + value;\n };\n\n /**\n * Gets a sorted copy of the data array based on the state of the MatSort. Called\n * after changes are made to the filtered data or when sort changes are emitted from MatSort.\n * By default, the function retrieves the active sort and its direction and compares data\n * objects by retrieving data using the sortingDataAccessor. May be overridden for a\n * custom implementation of data ordering.\n * @param data The array of data that should be sorted.\n * @param sort The connected MatSort that holds the current sort state.\n */\n sortData: (data: T[], sort: SortDirective) => T[] = (data: T[], sort: SortDirective): T[] => {\n const active = typeof sort.active === 'function' ? sort.active() : sort.active;\n const direction = typeof sort.direction === 'function' ? sort.direction() : sort.direction;\n if (!active || direction === '') {\n return data;\n }\n\n return data.slice().sort((a, b) => {\n const valueA = this.sortingDataAccessor(a, active);\n const valueB = this.sortingDataAccessor(b, active);\n\n // If both valueA and valueB are numbers, use the numeric comparison.\n // If either valueA or valueB is not a number, use the string comparison.\n const comparatorResult =\n typeof valueA === 'number' && typeof valueB === 'number'\n ? valueA - valueB\n : (valueA + '').localeCompare(valueB + '');\n\n return comparatorResult * (direction === 'asc' ? 1 : -1);\n });\n };\n\n /**\n * Checks if a data object matches the data source's filter string. By default, each data object\n * is converted to a string of its properties and returns true if the filter has at least one\n * occurrence in that string. By default, the filter string has its whitespace trimmed and the match\n * is case-insensitive. May be overridden for a custom implementation of filter matching.\n * @param data Data object used to check against the filter.\n * @param filter Filter string that has been set on the data source.\n * @returns Whether the filter matches the data.\n */\n filterPredicate: (data: T, filter: string) => boolean = (data: T, filter: string): boolean => {\n // Transform the filter by converting it to lowercase and splitting into words.\n const transformedFilter = filter.trim().toLowerCase();\n if (!transformedFilter) {\n return true;\n }\n const filterWords = transformedFilter.split(/\\s+/);\n\n // Get the string representation of the data.\n const dataStr = this._getQuickFilterString(data);\n\n // Check if all filter words are present in the data string (any order).\n return filterWords.every(word => dataStr.indexOf(word) !== -1);\n };\n\n /**\n * Gets a string representation of the data object used for quick filtering.\n * Caches the result to improve performance.\n * @param data\n * @private\n */\n private _getQuickFilterString(data: T): string {\n if (typeof data !== 'object' || data === null) {\n return String(data).toLowerCase();\n }\n\n let cached = this._quickFilterCache.get(data as T & object);\n if (cached !== undefined) {\n return cached;\n }\n\n const dataStr = Object.keys(data as unknown as Record<string, any>)\n .reduce((currentTerm: string, key: string) => {\n const val = (data as unknown as Record<string, any>)[key];\n return currentTerm + (val === null || val === undefined ? '' : val) + ' ';\n }, '')\n .toLowerCase();\n\n this._quickFilterCache.set(data as T & object, dataStr);\n return dataStr;\n }\n\n constructor(initialData: T[] = []) {\n super();\n this._data = new BehaviorSubject<T[]>(initialData);\n this._renderData = new BehaviorSubject<T[]>(initialData);\n this.filteredData = initialData;\n this.sortedData = initialData;\n this._updateChangeSubscription();\n }\n\n /**\n * Subscribe to changes that should trigger an update to the table's rendered data.\n */\n _updateChangeSubscription() {\n const sortChange: Observable<Sort | null | void> = this._sort\n ? (merge(\n this._observeOutput<Sort>(this._sort.sortChange),\n this._sort.initialized || of(undefined),\n of(undefined)\n ) as Observable<Sort | void>)\n : of(null);\n const pageChange: Observable<any> = this._paginator\n ? (merge(\n this._observeOutput<any>(this._paginator.page as any),\n this._internalPageChanges,\n this._paginator.initialized || of(undefined),\n of(undefined)\n ) as Observable<any>)\n : of(null);\n const dataStream = this._data;\n\n // Watch for base data or filter changes to provide a filtered set of data.\n const filteredData = combineLatest([dataStream, this._filter]).pipe(\n map(([data]) => this._filterData(data)),\n );\n\n // Watch for filtered data or sort changes to provide an ordered set of data.\n const orderedData = combineLatest([filteredData, sortChange]).pipe(\n map(([data]) => this._orderData(data)),\n );\n\n // Watch for ordered data or page changes to provide a paged set of data.\n const paginatedData = combineLatest([orderedData, pageChange]).pipe(\n map(([data]) => this._pageData(data)),\n );\n\n // Watched for paged data changes and emit the result to the table to render.\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = paginatedData.subscribe((data) =>\n this._renderData.next(data),\n );\n }\n\n private _observeOutput<R>(output: any): Observable<R> {\n if (isObservable(output)) {\n return output as Observable<R>;\n }\n\n if (typeof output === 'object' && output !== null && ('subscribe' in output || 'emit' in output)) {\n return new Observable<R>((subscriber) => {\n try {\n const obs = outputToObservable(output);\n const sub = obs.subscribe({\n next: (value: any) => subscriber.next(value as R),\n error: (err) => {\n if (err && err.message && err.message.includes('NG0911')) {\n subscriber.complete();\n } else {\n subscriber.error(err);\n }\n },\n complete: () => subscriber.complete(),\n });\n return () => sub.unsubscribe();\n } catch (e: any) {\n if (e && e.message && e.message.includes('NG0911')) {\n subscriber.complete();\n return;\n }\n throw e;\n }\n });\n }\n\n return of() as Observable<R>;\n }\n\n /**\n * Returns a filtered data array where each filter object contains the filter string within\n * the result of the filterPredicate function. If no filter is set, returns the entire data\n * array without changes.\n */\n _filterData(data: T[]) {\n this.filteredData = !this.filter\n ? data\n : data.filter((obj) => this.filterPredicate(obj, this.filter));\n\n if (this.paginator) {\n this._updatePaginator(this.filteredData.length);\n }\n\n return this.filteredData;\n }\n\n /**\n * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the\n * data array entirely.\n */\n _orderData(data: T[]): T[] {\n // If there is no active sort or direction, then the data should not be ordered.\n if (!this.sort) {\n this.sortedData = data;\n return data;\n }\n\n this.sortedData = this.sortData(data.slice(), this.sort);\n return this.sortedData;\n }\n\n /**\n * Returns a paged splice of the provided data array based on the provided Paginator's page\n * index and length. If there is no paginator provided, returns the data array as is.\n */\n _pageData(data: T[]): T[] {\n if (!this.paginator) {\n return data;\n }\n\n const startIndex = this.paginator.pageIndex * this.paginator.pageSize;\n return data.slice(startIndex, startIndex + (this.paginator.pageSize as any));\n }\n\n /**\n * Updates the paginator to reflect the length of the filtered data, and makes sure that the page\n * index does not exceed the amount of pages in the new data set.\n */\n _updatePaginator(filteredDataLength: number) {\n if (!this.paginator) {\n return;\n }\n\n this.paginator.length = filteredDataLength;\n\n // If the page index is now larger than the number of pages, move the page index to the last\n // page.\n if (this.paginator.pageIndex > 0) {\n const lastPageIndex = Math.max(0, Math.ceil(this.paginator.length / this.paginator.pageSize) - 1);\n const newPageIndex = Math.min(this.paginator.pageIndex, lastPageIndex);\n\n if (newPageIndex !== this.paginator.pageIndex) {\n this.paginator.pageIndex = newPageIndex;\n\n // Since the paginator has changed, notify the data source that the rendered data\n // should be updated.\n this._internalPageChanges.next();\n }\n }\n }\n\n /**\n * Used by the CdkTable. Called when it connects to the data source.\n * @docs-private\n */\n connect() {\n if (!this._renderChangesSubscription || this._renderChangesSubscription.closed) {\n this._updateChangeSubscription();\n }\n\n return this._renderData;\n }\n\n /**\n * Used by the CdkTable. Called when it disconnects from the data source.\n * @docs-private\n */\n disconnect() {\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = Subscription.EMPTY;\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'table[ngs-native-table]',\n exportAs: 'ngsNativeTable',\n imports: [],\n templateUrl: './native-table.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './native-table.scss',\n host: {\n 'class': 'ngs-native-table not-prose',\n }\n})\nexport class NativeTable {\n\n}\n","<ng-content/>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["_DataSource"],"mappings":";;;;;;;;;AAqDM,MAAO,KAAS,SAAQ,QAAW,CAAA;IACvC,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAC1D,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACxD,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEzC,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,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EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,yKCbxB,iBACA,EAAA,MAAA,EAAA,CAAA,mgCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDYa,WAAW,EAAA,UAAA,EAAA,CAAA;kBAXvB,SAAS;+BACE,yBAAyB,EAAA,QAAA,EACzB,gBAAgB,EAAA,OAAA,EACjB,EAAE,mBAEM,uBAAuB,CAAC,MAAM,EAAA,IAAA,EAEzC;AACJ,wBAAA,OAAO,EAAE,4BAA4B;AACtC,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,mgCAAA,CAAA,EAAA;;;AEXH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-table.mjs","sources":["../../../projects/components/table/src/table/table.ts","../../../projects/components/table/src/table/table.html","../../../projects/components/table/src/cell/cell.ts","../../../projects/components/table/src/cell-def.ts","../../../projects/components/table/src/column-def.ts","../../../projects/components/table/src/footer-cell/footer-cell.ts","../../../projects/components/table/src/footer-cell-def.ts","../../../projects/components/table/src/footer-row/footer-row.ts","../../../projects/components/table/src/footer-row/footer-row.html","../../../projects/components/table/src/footer-row-def.ts","../../../projects/components/table/src/header-cell/header-cell.ts","../../../projects/components/table/src/header-cell-def.ts","../../../projects/components/table/src/header-row/header-row.ts","../../../projects/components/table/src/header-row/header-row.html","../../../projects/components/table/src/header-row-def.ts","../../../projects/components/table/src/no-data-row.ts","../../../projects/components/table/src/row/row.ts","../../../projects/components/table/src/row/row.html","../../../projects/components/table/src/row-def.ts","../../../projects/components/table/src/text-column/text-column.ts","../../../projects/components/table/src/text-column/text-column.html","../../../projects/components/table/src/table-data-source.ts","../../../projects/components/table/src/native-table/native-table.ts","../../../projects/components/table/src/native-table/native-table.html","../../../projects/components/table/ngstarter-ui-components-table.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n ContentChildren,\n QueryList,\n signal,\n DestroyRef,\n inject\n} from '@angular/core';\nimport {\n CdkColumnDef,\n CdkHeaderRowDef,\n CdkTable,\n CDK_TABLE,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n NoDataRowOutlet,\n STICKY_POSITIONING_LISTENER,\n CdkTableModule,\n} from '@angular/cdk/table';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-table, table[ngs-table]',\n exportAs: 'ngsTable',\n imports: [\n CdkTableModule,\n HeaderRowOutlet,\n FooterRowOutlet,\n DataRowOutlet,\n NoDataRowOutlet,\n ],\n templateUrl: './table.html',\n styleUrl: './table.scss',\n providers: [\n { provide: CdkTable, useExisting: forwardRef(() => Table) },\n { provide: CDK_TABLE, useExisting: forwardRef(() => Table) },\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-table not-prose',\n '[class.ngs-table-fixed-layout]': 'fixedLayout',\n '[class.ngs-table-sticky]': 'hasStickyColumns()',\n 'role': 'grid'\n },\n})\nexport class Table<T> extends CdkTable<T> {\n hideHeader = input(false, { transform: booleanAttribute });\n hideBody = input(false, { transform: booleanAttribute });\n hideFooter = input(false, { transform: booleanAttribute });\n\n private readonly destroyRef = inject(DestroyRef);\n\n /**\n * Whether the table has any sticky header rows.\n * This is used to apply the 'ngs-table-sticky-header' class.\n */\n private readonly _hasStickyHeader = signal<boolean>(false);\n\n readonly hasStickyHeader = computed(() => this._hasStickyHeader());\n\n // We define our own queries to track changes, avoiding conflict with CdkTable's internal properties.\n // Angular will populate these just fine alongside the parent's queries.\n @ContentChildren(CdkHeaderRowDef, { descendants: true })\n headerRowDefsQuery!: QueryList<CdkHeaderRowDef>;\n\n @ContentChildren(CdkColumnDef, { descendants: true })\n columnDefsQuery!: QueryList<CdkColumnDef>;\n\n /**\n * Whether the table has any sticky columns.\n */\n private readonly _hasStickyColumns = signal<boolean>(false);\n\n readonly hasStickyColumns = computed(() => this._hasStickyColumns());\n\n private _updateStickyStates(): void {\n if (this.headerRowDefsQuery) {\n const headerRowDefs = this.headerRowDefsQuery.toArray();\n const hasStickyHeaderRows = headerRowDefs.some((def: any) => def.sticky);\n this._hasStickyHeader.set(hasStickyHeaderRows);\n }\n if (this.columnDefsQuery) {\n const colDefs = this.columnDefsQuery.toArray();\n const hasStickyColumns = colDefs.some((def: any) => def.sticky || def.stickyEnd);\n\n this._hasStickyColumns.set(hasStickyColumns);\n\n // Directly set the property on the base class.\n // This triggers the base class setter logic which handles style updates.\n this.fixedLayout = hasStickyColumns;\n }\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n }\n\n override ngAfterContentInit(): void {\n super.ngAfterContentInit();\n\n this.headerRowDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this.columnDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this._updateStickyStates();\n }\n\n protected override stickyCssClass = 'ngs-table-sticky';\n}\n","<thead [class.ngs-table-sticky-header]=\"hasStickyHeader()\" [class.hidden]=\"hideHeader()\">\n <ng-container headerRowOutlet />\n</thead>\n<tbody [class.hidden]=\"hideBody()\">\n <ng-container rowOutlet />\n <ng-container noDataRowOutlet />\n</tbody>\n<tfoot [class.hidden]=\"hideFooter()\">\n <ng-container footerRowOutlet />\n</tfoot>\n","import { Directive } from '@angular/core';\nimport { CdkCell } from '@angular/cdk/table';\n\n/** Cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-cell, [ngs-cell], td[ngs-cell]',\n host: {\n 'class': 'ngs-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class Cell extends CdkCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkCellDef } from '@angular/cdk/table';\n\n/** Cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsCellDef]',\n standalone: true,\n providers: [{provide: CdkCellDef, useExisting: forwardRef(() => CellDef)}],\n})\nexport class CellDef extends CdkCellDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkColumnDef } from '@angular/cdk/table';\n\n/**\n * Column definition for the ngs-table.\n * Defines a set of cells available for a table column.\n */\n@Directive({\n selector: '[ngsColumnDef]',\n standalone: true,\n providers: [{provide: CdkColumnDef, useExisting: forwardRef(() => ColumnDef)}],\n inputs: ['name: ngsColumnDef'],\n})\nexport class ColumnDef extends CdkColumnDef {}\n","import { Directive } from '@angular/core';\nimport { CdkFooterCell } from '@angular/cdk/table';\n\n/** Footer cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]',\n host: {\n 'class': 'ngs-footer-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class FooterCell extends CdkFooterCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterCellDef } from '@angular/cdk/table';\n\n/** Footer cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterCellDef]',\n standalone: true,\n providers: [{provide: CdkFooterCellDef, useExisting: forwardRef(() => FooterCellDef)}],\n})\nexport class FooterCellDef extends CdkFooterCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkFooterRow\n} from '@angular/cdk/table';\n\n/** Footer template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]',\n templateUrl: './footer-row.html',\n styleUrl: './footer-row.scss',\n host: {\n 'class': 'ngs-footer-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkFooterRow, useExisting: forwardRef(() => FooterRow)}],\n})\nexport class FooterRow extends CdkFooterRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterRowDef } from '@angular/cdk/table';\n\n/** Footer row definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterRowDef]',\n standalone: true,\n providers: [{provide: CdkFooterRowDef, useExisting: forwardRef(() => FooterRowDef)}],\n inputs: ['columns: ngsFooterRowDef', 'sticky: ngsFooterRowDefSticky'],\n})\nexport class FooterRowDef extends CdkFooterRowDef {}\n","import { Directive } from '@angular/core';\nimport { CdkHeaderCell } from '@angular/cdk/table';\n\n/** Header cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]',\n host: {\n 'class': 'ngs-header-cell',\n 'role': 'columnheader',\n },\n standalone: true,\n})\nexport class HeaderCell extends CdkHeaderCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderCellDef } from '@angular/cdk/table';\n\n/** Header cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderCellDef]',\n standalone: true,\n providers: [{provide: CdkHeaderCellDef, useExisting: forwardRef(() => HeaderCellDef)}],\n})\nexport class HeaderCellDef extends CdkHeaderCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkHeaderRow\n} from '@angular/cdk/table';\n\n/** Header template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-header-row, [ngs-header-row], tr[ngs-header-row]',\n templateUrl: './header-row.html',\n styleUrl: './header-row.scss',\n host: {\n 'class': 'ngs-header-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkHeaderRow, useExisting: forwardRef(() => HeaderRow)}],\n})\nexport class HeaderRow extends CdkHeaderRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderRowDef } from '@angular/cdk/table';\n\n/** Header row definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderRowDef]',\n standalone: true,\n providers: [{provide: CdkHeaderRowDef, useExisting: forwardRef(() => HeaderRowDef)}],\n inputs: ['columns: ngsHeaderRowDef', 'sticky: ngsHeaderRowDefSticky'],\n})\nexport class HeaderRowDef extends CdkHeaderRowDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkNoDataRow } from '@angular/cdk/table';\n\n/** Row that can be used to display a message when no data is shown in the table. */\n@Directive({\n selector: 'ng-template[ngsNoDataRow]',\n standalone: true,\n providers: [{provide: CdkNoDataRow, useExisting: forwardRef(() => NoDataRow)}],\n})\nexport class NoDataRow extends CdkNoDataRow {\n}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkRow\n} from '@angular/cdk/table';\n\n/** Data row template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-row, [ngs-row], tr[ngs-row]',\n templateUrl: './row.html',\n styleUrl: './row.scss',\n host: {\n 'class': 'ngs-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkRow, useExisting: forwardRef(() => Row)}],\n})\nexport class Row extends CdkRow {}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkRowDef } from '@angular/cdk/table';\n\n/** Data row definition for the ngs-table. */\n@Directive({\n selector: '[ngsRowDef]',\n standalone: true,\n providers: [{provide: CdkRowDef, useExisting: forwardRef(() => RowDef)}],\n inputs: ['columns: ngsRowDefColumns', 'when: ngsRowDefWhen'],\n})\nexport class RowDef<T> extends CdkRowDef<T> {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { CdkTextColumn } from '@angular/cdk/table';\nimport { ColumnDef } from '../column-def';\nimport { CellDef } from '../cell-def';\nimport { HeaderCellDef } from '../header-cell-def';\nimport { HeaderCell } from '../header-cell/header-cell';\nimport { Cell } from '../cell/cell';\n\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`<table>`).\n *\n * By default, the name of this column will be the same as the data property that it should show.\n * The header can be overridden by setting the `headerText` input.\n *\n * Example usage:\n * <table ngs-table [dataSource]=\"dataSource\">\n * <ngs-text-column name=\"userName\"></ngs-text-column>\n * <tr ngs-header-row *ngsHeaderRowDef=\"['userName']\"></tr>\n * <tr ngs-row *ngsRowDef=\"['userName']\"></tr>\n * </table>\n */\n@Component({\n selector: 'ngs-text-column',\n exportAs: 'ngsTextColumn',\n imports: [\n ColumnDef,\n HeaderCellDef,\n HeaderCell,\n CellDef,\n Cell\n ],\n templateUrl: './text-column.html',\n styleUrl: './text-column.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-text-column',\n }\n})\nexport class TextColumn<T> extends CdkTextColumn<T> {}\n","<ng-container ngsColumnDef>\n <th ngs-header-cell *ngsHeaderCellDef> {{headerText}} </th>\n <td ngs-cell *ngsCellDef=\"let data\"> {{dataAccessor(data, name)}} </td>\n</ng-container>\n","import { DataSource as _DataSource } from '@angular/cdk/collections';\nimport {\n BehaviorSubject,\n combineLatest,\n isObservable,\n merge,\n Observable,\n of,\n Subject,\n Subscription\n} from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\nimport { SortDirective, Sort } from '@ngstarter-ui/components/sort';\nimport { Paginator } from '@ngstarter-ui/components/paginator';\n\nexport class TableDataSource<T> extends _DataSource<T> {\n /** Stream that emits when a new data array is set on the data source. */\n private readonly _data: BehaviorSubject<T[]>;\n\n /** Stream emitting render data to the table (depends on ordered data changes). */\n private readonly _renderData: BehaviorSubject<T[]>;\n\n /** Stream that emits when a new filter string is set on the data source. */\n private readonly _filter = new BehaviorSubject<string>('');\n\n /** Used to react to internal changes of the paginator that the table needs to be notified about. */\n private readonly _internalPageChanges = new Subject<void>();\n\n /**\n * Subscription to the changes that should trigger an update to the table's rendered data, such\n * as filtering, sorting, pagination, or base data changes.\n */\n _renderChangesSubscription = Subscription.EMPTY;\n\n /**\n * Cache for quick filter strings. Maps each data object to its concatenated string representation\n * used for filtering.\n */\n private _quickFilterCache = new WeakMap<T & object, string>();\n\n /**\n * The filtered set of data that has been matched by the filter string, or all the data if there\n * is no filter. Useful for knowing the set of data the table represents.\n * For example, a 'scrolled' paginator can use this to know the total number of items when\n * pagination has been applied.\n */\n filteredData: T[];\n\n /**\n * The sorted set of data that has been ordered by the sort state, or all the filtered data if there\n * is no sort. Useful for knowing the set of data the table represents.\n */\n sortedData: T[];\n\n /** Array of data that should be rendered by the table, where each object represents one row. */\n get data() {\n return this._data.value;\n }\n set data(data: T[]) {\n this.invalidateFilterCache();\n this._data.next(data);\n if (!this._renderChangesSubscription) {\n this._filterData(data);\n }\n }\n\n /**\n * Filter term that should be used to filter out objects from the data array. To `TableDataSource`'s\n * default implementation, this string checks for stringification matches anywhere in the object.\n */\n get filter(): string {\n return this._filter.value;\n }\n set filter(filter: string) {\n this._filter.next(filter);\n if (!this._renderChangesSubscription) {\n this._filterData(this.data);\n }\n }\n\n /**\n * Instance of the MatSort directive used by the table to control its sorting. Sort changes\n * emitted by the MatSort will trigger an update to the table's rendered data.\n */\n get sort(): SortDirective | null {\n return this._sort;\n }\n set sort(sort: SortDirective | null) {\n this._sort = sort;\n this._updateChangeSubscription();\n }\n private _sort: SortDirective | null = null;\n\n /**\n * Instance of the Paginator component used by the table to control what page of the data is\n * displayed. Page changes emitted by the Paginator will trigger an update to the\n * table's rendered data.\n */\n get paginator(): Paginator | null {\n return this._paginator;\n }\n set paginator(paginator: Paginator | null) {\n this._paginator = paginator;\n this._updateChangeSubscription();\n }\n private _paginator: Paginator | null = null;\n\n /**\n * Data accessor function that is used for accessing data properties for sorting through\n * the default sortData function.\n * This default function assumes that the data objects are flat and can be accessed directly by\n * the column name.\n */\n sortingDataAccessor: (data: T, sortHeaderId: string) => string | number = (\n data: T,\n sortHeaderId: string,\n ): string | number => {\n const value = (data as unknown as Record<string, any>)[sortHeaderId];\n return typeof value === 'number' || typeof value === 'string' ? value : '' + value;\n };\n\n /**\n * Gets a sorted copy of the data array based on the state of the MatSort. Called\n * after changes are made to the filtered data or when sort changes are emitted from MatSort.\n * By default, the function retrieves the active sort and its direction and compares data\n * objects by retrieving data using the sortingDataAccessor. May be overridden for a\n * custom implementation of data ordering.\n * @param data The array of data that should be sorted.\n * @param sort The connected MatSort that holds the current sort state.\n */\n sortData: (data: T[], sort: SortDirective) => T[] = (data: T[], sort: SortDirective): T[] => {\n const active = typeof sort.active === 'function' ? sort.active() : sort.active;\n const direction = typeof sort.direction === 'function' ? sort.direction() : sort.direction;\n if (!active || direction === '') {\n return data;\n }\n\n return data.slice().sort((a, b) => {\n const valueA = this.sortingDataAccessor(a, active);\n const valueB = this.sortingDataAccessor(b, active);\n\n // If both valueA and valueB are numbers, use the numeric comparison.\n // If either valueA or valueB is not a number, use the string comparison.\n const comparatorResult =\n typeof valueA === 'number' && typeof valueB === 'number'\n ? valueA - valueB\n : (valueA + '').localeCompare(valueB + '');\n\n return comparatorResult * (direction === 'asc' ? 1 : -1);\n });\n };\n\n /**\n * Checks if a data object matches the data source's filter string. By default, each data object\n * is converted to a string of its properties and returns true if the filter has at least one\n * occurrence in that string. By default, the filter string has its whitespace trimmed and the match\n * is case-insensitive. May be overridden for a custom implementation of filter matching.\n * @param data Data object used to check against the filter.\n * @param filter Filter string that has been set on the data source.\n * @returns Whether the filter matches the data.\n */\n filterPredicate: (data: T, filter: string) => boolean = (data: T, filter: string): boolean => {\n // Transform the filter by converting it to lowercase and splitting into words.\n const transformedFilter = filter.trim().toLowerCase();\n if (!transformedFilter) {\n return true;\n }\n const filterWords = transformedFilter.split(/\\s+/);\n\n // Get the string representation of the data.\n const dataStr = this._getQuickFilterString(data);\n\n // Check if all filter words are present in the data string (any order).\n return filterWords.every(word => dataStr.indexOf(word) !== -1);\n };\n\n /**\n * Gets a string representation of the data object used for quick filtering.\n * Caches the result to improve performance.\n * @param data\n * @private\n */\n /** Call after mutating a row in place; assigning data also invalidates the cache. */\n invalidateFilterCache(row?: T): void {\n if (row !== undefined && typeof row === 'object' && row !== null) {\n this._quickFilterCache.delete(row as T & object);\n } else {\n this._quickFilterCache = new WeakMap<T & object, string>();\n }\n }\n\n private _getQuickFilterString(data: T): string {\n if (typeof data !== 'object' || data === null) {\n return String(data).toLowerCase();\n }\n\n let cached = this._quickFilterCache.get(data as T & object);\n if (cached !== undefined) {\n return cached;\n }\n\n const dataStr = Object.keys(data as unknown as Record<string, any>)\n .reduce((currentTerm: string, key: string) => {\n const val = (data as unknown as Record<string, any>)[key];\n return currentTerm + (val === null || val === undefined ? '' : val) + ' ';\n }, '')\n .toLowerCase();\n\n this._quickFilterCache.set(data as T & object, dataStr);\n return dataStr;\n }\n\n constructor(initialData: T[] = []) {\n super();\n this._data = new BehaviorSubject<T[]>(initialData);\n this._renderData = new BehaviorSubject<T[]>(initialData);\n this.filteredData = initialData;\n this.sortedData = initialData;\n this._updateChangeSubscription();\n }\n\n /**\n * Subscribe to changes that should trigger an update to the table's rendered data.\n */\n _updateChangeSubscription() {\n const sortChange: Observable<Sort | null | void> = this._sort\n ? (merge(\n this._observeOutput<Sort>(this._sort.sortChange),\n this._sort.initialized || of(undefined),\n of(undefined)\n ) as Observable<Sort | void>)\n : of(null);\n const pageChange: Observable<any> = this._paginator\n ? (merge(\n this._observeOutput<any>(this._paginator.page as any),\n this._internalPageChanges,\n this._paginator.initialized || of(undefined),\n of(undefined)\n ) as Observable<any>)\n : of(null);\n const dataStream = this._data;\n\n // Watch for base data or filter changes to provide a filtered set of data.\n const filteredData = combineLatest([dataStream, this._filter]).pipe(\n map(([data]) => this._filterData(data)),\n );\n\n // Watch for filtered data or sort changes to provide an ordered set of data.\n const orderedData = combineLatest([filteredData, sortChange]).pipe(\n map(([data]) => this._orderData(data)),\n );\n\n // Watch for ordered data or page changes to provide a paged set of data.\n const paginatedData = combineLatest([orderedData, pageChange]).pipe(\n map(([data]) => this._pageData(data)),\n );\n\n // Watched for paged data changes and emit the result to the table to render.\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = paginatedData.subscribe((data) =>\n this._renderData.next(data),\n );\n }\n\n private _observeOutput<R>(output: any): Observable<R> {\n if (isObservable(output)) {\n return output as Observable<R>;\n }\n\n if (typeof output === 'object' && output !== null && ('subscribe' in output || 'emit' in output)) {\n return new Observable<R>((subscriber) => {\n try {\n const obs = outputToObservable(output);\n const sub = obs.subscribe({\n next: (value: any) => subscriber.next(value as R),\n error: (err) => {\n if (err && err.message && err.message.includes('NG0911')) {\n subscriber.complete();\n } else {\n subscriber.error(err);\n }\n },\n complete: () => subscriber.complete(),\n });\n return () => sub.unsubscribe();\n } catch (e: any) {\n if (e && e.message && e.message.includes('NG0911')) {\n subscriber.complete();\n return;\n }\n throw e;\n }\n });\n }\n\n return of() as Observable<R>;\n }\n\n /**\n * Returns a filtered data array where each filter object contains the filter string within\n * the result of the filterPredicate function. If no filter is set, returns the entire data\n * array without changes.\n */\n _filterData(data: T[]) {\n this.filteredData = !this.filter\n ? data\n : data.filter((obj) => this.filterPredicate(obj, this.filter));\n\n if (this.paginator) {\n this._updatePaginator(this.filteredData.length);\n }\n\n return this.filteredData;\n }\n\n /**\n * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the\n * data array entirely.\n */\n _orderData(data: T[]): T[] {\n // If there is no active sort or direction, then the data should not be ordered.\n if (!this.sort) {\n this.sortedData = data;\n return data;\n }\n\n this.sortedData = this.sortData(data.slice(), this.sort);\n return this.sortedData;\n }\n\n /**\n * Returns a paged splice of the provided data array based on the provided Paginator's page\n * index and length. If there is no paginator provided, returns the data array as is.\n */\n _pageData(data: T[]): T[] {\n if (!this.paginator) {\n return data;\n }\n\n const startIndex = this.paginator.pageIndex * this.paginator.pageSize;\n return data.slice(startIndex, startIndex + (this.paginator.pageSize as any));\n }\n\n /**\n * Updates the paginator to reflect the length of the filtered data, and makes sure that the page\n * index does not exceed the amount of pages in the new data set.\n */\n _updatePaginator(filteredDataLength: number) {\n if (!this.paginator) {\n return;\n }\n\n this.paginator.length = filteredDataLength;\n\n // If the page index is now larger than the number of pages, move the page index to the last\n // page.\n if (this.paginator.pageIndex > 0) {\n const lastPageIndex = Math.max(0, Math.ceil(this.paginator.length / this.paginator.pageSize) - 1);\n const newPageIndex = Math.min(this.paginator.pageIndex, lastPageIndex);\n\n if (newPageIndex !== this.paginator.pageIndex) {\n this.paginator.pageIndex = newPageIndex;\n\n // Since the paginator has changed, notify the data source that the rendered data\n // should be updated.\n this._internalPageChanges.next();\n }\n }\n }\n\n /**\n * Used by the CdkTable. Called when it connects to the data source.\n * @docs-private\n */\n connect() {\n if (!this._renderChangesSubscription || this._renderChangesSubscription.closed) {\n this._updateChangeSubscription();\n }\n\n return this._renderData;\n }\n\n /**\n * Used by the CdkTable. Called when it disconnects from the data source.\n * @docs-private\n */\n disconnect() {\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = Subscription.EMPTY;\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'table[ngs-native-table]',\n exportAs: 'ngsNativeTable',\n imports: [],\n templateUrl: './native-table.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './native-table.scss',\n host: {\n 'class': 'ngs-native-table not-prose',\n }\n})\nexport class NativeTable {\n\n}\n","<ng-content/>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["_DataSource"],"mappings":";;;;;;;;;AAqDM,MAAO,KAAS,SAAQ,QAAW,CAAA;IACvC,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAC1D,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACxD,UAAU,GAAG,KAAK,CAAC,KAAK,k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G;IACH,OAAO,GAAA;QACL,IAAI,CAAC,IAAI,CAAC,0BAA0B,IAAI,IAAI,CAAC,0BAA0B,CAAC,MAAM,EAAE;YAC9E,IAAI,CAAC,yBAAyB,EAAE;QAClC;QAEA,OAAO,IAAI,CAAC,WAAW;IACzB;AAEA;;;AAGG;IACH,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE;AAC7C,QAAA,IAAI,CAAC,0BAA0B,GAAG,YAAY,CAAC,KAAK;IACtD;AACD;;MC1XY,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,yKCbxB,iBACA,EAAA,MAAA,EAAA,CAAA,mgCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDYa,WAAW,EAAA,UAAA,EAAA,CAAA;kBAXvB,SAAS;+BACE,yBAAyB,EAAA,QAAA,EACzB,gBAAgB,EAAA,OAAA,EACjB,EAAE,mBAEM,uBAAuB,CAAC,MAAM,EAAA,IAAA,EAEzC;AACJ,wBAAA,OAAO,EAAE,4BAA4B;AACtC,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,mgCAAA,CAAA,EAAA;;;AEXH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ngstarter-ui/components",
3
3
  "description": "NgStarter - AI-friendly Enterprise Angular UI Components and Admin Panel",
4
- "version": "22.2.4",
4
+ "version": "22.2.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/elementarlabsdev/ngstarter.git"
@@ -7,7 +7,8 @@
7
7
  @plugin '@tailwindcss/typography';
8
8
  @custom-variant dark (&:where(.dark, .dark *));
9
9
 
10
- @theme {
10
+ // Resolve semantic utilities at the consuming element so nested themes inherit correctly.
11
+ @theme inline {
11
12
  /* --- SYSTEM COLORS --- */
12
13
  --color-primary: var(--ngs-color-primary);
13
14
  --color-on-primary: var(--ngs-color-on-primary);
@@ -122,6 +122,37 @@
122
122
  --ngs-color-on-orange-container: #000000;
123
123
  --ngs-color-green-500: #22c55e;
124
124
  --ngs-density-scale: -4;
125
+ // Semantic inverse surfaces follow both theme presets and color schemes.
126
+ --ngs-color-inverse-surface: var(--ngs-color-on-surface);
127
+ --ngs-color-inverse-on-surface: var(--ngs-color-surface);
128
+
129
+ // Content Editor: one visual contract shared by editing, preview and overlays.
130
+ --ngs-content-editor-content-width: 704px;
131
+ --ngs-content-editor-font-size: var(--ngs-font-size-md);
132
+ --ngs-content-editor-line-height: 1.6;
133
+ --ngs-content-editor-block-padding: --spacing(3);
134
+ --ngs-content-editor-block-radius: var(--ngs-control-radius);
135
+ --ngs-content-editor-muted-color: var(--ngs-color-on-surface-variant);
136
+ --ngs-content-editor-placeholder-color: var(--ngs-color-on-surface-variant);
137
+ --ngs-content-editor-hover-bg: var(--ngs-state-hover-bg);
138
+ --ngs-content-editor-selected-bg: var(--ngs-color-primary-container);
139
+ --ngs-content-editor-selected-color: var(--ngs-color-on-primary-container);
140
+ --ngs-content-editor-control-size: var(--ngs-control-height-sm);
141
+ --ngs-content-editor-toolbar-bg: var(--ngs-color-inverse-surface);
142
+ --ngs-content-editor-toolbar-color: var(--ngs-color-inverse-on-surface);
143
+ --ngs-content-editor-toolbar-radius: var(--ngs-control-radius);
144
+ --ngs-content-editor-surface: var(--ngs-color-surface);
145
+ --ngs-content-editor-border: var(--ngs-color-outline-variant);
146
+ --ngs-content-editor-field-border: var(--ngs-color-outline);
147
+ --ngs-content-editor-heading-weight: 650;
148
+ --ngs-content-editor-heading-line-height: 1.2;
149
+ --ngs-content-editor-heading-1-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
150
+ --ngs-content-editor-heading-2-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
151
+ --ngs-content-editor-heading-3-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
152
+ --ngs-content-editor-heading-4-size: 1.25rem;
153
+ --ngs-content-editor-heading-5-size: 1.125rem;
154
+ --ngs-content-editor-heading-6-size: 1rem;
155
+
125
156
  --ngs-control-height-sm: calc(2.25rem + var(--ngs-density-scale) * 1px);
126
157
  --ngs-control-height-md: calc(2.75rem + var(--ngs-density-scale) * 1px);
127
158
  --ngs-control-height-lg: calc(3.25rem + var(--ngs-density-scale) * 1px);
@@ -141,7 +172,7 @@
141
172
  --ngs-button-tonal-bg: var(--ngs-color-primary-container);
142
173
  --ngs-button-tonal-color: var(--ngs-color-on-primary-container);
143
174
  --ngs-button-outlined-border: var(--ngs-color-strong);
144
- --ngs-button-outlined-color: #29364e;
175
+ --ngs-button-outlined-color: var(--ngs-color-on-surface);
145
176
  --ngs-button-text-color: var(--ngs-color-primary);
146
177
 
147
178
  --ngs-field-color: var(--ngs-color-primary);
@@ -135,7 +135,7 @@
135
135
  --ngs-button-tonal-bg: var(--ngs-color-primary-container);
136
136
  --ngs-button-tonal-color: var(--ngs-color-on-primary-container);
137
137
  --ngs-button-outlined-border: var(--ngs-color-strong);
138
- --ngs-button-outlined-color: #29364e;
138
+ --ngs-button-outlined-color: var(--ngs-color-on-surface);
139
139
  --ngs-button-text-color: var(--ngs-color-primary);
140
140
 
141
141
  --ngs-field-bg: var(--ngs-color-surface-container-lowest);
@@ -443,6 +443,7 @@ declare class ContentBuilderComponent implements OnInit, AfterViewInit, OnDestro
443
443
  private readonly dropList;
444
444
  readonly connectedDropLists: _angular_core.WritableSignal<CdkDropList<_ngstarter_ui_components_content_editor.ContentEditorBlockScope>[]>;
445
445
  private elRef;
446
+ readonly themeSource: HTMLElement;
446
447
  private envInjector;
447
448
  private cdr;
448
449
  private confirmManager;
@@ -472,6 +473,9 @@ declare class ContentBuilderComponent implements OnInit, AfterViewInit, OnDestro
472
473
  focusChanged: EventEmitter<void>;
473
474
  };
474
475
  readonly insertionSuggestions: _angular_core.Signal<any[]>;
476
+ readonly menuQuery: _angular_core.WritableSignal<string>;
477
+ readonly filteredInsertionSuggestions: _angular_core.Signal<any[]>;
478
+ onMenuSearchKeydown(event: KeyboardEvent, target: ContentEditorBlockInsertionTarget): void;
475
479
  private readonly componentSources;
476
480
  private buildBlockDefMaps;
477
481
  private resolvedBlockDefs;
@@ -640,7 +644,7 @@ declare class ContentEditorHeadingRenderer implements ContentEditorBlockRenderer
640
644
  props: _angular_core.InputSignal<ContentEditorItemProperty[]>;
641
645
  index: _angular_core.InputSignal<number>;
642
646
  protected readonly runs: _angular_core.Signal<ContentEditorText>;
643
- protected readonly level: _angular_core.Signal<2 | 3 | 1>;
647
+ protected readonly level: _angular_core.Signal<number>;
644
648
  protected readonly alignment: _angular_core.Signal<ContentEditorTextAlignment>;
645
649
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentEditorHeadingRenderer, never>;
646
650
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentEditorHeadingRenderer, "ngs-content-editor-heading-renderer", never, { "block": { "alias": "block"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "props": { "alias": "props"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -773,6 +777,7 @@ declare class TextSelectionPopupDirective implements OnDestroy {
773
777
  targetComponent: Type<ISelectionPopupComponent>;
774
778
  closestContentObserverClass: string | null;
775
779
  tagSelected: EventEmitter<string | null>;
780
+ private themeCleanup;
776
781
  private overlayRef;
777
782
  private hostElement;
778
783
  private currentSelectionRange;
@@ -420,6 +420,9 @@ interface Autofocusable {
420
420
  }
421
421
  declare const AUTOFOCUSABLE: InjectionToken<Autofocusable>;
422
422
 
423
+ /** Mirrors NgStarter tokens into a detached overlay and follows ancestor theme changes. */
424
+ declare function bindNgsOverlayTheme(source: HTMLElement, target: HTMLElement): () => void;
425
+
423
426
  /** Provider for managing the error state of a form control. */
424
427
  declare class ErrorStateMatcher {
425
428
  /**
@@ -467,5 +470,5 @@ declare function zonefreeScheduler(): SchedulerLike;
467
470
 
468
471
  declare function typedFromEvent<E extends Event>(target: EventTarget, event: string, options?: EventListenerOptions | boolean): Observable<E>;
469
472
 
470
- export { AUTOFOCUSABLE, AnalyticsService, AutoFocusDirective, DebounceTimeDirective, ENVIRONMENT, EnvironmentService, ErrorStateMatcher, FilterByPropertyPipe, FocusElementDirective, FormatFileSizePipe, GlobalStore, InactivityTrackerService, InitialsPipe, MutationObserverService, NGS_THEME_COLOR_PRESETS, NGS_THEME_COLOR_PRESET_IDS, NGS_THEME_OPTIONS, NGS_THEME_PRESET_PROPERTY_NAMES, OrderByPipe, PageTitleStrategyService, RIPPLE_GLOBAL_OPTIONS, ResizeObserverService, Ripple, RippleRef, RippleRenderer, RippleState, SafeHtmlPipe, SafeResourceUrlPipe, ScreenLoaderService, SearchByPropertyPipe, SeoService, ShowOnDirtyErrorStateMatcher, SoundEffectDirective, TextareaAutoSize, ThemeManagerService, arrayShallowEquals, defaultRippleAnimationConfig, getActualTarget, getNgsThemePreset, getNgsThemePresetCssText, getNgsThemePresetProperties, injectElement, isElement, provideNgsTheme, px, typedFromEvent, zonefreeScheduler };
473
+ export { AUTOFOCUSABLE, AnalyticsService, AutoFocusDirective, DebounceTimeDirective, ENVIRONMENT, EnvironmentService, ErrorStateMatcher, FilterByPropertyPipe, FocusElementDirective, FormatFileSizePipe, GlobalStore, InactivityTrackerService, InitialsPipe, MutationObserverService, NGS_THEME_COLOR_PRESETS, NGS_THEME_COLOR_PRESET_IDS, NGS_THEME_OPTIONS, NGS_THEME_PRESET_PROPERTY_NAMES, OrderByPipe, PageTitleStrategyService, RIPPLE_GLOBAL_OPTIONS, ResizeObserverService, Ripple, RippleRef, RippleRenderer, RippleState, SafeHtmlPipe, SafeResourceUrlPipe, ScreenLoaderService, SearchByPropertyPipe, SeoService, ShowOnDirtyErrorStateMatcher, SoundEffectDirective, TextareaAutoSize, ThemeManagerService, arrayShallowEquals, bindNgsOverlayTheme, defaultRippleAnimationConfig, getActualTarget, getNgsThemePreset, getNgsThemePresetCssText, getNgsThemePresetProperties, injectElement, isElement, provideNgsTheme, px, typedFromEvent, zonefreeScheduler };
471
474
  export type { Autofocusable, GlobalState, NgsColorScheme, NgsThemeColorPreset, NgsThemeColorPresetDefinition, NgsThemeColorScheme, NgsThemeCssProperties, NgsThemeName, NgsThemeOptions, RippleAnimationConfig, RippleConfig, RippleGlobalOptions };