ng-prime-tools 1.0.31 → 1.0.32

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.
@@ -13,5 +13,6 @@ export interface ButtonModel {
13
13
  backgroundColor?: string;
14
14
  borderColor?: string;
15
15
  severity?: SeverityEnum;
16
+ outlined?: boolean;
16
17
  }
17
18
  //# sourceMappingURL=button.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.model.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/models/button.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB"}
1
+ {"version":3,"file":"button.model.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/models/button.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -21,6 +21,10 @@ export declare class PTAdvancedPrimeTableComponent implements OnInit {
21
21
  search: EventEmitter<any>;
22
22
  exportExcelEvent: EventEmitter<void>;
23
23
  exportPdfEvent: EventEmitter<void>;
24
+ pageChange: EventEmitter<{
25
+ page: number;
26
+ rows: number;
27
+ }>;
24
28
  dt: Table;
25
29
  TableTypeEnum: typeof TableTypeEnum;
26
30
  searchValue: string;
@@ -46,8 +50,9 @@ export declare class PTAdvancedPrimeTableComponent implements OnInit {
46
50
  ngOnInit(): void;
47
51
  private initializeComposedFilters;
48
52
  getComposedFieldType(col: TableColumn, composedName: string): TableTypeEnum | undefined;
49
- onComposedFilterChange(composedName: string, selectedValues: any): void;
53
+ onComposedFilterChange(col: TableColumn, composedName: string, selectedValues: any): void;
50
54
  onFilter(event: any): void;
55
+ onPageChange(event: any): void;
51
56
  onCalendarFilterChange(event: any, columnCode: string, filterCallback: any): void;
52
57
  filterComposedData(item: any, composedName: string, value: any): boolean;
53
58
  private calculateColumnWidth;
@@ -79,6 +84,6 @@ export declare class PTAdvancedPrimeTableComponent implements OnInit {
79
84
  };
80
85
  formatNumber(value: number, decimalPlaces?: number, thousandSeparator?: 'comma' | 'space', decimalSeparator?: 'comma' | 'dot'): string;
81
86
  static ɵfac: i0.ɵɵFactoryDeclaration<PTAdvancedPrimeTableComponent, never>;
82
- static ɵcmp: i0.ɵɵComponentDeclaration<PTAdvancedPrimeTableComponent, "pt-advanced-prime-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "hasSearchFilter": { "alias": "hasSearchFilter"; "required": false; }; "hasExportExcel": { "alias": "hasExportExcel"; "required": false; }; "hasExportPDF": { "alias": "hasExportPDF"; "required": false; }; "hasColumnFilter": { "alias": "hasColumnFilter"; "required": false; }; "isPaginated": { "alias": "isPaginated"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "isSortable": { "alias": "isSortable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, { "filter": "filter"; "search": "search"; "exportExcelEvent": "exportExcelEvent"; "exportPdfEvent": "exportPdfEvent"; }, never, never, false, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<PTAdvancedPrimeTableComponent, "pt-advanced-prime-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "hasSearchFilter": { "alias": "hasSearchFilter"; "required": false; }; "hasExportExcel": { "alias": "hasExportExcel"; "required": false; }; "hasExportPDF": { "alias": "hasExportPDF"; "required": false; }; "hasColumnFilter": { "alias": "hasColumnFilter"; "required": false; }; "isPaginated": { "alias": "isPaginated"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "isSortable": { "alias": "isSortable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, { "filter": "filter"; "search": "search"; "exportExcelEvent": "exportExcelEvent"; "exportPdfEvent": "exportPdfEvent"; "pageChange": "pageChange"; }, never, never, false, never>;
83
88
  }
84
89
  //# sourceMappingURL=pt-advanced-prime-table.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pt-advanced-prime-table.component.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAqB,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAC;;AAG1B,qBAKa,6BAA8B,YAAW,MAAM;IAEjD,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,OAAO,EAAE,WAAW,EAAE,CAAM;IAC5B,YAAY,EAAE,MAAM,CAAK;IACzB,WAAW,EAAE,MAAM,EAAE,CAAM;IAC3B,eAAe,EAAE,OAAO,CAAS;IACjC,cAAc,EAAE,OAAO,CAAS;IAChC,YAAY,EAAE,OAAO,CAAS;IAC9B,eAAe,EAAE,OAAO,CAAS;IACjC,WAAW,EAAE,OAAO,CAAS;IAC7B,OAAO,EAAE,GAAG,EAAE,CAAM;IACpB,UAAU,EAAE,OAAO,CAAS;IAC5B,OAAO,EAAE,OAAO,CAAS;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAG/B,MAAM,oBAAsB;IAC5B,MAAM,oBAA2B;IACjC,gBAAgB,qBAA4B;IAC5C,cAAc,qBAA4B;IAEhB,EAAE,EAAG,KAAK,CAAC;IAExC,aAAa,uBAAiB;IACrC,WAAW,EAAE,MAAM,CAAM;IAElB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAM;IAE5C,OAAO,CAAC,kBAAkB,CAAyB;IACnD,SAAS,SAAM;IAGf,QAAQ,EAAE,OAAO,CAAS;IAC1B,MAAM,EAAE,O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AK3C,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG;IAqB9C,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;IAqBhD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAKhC,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAgBhC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAQ/B,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM;IAIjC,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS;IAQ1D,OAAO,CAAC,mBAAmB;IAI3B,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAyChC,OAAO,CAAC,oBAAoB;IAc5B,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM;IAqB7B,WAAW;IAIX,SAAS;IAIT,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG;QACzD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB;IAkCD,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG;QACzD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB;IAWD,YAAY,CACV,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,MAAM,EACtB,iBAAiB,GAAE,OAAO,GAAG,OAAiB,EAC9C,gBAAgB,GAAE,OAAO,GAAG,KAAa,GACxC,MAAM;yCAzfE,6BAA6B;2CAA7B,6BAA6B;CAqhBzC"}
1
+ {"version":3,"file":"pt-advanced-prime-table.component.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAqB,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,YAAY,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;IAoBhD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAKhC,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAgBhC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAO/B,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM;IAIjC,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS;IAQ1D,OAAO,CAAC,mBAAmB;IAI3B,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAqChC,OAAO,CAAC,oBAAoB;IAa5B,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM;IAkB7B,WAAW;IAIX,SAAS;IAIT,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG;QACzD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB;IA6BD,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG;QACzD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB;IAWD,YAAY,CACV,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,MAAM,EACtB,iBAAiB,GAAE,OAAO,GAAG,OAAiB,EAC9C,gBAAgB,GAAE,OAAO,GAAG,KAAa,GACxC,MAAM;yCAneE,6BAA6B;2CAA7B,6BAA6B;CA4fzC"}
@@ -8,10 +8,16 @@ export declare class PTButtonComponent implements OnInit, AfterViewInit, OnChang
8
8
  constructor(renderer: Renderer2, el: ElementRef);
9
9
  ngOnInit(): void;
10
10
  ngOnChanges(changes: SimpleChanges): void;
11
- updateDisabledStyles(isDisabled: boolean): void;
12
11
  ngAfterViewInit(): void;
13
12
  getIconPos(): 'left' | 'right';
14
13
  getType(): string;
14
+ private updateDisabledStyles;
15
+ /**
16
+ * We delegate colors to PrimeNG theme when:
17
+ * - outlined = true
18
+ * - and no manual color is provided (no backgroundColor, borderColor, fontColor)
19
+ */
20
+ private shouldUseThemeColors;
15
21
  applyButtonStyles(): void;
16
22
  static ɵfac: i0.ɵɵFactoryDeclaration<PTButtonComponent, never>;
17
23
  static ɵcmp: i0.ɵɵComponentDeclaration<PTButtonComponent, "pt-button", never, { "buttonConfig": { "alias": "buttonConfig"; "required": false; }; }, {}, never, never, false, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"pt-button.component.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/pt-button/pt-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,aAAa,EACb,SAAS,EACT,UAAU,EACV,aAAa,EACb,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;;AAExC,qBAKa,iBAAkB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IAG5D,OAAO,CAAC,QAAQ;IAAa,OAAO,CAAC,EAAE;IAF1C,YAAY,EAAG,WAAW,CAAC;gBAEhB,QAAQ,EAAE,SAAS,EAAU,EAAE,EAAE,UAAU;IAE/D,QAAQ,IAAI,IAAI;IAoBhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAwBzC,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAuB/C,eAAe,IAAI,IAAI;IAIvB,UAAU,IAAI,MAAM,GAAG,OAAO;IAI9B,OAAO,IAAI,MAAM;IAIjB,iBAAiB,IAAI,IAAI;yCApFd,iBAAiB;2CAAjB,iBAAiB;CA0H7B"}
