@cleavelandprice/ngx-lib 3.12.0 → 3.14.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 (70) hide show
  1. package/active-directory/gui/components/user-form-field/user-form-field.component.d.ts +3 -3
  2. package/authentication/token/gui/components/login/login.component.d.ts +2 -2
  3. package/dialog/components/base/base.component.d.ts +2 -2
  4. package/esm2022/active-directory/active-directory.module.mjs +4 -4
  5. package/esm2022/active-directory/gui/components/user-chooser/user-chooser.component.mjs +3 -3
  6. package/esm2022/active-directory/gui/components/user-form-field/user-form-field.component.mjs +3 -3
  7. package/esm2022/active-directory/gui/gui.module.mjs +4 -4
  8. package/esm2022/active-directory/services/active-directory.service.mjs +3 -3
  9. package/esm2022/authentication/authentication.base.module.mjs +4 -4
  10. package/esm2022/authentication/object/object.module.mjs +4 -4
  11. package/esm2022/authentication/object/services/authentication.service.mjs +3 -3
  12. package/esm2022/authentication/token/gui/components/login/login.component.mjs +3 -3
  13. package/esm2022/authentication/token/gui/components/login-form/login-form.component.mjs +3 -3
  14. package/esm2022/authentication/token/gui/services/authentication.service.mjs +3 -3
  15. package/esm2022/authentication/token/gui/token-gui.module.mjs +4 -4
  16. package/esm2022/authentication/token/services/authentication.service.mjs +3 -3
  17. package/esm2022/authentication/token/token.module.mjs +4 -4
  18. package/esm2022/dialog/components/base/base.component.mjs +3 -3
  19. package/esm2022/dialog/components/choice/choice.component.mjs +3 -3
  20. package/esm2022/dialog/components/confirmation/confirmation.component.mjs +3 -3
  21. package/esm2022/dialog/components/input/input.component.mjs +3 -3
  22. package/esm2022/dialog/components/message/message.component.mjs +3 -3
  23. package/esm2022/dialog/dialog.module.mjs +4 -4
  24. package/esm2022/lib/ngx-lib.module.mjs +4 -4
  25. package/esm2022/lib/services/app-path-config.service.mjs +3 -3
  26. package/esm2022/msgraph/msgraph.module.mjs +4 -4
  27. package/esm2022/quill/components/editor/editor.component.mjs +3 -3
  28. package/esm2022/quill/components/raw/raw.component.mjs +3 -3
  29. package/esm2022/quill/mention/components/editor/editor.component.mjs +3 -3
  30. package/esm2022/quill/mention/quill-mention.module.mjs +4 -4
  31. package/esm2022/quill/quill.module.mjs +4 -4
  32. package/esm2022/sharepoint/components/user-photo/user-photo.component.mjs +3 -3
  33. package/esm2022/sharepoint/pipes/user-photo-url.pipe.mjs +3 -3
  34. package/esm2022/sharepoint/services/sharepoint.service.mjs +3 -3
  35. package/esm2022/sharepoint/sharepoint.module.mjs +4 -4
  36. package/esm2022/table/components/table/table.component.mjs +99 -7
  37. package/esm2022/table/model/table-column.mjs +2 -0
  38. package/esm2022/table/public_api.mjs +3 -1
  39. package/esm2022/table/table.module.mjs +67 -0
  40. package/esm2022/upload/components/upload/upload.component.mjs +3 -3
  41. package/esm2022/upload/components/upload-dialog/upload-dialog.component.mjs +3 -3
  42. package/esm2022/upload/services/upload.service.mjs +3 -3
  43. package/esm2022/upload/upload.module.mjs +4 -4
  44. package/esm2022/url-utilities/pipes/safe-resource-url.pipe.mjs +3 -3
  45. package/esm2022/url-utilities/pipes/safe-url.pipe.mjs +3 -3
  46. package/esm2022/url-utilities/pipes/uri-scheme.pipe.mjs +3 -3
  47. package/esm2022/url-utilities/url-utilities.module.mjs +4 -4
  48. package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs +10 -10
  49. package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs +7 -7
  50. package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs +7 -7
  51. package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs +13 -13
  52. package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs +7 -7
  53. package/fesm2022/cleavelandprice-ngx-lib-authentication.mjs +4 -4
  54. package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs +19 -19
  55. package/fesm2022/cleavelandprice-ngx-lib-msgraph.mjs +4 -4
  56. package/fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs +7 -7
  57. package/fesm2022/cleavelandprice-ngx-lib-quill.mjs +10 -10
  58. package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs +13 -13
  59. package/fesm2022/cleavelandprice-ngx-lib-table.mjs +159 -6
  60. package/fesm2022/cleavelandprice-ngx-lib-table.mjs.map +1 -1
  61. package/fesm2022/cleavelandprice-ngx-lib-upload.mjs +13 -13
  62. package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs +13 -13
  63. package/fesm2022/cleavelandprice-ngx-lib.mjs +7 -7
  64. package/package.json +10 -10
  65. package/quill/mention/components/editor/editor.component.d.ts +4 -4
  66. package/sharepoint/components/user-photo/user-photo.component.d.ts +4 -4
  67. package/table/components/table/table.component.d.ts +32 -1
  68. package/table/model/table-column.d.ts +36 -0
  69. package/table/public_api.d.ts +2 -0
  70. package/table/table.module.d.ts +18 -0
@@ -1,18 +1,171 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
3
+ import * as i7 from '@angular/material/table';
4
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
5
+ import * as i9 from '@angular/material/paginator';
6
+ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
7
+ import * as i8 from '@angular/material/sort';
8
+ import { MatSort, MatSortModule } from '@angular/material/sort';
9
+ import * as i1 from '@angular/common';
10
+ import { CommonModule } from '@angular/common';
11
+ import * as i2 from '@angular/forms';
12
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
13
+ import * as i3 from '@angular/material/button';
14
+ import { MatButtonModule } from '@angular/material/button';
15
+ import * as i4 from '@angular/material/checkbox';
16
+ import { MatCheckboxModule } from '@angular/material/checkbox';
17
+ import * as i5 from '@angular/material/form-field';
18
+ import { MatFormFieldModule } from '@angular/material/form-field';
19
+ import * as i6 from '@angular/material/input';
20
+ import { MatInputModule } from '@angular/material/input';
21
+ import * as i10 from '@angular/material/tooltip';
22
+ import { MatTooltipModule } from '@angular/material/tooltip';
23
+ import * as i11 from '@angular/material/icon';
24
+ import { MatIconModule } from '@angular/material/icon';
3
25
 
4
26
  class TableComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TableComponent, selector: "lib-table", ngImport: i0, template: "<p>table works!</p>\n", styles: [""] }); }
