@dovetail-v2/refine 0.1.5-alpha.0 → 0.1.5-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.
Files changed (218) hide show
  1. package/dist/{MonacoYamlDiffEditor-c27ab21c.js → MonacoYamlDiffEditor-c5547070.js} +1 -1
  2. package/dist/{index-984f2ec7.js → index-152e54ea.js} +390 -315
  3. package/dist/refine.js +213 -212
  4. package/dist/refine.umd.cjs +178 -103
  5. package/dist/style.css +1 -0
  6. package/lib/src/components/Form/useYamlForm.d.ts +2 -3
  7. package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +1 -1
  8. package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +1 -1
  9. package/lib/src/hooks/useSchema.d.ts +7 -0
  10. package/lib/src/i18n.d.ts +1 -0
  11. package/lib/src/locales/en-US/index.d.ts +1 -0
  12. package/lib/src/utils/openapi.d.ts +6 -11
  13. package/package.json +1 -1
  14. package/lib/App.d.ts +0 -2
  15. package/lib/Dovetail.d.ts +0 -18
  16. package/lib/components/Breadcrumb/index.d.ts +0 -5
  17. package/lib/components/ConditionsTable/ConditionsTable.d.ts +0 -7
  18. package/lib/components/ConditionsTable/index.d.ts +0 -1
  19. package/lib/components/CreateButton/index.d.ts +0 -1
  20. package/lib/components/CronJobDropdown/index.d.ts +0 -8
  21. package/lib/components/CronjobJobsTable/index.d.ts +0 -8
  22. package/lib/components/DeleteButton/index.d.ts +0 -2
  23. package/lib/components/DeleteManyButton/index.d.ts +0 -4
  24. package/lib/components/DrawerShow/DrawerShow.d.ts +0 -8
  25. package/lib/components/DrawerShow/index.d.ts +0 -1
  26. package/lib/components/DurationTime/index.d.ts +0 -5
  27. package/lib/components/EditButton/index.d.ts +0 -2
  28. package/lib/components/EditField/index.d.ts +0 -15
  29. package/lib/components/ErrorContent/index.d.ts +0 -17
  30. package/lib/components/EventsTable/EventsTable.d.ts +0 -6
  31. package/lib/components/EventsTable/index.d.ts +0 -1
  32. package/lib/components/Form/FormModal.d.ts +0 -10
  33. package/lib/components/Form/RefineFormContent.d.ts +0 -11
  34. package/lib/components/Form/RefineFormPage.d.ts +0 -6
  35. package/lib/components/Form/YamlForm.d.ts +0 -28
  36. package/lib/components/Form/index.d.ts +0 -7
  37. package/lib/components/Form/type.d.ts +0 -17
  38. package/lib/components/Form/useReactHookForm.d.ts +0 -29
  39. package/lib/components/Form/useRefineForm.d.ts +0 -13
  40. package/lib/components/Form/useYamlForm.d.ts +0 -51
  41. package/lib/components/FormErrorAlert/index.d.ts +0 -9
  42. package/lib/components/FormLayout/index.d.ts +0 -7
  43. package/lib/components/FormWidgets/KeyValueListWidget.d.ts +0 -5
  44. package/lib/components/FormWidgets/MetadataForm.d.ts +0 -1
  45. package/lib/components/FormWidgets/NameInputWidget.d.ts +0 -50
  46. package/lib/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -8
  47. package/lib/components/FormWidgets/index.d.ts +0 -4
  48. package/lib/components/FormWidgets/widget.d.ts +0 -5
  49. package/lib/components/ImageNames/index.d.ts +0 -5
  50. package/lib/components/IngressRulesComponent/index.d.ts +0 -5
  51. package/lib/components/IngressRulesTable/IngressRulesTable.d.ts +0 -7
  52. package/lib/components/IngressRulesTable/index.d.ts +0 -1
  53. package/lib/components/K8sDropdown/index.d.ts +0 -9
  54. package/lib/components/KeyValue/KeyValue.d.ts +0 -7
  55. package/lib/components/KeyValue/KeyValueAnnotation.d.ts +0 -5
  56. package/lib/components/KeyValue/KeyValueSecret.d.ts +0 -4
  57. package/lib/components/KeyValue/index.d.ts +0 -3
  58. package/lib/components/Layout/index.d.ts +0 -3
  59. package/lib/components/LinkFallback/index.d.ts +0 -3
  60. package/lib/components/ListPage/index.d.ts +0 -9
  61. package/lib/components/Menu/index.d.ts +0 -1
  62. package/lib/components/NamespacesFilter/index.d.ts +0 -11
  63. package/lib/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -8
  64. package/lib/components/NetworkPolicyRulesViewer/index.d.ts +0 -1
  65. package/lib/components/PageShow/PageShow.d.ts +0 -12
  66. package/lib/components/PageShow/index.d.ts +0 -1
  67. package/lib/components/PodContainersTable/PodContainersTable.d.ts +0 -8
  68. package/lib/components/PodContainersTable/index.d.ts +0 -1
  69. package/lib/components/PodDropdown/index.d.ts +0 -9
  70. package/lib/components/PodLog/index.d.ts +0 -6
  71. package/lib/components/PodSelectorTable/index.d.ts +0 -6
  72. package/lib/components/PodShellModal/PodShell.d.ts +0 -18
  73. package/lib/components/PodShellModal/index.d.ts +0 -9
  74. package/lib/components/PortsTable/index.d.ts +0 -7
  75. package/lib/components/ReferenceLink/index.d.ts +0 -8
  76. package/lib/components/ReplicasDropdown/index.d.ts +0 -9
  77. package/lib/components/ResourceCRUD/ResourceCRUD.d.ts +0 -7
  78. package/lib/components/ResourceCRUD/create/index.d.ts +0 -7
  79. package/lib/components/ResourceCRUD/index.d.ts +0 -4
  80. package/lib/components/ResourceCRUD/list/index.d.ts +0 -8
  81. package/lib/components/ResourceCRUD/show/index.d.ts +0 -8
  82. package/lib/components/ResourceFiledDisplays.d.ts +0 -6
  83. package/lib/components/ResourceLink/index.d.ts +0 -8
  84. package/lib/components/ResourceSelect/index.d.ts +0 -11
  85. package/lib/components/ResourceUsageBar/index.d.ts +0 -8
  86. package/lib/components/Separator/index.d.ts +0 -2
  87. package/lib/components/ServiceComponents/index.d.ts +0 -10
  88. package/lib/components/Shell/index.d.ts +0 -54
  89. package/lib/components/ShowContent/ShowContent.d.ts +0 -18
  90. package/lib/components/ShowContent/fields.d.ts +0 -68
  91. package/lib/components/ShowContent/groups.d.ts +0 -23
  92. package/lib/components/ShowContent/index.d.ts +0 -4
  93. package/lib/components/ShowContent/tabs.d.ts +0 -5
  94. package/lib/components/StateTag/StateTag.d.ts +0 -10
  95. package/lib/components/StateTag/index.d.ts +0 -1
  96. package/lib/components/Table/TableToolBar.d.ts +0 -8
  97. package/lib/components/Table/TableWidgets.d.ts +0 -6
  98. package/lib/components/Table/index.d.ts +0 -43
  99. package/lib/components/Tabs/index.d.ts +0 -10
  100. package/lib/components/Tags/index.d.ts +0 -6
  101. package/lib/components/TextTags/index.d.ts +0 -6
  102. package/lib/components/Time/index.d.ts +0 -8
  103. package/lib/components/ValueDisplay/index.d.ts +0 -9
  104. package/lib/components/WorkloadDropdown/index.d.ts +0 -9
  105. package/lib/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -9
  106. package/lib/components/WorkloadPodsTable/index.d.ts +0 -1
  107. package/lib/components/WorkloadReplicas/index.d.ts +0 -17
  108. package/lib/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -9
  109. package/lib/components/YamlEditor/MonacoYamlEditor.d.ts +0 -19
  110. package/lib/components/YamlEditor/YamlEditorComponent.d.ts +0 -27
  111. package/lib/components/YamlEditor/index.d.ts +0 -1
  112. package/lib/components/YamlEditor/style.d.ts +0 -11
  113. package/lib/components/YamlEditor/yaml.worker.d.ts +0 -1
  114. package/lib/components/index.d.ts +0 -47
  115. package/lib/constants/auth.d.ts +0 -5
  116. package/lib/constants/index.d.ts +0 -3
  117. package/lib/constants/k8s.d.ts +0 -487
  118. package/lib/constants/state.d.ts +0 -15
  119. package/lib/contexts/component.d.ts +0 -7
  120. package/lib/contexts/configs.d.ts +0 -3
  121. package/lib/contexts/global-store.d.ts +0 -5
  122. package/lib/contexts/index.d.ts +0 -3
  123. package/lib/hooks/index.d.ts +0 -8
  124. package/lib/hooks/useDeleteModal/index.d.ts +0 -1
  125. package/lib/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -7
  126. package/lib/hooks/useDeleteModal/useDeleteModal.d.ts +0 -7
  127. package/lib/hooks/useDownloadYAML.d.ts +0 -7
  128. package/lib/hooks/useEagleTable/columns.d.ts +0 -41
  129. package/lib/hooks/useEagleTable/index.d.ts +0 -2
  130. package/lib/hooks/useEagleTable/useEagleTable.d.ts +0 -55
  131. package/lib/hooks/useEdit.d.ts +0 -4
  132. package/lib/hooks/useGlobalStore.d.ts +0 -3
  133. package/lib/hooks/useK8sYamlEditor.d.ts +0 -5
  134. package/lib/hooks/useNamespaceRefineFilter.d.ts +0 -5
  135. package/lib/hooks/useOpenForm.d.ts +0 -7
  136. package/lib/hooks/useSchema.d.ts +0 -14
  137. package/lib/hooks/useSubmitForm.d.ts +0 -14
  138. package/lib/hooks/useTableData.d.ts +0 -19
  139. package/lib/i18n.d.ts +0 -353
  140. package/lib/index.d.ts +0 -11
  141. package/lib/locales/en-US/index.d.ts +0 -175
  142. package/lib/locales/index.d.ts +0 -2
  143. package/lib/locales/zh-CN/index.d.ts +0 -175
  144. package/lib/main.d.ts +0 -3
  145. package/lib/models/cronjob-model.d.ts +0 -15
  146. package/lib/models/daemonset-model.d.ts +0 -15
  147. package/lib/models/deployment-model.d.ts +0 -13
  148. package/lib/models/event-model.d.ts +0 -7
  149. package/lib/models/index.d.ts +0 -19
  150. package/lib/models/ingress-model.d.ts +0 -20
  151. package/lib/models/job-model.d.ts +0 -20
  152. package/lib/models/network-policy-model.d.ts +0 -9
  153. package/lib/models/node-model.d.ts +0 -17
  154. package/lib/models/persistent-volume-claim.d.ts +0 -9
  155. package/lib/models/persistent-volume.d.ts +0 -9
  156. package/lib/models/pod-metrics-model.d.ts +0 -8
  157. package/lib/models/pod-model.d.ts +0 -20
  158. package/lib/models/resource-model.d.ts +0 -21
  159. package/lib/models/service-model.d.ts +0 -24
  160. package/lib/models/statefulset-model.d.ts +0 -13
  161. package/lib/models/storage-class.d.ts +0 -12
  162. package/lib/models/types/index.d.ts +0 -1
  163. package/lib/models/types/metric.d.ts +0 -25
  164. package/lib/models/workload-base-model.d.ts +0 -12
  165. package/lib/models/workload-model.d.ts +0 -18
  166. package/lib/pages/configmaps/index.d.ts +0 -4
  167. package/lib/pages/cronjobs/create/index.d.ts +0 -3
  168. package/lib/pages/cronjobs/index.d.ts +0 -3
  169. package/lib/pages/cronjobs/list/index.d.ts +0 -3
  170. package/lib/pages/cronjobs/show/index.d.ts +0 -3
  171. package/lib/pages/daemonsets/create/index.d.ts +0 -3
  172. package/lib/pages/daemonsets/index.d.ts +0 -3
  173. package/lib/pages/daemonsets/list/index.d.ts +0 -3
  174. package/lib/pages/daemonsets/show/index.d.ts +0 -3
  175. package/lib/pages/deployments/index.d.ts +0 -2
  176. package/lib/pages/deployments/list/index.d.ts +0 -3
  177. package/lib/pages/deployments/show/index.d.ts +0 -3
  178. package/lib/pages/ingresses/index.d.ts +0 -4
  179. package/lib/pages/jobs/index.d.ts +0 -4
  180. package/lib/pages/networkPolicies/index.d.ts +0 -4
  181. package/lib/pages/nodes/index.d.ts +0 -2
  182. package/lib/pages/nodes/list/index.d.ts +0 -3
  183. package/lib/pages/nodes/show/index.d.ts +0 -3
  184. package/lib/pages/persistentvolumeclaims/index.d.ts +0 -4
  185. package/lib/pages/persistentvolumes/index.d.ts +0 -4
  186. package/lib/pages/pods/create/index.d.ts +0 -3
  187. package/lib/pages/pods/index.d.ts +0 -3
  188. package/lib/pages/pods/list/index.d.ts +0 -3
  189. package/lib/pages/pods/show/index.d.ts +0 -3
  190. package/lib/pages/secrets/index.d.ts +0 -4
  191. package/lib/pages/services/index.d.ts +0 -4
  192. package/lib/pages/statefulsets/index.d.ts +0 -4
  193. package/lib/pages/storageclasses/form/index.d.ts +0 -9
  194. package/lib/pages/storageclasses/index.d.ts +0 -44
  195. package/lib/plugins/index.d.ts +0 -4
  196. package/lib/plugins/model-plugin.d.ts +0 -13
  197. package/lib/plugins/relation-plugin.d.ts +0 -26
  198. package/lib/plugins/type.d.ts +0 -8
  199. package/lib/providers/index.d.ts +0 -1
  200. package/lib/providers/router-provider/index.d.ts +0 -21
  201. package/lib/src/utils/index.d.ts +0 -1
  202. package/lib/types/index.d.ts +0 -1
  203. package/lib/types/resource.d.ts +0 -62
  204. package/lib/utils/addId.d.ts +0 -3
  205. package/lib/utils/download.d.ts +0 -1
  206. package/lib/utils/error.d.ts +0 -20
  207. package/lib/utils/form.d.ts +0 -3
  208. package/lib/utils/k8s.d.ts +0 -3
  209. package/lib/utils/labels.d.ts +0 -9
  210. package/lib/utils/match-selector.d.ts +0 -3
  211. package/lib/utils/openapi.d.ts +0 -45
  212. package/lib/utils/schema.d.ts +0 -17
  213. package/lib/utils/selector.d.ts +0 -3
  214. package/lib/utils/shell.d.ts +0 -15
  215. package/lib/utils/string.d.ts +0 -1
  216. package/lib/utils/time.d.ts +0 -13
  217. package/lib/utils/unit.d.ts +0 -12
  218. package/lib/utils/yaml.d.ts +0 -2
