ngx-techlify-core 22.6.0 → 22.9.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.
@@ -1,9 +1,9 @@
1
- import { $ as ActionPopupComponent, A as MaterialModule, B as HttpCacheService, C as AuthenticationGuard, D as CustomIconModule, E as TechlifyIconModule, F as HttpService, G as LogLevel, H as ErrorHandlerService, I as TokenInterceptor, J as EnvironmentService, K as Logger, L as CredentialsService, M as FormConfigurationForFormComponent, N as FileDropperComponent, O as TechlifyIconComponent, P as HTTP_DYNAMIC_INTERCEPTORS, Q as SuccessSnackComponent, R as ApiPrefixInterceptor, S as User, T as SnackModule, U as ConfigService, V as ErrorHandlerInterceptor, W as TechlifyConfig, X as AlertService, Y as FormValidatorService, Z as ErrorSnackComponent, _ as FilterService, a as TimelineFilterModule, b as CurrentUserService, c as ExportExcelModule, d as ActionPopupModule, et as ActionPopup, f as TechlifyFormButtonComponent, g as TechlifyDeleteButtonComponent, h as Timeline, i as SearchableSelectorComponent, j as ReadMoreComponent, k as CustomIconComponent, l as ExportExcelButtonComponent, m as calculateTimeline, n as FormConfigurationForFormModule, o as ReadMoreModule, p as TimelineFilterComponent, q as DocumentViewerComponent, r as SearchableSelectorModule, s as FileDropperModule, t as SharedModule, u as DocumentViewerModule, v as RouteReusableStrategy, w as AppUpdateService, x as StorageService, y as AuthenticationService, z as CacheInterceptor } from "./ngx-techlify-core-shared.module-C0uAKgWi.mjs";
2
- import { a as RequestHelperService, c as TechlifyFormComponent, i as TechlifyListComponent, l as TechlifyService, n as TechlifyShowComponent, o as parseLocalDate, r as techlifyListContract, s as techlifyFormContract, t as techlifyShowContract } from "./ngx-techlify-core-base-model-DfODc3ll.mjs";
3
- import { a as UserClientsListComponent, c as UserFormComponent, d as LoginHistoryForUserComponent, f as AuditLogListComponent, i as UserSessionsComponent, l as UserService, m as AuditLogService, n as UserClientsListModule, o as UserClientEnableDisableButtonComponent, p as AuditLogListFilterComponent, r as UserClientEnableDisableButtonModule, s as UserTenantService, t as UserSessionsModule, u as UserTypeEnum } from "./ngx-techlify-core-user-sessions.module-gmNNGpCf.mjs";
4
- import { i as UserListPageConfig, n as MultiUserConfig, r as UserConfig, t as UserConfigService } from "./ngx-techlify-core-user-config.service-BTZUoFIT.mjs";
1
+ import { $ as ActionPopupComponent, A as MaterialModule, B as HttpCacheService, C as AuthenticationGuard, D as CustomIconModule, E as TechlifyIconModule, F as HttpService, G as LogLevel, H as ErrorHandlerService, I as TokenInterceptor, J as EnvironmentService, K as Logger, L as CredentialsService, M as FormConfigurationForFormComponent, N as FileDropperComponent, O as TechlifyIconComponent, P as HTTP_DYNAMIC_INTERCEPTORS, Q as SuccessSnackComponent, R as ApiPrefixInterceptor, S as User, T as SnackModule, U as ConfigService, V as ErrorHandlerInterceptor, W as TechlifyConfig, X as AlertService, Y as FormValidatorService, Z as ErrorSnackComponent, _ as FilterService, a as TimelineFilterModule, b as CurrentUserService, c as ExportExcelModule, d as ActionPopupModule, et as ActionPopup, f as TechlifyFormButtonComponent, g as TechlifyDeleteButtonComponent, h as Timeline, i as SearchableSelectorComponent, j as ReadMoreComponent, k as CustomIconComponent, l as ExportExcelButtonComponent, m as calculateTimeline, n as FormConfigurationForFormModule, o as ReadMoreModule, p as TimelineFilterComponent, q as DocumentViewerComponent, r as SearchableSelectorModule, s as FileDropperModule, t as SharedModule, u as DocumentViewerModule, v as RouteReusableStrategy, w as AppUpdateService, x as StorageService, y as AuthenticationService, z as CacheInterceptor } from "./ngx-techlify-core-shared.module-DX3JOTS_.mjs";
2
+ import { a as RequestHelperService, c as TechlifyFormComponent, i as TechlifyListComponent, l as TechlifyService, n as TechlifyShowComponent, o as parseLocalDate, r as techlifyListContract, s as techlifyFormContract, t as techlifyShowContract } from "./ngx-techlify-core-base-model-Dov5GFWY.mjs";
3
+ import { a as UserClientsListComponent, c as UserFormComponent, d as LoginHistoryForUserComponent, f as AuditLogListComponent, i as UserSessionsComponent, l as UserService, m as AuditLogService, n as UserClientsListModule, o as UserClientEnableDisableButtonComponent, p as AuditLogListFilterComponent, r as UserClientEnableDisableButtonModule, s as UserTenantService, t as UserSessionsModule, u as UserTypeEnum } from "./ngx-techlify-core-user-sessions.module-DNb36-7n.mjs";
4
+ import { i as UserListPageConfig, n as MultiUserConfig, r as UserConfig, t as UserConfigService } from "./ngx-techlify-core-user-config.service-pJHP4wxq.mjs";
5
5
  import * as i0 from "@angular/core";
6
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DestroyRef, Directive, EventEmitter, HostListener, Inject, Injectable, Input, NgModule, Optional, Output, Pipe, Self, SkipSelf, ViewChild, ViewEncapsulation, booleanAttribute, computed, effect, forwardRef, inject, input, numberAttribute, signal } from "@angular/core";
6
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DestroyRef, Directive, ElementRef, EventEmitter, HostListener, Inject, Injectable, Input, NgModule, Optional, Output, Pipe, Self, SkipSelf, ViewChild, ViewEncapsulation, booleanAttribute, computed, effect, forwardRef, inject, input, numberAttribute, signal, viewChild } from "@angular/core";
7
7
  import * as i1$2 from "@angular/material/dialog";
8
8
  import { MAT_DIALOG_DATA } from "@angular/material/dialog";
9
9
  import * as i3$1 from "@angular/material/button";
@@ -27,12 +27,14 @@ import * as i4$1 from "@angular/material/checkbox";
27
27
  import * as i6$2 from "@angular/material/menu";
28
28
  import { MatMenu, MatMenuItem, MatMenuModule, MatMenuTrigger } from "@angular/material/menu";
29
29
  import * as i8$3 from "@angular/material/table";
30
+ import { MatTableModule } from "@angular/material/table";
30
31
  import * as i19 from "@angular/material/card";
31
32
  import { MatCard, MatCardContent, MatCardTitle } from "@angular/material/card";
32
33
  import * as i3 from "@angular/forms";