27
+ get columnNames() {
28
+ return this.columns.map(c => c.field);
29
+ }
30
+ set matSort(ms) {
31
+ this.sort = ms;
32
+ this.dataSource.paginator = this.paginator;
33
+ this.dataSource.sort = this.sort;
34
+ }
35
+ set matPaginator(mp) {
36
+ this.paginator = mp;
37
+ this.dataSource.paginator = this.paginator;
38
+ this.dataSource.sort = this.sort;
39
+ }
40
+ constructor() {
41
+ this.title = '';
42
+ this.tableData = [];
43
+ this.columns = [];
44
+ this.showPaginator = true;
45
+ this.showSearch = true;
46
+ // @Input() pageSizeOptions: number[] = [10, 20, 100, 500, this.tableData.length];
47
+ this.maxTableHeight = '50em';
48
+ this.shrinkTableRowHeight = false;
49
+ this.paginatorSticky = false;
50
+ this.isMobile = false;
51
+ this.buttonClicked = new EventEmitter();
52
+ this.dataSource = new MatTableDataSource([]);
53
+ this.pageSizeOptions = [10, 20, 100, 500];
54
+ this.paginator = null;
55
+ this.sort = null;
56
+ }
57
+ ngOnInit() {
58
+ this.dataSource.data = this.tableData;
59
+ this.setTablePageSizeOptions();
60
+ }
61
+ searchFilterChange(event) {
62
+ const filterValue = event.target.value;
63
+ this.dataSource.filter = filterValue.trim().toLowerCase();
64
+ }
65
+ buttonClick(rowData, field) {
66
+ this.buttonClicked.emit({ rowData, field });
67
+ }
68
+ getNestedFieldValue(rowData, nestedFieldName) {
69
+ if (!nestedFieldName) {
70
+ return;
71
+ }
72
+ return rowData[nestedFieldName];
73
+ }
74
+ setTablePageSizeOptions(defaultPageIncrement = 50) {
75
+ this.pageSizeOptions = [];
76
+ for (let i = defaultPageIncrement; i < this.dataSource.data.length; i = i + (defaultPageIncrement * 2)) {
77
+ this.pageSizeOptions.push(i);
78
+ }
79
+ this.pageSizeOptions.push(this.dataSource.data.length);
80
+ }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: TableComponent, selector: "lib-table", inputs: { title: "title", tableData: "tableData", columns: "columns", showPaginator: "showPaginator", showSearch: "showSearch", maxTableHeight: "maxTableHeight", shrinkTableRowHeight: "shrinkTableRowHeight", paginatorSticky: "paginatorSticky" }, outputs: { buttonClicked: "buttonClicked" }, viewQueries: [{ propertyName: "matSort", first: true, predicate: MatSort, descendants: true }, { propertyName: "matPaginator", first: true, predicate: MatPaginator, descendants: true }], ngImport: i0, template: "<h3>{{title}}</h3>\r\n\r\n<mat-form-field appearance=\"outline\" *ngIf=\"showSearch\">\r\n <mat-label>Search</mat-label>\r\n <mat-icon matPrefix>search</mat-icon>\r\n <input type=\"text\" matInput (keyup)=\"searchFilterChange($event)\">\r\n</mat-form-field>\r\n\r\n<div class=\"table-container\" [ngStyle]=\"{'max-height': maxTableHeight}\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n <ng-container *ngFor=\"let column of columns\" [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-mobile]=\"column.hideOnMobile && isMobile\">\r\n <div>{{ column.fieldColumnTitle }}</div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let data\" [class.hide-mobile]=\"column.hideOnMobile && isMobile\">\r\n <span *ngIf=\"!column.isDate &&\r\n !column.isPercent &&\r\n !column.isNumber &&\r\n !column.isCheckbox &&\r\n !column.isButton &&\r\n !column.isEditable &&\r\n !column.nestedField &&\r\n !column.isHyperlink\"\r\n >\r\n {{ data[column.field] }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isHyperlink\">\r\n <a [href]=\"data[column.isHyperlink.linkField]\" target=\"_blank\">\r\n {{ data[column.field] }}\r\n </a>\r\n </span>\r\n\r\n <span *ngIf=\"column.isDate\">\r\n {{ data[column.field] | date:'shortDate' }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isNumber && !column.isNumber.needsRounded && !column.isNumber.percentage\">\r\n {{ data[column.field] | number:'.1-2' }}\r\n </span>\r\n <span *ngIf=\"column.isNumber && column.isNumber.needsRounded && !column.isNumber.percentage\">\r\n {{ data[column.field] | number:'0.0-0' }}\r\n </span>\r\n <span *ngIf=\"column.isNumber && column.isNumber.needsRounded && column.isNumber.percentage\">\r\n {{ data[column.field] | number:'0.0-0' }}%\r\n </span>\r\n <span *ngIf=\"column.isNumber && !column.isNumber.needsRounded && column.isNumber.percentage\">\r\n {{ data[column.field] | number:'.1-2' }}%\r\n </span>\r\n\r\n <span *ngIf=\"column.isCheckbox\">\r\n <mat-checkbox *ngIf=\"!column.isCheckbox['isDisabled']\"\r\n [(ngModel)]=\"data[column.field]\">\r\n </mat-checkbox>\r\n\r\n <mat-checkbox *ngIf=\"column.isCheckbox['isDisabled']\"\r\n [(ngModel)]=\"data[column.field]\"\r\n disabled>\r\n </mat-checkbox>\r\n </span>\r\n\r\n <span *ngIf=\"column.nestedField\">\r\n {{ getNestedFieldValue(data[column.field], column.nestedField) }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isButton\">\r\n <button mat-icon-button *ngIf=\"column.isButton.isIcon && !column.isButton.isDisabled\"\r\n [matTooltip]=\"column.isButton.isIcon.toolTip\"\r\n (click)=\"buttonClick(data, column.field)\">\r\n <mat-icon>{{column.isButton.isIcon.iconName}}</mat-icon>\r\n </button>\r\n\r\n <button mat-icon-button *ngIf=\"column.isButton.isIcon && column.isButton.isDisabled\" [matTooltip]=\"column.isButton.isIcon.toolTip\" disabled>\r\n <mat-icon>{{column.isButton.isIcon.iconName}}</mat-icon>\r\n </button>\r\n\r\n <button mat-raised-button *ngIf=\"column.isButton && column.isButton.isDisabled && !column.isButton.isIcon && !column.isButton.isCheckbox\" disabled>\r\n {{column.isButton.text}}\r\n </button>\r\n\r\n <button mat-raised-button color=\"primary\" *ngIf=\"column.isButton && !column.isButton.isDisabled && !column.isButton.isIcon && !column.isButton.isCheckbox\"\r\n [ngClass]=\"{ 'button-extra-padding': column.isButton.extraPadding }\"\r\n (click)=\"buttonClick(data, column.field)\">\r\n {{column.isButton.text}}\r\n </button>\r\n\r\n <mat-checkbox *ngIf=\"column.isButton.isCheckbox\" [matTooltip]=\"column.isButton.isCheckbox.toolTip\"\r\n [(ngModel)]=\"data[column.field]\" (click)=\"buttonClick(data, column.field)\">\r\n </mat-checkbox>\r\n </span>\r\n\r\n <span *ngIf=\"column.isEditable\">\r\n <textarea *ngIf=\"column.isEditable && column.isEditable.type === 'textarea'\" [rows]=\"3\" [(ngModel)]=\"data[column.field]\" [disabled]=\"column.isEditable.disable !== undefined && column.isEditable.disable\"></textarea>\r\n <input *ngIf=\"column.isEditable && column.isEditable.type === 'input'\" [(ngModel)]=\"data[column.field]\" style=\"width: 55%;\" [disabled]=\"column.isEditable.disable !== undefined && column.isEditable.disable\" [type]=\"column.isEditable.isNumber ? 'number' : 'text'\">\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columnNames; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: columnNames;\" class=\"table-row\" [ngClass]=\"{'shrink-table-row': shrinkTableRowHeight}\"></tr>\r\n <tr mat-row *matNoDataRow>\r\n <td class=\"mat-cell\" colspan=\"9999\">\r\n No records exist.\r\n </td>\r\n </tr>\r\n </table>\r\n <mat-paginator *ngIf=\"showPaginator\" [ngClass]=\"{ 'paginator-sticky': paginatorSticky }\" [pageSizeOptions]=\"pageSizeOptions\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n", styles: [".mat-form-field{width:100%!important}.table-container{display:grid;grid-template-columns:1fr;max-height:50em;overflow:auto;margin:1em .5em .5em;text-align:center!important}.table-container .table{width:100%}:host ::ng-deep .mat-sort-header-container{display:flex;justify-content:center}td,th{text-align:center!important}.shrink-table-row{height:.1em!important;min-height:.1em!important}.paginator-sticky{bottom:0;position:sticky;z-index:10}.button-extra-padding{padding-top:1.75em;padding-bottom:1.75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i7.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i7.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i7.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i7.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i7.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i7.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i7.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i7.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i7.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i7.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i7.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "directive", type: i8.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i8.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i9.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] }); }
7
83
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TableComponent, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TableComponent, decorators: [{
9
85
  type: Component,
10
- args: [{ selector: 'lib-table', template: "<p>table works!</p>\n" }]
86
+ args: [{ selector: 'lib-table', template: "<h3>{{title}}</h3>\r\n\r\n<mat-form-field appearance=\"outline\" *ngIf=\"showSearch\">\r\n <mat-label>Search</mat-label>\r\n <mat-icon matPrefix>search</mat-icon>\r\n <input type=\"text\" matInput (keyup)=\"searchFilterChange($event)\">\r\n</mat-form-field>\r\n\r\n<div class=\"table-container\" [ngStyle]=\"{'max-height': maxTableHeight}\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n <ng-container *ngFor=\"let column of columns\" [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-mobile]=\"column.hideOnMobile && isMobile\">\r\n <div>{{ column.fieldColumnTitle }}</div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let data\" [class.hide-mobile]=\"column.hideOnMobile && isMobile\">\r\n <span *ngIf=\"!column.isDate &&\r\n !column.isPercent &&\r\n !column.isNumber &&\r\n !column.isCheckbox &&\r\n !column.isButton &&\r\n !column.isEditable &&\r\n !column.nestedField &&\r\n !column.isHyperlink\"\r\n >\r\n {{ data[column.field] }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isHyperlink\">\r\n <a [href]=\"data[column.isHyperlink.linkField]\" target=\"_blank\">\r\n {{ data[column.field] }}\r\n </a>\r\n </span>\r\n\r\n <span *ngIf=\"column.isDate\">\r\n {{ data[column.field] | date:'shortDate' }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isNumber && !column.isNumber.needsRounded && !column.isNumber.percentage\">\r\n {{ data[column.field] | number:'.1-2' }}\r\n </span>\r\n <span *ngIf=\"column.isNumber && column.isNumber.needsRounded && !column.isNumber.percentage\">\r\n {{ data[column.field] | number:'0.0-0' }}\r\n </span>\r\n <span *ngIf=\"column.isNumber && column.isNumber.needsRounded && column.isNumber.percentage\">\r\n {{ data[column.field] | number:'0.0-0' }}%\r\n </span>\r\n <span *ngIf=\"column.isNumber && !column.isNumber.needsRounded && column.isNumber.percentage\">\r\n {{ data[column.field] | number:'.1-2' }}%\r\n </span>\r\n\r\n <span *ngIf=\"column.isCheckbox\">\r\n <mat-checkbox *ngIf=\"!column.isCheckbox['isDisabled']\"\r\n [(ngModel)]=\"data[column.field]\">\r\n </mat-checkbox>\r\n\r\n <mat-checkbox *ngIf=\"column.isCheckbox['isDisabled']\"\r\n [(ngModel)]=\"data[column.field]\"\r\n disabled>\r\n </mat-checkbox>\r\n </span>\r\n\r\n <span *ngIf=\"column.nestedField\">\r\n {{ getNestedFieldValue(data[column.field], column.nestedField) }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isButton\">\r\n <button mat-icon-button *ngIf=\"column.isButton.isIcon && !column.isButton.isDisabled\"\r\n [matTooltip]=\"column.isButton.isIcon.toolTip\"\r\n (click)=\"buttonClick(data, column.field)\">\r\n <mat-icon>{{column.isButton.isIcon.iconName}}</mat-icon>\r\n </button>\r\n\r\n <button mat-icon-button *ngIf=\"column.isButton.isIcon && column.isButton.isDisabled\" [matTooltip]=\"column.isButton.isIcon.toolTip\" disabled>\r\n <mat-icon>{{column.isButton.isIcon.iconName}}</mat-icon>\r\n </button>\r\n\r\n <button mat-raised-button *ngIf=\"column.isButton && column.isButton.isDisabled && !column.isButton.isIcon && !column.isButton.isCheckbox\" disabled>\r\n {{column.isButton.text}}\r\n </button>\r\n\r\n <button mat-raised-button color=\"primary\" *ngIf=\"column.isButton && !column.isButton.isDisabled && !column.isButton.isIcon && !column.isButton.isCheckbox\"\r\n [ngClass]=\"{ 'button-extra-padding': column.isButton.extraPadding }\"\r\n (click)=\"buttonClick(data, column.field)\">\r\n {{column.isButton.text}}\r\n </button>\r\n\r\n <mat-checkbox *ngIf=\"column.isButton.isCheckbox\" [matTooltip]=\"column.isButton.isCheckbox.toolTip\"\r\n [(ngModel)]=\"data[column.field]\" (click)=\"buttonClick(data, column.field)\">\r\n </mat-checkbox>\r\n </span>\r\n\r\n <span *ngIf=\"column.isEditable\">\r\n <textarea *ngIf=\"column.isEditable && column.isEditable.type === 'textarea'\" [rows]=\"3\" [(ngModel)]=\"data[column.field]\" [disabled]=\"column.isEditable.disable !== undefined && column.isEditable.disable\"></textarea>\r\n <input *ngIf=\"column.isEditable && column.isEditable.type === 'input'\" [(ngModel)]=\"data[column.field]\" style=\"width: 55%;\" [disabled]=\"column.isEditable.disable !== undefined && column.isEditable.disable\" [type]=\"column.isEditable.isNumber ? 'number' : 'text'\">\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columnNames; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: columnNames;\" class=\"table-row\" [ngClass]=\"{'shrink-table-row': shrinkTableRowHeight}\"></tr>\r\n <tr mat-row *matNoDataRow>\r\n <td class=\"mat-cell\" colspan=\"9999\">\r\n No records exist.\r\n </td>\r\n </tr>\r\n </table>\r\n <mat-paginator *ngIf=\"showPaginator\" [ngClass]=\"{ 'paginator-sticky': paginatorSticky }\" [pageSizeOptions]=\"pageSizeOptions\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n", styles: [".mat-form-field{width:100%!important}.table-container{display:grid;grid-template-columns:1fr;max-height:50em;overflow:auto;margin:1em .5em .5em;text-align:center!important}.table-container .table{width:100%}:host ::ng-deep .mat-sort-header-container{display:flex;justify-content:center}td,th{text-align:center!important}.shrink-table-row{height:.1em!important;min-height:.1em!important}.paginator-sticky{bottom:0;position:sticky;z-index:10}.button-extra-padding{padding-top:1.75em;padding-bottom:1.75em}\n"] }]
87
+ }], ctorParameters: () => [], propDecorators: { title: [{
88
+ type: Input
89
+ }], tableData: [{
90
+ type: Input
91
+ }], columns: [{
92
+ type: Input
93
+ }], showPaginator: [{
94
+ type: Input
95
+ }], showSearch: [{
96
+ type: Input
97
+ }], maxTableHeight: [{
98
+ type: Input
99
+ }], shrinkTableRowHeight: [{
100
+ type: Input
101
+ }], paginatorSticky: [{
102
+ type: Input
103
+ }], buttonClicked: [{
104
+ type: Output
105
+ }], matSort: [{
106
+ type: ViewChild,
107
+ args: [MatSort]
108
+ }], matPaginator: [{
109
+ type: ViewChild,
110
+ args: [MatPaginator]
111
+ }] } });
112
+
113
+ class TableModule {
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
115
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: TableModule, declarations: [TableComponent], imports: [CommonModule,
116
+ FormsModule,
117
+ ReactiveFormsModule,
118
+ MatButtonModule,
119
+ MatCheckboxModule,
120
+ MatFormFieldModule,
121
+ MatInputModule,
122
+ MatTableModule,
123
+ MatSortModule,
124
+ MatPaginatorModule,
125
+ MatTooltipModule,
126
+ MatIconModule], exports: [TableComponent] }); }
127
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TableModule, imports: [CommonModule,
128
+ FormsModule,
129
+ ReactiveFormsModule,
130
+ MatButtonModule,
131
+ MatCheckboxModule,
132
+ MatFormFieldModule,
133
+ MatInputModule,
134
+ MatTableModule,
135
+ MatSortModule,
136
+ MatPaginatorModule,
137
+ MatTooltipModule,
138
+ MatIconModule] }); }
139
+ }
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TableModule, decorators: [{
141
+ type: NgModule,
142
+ args: [{
143
+ declarations: [
144
+ TableComponent
145
+ ],
146
+ imports: [
147
+ CommonModule,
148
+ FormsModule,
149
+ ReactiveFormsModule,
150
+ MatButtonModule,
151
+ MatCheckboxModule,
152
+ MatFormFieldModule,
153
+ MatInputModule,
154
+ MatTableModule,
155
+ MatSortModule,
156
+ MatPaginatorModule,
157
+ MatTooltipModule,
158
+ MatIconModule
159
+ ],
160
+ exports: [
161
+ TableComponent
162
+ ]
163
+ }]
11
164
  }] });
