diff --git a/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.html b/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.html
index 4349835..26132aa 100644
--- a/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.html
+++ b/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.html
@@ -1,12 +1,20 @@
-
-
-
+
+
+
{{ error.name }}
{{ error.message }}
diff --git a/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.ts b/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.ts
index 51601cb..debe007 100644
--- a/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.ts
+++ b/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.component.ts
@@ -1,7 +1,8 @@
import { AfterViewInit, ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { ErrorSeverity } from '@msfa-enums/error-severity.enum';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { CustomError } from '@msfa-models/error/custom-error';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-toast',
@@ -13,8 +14,9 @@ export class ToastComponent implements AfterViewInit {
@Input() error: CustomError;
@Output() closeToast = new EventEmitter
();
- iconType = IconType;
- errorSeverity = ErrorSeverity;
+ UiIconType = UiIconType;
+ UiIconSize = UiIconSize;
+ ErrorSeverity = ErrorSeverity;
ngAfterViewInit(): void {
if (this.error.removeAfter) {
diff --git a/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.module.ts b/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.module.ts
index 849da7c..c191fc6 100644
--- a/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.module.ts
+++ b/apps/mina-sidor-fa/src/app/components/toast-list/toast/toast.module.ts
@@ -1,15 +1,12 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { ToastComponent } from './toast.component';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [ToastComponent],
- imports: [
- CommonModule,
- IconModule,
- ],
+ imports: [CommonModule, UiIconModule],
exports: [ToastComponent],
})
export class ToastModule {}
diff --git a/apps/mina-sidor-fa/src/app/pages/administration/pages/employees/employees.component.ts b/apps/mina-sidor-fa/src/app/pages/administration/pages/employees/employees.component.ts
index 82ddace..21e1fa8 100644
--- a/apps/mina-sidor-fa/src/app/pages/administration/pages/employees/employees.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/administration/pages/employees/employees.component.ts
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, OnDestroy } from '@angular/core';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { EmployeeCompactResponse } from '@msfa-models/api/employee.response.model';
import { Employee, EmployeesData } from '@msfa-models/employee.model';
import { Sort } from '@msfa-models/sort.model';
@@ -20,7 +20,7 @@ export class EmployeesComponent implements OnDestroy {
employeesData$: Observable = this.employeeService.employeesData$;
employeesLoading$: Observable = this.employeeService.employeesLoading$;
sort$: Observable> = this.employeeService.sort$;
- iconType = IconType;
+ iconType = UiIconType;
constructor(private employeeService: EmployeeService) {}
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.html b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.html
index 39d5250..223538f 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.html
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.html
@@ -82,7 +82,7 @@
Status:
-
+
Avbrott
Original datum för tjänstens slut:
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.ts
index 9bf63e0..5c280ab 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/components/deltagare-tab-personal-information/deltagare-tab-personal-information.component.ts
@@ -7,6 +7,8 @@ import { HandledareService } from '@msfa-services/handledare.service';
import { combineLatest, Observable } from 'rxjs';
import { distinctUntilChanged, filter, map, startWith, switchMap } from 'rxjs/operators';
import { DeltagareCardService } from '../../deltagare-card.service';
+import { UiIconType } from '@ui/icon/icon-type.enum';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-deltagare-tab-personal-information',
@@ -17,6 +19,8 @@ import { DeltagareCardService } from '../../deltagare-card.service';
export class DeltagareTabPersonalInformationComponent {
@Input() userRoles: Role[];
@Input() handledarePickerVisible: boolean;
+ IconType = UiIconType;
+ IconSize = UiIconSize;
avropInformation$: Observable = this.deltagareCardService.avropInformation$;
contactInformation$: Observable = this.deltagareCardService.contactInformation$;
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/deltagare-card.module.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/deltagare-card.module.ts
index 8b450f2..dd33552 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/deltagare-card.module.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/deltagare-card/deltagare-card.module.ts
@@ -6,7 +6,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { HandledarePickerFormModule } from '@msfa-shared/components/handledare-picker-form/handledare-picker-form.module';
import { HideTextModule } from '@msfa-shared/components/hide-text/hide-text.module';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiBackLinkModule } from '@ui/back-link/back-link.module';
import { UiLinkButtonModule } from '@ui/link-button/link-button.module';
@@ -42,7 +42,7 @@ import { DeltagareCardService } from './deltagare-card.service';
DigiNgLayoutExpansionPanelModule,
DigiNgPopoverModule,
UiSkeletonModule,
- IconModule,
+ UiIconModule,
UiLinkButtonModule,
],
providers: [DeltagareCardService],
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.html b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.html
index 0324e85..e8326fd 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.html
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.html
@@ -15,7 +15,7 @@
af-variation="tertiary"
(afOnClick)="addNewFormGroupToFormArray()"
>
-
+
Lägg till yrke
-
+
Ta bort yrket
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.ts
index 6cd1a3a..69b62f5 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step0/slutredovisning-form-step0-work/slutredovisning-form-step0-work.component.ts
@@ -11,6 +11,8 @@ import { map } from 'rxjs/operators';
import { SlutredovisningFormService } from '../../slutredovisning-form.service';
import { SlutredovisningFormStep0WorkFormData } from './slutredovisning-form-step0-work.model';
import { SlutredovisningFormStep0WorkValidator } from './slutredovisning-form-step0-work.validator';
+import { UiIconType } from '@ui/icon/icon-type.enum';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-slutredovisning-form-step0-work',
@@ -20,6 +22,8 @@ import { SlutredovisningFormStep0WorkValidator } from './slutredovisning-form-st
})
export class SlutredovisningFormStep0WorkComponent implements OnInit {
readonly formGroupKey: MainOccupation = MainOccupation.Work;
+ readonly UiIconType = UiIconType;
+ readonly UiIconSize = UiIconSize;
@Input() formGroupRef: FormGroup;
@Input() formData: SlutredovisningFormStep0WorkFormData;
@Input() shouldValidate: boolean;
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form.module.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form.module.ts
index 9b8b58e..c635021 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form.module.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form.module.ts
@@ -9,7 +9,7 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { ConfirmDialogModule } from '@msfa-shared/components/confirm-dialog/confirm-dialog.module';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiBackLinkModule } from '@ui/back-link/back-link.module';
import { UiCheckboxModule } from '@ui/checkbox/checkbox.module';
@@ -70,7 +70,7 @@ import { SlutredovisningFormService } from './slutredovisning-form.service';
DigiNgFormInputModule,
DigiNgDialogModule,
DigiNgFormRangeModule,
- IconModule,
+ UiIconModule,
UiErrorListModule,
UiInputModule,
SlutredovisningViewDescriptionListModule,
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.html b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.html
index 4e4a22d..be1f3d4 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.html
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.html
@@ -30,7 +30,7 @@
-
+
{{handelse.description}}
|
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.ts
index 76b008b..2298f7e 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component.ts
@@ -1,10 +1,11 @@
import { ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit } from '@angular/core';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { DeltagareHandelse, DeltagareHandelseData } from '@msfa-models/deltagare-handelse.model';
import { DeltagareCompact } from '@msfa-models/deltagare.model';
import { PaginationMeta } from '@msfa-models/pagination-meta.model';
import { DeltagareHandelserService } from '@msfa-services/deltagare-handelser.service';
import { Observable } from 'rxjs';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-deltagare-list-handelser-dialog',
@@ -14,7 +15,8 @@ import { Observable } from 'rxjs';
})
export class DeltagareListHandelserDialogComponent implements OnInit, OnDestroy {
@Input() deltagare: DeltagareCompact;
- iconType = IconType;
+ IconType = UiIconType;
+ IconSize = UiIconSize;
deltagareHandelserData$: Observable
;
constructor(private deltagareHandelserService: DeltagareHandelserService) {}
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.html b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.html
index 70fda39..5cd580b 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.html
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.html
@@ -49,7 +49,7 @@
-
+
Avbrott
|
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.ts
index ea82881..7fee26d 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.component.ts
@@ -1,12 +1,13 @@
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { ErrorSeverity } from '@msfa-enums/error-severity.enum';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { SortOrder } from '@msfa-enums/sort-order.enum';
import { DeltagareCompact } from '@msfa-models/deltagare.model';
import { PaginationMeta } from '@msfa-models/pagination-meta.model';
import { Sort } from '@msfa-models/sort.model';
import { BehaviorSubject } from 'rxjs';
import { map } from 'rxjs/operators';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-deltagare-list-table',
@@ -25,7 +26,8 @@ export class DeltagareListTableComponent {
handelserDialogIsOpen$ = this.handelserDialogDeltagare$.pipe(map(genomforandereferens => !!genomforandereferens));
- iconType = IconType;
+ IconType = UiIconType;
+ IconSize = UiIconSize;
errorSeverity = ErrorSeverity;
columnHeaders: { label: string; key: keyof DeltagareCompact }[] = [
diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.module.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.module.ts
index eb9007f..645794d 100644
--- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.module.ts
+++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-list/components/deltagare-list-table/deltagare-list-table.module.ts
@@ -2,7 +2,7 @@ import { DigiNgDialogModule } from '@af/digi-ng/_dialog/dialog';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { UiLoaderModule } from '@ui/loader/loader.module';
import { DeltagareListHandelserDialogComponent } from '../deltagare-list-handelser-dialog/deltagare-list-handelser-dialog.component';
import { DeltagareListTableComponent } from './deltagare-list-table.component';
@@ -10,7 +10,7 @@ import { DeltagareListTableComponent } from './deltagare-list-table.component';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [DeltagareListTableComponent, DeltagareListHandelserDialogComponent],
- imports: [CommonModule, RouterModule, IconModule, UiLoaderModule, DigiNgDialogModule],
+ imports: [CommonModule, RouterModule, UiIconModule, UiLoaderModule, DigiNgDialogModule],
exports: [DeltagareListTableComponent],
})
export class DeltagareListTableModule {}
diff --git a/apps/mina-sidor-fa/src/app/pages/login/login.component.html b/apps/mina-sidor-fa/src/app/pages/login/login.component.html
index 95324c0..f0fc72c 100644
--- a/apps/mina-sidor-fa/src/app/pages/login/login.component.html
+++ b/apps/mina-sidor-fa/src/app/pages/login/login.component.html
@@ -8,13 +8,13 @@
-
-
+
Mobilt bank-id
-
-
+
Bank-id
@@ -26,7 +26,7 @@
uiType="secondary"
[uiHref]="passwordLink"
>
-
+
Användarnamn och lösenord
diff --git a/apps/mina-sidor-fa/src/app/pages/login/login.component.ts b/apps/mina-sidor-fa/src/app/pages/login/login.component.ts
index 5c61a44..b537a3c 100644
--- a/apps/mina-sidor-fa/src/app/pages/login/login.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/login/login.component.ts
@@ -1,5 +1,7 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { environment } from '@msfa-environment';
+import { UiIconType } from '@ui/icon/icon-type.enum';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-login',
@@ -8,6 +10,8 @@ import { environment } from '@msfa-environment';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class LoginComponent {
+ IconType = UiIconType;
+ IconSize = UiIconSize;
private readonly _baseLoginUrl = `${environment.ciam.loginUrl}&client_id=${environment.ciam.clientId}&redirect_uri=${window.location.origin}&template=msfa`;
mobileBankIdLink = `${this._baseLoginUrl}&acr_values=bankid-mobile`;
bankIdLink = `${this._baseLoginUrl}&acr_values=bankid`;
diff --git a/apps/mina-sidor-fa/src/app/pages/login/login.module.ts b/apps/mina-sidor-fa/src/app/pages/login/login.module.ts
index 565533e..9f845c6 100644
--- a/apps/mina-sidor-fa/src/app/pages/login/login.module.ts
+++ b/apps/mina-sidor-fa/src/app/pages/login/login.module.ts
@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiLinkButtonModule } from '@ui/link-button/link-button.module';
import { LoginComponent } from './login.component';
@@ -14,7 +14,7 @@ import { LoginComponent } from './login.component';
RouterModule.forChild([{ path: '', component: LoginComponent }]),
LayoutModule,
UiLinkButtonModule,
- IconModule,
+ UiIconModule,
],
})
export class LoginModule {}
diff --git a/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.html b/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.html
index 91c02c9..0717cff 100644
--- a/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.html
+++ b/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.html
@@ -5,7 +5,7 @@
Mitt konto
-
+
Logga ut
diff --git a/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.ts b/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.ts
index aa2593c..936bca8 100644
--- a/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.ts
+++ b/apps/mina-sidor-fa/src/app/pages/my-account/my-account.component.ts
@@ -1,6 +1,6 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { Router } from '@angular/router';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { Employee } from '@msfa-models/employee.model';
import { Organization } from '@msfa-models/organization.model';
import { Role } from '@msfa-models/role.model';
@@ -29,7 +29,7 @@ export class MyAccountComponent {
)
);
allRoles: Role[] = this.roleService.allRoles;
- readonly IconType = IconType;
+ readonly IconType = UiIconType;
constructor(private userService: UserService, private roleService: RoleService, private router: Router) {}
diff --git a/apps/mina-sidor-fa/src/app/pages/my-account/my-account.module.ts b/apps/mina-sidor-fa/src/app/pages/my-account/my-account.module.ts
index 502d19d..2eb08f3 100644
--- a/apps/mina-sidor-fa/src/app/pages/my-account/my-account.module.ts
+++ b/apps/mina-sidor-fa/src/app/pages/my-account/my-account.module.ts
@@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { HideTextModule } from '@msfa-shared/components/hide-text/hide-text.module';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { OrganizationPickerFormModule } from '@msfa-shared/components/organization-picker-form/organization-picker-form.module';
import { RolesDialogModule } from '@msfa-shared/components/roles-dialog/roles-dialog.module';
@@ -17,7 +17,7 @@ import { MyAccountComponent } from './my-account.component';
CommonModule,
RouterModule.forChild([{ path: '', component: MyAccountComponent }]),
LayoutModule,
- IconModule,
+ UiIconModule,
UiSkeletonModule,
OrganizationPickerFormModule,
RolesDialogModule,
diff --git a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.html b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.html
index e58d65a..0ce1d58 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.html
+++ b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.html
@@ -1,8 +1,8 @@
{{ transformedText }}
diff --git a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.spec.ts b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.spec.ts
index e1c5072..96b7f16 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.spec.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.spec.ts
@@ -1,6 +1,6 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { IconComponent } from '../icon/icon.component';
import { HideTextComponent } from './hide-text.component';
+import { IconComponent } from '@ui/icon/icon.component';
describe('HideTextComponent', () => {
let component: HideTextComponent;
diff --git a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.ts b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.ts
index 5398f26..4bfe39e 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.component.ts
@@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-hide-text',
@@ -13,7 +14,8 @@ export class HideTextComponent {
@Input() ariaLabelType = 'text';
hideText = true;
- iconType = IconType;
+ IconType = UiIconType;
+ IconSize = UiIconSize;
get transformedText(): string {
return this.hideText ? this.symbols : this.changingText;
diff --git a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.module.ts b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.module.ts
index 3b3bae6..c309c5b 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.module.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/hide-text/hide-text.module.ts
@@ -1,12 +1,12 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { HideTextComponent } from './hide-text.component';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [HideTextComponent],
- imports: [CommonModule, IconModule],
+ imports: [CommonModule, UiIconModule],
exports: [HideTextComponent],
})
export class HideTextModule {}
diff --git a/apps/mina-sidor-fa/src/app/shared/components/icon/icon.component.ts b/apps/mina-sidor-fa/src/app/shared/components/icon/icon.component.ts
deleted file mode 100644
index 4691c2d..0000000
--- a/apps/mina-sidor-fa/src/app/shared/components/icon/icon.component.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';
-import { IconSize } from '@msfa-enums/icon-size.enum';
-import { IconType } from '@msfa-enums/icon-type.enum';
-
-const CUSTOM_ICONS: IconType[] = [
- IconType.HOME,
- IconType.SETTINGS,
- IconType.PLUS,
- IconType.CLIPBOARD,
- IconType.BUILDING,
- IconType.LOGOUT,
- IconType.BANKID,
-];
-
-@Component({
- selector: 'msfa-icon',
- templateUrl: './icon.component.html',
- styleUrls: ['./icon.component.scss'],
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class IconComponent implements OnChanges {
- @Input() icon: IconType;
- @Input() size: IconSize = IconSize.M;
-
- iconClass: string;
- iconType = IconType;
-
- ngOnChanges(): void {
- this.iconClass = `icon--${this.size}`;
- }
-
- get isCustomIcon(): boolean {
- return CUSTOM_ICONS.includes(this.icon);
- }
-}
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.html b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.html
index eb80c2e..f2385ba 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.html
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.html
@@ -11,17 +11,17 @@
-
-
+
{{ user.fullName }}
-
-
+
{{ selectedOrganization.name }}
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.spec.ts b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.spec.ts
index 9e7d60a..0824bd4 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.spec.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.spec.ts
@@ -1,7 +1,7 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { NavigationComponent } from './navigation.component';
describe('NavigationComponent', () => {
@@ -12,7 +12,7 @@ describe('NavigationComponent', () => {
waitForAsync(() => {
void TestBed.configureTestingModule({
declarations: [NavigationComponent],
- imports: [RouterTestingModule, IconModule],
+ imports: [RouterTestingModule, UiIconModule],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();
})
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.ts b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.ts
index 8d48f18..3b9ef33 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.component.ts
@@ -1,9 +1,10 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { Feature } from '@msfa-enums/feature.enum';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { environment } from '@msfa-environment';
import { Employee } from '@msfa-models/employee.model';
import { Organization } from '@msfa-models/organization.model';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-navigation',
@@ -14,7 +15,8 @@ import { Organization } from '@msfa-models/organization.model';
export class NavigationComponent {
@Input() user: Employee;
@Input() selectedOrganization: Organization;
- iconType = IconType;
+ IconType = UiIconType;
+ IconSize = UiIconSize;
activeFeatures: Feature[] = environment.activeFeatures;
get myAccountVisible(): boolean {
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.module.ts b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.module.ts
index 5091037..0a44250 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.module.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/navigation/navigation.module.ts
@@ -1,13 +1,13 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { NavigationComponent } from './navigation.component';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [NavigationComponent],
- imports: [CommonModule, RouterModule, IconModule],
+ imports: [CommonModule, RouterModule, UiIconModule],
exports: [NavigationComponent],
})
export class NavigationModule {}
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.html b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.html
index 2cbd6b6..e47639f 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.html
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.html
@@ -8,33 +8,33 @@
class="sidebar__link"
aria-label="Till startsidan för mina sidor för fristående aktörer"
>
-
+
Hem
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.spec.ts b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.spec.ts
index 4a2f300..bcf309c 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.spec.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.spec.ts
@@ -1,6 +1,6 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
+import { UiIconModule } from '@ui/icon/icon.module';
import { SidebarComponent } from './sidebar.component';
describe('SidebarComponent', () => {
@@ -10,7 +10,7 @@ describe('SidebarComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SidebarComponent],
- imports: [RouterTestingModule, IconModule],
+ imports: [RouterTestingModule, UiIconModule],
}).compileComponents();
});
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.ts b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.ts
index 1ad3566..d823573 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.component.ts
@@ -1,9 +1,10 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { Feature } from '@msfa-enums/feature.enum';
-import { IconType } from '@msfa-enums/icon-type.enum';
+import { UiIconType } from '@ui/icon/icon-type.enum';
import { RoleEnum } from '@msfa-enums/role.enum';
import { environment } from '@msfa-environment';
import { Role } from '@msfa-models/role.model';
+import { UiIconSize } from '@ui/icon/icon-size.enum';
@Component({
selector: 'msfa-sidebar',
@@ -13,7 +14,8 @@ import { Role } from '@msfa-models/role.model';
})
export class SidebarComponent {
@Input() userRoles: Role[];
- iconType = IconType;
+ UiIconType = UiIconType;
+ UiIconSize = UiIconSize;
activeFeatures: Feature[] = environment.activeFeatures;
get adminVisible(): boolean {
diff --git a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.module.ts b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.module.ts
index 8669b0d..7e3b0cc 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.module.ts
+++ b/apps/mina-sidor-fa/src/app/shared/components/layout/components/sidebar/sidebar.module.ts
@@ -1,13 +1,13 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
-import { IconModule } from '@msfa-shared/components/icon/icon.module';
import { SidebarComponent } from './sidebar.component';
+import { UiIconModule } from '@ui/icon/icon.module';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [SidebarComponent],
- imports: [CommonModule, RouterModule, IconModule],
+ imports: [CommonModule, RouterModule, UiIconModule],
exports: [SidebarComponent],
})
export class SidebarModule {}
diff --git a/apps/mina-sidor-fa/src/app/shared/enums/icon-size.enum.ts b/libs/ui/src/icon/icon-size.enum.ts
similarity index 71%
rename from apps/mina-sidor-fa/src/app/shared/enums/icon-size.enum.ts
rename to libs/ui/src/icon/icon-size.enum.ts
index 2d0b486..80e94bf 100644
--- a/apps/mina-sidor-fa/src/app/shared/enums/icon-size.enum.ts
+++ b/libs/ui/src/icon/icon-size.enum.ts
@@ -1,4 +1,4 @@
-export enum IconSize {
+export enum UiIconSize {
S = 's',
M = 'm',
L = 'l',
diff --git a/apps/mina-sidor-fa/src/app/shared/enums/icon-type.enum.ts b/libs/ui/src/icon/icon-type.enum.ts
similarity index 95%
rename from apps/mina-sidor-fa/src/app/shared/enums/icon-type.enum.ts
rename to libs/ui/src/icon/icon-type.enum.ts
index d02a872..b9121bc 100644
--- a/apps/mina-sidor-fa/src/app/shared/enums/icon-type.enum.ts
+++ b/libs/ui/src/icon/icon-type.enum.ts
@@ -1,4 +1,4 @@
-export enum IconType {
+export enum UiIconType {
HOME = 'home', // Custom
SETTINGS = 'settings', // Custom
PLUS = 'plus', // Custom
diff --git a/apps/mina-sidor-fa/src/app/shared/components/icon/icon.component.html b/libs/ui/src/icon/icon.component.html
similarity index 92%
rename from apps/mina-sidor-fa/src/app/shared/components/icon/icon.component.html
rename to libs/ui/src/icon/icon.component.html
index 96f3f33..9700ad6 100644
--- a/apps/mina-sidor-fa/src/app/shared/components/icon/icon.component.html
+++ b/libs/ui/src/icon/icon.component.html
@@ -1,19 +1,25 @@
-