ngx-techlify-core 18.24.0 → 18.26.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/esm2022/lib/audit-log/audit-log-for-model/audit-log-for-model.component.mjs +2 -2
- package/esm2022/lib/audit-log/audit-log-list/audit-log-list.component.mjs +1 -1
- package/esm2022/lib/custom-icon/custom-icon-registry.service.mjs +23 -0
- package/esm2022/lib/custom-icon/custom-icon.component.mjs +24 -0
- package/esm2022/lib/custom-icon/custom-icon.module.mjs +20 -0
- package/esm2022/lib/custom-icon/custom-icons.registry.mjs +21 -0
- package/esm2022/lib/export-excel/export-excel-button/export-excel-button.component.mjs +55 -10
- package/esm2022/lib/export-excel/export-excel.module.mjs +8 -4
- package/esm2022/lib/pdf-button/pdf-button.component.mjs +31 -0
- package/esm2022/lib/pdf-button/pdf-button.module.mjs +31 -0
- package/esm2022/lib/techlify-feature/techlify-feature-enabled.directive.mjs +10 -51
- package/esm2022/lib/techlify-feature/techlify-feature-listing.component.mjs +21 -46
- package/esm2022/lib/techlify-feature/techlify-feature.service.mjs +30 -13
- package/esm2022/lib/techlify-icon/techlify-icon.component.mjs +50 -0
- package/esm2022/lib/techlify-icon/techlify-icon.module.mjs +24 -0
- package/esm2022/lib/timeline-filter/timeline-filter.component.mjs +2 -2
- package/esm2022/public-api.mjs +11 -1
- package/fesm2022/ngx-techlify-core.mjs +322 -130
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/custom-icon/custom-icon-registry.service.d.ts +10 -0
- package/lib/custom-icon/custom-icon.component.d.ts +11 -0
- package/lib/custom-icon/custom-icon.module.d.ts +8 -0
- package/lib/custom-icon/custom-icons.registry.d.ts +4 -0
- package/lib/export-excel/export-excel-button/export-excel-button.component.d.ts +10 -4
- package/lib/export-excel/export-excel.module.d.ts +2 -1
- package/lib/pdf-button/pdf-button.component.d.ts +10 -0
- package/lib/pdf-button/pdf-button.module.d.ts +10 -0
- package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +3 -10
- package/lib/techlify-feature/techlify-feature-listing.component.d.ts +1 -6
- package/lib/techlify-feature/techlify-feature.service.d.ts +9 -7
- package/lib/techlify-icon/techlify-icon.component.d.ts +12 -0
- package/lib/techlify-icon/techlify-icon.module.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/styles/style.scss +25 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CustomIconRegistryService {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
private icons;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
getIcon(name: string): SafeHtml | undefined;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconRegistryService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomIconRegistryService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CustomIconRegistryService } from './custom-icon-registry.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CustomIconComponent {
|
|
4
|
+
private registry;
|
|
5
|
+
name: string;
|
|
6
|
+
svgIcon: any;
|
|
7
|
+
constructor(registry: CustomIconRegistryService);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomIconComponent, "app-custom-icon", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-icon.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CustomIconModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomIconModule, [typeof i1.CustomIconComponent], [typeof i2.CommonModule], [typeof i1.CustomIconComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomIconModule>;
|
|
8
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ExportExcelButtonComponent implements OnInit {
|
|
4
|
-
|
|
4
|
+
isCSV: boolean;
|
|
5
|
+
fileName: string;
|
|
5
6
|
data: any[];
|
|
7
|
+
tableId: string;
|
|
8
|
+
isExportingToExcel: EventEmitter<boolean>;
|
|
9
|
+
isWorking: boolean;
|
|
6
10
|
constructor();
|
|
7
11
|
ngOnInit(): void;
|
|
8
|
-
|
|
12
|
+
exportToExcel(): void;
|
|
13
|
+
convertJSONToExcel(): void;
|
|
14
|
+
convertTableToExcel(): void;
|
|
9
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExportExcelButtonComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExportExcelButtonComponent, "app-export-excel-button", never, { "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportExcelButtonComponent, "app-export-excel-button", never, { "isCSV": { "alias": "isCSV"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; }, { "isExportingToExcel": "isExportingToExcel"; }, never, never, false, never>;
|
|
11
17
|
}
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./export-excel-button/export-excel-button.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../material.module";
|
|
5
|
+
import * as i4 from "../techlify-icon/techlify-icon.module";
|
|
5
6
|
export declare class ExportExcelModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExportExcelModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ExportExcelModule, [typeof i1.ExportExcelButtonComponent], [typeof i2.CommonModule, typeof i3.MaterialModule], [typeof i1.ExportExcelButtonComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ExportExcelModule, [typeof i1.ExportExcelButtonComponent], [typeof i2.CommonModule, typeof i3.MaterialModule, typeof i4.TechlifyIconModule], [typeof i1.ExportExcelButtonComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<ExportExcelModule>;
|
|
9
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PdfButtonComponent implements OnInit {
|
|
4
|
+
isLoading: EventEmitter<any>;
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
print(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfButtonComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdfButtonComponent, "pdf-button", never, {}, { "isLoading": "isLoading"; }, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pdf-button.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../techlify-icon/techlify-icon.module";
|
|
5
|
+
import * as i4 from "../material.module";
|
|
6
|
+
export declare class PdfButtonModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfButtonModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PdfButtonModule, [typeof i1.PdfButtonComponent], [typeof i2.CommonModule, typeof i3.TechlifyIconModule, typeof i4.MaterialModule], [typeof i1.PdfButtonComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PdfButtonModule>;
|
|
10
|
+
}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ErrorHandlerService } from '../core/error-handler.service';
|
|
3
|
-
import { StorageService } from '../core/storage.service';
|
|
4
2
|
import { TechlifyFeatureService } from './techlify-feature.service';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class TechlifyFeatureEnabledDirective {
|
|
7
5
|
private el;
|
|
8
6
|
private featureService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
features: any;
|
|
12
|
-
localFeatures: any[];
|
|
13
|
-
enabledFeature: any;
|
|
14
|
-
constructor(el: ElementRef, featureService: TechlifyFeatureService, errorHandler: ErrorHandlerService, storage: StorageService);
|
|
7
|
+
feature: any;
|
|
8
|
+
constructor(el: ElementRef, featureService: TechlifyFeatureService);
|
|
15
9
|
ngOnInit(): void;
|
|
16
|
-
getFeatures(): Promise<void>;
|
|
17
10
|
checkForFeatureEnabled(): void;
|
|
18
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyFeatureEnabledDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TechlifyFeatureEnabledDirective, "[techlifyFeatureEnabled]", never, { "
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TechlifyFeatureEnabledDirective, "[techlifyFeatureEnabled]", never, { "feature": { "alias": "techlifyFeatureEnabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
13
|
}
|
|
@@ -2,18 +2,14 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { TechlifyFeatureService } from './techlify-feature.service';
|
|
5
|
-
import { DataManager } from '../core/dataManager.service';
|
|
6
5
|
import { ErrorHandlerService } from '../core/error-handler.service';
|
|
7
6
|
import { AlertService } from '../core/alert.service';
|
|
8
|
-
import { StorageService } from '../core/storage.service';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class TechlifyFeatureListingComponent implements OnInit {
|
|
11
|
-
private dataManager;
|
|
12
9
|
private errorHandler;
|
|
13
10
|
private fb;
|
|
14
11
|
private alertService;
|
|
15
12
|
private dialog;
|
|
16
|
-
private storage;
|
|
17
13
|
private featureService;
|
|
18
14
|
features: any[];
|
|
19
15
|
displayedColumns: string[];
|
|
@@ -23,12 +19,11 @@ export declare class TechlifyFeatureListingComponent implements OnInit {
|
|
|
23
19
|
isWorking: boolean;
|
|
24
20
|
filterFormGroup: UntypedFormGroup;
|
|
25
21
|
featureToggleForm: UntypedFormGroup;
|
|
26
|
-
constructor(
|
|
22
|
+
constructor(errorHandler: ErrorHandlerService, fb: UntypedFormBuilder, alertService: AlertService, dialog: MatDialog, featureService: TechlifyFeatureService);
|
|
27
23
|
ngOnInit(): void;
|
|
28
24
|
listenForChanges(): void;
|
|
29
25
|
loadData(): Promise<void>;
|
|
30
26
|
toggeleFeature(element: any, feature: any): Promise<void>;
|
|
31
|
-
setStorage(features: any): void;
|
|
32
27
|
reload(): void;
|
|
33
28
|
onScroll(): void;
|
|
34
29
|
sortColumn(event: any): void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TechlifyServiceBaseClass } from '../base-model/techlify-service.class';
|
|
2
|
+
import { HttpService } from '../core/http.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TechlifyFeatureService {
|
|
4
|
-
|
|
5
|
-
constructor(
|
|
6
|
-
getFeatures(): any
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export declare class TechlifyFeatureService extends TechlifyServiceBaseClass {
|
|
5
|
+
features: any[];
|
|
6
|
+
constructor(http: HttpService);
|
|
7
|
+
getFeatures(reload?: boolean): import("rxjs").Observable<any>;
|
|
8
|
+
isFeatureExists(feature: any): boolean;
|
|
9
|
+
disable(id: any): import("rxjs").Observable<Object>;
|
|
10
|
+
enable(id: any): import("rxjs").Observable<Object>;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyFeatureService, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<TechlifyFeatureService>;
|
|
11
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TechlifyIconComponent {
|
|
3
|
+
name: string;
|
|
4
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
get iconClass(): string[];
|
|
6
|
+
customIconList: string[];
|
|
7
|
+
isCustomIcon(name: string): boolean;
|
|
8
|
+
private iconMap;
|
|
9
|
+
private sizeMap;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyIconComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TechlifyIconComponent, "app-techlify-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./techlify-icon.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../custom-icon/custom-icon.module";
|
|
5
|
+
export declare class TechlifyIconModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyIconModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TechlifyIconModule, [typeof i1.TechlifyIconComponent], [typeof i2.CommonModule, typeof i3.CustomIconModule], [typeof i1.TechlifyIconComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TechlifyIconModule>;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export * from './lib/techlify-feature/techlify-feature.module';
|
|
|
94
94
|
export * from './lib/techlify-feature/techlify-feature.routing';
|
|
95
95
|
export * from './lib/techlify-feature/techlify-feature-listing.component';
|
|
96
96
|
export * from './lib/techlify-feature/techlify-feature-enabled.directive';
|
|
97
|
+
export * from './lib/techlify-feature/techlify-feature.service';
|
|
97
98
|
export * from './lib/request-helper/request-helper.service';
|
|
98
99
|
export * from './lib/change-password/change-password.module';
|
|
99
100
|
export * from './lib/forgot-password';
|
|
@@ -144,3 +145,9 @@ export * from './lib/user/app-admin-user-view/app-admin-user-view.module';
|
|
|
144
145
|
export * from './lib/user/app-admin-user-view/app-admin-user-view.component';
|
|
145
146
|
export * from './lib/user/user-enable-button-component/user-enable-button.module';
|
|
146
147
|
export * from './lib/user/user-enable-button-component/user-enable-button.component';
|
|
148
|
+
export * from './lib/techlify-icon/techlify-icon.module';
|
|
149
|
+
export * from './lib/techlify-icon/techlify-icon.component';
|
|
150
|
+
export * from './lib/pdf-button/pdf-button.module';
|
|
151
|
+
export * from './lib/pdf-button/pdf-button.component';
|
|
152
|
+
export * from './lib/custom-icon/custom-icon.module';
|
|
153
|
+
export * from './lib/custom-icon/custom-icon.component';
|
package/styles/style.scss
CHANGED
|
@@ -39,4 +39,29 @@
|
|
|
39
39
|
.mat-btn-md {
|
|
40
40
|
height: 25px !important;
|
|
41
41
|
padding: 0 8px !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//Font styles
|
|
45
|
+
.fs-12 {
|
|
46
|
+
font-size: 12px !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fs-16 {
|
|
50
|
+
font-size: 16px !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.fs-13 {
|
|
54
|
+
font-size: 13px !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.fs-18 {
|
|
58
|
+
font-size: 18px !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
//Clickable
|
|
63
|
+
.clickable {
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
42
67
|
}
|