coer-elements 2.0.4 → 2.0.6

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 (50) hide show
  1. package/components/lib/coer-accordion/coer-accordion.component.d.ts +4 -4
  2. package/components/lib/coer-button/coer-button.component.d.ts +7 -7
  3. package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +1 -1
  4. package/components/lib/coer-datebox/coer-datebox.component.d.ts +8 -7
  5. package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +12 -12
  6. package/components/lib/coer-filebox/coer-filebox.component.d.ts +7 -7
  7. package/components/lib/coer-form/coer-form.component.d.ts +1 -1
  8. package/components/lib/coer-grid/coer-grid.component.d.ts +9 -9
  9. package/components/lib/coer-grid/coer-grid.extension.d.ts +19 -15
  10. package/components/lib/coer-list/coer-list.component.d.ts +9 -9
  11. package/components/lib/coer-modal/coer-modal.component.d.ts +1 -1
  12. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +1 -1
  13. package/components/lib/coer-secretbox/coer-secretbox.component.d.ts +1 -1
  14. package/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.d.ts +8 -7
  15. package/components/lib/coer-switch/coer-switch.component.d.ts +1 -1
  16. package/components/lib/coer-textarea/coer-textarea.component.d.ts +1 -1
  17. package/components/lib/coer-textbox/coer-textbox.component.d.ts +1 -1
  18. package/fesm2022/coer-elements-components.mjs +216 -218
  19. package/fesm2022/coer-elements-components.mjs.map +1 -1
  20. package/fesm2022/coer-elements-guards.mjs +6 -6
  21. package/fesm2022/coer-elements-guards.mjs.map +1 -1
  22. package/fesm2022/coer-elements-interceptors.mjs +1 -1
  23. package/fesm2022/coer-elements-interceptors.mjs.map +1 -1
  24. package/fesm2022/coer-elements-interfaces.mjs.map +1 -1
  25. package/fesm2022/coer-elements-pages.mjs +215 -176
  26. package/fesm2022/coer-elements-pages.mjs.map +1 -1
  27. package/fesm2022/coer-elements-services.mjs +1 -1
  28. package/fesm2022/coer-elements-services.mjs.map +1 -1
  29. package/fesm2022/coer-elements-signals.mjs.map +1 -1
  30. package/fesm2022/coer-elements-tools.mjs +13 -1
  31. package/fesm2022/coer-elements-tools.mjs.map +1 -1
  32. package/fesm2022/coer-elements.mjs.map +1 -1
  33. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +3 -0
  34. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +1 -0
  35. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +1 -0
  36. package/interfaces/lib/coer-grid/grid-header-import-button.interface.d.ts +1 -0
  37. package/interfaces/lib/coer-menu/menu-toolbar.interface.d.ts +6 -0
  38. package/interfaces/lib/login/user-login-response.interface.d.ts +12 -0
  39. package/interfaces/lib/login/user-login.interface.d.ts +10 -0
  40. package/interfaces/public-api.d.ts +4 -4
  41. package/package.json +12 -12
  42. package/pages/lib/coer-system/coer-system.component.d.ts +53 -34
  43. package/pages/lib/coer-system/login/login.component.d.ts +15 -15
  44. package/styles/angular-material.scss +3 -1
  45. package/styles/coer-elements.css +42 -43
  46. package/tools/lib/user.class.d.ts +3 -2
  47. package/interfaces/lib/image.interface.d.ts +0 -11
  48. package/interfaces/lib/login-response.interface.d.ts +0 -10
  49. package/interfaces/lib/toolbar-menu.interface.d.ts +0 -5
  50. /package/interfaces/lib/{login.interface.d.ts → login/login.interface.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/index.ts","../../../projects/coer-elements/coer-elements.ts"],"sourcesContent":["import { NgModule } from '@angular/core'; \r\nimport 'coer-elements/extensions';\r\n\r\n//Components \r\nimport { CoerAlert } from 'coer-elements/tools';\r\nimport * as components from 'coer-elements/components';\r\nimport * as pages from 'coer-elements/pages';\r\nimport * as directives from 'coer-elements/directives';\r\nimport * as pipes from 'coer-elements/pipes'; \r\nimport * as services from 'coer-elements/services';\r\n\r\n\r\n@NgModule({ \r\n imports: [ \r\n components.ComponentsModule, \r\n pages.PagesModule,\r\n directives.DirectivesModule,\r\n pipes.PipesModule, \r\n services.ServicesModule,\r\n CoerAlert \r\n ],\r\n exports: [ \r\n CoerAlert,\r\n pages.COERSystem,\r\n pages.CoerMenuPage,\r\n pages.HomePage, \r\n pages.LoadingPage,\r\n components.CoerAccordion,\r\n components.CoerButton,\r\n components.CoerCheckbox,\r\n components.CoerDateBox,\r\n components.CoerFilebox,\r\n components.CoerForm,\r\n components.CoerGrid,\r\n components.CoerList, \r\n components.CoerModal,\r\n components.CoerNumberBox,\r\n components.CoerPageTitle,\r\n components.CoerSelectbox,\r\n components.CoerDropdown,\r\n components.CoerSidenav,\r\n components.CoerSwitch,\r\n components.CoerTextarea,\r\n components.CoerTab,\r\n components.CoerTextBox,\r\n components.CoerToolbar, \r\n directives.CoerRefDirective,\r\n directives.LifeCycleDirective,\r\n pipes.HtmlPipe,\r\n pipes.NoImagePipe,\r\n pipes.NumericFormatPipe \r\n ]\r\n})\r\nexport class CoerElementsModule { } \r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3","i4","i5"],"mappings":";;;;;;;;;;MAqDa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAlB,kBAAkB,EAAA,OAAA,EAAA,CAAAA,UAAA,CAAA,gBAAA,EAAAC,KAAA,CAAA,WAAA,EAAAC,UAAA,CAAA,gBAAA,EAAAC,KAAA,CAAA,WAAA,EAAAC,QAAA,CAAA,cAAA,EAlCvB,SAAS,CAAA,EAAA,OAAA,EAAA,CAGT,SAAS,EAAAH,KAAA,CAAA,UAAA,EAAAA,KAAA,CAAA,YAAA,EAAAA,KAAA,CAAA,QAAA,EAAAA,KAAA,CAAA,WAAA,EAAAD,UAAA,CAAA,aAAA,EAAAA,UAAA,CAAA,UAAA,EAAAA,UAAA,CAAA,YAAA,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AAC,WAAW;AACjB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,UAAU;AACrB,wBAAA,UAAU,CAAC,YAAY;AACvB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,QAAQ;AACnB,wBAAA,UAAU,CAAC,QAAQ;AACnB,wBAAA,UAAU,CAAC,QAAQ;AACnB,wBAAA,UAAU,CAAC,SAAS;AACpB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,YAAY;AACvB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,UAAU;AACrB,wBAAA,UAAU,CAAC,YAAY;AACvB,wBAAA,UAAU,CAAC,OAAO;AAClB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,gBAAgB;AAC3B,wBAAA,UAAU,CAAC,kBAAkB;AAC7B,wBAAA,KAAK,CAAC,QAAQ;AACd,wBAAA,KAAK,CAAC,WAAW;AACjB,wBAAA,KAAK,CAAC;AACT;AACJ,iBAAA;;;ACpDD;;AAEG;;;;"}
1
+ {"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/index.ts","../../../projects/coer-elements/coer-elements.ts"],"sourcesContent":["import { NgModule } from '@angular/core'; \r\nimport 'coer-elements/extensions';\r\n\r\n//Components \r\nimport { CoerAlert } from 'coer-elements/tools';\r\nimport * as components from 'coer-elements/components';\r\nimport * as pages from 'coer-elements/pages';\r\nimport * as directives from 'coer-elements/directives';\r\nimport * as pipes from 'coer-elements/pipes'; \r\nimport * as services from 'coer-elements/services';\r\n\r\n\r\n@NgModule({ \r\n imports: [ \r\n components.ComponentsModule, \r\n pages.PagesModule,\r\n directives.DirectivesModule,\r\n pipes.PipesModule, \r\n services.ServicesModule,\r\n CoerAlert \r\n ],\r\n exports: [ \r\n CoerAlert,\r\n pages.COERSystem,\r\n pages.CoerMenuPage,\r\n pages.HomePage, \r\n pages.LoadingPage,\r\n components.CoerAccordion,\r\n components.CoerButton,\r\n components.CoerCheckbox,\r\n components.CoerDateBox,\r\n components.CoerFilebox,\r\n components.CoerForm,\r\n components.CoerGrid,\r\n components.CoerList, \r\n components.CoerModal,\r\n components.CoerNumberBox,\r\n components.CoerPageTitle,\r\n components.CoerSelectbox,\r\n components.CoerDropdown,\r\n components.CoerSidenav,\r\n components.CoerSwitch,\r\n components.CoerTextarea,\r\n components.CoerTab,\r\n components.CoerTextBox,\r\n components.CoerToolbar, \r\n directives.CoerRefDirective,\r\n directives.LifeCycleDirective,\r\n pipes.HtmlPipe,\r\n pipes.NoImagePipe,\r\n pipes.NumericFormatPipe \r\n ]\r\n})\r\nexport class CoerElementsModule { } ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3","i4","i5"],"mappings":";;;;;;;;;;MAqDa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAlB,kBAAkB,EAAA,OAAA,EAAA,CAAAA,UAAA,CAAA,gBAAA,EAAAC,KAAA,CAAA,WAAA,EAAAC,UAAA,CAAA,gBAAA,EAAAC,KAAA,CAAA,WAAA,EAAAC,QAAA,CAAA,cAAA,EAlCvB,SAAS,CAAA,EAAA,OAAA,EAAA,CAGT,SAAS,EAAAH,KAAA,CAAA,UAAA,EAAAA,KAAA,CAAA,YAAA,EAAAA,KAAA,CAAA,QAAA,EAAAA,KAAA,CAAA,WAAA,EAAAD,UAAA,CAAA,aAAA,EAAAA,UAAA,CAAA,UAAA,EAAAA,UAAA,CAAA,YAAA,EAAAA,UAAA,CAAA,WAAA,EAAAA,UAAA,CAAA,WAAA,EAAAA,UAAA,CAAA,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AU;AACrB,wBAAA,UAAU,CAAC,YAAY;AACvB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,QAAQ;AACnB,wBAAA,UAAU,CAAC,QAAQ;AACnB,wBAAA,UAAU,CAAC,QAAQ;AACnB,wBAAA,UAAU,CAAC,SAAS;AACpB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,aAAa;AACxB,wBAAA,UAAU,CAAC,YAAY;AACvB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,UAAU;AACrB,wBAAA,UAAU,CAAC,YAAY;AACvB,wBAAA,UAAU,CAAC,OAAO;AAClB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,gBAAgB;AAC3B,wBAAA,UAAU,CAAC,kBAAkB;AAC7B,wBAAA,KAAK,CAAC,QAAQ;AACd,wBAAA,KAAK,CAAC,WAAW;AACjB,wBAAA,KAAK,CAAC;AACT;AACJ,iBAAA;;;ACpDD;;AAEG;;;;"}
@@ -3,4 +3,7 @@ export interface IGridButtonByRow<T> {
3
3
  showEditButton?: boolean | ((item: IGridItem<T>) => boolean);
4
4
  showDeleteButton?: boolean | ((item: IGridItem<T>) => boolean);
5
5
  showGoButton?: boolean | ((item: IGridItem<T>) => boolean);
6
+ editButtonColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'navigation';
7
+ deleteButtonColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'navigation';
8
+ goButtonColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'navigation';
6
9
  }
