@dovetail-v2/refine 0.0.34 → 0.0.35-beta.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.
@@ -1,6 +1,6 @@
1
1
  (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("i18next"), require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("lodash-es"), require("@cloudtower/icons-react"), require("js-yaml"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("sunflower-antd"), require("antd"), require("k8s-api-provider")) : typeof define === "function" && define.amd ? define(["exports", "i18next", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "lodash-es", "@cloudtower/icons-react", "js-yaml", "monaco-editor", "monaco-yaml", "react-dom", "sunflower-antd", "antd", "k8s-api-provider"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.i18n, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.lodashEs, global2.iconsReact, global2.yaml, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.sunflowerAntd, global2.antd, global2.k8sApiProvider));
3
- })(this, function(exports2, i18n, core, qs, React, reactRouterDom, eagle, lodashEs, iconsReact, yaml, monaco, monacoYaml, ReactDOM, sunflowerAntd, antd, k8sApiProvider) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("i18next"), require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("@cloudtower/icons-react"), require("lodash-es"), require("js-yaml"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("sunflower-antd"), require("antd"), require("k8s-api-provider")) : typeof define === "function" && define.amd ? define(["exports", "i18next", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "@cloudtower/icons-react", "lodash-es", "js-yaml", "monaco-editor", "monaco-yaml", "react-dom", "sunflower-antd", "antd", "k8s-api-provider"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.i18n, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.iconsReact, global2.lodashEs, global2.yaml, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.sunflowerAntd, global2.antd, global2.k8sApiProvider));
3
+ })(this, function(exports2, i18n, core, qs, React, reactRouterDom, eagle, iconsReact, lodashEs, yaml, monaco, monacoYaml, ReactDOM, sunflowerAntd, antd, k8sApiProvider) {
4
4
  "use strict";var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
6
  var __publicField = (obj, key, value) => {
@@ -1290,7 +1290,7 @@ var __publicField = (obj, key, value) => {
1290
1290
  const message = "信息";
1291
1291
  const save = "保存";
1292
1292
  const workload = "工作负载";
1293
- const all_namespaces = "所有名字空间";
1293
+ const all_namespaces = "全部名字空间";
1294
1294
  const empty = "暂无数据";
1295
1295
  const schedule = "调度时间表";
1296
1296
  const lastScheduleTime = "上次调度时间";
@@ -8430,9 +8430,223 @@ var __publicField = (obj, key, value) => {
8430
8430
  })
8431
8431
  });
8432
8432
  };
