@tectra-ng/ui 0.1.3 → 0.1.5
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/accordion/README.md +61 -0
- package/breadcrumb/README.md +57 -0
- package/carousel/README.md +53 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs +939 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs +1140 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-image.mjs +759 -0
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +194 -50
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/galleria/README.md +62 -0
- package/image/README.md +54 -0
- package/menubar/README.md +51 -0
- package/package.json +56 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/splitter/README.md +62 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-carousel.d.ts +263 -0
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-galleria.d.ts +407 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
- package/types/tectra-ng-ui-image.d.ts +259 -0
- package/types/tectra-ng-ui-image.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
import { HttpHeaders } from "@angular/common/http";
|
|
4
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
|
+
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
6
|
+
import { TxIconName } from "@tectra-ng/icons";
|
|
7
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
8
|
+
export type TxFileUploadMode = 'advanced' | 'basic';
|
|
9
|
+
export type TxFileUploadMethod = 'post' | 'put';
|
|
10
|
+
export type TxFileKind = 'image' | 'pdf' | 'sheet' | 'document' | 'archive' | 'media' | 'other';
|
|
11
|
+
export type TxFileStatus = 'pending' | 'uploading' | 'uploaded' | 'failed';
|
|
12
|
+
export type TxFileRejectReason = 'type' | 'size' | 'limit';
|
|
13
|
+
export type TxFileUploadPart = 'root' | 'dropzone' | 'icon' | 'prompt' | 'hint' | 'list' | 'file' | 'thumbnail' | 'fileName' | 'fileMeta' | 'progress' | 'message' | 'footer' | 'basic';
|
|
14
|
+
export interface TxFileUploadEntry {
|
|
15
|
+
id: string;
|
|
16
|
+
file: File;
|
|
17
|
+
kind: TxFileKind;
|
|
18
|
+
extension: string;
|
|
19
|
+
preview: string | null;
|
|
20
|
+
status: TxFileStatus;
|
|
21
|
+
progress: number;
|
|
22
|
+
error: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface TxFileRejection {
|
|
25
|
+
file: File;
|
|
26
|
+
reason: TxFileRejectReason;
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
export interface TxFileUploadSelectEvent {
|
|
30
|
+
originalEvent: Event;
|
|
31
|
+
files: File[];
|
|
32
|
+
currentFiles: File[];
|
|
33
|
+
}
|
|
34
|
+
export interface TxFileUploadRemoveEvent {
|
|
35
|
+
originalEvent: Event;
|
|
36
|
+
file: File;
|
|
37
|
+
}
|
|
38
|
+
export interface TxFileUploadBeforeUploadEvent {
|
|
39
|
+
formData: FormData;
|
|
40
|
+
}
|
|
41
|
+
export interface TxFileUploadProgressEvent {
|
|
42
|
+
progress: number;
|
|
43
|
+
}
|
|
44
|
+
export interface TxFileUploadEvent {
|
|
45
|
+
originalEvent: unknown;
|
|
46
|
+
files: File[];
|
|
47
|
+
}
|
|
48
|
+
export interface TxFileUploadErrorEvent {
|
|
49
|
+
files: File[];
|
|
50
|
+
error: unknown;
|
|
51
|
+
}
|
|
52
|
+
export interface TxFileUploadHandlerEvent {
|
|
53
|
+
files: File[];
|
|
54
|
+
progress: (value: number, file?: File) => void;
|
|
55
|
+
complete: (file?: File) => void;
|
|
56
|
+
fail: (message?: string, file?: File) => void;
|
|
57
|
+
}
|
|
58
|
+
export interface TxFileUploadedRemoveEvent {
|
|
59
|
+
file: File;
|
|
60
|
+
files: File[];
|
|
61
|
+
}
|
|
62
|
+
export interface TxFileUploadMessage {
|
|
63
|
+
id: number;
|
|
64
|
+
text: string;
|
|
65
|
+
}
|
|
66
|
+
export interface TxFileUploadFileContext {
|
|
67
|
+
$implicit: TxFileUploadEntry;
|
|
68
|
+
index: number;
|
|
69
|
+
remove: (event: Event) => void;
|
|
70
|
+
}
|
|
71
|
+
export interface TxFileUploadDropzoneContext {
|
|
72
|
+
$implicit: boolean;
|
|
73
|
+
choose: () => void;
|
|
74
|
+
}
|
|
75
|
+
export declare class TxFileUploadFileTemplate {
|
|
76
|
+
readonly template: TemplateRef<TxFileUploadFileContext>;
|
|
77
|
+
static ngTemplateContextGuard(_directive: TxFileUploadFileTemplate, context: unknown): context is TxFileUploadFileContext;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUploadFileTemplate, never>;
|
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxFileUploadFileTemplate, "ng-template[txFileUploadFile]", never, {}, {}, never, never, true, never>;
|
|
80
|
+
}
|
|
81
|
+
export declare class TxFileUploadDropzoneTemplate {
|
|
82
|
+
readonly template: TemplateRef<TxFileUploadDropzoneContext>;
|
|
83
|
+
static ngTemplateContextGuard(_directive: TxFileUploadDropzoneTemplate, context: unknown): context is TxFileUploadDropzoneContext;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUploadDropzoneTemplate, never>;
|
|
85
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxFileUploadDropzoneTemplate, "ng-template[txFileUploadDropzone]", never, {}, {}, never, never, true, never>;
|
|
86
|
+
}
|
|
87
|
+
export declare class TxFileUploadActions {
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUploadActions, never>;
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxFileUploadActions, "[txFileUploadActions]", never, {}, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
export declare const TX_FILE_SIZE_UNITS: readonly ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte"];
|
|
92
|
+
export declare function fileExtension(file: Pick<File, 'name'>): string;
|
|
93
|
+
export declare function fileKind(file: Pick<File, 'name' | 'type'>): TxFileKind;
|
|
94
|
+
export declare function fileMatchesAccept(file: Pick<File, 'name' | 'type'>, accept: string | undefined): boolean;
|
|
95
|
+
export declare function fileSizeParts(bytes: number): {
|
|
96
|
+
value: number;
|
|
97
|
+
unit: (typeof TX_FILE_SIZE_UNITS)[number];
|
|
98
|
+
};
|
|
99
|
+
export declare function sameFile(a: File, b: File): boolean;
|
|
100
|
+
export declare function acceptLabel(accept: string | undefined): string;
|
|
101
|
+
type TxFileUploadValue = File | File[];
|
|
102
|
+
export declare class TxFileUpload extends TxFormControlBase<TxFileUploadValue> {
|
|
103
|
+
private document;
|
|
104
|
+
private http;
|
|
105
|
+
private announcer;
|
|
106
|
+
private localeService;
|
|
107
|
+
private field;
|
|
108
|
+
readonly mode: import("@angular/core").InputSignal<TxFileUploadMode>;
|
|
109
|
+
readonly files: import("@angular/core").ModelSignal<File[]>;
|
|
110
|
+
readonly file: import("@angular/core").ModelSignal<File | null>;
|
|
111
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
112
|
+
readonly accept: import("@angular/core").InputSignal<string | undefined>;
|
|
113
|
+
readonly maxFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
114
|
+
readonly fileLimit: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
115
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
116
|
+
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
117
|
+
readonly auto: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
118
|
+
readonly url: import("@angular/core").InputSignal<string | undefined>;
|
|
119
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
120
|
+
readonly method: import("@angular/core").InputSignal<TxFileUploadMethod>;
|
|
121
|
+
readonly headers: import("@angular/core").InputSignal<HttpHeaders | Record<string, string> | undefined>;
|
|
122
|
+
readonly withCredentials: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
readonly customUpload: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
124
|
+
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
125
|
+
readonly chooseLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
126
|
+
readonly uploadLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
127
|
+
readonly cancelLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
128
|
+
readonly chooseIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
129
|
+
readonly uploadIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
130
|
+
readonly cancelIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
131
|
+
readonly showUploadButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
132
|
+
readonly showCancelButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
133
|
+
readonly showMessages: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
134
|
+
readonly invalidFileTypeMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
135
|
+
readonly invalidFileSizeMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
136
|
+
readonly invalidFileLimitMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
137
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
138
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
139
|
+
root: {
|
|
140
|
+
gap: string;
|
|
141
|
+
color: string;
|
|
142
|
+
fontSize: string;
|
|
143
|
+
transitionDuration: string;
|
|
144
|
+
easing: string;
|
|
145
|
+
focusRingWidth: string;
|
|
146
|
+
focusRingColor: string;
|
|
147
|
+
focusRingOffset: string;
|
|
148
|
+
};
|
|
149
|
+
dropzone: {
|
|
150
|
+
minHeight: string;
|
|
151
|
+
padding: string;
|
|
152
|
+
gap: string;
|
|
153
|
+
borderRadius: string;
|
|
154
|
+
borderWidth: string;
|
|
155
|
+
dash: string;
|
|
156
|
+
dashPeriod: string;
|
|
157
|
+
borderColor: string;
|
|
158
|
+
hoverBorderColor: string;
|
|
159
|
+
activeBorderColor: string;
|
|
160
|
+
invalidBorderColor: string;
|
|
161
|
+
background: string;
|
|
162
|
+
hoverBackground: string;
|
|
163
|
+
activeBackground: string;
|
|
164
|
+
disabledOpacity: string;
|
|
165
|
+
};
|
|
166
|
+
icon: {
|
|
167
|
+
size: string;
|
|
168
|
+
glyphSize: string;
|
|
169
|
+
borderRadius: string;
|
|
170
|
+
background: string;
|
|
171
|
+
color: string;
|
|
172
|
+
hoverShadow: string;
|
|
173
|
+
lift: string;
|
|
174
|
+
};
|
|
175
|
+
prompt: {
|
|
176
|
+
fontWeight: string;
|
|
177
|
+
linkColor: string;
|
|
178
|
+
linkFontWeight: string;
|
|
179
|
+
};
|
|
180
|
+
hint: {
|
|
181
|
+
color: string;
|
|
182
|
+
fontSize: string;
|
|
183
|
+
};
|
|
184
|
+
list: {
|
|
185
|
+
gap: string;
|
|
186
|
+
};
|
|
187
|
+
file: {
|
|
188
|
+
padding: string;
|
|
189
|
+
gap: string;
|
|
190
|
+
borderRadius: string;
|
|
191
|
+
borderColor: string;
|
|
192
|
+
background: string;
|
|
193
|
+
nameFontWeight: string;
|
|
194
|
+
metaColor: string;
|
|
195
|
+
metaFontSize: string;
|
|
196
|
+
metaGap: string;
|
|
197
|
+
successColor: string;
|
|
198
|
+
errorColor: string;
|
|
199
|
+
};
|
|
200
|
+
thumbnail: {
|
|
201
|
+
size: string;
|
|
202
|
+
borderRadius: string;
|
|
203
|
+
background: string;
|
|
204
|
+
color: string;
|
|
205
|
+
glyphSize: string;
|
|
206
|
+
extensionFontSize: string;
|
|
207
|
+
largeSize: string;
|
|
208
|
+
largeBorderRadius: string;
|
|
209
|
+
largeGlyphSize: string;
|
|
210
|
+
largeExtensionFontSize: string;
|
|
211
|
+
imageColor: string;
|
|
212
|
+
documentColor: string;
|
|
213
|
+
pdfColor: string;
|
|
214
|
+
sheetColor: string;
|
|
215
|
+
archiveColor: string;
|
|
216
|
+
tint: string;
|
|
217
|
+
};
|
|
218
|
+
progress: {
|
|
219
|
+
height: string;
|
|
220
|
+
marginTop: string;
|
|
221
|
+
background: string;
|
|
222
|
+
color: string;
|
|
223
|
+
successColor: string;
|
|
224
|
+
errorColor: string;
|
|
225
|
+
};
|
|
226
|
+
message: {
|
|
227
|
+
padding: string;
|
|
228
|
+
gap: string;
|
|
229
|
+
borderRadius: string;
|
|
230
|
+
background: string;
|
|
231
|
+
color: string;
|
|
232
|
+
fontSize: string;
|
|
233
|
+
};
|
|
234
|
+
footer: {
|
|
235
|
+
gap: string;
|
|
236
|
+
summaryColor: string;
|
|
237
|
+
summaryFontSize: string;
|
|
238
|
+
};
|
|
239
|
+
selected: {
|
|
240
|
+
gap: string;
|
|
241
|
+
background: string;
|
|
242
|
+
borderColor: string;
|
|
243
|
+
progressWidth: string;
|
|
244
|
+
actionsGap: string;
|
|
245
|
+
};
|
|
246
|
+
basic: {
|
|
247
|
+
gap: string;
|
|
248
|
+
labelColor: string;
|
|
249
|
+
labelFontSize: string;
|
|
250
|
+
};
|
|
251
|
+
}> | undefined>;
|
|
252
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFileUploadPart, import("@tectra-ng/core/config").TxPassThroughValue<TxFileUpload>>> | undefined>;
|
|
253
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
254
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
255
|
+
readonly selected: import("@angular/core").OutputEmitterRef<TxFileUploadSelectEvent>;
|
|
256
|
+
readonly removed: import("@angular/core").OutputEmitterRef<TxFileUploadRemoveEvent>;
|
|
257
|
+
readonly cleared: import("@angular/core").OutputEmitterRef<void>;
|
|
258
|
+
readonly rejected: import("@angular/core").OutputEmitterRef<TxFileRejection[]>;
|
|
259
|
+
readonly beforeUpload: import("@angular/core").OutputEmitterRef<TxFileUploadBeforeUploadEvent>;
|
|
260
|
+
readonly uploadProgress: import("@angular/core").OutputEmitterRef<TxFileUploadProgressEvent>;
|
|
261
|
+
readonly uploaded: import("@angular/core").OutputEmitterRef<TxFileUploadEvent>;
|
|
262
|
+
readonly uploadFailed: import("@angular/core").OutputEmitterRef<TxFileUploadErrorEvent>;
|
|
263
|
+
readonly uploadHandler: import("@angular/core").OutputEmitterRef<TxFileUploadHandlerEvent>;
|
|
264
|
+
readonly uploadedFileRemoved: import("@angular/core").OutputEmitterRef<TxFileUploadedRemoveEvent>;
|
|
265
|
+
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
266
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
267
|
+
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
268
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFileUploadPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
269
|
+
protected readonly fileTemplate: import("@angular/core").Signal<TxFileUploadFileTemplate | undefined>;
|
|
270
|
+
protected readonly dropzoneTemplate: import("@angular/core").Signal<TxFileUploadDropzoneTemplate | undefined>;
|
|
271
|
+
protected readonly actions: import("@angular/core").Signal<TxFileUploadActions | undefined>;
|
|
272
|
+
private readonly inputElement;
|
|
273
|
+
protected readonly id: string;
|
|
274
|
+
readonly entries: import("@angular/core").WritableSignal<TxFileUploadEntry[]>;
|
|
275
|
+
readonly uploadedEntries: import("@angular/core").WritableSignal<TxFileUploadEntry[]>;
|
|
276
|
+
protected readonly messages: import("@angular/core").WritableSignal<TxFileUploadMessage[]>;
|
|
277
|
+
protected readonly dragging: import("@angular/core").WritableSignal<boolean>;
|
|
278
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
279
|
+
readonly uploading: import("@angular/core").Signal<boolean>;
|
|
280
|
+
protected readonly rows: import("@angular/core").Signal<TxFileUploadEntry[]>;
|
|
281
|
+
protected readonly current: import("@angular/core").Signal<TxFileUploadEntry>;
|
|
282
|
+
protected readonly hasTarget: import("@angular/core").Signal<boolean>;
|
|
283
|
+
protected readonly waiting: import("@angular/core").Signal<TxFileUploadEntry[]>;
|
|
284
|
+
protected readonly limitReached: import("@angular/core").Signal<boolean>;
|
|
285
|
+
protected readonly showFooter: import("@angular/core").Signal<boolean>;
|
|
286
|
+
protected readonly prompt: import("@angular/core").Signal<{
|
|
287
|
+
before: string;
|
|
288
|
+
link: string;
|
|
289
|
+
after: string;
|
|
290
|
+
}>;
|
|
291
|
+
protected readonly summary: import("@angular/core").Signal<string>;
|
|
292
|
+
protected readonly basicLabel: import("@angular/core").Signal<string>;
|
|
293
|
+
protected readonly zoneLabelledBy: import("@angular/core").Signal<string | null>;
|
|
294
|
+
protected readonly chooseText: import("@angular/core").Signal<string>;
|
|
295
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
296
|
+
[x: string]: string;
|
|
297
|
+
}>;
|
|
298
|
+
protected readonly chooseFiles: () => void;
|
|
299
|
+
private readonly order;
|
|
300
|
+
private dragDepth;
|
|
301
|
+
private messageId;
|
|
302
|
+
private abort;
|
|
303
|
+
constructor();
|
|
304
|
+
writeValue(value: TxFileUploadValue | null): void;
|
|
305
|
+
choose(): void;
|
|
306
|
+
upload(): void;
|
|
307
|
+
clear(): void;
|
|
308
|
+
protected onInputChange(event: Event): void;
|
|
309
|
+
protected onZoneClick(event: MouseEvent): void;
|
|
310
|
+
protected onZoneKeydown(event: KeyboardEvent): void;
|
|
311
|
+
protected onDragEnter(event: DragEvent): void;
|
|
312
|
+
protected onDragOver(event: DragEvent): void;
|
|
313
|
+
protected onDragLeave(event: DragEvent): void;
|
|
314
|
+
protected onDrop(event: DragEvent): void;
|
|
315
|
+
protected remove(event: Event, entry: TxFileUploadEntry): void;
|
|
316
|
+
protected retry(entry: TxFileUploadEntry): void;
|
|
317
|
+
protected dismiss(message: TxFileUploadMessage): void;
|
|
318
|
+
protected fileContext(entry: TxFileUploadEntry, index: number): TxFileUploadFileContext;
|
|
319
|
+
protected kindIcon(kind: TxFileKind): TxIconName;
|
|
320
|
+
protected meta(entry: TxFileUploadEntry): string;
|
|
321
|
+
protected removeLabel(entry: TxFileUploadEntry): string;
|
|
322
|
+
formatSize(bytes: number): string;
|
|
323
|
+
private add;
|
|
324
|
+
private validate;
|
|
325
|
+
private rejectionText;
|
|
326
|
+
private isLimitMessage;
|
|
327
|
+
private adopt;
|
|
328
|
+
private commit;
|
|
329
|
+
private toEntry;
|
|
330
|
+
private revoke;
|
|
331
|
+
private patch;
|
|
332
|
+
private idsOf;
|
|
333
|
+
private finish;
|
|
334
|
+
private fail;
|
|
335
|
+
private send;
|
|
336
|
+
private clampProgress;
|
|
337
|
+
private fromSelectedCard;
|
|
338
|
+
private acceptsDrag;
|
|
339
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUpload, never>;
|
|
340
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxFileUpload, "tx-file-upload", never, {
|
|
341
|
+
"mode": {
|
|
342
|
+
"alias": "mode";
|
|
343
|
+
"required": false;
|
|
344
|
+
"isSignal": true;
|
|
345
|
+
};
|
|
346
|
+
"files": {
|
|
347
|
+
"alias": "files";
|
|
348
|
+
"required": false;
|
|
349
|
+
"isSignal": true;
|
|
350
|
+
};
|
|
351
|
+
"file": {
|
|
352
|
+
"alias": "file";
|
|
353
|
+
"required": false;
|
|
354
|
+
"isSignal": true;
|
|
355
|
+
};
|
|
356
|
+
"multiple": {
|
|
357
|
+
"alias": "multiple";
|
|
358
|
+
"required": false;
|
|
359
|
+
"isSignal": true;
|
|
360
|
+
};
|
|
361
|
+
"accept": {
|
|
362
|
+
"alias": "accept";
|
|
363
|
+
"required": false;
|
|
364
|
+
"isSignal": true;
|
|
365
|
+
};
|
|
366
|
+
"maxFileSize": {
|
|
367
|
+
"alias": "maxFileSize";
|
|
368
|
+
"required": false;
|
|
369
|
+
"isSignal": true;
|
|
370
|
+
};
|
|
371
|
+
"fileLimit": {
|
|
372
|
+
"alias": "fileLimit";
|
|
373
|
+
"required": false;
|
|
374
|
+
"isSignal": true;
|
|
375
|
+
};
|
|
376
|
+
"disabledInput": {
|
|
377
|
+
"alias": "disabled";
|
|
378
|
+
"required": false;
|
|
379
|
+
"isSignal": true;
|
|
380
|
+
};
|
|
381
|
+
"invalid": {
|
|
382
|
+
"alias": "invalid";
|
|
383
|
+
"required": false;
|
|
384
|
+
"isSignal": true;
|
|
385
|
+
};
|
|
386
|
+
"auto": {
|
|
387
|
+
"alias": "auto";
|
|
388
|
+
"required": false;
|
|
389
|
+
"isSignal": true;
|
|
390
|
+
};
|
|
391
|
+
"url": {
|
|
392
|
+
"alias": "url";
|
|
393
|
+
"required": false;
|
|
394
|
+
"isSignal": true;
|
|
395
|
+
};
|
|
396
|
+
"name": {
|
|
397
|
+
"alias": "name";
|
|
398
|
+
"required": false;
|
|
399
|
+
"isSignal": true;
|
|
400
|
+
};
|
|
401
|
+
"method": {
|
|
402
|
+
"alias": "method";
|
|
403
|
+
"required": false;
|
|
404
|
+
"isSignal": true;
|
|
405
|
+
};
|
|
406
|
+
"headers": {
|
|
407
|
+
"alias": "headers";
|
|
408
|
+
"required": false;
|
|
409
|
+
"isSignal": true;
|
|
410
|
+
};
|
|
411
|
+
"withCredentials": {
|
|
412
|
+
"alias": "withCredentials";
|
|
413
|
+
"required": false;
|
|
414
|
+
"isSignal": true;
|
|
415
|
+
};
|
|
416
|
+
"customUpload": {
|
|
417
|
+
"alias": "customUpload";
|
|
418
|
+
"required": false;
|
|
419
|
+
"isSignal": true;
|
|
420
|
+
};
|
|
421
|
+
"description": {
|
|
422
|
+
"alias": "description";
|
|
423
|
+
"required": false;
|
|
424
|
+
"isSignal": true;
|
|
425
|
+
};
|
|
426
|
+
"chooseLabel": {
|
|
427
|
+
"alias": "chooseLabel";
|
|
428
|
+
"required": false;
|
|
429
|
+
"isSignal": true;
|
|
430
|
+
};
|
|
431
|
+
"uploadLabel": {
|
|
432
|
+
"alias": "uploadLabel";
|
|
433
|
+
"required": false;
|
|
434
|
+
"isSignal": true;
|
|
435
|
+
};
|
|
436
|
+
"cancelLabel": {
|
|
437
|
+
"alias": "cancelLabel";
|
|
438
|
+
"required": false;
|
|
439
|
+
"isSignal": true;
|
|
440
|
+
};
|
|
441
|
+
"chooseIcon": {
|
|
442
|
+
"alias": "chooseIcon";
|
|
443
|
+
"required": false;
|
|
444
|
+
"isSignal": true;
|
|
445
|
+
};
|
|
446
|
+
"uploadIcon": {
|
|
447
|
+
"alias": "uploadIcon";
|
|
448
|
+
"required": false;
|
|
449
|
+
"isSignal": true;
|
|
450
|
+
};
|
|
451
|
+
"cancelIcon": {
|
|
452
|
+
"alias": "cancelIcon";
|
|
453
|
+
"required": false;
|
|
454
|
+
"isSignal": true;
|
|
455
|
+
};
|
|
456
|
+
"showUploadButton": {
|
|
457
|
+
"alias": "showUploadButton";
|
|
458
|
+
"required": false;
|
|
459
|
+
"isSignal": true;
|
|
460
|
+
};
|
|
461
|
+
"showCancelButton": {
|
|
462
|
+
"alias": "showCancelButton";
|
|
463
|
+
"required": false;
|
|
464
|
+
"isSignal": true;
|
|
465
|
+
};
|
|
466
|
+
"showMessages": {
|
|
467
|
+
"alias": "showMessages";
|
|
468
|
+
"required": false;
|
|
469
|
+
"isSignal": true;
|
|
470
|
+
};
|
|
471
|
+
"invalidFileTypeMessage": {
|
|
472
|
+
"alias": "invalidFileTypeMessage";
|
|
473
|
+
"required": false;
|
|
474
|
+
"isSignal": true;
|
|
475
|
+
};
|
|
476
|
+
"invalidFileSizeMessage": {
|
|
477
|
+
"alias": "invalidFileSizeMessage";
|
|
478
|
+
"required": false;
|
|
479
|
+
"isSignal": true;
|
|
480
|
+
};
|
|
481
|
+
"invalidFileLimitMessage": {
|
|
482
|
+
"alias": "invalidFileLimitMessage";
|
|
483
|
+
"required": false;
|
|
484
|
+
"isSignal": true;
|
|
485
|
+
};
|
|
486
|
+
"ariaLabel": {
|
|
487
|
+
"alias": "ariaLabel";
|
|
488
|
+
"required": false;
|
|
489
|
+
"isSignal": true;
|
|
490
|
+
};
|
|
491
|
+
"dt": {
|
|
492
|
+
"alias": "dt";
|
|
493
|
+
"required": false;
|
|
494
|
+
"isSignal": true;
|
|
495
|
+
};
|
|
496
|
+
"pt": {
|
|
497
|
+
"alias": "pt";
|
|
498
|
+
"required": false;
|
|
499
|
+
"isSignal": true;
|
|
500
|
+
};
|
|
501
|
+
"ptOptions": {
|
|
502
|
+
"alias": "ptOptions";
|
|
503
|
+
"required": false;
|
|
504
|
+
"isSignal": true;
|
|
505
|
+
};
|
|
506
|
+
"unstyled": {
|
|
507
|
+
"alias": "unstyled";
|
|
508
|
+
"required": false;
|
|
509
|
+
"isSignal": true;
|
|
510
|
+
};
|
|
511
|
+
}, {
|
|
512
|
+
"files": "filesChange";
|
|
513
|
+
"file": "fileChange";
|
|
514
|
+
"selected": "selected";
|
|
515
|
+
"removed": "removed";
|
|
516
|
+
"cleared": "cleared";
|
|
517
|
+
"rejected": "rejected";
|
|
518
|
+
"beforeUpload": "beforeUpload";
|
|
519
|
+
"uploadProgress": "uploadProgress";
|
|
520
|
+
"uploaded": "uploaded";
|
|
521
|
+
"uploadFailed": "uploadFailed";
|
|
522
|
+
"uploadHandler": "uploadHandler";
|
|
523
|
+
"uploadedFileRemoved": "uploadedFileRemoved";
|
|
524
|
+
}, ["fileTemplate", "dropzoneTemplate", "actions"], ["[txFileUploadActions]"], true, never>;
|
|
525
|
+
}
|
|
526
|
+
export {};
|
|
527
|
+
//# sourceMappingURL=tectra-ng-ui-file-upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-file-upload.d.ts","names":[],"sources":["../../../../packages/ui/file-upload/src/file-upload.types.ts","../../../../packages/ui/file-upload/src/file-upload.templates.ts","../../../../packages/ui/file-upload/src/file-upload.utils.ts","../../../../packages/ui/file-upload/src/file-upload.component.ts"],"mappings":";;;;;;;YAAY;YAEA;YAEA;YAEA;YAEA;YAEA;iBAgBK;EACf;EACA,MAAM;EACN,MAAM;EACN;EACA;EACA,QAAQ;EACR;EACA;;iBAGe;EACf,MAAM;EACN,QAAQ;EACR;;iBAGe;EACf,eAAe;EACf,OAAO;EACP,cAAc;;iBAGC;EACf,eAAe;EACf,MAAM;;iBAGS;EACf,UAAU;;iBAGK;EACf;;iBAGe;EACf;EACA,OAAO;;iBAGQ;EACf,OAAO;EACP;;iBAGe;EACf,OAAO;EACP,WAAW,eAAe,OAAO;EACjC,WAAW,OAAO;EAClB,OAAO,kBAAkB,OAAO;;iBAGjB;EACf,MAAM;EACN,OAAO;;iBAGQ;EACf;EACA;;iBAGe;EACf,WAAW;EACX;EACA,SAAS,OAAO;;iBAGD;EACf;EACA;;qBC7FW;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;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