@@ -3,4 +3,5 @@ export interface IGridHeaderButton {
3
3
  path?: string | (string | number)[];
4
4
  tooltip?: string;
5
5
  isDisabled?: boolean;
6
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'navigation';
6
7
  }
@@ -8,4 +8,5 @@ export interface IGridHeaderExportButton {
8
8
  onlyRowFiltered?: boolean;
9
9
  onlySelectedItem?: boolean;
10
10
  preventDefault?: boolean;
11
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'navigation';
11
12
  }
@@ -5,4 +5,5 @@ export interface IGridHeaderImportButton {
5
5
  isDisabled?: boolean;
6
6
  preventDefault?: boolean;
7
7
  Autofill?: boolean;
8
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'navigation';
8
9
  }
@@ -0,0 +1,6 @@
1
+ export interface IMenuToolbar {
2
+ label: string;
3
+ icon?: string;
4
+ path?: string | (string | number)[];
5
+ preventDefault?: boolean;
6
+ }
@@ -0,0 +1,12 @@
1
+ export interface IUserLoginResponse {
2
+ userId?: number;
3
+ user: string;
4
+ userNumber?: string;
5
+ role: string;
6
+ fullName?: string;
7
+ nickname?: string;
8
+ email?: string;
9
+ roles?: string[];
10
+ jwt?: string;
11
+ remember?: boolean;
12
+ }
@@ -0,0 +1,10 @@
1
+ export interface IUserLogin {
2
+ userId?: number;
3
+ user: string;
4
+ userNumber?: string;
5
+ role: string;
6
+ fullName?: string;
7
+ nickname?: string;
8
+ email?: string;
9
+ roles?: string[];
10
+ }
@@ -23,7 +23,11 @@ export * from './lib/coer-grid/grid-sort.interface';
23
23
  export * from './lib/coer-menu/menu-access.interface';