1
+ {"version":3,"file":"pt-button.component.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/pt-button/pt-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,aAAa,EACb,SAAS,EACT,UAAU,EACV,aAAa,EACb,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;;AAExC,qBAKa,iBAAkB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IAG5D,OAAO,CAAC,QAAQ;IAAa,OAAO,CAAC,EAAE;IAF1C,YAAY,EAAG,WAAW,CAAC;gBAEhB,QAAQ,EAAE,SAAS,EAAU,EAAE,EAAE,UAAU;IAE/D,QAAQ,IAAI,IAAI;IAqBhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAyBzC,eAAe,IAAI,IAAI;IAIvB,UAAU,IAAI,MAAM,GAAG,OAAO;IAI9B,OAAO,IAAI,MAAM;IAIjB,OAAO,CAAC,oBAAoB;IAuB5B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAe5B,iBAAiB,IAAI,IAAI;yCA1Gd,iBAAiB;2CAAjB,iBAAiB;CA4J7B"}
@@ -1,6 +1,8 @@
1
1
  import { EventEmitter, Renderer2, ElementRef, SimpleChanges, OnChanges } from '@angular/core';
2
2
  import { ConfirmationService, MessageService } from 'primeng/api';
3
3
  import { DialogConfig } from '../models/dialog-config.model';
