ng-ipa-library 0.3.8 → 0.4.2
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-ipa-library.umd.js +8 -2
- package/bundles/ng-ipa-library.umd.js.map +1 -1
- package/esm2015/lib/ipa-form/file-upload/file-upload.component.js +3 -3
- package/esm2015/lib/services/breadcrumbs.service.js +7 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/ng-ipa-library.js +8 -2
- package/fesm2015/ng-ipa-library.js.map +1 -1
- package/lib/services/breadcrumbs.service.d.ts +1 -0
- package/package.json +3 -3
- package/public-api.d.ts +2 -0
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
this.maxFileSize = 2;
|
|
462
462
|
this.method = 'POST';
|
|
463
463
|
this.autoUpload = false;
|
|
464
|
-
this.apiUrl = '';
|
|
464
|
+
this.apiUrl = 'apiUrl';
|
|
465
465
|
this.successUpload = new i0.EventEmitter();
|
|
466
466
|
this.fileAdded = new i0.EventEmitter();
|
|
467
467
|
this.fileDeleted = new i0.EventEmitter();
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
return FileUploadComponent;
|
|
536
536
|
}());
|
|
537
537
|
FileUploadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: FileUploadComponent, deps: [{ token: i1__namespace.ToastrService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
538
|
-
FileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: FileUploadComponent, selector: "ipa-file-upload", inputs: { label: "label", acceptedFiles: "acceptedFiles", multiple: "multiple", maxFileSize: "maxFileSize", method: "method", autoUpload: "autoUpload", apiUrl: "apiUrl", authorization: "authorization" }, outputs: { successUpload: "successUpload", fileAdded: "fileAdded", fileDeleted: "fileDeleted" }, viewQueries: [{ propertyName: "dropzoneDir", first: true, predicate: i2$2.DropzoneDirective, descendants: true }], ngImport: i0__namespace, template: "<div class=\"file-upload\">\n <div class=\"upload-overlay\" [dropzone]=\"config\" (error)=\"onUploadError($event)\"\n (queueComplete)=\"operationCompleted($event)\" (success)=\"onUploadSuccess($event)\" (dragenter)=\"dragEnter = true\"\n (dragLeave)=\"dragEnter = false\" (drop)=\"dragEnter = false\" (dragEnd)=\"dragEnter = false\"\n [class.active-border]=\"dragEnter\" (sending)=\"sending($event)\" (reset)=\"reset($event)\"\n (addedFile)=\"fileWasAdded($event)\">\n </div>\n <div class=\"upload-btn-wrapper\">\n <div>\n <div class=\"subtitle mb-2\">\n {{label}}\n </div>\n <hr>\n <span style=\"font-size: 12px;\">\u0642\u0645 \u0628\u0633\u062D\u0628 \u0627\u0644\u0645\u0644\u0641 \u0623\u0648 \u0627\u0636\u063A\u0637 \u0647\u0646\u0627</span>\n <i class=\"fas fa-upload upload-icon mr-2\"></i>\n </div>\n <div *ngIf=\"acceptedFiles.length > 0\" class=\"allowed-extensions\">\n \u0627\u0644\u0635\u064A\u063A\u0629 \u0627\u0644\u0645\u0633\u0645\u0648\u062D \u0628\u0647\u0627:\n <span class=\"extensions\">{{ acceptedFiles }}</span>\n </div>\n <div class=\"allowed-extensions\">\n \u0627\u0642\u0635\u0649 \u062D\u062C\u0645 \u0644\u0644\u0645\u0631\u0641\u0642:\n <span class=\"extensions\">{{ maxFileSize }} MB</span>\n </div>\n </div>\n</div>\n<div id=\"attachment-status\" style=\"text-align: center; margin-top:10px;\">\n <span style=\"font-size: 14px; margin: auto; font-weight:bold;\" *ngFor=\"let file of currentFiles\">\n {{ file.name }} <i (click)=\"deleteFile(file)\" class=\"fas fa-trash\"\n style=\"color:firebrick; cursor: pointer;\"></i>\n </span>\n <ul class=\"list-unstyled\">\n <li class=\"text-danger\" style=\"font-size: 12px;\" *ngFor=\"let error of errors\">{{error}}</li>\n </ul>\n</div>", styles: [".subtitle{border-bottom:none;display:block;line-height:2}.file-upload{border:1px dashed #ccc;display:block;min-height:150px;border-radius:15px;width:350px;cursor:pointer;z-index:9999;position:relative;margin:auto}.upload-overlay{position:absolute;width:100%;height:100%}.upload-btn-wrapper{text-align:center}.upload-icon{margin-right:5px}.list-unstyled{margin:10px!important;padding:14px!important;list-style:none}"], directives: [{ type: i2__namespace$2.DropzoneDirective, selector: "[dropzone]", inputs: ["disabled", "dropzone"], outputs: ["init", "error", "success", "sending", "canceled", "complete", "processing", "drop", "dragStart", "dragEnd", "dragEnter", "dragOver", "dragLeave", "thumbnail", "addedFile", "addedFiles", "removedFile", "uploadProgress", "maxFilesReached", "maxFilesExceeded", "errorMultiple", "successMultiple", "sendingMultiple", "canceledMultiple", "completeMultiple", "processingMultiple", "reset", "queueComplete", "totalUploadProgress"], exportAs: ["ngxDropzone"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
538
|
+
FileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: FileUploadComponent, selector: "ipa-file-upload", inputs: { label: "label", acceptedFiles: "acceptedFiles", multiple: "multiple", maxFileSize: "maxFileSize", method: "method", autoUpload: "autoUpload", apiUrl: "apiUrl", authorization: "authorization" }, outputs: { successUpload: "successUpload", fileAdded: "fileAdded", fileDeleted: "fileDeleted" }, viewQueries: [{ propertyName: "dropzoneDir", first: true, predicate: i2$2.DropzoneDirective, descendants: true }], ngImport: i0__namespace, template: "<div class=\"file-upload\">\n <div class=\"upload-overlay\" [dropzone]=\"config\" (error)=\"onUploadError($event)\"\n (queueComplete)=\"operationCompleted($event)\" (success)=\"onUploadSuccess($event)\" (dragenter)=\"dragEnter = true\"\n (dragLeave)=\"dragEnter = false\" (drop)=\"dragEnter = false\" (dragEnd)=\"dragEnter = false\"\n [class.active-border]=\"dragEnter\" (sending)=\"sending($event)\" (reset)=\"reset($event)\"\n (addedFile)=\"fileWasAdded($event)\">\n </div>\n <div class=\"upload-btn-wrapper\">\n <div>\n <div class=\"subtitle mb-2\">\n {{label}}\n </div>\n <hr>\n <span style=\"font-size: 12px;\">\u0642\u0645 \u0628\u0633\u062D\u0628 \u0627\u0644\u0645\u0644\u0641 \u0623\u0648 \u0627\u0636\u063A\u0637 \u0647\u0646\u0627</span>\n <i class=\"fas fa-upload upload-icon mr-2\"></i>\n </div>\n <div *ngIf=\"acceptedFiles.length > 0\" class=\"allowed-extensions\">\n \u0627\u0644\u0635\u064A\u063A\u0629 \u0627\u0644\u0645\u0633\u0645\u0648\u062D \u0628\u0647\u0627:\n <span class=\"extensions\">{{ acceptedFiles }}</span>\n </div>\n <div class=\"allowed-extensions\">\n \u0627\u0642\u0635\u0649 \u062D\u062C\u0645 \u0644\u0644\u0645\u0631\u0641\u0642:\n <span class=\"extensions\">{{ maxFileSize }} MB</span>\n </div>\n </div>\n</div>\n<div id=\"attachment-status\" style=\"text-align: center; margin-top:10px;\">\n <span style=\"font-size: 14px; margin: auto; font-weight:bold;\" *ngFor=\"let file of currentFiles\">\n {{ file.name }} <i (click)=\"deleteFile(file)\" class=\"fas fa-trash\"\n style=\"color:firebrick; cursor: pointer;\"></i>\n <br>\n </span>\n <ul class=\"list-unstyled\">\n <li class=\"text-danger\" style=\"font-size: 12px;\" *ngFor=\"let error of errors\">{{error}}</li>\n </ul>\n</div>", styles: [".subtitle{border-bottom:none;display:block;line-height:2}.file-upload{border:1px dashed #ccc;display:block;min-height:150px;border-radius:15px;width:350px;cursor:pointer;z-index:9999;position:relative;margin:auto}.upload-overlay{position:absolute;width:100%;height:100%}.upload-btn-wrapper{text-align:center}.upload-icon{margin-right:5px}.list-unstyled{margin:10px!important;padding:14px!important;list-style:none}"], directives: [{ type: i2__namespace$2.DropzoneDirective, selector: "[dropzone]", inputs: ["disabled", "dropzone"], outputs: ["init", "error", "success", "sending", "canceled", "complete", "processing", "drop", "dragStart", "dragEnd", "dragEnter", "dragOver", "dragLeave", "thumbnail", "addedFile", "addedFiles", "removedFile", "uploadProgress", "maxFilesReached", "maxFilesExceeded", "errorMultiple", "successMultiple", "sendingMultiple", "canceledMultiple", "completeMultiple", "processingMultiple", "reset", "queueComplete", "totalUploadProgress"], exportAs: ["ngxDropzone"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
539
539
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: FileUploadComponent, decorators: [{
|
|
540
540
|
type: i0.Component,
|
|
541
541
|
args: [{
|
|
@@ -1632,6 +1632,12 @@
|
|
|
1632
1632
|
var BreadcrumbsService = /** @class */ (function () {
|
|
1633
1633
|
function BreadcrumbsService() {
|
|
1634
1634
|
}
|
|
1635
|
+
BreadcrumbsService.prototype.setPageTitle = function (text) {
|
|
1636
|
+
var titleEl = document.querySelector('.sub-section-title');
|
|
1637
|
+
if (titleEl) {
|
|
1638
|
+
titleEl.textContent = text;
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1635
1641
|
BreadcrumbsService.prototype.addBreadcrumb = function (nodeName, spanClasses, linkClasses) {
|
|
1636
1642
|
var _g;
|
|
1637
1643
|
if (spanClasses === void 0) { spanClasses = 'bc-current'; }
|