12
165
 
13
166
  /**
14
167
  * Generated bundle index. Do not edit.
15
168
  */
16
169
 
17
- export { TableComponent };
170
+ export { TableComponent, TableModule };
18
171
  //# sourceMappingURL=cleavelandprice-ngx-lib-table.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cleavelandprice-ngx-lib-table.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/table/src/components/table/table.component.ts","../../../../projects/cleavelandprice/ngx-lib/table/src/components/table/table.component.html","../../../../projects/cleavelandprice/ngx-lib/table/src/cleavelandprice-ngx-lib-table.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.css']\n})\nexport class TableComponent {\n\n}\n","<p>table works!</p>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;MAOa,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,cAAc,iDCP3B,uBACA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FDMa,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,SAAS;+BACE,WAAW,EAAA,QAAA,EAAA,uBAAA,EAAA,CAAA;;;AEHvB;;AAEG;;;;"}
1
+ {"version":3,"file":"cleavelandprice-ngx-lib-table.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/table/src/components/table/table.component.ts","../../../../projects/cleavelandprice/ngx-lib/table/src/components/table/table.component.html","../../../../projects/cleavelandprice/ngx-lib/table/src/table.module.ts","../../../../projects/cleavelandprice/ngx-lib/table/src/cleavelandprice-ngx-lib-table.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\r\n\r\nimport { MatTableDataSource } from '@angular/material/table';\r\nimport { MatPaginator } from '@angular/material/paginator';\r\nimport { MatSort } from '@angular/material/sort';\r\n\r\nimport { TableColumn } from '../../model/table-column';\r\n\r\n@Component({\r\n selector: 'lib-table',\r\n templateUrl: './table.component.html',\r\n styleUrls: ['./table.component.css']\r\n})\r\nexport class TableComponent {\r\n @Input() title: string = '';\r\n @Input() tableData: any[] = [];\r\n @Input() columns: TableColumn[] = [];\r\n @Input() showPaginator: boolean = true;\r\n @Input() showSearch: boolean = true;\r\n // @Input() pageSizeOptions: number[] = [10, 20, 100, 500, this.tableData.length];\r\n\r\n @Input() maxTableHeight: string = '50em';\r\n @Input() shrinkTableRowHeight: boolean = false;\r\n @Input() paginatorSticky: boolean = false;\r\n\r\n isMobile = false;\r\n\r\n @Output() buttonClicked = new EventEmitter<{ rowData: any, field: string }>();\r\n\r\n dataSource = new MatTableDataSource<any>([]);\r\n pageSizeOptions: number[] = [10, 20, 100, 500];\r\n\r\n get columnNames(): string[] {\r\n return this.columns.map(c => c.field);\r\n }\r\n\r\n private paginator: MatPaginator | null = null;\r\n private sort: MatSort | null = null;\r\n\r\n @ViewChild(MatSort) set matSort(ms: MatSort) {\r\n this.sort = ms;\r\n this.dataSource.paginator = this.paginator;\r\n this.dataSource.sort = this.sort;\r\n }\r\n @ViewChild(MatPaginator) set matPaginator(mp: MatPaginator) {\r\n this.paginator = mp;\r\n this.dataSource.paginator = this.paginator;\r\n this.dataSource.sort = this.sort;\r\n }\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {\r\n this.dataSource.data = this.tableData;\r\n this.setTablePageSizeOptions();\r\n }\r\n\r\n searchFilterChange(event: Event) {\r\n const filterValue = (event.target as HTMLInputElement).value;\r\n this.dataSource.filter = filterValue.trim().toLowerCase();\r\n }\r\n\r\n buttonClick(rowData: any, field: string) {\r\n this.buttonClicked.emit({ rowData, field });\r\n }\r\n\r\n getNestedFieldValue(rowData: any, nestedFieldName: string | undefined) {\r\n if (!nestedFieldName) { return; }\r\n\r\n return rowData[nestedFieldName];\r\n }\r\n\r\n private setTablePageSizeOptions(defaultPageIncrement: number = 50) {\r\n this.pageSizeOptions = [];\r\n\r\n for (let i = defaultPageIncrement; i < this.dataSource.data.length; i = i + (defaultPageIncrement * 2)) {\r\n this.pageSizeOptions.push(i);\r\n }\r\n\r\n this.pageSizeOptions.push(this.dataSource.data.length);\r\n }\r\n}\r\n","<h3>{{title}}</h3>\r\n\r\n<mat-form-field appearance=\"outline\" *ngIf=\"showSearch\">\r\n <mat-label>Search</mat-label>\r\n <mat-icon matPrefix>search</mat-icon>\r\n <input type=\"text\" matInput (keyup)=\"searchFilterChange($event)\">\r\n</mat-form-field>\r\n\r\n<div class=\"table-container\" [ngStyle]=\"{'max-height': maxTableHeight}\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n <ng-container *ngFor=\"let column of columns\" [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-mobile]=\"column.hideOnMobile && isMobile\">\r\n <div>{{ column.fieldColumnTitle }}</div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let data\" [class.hide-mobile]=\"column.hideOnMobile && isMobile\">\r\n <span *ngIf=\"!column.isDate &&\r\n !column.isPercent &&\r\n !column.isNumber &&\r\n !column.isCheckbox &&\r\n !column.isButton &&\r\n !column.isEditable &&\r\n !column.nestedField &&\r\n !column.isHyperlink\"\r\n >\r\n {{ data[column.field] }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isHyperlink\">\r\n <a [href]=\"data[column.isHyperlink.linkField]\" target=\"_blank\">\r\n {{ data[column.field] }}\r\n </a>\r\n </span>\r\n\r\n <span *ngIf=\"column.isDate\">\r\n {{ data[column.field] | date:'shortDate' }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isNumber && !column.isNumber.needsRounded && !column.isNumber.percentage\">\r\n {{ data[column.field] | number:'.1-2' }}\r\n </span>\r\n <span *ngIf=\"column.isNumber && column.isNumber.needsRounded && !column.isNumber.percentage\">\r\n {{ data[column.field] | number:'0.0-0' }}\r\n </span>\r\n <span *ngIf=\"column.isNumber && column.isNumber.needsRounded && column.isNumber.percentage\">\r\n {{ data[column.field] | number:'0.0-0' }}%\r\n </span>\r\n <span *ngIf=\"column.isNumber && !column.isNumber.needsRounded && column.isNumber.percentage\">\r\n {{ data[column.field] | number:'.1-2' }}%\r\n </span>\r\n\r\n <span *ngIf=\"column.isCheckbox\">\r\n <mat-checkbox *ngIf=\"!column.isCheckbox['isDisabled']\"\r\n [(ngModel)]=\"data[column.field]\">\r\n </mat-checkbox>\r\n\r\n <mat-checkbox *ngIf=\"column.isCheckbox['isDisabled']\"\r\n [(ngModel)]=\"data[column.field]\"\r\n disabled>\r\n </mat-checkbox>\r\n </span>\r\n\r\n <span *ngIf=\"column.nestedField\">\r\n {{ getNestedFieldValue(data[column.field], column.nestedField) }}\r\n </span>\r\n\r\n <span *ngIf=\"column.isButton\">\r\n <button mat-icon-button *ngIf=\"column.isButton.isIcon && !column.isButton.isDisabled\"\r\n [matTooltip]=\"column.isButton.isIcon.toolTip\"\r\n (click)=\"buttonClick(data, column.field)\">\r\n <mat-icon>{{column.isButton.isIcon.iconName}}</mat-icon>\r\n </button>\r\n\r\n <button mat-icon-button *ngIf=\"column.isButton.isIcon && column.isButton.isDisabled\" [matTooltip]=\"column.isButton.isIcon.toolTip\" disabled>\r\n <mat-icon>{{column.isButton.isIcon.iconName}}</mat-icon>\r\n </button>\r\n\r\n <button mat-raised-button *ngIf=\"column.isButton && column.isButton.isDisabled && !column.isButton.isIcon && !column.isButton.isCheckbox\" disabled>\r\n {{column.isButton.text}}\r\n </button>\r\n\r\n <button mat-raised-button color=\"primary\" *ngIf=\"column.isButton && !column.isButton.isDisabled && !column.isButton.isIcon && !column.isButton.isCheckbox\"\r\n [ngClass]=\"{ 'button-extra-padding': column.isButton.extraPadding }\"\r\n (click)=\"buttonClick(data, column.field)\">\r\n {{column.isButton.text}}\r\n </button>\r\n\r\n <mat-checkbox *ngIf=\"column.isButton.isCheckbox\" [matTooltip]=\"column.isButton.isCheckbox.toolTip\"\r\n [(ngModel)]=\"data[column.field]\" (click)=\"buttonClick(data, column.field)\">\r\n </mat-checkbox>\r\n </span>\r\n\r\n <span *ngIf=\"column.isEditable\">\r\n <textarea *ngIf=\"column.isEditable && column.isEditable.type === 'textarea'\" [rows]=\"3\" [(ngModel)]=\"data[column.field]\" [disabled]=\"column.isEditable.disable !== undefined && column.isEditable.disable\"></textarea>\r\n <input *ngIf=\"column.isEditable && column.isEditable.type === 'input'\" [(ngModel)]=\"data[column.field]\" style=\"width: 55%;\" [disabled]=\"column.isEditable.disable !== undefined && column.isEditable.disable\" [type]=\"column.isEditable.isNumber ? 'number' : 'text'\">\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columnNames; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: columnNames;\" class=\"table-row\" [ngClass]=\"{'shrink-table-row': shrinkTableRowHeight}\"></tr>\r\n <tr mat-row *matNoDataRow>\r\n <td class=\"mat-cell\" colspan=\"9999\">\r\n No records exist.\r\n </td>\r\n </tr>\r\n </table>\r\n <mat-paginator *ngIf=\"showPaginator\" [ngClass]=\"{ 'paginator-sticky': paginatorSticky }\" [pageSizeOptions]=\"pageSizeOptions\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatTableModule } from '@angular/material/table';\r\nimport { MatSortModule } from '@angular/material/sort';\r\nimport { MatPaginatorModule } from '@angular/material/paginator';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\nimport { TableComponent } from './components/table/table.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n TableComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n\r\n MatButtonModule,\r\n MatCheckboxModule,\r\n MatFormFieldModule,\r\n MatInputModule,\r\n MatTableModule,\r\n MatSortModule,\r\n MatPaginatorModule,\r\n MatTooltipModule,\r\n MatIconModule\r\n ],\r\n exports: [\r\n TableComponent\r\n ]\r\n})\r\nexport class TableModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAaa,cAAc,CA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AA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBAEnB,eAAe;wBACf,iBAAiB;wBACjB,kBAAkB;wBAClB,cAAc;wBACd,cAAc;wBACd,aAAa;wBACb,kBAAkB;wBAClB,gBAAgB;wBAChB,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;AACf,qBAAA;AACF,iBAAA,CAAA;;;ACtCD;;AAEG;;;;"}
@@ -102,10 +102,10 @@ class UploadService {
102
102
  getUploadInfo(request) {
103
103
  return this.http.post(`${this.config.apiUrl}${this.config.databaseEndpoint}/info`, request);
104
104
  }
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
106
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadService, providedIn: 'root' }); }
105
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
106
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadService, providedIn: 'root' }); }
107
107
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadService, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadService, decorators: [{
109
109
  type: Injectable,
110
110
  args: [{
111
111
  providedIn: 'root'
@@ -179,10 +179,10 @@ class UploadDialogComponent {
179
179
  this.uploading = false;
180
180
  });
181
181
  }
182
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
183
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: UploadDialogComponent, selector: "ng-component", viewQueries: [{ propertyName: "file", first: true, predicate: ["file"], descendants: true, static: true }], ngImport: i0, template: "<input type=\"file\" #file style=\"display: none\" (change)=\"onFilesAdded()\" multiple />\n\n<div mat-dialog-title id=\"title\">\n <div>{{ uploadService.config.uploadDialogTitle }}</div>\n <button [disabled]=\"uploading || uploadSuccessful\" mat-raised-button color=\"primary\" class=\"add-files-btn\" (click)=\"addFiles()\">\n {{ uploadService.config.uploadDialogAddFilesButtonText }}\n </button>\n</div>\n\n@if (existingFileConflict) {\n <div id=\"conflict\">\n {{ existingFileConflict }} already exists on the server and cannot be overwritten\n </div>\n}\n\n<mat-dialog-content>\n <mat-list>\n @for (file of files; track file) {\n <mat-list-item>\n <h4 mat-line>{{file.name}}</h4>\n @if (progress) {\n <mat-progress-bar mode=\"determinate\" [value]=\"progress[file.name].progress | async\"/>\n }\n </mat-list-item>\n }\n </mat-list>\n</mat-dialog-content>\n\n<mat-dialog-actions id=\"actions\">\n @if (showCancelButton) {\n <button mat-button mat-dialog-close>{{ uploadService.config.uploadDialogCancelButtonText }}</button>\n }\n @if (files.size > 0) {\n <button mat-raised-button color=\"primary\" [disabled]=\"!canBeClosed\" (click)=\"closeDialog()\">{{ primaryButtonText }}</button>\n }\n</mat-dialog-actions>\n", styles: ["#title{display:flex;justify-content:space-between}#actions{display:flex;justify-content:flex-end}#conflict{font-size:.8em;color:red;margin-top:.5em}\n"], dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i4.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] }); }
182
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
183
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.0", type: UploadDialogComponent, selector: "ng-component", viewQueries: [{ propertyName: "file", first: true, predicate: ["file"], descendants: true, static: true }], ngImport: i0, template: "<input type=\"file\" #file style=\"display: none\" (change)=\"onFilesAdded()\" multiple />\n\n<div mat-dialog-title id=\"title\">\n <div>{{ uploadService.config.uploadDialogTitle }}</div>\n <button [disabled]=\"uploading || uploadSuccessful\" mat-raised-button color=\"primary\" class=\"add-files-btn\" (click)=\"addFiles()\">\n {{ uploadService.config.uploadDialogAddFilesButtonText }}\n </button>\n</div>\n\n@if (existingFileConflict) {\n <div id=\"conflict\">\n {{ existingFileConflict }} already exists on the server and cannot be overwritten\n </div>\n}\n\n<mat-dialog-content>\n <mat-list>\n @for (file of files; track file) {\n <mat-list-item>\n <h4 mat-line>{{file.name}}</h4>\n @if (progress) {\n <mat-progress-bar mode=\"determinate\" [value]=\"progress[file.name].progress | async\"/>\n }\n </mat-list-item>\n }\n </mat-list>\n</mat-dialog-content>\n\n<mat-dialog-actions id=\"actions\">\n @if (showCancelButton) {\n <button mat-button mat-dialog-close>{{ uploadService.config.uploadDialogCancelButtonText }}</button>\n }\n @if (files.size > 0) {\n <button mat-raised-button color=\"primary\" [disabled]=\"!canBeClosed\" (click)=\"closeDialog()\">{{ primaryButtonText }}</button>\n }\n</mat-dialog-actions>\n", styles: ["#title{display:flex;justify-content:space-between}#actions{display:flex;justify-content:flex-end}#conflict{font-size:.8em;color:red;margin-top:.5em}\n"], dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i4.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] }); }
184
184
  }
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadDialogComponent, decorators: [{
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadDialogComponent, decorators: [{
186
186
  type: Component,
187
187
  args: [{ template: "<input type=\"file\" #file style=\"display: none\" (change)=\"onFilesAdded()\" multiple />\n\n<div mat-dialog-title id=\"title\">\n <div>{{ uploadService.config.uploadDialogTitle }}</div>\n <button [disabled]=\"uploading || uploadSuccessful\" mat-raised-button color=\"primary\" class=\"add-files-btn\" (click)=\"addFiles()\">\n {{ uploadService.config.uploadDialogAddFilesButtonText }}\n </button>\n</div>\n\n@if (existingFileConflict) {\n <div id=\"conflict\">\n {{ existingFileConflict }} already exists on the server and cannot be overwritten\n </div>\n}\n\n<mat-dialog-content>\n <mat-list>\n @for (file of files; track file) {\n <mat-list-item>\n <h4 mat-line>{{file.name}}</h4>\n @if (progress) {\n <mat-progress-bar mode=\"determinate\" [value]=\"progress[file.name].progress | async\"/>\n }\n </mat-list-item>\n }\n </mat-list>\n</mat-dialog-content>\n\n<mat-dialog-actions id=\"actions\">\n @if (showCancelButton) {\n <button mat-button mat-dialog-close>{{ uploadService.config.uploadDialogCancelButtonText }}</button>\n }\n @if (files.size > 0) {\n <button mat-raised-button color=\"primary\" [disabled]=\"!canBeClosed\" (click)=\"closeDialog()\">{{ primaryButtonText }}</button>\n }\n</mat-dialog-actions>\n", styles: ["#title{display:flex;justify-content:space-between}#actions{display:flex;justify-content:flex-end}#conflict{font-size:.8em;color:red;margin-top:.5em}\n"] }]
188
188
  }], propDecorators: { file: [{
@@ -207,10 +207,10 @@ class UploadComponent {
207
207
  this.dialog.open(UploadDialogComponent, { width: '50%' })
208
208
  .afterClosed().subscribe(() => this.dialogClosed.emit());
209
209
  }
210
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
211
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: UploadComponent, selector: "cp-upload", outputs: { dialogClosed: "dialogClosed" }, ngImport: i0, template: '<button mat-raised-button (click)="openUploadDialog()">{{ uploadButtonText }}</button>', isInline: true, dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }] }); }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
211
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: UploadComponent, selector: "cp-upload", outputs: { dialogClosed: "dialogClosed" }, ngImport: i0, template: '<button mat-raised-button (click)="openUploadDialog()">{{ uploadButtonText }}</button>', isInline: true, dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }] }); }
212
212
  }
