@juice-js/tenants 1.2.0-alpha.2 → 1.2.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/fesm2022/juice-js-tenants.mjs +111 -91
  2. package/fesm2022/juice-js-tenants.mjs.map +1 -1
  3. package/package.json +7 -7
  4. package/theming/_tenants.component-theme.scss +10 -10
  5. package/types/juice-js-tenants.d.ts +358 -0
  6. package/esm2022/juice-js-tenants.mjs +0 -5
  7. package/esm2022/lib/confirm-dialog/confirm-dialog.component.mjs +0 -53
  8. package/esm2022/lib/shared/custom-error-state-matcher.mjs +0 -8
  9. package/esm2022/lib/shared/material.module.mjs +0 -124
  10. package/esm2022/lib/shared/models/table.query-result.mjs +0 -2
  11. package/esm2022/lib/shared/models/tenant.create.model.mjs +0 -16
  12. package/esm2022/lib/shared/models/tenant.model.mjs +0 -2
  13. package/esm2022/lib/shared/models/tenant.setting.model.mjs +0 -13
  14. package/esm2022/lib/shared/models/tenant.status.mjs +0 -42
  15. package/esm2022/lib/shared/models/tenant.update.model.mjs +0 -7
  16. package/esm2022/lib/shared/services/tenant-admin.service.mjs +0 -91
  17. package/esm2022/lib/shared/tenant-configuration.mjs +0 -11
  18. package/esm2022/lib/tenant-create/tenant-create.component.mjs +0 -72
  19. package/esm2022/lib/tenant-detail/tenant-detail.component.mjs +0 -40
  20. package/esm2022/lib/tenant-settings/tenant-settings.component.mjs +0 -46
  21. package/esm2022/lib/tenant-summary/tenant-summary.component.mjs +0 -32
  22. package/esm2022/lib/tenant-update/tenant-update.component.mjs +0 -74
  23. package/esm2022/lib/tenants.component.mjs +0 -542
  24. package/esm2022/lib/tenants.module.mjs +0 -93
  25. package/esm2022/public-api.mjs +0 -12
  26. package/index.d.ts +0 -5
  27. package/lib/confirm-dialog/confirm-dialog.component.d.ts +0 -29
  28. package/lib/shared/custom-error-state-matcher.d.ts +0 -6
  29. package/lib/shared/material.module.d.ts +0 -33
  30. package/lib/shared/models/table.query-result.d.ts +0 -6
  31. package/lib/shared/models/tenant.create.model.d.ts +0 -11
  32. package/lib/shared/models/tenant.model.d.ts +0 -12
  33. package/lib/shared/models/tenant.setting.model.d.ts +0 -7
  34. package/lib/shared/models/tenant.status.d.ts +0 -16
  35. package/lib/shared/models/tenant.update.model.d.ts +0 -4
  36. package/lib/shared/services/tenant-admin.service.d.ts +0 -35
  37. package/lib/shared/tenant-configuration.d.ts +0 -12
  38. package/lib/tenant-create/tenant-create.component.d.ts +0 -30
  39. package/lib/tenant-detail/tenant-detail.component.d.ts +0 -17
  40. package/lib/tenant-settings/tenant-settings.component.d.ts +0 -17
  41. package/lib/tenant-summary/tenant-summary.component.d.ts +0 -14
  42. package/lib/tenant-update/tenant-update.component.d.ts +0 -28
  43. package/lib/tenants.component.d.ts +0 -78
  44. package/lib/tenants.module.d.ts +0 -23
  45. package/public-api.d.ts +0 -8
@@ -1,42 +1,40 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, Input, Output, ViewChild, Inject, NgModule } from '@angular/core';
2
+ import { Injectable, EventEmitter, ViewChild, Output, Input, ChangeDetectionStrategy, Component, Inject, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpParams } from '@angular/common/http';
5
- import * as i19 from 'ngx-mat-multi-sort';
6
- import { TableData, MatMultiSortTableDataSource, MatMultiSort, MatMultiSortModule } from 'ngx-mat-multi-sort';
7
- import * as i14 from '@angular/material/paginator';
5
+ import { withIdempotency, IdempotencyModule } from '@juice-js/core';
6
+ import * as i17 from 'ngx-mat-multi-sort';
7
+ import { TableData, MatMultiSortTableDataSource, MatMultiSort, MatMultiSortHeaderComponent } from 'ngx-mat-multi-sort';
8
+ import * as i13 from '@angular/material/paginator';
8
9
  import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
9
10
  import * as i4$2 from '@angular/forms';
10
11
  import { FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
11
12
  import * as i4$1 from '@juice-js/dict-builder';
12
13
  import { ModelType, KeyValue, DictBuilderModule } from '@juice-js/dict-builder';
13
- import * as i3 from '@angular/material/button';
14
+ import * as i2 from '@angular/material/button';
14
15
  import { MatButtonModule } from '@angular/material/button';
15
- import * as i4 from '@angular/material/dialog';
16
+ import * as i3 from '@angular/material/dialog';
16
17
  import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
17
- import * as i5 from '@angular/material/icon';
18
+ import * as i4 from '@angular/material/icon';
18
19
  import { MatIconModule } from '@angular/material/icon';
19
20
  import * as i7 from '@ngx-translate/core';
20
- import { TranslateModule } from '@ngx-translate/core';
21
- import * as i2 from '@angular/router';
21
+ import { TranslatePipe, TranslateDirective } from '@ngx-translate/core';
22
+ import * as i2$1 from '@angular/router';
22
23
  import * as i3$1 from '@angular/common';
23
24
  import { CommonModule } from '@angular/common';
24
25
  import * as i6 from '@angular/material/snack-bar';
25
26
  import { MatSnackBarModule } from '@angular/material/snack-bar';
26
- import * as i7$1 from '@angular/material/input';
27
+ import * as i6$1 from '@angular/material/input';
27
28
  import { MatInputModule } from '@angular/material/input';
28
- import * as i8 from '@angular/material/form-field';
29
- import * as i13 from '@angular/material/menu';
29
+ import * as i12 from '@angular/material/menu';
30
30
  import { MatMenuModule } from '@angular/material/menu';
31
- import * as i15 from '@angular/material/select';
31
+ import * as i14 from '@angular/material/select';
32
32
  import { MatSelectModule } from '@angular/material/select';
33
- import * as i16 from '@angular/material/core';
34
- import { MatNativeDateModule, MatRippleModule } from '@angular/material/core';
35
- import * as i17 from '@angular/material/table';
33
+ import * as i15 from '@angular/material/table';
36
34
  import { MatTableModule } from '@angular/material/table';
37
- import * as i18 from '@angular/cdk/clipboard';
35
+ import * as i16 from '@angular/cdk/clipboard';
38
36
  import { ClipboardModule } from '@angular/cdk/clipboard';
39
- import * as i6$1 from '@angular/material/list';
37
+ import * as i5 from '@angular/material/list';
40
38
  import { MatListModule } from '@angular/material/list';
41
39
  import { MatCardModule } from '@angular/material/card';
42
40
  import { MatCheckboxModule } from '@angular/material/checkbox';
@@ -44,6 +42,7 @@ import { MatDatepickerModule } from '@angular/material/datepicker';
44
42
  import { MatDividerModule } from '@angular/material/divider';
45
43
  import { MatExpansionModule } from '@angular/material/expansion';
46
44
  import { MatGridListModule } from '@angular/material/grid-list';
45
+ import { MatNativeDateModule, MatRippleModule } from '@angular/material/core';
47
46
  import { MatProgressBarModule } from '@angular/material/progress-bar';
48
47
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
49
48
  import { MatRadioModule } from '@angular/material/radio';
@@ -71,6 +70,18 @@ class TenantAdminService {
71
70
  this.http = http;
72
71
  this.options = options;
73
72
  }
73
+ /**
74
+ * Options that opt a state-changing request into the @juice-js/core idempotency
75
+ * interceptor. The operationId is stable across automatic retries of the same
76
+ * logical action (so retries reuse the same Idempotency-Key) and distinct across
77
+ * different actions/targets. Returns an empty options object when idempotency is
78
+ * disabled via TenantConfiguration.enableIdempotency === false.
79
+ */
80
+ idempotent(operationId) {
81
+ return this.options.enableIdempotency === false
82
+ ? {}
83
+ : { context: withIdempotency(operationId) };
84
+ }
74
85
  getTenants(filterText = "", statuses = [], sortColumns = [], sortDirections = [], pageIndex = 0, pageSize = 20) {
75
86
  var params = new HttpParams()
76
87
  .set('q', filterText)
@@ -86,7 +97,7 @@ class TenantAdminService {
86
97
  throw new Error("sortColumns and sortDirections must be the same length");
87
98
  for (var i = 0; i < sortColumns.length; i++) {
88
99
  params = params.set("sorts[" + i + "].property", sortColumns[i])
89
- .set("sorts[" + i + "].sortDir", sortDirections[i]);
100
+ .set("sorts[" + i + "].direction", sortDirections[i]);
90
101
  }
91
102
  }
92
103
  return this.http.get(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/tenants`, { params: params });
@@ -98,59 +109,59 @@ class TenantAdminService {
98
109
  return this.http.get(`${this.options.apiEndpoint}/${identifier}/api/v${this.options.apiVersion}/operation`);
99
110
  }
100
111
  createTenant(tenant) {
101
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin`, tenant);
112
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin`, tenant, this.idempotent(`create-tenant:${tenant.identifier}`));
102
113
  }
103
114
  updateTenant(id, tenant) {
104
- return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}`, tenant);
115
+ return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}`, tenant, this.idempotent(`update-tenant:${id}`));
105
116
  }
106
117
  deleteTenant(id) {
107
- return this.http.delete(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}`);
118
+ return this.http.delete(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}`, this.idempotent(`delete-tenant:${id}`));
108
119
  }
109
120
  activateTenant(id) {
110
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/activate`, null);
121
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/activate`, null, this.idempotent(`activate-tenant:${id}`));
111
122
  }
112
123
  deactivateTenant(id) {
113
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/deactivate`, null);
124
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/deactivate`, null, this.idempotent(`deactivate-tenant:${id}`));
114
125
  }
115
126
  reactivateTenant(id) {
116
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/reactivate`, null);
127
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/reactivate`, null, this.idempotent(`reactivate-tenant:${id}`));
117
128
  }
118
129
  suspendTenant(id) {
119
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/suspend`, null);
130
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/suspend`, null, this.idempotent(`suspend-tenant:${id}`));
120
131
  }
121
132
  approveTenant(id) {
122
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/approve`, null);
133
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/approve`, null, this.idempotent(`approve-tenant:${id}`));
123
134
  }
124
135
  rejectTenant(id) {
125
- return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/reject`, null);
136
+ return this.http.post(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/reject`, null, this.idempotent(`reject-tenant:${id}`));
126
137
  }
127
138
  abandonTenant(id) {
128
- return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/abandon`, null);
139
+ return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/abandon`, null, this.idempotent(`abandon-tenant:${id}`));
129
140
  }
130
141
  getTenantSettings(id) {
131
142
  return this.http.get(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/settings`);
