@flusys/ng-storage 9.1.0 → 9.1.1

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.
Files changed (33) hide show
  1. package/fesm2022/flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs +43 -0
  2. package/fesm2022/flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs.map +1 -0
  3. package/fesm2022/{flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs → flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs} +411 -231
  4. package/fesm2022/flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs.map +1 -0
  5. package/fesm2022/{flusys-ng-storage-file-manager-list.component-a7YHw1Gz.mjs → flusys-ng-storage-file-manager-list.component-4_LdJOtH.mjs} +355 -145
  6. package/fesm2022/flusys-ng-storage-file-manager-list.component-4_LdJOtH.mjs.map +1 -0
  7. package/fesm2022/flusys-ng-storage-folder-api.service-D_fFEuO6.mjs +33 -0
  8. package/fesm2022/flusys-ng-storage-folder-api.service-D_fFEuO6.mjs.map +1 -0
  9. package/fesm2022/flusys-ng-storage-folder-form.component-7C2oWijb.mjs +298 -0
  10. package/fesm2022/flusys-ng-storage-folder-form.component-7C2oWijb.mjs.map +1 -0
  11. package/fesm2022/{flusys-ng-storage-folder-list.component-BDrBAcCS.mjs → flusys-ng-storage-folder-list.component-BdSBM_DB.mjs} +284 -77
  12. package/fesm2022/flusys-ng-storage-folder-list.component-BdSBM_DB.mjs.map +1 -0
  13. package/fesm2022/flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs +33 -0
  14. package/fesm2022/flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs.map +1 -0
  15. package/fesm2022/{flusys-ng-storage-storage-config-form.component-B4wBfzVs.mjs → flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs} +369 -214
  16. package/fesm2022/flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs.map +1 -0
  17. package/fesm2022/{flusys-ng-storage-storage-config-list.component-CCkZY--j.mjs → flusys-ng-storage-storage-config-list.component-Dh9JkuZP.mjs} +303 -83
  18. package/fesm2022/flusys-ng-storage-storage-config-list.component-Dh9JkuZP.mjs.map +1 -0
  19. package/fesm2022/flusys-ng-storage-storage-container.component-EWGNoozU.mjs +124 -0
  20. package/fesm2022/flusys-ng-storage-storage-container.component-EWGNoozU.mjs.map +1 -0
  21. package/fesm2022/flusys-ng-storage-upload.service-CIcEL_Kr.mjs +113 -0
  22. package/fesm2022/flusys-ng-storage-upload.service-CIcEL_Kr.mjs.map +1 -0
  23. package/fesm2022/flusys-ng-storage.mjs +611 -876
  24. package/fesm2022/flusys-ng-storage.mjs.map +1 -1
  25. package/package.json +5 -5
  26. package/types/flusys-ng-storage.d.ts +254 -292
  27. package/fesm2022/flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs.map +0 -1
  28. package/fesm2022/flusys-ng-storage-file-manager-list.component-a7YHw1Gz.mjs.map +0 -1
  29. package/fesm2022/flusys-ng-storage-folder-form.component-BCzVzmRn.mjs +0 -225
  30. package/fesm2022/flusys-ng-storage-folder-form.component-BCzVzmRn.mjs.map +0 -1
  31. package/fesm2022/flusys-ng-storage-folder-list.component-BDrBAcCS.mjs.map +0 -1
  32. package/fesm2022/flusys-ng-storage-storage-config-form.component-B4wBfzVs.mjs.map +0 -1
  33. package/fesm2022/flusys-ng-storage-storage-config-list.component-CCkZY--j.mjs.map +0 -1