24
24
  export * from './lib/coer-menu/menu-option-selected.interface';
25
25
  export * from './lib/coer-menu/menu-selected.interface';
26
+ export * from './lib/coer-menu/menu-toolbar.interface';
26
27
  export * from './lib/coer-menu/menu.interface';
28
+ export * from './lib/login/login.interface';
29
+ export * from './lib/login/user-login-response.interface';
30
+ export * from './lib/login/user-login.interface';
27
31
  export * from './lib/page-title/breadcrumb.interface';
28
32
  export * from './lib/page-title/go-back.interface';
29
33
  export * from './lib/page-title/information.interface';
@@ -34,9 +38,5 @@ export * from './lib/app-source.interface';
34
38
  export * from './lib/box-button.interface';
35
39
  export * from './lib/bulk-load.interface';
36
40
  export * from './lib/coer-ref.interface';
37
- export * from './lib/image.interface';
38
- export * from './lib/login-response.interface';
39
- export * from './lib/login.interface';
40
41
  export * from './lib/option.interface';
41
42
  export * from './lib/screen-size.interface';
42
- export * from './lib/toolbar-menu.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "Components",
@@ -61,21 +61,21 @@
61
61
  "types": "./components/index.d.ts",
62
62
  "default": "./fesm2022/coer-elements-components.mjs"
