ngx-techlify-core 18.80.0 → 18.81.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.
@@ -0,0 +1,25 @@
1
+ import { SwUpdate } from '@angular/service-worker';
2
+ import { MatSnackBar } from '@angular/material/snack-bar';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Watches for new app deployments via the Angular service worker and prompts
6
+ * the user to reload. Checks are event-driven only (VERSION_READY push, tab
7
+ * becoming visible again) - a periodic polling interval was reviewed and
8
+ * rejected, so don't reintroduce one.
9
+ *
10
+ * Consuming apps must register the service worker themselves
11
+ * (ServiceWorkerModule.register('ngsw-worker.js', ...)) and call init() once,
12
+ * e.g. from AppComponent.ngOnInit().
13
+ */
14
+ export declare class AppUpdateService {
15
+ private swUpdate;
16
+ private snackBar;
17
+ constructor(swUpdate: SwUpdate, snackBar: MatSnackBar);
18
+ init(): void;
19
+ private promptOnVersionReady;
20
+ private reloadOnUnrecoverableState;
21
+ private checkForUpdatesWhenTabBecomesVisible;
22
+ private promptReload;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppUpdateService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppUpdateService>;
25
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './snack/snack.component';
2
2
  export * from './snack/snack.module';
3
3
  export * from './alert.service';
4
+ export * from './app-update.service';
4
5
  export * from './api-prefix.interceptor';
5
6
  export * from './authentication.guard';
6
7
  export * from './authentication.service';
@@ -48,12 +48,23 @@ export declare class TimelineFilterComponent implements OnInit, ControlValueAcce
48
48
  resetFieldValue(field: string): void;
49
49
  getFieldValue(field: string): any;
50
50
  setFieldValue(field: string, value: any, emitEvent?: boolean): void;
51
- changeTimeline(value: any): void;
51
+ /**
52
+ * @param emitEvent Whether to notify the bound form/CVA of the change (default true, a genuine
53
+ * selection). Pass false for a silent, display-only recompute - see writeValue.
54
+ */
55
+ changeTimeline(value: any, emitEvent?: boolean): void;
52
56
  openCalendar(): void;
53
- applyRange(defaultFrom?: any, defaultTo?: any): void;
57
+ /**
58
+ * @param emitEvent Whether to notify the change (default true, a genuine
59
+ * selection). Pass false for a silent recompute
60
+ */
61
+ applyRange(defaultFrom?: any, defaultTo?: any, emitEvent?: boolean): void;
54
62
  setCustomDates(from: any, to: any): void;
55
63
  setDescribedByIds(ids: string[]): void;
56
64
  onContainerClick(event: MouseEvent): void;
65
+ /**
66
+ * Computes the change cycle only when there is a change in selection
67
+ */
57
68
  writeValue(data: any): void;
58
69
  registerOnChange(fn: any): void;
59
70
  registerOnTouched(fn: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.80.0",
3
+ "version": "18.81.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",
@@ -10,6 +10,7 @@
10
10
  "@angular/platform-browser": ">=18",
11
11
  "@angular/platform-browser-dynamic": ">=18",
12
12
  "@angular/router": ">=18",
13
+ "@angular/service-worker": ">=18",
13
14
  "@angular/material": ">=18",
14
15
  "@angular/cdk": ">=18",
15
16
  "rxjs": ">=7.8.1",