33
- import { FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
34
+ import { FormControl, FormGroup, NG_VALUE_ACCESSOR, NgControl, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
34
35
  import { HttpClient, provideHttpClient, withInterceptorsFromDi, withXhr } from "@angular/common/http";
35
36
  import * as i8 from "@angular/material/tooltip";
37
+ import { MatTooltipModule } from "@angular/material/tooltip";
36
38
  import * as i8$2 from "@angular/material/form-field";
37
39
  import { MAT_FORM_FIELD, MatError, MatFormField, MatFormFieldControl, MatLabel } from "@angular/material/form-field";
38
40
  import * as i12$2 from "@angular/material/input";
@@ -41,6 +43,7 @@ import * as i13$1 from "@angular/material/datepicker";
41
43
  import { coerceBooleanProperty } from "@angular/cdk/coercion";
42
44
  import { COMMA, ENTER } from "@angular/cdk/keycodes";
43
45
  import * as i1$3 from "@angular/cdk/a11y";
46
+ import { FocusMonitor } from "@angular/cdk/a11y";
44
47
  import * as i5$1 from "@angular/material/autocomplete";
45
48
  import * as i7$1 from "@angular/material/chips";
46
49
  import * as i5 from "ngx-permissions";
@@ -50,6 +53,7 @@ import { MatProgressBarModule } from "@angular/material/progress-bar";
50
53
  import * as i9 from "@angular/material/progress-spinner";
51
54
  import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
52
55
  import * as i11 from "@angular/material/select";
56
+ import { MatSelect } from "@angular/material/select";
53
57
  import * as i12$1 from "@angular/material/divider";
54
58
  import * as i6$1 from "@angular/material/list";
55
59
  import * as i12 from "@angular/material/button-toggle";
@@ -61,6 +65,7 @@ import * as i13 from "ngx-editor";
61
65
  import { Editor, NgxEditorModule } from "ngx-editor";
62
66
  import * as jsondiffpatch from "jsondiffpatch";
63
67
  import * as i6 from "ngx-spinner";
68
+ import { _getEventTarget } from "@angular/cdk/platform";
64
69
  import * as i4 from "@angular/cdk/overlay";
65
70
  import { CdkConnectedOverlay, CdkOverlayOrigin } from "@angular/cdk/overlay";
66
71
  import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
@@ -9608,7 +9613,7 @@ var AuditLogForModelComponent = class AuditLogForModelComponent {
9608
9613
  },
9609
9614
  ngImport: i0,
9610
9615
  template: "<ng-container *ngIf=\"isIconView\">\n <app-techlify-icon *ngIf=\"logView==='recent'\" name=\"history\" matTooltip=\"Recent Audit Log\"\n (click)=\"$event.stopPropagation();getLogView()\" class=\"clickable\"></app-techlify-icon>\n <app-techlify-icon *ngIf=\"logView==='all'\" name=\"history\" matTooltip=\"All Audit Logs\"\n (click)=\"$event.stopPropagation();getLogsView()\" class=\"clickable\"></app-techlify-icon>\n</ng-container>\n\n\n<ng-container *ngIf=\"!isIconView\">\n <button type=\"button\" *ngIf=\"logView==='recent'\" mat-icon-button matTooltip=\"Recent Audit Log\"\n (click)=\"$event.stopPropagation();getLogView()\">\n <mat-icon>history</mat-icon>\n </button>\n\n <button type=\"button\" *ngIf=\"logView==='all'\" mat-icon-button matTooltip=\"All Audit Logs\"\n (click)=\"$event.stopPropagation();getLogsView()\">\n <mat-icon>history</mat-icon>\n </button>\n</ng-container>",
9611
- styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}\n"],
9616
+ styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}.list-page-main{min-width:0}.list-page-content{max-width:100%}.list-page-filter-toggle{display:none!important}@media(max-width:991.98px){.list-page.list-page{flex-direction:column!important}.list-page>.list-page-main{display:contents!important}.list-page-header{order:-2;flex-wrap:wrap;row-gap:.5rem}.list-page>.list-page-side{order:-1;width:100%!important;min-width:0!important;margin:.5rem 0 0!important}.list-page>.list-page-side:not(.is-open){display:none!important}.list-page-header-filters{flex:1 1 100%;min-width:0}.list-page-header-filters:not(.is-open){display:none!important}.list-page-content{min-width:0;overflow-x:auto}.list-page-filter-toggle{display:inline-flex!important}.list-page-filter-toggle.is-active{color:var(--bs-primary, #0d6efd)}.list-page .list-page-filters{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));column-gap:.5rem!important;align-items:start}.list-page .list-page-filters>*{width:auto!important;min-width:0}.list-page .list-page-filters .mat-mdc-form-field{width:100%!important}.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell,.list-page-content .mat-mdc-cell:not(.list-page-wrap){white-space:nowrap}.list-page-content .mat-mdc-cell.list-page-wrap{min-width:200px}.list-page-content .mat-mdc-cell,.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell{padding-inline:8px}}@media(max-width:575.98px){.list-page .mat-mdc-card{padding:12px}.list-page .list-page-content.mat-mdc-card{padding:0}.list-page-stats{flex:1 1 100%}.list-page-stats>*{flex:1 1 0;text-align:center}}\n"],
9612
9617
  dependencies: [
9613
9618
  {
9614
9619
  kind: "directive",
@@ -9678,7 +9683,7 @@ i0.ɵɵngDeclareClassMetadata({
9678
9683
  changeDetection: ChangeDetectionStrategy.Eager,
9679
9684
  standalone: false,
9680
9685
  template: "<ng-container *ngIf=\"isIconView\">\n <app-techlify-icon *ngIf=\"logView==='recent'\" name=\"history\" matTooltip=\"Recent Audit Log\"\n (click)=\"$event.stopPropagation();getLogView()\" class=\"clickable\"></app-techlify-icon>\n <app-techlify-icon *ngIf=\"logView==='all'\" name=\"history\" matTooltip=\"All Audit Logs\"\n (click)=\"$event.stopPropagation();getLogsView()\" class=\"clickable\"></app-techlify-icon>\n</ng-container>\n\n\n<ng-container *ngIf=\"!isIconView\">\n <button type=\"button\" *ngIf=\"logView==='recent'\" mat-icon-button matTooltip=\"Recent Audit Log\"\n (click)=\"$event.stopPropagation();getLogView()\">\n <mat-icon>history</mat-icon>\n </button>\n\n <button type=\"button\" *ngIf=\"logView==='all'\" mat-icon-button matTooltip=\"All Audit Logs\"\n (click)=\"$event.stopPropagation();getLogsView()\">\n <mat-icon>history</mat-icon>\n </button>\n</ng-container>",
9681
- styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}\n"]
9686
+ styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}.list-page-main{min-width:0}.list-page-content{max-width:100%}.list-page-filter-toggle{display:none!important}@media(max-width:991.98px){.list-page.list-page{flex-direction:column!important}.list-page>.list-page-main{display:contents!important}.list-page-header{order:-2;flex-wrap:wrap;row-gap:.5rem}.list-page>.list-page-side{order:-1;width:100%!important;min-width:0!important;margin:.5rem 0 0!important}.list-page>.list-page-side:not(.is-open){display:none!important}.list-page-header-filters{flex:1 1 100%;min-width:0}.list-page-header-filters:not(.is-open){display:none!important}.list-page-content{min-width:0;overflow-x:auto}.list-page-filter-toggle{display:inline-flex!important}.list-page-filter-toggle.is-active{color:var(--bs-primary, #0d6efd)}.list-page .list-page-filters{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));column-gap:.5rem!important;align-items:start}.list-page .list-page-filters>*{width:auto!important;min-width:0}.list-page .list-page-filters .mat-mdc-form-field{width:100%!important}.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell,.list-page-content .mat-mdc-cell:not(.list-page-wrap){white-space:nowrap}.list-page-content .mat-mdc-cell.list-page-wrap{min-width:200px}.list-page-content .mat-mdc-cell,.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell{padding-inline:8px}}@media(max-width:575.98px){.list-page .mat-mdc-card{padding:12px}.list-page .list-page-content.mat-mdc-card{padding:0}.list-page-stats{flex:1 1 100%}.list-page-stats>*{flex:1 1 0;text-align:center}}\n"]
9682
9687
  }]
9683
9688
  }],
9684
9689
  ctorParameters: () => [{ type: i1$2.MatDialog }],
@@ -22928,6 +22933,294 @@ i0.ɵɵngDeclareClassMetadata({
22928
22933
  }]
22929
22934
  }
22930
22935
  });
22936
+ const DEFAULT_PERIOD_OPTIONS = [
22937
+ {
22938
+ value: "week",
22939
+ label: "Week"
22940
+ },
22941
+ {
22942
+ value: "month",
22943
+ label: "Month"
22944
+ },
22945
+ {
22946
+ value: "quarter",
22947
+ label: "Quarter"
22948
+ },
22949
+ {
22950
+ value: "half_year",
22951
+ label: "Half-Year"
22952
+ },
22953
+ {
22954
+ value: "year",
22955
+ label: "Year"
22956
+ }
22957
+ ];
22958
+ var TechlifyPeriodSelectorComponent = class TechlifyPeriodSelectorComponent {
22959
+ static {
22960
+ this.nextId = 0;
22961
+ }
22962
+ get value() {
22963
+ return this.selected();
22964
+ }
22965
+ get placeholder() {
22966
+ return this.placeholderInput();
22967
+ }
22968
+ get required() {
22969
+ return this.requiredInput();
22970
+ }
22971
+ get disabled() {
22972
+ return this.isDisabled();
22973
+ }
22974
+ get focused() {
22975
+ return this.isFocused();
22976
+ }
22977
+ get empty() {
22978
+ const selected = this.selected();
22979
+ return selected === null || selected === void 0 || selected === "";
22980
+ }
22981
+ get shouldLabelFloat() {
22982
+ return this.focused || !this.empty;
22983
+ }
22984
+ get errorState() {
22985
+ return !!(this.ngControl && this.ngControl.invalid && (this.ngControl.touched || this.ngControl.dirty));
22986
+ }
22987
+ constructor() {
22988
+ this.options = input(DEFAULT_PERIOD_OPTIONS, ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
22989
+ this.placeholderInput = input("", {
22990
+ ...ngDevMode ? { debugName: "placeholderInput" } : /* istanbul ignore next */ {},
22991
+ alias: "placeholder"
22992
+ });
22993
+ this.requiredInput = input(false, {
22994
+ ...ngDevMode ? { debugName: "requiredInput" } : /* istanbul ignore next */ {},
22995
+ alias: "required",
22996
+ transform: booleanAttribute
22997
+ });
22998
+ this.items = computed(() => this.options().map((option) => typeof option === "string" ? {
22999
+ value: option,
23000
+ label: option
23001
+ } : option), ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
23002
+ this.selected = signal(null, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
23003
+ this.isDisabled = signal(false, ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
23004
+ this.isFocused = signal(false, ...ngDevMode ? [{ debugName: "isFocused" }] : /* istanbul ignore next */ []);
23005
+ this.ariaDescribedBy = signal("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
23006
+ this.ngControl = inject(NgControl, {
23007
+ optional: true,
23008
+ self: true
23009
+ });
23010
+ this.stateChanges = new Subject();
23011
+ this.controlType = "techlify-period-selector";
23012
+ this.id = `techlify-period-selector-${TechlifyPeriodSelectorComponent.nextId++}`;
23013
+ this.focusMonitor = inject(FocusMonitor);
23014
+ this.elementRef = inject(ElementRef);
23015
+ this.select = viewChild(MatSelect, ...ngDevMode ? [{ debugName: "select" }] : /* istanbul ignore next */ []);
23016
+ this.onChange = () => {};
23017
+ this.onTouched = () => {};
23018
+ if (this.ngControl) this.ngControl.valueAccessor = this;
23019
+ effect(() => {
23020
+ this.selected();
23021
+ this.isDisabled();
23022
+ this.isFocused();
23023
+ this.placeholderInput();
23024
+ this.requiredInput();
23025
+ this.stateChanges.next();
23026
+ });
23027
+ this.focusMonitor.monitor(this.elementRef, true).subscribe((origin) => {
23028
+ if (this.isFocused() && !origin) this.onTouched();
23029
+ this.isFocused.set(!!origin);
23030
+ });
23031
+ }
23032
+ setDescribedByIds(ids) {
23033
+ this.ariaDescribedBy.set(ids.join(" "));
23034
+ }
23035
+ onContainerClick(event) {
23036
+ if (_getEventTarget(event)?.closest?.("mat-option, .cdk-overlay-backdrop, .mat-mdc-select-panel")) return;
23037
+ const select = this.select();
23038
+ if (select && !this.disabled && !select.panelOpen) select.open();
23039
+ }
23040
+ writeValue(value) {
23041
+ this.selected.set(value ?? null);
23042
+ }
23043
+ registerOnChange(fn) {
23044
+ this.onChange = fn;
23045
+ }
23046
+ registerOnTouched(fn) {
23047
+ this.onTouched = fn;
23048
+ }
23049
+ setDisabledState(isDisabled) {
23050
+ this.isDisabled.set(isDisabled);
23051
+ }
23052
+ handleChange(value) {
23053
+ this.selected.set(value ?? null);
23054
+ this.onChange(this.selected());
23055
+ this.onTouched();
23056
+ }
23057
+ ngOnDestroy() {
23058
+ this.focusMonitor.stopMonitoring(this.elementRef);
23059
+ this.stateChanges.complete();
23060
+ }
23061
+ static {
23062
+ this.ɵfac = i0.ɵɵngDeclareFactory({
23063
+ minVersion: "12.0.0",
23064
+ version: "22.2.3",
23065
+ ngImport: i0,
23066
+ type: TechlifyPeriodSelectorComponent,
23067
+ deps: [],
23068
+ target: i0.ɵɵFactoryTarget.Component
23069
+ });
23070
+ }
23071
+ static {
23072
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
23073
+ minVersion: "17.0.0",
23074
+ version: "22.2.3",
23075
+ type: TechlifyPeriodSelectorComponent,
23076
+ isStandalone: true,
23077
+ selector: "techlify-period-selector",
23078
+ inputs: {
23079
+ options: {
23080
+ classPropertyName: "options",
23081
+ publicName: "options",
23082
+ isSignal: true,
23083
+ isRequired: false,
23084
+ transformFunction: null
23085
+ },
23086
+ placeholderInput: {
23087
+ classPropertyName: "placeholderInput",
23088
+ publicName: "placeholder",
23089
+ isSignal: true,
23090
+ isRequired: false,
23091
+ transformFunction: null
23092
+ },
23093
+ requiredInput: {
23094
+ classPropertyName: "requiredInput",
23095
+ publicName: "required",
23096
+ isSignal: true,
23097
+ isRequired: false,
23098
+ transformFunction: null
23099
+ }
23100
+ },
23101
+ providers: [{
23102
+ provide: MatFormFieldControl,
23103
+ useExisting: TechlifyPeriodSelectorComponent
23104
+ }],
23105
+ viewQueries: [{
23106
+ propertyName: "select",
23107
+ first: true,
23108
+ predicate: MatSelect,
23109
+ descendants: true,
23110
+ isSignal: true
23111
+ }],
23112
+ ngImport: i0,
23113
+ template: "<mat-select [value]=\"selected()\" [required]=\"requiredInput()\" [disabled]=\"isDisabled()\" [placeholder]=\"placeholderInput()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\" (selectionChange)=\"handleChange($event.value)\">\n @for (option of items(); track option.value) {\n <mat-option [value]=\"option.value\">{{ option.label }}</mat-option>\n }\n</mat-select>\n",
23114
+ styles: [":host{display:block}\n"],
23115
+ dependencies: [
23116
+ {
23117
+ kind: "ngmodule",
23118
+ type: SharedModule
23119
+ },
23120
+ {
23121
+ kind: "component",
23122
+ type: i5$1.MatOption,
23123
+ selector: "mat-option",
23124
+ inputs: [
23125
+ "value",
23126
+ "id",
23127
+ "disabled"
23128
+ ],
23129
+ outputs: ["onSelectionChange"],
23130
+ exportAs: ["matOption"]
23131
+ },
23132
+ {
23133
+ kind: "component",
23134
+ type: i11.MatSelect,
23135
+ selector: "mat-select",
23136
+ inputs: [
23137
+ "aria-describedby",
23138
+ "panelClass",
23139
+ "disabled",
23140
+ "disableRipple",
23141
+ "tabIndex",
23142
+ "hideSingleSelectionIndicator",
23143
+ "placeholder",
23144
+ "required",
23145
+ "multiple",
23146
+ "disableOptionCentering",
23147
+ "compareWith",
23148
+ "value",
23149
+ "aria-label",
23150
+ "aria-labelledby",
23151
+ "errorStateMatcher",
23152
+ "typeaheadDebounceInterval",
23153
+ "sortComparator",
23154
+ "id",
23155
+ "panelWidth",
23156
+ "canSelectNullableOptions"
23157
+ ],
23158
+ outputs: [
23159
+ "openedChange",
23160
+ "opened",
23161
+ "closed",
23162
+ "selectionChange",
23163
+ "valueChange"
23164
+ ],
23165
+ exportAs: ["matSelect"]
23166
+ }
23167
+ ],
23168
+ changeDetection: i0.ChangeDetectionStrategy.Eager
23169
+ });
23170
+ }
23171
+ };
23172
+ i0.ɵɵngDeclareClassMetadata({
23173
+ minVersion: "12.0.0",
23174
+ version: "22.2.3",
23175
+ ngImport: i0,
23176
+ type: TechlifyPeriodSelectorComponent,
23177
+ decorators: [{
23178
+ type: Component,
23179
+ args: [{
23180
+ selector: "techlify-period-selector",
23181
+ standalone: true,
23182
+ imports: [SharedModule],
23183
+ changeDetection: ChangeDetectionStrategy.Eager,
23184
+ providers: [{
23185
+ provide: MatFormFieldControl,
23186
+ useExisting: TechlifyPeriodSelectorComponent
23187
+ }],
23188
+ template: "<mat-select [value]=\"selected()\" [required]=\"requiredInput()\" [disabled]=\"isDisabled()\" [placeholder]=\"placeholderInput()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\" (selectionChange)=\"handleChange($event.value)\">\n @for (option of items(); track option.value) {\n <mat-option [value]=\"option.value\">{{ option.label }}</mat-option>\n }\n</mat-select>\n",
23189
+ styles: [":host{display:block}\n"]
23190
+ }]
23191
+ }],
23192
+ ctorParameters: () => [],
23193
+ propDecorators: {
23194
+ options: [{
23195
+ type: i0.Input,
23196
+ args: [{
23197
+ isSignal: true,
23198
+ alias: "options",
23199
+ required: false
23200
+ }]
23201
+ }],
23202
+ placeholderInput: [{
23203
+ type: i0.Input,
23204
+ args: [{
23205
+ isSignal: true,
23206
+ alias: "placeholder",
23207
+ required: false
23208
+ }]
23209
+ }],
23210
+ requiredInput: [{
23211
+ type: i0.Input,
23212
+ args: [{
23213
+ isSignal: true,
23214
+ alias: "required",
23215
+ required: false
23216
+ }]
23217
+ }],
23218
+ select: [{
23219
+ type: i0.ViewChild,
23220
+ args: [i0.forwardRef(() => MatSelect), { isSignal: true }]
23221
+ }]
23222
+ }
23223
+ });
22931
23224
  var CountryService = class CountryService extends TechlifyService {
22932
23225
  constructor(http) {
22933
23226
  super(http, "countries");
@@ -29113,7 +29406,7 @@ var TimelineActivityButtonComponent = class TimelineActivityButtonComponent {
29113
29406
  },
29114
29407
  ngImport: i0,
29115
29408
  template: "<app-techlify-icon name=\"history\" matTooltip=\"Timeline History\" (click)=\"$event.stopPropagation();openDialog(listView)\"\n class=\"clickable\"></app-techlify-icon>\n\n<ng-template #listView>\n <app-timeline-activity-list [changeableId]=\"changeableId\" [changeableType]=\"changeableType\"\n [timelineableDisplayField]=\"timelineableDisplayField\" [timelineableType]=\"timelineableType\"\n [timelineableId]=\"timelineableId\" [title]=\"title\"></app-timeline-activity-list>\n</ng-template>",
29116
- styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}\n"],
29409
+ styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}.list-page-main{min-width:0}.list-page-content{max-width:100%}.list-page-filter-toggle{display:none!important}@media(max-width:991.98px){.list-page.list-page{flex-direction:column!important}.list-page>.list-page-main{display:contents!important}.list-page-header{order:-2;flex-wrap:wrap;row-gap:.5rem}.list-page>.list-page-side{order:-1;width:100%!important;min-width:0!important;margin:.5rem 0 0!important}.list-page>.list-page-side:not(.is-open){display:none!important}.list-page-header-filters{flex:1 1 100%;min-width:0}.list-page-header-filters:not(.is-open){display:none!important}.list-page-content{min-width:0;overflow-x:auto}.list-page-filter-toggle{display:inline-flex!important}.list-page-filter-toggle.is-active{color:var(--bs-primary, #0d6efd)}.list-page .list-page-filters{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));column-gap:.5rem!important;align-items:start}.list-page .list-page-filters>*{width:auto!important;min-width:0}.list-page .list-page-filters .mat-mdc-form-field{width:100%!important}.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell,.list-page-content .mat-mdc-cell:not(.list-page-wrap){white-space:nowrap}.list-page-content .mat-mdc-cell.list-page-wrap{min-width:200px}.list-page-content .mat-mdc-cell,.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell{padding-inline:8px}}@media(max-width:575.98px){.list-page .mat-mdc-card{padding:12px}.list-page .list-page-content.mat-mdc-card{padding:0}.list-page-stats{flex:1 1 100%}.list-page-stats>*{flex:1 1 0;text-align:center}}\n"],
29117
29410
  dependencies: [
29118
29411
  {
29119
29412
  kind: "directive",
@@ -29168,7 +29461,7 @@ i0.ɵɵngDeclareClassMetadata({
29168
29461
  changeDetection: ChangeDetectionStrategy.Eager,
29169
29462
  standalone: false,
29170
29463
  template: "<app-techlify-icon name=\"history\" matTooltip=\"Timeline History\" (click)=\"$event.stopPropagation();openDialog(listView)\"\n class=\"clickable\"></app-techlify-icon>\n\n<ng-template #listView>\n <app-timeline-activity-list [changeableId]=\"changeableId\" [changeableType]=\"changeableType\"\n [timelineableDisplayField]=\"timelineableDisplayField\" [timelineableType]=\"timelineableType\"\n [timelineableId]=\"timelineableId\" [title]=\"title\"></app-timeline-activity-list>\n</ng-template>",
29171
- styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}\n"]
29464
+ styles: [".fl-md{width:200px!important}.fl-md .mat-mdc-form-field{width:100%!important}.fl-sm{width:150px!important}.fl-sm .mat-mdc-form-field{width:100%!important}.wpx-50{width:50px!important}.wpx-100{width:100px!important}.wpx-120{width:120px!important}.wpx-125{width:125px!important}.wpx-150{width:150px!important}.wpx-200{width:200px!important}.wpx-250{width:250px!important}.min-wpx-200{min-width:200px!important}.max-width-px-115{max-width:115px}.w-description{width:300px!important}.side-panel{width:300px!important;min-width:300px!important;flex-shrink:0!important}.h-250px{height:250px!important}.scroll-y{overflow-y:auto}.flex-basis-0{flex-basis:0}.flex-basis-5{flex-basis:5%}.flex-basis-8{flex-basis:8%}.flex-basis-10{flex-basis:10%}.flex-basis-15{flex-basis:15%}.flex-basis-20{flex-basis:20%}.flex-basis-25{flex-basis:25%}.flex-basis-30{flex-basis:30%}.flex-basis-35{flex-basis:35%}.flex-basis-40{flex-basis:40%}.flex-basis-45{flex-basis:45%}.flex-basis-48{flex-basis:48%}.flex-basis-49{flex-basis:49%}.flex-basis-50{flex-basis:50%}.flex-basis-60{flex-basis:60%}.flex-basis-65{flex-basis:65%}.flex-basis-70{flex-basis:70%}.flex-basis-80{flex-basis:80%}.flex-basis-90{flex-basis:90%}.flex-basis-95{flex-basis:95%}.flex-basis-100{flex-basis:100%}.flex-basis-50-minus-1rem{flex-basis:calc(50% - 1rem)}.flex-basis-50-minus-0-2rem{flex-basis:calc(50% - .2rem)}.flex-basis-20-minus-1rem{flex-basis:calc(20% - 1rem)}.flex-basis-15-minus-1rem{flex-basis:calc(15% - 1rem)}.flex-basis-50-minus-4px{flex-basis:calc(50% - 4px)}@media(min-width:992px){.flex-lg-basis-50{flex-basis:50%}}@media(min-width:1200px){.flex-xl-basis-30{flex-basis:30%}.flex-xl-basis-30-minus-1rem{flex:0 1 calc(30% - 1rem)}}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}button,a,input{outline:none!important}::-webkit-scrollbar{width:.5em}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:gray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#4d4c4c}.icon-md{height:24px!important;width:24px!important;font-size:24px!important;margin:0 1px}.icon-sm{height:20px!important;width:20px!important;font-size:20px!important}.icon-xs{height:16px!important;width:16px!important;font-size:16px!important}.mat-icon-xl{height:40px!important;width:40px!important;font-size:40px!important}.mat-icon-20px{font-size:20px!important;height:20px!important;width:20px!important}.mat-small-icon{height:16px!important;width:16px!important;font-size:16px!important}.mat-btn-md{height:25px!important;padding:0 8px!important}.mdc-button__label{letter-spacing:normal!important}.mat-mdc-button .mat-icon{height:24px!important;width:24px!important;font-size:24px!important}.mat-button-toggle-group{height:48px!important;align-items:center}.mat-button-toggle-button{height:48px!important}.mat-button-toggle-label-content{padding:0 8px!important;font-size:14px!important}.mat-mdc-slide-toggle label{margin:0!important}.small-slide-toggle{transform:scale(.8);transform-origin:left center}.fs-8{font-size:8px!important}.fs-12{font-size:12px!important}.fs-13{font-size:13px!important}.fs-16{font-size:16px!important}.fs-18{font-size:18px!important}.clickable:hover{cursor:pointer}.mat-mdc-form-field-hint-wrapper{padding:0 4px!important}.mat-mdc-floating-label{pointer-events:none!important}.nil-subscript-wrapper .mat-mdc-form-field-subscript-wrapper{height:0!important}.create-another .mat-mdc-checkbox label{margin:0!important}.create-another .mdc-checkbox{padding:0!important}.create-another .mdc-checkbox__background{position:relative;top:0;left:0}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element{color:#555!important;-webkit-text-fill-color:#555555!important}.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-select-value{color:#555!important}.mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);padding:16px}.mat-mdc-card-content{padding:0!important}.mat-mdc-dialog-surface{padding:24px}.mat-mdc-dialog-title{padding:0!important}.mat-mdc-dialog-title .mat-mdc-dialog-title:before{height:0!important}.mat-mdc-dialog-title *{position:relative;top:-30px!important}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:6px!important}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 8px!important}.mat-column-actions .mat-mdc-icon-button{width:30px!important;height:30px!important;top:6px!important}.mat-column-actions .mat-mdc-icon-button .mat-icon{bottom:9px!important;right:9px!important}.mat-mdc-progress-bar{border-radius:2px}.chip-mini-grey{background-color:#d9d9d9!important;border-radius:3px;display:inline-block;padding:0 6px;font-size:13px}.chip-mini-outline{background-color:#fff!important;border-radius:3px;display:inline-block;padding:0 6px;outline:1px solid #bbb;font-size:13px}.techlify-badge-grey-outlined{background-color:#f2f3f5!important;font-weight:400!important;font-size:12px!important;color:#000!important}.techlify-badge-white-outlined{font-weight:400!important;font-size:12px!important;border-style:solid!important;border-width:thin!important;color:#000!important;border-color:#000!important}.list-page-main{min-width:0}.list-page-content{max-width:100%}.list-page-filter-toggle{display:none!important}@media(max-width:991.98px){.list-page.list-page{flex-direction:column!important}.list-page>.list-page-main{display:contents!important}.list-page-header{order:-2;flex-wrap:wrap;row-gap:.5rem}.list-page>.list-page-side{order:-1;width:100%!important;min-width:0!important;margin:.5rem 0 0!important}.list-page>.list-page-side:not(.is-open){display:none!important}.list-page-header-filters{flex:1 1 100%;min-width:0}.list-page-header-filters:not(.is-open){display:none!important}.list-page-content{min-width:0;overflow-x:auto}.list-page-filter-toggle{display:inline-flex!important}.list-page-filter-toggle.is-active{color:var(--bs-primary, #0d6efd)}.list-page .list-page-filters{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));column-gap:.5rem!important;align-items:start}.list-page .list-page-filters>*{width:auto!important;min-width:0}.list-page .list-page-filters .mat-mdc-form-field{width:100%!important}.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell,.list-page-content .mat-mdc-cell:not(.list-page-wrap){white-space:nowrap}.list-page-content .mat-mdc-cell.list-page-wrap{min-width:200px}.list-page-content .mat-mdc-cell,.list-page-content .mat-mdc-header-cell,.list-page-content .mat-mdc-footer-cell{padding-inline:8px}}@media(max-width:575.98px){.list-page .mat-mdc-card{padding:12px}.list-page .list-page-content.mat-mdc-card{padding:0}.list-page-stats{flex:1 1 100%}.list-page-stats>*{flex:1 1 0;text-align:center}}\n"]
29172
29465
  }]
29173
29466
  }],
29174
29467
  ctorParameters: () => [{ type: i1$2.MatDialog }],
@@ -32377,7 +32670,14 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32377
32670
  this.type = ChartType.ColumnChart;
32378
32671
  this.chartOptions = {};
32379
32672
  this.colors = {};
32673
+ this.view = "chart";
32674
+ this.showViewSelector = true;
32675
+ this.viewChange = new EventEmitter();
32380
32676
  this.loaded = new EventEmitter();
32677
+ this.tableColumns = [];
32678
+ this.displayedColumns = [];
32679
+ this.tableData = [];
32680
+ this.hasTotals = false;
32381
32681
  this.chartColumns = [];
32382
32682
  this.chartData = [];
32383
32683
  this.options = {};
@@ -32403,6 +32703,12 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32403
32703
  get chartType() {
32404
32704
  return this.type;
32405
32705
  }
32706
+ setView(view) {
32707
+ if (view === this.view) return;
32708
+ this.view = view;
32709
+ this.viewChange.emit(view);
32710
+ this.changeDetector.markForCheck();
32711
+ }
32406
32712
  ngOnChanges() {
32407
32713
  const params = this.getParams();
32408
32714
  const request = JSON.stringify([this.url, params]);
@@ -32431,6 +32737,7 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32431
32737
  }
32432
32738
  render() {
32433
32739
  const [xColumn, ...valueColumns] = this.data?.columns ?? [];
32740
+ this.renderTable(xColumn, valueColumns);
32434
32741
  const isColorPerBar = valueColumns.length === 1 && ![ChartType.PieChart, ChartType.LineChart].includes(this.chartType);
32435
32742
  const styleColumn = isColorPerBar ? [{
32436
32743
  role: "style",
@@ -32456,6 +32763,18 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32456
32763
  };
32457
32764
  this.changeDetector.markForCheck();
32458
32765
  }
32766
+ renderTable(xColumn, valueColumns) {
32767
+ const totals = this.data?.totals ?? {};
32768
+ this.tableColumns = xColumn ? [xColumn, ...valueColumns].map((column, index) => ({
32769
+ id: `column_${index}`,
32770
+ label: column.label,
32771
+ isNumber: index > 0,
32772
+ total: index > 0 ? totals[column.key] ?? null : null
32773
+ })) : [];
32774
+ this.displayedColumns = this.tableColumns.map((column) => column.id);
32775
+ this.tableData = (this.data?.rows ?? []).map(([x, ...values]) => [this.formatX(x, xColumn), ...values]);
32776
+ this.hasTotals = this.tableData.length > 0 && this.tableColumns.some((column) => column.total !== null);
32777
+ }
32459
32778
  generateColor() {
32460
32779
  const h = 360 * Math.random();
32461
32780
  const s = 25 + 70 * Math.random();
@@ -32485,7 +32804,7 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32485
32804
  }
32486
32805
  static {
32487
32806
  this.ɵcmp = i0.ɵɵngDeclareComponent({
32488
- minVersion: "14.0.0",
32807
+ minVersion: "17.0.0",
32489
32808
  version: "22.2.3",
32490
32809
  type: TechlifyChartComponent,
32491
32810
  isStandalone: true,
@@ -32504,28 +32823,23 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32504
32823
  title: "title",
32505
32824
  subtitle: "subtitle",
32506
32825
  chartOptions: "chartOptions",
32507
- colors: "colors"
32826
+ colors: "colors",
32827
+ view: "view",
32828
+ showViewSelector: "showViewSelector"
32829
+ },
32830
+ outputs: {
32831
+ viewChange: "viewChange",
32832
+ loaded: "loaded"
32508
32833
  },
32509
- outputs: { loaded: "loaded" },
32510
32834
  usesOnChanges: true,
32511
32835
  ngImport: i0,
32512
- template: "<div class=\"d-flex flex-column p-2\">\n <div class=\"d-flex flex-row flex-wrap align-items-center gap-2\">\n <div class=\"d-flex flex-column\">\n <h6 *ngIf=\"title\" class=\"m-0\">{{title}}</h6>\n <small *ngIf=\"subtitle\" class=\"text-secondary\">{{subtitle}}</small>\n </div>\n <span class=\"flex-grow-1\"></span>\n <!-- Header content, i.e. totals -->\n <ng-content></ng-content>\n </div>\n\n <mat-progress-bar *ngIf=\"isLoading\" mode=\"indeterminate\" class=\"mt-2\"></mat-progress-bar>\n\n <google-chart *ngIf=\"chartData.length; else noData\" class=\"chart\" [type]=\"chartType\" [data]=\"chartData\"\n [columns]=\"chartColumns\" [options]=\"options\" [dynamicResize]=\"true\"></google-chart>\n\n <ng-template #noData>\n <div *ngIf=\"!isLoading\" class=\"chart d-flex align-items-center justify-content-center text-secondary\">\n {{ hasError ? 'Could not load' : 'No data for' }} {{ title ?? 'chart' }}\n </div>\n </ng-template>\n</div>\n",
32513
- styles: [".chart{width:100%;height:200px}\n"],
32836
+ template: "<div class=\"d-flex flex-column p-2\">\n <div class=\"d-flex flex-row flex-wrap align-items-center gap-2\">\n <div class=\"d-flex flex-column\">\n <div class=\"d-flex align-items-center\">\n @if (title) {\n <h6 class=\"m-0\">{{ title }}</h6>\n }\n @if (showViewSelector) {\n <app-techlify-icon [name]=\"view\" [matMenuTriggerFor]=\"viewMenu\" class=\"clickable d-print-none\"\n [class.ms-2]=\"title\" matTooltip=\"Display Selector\"></app-techlify-icon>\n <mat-menu #viewMenu=\"matMenu\">\n <button mat-menu-item (click)=\"setView('chart')\">\n <app-techlify-icon name=\"chart\"></app-techlify-icon> Chart View\n </button>\n <button mat-menu-item (click)=\"setView('table')\">\n <app-techlify-icon name=\"table\"></app-techlify-icon> Table View\n </button>\n </mat-menu>\n }\n </div>\n @if (subtitle) {\n <small class=\"text-secondary\">{{ subtitle }}</small>\n }\n </div>\n <span class=\"flex-grow-1\"></span>\n <!-- Header content, i.e. totals -->\n <ng-content></ng-content>\n </div>\n\n @if (isLoading) {\n <mat-progress-bar mode=\"indeterminate\" class=\"mt-2\"></mat-progress-bar>\n }\n\n @if (view === 'table') {\n <!-- Scrolls within the chart's height, with the header and totals kept in view -->\n <div class=\"chart table-view\">\n <table mat-table [dataSource]=\"tableData\" class=\"w-100\">\n @for (column of tableColumns; track column.id; let index = $index) {\n <ng-container [matColumnDef]=\"column.id\">\n <th mat-header-cell *matHeaderCellDef [class.text-end]=\"column.isNumber\">{{ column.label }}</th>\n <td mat-cell *matCellDef=\"let row\" [class.text-end]=\"column.isNumber\">\n {{ column.isNumber ? (row[index] | number:'1.0-2') : row[index] }}\n </td>\n <td mat-footer-cell *matFooterCellDef [class.text-end]=\"column.isNumber\">\n {{ column.isNumber ? (column.total | number:'1.0-2') : 'Total' }}\n </td>\n </ng-container>\n }\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n @if (hasTotals) {\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns; sticky: true\"></tr>\n }\n <tr class=\"mat-mdc-row\" *matNoDataRow>\n <td class=\"mat-mdc-cell text-center text-secondary\" [attr.colspan]=\"displayedColumns.length || 1\">\n {{ isLoading ? 'Loading' : hasError ? 'Could not load' : 'No data for' }} {{ title ?? 'chart' }}\n </td>\n </tr>\n </table>\n </div>\n } @else if (chartData.length) {\n <google-chart class=\"chart\" [type]=\"chartType\" [data]=\"chartData\" [columns]=\"chartColumns\" [options]=\"options\"\n [dynamicResize]=\"true\"></google-chart>\n } @else if (!isLoading) {\n <div class=\"chart d-flex align-items-center justify-content-center text-secondary\">\n {{ hasError ? 'Could not load' : 'No data for' }} {{ title ?? 'chart' }}\n </div>\n }\n</div>\n",
32837
+ styles: [".chart{width:100%;height:200px}.table-view{overflow-y:auto;--mat-table-header-container-height: 32px;--mat-table-row-item-container-height: 28px;--mat-table-header-headline-size: 12px;--mat-table-row-item-label-text-size: 12px;--mat-table-footer-container-height: 28px;--mat-table-footer-supporting-text-size: 12px}.table-view .mat-mdc-header-cell,.table-view .mat-mdc-cell,.table-view .mat-mdc-footer-cell{padding:0 8px;white-space:nowrap}.table-view .mat-mdc-header-cell,.table-view .mat-mdc-footer-cell{font-weight:600}.table-view .mat-mdc-footer-row{background-color:#f5f5f5}.table-view .mat-mdc-row:nth-child(2n){background-color:#fafafa}\n"],
32514
32838
  dependencies: [
32515
32839
  {
32516
32840
  kind: "ngmodule",
32517
32841
  type: CommonModule
32518
32842
  },
32519
- {
32520
- kind: "directive",
32521
- type: i1$4.NgIf,
32522
- selector: "[ngIf]",
32523
- inputs: [
32524
- "ngIf",
32525
- "ngIfThen",
32526
- "ngIfElse"
32527
- ]
32528
- },
32529
32843
  {
32530
32844
  kind: "component",
32531
32845
  type: GoogleChart,
@@ -32548,6 +32862,181 @@ var TechlifyChartComponent = class TechlifyChartComponent {
32548
32862
  ],
32549
32863
  outputs: ["animationEnd"],
32550
32864
  exportAs: ["matProgressBar"]
32865
+ },
32866
+ {
32867
+ kind: "ngmodule",
32868
+ type: MatMenuModule
32869
+ },
32870
+ {
32871
+ kind: "component",
32872
+ type: i6$2.MatMenu,
32873
+ selector: "mat-menu",
32874
+ inputs: [
32875
+ "backdropClass",
32876
+ "aria-label",
32877
+ "aria-labelledby",
32878
+ "aria-describedby",
32879
+ "xPosition",
32880
+ "yPosition",
32881
+ "overlapTrigger",
32882
+ "hasBackdrop",
32883
+ "class",
32884
+ "classList"
32885
+ ],
32886
+ outputs: ["closed", "close"],
32887
+ exportAs: ["matMenu"]
32888
+ },
32889
+ {
32890
+ kind: "component",
32891
+ type: i6$2.MatMenuItem,
32892
+ selector: "[mat-menu-item]",
32893
+ inputs: [
32894
+ "role",
32895
+ "disabled",
32896
+ "disabledInteractive",
32897
+ "disableRipple"
32898
+ ],
32899
+ exportAs: ["matMenuItem"]
32900
+ },
32901
+ {
32902
+ kind: "directive",
32903
+ type: i6$2.MatMenuTrigger,
32904
+ selector: "[mat-menu-trigger-for], [matMenuTriggerFor]",
32905
+ inputs: [
32906
+ "mat-menu-trigger-for",
32907
+ "matMenuTriggerFor",
32908
+ "matMenuTriggerData",
32909
+ "matMenuTriggerRestoreFocus"
32910
+ ],
32911
+ outputs: [
32912
+ "menuOpened",
32913
+ "onMenuOpen",
32914
+ "menuClosed",
32915
+ "onMenuClose"
32916
+ ],
32917
+ exportAs: ["matMenuTrigger"]
32918
+ },
32919
+ {
32920
+ kind: "ngmodule",
32921
+ type: MatTableModule
32922
+ },
32923
+ {
32924
+ kind: "component",
32925
+ type: i8$3.MatTable,
32926
+ selector: "mat-table, table[mat-table]",
32927
+ exportAs: ["matTable"]
32928
+ },
32929
+ {
32930
+ kind: "directive",
32931
+ type: i8$3.MatHeaderCellDef,
32932
+ selector: "[matHeaderCellDef]"
32933
+ },
32934
+ {
32935
+ kind: "directive",
32936
+ type: i8$3.MatHeaderRowDef,
32937
+ selector: "[matHeaderRowDef]",
32938
+ inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"]
32939
+ },
32940
+ {
32941
+ kind: "directive",
32942
+ type: i8$3.MatColumnDef,
32943
+ selector: "[matColumnDef]",
32944
+ inputs: ["matColumnDef"]
32945
+ },
32946
+ {
32947
+ kind: "directive",
32948
+ type: i8$3.MatCellDef,
32949
+ selector: "[matCellDef]"
32950
+ },
32951
+ {
32952
+ kind: "directive",
32953
+ type: i8$3.MatRowDef,
32954
+ selector: "[matRowDef]",
32955
+ inputs: ["matRowDefColumns", "matRowDefWhen"]
32956
+ },
32957
+ {
32958
+ kind: "directive",
32959
+ type: i8$3.MatFooterCellDef,
32960
+ selector: "[matFooterCellDef]"
32961
+ },
32962
+ {
32963
+ kind: "directive",
32964
+ type: i8$3.MatFooterRowDef,
32965
+ selector: "[matFooterRowDef]",
32966
+ inputs: ["matFooterRowDef", "matFooterRowDefSticky"]
32967
+ },
32968
+ {
32969
+ kind: "directive",
32970
+ type: i8$3.MatHeaderCell,
32971
+ selector: "mat-header-cell, th[mat-header-cell]"
32972
+ },
32973
+ {
32974
+ kind: "directive",
32975
+ type: i8$3.MatCell,
32976
+ selector: "mat-cell, td[mat-cell]"
32977
+ },
32978
+ {
32979
+ kind: "directive",
32980
+ type: i8$3.MatFooterCell,
32981
+ selector: "mat-footer-cell, td[mat-footer-cell]"
32982
+ },
32983
+ {
32984
+ kind: "component",
32985
+ type: i8$3.MatHeaderRow,
32986
+ selector: "mat-header-row, tr[mat-header-row]",
32987
+ exportAs: ["matHeaderRow"]
32988
+ },
32989
+ {
32990
+ kind: "component",
32991
+ type: i8$3.MatRow,
32992
+ selector: "mat-row, tr[mat-row]",
32993
+ exportAs: ["matRow"]
32994
+ },
32995
+ {
32996
+ kind: "component",
32997
+ type: i8$3.MatFooterRow,
32998
+ selector: "mat-footer-row, tr[mat-footer-row]",
32999
+ exportAs: ["matFooterRow"]
33000
+ },
33001
+ {
33002
+ kind: "directive",
33003
+ type: i8$3.MatNoDataRow,
33004
+ selector: "ng-template[matNoDataRow]"
33005
+ },
33006
+ {
33007
+ kind: "ngmodule",
33008
+ type: MatTooltipModule
33009
+ },
33010
+ {
33011
+ kind: "directive",
33012
+ type: i8.MatTooltip,
33013
+ selector: "[matTooltip]",
33014
+ inputs: [
33015
+ "matTooltipPosition",
33016
+ "matTooltipPositionAtOrigin",
33017
+ "matTooltipDisabled",
33018
+ "matTooltipShowDelay",
33019
+ "matTooltipHideDelay",
33020
+ "matTooltipTouchGestures",
33021
+ "matTooltip",
33022
+ "matTooltipClass"
33023
+ ],
33024
+ exportAs: ["matTooltip"]
33025
+ },
33026
+ {
33027
+ kind: "ngmodule",
33028
+ type: TechlifyIconModule
33029
+ },
33030
+ {
33031
+ kind: "component",
33032
+ type: TechlifyIconComponent,
33033
+ selector: "app-techlify-icon",
33034
+ inputs: ["name", "size"]
33035
+ },
33036
+ {
33037
+ kind: "pipe",
33038
+ type: i1$4.DecimalPipe,
33039
+ name: "number"
32551
33040
  }
32552
33041
  ],
32553
33042
  changeDetection: i0.ChangeDetectionStrategy.OnPush
@@ -32568,10 +33057,14 @@ i0.ɵɵngDeclareClassMetadata({
32568
33057
  imports: [
32569
33058
  CommonModule,
32570
33059
  GoogleChart,
32571
- MatProgressBarModule
33060
+ MatProgressBarModule,
33061
+ MatMenuModule,
33062
+ MatTableModule,
33063
+ MatTooltipModule,
33064
+ TechlifyIconModule
32572
33065
  ],
32573
- template: "<div class=\"d-flex flex-column p-2\">\n <div class=\"d-flex flex-row flex-wrap align-items-center gap-2\">\n <div class=\"d-flex flex-column\">\n <h6 *ngIf=\"title\" class=\"m-0\">{{title}}</h6>\n <small *ngIf=\"subtitle\" class=\"text-secondary\">{{subtitle}}</small>\n </div>\n <span class=\"flex-grow-1\"></span>\n <!-- Header content, i.e. totals -->\n <ng-content></ng-content>\n </div>\n\n <mat-progress-bar *ngIf=\"isLoading\" mode=\"indeterminate\" class=\"mt-2\"></mat-progress-bar>\n\n <google-chart *ngIf=\"chartData.length; else noData\" class=\"chart\" [type]=\"chartType\" [data]=\"chartData\"\n [columns]=\"chartColumns\" [options]=\"options\" [dynamicResize]=\"true\"></google-chart>\n\n <ng-template #noData>\n <div *ngIf=\"!isLoading\" class=\"chart d-flex align-items-center justify-content-center text-secondary\">\n {{ hasError ? 'Could not load' : 'No data for' }} {{ title ?? 'chart' }}\n </div>\n </ng-template>\n</div>\n",
32574
- styles: [".chart{width:100%;height:200px}\n"]
33066
+ template: "<div class=\"d-flex flex-column p-2\">\n <div class=\"d-flex flex-row flex-wrap align-items-center gap-2\">\n <div class=\"d-flex flex-column\">\n <div class=\"d-flex align-items-center\">\n @if (title) {\n <h6 class=\"m-0\">{{ title }}</h6>\n }\n @if (showViewSelector) {\n <app-techlify-icon [name]=\"view\" [matMenuTriggerFor]=\"viewMenu\" class=\"clickable d-print-none\"\n [class.ms-2]=\"title\" matTooltip=\"Display Selector\"></app-techlify-icon>\n <mat-menu #viewMenu=\"matMenu\">\n <button mat-menu-item (click)=\"setView('chart')\">\n <app-techlify-icon name=\"chart\"></app-techlify-icon> Chart View\n </button>\n <button mat-menu-item (click)=\"setView('table')\">\n <app-techlify-icon name=\"table\"></app-techlify-icon> Table View\n </button>\n </mat-menu>\n }\n </div>\n @if (subtitle) {\n <small class=\"text-secondary\">{{ subtitle }}</small>\n }\n </div>\n <span class=\"flex-grow-1\"></span>\n <!-- Header content, i.e. totals -->\n <ng-content></ng-content>\n </div>\n\n @if (isLoading) {\n <mat-progress-bar mode=\"indeterminate\" class=\"mt-2\"></mat-progress-bar>\n }\n\n @if (view === 'table') {\n <!-- Scrolls within the chart's height, with the header and totals kept in view -->\n <div class=\"chart table-view\">\n <table mat-table [dataSource]=\"tableData\" class=\"w-100\">\n @for (column of tableColumns; track column.id; let index = $index) {\n <ng-container [matColumnDef]=\"column.id\">\n <th mat-header-cell *matHeaderCellDef [class.text-end]=\"column.isNumber\">{{ column.label }}</th>\n <td mat-cell *matCellDef=\"let row\" [class.text-end]=\"column.isNumber\">\n {{ column.isNumber ? (row[index] | number:'1.0-2') : row[index] }}\n </td>\n <td mat-footer-cell *matFooterCellDef [class.text-end]=\"column.isNumber\">\n {{ column.isNumber ? (column.total | number:'1.0-2') : 'Total' }}\n </td>\n </ng-container>\n }\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n @if (hasTotals) {\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns; sticky: true\"></tr>\n }\n <tr class=\"mat-mdc-row\" *matNoDataRow>\n <td class=\"mat-mdc-cell text-center text-secondary\" [attr.colspan]=\"displayedColumns.length || 1\">\n {{ isLoading ? 'Loading' : hasError ? 'Could not load' : 'No data for' }} {{ title ?? 'chart' }}\n </td>\n </tr>\n </table>\n </div>\n } @else if (chartData.length) {\n <google-chart class=\"chart\" [type]=\"chartType\" [data]=\"chartData\" [columns]=\"chartColumns\" [options]=\"options\"\n [dynamicResize]=\"true\"></google-chart>\n } @else if (!isLoading) {\n <div class=\"chart d-flex align-items-center justify-content-center text-secondary\">\n {{ hasError ? 'Could not load' : 'No data for' }} {{ title ?? 'chart' }}\n </div>\n }\n</div>\n",
33067
+ styles: [".chart{width:100%;height:200px}.table-view{overflow-y:auto;--mat-table-header-container-height: 32px;--mat-table-row-item-container-height: 28px;--mat-table-header-headline-size: 12px;--mat-table-row-item-label-text-size: 12px;--mat-table-footer-container-height: 28px;--mat-table-footer-supporting-text-size: 12px}.table-view .mat-mdc-header-cell,.table-view .mat-mdc-cell,.table-view .mat-mdc-footer-cell{padding:0 8px;white-space:nowrap}.table-view .mat-mdc-header-cell,.table-view .mat-mdc-footer-cell{font-weight:600}.table-view .mat-mdc-footer-row{background-color:#f5f5f5}.table-view .mat-mdc-row:nth-child(2n){background-color:#fafafa}\n"]
32575
33068
  }]
32576
33069
  }],
32577
33070
  ctorParameters: () => [],
@@ -32593,9 +33086,12 @@ i0.ɵɵngDeclareClassMetadata({
32593
33086
  subtitle: [{ type: Input }],
32594
33087
  chartOptions: [{ type: Input }],
32595
33088
  colors: [{ type: Input }],
33089
+ view: [{ type: Input }],
33090
+ showViewSelector: [{ type: Input }],
33091
+ viewChange: [{ type: Output }],
32596
33092
  loaded: [{ type: Output }]
32597
33093
  }
32598
33094
  });
32599
- export { AccessControlConfigModule, ActionPopup, ActionPopupComponent, ActionPopupModule, AdminRoleListComponent, AdminRoleListModule, AdminRolePermissionFormComponent, AdminRolePermissionFormModule, AdminRoleService, AlertService, ApiPrefixInterceptor, AppAdminHomeComponent, AppAdminModule, AppAdminUserList, AppAdminUserViewComponent, AppAdminUserViewModule, AppUpdateService, AuditLogForModelComponent, AuditLogForModelModule, AuditLogForModelRoutingModule, AuditLogListComponent, AuditLogListFilterComponent, AuditLogListFilterModule, AuditLogListFilterRoutingModule, AuditLogListModule, AuditLogListRoutingModule, AuditLogModule, AuditLogRoutingModule, AuditLogViewComponent, AuditLogViewModelComponent, AuditLogViewModelModule, AuditLogViewModelRoutingModule, AuditLogViewModule, AuditLogViewRoutingModule, AuditLogsViewModelComponent, AuditLogsViewModelModule, AuditLogsViewModelRoutingModule, AuthenticationGuard, AuthenticationService, CacheInterceptor, ChangePasswordModule, ClientService, ColumnConfig, ColumnSelectorComponent, ColumnSelectorModule, CommentFormComponent, CompanyInfoDisplayComponent, CompanyInformationComponent, ConfigService, CoreModule, CountryService, CredentialsService, CurrentUserService, CustomIconComponent, CustomIconModule, DEFAULT_SELECTED_VALUE, DataTable, DataTableComponent, DataTableModule, DateUtils, DatetimeLocalDirective, DocumentViewerComponent, DocumentViewerModule, EmailSubscriptionForUserComponent, EmailSubscriptionForUserModule, EmailSubscriptionForUserRoutingModule, EmailSubscriptionModule, EmailSubscriptionRoutingModule, EmailSubscriptionTypeFormComponent, EmailSubscriptionTypeFormModule, EmailSubscriptionTypeFormRoutingModule, EmailSubscriptionTypeListComponent, EmailSubscriptionTypeListModule, EmailSubscriptionTypeListRoutingModule, EmailSubscriptionTypeModule, EmailSubscriptionTypeRoutingModule, EmailSubscriptionUserFormComponent, EmailSubscriptionUserFormModule, EmailSubscriptionUserFormRoutingModule, EmailSubscriptionUserListComponent, EmailSubscriptionUserListFilterComponent, EmailSubscriptionUserListFilterModule, EmailSubscriptionUserListFilterRoutingModule, EmailSubscriptionUserListModule, EmailSubscriptionUserListRoutingModule, EmailSubscriptionUserModule, EmailSubscriptionUserRoutingModule, EntityFileFormComponent, EntityFileListComponent, EntityFileListModule, EntityFileListModule as EntityFilesViewAllModule, EntityFileListWidgetComponent, EntityFileService, EnvironmentService, ErrorHandlerInterceptor, ErrorHandlerService, ErrorSnackComponent, ExportExcelButtonComponent, ExportExcelModule, FileDragdropUploaderComponent, FileDragdropUploaderModule, FileDropperComponent, FileDropperConfig, FileDropperModule, FilterService, ForgotPasswordComponent, ForgotPasswordModule, ForgotPasswordRoutingModule, FormConfigurationFieldFormComponent, FormConfigurationFieldFormModule, FormConfigurationFieldFormRoutingModule, FormConfigurationForFormComponent, FormConfigurationForFormModule, FormConfigurationFormFieldService, FormConfigurationFormService, FormConfigurationUtilityService, FormValidatorService, HTTP_DYNAMIC_INTERCEPTORS, HttpCacheService, HttpService, ImportCsvComponent, ImportCsvModule, LoaderComponent, LoaderModule, LockedDate, LockedDateFormComponent, LockedDateListComponent, LockedDateLockUnlockButtonComponent, LockedDateModule, LockedDateService, LogLevel, Logger, LoginComponent, LoginFormFieldsComponent, LoginHistoryForUserComponent, LoginHistoryForUserModule, LoginHistoryForUserRoutingModule, LoginModule, LoginRoutingModule, MaterialModule, MultiUserConfig, MyTechlifyViewListingComponent, MyTechlifyViewListingModule, MyTechlifyViewService, NgxTechlifyUsersModule, NoteCommentListComponent, NoteFormComponent, NoteListComponent, NoteModule, NumItemsSelector, NumberInputButtonComponent, NumberInputButtonModule, NumberSelectorComponent, OrdinalPipe, PageEvent, PdfButtonComponent, PdfButtonModule, Permission, PermissionModule, PermissionRoutingProvider, PermissionsManagementComponent, PhoneNumberSelectorComponent, ProfileEditComponent, ProfileModule, ProfileRoutingModule, ReadMoreComponent, ReadMoreModule, RequestHelperService, ResetPasswordComponent, ResetPasswordModule, ResetPasswordRoutingModule, ResetPasswordService, RestrictorTypeSelectorComponent, RestrictorTypeSelectorModule, RestrictorsModule, Role, RoleFormButtonComponent, RoleFormComponent, RoleListComponent, RoleModule, RoleRoutingProvider, RoleService, RoleViewComponent, RoleViewModule, RouteReusableStrategy, SearchableSelectorComponent, SearchableSelectorModule, SignUpComponent, SignupModule, SignupRoutingModule, SnackModule, StorageService, SubscriptionFormComponent, SubscriptionFormModule, SubscriptionListingComponent, SubscriptionListingModule, SubscriptionPackageListingComponent, SubscriptionPackageListingModule, SubscriptionPackageViewComponent, SubscriptionPackageViewModule, SubscriptionService, SuccessSnackComponent, TagService, TechlifyAppSelectorComponent, TechlifyAppSelectorModule, TechlifyAutoCompleteSelectComponent, TechlifyChartComponent, TechlifyCompanySwitcherComponent, TechlifyCompanySwitcherModule, TechlifyConfig, TechlifyCurrencyPipe, TechlifyDeleteButtonComponent, TechlifyDetailLayoutComponent, TechlifyFeatureDirectiveModule, TechlifyFeatureEnabledDirective, TechlifyFeatureListingComponent, TechlifyFeatureModule, TechlifyFeatureRoutes, TechlifyFeatureService, TechlifyFormButtonComponent, TechlifyFormComponent, TechlifyIconComponent, TechlifyIconModule, TechlifyListComponent, TechlifyNotificationForUserComponent, TechlifyNotificationForUserModule, TechlifyNotificationForUserRoutingModule, TechlifyNotificationModule, TechlifyNotificationRoutingModule, TechlifyService, TechlifyShowComponent, TechlifySubscriptionDirective, TechlifySubscriptionDirectiveModule, TechlifyTaggerTagFormComponent, TechlifyTaggerTagFormConfigModel, TechlifyTaggerTagFormFieldComponent, TechlifyTaggerTagFormFieldModule, TechlifyTaggerTagListComponent, TechlifyTaggerTagSelectorComponent, TechlifyTaggerTagSelectorModule, TechlifyUpdateHistoryModule, TechlifyUpdateModule, TechlifyUpdateService, TechlifyUpdatesTeaserComponent, TechlifyUpdatesTeaserModule, TechlifyViewFormComponent, TechlifyViewFormModule, TechlifyViewService, TenantFormButtonComponent, TenantListWidgetComponent, Timeline, TimelineActivityButtonComponent, TimelineActivityButtonModule, TimelineActivityListComponent, TimelineActivityListModule, TimelineFilterComponent, TimelineFilterModule, TokenInterceptor, UpdateNotifierComponent, UpdateNotifierModule, User, UserClientEnableDisableButtonComponent, UserClientEnableDisableButtonModule, UserClientsListComponent, UserClientsListModule, UserConfig, UserConfigService, UserDataService, UserEnableButtonComponent, UserEnableButtonModule, UserExploreComponent, UserFormComponent, UserListComponent, UserListPageConfig, UserMenuComponent, UserMenuModule, UserModule, UserRoutingProvider, UserSelectorComponent, UserSelectorModule, UserService, UserSessionsComponent, UserSessionsModule, UserViewComponent, UtilityModule, ViewerConfig, WrapPipe, calculateTimeline, dateValidator, esfur, estlr, esulr, parseLocalDate, techlifyFormContract, techlifyListContract, techlifyShowContract };
33095
+ export { AccessControlConfigModule, ActionPopup, ActionPopupComponent, ActionPopupModule, AdminRoleListComponent, AdminRoleListModule, AdminRolePermissionFormComponent, AdminRolePermissionFormModule, AdminRoleService, AlertService, ApiPrefixInterceptor, AppAdminHomeComponent, AppAdminModule, AppAdminUserList, AppAdminUserViewComponent, AppAdminUserViewModule, AppUpdateService, AuditLogForModelComponent, AuditLogForModelModule, AuditLogForModelRoutingModule, AuditLogListComponent, AuditLogListFilterComponent, AuditLogListFilterModule, AuditLogListFilterRoutingModule, AuditLogListModule, AuditLogListRoutingModule, AuditLogModule, AuditLogRoutingModule, AuditLogViewComponent, AuditLogViewModelComponent, AuditLogViewModelModule, AuditLogViewModelRoutingModule, AuditLogViewModule, AuditLogViewRoutingModule, AuditLogsViewModelComponent, AuditLogsViewModelModule, AuditLogsViewModelRoutingModule, AuthenticationGuard, AuthenticationService, CacheInterceptor, ChangePasswordModule, ClientService, ColumnConfig, ColumnSelectorComponent, ColumnSelectorModule, CommentFormComponent, CompanyInfoDisplayComponent, CompanyInformationComponent, ConfigService, CoreModule, CountryService, CredentialsService, CurrentUserService, CustomIconComponent, CustomIconModule, DEFAULT_PERIOD_OPTIONS, DEFAULT_SELECTED_VALUE, DataTable, DataTableComponent, DataTableModule, DateUtils, DatetimeLocalDirective, DocumentViewerComponent, DocumentViewerModule, EmailSubscriptionForUserComponent, EmailSubscriptionForUserModule, EmailSubscriptionForUserRoutingModule, EmailSubscriptionModule, EmailSubscriptionRoutingModule, EmailSubscriptionTypeFormComponent, EmailSubscriptionTypeFormModule, EmailSubscriptionTypeFormRoutingModule, EmailSubscriptionTypeListComponent, EmailSubscriptionTypeListModule, EmailSubscriptionTypeListRoutingModule, EmailSubscriptionTypeModule, EmailSubscriptionTypeRoutingModule, EmailSubscriptionUserFormComponent, EmailSubscriptionUserFormModule, EmailSubscriptionUserFormRoutingModule, EmailSubscriptionUserListComponent, EmailSubscriptionUserListFilterComponent, EmailSubscriptionUserListFilterModule, EmailSubscriptionUserListFilterRoutingModule, EmailSubscriptionUserListModule, EmailSubscriptionUserListRoutingModule, EmailSubscriptionUserModule, EmailSubscriptionUserRoutingModule, EntityFileFormComponent, EntityFileListComponent, EntityFileListModule, EntityFileListModule as EntityFilesViewAllModule, EntityFileListWidgetComponent, EntityFileService, EnvironmentService, ErrorHandlerInterceptor, ErrorHandlerService, ErrorSnackComponent, ExportExcelButtonComponent, ExportExcelModule, FileDragdropUploaderComponent, FileDragdropUploaderModule, FileDropperComponent, FileDropperConfig, FileDropperModule, FilterService, ForgotPasswordComponent, ForgotPasswordModule, ForgotPasswordRoutingModule, FormConfigurationFieldFormComponent, FormConfigurationFieldFormModule, FormConfigurationFieldFormRoutingModule, FormConfigurationForFormComponent, FormConfigurationForFormModule, FormConfigurationFormFieldService, FormConfigurationFormService, FormConfigurationUtilityService, FormValidatorService, HTTP_DYNAMIC_INTERCEPTORS, HttpCacheService, HttpService, ImportCsvComponent, ImportCsvModule, LoaderComponent, LoaderModule, LockedDate, LockedDateFormComponent, LockedDateListComponent, LockedDateLockUnlockButtonComponent, LockedDateModule, LockedDateService, LogLevel, Logger, LoginComponent, LoginFormFieldsComponent, LoginHistoryForUserComponent, LoginHistoryForUserModule, LoginHistoryForUserRoutingModule, LoginModule, LoginRoutingModule, MaterialModule, MultiUserConfig, MyTechlifyViewListingComponent, MyTechlifyViewListingModule, MyTechlifyViewService, NgxTechlifyUsersModule, NoteCommentListComponent, NoteFormComponent, NoteListComponent, NoteModule, NumItemsSelector, NumberInputButtonComponent, NumberInputButtonModule, NumberSelectorComponent, OrdinalPipe, PageEvent, PdfButtonComponent, PdfButtonModule, Permission, PermissionModule, PermissionRoutingProvider, PermissionsManagementComponent, PhoneNumberSelectorComponent, ProfileEditComponent, ProfileModule, ProfileRoutingModule, ReadMoreComponent, ReadMoreModule, RequestHelperService, ResetPasswordComponent, ResetPasswordModule, ResetPasswordRoutingModule, ResetPasswordService, RestrictorTypeSelectorComponent, RestrictorTypeSelectorModule, RestrictorsModule, Role, RoleFormButtonComponent, RoleFormComponent, RoleListComponent, RoleModule, RoleRoutingProvider, RoleService, RoleViewComponent, RoleViewModule, RouteReusableStrategy, SearchableSelectorComponent, SearchableSelectorModule, SignUpComponent, SignupModule, SignupRoutingModule, SnackModule, StorageService, SubscriptionFormComponent, SubscriptionFormModule, SubscriptionListingComponent, SubscriptionListingModule, SubscriptionPackageListingComponent, SubscriptionPackageListingModule, SubscriptionPackageViewComponent, SubscriptionPackageViewModule, SubscriptionService, SuccessSnackComponent, TagService, TechlifyAppSelectorComponent, TechlifyAppSelectorModule, TechlifyAutoCompleteSelectComponent, TechlifyChartComponent, TechlifyCompanySwitcherComponent, TechlifyCompanySwitcherModule, TechlifyConfig, TechlifyCurrencyPipe, TechlifyDeleteButtonComponent, TechlifyDetailLayoutComponent, TechlifyFeatureDirectiveModule, TechlifyFeatureEnabledDirective, TechlifyFeatureListingComponent, TechlifyFeatureModule, TechlifyFeatureRoutes, TechlifyFeatureService, TechlifyFormButtonComponent, TechlifyFormComponent, TechlifyIconComponent, TechlifyIconModule, TechlifyListComponent, TechlifyNotificationForUserComponent, TechlifyNotificationForUserModule, TechlifyNotificationForUserRoutingModule, TechlifyNotificationModule, TechlifyNotificationRoutingModule, TechlifyPeriodSelectorComponent, TechlifyService, TechlifyShowComponent, TechlifySubscriptionDirective, TechlifySubscriptionDirectiveModule, TechlifyTaggerTagFormComponent, TechlifyTaggerTagFormConfigModel, TechlifyTaggerTagFormFieldComponent, TechlifyTaggerTagFormFieldModule, TechlifyTaggerTagListComponent, TechlifyTaggerTagSelectorComponent, TechlifyTaggerTagSelectorModule, TechlifyUpdateHistoryModule, TechlifyUpdateModule, TechlifyUpdateService, TechlifyUpdatesTeaserComponent, TechlifyUpdatesTeaserModule, TechlifyViewFormComponent, TechlifyViewFormModule, TechlifyViewService, TenantFormButtonComponent, TenantListWidgetComponent, Timeline, TimelineActivityButtonComponent, TimelineActivityButtonModule, TimelineActivityListComponent, TimelineActivityListModule, TimelineFilterComponent, TimelineFilterModule, TokenInterceptor, UpdateNotifierComponent, UpdateNotifierModule, User, UserClientEnableDisableButtonComponent, UserClientEnableDisableButtonModule, UserClientsListComponent, UserClientsListModule, UserConfig, UserConfigService, UserDataService, UserEnableButtonComponent, UserEnableButtonModule, UserExploreComponent, UserFormComponent, UserListComponent, UserListPageConfig, UserMenuComponent, UserMenuModule, UserModule, UserRoutingProvider, UserSelectorComponent, UserSelectorModule, UserService, UserSessionsComponent, UserSessionsModule, UserViewComponent, UtilityModule, ViewerConfig, WrapPipe, calculateTimeline, dateValidator, esfur, estlr, esulr, parseLocalDate, techlifyFormContract, techlifyListContract, techlifyShowContract };
32600
33096
 
32601
33097
  //# sourceMappingURL=ngx-techlify-core.mjs.map