@rolatech/angular-authorization 20.1.0 → 20.1.2
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/{rolatech-angular-authorization-clients.routes-EJd1He3H.mjs → rolatech-angular-authorization-clients.routes-CUhnGT3n.mjs} +19 -19
- package/fesm2022/{rolatech-angular-authorization-clients.routes-EJd1He3H.mjs.map → rolatech-angular-authorization-clients.routes-CUhnGT3n.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-endpoint.service-zCv1Qt6c.mjs → rolatech-angular-authorization-endpoint.service-Bb2Q9peT.mjs} +4 -4
- package/fesm2022/{rolatech-angular-authorization-endpoint.service-zCv1Qt6c.mjs.map → rolatech-angular-authorization-endpoint.service-Bb2Q9peT.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-endpoints.routes-DJhKN0f-.mjs → rolatech-angular-authorization-endpoints.routes-C2H0ELRe.mjs} +8 -8
- package/fesm2022/{rolatech-angular-authorization-endpoints.routes-DJhKN0f-.mjs.map → rolatech-angular-authorization-endpoints.routes-C2H0ELRe.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-permission.service-CYkQV6fu.mjs → rolatech-angular-authorization-permission.service-C67beh-B.mjs} +4 -4
- package/fesm2022/{rolatech-angular-authorization-permission.service-CYkQV6fu.mjs.map → rolatech-angular-authorization-permission.service-C67beh-B.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-permissions.routes-BWD8qNZd.mjs → rolatech-angular-authorization-permissions.routes-DrLSLkzq.mjs} +15 -15
- package/fesm2022/{rolatech-angular-authorization-permissions.routes-BWD8qNZd.mjs.map → rolatech-angular-authorization-permissions.routes-DrLSLkzq.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-role.service-CiHCsVrk.mjs → rolatech-angular-authorization-role.service-CJ9OWfn-.mjs} +4 -4
- package/fesm2022/{rolatech-angular-authorization-role.service-CiHCsVrk.mjs.map → rolatech-angular-authorization-role.service-CJ9OWfn-.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-roles.routes-DfgNTM9G.mjs → rolatech-angular-authorization-roles.routes-7viqa6ZE.mjs} +27 -21
- package/fesm2022/rolatech-angular-authorization-roles.routes-7viqa6ZE.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-authorization-settings.routes-DWV4kdWt.mjs → rolatech-angular-authorization-settings.routes-CALsjEEv.mjs} +4 -4
- package/fesm2022/{rolatech-angular-authorization-settings.routes-DWV4kdWt.mjs.map → rolatech-angular-authorization-settings.routes-CALsjEEv.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-authorization-users.routes-BDeCVnTe.mjs → rolatech-angular-authorization-users.routes-BJPW9u0u.mjs} +17 -17
- package/fesm2022/{rolatech-angular-authorization-users.routes-BDeCVnTe.mjs.map → rolatech-angular-authorization-users.routes-BJPW9u0u.mjs.map} +1 -1
- package/fesm2022/rolatech-angular-authorization.mjs +9 -9
- package/fesm2022/rolatech-angular-authorization.mjs.map +1 -1
- package/package.json +1 -1
- package/fesm2022/rolatech-angular-authorization-roles.routes-DfgNTM9G.mjs.map +0 -1
|
@@ -18,7 +18,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
18
18
|
import * as i5 from '@angular/material/input';
|
|
19
19
|
import { MatInputModule } from '@angular/material/input';
|
|
20
20
|
import * as i6 from '@angular/material/menu';
|
|
21
|
-
import { R as RoleService } from './rolatech-angular-authorization-role.service-
|
|
21
|
+
import { R as RoleService } from './rolatech-angular-authorization-role.service-CJ9OWfn-.mjs';
|
|
22
22
|
import * as i1$1 from '@angular/forms';
|
|
23
23
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
24
24
|
import * as i4 from '@angular/material/select';
|
|
@@ -38,10 +38,10 @@ class UserService extends BaseService {
|
|
|
38
38
|
withCredentials: true,
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
42
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserService, decorators: [{
|
|
45
45
|
type: Injectable,
|
|
46
46
|
args: [{
|
|
47
47
|
providedIn: 'root',
|
|
@@ -140,10 +140,10 @@ class UserIndex extends BaseComponent {
|
|
|
140
140
|
},
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
144
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserIndex, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: UserIndex, isStandalone: true, selector: "rolatech-user-index", viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<rolatech-toolbar title=\"Users\">\n <rolatech-icon-button routerLink=\"./create\">add</rolatech-icon-button>\n <rolatech-icon-button (click)=\"isSearch = !isSearch\">search</rolatech-icon-button>\n <rolatech-icon-button [matMenuTriggerFor]=\"beforeMenu\">reorder</rolatech-icon-button>\n <!-- <button mat-icon-button [matMenuTriggerFor]=\"beforeMenu\">\n <mat-icon>reorder</mat-icon>\n </button> -->\n <mat-menu #beforeMenu=\"matMenu\" xPosition=\"before\">\n @for (item of orderOptions; track item) {\n <button mat-menu-item (click)=\"onClick(item)\">\n <span>{{ item.value }}</span>\n <mat-icon>{{ item.icon }}</mat-icon>\n </button>\n }\n </mat-menu>\n</rolatech-toolbar>\n@if (isSearch) {\n<mat-form-field floatLabel=\"auto\">\n <input type=\"text\" matInput placeholder=\"Phone\" (keyup.enter)=\"search($event)\" />\n <button matSuffix mat-icon-button (click)=\"findAll(null); isSearch = false\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n}\n<div class=\"py-3\">\n <rolatech-spinner></rolatech-spinner>\n <table mat-table [dataSource]=\"dataSource\">\n <!-- name Column -->\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef>Name</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.name ? item.name : item.firstName + ',' + item.lastName }}</td>\n </ng-container>\n\n <!-- email Column -->\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef>Email</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.email }}</td>\n </ng-container>\n\n <!-- createdAt Column -->\n <ng-container matColumnDef=\"createdAt\">\n <th mat-header-cell *matHeaderCellDef>Created At</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.createdAt }}</td>\n </ng-container>\n\n <!-- actions Column -->\n <ng-container matColumnDef=\"actions\" stickyEnd>\n <th mat-header-cell *matHeaderCellDef class=\"actions\"></th>\n <td mat-cell *matCellDef=\"let item\" class=\"actions\">\n <mat-icon>navigate_next</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n class=\"cursor-pointer hover:bg-[--rt-raised-background]\"\n mat-row\n *matRowDef=\"let row; columns: displayedColumns\"\n [routerLink]=\"['./', '@' + row.username]\"\n ></tr>\n </table>\n</div>\n<mat-paginator\n #paginator\n [length]=\"length\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"pageEvent = findAll($event)\"\n hidePageSize\n showFirstLastButtons\n>\n</mat-paginator>\n", styles: ["mat-form-field{width:100%}table{width:100%}td.mat-column-actions{text-align:right;min-width:80px;font-size:.8rem;padding:0 28px}.mat-mdc-header-cell.actions{text-align:right;max-width:120px;width:120px;padding:0 28px}.mat-mdc-cell:nth-last-child(2),.mat-mdc-header-cell:nth-last-child(2),.mat-mdc-footer-cell:nth-last-child(2){text-align:right;max-width:180px;width:180px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{text-align:right;padding-right:8px!important}.withdraw-button{background:var(--rt-brand-color);color:#fff!important;width:100px}\n"], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i5.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.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: i6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6.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: i7.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i8.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i8.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i8.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i8.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i8.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i8.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i8.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i8.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i8.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i8.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: SpinnerComponent, selector: "rolatech-spinner", inputs: ["title"] }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: IconButtonComponent, selector: "rolatech-icon-button" }] });
|
|
145
145
|
}
|
|
146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserIndex, decorators: [{
|
|
147
147
|
type: Component,
|
|
148
148
|
args: [{ selector: 'rolatech-user-index', imports: [AngularCommonModule, AngularComponentsModule, SpinnerComponent, ToolbarComponent, IconButtonComponent], template: "<rolatech-toolbar title=\"Users\">\n <rolatech-icon-button routerLink=\"./create\">add</rolatech-icon-button>\n <rolatech-icon-button (click)=\"isSearch = !isSearch\">search</rolatech-icon-button>\n <rolatech-icon-button [matMenuTriggerFor]=\"beforeMenu\">reorder</rolatech-icon-button>\n <!-- <button mat-icon-button [matMenuTriggerFor]=\"beforeMenu\">\n <mat-icon>reorder</mat-icon>\n </button> -->\n <mat-menu #beforeMenu=\"matMenu\" xPosition=\"before\">\n @for (item of orderOptions; track item) {\n <button mat-menu-item (click)=\"onClick(item)\">\n <span>{{ item.value }}</span>\n <mat-icon>{{ item.icon }}</mat-icon>\n </button>\n }\n </mat-menu>\n</rolatech-toolbar>\n@if (isSearch) {\n<mat-form-field floatLabel=\"auto\">\n <input type=\"text\" matInput placeholder=\"Phone\" (keyup.enter)=\"search($event)\" />\n <button matSuffix mat-icon-button (click)=\"findAll(null); isSearch = false\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n}\n<div class=\"py-3\">\n <rolatech-spinner></rolatech-spinner>\n <table mat-table [dataSource]=\"dataSource\">\n <!-- name Column -->\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef>Name</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.name ? item.name : item.firstName + ',' + item.lastName }}</td>\n </ng-container>\n\n <!-- email Column -->\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef>Email</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.email }}</td>\n </ng-container>\n\n <!-- createdAt Column -->\n <ng-container matColumnDef=\"createdAt\">\n <th mat-header-cell *matHeaderCellDef>Created At</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.createdAt }}</td>\n </ng-container>\n\n <!-- actions Column -->\n <ng-container matColumnDef=\"actions\" stickyEnd>\n <th mat-header-cell *matHeaderCellDef class=\"actions\"></th>\n <td mat-cell *matCellDef=\"let item\" class=\"actions\">\n <mat-icon>navigate_next</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n class=\"cursor-pointer hover:bg-[--rt-raised-background]\"\n mat-row\n *matRowDef=\"let row; columns: displayedColumns\"\n [routerLink]=\"['./', '@' + row.username]\"\n ></tr>\n </table>\n</div>\n<mat-paginator\n #paginator\n [length]=\"length\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"pageEvent = findAll($event)\"\n hidePageSize\n showFirstLastButtons\n>\n</mat-paginator>\n", styles: ["mat-form-field{width:100%}table{width:100%}td.mat-column-actions{text-align:right;min-width:80px;font-size:.8rem;padding:0 28px}.mat-mdc-header-cell.actions{text-align:right;max-width:120px;width:120px;padding:0 28px}.mat-mdc-cell:nth-last-child(2),.mat-mdc-header-cell:nth-last-child(2),.mat-mdc-footer-cell:nth-last-child(2){text-align:right;max-width:180px;width:180px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{text-align:right;padding-right:8px!important}.withdraw-button{background:var(--rt-brand-color);color:#fff!important;width:100px}\n"] }]
|
|
149
149
|
}] });
|
|
@@ -200,10 +200,10 @@ class UserCreate {
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
204
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserCreate, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
204
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: UserCreate, isStandalone: true, selector: "rolatech-user-create", ngImport: i0, template: "<rolatech-toolbar title=\"Create User\" link=\"../\"></rolatech-toolbar>\n<div class=\"p-4\">\n <div class=\"flex flex-col lg:w-1/2\">\n <mat-form-field appearance=\"fill\">\n <mat-label> Name </mat-label>\n <input matInput [(ngModel)]=\"user.name\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> Email </mat-label>\n <input matInput [(ngModel)]=\"user.email\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> Phone </mat-label>\n <input matInput [(ngModel)]=\"user.phone\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label>Role</mat-label>\n <mat-select (selectionChange)=\"onSelectionChange($event)\" [(ngModel)]=\"selectedRoles\" multiple>\n @for (item of roles; track item) {\n <mat-option [value]=\"item\"> {{ item.name }} </mat-option>\n }\n </mat-select>\n </mat-form-field>\n @if (newUser) {\n <div class=\"mb-3\">\n <div class=\"font-bold mb-2\">Copy password</div>\n <mat-form-field appearance=\"fill\" subscriptSizing=\"dynamic\">\n <input matInput type=\"password\" [value]=\"password\" readonly />\n <button matIconButton matSuffix [cdkCopyToClipboard]=\"password\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </mat-form-field>\n </div>\n }\n </div>\n\n <button mat-flat-button (click)=\"save()\">Save</button>\n</div>\n", styles: ["mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.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: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i4.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: "component", type: i2$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatButtonModule }, { 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: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i7$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
205
205
|
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserCreate, decorators: [{
|
|
207
207
|
type: Component,
|
|
208
208
|
args: [{ selector: 'rolatech-user-create', imports: [FormsModule, ToolbarComponent,
|
|
209
209
|
MatFormFieldModule, MatInputModule, ReactiveFormsModule,
|
|
@@ -223,10 +223,10 @@ class UserRolesUpdateDialogComponent {
|
|
|
223
223
|
compareFn(o1, o2) {
|
|
224
224
|
return o1.id === o2.id;
|
|
225
225
|
}
|
|
226
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
227
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserRolesUpdateDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
227
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: UserRolesUpdateDialogComponent, isStandalone: true, selector: "rolatech-authorization-user-roles-update-dialog", inputs: { roles: { classPropertyName: "roles", publicName: "roles", isSignal: true, isRequired: false, transformFunction: null }, selectedRoles: { classPropertyName: "selectedRoles", publicName: "selectedRoles", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { roles: "rolesChange", selectedRoles: "selectedRolesChange", selected: "selectedChange", output: "output" }, ngImport: i0, template: "<div>\n <mat-form-field appearance=\"fill\">\n <mat-label>Role</mat-label>\n <mat-select [compareWith]=\"compareFn\" (selectionChange)=\"onSelectionChange($event)\" [(ngModel)]=\"selectedRoles\" multiple>\n @for (item of roles(); track item) {\n <mat-option [value]=\"item\">\n {{ item.name }}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n</div>\n", styles: ["mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.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"] }] });
|
|
228
228
|
}
|
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserRolesUpdateDialogComponent, decorators: [{
|
|
230
230
|
type: Component,
|
|
231
231
|
args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-authorization-user-roles-update-dialog', template: "<div>\n <mat-form-field appearance=\"fill\">\n <mat-label>Role</mat-label>\n <mat-select [compareWith]=\"compareFn\" (selectionChange)=\"onSelectionChange($event)\" [(ngModel)]=\"selectedRoles\" multiple>\n @for (item of roles(); track item) {\n <mat-option [value]=\"item\">\n {{ item.name }}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n</div>\n", styles: ["mat-form-field{width:100%}\n"] }]
|
|
232
232
|
}] });
|
|
@@ -334,10 +334,10 @@ class UserDetails extends BaseComponent {
|
|
|
334
334
|
},
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
338
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
337
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserDetails, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
338
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: UserDetails, isStandalone: true, selector: "rolatech-user-details", usesInheritance: true, ngImport: i0, template: "@if (user) {\n<rolatech-toolbar [title]=\"user.name\" link=\"../\"></rolatech-toolbar>\n<div class=\"p-3\">\n <div class=\"flex gap-3 py-3\">\n <div>\n @if (user.avatar) {\n <img class=\"w-32 h-32 rounded-md object-cover\" [src]=\"user.avatar\" alt />\n } @else {\n <div class=\"w-32 h-32 rounded-md bg-[--rt-raised-background]\"></div>\n }\n </div>\n <div>\n <div class=\"text-lg font-medium\">{{ user.name }}</div>\n <div>@{{ user.username }}</div>\n <div>{{ user.phone }}</div>\n </div>\n </div>\n <div class=\"flex flex-row items-center flex-wrap\">\n <span class=\"mr-2\">Roles: </span>\n @for (item of user.roles; track item) {\n <a class=\"mr-4 underline\" [href]=\"['/roles/' + item.id]\">{{ item.name }}</a>\n }\n <button mat-flat-button (click)=\"updateRoles()\" class=\"cursor-pointer\">Update</button>\n </div>\n</div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { 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: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }] });
|
|
339
339
|
}
|
|
340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserDetails, decorators: [{
|
|
341
341
|
type: Component,
|
|
342
342
|
args: [{ selector: 'rolatech-user-details', imports: [MatButtonModule, ToolbarComponent], template: "@if (user) {\n<rolatech-toolbar [title]=\"user.name\" link=\"../\"></rolatech-toolbar>\n<div class=\"p-3\">\n <div class=\"flex gap-3 py-3\">\n <div>\n @if (user.avatar) {\n <img class=\"w-32 h-32 rounded-md object-cover\" [src]=\"user.avatar\" alt />\n } @else {\n <div class=\"w-32 h-32 rounded-md bg-[--rt-raised-background]\"></div>\n }\n </div>\n <div>\n <div class=\"text-lg font-medium\">{{ user.name }}</div>\n <div>@{{ user.username }}</div>\n <div>{{ user.phone }}</div>\n </div>\n </div>\n <div class=\"flex flex-row items-center flex-wrap\">\n <span class=\"mr-2\">Roles: </span>\n @for (item of user.roles; track item) {\n <a class=\"mr-4 underline\" [href]=\"['/roles/' + item.id]\">{{ item.name }}</a>\n }\n <button mat-flat-button (click)=\"updateRoles()\" class=\"cursor-pointer\">Update</button>\n </div>\n</div>\n}\n" }]
|
|
343
343
|
}] });
|
|
@@ -358,4 +358,4 @@ const usersRoutes = [
|
|
|
358
358
|
];
|
|
359
359
|
|
|
360
360
|
export { usersRoutes as default };
|
|
361
|
-
//# sourceMappingURL=rolatech-angular-authorization-users.routes-
|
|
361
|
+
//# sourceMappingURL=rolatech-angular-authorization-users.routes-BJPW9u0u.mjs.map
|