@@ -1,212 +1,201 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, signal, computed, effect, Component } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
4
- import { form, required, FormField } from '@angular/forms/signals';
5
- import { ActivatedRoute } from '@angular/router';
6
- import { TranslateService, TranslatePipe } from '@flusys/ng-shared';
7
- import { firstValueFrom } from 'rxjs';
8
- import { BaseStoragePage, FileManagerApiService, UploadService, StorageConfigApiService, FolderApiService, formatFileSize, getProviderLabelKey } from './flusys-ng-storage.mjs';
9
- import { SelectComponent, UiIconComponent, FileUploadComponent, FButtonDirective, CheckboxComponent, InputTextDirective } from '@flusys/ng-ui';
10
-
11
- class FileManagerFormComponent extends BaseStoragePage {
12
- route = inject(ActivatedRoute);
13
- fileService = inject(FileManagerApiService);
14
- uploadService = inject(UploadService);
15
- configService = inject(StorageConfigApiService);
16
- folderService = inject(FolderApiService);
17
- translateService = inject(TranslateService);
18
- routeParams = toSignal(this.route.paramMap);
19
- initialized = false;
20
- isLoadingConfigs = signal(false, /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "isLoadingConfigs" }] : /* istanbul ignore next */ []));
22
- isLoadingFolders = signal(false, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "isLoadingFolders" }] : /* istanbul ignore next */ []));
24
- existingFile = signal(null, /* @ts-ignore */
25
- ...(ngDevMode ? [{ debugName: "existingFile" }] : /* istanbul ignore next */ []));
26
- isEditMode = computed(() => !!this.existingFile(), /* @ts-ignore */
27
- ...(ngDevMode ? [{ debugName: "isEditMode" }] : /* istanbul ignore next */ []));
28
- selectedFile = signal(null, /* @ts-ignore */
29
- ...(ngDevMode ? [{ debugName: "selectedFile" }] : /* istanbul ignore next */ []));
30
- availableConfigs = signal([], /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "availableConfigs" }] : /* istanbul ignore next */ []));
32
- availableFolders = signal([], /* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "availableFolders" }] : /* istanbul ignore next */ []));
34
- formatFileSize = formatFileSize;
35
- getProviderLabelKey = getProviderLabelKey;
36
- formModel = signal({
37
- id: '',
38
- name: '',
39
- isPrivate: false,
40
- folderId: '',
41
- storageConfigId: '',
42
- }, /* @ts-ignore */
43
- ...(ngDevMode ? [{ debugName: "formModel" }] : /* istanbul ignore next */ []));
44
- fileForm = form(this.formModel, (f) => {
45
- required(f.name, {
46
- message: this.translateService.translate('storage.validation.file.name.required'),
47
- });
48
- });
49
- isFormValid = computed(() => this.formModel().name.trim().length > 0, /* @ts-ignore */
50
- ...(ngDevMode ? [{ debugName: "isFormValid" }] : /* istanbul ignore next */ []));
51
- constructor() {
52
- super();
53
- effect(() => {
54
- const params = this.routeParams();
55
- if (!params || this.initialized)
56
- return;
57
- this.initialized = true;
58
- const fileId = params.get('id');
59
- if (fileId) {
60
- this.loadFile(fileId);
61
- }
62
- else {
63
- this.loadStorageConfigs();
64
- }
65
- this.loadFolders();
66
- });
67
- }
68
- async loadStorageConfigs() {
69
- this.isLoadingConfigs.set(true);
70
- try {
71
- const response = await this.configService.getAll({
72
- pagination: { currentPage: 0, pageSize: 100 },
73
- filter: {},
74
- select: [],
75
- sort: {},
76
- });
77
- if (response.success && response.data) {
78
- this.availableConfigs.set(response.data);
79
- if (response.data.length === 1) {
80
- this.formModel.update((m) => ({
81
- ...m,
82
- storageConfigId: response.data[0].id,
83
- }));
84
- }
85
- }
86
- }
87
- finally {
88
- this.isLoadingConfigs.set(false);
89
- }
90
- }
91
- async loadFolders() {
92
- this.isLoadingFolders.set(true);
93
- try {
94
- const response = await this.folderService.getAll({
95
- pagination: { currentPage: 0, pageSize: 100 },
96
- filter: {},
97
- select: [],
98
- sort: {},
99
- });
100
- if (response.success && response.data) {
101
- this.availableFolders.set(response.data);
102
- }
103
- }
104
- catch {
105
- // Silently fail - folders are optional
106
- }
107
- finally {
108
- this.isLoadingFolders.set(false);
109
- }
110
- }
111
- async loadFile(id) {
112
- this.isLoading.set(true);
113
- try {
114
- const response = await this.fileService.findById(id);
115
- if (response.success && response.data) {
116
- const file = response.data;
117
- this.existingFile.set(file);
118
- this.formModel.set({
119
- id: file.id,
120
- name: file.name,
121
- isPrivate: file.isPrivate ?? false,
122
- folderId: file.folderId ?? '',
123
- storageConfigId: '',
124
- });
125
- }
126
- }
127
- catch {
128
- this.navigateTo(['/storage/files']);
129
- }
130
- finally {
131
- this.isLoading.set(false);
132
- }
133
- }
134
- onFileSelect(event) {
135
- const file = event.files?.[0] || event.currentFiles?.[0];
136
- if (file) {
137
- this.selectedFile.set(file);
138
- this.formModel.update((m) => ({ ...m, name: file.name }));
139
- }
140
- }
141
- onFileRemoved() {
142
- this.selectedFile.set(null);
143
- }
144
- async onSubmit(event) {
145
- event.preventDefault();
146
- if (!this.isFormValid())
147
- return;
148
- this.isLoading.set(true);
149
- try {
150
- const formValue = this.formModel();
151
- if (this.isEditMode()) {
152
- const response = await this.fileService.update({
153
- id: formValue.id,
154
- name: formValue.name,
155
- isPrivate: formValue.isPrivate,
156
- folderId: formValue.folderId || null,
157
- });
158
- this.showSuccess(response.messageKey
159
- ? this.translateService.translate(response.messageKey, response.messageVariables)
160
- : (response.message ?? ''));
161
- }
162
- else {
163
- const file = this.selectedFile();
164
- if (!file) {
165
- this.showError(this.translateService.translate('storage.error.no.file'));
166
- return;
167
- }
168
- if (!formValue.storageConfigId) {
169
- this.showError(this.translateService.translate('storage.error.no.config'));
170
- return;
171
- }
172
- const uploadResponse = await firstValueFrom(this.uploadService.uploadSingleFile(file, {
173
- compress: true,
174
- quality: 85,
175
- storageConfigId: formValue.storageConfigId,
176
- }));
177
- if (uploadResponse.success && uploadResponse.data) {
178
- const uploadedFileInfo = uploadResponse.data;
179
- const createResponse = await firstValueFrom(this.fileService.createFile({
180
- name: formValue.name,
181
- key: uploadedFileInfo.key,
182
- contentType: file.type || 'application/octet-stream',
183
- size: Math.round(file.size / 1024).toString(),
184
- isPrivate: formValue.isPrivate,
185
- folderId: formValue.folderId || undefined,
186
- storageConfigId: formValue.storageConfigId,
187
- }));
188
- this.showSuccess(createResponse?.messageKey
189
- ? this.translateService.translate(createResponse.messageKey, createResponse.messageVariables)
190
- : (createResponse?.message ?? ''));
191
- }
192
- else {
193
- throw new Error(this.translateService.translate('storage.upload.failed'));
194
- }
195
- }
196
- this.navigateTo(['/storage/files']);
197
- }
198
- catch {
199
- this.showError(this.translateService.translate('storage.upload.failed'));
200
- }
201
- finally {
202
- this.isLoading.set(false);
203
- }
204
- }
205
- onCancel() {
206
- this.navigateTo(['/storage/files']);
207
- }
208
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: FileManagerFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: FileManagerFormComponent, isStandalone: true, selector: "lib-file-manager-form", usesInheritance: true, ngImport: i0, template: `
1
+ import { t as FileManagerApiService } from "./flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs";
2
+ import { t as FolderApiService } from "./flusys-ng-storage-folder-api.service-D_fFEuO6.mjs";
3
+ import { t as StorageConfigApiService } from "./flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs";
4
+ import { t as UploadService } from "./flusys-ng-storage-upload.service-CIcEL_Kr.mjs";
5
+ import { BaseStoragePage, formatFileSize, getProviderLabelKey } from "./flusys-ng-storage.mjs";
6
+ import * as i0 from "@angular/core";
7
+ import { Component, computed, effect, inject, signal } from "@angular/core";
8
+ import { toSignal } from "@angular/core/rxjs-interop";
9
+ import { ActivatedRoute } from "@angular/router";
10
+ import { TranslatePipe, TranslateService } from "@flusys/ng-shared";
11
+ import { CheckboxComponent, FButtonDirective, FileUploadComponent, InputTextDirective, SelectComponent, UiIconComponent } from "@flusys/ng-ui";
12
+ import { firstValueFrom } from "rxjs";
13
+ import { FormField, form, required } from "@angular/forms/signals";
14
+ var FileManagerFormComponent = class FileManagerFormComponent extends BaseStoragePage {
15
+ route = inject(ActivatedRoute);
16
+ fileService = inject(FileManagerApiService);
17
+ uploadService = inject(UploadService);
18
+ configService = inject(StorageConfigApiService);
19
+ folderService = inject(FolderApiService);
20
+ translateService = inject(TranslateService);
21
+ routeParams = toSignal(this.route.paramMap);
22
+ initialized = false;
23
+ isLoadingConfigs = signal(false, ...ngDevMode ? [{ debugName: "isLoadingConfigs" }] : /* istanbul ignore next */ []);
24
+ isLoadingFolders = signal(false, ...ngDevMode ? [{ debugName: "isLoadingFolders" }] : /* istanbul ignore next */ []);
25
+ existingFile = signal(null, ...ngDevMode ? [{ debugName: "existingFile" }] : /* istanbul ignore next */ []);
26
+ isEditMode = computed(() => !!this.existingFile(), ...ngDevMode ? [{ debugName: "isEditMode" }] : /* istanbul ignore next */ []);
27
+ selectedFile = signal(null, ...ngDevMode ? [{ debugName: "selectedFile" }] : /* istanbul ignore next */ []);
28
+ availableConfigs = signal([], ...ngDevMode ? [{ debugName: "availableConfigs" }] : /* istanbul ignore next */ []);
29
+ availableFolders = signal([], ...ngDevMode ? [{ debugName: "availableFolders" }] : /* istanbul ignore next */ []);
30
+ formatFileSize = formatFileSize;
31
+ getProviderLabelKey = getProviderLabelKey;
32
+ formModel = signal({
33
+ id: "",
34
+ name: "",
35
+ isPrivate: false,
36
+ folderId: "",
37
+ storageConfigId: ""
38
+ }, ...ngDevMode ? [{ debugName: "formModel" }] : /* istanbul ignore next */ []);
39
+ fileForm = form(this.formModel, (f) => {
40
+ required(f.name, { message: this.translateService.translate("storage.validation.file.name.required") });
41
+ });
42
+ isFormValid = computed(() => this.formModel().name.trim().length > 0, ...ngDevMode ? [{ debugName: "isFormValid" }] : /* istanbul ignore next */ []);
43
+ constructor() {
44
+ super();
45
+ effect(() => {
46
+ const params = this.routeParams();
47
+ if (!params || this.initialized) return;
48
+ this.initialized = true;
49
+ const fileId = params.get("id");
50
+ if (fileId) this.loadFile(fileId);
51
+ else this.loadStorageConfigs();
52
+ this.loadFolders();
53
+ });
54
+ }
55
+ async loadStorageConfigs() {
56
+ this.isLoadingConfigs.set(true);
57
+ try {
58
+ const response = await this.configService.getAll({
59
+ pagination: {
60
+ currentPage: 0,
61
+ pageSize: 100
62
+ },
63
+ filter: {},
64
+ select: [],
65
+ sort: {}
66
+ });
67
+ if (response.success && response.data) {
68
+ this.availableConfigs.set(response.data);
69
+ if (response.data.length === 1) this.formModel.update((m) => ({
70
+ ...m,
71
+ storageConfigId: response.data[0].id
72
+ }));
73
+ }
74
+ } finally {
75
+ this.isLoadingConfigs.set(false);
76
+ }
77
+ }
78
+ async loadFolders() {
79
+ this.isLoadingFolders.set(true);
80
+ try {
81
+ const response = await this.folderService.getAll({
82
+ pagination: {
83
+ currentPage: 0,
84
+ pageSize: 100
85
+ },
86
+ filter: {},
87
+ select: [],
88
+ sort: {}
89
+ });
90
+ if (response.success && response.data) this.availableFolders.set(response.data);
91
+ } catch {} finally {
92
+ this.isLoadingFolders.set(false);
93
+ }
94
+ }
95
+ async loadFile(id) {
96
+ this.isLoading.set(true);
97
+ try {
98
+ const response = await this.fileService.findById(id);
99
+ if (response.success && response.data) {
100
+ const file = response.data;
101
+ this.existingFile.set(file);
102
+ this.formModel.set({
103
+ id: file.id,
104
+ name: file.name,
105
+ isPrivate: file.isPrivate ?? false,
106
+ folderId: file.folderId ?? "",
107
+ storageConfigId: ""
108
+ });
109
+ }
110
+ } catch {
111
+ this.navigateTo(["/storage/files"]);
112
+ } finally {
113
+ this.isLoading.set(false);
114
+ }
115
+ }
116
+ onFileSelect(event) {
117
+ const file = event.files?.[0] || event.currentFiles?.[0];
118
+ if (file) {
119
+ this.selectedFile.set(file);
120
+ this.formModel.update((m) => ({
121
+ ...m,
122
+ name: file.name
123
+ }));
124
+ }
125
+ }
126
+ onFileRemoved() {
127
+ this.selectedFile.set(null);
128
+ }
129
+ async onSubmit(event) {
130
+ event.preventDefault();
131
+ if (!this.isFormValid()) return;
132
+ this.isLoading.set(true);
133
+ try {
134
+ const formValue = this.formModel();
135
+ if (this.isEditMode()) {
136
+ const response = await this.fileService.update({
137
+ id: formValue.id,
138
+ name: formValue.name,
139
+ isPrivate: formValue.isPrivate,
140
+ folderId: formValue.folderId || null
141
+ });
142
+ this.showSuccess(response.messageKey ? this.translateService.translate(response.messageKey, response.messageVariables) : response.message ?? "");
143
+ } else {
144
+ const file = this.selectedFile();
145
+ if (!file) {
146
+ this.showError(this.translateService.translate("storage.error.no.file"));
147
+ return;
148
+ }
149
+ if (!formValue.storageConfigId) {
150
+ this.showError(this.translateService.translate("storage.error.no.config"));
151
+ return;
152
+ }
153
+ const uploadResponse = await firstValueFrom(this.uploadService.uploadSingleFile(file, {
154
+ compress: true,
155
+ quality: 85,
156
+ storageConfigId: formValue.storageConfigId
157
+ }));
158
+ if (uploadResponse.success && uploadResponse.data) {
159
+ const uploadedFileInfo = uploadResponse.data;
160
+ const createResponse = await firstValueFrom(this.fileService.createFile({
161
+ name: formValue.name,
162
+ key: uploadedFileInfo.key,
163
+ contentType: file.type || "application/octet-stream",
164
+ size: Math.round(file.size / 1024).toString(),
165
+ isPrivate: formValue.isPrivate,
166
+ folderId: formValue.folderId || void 0,
167
+ storageConfigId: formValue.storageConfigId
168
+ }));
169
+ this.showSuccess(createResponse?.messageKey ? this.translateService.translate(createResponse.messageKey, createResponse.messageVariables) : createResponse?.message ?? "");
170
+ } else throw new Error(this.translateService.translate("storage.upload.failed"));
171
+ }
172
+ this.navigateTo(["/storage/files"]);
173
+ } catch {
174
+ this.showError(this.translateService.translate("storage.upload.failed"));
175
+ } finally {
176
+ this.isLoading.set(false);
177
+ }
178
+ }
179
+ onCancel() {
180
+ this.navigateTo(["/storage/files"]);
181
+ }
182
+ static ɵfac = i0.ɵɵngDeclareFactory({
183
+ minVersion: "12.0.0",
184
+ version: "22.2.1",
185
+ ngImport: i0,
186
+ type: FileManagerFormComponent,
187
+ deps: [],
188
+ target: i0.ɵɵFactoryTarget.Component
189
+ });
190
+ static ɵcmp = i0.ɵɵngDeclareComponent({
191
+ minVersion: "17.0.0",
192
+ version: "22.2.1",
193
+ type: FileManagerFormComponent,
194
+ isStandalone: true,
195
+ selector: "lib-file-manager-form",
196
+ usesInheritance: true,
197
+ ngImport: i0,
198
+ template: `
210
199
  <div class="card">
