refactor(project): Renamed all instances of dafa to msfa or mina-sidor-fa. (TV-379)
Squashed commit of the following: commit d3f52ff6876f6e246c7d3c188e56cc2370289341 Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Tue Aug 17 14:10:38 2021 +0200 Renamed all dafa instances to msfa
This commit is contained in:
16
apps/mina-sidor-fa/src/app/shared/enums/address-type.enum.ts
Normal file
16
apps/mina-sidor-fa/src/app/shared/enums/address-type.enum.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export enum AddressType {
|
||||
OFFICIAL = 'Folkbokföringsadress',
|
||||
POSTAL = 'Postadress',
|
||||
UNSPECIFIED = 'Ospecificerad adress',
|
||||
}
|
||||
|
||||
export function getAddressType(addressType: 'FBF' | 'EgenAngiven'): AddressType {
|
||||
switch (addressType) {
|
||||
case 'FBF':
|
||||
return AddressType.OFFICIAL;
|
||||
case 'EgenAngiven':
|
||||
return AddressType.POSTAL;
|
||||
default:
|
||||
return AddressType.UNSPECIFIED;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export enum Authorization {
|
||||
UserManagement = 'UserManagement',
|
||||
Economy = 'Economy',
|
||||
Reports = 'Reports',
|
||||
ParticipantManagement = 'ParticipantManagement',
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export enum ErrorSeverity {
|
||||
HIGH = 'High',
|
||||
MEDIUM = 'Medium',
|
||||
LOW = 'Low'
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export enum ErrorType {
|
||||
API = 'API Error',
|
||||
NETWORK = 'Network Error',
|
||||
APP = 'Application Error',
|
||||
UNKNOWN = 'Unknown Error'
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export enum IconSize {
|
||||
S = 's',
|
||||
M = 'm',
|
||||
L = 'l',
|
||||
XL = 'xl',
|
||||
XXL = 'xxl',
|
||||
}
|
||||
21
apps/mina-sidor-fa/src/app/shared/enums/icon-type.enum.ts
Normal file
21
apps/mina-sidor-fa/src/app/shared/enums/icon-type.enum.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export enum IconType {
|
||||
HOME = 'home', // Custom
|
||||
SETTINGS = 'settings', // Custom
|
||||
PLUS = 'plus', // Custom
|
||||
CLIPBOARD = 'clipboard', // Custom
|
||||
USER = 'user',
|
||||
USERS = 'users',
|
||||
BELL = 'bell',
|
||||
CALENDAR = 'calendar',
|
||||
ENVELOPE = 'envelope',
|
||||
SOK_KANDIDAT = 'sok-kandidat',
|
||||
EDIT = 'edit',
|
||||
INFO = 'info',
|
||||
WARNING = 'warning',
|
||||
APPROVED = 'approved',
|
||||
X = 'x',
|
||||
ARROW_LEFT = 'arrow-left',
|
||||
ARROW_RIGHT = 'arrow-right',
|
||||
EYE = 'eye',
|
||||
EYESLASH = 'eyeslash',
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export enum KeyboardCodes {
|
||||
ENTER = 'Enter',
|
||||
ESCAPE = 'Escape',
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export enum ParticipantStatus {
|
||||
ACTIVE = 'active',
|
||||
FOLLOW_UP = 'follow-up',
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
export enum PhoneNumberType {
|
||||
CELL = 'Mobil',
|
||||
DOMESTIC = 'Hem',
|
||||
WORK = 'Arbete',
|
||||
UNKNOWN = 'Okänd',
|
||||
}
|
||||
|
||||
export function getPhoneNumberType(phoneNumberType: 'Mobil' | 'Bostad'): PhoneNumberType {
|
||||
switch (phoneNumberType) {
|
||||
case 'Mobil':
|
||||
return PhoneNumberType.CELL;
|
||||
case 'Bostad':
|
||||
return PhoneNumberType.DOMESTIC;
|
||||
default:
|
||||
return PhoneNumberType.UNKNOWN;
|
||||
}
|
||||
}
|
||||
5
apps/mina-sidor-fa/src/app/shared/enums/service.enum.ts
Normal file
5
apps/mina-sidor-fa/src/app/shared/enums/service.enum.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum Service {
|
||||
KVL = 'KVL',
|
||||
KROM = 'KROM',
|
||||
STOM = 'STOM',
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export enum SortOrder {
|
||||
ASC = 'asc',
|
||||
DESC = 'desc',
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export enum ToastPosition {
|
||||
TOP_RIGHT = 'top-right',
|
||||
TOP_CENTER = 'top-center',
|
||||
TOP_LEFT = 'top-left',
|
||||
BOTTOM_RIGHT = 'bottom-right',
|
||||
BOTTOM_CENTER = 'bottom-center',
|
||||
BOTTOM_LEFT = 'bottom-left',
|
||||
CENTER_RIGHT = 'center-right',
|
||||
CENTER_CENTER = 'center-center',
|
||||
CENTER_LEFT = 'center-left',
|
||||
}
|
||||
Reference in New Issue
Block a user