ngx-techlify-core 11.3.6 → 11.4.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 (45) hide show
  1. package/bundles/ngx-techlify-core.umd.js +268 -96
  2. package/bundles/ngx-techlify-core.umd.js.map +1 -1
  3. package/bundles/ngx-techlify-core.umd.min.js +2 -2
  4. package/bundles/ngx-techlify-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/audit-log/audit-log-view/audit-log-view.component.js +7 -9
  6. package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.component.js +7 -9
  7. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.js +2 -2
  8. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.js +2 -2
  9. package/esm2015/lib/login-history-for-user/login-history-for-user.component.js +11 -2
  10. package/esm2015/lib/searchable-selector/searchable-selector.component.js +34 -4
  11. package/esm2015/lib/techlify-feature/on-off-switch/on-off-switch.component.js +27 -0
  12. package/esm2015/lib/techlify-feature/techlify-feature-enabled.directive.js +78 -0
  13. package/esm2015/lib/techlify-feature/techlify-feature-listing.component.js +177 -0
  14. package/esm2015/lib/techlify-feature/techlify-feature.module.js +30 -0
  15. package/esm2015/lib/techlify-feature/techlify-feature.routing.js +12 -0
  16. package/esm2015/lib/techlify-feature/techlify-feature.service.js +28 -0
  17. package/esm2015/lib/timeline-filter/calculate-timeline.js +2 -2
  18. package/esm2015/lib/timeline-filter/timeline-filter.component.js +145 -16
  19. package/esm2015/ngx-techlify-core.js +6 -3
  20. package/esm2015/public-api.js +5 -6
  21. package/fesm2015/ngx-techlify-core.js +221 -61
  22. package/fesm2015/ngx-techlify-core.js.map +1 -1
  23. package/lib/login-history-for-user/login-history-for-user.component.d.ts +2 -0
  24. package/lib/searchable-selector/searchable-selector.component.d.ts +5 -0
  25. package/lib/{company-feature → techlify-feature}/on-off-switch/on-off-switch.component.d.ts +0 -0
  26. package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +17 -0
  27. package/lib/{company-feature/company-feature.component.d.ts → techlify-feature/techlify-feature-listing.component.d.ts} +7 -4
  28. package/lib/techlify-feature/techlify-feature.module.d.ts +2 -0
  29. package/lib/techlify-feature/techlify-feature.routing.d.ts +2 -0
  30. package/lib/{company-feature/company-feature.service.d.ts → techlify-feature/techlify-feature.service.d.ts} +1 -1
  31. package/lib/timeline-filter/calculate-timeline.d.ts +5 -0
  32. package/lib/timeline-filter/timeline-filter.component.d.ts +47 -6
  33. package/ngx-techlify-core.d.ts +5 -2
  34. package/ngx-techlify-core.metadata.json +1 -1
  35. package/package.json +1 -1
  36. package/public-api.d.ts +4 -5
  37. package/esm2015/lib/company-feature/company-feature.component.js +0 -174
  38. package/esm2015/lib/company-feature/company-feature.module.js +0 -30
  39. package/esm2015/lib/company-feature/company-feature.routing.js +0 -12
  40. package/esm2015/lib/company-feature/company-feature.service.js +0 -28
  41. package/esm2015/lib/company-feature/ngx-feature-enabled.directive.js +0 -77
  42. package/esm2015/lib/company-feature/on-off-switch/on-off-switch.component.js +0 -27
  43. package/lib/company-feature/company-feature.module.d.ts +0 -2
  44. package/lib/company-feature/company-feature.routing.d.ts +0 -2
  45. package/lib/company-feature/ngx-feature-enabled.directive.d.ts +0 -16
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { PageEvent } from '../data-table/data-table.model';
4
4
  import { HttpService } from '../core/http.service';