63
63
  },
64
+ "./directives": {
65
+ "types": "./directives/index.d.ts",
66
+ "default": "./fesm2022/coer-elements-directives.mjs"
67
+ },
64
68
  "./extensions": {
65
69
  "types": "./extensions/index.d.ts",
66
70
  "default": "./fesm2022/coer-elements-extensions.mjs"
67
71
  },
68
- "./interceptors": {
69
- "types": "./interceptors/index.d.ts",
70
- "default": "./fesm2022/coer-elements-interceptors.mjs"
71
- },
72
72
  "./guards": {
73
73
  "types": "./guards/index.d.ts",
74
74
  "default": "./fesm2022/coer-elements-guards.mjs"
75
75
  },
76
- "./directives": {
77
- "types": "./directives/index.d.ts",
78
- "default": "./fesm2022/coer-elements-directives.mjs"
76
+ "./interceptors": {
77
+ "types": "./interceptors/index.d.ts",
78
+ "default": "./fesm2022/coer-elements-interceptors.mjs"
79
79
  },
80
80
  "./interfaces": {
81
81
  "types": "./interfaces/index.d.ts",
@@ -89,14 +89,14 @@
89
89
  "types": "./pipes/index.d.ts",
90
90
  "default": "./fesm2022/coer-elements-pipes.mjs"
91
91
  },
92
- "./signals": {
93
- "types": "./signals/index.d.ts",
94
- "default": "./fesm2022/coer-elements-signals.mjs"
95
- },
96
92
  "./services": {
97
93
  "types": "./services/index.d.ts",
98
94
  "default": "./fesm2022/coer-elements-services.mjs"
99
95
  },
96
+ "./signals": {
97
+ "types": "./signals/index.d.ts",
98
+ "default": "./fesm2022/coer-elements-signals.mjs"
99
+ },
100
100
  "./tools": {
101
101
  "types": "./tools/index.d.ts",
102
102
  "default": "./fesm2022/coer-elements-tools.mjs"
@@ -1,46 +1,55 @@
1
- import { AfterContentInit, WritableSignal } from '@angular/core';
2
- import { IFile, ILogIn, IMenu, IToolbarMenu } from 'coer-elements/interfaces';
1
+ import { AfterContentInit, OnDestroy, WritableSignal } from '@angular/core';
2
+ import { IFile, ILogIn, IMenu, IOption, IMenuToolbar, IUserLogin } from 'coer-elements/interfaces';
3
3
  import { CoerButton, CoerModal, CoerSidenav, CoerTextBox } from 'coer-elements/components';
4
4
  import { CoerAlert } from 'coer-elements/tools';
5
5
  import { LoginPage } from './login/login.component';
6
+ import { JWTService } from 'coer-elements/services';
6
7
  import * as i0 from "@angular/core";
7
- export declare class COERSystem implements AfterContentInit {
8
- protected readonly alert: CoerAlert;
9
- protected sidenav: import("@angular/core").Signal<CoerSidenav>;
10
- protected loginPage: import("@angular/core").Signal<LoginPage>;
11
- protected modalProfile: import("@angular/core").Signal<CoerModal>;
12
- protected modalPassword: import("@angular/core").Signal<CoerModal>;
13
- protected inputPassword: import("@angular/core").Signal<CoerTextBox>;
14
- protected inputPasswordConfirm: import("@angular/core").Signal<CoerTextBox>;
15
- protected resetButton: import("@angular/core").Signal<CoerButton>;
16
- protected readonly title: string;
8
+ export declare class COERSystem implements AfterContentInit, OnDestroy {
9
+ protected readonly _alert: CoerAlert;
10
+ protected readonly _jwtService: JWTService;
11
+ protected _appName: string;
12
+ protected _staticLogin: boolean;
13
+ protected _sidenav: import("@angular/core").Signal<CoerSidenav>;
14
+ protected _loginPage: import("@angular/core").Signal<LoginPage>;
15
+ protected _modalProfile: import("@angular/core").Signal<CoerModal>;
16
+ protected _modalPassword: import("@angular/core").Signal<CoerModal>;
17
+ protected _inputPassword: import("@angular/core").Signal<CoerTextBox>;
18
+ protected _inputPasswordConfirm: import("@angular/core").Signal<CoerTextBox>;
19
+ protected _resetButton: import("@angular/core").Signal<CoerButton>;
20
+ protected _startJWT$: any;
21
+ protected _watchJWT$: any;
17
22
  protected _isLoading: WritableSignal<boolean>;
18
- protected mainRole: any;
19
- protected nickname: string;
20
- protected password: string;
21
- protected passwordConfirm: string;
22
- protected _userRoles: WritableSignal<any[]>;
23
- protected _user: WritableSignal<any>;
23
+ protected _mainRole: IOption | null;
24
+ protected _nickname: string;
25
+ protected _password: string;
26
+ protected _passwordConfirm: string;
27
+ protected _userRoles: WritableSignal<IOption[]>;
28
+ protected _user: WritableSignal<IUserLogin | null>;
29
+ protected _userImageStatic: string;
24
30
  userImage: import("@angular/core").InputSignal<string | null>;
25
- toolbarMenu: import("@angular/core").InputSignal<IToolbarMenu[]>;
26
- set user(value: any);
27
- set userRoles(value: any[]);
31
+ toolbarMenu: import("@angular/core").InputSignal<IMenuToolbar[]>;
32
+ set user(value: IUserLogin | null);
33
+ set userRoles(value: string[]);
28
34
  set navigation(value: IMenu[]);
29
35
  onLogin: import("@angular/core").OutputEmitterRef<ILogIn>;
30
- onRecovery: import("@angular/core").OutputEmitterRef<string>;
31
- onClickOption: import("@angular/core").OutputEmitterRef<IToolbarMenu>;
36
+ onClickMenuOption: import("@angular/core").OutputEmitterRef<IMenuToolbar>;
32
37
  onResetPassword: import("@angular/core").OutputEmitterRef<string>;
33
- onUpdateProfile: import("@angular/core").OutputEmitterRef<any>;
38
+ onRecoveryPassword: import("@angular/core").OutputEmitterRef<string>;
39
+ onUpdateProfile: import("@angular/core").OutputEmitterRef<IUserLogin>;
34
40
  onUploadUserImage: import("@angular/core").OutputEmitterRef<IFile>;
35
41
  onDeleteUserImage: import("@angular/core").OutputEmitterRef<void>;
42
+ onUpdateJWT: import("@angular/core").OutputEmitterRef<void>;
36
43
  protected IsNotNull: (value: any) => boolean;
37
44
  protected IsNotOnlyWhiteSpace: (value: any) => boolean;
38
45
  ngAfterContentInit(): Promise<void>;
39
- protected get enableButton(): boolean;
40
- protected _toolbarMenu: import("@angular/core").Signal<IToolbarMenu[]>;
41
- protected userName: import("@angular/core").Signal<string>;
46
+ ngOnDestroy(): void;
47
+ protected get _enableButtonLogin(): boolean;
48
+ protected get _profileTitle(): string;
49
+ protected get _userImage(): string;
50
+ protected _toolbarMenu: import("@angular/core").Signal<IMenuToolbar[]>;
42
51
  /** */
43
- protected SelectedOption(menu: IToolbarMenu): Promise<void>;
52
+ protected __SelectedOption(menu: IMenuToolbar): Promise<void>;
44
53
  /** */
45
54
  SetUser(user: string): void;
46
55
  /** */
@@ -48,23 +57,33 @@ export declare class COERSystem implements AfterContentInit {
48
57
  /** */
49
58
  FocusPassword(): void;
50
59
  /** */
51
- protected Focus(): void;
60
+ protected __Focus(): void;
52
61
  /** */
53
- protected ResetPassword(): void;
62
+ protected __ResetPassword(): void;
54
63
  /** */
55
64
  CloseModal(): void;
56
65
  /** */
57
- Show(view: 'login' | 'recovery'): void;
66
+ Show(view: 'LOGIN' | 'RECOVERY'): void;
58
67
  /** */
59
68
  UpdateProfile(): void;
60
69
  /** */
61
- UploadImage(images: IFile[]): void;
70
+ protected __UploadImage(images: IFile[]): void;
62
71
  /** */
63
- DeleteUserImage(): Promise<void>;
72
+ protected __DeleteUserImage(): void;
64
73
  /** */
65
74
  OpenSideNav(): void;
66
75
  /** */
67
76
  CloseSideNav(): void;
77
+ /** */
78
+ StartJWT(validateEvery?: number, diferenceToUpdate?: number): void;
79
+ /** */
80
+ protected _WatchJWT(): void;
81
+ /** */
82
+ UpdateJWT(jwt: string): void;
83
+ /** */
84
+ StopJWT(): void;
85
+ /** */
86
+ UseStaticLogin(): IUserLogin;
68
87
  static ɵfac: i0.ɵɵFactoryDeclaration<COERSystem, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<COERSystem, "coer-system", never, { "userImage": { "alias": "userImage"; "required": false; "isSignal": true; }; "toolbarMenu": { "alias": "toolbarMenu"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; }; "userRoles": { "alias": "userRoles"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; }, { "onLogin": "onLogin"; "onRecovery": "onRecovery"; "onClickOption": "onClickOption"; "onResetPassword": "onResetPassword"; "onUpdateProfile": "onUpdateProfile"; "onUploadUserImage": "onUploadUserImage"; "onDeleteUserImage": "onDeleteUserImage"; }, never, ["*"], false, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<COERSystem, "coer-system", never, { "userImage": { "alias": "userImage"; "required": false; "isSignal": true; }; "toolbarMenu": { "alias": "toolbarMenu"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; }; "userRoles": { "alias": "userRoles"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; }, { "onLogin": "onLogin"; "onClickMenuOption": "onClickMenuOption"; "onResetPassword": "onResetPassword"; "onRecoveryPassword": "onRecoveryPassword"; "onUpdateProfile": "onUpdateProfile"; "onUploadUserImage": "onUploadUserImage"; "onDeleteUserImage": "onDeleteUserImage"; "onUpdateJWT": "onUpdateJWT"; }, never, ["*"], false, never>;
70
89
  }
@@ -3,26 +3,26 @@ import { CoerTextBox } from 'coer-elements/components';
3
3
  import { ILogIn } from 'coer-elements/interfaces';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class LoginPage {
6
- protected inputUser: import("@angular/core").Signal<CoerTextBox>;
7
- protected inputPassword: import("@angular/core").Signal<CoerTextBox>;
8
- protected inputRecovery: import("@angular/core").Signal<CoerTextBox>;
9
- protected isLoading: WritableSignal<boolean>;
10
- title: import("@angular/core").InputSignal<string>;
11
- protected user: string;
12
- protected password: string;
13
- protected remember: boolean;
14
- protected show: 'login' | 'recovery';
6
+ protected _appName: string;
7
+ protected _inputUser: import("@angular/core").Signal<CoerTextBox>;
8
+ protected _inputPassword: import("@angular/core").Signal<CoerTextBox>;
9
+ protected _inputRecovery: import("@angular/core").Signal<CoerTextBox>;
10
+ protected _isLoading: WritableSignal<boolean>;
11
+ protected _user: string;
12
+ protected _password: string;
13
+ protected _remember: boolean;
14
+ protected _show: 'LOGIN' | 'RECOVERY';
15
15
  onLogin: import("@angular/core").OutputEmitterRef<ILogIn>;
16
16
  onRecovery: import("@angular/core").OutputEmitterRef<string>;
17
17
  protected IsNotOnlyWhiteSpace: (value: any) => boolean;
18
- protected get enableButton(): boolean;
19
- protected get enableRecoveryButton(): boolean;
18
+ protected get _enableButton(): boolean;
19
+ protected get _enableRecoveryButton(): boolean;
20
20
  /** */
21
- protected Login(): void;
21
+ protected __Login(): void;
22
22
  /** */
23
- protected Recovery(): void;
23
+ protected __Recovery(): void;
24
24
  /** */
25
- Show(view: 'login' | 'recovery'): Promise<void>;
25
+ Show(view: 'LOGIN' | 'RECOVERY'): Promise<void>;
26
26
  /** */
27
27
  FocusUser(): void;
28
28
  /** */
@@ -30,5 +30,5 @@ export declare class LoginPage {
30
30
  /** */
31
31
  SetUser(user: string): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginPage, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginPage, "login-page", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "onLogin": "onLogin"; "onRecovery": "onRecovery"; }, never, never, false, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginPage, "login-page", never, {}, { "onLogin": "onLogin"; "onRecovery": "onRecovery"; }, never, never, false, never>;
34
34
  }
@@ -17,4 +17,6 @@
17
17
  @use "../components/lib/coer-tab/coer-tab.component.scss";
18
18
  @use "../components/lib/coer-textarea/coer-textarea.component.scss";
19
19
  @use "../components/lib/coer-textbox/coer-textbox.component.scss";
20
- @use "../tools/lib/coer-alert/coer-alert.component.scss";
20
+ @use "../tools/lib/coer-alert/coer-alert.component.scss";
21
+
22
+