ngx-clipboard
Advanced tools
Comparing version 13.0.1 to 14.0.0-beta01
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('ngx-window-token'), require('rxjs')) : | ||
typeof define === 'function' && define.amd ? define('ngx-clipboard', ['exports', '@angular/common', '@angular/core', 'ngx-window-token', 'rxjs'], factory) : | ||
(global = global || self, factory(global['ngx-clipboard'] = {}, global.ng.common, global.ng.core, global.ngxWindowToken, global.rxjs)); | ||
}(this, (function (exports, common, core, ngxWindowToken, rxjs) { 'use strict'; | ||
(global = global || self, factory(global['ngx-clipboard'] = {}, global.ng.common, global.ng.core, global.i2, global.rxjs)); | ||
}(this, (function (exports, i1, i0, i2, rxjs) { '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. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
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); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
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); | ||
}; | ||
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 }; | ||
} | ||
/** | ||
@@ -232,3 +35,3 @@ * The following code is heavily copied from https://github.com/zenorocha/clipboard.js | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -364,13 +167,12 @@ }); | ||
}; | ||
ClipboardService.ctorParameters = function () { return [ | ||
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, | ||
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [ngxWindowToken.WINDOW,] }] } | ||
]; }; | ||
ClipboardService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function ClipboardService_Factory() { return new ClipboardService(core["ɵɵinject"](common.DOCUMENT), core["ɵɵinject"](ngxWindowToken.WINDOW, 8)); }, token: ClipboardService, providedIn: "root" }); | ||
ClipboardService = __decorate([ | ||
core.Injectable({ providedIn: 'root' }), | ||
__param(0, core.Inject(common.DOCUMENT)), __param(1, core.Optional()), __param(1, core.Inject(ngxWindowToken.WINDOW)) | ||
], ClipboardService); | ||
return ClipboardService; | ||
}()); | ||
ClipboardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ClipboardService_Factory() { return new ClipboardService(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i2.WINDOW, 8)); }, token: ClipboardService, providedIn: "root" }); | ||
ClipboardService.decorators = [ | ||
{ type: i0.Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
ClipboardService.ctorParameters = function () { return [ | ||
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] }, | ||
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i2.WINDOW,] }] } | ||
]; }; | ||
@@ -380,4 +182,4 @@ var ClipboardDirective = /** @class */ (function () { | ||
this.clipboardSrv = clipboardSrv; | ||
this.cbOnSuccess = new core.EventEmitter(); | ||
this.cbOnError = new core.EventEmitter(); | ||
this.cbOnSuccess = new i0.EventEmitter(); | ||
this.cbOnError = new i0.EventEmitter(); | ||
} | ||
@@ -421,33 +223,21 @@ // tslint:disable-next-line:no-empty | ||
}; | ||
ClipboardDirective.ctorParameters = function () { return [ | ||
{ type: ClipboardService } | ||
]; }; | ||
__decorate([ | ||
core.Input('ngxClipboard') | ||
], ClipboardDirective.prototype, "targetElm", void 0); | ||
__decorate([ | ||
core.Input() | ||
], ClipboardDirective.prototype, "container", void 0); | ||
__decorate([ | ||
core.Input() | ||
], ClipboardDirective.prototype, "cbContent", void 0); | ||
__decorate([ | ||
core.Input() | ||
], ClipboardDirective.prototype, "cbSuccessMsg", void 0); | ||
__decorate([ | ||
core.Output() | ||
], ClipboardDirective.prototype, "cbOnSuccess", void 0); | ||
__decorate([ | ||
core.Output() | ||
], ClipboardDirective.prototype, "cbOnError", void 0); | ||
__decorate([ | ||
core.HostListener('click', ['$event.target']) | ||
], ClipboardDirective.prototype, "onClick", null); | ||
ClipboardDirective = __decorate([ | ||
core.Directive({ | ||
selector: '[ngxClipboard]' | ||
}) | ||
], ClipboardDirective); | ||
return ClipboardDirective; | ||
}()); | ||
ClipboardDirective.decorators = [ | ||
{ type: i0.Directive, args: [{ | ||
selector: '[ngxClipboard]' | ||
},] } | ||
]; | ||
ClipboardDirective.ctorParameters = function () { return [ | ||
{ type: ClipboardService } | ||
]; }; | ||
ClipboardDirective.propDecorators = { | ||
targetElm: [{ type: i0.Input, args: ['ngxClipboard',] }], | ||
container: [{ type: i0.Input }], | ||
cbContent: [{ type: i0.Input }], | ||
cbSuccessMsg: [{ type: i0.Input }], | ||
cbOnSuccess: [{ type: i0.Output }], | ||
cbOnError: [{ type: i0.Output }], | ||
onClick: [{ type: i0.HostListener, args: ['click', ['$event.target'],] }] | ||
}; | ||
@@ -465,14 +255,14 @@ var ClipboardIfSupportedDirective = /** @class */ (function () { | ||
}; | ||
ClipboardIfSupportedDirective.ctorParameters = function () { return [ | ||
{ type: ClipboardService }, | ||
{ type: core.ViewContainerRef }, | ||
{ type: core.TemplateRef } | ||
]; }; | ||
ClipboardIfSupportedDirective = __decorate([ | ||
core.Directive({ | ||
selector: '[ngxClipboardIfSupported]' | ||
}) | ||
], ClipboardIfSupportedDirective); | ||
return ClipboardIfSupportedDirective; | ||
}()); | ||
ClipboardIfSupportedDirective.decorators = [ | ||
{ type: i0.Directive, args: [{ | ||
selector: '[ngxClipboardIfSupported]' | ||
},] } | ||
]; | ||
ClipboardIfSupportedDirective.ctorParameters = function () { return [ | ||
{ type: ClipboardService }, | ||
{ type: i0.ViewContainerRef }, | ||
{ type: i0.TemplateRef } | ||
]; }; | ||
@@ -482,12 +272,20 @@ var ClipboardModule = /** @class */ (function () { | ||
} | ||
ClipboardModule = __decorate([ | ||
core.NgModule({ | ||
imports: [common.CommonModule], | ||
declarations: [ClipboardDirective, ClipboardIfSupportedDirective], | ||
exports: [ClipboardDirective, ClipboardIfSupportedDirective] | ||
}) | ||
], ClipboardModule); | ||
return ClipboardModule; | ||
}()); | ||
ClipboardModule.decorators = [ | ||
{ type: i0.NgModule, args: [{ | ||
imports: [i1.CommonModule], | ||
declarations: [ClipboardDirective, ClipboardIfSupportedDirective], | ||
exports: [ClipboardDirective, ClipboardIfSupportedDirective] | ||
},] } | ||
]; | ||
/* | ||
* Public API Surface of ngx-clipboard | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
exports.ClipboardDirective = ClipboardDirective; | ||
@@ -494,0 +292,0 @@ exports.ClipboardIfSupportedDirective = ClipboardIfSupportedDirective; |
@@ -1,16 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("ngx-window-token"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-clipboard",["exports","@angular/common","@angular/core","ngx-window-token","rxjs"],e):e((t=t||self)["ngx-clipboard"]={},t.ng.common,t.ng.core,t.ngxWindowToken,t.rxjs)}(this,(function(t,e,o,n,r){"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. | ||
***************************************************************************** */function i(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}function s(t,e){return function(o,n){e(o,n,t)}}var c=function(){function t(t,e){this.document=t,this.window=e,this.copySubject=new r.Subject,this.copyResponse$=this.copySubject.asObservable(),this.config={}}return t.prototype.configure=function(t){this.config=t},t.prototype.copy=function(t){if(!this.isSupported||!t)return this.pushCopyResponse({isSuccess:!1,content:t});var e=this.copyFromContent(t);return e?this.pushCopyResponse({content:t,isSuccess:e}):this.pushCopyResponse({isSuccess:!1,content:t})},Object.defineProperty(t.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window},enumerable:!0,configurable:!0}),t.prototype.isTargetValid=function(t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},t.prototype.copyFromInputElement=function(t,e){void 0===e&&(e=!0);try{this.selectTarget(t);var o=this.copyText();return this.clearSelection(e?t:void 0,this.window),o&&this.isCopySuccessInIE11()}catch(t){return!1}},t.prototype.isCopySuccessInIE11=function(){var t=this.window.clipboardData;return!(t&&t.getData&&!t.getData("Text"))},t.prototype.copyFromContent=function(t,e){if(void 0===e&&(e=this.document.body),this.tempTextArea&&!e.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{e.appendChild(this.tempTextArea)}catch(t){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=t;var o=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),o},t.prototype.destroy=function(t){void 0===t&&(t=this.document.body),this.tempTextArea&&(t.removeChild(this.tempTextArea),this.tempTextArea=void 0)},t.prototype.selectTarget=function(t){return t.select(),t.setSelectionRange(0,t.value.length),t.value.length},t.prototype.copyText=function(){return this.document.execCommand("copy")},t.prototype.clearSelection=function(t,e){var o;t&&t.focus(),null===(o=e.getSelection())||void 0===o||o.removeAllRanges()},t.prototype.createTempTextArea=function(t,e){var o,n="rtl"===t.documentElement.getAttribute("dir");(o=t.createElement("textarea")).style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[n?"right":"left"]="-9999px";var r=e.pageYOffset||t.documentElement.scrollTop;return o.style.top=r+"px",o.setAttribute("readonly",""),o},t.prototype.pushCopyResponse=function(t){this.copySubject.next(t)},t.prototype.pushCopyReponse=function(t){this.pushCopyResponse(t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[e.DOCUMENT]}]},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[n.WINDOW]}]}]},t.ɵprov=o["ɵɵdefineInjectable"]({factory:function(){return new t(o["ɵɵinject"](e.DOCUMENT),o["ɵɵinject"](n.WINDOW,8))},token:t,providedIn:"root"}),t=i([o.Injectable({providedIn:"root"}),s(0,o.Inject(e.DOCUMENT)),s(1,o.Optional()),s(1,o.Inject(n.WINDOW))],t)}(),p=function(){function t(t){this.clipboardSrv=t,this.cbOnSuccess=new o.EventEmitter,this.cbOnError=new o.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy(this.container)},t.prototype.onClick=function(t){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,t):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,t):this.handleResult(!1,void 0,t)},t.prototype.handleResult=function(t,e,o){var n={isSuccess:t,event:o};t?(n=Object.assign(n,{content:e,successMessage:this.cbSuccessMsg}),this.cbOnSuccess.emit(n)):this.cbOnError.emit(n),this.clipboardSrv.pushCopyResponse(n)},t.ctorParameters=function(){return[{type:c}]},i([o.Input("ngxClipboard")],t.prototype,"targetElm",void 0),i([o.Input()],t.prototype,"container",void 0),i([o.Input()],t.prototype,"cbContent",void 0),i([o.Input()],t.prototype,"cbSuccessMsg",void 0),i([o.Output()],t.prototype,"cbOnSuccess",void 0),i([o.Output()],t.prototype,"cbOnError",void 0),i([o.HostListener("click",["$event.target"])],t.prototype,"onClick",null),t=i([o.Directive({selector:"[ngxClipboard]"})],t)}(),a=function(){function t(t,e,o){this._clipboardService=t,this._viewContainerRef=e,this._templateRef=o}return t.prototype.ngOnInit=function(){this._clipboardService.isSupported&&this._viewContainerRef.createEmbeddedView(this._templateRef)},t.ctorParameters=function(){return[{type:c},{type:o.ViewContainerRef},{type:o.TemplateRef}]},t=i([o.Directive({selector:"[ngxClipboardIfSupported]"})],t)}(),u=function(){function t(){}return t=i([o.NgModule({imports:[e.CommonModule],declarations:[p,a],exports:[p,a]})],t)}();t.ClipboardDirective=p,t.ClipboardIfSupportedDirective=a,t.ClipboardModule=u,t.ClipboardService=c,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("ngx-window-token"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-clipboard",["exports","@angular/common","@angular/core","ngx-window-token","rxjs"],e):e((t=t||self)["ngx-clipboard"]={},t.ng.common,t.ng.core,t.i2,t.rxjs)}(this,(function(t,e,o,r,n){"use strict";var i=function(){function t(t,e){this.document=t,this.window=e,this.copySubject=new n.Subject,this.copyResponse$=this.copySubject.asObservable(),this.config={}}return t.prototype.configure=function(t){this.config=t},t.prototype.copy=function(t){if(!this.isSupported||!t)return this.pushCopyResponse({isSuccess:!1,content:t});var e=this.copyFromContent(t);return e?this.pushCopyResponse({content:t,isSuccess:e}):this.pushCopyResponse({isSuccess:!1,content:t})},Object.defineProperty(t.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window},enumerable:!1,configurable:!0}),t.prototype.isTargetValid=function(t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},t.prototype.copyFromInputElement=function(t,e){void 0===e&&(e=!0);try{this.selectTarget(t);var o=this.copyText();return this.clearSelection(e?t:void 0,this.window),o&&this.isCopySuccessInIE11()}catch(t){return!1}},t.prototype.isCopySuccessInIE11=function(){var t=this.window.clipboardData;return!(t&&t.getData&&!t.getData("Text"))},t.prototype.copyFromContent=function(t,e){if(void 0===e&&(e=this.document.body),this.tempTextArea&&!e.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{e.appendChild(this.tempTextArea)}catch(t){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=t;var o=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),o},t.prototype.destroy=function(t){void 0===t&&(t=this.document.body),this.tempTextArea&&(t.removeChild(this.tempTextArea),this.tempTextArea=void 0)},t.prototype.selectTarget=function(t){return t.select(),t.setSelectionRange(0,t.value.length),t.value.length},t.prototype.copyText=function(){return this.document.execCommand("copy")},t.prototype.clearSelection=function(t,e){var o;t&&t.focus(),null===(o=e.getSelection())||void 0===o||o.removeAllRanges()},t.prototype.createTempTextArea=function(t,e){var o,r="rtl"===t.documentElement.getAttribute("dir");(o=t.createElement("textarea")).style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[r?"right":"left"]="-9999px";var n=e.pageYOffset||t.documentElement.scrollTop;return o.style.top=n+"px",o.setAttribute("readonly",""),o},t.prototype.pushCopyResponse=function(t){this.copySubject.next(t)},t.prototype.pushCopyReponse=function(t){this.pushCopyResponse(t)},t}();i.ɵprov=o.ɵɵdefineInjectable({factory:function(){return new i(o.ɵɵinject(e.DOCUMENT),o.ɵɵinject(r.WINDOW,8))},token:i,providedIn:"root"}),i.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],i.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[e.DOCUMENT]}]},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[r.WINDOW]}]}]};var s=function(){function t(t){this.clipboardSrv=t,this.cbOnSuccess=new o.EventEmitter,this.cbOnError=new o.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy(this.container)},t.prototype.onClick=function(t){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,t):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,t):this.handleResult(!1,void 0,t)},t.prototype.handleResult=function(t,e,o){var r={isSuccess:t,event:o};t?(r=Object.assign(r,{content:e,successMessage:this.cbSuccessMsg}),this.cbOnSuccess.emit(r)):this.cbOnError.emit(r),this.clipboardSrv.pushCopyResponse(r)},t}();s.decorators=[{type:o.Directive,args:[{selector:"[ngxClipboard]"}]}],s.ctorParameters=function(){return[{type:i}]},s.propDecorators={targetElm:[{type:o.Input,args:["ngxClipboard"]}],container:[{type:o.Input}],cbContent:[{type:o.Input}],cbSuccessMsg:[{type:o.Input}],cbOnSuccess:[{type:o.Output}],cbOnError:[{type:o.Output}],onClick:[{type:o.HostListener,args:["click",["$event.target"]]}]};var p=function(){function t(t,e,o){this._clipboardService=t,this._viewContainerRef=e,this._templateRef=o}return t.prototype.ngOnInit=function(){this._clipboardService.isSupported&&this._viewContainerRef.createEmbeddedView(this._templateRef)},t}();p.decorators=[{type:o.Directive,args:[{selector:"[ngxClipboardIfSupported]"}]}],p.ctorParameters=function(){return[{type:i},{type:o.ViewContainerRef},{type:o.TemplateRef}]};var c=function(){};c.decorators=[{type:o.NgModule,args:[{imports:[e.CommonModule],declarations:[s,p],exports:[s,p]}]}],t.ClipboardDirective=s,t.ClipboardIfSupportedDirective=p,t.ClipboardModule=c,t.ClipboardService=i,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-clipboard.umd.min.js.map |
@@ -1,1 +0,1 @@ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNsaXBib2FyZC8iLCJzb3VyY2VzIjpbImxpYi9pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUNsaXBib2FyZFJlc3BvbnNlIHtcclxuICAgIGlzU3VjY2VzczogYm9vbGVhbjtcclxuICAgIGNvbnRlbnQ/OiBzdHJpbmc7XHJcbiAgICBldmVudD86IEV2ZW50O1xyXG4gICAgc3VjY2Vzc01lc3NhZ2U/OiBzdHJpbmc7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQ2xpcGJvYXJkUGFyYW1zIHtcclxuICAgIGNsZWFuVXBBZnRlckNvcHk/OiBib29sZWFuO1xyXG59XHJcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNsaXBib2FyZC9zcmMvbGliL2ludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJQ2xpcGJvYXJkUmVzcG9uc2Uge1xyXG4gICAgaXNTdWNjZXNzOiBib29sZWFuO1xyXG4gICAgY29udGVudD86IHN0cmluZztcclxuICAgIGV2ZW50PzogRXZlbnQ7XHJcbiAgICBzdWNjZXNzTWVzc2FnZT86IHN0cmluZztcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBDbGlwYm9hcmRQYXJhbXMge1xyXG4gICAgY2xlYW5VcEFmdGVyQ29weT86IGJvb2xlYW47XHJcbn1cclxuIl19 |
@@ -1,5 +0,4 @@ | ||
import { __decorate } from "tslib"; | ||
import { Directive, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; | ||
import { Directive, TemplateRef, ViewContainerRef } from '@angular/core'; | ||
import { ClipboardService } from './ngx-clipboard.service'; | ||
let ClipboardIfSupportedDirective = class ClipboardIfSupportedDirective { | ||
export class ClipboardIfSupportedDirective { | ||
constructor(_clipboardService, _viewContainerRef, _templateRef) { | ||
@@ -15,3 +14,8 @@ this._clipboardService = _clipboardService; | ||
} | ||
}; | ||
} | ||
ClipboardIfSupportedDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[ngxClipboardIfSupported]' | ||
},] } | ||
]; | ||
ClipboardIfSupportedDirective.ctorParameters = () => [ | ||
@@ -22,8 +26,2 @@ { type: ClipboardService }, | ||
]; | ||
ClipboardIfSupportedDirective = __decorate([ | ||
Directive({ | ||
selector: '[ngxClipboardIfSupported]' | ||
}) | ||
], ClipboardIfSupportedDirective); | ||
export { ClipboardIfSupportedDirective }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC1pZi1zdXBwb3J0ZWQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNsaXBib2FyZC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtY2xpcGJvYXJkLWlmLXN1cHBvcnRlZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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ZpZXdDb250YWluZXJSZWY6IFZpZXdDb250YWluZXJSZWYsXHJcbiAgICAgICAgcHJpdmF0ZSBfdGVtcGxhdGVSZWY6IFRlbXBsYXRlUmVmPGFueT5cclxuICAgICkge31cclxuXHJcbiAgICBuZ09uSW5pdCgpIHtcclxuICAgICAgICBpZiAodGhpcy5fY2xpcGJvYXJkU2VydmljZS5pc1N1cHBvcnRlZCkge1xyXG4gICAgICAgICAgICB0aGlzLl92aWV3Q29udGFpbmVyUmVmLmNyZWF0ZUVtYmVkZGVkVmlldyh0aGlzLl90ZW1wbGF0ZVJlZik7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -1,5 +0,4 @@ | ||
import { __decorate } from "tslib"; | ||
import { Directive, EventEmitter, HostListener, Input, Output } from '@angular/core'; | ||
import { ClipboardService } from './ngx-clipboard.service'; | ||
let ClipboardDirective = class ClipboardDirective { | ||
export class ClipboardDirective { | ||
constructor(clipboardSrv) { | ||
@@ -47,33 +46,20 @@ this.clipboardSrv = clipboardSrv; | ||
} | ||
}; | ||
} | ||
ClipboardDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[ngxClipboard]' | ||
},] } | ||
]; | ||
ClipboardDirective.ctorParameters = () => [ | ||
{ type: ClipboardService } | ||
]; | ||
__decorate([ | ||
Input('ngxClipboard') | ||
], ClipboardDirective.prototype, "targetElm", void 0); | ||
__decorate([ | ||
Input() | ||
], ClipboardDirective.prototype, "container", void 0); | ||
__decorate([ | ||
Input() | ||
], ClipboardDirective.prototype, "cbContent", void 0); | ||
__decorate([ | ||
Input() | ||
], ClipboardDirective.prototype, "cbSuccessMsg", void 0); | ||
__decorate([ | ||
Output() | ||
], ClipboardDirective.prototype, "cbOnSuccess", void 0); | ||
__decorate([ | ||
Output() | ||
], ClipboardDirective.prototype, "cbOnError", void 0); | ||
__decorate([ | ||
HostListener('click', ['$event.target']) | ||
], ClipboardDirective.prototype, "onClick", null); | ||
ClipboardDirective = __decorate([ | ||
Directive({ | ||
selector: '[ngxClipboard]' | ||
}) | ||
], ClipboardDirective); | ||
export { ClipboardDirective }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtY2xpcGJvYXJkLyIsInNvdXJjZXMiOlsibGliL25neC1jbGlwYm9hcmQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFxQixNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHeEcsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFLM0QsSUFBYSxrQkFBa0IsR0FBL0IsTUFBYSxrQkFBa0I7SUFtQjNCLFlBQW9CLFlBQThCO1FBQTlCLGlCQUFZLEdBQVosWUFBWSxDQUFrQjtRQUozQyxnQkFBVyxHQUFxQyxJQUFJLFlBQVksRUFBc0IsQ0FBQztRQUd2RixjQUFTLEdBQXNCLElBQUksWUFBWSxFQUFPLENBQUM7SUFDVCxDQUFDO0lBRXRELG9DQUFvQztJQUM3QixRQUFRLEtBQUksQ0FBQztJQUViLFdBQVc7UUFDZCxJQUFJLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDOUMsQ0FBQztJQUdNLE9BQU8sQ0FBQyxLQUFZO1FBQ3ZCLElBQUksQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLFdBQVcsRUFBRTtZQUNoQyxJQUFJLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUUsS0FBSyxDQUFDLENBQUM7U0FDOUM7YUFBTSxJQUFJLElBQUksQ0FBQyxTQUFTLElBQ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iBJQ2xpcGJvYXJkUmVzcG9uc2UgPSB7XHJcbiAgICAgICAgICAgIGlzU3VjY2Vzczogc3VjY2VlZGVkLFxyXG4gICAgICAgICAgICBldmVudFxyXG4gICAgICAgIH07XHJcblxyXG4gICAgICAgIGlmIChzdWNjZWVkZWQpIHtcclxuICAgICAgICAgICAgcmVzcG9uc2UgPSBPYmplY3QuYXNzaWduKHJlc3BvbnNlLCB7XHJcbiAgICAgICAgICAgICAgICBjb250ZW50OiBjb3BpZWRDb250ZW50LFxyXG4gICAgICAgICAgICAgICAgc3VjY2Vzc01lc3NhZ2U6IHRoaXMuY2JTdWNjZXNzTXNnXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB0aGlzLmNiT25TdWNjZXNzLmVtaXQocmVzcG9uc2UpO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMuY2JPbkVycm9yLmVtaXQocmVzcG9uc2UpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy5jbGlwYm9hcmRTcnYucHVzaENvcHlSZXNwb25zZShyZXNwb25zZSk7XHJcbiAgICB9XHJcbn1cclxuIl19 | ||
ClipboardDirective.propDecorators = { | ||
targetElm: [{ type: Input, args: ['ngxClipboard',] }], | ||
container: [{ type: Input }], | ||
cbContent: [{ type: Input }], | ||
cbSuccessMsg: [{ type: Input }], | ||
cbOnSuccess: [{ type: Output }], | ||
cbOnError: [{ type: Output }], | ||
onClick: [{ type: HostListener, args: ['click', ['$event.target'],] }] | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY2xpcGJvYXJkL3NyYy9saWIvbmd4LWNsaXBib2FyZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLC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IH1cclxuXHJcbiAgICAgICAgdGhpcy5jbGlwYm9hcmRTcnYucHVzaENvcHlSZXNwb25zZShyZXNwb25zZSk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -1,2 +0,1 @@ | ||
import { __decorate } from "tslib"; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -6,12 +5,11 @@ import { NgModule } from '@angular/core'; | ||
import { ClipboardDirective } from './ngx-clipboard.directive'; | ||
let ClipboardModule = class ClipboardModule { | ||
}; | ||
ClipboardModule = __decorate([ | ||
NgModule({ | ||
imports: [CommonModule], | ||
declarations: [ClipboardDirective, ClipboardIfSupportedDirective], | ||
exports: [ClipboardDirective, ClipboardIfSupportedDirective] | ||
}) | ||
], ClipboardModule); | ||
export { ClipboardModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtY2xpcGJvYXJkLyIsInNvdXJjZXMiOlsibGliL25neC1jbGlwYm9hcmQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUN2RixPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQU8vRCxJQUFhLGVBQWUsR0FBNUIsTUFBYSxlQUFlO0NBQUcsQ0FBQTtBQUFsQixlQUFlO0lBTDNCLFFBQVEsQ0FBQztRQUNOLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztRQUN2QixZQUFZLEVBQUUsQ0FBQyxrQkFBa0IsRUFBRSw2QkFBNkIsQ0FBQztRQUNqRSxPQUFPLEVBQUUsQ0FBQyxrQkFBa0IsRUFBRSw2QkFBNkIsQ0FBQztLQUMvRCxDQUFDO0dBQ1csZUFBZSxDQUFHO1NBQWxCLGVBQWUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xyXG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuaW1wb3J0IHsgQ2xpcGJvYXJkSWZTdXBwb3J0ZWREaXJlY3RpdmUgfSBmcm9tICcuL25neC1jbGlwYm9hcmQtaWYtc3VwcG9ydGVkLmRpcmVjdGl2ZSc7XHJcbmltcG9ydCB7IENsaXBib2FyZERpcmVjdGl2ZSB9IGZyb20gJy4vbmd4LWNsaXBib2FyZC5kaXJlY3RpdmUnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICAgIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxyXG4gICAgZGVjbGFyYXRpb25zOiBbQ2xpcGJvYXJkRGlyZWN0aXZlLCBDbGlwYm9hcmRJZlN1cHBvcnRlZERpcmVjdGl2ZV0sXHJcbiAgICBleHBvcnRzOiBbQ2xpcGJvYXJkRGlyZWN0aXZlLCBDbGlwYm9hcmRJZlN1cHBvcnRlZERpcmVjdGl2ZV1cclxufSlcclxuZXhwb3J0IGNsYXNzIENsaXBib2FyZE1vZHVsZSB7fVxyXG4iXX0= | ||
export class ClipboardModule { | ||
} | ||
ClipboardModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
declarations: [ClipboardDirective, ClipboardIfSupportedDirective], | ||
exports: [ClipboardDirective, ClipboardIfSupportedDirective] | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiw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JvYXJkRGlyZWN0aXZlLCBDbGlwYm9hcmRJZlN1cHBvcnRlZERpcmVjdGl2ZV0sXHJcbiAgICBleHBvcnRzOiBbQ2xpcGJvYXJkRGlyZWN0aXZlLCBDbGlwYm9hcmRJZlN1cHBvcnRlZERpcmVjdGl2ZV1cclxufSlcclxuZXhwb3J0IGNsYXNzIENsaXBib2FyZE1vZHVsZSB7fVxyXG4iXX0= |
@@ -1,2 +0,1 @@ | ||
import { __decorate, __param } from "tslib"; | ||
import { DOCUMENT } from '@angular/common'; | ||
@@ -12,3 +11,3 @@ import { Inject, Injectable, Optional } from '@angular/core'; | ||
*/ | ||
let ClipboardService = class ClipboardService { | ||
export class ClipboardService { | ||
constructor(document, window) { | ||
@@ -162,3 +161,7 @@ this.document = document; | ||
} | ||
}; | ||
} | ||
ClipboardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ClipboardService_Factory() { return new ClipboardService(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i2.WINDOW, 8)); }, token: ClipboardService, providedIn: "root" }); | ||
ClipboardService.decorators = [ | ||
{ type: Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
ClipboardService.ctorParameters = () => [ | ||
@@ -168,8 +171,2 @@ { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, | ||
]; | ||
ClipboardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ClipboardService_Factory() { return new ClipboardService(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i2.WINDOW, 8)); }, token: ClipboardService, providedIn: "root" }); | ||
ClipboardService = __decorate([ | ||
Injectable({ providedIn: 'root' }), | ||
__param(0, Inject(DOCUMENT)), __param(1, Optional()), __param(1, Inject(WINDOW)) | ||
], ClipboardService); | ||
export { ClipboardService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vb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ZHkpOiBib29sZWFuIHtcclxuICAgICAgICAvLyBjaGVjayBpZiB0aGUgdGVtcCB0ZXh0YXJlYSBzdGlsbCBiZWxvbmdzIHRvIHRoZSBjdXJyZW50IGNvbnRhaW5lci5cclxuICAgICAgICAvLyBJbiBjYXNlIHdlIGhhdmUgbXVsdGlwbGUgcGxhY2VzIHVzaW5nIG5neC1jbGlwYm9hcmQsIG9uZSBpcyBpbiBhIG1vZGFsIHVzaW5nIGNvbnRhaW5lciBidXQgdGhlIG90aGVyIG9uZSBpcyBub3QuXHJcbiAgICAgICAgaWYgKHRoaXMudGVtcFRleHRBcmVhICYmICFjb250YWluZXIuY29udGFpbnModGhpcy50ZW1wVGV4dEFyZWEpKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZGVzdHJveSh0aGlzLnRlbXBUZXh0QXJlYS5wYXJlbnRFbGVtZW50IHx8IHVuZGVmaW5lZCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAoIXRoaXMudGVtcFRleHRBcmVhKSB7XHJcbiAgICAgICAgICAgIHRoaXMudGVtcFRleHRBcmVhID0gdGhpcy5jcmVhdGVUZW1wVGV4dEFyZWEodGhpcy5kb2N1bWVudCwgdGhpcy53aW5kb3cpO1xyXG4gICAgICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICAgICAgY29udGFpbmVyLmFwcGVuZENoaWxkKHRoaXMudGVtcFRleHRBcmVhKTtcclxuICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcclxuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignQ29udGFpbmVyIHNob3VsZCBiZSBhIERvbSBlbGVtZW50Jyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgdGhpcy50ZW1wVGV4dEFyZWEudmFsdWUgPSBjb250ZW50O1xyXG5cclxuICAgICAgICBjb25zdCB0b1JldHVybiA9IHRoaXMuY29weUZyb21JbnB1dEVsZW1lbnQodGhpcy50ZW1w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b25zZTogSUNsaXBib2FyZFJlc3BvbnNlKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5jb3B5U3ViamVjdC5uZXh0KHJlc3BvbnNlKTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIEBkZXByZWNhdGVkIHVzZSBwdXNoQ29weVJlc3BvbnNlIGluc3RlYWQuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBwdXNoQ29weVJlcG9uc2UocmVzcG9uc2U6IElDbGlwYm9hcmRSZXNwb25zZSk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMucHVzaENvcHlSZXNwb25zZShyZXNwb25zZSk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -5,2 +5,2 @@ /** | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jbGlwYm9hcmQvIiwic291cmNlcyI6WyJuZ3gtY2xpcGJvYXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNsaXBib2FyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1jbGlwYm9hcmQvc3JjL25neC1jbGlwYm9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== |
@@ -8,2 +8,3 @@ /* | ||
export * from './lib/ngx-clipboard-if-supported.directive'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jbGlwYm9hcmQvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw0Q0FBNEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtY2xpcGJvYXJkXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LWNsaXBib2FyZC5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LWNsaXBib2FyZC5kaXJlY3RpdmUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtY2xpcGJvYXJkLm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1jbGlwYm9hcmQtaWYtc3VwcG9ydGVkLmRpcmVjdGl2ZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ludGVyZmFjZSc7XHJcbiJdfQ== | ||
export * from './lib/interface'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1jbGlwYm9hcmQvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWNsaXBib2FyZFxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1jbGlwYm9hcmQuc2VydmljZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1jbGlwYm9hcmQuZGlyZWN0aXZlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LWNsaXBib2FyZC5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtY2xpcGJvYXJkLWlmLXN1cHBvcnRlZC5kaXJlY3RpdmUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9pbnRlcmZhY2UnO1xyXG4iXX0= |
@@ -1,4 +0,3 @@ | ||
import { __decorate, __param } from 'tslib'; | ||
import { DOCUMENT, CommonModule } from '@angular/common'; | ||
import { Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Injectable, EventEmitter, Input, Output, HostListener, Directive, ViewContainerRef, TemplateRef, NgModule } from '@angular/core'; | ||
import { ɵɵdefineInjectable, ɵɵinject, Injectable, Inject, Optional, EventEmitter, Directive, Input, Output, HostListener, ViewContainerRef, TemplateRef, NgModule } from '@angular/core'; | ||
import { WINDOW } from 'ngx-window-token'; | ||
@@ -10,3 +9,3 @@ import { Subject } from 'rxjs'; | ||
*/ | ||
let ClipboardService = class ClipboardService { | ||
class ClipboardService { | ||
constructor(document, window) { | ||
@@ -160,3 +159,7 @@ this.document = document; | ||
} | ||
}; | ||
} | ||
ClipboardService.ɵprov = ɵɵdefineInjectable({ factory: function ClipboardService_Factory() { return new ClipboardService(ɵɵinject(DOCUMENT), ɵɵinject(WINDOW, 8)); }, token: ClipboardService, providedIn: "root" }); | ||
ClipboardService.decorators = [ | ||
{ type: Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
ClipboardService.ctorParameters = () => [ | ||
@@ -166,9 +169,4 @@ { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, | ||
]; | ||
ClipboardService.ɵprov = ɵɵdefineInjectable({ factory: function ClipboardService_Factory() { return new ClipboardService(ɵɵinject(DOCUMENT), ɵɵinject(WINDOW, 8)); }, token: ClipboardService, providedIn: "root" }); | ||
ClipboardService = __decorate([ | ||
Injectable({ providedIn: 'root' }), | ||
__param(0, Inject(DOCUMENT)), __param(1, Optional()), __param(1, Inject(WINDOW)) | ||
], ClipboardService); | ||
let ClipboardDirective = class ClipboardDirective { | ||
class ClipboardDirective { | ||
constructor(clipboardSrv) { | ||
@@ -216,34 +214,22 @@ this.clipboardSrv = clipboardSrv; | ||
} | ||
}; | ||
} | ||
ClipboardDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[ngxClipboard]' | ||
},] } | ||
]; | ||
ClipboardDirective.ctorParameters = () => [ | ||
{ type: ClipboardService } | ||
]; | ||
__decorate([ | ||
Input('ngxClipboard') | ||
], ClipboardDirective.prototype, "targetElm", void 0); | ||
__decorate([ | ||
Input() | ||
], ClipboardDirective.prototype, "container", void 0); | ||
__decorate([ | ||
Input() | ||
], ClipboardDirective.prototype, "cbContent", void 0); | ||
__decorate([ | ||
Input() | ||
], ClipboardDirective.prototype, "cbSuccessMsg", void 0); | ||
__decorate([ | ||
Output() | ||
], ClipboardDirective.prototype, "cbOnSuccess", void 0); | ||
__decorate([ | ||
Output() | ||
], ClipboardDirective.prototype, "cbOnError", void 0); | ||
__decorate([ | ||
HostListener('click', ['$event.target']) | ||
], ClipboardDirective.prototype, "onClick", null); | ||
ClipboardDirective = __decorate([ | ||
Directive({ | ||
selector: '[ngxClipboard]' | ||
}) | ||
], ClipboardDirective); | ||
ClipboardDirective.propDecorators = { | ||
targetElm: [{ type: Input, args: ['ngxClipboard',] }], | ||
container: [{ type: Input }], | ||
cbContent: [{ type: Input }], | ||
cbSuccessMsg: [{ type: Input }], | ||
cbOnSuccess: [{ type: Output }], | ||
cbOnError: [{ type: Output }], | ||
onClick: [{ type: HostListener, args: ['click', ['$event.target'],] }] | ||
}; | ||
let ClipboardIfSupportedDirective = class ClipboardIfSupportedDirective { | ||
class ClipboardIfSupportedDirective { | ||
constructor(_clipboardService, _viewContainerRef, _templateRef) { | ||
@@ -259,3 +245,8 @@ this._clipboardService = _clipboardService; | ||
} | ||
}; | ||
} | ||
ClipboardIfSupportedDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[ngxClipboardIfSupported]' | ||
},] } | ||
]; | ||
ClipboardIfSupportedDirective.ctorParameters = () => [ | ||
@@ -266,17 +257,12 @@ { type: ClipboardService }, | ||
]; | ||
ClipboardIfSupportedDirective = __decorate([ | ||
Directive({ | ||
selector: '[ngxClipboardIfSupported]' | ||
}) | ||
], ClipboardIfSupportedDirective); | ||
let ClipboardModule = class ClipboardModule { | ||
}; | ||
ClipboardModule = __decorate([ | ||
NgModule({ | ||
imports: [CommonModule], | ||
declarations: [ClipboardDirective, ClipboardIfSupportedDirective], | ||
exports: [ClipboardDirective, ClipboardIfSupportedDirective] | ||
}) | ||
], ClipboardModule); | ||
class ClipboardModule { | ||
} | ||
ClipboardModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
declarations: [ClipboardDirective, ClipboardIfSupportedDirective], | ||
exports: [ClipboardDirective, ClipboardIfSupportedDirective] | ||
},] } | ||
]; | ||
@@ -283,0 +269,0 @@ /* |
{ | ||
"name": "ngx-clipboard", | ||
"description": "angular 2 clipboard", | ||
"version": "13.0.1", | ||
"version": "14.0.0-beta01", | ||
"author": { | ||
@@ -25,15 +25,13 @@ "name": "Sam Lin", | ||
"dependencies": { | ||
"ngx-window-token": ">=3.0.0" | ||
"ngx-window-token": ">=4.0.0||4.0.0-beta01", | ||
"tslib": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/common": ">=9.0.0", | ||
"@angular/core": ">=9.0.0", | ||
"tslib": "^1.10.0" | ||
"@angular/common": ">=10.0.0", | ||
"@angular/core": ">=10.0.0" | ||
}, | ||
"main": "bundles/ngx-clipboard.umd.js", | ||
"module": "fesm5/ngx-clipboard.js", | ||
"module": "fesm2015/ngx-clipboard.js", | ||
"es2015": "fesm2015/ngx-clipboard.js", | ||
"esm5": "esm5/ngx-clipboard.js", | ||
"esm2015": "esm2015/ngx-clipboard.js", | ||
"fesm5": "fesm5/ngx-clipboard.js", | ||
"fesm2015": "fesm2015/ngx-clipboard.js", | ||
@@ -40,0 +38,0 @@ "typings": "ngx-clipboard.d.ts", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
134882
23
958
2
+ Addedtslib@^2.0.0
- Removedngx-window-token@7.0.0(transitive)
- Removedtslib@1.14.1(transitive)