Comparing version 1.7.0 to 1.8.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : | ||
typeof define === 'function' && define.amd ? define('ngx-kjua', ['exports', '@angular/core', '@angular/common'], factory) : | ||
(global = global || self, factory(global['ngx-kjua'] = {}, global.ng.core, global.ng.common)); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : | ||
typeof define === 'function' && define.amd ? define('ngx-kjua', ['exports', '@angular/core', '@angular/common'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-kjua'] = {}, global.ng.core, global.ng.common)); | ||
}(this, (function (exports, core, common) { 'use strict'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
var kjua; | ||
var NgxKjuaComponent = /** @class */ (function () { | ||
function NgxKjuaComponent(platformId) { | ||
this.platformId = platformId; | ||
/** | ||
* render method | ||
*/ | ||
this.render = "image"; | ||
/** | ||
* render pixel-perfect lines | ||
*/ | ||
this.crisp = true; | ||
/** | ||
* minimum version= 1..40 | ||
*/ | ||
this.minVersion = 1; | ||
/** | ||
* error correction level | ||
*/ | ||
this.ecLevel = "L"; | ||
/** | ||
* size in pixel | ||
*/ | ||
this.size = 200; | ||
/** | ||
* pixel-ratio; undefined for devicePixelRatio | ||
*/ | ||
this.ratio = undefined; | ||
/** | ||
* code color | ||
*/ | ||
this.fill = "#333"; | ||
/** | ||
* background color | ||
*/ | ||
this.back = "#fff"; | ||
/** | ||
* content | ||
*/ | ||
this.text = ""; | ||
/** | ||
* roundend corners in pc= 0..100 | ||
*/ | ||
this.rounded = 0; | ||
/** | ||
* quiet zone in modules | ||
*/ | ||
this.quiet = 0; | ||
/** | ||
* modes | ||
*/ | ||
this.mode = "plain"; | ||
/** | ||
* label/image size and pos in pc= 0..100 | ||
*/ | ||
this.mSize = 30; | ||
this.mPosX = 50; | ||
this.mPosY = 50; | ||
this.image = undefined; | ||
this.imageAsCode = false; | ||
/** | ||
* label | ||
*/ | ||
this.label = ""; | ||
this.fontname = "sans-serif"; | ||
this.fontcolor = "#333"; | ||
this.fontoutline = true; | ||
/** | ||
* If true, rendering is done inside "requestAnimationFrame"-call. | ||
* Use this if you want to generate more than one code (e.g. batch) | ||
*/ | ||
this.renderAsync = false; | ||
this.viewInitialized = false; | ||
if (common.isPlatformServer(this.platformId)) { | ||
return; | ||
} | ||
else if (!kjua) { | ||
kjua = require("kjua-svg"); | ||
} | ||
} | ||
NgxKjuaComponent.prototype.ngAfterViewInit = function () { | ||
this.viewInitialized = true; | ||
this.updateView(); | ||
}; | ||
NgxKjuaComponent.prototype.ngOnChanges = function (changes) { | ||
if (this.viewInitialized) { | ||
this.updateView(); | ||
} | ||
}; | ||
Object.defineProperty(NgxKjuaComponent.prototype, "template", { | ||
get: function () { | ||
var settings = { | ||
render: this.render, | ||
crisp: this.crisp, | ||
minVersion: this.minVersion, | ||
ecLevel: this.ecLevel, | ||
size: this.size, | ||
ratio: this.ratio, | ||
fill: this.fill, | ||
back: this.back, | ||
text: this.text, | ||
rounded: this.rounded, | ||
quiet: this.quiet, | ||
mode: this.mode, | ||
mSize: this.mSize, | ||
mPosX: this.mPosX, | ||
mPosY: this.mPosY, | ||
label: this.label, | ||
fontname: this.fontname, | ||
fontcolor: this.fontcolor, | ||
image: this.image, | ||
fontoutline: this.fontoutline, | ||
imageAsCode: this.imageAsCode | ||
}; | ||
console.debug("kjua settings used:", settings); | ||
return kjua(settings); | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
NgxKjuaComponent.prototype.renderCode = function () { | ||
this.div.nativeElement.innerHTML = ""; | ||
this.div.nativeElement.appendChild(this.template); | ||
}; | ||
NgxKjuaComponent.prototype.updateView = function () { | ||
var _this = this; | ||
this.div.nativeElement.style.width = +this.size; | ||
this.div.nativeElement.style.height = +this.size; | ||
if (this.renderAsync) { | ||
requestAnimationFrame(function () { return _this.renderCode(); }); | ||
} | ||
else { | ||
this.renderCode(); | ||
} | ||
}; | ||
return NgxKjuaComponent; | ||
}()); | ||
NgxKjuaComponent.decorators = [ | ||
{ type: core.Component, args: [{ | ||
selector: "ngx-kjua", | ||
template: "\n <div [class]=\"cssClass\" #elem></div>", | ||
changeDetection: core.ChangeDetectionStrategy.OnPush, | ||
styles: ["\n :host {\n display: block;\n }\n "] | ||
},] } | ||
]; | ||
NgxKjuaComponent.ctorParameters = function () { return [ | ||
{ type: Object, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] } | ||
]; }; | ||
NgxKjuaComponent.propDecorators = { | ||
render: [{ type: core.Input }], | ||
crisp: [{ type: core.Input }], | ||
minVersion: [{ type: core.Input }], | ||
ecLevel: [{ type: core.Input }], | ||
size: [{ type: core.Input }], | ||
ratio: [{ type: core.Input }], | ||
fill: [{ type: core.Input }], | ||
back: [{ type: core.Input }], | ||
text: [{ type: core.Input }], | ||
rounded: [{ type: core.Input }], | ||
quiet: [{ type: core.Input }], | ||
mode: [{ type: core.Input }], | ||
mSize: [{ type: core.Input }], | ||
mPosX: [{ type: core.Input }], | ||
mPosY: [{ type: core.Input }], | ||
image: [{ type: core.Input }], | ||
imageAsCode: [{ type: core.Input }], | ||
label: [{ type: core.Input }], | ||
fontname: [{ type: core.Input }], | ||
fontcolor: [{ type: core.Input }], | ||
fontoutline: [{ type: core.Input }], | ||
renderAsync: [{ type: core.Input }], | ||
cssClass: [{ type: core.Input }], | ||
div: [{ type: core.ViewChild, args: ["elem",] }] | ||
}; | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
var NgxKjuaModule = /** @class */ (function () { | ||
function NgxKjuaModule() { | ||
} | ||
return NgxKjuaModule; | ||
}()); | ||
NgxKjuaModule.decorators = [ | ||
{ type: core.NgModule, args: [{ | ||
imports: [ | ||
common.CommonModule | ||
], | ||
declarations: [ | ||
NgxKjuaComponent | ||
], | ||
exports: [ | ||
NgxKjuaComponent | ||
] | ||
},] } | ||
]; | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var QrCodeHelper = /** @class */ (function () { | ||
function QrCodeHelper() { | ||
} | ||
/** | ||
* Make the code for creating an SMS. | ||
* Number can be provided as number or string (useful for international format e.g. +1 for USA) | ||
* | ||
* @paramnumber | ||
* @param text | ||
*/ | ||
QrCodeHelper.makeSMS = function (number, text) { | ||
if (text) { | ||
if (text.length > 160) { | ||
return "SMSTO:" + number + ":" + text.substr(0, 160); | ||
} | ||
else { | ||
return "SMSTO:" + number + ":" + text; | ||
} | ||
} | ||
else { | ||
return "SMSTO:" + number; | ||
} | ||
}; | ||
/** | ||
* Make the code for making a phone call | ||
* Number can be provided as number or string (useful for international format e.g. +1 for USA) | ||
* | ||
* @param number | ||
*/ | ||
QrCodeHelper.makeCall = function (number) { | ||
return "tel:" + number; | ||
}; | ||
/** | ||
* Make the code for encoding a location | ||
* | ||
* @param lat | ||
* @param lon | ||
* @param meters | ||
*/ | ||
QrCodeHelper.makeGeo = function (lat, lon, meters) { | ||
if (meters === void 0) { meters = 400; } | ||
return "geo:" + lat + "," + lon + "," + meters; | ||
}; | ||
/** | ||
* Make the code for encoding an event in iCal format | ||
* You have to do the encoding for the begin and end by yourself (use moment.js!) | ||
* | ||
* @param description | ||
* @param begin | ||
* @param end | ||
*/ | ||
QrCodeHelper.makeEvent = function (description, begin, end) { | ||
return "BEGIN:VEVENT\nSUMMARY:" + description + "\nDTSTART:" + begin + "\nDTEND:" + end + "\nEND:VEVENT"; | ||
}; | ||
/** | ||
* Make the code for an Email | ||
* | ||
* @param recipient | ||
* @param subject | ||
* @param text | ||
*/ | ||
QrCodeHelper.makeEmail = function (recipient, subject, text) { | ||
var retVal = "MATMSG:TO:" + recipient + ";"; | ||
if (subject) { | ||
retVal += "SUB:" + subject; | ||
} | ||
retVal += ";"; | ||
if (text) { | ||
retVal += "BODY:" + text; | ||
} | ||
retVal += ";;"; | ||
return retVal; | ||
}; | ||
/** | ||
* Make the code that lets user login to a WiFi | ||
* If no pass is provided, the WiFi is considered as not encrypted (no WPA) | ||
* | ||
* @param ssid | ||
* @param pass | ||
* @param hidden | ||
*/ | ||
QrCodeHelper.makeWifi = function (ssid, pass, hidden) { | ||
if (hidden === void 0) { hidden = false; } | ||
var retVal = "WIFI:" + (!!pass ? "T:WPA" : "T:nopass") + ";S:" + ssid + ";"; | ||
if (pass) { | ||
retVal += "P:" + pass; | ||
} | ||
retVal += ";"; | ||
if (hidden) { | ||
retVal += "H:true"; | ||
} | ||
retVal += ";"; | ||
return retVal; | ||
}; | ||
/** | ||
* Make the code that encodes contact information. | ||
* Numbers can be provided as number or string (useful for international format e.g. +1 for USA) | ||
* Encoding is done with MECARD-format and NOT VCard! VCard gives a longer string and therefore a | ||
* bigger code which has a negative impact on readability for scanners. You can, of course, create | ||
* a VCard string as well but the format is more complex. | ||
* | ||
* @param name | ||
* @param telNumbers | ||
* @param address, values separated with comma | ||
* @param email | ||
* @param url | ||
*/ | ||
QrCodeHelper.makeContactMeCard = function (name, telNumbers, address, email, url) { | ||
var retVal = "MECARD:N:" + name + ";"; | ||
if (address) { | ||
retVal += "ADR:" + address + ";"; | ||
} | ||
if (telNumbers && telNumbers.length > 0) { | ||
for (var i = 0; i < telNumbers.length; i++) { | ||
retVal += "TEL:" + telNumbers[i] + ";"; | ||
} | ||
} | ||
if (email) { | ||
retVal += "EMAIL:" + email + ";"; | ||
} | ||
if (url) { | ||
retVal += "URL:" + url + ";"; | ||
} | ||
retVal += ";"; | ||
return retVal; | ||
}; | ||
return QrCodeHelper; | ||
}()); | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
exports.NgxKjuaModule = NgxKjuaModule; | ||
exports.QrCodeHelper = QrCodeHelper; | ||
exports.ɵa = NgxKjuaComponent; | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
function __decorate(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; | ||
} | ||
function __param(paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
} | ||
function __metadata(metadataKey, metadataValue) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
function __exportStar(m, exports) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
function __values(o) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; | ||
if (m) return m.call(o); | ||
return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
} | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
function __spreadArrays() { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
function __await(v) { | ||
return this instanceof __await ? (this.v = v, this) : new __await(v); | ||
} | ||
function __asyncGenerator(thisArg, _arguments, generator) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
function fulfill(value) { resume("next", value); } | ||
function reject(value) { resume("throw", value); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | ||
} | ||
function __asyncDelegator(o) { | ||
var i, p; | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } | ||
} | ||
function __asyncValues(o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator], i; | ||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); | ||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } | ||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } | ||
} | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
function __importStar(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result.default = mod; | ||
return result; | ||
} | ||
function __importDefault(mod) { | ||
return (mod && mod.__esModule) ? mod : { default: mod }; | ||
} | ||
var kjua; | ||
var NgxKjuaComponent = /** @class */ (function () { | ||
function NgxKjuaComponent(platformId) { | ||
this.platformId = platformId; | ||
/** | ||
* render method | ||
*/ | ||
this.render = "image"; | ||
/** | ||
* render pixel-perfect lines | ||
*/ | ||
this.crisp = true; | ||
/** | ||
* minimum version= 1..40 | ||
*/ | ||
this.minVersion = 1; | ||
/** | ||
* error correction level | ||
*/ | ||
this.ecLevel = "L"; | ||
/** | ||
* size in pixel | ||
*/ | ||
this.size = 200; | ||
/** | ||
* pixel-ratio; undefined for devicePixelRatio | ||
*/ | ||
this.ratio = undefined; | ||
/** | ||
* code color | ||
*/ | ||
this.fill = "#333"; | ||
/** | ||
* background color | ||
*/ | ||
this.back = "#fff"; | ||
/** | ||
* content | ||
*/ | ||
this.text = ""; | ||
/** | ||
* roundend corners in pc= 0..100 | ||
*/ | ||
this.rounded = 0; | ||
/** | ||
* quiet zone in modules | ||
*/ | ||
this.quiet = 0; | ||
/** | ||
* modes | ||
*/ | ||
this.mode = "plain"; | ||
/** | ||
* label/image size and pos in pc= 0..100 | ||
*/ | ||
this.mSize = 30; | ||
this.mPosX = 50; | ||
this.mPosY = 50; | ||
this.image = undefined; | ||
this.imageAsCode = false; | ||
/** | ||
* label | ||
*/ | ||
this.label = ""; | ||
this.fontname = "sans-serif"; | ||
this.fontcolor = "#333"; | ||
this.fontoutline = true; | ||
/** | ||
* If true, rendering is done inside "requestAnimationFrame"-call. | ||
* Use this if you want to generate more than one code (e.g. batch) | ||
*/ | ||
this.renderAsync = false; | ||
this.viewInitialized = false; | ||
if (common.isPlatformServer(this.platformId)) { | ||
return; | ||
} | ||
else if (!kjua) { | ||
kjua = require("kjua-svg"); | ||
} | ||
} | ||
NgxKjuaComponent.prototype.ngAfterViewInit = function () { | ||
this.viewInitialized = true; | ||
this.updateView(); | ||
}; | ||
NgxKjuaComponent.prototype.ngOnChanges = function (changes) { | ||
if (this.viewInitialized) { | ||
this.updateView(); | ||
} | ||
}; | ||
Object.defineProperty(NgxKjuaComponent.prototype, "template", { | ||
get: function () { | ||
var settings = { | ||
render: this.render, | ||
crisp: this.crisp, | ||
minVersion: this.minVersion, | ||
ecLevel: this.ecLevel, | ||
size: this.size, | ||
ratio: this.ratio, | ||
fill: this.fill, | ||
back: this.back, | ||
text: this.text, | ||
rounded: this.rounded, | ||
quiet: this.quiet, | ||
mode: this.mode, | ||
mSize: this.mSize, | ||
mPosX: this.mPosX, | ||
mPosY: this.mPosY, | ||
label: this.label, | ||
fontname: this.fontname, | ||
fontcolor: this.fontcolor, | ||
image: this.image, | ||
fontoutline: this.fontoutline, | ||
imageAsCode: this.imageAsCode | ||
}; | ||
console.debug("kjua settings used:", settings); | ||
return kjua(settings); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
NgxKjuaComponent.prototype.renderCode = function () { | ||
this.div.nativeElement.innerHTML = ""; | ||
this.div.nativeElement.appendChild(this.template); | ||
}; | ||
NgxKjuaComponent.prototype.updateView = function () { | ||
var _this = this; | ||
this.div.nativeElement.style.width = +this.size; | ||
this.div.nativeElement.style.height = +this.size; | ||
if (this.renderAsync) { | ||
requestAnimationFrame(function () { return _this.renderCode(); }); | ||
} | ||
else { | ||
this.renderCode(); | ||
} | ||
}; | ||
NgxKjuaComponent.ctorParameters = function () { return [ | ||
{ type: Object, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] } | ||
]; }; | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "render", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "crisp", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "minVersion", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "ecLevel", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "size", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "ratio", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "fill", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "back", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "text", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "rounded", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "quiet", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "mode", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "mSize", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "mPosX", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "mPosY", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "image", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "imageAsCode", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "label", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "fontname", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "fontcolor", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "fontoutline", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "renderAsync", void 0); | ||
__decorate([ | ||
core.Input() | ||
], NgxKjuaComponent.prototype, "cssClass", void 0); | ||
__decorate([ | ||
core.ViewChild("elem") | ||
], NgxKjuaComponent.prototype, "div", void 0); | ||
NgxKjuaComponent = __decorate([ | ||
core.Component({ | ||
selector: "ngx-kjua", | ||
template: "\n <div [class]=\"cssClass\" #elem></div>", | ||
changeDetection: core.ChangeDetectionStrategy.OnPush, | ||
styles: ["\n :host {\n display: block;\n }\n "] | ||
}), | ||
__param(0, core.Inject(core.PLATFORM_ID)) | ||
], NgxKjuaComponent); | ||
return NgxKjuaComponent; | ||
}()); | ||
var NgxKjuaModule = /** @class */ (function () { | ||
function NgxKjuaModule() { | ||
} | ||
NgxKjuaModule = __decorate([ | ||
core.NgModule({ | ||
imports: [ | ||
common.CommonModule | ||
], | ||
declarations: [ | ||
NgxKjuaComponent | ||
], | ||
exports: [ | ||
NgxKjuaComponent | ||
] | ||
}) | ||
], NgxKjuaModule); | ||
return NgxKjuaModule; | ||
}()); | ||
var QrCodeHelper = /** @class */ (function () { | ||
function QrCodeHelper() { | ||
} | ||
/** | ||
* Make the code for creating an SMS. | ||
* Number can be provided as number or string (useful for international format e.g. +1 for USA) | ||
* | ||
* @paramnumber | ||
* @param text | ||
*/ | ||
QrCodeHelper.makeSMS = function (number, text) { | ||
if (text) { | ||
if (text.length > 160) { | ||
return "SMSTO:" + number + ":" + text.substr(0, 160); | ||
} | ||
else { | ||
return "SMSTO:" + number + ":" + text; | ||
} | ||
} | ||
else { | ||
return "SMSTO:" + number; | ||
} | ||
}; | ||
/** | ||
* Make the code for making a phone call | ||
* Number can be provided as number or string (useful for international format e.g. +1 for USA) | ||
* | ||
* @param number | ||
*/ | ||
QrCodeHelper.makeCall = function (number) { | ||
return "tel:" + number; | ||
}; | ||
/** | ||
* Make the code for encoding a location | ||
* | ||
* @param lat | ||
* @param lon | ||
* @param meters | ||
*/ | ||
QrCodeHelper.makeGeo = function (lat, lon, meters) { | ||
if (meters === void 0) { meters = 400; } | ||
return "geo:" + lat + "," + lon + "," + meters; | ||
}; | ||
/** | ||
* Make the code for encoding an event in iCal format | ||
* You have to do the encoding for the begin and end by yourself (use moment.js!) | ||
* | ||
* @param description | ||
* @param begin | ||
* @param end | ||
*/ | ||
QrCodeHelper.makeEvent = function (description, begin, end) { | ||
return "BEGIN:VEVENT\nSUMMARY:" + description + "\nDTSTART:" + begin + "\nDTEND:" + end + "\nEND:VEVENT"; | ||
}; | ||
/** | ||
* Make the code for an Email | ||
* | ||
* @param recipient | ||
* @param subject | ||
* @param text | ||
*/ | ||
QrCodeHelper.makeEmail = function (recipient, subject, text) { | ||
var retVal = "MATMSG:TO:" + recipient + ";"; | ||
if (subject) { | ||
retVal += "SUB:" + subject; | ||
} | ||
retVal += ";"; | ||
if (text) { | ||
retVal += "BODY:" + text; | ||
} | ||
retVal += ";;"; | ||
return retVal; | ||
}; | ||
/** | ||
* Make the code that lets user login to a WiFi | ||
* If no pass is provided, the WiFi is considered as not encrypted (no WPA) | ||
* | ||
* @param ssid | ||
* @param pass | ||
* @param hidden | ||
*/ | ||
QrCodeHelper.makeWifi = function (ssid, pass, hidden) { | ||
if (hidden === void 0) { hidden = false; } | ||
var retVal = "WIFI:" + (!!pass ? "T:WPA" : "T:nopass") + ";S:" + ssid + ";"; | ||
if (pass) { | ||
retVal += "P:" + pass; | ||
} | ||
retVal += ";"; | ||
if (hidden) { | ||
retVal += "H:true"; | ||
} | ||
retVal += ";"; | ||
return retVal; | ||
}; | ||
/** | ||
* Make the code that encodes contact information. | ||
* Numbers can be provided as number or string (useful for international format e.g. +1 for USA) | ||
* Encoding is done with MECARD-format and NOT VCard! VCard gives a longer string and therefore a | ||
* bigger code which has a negative impact on readability for scanners. You can, of course, create | ||
* a VCard string as well but the format is more complex. | ||
* | ||
* @param name | ||
* @param telNumbers | ||
* @param address, values separated with comma | ||
* @param email | ||
* @param url | ||
*/ | ||
QrCodeHelper.makeContactMeCard = function (name, telNumbers, address, email, url) { | ||
var retVal = "MECARD:N:" + name + ";"; | ||
if (address) { | ||
retVal += "ADR:" + address + ";"; | ||
} | ||
if (telNumbers && telNumbers.length > 0) { | ||
for (var i = 0; i < telNumbers.length; i++) { | ||
retVal += "TEL:" + telNumbers[i] + ";"; | ||
} | ||
} | ||
if (email) { | ||
retVal += "EMAIL:" + email + ";"; | ||
} | ||
if (url) { | ||
retVal += "URL:" + url + ";"; | ||
} | ||
retVal += ";"; | ||
return retVal; | ||
}; | ||
return QrCodeHelper; | ||
}()); | ||
exports.NgxKjuaModule = NgxKjuaModule; | ||
exports.QrCodeHelper = QrCodeHelper; | ||
exports.ɵa = NgxKjuaComponent; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); | ||
//# sourceMappingURL=ngx-kjua.umd.js.map |
@@ -1,16 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-kjua",["exports","@angular/core","@angular/common"],e):e((t=t||self)["ngx-kjua"]={},t.ng.core,t.ng.common)}(this,(function(t,e,o){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */var i;function n(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var p=t.length-1;p>=0;p--)(n=t[p])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}var r=function(){function t(t){this.platformId=t,this.render="image",this.crisp=!0,this.minVersion=1,this.ecLevel="L",this.size=200,this.ratio=void 0,this.fill="#333",this.back="#fff",this.text="",this.rounded=0,this.quiet=0,this.mode="plain",this.mSize=30,this.mPosX=50,this.mPosY=50,this.image=void 0,this.imageAsCode=!1,this.label="",this.fontname="sans-serif",this.fontcolor="#333",this.fontoutline=!0,this.renderAsync=!1,this.viewInitialized=!1,o.isPlatformServer(this.platformId)||i||(i=require("kjua-svg"))}var r,s;return t.prototype.ngAfterViewInit=function(){this.viewInitialized=!0,this.updateView()},t.prototype.ngOnChanges=function(t){this.viewInitialized&&this.updateView()},Object.defineProperty(t.prototype,"template",{get:function(){var t={render:this.render,crisp:this.crisp,minVersion:this.minVersion,ecLevel:this.ecLevel,size:this.size,ratio:this.ratio,fill:this.fill,back:this.back,text:this.text,rounded:this.rounded,quiet:this.quiet,mode:this.mode,mSize:this.mSize,mPosX:this.mPosX,mPosY:this.mPosY,label:this.label,fontname:this.fontname,fontcolor:this.fontcolor,image:this.image,fontoutline:this.fontoutline,imageAsCode:this.imageAsCode};return console.debug("kjua settings used:",t),i(t)},enumerable:!0,configurable:!0}),t.prototype.renderCode=function(){this.div.nativeElement.innerHTML="",this.div.nativeElement.appendChild(this.template)},t.prototype.updateView=function(){var t=this;this.div.nativeElement.style.width=+this.size,this.div.nativeElement.style.height=+this.size,this.renderAsync?requestAnimationFrame((function(){return t.renderCode()})):this.renderCode()},t.ctorParameters=function(){return[{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},n([e.Input()],t.prototype,"render",void 0),n([e.Input()],t.prototype,"crisp",void 0),n([e.Input()],t.prototype,"minVersion",void 0),n([e.Input()],t.prototype,"ecLevel",void 0),n([e.Input()],t.prototype,"size",void 0),n([e.Input()],t.prototype,"ratio",void 0),n([e.Input()],t.prototype,"fill",void 0),n([e.Input()],t.prototype,"back",void 0),n([e.Input()],t.prototype,"text",void 0),n([e.Input()],t.prototype,"rounded",void 0),n([e.Input()],t.prototype,"quiet",void 0),n([e.Input()],t.prototype,"mode",void 0),n([e.Input()],t.prototype,"mSize",void 0),n([e.Input()],t.prototype,"mPosX",void 0),n([e.Input()],t.prototype,"mPosY",void 0),n([e.Input()],t.prototype,"image",void 0),n([e.Input()],t.prototype,"imageAsCode",void 0),n([e.Input()],t.prototype,"label",void 0),n([e.Input()],t.prototype,"fontname",void 0),n([e.Input()],t.prototype,"fontcolor",void 0),n([e.Input()],t.prototype,"fontoutline",void 0),n([e.Input()],t.prototype,"renderAsync",void 0),n([e.Input()],t.prototype,"cssClass",void 0),n([e.ViewChild("elem")],t.prototype,"div",void 0),t=n([e.Component({selector:"ngx-kjua",template:'\n <div [class]="cssClass" #elem></div>',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:["\n :host {\n display: block;\n }\n "]}),(r=0,s=e.Inject(e.PLATFORM_ID),function(t,e){s(t,e,r)})],t)}(),s=function(){function t(){}return t=n([e.NgModule({imports:[o.CommonModule],declarations:[r],exports:[r]})],t)}(),p=function(){function t(){}return t.makeSMS=function(t,e){return e?e.length>160?"SMSTO:"+t+":"+e.substr(0,160):"SMSTO:"+t+":"+e:"SMSTO:"+t},t.makeCall=function(t){return"tel:"+t},t.makeGeo=function(t,e,o){return void 0===o&&(o=400),"geo:"+t+","+e+","+o},t.makeEvent=function(t,e,o){return"BEGIN:VEVENT\nSUMMARY:"+t+"\nDTSTART:"+e+"\nDTEND:"+o+"\nEND:VEVENT"},t.makeEmail=function(t,e,o){var i="MATMSG:TO:"+t+";";return e&&(i+="SUB:"+e),i+=";",o&&(i+="BODY:"+o),i+=";;"},t.makeWifi=function(t,e,o){void 0===o&&(o=!1);var i="WIFI:"+(e?"T:WPA":"T:nopass")+";S:"+t+";";return e&&(i+="P:"+e),i+=";",o&&(i+="H:true"),i+=";"},t.makeContactMeCard=function(t,e,o,i,n){var r="MECARD:N:"+t+";";if(o&&(r+="ADR:"+o+";"),e&&e.length>0)for(var s=0;s<e.length;s++)r+="TEL:"+e[s]+";";return i&&(r+="EMAIL:"+i+";"),n&&(r+="URL:"+n+";"),r+=";"},t}();t.NgxKjuaModule=s,t.QrCodeHelper=p,t.ɵa=r,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-kjua",["exports","@angular/core","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-kjua"]={},e.ng.core,e.ng.common)}(this,(function(e,t,i){"use strict";var n,o=function(){function e(e){this.platformId=e,this.render="image",this.crisp=!0,this.minVersion=1,this.ecLevel="L",this.size=200,this.ratio=void 0,this.fill="#333",this.back="#fff",this.text="",this.rounded=0,this.quiet=0,this.mode="plain",this.mSize=30,this.mPosX=50,this.mPosY=50,this.image=void 0,this.imageAsCode=!1,this.label="",this.fontname="sans-serif",this.fontcolor="#333",this.fontoutline=!0,this.renderAsync=!1,this.viewInitialized=!1,i.isPlatformServer(this.platformId)||n||(n=require("kjua-svg"))}return e.prototype.ngAfterViewInit=function(){this.viewInitialized=!0,this.updateView()},e.prototype.ngOnChanges=function(e){this.viewInitialized&&this.updateView()},Object.defineProperty(e.prototype,"template",{get:function(){var e={render:this.render,crisp:this.crisp,minVersion:this.minVersion,ecLevel:this.ecLevel,size:this.size,ratio:this.ratio,fill:this.fill,back:this.back,text:this.text,rounded:this.rounded,quiet:this.quiet,mode:this.mode,mSize:this.mSize,mPosX:this.mPosX,mPosY:this.mPosY,label:this.label,fontname:this.fontname,fontcolor:this.fontcolor,image:this.image,fontoutline:this.fontoutline,imageAsCode:this.imageAsCode};return console.debug("kjua settings used:",e),n(e)},enumerable:!1,configurable:!0}),e.prototype.renderCode=function(){this.div.nativeElement.innerHTML="",this.div.nativeElement.appendChild(this.template)},e.prototype.updateView=function(){var e=this;this.div.nativeElement.style.width=+this.size,this.div.nativeElement.style.height=+this.size,this.renderAsync?requestAnimationFrame((function(){return e.renderCode()})):this.renderCode()},e}();o.decorators=[{type:t.Component,args:[{selector:"ngx-kjua",template:'\n <div [class]="cssClass" #elem></div>',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["\n :host {\n display: block;\n }\n "]}]}],o.ctorParameters=function(){return[{type:Object,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},o.propDecorators={render:[{type:t.Input}],crisp:[{type:t.Input}],minVersion:[{type:t.Input}],ecLevel:[{type:t.Input}],size:[{type:t.Input}],ratio:[{type:t.Input}],fill:[{type:t.Input}],back:[{type:t.Input}],text:[{type:t.Input}],rounded:[{type:t.Input}],quiet:[{type:t.Input}],mode:[{type:t.Input}],mSize:[{type:t.Input}],mPosX:[{type:t.Input}],mPosY:[{type:t.Input}],image:[{type:t.Input}],imageAsCode:[{type:t.Input}],label:[{type:t.Input}],fontname:[{type:t.Input}],fontcolor:[{type:t.Input}],fontoutline:[{type:t.Input}],renderAsync:[{type:t.Input}],cssClass:[{type:t.Input}],div:[{type:t.ViewChild,args:["elem"]}]};var s=function(){};s.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule],declarations:[o],exports:[o]}]}];var r=function(){function e(){}return e.makeSMS=function(e,t){return t?t.length>160?"SMSTO:"+e+":"+t.substr(0,160):"SMSTO:"+e+":"+t:"SMSTO:"+e},e.makeCall=function(e){return"tel:"+e},e.makeGeo=function(e,t,i){return void 0===i&&(i=400),"geo:"+e+","+t+","+i},e.makeEvent=function(e,t,i){return"BEGIN:VEVENT\nSUMMARY:"+e+"\nDTSTART:"+t+"\nDTEND:"+i+"\nEND:VEVENT"},e.makeEmail=function(e,t,i){var n="MATMSG:TO:"+e+";";return t&&(n+="SUB:"+t),n+=";",i&&(n+="BODY:"+i),n+=";;"},e.makeWifi=function(e,t,i){void 0===i&&(i=!1);var n="WIFI:"+(t?"T:WPA":"T:nopass")+";S:"+e+";";return t&&(n+="P:"+t),n+=";",i&&(n+="H:true"),n+=";"},e.makeContactMeCard=function(e,t,i,n,o){var s="MECARD:N:"+e+";";if(i&&(s+="ADR:"+i+";"),t&&t.length>0)for(var r=0;r<t.length;r++)s+="TEL:"+t[r]+";";return n&&(s+="EMAIL:"+n+";"),o&&(s+="URL:"+o+";"),s+=";"},e}();e.NgxKjuaModule=s,e.QrCodeHelper=r,e.ɵa=o,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-kjua.umd.min.js.map |
@@ -1,6 +0,5 @@ | ||
import { __decorate, __param } from "tslib"; | ||
import { ChangeDetectionStrategy, Component, Inject, Input, PLATFORM_ID, ViewChild, } from "@angular/core"; | ||
import { isPlatformServer } from "@angular/common"; | ||
let kjua; | ||
let NgxKjuaComponent = class NgxKjuaComponent { | ||
export class NgxKjuaComponent { | ||
constructor(platformId) { | ||
@@ -134,85 +133,10 @@ this.platformId = platformId; | ||
} | ||
}; | ||
NgxKjuaComponent.ctorParameters = () => [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "render", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "crisp", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "minVersion", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "ecLevel", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "size", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "ratio", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fill", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "back", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "text", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "rounded", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "quiet", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mode", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mSize", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mPosX", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mPosY", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "image", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "imageAsCode", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "label", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fontname", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fontcolor", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fontoutline", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "renderAsync", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "cssClass", void 0); | ||
__decorate([ | ||
ViewChild("elem") | ||
], NgxKjuaComponent.prototype, "div", void 0); | ||
NgxKjuaComponent = __decorate([ | ||
Component({ | ||
selector: "ngx-kjua", | ||
template: ` | ||
} | ||
NgxKjuaComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: "ngx-kjua", | ||
template: ` | ||
<div [class]="cssClass" #elem></div>`, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
styles: [` | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
styles: [` | ||
:host { | ||
@@ -222,6 +146,33 @@ display: block; | ||
`] | ||
}), | ||
__param(0, Inject(PLATFORM_ID)) | ||
], NgxKjuaComponent); | ||
export { NgxKjuaComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWtqdWEuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWtqdWEvIiwic291cmNlcyI6WyJhcHAvbW9kdWxlcy9uZ3gta2p1YS9uZ3gta2p1YS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtB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sYWJlbDogdGhpcy5sYWJlbCxcclxuICAgICAgZm9udG5hbWU6IHRoaXMuZm9udG5hbWUsXHJcbiAgICAgIGZvbnRjb2xvcjogdGhpcy5mb250Y29sb3IsXHJcbiAgICAgIGltYWdlOiB0aGlzLmltYWdlLFxyXG4gICAgICBmb250b3V0bGluZTogdGhpcy5mb250b3V0bGluZSxcclxuICAgICAgaW1hZ2VBc0NvZGU6IHRoaXMuaW1hZ2VBc0NvZGVcclxuICAgIH07XHJcbiAgICBjb25zb2xlLmRlYnVnKFwia2p1YSBzZXR0aW5ncyB1c2VkOlwiLCBzZXR0aW5ncyk7XHJcbiAgICByZXR1cm4ga2p1YShzZXR0aW5ncyk7XHJcbiAgfVxyXG5cclxuICByZW5kZXJDb2RlKCkge1xyXG4gICAgdGhpcy5kaXYubmF0aXZlRWxlbWVudC5pbm5lckhUTUwgPSBcIlwiO1xyXG4gICAgdGhpcy5kaXYubmF0aXZlRWxlbWVudC5hcHBlbmRDaGlsZCh0aGlzLnRlbXBsYXRlKTtcclxuICB9XHJcblxyXG4gIHVwZGF0ZVZpZXcoKSB7XHJcbiAgICB0aGlzLmRpdi5uYXRpdmVFbGVtZW50LnN0eWxlLndpZHRoID0gK3RoaXMuc2l6ZTtcclxuICAgIHRoaXMuZGl2Lm5hdGl2ZUVsZW1lbnQuc3R5bGUuaGVpZ2h0ID0gK3RoaXMuc2l6ZTtcclxuICAgIGlmICh0aGlzLnJlbmRlckFzeW5jKSB7XHJcbiAgICAgIHJlcXVlc3RBbmltYXRpb25GcmFtZSgoKSA9PiB0aGlzLnJlbmRlckNvZGUoKSk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICB0aGlzLnJlbmRlckNvZGUoKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19 | ||
},] } | ||
]; | ||
NgxKjuaComponent.ctorParameters = () => [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
NgxKjuaComponent.propDecorators = { | ||
render: [{ type: Input }], | ||
crisp: [{ type: Input }], | ||
minVersion: [{ type: Input }], | ||
ecLevel: [{ type: Input }], | ||
size: [{ type: Input }], | ||
ratio: [{ type: Input }], | ||
fill: [{ type: Input }], | ||
back: [{ type: Input }], | ||
text: [{ type: Input }], | ||
rounded: [{ type: Input }], | ||
quiet: [{ type: Input }], | ||
mode: [{ type: Input }], | ||
mSize: [{ type: Input }], | ||
mPosX: [{ type: Input }], | ||
mPosY: [{ type: Input }], | ||
image: [{ type: Input }], | ||
imageAsCode: [{ type: Input }], | ||
label: [{ type: Input }], | ||
fontname: [{ type: Input }], | ||
fontcolor: [{ type: Input }], | ||
fontoutline: [{ type: Input }], | ||
renderAsync: [{ type: Input }], | ||
cssClass: [{ type: Input }], | ||
div: [{ type: ViewChild, args: ["elem",] }] | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWtqdWEuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL25neC1ranVhL25neC1ranVhLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWdCLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFhLFdBQVcsRUFBaUIsU0FBUyxHQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWxKLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBTWpELElBQUksSUFBUyxDQUFDO0FBYWQsTUFBTSxPQUFPLGdCQUFnQjtJQXVIM0IsWUFBeUMsVUFBa0I7UUFBbEIsZUFBVSxHQUFWLFVBQVUsQ0FBUTtRQXJIM0Q7O1dBRUc7UUFFSCxXQUFNLEdBQStCLE9BQU8sQ0FBQztRQUU3Qzs7V0FFRztRQUVILFVBQUssR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cbiAgICAgIG1Qb3NZOiB0aGlzLm1Qb3NZLFxyXG4gICAgICBsYWJlbDogdGhpcy5sYWJlbCxcclxuICAgICAgZm9udG5hbWU6IHRoaXMuZm9udG5hbWUsXHJcbiAgICAgIGZvbnRjb2xvcjogdGhpcy5mb250Y29sb3IsXHJcbiAgICAgIGltYWdlOiB0aGlzLmltYWdlLFxyXG4gICAgICBmb250b3V0bGluZTogdGhpcy5mb250b3V0bGluZSxcclxuICAgICAgaW1hZ2VBc0NvZGU6IHRoaXMuaW1hZ2VBc0NvZGVcclxuICAgIH07XHJcbiAgICBjb25zb2xlLmRlYnVnKFwia2p1YSBzZXR0aW5ncyB1c2VkOlwiLCBzZXR0aW5ncyk7XHJcbiAgICByZXR1cm4ga2p1YShzZXR0aW5ncyk7XHJcbiAgfVxyXG5cclxuICByZW5kZXJDb2RlKCkge1xyXG4gICAgdGhpcy5kaXYubmF0aXZlRWxlbWVudC5pbm5lckhUTUwgPSBcIlwiO1xyXG4gICAgdGhpcy5kaXYubmF0aXZlRWxlbWVudC5hcHBlbmRDaGlsZCh0aGlzLnRlbXBsYXRlKTtcclxuICB9XHJcblxyXG4gIHVwZGF0ZVZpZXcoKSB7XHJcbiAgICB0aGlzLmRpdi5uYXRpdmVFbGVtZW50LnN0eWxlLndpZHRoID0gK3RoaXMuc2l6ZTtcclxuICAgIHRoaXMuZGl2Lm5hdGl2ZUVsZW1lbnQuc3R5bGUuaGVpZ2h0ID0gK3RoaXMuc2l6ZTtcclxuICAgIGlmICh0aGlzLnJlbmRlckFzeW5jKSB7XHJcbiAgICAgIHJlcXVlc3RBbmltYXRpb25GcmFtZSgoKSA9PiB0aGlzLnJlbmRlckNvZGUoKSk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICB0aGlzLnJlbmRlckNvZGUoKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19 |
@@ -1,21 +0,19 @@ | ||
import { __decorate } from "tslib"; | ||
import { NgModule } from "@angular/core"; | ||
import { CommonModule } from "@angular/common"; | ||
import { NgxKjuaComponent } from "./ngx-kjua.component"; | ||
let NgxKjuaModule = class NgxKjuaModule { | ||
}; | ||
NgxKjuaModule = __decorate([ | ||
NgModule({ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [ | ||
NgxKjuaComponent | ||
], | ||
exports: [ | ||
NgxKjuaComponent | ||
] | ||
}) | ||
], NgxKjuaModule); | ||
export { NgxKjuaModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWtqdWEubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWtqdWEvIiwic291cmNlcyI6WyJhcHAvbW9kdWxlcy9uZ3gta2p1YS9uZ3gta2p1YS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBYXRELElBQWEsYUFBYSxHQUExQixNQUFhLGFBQWE7Q0FDekIsQ0FBQTtBQURZLGFBQWE7SUFYekIsUUFBUSxDQUFDO1FBQ1IsT0FBTyxFQUFFO1lBQ1AsWUFBWTtTQUNiO1FBQ0QsWUFBWSxFQUFFO1lBQ1osZ0JBQWdCO1NBQ2pCO1FBQ0QsT0FBTyxFQUFFO1lBQ1AsZ0JBQWdCO1NBQ2pCO0tBQ0YsQ0FBQztHQUNXLGFBQWEsQ0FDekI7U0FEWSxhQUFhIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcclxuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gXCJAYW5ndWxhci9jb21tb25cIjtcclxuaW1wb3J0IHtOZ3hLanVhQ29tcG9uZW50fSBmcm9tIFwiLi9uZ3gta2p1YS5jb21wb25lbnRcIjtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlXHJcbiAgXSxcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIE5neEtqdWFDb21wb25lbnRcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtcclxuICAgIE5neEtqdWFDb21wb25lbnRcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBOZ3hLanVhTW9kdWxlIHtcclxufVxyXG4iXX0= | ||
export class NgxKjuaModule { | ||
} | ||
NgxKjuaModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [ | ||
NgxKjuaComponent | ||
], | ||
exports: [ | ||
NgxKjuaComponent | ||
] | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWtqdWEubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL25neC1ranVhL25neC1ranVhLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQWF0RCxNQUFNLE9BQU8sYUFBYTs7O1lBWHpCLFFBQVEsU0FBQztnQkFDUixPQUFPLEVBQUU7b0JBQ1AsWUFBWTtpQkFDYjtnQkFDRCxZQUFZLEVBQUU7b0JBQ1osZ0JBQWdCO2lCQUNqQjtnQkFDRCxPQUFPLEVBQUU7b0JBQ1AsZ0JBQWdCO2lCQUNqQjthQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcclxuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gXCJAYW5ndWxhci9jb21tb25cIjtcclxuaW1wb3J0IHtOZ3hLanVhQ29tcG9uZW50fSBmcm9tIFwiLi9uZ3gta2p1YS5jb21wb25lbnRcIjtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlXHJcbiAgXSxcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIE5neEtqdWFDb21wb25lbnRcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtcclxuICAgIE5neEtqdWFDb21wb25lbnRcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBOZ3hLanVhTW9kdWxlIHtcclxufVxyXG4iXX0= |
@@ -128,2 +128,2 @@ export class QrCodeHelper { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXItY29kZS5oZWxwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gta2p1YS8iLCJzb3VyY2VzIjpbImFwcC9tb2R1bGVzL25neC1ranVhL3FyLWNvZGUuaGVscGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxZQUFZO0lBRXZCOzs7Ozs7T0FNRztJQUNILE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBdUIsRUFBRSxJQUFhO1FBQ25ELElBQUksSUFBSSxFQUFFO1lBQ1IsSUFBSSxJQUFJLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBRTtnQkFDckIsT0FBTyxTQUFTLE1BQU0sSUFBSSxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsRUFB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XG4gICAqIEBwYXJhbSB0ZWxOdW1iZXJzXHJcbiAgICogQHBhcmFtIGFkZHJlc3MsIHZhbHVlcyBzZXBhcmF0ZWQgd2l0aCBjb21tYVxyXG4gICAqIEBwYXJhbSBlbWFpbFxyXG4gICAqIEBwYXJhbSB1cmxcclxuICAgKi9cclxuICBzdGF0aWMgbWFrZUNvbnRhY3RNZUNhcmQobmFtZTogc3RyaW5nLCB0ZWxOdW1iZXJzPzogc3RyaW5nW10gfCBudW1iZXJbXSwgYWRkcmVzcz86IHN0cmluZywgZW1haWw/OiBzdHJpbmcsIHVybD86IHN0cmluZyk6IHN0cmluZyB7XHJcbiAgICBsZXQgcmV0VmFsID0gYE1FQ0FSRDpOOiR7bmFtZX07YDtcclxuICAgIGlmIChhZGRyZXNzKSB7XHJcbiAgICAgIHJldFZhbCArPSBgQURSOiR7YWRkcmVzc307YDtcclxuICAgIH1cclxuICAgIGlmICh0ZWxOdW1iZXJzICYmIHRlbE51bWJlcnMubGVuZ3RoID4gMCkge1xyXG4gICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRlbE51bWJlcnMubGVuZ3RoOyBpKyspIHtcclxuICAgICAgICByZXRWYWwgKz0gYFRFTDoke3RlbE51bWJlcnNbaV19O2A7XHJcbiAgICAgIH1cclxuICAgIH1cclxuICAgIGlmIChlbWFpbCkge1xyXG4gICAgICByZXRWYWwgKz0gYEVNQUlMOiR7ZW1haWx9O2A7XHJcbiAgICB9XHJcbiAgICBpZiAodXJsKSB7XHJcbiAgICAgIHJldFZhbCArPSBgVVJMOiR7dXJsfTtgO1xyXG4gICAgfVxyXG4gICAgcmV0VmFsICs9IGA7YDtcclxuICAgIHJldHVybiByZXRWYWw7XHJcbiAgfVxyXG5cclxuXHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXItY29kZS5oZWxwZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8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yXG4gICAgaWYgKGVtYWlsKSB7XHJcbiAgICAgIHJldFZhbCArPSBgRU1BSUw6JHtlbWFpbH07YDtcclxuICAgIH1cclxuICAgIGlmICh1cmwpIHtcclxuICAgICAgcmV0VmFsICs9IGBVUkw6JHt1cmx9O2A7XHJcbiAgICB9XHJcbiAgICByZXRWYWwgKz0gYDtgO1xyXG4gICAgcmV0dXJuIHJldFZhbDtcclxuICB9XHJcblxyXG5cclxufVxyXG4iXX0= |
@@ -6,2 +6,2 @@ /** | ||
export { NgxKjuaComponent as ɵa } from './app/modules/ngx-kjua/ngx-kjua.component'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWtqdWEuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gta2p1YS8iLCJzb3VyY2VzIjpbIm5neC1ranVhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGdCQUFnQixJQUFJLEVBQUUsRUFBQyxNQUFNLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge05neEtqdWFDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2FwcC9tb2R1bGVzL25neC1ranVhL25neC1ranVhLmNvbXBvbmVudCc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWtqdWEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmd4LWtqdWEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDLE1BQU0sMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG5cbmV4cG9ydCB7Tmd4S2p1YUNvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vYXBwL21vZHVsZXMvbmd4LWtqdWEvbmd4LWtqdWEuY29tcG9uZW50JzsiXX0= |
export * from "./app/modules/ngx-kjua/ngx-kjua.module"; | ||
export * from "./app/modules/ngx-kjua/qr-code.helper"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1ranVhLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsdUNBQXVDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9hcHAvbW9kdWxlcy9uZ3gta2p1YS9uZ3gta2p1YS5tb2R1bGVcIjtcclxuZXhwb3J0ICogZnJvbSBcIi4vYXBwL21vZHVsZXMvbmd4LWtqdWEvcXItY29kZS5oZWxwZXJcIjtcclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0NBQXdDLENBQUM7QUFDdkQsY0FBYyx1Q0FBdUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2FwcC9tb2R1bGVzL25neC1ranVhL25neC1ranVhLm1vZHVsZVwiO1xyXG5leHBvcnQgKiBmcm9tIFwiLi9hcHAvbW9kdWxlcy9uZ3gta2p1YS9xci1jb2RlLmhlbHBlclwiO1xyXG4iXX0= |
@@ -1,7 +0,6 @@ | ||
import { __decorate, __param } from 'tslib'; | ||
import { Inject, PLATFORM_ID, Input, ViewChild, Component, ChangeDetectionStrategy, NgModule } from '@angular/core'; | ||
import { Component, ChangeDetectionStrategy, Inject, PLATFORM_ID, Input, ViewChild, NgModule } from '@angular/core'; | ||
import { isPlatformServer, CommonModule } from '@angular/common'; | ||
let kjua; | ||
let NgxKjuaComponent = class NgxKjuaComponent { | ||
class NgxKjuaComponent { | ||
constructor(platformId) { | ||
@@ -135,85 +134,10 @@ this.platformId = platformId; | ||
} | ||
}; | ||
NgxKjuaComponent.ctorParameters = () => [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "render", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "crisp", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "minVersion", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "ecLevel", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "size", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "ratio", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fill", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "back", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "text", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "rounded", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "quiet", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mode", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mSize", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mPosX", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "mPosY", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "image", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "imageAsCode", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "label", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fontname", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fontcolor", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "fontoutline", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "renderAsync", void 0); | ||
__decorate([ | ||
Input() | ||
], NgxKjuaComponent.prototype, "cssClass", void 0); | ||
__decorate([ | ||
ViewChild("elem") | ||
], NgxKjuaComponent.prototype, "div", void 0); | ||
NgxKjuaComponent = __decorate([ | ||
Component({ | ||
selector: "ngx-kjua", | ||
template: ` | ||
} | ||
NgxKjuaComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: "ngx-kjua", | ||
template: ` | ||
<div [class]="cssClass" #elem></div>`, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
styles: [` | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
styles: [` | ||
:host { | ||
@@ -223,22 +147,50 @@ display: block; | ||
`] | ||
}), | ||
__param(0, Inject(PLATFORM_ID)) | ||
], NgxKjuaComponent); | ||
let NgxKjuaModule = class NgxKjuaModule { | ||
},] } | ||
]; | ||
NgxKjuaComponent.ctorParameters = () => [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
NgxKjuaComponent.propDecorators = { | ||
render: [{ type: Input }], | ||
crisp: [{ type: Input }], | ||
minVersion: [{ type: Input }], | ||
ecLevel: [{ type: Input }], | ||
size: [{ type: Input }], | ||
ratio: [{ type: Input }], | ||
fill: [{ type: Input }], | ||
back: [{ type: Input }], | ||
text: [{ type: Input }], | ||
rounded: [{ type: Input }], | ||
quiet: [{ type: Input }], | ||
mode: [{ type: Input }], | ||
mSize: [{ type: Input }], | ||
mPosX: [{ type: Input }], | ||
mPosY: [{ type: Input }], | ||
image: [{ type: Input }], | ||
imageAsCode: [{ type: Input }], | ||
label: [{ type: Input }], | ||
fontname: [{ type: Input }], | ||
fontcolor: [{ type: Input }], | ||
fontoutline: [{ type: Input }], | ||
renderAsync: [{ type: Input }], | ||
cssClass: [{ type: Input }], | ||
div: [{ type: ViewChild, args: ["elem",] }] | ||
}; | ||
NgxKjuaModule = __decorate([ | ||
NgModule({ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [ | ||
NgxKjuaComponent | ||
], | ||
exports: [ | ||
NgxKjuaComponent | ||
] | ||
}) | ||
], NgxKjuaModule); | ||
class NgxKjuaModule { | ||
} | ||
NgxKjuaModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [ | ||
NgxKjuaComponent | ||
], | ||
exports: [ | ||
NgxKjuaComponent | ||
] | ||
},] } | ||
]; | ||
class QrCodeHelper { | ||
@@ -245,0 +197,0 @@ /** |
{ | ||
"name": "ngx-kjua", | ||
"description": "Angular QR-Code generator component.", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"license": "MIT", | ||
@@ -28,15 +28,13 @@ "private": false, | ||
"dependencies": { | ||
"kjua-svg": "^1.10.0" | ||
"kjua-svg": "^1.10.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/common": ">= 2.0.0", | ||
"@angular/core": ">= 2.0.0", | ||
"tslib": "^1.10.0" | ||
"@angular/core": ">= 2.0.0" | ||
}, | ||
"main": "bundles/ngx-kjua.umd.js", | ||
"module": "fesm5/ngx-kjua.js", | ||
"module": "fesm2015/ngx-kjua.js", | ||
"es2015": "fesm2015/ngx-kjua.js", | ||
"esm5": "esm5/ngx-kjua.js", | ||
"esm2015": "esm2015/ngx-kjua.js", | ||
"fesm5": "fesm5/ngx-kjua.js", | ||
"fesm2015": "fesm2015/ngx-kjua.js", | ||
@@ -43,0 +41,0 @@ "typings": "ngx-kjua.d.ts", |
[![NPM version](https://img.shields.io/npm/v/ngx-kjua.svg?&label=npm)](https://www.npmjs.com/package/ngx-kjua) | ||
[![Dependency Status](https://david-dm.org/werthdavid/ngx-kjua.svg)](https://david-dm.org/werthdavid/ngx-kjua) | ||
[![Downloads](https://img.shields.io/npm/dm/ngx-kjua.svg)](https://npmjs.org/package/ngx-kjua) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) | ||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2ef6c180329a44cc9fd95abc77fc8c1d)](https://www.codacy.com/app/werthdavid/ngx-kjua?utm_source=github.com&utm_medium=referral&utm_content=werthdavid/ngx-kjua&utm_campaign=Badge_Grade) | ||
<img align="right" src="https://raw.githubusercontent.com/werthdavid/ngx-kjua/master/docs/readme-logo.png"/> | ||
If you find my work useful you can buy me a coffee, I am very thankful for your support. | ||
<a href="https://www.buymeacoffee.com/werthdavid" target="_blank"><img width="140" src="https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png" alt="Buy Me A Coffee"></a> | ||
# ngx-kjua | ||
@@ -8,0 +14,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
183
143929
21
1158
+ Addedtslib@^2.0.0
- Removedtslib@1.14.1(transitive)