8433
- const PodSelectorTable = ({ podSelectors = {} }) => {
8433
+ function memoize$1(fn) {
8434
+ var cache = /* @__PURE__ */ Object.create(null);
8435
+ return function(arg) {
8436
+ if (cache[arg] === void 0)
8437
+ cache[arg] = fn(arg);
8438
+ return cache[arg];
8439
+ };
8440
+ }
8441
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
8442
+ var isPropValid = /* @__PURE__ */ memoize$1(
8443
+ function(prop) {
8444
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
8445
+ }
8446
+ /* Z+1 */
8447
+ );
8448
+ var isCapital = (ch) => ch.toUpperCase() === ch;
8449
+ var filterKey = (keys) => (key2) => keys.indexOf(key2) === -1;
8450
+ var omit = (obj, keys) => {
8451
+ const res = {};
8452
+ Object.keys(obj).filter(filterKey(keys)).forEach((key2) => {
8453
+ res[key2] = obj[key2];
8454
+ });
8455
+ return res;
8456
+ };
8457
+ function filterProps(asIs, props, omitKeys) {
8458
+ const filteredProps = omit(props, omitKeys);
8459
+ if (!asIs) {
8460
+ const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
8461
+ Object.keys(filteredProps).forEach((key2) => {
8462
+ if (!interopValidAttr.default(key2)) {
8463
+ delete filteredProps[key2];
8464
+ }
8465
+ });
8466
+ }
8467
+ return filteredProps;
8468
+ }
8469
+ var warnIfInvalid = (value2, componentName) => {
8470
+ if (process.env.NODE_ENV !== "production") {
8471
+ if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
8472
+ return;
8473
+ }
8474
+ const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
8475
+ console.warn(
8476
+ `An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`
8477
+ );
8478
+ }
8479
+ };
8480
+ var idx = 0;
8481
+ function styled(tag) {
8482
+ var _a;
8483
+ let mockedClass = "";
8484
+ if (process.env.NODE_ENV === "test") {
8485
+ mockedClass += `mocked-styled-${idx++}`;
8486
+ if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
8487
+ mockedClass += ` ${tag.__linaria.className}`;
8488
+ }
8489
+ }
8490
+ return (options) => {
8491
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
8492
+ if (Array.isArray(options)) {
8493
+ throw new Error(
8494
+ 'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
8495
+ );
8496
+ }
8497
+ }
8498
+ const render = (props, ref) => {
8499
+ const { as: component = tag, class: className = mockedClass } = props;
8500
+ const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
8501
+ const filteredProps = filterProps(shouldKeepProps, props, [
8502
+ "as",
8503
+ "class"
8504
+ ]);
8505
+ filteredProps.ref = ref;
8506
+ filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
8507
+ const { vars } = options;
8508
+ if (vars) {
8509
+ const style = {};
8510
+ for (const name2 in vars) {
8511
+ const variable = vars[name2];
8512
+ const result = variable[0];
8513
+ const unit = variable[1] || "";
8514
+ const value2 = typeof result === "function" ? result(props) : result;
8515
+ warnIfInvalid(value2, options.name);
8516
+ style[`--${name2}`] = `${value2}${unit}`;
8517
+ }
8518
+ const ownStyle = filteredProps.style || {};
8519
+ const keys = Object.keys(ownStyle);
8520
+ if (keys.length > 0) {
8521
+ keys.forEach((key2) => {
8522
+ style[key2] = ownStyle[key2];
8523
+ });
8524
+ }
8525
+ filteredProps.style = style;
8526
+ }
8527
+ if (tag.__linaria && tag !== component) {
8528
+ filteredProps.as = component;
8529
+ return React.createElement(tag, filteredProps);
8530
+ }
8531
+ return React.createElement(component, filteredProps);
8532
+ };
8533
+ const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
8534
+ const rest = omit(props, ["innerRef"]);
8535
+ return render(rest, props.innerRef);
8536
+ };
8537
+ Result.displayName = options.name;
8538
+ Result.__linaria = {
8539
+ className: options.class || mockedClass,
8540
+ extends: tag
8541
+ };
8542
+ return Result;
8543
+ };
8544
+ }
8545
+ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
8546
+ get(o, prop) {
8547
+ return o(prop);
8548
+ }
8549
+ }) : styled;
8550
+ const TableWidgets_ny30pi = "";
8551
+ const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
8552
+ name: "AuxiliaryLine",
8553
+ class: "ax1qopv",
8554
+ propsAsIs: false
8555
+ });
8556
+ const index_dmbxj3 = "";
8557
+ const TableContainerStyle = "t1upn1sz";
8558
+ function Table(props) {
8434
8559
  const kit = eagle.useUIKit();
8560
+ const {
8561
+ t: t2
8562
+ } = useTranslation();
8563
+ const {
8564
+ loading,
8565
+ error,
8566
+ data: dataSource,
8567
+ rowKey,
8568
+ columns,
8569
+ scroll,
8570
+ currentPage,
8571
+ currentSize,
8572
+ RowMenu,
8573
+ refetch,
8574
+ onPageChange,
8575
+ onSizeChange,
8576
+ empty: empty2
8577
+ } = props;
8578
+ const auxiliaryLineRef = React.useRef(null);
8579
+ const wrapperRef = React.useRef(null);
8580
+ const pagination = React.useMemo(() => ({
8581
+ current: currentPage,
8582
+ pageSize: currentSize,
8583
+ onChange: onPageChange
8584
+ }), [currentPage, currentSize, onPageChange]);
8585
+ const finalColumns = React.useMemo(() => {
8586
+ if (RowMenu) {
8587
+ const actionColumn = {
8588
+ key: "_action_",
8589
+ display: true,
8590
+ dataIndex: [],
8591
+ title: "",
8592
+ render: (_, record) => {
8593
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(RowMenu, {
8594
+ record
8595
+ });
8596
+ }
8597
+ };
8598
+ return [...columns, actionColumn];
8599
+ }
8600
+ return columns;
8601
+ }, [columns, RowMenu]);
8602
+ if (loading) {
8603
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
8604
+ } else if (error) {
8605
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
8606
+ errorText: t2("dovetail.retry_when_access_data_failed"),
8607
+ refetch,
8608
+ style: {
8609
+ padding: "15px 0"
8610
+ }
8611
+ });
8612
+ } else if (dataSource.length === 0) {
8613
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
8614
+ errorText: empty2 || t2("dovetail.empty"),
8615
+ style: {
8616
+ padding: "15px 0"
8617
+ }
8618
+ });
8619
+ }
8620
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
8621
+ ref: wrapperRef,
8622
+ className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
8623
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.table, {
8624
+ tableLayout: "fixed",
8625
+ columns: finalColumns,
8626
+ dataSource,
8627
+ pagination,
8628
+ error,
8629
+ loading,
8630
+ rowKey,
8631
+ wrapper: wrapperRef,
8632
+ scroll
8633
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
8634
+ ref: auxiliaryLineRef
8635
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
8636
+ current: currentPage,
8637
+ size: currentSize,
8638
+ count: dataSource.length,
8639
+ onChange: onPageChange,
8640
+ onSizeChange
8641
+ })]
8642
+ });
8643
+ }
8644
+ const ComponentContext = React.createContext({});
8645
+ const PodSelectorTable = ({ podSelectors = {} }) => {
8435
8646
  const { t: t2 } = useTranslation();
8647
+ const component = React.useContext(ComponentContext);
8648
+ const Table$1 = component.Table || Table;
8649
+ const [currentPage, setCurrentPage] = React.useState(1);
8436
8650
  const datas = Object.keys(podSelectors).map((key2) => ({
8437
8651
  id: key2,
8438
8652
  key: key2,
@@ -8464,19 +8678,26 @@ var __publicField = (obj, key, value) => {
8464
8678
  );
8465
8679
  }
8466
8680
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8467
- kit.table,
8681
+ Table$1,
8468
8682
  {
8683
+ tableKey: "podSelector",
8469
8684
  loading: false,
8470
- dataSource: datas,
8685
+ data: datas,
8471
8686
  columns: addDefaultRenderToColumns(columns),
8472
- rowKey: "type",
8473
- empty: t2("dovetail.empty")
8687
+ rowKey: "key",
8688
+ empty: t2("dovetail.empty"),
8689
+ currentSize: 10,
8690
+ currentPage,
8691
+ onPageChange: setCurrentPage,
8692
+ showMenuColumn: false
8474
8693
  }
8475
8694
  );
8476
8695
  };
8477
8696
  const PortsTable = ({ service }) => {
8478
- const kit = eagle.useUIKit();
8479
8697
  const { t: t2 } = useTranslation();
8698
+ const component = React.useContext(ComponentContext);
8699
+ const Table$1 = component.Table || Table;
8700
+ const [currentPage, setCurrentPage] = React.useState(1);
8480
8701
  const columns = [
8481
8702
  {
8482
8703
  key: "name",
@@ -8522,13 +8743,18 @@ var __publicField = (obj, key, value) => {
8522
8743
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" } });
8523
8744
  }
8524
8745
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8525
- kit.table,
8746
+ Table$1,
8526
8747
  {
8748
+ tableKey: "ports",
8527
8749
  loading: false,
8528
- dataSource: ports,
8750
+ data: ports,
8529
8751
  columns: addDefaultRenderToColumns(columns),
8530
- rowKey: "type",
8531
- empty: t2("dovetail.empty")
8752
+ rowKey: "name",
8753
+ empty: t2("dovetail.empty"),
8754
+ currentSize: 10,
8755
+ currentPage,
8756
+ onPageChange: setCurrentPage,
8757
+ showMenuColumn: false
8532
8758
  }
8533
8759
  );
8534
8760
  };
@@ -9817,8 +10043,10 @@ var __publicField = (obj, key, value) => {
9817
10043
  });
9818
10044
  };
