ngx-techlify-core 18.23.1 → 18.25.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.
Files changed (30) hide show
  1. package/esm2022/lib/audit-log/audit-log-for-model/audit-log-for-model.component.mjs +2 -2
  2. package/esm2022/lib/audit-log/audit-log-list/audit-log-list.component.mjs +1 -1
  3. package/esm2022/lib/column-selector/column-selector/column-selector.component.mjs +4 -3
  4. package/esm2022/lib/column-selector/column-selector.module.mjs +8 -4
  5. package/esm2022/lib/export-excel/export-excel-button/export-excel-button.component.mjs +55 -10
  6. package/esm2022/lib/export-excel/export-excel.module.mjs +8 -4
  7. package/esm2022/lib/pdf-button/pdf-button.component.mjs +31 -0
  8. package/esm2022/lib/pdf-button/pdf-button.module.mjs +31 -0
  9. package/esm2022/lib/techlify-feature/techlify-feature-enabled.directive.mjs +10 -51
  10. package/esm2022/lib/techlify-feature/techlify-feature-listing.component.mjs +21 -46
  11. package/esm2022/lib/techlify-feature/techlify-feature.service.mjs +30 -13
  12. package/esm2022/lib/techlify-icon/techlify-icon.component.mjs +43 -0
  13. package/esm2022/lib/techlify-icon/techlify-icon.module.mjs +20 -0
  14. package/esm2022/lib/timeline-filter/timeline-filter.component.mjs +2 -2
  15. package/esm2022/public-api.mjs +8 -1
  16. package/fesm2022/ngx-techlify-core.mjs +241 -132
  17. package/fesm2022/ngx-techlify-core.mjs.map +1 -1
  18. package/lib/column-selector/column-selector.module.d.ts +2 -1
  19. package/lib/export-excel/export-excel-button/export-excel-button.component.d.ts +10 -4
  20. package/lib/export-excel/export-excel.module.d.ts +2 -1
  21. package/lib/pdf-button/pdf-button.component.d.ts +10 -0
  22. package/lib/pdf-button/pdf-button.module.d.ts +10 -0
  23. package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +3 -10
  24. package/lib/techlify-feature/techlify-feature-listing.component.d.ts +1 -6
  25. package/lib/techlify-feature/techlify-feature.service.d.ts +9 -7
  26. package/lib/techlify-icon/techlify-icon.component.d.ts +10 -0
  27. package/lib/techlify-icon/techlify-icon.module.d.ts +8 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +5 -0
  30. package/styles/style.scss +25 -0
@@ -10,8 +10,9 @@ import * as i8 from "@angular/material/menu";
10
10
  import * as i9 from "@angular/material/list";
11
11
  import * as i10 from "@angular/material/input";
12
12
  import * as i11 from "@angular/material/button";
13
+ import * as i12 from "@angular/flex-layout";
13
14
  export declare class ColumnSelectorModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSelectorModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<ColumnSelectorModule, [typeof i1.ColumnSelectorComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatOptionModule, typeof i5.MatSelectModule, typeof i6.ReactiveFormsModule, typeof i7.MatIcon, typeof i8.MatMenuTrigger, typeof i8.MatMenu, typeof i9.MatSelectionList, typeof i6.FormsModule, typeof i9.MatListOption, typeof i10.MatInputModule, typeof i11.MatButtonModule], [typeof i1.ColumnSelectorComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ColumnSelectorModule, [typeof i1.ColumnSelectorComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatOptionModule, typeof i5.MatSelectModule, typeof i6.ReactiveFormsModule, typeof i7.MatIcon, typeof i8.MatMenuTrigger, typeof i8.MatMenu, typeof i9.MatSelectionList, typeof i6.FormsModule, typeof i9.MatListOption, typeof i10.MatInputModule, typeof i11.MatButtonModule, typeof i12.FlexLayoutModule], [typeof i1.ColumnSelectorComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<ColumnSelectorModule>;
17
18
  }
@@ -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
- name: string;
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
- exportExcel(): void;
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, { "name": { "alias": "name"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, 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
- private errorHandler;
10
- private storage;
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, { "enabledFeature": { "alias": "techlifyFeatureEnabled"; "required": false; }; }, {}, never, never, false, 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(dataManager: DataManager, errorHandler: ErrorHandlerService, fb: UntypedFormBuilder, alertService: AlertService, dialog: MatDialog, storage: StorageService, featureService: TechlifyFeatureService);
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 { DataManager } from './../core/dataManager.service';
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
- private dataManager;
5
- constructor(dataManager: DataManager);
6
- getFeatures(): any;
7
- disableFeature(id: any): any;
8
- enableFeature(id: any): any;
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,10 @@
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
+ private iconMap;
7
+ private sizeMap;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyIconComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<TechlifyIconComponent, "app-techlify-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./techlify-icon.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class TechlifyIconModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyIconModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TechlifyIconModule, [typeof i1.TechlifyIconComponent], [typeof i2.CommonModule], [typeof i1.TechlifyIconComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<TechlifyIconModule>;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.23.1",
3
+ "version": "18.25.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",
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,7 @@ 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';
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
  }