forked from olcxjas-softworks/LarpixClient
Add back gesture support
This commit is contained in:
parent
3b2d474f3d
commit
38f8c147ae
1250 changed files with 39332 additions and 21 deletions
282
node_modules/@capacitor/app/dist/esm/definitions.d.ts
generated
vendored
Normal file
282
node_modules/@capacitor/app/dist/esm/definitions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,282 @@
|
|||
import type { PluginListenerHandle } from '@capacitor/core';
|
||||
declare module '@capacitor/cli' {
|
||||
interface PluginsConfig {
|
||||
App?: {
|
||||
/**
|
||||
* Disable the plugin's default back button handling.
|
||||
*
|
||||
* Only available for Android.
|
||||
*
|
||||
* @since 7.1.0
|
||||
* @default false
|
||||
* @example true
|
||||
*/
|
||||
disableBackButtonHandler?: boolean;
|
||||
};
|
||||
}
|
||||
}
|
||||
export interface AppInfo {
|
||||
/**
|
||||
* The name of the app.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The identifier of the app.
|
||||
* On iOS it's the Bundle Identifier.
|
||||
* On Android it's the Application ID
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* The build version.
|
||||
* On iOS it's the CFBundleVersion.
|
||||
* On Android it's the versionCode.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
build: string;
|
||||
/**
|
||||
* The app version.
|
||||
* On iOS it's the CFBundleShortVersionString.
|
||||
* On Android it's package's versionName.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
version: string;
|
||||
}
|
||||
export interface AppState {
|
||||
/**
|
||||
* Whether the app is active or not.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
isActive: boolean;
|
||||
}
|
||||
export interface URLOpenListenerEvent {
|
||||
/**
|
||||
* The URL the app was opened with.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* The source application opening the app (iOS only)
|
||||
* https://developer.apple.com/documentation/uikit/uiapplicationopenurloptionskey/1623128-sourceapplication
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
iosSourceApplication?: any;
|
||||
/**
|
||||
* Whether the app should open the passed document in-place
|
||||
* or must copy it first.
|
||||
* https://developer.apple.com/documentation/uikit/uiapplicationopenurloptionskey/1623123-openinplace
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
iosOpenInPlace?: boolean;
|
||||
}
|
||||
export interface AppLaunchUrl {
|
||||
/**
|
||||
* The url used to open the app.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
export interface RestoredListenerEvent {
|
||||
/**
|
||||
* The pluginId this result corresponds to. For example, `Camera`.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
pluginId: string;
|
||||
/**
|
||||
* The methodName this result corresponds to. For example, `getPhoto`
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
methodName: string;
|
||||
/**
|
||||
* The result data passed from the plugin. This would be the result you'd
|
||||
* expect from normally calling the plugin method. For example, `CameraPhoto`
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
data?: any;
|
||||
/**
|
||||
* Boolean indicating if the plugin call succeeded.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
success: boolean;
|
||||
/**
|
||||
* If the plugin call didn't succeed, it will contain the error message.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
error?: {
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
export interface BackButtonListenerEvent {
|
||||
/**
|
||||
* Indicates whether the browser can go back in history.
|
||||
* False when the history stack is on the first entry.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
canGoBack: boolean;
|
||||
}
|
||||
export interface ToggleBackButtonHandlerOptions {
|
||||
/**
|
||||
* Indicates whether to enable or disable default back button handling.
|
||||
*
|
||||
* @since 7.1.0
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
export type StateChangeListener = (state: AppState) => void;
|
||||
export type URLOpenListener = (event: URLOpenListenerEvent) => void;
|
||||
export type RestoredListener = (event: RestoredListenerEvent) => void;
|
||||
export type BackButtonListener = (event: BackButtonListenerEvent) => void;
|
||||
export interface AppLanguageCode {
|
||||
/**
|
||||
* Two or Three character language code.
|
||||
*
|
||||
* @since 8.1.0
|
||||
*/
|
||||
value: string;
|
||||
}
|
||||
export interface AppPlugin {
|
||||
/**
|
||||
* Force exit the app. This should only be used in conjunction with the `backButton` handler for Android to
|
||||
* exit the app when navigation is complete.
|
||||
*
|
||||
* Ionic handles this itself so you shouldn't need to call this if using Ionic.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
exitApp(): Promise<void>;
|
||||
/**
|
||||
* Return information about the app.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
getInfo(): Promise<AppInfo>;
|
||||
/**
|
||||
* Gets the current app state.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
getState(): Promise<AppState>;
|
||||
/**
|
||||
* Get the URL the app was launched with, if any.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
getLaunchUrl(): Promise<AppLaunchUrl | undefined>;
|
||||
/**
|
||||
* Minimizes the application.
|
||||
*
|
||||
* Only available for Android.
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
minimizeApp(): Promise<void>;
|
||||
/**
|
||||
* Get the app specific language locale code.
|
||||
*
|
||||
* @since 8.1.0
|
||||
*/
|
||||
getAppLanguage(): Promise<AppLanguageCode>;
|
||||
/**
|
||||
* Enables or disables the plugin's back button handling during runtime.
|
||||
*
|
||||
* Only available for Android.
|
||||
*
|
||||
* @since 7.1.0
|
||||
*/
|
||||
toggleBackButtonHandler(options: ToggleBackButtonHandlerOptions): Promise<void>;
|
||||
/**
|
||||
* Listen for changes in the app or the activity states.
|
||||
*
|
||||
* On iOS it's fired when the native [UIApplication.willResignActiveNotification](https://developer.apple.com/documentation/uikit/uiapplication/1622973-willresignactivenotification) and
|
||||
* [UIApplication.didBecomeActiveNotification](https://developer.apple.com/documentation/uikit/uiapplication/1622953-didbecomeactivenotification) events get fired.
|
||||
* On Android it's fired when the Capacitor's Activity [onResume](https://developer.android.com/reference/android/app/Activity#onResume()) and [onStop](https://developer.android.com/reference/android/app/Activity#onStop()) methods gets called.
|
||||
* On Web it's fired when the document's visibilitychange gets fired.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
addListener(eventName: 'appStateChange', listenerFunc: StateChangeListener): Promise<PluginListenerHandle>;
|
||||
/**
|
||||
* Listen for when the app or the activity are paused.
|
||||
*
|
||||
* On iOS it's fired when the native [UIApplication.didEnterBackgroundNotification](https://developer.apple.com/documentation/uikit/uiapplication/1623071-didenterbackgroundnotification) event gets fired.
|
||||
* On Android it's fired when the Capacitor's Activity [onPause](https://developer.android.com/reference/android/app/Activity#onPause()) method gets called.
|
||||
* On Web it's fired when the document's visibilitychange gets fired and document.hidden is true.
|
||||
*
|
||||
* @since 4.1.0
|
||||
*/
|
||||
addListener(eventName: 'pause', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
||||
/**
|
||||
* Listen for when the app or activity are resumed.
|
||||
*
|
||||
* On iOS it's fired when the native [UIApplication.willEnterForegroundNotification](https://developer.apple.com/documentation/uikit/uiapplication/1622944-willenterforegroundnotification) event gets fired.
|
||||
* On Android it's fired when the Capacitor's Activity [onResume](https://developer.android.com/reference/android/app/Activity#onResume()) method gets called,
|
||||
* but only after resume has fired first.
|
||||
* On Web it's fired when the document's visibilitychange gets fired and document.hidden is false.
|
||||
*
|
||||
* @since 4.1.0
|
||||
*/
|
||||
addListener(eventName: 'resume', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
||||
/**
|
||||
* Listen for url open events for the app. This handles both custom URL scheme links as well
|
||||
* as URLs your app handles (Universal Links on iOS and App Links on Android)
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
addListener(eventName: 'appUrlOpen', listenerFunc: URLOpenListener): Promise<PluginListenerHandle>;
|
||||
/**
|
||||
* If the app was launched with previously persisted plugin call data, such as on Android
|
||||
* when an activity returns to an app that was closed, this call will return any data
|
||||
* the app was launched with, converted into the form of a result from a plugin call.
|
||||
*
|
||||
* On Android, due to memory constraints on low-end devices, it's possible
|
||||
* that, if your app launches a new activity, your app will be terminated by
|
||||
* the operating system in order to reduce memory consumption.
|
||||
*
|
||||
* For example, that means the Camera API, which launches a new Activity to
|
||||
* take a photo, may not be able to return data back to your app.
|
||||
*
|
||||
* To avoid this, Capacitor stores all restored activity results on launch.
|
||||
* You should add a listener for `appRestoredResult` in order to handle any
|
||||
* plugin call results that were delivered when your app was not running.
|
||||
*
|
||||
* Once you have that result (if any), you can update the UI to restore a
|
||||
* logical experience for the user, such as navigating or selecting the
|
||||
* proper tab.
|
||||
*
|
||||
* We recommend every Android app using plugins that rely on external
|
||||
* Activities (for example, Camera) to have this event and process handled.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
addListener(eventName: 'appRestoredResult', listenerFunc: RestoredListener): Promise<PluginListenerHandle>;
|
||||
/**
|
||||
* Listen for the hardware back button event (Android only). Listening for this event will disable the
|
||||
* default back button behaviour, so you might want to call `window.history.back()` manually.
|
||||
* If you want to close the app, call `App.exitApp()`.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
addListener(eventName: 'backButton', listenerFunc: BackButtonListener): Promise<PluginListenerHandle>;
|
||||
/**
|
||||
* Remove all native listeners for this plugin
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
removeAllListeners(): Promise<void>;
|
||||
}
|
||||
3
node_modules/@capacitor/app/dist/esm/definitions.js
generated
vendored
Normal file
3
node_modules/@capacitor/app/dist/esm/definitions.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/// <reference types="@capacitor/cli" />
|
||||
export {};
|
||||
//# sourceMappingURL=definitions.js.map
|
||||
1
node_modules/@capacitor/app/dist/esm/definitions.js.map
generated
vendored
Normal file
1
node_modules/@capacitor/app/dist/esm/definitions.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4
node_modules/@capacitor/app/dist/esm/index.d.ts
generated
vendored
Normal file
4
node_modules/@capacitor/app/dist/esm/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import type { AppPlugin } from './definitions';
|
||||
declare const App: AppPlugin;
|
||||
export * from './definitions';
|
||||
export { App };
|
||||
7
node_modules/@capacitor/app/dist/esm/index.js
generated
vendored
Normal file
7
node_modules/@capacitor/app/dist/esm/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { registerPlugin } from '@capacitor/core';
|
||||
const App = registerPlugin('App', {
|
||||
web: () => import('./web').then((m) => new m.AppWeb()),
|
||||
});
|
||||
export * from './definitions';
|
||||
export { App };
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@capacitor/app/dist/esm/index.js.map
generated
vendored
Normal file
1
node_modules/@capacitor/app/dist/esm/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,GAAG,GAAG,cAAc,CAAY,KAAK,EAAE;IAC3C,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { AppPlugin } from './definitions';\n\nconst App = registerPlugin<AppPlugin>('App', {\n web: () => import('./web').then((m) => new m.AppWeb()),\n});\n\nexport * from './definitions';\nexport { App };\n"]}
|
||||
13
node_modules/@capacitor/app/dist/esm/web.d.ts
generated
vendored
Normal file
13
node_modules/@capacitor/app/dist/esm/web.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { WebPlugin } from '@capacitor/core';
|
||||
import type { AppInfo, AppPlugin, AppLaunchUrl, AppState, AppLanguageCode } from './definitions';
|
||||
export declare class AppWeb extends WebPlugin implements AppPlugin {
|
||||
constructor();
|
||||
exitApp(): Promise<void>;
|
||||
getInfo(): Promise<AppInfo>;
|
||||
getLaunchUrl(): Promise<AppLaunchUrl>;
|
||||
getState(): Promise<AppState>;
|
||||
minimizeApp(): Promise<void>;
|
||||
toggleBackButtonHandler(): Promise<void>;
|
||||
private handleVisibilityChange;
|
||||
getAppLanguage(): Promise<AppLanguageCode>;
|
||||
}
|
||||
43
node_modules/@capacitor/app/dist/esm/web.js
generated
vendored
Normal file
43
node_modules/@capacitor/app/dist/esm/web.js
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import { WebPlugin } from '@capacitor/core';
|
||||
export class AppWeb extends WebPlugin {
|
||||
constructor() {
|
||||
super();
|
||||
this.handleVisibilityChange = () => {
|
||||
const data = {
|
||||
isActive: document.hidden !== true,
|
||||
};
|
||||
this.notifyListeners('appStateChange', data);
|
||||
if (document.hidden) {
|
||||
this.notifyListeners('pause', null);
|
||||
}
|
||||
else {
|
||||
this.notifyListeners('resume', null);
|
||||
}
|
||||
};
|
||||
document.addEventListener('visibilitychange', this.handleVisibilityChange, false);
|
||||
}
|
||||
exitApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getInfo() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getLaunchUrl() {
|
||||
return { url: '' };
|
||||
}
|
||||
async getState() {
|
||||
return { isActive: document.hidden !== true };
|
||||
}
|
||||
async minimizeApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async toggleBackButtonHandler() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getAppLanguage() {
|
||||
return {
|
||||
value: navigator.language.split('-')[0].toLowerCase(),
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=web.js.map
|
||||
1
node_modules/@capacitor/app/dist/esm/web.js.map
generated
vendored
Normal file
1
node_modules/@capacitor/app/dist/esm/web.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;QACE,KAAK,EAAE,CAAC;QA4BF,2BAAsB,GAAG,GAAG,EAAE;YACpC,MAAM,IAAI,GAAG;gBACX,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI;aACnC,CAAC;YAEF,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;YAC7C,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACpB,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACtC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC;QACH,CAAC,CAAC;QAtCA,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;IACpF,CAAC;IAED,OAAO;QACL,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,uBAAuB;QAC3B,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAeD,KAAK,CAAC,cAAc;QAClB,OAAO;YACL,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;SACtD,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { AppInfo, AppPlugin, AppLaunchUrl, AppState, AppLanguageCode } from './definitions';\n\nexport class AppWeb extends WebPlugin implements AppPlugin {\n constructor() {\n super();\n document.addEventListener('visibilitychange', this.handleVisibilityChange, false);\n }\n\n exitApp(): Promise<void> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async getInfo(): Promise<AppInfo> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async getLaunchUrl(): Promise<AppLaunchUrl> {\n return { url: '' };\n }\n\n async getState(): Promise<AppState> {\n return { isActive: document.hidden !== true };\n }\n\n async minimizeApp(): Promise<void> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async toggleBackButtonHandler(): Promise<void> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n private handleVisibilityChange = () => {\n const data = {\n isActive: document.hidden !== true,\n };\n\n this.notifyListeners('appStateChange', data);\n if (document.hidden) {\n this.notifyListeners('pause', null);\n } else {\n this.notifyListeners('resume', null);\n }\n };\n\n async getAppLanguage(): Promise<AppLanguageCode> {\n return {\n value: navigator.language.split('-')[0].toLowerCase(),\n };\n }\n}\n"]}
|
||||
57
node_modules/@capacitor/app/dist/plugin.cjs.js
generated
vendored
Normal file
57
node_modules/@capacitor/app/dist/plugin.cjs.js
generated
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
'use strict';
|
||||
|
||||
var core = require('@capacitor/core');
|
||||
|
||||
const App = core.registerPlugin('App', {
|
||||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.AppWeb()),
|
||||
});
|
||||
|
||||
class AppWeb extends core.WebPlugin {
|
||||
constructor() {
|
||||
super();
|
||||
this.handleVisibilityChange = () => {
|
||||
const data = {
|
||||
isActive: document.hidden !== true,
|
||||
};
|
||||
this.notifyListeners('appStateChange', data);
|
||||
if (document.hidden) {
|
||||
this.notifyListeners('pause', null);
|
||||
}
|
||||
else {
|
||||
this.notifyListeners('resume', null);
|
||||
}
|
||||
};
|
||||
document.addEventListener('visibilitychange', this.handleVisibilityChange, false);
|
||||
}
|
||||
exitApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getInfo() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getLaunchUrl() {
|
||||
return { url: '' };
|
||||
}
|
||||
async getState() {
|
||||
return { isActive: document.hidden !== true };
|
||||
}
|
||||
async minimizeApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async toggleBackButtonHandler() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getAppLanguage() {
|
||||
return {
|
||||
value: navigator.language.split('-')[0].toLowerCase(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
var web = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
AppWeb: AppWeb
|
||||
});
|
||||
|
||||
exports.App = App;
|
||||
//# sourceMappingURL=plugin.cjs.js.map
|
||||
1
node_modules/@capacitor/app/dist/plugin.cjs.js.map
generated
vendored
Normal file
1
node_modules/@capacitor/app/dist/plugin.cjs.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst App = registerPlugin('App', {\n web: () => import('./web').then((m) => new m.AppWeb()),\n});\nexport * from './definitions';\nexport { App };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class AppWeb extends WebPlugin {\n constructor() {\n super();\n this.handleVisibilityChange = () => {\n const data = {\n isActive: document.hidden !== true,\n };\n this.notifyListeners('appStateChange', data);\n if (document.hidden) {\n this.notifyListeners('pause', null);\n }\n else {\n this.notifyListeners('resume', null);\n }\n };\n document.addEventListener('visibilitychange', this.handleVisibilityChange, false);\n }\n exitApp() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getInfo() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getLaunchUrl() {\n return { url: '' };\n }\n async getState() {\n return { isActive: document.hidden !== true };\n }\n async minimizeApp() {\n throw this.unimplemented('Not implemented on web.');\n }\n async toggleBackButtonHandler() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getAppLanguage() {\n return {\n value: navigator.language.split('-')[0].toLowerCase(),\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,GAAG,GAAGA,mBAAc,CAAC,KAAK,EAAE;AAClC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1D,CAAC;;ACFM,MAAM,MAAM,SAASC,cAAS,CAAC;AACtC,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,QAAQ,IAAI,CAAC,sBAAsB,GAAG,MAAM;AAC5C,YAAY,MAAM,IAAI,GAAG;AACzB,gBAAgB,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI;AAClD,aAAa;AACb,YAAY,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,IAAI,CAAC;AACxD,YAAY,IAAI,QAAQ,CAAC,MAAM,EAAE;AACjC,gBAAgB,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC;AACnD,YAAY;AACZ,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC;AACpD,YAAY;AACZ,QAAQ,CAAC;AACT,QAAQ,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC;AACzF,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE;AAC1B,IAAI;AACJ,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI,EAAE;AACrD,IAAI;AACJ,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,uBAAuB,GAAG;AACpC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,cAAc,GAAG;AAC3B,QAAQ,OAAO;AACf,YAAY,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AACjE,SAAS;AACT,IAAI;AACJ;;;;;;;;;"}
|
||||
60
node_modules/@capacitor/app/dist/plugin.js
generated
vendored
Normal file
60
node_modules/@capacitor/app/dist/plugin.js
generated
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
var capacitorApp = (function (exports, core) {
|
||||
'use strict';
|
||||
|
||||
const App = core.registerPlugin('App', {
|
||||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.AppWeb()),
|
||||
});
|
||||
|
||||
class AppWeb extends core.WebPlugin {
|
||||
constructor() {
|
||||
super();
|
||||
this.handleVisibilityChange = () => {
|
||||
const data = {
|
||||
isActive: document.hidden !== true,
|
||||
};
|
||||
this.notifyListeners('appStateChange', data);
|
||||
if (document.hidden) {
|
||||
this.notifyListeners('pause', null);
|
||||
}
|
||||
else {
|
||||
this.notifyListeners('resume', null);
|
||||
}
|
||||
};
|
||||
document.addEventListener('visibilitychange', this.handleVisibilityChange, false);
|
||||
}
|
||||
exitApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getInfo() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getLaunchUrl() {
|
||||
return { url: '' };
|
||||
}
|
||||
async getState() {
|
||||
return { isActive: document.hidden !== true };
|
||||
}
|
||||
async minimizeApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async toggleBackButtonHandler() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getAppLanguage() {
|
||||
return {
|
||||
value: navigator.language.split('-')[0].toLowerCase(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
var web = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
AppWeb: AppWeb
|
||||
});
|
||||
|
||||
exports.App = App;
|
||||
|
||||
return exports;
|
||||
|
||||
})({}, capacitorExports);
|
||||
//# sourceMappingURL=plugin.js.map
|
||||
1
node_modules/@capacitor/app/dist/plugin.js.map
generated
vendored
Normal file
1
node_modules/@capacitor/app/dist/plugin.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst App = registerPlugin('App', {\n web: () => import('./web').then((m) => new m.AppWeb()),\n});\nexport * from './definitions';\nexport { App };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class AppWeb extends WebPlugin {\n constructor() {\n super();\n this.handleVisibilityChange = () => {\n const data = {\n isActive: document.hidden !== true,\n };\n this.notifyListeners('appStateChange', data);\n if (document.hidden) {\n this.notifyListeners('pause', null);\n }\n else {\n this.notifyListeners('resume', null);\n }\n };\n document.addEventListener('visibilitychange', this.handleVisibilityChange, false);\n }\n exitApp() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getInfo() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getLaunchUrl() {\n return { url: '' };\n }\n async getState() {\n return { isActive: document.hidden !== true };\n }\n async minimizeApp() {\n throw this.unimplemented('Not implemented on web.');\n }\n async toggleBackButtonHandler() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getAppLanguage() {\n return {\n value: navigator.language.split('-')[0].toLowerCase(),\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,GAAG,GAAGA,mBAAc,CAAC,KAAK,EAAE;IAClC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,CAAC;;ICFM,MAAM,MAAM,SAASC,cAAS,CAAC;IACtC,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE;IACf,QAAQ,IAAI,CAAC,sBAAsB,GAAG,MAAM;IAC5C,YAAY,MAAM,IAAI,GAAG;IACzB,gBAAgB,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI;IAClD,aAAa;IACb,YAAY,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,IAAI,CAAC;IACxD,YAAY,IAAI,QAAQ,CAAC,MAAM,EAAE;IACjC,gBAAgB,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC;IACnD,YAAY;IACZ,iBAAiB;IACjB,gBAAgB,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC;IACpD,YAAY;IACZ,QAAQ,CAAC;IACT,QAAQ,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC;IACzF,IAAI;IACJ,IAAI,OAAO,GAAG;IACd,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,OAAO,GAAG;IACpB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,YAAY,GAAG;IACzB,QAAQ,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE;IAC1B,IAAI;IACJ,IAAI,MAAM,QAAQ,GAAG;IACrB,QAAQ,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI,EAAE;IACrD,IAAI;IACJ,IAAI,MAAM,WAAW,GAAG;IACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,uBAAuB,GAAG;IACpC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,cAAc,GAAG;IAC3B,QAAQ,OAAO;IACf,YAAY,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;IACjE,SAAS;IACT,IAAI;IACJ;;;;;;;;;;;;;;;"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue