coer-elements 0.0.115 → 0.0.117

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { effect, Component, viewChild, input, output, Input, NgModule } from '@angular/core';
2
+ import { effect, Component, viewChild, input, output, inject, signal, computed, Input, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i1$1 from '@angular/forms';
5
5
  import { FormsModule } from '@angular/forms';
6
6
  import * as i1 from '@angular/router';
7
7
  import { RouterModule } from '@angular/router';
8
8
  import * as i4 from 'coer-elements/tools';
9
- import { Page, Tools, Menu, User, CoerAlert } from 'coer-elements/tools';
9
+ import { Page, Tools, CoerAlert, Menu, User } from 'coer-elements/tools';
10
10
  import { menuSelectedSIGNAL, isLoadingSIGNAL, navigationSIGNAL } from 'coer-elements/signals';
11
11
  import * as i2 from 'coer-elements/components';
12
12
  import { ComponentsModule } from 'coer-elements/components';
@@ -135,9 +135,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImpor
135
135
 
136
136
  class COERSystem {
137
137
  constructor() {
138
+ //Injection
139
+ this.alert = inject(CoerAlert);
138
140
  //Elements
139
141
  this.sidenav = viewChild.required('sidenav');
140
142
  this.loginPage = viewChild.required('loginPage');
143
+ this.modalProfile = viewChild.required('modalProfile');
141
144
  this.modalPassword = viewChild.required('modalPassword');
142
145
  this.inputPassword = viewChild.required('inputPassword');
143
146
  this.inputPasswordConfirm = viewChild.required('inputPasswordConfirm');
@@ -145,26 +148,81 @@ class COERSystem {
145
148
  //Variables
146
149
  this.title = 'COER System';
147
150
  this._isLoading = isLoadingSIGNAL;
151
+ this.mainRole = null;
152
+ this.nickname = '';
148
153
  this.password = '';
149
154
  this.passwordConfirm = '';
155
+ this._userRoles = signal([]);
156
+ this._user = signal(null);
150
157
  //Inputs
151
158
  this.appName = input('');
152
- this.user = input(null);
153
- this.image = input(null);
159
+ this.userImage = input(null);
154
160
  this.toolbarMenu = input([]);
155
161
  //Outputs
156
162
  this.onLogin = output();
157
163
  this.onRecovery = output();
158
164
  this.onClickOption = output();
159
165
  this.onResetPassword = output();
166
+ this.onUpdateProfile = output();
167
+ this.onUploadUserImage = output();
168
+ this.onDeleteUserImage = output();
160
169
  //Generic Tools
161
170
  this.IsNotNull = Tools.IsNotNull;
171
+ this.IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace;
172
+ //computed
173
+ this._toolbarMenu = computed(() => {
174
+ const menu = [...this.toolbarMenu()];
175
+ return [
176
+ { label: 'Profile', icon: 'fa-solid fa-user' },
177
+ { label: 'Reset Password', icon: 'fa-solid fa-lock' },
178
+ { label: 'Log Out', icon: 'fa-solid fa-door-open' }
179
+ ].concat(menu);
180
+ });
181
+ //computed
182
+ this.userName = computed(() => {
183
+ const user = this._user();
184
+ if (Tools.IsNotNull(user)) {
185
+ if (Tools.IsNotOnlyWhiteSpace(user?.fullName))
186
+ return user?.fullName;
187
+ const name = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.name) ? this._user().name : '';
188
+ const firstName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.firstName) ? this._user().firstName : '';
189
+ const middleName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.middleName) ? this._user().middleName : '';
190
+ const lastName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.lastName) ? this._user().lastName : '';
191
+ const secondLastName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.secondName) ? this._user().secondLastName : '';
192
+ return `${name} ${firstName} ${middleName} ${lastName} ${secondLastName}`;
193
+ }
194
+ return '';
195
+ });
196
+ }
197
+ set user(value) {
198
+ if (Tools.IsNotNull(value)) {
199
+ this._user.set(value);
200
+ Tools.Sleep(1000, 'coerSystemGetUser').then(() => {
201
+ if (Tools.IsNotOnlyWhiteSpace(this._user()?.nickname)) {
202
+ this.nickname = this._user().nickname;
203
+ }
204
+ });
205
+ }
206
+ }
207
+ set userRoles(value) {
208
+ if (Tools.IsNotNull(value)) {
209
+ this._userRoles.set(value);
210
+ Tools.Sleep(1000, 'coerSystemGetUserRoles').then(() => {
211
+ let mainRole = this._userRoles().find(x => (x?.id || -1) === (this._user()?.roleId) || null) || null;
212
+ if (Tools.IsNull(mainRole)) {
213
+ mainRole = this._userRoles().find(x => (x?.name || -1) === (this._user()?.role || null)) || null;
214
+ }
215
+ if (Tools.IsNotNull(mainRole)) {
216
+ this.mainRole = mainRole;
217
+ }
218
+ });
219
+ }
162
220
  }
163
221
  set navigation(value) {
164
222
  if (Tools.IsNotNull(value)) {
165
223
  navigationSIGNAL.set(value);
166
- Tools.Sleep(1000, 'getnavigation').then(() => {
167
- if (Tools.IsNotNull(this.user())) {
224
+ Tools.Sleep(1000, 'coerSystemGetUserNavigation').then(() => {
225
+ if (Tools.IsNotNull(this._user())) {
168
226
  this.sidenav().SetActiveLink(Menu.GetSelectedOption());
169
227
  }
170
228
  });
@@ -172,7 +230,7 @@ class COERSystem {
172
230
  }
173
231
  //getter
174
232
  get enableButton() {
175
- return Tools.IsNotOnlyWhiteSpace(this.user)
233
+ return Tools.IsNotOnlyWhiteSpace(this._user())
176
234
  && Tools.IsNotOnlyWhiteSpace(this.password)
177
235
  && Tools.IsNotOnlyWhiteSpace(this.passwordConfirm)
178
236
  && this.password.length >= 5
@@ -183,6 +241,10 @@ class COERSystem {
183
241
  /** */
184
242
  async SelectedOption(menu) {
185
243
  switch (menu.label) {
244
+ case 'Profile': {
245
+ this.modalProfile().Open();
246
+ break;
247
+ }
186
248
  case 'Reset Password': {
187
249
  this.modalPassword().Open();
188
250
  await Tools.Sleep(1000);
@@ -232,13 +294,38 @@ class COERSystem {
232
294
  async Show(view) {
233
295
  this.loginPage().Show(view);
234
296
  }
297
+ /** */
298
+ async UpdateProfile() {
299
+ this.onUpdateProfile.emit({
300
+ user: this._user()?.user,
301
+ nickname: this.nickname,
302
+ role: this.mainRole
303
+ });
304
+ }
305
+ /** */
306
+ UploadImage(images) {
307
+ if (images.length > 0) {
308
+ const [image] = images;
309
+ this.onUploadUserImage.emit(image);
310
+ }
311
+ }
312
+ /** */
313
+ async DeleteUserImage() {
314
+ const response = await this.alert.Confirm(`Remove <b>User Image</b> ?`, 'warning', 'fa-solid fa-trash-can');
315
+ if (response)
316
+ this.onDeleteUserImage.emit();
317
+ }
235
318
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: COERSystem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
236
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: COERSystem, isStandalone: false, selector: "coer-system", inputs: { appName: { classPropertyName: "appName", publicName: "appName", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, toolbarMenu: { classPropertyName: "toolbarMenu", publicName: "toolbarMenu", isSignal: true, isRequired: false, transformFunction: null }, navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onLogin: "onLogin", onRecovery: "onRecovery", onClickOption: "onClickOption", onResetPassword: "onResetPassword" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: ["sidenav"], descendants: true, isSignal: true }, { propertyName: "loginPage", first: true, predicate: ["loginPage"], descendants: true, isSignal: true }, { propertyName: "modalPassword", first: true, predicate: ["modalPassword"], descendants: true, isSignal: true }, { propertyName: "inputPassword", first: true, predicate: ["inputPassword"], descendants: true, isSignal: true }, { propertyName: "inputPasswordConfirm", first: true, predicate: ["inputPasswordConfirm"], descendants: true, isSignal: true }, { propertyName: "resetButton", first: true, predicate: ["resetButton"], descendants: true, isSignal: true }], ngImport: i0, template: "@if(IsNotNull(user())) {\r\n <coer-toolbar \r\n [appName]=\"appName()\" \r\n [user]=\"user()\" \r\n [image]=\"image()\" \r\n [menu]=\"toolbarMenu()\"\r\n (onClickMenu)=\"sidenav.Toggle()\" \r\n (onClickOption)=\"SelectedOption($event)\"\r\n ></coer-toolbar>\r\n \r\n <coer-sidenav #sidenav> \r\n <section> \r\n <ng-content></ng-content>\r\n </section> \r\n </coer-sidenav>\r\n}\r\n\r\n@else {\r\n <login-page \r\n #loginPage\r\n [title]=\"title\" \r\n (onLogin)=\"onLogin.emit($event)\"\r\n (onRecovery)=\"onRecovery.emit($event)\"\r\n ></login-page>\r\n} \r\n\r\n<!-- Modal Password -->\r\n<coer-modal #modalPassword title=\"Reset Password\" icon=\"fa-solid fa-lock\" (onClose)=\"password = ''; passwordConfirm = '';\">\r\n <coer-textbox\r\n #inputPassword\r\n label=\"New Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"15px\"\r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <coer-textbox\r\n #inputPasswordConfirm\r\n label=\"Confirm Password\"\r\n [(ngModel)]=\"passwordConfirm\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\" \r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <ng-template coerRef=\"footer\">\r\n <!-- Reset Button -->\r\n <coer-button\r\n #resetButton\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"_isLoading()\" \r\n (onClick)=\"ResetPassword()\"\r\n > Reset </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<coer-alert></coer-alert>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.CoerButton, selector: "coer-button", inputs: ["id", "color", "type", "icon", "iconPosition", "animation", "isLoading", "isDisabled", "isInvisible", "width", "minWidth", "maxWidth", "height", "minHeight", "marginTop", "marginRight", "marginBottom", "marginLeft", "path", "tooltipPosition", "tooltip"], outputs: ["onClick"] }, { kind: "component", type: i2.CoerModal, selector: "coer-modal", inputs: ["id", "title", "icon", "showCloseButton", "width", "height", "maxHeight"], outputs: ["onOpen", "onClose"] }, { kind: "component", type: i2.CoerSidenav, selector: "coer-sidenav", outputs: ["onMenuSelected"] }, { kind: "component", type: i2.CoerTextBox, selector: "coer-textbox", inputs: ["value", "id", "button", "label", "placeholder", "minLength", "maxLength", "showSearchIcon", "showClearIcon", "width", "minWidth", "maxWidth", "marginTop", "marginRight", "marginBottom", "marginLeft", "isInvalid", "isValid", "isDisabled", "isInvisible", "isReadonly", "isLoading", "selectOnFocus", "textPosition"], outputs: ["onKeyupEnter", "onInput", "onClickClear", "onClickButton"] }, { kind: "component", type: i2.CoerToolbar, selector: "coer-toolbar", inputs: ["appName", "user", "image", "menu"], outputs: ["onClickMenu", "onClickOption"] }, { kind: "directive", type: i3.CoerRefDirective, selector: "[coerRef]", inputs: ["coerRef", "title", "icon", "isDisabled", "show", "tooltip"] }, { kind: "component", type: i4.CoerAlert, selector: "coer-alert" }, { kind: "component", type: LoginPage, selector: "login-page", inputs: ["title"], outputs: ["onLogin", "onRecovery"] }] }); }
319
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: COERSystem, isStandalone: false, selector: "coer-system", inputs: { appName: { classPropertyName: "appName", publicName: "appName", isSignal: true, isRequired: false, transformFunction: null }, userImage: { classPropertyName: "userImage", publicName: "userImage", isSignal: true, isRequired: false, transformFunction: null }, toolbarMenu: { classPropertyName: "toolbarMenu", publicName: "toolbarMenu", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: false, isRequired: false, transformFunction: null }, userRoles: { classPropertyName: "userRoles", publicName: "userRoles", isSignal: false, isRequired: false, transformFunction: null }, navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onLogin: "onLogin", onRecovery: "onRecovery", onClickOption: "onClickOption", onResetPassword: "onResetPassword", onUpdateProfile: "onUpdateProfile", onUploadUserImage: "onUploadUserImage", onDeleteUserImage: "onDeleteUserImage" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: ["sidenav"], descendants: true, isSignal: true }, { propertyName: "loginPage", first: true, predicate: ["loginPage"], descendants: true, isSignal: true }, { propertyName: "modalProfile", first: true, predicate: ["modalProfile"], descendants: true, isSignal: true }, { propertyName: "modalPassword", first: true, predicate: ["modalPassword"], descendants: true, isSignal: true }, { propertyName: "inputPassword", first: true, predicate: ["inputPassword"], descendants: true, isSignal: true }, { propertyName: "inputPasswordConfirm", first: true, predicate: ["inputPasswordConfirm"], descendants: true, isSignal: true }, { propertyName: "resetButton", first: true, predicate: ["resetButton"], descendants: true, isSignal: true }], ngImport: i0, template: "@if(IsNotNull(_user())) {\r\n <coer-toolbar \r\n [appName]=\"appName()\" \r\n [user]=\"_user()\" \r\n [image]=\"userImage()\" \r\n [menu]=\"_toolbarMenu()\"\r\n (onClickMenu)=\"sidenav.Toggle()\" \r\n (onClickOption)=\"SelectedOption($event)\"\r\n ></coer-toolbar>\r\n \r\n <coer-sidenav #sidenav> \r\n <section> \r\n <ng-content></ng-content>\r\n </section> \r\n </coer-sidenav>\r\n}\r\n\r\n@else {\r\n <login-page \r\n #loginPage\r\n [title]=\"title\" \r\n (onLogin)=\"onLogin.emit($event)\"\r\n (onRecovery)=\"onRecovery.emit($event)\"\r\n ></login-page>\r\n} \r\n\r\n\r\n<!-- Modal Profile -->\r\n<coer-modal #modalProfile [title]=\"userName()\" icon=\"fa-solid fa-user\" width=\"auto\" height=\"350px\" (onClose)=\"null\"> \r\n <coer-filebox\r\n type=\"image\"\r\n [image]=\"{ \r\n value: IsNotOnlyWhiteSpace(userImage()) ? userImage() : '', \r\n name: userName(),\r\n maxWidth: '150px', \r\n maxHeight: '150px', \r\n marginBottom: '15px' \r\n }\"\r\n [isLoading]=\"_isLoading()\"\r\n (onSelected)=\"UploadImage($event)\"\r\n (onDeleteImage)=\"DeleteUserImage()\"\r\n ></coer-filebox>\r\n \r\n <div class=\"d-flex\"> \r\n <!-- User --> \r\n <coer-textbox\r\n label=\"User\"\r\n [value]=\"_user()?.user\"\r\n [isReadonly]=\"true\" \r\n marginRight=\"15px\"\r\n marginBottom=\"15px\" \r\n width=\"250px\" \r\n ></coer-textbox> \r\n \r\n <!-- Email --> \r\n <coer-textbox\r\n label=\"Email\"\r\n [value]=\"_user()?.email\"\r\n [isReadonly]=\"true\" \r\n marginBottom=\"15px\"\r\n width=\"250px\" \r\n ></coer-textbox> \r\n </div> \r\n\r\n <div class=\"d-flex\"> \r\n <!-- Nickame --> \r\n <coer-textbox\r\n label=\"Nickame\"\r\n [(ngModel)]=\"nickname\" \r\n [isLoading]=\"_isLoading()\"\r\n marginRight=\"15px\"\r\n marginBottom=\"15px\" \r\n width=\"250px\" \r\n ></coer-textbox> \r\n \r\n <!-- Role --> \r\n <coer-selectbox\r\n label=\"Role\"\r\n [(ngModel)]=\"mainRole\"\r\n [dataSource]=\"_userRoles()\"\r\n [isLoading]=\"_isLoading()\" \r\n marginBottom=\"15px\"\r\n width=\"250px\" \r\n ></coer-selectbox> \r\n </div> \r\n\r\n <ng-template coerRef=\"footer\">\r\n <coer-button\r\n #buttonSave\r\n color=\"dark\"\r\n icon=\"save\"\r\n [isLoading]=\"_isLoading()\"\r\n (onClick)=\"UpdateProfile()\"\r\n > Update </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<!-- Modal Password -->\r\n<coer-modal #modalPassword title=\"Reset Password\" icon=\"fa-solid fa-lock\" (onClose)=\"password = ''; passwordConfirm = '';\">\r\n <coer-textbox\r\n #inputPassword\r\n label=\"New Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"15px\"\r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <coer-textbox\r\n #inputPasswordConfirm\r\n label=\"Confirm Password\"\r\n [(ngModel)]=\"passwordConfirm\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\" \r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <ng-template coerRef=\"footer\">\r\n <!-- Reset Button -->\r\n <coer-button\r\n #resetButton\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"_isLoading()\" \r\n (onClick)=\"ResetPassword()\"\r\n > Reset </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<coer-alert></coer-alert> ", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.CoerButton, selector: "coer-button", inputs: ["id", "color", "type", "icon", "iconPosition", "animation", "isLoading", "isDisabled", "isInvisible", "width", "minWidth", "maxWidth", "height", "minHeight", "marginTop", "marginRight", "marginBottom", "marginLeft", "path", "tooltipPosition", "tooltip"], outputs: ["onClick"] }, { kind: "component", type: i2.CoerFilebox, selector: "coer-filebox", inputs: ["type", "multiple", "isLoading", "isDisabled", "image"], outputs: ["onSelected", "onDeleteImage"] }, { kind: "component", type: i2.CoerModal, selector: "coer-modal", inputs: ["id", "title", "icon", "showCloseButton", "width", "height", "maxHeight"], outputs: ["onOpen", "onClose"] }, { kind: "component", type: i2.CoerSidenav, selector: "coer-sidenav", outputs: ["onMenuSelected"] }, { kind: "component", type: i2.CoerSelectbox, selector: "coer-selectbox", inputs: ["value", "id", "label", "dataSource", "propDisplay", "rowsByPage", "placeholder", "width", "minWidth", "maxWidth", "marginTop", "marginRight", "marginBottom", "marginLeft", "isInvalid", "isValid", "isDisabled", "isReadonly", "isLoading"], outputs: ["onSelected", "onUnselect"] }, { kind: "component", type: i2.CoerTextBox, selector: "coer-textbox", inputs: ["value", "id", "button", "label", "placeholder", "minLength", "maxLength", "showSearchIcon", "showClearIcon", "width", "minWidth", "maxWidth", "marginTop", "marginRight", "marginBottom", "marginLeft", "isInvalid", "isValid", "isDisabled", "isInvisible", "isReadonly", "isLoading", "selectOnFocus", "textPosition"], outputs: ["onKeyupEnter", "onInput", "onClickClear", "onClickButton"] }, { kind: "component", type: i2.CoerToolbar, selector: "coer-toolbar", inputs: ["appName", "user", "image", "menu"], outputs: ["onClickMenu", "onClickOption"] }, { kind: "directive", type: i3.CoerRefDirective, selector: "[coerRef]", inputs: ["coerRef", "title", "icon", "isDisabled", "show", "tooltip"] }, { kind: "component", type: i4.CoerAlert, selector: "coer-alert" }, { kind: "component", type: LoginPage, selector: "login-page", inputs: ["title"], outputs: ["onLogin", "onRecovery"] }] }); }
237
320
  }
238
321
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: COERSystem, decorators: [{
239
322
  type: Component,
240
- args: [{ selector: 'coer-system', standalone: false, template: "@if(IsNotNull(user())) {\r\n <coer-toolbar \r\n [appName]=\"appName()\" \r\n [user]=\"user()\" \r\n [image]=\"image()\" \r\n [menu]=\"toolbarMenu()\"\r\n (onClickMenu)=\"sidenav.Toggle()\" \r\n (onClickOption)=\"SelectedOption($event)\"\r\n ></coer-toolbar>\r\n \r\n <coer-sidenav #sidenav> \r\n <section> \r\n <ng-content></ng-content>\r\n </section> \r\n </coer-sidenav>\r\n}\r\n\r\n@else {\r\n <login-page \r\n #loginPage\r\n [title]=\"title\" \r\n (onLogin)=\"onLogin.emit($event)\"\r\n (onRecovery)=\"onRecovery.emit($event)\"\r\n ></login-page>\r\n} \r\n\r\n<!-- Modal Password -->\r\n<coer-modal #modalPassword title=\"Reset Password\" icon=\"fa-solid fa-lock\" (onClose)=\"password = ''; passwordConfirm = '';\">\r\n <coer-textbox\r\n #inputPassword\r\n label=\"New Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"15px\"\r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <coer-textbox\r\n #inputPasswordConfirm\r\n label=\"Confirm Password\"\r\n [(ngModel)]=\"passwordConfirm\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\" \r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <ng-template coerRef=\"footer\">\r\n <!-- Reset Button -->\r\n <coer-button\r\n #resetButton\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"_isLoading()\" \r\n (onClick)=\"ResetPassword()\"\r\n > Reset </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<coer-alert></coer-alert>" }]
241
- }], propDecorators: { navigation: [{
323
+ args: [{ selector: 'coer-system', standalone: false, template: "@if(IsNotNull(_user())) {\r\n <coer-toolbar \r\n [appName]=\"appName()\" \r\n [user]=\"_user()\" \r\n [image]=\"userImage()\" \r\n [menu]=\"_toolbarMenu()\"\r\n (onClickMenu)=\"sidenav.Toggle()\" \r\n (onClickOption)=\"SelectedOption($event)\"\r\n ></coer-toolbar>\r\n \r\n <coer-sidenav #sidenav> \r\n <section> \r\n <ng-content></ng-content>\r\n </section> \r\n </coer-sidenav>\r\n}\r\n\r\n@else {\r\n <login-page \r\n #loginPage\r\n [title]=\"title\" \r\n (onLogin)=\"onLogin.emit($event)\"\r\n (onRecovery)=\"onRecovery.emit($event)\"\r\n ></login-page>\r\n} \r\n\r\n\r\n<!-- Modal Profile -->\r\n<coer-modal #modalProfile [title]=\"userName()\" icon=\"fa-solid fa-user\" width=\"auto\" height=\"350px\" (onClose)=\"null\"> \r\n <coer-filebox\r\n type=\"image\"\r\n [image]=\"{ \r\n value: IsNotOnlyWhiteSpace(userImage()) ? userImage() : '', \r\n name: userName(),\r\n maxWidth: '150px', \r\n maxHeight: '150px', \r\n marginBottom: '15px' \r\n }\"\r\n [isLoading]=\"_isLoading()\"\r\n (onSelected)=\"UploadImage($event)\"\r\n (onDeleteImage)=\"DeleteUserImage()\"\r\n ></coer-filebox>\r\n \r\n <div class=\"d-flex\"> \r\n <!-- User --> \r\n <coer-textbox\r\n label=\"User\"\r\n [value]=\"_user()?.user\"\r\n [isReadonly]=\"true\" \r\n marginRight=\"15px\"\r\n marginBottom=\"15px\" \r\n width=\"250px\" \r\n ></coer-textbox> \r\n \r\n <!-- Email --> \r\n <coer-textbox\r\n label=\"Email\"\r\n [value]=\"_user()?.email\"\r\n [isReadonly]=\"true\" \r\n marginBottom=\"15px\"\r\n width=\"250px\" \r\n ></coer-textbox> \r\n </div> \r\n\r\n <div class=\"d-flex\"> \r\n <!-- Nickame --> \r\n <coer-textbox\r\n label=\"Nickame\"\r\n [(ngModel)]=\"nickname\" \r\n [isLoading]=\"_isLoading()\"\r\n marginRight=\"15px\"\r\n marginBottom=\"15px\" \r\n width=\"250px\" \r\n ></coer-textbox> \r\n \r\n <!-- Role --> \r\n <coer-selectbox\r\n label=\"Role\"\r\n [(ngModel)]=\"mainRole\"\r\n [dataSource]=\"_userRoles()\"\r\n [isLoading]=\"_isLoading()\" \r\n marginBottom=\"15px\"\r\n width=\"250px\" \r\n ></coer-selectbox> \r\n </div> \r\n\r\n <ng-template coerRef=\"footer\">\r\n <coer-button\r\n #buttonSave\r\n color=\"dark\"\r\n icon=\"save\"\r\n [isLoading]=\"_isLoading()\"\r\n (onClick)=\"UpdateProfile()\"\r\n > Update </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<!-- Modal Password -->\r\n<coer-modal #modalPassword title=\"Reset Password\" icon=\"fa-solid fa-lock\" (onClose)=\"password = ''; passwordConfirm = '';\">\r\n <coer-textbox\r\n #inputPassword\r\n label=\"New Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"15px\"\r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <coer-textbox\r\n #inputPasswordConfirm\r\n label=\"Confirm Password\"\r\n [(ngModel)]=\"passwordConfirm\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\" \r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <ng-template coerRef=\"footer\">\r\n <!-- Reset Button -->\r\n <coer-button\r\n #resetButton\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"_isLoading()\" \r\n (onClick)=\"ResetPassword()\"\r\n > Reset </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<coer-alert></coer-alert> " }]
324
+ }], propDecorators: { user: [{
325
+ type: Input
326
+ }], userRoles: [{
327
+ type: Input
328
+ }], navigation: [{
242
329
  type: Input
243
330
  }] } });
244
331
 
@@ -1 +1 @@
1
- {"version":3,"file":"coer-elements-pages.mjs","sources":["../../../projects/coer-elements/pages/lib/coer-menu/coer-menu.component.ts","../../../projects/coer-elements/pages/lib/coer-menu/coer-menu.component.html","../../../projects/coer-elements/pages/lib/home/home.component.ts","../../../projects/coer-elements/pages/lib/home/home.component.html","../../../projects/coer-elements/pages/lib/coer-loading/loading.component.ts","../../../projects/coer-elements/pages/lib/coer-loading/loading.component.html","../../../projects/coer-elements/pages/lib/coer-system/login/login.component.ts","../../../projects/coer-elements/pages/lib/coer-system/login/login.component.html","../../../projects/coer-elements/pages/lib/coer-system/coer-system.component.ts","../../../projects/coer-elements/pages/lib/coer-system/coer-system.component.html","../../../projects/coer-elements/pages/lib/pages.module.ts","../../../projects/coer-elements/pages/coer-elements-pages.ts"],"sourcesContent":["import { Component, effect, WritableSignal } from '@angular/core'; \r\nimport { Page, Tools } from 'coer-elements/tools'; \r\nimport { menuSelectedSIGNAL } from 'coer-elements/signals';\r\nimport { IMenuSelected } from 'coer-elements/interfaces';\r\n\r\n\r\n@Component({\r\n selector: 'coer-menu-page',\r\n templateUrl: './coer-menu.component.html', \r\n styleUrl: './coer-menu.component.scss',\r\n standalone: false\r\n})\r\nexport class CoerMenuPage extends Page { \r\n \r\n //signals\r\n protected menu: WritableSignal<IMenuSelected | null> = menuSelectedSIGNAL;\r\n\r\n constructor() { \r\n super('coer-menu'); \r\n \r\n effect(() => {\r\n const menu = menuSelectedSIGNAL();\r\n if(Tools.IsNotNull(menu)) this.SetPageFilters({ menu }); \r\n });\r\n } \r\n\r\n\r\n /** */\r\n protected override RunPage() {\r\n if (Tools.IsNotNull(this.pageFilters) && Tools.IsNotNull(this.pageFilters.menu)) { \r\n menuSelectedSIGNAL.set(this.pageFilters.menu); \r\n this.SetPageName(this.pageFilters.menu.label);\r\n } \r\n } \r\n}","<!-- Title -->\r\n<coer-page-title\r\n title=\"Menu\"\r\n [breadcrumbs]=\"breadcrumbs\"\r\n [goBack]=\"goBack\"\r\n></coer-page-title>\r\n\r\n@if(IsNotNull(menu())) {\r\n <div class=\"flex-wrap-left fade-in\">\r\n @for(page of menu()!.items; track page.id) { \r\n <a [routerLink]=\"(page.path!.length > 0) ? page.path : null\" class=\"flex-wrap-item\">\r\n @if(IsNotOnlyWhiteSpace(page?.icon)) {\r\n <i [class]=\"page!.icon\"></i>\r\n }\r\n <span> {{ page.label }} </span>\r\n </a>\r\n }\r\n </div>\r\n}","import { Component } from '@angular/core'; \r\nimport { Page } from 'coer-elements/tools'; \r\n\r\n\r\n@Component({\r\n selector: 'home-page',\r\n templateUrl: './home.component.html', \r\n styleUrl: './home.component.scss',\r\n standalone: false\r\n})\r\nexport class HomePage extends Page { \r\n \r\n constructor() { \r\n super('home'); \r\n }\r\n}","<!-- Title -->\r\n<coer-page-title\r\n title=\"Home\"\r\n [breadcrumbs]=\"breadcrumbs\"\r\n [goBack]=\"goBack\"\r\n></coer-page-title> \r\n\r\n<section class=\"coer-container\"> \r\n</section>","import { Component } from '@angular/core'; \r\n\r\n@Component({\r\n selector: 'loading-page',\r\n templateUrl: './loading.component.html', \r\n styleUrl: './loading.component.scss',\r\n standalone: false\r\n})\r\nexport class LoadingPage { \r\n \r\n}","Loading...","import { Component, input, output, viewChild, WritableSignal } from '@angular/core'; \r\nimport { CoerTextBox } from 'coer-elements/components';\r\nimport { ILogIn } from 'coer-elements/interfaces';\r\nimport { isLoadingSIGNAL } from 'coer-elements/signals';\r\nimport { Tools } from 'coer-elements/tools';\r\n\r\n\r\n@Component({\r\n selector: 'login-page',\r\n templateUrl: './login.component.html', \r\n styleUrl: './login.component.scss',\r\n standalone: false\r\n})\r\nexport class LoginPage { \r\n\r\n //Elements\r\n protected inputUser = viewChild.required<CoerTextBox>('inputUser');\r\n protected inputPassword = viewChild.required<CoerTextBox>('inputPassword');\r\n protected inputRecovery = viewChild.required<CoerTextBox>('inputRecovery');\r\n\r\n //Signals\r\n protected isLoading: WritableSignal<boolean> = isLoadingSIGNAL;\r\n\r\n //Inputs \r\n public title = input<string>(''); \r\n\r\n //Variables\r\n protected user: string = '';\r\n protected password: string = ''; \r\n protected show: 'login' | 'recovery' = 'login';\r\n\r\n //Outputs \r\n public onLogin = output<ILogIn>();\r\n public onRecovery = output<string>();\r\n\r\n //Generic Tools\r\n protected IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace; \r\n\r\n //getter\r\n protected get enableButton() {\r\n return Tools.IsNotOnlyWhiteSpace(this.user)\r\n && Tools.IsNotOnlyWhiteSpace(this.password)\r\n && this.password.length >= 6\r\n }\r\n\r\n //getter\r\n protected get enableRecoveryButton() {\r\n return Tools.IsNotOnlyWhiteSpace(this.user) \r\n && this.user.length >= 6\r\n }\r\n\r\n \r\n /** */\r\n protected Login() {\r\n if (this.enableButton) {\r\n this.onLogin.emit({ \r\n user: this.user, \r\n password: this.password \r\n });\r\n } \r\n }\r\n\r\n\r\n /** */\r\n protected Recovery() {\r\n if(this.enableRecoveryButton) {\r\n this.onRecovery.emit(this.user);\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public async Show(view: 'login' | 'recovery') {\r\n this.show = view;\r\n await Tools.Sleep();\r\n\r\n if(view === 'recovery') { \r\n this.inputRecovery().Focus();\r\n }\r\n\r\n else if (view === 'login') {\r\n this.inputUser().Focus();\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public FocusUser() {\r\n this.inputUser().Focus();\r\n }\r\n\r\n\r\n /** */\r\n public FocusPassword() {\r\n this.inputPassword().Select();\r\n }\r\n}","<div class=\"login-container\">\r\n\r\n <!-- Title -->\r\n <div class=\"title\">\r\n {{ title() }}\r\n </div>\r\n \r\n @if(show === 'login') {\r\n <section>\r\n <!-- User -->\r\n <coer-textbox\r\n #inputUser\r\n label=\"User\"\r\n [(ngModel)]=\"user\"\r\n [isLoading]=\"isLoading()\" \r\n marginTop=\"35px\"\r\n marginBottom=\"35px\"\r\n [maxLength]=\"15\"\r\n (onKeyupEnter)=\"inputPassword.Select()\"\r\n ></coer-textbox>\r\n \r\n <!-- Password -->\r\n <coer-textbox\r\n #inputPassword\r\n label=\"Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"35px\"\r\n [maxLength]=\"20\"\r\n (onKeyupEnter)=\"Login()\"\r\n ></coer-textbox> \r\n \r\n <!-- Login -->\r\n <div class=\"text-center\">\r\n <coer-button\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"isLoading()\"\r\n (onClick)=\"Login()\"\r\n > Login </coer-button>\r\n </div>\r\n </section>\r\n\r\n <!-- Recover password -->\r\n <div class=\"recover\" (click)=\"Show('recovery')\">\r\n Recover password\r\n </div>\r\n } \r\n\r\n\r\n @if(show === 'recovery') {\r\n <section>\r\n <!-- Recovery -->\r\n <coer-textbox\r\n #inputRecovery\r\n label=\"User / Email\"\r\n [(ngModel)]=\"user\"\r\n [isLoading]=\"isLoading()\" \r\n marginTop=\"35px\"\r\n marginBottom=\"35px\"\r\n [maxLength]=\"15\"\r\n (onKeyupEnter)=\"Recovery()\"\r\n ></coer-textbox> \r\n\r\n\r\n <!-- -->\r\n <coer-textbox [isInvisible]=\"true\"></coer-textbox> \r\n\r\n \r\n <!-- Login -->\r\n <div class=\"text-center\">\r\n <coer-button \r\n color=\"dark\" \r\n [isDisabled]=\"!enableRecoveryButton\"\r\n [isLoading]=\"isLoading()\"\r\n marginTop=\"35px\"\r\n (onClick)=\"Recovery()\"\r\n > Recovery </coer-button>\r\n </div>\r\n </section>\r\n\r\n <!-- Recover password -->\r\n <div class=\"back\" (click)=\"Show('login')\">\r\n Back\r\n </div>\r\n } \r\n</div>\r\n\r\n","import { Component, Input, input, output, viewChild, WritableSignal } from '@angular/core'; \r\nimport { isLoadingSIGNAL, navigationSIGNAL } from 'coer-elements/signals';\r\nimport { ILogIn, IMenu, IToolbarMenu } from 'coer-elements/interfaces';\r\nimport { CoerButton, CoerModal, CoerSidenav, CoerTextBox } from 'coer-elements/components';\r\nimport { Menu, Tools, User } from 'coer-elements/tools';\r\nimport { LoginPage } from './login/login.component';\r\n\r\n@Component({\r\n selector: 'coer-system',\r\n templateUrl: './coer-system.component.html', \r\n styleUrl: './coer-system.component.scss', \r\n standalone: false\r\n})\r\nexport class COERSystem { \r\n\r\n //Elements\r\n protected sidenav = viewChild.required<CoerSidenav>('sidenav');\r\n protected loginPage = viewChild.required<LoginPage>('loginPage'); \r\n protected modalPassword = viewChild.required<CoerModal>('modalPassword');\r\n protected inputPassword = viewChild.required<CoerTextBox>('inputPassword');\r\n protected inputPasswordConfirm = viewChild.required<CoerTextBox>('inputPasswordConfirm');\r\n protected resetButton = viewChild.required<CoerButton>('resetButton');\r\n\r\n //Variables\r\n protected readonly title: string = 'COER System'; \r\n protected _isLoading: WritableSignal<boolean> = isLoadingSIGNAL; \r\n protected password: string = '';\r\n protected passwordConfirm: string = '';\r\n\r\n //Inputs\r\n public appName = input<string>(''); \r\n public user = input<any>(null); \r\n public image = input<string | null>(null); \r\n public toolbarMenu = input<IToolbarMenu[]>([]); \r\n\r\n @Input() set navigation(value: IMenu[]) {\r\n if(Tools.IsNotNull(value)) {\r\n navigationSIGNAL.set(value); \r\n \r\n Tools.Sleep(1000, 'getnavigation').then(() => { \r\n if (Tools.IsNotNull(this.user())) {\r\n this.sidenav().SetActiveLink(Menu.GetSelectedOption());\r\n }\r\n }); \r\n } \r\n } \r\n\r\n //Outputs \r\n public onLogin = output<ILogIn>();\r\n public onRecovery = output<string>(); \r\n public onClickOption = output<IToolbarMenu>();\r\n public onResetPassword = output<string>();\r\n\r\n //Generic Tools\r\n protected IsNotNull = Tools.IsNotNull; \r\n\r\n\r\n //getter\r\n protected get enableButton() {\r\n return Tools.IsNotOnlyWhiteSpace(this.user)\r\n && Tools.IsNotOnlyWhiteSpace(this.password)\r\n && Tools.IsNotOnlyWhiteSpace(this.passwordConfirm)\r\n && this.password.length >= 5\r\n && this.passwordConfirm.length >= 5\r\n && !this._isLoading()\r\n && this.password === this.passwordConfirm\r\n }\r\n\r\n\r\n /** */\r\n protected async SelectedOption(menu: IToolbarMenu) {\r\n switch(menu.label) {\r\n case 'Reset Password': {\r\n this.modalPassword().Open();\r\n await Tools.Sleep(1000);\r\n this.Focus();\r\n break;\r\n }\r\n\r\n case 'Log Out': {\r\n User.LogOut();\r\n break;\r\n } \r\n }\r\n }\r\n\r\n\r\n /** */\r\n public FocusUser() {\r\n this.loginPage().FocusUser();\r\n }\r\n\r\n\r\n /** */\r\n public FocusPassword() {\r\n this.loginPage().FocusPassword();\r\n }\r\n\r\n\r\n /** */\r\n protected Focus() { \r\n if(Tools.IsOnlyWhiteSpace(this.password)) {\r\n this.inputPassword().Focus();\r\n return;\r\n }\r\n\r\n if(Tools.IsOnlyWhiteSpace(this.passwordConfirm)) { \r\n this.inputPasswordConfirm().Focus();\r\n return;\r\n } \r\n \r\n if(this.enableButton) {\r\n this.resetButton().Focus();\r\n } \r\n }\r\n\r\n\r\n /** */\r\n protected ResetPassword() { \r\n if(this.enableButton) {\r\n const password = this.password;\r\n this.onResetPassword.emit(password);\r\n } \r\n }\r\n\r\n\r\n /** */\r\n public CloseModal() {\r\n this.modalPassword().Close();\r\n }\r\n\r\n\r\n /** */\r\n public async Show(view: 'login' | 'recovery') {\r\n this.loginPage().Show(view);\r\n }\r\n}","@if(IsNotNull(user())) {\r\n <coer-toolbar \r\n [appName]=\"appName()\" \r\n [user]=\"user()\" \r\n [image]=\"image()\" \r\n [menu]=\"toolbarMenu()\"\r\n (onClickMenu)=\"sidenav.Toggle()\" \r\n (onClickOption)=\"SelectedOption($event)\"\r\n ></coer-toolbar>\r\n \r\n <coer-sidenav #sidenav> \r\n <section> \r\n <ng-content></ng-content>\r\n </section> \r\n </coer-sidenav>\r\n}\r\n\r\n@else {\r\n <login-page \r\n #loginPage\r\n [title]=\"title\" \r\n (onLogin)=\"onLogin.emit($event)\"\r\n (onRecovery)=\"onRecovery.emit($event)\"\r\n ></login-page>\r\n} \r\n\r\n<!-- Modal Password -->\r\n<coer-modal #modalPassword title=\"Reset Password\" icon=\"fa-solid fa-lock\" (onClose)=\"password = ''; passwordConfirm = '';\">\r\n <coer-textbox\r\n #inputPassword\r\n label=\"New Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"15px\"\r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <coer-textbox\r\n #inputPasswordConfirm\r\n label=\"Confirm Password\"\r\n [(ngModel)]=\"passwordConfirm\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\" \r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <ng-template coerRef=\"footer\">\r\n <!-- Reset Button -->\r\n <coer-button\r\n #resetButton\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"_isLoading()\" \r\n (onClick)=\"ResetPassword()\"\r\n > Reset </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<coer-alert></coer-alert>","import { NgModule } from '@angular/core'; \r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RouterModule } from '@angular/router';\r\n\r\n//Pages \r\nimport { CoerMenuPage } from './coer-menu/coer-menu.component';\r\nimport { ComponentsModule } from 'coer-elements/components';\r\nimport { DirectivesModule } from 'coer-elements/directives';\r\nimport { HomePage } from './home/home.component';\r\nimport { LoadingPage } from './coer-loading/loading.component';\r\nimport { COERSystem } from './coer-system/coer-system.component';\r\nimport { LoginPage } from './coer-system/login/login.component';\r\nimport { CoerAlert } from 'coer-elements/tools';\r\n\r\nexport const ROUTES: any = [ \r\n { path: 'menu', component: CoerMenuPage },\r\n { path: 'loading', component: LoadingPage },\r\n { path: 'home', component: HomePage },\r\n { path: '**', redirectTo: 'home' } \r\n];\r\n\r\n@NgModule({ \r\n imports: [\r\n CommonModule, \r\n RouterModule, \r\n FormsModule, \r\n ComponentsModule, \r\n DirectivesModule,\r\n CoerAlert\r\n ],\r\n declarations: [\r\n COERSystem,\r\n LoginPage,\r\n CoerMenuPage,\r\n HomePage,\r\n LoadingPage,\r\n ],\r\n exports: [ \r\n COERSystem, \r\n CoerMenuPage,\r\n HomePage,\r\n LoadingPage,\r\n ]\r\n})\r\nexport class PagesModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i5.LoginPage"],"mappings":";;;;;;;;;;;;;;;AAYM,MAAO,YAAa,SAAQ,IAAI,CAAA;AAKlC,IAAA,WAAA,GAAA;QACI,KAAK,CAAC,WAAW,CAAC;;QAHZ,IAAI,CAAA,IAAA,GAAyC,kBAAkB;QAKrE,MAAM,CAA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AU;wBACV,SAAS;wBACT,YAAY;wBACZ,QAAQ;wBACR,WAAW;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,UAAU;wBACV,YAAY;wBACZ,QAAQ;wBACR,WAAW;AACd;AACJ,iBAAA;;;AC5CD;;AAEG;;;;"}
1
+ {"version":3,"file":"coer-elements-pages.mjs","sources":["../../../projects/coer-elements/pages/lib/coer-menu/coer-menu.component.ts","../../../projects/coer-elements/pages/lib/coer-menu/coer-menu.component.html","../../../projects/coer-elements/pages/lib/home/home.component.ts","../../../projects/coer-elements/pages/lib/home/home.component.html","../../../projects/coer-elements/pages/lib/coer-loading/loading.component.ts","../../../projects/coer-elements/pages/lib/coer-loading/loading.component.html","../../../projects/coer-elements/pages/lib/coer-system/login/login.component.ts","../../../projects/coer-elements/pages/lib/coer-system/login/login.component.html","../../../projects/coer-elements/pages/lib/coer-system/coer-system.component.ts","../../../projects/coer-elements/pages/lib/coer-system/coer-system.component.html","../../../projects/coer-elements/pages/lib/pages.module.ts","../../../projects/coer-elements/pages/coer-elements-pages.ts"],"sourcesContent":["import { Component, effect, WritableSignal } from '@angular/core'; \r\nimport { Page, Tools } from 'coer-elements/tools'; \r\nimport { menuSelectedSIGNAL } from 'coer-elements/signals';\r\nimport { IMenuSelected } from 'coer-elements/interfaces';\r\n\r\n\r\n@Component({\r\n selector: 'coer-menu-page',\r\n templateUrl: './coer-menu.component.html', \r\n styleUrl: './coer-menu.component.scss',\r\n standalone: false\r\n})\r\nexport class CoerMenuPage extends Page { \r\n \r\n //signals\r\n protected menu: WritableSignal<IMenuSelected | null> = menuSelectedSIGNAL;\r\n\r\n constructor() { \r\n super('coer-menu'); \r\n \r\n effect(() => {\r\n const menu = menuSelectedSIGNAL();\r\n if(Tools.IsNotNull(menu)) this.SetPageFilters({ menu }); \r\n });\r\n } \r\n\r\n\r\n /** */\r\n protected override RunPage() {\r\n if (Tools.IsNotNull(this.pageFilters) && Tools.IsNotNull(this.pageFilters.menu)) { \r\n menuSelectedSIGNAL.set(this.pageFilters.menu); \r\n this.SetPageName(this.pageFilters.menu.label);\r\n } \r\n } \r\n}","<!-- Title -->\r\n<coer-page-title\r\n title=\"Menu\"\r\n [breadcrumbs]=\"breadcrumbs\"\r\n [goBack]=\"goBack\"\r\n></coer-page-title>\r\n\r\n@if(IsNotNull(menu())) {\r\n <div class=\"flex-wrap-left fade-in\">\r\n @for(page of menu()!.items; track page.id) { \r\n <a [routerLink]=\"(page.path!.length > 0) ? page.path : null\" class=\"flex-wrap-item\">\r\n @if(IsNotOnlyWhiteSpace(page?.icon)) {\r\n <i [class]=\"page!.icon\"></i>\r\n }\r\n <span> {{ page.label }} </span>\r\n </a>\r\n }\r\n </div>\r\n}","import { Component } from '@angular/core'; \r\nimport { Page } from 'coer-elements/tools'; \r\n\r\n\r\n@Component({\r\n selector: 'home-page',\r\n templateUrl: './home.component.html', \r\n styleUrl: './home.component.scss',\r\n standalone: false\r\n})\r\nexport class HomePage extends Page { \r\n \r\n constructor() { \r\n super('home'); \r\n }\r\n}","<!-- Title -->\r\n<coer-page-title\r\n title=\"Home\"\r\n [breadcrumbs]=\"breadcrumbs\"\r\n [goBack]=\"goBack\"\r\n></coer-page-title> \r\n\r\n<section class=\"coer-container\"> \r\n</section>","import { Component } from '@angular/core'; \r\n\r\n@Component({\r\n selector: 'loading-page',\r\n templateUrl: './loading.component.html', \r\n styleUrl: './loading.component.scss',\r\n standalone: false\r\n})\r\nexport class LoadingPage { \r\n \r\n}","Loading...","import { Component, input, output, viewChild, WritableSignal } from '@angular/core'; \r\nimport { CoerTextBox } from 'coer-elements/components';\r\nimport { ILogIn } from 'coer-elements/interfaces';\r\nimport { isLoadingSIGNAL } from 'coer-elements/signals';\r\nimport { Tools } from 'coer-elements/tools';\r\n\r\n\r\n@Component({\r\n selector: 'login-page',\r\n templateUrl: './login.component.html', \r\n styleUrl: './login.component.scss',\r\n standalone: false\r\n})\r\nexport class LoginPage { \r\n\r\n //Elements\r\n protected inputUser = viewChild.required<CoerTextBox>('inputUser');\r\n protected inputPassword = viewChild.required<CoerTextBox>('inputPassword');\r\n protected inputRecovery = viewChild.required<CoerTextBox>('inputRecovery');\r\n\r\n //Signals\r\n protected isLoading: WritableSignal<boolean> = isLoadingSIGNAL;\r\n\r\n //Inputs \r\n public title = input<string>(''); \r\n\r\n //Variables\r\n protected user: string = '';\r\n protected password: string = ''; \r\n protected show: 'login' | 'recovery' = 'login';\r\n\r\n //Outputs \r\n public onLogin = output<ILogIn>();\r\n public onRecovery = output<string>();\r\n\r\n //Generic Tools\r\n protected IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace; \r\n\r\n //getter\r\n protected get enableButton() {\r\n return Tools.IsNotOnlyWhiteSpace(this.user)\r\n && Tools.IsNotOnlyWhiteSpace(this.password)\r\n && this.password.length >= 6\r\n }\r\n\r\n //getter\r\n protected get enableRecoveryButton() {\r\n return Tools.IsNotOnlyWhiteSpace(this.user) \r\n && this.user.length >= 6\r\n }\r\n\r\n \r\n /** */\r\n protected Login() {\r\n if (this.enableButton) {\r\n this.onLogin.emit({ \r\n user: this.user, \r\n password: this.password \r\n });\r\n } \r\n }\r\n\r\n\r\n /** */\r\n protected Recovery() {\r\n if(this.enableRecoveryButton) {\r\n this.onRecovery.emit(this.user);\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public async Show(view: 'login' | 'recovery') {\r\n this.show = view;\r\n await Tools.Sleep();\r\n\r\n if(view === 'recovery') { \r\n this.inputRecovery().Focus();\r\n }\r\n\r\n else if (view === 'login') {\r\n this.inputUser().Focus();\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public FocusUser() {\r\n this.inputUser().Focus();\r\n }\r\n\r\n\r\n /** */\r\n public FocusPassword() {\r\n this.inputPassword().Select();\r\n }\r\n}","<div class=\"login-container\">\r\n\r\n <!-- Title -->\r\n <div class=\"title\">\r\n {{ title() }}\r\n </div>\r\n \r\n @if(show === 'login') {\r\n <section>\r\n <!-- User -->\r\n <coer-textbox\r\n #inputUser\r\n label=\"User\"\r\n [(ngModel)]=\"user\"\r\n [isLoading]=\"isLoading()\" \r\n marginTop=\"35px\"\r\n marginBottom=\"35px\"\r\n [maxLength]=\"15\"\r\n (onKeyupEnter)=\"inputPassword.Select()\"\r\n ></coer-textbox>\r\n \r\n <!-- Password -->\r\n <coer-textbox\r\n #inputPassword\r\n label=\"Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"35px\"\r\n [maxLength]=\"20\"\r\n (onKeyupEnter)=\"Login()\"\r\n ></coer-textbox> \r\n \r\n <!-- Login -->\r\n <div class=\"text-center\">\r\n <coer-button\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"isLoading()\"\r\n (onClick)=\"Login()\"\r\n > Login </coer-button>\r\n </div>\r\n </section>\r\n\r\n <!-- Recover password -->\r\n <div class=\"recover\" (click)=\"Show('recovery')\">\r\n Recover password\r\n </div>\r\n } \r\n\r\n\r\n @if(show === 'recovery') {\r\n <section>\r\n <!-- Recovery -->\r\n <coer-textbox\r\n #inputRecovery\r\n label=\"User / Email\"\r\n [(ngModel)]=\"user\"\r\n [isLoading]=\"isLoading()\" \r\n marginTop=\"35px\"\r\n marginBottom=\"35px\"\r\n [maxLength]=\"15\"\r\n (onKeyupEnter)=\"Recovery()\"\r\n ></coer-textbox> \r\n\r\n\r\n <!-- -->\r\n <coer-textbox [isInvisible]=\"true\"></coer-textbox> \r\n\r\n \r\n <!-- Login -->\r\n <div class=\"text-center\">\r\n <coer-button \r\n color=\"dark\" \r\n [isDisabled]=\"!enableRecoveryButton\"\r\n [isLoading]=\"isLoading()\"\r\n marginTop=\"35px\"\r\n (onClick)=\"Recovery()\"\r\n > Recovery </coer-button>\r\n </div>\r\n </section>\r\n\r\n <!-- Recover password -->\r\n <div class=\"back\" (click)=\"Show('login')\">\r\n Back\r\n </div>\r\n } \r\n</div>\r\n\r\n","import { Component, computed, inject, Input, input, output, signal, viewChild, WritableSignal } from '@angular/core'; \r\nimport { isLoadingSIGNAL, navigationSIGNAL } from 'coer-elements/signals';\r\nimport { IFile, ILogIn, IMenu, IToolbarMenu } from 'coer-elements/interfaces';\r\nimport { CoerButton, CoerModal, CoerSidenav, CoerTextBox } from 'coer-elements/components';\r\nimport { CoerAlert, Menu, Tools, User } from 'coer-elements/tools';\r\nimport { LoginPage } from './login/login.component';\r\n\r\n@Component({\r\n selector: 'coer-system',\r\n templateUrl: './coer-system.component.html', \r\n styleUrl: './coer-system.component.scss', \r\n standalone: false\r\n})\r\nexport class COERSystem { \r\n\r\n //Injection\r\n protected readonly alert = inject(CoerAlert);\r\n\r\n //Elements\r\n protected sidenav = viewChild.required<CoerSidenav>('sidenav');\r\n protected loginPage = viewChild.required<LoginPage>('loginPage'); \r\n protected modalProfile = viewChild.required<CoerModal>('modalProfile');\r\n protected modalPassword = viewChild.required<CoerModal>('modalPassword');\r\n protected inputPassword = viewChild.required<CoerTextBox>('inputPassword');\r\n protected inputPasswordConfirm = viewChild.required<CoerTextBox>('inputPasswordConfirm');\r\n protected resetButton = viewChild.required<CoerButton>('resetButton');\r\n\r\n //Variables\r\n protected readonly title: string = 'COER System'; \r\n protected _isLoading: WritableSignal<boolean> = isLoadingSIGNAL; \r\n protected mainRole: any = null;\r\n protected nickname: string = '';\r\n protected password: string = '';\r\n protected passwordConfirm: string = '';\r\n protected _userRoles = signal<any[]>([]); \r\n protected _user = signal<any>(null); \r\n \r\n //Inputs\r\n public appName = input<string>(''); \r\n public userImage = input<string | null>(null); \r\n public toolbarMenu = input<IToolbarMenu[]>([]); \r\n\r\n\r\n @Input() set user(value: any) {\r\n if(Tools.IsNotNull(value)) {\r\n this._user.set(value); \r\n \r\n Tools.Sleep(1000, 'coerSystemGetUser').then(() => { \r\n if (Tools.IsNotOnlyWhiteSpace(this._user()?.nickname)) {\r\n this.nickname = this._user().nickname;\r\n }\r\n }); \r\n } \r\n } \r\n\r\n @Input() set userRoles(value: any[]) {\r\n if(Tools.IsNotNull(value)) {\r\n this._userRoles.set(value); \r\n \r\n Tools.Sleep(1000, 'coerSystemGetUserRoles').then(() => { \r\n let mainRole: any = this._userRoles().find(x => (x?.id || -1) === (this._user()?.roleId) || null) || null;\r\n \r\n if (Tools.IsNull(mainRole)) {\r\n mainRole = this._userRoles().find(x => (x?.name || -1) === (this._user()?.role || null)) || null;\r\n }\r\n\r\n if (Tools.IsNotNull(mainRole)) {\r\n this.mainRole = mainRole;\r\n }\r\n }); \r\n } \r\n } \r\n\r\n @Input() set navigation(value: IMenu[]) {\r\n if(Tools.IsNotNull(value)) {\r\n navigationSIGNAL.set(value); \r\n \r\n Tools.Sleep(1000, 'coerSystemGetUserNavigation').then(() => { \r\n if (Tools.IsNotNull(this._user())) {\r\n this.sidenav().SetActiveLink(Menu.GetSelectedOption());\r\n }\r\n }); \r\n } \r\n } \r\n\r\n //Outputs \r\n public onLogin = output<ILogIn>();\r\n public onRecovery = output<string>(); \r\n public onClickOption = output<IToolbarMenu>();\r\n public onResetPassword = output<string>();\r\n public onUpdateProfile = output<any>();\r\n public onUploadUserImage = output<IFile>();\r\n public onDeleteUserImage = output<void>();\r\n\r\n //Generic Tools\r\n protected IsNotNull = Tools.IsNotNull; \r\n protected IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace;\r\n\r\n\r\n //getter\r\n protected get enableButton() {\r\n return Tools.IsNotOnlyWhiteSpace(this._user())\r\n && Tools.IsNotOnlyWhiteSpace(this.password)\r\n && Tools.IsNotOnlyWhiteSpace(this.passwordConfirm)\r\n && this.password.length >= 5\r\n && this.passwordConfirm.length >= 5\r\n && !this._isLoading()\r\n && this.password === this.passwordConfirm\r\n }\r\n\r\n\r\n //computed\r\n protected _toolbarMenu = computed<IToolbarMenu[]>(() => {\r\n const menu = [...this.toolbarMenu()] as any[]; \r\n\r\n return [\r\n { label: 'Profile', icon: 'fa-solid fa-user' },\r\n { label: 'Reset Password', icon: 'fa-solid fa-lock' },\r\n { label: 'Log Out', icon: 'fa-solid fa-door-open' }\r\n ].concat(menu); \r\n });\r\n\r\n\r\n //computed\r\n protected userName = computed<string>(() => { \r\n const user = this._user();\r\n\r\n if (Tools.IsNotNull(user)) {\r\n if (Tools.IsNotOnlyWhiteSpace(user?.fullName)) return user?.fullName;\r\n\r\n const name = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.name) ? this._user().name : ''; \r\n const firstName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.firstName) ? this._user().firstName : ''; \r\n const middleName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.middleName) ? this._user().middleName : '';\r\n const lastName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.lastName) ? this._user().lastName : ''; \r\n const secondLastName = Tools.IsNotNull(this._user()) && Tools.IsNotOnlyWhiteSpace(this._user()?.secondName) ? this._user().secondLastName : ''; \r\n return `${name} ${firstName} ${middleName} ${lastName} ${secondLastName}`; \r\n }\r\n \r\n return ''; \r\n });\r\n\r\n\r\n /** */\r\n protected async SelectedOption(menu: IToolbarMenu) {\r\n switch(menu.label) {\r\n case 'Profile': {\r\n this.modalProfile().Open(); \r\n break;\r\n }\r\n\r\n case 'Reset Password': {\r\n this.modalPassword().Open();\r\n await Tools.Sleep(1000);\r\n this.Focus();\r\n break;\r\n }\r\n\r\n case 'Log Out': {\r\n User.LogOut();\r\n break;\r\n } \r\n }\r\n }\r\n\r\n\r\n /** */\r\n public FocusUser() {\r\n this.loginPage().FocusUser();\r\n }\r\n\r\n\r\n /** */\r\n public FocusPassword() {\r\n this.loginPage().FocusPassword();\r\n }\r\n\r\n\r\n /** */\r\n protected Focus() { \r\n if(Tools.IsOnlyWhiteSpace(this.password)) {\r\n this.inputPassword().Focus();\r\n return;\r\n }\r\n\r\n if(Tools.IsOnlyWhiteSpace(this.passwordConfirm)) { \r\n this.inputPasswordConfirm().Focus();\r\n return;\r\n } \r\n \r\n if(this.enableButton) {\r\n this.resetButton().Focus();\r\n } \r\n }\r\n\r\n\r\n /** */\r\n protected ResetPassword() { \r\n if(this.enableButton) {\r\n const password = this.password;\r\n this.onResetPassword.emit(password);\r\n } \r\n }\r\n\r\n\r\n /** */\r\n public CloseModal() {\r\n this.modalPassword().Close();\r\n }\r\n\r\n\r\n /** */\r\n public async Show(view: 'login' | 'recovery') {\r\n this.loginPage().Show(view);\r\n }\r\n\r\n\r\n /** */\r\n public async UpdateProfile() {\r\n this.onUpdateProfile.emit({ \r\n user: this._user()?.user, \r\n nickname: this.nickname, \r\n role: this.mainRole \r\n });\r\n }\r\n\r\n\r\n /** */\r\n public UploadImage(images: IFile[]) {\r\n if(images.length > 0) {\r\n const [image] = images; \r\n this.onUploadUserImage.emit(image);\r\n }\r\n }\r\n\r\n /** */\r\n public async DeleteUserImage() { \r\n const response = await this.alert.Confirm(`Remove <b>User Image</b> ?`, 'warning', 'fa-solid fa-trash-can'); \r\n if(response) this.onDeleteUserImage.emit();\r\n }\r\n}","@if(IsNotNull(_user())) {\r\n <coer-toolbar \r\n [appName]=\"appName()\" \r\n [user]=\"_user()\" \r\n [image]=\"userImage()\" \r\n [menu]=\"_toolbarMenu()\"\r\n (onClickMenu)=\"sidenav.Toggle()\" \r\n (onClickOption)=\"SelectedOption($event)\"\r\n ></coer-toolbar>\r\n \r\n <coer-sidenav #sidenav> \r\n <section> \r\n <ng-content></ng-content>\r\n </section> \r\n </coer-sidenav>\r\n}\r\n\r\n@else {\r\n <login-page \r\n #loginPage\r\n [title]=\"title\" \r\n (onLogin)=\"onLogin.emit($event)\"\r\n (onRecovery)=\"onRecovery.emit($event)\"\r\n ></login-page>\r\n} \r\n\r\n\r\n<!-- Modal Profile -->\r\n<coer-modal #modalProfile [title]=\"userName()\" icon=\"fa-solid fa-user\" width=\"auto\" height=\"350px\" (onClose)=\"null\"> \r\n <coer-filebox\r\n type=\"image\"\r\n [image]=\"{ \r\n value: IsNotOnlyWhiteSpace(userImage()) ? userImage() : '', \r\n name: userName(),\r\n maxWidth: '150px', \r\n maxHeight: '150px', \r\n marginBottom: '15px' \r\n }\"\r\n [isLoading]=\"_isLoading()\"\r\n (onSelected)=\"UploadImage($event)\"\r\n (onDeleteImage)=\"DeleteUserImage()\"\r\n ></coer-filebox>\r\n \r\n <div class=\"d-flex\"> \r\n <!-- User --> \r\n <coer-textbox\r\n label=\"User\"\r\n [value]=\"_user()?.user\"\r\n [isReadonly]=\"true\" \r\n marginRight=\"15px\"\r\n marginBottom=\"15px\" \r\n width=\"250px\" \r\n ></coer-textbox> \r\n \r\n <!-- Email --> \r\n <coer-textbox\r\n label=\"Email\"\r\n [value]=\"_user()?.email\"\r\n [isReadonly]=\"true\" \r\n marginBottom=\"15px\"\r\n width=\"250px\" \r\n ></coer-textbox> \r\n </div> \r\n\r\n <div class=\"d-flex\"> \r\n <!-- Nickame --> \r\n <coer-textbox\r\n label=\"Nickame\"\r\n [(ngModel)]=\"nickname\" \r\n [isLoading]=\"_isLoading()\"\r\n marginRight=\"15px\"\r\n marginBottom=\"15px\" \r\n width=\"250px\" \r\n ></coer-textbox> \r\n \r\n <!-- Role --> \r\n <coer-selectbox\r\n label=\"Role\"\r\n [(ngModel)]=\"mainRole\"\r\n [dataSource]=\"_userRoles()\"\r\n [isLoading]=\"_isLoading()\" \r\n marginBottom=\"15px\"\r\n width=\"250px\" \r\n ></coer-selectbox> \r\n </div> \r\n\r\n <ng-template coerRef=\"footer\">\r\n <coer-button\r\n #buttonSave\r\n color=\"dark\"\r\n icon=\"save\"\r\n [isLoading]=\"_isLoading()\"\r\n (onClick)=\"UpdateProfile()\"\r\n > Update </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<!-- Modal Password -->\r\n<coer-modal #modalPassword title=\"Reset Password\" icon=\"fa-solid fa-lock\" (onClose)=\"password = ''; passwordConfirm = '';\">\r\n <coer-textbox\r\n #inputPassword\r\n label=\"New Password\"\r\n [(ngModel)]=\"password\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\"\r\n marginBottom=\"15px\"\r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <coer-textbox\r\n #inputPasswordConfirm\r\n label=\"Confirm Password\"\r\n [(ngModel)]=\"passwordConfirm\"\r\n [isLoading]=\"_isLoading()\"\r\n [selectOnFocus]=\"true\" \r\n (onKeyupEnter)=\"Focus()\"\r\n ></coer-textbox>\r\n\r\n <ng-template coerRef=\"footer\">\r\n <!-- Reset Button -->\r\n <coer-button\r\n #resetButton\r\n color=\"dark\" \r\n [isDisabled]=\"!enableButton\"\r\n [isLoading]=\"_isLoading()\" \r\n (onClick)=\"ResetPassword()\"\r\n > Reset </coer-button>\r\n </ng-template>\r\n</coer-modal>\r\n\r\n\r\n<coer-alert></coer-alert> ","import { NgModule } from '@angular/core'; \r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RouterModule } from '@angular/router';\r\n\r\n//Pages \r\nimport { CoerMenuPage } from './coer-menu/coer-menu.component';\r\nimport { ComponentsModule } from 'coer-elements/components';\r\nimport { DirectivesModule } from 'coer-elements/directives';\r\nimport { HomePage } from './home/home.component';\r\nimport { LoadingPage } from './coer-loading/loading.component';\r\nimport { COERSystem } from './coer-system/coer-system.component';\r\nimport { LoginPage } from './coer-system/login/login.component';\r\nimport { CoerAlert } from 'coer-elements/tools';\r\n\r\nexport const ROUTES: any = [ \r\n { path: 'menu', component: CoerMenuPage },\r\n { path: 'loading', component: LoadingPage },\r\n { path: 'home', component: HomePage },\r\n { path: '**', redirectTo: 'home' } \r\n];\r\n\r\n@NgModule({ \r\n imports: [\r\n CommonModule, \r\n RouterModule, \r\n FormsModule, \r\n ComponentsModule, \r\n DirectivesModule,\r\n CoerAlert\r\n ],\r\n declarations: [\r\n COERSystem,\r\n LoginPage,\r\n CoerMenuPage,\r\n HomePage,\r\n LoadingPage,\r\n ],\r\n exports: [ \r\n COERSystem, \r\n CoerMenuPage,\r\n HomePage,\r\n LoadingPage,\r\n ]\r\n})\r\nexport class PagesModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i5.LoginPage"],"mappings":";;;;;;;;;;;;;;;AAYM,MAAO,YAAa,SAAQ,IAAI,CAAA;AAKlC,IAAA,WAAA,GAAA;QACI,KAAK,CAAC,WAAW,CAAC;;QAHZ,IAAI,CAAA,IAAA,GAAyC,kBAAkB;QAKrE,MAAM,CAAC,MAAK;AACR,YAAA,MAAM,IAAI,GAAG,kBAAkB,EAAE;AACjC,YAAA,IAAG,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;AAAE,gBAAA,IAAI,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC;AAC3D,SAAC,CAAC;;;IAKa,OAAO,GAAA;QACtB,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YAC7E,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC;;;8GAnB5C,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,kGCZzB,6mBAkBC,EAAA,MAAA,EAAA,CAAA,0kBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA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Z,QAAQ;YACR,WAAW,CAAA,EAAA,CAAA,CAAA;AAGN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YArBhB,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,SAAS,CAAA,EAAA,CAAA,CAAA;;2FAgBJ,WAAW,EAAA,UAAA,EAAA,CAAA;kBAvBvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,YAAY;wBACZ,WAAW;wBACX,gBAAgB;wBAChB,gBAAgB;wBAChB;AACH,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,UAAU;wBACV,SAAS;wBACT,YAAY;wBACZ,QAAQ;wBACR,WAAW;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,UAAU;wBACV,YAAY;wBACZ,QAAQ;wBACR,WAAW;AACd;AACJ,iBAAA;;;AC5CD;;AAEG;;;;"}
@@ -4,6 +4,7 @@ export interface ILogInResponse {
4
4
  user: string;
5
5
  nickname: string;
6
6
  fullName: string;
7
+ email: string;
7
8
  role: string;
8
9
  jwt: string;
9
10
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "COER",
@@ -1,30 +1,44 @@
1
1
  import { WritableSignal } from '@angular/core';
2
- import { ILogIn, IMenu, IToolbarMenu } from 'coer-elements/interfaces';
2
+ import { IFile, ILogIn, IMenu, IToolbarMenu } from 'coer-elements/interfaces';
3
3
  import { CoerButton, CoerModal, CoerSidenav, CoerTextBox } from 'coer-elements/components';
4
+ import { CoerAlert } from 'coer-elements/tools';
4
5
  import { LoginPage } from './login/login.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class COERSystem {
8
+ protected readonly alert: CoerAlert;
7
9
  protected sidenav: import("@angular/core").Signal<CoerSidenav>;
8
10
  protected loginPage: import("@angular/core").Signal<LoginPage>;
11
+ protected modalProfile: import("@angular/core").Signal<CoerModal>;
9
12
  protected modalPassword: import("@angular/core").Signal<CoerModal>;
10
13
  protected inputPassword: import("@angular/core").Signal<CoerTextBox>;
11
14
  protected inputPasswordConfirm: import("@angular/core").Signal<CoerTextBox>;
12
15
  protected resetButton: import("@angular/core").Signal<CoerButton>;
13
16
  protected readonly title: string;
14
17
  protected _isLoading: WritableSignal<boolean>;
18
+ protected mainRole: any;
19
+ protected nickname: string;
15
20
  protected password: string;
16
21
  protected passwordConfirm: string;
22
+ protected _userRoles: WritableSignal<any[]>;
23
+ protected _user: WritableSignal<any>;
17
24
  appName: import("@angular/core").InputSignal<string>;
18
- user: import("@angular/core").InputSignal<any>;
19
- image: import("@angular/core").InputSignal<string | null>;
25
+ userImage: import("@angular/core").InputSignal<string | null>;
20
26
  toolbarMenu: import("@angular/core").InputSignal<IToolbarMenu[]>;
27
+ set user(value: any);
28
+ set userRoles(value: any[]);
21
29
  set navigation(value: IMenu[]);
22
30
  onLogin: import("@angular/core").OutputEmitterRef<ILogIn>;
23
31
  onRecovery: import("@angular/core").OutputEmitterRef<string>;
24
32
  onClickOption: import("@angular/core").OutputEmitterRef<IToolbarMenu>;
25
33
  onResetPassword: import("@angular/core").OutputEmitterRef<string>;
34
+ onUpdateProfile: import("@angular/core").OutputEmitterRef<any>;
35
+ onUploadUserImage: import("@angular/core").OutputEmitterRef<IFile>;
36
+ onDeleteUserImage: import("@angular/core").OutputEmitterRef<void>;
26
37
  protected IsNotNull: <T>(value: T | null | undefined) => boolean;
38
+ protected IsNotOnlyWhiteSpace: <T>(value: T | null | undefined) => boolean;
27
39
  protected get enableButton(): boolean;
40
+ protected _toolbarMenu: import("@angular/core").Signal<IToolbarMenu[]>;
41
+ protected userName: import("@angular/core").Signal<string>;
28
42
  /** */
29
43
  protected SelectedOption(menu: IToolbarMenu): Promise<void>;
30
44
  /** */
@@ -39,6 +53,12 @@ export declare class COERSystem {
39
53
  CloseModal(): void;
40
54
  /** */
41
55
  Show(view: 'login' | 'recovery'): Promise<void>;
56
+ /** */
57
+ UpdateProfile(): Promise<void>;
58
+ /** */
59
+ UploadImage(images: IFile[]): void;
60
+ /** */
61
+ DeleteUserImage(): Promise<void>;
42
62
  static ɵfac: i0.ɵɵFactoryDeclaration<COERSystem, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<COERSystem, "coer-system", never, { "appName": { "alias": "appName"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "toolbarMenu": { "alias": "toolbarMenu"; "required": false; "isSignal": true; }; "navigation": { "alias": "navigation"; "required": false; }; }, { "onLogin": "onLogin"; "onRecovery": "onRecovery"; "onClickOption": "onClickOption"; "onResetPassword": "onResetPassword"; }, never, ["*"], false, never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<COERSystem, "coer-system", never, { "appName": { "alias": "appName"; "required": false; "isSignal": true; }; "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>;
44
64
  }