ng-tailwind 2.24.328 → 2.24.329
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/ng-tailwind.umd.js +16 -1
- package/bundles/ng-tailwind.umd.js.map +1 -1
- package/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts +3 -1
- package/esm2015/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.js +18 -3
- package/fesm2015/ng-tailwind.js +16 -2
- package/fesm2015/ng-tailwind.js.map +1 -1
- package/ng-tailwind.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6953,6 +6953,7 @@
|
|
|
6953
6953
|
};
|
|
6954
6954
|
NgtDropzoneFileViewerComponent.prototype.init = function () {
|
|
6955
6955
|
this.canShowViewer = true;
|
|
6956
|
+
this.initReloadInterval();
|
|
6956
6957
|
};
|
|
6957
6958
|
NgtDropzoneFileViewerComponent.prototype.close = function () {
|
|
6958
6959
|
this.canShowViewer = false;
|
|
@@ -6965,6 +6966,20 @@
|
|
|
6965
6966
|
file.setAttribute("download", this.fileName);
|
|
6966
6967
|
file.click();
|
|
6967
6968
|
};
|
|
6969
|
+
NgtDropzoneFileViewerComponent.prototype.initReloadInterval = function () {
|
|
6970
|
+
var _this = this;
|
|
6971
|
+
var reloadInterval = setInterval(function () {
|
|
6972
|
+
var _a;
|
|
6973
|
+
(_a = _this.ngxDocViewer) === null || _a === void 0 ? void 0 : _a.iframes.forEach(function (iframe) {
|
|
6974
|
+
if (iframe.nativeElement.contentDocument) {
|
|
6975
|
+
_this.ngxDocViewer.reloadIFrame(iframe.nativeElement);
|
|
6976
|
+
}
|
|
6977
|
+
else {
|
|
6978
|
+
clearInterval(reloadInterval);
|
|
6979
|
+
}
|
|
6980
|
+
});
|
|
6981
|
+
}, 1000);
|
|
6982
|
+
};
|
|
6968
6983
|
return NgtDropzoneFileViewerComponent;
|
|
6969
6984
|
}());
|
|
6970
6985
|
NgtDropzoneFileViewerComponent.decorators = [
|
|
@@ -6974,8 +6989,8 @@
|
|
|
6974
6989
|
styles: [":host{background:rgba(0,0,0,.5);color:#fff;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10000000}"]
|
|
6975
6990
|
},] }
|
|
6976
6991
|
];
|
|
6977
|
-
NgtDropzoneFileViewerComponent.ctorParameters = function () { return []; };
|
|
6978
6992
|
NgtDropzoneFileViewerComponent.propDecorators = {
|
|
6993
|
+
ngxDocViewer: [{ type: core.ViewChild, args: [ngxDocViewer.NgxDocViewerComponent,] }],
|
|
6979
6994
|
url: [{ type: core.Input }],
|
|
6980
6995
|
fileName: [{ type: core.Input }],
|
|
6981
6996
|
onClose: [{ type: core.Output }],
|