9819
10045
  const ConditionsTable = ({ conditions = [] }) => {
9820
- const kit = eagle.useUIKit();
10046
+ const [currentPage, setCurrentPage] = React.useState(1);
9821
10047
  const { t: t2 } = useTranslation();
10048
+ const component = React.useContext(ComponentContext);
10049
+ const Table$1 = component.Table || Table;
9822
10050
  const conditionsWithId = addId(conditions, "type");
9823
10051
  const columns = [
9824
10052
  {
@@ -9839,7 +10067,7 @@ var __publicField = (obj, key, value) => {
9839
10067
  "False": "red",
9840
10068
  "Unknown": "warning"
9841
10069
  };
9842
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.statusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
10070
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
9843
10071
  },
9844
10072
  sortable: true
9845
10073
  },
@@ -9873,227 +10101,21 @@ var __publicField = (obj, key, value) => {
9873
10101
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }), style: { padding: "15px 0" } });
9874
10102
  }
9875
10103
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9876
- kit.table,
10104
+ Table$1,
9877
10105
  {
10106
+ tableKey: "condition",
9878
10107
  loading: false,
9879
- dataSource: conditionsWithId,
10108
+ data: conditionsWithId,
9880
10109
  columns: addDefaultRenderToColumns(columns),
9881
10110
  rowKey: "type",
9882
- empty: t2("dovetail.empty")
10111
+ empty: t2("dovetail.empty"),
10112
+ currentSize: 10,
10113
+ currentPage,
10114
+ onPageChange: setCurrentPage,
10115
+ showMenuColumn: false
9883
10116
  }
