@eherve/angular-material-datatable 19.3.1 → 19.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{eherve-angular-material-datatable-cell-checkbox-value.component-Dbzg9FxR.mjs → eherve-angular-material-datatable-cell-checkbox-value.component-DDe_Pxw3.mjs} +4 -4
- package/fesm2022/eherve-angular-material-datatable-cell-checkbox-value.component-DDe_Pxw3.mjs.map +1 -0
- package/fesm2022/{eherve-angular-material-datatable-cell-date-value.component-DIHWqVZR.mjs → eherve-angular-material-datatable-cell-date-value.component-DLWLxIE8.mjs} +2 -2
- package/fesm2022/{eherve-angular-material-datatable-cell-date-value.component-DIHWqVZR.mjs.map → eherve-angular-material-datatable-cell-date-value.component-DLWLxIE8.mjs.map} +1 -1
- package/fesm2022/{eherve-angular-material-datatable-cell-duration-value.component-BW7Fa0fl.mjs → eherve-angular-material-datatable-cell-duration-value.component-7XEEW3uX.mjs} +4 -4
- package/fesm2022/{eherve-angular-material-datatable-cell-duration-value.component-BW7Fa0fl.mjs.map → eherve-angular-material-datatable-cell-duration-value.component-7XEEW3uX.mjs.map} +1 -1
- package/fesm2022/{eherve-angular-material-datatable-cell-number-value.component-CfXQdh66.mjs → eherve-angular-material-datatable-cell-number-value.component-CK0RC4b-.mjs} +2 -2
- package/fesm2022/{eherve-angular-material-datatable-cell-number-value.component-CfXQdh66.mjs.map → eherve-angular-material-datatable-cell-number-value.component-CK0RC4b-.mjs.map} +1 -1
- package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-cEFgCV26.mjs +29 -0
- package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-cEFgCV26.mjs.map +1 -0
- package/fesm2022/{eherve-angular-material-datatable-eherve-angular-material-datatable-MKNysR_9.mjs → eherve-angular-material-datatable-eherve-angular-material-datatable-DBFRL62_.mjs} +297 -77
- package/fesm2022/eherve-angular-material-datatable-eherve-angular-material-datatable-DBFRL62_.mjs.map +1 -0
- package/fesm2022/{eherve-angular-material-datatable-get.pipe-C_JNMRuY.mjs → eherve-angular-material-datatable-get.pipe-c_eIjBUL.mjs} +2 -2
- package/fesm2022/{eherve-angular-material-datatable-get.pipe-C_JNMRuY.mjs.map → eherve-angular-material-datatable-get.pipe-c_eIjBUL.mjs.map} +1 -1
- package/fesm2022/eherve-angular-material-datatable.mjs +1 -1
- package/lib/components/progress-spinner/progress-spinner.component.d.ts +22 -0
- package/lib/datasource.d.ts +5 -2
- package/lib/datatable.component.d.ts +2 -0
- package/lib/datatable.intl.d.ts +6 -0
- package/lib/pipes/filter.pipe.d.ts +10 -0
- package/lib/pipes/find.pipe.d.ts +12 -0
- package/lib/pipes/merge.pipe.d.ts +8 -0
- package/lib/pipes/sort-facet-entries.pipe.d.ts +10 -0
- package/lib/pipes/sum.pipe.d.ts +8 -0
- package/lib/tools/duration.tool.d.ts +1 -0
- package/lib/types/action.type.d.ts +13 -0
- package/lib/types/datasource-service.type.d.ts +16 -0
- package/lib/types/datatable-column.type.d.ts +2 -0
- package/lib/types/datatable-facet.type.d.ts +27 -0
- package/lib/types/datatable-options.type.d.ts +4 -0
- package/package.json +2 -1
- package/public-api.d.ts +2 -0
- package/fesm2022/eherve-angular-material-datatable-cell-checkbox-value.component-Dbzg9FxR.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-CXg-CD_k.mjs +0 -29
- package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-CXg-CD_k.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-eherve-angular-material-datatable-MKNysR_9.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-find-cell-content.pipe-On98SQ1u.mjs +0 -18
- package/fesm2022/eherve-angular-material-datatable-find-cell-content.pipe-On98SQ1u.mjs.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import { DatasourceResultFacet } from '../types/datasource-service.type';
|
|
4
|
+
import { FacetOptions } from '../types/datatable-facet.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SortFacetEntriesPipe implements PipeTransform {
|
|
7
|
+
transform(entries: DatasourceResultFacet[], options: FacetOptions): DatasourceResultFacet[];
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortFacetEntriesPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SortFacetEntriesPipe, "sortFacetEntries", true>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SumPipe implements PipeTransform {
|
|
5
|
+
transform(obj: any[] | undefined, by?: string): number;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SumPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SumPipe, "sum", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import { NgxMatDatatableComponent } from '../datatable.component';
|
|
3
|
+
type BaseAction = {
|
|
4
|
+
position: 'start' | 'center' | 'end';
|
|
5
|
+
};
|
|
6
|
+
export type IconAction<Record> = BaseAction & {
|
|
7
|
+
kind: 'icon';
|
|
8
|
+
icon: string;
|
|
9
|
+
onclick: (datagrid: NgxMatDatatableComponent<Record>) => void;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
};
|
|
12
|
+
export type Action<Record> = IconAction<Record>;
|
|
13
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @format */
|
|
1
2
|
export type DatasourceRequestSearch = {
|
|
2
3
|
value: any;
|
|
3
4
|
regex?: boolean;
|
|
@@ -15,6 +16,13 @@ export type DatasourceRequestOrder = {
|
|
|
15
16
|
column: number;
|
|
16
17
|
dir: DatasourceRequestOrderDir;
|
|
17
18
|
};
|
|
19
|
+
export type DatasourceRequestFacetOperator = 'count' | ['sum', string] | ['avg', string];
|
|
20
|
+
export type DatasourceRequestFacet = {
|
|
21
|
+
id: string;
|
|
22
|
+
kind: 'indicator';
|
|
23
|
+
property: string;
|
|
24
|
+
operator: DatasourceRequestFacetOperator;
|
|
25
|
+
};
|
|
18
26
|
export type DatasourceRequestOptions = {
|
|
19
27
|
draw: string;
|
|
20
28
|
columns: DatasourceRequestColumn[];
|
|
@@ -22,11 +30,19 @@ export type DatasourceRequestOptions = {
|
|
|
22
30
|
start?: number;
|
|
23
31
|
length?: number;
|
|
24
32
|
search?: DatasourceRequestSearch;
|
|
33
|
+
facets?: DatasourceRequestFacet[];
|
|
34
|
+
};
|
|
35
|
+
export type DatasourceResultFacet = {
|
|
36
|
+
_id: any;
|
|
37
|
+
value: number;
|
|
25
38
|
};
|
|
26
39
|
export type DatasourceResult<T> = {
|
|
27
40
|
draw: string;
|
|
28
41
|
recordsTotal: number;
|
|
29
42
|
recordsFiltered: number;
|
|
30
43
|
data: T[];
|
|
44
|
+
facets?: {
|
|
45
|
+
[id: string]: DatasourceResultFacet[];
|
|
46
|
+
};
|
|
31
47
|
};
|
|
32
48
|
export type DatasourceService<Record> = (options: DatasourceRequestOptions) => Promise<DatasourceResult<Record>>;
|
|
@@ -69,6 +69,7 @@ export type DatatableSearchListOption = {
|
|
|
69
69
|
};
|
|
70
70
|
export type DatatableSelectColumn<Record> = Column<Record> & {
|
|
71
71
|
type: 'select';
|
|
72
|
+
multiple?: boolean;
|
|
72
73
|
options: Observable<DatatableSearchListOption[]>;
|
|
73
74
|
};
|
|
74
75
|
export type DatatableSearchSelectColumn<Record> = DatatableSelectColumn<Record> & SearchableColumn<Record> & {
|
|
@@ -101,6 +102,7 @@ export type DatatableSearchDateColumn<Record> = DatatableDateColumn<Record> & Se
|
|
|
101
102
|
export type DatatableDurationColumn<Record> = Column<Record> & {
|
|
102
103
|
type: 'duration';
|
|
103
104
|
locale?: string;
|
|
105
|
+
largest?: number;
|
|
104
106
|
};
|
|
105
107
|
export type DatatableSearchDurationColumn<Record> = DatatableDurationColumn<Record> & SearchableColumn<Record> & {
|
|
106
108
|
placeholder?: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
export type FacetOptionsOperator = 'count' | ['sum', string] | ['avg', string];
|
|
3
|
+
type BaseFacetOptions = {
|
|
4
|
+
id: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
position: 'start' | 'center' | 'end';
|
|
7
|
+
};
|
|
8
|
+
export type FacetOptionsOptions = {
|
|
9
|
+
_id: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
};
|
|
13
|
+
export type IndicatorFacetOptions = BaseFacetOptions & {
|
|
14
|
+
kind: 'indicator';
|
|
15
|
+
property: string;
|
|
16
|
+
operator: FacetOptionsOperator;
|
|
17
|
+
options?: FacetOptionsOptions[];
|
|
18
|
+
style?: (_id: string) => {
|
|
19
|
+
color?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
size?: number;
|
|
23
|
+
fontSize?: string;
|
|
24
|
+
contentId?: string;
|
|
25
|
+
};
|
|
26
|
+
export type FacetOptions = IndicatorFacetOptions;
|
|
27
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** @format */
|
|
2
|
+
import { Action } from './action.type';
|
|
2
3
|
import { DatasourceService } from './datasource-service.type';
|
|
3
4
|
import { DatatableColumn, DatatableValueColumn } from './datatable-column.type';
|
|
5
|
+
import { FacetOptions as Statistic } from './datatable-facet.type';
|
|
4
6
|
type Color<Record> = string | ((column: DatatableValueColumn<Record>, row: Record) => string | undefined);
|
|
5
7
|
export type DatatableOptions<Record> = {
|
|
6
8
|
service: DatasourceService<Record>;
|
|
@@ -19,7 +21,9 @@ export type DatatableOptions<Record> = {
|
|
|
19
21
|
refresh?: boolean;
|
|
20
22
|
rowClick?: boolean | ((row: Record) => void);
|
|
21
23
|
export?: string | boolean;
|
|
24
|
+
user?: Action<Record>[];
|
|
22
25
|
};
|
|
26
|
+
facets?: Statistic[];
|
|
23
27
|
rowColor?: Color<Record>;
|
|
24
28
|
rowBackgroundColor?: Color<Record>;
|
|
25
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eherve/angular-material-datatable",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.5.0",
|
|
4
4
|
"author": "Eric Herve <eric.herve.95@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@angular/core": "^19.0.4",
|
|
18
18
|
"@angular/material": "^19.0.4",
|
|
19
19
|
"@angular/material-moment-adapter": "^19.0.4",
|
|
20
|
+
"ngx-countup": "^13.2.0",
|
|
20
21
|
"ngx-intersection-observer": "^1.0.13",
|
|
21
22
|
"rxjs": "~7.8.0",
|
|
22
23
|
"humanize-duration": "^3.32.1",
|
package/public-api.d.ts
CHANGED
|
@@ -9,4 +9,6 @@ export * from './lib/directives/datatable-cell.directive';
|
|
|
9
9
|
export * from './lib/types/datasource-service.type';
|
|
10
10
|
export * from './lib/types/datatable-column.type';
|
|
11
11
|
export * from './lib/types/datatable-options.type';
|
|
12
|
+
export * from './lib/types/action.type';
|
|
13
|
+
export * from './lib/types/datatable-facet.type';
|
|
12
14
|
export * from './lib/datatable.intl';
|
package/fesm2022/eherve-angular-material-datatable-cell-checkbox-value.component-Dbzg9FxR.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eherve-angular-material-datatable-cell-checkbox-value.component-Dbzg9FxR.mjs","sources":["../../../projects/datatable/src/lib/components/cell-checkbox-value/cell-checkbox-value.component.ts","../../../projects/datatable/src/lib/components/cell-checkbox-value/cell-checkbox-value.component.html"],"sourcesContent":["/** @format */\n\nimport { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { GetPipe } from '../../pipes/get.pipe';\nimport { TransformPipe } from '../../pipes/transform.pipe';\nimport { DatatableCheckboxColumn } from '../../types/datatable-column.type';\n\n@Component({\n selector: 'lib-cell-checkbox-value',\n imports: [CommonModule, GetPipe, MatIconModule, TransformPipe],\n templateUrl: './cell-checkbox-value.component.html',\n styleUrl: './cell-checkbox-value.component.scss',\n})\nexport class CellCheckboxValueComponent<Record> {\n @Input()\n column!: DatatableCheckboxColumn<Record>;\n\n @Input()\n row: any;\n}\n","<!-- @format -->\n\n@let value = row | get: column.property | transform: row : column;\n@if (value === false) {\n <mat-icon>check_box_outline_blank</mat-icon>\n} @else if (value === true) {\n <mat-icon color=\"primary\">check_box</mat-icon>\n}\n"],"names":["i1"],"mappings":";;;;;;;;AAAA;MAea,0BAA0B,CAAA;AAErC,IAAA,MAAM;AAGN,IAAA,GAAG;uGALQ,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,GAAA,EAAA,KAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECfvC,yPAQA,EDGY,MAAA,EAAA,CAAA,yBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,0BAAE,OAAO,EAAA,IAAA,EAAA,KAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA;;2FAIlD,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;+BACE,yBAAyB,EAAA,OAAA,EAC1B,CAAC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,yPAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,CAAA,EAAA;8BAM9D,MAAM,EAAA,CAAA;sBADL;gBAID,GAAG,EAAA,CAAA;sBADF;;;;;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, Input } from '@angular/core';
|
|
5
|
-
import { MatLabel } from '@angular/material/form-field';
|
|
6
|
-
import * as i5 from '@angular/material/icon';
|
|
7
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
-
import { GetPipe } from './eherve-angular-material-datatable-get.pipe-C_JNMRuY.mjs';
|
|
9
|
-
import { S as SelectOptionPipe, a as SafeHtmlPipe } from './eherve-angular-material-datatable-eherve-angular-material-datatable-MKNysR_9.mjs';
|
|
10
|
-
import { TransformPipe } from './eherve-angular-material-datatable-transform.pipe-BOmcXXZU.mjs';
|
|
11
|
-
|
|
12
|
-
/** @format */
|
|
13
|
-
class CellSelectValueComponent {
|
|
14
|
-
column;
|
|
15
|
-
row;
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: CellSelectValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: CellSelectValueComponent, isStandalone: true, selector: "lib-cell-select-value", inputs: { column: "column", row: "row" }, ngImport: i0, template: "<!-- @format -->\n\n@let options = $any(column.options | async);\n@let value = row | get: column.property | transform: row : column;\n@let option = row | get: column.property | selectOption: options;\n\n@if (option) {\n <div class=\"option\">\n @if (option.icon) {\n <mat-icon [style.color]=\"option.iconColor\" [style.margin-right.px]=\"8\">\n {{ option.icon }}\n </mat-icon>\n }\n <mat-label [style.color]=\"option.color\" [innerHTML]=\"option.name | safeHtml\"></mat-label>\n </div>\n} @else {\n {{ value }}\n}\n", styles: [".option{display:flex;box-sizing:border-box;place-content:center start;align-items:center;flex-direction:row}mat-icon,mat-label{color:currentColor}:host-context(tr.has-click:hover) mat-icon,:host-context(tr.has-click:hover) mat-label{color:var(--ngx-mat-datatable-hover-color, var(--mat-sys-on-primary))!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: SelectOptionPipe, name: "selectOption" }, { kind: "pipe", type: GetPipe, name: "get" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "pipe", type: TransformPipe, name: "transform" }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }] });
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: CellSelectValueComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: 'lib-cell-select-value', imports: [CommonModule, SelectOptionPipe, GetPipe, MatIconModule, MatLabel, TransformPipe, SafeHtmlPipe], template: "<!-- @format -->\n\n@let options = $any(column.options | async);\n@let value = row | get: column.property | transform: row : column;\n@let option = row | get: column.property | selectOption: options;\n\n@if (option) {\n <div class=\"option\">\n @if (option.icon) {\n <mat-icon [style.color]=\"option.iconColor\" [style.margin-right.px]=\"8\">\n {{ option.icon }}\n </mat-icon>\n }\n <mat-label [style.color]=\"option.color\" [innerHTML]=\"option.name | safeHtml\"></mat-label>\n </div>\n} @else {\n {{ value }}\n}\n", styles: [".option{display:flex;box-sizing:border-box;place-content:center start;align-items:center;flex-direction:row}mat-icon,mat-label{color:currentColor}:host-context(tr.has-click:hover) mat-icon,:host-context(tr.has-click:hover) mat-label{color:var(--ngx-mat-datatable-hover-color, var(--mat-sys-on-primary))!important}\n"] }]
|
|
22
|
-
}], propDecorators: { column: [{
|
|
23
|
-
type: Input
|
|
24
|
-
}], row: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}] } });
|
|
27
|
-
|
|
28
|
-
export { CellSelectValueComponent };
|
|
29
|
-
//# sourceMappingURL=eherve-angular-material-datatable-cell-select-value.component-CXg-CD_k.mjs.map
|
package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-CXg-CD_k.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eherve-angular-material-datatable-cell-select-value.component-CXg-CD_k.mjs","sources":["../../../projects/datatable/src/lib/components/cell-select-value/cell-select-value.component.ts","../../../projects/datatable/src/lib/components/cell-select-value/cell-select-value.component.html"],"sourcesContent":["/** @format */\n\nimport { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { MatLabel } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { GetPipe } from '../../pipes/get.pipe';\nimport { SafeHtmlPipe } from '../../pipes/safe-html.pipe';\nimport { SelectOptionPipe } from '../../pipes/select-option.pipe';\nimport { TransformPipe } from '../../pipes/transform.pipe';\nimport { DatatableSelectColumn } from '../../types/datatable-column.type';\n\n@Component({\n selector: 'lib-cell-select-value',\n imports: [CommonModule, SelectOptionPipe, GetPipe, MatIconModule, MatLabel, TransformPipe, SafeHtmlPipe],\n templateUrl: './cell-select-value.component.html',\n styleUrl: './cell-select-value.component.scss',\n})\nexport class CellSelectValueComponent<Record> {\n @Input()\n column!: DatatableSelectColumn<Record>;\n\n @Input()\n row: any;\n}\n","<!-- @format -->\n\n@let options = $any(column.options | async);\n@let value = row | get: column.property | transform: row : column;\n@let option = row | get: column.property | selectOption: options;\n\n@if (option) {\n <div class=\"option\">\n @if (option.icon) {\n <mat-icon [style.color]=\"option.iconColor\" [style.margin-right.px]=\"8\">\n {{ option.icon }}\n </mat-icon>\n }\n <mat-label [style.color]=\"option.color\" [innerHTML]=\"option.name | safeHtml\"></mat-label>\n </div>\n} @else {\n {{ value }}\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;AAAA;MAkBa,wBAAwB,CAAA;AAEnC,IAAA,MAAM;AAGN,IAAA,GAAG;uGALQ,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,EClBrC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,GAAA,EAAA,KAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,kiBAkBA,EDJY,MAAA,EAAA,CAAA,6TAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,+EAAE,gBAAgB,EAAA,IAAA,EAAA,cAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,OAAO,EAAA,IAAA,EAAA,KAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAQ,EAAE,QAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,aAAa,6CAAE,YAAY,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,CAAA;;2FAI5F,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EACxB,OAAA,EAAA,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,kiBAAA,EAAA,MAAA,EAAA,CAAA,6TAAA,CAAA,EAAA;8BAMxG,MAAM,EAAA,CAAA;sBADL;gBAID,GAAG,EAAA,CAAA;sBADF;;;;;"}
|