@dovetail-v2/refine 0.0.63 → 0.0.65

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 (31) hide show
  1. package/dist/{MonacoYamlDiffEditor-2f1b1b7c.js → MonacoYamlDiffEditor-da40ae05.js} +1 -1
  2. package/dist/{index-bf00640b.js → index-cd2b9e5c.js} +566 -349
  3. package/dist/refine.js +179 -159
  4. package/dist/refine.umd.cjs +381 -164
  5. package/dist/style.css +3 -3
  6. package/lib/src/components/Form/type.d.ts +4 -3
  7. package/lib/src/components/K8sDropdown/index.d.ts +1 -1
  8. package/lib/src/components/ResourceLink/index.d.ts +1 -1
  9. package/lib/src/components/ResourceSelect/index.d.ts +12 -0
  10. package/lib/src/components/ShowContent/fields.d.ts +7 -1
  11. package/lib/src/components/ShowContent/groups.d.ts +2 -1
  12. package/lib/src/components/ValueDisplay/index.d.ts +1 -1
  13. package/lib/src/components/index.d.ts +1 -0
  14. package/lib/src/constants/k8s.d.ts +18 -0
  15. package/lib/src/hooks/useEagleTable/columns.d.ts +8 -1
  16. package/lib/src/i18n.d.ts +4 -1
  17. package/lib/src/locales/zh-CN/index.d.ts +4 -1
  18. package/lib/src/models/index.d.ts +4 -0
  19. package/lib/src/models/node-model.d.ts +18 -0
  20. package/lib/src/models/persistent-volume-claim.d.ts +10 -0
  21. package/lib/src/models/persistent-volume.d.ts +10 -0
  22. package/lib/src/models/storage-class.d.ts +13 -0
  23. package/lib/src/models/workload-base-model.d.ts +2 -2
  24. package/lib/src/pages/nodes/index.d.ts +2 -0
  25. package/lib/src/pages/nodes/list/index.d.ts +3 -0
  26. package/lib/src/pages/nodes/show/index.d.ts +3 -0
  27. package/lib/src/pages/persistentvolumes/index.d.ts +19 -0
  28. package/lib/src/pages/storageclasses/form/index.d.ts +9 -0
  29. package/lib/src/pages/storageclasses/index.d.ts +45 -0
  30. package/lib/src/types/resource.d.ts +3 -1
  31. package/package.json +5 -5
@@ -1158,7 +1158,7 @@ var __publicField = (obj, key, value) => {
1158
1158
  const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
1159
1159
  const not_support$1 = "Not supported";
1160
1160
  const stopped$1 = "Stopped";
1161
- const any_node_ip$1 = "Any node IP";
1161
+ const any_node_ip = "Any node IP";
1162
1162
  const dovetail$1 = {
1163
1163
  copy: copy$1,
1164
1164
  reset_arguments: reset_arguments$1,
@@ -1314,7 +1314,7 @@ var __publicField = (obj, key, value) => {
1314
1314
  only_support_one_yaml: only_support_one_yaml$1,
1315
1315
  not_support: not_support$1,
1316
1316
  stopped: stopped$1,
1317
- any_node_ip: any_node_ip$1
1317
+ any_node_ip
1318
1318
  };
1319
1319
  const EN = {
1320
1320
  dovetail: dovetail$1
@@ -1471,7 +1471,10 @@ var __publicField = (obj, key, value) => {
1471
1471
  const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
1472
1472
  const not_support = "不支持";
1473
1473
  const stopped = "已停止";
1474
- const any_node_ip = "任意节点 IP";
1474
+ const storage_class = "存储类";
1475
+ const persistent_volumn = "持久卷";
1476
+ const provisioner = "制备器";
1477
+ const file_system = "文件系统";
1475
1478
  const dovetail = {
1476
1479
  copy,
1477
1480
  reset_arguments,
@@ -1628,7 +1631,10 @@ var __publicField = (obj, key, value) => {
1628
1631
  only_support_one_yaml,
1629
1632
  not_support,
1630
1633
  stopped,
1631
- any_node_ip
1634
+ storage_class,
1635
+ persistent_volumn,
1636
+ provisioner,
1637
+ file_system
1632
1638
  };
1633
1639
  const ZH = {
1634
1640
  dovetail
@@ -8237,6 +8243,7 @@ var __publicField = (obj, key, value) => {
8237
8243
  }
8238
8244
  const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8239
8245
  __proto__: null,
8246
+ ValueDisplay,
8240
8247
  default: ValueDisplay
8241
8248
  }, Symbol.toStringTag, { value: "Module" }));
8242
8249
  function getSecondsDiff(startDate, endDate) {
@@ -8318,9 +8325,8 @@ var __publicField = (obj, key, value) => {
8318
8325
  });
8319
8326
  }
8320
8327
  function NameInputWidget(props) {
8321
- const kit = eagle.useUIKit();
8322
8328
  const { action } = core.useResource();
8323
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.input, { ...props, disabled: action === "edit" });
8329
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Input, { ...props, disabled: action === "edit" });
8324
8330
  }
8325
8331
  const dnsSubDomainRules = [
8326
8332
  {
@@ -8365,7 +8371,6 @@ var __publicField = (obj, key, value) => {
8365
8371
  }
8366
8372
  ];
8367
8373
  function NamespaceSelectWidget(props) {
8368
- const kit = eagle.useUIKit();
8369
8374
  const { action } = core.useResource();
8370
8375
  const { data: data2 } = core.useList({
8371
8376
  resource: "namespaces",
@@ -8377,7 +8382,7 @@ var __publicField = (obj, key, value) => {
8377
8382
  mode: "off"
8378
8383
  }
8379
8384
  });
8380
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
8385
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
8381
8386
  }
8382
8387
  const namespaceRules = [
8383
8388
  {
@@ -8387,7 +8392,6 @@ var __publicField = (obj, key, value) => {
8387
8392
  ];
8388
8393
  function KeyValueInput(props) {
8389
8394
  const { children, item } = props;
8390
- const kit = eagle.useUIKit();
8391
8395
  const onKeyChange = React.useCallback(
8392
8396
  (event2) => {
8393
8397
  var _a;
@@ -8410,14 +8414,13 @@ var __publicField = (obj, key, value) => {
8410
8414
  },
8411
8415
  [item, props]
8412
8416
  );
8413
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { children: [
8414
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.input, { value: item.key, onChange: onKeyChange }),
8415
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.textArea, { value: item.value, onChange: onValueChange }),
8417
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { children: [
8418
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Input, { value: item.key, onChange: onKeyChange }),
8419
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.TextArea, { value: item.value, onChange: onValueChange }),
8416
8420
  children
8417
8421
  ] });
8418
8422
  }
8419
8423
  function KeyValueListWidget(props) {
8420
- const kit = eagle.useUIKit();
8421
8424
  const { value: value2 } = props;
8422
8425
  const items = React.useMemo(() => {
8423
8426
  return Object.entries(value2 || {}).map(([key2, value22]) => ({
@@ -8459,7 +8462,7 @@ var __publicField = (obj, key, value) => {
8459
8462
  onChange(temp);
8460
8463
  },
8461
8464
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
8462
- kit.button,
8465
+ eagle.Button,
8463
8466
  {
8464
8467
  onClick: () => {
8465
8468
  onRemove(index2);
@@ -8472,15 +8475,14 @@ var __publicField = (obj, key, value) => {
8472
8475
  index2
8473
8476
  );
8474
8477
  }),
8475
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: onAdd, children: "Add" }) })
8478
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, { type: "primary", onClick: onAdd, children: "Add" }) })
8476
8479
  ] });
8477
8480
  }
8478
8481
  function MetadataForm() {
8479
- const kit = eagle.useUIKit();
8480
8482
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8481
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
8483
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
8482
8484
  /* @__PURE__ */ jsxRuntimeExports.jsx(
8483
- kit.form.Item,
8485
+ eagle.Form.Item,
8484
8486
  {
8485
8487
  label: "Namespace",
8486
8488
  name: ["metadata", "namespace"],
@@ -8488,8 +8490,8 @@ var __publicField = (obj, key, value) => {
8488
8490
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(NamespaceSelectWidget, {})
8489
8491
  }
8490
8492
  ),
8491
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
8492
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8493
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
8494
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8493
8495
  ] });
8494
8496
  }
8495
8497
  function memoize$2(fn) {
@@ -8679,7 +8681,6 @@ var __publicField = (obj, key, value) => {
8679
8681
  const index_dmbxj3 = "";
8680
8682
  const TableContainerStyle = "t1upn1sz";
8681
8683
  function Table(props) {
8682
- const kit = eagle.useUIKit();
8683
8684
  const {
8684
8685
  t: t2
8685
8686
  } = useTranslation();
@@ -8724,7 +8725,7 @@ var __publicField = (obj, key, value) => {
8724
8725
  return columns;
8725
8726
  }, [columns, RowMenu]);
8726
8727
  if (loading) {
8727
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
8728
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {});
8728
8729
  } else if (error) {
8729
8730
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
8730
8731
  errorText: t2("dovetail.retry_when_access_data_failed"),
@@ -8744,7 +8745,7 @@ var __publicField = (obj, key, value) => {
8744
8745
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
8745
8746
  ref: wrapperRef,
8746
8747
  className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
8747
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.table, {
8748
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Table, {
8748
8749
  tableLayout: "fixed",
8749
8750
  columns: finalColumns,
8750
8751
  dataSource,
@@ -8755,7 +8756,7 @@ var __publicField = (obj, key, value) => {
8755
8756
  scroll
8756
8757
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
8757
8758
  ref: auxiliaryLineRef
8758
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
8759
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Pagination, {
8759
8760
  current: currentPage,
8760
8761
  size: defaultSize,
8761
8762
  count: total,
@@ -9554,6 +9555,24 @@ var __publicField = (obj, key, value) => {
9554
9555
  "type": "",
9555
9556
  "data": {}
9556
9557
  };
9558
+ const NODE_INIT_VALUE = {
9559
+ "apiVersion": "v1",
9560
+ "kind": "Node",
9561
+ "metadata": {
9562
+ "name": "example",
9563
+ "namespace": "default"
9564
+ },
9565
+ "spec": {}
9566
+ };
9567
+ const STORAGE_CLASS_INIT_VALUE = {
9568
+ "apiVersion": "storage.k8s.io/v1",
9569
+ "kind": "StorageClass",
9570
+ "metadata": {
9571
+ "name": "example",
9572
+ "namespace": "default"
9573
+ },
9574
+ "spec": {}
9575
+ };
9557
9576
  var WorkloadState = /* @__PURE__ */ ((WorkloadState2) => {
9558
9577
  WorkloadState2["Terminated"] = "terminated";
9559
9578
  WorkloadState2["UPDATING"] = "updating";
@@ -10039,6 +10058,69 @@ var __publicField = (obj, key, value) => {
10039
10058
  });
10040
10059
  }
10041
10060
  }
10061
+ var NodeRole = /* @__PURE__ */ ((NodeRole2) => {
10062
+ NodeRole2["ControlPlane"] = "Control Plane";
10063
+ NodeRole2["Worker"] = "Worker";
10064
+ return NodeRole2;
10065
+ })(NodeRole || {});
10066
+ class NodeModel extends WorkloadBaseModel {
10067
+ constructor(_rawYaml, _globalStore) {
10068
+ super(_rawYaml, _globalStore);
10069
+ this._rawYaml = _rawYaml;
10070
+ this._globalStore = _globalStore;
10071
+ }
10072
+ get role() {
10073
+ return "node-role.kubernetes.io/control-plane" in (this.metadata.labels || {}) ? "Control Plane" : "Worker";
10074
+ }
10075
+ get ip() {
10076
+ var _a, _b;
10077
+ return (_b = (_a = this._rawYaml.status.addresses) == null ? void 0 : _a.find((add) => add.type === "InternalIP")) == null ? void 0 : _b.address;
10078
+ }
10079
+ get nodeGroupName() {
10080
+ var _a;
10081
+ return (_a = this.metadata.labels) == null ? void 0 : _a["cape.infrastructure.cluster.x-k8s.io/node-group"];
10082
+ }
10083
+ get isControlPlane() {
10084
+ var _a;
10085
+ if (!((_a = this == null ? void 0 : this.metadata) == null ? void 0 : _a.labels))
10086
+ return false;
10087
+ return "node-role.kubernetes.io/control-plane" in this.metadata.labels;
10088
+ }
10089
+ }
10090
+ class StorageClassModel extends ResourceModel {
10091
+ constructor(_rawYaml, _globalStore) {
10092
+ super(_rawYaml, _globalStore);
10093
+ __publicField(this, "pvs", []);
10094
+ this._rawYaml = _rawYaml;
10095
+ this._globalStore = _globalStore;
10096
+ }
10097
+ async init() {
10098
+ const pvs = await this._globalStore.get("persistentvolumes", {
10099
+ resourceBasePath: "/api/v1",
10100
+ kind: "PersistentVolume"
10101
+ });
10102
+ this.pvs = pvs.items.filter(
10103
+ (pv) => {
10104
+ var _a;
10105
+ return ((_a = pv.spec) == null ? void 0 : _a.storageClassName) === this.metadata.name;
10106
+ }
10107
+ );
10108
+ }
10109
+ }
10110
+ class PersistentVolumeModel extends ResourceModel {
10111
+ constructor(_rawYaml, _globalStore) {
10112
+ super(_rawYaml, _globalStore);
10113
+ this._rawYaml = _rawYaml;
10114
+ this._globalStore = _globalStore;
10115
+ }
10116
+ }
10117
+ class PersistentVolumeClaimModel extends ResourceModel {
10118
+ constructor(_rawYaml, _globalStore) {
10119
+ super(_rawYaml, _globalStore);
10120
+ this._rawYaml = _rawYaml;
10121
+ this._globalStore = _globalStore;
10122
+ }
10123
+ }
10042
10124
  const index_1lzkrja = "";
10043
10125
  const ServiceInClusterAccessComponent = ({
10044
10126
  service
@@ -10125,14 +10207,13 @@ var __publicField = (obj, key, value) => {
10125
10207
  const {
10126
10208
  value: value2
10127
10209
  } = props;
10128
- const kit = eagle.useUIKit();
10129
10210
  if (!value2) {
10130
10211
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
10131
10212
  value: ""
10132
10213
  });
10133
10214
  }
10134
10215
  const tags = Object.keys(value2).map((key2) => {
10135
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tag.SplitTag, {
10216
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tag.SplitTag, {
10136
10217
  className: TagStyle,
10137
10218
  primaryContent: key2,
10138
10219
  secondaryContent: value2[key2],
@@ -10140,7 +10221,7 @@ var __publicField = (obj, key, value) => {
10140
10221
  color: "gray"
10141
10222
  }, key2);
10142
10223
  });
10143
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.space, {
10224
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Space, {
10144
10225
  className: TagWrapper,
10145
10226
  size: 8,
10146
10227
  children: tags
@@ -10153,7 +10234,6 @@ var __publicField = (obj, key, value) => {
10153
10234
  hideBackground,
10154
10235
  className
10155
10236
  }) => {
10156
- const kit = eagle.useUIKit();
10157
10237
  const {
10158
10238
  t: t2
10159
10239
  } = useTranslation();
@@ -10172,7 +10252,7 @@ var __publicField = (obj, key, value) => {
10172
10252
  terminated: "red",
10173
10253
  stopped: "gray"
10174
10254
  };
10175
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.statusCapsule, {
10255
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, {
10176
10256
  className: cx_default(className, StateTagStyle, hideBackground && "no-background"),
10177
10257
  color: statusMap[state2] !== "loading" ? statusMap[state2] : void 0,
10178
10258
  loading: statusMap[state2] === "loading",
@@ -10435,6 +10515,8 @@ var __publicField = (obj, key, value) => {
10435
10515
  RESOURCE_GROUP2["CLUSTER"] = "CLUSTER";
10436
10516
  RESOURCE_GROUP2["SERVICE"] = "SERVICE";
10437
10517
  RESOURCE_GROUP2["SERVICE_AND_NETWORK"] = "SERVICE_AND_NETWORK";
10518
+ RESOURCE_GROUP2["CONFIG"] = "CONFIG";
10519
+ RESOURCE_GROUP2["NODE_MANAGEMENT"] = "NODE_MANAGEMENT";
10438
10520
  return RESOURCE_GROUP2;
10439
10521
  })(RESOURCE_GROUP || {});
10440
10522
  var FormType = /* @__PURE__ */ ((FormType2) => {
@@ -10489,7 +10571,6 @@ var __publicField = (obj, key, value) => {
10489
10571
  }
10490
10572
  function K8sDropdown(props) {
10491
10573
  const { record, size = "normal" } = props;
10492
- const kit = eagle.useUIKit();
10493
10574
  const { globalStore } = useGlobalStore();
10494
10575
  const useResourceResult = core.useResource();
10495
10576
  const resource = useResourceResult.resource;
@@ -10510,18 +10591,18 @@ var __publicField = (obj, key, value) => {
10510
10591
  });
10511
10592
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10512
10593
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10513
- kit.dropdown,
10594
+ eagle.Dropdown,
10514
10595
  {
10515
- overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.menu, { children: [
10596
+ overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Menu, { children: [
10516
10597
  isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
10517
- kit.menuItem,
10598
+ eagle.Menu.Item,
10518
10599
  {
10519
10600
  onClick: openForm,
10520
10601
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: t2("dovetail.edit_yaml") })
10521
10602
  }
10522
10603
  ),
10523
10604
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10524
- kit.menu.Item,
10605
+ eagle.Menu.Item,
10525
10606
  {
10526
10607
  onClick: () => {
10527
10608
  var _a;
@@ -10536,9 +10617,9 @@ var __publicField = (obj, key, value) => {
10536
10617
  }
10537
10618
  ),
10538
10619
  props.children,
10539
- (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, { style: { margin: 0 } }) : null,
10620
+ (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, { style: { margin: 0 } }) : null,
10540
10621
  (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10541
- kit.menuItem,
10622
+ eagle.Menu.Item,
10542
10623
  {
10543
10624
  danger: true,
10544
10625
  onClick: () => {
@@ -10550,7 +10631,7 @@ var __publicField = (obj, key, value) => {
10550
10631
  ] }),
10551
10632
  trigger: ["click"],
10552
10633
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10553
- kit.button,
10634
+ eagle.Button,
10554
10635
  {
10555
10636
  type: "quiet",
10556
10637
  size: size === "large" ? "middle" : "small",
@@ -10567,7 +10648,7 @@ var __publicField = (obj, key, value) => {
10567
10648
  )
10568
10649
  }
10569
10650
  ),
10570
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
10651
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
10571
10652
  ] });
10572
10653
  }
10573
10654
  var ColumnKeys = /* @__PURE__ */ ((ColumnKeys2) => {
@@ -10665,12 +10746,11 @@ var __publicField = (obj, key, value) => {
10665
10746
  };
10666
10747
  function CreateButton() {
10667
10748
  var _a;
10668
- const kit = eagle.useUIKit();
10669
10749
  const { t: t2 } = useTranslation();
10670
10750
  const openForm = useOpenForm();
10671
10751
  const { resource } = core.useResource();
10672
10752
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10673
- kit.button,
10753
+ eagle.Button,
10674
10754
  {
10675
10755
  prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.PlusAddCreateNew16BoldOntintIcon, {}),
10676
10756
  type: "primary",
@@ -10709,7 +10789,6 @@ var __publicField = (obj, key, value) => {
10709
10789
  };
10710
10790
  const DeleteManyButton = (props) => {
10711
10791
  const { resource } = core.useResource();
10712
- const kit = eagle.useUIKit();
10713
10792
  const { t: t2 } = useTranslation();
10714
10793
  const { modalProps, visible, setVisible } = useDeleteManyModal(
10715
10794
  (resource == null ? void 0 : resource.name) || "",
@@ -10719,8 +10798,8 @@ var __publicField = (obj, key, value) => {
10719
10798
  setVisible(true);
10720
10799
  }, [setVisible]);
10721
10800
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10722
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
10723
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
10801
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
10802
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
10724
10803
  ] });
10725
10804
  };
10726
10805
  const TableToolBar_4s5vf2 = "";
@@ -10734,18 +10813,17 @@ var __publicField = (obj, key, value) => {
10734
10813
  hideCreate
10735
10814
  }) => {
10736
10815
  var _a;
10737
- const kit = eagle.useUIKit();
10738
10816
  const {
10739
10817
  resource
10740
10818
  } = core.useResource();
10741
10819
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10742
10820
  className: cx_default(ToolbarWrapperStyle, "table-toolbar"),
10743
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10821
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
10744
10822
  className: ToolbarStyle$1,
10745
10823
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
10746
10824
  className: cx_default(eagle.Typo.Display.d2_regular_title, TitleStyle$2),
10747
10825
  children: (_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind
10748
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10826
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
10749
10827
  children: [selectedKeys.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteManyButton, {
10750
10828
  ids: selectedKeys
10751
10829
  }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
@@ -10780,7 +10858,6 @@ var __publicField = (obj, key, value) => {
10780
10858
  const {
10781
10859
  i18n: i18n2
10782
10860
  } = useTranslation();
10783
- const kit = eagle.useUIKit();
10784
10861
  const [selectedKeys] = React.useState([]);
10785
10862
  const component = React.useContext(ComponentContext);
10786
10863
  const Table$1 = component.Table || Table;
@@ -10818,7 +10895,7 @@ var __publicField = (obj, key, value) => {
10818
10895
  type: ErrorContentType.Card
10819
10896
  });
10820
10897
  }
10821
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10898
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
10822
10899
  direction: "vertical",
10823
10900
  className: WrapperStyle$5,
10824
10901
  children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
@@ -10951,25 +11028,24 @@ var __publicField = (obj, key, value) => {
10951
11028
  const LinkStyle = "l1vnw9x0";
10952
11029
  const ResourceLink = (props) => {
10953
11030
  const {
10954
- name: name2,
11031
+ resourceName,
10955
11032
  namespace: namespace2,
10956
11033
  resourceId
10957
11034
  } = props;
10958
- const kit = eagle.useUIKit();
10959
11035
  const navigation = core.useNavigation();
10960
11036
  const go = core.useGo();
10961
11037
  const onClick = () => {
10962
11038
  go({
10963
- to: navigation.showUrl(name2, ""),
11039
+ to: navigation.showUrl(resourceName, ""),
10964
11040
  query: {
10965
- id: `${namespace2}/${resourceId}`
11041
+ id: namespace2 ? `${namespace2}/${resourceId}` : resourceId
10966
11042
  },
10967
11043
  options: {
10968
11044
  keepQuery: true
10969
11045
  }
10970
11046
  });
10971
11047
  };
10972
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, {
11048
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Link, {
10973
11049
  className: LinkStyle,
10974
11050
  onClick,
10975
11051
  children: resourceId
@@ -11014,7 +11090,7 @@ var __publicField = (obj, key, value) => {
11014
11090
  return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
11015
11091
  ResourceLink,
11016
11092
  {
11017
- name: "services",
11093
+ resourceName: "services",
11018
11094
  namespace: ingress.metadata.namespace || "default",
11019
11095
  resourceId: serviceName
11020
11096
  }
@@ -11041,7 +11117,7 @@ var __publicField = (obj, key, value) => {
11041
11117
  return secretName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
11042
11118
  ResourceLink,
11043
11119
  {
11044
- name: "secrets",
11120
+ resourceName: "secrets",
11045
11121
  namespace: ingress.metadata.namespace || "default",
11046
11122
  resourceId: secretName
11047
11123
  }
@@ -11163,12 +11239,11 @@ var __publicField = (obj, key, value) => {
11163
11239
  }
11164
11240
  function Tabs(props) {
11165
11241
  const { tabs, className } = props;
11166
- const kit = eagle.useUIKit();
11167
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabs, { className, children: tabs.map((tab) => {
11168
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
11242
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tabs, { className, children: tabs.map((tab) => {
11243
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
11169
11244
  }) });
11170
11245
  }
11171
- const ShowContent_vvz9yc = "";
11246
+ const ShowContent_1u0cbxv = "";
11172
11247
  const ShowContentWrapperStyle = "s9agep2";
11173
11248
  const BackButton = "bo89gfi";
11174
11249
  const ToolBarWrapper = "t1ohe42f";
@@ -11200,13 +11275,12 @@ var __publicField = (obj, key, value) => {
11200
11275
  });
11201
11276
  }
11202
11277
  const ShowContent = (props) => {
11203
- var _a, _b, _c;
11278
+ var _a, _b, _c, _d;
11204
11279
  const {
11205
11280
  showConfig,
11206
11281
  formatter,
11207
11282
  Dropdown = K8sDropdown
11208
11283
  } = props;
11209
- const kit = eagle.useUIKit();
11210
11284
  const parsed = core.useParsed();
11211
11285
  const {
11212
11286
  resource
@@ -11240,6 +11314,8 @@ var __publicField = (obj, key, value) => {
11240
11314
  if (!record)
11241
11315
  return null;
11242
11316
  return fields.map((field) => {
11317
+ if (field.hidden)
11318
+ return null;
11243
11319
  let content;
11244
11320
  const value2 = lodashEs.get(record, field.path);
11245
11321
  if (field.renderContent) {
@@ -11247,7 +11323,7 @@ var __publicField = (obj, key, value) => {
11247
11323
  } else {
11248
11324
  content = lodashEs.get(record, field.path);
11249
11325
  }
11250
- return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.col, {
11326
+ return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Col, {
11251
11327
  flex: areaType === AreaType.Inline ? "none" : "",
11252
11328
  span: field.col || 24,
11253
11329
  children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
@@ -11302,7 +11378,7 @@ var __publicField = (obj, key, value) => {
11302
11378
  children: (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.kind
11303
11379
  })
11304
11380
  })
11305
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11381
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
11306
11382
  className: TopBarStyle,
11307
11383
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11308
11384
  style: {
@@ -11314,11 +11390,11 @@ var __publicField = (obj, key, value) => {
11314
11390
  }), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
11315
11391
  state: stateDisplay
11316
11392
  }) : void 0]
11317
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11318
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
11393
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
11394
+ children: [(_d = showConfig.renderExtraButton) == null ? void 0 : _d.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
11319
11395
  resource: resource == null ? void 0 : resource.name,
11320
11396
  action: AccessControlAuth.Edit,
11321
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11397
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
11322
11398
  style: {
11323
11399
  marginRight: 8
11324
11400
  },
@@ -11326,7 +11402,7 @@ var __publicField = (obj, key, value) => {
11326
11402
  prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.EditPen16GradientBlueIcon, {}),
11327
11403
  children: t2("dovetail.edit_yaml")
11328
11404
  })
11329
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, {
11405
+ }) : null, /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, {
11330
11406
  record,
11331
11407
  size: "large"
11332
11408
  })]
@@ -11343,7 +11419,7 @@ var __publicField = (obj, key, value) => {
11343
11419
  className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
11344
11420
  children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
11345
11421
  const GroupContainer = group.title ? ShowGroupComponent : React.Fragment;
11346
- const FieldContainer = group.title ? kit.row : React.Fragment;
11422
+ const FieldContainer = group.title ? eagle.Row : React.Fragment;
11347
11423
  const groupContainerProps = group.title ? {
11348
11424
  title: group.title || ""
11349
11425
  } : {};
@@ -11356,7 +11432,7 @@ var __publicField = (obj, key, value) => {
11356
11432
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
11357
11433
  ...fieldContainerProps,
11358
11434
  children: renderFields(area.fields, area.type, !!group.title)
11359
- }, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
11435
+ }, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
11360
11436
  style: {
11361
11437
  margin: "8px 0 12px 0"
11362
11438
  }
@@ -11371,7 +11447,7 @@ var __publicField = (obj, key, value) => {
11371
11447
  });
11372
11448
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11373
11449
  className: ShowContentWrapperStyle,
11374
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.space, {
11450
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Space, {
11375
11451
  direction: "vertical",
11376
11452
  className: ShowContentHeaderStyle,
11377
11453
  children: topBar
@@ -11422,7 +11498,6 @@ var __publicField = (obj, key, value) => {
11422
11498
  const {
11423
11499
  i18n: i18n2
11424
11500
  } = useTranslation();
11425
- const kit = eagle.useUIKit();
11426
11501
  const [selectedKeys, setSelectedKeys] = React.useState([]);
11427
11502
  const component = React.useContext(ComponentContext);
11428
11503
  const Table$1 = component.Table || Table;
@@ -11467,7 +11542,7 @@ var __publicField = (obj, key, value) => {
11467
11542
  type: ErrorContentType.Card
11468
11543
  });
11469
11544
  }
11470
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11545
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
11471
11546
  direction: "vertical",
11472
11547
  className: "c1dicff8",
11473
11548
  children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
@@ -11485,9 +11560,8 @@ var __publicField = (obj, key, value) => {
11485
11560
  function FormErrorAlert(props) {
11486
11561
  const { errorMsgs, style, className, isEdit } = props;
11487
11562
  const { i18n: i18n2 } = useTranslation();
11488
- const kit = eagle.useUIKit();
11489
11563
  return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
11490
- kit.alert,
11564
+ eagle.Alert,
11491
11565
  {
11492
11566
  message: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
11493
11567
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: i18n2.t(isEdit ? "dovetail.save_failed_tip" : "dovetail.create_failed_tip") }),
@@ -11595,7 +11669,6 @@ var __publicField = (obj, key, value) => {
11595
11669
  formRef: form,
11596
11670
  renderContent
11597
11671
  } = props;
11598
- const kit = eagle.useUIKit();
11599
11672
  const {
11600
11673
  i18n: i18n2
11601
11674
  } = useTranslation();
@@ -11615,7 +11688,7 @@ var __publicField = (obj, key, value) => {
11615
11688
  popModal();
11616
11689
  reset();
11617
11690
  }, [reset]);
11618
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.modal, {
11691
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
11619
11692
  className: ModalStyle,
11620
11693
  title: title || i18n2.t("dovetail.edit"),
11621
11694
  confirmLoading: submitting,
@@ -11637,7 +11710,6 @@ var __publicField = (obj, key, value) => {
11637
11710
  const {
11638
11711
  modalProps
11639
11712
  } = props;
11640
- const kit = eagle.useUIKit();
11641
11713
  const {
11642
11714
  i18n: i18n2
11643
11715
  } = useTranslation();
@@ -11648,7 +11720,7 @@ var __publicField = (obj, key, value) => {
11648
11720
  return /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
11649
11721
  resource: resource == null ? void 0 : resource.name,
11650
11722
  action: AccessControlAuth.Edit,
11651
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11723
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
11652
11724
  className: EditButtonStyle,
11653
11725
  type: "link",
11654
11726
  onClick: () => {
@@ -11677,7 +11749,6 @@ var __publicField = (obj, key, value) => {
11677
11749
  record,
11678
11750
  label: label2
11679
11751
  } = props;
11680
- const kit = eagle.useUIKit();
11681
11752
  const {
11682
11753
  resource
11683
11754
  } = core.useResource();
@@ -11714,7 +11785,7 @@ var __publicField = (obj, key, value) => {
11714
11785
  React.useImperativeHandle(ref, () => ({
11715
11786
  submit
11716
11787
  }), [submit]);
11717
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
11788
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
11718
11789
  label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11719
11790
  style: {
11720
11791
  width: "134px"
@@ -11722,7 +11793,7 @@ var __publicField = (obj, key, value) => {
11722
11793
  children: label2
11723
11794
  }),
11724
11795
  colon: false,
11725
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.fields.Integer, {
11796
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Fields.Integer, {
11726
11797
  style: {
11727
11798
  width: "142px"
11728
11799
  },
@@ -11747,7 +11818,6 @@ var __publicField = (obj, key, value) => {
11747
11818
  record,
11748
11819
  editable
11749
11820
  }) {
11750
- const kit = eagle.useUIKit();
11751
11821
  const {
11752
11822
  t: t2
11753
11823
  } = useTranslation();
@@ -11775,7 +11845,7 @@ var __publicField = (obj, key, value) => {
11775
11845
  className: WorkloadReplicasWrapperStyle,
11776
11846
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
11777
11847
  className: DonutChartWrapperStyle,
11778
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.DonutChart, {
11848
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.DonutChart, {
11779
11849
  className: DonutChartStyle,
11780
11850
  data: donutData,
11781
11851
  width: 70,
@@ -12076,6 +12146,36 @@ var __publicField = (obj, key, value) => {
12076
12146
  }
12077
12147
  };
12078
12148
  };
12149
+ const StorageClassProvisionerField = (i18n2) => {
12150
+ return {
12151
+ key: "provisioner",
12152
+ path: ["provisioner"],
12153
+ title: i18n2.t("dovetail.provisioner")
12154
+ };
12155
+ };
12156
+ const StorageClassFsTypeField = (i18n2) => {
12157
+ return {
12158
+ key: "fstype",
12159
+ path: ["parameters", "csi.storage.k8s.io/fstype"],
12160
+ title: i18n2.t("dovetail.file_system")
12161
+ };
12162
+ };
12163
+ const StorageClassPvField = () => {
12164
+ return {
12165
+ key: "pvs",
12166
+ path: ["pvs"],
12167
+ renderContent: (pvs) => {
12168
+ return pvs.map((pv) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12169
+ ResourceLink,
12170
+ {
12171
+ resourceName: "persistentvolumes",
12172
+ namespace: pv.metadata.namespace || "",
12173
+ resourceId: pv.id
12174
+ }
12175
+ ) }, pv.metadata.name));
12176
+ }
12177
+ };
12178
+ };
12079
12179
  function __rest(s2, e2) {
12080
12180
  var t2 = {};
12081
12181
  for (var p in s2)
@@ -17676,7 +17776,6 @@ var __publicField = (obj, key, value) => {
17676
17776
  pod: pod2
17677
17777
  }) => {
17678
17778
  var _a, _b, _c, _d, _e;
17679
- const kit = eagle.useUIKit();
17680
17779
  const [selectedContainer, setSelectedContainer] = React.useState(((_b = (_a = pod2.spec) == null ? void 0 : _a.containers[0]) == null ? void 0 : _b.name) || "");
17681
17780
  const [logs, setLogs] = React.useState([]);
17682
17781
  const [logType, setLogType] = React.useState("realtime");
@@ -17799,7 +17898,7 @@ var __publicField = (obj, key, value) => {
17799
17898
  className: ToolbarStyle,
17800
17899
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
17801
17900
  className: ToolbarAreaStyle,
17802
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.SegmentedControl, {
17901
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.SegmentControl, {
17803
17902
  options: [{
17804
17903
  label: t2("dovetail.realtime_log"),
17805
17904
  value: "realtime"
@@ -17812,7 +17911,7 @@ var __publicField = (obj, key, value) => {
17812
17911
  setLogType(value2);
17813
17912
  setLogs([]);
17814
17913
  }
17815
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
17914
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Select, {
17816
17915
  input: {
17817
17916
  onChange: (newValue) => {
17818
17917
  stopFetchingLogs();
@@ -17826,22 +17925,22 @@ var __publicField = (obj, key, value) => {
17826
17925
  style: {
17827
17926
  width: 200
17828
17927
  },
17829
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
17928
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
17830
17929
  value: "",
17831
17930
  disabled: true,
17832
17931
  children: t2("dovetail.select_container")
17833
- }), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
17932
+ }), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
17834
17933
  value: container2.name,
17835
17934
  children: container2.name
17836
17935
  }, container2.name))]
17837
17936
  })]
17838
17937
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
17839
17938
  className: ToolbarAreaStyle,
17840
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.checkbox, {
17939
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Checkbox, {
17841
17940
  checked: wrap,
17842
17941
  onChange: (e2) => setWrap(e2.target.checked),
17843
17942
  children: t2("dovetail.auto_wrap")
17844
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
17943
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
17845
17944
  onClick: () => setPaused((prev) => !prev),
17846
17945
  prefixIcon: paused ? /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.RecoverContinue16GradientBlueIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.SuspendedPause16GradientBlueIcon, {}),
17847
17946
  size: "middle",
@@ -18299,21 +18398,27 @@ var __publicField = (obj, key, value) => {
18299
18398
  });
18300
18399
  const IngressRulesGroup = (i18n2) => ({
18301
18400
  title: i18n2.t("dovetail.rule"),
18302
- areas: [{
18303
- fields: [IngressRulesTableTabField()]
18304
- }]
18401
+ areas: [
18402
+ {
18403
+ fields: [IngressRulesTableTabField()]
18404
+ }
18405
+ ]
18305
18406
  });
18306
18407
  const PodSelectorGroup = (i18n2) => ({
18307
18408
  title: i18n2.t("dovetail.pod_selector"),
18308
- areas: [{
18309
- fields: [PodSelectorField()]
18310
- }]
18409
+ areas: [
18410
+ {
18411
+ fields: [PodSelectorField()]
18412
+ }
18413
+ ]
18311
18414
  });
18312
18415
  const PortsGroup = (i18n2) => ({
18313
18416
  title: i18n2.t("dovetail.port"),
18314
- areas: [{
18315
- fields: [PortsTableField()]
18316
- }]
18417
+ areas: [
18418
+ {
18419
+ fields: [PortsTableField()]
18420
+ }
18421
+ ]
18317
18422
  });
18318
18423
  const DataGroup = (i18n2) => ({
18319
18424
  title: i18n2.t("dovetail.data"),
@@ -18367,6 +18472,14 @@ var __publicField = (obj, key, value) => {
18367
18472
  }
18368
18473
  ]
18369
18474
  });
18475
+ const StorageClassPvGroup = (i18n2) => ({
18476
+ title: i18n2.t("dovetail.persistent_volumn"),
18477
+ areas: [
18478
+ {
18479
+ fields: [StorageClassPvField()]
18480
+ }
18481
+ ]
18482
+ });
18370
18483
  const PageShow = (props) => {
18371
18484
  var _a;
18372
18485
  const parsed = core.useParsed();
@@ -18408,7 +18521,6 @@ var __publicField = (obj, key, value) => {
18408
18521
  const {
18409
18522
  saveButtonProps
18410
18523
  } = props;
18411
- const kit = eagle.useUIKit();
18412
18524
  const {
18413
18525
  resource,
18414
18526
  action
@@ -18421,8 +18533,8 @@ var __publicField = (obj, key, value) => {
18421
18533
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
18422
18534
  className: cx_default(eagle.Typo.Display.d2_bold_title, TitleStyle),
18423
18535
  children: [(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind, ":", " ", action === "create" ? t2("dovetail.create") : t2("dovetail.edit")]
18424
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
18425
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
18536
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
18537
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
18426
18538
  type: "primary",
18427
18539
  ...saveButtonProps,
18428
18540
  children: t2("dovetail.save")
@@ -18432,7 +18544,6 @@ var __publicField = (obj, key, value) => {
18432
18544
  }
18433
18545
  function WorkloadDropdown(props) {
18434
18546
  const { record, size, children } = props;
18435
- const kit = eagle.useUIKit();
18436
18547
  const { resource } = core.useResource();
18437
18548
  const { mutateAsync } = core.useUpdate();
18438
18549
  const { t: t2 } = useTranslation();
@@ -18442,7 +18553,7 @@ var __publicField = (obj, key, value) => {
18442
18553
  });
18443
18554
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(K8sDropdown, { record, size, children: [
18444
18555
  (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
18445
- kit.menu.Item,
18556
+ eagle.Menu.Item,
18446
18557
  {
18447
18558
  onClick: async () => {
18448
18559
  const v = record.redeploy();
@@ -18486,7 +18597,6 @@ var __publicField = (obj, key, value) => {
18486
18597
  }
18487
18598
  function ReplicasDropdown(props) {
18488
18599
  const { record, size, children } = props;
18489
- const kit = eagle.useUIKit();
18490
18600
  const { t: t2 } = useTranslation();
18491
18601
  const pushModal = eagle.usePushModal();
18492
18602
  const formRef = React.useRef(null);
@@ -18498,7 +18608,7 @@ var __publicField = (obj, key, value) => {
18498
18608
  });
18499
18609
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(WorkloadDropdown, { record, size, children: [
18500
18610
  isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
18501
- kit.menu.Item,
18611
+ eagle.Menu.Item,
18502
18612
  {
18503
18613
  onClick: () => {
18504
18614
  const modalProps = {
@@ -18688,7 +18798,6 @@ var __publicField = (obj, key, value) => {
18688
18798
  const NamespacesFilter = ({
18689
18799
  className
18690
18800
  }) => {
18691
- const kit = eagle.useUIKit();
18692
18801
  const {
18693
18802
  t: t2
18694
18803
  } = useTranslation();
@@ -18737,7 +18846,7 @@ var __publicField = (obj, key, value) => {
18737
18846
  }, [calcTagMaxWidth]);
18738
18847
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18739
18848
  className: WRAPPER_CLASS,
18740
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
18849
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Select, {
18741
18850
  loading: isLoading,
18742
18851
  className: cx_default(SelectStyle, SELECT_CLASS, className),
18743
18852
  style: {
@@ -18758,14 +18867,14 @@ var __publicField = (obj, key, value) => {
18758
18867
  },
18759
18868
  dropdownRender: (menu) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18760
18869
  className: SelectContentStyle,
18761
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.searchInput, {
18870
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.SearchInput, {
18762
18871
  style: {
18763
18872
  width: "100%"
18764
18873
  },
18765
18874
  className: SearchInputStyle,
18766
18875
  onChange: debouncedSetSearch,
18767
18876
  placeholder: t2("dovetail.please_input")
18768
- }), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : null]
18877
+ }), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {}) : null]
18769
18878
  }),
18770
18879
  tagRender: ({
18771
18880
  label: label2,
@@ -18784,17 +18893,17 @@ var __publicField = (obj, key, value) => {
18784
18893
  marginLeft: 8
18785
18894
  },
18786
18895
  children: label2
18787
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.token, {
18896
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Token, {
18788
18897
  className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
18789
18898
  closable,
18790
18899
  size: "medium",
18791
18900
  onClose,
18792
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18793
- content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tooltip, {
18901
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
18902
+ content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
18794
18903
  title: isCountToken ? value2.slice(MAX_TAG_COUNT).map((namespace2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
18795
18904
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18796
18905
  children: namespace2
18797
- }), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
18906
+ }), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
18798
18907
  style: {
18799
18908
  margin: "6px 0",
18800
18909
  borderColor: "rgba(107, 128, 167, 0.60)"
@@ -18819,26 +18928,26 @@ var __publicField = (obj, key, value) => {
18819
18928
  setOpen(open2);
18820
18929
  },
18821
18930
  multiple: true,
18822
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
18931
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
18823
18932
  value: "_all",
18824
18933
  label: t2("dovetail.all_namespaces"),
18825
18934
  className: AllNamespaceOptionStyle,
18826
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18935
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
18827
18936
  content: t2("dovetail.all_namespaces"),
18828
18937
  className: LabelWrapperStyle
18829
18938
  })
18830
- }, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.selectOptGroup, {
18939
+ }, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdSelectOptGroup, {
18831
18940
  label: "",
18832
18941
  className: SelectOptionGroupStyle,
18833
18942
  children: data2 == null ? void 0 : data2.data.map((namespace2) => {
18834
18943
  const {
18835
18944
  name: name2
18836
18945
  } = namespace2.metadata;
18837
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
18946
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
18838
18947
  value: name2,
18839
18948
  label: name2,
18840
18949
  className: OptionStyle,
18841
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18950
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
18842
18951
  content: name2,
18843
18952
  className: LabelWrapperStyle
18844
18953
  })
@@ -22243,6 +22352,9 @@ var __publicField = (obj, key, value) => {
22243
22352
  children: value2
22244
22353
  });
22245
22354
  }
22355
+ if (c2 == null ? void 0 : c2.render) {
22356
+ ele = c2.render(value2, onChange, formValue, onBlur, action, control);
22357
+ }
22246
22358
  if (c2.helperText) {
22247
22359
  ele = /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
22248
22360
  size: 4,
@@ -22254,9 +22366,6 @@ var __publicField = (obj, key, value) => {
22254
22366
  })]
22255
22367
  });
22256
22368
  }
22257
- if (c2 == null ? void 0 : c2.render) {
22258
- ele = c2.render(value2, onChange, formValue, onBlur, action);
22259
- }
22260
22369
  return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
22261
22370
  label: c2.label,
22262
22371
  colon: false,
@@ -22981,7 +23090,6 @@ var __publicField = (obj, key, value) => {
22981
23090
  eleRef,
22982
23091
  className
22983
23092
  } = props;
22984
- const kit = eagle.useUIKit();
22985
23093
  const { t: t2 } = useTranslation();
22986
23094
  const [isCollapsed, setIsCollapsed] = React.useState(
22987
23095
  collapsable ? isDefaultCollapsed : false
@@ -23041,14 +23149,14 @@ var __publicField = (obj, key, value) => {
23041
23149
  ref: eleRef,
23042
23150
  children: [
23043
23151
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
23044
- kit.space,
23152
+ eagle.Space,
23045
23153
  {
23046
23154
  className: cx_default(ToolBarStyle, isCollapsed ? "collapsed" : ""),
23047
23155
  direction: "vertical",
23048
23156
  size: 0,
23049
23157
  children: [
23050
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ToolBarHeaderStyle, children: [
23051
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { size: 8, children: [
23158
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { className: ToolBarHeaderStyle, children: [
23159
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { size: 8, children: [
23052
23160
  collapsable && /* @__PURE__ */ jsxRuntimeExports.jsx(
23053
23161
  eagle.Icon,
23054
23162
  {
@@ -23062,10 +23170,10 @@ var __publicField = (obj, key, value) => {
23062
23170
  ),
23063
23171
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx_default(TitleStyle$1, "yaml-editor-title"), children: title || t2("dovetail.configure_file") })
23064
23172
  ] }),
23065
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { size: 14, children: [
23173
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { size: 14, children: [
23066
23174
  isDiff ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
23067
23175
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23068
- kit.tooltip,
23176
+ eagle.Tooltip,
23069
23177
  {
23070
23178
  title: isCollapsed ? "" : copyTooltip,
23071
23179
  onVisibleChange: (visible) => {
@@ -23096,7 +23204,7 @@ var __publicField = (obj, key, value) => {
23096
23204
  ),
23097
23205
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {}),
23098
23206
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23099
- kit.tooltip,
23207
+ eagle.Tooltip,
23100
23208
  {
23101
23209
  title: isCollapsed ? "" : resetTooltip,
23102
23210
  onVisibleChange: (visible) => {
@@ -23129,7 +23237,7 @@ var __publicField = (obj, key, value) => {
23129
23237
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {})
23130
23238
  ] }),
23131
23239
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23132
- kit.tooltip,
23240
+ eagle.Tooltip,
23133
23241
  {
23134
23242
  title: isCollapsed ? "" : isDiff ? t2("dovetail.back_to_edit") : t2("dovetail.view_changes"),
23135
23243
  children: isDiff ? /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23159,7 +23267,7 @@ var __publicField = (obj, key, value) => {
23159
23267
  )
23160
23268
  ] })
23161
23269
  ] }),
23162
- errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
23270
+ errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
23163
23271
  /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
23164
23272
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: ErrorMsgStyle, children: [
23165
23273
  errorMsgs.length > 1 ? `${index2 + 1}. ` : "",
@@ -23346,7 +23454,6 @@ var __publicField = (obj, key, value) => {
23346
23454
  const [errorResponseBody, setErrorResponseBody] = React.useState(null);
23347
23455
  const useResourceResult = core.useResource();
23348
23456
  const { globalStore } = useGlobalStore();
23349
- const kit = eagle.useUIKit();
23350
23457
  const {
23351
23458
  schema,
23352
23459
  loading: isLoadingSchema,
@@ -23355,7 +23462,7 @@ var __publicField = (obj, key, value) => {
23355
23462
  } = useSchema({
23356
23463
  skip: editorOptions == null ? void 0 : editorOptions.isSkipSchema
23357
23464
  });
23358
- const [formAnt] = kit.form.useForm();
23465
+ const [formAnt] = eagle.Form.useForm();
23359
23466
  const formSF = sunflowerAntd.useForm({
23360
23467
  form: formAnt
23361
23468
  });
@@ -23589,7 +23696,6 @@ var __publicField = (obj, key, value) => {
23589
23696
  },
23590
23697
  ...useFormProps
23591
23698
  });
23592
- const kit = eagle.useUIKit();
23593
23699
  const {
23594
23700
  t: t2,
23595
23701
  i18n: i18n2
@@ -23625,7 +23731,7 @@ var __publicField = (obj, key, value) => {
23625
23731
  }, [responseErrors, onErrorsChange]);
23626
23732
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormWrapper, {
23627
23733
  ...formWrapperProps,
23628
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form, {
23734
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form, {
23629
23735
  ...formProps,
23630
23736
  initialValues: formProps.initialValues,
23631
23737
  layout: "horizontal",
@@ -23633,10 +23739,10 @@ var __publicField = (obj, key, value) => {
23633
23739
  onFinish,
23634
23740
  children: (() => {
23635
23741
  if (isLoadingSchema || (queryResult == null ? void 0 : queryResult.isLoading) && action === "edit") {
23636
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
23742
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {});
23637
23743
  }
23638
23744
  return editorProps.schema || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
23639
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
23745
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
23640
23746
  style: {
23641
23747
  flex: 1
23642
23748
  },
@@ -23646,7 +23752,7 @@ var __publicField = (obj, key, value) => {
23646
23752
  schema,
23647
23753
  collapsable: false
23648
23754
  })
23649
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
23755
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
23650
23756
  children: mutationResult.error && /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
23651
23757
  errorMsgs: errorResponseBody ? responseErrors : [mutationResult.error.message],
23652
23758
  style: {
@@ -23870,7 +23976,6 @@ var __publicField = (obj, key, value) => {
23870
23976
  function CronJobDropdown(props) {
23871
23977
  const { record, size } = props;
23872
23978
  const { spec } = record;
23873
- const kit = eagle.useUIKit();
23874
23979
  const { resource } = core.useResource();
23875
23980
  const { mutateAsync } = core.useUpdate();
23876
23981
  const { t: t2 } = useTranslation();
@@ -23880,7 +23985,7 @@ var __publicField = (obj, key, value) => {
23880
23985
  });
23881
23986
  const suspended2 = Boolean(spec == null ? void 0 : spec.suspend);
23882
23987
  return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, size, children: (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
23883
- kit.menu.Item,
23988
+ eagle.Menu.Item,
23884
23989
  {
23885
23990
  onClick: async () => {
23886
23991
  const v = suspended2 ? record.resume() : record.suspend();
@@ -23986,36 +24091,34 @@ var __publicField = (obj, key, value) => {
23986
24091
  const DeleteButton = () => {
23987
24092
  const { resource } = core.useResource();
23988
24093
  const { id } = core.useParsed();
23989
- const kit = eagle.useUIKit();
23990
24094
  const { t: t2 } = useTranslation();
23991
24095
  const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
23992
24096
  (resource == null ? void 0 : resource.name) || ""
23993
24097
  );
23994
24098
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
23995
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
23996
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
24099
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
24100
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
23997
24101
  ] });
23998
24102
  };
23999
24103
  const index_1wt5px2 = "";
24000
24104
  const MenuStyle = "mdppgn0";
24001
24105
  const Menu = () => {
24002
- const kit = eagle.useUIKit();
24003
24106
  const {
24004
24107
  menuItems,
24005
24108
  selectedKey
24006
24109
  } = core.useMenu();
24007
24110
  function renderMenuItems(items) {
24008
- return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menuItem, {
24111
+ return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Menu.Item, {
24009
24112
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(reactRouterDom.NavLink, {
24010
24113
  to: item.route || "",
24011
24114
  children: item.label
24012
24115
  })
24013
- }, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menuItemGroup, {
24116
+ }, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.MenuItemGroup, {
24014
24117
  title: item.name,
24015
24118
  children: renderMenuItems(item.children)
24016
24119
  }, item.key));
24017
24120
  }
24018
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menu, {
24121
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Menu, {
24019
24122
  className: MenuStyle,
24020
24123
  theme: "light",
24021
24124
  selectedKeys: [selectedKey],
@@ -24030,21 +24133,20 @@ var __publicField = (obj, key, value) => {
24030
24133
  const Layout = ({
24031
24134
  children
24032
24135
  }) => {
24033
- const kit = eagle.useUIKit();
24034
24136
  const [collapsed, setCollapsed] = React.useState(false);
24035
24137
  const {
24036
24138
  Header,
24037
24139
  Content,
24038
24140
  Sider
24039
- } = kit.layout;
24040
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.layout, {
24141
+ } = eagle.Layout;
24142
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Layout, {
24041
24143
  style: {
24042
24144
  height: "100%"
24043
24145
  },
24044
24146
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Header, {
24045
24147
  className: cx_default(HeaderStyle, eagle.Typo.Heading.h1_bold_title),
24046
24148
  children: "Dovetail 2"
24047
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.layout, {
24149
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Layout, {
24048
24150
  className: ContentLayoutStyle,
24049
24151
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Sider, {
24050
24152
  width: 256,
@@ -24062,7 +24164,6 @@ var __publicField = (obj, key, value) => {
24062
24164
  };
24063
24165
  const DrawerShow = (props) => {
24064
24166
  var _a, _b;
24065
- const kit = eagle.useUIKit();
24066
24167
  const parsed = core.useParsed();
24067
24168
  const nav = core.useNavigation();
24068
24169
  const { queryResult } = core.useShow({ id: (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id });
@@ -24075,16 +24176,15 @@ var __publicField = (obj, key, value) => {
24075
24176
  onClose: () => nav.goBack(),
24076
24177
  width: "50%",
24077
24178
  visible: !!((_b = parsed == null ? void 0 : parsed.params) == null ? void 0 : _b.id),
24078
- children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
24179
+ children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
24079
24180
  }
24080
24181
  );
24081
24182
  };
24082
24183
  const EditButton = () => {
24083
24184
  const { id } = core.useParsed();
24084
- const kit = eagle.useUIKit();
24085
24185
  const { edit: edit2 } = useEdit();
24086
24186
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
24087
- kit.button,
24187
+ eagle.Button,
24088
24188
  {
24089
24189
  type: "primary",
24090
24190
  onClick: () => {
@@ -24109,7 +24209,7 @@ var __publicField = (obj, key, value) => {
24109
24209
  ResourceLink,
24110
24210
  {
24111
24211
  resourceId: ownerReference.name,
24112
- name: resource.name || "",
24212
+ resourceName: resource.name || "",
24113
24213
  namespace: namespace2
24114
24214
  }
24115
24215
  );
@@ -24124,12 +24224,37 @@ var __publicField = (obj, key, value) => {
24124
24224
  });
24125
24225
  return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: tags });
24126
24226
  };
24227
+ function ResourceSelect(props) {
24228
+ const { resource, resourceBasePath, kind, selectProps, value: value2, onChange } = props;
24229
+ const { data: data2, isLoading, isError } = core.useList({
24230
+ resource,
24231
+ meta: {
24232
+ resourceBasePath,
24233
+ kind
24234
+ },
24235
+ pagination: {
24236
+ mode: "off"
24237
+ }
24238
+ });
24239
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
24240
+ eagle.Select,
24241
+ {
24242
+ input: {
24243
+ value: value2,
24244
+ onChange
24245
+ },
24246
+ loading: isLoading,
24247
+ error: isError,
24248
+ ...selectProps,
24249
+ children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name))
24250
+ }
24251
+ );
24252
+ }
24127
24253
  const IngressRulesComponent = ({ ingress }) => {
24128
- const kit = eagle.useUIKit();
24129
24254
  const result = ingress.flattenedRules.map((r2) => {
24130
24255
  const divider = " > ";
24131
24256
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
24132
- kit.overflowTooltip,
24257
+ eagle.OverflowTooltip,
24133
24258
  {
24134
24259
  content: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
24135
24260
  /* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: r2.fullPath }),
@@ -24138,7 +24263,7 @@ var __publicField = (obj, key, value) => {
24138
24263
  /* @__PURE__ */ jsxRuntimeExports.jsx(
24139
24264
  ResourceLink,
24140
24265
  {
24141
- name: "services",
24266
+ resourceName: "services",
24142
24267
  namespace: ingress.metadata.namespace || "default",
24143
24268
  resourceId: r2.serviceName
24144
24269
  }
@@ -24166,12 +24291,11 @@ var __publicField = (obj, key, value) => {
24166
24291
  id,
24167
24292
  resource
24168
24293
  } = props;
24169
- const kit = eagle.useUIKit();
24170
24294
  const go = core.useGo();
24171
24295
  const navigation = core.useNavigation();
24172
24296
  const parsed = core.useParsed();
24173
24297
  const resourceName = resource || ((_a = parsed.resource) == null ? void 0 : _a.name) || "";
24174
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
24298
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
24175
24299
  type: "link",
24176
24300
  onClick: () => {
24177
24301
  go({
@@ -24316,7 +24440,6 @@ var __publicField = (obj, key, value) => {
24316
24440
  isRelativeTime = true
24317
24441
  } = {}) => {
24318
24442
  const dataIndex = ["metadata", "creationTimestamp"];
24319
- const kit = eagle.useUIKit();
24320
24443
  return {
24321
24444
  key: "creationTimestamp",
24322
24445
  display: true,
@@ -24328,7 +24451,7 @@ var __publicField = (obj, key, value) => {
24328
24451
  return isRelativeTime ? /* @__PURE__ */ jsxRuntimeExports.jsx(Time, {
24329
24452
  date: new Date(value2)
24330
24453
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
24331
- value: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.time, {
24454
+ value: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Time, {
24332
24455
  date: value2,
24333
24456
  timeTemplate: "HH:mm:ss",
24334
24457
  dateTemplate: "YYYY-MM-DD"
@@ -24683,6 +24806,76 @@ var __publicField = (obj, key, value) => {
24683
24806
  }
24684
24807
  };
24685
24808
  };
24809
+ const ProvisionerColumnRenderer = (i18n2) => {
24810
+ return {
24811
+ key: "provisioner",
24812
+ display: true,
24813
+ dataIndex: ["provisioner"],
24814
+ title: i18n2.t("dovetail.provisioner"),
24815
+ width: 120,
24816
+ sortable: true
24817
+ };
24818
+ };
24819
+ const FsTypeColumnRenderer = (i18n2) => {
24820
+ return {
24821
+ key: "fstype",
24822
+ display: true,
24823
+ dataIndex: ["parameters", "csi.storage.k8s.io/fstype"],
24824
+ title: i18n2.t("dovetail.file_system"),
24825
+ width: 120,
24826
+ sortable: true
24827
+ };
24828
+ };
24829
+ const PVCapacityColumnRenderer = (i18n2) => {
24830
+ return {
24831
+ key: "capacity",
24832
+ display: true,
24833
+ dataIndex: ["spec", "capacity", "storage"],
24834
+ title: i18n2.t("dovetail.capacity"),
24835
+ width: 120,
24836
+ sortable: true
24837
+ };
24838
+ };
24839
+ const PVStorageClassColumnRenderer = (i18n2) => {
24840
+ return {
24841
+ key: "storageClass",
24842
+ display: true,
24843
+ dataIndex: ["spec", "storageClassName"],
24844
+ title: i18n2.t("dovetail.storage_class"),
24845
+ width: 120,
24846
+ sortable: true
24847
+ };
24848
+ };
24849
+ const PVPhaseColumnRenderer = (i18n2) => {
24850
+ return {
24851
+ key: "phase",
24852
+ display: true,
24853
+ dataIndex: ["status", "phase"],
24854
+ title: i18n2.t("dovetail.phase"),
24855
+ width: 120,
24856
+ sortable: true
24857
+ };
24858
+ };
24859
+ const PVModeColumnRenderer = (i18n2) => {
24860
+ return {
24861
+ key: "mode",
24862
+ display: true,
24863
+ dataIndex: ["spec", "volumeMode"],
24864
+ title: i18n2.t("dovetail.volume_mode"),
24865
+ width: 120,
24866
+ sortable: true
24867
+ };
24868
+ };
24869
+ const PVAccessModeColumnRenderer = (i18n2) => {
24870
+ return {
24871
+ key: "accessMode",
24872
+ display: true,
24873
+ dataIndex: ["spec", "accessModes"],
24874
+ title: i18n2.t("dovetail.access_mode"),
24875
+ width: 120,
24876
+ sortable: true
24877
+ };
24878
+ };
24686
24879
  const styles = "";
24687
24880
  const Dovetail = (props) => {
24688
24881
  const {
@@ -24770,7 +24963,11 @@ var __publicField = (obj, key, value) => {
24770
24963
  Event: EventModel,
24771
24964
  Ingress: IngressModel,
24772
24965
  NetworkPolicy: NetworkPolicyModel,
24773
- Service: ServiceModel
24966
+ Service: ServiceModel,
24967
+ Node: NodeModel,
24968
+ StorageClass: StorageClassModel,
24969
+ PersistentVolume: PersistentVolumeModel,
24970
+ PersistentVolumeClaim: PersistentVolumeClaimModel
24774
24971
  };
24775
24972
  class ModelPlugin {
24776
24973
  constructor() {
@@ -24978,6 +25175,7 @@ var __publicField = (obj, key, value) => {
24978
25175
  exports2.EventsTableTabField = EventsTableTabField;
24979
25176
  exports2.FormModal = FormModal;
24980
25177
  exports2.FormType = FormType;
25178
+ exports2.FsTypeColumnRenderer = FsTypeColumnRenderer;
24981
25179
  exports2.GlobalStoreContext = GlobalStoreContext;
24982
25180
  exports2.INGRESS_INIT_VALUE = INGRESS_INIT_VALUE;
24983
25181
  exports2.ImageField = ImageField;
@@ -24993,6 +25191,7 @@ var __publicField = (obj, key, value) => {
24993
25191
  exports2.JobModel = JobModel;
24994
25192
  exports2.JobsField = JobsField;
24995
25193
  exports2.JobsGroup = JobsGroup;
25194
+ exports2.K8sDropdown = K8sDropdown;
24996
25195
  exports2.KeyValue = KeyValue;
24997
25196
  exports2.KeyValueAnnotation = KeyValueAnnotation;
24998
25197
  exports2.KeyValueListWidget = KeyValueListWidget;
@@ -25004,6 +25203,7 @@ var __publicField = (obj, key, value) => {
25004
25203
  exports2.MetadataForm = MetadataForm;
25005
25204
  exports2.ModalStyle = ModalStyle;
25006
25205
  exports2.NETWORK_POLICY_INIT_VALUE = NETWORK_POLICY_INIT_VALUE;
25206
+ exports2.NODE_INIT_VALUE = NODE_INIT_VALUE;
25007
25207
  exports2.NS_STORE_KEY = NS_STORE_KEY;
25008
25208
  exports2.NameColumnRenderer = NameColumnRenderer;
25009
25209
  exports2.NameInputWidget = NameInputWidget;
@@ -25015,9 +25215,18 @@ var __publicField = (obj, key, value) => {
25015
25215
  exports2.NetworkPolicyIngressRulesGroup = NetworkPolicyIngressRulesGroup;
25016
25216
  exports2.NetworkPolicyModel = NetworkPolicyModel;
25017
25217
  exports2.NetworkPolicyRulesViewer = NetworkPolicyRulesViewer;
25218
+ exports2.NodeModel = NodeModel;
25018
25219
  exports2.NodeNameColumnRenderer = NodeNameColumnRenderer;
25220
+ exports2.NodeRole = NodeRole;
25019
25221
  exports2.POD_INIT_VALUE = POD_INIT_VALUE;
25222
+ exports2.PVAccessModeColumnRenderer = PVAccessModeColumnRenderer;
25223
+ exports2.PVCapacityColumnRenderer = PVCapacityColumnRenderer;
25224
+ exports2.PVModeColumnRenderer = PVModeColumnRenderer;
25225
+ exports2.PVPhaseColumnRenderer = PVPhaseColumnRenderer;
25226
+ exports2.PVStorageClassColumnRenderer = PVStorageClassColumnRenderer;
25020
25227
  exports2.PageShow = PageShow;
25228
+ exports2.PersistentVolumeClaimModel = PersistentVolumeClaimModel;
25229
+ exports2.PersistentVolumeModel = PersistentVolumeModel;
25021
25230
  exports2.PlainTextNameColumnRenderer = PlainTextNameColumnRenderer;
25022
25231
  exports2.PodContainersGroup = PodContainersGroup;
25023
25232
  exports2.PodContainersNumColumnRenderer = PodContainersNumColumnRenderer;
@@ -25035,6 +25244,7 @@ var __publicField = (obj, key, value) => {
25035
25244
  exports2.PortsGroup = PortsGroup;
25036
25245
  exports2.PortsTableField = PortsTableField;
25037
25246
  exports2.ProviderPlugins = ProviderPlugins;
25247
+ exports2.ProvisionerColumnRenderer = ProvisionerColumnRenderer;
25038
25248
  exports2.RESOURCE_GROUP = RESOURCE_GROUP;
25039
25249
  exports2.ReferenceLink = ReferenceLink;
25040
25250
  exports2.RefineFormContent = RefineFormContent;
@@ -25047,6 +25257,7 @@ var __publicField = (obj, key, value) => {
25047
25257
  exports2.ResourceLink = ResourceLink;
25048
25258
  exports2.ResourceList = ResourceList;
25049
25259
  exports2.ResourceModel = ResourceModel;
25260
+ exports2.ResourceSelect = ResourceSelect;
25050
25261
  exports2.ResourceShow = ResourceShow;
25051
25262
  exports2.ResourceUsageBar = ResourceUsageBar;
25052
25263
  exports2.RestartCountColumnRenderer = RestartCountColumnRenderer;
@@ -25063,6 +25274,7 @@ var __publicField = (obj, key, value) => {
25063
25274
  exports2.SERVICE_LOAD_BALANCER_INIT_VALUE = SERVICE_LOAD_BALANCER_INIT_VALUE;
25064
25275
  exports2.SERVICE_NODE_PORT_INIT_VALUE = SERVICE_NODE_PORT_INIT_VALUE;
25065
25276
  exports2.STATEFULSET_INIT_VALUE = STATEFULSET_INIT_VALUE;
25277
+ exports2.STORAGE_CLASS_INIT_VALUE = STORAGE_CLASS_INIT_VALUE;
25066
25278
  exports2.SchemaStrategy = SchemaStrategy;
25067
25279
  exports2.SecretDataField = SecretDataField;
25068
25280
  exports2.SecretDataGroup = SecretDataGroup;
@@ -25089,6 +25301,11 @@ var __publicField = (obj, key, value) => {
25089
25301
  exports2.StateTag = StateTag;
25090
25302
  exports2.StateTagStyle = StateTagStyle;
25091
25303
  exports2.StatefulSetModel = StatefulSetModel;
25304
+ exports2.StorageClassFsTypeField = StorageClassFsTypeField;
25305
+ exports2.StorageClassModel = StorageClassModel;
25306
+ exports2.StorageClassProvisionerField = StorageClassProvisionerField;
25307
+ exports2.StorageClassPvField = StorageClassPvField;
25308
+ exports2.StorageClassPvGroup = StorageClassPvGroup;
25092
25309
  exports2.TIMESTAMP_LABEL = TIMESTAMP_LABEL;
25093
25310
  exports2.Tabs = Tabs;
25094
25311
  exports2.Tags = Tags;