@banta/sdk 4.6.11 → 4.6.14
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.
- package/bundles/banta-sdk.umd.js +7 -7
- package/bundles/banta-sdk.umd.js.map +1 -1
- package/bundles/banta-sdk.umd.min.js +1 -1
- package/bundles/banta-sdk.umd.min.js.map +1 -1
- package/esm2015/lib/comments/banta-comments/banta-comments.component.js +8 -4
- package/fesm2015/banta-sdk.js +7 -3
- package/fesm2015/banta-sdk.js.map +1 -1
- package/lib/comments/banta-comments/banta-comments.component.d.ts +1 -1
- package/package.json +1 -1
package/bundles/banta-sdk.umd.js
CHANGED
|
@@ -9224,6 +9224,7 @@
|
|
|
9224
9224
|
this.activatedRoute = activatedRoute;
|
|
9225
9225
|
this.matSnackBar = matSnackBar;
|
|
9226
9226
|
this.ngZone = ngZone;
|
|
9227
|
+
this.isMobileSized = false;
|
|
9227
9228
|
this.viewReady = new Promise(function (r) { return _this.markViewReady = r; });
|
|
9228
9229
|
// Loading Screen
|
|
9229
9230
|
this._loadingMessage = '';
|
|
@@ -9381,19 +9382,17 @@
|
|
|
9381
9382
|
}
|
|
9382
9383
|
}
|
|
9383
9384
|
};
|
|
9384
|
-
Object.defineProperty(BantaCommentsComponent.prototype, "isMobileSized", {
|
|
9385
|
-
get: function () { return this.width < 500; },
|
|
9386
|
-
enumerable: false,
|
|
9387
|
-
configurable: true
|
|
9388
|
-
});
|
|
9389
9385
|
BantaCommentsComponent.prototype.ngAfterViewInit = function () {
|
|
9390
9386
|
var _this = this;
|
|
9391
9387
|
if (typeof window !== 'undefined') {
|
|
9392
9388
|
var callback = function () {
|
|
9393
9389
|
var size = _this.elementRef.nativeElement.getBoundingClientRect();
|
|
9394
9390
|
_this.ngZone.run(function () {
|
|
9395
|
-
|
|
9396
|
-
|
|
9391
|
+
setTimeout(function () {
|
|
9392
|
+
_this.width = size.width;
|
|
9393
|
+
_this.height = size.height;
|
|
9394
|
+
_this.isMobileSized = _this.width < 500;
|
|
9395
|
+
});
|
|
9397
9396
|
});
|
|
9398
9397
|
};
|
|
9399
9398
|
if (typeof ResizeObserver !== 'undefined') {
|
|
@@ -9405,6 +9404,7 @@
|
|
|
9405
9404
|
setTimeout(function () {
|
|
9406
9405
|
_this.width = _this.elementRef.nativeElement.clientWidth;
|
|
9407
9406
|
_this.height = _this.elementRef.nativeElement.clientHeight;
|
|
9407
|
+
_this.isMobileSized = _this.width < 500;
|
|
9408
9408
|
}, 1000);
|
|
9409
9409
|
}
|
|
9410
9410
|
callback();
|