@progressive-development/pd-spa-helper 0.3.103 → 0.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.
- package/dist/PdSpaHelper.d.ts +86 -0
- package/dist/PdSpaHelper.d.ts.map +1 -0
- package/dist/defaultpage/default-confirm-popup.d.ts +19 -0
- package/dist/defaultpage/default-confirm-popup.d.ts.map +1 -0
- package/dist/defaultpage/default-dialog-popup.d.ts +15 -0
- package/dist/defaultpage/default-dialog-popup.d.ts.map +1 -0
- package/dist/defaultpage/default-login.d.ts +8 -0
- package/dist/defaultpage/default-login.d.ts.map +1 -0
- package/dist/defaultpage/default-popup.d.ts +7 -0
- package/dist/defaultpage/default-popup.d.ts.map +1 -0
- package/dist/defaultpage/default-step-address.d.ts +19 -0
- package/dist/defaultpage/default-step-address.d.ts.map +1 -0
- package/dist/defaultpage/default-step-summary.d.ts +30 -0
- package/dist/defaultpage/default-step-summary.d.ts.map +1 -0
- package/dist/defaultpage/default-view-page.d.ts +10 -0
- package/dist/defaultpage/default-view-page.d.ts.map +1 -0
- package/dist/defaultpage/default-wizard-step.d.ts +35 -0
- package/dist/defaultpage/default-wizard-step.d.ts.map +1 -0
- package/dist/defaultpage/default-wizard.d.ts +32 -0
- package/dist/defaultpage/default-wizard.d.ts.map +1 -0
- package/dist/generated/locale-codes.d.ts +14 -0
- package/dist/generated/locale-codes.d.ts.map +1 -0
- package/dist/generated/locale-wrapper/be-wrapper.d.ts +2 -0
- package/dist/generated/locale-wrapper/be-wrapper.d.ts.map +1 -0
- package/dist/generated/locale-wrapper/de-wrapper.d.ts +16 -0
- package/dist/generated/locale-wrapper/de-wrapper.d.ts.map +1 -0
- package/dist/generated/locale-wrapper/en-wrapper.d.ts +2 -0
- package/dist/generated/locale-wrapper/en-wrapper.d.ts.map +1 -0
- package/dist/generated/locales/be.d.ts +16 -0
- package/dist/generated/locales/be.d.ts.map +1 -0
- package/dist/generated/locales/de.d.ts +16 -0
- package/dist/generated/locales/de.d.ts.map +1 -0
- package/dist/generated/locales/en.d.ts +16 -0
- package/dist/generated/locales/en.d.ts.map +1 -0
- package/dist/helper/helper-utils.d.ts +6 -0
- package/dist/helper/helper-utils.d.ts.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/model/spa-model.d.ts +17 -0
- package/dist/model/spa-model.d.ts.map +1 -0
- package/dist/node_modules/@firebase/auth/dist/esm2017/index-68602d24.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js +1 -1
- package/dist/pd-panel-viewer.d.ts +2 -0
- package/dist/pd-panel.d.ts +2 -0
- package/dist/pd-spa-helper.d.ts +1 -0
- package/dist/pd-spa-helper.d.ts.map +1 -0
- package/dist/popup/wizard-close-popup.d.ts +11 -0
- package/dist/popup/wizard-close-popup.d.ts.map +1 -0
- package/dist/popup/wizard-reload-popup.d.ts +14 -0
- package/dist/popup/wizard-reload-popup.d.ts.map +1 -0
- package/dist/router/AppMain.d.ts +7 -0
- package/dist/router/AppMain.d.ts.map +1 -0
- package/dist/service-call-controller2.d.ts +17 -0
- package/dist/service-call-controller2.d.ts.map +1 -0
- package/dist/service-provider/firebase/auth.d.ts +15 -0
- package/dist/service-provider/firebase/auth.d.ts.map +1 -0
- package/dist/service-provider/firebase/firestorage-client.d.ts +21 -0
- package/dist/service-provider/firebase/firestorage-client.d.ts.map +1 -0
- package/dist/service-provider/firebase/firestore-client.d.ts +12 -0
- package/dist/service-provider/firebase/firestore-client.d.ts.map +1 -0
- package/dist/service-provider/firebase/functions-client.d.ts +10 -0
- package/dist/service-provider/firebase/functions-client.d.ts.map +1 -0
- package/dist/service-provider/firebase/messagingFirebaseClient.d.ts +9 -0
- package/dist/service-provider/firebase/messagingFirebaseClient.d.ts.map +1 -0
- package/dist/service-provider/mock/auth.d.ts +6 -0
- package/dist/service-provider/mock/auth.d.ts.map +1 -0
- package/dist/service-provider/mock/function-client.d.ts +9 -0
- package/dist/service-provider/mock/function-client.d.ts.map +1 -0
- package/dist/service-provider/mock/storage-client.d.ts +11 -0
- package/dist/service-provider/mock/storage-client.d.ts.map +1 -0
- package/dist/service-provider/service-provider-impl.d.ts +22 -0
- package/dist/service-provider/service-provider-impl.d.ts.map +1 -0
- package/dist/service-provider/service-provider-model.d.ts +137 -0
- package/dist/service-provider/service-provider-model.d.ts.map +1 -0
- package/dist/src/service-provider/firebase/auth.js +1 -0
- package/dist/store/indexDB.d.ts +28 -0
- package/dist/store/indexDB.d.ts.map +1 -0
- package/dist/store/mini-rx.store.d.ts +5 -0
- package/dist/store/mini-rx.store.d.ts.map +1 -0
- package/dist/store/spa-app-actions.d.ts +105 -0
- package/dist/store/spa-app-actions.d.ts.map +1 -0
- package/dist/store/spa-app-effects.d.ts +24 -0
- package/dist/store/spa-app-effects.d.ts.map +1 -0
- package/dist/store/spa-app-reducer.d.ts +10 -0
- package/dist/store/spa-app-reducer.d.ts.map +1 -0
- package/dist/store/spa-app-selector.d.ts +7 -0
- package/dist/store/spa-app-selector.d.ts.map +1 -0
- package/dist/stories/pd-loading-state.stories.d.ts +30 -0
- package/dist/stories/pd-loading-state.stories.d.ts.map +1 -0
- package/dist/stories/pd-toast.stories.d.ts +23 -0
- package/dist/stories/pd-toast.stories.d.ts.map +1 -0
- package/dist/tmpown/pd-loading-state.d.ts +9 -0
- package/dist/tmpown/pd-loading-state.d.ts.map +1 -0
- package/dist/tmpown/pd-login.d.ts +11 -0
- package/dist/tmpown/pd-login.d.ts.map +1 -0
- package/dist/tmpown/pd-panel-viewer.d.ts +17 -0
- package/dist/tmpown/pd-panel-viewer.d.ts.map +1 -0
- package/dist/tmpown/pd-panel.d.ts +6 -0
- package/dist/tmpown/pd-panel.d.ts.map +1 -0
- package/dist/tmpown/pd-toast.d.ts +13 -0
- package/dist/tmpown/pd-toast.d.ts.map +1 -0
- package/package.json +8 -6
- package/dist/node_modules/tslib/tslib.es6.js +0 -240
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const AppMain_base: import('lit-element-router').Constructor<import('lit-element-router').Outlet> & typeof LitElement;
|
|
3
|
+
export declare class AppMain extends AppMain_base {
|
|
4
|
+
render(): import('lit').TemplateResult<1>;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=AppMain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppMain.d.ts","sourceRoot":"","sources":["../../src/router/AppMain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;;AAIrC,qBACa,OAAQ,SAAQ,YAAkB;IAC7C,MAAM;CAGP"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { FunctionDefinition, FunctionResult } from './service-provider/service-provider-model.js';
|
|
3
|
+
export interface ServiceControllerInput {
|
|
4
|
+
promise: Promise<FunctionResult>;
|
|
5
|
+
func: FunctionDefinition;
|
|
6
|
+
}
|
|
7
|
+
export declare class ServiceCallController {
|
|
8
|
+
host: ReactiveControllerHost;
|
|
9
|
+
private task;
|
|
10
|
+
private _callDataPromise;
|
|
11
|
+
constructor(host: ReactiveControllerHost);
|
|
12
|
+
set callDataPromise(value: ServiceControllerInput);
|
|
13
|
+
get callDataPromise(): ServiceControllerInput;
|
|
14
|
+
clear(): void;
|
|
15
|
+
render(renderFunctions: any): unknown;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=service-call-controller2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-call-controller2.d.ts","sourceRoot":"","sources":["../src/service-call-controller2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,KAAK,CAAC;AAG3C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAGlG,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,qBAAa,qBAAqB;IAEhC,IAAI,EAAE,sBAAsB,CAAC;IAE7B,OAAO,CAAC,IAAI,CAAQ;IAEpB,OAAO,CAAC,gBAAgB,CAA0B;gBAEtC,IAAI,EAAE,sBAAsB;IA+BxC,IAAI,eAAe,CAAC,KAAK,EAAE,sBAAsB,EAGhD;IAED,IAAI,eAAe,IAAI,sBAAsB,CAAkC;IAE/E,KAAK;IAML,MAAM,CAAC,eAAe,EAAE,GAAG;CAI5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { User } from 'firebase/auth';
|
|
3
|
+
/**
|
|
4
|
+
* During start/load application, initialize functions.
|
|
5
|
+
*
|
|
6
|
+
* @param {*} app - initialized app.
|
|
7
|
+
*/
|
|
8
|
+
export declare const initAuth: (appParam: FirebaseApp) => void;
|
|
9
|
+
export declare const logout: () => Promise<boolean>;
|
|
10
|
+
export declare const isAuthenticated: () => boolean;
|
|
11
|
+
export declare const getAuthUser: () => unknown;
|
|
12
|
+
export declare const authStateChanged: (callback: Function) => void;
|
|
13
|
+
export declare const authIdTokenStateChanged: (callback: Function) => void;
|
|
14
|
+
export declare const login: (user: string, sec: string) => Promise<User>;
|
|
15
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/service-provider/firebase/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAA4F,IAAI,EAAE,MAAM,eAAe,CAAC;AAI/H;;;;GAIG;AACH,eAAO,MAAM,QAAQ,aAAc,WAAW,SAG7C,CAAA;AAED,eAAO,MAAM,MAAM,QAAa,QAAQ,OAAO,CAU9C,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,OAOlC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,OAK9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,aAAc,QAAQ,SAiClD,CAAA;AAED,eAAO,MAAM,uBAAuB,aAAc,QAAQ,SAEzD,CAAA;AAED,eAAO,MAAM,KAAK,SAAe,MAAM,OAAM,MAAM,KAAG,QAAQ,IAAI,CAMjE,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { UploadResult } from 'firebase/storage';
|
|
3
|
+
import { FileStorageConfig, StorageDocument, UploadFile } from '../service-provider-model.js';
|
|
4
|
+
/**
|
|
5
|
+
* During start/load application, initialize functions.
|
|
6
|
+
*
|
|
7
|
+
* @param {*} app - initialized app.
|
|
8
|
+
*/
|
|
9
|
+
export declare const initFirestorage: (app: FirebaseApp, defaultStorage?: string, storageConfig?: FileStorageConfig) => void;
|
|
10
|
+
export declare const uploadFirestorageFile: (file: UploadFile) => Promise<UploadResult>;
|
|
11
|
+
export declare const getFirestorageFile: (storageName: string, refKey: string, storageURI: string, includeMetaData?: boolean) => Promise<StorageDocument>;
|
|
12
|
+
export declare const getFirestorageFileList: (storageName: string, refKey: string, subFolder?: string, includeMetaData?: boolean) => Promise<StorageDocument[]>;
|
|
13
|
+
export declare const downloadFileFirestorage: (file: StorageDocument) => Promise<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Löscht eine Datei in Firebase Storage basierend auf den Informationen im StorageDocument.
|
|
16
|
+
*
|
|
17
|
+
* @param deleteFile - Das StorageDocument-Objekt, das die zu löschende Datei beschreibt.
|
|
18
|
+
* @returns Ein Promise, das erfüllt wird, wenn die Datei gelöscht wurde, oder abgelehnt wird, wenn ein Fehler auftritt.
|
|
19
|
+
*/
|
|
20
|
+
export declare function deleteFirestorageDocument(deleteFile: StorageDocument): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=firestorage-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firestorage-client.d.ts","sourceRoot":"","sources":["../../../src/service-provider/firebase/firestorage-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAA+D,YAAY,EAAqF,MAAM,kBAAkB,CAAC;AAEhM,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAa9F;;;;GAIG;AACH,eAAO,MAAM,eAAe,QACrB,WAAW,mBACC,MAAM,kBACP,iBAAiB,SAmClC,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAAU,UAAU,KAAE,QAAQ,YAAY,CAsC3E,CAAC;AAiFF,eAAO,MAAM,kBAAkB,gBAChB,MAAM,UACZ,MAAM,cACD,MAAM,gCAEjB,QAAQ,eAAe,CA4CzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,gBACpB,MAAM,UACX,MAAM,cACF,MAAM,oBACA,OAAO,KACzB,QAAQ,eAAe,EAAE,CAuB1B,CAAC;AAGF,eAAO,MAAM,uBAAuB,SAAU,eAAe,oBAa5D,CAAA;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsB1F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { Firestore } from 'firebase/firestore';
|
|
3
|
+
import { CollectionContraint } from '../service-provider-model';
|
|
4
|
+
/**
|
|
5
|
+
* During start/load application, initialize functions.
|
|
6
|
+
*
|
|
7
|
+
* @param {*} app - initialized app.
|
|
8
|
+
*/
|
|
9
|
+
export declare const initFirestore: (app: FirebaseApp) => void;
|
|
10
|
+
export declare const getDB: () => Firestore;
|
|
11
|
+
export declare const getFirebaseCollectionListener: (callback: Function, col: string, constraints?: CollectionContraint[]) => import('@firebase/firestore').Unsubscribe;
|
|
12
|
+
//# sourceMappingURL=firestore-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firestore-client.d.ts","sourceRoot":"","sources":["../../../src/service-provider/firebase/firestore-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAa,SAAS,EAA0D,MAAM,oBAAoB,CAAC;AAClH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAKhE;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAS,WAAW,SAO7C,CAAC;AAEF,eAAO,MAAM,KAAK,QAAM,SAAe,CAAC;AAExC,eAAO,MAAM,6BAA6B,aAC9B,QAAQ,OACb,MAAM,gBACE,mBAAmB,EAAE,8CAWnC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { FunctionDefinition, FunctionResult, FunctionsConfig } from '../service-provider-model.js';
|
|
3
|
+
/**
|
|
4
|
+
* During start/load application, initialize functions.
|
|
5
|
+
*
|
|
6
|
+
* @param {*} app - initialized app.
|
|
7
|
+
*/
|
|
8
|
+
export declare const initFunctions: (app: FirebaseApp, functionsConfig: FunctionsConfig) => void;
|
|
9
|
+
export declare const callFunction: (def: FunctionDefinition, functionInput: any) => Promise<FunctionResult>;
|
|
10
|
+
//# sourceMappingURL=functions-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions-client.d.ts","sourceRoot":"","sources":["../../../src/service-provider/firebase/functions-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAInG;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAS,WAAW,mBAAmB,eAAe,SAa/E,CAAA;AA8CD,eAAO,MAAM,YAAY,QAAe,kBAAkB,iBAAiB,GAAG,KAAG,QAAQ,cAAc,CAC7D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { Messaging } from 'firebase/messaging';
|
|
3
|
+
import { MessagingConfig } from '../service-provider-model.js';
|
|
4
|
+
export declare const NOTIFICATION_TOKEN = "pd.spa.helper.notification.token";
|
|
5
|
+
export declare function prepareMessaging(app: FirebaseApp, messageConfig: MessagingConfig): void;
|
|
6
|
+
export declare const activateTokenChangeHandler: (appName: string) => void;
|
|
7
|
+
export declare const registerDevice: (registration: ServiceWorkerRegistration) => Promise<void>;
|
|
8
|
+
export declare const getFirebaseMessaging: () => Messaging;
|
|
9
|
+
//# sourceMappingURL=messagingFirebaseClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messagingFirebaseClient.d.ts","sourceRoot":"","sources":["../../../src/service-provider/firebase/messagingFirebaseClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAA0B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGvE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQ/D,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAMrE,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,WAAW,EAChB,aAAa,EAAE,eAAe,QAI/B;AAED,eAAO,MAAM,0BAA0B,YAAY,MAAM,SAcxD,CAAA;AAmCD,eAAO,MAAM,cAAc,iBACX,yBAAyB,kBAsBxC,CAAA;AAGD,eAAO,MAAM,oBAAoB,iBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const logoutMock: () => Promise<boolean>;
|
|
2
|
+
export declare const isAuthenticatedMock: () => boolean;
|
|
3
|
+
export declare const getAuthUserMock: () => unknown;
|
|
4
|
+
export declare const authStateChangedMock: (callback: Function) => void;
|
|
5
|
+
export declare const loginMock: (user: string, sec: string) => Promise<unknown>;
|
|
6
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/service-provider/mock/auth.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,UAAU,QAAa,QAAQ,OAAO,CAOlD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,OAMtC,CAAA;AAED,eAAO,MAAM,eAAe,QAAO,OAIpB,CAAC;AAIhB,eAAO,MAAM,oBAAoB,aAAc,QAAQ,SAMtD,CAAA;AAED,eAAO,MAAM,SAAS,SAAe,MAAM,OAAM,MAAM,KAAG,QAAQ,OAAO,CAyBxE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FunctionDefinition, FunctionResult } from '../service-provider-model.js';
|
|
2
|
+
declare let mockResponse: Map<string, Function>;
|
|
3
|
+
export declare const callFunctionMock: (def: FunctionDefinition, functionInput: any) => Promise<FunctionResult>;
|
|
4
|
+
export declare const initMockResponse: (mock?: {
|
|
5
|
+
mockResponse?: Map<string, Function>;
|
|
6
|
+
mockWaitTime?: number;
|
|
7
|
+
}) => void;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=function-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-client.d.ts","sourceRoot":"","sources":["../../../src/service-provider/mock/function-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAIlF,QAAA,IAAI,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAKxC,eAAO,MAAM,gBAAgB,QAAe,kBAAkB,iBAAiB,GAAG,KAAG,QAAQ,cAAc,CAwB1G,CAAA;AAED,eAAO,MAAM,gBAAgB,UAAW;IACtC,YAAY,CAAC,EAAG,IAAI,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAA;CACpB,SAGF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FileStorageConfig, StorageDocument, UploadFile } from '../service-provider-model.js';
|
|
2
|
+
/**
|
|
3
|
+
* During start/load application, initialize functions.
|
|
4
|
+
*
|
|
5
|
+
* @param {*} app - initialized app.
|
|
6
|
+
*/
|
|
7
|
+
export declare const initStorageMock: (defaultStorage?: string, storageConfig?: FileStorageConfig) => void;
|
|
8
|
+
export declare const uploadStorageFileMock: (file: UploadFile) => Promise<any>;
|
|
9
|
+
export declare const downloadFileMock: (file: StorageDocument) => Promise<string>;
|
|
10
|
+
export declare const getMockFileList: (storageName: string, refKey: string, subFolder?: string, includeMetadata?: boolean) => Promise<StorageDocument[]>;
|
|
11
|
+
//# sourceMappingURL=storage-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-client.d.ts","sourceRoot":"","sources":["../../../src/service-provider/mock/storage-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAwD9F;;;;GAIG;AACH,eAAO,MAAM,eAAe,oBAAqB,MAAM,kBAAkB,iBAAiB,SAmCzF,CAAC;AAGF,eAAO,MAAM,qBAAqB,SAAU,UAAU,KAAE,QAAQ,GAAG,CAyBlE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,eAAe,oBAGrD,CAAA;AAED,eAAO,MAAM,eAAe,gBACb,MAAM,UACX,MAAM,cACF,MAAM,oBACA,OAAO,KACzB,QAAQ,eAAe,EAAE,CAQ1B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { AppConfiguration, CollectionContraint, FunctionDefinition, FunctionResult, ServiceProviderConfiguration, StorageDocument, UploadFile } from './service-provider-model.js';
|
|
3
|
+
import { ServiceCallController } from '../service-call-controller2.js';
|
|
4
|
+
export declare const setServiceProvider: (providerParam?: ServiceProviderConfiguration) => void;
|
|
5
|
+
export declare const initController: (controllerParam: ServiceCallController) => void;
|
|
6
|
+
export declare const initAppImpl: (config: AppConfiguration) => void;
|
|
7
|
+
export declare const callFunctionImpl: (def: FunctionDefinition, functionInput: any) => Promise<FunctionResult>;
|
|
8
|
+
export declare const authStateChangedImpl: (callback: Function) => void;
|
|
9
|
+
export declare const isAuthenticatedImpl: () => boolean;
|
|
10
|
+
export declare const loginImpl: (user: string, sec: string) => Promise<unknown>;
|
|
11
|
+
export declare const logoutImpl: () => Promise<boolean>;
|
|
12
|
+
export declare const getUser: () => unknown;
|
|
13
|
+
export declare const uploadFile: (file: UploadFile) => Promise<unknown>;
|
|
14
|
+
export declare const getStorageFileList: (storageName: string, keyRef: string, subFolder?: string, includeMetadata?: boolean) => Promise<StorageDocument[]>;
|
|
15
|
+
export declare const getStorageFile: (storageName: string, refKey: string, storageURI: string, includeMetaData: boolean) => Promise<StorageDocument>;
|
|
16
|
+
export declare const downloadFile: (file: StorageDocument) => Promise<unknown>;
|
|
17
|
+
export declare const deleteFile: (file: StorageDocument) => Promise<unknown>;
|
|
18
|
+
export declare const activateCollectionListener: (callback: Function, col: string, constraints?: CollectionContraint[]) => import('@firebase/firestore').Unsubscribe | "";
|
|
19
|
+
export declare const registerAppDeviceForNotification: (registration: ServiceWorkerRegistration) => Promise<void>;
|
|
20
|
+
export declare const getMessagingImpl: () => import('@firebase/messaging').Messaging | undefined;
|
|
21
|
+
export declare const getApp: () => FirebaseApp;
|
|
22
|
+
//# sourceMappingURL=service-provider-impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-provider-impl.d.ts","sourceRoot":"","sources":["../../src/service-provider/service-provider-impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,cAAc,CAAC;AAI1D,OAAO,EACL,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,cAAc,EACzE,4BAA4B,EAAE,eAAe,EAAE,UAAU,EAC1D,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAiBvE,eAAO,MAAM,kBAAkB,mBAAoB,4BAA4B,SAE9E,CAAA;AAED,eAAO,MAAM,cAAc,oBAAqB,qBAAqB,SAEpE,CAAA;AAoCD,eAAO,MAAM,WAAW,WAAY,gBAAgB,SAenD,CAAA;AAKD,eAAO,MAAM,gBAAgB,QAAe,kBAAkB,iBAAiB,GAAG,KAAG,QAAQ,cAAc,CAoB1G,CAAA;AASD,eAAO,MAAM,oBAAoB,aACrB,QAAQ,SASnB,CAAA;AAED,eAAO,MAAM,mBAAmB,eAQ/B,CAAA;AAED,eAAO,MAAM,SAAS,SAAU,MAAM,OAAO,MAAM,qBAkBlD,CAAA;AAED,eAAO,MAAM,UAAU,wBAQtB,CAAC;AAGF,eAAO,MAAM,OAAO,eAQnB,CAAA;AAKD,eAAO,MAAM,UAAU,SAAU,UAAU,KAAG,QAAQ,OAAO,CAQ5D,CAAA;AAED,eAAO,MAAM,kBAAkB,gBAChB,MAAM,UACX,MAAM,cACF,MAAM,oBACD,OAAO,KACvB,QAAQ,eAAe,EAAE,CAQ3B,CAAA;AAED,eAAO,MAAM,cAAc,gBACZ,MAAM,UACZ,MAAM,cACD,MAAM,mBACD,OAAO,KACvB,QAAQ,eAAe,CAOzB,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,eAAe,KAAG,QAAQ,OAAO,CAQnE,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,eAAe,KAAG,QAAQ,OAAO,CAKjE,CAAA;AAKD,eAAO,MAAM,0BAA0B,aAC3B,QAAQ,OAAO,MAAM,gBAAe,mBAAmB,EAAE,mDAUpE,CAAC;AAMF,eAAO,MAAM,gCAAgC,iBAC7B,yBAAyB,kBAUxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,2DAS5B,CAAC;AAEF,eAAO,MAAM,MAAM,mBAAY,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { FirebaseOptions } from 'firebase/app';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* Implemeted service provider
|
|
5
|
+
*/
|
|
6
|
+
export type ServiceProviderFirebase = "firebase";
|
|
7
|
+
export type ServiceProviderMock = "mock";
|
|
8
|
+
export type ServiceProviderConfiguration = ServiceProviderFirebase | ServiceProviderMock;
|
|
9
|
+
export interface FunctionResult {
|
|
10
|
+
resultData: unknown;
|
|
11
|
+
statusCode: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Function model.
|
|
15
|
+
*/
|
|
16
|
+
export interface FunctionDefinition {
|
|
17
|
+
name: string;
|
|
18
|
+
successCodes: Array<Number>;
|
|
19
|
+
fadeWindow: boolean;
|
|
20
|
+
successTxt: string | TemplateResult;
|
|
21
|
+
pendingTxt: string | TemplateResult;
|
|
22
|
+
param?: any;
|
|
23
|
+
redirect?: string;
|
|
24
|
+
logoutOnFail?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface FunctionParam {
|
|
27
|
+
func: FunctionDefinition;
|
|
28
|
+
inputData: any;
|
|
29
|
+
}
|
|
30
|
+
export interface FunctionsConfig {
|
|
31
|
+
region: string;
|
|
32
|
+
functions: Array<FunctionDefinition>;
|
|
33
|
+
postLoginFunc?: FunctionDefinition;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* App data models.
|
|
37
|
+
*/
|
|
38
|
+
export interface MenuElement {
|
|
39
|
+
key: string;
|
|
40
|
+
name: string;
|
|
41
|
+
sec?: string;
|
|
42
|
+
route?: string;
|
|
43
|
+
action?: Function;
|
|
44
|
+
topItem?: boolean;
|
|
45
|
+
ref?: any;
|
|
46
|
+
icon?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface NavigationPage {
|
|
49
|
+
name: string;
|
|
50
|
+
mainClass?: string;
|
|
51
|
+
pattern: Array<string>;
|
|
52
|
+
auth: boolean;
|
|
53
|
+
menu?: Array<MenuElement>;
|
|
54
|
+
topMenu?: Array<MenuElement>;
|
|
55
|
+
withTeaser?: boolean;
|
|
56
|
+
withFooter?: boolean;
|
|
57
|
+
hideMenu?: boolean;
|
|
58
|
+
hideTopMenu?: boolean;
|
|
59
|
+
topMenuItems?: Array<MenuElement>;
|
|
60
|
+
}
|
|
61
|
+
export interface NavigationConfig {
|
|
62
|
+
pages: Array<NavigationPage>;
|
|
63
|
+
includeLogin: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface LinkObj {
|
|
66
|
+
name: string;
|
|
67
|
+
key: string;
|
|
68
|
+
link?: string;
|
|
69
|
+
action?: Function;
|
|
70
|
+
}
|
|
71
|
+
export interface Footer {
|
|
72
|
+
version: string;
|
|
73
|
+
copyright?: string;
|
|
74
|
+
links: Array<LinkObj>;
|
|
75
|
+
}
|
|
76
|
+
export interface StoreConfig {
|
|
77
|
+
appName: string;
|
|
78
|
+
reducer: any;
|
|
79
|
+
effects: Array<any>;
|
|
80
|
+
}
|
|
81
|
+
export interface FileStorage {
|
|
82
|
+
name: string;
|
|
83
|
+
references: string[];
|
|
84
|
+
}
|
|
85
|
+
export interface FileStorageConfig {
|
|
86
|
+
storage: FileStorage[];
|
|
87
|
+
}
|
|
88
|
+
export interface MessagingConfig {
|
|
89
|
+
apidKey: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AppConfiguration {
|
|
92
|
+
serviceProvider?: ServiceProviderConfiguration;
|
|
93
|
+
mock?: {
|
|
94
|
+
mockResponse?: Map<string, Function>;
|
|
95
|
+
mockWaitTime?: number;
|
|
96
|
+
};
|
|
97
|
+
navigationConfigParam: NavigationConfig;
|
|
98
|
+
storeConfigParam?: StoreConfig;
|
|
99
|
+
firebaseConfig?: FirebaseOptions;
|
|
100
|
+
storageConfig?: FileStorageConfig;
|
|
101
|
+
functionsConfig?: FunctionsConfig;
|
|
102
|
+
messagingConfig?: MessagingConfig;
|
|
103
|
+
}
|
|
104
|
+
export interface UploadFile {
|
|
105
|
+
fileName: string;
|
|
106
|
+
base64DataURL: string;
|
|
107
|
+
descriptionName: string;
|
|
108
|
+
description: string;
|
|
109
|
+
storageName: string;
|
|
110
|
+
referenceKey: string;
|
|
111
|
+
subFolderName?: string;
|
|
112
|
+
readonly?: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface StorageMetadata {
|
|
115
|
+
}
|
|
116
|
+
export interface StorageDocument {
|
|
117
|
+
storageName: string;
|
|
118
|
+
refKey: string;
|
|
119
|
+
fileName: string;
|
|
120
|
+
filePath: string;
|
|
121
|
+
subFolderName?: string;
|
|
122
|
+
documentType?: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
descriptionName?: string;
|
|
125
|
+
creation?: Date;
|
|
126
|
+
creator?: string;
|
|
127
|
+
size?: number;
|
|
128
|
+
readonly?: boolean;
|
|
129
|
+
metaData?: StorageMetadata;
|
|
130
|
+
}
|
|
131
|
+
export interface CollectionContraint {
|
|
132
|
+
type: "where";
|
|
133
|
+
field: string;
|
|
134
|
+
operator: "<" | ">" | ">=" | "<=" | "==" | "!=" | "array-contains" | "array-contains-any" | "in" | "not-in";
|
|
135
|
+
value: any;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=service-provider-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-prov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I,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,IAAI,GAAG,QAAQ,CAAC;IAC5G,KAAK,EAAE,GAAG,CAAC;CACZ"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { C as signOut, y as onAuthStateChanged, ab as signInWithEmailAndPassword, o as getAuth, w as onIdTokenChanged } from "../../../node_modules/@firebase/auth/dist/esm2017/index-68602d24.js";
|
|
2
2
|
import "../../../node_modules/@firebase/app/dist/esm/index.esm2017.js";
|
|
3
3
|
import "../../../node_modules/@firebase/logger/dist/esm/index.esm2017.js";
|
|
4
|
+
import "tslib";
|
|
4
5
|
let auth;
|
|
5
6
|
const initAuth = (appParam) => {
|
|
6
7
|
auth = getAuth(appParam);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const USER_COLLECTION = "dcInternalUser";
|
|
2
|
+
export declare const add: <T>(table: string, el: T, ignoreDuplicates: boolean) => Promise<unknown>;
|
|
3
|
+
export declare const update: <T>(table: string, el: T) => Promise<unknown>;
|
|
4
|
+
export declare const updateAll: <T>(table: string, elArray: T[]) => Promise<unknown>;
|
|
5
|
+
export declare const addAll: <T>(table: string, elArray: T[], ignoreDuplicates: boolean) => Promise<unknown>;
|
|
6
|
+
export declare const deleteAllEl: (table: string, elIdArray: string[]) => Promise<unknown>;
|
|
7
|
+
export declare const get: <T>(table: string, id: string) => Promise<T>;
|
|
8
|
+
export declare const getAll: <T>(table: string, index?: string) => Promise<T[]>;
|
|
9
|
+
export declare const getAllIds: (table: string) => Promise<unknown>;
|
|
10
|
+
export declare const deleteAll: (table: string) => Promise<unknown>;
|
|
11
|
+
export declare const removeDatabase: (dbName: string) => Promise<unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Init indexDB for application.
|
|
14
|
+
*
|
|
15
|
+
* @param config - config for index db
|
|
16
|
+
* @param successCallback - callback function after db is successfully initialized
|
|
17
|
+
*/
|
|
18
|
+
export declare const initDB: (config: {
|
|
19
|
+
dbName: string;
|
|
20
|
+
dbVersion: number;
|
|
21
|
+
collections: {
|
|
22
|
+
name: string;
|
|
23
|
+
collectionConf: {
|
|
24
|
+
keyPath?: string;
|
|
25
|
+
};
|
|
26
|
+
}[];
|
|
27
|
+
}) => void;
|
|
28
|
+
//# sourceMappingURL=indexDB.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexDB.d.ts","sourceRoot":"","sources":["../../src/store/indexDB.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAmBhD,eAAO,MAAM,GAAG,aAAc,MAAM,2BAA2B,OAAO,qBAclE,CAAC;AAEL,eAAO,MAAM,MAAM,aAAc,MAAM,4BAWnC,CAAC;AAEL,eAAO,MAAM,SAAS,aAAc,MAAM,mCAUtC,CAAC;AAGL,eAAO,MAAM,MAAM,aAAc,MAAM,kCAAkC,OAAO,qBAU5E,CAAC;AAeL,eAAO,MAAM,WAAW,UAAW,MAAM,aAAa,MAAM,EAAE,qBAU1D,CAAC;AAGL,eAAO,MAAM,GAAG,aAAc,MAAM,MAAM,MAAM,eAK5C,CAAC;AAEL,eAAO,MAAM,MAAM,aAAc,MAAM,UAAU,MAAM,iBAwBnD,CAAC;AAEL,eAAO,MAAM,SAAS,UAAW,MAAM,qBAkBnC,CAAC;AAGL,eAAO,MAAM,SAAS,UAAW,MAAM,qBASnC,CAAC;AAGL,eAAO,MAAM,cAAc,WAAW,MAAM,qBAM1C,CAAC;AAGH;;;;;GAKG;AACH,eAAO,MAAM,MAAM,WACT;IACN,MAAM,EAAC,MAAM,CAAC;IACd,SAAS,EAAC,MAAM,CAAC;IACjB,WAAW,EAAE;QACX,MAAM,MAAM,CAAC;QACb,cAAc,EAAE;YACd,OAAO,CAAC,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,EAAE,CAAA;CACJ,SAgDF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Store } from 'mini-rx-store';
|
|
2
|
+
import { StoreConfig } from '../service-provider/service-provider-model.js';
|
|
3
|
+
export declare const initializeStore: (param: StoreConfig) => void;
|
|
4
|
+
export declare const pdStore: () => Store;
|
|
5
|
+
//# sourceMappingURL=mini-rx.store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mini-rx.store.d.ts","sourceRoot":"","sources":["../../src/store/mini-rx.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAoE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAoB5E,eAAO,MAAM,eAAe,UAAW,WAAW,SAwBjD,CAAC;AAEF,eAAO,MAAM,OAAO,QAAO,KAAc,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { LoadingState, LoadingSubTask } from '../model/spa-model.js';
|
|
3
|
+
export declare const initIndexDBSucess: (() => {
|
|
4
|
+
type: "SPA_INIT_INDEX_DB_SUCCESS";
|
|
5
|
+
}) & {
|
|
6
|
+
type: "SPA_INIT_INDEX_DB_SUCCESS";
|
|
7
|
+
};
|
|
8
|
+
export declare const loginSucess: (() => {
|
|
9
|
+
type: "SPA_LOGIN_SUCCESS";
|
|
10
|
+
}) & {
|
|
11
|
+
type: "SPA_LOGIN_SUCCESS";
|
|
12
|
+
};
|
|
13
|
+
export declare const nologin: (() => {
|
|
14
|
+
type: "SPA_NO_LOGIN";
|
|
15
|
+
}) & {
|
|
16
|
+
type: "SPA_NO_LOGIN";
|
|
17
|
+
};
|
|
18
|
+
export declare const routeAction: ((payload: string) => {
|
|
19
|
+
payload: string;
|
|
20
|
+
} & {
|
|
21
|
+
type: "SPA_APP_ROUTE";
|
|
22
|
+
}) & {
|
|
23
|
+
type: "SPA_APP_ROUTE";
|
|
24
|
+
};
|
|
25
|
+
export declare const toastAction: ((payload: {
|
|
26
|
+
txt: string | TemplateResult;
|
|
27
|
+
isError: boolean;
|
|
28
|
+
isSuccess: boolean;
|
|
29
|
+
duration?: number | undefined;
|
|
30
|
+
}) => {
|
|
31
|
+
payload: {
|
|
32
|
+
txt: string | TemplateResult;
|
|
33
|
+
isError: boolean;
|
|
34
|
+
isSuccess: boolean;
|
|
35
|
+
duration?: number | undefined;
|
|
36
|
+
};
|
|
37
|
+
} & {
|
|
38
|
+
type: "SPA_APP_TOAST";
|
|
39
|
+
}) & {
|
|
40
|
+
type: "SPA_APP_TOAST";
|
|
41
|
+
};
|
|
42
|
+
export declare const updateInternetOffline: ((payload: boolean) => {
|
|
43
|
+
payload: boolean;
|
|
44
|
+
} & {
|
|
45
|
+
type: "SPA_APP_UPDATE_INTERNET_OFFLINE";
|
|
46
|
+
}) & {
|
|
47
|
+
type: "SPA_APP_UPDATE_INTERNET_OFFLINE";
|
|
48
|
+
};
|
|
49
|
+
export declare const addLoadingState: ((payload: LoadingState) => {
|
|
50
|
+
payload: LoadingState;
|
|
51
|
+
} & {
|
|
52
|
+
type: "SPA_APP_ADD_LOADING";
|
|
53
|
+
}) & {
|
|
54
|
+
type: "SPA_APP_ADD_LOADING";
|
|
55
|
+
};
|
|
56
|
+
export declare const changeSubTask: ((payload: {
|
|
57
|
+
loadingActionId: string;
|
|
58
|
+
newTaskState: LoadingSubTask;
|
|
59
|
+
}) => {
|
|
60
|
+
payload: {
|
|
61
|
+
loadingActionId: string;
|
|
62
|
+
newTaskState: LoadingSubTask;
|
|
63
|
+
};
|
|
64
|
+
} & {
|
|
65
|
+
type: "SPA_APP_CHANGE_SUB_LOADING";
|
|
66
|
+
}) & {
|
|
67
|
+
type: "SPA_APP_CHANGE_SUB_LOADING";
|
|
68
|
+
};
|
|
69
|
+
export declare const removeLoadingState: ((payload: string) => {
|
|
70
|
+
payload: string;
|
|
71
|
+
} & {
|
|
72
|
+
type: "SPA_APP_REMOVE_LOADING";
|
|
73
|
+
}) & {
|
|
74
|
+
type: "SPA_APP_REMOVE_LOADING";
|
|
75
|
+
};
|
|
76
|
+
export declare const updateNewNotificationToken: ((payload: {
|
|
77
|
+
messagingToken: string;
|
|
78
|
+
}) => {
|
|
79
|
+
payload: {
|
|
80
|
+
messagingToken: string;
|
|
81
|
+
};
|
|
82
|
+
} & {
|
|
83
|
+
type: "UPDATE_NOTIFICATION_TOKEN";
|
|
84
|
+
}) & {
|
|
85
|
+
type: "UPDATE_NOTIFICATION_TOKEN";
|
|
86
|
+
};
|
|
87
|
+
export declare const updateNewNotificationTokenSuccess: ((payload: {
|
|
88
|
+
messagingToken: string;
|
|
89
|
+
}) => {
|
|
90
|
+
payload: {
|
|
91
|
+
messagingToken: string;
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
type: "UPDATE_NOTIFICATION_TOKEN_SUCCESS";
|
|
95
|
+
}) & {
|
|
96
|
+
type: "UPDATE_NOTIFICATION_TOKEN_SUCCESS";
|
|
97
|
+
};
|
|
98
|
+
export declare const updateNewNotificationTokenFail: ((payload: Error) => {
|
|
99
|
+
payload: Error;
|
|
100
|
+
} & {
|
|
101
|
+
type: "UPDATE_NOTIFICATION_TOKEN_FAIL";
|
|
102
|
+
}) & {
|
|
103
|
+
type: "UPDATE_NOTIFICATION_TOKEN_FAIL";
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=spa-app-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spa-app-actions.d.ts","sourceRoot":"","sources":["../../src/store/spa-app-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGrE,eAAO,MAAM,iBAAiB;;;;CAAsC,CAAC;AACrE,eAAO,MAAM,WAAW;;;;CAA8B,CAAC;AACvD,eAAO,MAAM,OAAO;;;;CAAyB,CAAC;AAE9C,eAAO,MAAM,WAAW;;;;;;CAA6C,CAAC;AAEtE,eAAO,MAAM,WAAW;SACjB,MAAM,GAAG,cAAc;aACnB,OAAO;eACL,OAAO;;;;aAFb,MAAM,GAAG,cAAc;iBACnB,OAAO;mBACL,OAAO;;;;;;;CAEf,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;;;;CAAgE,CAAC;AAEnG,eAAO,MAAM,eAAe;;;;;;CAAyD,CAAC;AACtF,eAAO,MAAM,aAAa;qBACP,MAAM;kBACT,cAAc;;;yBADX,MAAM;sBACT,cAAc;;;;;;CACzB,CAAC;AACN,eAAO,MAAM,kBAAkB;;;;;;CAAsD,CAAC;AAGtF,eAAO,MAAM,0BAA0B;oBACrB,MAAM;;;wBAAN,MAAM;;;;;;CACnB,CAAC;AACN,eAAO,MAAM,iCAAiC;oBAC5B,MAAM;;;wBAAN,MAAM;;;;;;CACnB,CAAC;AACN,eAAO,MAAM,8BAA8B;;;;;;CAA6D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const setRouteElement: (param: HTMLElement) => void;
|
|
2
|
+
export declare const appRouteEffect: import('rxjs').Observable<{
|
|
3
|
+
payload: string;
|
|
4
|
+
} & {
|
|
5
|
+
type: "SPA_APP_ROUTE";
|
|
6
|
+
}> & import('mini-rx-store/lib/models.js').HasEffectMetadata;
|
|
7
|
+
export declare const appToastEffect: import('rxjs').Observable<{
|
|
8
|
+
payload: {
|
|
9
|
+
txt: string | import('lit').TemplateResult<1 | 2>;
|
|
10
|
+
isError: boolean;
|
|
11
|
+
isSuccess: boolean;
|
|
12
|
+
duration?: number | undefined;
|
|
13
|
+
};
|
|
14
|
+
} & {
|
|
15
|
+
type: "SPA_APP_TOAST";
|
|
16
|
+
}> & import('mini-rx-store/lib/models.js').HasEffectMetadata;
|
|
17
|
+
export declare const registerNotificationTokenSuccessEffect: import('rxjs').Observable<{
|
|
18
|
+
payload: {
|
|
19
|
+
messagingToken: string;
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
type: "UPDATE_NOTIFICATION_TOKEN_SUCCESS";
|
|
23
|
+
}> & import('mini-rx-store/lib/models.js').HasEffectMetadata;
|
|
24
|
+
//# sourceMappingURL=spa-app-effects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spa-app-effects.d.ts","sourceRoot":"","sources":["../../src/store/spa-app-effects.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,UAAW,WAAW,SAEjD,CAAA;AAKD,eAAO,MAAM,cAAc;;;;4DAiB1B,CAAC;AAGF,eAAO,MAAM,cAAc;;;;;;;;;4DAsB1B,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;4DASlD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoadingState } from '../model/spa-model.js';
|
|
2
|
+
export interface SpaAppState {
|
|
3
|
+
offline?: boolean;
|
|
4
|
+
loadingState: LoadingState[];
|
|
5
|
+
lastRoutes?: any[];
|
|
6
|
+
initIndexDB?: boolean;
|
|
7
|
+
userLogin?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const spaAppReducer: import('ts-action').Reducer<SpaAppState>;
|
|
10
|
+
//# sourceMappingURL=spa-app-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spa-app-reducer.d.ts","sourceRoot":"","sources":["../../src/store/spa-app-reducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAMD,eAAO,MAAM,aAAa,0CAoEzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getLoadingSelector: import('mini-rx-store/lib/selector.js').Selector<object, import('../model/spa-model.js').LoadingState[]>;
|
|
2
|
+
export declare const getOfflineSelector: import('mini-rx-store/lib/selector.js').Selector<object, boolean>;
|
|
3
|
+
export declare const getInitStatusSelector: import('mini-rx-store/lib/selector.js').Selector<object, {
|
|
4
|
+
login: boolean | undefined;
|
|
5
|
+
indexedDB: boolean | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=spa-app-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spa-app-selector.d.ts","sourceRoot":"","sources":["../../src/store/spa-app-selector.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB,0GAqB9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,mEAG9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;EAMjC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/web-components';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
render: (args: import('@storybook/types').Args) => import('lit').TemplateResult<1>;
|
|
5
|
+
argTypes: {
|
|
6
|
+
backgroundColor: {
|
|
7
|
+
control: string;
|
|
8
|
+
};
|
|
9
|
+
onClick: {
|
|
10
|
+
action: string;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj;
|
|
22
|
+
export declare const NoModalState: Story;
|
|
23
|
+
export declare const ModalState: Story;
|
|
24
|
+
export declare const CustomTxtState: Story;
|
|
25
|
+
export declare const BackgroundState: Story;
|
|
26
|
+
export declare const ModalBackgroundState: Story;
|
|
27
|
+
export declare const ModalWithBackgroundState: Story;
|
|
28
|
+
export declare const ModalStateWithSubTasks: Story;
|
|
29
|
+
export declare const BackgroundWithSubTasks: Story;
|
|
30
|
+
//# sourceMappingURL=pd-loading-state.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pd-loading-state.stories.d.ts","sourceRoot":"","sources":["../../src/stories/pd-loading-state.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,+BAA+B,CAAC;AAIvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CA4CM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAItB,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAO7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAQlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAQtC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAyBpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KA0BpC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/web-components';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
render: (args: import('@storybook/types').Args) => import('lit').TemplateResult<1>;
|
|
5
|
+
argTypes: {
|
|
6
|
+
backgroundColor: {
|
|
7
|
+
control: string;
|
|
8
|
+
};
|
|
9
|
+
onClick: {
|
|
10
|
+
action: string;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj;
|
|
22
|
+
export declare const SuccessToast: Story;
|
|
23
|
+
//# sourceMappingURL=pd-toast.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pd-toast.stories.d.ts","sourceRoot":"","sources":["../../src/stories/pd-toast.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,uBAAuB,CAAC;AAI/B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAmBM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAItB,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC"}
|