132
143
  }
133
144
  updateTenantSettings(id, settings) {
134
- return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/settings`, settings);
145
+ return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/settings`, settings, this.idempotent(`update-tenant-settings:${id}`));
135
146
  }
136
147
  updateTenantProperties(id, properties) {
137
- return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/properties`, { properties });
148
+ return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/admin/${id}/properties`, { properties }, this.idempotent(`update-tenant-properties:${id}`));
138
149
  }
139
150
  getRootSettings() {
140
151
  return this.http.get(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/settings`);
141
152
  }
142
153
  updateRootSettings(settings) {
143
- return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/settings`, settings);
154
+ return this.http.put(`${this.options.apiEndpoint}/api/v${this.options.apiVersion}/settings`, settings, this.idempotent(`update-root-settings`));
144
155
  }
145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantAdminService, deps: [{ token: i1.HttpClient }, { token: TenantConfiguration }], target: i0.ɵɵFactoryTarget.Injectable }); }
146
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantAdminService, providedIn: 'root' }); }
156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantAdminService, deps: [{ token: i1.HttpClient }, { token: TenantConfiguration }], target: i0.ɵɵFactoryTarget.Injectable }); }
157
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantAdminService, providedIn: 'root' }); }
147
158
  }
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantAdminService, decorators: [{
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantAdminService, decorators: [{
149
160
  type: Injectable,
150
161
  args: [{
151
162
  providedIn: 'root'
152
163
  }]
153
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: TenantConfiguration }]; } });
164
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: TenantConfiguration }] });
154
165
 
155
166
  var TenantStatus;
