@dovetail-v2/refine 0.0.40 → 0.0.41

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.
@@ -8033,7 +8033,7 @@ var __publicField = (obj, key, value) => {
8033
8033
  };
8034
8034
  var cx_default = cx;
8035
8035
  const ConfigsContext = React.createContext({});
8036
- const useDeleteModal_1kqb6q3 = "";
8036
+ const useDeleteModal_v7eb93 = "";
8037
8037
  const TextStyle = "t1vq0ett";
8038
8038
  const TipStyle = "t139onst";
8039
8039
  const NameStyle$1 = "n18lzor8";
@@ -8686,6 +8686,7 @@ var __publicField = (obj, key, value) => {
8686
8686
  const component = React.useContext(ComponentContext);
8687
8687
  const Table$1 = component.Table || Table;
8688
8688
  const [currentPage, setCurrentPage] = React.useState(1);
8689
+ const currentSize = 10;
8689
8690
  const datas = Object.keys(podSelectors).map((key2) => ({
8690
8691
  id: key2,
8691
8692
  key: key2,
@@ -8722,11 +8723,12 @@ var __publicField = (obj, key, value) => {
8722
8723
  {
8723
8724
  tableKey: "podSelector",
8724
8725
  loading: false,
8725
- data: datas,
8726
+ data: datas.slice((currentPage - 1) * currentSize, currentPage * currentSize),
8727
+ total: datas.length,
8726
8728
  columns: addDefaultRenderToColumns(columns),
8727
8729
  rowKey: "key",
8728
8730
  empty: t2("dovetail.empty"),
8729
- currentSize: 10,
8731
+ currentSize,
8730
8732
  currentPage,
8731
8733
  onPageChange: setCurrentPage,
8732
8734
  showMenuColumn: false
@@ -8738,6 +8740,7 @@ var __publicField = (obj, key, value) => {
8738
8740
  const component = React.useContext(ComponentContext);
8739
8741
  const Table$1 = component.Table || Table;
8740
8742
  const [currentPage, setCurrentPage] = React.useState(1);
8743
+ const currentSize = 10;
8741
8744
  const columns = [
8742
8745
  {
8743
8746
  key: "name",
@@ -8794,11 +8797,12 @@ var __publicField = (obj, key, value) => {
8794
8797
  {
8795
8798
  tableKey: "ports",
8796
8799
  loading: false,
8797
- data: ports,
8800
+ data: ports.slice((currentPage - 1) * currentSize, currentPage * currentSize),
8801
+ total: ports.length,
8798
8802
  columns: addDefaultRenderToColumns(columns),
8799
8803
  rowKey: "name",
8800
8804
  empty: t2("dovetail.empty"),
8801
- currentSize: 10,
8805
+ currentSize,
8802
8806
  currentPage,
8803
8807
  onPageChange: setCurrentPage,
8804
8808
  showMenuColumn: false
@@ -10117,6 +10121,7 @@ var __publicField = (obj, key, value) => {
10117
10121
  const { t: t2 } = useTranslation();
10118
10122
  const component = React.useContext(ComponentContext);
10119
10123
  const Table$1 = component.Table || Table;
10124
+ const currentSize = 10;
10120
10125
  const conditionsWithId = addId(conditions, "type");
10121
10126
  const columns = [
10122
10127
  {
@@ -10182,11 +10187,12 @@ var __publicField = (obj, key, value) => {
10182
10187
  {
10183
10188
  tableKey: "condition",
10184
10189
  loading: false,
10185
- data: conditionsWithId,
10190
+ data: conditionsWithId.slice((currentPage - 1) * currentSize, currentPage * currentSize),
10191
+ total: conditionsWithId.length,
10186
10192
  columns: addDefaultRenderToColumns(columns),
10187
10193
  rowKey: "type",
10188
10194
  empty: t2("dovetail.empty"),
10189
- currentSize: 10,
10195
+ currentSize,
10190
10196
  currentPage,
10191
10197
  onPageChange: setCurrentPage,
10192
10198
  showMenuColumn: false
@@ -10392,6 +10398,7 @@ var __publicField = (obj, key, value) => {
10392
10398
  const [currentPage, setCurrentPage] = React.useState(1);
10393
10399
  const component = React.useContext(ComponentContext);
10394
10400
  const Table$1 = component.Table || Table;
10401
+ const currentSize = 10;
10395
10402
  const {
10396
10403
  data: data2,
10397
10404
  isLoading
@@ -10428,13 +10435,14 @@ var __publicField = (obj, key, value) => {
10428
10435
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
10429
10436
  tableKey: "cronjobs",
10430
10437
  loading: isLoading,
10431
- data: dataSource || [],
10438
+ data: (dataSource || []).slice((currentPage - 1) * currentSize, currentPage * currentSize),
10439
+ total: (dataSource == null ? void 0 : dataSource.length) || 0,
10432
10440
  columns,
10433
10441
  rowKey: "id",
10434
10442
  error: false,
10435
10443
  currentPage,
10436
10444
  onPageChange: (p) => setCurrentPage(p),
10437
- currentSize: 10,
10445
+ currentSize,
10438
10446
  refetch: () => null,
10439
10447
  showMenuColumn: false
10440
10448
  })]
@@ -10443,6 +10451,7 @@ var __publicField = (obj, key, value) => {
10443
10451
  const EventsTable = ({}) => {
10444
10452
  const { i18n: i18n2 } = useTranslation();
10445
10453
  const [currentPage, setCurrentPage] = React.useState(1);
10454
+ const currentSize = 10;
10446
10455
  const { data: data2, isLoading } = core.useList({
10447
10456
  resource: "events",
10448
10457
  meta: { resourceBasePath: "/apis/events.k8s.io/v1", kind: "Event" },
@@ -10509,13 +10518,14 @@ var __publicField = (obj, key, value) => {
10509
10518
  {
10510
10519
  tableKey: "events",
10511
10520
  loading: isLoading,
10512
- data: dataSource || [],
10521
+ data: (dataSource || []).slice((currentPage - 1) * currentSize, currentPage * currentSize),
10522
+ total: (dataSource == null ? void 0 : dataSource.length) || 0,
10513
10523
  columns: addDefaultRenderToColumns(columns),
10514
10524
  rowKey: "id",
10515
10525
  error: false,
10516
10526
  currentPage,
10517
10527
  onPageChange: (p) => setCurrentPage(p),
10518
- currentSize: 10,
10528
+ currentSize,
10519
10529
  refetch: () => null,
10520
10530
  showMenuColumn: false
10521
10531
  }
@@ -10561,6 +10571,7 @@ var __publicField = (obj, key, value) => {
10561
10571
  const component = React.useContext(ComponentContext);
10562
10572
  const Table$1 = component.Table || Table;
10563
10573
  const [currentPage, setCurrentPage] = React.useState(1);
10574
+ const currentSize = 10;
10564
10575
  const columns = [
10565
10576
  {
10566
10577
  key: "pathType",
@@ -10635,18 +10646,19 @@ var __publicField = (obj, key, value) => {
10635
10646
  {
10636
10647
  tableKey: "ingressRules",
10637
10648
  loading: false,
10638
- data: rows,
10649
+ data: rows.slice((currentPage - 1) * currentSize, currentPage * currentSize),
10650
+ total: rows.length,
10639
10651
  columns: addDefaultRenderToColumns(columns),
10640
10652
  rowKey: "pathType",
10641
10653
  empty: t2("dovetail.empty"),
10642
- currentSize: 10,
10654
+ currentSize,
10643
10655
  currentPage,
10644
10656
  onPageChange: setCurrentPage,
10645
10657
  showMenuColumn: false
10646
10658
  }
10647
10659
  );
10648
10660
  };
10649
- const KeyValue_1ebh6uj = "";
10661
+ const KeyValue_1v1utgj = "";
10650
10662
  const ContentBlockStyle = "c8jy7dc";
10651
10663
  const KeyStyle = "k2sddxl";
10652
10664
  const ValueStyle$2 = "v16vicsr";
@@ -11078,6 +11090,7 @@ var __publicField = (obj, key, value) => {
11078
11090
  const [currentPage, setCurrentPage] = React.useState(1);
11079
11091
  const component = React.useContext(ComponentContext);
11080
11092
  const Table$1 = component.Table || Table;
11093
+ const currentSize = 10;
11081
11094
  const {
11082
11095
  data: data2
11083
11096
  } = core.useList({
@@ -11122,14 +11135,15 @@ var __publicField = (obj, key, value) => {
11122
11135
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
11123
11136
  tableKey: "pods",
11124
11137
  loading: !dataSource,
11125
- data: dataSource || [],
11138
+ data: (dataSource || []).slice((currentPage - 1) * currentSize, currentPage * currentSize),
11139
+ total: (dataSource == null ? void 0 : dataSource.length) || 0,
11126
11140
  columns: addDefaultRenderToColumns(columns),
11127
11141
  onSelect: (keys) => setSelectedKeys(keys),
11128
11142
  rowKey: "id",
11129
11143
  error: false,
11130
11144
  currentPage,
11131
11145
  onPageChange: (p) => setCurrentPage(p),
11132
- currentSize: 10,
11146
+ currentSize,
11133
11147
  refetch: () => null,
11134
11148
  showMenuColumn: false
11135
11149
  })]
@@ -11240,9 +11254,8 @@ var __publicField = (obj, key, value) => {
11240
11254
  onSubmit
11241
11255
  };
11242
11256
  }
11243
- const index_13sllsf = "";
11244
- const EditFieldModalStyle = "esoz3jw";
11245
- const EditButtonStyle = "e1m0bgls";
11257
+ const index_7c3887 = "";
11258
+ const EditButtonStyle = "esoz3jw";
11246
11259
  function EditFieldModal(props) {
11247
11260
  const {
11248
11261
  title,
@@ -11269,7 +11282,7 @@ var __publicField = (obj, key, value) => {
11269
11282
  reset();
11270
11283
  }, [reset]);
11271
11284
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.modal, {
11272
- className: EditFieldModalStyle,
11285
+ className: ModalStyle,
11273
11286
  title: title || i18n2.t("dovetail.edit"),
11274
11287
  confirmLoading: submitting,
11275
11288
  onOk: onSubmit,
@@ -17311,7 +17324,7 @@ var __publicField = (obj, key, value) => {
17311
17324
  const LogViewer = React.forwardRef((props, ref) => React.createElement(LogViewerBase, Object.assign({ innerRef: ref }, props)));
17312
17325
  LogViewer.displayName = "LogViewer";
17313
17326
  const baseNoReset = "";
17314
- const index_yr3216 = "";
17327
+ const index_jv52b6 = "";
17315
17328
  const WrapperStyle$3 = "wve7dfm";
17316
17329
  const ToolbarStyle = "t9oeh3c";
17317
17330
  const ToolbarAreaStyle = "t1u2zqn6";
@@ -17403,7 +17416,6 @@ var __publicField = (obj, key, value) => {
17403
17416
  }
17404
17417
  const total = buffer + chunk.slice(0, lastIndex);
17405
17418
  buffer = chunk.slice(lastIndex + 1);
17406
- console.log(total);
17407
17419
  const formattedLogs = total.split("\n").filter(Boolean).map((line) => {
17408
17420
  const [timestamps, ...content] = line.split(" ");
17409
17421
  const t22 = new Date(timestamps).toLocaleString();
@@ -17728,7 +17740,8 @@ var __publicField = (obj, key, value) => {
17728
17740
  defaultValue: yaml.dump(ingressOrEgress),
17729
17741
  height: "300px",
17730
17742
  className: EditorStyle$1,
17731
- readOnly: true
17743
+ readOnly: true,
17744
+ isScrollOnFocus: true
17732
17745
  });
17733
17746
  };
17734
17747
  const PodContainersTable = ({
@@ -17739,6 +17752,7 @@ var __publicField = (obj, key, value) => {
17739
17752
  const component = React.useContext(ComponentContext);
17740
17753
  const Table$1 = component.Table || Table;
17741
17754
  const [currentPage, setCurrentPage] = React.useState(1);
17755
+ const currentSize = 10;
17742
17756
  const columns = React.useMemo(
17743
17757
  () => [
17744
17758
  {
@@ -17815,11 +17829,12 @@ var __publicField = (obj, key, value) => {
17815
17829
  {
17816
17830
  tableKey: "podContainers",
17817
17831
  loading: false,
17818
- data: dataSource,
17832
+ data: dataSource.slice((currentPage - 1) * currentSize, currentPage * currentSize),
17833
+ total: dataSource.length,
17819
17834
  columns: addDefaultRenderToColumns(columns),
17820
17835
  rowKey: "containerID",
17821
17836
  error: false,
17822
- currentSize: 10,
17837
+ currentSize,
17823
17838
  currentPage,
17824
17839
  onPageChange: setCurrentPage,
17825
17840
  showMenuColumn: false
@@ -18265,6 +18280,7 @@ var __publicField = (obj, key, value) => {
18265
18280
  return void 0;
18266
18281
  }
18267
18282
  }
18283
+ const GlobalStoreContext = React.createContext({});
18268
18284
  const index_1uuzt53 = "";
18269
18285
  const SelectStyle = "sj0ggy";
18270
18286
  const DropdownStyle = "d1eo8uqs";
@@ -18280,6 +18296,15 @@ var __publicField = (obj, key, value) => {
18280
18296
  const ALL_NS = "_all";
18281
18297
  const useNamespacesFilter = () => {
18282
18298
  const [value2] = useLocalStorage(NS_STORE_KEY, [ALL_NS]);
18299
+ const {
18300
+ resource
18301
+ } = core.useResource();
18302
+ const configs = React.useContext(ConfigsContext);
18303
+ if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].hideNamespacesFilter) {
18304
+ return {
18305
+ value: []
18306
+ };
18307
+ }
18283
18308
  return {
18284
18309
  value: value2
18285
18310
  };
@@ -18417,21 +18442,23 @@ var __publicField = (obj, key, value) => {
18417
18442
  const config = configs[(resource == null ? void 0 : resource.name) || ""];
18418
18443
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18419
18444
  className: ListPageStyle,
18420
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
18421
- selectedKeys,
18422
- description: config == null ? void 0 : config.description
18423
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
18424
- style: {
18425
- margin: 0,
18426
- minHeight: 1,
18427
- marginRight: 24,
18428
- width: "calc(100% - 24px)"
18429
- }
18430
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18445
+ children: [!config.hideListToolBar ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
18446
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
18447
+ selectedKeys,
18448
+ description: config == null ? void 0 : config.description
18449
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
18450
+ style: {
18451
+ margin: 0,
18452
+ minHeight: 1,
18453
+ marginRight: 24,
18454
+ width: "calc(100% - 24px)"
18455
+ }
18456
+ })]
18457
+ }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18431
18458
  className: ListContentStyle,
18432
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18459
+ children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18433
18460
  className: NamespaceFilterStyle
18434
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18461
+ }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18435
18462
  className: TableStyle,
18436
18463
  children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
18437
18464
  errorText: tableProps.empty || t2("dovetail.no_resource", {
@@ -22663,7 +22690,6 @@ var __publicField = (obj, key, value) => {
22663
22690
  const content = yaml.dump(merged);
22664
22691
  return content.replace(/(')(#.+?)(')/g, "$2").replace(/( +)(#)/g, "$2$1");
22665
22692
  }
22666
- const GlobalStoreContext = React.createContext({});
22667
22693
  const useGlobalStore = () => {
22668
22694
  return React.useContext(GlobalStoreContext);
22669
22695
  };
@@ -23005,7 +23031,7 @@ var __publicField = (obj, key, value) => {
23005
23031
  const FormDescStyle = "f1qgcca6";
23006
23032
  const ErrorStyle = "e1tl3wq2";
23007
23033
  function FormModal(props) {
23008
- var _a, _b, _c, _d;
23034
+ var _a, _b, _c, _d, _e;
23009
23035
  const {
23010
23036
  resource: resourceFromProps,
23011
23037
  id,
@@ -23052,10 +23078,11 @@ var __publicField = (obj, key, value) => {
23052
23078
  onMutationSuccess: () => {
23053
23079
  eagle.popModal();
23054
23080
  },
23055
- redirect: false
23081
+ redirect: false,
23082
+ ...(_a = config.formConfig) == null ? void 0 : _a.refineCoreProps
23056
23083
  }
23057
23084
  });
23058
- const isYamlForm = !((_a = config.formConfig) == null ? void 0 : _a.fields);
23085
+ const isYamlForm = !((_b = config.formConfig) == null ? void 0 : _b.fields);
23059
23086
  const formEle = (() => {
23060
23087
  if (renderForm) {
23061
23088
  return renderForm(yamlFormProps);
@@ -23087,7 +23114,7 @@ var __publicField = (obj, key, value) => {
23087
23114
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
23088
23115
  className: FullscreenModalStyle,
23089
23116
  width: "calc(100vw - 16px)",
23090
- title: ((_b = config.formConfig) == null ? void 0 : _b.formTitle) || title,
23117
+ title: ((_c = config.formConfig) == null ? void 0 : _c.formTitle) || title,
23091
23118
  error: errorText ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
23092
23119
  className: ErrorStyle,
23093
23120
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.ExclamationErrorCircleFill16RedIcon, {}), " ", errorText]
@@ -23099,9 +23126,9 @@ var __publicField = (obj, key, value) => {
23099
23126
  onCancel,
23100
23127
  destroyOnClose: true,
23101
23128
  fullscreen: true,
23102
- children: [((_c = config.formConfig) == null ? void 0 : _c.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
23129
+ children: [((_d = config.formConfig) == null ? void 0 : _d.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
23103
23130
  className: FormDescStyle,
23104
- children: (_d = config.formConfig) == null ? void 0 : _d.formDesc
23131
+ children: (_e = config.formConfig) == null ? void 0 : _e.formDesc
23105
23132
  }) : void 0, formEle]
23106
23133
  });
23107
23134
  }
@@ -24015,7 +24042,7 @@ var __publicField = (obj, key, value) => {
24015
24042
  }));
24016
24043
  }
24017
24044
  const useEagleTable = (params) => {
24018
- var _a;
24045
+ var _a, _b, _c;
24019
24046
  const { columns, tableProps, formatter, Dropdown = K8sDropdown } = params;
24020
24047
  const [selectedKeys, setSelectedKeys] = React.useState([]);
24021
24048
  const [currentPage, setCurrentPage] = React.useState((tableProps == null ? void 0 : tableProps.currentPage) || 1);
@@ -24052,7 +24079,9 @@ var __publicField = (obj, key, value) => {
24052
24079
  },
24053
24080
  [setCurrentPage]
24054
24081
  );
24055
- const data2 = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data;
24082
+ const currentSize = (tableProps == null ? void 0 : tableProps.currentSize) || 5;
24083
+ const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice((currentPage - 1) * currentSize, currentPage * currentSize);
24084
+ const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
24056
24085
  const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
24057
24086
  const finalProps = {
24058
24087
  tableKey: (resource == null ? void 0 : resource.name) || "table",
@@ -24063,11 +24092,12 @@ var __publicField = (obj, key, value) => {
24063
24092
  error: false,
24064
24093
  rowKey: "id",
24065
24094
  currentPage,
24066
- currentSize: (tableProps == null ? void 0 : tableProps.currentSize) || 5,
24095
+ currentSize,
24067
24096
  onPageChange,
24068
24097
  onSelect: (keys) => {
24069
24098
  setSelectedKeys(keys);
24070
24099
  },
24100
+ total,
24071
24101
  RowMenu: Dropdown
24072
24102
  };
24073
24103
  return { tableProps: finalProps, selectedKeys, ...table };
@@ -24388,6 +24418,7 @@ var __publicField = (obj, key, value) => {
24388
24418
  exports2.ListPage = ListPage;
24389
24419
  exports2.Menu = Menu;
24390
24420
  exports2.MetadataForm = MetadataForm;
24421
+ exports2.ModalStyle = ModalStyle;
24391
24422
  exports2.NETWORK_POLICY_INIT_VALUE = NETWORK_POLICY_INIT_VALUE;
24392
24423
  exports2.NS_STORE_KEY = NS_STORE_KEY;
24393
24424
  exports2.NameColumnRenderer = NameColumnRenderer;
package/dist/style.css CHANGED
@@ -1,7 +1,7 @@
1
1
  .t1vq0ett{margin-bottom:4px;}
2
2
  .t139onst{color:rgba(44,56,82,0.60);}
3
3
  .n18lzor8.ant-tag.ant-tag-gray{background-color:rgba(237,241,250,.6);border:1px solid rgba(211,218,235,.6);color:#00122e;}
4
- .mvvgkkc.ant-modal .ant-modal-content{border-radius:16px;}.mvvgkkc.ant-modal .ant-modal-header{border-radius:16px 16px 0 0;}
4
+ .mvvgkkc.ant-modal.normal-modal .ant-modal-content{width:492px;border-radius:16px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-body{padding:32px 40px;min-height:160px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-header{border-radius:16px 16px 0 0;padding:32px 40px;padding-bottom:0;}.mvvgkkc.ant-modal.normal-modal .ant-modal-footer{padding:24px 40px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-close-x{top:35px;right:40px;}
5
5
  .e5223w8.e5223w8{color:rgba(0,21,64,.3);}
6
6
  .cdjsw14{width:100%;}.cdjsw14.overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
7
7
  .b142d7q8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.b142d7q8 .breadcrumb-item:not(:last-of-type):after{content:'>';margin:0 8px;}
@@ -23,7 +23,7 @@
23
23
  .i1u1f5zp{white-space:pre-line;}
24
24
  .c8jy7dc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:8px 10px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:8px;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:4px;background:rgba(237,241,250,0.6);}.c8jy7dc:not(:last-of-type){margin-bottom:8px;}
25
25
  .k2sddxl{color:rgba(44,56,82,0.6);width:calc(30% - 4px);margin-right:8px;word-break:break-all;}
26
- .v16vicsr{word-break:break-all;width:calc(70% - 4px);}
26
+ .v16vicsr{word-break:break-all;white-space:pre-wrap;width:calc(70% - 4px);}
27
27
  .w14056kz{width:100%;}
28
28
  .hisq2gt{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.hisq2gt.expanded{margin-bottom:8px;}
29
29
  .h11urhaw{margin-right:8px;line-height:18px;}
@@ -43,8 +43,7 @@
43
43
  .tf5s6s.ant-tabs{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tf5s6s.ant-tabs .ant-tabs-nav{margin-bottom:0;margin-right:24px;}.tf5s6s.ant-tabs .ant-tabs-nav-list{margin-left:24px;}.tf5s6s.ant-tabs .ant-tabs-content-holder{overflow:auto;}.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-content,.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-tabpane-active{height:100%;}
44
44
  .b11tbgf7.ant-btn-quiet.ant-btn{color:rgba(44,56,82,0.75);}
45
45
  .c1dicff8{width:100%;vertical-align:top;}
46
- .esoz3jw .ant-modal-content{border-radius:16px;}.esoz3jw .ant-modal-header{border-radius:16px 16px 0 0;}
47
- .e1m0bgls.ant-btn.ant-btn-link{height:22px;margin-left:8px;}
46
+ .esoz3jw.ant-btn.ant-btn-link{height:22px;margin-left:8px;}
48
47
  .w8ychfk{border-radius:8px;border:1px solid rgba(211,218,235,0.60);padding:16px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
49
48
  .d1o004do{width:70px;height:70px;margin-right:16px;}
50
49
  .dfo80qq{width:100%;}
@@ -1490,7 +1489,7 @@
1490
1489
  height: 1em;
1491
1490
  vertical-align: -0.125em;
1492
1491
  }.wve7dfm{padding:0 24px;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1493
- .t9oeh3c{margin:8px 0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.t9oeh3c > *{margin-right:8px !important;}.t9oeh3c .ant-select{width:256px !important;}
1492
+ .t9oeh3c{margin:8px 0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.t9oeh3c .ant-select{width:256px !important;}
1494
1493
  .t1u2zqn6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:12px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
1495
1494
  .c8wrcus{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}
1496
1495
  .t1joof7s{width:100%;padding:11px;border-bottom:1px solid rgba(211,218,235,0.6);background:rgba(225,230,241,0.6);border-top-left-radius:8px;border-top-right-radius:8px;}.t1joof7s.collapsed{border-bottom:0;}.t1joof7s svg{margin:auto;}.t1joof7s > .dovetail-ant-space-item{line-height:16px;}
@@ -17,6 +17,7 @@ export type TableProps<Data extends {
17
17
  loading: boolean;
18
18
  error?: boolean;
19
19
  data: Data[];
20
+ total: number;
20
21
  refetch?: () => void;
21
22
  rowKey: (string & keyof Data) | ((record: Data) => string);
22
23
  columns: Array<Column<Data>>;
@@ -1,4 +1,5 @@
1
1
  import { ModalProps } from '@cloudtower/eagle';
2
+ export declare const ModalStyle: import("@linaria/core").LinariaClassName;
2
3
  export declare const useDeleteModal: (resource: string) => {
3
4
  modalProps: ModalProps;
4
5
  visible: boolean;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { UseFormProps } from '@refinedev/react-hook-form';
2
3
  import { Unstructured } from 'k8s-api-provider';
3
4
  import { YamlFormProps } from '../components';
4
5
  import { RefineFormField } from '../components/Form';
@@ -26,6 +27,8 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
26
27
  basePath: string;
27
28
  apiVersion: string;
28
29
  label: string;
30
+ hideListToolBar?: boolean;
31
+ hideNamespacesFilter?: boolean;
29
32
  description?: string;
30
33
  parent?: RESOURCE_GROUP;
31
34
  formatter?: (v: Model) => Model;
@@ -45,5 +48,6 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
45
48
  transformApplyValues?: (values: Unstructured) => Unstructured;
46
49
  formTitle?: string;
47
50
  formDesc?: string;
51
+ refineCoreProps?: UseFormProps['refineCoreProps'];
48
52
  };
49
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",