@eurosat/resized-event 10.0.0 → 12.0.0

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.
@@ -8,150 +8,74 @@
8
8
 
9
9
  var ResizeSensor__default = /*#__PURE__*/_interopDefaultLegacy(ResizeSensor);
10
10
 
11
- /**
12
- * @fileoverview added by tsickle
13
- * Generated from: lib/es-resized-event.ts
14
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15
- */
16
- var EsResizedEvent = /** @class */ (function () {
17
- /**
18
- * @param {?} element
19
- * @param {?} newWidth
20
- * @param {?} newHeight
21
- * @param {?} oldWidth
22
- * @param {?} oldHeight
23
- */
24
- function EsResizedEvent(element, newWidth, newHeight, oldWidth, oldHeight) {
25
- this.element = element;
26
- this.newWidth = newWidth;
27
- this.newHeight = newHeight;
28
- this.oldWidth = oldWidth;
29
- this.oldHeight = oldHeight;
30
- }
31
- return EsResizedEvent;
32
- }());
33
- if (false) {
34
- /** @type {?} */
35
- EsResizedEvent.prototype.element;
36
- /** @type {?} */
37
- EsResizedEvent.prototype.newWidth;
38
- /** @type {?} */
39
- EsResizedEvent.prototype.newHeight;
40
- /** @type {?} */
41
- EsResizedEvent.prototype.oldWidth;
42
- /** @type {?} */
43
- EsResizedEvent.prototype.oldHeight;
44
- }
11
+ var EsResizedEvent = /** @class */ (function () {
12
+ function EsResizedEvent(element, newWidth, newHeight, oldWidth, oldHeight) {
13
+ this.element = element;
14
+ this.newWidth = newWidth;
15
+ this.newHeight = newHeight;
16
+ this.oldWidth = oldWidth;
17
+ this.oldHeight = oldHeight;
18
+ }
19
+ return EsResizedEvent;
20
+ }());
45
21
 
46
- /**
47
- * @fileoverview added by tsickle
48
- * Generated from: lib/es-resized-event.directive.ts
49
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
50
- */
51
- var EsResizedEventDirective = /** @class */ (function () {
52
- /**
53
- * @param {?} element
54
- */
55
- function EsResizedEventDirective(element) {
56
- this.element = element;
57
- this.resized = new core.EventEmitter();
58
- }
59
- /**
60
- * @return {?}
61
- */
62
- EsResizedEventDirective.prototype.ngOnInit = function () {
63
- var _this = this;
64
- // tslint:disable-next-line:no-unused-expression
65
- new ResizeSensor__default['default'](this.element.nativeElement, ( /**
66
- * @param {?} x
67
- * @return {?}
68
- */function (/**
69
- * @param {?} x
70
- * @return {?}
71
- */ x) { return _this.onResized(); }));
72
- this.onResized();
73
- };
74
- /**
75
- * @private
76
- * @return {?}
77
- */
78
- EsResizedEventDirective.prototype.onResized = function () {
79
- /** @type {?} */
80
- var newWidth = this.element.nativeElement.clientWidth;
81
- /** @type {?} */
82
- var newHeight = this.element.nativeElement.clientHeight;
83
- if (newWidth === this.oldWidth && newHeight === this.oldHeight) {
84
- return;
85
- }
86
- /** @type {?} */
87
- var event = new EsResizedEvent(this.element, newWidth, newHeight, this.oldWidth, this.oldHeight);
88
- this.oldWidth = this.element.nativeElement.clientWidth;
89
- this.oldHeight = this.element.nativeElement.clientHeight;
90
- this.resized.next(event);
91
- };
92
- return EsResizedEventDirective;
93
- }());
94
- EsResizedEventDirective.decorators = [
95
- { type: core.Directive, args: [{
96
- // tslint:disable-next-line:directive-selector
97
- selector: '[resized]'
98
- },] }
99
- ];
100
- /** @nocollapse */
101
- EsResizedEventDirective.ctorParameters = function () { return [
102
- { type: core.ElementRef }
103
- ]; };
104
- EsResizedEventDirective.propDecorators = {
105
- resized: [{ type: core.Output, args: ['resized',] }]
106
- };
107
- if (false) {
108
- /** @type {?} */
109
- EsResizedEventDirective.prototype.resized;
110
- /**
111
- * @type {?}
112
- * @private
113
- */
114
- EsResizedEventDirective.prototype.oldWidth;
115
- /**
116
- * @type {?}
117
- * @private
118
- */
119
- EsResizedEventDirective.prototype.oldHeight;
120
- /**
121
- * @type {?}
122
- * @private
123
- */
124
- EsResizedEventDirective.prototype.element;
125
- }
22
+ var EsResizedEventDirective = /** @class */ (function () {
23
+ function EsResizedEventDirective(element) {
24
+ this.element = element;
25
+ this.resized = new core.EventEmitter();
26
+ }
27
+ EsResizedEventDirective.prototype.ngOnInit = function () {
28
+ var _this = this;
29
+ // tslint:disable-next-line:no-unused-expression
30
+ new ResizeSensor__default['default'](this.element.nativeElement, function (x) { return _this.onResized(); });
31
+ this.onResized();
32
+ };
33
+ EsResizedEventDirective.prototype.onResized = function () {
34
+ var newWidth = this.element.nativeElement.clientWidth;
35
+ var newHeight = this.element.nativeElement.clientHeight;
36
+ if (newWidth === this.oldWidth && newHeight === this.oldHeight) {
37
+ return;
38
+ }
39
+ var event = new EsResizedEvent(this.element, newWidth, newHeight, this.oldWidth, this.oldHeight);
40
+ this.oldWidth = this.element.nativeElement.clientWidth;
41
+ this.oldHeight = this.element.nativeElement.clientHeight;
42
+ this.resized.next(event);
43
+ };
44
+ return EsResizedEventDirective;
45
+ }());
46
+ EsResizedEventDirective.decorators = [
47
+ { type: core.Directive, args: [{
48
+ // tslint:disable-next-line:directive-selector
49
+ selector: '[resized]'
50
+ },] }
51
+ ];
52
+ /** @nocollapse */
53
+ EsResizedEventDirective.ctorParameters = function () { return [
54
+ { type: core.ElementRef }
55
+ ]; };
56
+ EsResizedEventDirective.propDecorators = {
57
+ resized: [{ type: core.Output, args: ['resized',] }]
58
+ };
126
59
 