9884
10117
  );
9885
10118
  };
9886
- function memoize$1(fn) {
9887
- var cache = /* @__PURE__ */ Object.create(null);
9888
- return function(arg) {
9889
- if (cache[arg] === void 0)
9890
- cache[arg] = fn(arg);
9891
- return cache[arg];
9892
- };
9893
- }
9894
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
9895
- var isPropValid = /* @__PURE__ */ memoize$1(
9896
- function(prop) {
9897
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
9898
- }
9899
- /* Z+1 */
9900
- );
9901
- var isCapital = (ch) => ch.toUpperCase() === ch;
9902
- var filterKey = (keys) => (key2) => keys.indexOf(key2) === -1;
9903
- var omit = (obj, keys) => {
9904
- const res = {};
9905
- Object.keys(obj).filter(filterKey(keys)).forEach((key2) => {
9906
- res[key2] = obj[key2];
9907
- });
9908
- return res;
9909
- };
9910
- function filterProps(asIs, props, omitKeys) {
9911
- const filteredProps = omit(props, omitKeys);
9912
- if (!asIs) {
9913
- const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
9914
- Object.keys(filteredProps).forEach((key2) => {
9915
- if (!interopValidAttr.default(key2)) {
9916
- delete filteredProps[key2];
9917
- }
9918
- });
9919
- }
9920
- return filteredProps;
9921
- }
9922
- var warnIfInvalid = (value2, componentName) => {
9923
- if (process.env.NODE_ENV !== "production") {
9924
- if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
9925
- return;
9926
- }
9927
- const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
9928
- console.warn(
9929
- `An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`
9930
- );
9931
- }
9932
- };
9933
- var idx = 0;
9934
- function styled(tag) {
9935
- var _a;
9936
- let mockedClass = "";
9937
- if (process.env.NODE_ENV === "test") {
9938
- mockedClass += `mocked-styled-${idx++}`;
9939
- if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
9940
- mockedClass += ` ${tag.__linaria.className}`;
9941
- }
9942
- }
9943
- return (options) => {
9944
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
9945
- if (Array.isArray(options)) {
9946
- throw new Error(
9947
- 'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
9948
- );
9949
- }
9950
- }
9951
- const render = (props, ref) => {
9952
- const { as: component = tag, class: className = mockedClass } = props;
9953
- const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
9954
- const filteredProps = filterProps(shouldKeepProps, props, [
9955
- "as",
9956
- "class"
9957
- ]);
9958
- filteredProps.ref = ref;
9959
- filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
9960
- const { vars } = options;
9961
- if (vars) {
9962
- const style = {};
9963
- for (const name2 in vars) {
9964
- const variable = vars[name2];
9965
- const result = variable[0];
9966
- const unit = variable[1] || "";
9967
- const value2 = typeof result === "function" ? result(props) : result;
9968
- warnIfInvalid(value2, options.name);
9969
- style[`--${name2}`] = `${value2}${unit}`;
9970
- }
9971
- const ownStyle = filteredProps.style || {};
9972
- const keys = Object.keys(ownStyle);
9973
- if (keys.length > 0) {
9974
- keys.forEach((key2) => {
9975
- style[key2] = ownStyle[key2];
9976
- });
9977
- }
9978
- filteredProps.style = style;
9979
- }
9980
- if (tag.__linaria && tag !== component) {
9981
- filteredProps.as = component;
9982
- return React.createElement(tag, filteredProps);
9983
- }
9984
- return React.createElement(component, filteredProps);
9985
- };
9986
- const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
9987
- const rest = omit(props, ["innerRef"]);
9988
- return render(rest, props.innerRef);
9989
- };
9990
- Result.displayName = options.name;
9991
- Result.__linaria = {
9992
- className: options.class || mockedClass,
9993
- extends: tag
9994
- };
9995
- return Result;
9996
- };
9997
- }
9998
- var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
9999
- get(o, prop) {
10000
- return o(prop);
10001
- }
10002
- }) : styled;
10003
- const TableWidgets_ny30pi = "";
10004
- const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
10005
- name: "AuxiliaryLine",
10006
- class: "ax1qopv",
10007
- propsAsIs: false
10008
- });
10009
- const index_dmbxj3 = "";
10010
- const TableContainerStyle = "t1upn1sz";
10011
- function Table(props) {
10012
- const kit = eagle.useUIKit();
10013
- const {
10014
- t: t2
10015
- } = useTranslation();
10016
- const {
10017
- loading,
10018
- error,
10019
- data: dataSource,
10020
- rowKey,
10021
- columns,
10022
- scroll,
10023
- currentPage,
10024
- currentSize,
10025
- RowMenu,
10026
- refetch,
10027
- onPageChange,
10028
- onSizeChange,
10029
- empty: empty2
10030
- } = props;
10031
- const auxiliaryLineRef = React.useRef(null);
10032
- const wrapperRef = React.useRef(null);
10033
- const pagination = React.useMemo(() => ({
10034
- current: currentPage,
10035
- pageSize: currentSize,
10036
- onChange: onPageChange
10037
- }), [currentPage, currentSize, onPageChange]);
10038
- const finalColumns = React.useMemo(() => {
10039
- if (RowMenu) {
10040
- const actionColumn = {
10041
- key: "_action_",
10042
- display: true,
10043
- dataIndex: [],
10044
- title: "",
10045
- render: (_, record) => {
10046
- return /* @__PURE__ */ jsxRuntimeExports.jsx(RowMenu, {
10047
- record
10048
- });
10049
- }
10050
- };
10051
- return [...columns, actionColumn];
10052
- }
10053
- return columns;
10054
- }, [columns, RowMenu]);
10055
- if (loading) {
10056
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
10057
- } else if (error) {
10058
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
10059
- errorText: t2("dovetail.retry_when_access_data_failed"),
10060
- refetch,
10061
- style: {
10062
- padding: "15px 0"
10063
- }
10064
- });
10065
- } else if (dataSource.length === 0) {
10066
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
10067
- errorText: empty2 || t2("dovetail.empty"),
10068
- style: {
10069
- padding: "15px 0"
10070
- }
10071
- });
10072
- }
10073
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10074
- ref: wrapperRef,
10075
- className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
10076
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.table, {
10077
- tableLayout: "fixed",
10078
- columns: finalColumns,
10079
- dataSource,
10080
- pagination,
10081
- error,
10082
- loading,
10083
- rowKey,
10084
- wrapper: wrapperRef,
10085
- scroll
10086
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
10087
- ref: auxiliaryLineRef
10088
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
10089
- current: currentPage,
10090
- size: currentSize,
10091
- count: dataSource.length,
10092
- onChange: onPageChange,
10093
- onSizeChange
10094
- })]
10095
- });
10096
- }
10097
10119
  function useEdit() {
10098
10120
  const { resource } = core.useParsed();
10099
10121
  const go = core.useGo();
@@ -10287,6 +10309,8 @@ var __publicField = (obj, key, value) => {
10287
10309
  const kit = eagle.useUIKit();
10288
10310
  const [selectedKeys] = React.useState([]);
10289
10311
  const [currentPage, setCurrentPage] = React.useState(1);
10312
+ const component = React.useContext(ComponentContext);
10313
+ const Table$1 = component.Table || Table;
10290
10314
  const {
10291
10315
  data: data2
10292
10316
  } = core.useList({
@@ -10308,7 +10332,7 @@ var __publicField = (obj, key, value) => {
10308
10332
  children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
10309
10333
  selectedKeys,
10310
10334
  hideCreate: true
10311
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table, {
10335
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
10312
10336
  tableKey: "cronjobs",
10313
10337
  loading: !dataSource,
10314
10338
  data: dataSource || [],
@@ -10318,7 +10342,8 @@ var __publicField = (obj, key, value) => {
10318
10342
  currentPage,
10319
10343
  onPageChange: (p) => setCurrentPage(p),
10320
10344
  currentSize: 10,
10321
- refetch: () => null
10345
+ refetch: () => null,
10346
+ showMenuColumn: false
10322
10347
  })]
10323
10348
  });
10324
10349
  };
@@ -10407,6 +10432,8 @@ var __publicField = (obj, key, value) => {
10407
10432
  ],
10408
10433
  [i18n2]
10409
10434
  );
