mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
Calendar
This commit is contained in:
parent
3b17353921
commit
14ec97d8d4
@ -2,6 +2,8 @@ import {App, Platform} from 'ionic/ionic';
|
||||
import {HomePage} from './home/home';
|
||||
import './app.scss';
|
||||
|
||||
import {StatusBar} from 'ionic-native';
|
||||
|
||||
@App({
|
||||
template: `
|
||||
<ion-nav [root]="root"></ion-nav>
|
||||
@ -19,6 +21,7 @@ export class MyApp {
|
||||
initializeApp() {
|
||||
this.platform.ready().then(() => {
|
||||
console.log('Platform ready');
|
||||
StatusBar.styleDefault();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import {
|
||||
ActionSheet,
|
||||
BLE,
|
||||
Camera,
|
||||
Calendar,
|
||||
Contacts,
|
||||
Device,
|
||||
Facebook,
|
||||
@ -25,6 +26,7 @@ export class HomePage {
|
||||
ActionSheet,
|
||||
BLE,
|
||||
Camera,
|
||||
Calendar,
|
||||
Contacts,
|
||||
Device,
|
||||
Facebook,
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<ion-content>
|
||||
<ion-input fixed-label>
|
||||
<textarea [(ng-model)]="content.value" style="height: 150px; font-size: 11px"></textarea>
|
||||
<textarea [(ng-model)]="content.value" style="height: 150px; font-size: 11px" placeholder="Plugin output will go here as you test methods..."></textarea>
|
||||
</ion-input>
|
||||
<ion-list>
|
||||
<button ion-item *ng-for="#method of methods" (click)="doMethod(method)">
|
||||
|
@ -2,7 +2,7 @@ import {ElementRef} from 'angular2/angular2';
|
||||
|
||||
import {Page, NavParams} from 'ionic/ionic';
|
||||
|
||||
import {Camera, StatusBar, Toast, ActionSheet, Facebook} from 'ionic-native';
|
||||
import {Camera, Calendar, StatusBar, Toast, ActionSheet, Facebook} from 'ionic-native';
|
||||
|
||||
import {safeJSONStringify} from '../util';
|
||||
|
||||
@ -36,17 +36,27 @@ demoArgs[Facebook] = {
|
||||
|
||||
var demoCode = {};
|
||||
|
||||
demoCode[Facebook] = function() {
|
||||
Facebook.login(["public_profile"]).then((userData) => {
|
||||
console.log("Facebook UserInfo: ", userData);
|
||||
this.output('Facebook UserInfo: ', userData);
|
||||
Facebook.getAccessToken().then((token) => {
|
||||
this.output('Facebook Token: ', token);
|
||||
console.log("Token: " + token);
|
||||
demoCode[Calendar] = {
|
||||
createEventInteractively: function() {
|
||||
Calendar.createEventInteractively("Grab Coffee", "Johnson Public House", new Date(), new Date()).then((event) => {
|
||||
console.log("Created event", event);
|
||||
this.output('Created event', event);
|
||||
})
|
||||
}
|
||||
};
|
||||
demoCode[Facebook] = {
|
||||
login: function() {
|
||||
Facebook.login(["public_profile"]).then((userData) => {
|
||||
console.log("Facebook UserInfo: ", userData);
|
||||
this.output('Facebook UserInfo: ', userData);
|
||||
Facebook.getAccessToken().then((token) => {
|
||||
this.output('Facebook Token: ', token);
|
||||
console.log("Token: " + token);
|
||||
});
|
||||
}, (err) => {
|
||||
console.error(err);
|
||||
});
|
||||
}, (err) => {
|
||||
console.error(err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -96,7 +106,7 @@ export class Plugin {
|
||||
|
||||
doMethod(method) {
|
||||
let pluginMethodArgEntry = demoArgs[this.plugin];
|
||||
let pluginCodeEntry = demoCode[this.plugin];
|
||||
let pluginCodeEntry = demoCode[this.plugin] && demoCode[this.plugin][method];
|
||||
|
||||
let args = [];
|
||||
if(pluginMethodArgEntry) {
|
||||
|
68
demo/www/app/util.js
Normal file
68
demo/www/app/util.js
Normal file
@ -0,0 +1,68 @@
|
||||
export function safeJSONStringify (input, maxDepth)
|
||||
{
|
||||
|
||||
var output,
|
||||
refs = [],
|
||||
refsPaths = [];
|
||||
|
||||
maxDepth = maxDepth || 5;
|
||||
|
||||
function recursion (input, path, depth)
|
||||
{
|
||||
var output = {},
|
||||
pPath,
|
||||
refIdx;
|
||||
|
||||
path = path || "";
|
||||
depth = depth || 0;
|
||||
depth++;
|
||||
|
||||
if (maxDepth && depth > maxDepth)
|
||||
{
|
||||
return "{depth over " + maxDepth + "}";
|
||||
}
|
||||
|
||||
for (var p in input)
|
||||
{
|
||||
pPath = (path ? (path+".") : "") + p;
|
||||
if (typeof input[p] === "function")
|
||||
{
|
||||
//output[p] = "{function}";
|
||||
}
|
||||
else if (typeof input[p] === "object")
|
||||
{
|
||||
/*
|
||||
refIdx = refs.indexOf(input[p]);
|
||||
|
||||
if (-1 !== refIdx)
|
||||
{
|
||||
output[p] = recursion(input[p])"{reference to " + refsPaths[refIdx] + "}";
|
||||
}
|
||||
else
|
||||
{
|
||||
*/
|
||||
refs.push(input[p]);
|
||||
refsPaths.push(pPath);
|
||||
output[p] = recursion(input[p], pPath, depth);
|
||||
//}
|
||||
}
|
||||
else
|
||||
{
|
||||
output[p] = input[p];
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
if (typeof input === "object")
|
||||
{
|
||||
output = recursion(input);
|
||||
}
|
||||
else
|
||||
{
|
||||
output = input;
|
||||
}
|
||||
|
||||
return JSON.stringify(output);
|
||||
}
|
1
dist/index.d.ts
vendored
1
dist/index.d.ts
vendored
@ -1,6 +1,7 @@
|
||||
export * from './plugins/actionsheet';
|
||||
export * from './plugins/ble';
|
||||
export * from './plugins/camera';
|
||||
export * from './plugins/calendar';
|
||||
export * from './plugins/contacts';
|
||||
export * from './plugins/device';
|
||||
export * from './plugins/facebook';
|
||||
|
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -5,6 +5,7 @@ var DEVICE_READY_TIMEOUT = 2000;
|
||||
__export(require('./plugins/actionsheet'));
|
||||
__export(require('./plugins/ble'));
|
||||
__export(require('./plugins/camera'));
|
||||
__export(require('./plugins/calendar'));
|
||||
__export(require('./plugins/contacts'));
|
||||
__export(require('./plugins/device'));
|
||||
__export(require('./plugins/facebook'));
|
||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,eAAe,CAAC,EAAA;AAC9B,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,qBAAqB,CAAC,EAAA;AACpC,iBAAc,iBAAiB,CAAC,EAAA;AAShC,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"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,eAAe,CAAC,EAAA;AAC9B,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,qBAAqB,CAAC,EAAA;AACpC,iBAAc,iBAAiB,CAAC,EAAA;AAShC,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"}
|
19
dist/plugins/calendar.d.ts
vendored
Normal file
19
dist/plugins/calendar.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
89
dist/plugins/calendar.js
vendored
Normal file
89
dist/plugins/calendar.js
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
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 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()
|
||||
], Calendar, "createCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "deleteCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "getCalendarOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "createEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "createEventWithOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "createEventInteractively", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "createEventInteractivelyWithOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "createEventInNamedCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "findEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "listEventsInRange", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "listCalendars", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "findAllEventsInNamedCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "modifyEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "modifyEventWithOptions", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "deleteEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "deleteEventFromNamedCalendar", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Calendar, "openCalendar", null);
|
||||
Calendar = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Calendar',
|
||||
plugin: 'cordova-plugin-calendar',
|
||||
pluginRef: 'plugins.calendar'
|
||||
})
|
||||
], Calendar);
|
||||
return Calendar;
|
||||
})();
|
||||
exports.Calendar = Calendar;
|
||||
//# sourceMappingURL=calendar.js.map
|
1
dist/plugins/calendar.js.map
vendored
Normal file
1
dist/plugins/calendar.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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":"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"}
|
11
dist/plugins/facebook.d.ts
vendored
Normal file
11
dist/plugins/facebook.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
57
dist/plugins/facebook.js
vendored
Normal file
57
dist/plugins/facebook.js
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
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 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()
|
||||
], Facebook, "login", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "logout", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "getLoginStatus", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "getAccessToken", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "showDialog", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "api", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "logEvent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "logPurchase", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Facebook, "appInvite", null);
|
||||
Facebook = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Facebook',
|
||||
plugin: 'cordova-plugin-facebook4',
|
||||
pluginRef: 'facebookConnectPlugin'
|
||||
})
|
||||
], Facebook);
|
||||
return Facebook;
|
||||
})();
|
||||
exports.Facebook = Facebook;
|
||||
//# sourceMappingURL=facebook.js.map
|
1
dist/plugins/facebook.js.map
vendored
Normal file
1
dist/plugins/facebook.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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/plugins/file.d.ts
vendored
Normal file
2
dist/plugins/file.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export declare class File {
|
||||
}
|
23
dist/plugins/file.js
vendored
Normal file
23
dist/plugins/file.js
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
|
||||
switch (arguments.length) {
|
||||
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
|
||||
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
|
||||
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
|
||||
}
|
||||
};
|
||||
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/plugins/file.js.map
vendored
Normal file
1
dist/plugins/file.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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"}
|
1
dist/src/index.d.ts
vendored
1
dist/src/index.d.ts
vendored
@ -1,6 +1,7 @@
|
||||
export * from './plugins/actionsheet';
|
||||
export * from './plugins/ble';
|
||||
export * from './plugins/camera';
|
||||
export * from './plugins/calendar';
|
||||
export * from './plugins/contacts';
|
||||
export * from './plugins/device';
|
||||
export * from './plugins/facebook';
|
||||
|
1
dist/src/index.js
vendored
1
dist/src/index.js
vendored
@ -5,6 +5,7 @@ var DEVICE_READY_TIMEOUT = 2000;
|
||||
__export(require('./plugins/actionsheet'));
|
||||
__export(require('./plugins/ble'));
|
||||
__export(require('./plugins/camera'));
|
||||
__export(require('./plugins/calendar'));
|
||||
__export(require('./plugins/contacts'));
|
||||
__export(require('./plugins/device'));
|
||||
__export(require('./plugins/facebook'));
|
||||
|
2
dist/src/index.js.map
vendored
2
dist/src/index.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,eAAe,CAAC,EAAA;AAC9B,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,qBAAqB,CAAC,EAAA;AACpC,iBAAc,iBAAiB,CAAC,EAAA;AAShC,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"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,eAAe,CAAC,EAAA;AAC9B,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,qBAAqB,CAAC,EAAA;AACpC,iBAAc,iBAAiB,CAAC,EAAA;AAShC,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"}
|
4
dist/src/plugins/actionsheet.d.ts
vendored
Normal file
4
dist/src/plugins/actionsheet.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare class ActionSheet {
|
||||
static show(options: any): void;
|
||||
static hide(options: any): void;
|
||||
}
|
32
dist/src/plugins/actionsheet.js
vendored
Normal file
32
dist/src/plugins/actionsheet.js
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
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 ActionSheet = (function () {
|
||||
function ActionSheet() {
|
||||
}
|
||||
ActionSheet.show = function (options) { };
|
||||
;
|
||||
ActionSheet.hide = function (options) { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], ActionSheet, "show", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], 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'
|
||||
})
|
||||
], ActionSheet);
|
||||
return ActionSheet;
|
||||
})();
|
||||
exports.ActionSheet = ActionSheet;
|
||||
//# sourceMappingURL=actionsheet.js.map
|
1
dist/src/plugins/actionsheet.js.map
vendored
Normal file
1
dist/src/plugins/actionsheet.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"actionsheet.js","sourceRoot":"","sources":["../../../src/plugins/actionsheet.ts"],"names":["ActionSheet","ActionSheet.constructor","ActionSheet.show","ActionSheet.hide"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAYAC,CAACA;IAJQD,gBAAIA,GADXA,UACYA,OAAWA,IAAEE,CAACA;;IAGnBF,gBAAIA,GADXA,UACYA,OAAWA,IAAEG,CAACA;;IAJ1BH;QAACA,gBAAOA,EAAEA;OACHA,mBAAIA,QAAeA;IAE1BA;QAACA,gBAAOA,EAAEA;OACHA,mBAAIA,QAAeA;IAX5BA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,qBAAqBA;YAChCA,IAAIA,EAAEA,8DAA8DA;SACrEA,CAACA;oBAODA;IAADA,kBAACA;AAADA,CAACA,AAZD,IAYC;AANY,mBAAW,cAMvB,CAAA"}
|
10
dist/src/plugins/ble.d.ts
vendored
Normal file
10
dist/src/plugins/ble.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
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
Normal file
61
dist/src/plugins/ble.js
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
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
Normal file
1
dist/src/plugins/ble.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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
Normal file
19
dist/src/plugins/calendar.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
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
Normal file
144
dist/src/plugins/calendar.js
vendored
Normal file
@ -0,0 +1,144 @@
|
||||
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
Normal file
1
dist/src/plugins/calendar.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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":"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"}
|
4
dist/src/plugins/camera.d.ts
vendored
Normal file
4
dist/src/plugins/camera.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare class Camera {
|
||||
static getPicture(options: any): void;
|
||||
static cleanup(): void;
|
||||
}
|
34
dist/src/plugins/camera.js
vendored
Normal file
34
dist/src/plugins/camera.js
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
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 Camera = (function () {
|
||||
function Camera() {
|
||||
}
|
||||
Camera.getPicture = function (options) { };
|
||||
;
|
||||
Camera.cleanup = function () { };
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
// Not sure why this plugin has the success/err come first...
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
], Camera, "getPicture", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Camera, "cleanup", null);
|
||||
Camera = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Camera',
|
||||
plugin: 'cordova-plugin-camera',
|
||||
pluginRef: 'navigator.camera'
|
||||
})
|
||||
], Camera);
|
||||
return Camera;
|
||||
})();
|
||||
exports.Camera = Camera;
|
||||
//# sourceMappingURL=camera.js.map
|
1
dist/src/plugins/camera.js.map
vendored
Normal file
1
dist/src/plugins/camera.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"camera.js","sourceRoot":"","sources":["../../../src/plugins/camera.ts"],"names":["Camera","Camera.constructor","Camera.getPicture","Camera.cleanup"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAcAC,CAACA;IAJQD,iBAAUA,GAJjBA,UAIkBA,OAAWA,IAAEE,CAACA;;IAGzBF,cAAOA,GADdA,cACiBG,CAACA;;IAPlBH;QAACA,gBAAOA,CAACA;YACPA,6DAA6DA;YAC7DA,aAAaA,EAAEA,SAASA;SACzBA,CAACA;OACKA,oBAAUA,QAAeA;IAEhCA;QAACA,gBAAOA,EAAEA;OACHA,iBAAOA,QAAIA;IAbpBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,kBAAkBA;SAC9BA,CAACA;eAUDA;IAADA,aAACA;AAADA,CAACA,AAdD,IAcC;AATY,cAAM,SASlB,CAAA"}
|
5
dist/src/plugins/contacts.d.ts
vendored
Normal file
5
dist/src/plugins/contacts.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare class Contacts {
|
||||
static create(fields: string[], options: any): void;
|
||||
static find(fields: string[], options: any): void;
|
||||
static pickContact(): void;
|
||||
}
|
43
dist/src/plugins/contacts.js
vendored
Normal file
43
dist/src/plugins/contacts.js
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
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 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
|
||||
})
|
||||
], Contacts, "create", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
], Contacts, "find", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], 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'
|
||||
})
|
||||
], Contacts);
|
||||
return Contacts;
|
||||
})();
|
||||
exports.Contacts = Contacts;
|
||||
//# sourceMappingURL=contacts.js.map
|
1
dist/src/plugins/contacts.js.map
vendored
Normal file
1
dist/src/plugins/contacts.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/plugins/contacts.ts"],"names":["Contacts","Contacts.constructor","Contacts.create","Contacts.find","Contacts.pickContact"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAsBAC,CAACA;IAVQD,eAAMA,GALbA,UAKcA,MAAeA,EAAEA,OAAWA,IAAEE,CAACA;;IAMtCF,aAAIA,GAJXA,UAIYA,MAAeA,EAAEA,OAAWA,IAAEG,CAACA;;IAGpCH,oBAAWA,GADlBA,cACqBI,CAACA;;IAdtBJ;QAACA,gBAAOA,CAACA;YACPA,YAAYA,EAAEA,CAACA;YACfA,UAAUA,EAAEA,CAACA;SACdA,CAACA;OAEKA,kBAAMA,QAAgCA;IAE7CA;QAACA,gBAAOA,CAACA;YACPA,YAAYA,EAAEA,CAACA;YACfA,UAAUA,EAAEA,CAACA;SACdA,CAACA;OACKA,gBAAIA,QAAgCA;IAE3CA;QAACA,gBAAOA,EAAEA;OACHA,uBAAWA,QAAIA;IArBxBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,UAAUA;YAChBA,MAAMA,EAAEA,yBAAyBA;YACjCA,SAASA,EAAEA,oBAAoBA;YAC/BA,IAAIA,EAAEA,mDAAmDA;SAC1DA,CAACA;iBAiBDA;IAADA,eAACA;AAADA,CAACA,AAtBD,IAsBC;AAhBY,gBAAQ,WAgBpB,CAAA"}
|
3
dist/src/plugins/device.d.ts
vendored
Normal file
3
dist/src/plugins/device.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare class Device {
|
||||
static getDevice(): any;
|
||||
}
|
27
dist/src/plugins/device.js
vendored
Normal file
27
dist/src/plugins/device.js
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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 Device = (function () {
|
||||
function Device() {
|
||||
}
|
||||
Device.getDevice = function () {
|
||||
return window.device;
|
||||
};
|
||||
__decorate([
|
||||
plugin_1.RequiresPlugin
|
||||
], Device, "getDevice", null);
|
||||
Device = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Device',
|
||||
plugin: 'cordova-plugin-device',
|
||||
pluginRef: 'device'
|
||||
})
|
||||
], Device);
|
||||
return Device;
|
||||
})();
|
||||
exports.Device = Device;
|
||||
//# sourceMappingURL=device.js.map
|
1
dist/src/plugins/device.js.map
vendored
Normal file
1
dist/src/plugins/device.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/plugins/device.ts"],"names":["Device","Device.constructor","Device.getDevice"],"mappings":";;;;;;AAAA,uBAAqC,UAAU,CAAC,CAAA;AAIhD;IAAAA;IAWAC,CAACA;IAHQD,gBAASA,GADhBA;QAEEE,MAAMA,CAACA,MAAMA,CAACA,MAAMA,CAACA;IACvBA,CAACA;IAHDF;QAACA,uBAAcA;OACRA,mBAASA,QAEfA;IAVHA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,QAAQA;SACpBA,CAACA;eAODA;IAADA,aAACA;AAADA,CAACA,AAXD,IAWC;AANY,cAAM,SAMlB,CAAA"}
|
11
dist/src/plugins/facebook.d.ts
vendored
Normal file
11
dist/src/plugins/facebook.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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
Normal file
88
dist/src/plugins/facebook.js
vendored
Normal file
@ -0,0 +1,88 @@
|
||||
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
Normal file
1
dist/src/plugins/facebook.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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
Normal file
2
dist/src/plugins/file.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export declare class File {
|
||||
}
|
21
dist/src/plugins/file.js
vendored
Normal file
21
dist/src/plugins/file.js
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
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
Normal file
1
dist/src/plugins/file.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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"}
|
11
dist/src/plugins/statusbar.d.ts
vendored
Normal file
11
dist/src/plugins/statusbar.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
66
dist/src/plugins/statusbar.js
vendored
Normal file
66
dist/src/plugins/statusbar.js
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
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 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()
|
||||
], StatusBar, "overlaysWebView", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "styleDefault", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "styleLightContent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "styleBlackTranslucent", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "styleBlackOpaque", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "backgroundColorByName", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "backgroundColorByHexString", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "hide", null);
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], StatusBar, "show", null);
|
||||
StatusBar = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'StatusBar',
|
||||
plugin: 'cordova-plugin-statusbar',
|
||||
pluginRef: 'StatusBar'
|
||||
})
|
||||
], StatusBar);
|
||||
return StatusBar;
|
||||
})();
|
||||
exports.StatusBar = StatusBar;
|
||||
//# sourceMappingURL=statusbar.js.map
|
1
dist/src/plugins/statusbar.js.map
vendored
Normal file
1
dist/src/plugins/statusbar.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"statusbar.js","sourceRoot":"","sources":["../../../src/plugins/statusbar.ts"],"names":["StatusBar","StatusBar.constructor","StatusBar.overlaysWebView","StatusBar.styleDefault","StatusBar.styleLightContent","StatusBar.styleBlackTranslucent","StatusBar.styleBlackOpaque","StatusBar.backgroundColorByName","StatusBar.backgroundColorByHexString","StatusBar.hide","StatusBar.show"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAwBAC,CAACA;IAjBQD,yBAAeA,GADtBA,UACuBA,SAAiBA,IAAEE,CAACA;;IAEpCF,sBAAYA,GADnBA,cACsBG,CAACA;;IAEhBH,2BAAiBA,GADxBA,cAC2BI,CAACA;;IAErBJ,+BAAqBA,GAD5BA,cAC+BK,CAACA;;IAEzBL,0BAAgBA,GADvBA,cAC0BM,CAACA;;IAEpBN,+BAAqBA,GAD5BA,UAC6BA,SAAgBA,IAAEO,CAACA;;IAEzCP,oCAA0BA,GADjCA,UACkCA,SAAgBA,IAAEQ,CAACA;;IAE9CR,cAAIA,GADXA,cACcS,CAACA;;IAERT,cAAIA,GADXA,cACcU,CAACA;;IAjBfV;QAACA,gBAAOA,EAAEA;OACHA,4BAAeA,QAAqBA;IAC3CA;QAACA,gBAAOA,EAAEA;OACHA,yBAAYA,QAAIA;IACvBA;QAACA,gBAAOA,EAAEA;OACHA,8BAAiBA,QAAIA;IAC5BA;QAACA,gBAAOA,EAAEA;OACHA,kCAAqBA,QAAIA;IAChCA;QAACA,gBAAOA,EAAEA;OACHA,6BAAgBA,QAAIA;IAC3BA;QAACA,gBAAOA,EAAEA;OACHA,kCAAqBA,QAAoBA;IAChDA;QAACA,gBAAOA,EAAEA;OACHA,uCAA0BA,QAAoBA;IACrDA;QAACA,gBAAOA,EAAEA;OACHA,iBAAIA,QAAIA;IACfA;QAACA,gBAAOA,EAAEA;OACHA,iBAAIA,QAAIA;IAvBjBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,WAAWA;YACjBA,MAAMA,EAAEA,0BAA0BA;YAClCA,SAASA,EAAEA,WAAWA;SACvBA,CAACA;kBAoBDA;IAADA,gBAACA;AAADA,CAACA,AAxBD,IAwBC;AAnBY,iBAAS,YAmBrB,CAAA"}
|
4
dist/src/plugins/toast.d.ts
vendored
Normal file
4
dist/src/plugins/toast.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare class Toast {
|
||||
static hide(): void;
|
||||
static showWithOptions(options: any): void;
|
||||
}
|
32
dist/src/plugins/toast.js
vendored
Normal file
32
dist/src/plugins/toast.js
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
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
Normal file
1
dist/src/plugins/toast.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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"}
|
1
dist/src/util.d.ts
vendored
Normal file
1
dist/src/util.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare function get(obj: any, path: any): any;
|
12
dist/src/util.js
vendored
Normal file
12
dist/src/util.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
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
Normal file
1
dist/src/util.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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"}
|
@ -3,6 +3,7 @@ const DEVICE_READY_TIMEOUT = 2000;
|
||||
export * from './plugins/actionsheet';
|
||||
export * from './plugins/ble';
|
||||
export * from './plugins/camera';
|
||||
export * from './plugins/calendar';
|
||||
export * from './plugins/contacts';
|
||||
export * from './plugins/device';
|
||||
export * from './plugins/facebook';
|
||||
|
59
src/plugins/calendar.ts
Normal file
59
src/plugins/calendar.ts
Normal file
@ -0,0 +1,59 @@
|
||||
import {Plugin, Cordova} from './plugin';
|
||||
|
||||
@Plugin({
|
||||
name: 'Calendar',
|
||||
plugin: 'cordova-plugin-calendar',
|
||||
pluginRef: 'plugins.calendar'
|
||||
})
|
||||
export class Calendar {
|
||||
@Cordova()
|
||||
static createCalendar(options:any) {}
|
||||
|
||||
@Cordova()
|
||||
static deleteCalendar(calendarName:string) {}
|
||||
|
||||
@Cordova()
|
||||
static getCalendarOptions() {}
|
||||
|
||||
@Cordova()
|
||||
static createEvent(title, location, notes, startDate, endDate) {}
|
||||
|
||||
@Cordova()
|
||||
static createEventWithOptions(title, location, notes, startDate, endDate, options) {}
|
||||
|
||||
@Cordova()
|
||||
static createEventInteractively(title, location, notes, startDate, endDate) {}
|
||||
|
||||
@Cordova()
|
||||
static createEventInteractivelyWithOptions(title, location, notes, startDate, endDate, options) {}
|
||||
|
||||
@Cordova()
|
||||
static createEventInNamedCalendar(title, location, notes, startDate, endDate, calendarName) {}
|
||||
|
||||
@Cordova()
|
||||
static findEvent(title, location, notes, startDate, endDate) {}
|
||||
|
||||
@Cordova()
|
||||
static listEventsInRange(startDate:any, endDate:any) {}
|
||||
|
||||
@Cordova()
|
||||
static listCalendars(){}
|
||||
|
||||
@Cordova()
|
||||
static findAllEventsInNamedCalendar(calendarName:string) {}
|
||||
|
||||
@Cordova()
|
||||
static modifyEvent(title, location, notes, startDate, endDate, newTitle, newLocation, newNotes, newStartDate, newEndDate) {}
|
||||
|
||||
@Cordova()
|
||||
static modifyEventWithOptions(title, location, notes, startDate, endDate, newTitle, newEventLocation, newNotes, newStartDate, newEndDate, options) {}
|
||||
|
||||
@Cordova()
|
||||
static deleteEvent(title, location, notes, startDate, endDate) {}
|
||||
|
||||
@Cordova()
|
||||
static deleteEventFromNamedCalendar(title, location, notes, startDate, endDate, calendarName) {}
|
||||
|
||||
@Cordova()
|
||||
static openCalendar(date) {}
|
||||
}
|
35
src/plugins/facebook.ts
Normal file
35
src/plugins/facebook.ts
Normal file
@ -0,0 +1,35 @@
|
||||
import {Plugin, Cordova} from './plugin';
|
||||
|
||||
@Plugin({
|
||||
name: 'Facebook',
|
||||
plugin: 'cordova-plugin-facebook4',
|
||||
pluginRef: 'facebookConnectPlugin'
|
||||
})
|
||||
export class Facebook {
|
||||
@Cordova()
|
||||
static login(permissions:string[]){}
|
||||
|
||||
@Cordova()
|
||||
static logout(){}
|
||||
|
||||
@Cordova()
|
||||
static getLoginStatus(){}
|
||||
|
||||
@Cordova()
|
||||
static getAccessToken(){}
|
||||
|
||||
@Cordova()
|
||||
static showDialog(options:any){}
|
||||
|
||||
@Cordova()
|
||||
static api(requestPath:string, permissions:string[]){}
|
||||
|
||||
@Cordova()
|
||||
static logEvent(name:string, params:any, valueToSum:number){}
|
||||
|
||||
@Cordova()
|
||||
static logPurchase(value:number, currency:string){}
|
||||
|
||||
@Cordova()
|
||||
static appInvite(options:any){}
|
||||
}
|
@ -18,6 +18,7 @@
|
||||
"src/index.ts",
|
||||
"src/plugins/actionsheet.ts",
|
||||
"src/plugins/ble.ts",
|
||||
"src/plugins/calendar.ts",
|
||||
"src/plugins/camera.ts",
|
||||
"src/plugins/contacts.ts",
|
||||
"src/plugins/device.ts",
|
||||
|
Loading…
Reference in New Issue
Block a user