4
+ import { ButtonModel } from '../models/button.model';
5
+ import { SeverityEnum } from '../enums';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class PTDialogComponent implements OnChanges {
6
8
  private confirmationService;
@@ -10,15 +12,30 @@ export declare class PTDialogComponent implements OnChanges {
10
12
  dialogConfig: DialogConfig;
11
13
  confirm: EventEmitter<void>;
12
14
  cancel: EventEmitter<void>;
15
+ SeverityEnum: typeof SeverityEnum;
13
16
  constructor(confirmationService: ConfirmationService, messageService: MessageService, renderer: Renderer2, el: ElementRef);
14
17
  ngOnChanges(changes: SimpleChanges): void;
18
+ /**
19
+ * Merge defaults + current config + severity style.
20
+ * We are careful NOT to spread header (it can be string or object).
21
+ */
15
22
  private applyDialogStyle;
23
+ private getSeverityClass;
24
+ /** SUCCESS & INFO share same behaviour, only color differs */
25
+ private getSeverityColors;
26
+ get confirmButtonModel(): ButtonModel;
27
+ get cancelButtonModel(): ButtonModel;
16
28
  showDialog(): void;
17
- private getButtonStyle;
18
29
  getDialogHeaderText(): string;
19
30
  getDialogHeaderStyle(): any;
20
31
  getDialogIconClass(): string;
21
32
  getDialogIconStyle(): any;
33
+ /**
34
+ * No default text anymore.
35
+ * - If dialogConfig.content is a string, we return it.
36
+ * - If it is an object with text, we use that.
37
+ * - Otherwise we return '' (empty) so the body is blank.
38
+ */
22
39
  getDialogContentText(): string;
23
40
  getDialogContentStyle(): any;
24
41
  static ɵfac: i0.ɵɵFactoryDeclaration<PTDialogComponent, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"pt-dialog.component.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/pt-dialog/pt-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,SAAS,EACT,UAAU,EACV,aAAa,EACb,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EAEnB,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAqD7D,qBAMa,iBAAkB,YAAW,SAAS;IAM/C,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,EAAE;IARH,YAAY,EAAE,YAAY,CAAgC;IACzD,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;IACjD,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;gBAGhD,mBAAmB,EAAE,mBAAmB,EACxC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,SAAS,EACnB,EAAE,EAAE,UAAU;IAGxB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAezC,OAAO,CAAC,gBAAgB;IAkBxB,UAAU,IAAI,IAAI;IAiDlB,OAAO,CAAC,cAAc;IAmCtB,mBAAmB,IAAI,MAAM;IAgB7B,oBAAoB,IAAI,GAAG;IAkB3B,kBAAkB,IAAI,MAAM;IAmB5B,kBAAkB,IAAI,GAAG;IAqBzB,oBAAoB,IAAI,MAAM;IAa9B,qBAAqB,IAAI,GAAG;yCAxNjB,iBAAiB;2CAAjB,iBAAiB;CA4O7B"}
1
+ {"version":3,"file":"pt-dialog.component.d.ts","sourceRoot":"","sources":["../../../../projects/ng-prime-tools/src/lib/pt-dialog/pt-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,SAAS,EACT,UAAU,EACV,aAAa,EACb,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EAEnB,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;;AAyCxC,qBAMa,iBAAkB,YAAW,SAAS;IAQ/C,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,EAAE;IAVH,YAAY,EAAE,YAAY,CAAgC;IACzD,OAAO,qBAA4B;IACnC,MAAM,qBAA4B;IAE5C,YAAY,sBAAgB;gBAGlB,mBAAmB,EAAE,mBAAmB,EACxC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,SAAS,EACnB,EAAE,EAAE,UAAU;IAGxB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAiBzC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA8BxB,OAAO,CAAC,gBAAgB;IAexB,8DAA8D;IAC9D,OAAO,CAAC,iBAAiB;IAkBzB,IAAI,kBAAkB,IAAI,WAAW,CAwBpC;IAED,IAAI,iBAAiB,IAAI,WAAW,CAanC;IAED,UAAU,IAAI,IAAI;IAyClB,mBAAmB,IAAI,MAAM;IAgB7B,oBAAoB,IAAI,GAAG;IAgB3B,kBAAkB,IAAI,MAAM;IAiB5B,kBAAkB,IAAI,GAAG;IAezB;;;;;OAKG;IACH,oBAAoB,IAAI,MAAM;IAc9B,qBAAqB,IAAI,GAAG;yCAzQjB,iBAAiB;2CAAjB,iBAAiB;CA+R7B"}
@@ -14,7 +14,7 @@ export declare class PTMetricPanelComponent implements OnInit {
14
14
  getTitleStyles(): {
15
15
  color: string;
16
16
  fontSize: string;
17
- textAlign: "left" | "center" | "right";
17
+ textAlign: "left" | "right" | "center";
18
18
  } | {
19
19
  color?: undefined;
20
20
  fontSize?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-prime-tools",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "An advanced PrimeNG table for Angular",
5
5
  "author": "JAAI ZAKARIAE <jaaizakariae@gmail.com>",
6
6
  "repository": {