5
+ import { TimelineValue } from '../timeline-filter';
5
6
  export declare class LoginHistoryForUserComponent implements OnInit {
6
7
  private http;
7
8
  private fb;
@@ -13,6 +14,7 @@ export declare class LoginHistoryForUserComponent implements OnInit {
13
14
  userId: any;
14
15
  constructor(http: HttpService, fb: FormBuilder);
15
16
  ngOnInit(): void;
17
+ onTimelineChange(range: TimelineValue): void;
16
18
  initializeData(): void;
17
19
  filterChange(event: any): void;
18
20
  onScroll(): void;
@@ -27,6 +27,9 @@ export declare class SearchableSelectorComponent implements ControlValueAccessor
27
27
  searchField: string;
28
28
  itemComponent: ComponentType<unknown> | TemplateRef<unknown>;
29
29
  items: any[];
30
+ cache: boolean;
31
+ perPage: number;
32
+ inDataSearch: boolean;
30
33
  selectionChange: EventEmitter<any>;
31
34
  itemsChange: EventEmitter<any>;
32
35
  isLoading: boolean;
@@ -40,6 +43,7 @@ export declare class SearchableSelectorComponent implements ControlValueAccessor
40
43
  id: string;
41
44
  describedBy: string;
42
45
  filters: any;
46
+ cachedItems: any[];
43
47
  get empty(): boolean;
44
48
  get shouldLabelFloat(): boolean;
45
49
  get required(): boolean;
@@ -69,6 +73,7 @@ export declare class SearchableSelectorComponent implements ControlValueAccessor
69
73
  onScroll(): void;
70
74
  reloadData(): void;
71
75
  search(event: any): void;
76
+ filterItems(event: string): void;
72
77
  addItem(event: any): void;
73
78
  editItem(event: any): void;
74
79
  ngOnDestroy(): void;
@@ -0,0 +1,17 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ErrorHandlerService } from '../core/error-handler.service';
3
+ import { StorageService } from '../core/storage.service';
4
+ import { TechlifyFeatureService } from './techlify-feature.service';
5
+ export declare class TechlifyFeatureEnabledDirective {
6
+ private el;
7
+ private featureService;
8
+ private errorHandler;
9
+ private storage;
10
+ features: any;
11
+ localFeatures: any[];
12
+ enabledFeature: any;
13
+ constructor(el: ElementRef, featureService: TechlifyFeatureService, errorHandler: ErrorHandlerService, storage: StorageService);
14
+ ngOnInit(): void;
15
+ getFeatures(): Promise<void>;
16
+ checkForFeatureEnabled(): void;
17
+ }
@@ -2,9 +2,12 @@ import { OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import { MatTableDataSource } from '@angular/material/table';
5
- import { CompanyFeatureService } from './company-feature.service';
6
- import { AlertService, DataManager, ErrorHandlerService, StorageService } from '../core';
7
- export declare class CompanyFeatureComponent implements OnInit {
5
+ import { TechlifyFeatureService } from './techlify-feature.service';
6
+ import { DataManager } from '../core/dataManager.service';
7
+ import { ErrorHandlerService } from '../core/error-handler.service';
8
+ import { AlertService } from '../core/alert.service';
9
+ import { StorageService } from '../core/storage.service';
10
+ export declare class TechlifyFeatureListingComponent implements OnInit {
8
11
  private dataManager;
9
12
  private errorHandler;
10
13
  private fb;
@@ -21,7 +24,7 @@ export declare class CompanyFeatureComponent implements OnInit {
21
24
  isWorking: boolean;
22
25
  filterFormGroup: FormGroup;
23
26
  featureToggleForm: FormGroup;
24
- constructor(dataManager: DataManager, errorHandler: ErrorHandlerService, fb: FormBuilder, alertService: AlertService, dialog: MatDialog, storage: StorageService, featureService: CompanyFeatureService);
27
+ constructor(dataManager: DataManager, errorHandler: ErrorHandlerService, fb: FormBuilder, alertService: AlertService, dialog: MatDialog, storage: StorageService, featureService: TechlifyFeatureService);
25
28
  ngOnInit(): void;
26
29
  listenForChanges(): void;
27
30
  loadData(): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare class TechlifyFeatureModule {
2
+ }
@@ -0,0 +1,2 @@
1
+ import { RouterModule } from '@angular/router';
2
+ export declare const TechlifyFeatureRoutes: import("@angular/core").ModuleWithProviders<RouterModule>;
@@ -1,5 +1,5 @@
1
1
  import { DataManager } from '../core';
2
- export declare class CompanyFeatureService {
2
+ export declare class TechlifyFeatureService {
3
3
  private dataManager;
4
4
  constructor(dataManager: DataManager);
5
5
  getFeatures(): any;
@@ -1 +1,6 @@
1
+ export interface TimelineValue {
2
+ date_from: Date;
3
+ date_to: Date;
4
+ show_custom_field: boolean;
5
+ }
1
6
  export declare function calculateTimeline(value: any): any;
@@ -1,20 +1,61 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormControl, FormGroup } from '@angular/forms';
3
- export declare class TimelineFilterComponent implements OnInit {
1
+ import { DatePipe } from '@angular/common';
2
+ import { EventEmitter, OnInit } from '@angular/core';
3
+ import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, NgControl } from '@angular/forms';
4
+ import { TimelineValue } from './calculate-timeline';
5
+ import { Subject } from 'rxjs';
6
+ export declare class TimelineFilterComponent implements OnInit, ControlValueAccessor {
7
+ ngControl: NgControl;
8
+ private datePipe;
9
+ picker: any;
4
10
  timelineValue: FormControl;
5
11
  timelines: any[];
6
- labelText: string;
7
12
  dateFrom: string;
8
13
  dateTo: string;
9
14
  appearance: any;
10
15
  showClearbutton: boolean;
16
+ /**
17
+ * @deprecated The form input is deprated
18
+ */
11
19
  form: FormGroup;
20
+ labelText: string;
21
+ selectedValue: any;
22
+ touchUi: boolean;
23
+ selectedValueChange: EventEmitter<any>;
24
+ selectionChange: EventEmitter<any>;
25
+ selectorForm: FormGroup;
26
+ onChange: any;
27
+ onTouched: any;
28
+ static nextId: number;
29
+ stateChanges: Subject<void>;
30
+ controlType: string;
31
+ id: string;
32
+ describedBy: string;
33
+ selectedRange: TimelineValue;
12
34
  set defaultValue(value: any);
13
35
  showCustomDateFields: boolean;
14
- constructor();
15
- ngOnInit(): void;
36
+ constructor(formBuilder: FormBuilder, ngControl: NgControl, datePipe: DatePipe);
37
+ get required(): boolean;
38
+ set required(value: boolean);
39
+ private _required;
40
+ get disabled(): boolean;
41
+ set disabled(value: boolean);
42
+ private _disabled;
43
+ get value(): any;
44
+ set value(data: any);
45
+ getDateRangeString(): string;
16
46
  resetFieldValue(field: string): void;
17
47
  getFieldValue(field: string): any;
18
48
  setFieldValue(field: string, value: any): void;
19
49
  changeTimeline(value: any): void;
50
+ _handleInput(): void;
51
+ dateRangeChange(dateRangeStart: HTMLInputElement, dateRangeEnd: HTMLInputElement): void;
52
+ onCustomDateChange(event: any): void;
53
+ setDescribedByIds(ids: string[]): void;
54
+ onContainerClick(event: MouseEvent): void;
55
+ writeValue(data: any): void;
56
+ registerOnChange(fn: any): void;
57
+ registerOnTouched(fn: any): void;
58
+ setDisabledState(isDisabled: boolean): void;
59
+ ngOnInit(): void;
60
+ ngOnDestroy(): void;
20
61
  }
@@ -4,18 +4,19 @@
4
4
  export * from './public-api';
5
5
  export { ActionPopupComponent as ɵg } from './lib/action-popup/action-popup.component';
6
6
  export { ActionPopup as ɵh } from './lib/action-popup/action-popup.model';
7
- export { CompanyFeatureService as ɵca } from './lib/company-feature/company-feature.service';
8
- export { AlertService as ɵby, AuthenticationGuard as ɵcb, DataManager as ɵbw, ErrorHandlerService as ɵbx, StorageService as ɵbz } from './lib/core';
7
+ export { AuthenticationGuard as ɵca, DataManager as ɵbz } from './lib/core';
9
8
  export { AlertService as ɵn } from './lib/core/alert.service';
10
9
  export { AuthenticationGuard as ɵbg } from './lib/core/authentication.guard';
11
10
  export { ConfigService as ɵv } from './lib/core/config.service';
12
11
  export { CredentialsService as ɵu } from './lib/core/credentials.service';
13
12
  export { DataManager as ɵbv } from './lib/core/dataManager.service';
13
+ export { ErrorHandlerService as ɵbw } from './lib/core/error-handler.service';
14
14
  export { FormValidatorService as ɵl } from './lib/core/form-validator.service';
15
15
  export { HTTP_DYNAMIC_INTERCEPTORS as ɵd, HttpService as ɵe } from './lib/core/http.service';
16
16
  export { RouteReusableStrategy as ɵf } from './lib/core/route-reusable-strategy';
17
17
  export { ErrorSnackComponent as ɵc, SuccessSnackComponent as ɵb } from './lib/core/snack/snack.component';
18
18
  export { SnackModule as ɵa } from './lib/core/snack/snack.module';
19
+ export { StorageService as ɵbx } from './lib/core/storage.service';
19
20
  export { TechlifyConfig as ɵw } from './lib/core/techlify-config.model';
20
21
  export { DataTableComponent as ɵi } from './lib/data-table/data-table.component';
21
22
  export { DocumentViewerComponent as ɵj } from './lib/document-viewer/document-viewer.component';
@@ -36,6 +37,8 @@ export { NoteListComponent as ɵq } from './lib/note/note-list/note-list.compone
36
37
  export { NoteService as ɵr } from './lib/note/note.service';
37
38
  export { MatSelectInfiniteScrollDirective as ɵy } from './lib/searchable-selector/mat-select-infinite-scroll.directive';
38
39
  export { SearchableSelectorComponent as ɵx } from './lib/searchable-selector/searchable-selector.component';
40
+ export { OnOffSwitchComponent as ɵcb } from './lib/techlify-feature/on-off-switch/on-off-switch.component';
41
+ export { TechlifyFeatureService as ɵby } from './lib/techlify-feature/techlify-feature.service';
39
42
  export { TechlifyUpdateFormComponent as ɵbp } from './lib/techlify-update/techlify-update-form/techlify-update-form.component';
40
43
  export { TechlifyUpdateFormModule as ɵbo } from './lib/techlify-update/techlify-update-form/techlify-update-form.module';
41
44
  export { TechlifyUpdateHistoryRoutingModule as ɵbq } from './lib/techlify-update/techlify-update-history/techlify-update-history-routing.module';