@morozeckiy/dd-lib 0.7.54 → 0.7.62
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/assets/images/svg/award.svg +12 -0
- package/fesm2022/morozeckiy-dd-lib.mjs +149 -13
- package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
- package/lib/core/services/fetcher.service.d.ts +3 -1
- package/lib/lib-svg/lib-svg.component.d.ts +3 -0
- package/lib/lib-svg-viewer/lib-svg-viewer.component.d.ts +28 -0
- package/morozeckiy-dd-lib-0.7.62.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/morozeckiy-dd-lib-0.7.54.tgz +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpClient, HttpContext, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface HttpIResponse<T> {
|
|
@@ -36,10 +37,11 @@ export interface IRequestOptions {
|
|
|
36
37
|
withCredentials?: boolean;
|
|
37
38
|
body?: any | null;
|
|
38
39
|
}
|
|
40
|
+
export declare const API_URL: InjectionToken<string>;
|
|
39
41
|
export declare class FetcherService {
|
|
40
42
|
private http;
|
|
41
43
|
private apiUrl;
|
|
42
|
-
constructor(http: HttpClient, apiUrl
|
|
44
|
+
constructor(http: HttpClient, apiUrl: string);
|
|
43
45
|
private prepareOptions;
|
|
44
46
|
private getUrl;
|
|
45
47
|
get<R>(urlParts: string, options?: IRequestOptions, urlId?: string | number): Observable<R>;
|
|
@@ -21,6 +21,9 @@ export type TSvgColor = 'white' | 'green' | 'black' | 'gray' | 'gold' | 'blue';
|
|
|
21
21
|
|
|
22
22
|
Этот компонент значительно упрощает процесс отображения иконок на веб-странице, позволяя легко управлять их параметрами, такими как размеры и цвет.
|
|
23
23
|
**/
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated использовать lib-svg-viewer
|
|
26
|
+
*/
|
|
24
27
|
export declare class LibSvgComponent implements OnInit {
|
|
25
28
|
private http;
|
|
26
29
|
private rdr;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IColorReplacementRule {
|
|
5
|
+
selector: string;
|
|
6
|
+
color: string;
|
|
7
|
+
attribute?: 'fill' | 'stroke' | 'both';
|
|
8
|
+
}
|
|
9
|
+
export declare class LibSvgViewerComponent implements OnChanges {
|
|
10
|
+
private http;
|
|
11
|
+
private elementRef;
|
|
12
|
+
path: string;
|
|
13
|
+
pack: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
color: string;
|
|
18
|
+
containerClass: string;
|
|
19
|
+
colorRules: IColorReplacementRule[];
|
|
20
|
+
constructor(http: HttpClient, elementRef: ElementRef);
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
private loadSvg;
|
|
23
|
+
private renderSvg;
|
|
24
|
+
private applyColorRules;
|
|
25
|
+
private applyColor;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibSvgViewerComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibSvgViewerComponent, "dd-lib-svg-viewer", never, { "path": { "alias": "path"; "required": false; }; "pack": { "alias": "pack"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "color": { "alias": "color"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "colorRules": { "alias": "colorRules"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './lib/lib-skeleton/lib-skeleton.component';
|
|
|
21
21
|
export * from './lib/lib-sort/lib-sort.component';
|
|
22
22
|
export * from './lib/lib-step/lib-step.component';
|
|
23
23
|
export * from './lib/lib-svg/lib-svg.component';
|
|
24
|
+
export * from './lib/lib-svg-viewer/lib-svg-viewer.component';
|
|
24
25
|
export * from './lib/lib-svg-icon/lib-svg-icon.component';
|
|
25
26
|
export * from './lib/lib-tabs-fragment/lib-tabs-fragment.component';
|
|
26
27
|
export * from './lib/lib-textarea/lib-textarea.component';
|
|
Binary file
|