@po-ui/ng-templates 19.25.0 → 20.0.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 +174 -174
- package/index.d.ts +6547 -3
- package/package.json +13 -13
- package/po-ui-ng-templates-20.0.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/lib/components/components.module.d.ts +0 -16
- package/lib/components/enums/po-page-components-size.enum.d.ts +0 -12
- package/lib/components/index.d.ts +0 -11
- package/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-modal-content.enum.d.ts +0 -15
- package/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-type.enum.d.ts +0 -15
- package/lib/components/po-modal-password-recovery/index.d.ts +0 -7
- package/lib/components/po-modal-password-recovery/interfaces/po-modal-password-recovery.interface.d.ts +0 -25
- package/lib/components/po-modal-password-recovery/literals/i18n/po-modal-password-recovery-literals.d.ts +0 -6
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery-base.component.d.ts +0 -300
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.d.ts +0 -14
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.d.ts +0 -88
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.module.d.ts +0 -16
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.d.ts +0 -12
- package/lib/components/po-page-background/index.d.ts +0 -2
- package/lib/components/po-page-background/po-page-background.component.d.ts +0 -68
- package/lib/components/po-page-background/po-page-background.module.d.ts +0 -16
- package/lib/components/po-page-blocked-user/enums/po-page-blocked-user-reason.enum.d.ts +0 -15
- package/lib/components/po-page-blocked-user/index.d.ts +0 -7
- package/lib/components/po-page-blocked-user/interfaces/po-page-blocked-user-reason-params.interface.d.ts +0 -15
- package/lib/components/po-page-blocked-user/literals/i18n/po-page-blocked-user-literals.d.ts +0 -72
- package/lib/components/po-page-blocked-user/po-page-blocked-user-base.component.d.ts +0 -163
- package/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.d.ts +0 -18
- package/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.d.ts +0 -25
- package/lib/components/po-page-blocked-user/po-page-blocked-user.component.d.ts +0 -41
- package/lib/components/po-page-blocked-user/po-page-blocked-user.module.d.ts +0 -18
- package/lib/components/po-page-change-password/index.d.ts +0 -6
- package/lib/components/po-page-change-password/interfaces/po-page-change-password-recovery.interface.d.ts +0 -30
- package/lib/components/po-page-change-password/interfaces/po-page-change-password-requirement.interface.d.ts +0 -17
- package/lib/components/po-page-change-password/interfaces/po-page-change-password.interface.d.ts +0 -13
- package/lib/components/po-page-change-password/literals/i18n/po-page-change-password-literals.d.ts +0 -6
- package/lib/components/po-page-change-password/po-page-change-password-base.component.d.ts +0 -262
- package/lib/components/po-page-change-password/po-page-change-password.component.d.ts +0 -91
- package/lib/components/po-page-change-password/po-page-change-password.module.d.ts +0 -17
- package/lib/components/po-page-change-password/po-page-change-password.service.d.ts +0 -9
- package/lib/components/po-page-dynamic-detail/index.d.ts +0 -9
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-actions.interface.d.ts +0 -95
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-back.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-edit.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-remove.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-field.interface.d.ts +0 -16
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-metadata.interface.d.ts +0 -31
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-options.interface.d.ts +0 -36
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail-actions.service.d.ts +0 -17
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.d.ts +0 -279
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.module.d.ts +0 -17
- package/lib/components/po-page-dynamic-edit/index.d.ts +0 -10
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-actions.interface.d.ts +0 -123
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-cancel.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save-new.interface.d.ts +0 -44
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save.interface.d.ts +0 -43
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-field.interface.d.ts +0 -14
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-literals.interface.d.ts +0 -69
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-metadata.interface.d.ts +0 -25
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-options.interface.d.ts +0 -28
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit-actions.service.d.ts +0 -17
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.d.ts +0 -438
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.module.d.ts +0 -17
- package/lib/components/po-page-dynamic-search/index.d.ts +0 -6
- package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search-filters.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search-literals.interface.d.ts +0 -21
- package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search-options.interface.d.ts +0 -73
- package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search.interface.d.ts +0 -29
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-base.component.d.ts +0 -66
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-literals.interface.d.ts +0 -15
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.d.ts +0 -29
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.d.ts +0 -262
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.d.ts +0 -68
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search.module.d.ts +0 -18
- package/lib/components/po-page-dynamic-table/index.d.ts +0 -15
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-actions.interface.d.ts +0 -196
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-detail.interface.d.ts +0 -21
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-duplicate.interface.d.ts +0 -29
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-edit.interface.d.ts +0 -22
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-new.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove-all.interface.d.ts +0 -39
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove.interface.d.ts +0 -18
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-action.interface.d.ts +0 -97
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-table-action.interface.d.ts +0 -106
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-field.interface.d.ts +0 -49
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-filters.interface.d.ts +0 -30
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-metadata.interface.d.ts +0 -31
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-options.interface.d.ts +0 -105
- package/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.d.ts +0 -188
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table-actions.service.d.ts +0 -25
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table-literals.d.ts +0 -62
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.d.ts +0 -602
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table.module.d.ts +0 -19
- package/lib/components/po-page-job-scheduler/index.d.ts +0 -5
- package/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler-internal.interface.d.ts +0 -15
- package/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler.interface.d.ts +0 -48
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-base.component.d.ts +0 -258
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.d.ts +0 -52
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-internal.d.ts +0 -9
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-literals.d.ts +0 -194
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.d.ts +0 -14
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/index.d.ts +0 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/index.d.ts +0 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/po-job-scheduler-parameters-template.directive.d.ts +0 -73
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.d.ts +0 -15
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/index.d.ts +0 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/index.d.ts +0 -1
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/po-job-scheduler-summary-template.directive.d.ts +0 -34
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.d.ts +0 -36
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.d.ts +0 -136
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.module.d.ts +0 -15
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.d.ts +0 -31
- package/lib/components/po-page-login/enums/po-page-login-authentication-type.enum.d.ts +0 -13
- package/lib/components/po-page-login/index.d.ts +0 -7
- package/lib/components/po-page-login/interfaces/po-page-login-custom-field.interface.d.ts +0 -72
- package/lib/components/po-page-login/interfaces/po-page-login-literals.interface.d.ts +0 -59
- package/lib/components/po-page-login/interfaces/po-page-login-recovery.interface.d.ts +0 -30
- package/lib/components/po-page-login/interfaces/po-page-login.interface.d.ts +0 -15
- package/lib/components/po-page-login/po-page-login-base.component.d.ts +0 -724
- package/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.d.ts +0 -19
- package/lib/components/po-page-login/po-page-login.component.d.ts +0 -68
- package/lib/components/po-page-login/po-page-login.module.d.ts +0 -18
- package/lib/components/po-page-login/po-page-login.service.d.ts +0 -12
- package/lib/index.d.ts +0 -3
- package/lib/po-templates.module.d.ts +0 -8
- package/lib/services/index.d.ts +0 -3
- package/lib/services/po-page-customization/index.d.ts +0 -3
- package/lib/services/po-page-customization/po-page-customization.module.d.ts +0 -12
- package/lib/services/po-page-customization/po-page-customization.service.d.ts +0 -17
- package/lib/services/po-page-customization/po-page-dynamic-options.interface.d.ts +0 -8
- package/lib/services/po-page-dynamic/index.d.ts +0 -2
- package/lib/services/po-page-dynamic/po-page-dynamic-literals.interface.d.ts +0 -4
- package/lib/services/po-page-dynamic/po-page-dynamic.module.d.ts +0 -12
- package/lib/services/po-page-dynamic/po-page-dynamic.service.d.ts +0 -30
- package/lib/services/services.module.d.ts +0 -8
- package/lib/utils/util.d.ts +0 -242
- package/po-ui-ng-templates-19.25.0.tgz +0 -0
- package/public-api.d.ts +0 -1
package/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { PoPageLoginLiterals } from '../interfaces/po-page-login-literals.interface';
|
|
3
|
-
import { PoPageLoginRecovery } from '../interfaces/po-page-login-recovery.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PoPageLoginPopoverComponent {
|
|
6
|
-
literals: PoPageLoginLiterals;
|
|
7
|
-
/** exibe o link de 'esqueci minha senha' e verifica se o valor é um link interno ou externo */
|
|
8
|
-
set recovery(value: string | Function | PoPageLoginRecovery);
|
|
9
|
-
get recovery(): string | Function | PoPageLoginRecovery;
|
|
10
|
-
/** define se a mensagem deverá ser exibida caso seja maior que 0(zero) */
|
|
11
|
-
remainingAttempts: number;
|
|
12
|
-
/** se 'p-recovery' for do tipo Function ou PoPageLoginRecovery, emite para o método 'openUrl' do componente 'po-page-login' */
|
|
13
|
-
forgotPassword: EventEmitter<any>;
|
|
14
|
-
recoveryType: string;
|
|
15
|
-
private _recovery;
|
|
16
|
-
onForgotPasswordClick(recovery: any): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageLoginPopoverComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoPageLoginPopoverComponent, "po-page-login-popover", never, { "literals": { "alias": "p-literals"; "required": false; }; "recovery": { "alias": "p-recovery"; "required": false; }; "remainingAttempts": { "alias": "p-remaining-attempts"; "required": false; }; }, { "forgotPassword": "p-forgot-password"; }, never, never, false, never>;
|
|
19
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { AfterViewChecked, ChangeDetectorRef, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { NgForm } from '@angular/forms';
|
|
3
|
-
import { PoPageLoginBaseComponent } from './po-page-login-base.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* @docsExtends PoPageLoginBaseComponent
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
*
|
|
10
|
-
* <example name="po-page-login-basic" title="PO Page Login Basic">
|
|
11
|
-
* <file name="sample-po-page-login-basic/sample-po-page-login-basic.component.html"> </file>
|
|
12
|
-
* <file name="sample-po-page-login-basic/sample-po-page-login-basic.component.ts"> </file>
|
|
13
|
-
* </example>
|
|
14
|
-
*
|
|
15
|
-
* <example name="po-page-login-labs" title="PO Page Login Labs">
|
|
16
|
-
* <file name="sample-po-page-login-labs/sample-po-page-login-labs.component.html"> </file>
|
|
17
|
-
* <file name="sample-po-page-login-labs/sample-po-page-login-labs.component.ts"> </file>
|
|
18
|
-
* </example>
|
|
19
|
-
*
|
|
20
|
-
* <example name="po-page-login-human-resources" title="PO Page Login - Human Resources">
|
|
21
|
-
* <file name="sample-po-page-login-human-resources/sample-po-page-login-human-resources.component.html"> </file>
|
|
22
|
-
* <file name="sample-po-page-login-human-resources/sample-po-page-login-human-resources.component.ts"> </file>
|
|
23
|
-
* <file name="sample-po-page-login-human-resources/sample-po-page-login-human-resources.module.ts"> </file>
|
|
24
|
-
* </example>
|
|
25
|
-
*
|
|
26
|
-
* <example name="po-page-login-automatic-service" title="PO Page Login - Automatic Service">
|
|
27
|
-
* <file name="sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.html"> </file>
|
|
28
|
-
* <file name="sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.ts"> </file>
|
|
29
|
-
* </example>
|
|
30
|
-
*/
|
|
31
|
-
export declare class PoPageLoginComponent extends PoPageLoginBaseComponent implements AfterViewChecked, OnInit {
|
|
32
|
-
changeDetector: ChangeDetectorRef;
|
|
33
|
-
private activatedRoute;
|
|
34
|
-
private poComponentInjector;
|
|
35
|
-
loginForm: NgForm;
|
|
36
|
-
pageLogin: ViewContainerRef;
|
|
37
|
-
initialSelectLanguage: string;
|
|
38
|
-
private componentRef;
|
|
39
|
-
private differ;
|
|
40
|
-
private readonly customPasswordError;
|
|
41
|
-
constructor();
|
|
42
|
-
ngAfterViewChecked(): void;
|
|
43
|
-
ngOnInit(): void;
|
|
44
|
-
activateSupport(): void;
|
|
45
|
-
changeLoginModel(): void;
|
|
46
|
-
changePasswordModel(): void;
|
|
47
|
-
onSelectedLanguage(language: string): void;
|
|
48
|
-
openUrl(recovery: any): void;
|
|
49
|
-
protected concatenateLoginHintWithContactEmail(contactEmail: string): {
|
|
50
|
-
[x: string]: string;
|
|
51
|
-
};
|
|
52
|
-
protected setLoginErrors(errors: Array<string>): void;
|
|
53
|
-
protected setPasswordErrors(errors: Array<string>): void;
|
|
54
|
-
private checkingForMetadataProperty;
|
|
55
|
-
private checkingForRouteMetadata;
|
|
56
|
-
private concatenate;
|
|
57
|
-
private concatenateLiteral;
|
|
58
|
-
private createModalPasswordRecoveryComponent;
|
|
59
|
-
private generateLoginError;
|
|
60
|
-
private generatePasswordError;
|
|
61
|
-
private resetControl;
|
|
62
|
-
private setControlErrors;
|
|
63
|
-
private setUrlRedirect;
|
|
64
|
-
private validateArrayChanges;
|
|
65
|
-
private initializeLanguage;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageLoginComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoPageLoginComponent, "po-page-login", never, {}, {}, never, never, false, never>;
|
|
68
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./po-page-login.component";
|
|
3
|
-
import * as i2 from "./po-page-login-popover/po-page-login-popover.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "@angular/router";
|
|
7
|
-
import * as i6 from "../po-page-background/po-page-background.module";
|
|
8
|
-
import * as i7 from "@po-ui/ng-components";
|
|
9
|
-
/**
|
|
10
|
-
* @description
|
|
11
|
-
*
|
|
12
|
-
* Módulo do template do po-page-login.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PoPageLoginModule {
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageLoginModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoPageLoginModule, [typeof i1.PoPageLoginComponent, typeof i2.PoPageLoginPopoverComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.RouterModule, typeof i6.PoPageBackgroundModule, typeof i7.PoModule], [typeof i1.PoPageLoginComponent]>;
|
|
17
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoPageLoginModule>;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { PoPageLogin } from './interfaces/po-page-login.interface';
|
|
4
|
-
import { PoPageLoginAuthenticationType } from './enums/po-page-login-authentication-type.enum';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PoPageLoginService {
|
|
7
|
-
private http;
|
|
8
|
-
constructor(http: HttpClient);
|
|
9
|
-
onLogin(url: string, type: PoPageLoginAuthenticationType, loginForm: PoPageLogin): Observable<object>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageLoginService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoPageLoginService>;
|
|
12
|
-
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/components.module";
|
|
3
|
-
import * as i2 from "./services/services.module";
|
|
4
|
-
export declare class PoTemplatesModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTemplatesModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoTemplatesModule, never, [typeof i1.PoComponentsModule, typeof i2.PoServicesModule], [typeof i1.PoComponentsModule, typeof i2.PoServicesModule]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoTemplatesModule>;
|
|
8
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
/**
|
|
4
|
-
* @description
|
|
5
|
-
*
|
|
6
|
-
* Módulo do serviço do po-page-customization-service.
|
|
7
|
-
*/
|
|
8
|
-
export declare class PoPageCustomizationModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageCustomizationModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoPageCustomizationModule, never, [typeof i1.CommonModule], never>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoPageCustomizationModule>;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { PoPageDynamicOptionsSchema } from './po-page-dynamic-options.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
type urlOrFunction = string | Function;
|
|
5
|
-
export declare class PoPageCustomizationService {
|
|
6
|
-
private http;
|
|
7
|
-
getCustomOptions<T>(origin: urlOrFunction, originalOption: T, optionSchema: PoPageDynamicOptionsSchema<T>): Observable<T>;
|
|
8
|
-
changeOriginalOptionsToNewOptions<T extends object, K>(objectToChange: T, newOptions: K): void;
|
|
9
|
-
private createObservable;
|
|
10
|
-
private mergePageOptions;
|
|
11
|
-
private createNewProp;
|
|
12
|
-
private mergeOptions;
|
|
13
|
-
private mergeOptionsArray;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageCustomizationService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoPageCustomizationService>;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
/**
|
|
4
|
-
* @description
|
|
5
|
-
*
|
|
6
|
-
* Módulo do serviço do po-page-dynamic-service.
|
|
7
|
-
*/
|
|
8
|
-
export declare class PoPageDynamicModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDynamicModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoPageDynamicModule, never, [typeof i1.CommonModule], never>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoPageDynamicModule>;
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { PoPageDynamicLiterals } from './po-page-dynamic-literals.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare const poPageDynamicLiterals: {
|
|
6
|
-
[key: string]: PoPageDynamicLiterals;
|
|
7
|
-
};
|
|
8
|
-
export declare class PoPageDynamicService {
|
|
9
|
-
private http;
|
|
10
|
-
private notification;
|
|
11
|
-
readonly headers: HttpHeaders;
|
|
12
|
-
private endpoint;
|
|
13
|
-
private language;
|
|
14
|
-
private metadata;
|
|
15
|
-
constructor();
|
|
16
|
-
configServiceApi(config?: {
|
|
17
|
-
endpoint?: string;
|
|
18
|
-
metadata?: string;
|
|
19
|
-
}): void;
|
|
20
|
-
getMetadata<T>(type?: string): Observable<T>;
|
|
21
|
-
deleteResource(id?: any, endpoint?: string): Observable<any>;
|
|
22
|
-
deleteResources(ids: Array<any>, endpoint?: string): Observable<any>;
|
|
23
|
-
getResources(params?: HttpParams, endpoint?: string): Observable<any>;
|
|
24
|
-
getResource(id: any, endpoint?: string): Observable<any>;
|
|
25
|
-
createResource(resource: any, endpoint?: string): Observable<any>;
|
|
26
|
-
updateResource(id: any, resource: any, endpoint?: string): Observable<any>;
|
|
27
|
-
private getLocalEndPoint;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDynamicService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoPageDynamicService>;
|
|
30
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./po-page-customization/po-page-customization.module";
|
|
3
|
-
import * as i2 from "./po-page-dynamic/po-page-dynamic.module";
|
|
4
|
-
export declare class PoServicesModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoServicesModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoServicesModule, never, [typeof i1.PoPageCustomizationModule, typeof i2.PoPageDynamicModule], [typeof i1.PoPageCustomizationModule, typeof i2.PoPageDynamicModule]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoServicesModule>;
|
|
8
|
-
}
|
package/lib/utils/util.d.ts
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { PoThemeA11yEnum, PoThemeService } from '@po-ui/ng-components';
|
|
2
|
-
/**
|
|
3
|
-
* Retorna o idioma atual do navegador
|
|
4
|
-
*/
|
|
5
|
-
export declare function getBrowserLanguage(): string;
|
|
6
|
-
/**
|
|
7
|
-
* Retorna o idioma do navegador, com somente as duas primeiras letras. Por exemplo: "pt" ou "es".
|
|
8
|
-
*
|
|
9
|
-
* Caso o valor retornado pelo navegador não estiver dentro dos idiomas suportados pelo PO,
|
|
10
|
-
* será retornado a linguagem padrão (poLocaleDefault).
|
|
11
|
-
*/
|
|
12
|
-
export declare function getShortBrowserLanguage(): string;
|
|
13
|
-
export declare function convertToBoolean(val: any): boolean;
|
|
14
|
-
export declare function convertToInt(value: any, valueDefault?: any): number;
|
|
15
|
-
export declare function isTypeof(object: any, type: any): boolean;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param fn Função que será executada dentro do contexto. Podendo ser o nome da função
|
|
19
|
-
* ou a referência da mesma.
|
|
20
|
-
*
|
|
21
|
-
* @param context Contexto do qual a função será executada.
|
|
22
|
-
*/
|
|
23
|
-
export declare function callFunction(fn: any, context: any, param?: any): void;
|
|
24
|
-
export declare function convertIsoToDate(value: string, start: boolean, end: boolean): Date;
|
|
25
|
-
export declare function convertDateToISOExtended(date: Date, time?: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* Transforma o ano em uma string no formato yyyy e caso o ano seja menor que 1000 preenche com zeros a esquerda.
|
|
28
|
-
*
|
|
29
|
-
* @param year Ano
|
|
30
|
-
*/
|
|
31
|
-
export declare function formatYear(year: number): string;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated use getDefaultSizeFn
|
|
34
|
-
*
|
|
35
|
-
* Retorna o tamanho padrão dos componentes conforme o nível de acessibilidade.
|
|
36
|
-
*/
|
|
37
|
-
export declare function getDefaultSize(poThemeService: PoThemeService): string;
|
|
38
|
-
/**
|
|
39
|
-
* Retorna o tamanho padrão dos componentes conforme o nível de acessibilidade.
|
|
40
|
-
*/
|
|
41
|
-
export declare function getDefaultSizeFn(): string;
|
|
42
|
-
export declare function isEquals(value: any, comparedValue: any): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Caso o ano original da data seja entre 0 e 100 atribui esse valor ao ano, pois o `new Date` do javascript transforma o ano para 190X.
|
|
45
|
-
*
|
|
46
|
-
* @param date Data
|
|
47
|
-
* @param year Ano original
|
|
48
|
-
*/
|
|
49
|
-
export declare function setYearFrom0To100(date: Date, year: number): void;
|
|
50
|
-
export declare function sortOptionsByProperty(options: Array<any>, property: string): void;
|
|
51
|
-
export declare function removeDuplicatedOptions(list: Array<any>): void;
|
|
52
|
-
export declare function removeUndefinedAndNullOptions(list: Array<any>): void;
|
|
53
|
-
export declare function validValue(value: any): boolean;
|
|
54
|
-
export declare function isExternalLink(url: any): boolean;
|
|
55
|
-
export declare function openExternalLink(url: any): void;
|
|
56
|
-
export declare function getFormattedLink(link: string): string;
|
|
57
|
-
/**
|
|
58
|
-
* Método responsável por ordenar dois valores.
|
|
59
|
-
*
|
|
60
|
-
* @param leftSide Primeiro valor a ser comparado.
|
|
61
|
-
* @param rightSide Segundo valor a ser comparado.
|
|
62
|
-
* @param ascending Determina se será em ordem ascendente ou descendente.
|
|
63
|
-
*/
|
|
64
|
-
export declare function sortValues(leftSide: string, rightSide: string, ascending?: boolean): number;
|
|
65
|
-
export declare function validateDateRange(date: Date, dateStart: Date, dateEnd: Date): boolean;
|
|
66
|
-
export declare function capitalizeFirstLetter(text: string): string;
|
|
67
|
-
/**
|
|
68
|
-
* Mapeia um novo array apenas com as propriedades definidas pelo desenvolvedor baseado em um array de
|
|
69
|
-
* origem.
|
|
70
|
-
*
|
|
71
|
-
* Exemplo:
|
|
72
|
-
*
|
|
73
|
-
* ```
|
|
74
|
-
* const people = [
|
|
75
|
-
* { id: 1, name: 'Fulano', birthdate: '1980-11-01', genre: 'Male', city: 'São Paulo', dependents: 2 },
|
|
76
|
-
* { id: 2, name: 'Beltrano', birthdate: '1997-01-21', genre: 'Female', city: 'Joinville', dependents: 0 },
|
|
77
|
-
* { id: 3, name: 'Siclano', birthdate: '1995-07-15', genre: 'Male', city: 'Joinville', dependents: 0 }
|
|
78
|
-
* ];
|
|
79
|
-
*
|
|
80
|
-
* const properties = ['id', 'name'];
|
|
81
|
-
*
|
|
82
|
-
* const idAndName = mapArrayByProperties(people, properties);
|
|
83
|
-
*
|
|
84
|
-
* console.log(idAndName); // [{ id: 1, name: 'Fulano' }, { id: 2, name: 'Beltrano' }, { id: 3, name: 'Siclano' }]
|
|
85
|
-
* ```
|
|
86
|
-
*
|
|
87
|
-
* Um outro uso para o método é "parear" todos os objetos do array com as mesmas propriedades.
|
|
88
|
-
*
|
|
89
|
-
* ```
|
|
90
|
-
* const customers = [
|
|
91
|
-
* { id: 1, name: 'Fulano', city: 'São Paulo', dependents: 2 }, // sem genre
|
|
92
|
-
* { id: 2, name: 'Beltrano', genre: 'Female', city: 'Joinville' }, // sem dependents
|
|
93
|
-
* { id: 3, name: 'Siclano', genre: 'Male', city: 'Joinville', dependents: 0 }
|
|
94
|
-
* ];
|
|
95
|
-
* const properties = ['id', 'name', 'city', 'genre', 'dependents'];
|
|
96
|
-
*
|
|
97
|
-
* const pattern = mapArrayByProperties(customers, properties);
|
|
98
|
-
* console.log(pattern);
|
|
99
|
-
*
|
|
100
|
-
* // [
|
|
101
|
-
* // { id: 1, name: 'Fulano', city: 'São Paulo', genre: undefined, dependents: 2 },
|
|
102
|
-
* // { id: 2, name: 'Beltrano', city: 'Joinville', genre: 'Female', dependents: undefined },
|
|
103
|
-
* // { id: 3, name: 'Siclano', city: 'Joinville', genre: 'Male', dependents: 0 }
|
|
104
|
-
* // ]
|
|
105
|
-
* ```
|
|
106
|
-
*
|
|
107
|
-
* @param items {Array<any>} Array de items original.
|
|
108
|
-
* @param properties {Array<string>} Array de string com a lista de propriedades que devem ser retornadas.
|
|
109
|
-
*
|
|
110
|
-
* @returns Array<any>
|
|
111
|
-
*/
|
|
112
|
-
export declare function mapArrayByProperties(items?: Array<any>, properties?: Array<string>): Array<any>;
|
|
113
|
-
/**
|
|
114
|
-
* Mapeia um novo objeto apenas com as propriedades definidas pelo desenvolvedor.
|
|
115
|
-
*
|
|
116
|
-
* Exemplo:
|
|
117
|
-
*
|
|
118
|
-
* ```
|
|
119
|
-
* const person = { id: 1, name: 'Fulano', birthdate: '1980-11-01', genre: 'Male', city: 'São Paulo', dependents: 2 };
|
|
120
|
-
*
|
|
121
|
-
* const properties = ['id', 'name'];
|
|
122
|
-
*
|
|
123
|
-
* const idAndName = mapObjectByProperties(person, properties);
|
|
124
|
-
*
|
|
125
|
-
* console.log(idAndName); // { id: 1, name: 'Fulano' }
|
|
126
|
-
* ```
|
|
127
|
-
*
|
|
128
|
-
* @param object {Array<any>} Array de items original.
|
|
129
|
-
* @param properties {Array<string>} Array de string com a lista de propriedades que devem ser retornadas.
|
|
130
|
-
*
|
|
131
|
-
* @returns Array<any>
|
|
132
|
-
*/
|
|
133
|
-
export declare function mapObjectByProperties(object?: any, properties?: Array<string>): any;
|
|
134
|
-
/**
|
|
135
|
-
* Retorna os valores de um objeto dentro de um array.
|
|
136
|
-
*
|
|
137
|
-
* > Simula o Object.values(obj), o mesmo deve ser removido assim que a versão typescrit for atualizada.
|
|
138
|
-
*
|
|
139
|
-
* @param object Objeto de onde será pego os valores.
|
|
140
|
-
*/
|
|
141
|
-
export declare function valuesFromObject(object?: any): Array<any>;
|
|
142
|
-
/**
|
|
143
|
-
* adiciona 0 no tempo informado, caso menor q 10
|
|
144
|
-
*
|
|
145
|
-
* @param time
|
|
146
|
-
*/
|
|
147
|
-
export declare function addZero(time: number): string | number;
|
|
148
|
-
/**
|
|
149
|
-
* Remove do objeto as propriedades especificadas.
|
|
150
|
-
*
|
|
151
|
-
* Exemplo:
|
|
152
|
-
*
|
|
153
|
-
* ```
|
|
154
|
-
* key: ['id', 'cpf']
|
|
155
|
-
* newItemValue: { id: '123', cpf: '456', name: 'Test' }
|
|
156
|
-
* Resultado: { name: 'Test' }
|
|
157
|
-
* ```
|
|
158
|
-
*
|
|
159
|
-
* @param keys lista de propriedades para ser removida do objeto.
|
|
160
|
-
* @param newItemValue objeto que se deseja remover as propriedades.
|
|
161
|
-
* @returns objeto sem as propriedades especificadas.
|
|
162
|
-
*/
|
|
163
|
-
export declare function removeKeysProperties(keys: Array<any>, newItemValue: any): any;
|
|
164
|
-
/**
|
|
165
|
-
* Remove objetos duplicados.
|
|
166
|
-
*
|
|
167
|
-
* Exemplo:
|
|
168
|
-
*
|
|
169
|
-
* ```
|
|
170
|
-
* item: [{country: 'japao'}, {country: 'brasil'} , {country: 'china'}]
|
|
171
|
-
* item2: [{country: 'chile'}, {country: 'brasil'}, {country: 'canada'}]
|
|
172
|
-
* key: 'country'
|
|
173
|
-
* Resultado:
|
|
174
|
-
* item2 = [{country: 'chile'}, {country: 'canada'} ]
|
|
175
|
-
* ```
|
|
176
|
-
*
|
|
177
|
-
* @param item lista comparada.
|
|
178
|
-
* @param item2 lista para remover items duplicados.
|
|
179
|
-
* @param key propriedade que será utilizada para realizar a comparação.
|
|
180
|
-
*/
|
|
181
|
-
export declare function removeDuplicateItems(item: any, item2: any, key: any): void;
|
|
182
|
-
/**
|
|
183
|
-
* Recebe dois arrays de objetos e remove os itens duplicados utilizando uma propriedade(key) para comparação.
|
|
184
|
-
*
|
|
185
|
-
* Exemplo:
|
|
186
|
-
*
|
|
187
|
-
* ```
|
|
188
|
-
* item: [{country: 'japao'}, {country: 'brasil'} , {country: 'china'}]
|
|
189
|
-
* item2: [{country: 'chile'}, {country: 'brasil'}, {country: 'canada'}]
|
|
190
|
-
* key: '[country]'
|
|
191
|
-
* Resultado do retorno:
|
|
192
|
-
* [{country: 'chile'}, {country: 'canada'}, {country: 'japao'}, {country: 'china'}]
|
|
193
|
-
* ```
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* @param item : primeira lista de itens.
|
|
197
|
-
* @param item2 : segunda lista de itens.
|
|
198
|
-
* @param key : um array de propriedades que vão ser utilizadas para a comparação.
|
|
199
|
-
*/
|
|
200
|
-
export declare function removeDuplicateItemsWithArrayKey(item: any, item2: any, keys: any): any;
|
|
201
|
-
/**
|
|
202
|
-
* Recebe um array de objetos para ordenação utilizando chave como comparativo e
|
|
203
|
-
* se a order é crescente(true) ou descrescente(false)
|
|
204
|
-
*
|
|
205
|
-
* Exemplo:
|
|
206
|
-
*
|
|
207
|
-
* ```
|
|
208
|
-
* items: [{country: 'japao'}, {country: 'brasil'} , {country: 'china'}]
|
|
209
|
-
* key: 'country'
|
|
210
|
-
* isAscendingOrder: true
|
|
211
|
-
* Resultado do retorno:
|
|
212
|
-
* [{country: 'brasil'}, {country: 'china'} , {country: 'japao'}]
|
|
213
|
-
* ```
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* @param items : lista de itens.
|
|
217
|
-
* @param key : propriedade utilizada na comparação.
|
|
218
|
-
* @param isAscendingOrder : ordenação crescente ou descrescente.
|
|
219
|
-
*/
|
|
220
|
-
export declare function sortArrayOfObjects(items: any, key: any, isAscendingOrder: any): any;
|
|
221
|
-
/**
|
|
222
|
-
* @deprecated use validateSizeFn
|
|
223
|
-
*
|
|
224
|
-
* Valida e retorna um tamanho permitido para os componentes, considerando a acessibilidade.
|
|
225
|
-
*/
|
|
226
|
-
export declare function validateSize(value: string, poThemeService: PoThemeService): string;
|
|
227
|
-
/**
|
|
228
|
-
* Valida e retorna um tamanho permitido para os componentes, considerando a acessibilidade.
|
|
229
|
-
*/
|
|
230
|
-
export declare function validateSizeFn(value: string): string;
|
|
231
|
-
/**
|
|
232
|
-
* Retorna a preferência global de tamanho dos componentes.
|
|
233
|
-
*
|
|
234
|
-
* @returns `'small'` ou `'medium'`.
|
|
235
|
-
*/
|
|
236
|
-
export declare function getA11yDefaultSize(): string;
|
|
237
|
-
/**
|
|
238
|
-
* Retorna o nível de acessibilidade configurado no tema.
|
|
239
|
-
* Se não estiver configurado, retorna `AAA` como padrão.
|
|
240
|
-
* @returns {PoThemeA11yEnum} O nível de acessibilidade, que pode ser `AA` ou `AAA`.
|
|
241
|
-
*/
|
|
242
|
-
export declare function getA11yLevel(): PoThemeA11yEnum;
|
|
Binary file
|
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/index';
|