@eherve/angular-material-datatable 19.25.0 → 19.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/fesm2022/eherve-angular-material-datatable.mjs +3023 -1
- package/fesm2022/eherve-angular-material-datatable.mjs.map +1 -1
- package/lib/datatable.component.d.ts +10 -0
- package/lib/directives/datatable-row-viewport.directive.d.ts +22 -0
- package/lib/pipes/safe-html.pipe.d.ts +2 -1
- package/lib/types/datatable-column.type.d.ts +2 -1
- package/package.json +1 -1
- package/fesm2022/eherve-angular-material-datatable-cell-checkbox-value.component-E5dQ-SJb.mjs +0 -26
- package/fesm2022/eherve-angular-material-datatable-cell-checkbox-value.component-E5dQ-SJb.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-cell-date-value.component-CXh9rWrt.mjs +0 -103
- package/fesm2022/eherve-angular-material-datatable-cell-date-value.component-CXh9rWrt.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-cell-duration-value.component-Br8ga1qE.mjs +0 -35
- package/fesm2022/eherve-angular-material-datatable-cell-duration-value.component-Br8ga1qE.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-cell-number-value.component-BGmWTDbF.mjs +0 -26
- package/fesm2022/eherve-angular-material-datatable-cell-number-value.component-BGmWTDbF.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-_CDm5Nid.mjs +0 -45
- package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-_CDm5Nid.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-eherve-angular-material-datatable-oKhIjmQe.mjs +0 -2650
- package/fesm2022/eherve-angular-material-datatable-eherve-angular-material-datatable-oKhIjmQe.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-get.pipe-OPM3WlAY.mjs +0 -19
- package/fesm2022/eherve-angular-material-datatable-get.pipe-OPM3WlAY.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-suffix-function.pipe-CQO-ghpR.mjs +0 -20
- package/fesm2022/eherve-angular-material-datatable-suffix-function.pipe-CQO-ghpR.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-transform.pipe-BOmcXXZU.mjs +0 -21
- package/fesm2022/eherve-angular-material-datatable-transform.pipe-BOmcXXZU.mjs.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { g as get } from './eherve-angular-material-datatable-eherve-angular-material-datatable-oKhIjmQe.mjs';
|
|
4
|
-
|
|
5
|
-
/** @format */
|
|
6
|
-
class GetPipe {
|
|
7
|
-
transform(obj, path) {
|
|
8
|
-
return get(obj, path);
|
|
9
|
-
}
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: GetPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: GetPipe, isStandalone: true, name: "get" });
|
|
12
|
-
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: GetPipe, decorators: [{
|
|
14
|
-
type: Pipe,
|
|
15
|
-
args: [{ name: 'get' }]
|
|
16
|
-
}] });
|
|
17
|
-
|
|
18
|
-
export { GetPipe };
|
|
19
|
-
//# sourceMappingURL=eherve-angular-material-datatable-get.pipe-OPM3WlAY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eherve-angular-material-datatable-get.pipe-OPM3WlAY.mjs","sources":["../../../projects/datatable/src/lib/pipes/get.pipe.ts"],"sourcesContent":["/** @format */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { get } from '../tools/get.tool';\n\n@Pipe({ name: 'get' })\nexport class GetPipe implements PipeTransform {\n transform(obj: any, path: string): any | undefined {\n return get(obj, path);\n }\n}\n"],"names":[],"mappings":";;;;AAAA;MAMa,OAAO,CAAA;IAClB,SAAS,CAAC,GAAQ,EAAE,IAAY,EAAA;AAC9B,QAAA,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC;;uGAFZ,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA;qGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA;;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB,IAAI;mBAAC,EAAE,IAAI,EAAE,KAAK,EAAE;;;;;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
/** @format */
|
|
5
|
-
class ValueFunctionPipe {
|
|
6
|
-
transform(value, valueFunction, row, column) {
|
|
7
|
-
if (typeof valueFunction === 'function')
|
|
8
|
-
return valueFunction(value, row, column);
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ValueFunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
12
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: ValueFunctionPipe, isStandalone: true, name: "valueFunction" });
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ValueFunctionPipe, decorators: [{
|
|
15
|
-
type: Pipe,
|
|
16
|
-
args: [{ name: 'valueFunction' }]
|
|
17
|
-
}] });
|
|
18
|
-
|
|
19
|
-
export { ValueFunctionPipe };
|
|
20
|
-
//# sourceMappingURL=eherve-angular-material-datatable-suffix-function.pipe-CQO-ghpR.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eherve-angular-material-datatable-suffix-function.pipe-CQO-ghpR.mjs","sources":["../../../projects/datatable/src/lib/pipes/suffix-function.pipe.ts"],"sourcesContent":["/** @format */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { DatatableValueColumn } from '../types/datatable-column.type';\n\nexport type PipeFunction<Record> = (value: any, row: Record, column: DatatableValueColumn<Record>) => string;\n\n@Pipe({ name: 'valueFunction' })\nexport class ValueFunctionPipe<Record> implements PipeTransform {\n transform(\n value: any,\n valueFunction: PipeFunction<Record>,\n row: Record,\n column: DatatableValueColumn<Record>\n ): string | null {\n if (typeof valueFunction === 'function') return valueFunction(value, row, column);\n return null;\n }\n}\n"],"names":[],"mappings":";;;AAAA;MAQa,iBAAiB,CAAA;AAC5B,IAAA,SAAS,CACP,KAAU,EACV,aAAmC,EACnC,GAAW,EACX,MAAoC,EAAA;QAEpC,IAAI,OAAO,aAAa,KAAK,UAAU;YAAE,OAAO,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC;AACjF,QAAA,OAAO,IAAI;;uGARF,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA;qGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,IAAI;mBAAC,EAAE,IAAI,EAAE,eAAe,EAAE;;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
/** @format */
|
|
5
|
-
class TransformPipe {
|
|
6
|
-
transform(value, row, column) {
|
|
7
|
-
if (typeof column.transform === 'function') {
|
|
8
|
-
return column.transform(value, row);
|
|
9
|
-
}
|
|
10
|
-
return value;
|
|
11
|
-
}
|
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: TransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: TransformPipe, isStandalone: true, name: "transform" });
|
|
14
|
-
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: TransformPipe, decorators: [{
|
|
16
|
-
type: Pipe,
|
|
17
|
-
args: [{ name: 'transform' }]
|
|
18
|
-
}] });
|
|
19
|
-
|
|
20
|
-
export { TransformPipe };
|
|
21
|
-
//# sourceMappingURL=eherve-angular-material-datatable-transform.pipe-BOmcXXZU.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eherve-angular-material-datatable-transform.pipe-BOmcXXZU.mjs","sources":["../../../projects/datatable/src/lib/pipes/transform.pipe.ts"],"sourcesContent":["/** @format */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { DatatableValueColumn } from '../types/datatable-column.type';\n\n@Pipe({ name: 'transform' })\nexport class TransformPipe<Record> implements PipeTransform {\n transform(value: any, row: Record, column: DatatableValueColumn<Record>): any {\n if (typeof column.transform === 'function') {\n return column.transform(value, row);\n }\n return value;\n }\n}\n"],"names":[],"mappings":";;;AAAA;MAMa,aAAa,CAAA;AACxB,IAAA,SAAS,CAAC,KAAU,EAAE,GAAW,EAAE,MAAoC,EAAA;AACrE,QAAA,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU,EAAE;YAC1C,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;;AAErC,QAAA,OAAO,KAAK;;uGALH,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA;qGAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,IAAI;mBAAC,EAAE,IAAI,EAAE,WAAW,EAAE;;;;;"}
|