@eherve/angular-material-datatable 19.0.3 → 19.0.4
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-date-value.component-C_LQOP4q.mjs +58 -0
- package/fesm2022/eherve-angular-material-datatable-cell-date-value.component-C_LQOP4q.mjs.map +1 -0
- package/fesm2022/eherve-angular-material-datatable-cell-duration-value.component-Bev5fbig.mjs +39 -0
- package/fesm2022/eherve-angular-material-datatable-cell-duration-value.component-Bev5fbig.mjs.map +1 -0
- package/fesm2022/{eherve-angular-material-datatable-cell-select-value.component-CxBvtvVx.mjs → eherve-angular-material-datatable-cell-select-value.component-DNzSpyn2.mjs} +2 -2
- package/fesm2022/{eherve-angular-material-datatable-cell-select-value.component-CxBvtvVx.mjs.map → eherve-angular-material-datatable-cell-select-value.component-DNzSpyn2.mjs.map} +1 -1
- package/fesm2022/{eherve-angular-material-datatable-eherve-angular-material-datatable-CjmrdtGO.mjs → eherve-angular-material-datatable-eherve-angular-material-datatable-BgcVN2QJ.mjs} +242 -21
- package/fesm2022/eherve-angular-material-datatable-eherve-angular-material-datatable-BgcVN2QJ.mjs.map +1 -0
- package/fesm2022/eherve-angular-material-datatable.mjs +1 -1
- package/lib/components/cell-duration-value/cell-duration-value.component.d.ts +8 -0
- package/lib/components/header-duration-filter/header-duration-filter.component.d.ts +30 -0
- package/lib/components/operator-select/operator-select.component.d.ts +5 -2
- package/lib/components/time-unit-select/time-unit-select.component.d.ts +28 -0
- package/lib/pipes/duration.pipe.d.ts +10 -0
- package/lib/pipes/moment-format.pipe.d.ts +12 -0
- package/lib/types/datatable-column.type.d.ts +8 -1
- package/package.json +1 -1
- package/fesm2022/eherve-angular-material-datatable-cell-date-value.component-CDzvdmYI.mjs +0 -25
- package/fesm2022/eherve-angular-material-datatable-cell-date-value.component-CDzvdmYI.mjs.map +0 -1
- package/fesm2022/eherve-angular-material-datatable-eherve-angular-material-datatable-CjmrdtGO.mjs.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Pipe, Component, Input } from '@angular/core';
|
|
4
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
+
import { GetPipe } from './eherve-angular-material-datatable-get.pipe--ODBMh1N.mjs';
|
|
6
|
+
import moment from 'moment';
|
|
7
|
+
|
|
8
|
+
/** @format */
|
|
9
|
+
class MomentFormatPipe {
|
|
10
|
+
transform(data, options) {
|
|
11
|
+
const date = this.getMoment(data);
|
|
12
|
+
if (!date)
|
|
13
|
+
return '';
|
|
14
|
+
const format = options?.format || 'LLL';
|
|
15
|
+
return options?.locale ? date.locale(options.locale).format(format) : date.format(format);
|
|
16
|
+
}
|
|
17
|
+
getMoment(data) {
|
|
18
|
+
if (typeof data === 'string')
|
|
19
|
+
return moment(data);
|
|
20
|
+
if (typeof data === 'number')
|
|
21
|
+
return moment(data);
|
|
22
|
+
if (data instanceof Date)
|
|
23
|
+
return moment(data);
|
|
24
|
+
if (moment.isMoment(data))
|
|
25
|
+
return data.clone();
|
|
26
|
+
if (typeof data?.valueOf === 'function') {
|
|
27
|
+
const value = data.valueOf();
|
|
28
|
+
if (typeof value === 'number')
|
|
29
|
+
return moment(data);
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MomentFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
34
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: MomentFormatPipe, isStandalone: true, name: "momentFormat" });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MomentFormatPipe, decorators: [{
|
|
37
|
+
type: Pipe,
|
|
38
|
+
args: [{ name: 'momentFormat' }]
|
|
39
|
+
}] });
|
|
40
|
+
|
|
41
|
+
/** @format */
|
|
42
|
+
class CellDateValueComponent {
|
|
43
|
+
column;
|
|
44
|
+
row;
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: CellDateValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: CellDateValueComponent, isStandalone: true, selector: "lib-cell-date-value", inputs: { column: "column", row: "row" }, ngImport: i0, template: "<!-- @format -->\n\n@let value = row | get: column.property;\n@if (value) {\n {{ value | momentFormat:column}}\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: GetPipe, name: "get" }, { kind: "ngmodule", type: MatIconModule }, { kind: "pipe", type: MomentFormatPipe, name: "momentFormat" }] });
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: CellDateValueComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ selector: 'lib-cell-date-value', imports: [CommonModule, GetPipe, MatIconModule, MomentFormatPipe], template: "<!-- @format -->\n\n@let value = row | get: column.property;\n@if (value) {\n {{ value | momentFormat:column}}\n}\n" }]
|
|
51
|
+
}], propDecorators: { column: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], row: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}] } });
|
|
56
|
+
|
|
57
|
+
export { CellDateValueComponent };
|
|
58
|
+
//# sourceMappingURL=eherve-angular-material-datatable-cell-date-value.component-C_LQOP4q.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eherve-angular-material-datatable-cell-date-value.component-C_LQOP4q.mjs","sources":["../../../projects/datatable/src/lib/pipes/moment-format.pipe.ts","../../../projects/datatable/src/lib/components/cell-date-value/cell-date-value.component.ts","../../../projects/datatable/src/lib/components/cell-date-value/cell-date-value.component.html"],"sourcesContent":["/** @format */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport moment, { Moment } from 'moment';\n\n@Pipe({ name: 'momentFormat' })\nexport class MomentFormatPipe implements PipeTransform {\n transform(data: any, options: { format?: string; locale?: string }): string {\n const date = this.getMoment(data);\n if (!date) return '';\n const format = options?.format || 'LLL';\n return options?.locale ? date.locale(options.locale).format(format) : date.format(format);\n }\n\n private getMoment(data: any): Moment | null {\n if (typeof data === 'string') return moment(data);\n if (typeof data === 'number') return moment(data);\n if (data instanceof Date) return moment(data);\n if (moment.isMoment(data)) return data.clone();\n if (typeof data?.valueOf === 'function') {\n const value = data.valueOf();\n if (typeof value === 'number') return moment(data);\n }\n return null;\n }\n}\n","/** @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 { MomentFormatPipe } from '../../pipes/moment-format.pipe';\nimport { DatatableDateColumn } from '../../types/datatable-column.type';\n\n@Component({\n selector: 'lib-cell-date-value',\n imports: [CommonModule, GetPipe, MatIconModule, MomentFormatPipe],\n templateUrl: './cell-date-value.component.html',\n styleUrl: './cell-date-value.component.scss',\n})\nexport class CellDateValueComponent {\n @Input()\n column!: DatatableDateColumn;\n\n @Input()\n row: any;\n}\n","<!-- @format -->\n\n@let value = row | get: column.property;\n@if (value) {\n {{ value | momentFormat:column}}\n}\n"],"names":[],"mappings":";;;;;;;AAAA;MAMa,gBAAgB,CAAA;IAC3B,SAAS,CAAC,IAAS,EAAE,OAA6C,EAAA;QAChE,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;AACjC,QAAA,IAAI,CAAC,IAAI;AAAE,YAAA,OAAO,EAAE;AACpB,QAAA,MAAM,MAAM,GAAG,OAAO,EAAE,MAA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AAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,GAAA,EAAA,KAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECfnC,sHAMA,EDKY,MAAA,EAAA,CAAA,EAAA,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,MAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,CAAA;;2FAIrD,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;+BACE,qBAAqB,EAAA,OAAA,EACtB,CAAC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,sHAAA,EAAA;8BAMjE,MAAM,EAAA,CAAA;sBADL;gBAID,GAAG,EAAA,CAAA;sBADF;;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Pipe, Component, Input } from '@angular/core';
|
|
4
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
+
import moment from 'moment';
|
|
6
|
+
import { GetPipe } from './eherve-angular-material-datatable-get.pipe--ODBMh1N.mjs';
|
|
7
|
+
|
|
8
|
+
/** @format */
|
|
9
|
+
class DurationPipe {
|
|
10
|
+
transform(data, options) {
|
|
11
|
+
const duration = moment.duration(data);
|
|
12
|
+
return options?.locale ? duration.locale(options.locale).humanize() : duration.humanize();
|
|
13
|
+
}
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: DurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
15
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: DurationPipe, isStandalone: true, name: "duration" });
|
|
16
|
+
}
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: DurationPipe, decorators: [{
|
|
18
|
+
type: Pipe,
|
|
19
|
+
args: [{ name: 'duration' }]
|
|
20
|
+
}] });
|
|
21
|
+
|
|
22
|
+
/** @format */
|
|
23
|
+
class CellDurationValueComponent {
|
|
24
|
+
column;
|
|
25
|
+
row;
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: CellDurationValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: CellDurationValueComponent, isStandalone: true, selector: "lib-cell-duration-value", inputs: { column: "column", row: "row" }, ngImport: i0, template: "<!-- @format -->\n\n@let value = row | get: column.property;\n@if (value) {\n {{ value | duration: column }}\n}\n", styles: ["mat-icon{padding:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: GetPipe, name: "get" }, { kind: "ngmodule", type: MatIconModule }, { kind: "pipe", type: DurationPipe, name: "duration" }] });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: CellDurationValueComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'lib-cell-duration-value', imports: [CommonModule, GetPipe, MatIconModule, DurationPipe], template: "<!-- @format -->\n\n@let value = row | get: column.property;\n@if (value) {\n {{ value | duration: column }}\n}\n", styles: ["mat-icon{padding:8px}\n"] }]
|
|
32
|
+
}], propDecorators: { column: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], row: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
|
+
|
|
38
|
+
export { CellDurationValueComponent };
|
|
39
|
+
//# sourceMappingURL=eherve-angular-material-datatable-cell-duration-value.component-Bev5fbig.mjs.map
|
package/fesm2022/eherve-angular-material-datatable-cell-duration-value.component-Bev5fbig.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eherve-angular-material-datatable-cell-duration-value.component-Bev5fbig.mjs","sources":["../../../projects/datatable/src/lib/pipes/duration.pipe.ts","../../../projects/datatable/src/lib/components/cell-duration-value/cell-duration-value.component.ts","../../../projects/datatable/src/lib/components/cell-duration-value/cell-duration-value.component.html"],"sourcesContent":["/** @format */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport moment from 'moment';\n\n@Pipe({ name: 'duration' })\nexport class DurationPipe implements PipeTransform {\n transform(data: number, options: { locale?: string }): string {\n const duration = moment.duration(data);\n return options?.locale ? duration.locale(options.locale).humanize() : duration.humanize();\n }\n}\n","/** @format */\n\nimport { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { DurationPipe } from '../../pipes/duration.pipe';\nimport { GetPipe } from '../../pipes/get.pipe';\nimport { DatatableDurationColumn } from '../../types/datatable-column.type';\n\n@Component({\n selector: 'lib-cell-duration-value',\n imports: [CommonModule, GetPipe, MatIconModule, DurationPipe],\n templateUrl: './cell-duration-value.component.html',\n styleUrl: './cell-duration-value.component.scss',\n})\nexport class CellDurationValueComponent {\n @Input()\n column!: DatatableDurationColumn;\n\n @Input()\n row: any;\n}\n","<!-- @format -->\n\n@let value = row | get: column.property;\n@if (value) {\n {{ value | duration: column }}\n}\n"],"names":[],"mappings":";;;;;;;AAAA;MAMa,YAAY,CAAA;IACvB,SAAS,CAAC,IAAY,EAAE,OAA4B,EAAA;QAClD,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,I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AAA,EAAA,oHAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,CAAA,EAAA;8BAM7D,MAAM,EAAA,CAAA;sBADL;gBAID,GAAG,EAAA,CAAA;sBADF;;;;;"}
|
|
@@ -6,7 +6,7 @@ import { MatLabel } from '@angular/material/form-field';
|
|
|
6
6
|
import * as i5 from '@angular/material/icon';
|
|
7
7
|
import { MatIconModule } from '@angular/material/icon';
|
|
8
8
|
import { GetPipe } from './eherve-angular-material-datatable-get.pipe--ODBMh1N.mjs';
|
|
9
|
-
import { S as SelectOptionPipe } from './eherve-angular-material-datatable-eherve-angular-material-datatable-
|
|
9
|
+
import { S as SelectOptionPipe } from './eherve-angular-material-datatable-eherve-angular-material-datatable-BgcVN2QJ.mjs';
|
|
10
10
|
|
|
11
11
|
/** @format */
|
|
12
12
|
class CellSelectValueComponent {
|
|
@@ -25,4 +25,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImpor
|
|
|
25
25
|
}] } });
|
|
26
26
|
|
|
27
27
|
export { CellSelectValueComponent };
|
|
28
|
-
//# sourceMappingURL=eherve-angular-material-datatable-cell-select-value.component-
|
|
28
|
+
//# sourceMappingURL=eherve-angular-material-datatable-cell-select-value.component-DNzSpyn2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eherve-angular-material-datatable-cell-select-value.component-
|
|
1
|
+
{"version":3,"file":"eherve-angular-material-datatable-cell-select-value.component-DNzSpyn2.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 { SelectOptionPipe } from '../../pipes/select-option.pipe';\nimport { DatatableSelectColumn } from '../../types/datatable-column.type';\n\n@Component({\n selector: 'lib-cell-select-value',\n imports: [CommonModule, SelectOptionPipe, GetPipe, MatIconModule, MatLabel],\n templateUrl: './cell-select-value.component.html',\n styleUrl: './cell-select-value.component.scss',\n})\nexport class CellSelectValueComponent {\n @Input()\n column!: DatatableSelectColumn;\n\n @Input()\n row: any;\n}\n","<!-- @format -->\n\n@let options = $any(column.options | async);\n@let value = row | get: column.property;\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\"></mat-label>\n </div>\n} @else {\n {{ value }}\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;AAAA;MAgBa,wBAAwB,CAAA;AAEnC,IAAA,MAAM;AAGN,IAAA,GAAG;uGALQ,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAxB,wBAAwB,EAAA,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,EChBrC,6fAkBA,EAAA,MAAA,EAAA,CAAA,gHAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDNY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,IAAA,EAAA,cAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,OAAO,EAAA,IAAA,EAAA,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