@flusys/ng-storage 9.1.0 → 9.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs +43 -0
- package/fesm2022/flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs → flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs} +411 -231
- package/fesm2022/flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-file-manager-list.component-a7YHw1Gz.mjs → flusys-ng-storage-file-manager-list.component-4_LdJOtH.mjs} +355 -145
- package/fesm2022/flusys-ng-storage-file-manager-list.component-4_LdJOtH.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-folder-api.service-D_fFEuO6.mjs +33 -0
- package/fesm2022/flusys-ng-storage-folder-api.service-D_fFEuO6.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-folder-form.component-7C2oWijb.mjs +298 -0
- package/fesm2022/flusys-ng-storage-folder-form.component-7C2oWijb.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-folder-list.component-BDrBAcCS.mjs → flusys-ng-storage-folder-list.component-BdSBM_DB.mjs} +284 -77
- package/fesm2022/flusys-ng-storage-folder-list.component-BdSBM_DB.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs +33 -0
- package/fesm2022/flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-storage-config-form.component-B4wBfzVs.mjs → flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs} +369 -214
- package/fesm2022/flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-storage-config-list.component-CCkZY--j.mjs → flusys-ng-storage-storage-config-list.component-Dh9JkuZP.mjs} +303 -83
- package/fesm2022/flusys-ng-storage-storage-config-list.component-Dh9JkuZP.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-storage-container.component-EWGNoozU.mjs +124 -0
- package/fesm2022/flusys-ng-storage-storage-container.component-EWGNoozU.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-upload.service-CIcEL_Kr.mjs +113 -0
- package/fesm2022/flusys-ng-storage-upload.service-CIcEL_Kr.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage.mjs +611 -876
- package/fesm2022/flusys-ng-storage.mjs.map +1 -1
- package/package.json +5 -5
- package/types/flusys-ng-storage.d.ts +254 -292
- package/fesm2022/flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-file-manager-list.component-a7YHw1Gz.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-folder-form.component-BCzVzmRn.mjs +0 -225
- package/fesm2022/flusys-ng-storage-folder-form.component-BCzVzmRn.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-folder-list.component-BDrBAcCS.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-storage-config-form.component-B4wBfzVs.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-storage-config-list.component-CCkZY--j.mjs.map +0 -1
|
@@ -1,197 +1,180 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { InputTextDirective, PasswordComponent, SelectComponent, ToggleSwitchComponent,
|
|
9
|
-
|
|
1
|
+
import { t as StorageConfigApiService } from "./flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs";
|
|
2
|
+
import { BaseStoragePage, FileLocationEnum, STORAGE_PROVIDER_OPTIONS } from "./flusys-ng-storage.mjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { Component, computed, effect, inject, signal } from "@angular/core";
|
|
5
|
+
import { toSignal } from "@angular/core/rxjs-interop";
|
|
6
|
+
import { ActivatedRoute } from "@angular/router";
|
|
7
|
+
import { TranslatePipe, TranslateService } from "@flusys/ng-shared";
|
|
8
|
+
import { FButtonDirective, InputTextDirective, PasswordComponent, SelectComponent, ToggleSwitchComponent, UiIconComponent } from "@flusys/ng-ui";
|
|
9
|
+
import { FormField, form, required } from "@angular/forms/signals";
|
|
10
10
|
const DEFAULT_FORM_MODEL = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
id: "",
|
|
12
|
+
name: "",
|
|
13
|
+
storage: FileLocationEnum.AWS,
|
|
14
|
+
isActive: true,
|
|
15
|
+
isDefault: false,
|
|
16
|
+
awsRegion: "",
|
|
17
|
+
awsBucket: "",
|
|
18
|
+
awsAccessKeyId: "",
|
|
19
|
+
awsSecretAccessKey: "",
|
|
20
|
+
awsEndpoint: "",
|
|
21
|
+
azureAccountName: "",
|
|
22
|
+
azureAccountKey: "",
|
|
23
|
+
azureContainerName: "",
|
|
24
|
+
sftpHost: "",
|
|
25
|
+
sftpPort: "22",
|
|
26
|
+
sftpUsername: "",
|
|
27
|
+
sftpPassword: "",
|
|
28
|
+
sftpBasePath: "",
|
|
29
|
+
localBasePath: ""
|
|
30
30
|
};
|
|
31
|
-
class StorageConfigFormComponent extends BaseStoragePage {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
};
|
|
179
|
-
case FileLocationEnum.SFTP:
|
|
180
|
-
return {
|
|
181
|
-
host: formValue.sftpHost,
|
|
182
|
-
port: formValue.sftpPort ? parseInt(formValue.sftpPort, 10) : 22,
|
|
183
|
-
username: formValue.sftpUsername,
|
|
184
|
-
password: formValue.sftpPassword,
|
|
185
|
-
basePath: formValue.sftpBasePath,
|
|
186
|
-
};
|
|
187
|
-
case FileLocationEnum.LOCAL:
|
|
188
|
-
return { basePath: formValue.localBasePath };
|
|
189
|
-
default:
|
|
190
|
-
return {};
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: StorageConfigFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
194
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: StorageConfigFormComponent, isStandalone: true, selector: "lib-storage-config-form", usesInheritance: true, ngImport: i0, template: `
|
|
31
|
+
var StorageConfigFormComponent = class StorageConfigFormComponent extends BaseStoragePage {
|
|
32
|
+
route = inject(ActivatedRoute);
|
|
33
|
+
configService = inject(StorageConfigApiService);
|
|
34
|
+
translateService = inject(TranslateService);
|
|
35
|
+
routeParams = toSignal(this.route.paramMap);
|
|
36
|
+
initialized = false;
|
|
37
|
+
fileLocationEnum = FileLocationEnum;
|
|
38
|
+
storageProviderOptions = STORAGE_PROVIDER_OPTIONS;
|
|
39
|
+
existingConfig = signal(null, ...ngDevMode ? [{ debugName: "existingConfig" }] : /* istanbul ignore next */ []);
|
|
40
|
+
isEditMode = computed(() => !!this.existingConfig(), ...ngDevMode ? [{ debugName: "isEditMode" }] : /* istanbul ignore next */ []);
|
|
41
|
+
formModel = signal({ ...DEFAULT_FORM_MODEL }, ...ngDevMode ? [{ debugName: "formModel" }] : /* istanbul ignore next */ []);
|
|
42
|
+
configForm = form(this.formModel, (f) => {
|
|
43
|
+
required(f.name, { message: this.translateService.translate("storage.validation.config.name.required") });
|
|
44
|
+
});
|
|
45
|
+
selectedProvider = computed(() => this.formModel().storage, ...ngDevMode ? [{ debugName: "selectedProvider" }] : /* istanbul ignore next */ []);
|
|
46
|
+
isFormValid = computed(() => this.formModel().name.trim().length > 0, ...ngDevMode ? [{ debugName: "isFormValid" }] : /* istanbul ignore next */ []);
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
effect(() => {
|
|
50
|
+
const params = this.routeParams();
|
|
51
|
+
if (!params || this.initialized) return;
|
|
52
|
+
this.initialized = true;
|
|
53
|
+
const configId = params.get("id");
|
|
54
|
+
if (configId && configId !== "new") this.loadConfig(configId);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async loadConfig(id) {
|
|
58
|
+
this.isLoading.set(true);
|
|
59
|
+
try {
|
|
60
|
+
const response = await this.configService.findById(id);
|
|
61
|
+
if (response.success && response.data) {
|
|
62
|
+
const config = response.data;
|
|
63
|
+
this.existingConfig.set(config);
|
|
64
|
+
this.formModel.update((m) => ({
|
|
65
|
+
...m,
|
|
66
|
+
id: config.id,
|
|
67
|
+
name: config.name,
|
|
68
|
+
storage: config.storage,
|
|
69
|
+
isActive: config.isActive ?? true,
|
|
70
|
+
isDefault: config.isDefault ?? false,
|
|
71
|
+
...this.extractProviderConfig(config)
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
} catch {
|
|
75
|
+
this.navigateTo(["/storage/configs"]);
|
|
76
|
+
} finally {
|
|
77
|
+
this.isLoading.set(false);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
async onSubmit(event) {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
if (!this.isFormValid()) return;
|
|
83
|
+
this.isLoading.set(true);
|
|
84
|
+
try {
|
|
85
|
+
const formValue = this.formModel();
|
|
86
|
+
const config = this.buildProviderConfig(formValue);
|
|
87
|
+
const response = this.isEditMode() ? await this.configService.update({
|
|
88
|
+
id: formValue.id,
|
|
89
|
+
name: formValue.name,
|
|
90
|
+
storage: formValue.storage,
|
|
91
|
+
config,
|
|
92
|
+
isActive: formValue.isActive,
|
|
93
|
+
isDefault: formValue.isDefault
|
|
94
|
+
}) : await this.configService.insert({
|
|
95
|
+
name: formValue.name,
|
|
96
|
+
storage: formValue.storage,
|
|
97
|
+
config,
|
|
98
|
+
isActive: formValue.isActive,
|
|
99
|
+
isDefault: formValue.isDefault
|
|
100
|
+
});
|
|
101
|
+
this.showSuccess(response.messageKey ? this.translateService.translate(response.messageKey, response.messageVariables) : response.message ?? "");
|
|
102
|
+
this.navigateTo(["/storage/configs"]);
|
|
103
|
+
} catch {} finally {
|
|
104
|
+
this.isLoading.set(false);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
onCancel() {
|
|
108
|
+
this.navigateTo(["/storage/configs"]);
|
|
109
|
+
}
|
|
110
|
+
extractProviderConfig(config) {
|
|
111
|
+
const c = config.config ?? {};
|
|
112
|
+
switch (config.storage) {
|
|
113
|
+
case FileLocationEnum.AWS: return {
|
|
114
|
+
awsRegion: c["region"] || "",
|
|
115
|
+
awsBucket: c["bucket"] || "",
|
|
116
|
+
awsAccessKeyId: c["accessKeyId"] || "",
|
|
117
|
+
awsSecretAccessKey: c["secretAccessKey"] || "",
|
|
118
|
+
awsEndpoint: c["endpoint"] || ""
|
|
119
|
+
};
|
|
120
|
+
case FileLocationEnum.AZURE: return {
|
|
121
|
+
azureAccountName: c["accountName"] || "",
|
|
122
|
+
azureAccountKey: c["accountKey"] || "",
|
|
123
|
+
azureContainerName: c["containerName"] || ""
|
|
124
|
+
};
|
|
125
|
+
case FileLocationEnum.SFTP: return {
|
|
126
|
+
sftpHost: c["host"] || "",
|
|
127
|
+
sftpPort: (c["port"] || 22).toString(),
|
|
128
|
+
sftpUsername: c["username"] || "",
|
|
129
|
+
sftpPassword: c["password"] || "",
|
|
130
|
+
sftpBasePath: c["basePath"] || ""
|
|
131
|
+
};
|
|
132
|
+
case FileLocationEnum.LOCAL: return { localBasePath: c["basePath"] || "" };
|
|
133
|
+
default: return {};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
buildProviderConfig(formValue) {
|
|
137
|
+
switch (formValue.storage) {
|
|
138
|
+
case FileLocationEnum.AWS: return {
|
|
139
|
+
region: formValue.awsRegion,
|
|
140
|
+
bucket: formValue.awsBucket,
|
|
141
|
+
accessKeyId: formValue.awsAccessKeyId,
|
|
142
|
+
secretAccessKey: formValue.awsSecretAccessKey,
|
|
143
|
+
...formValue.awsEndpoint && { endpoint: formValue.awsEndpoint }
|
|
144
|
+
};
|
|
145
|
+
case FileLocationEnum.AZURE: return {
|
|
146
|
+
accountName: formValue.azureAccountName,
|
|
147
|
+
accountKey: formValue.azureAccountKey,
|
|
148
|
+
containerName: formValue.azureContainerName
|
|
149
|
+
};
|
|
150
|
+
case FileLocationEnum.SFTP: return {
|
|
151
|
+
host: formValue.sftpHost,
|
|
152
|
+
port: formValue.sftpPort ? parseInt(formValue.sftpPort, 10) : 22,
|
|
153
|
+
username: formValue.sftpUsername,
|
|
154
|
+
password: formValue.sftpPassword,
|
|
155
|
+
basePath: formValue.sftpBasePath
|
|
156
|
+
};
|
|
157
|
+
case FileLocationEnum.LOCAL: return { basePath: formValue.localBasePath };
|
|
158
|
+
default: return {};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
162
|
+
minVersion: "12.0.0",
|
|
163
|
+
version: "22.2.1",
|
|
164
|
+
ngImport: i0,
|
|
165
|
+
type: StorageConfigFormComponent,
|
|
166
|
+
deps: [],
|
|
167
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
168
|
+
});
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
170
|
+
minVersion: "17.0.0",
|
|
171
|
+
version: "22.2.1",
|
|
172
|
+
type: StorageConfigFormComponent,
|
|
173
|
+
isStandalone: true,
|
|
174
|
+
selector: "lib-storage-config-form",
|
|
175
|
+
usesInheritance: true,
|
|
176
|
+
ngImport: i0,
|
|
177
|
+
template: `
|
|
195
178
|
<div class="card">
|
|
196
179
|
<h3 class="text-lg sm:text-xl font-semibold mb-4">
|
|
197
180
|
{{
|
|
@@ -525,23 +508,193 @@ class StorageConfigFormComponent extends BaseStoragePage {
|
|
|
525
508
|
</div>
|
|
526
509
|
</form>
|
|
527
510
|
</div>
|
|
528
|
-
`,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
511
|
+
`,
|
|
512
|
+
isInline: true,
|
|
513
|
+
dependencies: [
|
|
514
|
+
{
|
|
515
|
+
kind: "directive",
|
|
516
|
+
type: InputTextDirective,
|
|
517
|
+
selector: "[fInputText]",
|
|
518
|
+
inputs: [
|
|
519
|
+
"invalid",
|
|
520
|
+
"touched",
|
|
521
|
+
"variant",
|
|
522
|
+
"size",
|
|
523
|
+
"fluid"
|
|
524
|
+
]
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
kind: "component",
|
|
528
|
+
type: PasswordComponent,
|
|
529
|
+
selector: "f-password",
|
|
530
|
+
inputs: [
|
|
531
|
+
"toggleMask",
|
|
532
|
+
"feedback",
|
|
533
|
+
"disabled",
|
|
534
|
+
"placeholder",
|
|
535
|
+
"inputId",
|
|
536
|
+
"invalid",
|
|
537
|
+
"touched",
|
|
538
|
+
"inputStyleClass",
|
|
539
|
+
"styleClass",
|
|
540
|
+
"style",
|
|
541
|
+
"ariaDescribedby",
|
|
542
|
+
"autocomplete",
|
|
543
|
+
"variant",
|
|
544
|
+
"size",
|
|
545
|
+
"fluid",
|
|
546
|
+
"appendTo",
|
|
547
|
+
"promptLabel",
|
|
548
|
+
"weakLabel",
|
|
549
|
+
"mediumLabel",
|
|
550
|
+
"strongLabel",
|
|
551
|
+
"mediumRegex",
|
|
552
|
+
"strongRegex"
|
|
553
|
+
],
|
|
554
|
+
outputs: ["onBlur", "onFocus"]
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
kind: "component",
|
|
558
|
+
type: SelectComponent,
|
|
559
|
+
selector: "f-select",
|
|
560
|
+
inputs: [
|
|
561
|
+
"options",
|
|
562
|
+
"optionLabel",
|
|
563
|
+
"optionValue",
|
|
564
|
+
"placeholder",
|
|
565
|
+
"disabled",
|
|
566
|
+
"filter",
|
|
567
|
+
"filterBy",
|
|
568
|
+
"filterMatchMode",
|
|
569
|
+
"filterLocale",
|
|
570
|
+
"filterPlaceholder",
|
|
571
|
+
"resetFilterOnHide",
|
|
572
|
+
"autofocusFilter",
|
|
573
|
+
"emptyMessage",
|
|
574
|
+
"emptyFilterMessage",
|
|
575
|
+
"showClear",
|
|
576
|
+
"loading",
|
|
577
|
+
"loadingIcon",
|
|
578
|
+
"dropdownIcon",
|
|
579
|
+
"clearIcon",
|
|
580
|
+
"inputId",
|
|
581
|
+
"invalid",
|
|
582
|
+
"touched",
|
|
583
|
+
"styleClass",
|
|
584
|
+
"style",
|
|
585
|
+
"appendTo",
|
|
586
|
+
"editable",
|
|
587
|
+
"readonly",
|
|
588
|
+
"autofocus",
|
|
589
|
+
"checkmark",
|
|
590
|
+
"group",
|
|
591
|
+
"optionGroupLabel",
|
|
592
|
+
"optionGroupChildren",
|
|
593
|
+
"virtualScroll",
|
|
594
|
+
"virtualScrollItemSize",
|
|
595
|
+
"lazy",
|
|
596
|
+
"selectedObject"
|
|
597
|
+
],
|
|
598
|
+
outputs: [
|
|
599
|
+
"onFilter",
|
|
600
|
+
"onChange",
|
|
601
|
+
"onShow",
|
|
602
|
+
"onHide",
|
|
603
|
+
"onBlur",
|
|
604
|
+
"onFocus",
|
|
605
|
+
"onClear",
|
|
606
|
+
"onLazyLoad"
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
kind: "component",
|
|
611
|
+
type: ToggleSwitchComponent,
|
|
612
|
+
selector: "f-toggleswitch",
|
|
613
|
+
inputs: [
|
|
614
|
+
"disabled",
|
|
615
|
+
"readonly",
|
|
616
|
+
"invalid",
|
|
617
|
+
"ariaLabel",
|
|
618
|
+
"trueValue",
|
|
619
|
+
"falseValue",
|
|
620
|
+
"inputId",
|
|
621
|
+
"size",
|
|
622
|
+
"tabindex",
|
|
623
|
+
"styleClass",
|
|
624
|
+
"style"
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
kind: "directive",
|
|
629
|
+
type: FButtonDirective,
|
|
630
|
+
selector: "[fButton]",
|
|
631
|
+
inputs: [
|
|
632
|
+
"severity",
|
|
633
|
+
"text",
|
|
634
|
+
"outlined",
|
|
635
|
+
"link",
|
|
636
|
+
"variant",
|
|
637
|
+
"rounded",
|
|
638
|
+
"raised",
|
|
639
|
+
"fluid",
|
|
640
|
+
"disabled",
|
|
641
|
+
"loading",
|
|
642
|
+
"loadingIcon",
|
|
643
|
+
"size",
|
|
644
|
+
"label",
|
|
645
|
+
"icon",
|
|
646
|
+
"iconPos",
|
|
647
|
+
"ariaLabel",
|
|
648
|
+
"plain"
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
kind: "component",
|
|
653
|
+
type: UiIconComponent,
|
|
654
|
+
selector: "ui-icon",
|
|
655
|
+
inputs: [
|
|
656
|
+
"name",
|
|
657
|
+
"size",
|
|
658
|
+
"spin",
|
|
659
|
+
"fill",
|
|
660
|
+
"severity"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
kind: "directive",
|
|
665
|
+
type: FormField,
|
|
666
|
+
selector: "[formField]",
|
|
667
|
+
inputs: ["formField"],
|
|
668
|
+
exportAs: ["formField"]
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
kind: "pipe",
|
|
672
|
+
type: TranslatePipe,
|
|
673
|
+
name: "translate"
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
});
|
|
677
|
+
};
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
679
|
+
minVersion: "12.0.0",
|
|
680
|
+
version: "22.2.1",
|
|
681
|
+
ngImport: i0,
|
|
682
|
+
type: StorageConfigFormComponent,
|
|
683
|
+
decorators: [{
|
|
684
|
+
type: Component,
|
|
685
|
+
args: [{
|
|
686
|
+
selector: "lib-storage-config-form",
|
|
687
|
+
imports: [
|
|
688
|
+
InputTextDirective,
|
|
689
|
+
PasswordComponent,
|
|
690
|
+
SelectComponent,
|
|
691
|
+
ToggleSwitchComponent,
|
|
692
|
+
FButtonDirective,
|
|
693
|
+
UiIconComponent,
|
|
694
|
+
FormField,
|
|
695
|
+
TranslatePipe
|
|
696
|
+
],
|
|
697
|
+
template: `
|
|
545
698
|
<div class="card">
|
|
546
699
|
<h3 class="text-lg sm:text-xl font-semibold mb-4">
|
|
547
700
|
{{
|
|
@@ -875,9 +1028,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
875
1028
|
</div>
|
|
876
1029
|
</form>
|
|
877
1030
|
</div>
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
1031
|
+
`
|
|
1032
|
+
}]
|
|
1033
|
+
}],
|
|
1034
|
+
ctorParameters: () => []
|
|
1035
|
+
});
|
|
882
1036
|
export { StorageConfigFormComponent };
|
|
883
|
-
|
|
1037
|
+
|
|
1038
|
+
//# sourceMappingURL=flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs.map
|