@@ -1168,6 +1168,7 @@ const pv_phase_released$1 = "Released";
1168
1168
  const pv_phase_failed$1 = "Failed";
1169
1169
  const pv_phase_pending$1 = "Pending";
1170
1170
  const exec_pod = "Execute shell";
1171
+ const search$1 = "Search";
1171
1172
  const dovetail$1 = {
1172
1173
  copy: copy$2,
1173
1174
  reset_arguments: reset_arguments$1,
@@ -1338,7 +1339,8 @@ const dovetail$1 = {
1338
1339
  pv_phase_released: pv_phase_released$1,
1339
1340
  pv_phase_failed: pv_phase_failed$1,
1340
1341
  pv_phase_pending: pv_phase_pending$1,
1341
- exec_pod
1342
+ exec_pod,
1343
+ search: search$1
1342
1344
  };
1343
1345
  const EN = {
1344
1346
  dovetail: dovetail$1
@@ -8020,6 +8022,10 @@ function generateSchemaTypeValue(schema) {
8020
8022
  function resolveRef(schema, schemas, options) {
8021
8023
  var _a, _b;
8022
8024
  const { prune } = options;
8025
+ const kindObj = schema["x-kubernetes-group-version-kind"];
8026
+ if (kindObj) {
8027
+ schema.properties.kind = { const: kindObj[0].kind };
8028
+ }
8023
8029
  if (schema.$ref) {
8024
8030
  const refKey = schema.$ref.replace("#/components/schemas/", "");
8025
8031
  Object.assign(schema, schemas[refKey]);
@@ -8074,30 +8080,47 @@ function resolveRef(schema, schemas, options) {
8074
8080
  }
8075
8081
  class K8sOpenAPI {
8076
8082
  constructor(resourceBasePath) {
8077
- __publicField(this, "response", null);
8083
+ // private response: OpenAPIResponse | null = null;
8078
8084
  __publicField(this, "apiVersion");
8085
+ __publicField(this, "schemas", null);
8079
8086
  this.resourceBasePath = resourceBasePath;
8080
8087
  this.apiVersion = getApiVersion(resourceBasePath);
8081
8088
  }
8089
+ // Fetch and process OpenAPI schemas
8082
8090
  async fetch() {
8083
- const response = await fetch(
8084
- `/api/sks/api/v1/clusters/sks-mgmt/proxy/openapi/v3${this.resourceBasePath}`
8085
- );
8086
- return response.json();
8091
+ try {
8092
+ const response = await fetch(
8093
+ `/api/sks/api/v1/clusters/sks-mgmt/proxy/openapi/v3${this.resourceBasePath}`
8094
+ );
8095
+ const result = await response.json();
8096
+ this.schemas = Object.values(result.components.schemas);
8097
+ if (this.schemas) {
8098
+ this.processSchemas(result.components.schemas);
8099
+ }
8100
+ return this.schemas;
8101
+ } catch (error) {
8102
+ console.error("Failed to fetch OpenAPI schemas:", error);
8103
+ return null;
8104
+ }
8087
8105
  }
8088
- async findSchema(kind) {
8106
+ // Find schema by kind and version
8107
+ findSchema(kind) {
8089
8108
  var _a;
8090
- const result = this.response || await this.fetch();
8091
- const schema = Object.values(result.components.schemas).find(
8092
- (schema2) => {
8109
+ return (_a = this.schemas) == null ? void 0 : _a.find(
8110
+ (schema) => {
8093
8111
  var _a2;
8094
- return (_a2 = schema2["x-kubernetes-group-version-kind"]) == null ? void 0 : _a2.some(
8112
+ return (_a2 = schema["x-kubernetes-group-version-kind"]) == null ? void 0 : _a2.some(
8095
8113
  ({ kind: schemaKind, version: schemaVersion, group: schemaGroup }) => kind === schemaKind && this.apiVersion === `${schemaGroup ? schemaGroup + "/" : ""}${schemaVersion}`
8096
8114
  );
8097
8115
  }
8098
8116
  );
8099
- if (schema) {
8100
- resolveRef(schema, result.components.schemas, {
8117
+ }
8118
+ // Process and clean up schemas
8119
+ processSchemas(schemaMap) {
8120
+ var _a;
8121
+ (_a = this.schemas) == null ? void 0 : _a.forEach((schema) => {
8122
+ var _a2;
8123
+ resolveRef(schema, schemaMap, {
8101
8124
  prune: {
8102
8125
  description: true,
8103
8126
  optional: false,
@@ -8106,13 +8129,52 @@ class K8sOpenAPI {
8106
8129
  xProperty: true
8107
8130
  }
8108
8131
  });
8109
- }
8110
- if ((_a = schema == null ? void 0 : schema.properties) == null ? void 0 : _a.status) {
8111
- schema == null ? true : delete schema.properties.status;
8112
- }
8113
- return schema;
8132
+ if ((_a2 = schema == null ? void 0 : schema.properties) == null ? void 0 : _a2.status) {
8133
+ delete schema.properties.status;
8134
+ }
8135
+ });
8114
8136
  }
8115
8137
  }
8138
+ function useApiGroupSchema(apiGroups) {
8139
+ const [state2, setState] = useState({
8140
+ schemas: null,
8141
+ schemasMap: {},
8142
+ loading: false,
8143
+ error: null
8144
+ });
8145
+ const fetchSchema = useCallback(async () => {
8146
+ setState((prev) => ({ ...prev, loading: true, error: null }));
8147
+ try {
8148
+ const results = await Promise.all(
8149
+ apiGroups.map(async (apiGroup) => {
8150
+ if (state2.schemasMap[apiGroup]) {
8151
+ return { apiGroup, schemas: state2.schemasMap[apiGroup] };
8152
+ }
8153
+ const openapi = new K8sOpenAPI(apiGroup);
8154
+ const groupSchemas = await openapi.fetch();
8155
+ return { apiGroup, schemas: groupSchemas || [] };
8156
+ })
8157
+ );
8158
+ const newSchemasMap = results.reduce((acc, { apiGroup, schemas }) => {
8159
+ acc[apiGroup] = schemas;
8160
+ return acc;
8161
+ }, {});
8162
+ const allSchemas = results.flatMap(({ schemas }) => schemas);
8163
+ setState({
8164
+ schemas: allSchemas,
8165
+ schemasMap: newSchemasMap,
8166
+ loading: false,
8167
+ error: null
8168
+ });
8169
+ } catch (e2) {
8170
+ setState((prev) => ({ ...prev, loading: false, error: e2 }));
8171
+ }
8172
+ }, [apiGroups, state2.schemasMap]);
8173
+ useEffect(() => {
8174
+ fetchSchema();
8175
+ }, [fetchSchema]);
8176
+ return { ...state2, fetchSchema };
8177
+ }
8116
8178
  function useSchema(options) {
8117
8179
  var _a;
8118
8180
  const [schema, setSchema] = useState(null);
@@ -8132,6 +8194,7 @@ function useSchema(options) {
8132
8194
  setLoading(true);
8133
8195
  setError(null);
8134
8196
  try {
8197
+ await openapi.fetch();
8135
8198
  const schema2 = await openapi.findSchema((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.kind);
8136
8199
  setSchema(schema2 || null);
8137
8200
  setError(null);
@@ -8145,7 +8208,7 @@ function useSchema(options) {
8145
8208
  if (options == null ? void 0 : options.skip)
8146
8209
  return;
8147
8210
  fetchSchema();
8148
- }, [fetchSchema]);
8211
+ }, [fetchSchema, options == null ? void 0 : options.skip]);
8149
8212
  return {
8150
8213
  schema,
8151
8214
  loading,
@@ -18135,16 +18198,17 @@ const PlainCodeStyle = "pqch97v";
18135
18198
  const ErrorMsgStyle = "eh2qjnl";
18136
18199
  const ErrorWrapperStyle = "e19q2bnp";
18137
18200
  const YamlEditorStyle = "y16u5v3w";
18138
- const schemaMap = /* @__PURE__ */ new Map();
18139
18201
  const MonacoYamlEditor$1 = (props) => {
18140
18202
  const ref = useRef(null);
18141
- const instanceRef = useRef({ editor: null });
18203
+ const instanceRef = useRef({
18204
+ editor: null
18205
+ });
18142
18206
  const {
18143
18207
  defaultValue,
18144
18208
  id,
18145
18209
  height,
18146
18210
  readOnly,
18147
- schema,
18211
+ schemas,
18148
18212
  isScrollOnFocus,
18149
18213
  onChange,
18150
18214
  onValidate,
@@ -18154,24 +18218,21 @@ const MonacoYamlEditor$1 = (props) => {
18154
18218
  } = props;
18155
18219
  const uri = id ? monaco.Uri.parse(`${id}.yaml`) : void 0;
18156
18220
  useEffect(() => {
18157
- if (schema) {
18158
- schemaMap.set(id, {
18159
- // Id of the first schema
18221
+ const finalSchemas = [
18222
+ {
18160
18223
  uri: String(uri),
18161
- // Associate with our model
18162
- fileMatch: uri ? [String(uri)] : [],
18163
- schema
18164
- });
18165
- }
18166
- const schemas = [...schemaMap.values()];
18224
+ fileMatch: [String(uri)],
18225
+ schema: {
18226
+ oneOf: schemas || []
18227
+ }
18228
+ }
18229
+ ];
18167
18230
  setDiagnosticsOptions({
18168
18231
  enableSchemaRequest: false,
18169
- hover: true,
18170
- completion: true,
18171
18232
  validate: true,
18172
18233
  format: true,
18173
18234
  isKubernetes: true,
18174
- schemas
18235
+ schemas: finalSchemas
18175
18236
  });
18176
18237
  const model = monaco.editor.createModel(defaultValue, "yaml", uri);
18177
18238
  const editor = monaco.editor.create(ref.current, {
@@ -18192,11 +18253,10 @@ const MonacoYamlEditor$1 = (props) => {
18192
18253
  onEditorCreate == null ? void 0 : onEditorCreate(editor);
18193
18254
  return () => {
18194
18255
  instanceRef.current.editor = null;
18195
- schemaMap.delete(id);
18196
18256
  model.dispose();
18197
18257
  editor.dispose();
18198
18258
  };
18199
- }, [schema, id, readOnly, isScrollOnFocus, getInstance]);
18259
+ }, [id, schemas, readOnly, isScrollOnFocus, getInstance]);
18200
18260
  useEffect(() => {
18201
18261
  const editor = instanceRef.current.editor;
18202
18262
  if (editor) {
@@ -18218,7 +18278,10 @@ const MonacoYamlEditor$1 = (props) => {
18218
18278
  const model = (_a = instanceRef.current.editor) == null ? void 0 : _a.getModel();
18219
18279
  const currentEditorUri = model == null ? void 0 : model.uri;
18220
18280
  if (model && uri2.toString() === (currentEditorUri == null ? void 0 : currentEditorUri.toString())) {
18221
- const marks = monaco.editor.getModelMarkers({ owner: "yaml", resource: currentEditorUri });
18281
+ const marks = monaco.editor.getModelMarkers({
18282
+ owner: "yaml",
18283
+ resource: currentEditorUri
18284
+ });
18222
18285
  const yamlMarks = marks.filter((m) => m.source === "YAML");
18223
18286
  const schemaMarks = marks.filter((m) => m.source !== "YAML");
18224
18287
  const yamlValid = yamlMarks.length === 0;
@@ -18228,7 +18291,11 @@ const MonacoYamlEditor$1 = (props) => {
18228
18291
  var _a2;
18229
18292
  return (_a2 = mark.source) == null ? void 0 : _a2.includes("yaml-schema");
18230
18293
  })) {
18231
- monaco.editor.setModelMarkers(model, "yaml", marks.map((mark) => ({ ...mark, source: "", resource: {} })));
18294
+ monaco.editor.setModelMarkers(
18295
+ model,
18296
+ "yaml",
18297
+ marks.map((mark) => ({ ...mark, source: "", resource: {} }))
18298
+ );
18232
18299
  }
18233
18300
  }
18234
18301
  });
@@ -18254,20 +18321,24 @@ const MonacoYamlEditor$1 = (props) => {
18254
18321
  const editor = instanceRef.current.editor;
18255
18322
  const stops = [];
18256
18323
  if (editor && isScrollOnFocus) {
18257
- stops.push(editor.onDidFocusEditorWidget(() => {
18258
- editor.updateOptions({
18259
- scrollbar: {
18260
- handleMouseWheel: true
18261
- }
18262
- });
18263
- }));
18264
- stops.push(editor.onDidBlurEditorWidget(() => {
18265
- editor.updateOptions({
18266
- scrollbar: {
18267
- handleMouseWheel: false
18268
- }
18269
- });
18270
- }));
18324
+ stops.push(
18325
+ editor.onDidFocusEditorWidget(() => {
18326
+ editor.updateOptions({
18327
+ scrollbar: {
18328
+ handleMouseWheel: true
18329
+ }
18330
+ });
18331
+ })
18332
+ );
18333
+ stops.push(
18334
+ editor.onDidBlurEditorWidget(() => {
18335
+ editor.updateOptions({
18336
+ scrollbar: {
18337
+ handleMouseWheel: false
18338
+ }
18339
+ });
18340
+ })
18341
+ );
18271
18342
  }
18272
18343
  return () => {
18273
18344
  stops.forEach((stop) => stop.dispose());
@@ -18310,7 +18381,7 @@ const NetworkPolicyRulesViewer = ({
18310
18381
  });
18311
18382
  }
18312
18383
  return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
18313
- schema: {},
18384
+ schemas: [],
18314
18385
  defaultValue: yaml.dump(ingressOrEgress),
18315
18386
  height: "300px",
18316
18387
  className: EditorStyle$1,
@@ -31844,12 +31915,13 @@ function copy(text, options) {
31844
31915
  }
31845
31916
  var copyToClipboard$1 = copy;
31846
31917
  const copyToClipboard$2 = /* @__PURE__ */ getDefaultExportFromCjs(copyToClipboard$1);
31847
- const ShellToolbar_1rkzbun = "";
31918
+ const ShellToolbar_ox6trc = "";
31848
31919
  const ToolbarStyle$1 = "tzxa6d";
31849
31920
  const ToolbarAreaStyle = "t1sxu3rr";
31850
31921
  const IconWrapperStyle = "ix8ych8";
31851
31922
  const IconStyle = "i58m6oo";
31852
31923
  const DividerStyle = "d1t2oa87";
31924
+ const TooltipStyle = "tuo8xdg";
31853
31925
  function ShellToolbar(props) {
31854
31926
  const {
31855
31927
  className,
@@ -31879,7 +31951,10 @@ function ShellToolbar(props) {
31879
31951
  })),
31880
31952
  slotsElements: {
31881
31953
  trigger: () => /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
31882
- title: t2("dovetail.font_size"),
31954
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
31955
+ className: TooltipStyle,
31956
+ children: t2("dovetail.font_size")
31957
+ }),
31883
31958
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
31884
31959
  style: {
31885
31960
  display: "flex",
@@ -31895,7 +31970,10 @@ function ShellToolbar(props) {
31895
31970
  }
31896
31971
  }),
31897
31972
  downloadLog: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
31898
- title: t2("dovetail.download_shell_content"),
31973
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
31974
+ className: TooltipStyle,
31975
+ children: t2("dovetail.download_shell_content")
31976
+ }),
31899
31977
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
31900
31978
  className: IconStyle,
31901
31979
  src: LogCollection16GrayIcon,
@@ -31904,7 +31982,10 @@ function ShellToolbar(props) {
31904
31982
  })
31905
31983
  }),
31906
31984
  clear: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
31907
- title: t2("dovetail.clear_shell"),
31985
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
31986
+ className: TooltipStyle,
31987
+ children: t2("dovetail.clear_shell")
31988
+ }),
31908
31989
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
31909
31990
  className: IconStyle,
31910
31991
  src: TrashBinDeletePermanently16GrayIcon,
@@ -31921,7 +32002,7 @@ function ShellToolbar(props) {
31921
32002
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
31922
32003
  className: ToolbarAreaStyle,
31923
32004
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, {
31924
- placeholder: "Search...",
32005
+ placeholder: t2("dovetail.search"),
31925
32006
  size: "small",
31926
32007
  total: searchMatchedTotal,
31927
32008
  onChange: (str) => {
@@ -32260,7 +32341,8 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
32260
32341
  className: ContainerStyle,
32261
32342
  children: [!!error ? /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
32262
32343
  style: {
32263
- margin: "4px 8px"
32344
+ margin: 8,
32345
+ marginBottom: 4
32264
32346
  },
32265
32347
  message: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
32266
32348
  className: ErrorAlertStyle,
@@ -37257,7 +37339,7 @@ const Separator = () => {
37257
37339
  });
37258
37340
  };
37259
37341
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
37260
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-c27ab21c.js"));
37342
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-c5547070.js"));
37261
37343
  const YamlEditorComponent = forwardRef(
37262
37344
  function YamlEditorComponent2(props, ref) {
37263
37345
  const {
@@ -37268,7 +37350,7 @@ const YamlEditorComponent = forwardRef(
37268
37350
  height,
37269
37351
  readOnly,
37270
37352
  errorMsgs = [],
37271
- schema,
37353
+ schemas,
37272
37354
  eleRef,
37273
37355
  className
37274
37356
  } = props;
@@ -37480,7 +37562,7 @@ const YamlEditorComponent = forwardRef(
37480
37562
  onValidate,
37481
37563
  onEditorCreate,
37482
37564
  onBlur: props.onBlur,
37483
- schema,
37565
+ schemas,
37484
37566
  readOnly
37485
37567
  }
37486
37568
  ) }) }),
@@ -37719,43 +37801,35 @@ const useYamlForm = ({
37719
37801
  }),
37720
37802
  [formLoading, form]
37721
37803
  );
37722
- const editorProps = useMemo(
37723
- () => {
37724
- var _a2;
37725
- return {
37726
- ref: editor,
37727
- defaultValue: schema && (editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations) ? generateYamlBySchema(initialValues || {}, schema) : yaml.dump(initialValues),
37728
- schema,
37729
- id: ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
37730
- errorMsgs: editorErrors,
37731
- onValidate(yamlValid, schemaValid) {
37732
- setIsYamlValid(yamlValid);
37733
- setIsSchemaValid(schemaValid);
37734
- if (yamlValid && schemaValid) {
37735
- setEditorErrors([]);
37736
- }
37737
- },
37738
- onEditorCreate(editorInstance) {
37739
- var _a3, _b;
37740
- const editorValue = yaml.dump(initialValues);
37741
- (_a3 = editor.current) == null ? void 0 : _a3.setEditorValue(editorValue);
37742
- (_b = editor.current) == null ? void 0 : _b.setValue(editorValue);
37743
- if (action === "edit") {
37744
- fold2(editorInstance);
37745
- }
37804
+ const schemas = useMemo(() => {
37805
+ return schema ? [schema] : [];
37806
+ }, [schema]);
37807
+ const editorProps = useMemo(() => {
37808
+ var _a2;
37809
+ return {
37810
+ ref: editor,
37811
+ defaultValue: schema && (editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations) ? generateYamlBySchema(initialValues || {}, schema) : yaml.dump(initialValues),
37812
+ schemas,
37813
+ id: ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
37814
+ errorMsgs: editorErrors,
37815
+ onValidate(yamlValid, schemaValid) {
37816
+ setIsYamlValid(yamlValid);
37817
+ setIsSchemaValid(schemaValid);
37818
+ if (yamlValid && schemaValid) {
37819
+ setEditorErrors([]);
37746
37820
  }
37747
- };
37748
- },
37749
- [
37750
- editorErrors,
37751
- editorOptions,
37752
- initialValues,
37753
- schema,
37754
- (_a = useResourceResult.resource) == null ? void 0 : _a.name,
37755
- action,
37756
- fold2
37757
- ]
37758
- );
37821
+ },
37822
+ onEditorCreate(editorInstance) {
37823
+ var _a3, _b;
37824
+ const editorValue = yaml.dump(initialValues);
37825
+ (_a3 = editor.current) == null ? void 0 : _a3.setEditorValue(editorValue);
37826
+ (_b = editor.current) == null ? void 0 : _b.setValue(editorValue);
37827
+ if (action === "edit") {
37828
+ fold2(editorInstance);
37829
+ }
37830
+ }
37831
+ };
37832
+ }, [schema, editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations, initialValues, schemas, (_a = useResourceResult.resource) == null ? void 0 : _a.name, editorErrors, action, fold2]);
37759
37833
  return {
37760
37834
  form: formSF.form,
37761
37835
  formProps: {
@@ -37794,7 +37868,7 @@ const useYamlForm = ({
37794
37868
  editorProps,
37795
37869
  enableEditor,
37796
37870
  errorResponseBody,
37797
- schema,
37871
+ schemas: schema ? [schema] : [],
37798
37872
  isLoadingSchema,
37799
37873
  loadSchemaError,
37800
37874
  fetchSchema,
@@ -37886,9 +37960,9 @@ function YamlForm(props) {
37886
37960
  const formWrapperProps = isShowLayout ? {
37887
37961
  saveButtonProps
37888
37962
  } : {};
37889
- const schema = useMemo(() => {
37890
- return editorProps.schema || {};
37891
- }, [editorProps.schema]);
37963
+ const schemas = useMemo(() => {
37964
+ return editorProps.schemas || [];
37965
+ }, [editorProps.schemas]);
37892
37966
  const responseErrors = useMemo(() => errorResponseBody ? getCommonErrors(errorResponseBody, i18n2) : [], [errorResponseBody, i18n2]);
37893
37967
  const onFinish = useCallback(async (store) => {
37894
37968
  var _a, _b;
@@ -37923,7 +37997,7 @@ function YamlForm(props) {
37923
37997
  if (isLoadingSchema || (queryResult == null ? void 0 : queryResult.isLoading) && action === "edit") {
37924
37998
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
37925
37999
  }
37926
- return editorProps.schema || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
38000
+ return editorProps.schemas || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
37927
38001
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
37928
38002
  style: {
37929
38003
  flex: 1
@@ -37931,7 +38005,7 @@ function YamlForm(props) {
37931
38005
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(YamlEditorComponent, {
37932
38006
  ...editorProps,
37933
38007
  className: EditorStyle,
37934
- schema,
38008
+ schemas,
37935
38009
  collapsable: false
37936
38010
  })
37937
38011
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
@@ -39310,229 +39384,230 @@ const relationPlugin = new RelationPlugin();
39310
39384
  const ProviderPlugins = [relationPlugin, modelPlugin];
39311
39385
  const dovetailRefineI18n = i18n;
39312
39386
  export {
39313
- NamespaceSelectWidget as $,
39387
+ rfc1035LabelRules as $,
39314
39388
  AgeColumnRenderer as A,
39315
- PVStorageClassColumnRenderer as B,
39389
+ PVCStorageColumnRenderer as B,
39316
39390
  CommonSorter as C,
39317
39391
  DurationColumnRenderer as D,
39318
- PVPhaseColumnRenderer as E,
39319
- PVVolumeModeColumnRenderer as F,
39320
- PVAccessModeColumnRenderer as G,
39321
- ColumnKeys as H,
39392
+ PVStorageClassColumnRenderer as E,
39393
+ PVPhaseColumnRenderer as F,
39394
+ PVVolumeModeColumnRenderer as G,
39395
+ PVAccessModeColumnRenderer as H,
39322
39396
  IngressRulesColumnRenderer as I,
39323
- addDefaultRenderToColumns as J,
39324
- useEagleTable as K,
39325
- useDownloadYAML as L,
39397
+ ColumnKeys as J,
39398
+ addDefaultRenderToColumns as K,
39399
+ useEagleTable as L,
39326
39400
  ModalStyle as M,
39327
39401
  NameColumnRenderer as N,
39328
- useEdit as O,
39402
+ useDownloadYAML as O,
39329
39403
  PlainTextNameColumnRenderer as P,
39330
- useGlobalStore as Q,
39404
+ useEdit as Q,
39331
39405
  ReplicasColumnRenderer as R,
39332
39406
  StateDisplayColumnRenderer as S,
39333
- useOpenForm as T,
39334
- index as U,
39335
- Breadcrumb as V,
39407
+ useGlobalStore as T,
39408
+ useOpenForm as U,
39409
+ index as V,
39336
39410
  WorkloadImageColumnRenderer as W,
39337
- NameInputWidget as X,
39338
- dnsSubDomainRules as Y,
39339
- rfc1123LabelRules as Z,
39340
- rfc1035LabelRules as _,
39341
- useSchema as a,
39342
- PodLogTab as a$,
39343
- namespaceRules as a0,
39344
- KeyValueListWidget as a1,
39345
- MetadataForm as a2,
39346
- PageShow as a3,
39347
- Time as a4,
39348
- ConditionsTable as a5,
39349
- PodContainersTable as a6,
39350
- WorkloadDropdown as a7,
39351
- ReplicasDropdown as a8,
39352
- PodDropdown as a9,
39353
- DataField as aA,
39354
- SecretDataField as aB,
39355
- StartTimeField as aC,
39356
- ServiceTypeField as aD,
39357
- ClusterIpField as aE,
39358
- SessionAffinityField as aF,
39359
- ServicePodsField as aG,
39360
- IngressRulesTableTabField as aH,
39361
- EventsTableTabField as aI,
39362
- NamespaceField as aJ,
39363
- AgeField as aK,
39364
- LabelsField as aL,
39365
- AnnotationsField as aM,
39366
- ServiceInnerClusterAccessField as aN,
39367
- ServiceOutClusterAccessField as aO,
39368
- PodSelectorField as aP,
39369
- PortsTableField as aQ,
39370
- DurationField as aR,
39371
- StorageClassProvisionerField as aS,
39372
- StorageClassPvField as aT,
39373
- PVCapacityField as aU,
39374
- PVCStorageField as aV,
39375
- PVStorageClassField as aW,
39376
- PVPhaseField as aX,
39377
- PVVolumeModeField as aY,
39378
- PVAccessModeField as aZ,
39379
- EventsTab as a_,
39380
- CreateButton as aa,
39381
- ImageNames as ab,
39382
- ResourceList as ac,
39383
- ResourceShow as ad,
39384
- ResourceForm as ae,
39385
- ResourceCRUD as af,
39386
- WorkloadPodsTable as ag,
39387
- CronJobDropdown as ah,
39388
- K8sDropdown as ai,
39389
- ResourceUsageBar as aj,
39390
- WorkloadReplicasForm as ak,
39391
- WorkloadReplicas as al,
39392
- CronjobJobsTable as am,
39393
- KeyValue as an,
39394
- KeyValueAnnotation as ao,
39395
- KeyValueSecret as ap,
39396
- Separator as aq,
39397
- YamlEditorComponent as ar,
39398
- DeleteButton as as,
39399
- Layout as at,
39400
- AreaType as au,
39401
- ImageField as av,
39402
- ReplicaField as aw,
39403
- ConditionsField as ax,
39404
- PodsField as ay,
39405
- JobsField as az,
39406
- useDeleteModal as b,
39407
- CONFIG_MAP_INIT_VALUE as b$,
39408
- BasicGroup as b0,
39409
- PodsGroup as b1,
39410
- PodContainersGroup as b2,
39411
- ServicePodsGroup as b3,
39412
- ConditionsGroup as b4,
39413
- SecretDataGroup as b5,
39414
- JobsGroup as b6,
39415
- IngressRulesGroup as b7,
39416
- PodSelectorGroup as b8,
39417
- PortsGroup as b9,
39418
- ServiceOutClusterAccessComponent as bA,
39419
- Tags as bB,
39420
- TextTags as bC,
39421
- PodLog as bD,
39422
- NetworkPolicyRulesViewer as bE,
39423
- PVPhaseDisplay as bF,
39424
- PVVolumeModeDisplay as bG,
39425
- Tabs as bH,
39426
- ResourceSelect as bI,
39427
- SocketStatus as bJ,
39428
- Shell as bK,
39429
- PodShellModal as bL,
39430
- PodShell as bM,
39431
- BASE_INIT_VALUE as bN,
39432
- DEPLOYMENT_INIT_VALUE as bO,
39433
- CRONJOB_INIT_VALUE as bP,
39434
- DAEMONSET_INIT_VALUE as bQ,
39435
- JOB_INIT_VALUE as bR,
39436
- STATEFULSET_INIT_VALUE as bS,
39437
- POD_INIT_VALUE as bT,
39438
- SERVICE_CLUSTER_IP_INIT_VALUE as bU,
39439
- SERVICE_NODE_PORT_INIT_VALUE as bV,
39440
- SERVICE_LOAD_BALANCER_INIT_VALUE as bW,
39441
- SERVICE_EXTERNAL_NAME_INIT_VALUE as bX,
39442
- SERVICE_HEADLESS_INIT_VALUE as bY,
39443
- INGRESS_INIT_VALUE as bZ,
39444
- NETWORK_POLICY_INIT_VALUE as b_,
39445
- DataGroup as ba,
39446
- NetworkPolicyIngressRulesGroup as bb,
39447
- NetworkPolicyEgressRulesGroup as bc,
39448
- StorageClassPvGroup as bd,
39449
- ShowGroupComponent as be,
39450
- ShowContent as bf,
39451
- DeleteManyButton as bg,
39452
- ListPage as bh,
39453
- StateTagStyle as bi,
39454
- StateTag as bj,
39455
- DrawerShow as bk,
39456
- Menu as bl,
39457
- EditButton as bm,
39458
- ReferenceLink as bn,
39459
- ResourceLink as bo,
39460
- NS_STORE_KEY as bp,
39461
- ALL_NS as bq,
39462
- useNamespacesFilter as br,
39463
- NamespacesFilter as bs,
39464
- FormModal as bt,
39465
- RefineFormContent as bu,
39466
- RefineFormPage as bv,
39467
- SchemaStrategy as bw,
39468
- YamlForm as bx,
39469
- useRefineForm as by,
39470
- ServiceInClusterAccessComponent as bz,
39471
- NameSpaceColumnRenderer as c,
39472
- SERVER_INSTANCE_INIT_VALUE as c0,
39473
- TIMESTAMP_LABEL as c1,
39474
- SECRET_OPAQUE_INIT_VALUE as c2,
39475
- SECRET_IMAGE_REPO_INIT_VALUE as c3,
39476
- SECRET_BASIC_AUTH_INIT_VALUE as c4,
39477
- SECRET_SSH_AUTH_INIT_VALUE as c5,
39478
- SECRET_TLS_INIT_VALUE as c6,
39479
- SECRET_CUSTOM_INIT_VALUE as c7,
39480
- NODE_INIT_VALUE as c8,
39481
- STORAGE_CLASS_INIT_VALUE as c9,
39482
- PersistentVolumeModel as cA,
39483
- PersistentVolumeClaimModel as cB,
39484
- ProviderPlugins as cC,
39485
- ModelPlugin as cD,
39486
- modelPlugin as cE,
39487
- RelationPlugin as cF,
39488
- relationPlugin as cG,
39489
- WorkloadState as ca,
39490
- AccessControlAuth as cb,
39491
- Dovetail as cc,
39492
- RESOURCE_GROUP as cd,
39493
- FormType as ce,
39494
- ComponentContext as cf,
39495
- GlobalStoreContext as cg,
39496
- ConfigsContext as ch,
39497
- IngressModel as ci,
39498
- NetworkPolicyModel as cj,
39499
- JobModel as ck,
39500
- WorkloadModel as cl,
39501
- WorkloadBaseModel as cm,
39502
- PodModel as cn,
39503
- PodMetricsModel as co,
39504
- ResourceModel as cp,
39505
- CronJobModel as cq,
39506
- EventModel as cr,
39507
- DeploymentModel as cs,
39508
- DaemonSetModel as ct,
39509
- StatefulSetModel as cu,
39510
- ServiceTypeEnum as cv,
39511
- ServiceModel as cw,
39512
- NodeRole as cx,
39513
- NodeModel as cy,
39514
- StorageClassModel as cz,
39411
+ Breadcrumb as X,
39412
+ NameInputWidget as Y,
39413
+ dnsSubDomainRules as Z,
39414
+ rfc1123LabelRules as _,
39415
+ useApiGroupSchema as a,
39416
+ EventsTab as a$,
39417
+ NamespaceSelectWidget as a0,
39418
+ namespaceRules as a1,
39419
+ KeyValueListWidget as a2,
39420
+ MetadataForm as a3,
39421
+ PageShow as a4,
39422
+ Time as a5,
39423
+ ConditionsTable as a6,
39424
+ PodContainersTable as a7,
39425
+ WorkloadDropdown as a8,
39426
+ ReplicasDropdown as a9,
39427
+ JobsField as aA,
39428
+ DataField as aB,
39429
+ SecretDataField as aC,
39430
+ StartTimeField as aD,
39431
+ ServiceTypeField as aE,
39432
+ ClusterIpField as aF,
39433
+ SessionAffinityField as aG,
39434
+ ServicePodsField as aH,
39435
+ IngressRulesTableTabField as aI,
39436
+ EventsTableTabField as aJ,
39437
+ NamespaceField as aK,
39438
+ AgeField as aL,
39439
+ LabelsField as aM,
39440
+ AnnotationsField as aN,
39441
+ ServiceInnerClusterAccessField as aO,
39442
+ ServiceOutClusterAccessField as aP,
39443
+ PodSelectorField as aQ,
39444
+ PortsTableField as aR,
39445
+ DurationField as aS,
39446
+ StorageClassProvisionerField as aT,
39447
+ StorageClassPvField as aU,
39448
+ PVCapacityField as aV,
39449
+ PVCStorageField as aW,
39450
+ PVStorageClassField as aX,
39451
+ PVPhaseField as aY,
39452
+ PVVolumeModeField as aZ,
39453
+ PVAccessModeField as a_,
39454
+ PodDropdown as aa,
39455
+ CreateButton as ab,
39456
+ ImageNames as ac,
39457
+ ResourceList as ad,
39458
+ ResourceShow as ae,
39459
+ ResourceForm as af,
39460
+ ResourceCRUD as ag,
39461
+ WorkloadPodsTable as ah,
39462
+ CronJobDropdown as ai,
39463
+ K8sDropdown as aj,
39464
+ ResourceUsageBar as ak,
39465
+ WorkloadReplicasForm as al,
39466
+ WorkloadReplicas as am,
39467
+ CronjobJobsTable as an,
39468
+ KeyValue as ao,
39469
+ KeyValueAnnotation as ap,
39470
+ KeyValueSecret as aq,
39471
+ Separator as ar,
39472
+ YamlEditorComponent as as,
39473
+ DeleteButton as at,
39474
+ Layout as au,
39475
+ AreaType as av,
39476
+ ImageField as aw,
39477
+ ReplicaField as ax,
39478
+ ConditionsField as ay,
39479
+ PodsField as az,
39480
+ useSchema as b,
39481
+ NETWORK_POLICY_INIT_VALUE as b$,
39482
+ PodLogTab as b0,
39483
+ BasicGroup as b1,
39484
+ PodsGroup as b2,
39485
+ PodContainersGroup as b3,
39486
+ ServicePodsGroup as b4,
39487
+ ConditionsGroup as b5,
39488
+ SecretDataGroup as b6,
39489
+ JobsGroup as b7,
39490
+ IngressRulesGroup as b8,
39491
+ PodSelectorGroup as b9,
39492
+ ServiceInClusterAccessComponent as bA,
39493
+ ServiceOutClusterAccessComponent as bB,
39494
+ Tags as bC,
39495
+ TextTags as bD,
39496
+ PodLog as bE,
39497
+ NetworkPolicyRulesViewer as bF,
39498
+ PVPhaseDisplay as bG,
39499
+ PVVolumeModeDisplay as bH,
39500
+ Tabs as bI,
39501
+ ResourceSelect as bJ,
39502
+ SocketStatus as bK,
39503
+ Shell as bL,
39504
+ PodShellModal as bM,
39505
+ PodShell as bN,
39506
+ BASE_INIT_VALUE as bO,
39507
+ DEPLOYMENT_INIT_VALUE as bP,
39508
+ CRONJOB_INIT_VALUE as bQ,
39509
+ DAEMONSET_INIT_VALUE as bR,
39510
+ JOB_INIT_VALUE as bS,
39511
+ STATEFULSET_INIT_VALUE as bT,
39512
+ POD_INIT_VALUE as bU,
39513
+ SERVICE_CLUSTER_IP_INIT_VALUE as bV,
39514
+ SERVICE_NODE_PORT_INIT_VALUE as bW,
39515
+ SERVICE_LOAD_BALANCER_INIT_VALUE as bX,
39516
+ SERVICE_EXTERNAL_NAME_INIT_VALUE as bY,
39517
+ SERVICE_HEADLESS_INIT_VALUE as bZ,
39518
+ INGRESS_INIT_VALUE as b_,
39519
+ PortsGroup as ba,
39520
+ DataGroup as bb,
39521
+ NetworkPolicyIngressRulesGroup as bc,
39522
+ NetworkPolicyEgressRulesGroup as bd,
39523
+ StorageClassPvGroup as be,
39524
+ ShowGroupComponent as bf,
39525
+ ShowContent as bg,
39526
+ DeleteManyButton as bh,
39527
+ ListPage as bi,
39528
+ StateTagStyle as bj,
39529
+ StateTag as bk,
39530
+ DrawerShow as bl,
39531
+ Menu as bm,
39532
+ EditButton as bn,
39533
+ ReferenceLink as bo,
39534
+ ResourceLink as bp,
39535
+ NS_STORE_KEY as bq,
39536
+ ALL_NS as br,
39537
+ useNamespacesFilter as bs,
39538
+ NamespacesFilter as bt,
39539
+ FormModal as bu,
39540
+ RefineFormContent as bv,
39541
+ RefineFormPage as bw,
39542
+ SchemaStrategy as bx,
39543
+ YamlForm as by,
39544
+ useRefineForm as bz,
39545
+ useDeleteModal as c,
39546
+ CONFIG_MAP_INIT_VALUE as c0,
39547
+ SERVER_INSTANCE_INIT_VALUE as c1,
39548
+ TIMESTAMP_LABEL as c2,
39549
+ SECRET_OPAQUE_INIT_VALUE as c3,
39550
+ SECRET_IMAGE_REPO_INIT_VALUE as c4,
39551
+ SECRET_BASIC_AUTH_INIT_VALUE as c5,
39552
+ SECRET_SSH_AUTH_INIT_VALUE as c6,
39553
+ SECRET_TLS_INIT_VALUE as c7,
39554
+ SECRET_CUSTOM_INIT_VALUE as c8,
39555
+ NODE_INIT_VALUE as c9,
39556
+ StorageClassModel as cA,
39557
+ PersistentVolumeModel as cB,
39558
+ PersistentVolumeClaimModel as cC,
39559
+ ProviderPlugins as cD,
39560
+ ModelPlugin as cE,
39561
+ modelPlugin as cF,
39562
+ RelationPlugin as cG,
39563
+ relationPlugin as cH,
39564
+ STORAGE_CLASS_INIT_VALUE as ca,
39565
+ WorkloadState as cb,
39566
+ AccessControlAuth as cc,
39567
+ Dovetail as cd,
39568
+ RESOURCE_GROUP as ce,
39569
+ FormType as cf,
39570
+ ComponentContext as cg,
39571
+ GlobalStoreContext as ch,
39572
+ ConfigsContext as ci,
39573
+ IngressModel as cj,
39574
+ NetworkPolicyModel as ck,
39575
+ JobModel as cl,
39576
+ WorkloadModel as cm,
39577
+ WorkloadBaseModel as cn,
39578
+ PodModel as co,
39579
+ PodMetricsModel as cp,
39580
+ ResourceModel as cq,
39581
+ CronJobModel as cr,
39582
+ EventModel as cs,
39583
+ DeploymentModel as ct,
39584
+ DaemonSetModel as cu,
39585
+ StatefulSetModel as cv,
39586
+ ServiceTypeEnum as cw,
39587
+ ServiceModel as cx,
39588
+ NodeRole as cy,
39589
+ NodeModel as cz,
39515
39590
  dovetailRefineI18n as d,
39516
- WorkloadRestartsColumnRenderer as e,
39517
- NodeNameColumnRenderer as f,
39518
- RestartCountColumnRenderer as g,
39519
- CompletionsCountColumnRenderer as h,
39520
- ServiceTypeColumnRenderer as i,
39591
+ NameSpaceColumnRenderer as e,
39592
+ WorkloadRestartsColumnRenderer as f,
39593
+ NodeNameColumnRenderer as g,
39594
+ RestartCountColumnRenderer as h,
39595
+ CompletionsCountColumnRenderer as i,
39521
39596
  jsxRuntimeExports as j,
39522
- ServiceInClusterAccessTitle as k,
39523
- ServiceInClusterAccessColumnRenderer as l,
39524
- ServiceOutClusterAccessTitle as m,
39525
- ServiceOutClusterAccessColumnRenderer as n,
39526
- PodWorkloadColumnRenderer as o,
39527
- IngressDefaultBackendColumnRenderer as p,
39528
- IngressClassColumnRenderer as q,
39597
+ ServiceTypeColumnRenderer as k,
39598
+ ServiceInClusterAccessTitle as l,
39599
+ ServiceInClusterAccessColumnRenderer as m,
39600
+ ServiceOutClusterAccessTitle as n,
39601
+ ServiceOutClusterAccessColumnRenderer as o,
39602
+ PodWorkloadColumnRenderer as p,
39603
+ IngressDefaultBackendColumnRenderer as q,
39529
39604
  routerProvider as r,
39530
- IngressTlsColumnRenderer as s,
39531
- PodContainersNumColumnRenderer as t,
39605
+ IngressClassColumnRenderer as s,
39606
+ IngressTlsColumnRenderer as t,
39532
39607
  useNamespaceRefineFilter as u,
39533
- DataKeysColumnRenderer as v,
39534
- PortMappingColumnRenderer as w,
39535
- ProvisionerColumnRenderer as x,
39536
- PVCapacityColumnRenderer as y,
39537
- PVCStorageColumnRenderer as z
39608
+ PodContainersNumColumnRenderer as v,
39609
+ DataKeysColumnRenderer as w,
39610
+ PortMappingColumnRenderer as x,
39611
+ ProvisionerColumnRenderer as y,
39612
+ PVCapacityColumnRenderer as z
39538
39613
  };