@alauda-fe/crd-form 0.0.9 → 1.0.1-alpha.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.
- package/README.md +7 -0
- package/fesm2022/alauda-fe-crd-form.mjs +3100 -0
- package/fesm2022/alauda-fe-crd-form.mjs.map +1 -0
- package/package.json +12 -14
- package/types/alauda-fe-crd-form.d.ts +936 -0
- package/esm2022/alauda-fe-crd-form.mjs +0 -5
- package/esm2022/lib/abstract/base-array.mjs +0 -117
- package/esm2022/lib/crd-form/component.mjs +0 -325
- package/esm2022/lib/crd-form/helper.mjs +0 -32
- package/esm2022/lib/crd-form.module.mjs +0 -115
- package/esm2022/lib/field-controls/expressions/expression-core.mjs +0 -2
- package/esm2022/lib/field-controls/expressions/props-expression.mjs +0 -58
- package/esm2022/lib/field-controls/form-item.component.mjs +0 -185
- package/esm2022/lib/field-controls/index.mjs +0 -8
- package/esm2022/lib/field-controls/module.mjs +0 -143
- package/esm2022/lib/field-controls/operand-advanced-field-group.component.mjs +0 -80
- package/esm2022/lib/field-controls/operand-array-field-group.component.mjs +0 -112
- package/esm2022/lib/field-controls/operand-field-group.component.mjs +0 -88
- package/esm2022/lib/field-controls/operand-field.component.mjs +0 -877
- package/esm2022/lib/field-controls/widgets/array-table/component.mjs +0 -109
- package/esm2022/lib/field-controls/widgets/basic-auth-secret/component.mjs +0 -116
- package/esm2022/lib/field-controls/widgets/basic-auth-secret/create/component.mjs +0 -211
- package/esm2022/lib/field-controls/widgets/basic-auth-secret/type.mjs +0 -2
- package/esm2022/lib/field-controls/widgets/index.mjs +0 -8
- package/esm2022/lib/field-controls/widgets/k8s-resource-prefix/component.mjs +0 -169
- package/esm2022/lib/field-controls/widgets/k8s-resource-prefix/util.mjs +0 -40
- package/esm2022/lib/field-controls/widgets/link/component.mjs +0 -68
- package/esm2022/lib/field-controls/widgets/resource-requirements/resource-requirements.component.mjs +0 -521
- package/esm2022/lib/field-controls/widgets/utils.mjs +0 -73
- package/esm2022/lib/field-controls/widgets/yaml-editor/yaml-editor.component.mjs +0 -94
- package/esm2022/lib/field-widgets/htpasswd/component.mjs +0 -40
- package/esm2022/lib/field-widgets/htpasswd/form.mjs +0 -240
- package/esm2022/lib/field-widgets/htpasswd/index.mjs +0 -4
- package/esm2022/lib/field-widgets/htpasswd/module.mjs +0 -54
- package/esm2022/lib/field-widgets/htpasswd/utils.mjs +0 -38
- package/esm2022/lib/field-widgets/index.mjs +0 -2
- package/esm2022/lib/remote-widgets/constants.mjs +0 -4
- package/esm2022/lib/remote-widgets/index.mjs +0 -4
- package/esm2022/lib/remote-widgets/remote-widget.service.mjs +0 -42
- package/esm2022/lib/remote-widgets/token.mjs +0 -7
- package/esm2022/lib/spec-descriptors/capability/capability.component.mjs +0 -139
- package/esm2022/lib/spec-descriptors/capability-list/capability-list.component.mjs +0 -189
- package/esm2022/lib/spec-descriptors/index.mjs +0 -4
- package/esm2022/lib/spec-descriptors/util.mjs +0 -13
- package/esm2022/lib/types/index.mjs +0 -89
- package/esm2022/lib/utils/capability.mjs +0 -294
- package/esm2022/lib/utils/constant.mjs +0 -22
- package/esm2022/lib/utils/helper.mjs +0 -196
- package/esm2022/lib/utils/index.mjs +0 -6
- package/esm2022/lib/utils/service-model.mjs +0 -12
- package/esm2022/lib/utils/util.mjs +0 -307
- package/esm2022/public-api.mjs +0 -13
- package/index.d.ts +0 -5
- package/lib/abstract/base-array.d.ts +0 -31
- package/lib/crd-form/component.d.ts +0 -58
- package/lib/crd-form/helper.d.ts +0 -7
- package/lib/crd-form.module.d.ts +0 -15
- package/lib/field-controls/expressions/expression-core.d.ts +0 -6
- package/lib/field-controls/expressions/props-expression.d.ts +0 -36
- package/lib/field-controls/form-item.component.d.ts +0 -18
- package/lib/field-controls/index.d.ts +0 -7
- package/lib/field-controls/module.d.ts +0 -23
- package/lib/field-controls/operand-advanced-field-group.component.d.ts +0 -16
- package/lib/field-controls/operand-array-field-group.component.d.ts +0 -8
- package/lib/field-controls/operand-field-group.component.d.ts +0 -21
- package/lib/field-controls/operand-field.component.d.ts +0 -109
- package/lib/field-controls/widgets/array-table/component.d.ts +0 -8
- package/lib/field-controls/widgets/basic-auth-secret/component.d.ts +0 -26
- package/lib/field-controls/widgets/basic-auth-secret/create/component.d.ts +0 -45
- package/lib/field-controls/widgets/basic-auth-secret/type.d.ts +0 -11
- package/lib/field-controls/widgets/index.d.ts +0 -7
- package/lib/field-controls/widgets/k8s-resource-prefix/component.d.ts +0 -35
- package/lib/field-controls/widgets/k8s-resource-prefix/util.d.ts +0 -3
- package/lib/field-controls/widgets/link/component.d.ts +0 -20
- package/lib/field-controls/widgets/resource-requirements/resource-requirements.component.d.ts +0 -85
- package/lib/field-controls/widgets/utils.d.ts +0 -17
- package/lib/field-controls/widgets/yaml-editor/yaml-editor.component.d.ts +0 -36
- package/lib/field-widgets/htpasswd/component.d.ts +0 -9
- package/lib/field-widgets/htpasswd/form.d.ts +0 -34
- package/lib/field-widgets/htpasswd/index.d.ts +0 -3
- package/lib/field-widgets/htpasswd/module.d.ts +0 -13
- package/lib/field-widgets/htpasswd/utils.d.ts +0 -15
- package/lib/field-widgets/index.d.ts +0 -1
- package/lib/remote-widgets/constants.d.ts +0 -3
- package/lib/remote-widgets/index.d.ts +0 -3
- package/lib/remote-widgets/remote-widget.service.d.ts +0 -28
- package/lib/remote-widgets/token.d.ts +0 -3
- package/lib/spec-descriptors/capability/capability.component.d.ts +0 -20
- package/lib/spec-descriptors/capability-list/capability-list.component.d.ts +0 -34
- package/lib/spec-descriptors/index.d.ts +0 -3
- package/lib/spec-descriptors/util.d.ts +0 -4
- package/lib/types/index.d.ts +0 -136
- package/lib/utils/capability.d.ts +0 -61
- package/lib/utils/constant.d.ts +0 -12
- package/lib/utils/helper.d.ts +0 -58
- package/lib/utils/index.d.ts +0 -5
- package/lib/utils/service-model.d.ts +0 -44
- package/lib/utils/util.d.ts +0 -44
- package/public-api.d.ts +0 -9
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
import * as _alauda_fe_crd_form from '@alauda-fe/crd-form';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnChanges, EventEmitter, SimpleChanges, InjectionToken, OnInit, OnDestroy, AfterViewInit } from '@angular/core';
|
|
4
|
+
import * as _alauda_fe_dynamic_plugin_sdk from '@alauda-fe/dynamic-plugin-sdk';
|
|
5
|
+
import { JSONSchema6TypeName, Dictionary, StringMap, OpenAPIV3SchemaObject, Translation, KubernetesResource, TranslateService, Secret } from '@alauda-fe/dynamic-plugin-sdk';
|
|
6
|
+
import * as _angular_forms from '@angular/forms';
|
|
7
|
+
import { ValidationErrors, NgForm, AbstractControl, FormControl, ControlContainer, FormGroup, FormGroupDirective } from '@angular/forms';
|
|
8
|
+
import { Map as Map$1 } from 'immutable';
|
|
9
|
+
import { LabelPosition } from '@alauda/ui';
|
|
10
|
+
import * as _angular_cdk_portal from '@angular/cdk/portal';
|
|
11
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
12
|
+
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
|
13
|
+
import * as _alauda_code_editor from '@alauda/code-editor';
|
|
14
|
+
import { CodeEditorActionsConfig, MonacoEditorOptions } from '@alauda/code-editor';
|
|
15
|
+
import * as _alauda_fe_dynamic_plugin_shared from '@alauda-fe/dynamic-plugin-shared';
|
|
16
|
+
import { Encoding, ResourceRequirementStrict, ResourceRequirementFormModal, getResourceValue, getResourceViewModel } from '@alauda-fe/dynamic-plugin-shared';
|
|
17
|
+
import { BaseResourceFormComponent, BaseResourceFormGroupComponent } from 'ng-resource-form-util';
|
|
18
|
+
|
|
19
|
+
declare enum Validations {
|
|
20
|
+
maximum = "maximum",
|
|
21
|
+
minimum = "minimum",
|
|
22
|
+
maxLength = "maxLength",
|
|
23
|
+
minLength = "minLength",
|
|
24
|
+
pattern = "pattern",
|
|
25
|
+
required = "required"
|
|
26
|
+
}
|
|
27
|
+
declare const SpecCapabilityUIPrefix = "urn:alm:descriptor:com.tectonic.ui";
|
|
28
|
+
declare const SpecCapabilityWidgetsPrefix = "urn:alm:descriptor:widgets";
|
|
29
|
+
declare enum SpecCapability {
|
|
30
|
+
/**
|
|
31
|
+
* 表单 UI 控件
|
|
32
|
+
*/
|
|
33
|
+
text = "urn:alm:descriptor:com.tectonic.ui:text",
|
|
34
|
+
textarea = "urn:alm:descriptor:com.tectonic.ui:textarea",
|
|
35
|
+
yaml = "urn:alm:descriptor:com.tectonic.ui:yaml",
|
|
36
|
+
number = "urn:alm:descriptor:com.tectonic.ui:number",
|
|
37
|
+
podCount = "urn:alm:descriptor:com.tectonic.ui:podCount",
|
|
38
|
+
booleanSwitch = "urn:alm:descriptor:com.tectonic.ui:booleanSwitch",
|
|
39
|
+
radio = "urn:alm:descriptor:com.tectonic.ui:radio:",
|
|
40
|
+
tagsInput = "urn:alm:descriptor:com.tectonic.ui:tagsInput",
|
|
41
|
+
select = "urn:alm:descriptor:com.tectonic.ui:select:",
|
|
42
|
+
password = "urn:alm:descriptor:com.tectonic.ui:password",
|
|
43
|
+
confirmPassword = "urn:alm:descriptor:com.tectonic.ui:password:confirm",
|
|
44
|
+
externalPassword = "urn:alm:descriptor:com.tectonic.ui:externalPassword",
|
|
45
|
+
widgets = "urn:alm:descriptor:widgets:",
|
|
46
|
+
remote = "urn:alm:descriptor:remote:",
|
|
47
|
+
k8sResourcePrefix = "urn:alm:descriptor:io.kubernetes:",
|
|
48
|
+
basicAuthSecret = "urn:alm:descriptor:com.tectonic.ui:basicAuthSecret",
|
|
49
|
+
resourceRequirements = "urn:alm:descriptor:com.tectonic.ui:resourceRequirements",
|
|
50
|
+
arrayFieldGroup = "urn:alm:descriptor:com.tectonic.ui:arrayFieldGroup:",
|
|
51
|
+
arrayTable = "urn:alm:descriptor:widgets:common:arrayTable",
|
|
52
|
+
array = "urn:alm:descriptor:com.tectonic.ui:array",
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated
|
|
55
|
+
*/
|
|
56
|
+
object = "urn:alm:descriptor:com.tectonic.ui:object",
|
|
57
|
+
/**
|
|
58
|
+
* aui-form 表单元素
|
|
59
|
+
*/
|
|
60
|
+
label = "urn:alm:descriptor:label:",
|
|
61
|
+
description = "urn:alm:descriptor:description:",
|
|
62
|
+
placeholder = "urn:alm:descriptor:placeholder:",
|
|
63
|
+
tooltip = "urn:alm:descriptor:tooltip:",
|
|
64
|
+
descriptionAsLink = "urn:alm:descriptor:descriptionAsLink",// 存在为 true,不设置为 false
|
|
65
|
+
docOption = "urn:alm:descriptor:docOption:",// docOption:{product}:{path}
|
|
66
|
+
docLink = "urn:alm:descriptor:docLink:",// docOption:{link}
|
|
67
|
+
validation = "urn:alm:descriptor:com.tectonic.ui:validation:",
|
|
68
|
+
copyable = "urn:alm:descriptor:copyable",
|
|
69
|
+
/**
|
|
70
|
+
* 表单布局/控制能力
|
|
71
|
+
*/
|
|
72
|
+
hidden = "urn:alm:descriptor:com.tectonic.ui:hidden",
|
|
73
|
+
defaultValue = "urn:alm:descriptor:com.tectonic.default:",
|
|
74
|
+
fieldGroup = "urn:alm:descriptor:com.tectonic.ui:fieldGroup:",
|
|
75
|
+
advanced = "urn:alm:descriptor:com.tectonic.ui:advanced",
|
|
76
|
+
fieldDependency = "urn:alm:descriptor:com.tectonic.ui:fieldDependency:",
|
|
77
|
+
oneOf = "urn:alm:descriptor:oneOf:",
|
|
78
|
+
/**
|
|
79
|
+
* UI 控件特性扩展
|
|
80
|
+
*/
|
|
81
|
+
expression = "urn:alm:descriptor:expression:",
|
|
82
|
+
yamlActionsDisabled = "urn:alm:descriptor:yaml:actions:disabled:",
|
|
83
|
+
yamlResult = "urn:alm:descriptor:yaml:result:",
|
|
84
|
+
folded = "urn:alm:descriptor:com.tectonic.ui:folded",
|
|
85
|
+
emptyArray = "urn:alm:descriptor:com.tectonic.ui:emptyArray",
|
|
86
|
+
multiple = "urn:alm:descriptor:com.tectonic.ui:multiple",
|
|
87
|
+
allowCreate = "urn:alm:descriptor:com.tectonic.ui:allowCreate",
|
|
88
|
+
creatable = "urn:alm:descriptor:com.tectonic.ui:creatable",
|
|
89
|
+
clearable = "urn:alm:descriptor:com.tectonic.ui:clearable",
|
|
90
|
+
disabled = "urn:alm:descriptor:com.tectonic.ui:disabled",
|
|
91
|
+
/**
|
|
92
|
+
* 其他
|
|
93
|
+
*/
|
|
94
|
+
pathTag = "urn:alm:descriptor:com.tectonic.ui:path.tag:"
|
|
95
|
+
}
|
|
96
|
+
interface Descriptor {
|
|
97
|
+
path: string;
|
|
98
|
+
displayName: string;
|
|
99
|
+
description: string;
|
|
100
|
+
'x-descriptors': SpecCapability[];
|
|
101
|
+
value?: any;
|
|
102
|
+
}
|
|
103
|
+
interface DescriptorProps {
|
|
104
|
+
descriptor: Descriptor;
|
|
105
|
+
value: any;
|
|
106
|
+
namespace?: string;
|
|
107
|
+
}
|
|
108
|
+
interface OperandFieldValidation {
|
|
109
|
+
[Validations.maximum]?: number;
|
|
110
|
+
[Validations.minimum]?: number;
|
|
111
|
+
[Validations.maxLength]?: number;
|
|
112
|
+
[Validations.minLength]?: number;
|
|
113
|
+
[Validations.pattern]?: string;
|
|
114
|
+
[Validations.required]?: boolean;
|
|
115
|
+
}
|
|
116
|
+
interface OperandField {
|
|
117
|
+
path?: string;
|
|
118
|
+
type?: JSONSchema6TypeName;
|
|
119
|
+
capabilities?: SpecCapability[];
|
|
120
|
+
required?: boolean;
|
|
121
|
+
displayName?: string;
|
|
122
|
+
description?: string;
|
|
123
|
+
validations?: OperandFieldValidation;
|
|
124
|
+
value?: unknown;
|
|
125
|
+
descriptor?: Descriptor;
|
|
126
|
+
_dirty?: boolean;
|
|
127
|
+
parent?: string;
|
|
128
|
+
inParentIndex?: number;
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
}
|
|
131
|
+
interface OperandFieldGroup extends OperandField {
|
|
132
|
+
groupName: string;
|
|
133
|
+
fieldList: OperandField[];
|
|
134
|
+
}
|
|
135
|
+
interface OperandArrayFieldGroup extends OperandField {
|
|
136
|
+
groupName: string;
|
|
137
|
+
fieldLists: OperandField[][];
|
|
138
|
+
}
|
|
139
|
+
type FormDataState = Map$1<string, any>;
|
|
140
|
+
interface FieldValueChangeEvent {
|
|
141
|
+
field: OperandField;
|
|
142
|
+
data: unknown;
|
|
143
|
+
errors: unknown;
|
|
144
|
+
}
|
|
145
|
+
interface FormErrors {
|
|
146
|
+
[key: string]: ValidationErrors;
|
|
147
|
+
}
|
|
148
|
+
interface FormState {
|
|
149
|
+
data: unknown;
|
|
150
|
+
errors: FormErrors;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare function getBasicAuthSecretConfig(field: OperandField): unknown;
|
|
154
|
+
declare function getRadioOptions(capabilities: SpecCapability[]): {
|
|
155
|
+
value: string;
|
|
156
|
+
display: {
|
|
157
|
+
zh: string;
|
|
158
|
+
en: string;
|
|
159
|
+
};
|
|
160
|
+
}[];
|
|
161
|
+
declare function setRadiosDefaultValue(descriptors: Descriptor[]): {
|
|
162
|
+
spec: {};
|
|
163
|
+
};
|
|
164
|
+
declare const getBooleanSwitchOptions: (capabilities: SpecCapability[]) => {
|
|
165
|
+
value: string;
|
|
166
|
+
display: string | {
|
|
167
|
+
zh: string;
|
|
168
|
+
en: string;
|
|
169
|
+
};
|
|
170
|
+
}[];
|
|
171
|
+
declare const convertBooleanSwitchValue: (value: boolean, capabilities: SpecCapability[]) => string | {
|
|
172
|
+
zh: string;
|
|
173
|
+
en: string;
|
|
174
|
+
};
|
|
175
|
+
declare function convertValue(value: string, type: JSONSchema6TypeName): any;
|
|
176
|
+
declare function getDefaultValue(field: OperandField): any;
|
|
177
|
+
declare function getFieldType(field: OperandField): SpecCapability;
|
|
178
|
+
declare function getBasicCapabilityType(capabilities: string[]): "string" | "number" | "boolean" | "object" | "array";
|
|
179
|
+
declare function getFieldDisplayName(field: OperandField | OperandArrayFieldGroup | OperandFieldGroup): {
|
|
180
|
+
en: string;
|
|
181
|
+
zh: string;
|
|
182
|
+
};
|
|
183
|
+
declare function getFieldDescription$1(field: OperandField): {
|
|
184
|
+
en: string;
|
|
185
|
+
zh: string;
|
|
186
|
+
};
|
|
187
|
+
declare function getFieldPlaceholder$1(field: OperandField): {
|
|
188
|
+
en: string;
|
|
189
|
+
zh: string;
|
|
190
|
+
};
|
|
191
|
+
declare function getFieldTooltip(field: OperandField): {
|
|
192
|
+
en: string;
|
|
193
|
+
zh: string;
|
|
194
|
+
};
|
|
195
|
+
declare function isFieldCopyable(field: OperandField): boolean;
|
|
196
|
+
declare function isFieldDescriptionAsLink(field: OperandField): boolean;
|
|
197
|
+
declare function getFieldDocLink(field: OperandField): string;
|
|
198
|
+
declare function getK8sResourcePrefixOptions(field: OperandField): {
|
|
199
|
+
namespaced: boolean;
|
|
200
|
+
labelSelector: string;
|
|
201
|
+
isGlobal: boolean;
|
|
202
|
+
groupVersionKind: string;
|
|
203
|
+
type: string;
|
|
204
|
+
multiple: boolean;
|
|
205
|
+
validations: OperandFieldValidation;
|
|
206
|
+
};
|
|
207
|
+
declare function resolveKVParams(str: string): StringMap;
|
|
208
|
+
declare function getCapabilityDisabled(capabilities: SpecCapability[]): boolean;
|
|
209
|
+
declare function getCapabilityValidations(capabilities: SpecCapability[]): OperandFieldValidation;
|
|
210
|
+
declare function getOneOfMap(field: OperandField): Dictionary<string[]>;
|
|
211
|
+
declare function fieldShouldReveal(field: OperandField): SpecCapability;
|
|
212
|
+
|
|
213
|
+
declare const MAX_DEPTH = 1;
|
|
214
|
+
declare const SCHEMA_PATH: string[];
|
|
215
|
+
declare const DESCRIPTOR_DEFINITION_KEY = "x-descriptors";
|
|
216
|
+
declare const NamespacedResourceKind: string[];
|
|
217
|
+
declare const GROUP_PATTERN: RegExp;
|
|
218
|
+
declare const DEFAULT_VALUE_PATTERN: RegExp;
|
|
219
|
+
declare const REGEXP_K8S_RESOURCE_CAPABILITY: string;
|
|
220
|
+
declare const REGEXP_CAPABILITY_VALIDATION: string;
|
|
221
|
+
declare const REGEXP_FIELD_DEPENDENCY_CAPABILITY: string;
|
|
222
|
+
declare const REGEXP_SELECT_CAPABILITY: string;
|
|
223
|
+
declare const REGEXP_K8S_RESOURCE_SUFFIX: RegExp;
|
|
224
|
+
declare const REGEXP_VALIDATION_SUFFIX: RegExp;
|
|
225
|
+
|
|
226
|
+
declare const isRequired: (field: OperandField) => boolean;
|
|
227
|
+
declare const filterMapByKey: <T>(map: Map<string, T>, predicate: (input: string) => boolean) => Map<any, any>;
|
|
228
|
+
declare const getMatchArrayIndex: (arrPath: string) => number;
|
|
229
|
+
declare const isGroupField: (field: OperandField) => field is OperandFieldGroup;
|
|
230
|
+
declare const isArrayField: (field: OperandField) => field is OperandArrayFieldGroup;
|
|
231
|
+
declare const isRemoteField: (field: OperandField) => field is OperandArrayFieldGroup;
|
|
232
|
+
declare const isArrayFieldTable: (field: OperandField) => field is OperandArrayFieldGroup;
|
|
233
|
+
declare const isCreatable: (field: OperandField) => boolean;
|
|
234
|
+
declare const isMultiple: (field: OperandField) => boolean;
|
|
235
|
+
declare const isAllowCreate: (field: OperandField) => boolean;
|
|
236
|
+
declare const isClearable: (field: OperandField) => boolean;
|
|
237
|
+
declare const isFolded: (field: OperandField) => boolean;
|
|
238
|
+
declare const isEmptyArray: (field: OperandField) => boolean;
|
|
239
|
+
declare function hasDescriptor(field: OperandField, prefix: string, suffix?: string): boolean;
|
|
240
|
+
declare function parseArrayPath(path: string): {
|
|
241
|
+
index?: number;
|
|
242
|
+
match?: string;
|
|
243
|
+
pathBeforeIndex?: string;
|
|
244
|
+
pathAfterIndex?: string;
|
|
245
|
+
};
|
|
246
|
+
declare function getArrayGroupName(field: OperandField): string;
|
|
247
|
+
declare function getGroupName(field: OperandField): string;
|
|
248
|
+
/**
|
|
249
|
+
* 递归修复树形结构中 数组类型的索引
|
|
250
|
+
*
|
|
251
|
+
* @export
|
|
252
|
+
* @param {OperandField} field
|
|
253
|
+
* @param {string} fromPath
|
|
254
|
+
* @param {string} toPath
|
|
255
|
+
* @returns
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
declare const repairFieldChildPathByCorrectIndex: (field: OperandField, fromPath: string, toPath: string) => {
|
|
259
|
+
path: string;
|
|
260
|
+
type?: _alauda_fe_dynamic_plugin_sdk.JSONSchema6TypeName;
|
|
261
|
+
capabilities?: SpecCapability[];
|
|
262
|
+
required?: boolean;
|
|
263
|
+
displayName?: string;
|
|
264
|
+
description?: string;
|
|
265
|
+
validations?: _alauda_fe_crd_form.OperandFieldValidation;
|
|
266
|
+
value?: unknown;
|
|
267
|
+
descriptor?: _alauda_fe_crd_form.Descriptor;
|
|
268
|
+
_dirty?: boolean;
|
|
269
|
+
parent?: string;
|
|
270
|
+
inParentIndex?: number;
|
|
271
|
+
disabled?: boolean;
|
|
272
|
+
};
|
|
273
|
+
declare const getRelatedFields: (normalFields: OperandField[]) => OperandField[];
|
|
274
|
+
declare const getTreeFields: (rootFields: OperandField[], basicFields: OperandField[]) => any[];
|
|
275
|
+
declare const getMatchedCapabilityValue: (capabilities: SpecCapability[], descriptor: string) => string;
|
|
276
|
+
declare function evalInContext(stringExpression: string, context: any): any;
|
|
277
|
+
declare function coerceBoolean(val: any): boolean;
|
|
278
|
+
declare function coerceNumber(val: any, fallbackValue?: number): number;
|
|
279
|
+
declare function _isNumberValue(value: any): boolean;
|
|
280
|
+
declare function getOperandPath(field: OperandField): string;
|
|
281
|
+
declare function getPathFromTagPath(pathWithTag: string): string;
|
|
282
|
+
declare const getFieldsByPath: (path: string, fields: OperandField[]) => OperandField[];
|
|
283
|
+
|
|
284
|
+
type K8sVerb = 'create' | 'get' | 'list' | 'update' | 'patch' | 'delete' | 'deletecollection' | 'watch';
|
|
285
|
+
interface MatchExpressionWithValues {
|
|
286
|
+
key: string;
|
|
287
|
+
operator: 'In' | 'NotIn' | 'Exists' | 'DoesNotExist';
|
|
288
|
+
values: string[];
|
|
289
|
+
}
|
|
290
|
+
type MatchExpression = {
|
|
291
|
+
key: string;
|
|
292
|
+
operator: 'Exists' | 'DoesNotExist';
|
|
293
|
+
} | MatchExpressionWithValues;
|
|
294
|
+
interface MatchLabels {
|
|
295
|
+
[key: string]: string;
|
|
296
|
+
}
|
|
297
|
+
interface Selector {
|
|
298
|
+
matchLabels?: MatchLabels;
|
|
299
|
+
matchExpressions?: MatchExpression[];
|
|
300
|
+
}
|
|
301
|
+
interface K8sKind {
|
|
302
|
+
abbr: string;
|
|
303
|
+
kind: string;
|
|
304
|
+
label: string;
|
|
305
|
+
labelKey?: string;
|
|
306
|
+
labelPlural: string;
|
|
307
|
+
labelPluralKey?: string;
|
|
308
|
+
plural: string;
|
|
309
|
+
propagationPolicy?: 'Foreground' | 'Background';
|
|
310
|
+
id?: string;
|
|
311
|
+
crd?: boolean;
|
|
312
|
+
apiVersion: string;
|
|
313
|
+
apiGroup?: string;
|
|
314
|
+
namespaced?: boolean;
|
|
315
|
+
selector?: Selector;
|
|
316
|
+
labels?: {
|
|
317
|
+
[key: string]: string;
|
|
318
|
+
};
|
|
319
|
+
annotations?: {
|
|
320
|
+
[key: string]: string;
|
|
321
|
+
};
|
|
322
|
+
verbs?: K8sVerb[];
|
|
323
|
+
shortNames?: string[];
|
|
324
|
+
color?: string;
|
|
325
|
+
legacyPluralURL?: boolean;
|
|
326
|
+
}
|
|
327
|
+
declare const NodeModel: K8sKind;
|
|
328
|
+
|
|
329
|
+
interface FlattenNestedPropertiesAccumulator {
|
|
330
|
+
currentCapabilities?: SpecCapability[];
|
|
331
|
+
currentPath?: string[];
|
|
332
|
+
fields?: OperandField[];
|
|
333
|
+
required: boolean;
|
|
334
|
+
}
|
|
335
|
+
declare function getPropertyDepth(property: OpenAPIV3SchemaObject, depth?: number): number;
|
|
336
|
+
declare function getFieldsFromDescriptor({ path, description, displayName, 'x-descriptors': capabilities, }: Descriptor, data: any, openApi: OpenAPIV3SchemaObject, _originDescriptors?: Descriptor[]): OperandField[];
|
|
337
|
+
declare function getOpenApiPropertyByPath(descriptorPath: string, openApi: OpenAPIV3SchemaObject): OpenAPIV3SchemaObject;
|
|
338
|
+
declare function getFieldsFromOpenApiSchema(openApi: OpenAPIV3SchemaObject, descriptors: Descriptor[], data: unknown, openApiSchemaPath?: string | string[], maxDepth?: number): OperandField[];
|
|
339
|
+
declare function flattenNestedProperties(propertyName: string, property: OpenAPIV3SchemaObject, descriptors: Descriptor[], data: any, { currentCapabilities, currentPath, required, }: FlattenNestedPropertiesAccumulator): OperandField[];
|
|
340
|
+
declare function getCapabilitiesForOpenApiProperty(property: OpenAPIV3SchemaObject, capabilities?: string[]): SpecCapability[];
|
|
341
|
+
declare function modifyArrayFieldPathIndex(path: string, operation: (index?: number) => string | number): string;
|
|
342
|
+
declare function pathToArray(path: string): Array<string | number>;
|
|
343
|
+
declare function parseGroupDescriptor(field: OperandField): {
|
|
344
|
+
groupName?: string;
|
|
345
|
+
groupType?: string;
|
|
346
|
+
match?: string;
|
|
347
|
+
};
|
|
348
|
+
declare function normalizePath(path: string): string;
|
|
349
|
+
declare function getFormData(formData: FormDataState, path: string, enableConvert?: boolean): FormDataState;
|
|
350
|
+
declare function createCapabilityField(descriptors: Descriptor[], openApiSchema: OpenAPIV3SchemaObject, data: unknown, openApiSchemaPath: string | string[]): {
|
|
351
|
+
normalFields: OperandField[];
|
|
352
|
+
fieldGroups: {
|
|
353
|
+
groupName: string;
|
|
354
|
+
displayName: string;
|
|
355
|
+
capabilities: SpecCapability[];
|
|
356
|
+
fieldList: OperandField[];
|
|
357
|
+
}[];
|
|
358
|
+
arrayFieldGroups: {
|
|
359
|
+
groupName: string;
|
|
360
|
+
displayName: string;
|
|
361
|
+
capabilities: SpecCapability[];
|
|
362
|
+
fieldLists: OperandField[][];
|
|
363
|
+
_dirty: boolean;
|
|
364
|
+
}[];
|
|
365
|
+
advancedFields: OperandField[];
|
|
366
|
+
descriptorFields: OperandField[];
|
|
367
|
+
openApiFields: OperandField[];
|
|
368
|
+
basicFields: OperandField[];
|
|
369
|
+
treeFields: OperandField[];
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
declare class BaseOperandFiledArrayComponent implements OnChanges {
|
|
373
|
+
arrayFieldGroup: OperandArrayFieldGroup;
|
|
374
|
+
formDataState: FormDataState;
|
|
375
|
+
formErrors: FormErrors;
|
|
376
|
+
isArrayTable: boolean;
|
|
377
|
+
readonly: boolean;
|
|
378
|
+
fields: OperandField[];
|
|
379
|
+
valueChange: EventEmitter<any>;
|
|
380
|
+
itemRemove: EventEmitter<any>;
|
|
381
|
+
private _expanded;
|
|
382
|
+
get expanded(): boolean;
|
|
383
|
+
set expanded(expanded: boolean);
|
|
384
|
+
basicArrayFieldTemplate: OperandField[];
|
|
385
|
+
getFieldDisplayName: typeof getFieldDisplayName;
|
|
386
|
+
readonly crdForm: _alauda_fe_crd_form.CrdFormComponent;
|
|
387
|
+
ngOnChanges({ arrayFieldGroup, formDataState }: SimpleChanges): void;
|
|
388
|
+
fieldValueChange(e: FieldValueChangeEvent): void;
|
|
389
|
+
addItem(): void;
|
|
390
|
+
removeItem(index: number): void;
|
|
391
|
+
private deleteFormData;
|
|
392
|
+
fieldIsRequired(field: OperandField): boolean;
|
|
393
|
+
get columnFields(): OperandField[];
|
|
394
|
+
trackByFn(index: number): number;
|
|
395
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseOperandFiledArrayComponent, never>;
|
|
396
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseOperandFiledArrayComponent, never, never, { "arrayFieldGroup": { "alias": "arrayFieldGroup"; "required": false; }; "formDataState": { "alias": "formDataState"; "required": false; }; "formErrors": { "alias": "formErrors"; "required": false; }; "isArrayTable": { "alias": "isArrayTable"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; }, { "valueChange": "valueChange"; "itemRemove": "itemRemove"; }, never, never, true, never>;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare class CrdFormComponent implements OnChanges {
|
|
400
|
+
openApiSchema: OpenAPIV3SchemaObject;
|
|
401
|
+
descriptors: Descriptor[];
|
|
402
|
+
data: unknown;
|
|
403
|
+
debug: boolean;
|
|
404
|
+
openApiSchemaPath: string | string[];
|
|
405
|
+
readonly: boolean;
|
|
406
|
+
labelWidth: string;
|
|
407
|
+
labelPosition: LabelPosition;
|
|
408
|
+
cluster?: string;
|
|
409
|
+
namespace?: string;
|
|
410
|
+
formContext: any;
|
|
411
|
+
formContext$: Observable<any>;
|
|
412
|
+
keepEmptyPath: boolean;
|
|
413
|
+
effectControlDefaultValue: boolean;
|
|
414
|
+
uiContext?: Record<string, any>;
|
|
415
|
+
formStateChange: EventEmitter<FormState>;
|
|
416
|
+
formSchemaChange: EventEmitter<any>;
|
|
417
|
+
form: NgForm;
|
|
418
|
+
widgets: Array<{
|
|
419
|
+
descriptor: string;
|
|
420
|
+
component: ComponentType<any>;
|
|
421
|
+
}>;
|
|
422
|
+
formDataState: FormDataState;
|
|
423
|
+
formErrors: FormErrors;
|
|
424
|
+
fields: OperandField[];
|
|
425
|
+
normalFields: OperandField[];
|
|
426
|
+
fieldGroups: OperandFieldGroup[];
|
|
427
|
+
arrayFieldGroups: OperandArrayFieldGroup[];
|
|
428
|
+
advancedFields: OperandField[];
|
|
429
|
+
private _lastUpdateField;
|
|
430
|
+
controlMap: Map<string, AbstractControl<any, any, any>>;
|
|
431
|
+
ngOnChanges({ openApiSchema, descriptors, data }: SimpleChanges): void;
|
|
432
|
+
private setUpForm;
|
|
433
|
+
dirtyPathsSet: Set<string>;
|
|
434
|
+
fieldValueChange(event: FieldValueChangeEvent): void;
|
|
435
|
+
deleteFormData(path: string): void;
|
|
436
|
+
private updateValidPathValue;
|
|
437
|
+
private updateFormData;
|
|
438
|
+
refreshValidation(): void;
|
|
439
|
+
private resolveExpiredPath;
|
|
440
|
+
private initializeFormDataArrayProperty;
|
|
441
|
+
submit(): void;
|
|
442
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrdFormComponent, never>;
|
|
443
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrdFormComponent, "acl-crd-form", never, { "openApiSchema": { "alias": "openApiSchema"; "required": false; }; "descriptors": { "alias": "descriptors"; "required": false; }; "data": { "alias": "data"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "openApiSchemaPath": { "alias": "openApiSchemaPath"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "cluster": { "alias": "cluster"; "required": false; }; "namespace": { "alias": "namespace"; "required": false; }; "formContext": { "alias": "formContext"; "required": false; }; "keepEmptyPath": { "alias": "keepEmptyPath"; "required": false; }; "effectControlDefaultValue": { "alias": "effectControlDefaultValue"; "required": false; }; "uiContext": { "alias": "uiContext"; "required": false; }; "widgets": { "alias": "widgets"; "required": false; }; }, { "formStateChange": "formStateChange"; "formSchemaChange": "formSchemaChange"; }, never, never, true, never>;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare const CRD_FORM_CONTEXT: InjectionToken<CrdFormComponent>;
|
|
447
|
+
|
|
448
|
+
declare class FormItemComponent {
|
|
449
|
+
plain: boolean;
|
|
450
|
+
getFieldTooltip: typeof getFieldTooltip;
|
|
451
|
+
getFieldDescription: typeof getFieldDescription$1;
|
|
452
|
+
getFieldDocLink: typeof getFieldDocLink;
|
|
453
|
+
isFieldDescriptionAsLink: typeof isFieldDescriptionAsLink;
|
|
454
|
+
readonly fieldComponent: any;
|
|
455
|
+
private readonly cdr;
|
|
456
|
+
constructor();
|
|
457
|
+
showFieldCopyable(field: OperandField, isDisabled: boolean): boolean;
|
|
458
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, never>;
|
|
459
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "acl-crd-form-item", never, { "plain": { "alias": "plain"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare class OperandAdvancedFieldGroupComponent {
|
|
463
|
+
fields: OperandField[];
|
|
464
|
+
fieldList: OperandField[];
|
|
465
|
+
formDataState: FormDataState;
|
|
466
|
+
formErrors: FormErrors;
|
|
467
|
+
readonly: boolean;
|
|
468
|
+
valueChange: EventEmitter<FieldValueChangeEvent>;
|
|
469
|
+
expanded: boolean;
|
|
470
|
+
startCase: (string?: string) => string;
|
|
471
|
+
fieldValueChange(e: FieldValueChangeEvent): void;
|
|
472
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperandAdvancedFieldGroupComponent, never>;
|
|
473
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperandAdvancedFieldGroupComponent, "acl-operand-advanced-field-group", never, { "fields": { "alias": "fields"; "required": false; }; "fieldList": { "alias": "fieldList"; "required": false; }; "formDataState": { "alias": "formDataState"; "required": false; }; "formErrors": { "alias": "formErrors"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare class OperandArrayFieldGroupComponent extends BaseOperandFiledArrayComponent implements OnInit {
|
|
477
|
+
ngOnInit(): void;
|
|
478
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperandArrayFieldGroupComponent, never>;
|
|
479
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperandArrayFieldGroupComponent, "acl-operand-array-field-group", never, {}, {}, never, never, true, never>;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
declare class OperandFieldGroupComponent {
|
|
483
|
+
fields: OperandField[];
|
|
484
|
+
fieldGroup: OperandFieldGroup;
|
|
485
|
+
formDataState: FormDataState;
|
|
486
|
+
formErrors: FormErrors;
|
|
487
|
+
readonly: boolean;
|
|
488
|
+
valueChange: EventEmitter<FieldValueChangeEvent>;
|
|
489
|
+
private _expanded;
|
|
490
|
+
get expanded(): boolean;
|
|
491
|
+
set expanded(expanded: boolean);
|
|
492
|
+
fieldValueChange(e: FieldValueChangeEvent): void;
|
|
493
|
+
getGroupName(field: OperandFieldGroup): string | {
|
|
494
|
+
en: string;
|
|
495
|
+
zh: string;
|
|
496
|
+
};
|
|
497
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperandFieldGroupComponent, never>;
|
|
498
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperandFieldGroupComponent, "acl-operand-field-group", never, { "fields": { "alias": "fields"; "required": false; }; "fieldGroup": { "alias": "fieldGroup"; "required": false; }; "formDataState": { "alias": "formDataState"; "required": false; }; "formErrors": { "alias": "formErrors"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
interface LinkOptions {
|
|
502
|
+
target?: string;
|
|
503
|
+
}
|
|
504
|
+
declare function isLink(field: OperandField): boolean;
|
|
505
|
+
/**
|
|
506
|
+
* 获取链接参数
|
|
507
|
+
*
|
|
508
|
+
* @see https://jira.alauda.cn/browse/ACP-32703
|
|
509
|
+
*/
|
|
510
|
+
declare function resolveLinkOptions(field: OperandField): LinkOptions;
|
|
511
|
+
declare const LinkComponent_base: new () => _alauda_fe_dynamic_plugin_shared.BaseNestedFormControl<string, string>;
|
|
512
|
+
declare class LinkComponent extends LinkComponent_base {
|
|
513
|
+
field: OperandField;
|
|
514
|
+
get options(): LinkOptions;
|
|
515
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
516
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "acl-crd-link", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare const PASSWORD_REVEAL = "******";
|
|
520
|
+
declare class OperandFieldComponent implements OnInit, OnDestroy, OnChanges, AfterViewInit {
|
|
521
|
+
field: OperandField;
|
|
522
|
+
field$: Observable<OperandField>;
|
|
523
|
+
readonly: boolean;
|
|
524
|
+
get isDisabled(): boolean;
|
|
525
|
+
get effectControlDefaultValue(): boolean;
|
|
526
|
+
get isRequired(): boolean;
|
|
527
|
+
get isCreatable(): boolean;
|
|
528
|
+
get isMultiple(): boolean;
|
|
529
|
+
get isAllowCreate(): boolean;
|
|
530
|
+
get isClearable(): boolean;
|
|
531
|
+
fields: OperandField[];
|
|
532
|
+
formDataState: FormDataState;
|
|
533
|
+
formDataState$: Observable<FormDataState>;
|
|
534
|
+
formErrors: FormErrors;
|
|
535
|
+
valueChange: EventEmitter<FieldValueChangeEvent>;
|
|
536
|
+
itemRemove: EventEmitter<any>;
|
|
537
|
+
get isHidden(): boolean;
|
|
538
|
+
set isHidden(hidden: boolean);
|
|
539
|
+
private _hidden;
|
|
540
|
+
control: FormControl<any>;
|
|
541
|
+
onDestroy$: Subject<void>;
|
|
542
|
+
getFieldType: typeof getFieldType;
|
|
543
|
+
isLink: typeof isLink;
|
|
544
|
+
SpecCapability: typeof SpecCapability;
|
|
545
|
+
getFieldDisplayName: typeof getFieldDisplayName;
|
|
546
|
+
getFieldDescription: typeof getFieldDescription$1;
|
|
547
|
+
getFieldPlaceholder: typeof getFieldPlaceholder$1;
|
|
548
|
+
getRadioOptions: typeof getRadioOptions;
|
|
549
|
+
editorOptions: _alauda_code_editor.IEditorConstructionOptions;
|
|
550
|
+
editorActions: _alauda_code_editor.CodeEditorActionsConfig;
|
|
551
|
+
isGroupField: (field: OperandField) => field is _alauda_fe_crd_form.OperandFieldGroup;
|
|
552
|
+
isArrayField: (field: OperandField) => field is _alauda_fe_crd_form.OperandArrayFieldGroup;
|
|
553
|
+
isArrayFieldTable: (field: OperandField) => field is _alauda_fe_crd_form.OperandArrayFieldGroup;
|
|
554
|
+
convertBooleanSwitchValue: (value: boolean, capabilities: SpecCapability[]) => string | {
|
|
555
|
+
zh: string;
|
|
556
|
+
en: string;
|
|
557
|
+
};
|
|
558
|
+
loading$: BehaviorSubject<boolean>;
|
|
559
|
+
get isCustomErrorsMapper(): boolean;
|
|
560
|
+
PASSWORD_REVEAL: string;
|
|
561
|
+
isBasicTypeField: (filed: OperandField) => boolean;
|
|
562
|
+
viewActions: _alauda_code_editor.CodeEditorActionsConfig;
|
|
563
|
+
viewOptions: _alauda_code_editor.IEditorConstructionOptions;
|
|
564
|
+
private _validators;
|
|
565
|
+
readonly crdForm: _alauda_fe_crd_form.CrdFormComponent;
|
|
566
|
+
private readonly http;
|
|
567
|
+
private readonly cdr;
|
|
568
|
+
registerControl(): void;
|
|
569
|
+
unRegisterControl(): void;
|
|
570
|
+
getWidgets: (capabilities: SpecCapability[]) => {
|
|
571
|
+
descriptor: string;
|
|
572
|
+
component: _angular_cdk_portal.ComponentType<any>;
|
|
573
|
+
};
|
|
574
|
+
ngOnInit(): void;
|
|
575
|
+
ngAfterViewInit(): void;
|
|
576
|
+
ngOnDestroy(): void;
|
|
577
|
+
ngOnChanges({ formDataState }: SimpleChanges): void;
|
|
578
|
+
getFieldCurrentValue(): FormDataState;
|
|
579
|
+
getFieldValue(useDefault?: boolean): any;
|
|
580
|
+
getOptionDisplay(value: string, options: Array<{
|
|
581
|
+
value: string;
|
|
582
|
+
display: Translation;
|
|
583
|
+
}>): Translation;
|
|
584
|
+
getSelectOptions(field: OperandField): string[];
|
|
585
|
+
getEncoding(field: OperandField, type: string): Encoding;
|
|
586
|
+
private hasFieldDependency;
|
|
587
|
+
private checkFieldDependency;
|
|
588
|
+
dynamicOptionRefresh$$: BehaviorSubject<void>;
|
|
589
|
+
dynamicOptionRefreshDisabled$$: BehaviorSubject<boolean>;
|
|
590
|
+
dynamicOptionLoading$$: Subject<boolean>;
|
|
591
|
+
dynamicExpression$: Observable<any>;
|
|
592
|
+
dynamicOptions$: Observable<any>;
|
|
593
|
+
staticDefaultValue$: Observable<{
|
|
594
|
+
value: any;
|
|
595
|
+
isDynamic: boolean;
|
|
596
|
+
}>;
|
|
597
|
+
dynamicHiddenValue$: Observable<boolean>;
|
|
598
|
+
getStringExpressionContext: (formContext: any, formDataState: FormDataState) => {
|
|
599
|
+
fetchResourceList: (url: string, callback: (resource: KubernetesResource) => void) => Observable<any[]>;
|
|
600
|
+
context: any;
|
|
601
|
+
formData: any;
|
|
602
|
+
};
|
|
603
|
+
fetchResourceList: (url: string, callback: (resource: KubernetesResource) => void) => Observable<any[]>;
|
|
604
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperandFieldComponent, never>;
|
|
605
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperandFieldComponent, "acl-operand-field", never, { "field": { "alias": "field"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "formDataState": { "alias": "formDataState"; "required": false; }; "formErrors": { "alias": "formErrors"; "required": false; }; }, { "valueChange": "valueChange"; "itemRemove": "itemRemove"; }, never, never, true, never>;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
declare class CrdFormArrayTableComponent extends BaseOperandFiledArrayComponent implements OnInit {
|
|
609
|
+
ngOnInit(): void;
|
|
610
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrdFormArrayTableComponent, never>;
|
|
611
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrdFormArrayTableComponent, "acl-crd-array-table", never, {}, {}, never, never, true, never>;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
declare class K8sResourcePrefixComponent extends BaseResourceFormComponent {
|
|
615
|
+
private readonly k8sApi;
|
|
616
|
+
private readonly crdForm;
|
|
617
|
+
private readonly resourceDefinitions;
|
|
618
|
+
constructor();
|
|
619
|
+
init$$: BehaviorSubject<boolean>;
|
|
620
|
+
field: OperandField;
|
|
621
|
+
field$: Observable<OperandField>;
|
|
622
|
+
readonly: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* crd-form 的 errorState 是由全局的 FormError 对象建立的,为满足单一数据源的设计,自定义 widget 的 error 可以由外部传入,
|
|
625
|
+
* 所有的 validation 在 field 级别校验,widget 只需要在关心校验失败时进行合理展示
|
|
626
|
+
*/
|
|
627
|
+
formErrors: FormErrors;
|
|
628
|
+
options$: Observable<{
|
|
629
|
+
namespaced: boolean;
|
|
630
|
+
labelSelector: string;
|
|
631
|
+
isGlobal: boolean;
|
|
632
|
+
groupVersionKind: string;
|
|
633
|
+
type: string;
|
|
634
|
+
multiple: boolean;
|
|
635
|
+
validations: _alauda_fe_crd_form.OperandFieldValidation;
|
|
636
|
+
}>;
|
|
637
|
+
resources$: Observable<_alauda_fe_dynamic_plugin_sdk.KubernetesResource[]>;
|
|
638
|
+
createForm(): _angular_forms.FormControl<any>;
|
|
639
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<K8sResourcePrefixComponent, never>;
|
|
640
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<K8sResourcePrefixComponent, "acl-crd-resource-prefix", never, { "field": { "alias": "field"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "formErrors": { "alias": "formErrors"; "required": false; }; }, {}, never, never, true, never>;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare class ResourceRequirementsComponent extends BaseResourceFormGroupComponent<ResourceRequirementStrict, ResourceRequirementFormModal> implements OnInit {
|
|
644
|
+
readOnly: boolean;
|
|
645
|
+
field: OperandField;
|
|
646
|
+
get requiredOptions(): {
|
|
647
|
+
required: {
|
|
648
|
+
limit: string[];
|
|
649
|
+
request: string[];
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
get limitMemoryRequired(): boolean;
|
|
653
|
+
get limitCpuRequired(): boolean;
|
|
654
|
+
get requestMemoryRequired(): boolean;
|
|
655
|
+
get requestCpuRequired(): boolean;
|
|
656
|
+
get minMaxOptions(): {
|
|
657
|
+
min: {
|
|
658
|
+
limits: any;
|
|
659
|
+
requests: any;
|
|
660
|
+
};
|
|
661
|
+
max: {
|
|
662
|
+
limits: any;
|
|
663
|
+
requests: any;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
get limitMemoryMin(): any;
|
|
667
|
+
get limitCpuMin(): any;
|
|
668
|
+
get requestMemoryMin(): any;
|
|
669
|
+
get requestCpuMin(): any;
|
|
670
|
+
get limitMemoryMax(): any;
|
|
671
|
+
get limitCpuMax(): any;
|
|
672
|
+
get requestMemoryMax(): any;
|
|
673
|
+
get requestCpuMax(): any;
|
|
674
|
+
resourceUnits: {
|
|
675
|
+
cpu: {
|
|
676
|
+
value: string;
|
|
677
|
+
label: string;
|
|
678
|
+
}[];
|
|
679
|
+
memory: string[];
|
|
680
|
+
};
|
|
681
|
+
getResourceValue: typeof getResourceValue;
|
|
682
|
+
getResourceViewModel: typeof getResourceViewModel;
|
|
683
|
+
private readonly fieldComponent;
|
|
684
|
+
readonly controlContainer: ControlContainer;
|
|
685
|
+
readonly translate: TranslateService;
|
|
686
|
+
constructor();
|
|
687
|
+
ngOnInit(): void;
|
|
688
|
+
createForm(): FormGroup<{
|
|
689
|
+
limits: FormGroup<{
|
|
690
|
+
cpu: FormGroup<{
|
|
691
|
+
value: FormControl<string>;
|
|
692
|
+
unit: FormControl<string>;
|
|
693
|
+
}>;
|
|
694
|
+
memory: FormGroup<{
|
|
695
|
+
value: FormControl<string>;
|
|
696
|
+
unit: FormControl<string>;
|
|
697
|
+
}>;
|
|
698
|
+
}>;
|
|
699
|
+
requests: FormGroup<{
|
|
700
|
+
cpu: FormGroup<{
|
|
701
|
+
value: FormControl<string>;
|
|
702
|
+
unit: FormControl<string>;
|
|
703
|
+
}>;
|
|
704
|
+
memory: FormGroup<{
|
|
705
|
+
value: FormControl<string>;
|
|
706
|
+
unit: FormControl<string>;
|
|
707
|
+
}>;
|
|
708
|
+
}>;
|
|
709
|
+
}>;
|
|
710
|
+
getDefaultFormModel(): ResourceRequirementFormModal;
|
|
711
|
+
adaptFormModel(formModel: ResourceRequirementFormModal): ResourceRequirementStrict;
|
|
712
|
+
private minValidator;
|
|
713
|
+
private maxValidator;
|
|
714
|
+
formatFormModel(formModel: ResourceRequirementFormModal): void;
|
|
715
|
+
getCpuUnitLabel(value: 'm' | 'c'): string;
|
|
716
|
+
adaptResourceModel(resources: ResourceRequirementStrict): ResourceRequirementFormModal;
|
|
717
|
+
getMinOrMaxErrorsMapper(value: string, kind: 'min' | 'max', type: 'cpu' | 'memory', _locale: string): string;
|
|
718
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceRequirementsComponent, never>;
|
|
719
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceRequirementsComponent, "acl-crd-resource-requirements", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
interface YamlEditorFormModel {
|
|
723
|
+
yaml: string;
|
|
724
|
+
}
|
|
725
|
+
declare class YamlEditorComponent extends BaseResourceFormGroupComponent<unknown, YamlEditorFormModel> {
|
|
726
|
+
actionsConfig: CodeEditorActionsConfig;
|
|
727
|
+
options: MonacoEditorOptions;
|
|
728
|
+
disabledActionsConfig: CodeEditorActionsConfig;
|
|
729
|
+
resultFormat: string;
|
|
730
|
+
private readonly fieldComponent;
|
|
731
|
+
constructor();
|
|
732
|
+
private getResultFormat;
|
|
733
|
+
createForm(): _angular_forms.FormGroup<{
|
|
734
|
+
yaml: _angular_forms.FormControl<unknown>;
|
|
735
|
+
}>;
|
|
736
|
+
private getDisabledActionsConfig;
|
|
737
|
+
adaptResourceModel(resource: unknown): YamlEditorFormModel;
|
|
738
|
+
adaptFormModel(formModel: YamlEditorFormModel): string | YamlEditorFormModel;
|
|
739
|
+
getActionsConfig(defaultActions: CodeEditorActionsConfig, disabledActions: CodeEditorActionsConfig): {
|
|
740
|
+
diffMode?: boolean;
|
|
741
|
+
recover?: boolean;
|
|
742
|
+
clear?: boolean;
|
|
743
|
+
find?: boolean;
|
|
744
|
+
copy?: boolean;
|
|
745
|
+
theme?: boolean;
|
|
746
|
+
fullscreen?: boolean;
|
|
747
|
+
export?: boolean;
|
|
748
|
+
import?: boolean;
|
|
749
|
+
};
|
|
750
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YamlEditorComponent, never>;
|
|
751
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YamlEditorComponent, "acl-crd-yaml-editor", never, { "actionsConfig": { "alias": "actionsConfig"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
interface BasicAuthSecretConfig {
|
|
755
|
+
secretName?: string;
|
|
756
|
+
usernameKey?: string;
|
|
757
|
+
usernameDefault?: string;
|
|
758
|
+
usernameReadonly?: boolean;
|
|
759
|
+
passwordKey?: string;
|
|
760
|
+
strongPassword?: boolean;
|
|
761
|
+
password?: boolean;
|
|
762
|
+
namespace?: string;
|
|
763
|
+
cluster?: string;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
declare class BasicAuthSecretComponent extends BaseResourceFormComponent<string> {
|
|
767
|
+
required: boolean;
|
|
768
|
+
field: OperandField;
|
|
769
|
+
field$: Observable<OperandField>;
|
|
770
|
+
private readonly k8sApi;
|
|
771
|
+
private readonly crdForm;
|
|
772
|
+
private readonly dialog;
|
|
773
|
+
private readonly k8sUtil;
|
|
774
|
+
config$: Observable<BasicAuthSecretConfig>;
|
|
775
|
+
reload$: Subject<void>;
|
|
776
|
+
resources$: Observable<Secret<_alauda_fe_dynamic_plugin_sdk.StringMap>[]>;
|
|
777
|
+
constructor();
|
|
778
|
+
createForm(): _angular_forms.FormControl<any>;
|
|
779
|
+
create(): void;
|
|
780
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicAuthSecretComponent, never>;
|
|
781
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicAuthSecretComponent, "acl-crd-basic-auth-secret", never, { "required": { "alias": "required"; "required": false; }; "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
declare class BasicAuthCreateSecretDialogComponent {
|
|
785
|
+
readonly form: FormGroupDirective;
|
|
786
|
+
readonly dialogData: {
|
|
787
|
+
cluster: string;
|
|
788
|
+
namespace: string;
|
|
789
|
+
config?: BasicAuthSecretConfig;
|
|
790
|
+
};
|
|
791
|
+
private readonly dialogRef;
|
|
792
|
+
private readonly fb;
|
|
793
|
+
private readonly k8sApi;
|
|
794
|
+
private readonly cdr;
|
|
795
|
+
private readonly message;
|
|
796
|
+
private readonly translate;
|
|
797
|
+
submitting: boolean;
|
|
798
|
+
K8S_RESOURCE_NAME_BASE: {
|
|
799
|
+
pattern: RegExp;
|
|
800
|
+
tip: string;
|
|
801
|
+
};
|
|
802
|
+
usernameKey: string;
|
|
803
|
+
passwordKey: string;
|
|
804
|
+
usernameReadonly: boolean;
|
|
805
|
+
strongPassword: boolean;
|
|
806
|
+
password: boolean;
|
|
807
|
+
showPassword: boolean;
|
|
808
|
+
formGroup: _angular_forms.FormGroup<{
|
|
809
|
+
name: _angular_forms.FormControl<string>;
|
|
810
|
+
username: _angular_forms.FormControl<string>;
|
|
811
|
+
password: _angular_forms.FormControl<string>;
|
|
812
|
+
}>;
|
|
813
|
+
confirm(): void;
|
|
814
|
+
toggleShowPassword(): void;
|
|
815
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicAuthCreateSecretDialogComponent, never>;
|
|
816
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicAuthCreateSecretDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare class FieldControlsModule {
|
|
820
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldControlsModule, never>;
|
|
821
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FieldControlsModule, never, [typeof FormItemComponent, typeof OperandAdvancedFieldGroupComponent, typeof OperandArrayFieldGroupComponent, typeof OperandFieldGroupComponent, typeof OperandFieldComponent, typeof CrdFormArrayTableComponent, typeof K8sResourcePrefixComponent, typeof ResourceRequirementsComponent, typeof YamlEditorComponent, typeof BasicAuthSecretComponent, typeof BasicAuthCreateSecretDialogComponent], [typeof FormItemComponent, typeof OperandAdvancedFieldGroupComponent, typeof OperandArrayFieldGroupComponent, typeof OperandFieldGroupComponent, typeof OperandFieldComponent, typeof CrdFormArrayTableComponent, typeof K8sResourcePrefixComponent, typeof ResourceRequirementsComponent, typeof YamlEditorComponent, typeof BasicAuthSecretComponent, typeof BasicAuthCreateSecretDialogComponent]>;
|
|
822
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FieldControlsModule>;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare class HtpasswdComponent {
|
|
826
|
+
isUpdate: boolean;
|
|
827
|
+
readonly fieldComponent: any;
|
|
828
|
+
constructor();
|
|
829
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtpasswdComponent, never>;
|
|
830
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtpasswdComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare function getFieldLabel(field: OperandField, type: 'username' | 'password'): {
|
|
834
|
+
en: string;
|
|
835
|
+
zh: string;
|
|
836
|
+
};
|
|
837
|
+
declare function getFieldDescription(field: OperandField, type: 'username' | 'password'): {
|
|
838
|
+
en: string;
|
|
839
|
+
zh: string;
|
|
840
|
+
};
|
|
841
|
+
declare function getFieldPlaceholder(field: OperandField, type: 'username' | 'password'): {
|
|
842
|
+
en: string;
|
|
843
|
+
zh: string;
|
|
844
|
+
};
|
|
845
|
+
declare function isFieldDisabled(field: OperandField, type: 'username' | 'password'): boolean;
|
|
846
|
+
|
|
847
|
+
declare class HtpasswdFormComponent extends BaseResourceFormComponent<string, {
|
|
848
|
+
username: string;
|
|
849
|
+
password: string;
|
|
850
|
+
}, FormGroup> {
|
|
851
|
+
field: OperandField;
|
|
852
|
+
required: boolean;
|
|
853
|
+
isUpdate: boolean;
|
|
854
|
+
isDisabled: boolean;
|
|
855
|
+
originalUsername: string;
|
|
856
|
+
originalResource: string;
|
|
857
|
+
getFieldDescription: typeof getFieldDescription;
|
|
858
|
+
isFieldDisabled: typeof isFieldDisabled;
|
|
859
|
+
getFieldPlaceholder: typeof getFieldPlaceholder;
|
|
860
|
+
getFieldLabel: typeof getFieldLabel;
|
|
861
|
+
createForm(): FormGroup<{
|
|
862
|
+
username: _angular_forms.FormControl<string>;
|
|
863
|
+
password: _angular_forms.FormControl<string>;
|
|
864
|
+
}>;
|
|
865
|
+
adaptResourceModel(resource: string): {
|
|
866
|
+
username: string;
|
|
867
|
+
password: string;
|
|
868
|
+
};
|
|
869
|
+
adaptFormModel({ username, password, }: {
|
|
870
|
+
username: string;
|
|
871
|
+
password: string;
|
|
872
|
+
}): string;
|
|
873
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtpasswdFormComponent, never>;
|
|
874
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtpasswdFormComponent, "acl-htpasswd-form", never, { "field": { "alias": "field"; "required": false; }; "required": { "alias": "required"; "required": false; }; "isUpdate": { "alias": "isUpdate"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
declare class HtpasswdModule {
|
|
878
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtpasswdModule, never>;
|
|
879
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HtpasswdModule, never, [typeof HtpasswdComponent, typeof HtpasswdFormComponent], [typeof HtpasswdComponent, typeof HtpasswdFormComponent]>;
|
|
880
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HtpasswdModule>;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
declare class SpecCapabilityComponent {
|
|
884
|
+
field: OperandField;
|
|
885
|
+
fields: OperandField[];
|
|
886
|
+
data: unknown;
|
|
887
|
+
get isHidden(): boolean;
|
|
888
|
+
SpecCapability: typeof SpecCapability;
|
|
889
|
+
getFieldDisplayName: typeof getFieldDisplayName;
|
|
890
|
+
getFieldDescription: typeof getFieldDescription$1;
|
|
891
|
+
yamlReadOptions: _alauda_code_editor.IEditorConstructionOptions;
|
|
892
|
+
viewActions: _alauda_code_editor.CodeEditorActionsConfig;
|
|
893
|
+
isArrayField: (field: OperandField) => field is _alauda_fe_crd_form.OperandArrayFieldGroup;
|
|
894
|
+
getCapability(capabilities: SpecCapability[]): SpecCapability;
|
|
895
|
+
toDefault(input: unknown): string;
|
|
896
|
+
shouldBeHidden(): boolean;
|
|
897
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpecCapabilityComponent, never>;
|
|
898
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpecCapabilityComponent, "acl-spec-descriptor-capability", never, { "field": { "alias": "field"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
declare class SpecCapabilityListComponent {
|
|
902
|
+
descriptors: Descriptor[];
|
|
903
|
+
debug: boolean;
|
|
904
|
+
data: unknown;
|
|
905
|
+
openApiSchema: OpenAPIV3SchemaObject;
|
|
906
|
+
openApiSchemaPath: string | string[];
|
|
907
|
+
createCapabilityField: typeof createCapabilityField;
|
|
908
|
+
excludes: (fields: OperandField[]) => OperandField[];
|
|
909
|
+
debugLog: (fields: {
|
|
910
|
+
normalFields: OperandField[];
|
|
911
|
+
fieldGroups: OperandFieldGroup[];
|
|
912
|
+
arrayFieldGroups: OperandArrayFieldGroup[];
|
|
913
|
+
advancedFields: OperandField[];
|
|
914
|
+
descriptorFields: OperandField[];
|
|
915
|
+
openApiFields: OperandField[];
|
|
916
|
+
basicFields: OperandField[];
|
|
917
|
+
treeFields: OperandField[];
|
|
918
|
+
}) => {
|
|
919
|
+
normalFields: OperandField[];
|
|
920
|
+
fieldGroups: OperandFieldGroup[];
|
|
921
|
+
arrayFieldGroups: OperandArrayFieldGroup[];
|
|
922
|
+
advancedFields: OperandField[];
|
|
923
|
+
descriptorFields: OperandField[];
|
|
924
|
+
openApiFields: OperandField[];
|
|
925
|
+
basicFields: OperandField[];
|
|
926
|
+
treeFields: OperandField[];
|
|
927
|
+
};
|
|
928
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpecCapabilityListComponent, never>;
|
|
929
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpecCapabilityListComponent, "acl-spec-descriptor-capability-list", never, { "descriptors": { "alias": "descriptors"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "data": { "alias": "data"; "required": false; }; "openApiSchema": { "alias": "openApiSchema"; "required": false; }; "openApiSchemaPath": { "alias": "openApiSchemaPath"; "required": false; }; }, {}, never, never, true, never>;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
declare const capabilityComponents: Map$1<SpecCapability, SpecCapability>;
|
|
933
|
+
declare const capabilityFor: (specCapability: SpecCapability) => SpecCapability;
|
|
934
|
+
|
|
935
|
+
export { BaseOperandFiledArrayComponent, BasicAuthCreateSecretDialogComponent, BasicAuthSecretComponent, CRD_FORM_CONTEXT, CrdFormArrayTableComponent, CrdFormComponent, DEFAULT_VALUE_PATTERN, DESCRIPTOR_DEFINITION_KEY, FieldControlsModule, FormItemComponent, GROUP_PATTERN, HtpasswdComponent, HtpasswdFormComponent, HtpasswdModule, K8sResourcePrefixComponent, LinkComponent, MAX_DEPTH, NamespacedResourceKind, NodeModel, OperandAdvancedFieldGroupComponent, OperandArrayFieldGroupComponent, OperandFieldComponent, OperandFieldGroupComponent, PASSWORD_REVEAL, REGEXP_CAPABILITY_VALIDATION, REGEXP_FIELD_DEPENDENCY_CAPABILITY, REGEXP_K8S_RESOURCE_CAPABILITY, REGEXP_K8S_RESOURCE_SUFFIX, REGEXP_SELECT_CAPABILITY, REGEXP_VALIDATION_SUFFIX, ResourceRequirementsComponent, SCHEMA_PATH, SpecCapability, SpecCapabilityComponent, SpecCapabilityListComponent, SpecCapabilityUIPrefix, SpecCapabilityWidgetsPrefix, Validations, YamlEditorComponent, _isNumberValue, capabilityComponents, capabilityFor, coerceBoolean, coerceNumber, convertBooleanSwitchValue, convertValue, createCapabilityField, evalInContext, fieldShouldReveal, filterMapByKey, flattenNestedProperties, getArrayGroupName, getBasicAuthSecretConfig, getBasicCapabilityType, getBooleanSwitchOptions, getCapabilitiesForOpenApiProperty, getCapabilityDisabled, getCapabilityValidations, getDefaultValue, getFieldDescription$1 as getFieldDescription, getFieldDisplayName, getFieldDocLink, getFieldPlaceholder$1 as getFieldPlaceholder, getFieldTooltip, getFieldType, getFieldsByPath, getFieldsFromDescriptor, getFieldsFromOpenApiSchema, getFormData, getGroupName, getK8sResourcePrefixOptions, getMatchArrayIndex, getMatchedCapabilityValue, getOneOfMap, getOpenApiPropertyByPath, getOperandPath, getPathFromTagPath, getPropertyDepth, getRadioOptions, getRelatedFields, getTreeFields, hasDescriptor, isAllowCreate, isArrayField, isArrayFieldTable, isClearable, isCreatable, isEmptyArray, isFieldCopyable, isFieldDescriptionAsLink, isFolded, isGroupField, isLink, isMultiple, isRemoteField, isRequired, modifyArrayFieldPathIndex, normalizePath, parseArrayPath, parseGroupDescriptor, pathToArray, repairFieldChildPathByCorrectIndex, resolveKVParams, resolveLinkOptions, setRadiosDefaultValue };
|
|
936
|
+
export type { Descriptor, DescriptorProps, FieldValueChangeEvent, FlattenNestedPropertiesAccumulator, FormDataState, FormErrors, FormState, K8sKind, K8sVerb, MatchExpression, MatchExpressionWithValues, MatchLabels, OperandArrayFieldGroup, OperandField, OperandFieldGroup, OperandFieldValidation, Selector, YamlEditorFormModel };
|