@starley/ion-directives 1.2.41 → 1.2.42

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.
@@ -0,0 +1,11 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BlockCopyPasteDirective {
4
+ private el;
5
+ constructor(el: ElementRef);
6
+ onPaste(e: ClipboardEvent): void;
7
+ onCut(e: ClipboardEvent): void;
8
+ onCopy(e: ClipboardEvent): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BlockCopyPasteDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BlockCopyPasteDirective, "[appBlockCopyPaste]", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,38 @@
1
+ import { Directive, HostListener } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ var BlockCopyPasteDirective = /** @class */ (function () {
4
+ function BlockCopyPasteDirective(el) {
5
+ this.el = el;
6
+ }
7
+ BlockCopyPasteDirective.prototype.onPaste = function (e) {
8
+ e.preventDefault();
9
+ };
10
+ BlockCopyPasteDirective.prototype.onCut = function (e) {
11
+ e.preventDefault();
12
+ };
13
+ BlockCopyPasteDirective.prototype.onCopy = function (e) {
14
+ e.preventDefault();
15
+ };
16
+ BlockCopyPasteDirective.ɵfac = function BlockCopyPasteDirective_Factory(t) { return new (t || BlockCopyPasteDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
17
+ 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.onPaste($event); })("cut", function BlockCopyPasteDirective_cut_HostBindingHandler($event) { return ctx.onCut($event); })("copy", function BlockCopyPasteDirective_copy_HostBindingHandler($event) { return ctx.onCopy($event); });
19
+ } } });
20
+ return BlockCopyPasteDirective;
21
+ }());
22
+ export { BlockCopyPasteDirective };
23
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BlockCopyPasteDirective, [{
24
+ type: Directive,
25
+ args: [{
26
+ selector: '[appBlockCopyPaste]'
27
+ }]
28
+ }], function () { return [{ type: i0.ElementRef }]; }, { onPaste: [{
29
+ type: HostListener,
30
+ args: ['paste', ['$event']]
31
+ }], onCut: [{
32
+ type: HostListener,
33
+ args: ['cut', ['$event']]
34
+ }], onCopy: [{
35
+ type: HostListener,
36
+ args: ['copy', ['$event']]
37
+ }] }); })();
38
+ //# sourceMappingURL=block-copy-past.directive.js.map
@@ -0,0 +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,EAAc,YAAY,EAAE,MAAM,eAAe,CAAC;;AAEpE;IAII,iCAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;IAAI,CAAC;IAGvC,yCAAO,GADP,UACQ,CAAiB;QACrB,CAAC,CAAC,cAAc,EAAE,CAAC;IACvB,CAAC;IAGD,uCAAK,GADL,UACM,CAAiB;QACnB,CAAC,CAAC,cAAc,EAAE,CAAC;IACvB,CAAC;IAGD,wCAAM,GADN,UACO,CAAiB;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;IACvB,CAAC;kGAhBQ,uBAAuB;8EAAvB,uBAAuB;8GAAvB,mBAAe,qFAAf,iBAAa,uFAAb,kBAAc;;kCAL3B;CAsBC,AApBD,IAoBC;SAjBY,uBAAuB;uFAAvB,uBAAuB;cAHnC,SAAS;eAAC;gBACP,QAAQ,EAAE,qBAAqB;aAClC;6DAKG,OAAO;kBADN,YAAY;mBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;YAMjC,KAAK;kBADJ,YAAY;mBAAC,KAAK,EAAE,CAAC,QAAQ,CAAC;YAM/B,MAAM;kBADL,YAAY;mBAAC,MAAM,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import { Directive, ElementRef, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[appBlockCopyPaste]'\n})\nexport class BlockCopyPasteDirective {\n constructor(private el: ElementRef) { }\n\n @HostListener('paste', ['$event'])\n onPaste(e: ClipboardEvent) {\n e.preventDefault();\n }\n\n @HostListener('cut', ['$event'])\n onCut(e: ClipboardEvent) {\n e.preventDefault();\n }\n\n @HostListener('copy', ['$event'])\n onCopy(e: ClipboardEvent) {\n e.preventDefault();\n }\n}\n"]}
@@ -4,7 +4,8 @@ import * as i1 from "./press-hold/press-hold.directive";
4
4
  import * as i2 from "./tap/tap.directive";
5
5
  import * as i3 from "./input-mask/input-mask.directive";
6
6
  import * as i4 from "./input-remove/input-remove.directive";
7
- import * as i5 from "@angular/common";
7
+ import * as i5 from "./block-input/block-copy-past.directive";
8
+ import * as i6 from "@angular/common";
8
9
  /**
9
10
  * Gerencia precionamento de enventos
10
11
  * @author Starley Cazorla
@@ -12,6 +13,6 @@ import * as i5 from "@angular/common";
12
13
  export declare class DirectivesModule {
13
14
  static forRoot(): ModuleWithProviders<DirectivesModule>;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DirectivesModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.PressHoldDirective, typeof i2.TapDirective, typeof i3.IonInputMaskDirective, typeof i4.IonInputRemoveDirective], [typeof i5.CommonModule], [typeof i1.PressHoldDirective, typeof i2.TapDirective, typeof i3.IonInputMaskDirective, typeof i4.IonInputRemoveDirective]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.PressHoldDirective, typeof i2.TapDirective, typeof i3.IonInputMaskDirective, typeof i4.IonInputRemoveDirective, typeof i5.BlockCopyPasteDirective], [typeof i6.CommonModule], [typeof i1.PressHoldDirective, typeof i2.TapDirective, typeof i3.IonInputMaskDirective, typeof i4.IonInputRemoveDirective, typeof i5.BlockCopyPasteDirective]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<DirectivesModule>;
17
18
  }
@@ -4,6 +4,7 @@ import { IonInputMaskDirective } from './input-mask/input-mask.directive';
4
4
  import { IonInputRemoveDirective } from './input-remove/input-remove.directive';
5
5
  import { PressHoldDirective } from './press-hold/press-hold.directive';
6
6
  import { TapDirective } from './tap/tap.directive';
7
+ import { BlockCopyPasteDirective } from './block-input/block-copy-past.directive';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Gerencia precionamento de enventos
@@ -31,7 +32,8 @@ export { DirectivesModule };
31
32
  PressHoldDirective,
32
33
  TapDirective,
33
34
  IonInputMaskDirective,
34
- IonInputRemoveDirective
35
+ IonInputRemoveDirective,
36
+ BlockCopyPasteDirective
35
37
  ],
36
38
  imports: [
37
39
  CommonModule
@@ -40,7 +42,8 @@ export { DirectivesModule };
40
42
  PressHoldDirective,
41
43
  TapDirective,
42
44
  IonInputMaskDirective,
43
- IonInputRemoveDirective
45
+ IonInputRemoveDirective,
46
+ BlockCopyPasteDirective
44
47
  ],
45
48
  schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
46
49
  }]
@@ -48,8 +51,10 @@ export { DirectivesModule };
48
51
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DirectivesModule, { declarations: [PressHoldDirective,
49
52
  TapDirective,
50
53
  IonInputMaskDirective,
51
- IonInputRemoveDirective], imports: [CommonModule], exports: [PressHoldDirective,
54
+ IonInputRemoveDirective,
55
+ BlockCopyPasteDirective], imports: [CommonModule], exports: [PressHoldDirective,
52
56
  TapDirective,
53
57
  IonInputMaskDirective,
54
- IonInputRemoveDirective] }); })();
58
+ IonInputRemoveDirective,
59
+ BlockCopyPasteDirective] }); })();
55
60
  //# sourceMappingURL=directive.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"directive.module.js","sourceRoot":"","sources":["../src/directive.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAuB,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;;AAEnD;;;GAGG;AAEH;IAAA;KA0BC;IANU,wBAAO,GAAd;QACI,OAAO;YACH,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE,EAAE;SAChB,CAAC;IACN,CAAC;oFANQ,gBAAgB;sEAAhB,gBAAgB;0EAXrB,YAAY;2BApBpB;CAsCC,AA1BD,IA0BC;SAPY,gBAAgB;uFAAhB,gBAAgB;cAnB5B,QAAQ;eAAC;gBACN,YAAY,EAAE;oBACV,kBAAkB;oBAClB,YAAY;oBACZ,qBAAqB;oBACrB,uBAAuB;iBAC1B;gBACD,OAAO,EAAE;oBACL,YAAY;iBACf;gBACD,OAAO,EAAE;oBACL,kBAAkB;oBAClB,YAAY;oBACZ,qBAAqB;oBACrB,uBAAuB;iBAC1B;gBACD,OAAO,EAAE,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;aAEtD;;wFACY,gBAAgB,mBAjBrB,kBAAkB;QAClB,YAAY;QACZ,qBAAqB;QACrB,uBAAuB,aAGvB,YAAY,aAGZ,kBAAkB;QAClB,YAAY;QACZ,qBAAqB;QACrB,uBAAuB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { IonInputMaskDirective } from './input-mask/input-mask.directive';\nimport { IonInputRemoveDirective } from './input-remove/input-remove.directive';\nimport { PressHoldDirective } from './press-hold/press-hold.directive';\nimport { TapDirective } from './tap/tap.directive';\n\n/**\n * Gerencia precionamento de enventos\n * @author Starley Cazorla\n */\n\n@NgModule({\n declarations: [\n PressHoldDirective,\n TapDirective,\n IonInputMaskDirective,\n IonInputRemoveDirective\n ],\n imports: [\n CommonModule\n ],\n exports: [\n PressHoldDirective,\n TapDirective,\n IonInputMaskDirective,\n IonInputRemoveDirective\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]\n\n})\nexport class DirectivesModule {\n static forRoot(): ModuleWithProviders<DirectivesModule> {\n return {\n ngModule: DirectivesModule,\n providers: [],\n };\n }\n}\n"]}
1
+ {"version":3,"file":"directive.module.js","sourceRoot":"","sources":["../src/directive.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAuB,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;;AAElF;;;GAGG;AAEH;IAAA;KA4BC;IANU,wBAAO,GAAd;QACI,OAAO;YACH,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE,EAAE;SAChB,CAAC;IACN,CAAC;oFANQ,gBAAgB;sEAAhB,gBAAgB;0EAZrB,YAAY;2BAtBpB;CAyCC,AA5BD,IA4BC;SAPY,gBAAgB;uFAAhB,gBAAgB;cArB5B,QAAQ;eAAC;gBACN,YAAY,EAAE;oBACV,kBAAkB;oBAClB,YAAY;oBACZ,qBAAqB;oBACrB,uBAAuB;oBACvB,uBAAuB;iBAC1B;gBACD,OAAO,EAAE;oBACL,YAAY;iBACf;gBACD,OAAO,EAAE;oBACL,kBAAkB;oBAClB,YAAY;oBACZ,qBAAqB;oBACrB,uBAAuB;oBACvB,uBAAuB;iBAC1B;gBACD,OAAO,EAAE,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;aAEtD;;wFACY,gBAAgB,mBAnBrB,kBAAkB;QAClB,YAAY;QACZ,qBAAqB;QACrB,uBAAuB;QACvB,uBAAuB,aAGvB,YAAY,aAGZ,kBAAkB;QAClB,YAAY;QACZ,qBAAqB;QACrB,uBAAuB;QACvB,uBAAuB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { IonInputMaskDirective } from './input-mask/input-mask.directive';\nimport { IonInputRemoveDirective } from './input-remove/input-remove.directive';\nimport { PressHoldDirective } from './press-hold/press-hold.directive';\nimport { TapDirective } from './tap/tap.directive';\nimport { BlockCopyPasteDirective } from './block-input/block-copy-past.directive';\n\n/**\n * Gerencia precionamento de enventos\n * @author Starley Cazorla\n */\n\n@NgModule({\n declarations: [\n PressHoldDirective,\n TapDirective,\n IonInputMaskDirective,\n IonInputRemoveDirective,\n BlockCopyPasteDirective\n ],\n imports: [\n CommonModule\n ],\n exports: [\n PressHoldDirective,\n TapDirective,\n IonInputMaskDirective,\n IonInputRemoveDirective,\n BlockCopyPasteDirective\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]\n\n})\nexport class DirectivesModule {\n static forRoot(): ModuleWithProviders<DirectivesModule> {\n return {\n ngModule: DirectivesModule,\n providers: [],\n };\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starley/ion-directives",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "description": "Directivas internas para ionic",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",