10435
+ const component = React.useContext(ComponentContext);
10436
+ const Table$1 = component.Table || Table;
10410
10437
  const dataSource = React.useMemo(() => {
10411
10438
  return data2 == null ? void 0 : data2.data.filter((d) => {
10412
10439
  const objectId = `${d.regarding.namespace}/${d.regarding.name}`;
@@ -10423,7 +10450,7 @@ var __publicField = (obj, key, value) => {
10423
10450
  );
10424
10451
  }
10425
10452
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10426
- Table,
10453
+ Table$1,
10427
10454
  {
10428
10455
  tableKey: "events",
10429
10456
  loading: isLoading,
@@ -10434,7 +10461,8 @@ var __publicField = (obj, key, value) => {
10434
10461
  currentPage,
10435
10462
  onPageChange: (p) => setCurrentPage(p),
10436
10463
  currentSize: 10,
10437
- refetch: () => null
10464
+ refetch: () => null,
10465
+ showMenuColumn: false
10438
10466
  }
10439
10467
  );
10440
10468
  };
@@ -10471,11 +10499,13 @@ var __publicField = (obj, key, value) => {
10471
10499
  return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { onClick, children: resourceId });
10472
10500
  };
10473
10501
  const IngressRulesTable = ({ ingress }) => {
10474
- const kit = eagle.useUIKit();
10475
10502
  const { t: t2 } = useTranslation();
10476
10503
  const rows = React.useMemo(() => {
10477
10504
  return addId(ingress.flattenedRules || [], "fullPath");
10478
10505
  }, [ingress.flattenedRules]);
10506
+ const component = React.useContext(ComponentContext);
10507
+ const Table$1 = component.Table || Table;
10508
+ const [currentPage, setCurrentPage] = React.useState(1);
10479
10509
  const columns = [
10480
10510
  {
10481
10511
  key: "pathType",
@@ -10539,13 +10569,18 @@ var __publicField = (obj, key, value) => {
10539
10569
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" } });
10540
10570
  }
10541
10571
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10542
- kit.table,
10572
+ Table$1,
10543
10573
  {
10574
+ tableKey: "ingressRules",
10544
10575
  loading: false,
10545
- dataSource: rows,
10576
+ data: rows,
10546
10577
  columns: addDefaultRenderToColumns(columns),
10547
- rowKey: "type",
10548
- empty: t2("dovetail.empty")
10578
+ rowKey: "pathType",
10579
+ empty: t2("dovetail.empty"),
10580
+ currentSize: 10,
10581
+ currentPage,
10582
+ onPageChange: setCurrentPage,
10583
+ showMenuColumn: false
10549
10584
  }
10550
10585
  );
10551
10586
  };
@@ -10609,7 +10644,7 @@ var __publicField = (obj, key, value) => {
10609
10644
  children: Object.keys(data2).length
10610
10645
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
10611
10646
  type: "link",
10612
- className: ExpandButtonStyle,
10647
+ className: cx_default(ExpandButtonStyle, eagle.Typo.Label.l4_regular_title),
10613
10648
  onClick: () => {
10614
10649
  setIsExpand(!isExpand);
10615
10650
  },
@@ -10724,8 +10759,7 @@ var __publicField = (obj, key, value) => {
10724
10759
  return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
10725
10760
  }) });
