@muraai/mnl-commons 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/esm2020/lib/commons.module.mjs +136 -0
  2. package/esm2020/lib/components/header/header.component.mjs +31 -0
  3. package/esm2020/lib/components/highlighter/highlighter.component.mjs +23 -0
  4. package/esm2020/lib/components/language-menu/language-menu.component.mjs +36 -0
  5. package/esm2020/lib/components/login/login.component.mjs +55 -0
  6. package/esm2020/lib/components/menu/menu.component.mjs +67 -0
  7. package/esm2020/lib/components/profile/profile.component.mjs +42 -0
  8. package/esm2020/lib/material.module.mjs +60 -0
  9. package/esm2020/lib/model/log-levels.model.mjs +17 -0
  10. package/esm2020/lib/model/menu-data.model.mjs +2 -0
  11. package/esm2020/lib/model/translation-resource.mjs +14 -0
  12. package/esm2020/lib/model/user-model.mjs +2 -0
  13. package/esm2020/lib/pipes/app-config-pipe.mjs +20 -0
  14. package/esm2020/lib/pipes/time-ago-pipe.mjs +43 -0
  15. package/esm2020/lib/pipes/user-fullname-pipe.mjs +34 -0
  16. package/esm2020/lib/pipes/user-initials-pipe.mjs +48 -0
  17. package/esm2020/lib/services/app.config.service.mjs +41 -0
  18. package/esm2020/lib/services/local-storage.service.mjs +48 -0
  19. package/esm2020/lib/services/locale.service.mjs +89 -0
  20. package/esm2020/lib/services/log.service.mjs +89 -0
  21. package/esm2020/lib/services/user-profile.service.mjs +36 -0
  22. package/esm2020/lib/utils/object-utils.mjs +46 -0
  23. package/esm2020/muraai-mnl-commons.mjs +5 -0
  24. package/esm2020/public-api.mjs +25 -0
  25. package/fesm2015/muraai-mnl-commons.mjs +908 -0
  26. package/fesm2015/muraai-mnl-commons.mjs.map +1 -0
  27. package/fesm2020/muraai-mnl-commons.mjs +905 -0
  28. package/fesm2020/muraai-mnl-commons.mjs.map +1 -0
  29. package/index.d.ts +5 -0
  30. package/lib/commons.module.d.ts +21 -0
  31. package/lib/components/header/header.component.d.ts +5 -0
  32. package/lib/components/highlighter/highlighter.component.d.ts +3 -0
  33. package/lib/components/language-menu/language-menu.component.d.ts +6 -1
  34. package/lib/components/login/login.component.d.ts +5 -2
  35. package/lib/components/menu/menu.component.d.ts +3 -0
  36. package/lib/components/profile/profile.component.d.ts +8 -2
  37. package/lib/material.module.d.ts +14 -2
  38. package/lib/model/menu-data.model.d.ts +1 -0
  39. package/lib/pipes/app-config-pipe.d.ts +3 -0
  40. package/lib/pipes/time-ago-pipe.d.ts +4 -1
  41. package/lib/pipes/user-fullname-pipe.d.ts +4 -0
  42. package/lib/pipes/user-initials-pipe.d.ts +6 -0
  43. package/lib/services/app.config.service.d.ts +3 -0
  44. package/lib/services/local-storage.service.d.ts +7 -0
  45. package/lib/services/locale.service.d.ts +4 -0
  46. package/lib/services/log.service.d.ts +4 -1
  47. package/lib/services/user-profile.service.d.ts +3 -0
  48. package/package.json +24 -14
  49. package/public-api.d.ts +1 -0
  50. package/theming.scss +6 -5186
  51. package/bundles/muraai-mnl-commons.umd.js +0 -1087
  52. package/bundles/muraai-mnl-commons.umd.js.map +0 -1
  53. package/bundles/muraai-mnl-commons.umd.min.js +0 -16
  54. package/bundles/muraai-mnl-commons.umd.min.js.map +0 -1
  55. package/esm2015/lib/commons.module.js +0 -89
  56. package/esm2015/lib/components/header/header.component.js +0 -26
  57. package/esm2015/lib/components/highlighter/highlighter.component.js +0 -27
  58. package/esm2015/lib/components/language-menu/language-menu.component.js +0 -29
  59. package/esm2015/lib/components/login/login.component.js +0 -58
  60. package/esm2015/lib/components/menu/menu.component.js +0 -66
  61. package/esm2015/lib/components/profile/profile.component.js +0 -29
  62. package/esm2015/lib/material.module.js +0 -33
  63. package/esm2015/lib/model/log-levels.model.js +0 -17
  64. package/esm2015/lib/model/menu-data.model.js +0 -1
  65. package/esm2015/lib/model/translation-resource.js +0 -14
  66. package/esm2015/lib/model/user-model.js +0 -1
  67. package/esm2015/lib/pipes/app-config-pipe.js +0 -21
  68. package/esm2015/lib/pipes/time-ago-pipe.js +0 -46
  69. package/esm2015/lib/pipes/user-fullname-pipe.js +0 -27
  70. package/esm2015/lib/pipes/user-initials-pipe.js +0 -27
  71. package/esm2015/lib/services/app.config.service.js +0 -45
  72. package/esm2015/lib/services/local-storage.service.js +0 -19
  73. package/esm2015/lib/services/locale.service.js +0 -93
  74. package/esm2015/lib/services/log.service.js +0 -93
  75. package/esm2015/lib/services/user-profile.service.js +0 -43
  76. package/esm2015/lib/utils/object-utils.js +0 -46
  77. package/esm2015/muraai-mnl-commons.js +0 -6
  78. package/esm2015/public-api.js +0 -22
  79. package/esm5/lib/commons.module.js +0 -92
  80. package/esm5/lib/components/header/header.component.js +0 -27
  81. package/esm5/lib/components/highlighter/highlighter.component.js +0 -28
  82. package/esm5/lib/components/language-menu/language-menu.component.js +0 -30
  83. package/esm5/lib/components/login/login.component.js +0 -59
  84. package/esm5/lib/components/menu/menu.component.js +0 -78
  85. package/esm5/lib/components/profile/profile.component.js +0 -30
  86. package/esm5/lib/material.module.js +0 -36
  87. package/esm5/lib/model/log-levels.model.js +0 -24
  88. package/esm5/lib/model/menu-data.model.js +0 -1
  89. package/esm5/lib/model/translation-resource.js +0 -14
  90. package/esm5/lib/model/user-model.js +0 -1
  91. package/esm5/lib/pipes/app-config-pipe.js +0 -22
  92. package/esm5/lib/pipes/time-ago-pipe.js +0 -48
  93. package/esm5/lib/pipes/user-fullname-pipe.js +0 -30
  94. package/esm5/lib/pipes/user-initials-pipe.js +0 -30
  95. package/esm5/lib/services/app.config.service.js +0 -57
  96. package/esm5/lib/services/local-storage.service.js +0 -22
  97. package/esm5/lib/services/locale.service.js +0 -96
  98. package/esm5/lib/services/log.service.js +0 -130
  99. package/esm5/lib/services/user-profile.service.js +0 -45
  100. package/esm5/lib/utils/object-utils.js +0 -54
  101. package/esm5/muraai-mnl-commons.js +0 -6
  102. package/esm5/public-api.js +0 -22
  103. package/fesm2015/muraai-mnl-commons.js +0 -762
  104. package/fesm2015/muraai-mnl-commons.js.map +0 -1
  105. package/fesm5/muraai-mnl-commons.js +0 -863
  106. package/fesm5/muraai-mnl-commons.js.map +0 -1
  107. package/muraai-mnl-commons.d.ts +0 -5
  108. package/muraai-mnl-commons.metadata.json +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"muraai-mnl-commons.js","sources":["ng://@muraai/mnl-commons/lib/material.module.ts","ng://@muraai/mnl-commons/lib/components/header/header.component.ts","ng://@muraai/mnl-commons/lib/components/menu/menu.component.ts","ng://@muraai/mnl-commons/lib/utils/object-utils.ts","ng://@muraai/mnl-commons/lib/services/app.config.service.ts","ng://@muraai/mnl-commons/lib/pipes/app-config-pipe.ts","ng://@muraai/mnl-commons/lib/model/log-levels.model.ts","ng://@muraai/mnl-commons/lib/services/log.service.ts","ng://@muraai/mnl-commons/lib/services/local-storage.service.ts","ng://@muraai/mnl-commons/lib/services/user-profile.service.ts","ng://@muraai/mnl-commons/lib/services/locale.service.ts","ng://@muraai/mnl-commons/lib/components/language-menu/language-menu.component.ts","ng://@muraai/mnl-commons/lib/components/login/login.component.ts","ng://@muraai/mnl-commons/lib/components/profile/profile.component.ts","ng://@muraai/mnl-commons/lib/pipes/user-initials-pipe.ts","ng://@muraai/mnl-commons/lib/pipes/time-ago-pipe.ts","ng://@muraai/mnl-commons/lib/pipes/user-fullname-pipe.ts","ng://@muraai/mnl-commons/lib/components/highlighter/highlighter.component.ts","ng://@muraai/mnl-commons/lib/model/translation-resource.ts","ng://@muraai/mnl-commons/lib/commons.module.ts","ng://@muraai/mnl-commons/public-api.ts","ng://@muraai/mnl-commons/muraai-mnl-commons.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatListModule } from '@angular/material/list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatCardModule } from '@angular/material/card';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatMenuModule } from '@angular/material/menu';\nexport function modules() {\n return [\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatListModule,\n FormsModule,\n ReactiveFormsModule,\n MatMenuModule,\n ];\n}\n@NgModule({\n imports: modules(),\n exports: modules()\n})\nexport class MaterialModule {}\n","import { Component, Input, ViewEncapsulation, Output, EventEmitter, } from '@angular/core';\n\n@Component({\n selector: 'mnl-header',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class HeaderComponent {\n\n @Input()\n header: any;\n\n @Output()\n menuButonClickEvent: EventEmitter<any> = new EventEmitter<any>();\n\n menuClick(event) {\n this.menuButonClickEvent.emit(event);\n }\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { MenuModel } from '../../model/menu-data.model';\n\n@Component({\n selector: 'mnl-menu',\n templateUrl: './menu.component.html',\n styleUrls: ['./menu.component.scss'],\n})\nexport class MenuComponent {\n @Input()\n menuData: Array<MenuModel>;\n\n @Output()\n menuClick: EventEmitter<any> = new EventEmitter<any>();\n\n onMenuClick(menu: MenuModel) {\n if (this.hasSubMenu(menu)) {\n this.openMenu(menu);\n this.onSubMenuClick(menu.subMenus[0], menu);\n } else {\n this.deSelectMenus(this.menuData);\n this.selectMenu(menu);\n this.menuClick.emit(menu);\n }\n }\n\n onSubMenuClick(subMenu: MenuModel, menu: MenuModel) {\n this.deSelectMenus(this.menuData);\n this.selectMenu(menu);\n this.selectMenu(subMenu);\n this.menuClick.emit(subMenu);\n }\n\n deSelectMenus(menus: MenuModel[]) {\n if (menus) {\n for (const menu of menus) {\n if (menu.selected) {\n menu.selected = false;\n }\n this.deSelectMenus(menu.subMenus);\n }\n }\n }\n\n private selectMenu(menu: MenuModel) {\n if (menu) {\n menu.selected = true;\n }\n }\n\n private hasSubMenu(menu: MenuModel) {\n return menu.subMenus && menu.subMenus.length > 0;\n }\n\n toggleMenu(menu: MenuModel, event: Event) {\n menu.expanded = !menu.expanded;\n\n if (event) {\n event.stopPropagation();\n }\n }\n\n private openMenu(menu: MenuModel) {\n menu.expanded = true;\n }\n}\n","export class ObjectUtils {\n /**\n * Gets a value from an object by composed key\n * ObjectUtils.getValue({ item: { nodeType: 'cm:folder' }}, 'item.nodeType') ==> 'cm:folder'\n */\n static getValue(target: any, key: string): any {\n\n if (!target) {\n return undefined;\n }\n\n const keys = key.split('.');\n key = '';\n\n do {\n key += keys.shift();\n const value = target[key];\n if (value !== undefined && (typeof value === 'object' || !keys.length)) {\n target = value;\n key = '';\n } else if (!keys.length) {\n target = undefined;\n } else {\n key += '.';\n }\n } while (keys.length);\n\n return target;\n }\n\n static merge(...objects): any {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n if (prop in result && Array.isArray(result[prop])) {\n result[prop] = result[prop].concat(source[prop]);\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = ObjectUtils.merge(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n });\n });\n\n return result;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { ObjectUtils } from '../utils/object-utils';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AppConfigService {\n private config: object = null;\n\n constructor(private http: HttpClient) {}\n\n /**\n * Use to get the data found in the file (config file)\n */\n public get<T>(key: string, defaultValue?: any): T {\n const result: any = ObjectUtils.getValue(this.config, key);\n return (result === undefined ? defaultValue : result) as T;\n }\n\n /**\n * This method:\n * Loads \"config.json\" to get all variables (e.g.: 'app.config.json')\n */\n load(): Promise<any> {\n return new Promise(async (resolve) => {\n const configUrl = `assets/app.config.json`;\n await this.http.get(configUrl).subscribe(\n (data: any) => {\n this.config = Object.assign({}, this.config, data || {});\n resolve(this.config);\n },\n () => {\n resolve(this.config);\n }\n );\n });\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { AppConfigService } from '../services/app.config.service';\n\n@Pipe({\n name: 'mnlAppConfig'\n})\nexport class AppConfigPipe implements PipeTransform {\n constructor(private config: AppConfigService) {}\n\n transform(value: string, defaultValue?: any): any {\n return this.config.get(value) || defaultValue || '';\n }\n}\n","export class LogLevelsEnum extends Number {\n static TRACE = 5;\n static DEBUG = 1;\n static INFO = 2;\n static WARN = 3;\n static ERROR = 4;\n static SILENT = 0;\n}\n\nexport let logLevels: any[] = [\n {level: LogLevelsEnum.TRACE, name: 'TRACE'},\n {level: LogLevelsEnum.DEBUG, name: 'DEBUG'},\n {level: LogLevelsEnum.INFO, name: 'INFO'},\n {level: LogLevelsEnum.WARN, name: 'WARN'},\n {level: LogLevelsEnum.ERROR, name: 'ERROR'},\n {level: LogLevelsEnum.SILENT, name: 'SILENT'}\n];\n","import { Injectable } from '@angular/core';\nimport { AppConfigService } from './app.config.service';\nimport { logLevels, LogLevelsEnum } from '../model/log-levels.model';\nimport { Subject } from 'rxjs';\n// tslint:disable: no-console\n@Injectable({\n providedIn: 'root'\n})\nexport class LogService {\n\n onMessage: Subject<any>;\n constructor(private appConfigService: AppConfigService) {\n this.onMessage = new Subject();\n }\n get currentLogLevel() {\n const configLevel: string = this.appConfigService.get('logLevel');\n\n if (configLevel) {\n return this.getLogLevel(configLevel);\n }\n\n return LogLevelsEnum.ERROR;\n }\n\n error(message?: any, ...optionalParams: any[]) {\n if (this.currentLogLevel >= LogLevelsEnum.ERROR) {\n\n this.messageBus(message, 'ERROR');\n\n console.error(message, ...optionalParams);\n }\n }\n\n debug(message?: any, ...optionalParams: any[]) {\n if (this.currentLogLevel >= LogLevelsEnum.DEBUG) {\n\n this.messageBus(message, 'DEBUG');\n\n console.debug(message, ...optionalParams);\n }\n }\n\n info(message?: any, ...optionalParams: any[]) {\n if (this.currentLogLevel >= LogLevelsEnum.INFO) {\n\n this.messageBus(message, 'INFO');\n\n console.info(message, ...optionalParams);\n }\n }\n\n log(message?: any, ...optionalParams: any[]) {\n if (this.currentLogLevel >= LogLevelsEnum.TRACE) {\n\n this.messageBus(message, 'LOG');\n\n console.log(message, ...optionalParams);\n }\n }\n\n trace(message?: any, ...optionalParams: any[]) {\n if (this.currentLogLevel >= LogLevelsEnum.TRACE) {\n\n this.messageBus(message, 'TRACE');\n\n console.trace(message, ...optionalParams);\n }\n }\n\n warn(message?: any, ...optionalParams: any[]) {\n if (this.currentLogLevel >= LogLevelsEnum.WARN) {\n\n this.messageBus(message, 'WARN');\n\n console.warn(message, ...optionalParams);\n }\n }\n\n assert(test?: boolean, message?: string, ...optionalParams: any[]) {\n if (this.currentLogLevel !== LogLevelsEnum.SILENT) {\n\n this.messageBus(message, 'ASSERT');\n\n console.assert(test, message, ...optionalParams);\n }\n }\n\n group(groupTitle?: string, ...optionalParams: any[]) {\n if (this.currentLogLevel !== LogLevelsEnum.SILENT) {\n console.group(groupTitle, ...optionalParams);\n }\n }\n\n groupEnd() {\n if (this.currentLogLevel !== LogLevelsEnum.SILENT) {\n console.groupEnd();\n }\n }\n getLogLevel(level: string): LogLevelsEnum {\n const referencedLevel = logLevels.find((currentLevel: any) => {\n return currentLevel.name.toLocaleLowerCase() === level.toLocaleLowerCase();\n });\n\n return referencedLevel ? referencedLevel.level : 4;\n }\n\n messageBus(message: string, logLevel: string) {\n this.onMessage.next({ text: message, type: logLevel });\n }\n}\n","import { Injectable } from '@angular/core';\n@Injectable({\n providedIn: 'root'\n })\nexport class LocalStorageService {\n set(key, value) {\n localStorage.setItem(key, value);\n }\n get(key): string {\n return localStorage.getItem(key);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {AppConfigService} from './app.config.service';\nimport {LocalStorageService} from './local-storage.service';\n@Injectable({\n providedIn: 'root'\n })\nexport class UserProfileService {\n static LOCALE_PREFIX = '____locale';\n userPrefix = '';\n constructor(private appConfigService: AppConfigService, private localStorageService: LocalStorageService) {}\n getApplicationId(): string {\n return this.appConfigService.get('applicationId') ? this.appConfigService.get('applicationId') : '';\n }\n setUserPrefix(userPrefix) {\n this.userPrefix = userPrefix;\n }\n getUserPrefix(): string {\n return this.userPrefix ? this.userPrefix : '';\n }\n setLocale(locale) {\n this.localStorageService.set( this.getApplicationId() + this.userPrefix + UserProfileService.LOCALE_PREFIX , locale);\n }\n getLocale(): string {\n return this.localStorageService.get(this.getApplicationId() + this.userPrefix + UserProfileService.LOCALE_PREFIX);\n }\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { AppConfigService } from './app.config.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport { UserProfileService } from './user-profile.service';\nimport { DOCUMENT } from '@angular/common';\nimport { Direction } from '@angular/cdk/bidi';\n\n/** @dynamic */\n@Injectable({\n providedIn: 'root',\n})\nexport class LocaleService {\n locale: string;\n languages: Array<LanguageItem> = [];\n constructor(\n private config: AppConfigService,\n private translate: TranslateService,\n private userProfileService: UserProfileService,\n @Inject(DOCUMENT) private document: Document\n ) {}\n\n setTextOrientation(direction) {\n document.body.setAttribute('dir', direction);\n }\n\n getTextOrientation(): string {\n return document.body.getAttribute('dir');\n }\n\n getLanguages(): Array<LanguageItem> {\n this.languages = this.config.get('languages');\n if (!this.languages) {\n this.languages = [\n {\n key: 'fr',\n label: 'French',\n direction: 'ltr',\n },\n {\n key: 'de',\n label: 'German',\n direction: 'ltr',\n },\n {\n key: 'en',\n label: 'English',\n direction: 'ltr',\n },\n {\n key: 'ar',\n label: 'Arabic',\n direction: 'rtl',\n },\n ];\n }\n return this.languages;\n }\n getDefaultLocale(): LanguageItem {\n this.locale = this.userProfileService.getLocale();\n if (!this.locale) {\n this.locale = this.config.get('locale')\n ? this.config.get('locale')\n : this.translate.getBrowserLang()\n ? this.translate.getBrowserLang()\n : 'en';\n }\n return this.languages.find((e) => e.key === this.locale);\n }\n\n getActiveLocale(): LanguageItem {\n if (this.userProfileService.getLocale()) {\n return this.languages.find(\n (e) => e.key === this.userProfileService.getLocale()\n );\n }\n }\n\n setActiveLocale(locale: LanguageItem) {\n if (locale) {\n this.translate.use(locale.key);\n this.setTextOrientation(locale.direction);\n this.userProfileService.setLocale(locale.key);\n }\n }\n}\nexport interface LanguageItem {\n key: string;\n label: string;\n direction?: Direction;\n}\n","import { Component, OnInit } from '@angular/core';\nimport { LocaleService, LanguageItem } from '../../services/locale.service';\n\n@Component({\n selector: 'mnl-language-menu',\n templateUrl: './language-menu.component.html',\n styleUrls: ['./language-menu.component.scss']\n})\nexport class LanguageMenuComponent implements OnInit {\n languages: Array<LanguageItem> = [];\n locale: LanguageItem;\n constructor(private localeService: LocaleService) { }\n\n ngOnInit() {\n this.languages = this.localeService.getLanguages();\n this.locale = this.localeService.getDefaultLocale();\n this.localeService.setActiveLocale(this.locale);\n}\n\n onChangeLanguage(language: LanguageItem) {\n this.localeService.setActiveLocale(language);\n }\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\nimport { UserModel } from '../../model/user-model';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n@Component({\n selector: 'mnl-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.scss']\n})\nexport class LoginComponent implements OnInit {\n\n formGroup: FormGroup;\n\n @Input()\n title = '';\n\n @Input()\n logoImageUrl = './assets/images/logo.png';\n\n @Input()\n backgroundImageUrl = './assets/images/background.jpg';\n\n @Input()\n disabled = false;\n\n @Output()\n login = new EventEmitter<UserModel>();\n\n constructor(private sanitizer: DomSanitizer) {\n\n }\n ngOnInit() {\n this.initForm();\n }\n\n private initForm() {\n this.formGroup = new FormGroup({\n username: new FormControl('', [Validators.required]),\n password: new FormControl('', [Validators.required])\n });\n }\n onSubmit() {\n if (this.formGroup.valid) {\n this.login .emit(this.formGroup.value);\n }\n }\n getBackgroundImageUrl(): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(`url(${this.backgroundImageUrl})`);\n}\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { UserModel } from '../../model/user-model';\n\n@Component({\n selector: 'mnl-user-profile',\n templateUrl: './profile.component.html',\n styleUrls: ['./profile.component.css'],\n})\nexport class ProfileComponent {\n @Input()\n userProfileDetails: UserModel;\n\n @Output()\n userInitialClick: EventEmitter<any> = new EventEmitter<any>();\n\n @Output()\n profileMenuClick: EventEmitter<any> = new EventEmitter<any>();\n\n onUserInitialClick(event: any) {\n this.userInitialClick.emit(event);\n }\n}\n","import { PipeTransform, Pipe } from '@angular/core';\nimport { UserModel } from '../model/user-model';\n\n@Pipe({\n name: 'mnlUserInitialPipe'\n})\nexport class UserInitialPipe implements PipeTransform {\n\n transform(value: UserModel) {\n let userInitials = '';\n if (value.firstName && value.lastName) {\n userInitials = value.firstName.substring(0, 1).toUpperCase() + value.lastName.substring(0, 1).toUpperCase();\n } else if (!value.firstName && value.lastName) {\n userInitials = value.lastName.substring(0, 1).toUpperCase();\n } else if (value.firstName && !value.lastName) {\n userInitials = value.firstName.substring(0, 1).toUpperCase();\n } else if (!value.firstName && !value.lastName) {\n userInitials = value.email.substring(0, 1).toUpperCase();\n }\n return userInitials;\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { DatePipe } from '@angular/common';\nimport * as moment from 'moment';\nimport { UserProfileService } from '../services/user-profile.service';\nimport { AppConfigService } from '../services/app.config.service';\n\n@Pipe({\n name: 'mnlTimeAgo'\n})\nexport class TimeAgoPipe implements PipeTransform {\n\n static DEFAULT_LOCALE = 'en-US';\n static DEFAULT_DATE_TIME_FORMAT = 'dd/MM/yyyy HH:mm';\n\n defaultLocale: string;\n defaultDateTimeFormat: string;\n\n constructor(private appConfigService: AppConfigService, private userProfileService: UserProfileService) {\n this.defaultLocale = TimeAgoPipe.DEFAULT_LOCALE;\n this.defaultDateTimeFormat = TimeAgoPipe.DEFAULT_DATE_TIME_FORMAT;\n }\n\n transform(value: Date, dateTimeFormat?: string, locale?: string) {\n if (value) {\n const currentLocale = this.userProfileService.getLocale();\n const currentDateTimeFormat = this.appConfigService.get('dateTimeFormat') as string;\n const requiredLocale = locale || currentLocale || this.defaultLocale;\n const requiredDateTimeFormat = dateTimeFormat || currentDateTimeFormat || this.defaultDateTimeFormat;\n const then = moment(value);\n const diff = moment().locale(requiredLocale).diff(then, 'days');\n if (diff > 7) {\n const datePipe: DatePipe = new DatePipe(requiredLocale);\n return datePipe.transform(value, requiredDateTimeFormat);\n } else {\n return then.locale(requiredLocale).fromNow();\n }\n }\n return '';\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { UserModel } from '../model/user-model';\n\n@Pipe({\n name: 'mnlUserFullName'\n})\nexport class UserFullnamePipe implements PipeTransform {\n\n transform(value: UserModel): any {\n let fullName = '';\n if (value.firstName && value.lastName) {\n fullName = value.firstName + ' ' + value.lastName;\n } else if (!value.firstName && value.lastName) {\n fullName = value.lastName;\n } else if (value.firstName && !value.lastName) {\n fullName = value.firstName;\n } else if (!value.firstName && !value.lastName) {\n fullName = value.email;\n }\n return fullName;\n }\n\n}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'mnl-highlighter',\n templateUrl: './highlighter.component.html',\n styleUrls: ['./highlighter.component.scss'],\n})\nexport class HighlighterComponent {\n @Input()\n height = '40px';\n\n @Input()\n width = '4px';\n\n @Input()\n enabled = true;\n}\n","import {\n ITranslationResource,\n MultiTranslateHttpLoader,\n} from 'ngx-translate-multi-http-loader';\nimport { InjectionToken } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\nexport const MNL_TRANSLATION_RESOURCE = new InjectionToken<ITranslationResource>('Translation Resource');\n\nexport function translationLoaderFactory(http: HttpClient, resources: ITranslationResource[]) {\n if (!resources) {\n resources = [];\n } else if (!resources.length) {\n resources = [resources as any];\n }\n\n resources.push({ prefix: './assets/mnl-commons/i18n/', suffix: '.json' });\n\n return new MultiTranslateHttpLoader(http, resources);\n}\n","import { NgModule, APP_INITIALIZER } from '@angular/core';\nimport { HeaderComponent } from './components/header/header.component';\nimport { CommonModule } from '@angular/common';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MenuComponent } from './components/menu/menu.component';\nimport { AppConfigService } from './services/app.config.service';\nimport { AppConfigPipe } from './pipes/app-config-pipe';\nimport { LogService } from './services/log.service';\nimport { LocalStorageService } from './services/local-storage.service';\nimport { LanguageMenuComponent } from './components/language-menu/language-menu.component';\nimport { TranslateModule, TranslateService, TranslateLoader } from '@ngx-translate/core';\nimport { UserProfileService } from './services/user-profile.service';\nimport { LocaleService } from './services/locale.service';\nimport { LoginComponent } from './components/login/login.component';\nimport { ProfileComponent } from './components/profile/profile.component';\nimport { UserInitialPipe } from './pipes/user-initials-pipe';\nimport { TimeAgoPipe } from './pipes/time-ago-pipe';\nimport { MaterialModule } from './material.module';\nimport { UserFullnamePipe } from './pipes/user-fullname-pipe';\nimport { HighlighterComponent } from './components/highlighter/highlighter.component';\nimport { HttpClient } from '@angular/common/http';\nimport { translationLoaderFactory, MNL_TRANSLATION_RESOURCE } from './model/translation-resource';\n@NgModule({\n declarations: [\n HeaderComponent,\n MenuComponent,\n HighlighterComponent,\n AppConfigPipe,\n LoginComponent,\n LanguageMenuComponent,\n ProfileComponent,\n UserInitialPipe,\n TimeAgoPipe,\n UserFullnamePipe,\n ],\n imports: [\n CommonModule,\n MatToolbarModule,\n FlexLayoutModule,\n MaterialModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: translationLoaderFactory,\n deps: [HttpClient, MNL_TRANSLATION_RESOURCE],\n },\n })\n ],\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: loadConfig,\n deps: [\n AppConfigService,\n UserProfileService,\n LocalStorageService,\n LogService,\n LocaleService,\n ],\n multi: true,\n },\n ],\n exports: [\n HeaderComponent,\n MenuComponent,\n HighlighterComponent,\n AppConfigPipe,\n LanguageMenuComponent,\n LoginComponent,\n ProfileComponent,\n UserInitialPipe,\n TimeAgoPipe,\n UserFullnamePipe\n ],\n})\nexport class CommonsModule {}\n\nexport function loadConfig(config: AppConfigService) {\n const conf = () => config.load();\n return conf;\n}\n","/*\n * Public API Surface of mnl-commons\n */\nexport * from './lib/material.module';\nexport * from './lib/commons.module';\nexport * from './lib/components/menu/menu.component';\nexport * from './lib/components/header/header.component';\nexport * from './lib/services/app.config.service';\nexport * from './lib/pipes/app-config-pipe';\nexport * from './lib/services/log.service';\nexport * from './lib/model/log-levels.model';\nexport * from './lib/services/user-profile.service';\nexport * from './lib/services/local-storage.service';\nexport * from './lib/components/language-menu/language-menu.component';\nexport * from './lib/services/locale.service';\nexport * from './lib/components/login/login.component';\nexport * from './lib/model/user-model';\nexport * from './lib/pipes/user-initials-pipe';\nexport * from './lib/pipes/time-ago-pipe';\nexport * from './lib/pipes/user-fullname-pipe';\nexport * from './lib/model/menu-data.model';\nexport * from './lib/components/highlighter/highlighter.component';\nexport * from './lib/model/translation-resource';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {ProfileComponent as ɵa} from './lib/components/profile/profile.component';"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;SASgB,OAAO;IACrB,OAAO;QACL,eAAe;QACf,aAAa;QACb,kBAAkB;QAClB,aAAa;QACb,cAAc;QACd,aAAa;QACb,WAAW;QACX,mBAAmB;QACnB,aAAa;KACd,CAAC;AACJ,CAAC;;IAKD;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACR,OAAO,EAAE,OAAO,EAAE;YAClB,OAAO,EAAE,OAAO,EAAE;SACnB,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;;IClBA;QAME,wBAAmB,GAAsB,IAAI,YAAY,EAAO,CAAC;KAKlE;IAHC,mCAAS,GAAT,UAAU,KAAK;QACb,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACtC;IAPD;QADC,KAAK,EAAE;mDACI;IAGZ;QADC,MAAM,EAAE;gEACwD;IANtD,eAAe;QAN3B,SAAS,CAAC;YACT,QAAQ,EAAE,YAAY;YACtB,6iBAAsC;YAEtC,aAAa,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AE,SAAS,CAAC,CAAC;AACvD;;SCyBoB;;IAgCpB;KAA6B;IAAhB,aAAa;QArDzB,QAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,eAAe;gBACf,aAAa;gBACb,oBAAoB;gBACpB,aAAa;gBACb,cAAc;gBACd,qBAAqB;gBACrB,gBAAgB;gBAChB,eAAe;gBACf,WAAW;gBACX,gBAAgB;aACjB;YACD,OAAO,EAAE;gBACP,YAAY;gBACZ,gBAAgB;gBAChB,gBAAgB;gBAChB,cAAc;gBACd,eAAe,CAAC,OAAO,CAAC;oBACtB,MAAM,EAAE;wBACN,OAAO,EAAE,eAAe;wBACxB,UAAU,IAA0B;wBACpC,IAAI,EAAE,CAAC,UAAU,EAAE,wBAAwB,CAAC;qBAC7C;iBACF,CAAC;aACH;YACD,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,eAAe;oBACxB,UAAU,EAAE,UAAU;oBACtB,IAAI,EAAE;wBACJ,gBAAgB;wBAChB,kBAAkB;wBAClB,mBAAmB;wBACnB,UAAU;wBACV,aAAa;qBACd;oBACD,KAAK,EAAE,IAAI;iBACZ;aACF;YACD,OAAO,EAAE;gBACP,eAAe;gBACf,aAAa;gBACb,oBAAoB;gBACpB,aAAa;gBACb,qBAAqB;gBACrB,cAAc;gBACd,gBAAgB;gBAChB,eAAe;gBACf,WAAW;gBACX,gBAAgB;aACjB;SACF,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B,IAA6B;SAEb,UAAU,CAAC,MAAwB;IACjD,IAAM,IAAI,GAAG,cAAM,OAAA,MAAM,CAAC,IAAI,EAAE,GAAA,CAAC;IACjC,OAAO,IAAI,CAAC;AACd;;ACjFA;;;;ACAA;;;;;;"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- export { ProfileComponent as ɵa } from './lib/components/profile/profile.component';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"modules":{"__symbolic":"function","parameters":[],"value":[{"__symbolic":"reference","module":"@angular/material/button","name":"MatButtonModule","line":11,"character":4},{"__symbolic":"reference","module":"@angular/material/card","name":"MatCardModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/material/list","name":"MatListModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuModule","line":19,"character":4}]},"MaterialModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"imports":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"modules"}},"exports":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"modules"}}}]}],"members":{}},"CommonsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"HeaderComponent"},{"__symbolic":"reference","name":"MenuComponent"},{"__symbolic":"reference","name":"HighlighterComponent"},{"__symbolic":"reference","name":"AppConfigPipe"},{"__symbolic":"reference","name":"LoginComponent"},{"__symbolic":"reference","name":"LanguageMenuComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"UserInitialPipe"},{"__symbolic":"reference","name":"TimeAgoPipe"},{"__symbolic":"reference","name":"UserFullnamePipe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":37,"character":4},{"__symbolic":"reference","module":"@angular/material/toolbar","name":"MatToolbarModule","line":38,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexLayoutModule","line":39,"character":4},{"__symbolic":"reference","name":"MaterialModule"},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":41,"character":4},"member":"forRoot"},"arguments":[{"loader":{"provide":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateLoader","line":43,"character":17},"useFactory":{"__symbolic":"reference","name":"translationLoaderFactory"},"deps":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":45,"character":15},{"__symbolic":"reference","name":"MNL_TRANSLATION_RESOURCE"}]}}]}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":51,"character":15},"useFactory":{"__symbolic":"reference","name":"loadConfig"},"deps":[{"__symbolic":"reference","name":"AppConfigService"},{"__symbolic":"reference","name":"UserProfileService"},{"__symbolic":"reference","name":"LocalStorageService"},{"__symbolic":"reference","name":"LogService"},{"__symbolic":"reference","name":"LocaleService"}],"multi":true}],"exports":[{"__symbolic":"reference","name":"HeaderComponent"},{"__symbolic":"reference","name":"MenuComponent"},{"__symbolic":"reference","name":"HighlighterComponent"},{"__symbolic":"reference","name":"AppConfigPipe"},{"__symbolic":"reference","name":"LanguageMenuComponent"},{"__symbolic":"reference","name":"LoginComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"UserInitialPipe"},{"__symbolic":"reference","name":"TimeAgoPipe"},{"__symbolic":"reference","name":"UserFullnamePipe"}]}]}],"members":{}},"loadConfig":{"__symbolic":"function"},"MenuComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"mnl-menu","template":"<mat-nav-list *ngFor=\"let menu of menuData\">\n <a mat-list-item fxLayout=\"row\" (click)=\"onMenuClick(menu)\" id=\"mnl-menu-anchor\">\n <mnl-highlighter [enabled]=\"menu.selected\"></mnl-highlighter>\n <mat-icon>{{menu.icon}}</mat-icon>\n <span class=\"mnl-menu\" id=\"mnl-menu\">{{menu.name | translate }}</span>\n <mat-icon class=\"mnl-menu-button\" *ngIf=\"menu.subMenus\" (click)=\"toggleMenu(menu, $event)\"\n [ngClass]=\"{'mnl-rotated' : menu.expanded}\">expand_more</mat-icon>\n </a>\n <ng-container *ngFor=\"let sub of menu.subMenus\">\n <a mat-list-item fxLayout=\"row\" class=\"mnl-submenu\" [class.mnl-expanded]=\"menu.expanded\"\n *ngIf=\"menu.expanded\" (click)=\"onSubMenuClick(sub, menu)\" fxLayout=\"row\" id=\"mnl-submenu-anchor\">\n <mnl-highlighter [enabled]=\"sub.selected\"></mnl-highlighter>\n <mat-icon>{{sub.icon}}</mat-icon>\n <span class=\"mnl-menu\" id=\"mnl-submenu\">{{sub.name | translate }}</span>\n </a>\n </ng-container>\n</mat-nav-list>","styles":[".mnl-submenu{overflow-y:hidden;transition:transform .3s;transform:scaleY(0);transform-origin:top;padding-left:15px!important}.mnl-submenu.mnl-expanded{transform:scaleY(1)}.mnl-menu{margin-top:5px;margin-left:10px;margin-right:10px}.mnl-menu-button{transition:.3s ease-in-out;transform:rotate(0);margin-top:3px;margin-left:25px}.mnl-menu-button.mnl-rotated{transform:rotate(180deg)}"]}]}],"members":{"menuData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"menuClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":12,"character":3}}]}],"onMenuClick":[{"__symbolic":"method"}],"onSubMenuClick":[{"__symbolic":"method"}],"deSelectMenus":[{"__symbolic":"method"}],"selectMenu":[{"__symbolic":"method"}],"hasSubMenu":[{"__symbolic":"method"}],"toggleMenu":[{"__symbolic":"method"}],"openMenu":[{"__symbolic":"method"}]}},"HeaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"mnl-header","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":6,"character":17},"member":"None"},"template":"<mat-toolbar *ngIf=\"header\" color=\"{{header.toolbarColor }}\">\n <mat-toolbar-row>\n <div fxLayout fxLayoutAlign=\"start center\">\n <button mat-icon-button *ngIf=\"header.showMenuIcon\">\n <mat-icon (click)=\"menuClick($event)\">menu</mat-icon>\n </button>\n <img class=\"mnl-logo\" src=\"{{header.logo}}\">\n <span>{{header.name}}</span>\n </div>\n <div fxLayoutAlign=\"end center\" fxFlex>\n <ng-content select=`[mnl-header-content]`></ng-content>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>","styles":[".mnl-logo{margin-right:15px}"]}]}],"members":{"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"menuButonClickEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":13,"character":3}}]}],"menuClick":[{"__symbolic":"method"}]}},"AppConfigService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":10,"character":28}]}],"get":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"AppConfigPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"mnlAppConfig"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AppConfigService"}]}],"transform":[{"__symbolic":"method"}]}},"LogService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AppConfigService"}]}],"error":[{"__symbolic":"method"}],"debug":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"log":[{"__symbolic":"method"}],"trace":[{"__symbolic":"method"}],"warn":[{"__symbolic":"method"}],"assert":[{"__symbolic":"method"}],"group":[{"__symbolic":"method"}],"groupEnd":[{"__symbolic":"method"}],"getLogLevel":[{"__symbolic":"method"}],"messageBus":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LogLevelsEnum":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Number"},"members":{},"statics":{"TRACE":5,"DEBUG":1,"INFO":2,"WARN":3,"ERROR":4,"SILENT":0}},"logLevels":[{"level":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LogLevelsEnum"},"member":"TRACE"},"name":"TRACE"},{"level":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LogLevelsEnum"},"member":"DEBUG"},"name":"DEBUG"},{"level":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LogLevelsEnum"},"member":"INFO"},"name":"INFO"},{"level":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LogLevelsEnum"},"member":"WARN"},"name":"WARN"},{"level":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LogLevelsEnum"},"member":"ERROR"},"name":"ERROR"},{"level":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LogLevelsEnum"},"member":"SILENT"},"name":"SILENT"}],"UserProfileService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AppConfigService"},{"__symbolic":"reference","name":"LocalStorageService"}]}],"getApplicationId":[{"__symbolic":"method"}],"setUserPrefix":[{"__symbolic":"method"}],"getUserPrefix":[{"__symbolic":"method"}],"setLocale":[{"__symbolic":"method"}],"getLocale":[{"__symbolic":"method"}]},"statics":{"LOCALE_PREFIX":"____locale","ɵprov":{}}},"LocalStorageService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":1,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"set":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LanguageMenuComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"mnl-language-menu","template":"<button mat-menu-item [matMenuTriggerFor]=\"languageMenu\">\n <mat-icon>language</mat-icon>\n {{ 'MNL.LANGUAGE-SELECTOR.LANGUAGES' | translate }}\n</button>\n<mat-menu #languageMenu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let language of languages\"\n (click)=\"onChangeLanguage(language)\" id=\"langMenu\">{{language.label}}\n </button>\n</mat-menu>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LocaleService"}]}],"ngOnInit":[{"__symbolic":"method"}],"onChangeLanguage":[{"__symbolic":"method"}]}},"LocaleService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":18,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":18,"character":12}]}]],"parameters":[{"__symbolic":"reference","name":"AppConfigService"},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":16,"character":23},{"__symbolic":"reference","name":"UserProfileService"},{"__symbolic":"error","message":"Could not resolve type","line":18,"character":40,"context":{"typeName":"Document"},"module":"./lib/services/locale.service"}]}],"setTextOrientation":[{"__symbolic":"method"}],"getTextOrientation":[{"__symbolic":"method"}],"getLanguages":[{"__symbolic":"method"}],"getDefaultLocale":[{"__symbolic":"method"}],"getActiveLocale":[{"__symbolic":"method"}],"setActiveLocale":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LanguageItem":{"__symbolic":"interface"},"LoginComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"mnl-login","template":"<div fxLayoutAlign=\"center center\" class=\"mnl-login-container\" fxFlexFill [style.background-image]=\"getBackgroundImageUrl()\">\n <mat-card class=\"mnl-login-card\">\n <form fxLayoutAlign=\"stretch\" fxLayout=\"column\" [formGroup]=\"formGroup\" (ngSubmit)=\"onSubmit()\">\n <mat-card-header fxLayoutAlign=\"center center\">\n <mat-card-title>\n <img *ngIf=\"logoImageUrl\" src=\"{{logoImageUrl}}\">\n </mat-card-title>\n </mat-card-header>\n <h3 fxLayoutAlign=\"center center\" class=\"mnl-login-title\" *ngIf=\"title\">{{title | translate}}</h3>\n <mat-form-field fxFlex=\"100\">\n <input id=\"username\" matInput placeholder=\"{{'MNL.LOGIN.USERNAME' | translate}}\"\n formControlName=\"username\">\n </mat-form-field>\n\n <mat-form-field fxFlex=\"100\">\n <input id=\"password\" matInput type=\"password\" placeholder=\"{{'MNL.LOGIN.PASSWORD' | translate}}\"\n formControlName=\"password\">\n </mat-form-field>\n <mat-card-actions fxLayoutAlign=\"center center\">\n <button id=\"loginButton\" mat-raised-button color=\"accent\" [disabled]=\"disabled || !formGroup.valid\"\n type=\"submit\"> {{'MNL.LOGIN.LOGIN_BUTTON' | translate}}</button>\n </mat-card-actions>\n\n </form>\n </mat-card>\n</div>","styles":[".mnl-login-card{min-width:260px}.mnl-login-container{background-size:cover}.mnl-login-title{opacity:.6}"]}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"logoImageUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"backgroundImageUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"login":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":25,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":28,"character":33}]}],"ngOnInit":[{"__symbolic":"method"}],"initForm":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}],"getBackgroundImageUrl":[{"__symbolic":"method"}]}},"UserModel":{"__symbolic":"interface"},"UserInitialPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"mnlUserInitialPipe"}]}],"members":{"transform":[{"__symbolic":"method"}]}},"TimeAgoPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":6,"character":1},"arguments":[{"name":"mnlTimeAgo"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AppConfigService"},{"__symbolic":"reference","name":"UserProfileService"}]}],"transform":[{"__symbolic":"method"}]},"statics":{"DEFAULT_LOCALE":"en-US","DEFAULT_DATE_TIME_FORMAT":"dd/MM/yyyy HH:mm"}},"UserFullnamePipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"mnlUserFullName"}]}],"members":{"transform":[{"__symbolic":"method"}]}},"MenuModel":{"__symbolic":"interface"},"HighlighterComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"mnl-highlighter","template":"<div [ngClass]=\"{'mnl-bg-primary' : enabled}\" [ngStyle]=\" {'height': height, 'width' : width}\"></div>","styles":[""]}]}],"members":{"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"enabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}]}},"MNL_TRANSLATION_RESOURCE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":44},"arguments":["Translation Resource"]},"translationLoaderFactory":{"__symbolic":"function"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"mnl-user-profile","template":"<div id=\"mnl-profile-container\" fxLayoutGap=\"10px\">\n <span id=\"mnl-userinfo-name\" fxHide.xs>{{userProfileDetails | mnlUserFullName}}</span>\n <button id=\"mnl-initials-button\" mat-raised-button (click)=\"onUserInitialClick($event)\"\n mat-icon-button>{{userProfileDetails | mnlUserInitialPipe}}\n </button>\n</div>\n","styles":["#mnl-initials-button{border-radius:20px}"]}]}],"members":{"userProfileDetails":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"userInitialClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":12,"character":3}}]}],"profileMenuClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":15,"character":3}}]}],"onUserInitialClick":[{"__symbolic":"method"}]}}},"origins":{"modules":"./lib/material.module","MaterialModule":"./lib/material.module","CommonsModule":"./lib/commons.module","loadConfig":"./lib/commons.module","MenuComponent":"./lib/components/menu/menu.component","HeaderComponent":"./lib/components/header/header.component","AppConfigService":"./lib/services/app.config.service","AppConfigPipe":"./lib/pipes/app-config-pipe","LogService":"./lib/services/log.service","LogLevelsEnum":"./lib/model/log-levels.model","logLevels":"./lib/model/log-levels.model","UserProfileService":"./lib/services/user-profile.service","LocalStorageService":"./lib/services/local-storage.service","LanguageMenuComponent":"./lib/components/language-menu/language-menu.component","LocaleService":"./lib/services/locale.service","LanguageItem":"./lib/services/locale.service","LoginComponent":"./lib/components/login/login.component","UserModel":"./lib/model/user-model","UserInitialPipe":"./lib/pipes/user-initials-pipe","TimeAgoPipe":"./lib/pipes/time-ago-pipe","UserFullnamePipe":"./lib/pipes/user-fullname-pipe","MenuModel":"./lib/model/menu-data.model","HighlighterComponent":"./lib/components/highlighter/highlighter.component","MNL_TRANSLATION_RESOURCE":"./lib/model/translation-resource","translationLoaderFactory":"./lib/model/translation-resource","ɵa":"./lib/components/profile/profile.component"},"importAs":"@muraai/mnl-commons"}