@dbg-riskit/angular-file 18.1.0 → 20.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.
- package/fesm2022/dbg-riskit-angular-file.mjs +124 -157
- package/fesm2022/dbg-riskit-angular-file.mjs.map +1 -1
- package/index.d.ts +175 -5
- package/package.json +10 -13
- package/esm2022/dbg-riskit-angular-file.mjs +0 -5
- package/esm2022/lib/abstract.file.download.directive.mjs +0 -139
- package/esm2022/lib/abstract.file.upload.component.mjs +0 -100
- package/esm2022/lib/binary.file.upload.component.mjs +0 -25
- package/esm2022/lib/binary.file.upload.service.mjs +0 -41
- package/esm2022/lib/csv.file.download.directive.mjs +0 -83
- package/esm2022/lib/csv.file.upload.component.mjs +0 -47
- package/esm2022/lib/csv.file.upload.service.mjs +0 -109
- package/esm2022/lib/download.menu.component.mjs +0 -34
- package/esm2022/lib/file.download.directive.mjs +0 -53
- package/esm2022/lib/file.module.mjs +0 -76
- package/esm2022/lib/file.size.pipe.mjs +0 -34
- package/esm2022/lib/file.types.mjs +0 -2
- package/esm2022/lib/text.file.upload.component.mjs +0 -26
- package/esm2022/lib/text.file.upload.service.mjs +0 -41
- package/esm2022/public_api.mjs +0 -15
- package/lib/abstract.file.download.directive.d.ts +0 -29
- package/lib/abstract.file.upload.component.d.ts +0 -32
- package/lib/binary.file.upload.component.d.ts +0 -13
- package/lib/binary.file.upload.service.d.ts +0 -8
- package/lib/csv.file.download.directive.d.ts +0 -22
- package/lib/csv.file.upload.component.d.ts +0 -15
- package/lib/csv.file.upload.service.d.ts +0 -9
- package/lib/download.menu.component.d.ts +0 -13
- package/lib/file.download.directive.d.ts +0 -17
- package/lib/file.module.d.ts +0 -16
- package/lib/file.size.pipe.d.ts +0 -13
- package/lib/file.types.d.ts +0 -32
- package/lib/text.file.upload.component.d.ts +0 -13
- package/lib/text.file.upload.service.d.ts +0 -8
- package/public_api.d.ts +0 -14
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { isEventObject, ObservableEventType, toString, ErrorType, base64encode, CONTENT_TYPE } from '@dbg-riskit/common';
|
|
7
|
-
import { saveAs } from 'file-saver';
|
|
2
|
+
import { inject, LOCALE_ID, Pipe, ElementRef, Input, Directive, Renderer2, EventEmitter, ViewChild, Output, Injectable, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { BaseComponent, DialogService, DateFormatter } from '@dbg-riskit/angular-view';
|
|
4
|
+
import { Logger, isEventObject, ObservableEventType, ErrorType, toString, base64encode, CONTENT_TYPE } from '@dbg-riskit/common';
|
|
5
|
+
import 'file-saver';
|
|
8
6
|
import { Observable, of, Subject, EMPTY, forkJoin, throwError } from 'rxjs';
|
|
9
7
|
import { takeUntil, take, map, tap, filter, catchError, finalize, first, switchMap } from 'rxjs/operators';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import * as i3$2 from '@angular/material/menu';
|
|
16
|
-
import * as i4$1 from '@angular/material/tooltip';
|
|
17
|
-
import { LoggingModule } from '@dbg-riskit/angular-logging';
|
|
8
|
+
import { DecimalPipe } from '@angular/common';
|
|
9
|
+
import { MatAnchor, MatButton } from '@angular/material/button';
|
|
10
|
+
import { MatIcon } from '@angular/material/icon';
|
|
11
|
+
import { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu';
|
|
12
|
+
import { MatTooltip } from '@angular/material/tooltip';
|
|
18
13
|
|
|
14
|
+
// Copyright 2017 The Kubernetes Authors.
|
|
15
|
+
//
|
|
16
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
// you may not use this file except in compliance with the License.
|
|
18
|
+
// You may obtain a copy of the License at
|
|
19
|
+
//
|
|
20
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
//
|
|
22
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
// See the License for the specific language governing permissions and
|
|
26
|
+
// limitations under the License.
|
|
19
27
|
class FileSizePipe {
|
|
20
|
-
constructor(
|
|
21
|
-
this.decimalPipe = decimalPipe;
|
|
28
|
+
constructor() {
|
|
22
29
|
this.base = 1024;
|
|
23
30
|
this.powerSuffixes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
|
|
31
|
+
this.decimalPipe = new DecimalPipe(inject(LOCALE_ID));
|
|
24
32
|
}
|
|
25
33
|
transform(value) {
|
|
26
34
|
if (value == null) {
|
|
@@ -39,21 +47,23 @@ class FileSizePipe {
|
|
|
39
47
|
const suffix = this.powerSuffixes[power];
|
|
40
48
|
return suffix ? `${formatted}${suffix}` : formatted;
|
|
41
49
|
}
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: FileSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
51
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: FileSizePipe, isStandalone: true, name: "riskFileSize" }); }
|
|
44
52
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: FileSizePipe, decorators: [{
|
|
46
54
|
type: Pipe,
|
|
47
|
-
args: [{
|
|
48
|
-
|
|
55
|
+
args: [{
|
|
56
|
+
name: 'riskFileSize'
|
|
57
|
+
}]
|
|
58
|
+
}] });
|
|
49
59
|
|
|
50
60
|
class AbstractFileDownloadDirective extends BaseComponent {
|
|
51
|
-
constructor(
|
|
52
|
-
super();
|
|
53
|
-
this.elementRef =
|
|
54
|
-
this.dialogService =
|
|
55
|
-
this.fileSizePipe =
|
|
56
|
-
this.logger =
|
|
61
|
+
constructor() {
|
|
62
|
+
super(...arguments);
|
|
63
|
+
this.elementRef = inject(ElementRef);
|
|
64
|
+
this.dialogService = inject(DialogService);
|
|
65
|
+
this.fileSizePipe = inject(FileSizePipe);
|
|
66
|
+
this.logger = inject(Logger);
|
|
57
67
|
}
|
|
58
68
|
isDisabled() {
|
|
59
69
|
if (this.elementRef.nativeElement.disabled === true) {
|
|
@@ -82,7 +92,7 @@ class AbstractFileDownloadDirective extends BaseComponent {
|
|
|
82
92
|
}
|
|
83
93
|
store(file) {
|
|
84
94
|
setTimeout(() => {
|
|
85
|
-
saveAs(file.content, file.filename || 'data.txt');
|
|
95
|
+
window.saveAs(file.content, file.filename || 'data.txt');
|
|
86
96
|
});
|
|
87
97
|
}
|
|
88
98
|
getDataObservable(data) {
|
|
@@ -167,19 +177,19 @@ class AbstractFileDownloadDirective extends BaseComponent {
|
|
|
167
177
|
createBlob(data, contentType) {
|
|
168
178
|
return new Blob(data, contentType);
|
|
169
179
|
}
|
|
170
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
171
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AbstractFileDownloadDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
181
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: AbstractFileDownloadDirective, isStandalone: true, inputs: { disabled: "disabled" }, usesInheritance: true, ngImport: i0 }); }
|
|
172
182
|
}
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AbstractFileDownloadDirective, decorators: [{
|
|
174
184
|
type: Directive
|
|
175
|
-
}],
|
|
185
|
+
}], propDecorators: { disabled: [{
|
|
176
186
|
type: Input
|
|
177
187
|
}] } });
|
|
178
188
|
|
|
179
189
|
class AbstractFileUploadComponent extends BaseComponent {
|
|
180
|
-
constructor(
|
|
181
|
-
super();
|
|
182
|
-
this.renderer =
|
|
190
|
+
constructor() {
|
|
191
|
+
super(...arguments);
|
|
192
|
+
this.renderer = inject(Renderer2);
|
|
183
193
|
this.error = new EventEmitter(true);
|
|
184
194
|
this.multiple = true;
|
|
185
195
|
this.filesLoaded = new EventEmitter(true);
|
|
@@ -236,12 +246,12 @@ class AbstractFileUploadComponent extends BaseComponent {
|
|
|
236
246
|
this.fileInputHidden = false;
|
|
237
247
|
});
|
|
238
248
|
}
|
|
239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
240
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AbstractFileUploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
250
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: AbstractFileUploadComponent, isStandalone: true, inputs: { label: "label", accept: "accept", multiple: "multiple", raised: "raised", color: "color", icon: "icon", disabled: "disabled" }, outputs: { error: "error", filesLoaded: "filesLoaded" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: MatAnchor, descendants: true, read: ElementRef }, { propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }, { propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
241
251
|
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AbstractFileUploadComponent, decorators: [{
|
|
243
253
|
type: Directive
|
|
244
|
-
}],
|
|
254
|
+
}], propDecorators: { error: [{
|
|
245
255
|
type: Output
|
|
246
256
|
}], label: [{
|
|
247
257
|
type: Input
|
|
@@ -300,35 +310,36 @@ class BinaryFileUploadService {
|
|
|
300
310
|
}
|
|
301
311
|
return forkJoin(fileOservables);
|
|
302
312
|
}
|
|
303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
304
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: BinaryFileUploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
314
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: BinaryFileUploadService, providedIn: 'root' }); }
|
|
305
315
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
307
|
-
type: Injectable
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: BinaryFileUploadService, decorators: [{
|
|
317
|
+
type: Injectable,
|
|
318
|
+
args: [{ providedIn: 'root' }]
|
|
308
319
|
}] });
|
|
309
320
|
|
|
310
321
|
class BinaryFileUploadComponent extends AbstractFileUploadComponent {
|
|
311
|
-
constructor(
|
|
312
|
-
super(
|
|
313
|
-
this.fileUploadService =
|
|
322
|
+
constructor() {
|
|
323
|
+
super(...arguments);
|
|
324
|
+
this.fileUploadService = inject(BinaryFileUploadService);
|
|
314
325
|
}
|
|
315
326
|
readFiles(fileList) {
|
|
316
327
|
return this.fileUploadService.readFiles(fileList);
|
|
317
328
|
}
|
|
318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
319
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: BinaryFileUploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
330
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: BinaryFileUploadComponent, isStandalone: true, selector: "risk-binary-file-upload", host: { properties: { "class.risk-binary-file-upload": "true" } }, usesInheritance: true, ngImport: i0, template: "@if (raised) {\n <a\n (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-raised-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n} @else {\n <a (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n}\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}a{overflow:hidden}a .risk-file-upload-input-wrapper{width:30px;height:36px;margin-left:-15px;top:0;left:0;position:absolute;overflow:hidden;cursor:pointer;z-index:1}a .risk-file-upload-input-wrapper input{position:absolute;display:block;cursor:pointer;height:36px;font-size:36px;top:0;right:0;outline:0 none;opacity:0}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
320
331
|
}
|
|
321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: BinaryFileUploadComponent, decorators: [{
|
|
322
333
|
type: Component,
|
|
323
334
|
args: [{ selector: 'risk-binary-file-upload', host: {
|
|
324
335
|
'[class.risk-binary-file-upload]': 'true'
|
|
325
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "
|
|
326
|
-
}]
|
|
336
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, imports: [MatButton, MatIcon], template: "@if (raised) {\n <a\n (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-raised-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n} @else {\n <a (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n}\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}a{overflow:hidden}a .risk-file-upload-input-wrapper{width:30px;height:36px;margin-left:-15px;top:0;left:0;position:absolute;overflow:hidden;cursor:pointer;z-index:1}a .risk-file-upload-input-wrapper input{position:absolute;display:block;cursor:pointer;height:36px;font-size:36px;top:0;right:0;outline:0 none;opacity:0}\n"] }]
|
|
337
|
+
}] });
|
|
327
338
|
|
|
328
339
|
class CSVFileDownloadDirective extends AbstractFileDownloadDirective {
|
|
329
|
-
constructor(
|
|
330
|
-
super(
|
|
331
|
-
this.dateFormatter =
|
|
340
|
+
constructor() {
|
|
341
|
+
super(...arguments);
|
|
342
|
+
this.dateFormatter = inject(DateFormatter);
|
|
332
343
|
this.filename = 'data.csv';
|
|
333
344
|
this.crlfLineEnding = false;
|
|
334
345
|
}
|
|
@@ -375,19 +386,24 @@ class CSVFileDownloadDirective extends AbstractFileDownloadDirective {
|
|
|
375
386
|
}
|
|
376
387
|
return '\n';
|
|
377
388
|
}
|
|
378
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
379
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileDownloadDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
390
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: CSVFileDownloadDirective, isStandalone: true, selector: "[risk-csv-download]", inputs: { columns: ["risk-csv-download-columns", "columns"], data: ["risk-csv-download", "data"], filename: ["risk-csv-download-filename", "filename"], crlfLineEnding: ["risk-csv-download-crlf", "crlfLineEnding"] }, host: { listeners: { "click": "download()" }, properties: { "class.risk-csv-download": "true" } }, providers: [
|
|
391
|
+
FileSizePipe
|
|
392
|
+
], usesInheritance: true, ngImport: i0 }); }
|
|
380
393
|
}
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileDownloadDirective, decorators: [{
|
|
382
395
|
type: Directive,
|
|
383
396
|
args: [{
|
|
384
397
|
selector: '[risk-csv-download]',
|
|
385
398
|
host: {
|
|
386
399
|
'[class.risk-csv-download]': 'true',
|
|
387
400
|
'(click)': 'download()'
|
|
388
|
-
}
|
|
401
|
+
},
|
|
402
|
+
providers: [
|
|
403
|
+
FileSizePipe
|
|
404
|
+
]
|
|
389
405
|
}]
|
|
390
|
-
}],
|
|
406
|
+
}], propDecorators: { columns: [{
|
|
391
407
|
type: Input,
|
|
392
408
|
args: ['risk-csv-download-columns']
|
|
393
409
|
}], data: [{
|
|
@@ -499,17 +515,18 @@ class CSVFileUploadService {
|
|
|
499
515
|
}
|
|
500
516
|
};
|
|
501
517
|
}
|
|
502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
503
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileUploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
519
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileUploadService, providedIn: 'root' }); }
|
|
504
520
|
}
|
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
506
|
-
type: Injectable
|
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileUploadService, decorators: [{
|
|
522
|
+
type: Injectable,
|
|
523
|
+
args: [{ providedIn: 'root' }]
|
|
507
524
|
}] });
|
|
508
525
|
|
|
509
526
|
class CSVFileUploadComponent extends AbstractFileUploadComponent {
|
|
510
|
-
constructor(
|
|
511
|
-
super(
|
|
512
|
-
this.fileUploadService =
|
|
527
|
+
constructor() {
|
|
528
|
+
super(...arguments);
|
|
529
|
+
this.fileUploadService = inject(CSVFileUploadService);
|
|
513
530
|
}
|
|
514
531
|
readFiles(fileList) {
|
|
515
532
|
return this.fileUploadService.readFiles(fileList, this.nameMapper).pipe(switchMap((files) => {
|
|
@@ -530,15 +547,15 @@ class CSVFileUploadComponent extends AbstractFileUploadComponent {
|
|
|
530
547
|
}
|
|
531
548
|
}));
|
|
532
549
|
}
|
|
533
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
534
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
550
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileUploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
551
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: CSVFileUploadComponent, isStandalone: true, selector: "risk-csv-file-upload", inputs: { validator: "validator", nameMapper: "nameMapper" }, host: { properties: { "class.risk-csv-file-upload": "true" } }, usesInheritance: true, ngImport: i0, template: "@if (raised) {\n <a\n (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-raised-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n} @else {\n <a (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n}\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}a{overflow:hidden}a .risk-file-upload-input-wrapper{width:30px;height:36px;margin-left:-15px;top:0;left:0;position:absolute;overflow:hidden;cursor:pointer;z-index:1}a .risk-file-upload-input-wrapper input{position:absolute;display:block;cursor:pointer;height:36px;font-size:36px;top:0;right:0;outline:0 none;opacity:0}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
535
552
|
}
|
|
536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVFileUploadComponent, decorators: [{
|
|
537
554
|
type: Component,
|
|
538
555
|
args: [{ selector: 'risk-csv-file-upload', host: {
|
|
539
556
|
'[class.risk-csv-file-upload]': 'true'
|
|
540
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "
|
|
541
|
-
}],
|
|
557
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, imports: [MatButton, MatIcon], template: "@if (raised) {\n <a\n (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-raised-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n} @else {\n <a (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n}\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}a{overflow:hidden}a .risk-file-upload-input-wrapper{width:30px;height:36px;margin-left:-15px;top:0;left:0;position:absolute;overflow:hidden;cursor:pointer;z-index:1}a .risk-file-upload-input-wrapper input{position:absolute;display:block;cursor:pointer;height:36px;font-size:36px;top:0;right:0;outline:0 none;opacity:0}\n"] }]
|
|
558
|
+
}], propDecorators: { validator: [{
|
|
542
559
|
type: Input
|
|
543
560
|
}], nameMapper: [{
|
|
544
561
|
type: Input
|
|
@@ -574,45 +591,54 @@ class TextFileUploadService {
|
|
|
574
591
|
}
|
|
575
592
|
return forkJoin(fileOservables);
|
|
576
593
|
}
|
|
577
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
578
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: TextFileUploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
595
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: TextFileUploadService, providedIn: 'root' }); }
|
|
579
596
|
}
|
|
580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
581
|
-
type: Injectable
|
|
597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: TextFileUploadService, decorators: [{
|
|
598
|
+
type: Injectable,
|
|
599
|
+
args: [{ providedIn: 'root' }]
|
|
582
600
|
}] });
|
|
583
601
|
|
|
584
602
|
class TextFileUploadComponent extends AbstractFileUploadComponent {
|
|
585
|
-
constructor(
|
|
586
|
-
super(
|
|
587
|
-
this.fileUploadService =
|
|
603
|
+
constructor() {
|
|
604
|
+
super(...arguments);
|
|
605
|
+
this.fileUploadService = inject(TextFileUploadService);
|
|
588
606
|
}
|
|
589
607
|
readFiles(fileList) {
|
|
590
608
|
return this.fileUploadService
|
|
591
609
|
.readFiles(fileList);
|
|
592
610
|
}
|
|
593
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
594
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: TextFileUploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: TextFileUploadComponent, isStandalone: true, selector: "risk-text-file-upload", host: { properties: { "class.risk-text-file-upload": "true" } }, usesInheritance: true, ngImport: i0, template: "@if (raised) {\n <a\n (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-raised-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n} @else {\n <a (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n}\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}a{overflow:hidden}a .risk-file-upload-input-wrapper{width:30px;height:36px;margin-left:-15px;top:0;left:0;position:absolute;overflow:hidden;cursor:pointer;z-index:1}a .risk-file-upload-input-wrapper input{position:absolute;display:block;cursor:pointer;height:36px;font-size:36px;top:0;right:0;outline:0 none;opacity:0}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
595
613
|
}
|
|
596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: TextFileUploadComponent, decorators: [{
|
|
597
615
|
type: Component,
|
|
598
616
|
args: [{ selector: 'risk-text-file-upload', host: {
|
|
599
617
|
'[class.risk-text-file-upload]': 'true'
|
|
600
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "
|
|
601
|
-
}]
|
|
618
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, imports: [MatButton, MatIcon], template: "@if (raised) {\n <a\n (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-raised-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n} @else {\n <a (mousemove)=\"move($event)\"\n [color]=\"color\"\n [disabled]=\"disabled\"\n mat-button>\n @if (icon) {\n <mat-icon>{{ icon }}</mat-icon>\n }\n {{ label }}\n <div #wrapper\n class=\"risk-file-upload-input-wrapper\">\n @if (!fileInputHidden) {\n <input #fileInput\n (change)=\"handleFiles($event.target.files)\"\n [accept]=\"accept\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n id=\"fileInput\"\n title=\"\"\n type=\"file\">\n }\n </div>\n </a>\n}\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}a{overflow:hidden}a .risk-file-upload-input-wrapper{width:30px;height:36px;margin-left:-15px;top:0;left:0;position:absolute;overflow:hidden;cursor:pointer;z-index:1}a .risk-file-upload-input-wrapper input{position:absolute;display:block;cursor:pointer;height:36px;font-size:36px;top:0;right:0;outline:0 none;opacity:0}\n"] }]
|
|
619
|
+
}] });
|
|
602
620
|
|
|
603
621
|
class CSVDownloadMenuComponent {
|
|
604
622
|
constructor() {
|
|
605
623
|
this.menuLabel = 'Download';
|
|
606
624
|
this.disabled = false;
|
|
607
625
|
}
|
|
608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
609
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVDownloadMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
627
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: CSVDownloadMenuComponent, isStandalone: true, selector: "risk-download-menu", inputs: { menuLabel: "menuLabel", menuTooltip: "menuTooltip", columns: "columns", data: "data", disabled: "disabled", filename: "filename" }, host: { properties: { "class.risk-download-menu": "true" } }, ngImport: i0, template: "<mat-menu #downloadMenu=\"matMenu\"\n [overlapTrigger]=\"false\">\n <a mat-menu-item\n [risk-csv-download]=\"data\"\n [risk-csv-download-columns]=\"columns\"\n [risk-csv-download-filename]=\"filename\"\n [risk-csv-download-crlf]=\"true\">\n As CSV file (Windows)\n </a>\n <a mat-menu-item\n [risk-csv-download]=\"data\"\n [risk-csv-download-columns]=\"columns\"\n [risk-csv-download-filename]=\"filename\">\n As CSV file (Unix)\n </a>\n</mat-menu>\n\n<button mat-button\n #menu=\"matMenuTrigger\"\n [disabled]=\"disabled\"\n [matMenuTriggerFor]=\"downloadMenu\"\n [class.risk-menu-open]=\"menu.menuOpen\"\n [matTooltip]=\"menuTooltip\">\n <mat-icon>file_download</mat-icon>\n {{ menuLabel }}\n</button>\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: CSVFileDownloadDirective, selector: "[risk-csv-download]", inputs: ["risk-csv-download-columns", "risk-csv-download", "risk-csv-download-filename", "risk-csv-download-crlf"] }, { kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
610
628
|
}
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CSVDownloadMenuComponent, decorators: [{
|
|
612
630
|
type: Component,
|
|
613
631
|
args: [{ selector: 'risk-download-menu', host: {
|
|
614
632
|
'[class.risk-download-menu]': 'true'
|
|
615
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false,
|
|
633
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, imports: [
|
|
634
|
+
MatMenu,
|
|
635
|
+
MatMenuItem,
|
|
636
|
+
CSVFileDownloadDirective,
|
|
637
|
+
MatButton,
|
|
638
|
+
MatMenuTrigger,
|
|
639
|
+
MatTooltip,
|
|
640
|
+
MatIcon
|
|
641
|
+
], template: "<mat-menu #downloadMenu=\"matMenu\"\n [overlapTrigger]=\"false\">\n <a mat-menu-item\n [risk-csv-download]=\"data\"\n [risk-csv-download-columns]=\"columns\"\n [risk-csv-download-filename]=\"filename\"\n [risk-csv-download-crlf]=\"true\">\n As CSV file (Windows)\n </a>\n <a mat-menu-item\n [risk-csv-download]=\"data\"\n [risk-csv-download-columns]=\"columns\"\n [risk-csv-download-filename]=\"filename\">\n As CSV file (Unix)\n </a>\n</mat-menu>\n\n<button mat-button\n #menu=\"matMenuTrigger\"\n [disabled]=\"disabled\"\n [matMenuTriggerFor]=\"downloadMenu\"\n [class.risk-menu-open]=\"menu.menuOpen\"\n [matTooltip]=\"menuTooltip\">\n <mat-icon>file_download</mat-icon>\n {{ menuLabel }}\n</button>\n", styles: [":host{display:block;padding:0;margin:0}:host>*{vertical-align:bottom}\n", ":host{display:inline-block}\n"] }]
|
|
616
642
|
}], propDecorators: { menuLabel: [{
|
|
617
643
|
type: Input
|
|
618
644
|
}], menuTooltip: [{
|
|
@@ -628,9 +654,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
628
654
|
}] } });
|
|
629
655
|
|
|
630
656
|
class FileDownloadDirective extends AbstractFileDownloadDirective {
|
|
631
|
-
constructor(elementRef, dialogService, fileSizePipe, logger) {
|
|
632
|
-
super(elementRef, dialogService, fileSizePipe, logger);
|
|
633
|
-
}
|
|
634
657
|
mapToFile(data) {
|
|
635
658
|
const filename = this.filename || 'data.txt';
|
|
636
659
|
if (data instanceof Blob) {
|
|
@@ -651,19 +674,24 @@ class FileDownloadDirective extends AbstractFileDownloadDirective {
|
|
|
651
674
|
filename
|
|
652
675
|
};
|
|
653
676
|
}
|
|
654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
655
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
677
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: FileDownloadDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
678
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: FileDownloadDirective, isStandalone: true, selector: "[risk-download]", inputs: { data: ["risk-download", "data"], contentType: ["risk-download-content-type", "contentType"], filename: ["risk-download-filename", "filename"] }, host: { listeners: { "click": "download()" }, properties: { "class.risk-download": "true" } }, providers: [
|
|
679
|
+
FileSizePipe
|
|
680
|
+
], usesInheritance: true, ngImport: i0 }); }
|
|
656
681
|
}
|
|
657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: FileDownloadDirective, decorators: [{
|
|
658
683
|
type: Directive,
|
|
659
684
|
args: [{
|
|
660
685
|
selector: '[risk-download]',
|
|
661
686
|
host: {
|
|
662
687
|
'[class.risk-download]': 'true',
|
|
663
688
|
'(click)': 'download()'
|
|
664
|
-
}
|
|
689
|
+
},
|
|
690
|
+
providers: [
|
|
691
|
+
FileSizePipe
|
|
692
|
+
]
|
|
665
693
|
}]
|
|
666
|
-
}],
|
|
694
|
+
}], propDecorators: { data: [{
|
|
667
695
|
type: Input,
|
|
668
696
|
args: ['risk-download']
|
|
669
697
|
}], contentType: [{
|
|
@@ -674,70 +702,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
674
702
|
args: ['risk-download-filename']
|
|
675
703
|
}] } });
|
|
676
704
|
|
|
677
|
-
class FileModule {
|
|
678
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
679
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FileModule, declarations: [BinaryFileUploadComponent,
|
|
680
|
-
CSVFileUploadComponent,
|
|
681
|
-
TextFileUploadComponent,
|
|
682
|
-
CSVFileDownloadDirective,
|
|
683
|
-
CSVDownloadMenuComponent,
|
|
684
|
-
FileDownloadDirective,
|
|
685
|
-
FileSizePipe], imports: [CommonModule,
|
|
686
|
-
CommonViewModule,
|
|
687
|
-
LoggingModule], exports: [BinaryFileUploadComponent,
|
|
688
|
-
CSVFileUploadComponent,
|
|
689
|
-
TextFileUploadComponent,
|
|
690
|
-
CSVFileDownloadDirective,
|
|
691
|
-
CSVDownloadMenuComponent,
|
|
692
|
-
FileDownloadDirective,
|
|
693
|
-
FileSizePipe] }); }
|
|
694
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FileModule, providers: [
|
|
695
|
-
BinaryFileUploadService,
|
|
696
|
-
CSVFileUploadService,
|
|
697
|
-
TextFileUploadService,
|
|
698
|
-
FileSizePipe
|
|
699
|
-
], imports: [CommonModule,
|
|
700
|
-
CommonViewModule,
|
|
701
|
-
LoggingModule] }); }
|
|
702
|
-
}
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FileModule, decorators: [{
|
|
704
|
-
type: NgModule,
|
|
705
|
-
args: [{
|
|
706
|
-
imports: [
|
|
707
|
-
CommonModule,
|
|
708
|
-
CommonViewModule,
|
|
709
|
-
LoggingModule
|
|
710
|
-
],
|
|
711
|
-
declarations: [
|
|
712
|
-
BinaryFileUploadComponent,
|
|
713
|
-
CSVFileUploadComponent,
|
|
714
|
-
TextFileUploadComponent,
|
|
715
|
-
CSVFileDownloadDirective,
|
|
716
|
-
CSVDownloadMenuComponent,
|
|
717
|
-
FileDownloadDirective,
|
|
718
|
-
FileSizePipe
|
|
719
|
-
],
|
|
720
|
-
exports: [
|
|
721
|
-
BinaryFileUploadComponent,
|
|
722
|
-
CSVFileUploadComponent,
|
|
723
|
-
TextFileUploadComponent,
|
|
724
|
-
CSVFileDownloadDirective,
|
|
725
|
-
CSVDownloadMenuComponent,
|
|
726
|
-
FileDownloadDirective,
|
|
727
|
-
FileSizePipe
|
|
728
|
-
],
|
|
729
|
-
providers: [
|
|
730
|
-
BinaryFileUploadService,
|
|
731
|
-
CSVFileUploadService,
|
|
732
|
-
TextFileUploadService,
|
|
733
|
-
FileSizePipe
|
|
734
|
-
]
|
|
735
|
-
}]
|
|
736
|
-
}] });
|
|
737
|
-
|
|
738
705
|
/**
|
|
739
706
|
* Generated bundle index. Do not edit.
|
|
740
707
|
*/
|
|
741
708
|
|
|
742
|
-
export { AbstractFileDownloadDirective, AbstractFileUploadComponent, BinaryFileUploadComponent, BinaryFileUploadService, CSVDownloadMenuComponent, CSVFileDownloadDirective, CSVFileUploadComponent, CSVFileUploadService, FileDownloadDirective,
|
|
709
|
+
export { AbstractFileDownloadDirective, AbstractFileUploadComponent, BinaryFileUploadComponent, BinaryFileUploadService, CSVDownloadMenuComponent, CSVFileDownloadDirective, CSVFileUploadComponent, CSVFileUploadService, FileDownloadDirective, FileSizePipe, TextFileUploadComponent, TextFileUploadService };
|
|
743
710
|
//# sourceMappingURL=dbg-riskit-angular-file.mjs.map
|