10726
10761
  }
10727
- const ComponentContext = React.createContext({});
10728
- const ShowContent_tusz9j = "";
10762
+ const ShowContent_eym19u = "";
10729
10763
  const ShowContentWrapperStyle = "s9agep2";
10730
10764
  const BackButton = "bo89gfi";
10731
10765
  const ToolBarWrapper = "t1ohe42f";
@@ -10808,7 +10842,7 @@ var __publicField = (obj, key, value) => {
10808
10842
  children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10809
10843
  className: FieldWrapperStyle,
10810
10844
  children: [field.title && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
10811
- className: eagle.Typo.Label.l3_regular,
10845
+ className: eagle.Typo.Label.l4_regular_title,
10812
10846
  style: {
10813
10847
  width: field.labelWidth || "165px",
10814
10848
  marginRight: 8,
@@ -10821,6 +10855,7 @@ var __publicField = (obj, key, value) => {
10821
10855
  minWidth: 0
10822
10856
  },
10823
10857
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
10858
+ className: eagle.Typo.Label.l4_regular_title,
10824
10859
  value: content,
10825
10860
  useOverflow: false
10826
10861
  })
@@ -10874,6 +10909,7 @@ var __publicField = (obj, key, value) => {
10874
10909
  marginRight: 8
10875
10910
  },
10876
10911
  onClick: openForm,
10912
+ prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.EditPen16GradientBlueIcon, {}),
10877
10913
  children: t2("dovetail.edit_yaml")
10878
10914
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, {
10879
10915
  record,
@@ -10943,6 +10979,8 @@ var __publicField = (obj, key, value) => {
10943
10979
  const kit = eagle.useUIKit();
10944
10980
  const [selectedKeys, setSelectedKeys] = React.useState([]);
10945
10981
  const [currentPage, setCurrentPage] = React.useState(1);
10982
+ const component = React.useContext(ComponentContext);
10983
+ const Table$1 = component.Table || Table;
10946
10984
  const {
10947
10985
  data: data2
10948
10986
  } = core.useList({
@@ -10983,7 +11021,7 @@ var __publicField = (obj, key, value) => {
10983
11021
  children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
10984
11022
  selectedKeys,
10985
11023
  hideCreate: true
10986
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table, {
11024
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
10987
11025
  tableKey: "pods",
10988
11026
  loading: !dataSource,
10989
11027
  data: dataSource || [],
@@ -10994,7 +11032,8 @@ var __publicField = (obj, key, value) => {
10994
11032
  currentPage,
10995
11033
  onPageChange: (p) => setCurrentPage(p),
10996
11034
  currentSize: 10,
10997
- refetch: () => null
11035
+ refetch: () => null,
11036
+ showMenuColumn: false
10998
11037
  })]
10999
11038
  });
11000
11039
  };
@@ -11168,7 +11207,7 @@ var __publicField = (obj, key, value) => {
11168
11207
  children: i18n2.t("dovetail.edit")
11169
11208
  });
11170
11209
  }
11171
- const index_1qy3pu6 = "";
11210
+ const index_psn0hb = "";
11172
11211
  const WorkloadReplicasWrapperStyle = "w8ychfk";
11173
11212
  const DonutChartWrapperStyle = "d1o004do";
11174
11213
  const DonutChartStyle = "dfo80qq";
@@ -11268,10 +11307,10 @@ var __publicField = (obj, key, value) => {
11268
11307
  color: "rgba(33, 190, 106, 1)"
11269
11308
  }];
11270
11309
  const remain = replicas - readyReplicas;
11271
- if (remain > 0) {
11310
+ if (remain > 0 || replicas === 0) {
11272
11311
  data2.push({
11273
11312
  name: "remain",
11274
- value: remain,
11313
+ value: replicas === 0 ? 1 : remain,
11275
11314
  color: "rgba(162, 240, 213, 1)"
11276
11315
  });
11277
11316
  }
@@ -11303,20 +11342,20 @@ var __publicField = (obj, key, value) => {
11303
11342
  })
11304
11343
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11305
11344
  className: ContentWrapperStyle,
11306
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11307
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11345
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
11346
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
11308
11347
  className: LabelStyle,
11309
11348
  children: t2("dovetail.pod_ready_num")
11310
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11349
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
11311
11350
  children: readyReplicas
11312
11351
  })]
11313
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11314
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11352
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
11353
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
11315
11354
  className: LabelStyle,
11316
11355
  children: t2("dovetail.pod_replicas_num")
11317
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11356
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
11318
11357
  children: replicas
