mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
chore(): remove unused src directory
This commit is contained in:
parent
616f244698
commit
44f1f1d4a4
13
dist/src/index.d.ts
vendored
13
dist/src/index.d.ts
vendored
@ -1,13 +0,0 @@
|
||||
import { ActionSheet } from './plugins/actionsheet';
|
||||
import { BLE } from './plugins/ble';
|
||||
import { Camera } from './plugins/camera';
|
||||
import { Calendar } from './plugins/calendar';
|
||||
import { Contacts } from './plugins/contacts';
|
||||
import { Device } from './plugins/device';
|
||||
import { Facebook } from './plugins/facebook';
|
||||
import { Geolocation } from './plugins/geolocation';
|
||||
import { Push } from './plugins/push';
|
||||
import { StatusBar } from './plugins/statusbar';
|
||||
import { Toast } from './plugins/toast';
|
||||
import { TouchID } from './plugins/touchid';
|
||||
export { ActionSheet, BLE, Camera, Calendar, Contacts, Device, Facebook, Geolocation, Push, StatusBar, Toast, TouchID };
|
53
dist/src/index.js
vendored
53
dist/src/index.js
vendored
@ -1,53 +0,0 @@
|
||||
var ng1_1 = require('./ng1');
|
||||
ng1_1.initAngular1();
|
||||
var DEVICE_READY_TIMEOUT = 2000;
|
||||
var actionsheet_1 = require('./plugins/actionsheet');
|
||||
exports.ActionSheet = actionsheet_1.ActionSheet;
|
||||
var ble_1 = require('./plugins/ble');
|
||||
exports.BLE = ble_1.BLE;
|
||||
var camera_1 = require('./plugins/camera');
|
||||
exports.Camera = camera_1.Camera;
|
||||
var calendar_1 = require('./plugins/calendar');
|
||||
exports.Calendar = calendar_1.Calendar;
|
||||
var contacts_1 = require('./plugins/contacts');
|
||||
exports.Contacts = contacts_1.Contacts;
|
||||
var device_1 = require('./plugins/device');
|
||||
exports.Device = device_1.Device;
|
||||
var facebook_1 = require('./plugins/facebook');
|
||||
exports.Facebook = facebook_1.Facebook;
|
||||
var geolocation_1 = require('./plugins/geolocation');
|
||||
exports.Geolocation = geolocation_1.Geolocation;
|
||||
var push_1 = require('./plugins/push');
|
||||
exports.Push = push_1.Push;
|
||||
var statusbar_1 = require('./plugins/statusbar');
|
||||
exports.StatusBar = statusbar_1.StatusBar;
|
||||
var toast_1 = require('./plugins/toast');
|
||||
exports.Toast = toast_1.Toast;
|
||||
var touchid_1 = require('./plugins/touchid');
|
||||
exports.TouchID = touchid_1.TouchID;
|
||||
window['IonicNative'] = {
|
||||
ActionSheet: actionsheet_1.ActionSheet,
|
||||
BLE: ble_1.BLE,
|
||||
Camera: camera_1.Camera,
|
||||
Calendar: calendar_1.Calendar,
|
||||
Contacts: contacts_1.Contacts,
|
||||
Device: device_1.Device,
|
||||
Facebook: facebook_1.Facebook,
|
||||
Geolocation: geolocation_1.Geolocation,
|
||||
Push: push_1.Push,
|
||||
StatusBar: statusbar_1.StatusBar,
|
||||
Toast: toast_1.Toast,
|
||||
TouchID: touchid_1.TouchID
|
||||
};
|
||||
var before = +new Date;
|
||||
var didFireReady = false;
|
||||
document.addEventListener('deviceready', function () {
|
||||
console.log('DEVICE READY FIRED AFTER', (+new Date - before), 'ms');
|
||||
didFireReady = true;
|
||||
});
|
||||
setTimeout(function () {
|
||||
if (!didFireReady && window.cordova) {
|
||||
console.warn('Native: deviceready did not fire within ' + DEVICE_READY_TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.');
|
||||
}
|
||||
}, DEVICE_READY_TIMEOUT);
|
||||
//# sourceMappingURL=index.js.map
|
1
dist/src/index.js.map
vendored
1
dist/src/index.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,oBAA2B,OAAO,CAAC,CAAA;AACnC,kBAAY,EAAE,CAAC;AAEf,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAKlC,4BAA0B,uBAAuB,CAAC,CAAA;AAchD,mBAAW;AAbb,oBAAkB,eAAe,CAAC,CAAA;AAchC,WAAG;AAbL,uBAAqB,kBAAkB,CAAC,CAAA;AActC,cAAM;AAbR,yBAAuB,oBAAoB,CAAC,CAAA;AAc1C,gBAAQ;AAbV,yBAAuB,oBAAoB,CAAC,CAAA;AAc1C,gBAAQ;AAbV,uBAAqB,kBAAkB,CAAC,CAAA;AActC,cAAM;AAbR,yBAAuB,oBAAoB,CAAC,CAAA;AAc1C,gBAAQ;AAbV,4BAA0B,uBAAuB,CAAC,CAAA;AAchD,mBAAW;AAbb,qBAAmB,gBAAgB,CAAC,CAAA;AAclC,YAAI;AAbN,0BAAwB,qBAAqB,CAAC,CAAA;AAc5C,iBAAS;AAbX,sBAAoB,iBAAiB,CAAC,CAAA;AAcpC,aAAK;AAbP,wBAAsB,mBAAmB,CAAC,CAAA;AAcxC,eAAO;AAIT,MAAM,CAAC,aAAa,CAAC,GAAG;IACtB,WAAW,EAAE,yBAAW;IACxB,GAAG,EAAE,SAAG;IACR,MAAM,EAAE,eAAM;IACd,QAAQ,EAAE,mBAAQ;IAClB,QAAQ,EAAE,mBAAQ;IAClB,MAAM,EAAE,eAAM;IACd,QAAQ,EAAE,mBAAQ;IAClB,WAAW,EAAE,yBAAW;IACxB,IAAI,EAAE,WAAI;IACV,SAAS,EAAE,qBAAS;IACpB,KAAK,EAAE,aAAK;IACZ,OAAO,EAAE,iBAAO;CACjB,CAAA;AAMD,IAAI,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC;AAEvB,IAAI,YAAY,GAAG,KAAK,CAAC;AACzB,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE;IACvC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,CAAC,CAAC,IAAI,IAAI,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,CAAA;IACnE,YAAY,GAAG,IAAI,CAAC;AACtB,CAAC,CAAC,CAAA;AAEF,UAAU,CAAC;IACT,EAAE,CAAA,CAAC,CAAC,YAAY,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QACnC,OAAO,CAAC,IAAI,CAAC,0CAA0C,GAAG,oBAAoB,GAAG,0HAA0H,CAAC,CAAC;IAC/M,CAAC;AACH,CAAC,EAAE,oBAAoB,CAAC,CAAC"}
|
2
dist/src/ng1.d.ts
vendored
2
dist/src/ng1.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
export declare function initAngular1(): void;
|
||||
export declare function publishAngular1Service(config: any, cls: any): void;
|
18
dist/src/ng1.js
vendored
18
dist/src/ng1.js
vendored
@ -1,18 +0,0 @@
|
||||
function initAngular1() {
|
||||
if (window.angular) {
|
||||
window.angular.module('ngCordova', []);
|
||||
}
|
||||
}
|
||||
exports.initAngular1 = initAngular1;
|
||||
function publishAngular1Service(config, cls) {
|
||||
var serviceName = '$cordova' + cls.name;
|
||||
console.log('Registering Angular1 service', serviceName);
|
||||
window.angular.module('ngCordova').service(serviceName, [function () {
|
||||
var funcs = {};
|
||||
for (var k in cls) {
|
||||
}
|
||||
return funcs;
|
||||
}]);
|
||||
}
|
||||
exports.publishAngular1Service = publishAngular1Service;
|
||||
//# sourceMappingURL=ng1.js.map
|
1
dist/src/ng1.js.map
vendored
1
dist/src/ng1.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"ng1.js","sourceRoot":"","sources":["../../src/ng1.ts"],"names":["initAngular1","publishAngular1Service"],"mappings":"AAKA;IACEA,EAAEA,CAAAA,CAACA,MAAMA,CAACA,OAAOA,CAACA,CAACA,CAACA;QAClBA,MAAMA,CAACA,OAAOA,CAACA,MAAMA,CAACA,WAAWA,EAAEA,EAAEA,CAACA,CAACA;IACzCA,CAACA;AACHA,CAACA;AAJe,oBAAY,eAI3B,CAAA;AAKD,gCAAuC,MAAU,EAAE,GAAO;IACxDC,IAAIA,WAAWA,GAAGA,UAAUA,GAAGA,GAAGA,CAACA,IAAIA,CAACA;IACxCA,OAAOA,CAACA,GAAGA,CAACA,8BAA8BA,EAAEA,WAAWA,CAACA,CAACA;IACzDA,MAAMA,CAACA,OAAOA,CAACA,MAAMA,CAACA,WAAWA,CAACA,CAACA,OAAOA,CAACA,WAAWA,EAAEA,CAACA;YACvD,IAAI,KAAK,GAAG,EAAE,CAAC;YACf,GAAG,CAAA,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;YACnB,CAAC;YACD,MAAM,CAAC,KAAK,CAAC;QACf,CAAC,CAACA,CAACA,CAACA;AACNA,CAACA;AATe,8BAAsB,yBASrC,CAAA"}
|
4
dist/src/plugins/actionsheet.d.ts
vendored
4
dist/src/plugins/actionsheet.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
export declare class ActionSheet {
|
||||
static show(options: any): void;
|
||||
static hide(options: any): void;
|
||||
}
|
43
dist/src/plugins/actionsheet.js
vendored
43
dist/src/plugins/actionsheet.js
vendored
@ -1,43 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var ActionSheet = (function () {
|
||||
function ActionSheet() {
|
||||
}
|
||||
ActionSheet.show = function (options) { };
|
||||
;
|
||||
ActionSheet.hide = function (options) { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], ActionSheet, "show", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], ActionSheet, "hide", null);
|
||||
ActionSheet = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'ActionSheet',
|
||||
plugin: 'cordova-plugin-actionsheet',
|
||||
pluginRef: 'plugins.actionsheet',
|
||||
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], ActionSheet);
|
||||
return ActionSheet;
|
||||
}());
|
||||
exports.ActionSheet = ActionSheet;
|
||||
//# sourceMappingURL=actionsheet.js.map
|
1
dist/src/plugins/actionsheet.js.map
vendored
1
dist/src/plugins/actionsheet.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"actionsheet.js","sourceRoot":"","sources":["../../../src/plugins/actionsheet.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAQzC;IAAA;IAMA,CAAC;IAJQ,gBAAI,GAAX,UAAY,OAAW,IAAE,CAAC;;IAGnB,gBAAI,GAAX,UAAY,OAAW,IAAE,CAAC;;IAJ1B;QAAC,gBAAO,EAAE;;;;iCAAA;IAGV;QAAC,gBAAO,EAAE;;;;iCAAA;IAVZ;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,4BAA4B;YACpC,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,8DAA8D;SACrE,CAAC;;mBAAA;IAOF,kBAAC;AAAD,CAAC,AAND,IAMC;AANY,mBAAW,cAMvB,CAAA"}
|
10
dist/src/plugins/ble.d.ts
vendored
10
dist/src/plugins/ble.d.ts
vendored
@ -1,10 +0,0 @@
|
||||
export declare class BLE {
|
||||
static scan(services: any[], seconds: number): void;
|
||||
static startScan(services: any[]): void;
|
||||
static stopScan(): void;
|
||||
static connect(deviceId: string): void;
|
||||
static disconnect(deviceId: string): void;
|
||||
static read(deviceId: string, serviceUUID: string, characteristicUUID: string): void;
|
||||
static write(deviceId: string, serviceUUID: string, characteristicUUID: string, value: ArrayBuffer): void;
|
||||
static writeWithoutResponse(deviceId: string, serviceUUID: string, characteristicUUID: string, value: ArrayBuffer): void;
|
||||
}
|
61
dist/src/plugins/ble.js
vendored
61
dist/src/plugins/ble.js
vendored
@ -1,61 +0,0 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var BLE = (function () {
|
||||
function BLE() {
|
||||
}
|
||||
BLE.scan = function (services, seconds) { };
|
||||
BLE.startScan = function (services) { };
|
||||
;
|
||||
BLE.stopScan = function () { };
|
||||
;
|
||||
BLE.connect = function (deviceId) { };
|
||||
;
|
||||
BLE.disconnect = function (deviceId) { };
|
||||
;
|
||||
BLE.read = function (deviceId, serviceUUID, characteristicUUID) { };
|
||||
;
|
||||
BLE.write = function (deviceId, serviceUUID, characteristicUUID, value) { };
|
||||
;
|
||||
BLE.writeWithoutResponse = function (deviceId, serviceUUID, characteristicUUID, value) { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "scan", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "startScan", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "stopScan", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "connect", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "disconnect", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "read", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "write", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], BLE, "writeWithoutResponse", null);
|
||||
BLE = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'BluetoothLowEnergy',
|
||||
plugin: 'cordova-plugin-ble-central',
|
||||
pluginRef: 'ble',
|
||||
pluginRepo: 'https://github.com/don/cordova-plugin-ble-central'
|
||||
})
|
||||
], BLE);
|
||||
return BLE;
|
||||
})();
|
||||
exports.BLE = BLE;
|
||||
//# sourceMappingURL=ble.js.map
|
1
dist/src/plugins/ble.js.map
vendored
1
dist/src/plugins/ble.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"ble.js","sourceRoot":"","sources":["../../../src/plugins/ble.ts"],"names":["BLE","BLE.constructor","BLE.scan","BLE.startScan","BLE.stopScan","BLE.connect","BLE.disconnect","BLE.read","BLE.write","BLE.writeWithoutResponse"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IA8BAC,CAACA;IAtBQD,QAAIA,GADXA,UACYA,QAAcA,EAAEA,OAAcA,IAAGE,CAACA;IAGvCF,aAASA,GADhBA,UACiBA,QAAcA,IAAEG,CAACA;;IAG3BH,YAAQA,GADfA,cACkBI,CAACA;;IAGZJ,WAAOA,GADdA,UACeA,QAAeA,IAAEK,CAACA;;IAG1BL,cAAUA,GADjBA,UACkBA,QAAeA,IAAEM,CAACA;;IAG7BN,QAAIA,GADXA,UACYA,QAAeA,EAAEA,WAAkBA,EAAEA,kBAAyBA,IAAEO,CAACA;;IAGtEP,SAAKA,GADZA,UACaA,QAAeA,EAAEA,WAAkBA,EAAEA,kBAAyBA,EAAEA,KAAiBA,IAAEQ,CAACA;;IAG1FR,wBAAoBA,GAD3BA,UAC4BA,QAAeA,EAAEA,WAAkBA,EAAEA,kBAAyBA,EAAEA,KAAiBA,IAAES,CAACA;;IAtBhHT;QAACA,gBAAOA,EAAEA;OACHA,WAAIA,QAAmCA;IAE9CA;QAACA,gBAAOA,EAAEA;OACHA,gBAASA,QAAkBA;IAElCA;QAACA,gBAAOA,EAAEA;OACHA,eAAQA,QAAIA;IAEnBA;QAACA,gBAAOA,EAAEA;OACHA,cAAOA,QAAmBA;IAEjCA;QAACA,gBAAOA,EAAEA;OACHA,iBAAUA,QAAmBA;IAEpCA;QAACA,gBAAOA,EAAEA;OACHA,WAAIA,QAAkEA;IAE7EA;QAACA,gBAAOA,EAAEA;OACHA,YAAKA,QAAqFA;IAEjGA;QAACA,gBAAOA,EAAEA;OACHA,2BAAoBA,QAAqFA;IA7BlHA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,oBAAoBA;YAC1BA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,KAAKA;YAChBA,UAAUA,EAAEA,mDAAmDA;SAChEA,CAACA;YAyBDA;IAADA,UAACA;AAADA,CAACA,AA9BD,IA8BC;AAxBY,WAAG,MAwBf,CAAA"}
|
19
dist/src/plugins/calendar.d.ts
vendored
19
dist/src/plugins/calendar.d.ts
vendored
@ -1,19 +0,0 @@
|
||||
export declare class Calendar {
|
||||
static createCalendar(options: any): void;
|
||||
static deleteCalendar(calendarName: string): void;
|
||||
static getCalendarOptions(): void;
|
||||
static createEvent(title: any, location: any, notes: any, startDate: any, endDate: any): void;
|
||||
static createEventWithOptions(title: any, location: any, notes: any, startDate: any, endDate: any, options: any): void;
|
||||
static createEventInteractively(title: any, location: any, notes: any, startDate: any, endDate: any): void;
|
||||
static createEventInteractivelyWithOptions(title: any, location: any, notes: any, startDate: any, endDate: any, options: any): void;
|
||||
static createEventInNamedCalendar(title: any, location: any, notes: any, startDate: any, endDate: any, calendarName: any): void;
|
||||
static findEvent(title: any, location: any, notes: any, startDate: any, endDate: any): void;
|
||||
static listEventsInRange(startDate: any, endDate: any): void;
|
||||
static listCalendars(): void;
|
||||
static findAllEventsInNamedCalendar(calendarName: string): void;
|
||||
static modifyEvent(title: any, location: any, notes: any, startDate: any, endDate: any, newTitle: any, newLocation: any, newNotes: any, newStartDate: any, newEndDate: any): void;
|
||||
static modifyEventWithOptions(title: any, location: any, notes: any, startDate: any, endDate: any, newTitle: any, newEventLocation: any, newNotes: any, newStartDate: any, newEndDate: any, options: any): void;
|
||||
static deleteEvent(title: any, location: any, notes: any, startDate: any, endDate: any): void;
|
||||
static deleteEventFromNamedCalendar(title: any, location: any, notes: any, startDate: any, endDate: any, calendarName: any): void;
|
||||
static openCalendar(date: any): void;
|
||||
}
|
144
dist/src/plugins/calendar.js
vendored
144
dist/src/plugins/calendar.js
vendored
@ -1,144 +0,0 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Calendar = (function () {
|
||||
function Calendar() {
|
||||
}
|
||||
Calendar.createCalendar = function (options) { };
|
||||
Calendar.deleteCalendar = function (calendarName) { };
|
||||
Calendar.getCalendarOptions = function () { };
|
||||
Calendar.createEvent = function (title, location, notes, startDate, endDate) { };
|
||||
Calendar.createEventWithOptions = function (title, location, notes, startDate, endDate, options) { };
|
||||
Calendar.createEventInteractively = function (title, location, notes, startDate, endDate) { };
|
||||
Calendar.createEventInteractivelyWithOptions = function (title, location, notes, startDate, endDate, options) { };
|
||||
Calendar.createEventInNamedCalendar = function (title, location, notes, startDate, endDate, calendarName) { };
|
||||
Calendar.findEvent = function (title, location, notes, startDate, endDate) { };
|
||||
Calendar.listEventsInRange = function (startDate, endDate) { };
|
||||
Calendar.listCalendars = function () { };
|
||||
Calendar.findAllEventsInNamedCalendar = function (calendarName) { };
|
||||
Calendar.modifyEvent = function (title, location, notes, startDate, endDate, newTitle, newLocation, newNotes, newStartDate, newEndDate) { };
|
||||
Calendar.modifyEventWithOptions = function (title, location, notes, startDate, endDate, newTitle, newEventLocation, newNotes, newStartDate, newEndDate, options) { };
|
||||
Calendar.deleteEvent = function (title, location, notes, startDate, endDate) { };
|
||||
Calendar.deleteEventFromNamedCalendar = function (title, location, notes, startDate, endDate, calendarName) { };
|
||||
Calendar.openCalendar = function (date) { };
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "createCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "deleteCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "getCalendarOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "createEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "createEventWithOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "createEventInteractively", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "createEventInteractivelyWithOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "createEventInNamedCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "findEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "listEventsInRange", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "listCalendars", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "findAllEventsInNamedCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "modifyEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "modifyEventWithOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "deleteEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object, Object, Object, Object, Object, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "deleteEventFromNamedCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Calendar, "openCalendar", null);
|
||||
Calendar = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Calendar',
|
||||
plugin: 'cordova-plugin-calendar',
|
||||
pluginRef: 'plugins.calendar'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Calendar);
|
||||
return Calendar;
|
||||
})();
|
||||
exports.Calendar = Calendar;
|
||||
//# sourceMappingURL=calendar.js.map
|
1
dist/src/plugins/calendar.js.map
vendored
1
dist/src/plugins/calendar.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/plugins/calendar.ts"],"names":["Calendar","Calendar.constructor","Calendar.createCalendar","Calendar.deleteCalendar","Calendar.getCalendarOptions","Calendar.createEvent","Calendar.createEventWithOptions","Calendar.createEventInteractively","Calendar.createEventInteractivelyWithOptions","Calendar.createEventInNamedCalendar","Calendar.findEvent","Calendar.listEventsInRange","Calendar.listCalendars","Calendar.findAllEventsInNamedCalendar","Calendar.modifyEvent","Calendar.modifyEventWithOptions","Calendar.deleteEvent","Calendar.deleteEventFromNamedCalendar","Calendar.openCalendar"],"mappings":";;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAwDAC,CAACA;IAjDQD,uBAAcA,GADrBA,UACsBA,OAAWA,IAAGE,CAACA;IAG9BF,uBAAcA,GADrBA,UACsBA,YAAmBA,IAAGG,CAACA;IAGtCH,2BAAkBA,GADzBA,cAC6BI,CAACA;IAGvBJ,oBAAWA,GADlBA,UACmBA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,IAAGK,CAACA;IAG1DL,+BAAsBA,GAD7BA,UAC8BA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,EAAEA,OAAOA,IAAGM,CAACA;IAG9EN,iCAAwBA,GAD/BA,UACgCA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,IAAGO,CAACA;IAGvEP,4CAAmCA,GAD1CA,UAC2CA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,EAAEA,OAAOA,IAAGQ,CAACA;IAG3FR,mCAA0BA,GADjCA,UACkCA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,EAAEA,YAAYA,IAAGS,CAACA;IAGvFT,kBAASA,GADhBA,UACiBA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,IAAGU,CAACA;IAGxDV,0BAAiBA,GADxBA,UACyBA,SAAaA,EAAEA,OAAWA,IAAGW,CAACA;IAGhDX,sBAAaA,GADpBA,cACuBY,CAACA;IAGjBZ,qCAA4BA,GADnCA,UACoCA,YAAmBA,IAAGa,CAACA;IAGpDb,oBAAWA,GADlBA,UACmBA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,EAAEA,QAAQA,EAAEA,WAAWA,EAAEA,QAAQA,EAAEA,YAAYA,EAAEA,UAAUA,IAAGc,CAACA;IAGrHd,+BAAsBA,GAD7BA,UAC8BA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,EAAEA,QAAQA,EAAEA,gBAAgBA,EAAEA,QAAQA,EAAEA,YAAYA,EAAEA,UAAUA,EAAEA,OAAOA,IAAGe,CAACA;IAG9If,oBAAWA,GADlBA,UACmBA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,IAAGgB,CAACA;IAG1DhB,qCAA4BA,GADnCA,UACoCA,KAAKA,EAAEA,QAAQA,EAAEA,KAAKA,EAAEA,SAASA,EAAEA,OAAOA,EAAEA,YAAYA,IAAGiB,CAACA;IAGzFjB,qBAAYA,GADnBA,UACoBA,IAAIA,IAAGkB,CAACA;IAjD5BlB;QAACA,gBAAOA,EAAEA;;;;OACHA,0BAAcA,QAAgBA;IAErCA;QAACA,gBAAOA,EAAEA;;;;OACHA,0BAAcA,QAAwBA;IAE7CA;QAACA,gBAAOA,EAAEA;;;;OACHA,8BAAkBA,QAAKA;IAE9BA;QAACA,gBAAOA,EAAEA;;;;OACHA,uBAAWA,QAA+CA;IAEjEA;QAACA,gBAAOA,EAAEA;;;;OACHA,kCAAsBA,QAAwDA;IAErFA;QAACA,gBAAOA,EAAEA;;;;OACHA,oCAAwBA,QAA+CA;IAE9EA;QAACA,gBAAOA,EAAEA;;;;OACHA,+CAAmCA,QAAwDA;IAElGA;QAACA,gBAAOA,EAAEA;;;;OACHA,sCAA0BA,QAA6DA;IAE9FA;QAACA,gBAAOA,EAAEA;;;;OACHA,qBAASA,QAA+CA;IAE/DA;QAACA,gBAAOA,EAAEA;;;;OACHA,6BAAiBA,QAA+BA;IAEvDA;QAACA,gBAAOA,EAAEA;;;;OACHA,yBAAaA,QAAIA;IAExBA;QAACA,gBAAOA,EAAEA;;;;OACHA,wCAA4BA,QAAwBA;IAE3DA;QAACA,gBAAOA,EAAEA;;;;OACHA,uBAAWA,QAA0GA;IAE5HA;QAACA,gBAAOA,EAAEA;;;;OACHA,kCAAsBA,QAAwHA;IAErJA;QAACA,gBAAOA,EAAEA;;;;OACHA,uBAAWA,QAA+CA;IAEjEA;QAACA,gBAAOA,EAAEA;;;;OACHA,wCAA4BA,QAA6DA;IAEhGA;QAACA,gBAAOA,EAAEA;;;;OACHA,wBAAYA,QAASA;IAvD9BA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,UAAUA;YAChBA,MAAMA,EAAEA,yBAAyBA;YACjCA,SAASA,EAAEA,kBAAkBA;SAC9BA,CAACA;;iBAoDDA;IAADA,eAACA;AAADA,CAACA,AAxDD,IAwDC;AAnDY,gBAAQ,WAmDpB,CAAA"}
|
4
dist/src/plugins/camera.d.ts
vendored
4
dist/src/plugins/camera.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
export declare class Camera {
|
||||
static getPicture(options: any): void;
|
||||
static cleanup(): void;
|
||||
}
|
44
dist/src/plugins/camera.js
vendored
44
dist/src/plugins/camera.js
vendored
@ -1,44 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Camera = (function () {
|
||||
function Camera() {
|
||||
}
|
||||
Camera.getPicture = function (options) { };
|
||||
;
|
||||
Camera.cleanup = function () { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
}),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Camera, "getPicture", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Camera, "cleanup", null);
|
||||
Camera = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Camera',
|
||||
plugin: 'cordova-plugin-camera',
|
||||
pluginRef: 'navigator.camera'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Camera);
|
||||
return Camera;
|
||||
}());
|
||||
exports.Camera = Camera;
|
||||
//# sourceMappingURL=camera.js.map
|
1
dist/src/plugins/camera.js.map
vendored
1
dist/src/plugins/camera.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"camera.js","sourceRoot":"","sources":["../../../src/plugins/camera.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAsBzC;IAAA;IASA,CAAC;IAJQ,iBAAU,GAAjB,UAAkB,OAAW,IAAE,CAAC;;IAGzB,cAAO,GAAd,cAAiB,CAAC;;IAPlB;QAAC,gBAAO,CAAC;YAEP,aAAa,EAAE,SAAS;SACzB,CAAC;;;;kCAAA;IAGF;QAAC,gBAAO,EAAE;;;;+BAAA;IAZZ;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,uBAAuB;YAC/B,SAAS,EAAE,kBAAkB;SAC9B,CAAC;;cAAA;IAUF,aAAC;AAAD,CAAC,AATD,IASC;AATY,cAAM,SASlB,CAAA"}
|
5
dist/src/plugins/contacts.d.ts
vendored
5
dist/src/plugins/contacts.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
export declare class Contacts {
|
||||
static create(fields: string[], options: any): void;
|
||||
static find(fields: string[], options: any): void;
|
||||
static pickContact(): void;
|
||||
}
|
57
dist/src/plugins/contacts.js
vendored
57
dist/src/plugins/contacts.js
vendored
@ -1,57 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Contacts = (function () {
|
||||
function Contacts() {
|
||||
}
|
||||
Contacts.create = function (fields, options) { };
|
||||
;
|
||||
Contacts.find = function (fields, options) { };
|
||||
;
|
||||
Contacts.pickContact = function () { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
}),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Array, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Contacts, "create", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
}),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Array, Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Contacts, "find", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Contacts, "pickContact", null);
|
||||
Contacts = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Contacts',
|
||||
plugin: 'cordova-plugin-contacts',
|
||||
pluginRef: 'navigator.contacts',
|
||||
repo: 'https://github.com/apache/cordova-plugin-contacts'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Contacts);
|
||||
return Contacts;
|
||||
}());
|
||||
exports.Contacts = Contacts;
|
||||
//# sourceMappingURL=contacts.js.map
|
1
dist/src/plugins/contacts.js.map
vendored
1
dist/src/plugins/contacts.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/plugins/contacts.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AA0BzC;IAAA;IAyDA,CAAC;IAzBQ,eAAM,GAAb,UAAc,MAAe,EAAE,OAAW,IAAE,CAAC;;IAqBtC,aAAI,GAAX,UAAY,MAAe,EAAE,OAAW,IAAE,CAAC;;IAGpC,oBAAW,GAAlB,cAAqB,CAAC;;IAvDtB;QAAC,gBAAO,CAAC;YACP,YAAY,EAAE,CAAC;YACf,UAAU,EAAE,CAAC;SACd,CAAC;;;;gCAAA;IA8BF;QAAC,gBAAO,CAAC;YACP,YAAY,EAAE,CAAC;YACf,UAAU,EAAE,CAAC;SACd,CAAC;;;;8BAAA;IAkBF;QAAC,gBAAO,EAAE;;;;qCAAA;IA7DZ;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,yBAAyB;YACjC,SAAS,EAAE,oBAAoB;YAC/B,IAAI,EAAE,mDAAmD;SAC1D,CAAC;;gBAAA;IA0DF,eAAC;AAAD,CAAC,AAzDD,IAyDC;AAzDY,gBAAQ,WAyDpB,CAAA"}
|
3
dist/src/plugins/device.d.ts
vendored
3
dist/src/plugins/device.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
export declare class Device {
|
||||
static getDevice(): any;
|
||||
}
|
35
dist/src/plugins/device.js
vendored
35
dist/src/plugins/device.js
vendored
@ -1,35 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Device = (function () {
|
||||
function Device() {
|
||||
}
|
||||
Device.getDevice = function () {
|
||||
return window.device;
|
||||
};
|
||||
__decorate([
|
||||
plugin_1.RequiresPlugin,
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Device, "getDevice", null);
|
||||
Device = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Device',
|
||||
plugin: 'cordova-plugin-device',
|
||||
pluginRef: 'device'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Device);
|
||||
return Device;
|
||||
}());
|
||||
exports.Device = Device;
|
||||
//# sourceMappingURL=device.js.map
|
1
dist/src/plugins/device.js.map
vendored
1
dist/src/plugins/device.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/plugins/device.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAAqC,UAAU,CAAC,CAAA;AAoBhD;IAAA;IAWA,CAAC;IAHQ,gBAAS,GAAhB;QACE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;IAHD;QAAC,uBAAc;;;;iCAAA;IAZjB;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,uBAAuB;YAC/B,SAAS,EAAE,QAAQ;SACpB,CAAC;;cAAA;IAYF,aAAC;AAAD,CAAC,AAXD,IAWC;AAXY,cAAM,SAWlB,CAAA"}
|
11
dist/src/plugins/facebook.d.ts
vendored
11
dist/src/plugins/facebook.d.ts
vendored
@ -1,11 +0,0 @@
|
||||
export declare class Facebook {
|
||||
static login(permissions: string[]): void;
|
||||
static logout(): void;
|
||||
static getLoginStatus(): void;
|
||||
static getAccessToken(): void;
|
||||
static showDialog(options: any): void;
|
||||
static api(requestPath: string, permissions: string[]): void;
|
||||
static logEvent(name: string, params: any, valueToSum: number): void;
|
||||
static logPurchase(value: number, currency: string): void;
|
||||
static appInvite(options: any): void;
|
||||
}
|
88
dist/src/plugins/facebook.js
vendored
88
dist/src/plugins/facebook.js
vendored
@ -1,88 +0,0 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Facebook = (function () {
|
||||
function Facebook() {
|
||||
}
|
||||
Facebook.login = function (permissions) { };
|
||||
Facebook.logout = function () { };
|
||||
Facebook.getLoginStatus = function () { };
|
||||
Facebook.getAccessToken = function () { };
|
||||
Facebook.showDialog = function (options) { };
|
||||
Facebook.api = function (requestPath, permissions) { };
|
||||
Facebook.logEvent = function (name, params, valueToSum) { };
|
||||
Facebook.logPurchase = function (value, currency) { };
|
||||
Facebook.appInvite = function (options) { };
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Array]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "login", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "logout", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "getLoginStatus", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "getAccessToken", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "showDialog", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String, Array]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "api", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String, Object, Number]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "logEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Number, String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "logPurchase", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Facebook, "appInvite", null);
|
||||
Facebook = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Facebook',
|
||||
plugin: 'cordova-plugin-facebook4',
|
||||
pluginRef: 'facebookConnectPlugin'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Facebook);
|
||||
return Facebook;
|
||||
})();
|
||||
exports.Facebook = Facebook;
|
||||
//# sourceMappingURL=facebook.js.map
|
1
dist/src/plugins/facebook.js.map
vendored
1
dist/src/plugins/facebook.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"facebook.js","sourceRoot":"","sources":["../../../src/plugins/facebook.ts"],"names":["Facebook","Facebook.constructor","Facebook.login","Facebook.logout","Facebook.getLoginStatus","Facebook.getAccessToken","Facebook.showDialog","Facebook.api","Facebook.logEvent","Facebook.logPurchase","Facebook.appInvite"],"mappings":";;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAgCAC,CAACA;IAzBQD,cAAKA,GADZA,UACaA,WAAoBA,IAAEE,CAACA;IAG7BF,eAAMA,GADbA,cACgBG,CAACA;IAGVH,uBAAcA,GADrBA,cACwBI,CAACA;IAGlBJ,uBAAcA,GADrBA,cACwBK,CAACA;IAGlBL,mBAAUA,GADjBA,UACkBA,OAAWA,IAAEM,CAACA;IAGzBN,YAAGA,GADVA,UACWA,WAAkBA,EAAEA,WAAoBA,IAAEO,CAACA;IAG/CP,iBAAQA,GADfA,UACgBA,IAAWA,EAAEA,MAAUA,EAAEA,UAAiBA,IAAEQ,CAACA;IAGtDR,oBAAWA,GADlBA,UACmBA,KAAYA,EAAEA,QAAeA,IAAES,CAACA;IAG5CT,kBAASA,GADhBA,UACiBA,OAAWA,IAAEU,CAACA;IAzB/BV;QAACA,gBAAOA,EAAEA;;;;OACHA,iBAAKA,QAAwBA;IAEpCA;QAACA,gBAAOA,EAAEA;;;;OACHA,kBAAMA,QAAIA;IAEjBA;QAACA,gBAAOA,EAAEA;;;;OACHA,0BAAcA,QAAIA;IAEzBA;QAACA,gBAAOA,EAAEA;;;;OACHA,0BAAcA,QAAIA;IAEzBA;QAACA,gBAAOA,EAAEA;;;;OACHA,sBAAUA,QAAeA;IAEhCA;QAACA,gBAAOA,EAAEA;;;;OACHA,eAAGA,QAA4CA;IAEtDA;QAACA,gBAAOA,EAAEA;;;;OACHA,oBAAQA,QAA8CA;IAE7DA;QAACA,gBAAOA,EAAEA;;;;OACHA,uBAAWA,QAAiCA;IAEnDA;QAACA,gBAAOA,EAAEA;;;;OACHA,qBAASA,QAAeA;IA/BjCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,UAAUA;YAChBA,MAAMA,EAAEA,0BAA0BA;YAClCA,SAASA,EAAEA,uBAAuBA;SACnCA,CAACA;;iBA4BDA;IAADA,eAACA;AAADA,CAACA,AAhCD,IAgCC;AA3BY,gBAAQ,WA2BpB,CAAA"}
|
2
dist/src/plugins/file.d.ts
vendored
2
dist/src/plugins/file.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
export declare class File {
|
||||
}
|
21
dist/src/plugins/file.js
vendored
21
dist/src/plugins/file.js
vendored
@ -1,21 +0,0 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var File = (function () {
|
||||
function File() {
|
||||
}
|
||||
File = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'File',
|
||||
plugin: 'cordova-plugin-file',
|
||||
pluginRef: 'cordova.file'
|
||||
})
|
||||
], File);
|
||||
return File;
|
||||
})();
|
||||
exports.File = File;
|
||||
//# sourceMappingURL=file.js.map
|
1
dist/src/plugins/file.js.map
vendored
1
dist/src/plugins/file.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../src/plugins/file.ts"],"names":["File","File.constructor"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAIzC;IAAAA;IAMAC,CAACA;IANDD;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,MAAMA;YACZA,MAAMA,EAAEA,qBAAqBA;YAC7BA,SAASA,EAAEA,cAAcA;SAC1BA,CAACA;aAEDA;IAADA,WAACA;AAADA,CAACA,AAND,IAMC;AADY,YAAI,OAChB,CAAA"}
|
4
dist/src/plugins/geolocation.d.ts
vendored
4
dist/src/plugins/geolocation.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
export declare class Geolocation {
|
||||
static getCurrentPosition(options: any): void;
|
||||
static watchPosition(options: any): void;
|
||||
}
|
46
dist/src/plugins/geolocation.js
vendored
46
dist/src/plugins/geolocation.js
vendored
@ -1,46 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Geolocation = (function () {
|
||||
function Geolocation() {
|
||||
}
|
||||
Geolocation.getCurrentPosition = function (options) { };
|
||||
;
|
||||
Geolocation.watchPosition = function (options) { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Geolocation, "getCurrentPosition", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
callbackOrder: 'reverse',
|
||||
observable: true,
|
||||
clearFunction: 'clearWatch()'
|
||||
}),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Geolocation, "watchPosition", null);
|
||||
Geolocation = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Geolocation',
|
||||
plugin: 'cordova-plugin-geolocation',
|
||||
pluginRef: 'navigator.geolocation'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Geolocation);
|
||||
return Geolocation;
|
||||
}());
|
||||
exports.Geolocation = Geolocation;
|
||||
//# sourceMappingURL=geolocation.js.map
|
1
dist/src/plugins/geolocation.js.map
vendored
1
dist/src/plugins/geolocation.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"geolocation.js","sourceRoot":"","sources":["../../../src/plugins/geolocation.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AA6BzC;IAAA;IAWA,CAAC;IATQ,8BAAkB,GAAzB,UAA0B,OAAW,IAAE,CAAC;;IAQjC,yBAAa,GAApB,UAAqB,OAAW,IAAE,CAAC;;IATnC;QAAC,gBAAO,EAAE;;;;+CAAA;IAIV;QAAC,gBAAO,CAAC;YACP,aAAa,EAAE,SAAS;YACxB,UAAU,EAAE,IAAI;YAChB,aAAa,EAAE,cAAc;SAC9B,CAAC;;;;0CAAA;IAdJ;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,4BAA4B;YACpC,SAAS,EAAE,uBAAuB;SACnC,CAAC;;mBAAA;IAYF,kBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,mBAAW,cAWvB,CAAA"}
|
10
dist/src/plugins/plugin.d.ts
vendored
10
dist/src/plugins/plugin.d.ts
vendored
@ -1,10 +0,0 @@
|
||||
export declare const getPlugin: (pluginRef: string) => any;
|
||||
export declare const isInstalled: (pluginRef: string) => boolean;
|
||||
export declare const pluginWarn: (pluginName: string, method: string, plugin: string) => void;
|
||||
export declare const cordovaWarn: (pluginName: string, method: string) => void;
|
||||
export declare const wrap: (pluginObj: any, methodName: string, opts?: any) => (...args: any[]) => any;
|
||||
export declare function Plugin(config: any): (cls: any) => any;
|
||||
export declare function Cordova(opts?: any): (target: Object, methodName: string, descriptor: TypedPropertyDescriptor<any>) => {
|
||||
value: (...args: any[]) => any;
|
||||
};
|
||||
export declare function RequiresPlugin(target: Function, key: string, descriptor: TypedPropertyDescriptor<any>): TypedPropertyDescriptor<any>;
|
163
dist/src/plugins/plugin.js
vendored
163
dist/src/plugins/plugin.js
vendored
@ -1,163 +0,0 @@
|
||||
var util_1 = require('../util');
|
||||
var Rx_1 = require('@reactivex/rxjs/dist/cjs/Rx');
|
||||
exports.getPlugin = function (pluginRef) {
|
||||
return util_1.get(window, pluginRef);
|
||||
};
|
||||
exports.isInstalled = function (pluginRef) {
|
||||
return !!exports.getPlugin(pluginRef);
|
||||
};
|
||||
exports.pluginWarn = function (pluginName, method, plugin) {
|
||||
if (method) {
|
||||
console.warn('Native: tried calling ' + pluginName + '.' + method +
|
||||
', but the ' + pluginName + ' plugin is not installed. Install the ' +
|
||||
plugin + ' plugin');
|
||||
}
|
||||
else {
|
||||
console.warn('Native: tried accessing the ' + pluginName + ' plugin but it\'s not installed. Install the ' + plugin + ' plugin');
|
||||
}
|
||||
};
|
||||
exports.cordovaWarn = function (pluginName, method) {
|
||||
if (method) {
|
||||
console.warn('Native: tried calling ' + pluginName + '.' + method + ', but Cordova is not available. Make sure to include cordova.js or run in a device/simulator');
|
||||
}
|
||||
else {
|
||||
console.warn('Native: tried accessing the ' + pluginName + ' plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator');
|
||||
}
|
||||
};
|
||||
function callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject) {
|
||||
if (opts === void 0) { opts = {}; }
|
||||
if (opts.callbackOrder == 'reverse') {
|
||||
args.unshift(reject);
|
||||
args.unshift(resolve);
|
||||
}
|
||||
else if (typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') {
|
||||
args.splice(opts.successIndex, 0, resolve);
|
||||
args.splice(opts.errorIndex, 0, reject);
|
||||
}
|
||||
else {
|
||||
args.push(resolve);
|
||||
args.push(reject);
|
||||
}
|
||||
var pluginInstance = exports.getPlugin(pluginObj.pluginRef);
|
||||
if (!pluginInstance) {
|
||||
if (!window.cordova) {
|
||||
exports.cordovaWarn(pluginObj.name, methodName);
|
||||
reject({
|
||||
error: 'cordova_not_available'
|
||||
});
|
||||
return;
|
||||
}
|
||||
exports.pluginWarn(pluginObj.name, methodName, pluginObj.name);
|
||||
reject({
|
||||
error: 'plugin_not_installed'
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log('Cordova calling', pluginObj.name, methodName, args);
|
||||
return util_1.get(window, pluginObj.pluginRef)[methodName].apply(pluginInstance, args);
|
||||
}
|
||||
function getPromise(cb) {
|
||||
if (window.Promise) {
|
||||
console.log('Native promises available...');
|
||||
return new Promise(function (resolve, reject) {
|
||||
cb(resolve, reject);
|
||||
});
|
||||
}
|
||||
else if (window.angular) {
|
||||
var $q_1 = window.angular.injector(['ng']).get('$q');
|
||||
console.log('Loaded $q', $q_1);
|
||||
return $q_1(function (resolve, reject) {
|
||||
cb(resolve, reject);
|
||||
});
|
||||
}
|
||||
else {
|
||||
console.error('No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular 1/2 or on a recent browser.');
|
||||
}
|
||||
}
|
||||
function wrapPromise(pluginObj, methodName, args, opts) {
|
||||
if (opts === void 0) { opts = {}; }
|
||||
return getPromise(function (resolve, reject) {
|
||||
callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject);
|
||||
});
|
||||
}
|
||||
function wrapObservable(pluginObj, methodName, args, opts) {
|
||||
if (opts === void 0) { opts = {}; }
|
||||
return new Rx_1.Observable(function (observer) {
|
||||
var pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer));
|
||||
return function () {
|
||||
try {
|
||||
return util_1.get(window, pluginObj.pluginRef)[opts.clearFunction].apply(pluginObj, pluginResult);
|
||||
}
|
||||
catch (e) {
|
||||
console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName);
|
||||
console.log(e);
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
exports.wrap = function (pluginObj, methodName, opts) {
|
||||
if (opts === void 0) { opts = {}; }
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i - 0] = arguments[_i];
|
||||
}
|
||||
if (opts.observable) {
|
||||
return wrapObservable(pluginObj, methodName, args, opts);
|
||||
}
|
||||
else {
|
||||
return wrapPromise(pluginObj, methodName, args, opts);
|
||||
}
|
||||
};
|
||||
};
|
||||
function Plugin(config) {
|
||||
return function (cls) {
|
||||
for (var k in config) {
|
||||
cls[k] = config[k];
|
||||
}
|
||||
cls['installed'] = function () {
|
||||
return !!exports.getPlugin(config.pluginRef);
|
||||
};
|
||||
return cls;
|
||||
};
|
||||
}
|
||||
exports.Plugin = Plugin;
|
||||
function Cordova(opts) {
|
||||
if (opts === void 0) { opts = {}; }
|
||||
return function (target, methodName, descriptor) {
|
||||
var originalMethod = descriptor.value;
|
||||
return {
|
||||
value: function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i - 0] = arguments[_i];
|
||||
}
|
||||
return exports.wrap(this, methodName, opts).apply(this, args);
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
exports.Cordova = Cordova;
|
||||
function RequiresPlugin(target, key, descriptor) {
|
||||
var originalMethod = descriptor.value;
|
||||
descriptor.value = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i - 0] = arguments[_i];
|
||||
}
|
||||
console.log('Calling', this);
|
||||
if (!window.cordova) {
|
||||
exports.cordovaWarn(this.name, null);
|
||||
return;
|
||||
}
|
||||
var pluginInstance = exports.getPlugin(this.pluginRef);
|
||||
if (!pluginInstance) {
|
||||
exports.pluginWarn(this.name, null, this.name);
|
||||
return;
|
||||
}
|
||||
originalMethod.apply(this, args);
|
||||
};
|
||||
return descriptor;
|
||||
}
|
||||
exports.RequiresPlugin = RequiresPlugin;
|
||||
//# sourceMappingURL=plugin.js.map
|
1
dist/src/plugins/plugin.js.map
vendored
1
dist/src/plugins/plugin.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/src/plugins/push.d.ts
vendored
3
dist/src/plugins/push.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
export declare class Push {
|
||||
static init(options: any): void;
|
||||
}
|
33
dist/src/plugins/push.js
vendored
33
dist/src/plugins/push.js
vendored
@ -1,33 +0,0 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Push = (function () {
|
||||
function Push() {
|
||||
}
|
||||
Push.init = function (options) { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Object]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], Push, "init", null);
|
||||
Push = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Push',
|
||||
plugin: 'phonegap-plugin-push',
|
||||
pluginRef: 'PushNotification'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], Push);
|
||||
return Push;
|
||||
})();
|
||||
exports.Push = Push;
|
||||
//# sourceMappingURL=push.js.map
|
1
dist/src/plugins/push.js.map
vendored
1
dist/src/plugins/push.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/plugins/push.ts"],"names":["Push","Push.constructor","Push.init"],"mappings":";;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAQAC,CAACA;IADQD,SAAIA,GADXA,UACYA,OAAWA,IAAEE,CAACA;;IAD1BF;QAACA,gBAAOA,EAAEA;;;;OACHA,YAAIA,QAAeA;IAP5BA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,MAAMA;YACZA,MAAMA,EAAEA,sBAAsBA;YAC9BA,SAASA,EAAEA,kBAAkBA;SAC9BA,CAACA;;aAIDA;IAADA,WAACA;AAADA,CAACA,AARD,IAQC;AAHY,YAAI,OAGhB,CAAA"}
|
11
dist/src/plugins/statusbar.d.ts
vendored
11
dist/src/plugins/statusbar.d.ts
vendored
@ -1,11 +0,0 @@
|
||||
export declare class StatusBar {
|
||||
static overlaysWebView(doOverlay: boolean): void;
|
||||
static styleDefault(): void;
|
||||
static styleLightContent(): void;
|
||||
static styleBlackTranslucent(): void;
|
||||
static styleBlackOpaque(): void;
|
||||
static backgroundColorByName(colorName: string): void;
|
||||
static backgroundColorByHexString(hexString: string): void;
|
||||
static hide(): void;
|
||||
static show(): void;
|
||||
}
|
98
dist/src/plugins/statusbar.js
vendored
98
dist/src/plugins/statusbar.js
vendored
@ -1,98 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var StatusBar = (function () {
|
||||
function StatusBar() {
|
||||
}
|
||||
StatusBar.overlaysWebView = function (doOverlay) { };
|
||||
;
|
||||
StatusBar.styleDefault = function () { };
|
||||
;
|
||||
StatusBar.styleLightContent = function () { };
|
||||
;
|
||||
StatusBar.styleBlackTranslucent = function () { };
|
||||
;
|
||||
StatusBar.styleBlackOpaque = function () { };
|
||||
;
|
||||
StatusBar.backgroundColorByName = function (colorName) { };
|
||||
;
|
||||
StatusBar.backgroundColorByHexString = function (hexString) { };
|
||||
;
|
||||
StatusBar.hide = function () { };
|
||||
;
|
||||
StatusBar.show = function () { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [Boolean]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "overlaysWebView", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "styleDefault", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "styleLightContent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "styleBlackTranslucent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "styleBlackOpaque", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "backgroundColorByName", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "backgroundColorByHexString", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "hide", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], StatusBar, "show", null);
|
||||
StatusBar = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'StatusBar',
|
||||
plugin: 'cordova-plugin-statusbar',
|
||||
pluginRef: 'StatusBar'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], StatusBar);
|
||||
return StatusBar;
|
||||
}());
|
||||
exports.StatusBar = StatusBar;
|
||||
//# sourceMappingURL=statusbar.js.map
|
1
dist/src/plugins/statusbar.js.map
vendored
1
dist/src/plugins/statusbar.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"statusbar.js","sourceRoot":"","sources":["../../../src/plugins/statusbar.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAkBzC;IAAA;IA+DA,CAAC;IAvDQ,yBAAe,GAAtB,UAAuB,SAAiB,IAAE,CAAC;;IAGpC,sBAAY,GAAnB,cAAsB,CAAC;;IAGhB,2BAAiB,GAAxB,cAA2B,CAAC;;IAGrB,+BAAqB,GAA5B,cAA+B,CAAC;;IAGzB,0BAAgB,GAAvB,cAA0B,CAAC;;IAWpB,+BAAqB,GAA5B,UAA6B,SAAgB,IAAE,CAAC;;IAUzC,oCAA0B,GAAjC,UAAkC,SAAgB,IAAE,CAAC;;IAe9C,cAAI,GAAX,cAAc,CAAC;;IAMR,cAAI,GAAX,cAAc,CAAC;;IAvDf;QAAC,gBAAO,EAAE;;;;0CAAA;IAGV;QAAC,gBAAO,EAAE;;;;uCAAA;IAGV;QAAC,gBAAO,EAAE;;;;4CAAA;IAGV;QAAC,gBAAO,EAAE;;;;gDAAA;IAGV;QAAC,gBAAO,EAAE;;;;2CAAA;IAWV;QAAC,gBAAO,EAAE;;;;gDAAA;IAUV;QAAC,gBAAO,EAAE;;;;qDAAA;IAeV;QAAC,gBAAO,EAAE;;;;+BAAA;IAMV;QAAC,gBAAO,EAAE;;;;+BAAA;IAlEZ;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,0BAA0B;YAClC,SAAS,EAAE,WAAW;SACvB,CAAC;;iBAAA;IAgEF,gBAAC;AAAD,CAAC,AA/DD,IA+DC;AA/DY,iBAAS,YA+DrB,CAAA"}
|
4
dist/src/plugins/toast.d.ts
vendored
4
dist/src/plugins/toast.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
export declare class Toast {
|
||||
static hide(): void;
|
||||
static showWithOptions(options: any): void;
|
||||
}
|
32
dist/src/plugins/toast.js
vendored
32
dist/src/plugins/toast.js
vendored
@ -1,32 +0,0 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var Toast = (function () {
|
||||
function Toast() {
|
||||
}
|
||||
Toast.hide = function () { };
|
||||
;
|
||||
Toast.showWithOptions = function (options) { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Toast, "hide", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Toast, "showWithOptions", null);
|
||||
Toast = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Toast',
|
||||
plugin: 'cordova-plugin-x-toast',
|
||||
pluginRef: 'plugins.toast',
|
||||
repo: 'https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin'
|
||||
})
|
||||
], Toast);
|
||||
return Toast;
|
||||
})();
|
||||
exports.Toast = Toast;
|
||||
//# sourceMappingURL=toast.js.map
|
1
dist/src/plugins/toast.js.map
vendored
1
dist/src/plugins/toast.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/plugins/toast.ts"],"names":["Toast","Toast.constructor","Toast.hide","Toast.showWithOptions"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAYAC,CAACA;IAJQD,UAAIA,GADXA,cACcE,CAACA;;IAGRF,qBAAeA,GADtBA,UACuBA,OAAWA,IAAEG,CAACA;;IAJrCH;QAACA,gBAAOA,EAAEA;OACHA,aAAIA,QAAIA;IAEfA;QAACA,gBAAOA,EAAEA;OACHA,wBAAeA,QAAeA;IAXvCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,OAAOA;YACbA,MAAMA,EAAEA,wBAAwBA;YAChCA,SAASA,EAAEA,eAAeA;YAC1BA,IAAIA,EAAEA,yDAAyDA;SAChEA,CAACA;cAODA;IAADA,YAACA;AAADA,CAACA,AAZD,IAYC;AANY,aAAK,QAMjB,CAAA"}
|
6
dist/src/plugins/touchid.d.ts
vendored
6
dist/src/plugins/touchid.d.ts
vendored
@ -1,6 +0,0 @@
|
||||
export declare class TouchID {
|
||||
isAvailable(): void;
|
||||
static verifyFingerprint(message: string): void;
|
||||
static verifyFingerprintWithCustomPasswordFallback(message: string): void;
|
||||
static verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel(message: string, enterPasswordLabel: string): void;
|
||||
}
|
56
dist/src/plugins/touchid.js
vendored
56
dist/src/plugins/touchid.js
vendored
@ -1,56 +0,0 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
var TouchID = (function () {
|
||||
function TouchID() {
|
||||
}
|
||||
TouchID.prototype.isAvailable = function () { };
|
||||
;
|
||||
TouchID.verifyFingerprint = function (message) { };
|
||||
TouchID.verifyFingerprintWithCustomPasswordFallback = function (message) { };
|
||||
TouchID.verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel = function (message, enterPasswordLabel) { };
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', []),
|
||||
__metadata('design:returntype', void 0)
|
||||
], TouchID.prototype, "isAvailable", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], TouchID, "verifyFingerprint", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], TouchID, "verifyFingerprintWithCustomPasswordFallback", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova(),
|
||||
__metadata('design:type', Function),
|
||||
__metadata('design:paramtypes', [String, String]),
|
||||
__metadata('design:returntype', void 0)
|
||||
], TouchID, "verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel", null);
|
||||
TouchID = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'TouchID',
|
||||
plugin: 'cordova-plugin-touch-id',
|
||||
pluginRef: 'plugins.touchid',
|
||||
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-touch-id'
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], TouchID);
|
||||
return TouchID;
|
||||
}());
|
||||
exports.TouchID = TouchID;
|
||||
//# sourceMappingURL=touchid.js.map
|
1
dist/src/plugins/touchid.js.map
vendored
1
dist/src/plugins/touchid.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"touchid.js","sourceRoot":"","sources":["../../../src/plugins/touchid.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAQzC;IAAA;IAYA,CAAC;IAVQ,6BAAW,GAAlB,cAAsB,CAAC;;IAGhB,yBAAiB,GAAxB,UAAyB,OAAc,IAAG,CAAC;IAGpC,mDAA2C,GAAlD,UAAmD,OAAc,IAAG,CAAC;IAG9D,wEAAgE,GAAvE,UAAwE,OAAc,EAAE,kBAAyB,IAAG,CAAC;IAVrH;QAAC,gBAAO,EAAE;;;;8CAAA;IAGV;QAAC,gBAAO,EAAE;;;;0CAAA;IAGV;QAAC,gBAAO,EAAE;;;;oEAAA;IAGV;QAAC,gBAAO,EAAE;;;;yFAAA;IAhBZ;QAAC,eAAM,CAAC;YACN,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,yBAAyB;YACjC,SAAS,EAAE,iBAAiB;YAC5B,IAAI,EAAE,2DAA2D;SAClE,CAAC;;eAAA;IAaF,cAAC;AAAD,CAAC,AAZD,IAYC;AAZY,eAAO,UAYnB,CAAA"}
|
1
dist/src/util.d.ts
vendored
1
dist/src/util.d.ts
vendored
@ -1 +0,0 @@
|
||||
export declare function get(obj: any, path: any): any;
|
12
dist/src/util.js
vendored
12
dist/src/util.js
vendored
@ -1,12 +0,0 @@
|
||||
function get(obj, path) {
|
||||
for (var i = 0, path = path.split('.'), len = path.length; i < len; i++) {
|
||||
if (!obj) {
|
||||
return null;
|
||||
}
|
||||
obj = obj[path[i]];
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
exports.get = get;
|
||||
;
|
||||
//# sourceMappingURL=util.js.map
|
1
dist/src/util.js.map
vendored
1
dist/src/util.js.map
vendored
@ -1 +0,0 @@
|
||||
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":["get"],"mappings":"AAAA,aAAoB,GAAG,EAAE,IAAI;IAC3BA,GAAGA,CAAAA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,IAAIA,GAAGA,IAAIA,CAACA,KAAKA,CAACA,GAAGA,CAACA,EAAEA,GAAGA,GAAGA,IAAIA,CAACA,MAAMA,EAAEA,CAACA,GAAGA,GAAGA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;QACvEA,EAAEA,CAAAA,CAACA,CAACA,GAAGA,CAACA,CAACA,CAACA;YAACA,MAAMA,CAACA,IAAIA,CAACA;QAACA,CAACA;QACzBA,GAAGA,GAAGA,GAAGA,CAACA,IAAIA,CAACA,CAACA,CAACA,CAACA,CAACA;IACrBA,CAACA;IACDA,MAAMA,CAACA,GAAGA,CAACA;AACbA,CAACA;AANe,WAAG,MAMlB,CAAA;AAAA,CAAC"}
|
Loading…
Reference in New Issue
Block a user