@po-ui/ng-templates 19.6.0 → 19.7.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.
- package/fesm2022/po-ui-ng-templates.mjs +686 -329
- package/fesm2022/po-ui-ng-templates.mjs.map +1 -1
- package/lib/components/enums/po-page-components-size.enum.d.ts +12 -0
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery-base.component.d.ts +21 -3
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.d.ts +4 -3
- package/lib/components/po-page-background/po-page-background.component.d.ts +21 -3
- package/lib/components/po-page-blocked-user/po-page-blocked-user-base.component.d.ts +21 -1
- package/lib/components/po-page-blocked-user/po-page-blocked-user.component.d.ts +4 -3
- package/lib/components/po-page-change-password/po-page-change-password-base.component.d.ts +21 -2
- package/lib/components/po-page-change-password/po-page-change-password.component.d.ts +4 -3
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.d.ts +26 -8
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.d.ts +25 -7
- package/lib/components/po-page-dynamic-search/index.d.ts +4 -4
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-base.component.d.ts +22 -4
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.d.ts +3 -2
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.d.ts +24 -6
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.d.ts +5 -4
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.d.ts +22 -4
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-base.component.d.ts +22 -4
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.d.ts +2 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.d.ts +2 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.d.ts +2 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.d.ts +3 -2
- package/lib/components/po-page-login/po-page-login-base.component.d.ts +23 -5
- package/lib/components/po-page-login/po-page-login.component.d.ts +4 -3
- package/lib/utils/util.d.ts +9 -0
- package/package.json +4 -4
- package/po-ui-ng-templates-19.7.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/po-ui-ng-templates-19.6.0.tgz +0 -0
- /package/lib/components/po-page-dynamic-search/{po-page-dynamic-search-filters.interface.d.ts → interfaces/po-page-dynamic-search-filters.interface.d.ts} +0 -0
- /package/lib/components/po-page-dynamic-search/{po-page-dynamic-search-literals.interface.d.ts → interfaces/po-page-dynamic-search-literals.interface.d.ts} +0 -0
- /package/lib/components/po-page-dynamic-search/{po-page-dynamic-search-options.interface.d.ts → interfaces/po-page-dynamic-search-options.interface.d.ts} +0 -0
- /package/lib/components/po-page-dynamic-search/{po-page-dynamic-search.interface.d.ts → interfaces/po-page-dynamic-search.interface.d.ts} +0 -0
|
@@ -4,15 +4,29 @@ import * as i4 from '@angular/common';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i5 from '@angular/forms';
|
|
6
6
|
import { FormsModule, NgForm } from '@angular/forms';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i1 from '@po-ui/ng-components';
|
|
8
8
|
import { poLocaleDefault, poLocales, PoI18nPipe, PoFieldModule, PoModalModule, PoIconModule, poLanguageDefault, PoDividerModule, PoLogoModule, PoModule, PoModalComponent, PoDynamicModule, PoPageModule, PoWidgetModule, PoButtonModule, PoGridModule, PoDynamicFormComponent, PoDynamicFieldType, PoPageListComponent, PoLanguageModule, PoTableColumnSpacing, PoTableColumnSortType, PoTableModule, PoStepperOrientation, PoInfoOrientation, PoStepperStatus, PoContainerModule, PoDialogModule, PoInfoModule, PoStepperModule } from '@po-ui/ng-components';
|
|
9
|
-
import * as i1$
|
|
9
|
+
import * as i1$2 from '@angular/router';
|
|
10
10
|
import { RouterModule } from '@angular/router';
|
|
11
|
-
import * as i1 from '@angular/common/http';
|
|
11
|
+
import * as i1$1 from '@angular/common/http';
|
|
12
12
|
import { HttpHeaders } from '@angular/common/http';
|
|
13
13
|
import { of, merge, throwError, from, EMPTY, concat, Observable, Subscription } from 'rxjs';
|
|
14
14
|
import { map, catchError, switchMap, tap } from 'rxjs/operators';
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
*
|
|
19
|
+
* Tamanhos da propriedade `p-components-size` para componentes de formulário no template. A medida `small` está
|
|
20
|
+
* disponível apenas para acessibilidade AA.
|
|
21
|
+
*/
|
|
22
|
+
var PoPageComponentsSize;
|
|
23
|
+
(function (PoPageComponentsSize) {
|
|
24
|
+
/** Aplica a medida `small` do componente. */
|
|
25
|
+
PoPageComponentsSize["Small"] = "small";
|
|
26
|
+
/** Aplica a medida `medium` do componente. */
|
|
27
|
+
PoPageComponentsSize["Medium"] = "medium";
|
|
28
|
+
})(PoPageComponentsSize || (PoPageComponentsSize = {}));
|
|
29
|
+
|
|
16
30
|
/**
|
|
17
31
|
* Retorna o idioma atual do navegador
|
|
18
32
|
*/
|
|
@@ -135,6 +149,12 @@ function formatYear(year) {
|
|
|
135
149
|
return `000${year}`;
|
|
136
150
|
}
|
|
137
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Retorna o tamanho padrão dos componentes conforme o nível de acessibilidade.
|
|
154
|
+
*/
|
|
155
|
+
function getDefaultSize(poThemeService) {
|
|
156
|
+
return poThemeService.getA11yDefaultSize() === 'small' ? PoPageComponentsSize.Small : PoPageComponentsSize.Medium;
|
|
157
|
+
}
|
|
138
158
|
function isEquals(value, comparedValue) {
|
|
139
159
|
return JSON.stringify(value) === JSON.stringify(comparedValue);
|
|
140
160
|
}
|
|
@@ -439,6 +459,52 @@ function sortArrayOfObjects(items, key, isAscendingOrder) {
|
|
|
439
459
|
}
|
|
440
460
|
});
|
|
441
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* Valida e retorna um tamanho permitido para os componentes, considerando a acessibilidade.
|
|
464
|
+
*/
|
|
465
|
+
function validateSize(value, poThemeService) {
|
|
466
|
+
if (value && Object.values(PoPageComponentsSize).includes(value)) {
|
|
467
|
+
if (value === PoPageComponentsSize.Small && poThemeService.getA11yLevel() !== 'AA') {
|
|
468
|
+
return PoPageComponentsSize.Medium;
|
|
469
|
+
}
|
|
470
|
+
return value;
|
|
471
|
+
}
|
|
472
|
+
return getDefaultSize(poThemeService);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @docsPrivate
|
|
477
|
+
*
|
|
478
|
+
* @description
|
|
479
|
+
*
|
|
480
|
+
* Enum para definição do tipo de conteúdo exibido na modal.
|
|
481
|
+
*/
|
|
482
|
+
var PoModalPasswordRecoveryModalContent;
|
|
483
|
+
(function (PoModalPasswordRecoveryModalContent) {
|
|
484
|
+
/** Exibição de modal contendo campo para preenchimento de email ou número de telefone */
|
|
485
|
+
PoModalPasswordRecoveryModalContent["Email"] = "email";
|
|
486
|
+
/** Exibição de modal contendo campo para inserção de código enviado por SMS */
|
|
487
|
+
PoModalPasswordRecoveryModalContent["SMSCode"] = "smsCode";
|
|
488
|
+
/** Exibição de modal de confirmação de envio */
|
|
489
|
+
PoModalPasswordRecoveryModalContent["Confirmation"] = "confirmation";
|
|
490
|
+
})(PoModalPasswordRecoveryModalContent || (PoModalPasswordRecoveryModalContent = {}));
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* @usedBy PoModalPasswordRecoveryComponent
|
|
494
|
+
*
|
|
495
|
+
* @description
|
|
496
|
+
*
|
|
497
|
+
* *Enum* para especificação do tipo de recuperação de senha.
|
|
498
|
+
*/
|
|
499
|
+
var PoModalPasswordRecoveryType;
|
|
500
|
+
(function (PoModalPasswordRecoveryType) {
|
|
501
|
+
/** Possibilita ao usuário optar por envio via email ou SMS */
|
|
502
|
+
PoModalPasswordRecoveryType["All"] = "all";
|
|
503
|
+
/** Definição para recuperação apenas por email */
|
|
504
|
+
PoModalPasswordRecoveryType["Email"] = "email";
|
|
505
|
+
/** Definição para recuperação apenas por SMS */
|
|
506
|
+
PoModalPasswordRecoveryType["SMS"] = "sms";
|
|
507
|
+
})(PoModalPasswordRecoveryType || (PoModalPasswordRecoveryType = {}));
|
|
442
508
|
|
|
443
509
|
const poModalPasswordRecoveryLiterals = {
|
|
444
510
|
en: {
|
|
@@ -559,23 +625,6 @@ const poModalPasswordRecoveryLiterals = {
|
|
|
559
625
|
}
|
|
560
626
|
};
|
|
561
627
|
|
|
562
|
-
/**
|
|
563
|
-
* @usedBy PoModalPasswordRecoveryComponent
|
|
564
|
-
*
|
|
565
|
-
* @description
|
|
566
|
-
*
|
|
567
|
-
* *Enum* para especificação do tipo de recuperação de senha.
|
|
568
|
-
*/
|
|
569
|
-
var PoModalPasswordRecoveryType;
|
|
570
|
-
(function (PoModalPasswordRecoveryType) {
|
|
571
|
-
/** Possibilita ao usuário optar por envio via email ou SMS */
|
|
572
|
-
PoModalPasswordRecoveryType["All"] = "all";
|
|
573
|
-
/** Definição para recuperação apenas por email */
|
|
574
|
-
PoModalPasswordRecoveryType["Email"] = "email";
|
|
575
|
-
/** Definição para recuperação apenas por SMS */
|
|
576
|
-
PoModalPasswordRecoveryType["SMS"] = "sms";
|
|
577
|
-
})(PoModalPasswordRecoveryType || (PoModalPasswordRecoveryType = {}));
|
|
578
|
-
|
|
579
628
|
const PoModalPasswordRecoveryDefaultMaxLength = 15;
|
|
580
629
|
const PoModalPasswordRecoveryDefaultMinLength = 15;
|
|
581
630
|
const PoModalPasswordRecoveryDefaultPhone = '(99) 99999-9999';
|
|
@@ -629,6 +678,7 @@ const PoModalPasswordRecoveryTypeDefault = PoModalPasswordRecoveryType.Email;
|
|
|
629
678
|
* ```
|
|
630
679
|
*/
|
|
631
680
|
class PoModalPasswordRecoveryBaseComponent {
|
|
681
|
+
poThemeService;
|
|
632
682
|
/**
|
|
633
683
|
* @optional
|
|
634
684
|
*
|
|
@@ -772,9 +822,30 @@ class PoModalPasswordRecoveryBaseComponent {
|
|
|
772
822
|
smsCode;
|
|
773
823
|
smsCodeErrorMessage;
|
|
774
824
|
literals = poModalPasswordRecoveryLiterals[poLocaleDefault];
|
|
825
|
+
_componentsSize;
|
|
775
826
|
_contactEmail;
|
|
776
827
|
_phoneMask = PoModalPasswordRecoveryDefaultPhone;
|
|
777
828
|
_type = PoModalPasswordRecoveryTypeDefault;
|
|
829
|
+
/**
|
|
830
|
+
* @optional
|
|
831
|
+
*
|
|
832
|
+
* @description
|
|
833
|
+
*
|
|
834
|
+
* Define o tamanho dos componentes de formulário no modal:
|
|
835
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
836
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
837
|
+
*
|
|
838
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
839
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
840
|
+
*
|
|
841
|
+
* @default `medium`
|
|
842
|
+
*/
|
|
843
|
+
set componentsSize(value) {
|
|
844
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
845
|
+
}
|
|
846
|
+
get componentsSize() {
|
|
847
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
848
|
+
}
|
|
778
849
|
/**
|
|
779
850
|
* @optional
|
|
780
851
|
*
|
|
@@ -823,7 +894,8 @@ class PoModalPasswordRecoveryBaseComponent {
|
|
|
823
894
|
get type() {
|
|
824
895
|
return this._type;
|
|
825
896
|
}
|
|
826
|
-
constructor(languageService) {
|
|
897
|
+
constructor(languageService, poThemeService) {
|
|
898
|
+
this.poThemeService = poThemeService;
|
|
827
899
|
this.literals = {
|
|
828
900
|
...this.literals,
|
|
829
901
|
...poModalPasswordRecoveryLiterals[languageService.getShortLanguage()]
|
|
@@ -835,12 +907,12 @@ class PoModalPasswordRecoveryBaseComponent {
|
|
|
835
907
|
? `${literalCodeErrorMessage} ${this.literals.prepositionIn} ${value}.`
|
|
836
908
|
: literalCodeErrorMessage;
|
|
837
909
|
}
|
|
838
|
-
static ɵfac = function PoModalPasswordRecoveryBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoModalPasswordRecoveryBaseComponent)(i0.ɵɵdirectiveInject(
|
|
839
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModalPasswordRecoveryBaseComponent, inputs: { codeError: [0, "p-code-error", "codeError"], urlRecovery: [0, "p-url-recovery", "urlRecovery"], contactEmail: [0, "p-contact-email", "contactEmail"], phoneMask: [0, "p-phone-mask", "phoneMask"], type: [0, "p-type", "type"] }, outputs: { codeSubmit: "p-code-submit", submit: "p-submit" } });
|
|
910
|
+
static ɵfac = function PoModalPasswordRecoveryBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoModalPasswordRecoveryBaseComponent)(i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
911
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModalPasswordRecoveryBaseComponent, inputs: { codeError: [0, "p-code-error", "codeError"], urlRecovery: [0, "p-url-recovery", "urlRecovery"], componentsSize: [0, "p-components-size", "componentsSize"], contactEmail: [0, "p-contact-email", "contactEmail"], phoneMask: [0, "p-phone-mask", "phoneMask"], type: [0, "p-type", "type"] }, outputs: { codeSubmit: "p-code-submit", submit: "p-submit" } });
|
|
840
912
|
}
|
|
841
913
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalPasswordRecoveryBaseComponent, [{
|
|
842
914
|
type: Directive
|
|
843
|
-
}], () => [{ type:
|
|
915
|
+
}], () => [{ type: i1.PoLanguageService }, { type: i1.PoThemeService }], { codeError: [{
|
|
844
916
|
type: Input,
|
|
845
917
|
args: ['p-code-error']
|
|
846
918
|
}], urlRecovery: [{
|
|
@@ -852,6 +924,9 @@ class PoModalPasswordRecoveryBaseComponent {
|
|
|
852
924
|
}], submit: [{
|
|
853
925
|
type: Output,
|
|
854
926
|
args: ['p-submit']
|
|
927
|
+
}], componentsSize: [{
|
|
928
|
+
type: Input,
|
|
929
|
+
args: ['p-components-size']
|
|
855
930
|
}], contactEmail: [{
|
|
856
931
|
type: Input,
|
|
857
932
|
args: ['p-contact-email']
|
|
@@ -863,23 +938,6 @@ class PoModalPasswordRecoveryBaseComponent {
|
|
|
863
938
|
args: ['p-type']
|
|
864
939
|
}] }); })();
|
|
865
940
|
|
|
866
|
-
/**
|
|
867
|
-
* @docsPrivate
|
|
868
|
-
*
|
|
869
|
-
* @description
|
|
870
|
-
*
|
|
871
|
-
* Enum para definição do tipo de conteúdo exibido na modal.
|
|
872
|
-
*/
|
|
873
|
-
var PoModalPasswordRecoveryModalContent;
|
|
874
|
-
(function (PoModalPasswordRecoveryModalContent) {
|
|
875
|
-
/** Exibição de modal contendo campo para preenchimento de email ou número de telefone */
|
|
876
|
-
PoModalPasswordRecoveryModalContent["Email"] = "email";
|
|
877
|
-
/** Exibição de modal contendo campo para inserção de código enviado por SMS */
|
|
878
|
-
PoModalPasswordRecoveryModalContent["SMSCode"] = "smsCode";
|
|
879
|
-
/** Exibição de modal de confirmação de envio */
|
|
880
|
-
PoModalPasswordRecoveryModalContent["Confirmation"] = "confirmation";
|
|
881
|
-
})(PoModalPasswordRecoveryModalContent || (PoModalPasswordRecoveryModalContent = {}));
|
|
882
|
-
|
|
883
941
|
class PoModalPasswordRecoveryService {
|
|
884
942
|
http;
|
|
885
943
|
constructor(http) {
|
|
@@ -888,7 +946,7 @@ class PoModalPasswordRecoveryService {
|
|
|
888
946
|
post(urlRecovery, item, params) {
|
|
889
947
|
return this.http.post(urlRecovery, item, { observe: 'response', params: params });
|
|
890
948
|
}
|
|
891
|
-
static ɵfac = function PoModalPasswordRecoveryService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoModalPasswordRecoveryService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
949
|
+
static ɵfac = function PoModalPasswordRecoveryService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoModalPasswordRecoveryService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
892
950
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoModalPasswordRecoveryService, factory: PoModalPasswordRecoveryService.ɵfac, providedIn: 'root' });
|
|
893
951
|
}
|
|
894
952
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalPasswordRecoveryService, [{
|
|
@@ -896,7 +954,7 @@ class PoModalPasswordRecoveryService {
|
|
|
896
954
|
args: [{
|
|
897
955
|
providedIn: 'root'
|
|
898
956
|
}]
|
|
899
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
957
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
900
958
|
|
|
901
959
|
/**
|
|
902
960
|
* @docsPrivate
|
|
@@ -918,7 +976,7 @@ class PoModalPasswordRecoveryErrorMessageComponent {
|
|
|
918
976
|
} if (rf & 2) {
|
|
919
977
|
i0.ɵɵadvance(3);
|
|
920
978
|
i0.ɵɵtextInterpolate(ctx.text);
|
|
921
|
-
} }, dependencies: [
|
|
979
|
+
} }, dependencies: [i1.PoIconComponent], encapsulation: 2 });
|
|
922
980
|
}
|
|
923
981
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalPasswordRecoveryErrorMessageComponent, [{
|
|
924
982
|
type: Component,
|
|
@@ -942,7 +1000,7 @@ function PoModalPasswordRecoveryComponent_div_3_div_6_Template(rf, ctx) { if (rf
|
|
|
942
1000
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
943
1001
|
i0.ɵɵadvance();
|
|
944
1002
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.chosenTypeFormOption);
|
|
945
|
-
i0.ɵɵproperty("p-options", ctx_r1.typeFormOptions);
|
|
1003
|
+
i0.ɵɵproperty("p-options", ctx_r1.typeFormOptions)("p-size", ctx_r1.componentsSize);
|
|
946
1004
|
} }
|
|
947
1005
|
function PoModalPasswordRecoveryComponent_div_3_po_email_8_Template(rf, ctx) { if (rf & 1) {
|
|
948
1006
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -953,7 +1011,7 @@ function PoModalPasswordRecoveryComponent_div_3_po_email_8_Template(rf, ctx) { i
|
|
|
953
1011
|
} if (rf & 2) {
|
|
954
1012
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
955
1013
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.email);
|
|
956
|
-
i0.ɵɵproperty("p-label", ctx_r1.literals.insertEmail);
|
|
1014
|
+
i0.ɵɵproperty("p-label", ctx_r1.literals.insertEmail)("p-size", ctx_r1.componentsSize);
|
|
957
1015
|
} }
|
|
958
1016
|
function PoModalPasswordRecoveryComponent_div_3_po_input_9_Template(rf, ctx) { if (rf & 1) {
|
|
959
1017
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -964,7 +1022,7 @@ function PoModalPasswordRecoveryComponent_div_3_po_input_9_Template(rf, ctx) { i
|
|
|
964
1022
|
} if (rf & 2) {
|
|
965
1023
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
966
1024
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.phone);
|
|
967
|
-
i0.ɵɵproperty("p-label", ctx_r1.literals.insertPhone)("p-mask", ctx_r1.phoneMask)("p-maxlength", ctx_r1.maxLength)("p-minlength", ctx_r1.minLength);
|
|
1025
|
+
i0.ɵɵproperty("p-label", ctx_r1.literals.insertPhone)("p-mask", ctx_r1.phoneMask)("p-maxlength", ctx_r1.maxLength)("p-minlength", ctx_r1.minLength)("p-size", ctx_r1.componentsSize);
|
|
968
1026
|
} }
|
|
969
1027
|
function PoModalPasswordRecoveryComponent_div_3_po_modal_password_recovery_error_message_11_Template(rf, ctx) { if (rf & 1) {
|
|
970
1028
|
i0.ɵɵelement(0, "po-modal-password-recovery-error-message", 21);
|
|
@@ -992,9 +1050,9 @@ function PoModalPasswordRecoveryComponent_div_3_Template(rf, ctx) { if (rf & 1)
|
|
|
992
1050
|
i0.ɵɵtext(2);
|
|
993
1051
|
i0.ɵɵelementEnd();
|
|
994
1052
|
i0.ɵɵelementStart(3, "div", 10)(4, "form", null, 1);
|
|
995
|
-
i0.ɵɵtemplate(6, PoModalPasswordRecoveryComponent_div_3_div_6_Template, 2,
|
|
1053
|
+
i0.ɵɵtemplate(6, PoModalPasswordRecoveryComponent_div_3_div_6_Template, 2, 3, "div", 11);
|
|
996
1054
|
i0.ɵɵelementStart(7, "div", 12);
|
|
997
|
-
i0.ɵɵtemplate(8, PoModalPasswordRecoveryComponent_div_3_po_email_8_Template, 1,
|
|
1055
|
+
i0.ɵɵtemplate(8, PoModalPasswordRecoveryComponent_div_3_po_email_8_Template, 1, 3, "po-email", 13)(9, PoModalPasswordRecoveryComponent_div_3_po_input_9_Template, 1, 6, "po-input", 14);
|
|
998
1056
|
i0.ɵɵelementEnd();
|
|
999
1057
|
i0.ɵɵelementStart(10, "div", 15);
|
|
1000
1058
|
i0.ɵɵtemplate(11, PoModalPasswordRecoveryComponent_div_3_po_modal_password_recovery_error_message_11_Template, 1, 1, "po-modal-password-recovery-error-message", 16);
|
|
@@ -1059,7 +1117,7 @@ function PoModalPasswordRecoveryComponent_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
1059
1117
|
i0.ɵɵtextInterpolate(ctx_r1.literals.sentSmsCodePhrase);
|
|
1060
1118
|
i0.ɵɵadvance(4);
|
|
1061
1119
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.smsCode);
|
|
1062
|
-
i0.ɵɵproperty("p-label", ctx_r1.literals.insertCode)("p-mask", ctx_r1.codeMask);
|
|
1120
|
+
i0.ɵɵproperty("p-label", ctx_r1.literals.insertCode)("p-mask", ctx_r1.codeMask)("p-size", ctx_r1.componentsSize);
|
|
1063
1121
|
i0.ɵɵadvance(2);
|
|
1064
1122
|
i0.ɵɵproperty("ngIf", ctx_r1.invalidEmail);
|
|
1065
1123
|
i0.ɵɵadvance();
|
|
@@ -1104,6 +1162,7 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1104
1162
|
router;
|
|
1105
1163
|
poI18nPipe;
|
|
1106
1164
|
poModalPasswordRecoveryService;
|
|
1165
|
+
poThemeService;
|
|
1107
1166
|
emailForm;
|
|
1108
1167
|
recoveryModalElement;
|
|
1109
1168
|
smsCodeForm;
|
|
@@ -1130,11 +1189,12 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1130
1189
|
passwordRecoverySubscription;
|
|
1131
1190
|
smsBodyResponse;
|
|
1132
1191
|
smsCodeSubscription;
|
|
1133
|
-
constructor(router, poI18nPipe, poModalPasswordRecoveryService, poLanguageService) {
|
|
1134
|
-
super(poLanguageService);
|
|
1192
|
+
constructor(router, poI18nPipe, poModalPasswordRecoveryService, poThemeService, poLanguageService) {
|
|
1193
|
+
super(poLanguageService, poThemeService);
|
|
1135
1194
|
this.router = router;
|
|
1136
1195
|
this.poI18nPipe = poI18nPipe;
|
|
1137
1196
|
this.poModalPasswordRecoveryService = poModalPasswordRecoveryService;
|
|
1197
|
+
this.poThemeService = poThemeService;
|
|
1138
1198
|
}
|
|
1139
1199
|
ngOnDestroy() {
|
|
1140
1200
|
if (this.passwordRecoverySubscription) {
|
|
@@ -1175,12 +1235,12 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1175
1235
|
openConfirmation() {
|
|
1176
1236
|
this.modalTitle = this.literals.emailSentTitle;
|
|
1177
1237
|
this.modalType = PoModalPasswordRecoveryModalContent.Confirmation;
|
|
1178
|
-
this.setActions(this.cancelAction, this.literals.closeButton, this.submitAction, this.literals.resendEmailButton, false);
|
|
1238
|
+
this.setActions(this.cancelAction, this.literals.closeButton, this.submitAction, this.literals.resendEmailButton, this.componentsSize, false);
|
|
1179
1239
|
}
|
|
1180
1240
|
openSmsCode() {
|
|
1181
1241
|
this.modalTitle = this.literals.typeCodeTitle;
|
|
1182
1242
|
this.modalType = PoModalPasswordRecoveryModalContent.SMSCode;
|
|
1183
|
-
this.setActions(this.submitSmsCodeAction, this.literals.continueButton, this.cancelAction, this.literals.cancelButton, true);
|
|
1243
|
+
this.setActions(this.submitSmsCodeAction, this.literals.continueButton, this.cancelAction, this.literals.cancelButton, this.componentsSize, true);
|
|
1184
1244
|
setTimeout(() => {
|
|
1185
1245
|
this.control = this.smsCodeForm.controls['sms'];
|
|
1186
1246
|
this.formModelChangesCheck(this.smsCodeForm);
|
|
@@ -1257,18 +1317,19 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1257
1317
|
this.phone = undefined;
|
|
1258
1318
|
this.smsCode = undefined;
|
|
1259
1319
|
}
|
|
1260
|
-
setActions(primaryAction, primarylabel, secondaryAction, secondaryLabel, disabled) {
|
|
1320
|
+
setActions(primaryAction, primarylabel, secondaryAction, secondaryLabel, componentsSize, disabled) {
|
|
1261
1321
|
this.primaryAction.action = () => primaryAction.call(this);
|
|
1262
1322
|
this.primaryAction.label = primarylabel;
|
|
1263
1323
|
this.secondaryAction.action = () => secondaryAction.call(this);
|
|
1264
1324
|
this.secondaryAction.label = secondaryLabel;
|
|
1325
|
+
this.componentsSize = componentsSize;
|
|
1265
1326
|
this.primaryAction.disabled = disabled;
|
|
1266
1327
|
}
|
|
1267
1328
|
setEmailModalPhrasesAndActions() {
|
|
1268
1329
|
this.modalTitle = this.literals.forgotPasswordTitle;
|
|
1269
1330
|
this.pipeModalPhrases();
|
|
1270
1331
|
this.modalPasswordRecoveryTypeAll = this.type === PoModalPasswordRecoveryType.All;
|
|
1271
|
-
this.setActions(this.submitAction, this.literals.sendButton, this.cancelAction, this.literals.cancelButton, true);
|
|
1332
|
+
this.setActions(this.submitAction, this.literals.sendButton, this.cancelAction, this.literals.cancelButton, this.componentsSize, true);
|
|
1272
1333
|
}
|
|
1273
1334
|
setRequestEndpoint(urlValidationCode) {
|
|
1274
1335
|
const endpoint = urlValidationCode || 'validation';
|
|
@@ -1329,7 +1390,7 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1329
1390
|
this.openSmsCode();
|
|
1330
1391
|
});
|
|
1331
1392
|
}
|
|
1332
|
-
static ɵfac = function PoModalPasswordRecoveryComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoModalPasswordRecoveryComponent)(i0.ɵɵdirectiveInject(i1$
|
|
1393
|
+
static ɵfac = function PoModalPasswordRecoveryComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoModalPasswordRecoveryComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1.PoI18nPipe), i0.ɵɵdirectiveInject(PoModalPasswordRecoveryService), i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
1333
1394
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalPasswordRecoveryComponent, selectors: [["po-modal-password-recovery"]], viewQuery: function PoModalPasswordRecoveryComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1334
1395
|
i0.ɵɵviewQuery(_c0$9, 5);
|
|
1335
1396
|
i0.ɵɵviewQuery(_c1$6, 7);
|
|
@@ -1339,24 +1400,24 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1339
1400
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emailForm = _t.first);
|
|
1340
1401
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recoveryModalElement = _t.first);
|
|
1341
1402
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.smsCodeForm = _t.first);
|
|
1342
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars:
|
|
1403
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 8, consts: [["recoveryModal", ""], ["emailForm", "ngForm"], ["smsCodeModal", ""], ["smsCodeForm", "ngForm"], ["confirmationModal", ""], ["p-hide-close", "", "p-size", "auto", 3, "ngSwitch", "p-components-size", "p-primary-action", "p-secondary-action", "p-title"], [1, "po-modal-password-recovery-wrapper"], ["class", "po-modal-password-recovery-content po-row", 4, "ngSwitchCase"], [1, "po-modal-password-recovery-content", "po-row"], [1, "po-modal-password-recovery-text", "po-md-12", "po-mb-1"], [1, "po-mb-2", "po-md-12"], [4, "ngIf"], [1, "po-mt-1"], ["name", "email", "p-required", "", 3, "ngModel", "p-label", "p-size", "ngModelChange", "p-change-model", 4, "ngIf"], ["name", "sms", "p-icon", "ICON_TELEPHONE", "p-required", "", 3, "ngModel", "p-label", "p-mask", "p-maxlength", "p-minlength", "p-size", "ngModelChange", "p-change-model", 4, "ngIf"], [1, "po-field-container-bottom", "po-field-container-error-container"], [3, "p-text", 4, "ngIf"], [1, "po-modal-password-recovery-text", "po-md-12"], ["name", "type", 3, "ngModelChange", "p-change", "ngModel", "p-options", "p-size"], ["name", "email", "p-required", "", 3, "ngModelChange", "p-change-model", "ngModel", "p-label", "p-size"], ["name", "sms", "p-icon", "ICON_TELEPHONE", "p-required", "", 3, "ngModelChange", "p-change-model", "ngModel", "p-label", "p-mask", "p-maxlength", "p-minlength", "p-size"], [3, "p-text"], ["target", "_self", 1, "po-modal-password-recovery-link", 3, "href"], ["name", "sms", "p-maxlength", "11", "p-minlength", "11", "p-required", "", 3, "ngModelChange", "p-change-model", "ngModel", "p-label", "p-mask", "p-size"], [1, "po-modal-password-recovery-link", 3, "click"], ["src", "./assets/images/email-sent.svg", 1, "po-modal-password-recovery-user-image", "po-mb-2"], [1, "po-modal-password-recovery-text"]], template: function PoModalPasswordRecoveryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1343
1404
|
i0.ɵɵelementStart(0, "po-modal", 5, 0)(2, "div", 6);
|
|
1344
|
-
i0.ɵɵtemplate(3, PoModalPasswordRecoveryComponent_div_3_Template, 16, 8, "div", 7)(4, PoModalPasswordRecoveryComponent_div_4_Template, 15,
|
|
1405
|
+
i0.ɵɵtemplate(3, PoModalPasswordRecoveryComponent_div_3_Template, 16, 8, "div", 7)(4, PoModalPasswordRecoveryComponent_div_4_Template, 15, 9, "div", 7)(5, PoModalPasswordRecoveryComponent_div_5_Template, 5, 1, "div", 7);
|
|
1345
1406
|
i0.ɵɵelementEnd()();
|
|
1346
1407
|
} if (rf & 2) {
|
|
1347
|
-
i0.ɵɵproperty("ngSwitch", ctx.modalType)("p-primary-action", ctx.primaryAction)("p-secondary-action", ctx.secondaryAction)("p-title", ctx.modalTitle);
|
|
1408
|
+
i0.ɵɵproperty("ngSwitch", ctx.modalType)("p-components-size", ctx.componentsSize)("p-primary-action", ctx.primaryAction)("p-secondary-action", ctx.secondaryAction)("p-title", ctx.modalTitle);
|
|
1348
1409
|
i0.ɵɵadvance(3);
|
|
1349
1410
|
i0.ɵɵproperty("ngSwitchCase", "email");
|
|
1350
1411
|
i0.ɵɵadvance();
|
|
1351
1412
|
i0.ɵɵproperty("ngSwitchCase", "smsCode");
|
|
1352
1413
|
i0.ɵɵadvance();
|
|
1353
1414
|
i0.ɵɵproperty("ngSwitchCase", "confirmation");
|
|
1354
|
-
} }, dependencies: [i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm,
|
|
1415
|
+
} }, dependencies: [i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm, i1.PoRadioGroupComponent, i1.PoEmailComponent, i1.PoInputComponent, i1.PoModalComponent, PoModalPasswordRecoveryErrorMessageComponent], encapsulation: 2 });
|
|
1355
1416
|
}
|
|
1356
1417
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalPasswordRecoveryComponent, [{
|
|
1357
1418
|
type: Component,
|
|
1358
|
-
args: [{ selector: 'po-modal-password-recovery', standalone: false, template: "<po-modal\n #recoveryModal\n p-hide-close\n p-size=\"auto\"\n [ngSwitch]=\"modalType\"\n [p-primary-action]=\"primaryAction\"\n [p-secondary-action]=\"secondaryAction\"\n [p-title]=\"modalTitle\"\n>\n <div class=\"po-modal-password-recovery-wrapper\">\n <div *ngSwitchCase=\"'email'\" class=\"po-modal-password-recovery-content po-row\">\n <div class=\"po-modal-password-recovery-text po-md-12 po-mb-1\">\n {{ emailModalPhrases.firstPhrase }}\n </div>\n <div class=\"po-mb-2 po-md-12\">\n <form #emailForm=\"ngForm\">\n <div *ngIf=\"modalPasswordRecoveryTypeAll\">\n <po-radio-group\n name=\"type\"\n [(ngModel)]=\"chosenTypeFormOption\"\n [p-options]=\"typeFormOptions\"\n (p-change)=\"getInputType($event)\"\n >\n </po-radio-group>\n </div>\n\n <div class=\"po-mt-1\">\n <po-email\n *ngIf=\"type === 'email' || type === 'all'\"\n name=\"email\"\n [(ngModel)]=\"email\"\n p-required\n [p-label]=\"literals.insertEmail\"\n (p-change-model)=\"formModelChangesCheck(emailForm)\"\n >\n </po-email>\n\n <po-input\n *ngIf=\"type === 'sms'\"\n name=\"sms\"\n [(ngModel)]=\"phone\"\n p-icon=\"ICON_TELEPHONE\"\n p-required\n [p-label]=\"literals.insertPhone\"\n [p-mask]=\"phoneMask\"\n [p-maxlength]=\"maxLength\"\n [p-minlength]=\"minLength\"\n (p-change-model)=\"formModelChangesCheck(emailForm)\"\n >\n </po-input>\n </div>\n\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <po-modal-password-recovery-error-message\n *ngIf=\"invalidEmail && control.dirty\"\n [p-text]=\"type === 'sms' ? literals.phoneErrorMessagePhrase : literals.emailErrorMessagePhrase\"\n >\n </po-modal-password-recovery-error-message>\n </div>\n </form>\n </div>\n <div class=\"po-modal-password-recovery-text po-md-12\">\n {{ emailModalPhrases.secondPhrase }}\n <span *ngIf=\"contactEmail\">\n {{ literals.prepositionIn }}\n <a class=\"po-modal-password-recovery-link\" href=\"mailto:{{ contactEmail }}\" target=\"_self\">\n {{ contactEmail }}\n </a>\n </span>\n {{ endpoint }}\n </div>\n </div>\n\n <div #smsCodeModal *ngSwitchCase=\"'smsCode'\" class=\"po-modal-password-recovery-content po-row\">\n <div class=\"po-modal-password-recovery-text po-md-12 po-mb-1\">{{ literals.sentSmsCodePhrase }}</div>\n <div class=\"po-mb-2 po-md-12\">\n <form #smsCodeForm=\"ngForm\">\n <po-input\n name=\"sms\"\n [(ngModel)]=\"smsCode\"\n p-maxlength=\"11\"\n p-minlength=\"11\"\n p-required\n [p-label]=\"literals.insertCode\"\n [p-mask]=\"codeMask\"\n (p-change-model)=\"formModelChangesCheck(smsCodeForm)\"\n >\n </po-input>\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <po-modal-password-recovery-error-message\n *ngIf=\"invalidEmail\"\n [p-text]=\"smsCodeErrorMessage || this.literals.smsCodeErrorMessagePhrase\"\n >\n </po-modal-password-recovery-error-message>\n <po-modal-password-recovery-error-message *ngIf=\"showCustomCodeError\" [p-text]=\"codeError\">\n </po-modal-password-recovery-error-message>\n </div>\n </form>\n </div>\n <div class=\"po-modal-password-recovery-text po-md-12\">\n {{ literals.sendAgainPhrase }}\n <span class=\"po-modal-password-recovery-link\" (click)=\"resendSmsCode()\">{{ literals.sendAgain }}</span>\n </div>\n </div>\n\n <div #confirmationModal *ngSwitchCase=\"'confirmation'\" class=\"po-modal-password-recovery-content po-row\">\n <img class=\"po-modal-password-recovery-user-image po-mb-2\" src=\"./assets/images/email-sent.svg\" />\n <div class=\"po-modal-password-recovery-text\">\n {{ literals.emailSentConfirmationPhrase }}\n </div>\n </div>\n </div>\n</po-modal>\n" }]
|
|
1359
|
-
}], () => [{ type: i1$
|
|
1419
|
+
args: [{ selector: 'po-modal-password-recovery', standalone: false, template: "<po-modal\n #recoveryModal\n p-hide-close\n p-size=\"auto\"\n [ngSwitch]=\"modalType\"\n [p-components-size]=\"componentsSize\"\n [p-primary-action]=\"primaryAction\"\n [p-secondary-action]=\"secondaryAction\"\n [p-title]=\"modalTitle\"\n>\n <div class=\"po-modal-password-recovery-wrapper\">\n <div *ngSwitchCase=\"'email'\" class=\"po-modal-password-recovery-content po-row\">\n <div class=\"po-modal-password-recovery-text po-md-12 po-mb-1\">\n {{ emailModalPhrases.firstPhrase }}\n </div>\n <div class=\"po-mb-2 po-md-12\">\n <form #emailForm=\"ngForm\">\n <div *ngIf=\"modalPasswordRecoveryTypeAll\">\n <po-radio-group\n name=\"type\"\n [(ngModel)]=\"chosenTypeFormOption\"\n [p-options]=\"typeFormOptions\"\n [p-size]=\"componentsSize\"\n (p-change)=\"getInputType($event)\"\n >\n </po-radio-group>\n </div>\n\n <div class=\"po-mt-1\">\n <po-email\n *ngIf=\"type === 'email' || type === 'all'\"\n name=\"email\"\n [(ngModel)]=\"email\"\n p-required\n [p-label]=\"literals.insertEmail\"\n [p-size]=\"componentsSize\"\n (p-change-model)=\"formModelChangesCheck(emailForm)\"\n >\n </po-email>\n\n <po-input\n *ngIf=\"type === 'sms'\"\n name=\"sms\"\n [(ngModel)]=\"phone\"\n p-icon=\"ICON_TELEPHONE\"\n p-required\n [p-label]=\"literals.insertPhone\"\n [p-mask]=\"phoneMask\"\n [p-maxlength]=\"maxLength\"\n [p-minlength]=\"minLength\"\n [p-size]=\"componentsSize\"\n (p-change-model)=\"formModelChangesCheck(emailForm)\"\n >\n </po-input>\n </div>\n\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <po-modal-password-recovery-error-message\n *ngIf=\"invalidEmail && control.dirty\"\n [p-text]=\"type === 'sms' ? literals.phoneErrorMessagePhrase : literals.emailErrorMessagePhrase\"\n >\n </po-modal-password-recovery-error-message>\n </div>\n </form>\n </div>\n <div class=\"po-modal-password-recovery-text po-md-12\">\n {{ emailModalPhrases.secondPhrase }}\n <span *ngIf=\"contactEmail\">\n {{ literals.prepositionIn }}\n <a class=\"po-modal-password-recovery-link\" href=\"mailto:{{ contactEmail }}\" target=\"_self\">\n {{ contactEmail }}\n </a>\n </span>\n {{ endpoint }}\n </div>\n </div>\n\n <div #smsCodeModal *ngSwitchCase=\"'smsCode'\" class=\"po-modal-password-recovery-content po-row\">\n <div class=\"po-modal-password-recovery-text po-md-12 po-mb-1\">{{ literals.sentSmsCodePhrase }}</div>\n <div class=\"po-mb-2 po-md-12\">\n <form #smsCodeForm=\"ngForm\">\n <po-input\n name=\"sms\"\n [(ngModel)]=\"smsCode\"\n p-maxlength=\"11\"\n p-minlength=\"11\"\n p-required\n [p-label]=\"literals.insertCode\"\n [p-mask]=\"codeMask\"\n [p-size]=\"componentsSize\"\n (p-change-model)=\"formModelChangesCheck(smsCodeForm)\"\n >\n </po-input>\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <po-modal-password-recovery-error-message\n *ngIf=\"invalidEmail\"\n [p-text]=\"smsCodeErrorMessage || this.literals.smsCodeErrorMessagePhrase\"\n >\n </po-modal-password-recovery-error-message>\n <po-modal-password-recovery-error-message *ngIf=\"showCustomCodeError\" [p-text]=\"codeError\">\n </po-modal-password-recovery-error-message>\n </div>\n </form>\n </div>\n <div class=\"po-modal-password-recovery-text po-md-12\">\n {{ literals.sendAgainPhrase }}\n <span class=\"po-modal-password-recovery-link\" (click)=\"resendSmsCode()\">{{ literals.sendAgain }}</span>\n </div>\n </div>\n\n <div #confirmationModal *ngSwitchCase=\"'confirmation'\" class=\"po-modal-password-recovery-content po-row\">\n <img class=\"po-modal-password-recovery-user-image po-mb-2\" src=\"./assets/images/email-sent.svg\" />\n <div class=\"po-modal-password-recovery-text\">\n {{ literals.emailSentConfirmationPhrase }}\n </div>\n </div>\n </div>\n</po-modal>\n" }]
|
|
1420
|
+
}], () => [{ type: i1$2.Router }, { type: i1.PoI18nPipe }, { type: PoModalPasswordRecoveryService }, { type: i1.PoThemeService }, { type: i1.PoLanguageService }], { emailForm: [{
|
|
1360
1421
|
type: ViewChild,
|
|
1361
1422
|
args: ['emailForm']
|
|
1362
1423
|
}], recoveryModalElement: [{
|
|
@@ -1366,7 +1427,7 @@ class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseCompon
|
|
|
1366
1427
|
type: ViewChild,
|
|
1367
1428
|
args: ['smsCodeForm']
|
|
1368
1429
|
}] }); })();
|
|
1369
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoModalPasswordRecoveryComponent, { className: "PoModalPasswordRecoveryComponent", filePath: "lib/components/po-modal-password-recovery/po-modal-password-recovery.component.ts", lineNumber:
|
|
1430
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoModalPasswordRecoveryComponent, { className: "PoModalPasswordRecoveryComponent", filePath: "lib/components/po-modal-password-recovery/po-modal-password-recovery.component.ts", lineNumber: 49 }); })();
|
|
1370
1431
|
|
|
1371
1432
|
/**
|
|
1372
1433
|
* @description
|
|
@@ -1406,7 +1467,7 @@ function PoPageBackgroundComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
1406
1467
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1407
1468
|
i0.ɵɵadvance();
|
|
1408
1469
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.selectedLanguageOption);
|
|
1409
|
-
i0.ɵɵproperty("p-options", ctx_r0.selectLanguageOptions);
|
|
1470
|
+
i0.ɵɵproperty("p-options", ctx_r0.selectLanguageOptions)("p-size", ctx_r0.componentsSize);
|
|
1410
1471
|
} }
|
|
1411
1472
|
function PoPageBackgroundComponent_po_logo_12_Template(rf, ctx) { if (rf & 1) {
|
|
1412
1473
|
i0.ɵɵelement(0, "po-logo", 16);
|
|
@@ -1435,6 +1496,7 @@ function PoPageBackgroundComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
1435
1496
|
*/
|
|
1436
1497
|
class PoPageBackgroundComponent {
|
|
1437
1498
|
poLanguageService;
|
|
1499
|
+
poThemeService;
|
|
1438
1500
|
/** Insere uma imagem de destaque ao lado direito do container. */
|
|
1439
1501
|
background;
|
|
1440
1502
|
/** Idioma inicial selecionado no combo */
|
|
@@ -1453,9 +1515,30 @@ class PoPageBackgroundComponent {
|
|
|
1453
1515
|
*/
|
|
1454
1516
|
selectedLanguage = new EventEmitter();
|
|
1455
1517
|
selectedLanguageOption;
|
|
1518
|
+
_componentsSize = undefined;
|
|
1456
1519
|
_showSelectLanguage = false;
|
|
1457
1520
|
_languagesList;
|
|
1458
1521
|
_selectLanguageOptions;
|
|
1522
|
+
/**
|
|
1523
|
+
* @optional
|
|
1524
|
+
*
|
|
1525
|
+
* @description
|
|
1526
|
+
*
|
|
1527
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
1528
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
1529
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
1530
|
+
*
|
|
1531
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
1532
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
1533
|
+
*
|
|
1534
|
+
* @default `medium`
|
|
1535
|
+
*/
|
|
1536
|
+
set componentsSize(value) {
|
|
1537
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
1538
|
+
}
|
|
1539
|
+
get componentsSize() {
|
|
1540
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
1541
|
+
}
|
|
1459
1542
|
/** Lista de idiomas para o combo box */
|
|
1460
1543
|
set languagesList(value) {
|
|
1461
1544
|
this._languagesList = value;
|
|
@@ -1486,8 +1569,9 @@ class PoPageBackgroundComponent {
|
|
|
1486
1569
|
get showSelectLanguage() {
|
|
1487
1570
|
return this._showSelectLanguage;
|
|
1488
1571
|
}
|
|
1489
|
-
constructor(poLanguageService) {
|
|
1572
|
+
constructor(poLanguageService, poThemeService) {
|
|
1490
1573
|
this.poLanguageService = poLanguageService;
|
|
1574
|
+
this.poThemeService = poThemeService;
|
|
1491
1575
|
}
|
|
1492
1576
|
ngOnInit() {
|
|
1493
1577
|
this.selectedLanguageOption = this.initialSelectLanguage || this.poLanguageService.getShortLanguage();
|
|
@@ -1504,8 +1588,8 @@ class PoPageBackgroundComponent {
|
|
|
1504
1588
|
value: language.language
|
|
1505
1589
|
}));
|
|
1506
1590
|
}
|
|
1507
|
-
static ɵfac = function PoPageBackgroundComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBackgroundComponent)(i0.ɵɵdirectiveInject(
|
|
1508
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageBackgroundComponent, selectors: [["po-page-background"]], inputs: { background: [0, "p-background", "background"], initialSelectLanguage: [0, "p-initial-language", "initialSelectLanguage"], hideLogo: [0, "p-hide-logo", "hideLogo"], highlightInfo: [0, "p-highlight-info", "highlightInfo"], languagesList: [0, "p-languages", "languagesList"], logo: [0, "p-logo", "logo"], logoAlt: [0, "p-logo-alt", "logoAlt"], secondaryLogo: [0, "p-secondary-logo", "secondaryLogo"], showSelectLanguage: [0, "p-show-select-language", "showSelectLanguage"] }, outputs: { selectedLanguage: "p-selected-language" }, standalone: false, ngContentSelectors: _c0$8, decls: 14, vars: 7, consts: [[1, "po-page-login-container"], [1, "po-page-login-panel"], [1, "po-page-background-main-logo"], ["p-class", "po-page-background-main-logo-image", 3, "p-link", "p-logo", "p-logo-alt", 4, "ngIf"], [1, "po-page-login-body"], [1, "po-page-login-panel-content"], [1, "po-page-background-footer", "po-sm-12"], [1, "po-page-background-footer-mobile-only"], [1, "po-page-background-footer-content"], ["class", "po-page-background-footer-select", 4, "ngIf"], [1, "po-page-background-secondary-logo", 3, "ngClass"], ["p-class", "po-page-background-secondary-logo-image", "p-logo-alt", "secondary-logomarca", 3, "p-link", "p-logo", 4, "ngIf"], [3, "ngClass", "background-image", 4, "ngIf"], ["p-class", "po-page-background-main-logo-image", 3, "p-link", "p-logo", "p-logo-alt"], [1, "po-page-background-footer-select"], ["name", "selectedLanguageOption", 3, "ngModelChange", "p-change", "ngModel", "p-options"], ["p-class", "po-page-background-secondary-logo-image", "p-logo-alt", "secondary-logomarca", 3, "p-link", "p-logo"], [3, "ngClass"], [1, "po-page-login-highlight-text"], [1, "po-font-display"]], template: function PoPageBackgroundComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1591
|
+
static ɵfac = function PoPageBackgroundComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBackgroundComponent)(i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
1592
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageBackgroundComponent, selectors: [["po-page-background"]], inputs: { background: [0, "p-background", "background"], initialSelectLanguage: [0, "p-initial-language", "initialSelectLanguage"], hideLogo: [0, "p-hide-logo", "hideLogo"], highlightInfo: [0, "p-highlight-info", "highlightInfo"], componentsSize: [0, "p-components-size", "componentsSize"], languagesList: [0, "p-languages", "languagesList"], logo: [0, "p-logo", "logo"], logoAlt: [0, "p-logo-alt", "logoAlt"], secondaryLogo: [0, "p-secondary-logo", "secondaryLogo"], showSelectLanguage: [0, "p-show-select-language", "showSelectLanguage"] }, outputs: { selectedLanguage: "p-selected-language" }, standalone: false, ngContentSelectors: _c0$8, decls: 14, vars: 7, consts: [[1, "po-page-login-container"], [1, "po-page-login-panel"], [1, "po-page-background-main-logo"], ["p-class", "po-page-background-main-logo-image", 3, "p-link", "p-logo", "p-logo-alt", 4, "ngIf"], [1, "po-page-login-body"], [1, "po-page-login-panel-content"], [1, "po-page-background-footer", "po-sm-12"], [1, "po-page-background-footer-mobile-only"], [1, "po-page-background-footer-content"], ["class", "po-page-background-footer-select", 4, "ngIf"], [1, "po-page-background-secondary-logo", 3, "ngClass"], ["p-class", "po-page-background-secondary-logo-image", "p-logo-alt", "secondary-logomarca", 3, "p-link", "p-logo", 4, "ngIf"], [3, "ngClass", "background-image", 4, "ngIf"], ["p-class", "po-page-background-main-logo-image", 3, "p-link", "p-logo", "p-logo-alt"], [1, "po-page-background-footer-select"], ["name", "selectedLanguageOption", 3, "ngModelChange", "p-change", "ngModel", "p-options", "p-size"], ["p-class", "po-page-background-secondary-logo-image", "p-logo-alt", "secondary-logomarca", 3, "p-link", "p-logo"], [3, "ngClass"], [1, "po-page-login-highlight-text"], [1, "po-font-display"]], template: function PoPageBackgroundComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1509
1593
|
i0.ɵɵprojectionDef();
|
|
1510
1594
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
1511
1595
|
i0.ɵɵtemplate(3, PoPageBackgroundComponent_po_logo_3_Template, 1, 3, "po-logo", 3);
|
|
@@ -1516,7 +1600,7 @@ class PoPageBackgroundComponent {
|
|
|
1516
1600
|
i0.ɵɵelementStart(7, "div", 6);
|
|
1517
1601
|
i0.ɵɵelement(8, "po-divider", 7);
|
|
1518
1602
|
i0.ɵɵelementStart(9, "div", 8);
|
|
1519
|
-
i0.ɵɵtemplate(10, PoPageBackgroundComponent_div_10_Template, 2,
|
|
1603
|
+
i0.ɵɵtemplate(10, PoPageBackgroundComponent_div_10_Template, 2, 3, "div", 9);
|
|
1520
1604
|
i0.ɵɵelementStart(11, "div", 10);
|
|
1521
1605
|
i0.ɵɵtemplate(12, PoPageBackgroundComponent_po_logo_12_Template, 1, 2, "po-logo", 11);
|
|
1522
1606
|
i0.ɵɵelementEnd()()()();
|
|
@@ -1535,12 +1619,12 @@ class PoPageBackgroundComponent {
|
|
|
1535
1619
|
i0.ɵɵproperty("ngIf", ctx.secondaryLogo);
|
|
1536
1620
|
i0.ɵɵadvance();
|
|
1537
1621
|
i0.ɵɵproperty("ngIf", ctx.background);
|
|
1538
|
-
} }, dependencies: [i4.NgClass, i4.NgIf, i5.NgControlStatus, i5.NgModel,
|
|
1622
|
+
} }, dependencies: [i4.NgClass, i4.NgIf, i5.NgControlStatus, i5.NgModel, i1.PoDividerComponent, i1.PoSelectComponent, i1.PoLogoComponent], encapsulation: 2 });
|
|
1539
1623
|
}
|
|
1540
1624
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageBackgroundComponent, [{
|
|
1541
1625
|
type: Component,
|
|
1542
|
-
args: [{ selector: 'po-page-background', standalone: false, template: "<div class=\"po-page-login-container\">\n <div class=\"po-page-login-panel\">\n <div class=\"po-page-background-main-logo\" [class.po-page-background-hide-logo]=\"hideLogo\">\n <po-logo\n *ngIf=\"logo\"\n p-class=\"po-page-background-main-logo-image\"\n [p-link]=\"false\"\n [p-logo]=\"logo\"\n [p-logo-alt]=\"logoAlt\"\n ></po-logo>\n </div>\n\n <div class=\"po-page-login-body\">\n <div class=\"po-page-login-panel-content\">\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"po-page-background-footer po-sm-12\">\n <po-divider class=\"po-page-background-footer-mobile-only\"></po-divider>\n\n <div class=\"po-page-background-footer-content\">\n <div *ngIf=\"showSelectLanguage\" class=\"po-page-background-footer-select\">\n <po-select\n name=\"selectedLanguageOption\"\n [(ngModel)]=\"selectedLanguageOption\"\n [p-options]=\"selectLanguageOptions\"\n (p-change)=\"onChangeLanguage()\"\n ></po-select>\n </div>\n\n <div\n class=\"po-page-background-secondary-logo\"\n [ngClass]=\"\n showSelectLanguage\n ? 'po-page-background-secondary-logo-right'\n : 'po-page-background-secondary-logo-centered'\n \"\n >\n <po-logo\n *ngIf=\"secondaryLogo\"\n p-class=\"po-page-background-secondary-logo-image\"\n [p-link]=\"false\"\n [p-logo]=\"secondaryLogo\"\n p-logo-alt=\"secondary-logomarca\"\n ></po-logo>\n </div>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"background\"\n [ngClass]=\"background ? 'po-page-login-highlight-image' : 'po-page-login-highlight-image-off'\"\n [style.background-image]=\"'url(' + background + ')'\"\n >\n <div class=\"po-page-login-highlight-text\">\n <div class=\"po-font-display\">{{ highlightInfo }}</div>\n </div>\n </div>\n</div>\n" }]
|
|
1543
|
-
}], () => [{ type:
|
|
1626
|
+
args: [{ selector: 'po-page-background', standalone: false, template: "<div class=\"po-page-login-container\">\n <div class=\"po-page-login-panel\">\n <div class=\"po-page-background-main-logo\" [class.po-page-background-hide-logo]=\"hideLogo\">\n <po-logo\n *ngIf=\"logo\"\n p-class=\"po-page-background-main-logo-image\"\n [p-link]=\"false\"\n [p-logo]=\"logo\"\n [p-logo-alt]=\"logoAlt\"\n ></po-logo>\n </div>\n\n <div class=\"po-page-login-body\">\n <div class=\"po-page-login-panel-content\">\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"po-page-background-footer po-sm-12\">\n <po-divider class=\"po-page-background-footer-mobile-only\"></po-divider>\n\n <div class=\"po-page-background-footer-content\">\n <div *ngIf=\"showSelectLanguage\" class=\"po-page-background-footer-select\">\n <po-select\n name=\"selectedLanguageOption\"\n [(ngModel)]=\"selectedLanguageOption\"\n [p-options]=\"selectLanguageOptions\"\n [p-size]=\"componentsSize\"\n (p-change)=\"onChangeLanguage()\"\n ></po-select>\n </div>\n\n <div\n class=\"po-page-background-secondary-logo\"\n [ngClass]=\"\n showSelectLanguage\n ? 'po-page-background-secondary-logo-right'\n : 'po-page-background-secondary-logo-centered'\n \"\n >\n <po-logo\n *ngIf=\"secondaryLogo\"\n p-class=\"po-page-background-secondary-logo-image\"\n [p-link]=\"false\"\n [p-logo]=\"secondaryLogo\"\n p-logo-alt=\"secondary-logomarca\"\n ></po-logo>\n </div>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"background\"\n [ngClass]=\"background ? 'po-page-login-highlight-image' : 'po-page-login-highlight-image-off'\"\n [style.background-image]=\"'url(' + background + ')'\"\n >\n <div class=\"po-page-login-highlight-text\">\n <div class=\"po-font-display\">{{ highlightInfo }}</div>\n </div>\n </div>\n</div>\n" }]
|
|
1627
|
+
}], () => [{ type: i1.PoLanguageService }, { type: i1.PoThemeService }], { background: [{
|
|
1544
1628
|
type: Input,
|
|
1545
1629
|
args: ['p-background']
|
|
1546
1630
|
}], initialSelectLanguage: [{
|
|
@@ -1555,6 +1639,9 @@ class PoPageBackgroundComponent {
|
|
|
1555
1639
|
}], selectedLanguage: [{
|
|
1556
1640
|
type: Output,
|
|
1557
1641
|
args: ['p-selected-language']
|
|
1642
|
+
}], componentsSize: [{
|
|
1643
|
+
type: Input,
|
|
1644
|
+
args: ['p-components-size']
|
|
1558
1645
|
}], languagesList: [{
|
|
1559
1646
|
type: Input,
|
|
1560
1647
|
args: ['p-languages']
|
|
@@ -1673,6 +1760,7 @@ const PoPageBlockedUserParamsDefault = { attempts: 5, days: 90, hours: 24 };
|
|
|
1673
1760
|
*
|
|
1674
1761
|
*/
|
|
1675
1762
|
class PoPageBlockedUserBaseComponent {
|
|
1763
|
+
poThemeService;
|
|
1676
1764
|
/**
|
|
1677
1765
|
* @optional
|
|
1678
1766
|
*
|
|
@@ -1702,9 +1790,30 @@ class PoPageBlockedUserBaseComponent {
|
|
|
1702
1790
|
* Caminho para a logomarca localizada no rodapé.
|
|
1703
1791
|
*/
|
|
1704
1792
|
secondaryLogo;
|
|
1793
|
+
_componentsSize = undefined;
|
|
1705
1794
|
_params = { ...PoPageBlockedUserParamsDefault };
|
|
1706
1795
|
_reason = PoPageBlockedUserReason.None;
|
|
1707
1796
|
_urlBack = '/';
|
|
1797
|
+
/**
|
|
1798
|
+
* @optional
|
|
1799
|
+
*
|
|
1800
|
+
* @description
|
|
1801
|
+
*
|
|
1802
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
1803
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
1804
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
1805
|
+
*
|
|
1806
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
1807
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
1808
|
+
*
|
|
1809
|
+
* @default `medium`
|
|
1810
|
+
*/
|
|
1811
|
+
set componentsSize(value) {
|
|
1812
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
1813
|
+
}
|
|
1814
|
+
get componentsSize() {
|
|
1815
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
1816
|
+
}
|
|
1708
1817
|
/**
|
|
1709
1818
|
* @optional
|
|
1710
1819
|
*
|
|
@@ -1776,12 +1885,15 @@ class PoPageBlockedUserBaseComponent {
|
|
|
1776
1885
|
get urlBack() {
|
|
1777
1886
|
return this._urlBack;
|
|
1778
1887
|
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1888
|
+
constructor(poThemeService) {
|
|
1889
|
+
this.poThemeService = poThemeService;
|
|
1890
|
+
}
|
|
1891
|
+
static ɵfac = function PoPageBlockedUserBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBlockedUserBaseComponent)(i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
1892
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageBlockedUserBaseComponent, inputs: { contactEmail: [0, "p-contact-email", "contactEmail"], contactPhone: [0, "p-contact-phone", "contactPhone"], logo: [0, "p-logo", "logo"], secondaryLogo: [0, "p-secondary-logo", "secondaryLogo"], componentsSize: [0, "p-components-size", "componentsSize"], params: [0, "p-params", "params"], reason: [0, "p-reason", "reason"], urlBack: [0, "p-url-back", "urlBack"] } });
|
|
1781
1893
|
}
|
|
1782
1894
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageBlockedUserBaseComponent, [{
|
|
1783
1895
|
type: Directive
|
|
1784
|
-
}],
|
|
1896
|
+
}], () => [{ type: i1.PoThemeService }], { contactEmail: [{
|
|
1785
1897
|
type: Input,
|
|
1786
1898
|
args: ['p-contact-email']
|
|
1787
1899
|
}], contactPhone: [{
|
|
@@ -1793,6 +1905,9 @@ class PoPageBlockedUserBaseComponent {
|
|
|
1793
1905
|
}], secondaryLogo: [{
|
|
1794
1906
|
type: Input,
|
|
1795
1907
|
args: ['p-secondary-logo']
|
|
1908
|
+
}], componentsSize: [{
|
|
1909
|
+
type: Input,
|
|
1910
|
+
args: ['p-components-size']
|
|
1796
1911
|
}], params: [{
|
|
1797
1912
|
type: Input,
|
|
1798
1913
|
args: ['p-params']
|
|
@@ -1882,7 +1997,7 @@ class PoPageBlockedUserContactsComponent {
|
|
|
1882
1997
|
i0.ɵɵpropertyInterpolate1("href", "mailto:", ctx.email, "", i0.ɵɵsanitizeUrl);
|
|
1883
1998
|
i0.ɵɵadvance(5);
|
|
1884
1999
|
i0.ɵɵtextInterpolate(ctx.email);
|
|
1885
|
-
} }, dependencies: [i4.NgClass,
|
|
2000
|
+
} }, dependencies: [i4.NgClass, i1.PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
1886
2001
|
}
|
|
1887
2002
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageBlockedUserContactsComponent, [{
|
|
1888
2003
|
type: Component,
|
|
@@ -2043,7 +2158,7 @@ class PoPageBlockedUserReasonComponent {
|
|
|
2043
2158
|
};
|
|
2044
2159
|
this.changeDetector.detectChanges();
|
|
2045
2160
|
}
|
|
2046
|
-
static ɵfac = function PoPageBlockedUserReasonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBlockedUserReasonComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(
|
|
2161
|
+
static ɵfac = function PoPageBlockedUserReasonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBlockedUserReasonComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
2047
2162
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageBlockedUserReasonComponent, selectors: [["po-page-blocked-user-reason"]], inputs: { params: [0, "p-params", "params"], reason: [0, "p-reason", "reason"] }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 12, vars: 8, consts: [[1, "po-page-blocked-user-reason-content"], [1, "po-page-blocked-user-image", "po-mb-3", 3, "src"], [1, "po-page-blocked-user-header", "po-mb-md-3", "po-row"], [1, "po-md-12"], [1, "po-page-blocked-user-text", "po-font-text", "po-row"], [1, "po-mb-sm-2", "po-mb-md-3", "po-md-12", "po-page-blocked-user-text-bold"], [1, "po-mb-sm-2", "po-mb-md-3", "po-md-12"], ["class", "po-mb-sm-2 po-mb-md-3 po-md-12", 4, "ngIf"]], template: function PoPageBlockedUserReasonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2048
2163
|
i0.ɵɵelementStart(0, "div", 0);
|
|
2049
2164
|
i0.ɵɵelement(1, "img", 1);
|
|
@@ -2070,12 +2185,12 @@ class PoPageBlockedUserReasonComponent {
|
|
|
2070
2185
|
i0.ɵɵtextInterpolate(ctx.literals == null ? null : ctx.literals.secondPhrase);
|
|
2071
2186
|
i0.ɵɵadvance();
|
|
2072
2187
|
i0.ɵɵproperty("ngIf", ctx.literals == null ? null : ctx.literals.thirdPhrase);
|
|
2073
|
-
} }, dependencies: [i4.NgIf,
|
|
2188
|
+
} }, dependencies: [i4.NgIf, i1.PoI18nPipe], encapsulation: 2 });
|
|
2074
2189
|
}
|
|
2075
2190
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageBlockedUserReasonComponent, [{
|
|
2076
2191
|
type: Component,
|
|
2077
2192
|
args: [{ selector: 'po-page-blocked-user-reason', standalone: false, template: "<div class=\"po-page-blocked-user-reason-content\">\n <img class=\"po-page-blocked-user-image po-mb-3\" [src]=\"getImageByReasonType()\" />\n <div class=\"po-page-blocked-user-header po-mb-md-3 po-row\">\n <div class=\"po-md-12\">{{ literals?.title }}</div>\n </div>\n <div class=\"po-page-blocked-user-text po-font-text po-row\">\n <div class=\"po-mb-sm-2 po-mb-md-3 po-md-12 po-page-blocked-user-text-bold\">\n {{ literals?.firstPhrase | poI18n: literalParams }}\n </div>\n <div class=\"po-mb-sm-2 po-mb-md-3 po-md-12\">{{ literals?.secondPhrase }}</div>\n <div class=\"po-mb-sm-2 po-mb-md-3 po-md-12\" *ngIf=\"literals?.thirdPhrase\">{{ literals?.thirdPhrase }}</div>\n </div>\n</div>\n" }]
|
|
2078
|
-
}], () => [{ type: i0.ChangeDetectorRef }, { type:
|
|
2193
|
+
}], () => [{ type: i0.ChangeDetectorRef }, { type: i1.PoLanguageService }], { params: [{
|
|
2079
2194
|
type: Input,
|
|
2080
2195
|
args: ['p-params']
|
|
2081
2196
|
}], reason: [{
|
|
@@ -2126,11 +2241,13 @@ const poPageBlockedUserButtonLiterals = {
|
|
|
2126
2241
|
class PoPageBlockedUserComponent extends PoPageBlockedUserBaseComponent {
|
|
2127
2242
|
activatedRoute;
|
|
2128
2243
|
router;
|
|
2244
|
+
poThemeService;
|
|
2129
2245
|
literals;
|
|
2130
|
-
constructor(activatedRoute, router, languageService) {
|
|
2131
|
-
super();
|
|
2246
|
+
constructor(activatedRoute, router, poThemeService, languageService) {
|
|
2247
|
+
super(poThemeService);
|
|
2132
2248
|
this.activatedRoute = activatedRoute;
|
|
2133
2249
|
this.router = router;
|
|
2250
|
+
this.poThemeService = poThemeService;
|
|
2134
2251
|
const language = languageService.getShortLanguage();
|
|
2135
2252
|
this.literals = {
|
|
2136
2253
|
...poPageBlockedUserButtonLiterals[poLocaleDefault],
|
|
@@ -2156,8 +2273,8 @@ class PoPageBlockedUserComponent extends PoPageBlockedUserBaseComponent {
|
|
|
2156
2273
|
this.urlBack = this.checkingForMetadataProperty(data, 'urlBack') || this.urlBack;
|
|
2157
2274
|
}
|
|
2158
2275
|
}
|
|
2159
|
-
static ɵfac = function PoPageBlockedUserComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBlockedUserComponent)(i0.ɵɵdirectiveInject(i1$
|
|
2160
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageBlockedUserComponent, selectors: [["po-page-blocked-user"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
2276
|
+
static ɵfac = function PoPageBlockedUserComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageBlockedUserComponent)(i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
2277
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageBlockedUserComponent, selectors: [["po-page-blocked-user"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 10, consts: [[1, "po-page-blocked-user-wrapper"], [1, "po-page-background-wrap"], [3, "p-hide-logo", "p-logo", "p-secondary-logo", "p-components-size"], [3, "p-params", "p-reason"], [1, "po-page-blocked-user-mobile-bottom-alignment"], [3, "p-email", "p-phone"], [1, "po-row"], ["p-kind", "primary", 1, "po-lg-12", "po-sm-12", "po-page-blocked-user-button", 3, "p-click", "p-label", "p-size"]], template: function PoPageBlockedUserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2161
2278
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "po-page-background", 2);
|
|
2162
2279
|
i0.ɵɵelement(3, "po-page-blocked-user-reason", 3);
|
|
2163
2280
|
i0.ɵɵelementStart(4, "div", 4);
|
|
@@ -2167,19 +2284,19 @@ class PoPageBlockedUserComponent extends PoPageBlockedUserBaseComponent {
|
|
|
2167
2284
|
i0.ɵɵelementEnd()()()()()();
|
|
2168
2285
|
} if (rf & 2) {
|
|
2169
2286
|
i0.ɵɵadvance(2);
|
|
2170
|
-
i0.ɵɵproperty("p-hide-logo", true)("p-logo", ctx.logo)("p-secondary-logo", ctx.secondaryLogo);
|
|
2287
|
+
i0.ɵɵproperty("p-hide-logo", true)("p-logo", ctx.logo)("p-secondary-logo", ctx.secondaryLogo)("p-components-size", ctx.componentsSize);
|
|
2171
2288
|
i0.ɵɵadvance();
|
|
2172
2289
|
i0.ɵɵproperty("p-params", ctx.params)("p-reason", ctx.reason);
|
|
2173
2290
|
i0.ɵɵadvance(2);
|
|
2174
2291
|
i0.ɵɵproperty("p-email", ctx.contactEmail)("p-phone", ctx.contactPhone);
|
|
2175
2292
|
i0.ɵɵadvance(2);
|
|
2176
|
-
i0.ɵɵproperty("p-label", ctx.literals == null ? null : ctx.literals.primaryButton);
|
|
2177
|
-
} }, dependencies: [
|
|
2293
|
+
i0.ɵɵproperty("p-label", ctx.literals == null ? null : ctx.literals.primaryButton)("p-size", ctx.componentsSize);
|
|
2294
|
+
} }, dependencies: [i1.PoButtonComponent, PoPageBackgroundComponent, PoPageBlockedUserContactsComponent, PoPageBlockedUserReasonComponent], encapsulation: 2 });
|
|
2178
2295
|
}
|
|
2179
2296
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageBlockedUserComponent, [{
|
|
2180
2297
|
type: Component,
|
|
2181
|
-
args: [{ selector: 'po-page-blocked-user', standalone: false, template: "<div class=\"po-page-blocked-user-wrapper\">\n <div class=\"po-page-background-wrap\">\n <po-page-background
|
|
2182
|
-
}], () => [{ type: i1$
|
|
2298
|
+
args: [{ selector: 'po-page-blocked-user', standalone: false, template: "<div class=\"po-page-blocked-user-wrapper\">\n <div class=\"po-page-background-wrap\">\n <po-page-background\n [p-hide-logo]=\"true\"\n [p-logo]=\"logo\"\n [p-secondary-logo]=\"secondaryLogo\"\n [p-components-size]=\"componentsSize\"\n >\n <po-page-blocked-user-reason [p-params]=\"params\" [p-reason]=\"reason\"> </po-page-blocked-user-reason>\n\n <div class=\"po-page-blocked-user-mobile-bottom-alignment\">\n <po-page-blocked-user-contacts [p-email]=\"contactEmail\" [p-phone]=\"contactPhone\">\n </po-page-blocked-user-contacts>\n\n <div class=\"po-row\">\n <po-button\n class=\"po-lg-12 po-sm-12 po-page-blocked-user-button\"\n p-kind=\"primary\"\n [p-label]=\"literals?.primaryButton\"\n [p-size]=\"componentsSize\"\n (p-click)=\"navigateTo(urlBack)\"\n >\n </po-button>\n </div>\n </div>\n </po-page-background>\n </div>\n</div>\n" }]
|
|
2299
|
+
}], () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: i1.PoThemeService }, { type: i1.PoLanguageService }], null); })();
|
|
2183
2300
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageBlockedUserComponent, { className: "PoPageBlockedUserComponent", filePath: "lib/components/po-page-blocked-user/po-page-blocked-user.component.ts", lineNumber: 56 }); })();
|
|
2184
2301
|
|
|
2185
2302
|
/**
|
|
@@ -2202,6 +2319,85 @@ class PoPageBlockedUserModule {
|
|
|
2202
2319
|
}], null, null); })();
|
|
2203
2320
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoPageBlockedUserModule, { declarations: [PoPageBlockedUserComponent, PoPageBlockedUserContactsComponent, PoPageBlockedUserReasonComponent], imports: [CommonModule, RouterModule, PoModule, PoPageBackgroundModule], exports: [PoPageBlockedUserComponent, PoPageBlockedUserContactsComponent, PoPageBlockedUserReasonComponent] }); })();
|
|
2204
2321
|
|
|
2322
|
+
const poPageChangePasswordLiterals = {
|
|
2323
|
+
en: {
|
|
2324
|
+
backButton: 'Back',
|
|
2325
|
+
confirmPassword: 'Confirm password',
|
|
2326
|
+
createNewPassword: 'Create new password',
|
|
2327
|
+
createNewPasswordPhrase: 'Protect your account with a personal password created by you',
|
|
2328
|
+
currentPassword: 'Current password',
|
|
2329
|
+
enterSystemButton: 'Enter the system',
|
|
2330
|
+
forgotPassword: 'Forgot your password?',
|
|
2331
|
+
newPassword: 'New password',
|
|
2332
|
+
passwordSuccessfullyCreated: 'Password successfully created!',
|
|
2333
|
+
passwordSuccessfullyUpdated: 'Password successfully updated!',
|
|
2334
|
+
requirements: 'Password requirements',
|
|
2335
|
+
safetyTips: 'Safety tips!',
|
|
2336
|
+
safetyTipsFirst: 'is used in other accounts;',
|
|
2337
|
+
safetyTipsPhrase: 'Avoid a password that:',
|
|
2338
|
+
safetyTipsSecond: 'has personal information like your name, nickname or family names;',
|
|
2339
|
+
safetyTipsThird: 'that uses obvious sequences like "123" or obvious words like "password";',
|
|
2340
|
+
saveButton: 'Save'
|
|
2341
|
+
},
|
|
2342
|
+
es: {
|
|
2343
|
+
backButton: 'Volver',
|
|
2344
|
+
confirmPassword: 'Confirmar seña',
|
|
2345
|
+
createNewPassword: 'Crear nueva contraseña',
|
|
2346
|
+
createNewPasswordPhrase: 'Proteger su cuenta con una contraseña personal creada por usted',
|
|
2347
|
+
currentPassword: 'Contraseña actual',
|
|
2348
|
+
enterSystemButton: 'Entrar en el sistema',
|
|
2349
|
+
forgotPassword: '¿Olvidaste tu contraseña?',
|
|
2350
|
+
newPassword: 'Nueva contraseña',
|
|
2351
|
+
passwordSuccessfullyCreated: 'Contraseña creada correctamente!',
|
|
2352
|
+
passwordSuccessfullyUpdated: 'Contraseña correctamente actualizada!',
|
|
2353
|
+
requirements: 'Requisitos de contraseña',
|
|
2354
|
+
safetyTips: 'Consejos de seguridad!',
|
|
2355
|
+
safetyTipsFirst: 'se utilice en otras cuentas;',
|
|
2356
|
+
safetyTipsPhrase: 'Evite una contraseña que:',
|
|
2357
|
+
safetyTipsSecond: 'utiliza información personal como su nombre, apellido o nombre de familia;',
|
|
2358
|
+
safetyTipsThird: 'utilice secuencias muy obvias como "1234" o "abcd" o palabras obvias como "contraseña";',
|
|
2359
|
+
saveButton: 'Guardar'
|
|
2360
|
+
},
|
|
2361
|
+
pt: {
|
|
2362
|
+
backButton: 'Voltar',
|
|
2363
|
+
confirmPassword: 'Confirmar senha',
|
|
2364
|
+
createNewPassword: 'Criar nova senha',
|
|
2365
|
+
createNewPasswordPhrase: 'Proteja sua conta com uma senha pessoal criada por você',
|
|
2366
|
+
currentPassword: 'Senha atual',
|
|
2367
|
+
enterSystemButton: 'Entrar no sistema',
|
|
2368
|
+
forgotPassword: 'Esqueceu sua senha?',
|
|
2369
|
+
newPassword: 'Nova senha',
|
|
2370
|
+
passwordSuccessfullyCreated: 'Senha criada com sucesso!',
|
|
2371
|
+
passwordSuccessfullyUpdated: 'Senha alterada com sucesso!',
|
|
2372
|
+
requirements: 'Requisitos de senha',
|
|
2373
|
+
safetyTips: 'Dicas de segurança!',
|
|
2374
|
+
safetyTipsFirst: 'seja usada em outras contas;',
|
|
2375
|
+
safetyTipsPhrase: 'Evite uma senha que:',
|
|
2376
|
+
safetyTipsSecond: 'usa informações pessoais como seu nome, apelido ou nome de familiares;',
|
|
2377
|
+
safetyTipsThird: 'use sequências muito óbvias como "1234" ou "abcd" ou palavras óbvias como “senha”;',
|
|
2378
|
+
saveButton: 'Salvar'
|
|
2379
|
+
},
|
|
2380
|
+
ru: {
|
|
2381
|
+
backButton: 'возвращение',
|
|
2382
|
+
confirmPassword: 'Подтвердите пароль',
|
|
2383
|
+
createNewPassword: 'Создать новый пароль',
|
|
2384
|
+
createNewPasswordPhrase: 'Защитите свой аккаунт с помощью личного пароля.',
|
|
2385
|
+
currentPassword: 'Текущий пароль',
|
|
2386
|
+
enterSystemButton: 'Вход в систему',
|
|
2387
|
+
forgotPassword: 'Забыли пароль?',
|
|
2388
|
+
newPassword: 'Новый пароль',
|
|
2389
|
+
passwordSuccessfullyCreated: 'Пароль успешно создан!',
|
|
2390
|
+
passwordSuccessfullyUpdated: 'Пароль успешно изменен!',
|
|
2391
|
+
requirements: 'Требования к паролю',
|
|
2392
|
+
safetyTips: 'Советы по безопасности!',
|
|
2393
|
+
safetyTipsFirst: 'использоваться на других счетах;',
|
|
2394
|
+
safetyTipsPhrase: 'Избегайте пароля, который:',
|
|
2395
|
+
safetyTipsSecond: 'использует личную информацию, такую как ваше имя, фамилию или фамилию;',
|
|
2396
|
+
safetyTipsThird: 'используйте очень очевидные строки, такие как "1234" или "abcd", или такие очевидные слова, как "пароль";',
|
|
2397
|
+
saveButton: 'экономить'
|
|
2398
|
+
}
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2205
2401
|
/**
|
|
2206
2402
|
* @description
|
|
2207
2403
|
*
|
|
@@ -2231,6 +2427,7 @@ class PoPageBlockedUserModule {
|
|
|
2231
2427
|
* ```
|
|
2232
2428
|
*/
|
|
2233
2429
|
class PoPageChangePasswordBaseComponent {
|
|
2430
|
+
poThemeService;
|
|
2234
2431
|
/**
|
|
2235
2432
|
* @optional
|
|
2236
2433
|
*
|
|
@@ -2365,10 +2562,31 @@ class PoPageChangePasswordBaseComponent {
|
|
|
2365
2562
|
recoveryUrlType;
|
|
2366
2563
|
showRequirements;
|
|
2367
2564
|
validatorChange;
|
|
2565
|
+
_componentsSize = undefined;
|
|
2368
2566
|
_hideCurrentPassword = false;
|
|
2369
2567
|
_recovery;
|
|
2370
2568
|
_requirements = [];
|
|
2371
2569
|
_urlHome = '/';
|
|
2570
|
+
/**
|
|
2571
|
+
* @optional
|
|
2572
|
+
*
|
|
2573
|
+
* @description
|
|
2574
|
+
*
|
|
2575
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
2576
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
2577
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
2578
|
+
*
|
|
2579
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
2580
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
2581
|
+
*
|
|
2582
|
+
* @default `medium`
|
|
2583
|
+
*/
|
|
2584
|
+
set componentsSize(value) {
|
|
2585
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
2586
|
+
}
|
|
2587
|
+
get componentsSize() {
|
|
2588
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
2589
|
+
}
|
|
2372
2590
|
/**
|
|
2373
2591
|
* @optional
|
|
2374
2592
|
*
|
|
@@ -2459,12 +2677,15 @@ class PoPageChangePasswordBaseComponent {
|
|
|
2459
2677
|
* @default `true`
|
|
2460
2678
|
*/
|
|
2461
2679
|
noAutocompletePassword = true;
|
|
2462
|
-
|
|
2463
|
-
|
|
2680
|
+
constructor(poThemeService) {
|
|
2681
|
+
this.poThemeService = poThemeService;
|
|
2682
|
+
}
|
|
2683
|
+
static ɵfac = function PoPageChangePasswordBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageChangePasswordBaseComponent)(i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
2684
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageChangePasswordBaseComponent, inputs: { logo: [0, "p-logo", "logo"], secondaryLogo: [0, "p-secondary-logo", "secondaryLogo"], token: [0, "p-token", "token"], urlBack: [0, "p-url-back", "urlBack"], urlNewPassword: [0, "p-url-new-password", "urlNewPassword"], componentsSize: [0, "p-components-size", "componentsSize"], hideCurrentPassword: [0, "p-hide-current-password", "hideCurrentPassword"], recovery: [0, "p-recovery", "recovery"], requirements: [0, "p-requirements", "requirements"], urlHome: [0, "p-url-home", "urlHome"], noAutocompletePassword: [0, "p-no-autocomplete-password", "noAutocompletePassword"] }, outputs: { submit: "p-submit" } });
|
|
2464
2685
|
}
|
|
2465
2686
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageChangePasswordBaseComponent, [{
|
|
2466
2687
|
type: Directive
|
|
2467
|
-
}],
|
|
2688
|
+
}], () => [{ type: i1.PoThemeService }], { logo: [{
|
|
2468
2689
|
type: Input,
|
|
2469
2690
|
args: ['p-logo']
|
|
2470
2691
|
}], secondaryLogo: [{
|
|
@@ -2482,6 +2703,9 @@ class PoPageChangePasswordBaseComponent {
|
|
|
2482
2703
|
}], submit: [{
|
|
2483
2704
|
type: Output,
|
|
2484
2705
|
args: ['p-submit']
|
|
2706
|
+
}], componentsSize: [{
|
|
2707
|
+
type: Input,
|
|
2708
|
+
args: ['p-components-size']
|
|
2485
2709
|
}], hideCurrentPassword: [{
|
|
2486
2710
|
type: Input,
|
|
2487
2711
|
args: ['p-hide-current-password']
|
|
@@ -2499,85 +2723,6 @@ class PoPageChangePasswordBaseComponent {
|
|
|
2499
2723
|
args: ['p-no-autocomplete-password']
|
|
2500
2724
|
}] }); })();
|
|
2501
2725
|
|
|
2502
|
-
const poPageChangePasswordLiterals = {
|
|
2503
|
-
en: {
|
|
2504
|
-
backButton: 'Back',
|
|
2505
|
-
confirmPassword: 'Confirm password',
|
|
2506
|
-
createNewPassword: 'Create new password',
|
|
2507
|
-
createNewPasswordPhrase: 'Protect your account with a personal password created by you',
|
|
2508
|
-
currentPassword: 'Current password',
|
|
2509
|
-
enterSystemButton: 'Enter the system',
|
|
2510
|
-
forgotPassword: 'Forgot your password?',
|
|
2511
|
-
newPassword: 'New password',
|
|
2512
|
-
passwordSuccessfullyCreated: 'Password successfully created!',
|
|
2513
|
-
passwordSuccessfullyUpdated: 'Password successfully updated!',
|
|
2514
|
-
requirements: 'Password requirements',
|
|
2515
|
-
safetyTips: 'Safety tips!',
|
|
2516
|
-
safetyTipsFirst: 'is used in other accounts;',
|
|
2517
|
-
safetyTipsPhrase: 'Avoid a password that:',
|
|
2518
|
-
safetyTipsSecond: 'has personal information like your name, nickname or family names;',
|
|
2519
|
-
safetyTipsThird: 'that uses obvious sequences like "123" or obvious words like "password";',
|
|
2520
|
-
saveButton: 'Save'
|
|
2521
|
-
},
|
|
2522
|
-
es: {
|
|
2523
|
-
backButton: 'Volver',
|
|
2524
|
-
confirmPassword: 'Confirmar seña',
|
|
2525
|
-
createNewPassword: 'Crear nueva contraseña',
|
|
2526
|
-
createNewPasswordPhrase: 'Proteger su cuenta con una contraseña personal creada por usted',
|
|
2527
|
-
currentPassword: 'Contraseña actual',
|
|
2528
|
-
enterSystemButton: 'Entrar en el sistema',
|
|
2529
|
-
forgotPassword: '¿Olvidaste tu contraseña?',
|
|
2530
|
-
newPassword: 'Nueva contraseña',
|
|
2531
|
-
passwordSuccessfullyCreated: 'Contraseña creada correctamente!',
|
|
2532
|
-
passwordSuccessfullyUpdated: 'Contraseña correctamente actualizada!',
|
|
2533
|
-
requirements: 'Requisitos de contraseña',
|
|
2534
|
-
safetyTips: 'Consejos de seguridad!',
|
|
2535
|
-
safetyTipsFirst: 'se utilice en otras cuentas;',
|
|
2536
|
-
safetyTipsPhrase: 'Evite una contraseña que:',
|
|
2537
|
-
safetyTipsSecond: 'utiliza información personal como su nombre, apellido o nombre de familia;',
|
|
2538
|
-
safetyTipsThird: 'utilice secuencias muy obvias como "1234" o "abcd" o palabras obvias como "contraseña";',
|
|
2539
|
-
saveButton: 'Guardar'
|
|
2540
|
-
},
|
|
2541
|
-
pt: {
|
|
2542
|
-
backButton: 'Voltar',
|
|
2543
|
-
confirmPassword: 'Confirmar senha',
|
|
2544
|
-
createNewPassword: 'Criar nova senha',
|
|
2545
|
-
createNewPasswordPhrase: 'Proteja sua conta com uma senha pessoal criada por você',
|
|
2546
|
-
currentPassword: 'Senha atual',
|
|
2547
|
-
enterSystemButton: 'Entrar no sistema',
|
|
2548
|
-
forgotPassword: 'Esqueceu sua senha?',
|
|
2549
|
-
newPassword: 'Nova senha',
|
|
2550
|
-
passwordSuccessfullyCreated: 'Senha criada com sucesso!',
|
|
2551
|
-
passwordSuccessfullyUpdated: 'Senha alterada com sucesso!',
|
|
2552
|
-
requirements: 'Requisitos de senha',
|
|
2553
|
-
safetyTips: 'Dicas de segurança!',
|
|
2554
|
-
safetyTipsFirst: 'seja usada em outras contas;',
|
|
2555
|
-
safetyTipsPhrase: 'Evite uma senha que:',
|
|
2556
|
-
safetyTipsSecond: 'usa informações pessoais como seu nome, apelido ou nome de familiares;',
|
|
2557
|
-
safetyTipsThird: 'use sequências muito óbvias como "1234" ou "abcd" ou palavras óbvias como “senha”;',
|
|
2558
|
-
saveButton: 'Salvar'
|
|
2559
|
-
},
|
|
2560
|
-
ru: {
|
|
2561
|
-
backButton: 'возвращение',
|
|
2562
|
-
confirmPassword: 'Подтвердите пароль',
|
|
2563
|
-
createNewPassword: 'Создать новый пароль',
|
|
2564
|
-
createNewPasswordPhrase: 'Защитите свой аккаунт с помощью личного пароля.',
|
|
2565
|
-
currentPassword: 'Текущий пароль',
|
|
2566
|
-
enterSystemButton: 'Вход в систему',
|
|
2567
|
-
forgotPassword: 'Забыли пароль?',
|
|
2568
|
-
newPassword: 'Новый пароль',
|
|
2569
|
-
passwordSuccessfullyCreated: 'Пароль успешно создан!',
|
|
2570
|
-
passwordSuccessfullyUpdated: 'Пароль успешно изменен!',
|
|
2571
|
-
requirements: 'Требования к паролю',
|
|
2572
|
-
safetyTips: 'Советы по безопасности!',
|
|
2573
|
-
safetyTipsFirst: 'использоваться на других счетах;',
|
|
2574
|
-
safetyTipsPhrase: 'Избегайте пароля, который:',
|
|
2575
|
-
safetyTipsSecond: 'использует личную информацию, такую как ваше имя, фамилию или фамилию;',
|
|
2576
|
-
safetyTipsThird: 'используйте очень очевидные строки, такие как "1234" или "abcd", или такие очевидные слова, как "пароль";',
|
|
2577
|
-
saveButton: 'экономить'
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
|
-
|
|
2581
2726
|
class PoPageChangePasswordService {
|
|
2582
2727
|
http;
|
|
2583
2728
|
constructor(http) {
|
|
@@ -2586,7 +2731,7 @@ class PoPageChangePasswordService {
|
|
|
2586
2731
|
post(url, item) {
|
|
2587
2732
|
return this.http.post(url, item, { observe: 'response' });
|
|
2588
2733
|
}
|
|
2589
|
-
static ɵfac = function PoPageChangePasswordService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageChangePasswordService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
2734
|
+
static ɵfac = function PoPageChangePasswordService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageChangePasswordService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
2590
2735
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageChangePasswordService, factory: PoPageChangePasswordService.ɵfac, providedIn: 'root' });
|
|
2591
2736
|
}
|
|
2592
2737
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageChangePasswordService, [{
|
|
@@ -2594,7 +2739,7 @@ class PoPageChangePasswordService {
|
|
|
2594
2739
|
args: [{
|
|
2595
2740
|
providedIn: 'root'
|
|
2596
2741
|
}]
|
|
2597
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2742
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
2598
2743
|
|
|
2599
2744
|
const _c0$6 = ["pageChangePassword"];
|
|
2600
2745
|
const _c1$4 = ["passwordForm"];
|
|
@@ -2608,7 +2753,7 @@ function PoPageChangePasswordComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
2608
2753
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2609
2754
|
i0.ɵɵadvance();
|
|
2610
2755
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.currentPassword);
|
|
2611
|
-
i0.ɵɵproperty("p-label", ctx_r2.literals.currentPassword)("p-no-autocomplete", ctx_r2.noAutocompletePassword);
|
|
2756
|
+
i0.ɵɵproperty("p-label", ctx_r2.literals.currentPassword)("p-no-autocomplete", ctx_r2.noAutocompletePassword)("p-size", ctx_r2.componentsSize);
|
|
2612
2757
|
} }
|
|
2613
2758
|
function PoPageChangePasswordComponent_div_14_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2614
2759
|
i0.ɵɵelementStart(0, "a", 35);
|
|
@@ -2688,7 +2833,7 @@ function PoPageChangePasswordComponent_po_button_38_Template(rf, ctx) { if (rf &
|
|
|
2688
2833
|
i0.ɵɵelementEnd();
|
|
2689
2834
|
} if (rf & 2) {
|
|
2690
2835
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2691
|
-
i0.ɵɵproperty("p-label", ctx_r2.literals.backButton);
|
|
2836
|
+
i0.ɵɵproperty("p-label", ctx_r2.literals.backButton)("p-size", ctx_r2.componentsSize);
|
|
2692
2837
|
} }
|
|
2693
2838
|
/**
|
|
2694
2839
|
* @docsExtends PoPageChangePasswordBaseComponent
|
|
@@ -2726,6 +2871,7 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2726
2871
|
router;
|
|
2727
2872
|
service;
|
|
2728
2873
|
poComponentInjector;
|
|
2874
|
+
poThemeService;
|
|
2729
2875
|
modal;
|
|
2730
2876
|
pageChangePassword;
|
|
2731
2877
|
passwordForm;
|
|
@@ -2736,13 +2882,14 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2736
2882
|
};
|
|
2737
2883
|
newPasswordSubscription;
|
|
2738
2884
|
componentRef = null;
|
|
2739
|
-
constructor(activatedRoute, route, router, service, poComponentInjector, languageService, viewRef) {
|
|
2740
|
-
super();
|
|
2885
|
+
constructor(activatedRoute, route, router, service, poComponentInjector, poThemeService, languageService, viewRef) {
|
|
2886
|
+
super(poThemeService);
|
|
2741
2887
|
this.activatedRoute = activatedRoute;
|
|
2742
2888
|
this.route = route;
|
|
2743
2889
|
this.router = router;
|
|
2744
2890
|
this.service = service;
|
|
2745
2891
|
this.poComponentInjector = poComponentInjector;
|
|
2892
|
+
this.poThemeService = poThemeService;
|
|
2746
2893
|
const language = languageService.getShortLanguage();
|
|
2747
2894
|
this.literals = {
|
|
2748
2895
|
...poPageChangePasswordLiterals[poLocaleDefault],
|
|
@@ -2869,7 +3016,7 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2869
3016
|
}
|
|
2870
3017
|
});
|
|
2871
3018
|
}
|
|
2872
|
-
static ɵfac = function PoPageChangePasswordComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageChangePasswordComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3019
|
+
static ɵfac = function PoPageChangePasswordComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageChangePasswordComponent)(i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(PoPageChangePasswordService), i0.ɵɵdirectiveInject(i1.PoComponentInjectorService), i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
2873
3020
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageChangePasswordComponent, selectors: [["po-page-change-password"]], viewQuery: function PoPageChangePasswordComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2874
3021
|
i0.ɵɵviewQuery(PoModalComponent, 7);
|
|
2875
3022
|
i0.ɵɵviewQuery(_c0$6, 7, ViewContainerRef);
|
|
@@ -2879,7 +3026,7 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2879
3026
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modal = _t.first);
|
|
2880
3027
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.pageChangePassword = _t.first);
|
|
2881
3028
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.passwordForm = _t.first);
|
|
2882
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 43, vars:
|
|
3029
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 43, vars: 32, consts: [["pageChangePassword", ""], ["passwordForm", "ngForm"], [1, "po-page-change-password-wrapper"], [1, "po-page-change-password-container"], [1, "po-page-change-password", 3, "p-components-size", "p-logo", "p-secondary-logo"], [1, "po-page-blocked-user-header", "po-row"], [1, "po-md-12"], [1, "po-md-12", "po-text-center", "po-font-text"], [1, "po-row", "po-mt-3", "po-mt-sm-1"], [1, "po-md-6", 3, "ngClass"], [4, "ngIf"], ["class", "po-text-center po-mb-sm-1 po-mb-2", 4, "ngIf"], ["name", "newPassword", "p-required", "", 3, "ngModelChange", "p-change-model", "ngModel", "p-label", "p-no-autocomplete", "p-size"], ["name", "confirmPassword", "p-required", "", 3, "ngModelChange", "p-change-model", "ngModel", "p-label", "p-no-autocomplete", "p-size"], ["class", "po-md-6 po-page-change-password-required-container", 4, "ngIf"], [1, "po-sm-12"], [1, "po-page-change-password-tips", "po-row"], [1, "po-md-2", "po-mr-3"], ["alt", "Blocked user image", "src", "./assets/images/big-lock.svg", 1, "po-page-change-password-lock-image", "po-mb-3"], [1, "po-md-9", "po-page-change-password-tips-text"], [1, "po-font-text-bold", "po-pb-1"], [1, "po-font-text-small"], [1, "po-row", "po-pb-1"], [1, "po-page-change-password-buttons", "po-row"], [1, "po-sm-12", "po-mobile-only"], ["class", "po-sm-6 po-mb-sm-1", 3, "p-label", "p-size", "p-click", 4, "ngIf"], ["p-kind", "primary", 3, "p-click", "ngClass", "p-disabled", "p-label", "p-size"], ["p-hide-close", "", "p-size", "auto", 3, "p-primary-action", "p-components-size", "p-title"], [1, "po-text-center"], ["alt", "Blocked user image", "src", "./assets/images/success.svg", 1, "po-page-change-password-lock-image", "po-mb-3"], ["name", "currentPassword", "p-required", "", 3, "ngModelChange", "ngModel", "p-label", "p-no-autocomplete", "p-size"], [1, "po-text-center", "po-mb-sm-1", "po-mb-2"], ["class", "po-font-text-bold po-page-change-password-forgot-password", 3, "routerLink", 4, "ngIf"], ["class", "po-font-text-bold po-page-change-password-forgot-password", 3, "href", 4, "ngIf"], ["class", "po-font-text-bold po-page-change-password-forgot-password po-clickable", 3, "click", 4, "ngIf"], [1, "po-font-text-bold", "po-page-change-password-forgot-password", 3, "routerLink"], [1, "po-font-text-bold", "po-page-change-password-forgot-password", 3, "href"], [1, "po-font-text-bold", "po-page-change-password-forgot-password", "po-clickable", 3, "click"], [1, "po-md-6", "po-page-change-password-required-container"], [1, "po-page-change-password-required-list"], [1, "po-page-change-password-required-item"], [1, "po-mb-1", "po-font-text-bold", "po-page-change-password-required-title"], ["class", "po-page-change-password-required-item", 4, "ngFor", "ngForOf"], [1, "po-icon", "po-page-change-password-required-icon", 3, "p-icon"], [1, "po-page-change-password-required-text", "po-font-text"], [1, "po-sm-6", "po-mb-sm-1", 3, "p-click", "p-label", "p-size"]], template: function PoPageChangePasswordComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2883
3030
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2884
3031
|
i0.ɵɵelementStart(0, "div", 2, 0)(2, "div", 3)(3, "po-page-background", 4)(4, "div", 5)(5, "div", 6);
|
|
2885
3032
|
i0.ɵɵtext(6);
|
|
@@ -2888,7 +3035,7 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2888
3035
|
i0.ɵɵtext(8);
|
|
2889
3036
|
i0.ɵɵelementEnd()();
|
|
2890
3037
|
i0.ɵɵelementStart(9, "form", null, 1)(11, "div", 8)(12, "div", 9);
|
|
2891
|
-
i0.ɵɵtemplate(13, PoPageChangePasswordComponent_div_13_Template, 2,
|
|
3038
|
+
i0.ɵɵtemplate(13, PoPageChangePasswordComponent_div_13_Template, 2, 4, "div", 10)(14, PoPageChangePasswordComponent_div_14_Template, 4, 3, "div", 11);
|
|
2892
3039
|
i0.ɵɵelementStart(15, "div")(16, "po-password", 12);
|
|
2893
3040
|
i0.ɵɵtwoWayListener("ngModelChange", function PoPageChangePasswordComponent_Template_po_password_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.newPassword, $event) || (ctx.newPassword = $event); return i0.ɵɵresetView($event); });
|
|
2894
3041
|
i0.ɵɵlistener("p-change-model", function PoPageChangePasswordComponent_Template_po_password_p_change_model_16_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validatePassword()); });
|
|
@@ -2920,7 +3067,7 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2920
3067
|
i0.ɵɵelementEnd()()()();
|
|
2921
3068
|
i0.ɵɵelementStart(36, "div", 23);
|
|
2922
3069
|
i0.ɵɵelement(37, "po-divider", 24);
|
|
2923
|
-
i0.ɵɵtemplate(38, PoPageChangePasswordComponent_po_button_38_Template, 1,
|
|
3070
|
+
i0.ɵɵtemplate(38, PoPageChangePasswordComponent_po_button_38_Template, 1, 2, "po-button", 25);
|
|
2924
3071
|
i0.ɵɵelementStart(39, "po-button", 26);
|
|
2925
3072
|
i0.ɵɵlistener("p-click", function PoPageChangePasswordComponent_Template_po_button_p_click_39_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onLoginSubmit()); });
|
|
2926
3073
|
i0.ɵɵelementEnd()()()()();
|
|
@@ -2930,23 +3077,23 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2930
3077
|
} if (rf & 2) {
|
|
2931
3078
|
const passwordForm_r7 = i0.ɵɵreference(10);
|
|
2932
3079
|
i0.ɵɵadvance(3);
|
|
2933
|
-
i0.ɵɵproperty("p-logo", ctx.logo)("p-secondary-logo", ctx.secondaryLogo);
|
|
3080
|
+
i0.ɵɵproperty("p-components-size", ctx.componentsSize)("p-logo", ctx.logo)("p-secondary-logo", ctx.secondaryLogo);
|
|
2934
3081
|
i0.ɵɵadvance(3);
|
|
2935
3082
|
i0.ɵɵtextInterpolate(ctx.literals.createNewPassword);
|
|
2936
3083
|
i0.ɵɵadvance(2);
|
|
2937
3084
|
i0.ɵɵtextInterpolate1(" ", ctx.literals.createNewPasswordPhrase, " ");
|
|
2938
3085
|
i0.ɵɵadvance(4);
|
|
2939
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
3086
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(30, _c2$2, !ctx.showRequirements));
|
|
2940
3087
|
i0.ɵɵadvance();
|
|
2941
3088
|
i0.ɵɵproperty("ngIf", !ctx.hideCurrentPassword);
|
|
2942
3089
|
i0.ɵɵadvance();
|
|
2943
3090
|
i0.ɵɵproperty("ngIf", !ctx.hideCurrentPassword && ctx.recovery);
|
|
2944
3091
|
i0.ɵɵadvance(2);
|
|
2945
3092
|
i0.ɵɵtwoWayProperty("ngModel", ctx.newPassword);
|
|
2946
|
-
i0.ɵɵproperty("p-label", ctx.literals.newPassword)("p-no-autocomplete", ctx.noAutocompletePassword);
|
|
3093
|
+
i0.ɵɵproperty("p-label", ctx.literals.newPassword)("p-no-autocomplete", ctx.noAutocompletePassword)("p-size", ctx.componentsSize);
|
|
2947
3094
|
i0.ɵɵadvance(2);
|
|
2948
3095
|
i0.ɵɵtwoWayProperty("ngModel", ctx.confirmPassword);
|
|
2949
|
-
i0.ɵɵproperty("p-label", ctx.literals.confirmPassword)("p-no-autocomplete", ctx.noAutocompletePassword);
|
|
3096
|
+
i0.ɵɵproperty("p-label", ctx.literals.confirmPassword)("p-no-autocomplete", ctx.noAutocompletePassword)("p-size", ctx.componentsSize);
|
|
2950
3097
|
i0.ɵɵadvance();
|
|
2951
3098
|
i0.ɵɵproperty("ngIf", ctx.showRequirements);
|
|
2952
3099
|
i0.ɵɵadvance(7);
|
|
@@ -2962,15 +3109,15 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2962
3109
|
i0.ɵɵadvance(3);
|
|
2963
3110
|
i0.ɵɵproperty("ngIf", !ctx.hideCurrentPassword);
|
|
2964
3111
|
i0.ɵɵadvance();
|
|
2965
|
-
i0.ɵɵproperty("ngClass", ctx.hideCurrentPassword ? "po-md-12" : "po-sm-6")("p-disabled", passwordForm_r7.invalid)("p-label", ctx.literals.saveButton);
|
|
3112
|
+
i0.ɵɵproperty("ngClass", ctx.hideCurrentPassword ? "po-md-12" : "po-sm-6")("p-disabled", passwordForm_r7.invalid)("p-label", ctx.literals.saveButton)("p-size", ctx.componentsSize);
|
|
2966
3113
|
i0.ɵɵadvance();
|
|
2967
|
-
i0.ɵɵproperty("p-primary-action", ctx.modalAction)("p-title", ctx.hideCurrentPassword ? ctx.literals.passwordSuccessfullyCreated : ctx.literals.passwordSuccessfullyUpdated);
|
|
2968
|
-
} }, dependencies: [i4.NgClass, i4.NgForOf, i4.NgIf, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm, i1$
|
|
3114
|
+
i0.ɵɵproperty("p-primary-action", ctx.modalAction)("p-components-size", ctx.componentsSize)("p-title", ctx.hideCurrentPassword ? ctx.literals.passwordSuccessfullyCreated : ctx.literals.passwordSuccessfullyUpdated);
|
|
3115
|
+
} }, dependencies: [i4.NgClass, i4.NgForOf, i4.NgIf, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm, i1$2.RouterLink, i1.PoButtonComponent, i1.PoContainerComponent, i1.PoDividerComponent, i1.PoPasswordComponent, i1.PoIconComponent, i1.PoModalComponent, PoPageBackgroundComponent], encapsulation: 2 });
|
|
2969
3116
|
}
|
|
2970
3117
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageChangePasswordComponent, [{
|
|
2971
3118
|
type: Component,
|
|
2972
|
-
args: [{ selector: 'po-page-change-password', standalone: false, template: "<div class=\"po-page-change-password-wrapper\" #pageChangePassword>\n <div class=\"po-page-change-password-container\">\n <po-page-background
|
|
2973
|
-
}], () => [{ type: i1$
|
|
3119
|
+
args: [{ selector: 'po-page-change-password', standalone: false, template: "<div class=\"po-page-change-password-wrapper\" #pageChangePassword>\n <div class=\"po-page-change-password-container\">\n <po-page-background\n class=\"po-page-change-password\"\n [p-components-size]=\"componentsSize\"\n [p-logo]=\"logo\"\n [p-secondary-logo]=\"secondaryLogo\"\n >\n <div class=\"po-page-blocked-user-header po-row\">\n <div class=\"po-md-12\">{{ literals.createNewPassword }}</div>\n <div class=\"po-md-12 po-text-center po-font-text\">\n {{ literals.createNewPasswordPhrase }}\n </div>\n </div>\n\n <form #passwordForm=\"ngForm\">\n <div class=\"po-row po-mt-3 po-mt-sm-1\">\n <div class=\"po-md-6\" [ngClass]=\"{ 'po-offset-md-3 po-offset-lg-3 po-offset-xl-3': !showRequirements }\">\n <div *ngIf=\"!hideCurrentPassword\">\n <po-password\n name=\"currentPassword\"\n [(ngModel)]=\"currentPassword\"\n p-required\n [p-label]=\"literals.currentPassword\"\n [p-no-autocomplete]=\"noAutocompletePassword\"\n [p-size]=\"componentsSize\"\n >\n </po-password>\n </div>\n <div *ngIf=\"!hideCurrentPassword && recovery\" class=\"po-text-center po-mb-sm-1 po-mb-2\">\n <a\n *ngIf=\"recoveryUrlType === 'internalLink'\"\n class=\"po-font-text-bold po-page-change-password-forgot-password\"\n [routerLink]=\"recovery\"\n >\n {{ literals.forgotPassword }}\n </a>\n <a\n *ngIf=\"recoveryUrlType === 'externalLink'\"\n class=\"po-font-text-bold po-page-change-password-forgot-password\"\n [href]=\"recovery\"\n >\n {{ literals.forgotPassword }}\n </a>\n <a\n *ngIf=\"!recoveryUrlType\"\n class=\"po-font-text-bold po-page-change-password-forgot-password po-clickable\"\n (click)=\"onForgotPasswordClick(recovery)\"\n >\n {{ literals.forgotPassword }}\n </a>\n </div>\n <div>\n <po-password\n name=\"newPassword\"\n [(ngModel)]=\"newPassword\"\n p-required\n [p-label]=\"literals.newPassword\"\n (p-change-model)=\"validatePassword()\"\n [p-no-autocomplete]=\"noAutocompletePassword\"\n [p-size]=\"componentsSize\"\n >\n </po-password>\n </div>\n <div>\n <po-password\n name=\"confirmPassword\"\n [(ngModel)]=\"confirmPassword\"\n p-required\n [p-label]=\"literals.confirmPassword\"\n (p-change-model)=\"validatePassword()\"\n [p-no-autocomplete]=\"noAutocompletePassword\"\n [p-size]=\"componentsSize\"\n >\n </po-password>\n </div>\n </div>\n <div *ngIf=\"showRequirements\" class=\"po-md-6 po-page-change-password-required-container\">\n <po-container>\n <ul class=\"po-page-change-password-required-list\">\n <li class=\"po-page-change-password-required-item\">\n <p class=\"po-mb-1 po-font-text-bold po-page-change-password-required-title\">\n {{ literals?.requirements }}\n </p>\n </li>\n <li *ngFor=\"let requirement of requirements\" class=\"po-page-change-password-required-item\">\n <po-icon\n class=\"po-icon po-page-change-password-required-icon\"\n [p-icon]=\"\n validateRequirement(requirement)\n ? 'ICON_OK po-page-change-password-required-ok'\n : 'ICON_MINUS po-page-change-password-required-minus'\n \"\n >\n </po-icon>\n <p class=\"po-page-change-password-required-text po-font-text\">\n {{ requirement.requirement }}\n </p>\n </li>\n </ul>\n </po-container>\n </div>\n </div>\n </form>\n\n <po-divider class=\"po-sm-12\"></po-divider>\n\n <div class=\"po-page-change-password-tips po-row\">\n <div class=\"po-md-2 po-mr-3\">\n <img\n class=\"po-page-change-password-lock-image po-mb-3\"\n alt=\"Blocked user image\"\n src=\"./assets/images/big-lock.svg\"\n />\n </div>\n <div class=\"po-md-9 po-page-change-password-tips-text\">\n <div class=\"po-font-text-bold po-pb-1\">{{ literals.safetyTips }}</div>\n <div class=\"po-font-text-small\">\n <div class=\"po-row po-pb-1\">{{ literals.safetyTipsPhrase }}</div>\n <div class=\"po-row po-pb-1\">\u2022 {{ literals.safetyTipsFirst }}</div>\n <div class=\"po-row po-pb-1\">\u2022 {{ literals.safetyTipsSecond }}</div>\n <div class=\"po-row po-pb-1\">\u2022 {{ literals.safetyTipsThird }}</div>\n </div>\n </div>\n </div>\n\n <div class=\"po-page-change-password-buttons po-row\">\n <po-divider class=\"po-sm-12 po-mobile-only\"></po-divider>\n\n <po-button\n *ngIf=\"!hideCurrentPassword\"\n class=\"po-sm-6 po-mb-sm-1\"\n [p-label]=\"literals.backButton\"\n [p-size]=\"componentsSize\"\n (p-click)=\"navigateTo(urlBack)\"\n >\n </po-button>\n\n <po-button\n [ngClass]=\"hideCurrentPassword ? 'po-md-12' : 'po-sm-6'\"\n p-kind=\"primary\"\n [p-disabled]=\"passwordForm.invalid\"\n [p-label]=\"literals.saveButton\"\n [p-size]=\"componentsSize\"\n (p-click)=\"onLoginSubmit()\"\n >\n </po-button>\n </div>\n </po-page-background>\n </div>\n</div>\n\n<po-modal\n [p-primary-action]=\"modalAction\"\n p-hide-close\n p-size=\"auto\"\n [p-components-size]=\"componentsSize\"\n [p-title]=\"hideCurrentPassword ? literals.passwordSuccessfullyCreated : literals.passwordSuccessfullyUpdated\"\n>\n <div class=\"po-text-center\">\n <img\n alt=\"Blocked user image\"\n class=\"po-page-change-password-lock-image po-mb-3\"\n src=\"./assets/images/success.svg\"\n />\n </div>\n</po-modal>\n" }]
|
|
3120
|
+
}], () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: PoPageChangePasswordService }, { type: i1.PoComponentInjectorService }, { type: i1.PoThemeService }, { type: i1.PoLanguageService }, { type: i0.ViewContainerRef }], { modal: [{
|
|
2974
3121
|
type: ViewChild,
|
|
2975
3122
|
args: [PoModalComponent, { static: true }]
|
|
2976
3123
|
}], pageChangePassword: [{
|
|
@@ -2980,7 +3127,7 @@ class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent {
|
|
|
2980
3127
|
type: ViewChild,
|
|
2981
3128
|
args: ['passwordForm', { read: NgForm, static: true }]
|
|
2982
3129
|
}] }); })();
|
|
2983
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageChangePasswordComponent, { className: "PoPageChangePasswordComponent", filePath: "lib/components/po-page-change-password/po-page-change-password.component.ts", lineNumber:
|
|
3130
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageChangePasswordComponent, { className: "PoPageChangePasswordComponent", filePath: "lib/components/po-page-change-password/po-page-change-password.component.ts", lineNumber: 62 }); })();
|
|
2984
3131
|
|
|
2985
3132
|
/**
|
|
2986
3133
|
* @description
|
|
@@ -3092,7 +3239,7 @@ class PoPageDynamicService {
|
|
|
3092
3239
|
}
|
|
3093
3240
|
return endpoint;
|
|
3094
3241
|
}
|
|
3095
|
-
static ɵfac = function PoPageDynamicService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(
|
|
3242
|
+
static ɵfac = function PoPageDynamicService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(i1.PoNotificationService), i0.ɵɵinject(i1.PoLanguageService)); };
|
|
3096
3243
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageDynamicService, factory: PoPageDynamicService.ɵfac, providedIn: 'root' });
|
|
3097
3244
|
}
|
|
3098
3245
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicService, [{
|
|
@@ -3100,7 +3247,7 @@ class PoPageDynamicService {
|
|
|
3100
3247
|
args: [{
|
|
3101
3248
|
providedIn: 'root'
|
|
3102
3249
|
}]
|
|
3103
|
-
}], () => [{ type: i1.HttpClient }, { type:
|
|
3250
|
+
}], () => [{ type: i1$1.HttpClient }, { type: i1.PoNotificationService }, { type: i1.PoLanguageService }], null); })();
|
|
3104
3251
|
|
|
3105
3252
|
class PoPageDynamicDetailActionsService {
|
|
3106
3253
|
http;
|
|
@@ -3131,7 +3278,7 @@ class PoPageDynamicDetailActionsService {
|
|
|
3131
3278
|
}
|
|
3132
3279
|
return of(action(id, resource));
|
|
3133
3280
|
}
|
|
3134
|
-
static ɵfac = function PoPageDynamicDetailActionsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicDetailActionsService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
3281
|
+
static ɵfac = function PoPageDynamicDetailActionsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicDetailActionsService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
3135
3282
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageDynamicDetailActionsService, factory: PoPageDynamicDetailActionsService.ɵfac, providedIn: 'root' });
|
|
3136
3283
|
}
|
|
3137
3284
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicDetailActionsService, [{
|
|
@@ -3139,7 +3286,7 @@ class PoPageDynamicDetailActionsService {
|
|
|
3139
3286
|
args: [{
|
|
3140
3287
|
providedIn: 'root'
|
|
3141
3288
|
}]
|
|
3142
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3289
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
3143
3290
|
|
|
3144
3291
|
class PoPageCustomizationService {
|
|
3145
3292
|
http;
|
|
@@ -3212,7 +3359,7 @@ class PoPageCustomizationService {
|
|
|
3212
3359
|
});
|
|
3213
3360
|
return [...mergedOriginalOptions, ...deduplicateNewOptions];
|
|
3214
3361
|
}
|
|
3215
|
-
static ɵfac = function PoPageCustomizationService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageCustomizationService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
3362
|
+
static ɵfac = function PoPageCustomizationService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageCustomizationService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
3216
3363
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageCustomizationService, factory: PoPageCustomizationService.ɵfac, providedIn: 'root' });
|
|
3217
3364
|
}
|
|
3218
3365
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageCustomizationService, [{
|
|
@@ -3220,7 +3367,7 @@ class PoPageCustomizationService {
|
|
|
3220
3367
|
args: [{
|
|
3221
3368
|
providedIn: 'root'
|
|
3222
3369
|
}]
|
|
3223
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3370
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
3224
3371
|
|
|
3225
3372
|
function PoPageDynamicDetailComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
3226
3373
|
i0.ɵɵelementContainer(0);
|
|
@@ -3362,6 +3509,7 @@ class PoPageDynamicDetailComponent {
|
|
|
3362
3509
|
poPageDynamicService;
|
|
3363
3510
|
poPageDynamicDetailActionsService;
|
|
3364
3511
|
poPageCustomizationService;
|
|
3512
|
+
poThemeService;
|
|
3365
3513
|
/** Objeto com propriedades do breadcrumb. */
|
|
3366
3514
|
breadcrumb = { items: [] };
|
|
3367
3515
|
/**
|
|
@@ -3436,6 +3584,7 @@ class PoPageDynamicDetailComponent {
|
|
|
3436
3584
|
subscriptions = [];
|
|
3437
3585
|
_actions = {};
|
|
3438
3586
|
_autoRouter = false;
|
|
3587
|
+
_componentsSize = undefined;
|
|
3439
3588
|
_duplicates = [];
|
|
3440
3589
|
_fields = [];
|
|
3441
3590
|
_keys = [];
|
|
@@ -3474,6 +3623,26 @@ class PoPageDynamicDetailComponent {
|
|
|
3474
3623
|
get autoRouter() {
|
|
3475
3624
|
return this._autoRouter;
|
|
3476
3625
|
}
|
|
3626
|
+
/**
|
|
3627
|
+
* @optional
|
|
3628
|
+
*
|
|
3629
|
+
* @description
|
|
3630
|
+
*
|
|
3631
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
3632
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
3633
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
3634
|
+
*
|
|
3635
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
3636
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
3637
|
+
*
|
|
3638
|
+
* @default `medium`
|
|
3639
|
+
*/
|
|
3640
|
+
set componentsSize(value) {
|
|
3641
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
3642
|
+
}
|
|
3643
|
+
get componentsSize() {
|
|
3644
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
3645
|
+
}
|
|
3477
3646
|
/** Lista dos campos exibidos na página. */
|
|
3478
3647
|
set fields(value) {
|
|
3479
3648
|
this._fields = Array.isArray(value) ? [...value] : [];
|
|
@@ -3483,7 +3652,8 @@ class PoPageDynamicDetailComponent {
|
|
|
3483
3652
|
get fields() {
|
|
3484
3653
|
return this._fields;
|
|
3485
3654
|
}
|
|
3486
|
-
|
|
3655
|
+
/* eslint-disable max-params */
|
|
3656
|
+
constructor(router, activatedRoute, poNotification, poDialogService, poPageDynamicService, poPageDynamicDetailActionsService, poPageCustomizationService, poThemeService, languageService) {
|
|
3487
3657
|
this.router = router;
|
|
3488
3658
|
this.activatedRoute = activatedRoute;
|
|
3489
3659
|
this.poNotification = poNotification;
|
|
@@ -3491,12 +3661,14 @@ class PoPageDynamicDetailComponent {
|
|
|
3491
3661
|
this.poPageDynamicService = poPageDynamicService;
|
|
3492
3662
|
this.poPageDynamicDetailActionsService = poPageDynamicDetailActionsService;
|
|
3493
3663
|
this.poPageCustomizationService = poPageCustomizationService;
|
|
3664
|
+
this.poThemeService = poThemeService;
|
|
3494
3665
|
const language = languageService.getShortLanguage();
|
|
3495
3666
|
this.literals = {
|
|
3496
3667
|
...poPageDynamicDetailLiteralsDefault[poLocaleDefault],
|
|
3497
3668
|
...poPageDynamicDetailLiteralsDefault[language]
|
|
3498
3669
|
};
|
|
3499
3670
|
}
|
|
3671
|
+
/* eslint-enable max-params */
|
|
3500
3672
|
ngOnInit() {
|
|
3501
3673
|
this.loadDataFromAPI();
|
|
3502
3674
|
}
|
|
@@ -3713,8 +3885,8 @@ class PoPageDynamicDetailComponent {
|
|
|
3713
3885
|
};
|
|
3714
3886
|
return this.poPageCustomizationService.getCustomOptions(onLoad, originalOption, pageOptionSchema);
|
|
3715
3887
|
}
|
|
3716
|
-
static ɵfac = function PoPageDynamicDetailComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicDetailComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3717
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDynamicDetailComponent, selectors: [["po-page-dynamic-detail"]], inputs: { breadcrumb: [0, "p-breadcrumb", "breadcrumb"], onLoad: [0, "p-load", "onLoad"], title: [0, "p-title", "title"], serviceApi: [0, "p-service-api", "serviceApi"], actions: [0, "p-actions", "actions"], autoRouter: [0, "p-auto-router", "autoRouter"], fields: [0, "p-fields", "fields"] }, standalone: false, features: [i0.ɵɵProvidersFeature([PoPageDynamicService, PoPageDynamicDetailActionsService])], decls: 6, vars:
|
|
3888
|
+
static ɵfac = function PoPageDynamicDetailComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicDetailComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1.PoNotificationService), i0.ɵɵdirectiveInject(i1.PoDialogService), i0.ɵɵdirectiveInject(PoPageDynamicService), i0.ɵɵdirectiveInject(PoPageDynamicDetailActionsService), i0.ɵɵdirectiveInject(PoPageCustomizationService), i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
3889
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDynamicDetailComponent, selectors: [["po-page-dynamic-detail"]], inputs: { breadcrumb: [0, "p-breadcrumb", "breadcrumb"], onLoad: [0, "p-load", "onLoad"], title: [0, "p-title", "title"], serviceApi: [0, "p-service-api", "serviceApi"], actions: [0, "p-actions", "actions"], autoRouter: [0, "p-auto-router", "autoRouter"], componentsSize: [0, "p-components-size", "componentsSize"], fields: [0, "p-fields", "fields"] }, standalone: false, features: [i0.ɵɵProvidersFeature([PoPageDynamicService, PoPageDynamicDetailActionsService])], decls: 6, vars: 7, consts: [["registerNotFoundTemplate", ""], ["viewFieldsTemplate", ""], [3, "p-actions", "p-breadcrumb", "p-components-size", "p-title"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["p-icon", "ICON_INFO"], [1, "po-font-text-large"], [3, "p-fields", "p-value"]], template: function PoPageDynamicDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3718
3890
|
i0.ɵɵelementStart(0, "po-page-default", 2);
|
|
3719
3891
|
i0.ɵɵtemplate(1, PoPageDynamicDetailComponent_ng_container_1_Template, 1, 0, "ng-container", 3);
|
|
3720
3892
|
i0.ɵɵelementEnd();
|
|
@@ -3722,15 +3894,15 @@ class PoPageDynamicDetailComponent {
|
|
|
3722
3894
|
} if (rf & 2) {
|
|
3723
3895
|
const registerNotFoundTemplate_r2 = i0.ɵɵreference(3);
|
|
3724
3896
|
const viewFieldsTemplate_r3 = i0.ɵɵreference(5);
|
|
3725
|
-
i0.ɵɵproperty("p-actions", ctx.pageActions)("p-breadcrumb", ctx.breadcrumb)("p-title", ctx.title);
|
|
3897
|
+
i0.ɵɵproperty("p-actions", ctx.pageActions)("p-breadcrumb", ctx.breadcrumb)("p-components-size", ctx.componentsSize)("p-title", ctx.title);
|
|
3726
3898
|
i0.ɵɵadvance();
|
|
3727
3899
|
i0.ɵɵproperty("ngIf", ctx.model)("ngIfThen", viewFieldsTemplate_r3)("ngIfElse", registerNotFoundTemplate_r2);
|
|
3728
|
-
} }, dependencies: [i4.NgIf,
|
|
3900
|
+
} }, dependencies: [i4.NgIf, i1.PoDynamicViewComponent, i1.PoIconComponent, i1.PoPageDefaultComponent, i1.PoWidgetComponent], encapsulation: 2 });
|
|
3729
3901
|
}
|
|
3730
3902
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicDetailComponent, [{
|
|
3731
3903
|
type: Component,
|
|
3732
|
-
args: [{ selector: 'po-page-dynamic-detail', providers: [PoPageDynamicService, PoPageDynamicDetailActionsService], standalone: false, template: "<po-page-default
|
|
3733
|
-
}], () => [{ type: i1$
|
|
3904
|
+
args: [{ selector: 'po-page-dynamic-detail', providers: [PoPageDynamicService, PoPageDynamicDetailActionsService], standalone: false, template: "<po-page-default\n [p-actions]=\"pageActions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-components-size]=\"componentsSize\"\n [p-title]=\"title\"\n>\n <ng-container *ngIf=\"model; then viewFieldsTemplate; else registerNotFoundTemplate\"> </ng-container>\n</po-page-default>\n\n<ng-template #registerNotFoundTemplate>\n <po-widget>\n <po-icon p-icon=\"ICON_INFO\"></po-icon>\n <span class=\"po-font-text-large\">\n {{ literals.registerNotFound }}\n </span>\n </po-widget>\n</ng-template>\n\n<ng-template #viewFieldsTemplate>\n <po-dynamic-view [p-fields]=\"fields\" [p-value]=\"model\"> </po-dynamic-view>\n</ng-template>\n" }]
|
|
3905
|
+
}], () => [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i1.PoNotificationService }, { type: i1.PoDialogService }, { type: PoPageDynamicService }, { type: PoPageDynamicDetailActionsService }, { type: PoPageCustomizationService }, { type: i1.PoThemeService }, { type: i1.PoLanguageService }], { breadcrumb: [{
|
|
3734
3906
|
type: Input,
|
|
3735
3907
|
args: ['p-breadcrumb']
|
|
3736
3908
|
}], onLoad: [{
|
|
@@ -3748,11 +3920,14 @@ class PoPageDynamicDetailComponent {
|
|
|
3748
3920
|
}], autoRouter: [{
|
|
3749
3921
|
type: Input,
|
|
3750
3922
|
args: ['p-auto-router']
|
|
3923
|
+
}], componentsSize: [{
|
|
3924
|
+
type: Input,
|
|
3925
|
+
args: ['p-components-size']
|
|
3751
3926
|
}], fields: [{
|
|
3752
3927
|
type: Input,
|
|
3753
3928
|
args: ['p-fields']
|
|
3754
3929
|
}] }); })();
|
|
3755
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicDetailComponent, { className: "PoPageDynamicDetailComponent", filePath: "lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.ts", lineNumber:
|
|
3930
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicDetailComponent, { className: "PoPageDynamicDetailComponent", filePath: "lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.ts", lineNumber: 159 }); })();
|
|
3756
3931
|
|
|
3757
3932
|
/**
|
|
3758
3933
|
* @description
|
|
@@ -3848,7 +4023,7 @@ class PoPageDynamicEditActionsService {
|
|
|
3848
4023
|
}
|
|
3849
4024
|
return of(action(resource, id));
|
|
3850
4025
|
}
|
|
3851
|
-
static ɵfac = function PoPageDynamicEditActionsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicEditActionsService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
4026
|
+
static ɵfac = function PoPageDynamicEditActionsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicEditActionsService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
3852
4027
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageDynamicEditActionsService, factory: PoPageDynamicEditActionsService.ɵfac, providedIn: 'root' });
|
|
3853
4028
|
}
|
|
3854
4029
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicEditActionsService, [{
|
|
@@ -3856,7 +4031,7 @@ class PoPageDynamicEditActionsService {
|
|
|
3856
4031
|
args: [{
|
|
3857
4032
|
providedIn: 'root'
|
|
3858
4033
|
}]
|
|
3859
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
4034
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
3860
4035
|
|
|
3861
4036
|
const _c0$5 = ["dynamicForm"];
|
|
3862
4037
|
const _c1$3 = ["gridDetail"];
|
|
@@ -3888,16 +4063,16 @@ function PoPageDynamicEditComponent_ng_template_4_div_2_Template(rf, ctx) { if (
|
|
|
3888
4063
|
i0.ɵɵadvance();
|
|
3889
4064
|
i0.ɵɵproperty("p-label", ctx_r0.detailFields[0].divider);
|
|
3890
4065
|
i0.ɵɵadvance(2);
|
|
3891
|
-
i0.ɵɵproperty("p-label", ctx_r0.literals.detailActionNew);
|
|
4066
|
+
i0.ɵɵproperty("p-size", ctx_r0.componentsSize)("p-label", ctx_r0.literals.detailActionNew);
|
|
3892
4067
|
i0.ɵɵadvance();
|
|
3893
4068
|
i0.ɵɵproperty("p-row-actions", ctx_r0.detailActions)("p-columns", ctx_r0.detailFields[0].detail.columns)("p-data", ctx_r0.model[ctx_r0.detailFields[0].property]);
|
|
3894
4069
|
} }
|
|
3895
4070
|
function PoPageDynamicEditComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
3896
4071
|
i0.ɵɵelement(0, "po-dynamic-form", 8, 2);
|
|
3897
|
-
i0.ɵɵtemplate(2, PoPageDynamicEditComponent_ng_template_4_div_2_Template, 6,
|
|
4072
|
+
i0.ɵɵtemplate(2, PoPageDynamicEditComponent_ng_template_4_div_2_Template, 6, 6, "div", 9);
|
|
3898
4073
|
} if (rf & 2) {
|
|
3899
4074
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3900
|
-
i0.ɵɵproperty("p-fields", ctx_r0.controlFields)("p-value", ctx_r0.model);
|
|
4075
|
+
i0.ɵɵproperty("p-components-size", ctx_r0.componentsSize)("p-fields", ctx_r0.controlFields)("p-value", ctx_r0.model);
|
|
3901
4076
|
i0.ɵɵadvance(2);
|
|
3902
4077
|
i0.ɵɵproperty("ngIf", ctx_r0.detailFields.length > 0);
|
|
3903
4078
|
} }
|
|
@@ -4056,6 +4231,7 @@ class PoPageDynamicEditComponent {
|
|
|
4056
4231
|
poPageDynamicService;
|
|
4057
4232
|
poPageCustomizationService;
|
|
4058
4233
|
poPageDynamicEditActionsService;
|
|
4234
|
+
poThemeService;
|
|
4059
4235
|
dynamicForm;
|
|
4060
4236
|
gridDetail;
|
|
4061
4237
|
/** Objeto com propriedades do breadcrumb. */
|
|
@@ -4200,6 +4376,7 @@ class PoPageDynamicEditComponent {
|
|
|
4200
4376
|
language;
|
|
4201
4377
|
subscriptions = [];
|
|
4202
4378
|
_actions = {};
|
|
4379
|
+
_componentsSize = undefined;
|
|
4203
4380
|
_literals;
|
|
4204
4381
|
_autoRouter = false;
|
|
4205
4382
|
_controlFields = [];
|
|
@@ -4328,7 +4505,28 @@ class PoPageDynamicEditComponent {
|
|
|
4328
4505
|
get fields() {
|
|
4329
4506
|
return this._fields;
|
|
4330
4507
|
}
|
|
4331
|
-
|
|
4508
|
+
/**
|
|
4509
|
+
* @optional
|
|
4510
|
+
*
|
|
4511
|
+
* @description
|
|
4512
|
+
*
|
|
4513
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
4514
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
4515
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
4516
|
+
*
|
|
4517
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
4518
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
4519
|
+
*
|
|
4520
|
+
* @default `medium`
|
|
4521
|
+
*/
|
|
4522
|
+
set componentsSize(value) {
|
|
4523
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
4524
|
+
}
|
|
4525
|
+
get componentsSize() {
|
|
4526
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
4527
|
+
}
|
|
4528
|
+
/* eslint-disable max-params */
|
|
4529
|
+
constructor(router, activatedRoute, poNotification, poDialogService, poPageDynamicService, poPageCustomizationService, poPageDynamicEditActionsService, poThemeService, languageService) {
|
|
4332
4530
|
this.router = router;
|
|
4333
4531
|
this.activatedRoute = activatedRoute;
|
|
4334
4532
|
this.poNotification = poNotification;
|
|
@@ -4336,8 +4534,10 @@ class PoPageDynamicEditComponent {
|
|
|
4336
4534
|
this.poPageDynamicService = poPageDynamicService;
|
|
4337
4535
|
this.poPageCustomizationService = poPageCustomizationService;
|
|
4338
4536
|
this.poPageDynamicEditActionsService = poPageDynamicEditActionsService;
|
|
4537
|
+
this.poThemeService = poThemeService;
|
|
4339
4538
|
this.language = languageService.getShortLanguage();
|
|
4340
4539
|
}
|
|
4540
|
+
/* eslint-enable max-params */
|
|
4341
4541
|
ngOnInit() {
|
|
4342
4542
|
this.loadDataFromAPI();
|
|
4343
4543
|
}
|
|
@@ -4702,7 +4902,7 @@ class PoPageDynamicEditComponent {
|
|
|
4702
4902
|
isObject(value) {
|
|
4703
4903
|
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
4704
4904
|
}
|
|
4705
|
-
static ɵfac = function PoPageDynamicEditComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicEditComponent)(i0.ɵɵdirectiveInject(i1$
|
|
4905
|
+
static ɵfac = function PoPageDynamicEditComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicEditComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1.PoNotificationService), i0.ɵɵdirectiveInject(i1.PoDialogService), i0.ɵɵdirectiveInject(PoPageDynamicService), i0.ɵɵdirectiveInject(PoPageCustomizationService), i0.ɵɵdirectiveInject(PoPageDynamicEditActionsService), i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
4706
4906
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDynamicEditComponent, selectors: [["po-page-dynamic-edit"]], viewQuery: function PoPageDynamicEditComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4707
4907
|
i0.ɵɵviewQuery(_c0$5, 5);
|
|
4708
4908
|
i0.ɵɵviewQuery(_c1$3, 5);
|
|
@@ -4710,23 +4910,23 @@ class PoPageDynamicEditComponent {
|
|
|
4710
4910
|
let _t;
|
|
4711
4911
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicForm = _t.first);
|
|
4712
4912
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.gridDetail = _t.first);
|
|
4713
|
-
} }, inputs: { breadcrumb: [0, "p-breadcrumb", "breadcrumb"], serviceApi: [0, "p-service-api", "serviceApi"], title: [0, "p-title", "title"], onLoad: [0, "p-load", "onLoad"], onLoadData: [0, "p-load-data", "onLoadData"], actions: [0, "p-actions", "actions"], literals: [0, "p-literals", "literals"], notificationType: [0, "p-notification-type", "notificationType"], autoRouter: [0, "p-auto-router", "autoRouter"], fields: [0, "p-fields", "fields"] }, standalone: false, features: [i0.ɵɵProvidersFeature([PoPageDynamicService])], decls: 6, vars:
|
|
4913
|
+
} }, inputs: { breadcrumb: [0, "p-breadcrumb", "breadcrumb"], serviceApi: [0, "p-service-api", "serviceApi"], title: [0, "p-title", "title"], onLoad: [0, "p-load", "onLoad"], onLoadData: [0, "p-load-data", "onLoadData"], actions: [0, "p-actions", "actions"], literals: [0, "p-literals", "literals"], notificationType: [0, "p-notification-type", "notificationType"], autoRouter: [0, "p-auto-router", "autoRouter"], fields: [0, "p-fields", "fields"], componentsSize: [0, "p-components-size", "componentsSize"] }, standalone: false, features: [i0.ɵɵProvidersFeature([PoPageDynamicService])], decls: 6, vars: 7, consts: [["registerNotFoundTemplate", ""], ["formFieldsTemplate", ""], ["dynamicForm", ""], ["gridDetail", ""], [3, "p-actions", "p-breadcrumb", "p-components-size", "p-title"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["p-icon", "ICON_INFO"], [1, "po-font-text-large"], [3, "p-components-size", "p-fields", "p-value"], ["class", "po-sm-12", 4, "ngIf"], [1, "po-sm-12"], [3, "p-label"], [1, "po-row", "po-mb-2"], [3, "p-click", "p-size", "p-label"], [3, "p-row-actions", "p-columns", "p-data"]], template: function PoPageDynamicEditComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4714
4914
|
i0.ɵɵelementStart(0, "po-page-default", 4);
|
|
4715
4915
|
i0.ɵɵtemplate(1, PoPageDynamicEditComponent_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
4716
4916
|
i0.ɵɵelementEnd();
|
|
4717
|
-
i0.ɵɵtemplate(2, PoPageDynamicEditComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, PoPageDynamicEditComponent_ng_template_4_Template, 3,
|
|
4917
|
+
i0.ɵɵtemplate(2, PoPageDynamicEditComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, PoPageDynamicEditComponent_ng_template_4_Template, 3, 4, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
4718
4918
|
} if (rf & 2) {
|
|
4719
4919
|
const registerNotFoundTemplate_r3 = i0.ɵɵreference(3);
|
|
4720
4920
|
const formFieldsTemplate_r4 = i0.ɵɵreference(5);
|
|
4721
|
-
i0.ɵɵproperty("p-actions", ctx.pageActions)("p-breadcrumb", ctx.breadcrumb)("p-title", ctx.title);
|
|
4921
|
+
i0.ɵɵproperty("p-actions", ctx.pageActions)("p-breadcrumb", ctx.breadcrumb)("p-components-size", ctx.componentsSize)("p-title", ctx.title);
|
|
4722
4922
|
i0.ɵɵadvance();
|
|
4723
4923
|
i0.ɵɵproperty("ngIf", ctx.model)("ngIfThen", formFieldsTemplate_r4)("ngIfElse", registerNotFoundTemplate_r3);
|
|
4724
|
-
} }, dependencies: [i4.NgIf,
|
|
4924
|
+
} }, dependencies: [i4.NgIf, i1.PoButtonComponent, i1.PoDividerComponent, i1.PoDynamicFormComponent, i1.PoGridComponent, i1.PoIconComponent, i1.PoPageDefaultComponent, i1.PoWidgetComponent], encapsulation: 2 });
|
|
4725
4925
|
}
|
|
4726
4926
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicEditComponent, [{
|
|
4727
4927
|
type: Component,
|
|
4728
|
-
args: [{ selector: 'po-page-dynamic-edit', providers: [PoPageDynamicService], standalone: false, template: "<po-page-default
|
|
4729
|
-
}], () => [{ type: i1$
|
|
4928
|
+
args: [{ selector: 'po-page-dynamic-edit', providers: [PoPageDynamicService], standalone: false, template: "<po-page-default\n [p-actions]=\"pageActions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-components-size]=\"componentsSize\"\n [p-title]=\"title\"\n>\n <ng-container *ngIf=\"model; then formFieldsTemplate; else registerNotFoundTemplate\"> </ng-container>\n</po-page-default>\n\n<ng-template #registerNotFoundTemplate>\n <po-widget>\n <po-icon p-icon=\"ICON_INFO\"></po-icon>\n <span class=\"po-font-text-large\">\n {{ literals.registerNotFound }}\n </span>\n </po-widget>\n</ng-template>\n\n<ng-template #formFieldsTemplate>\n <po-dynamic-form #dynamicForm [p-components-size]=\"componentsSize\" [p-fields]=\"controlFields\" [p-value]=\"model\">\n </po-dynamic-form>\n\n <div *ngIf=\"detailFields.length > 0\" class=\"po-sm-12\">\n <po-divider [p-label]=\"detailFields[0].divider\"></po-divider>\n\n <div class=\"po-row po-mb-2\">\n <po-button\n [p-size]=\"componentsSize\"\n [p-label]=\"literals.detailActionNew\"\n (p-click)=\"detailActionNew()\"\n ></po-button>\n </div>\n\n <po-grid\n #gridDetail\n [p-row-actions]=\"detailActions\"\n [p-columns]=\"detailFields[0].detail.columns\"\n [p-data]=\"model[detailFields[0].property]\"\n >\n </po-grid>\n </div>\n</ng-template>\n" }]
|
|
4929
|
+
}], () => [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i1.PoNotificationService }, { type: i1.PoDialogService }, { type: PoPageDynamicService }, { type: PoPageCustomizationService }, { type: PoPageDynamicEditActionsService }, { type: i1.PoThemeService }, { type: i1.PoLanguageService }], { dynamicForm: [{
|
|
4730
4930
|
type: ViewChild,
|
|
4731
4931
|
args: ['dynamicForm']
|
|
4732
4932
|
}], gridDetail: [{
|
|
@@ -4762,8 +4962,11 @@ class PoPageDynamicEditComponent {
|
|
|
4762
4962
|
}], fields: [{
|
|
4763
4963
|
type: Input,
|
|
4764
4964
|
args: ['p-fields']
|
|
4965
|
+
}], componentsSize: [{
|
|
4966
|
+
type: Input,
|
|
4967
|
+
args: ['p-components-size']
|
|
4765
4968
|
}] }); })();
|
|
4766
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicEditComponent, { className: "PoPageDynamicEditComponent", filePath: "lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.ts", lineNumber:
|
|
4969
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicEditComponent, { className: "PoPageDynamicEditComponent", filePath: "lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.ts", lineNumber: 198 }); })();
|
|
4767
4970
|
|
|
4768
4971
|
/**
|
|
4769
4972
|
* @description
|
|
@@ -4867,6 +5070,7 @@ const poAdvancedFiltersLiteralsDefault = {
|
|
|
4867
5070
|
* Componente de uso interno.
|
|
4868
5071
|
*/
|
|
4869
5072
|
class PoAdvancedFilterBaseComponent {
|
|
5073
|
+
poThemeService;
|
|
4870
5074
|
poModal;
|
|
4871
5075
|
/**
|
|
4872
5076
|
* Mantém na modal de busca avançada os valores preenchidos do último filtro realizado pelo usuário.
|
|
@@ -4891,8 +5095,29 @@ class PoAdvancedFilterBaseComponent {
|
|
|
4891
5095
|
label: this.literals.cancelLabel
|
|
4892
5096
|
};
|
|
4893
5097
|
optionsServiceChosenOptions = [];
|
|
5098
|
+
_componentsSize = undefined;
|
|
4894
5099
|
_filters = [];
|
|
4895
5100
|
_literals;
|
|
5101
|
+
/**
|
|
5102
|
+
* @optional
|
|
5103
|
+
*
|
|
5104
|
+
* @description
|
|
5105
|
+
*
|
|
5106
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
5107
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
5108
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
5109
|
+
*
|
|
5110
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
5111
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
5112
|
+
*
|
|
5113
|
+
* @default `medium`
|
|
5114
|
+
*/
|
|
5115
|
+
set componentsSize(value) {
|
|
5116
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
5117
|
+
}
|
|
5118
|
+
get componentsSize() {
|
|
5119
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
5120
|
+
}
|
|
4896
5121
|
/**
|
|
4897
5122
|
* Coleção de objetos que implementam a interface PoPageDynamicSearchFilters, para definição dos campos que serão criados
|
|
4898
5123
|
* dinamicamente.
|
|
@@ -4921,7 +5146,8 @@ class PoAdvancedFilterBaseComponent {
|
|
|
4921
5146
|
get literals() {
|
|
4922
5147
|
return this._literals || poAdvancedFiltersLiteralsDefault[this.language];
|
|
4923
5148
|
}
|
|
4924
|
-
constructor(languageService) {
|
|
5149
|
+
constructor(languageService, poThemeService) {
|
|
5150
|
+
this.poThemeService = poThemeService;
|
|
4925
5151
|
this.language = languageService.getShortLanguage();
|
|
4926
5152
|
}
|
|
4927
5153
|
// Retorna os models dos campos preenchidos
|
|
@@ -4937,17 +5163,17 @@ class PoAdvancedFilterBaseComponent {
|
|
|
4937
5163
|
}
|
|
4938
5164
|
return { filter: this.filter, optionsService: optionServiceOptions };
|
|
4939
5165
|
}
|
|
4940
|
-
static ɵfac = function PoAdvancedFilterBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoAdvancedFilterBaseComponent)(i0.ɵɵdirectiveInject(
|
|
5166
|
+
static ɵfac = function PoAdvancedFilterBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoAdvancedFilterBaseComponent)(i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
4941
5167
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoAdvancedFilterBaseComponent, viewQuery: function PoAdvancedFilterBaseComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4942
5168
|
i0.ɵɵviewQuery(PoModalComponent, 7);
|
|
4943
5169
|
} if (rf & 2) {
|
|
4944
5170
|
let _t;
|
|
4945
5171
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poModal = _t.first);
|
|
4946
|
-
} }, inputs: { keepFilters: [2, "p-keep-filters", "keepFilters", convertToBoolean], filters: [0, "p-filters", "filters"], literals: [0, "p-literals", "literals"] }, outputs: { searchEvent: "p-search-event" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
5172
|
+
} }, inputs: { keepFilters: [2, "p-keep-filters", "keepFilters", convertToBoolean], componentsSize: [0, "p-components-size", "componentsSize"], filters: [0, "p-filters", "filters"], literals: [0, "p-literals", "literals"] }, outputs: { searchEvent: "p-search-event" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
4947
5173
|
}
|
|
4948
5174
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoAdvancedFilterBaseComponent, [{
|
|
4949
5175
|
type: Directive
|
|
4950
|
-
}], () => [{ type:
|
|
5176
|
+
}], () => [{ type: i1.PoLanguageService }, { type: i1.PoThemeService }], { poModal: [{
|
|
4951
5177
|
type: ViewChild,
|
|
4952
5178
|
args: [PoModalComponent, { static: true }]
|
|
4953
5179
|
}], keepFilters: [{
|
|
@@ -4956,6 +5182,9 @@ class PoAdvancedFilterBaseComponent {
|
|
|
4956
5182
|
}], searchEvent: [{
|
|
4957
5183
|
type: Output,
|
|
4958
5184
|
args: ['p-search-event']
|
|
5185
|
+
}], componentsSize: [{
|
|
5186
|
+
type: Input,
|
|
5187
|
+
args: ['p-components-size']
|
|
4959
5188
|
}], filters: [{
|
|
4960
5189
|
type: Input,
|
|
4961
5190
|
args: ['p-filters']
|
|
@@ -4977,10 +5206,12 @@ class PoAdvancedFilterBaseComponent {
|
|
|
4977
5206
|
* </example-private>
|
|
4978
5207
|
*/
|
|
4979
5208
|
class PoAdvancedFilterComponent extends PoAdvancedFilterBaseComponent {
|
|
5209
|
+
poThemeService;
|
|
4980
5210
|
poDynamicForm;
|
|
4981
5211
|
subscription = new Subscription();
|
|
4982
|
-
constructor(languageService) {
|
|
4983
|
-
super(languageService);
|
|
5212
|
+
constructor(languageService, poThemeService) {
|
|
5213
|
+
super(languageService, poThemeService);
|
|
5214
|
+
this.poThemeService = poThemeService;
|
|
4984
5215
|
}
|
|
4985
5216
|
ngOnInit() {
|
|
4986
5217
|
this.optionsServiceSubscribe();
|
|
@@ -5009,26 +5240,26 @@ class PoAdvancedFilterComponent extends PoAdvancedFilterBaseComponent {
|
|
|
5009
5240
|
}
|
|
5010
5241
|
}));
|
|
5011
5242
|
}
|
|
5012
|
-
static ɵfac = function PoAdvancedFilterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoAdvancedFilterComponent)(i0.ɵɵdirectiveInject(
|
|
5243
|
+
static ɵfac = function PoAdvancedFilterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoAdvancedFilterComponent)(i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
5013
5244
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoAdvancedFilterComponent, selectors: [["po-advanced-filter"]], viewQuery: function PoAdvancedFilterComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5014
5245
|
i0.ɵɵviewQuery(PoDynamicFormComponent, 7);
|
|
5015
5246
|
} if (rf & 2) {
|
|
5016
5247
|
let _t;
|
|
5017
5248
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poDynamicForm = _t.first);
|
|
5018
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars:
|
|
5249
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 7, consts: [["p-hide-close", "", 3, "p-primary-action", "p-secondary-action", "p-components-size", "p-title"], [3, "p-components-size", "p-fields", "p-value"]], template: function PoAdvancedFilterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5019
5250
|
i0.ɵɵelementStart(0, "po-modal", 0);
|
|
5020
5251
|
i0.ɵɵelement(1, "po-dynamic-form", 1);
|
|
5021
5252
|
i0.ɵɵelementEnd();
|
|
5022
5253
|
} if (rf & 2) {
|
|
5023
|
-
i0.ɵɵproperty("p-primary-action", ctx.primaryAction)("p-secondary-action", ctx.secondaryAction)("p-title", ctx.literals.title);
|
|
5254
|
+
i0.ɵɵproperty("p-primary-action", ctx.primaryAction)("p-secondary-action", ctx.secondaryAction)("p-components-size", ctx.componentsSize)("p-title", ctx.literals.title);
|
|
5024
5255
|
i0.ɵɵadvance();
|
|
5025
|
-
i0.ɵɵproperty("p-fields", ctx.filters)("p-value", ctx.filter);
|
|
5026
|
-
} }, dependencies: [
|
|
5256
|
+
i0.ɵɵproperty("p-components-size", ctx.componentsSize)("p-fields", ctx.filters)("p-value", ctx.filter);
|
|
5257
|
+
} }, dependencies: [i1.PoDynamicFormComponent, i1.PoModalComponent], encapsulation: 2 });
|
|
5027
5258
|
}
|
|
5028
5259
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoAdvancedFilterComponent, [{
|
|
5029
5260
|
type: Component,
|
|
5030
|
-
args: [{ selector: 'po-advanced-filter', standalone: false, template: "<po-modal\n p-hide-close\n [p-primary-action]=\"primaryAction\"\n [p-secondary-action]=\"secondaryAction\"\n [p-title]=\"literals.title\"\n>\n <po-dynamic-form [p-fields]=\"filters\" [p-value]=\"filter\"> </po-dynamic-form>\n</po-modal>\n" }]
|
|
5031
|
-
}], () => [{ type:
|
|
5261
|
+
args: [{ selector: 'po-advanced-filter', standalone: false, template: "<po-modal\n p-hide-close\n [p-primary-action]=\"primaryAction\"\n [p-secondary-action]=\"secondaryAction\"\n [p-components-size]=\"componentsSize\"\n [p-title]=\"literals.title\"\n>\n <po-dynamic-form [p-components-size]=\"componentsSize\" [p-fields]=\"filters\" [p-value]=\"filter\"> </po-dynamic-form>\n</po-modal>\n" }]
|
|
5262
|
+
}], () => [{ type: i1.PoLanguageService }, { type: i1.PoThemeService }], { poDynamicForm: [{
|
|
5032
5263
|
type: ViewChild,
|
|
5033
5264
|
args: [PoDynamicFormComponent, { static: true }]
|
|
5034
5265
|
}] }); })();
|
|
@@ -5075,6 +5306,7 @@ const poPageDynamicSearchLiteralsDefault = {
|
|
|
5075
5306
|
* e exiba as informações.
|
|
5076
5307
|
*/
|
|
5077
5308
|
class PoPageDynamicSearchBaseComponent {
|
|
5309
|
+
poThemeService;
|
|
5078
5310
|
/** Nesta propriedade deve ser definido um array de objetos que implementam a interface `PoPageAction`. */
|
|
5079
5311
|
actions = [];
|
|
5080
5312
|
/** Objeto com propriedades do breadcrumb. */
|
|
@@ -5213,12 +5445,33 @@ class PoPageDynamicSearchBaseComponent {
|
|
|
5213
5445
|
*/
|
|
5214
5446
|
quickSearch = new EventEmitter();
|
|
5215
5447
|
advancedFilterLiterals;
|
|
5448
|
+
_componentsSize = undefined;
|
|
5216
5449
|
_filters = [];
|
|
5217
5450
|
_hideCloseDisclaimers = [];
|
|
5218
5451
|
_literals;
|
|
5219
5452
|
_quickSearchWidth;
|
|
5220
5453
|
language;
|
|
5221
5454
|
previousFilters;
|
|
5455
|
+
/**
|
|
5456
|
+
* @optional
|
|
5457
|
+
*
|
|
5458
|
+
* @description
|
|
5459
|
+
*
|
|
5460
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
5461
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
5462
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
5463
|
+
*
|
|
5464
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
5465
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
5466
|
+
*
|
|
5467
|
+
* @default `medium`
|
|
5468
|
+
*/
|
|
5469
|
+
set componentsSize(value) {
|
|
5470
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
5471
|
+
}
|
|
5472
|
+
get componentsSize() {
|
|
5473
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
5474
|
+
}
|
|
5222
5475
|
/**
|
|
5223
5476
|
* @optional
|
|
5224
5477
|
*
|
|
@@ -5320,7 +5573,8 @@ class PoPageDynamicSearchBaseComponent {
|
|
|
5320
5573
|
get hideCloseDisclaimers() {
|
|
5321
5574
|
return this._hideCloseDisclaimers;
|
|
5322
5575
|
}
|
|
5323
|
-
constructor(languageService) {
|
|
5576
|
+
constructor(languageService, poThemeService) {
|
|
5577
|
+
this.poThemeService = poThemeService;
|
|
5324
5578
|
this.language = languageService.getShortLanguage();
|
|
5325
5579
|
}
|
|
5326
5580
|
setAdvancedFilterLiterals(literals) {
|
|
@@ -5338,12 +5592,12 @@ class PoPageDynamicSearchBaseComponent {
|
|
|
5338
5592
|
}
|
|
5339
5593
|
});
|
|
5340
5594
|
}
|
|
5341
|
-
static ɵfac = function PoPageDynamicSearchBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicSearchBaseComponent)(i0.ɵɵdirectiveInject(
|
|
5342
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageDynamicSearchBaseComponent, inputs: { actions: [0, "p-actions", "actions"], breadcrumb: [0, "p-breadcrumb", "breadcrumb"], keepFilters: [2, "p-keep-filters", "keepFilters", convertToBoolean], concatFilters: [2, "p-concat-filters", "concatFilters", convertToBoolean], hideRemoveAllDisclaimer: [2, "p-hide-remove-all-disclaimer", "hideRemoveAllDisclaimer", convertToBoolean], onLoad: [0, "p-load", "onLoad"], title: [0, "p-title", "title"], quickSearchValue: [0, "p-quick-search-value", "quickSearchValue"], visibleFixedFilters: [0, "p-visible-fixed-filters", "visibleFixedFilters"], literals: [0, "p-literals", "literals"], filters: [0, "p-filters", "filters"], quickSearchWidth: [0, "p-quick-search-width", "quickSearchWidth"], hideCloseDisclaimers: [0, "p-hide-close-disclaimers", "hideCloseDisclaimers"] }, outputs: { advancedSearch: "p-advanced-search", changeDisclaimers: "p-change-disclaimers", quickSearch: "p-quick-search" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
5595
|
+
static ɵfac = function PoPageDynamicSearchBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicSearchBaseComponent)(i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
5596
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageDynamicSearchBaseComponent, inputs: { actions: [0, "p-actions", "actions"], breadcrumb: [0, "p-breadcrumb", "breadcrumb"], keepFilters: [2, "p-keep-filters", "keepFilters", convertToBoolean], concatFilters: [2, "p-concat-filters", "concatFilters", convertToBoolean], hideRemoveAllDisclaimer: [2, "p-hide-remove-all-disclaimer", "hideRemoveAllDisclaimer", convertToBoolean], onLoad: [0, "p-load", "onLoad"], title: [0, "p-title", "title"], quickSearchValue: [0, "p-quick-search-value", "quickSearchValue"], visibleFixedFilters: [0, "p-visible-fixed-filters", "visibleFixedFilters"], componentsSize: [0, "p-components-size", "componentsSize"], literals: [0, "p-literals", "literals"], filters: [0, "p-filters", "filters"], quickSearchWidth: [0, "p-quick-search-width", "quickSearchWidth"], hideCloseDisclaimers: [0, "p-hide-close-disclaimers", "hideCloseDisclaimers"] }, outputs: { advancedSearch: "p-advanced-search", changeDisclaimers: "p-change-disclaimers", quickSearch: "p-quick-search" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
5343
5597
|
}
|
|
5344
5598
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicSearchBaseComponent, [{
|
|
5345
5599
|
type: Directive
|
|
5346
|
-
}], () => [{ type:
|
|
5600
|
+
}], () => [{ type: i1.PoLanguageService }, { type: i1.PoThemeService }], { actions: [{
|
|
5347
5601
|
type: Input,
|
|
5348
5602
|
args: ['p-actions']
|
|
5349
5603
|
}], breadcrumb: [{
|
|
@@ -5379,6 +5633,9 @@ class PoPageDynamicSearchBaseComponent {
|
|
|
5379
5633
|
}], quickSearch: [{
|
|
5380
5634
|
type: Output,
|
|
5381
5635
|
args: ['p-quick-search']
|
|
5636
|
+
}], componentsSize: [{
|
|
5637
|
+
type: Input,
|
|
5638
|
+
args: ['p-components-size']
|
|
5382
5639
|
}], literals: [{
|
|
5383
5640
|
type: Input,
|
|
5384
5641
|
args: ['p-literals']
|
|
@@ -5414,6 +5671,7 @@ class PoPageDynamicSearchComponent extends PoPageDynamicSearchBaseComponent {
|
|
|
5414
5671
|
languageService;
|
|
5415
5672
|
poPageCustomizationService;
|
|
5416
5673
|
changeDetector;
|
|
5674
|
+
poThemeService;
|
|
5417
5675
|
poAdvancedFilter;
|
|
5418
5676
|
poPageList;
|
|
5419
5677
|
loadSubscription;
|
|
@@ -5430,11 +5688,12 @@ class PoPageDynamicSearchComponent extends PoPageDynamicSearchBaseComponent {
|
|
|
5430
5688
|
placeholder: this.literals.searchPlaceholder,
|
|
5431
5689
|
width: this.quickSearchWidth
|
|
5432
5690
|
};
|
|
5433
|
-
constructor(languageService, poPageCustomizationService, changeDetector) {
|
|
5434
|
-
super(languageService);
|
|
5691
|
+
constructor(languageService, poPageCustomizationService, changeDetector, poThemeService) {
|
|
5692
|
+
super(languageService, poThemeService);
|
|
5435
5693
|
this.languageService = languageService;
|
|
5436
5694
|
this.poPageCustomizationService = poPageCustomizationService;
|
|
5437
5695
|
this.changeDetector = changeDetector;
|
|
5696
|
+
this.poThemeService = poThemeService;
|
|
5438
5697
|
}
|
|
5439
5698
|
get disclaimerGroup() {
|
|
5440
5699
|
return Object.assign({}, this._disclaimerGroup, {
|
|
@@ -5699,7 +5958,7 @@ class PoPageDynamicSearchComponent extends PoPageDynamicSearchBaseComponent {
|
|
|
5699
5958
|
};
|
|
5700
5959
|
return this.poPageCustomizationService.getCustomOptions(onLoad, originalOption, pageOptionSchema);
|
|
5701
5960
|
}
|
|
5702
|
-
static ɵfac = function PoPageDynamicSearchComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicSearchComponent)(i0.ɵɵdirectiveInject(
|
|
5961
|
+
static ɵfac = function PoPageDynamicSearchComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicSearchComponent)(i0.ɵɵdirectiveInject(i1.PoLanguageService), i0.ɵɵdirectiveInject(PoPageCustomizationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
5703
5962
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDynamicSearchComponent, selectors: [["po-page-dynamic-search"]], viewQuery: function PoPageDynamicSearchComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5704
5963
|
i0.ɵɵviewQuery(PoAdvancedFilterComponent, 7);
|
|
5705
5964
|
i0.ɵɵviewQuery(PoPageListComponent, 7);
|
|
@@ -5707,7 +5966,7 @@ class PoPageDynamicSearchComponent extends PoPageDynamicSearchBaseComponent {
|
|
|
5707
5966
|
let _t;
|
|
5708
5967
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poAdvancedFilter = _t.first);
|
|
5709
5968
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poPageList = _t.first);
|
|
5710
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$4, decls: 4, vars:
|
|
5969
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$4, decls: 4, vars: 11, consts: [["poPageList", ""], [3, "p-actions", "p-breadcrumb", "p-components-size", "p-disclaimer-group", "p-filter", "p-title", "p-quick-search-value"], [3, "p-search-event", "p-components-size", "p-filters", "p-keep-filters", "p-literals"]], template: function PoPageDynamicSearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5711
5970
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
5712
5971
|
i0.ɵɵprojectionDef();
|
|
5713
5972
|
i0.ɵɵelementStart(0, "po-page-list", 1, 0)(2, "po-advanced-filter", 2);
|
|
@@ -5716,22 +5975,22 @@ class PoPageDynamicSearchComponent extends PoPageDynamicSearchBaseComponent {
|
|
|
5716
5975
|
i0.ɵɵprojection(3);
|
|
5717
5976
|
i0.ɵɵelementEnd();
|
|
5718
5977
|
} if (rf & 2) {
|
|
5719
|
-
i0.ɵɵproperty("p-actions", ctx.actions)("p-breadcrumb", ctx.breadcrumb)("p-disclaimer-group", ctx.disclaimerGroup)("p-filter", ctx.filterSettings)("p-title", ctx.title)("p-quick-search-value", ctx.quickSearchValue);
|
|
5978
|
+
i0.ɵɵproperty("p-actions", ctx.actions)("p-breadcrumb", ctx.breadcrumb)("p-components-size", ctx.componentsSize)("p-disclaimer-group", ctx.disclaimerGroup)("p-filter", ctx.filterSettings)("p-title", ctx.title)("p-quick-search-value", ctx.quickSearchValue);
|
|
5720
5979
|
i0.ɵɵadvance(2);
|
|
5721
|
-
i0.ɵɵproperty("p-filters", ctx.filters)("p-keep-filters", ctx.keepFilters)("p-literals", ctx.advancedFilterLiterals);
|
|
5722
|
-
} }, dependencies: [
|
|
5980
|
+
i0.ɵɵproperty("p-components-size", ctx.componentsSize)("p-filters", ctx.filters)("p-keep-filters", ctx.keepFilters)("p-literals", ctx.advancedFilterLiterals);
|
|
5981
|
+
} }, dependencies: [i1.PoPageListComponent, PoAdvancedFilterComponent], encapsulation: 2 });
|
|
5723
5982
|
}
|
|
5724
5983
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicSearchComponent, [{
|
|
5725
5984
|
type: Component,
|
|
5726
|
-
args: [{ selector: 'po-page-dynamic-search', standalone: false, template: "<po-page-list\n #poPageList\n [p-actions]=\"actions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-disclaimer-group]=\"disclaimerGroup\"\n [p-filter]=\"filterSettings\"\n [p-title]=\"title\"\n [p-quick-search-value]=\"quickSearchValue\"\n>\n <po-advanced-filter\n [p-filters]=\"filters\"\n [p-keep-filters]=\"keepFilters\"\n [p-literals]=\"advancedFilterLiterals\"\n (p-search-event)=\"onAdvancedSearch($event, true)\"\n >\n </po-advanced-filter>\n\n <ng-content></ng-content>\n</po-page-list>\n" }]
|
|
5727
|
-
}], () => [{ type:
|
|
5985
|
+
args: [{ selector: 'po-page-dynamic-search', standalone: false, template: "<po-page-list\n #poPageList\n [p-actions]=\"actions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-components-size]=\"componentsSize\"\n [p-disclaimer-group]=\"disclaimerGroup\"\n [p-filter]=\"filterSettings\"\n [p-title]=\"title\"\n [p-quick-search-value]=\"quickSearchValue\"\n>\n <po-advanced-filter\n [p-components-size]=\"componentsSize\"\n [p-filters]=\"filters\"\n [p-keep-filters]=\"keepFilters\"\n [p-literals]=\"advancedFilterLiterals\"\n (p-search-event)=\"onAdvancedSearch($event, true)\"\n >\n </po-advanced-filter>\n\n <ng-content></ng-content>\n</po-page-list>\n" }]
|
|
5986
|
+
}], () => [{ type: i1.PoLanguageService }, { type: PoPageCustomizationService }, { type: i0.ChangeDetectorRef }, { type: i1.PoThemeService }], { poAdvancedFilter: [{
|
|
5728
5987
|
type: ViewChild,
|
|
5729
5988
|
args: [PoAdvancedFilterComponent, { static: true }]
|
|
5730
5989
|
}], poPageList: [{
|
|
5731
5990
|
type: ViewChild,
|
|
5732
5991
|
args: [PoPageListComponent, { static: true }]
|
|
5733
5992
|
}] }); })();
|
|
5734
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicSearchComponent, { className: "PoPageDynamicSearchComponent", filePath: "lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts", lineNumber:
|
|
5993
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicSearchComponent, { className: "PoPageDynamicSearchComponent", filePath: "lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts", lineNumber: 57 }); })();
|
|
5735
5994
|
|
|
5736
5995
|
/**
|
|
5737
5996
|
* @description
|
|
@@ -6151,7 +6410,7 @@ class PoPageDynamicTableActionsService {
|
|
|
6151
6410
|
}
|
|
6152
6411
|
return of(action(resource));
|
|
6153
6412
|
}
|
|
6154
|
-
static ɵfac = function PoPageDynamicTableActionsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicTableActionsService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
6413
|
+
static ɵfac = function PoPageDynamicTableActionsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicTableActionsService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
6155
6414
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageDynamicTableActionsService, factory: PoPageDynamicTableActionsService.ɵfac, providedIn: 'root' });
|
|
6156
6415
|
}
|
|
6157
6416
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicTableActionsService, [{
|
|
@@ -6159,7 +6418,7 @@ class PoPageDynamicTableActionsService {
|
|
|
6159
6418
|
args: [{
|
|
6160
6419
|
providedIn: 'root'
|
|
6161
6420
|
}]
|
|
6162
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
6421
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
6163
6422
|
|
|
6164
6423
|
const PAGE_SIZE_DEFAULT = 10;
|
|
6165
6424
|
/**
|
|
@@ -6260,6 +6519,7 @@ const PAGE_SIZE_DEFAULT = 10;
|
|
|
6260
6519
|
* </example>
|
|
6261
6520
|
*/
|
|
6262
6521
|
class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
6522
|
+
poThemeService;
|
|
6263
6523
|
router;
|
|
6264
6524
|
activatedRoute;
|
|
6265
6525
|
poDialogService;
|
|
@@ -6396,6 +6656,7 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
6396
6656
|
sortedColumn;
|
|
6397
6657
|
subscriptions = new Subscription();
|
|
6398
6658
|
hasCustomActionWithSelectable = false;
|
|
6659
|
+
_componentsSize = undefined;
|
|
6399
6660
|
_customPageListActions = [];
|
|
6400
6661
|
_customTableActions = [];
|
|
6401
6662
|
_defaultPageActions = [];
|
|
@@ -6437,6 +6698,26 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
6437
6698
|
get actions() {
|
|
6438
6699
|
return this._actions;
|
|
6439
6700
|
}
|
|
6701
|
+
/**
|
|
6702
|
+
* @optional
|
|
6703
|
+
*
|
|
6704
|
+
* @description
|
|
6705
|
+
*
|
|
6706
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
6707
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
6708
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
6709
|
+
*
|
|
6710
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
6711
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
6712
|
+
*
|
|
6713
|
+
* @default `medium`
|
|
6714
|
+
*/
|
|
6715
|
+
set componentsSize(value) {
|
|
6716
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
6717
|
+
}
|
|
6718
|
+
get componentsSize() {
|
|
6719
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
6720
|
+
}
|
|
6440
6721
|
/**
|
|
6441
6722
|
* @optional
|
|
6442
6723
|
*
|
|
@@ -6689,8 +6970,10 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
6689
6970
|
* ```
|
|
6690
6971
|
*/
|
|
6691
6972
|
visibleFixedFilters = true;
|
|
6692
|
-
|
|
6973
|
+
/* eslint-disable max-params */
|
|
6974
|
+
constructor(poThemeService, router, activatedRoute, poDialogService, poNotification, poPageDynamicService, poPageCustomizationService, poPageDynamicTableActionsService, languageService) {
|
|
6693
6975
|
super();
|
|
6976
|
+
this.poThemeService = poThemeService;
|
|
6694
6977
|
this.router = router;
|
|
6695
6978
|
this.activatedRoute = activatedRoute;
|
|
6696
6979
|
this.poDialogService = poDialogService;
|
|
@@ -6704,6 +6987,7 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
6704
6987
|
...poPageDynamicTableLiteralsDefault[language]
|
|
6705
6988
|
};
|
|
6706
6989
|
}
|
|
6990
|
+
/* eslint-enable max-params */
|
|
6707
6991
|
ngOnInit() {
|
|
6708
6992
|
this.loadDataFromAPI();
|
|
6709
6993
|
}
|
|
@@ -6813,6 +7097,7 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
6813
7097
|
const confirmOptions = {
|
|
6814
7098
|
title: this.literals.confirmRemoveTitle,
|
|
6815
7099
|
message: this.literals.confirmRemoveMessage,
|
|
7100
|
+
componentsSize: this.componentsSize,
|
|
6816
7101
|
confirm: this.remove.bind(this, item, actionRemove, actionBeforeRemove)
|
|
6817
7102
|
};
|
|
6818
7103
|
this.poDialogService.confirm(confirmOptions);
|
|
@@ -7318,23 +7603,23 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
7318
7603
|
}
|
|
7319
7604
|
this.tableActions = newTableActions;
|
|
7320
7605
|
}
|
|
7321
|
-
static ɵfac = function PoPageDynamicTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicTableComponent)(i0.ɵɵdirectiveInject(i1$
|
|
7322
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDynamicTableComponent, selectors: [["po-page-dynamic-table"]], inputs: { onLoad: [0, "p-load", "onLoad"], keepFilters: [2, "p-keep-filters", "keepFilters", convertToBoolean], actionRight: [2, "p-actions-right", "actionRight", convertToBoolean], concatFilters: [2, "p-concat-filters", "concatFilters", convertToBoolean], hideColumnsManager: [2, "p-hide-columns-manager", "hideColumnsManager", convertToBoolean], hideRemoveAllDisclaimer: [2, "p-hide-remove-all-disclaimer", "hideRemoveAllDisclaimer", convertToBoolean], infiniteScroll: [2, "p-infinite-scroll", "infiniteScroll", convertToBoolean], actions: [0, "p-actions", "actions"], pageCustomActions: [0, "p-page-custom-actions", "pageCustomActions"], tableCustomActions: [0, "p-table-custom-actions", "tableCustomActions"], quickSearchWidth: [0, "p-quick-search-width", "quickSearchWidth"], height: [0, "p-height", "height"], hideCloseDisclaimers: [0, "p-hide-close-disclaimers", "hideCloseDisclaimers"], quickSearchParam: [0, "p-quick-search-param", "quickSearchParam"], quickSearchValue: [0, "p-quick-search-value", "quickSearchValue"], searchLiterals: [0, "p-literals", "searchLiterals"], spacing: [0, "p-spacing", "spacing"], textWrap: [2, "p-text-wrap", "textWrap", convertToBoolean], draggable: [0, "p-draggable", "draggable"], virtualScroll: [0, "p-virtual-scroll", "virtualScroll"], visibleFixedFilters: [0, "p-visible-fixed-filters", "visibleFixedFilters"] }, standalone: false, features: [i0.ɵɵProvidersFeature([PoPageDynamicService]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature], decls: 2, vars:
|
|
7606
|
+
static ɵfac = function PoPageDynamicTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageDynamicTableComponent)(i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1.PoDialogService), i0.ɵɵdirectiveInject(i1.PoNotificationService), i0.ɵɵdirectiveInject(PoPageDynamicService), i0.ɵɵdirectiveInject(PoPageCustomizationService), i0.ɵɵdirectiveInject(PoPageDynamicTableActionsService), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
7607
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDynamicTableComponent, selectors: [["po-page-dynamic-table"]], inputs: { onLoad: [0, "p-load", "onLoad"], keepFilters: [2, "p-keep-filters", "keepFilters", convertToBoolean], actionRight: [2, "p-actions-right", "actionRight", convertToBoolean], concatFilters: [2, "p-concat-filters", "concatFilters", convertToBoolean], hideColumnsManager: [2, "p-hide-columns-manager", "hideColumnsManager", convertToBoolean], hideRemoveAllDisclaimer: [2, "p-hide-remove-all-disclaimer", "hideRemoveAllDisclaimer", convertToBoolean], infiniteScroll: [2, "p-infinite-scroll", "infiniteScroll", convertToBoolean], actions: [0, "p-actions", "actions"], componentsSize: [0, "p-components-size", "componentsSize"], pageCustomActions: [0, "p-page-custom-actions", "pageCustomActions"], tableCustomActions: [0, "p-table-custom-actions", "tableCustomActions"], quickSearchWidth: [0, "p-quick-search-width", "quickSearchWidth"], height: [0, "p-height", "height"], hideCloseDisclaimers: [0, "p-hide-close-disclaimers", "hideCloseDisclaimers"], quickSearchParam: [0, "p-quick-search-param", "quickSearchParam"], quickSearchValue: [0, "p-quick-search-value", "quickSearchValue"], searchLiterals: [0, "p-literals", "searchLiterals"], spacing: [0, "p-spacing", "spacing"], textWrap: [2, "p-text-wrap", "textWrap", convertToBoolean], draggable: [0, "p-draggable", "draggable"], virtualScroll: [0, "p-virtual-scroll", "virtualScroll"], visibleFixedFilters: [0, "p-visible-fixed-filters", "visibleFixedFilters"] }, standalone: false, features: [i0.ɵɵProvidersFeature([PoPageDynamicService]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 28, consts: [[3, "p-advanced-search", "p-change-disclaimers", "p-quick-search", "p-actions", "p-breadcrumb", "p-components-size", "p-hide-close-disclaimers", "p-filters", "p-keep-filters", "p-literals", "p-concat-filters", "p-hide-remove-all-disclaimer", "p-quick-search-width", "p-title", "p-visible-fixed-filters", "p-quick-search-value"], [3, "p-show-more", "p-sort-by", "p-change-visible-columns", "p-restore-column-manager", "p-sort", "p-actions", "p-actions-right", "p-selectable", "p-columns", "p-components-size", "p-items", "p-height", "p-hide-columns-manager", "p-infinite-scroll", "p-show-more-disabled", "p-text-wrap", "p-draggable", "p-spacing", "p-virtual-scroll"]], template: function PoPageDynamicTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7323
7608
|
i0.ɵɵelementStart(0, "po-page-dynamic-search", 0);
|
|
7324
7609
|
i0.ɵɵlistener("p-advanced-search", function PoPageDynamicTableComponent_Template_po_page_dynamic_search_p_advanced_search_0_listener($event) { return ctx.onAdvancedSearch($event); })("p-change-disclaimers", function PoPageDynamicTableComponent_Template_po_page_dynamic_search_p_change_disclaimers_0_listener($event) { return ctx.onChangeDisclaimers($event); })("p-quick-search", function PoPageDynamicTableComponent_Template_po_page_dynamic_search_p_quick_search_0_listener($event) { return ctx.onQuickSearch($event); });
|
|
7325
7610
|
i0.ɵɵelementStart(1, "po-table", 1);
|
|
7326
7611
|
i0.ɵɵlistener("p-show-more", function PoPageDynamicTableComponent_Template_po_table_p_show_more_1_listener() { return ctx.showMore(); })("p-sort-by", function PoPageDynamicTableComponent_Template_po_table_p_sort_by_1_listener($event) { return ctx.onSort($event); })("p-change-visible-columns", function PoPageDynamicTableComponent_Template_po_table_p_change_visible_columns_1_listener($event) { return ctx.onChangeVisibleColumns($event); })("p-restore-column-manager", function PoPageDynamicTableComponent_Template_po_table_p_restore_column_manager_1_listener($event) { return ctx.onColumnRestoreManager($event); })("p-sort-by", function PoPageDynamicTableComponent_Template_po_table_p_sort_by_1_listener($event) { return ctx.onSortBy($event); });
|
|
7327
7612
|
i0.ɵɵelementEnd()();
|
|
7328
7613
|
} if (rf & 2) {
|
|
7329
|
-
i0.ɵɵproperty("p-actions", ctx.pageActions)("p-breadcrumb", ctx.breadcrumb)("p-hide-close-disclaimers", ctx.hideCloseDisclaimers)("p-filters", ctx.filters)("p-keep-filters", ctx.keepFilters)("p-literals", ctx.searchLiterals)("p-concat-filters", ctx.concatFilters)("p-hide-remove-all-disclaimer", ctx.hideRemoveAllDisclaimer)("p-quick-search-width", ctx.quickSearchWidth)("p-title", ctx.title)("p-visible-fixed-filters", ctx.visibleFixedFilters)("p-quick-search-value", ctx.quickSearchValue || "");
|
|
7614
|
+
i0.ɵɵproperty("p-actions", ctx.pageActions)("p-breadcrumb", ctx.breadcrumb)("p-components-size", ctx.componentsSize)("p-hide-close-disclaimers", ctx.hideCloseDisclaimers)("p-filters", ctx.filters)("p-keep-filters", ctx.keepFilters)("p-literals", ctx.searchLiterals)("p-concat-filters", ctx.concatFilters)("p-hide-remove-all-disclaimer", ctx.hideRemoveAllDisclaimer)("p-quick-search-width", ctx.quickSearchWidth)("p-title", ctx.title)("p-visible-fixed-filters", ctx.visibleFixedFilters)("p-quick-search-value", ctx.quickSearchValue || "");
|
|
7330
7615
|
i0.ɵɵadvance();
|
|
7331
|
-
i0.ɵɵproperty("p-sort", true)("p-actions", ctx.tableActions)("p-actions-right", ctx.actionRight)("p-selectable", ctx.enableSelectionTable)("p-columns", ctx.columns)("p-items", ctx.items)("p-height", ctx.height)("p-hide-columns-manager", ctx.hideColumnsManager)("p-infinite-scroll", ctx.infiniteScroll)("p-show-more-disabled", !ctx.hasNext)("p-text-wrap", ctx.textWrap)("p-draggable", ctx.draggable)("p-spacing", ctx.spacing)("p-virtual-scroll", ctx.virtualScroll);
|
|
7332
|
-
} }, dependencies: [
|
|
7616
|
+
i0.ɵɵproperty("p-sort", true)("p-actions", ctx.tableActions)("p-actions-right", ctx.actionRight)("p-selectable", ctx.enableSelectionTable)("p-columns", ctx.columns)("p-components-size", ctx.componentsSize)("p-items", ctx.items)("p-height", ctx.height)("p-hide-columns-manager", ctx.hideColumnsManager)("p-infinite-scroll", ctx.infiniteScroll)("p-show-more-disabled", !ctx.hasNext)("p-text-wrap", ctx.textWrap)("p-draggable", ctx.draggable)("p-spacing", ctx.spacing)("p-virtual-scroll", ctx.virtualScroll);
|
|
7617
|
+
} }, dependencies: [i1.PoTableComponent, PoPageDynamicSearchComponent], encapsulation: 2 });
|
|
7333
7618
|
}
|
|
7334
7619
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDynamicTableComponent, [{
|
|
7335
7620
|
type: Component,
|
|
7336
|
-
args: [{ selector: 'po-page-dynamic-table', providers: [PoPageDynamicService], standalone: false, template: "<po-page-dynamic-search\n [p-actions]=\"pageActions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-hide-close-disclaimers]=\"hideCloseDisclaimers\"\n [p-filters]=\"filters\"\n [p-keep-filters]=\"keepFilters\"\n [p-literals]=\"searchLiterals\"\n [p-concat-filters]=\"concatFilters\"\n [p-hide-remove-all-disclaimer]=\"hideRemoveAllDisclaimer\"\n [p-quick-search-width]=\"quickSearchWidth\"\n [p-title]=\"title\"\n [p-visible-fixed-filters]=\"visibleFixedFilters\"\n (p-advanced-search)=\"onAdvancedSearch($event)\"\n (p-change-disclaimers)=\"onChangeDisclaimers($event)\"\n (p-quick-search)=\"onQuickSearch($event)\"\n [p-quick-search-value]=\"quickSearchValue || ''\"\n>\n <po-table\n [p-sort]=\"true\"\n [p-actions]=\"tableActions\"\n [p-actions-right]=\"actionRight\"\n [p-selectable]=\"enableSelectionTable\"\n [p-columns]=\"columns\"\n [p-items]=\"items\"\n [p-height]=\"height\"\n [p-hide-columns-manager]=\"hideColumnsManager\"\n [p-infinite-scroll]=\"infiniteScroll\"\n [p-show-more-disabled]=\"!hasNext\"\n (p-show-more)=\"showMore()\"\n (p-sort-by)=\"onSort($event)\"\n (p-change-visible-columns)=\"onChangeVisibleColumns($event)\"\n (p-restore-column-manager)=\"onColumnRestoreManager($event)\"\n (p-sort-by)=\"onSortBy($event)\"\n [p-text-wrap]=\"textWrap\"\n [p-draggable]=\"draggable\"\n [p-spacing]=\"spacing\"\n [p-virtual-scroll]=\"virtualScroll\"\n >\n </po-table>\n</po-page-dynamic-search>\n" }]
|
|
7337
|
-
}], () => [{ type: i1$
|
|
7621
|
+
args: [{ selector: 'po-page-dynamic-table', providers: [PoPageDynamicService], standalone: false, template: "<po-page-dynamic-search\n [p-actions]=\"pageActions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-components-size]=\"componentsSize\"\n [p-hide-close-disclaimers]=\"hideCloseDisclaimers\"\n [p-filters]=\"filters\"\n [p-keep-filters]=\"keepFilters\"\n [p-literals]=\"searchLiterals\"\n [p-concat-filters]=\"concatFilters\"\n [p-hide-remove-all-disclaimer]=\"hideRemoveAllDisclaimer\"\n [p-quick-search-width]=\"quickSearchWidth\"\n [p-title]=\"title\"\n [p-visible-fixed-filters]=\"visibleFixedFilters\"\n (p-advanced-search)=\"onAdvancedSearch($event)\"\n (p-change-disclaimers)=\"onChangeDisclaimers($event)\"\n (p-quick-search)=\"onQuickSearch($event)\"\n [p-quick-search-value]=\"quickSearchValue || ''\"\n>\n <po-table\n [p-sort]=\"true\"\n [p-actions]=\"tableActions\"\n [p-actions-right]=\"actionRight\"\n [p-selectable]=\"enableSelectionTable\"\n [p-columns]=\"columns\"\n [p-components-size]=\"componentsSize\"\n [p-items]=\"items\"\n [p-height]=\"height\"\n [p-hide-columns-manager]=\"hideColumnsManager\"\n [p-infinite-scroll]=\"infiniteScroll\"\n [p-show-more-disabled]=\"!hasNext\"\n (p-show-more)=\"showMore()\"\n (p-sort-by)=\"onSort($event)\"\n (p-change-visible-columns)=\"onChangeVisibleColumns($event)\"\n (p-restore-column-manager)=\"onColumnRestoreManager($event)\"\n (p-sort-by)=\"onSortBy($event)\"\n [p-text-wrap]=\"textWrap\"\n [p-draggable]=\"draggable\"\n [p-spacing]=\"spacing\"\n [p-virtual-scroll]=\"virtualScroll\"\n >\n </po-table>\n</po-page-dynamic-search>\n" }]
|
|
7622
|
+
}], () => [{ type: i1.PoThemeService }, { type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i1.PoDialogService }, { type: i1.PoNotificationService }, { type: PoPageDynamicService }, { type: PoPageCustomizationService }, { type: PoPageDynamicTableActionsService }, { type: i1.PoLanguageService }], { onLoad: [{
|
|
7338
7623
|
type: Input,
|
|
7339
7624
|
args: ['p-load']
|
|
7340
7625
|
}], keepFilters: [{
|
|
@@ -7358,6 +7643,9 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
7358
7643
|
}], actions: [{
|
|
7359
7644
|
type: Input,
|
|
7360
7645
|
args: ['p-actions']
|
|
7646
|
+
}], componentsSize: [{
|
|
7647
|
+
type: Input,
|
|
7648
|
+
args: ['p-components-size']
|
|
7361
7649
|
}], pageCustomActions: [{
|
|
7362
7650
|
type: Input,
|
|
7363
7651
|
args: ['p-page-custom-actions']
|
|
@@ -7398,7 +7686,7 @@ class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent {
|
|
|
7398
7686
|
type: Input,
|
|
7399
7687
|
args: ['p-visible-fixed-filters']
|
|
7400
7688
|
}] }); })();
|
|
7401
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicTableComponent, { className: "PoPageDynamicTableComponent", filePath: "lib/components/po-page-dynamic-table/po-page-dynamic-table.component.ts", lineNumber:
|
|
7689
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageDynamicTableComponent, { className: "PoPageDynamicTableComponent", filePath: "lib/components/po-page-dynamic-table/po-page-dynamic-table.component.ts", lineNumber: 153 }); })();
|
|
7402
7690
|
|
|
7403
7691
|
/**
|
|
7404
7692
|
* @description
|
|
@@ -7664,7 +7952,7 @@ class PoPageJobSchedulerService {
|
|
|
7664
7952
|
}
|
|
7665
7953
|
return newParameter;
|
|
7666
7954
|
}
|
|
7667
|
-
static ɵfac = function PoPageJobSchedulerService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
7955
|
+
static ɵfac = function PoPageJobSchedulerService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
7668
7956
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageJobSchedulerService, factory: PoPageJobSchedulerService.ɵfac, providedIn: 'root' });
|
|
7669
7957
|
}
|
|
7670
7958
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageJobSchedulerService, [{
|
|
@@ -7672,7 +7960,7 @@ class PoPageJobSchedulerService {
|
|
|
7672
7960
|
args: [{
|
|
7673
7961
|
providedIn: 'root'
|
|
7674
7962
|
}]
|
|
7675
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
7963
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
7676
7964
|
|
|
7677
7965
|
/**
|
|
7678
7966
|
* @description
|
|
@@ -7687,8 +7975,30 @@ class PoPageJobSchedulerService {
|
|
|
7687
7975
|
*/
|
|
7688
7976
|
class PoPageJobSchedulerBaseComponent {
|
|
7689
7977
|
poPageJobSchedulerService;
|
|
7978
|
+
poThemeService;
|
|
7979
|
+
_componentsSize = undefined;
|
|
7690
7980
|
/** Objeto com as propriedades do breadcrumb. */
|
|
7691
7981
|
breadcrumb = { items: [] };
|
|
7982
|
+
/**
|
|
7983
|
+
* @optional
|
|
7984
|
+
*
|
|
7985
|
+
* @description
|
|
7986
|
+
*
|
|
7987
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
7988
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
7989
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
7990
|
+
*
|
|
7991
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
7992
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
7993
|
+
*
|
|
7994
|
+
* @default `medium`
|
|
7995
|
+
*/
|
|
7996
|
+
set componentsSize(value) {
|
|
7997
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
7998
|
+
}
|
|
7999
|
+
get componentsSize() {
|
|
8000
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
8001
|
+
}
|
|
7692
8002
|
/**
|
|
7693
8003
|
* Endpoint usado pelo componente para busca dos processos e parâmetros que serão utilizados para criação e edição dos agendamentos.
|
|
7694
8004
|
*
|
|
@@ -7906,8 +8216,9 @@ class PoPageJobSchedulerBaseComponent {
|
|
|
7906
8216
|
model = new PoPageJobSchedulerInternal();
|
|
7907
8217
|
_subscription = new Subscription();
|
|
7908
8218
|
_orientation;
|
|
7909
|
-
constructor(poPageJobSchedulerService) {
|
|
8219
|
+
constructor(poPageJobSchedulerService, poThemeService) {
|
|
7910
8220
|
this.poPageJobSchedulerService = poPageJobSchedulerService;
|
|
8221
|
+
this.poThemeService = poThemeService;
|
|
7911
8222
|
}
|
|
7912
8223
|
ngOnDestroy() {
|
|
7913
8224
|
this._subscription.unsubscribe();
|
|
@@ -7933,14 +8244,17 @@ class PoPageJobSchedulerBaseComponent {
|
|
|
7933
8244
|
}
|
|
7934
8245
|
}
|
|
7935
8246
|
}
|
|
7936
|
-
static ɵfac = function PoPageJobSchedulerBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerBaseComponent)(i0.ɵɵdirectiveInject(PoPageJobSchedulerService)); };
|
|
7937
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageJobSchedulerBaseComponent, inputs: { breadcrumb: [0, "p-breadcrumb", "breadcrumb"], serviceApi: [0, "p-service-api", "serviceApi"], title: [0, "p-title", "title"], parameters: [0, "p-parameters", "parameters"], value: [0, "p-value", "value"], stepperDefaultOrientation: [0, "p-orientation", "stepperDefaultOrientation"], beforeSendAction: [0, "p-before-send", "beforeSendAction"], stepExecutionLast: [0, "p-step-execution-last", "stepExecutionLast"] }, outputs: { success: "p-success", error: "p-error" } });
|
|
8247
|
+
static ɵfac = function PoPageJobSchedulerBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerBaseComponent)(i0.ɵɵdirectiveInject(PoPageJobSchedulerService), i0.ɵɵdirectiveInject(i1.PoThemeService)); };
|
|
8248
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageJobSchedulerBaseComponent, inputs: { breadcrumb: [0, "p-breadcrumb", "breadcrumb"], componentsSize: [0, "p-components-size", "componentsSize"], serviceApi: [0, "p-service-api", "serviceApi"], title: [0, "p-title", "title"], parameters: [0, "p-parameters", "parameters"], value: [0, "p-value", "value"], stepperDefaultOrientation: [0, "p-orientation", "stepperDefaultOrientation"], beforeSendAction: [0, "p-before-send", "beforeSendAction"], stepExecutionLast: [0, "p-step-execution-last", "stepExecutionLast"] }, outputs: { success: "p-success", error: "p-error" } });
|
|
7938
8249
|
}
|
|
7939
8250
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageJobSchedulerBaseComponent, [{
|
|
7940
8251
|
type: Directive
|
|
7941
|
-
}], () => [{ type: PoPageJobSchedulerService }], { breadcrumb: [{
|
|
8252
|
+
}], () => [{ type: PoPageJobSchedulerService }, { type: i1.PoThemeService }], { breadcrumb: [{
|
|
7942
8253
|
type: Input,
|
|
7943
8254
|
args: ['p-breadcrumb']
|
|
8255
|
+
}], componentsSize: [{
|
|
8256
|
+
type: Input,
|
|
8257
|
+
args: ['p-components-size']
|
|
7944
8258
|
}], serviceApi: [{
|
|
7945
8259
|
type: Input,
|
|
7946
8260
|
args: ['p-service-api']
|
|
@@ -8343,8 +8657,9 @@ function PoPageJobSchedulerExecutionComponent_ng_container_11_ng_container_3_Tem
|
|
|
8343
8657
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
8344
8658
|
i0.ɵɵadvance();
|
|
8345
8659
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.frequency.type);
|
|
8346
|
-
i0.ɵɵproperty("p-columns", 3)("p-options", ctx_r2.frequencyOptions);
|
|
8660
|
+
i0.ɵɵproperty("p-columns", 3)("p-options", ctx_r2.frequencyOptions)("p-size", ctx_r2.componentsSize);
|
|
8347
8661
|
i0.ɵɵadvance();
|
|
8662
|
+
i0.ɵɵproperty("p-size", ctx_r2.componentsSize);
|
|
8348
8663
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.frequency.value);
|
|
8349
8664
|
} }
|
|
8350
8665
|
function PoPageJobSchedulerExecutionComponent_ng_container_11_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -8357,7 +8672,7 @@ function PoPageJobSchedulerExecutionComponent_ng_container_11_Template(rf, ctx)
|
|
|
8357
8672
|
i0.ɵɵtwoWayListener("ngModelChange", function PoPageJobSchedulerExecutionComponent_ng_container_11_Template_po_switch_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.containsFrequency, $event) || (ctx_r2.containsFrequency = $event); return i0.ɵɵresetView($event); });
|
|
8358
8673
|
i0.ɵɵlistener("p-change", function PoPageJobSchedulerExecutionComponent_ng_container_11_Template_po_switch_p_change_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onChangeContainsFrequency($event)); });
|
|
8359
8674
|
i0.ɵɵelementEnd();
|
|
8360
|
-
i0.ɵɵtemplate(3, PoPageJobSchedulerExecutionComponent_ng_container_11_ng_container_3_Template, 3,
|
|
8675
|
+
i0.ɵɵtemplate(3, PoPageJobSchedulerExecutionComponent_ng_container_11_ng_container_3_Template, 3, 6, "ng-container", 13);
|
|
8361
8676
|
i0.ɵɵelementEnd();
|
|
8362
8677
|
i0.ɵɵelementStart(4, "div", 7);
|
|
8363
8678
|
i0.ɵɵelement(5, "po-divider", 9);
|
|
@@ -8371,7 +8686,7 @@ function PoPageJobSchedulerExecutionComponent_ng_container_11_Template(rf, ctx)
|
|
|
8371
8686
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
8372
8687
|
i0.ɵɵadvance(2);
|
|
8373
8688
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.containsFrequency);
|
|
8374
|
-
i0.ɵɵproperty("p-label", ctx_r2.literals.frequency)("p-label-off", ctx_r2.literals.no)("p-label-on", ctx_r2.literals.yes);
|
|
8689
|
+
i0.ɵɵproperty("p-label", ctx_r2.literals.frequency)("p-label-off", ctx_r2.literals.no)("p-label-on", ctx_r2.literals.yes)("p-size", ctx_r2.componentsSize);
|
|
8375
8690
|
i0.ɵɵadvance();
|
|
8376
8691
|
i0.ɵɵproperty("ngIf", ctx_r2.containsFrequency);
|
|
8377
8692
|
i0.ɵɵadvance(2);
|
|
@@ -8380,7 +8695,7 @@ function PoPageJobSchedulerExecutionComponent_ng_container_11_Template(rf, ctx)
|
|
|
8380
8695
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.periodicityTemplates[ctx_r2.value.periodicity]);
|
|
8381
8696
|
i0.ɵɵadvance(2);
|
|
8382
8697
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.recurrent);
|
|
8383
|
-
i0.ɵɵproperty("p-label", ctx_r2.literals.recurrent)("p-label-off", ctx_r2.literals.no)("p-label-on", ctx_r2.literals.yes);
|
|
8698
|
+
i0.ɵɵproperty("p-label", ctx_r2.literals.recurrent)("p-label-off", ctx_r2.literals.no)("p-label-on", ctx_r2.literals.yes)("p-size", ctx_r2.componentsSize);
|
|
8384
8699
|
} }
|
|
8385
8700
|
function PoPageJobSchedulerExecutionComponent_ng_template_12_po_lookup_0_Template(rf, ctx) { if (rf & 1) {
|
|
8386
8701
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -8390,10 +8705,10 @@ function PoPageJobSchedulerExecutionComponent_ng_template_12_po_lookup_0_Templat
|
|
|
8390
8705
|
} if (rf & 2) {
|
|
8391
8706
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
8392
8707
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.processID);
|
|
8393
|
-
i0.ɵɵproperty("p-disabled", ctx_r2.isEdit)("p-filter-service", ctx_r2.poPageJobSchedulerLookup)("p-label", ctx_r2.literals.process)("p-placeholder", ctx_r2.literals.enterProcess);
|
|
8708
|
+
i0.ɵɵproperty("p-disabled", ctx_r2.isEdit)("p-filter-service", ctx_r2.poPageJobSchedulerLookup)("p-label", ctx_r2.literals.process)("p-placeholder", ctx_r2.literals.enterProcess)("p-size", ctx_r2.componentsSize);
|
|
8394
8709
|
} }
|
|
8395
8710
|
function PoPageJobSchedulerExecutionComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
8396
|
-
i0.ɵɵtemplate(0, PoPageJobSchedulerExecutionComponent_ng_template_12_po_lookup_0_Template, 1,
|
|
8711
|
+
i0.ɵɵtemplate(0, PoPageJobSchedulerExecutionComponent_ng_template_12_po_lookup_0_Template, 1, 6, "po-lookup", 19);
|
|
8397
8712
|
} if (rf & 2) {
|
|
8398
8713
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
8399
8714
|
i0.ɵɵproperty("ngIf", ctx_r2.noParameters && ctx_r2.noCustomParamsComponent);
|
|
@@ -8406,7 +8721,7 @@ function PoPageJobSchedulerExecutionComponent_ng_template_14_Template(rf, ctx) {
|
|
|
8406
8721
|
} if (rf & 2) {
|
|
8407
8722
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
8408
8723
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.processID);
|
|
8409
|
-
i0.ɵɵproperty("p-disabled", ctx_r2.isEdit)("p-label", ctx_r2.literals.process)("p-placeholder", ctx_r2.literals.enterProcess);
|
|
8724
|
+
i0.ɵɵproperty("p-disabled", ctx_r2.isEdit)("p-label", ctx_r2.literals.process)("p-placeholder", ctx_r2.literals.enterProcess)("p-size", ctx_r2.componentsSize);
|
|
8410
8725
|
} }
|
|
8411
8726
|
function PoPageJobSchedulerExecutionComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
8412
8727
|
i0.ɵɵelementContainer(0);
|
|
@@ -8436,7 +8751,7 @@ function PoPageJobSchedulerExecutionComponent_ng_template_18_Template(rf, ctx) {
|
|
|
8436
8751
|
i0.ɵɵproperty("ngTemplateOutlet", inputHourTemplate_r7);
|
|
8437
8752
|
i0.ɵɵadvance();
|
|
8438
8753
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.daysOfWeek);
|
|
8439
|
-
i0.ɵɵproperty("p-label", ctx_r2.literals.weekDays)("p-options", ctx_r2.weekDays);
|
|
8754
|
+
i0.ɵɵproperty("p-label", ctx_r2.literals.weekDays)("p-options", ctx_r2.weekDays)("p-size", ctx_r2.componentsSize);
|
|
8440
8755
|
} }
|
|
8441
8756
|
function PoPageJobSchedulerExecutionComponent_ng_template_20_po_number_1_Template(rf, ctx) { if (rf & 1) {
|
|
8442
8757
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -8446,7 +8761,7 @@ function PoPageJobSchedulerExecutionComponent_ng_template_20_po_number_1_Templat
|
|
|
8446
8761
|
} if (rf & 2) {
|
|
8447
8762
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
8448
8763
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.rangeLimitDay);
|
|
8449
|
-
i0.ɵɵproperty("p-error-pattern", "Dia inv\u00E1lido")("p-label", ctx_r2.literals.endDay)("p-max", 31)("p-pattern", ctx_r2.dayPattern);
|
|
8764
|
+
i0.ɵɵproperty("p-error-pattern", "Dia inv\u00E1lido")("p-label", ctx_r2.literals.endDay)("p-max", 31)("p-pattern", ctx_r2.dayPattern)("p-size", ctx_r2.componentsSize);
|
|
8450
8765
|
} }
|
|
8451
8766
|
function PoPageJobSchedulerExecutionComponent_ng_template_20_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
8452
8767
|
i0.ɵɵelementContainer(0);
|
|
@@ -8456,12 +8771,12 @@ function PoPageJobSchedulerExecutionComponent_ng_template_20_Template(rf, ctx) {
|
|
|
8456
8771
|
i0.ɵɵelementStart(0, "po-number", 23);
|
|
8457
8772
|
i0.ɵɵtwoWayListener("ngModelChange", function PoPageJobSchedulerExecutionComponent_ng_template_20_Template_po_number_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.value.dayOfMonth, $event) || (ctx_r2.value.dayOfMonth = $event); return i0.ɵɵresetView($event); });
|
|
8458
8773
|
i0.ɵɵelementEnd();
|
|
8459
|
-
i0.ɵɵtemplate(1, PoPageJobSchedulerExecutionComponent_ng_template_20_po_number_1_Template, 1,
|
|
8774
|
+
i0.ɵɵtemplate(1, PoPageJobSchedulerExecutionComponent_ng_template_20_po_number_1_Template, 1, 6, "po-number", 24)(2, PoPageJobSchedulerExecutionComponent_ng_template_20_ng_container_2_Template, 1, 0, "ng-container", 15);
|
|
8460
8775
|
} if (rf & 2) {
|
|
8461
8776
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
8462
8777
|
const inputHourTemplate_r7 = i0.ɵɵreference(23);
|
|
8463
8778
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.dayOfMonth);
|
|
8464
|
-
i0.ɵɵproperty("p-error-pattern", "Dia inv\u00E1lido")("p-label", ctx_r2.dayLabel)("p-max", 31)("p-pattern", ctx_r2.dayPattern);
|
|
8779
|
+
i0.ɵɵproperty("p-error-pattern", "Dia inv\u00E1lido")("p-label", ctx_r2.dayLabel)("p-max", 31)("p-pattern", ctx_r2.dayPattern)("p-size", ctx_r2.componentsSize);
|
|
8465
8780
|
i0.ɵɵadvance();
|
|
8466
8781
|
i0.ɵɵproperty("ngIf", ctx_r2.containsFrequency);
|
|
8467
8782
|
i0.ɵɵadvance();
|
|
@@ -8475,18 +8790,18 @@ function PoPageJobSchedulerExecutionComponent_ng_template_22_po_input_1_Template
|
|
|
8475
8790
|
} if (rf & 2) {
|
|
8476
8791
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
8477
8792
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.rangeLimitHour);
|
|
8478
|
-
i0.ɵɵproperty("p-label", ctx_r2.literals.endTime)("p-pattern", ctx_r2.timePattern);
|
|
8793
|
+
i0.ɵɵproperty("p-label", ctx_r2.literals.endTime)("p-pattern", ctx_r2.timePattern)("p-size", ctx_r2.componentsSize);
|
|
8479
8794
|
} }
|
|
8480
8795
|
function PoPageJobSchedulerExecutionComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
|
|
8481
8796
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
8482
8797
|
i0.ɵɵelementStart(0, "po-input", 26);
|
|
8483
8798
|
i0.ɵɵtwoWayListener("ngModelChange", function PoPageJobSchedulerExecutionComponent_ng_template_22_Template_po_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.value.hour, $event) || (ctx_r2.value.hour = $event); return i0.ɵɵresetView($event); });
|
|
8484
8799
|
i0.ɵɵelementEnd();
|
|
8485
|
-
i0.ɵɵtemplate(1, PoPageJobSchedulerExecutionComponent_ng_template_22_po_input_1_Template, 1,
|
|
8800
|
+
i0.ɵɵtemplate(1, PoPageJobSchedulerExecutionComponent_ng_template_22_po_input_1_Template, 1, 4, "po-input", 27);
|
|
8486
8801
|
} if (rf & 2) {
|
|
8487
8802
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
8488
8803
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.value.hour);
|
|
8489
|
-
i0.ɵɵproperty("p-label", ctx_r2.hourLabel)("p-pattern", ctx_r2.timePattern);
|
|
8804
|
+
i0.ɵɵproperty("p-label", ctx_r2.hourLabel)("p-pattern", ctx_r2.timePattern)("p-size", ctx_r2.componentsSize);
|
|
8490
8805
|
i0.ɵɵadvance();
|
|
8491
8806
|
i0.ɵɵproperty("ngIf", ctx_r2.containsFrequency && ctx_r2.value.frequency.type !== "day");
|
|
8492
8807
|
} }
|
|
@@ -8498,6 +8813,7 @@ class PoPageJobSchedulerExecutionComponent {
|
|
|
8498
8813
|
dailyTemplate;
|
|
8499
8814
|
monthlyTemplate;
|
|
8500
8815
|
weeklyTempalte;
|
|
8816
|
+
componentsSize;
|
|
8501
8817
|
isEdit = false;
|
|
8502
8818
|
literals = {};
|
|
8503
8819
|
noParameters = true;
|
|
@@ -8628,7 +8944,7 @@ class PoPageJobSchedulerExecutionComponent {
|
|
|
8628
8944
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dailyTemplate = _t.first);
|
|
8629
8945
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.monthlyTemplate = _t.first);
|
|
8630
8946
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.weeklyTempalte = _t.first);
|
|
8631
|
-
} }, inputs: { isEdit: [0, "p-is-edit", "isEdit"], literals: [0, "p-literals", "literals"], noParameters: [0, "p-no-parameters", "noParameters"], noCustomParamsComponent: [0, "p-no-custom-params-component", "noCustomParamsComponent"], value: [0, "p-value", "value"] }, outputs: { changeProcess: "p-change-process" }, standalone: false, decls: 24, vars:
|
|
8947
|
+
} }, inputs: { componentsSize: [0, "p-components-size", "componentsSize"], isEdit: [0, "p-is-edit", "isEdit"], literals: [0, "p-literals", "literals"], noParameters: [0, "p-no-parameters", "noParameters"], noCustomParamsComponent: [0, "p-no-custom-params-component", "noCustomParamsComponent"], value: [0, "p-value", "value"] }, outputs: { changeProcess: "p-change-process" }, standalone: false, decls: 24, vars: 19, consts: [["formExecution", "ngForm"], ["lookupProcessesID", ""], ["inputProcessesID", ""], ["dailyTemplate", ""], ["weeklyTemplate", ""], ["monthlyTemplate", ""], ["inputHourTemplate", ""], [1, "po-row"], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-md-12", 3, "p-label"], ["name", "firstExecution", "p-placeholder", "dd/mm/aaaa", "p-required", "", 1, "po-md-4", 3, "ngModelChange", "ngModel", "p-disabled", "p-label", "p-min-date", "p-size"], ["name", "firstExecutionHour", "p-mask", "99:99", "p-mask-format-model", "", "p-placeholder", "HH:mm", "p-required", "", 1, "po-md-2", 3, "ngModelChange", "ngModel", "p-disabled", "p-label", "p-pattern", "p-size"], ["name", "periodicity", "p-columns", "4", "p-required", "", 1, "po-sm-12", 3, "ngModelChange", "p-change", "ngModel", "p-label", "p-options", "p-size"], [4, "ngIf"], ["name", "containsFrequency", 1, "po-md-12", 3, "ngModelChange", "p-change", "ngModel", "p-label", "p-label-off", "p-label-on", "p-size"], [4, "ngTemplateOutlet"], ["name", "recurrent", 1, "po-md-3", 3, "ngModelChange", "ngModel", "p-label", "p-label-off", "p-label-on", "p-size"], ["name", "frequencyType", "p-required", "", 1, "po-md-10", 3, "ngModelChange", "p-change", "ngModel", "p-columns", "p-options", "p-size"], ["name", "frequencyValue", "p-required", "", 1, "po-md-2", 3, "ngModelChange", "p-size", "ngModel"], ["class", "po-md-12", "name", "processID", "p-field-label", "description", "p-field-value", "processID", "p-required", "", 3, "ngModel", "p-disabled", "p-filter-service", "p-label", "p-placeholder", "p-size", "ngModelChange", 4, "ngIf"], ["name", "processID", "p-field-label", "description", "p-field-value", "processID", "p-required", "", 1, "po-md-12", 3, "ngModelChange", "ngModel", "p-disabled", "p-filter-service", "p-label", "p-placeholder", "p-size"], ["name", "processID", "p-required", "", 1, "po-md-12", 3, "ngModelChange", "ngModel", "p-disabled", "p-label", "p-placeholder", "p-size"], ["name", "daysOfWeek", "p-columns", "4", "p-required", "", 1, "po-md-12", 3, "ngModelChange", "ngModel", "p-label", "p-options", "p-size"], ["name", "dayOfMonth", "p-required", "", 1, "po-md-3", 3, "ngModelChange", "ngModel", "p-error-pattern", "p-label", "p-max", "p-pattern", "p-size"], ["class", "po-md-3", "name", "rangeLimitDay", "p-required", "", 3, "ngModel", "p-error-pattern", "p-label", "p-max", "p-pattern", "p-size", "ngModelChange", 4, "ngIf"], ["name", "rangeLimitDay", "p-required", "", 1, "po-md-3", 3, "ngModelChange", "ngModel", "p-error-pattern", "p-label", "p-max", "p-pattern", "p-size"], ["name", "hour", "p-mask", "99:99", "p-mask-format-model", "", "p-placeholder", "HH:mm", "p-required", "", 1, "po-md-2", 3, "ngModelChange", "ngModel", "p-label", "p-pattern", "p-size"], ["class", "po-md-2", "name", "rangeLimitHour", "p-mask", "99:99", "p-mask-format-model", "", "p-placeholder", "HH:mm", "p-required", "", 3, "ngModel", "p-label", "p-pattern", "p-size", "ngModelChange", 4, "ngIf"], ["name", "rangeLimitHour", "p-mask", "99:99", "p-mask-format-model", "", "p-placeholder", "HH:mm", "p-required", "", 1, "po-md-2", 3, "ngModelChange", "ngModel", "p-label", "p-pattern", "p-size"]], template: function PoPageJobSchedulerExecutionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8632
8948
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
8633
8949
|
i0.ɵɵelementStart(0, "form", null, 0)(2, "div", 7);
|
|
8634
8950
|
i0.ɵɵtemplate(3, PoPageJobSchedulerExecutionComponent_ng_container_3_Template, 1, 0, "ng-container", 8);
|
|
@@ -8646,9 +8962,9 @@ class PoPageJobSchedulerExecutionComponent {
|
|
|
8646
8962
|
i0.ɵɵtwoWayListener("ngModelChange", function PoPageJobSchedulerExecutionComponent_Template_po_radio_group_ngModelChange_10_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.value.periodicity, $event) || (ctx.value.periodicity = $event); return i0.ɵɵresetView($event); });
|
|
8647
8963
|
i0.ɵɵlistener("p-change", function PoPageJobSchedulerExecutionComponent_Template_po_radio_group_p_change_10_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onChangePeriodicityOptions($event)); });
|
|
8648
8964
|
i0.ɵɵelementEnd();
|
|
8649
|
-
i0.ɵɵtemplate(11, PoPageJobSchedulerExecutionComponent_ng_container_11_Template, 9,
|
|
8965
|
+
i0.ɵɵtemplate(11, PoPageJobSchedulerExecutionComponent_ng_container_11_Template, 9, 13, "ng-container", 13);
|
|
8650
8966
|
i0.ɵɵelementEnd();
|
|
8651
|
-
i0.ɵɵtemplate(12, PoPageJobSchedulerExecutionComponent_ng_template_12_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(14, PoPageJobSchedulerExecutionComponent_ng_template_14_Template, 1,
|
|
8967
|
+
i0.ɵɵtemplate(12, PoPageJobSchedulerExecutionComponent_ng_template_12_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(14, PoPageJobSchedulerExecutionComponent_ng_template_14_Template, 1, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(16, PoPageJobSchedulerExecutionComponent_ng_template_16_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(18, PoPageJobSchedulerExecutionComponent_ng_template_18_Template, 3, 5, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor)(20, PoPageJobSchedulerExecutionComponent_ng_template_20_Template, 3, 8, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor)(22, PoPageJobSchedulerExecutionComponent_ng_template_22_Template, 2, 5, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
8652
8968
|
i0.ɵɵelementEnd();
|
|
8653
8969
|
} if (rf & 2) {
|
|
8654
8970
|
const lookupProcessesID_r13 = i0.ɵɵreference(13);
|
|
@@ -8659,20 +8975,20 @@ class PoPageJobSchedulerExecutionComponent {
|
|
|
8659
8975
|
i0.ɵɵproperty("p-label", ctx.literals.firstExecution);
|
|
8660
8976
|
i0.ɵɵadvance();
|
|
8661
8977
|
i0.ɵɵtwoWayProperty("ngModel", ctx.value.firstExecution);
|
|
8662
|
-
i0.ɵɵproperty("p-disabled", ctx.isEdit)("p-label", ctx.literals.day)("p-min-date", ctx.startDateFirstExecution);
|
|
8978
|
+
i0.ɵɵproperty("p-disabled", ctx.isEdit)("p-label", ctx.literals.day)("p-min-date", ctx.startDateFirstExecution)("p-size", ctx.componentsSize);
|
|
8663
8979
|
i0.ɵɵadvance();
|
|
8664
8980
|
i0.ɵɵtwoWayProperty("ngModel", ctx.value.firstExecutionHour);
|
|
8665
|
-
i0.ɵɵproperty("p-disabled", ctx.isEdit)("p-label", ctx.literals.time)("p-pattern", ctx.timePattern);
|
|
8981
|
+
i0.ɵɵproperty("p-disabled", ctx.isEdit)("p-label", ctx.literals.time)("p-pattern", ctx.timePattern)("p-size", ctx.componentsSize);
|
|
8666
8982
|
i0.ɵɵadvance(3);
|
|
8667
8983
|
i0.ɵɵtwoWayProperty("ngModel", ctx.value.periodicity);
|
|
8668
|
-
i0.ɵɵproperty("p-label", ctx.literals.periodicity)("p-options", ctx.periodicityOptions);
|
|
8984
|
+
i0.ɵɵproperty("p-label", ctx.literals.periodicity)("p-options", ctx.periodicityOptions)("p-size", ctx.componentsSize);
|
|
8669
8985
|
i0.ɵɵadvance();
|
|
8670
8986
|
i0.ɵɵproperty("ngIf", ctx.value.periodicity !== "single");
|
|
8671
|
-
} }, dependencies: [i4.NgIf, i4.NgTemplateOutlet, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm,
|
|
8987
|
+
} }, dependencies: [i4.NgIf, i4.NgTemplateOutlet, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm, i1.PoDividerComponent, i1.PoCheckboxGroupComponent, i1.PoRadioGroupComponent, i1.PoDatepickerComponent, i1.PoInputComponent, i1.PoLookupComponent, i1.PoNumberComponent, i1.PoSwitchComponent], encapsulation: 2 });
|
|
8672
8988
|
}
|
|
8673
8989
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageJobSchedulerExecutionComponent, [{
|
|
8674
8990
|
type: Component,
|
|
8675
|
-
args: [{ selector: 'po-page-job-scheduler-execution', standalone: false, template: "<form #formExecution=\"ngForm\">\n <div class=\"po-row\">\n <ng-container *ngIf=\"existProcessAPI; then lookupProcessesID; else inputProcessesID\"></ng-container>\n </div>\n\n <div class=\"po-row\">\n <po-divider class=\"po-md-12\" [p-label]=\"literals.firstExecution\"></po-divider>\n\n <po-datepicker\n class=\"po-md-4\"\n name=\"firstExecution\"\n [(ngModel)]=\"value.firstExecution\"\n p-placeholder=\"dd/mm/aaaa\"\n p-required\n [p-disabled]=\"isEdit\"\n [p-label]=\"literals.day\"\n [p-min-date]=\"startDateFirstExecution\"\n >\n </po-datepicker>\n\n <po-input\n class=\"po-md-2\"\n name=\"firstExecutionHour\"\n [(ngModel)]=\"value.firstExecutionHour\"\n p-mask=\"99:99\"\n p-mask-format-model\n p-placeholder=\"HH:mm\"\n p-required\n [p-disabled]=\"isEdit\"\n [p-label]=\"literals.time\"\n [p-pattern]=\"timePattern\"\n >\n </po-input>\n </div>\n\n <hr />\n\n <div class=\"po-row\">\n <po-radio-group\n class=\"po-sm-12\"\n name=\"periodicity\"\n [(ngModel)]=\"value.periodicity\"\n p-columns=\"4\"\n p-required\n [p-label]=\"literals.periodicity\"\n [p-options]=\"periodicityOptions\"\n (p-change)=\"onChangePeriodicityOptions($event)\"\n >\n </po-radio-group>\n\n <ng-container *ngIf=\"value.periodicity !== 'single'\">\n <div class=\"po-row\">\n <po-switch\n class=\"po-md-12\"\n name=\"containsFrequency\"\n [(ngModel)]=\"containsFrequency\"\n [p-label]=\"literals.frequency\"\n [p-label-off]=\"literals.no\"\n [p-label-on]=\"literals.yes\"\n (p-change)=\"onChangeContainsFrequency($event)\"\n >\n </po-switch>\n <ng-container *ngIf=\"containsFrequency\">\n <po-radio-group\n class=\"po-md-10\"\n name=\"frequencyType\"\n p-required\n [(ngModel)]=\"value.frequency.type\"\n [p-columns]=\"3\"\n [p-options]=\"frequencyOptions\"\n (p-change)=\"onChangeFrequencyOptions()\"\n >\n </po-radio-group>\n\n <po-number
|
|
8991
|
+
args: [{ selector: 'po-page-job-scheduler-execution', standalone: false, template: "<form #formExecution=\"ngForm\">\n <div class=\"po-row\">\n <ng-container *ngIf=\"existProcessAPI; then lookupProcessesID; else inputProcessesID\"></ng-container>\n </div>\n\n <div class=\"po-row\">\n <po-divider class=\"po-md-12\" [p-label]=\"literals.firstExecution\"></po-divider>\n\n <po-datepicker\n class=\"po-md-4\"\n name=\"firstExecution\"\n [(ngModel)]=\"value.firstExecution\"\n p-placeholder=\"dd/mm/aaaa\"\n p-required\n [p-disabled]=\"isEdit\"\n [p-label]=\"literals.day\"\n [p-min-date]=\"startDateFirstExecution\"\n [p-size]=\"componentsSize\"\n >\n </po-datepicker>\n\n <po-input\n class=\"po-md-2\"\n name=\"firstExecutionHour\"\n [(ngModel)]=\"value.firstExecutionHour\"\n p-mask=\"99:99\"\n p-mask-format-model\n p-placeholder=\"HH:mm\"\n p-required\n [p-disabled]=\"isEdit\"\n [p-label]=\"literals.time\"\n [p-pattern]=\"timePattern\"\n [p-size]=\"componentsSize\"\n >\n </po-input>\n </div>\n\n <hr />\n\n <div class=\"po-row\">\n <po-radio-group\n class=\"po-sm-12\"\n name=\"periodicity\"\n [(ngModel)]=\"value.periodicity\"\n p-columns=\"4\"\n p-required\n [p-label]=\"literals.periodicity\"\n [p-options]=\"periodicityOptions\"\n [p-size]=\"componentsSize\"\n (p-change)=\"onChangePeriodicityOptions($event)\"\n >\n </po-radio-group>\n\n <ng-container *ngIf=\"value.periodicity !== 'single'\">\n <div class=\"po-row\">\n <po-switch\n class=\"po-md-12\"\n name=\"containsFrequency\"\n [(ngModel)]=\"containsFrequency\"\n [p-label]=\"literals.frequency\"\n [p-label-off]=\"literals.no\"\n [p-label-on]=\"literals.yes\"\n [p-size]=\"componentsSize\"\n (p-change)=\"onChangeContainsFrequency($event)\"\n >\n </po-switch>\n <ng-container *ngIf=\"containsFrequency\">\n <po-radio-group\n class=\"po-md-10\"\n name=\"frequencyType\"\n p-required\n [(ngModel)]=\"value.frequency.type\"\n [p-columns]=\"3\"\n [p-options]=\"frequencyOptions\"\n [p-size]=\"componentsSize\"\n (p-change)=\"onChangeFrequencyOptions()\"\n >\n </po-radio-group>\n\n <po-number\n class=\"po-md-2\"\n name=\"frequencyValue\"\n p-required\n [p-size]=\"componentsSize\"\n [(ngModel)]=\"value.frequency.value\"\n >\n </po-number>\n </ng-container>\n </div>\n\n <div class=\"po-row\">\n <po-divider class=\"po-md-12\" [p-label]=\"literals.periodicityData\"> </po-divider>\n\n <ng-container *ngTemplateOutlet=\"periodicityTemplates[value.periodicity]\"> </ng-container>\n </div>\n\n <div class=\"po-row\">\n <po-switch\n class=\"po-md-3\"\n name=\"recurrent\"\n [(ngModel)]=\"value.recurrent\"\n [p-label]=\"literals.recurrent\"\n [p-label-off]=\"literals.no\"\n [p-label-on]=\"literals.yes\"\n [p-size]=\"componentsSize\"\n >\n </po-switch>\n </div>\n </ng-container>\n </div>\n\n <ng-template #lookupProcessesID>\n <po-lookup\n *ngIf=\"noParameters && noCustomParamsComponent\"\n class=\"po-md-12\"\n name=\"processID\"\n [(ngModel)]=\"value.processID\"\n p-field-label=\"description\"\n p-field-value=\"processID\"\n p-required\n [p-disabled]=\"isEdit\"\n [p-filter-service]=\"poPageJobSchedulerLookup\"\n [p-label]=\"literals.process\"\n [p-placeholder]=\"literals.enterProcess\"\n [p-size]=\"componentsSize\"\n >\n </po-lookup>\n </ng-template>\n\n <ng-template #inputProcessesID>\n <po-input\n class=\"po-md-12\"\n name=\"processID\"\n [(ngModel)]=\"value.processID\"\n p-required\n [p-disabled]=\"isEdit\"\n [p-label]=\"literals.process\"\n [p-placeholder]=\"literals.enterProcess\"\n [p-size]=\"componentsSize\"\n >\n </po-input>\n </ng-template>\n\n <ng-template #dailyTemplate>\n <ng-container *ngTemplateOutlet=\"inputHourTemplate\"> </ng-container>\n </ng-template>\n\n <ng-template #weeklyTemplate>\n <div class=\"po-row\">\n <ng-container *ngTemplateOutlet=\"inputHourTemplate\"> </ng-container>\n </div>\n\n <po-checkbox-group\n class=\"po-md-12\"\n name=\"daysOfWeek\"\n [(ngModel)]=\"value.daysOfWeek\"\n p-columns=\"4\"\n p-required\n [p-label]=\"literals.weekDays\"\n [p-options]=\"weekDays\"\n [p-size]=\"componentsSize\"\n >\n </po-checkbox-group>\n </ng-template>\n\n <ng-template #monthlyTemplate>\n <po-number\n class=\"po-md-3\"\n name=\"dayOfMonth\"\n [(ngModel)]=\"value.dayOfMonth\"\n p-required\n [p-error-pattern]=\"'Dia inv\u00E1lido'\"\n [p-label]=\"dayLabel\"\n [p-max]=\"31\"\n [p-pattern]=\"dayPattern\"\n [p-size]=\"componentsSize\"\n >\n </po-number>\n\n <po-number\n *ngIf=\"containsFrequency\"\n class=\"po-md-3\"\n name=\"rangeLimitDay\"\n [(ngModel)]=\"value.rangeLimitDay\"\n p-required\n [p-error-pattern]=\"'Dia inv\u00E1lido'\"\n [p-label]=\"literals.endDay\"\n [p-max]=\"31\"\n [p-pattern]=\"dayPattern\"\n [p-size]=\"componentsSize\"\n >\n </po-number>\n\n <ng-container *ngTemplateOutlet=\"inputHourTemplate\"> </ng-container>\n </ng-template>\n\n <ng-template #inputHourTemplate>\n <po-input\n class=\"po-md-2\"\n name=\"hour\"\n [(ngModel)]=\"value.hour\"\n p-mask=\"99:99\"\n p-mask-format-model\n p-placeholder=\"HH:mm\"\n p-required\n [p-label]=\"hourLabel\"\n [p-pattern]=\"timePattern\"\n [p-size]=\"componentsSize\"\n >\n </po-input>\n\n <po-input\n *ngIf=\"containsFrequency && value.frequency.type !== 'day'\"\n class=\"po-md-2\"\n name=\"rangeLimitHour\"\n [(ngModel)]=\"value.rangeLimitHour\"\n p-mask=\"99:99\"\n p-mask-format-model\n p-placeholder=\"HH:mm\"\n p-required\n [p-label]=\"literals.endTime\"\n [p-pattern]=\"timePattern\"\n [p-size]=\"componentsSize\"\n >\n </po-input>\n </ng-template>\n</form>\n" }]
|
|
8676
8992
|
}], () => [{ type: PoPageJobSchedulerService }, { type: PoPageJobSchedulerLookupService }], { form: [{
|
|
8677
8993
|
type: ViewChild,
|
|
8678
8994
|
args: ['formExecution', { static: true }]
|
|
@@ -8685,6 +9001,9 @@ class PoPageJobSchedulerExecutionComponent {
|
|
|
8685
9001
|
}], weeklyTempalte: [{
|
|
8686
9002
|
type: ViewChild,
|
|
8687
9003
|
args: ['weeklyTemplate', { static: true }]
|
|
9004
|
+
}], componentsSize: [{
|
|
9005
|
+
type: Input,
|
|
9006
|
+
args: ['p-components-size']
|
|
8688
9007
|
}], isEdit: [{
|
|
8689
9008
|
type: Input,
|
|
8690
9009
|
args: ['p-is-edit']
|
|
@@ -8728,10 +9047,11 @@ function PoPageJobSchedulerParametersComponent_ng_template_3_Template(rf, ctx) {
|
|
|
8728
9047
|
} if (rf & 2) {
|
|
8729
9048
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
8730
9049
|
i0.ɵɵadvance(2);
|
|
8731
|
-
i0.ɵɵproperty("p-fields", ctx_r0.parameters)("p-value", ctx_r0.value);
|
|
9050
|
+
i0.ɵɵproperty("p-components-size", ctx_r0.componentsSize)("p-fields", ctx_r0.parameters)("p-value", ctx_r0.value);
|
|
8732
9051
|
} }
|
|
8733
9052
|
class PoPageJobSchedulerParametersComponent {
|
|
8734
9053
|
form;
|
|
9054
|
+
componentsSize;
|
|
8735
9055
|
literals = {};
|
|
8736
9056
|
parameters = [];
|
|
8737
9057
|
value;
|
|
@@ -8751,20 +9071,23 @@ class PoPageJobSchedulerParametersComponent {
|
|
|
8751
9071
|
} if (rf & 2) {
|
|
8752
9072
|
let _t;
|
|
8753
9073
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.form = _t.first);
|
|
8754
|
-
} }, inputs: { literals: [0, "p-literals", "literals"], parameters: [0, "p-parameters", "parameters"], value: [0, "p-value", "value"] }, outputs: { valueChange: "p-valueChange" }, standalone: false, decls: 5, vars: 3, consts: [["parametersNotFoundTemplate", ""], ["formFieldsTemplate", ""], ["parametersForm", "ngForm"], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-text-center"], ["p-icon", "ICON_INFO"], [1, "po-font-text-large"], ["p-group-form", "", 3, "p-fields", "p-value"]], template: function PoPageJobSchedulerParametersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8755
|
-
i0.ɵɵtemplate(0, PoPageJobSchedulerParametersComponent_ng_container_0_Template, 1, 0, "ng-container", 3)(1, PoPageJobSchedulerParametersComponent_ng_template_1_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, PoPageJobSchedulerParametersComponent_ng_template_3_Template, 3,
|
|
9074
|
+
} }, inputs: { componentsSize: [0, "p-components-size", "componentsSize"], literals: [0, "p-literals", "literals"], parameters: [0, "p-parameters", "parameters"], value: [0, "p-value", "value"] }, outputs: { valueChange: "p-valueChange" }, standalone: false, decls: 5, vars: 3, consts: [["parametersNotFoundTemplate", ""], ["formFieldsTemplate", ""], ["parametersForm", "ngForm"], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-text-center"], ["p-icon", "ICON_INFO"], [1, "po-font-text-large"], ["p-group-form", "", 3, "p-components-size", "p-fields", "p-value"]], template: function PoPageJobSchedulerParametersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9075
|
+
i0.ɵɵtemplate(0, PoPageJobSchedulerParametersComponent_ng_container_0_Template, 1, 0, "ng-container", 3)(1, PoPageJobSchedulerParametersComponent_ng_template_1_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, PoPageJobSchedulerParametersComponent_ng_template_3_Template, 3, 3, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
8756
9076
|
} if (rf & 2) {
|
|
8757
9077
|
const parametersNotFoundTemplate_r2 = i0.ɵɵreference(2);
|
|
8758
9078
|
const formFieldsTemplate_r3 = i0.ɵɵreference(4);
|
|
8759
9079
|
i0.ɵɵproperty("ngIf", ctx.parameters && ctx.parameters.length)("ngIfThen", formFieldsTemplate_r3)("ngIfElse", parametersNotFoundTemplate_r2);
|
|
8760
|
-
} }, dependencies: [i4.NgIf, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm,
|
|
9080
|
+
} }, dependencies: [i4.NgIf, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm, i1.PoDynamicFormComponent, i1.PoIconComponent], encapsulation: 2 });
|
|
8761
9081
|
}
|
|
8762
9082
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageJobSchedulerParametersComponent, [{
|
|
8763
9083
|
type: Component,
|
|
8764
|
-
args: [{ selector: 'po-page-job-scheduler-parameters', standalone: false, template: "<ng-container *ngIf=\"parameters && parameters.length; then formFieldsTemplate; else parametersNotFoundTemplate\">\n</ng-container>\n\n<ng-template #parametersNotFoundTemplate>\n <div class=\"po-text-center\">\n <po-icon p-icon=\"ICON_INFO\"></po-icon>\n <span class=\"po-font-text-large\">\n {{ literals.parametersNotFound }}\n </span>\n </div>\n</ng-template>\n\n<ng-template #formFieldsTemplate>\n <form #parametersForm=\"ngForm\">\n <po-dynamic-form p-group-form [p-fields]=\"parameters\" [p-value]=\"value\"
|
|
9084
|
+
args: [{ selector: 'po-page-job-scheduler-parameters', standalone: false, template: "<ng-container *ngIf=\"parameters && parameters.length; then formFieldsTemplate; else parametersNotFoundTemplate\">\n</ng-container>\n\n<ng-template #parametersNotFoundTemplate>\n <div class=\"po-text-center\">\n <po-icon p-icon=\"ICON_INFO\"></po-icon>\n <span class=\"po-font-text-large\">\n {{ literals.parametersNotFound }}\n </span>\n </div>\n</ng-template>\n\n<ng-template #formFieldsTemplate>\n <form #parametersForm=\"ngForm\">\n <po-dynamic-form p-group-form [p-components-size]=\"componentsSize\" [p-fields]=\"parameters\" [p-value]=\"value\">\n </po-dynamic-form>\n </form>\n</ng-template>\n" }]
|
|
8765
9085
|
}], null, { form: [{
|
|
8766
9086
|
type: ViewChild,
|
|
8767
9087
|
args: ['parametersForm']
|
|
9088
|
+
}], componentsSize: [{
|
|
9089
|
+
type: Input,
|
|
9090
|
+
args: ['p-components-size']
|
|
8768
9091
|
}], literals: [{
|
|
8769
9092
|
type: Input,
|
|
8770
9093
|
args: ['p-literals']
|
|
@@ -8820,6 +9143,7 @@ function PoPageJobSchedulerSummaryComponent_div_8_Template(rf, ctx) { if (rf & 1
|
|
|
8820
9143
|
} }
|
|
8821
9144
|
class PoPageJobSchedulerSummaryComponent {
|
|
8822
9145
|
datePipe;
|
|
9146
|
+
componentsSize;
|
|
8823
9147
|
literals = {};
|
|
8824
9148
|
parameters = [];
|
|
8825
9149
|
value = {};
|
|
@@ -8938,7 +9262,7 @@ class PoPageJobSchedulerSummaryComponent {
|
|
|
8938
9262
|
});
|
|
8939
9263
|
}
|
|
8940
9264
|
static ɵfac = function PoPageJobSchedulerSummaryComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerSummaryComponent)(i0.ɵɵdirectiveInject(i4.DatePipe)); };
|
|
8941
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageJobSchedulerSummaryComponent, selectors: [["po-page-job-scheduler-summary"]], inputs: { literals: [0, "p-literals", "literals"], parameters: [0, "p-parameters", "parameters"], value: [0, "p-value", "value"], noParameters: [0, "p-no-parameters", "noParameters"], jobSchedulerSummaryTemplate: [0, "p-summary-template", "jobSchedulerSummaryTemplate"] }, standalone: false, decls: 9, vars: 14, consts: [[1, "po-md-12"], [3, "p-label", "p-orientation", "p-value", 4, "ngIf"], [3, "p-label", "p-orientation", "p-value"], ["class", "po-pt-1 po-pb-1 po-md-12", 3, "p-title", 4, "ngIf"], ["class", "po-pt-1 po-pb-1 po-md-12", 4, "ngIf"], [1, "po-pt-1", "po-pb-1", "po-md-12", 3, "p-title"], [3, "p-fields", "p-value"], [1, "po-pt-1", "po-pb-1", "po-md-12"], [3, "ngTemplateOutlet"]], template: function PoPageJobSchedulerSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9265
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageJobSchedulerSummaryComponent, selectors: [["po-page-job-scheduler-summary"]], inputs: { componentsSize: [0, "p-components-size", "componentsSize"], literals: [0, "p-literals", "literals"], parameters: [0, "p-parameters", "parameters"], value: [0, "p-value", "value"], noParameters: [0, "p-no-parameters", "noParameters"], jobSchedulerSummaryTemplate: [0, "p-summary-template", "jobSchedulerSummaryTemplate"] }, standalone: false, decls: 9, vars: 14, consts: [[1, "po-md-12"], [3, "p-label", "p-orientation", "p-value", 4, "ngIf"], [3, "p-label", "p-orientation", "p-value"], ["class", "po-pt-1 po-pb-1 po-md-12", 3, "p-title", 4, "ngIf"], ["class", "po-pt-1 po-pb-1 po-md-12", 4, "ngIf"], [1, "po-pt-1", "po-pb-1", "po-md-12", 3, "p-title"], [3, "p-fields", "p-value"], [1, "po-pt-1", "po-pb-1", "po-md-12"], [3, "ngTemplateOutlet"]], template: function PoPageJobSchedulerSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8942
9266
|
i0.ɵɵelementStart(0, "div", 0);
|
|
8943
9267
|
i0.ɵɵtemplate(1, PoPageJobSchedulerSummaryComponent_po_info_1_Template, 1, 3, "po-info", 1);
|
|
8944
9268
|
i0.ɵɵelement(2, "po-info", 2);
|
|
@@ -8963,12 +9287,15 @@ class PoPageJobSchedulerSummaryComponent {
|
|
|
8963
9287
|
i0.ɵɵproperty("ngIf", ctx.parameters && ctx.parameters.length && !ctx.jobSchedulerSummaryTemplate);
|
|
8964
9288
|
i0.ɵɵadvance();
|
|
8965
9289
|
i0.ɵɵproperty("ngIf", ctx.jobSchedulerSummaryTemplate);
|
|
8966
|
-
} }, dependencies: [i4.NgIf, i4.NgTemplateOutlet,
|
|
9290
|
+
} }, dependencies: [i4.NgIf, i4.NgTemplateOutlet, i1.PoDynamicViewComponent, i1.PoInfoComponent, i1.PoWidgetComponent], encapsulation: 2 });
|
|
8967
9291
|
}
|
|
8968
9292
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageJobSchedulerSummaryComponent, [{
|
|
8969
9293
|
type: Component,
|
|
8970
9294
|
args: [{ selector: 'po-page-job-scheduler-summary', standalone: false, template: "<div class=\"po-md-12\">\n <po-info\n *ngIf=\"!noParameters\"\n [p-label]=\"literals.process\"\n [p-orientation]=\"infoOrientation\"\n [p-value]=\"value.processID\"\n >\n </po-info>\n\n <po-info [p-label]=\"literals.periodicity\" [p-orientation]=\"infoOrientation\" [p-value]=\"periodicityValue\"> </po-info>\n\n <po-info\n *ngIf=\"frequencyValue !== ''\"\n [p-label]=\"literals.frequency\"\n [p-orientation]=\"infoOrientation\"\n [p-value]=\"frequencyValue\"\n >\n </po-info>\n\n <po-info\n *ngIf=\"value.periodicity !== 'single'\"\n [p-label]=\"literals.execution\"\n [p-orientation]=\"infoOrientation\"\n [p-value]=\"executionValue\"\n >\n </po-info>\n\n <po-info [p-label]=\"literals.recurrent\" [p-orientation]=\"infoOrientation\" [p-value]=\"recurrentValue\"> </po-info>\n\n <po-info [p-label]=\"literals.firstExecution\" [p-orientation]=\"infoOrientation\" [p-value]=\"firstExecutionValue\">\n </po-info>\n</div>\n<po-widget\n *ngIf=\"parameters && parameters.length && !jobSchedulerSummaryTemplate\"\n class=\"po-pt-1 po-pb-1 po-md-12\"\n [p-title]=\"literals.parameters\"\n>\n <po-dynamic-view [p-fields]=\"parameters\" [p-value]=\"value.executionParameter\"> </po-dynamic-view>\n</po-widget>\n<div *ngIf=\"jobSchedulerSummaryTemplate\" class=\"po-pt-1 po-pb-1 po-md-12\">\n <ng-template [ngTemplateOutlet]=\"jobSchedulerSummaryTemplate?.templateRef\"></ng-template>\n</div>\n" }]
|
|
8971
|
-
}], () => [{ type: i4.DatePipe }], {
|
|
9295
|
+
}], () => [{ type: i4.DatePipe }], { componentsSize: [{
|
|
9296
|
+
type: Input,
|
|
9297
|
+
args: ['p-components-size']
|
|
9298
|
+
}], literals: [{
|
|
8972
9299
|
type: Input,
|
|
8973
9300
|
args: ['p-literals']
|
|
8974
9301
|
}], parameters: [{
|
|
@@ -8996,14 +9323,14 @@ function PoPageJobSchedulerComponent_po_page_job_scheduler_parameters_9_Template
|
|
|
8996
9323
|
i0.ɵɵelementEnd();
|
|
8997
9324
|
} if (rf & 2) {
|
|
8998
9325
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
8999
|
-
i0.ɵɵproperty("hidden", ctx_r2.step !== ctx_r2.stepParameters)("p-literals", ctx_r2.literals)("p-parameters", ctx_r2.parameters || i0.ɵɵpureFunction0(
|
|
9326
|
+
i0.ɵɵproperty("hidden", ctx_r2.step !== ctx_r2.stepParameters)("p-components-size", ctx_r2.componentsSize)("p-literals", ctx_r2.literals)("p-parameters", ctx_r2.parameters || i0.ɵɵpureFunction0(5, _c2));
|
|
9000
9327
|
i0.ɵɵtwoWayProperty("p-value", ctx_r2.model.executionParameter);
|
|
9001
9328
|
} }
|
|
9002
9329
|
function PoPageJobSchedulerComponent_po_page_job_scheduler_summary_10_Template(rf, ctx) { if (rf & 1) {
|
|
9003
9330
|
i0.ɵɵelement(0, "po-page-job-scheduler-summary", 12);
|
|
9004
9331
|
} if (rf & 2) {
|
|
9005
9332
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
9006
|
-
i0.ɵɵproperty("p-no-parameters", !ctx_r2.parameters.length)("p-summary-template", ctx_r2.jobSchedulerSummaryTemplate)("p-literals", ctx_r2.literals)("p-parameters", ctx_r2.parameters)("p-value", ctx_r2.publicValues);
|
|
9333
|
+
i0.ɵɵproperty("p-no-parameters", !ctx_r2.parameters.length)("p-summary-template", ctx_r2.jobSchedulerSummaryTemplate)("p-components-size", ctx_r2.componentsSize)("p-literals", ctx_r2.literals)("p-parameters", ctx_r2.parameters)("p-value", ctx_r2.publicValues);
|
|
9007
9334
|
} }
|
|
9008
9335
|
function PoPageJobSchedulerComponent_ng_container_11_ng_template_2_Template(rf, ctx) { }
|
|
9009
9336
|
function PoPageJobSchedulerComponent_ng_container_11_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -9042,6 +9369,7 @@ class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent {
|
|
|
9042
9369
|
activatedRoute;
|
|
9043
9370
|
poDialogService;
|
|
9044
9371
|
poNotification;
|
|
9372
|
+
poThemeService;
|
|
9045
9373
|
poPageJobSchedulerService;
|
|
9046
9374
|
schedulerExecution;
|
|
9047
9375
|
schedulerParameters;
|
|
@@ -9079,12 +9407,13 @@ class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent {
|
|
|
9079
9407
|
stepParameters = 2;
|
|
9080
9408
|
stepSummary = 3;
|
|
9081
9409
|
_stepExecutionLast;
|
|
9082
|
-
constructor(poPageDynamicLookupService, activatedRoute, poDialogService, poNotification, poPageJobSchedulerService, languageService) {
|
|
9083
|
-
super(poPageJobSchedulerService);
|
|
9410
|
+
constructor(poPageDynamicLookupService, activatedRoute, poDialogService, poNotification, poThemeService, poPageJobSchedulerService, languageService) {
|
|
9411
|
+
super(poPageJobSchedulerService, poThemeService);
|
|
9084
9412
|
this.poPageDynamicLookupService = poPageDynamicLookupService;
|
|
9085
9413
|
this.activatedRoute = activatedRoute;
|
|
9086
9414
|
this.poDialogService = poDialogService;
|
|
9087
9415
|
this.poNotification = poNotification;
|
|
9416
|
+
this.poThemeService = poThemeService;
|
|
9088
9417
|
this.poPageJobSchedulerService = poPageJobSchedulerService;
|
|
9089
9418
|
const language = languageService.getShortLanguage();
|
|
9090
9419
|
this.literals = {
|
|
@@ -9326,7 +9655,7 @@ class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent {
|
|
|
9326
9655
|
}
|
|
9327
9656
|
return this.templateHasDisable();
|
|
9328
9657
|
}
|
|
9329
|
-
static ɵfac = function PoPageJobSchedulerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerComponent)(i0.ɵɵdirectiveInject(PoPageJobSchedulerLookupService), i0.ɵɵdirectiveInject(i1$
|
|
9658
|
+
static ɵfac = function PoPageJobSchedulerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerComponent)(i0.ɵɵdirectiveInject(PoPageJobSchedulerLookupService), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1.PoDialogService), i0.ɵɵdirectiveInject(i1.PoNotificationService), i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(PoPageJobSchedulerService), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
9330
9659
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageJobSchedulerComponent, selectors: [["po-page-job-scheduler"]], contentQueries: function PoPageJobSchedulerComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
9331
9660
|
i0.ɵɵcontentQuery(dirIndex, PoJobSchedulerSummaryTemplateDirective, 5);
|
|
9332
9661
|
i0.ɵɵcontentQuery(dirIndex, PoJobSchedulerParametersTemplateDirective, 4);
|
|
@@ -9341,7 +9670,7 @@ class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent {
|
|
|
9341
9670
|
let _t;
|
|
9342
9671
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.schedulerExecution = _t.first);
|
|
9343
9672
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.schedulerParameters = _t.first);
|
|
9344
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars:
|
|
9673
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 19, consts: [["formScheduler", "ngForm"], ["schedulerExecution", ""], ["schedulerParameters", ""], [3, "p-actions", "p-breadcrumb", "p-components-size", "p-title"], [1, "po-row"], ["p-sequential", "true", 3, "p-change-step", "ngClass", "p-orientation", "p-step", "p-steps"], [3, "ngClass"], [1, "po-md-12", 3, "p-change-process", "p-no-parameters", "p-no-custom-params-component", "hidden", "p-components-size", "p-is-edit", "p-literals", "p-value"], ["class", "po-md-12", 3, "hidden", "p-components-size", "p-literals", "p-parameters", "p-value", "p-valueChange", 4, "ngIf"], ["class", "po-md-12", 3, "p-no-parameters", "p-summary-template", "p-components-size", "p-literals", "p-parameters", "p-value", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "po-md-12", 3, "p-valueChange", "hidden", "p-components-size", "p-literals", "p-parameters", "p-value"], [1, "po-md-12", 3, "p-no-parameters", "p-summary-template", "p-components-size", "p-literals", "p-parameters", "p-value"], [3, "hidden"], [3, "ngTemplateOutlet"]], template: function PoPageJobSchedulerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9345
9674
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
9346
9675
|
i0.ɵɵelementStart(0, "po-page-default", 3)(1, "div", 4)(2, "po-stepper", 5);
|
|
9347
9676
|
i0.ɵɵlistener("p-change-step", function PoPageJobSchedulerComponent_Template_po_stepper_p_change_step_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.nextStep($event)); });
|
|
@@ -9349,30 +9678,30 @@ class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent {
|
|
|
9349
9678
|
i0.ɵɵelementStart(3, "po-container", 6)(4, "form", null, 0)(6, "div", 4)(7, "po-page-job-scheduler-execution", 7, 1);
|
|
9350
9679
|
i0.ɵɵlistener("p-change-process", function PoPageJobSchedulerComponent_Template_po_page_job_scheduler_execution_p_change_process_7_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onChangeProcess($event)); });
|
|
9351
9680
|
i0.ɵɵelementEnd();
|
|
9352
|
-
i0.ɵɵtemplate(9, PoPageJobSchedulerComponent_po_page_job_scheduler_parameters_9_Template, 2,
|
|
9681
|
+
i0.ɵɵtemplate(9, PoPageJobSchedulerComponent_po_page_job_scheduler_parameters_9_Template, 2, 6, "po-page-job-scheduler-parameters", 8)(10, PoPageJobSchedulerComponent_po_page_job_scheduler_summary_10_Template, 1, 6, "po-page-job-scheduler-summary", 9);
|
|
9353
9682
|
i0.ɵɵelementEnd()();
|
|
9354
9683
|
i0.ɵɵtemplate(11, PoPageJobSchedulerComponent_ng_container_11_Template, 3, 2, "ng-container", 10);
|
|
9355
9684
|
i0.ɵɵelementEnd()()();
|
|
9356
9685
|
} if (rf & 2) {
|
|
9357
|
-
i0.ɵɵproperty("p-actions", ctx.jobSchedulerActions)("p-breadcrumb", ctx.breadcrumb)("p-title", ctx.title);
|
|
9686
|
+
i0.ɵɵproperty("p-actions", ctx.jobSchedulerActions)("p-breadcrumb", ctx.breadcrumb)("p-components-size", ctx.componentsSize)("p-title", ctx.title);
|
|
9358
9687
|
i0.ɵɵadvance(2);
|
|
9359
9688
|
i0.ɵɵproperty("ngClass", ctx.stepperDefaultOrientation === "horizontal" ? "po-lg-12 po-xl-12" : "po-lg-3 po-xl-2")("p-orientation", ctx.stepperOrientation)("p-step", ctx.step)("p-steps", ctx.steps);
|
|
9360
9689
|
i0.ɵɵadvance();
|
|
9361
9690
|
i0.ɵɵproperty("ngClass", ctx.stepperDefaultOrientation === "horizontal" ? "po-lg-12 po-xl-12" : "po-lg-8 po-xl-6");
|
|
9362
9691
|
i0.ɵɵadvance(4);
|
|
9363
|
-
i0.ɵɵproperty("p-no-parameters", ctx.parametersEmpty)("p-no-custom-params-component", !ctx.parametersTemplate.length)("hidden", ctx.step !== ctx.stepExecution)("p-is-edit", ctx.isEdit)("p-literals", ctx.literals)("p-value", ctx.model);
|
|
9692
|
+
i0.ɵɵproperty("p-no-parameters", ctx.parametersEmpty)("p-no-custom-params-component", !ctx.parametersTemplate.length)("hidden", ctx.step !== ctx.stepExecution)("p-components-size", ctx.componentsSize)("p-is-edit", ctx.isEdit)("p-literals", ctx.literals)("p-value", ctx.model);
|
|
9364
9693
|
i0.ɵɵadvance(2);
|
|
9365
9694
|
i0.ɵɵproperty("ngIf", ctx.stepParametersInitialized && !ctx.parametersTemplate.length);
|
|
9366
9695
|
i0.ɵɵadvance();
|
|
9367
9696
|
i0.ɵɵproperty("ngIf", ctx.step === ctx.stepSummary);
|
|
9368
9697
|
i0.ɵɵadvance();
|
|
9369
9698
|
i0.ɵɵproperty("ngForOf", ctx.parametersTemplate);
|
|
9370
|
-
} }, dependencies: [i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgTemplateOutlet, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm,
|
|
9699
|
+
} }, dependencies: [i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgTemplateOutlet, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm, i1.PoContainerComponent, i1.PoPageDefaultComponent, i1.PoStepperComponent, PoPageJobSchedulerExecutionComponent, PoPageJobSchedulerParametersComponent, PoPageJobSchedulerSummaryComponent], styles: ["po-container .po-container{overflow-y:unset}\n"], encapsulation: 2 });
|
|
9371
9700
|
}
|
|
9372
9701
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageJobSchedulerComponent, [{
|
|
9373
9702
|
type: Component,
|
|
9374
|
-
args: [{ selector: 'po-page-job-scheduler', encapsulation: ViewEncapsulation.None, standalone: false, template: "<po-page-default
|
|
9375
|
-
}], () => [{ type: PoPageJobSchedulerLookupService }, { type: i1$
|
|
9703
|
+
args: [{ selector: 'po-page-job-scheduler', encapsulation: ViewEncapsulation.None, standalone: false, template: "<po-page-default\n [p-actions]=\"jobSchedulerActions\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-components-size]=\"componentsSize\"\n [p-title]=\"title\"\n>\n <div class=\"po-row\">\n <po-stepper\n [ngClass]=\"stepperDefaultOrientation === 'horizontal' ? 'po-lg-12 po-xl-12' : 'po-lg-3 po-xl-2'\"\n p-sequential=\"true\"\n [p-orientation]=\"stepperOrientation\"\n [p-step]=\"step\"\n [p-steps]=\"steps\"\n (p-change-step)=\"nextStep($event)\"\n >\n </po-stepper>\n\n <po-container [ngClass]=\"stepperDefaultOrientation === 'horizontal' ? 'po-lg-12 po-xl-12' : 'po-lg-8 po-xl-6'\">\n <form #formScheduler=\"ngForm\">\n <div class=\"po-row\">\n <po-page-job-scheduler-execution\n [p-no-parameters]=\"parametersEmpty\"\n [p-no-custom-params-component]=\"!parametersTemplate.length\"\n [hidden]=\"step !== stepExecution\"\n #schedulerExecution\n class=\"po-md-12\"\n [p-components-size]=\"componentsSize\"\n [p-is-edit]=\"isEdit\"\n [p-literals]=\"literals\"\n [p-value]=\"model\"\n (p-change-process)=\"onChangeProcess($event)\"\n >\n </po-page-job-scheduler-execution>\n\n <po-page-job-scheduler-parameters\n *ngIf=\"stepParametersInitialized && !parametersTemplate.length\"\n [hidden]=\"step !== stepParameters\"\n #schedulerParameters\n class=\"po-md-12\"\n [p-components-size]=\"componentsSize\"\n [p-literals]=\"literals\"\n [p-parameters]=\"parameters || []\"\n [(p-value)]=\"model.executionParameter\"\n >\n </po-page-job-scheduler-parameters>\n\n <po-page-job-scheduler-summary\n *ngIf=\"step === stepSummary\"\n [p-no-parameters]=\"!parameters.length\"\n [p-summary-template]=\"jobSchedulerSummaryTemplate\"\n class=\"po-md-12\"\n [p-components-size]=\"componentsSize\"\n [p-literals]=\"literals\"\n [p-parameters]=\"parameters\"\n [p-value]=\"publicValues\"\n >\n </po-page-job-scheduler-summary>\n </div>\n </form>\n\n <ng-container *ngFor=\"let template of parametersTemplate; index as index\">\n <div [hidden]=\"step !== index + (_stepExecutionLast ? 1 : 2)\">\n <ng-template [ngTemplateOutlet]=\"template?.templateRef\"></ng-template>\n </div>\n </ng-container>\n </po-container>\n </div>\n</po-page-default>\n", styles: ["po-container .po-container{overflow-y:unset}\n"] }]
|
|
9704
|
+
}], () => [{ type: PoPageJobSchedulerLookupService }, { type: i1$2.ActivatedRoute }, { type: i1.PoDialogService }, { type: i1.PoNotificationService }, { type: i1.PoThemeService }, { type: PoPageJobSchedulerService }, { type: i1.PoLanguageService }], { schedulerExecution: [{
|
|
9376
9705
|
type: ViewChild,
|
|
9377
9706
|
args: ['schedulerExecution', { static: true }]
|
|
9378
9707
|
}], schedulerParameters: [{
|
|
@@ -9385,7 +9714,7 @@ class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent {
|
|
|
9385
9714
|
type: ContentChild,
|
|
9386
9715
|
args: [PoJobSchedulerSummaryTemplateDirective]
|
|
9387
9716
|
}] }); })();
|
|
9388
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageJobSchedulerComponent, { className: "PoPageJobSchedulerComponent", filePath: "lib/components/po-page-job-scheduler/po-page-job-scheduler.component.ts", lineNumber:
|
|
9717
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoPageJobSchedulerComponent, { className: "PoPageJobSchedulerComponent", filePath: "lib/components/po-page-job-scheduler/po-page-job-scheduler.component.ts", lineNumber: 66 }); })();
|
|
9389
9718
|
|
|
9390
9719
|
class PoPageJobSchedulerModule {
|
|
9391
9720
|
static ɵfac = function PoPageJobSchedulerModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageJobSchedulerModule)(); };
|
|
@@ -9494,7 +9823,7 @@ class PoPageLoginService {
|
|
|
9494
9823
|
return this.http.post(url, loginForm, { headers });
|
|
9495
9824
|
}
|
|
9496
9825
|
}
|
|
9497
|
-
static ɵfac = function PoPageLoginService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageLoginService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
9826
|
+
static ɵfac = function PoPageLoginService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageLoginService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
9498
9827
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoPageLoginService, factory: PoPageLoginService.ɵfac, providedIn: 'root' });
|
|
9499
9828
|
}
|
|
9500
9829
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageLoginService, [{
|
|
@@ -9502,7 +9831,7 @@ class PoPageLoginService {
|
|
|
9502
9831
|
args: [{
|
|
9503
9832
|
providedIn: 'root'
|
|
9504
9833
|
}]
|
|
9505
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
9834
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
9506
9835
|
|
|
9507
9836
|
const poPageLoginContentMaxLength = 40;
|
|
9508
9837
|
const poPageLoginLiteralsDefault = {
|
|
@@ -9651,6 +9980,7 @@ const poPageLoginLiteralIn = {
|
|
|
9651
9980
|
* ```
|
|
9652
9981
|
*/
|
|
9653
9982
|
class PoPageLoginBaseComponent {
|
|
9983
|
+
poThemeService;
|
|
9654
9984
|
loginService;
|
|
9655
9985
|
router;
|
|
9656
9986
|
poLanguageService;
|
|
@@ -9820,6 +10150,7 @@ class PoPageLoginBaseComponent {
|
|
|
9820
10150
|
_authenticationType = PoPageLoginAuthenticationType.Basic;
|
|
9821
10151
|
_authenticationUrl;
|
|
9822
10152
|
_blockedUrl;
|
|
10153
|
+
_componentsSize = undefined;
|
|
9823
10154
|
_contactEmail;
|
|
9824
10155
|
_customField;
|
|
9825
10156
|
_environment;
|
|
@@ -9835,6 +10166,26 @@ class PoPageLoginBaseComponent {
|
|
|
9835
10166
|
_registerUrl;
|
|
9836
10167
|
_support;
|
|
9837
10168
|
_languagesList;
|
|
10169
|
+
/**
|
|
10170
|
+
* @optional
|
|
10171
|
+
*
|
|
10172
|
+
* @description
|
|
10173
|
+
*
|
|
10174
|
+
* Define o tamanho dos componentes de formulário no template:
|
|
10175
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
10176
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
10177
|
+
*
|
|
10178
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
10179
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
10180
|
+
*
|
|
10181
|
+
* @default `medium`
|
|
10182
|
+
*/
|
|
10183
|
+
set componentsSize(value) {
|
|
10184
|
+
this._componentsSize = validateSize(value, this.poThemeService);
|
|
10185
|
+
}
|
|
10186
|
+
get componentsSize() {
|
|
10187
|
+
return this._componentsSize ?? getDefaultSize(this.poThemeService);
|
|
10188
|
+
}
|
|
9838
10189
|
/**
|
|
9839
10190
|
* @optional
|
|
9840
10191
|
*
|
|
@@ -10421,7 +10772,8 @@ class PoPageLoginBaseComponent {
|
|
|
10421
10772
|
...this.literals
|
|
10422
10773
|
};
|
|
10423
10774
|
}
|
|
10424
|
-
constructor(loginService, router, poLanguageService) {
|
|
10775
|
+
constructor(poThemeService, loginService, router, poLanguageService) {
|
|
10776
|
+
this.poThemeService = poThemeService;
|
|
10425
10777
|
this.loginService = loginService;
|
|
10426
10778
|
this.router = router;
|
|
10427
10779
|
this.poLanguageService = poLanguageService;
|
|
@@ -10495,12 +10847,12 @@ class PoPageLoginBaseComponent {
|
|
|
10495
10847
|
this.blockedUrl = '';
|
|
10496
10848
|
}
|
|
10497
10849
|
}
|
|
10498
|
-
static ɵfac = function PoPageLoginBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageLoginBaseComponent)(i0.ɵɵdirectiveInject(PoPageLoginService), i0.ɵɵdirectiveInject(i1$
|
|
10499
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageLoginBaseComponent, inputs: { background: [0, "p-background", "background"], logo: [0, "p-logo", "logo"], loginPattern: [0, "p-login-pattern", "loginPattern"], passwordPattern: [0, "p-password-pattern", "passwordPattern"], secondaryLogo: [0, "p-secondary-logo", "secondaryLogo"], noAutocompleteLogin: [0, "p-no-autocomplete-login", "noAutocompleteLogin"], noAutocompletePassword: [0, "p-no-autocomplete-password", "noAutocompletePassword"], hideLabelStatus: [2, "p-hide-label-status", "hideLabelStatus", convertToBoolean], hidePasswordPeek: [0, "p-hide-password-peek", "hidePasswordPeek"], customField: [0, "p-custom-field", "customField"], contactEmail: [0, "p-contact-email", "contactEmail"], productName: [0, "p-product-name", "productName"], environment: [0, "p-environment", "environment"], exceededAttemptsWarning: [0, "p-exceeded-attempts-warning", "exceededAttemptsWarning"], hideRememberUser: [0, "p-hide-remember-user", "hideRememberUser"], literals: [0, "p-literals", "literals"], loading: [0, "p-loading", "loading"], login: [0, "p-login", "login"], loginErrors: [0, "p-login-errors", "loginErrors"], passwordErrors: [0, "p-password-errors", "passwordErrors"], recovery: [0, "p-recovery", "recovery"], registerUrl: [0, "p-register-url", "registerUrl"], authenticationType: [0, "p-authentication-type", "authenticationType"], authenticationUrl: [0, "p-authentication-url", "authenticationUrl"], blockedUrl: [0, "p-blocked-url", "blockedUrl"], support: [0, "p-support", "support"], languagesList: [0, "p-languages", "languagesList"] }, outputs: { loginChange: "p-login-change", loginSubmit: "p-login-submit", passwordChange: "p-password-change", languageChange: "p-language-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
10850
|
+
static ɵfac = function PoPageLoginBaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageLoginBaseComponent)(i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(PoPageLoginService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
10851
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoPageLoginBaseComponent, inputs: { background: [0, "p-background", "background"], logo: [0, "p-logo", "logo"], loginPattern: [0, "p-login-pattern", "loginPattern"], passwordPattern: [0, "p-password-pattern", "passwordPattern"], secondaryLogo: [0, "p-secondary-logo", "secondaryLogo"], noAutocompleteLogin: [0, "p-no-autocomplete-login", "noAutocompleteLogin"], noAutocompletePassword: [0, "p-no-autocomplete-password", "noAutocompletePassword"], hideLabelStatus: [2, "p-hide-label-status", "hideLabelStatus", convertToBoolean], hidePasswordPeek: [0, "p-hide-password-peek", "hidePasswordPeek"], componentsSize: [0, "p-components-size", "componentsSize"], customField: [0, "p-custom-field", "customField"], contactEmail: [0, "p-contact-email", "contactEmail"], productName: [0, "p-product-name", "productName"], environment: [0, "p-environment", "environment"], exceededAttemptsWarning: [0, "p-exceeded-attempts-warning", "exceededAttemptsWarning"], hideRememberUser: [0, "p-hide-remember-user", "hideRememberUser"], literals: [0, "p-literals", "literals"], loading: [0, "p-loading", "loading"], login: [0, "p-login", "login"], loginErrors: [0, "p-login-errors", "loginErrors"], passwordErrors: [0, "p-password-errors", "passwordErrors"], recovery: [0, "p-recovery", "recovery"], registerUrl: [0, "p-register-url", "registerUrl"], authenticationType: [0, "p-authentication-type", "authenticationType"], authenticationUrl: [0, "p-authentication-url", "authenticationUrl"], blockedUrl: [0, "p-blocked-url", "blockedUrl"], support: [0, "p-support", "support"], languagesList: [0, "p-languages", "languagesList"] }, outputs: { loginChange: "p-login-change", loginSubmit: "p-login-submit", passwordChange: "p-password-change", languageChange: "p-language-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
10500
10852
|
}
|
|
10501
10853
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageLoginBaseComponent, [{
|
|
10502
10854
|
type: Directive
|
|
10503
|
-
}], () => [{ type: PoPageLoginService }, { type: i1$
|
|
10855
|
+
}], () => [{ type: i1.PoThemeService }, { type: PoPageLoginService }, { type: i1$2.Router }, { type: i1.PoLanguageService }], { background: [{
|
|
10504
10856
|
type: Input,
|
|
10505
10857
|
args: ['p-background']
|
|
10506
10858
|
}], logo: [{
|
|
@@ -10539,6 +10891,9 @@ class PoPageLoginBaseComponent {
|
|
|
10539
10891
|
}], hidePasswordPeek: [{
|
|
10540
10892
|
type: Input,
|
|
10541
10893
|
args: ['p-hide-password-peek']
|
|
10894
|
+
}], componentsSize: [{
|
|
10895
|
+
type: Input,
|
|
10896
|
+
args: ['p-components-size']
|
|
10542
10897
|
}], customField: [{
|
|
10543
10898
|
type: Input,
|
|
10544
10899
|
args: ['p-custom-field']
|
|
@@ -10706,7 +11061,7 @@ class PoPageLoginPopoverComponent {
|
|
|
10706
11061
|
i0.ɵɵtextInterpolate1(" ", ctx.literals == null ? null : ctx.literals.createANewPasswordNow, " ");
|
|
10707
11062
|
i0.ɵɵadvance();
|
|
10708
11063
|
i0.ɵɵproperty("ngIf", ctx.recovery);
|
|
10709
|
-
} }, dependencies: [i4.NgIf, i1$
|
|
11064
|
+
} }, dependencies: [i4.NgIf, i1$2.RouterLink, i1.PoI18nPipe], encapsulation: 2 });
|
|
10710
11065
|
}
|
|
10711
11066
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageLoginPopoverComponent, [{
|
|
10712
11067
|
type: Component,
|
|
@@ -10800,7 +11155,7 @@ function PoPageLoginComponent_po_input_28_Template(rf, ctx) { if (rf & 1) {
|
|
|
10800
11155
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
10801
11156
|
i0.ɵɵclassProp("po-page-login-field-size-dynamic", !ctx_r1.pageLoginLiterals.loginHint && !ctx_r1.pageLoginLiterals.rememberUserHint);
|
|
10802
11157
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.customFieldObject.value);
|
|
10803
|
-
i0.ɵɵproperty("p-error-pattern", ctx_r1.customFieldObject.errorPattern || ctx_r1.pageLoginLiterals.customFieldErrorPattern)("p-pattern", ctx_r1.customFieldObject.pattern)("p-placeholder", ctx_r1.customFieldObject.placeholder || ctx_r1.pageLoginLiterals.customFieldPlaceholder);
|
|
11158
|
+
i0.ɵɵproperty("p-error-pattern", ctx_r1.customFieldObject.errorPattern || ctx_r1.pageLoginLiterals.customFieldErrorPattern)("p-pattern", ctx_r1.customFieldObject.pattern)("p-placeholder", ctx_r1.customFieldObject.placeholder || ctx_r1.pageLoginLiterals.customFieldPlaceholder)("p-size", ctx_r1.componentsSize);
|
|
10804
11159
|
} }
|
|
10805
11160
|
function PoPageLoginComponent_po_combo_29_Template(rf, ctx) { if (rf & 1) {
|
|
10806
11161
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -10811,7 +11166,7 @@ function PoPageLoginComponent_po_combo_29_Template(rf, ctx) { if (rf & 1) {
|
|
|
10811
11166
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
10812
11167
|
i0.ɵɵclassProp("po-page-login-field-size-dynamic", !ctx_r1.pageLoginLiterals.loginHint && !ctx_r1.pageLoginLiterals.rememberUserHint);
|
|
10813
11168
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.customFieldObject.value);
|
|
10814
|
-
i0.ɵɵproperty("p-field-value", ctx_r1.customFieldObject.fieldValue)("p-filter-service", ctx_r1.customFieldObject.url)("p-placeholder", ctx_r1.customFieldObject.placeholder || ctx_r1.pageLoginLiterals.customFieldPlaceholder);
|
|
11169
|
+
i0.ɵɵproperty("p-field-value", ctx_r1.customFieldObject.fieldValue)("p-filter-service", ctx_r1.customFieldObject.url)("p-placeholder", ctx_r1.customFieldObject.placeholder || ctx_r1.pageLoginLiterals.customFieldPlaceholder)("p-size", ctx_r1.componentsSize);
|
|
10815
11170
|
} }
|
|
10816
11171
|
function PoPageLoginComponent_po_select_30_Template(rf, ctx) { if (rf & 1) {
|
|
10817
11172
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
@@ -10822,7 +11177,7 @@ function PoPageLoginComponent_po_select_30_Template(rf, ctx) { if (rf & 1) {
|
|
|
10822
11177
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
10823
11178
|
i0.ɵɵclassProp("po-page-login-field-size-dynamic", !ctx_r1.pageLoginLiterals.loginHint && !ctx_r1.pageLoginLiterals.rememberUserHint);
|
|
10824
11179
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.customFieldObject.value);
|
|
10825
|
-
i0.ɵɵproperty("p-placeholder", ctx_r1.customFieldObject.placeholder || ctx_r1.pageLoginLiterals.customFieldPlaceholder)("p-options", ctx_r1.customFieldObject.options);
|
|
11180
|
+
i0.ɵɵproperty("p-placeholder", ctx_r1.customFieldObject.placeholder || ctx_r1.pageLoginLiterals.customFieldPlaceholder)("p-options", ctx_r1.customFieldObject.options)("p-size", ctx_r1.componentsSize);
|
|
10826
11181
|
} }
|
|
10827
11182
|
function PoPageLoginComponent_div_32_div_2_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
10828
11183
|
i0.ɵɵelement(0, "po-icon", 31);
|
|
@@ -10852,7 +11207,7 @@ function PoPageLoginComponent_div_32_Template(rf, ctx) { if (rf & 1) {
|
|
|
10852
11207
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
10853
11208
|
i0.ɵɵadvance();
|
|
10854
11209
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.rememberUser);
|
|
10855
|
-
i0.ɵɵproperty("p-label-off", ctx_r1.pageLoginLiterals.rememberUser)("p-label-on", ctx_r1.pageLoginLiterals.rememberUser)("p-hide-label-status", ctx_r1.hideLabelStatus);
|
|
11210
|
+
i0.ɵɵproperty("p-label-off", ctx_r1.pageLoginLiterals.rememberUser)("p-label-on", ctx_r1.pageLoginLiterals.rememberUser)("p-size", ctx_r1.componentsSize)("p-hide-label-status", ctx_r1.hideLabelStatus);
|
|
10856
11211
|
i0.ɵɵadvance();
|
|
10857
11212
|
i0.ɵɵproperty("ngIf", ctx_r1.pageLoginLiterals.loginHint || ctx_r1.pageLoginLiterals.rememberUserHint);
|
|
10858
11213
|
} }
|
|
@@ -10905,6 +11260,7 @@ function PoPageLoginComponent_div_35_Template(rf, ctx) { if (rf & 1) {
|
|
|
10905
11260
|
* </example>
|
|
10906
11261
|
*/
|
|
10907
11262
|
class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
11263
|
+
poThemeService;
|
|
10908
11264
|
changeDetector;
|
|
10909
11265
|
activatedRoute;
|
|
10910
11266
|
poComponentInjector;
|
|
@@ -10914,8 +11270,9 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
10914
11270
|
componentRef = null;
|
|
10915
11271
|
differ;
|
|
10916
11272
|
customPasswordError = { custom: false };
|
|
10917
|
-
constructor(changeDetector, activatedRoute, poComponentInjector, differs, loginService, router, poLanguageService) {
|
|
10918
|
-
super(loginService, router, poLanguageService);
|
|
11273
|
+
constructor(poThemeService, changeDetector, activatedRoute, poComponentInjector, differs, loginService, router, poLanguageService) {
|
|
11274
|
+
super(poThemeService, loginService, router, poLanguageService);
|
|
11275
|
+
this.poThemeService = poThemeService;
|
|
10919
11276
|
this.changeDetector = changeDetector;
|
|
10920
11277
|
this.activatedRoute = activatedRoute;
|
|
10921
11278
|
this.poComponentInjector = poComponentInjector;
|
|
@@ -11084,7 +11441,7 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11084
11441
|
const language = this.languagesList.find(languageItem => languageItem.language === this.language);
|
|
11085
11442
|
return language?.language || this.languagesList[0].language;
|
|
11086
11443
|
}
|
|
11087
|
-
static ɵfac = function PoPageLoginComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageLoginComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$
|
|
11444
|
+
static ɵfac = function PoPageLoginComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoPageLoginComponent)(i0.ɵɵdirectiveInject(i1.PoThemeService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1.PoComponentInjectorService), i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(PoPageLoginService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i1.PoLanguageService)); };
|
|
11088
11445
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageLoginComponent, selectors: [["po-page-login"]], viewQuery: function PoPageLoginComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11089
11446
|
i0.ɵɵviewQuery(_c0, 7, NgForm);
|
|
11090
11447
|
i0.ɵɵviewQuery(_c1, 7, ViewContainerRef);
|
|
@@ -11092,7 +11449,7 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11092
11449
|
let _t;
|
|
11093
11450
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loginForm = _t.first);
|
|
11094
11451
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.pageLogin = _t.first);
|
|
11095
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 36, vars:
|
|
11452
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 36, vars: 46, consts: [["pageLogin", ""], ["loginForm", "ngForm"], [1, "po-page-login-support", 3, "click", "hidden"], ["p-icon", "ICON_HELP"], [3, "p-selected-language", "p-components-size", "p-show-select-language", "p-languages", "p-initial-language", "p-background", "p-highlight-info", "p-logo", "p-secondary-logo"], [1, "po-page-login-header"], [1, "po-page-login-header-product-name"], [1, "po-page-login-header-product-environment", "po-mb-md-4", "po-mb-sm-1"], ["p-type", "warning", 3, "p-value", 4, "ngIf"], [1, "po-page-login-header-welcome", "po-mb-md-4", "po-mb-sm-2"], [1, "po-page-login-form"], [1, "po-row"], [1, "po-lg-12"], [1, "po-page-login-hint", "po-page-login-info-container"], ["name", "login", "p-auto-focus", "", "p-required", "", 1, "po-page-login-info-field", 3, "ngModelChange", "click", "keyup.enter", "p-change-model", "ngModel", "p-label", "p-no-autocomplete", "p-pattern", "p-placeholder", "p-size"], ["class", "po-page-login-info-icon-container", 3, "po-page-login-info-icon-container-dynamic", 4, "ngIf"], [1, "po-field-container-bottom", "po-field-container-error-container"], ["class", "po-field-container-bottom-text-error po-field-container-error-item", 4, "ngFor", "ngForOf"], [1, "po-page-login-password-container"], ["name", "password", "p-required", "", 1, "po-page-login-field-size", "po-page-login-password-item", 3, "ngModelChange", "click", "keyup.enter", "p-change-model", "ngModel", "p-hide-password-peek", "p-label", "p-no-autocomplete", "p-pattern", "p-placeholder", "p-size"], ["class", "po-page-login-password-item po-page-login-password-popover-container", 4, "ngIf"], ["class", "po-page-login-field-size po-lg-12", "name", "customFieldInput", "p-required", "", 3, "po-page-login-field-size-dynamic", "ngModel", "p-error-pattern", "p-pattern", "p-placeholder", "p-size", "ngModelChange", "keyup.enter", 4, "ngIf"], ["class", "po-page-login-field-size po-lg-12", "name", "customFieldCombo", "p-required", "", 3, "po-page-login-field-size-dynamic", "ngModel", "p-field-value", "p-filter-service", "p-placeholder", "p-size", "ngModelChange", 4, "ngIf"], ["class", "po-page-login-field-size po-lg-12", "name", "customFieldSelect", "p-required", "", 3, "po-page-login-field-size-dynamic", "ngModel", "p-placeholder", "p-options", "p-size", "ngModelChange", 4, "ngIf"], ["class", "po-page-login-hint po-page-login-info-container", 4, "ngIf"], ["p-kind", "primary", 1, "po-lg-12", "po-page-login-button", "po-page-login-field-size", 3, "p-click", "p-disabled", "p-label", "p-loading", "p-size"], ["class", "po-page-login-recovery-link", 4, "ngIf"], ["class", "po-page-login-register-link", 4, "ngIf"], ["p-type", "warning", 3, "p-value"], [1, "po-page-login-info-icon-container"], ["p-icon", "ICON_INFO po-field-icon", "p-tooltip-position", "right", 3, "p-tooltip", 4, "ngIf"], ["p-icon", "ICON_INFO po-field-icon", "p-tooltip-position", "right", 3, "p-tooltip"], [1, "po-field-container-bottom-text-error", "po-field-container-error-item"], ["p-icon", "ICON_EXCLAMATION"], [1, "po-field-container-error-text"], [1, "po-page-login-password-item", "po-page-login-password-popover-container"], [3, "p-literals", "p-recovery", "p-remaining-attempts", "p-forgot-password", 4, "ngIf"], [3, "p-forgot-password", "p-literals", "p-recovery", "p-remaining-attempts"], ["name", "customFieldInput", "p-required", "", 1, "po-page-login-field-size", "po-lg-12", 3, "ngModelChange", "keyup.enter", "ngModel", "p-error-pattern", "p-pattern", "p-placeholder", "p-size"], ["name", "customFieldCombo", "p-required", "", 1, "po-page-login-field-size", "po-lg-12", 3, "ngModelChange", "ngModel", "p-field-value", "p-filter-service", "p-placeholder", "p-size"], ["name", "customFieldSelect", "p-required", "", 1, "po-page-login-field-size", "po-lg-12", 3, "ngModelChange", "ngModel", "p-placeholder", "p-options", "p-size"], ["name", "rememberUser", "p-label-position", "1", 1, "po-page-login-info-field", "po-lg-7", "po-offset-lg-5", "po-offset-xl-5", 3, "ngModelChange", "keyup.enter", "ngModel", "p-label-off", "p-label-on", "p-size", "p-hide-label-status"], ["class", "po-page-login-info-icon-container po-page-login-info-icon-remember-user", 3, "po-page-login-info-icon-container-dynamic", 4, "ngIf"], [1, "po-page-login-info-icon-container", "po-page-login-info-icon-remember-user"], [1, "po-page-login-recovery-link"], [1, "po-font-text-large-bold", 3, "click"], [1, "po-page-login-register-link"]], template: function PoPageLoginComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11096
11453
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11097
11454
|
i0.ɵɵelementStart(0, "button", 2);
|
|
11098
11455
|
i0.ɵɵlistener("click", function PoPageLoginComponent_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.activateSupport()); });
|
|
@@ -11128,9 +11485,9 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11128
11485
|
i0.ɵɵelementStart(26, "div", 16);
|
|
11129
11486
|
i0.ɵɵtemplate(27, PoPageLoginComponent_div_27_Template, 4, 1, "div", 17);
|
|
11130
11487
|
i0.ɵɵelementEnd()();
|
|
11131
|
-
i0.ɵɵtemplate(28, PoPageLoginComponent_po_input_28_Template, 1,
|
|
11488
|
+
i0.ɵɵtemplate(28, PoPageLoginComponent_po_input_28_Template, 1, 7, "po-input", 21)(29, PoPageLoginComponent_po_combo_29_Template, 1, 7, "po-combo", 22)(30, PoPageLoginComponent_po_select_30_Template, 1, 6, "po-select", 23);
|
|
11132
11489
|
i0.ɵɵelementStart(31, "div", 12);
|
|
11133
|
-
i0.ɵɵtemplate(32, PoPageLoginComponent_div_32_Template, 3,
|
|
11490
|
+
i0.ɵɵtemplate(32, PoPageLoginComponent_div_32_Template, 3, 6, "div", 24);
|
|
11134
11491
|
i0.ɵɵelementEnd();
|
|
11135
11492
|
i0.ɵɵelementStart(33, "po-button", 25);
|
|
11136
11493
|
i0.ɵɵlistener("p-click", function PoPageLoginComponent_Template_po_button_p_click_33_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onLoginSubmit()); });
|
|
@@ -11143,7 +11500,7 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11143
11500
|
i0.ɵɵadvance(2);
|
|
11144
11501
|
i0.ɵɵtextInterpolate1(" ", ctx.pageLoginLiterals == null ? null : ctx.pageLoginLiterals.support, "\n");
|
|
11145
11502
|
i0.ɵɵadvance();
|
|
11146
|
-
i0.ɵɵproperty("p-show-select-language", ctx.showLanguage)("p-languages", ctx.languagesList)("p-initial-language", ctx.initialSelectLanguage)("p-background", ctx.background)("p-highlight-info", ctx.pageLoginLiterals.highlightInfo)("p-logo", ctx.logo)("p-secondary-logo", ctx.secondaryLogo);
|
|
11503
|
+
i0.ɵɵproperty("p-components-size", ctx.componentsSize)("p-show-select-language", ctx.showLanguage)("p-languages", ctx.languagesList)("p-initial-language", ctx.initialSelectLanguage)("p-background", ctx.background)("p-highlight-info", ctx.pageLoginLiterals.highlightInfo)("p-logo", ctx.logo)("p-secondary-logo", ctx.secondaryLogo);
|
|
11147
11504
|
i0.ɵɵadvance(5);
|
|
11148
11505
|
i0.ɵɵtextInterpolate(ctx.productName);
|
|
11149
11506
|
i0.ɵɵadvance(2);
|
|
@@ -11153,7 +11510,7 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11153
11510
|
i0.ɵɵadvance(6);
|
|
11154
11511
|
i0.ɵɵclassProp("po-page-login-info-field-dynamic", !ctx.pageLoginLiterals.loginHint && !ctx.pageLoginLiterals.rememberUserHint);
|
|
11155
11512
|
i0.ɵɵtwoWayProperty("ngModel", ctx.login);
|
|
11156
|
-
i0.ɵɵproperty("p-label", ctx.pageLoginLiterals.loginLabel)("p-no-autocomplete", ctx.noAutocompleteLogin)("p-pattern", ctx.loginPattern)("p-placeholder", ctx.pageLoginLiterals.loginPlaceholder);
|
|
11513
|
+
i0.ɵɵproperty("p-label", ctx.pageLoginLiterals.loginLabel)("p-no-autocomplete", ctx.noAutocompleteLogin)("p-pattern", ctx.loginPattern)("p-placeholder", ctx.pageLoginLiterals.loginPlaceholder)("p-size", ctx.componentsSize);
|
|
11157
11514
|
i0.ɵɵadvance();
|
|
11158
11515
|
i0.ɵɵproperty("ngIf", ctx.pageLoginLiterals.loginHint || ctx.pageLoginLiterals.rememberUserHint);
|
|
11159
11516
|
i0.ɵɵadvance(2);
|
|
@@ -11161,7 +11518,7 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11161
11518
|
i0.ɵɵadvance(3);
|
|
11162
11519
|
i0.ɵɵclassProp("po-page-login-field-size-dynamic", !ctx.pageLoginLiterals.loginHint && !ctx.pageLoginLiterals.rememberUserHint);
|
|
11163
11520
|
i0.ɵɵtwoWayProperty("ngModel", ctx.password);
|
|
11164
|
-
i0.ɵɵproperty("p-hide-password-peek", ctx.hidePasswordPeek)("p-label", ctx.pageLoginLiterals.passwordLabel)("p-no-autocomplete", ctx.noAutocompletePassword)("p-pattern", ctx.passwordPattern)("p-placeholder", ctx.pageLoginLiterals.passwordPlaceholder);
|
|
11521
|
+
i0.ɵɵproperty("p-hide-password-peek", ctx.hidePasswordPeek)("p-label", ctx.pageLoginLiterals.passwordLabel)("p-no-autocomplete", ctx.noAutocompletePassword)("p-pattern", ctx.passwordPattern)("p-placeholder", ctx.pageLoginLiterals.passwordPlaceholder)("p-size", ctx.componentsSize);
|
|
11165
11522
|
i0.ɵɵadvance();
|
|
11166
11523
|
i0.ɵɵproperty("ngIf", ctx.pageLoginLiterals.loginHint || ctx.pageLoginLiterals.rememberUserHint);
|
|
11167
11524
|
i0.ɵɵadvance(2);
|
|
@@ -11176,17 +11533,17 @@ class PoPageLoginComponent extends PoPageLoginBaseComponent {
|
|
|
11176
11533
|
i0.ɵɵproperty("ngIf", !ctx.hideRememberUser);
|
|
11177
11534
|
i0.ɵɵadvance();
|
|
11178
11535
|
i0.ɵɵclassProp("po-page-login-button-dynamic", !ctx.pageLoginLiterals.loginHint && !ctx.pageLoginLiterals.rememberUserHint);
|
|
11179
|
-
i0.ɵɵproperty("p-disabled", loginForm_r3.invalid)("p-label", ctx.loading ? ctx.pageLoginLiterals.submittedLabel : ctx.pageLoginLiterals.submitLabel)("p-loading", ctx.loading);
|
|
11536
|
+
i0.ɵɵproperty("p-disabled", loginForm_r3.invalid)("p-label", ctx.loading ? ctx.pageLoginLiterals.submittedLabel : ctx.pageLoginLiterals.submitLabel)("p-loading", ctx.loading)("p-size", ctx.componentsSize);
|
|
11180
11537
|
i0.ɵɵadvance();
|
|
11181
11538
|
i0.ɵɵproperty("ngIf", ctx.recovery);
|
|
11182
11539
|
i0.ɵɵadvance();
|
|
11183
11540
|
i0.ɵɵproperty("ngIf", ctx.registerUrl);
|
|
11184
|
-
} }, dependencies: [i4.NgForOf, i4.NgIf, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm, PoPageBackgroundComponent,
|
|
11541
|
+
} }, dependencies: [i4.NgForOf, i4.NgIf, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.NgModel, i5.NgForm, PoPageBackgroundComponent, i1.PoButtonComponent, i1.PoComboComponent, i1.PoInputComponent, i1.PoLoginComponent, i1.PoPasswordComponent, i1.PoSelectComponent, i1.PoSwitchComponent, i1.PoTagComponent, i1.PoIconComponent, i1.PoTooltipDirective, PoPageLoginPopoverComponent], encapsulation: 2 });
|
|
11185
11542
|
}
|
|
11186
11543
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageLoginComponent, [{
|
|
11187
11544
|
type: Component,
|
|
11188
|
-
args: [{ selector: 'po-page-login', standalone: false, template: "<button class=\"po-page-login-support\" (click)=\"activateSupport()\" [hidden]=\"!support\">\n <po-icon p-icon=\"ICON_HELP\"></po-icon>\n {{ pageLoginLiterals?.support }}\n</button>\n\n<po-page-background\n #pageLogin\n [p-show-select-language]=\"showLanguage\"\n [p-languages]=\"languagesList\"\n [p-initial-language]=\"initialSelectLanguage\"\n [p-background]=\"background\"\n [p-highlight-info]=\"pageLoginLiterals.highlightInfo\"\n [p-logo]=\"logo\"\n [p-secondary-logo]=\"secondaryLogo\"\n (p-selected-language)=\"onSelectedLanguage($event)\"\n>\n <header class=\"po-page-login-header\">\n <div class=\"po-page-login-header-product-name\">\n <h1>{{ productName }}</h1>\n </div>\n\n <div class=\"po-page-login-header-product-environment po-mb-md-4 po-mb-sm-1\">\n <po-tag *ngIf=\"environment\" p-type=\"warning\" [p-value]=\"environment\"> </po-tag>\n </div>\n <div class=\"po-page-login-header-welcome po-mb-md-4 po-mb-sm-2\">{{ pageLoginLiterals.welcome }}</div>\n </header>\n\n <form #loginForm=\"ngForm\" class=\"po-page-login-form\">\n <div class=\"po-row\">\n <div class=\"po-lg-12\">\n <div class=\"po-page-login-hint po-page-login-info-container\">\n <po-login\n class=\"po-page-login-info-field\"\n [class.po-page-login-info-field-dynamic]=\"\n !pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\n \"\n name=\"login\"\n [(ngModel)]=\"login\"\n p-auto-focus\n p-required\n [p-label]=\"pageLoginLiterals.loginLabel\"\n [p-no-autocomplete]=\"noAutocompleteLogin\"\n [p-pattern]=\"loginPattern\"\n [p-placeholder]=\"pageLoginLiterals.loginPlaceholder\"\n (click)=\"closePopover()\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n (p-change-model)=\"changeLoginModel()\"\n >\n </po-login>\n\n <div\n *ngIf=\"pageLoginLiterals.loginHint || pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-info-icon-container\"\n [class.po-page-login-info-icon-container-dynamic]=\"\n !pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\n \"\n >\n <po-icon\n p-icon=\"ICON_INFO po-field-icon\"\n *ngIf=\"pageLoginLiterals.loginHint\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"pageLoginLiterals.loginHint\"\n >\n </po-icon>\n </div>\n </div>\n\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <div\n *ngFor=\"let error of allLoginErrors\"\n class=\"po-field-container-bottom-text-error po-field-container-error-item\"\n >\n <po-icon p-icon=\"ICON_EXCLAMATION\"></po-icon>\n <span class=\"po-field-container-error-text\">{{ error }}</span>\n </div>\n </div>\n </div>\n\n <div class=\"po-lg-12\">\n <div class=\"po-page-login-password-container\">\n <po-password\n class=\"po-page-login-field-size po-page-login-password-item\"\n [class.po-page-login-field-size-dynamic]=\"\n !pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\n \"\n name=\"password\"\n [(ngModel)]=\"password\"\n p-required\n [p-hide-password-peek]=\"hidePasswordPeek\"\n [p-label]=\"pageLoginLiterals.passwordLabel\"\n [p-no-autocomplete]=\"noAutocompletePassword\"\n [p-pattern]=\"passwordPattern\"\n [p-placeholder]=\"pageLoginLiterals.passwordPlaceholder\"\n (click)=\"closePopover()\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n (p-change-model)=\"changePasswordModel()\"\n >\n </po-password>\n <div\n *ngIf=\"pageLoginLiterals.loginHint || pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-password-item po-page-login-password-popover-container\"\n >\n <po-page-login-popover\n *ngIf=\"showExceededAttemptsWarning && exceededAttemptsWarning\"\n [p-literals]=\"pageLoginLiterals\"\n [p-recovery]=\"recovery\"\n [p-remaining-attempts]=\"exceededAttemptsWarning\"\n (p-forgot-password)=\"openUrl($event)\"\n >\n </po-page-login-popover>\n </div>\n </div>\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <div\n *ngFor=\"let error of allPasswordErrors\"\n class=\"po-field-container-bottom-text-error po-field-container-error-item\"\n >\n <po-icon p-icon=\"ICON_EXCLAMATION\"></po-icon>\n <span class=\"po-field-container-error-text\">{{ error }}</span>\n </div>\n </div>\n </div>\n\n <po-input\n *ngIf=\"customField && customFieldType === 'input'\"\n [class.po-page-login-field-size-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-field-size po-lg-12\"\n name=\"customFieldInput\"\n [(ngModel)]=\"customFieldObject.value\"\n p-required\n [p-error-pattern]=\"customFieldObject.errorPattern || pageLoginLiterals.customFieldErrorPattern\"\n [p-pattern]=\"customFieldObject.pattern\"\n [p-placeholder]=\"customFieldObject.placeholder || pageLoginLiterals.customFieldPlaceholder\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n >\n </po-input>\n\n <po-combo\n *ngIf=\"customField && customFieldType === 'combo'\"\n [class.po-page-login-field-size-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-field-size po-lg-12\"\n name=\"customFieldCombo\"\n [(ngModel)]=\"customFieldObject.value\"\n p-required\n [p-field-value]=\"customFieldObject.fieldValue\"\n [p-filter-service]=\"customFieldObject.url\"\n [p-placeholder]=\"customFieldObject.placeholder || pageLoginLiterals.customFieldPlaceholder\"\n >\n </po-combo>\n\n <po-select\n *ngIf=\"customField && customFieldType === 'select'\"\n [class.po-page-login-field-size-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-field-size po-lg-12\"\n name=\"customFieldSelect\"\n [(ngModel)]=\"customFieldObject.value\"\n p-required\n [p-placeholder]=\"customFieldObject.placeholder || pageLoginLiterals.customFieldPlaceholder\"\n [p-options]=\"customFieldObject.options\"\n >\n </po-select>\n\n <div class=\"po-lg-12\">\n <div *ngIf=\"!hideRememberUser\" class=\"po-page-login-hint po-page-login-info-container\">\n <po-switch\n class=\"po-page-login-info-field po-lg-7 po-offset-lg-5 po-offset-xl-5\"\n name=\"rememberUser\"\n [(ngModel)]=\"rememberUser\"\n p-label-position=\"1\"\n [p-label-off]=\"pageLoginLiterals.rememberUser\"\n [p-label-on]=\"pageLoginLiterals.rememberUser\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n [p-hide-label-status]=\"hideLabelStatus\"\n >\n </po-switch>\n\n <div\n *ngIf=\"pageLoginLiterals.loginHint || pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-info-icon-container po-page-login-info-icon-remember-user\"\n [class.po-page-login-info-icon-container-dynamic]=\"!pageLoginLiterals.rememberUserHint\"\n >\n <po-icon\n p-icon=\"ICON_INFO po-field-icon\"\n *ngIf=\"pageLoginLiterals.rememberUserHint\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"pageLoginLiterals.rememberUserHint\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n\n <po-button\n [class.po-page-login-button-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-lg-12 po-page-login-button po-page-login-field-size\"\n p-kind=\"primary\"\n [p-disabled]=\"loginForm.invalid\"\n [p-label]=\"loading ? pageLoginLiterals.submittedLabel : pageLoginLiterals.submitLabel\"\n [p-loading]=\"loading\"\n (p-click)=\"onLoginSubmit()\"\n >\n </po-button>\n\n <div *ngIf=\"recovery\" class=\"po-page-login-recovery-link\">\n <a class=\"po-font-text-large-bold\" (click)=\"openUrl(recovery)\">{{ pageLoginLiterals.forgotPassword }}</a>\n </div>\n\n <div *ngIf=\"registerUrl\" class=\"po-page-login-register-link\">\n <a class=\"po-font-text-large-bold\" (click)=\"openUrl(registerUrl)\">{{ pageLoginLiterals.registerUrl }}</a>\n </div>\n </div>\n </form>\n</po-page-background>\n" }]
|
|
11189
|
-
}], () => [{ type: i0.ChangeDetectorRef }, { type: i1$
|
|
11545
|
+
args: [{ selector: 'po-page-login', standalone: false, template: "<button class=\"po-page-login-support\" (click)=\"activateSupport()\" [hidden]=\"!support\">\n <po-icon p-icon=\"ICON_HELP\"></po-icon>\n {{ pageLoginLiterals?.support }}\n</button>\n\n<po-page-background\n #pageLogin\n [p-components-size]=\"componentsSize\"\n [p-show-select-language]=\"showLanguage\"\n [p-languages]=\"languagesList\"\n [p-initial-language]=\"initialSelectLanguage\"\n [p-background]=\"background\"\n [p-highlight-info]=\"pageLoginLiterals.highlightInfo\"\n [p-logo]=\"logo\"\n [p-secondary-logo]=\"secondaryLogo\"\n (p-selected-language)=\"onSelectedLanguage($event)\"\n>\n <header class=\"po-page-login-header\">\n <div class=\"po-page-login-header-product-name\">\n <h1>{{ productName }}</h1>\n </div>\n\n <div class=\"po-page-login-header-product-environment po-mb-md-4 po-mb-sm-1\">\n <po-tag *ngIf=\"environment\" p-type=\"warning\" [p-value]=\"environment\"> </po-tag>\n </div>\n <div class=\"po-page-login-header-welcome po-mb-md-4 po-mb-sm-2\">{{ pageLoginLiterals.welcome }}</div>\n </header>\n\n <form #loginForm=\"ngForm\" class=\"po-page-login-form\">\n <div class=\"po-row\">\n <div class=\"po-lg-12\">\n <div class=\"po-page-login-hint po-page-login-info-container\">\n <po-login\n class=\"po-page-login-info-field\"\n [class.po-page-login-info-field-dynamic]=\"\n !pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\n \"\n name=\"login\"\n [(ngModel)]=\"login\"\n p-auto-focus\n p-required\n [p-label]=\"pageLoginLiterals.loginLabel\"\n [p-no-autocomplete]=\"noAutocompleteLogin\"\n [p-pattern]=\"loginPattern\"\n [p-placeholder]=\"pageLoginLiterals.loginPlaceholder\"\n [p-size]=\"componentsSize\"\n (click)=\"closePopover()\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n (p-change-model)=\"changeLoginModel()\"\n >\n </po-login>\n\n <div\n *ngIf=\"pageLoginLiterals.loginHint || pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-info-icon-container\"\n [class.po-page-login-info-icon-container-dynamic]=\"\n !pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\n \"\n >\n <po-icon\n p-icon=\"ICON_INFO po-field-icon\"\n *ngIf=\"pageLoginLiterals.loginHint\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"pageLoginLiterals.loginHint\"\n >\n </po-icon>\n </div>\n </div>\n\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <div\n *ngFor=\"let error of allLoginErrors\"\n class=\"po-field-container-bottom-text-error po-field-container-error-item\"\n >\n <po-icon p-icon=\"ICON_EXCLAMATION\"></po-icon>\n <span class=\"po-field-container-error-text\">{{ error }}</span>\n </div>\n </div>\n </div>\n\n <div class=\"po-lg-12\">\n <div class=\"po-page-login-password-container\">\n <po-password\n class=\"po-page-login-field-size po-page-login-password-item\"\n [class.po-page-login-field-size-dynamic]=\"\n !pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\n \"\n name=\"password\"\n [(ngModel)]=\"password\"\n p-required\n [p-hide-password-peek]=\"hidePasswordPeek\"\n [p-label]=\"pageLoginLiterals.passwordLabel\"\n [p-no-autocomplete]=\"noAutocompletePassword\"\n [p-pattern]=\"passwordPattern\"\n [p-placeholder]=\"pageLoginLiterals.passwordPlaceholder\"\n [p-size]=\"componentsSize\"\n (click)=\"closePopover()\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n (p-change-model)=\"changePasswordModel()\"\n >\n </po-password>\n <div\n *ngIf=\"pageLoginLiterals.loginHint || pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-password-item po-page-login-password-popover-container\"\n >\n <po-page-login-popover\n *ngIf=\"showExceededAttemptsWarning && exceededAttemptsWarning\"\n [p-literals]=\"pageLoginLiterals\"\n [p-recovery]=\"recovery\"\n [p-remaining-attempts]=\"exceededAttemptsWarning\"\n (p-forgot-password)=\"openUrl($event)\"\n >\n </po-page-login-popover>\n </div>\n </div>\n <div class=\"po-field-container-bottom po-field-container-error-container\">\n <div\n *ngFor=\"let error of allPasswordErrors\"\n class=\"po-field-container-bottom-text-error po-field-container-error-item\"\n >\n <po-icon p-icon=\"ICON_EXCLAMATION\"></po-icon>\n <span class=\"po-field-container-error-text\">{{ error }}</span>\n </div>\n </div>\n </div>\n\n <po-input\n *ngIf=\"customField && customFieldType === 'input'\"\n [class.po-page-login-field-size-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-field-size po-lg-12\"\n name=\"customFieldInput\"\n [(ngModel)]=\"customFieldObject.value\"\n p-required\n [p-error-pattern]=\"customFieldObject.errorPattern || pageLoginLiterals.customFieldErrorPattern\"\n [p-pattern]=\"customFieldObject.pattern\"\n [p-placeholder]=\"customFieldObject.placeholder || pageLoginLiterals.customFieldPlaceholder\"\n [p-size]=\"componentsSize\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n >\n </po-input>\n\n <po-combo\n *ngIf=\"customField && customFieldType === 'combo'\"\n [class.po-page-login-field-size-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-field-size po-lg-12\"\n name=\"customFieldCombo\"\n [(ngModel)]=\"customFieldObject.value\"\n p-required\n [p-field-value]=\"customFieldObject.fieldValue\"\n [p-filter-service]=\"customFieldObject.url\"\n [p-placeholder]=\"customFieldObject.placeholder || pageLoginLiterals.customFieldPlaceholder\"\n [p-size]=\"componentsSize\"\n >\n </po-combo>\n\n <po-select\n *ngIf=\"customField && customFieldType === 'select'\"\n [class.po-page-login-field-size-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-field-size po-lg-12\"\n name=\"customFieldSelect\"\n [(ngModel)]=\"customFieldObject.value\"\n p-required\n [p-placeholder]=\"customFieldObject.placeholder || pageLoginLiterals.customFieldPlaceholder\"\n [p-options]=\"customFieldObject.options\"\n [p-size]=\"componentsSize\"\n >\n </po-select>\n\n <div class=\"po-lg-12\">\n <div *ngIf=\"!hideRememberUser\" class=\"po-page-login-hint po-page-login-info-container\">\n <po-switch\n class=\"po-page-login-info-field po-lg-7 po-offset-lg-5 po-offset-xl-5\"\n name=\"rememberUser\"\n [(ngModel)]=\"rememberUser\"\n p-label-position=\"1\"\n [p-label-off]=\"pageLoginLiterals.rememberUser\"\n [p-label-on]=\"pageLoginLiterals.rememberUser\"\n [p-size]=\"componentsSize\"\n (keyup.enter)=\"loginForm.valid && onLoginSubmit()\"\n [p-hide-label-status]=\"hideLabelStatus\"\n >\n </po-switch>\n\n <div\n *ngIf=\"pageLoginLiterals.loginHint || pageLoginLiterals.rememberUserHint\"\n class=\"po-page-login-info-icon-container po-page-login-info-icon-remember-user\"\n [class.po-page-login-info-icon-container-dynamic]=\"!pageLoginLiterals.rememberUserHint\"\n >\n <po-icon\n p-icon=\"ICON_INFO po-field-icon\"\n *ngIf=\"pageLoginLiterals.rememberUserHint\"\n p-tooltip-position=\"right\"\n [p-tooltip]=\"pageLoginLiterals.rememberUserHint\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n\n <po-button\n [class.po-page-login-button-dynamic]=\"!pageLoginLiterals.loginHint && !pageLoginLiterals.rememberUserHint\"\n class=\"po-lg-12 po-page-login-button po-page-login-field-size\"\n p-kind=\"primary\"\n [p-disabled]=\"loginForm.invalid\"\n [p-label]=\"loading ? pageLoginLiterals.submittedLabel : pageLoginLiterals.submitLabel\"\n [p-loading]=\"loading\"\n [p-size]=\"componentsSize\"\n (p-click)=\"onLoginSubmit()\"\n >\n </po-button>\n\n <div *ngIf=\"recovery\" class=\"po-page-login-recovery-link\">\n <a class=\"po-font-text-large-bold\" (click)=\"openUrl(recovery)\">{{ pageLoginLiterals.forgotPassword }}</a>\n </div>\n\n <div *ngIf=\"registerUrl\" class=\"po-page-login-register-link\">\n <a class=\"po-font-text-large-bold\" (click)=\"openUrl(registerUrl)\">{{ pageLoginLiterals.registerUrl }}</a>\n </div>\n </div>\n </form>\n</po-page-background>\n" }]
|
|
11546
|
+
}], () => [{ type: i1.PoThemeService }, { type: i0.ChangeDetectorRef }, { type: i1$2.ActivatedRoute }, { type: i1.PoComponentInjectorService }, { type: i0.IterableDiffers }, { type: PoPageLoginService }, { type: i1$2.Router }, { type: i1.PoLanguageService }], { loginForm: [{
|
|
11190
11547
|
type: ViewChild,
|
|
11191
11548
|
args: ['loginForm', { read: NgForm, static: true }]
|
|
11192
11549
|
}], pageLogin: [{
|