127
- /**
128
- * @fileoverview added by tsickle
129
- * Generated from: lib/es-resized-event.module.ts
130
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
131
- */
132
- var EsResizedEventModule = /** @class */ (function () {
133
- function EsResizedEventModule() {
134
- }
135
- return EsResizedEventModule;
136
- }());
137
- EsResizedEventModule.decorators = [
138
- { type: core.NgModule, args: [{
139
- declarations: [EsResizedEventDirective],
140
- imports: [],
141
- exports: [EsResizedEventDirective]
142
- },] }
60
+ var EsResizedEventModule = /** @class */ (function () {
61
+ function EsResizedEventModule() {
62
+ }
63
+ return EsResizedEventModule;
64
+ }());
65
+ EsResizedEventModule.decorators = [
66
+ { type: core.NgModule, args: [{
67
+ declarations: [EsResizedEventDirective],
68
+ imports: [],
69
+ exports: [EsResizedEventDirective]
70
+ },] }
143
71
  ];
144
72
 
145
- /**
146
- * @fileoverview added by tsickle
147
- * Generated from: public_api.ts
148
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
73
+ /*
74
+ * Public API Surface of resized-event
149
75
  */
150
76
 
151
- /**
152
- * @fileoverview added by tsickle
153
- * Generated from: eurosat-resized-event.ts
154
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
77
+ /**
78
+ * Generated bundle index. Do not edit.
155
79
  */
156
80
 
157
81
  exports.EsResizedEvent = EsResizedEvent;
@@ -1 +1 @@
1
- {"version":3,"file":"eurosat-resized-event.umd.js","sources":["../../../projects/resized-event/src/lib/es-resized-event.ts","../../../projects/resized-event/src/lib/es-resized-event.directive.ts","../../../projects/resized-event/src/lib/es-resized-event.module.ts"],"sourcesContent":["import { ElementRef } from '@angular/core';\r\n\r\nexport class EsResizedEvent {\r\n constructor(\r\n readonly element: ElementRef,\r\n readonly newWidth: number,\r\n readonly newHeight: number,\r\n readonly oldWidth: number,\r\n readonly oldHeight: number\r\n ) {}\r\n}\r\n","import { Directive, ElementRef, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport {EsResizedEvent} from './es-resized-event';\r\nimport ResizeSensor from 'css-element-queries/src/ResizeSensor';\r\n\r\n\r\n@Directive({\r\n // tslint:disable-next-line:directive-selector\r\n selector: '[resized]'\r\n})\r\nexport class EsResizedEventDirective implements OnInit {\r\n\r\n @Output('resized')\r\n readonly resized = new EventEmitter<EsResizedEvent>();\r\n\r\n private oldWidth: number;\r\n private oldHeight: number;\r\n\r\n constructor(private readonly element: ElementRef) {\r\n }\r\n\r\n ngOnInit(): void {\r\n // tslint:disable-next-line:no-unused-expression\r\n new ResizeSensor(this.element.nativeElement, x => this.onResized());\r\n this.onResized();\r\n }\r\n\r\n private onResized(): void {\r\n const newWidth = this.element.nativeElement.clientWidth;\r\n const newHeight = this.element.nativeElement.clientHeight;\r\n\r\n if (newWidth === this.oldWidth && newHeight === this.oldHeight) {\r\n return;\r\n }\r\n\r\n const event = new EsResizedEvent(\r\n this.element,\r\n newWidth,\r\n newHeight,\r\n this.oldWidth,\r\n this.oldHeight);\r\n\r\n this.oldWidth = this.element.nativeElement.clientWidth;\r\n this.oldHeight = this.element.nativeElement.clientHeight;\r\n\r\n this.resized.next(event);\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { EsResizedEventDirective } from './es-resized-event.directive';\r\n\r\n@NgModule({\r\n declarations: [EsResizedEventDirective],\r\n imports: [\r\n ],\r\n exports: [EsResizedEventDirective]\r\n})\r\nexport class EsResizedEventModule { }\r\n"],"names":["EventEmitter","ResizeSensor","Directive","ElementRef","Output","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;QAGI,wBACa,OAAmB,EACnB,QAAgB,EAChB,SAAiB,EACjB,QAAgB,EAChB,SAAiB;YAJjB,YAAO,GAAP,OAAO,CAAY;YACnB,aAAQ,GAAR,QAAQ,CAAQ;YAChB,cAAS,GAAT,SAAS,CAAQ;YACjB,aAAQ,GAAR,QAAQ,CAAQ;YAChB,cAAS,GAAT,SAAS,CAAQ;SAC1B;6BACP;KAAA,IAAA;;;QANO,iCAA4B;;QAC5B,kCAAyB;;QACzB,mCAA0B;;QAC1B,kCAAyB;;QACzB,mCAA0B;;;;;;;;;;;;QCS9B,iCAA6B,OAAmB;YAAnB,YAAO,GAAP,OAAO,CAAY;YALvC,YAAO,GAAG,IAAIA,iBAAY,EAAkB,CAAC;SAMrD;;;;QAED,0CAAQ,GAAR;YAAA,iBAIC;;YAFG,IAAIC,gCAAY,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa;;;eAAE;;;gBAAA,CAAC,IAAI,OAAA,KAAI,CAAC,SAAS,EAAE,GAAA,EAAC,CAAC;YACpE,IAAI,CAAC,SAAS,EAAE,CAAC;SACpB;;;;;QAEO,2CAAS,GAAT;;gBACE,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW;;gBACjD,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY;YAEzD,IAAI,QAAQ,KAAK,IAAI,CAAC,QAAQ,IAAI,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE;gBAC5D,OAAO;aACV;;gBAEK,KAAK,GAAG,IAAI,cAAc,CAC5B,IAAI,CAAC,OAAO,EACZ,QAAQ,EACR,SAAS,EACT,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,SAAS,CAAC;YAEnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC;YACvD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC;YAEzD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC5B;;;;gBAxCJC,cAAS,SAAC;;oBAEP,QAAQ,EAAE,WAAW;iBACxB;;;;gBARmBC,eAAU;;;0BAWzBC,WAAM,SAAC,SAAS;;;;QAAjB,0CACsD;;;;;QAEtD,2CAAyB;;;;;QACzB,4CAA0B;;;;;QAEd,0CAAoC;;;;;;;;;QCRpD;;;;;gBANCC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,EACR;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"eurosat-resized-event.umd.js","sources":["../../../projects/resized-event/src/lib/es-resized-event.ts","../../../projects/resized-event/src/lib/es-resized-event.directive.ts","../../../projects/resized-event/src/lib/es-resized-event.module.ts","../../../projects/resized-event/src/public_api.ts","../../../projects/resized-event/src/eurosat-resized-event.ts"],"sourcesContent":["import { ElementRef } from '@angular/core';\n\nexport class EsResizedEvent {\n constructor(\n readonly element: ElementRef,\n readonly newWidth: number,\n readonly newHeight: number,\n readonly oldWidth: number,\n readonly oldHeight: number\n ) {}\n}\n","import { Directive, ElementRef, EventEmitter, Output, OnInit } from '@angular/core';\nimport {EsResizedEvent} from './es-resized-event';\nimport ResizeSensor from 'css-element-queries/src/ResizeSensor';\n\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[resized]'\n})\nexport class EsResizedEventDirective implements OnInit {\n\n @Output('resized')\n readonly resized = new EventEmitter<EsResizedEvent>();\n\n private oldWidth: number;\n private oldHeight: number;\n\n constructor(private readonly element: ElementRef) {\n }\n\n ngOnInit(): void {\n // tslint:disable-next-line:no-unused-expression\n new ResizeSensor(this.element.nativeElement, x => this.onResized());\n this.onResized();\n }\n\n private onResized(): void {\n const newWidth = this.element.nativeElement.clientWidth;\n const newHeight = this.element.nativeElement.clientHeight;\n\n if (newWidth === this.oldWidth && newHeight === this.oldHeight) {\n return;\n }\n\n const event = new EsResizedEvent(\n this.element,\n newWidth,\n newHeight,\n this.oldWidth,\n this.oldHeight);\n\n this.oldWidth = this.element.nativeElement.clientWidth;\n this.oldHeight = this.element.nativeElement.clientHeight;\n\n this.resized.next(event);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { EsResizedEventDirective } from './es-resized-event.directive';\n\n@NgModule({\n declarations: [EsResizedEventDirective],\n imports: [\n ],\n exports: [EsResizedEventDirective]\n})\nexport class EsResizedEventModule { }\n","/*\n * Public API Surface of resized-event\n */\n\nexport * from './lib/es-resized-event';\nexport * from './lib/es-resized-event.directive';\nexport * from './lib/es-resized-event.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["EventEmitter","ResizeSensor","Directive","ElementRef","Output","NgMod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;;gBAxCJC,cAAS,SAAC;;oBAEP,QAAQ,EAAE,WAAW;iBACxB;;;;gBARmBC,eAAU;;;0BAWzBC,WAAM,SAAC,SAAS;;;;QCFrB;;;;;gBANCC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,EACR;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC;;;ICRD;;;;ICAA;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("css-element-queries/src/ResizeSensor")):"function"==typeof define&&define.amd?define("@eurosat/resized-event",["exports","@angular/core","css-element-queries/src/ResizeSensor"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).eurosat=e.eurosat||{},e.eurosat["resized-event"]={}),e.ng.core,e.ResizeSensor)}(this,(function(e,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=n(i),r=function(e,t,i,n,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=n,this.oldHeight=s};var o=function(){function e(e){this.element=e,this.resized=new t.EventEmitter}return e.prototype.ngOnInit=function(){var e=this;new s.default(this.element.nativeElement,(function(t){return e.onResized()})),this.onResized()},e.prototype.onResized=function(){var e=this.element.nativeElement.clientWidth,t=this.element.nativeElement.clientHeight;if(e!==this.oldWidth||t!==this.oldHeight){var i=new r(this.element,e,t,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.next(i)}},e}();o.decorators=[{type:t.Directive,args:[{selector:"[resized]"}]}],o.ctorParameters=function(){return[{type:t.ElementRef}]},o.propDecorators={resized:[{type:t.Output,args:["resized"]}]};var d=function(){};d.decorators=[{type:t.NgModule,args:[{declarations:[o],imports:[],exports:[o]}]}],e.EsResizedEvent=r,e.EsResizedEventDirective=o,e.EsResizedEventModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("css-element-queries/src/ResizeSensor")):"function"==typeof define&&define.amd?define("@eurosat/resized-event",["exports","@angular/core","css-element-queries/src/ResizeSensor"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).eurosat=e.eurosat||{},e.eurosat["resized-event"]={}),e.ng.core,e.ResizeSensor)}(this,(function(e,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=n(i),r=function(e,t,i,n,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=n,this.oldHeight=s},o=function(){function e(e){this.element=e,this.resized=new t.EventEmitter}return e.prototype.ngOnInit=function(){var e=this;new s.default(this.element.nativeElement,(function(t){return e.onResized()})),this.onResized()},e.prototype.onResized=function(){var e=this.element.nativeElement.clientWidth,t=this.element.nativeElement.clientHeight;if(e!==this.oldWidth||t!==this.oldHeight){var i=new r(this.element,e,t,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.next(i)}},e}();o.decorators=[{type:t.Directive,args:[{selector:"[resized]"}]}],o.ctorParameters=function(){return[{type:t.ElementRef}]},o.propDecorators={resized:[{type:t.Output,args:["resized"]}]};var d=function(){};d.decorators=[{type:t.NgModule,args:[{declarations:[o],imports:[],exports:[o]}]}],e.EsResizedEvent=r,e.EsResizedEventDirective=o,e.EsResizedEventModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=eurosat-resized-event.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../projects/resized-event/src/lib/es-resized-event.ts","../../../projects/resized-event/src/lib/es-resized-event.directive.ts","../../../projects/resized-event/src/lib/es-resized-event.module.ts"],"names":["element","newWidth","newHeight","oldWidth","oldHeight","this","EsResizedEventDirective","resized","EventEmitter","prototype","ngOnInit","_this","ResizeSensor","nativeElement","x","onResized","clientWidth","clientHeight","event","EsResizedEvent","next","Directive","args","selector","ElementRef","Output","NgModule","declarations","imports","exports"],"mappings":"qiBAGI,SACaA,EACAC,EACAC,EACAC,EACAC,GAJAC,KAAAL,QAAAA,EACAK,KAAAJ,SAAAA,EACAI,KAAAH,UAAAA,EACAG,KAAAF,SAAAA,EACAE,KAAAD,UAAAA,oBCSb,SAAAE,EAA6BN,GAAAK,KAAAL,QAAAA,EALpBK,KAAAE,QAAU,IAAIC,EAAAA,oBAQvBF,EAAAG,UAAAC,SAAA,WAAA,IAAAC,EAAAN,KAEI,IAAIO,EAAAA,QAAaP,KAAKL,QAAQa,eAAa,SAAEC,GAAK,OAAAH,EAAKI,eACvDV,KAAKU,aAGDT,EAAAG,UAAAM,UAAA,eACEd,EAAWI,KAAKL,QAAQa,cAAcG,YACtCd,EAAYG,KAAKL,QAAQa,cAAcI,aAE7C,GAAIhB,IAAaI,KAAKF,UAAYD,IAAcG,KAAKD,UAArD,KAIMc,EAAQ,IAAIC,EACdd,KAAKL,QACLC,EACAC,EACAG,KAAKF,SACLE,KAAKD,WAETC,KAAKF,SAAWE,KAAKL,QAAQa,cAAcG,YAC3CX,KAAKD,UAAYC,KAAKL,QAAQa,cAAcI,aAE5CZ,KAAKE,QAAQa,KAAKF,8BAvCzBG,EAAAA,UAASC,KAAA,CAAC,CAEPC,SAAU,yDAPMC,EAAAA,+CAWfC,EAAAA,OAAMH,KAAA,CAAC,oBCFZ,iCANCI,EAAAA,SAAQJ,KAAA,CAAC,CACRK,aAAc,CAACrB,GACfsB,QAAS,GAETC,QAAS,CAACvB","sourcesContent":["import { ElementRef } from '@angular/core';\r\n\r\nexport class EsResizedEvent {\r\n constructor(\r\n readonly element: ElementRef,\r\n readonly newWidth: number,\r\n readonly newHeight: number,\r\n readonly oldWidth: number,\r\n readonly oldHeight: number\r\n ) {}\r\n}\r\n","import { Directive, ElementRef, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport {EsResizedEvent} from './es-resized-event';\r\nimport ResizeSensor from 'css-element-queries/src/ResizeSensor';\r\n\r\n\r\n@Directive({\r\n // tslint:disable-next-line:directive-selector\r\n selector: '[resized]'\r\n})\r\nexport class EsResizedEventDirective implements OnInit {\r\n\r\n @Output('resized')\r\n readonly resized = new EventEmitter<EsResizedEvent>();\r\n\r\n private oldWidth: number;\r\n private oldHeight: number;\r\n\r\n constructor(private readonly element: ElementRef) {\r\n }\r\n\r\n ngOnInit(): void {\r\n // tslint:disable-next-line:no-unused-expression\r\n new ResizeSensor(this.element.nativeElement, x => this.onResized());\r\n this.onResized();\r\n }\r\n\r\n private onResized(): void {\r\n const newWidth = this.element.nativeElement.clientWidth;\r\n const newHeight = this.element.nativeElement.clientHeight;\r\n\r\n if (newWidth === this.oldWidth && newHeight === this.oldHeight) {\r\n return;\r\n }\r\n\r\n const event = new EsResizedEvent(\r\n this.element,\r\n newWidth,\r\n newHeight,\r\n this.oldWidth,\r\n this.oldHeight);\r\n\r\n this.oldWidth = this.element.nativeElement.clientWidth;\r\n this.oldHeight = this.element.nativeElement.clientHeight;\r\n\r\n this.resized.next(event);\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { EsResizedEventDirective } from './es-resized-event.directive';\r\n\r\n@NgModule({\r\n declarations: [EsResizedEventDirective],\r\n imports: [\r\n ],\r\n exports: [EsResizedEventDirective]\r\n})\r\nexport class EsResizedEventModule { }\r\n"]}
1
+ {"version":3,"sources":["../../../projects/resized-event/src/lib/es-resized-event.ts","../../../projects/resized-event/src/lib/es-resized-event.directive.ts","../../../projects/resized-event/src/lib/es-resized-event.module.ts"],"names":["element","newWidth","newHeight","oldWidth","oldHeight","this","EsResizedEventDirective","resized","EventEmitter","prototype","ngOnInit","_this","ResizeSensor","nativeElement","x","onResized","clientWidth","clientHeight","event","EsResizedEvent","next","Directive","args","selector","ElementRef","Output","NgModule","declarations","imports","exports"],"mappings":"qiBAGI,SACaA,EACAC,EACAC,EACAC,EACAC,GAJAC,KAAAL,QAAAA,EACAK,KAAAJ,SAAAA,EACAI,KAAAH,UAAAA,EACAG,KAAAF,SAAAA,EACAE,KAAAD,UAAAA,gBCSb,SAAAE,EAA6BN,GAAAK,KAAAL,QAAAA,EALpBK,KAAAE,QAAU,IAAIC,EAAAA,oBAQvBF,EAAAG,UAAAC,SAAA,WAAA,IAAAC,EAAAN,KAEI,IAAIO,EAAAA,QAAaP,KAAKL,QAAQa,eAAe,SAAAC,GAAK,OAAAH,EAAKI,eACvDV,KAAKU,aAGDT,EAAAG,UAAAM,UAAA,WACJ,IAAMd,EAAWI,KAAKL,QAAQa,cAAcG,YACtCd,EAAYG,KAAKL,QAAQa,cAAcI,aAE7C,GAAIhB,IAAaI,KAAKF,UAAYD,IAAcG,KAAKD,UAArD,CAIA,IAAMc,EAAQ,IAAIC,EACdd,KAAKL,QACLC,EACAC,EACAG,KAAKF,SACLE,KAAKD,WAETC,KAAKF,SAAWE,KAAKL,QAAQa,cAAcG,YAC3CX,KAAKD,UAAYC,KAAKL,QAAQa,cAAcI,aAE5CZ,KAAKE,QAAQa,KAAKF,8BAvCzBG,EAAAA,UAASC,KAAA,CAAC,CAEPC,SAAU,yDAPMC,EAAAA,+CAWfC,EAAAA,OAAMH,KAAA,CAAC,oBCFZ,iCANCI,EAAAA,SAAQJ,KAAA,CAAC,CACRK,aAAc,CAACrB,GACfsB,QAAS,GAETC,QAAS,CAACvB","sourcesContent":["import { ElementRef } from '@angular/core';\n\nexport class EsResizedEvent {\n constructor(\n readonly element: ElementRef,\n readonly newWidth: number,\n readonly newHeight: number,\n readonly oldWidth: number,\n readonly oldHeight: number\n ) {}\n}\n","import { Directive, ElementRef, EventEmitter, Output, OnInit } from '@angular/core';\nimport {EsResizedEvent} from './es-resized-event';\nimport ResizeSensor from 'css-element-queries/src/ResizeSensor';\n\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[resized]'\n})\nexport class EsResizedEventDirective implements OnInit {\n\n @Output('resized')\n readonly resized = new EventEmitter<EsResizedEvent>();\n\n private oldWidth: number;\n private oldHeight: number;\n\n constructor(private readonly element: ElementRef) {\n }\n\n ngOnInit(): void {\n // tslint:disable-next-line:no-unused-expression\n new ResizeSensor(this.element.nativeElement, x => this.onResized());\n this.onResized();\n }\n\n private onResized(): void {\n const newWidth = this.element.nativeElement.clientWidth;\n const newHeight = this.element.nativeElement.clientHeight;\n\n if (newWidth === this.oldWidth && newHeight === this.oldHeight) {\n return;\n }\n\n const event = new EsResizedEvent(\n this.element,\n newWidth,\n newHeight,\n this.oldWidth,\n this.oldHeight);\n\n this.oldWidth = this.element.nativeElement.clientWidth;\n this.oldHeight = this.element.nativeElement.clientHeight;\n\n this.resized.next(event);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { EsResizedEventDirective } from './es-resized-event.directive';\n\n@NgModule({\n declarations: [EsResizedEventDirective],\n imports: [\n ],\n exports: [EsResizedEventDirective]\n})\nexport class EsResizedEventModule { }\n"]}
@@ -1,10 +1,5 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: eurosat-resized-event.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- /**
7
- * Generated bundle index. Do not edit.
8
- */
9
- export { EsResizedEvent, EsResizedEventDirective, EsResizedEventModule } from './public_api';
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXVyb3NhdC1yZXNpemVkLWV2ZW50LmpzIiwic291cmNlUm9vdCI6IkM6L1VzZXJzL01pY2hhbC9FdXJvc2F0L25pbC9wcm9qZWN0cy9yZXNpemVkLWV2ZW50L3NyYy8iLCJzb3VyY2VzIjpbImV1cm9zYXQtcmVzaXplZC1ldmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLDhFQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXVyb3NhdC1yZXNpemVkLWV2ZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvcmVzaXplZC1ldmVudC9zcmMvZXVyb3NhdC1yZXNpemVkLWV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
@@ -1,80 +1,39 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/es-resized-event.directive.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- import { Directive, ElementRef, EventEmitter, Output } from '@angular/core';
7
- import { EsResizedEvent } from './es-resized-event';
8
- import ResizeSensor from 'css-element-queries/src/ResizeSensor';
9
- export class EsResizedEventDirective {
10
- /**
11
- * @param {?} element
12
- */
13
- constructor(element) {
14
- this.element = element;
15
- this.resized = new EventEmitter();
16
- }
17
- /**
18
- * @return {?}
19
- */
20
- ngOnInit() {
21
- // tslint:disable-next-line:no-unused-expression
22
- new ResizeSensor(this.element.nativeElement, (/**
23
- * @param {?} x
24
- * @return {?}
25
- */
26
- x => this.onResized()));
27
- this.onResized();
28
- }
29
- /**
30
- * @private
31
- * @return {?}
32
- */
33
- onResized() {
34
- /** @type {?} */
35
- const newWidth = this.element.nativeElement.clientWidth;
36
- /** @type {?} */
37
- const newHeight = this.element.nativeElement.clientHeight;
38
- if (newWidth === this.oldWidth && newHeight === this.oldHeight) {
39
- return;
40
- }
41
- /** @type {?} */
42
- const event = new EsResizedEvent(this.element, newWidth, newHeight, this.oldWidth, this.oldHeight);
43
- this.oldWidth = this.element.nativeElement.clientWidth;
44
- this.oldHeight = this.element.nativeElement.clientHeight;
45
- this.resized.next(event);
46
- }
47
- }
48
- EsResizedEventDirective.decorators = [
49
- { type: Directive, args: [{
50
- // tslint:disable-next-line:directive-selector
51
- selector: '[resized]'
52
- },] }
53
- ];
54
- /** @nocollapse */
55
- EsResizedEventDirective.ctorParameters = () => [
56
- { type: ElementRef }
57
- ];
58
- EsResizedEventDirective.propDecorators = {
59
- resized: [{ type: Output, args: ['resized',] }]
60
- };
61
- if (false) {
62
- /** @type {?} */
63
- EsResizedEventDirective.prototype.resized;
64
- /**
65
- * @type {?}
66
- * @private
67
- */
68
- EsResizedEventDirective.prototype.oldWidth;
69
- /**
70
- * @type {?}
71
- * @private
72
- */
73
- EsResizedEventDirective.prototype.oldHeight;
74
- /**
75
- * @type {?}
76
- * @private
77
- */
78
- EsResizedEventDirective.prototype.element;
79
- }
80
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMtcmVzaXplZC1ldmVudC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiQzovVXNlcnMvTWljaGFsL0V1cm9zYXQvbmlsL3Byb2plY3RzL3Jlc2l6ZWQtZXZlbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2VzLXJlc2l6ZWQtZXZlbnQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBVSxNQUFNLGVBQWUsQ0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WVudFdpZHRoO1xyXG4gICAgICAgIHRoaXMub2xkSGVpZ2h0ID0gdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuY2xpZW50SGVpZ2h0O1xyXG5cclxuICAgICAgICB0aGlzLnJlc2l6ZWQubmV4dChldmVudCk7XHJcbiAgICB9XHJcblxyXG59XHJcbiJdfQ==
1
+ import { Directive, ElementRef, EventEmitter, Output } from '@angular/core';
2
+ import { EsResizedEvent } from './es-resized-event';
3
+ import ResizeSensor from 'css-element-queries/src/ResizeSensor';
4
+ export class EsResizedEventDirective {
5
+ constructor(element) {
6
+ this.element = element;
7
+ this.resized = new EventEmitter();
8
+ }
9
+ ngOnInit() {
10
+ // tslint:disable-next-line:no-unused-expression
11
+ new ResizeSensor(this.element.nativeElement, x => this.onResized());
12
+ this.onResized();
13
+ }
14
+ onResized() {
15
+ const newWidth = this.element.nativeElement.clientWidth;
16
+ const newHeight = this.element.nativeElement.clientHeight;
17
+ if (newWidth === this.oldWidth && newHeight === this.oldHeight) {
18
+ return;
19
+ }
20
+ const event = new EsResizedEvent(this.element, newWidth, newHeight, this.oldWidth, this.oldHeight);
21
+ this.oldWidth = this.element.nativeElement.clientWidth;
22
+ this.oldHeight = this.element.nativeElement.clientHeight;
23
+ this.resized.next(event);
24
+ }
25
+ }
26
+ EsResizedEventDirective.decorators = [
27
+ { type: Directive, args: [{
28
+ // tslint:disable-next-line:directive-selector
29
+ selector: '[resized]'
30
+ },] }
31
+ ];
32
+ /** @nocollapse */
33
+ EsResizedEventDirective.ctorParameters = () => [
34
+ { type: ElementRef }
35
+ ];
36
+ EsResizedEventDirective.propDecorators = {
37
+ resized: [{ type: Output, args: ['resized',] }]
38
+ };
39
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMtcmVzaXplZC1ldmVudC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0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oID0gdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuY2xpZW50V2lkdGg7XG4gICAgICAgIHRoaXMub2xkSGVpZ2h0ID0gdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuY2xpZW50SGVpZ2h0O1xuXG4gICAgICAgIHRoaXMucmVzaXplZC5uZXh0KGV2ZW50KTtcbiAgICB9XG5cbn1cbiJdfQ==
@@ -1,34 +1,10 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/es-resized-event.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- export class EsResizedEvent {
7
- /**
8
- * @param {?} element
9
- * @param {?} newWidth
10
- * @param {?} newHeight
11
- * @param {?} oldWidth
12
- * @param {?} oldHeight
13
- */
14
- constructor(element, newWidth, newHeight, oldWidth, oldHeight) {
15
- this.element = element;
16
- this.newWidth = newWidth;
17
- this.newHeight = newHeight;
18
- this.oldWidth = oldWidth;
19
- this.oldHeight = oldHeight;
20
- }
21
- }
22
- if (false) {
23
- /** @type {?} */
24
- EsResizedEvent.prototype.element;
25
- /** @type {?} */
26
- EsResizedEvent.prototype.newWidth;
27
- /** @type {?} */
28
- EsResizedEvent.prototype.newHeight;
29
- /** @type {?} */
30
- EsResizedEvent.prototype.oldWidth;
31
- /** @type {?} */
32
- EsResizedEvent.prototype.oldHeight;
33
- }
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMtcmVzaXplZC1ldmVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9NaWNoYWwvRXVyb3NhdC9uaWwvcHJvamVjdHMvcmVzaXplZC1ldmVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZXMtcmVzaXplZC1ldmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLE1BQU0sT0FBTyxjQUFjOzs7Ozs7OztJQUN2QixZQUNhLE9BQW1CLEVBQ25CLFFBQWdCLEVBQ2hCLFNBQWlCLEVBQ2pCLFFBQWdCLEVBQ2hCLFNBQWlCO1FBSmpCLFlBQU8sR0FBUCxPQUFPLENBQVk7UUFDbkIsYUFBUSxHQUFSLFFBQVEsQ0FBUTtRQUNoQixjQUFTLEdBQVQsU0FBUyxDQUFRO1FBQ2pCLGFBQVEsR0FBUixRQUFRLENBQVE7UUFDaEIsY0FBUyxHQUFULFNBQVMsQ0FBUTtJQUMzQixDQUFDO0NBQ1A7OztJQU5PLGlDQUE0Qjs7SUFDNUIsa0NBQXlCOztJQUN6QixtQ0FBMEI7O0lBQzFCLGtDQUF5Qjs7SUFDekIsbUNBQTBCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRWxlbWVudFJlZiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuZXhwb3J0IGNsYXNzIEVzUmVzaXplZEV2ZW50IHtcclxuICAgIGNvbnN0cnVjdG9yKFxyXG4gICAgICAgIHJlYWRvbmx5IGVsZW1lbnQ6IEVsZW1lbnRSZWYsXHJcbiAgICAgICAgcmVhZG9ubHkgbmV3V2lkdGg6IG51bWJlcixcclxuICAgICAgICByZWFkb25seSBuZXdIZWlnaHQ6IG51bWJlcixcclxuICAgICAgICByZWFkb25seSBvbGRXaWR0aDogbnVtYmVyLFxyXG4gICAgICAgIHJlYWRvbmx5IG9sZEhlaWdodDogbnVtYmVyXHJcbiAgICApIHt9XHJcbn1cclxuIl19
1
+ export class EsResizedEvent {
2
+ constructor(element, newWidth, newHeight, oldWidth, oldHeight) {
3
+ this.element = element;
4
+ this.newWidth = newWidth;
5
+ this.newHeight = newHeight;
6
+ this.oldWidth = oldWidth;
7
+ this.oldHeight = oldHeight;
8
+ }
9
+ }
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMtcmVzaXplZC1ldmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3Jlc2l6ZWQtZXZlbnQvc3JjL2xpYi9lcy1yZXNpemVkLWV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxjQUFjO0lBQ3ZCLFlBQ2EsT0FBbUIsRUFDbkIsUUFBZ0IsRUFDaEIsU0FBaUIsRUFDakIsUUFBZ0IsRUFDaEIsU0FBaUI7UUFKakIsWUFBTyxHQUFQLE9BQU8sQ0FBWTtRQUNuQixhQUFRLEdBQVIsUUFBUSxDQUFRO1FBQ2hCLGNBQVMsR0FBVCxTQUFTLENBQVE7UUFDakIsYUFBUSxHQUFSLFFBQVEsQ0FBUTtRQUNoQixjQUFTLEdBQVQsU0FBUyxDQUFRO0lBQzNCLENBQUM7Q0FDUCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVsZW1lbnRSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGNsYXNzIEVzUmVzaXplZEV2ZW50IHtcbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcmVhZG9ubHkgZWxlbWVudDogRWxlbWVudFJlZixcbiAgICAgICAgcmVhZG9ubHkgbmV3V2lkdGg6IG51bWJlcixcbiAgICAgICAgcmVhZG9ubHkgbmV3SGVpZ2h0OiBudW1iZXIsXG4gICAgICAgIHJlYWRvbmx5IG9sZFdpZHRoOiBudW1iZXIsXG4gICAgICAgIHJlYWRvbmx5IG9sZEhlaWdodDogbnVtYmVyXG4gICAgKSB7fVxufVxuIl19
@@ -1,17 +1,12 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/es-resized-event.module.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- import { NgModule } from '@angular/core';
7
- import { EsResizedEventDirective } from './es-resized-event.directive';
8
- export class EsResizedEventModule {
9
- }
10
- EsResizedEventModule.decorators = [
11
- { type: NgModule, args: [{
12
- declarations: [EsResizedEventDirective],
13
- imports: [],
14
- exports: [EsResizedEventDirective]
15
- },] }
16
- ];
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMtcmVzaXplZC1ldmVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiQzovVXNlcnMvTWljaGFsL0V1cm9zYXQvbmlsL3Byb2plY3RzL3Jlc2l6ZWQtZXZlbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2VzLXJlc2l6ZWQtZXZlbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQVF2RSxNQUFNLE9BQU8sb0JBQW9COzs7WUFOaEMsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLHVCQUF1QixDQUFDO2dCQUN2QyxPQUFPLEVBQUUsRUFDUjtnQkFDRCxPQUFPLEVBQUUsQ0FBQyx1QkFBdUIsQ0FBQzthQUNuQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IEVzUmVzaXplZEV2ZW50RGlyZWN0aXZlIH0gZnJvbSAnLi9lcy1yZXNpemVkLWV2ZW50LmRpcmVjdGl2ZSc7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogW0VzUmVzaXplZEV2ZW50RGlyZWN0aXZlXSxcclxuICBpbXBvcnRzOiBbXHJcbiAgXSxcclxuICBleHBvcnRzOiBbRXNSZXNpemVkRXZlbnREaXJlY3RpdmVdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBFc1Jlc2l6ZWRFdmVudE1vZHVsZSB7IH1cclxuIl19
1
+ import { NgModule } from '@angular/core';
2
+ import { EsResizedEventDirective } from './es-resized-event.directive';
3
+ export class EsResizedEventModule {
4
+ }
5
+ EsResizedEventModule.decorators = [
6
+ { type: NgModule, args: [{
7
+ declarations: [EsResizedEventDirective],
8
+ imports: [],
9
+ exports: [EsResizedEventDirective]
10
+ },] }
11
+ ];
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMtcmVzaXplZC1ldmVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9yZXNpemVkLWV2ZW50L3NyYy9saWIvZXMtcmVzaXplZC1ldmVudC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQVF2RSxNQUFNLE9BQU8sb0JBQW9COzs7WUFOaEMsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLHVCQUF1QixDQUFDO2dCQUN2QyxPQUFPLEVBQUUsRUFDUjtnQkFDRCxPQUFPLEVBQUUsQ0FBQyx1QkFBdUIsQ0FBQzthQUNuQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBFc1Jlc2l6ZWRFdmVudERpcmVjdGl2ZSB9IGZyb20gJy4vZXMtcmVzaXplZC1ldmVudC5kaXJlY3RpdmUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtFc1Jlc2l6ZWRFdmVudERpcmVjdGl2ZV0sXG4gIGltcG9ydHM6IFtcbiAgXSxcbiAgZXhwb3J0czogW0VzUmVzaXplZEV2ZW50RGlyZWN0aXZlXVxufSlcbmV4cG9ydCBjbGFzcyBFc1Jlc2l6ZWRFdmVudE1vZHVsZSB7IH1cbiJdfQ==
@@ -1,12 +1,7 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: public_api.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- /*
7
- * Public API Surface of resized-event
8
- */
9
- export { EsResizedEvent } from './lib/es-resized-event';
10
- export { EsResizedEventDirective } from './lib/es-resized-event.directive';
11
- export { EsResizedEventModule } from './lib/es-resized-event.module';
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9NaWNoYWwvRXVyb3NhdC9uaWwvcHJvamVjdHMvcmVzaXplZC1ldmVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsK0JBQWMsd0JBQXdCLENBQUM7QUFDdkMsd0NBQWMsa0NBQWtDLENBQUM7QUFDakQscUNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgcmVzaXplZC1ldmVudFxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2VzLXJlc2l6ZWQtZXZlbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9lcy1yZXNpemVkLWV2ZW50LmRpcmVjdGl2ZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2VzLXJlc2l6ZWQtZXZlbnQubW9kdWxlJztcclxuIl19
1
+ /*
2
+ * Public API Surface of resized-event
3
+ */
4
+ export * from './lib/es-resized-event';
5
+ export * from './lib/es-resized-event.directive';
6
+ export * from './lib/es-resized-event.module';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3Jlc2l6ZWQtZXZlbnQvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgcmVzaXplZC1ldmVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2VzLXJlc2l6ZWQtZXZlbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZXMtcmVzaXplZC1ldmVudC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZXMtcmVzaXplZC1ldmVudC5tb2R1bGUnO1xuIl19
@@ -1,4 +1,4 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
@@ -1,142 +1,68 @@
1
1
  import { EventEmitter, Directive, ElementRef, Output, NgModule } from '@angular/core';
2
2
  import ResizeSensor from 'css-element-queries/src/ResizeSensor';
3
3
 
4
- /**
5
- * @fileoverview added by tsickle
6
- * Generated from: lib/es-resized-event.ts
7
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8
- */
9
- class EsResizedEvent {
10
- /**
11
- * @param {?} element
12
- * @param {?} newWidth
13
- * @param {?} newHeight
14
- * @param {?} oldWidth
15
- * @param {?} oldHeight
16
- */
17
- constructor(element, newWidth, newHeight, oldWidth, oldHeight) {
18
- this.element = element;
19
- this.newWidth = newWidth;
20
- this.newHeight = newHeight;
21
- this.oldWidth = oldWidth;
22
- this.oldHeight = oldHeight;
23
- }
24
- }
25
- if (false) {
26
- /** @type {?} */
27
- EsResizedEvent.prototype.element;
28
- /** @type {?} */
29
- EsResizedEvent.prototype.newWidth;
30
- /** @type {?} */
31
- EsResizedEvent.prototype.newHeight;
32
- /** @type {?} */
33
- EsResizedEvent.prototype.oldWidth;
34
- /** @type {?} */
35
- EsResizedEvent.prototype.oldHeight;
4
+ class EsResizedEvent {
5
+ constructor(element, newWidth, newHeight, oldWidth, oldHeight) {
6
+ this.element = element;
7
+ this.newWidth = newWidth;
8
+ this.newHeight = newHeight;
9
+ this.oldWidth = oldWidth;
10
+ this.oldHeight = oldHeight;
11
+ }
36
12
  }
37
13
 
38
- /**
39
- * @fileoverview added by tsickle
40
- * Generated from: lib/es-resized-event.directive.ts
41
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
42
- */
43
- class EsResizedEventDirective {
44
- /**
45
- * @param {?} element
46
- */
47
- constructor(element) {
48
- this.element = element;
49
- this.resized = new EventEmitter();
50
- }
51
- /**
52
- * @return {?}
53
- */
54
- ngOnInit() {
55
- // tslint:disable-next-line:no-unused-expression
56
- new ResizeSensor(this.element.nativeElement, (/**
57
- * @param {?} x
58
- * @return {?}
59
- */
60
- x => this.onResized()));
61
- this.onResized();
62
- }
63
- /**
64
- * @private
65
- * @return {?}
66
- */
67
- onResized() {
68
- /** @type {?} */
69
- const newWidth = this.element.nativeElement.clientWidth;
70
- /** @type {?} */
71
- const newHeight = this.element.nativeElement.clientHeight;
72
- if (newWidth === this.oldWidth && newHeight === this.oldHeight) {
73
- return;
74
- }
75
- /** @type {?} */
76
- const event = new EsResizedEvent(this.element, newWidth, newHeight, this.oldWidth, this.oldHeight);
77
- this.oldWidth = this.element.nativeElement.clientWidth;
78
- this.oldHeight = this.element.nativeElement.clientHeight;
79
- this.resized.next(event);
80
- }
81
- }
82
- EsResizedEventDirective.decorators = [
83
- { type: Directive, args: [{
84
- // tslint:disable-next-line:directive-selector
85
- selector: '[resized]'
86
- },] }
87
- ];
88
- /** @nocollapse */
89
- EsResizedEventDirective.ctorParameters = () => [
90
- { type: ElementRef }
91
- ];
92
- EsResizedEventDirective.propDecorators = {
93
- resized: [{ type: Output, args: ['resized',] }]
94
- };
95
- if (false) {
96
- /** @type {?} */
97
- EsResizedEventDirective.prototype.resized;
98
- /**
99
- * @type {?}
100
- * @private
101
- */
102
- EsResizedEventDirective.prototype.oldWidth;
103
- /**
104
- * @type {?}
105
- * @private
106
- */
107
- EsResizedEventDirective.prototype.oldHeight;
108
- /**
109
- * @type {?}
110
- * @private
111
- */
112
- EsResizedEventDirective.prototype.element;
14
+ class EsResizedEventDirective {
15
+ constructor(element) {
16
+ this.element = element;
17
+ this.resized = new EventEmitter();
18
+ }
19
+ ngOnInit() {
20
+ // tslint:disable-next-line:no-unused-expression
21
+ new ResizeSensor(this.element.nativeElement, x => this.onResized());
22
+ this.onResized();
23
+ }
24
+ onResized() {
25
+ const newWidth = this.element.nativeElement.clientWidth;
26
+ const newHeight = this.element.nativeElement.clientHeight;
27
+ if (newWidth === this.oldWidth && newHeight === this.oldHeight) {
28
+ return;
29
+ }
30
+ const event = new EsResizedEvent(this.element, newWidth, newHeight, this.oldWidth, this.oldHeight);
31
+ this.oldWidth = this.element.nativeElement.clientWidth;
32
+ this.oldHeight = this.element.nativeElement.clientHeight;
33
+ this.resized.next(event);
34
+ }
113
35
  }
36
+ EsResizedEventDirective.decorators = [
37
+ { type: Directive, args: [{
38
+ // tslint:disable-next-line:directive-selector
39
+ selector: '[resized]'
40
+ },] }
41
+ ];
42
+ /** @nocollapse */
43
+ EsResizedEventDirective.ctorParameters = () => [
44
+ { type: ElementRef }
45
+ ];
46
+ EsResizedEventDirective.propDecorators = {
47
+ resized: [{ type: Output, args: ['resized',] }]
48
+ };
114
49
 
115
- /**
116
- * @fileoverview added by tsickle
117
- * Generated from: lib/es-resized-event.module.ts
118
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
119
- */
120
- class EsResizedEventModule {
121
- }
122
- EsResizedEventModule.decorators = [
123
- { type: NgModule, args: [{
124
- declarations: [EsResizedEventDirective],
125
- imports: [],
126
- exports: [EsResizedEventDirective]
127
- },] }
50
+ class EsResizedEventModule {
51
+ }
52
+ EsResizedEventModule.decorators = [
53
+ { type: NgModule, args: [{
54
+ declarations: [EsResizedEventDirective],
55
+ imports: [],
56
+ exports: [EsResizedEventDirective]
57
+ },] }
128
58
  ];
129
59
 
130
- /**
131
- * @fileoverview added by tsickle
132
- * Generated from: public_api.ts
133
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
60
+ /*
61
+ * Public API Surface of resized-event
134
62
  */
135
63
 
136
- /**
137
- * @fileoverview added by tsickle
138
- * Generated from: eurosat-resized-event.ts
139
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
64
+ /**
65
+ * Generated bundle index. Do not edit.
140
66
  */
141
67
 
142
68
  export { EsResizedEvent, EsResizedEventDirective, EsResizedEventModule };
@@ -1 +1 @@
1
- {"version":3,"file":"eurosat-resized-event.js","sources":["../../../projects/resized-event/src/lib/es-resized-event.ts","../../../projects/resized-event/src/lib/es-resized-event.directive.ts","../../../projects/resized-event/src/lib/es-resized-event.module.ts"],"sourcesContent":["import { ElementRef } from '@angular/core';\r\n\r\nexport class EsResizedEvent {\r\n constructor(\r\n readonly element: ElementRef,\r\n readonly newWidth: number,\r\n readonly newHeight: number,\r\n readonly oldWidth: number,\r\n readonly oldHeight: number\r\n ) {}\r\n}\r\n","import { Directive, ElementRef, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport {EsResizedEvent} from './es-resized-event';\r\nimport ResizeSensor from 'css-element-queries/src/ResizeSensor';\r\n\r\n\r\n@Directive({\r\n // tslint:disable-next-line:directive-selector\r\n selector: '[resized]'\r\n})\r\nexport class EsResizedEventDirective implements OnInit {\r\n\r\n @Output('resized')\r\n readonly resized = new EventEmitter<EsResizedEvent>();\r\n\r\n private oldWidth: number;\r\n private oldHeight: number;\r\n\r\n constructor(private readonly element: ElementRef) {\r\n }\r\n\r\n ngOnInit(): void {\r\n // tslint:disable-next-line:no-unused-expression\r\n new ResizeSensor(this.element.nativeElement, x => this.onResized());\r\n this.onResized();\r\n }\r\n\r\n private onResized(): void {\r\n const newWidth = this.element.nativeElement.clientWidth;\r\n const newHeight = this.element.nativeElement.clientHeight;\r\n\r\n if (newWidth === this.oldWidth && newHeight === this.oldHeight) {\r\n return;\r\n }\r\n\r\n const event = new EsResizedEvent(\r\n this.element,\r\n newWidth,\r\n newHeight,\r\n this.oldWidth,\r\n this.oldHeight);\r\n\r\n this.oldWidth = this.element.nativeElement.clientWidth;\r\n this.oldHeight = this.element.nativeElement.clientHeight;\r\n\r\n this.resized.next(event);\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { EsResizedEventDirective } from './es-resized-event.directive';\r\n\r\n@NgModule({\r\n declarations: [EsResizedEventDirective],\r\n imports: [\r\n ],\r\n exports: [EsResizedEventDirective]\r\n})\r\nexport class EsResizedEventModule { }\r\n"],"names":[],"mappings":";;;;;;;;MAEa,cAAc;;;;;;;;IACvB,YACa,OAAmB,EACnB,QAAgB,EAChB,SAAiB,EACjB,QAAgB,EAChB,SAAiB;QAJjB,YAAO,GAAP,OAAO,CAAY;QACnB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,GAAT,SAAS,CAAQ;QACjB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,G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AAQ,SAAC;gBACR,YAAY,EAAE,CAAC,uBAAuB,CAAC;gBACvC,OAAO,EAAE,EACR;gBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;aACnC;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"eurosat-resized-event.js","sources":["../../../projects/resized-event/src/lib/es-resized-event.ts","../../../projects/resized-event/src/lib/es-resized-event.directive.ts","../../../projects/resized-event/src/lib/es-resized-event.module.ts","../../../projects/resized-event/src/public_api.ts","../../../projects/resized-event/src/eurosat-resized-event.ts"],"sourcesContent":["import { ElementRef } from '@angular/core';\n\nexport class EsResizedEvent {\n constructor(\n readonly element: ElementRef,\n readonly newWidth: number,\n readonly newHeight: number,\n readonly oldWidth: number,\n readonly oldHeight: number\n ) {}\n}\n","import { Directive, ElementRef, EventEmitter, Output, OnInit } from '@angular/core';\nimport {EsResizedEvent} from './es-resized-event';\nimport ResizeSensor from 'css-element-queries/src/ResizeSensor';\n\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[resized]'\n})\nexport class EsResizedEventDirective implements OnInit {\n\n @Output('resized')\n readonly resized = new EventEmitter<EsResizedEvent>();\n\n private oldWidth: number;\n private oldHeight: number;\n\n constructor(private readonly element: ElementRef) {\n }\n\n ngOnInit(): void {\n // tslint:disable-next-line:no-unused-expression\n new ResizeSensor(this.element.nativeElement, x => this.onResized());\n this.onResized();\n }\n\n private onResized(): void {\n const newWidth = this.element.nativeElement.clientWidth;\n const newHeight = this.element.nativeElement.clientHeight;\n\n if (newWidth === this.oldWidth && newHeight === this.oldHeight) {\n return;\n }\n\n const event = new EsResizedEvent(\n this.element,\n newWidth,\n newHeight,\n this.oldWidth,\n this.oldHeight);\n\n this.oldWidth = this.element.nativeElement.clientWidth;\n this.oldHeight = this.element.nativeElement.clientHeight;\n\n this.resized.next(event);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { EsResizedEventDirective } from './es-resized-event.directive';\n\n@NgModule({\n declarations: [EsResizedEventDirective],\n imports: [\n ],\n exports: [EsResizedEventDirective]\n})\nexport class EsResizedEventModule { }\n","/*\n * Public API Surface of resized-event\n */\n\nexport * from './lib/es-resized-event';\nexport * from './lib/es-resized-event.directive';\nexport * from './lib/es-resized-event.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;MAEa,cAAc;IACvB,YACa,OAAmB,EACnB,QAAgB,EAChB,SAAiB,EACjB,QAAgB,EAChB,SAAiB;QAJjB,YAAO,GAAP,OAAO,CAAY;QACnB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,GAAT,SAAS,CAAQ;QACjB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,GAAT,SAAS,CAAQ;KAC1B;;;MCAK,uBAAuB;IAQhC,YAA6B,OAAmB;QAAnB,YAAO,GAAP,OAAO,CAAY;QALvC,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;KAMrD;IAED,QAAQ;;QAEJ,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,SAAS,EAAE,CAAC;KACpB;IAEO,SAAS;QACb,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC;QACxD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC;QAE1D,IAAI,QAAQ,KAAK,IAAI,CAAC,QAAQ,IAAI,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE;YAC5D,OAAO;SACV;QAED,MAAM,KAAK,GAAG,IAAI,cAAc,CAC5B,IAAI,CAAC,OAAO,EACZ,QAAQ,EACR,SAAS,EACT,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,SAAS,CAAC,CAAC;QAEpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC;QACvD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC;QAEzD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5B;;;YAxCJ,SAAS,SAAC;;gBAEP,QAAQ,EAAE,WAAW;aACxB;;;;YARmB,UAAU;;;sBAWzB,MAAM,SAAC,SAAS;;;MCFR,oBAAoB;;;YANhC,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,uBAAuB,CAAC;gBACvC,OAAO,EAAE,EACR;gBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;aACnC;;;ACRD;;;;ACAA;;;;;;"}
@@ -1,9 +1,9 @@
1
- import { ElementRef } from '@angular/core';
2
- export declare class EsResizedEvent {
3
- readonly element: ElementRef;
4
- readonly newWidth: number;
5
- readonly newHeight: number;
6
- readonly oldWidth: number;
7
- readonly oldHeight: number;
8
- constructor(element: ElementRef, newWidth: number, newHeight: number, oldWidth: number, oldHeight: number);
9
- }
1
+ import { ElementRef } from '@angular/core';
2
+ export declare class EsResizedEvent {
3
+ readonly element: ElementRef;
4
+ readonly newWidth: number;
5
+ readonly newHeight: number;
6
+ readonly oldWidth: number;
7
+ readonly oldHeight: number;
8
+ constructor(element: ElementRef, newWidth: number, newHeight: number, oldWidth: number, oldHeight: number);
9
+ }
@@ -1,11 +1,11 @@
1
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { EsResizedEvent } from './es-resized-event';
3
- export declare class EsResizedEventDirective implements OnInit {
4
- private readonly element;
5
- readonly resized: EventEmitter<EsResizedEvent>;
6
- private oldWidth;
7
- private oldHeight;
8
- constructor(element: ElementRef);
9
- ngOnInit(): void;
10
- private onResized;
11
- }
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { EsResizedEvent } from './es-resized-event';
3
+ export declare class EsResizedEventDirective implements OnInit {
4
+ private readonly element;
5
+ readonly resized: EventEmitter<EsResizedEvent>;
6
+ private oldWidth;
7
+ private oldHeight;
8
+ constructor(element: ElementRef);
9
+ ngOnInit(): void;
10
+ private onResized;
11
+ }
@@ -1,2 +1,2 @@
1
- export declare class EsResizedEventModule {
2
- }
1
+ export declare class EsResizedEventModule {
2
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@eurosat/resized-event",
3
- "version": "10.0.0",
3
+ "version": "12.0.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^10.2.5",
6
- "@angular/core": "^10.2.5",
5
+ "@angular/common": "^12.2.16",
6
+ "@angular/core": "^12.2.16",
7
7
  "css-element-queries": "^1.2.3"
8
8
  },
9
9
  "dependencies": {
@@ -17,4 +17,4 @@
17
17
  "typings": "eurosat-resized-event.d.ts",
18
18
  "metadata": "eurosat-resized-event.metadata.json",
19
19
  "sideEffects": false
20
- }
20
+ }
package/public_api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './lib/es-resized-event';
2
- export * from './lib/es-resized-event.directive';
3
- export * from './lib/es-resized-event.module';
1
+ export * from './lib/es-resized-event';
2
+ export * from './lib/es-resized-event.directive';
3
+ export * from './lib/es-resized-event.module';