ngx-pwa
Version:
Provides functionality around the progressive web app functionality in angular. Most notably the an approach to cache POST, UPDATE and DELETE requests.
33 lines (32 loc) • 1.76 kB
TypeScript
import { OnInit } from '@angular/core';
import { SynchronizeDialogData } from '../../models/synchronize-dialog-data.model';
import { NgxPwaOfflineService } from '../../services/offline.service';
import * as i0 from "@angular/core";
/**
* Shows a offline warning when the user is not online.
*/
export declare class NgxPwaOfflineStatusBarComponent<OfflineServiceType extends NgxPwaOfflineService> implements OnInit {
readonly offlineService: OfflineServiceType;
/**
* The message to display when the user is offline.
* @default 'Offline'
*/
offlineMessage: string;
/**
* The message to display when the user has changes that aren't synced to the api.
* @default 'Unsaved Changes'
*/
unsavedChangesMessage: string;
/**
* Whether or not to display a badge that shows the amount of cached requests and can open a dialog to sync changes to the server.
*/
displayUnsavedChangesSynchronizeBadge: boolean;
/**
* Configuration data for the Synchronize Dialog.
*/
synchronizeDialogData?: SynchronizeDialogData;
constructor(offlineService: OfflineServiceType);
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPwaOfflineStatusBarComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxPwaOfflineStatusBarComponent<any>, "ngx-pwa-offline-status-bar", never, { "offlineMessage": { "alias": "offlineMessage"; "required": false; }; "unsavedChangesMessage": { "alias": "unsavedChangesMessage"; "required": false; }; "displayUnsavedChangesSynchronizeBadge": { "alias": "displayUnsavedChangesSynchronizeBadge"; "required": false; }; "synchronizeDialogData": { "alias": "synchronizeDialogData"; "required": false; }; }, {}, never, never, true, never>;
}