11319
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11358
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
11320
11359
  children: editable && canScale && /* @__PURE__ */ jsxRuntimeExports.jsx(EditField, {
11321
11360
  modalProps: {
11322
11361
  formRef,
@@ -17551,8 +17590,8 @@ var __publicField = (obj, key, value) => {
17551
17590
  __proto__: null,
17552
17591
  default: MonacoYamlEditor$1
17553
17592
  }, Symbol.toStringTag, { value: "Module" }));
17554
- const NetworkPolicyRulesTable_1ig139p = "";
17555
- const EditorStyle$1 = "e151npt0";
17593
+ const NetworkPolicyRulesViewer_13asgaq = "";
17594
+ const EditorStyle$1 = "e1cjl2b8";
17556
17595
  const NetworkPolicyRulesViewer = ({
17557
17596
  ingressOrEgress,
17558
17597
  kind
@@ -17582,8 +17621,10 @@ var __publicField = (obj, key, value) => {
17582
17621
  containerStatuses,
17583
17622
  initContainerStatuses
17584
17623
  }) => {
17585
- const kit = eagle.useUIKit();
17586
17624
  const { i18n: i18n2 } = useTranslation();
17625
+ const component = React.useContext(ComponentContext);
17626
+ const Table$1 = component.Table || Table;
17627
+ const [currentPage, setCurrentPage] = React.useState(1);
17587
17628
  const columns = React.useMemo(
17588
17629
  () => [
17589
17630
  {
@@ -17649,13 +17690,18 @@ var __publicField = (obj, key, value) => {
17649
17690
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" } });
17650
17691
  }
17651
17692
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17652
- kit.table,
17693
+ Table$1,
17653
17694
  {
17695
+ tableKey: "podContainers",
17654
17696
  loading: false,
17655
- dataSource,
17697
+ data: dataSource,
17656
17698
  columns: addDefaultRenderToColumns(columns),
17657
17699
  rowKey: "containerID",
17658
- error: false
17700
+ error: false,
17701
+ currentSize: 10,
17702
+ currentPage,
17703
+ onPageChange: setCurrentPage,
17704
+ showMenuColumn: false
17659
17705
  }
17660
17706
  );
17661
17707
  };
@@ -18175,7 +18221,7 @@ var __publicField = (obj, key, value) => {
18175
18221
  })]
18176
18222
  });
18177
18223
  };
18178
- const index_1srrgg6 = "";
18224
+ const index_hp158y = "";
18179
18225
  const ListPageStyle = "laykzsq";
18180
18226
  const ListContentStyle = "l1ng0psc";
18181
18227
  const TableStyle = "tj6zpn4";
@@ -18211,15 +18257,23 @@ var __publicField = (obj, key, value) => {
18211
18257
  className: ListContentStyle,
18212
18258
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18213
18259
  className: NamespaceFilterStyle
18214
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
18215
- ...tableProps,
18216
- empty: tableProps.empty || t2("dovetail.no_resource", {
18217
- kind: ` ${config.kind}`
18218
- }),
18219
- className: cx_default(tableProps.className, TableStyle),
18220
- scroll: {
18221
- y: "calc(100% - 48px)"
18222
- }
18260
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18261
+ className: TableStyle,
18262
+ children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
18263
+ errorText: tableProps.empty || t2("dovetail.no_resource", {
18264
+ kind: ` ${config.kind}`
18265
+ }),
18266
+ hiddenRetry: true
18267
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
18268
+ ...tableProps,
18269
+ empty: tableProps.empty || t2("dovetail.no_resource", {
18270
+ kind: ` ${config.kind}`
18271
+ }),
18272
+ className: cx_default(tableProps.className),
18273
+ scroll: {
18274
+ y: "calc(100% - 48px)"
18275
+ }
18276
+ })
18223
18277
  })]
18224
18278
  })]
18225
18279
  });
@@ -23447,6 +23501,7 @@ var __publicField = (obj, key, value) => {
23447
23501
  }),
23448
23502
  sortable: true,
23449
23503
  width: 120,
23504
+ align: "right",
23450
23505
  sorter: CommonSorter(dataIndex)
23451
23506
  };
23452
23507
  };
@@ -23664,6 +23719,7 @@ var __publicField = (obj, key, value) => {
23664
23719
  }),
23665
23720
  width: 120,
23666
23721
  sortable: true,
23722
+ align: "right",
23667
23723
  sorter: CommonSorter(["readyDisplay"])
23668
23724
  };
23669
23725
  };