ng-tailwind 2.24.329 → 2.24.330
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 +4 -5
- package/bundles/ng-tailwind.umd.js.map +1 -1
- package/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts +2 -1
- package/esm2015/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.js +5 -6
- package/fesm2015/ng-tailwind.js +4 -5
- package/fesm2015/ng-tailwind.js.map +1 -1
- package/ng-tailwind.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6937,10 +6937,7 @@
|
|
|
6937
6937
|
|
|
6938
6938
|
var NgtDropzoneFileViewerComponent = /** @class */ (function () {
|
|
6939
6939
|
function NgtDropzoneFileViewerComponent() {
|
|
6940
|
-
this.url = '';
|
|
6941
|
-
this.fileName = '';
|
|
6942
6940
|
this.onClose = new core.EventEmitter();
|
|
6943
|
-
this.canShowViewer = false;
|
|
6944
6941
|
}
|
|
6945
6942
|
NgtDropzoneFileViewerComponent.prototype.keyEvent = function (event) {
|
|
6946
6943
|
var _this = this;
|
|
@@ -6952,6 +6949,7 @@
|
|
|
6952
6949
|
}
|
|
6953
6950
|
};
|
|
6954
6951
|
NgtDropzoneFileViewerComponent.prototype.init = function () {
|
|
6952
|
+
this.loading = true;
|
|
6955
6953
|
this.canShowViewer = true;
|
|
6956
6954
|
this.initReloadInterval();
|
|
6957
6955
|
};
|
|
@@ -6976,6 +6974,7 @@
|
|
|
6976
6974
|
}
|
|
6977
6975
|
else {
|
|
6978
6976
|
clearInterval(reloadInterval);
|
|
6977
|
+
_this.loading = false;
|
|
6979
6978
|
}
|
|
6980
6979
|
});
|
|
6981
6980
|
}, 1000);
|
|
@@ -6985,8 +6984,8 @@
|
|
|
6985
6984
|
NgtDropzoneFileViewerComponent.decorators = [
|
|
6986
6985
|
{ type: core.Component, args: [{
|
|
6987
6986
|
selector: 'ngt-dropzone-file-viewer',
|
|
6988
|
-
template: "<div style=\"width:100%; height: 100%;\">\n <div style=\"width:100%; height: 100%;\">\n <div class=\"w-full py-5 pr-10\">\n <div class=\"w-full flex justify-end text-2xl\">\n <div class=\"cursor-pointer\" (click)=\"downloadFile()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\">\n <path fill=\"#fff\" d=\"M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z\" />\n </svg>\n </div>\n \n <div class=\"cursor-pointer\" (click)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path fill=\"#fff\"\n d=\"M24 2.42l-2.42 -2.42 -9.58 9.58 -9.58 -9.58 -2.42 2.42 9.58 9.58 -9.58 9.58 2.42 2.42 9.58 -9.58 9.58 9.58 2.42 -2.42 -9.58 -9.58 9.58 -9.58z\" />\n </svg>\n </div>\n\n </div>\n <div class=\"w-full justify-center text-center text-2xl font-mono text-white\">\n {{ fileName }}\n </div>\n </div>\n <div class=\"px-10\" style=\"width:100%; height: 83%;\" *ngIf=\"canShowViewer\">\n <ngx-doc-viewer class=\"h-full w-full\" [url]=\"url\">\n </ngx-doc-viewer>\n </div>\n </div>\n</div>",
|
|
6989
|
-
styles: [":host{background:rgba(0,0,0,.5);color:#fff;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10000000}"]
|
|
6987
|
+
template: "<div style=\"width:100%; height: 100%;\">\n <div style=\"width:100%; height: 100%;\">\n <div class=\"w-full py-5 pr-10\">\n <div class=\"w-full flex justify-end text-2xl\">\n <div class=\"cursor-pointer\" (click)=\"downloadFile()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\">\n <path fill=\"#fff\" d=\"M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z\" />\n </svg>\n </div>\n \n <div class=\"cursor-pointer\" (click)=\"close()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path fill=\"#fff\"\n d=\"M24 2.42l-2.42 -2.42 -9.58 9.58 -9.58 -9.58 -2.42 2.42 9.58 9.58 -9.58 9.58 2.42 2.42 9.58 -9.58 9.58 9.58 2.42 -2.42 -9.58 -9.58 9.58 -9.58z\" />\n </svg>\n </div>\n\n </div>\n <div class=\"w-full justify-center text-center text-2xl font-mono text-white\">\n {{ fileName }}\n </div>\n </div>\n <div class=\"px-10\" style=\"width:100%; height: 83%;\" *ngIf=\"canShowViewer\">\n <ngx-doc-viewer class=\"h-full w-full\" [url]=\"url\">\n </ngx-doc-viewer>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"loading\" class=\"flex fixed inset-0 justify-center items-center w-full h-full cursor-wait z-50\">\n <div class=\"div-loader\"></div>\n</div>",
|
|
6988
|
+
styles: [":host{background:rgba(0,0,0,.5);color:#fff;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10000000}.div-loader{width:5rem;height:5rem;border:5px solid #89c43f38;border-top-color:#89c43f;border-radius:50%;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}"]
|
|
6990
6989
|
},] }
|
|
6991
6990
|
];
|
|
6992
6991
|
NgtDropzoneFileViewerComponent.propDecorators = {
|