156
167
  (function (TenantStatus) {
@@ -216,6 +227,7 @@ class TenantSettingsComponent {
216
227
  this.loading = false;
217
228
  }
218
229
  setModel(model) {
230
+ this.dictBuilder.type = this.type;
219
231
  this.dictBuilder.models = model;
220
232
  }
221
233
  getModel() {
@@ -228,12 +240,12 @@ class TenantSettingsComponent {
228
240
  cancel() {
229
241
  this.cancelled.emit();
230
242
  }
231
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
232
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TenantSettingsComponent, selector: "juice-tenant-settings", inputs: { title: "title" }, outputs: { saved: "saved", cancelled: "cancelled" }, viewQueries: [{ propertyName: "dictBuilder", first: true, predicate: ["dict"], descendants: true }], ngImport: i0, template: "<h2 mat-dialog-title>{{ title | translate }}</h2>\n<mat-dialog-content>\n <juice-dict-builder #dict></juice-dict-builder>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button [disabled]=\"loading\" color=\"primary\" (click)=\"save()\"><mat-icon>save</mat-icon>{{ 'Save' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>", styles: [""], dependencies: [{ kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$1.DictBuilderComponent, selector: "juice-dict-builder", inputs: ["model", "parent", "type"], outputs: ["onchange"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
243
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
244
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: TenantSettingsComponent, isStandalone: false, selector: "juice-tenant-settings", inputs: { title: "title" }, outputs: { saved: "saved", cancelled: "cancelled" }, viewQueries: [{ propertyName: "dictBuilder", first: true, predicate: ["dict"], descendants: true }], ngImport: i0, template: "<h2 mat-dialog-title>{{ title | translate }}</h2>\n<mat-dialog-content>\n <juice-dict-builder #dict></juice-dict-builder>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button [disabled]=\"loading\" color=\"primary\" (click)=\"save()\"><mat-icon>save</mat-icon>{{ 'Save' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>", styles: [""], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$1.DictBuilderComponent, selector: "juice-dict-builder", inputs: ["model", "parent", "type"], outputs: ["onchange"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
233
245
  }
234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantSettingsComponent, decorators: [{
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantSettingsComponent, decorators: [{
235
247
  type: Component,
236
- args: [{ selector: 'juice-tenant-settings', template: "<h2 mat-dialog-title>{{ title | translate }}</h2>\n<mat-dialog-content>\n <juice-dict-builder #dict></juice-dict-builder>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button [disabled]=\"loading\" color=\"primary\" (click)=\"save()\"><mat-icon>save</mat-icon>{{ 'Save' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>" }]
248
+ args: [{ selector: 'juice-tenant-settings', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<h2 mat-dialog-title>{{ title | translate }}</h2>\n<mat-dialog-content>\n <juice-dict-builder #dict></juice-dict-builder>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button [disabled]=\"loading\" color=\"primary\" (click)=\"save()\"><mat-icon>save</mat-icon>{{ 'Save' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>" }]
237
249
  }], propDecorators: { title: [{
238
250
  type: Input
239
251
  }], saved: [{
@@ -647,7 +659,7 @@ class TenantsComponent {
647
659
  let instance = dialogRef.componentInstance;
648
660
  instance.title = "Tenant properties";
649
661
  instance.loading = true;
650
- instance.type = ModelType.Configuration;
662
+ instance.type = ModelType.StandardObject;
651
663
  this.tenantService.getTenant(id).subscribe({
652
664
  next: (tenant) => {
653
665
  let props = JSON.parse(tenant.serializedProperties);
@@ -744,13 +756,13 @@ class TenantsComponent {
744
756
  });
745
757
  });
746
758
  }
747
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantsComponent, deps: [{ token: TenantAdminService }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: i3$1.Location }, { token: i2.UrlSerializer }, { token: i4$2.FormBuilder }, { token: i4.MatDialog }, { token: i6.MatSnackBar }, { token: i7.TranslateService }, { token: TenantConfiguration }], target: i0.ɵɵFactoryTarget.Component }); }
748
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TenantsComponent, selector: "juice-tenants", viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatMultiSort, descendants: true }], ngImport: i0, template: "<div class=\"mat-elevation-z2 density-compact\">\n <div class=\"controls\">\n <form [formGroup]=\"form\" class=\"table-form \">\n <mat-form-field [style.width.px]=\"300\">\n <input matInput type=\"text\" placeholder=\"{{ 'Search' | translate }}\" formControlName=\"filterText\" (keyup.enter)=\"getData()\">\n <button *ngIf=\"filterText?.value\" type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"clearFilterText();\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-form-field [style.width.px]=\"200\">\n <mat-label>{{ 'Statuses' | translate }}</mat-label>\n <mat-select formControlName=\"statuses\" multiple [compareWith]=\"statusCompareFn\" placeholder=\"{{ 'Any status' | translate }}\">\n <mat-select-trigger>\n {{statusOptions[statuses?.value?.[0]||-1] || ('Any status' | translate)}}\n <span *ngIf=\"(statuses?.value?.length || 0) > 1\" class=\"additional-selection\">\n (+{{(statuses?.value?.length || 0) - 1}} {{statuses?.value?.length === 2 ? 'other' : 'others'}})\n </span>\n </mat-select-trigger>\n <option class=\"clear-statuses mat-mdc-option\" (click)=\"clearStatuses()\">{{'Any status' | translate}}</option>\n <mat-option *ngFor=\"let s of statusOptions | keyvalue\" [value]=\"s.key\">\n {{s.value}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n \n </form>\n <div class=\"control-buttons\">\n <div class=\"control-buttons-container\">\n <button mat-button (click)=\"rootSettings()\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button type=\"button\" mat-button (click)=\"add()\" color=\"primary\"><mat-icon>add</mat-icon> {{ 'New Organization'}}</button>\n </div>\n <div class=\"spacer\"></div>\n </div>\n </div>\n <table mat-table [dataSource]=\"table.dataSource\" matMultiSort (matSortChange)=\"table.onSortEvent()\">\n \n <!--- Note that these columns can be defined in any order.\n The actual rendered columns are set as a property on the row definition\" -->\n <ng-container matColumnDef=\"identifier\">\n <th mat-header-cell *matHeaderCellDef mat-multi-sort-header=\"identifier\" disableClear=\"true\"> {{ 'Identifier' | translate }} </th>\n <td class=\"button-cell\" mat-cell *matCellDef=\"let row\"> {{row.identifier}} \n <button mat-icon-button [cdkCopyToClipboard]=\"row.identifier\" \n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </td>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef > {{'Name'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\"> \n {{row.name}}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef > {{'Status'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" [class]=\"statusHelper.getColor(row.status)\"> \n {{row.status}}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef style=\"text-align: center;\"> {{'Actions'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" > \n <div class=\"actions-cell\">\n <button mat-button (click)=\"settings(row.id)\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button mat-button (click)=\"detail(row.id)\">\n <mat-icon>info</mat-icon>{{'Detail' | translate}}\n </button>\n <button mat-button (click)=\"edit(row.id)\">\n <mat-icon>edit</mat-icon>{{'Edit' | translate}}\n </button>\n <button mat-button (click)=\"properties(row.id)\">\n <mat-icon>data_object</mat-icon>{{'Properties' | translate}}\n </button>\n <button mat-icon-button [matMenuTriggerFor]=\"appMenu\" [matMenuTriggerData]=\"{id: row.id, status: row.status}\">\n <mat-icon>more_vert</mat-icon>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\n </table>\n <mat-paginator [pageSize]=\"table.pageSize\" [pageIndex]=\"table.pageIndex\" \n [pageSizeOptions]=\"table.pageSizeOptions\"\n [length]=\"table.totalElements ? table.totalElements : 0\" \n (page)=\"table.onPaginationEvent($event)\"\n aria-label=\"Items per page\"\n showFirstLastButtons>\n </mat-paginator>\n\n</div>\n<mat-menu #appMenu=\"matMenu\" class=\"minimum-density\">\n <ng-template matMenuContent let-id=\"id\" let-status=\"status\">\n <button *ngIf=\"canApproval(status)\" class=\"color-success\" mat-menu-item (click)=\"approve(id)\">\n <mat-icon>check_circle_outline</mat-icon>{{'Approve' | translate}}\n </button>\n <button *ngIf=\"canApproval(status)\" class=\"color-warn\" mat-menu-item (click)=\"reject(id)\">\n <mat-icon>highlight_off</mat-icon>{{'Reject' | translate}}\n </button>\n <button *ngIf=\"canActivate(status)\" class=\"color-success\" mat-menu-item (click)=\"activate(id)\">\n <mat-icon>present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n <button *ngIf=\"canReactivate(status)\" class=\"color-success\" mat-menu-item (click)=\"reactivate(id)\">\n <mat-icon >present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n <button *ngIf=\"canDeactivate(status)\" class=\"color-warn\" mat-menu-item (click)=\"deactivate(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Deactivate' | translate}}\n </button>\n <button *ngIf=\"canSuspend(status)\" class=\"color-warn\" mat-menu-item (click)=\"suspend(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Suspend' | translate}}\n </button>\n <button [disabled]=\"!canAbandon(status)\" mat-menu-item (click)=\"abandon(id)\" class=\"color-warn\">\n <mat-icon >delete</mat-icon>{{'Abandon' | translate}}\n </button>\n <button *ngIf=\"canDelete(status)\" class=\"color-warn\" mat-menu-item (click)=\"delete(id)\">\n <mat-icon >delete</mat-icon>{{'Delete' | translate}}\n </button>\n </ng-template>\n</mat-menu>", styles: [":host{display:block}mat-form-field{width:100%}.additional-selection{opacity:.75;font-size:.75em;line-height:0}.clear-statuses{padding:10px;cursor:pointer}.button-cell,.actions-cell{display:flex;align-items:center;padding-top:2px;padding-bottom:2px}.button-cell{justify-content:space-between}.actions-cell{justify-content:center}.actions-cell .mdc-button{padding-top:20px;padding-bottom:20px}.table-form{display:flex;flex-direction:row;align-items:center}.table-form mat-card-actions{flex:1 1 auto}.mat-mdc-menu-item{min-height:38px}.controls{display:flex}.controls .control-buttons{flex:1;display:flex;flex-direction:column}.controls .control-buttons .control-buttons-container{flex:1;display:flex;align-items:center;justify-content:flex-end}.controls .spacer{height:22px}\n"], dependencies: [{ kind: "directive", type: i4$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i13.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i13.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i13.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i13.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i14.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i15.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i15.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i16.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i17.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i17.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i17.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i17.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i17.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i17.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i17.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i17.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i17.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i17.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i18.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "component", type: i19.MatMultiSortHeaderComponent, selector: "[mat-multi-sort-header]", inputs: ["mat-multi-sort-header"], exportAs: ["matMultiSortHeader"] }, { kind: "directive", type: i19.MatMultiSort, selector: "[matMultiSort]", exportAs: ["matMultiSort"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }] }); }
759
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsComponent, deps: [{ token: TenantAdminService }, { token: i2$1.Router }, { token: i2$1.ActivatedRoute }, { token: i3$1.Location }, { token: i2$1.UrlSerializer }, { token: i4$2.FormBuilder }, { token: i3.MatDialog }, { token: i6.MatSnackBar }, { token: i7.TranslateService }, { token: TenantConfiguration }], target: i0.ɵɵFactoryTarget.Component }); }
760
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TenantsComponent, isStandalone: false, selector: "juice-tenants", viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatMultiSort, descendants: true }], ngImport: i0, template: "<div class=\"mat-elevation-z2 density-compact\">\n <div class=\"controls\">\n <form [formGroup]=\"form\" class=\"table-form \">\n <mat-form-field [style.width.px]=\"300\">\n <input matInput type=\"text\" placeholder=\"{{ 'Search' | translate }}\" formControlName=\"filterText\" (keyup.enter)=\"getData()\">\n @if (filterText?.value) {\n <button type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"clearFilterText();\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n <mat-form-field [style.width.px]=\"200\">\n <mat-label>{{ 'Statuses' | translate }}</mat-label>\n <mat-select formControlName=\"statuses\" multiple [compareWith]=\"statusCompareFn\" placeholder=\"{{ 'Any status' | translate }}\">\n <mat-select-trigger>\n {{statusOptions[statuses?.value?.[0]||-1] || ('Any status' | translate)}}\n @if ((statuses?.value?.length || 0) > 1) {\n <span class=\"additional-selection\">\n (+{{(statuses?.value?.length || 0) - 1}} {{statuses?.value?.length === 2 ? 'other' : 'others'}})\n </span>\n }\n </mat-select-trigger>\n <option class=\"clear-statuses mat-mdc-option\" (click)=\"clearStatuses()\">{{'Any status' | translate}}</option>\n @for (s of statusOptions | keyvalue; track s) {\n <mat-option [value]=\"s.key\">\n {{s.value}}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n\n </form>\n <div class=\"control-buttons\">\n <div class=\"control-buttons-container\">\n <button mat-button (click)=\"rootSettings()\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button type=\"button\" mat-button (click)=\"add()\" color=\"primary\"><mat-icon>add</mat-icon> {{ 'New Organization'}}</button>\n </div>\n <div class=\"spacer\"></div>\n </div>\n </div>\n <table mat-table [dataSource]=\"table.dataSource\" matMultiSort (matSortChange)=\"table.onSortEvent()\">\n\n <!--- Note that these columns can be defined in any order.\n The actual rendered columns are set as a property on the row definition\" -->\n <ng-container matColumnDef=\"identifier\">\n <th mat-header-cell *matHeaderCellDef mat-multi-sort-header=\"identifier\" disableClear=\"true\"> {{ 'Identifier' | translate }} </th>\n <td class=\"button-cell\" mat-cell *matCellDef=\"let row\"> {{row.identifier}}\n <button mat-icon-button [cdkCopyToClipboard]=\"row.identifier\"\n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </td>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef > {{'Name'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\">\n {{row.name}}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef > {{'Status'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" [class]=\"statusHelper.getColor(row.status)\">\n {{row.status}}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef style=\"text-align: center;\"> {{'Actions'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" >\n <div class=\"actions-cell\">\n <button mat-button (click)=\"settings(row.id)\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button mat-button (click)=\"detail(row.id)\">\n <mat-icon>info</mat-icon>{{'Detail' | translate}}\n </button>\n <button mat-button (click)=\"edit(row.id)\">\n <mat-icon>edit</mat-icon>{{'Edit' | translate}}\n </button>\n <button mat-button (click)=\"properties(row.id)\">\n <mat-icon>data_object</mat-icon>{{'Properties' | translate}}\n </button>\n <button mat-icon-button [matMenuTriggerFor]=\"appMenu\" [matMenuTriggerData]=\"{id: row.id, status: row.status}\">\n <mat-icon>more_vert</mat-icon>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\n </table>\n <mat-paginator [pageSize]=\"table.pageSize\" [pageIndex]=\"table.pageIndex\"\n [pageSizeOptions]=\"table.pageSizeOptions\"\n [length]=\"table.totalElements ? table.totalElements : 0\"\n (page)=\"table.onPaginationEvent($event)\"\n aria-label=\"Items per page\"\n showFirstLastButtons>\n </mat-paginator>\n\n</div>\n<mat-menu #appMenu=\"matMenu\" class=\"minimum-density\">\n <ng-template matMenuContent let-id=\"id\" let-status=\"status\">\n @if (canApproval(status)) {\n <button class=\"color-success\" mat-menu-item (click)=\"approve(id)\">\n <mat-icon>check_circle_outline</mat-icon>{{'Approve' | translate}}\n </button>\n }\n @if (canApproval(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"reject(id)\">\n <mat-icon>highlight_off</mat-icon>{{'Reject' | translate}}\n </button>\n }\n @if (canActivate(status)) {\n <button class=\"color-success\" mat-menu-item (click)=\"activate(id)\">\n <mat-icon>present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n }\n @if (canReactivate(status)) {\n <button class=\"color-success\" mat-menu-item (click)=\"reactivate(id)\">\n <mat-icon >present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n }\n @if (canDeactivate(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"deactivate(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Deactivate' | translate}}\n </button>\n }\n @if (canSuspend(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"suspend(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Suspend' | translate}}\n </button>\n }\n <button [disabled]=\"!canAbandon(status)\" mat-menu-item (click)=\"abandon(id)\" class=\"color-warn\">\n <mat-icon >delete</mat-icon>{{'Abandon' | translate}}\n </button>\n @if (canDelete(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"delete(id)\">\n <mat-icon >delete</mat-icon>{{'Delete' | translate}}\n </button>\n }\n </ng-template>\n</mat-menu>", styles: [":host{display:block}mat-form-field{width:100%}.additional-selection{opacity:.75;font-size:.75em;line-height:0}.clear-statuses{padding:10px;cursor:pointer}.button-cell,.actions-cell{display:flex;align-items:center;padding-top:2px;padding-bottom:2px}.button-cell{justify-content:space-between}.actions-cell{justify-content:center}.actions-cell .mdc-button{padding-top:20px;padding-bottom:20px}.table-form{display:flex;flex-direction:row;align-items:center}.table-form mat-card-actions{flex:1 1 auto}.mat-mdc-menu-item{min-height:38px}.controls{display:flex}.controls .control-buttons{flex:1;display:flex;flex-direction:column}.controls .control-buttons .control-buttons-container{flex:1;display:flex;align-items:center;justify-content:flex-end}.controls .spacer{height:22px}\n"], dependencies: [{ kind: "directive", type: i4$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4$2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i6$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i12.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i12.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i12.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i12.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: i13.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i14.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i14.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i14.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i15.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i15.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i15.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i15.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i15.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i15.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i15.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i15.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i15.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i15.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i16.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "directive", type: i17.MatMultiSort, selector: "[matMultiSort]", exportAs: ["matMultiSort"] }, { kind: "component", type: i17.MatMultiSortHeaderComponent, selector: "[mat-multi-sort-header]", inputs: ["mat-multi-sort-header"], exportAs: ["matMultiSortHeader"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
749
761
  }
750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantsComponent, decorators: [{
762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsComponent, decorators: [{
751
763
  type: Component,
752
- args: [{ selector: 'juice-tenants', template: "<div class=\"mat-elevation-z2 density-compact\">\n <div class=\"controls\">\n <form [formGroup]=\"form\" class=\"table-form \">\n <mat-form-field [style.width.px]=\"300\">\n <input matInput type=\"text\" placeholder=\"{{ 'Search' | translate }}\" formControlName=\"filterText\" (keyup.enter)=\"getData()\">\n <button *ngIf=\"filterText?.value\" type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"clearFilterText();\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-form-field [style.width.px]=\"200\">\n <mat-label>{{ 'Statuses' | translate }}</mat-label>\n <mat-select formControlName=\"statuses\" multiple [compareWith]=\"statusCompareFn\" placeholder=\"{{ 'Any status' | translate }}\">\n <mat-select-trigger>\n {{statusOptions[statuses?.value?.[0]||-1] || ('Any status' | translate)}}\n <span *ngIf=\"(statuses?.value?.length || 0) > 1\" class=\"additional-selection\">\n (+{{(statuses?.value?.length || 0) - 1}} {{statuses?.value?.length === 2 ? 'other' : 'others'}})\n </span>\n </mat-select-trigger>\n <option class=\"clear-statuses mat-mdc-option\" (click)=\"clearStatuses()\">{{'Any status' | translate}}</option>\n <mat-option *ngFor=\"let s of statusOptions | keyvalue\" [value]=\"s.key\">\n {{s.value}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n \n </form>\n <div class=\"control-buttons\">\n <div class=\"control-buttons-container\">\n <button mat-button (click)=\"rootSettings()\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button type=\"button\" mat-button (click)=\"add()\" color=\"primary\"><mat-icon>add</mat-icon> {{ 'New Organization'}}</button>\n </div>\n <div class=\"spacer\"></div>\n </div>\n </div>\n <table mat-table [dataSource]=\"table.dataSource\" matMultiSort (matSortChange)=\"table.onSortEvent()\">\n \n <!--- Note that these columns can be defined in any order.\n The actual rendered columns are set as a property on the row definition\" -->\n <ng-container matColumnDef=\"identifier\">\n <th mat-header-cell *matHeaderCellDef mat-multi-sort-header=\"identifier\" disableClear=\"true\"> {{ 'Identifier' | translate }} </th>\n <td class=\"button-cell\" mat-cell *matCellDef=\"let row\"> {{row.identifier}} \n <button mat-icon-button [cdkCopyToClipboard]=\"row.identifier\" \n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </td>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef > {{'Name'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\"> \n {{row.name}}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef > {{'Status'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" [class]=\"statusHelper.getColor(row.status)\"> \n {{row.status}}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef style=\"text-align: center;\"> {{'Actions'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" > \n <div class=\"actions-cell\">\n <button mat-button (click)=\"settings(row.id)\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button mat-button (click)=\"detail(row.id)\">\n <mat-icon>info</mat-icon>{{'Detail' | translate}}\n </button>\n <button mat-button (click)=\"edit(row.id)\">\n <mat-icon>edit</mat-icon>{{'Edit' | translate}}\n </button>\n <button mat-button (click)=\"properties(row.id)\">\n <mat-icon>data_object</mat-icon>{{'Properties' | translate}}\n </button>\n <button mat-icon-button [matMenuTriggerFor]=\"appMenu\" [matMenuTriggerData]=\"{id: row.id, status: row.status}\">\n <mat-icon>more_vert</mat-icon>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\n </table>\n <mat-paginator [pageSize]=\"table.pageSize\" [pageIndex]=\"table.pageIndex\" \n [pageSizeOptions]=\"table.pageSizeOptions\"\n [length]=\"table.totalElements ? table.totalElements : 0\" \n (page)=\"table.onPaginationEvent($event)\"\n aria-label=\"Items per page\"\n showFirstLastButtons>\n </mat-paginator>\n\n</div>\n<mat-menu #appMenu=\"matMenu\" class=\"minimum-density\">\n <ng-template matMenuContent let-id=\"id\" let-status=\"status\">\n <button *ngIf=\"canApproval(status)\" class=\"color-success\" mat-menu-item (click)=\"approve(id)\">\n <mat-icon>check_circle_outline</mat-icon>{{'Approve' | translate}}\n </button>\n <button *ngIf=\"canApproval(status)\" class=\"color-warn\" mat-menu-item (click)=\"reject(id)\">\n <mat-icon>highlight_off</mat-icon>{{'Reject' | translate}}\n </button>\n <button *ngIf=\"canActivate(status)\" class=\"color-success\" mat-menu-item (click)=\"activate(id)\">\n <mat-icon>present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n <button *ngIf=\"canReactivate(status)\" class=\"color-success\" mat-menu-item (click)=\"reactivate(id)\">\n <mat-icon >present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n <button *ngIf=\"canDeactivate(status)\" class=\"color-warn\" mat-menu-item (click)=\"deactivate(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Deactivate' | translate}}\n </button>\n <button *ngIf=\"canSuspend(status)\" class=\"color-warn\" mat-menu-item (click)=\"suspend(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Suspend' | translate}}\n </button>\n <button [disabled]=\"!canAbandon(status)\" mat-menu-item (click)=\"abandon(id)\" class=\"color-warn\">\n <mat-icon >delete</mat-icon>{{'Abandon' | translate}}\n </button>\n <button *ngIf=\"canDelete(status)\" class=\"color-warn\" mat-menu-item (click)=\"delete(id)\">\n <mat-icon >delete</mat-icon>{{'Delete' | translate}}\n </button>\n </ng-template>\n</mat-menu>", styles: [":host{display:block}mat-form-field{width:100%}.additional-selection{opacity:.75;font-size:.75em;line-height:0}.clear-statuses{padding:10px;cursor:pointer}.button-cell,.actions-cell{display:flex;align-items:center;padding-top:2px;padding-bottom:2px}.button-cell{justify-content:space-between}.actions-cell{justify-content:center}.actions-cell .mdc-button{padding-top:20px;padding-bottom:20px}.table-form{display:flex;flex-direction:row;align-items:center}.table-form mat-card-actions{flex:1 1 auto}.mat-mdc-menu-item{min-height:38px}.controls{display:flex}.controls .control-buttons{flex:1;display:flex;flex-direction:column}.controls .control-buttons .control-buttons-container{flex:1;display:flex;align-items:center;justify-content:flex-end}.controls .spacer{height:22px}\n"] }]
753
- }], ctorParameters: function () { return [{ type: TenantAdminService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: i3$1.Location }, { type: i2.UrlSerializer }, { type: i4$2.FormBuilder }, { type: i4.MatDialog }, { type: i6.MatSnackBar }, { type: i7.TranslateService }, { type: TenantConfiguration }]; }, propDecorators: { paginator: [{
764
+ args: [{ selector: 'juice-tenants', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"mat-elevation-z2 density-compact\">\n <div class=\"controls\">\n <form [formGroup]=\"form\" class=\"table-form \">\n <mat-form-field [style.width.px]=\"300\">\n <input matInput type=\"text\" placeholder=\"{{ 'Search' | translate }}\" formControlName=\"filterText\" (keyup.enter)=\"getData()\">\n @if (filterText?.value) {\n <button type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"clearFilterText();\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n <mat-form-field [style.width.px]=\"200\">\n <mat-label>{{ 'Statuses' | translate }}</mat-label>\n <mat-select formControlName=\"statuses\" multiple [compareWith]=\"statusCompareFn\" placeholder=\"{{ 'Any status' | translate }}\">\n <mat-select-trigger>\n {{statusOptions[statuses?.value?.[0]||-1] || ('Any status' | translate)}}\n @if ((statuses?.value?.length || 0) > 1) {\n <span class=\"additional-selection\">\n (+{{(statuses?.value?.length || 0) - 1}} {{statuses?.value?.length === 2 ? 'other' : 'others'}})\n </span>\n }\n </mat-select-trigger>\n <option class=\"clear-statuses mat-mdc-option\" (click)=\"clearStatuses()\">{{'Any status' | translate}}</option>\n @for (s of statusOptions | keyvalue; track s) {\n <mat-option [value]=\"s.key\">\n {{s.value}}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n\n </form>\n <div class=\"control-buttons\">\n <div class=\"control-buttons-container\">\n <button mat-button (click)=\"rootSettings()\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button type=\"button\" mat-button (click)=\"add()\" color=\"primary\"><mat-icon>add</mat-icon> {{ 'New Organization'}}</button>\n </div>\n <div class=\"spacer\"></div>\n </div>\n </div>\n <table mat-table [dataSource]=\"table.dataSource\" matMultiSort (matSortChange)=\"table.onSortEvent()\">\n\n <!--- Note that these columns can be defined in any order.\n The actual rendered columns are set as a property on the row definition\" -->\n <ng-container matColumnDef=\"identifier\">\n <th mat-header-cell *matHeaderCellDef mat-multi-sort-header=\"identifier\" disableClear=\"true\"> {{ 'Identifier' | translate }} </th>\n <td class=\"button-cell\" mat-cell *matCellDef=\"let row\"> {{row.identifier}}\n <button mat-icon-button [cdkCopyToClipboard]=\"row.identifier\"\n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </td>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef > {{'Name'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\">\n {{row.name}}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef > {{'Status'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" [class]=\"statusHelper.getColor(row.status)\">\n {{row.status}}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef style=\"text-align: center;\"> {{'Actions'|translate}} </th>\n <td mat-cell *matCellDef=\"let row\" >\n <div class=\"actions-cell\">\n <button mat-button (click)=\"settings(row.id)\">\n <mat-icon>settings</mat-icon>{{'Settings' | translate}}\n </button>\n <button mat-button (click)=\"detail(row.id)\">\n <mat-icon>info</mat-icon>{{'Detail' | translate}}\n </button>\n <button mat-button (click)=\"edit(row.id)\">\n <mat-icon>edit</mat-icon>{{'Edit' | translate}}\n </button>\n <button mat-button (click)=\"properties(row.id)\">\n <mat-icon>data_object</mat-icon>{{'Properties' | translate}}\n </button>\n <button mat-icon-button [matMenuTriggerFor]=\"appMenu\" [matMenuTriggerData]=\"{id: row.id, status: row.status}\">\n <mat-icon>more_vert</mat-icon>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\n </table>\n <mat-paginator [pageSize]=\"table.pageSize\" [pageIndex]=\"table.pageIndex\"\n [pageSizeOptions]=\"table.pageSizeOptions\"\n [length]=\"table.totalElements ? table.totalElements : 0\"\n (page)=\"table.onPaginationEvent($event)\"\n aria-label=\"Items per page\"\n showFirstLastButtons>\n </mat-paginator>\n\n</div>\n<mat-menu #appMenu=\"matMenu\" class=\"minimum-density\">\n <ng-template matMenuContent let-id=\"id\" let-status=\"status\">\n @if (canApproval(status)) {\n <button class=\"color-success\" mat-menu-item (click)=\"approve(id)\">\n <mat-icon>check_circle_outline</mat-icon>{{'Approve' | translate}}\n </button>\n }\n @if (canApproval(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"reject(id)\">\n <mat-icon>highlight_off</mat-icon>{{'Reject' | translate}}\n </button>\n }\n @if (canActivate(status)) {\n <button class=\"color-success\" mat-menu-item (click)=\"activate(id)\">\n <mat-icon>present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n }\n @if (canReactivate(status)) {\n <button class=\"color-success\" mat-menu-item (click)=\"reactivate(id)\">\n <mat-icon >present_to_all</mat-icon>{{'Activate' | translate}}\n </button>\n }\n @if (canDeactivate(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"deactivate(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Deactivate' | translate}}\n </button>\n }\n @if (canSuspend(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"suspend(id)\">\n <mat-icon >cancel_presentation</mat-icon>{{'Suspend' | translate}}\n </button>\n }\n <button [disabled]=\"!canAbandon(status)\" mat-menu-item (click)=\"abandon(id)\" class=\"color-warn\">\n <mat-icon >delete</mat-icon>{{'Abandon' | translate}}\n </button>\n @if (canDelete(status)) {\n <button class=\"color-warn\" mat-menu-item (click)=\"delete(id)\">\n <mat-icon >delete</mat-icon>{{'Delete' | translate}}\n </button>\n }\n </ng-template>\n</mat-menu>", styles: [":host{display:block}mat-form-field{width:100%}.additional-selection{opacity:.75;font-size:.75em;line-height:0}.clear-statuses{padding:10px;cursor:pointer}.button-cell,.actions-cell{display:flex;align-items:center;padding-top:2px;padding-bottom:2px}.button-cell{justify-content:space-between}.actions-cell{justify-content:center}.actions-cell .mdc-button{padding-top:20px;padding-bottom:20px}.table-form{display:flex;flex-direction:row;align-items:center}.table-form mat-card-actions{flex:1 1 auto}.mat-mdc-menu-item{min-height:38px}.controls{display:flex}.controls .control-buttons{flex:1;display:flex;flex-direction:column}.controls .control-buttons .control-buttons-container{flex:1;display:flex;align-items:center;justify-content:flex-end}.controls .spacer{height:22px}\n"] }]
765
+ }], ctorParameters: () => [{ type: TenantAdminService }, { type: i2$1.Router }, { type: i2$1.ActivatedRoute }, { type: i3$1.Location }, { type: i2$1.UrlSerializer }, { type: i4$2.FormBuilder }, { type: i3.MatDialog }, { type: i6.MatSnackBar }, { type: i7.TranslateService }, { type: TenantConfiguration }], propDecorators: { paginator: [{
754
766
  type: ViewChild,
755
767
  args: [MatPaginator]
756
768
  }], sort: [{
@@ -777,13 +789,13 @@ class TenantDetailComponent {
777
789
  ngOnChanges() {
778
790
  this.loadTenant(this.tenantIdentifier);
779
791
  }
780
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantDetailComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
781
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TenantDetailComponent, selector: "juice-tenant-detail", inputs: { tenantIdentifier: "tenantIdentifier" }, usesOnChanges: true, ngImport: i0, template: "<h2 mat-dialog-title>{{ 'Organization information' | translate }}</h2>\n\n<mat-dialog-content *ngIf=\"tenant\">\n <h3>{{ tenant.name }}</h3>\n\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }} \n <button style=\"margin-left: 6px;\" mat-icon-button [cdkCopyToClipboard]=\"tenant.id\" \n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine [class]=\"statusHelper.getColor(tenant.status)\">{{ tenant.status }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Owner' | translate }}</span>\n <span matListItemLine>{{ tenant.ownerName }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Properties' | translate }}</span>\n <span matListItemLine *ngFor=\"let property of properties | keyvalue\">\n {{ property.key }}: {{ property.value }}\n </span>\n </mat-list-item>\n </mat-list>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$1.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i6$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6$1.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i6$1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i18.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }] }); }
792
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantDetailComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
793
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TenantDetailComponent, isStandalone: false, selector: "juice-tenant-detail", inputs: { tenantIdentifier: "tenantIdentifier" }, usesOnChanges: true, ngImport: i0, template: "<h2 mat-dialog-title>{{ 'Organization information' | translate }}</h2>\n\n@if (tenant) {\n <mat-dialog-content>\n <h3>{{ tenant.name }}</h3>\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }}\n <button style=\"margin-left: 6px;\" mat-icon-button [cdkCopyToClipboard]=\"tenant.id\"\n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine [class]=\"statusHelper.getColor(tenant.status)\">{{ tenant.status }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Owner' | translate }}</span>\n <span matListItemLine>{{ tenant.ownerName }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Properties' | translate }}</span>\n @for (property of properties | keyvalue; track property) {\n <span matListItemLine>\n {{ property.key }}: {{ property.value }}\n </span>\n }\n </mat-list-item>\n </mat-list>\n </mat-dialog-content>\n}\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i5.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i5.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i16.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
782
794
  }
783
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantDetailComponent, decorators: [{
795
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantDetailComponent, decorators: [{
784
796
  type: Component,
785
- args: [{ selector: 'juice-tenant-detail', template: "<h2 mat-dialog-title>{{ 'Organization information' | translate }}</h2>\n\n<mat-dialog-content *ngIf=\"tenant\">\n <h3>{{ tenant.name }}</h3>\n\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }} \n <button style=\"margin-left: 6px;\" mat-icon-button [cdkCopyToClipboard]=\"tenant.id\" \n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine [class]=\"statusHelper.getColor(tenant.status)\">{{ tenant.status }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Owner' | translate }}</span>\n <span matListItemLine>{{ tenant.ownerName }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Properties' | translate }}</span>\n <span matListItemLine *ngFor=\"let property of properties | keyvalue\">\n {{ property.key }}: {{ property.value }}\n </span>\n </mat-list-item>\n </mat-list>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}\n"] }]
786
- }], ctorParameters: function () { return [{ type: TenantAdminService }]; }, propDecorators: { tenantIdentifier: [{
797
+ args: [{ selector: 'juice-tenant-detail', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<h2 mat-dialog-title>{{ 'Organization information' | translate }}</h2>\n\n@if (tenant) {\n <mat-dialog-content>\n <h3>{{ tenant.name }}</h3>\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }}\n <button style=\"margin-left: 6px;\" mat-icon-button [cdkCopyToClipboard]=\"tenant.id\"\n [attr.aria-label]=\"'Copy' | translate\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine [class]=\"statusHelper.getColor(tenant.status)\">{{ tenant.status }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Owner' | translate }}</span>\n <span matListItemLine>{{ tenant.ownerName }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Properties' | translate }}</span>\n @for (property of properties | keyvalue; track property) {\n <span matListItemLine>\n {{ property.key }}: {{ property.value }}\n </span>\n }\n </mat-list-item>\n </mat-list>\n </mat-dialog-content>\n}\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}\n"] }]
798
+ }], ctorParameters: () => [{ type: TenantAdminService }], propDecorators: { tenantIdentifier: [{
787
799
  type: Input
788
800
  }] } });
789
801
 
@@ -800,13 +812,13 @@ class TenantSummaryComponent {
800
812
  ngOnChanges() {
801
813
  this.loadTenant(this.tenantIdentifier);
802
814
  }
803
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantSummaryComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
804
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TenantSummaryComponent, selector: "juice-tenant-summary", inputs: { tenantIdentifier: "tenantIdentifier" }, usesOnChanges: true, ngImport: i0, template: "<h2 mat-dialog-title>{{ 'Organization summary' | translate }}</h2>\n\n<mat-dialog-content *ngIf=\"tenant\">\n <h3>{{ tenant.name }}</h3>\n\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine>{{ tenant.status }}</span>\n </mat-list-item>\n\n </mat-list>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close><mat-icon>close</mat-icon>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block;margin:10px}\n"], dependencies: [{ kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$1.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i6$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6$1.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i6$1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
815
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantSummaryComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
816
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TenantSummaryComponent, isStandalone: false, selector: "juice-tenant-summary", inputs: { tenantIdentifier: "tenantIdentifier" }, usesOnChanges: true, ngImport: i0, template: "<h2 mat-dialog-title>{{ 'Organization summary' | translate }}</h2>\n\n@if (tenant) {\n <mat-dialog-content>\n <h3>{{ tenant.name }}</h3>\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine>{{ tenant.status }}</span>\n </mat-list-item>\n </mat-list>\n </mat-dialog-content>\n}\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close><mat-icon>close</mat-icon>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block;margin:10px}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i5.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i5.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
805
817
  }
806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantSummaryComponent, decorators: [{
818
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantSummaryComponent, decorators: [{
807
819
  type: Component,
808
- args: [{ selector: 'juice-tenant-summary', template: "<h2 mat-dialog-title>{{ 'Organization summary' | translate }}</h2>\n\n<mat-dialog-content *ngIf=\"tenant\">\n <h3>{{ tenant.name }}</h3>\n\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine>{{ tenant.status }}</span>\n </mat-list-item>\n\n </mat-list>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close><mat-icon>close</mat-icon>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block;margin:10px}\n"] }]
809
- }], ctorParameters: function () { return [{ type: TenantAdminService }]; }, propDecorators: { tenantIdentifier: [{
820
+ args: [{ selector: 'juice-tenant-summary', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<h2 mat-dialog-title>{{ 'Organization summary' | translate }}</h2>\n\n@if (tenant) {\n <mat-dialog-content>\n <h3>{{ tenant.name }}</h3>\n <mat-list>\n <mat-list-item>\n <span matListItemTitle>{{ 'Unique Id' | translate }}</span>\n <span matListItemLine>{{ tenant.id }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Identifier' | translate }}</span>\n <span matListItemLine>{{ tenant.identifier }}</span>\n </mat-list-item>\n <mat-list-item>\n <span matListItemTitle>{{ 'Status' | translate }}</span>\n <span matListItemLine>{{ tenant.status }}</span>\n </mat-list-item>\n </mat-list>\n </mat-dialog-content>\n}\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button mat-dialog-close><mat-icon>close</mat-icon>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block;margin:10px}\n"] }]
821
+ }], ctorParameters: () => [{ type: TenantAdminService }], propDecorators: { tenantIdentifier: [{
810
822
  type: Input
811
823
  }] } });
812
824
 
@@ -880,13 +892,13 @@ class TenantCreateComponent {
880
892
  cancel() {
881
893
  this.cancelled.emit();
882
894
  }
883
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantCreateComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
884
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TenantCreateComponent, selector: "juice-tenant-create", outputs: { created: "created", cancelled: "cancelled" }, ngImport: i0, template: "<h2 mat-dialog-title>{{ 'Create new organization' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"identifierFormControl.hasError('required')\">\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"nameFormControl.hasError('required')\">\n {{ 'Please enter a name' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin user' | translate }}</mat-label>\n <input matInput [formControl]=\"userFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"userFormControl.hasError('email') && !emailFormControl.hasError('required')\">\n {{ 'Please enter a valid user name' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin password' | translate }}</mat-label>\n <input matInput type=\"password\" [(ngModel)]=\"model.properties.AdminPassword\">\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin email' | translate }}</mat-label>\n <input matInput [formControl]=\"emailFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"emailFormControl.hasError('email') && !emailFormControl.hasError('required')\">\n {{ 'Please enter a valid email address' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'DB connection' | translate }}</mat-label>\n <input matInput [(ngModel)]=\"model.properties.ConnectionString\">\n </mat-form-field>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"createForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"], dependencies: [{ kind: "directive", type: i4$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
895
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantCreateComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
896
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TenantCreateComponent, isStandalone: false, selector: "juice-tenant-create", outputs: { created: "created", cancelled: "cancelled" }, ngImport: i0, template: "<h2 mat-dialog-title>{{ 'Create new organization' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n @if (identifierFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n @if (nameFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a name' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin user' | translate }}</mat-label>\n <input matInput [formControl]=\"userFormControl\" [errorStateMatcher]=\"matcher\">\n @if (userFormControl.hasError('email') && !emailFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a valid user name' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin password' | translate }}</mat-label>\n <input matInput type=\"password\" [(ngModel)]=\"model.properties.AdminPassword\">\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin email' | translate }}</mat-label>\n <input matInput [formControl]=\"emailFormControl\" [errorStateMatcher]=\"matcher\">\n @if (emailFormControl.hasError('email') && !emailFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a valid email address' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'DB connection' | translate }}</mat-label>\n <input matInput [(ngModel)]=\"model.properties.ConnectionString\">\n </mat-form-field>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"createForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"], dependencies: [{ kind: "directive", type: i4$2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i6$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
885
897
  }
886
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantCreateComponent, decorators: [{
898
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantCreateComponent, decorators: [{
887
899
  type: Component,
888
- args: [{ selector: 'juice-tenant-create', template: "<h2 mat-dialog-title>{{ 'Create new organization' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"identifierFormControl.hasError('required')\">\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"nameFormControl.hasError('required')\">\n {{ 'Please enter a name' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin user' | translate }}</mat-label>\n <input matInput [formControl]=\"userFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"userFormControl.hasError('email') && !emailFormControl.hasError('required')\">\n {{ 'Please enter a valid user name' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin password' | translate }}</mat-label>\n <input matInput type=\"password\" [(ngModel)]=\"model.properties.AdminPassword\">\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin email' | translate }}</mat-label>\n <input matInput [formControl]=\"emailFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"emailFormControl.hasError('email') && !emailFormControl.hasError('required')\">\n {{ 'Please enter a valid email address' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'DB connection' | translate }}</mat-label>\n <input matInput [(ngModel)]=\"model.properties.ConnectionString\">\n </mat-form-field>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"createForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"] }]
889
- }], ctorParameters: function () { return [{ type: TenantAdminService }]; }, propDecorators: { created: [{
900
+ args: [{ selector: 'juice-tenant-create', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<h2 mat-dialog-title>{{ 'Create new organization' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n @if (identifierFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n @if (nameFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a name' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin user' | translate }}</mat-label>\n <input matInput [formControl]=\"userFormControl\" [errorStateMatcher]=\"matcher\">\n @if (userFormControl.hasError('email') && !emailFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a valid user name' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin password' | translate }}</mat-label>\n <input matInput type=\"password\" [(ngModel)]=\"model.properties.AdminPassword\">\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Admin email' | translate }}</mat-label>\n <input matInput [formControl]=\"emailFormControl\" [errorStateMatcher]=\"matcher\">\n @if (emailFormControl.hasError('email') && !emailFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a valid email address' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'DB connection' | translate }}</mat-label>\n <input matInput [(ngModel)]=\"model.properties.ConnectionString\">\n </mat-form-field>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"createForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"] }]
901
+ }], ctorParameters: () => [{ type: TenantAdminService }], propDecorators: { created: [{
890
902
  type: Output
891
903
  }], cancelled: [{
892
904
  type: Output
@@ -945,13 +957,13 @@ class TenantUpdateComponent {
945
957
  cancel() {
946
958
  this.cancelled.emit(this.id);
947
959
  }
948
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantUpdateComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
949
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TenantUpdateComponent, selector: "juice-tenant-update", inputs: { id: "id" }, outputs: { updated: "updated", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "\n<h2 mat-dialog-title>{{ 'Update organization information' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"identifierFormControl.hasError('required')\">\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"nameFormControl.hasError('required')\">\n {{ 'Please enter a name' | translate }}\n </mat-error>\n </mat-form-field>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"updateForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"], dependencies: [{ kind: "directive", type: i4$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
960
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantUpdateComponent, deps: [{ token: TenantAdminService }], target: i0.ɵɵFactoryTarget.Component }); }
961
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TenantUpdateComponent, isStandalone: false, selector: "juice-tenant-update", inputs: { id: "id" }, outputs: { updated: "updated", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "\n<h2 mat-dialog-title>{{ 'Update organization information' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n @if (identifierFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n @if (nameFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a name' | translate }}\n </mat-error>\n }\n </mat-form-field>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"updateForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"], dependencies: [{ kind: "directive", type: i4$2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i6$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
950
962
  }
951
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantUpdateComponent, decorators: [{
963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantUpdateComponent, decorators: [{
952
964
  type: Component,
953
- args: [{ selector: 'juice-tenant-update', template: "\n<h2 mat-dialog-title>{{ 'Update organization information' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"identifierFormControl.hasError('required')\">\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n <mat-error *ngIf=\"nameFormControl.hasError('required')\">\n {{ 'Please enter a name' | translate }}\n </mat-error>\n </mat-form-field>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"updateForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"] }]
954
- }], ctorParameters: function () { return [{ type: TenantAdminService }]; }, propDecorators: { id: [{
965
+ args: [{ selector: 'juice-tenant-update', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "\n<h2 mat-dialog-title>{{ 'Update organization information' | translate }}</h2>\n\n<mat-dialog-content>\n <mat-form-field>\n <mat-label>{{ 'Identifier' | translate }}</mat-label>\n <input matInput [formControl]=\"identifierFormControl\" [errorStateMatcher]=\"matcher\">\n @if (identifierFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter an identifier' | translate }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>{{ 'Organization name' | translate }}</mat-label>\n <input matInput [formControl]=\"nameFormControl\" [errorStateMatcher]=\"matcher\">\n @if (nameFormControl.hasError('required')) {\n <mat-error>\n {{ 'Please enter a name' | translate }}\n </mat-error>\n }\n </mat-form-field>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button color=\"primary\" (click)=\"submit()\" [disabled]=\"updateForm.invalid\"><mat-icon>save</mat-icon>{{ 'Submit' | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\"><mat-icon>cancel</mat-icon>{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>", styles: [":host{display:block}mat-form-field{width:100%}.mat-mdc-button-base{margin:0 8px 8px 0}\n"] }]
966
+ }], ctorParameters: () => [{ type: TenantAdminService }], propDecorators: { id: [{
955
967
  type: Input
956
968
  }], updated: [{
957
969
  type: Output
@@ -991,24 +1003,24 @@ class ConfirmDialogComponent {
991
1003
  cancel() {
992
1004
  this.cancelled.emit();
993
1005
  }
994
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
995
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ConfirmDialogComponent, selector: "juice-confirm-dialog", outputs: { confirmed: "confirmed", cancelled: "cancelled" }, ngImport: i0, template: "<h2 mat-dialog-title>{{ confirmTitle | translate }}</h2>\n<mat-dialog-content>\n <p [class]=\"confirmMessageClasses\">{{ confirmMessage | translate }}</p>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button (click)=\"confirm()\" [color]=\"confirmButtonColor\">{{ confirmButtonText | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\">{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host mat-card{width:350px}:host mat-card-subtitle{padding-top:12px!important;padding:12px}\n"], dependencies: [{ kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
1006
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
1007
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ConfirmDialogComponent, isStandalone: false, selector: "juice-confirm-dialog", outputs: { confirmed: "confirmed", cancelled: "cancelled" }, ngImport: i0, template: "<h2 mat-dialog-title>{{ confirmTitle | translate }}</h2>\n<mat-dialog-content>\n <p [class]=\"confirmMessageClasses\">{{ confirmMessage | translate }}</p>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button (click)=\"confirm()\" [color]=\"confirmButtonColor\">{{ confirmButtonText | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\">{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host mat-card{width:350px}:host mat-card-subtitle{padding-top:12px!important;padding:12px}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
996
1008
  }
997
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
1009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
998
1010
  type: Component,
999
- args: [{ selector: 'juice-confirm-dialog', template: "<h2 mat-dialog-title>{{ confirmTitle | translate }}</h2>\n<mat-dialog-content>\n <p [class]=\"confirmMessageClasses\">{{ confirmMessage | translate }}</p>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button (click)=\"confirm()\" [color]=\"confirmButtonColor\">{{ confirmButtonText | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\">{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host mat-card{width:350px}:host mat-card-subtitle{padding-top:12px!important;padding:12px}\n"] }]
1000
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1011
+ args: [{ selector: 'juice-confirm-dialog', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<h2 mat-dialog-title>{{ confirmTitle | translate }}</h2>\n<mat-dialog-content>\n <p [class]=\"confirmMessageClasses\">{{ confirmMessage | translate }}</p>\n</mat-dialog-content>\n<mat-dialog-actions align=\"end\">\n <button mat-raised-button (click)=\"confirm()\" [color]=\"confirmButtonColor\">{{ confirmButtonText | translate }}</button>\n <button mat-raised-button (click)=\"cancel()\">{{ 'Cancel' | translate }}</button>\n</mat-dialog-actions>\n", styles: [":host mat-card{width:350px}:host mat-card-subtitle{padding-top:12px!important;padding:12px}\n"] }]
1012
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1001
1013
  type: Inject,
1002
1014
  args: [MAT_DIALOG_DATA]
1003
- }] }]; }, propDecorators: { confirmed: [{
1015
+ }] }], propDecorators: { confirmed: [{
1004
1016
  type: Output
1005
1017
  }], cancelled: [{
1006
1018
  type: Output
1007
1019
  }] } });
1008
1020
 
1009
1021
  class MaterialModule {
1010
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1011
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: MaterialModule, exports: [MatButtonModule,
1022
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1023
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: MaterialModule, exports: [MatButtonModule,
1012
1024
  MatCardModule,
1013
1025
  MatCheckboxModule,
1014
1026
  MatDatepickerModule,
@@ -1036,7 +1048,7 @@ class MaterialModule {
1036
1048
  MatToolbarModule,
1037
1049
  MatTooltipModule,
1038
1050
  MatTreeModule] }); }
1039
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialModule, imports: [MatButtonModule,
1051
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MaterialModule, imports: [MatButtonModule,
1040
1052
  MatCardModule,
1041
1053
  MatCheckboxModule,
1042
1054
  MatDatepickerModule,
@@ -1065,7 +1077,7 @@ class MaterialModule {
1065
1077
  MatTooltipModule,
1066
1078
  MatTreeModule] }); }
1067
1079
  }
1068
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialModule, decorators: [{
1080
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MaterialModule, decorators: [{
1069
1081
  type: NgModule,
1070
1082
  args: [{
1071
1083
  exports: [
@@ -1114,36 +1126,40 @@ class TenantsModule {
1114
1126
  ]
1115
1127
  };
1116
1128
  }
1117
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1118
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TenantsModule, declarations: [TenantsComponent,
1129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1130
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: TenantsModule, declarations: [TenantsComponent,
1119
1131
  TenantDetailComponent,
1120
1132
  TenantSummaryComponent,
1121
1133
  TenantCreateComponent,
1122
1134
  TenantUpdateComponent,
1123
1135
  ConfirmDialogComponent,
1124
- TenantSettingsComponent], imports: [TranslateModule,
1136
+ TenantSettingsComponent], imports: [TranslatePipe,
1137
+ TranslateDirective,
1125
1138
  FormsModule,
1126
1139
  ReactiveFormsModule,
1127
1140
  CommonModule,
1128
1141
  MaterialModule,
1129
1142
  ClipboardModule,
1130
- MatMultiSortModule,
1131
- DictBuilderModule], exports: [TenantsComponent,
1143
+ MatMultiSort,
1144
+ MatMultiSortHeaderComponent,
1145
+ DictBuilderModule,
1146
+ IdempotencyModule], exports: [TenantsComponent,
1132
1147
  TenantDetailComponent,
1133
1148
  TenantSummaryComponent,
1134
1149
  TenantCreateComponent,
1135
1150
  TenantUpdateComponent,
1136
- TranslateModule] }); }
1137
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantsModule, imports: [TranslateModule,
1138
- FormsModule,
1151
+ TranslatePipe,
1152
+ TranslateDirective] }); }
1153
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsModule, imports: [FormsModule,
1139
1154
  ReactiveFormsModule,
1140
1155
  CommonModule,
1141
1156
  MaterialModule,
1142
1157
  ClipboardModule,
1143
- MatMultiSortModule,
1144
- DictBuilderModule, TranslateModule] }); }
1158
+ MatMultiSortHeaderComponent,
1159
+ DictBuilderModule,
1160
+ IdempotencyModule] }); }
1145
1161
  }
1146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantsModule, decorators: [{
1162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsModule, decorators: [{
1147
1163
  type: NgModule,
1148
1164
  args: [{
1149
1165
  declarations: [
@@ -1156,14 +1172,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1156
1172
  TenantSettingsComponent
1157
1173
  ],
1158
1174
  imports: [
1159
- TranslateModule,
1175
+ TranslatePipe,
1176
+ TranslateDirective,
1160
1177
  FormsModule,
1161
1178
  ReactiveFormsModule,
1162
1179
  CommonModule,
1163
1180
  MaterialModule,
1164
1181
  ClipboardModule,
1165
- MatMultiSortModule,
1166
- DictBuilderModule
1182
+ MatMultiSort,
1183
+ MatMultiSortHeaderComponent,
1184
+ DictBuilderModule,
1185
+ IdempotencyModule
1167
1186
  ],
1168
1187
  exports: [
1169
1188
  TenantsComponent,
@@ -1171,7 +1190,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1171
1190
  TenantSummaryComponent,
1172
1191
  TenantCreateComponent,
1173
1192
  TenantUpdateComponent,
1174
- TranslateModule
1193
+ TranslatePipe,
1194
+ TranslateDirective
1175
1195
  ]
1176
1196
  }]
1177
1197
  }] });