atr-components 0.2.417 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/atr-components.module.d.ts +9 -9
  2. package/atr-public-api.d.ts +53 -53
  3. package/core/animations/animations.d.ts +1 -1
  4. package/core/animations/fly-in.d.ts +1 -1
  5. package/core/animations/scroll-screen.d.ts +1 -1
  6. package/core/auth/auth.guard.d.ts +11 -11
  7. package/core/base/atr-common.d.ts +347 -347
  8. package/core/directive/error-img.directive.d.ts +10 -10
  9. package/core/directive/hq-spin.directive.d.ts +13 -13
  10. package/core/directive/role.directive.d.ts +16 -16
  11. package/core/interceptor/base.interceptor.d.ts +17 -17
  12. package/core/ngz-module/cus-zorro-antd.module.d.ts +75 -75
  13. package/core/pipe/china-num.pipe.d.ts +7 -7
  14. package/core/pipe/count.pipe.d.ts +7 -7
  15. package/core/pipe/day.pipe.d.ts +8 -8
  16. package/core/pipe/defaultVal.pipe.d.ts +7 -7
  17. package/core/pipe/dicts.pipe.d.ts +10 -10
  18. package/core/pipe/image-pipe.pipe.d.ts +8 -8
  19. package/core/pipe/is-empty.pipe.d.ts +7 -7
  20. package/core/pipe/is-not-empty.pipe.d.ts +7 -7
  21. package/core/pipe/oss.pipe.d.ts +7 -7
  22. package/core/pipe/ossStatic.pipe.d.ts +7 -7
  23. package/core/pipe/pipe-module.module.d.ts +21 -21
  24. package/core/pipe/remove-html.pipe.d.ts +10 -10
  25. package/core/pipe/safe-compute.pipe.d.ts +7 -7
  26. package/core/pipe/safe-html.pipe.d.ts +10 -10
  27. package/core/pipe/safe-url.pipe.d.ts +10 -10
  28. package/core/routereuse/atr-reuse-strategy.d.ts +19 -19
  29. package/core/services/dict/dict.service.d.ts +20 -20
  30. package/core/services/http.service.d.ts +31 -31
  31. package/core/services/menu.service.d.ts +29 -29
  32. package/core/services/upload-oss.service.d.ts +14 -14
  33. package/core/utils/ToolsUtil.d.ts +180 -180
  34. package/core/utils/localstorage.util.d.ts +15 -15
  35. package/core/utils/sessionstorage.util.d.ts +15 -15
  36. package/{esm2020 → esm2022}/atr-components.mjs +4 -4
  37. package/esm2022/atr-components.module.mjs +36 -0
  38. package/{esm2020 → esm2022}/atr-public-api.mjs +54 -54
  39. package/{esm2020 → esm2022}/core/animations/animations.mjs +9 -9
  40. package/{esm2020 → esm2022}/core/animations/fly-in.mjs +18 -18
  41. package/{esm2020 → esm2022}/core/animations/scroll-screen.mjs +22 -22
  42. package/{esm2020 → esm2022}/core/auth/auth.guard.mjs +37 -37
  43. package/esm2022/core/base/atr-common.mjs +47 -0
  44. package/{esm2020 → esm2022}/core/directive/error-img.directive.mjs +31 -31
  45. package/{esm2020 → esm2022}/core/directive/hq-spin.directive.mjs +48 -48
  46. package/esm2022/core/directive/role.directive.mjs +69 -0
  47. package/{esm2020 → esm2022}/core/interceptor/base.interceptor.mjs +165 -165
  48. package/{esm2020 → esm2022}/core/ngz-module/cus-zorro-antd.module.mjs +292 -292
  49. package/{esm2020 → esm2022}/core/pipe/china-num.pipe.mjs +36 -36
  50. package/{esm2020 → esm2022}/core/pipe/count.pipe.mjs +34 -34
  51. package/{esm2020 → esm2022}/core/pipe/day.pipe.mjs +24 -24
  52. package/{esm2020 → esm2022}/core/pipe/defaultVal.pipe.mjs +23 -23
  53. package/{esm2020 → esm2022}/core/pipe/dicts.pipe.mjs +28 -28
  54. package/{esm2020 → esm2022}/core/pipe/image-pipe.pipe.mjs +17 -17
  55. package/{esm2020 → esm2022}/core/pipe/is-empty.pipe.mjs +20 -20
  56. package/{esm2020 → esm2022}/core/pipe/is-not-empty.pipe.mjs +17 -17
  57. package/{esm2020 → esm2022}/core/pipe/oss.pipe.mjs +17 -17
  58. package/{esm2020 → esm2022}/core/pipe/ossStatic.pipe.mjs +17 -17
  59. package/esm2022/core/pipe/pipe-module.module.mjs +38 -0
  60. package/{esm2020 → esm2022}/core/pipe/remove-html.pipe.mjs +21 -21
  61. package/{esm2020 → esm2022}/core/pipe/safe-compute.pipe.mjs +23 -23
  62. package/{esm2020 → esm2022}/core/pipe/safe-html.pipe.mjs +20 -20
  63. package/{esm2020 → esm2022}/core/pipe/safe-url.pipe.mjs +20 -20
  64. package/esm2022/core/routereuse/atr-reuse-strategy.mjs +79 -0
  65. package/esm2022/core/services/dict/dict.service.mjs +152 -0
  66. package/{esm2020 → esm2022}/core/services/http.service.mjs +306 -306
  67. package/{esm2020 → esm2022}/core/services/menu.service.mjs +130 -130
  68. package/{esm2020 → esm2022}/core/services/upload-oss.service.mjs +74 -74
  69. package/esm2022/core/utils/ToolsUtil.mjs +622 -0
  70. package/{esm2020 → esm2022}/core/utils/localstorage.util.mjs +94 -94
  71. package/{esm2020 → esm2022}/core/utils/sessionstorage.util.mjs +72 -72
  72. package/{esm2020 → esm2022}/lib/hello/hello.component.mjs +15 -15
  73. package/esm2022/lib/hello/hello.module.mjs +20 -0
  74. package/esm2022/lib/shared/atr-shared.module.mjs +204 -0
  75. package/esm2022/lib/shared/echarts/echarts.component.mjs +77 -0
  76. package/esm2022/lib/shared/form/form.component.mjs +574 -0
  77. package/esm2022/lib/shared/img-canvas/img-canvas.component.mjs +132 -0
  78. package/esm2022/lib/shared/local-upload/local-upload.component.mjs +68 -0
  79. package/esm2022/lib/shared/quill-editor/quill-editor.component.mjs +248 -0
  80. package/esm2022/lib/shared/select-icons/select-icons.component.mjs +90 -0
  81. package/{esm2020 → esm2022}/lib/shared/select-tree/select-tree.component.mjs +55 -55
  82. package/{esm2020 → esm2022}/lib/shared/service/busi.service.mjs +69 -69
  83. package/{esm2020 → esm2022}/lib/shared/share.service.mjs +107 -107
  84. package/esm2022/lib/shared/table/table-form-item/table-form-item.component.mjs +96 -0
  85. package/esm2022/lib/shared/table/table-td/table-td.component.mjs +165 -0
  86. package/esm2022/lib/shared/table/table.component.mjs +749 -0
  87. package/{esm2020 → esm2022}/lib/shared/upload/upload.component.mjs +274 -274
  88. package/{esm2020 → esm2022}/lib/shared/validators/atr-validtors.mjs +8 -8
  89. package/esm2022/lib/shared/video/video.component.mjs +16 -0
  90. package/esm2022/lib/shared/view-form/view-form.component.mjs +181 -0
  91. package/{fesm2020 → fesm2022}/atr-components.mjs +5311 -5312
  92. package/fesm2022/atr-components.mjs.map +1 -0
  93. package/{atr-components.d.ts → index.d.ts} +5 -5
  94. package/lib/hello/hello.component.d.ts +8 -8
  95. package/lib/hello/hello.module.d.ts +8 -8
  96. package/lib/shared/atr-shared.module.d.ts +36 -33
  97. package/lib/shared/echarts/echarts.component.d.ts +34 -34
  98. package/lib/shared/form/form.component.d.ts +45 -45
  99. package/lib/shared/img-canvas/img-canvas.component.d.ts +28 -28
  100. package/lib/shared/local-upload/local-upload.component.d.ts +22 -22
  101. package/lib/shared/quill-editor/quill-editor.component.d.ts +45 -45
  102. package/lib/shared/select-icons/select-icons.component.d.ts +24 -24
  103. package/lib/shared/select-tree/select-tree.component.d.ts +23 -23
  104. package/lib/shared/service/busi.service.d.ts +20 -20
  105. package/lib/shared/share.service.d.ts +14 -14
  106. package/lib/shared/table/table-form-item/table-form-item.component.d.ts +25 -25
  107. package/lib/shared/table/table-td/table-td.component.d.ts +26 -26
  108. package/lib/shared/table/table.component.d.ts +94 -94
  109. package/lib/shared/upload/upload.component.d.ts +53 -53
  110. package/lib/shared/validators/atr-validtors.d.ts +2 -2
  111. package/lib/shared/video/video.component.d.ts +7 -7
  112. package/lib/shared/view-form/view-form.component.d.ts +28 -28
  113. package/package.json +14 -22
  114. package/esm2020/atr-components.module.mjs +0 -38
  115. package/esm2020/core/base/atr-common.mjs +0 -47
  116. package/esm2020/core/directive/role.directive.mjs +0 -69
  117. package/esm2020/core/pipe/pipe-module.module.mjs +0 -40
  118. package/esm2020/core/routereuse/atr-reuse-strategy.mjs +0 -79
  119. package/esm2020/core/services/dict/dict.service.mjs +0 -152
  120. package/esm2020/core/utils/ToolsUtil.mjs +0 -622
  121. package/esm2020/lib/hello/hello.module.mjs +0 -22
  122. package/esm2020/lib/shared/atr-shared.module.mjs +0 -199
  123. package/esm2020/lib/shared/echarts/echarts.component.mjs +0 -77
  124. package/esm2020/lib/shared/form/form.component.mjs +0 -574
  125. package/esm2020/lib/shared/img-canvas/img-canvas.component.mjs +0 -132
  126. package/esm2020/lib/shared/local-upload/local-upload.component.mjs +0 -68
  127. package/esm2020/lib/shared/quill-editor/quill-editor.component.mjs +0 -248
  128. package/esm2020/lib/shared/select-icons/select-icons.component.mjs +0 -90
  129. package/esm2020/lib/shared/table/table-form-item/table-form-item.component.mjs +0 -96
  130. package/esm2020/lib/shared/table/table-td/table-td.component.mjs +0 -165
  131. package/esm2020/lib/shared/table/table.component.mjs +0 -749
  132. package/esm2020/lib/shared/video/video.component.mjs +0 -15
  133. package/esm2020/lib/shared/view-form/view-form.component.mjs +0 -181
  134. package/fesm2015/atr-components.mjs +0 -5522
  135. package/fesm2015/atr-components.mjs.map +0 -1
  136. package/fesm2020/atr-components.mjs.map +0 -1
