@eherve/angular-material-datatable 19.4.0 → 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.
Files changed (19) hide show
  1. package/fesm2022/{eherve-angular-material-datatable-cell-checkbox-value.component-Dc41lqmy.mjs → eherve-angular-material-datatable-cell-checkbox-value.component-DDe_Pxw3.mjs} +2 -2
  2. package/fesm2022/{eherve-angular-material-datatable-cell-checkbox-value.component-Dc41lqmy.mjs.map → eherve-angular-material-datatable-cell-checkbox-value.component-DDe_Pxw3.mjs.map} +1 -1
  3. package/fesm2022/{eherve-angular-material-datatable-cell-date-value.component-AsxqAsKl.mjs → eherve-angular-material-datatable-cell-date-value.component-DLWLxIE8.mjs} +2 -2
  4. package/fesm2022/{eherve-angular-material-datatable-cell-date-value.component-AsxqAsKl.mjs.map → eherve-angular-material-datatable-cell-date-value.component-DLWLxIE8.mjs.map} +1 -1
  5. package/fesm2022/{eherve-angular-material-datatable-cell-duration-value.component-CZJGDLpl.mjs → eherve-angular-material-datatable-cell-duration-value.component-7XEEW3uX.mjs} +2 -2
  6. package/fesm2022/{eherve-angular-material-datatable-cell-duration-value.component-CZJGDLpl.mjs.map → eherve-angular-material-datatable-cell-duration-value.component-7XEEW3uX.mjs.map} +1 -1
  7. package/fesm2022/{eherve-angular-material-datatable-cell-number-value.component-TGBbAUzO.mjs → eherve-angular-material-datatable-cell-number-value.component-CK0RC4b-.mjs} +2 -2
  8. package/fesm2022/{eherve-angular-material-datatable-cell-number-value.component-TGBbAUzO.mjs.map → eherve-angular-material-datatable-cell-number-value.component-CK0RC4b-.mjs.map} +1 -1
  9. package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-cEFgCV26.mjs +29 -0
  10. package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-cEFgCV26.mjs.map +1 -0
  11. package/fesm2022/{eherve-angular-material-datatable-eherve-angular-material-datatable-ZXrtzTbw.mjs → eherve-angular-material-datatable-eherve-angular-material-datatable-DBFRL62_.mjs} +3 -3
  12. package/fesm2022/{eherve-angular-material-datatable-eherve-angular-material-datatable-ZXrtzTbw.mjs.map → eherve-angular-material-datatable-eherve-angular-material-datatable-DBFRL62_.mjs.map} +1 -1
  13. package/fesm2022/{eherve-angular-material-datatable-get.pipe-DtILEaE1.mjs → eherve-angular-material-datatable-get.pipe-c_eIjBUL.mjs} +2 -2
  14. package/fesm2022/{eherve-angular-material-datatable-get.pipe-DtILEaE1.mjs.map → eherve-angular-material-datatable-get.pipe-c_eIjBUL.mjs.map} +1 -1
  15. package/fesm2022/eherve-angular-material-datatable.mjs +1 -1
  16. package/lib/types/datatable-column.type.d.ts +1 -0
  17. package/package.json +1 -1
  18. package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-BsyhRo4p.mjs +0 -29
  19. package/fesm2022/eherve-angular-material-datatable-cell-select-value.component-BsyhRo4p.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Pipe } from '@angular/core';
3
- import { g as get } from './eherve-angular-material-datatable-eherve-angular-material-datatable-ZXrtzTbw.mjs';
3
+ import { g as get } from './eherve-angular-material-datatable-eherve-angular-material-datatable-DBFRL62_.mjs';
4
4
 
5
5
  /** @format */
6
6
  class GetPipe {
@@ -16,4 +16,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImpor
16
16
  }] });
17
17
 
18
18
  export { GetPipe };
19
- //# sourceMappingURL=eherve-angular-material-datatable-get.pipe-DtILEaE1.mjs.map
19
+ //# sourceMappingURL=eherve-angular-material-datatable-get.pipe-c_eIjBUL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"eherve-angular-material-datatable-get.pipe-DtILEaE1.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
+ {"version":3,"file":"eherve-angular-material-datatable-get.pipe-c_eIjBUL.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,2 +1,2 @@
1
- export { b as NgxMatDatatableComponent, c as NgxMatDatatableContentDirective, e as NgxMatDatatableIntl, N as NgxMatDatatableModule } from './eherve-angular-material-datatable-eherve-angular-material-datatable-ZXrtzTbw.mjs';
1
+ export { b as NgxMatDatatableComponent, c as NgxMatDatatableContentDirective, e as NgxMatDatatableIntl, N as NgxMatDatatableModule } from './eherve-angular-material-datatable-eherve-angular-material-datatable-DBFRL62_.mjs';
2
2
  //# sourceMappingURL=eherve-angular-material-datatable.mjs.map
@@ -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> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eherve/angular-material-datatable",
3
- "version": "19.4.0",
3
+ "version": "19.5.0",
4
4
  "author": "Eric Herve <eric.herve.95@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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-DtILEaE1.mjs';
9
- import { S as SelectOptionPipe, a as SafeHtmlPipe } from './eherve-angular-material-datatable-eherve-angular-material-datatable-ZXrtzTbw.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-BsyhRo4p.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eherve-angular-material-datatable-cell-select-value.component-BsyhRo4p.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;;;;;"}