213
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadComponent, decorators: [{
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadComponent, decorators: [{
214
214
  type: Component,
215
215
  args: [{
216
216
  selector: 'cp-upload',
@@ -235,21 +235,21 @@ class UploadModule {
235
235
  throw new Error('UploadModule is already loaded. Import it in the AppModule only');
236
236
  }
237
237
  }
238
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadModule, deps: [{ token: UploadModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
239
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: UploadModule, declarations: [UploadComponent,
238
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadModule, deps: [{ token: UploadModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
239
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UploadModule, declarations: [UploadComponent,
240
240
  UploadDialogComponent], imports: [CommonModule,
241
241
  MatButtonModule,
242
242
  MatDialogModule,
243
243
  MatListModule,
244
244
  MatProgressBarModule], exports: [UploadComponent,
245
245
  UploadDialogComponent] }); }
246
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadModule, imports: [CommonModule,
246
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadModule, imports: [CommonModule,
247
247
  MatButtonModule,
248
248
  MatDialogModule,
249
249
  MatListModule,
250
250
  MatProgressBarModule] }); }
251
251
  }
252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UploadModule, decorators: [{
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UploadModule, decorators: [{
253
253
  type: NgModule,
254
254
  args: [{
255
255
  declarations: [
@@ -10,10 +10,10 @@ class SafeResourceUrlPipe {
10
10
  transform(value) {
11
11
  return this.domSanitizer.bypassSecurityTrustResourceUrl(value);
12
12
  }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, name: "safeResourceUrl" }); }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeResourceUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: SafeResourceUrlPipe, name: "safeResourceUrl" }); }
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
17
17
  type: Pipe,
18
18
  args: [{
19
19
  name: 'safeResourceUrl'
@@ -27,10 +27,10 @@ class SafeUrlPipe {
27
27
  transform(value) {
28
28
  return this.domSanitizer.bypassSecurityTrustUrl(value);
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
31
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, name: "safeUrl" }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
31
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: SafeUrlPipe, name: "safeUrl" }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeUrlPipe, decorators: [{
34
34
  type: Pipe,
35
35
  args: [{
36
36
  name: 'safeUrl'
@@ -129,10 +129,10 @@ class UriSchemePipe {
129
129
  return `of${openMode}`; // default: open file as view/edit
130
130
  }
131
131
  }
132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UriSchemePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
133
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: UriSchemePipe, name: "uriScheme", pure: false }); }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UriSchemePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
133
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UriSchemePipe, name: "uriScheme", pure: false }); }
134
134
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UriSchemePipe, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UriSchemePipe, decorators: [{
136
136
  type: Pipe,
137
137
  args: [{
138
138
  name: 'uriScheme',
@@ -141,15 +141,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
141
141
  }] });
142
142
 
143
143
  class UrlUtilitiesModule {
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
145
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: UrlUtilitiesModule, declarations: [SafeResourceUrlPipe,
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
145
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, declarations: [SafeResourceUrlPipe,
146
146
  SafeUrlPipe,
147
147
  UriSchemePipe], imports: [CommonModule], exports: [SafeResourceUrlPipe,
148
148
  SafeUrlPipe,
149
149
  UriSchemePipe] }); }
150
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule] }); }
150
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule] }); }
151
151
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlUtilitiesModule, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, decorators: [{
153
153
  type: NgModule,
154
154
  args: [{
155
155
  declarations: [
@@ -54,10 +54,10 @@ class AppPathConfigService {
54
54
  getByAppFunction(name) {
55
55
  return this.http.get(`${this.#url}/function/${name}`);
56
56
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
58
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, providedIn: 'root' }); }
57
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AppPathConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
58
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AppPathConfigService, providedIn: 'root' }); }
59
59
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AppPathConfigService, decorators: [{
61
61
  type: Injectable,
62
62
  args: [{
63
63
  providedIn: 'root'
@@ -79,11 +79,11 @@ class NgxLibModule {
79
79
  throw new Error('NgxLibModule is already loaded. Import it in the AppModule only');
80
80
  }
81
81
  }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NgxLibModule, deps: [{ token: NgxLibModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
83
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: NgxLibModule }); }
84
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NgxLibModule }); }
82
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule, deps: [{ token: NgxLibModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
83
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule }); }
84
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule }); }
85
85
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NgxLibModule, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule, decorators: [{
87
87
  type: NgModule,
88
88
  args: [{
89
89
  declarations: [],
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "comment": "NGX-LIB primary entry point package.json",
3
3
  "name": "@cleavelandprice/ngx-lib",
4
- "version": "3.12.0",
5
- "description": "Angular 15+ library providing foundational functionality to Cleaveland-Price applications",
4
+ "version": "3.14.0",
5
+ "description": "Angular library providing foundational functionality to Cleaveland-Price applications",
6
6
  "peerDependencies": {
7
- "@angular/common": "^17.1.2",
8
- "@angular/core": "^17.1.2"
7
+ "@angular/common": "^17.3.0",
8
+ "@angular/core": "^17.3.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "tslib": "^2.3.0"
@@ -76,12 +76,6 @@
76
76
  "esm": "./esm2022/table/cleavelandprice-ngx-lib-table.mjs",
77
77
  "default": "./fesm2022/cleavelandprice-ngx-lib-table.mjs"
78
78
  },
79
- "./upload": {
80
- "types": "./upload/index.d.ts",
81
- "esm2022": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
82
- "esm": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
83
- "default": "./fesm2022/cleavelandprice-ngx-lib-upload.mjs"
84
- },
85
79
  "./url-utilities": {
86
80
  "types": "./url-utilities/index.d.ts",
87
81
  "esm2022": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
@@ -106,6 +100,12 @@
106
100
  "esm": "./esm2022/authentication/token/cleavelandprice-ngx-lib-authentication-token.mjs",
107
101
  "default": "./fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs"
108
102
  },
103
+ "./upload": {
104
+ "types": "./upload/index.d.ts",
105
+ "esm2022": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
106
+ "esm": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
107
+ "default": "./fesm2022/cleavelandprice-ngx-lib-upload.mjs"
108
+ },
109
109
  "./quill/mention": {
110
110
  "types": "./quill/mention/index.d.ts",
111
111
  "esm2022": "./esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs",
@@ -7,11 +7,11 @@ import * as i0 from "@angular/core";
7
7
  export declare class EditorComponent extends EditorComponentBase implements OnInit, ControlValueAccessor {
8
8
  #private;
9
9
  users: {
10
- (): import("@angular/core").InputSignal<User[] | undefined, User[] | undefined>;
11
- (initialValue: User[], opts?: import("@angular/core").InputOptionsWithoutTransform<User[]> | undefined): import("@angular/core").InputSignal<User[], User[]>;
10
+ (): import("@angular/core").InputSignal<User[] | undefined>;
11
+ (initialValue: User[], opts?: import("@angular/core").InputOptionsWithoutTransform<User[]> | undefined): import("@angular/core").InputSignal<User[]>;
12
12
  required: {
13
- <ReadT>(opts?: import("@angular/core").InputOptionsWithoutTransform<ReadT> | undefined): import("@angular/core").InputSignal<ReadT, ReadT>;
14
- <ReadT_1, WriteT>(opts: import("@angular/core").InputOptionsWithTransform<ReadT_1, WriteT>): import("@angular/core").InputSignal<ReadT_1, WriteT>;
13
+ <ReadT>(opts?: import("@angular/core").InputOptionsWithoutTransform<ReadT> | undefined): import("@angular/core").InputSignal<ReadT>;
14
+ <ReadT_1, WriteT>(opts: import("@angular/core").InputOptionsWithTransform<ReadT_1, WriteT>): import("@angular/core").InputSignalWithTransform<ReadT_1, WriteT>;
15
15
  };
16
16
  };
17
17
  _users: User[];
@@ -4,11 +4,11 @@ import { PhotoItem } from '../../model/photo-item';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class UserPhotoComponent implements OnInit {
6
6
  private activeDirectoryService;
7
- user: import("@angular/core").InputSignal<string | CleavelandPriceUser, string | CleavelandPriceUser>;
7
+ user: import("@angular/core").InputSignal<string | CleavelandPriceUser>;
8
8
  protected _user: CleavelandPriceUser;
9
- userPhotos: import("@angular/core").InputSignal<PhotoItem[] | undefined, PhotoItem[] | undefined>;
10
- size: import("@angular/core").InputSignal<string, string>;
11
- notRound: import("@angular/core").InputSignal<boolean, boolean>;
9
+ userPhotos: import("@angular/core").InputSignal<PhotoItem[] | undefined>;
10
+ size: import("@angular/core").InputSignal<string>;
11
+ notRound: import("@angular/core").InputSignal<boolean>;
12
12
  ngOnInit(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<UserPhotoComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<UserPhotoComponent, "user-photo", never, { "user": { "alias": "user"; "required": true; "isSignal": true; }; "userPhotos": { "alias": "userPhotos"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "notRound": { "alias": "notRound"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
@@ -1,5 +1,36 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { MatTableDataSource } from '@angular/material/table';
3
+ import { MatPaginator } from '@angular/material/paginator';
4
+ import { MatSort } from '@angular/material/sort';
5
+ import { TableColumn } from '../../model/table-column';
1
6
  import * as i0 from "@angular/core";
2
7
  export declare class TableComponent {
8
+ title: string;
9
+ tableData: any[];
10
+ columns: TableColumn[];
11
+ showPaginator: boolean;
12
+ showSearch: boolean;
13
+ maxTableHeight: string;
14
+ shrinkTableRowHeight: boolean;
15
+ paginatorSticky: boolean;
16
+ isMobile: boolean;
17
+ buttonClicked: EventEmitter<{
18
+ rowData: any;
19
+ field: string;
20
+ }>;
21
+ dataSource: MatTableDataSource<any, MatPaginator>;
22
+ pageSizeOptions: number[];
23
+ get columnNames(): string[];
24
+ private paginator;
25
+ private sort;
26
+ set matSort(ms: MatSort);
27
+ set matPaginator(mp: MatPaginator);
28
+ constructor();
29
+ ngOnInit(): void;
30
+ searchFilterChange(event: Event): void;
31
+ buttonClick(rowData: any, field: string): void;
32
+ getNestedFieldValue(rowData: any, nestedFieldName: string | undefined): any;
33
+ private setTablePageSizeOptions;
3
34
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "lib-table", never, {}, {}, never, never, false, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "lib-table", never, { "title": { "alias": "title"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "maxTableHeight": { "alias": "maxTableHeight"; "required": false; }; "shrinkTableRowHeight": { "alias": "shrinkTableRowHeight"; "required": false; }; "paginatorSticky": { "alias": "paginatorSticky"; "required": false; }; }, { "buttonClicked": "buttonClicked"; }, never, never, false, never>;
5
36
  }
@@ -0,0 +1,36 @@
1
+ export interface TableColumn {
2
+ field: string;
3
+ fieldColumnTitle: string;
4
+ isDate?: boolean;
5
+ isPercent?: boolean;
6
+ isNumber?: {
7
+ needsRounded: boolean;
8
+ percentage?: boolean;
9
+ };
10
+ isCheckbox?: {
11
+ isDisabled: boolean;
12
+ };
13
+ isButton?: {
14
+ isDisabled: boolean;
15
+ text?: string;
16
+ isIcon?: {
17
+ iconName: string;
18
+ toolTip: string;
19
+ };
20
+ isCheckbox?: {
21
+ toolTip: string;
22
+ multipleSelect: boolean;
23
+ };
24
+ extraPadding?: boolean;
25
+ };
26
+ isEditable?: {
27
+ type: string;
28
+ disable?: boolean;
29
+ isNumber?: boolean;
30
+ };
31
+ hideOnMobile?: boolean;
32
+ nestedField?: string;
33
+ isHyperlink?: {
34
+ linkField: string;
35
+ };
36
+ }