@@ -1,20 +1,20 @@
1
- import { HttpService } from '../http.service';
2
- import { Observable } from 'rxjs';
3
- import { DictGroup } from '../../base/atr-common';
4
- import * as i0 from "@angular/core";
5
- export declare class DictService {
6
- private httpService;
7
- static await_Data: {};
8
- constructor(httpService: HttpService);
9
- getCodeName(code: string, value: string): any;
10
- getCodeNameSync(keys: any, code: string, selectUrl?: any, splitKey?: string): Promise<unknown>;
11
- getByCode(code: string, selectUrl?: any): DictGroup;
12
- private getDictByCodeSync;
13
- getDicBycodeBase(code: any, selectUrl?: any): Observable<any>;
14
- getCodeNamePromise(code: string, selectUrl?: any): Promise<unknown>;
15
- getDictBycode(code: string, selectUrl?: any): Observable<DictGroup>;
16
- modifyByCode(code: string): void;
17
- reset(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DictService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<DictService>;
20
- }
1
+ import { HttpService } from '../http.service';
2
+ import { Observable } from 'rxjs';
3
+ import { DictGroup } from '../../base/atr-common';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DictService {
6
+ private httpService;
7
+ static await_Data: {};
8
+ constructor(httpService: HttpService);
9
+ getCodeName(code: string, value: string): any;
10
+ getCodeNameSync(keys: any, code: string, selectUrl?: any, splitKey?: string): Promise<unknown>;
11
+ getByCode(code: string, selectUrl?: any): DictGroup;
12
+ private getDictByCodeSync;
13
+ getDicBycodeBase(code: any, selectUrl?: any): Observable<any>;
14
+ getCodeNamePromise(code: string, selectUrl?: any): Promise<unknown>;
15
+ getDictBycode(code: string, selectUrl?: any): Observable<DictGroup>;
16
+ modifyByCode(code: string): void;
17
+ reset(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<DictService>;
20
+ }
@@ -1,31 +1,31 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { Observable } from 'rxjs';
3
- import { HttpOptions } from '../base/atr-common';
4
- import * as i0 from "@angular/core";
5
- export declare class HttpService {
6
- private httpClient;
7
- constructor(httpClient: HttpClient);
8
- getNormalHeader(_headers: HttpHeaders): HttpHeaders;
9
- /**
10
- *
11
- * @param url
12
- * @param params
13
- */
14
- post: (url: string, params?: any, options?: HttpOptions | undefined, headers?: HttpHeaders | undefined, noTip?: boolean) => Observable<any>;
15
- postPromAll(urls: {
16
- url: string;
17
- params?: {};
18
- }[], options?: HttpOptions, headers?: HttpHeaders, noTip?: boolean): Promise<any[]>;
19
- getOssPre(): Observable<any>;
20
- postProm(url: string, params?: any, options?: HttpOptions, headers?: HttpHeaders, noTip?: boolean): Promise<Object | undefined>;
21
- postBody: (url: string, params?: any, options?: HttpOptions | undefined, headers?: {} | undefined, noTip?: boolean) => Observable<any>;
22
- getDefaultHeader(_headers: HttpHeaders): HttpHeaders;
23
- get: (url: string, params?: {} | undefined, options?: HttpOptions | undefined, noTip?: boolean) => Observable<any>;
24
- upload: (method: any, url: any, formData: FormData, progress: any) => Observable<any>;
25
- private transformString;
26
- private parseObj;
27
- getOss: (url: string, params?: {} | undefined, responseType?: any, noError?: boolean) => Observable<any>;
28
- downloadXls(url: string, params?: {}): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
31
- }
1
+ import { HttpClient, HttpHeaders } from "@angular/common/http";
2
+ import { Observable } from 'rxjs';
3
+ import { HttpOptions } from '../base/atr-common';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HttpService {
6
+ private httpClient;
7
+ constructor(httpClient: HttpClient);
8
+ getNormalHeader(_headers: HttpHeaders): HttpHeaders;
9
+ /**
10
+ *
11
+ * @param url
12
+ * @param params
13
+ */
14
+ post: (url: string, params?: any, options?: HttpOptions, headers?: HttpHeaders, noTip?: boolean) => Observable<any>;
15
+ postPromAll(urls: {
16
+ url: string;
17
+ params?: {};
18
+ }[], options?: HttpOptions, headers?: HttpHeaders, noTip?: boolean): Promise<any[]>;
19
+ getOssPre(): Observable<any>;
20
+ postProm(url: string, params?: any, options?: HttpOptions, headers?: HttpHeaders, noTip?: boolean): Promise<Object | undefined>;
21
+ postBody: (url: string, params?: any, options?: HttpOptions, headers?: {}, noTip?: boolean) => Observable<any>;
22
+ getDefaultHeader(_headers: HttpHeaders): HttpHeaders;
23
+ get: (url: string, params?: {}, options?: HttpOptions, noTip?: boolean) => Observable<any>;
24
+ upload: (method: any, url: any, formData: FormData, progress: any) => Observable<any>;
25
+ private transformString;
26
+ private parseObj;
27
+ getOss: (url: string, params?: {}, responseType?: any, noError?: boolean) => Observable<any>;
28
+ downloadXls(url: string, params?: any): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
31
+ }
@@ -1,29 +1,29 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { Menu } from '../base/atr-common';
4
- import { HttpService } from "./http.service";
5
- import * as i0 from "@angular/core";
6
- export declare class MenuService {
7
- private httpService;
8
- private data;
9
- static menuChange: EventEmitter<Menu[]>;
10
- static urlChange: EventEmitter<any>;
11
- private isLoadMenu;
12
- constructor(httpService: HttpService);
13
- gotoUrl(routeParam: {
14
- url: string;
15
- paramUrl: string;
16
- title?: string;
17
- }): void;
18
- getUrlChange(): any;
19
- getCurMenu(url: string): Observable<Menu>;
20
- getMenuByUrl(menus: any, url: string): Menu;
21
- loadMenus(): Observable<any>;
22
- isLoadUrlEqMenu(menuUrl: string, url: string): boolean;
23
- /**
24
- * 清空菜单
25
- */
26
- clear(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
29
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { Menu } from '../base/atr-common';
4
+ import { HttpService } from "./http.service";
5
+ import * as i0 from "@angular/core";
6
+ export declare class MenuService {
7
+ private httpService;
8
+ private data;
9
+ static menuChange: EventEmitter<Menu[]>;
10
+ static urlChange: EventEmitter<any>;
11
+ private isLoadMenu;
12
+ constructor(httpService: HttpService);
13
+ gotoUrl(routeParam: {
14
+ url: string;
15
+ paramUrl: string;
16
+ title?: string;
17
+ }): void;
18
+ getUrlChange(): any;
19
+ getCurMenu(url: string): Observable<Menu>;
20
+ getMenuByUrl(menus: any, url: string): Menu;
21
+ loadMenus(): Observable<any>;
22
+ isLoadUrlEqMenu(menuUrl: string, url: string): boolean;
23
+ /**
24
+ * 清空菜单
25
+ */
26
+ clear(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
29
+ }
@@ -1,14 +1,14 @@
1
- import { HttpService } from './http.service';
2
- import { Observable } from 'rxjs';
3
- import { HttpClient } from '@angular/common/http';
4
- import * as i0 from "@angular/core";
5
- export declare class UploadOssService {
6
- private httpService;
7
- private httpClient;
8
- uploadData: any;
9
- constructor(httpService: HttpService, httpClient: HttpClient);
10
- uploadOss: (file: any, dir?: string, fullUrl?: boolean) => Observable<any>;
11
- customReq: (file: File, fullUrl?: boolean, uploadData?: any) => Observable<any>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<UploadOssService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<UploadOssService>;
14
- }
1
+ import { HttpService } from './http.service';
2
+ import { Observable } from 'rxjs';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class UploadOssService {
6
+ private httpService;
7
+ private httpClient;
8
+ uploadData: any;
9
+ constructor(httpService: HttpService, httpClient: HttpClient);
10
+ uploadOss: (file: any, dir?: string, fullUrl?: boolean) => Observable<any>;
11
+ customReq: (file: File, fullUrl?: boolean, uploadData?: any) => Observable<any>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadOssService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<UploadOssService>;
14
+ }
@@ -1,180 +1,180 @@
1
- import { json, AtrFormOpt } from '../base/atr-common';
2
- import { SimpleChange } from '@angular/core';
3
- export declare class ToolsUtil {
4
- static ossPrefix: string;
5
- static getOrgCode: () => string;
6
- static getUlid(): string;
7
- static isBase64(string: any): boolean;
8
- static dataURItoBlob(code: any): Blob;
9
- static isNull(val: any): boolean;
10
- static getControlsConfig(dataFrom: any, requiredRule: string[]): any;
11
- static httpSucces(res: any): boolean;
12
- /**
13
- * 计算两点坐标距离
14
- * @param point1
15
- * @param point2
16
- */
17
- static getDistance(point1: {
18
- x: any;
19
- y: any;
20
- }, point2: {
21
- x: any;
22
- y: any;
23
- }): number;
24
- /**
25
- * 判断线段是否相交,相交返回交点坐标
26
- * @param p1
27
- * @param p2
28
- */
29
- static checkIntersect(lineArr1: {
30
- x: any;
31
- y: any;
32
- }[], lineArr2: {
33
- x: any;
34
- y: any;
35
- }[]): false | {
36
- x: number;
37
- y: number;
38
- };
39
- /**
40
- *
41
- * @param num1
42
- * @param num2
43
- * @param error 误差
44
- */
45
- static equalNum(num1: any, num2: any, error?: number): boolean;
46
- /**
47
- * 坐标对比
48
- * @param point1
49
- * @param point2
50
- * @param error
51
- */
52
- static equalPoint(point1: {
53
- x: any;
54
- y: any;
55
- }, point2: {
56
- x: any;
57
- y: any;
58
- }, error?: number): boolean;
59
- /**
60
- *
61
- * @param startP
62
- * @param endP
63
- * @param a
64
- * @param error 误差
65
- */
66
- static checkInLine(startP: any, endP: any, a: any, error?: number): boolean;
67
- /**
68
- * 点斜式
69
- */
70
- static getSlopePoint(startP: any, endP: any): {
71
- k: number;
72
- x: any;
73
- b?: undefined;
74
- } | {
75
- k: number;
76
- b: number;
77
- x?: undefined;
78
- };
79
- /**
80
- *判断点是否在坐标区域内
81
- * @param p 判定的点
82
- * @param pointsArr
83
- */
84
- static judgeInRec(p: {
85
- x1?: any;
86
- y1?: any;
87
- x?: any;
88
- y?: any;
89
- }, pointsArr: {
90
- x1?: any;
91
- y1?: any;
92
- x?: any;
93
- y?: any;
94
- }[]): boolean;
95
- static diffInput(chng: SimpleChange, action: () => void): void;
96
- static deepCopy(obj: any): any;
97
- static diffInputs(chng: SimpleChange[], action: () => void): void;
98
- static dataURLtoBlob(dataurl: any): Blob;
99
- static dataURLtoFile(dataurl: any, filename?: string): File;
100
- static getYesterday(day: Date): Date;
101
- static getTomorrowday(day: Date): Date;
102
- static getNextMonth(day: Date): Date;
103
- static getVideoCover(url: string): string;
104
- static fistDayOfMonth(day: Date): Date;
105
- static lastDayOfMonth(day: Date): Date;
106
- static getRandomFileName: () => string;
107
- static getFileExt: (fileName: string) => string;
108
- static getHttpOptions(): any;
109
- static resetFormValue(opt: AtrFormOpt, json: json): AtrFormOpt;
110
- static getFormatDate(date: Date): string;
111
- static getFormatDateFull(date: Date): string;
112
- static getFormatDateWithoutS(date: Date): string;
113
- static getFormatDateHour(date: Date): string;
114
- static getOssUrl(url: string, needTime?: boolean): string;
115
- static getStaticOssUrl(url: string): string;
116
- static removeHtml(value: any): any;
117
- static mul(...numbers: any): number | undefined;
118
- static getDigit(...numbers: any[]): number;
119
- static downloadImg(data: any, fileName?: string, endpoint?: string): void;
120
- static downloadXls(url: string, params?: any): void;
121
- static getImg(url: string, param?: any): Promise<unknown>;
122
- static pixelToNum(width: any): number;
123
- static allEqual: (...array: any[]) => boolean;
124
- /**
125
- * array所有参数满足fn函数返回true
126
- * all(x => x > 1,1,2,3); // true
127
- * @param callback
128
- * @param array
129
- */
130
- static satisfiedFn: (callback: (...args: any[]) => boolean, ...array: any[]) => boolean;
131
- static notEmpty(...arr: any[]): boolean;
132
- static hasEmpty(...arr: any[]): boolean;
133
- static allEmpty(...arr: any[]): boolean;
134
- static isArray(obj: any): boolean;
135
- static isEmpty(obj: any): boolean;
136
- static encodeValue(params: any): any;
137
- static windowHeight(): number;
138
- static windowWidth(): number;
139
- static modaleStyle(): {
140
- maxHeight: string;
141
- 'overflow-y': string;
142
- };
143
- static getLength(pointA: {
144
- x1: any;
145
- y1: any;
146
- x: any;
147
- y: any;
148
- }, pointB: {
149
- x: any;
150
- y: any;
151
- x1: any;
152
- y1: any;
153
- }): number;
154
- static getRotateNum(pointB: {
155
- x1: any;
156
- y1: any;
157
- x: any;
158
- y: any;
159
- }, pointC: {
160
- x1: any;
161
- y1: any;
162
- x: any;
163
- y: any;
164
- }, pointA: {
165
- x1: any;
166
- y1: any;
167
- x: any;
168
- y: any;
169
- }): number;
170
- static getRotatePoint(p: {
171
- x1: any;
172
- y1: any;
173
- }, center: {
174
- x1: any;
175
- y1: any;
176
- }, rotate: any): {
177
- x1: number;
178
- y1: number;
179
- };
180
- }
1
+ import { json, AtrFormOpt } from '../base/atr-common';
2
+ import { SimpleChange } from '@angular/core';
3
+ export declare class ToolsUtil {
4
+ static ossPrefix: string;
5
+ static getOrgCode: () => string;
6
+ static getUlid(): string;
7
+ static isBase64(string: any): boolean;
8
+ static dataURItoBlob(code: any): Blob;
9
+ static isNull(val: any): boolean;
10
+ static getControlsConfig(dataFrom: any, requiredRule: string[]): any;
11
+ static httpSucces(res: any): boolean;
12
+ /**
13
+ * 计算两点坐标距离
14
+ * @param point1
15
+ * @param point2
16
+ */
17
+ static getDistance(point1: {
18
+ x: any;
19
+ y: any;
20
+ }, point2: {
21
+ x: any;
22
+ y: any;
23
+ }): number;
24
+ /**
25
+ * 判断线段是否相交,相交返回交点坐标
26
+ * @param p1
27
+ * @param p2
28
+ */
29
+ static checkIntersect(lineArr1: {
30
+ x: any;
31
+ y: any;
32
+ }[], lineArr2: {
33
+ x: any;
34
+ y: any;
35
+ }[]): false | {
36
+ x: number;
37
+ y: number;
38
+ };
39
+ /**
40
+ *
41
+ * @param num1
42
+ * @param num2
43
+ * @param error 误差
44
+ */
45
+ static equalNum(num1: any, num2: any, error?: number): boolean;
46
+ /**
47
+ * 坐标对比
48
+ * @param point1
49
+ * @param point2
50
+ * @param error
51
+ */
52
+ static equalPoint(point1: {
53
+ x: any;
54
+ y: any;
55
+ }, point2: {
56
+ x: any;
57
+ y: any;
58
+ }, error?: number): boolean;
59
+ /**
60
+ *
61
+ * @param startP
62
+ * @param endP
63
+ * @param a
64
+ * @param error 误差
65
+ */
66
+ static checkInLine(startP: any, endP: any, a: any, error?: number): boolean;
67
+ /**
68
+ * 点斜式
69
+ */
70
+ static getSlopePoint(startP: any, endP: any): {
71
+ k: number;
72
+ x: any;
73
+ b?: undefined;
74
+ } | {
75
+ k: number;
76
+ b: number;
77
+ x?: undefined;
78
+ };
79
+ /**
80
+ *判断点是否在坐标区域内
81
+ * @param p 判定的点
82
+ * @param pointsArr
83
+ */
84
+ static judgeInRec(p: {
85
+ x1?: any;
86
+ y1?: any;
87
+ x?: any;
88
+ y?: any;
89
+ }, pointsArr: {
90
+ x1?: any;
91
+ y1?: any;
92
+ x?: any;
93
+ y?: any;
94
+ }[]): boolean;
95
+ static diffInput(chng: SimpleChange, action: () => void): void;
96
+ static deepCopy(obj: any): any;
97
+ static diffInputs(chng: SimpleChange[], action: () => void): void;
98
+ static dataURLtoBlob(dataurl: any): Blob;
99
+ static dataURLtoFile(dataurl: any, filename?: string): File;
100
+ static getYesterday(day: Date): Date;
101
+ static getTomorrowday(day: Date): Date;
102
+ static getNextMonth(day: Date): Date;
103
+ static getVideoCover(url: string): string;
104
+ static fistDayOfMonth(day: Date): Date;
105
+ static lastDayOfMonth(day: Date): Date;
106
+ static getRandomFileName: () => string;
107
+ static getFileExt: (fileName: string) => string;
108
+ static getHttpOptions(): any;
109
+ static resetFormValue(opt: AtrFormOpt, json: json): AtrFormOpt;
110
+ static getFormatDate(date: Date): string;
111
+ static getFormatDateFull(date: Date): string;
112
+ static getFormatDateWithoutS(date: Date): string;
113
+ static getFormatDateHour(date: Date): string;
114
+ static getOssUrl(url: string, needTime?: boolean): string;
115
+ static getStaticOssUrl(url: string): string;
116
+ static removeHtml(value: any): any;
117
+ static mul(...numbers: any): number | undefined;
118
+ static getDigit(...numbers: any[]): number;
119
+ static downloadImg(data: any, fileName?: string, endpoint?: string): void;
120
+ static downloadXls(url: string, params?: any): void;
121
+ static getImg(url: string, param?: any): Promise<unknown>;
122
+ static pixelToNum(width: any): number;
123
+ static allEqual: (...array: any[]) => boolean;
124
+ /**
125
+ * array所有参数满足fn函数返回true
126
+ * all(x => x > 1,1,2,3); // true
127
+ * @param callback
128
+ * @param array
129
+ */
130
+ static satisfiedFn: (callback: (...args: any[]) => boolean, ...array: any[]) => boolean;
131
+ static notEmpty(...arr: any[]): boolean;
132
+ static hasEmpty(...arr: any[]): boolean;
133
+ static allEmpty(...arr: any[]): boolean;
134
+ static isArray(obj: any): boolean;
135
+ static isEmpty(obj: any): boolean;
136
+ static encodeValue(params: any): any;
137
+ static windowHeight(): number;
138
+ static windowWidth(): number;
139
+ static modaleStyle(): {
140
+ maxHeight: string;
141
+ 'overflow-y': string;
142
+ };
143
+ static getLength(pointA: {
144
+ x1: any;
145
+ y1: any;
146
+ x: any;
147
+ y: any;
148
+ }, pointB: {
149
+ x: any;
150
+ y: any;
151
+ x1: any;
152
+ y1: any;
153
+ }): number;
154
+ static getRotateNum(pointB: {
155
+ x1: any;
156
+ y1: any;
157
+ x: any;
158
+ y: any;
159
+ }, pointC: {
160
+ x1: any;
161
+ y1: any;
162
+ x: any;
163
+ y: any;
164
+ }, pointA: {
165
+ x1: any;
166
+ y1: any;
167
+ x: any;
168
+ y: any;
169
+ }): number;
170
+ static getRotatePoint(p: {
171
+ x1: any;
172
+ y1: any;
173
+ }, center: {
174
+ x1: any;
175
+ y1: any;
176
+ }, rotate: any): {
177
+ x1: number;
178
+ y1: number;
179
+ };
180
+ }
@@ -1,15 +1,15 @@
1
- import { json } from '../base/atr-common';
2
- export declare class LocalStorageUtil {
3
- static getProvinceByValue(province: string): any;
4
- static getRegion(): any;
5
- static putRegion(disList: any[]): void;
6
- static putUser(userInfo: json): void;
7
- static putLogin(loginInfo: json): void;
8
- static getLogin(): any;
9
- static getUser(): any;
10
- static getUserToken(): string;
11
- static getUserId(): string;
12
- static removeUser(): void;
13
- static clearUs: () => void;
14
- static getStorageKey(key: string): string;
15
- }
1
+ import { json } from '../base/atr-common';
2
+ export declare class LocalStorageUtil {
3
+ static getProvinceByValue(province: string): any;
4
+ static getRegion(): any;
5
+ static putRegion(disList: any[]): void;
6
+ static putUser(userInfo: json): void;
7
+ static putLogin(loginInfo: json): void;
8
+ static getLogin(): any;
9
+ static getUser(): any;
10
+ static getUserToken(): string;
11
+ static getUserId(): string;
12
+ static removeUser(): void;
13
+ static clearUs: () => void;
14
+ static getStorageKey(key: string): string;
15
+ }
@@ -1,15 +1,15 @@
1
- import { DictGroup } from '../base/atr-common';
2
- export declare class SessionStorageUtil {
3
- static getStorageKey(key: string): string;
4
- static putDictGroup(dictGroup: DictGroup): void;
5
- static getDictGroupByCode(code: string): DictGroup | any;
6
- static setImg(url: string, dataUrl: string): void;
7
- static getImg(url: string): {
8
- img: any;
9
- width: any;
10
- height: any;
11
- };
12
- static resetDict(): void;
13
- static put(key: any, value: any): void;
14
- static get(key: any): any;
15
- }
1
+ import { DictGroup } from '../base/atr-common';
2
+ export declare class SessionStorageUtil {
3
+ static getStorageKey(key: string): string;
4
+ static putDictGroup(dictGroup: DictGroup): void;
5
+ static getDictGroupByCode(code: string): DictGroup | any;
6
+ static setImg(url: string, dataUrl: string): void;
7
+ static getImg(url: string): {
8
+ img: any;
9
+ width: any;
10
+ height: any;
11
+ };
12
+ static resetDict(): void;
13
+ static put(key: any, value: any): void;
14
+ static get(key: any): any;
15
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './atr-public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './atr-public-api';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRyLWNvbXBvbmVudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9hdHItY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vYXRyLXB1YmxpYy1hcGknO1xuIl19