211
200
  <div class="mb-4">
212
201
  <h3 class="text-lg sm:text-xl font-semibold">
@@ -437,23 +426,212 @@ class FileManagerFormComponent extends BaseStoragePage {
437
426
  </div>
438
427
  </form>
439
428
  </div>
440
- `, isInline: true, dependencies: [{ kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy", "selectedObject"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "component", type: FileUploadComponent, selector: "f-fileupload", inputs: ["name", "accept", "multiple", "auto", "maxFileSize", "fileLimit", "disabled", "url", "headers", "customUpload", "showUploadButton", "showCancelButton", "chooseLabel", "uploadLabel", "cancelLabel", "removeLabel", "dragDropLabel", "dragDropHintLabel", "chooseIcon", "uploadIcon", "cancelIcon", "previewWidth", "styleClass", "style", "mode"], outputs: ["onSelect", "onRemove", "onClear", "onError", "onUpload", "onProgress", "uploadHandler"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
441
- }
442
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: FileManagerFormComponent, decorators: [{
443
- type: Component,
444
- args: [{
445
- selector: 'lib-file-manager-form',
446
- imports: [
447
- SelectComponent,
448
- UiIconComponent,
449
- FileUploadComponent,
450
- FButtonDirective,
451
- CheckboxComponent,
452
- InputTextDirective,
453
- FormField,
454
- TranslatePipe,
455
- ],
456
- template: `
429
+ `,
430
+ isInline: true,
431
+ dependencies: [
432
+ {
433
+ kind: "component",
434
+ type: SelectComponent,
435
+ selector: "f-select",
436
+ inputs: [
437
+ "options",
438
+ "optionLabel",
439
+ "optionValue",
440
+ "placeholder",
441
+ "disabled",
442
+ "filter",
443
+ "filterBy",
444
+ "filterMatchMode",
445
+ "filterLocale",
446
+ "filterPlaceholder",
447
+ "resetFilterOnHide",
448
+ "autofocusFilter",
449
+ "emptyMessage",
450
+ "emptyFilterMessage",
451
+ "showClear",
452
+ "loading",
453
+ "loadingIcon",
454
+ "dropdownIcon",
455
+ "clearIcon",
456
+ "inputId",
457
+ "invalid",
458
+ "touched",
459
+ "styleClass",
460
+ "style",
461
+ "appendTo",
462
+ "editable",
463
+ "readonly",
464
+ "autofocus",
465
+ "checkmark",
466
+ "group",
467
+ "optionGroupLabel",
468
+ "optionGroupChildren",
469
+ "virtualScroll",
470
+ "virtualScrollItemSize",
471
+ "lazy",
472
+ "selectedObject"
473
+ ],
474
+ outputs: [
475
+ "onFilter",
476
+ "onChange",
477
+ "onShow",
478
+ "onHide",
479
+ "onBlur",
480
+ "onFocus",
481
+ "onClear",
482
+ "onLazyLoad"
483
+ ]
484
+ },
485
+ {
486
+ kind: "component",
487
+ type: UiIconComponent,
488
+ selector: "ui-icon",
489
+ inputs: [
490
+ "name",
491
+ "size",
492
+ "spin",
493
+ "fill",
494
+ "severity"
495
+ ]
496
+ },
497
+ {
498
+ kind: "component",
499
+ type: FileUploadComponent,
500
+ selector: "f-fileupload",
501
+ inputs: [
502
+ "name",
503
+ "accept",
504
+ "multiple",
505
+ "auto",
506
+ "maxFileSize",
507
+ "fileLimit",
508
+ "disabled",
509
+ "url",
510
+ "headers",
511
+ "customUpload",
512
+ "showUploadButton",
513
+ "showCancelButton",
514
+ "chooseLabel",
515
+ "uploadLabel",
516
+ "cancelLabel",
517
+ "removeLabel",
518
+ "dragDropLabel",
519
+ "dragDropHintLabel",
520
+ "chooseIcon",
521
+ "uploadIcon",
522
+ "cancelIcon",
523
+ "previewWidth",
524
+ "styleClass",
525
+ "style",
526
+ "mode"
527
+ ],
528
+ outputs: [
529
+ "onSelect",
530
+ "onRemove",
531
+ "onClear",
532
+ "onError",
533
+ "onUpload",
534
+ "onProgress",
535
+ "uploadHandler"
536
+ ]
537
+ },
538
+ {
539
+ kind: "directive",
540
+ type: FButtonDirective,
541
+ selector: "[fButton]",
542
+ inputs: [
543
+ "severity",
544
+ "text",
545
+ "outlined",
546
+ "link",
547
+ "variant",
548
+ "rounded",
549
+ "raised",
550
+ "fluid",
551
+ "disabled",
552
+ "loading",
553
+ "loadingIcon",
554
+ "size",
555
+ "label",
556
+ "icon",
557
+ "iconPos",
558
+ "ariaLabel",
559
+ "plain"
560
+ ]
561
+ },
562
+ {
563
+ kind: "component",
564
+ type: CheckboxComponent,
565
+ selector: "f-checkbox",
566
+ inputs: [
567
+ "label",
568
+ "binary",
569
+ "disabled",
570
+ "readonly",
571
+ "inputId",
572
+ "invalid",
573
+ "indeterminate",
574
+ "variant",
575
+ "size",
576
+ "touched",
577
+ "styleClass",
578
+ "style",
579
+ "checked"
580
+ ],
581
+ outputs: [
582
+ "onChange",
583
+ "onBlur",
584
+ "touch",
585
+ "checkedChange"
586
+ ]
587
+ },
588
+ {
589
+ kind: "directive",
590
+ type: InputTextDirective,
591
+ selector: "[fInputText]",
592
+ inputs: [
593
+ "invalid",
594
+ "touched",
595
+ "variant",
596
+ "size",
597
+ "fluid"
598
+ ]
599
+ },
600
+ {
601
+ kind: "directive",
602
+ type: FormField,
603
+ selector: "[formField]",
604
+ inputs: ["formField"],
605
+ exportAs: ["formField"]
606
+ },
607
+ {
608
+ kind: "pipe",
609
+ type: TranslatePipe,
610
+ name: "translate"
611
+ }
612
+ ]
613
+ });
614
+ };
615
+ i0.ɵɵngDeclareClassMetadata({
616
+ minVersion: "12.0.0",
617
+ version: "22.2.1",
618
+ ngImport: i0,
619
+ type: FileManagerFormComponent,
620
+ decorators: [{
621
+ type: Component,
622
+ args: [{
623
+ selector: "lib-file-manager-form",
624
+ imports: [
625
+ SelectComponent,
626
+ UiIconComponent,
627
+ FileUploadComponent,
628
+ FButtonDirective,
629
+ CheckboxComponent,
630
+ InputTextDirective,
631
+ FormField,
632
+ TranslatePipe
633
+ ],
634
+ template: `
457
635
  <div class="card">
458
636
  <div class="mb-4">
459
637
  <h3 class="text-lg sm:text-xl font-semibold">
@@ -684,9 +862,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
684
862
  </div>
685
863
  </form>
686
864
  </div>
687
- `,
688
- }]
689
- }], ctorParameters: () => [] });
690
-
865
+ `
866
+ }]
867
+ }],
868
+ ctorParameters: () => []
869
+ });
691
870
  export { FileManagerFormComponent };
692
- //# sourceMappingURL=flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs.map
871
+
872
+ //# sourceMappingURL=flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs.map