dts-backoffice-util 16.0.0 → 17.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/README.md +143 -52
- package/esm2022/dts-backoffice-util.mjs +4 -4
- package/esm2022/lib/components/totvs-schedule-execution/totvs-schedule-execution.component.mjs +305 -272
- package/esm2022/lib/components/totvs-schedule-execution/totvs-schedule-execution.model.mjs +7 -7
- package/esm2022/lib/components/totvs-schedule-execution/totvs-schedule-execution.service.mjs +208 -183
- package/esm2022/lib/dts-backoffice-util.module.mjs +54 -54
- package/esm2022/lib/interfaces/filter-range.interface.mjs +1 -1
- package/esm2022/lib/interfaces/totvs-response.interface.mjs +1 -1
- package/esm2022/lib/model/session-info.model.mjs +67 -67
- package/esm2022/lib/pipes/dts-date-format.pipe.mjs +20 -20
- package/esm2022/lib/services/breadcrumb-control.service.mjs +99 -99
- package/esm2022/lib/services/cache-params.service.mjs +25 -25
- package/esm2022/lib/services/menu-datasul.service.mjs +118 -118
- package/esm2022/lib/services/profile.service.mjs +55 -55
- package/esm2022/lib/services/report.service.mjs +57 -57
- package/esm2022/lib/services/session-info.service.mjs +36 -36
- package/esm2022/lib/services/translate.service.mjs +23 -23
- package/esm2022/lib/utils/date.util.mjs +56 -56
- package/esm2022/lib/utils/disclaimer.util.mjs +490 -490
- package/esm2022/lib/utils/field-validation.util.mjs +179 -179
- package/esm2022/lib/utils/file.util.mjs +151 -151
- package/esm2022/lib/utils/filter-range.util.mjs +32 -32
- package/esm2022/lib/utils/generic-functions.utils.mjs +170 -170
- package/esm2022/public-api.mjs +33 -33
- package/fesm2022/dts-backoffice-util.mjs +2013 -1955
- package/fesm2022/dts-backoffice-util.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/components/totvs-schedule-execution/totvs-schedule-execution.component.d.ts +53 -49
- package/lib/components/totvs-schedule-execution/totvs-schedule-execution.model.d.ts +68 -60
- package/lib/components/totvs-schedule-execution/totvs-schedule-execution.service.d.ts +30 -30
- package/lib/dts-backoffice-util.module.d.ts +14 -14
- package/lib/interfaces/filter-range.interface.d.ts +18 -18
- package/lib/interfaces/totvs-response.interface.d.ts +4 -4
- package/lib/model/session-info.model.d.ts +40 -40
- package/lib/pipes/dts-date-format.pipe.d.ts +7 -7
- package/lib/services/breadcrumb-control.service.d.ts +18 -18
- package/lib/services/cache-params.service.d.ts +10 -10
- package/lib/services/menu-datasul.service.d.ts +27 -27
- package/lib/services/profile.service.d.ts +25 -25
- package/lib/services/report.service.d.ts +31 -31
- package/lib/services/session-info.service.d.ts +12 -12
- package/lib/services/translate.service.d.ts +8 -8
- package/lib/utils/date.util.d.ts +9 -9
- package/lib/utils/disclaimer.util.d.ts +40 -40
- package/lib/utils/field-validation.util.d.ts +21 -21
- package/lib/utils/file.util.d.ts +23 -23
- package/lib/utils/filter-range.util.d.ts +7 -7
- package/lib/utils/generic-functions.utils.d.ts +24 -24
- package/package.json +5 -5
- package/public-api.d.ts +20 -20
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IProfile {
|
|
5
|
-
pageId: string;
|
|
6
|
-
dataCode: string;
|
|
7
|
-
userCode: string;
|
|
8
|
-
dataValue?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IProfileResponse {
|
|
11
|
-
message: Array<string>;
|
|
12
|
-
length: number;
|
|
13
|
-
data: Array<any>;
|
|
14
|
-
}
|
|
15
|
-
export declare class ProfileService {
|
|
16
|
-
http: HttpClient;
|
|
17
|
-
readonly apiURL = "/dts/datasul-rest/resources/api/btb/btapi930za";
|
|
18
|
-
constructor(http: HttpClient);
|
|
19
|
-
setProfile(profile: IProfile): Observable<any>;
|
|
20
|
-
getProfileAsString(profile: IProfile, showLoading?: boolean): Observable<string>;
|
|
21
|
-
getProfileAsJSON(profile: IProfile, showLoading?: boolean): Observable<object>;
|
|
22
|
-
private getProfile;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
25
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IProfile {
|
|
5
|
+
pageId: string;
|
|
6
|
+
dataCode: string;
|
|
7
|
+
userCode: string;
|
|
8
|
+
dataValue?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IProfileResponse {
|
|
11
|
+
message: Array<string>;
|
|
12
|
+
length: number;
|
|
13
|
+
data: Array<any>;
|
|
14
|
+
}
|
|
15
|
+
export declare class ProfileService {
|
|
16
|
+
http: HttpClient;
|
|
17
|
+
readonly apiURL = "/dts/datasul-rest/resources/api/btb/btapi930za";
|
|
18
|
+
constructor(http: HttpClient);
|
|
19
|
+
setProfile(profile: IProfile): Observable<any>;
|
|
20
|
+
getProfileAsString(profile: IProfile, showLoading?: boolean): Observable<string>;
|
|
21
|
+
getProfileAsJSON(profile: IProfile, showLoading?: boolean): Observable<object>;
|
|
22
|
+
private getProfile;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
25
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IProperty {
|
|
5
|
-
name: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IReportServiceParams {
|
|
9
|
-
reportName: string;
|
|
10
|
-
programName: string;
|
|
11
|
-
properties: Array<IProperty>;
|
|
12
|
-
dialect: string;
|
|
13
|
-
downloadName: string;
|
|
14
|
-
download: boolean;
|
|
15
|
-
format: ReportFormats;
|
|
16
|
-
}
|
|
17
|
-
export declare enum ReportFormats {
|
|
18
|
-
XLSX = "xlsx",
|
|
19
|
-
PDF = "pdf",
|
|
20
|
-
DOCX = "docx",
|
|
21
|
-
HTML = "html"
|
|
22
|
-
}
|
|
23
|
-
export declare class ReportService {
|
|
24
|
-
httpClient: HttpClient;
|
|
25
|
-
readonly URL: string;
|
|
26
|
-
constructor(httpClient: HttpClient);
|
|
27
|
-
generate(params: IReportServiceParams, showLoading?: boolean): Observable<Blob>;
|
|
28
|
-
download(file: Blob, fileName: string): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReportService, never>;
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ReportService>;
|
|
31
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IProperty {
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IReportServiceParams {
|
|
9
|
+
reportName: string;
|
|
10
|
+
programName: string;
|
|
11
|
+
properties: Array<IProperty>;
|
|
12
|
+
dialect: string;
|
|
13
|
+
downloadName: string;
|
|
14
|
+
download: boolean;
|
|
15
|
+
format: ReportFormats;
|
|
16
|
+
}
|
|
17
|
+
export declare enum ReportFormats {
|
|
18
|
+
XLSX = "xlsx",
|
|
19
|
+
PDF = "pdf",
|
|
20
|
+
DOCX = "docx",
|
|
21
|
+
HTML = "html"
|
|
22
|
+
}
|
|
23
|
+
export declare class ReportService {
|
|
24
|
+
httpClient: HttpClient;
|
|
25
|
+
readonly URL: string;
|
|
26
|
+
constructor(httpClient: HttpClient);
|
|
27
|
+
generate(params: IReportServiceParams, showLoading?: boolean): Observable<Blob>;
|
|
28
|
+
download(file: Blob, fileName: string): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReportService>;
|
|
31
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class UserLoginService {
|
|
5
|
-
http: HttpClient;
|
|
6
|
-
readonly apiUrl = "/totvs-menu/rest/getSessionInfo";
|
|
7
|
-
userLogin: any;
|
|
8
|
-
constructor(http: HttpClient);
|
|
9
|
-
getUserLogin(): Observable<string>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserLoginService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserLoginService>;
|
|
12
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UserLoginService {
|
|
5
|
+
http: HttpClient;
|
|
6
|
+
readonly apiUrl = "/totvs-menu/rest/getSessionInfo";
|
|
7
|
+
userLogin: any;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
getUserLogin(): Observable<string>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserLoginService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserLoginService>;
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TranslateService {
|
|
3
|
-
static getSuportLanguage(): string[];
|
|
4
|
-
static getDefaultCurrencyCode(): string;
|
|
5
|
-
static getCurrentLanguage(): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateService>;
|
|
8
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TranslateService {
|
|
3
|
+
static getSuportLanguage(): string[];
|
|
4
|
+
static getDefaultCurrencyCode(): string;
|
|
5
|
+
static getCurrentLanguage(): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateService>;
|
|
8
|
+
}
|
package/lib/utils/date.util.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class DateUtil {
|
|
2
|
-
constructor();
|
|
3
|
-
static dateToQueryParam(date: Date): string;
|
|
4
|
-
static queryParamToDate(param: string): Date;
|
|
5
|
-
static isValidDate(date: Date): boolean;
|
|
6
|
-
static ajustDate(param: any): Date;
|
|
7
|
-
static ajustDateToModel(values: Object, fieldName: string): Date;
|
|
8
|
-
static pad(number: any): any;
|
|
9
|
-
}
|
|
1
|
+
export declare class DateUtil {
|
|
2
|
+
constructor();
|
|
3
|
+
static dateToQueryParam(date: Date): string;
|
|
4
|
+
static queryParamToDate(param: string): Date;
|
|
5
|
+
static isValidDate(date: Date): boolean;
|
|
6
|
+
static ajustDate(param: any): Date;
|
|
7
|
+
static ajustDateToModel(values: Object, fieldName: string): Date;
|
|
8
|
+
static pad(number: any): any;
|
|
9
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { PoDisclaimer, PoI18nPipe, PoCheckboxGroupOption, PoMultiselectOption, PoDatepickerRange } from '@po-ui/ng-components';
|
|
2
|
-
import { IFilterRangeCharacter, IFilterRangeNumber, IFilterRangeDate } from '../../lib/interfaces/filter-range.interface';
|
|
3
|
-
import { PoNotificationService } from '@po-ui/ng-components';
|
|
4
|
-
export declare class DisclaimerUtil {
|
|
5
|
-
poNotification: PoNotificationService;
|
|
6
|
-
poI18nPipe: PoI18nPipe;
|
|
7
|
-
literals: any;
|
|
8
|
-
constructor(poNotification: PoNotificationService, poI18nPipe: PoI18nPipe, literals: Object);
|
|
9
|
-
makeDisclaimer(property: string, value: string, hideClose?: boolean, tradValue?: boolean, vldBlank?: boolean): PoDisclaimer;
|
|
10
|
-
makeDisclaimerFromNumber(property: string, value: number, hideClose?: boolean, vldBlank?: boolean): PoDisclaimer;
|
|
11
|
-
makeDisclaimerFromBoolean(property: string, value: boolean, hideClose?: boolean): PoDisclaimer;
|
|
12
|
-
makeDisclaimerFromDate(property: string, value: Date, hideClose?: boolean): PoDisclaimer;
|
|
13
|
-
makeDisclaimerFromMultiSelect(property: string, value: Array<any>, length?: number, hideClose?: boolean, tradValue?: boolean): PoDisclaimer;
|
|
14
|
-
makeDisclaimerFromMultiSelectNumber(property: string, value: Array<any>, options: Array<any>, length?: number, hideClose?: boolean): PoDisclaimer;
|
|
15
|
-
makeDisclaimerFromCheckboxGroup(property: string, value: Array<string>, length?: number, hideClose?: boolean): PoDisclaimer;
|
|
16
|
-
makeDisclaimerFromRangeCharacter(property: string, value: IFilterRangeCharacter, hideClose?: boolean, validateEqual?: boolean): PoDisclaimer;
|
|
17
|
-
makeDisclaimerFromRangeNumber(property: string, value: IFilterRangeNumber, hideClose?: boolean, validateEqual?: boolean): PoDisclaimer;
|
|
18
|
-
makeDisclaimerFromDatepickerRange(property: string, value: PoDatepickerRange, hideClose?: boolean): PoDisclaimer;
|
|
19
|
-
makeDisclaimerFromRangeDate(property: string, value: IFilterRangeDate, hideClose?: boolean, validateEqual?: boolean): PoDisclaimer;
|
|
20
|
-
atzCharFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: string): string;
|
|
21
|
-
atzNumberFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: number): number;
|
|
22
|
-
atzBooleanFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: boolean): boolean;
|
|
23
|
-
atzDateFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Date): Date;
|
|
24
|
-
atzMultiSelectCharFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Array<PoMultiselectOption>): Array<string>;
|
|
25
|
-
atzMultiSelectNumberFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Array<PoMultiselectOption>): Array<number>;
|
|
26
|
-
atzMultiSelectFromDisclamer(type: string, disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Array<PoMultiselectOption>): Array<any>;
|
|
27
|
-
atzCheckboxFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, options: Array<PoCheckboxGroupOption>): Array<string>;
|
|
28
|
-
atzRangeCharFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeChar: IFilterRangeCharacter): IFilterRangeCharacter;
|
|
29
|
-
atzRangeNumFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeNum: IFilterRangeNumber): IFilterRangeNumber;
|
|
30
|
-
atzDatepickerRangeFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeDate: PoDatepickerRange): PoDatepickerRange;
|
|
31
|
-
atzRangeDateFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeDate: IFilterRangeDate): IFilterRangeDate;
|
|
32
|
-
atzRangeCharFromQueryParam(value: string, rangeChar: IFilterRangeCharacter): IFilterRangeCharacter;
|
|
33
|
-
atzRangeNumFromQueryParam(value: string, rangeNum: IFilterRangeNumber): IFilterRangeNumber;
|
|
34
|
-
atzRangeDateFromQueryParam(value: string, rangeDate: IFilterRangeDate): IFilterRangeDate;
|
|
35
|
-
dateToQueryParam(date: Date): string;
|
|
36
|
-
queryParamToDate(param: string): Date;
|
|
37
|
-
isValidDate(date: Date): boolean;
|
|
38
|
-
ajustDate(param: any): Date;
|
|
39
|
-
pad(number: number): string | number;
|
|
40
|
-
}
|
|
1
|
+
import { PoDisclaimer, PoI18nPipe, PoCheckboxGroupOption, PoMultiselectOption, PoDatepickerRange } from '@po-ui/ng-components';
|
|
2
|
+
import { IFilterRangeCharacter, IFilterRangeNumber, IFilterRangeDate } from '../../lib/interfaces/filter-range.interface';
|
|
3
|
+
import { PoNotificationService } from '@po-ui/ng-components';
|
|
4
|
+
export declare class DisclaimerUtil {
|
|
5
|
+
poNotification: PoNotificationService;
|
|
6
|
+
poI18nPipe: PoI18nPipe;
|
|
7
|
+
literals: any;
|
|
8
|
+
constructor(poNotification: PoNotificationService, poI18nPipe: PoI18nPipe, literals: Object);
|
|
9
|
+
makeDisclaimer(property: string, value: string, hideClose?: boolean, tradValue?: boolean, vldBlank?: boolean): PoDisclaimer;
|
|
10
|
+
makeDisclaimerFromNumber(property: string, value: number, hideClose?: boolean, vldBlank?: boolean): PoDisclaimer;
|
|
11
|
+
makeDisclaimerFromBoolean(property: string, value: boolean, hideClose?: boolean): PoDisclaimer;
|
|
12
|
+
makeDisclaimerFromDate(property: string, value: Date, hideClose?: boolean): PoDisclaimer;
|
|
13
|
+
makeDisclaimerFromMultiSelect(property: string, value: Array<any>, length?: number, hideClose?: boolean, tradValue?: boolean): PoDisclaimer;
|
|
14
|
+
makeDisclaimerFromMultiSelectNumber(property: string, value: Array<any>, options: Array<any>, length?: number, hideClose?: boolean): PoDisclaimer;
|
|
15
|
+
makeDisclaimerFromCheckboxGroup(property: string, value: Array<string>, length?: number, hideClose?: boolean): PoDisclaimer;
|
|
16
|
+
makeDisclaimerFromRangeCharacter(property: string, value: IFilterRangeCharacter, hideClose?: boolean, validateEqual?: boolean): PoDisclaimer;
|
|
17
|
+
makeDisclaimerFromRangeNumber(property: string, value: IFilterRangeNumber, hideClose?: boolean, validateEqual?: boolean): PoDisclaimer;
|
|
18
|
+
makeDisclaimerFromDatepickerRange(property: string, value: PoDatepickerRange, hideClose?: boolean): PoDisclaimer;
|
|
19
|
+
makeDisclaimerFromRangeDate(property: string, value: IFilterRangeDate, hideClose?: boolean, validateEqual?: boolean): PoDisclaimer;
|
|
20
|
+
atzCharFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: string): string;
|
|
21
|
+
atzNumberFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: number): number;
|
|
22
|
+
atzBooleanFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: boolean): boolean;
|
|
23
|
+
atzDateFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Date): Date;
|
|
24
|
+
atzMultiSelectCharFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Array<PoMultiselectOption>): Array<string>;
|
|
25
|
+
atzMultiSelectNumberFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Array<PoMultiselectOption>): Array<number>;
|
|
26
|
+
atzMultiSelectFromDisclamer(type: string, disclaimers: Array<PoDisclaimer>, property: string, defaultValue: Array<PoMultiselectOption>): Array<any>;
|
|
27
|
+
atzCheckboxFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, options: Array<PoCheckboxGroupOption>): Array<string>;
|
|
28
|
+
atzRangeCharFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeChar: IFilterRangeCharacter): IFilterRangeCharacter;
|
|
29
|
+
atzRangeNumFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeNum: IFilterRangeNumber): IFilterRangeNumber;
|
|
30
|
+
atzDatepickerRangeFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeDate: PoDatepickerRange): PoDatepickerRange;
|
|
31
|
+
atzRangeDateFromDisclamer(disclaimers: Array<PoDisclaimer>, property: string, rangeDate: IFilterRangeDate): IFilterRangeDate;
|
|
32
|
+
atzRangeCharFromQueryParam(value: string, rangeChar: IFilterRangeCharacter): IFilterRangeCharacter;
|
|
33
|
+
atzRangeNumFromQueryParam(value: string, rangeNum: IFilterRangeNumber): IFilterRangeNumber;
|
|
34
|
+
atzRangeDateFromQueryParam(value: string, rangeDate: IFilterRangeDate): IFilterRangeDate;
|
|
35
|
+
dateToQueryParam(date: Date): string;
|
|
36
|
+
queryParamToDate(param: string): Date;
|
|
37
|
+
isValidDate(date: Date): boolean;
|
|
38
|
+
ajustDate(param: any): Date;
|
|
39
|
+
pad(number: number): string | number;
|
|
40
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { PoNotificationService, PoI18nPipe } from '@po-ui/ng-components';
|
|
2
|
-
import { DisclaimerUtil } from './disclaimer.util';
|
|
3
|
-
export declare class FieldValidationUtil {
|
|
4
|
-
poNotification: PoNotificationService;
|
|
5
|
-
poI18nPipe: PoI18nPipe;
|
|
6
|
-
literals: any;
|
|
7
|
-
disclaimerUtil: DisclaimerUtil;
|
|
8
|
-
constructor(poNotification: PoNotificationService, poI18nPipe: PoI18nPipe, literals: Object);
|
|
9
|
-
vldFieldCharacter(field: string, value: string): boolean;
|
|
10
|
-
vldRangeCharacter(initialField: string, finalField: string, initialValue: string, finalValue: string): boolean;
|
|
11
|
-
vldFieldNumber(field: string, value: number, vldValue?: boolean, zeroAccept?: boolean): boolean;
|
|
12
|
-
vldValueOfNumber(field: string, value: number): boolean;
|
|
13
|
-
vldFieldPercent(field: string, value: number, vldValue?: boolean): boolean;
|
|
14
|
-
vldValueOfPercent(field: string, value: number): boolean;
|
|
15
|
-
vldRangeNumber(initialField: string, finalField: string, initialValue: number, finalValue: number): boolean;
|
|
16
|
-
vldFieldDate(field: string, value: Date): boolean;
|
|
17
|
-
vldRangeDate(initialField: string, finalField: string, initialValue: Date, finalValue: Date): boolean;
|
|
18
|
-
vldFieldMultiSelect(field: string, value: Array<any>): boolean;
|
|
19
|
-
vldFieldCheckbox(field: string, value: Array<string>): boolean;
|
|
20
|
-
vldFieldFormat(field: string, value: string, format: string, replacePoint?: boolean): boolean;
|
|
21
|
-
}
|
|
1
|
+
import { PoNotificationService, PoI18nPipe } from '@po-ui/ng-components';
|
|
2
|
+
import { DisclaimerUtil } from './disclaimer.util';
|
|
3
|
+
export declare class FieldValidationUtil {
|
|
4
|
+
poNotification: PoNotificationService;
|
|
5
|
+
poI18nPipe: PoI18nPipe;
|
|
6
|
+
literals: any;
|
|
7
|
+
disclaimerUtil: DisclaimerUtil;
|
|
8
|
+
constructor(poNotification: PoNotificationService, poI18nPipe: PoI18nPipe, literals: Object);
|
|
9
|
+
vldFieldCharacter(field: string, value: string): boolean;
|
|
10
|
+
vldRangeCharacter(initialField: string, finalField: string, initialValue: string, finalValue: string): boolean;
|
|
11
|
+
vldFieldNumber(field: string, value: number, vldValue?: boolean, zeroAccept?: boolean): boolean;
|
|
12
|
+
vldValueOfNumber(field: string, value: number): boolean;
|
|
13
|
+
vldFieldPercent(field: string, value: number, vldValue?: boolean): boolean;
|
|
14
|
+
vldValueOfPercent(field: string, value: number): boolean;
|
|
15
|
+
vldRangeNumber(initialField: string, finalField: string, initialValue: number, finalValue: number): boolean;
|
|
16
|
+
vldFieldDate(field: string, value: Date): boolean;
|
|
17
|
+
vldRangeDate(initialField: string, finalField: string, initialValue: Date, finalValue: Date): boolean;
|
|
18
|
+
vldFieldMultiSelect(field: string, value: Array<any>): boolean;
|
|
19
|
+
vldFieldCheckbox(field: string, value: Array<string>): boolean;
|
|
20
|
+
vldFieldFormat(field: string, value: string, format: string, replacePoint?: boolean): boolean;
|
|
21
|
+
}
|
package/lib/utils/file.util.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare class FileUtil {
|
|
2
|
-
constructor();
|
|
3
|
-
static downloadFile(data: any, fileName: string, contentType?: string, base64?: boolean): void;
|
|
4
|
-
static downloadData(data: Array<any>, dwldDataParam?: IDownloadDataParams): void;
|
|
5
|
-
private static download;
|
|
6
|
-
static b64toBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
|
|
7
|
-
private static jsonToString;
|
|
8
|
-
static fileToB64(file: File): Promise<unknown>;
|
|
9
|
-
}
|
|
10
|
-
export interface IDownloadDataParams {
|
|
11
|
-
fileName: string;
|
|
12
|
-
literals: any;
|
|
13
|
-
columnDelimiter: string;
|
|
14
|
-
columnList: Array<string>;
|
|
15
|
-
columnExclude: Array<string>;
|
|
16
|
-
}
|
|
17
|
-
export declare class DownloadDataParams implements IDownloadDataParams {
|
|
18
|
-
fileName: string;
|
|
19
|
-
literals: any;
|
|
20
|
-
columnDelimiter: string;
|
|
21
|
-
columnList: Array<string>;
|
|
22
|
-
columnExclude: Array<string>;
|
|
23
|
-
}
|
|
1
|
+
export declare class FileUtil {
|
|
2
|
+
constructor();
|
|
3
|
+
static downloadFile(data: any, fileName: string, contentType?: string, base64?: boolean): void;
|
|
4
|
+
static downloadData(data: Array<any>, dwldDataParam?: IDownloadDataParams): void;
|
|
5
|
+
private static download;
|
|
6
|
+
static b64toBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
|
|
7
|
+
private static jsonToString;
|
|
8
|
+
static fileToB64(file: File): Promise<unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface IDownloadDataParams {
|
|
11
|
+
fileName: string;
|
|
12
|
+
literals: any;
|
|
13
|
+
columnDelimiter: string;
|
|
14
|
+
columnList: Array<string>;
|
|
15
|
+
columnExclude: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
export declare class DownloadDataParams implements IDownloadDataParams {
|
|
18
|
+
fileName: string;
|
|
19
|
+
literals: any;
|
|
20
|
+
columnDelimiter: string;
|
|
21
|
+
columnList: Array<string>;
|
|
22
|
+
columnExclude: Array<string>;
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IFilterRangeCharacter, IFilterRangeNumber, IFilterRangeDate } from '../../lib/interfaces/filter-range.interface';
|
|
2
|
-
export declare class FilterRangeUtil {
|
|
3
|
-
constructor();
|
|
4
|
-
static makeFilterRangeCharacter(iniInitial: string, iniFinal: string): IFilterRangeCharacter;
|
|
5
|
-
static makeFilterRangeNumber(iniInitial: number, iniFinal: number): IFilterRangeNumber;
|
|
6
|
-
static makeFilterRangeDate(iniInitial: Date, iniFinal: Date): IFilterRangeDate;
|
|
7
|
-
}
|
|
1
|
+
import { IFilterRangeCharacter, IFilterRangeNumber, IFilterRangeDate } from '../../lib/interfaces/filter-range.interface';
|
|
2
|
+
export declare class FilterRangeUtil {
|
|
3
|
+
constructor();
|
|
4
|
+
static makeFilterRangeCharacter(iniInitial: string, iniFinal: string): IFilterRangeCharacter;
|
|
5
|
+
static makeFilterRangeNumber(iniInitial: number, iniFinal: number): IFilterRangeNumber;
|
|
6
|
+
static makeFilterRangeDate(iniInitial: Date, iniFinal: Date): IFilterRangeDate;
|
|
7
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { PoMultiselectOption, PoSelectOption } from '@po-ui/ng-components';
|
|
2
|
-
export interface ChartSeries {
|
|
3
|
-
name?: string;
|
|
4
|
-
data?: Array<number>;
|
|
5
|
-
}
|
|
6
|
-
export interface ChartValues {
|
|
7
|
-
minValue: number;
|
|
8
|
-
maxValue: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class GenericFunctionsUtils {
|
|
11
|
-
literals: any;
|
|
12
|
-
constructor(literals: Object);
|
|
13
|
-
static listToArrayCharacter(list: string): Array<string>;
|
|
14
|
-
static ArrayToListCharacter(array: Array<string>): string;
|
|
15
|
-
static isEmpty(object: object): boolean;
|
|
16
|
-
static getChartValues(chartData: Array<ChartSeries>): ChartValues;
|
|
17
|
-
static atzMultiSelectListByOptions(options: Array<PoMultiselectOption>, list: Array<string>): Array<string>;
|
|
18
|
-
loadOptionsMultiSelect(options: Array<PoMultiselectOption>, list: Array<string>): void;
|
|
19
|
-
loadOptionsSelect(options: Array<PoSelectOption>, selectValue: string, tradValue?: boolean): void;
|
|
20
|
-
compareObjects(firstObject: Object, secondObject: Object): boolean;
|
|
21
|
-
referenceGeneration(charInd: string, dateRef: Date): string;
|
|
22
|
-
pad(number: any): string;
|
|
23
|
-
focusInternalInput(idField: string): void;
|
|
24
|
-
}
|
|
1
|
+
import { PoMultiselectOption, PoSelectOption } from '@po-ui/ng-components';
|
|
2
|
+
export interface ChartSeries {
|
|
3
|
+
name?: string;
|
|
4
|
+
data?: Array<number>;
|
|
5
|
+
}
|
|
6
|
+
export interface ChartValues {
|
|
7
|
+
minValue: number;
|
|
8
|
+
maxValue: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class GenericFunctionsUtils {
|
|
11
|
+
literals: any;
|
|
12
|
+
constructor(literals: Object);
|
|
13
|
+
static listToArrayCharacter(list: string): Array<string>;
|
|
14
|
+
static ArrayToListCharacter(array: Array<string>): string;
|
|
15
|
+
static isEmpty(object: object): boolean;
|
|
16
|
+
static getChartValues(chartData: Array<ChartSeries>): ChartValues;
|
|
17
|
+
static atzMultiSelectListByOptions(options: Array<PoMultiselectOption>, list: Array<string>): Array<string>;
|
|
18
|
+
loadOptionsMultiSelect(options: Array<PoMultiselectOption>, list: Array<string>): void;
|
|
19
|
+
loadOptionsSelect(options: Array<PoSelectOption>, selectValue: string, tradValue?: boolean): void;
|
|
20
|
+
compareObjects(firstObject: Object, secondObject: Object): boolean;
|
|
21
|
+
referenceGeneration(charInd: string, dateRef: Date): string;
|
|
22
|
+
pad(number: any): string;
|
|
23
|
+
focusInternalInput(idField: string): void;
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dts-backoffice-util",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"tslib": "^2.
|
|
5
|
+
"tslib": "^2.3.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": "^
|
|
9
|
-
"@angular/core": "^
|
|
10
|
-
"@angular/forms": "^
|
|
8
|
+
"@angular/common": "^17.3.9",
|
|
9
|
+
"@angular/core": "^17.3.9",
|
|
10
|
+
"@angular/forms": "^17.3.9"
|
|
11
11
|
},
|
|
12
12
|
"module": "fesm2022/dts-backoffice-util.mjs",
|
|
13
13
|
"typings": "index.d.ts",
|
package/public-api.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from './lib/services/session-info.service';
|
|
2
|
-
export * from './lib/services/profile.service';
|
|
3
|
-
export * from './lib/services/report.service';
|
|
4
|
-
export * from './lib/services/breadcrumb-control.service';
|
|
5
|
-
export * from './lib/services/menu-datasul.service';
|
|
6
|
-
export * from './lib/services/cache-params.service';
|
|
7
|
-
export * from './lib/services/translate.service';
|
|
8
|
-
export * from './lib/utils/date.util';
|
|
9
|
-
export * from './lib/utils/disclaimer.util';
|
|
10
|
-
export * from './lib/utils/field-validation.util';
|
|
11
|
-
export * from './lib/utils/filter-range.util';
|
|
12
|
-
export * from './lib/utils/generic-functions.utils';
|
|
13
|
-
export * from './lib/utils/file.util';
|
|
14
|
-
export * from './lib/interfaces/totvs-response.interface';
|
|
15
|
-
export * from './lib/interfaces/filter-range.interface';
|
|
16
|
-
export * from './lib/components/totvs-schedule-execution/totvs-schedule-execution.component';
|
|
17
|
-
export * from './lib/components/totvs-schedule-execution/totvs-schedule-execution.model';
|
|
18
|
-
export * from './lib/components/totvs-schedule-execution/totvs-schedule-execution.service';
|
|
19
|
-
export * from './lib/dts-backoffice-util.module';
|
|
20
|
-
export * from './lib/pipes/dts-date-format.pipe';
|
|
1
|
+
export * from './lib/services/session-info.service';
|
|
2
|
+
export * from './lib/services/profile.service';
|
|
3
|
+
export * from './lib/services/report.service';
|
|
4
|
+
export * from './lib/services/breadcrumb-control.service';
|
|
5
|
+
export * from './lib/services/menu-datasul.service';
|
|
6
|
+
export * from './lib/services/cache-params.service';
|
|
7
|
+
export * from './lib/services/translate.service';
|
|
8
|
+
export * from './lib/utils/date.util';
|
|
9
|
+
export * from './lib/utils/disclaimer.util';
|
|
10
|
+
export * from './lib/utils/field-validation.util';
|
|
11
|
+
export * from './lib/utils/filter-range.util';
|
|
12
|
+
export * from './lib/utils/generic-functions.utils';
|
|
13
|
+
export * from './lib/utils/file.util';
|
|
14
|
+
export * from './lib/interfaces/totvs-response.interface';
|
|
15
|
+
export * from './lib/interfaces/filter-range.interface';
|
|
16
|
+
export * from './lib/components/totvs-schedule-execution/totvs-schedule-execution.component';
|
|
17
|
+
export * from './lib/components/totvs-schedule-execution/totvs-schedule-execution.model';
|
|
18
|
+
export * from './lib/components/totvs-schedule-execution/totvs-schedule-execution.service';
|
|
19
|
+
export * from './lib/dts-backoffice-util.module';
|
|
20
|
+
export * from './lib/pipes/dts-date-format.pipe';
|