@starley/ion-directives 1.2.43 → 1.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class BlockCopyPasteDirective {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
onCopy(e: ClipboardEvent): void;
|
|
3
|
+
constructor();
|
|
4
|
+
blockPaste(e: KeyboardEvent): void;
|
|
5
|
+
blockCopy(e: KeyboardEvent): void;
|
|
6
|
+
blockCut(e: KeyboardEvent): void;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockCopyPasteDirective, never>;
|
|
10
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BlockCopyPasteDirective, "[appBlockCopyPaste]", never, {}, {}, never, never, false, never>;
|
|
11
9
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { Directive, HostListener } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
var BlockCopyPasteDirective = /** @class */ (function () {
|
|
4
|
-
function BlockCopyPasteDirective(
|
|
5
|
-
this.el = el;
|
|
4
|
+
function BlockCopyPasteDirective() {
|
|
6
5
|
}
|
|
7
|
-
BlockCopyPasteDirective.prototype.
|
|
6
|
+
BlockCopyPasteDirective.prototype.blockPaste = function (e) {
|
|
8
7
|
e.preventDefault();
|
|
9
8
|
};
|
|
10
|
-
BlockCopyPasteDirective.prototype.
|
|
9
|
+
BlockCopyPasteDirective.prototype.blockCopy = function (e) {
|
|
11
10
|
e.preventDefault();
|
|
12
11
|
};
|
|
13
|
-
BlockCopyPasteDirective.prototype.
|
|
12
|
+
BlockCopyPasteDirective.prototype.blockCut = function (e) {
|
|
14
13
|
e.preventDefault();
|
|
15
14
|
};
|
|
16
|
-
BlockCopyPasteDirective.ɵfac = function BlockCopyPasteDirective_Factory(t) { return new (t || BlockCopyPasteDirective)(
|
|
15
|
+
BlockCopyPasteDirective.ɵfac = function BlockCopyPasteDirective_Factory(t) { return new (t || BlockCopyPasteDirective)(); };
|
|
17
16
|
BlockCopyPasteDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BlockCopyPasteDirective, selectors: [["", "appBlockCopyPaste", ""]], hostBindings: function BlockCopyPasteDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵlistener("paste", function BlockCopyPasteDirective_paste_HostBindingHandler($event) { return ctx.
|
|
17
|
+
i0.ɵɵlistener("paste", function BlockCopyPasteDirective_paste_HostBindingHandler($event) { return ctx.blockPaste($event); })("copy", function BlockCopyPasteDirective_copy_HostBindingHandler($event) { return ctx.blockCopy($event); })("cut", function BlockCopyPasteDirective_cut_HostBindingHandler($event) { return ctx.blockCut($event); });
|
|
19
18
|
} } });
|
|
20
19
|
return BlockCopyPasteDirective;
|
|
21
20
|
}());
|
|
@@ -25,14 +24,14 @@ export { BlockCopyPasteDirective };
|
|
|
25
24
|
args: [{
|
|
26
25
|
selector: '[appBlockCopyPaste]'
|
|
27
26
|
}]
|
|
28
|
-
}], function () { return [
|
|
27
|
+
}], function () { return []; }, { blockPaste: [{
|
|
29
28
|
type: HostListener,
|
|
30
29
|
args: ['paste', ['$event']]
|
|
31
|
-
}],
|
|
32
|
-
type: HostListener,
|
|
33
|
-
args: ['cut', ['$event']]
|
|
34
|
-
}], onCopy: [{
|
|
30
|
+
}], blockCopy: [{
|
|
35
31
|
type: HostListener,
|
|
36
32
|
args: ['copy', ['$event']]
|
|
33
|
+
}], blockCut: [{
|
|
34
|
+
type: HostListener,
|
|
35
|
+
args: ['cut', ['$event']]
|
|
37
36
|
}] }); })();
|
|
38
37
|
//# sourceMappingURL=block-copy-past.directive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-copy-past.directive.js","sourceRoot":"","sources":["../../src/block-input/block-copy-past.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"block-copy-past.directive.js","sourceRoot":"","sources":["../../src/block-input/block-copy-past.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;AAExD;IAIE;IAAgB,CAAC;IAEkB,4CAAU,GAA7C,UAA8C,CAAgB;QAC5D,CAAC,CAAC,cAAc,EAAE,CAAC;IACrB,CAAC;IAEiC,2CAAS,GAA3C,UAA4C,CAAgB;QAC1D,CAAC,CAAC,cAAc,EAAE,CAAC;IACrB,CAAC;IAEgC,0CAAQ,GAAzC,UAA0C,CAAgB;QACxD,CAAC,CAAC,cAAc,EAAE,CAAC;IACrB,CAAC;kGAbU,uBAAuB;8EAAvB,uBAAuB;8GAAvB,sBAAkB,uFAAlB,qBAAiB,qFAAjB,oBAAgB;;kCAL7B;CAmBC,AAjBD,IAiBC;SAdY,uBAAuB;uFAAvB,uBAAuB;cAHnC,SAAS;eAAC;gBACT,QAAQ,EAAE,qBAAqB;aAChC;sCAIoC,UAAU;kBAA5C,YAAY;mBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;YAIC,SAAS;kBAA1C,YAAY;mBAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;YAIC,QAAQ;kBAAxC,YAAY;mBAAC,KAAK,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import { Directive, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[appBlockCopyPaste]'\n})\nexport class BlockCopyPasteDirective {\n constructor() { }\n\n @HostListener('paste', ['$event']) blockPaste(e: KeyboardEvent) {\n e.preventDefault();\n }\n\n @HostListener('copy', ['$event']) blockCopy(e: KeyboardEvent) {\n e.preventDefault();\n }\n\n @HostListener('cut', ['$event']) blockCut(e: KeyboardEvent) {\n e.preventDefault();\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starley/ion-directives",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.45",
|
|
4
4
|
"description": "Directivas internas para ionic",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/StarleyDev/ion-directives#readme",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@angular/common": "^
|
|
41
|
-
"@angular/compiler": "^
|
|
42
|
-
"@angular/compiler-cli": "^
|
|
43
|
-
"@angular/core": "^
|
|
44
|
-
"@angular/forms": "^
|
|
45
|
-
"@types/node": "^
|
|
46
|
-
"nodemon": "^3.
|
|
47
|
-
"ts-node": "^10.9.
|
|
48
|
-
"typescript": "4.
|
|
40
|
+
"@angular/common": "^18.0.0",
|
|
41
|
+
"@angular/compiler": "^18.0.0",
|
|
42
|
+
"@angular/compiler-cli": "^18.0.00",
|
|
43
|
+
"@angular/core": "^18.0.0",
|
|
44
|
+
"@angular/forms": "^18.0.0",
|
|
45
|
+
"@types/node": "^22.8.6",
|
|
46
|
+
"nodemon": "^3.1.7",
|
|
47
|
+
"ts-node": "^10.9.2",
|
|
48
|
+
"typescript": "~5.4.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"codelyzer": "^6.0.2",
|
|
52
|
-
"moment": "^2.
|
|
53
|
-
"tslib": "^2.
|
|
52
|
+
"moment": "^2.30.1",
|
|
53
|
+
"tslib": "^2.8.0"
|
|
54
54
|
}
|
|
55
55
|
}
|