@juice-js/tenants 1.2.0 → 1.2.2-alpha.1
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.
- package/fesm2022/juice-js-tenants.mjs +109 -90
- package/fesm2022/juice-js-tenants.mjs.map +1 -1
- package/package.json +7 -7
- package/theming/_tenants.component-theme.scss +10 -10
- package/types/juice-js-tenants.d.ts +358 -0
- package/esm2022/juice-js-tenants.mjs +0 -5
- package/esm2022/lib/confirm-dialog/confirm-dialog.component.mjs +0 -53
- package/esm2022/lib/shared/custom-error-state-matcher.mjs +0 -8
- package/esm2022/lib/shared/material.module.mjs +0 -124
- package/esm2022/lib/shared/models/table.query-result.mjs +0 -2
- package/esm2022/lib/shared/models/tenant.create.model.mjs +0 -16
- package/esm2022/lib/shared/models/tenant.model.mjs +0 -2
- package/esm2022/lib/shared/models/tenant.setting.model.mjs +0 -13
- package/esm2022/lib/shared/models/tenant.status.mjs +0 -42
- package/esm2022/lib/shared/models/tenant.update.model.mjs +0 -7
- package/esm2022/lib/shared/services/tenant-admin.service.mjs +0 -91
- package/esm2022/lib/shared/tenant-configuration.mjs +0 -11
- package/esm2022/lib/tenant-create/tenant-create.component.mjs +0 -72
- package/esm2022/lib/tenant-detail/tenant-detail.component.mjs +0 -40
- package/esm2022/lib/tenant-settings/tenant-settings.component.mjs +0 -47
- package/esm2022/lib/tenant-summary/tenant-summary.component.mjs +0 -32
- package/esm2022/lib/tenant-update/tenant-update.component.mjs +0 -74
- package/esm2022/lib/tenants.component.mjs +0 -542
- package/esm2022/lib/tenants.module.mjs +0 -93
- package/esm2022/public-api.mjs +0 -12
- package/index.d.ts +0 -5
- package/lib/confirm-dialog/confirm-dialog.component.d.ts +0 -29
- package/lib/shared/custom-error-state-matcher.d.ts +0 -6
- package/lib/shared/material.module.d.ts +0 -33
- package/lib/shared/models/table.query-result.d.ts +0 -6
- package/lib/shared/models/tenant.create.model.d.ts +0 -11
- package/lib/shared/models/tenant.model.d.ts +0 -12
- package/lib/shared/models/tenant.setting.model.d.ts +0 -7
- package/lib/shared/models/tenant.status.d.ts +0 -16
- package/lib/shared/models/tenant.update.model.d.ts +0 -4
- package/lib/shared/services/tenant-admin.service.d.ts +0 -35
- package/lib/shared/tenant-configuration.d.ts +0 -12
- package/lib/tenant-create/tenant-create.component.d.ts +0 -30
- package/lib/tenant-detail/tenant-detail.component.d.ts +0 -17
- package/lib/tenant-settings/tenant-settings.component.d.ts +0 -17
- package/lib/tenant-summary/tenant-summary.component.d.ts +0 -14
- package/lib/tenant-update/tenant-update.component.d.ts +0 -28
- package/lib/tenants.component.d.ts +0 -78
- package/lib/tenants.module.d.ts +0 -23
- package/public-api.d.ts +0 -8
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter,
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
|
14
|
+
import * as i2 from '@angular/material/button';
|
|
14
15
|
import { MatButtonModule } from '@angular/material/button';
|
|
15
|
-
import * as
|
|
16
|
+
import * as i3 from '@angular/material/dialog';
|
|
16
17
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
17
|
-
import * as
|
|
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 {
|
|
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
|
|
27
|
+
import * as i6$1 from '@angular/material/input';
|
|
27
28
|
import { MatInputModule } from '@angular/material/input';
|
|
28
|
-
import * as
|
|
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
|
|
31
|
+
import * as i14 from '@angular/material/select';
|
|
32
32
|
import { MatSelectModule } from '@angular/material/select';
|
|
33
|
-
import * as
|
|
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
|
|
35
|
+
import * as i16 from '@angular/cdk/clipboard';
|
|
38
36
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
39
|
-
import * as
|
|
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 + "].
|
|
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: "
|
|
146
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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:
|
|
164
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: TenantConfiguration }] });
|
|
154
165
|
|
|
155
166
|
var TenantStatus;
|
|
156
167
|
(function (TenantStatus) {
|
|
@@ -229,12 +240,12 @@ class TenantSettingsComponent {
|
|
|
229
240
|
cancel() {
|
|
230
241
|
this.cancelled.emit();
|
|
231
242
|
}
|
|
232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
233
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
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 }); }
|
|
234
245
|
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantSettingsComponent, decorators: [{
|
|
236
247
|
type: Component,
|
|
237
|
-
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>" }]
|
|
238
249
|
}], propDecorators: { title: [{
|
|
239
250
|
type: Input
|
|
240
251
|
}], saved: [{
|
|
@@ -745,13 +756,13 @@ class TenantsComponent {
|
|
|
745
756
|
});
|
|
746
757
|
});
|
|
747
758
|
}
|
|
748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
749
|
-
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 }); }
|
|
750
761
|
}
|
|
751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsComponent, decorators: [{
|
|
752
763
|
type: Component,
|
|
753
|
-
args: [{ selector: 'juice-tenants', template: "<div class=\"mat-elevation-z2 density-compact\">\n
|
|
754
|
-
}], ctorParameters:
|
|
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: [{
|
|
755
766
|
type: ViewChild,
|
|
756
767
|
args: [MatPaginator]
|
|
757
768
|
}], sort: [{
|
|
@@ -778,13 +789,13 @@ class TenantDetailComponent {
|
|
|
778
789
|
ngOnChanges() {
|
|
779
790
|
this.loadTenant(this.tenantIdentifier);
|
|
780
791
|
}
|
|
781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
782
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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 }); }
|
|
783
794
|
}
|
|
784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantDetailComponent, decorators: [{
|
|
785
796
|
type: Component,
|
|
786
|
-
args: [{ selector: 'juice-tenant-detail', template: "<h2 mat-dialog-title>{{ 'Organization information' | translate }}</h2>\n\n<mat-dialog-content
|
|
787
|
-
}], ctorParameters:
|
|
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: [{
|
|
788
799
|
type: Input
|
|
789
800
|
}] } });
|
|
790
801
|
|
|
@@ -801,13 +812,13 @@ class TenantSummaryComponent {
|
|
|
801
812
|
ngOnChanges() {
|
|
802
813
|
this.loadTenant(this.tenantIdentifier);
|
|
803
814
|
}
|
|
804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
805
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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 }); }
|
|
806
817
|
}
|
|
807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantSummaryComponent, decorators: [{
|
|
808
819
|
type: Component,
|
|
809
|
-
args: [{ selector: 'juice-tenant-summary', template: "<h2 mat-dialog-title>{{ 'Organization summary' | translate }}</h2>\n\n<mat-dialog-content
|
|
810
|
-
}], ctorParameters:
|
|
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: [{
|
|
811
822
|
type: Input
|
|
812
823
|
}] } });
|
|
813
824
|
|
|
@@ -881,13 +892,13 @@ class TenantCreateComponent {
|
|
|
881
892
|
cancel() {
|
|
882
893
|
this.cancelled.emit();
|
|
883
894
|
}
|
|
884
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
885
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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 }); }
|
|
886
897
|
}
|
|
887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantCreateComponent, decorators: [{
|
|
888
899
|
type: Component,
|
|
889
|
-
args: [{ selector: 'juice-tenant-create', template: "<h2 mat-dialog-title>{{ 'Create new organization' | translate }}</h2>\n\n<mat-dialog-content>\n
|
|
890
|
-
}], ctorParameters:
|
|
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: [{
|
|
891
902
|
type: Output
|
|
892
903
|
}], cancelled: [{
|
|
893
904
|
type: Output
|
|
@@ -946,13 +957,13 @@ class TenantUpdateComponent {
|
|
|
946
957
|
cancel() {
|
|
947
958
|
this.cancelled.emit(this.id);
|
|
948
959
|
}
|
|
949
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
950
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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 }); }
|
|
951
962
|
}
|
|
952
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantUpdateComponent, decorators: [{
|
|
953
964
|
type: Component,
|
|
954
|
-
args: [{ selector: 'juice-tenant-update', template: "\n<h2 mat-dialog-title>{{ 'Update organization information' | translate }}</h2>\n\n<mat-dialog-content>\n
|
|
955
|
-
}], ctorParameters:
|
|
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: [{
|
|
956
967
|
type: Input
|
|
957
968
|
}], updated: [{
|
|
958
969
|
type: Output
|
|
@@ -992,24 +1003,24 @@ class ConfirmDialogComponent {
|
|
|
992
1003
|
cancel() {
|
|
993
1004
|
this.cancelled.emit();
|
|
994
1005
|
}
|
|
995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
996
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
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 }); }
|
|
997
1008
|
}
|
|
998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
|
999
1010
|
type: Component,
|
|
1000
|
-
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"] }]
|
|
1001
|
-
}], ctorParameters:
|
|
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: [{
|
|
1002
1013
|
type: Inject,
|
|
1003
1014
|
args: [MAT_DIALOG_DATA]
|
|
1004
|
-
}] }]
|
|
1015
|
+
}] }], propDecorators: { confirmed: [{
|
|
1005
1016
|
type: Output
|
|
1006
1017
|
}], cancelled: [{
|
|
1007
1018
|
type: Output
|
|
1008
1019
|
}] } });
|
|
1009
1020
|
|
|
1010
1021
|
class MaterialModule {
|
|
1011
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1012
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
1013
1024
|
MatCardModule,
|
|
1014
1025
|
MatCheckboxModule,
|
|
1015
1026
|
MatDatepickerModule,
|
|
@@ -1037,7 +1048,7 @@ class MaterialModule {
|
|
|
1037
1048
|
MatToolbarModule,
|
|
1038
1049
|
MatTooltipModule,
|
|
1039
1050
|
MatTreeModule] }); }
|
|
1040
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1051
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MaterialModule, imports: [MatButtonModule,
|
|
1041
1052
|
MatCardModule,
|
|
1042
1053
|
MatCheckboxModule,
|
|
1043
1054
|
MatDatepickerModule,
|
|
@@ -1066,7 +1077,7 @@ class MaterialModule {
|
|
|
1066
1077
|
MatTooltipModule,
|
|
1067
1078
|
MatTreeModule] }); }
|
|
1068
1079
|
}
|
|
1069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MaterialModule, decorators: [{
|
|
1070
1081
|
type: NgModule,
|
|
1071
1082
|
args: [{
|
|
1072
1083
|
exports: [
|
|
@@ -1115,36 +1126,40 @@ class TenantsModule {
|
|
|
1115
1126
|
]
|
|
1116
1127
|
};
|
|
1117
1128
|
}
|
|
1118
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1119
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
1120
1131
|
TenantDetailComponent,
|
|
1121
1132
|
TenantSummaryComponent,
|
|
1122
1133
|
TenantCreateComponent,
|
|
1123
1134
|
TenantUpdateComponent,
|
|
1124
1135
|
ConfirmDialogComponent,
|
|
1125
|
-
TenantSettingsComponent], imports: [
|
|
1136
|
+
TenantSettingsComponent], imports: [TranslatePipe,
|
|
1137
|
+
TranslateDirective,
|
|
1126
1138
|
FormsModule,
|
|
1127
1139
|
ReactiveFormsModule,
|
|
1128
1140
|
CommonModule,
|
|
1129
1141
|
MaterialModule,
|
|
1130
1142
|
ClipboardModule,
|
|
1131
|
-
|
|
1132
|
-
|
|
1143
|
+
MatMultiSort,
|
|
1144
|
+
MatMultiSortHeaderComponent,
|
|
1145
|
+
DictBuilderModule,
|
|
1146
|
+
IdempotencyModule], exports: [TenantsComponent,
|
|
1133
1147
|
TenantDetailComponent,
|
|
1134
1148
|
TenantSummaryComponent,
|
|
1135
1149
|
TenantCreateComponent,
|
|
1136
1150
|
TenantUpdateComponent,
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1151
|
+
TranslatePipe,
|
|
1152
|
+
TranslateDirective] }); }
|
|
1153
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsModule, imports: [FormsModule,
|
|
1140
1154
|
ReactiveFormsModule,
|
|
1141
1155
|
CommonModule,
|
|
1142
1156
|
MaterialModule,
|
|
1143
1157
|
ClipboardModule,
|
|
1144
|
-
|
|
1145
|
-
DictBuilderModule,
|
|
1158
|
+
MatMultiSortHeaderComponent,
|
|
1159
|
+
DictBuilderModule,
|
|
1160
|
+
IdempotencyModule] }); }
|
|
1146
1161
|
}
|
|
1147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TenantsModule, decorators: [{
|
|
1148
1163
|
type: NgModule,
|
|
1149
1164
|
args: [{
|
|
1150
1165
|
declarations: [
|
|
@@ -1157,14 +1172,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1157
1172
|
TenantSettingsComponent
|
|
1158
1173
|
],
|
|
1159
1174
|
imports: [
|
|
1160
|
-
|
|
1175
|
+
TranslatePipe,
|
|
1176
|
+
TranslateDirective,
|
|
1161
1177
|
FormsModule,
|
|
1162
1178
|
ReactiveFormsModule,
|
|
1163
1179
|
CommonModule,
|
|
1164
1180
|
MaterialModule,
|
|
1165
1181
|
ClipboardModule,
|
|
1166
|
-
|
|
1167
|
-
|
|
1182
|
+
MatMultiSort,
|
|
1183
|
+
MatMultiSortHeaderComponent,
|
|
1184
|
+
DictBuilderModule,
|
|
1185
|
+
IdempotencyModule
|
|
1168
1186
|
],
|
|
1169
1187
|
exports: [
|
|
1170
1188
|
TenantsComponent,
|
|
@@ -1172,7 +1190,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1172
1190
|
TenantSummaryComponent,
|
|
1173
1191
|
TenantCreateComponent,
|
|
1174
1192
|
TenantUpdateComponent,
|
|
1175
|
-
|
|
1193
|
+
TranslatePipe,
|
|
1194
|
+
TranslateDirective
|
|
1176
1195
|
]
|
|
1177
1196
|
}]
|
|
1178
1197
|
}] });
|