@dovetail-v2/refine 0.3.24-alpha.0 → 0.3.24-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  export declare const SpaceStyle: import("@linaria/core").LinariaClassName;
2
+ export declare const FormItemStyle: import("@linaria/core").LinariaClassName;
2
3
  export declare const VerticalFormItemStyle: import("@linaria/core").LinariaClassName;
3
4
  export declare const IntegerStyle: import("@linaria/core").LinariaClassName;
4
5
  export declare const ContentWrapper: import("@linaria/core").LinariaClassName;
package/dist/refine.cjs CHANGED
@@ -1674,6 +1674,9 @@ function getApiVersion(resourceBasePath) {
1674
1674
  }
1675
1675
  function pruneBeforeEdit(v) {
1676
1676
  delete v.id;
1677
+ if (v.metadata) {
1678
+ delete v.metadata.relations;
1679
+ }
1677
1680
  }
1678
1681
  var lodash = { exports: {} };
1679
1682
  /**
@@ -7712,9 +7715,131 @@ function DurationTime(props) {
7712
7715
  };
7713
7716
  return /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", { children: elapsedTime(value2, i18nMap).label || /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, { value: "" }) });
7714
7717
  }
7715
- const show_1mm8a0w = "";
7718
+ function memoize$2(fn) {
7719
+ var cache = /* @__PURE__ */ Object.create(null);
7720
+ return function(arg) {
7721
+ if (cache[arg] === void 0)
7722
+ cache[arg] = fn(arg);
7723
+ return cache[arg];
7724
+ };
7725
+ }
7726
+ 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)-.*))$/;
7727
+ var isPropValid = /* @__PURE__ */ memoize$2(
7728
+ function(prop) {
7729
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
7730
+ }
7731
+ /* Z+1 */
7732
+ );
7733
+ var isCapital = (ch) => ch.toUpperCase() === ch;
7734
+ var filterKey = (keys2) => (key2) => keys2.indexOf(key2) === -1;
7735
+ var omit = (obj, keys2) => {
7736
+ const res = {};
7737
+ Object.keys(obj).filter(filterKey(keys2)).forEach((key2) => {
7738
+ res[key2] = obj[key2];
7739
+ });
7740
+ return res;
7741
+ };
7742
+ function filterProps(asIs, props, omitKeys) {
7743
+ const filteredProps = omit(props, omitKeys);
7744
+ if (!asIs) {
7745
+ const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
7746
+ Object.keys(filteredProps).forEach((key2) => {
7747
+ if (!interopValidAttr.default(key2)) {
7748
+ delete filteredProps[key2];
7749
+ }
7750
+ });
7751
+ }
7752
+ return filteredProps;
7753
+ }
7754
+ var warnIfInvalid = (value2, componentName) => {
7755
+ if (process.env.NODE_ENV !== "production") {
7756
+ if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
7757
+ return;
7758
+ }
7759
+ const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
7760
+ console.warn(
7761
+ `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.`
7762
+ );
7763
+ }
7764
+ };
7765
+ var idx = 0;
7766
+ function styled(tag) {
7767
+ var _a;
7768
+ let mockedClass = "";
7769
+ if (process.env.NODE_ENV === "test") {
7770
+ mockedClass += `mocked-styled-${idx++}`;
7771
+ if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
7772
+ mockedClass += ` ${tag.__linaria.className}`;
7773
+ }
7774
+ }
7775
+ return (options) => {
7776
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
7777
+ if (Array.isArray(options)) {
7778
+ throw new Error(
7779
+ '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'
7780
+ );
7781
+ }
7782
+ }
7783
+ const render = (props, ref) => {
7784
+ const { as: component = tag, class: className = mockedClass } = props;
7785
+ const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
7786
+ const filteredProps = filterProps(shouldKeepProps, props, [
7787
+ "as",
7788
+ "class"
7789
+ ]);
7790
+ filteredProps.ref = ref;
7791
+ filteredProps.className = options.atomic ? common.cx_default(options.class, filteredProps.className || className) : common.cx_default(filteredProps.className || className, options.class);
7792
+ const { vars } = options;
7793
+ if (vars) {
7794
+ const style = {};
7795
+ for (const name2 in vars) {
7796
+ const variable = vars[name2];
7797
+ const result = variable[0];
7798
+ const unit = variable[1] || "";
7799
+ const value2 = typeof result === "function" ? result(props) : result;
7800
+ warnIfInvalid(value2, options.name);
7801
+ style[`--${name2}`] = `${value2}${unit}`;
7802
+ }
7803
+ const ownStyle = filteredProps.style || {};
7804
+ const keys2 = Object.keys(ownStyle);
7805
+ if (keys2.length > 0) {
7806
+ keys2.forEach((key2) => {
7807
+ style[key2] = ownStyle[key2];
7808
+ });
7809
+ }
7810
+ filteredProps.style = style;
7811
+ }
7812
+ if (tag.__linaria && tag !== component) {
7813
+ filteredProps.as = component;
7814
+ return React.createElement(tag, filteredProps);
7815
+ }
7816
+ return React.createElement(component, filteredProps);
7817
+ };
7818
+ const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
7819
+ const rest = omit(props, ["innerRef"]);
7820
+ return render(rest, props.innerRef);
7821
+ };
7822
+ Result.displayName = options.name;
7823
+ Result.__linaria = {
7824
+ className: options.class || mockedClass,
7825
+ extends: tag
7826
+ };
7827
+ return Result;
7828
+ };
7829
+ }
7830
+ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
7831
+ get(o, prop) {
7832
+ return o(prop);
7833
+ }
7834
+ }) : styled;
7835
+ const show_g2a17y = "";
7716
7836
  const SmallSectionTitleStyle = common.cx_default(eagle.Typo.Label.l4_bold, "smzfpl7");
7717
7837
  const DashedTitleStyle = "d85h4vb";
7838
+ const HorizontalContainer = /* @__PURE__ */ styled_default("div")({
7839
+ name: "HorizontalContainer",
7840
+ class: "h1ulqh5c",
7841
+ propsAsIs: false
7842
+ });
7718
7843
  const index_1xaw1mq = "";
7719
7844
  const BreadcrumbStyle = "b142d7q8";
7720
7845
  function Breadcrumb(props) {
@@ -7908,123 +8033,6 @@ function MetadataForm() {
7908
8033
  }
7909
8034
  const ComponentContext = React.createContext({});
7910
8035
  const GlobalStoreContext = React.createContext({});
7911
- function memoize$2(fn) {
7912
- var cache = /* @__PURE__ */ Object.create(null);
7913
- return function(arg) {
7914
- if (cache[arg] === void 0)
7915
- cache[arg] = fn(arg);
7916
- return cache[arg];
7917
- };
7918
- }
7919
- 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)-.*))$/;
7920
- var isPropValid = /* @__PURE__ */ memoize$2(
7921
- function(prop) {
7922
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
7923
- }
7924
- /* Z+1 */
7925
- );
7926
- var isCapital = (ch) => ch.toUpperCase() === ch;
7927
- var filterKey = (keys2) => (key2) => keys2.indexOf(key2) === -1;
7928
- var omit = (obj, keys2) => {
7929
- const res = {};
7930
- Object.keys(obj).filter(filterKey(keys2)).forEach((key2) => {
7931
- res[key2] = obj[key2];
7932
- });
7933
- return res;
7934
- };
7935
- function filterProps(asIs, props, omitKeys) {
7936
- const filteredProps = omit(props, omitKeys);
7937
- if (!asIs) {
7938
- const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
7939
- Object.keys(filteredProps).forEach((key2) => {
7940
- if (!interopValidAttr.default(key2)) {
7941
- delete filteredProps[key2];
7942
- }
7943
- });
7944
- }
7945
- return filteredProps;
7946
- }
7947
- var warnIfInvalid = (value2, componentName) => {
7948
- if (process.env.NODE_ENV !== "production") {
7949
- if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
7950
- return;
7951
- }
7952
- const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
7953
- console.warn(
7954
- `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.`
7955
- );
7956
- }
7957
- };
7958
- var idx = 0;
7959
- function styled(tag) {
7960
- var _a;
7961
- let mockedClass = "";
7962
- if (process.env.NODE_ENV === "test") {
7963
- mockedClass += `mocked-styled-${idx++}`;
7964
- if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
7965
- mockedClass += ` ${tag.__linaria.className}`;
7966
- }
7967
- }
7968
- return (options) => {
7969
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
7970
- if (Array.isArray(options)) {
7971
- throw new Error(
7972
- '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'
7973
- );
7974
- }
7975
- }
7976
- const render = (props, ref) => {
7977
- const { as: component = tag, class: className = mockedClass } = props;
7978
- const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
7979
- const filteredProps = filterProps(shouldKeepProps, props, [
7980
- "as",
7981
- "class"
7982
- ]);
7983
- filteredProps.ref = ref;
7984
- filteredProps.className = options.atomic ? common.cx_default(options.class, filteredProps.className || className) : common.cx_default(filteredProps.className || className, options.class);
7985
- const { vars } = options;
7986
- if (vars) {
7987
- const style = {};
7988
- for (const name2 in vars) {
7989
- const variable = vars[name2];
7990
- const result = variable[0];
7991
- const unit = variable[1] || "";
7992
- const value2 = typeof result === "function" ? result(props) : result;
7993
- warnIfInvalid(value2, options.name);
7994
- style[`--${name2}`] = `${value2}${unit}`;
7995
- }
7996
- const ownStyle = filteredProps.style || {};
7997
- const keys2 = Object.keys(ownStyle);
7998
- if (keys2.length > 0) {
7999
- keys2.forEach((key2) => {
8000
- style[key2] = ownStyle[key2];
8001
- });
8002
- }
8003
- filteredProps.style = style;
8004
- }
8005
- if (tag.__linaria && tag !== component) {
8006
- filteredProps.as = component;
8007
- return React.createElement(tag, filteredProps);
8008
- }
8009
- return React.createElement(component, filteredProps);
8010
- };
8011
- const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
8012
- const rest = omit(props, ["innerRef"]);
8013
- return render(rest, props.innerRef);
8014
- };
8015
- Result.displayName = options.name;
8016
- Result.__linaria = {
8017
- className: options.class || mockedClass,
8018
- extends: tag
8019
- };
8020
- return Result;
8021
- };
8022
- }
8023
- var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
8024
- get(o, prop) {
8025
- return o(prop);
8026
- }
8027
- }) : styled;
8028
8036
  const index_o09auy = "";
8029
8037
  const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
8030
8038
  name: "ErrorWrapper",
@@ -12722,7 +12730,7 @@ function WorkloadReplicas({
12722
12730
  })]
12723
12731
  });
12724
12732
  }
12725
- const fields_1lap7d5 = "";
12733
+ const fields_dtkyic = "";
12726
12734
  var AreaType = /* @__PURE__ */ ((AreaType2) => {
12727
12735
  AreaType2["Inline"] = "Inline";
12728
12736
  AreaType2["Grid"] = "Grid";
@@ -14044,7 +14052,7 @@ function Tabs(props) {
14044
14052
  return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
14045
14053
  }) });
14046
14054
  }
14047
- const ShowContentView_1xfhkd = "";
14055
+ const ShowContentView_11vyp5a = "";
14048
14056
  const ShowContentWrapperStyle = "soapvs9";
14049
14057
  const BackButton = "b13d603q";
14050
14058
  const ToolBarWrapper = "tm8eaia";
@@ -14244,18 +14252,15 @@ const ShowContentView = (props) => {
14244
14252
  children: (config == null ? void 0 : config.displayName) || resourceName
14245
14253
  })
14246
14254
  })
14247
- }), (_a = showConfig.renderCustomBackButton) == null ? void 0 : _a.call(showConfig, record), /* @__PURE__ */ common.jsxRuntimeExports.jsxs(eagle.Space, {
14255
+ }), (_a = showConfig.renderCustomBackButton) == null ? void 0 : _a.call(showConfig, record), /* @__PURE__ */ common.jsxRuntimeExports.jsxs(HorizontalContainer, {
14248
14256
  className: TopBarStyle,
14249
- children: [/* @__PURE__ */ common.jsxRuntimeExports.jsxs("div", {
14250
- style: {
14251
- display: "flex"
14252
- },
14257
+ children: [/* @__PURE__ */ common.jsxRuntimeExports.jsxs(HorizontalContainer, {
14253
14258
  children: [/* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Tag.NameTag, {
14254
14259
  className: KindTagStyle,
14255
14260
  children: config.kind
14256
- }), /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
14257
- className: common.cx_default(eagle.Typo.Display.d2_regular_title, NameStyle),
14258
- children: ((_b = showConfig.displayName) == null ? void 0 : _b.call(showConfig, record)) || ((_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name)
14261
+ }), /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
14262
+ content: ((_b = showConfig.displayName) == null ? void 0 : _b.call(showConfig, record)) || ((_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name),
14263
+ className: common.cx_default(eagle.Typo.Display.d2_regular_title, NameStyle)
14259
14264
  }), stateDisplay ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(StateTag, {
14260
14265
  state: stateDisplay,
14261
14266
  customResourceStateMap: showConfig.resourceStateMap
@@ -14264,7 +14269,10 @@ const ShowContentView = (props) => {
14264
14269
  color: "yellow",
14265
14270
  children: i18n2.t("dovetail.pause_scheduling")
14266
14271
  }) : null]
14267
- }), /* @__PURE__ */ common.jsxRuntimeExports.jsxs(eagle.Space, {
14272
+ }), /* @__PURE__ */ common.jsxRuntimeExports.jsxs(HorizontalContainer, {
14273
+ style: {
14274
+ flexShrink: 0
14275
+ },
14268
14276
  children: [(_d = showConfig.renderExtraButton) == null ? void 0 : _d.call(showConfig, record), !config.hideEdit ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(core.CanAccess, {
14269
14277
  resource: resourceName,
14270
14278
  action: AccessControlAuth.Edit,
@@ -14576,7 +14584,7 @@ function PodDropdown(props) {
14576
14584
  children
14577
14585
  ] });
14578
14586
  }
14579
- const index_1jqojte = "";
14587
+ const index_14rc5hr = "";
14580
14588
  const SelectStyle = "sj0ggy";
14581
14589
  const DropdownStyle = "d1eo8uqs";
14582
14590
  const SearchInputStyle = "s64gojc";
@@ -14589,6 +14597,9 @@ const AllNamespaceOptionStyle = "api7z1z";
14589
14597
  const OptionStyle = "o38b23x";
14590
14598
  const NS_STORE_KEY = "namespace-filter";
14591
14599
  const ALL_NS = "_all";
14600
+ const EMPTY_NS_FILTER = {
14601
+ value: []
14602
+ };
14592
14603
  const useNamespacesFilter = () => {
14593
14604
  const [value2] = usehooksTs.useLocalStorage(NS_STORE_KEY, [ALL_NS]);
14594
14605
  const {
@@ -14596,9 +14607,7 @@ const useNamespacesFilter = () => {
14596
14607
  } = core.useResource();
14597
14608
  const configs = React.useContext(ConfigsContext);
14598
14609
  if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].nonNsResource) {
14599
- return {
14600
- value: []
14601
- };
14610
+ return EMPTY_NS_FILTER;
14602
14611
  }
14603
14612
  return {
14604
14613
  value: value2
@@ -14840,7 +14849,12 @@ function ResourceList(props) {
14840
14849
  formatter,
14841
14850
  Dropdown
14842
14851
  });
14852
+ const prevFiltersRef = React.useRef(filters);
14843
14853
  React.useEffect(() => {
14854
+ if (lodashEs.isEqual(prevFiltersRef.current, filters)) {
14855
+ return;
14856
+ }
14857
+ prevFiltersRef.current = filters;
14844
14858
  tableProps.onPageChange(1);
14845
14859
  }, [filters]);
14846
14860
  return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ListPage, { selectedKeys, tableProps });
@@ -14993,11 +15007,12 @@ const SectionTitle = React.forwardRef(function SectionTitle2(props, ref) {
14993
15007
  })]
14994
15008
  });
14995
15009
  });
14996
- const styles_mte7bu = "";
15010
+ const styles_xhprxh = "";
14997
15011
  const SpaceStyle = "sea7f83";
14998
- const VerticalFormItemStyle = "v1jthrhz";
14999
- const IntegerStyle = "i1brpchs";
15000
- const ContentWrapper = "c11mae2d";
15012
+ const FormItemStyle = "f1jthrhz";
15013
+ const VerticalFormItemStyle = "v1brpchs";
15014
+ const IntegerStyle = "i11mae2d";
15015
+ const ContentWrapper = "c3ugb3y";
15001
15016
  function useFieldsConfig(resourceConfig, formConfig, resourceId, step, customOptions, transformedInitValues) {
15002
15017
  var _a, _b, _c;
15003
15018
  const action = resourceId ? "edit" : "create";
@@ -15113,7 +15128,7 @@ const MemoizedFormField = React.memo(function FormField({
15113
15128
  extra: ((_b = fieldState.error) == null ? void 0 : _b.message) === fieldConfig.helperText ? "" : fieldConfig.helperText,
15114
15129
  validateStatus: fieldState.invalid && !fieldConfig.isHideErrorStatus ? "error" : void 0,
15115
15130
  "data-test-id": fieldConfig.key,
15116
- className: fieldConfig.layout === FormItemLayout.VERTICAL ? VerticalFormItemStyle : "",
15131
+ className: fieldConfig.layout === FormItemLayout.VERTICAL ? common.cx_default(VerticalFormItemStyle, FormItemStyle) : FormItemStyle,
15117
15132
  children: ele
15118
15133
  },
15119
15134
  fieldConfig.key
@@ -17992,7 +18007,7 @@ function ResourceSelect(props) {
17992
18007
  }
17993
18008
  );
17994
18009
  }
17995
- const SelectMatchLabelButton_14cb3vv = "";
18010
+ const SelectMatchLabelButton_1pxanxs = "";
17996
18011
  const PopoverOverlayStyle = "p19yct45";
17997
18012
  const PopoverContentStyle = "p2255z4";
17998
18013
  const PopoverTitleStyle = "p16qejqa";
package/dist/refine.js CHANGED
@@ -1655,6 +1655,9 @@ function getApiVersion(resourceBasePath) {
1655
1655
  }
1656
1656
  function pruneBeforeEdit(v) {
1657
1657
  delete v.id;
1658
+ if (v.metadata) {
1659
+ delete v.metadata.relations;
1660
+ }
1658
1661
  }
1659
1662
  var lodash = { exports: {} };
1660
1663
  /**
@@ -7693,9 +7696,131 @@ function DurationTime(props) {
7693
7696
  };
7694
7697
  return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: elapsedTime(value2, i18nMap).label || /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: "" }) });
7695
7698
  }
7696
- const show_1mm8a0w = "";
7699
+ function memoize$2(fn) {
7700
+ var cache = /* @__PURE__ */ Object.create(null);
7701
+ return function(arg) {
7702
+ if (cache[arg] === void 0)
7703
+ cache[arg] = fn(arg);
7704
+ return cache[arg];
7705
+ };
7706
+ }
7707
+ 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)-.*))$/;
7708
+ var isPropValid = /* @__PURE__ */ memoize$2(
7709
+ function(prop) {
7710
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
7711
+ }
7712
+ /* Z+1 */
7713
+ );
7714
+ var isCapital = (ch) => ch.toUpperCase() === ch;
7715
+ var filterKey = (keys2) => (key2) => keys2.indexOf(key2) === -1;
7716
+ var omit = (obj, keys2) => {
7717
+ const res = {};
7718
+ Object.keys(obj).filter(filterKey(keys2)).forEach((key2) => {
7719
+ res[key2] = obj[key2];
7720
+ });
7721
+ return res;
7722
+ };
7723
+ function filterProps(asIs, props, omitKeys) {
7724
+ const filteredProps = omit(props, omitKeys);
7725
+ if (!asIs) {
7726
+ const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
7727
+ Object.keys(filteredProps).forEach((key2) => {
7728
+ if (!interopValidAttr.default(key2)) {
7729
+ delete filteredProps[key2];
7730
+ }
7731
+ });
7732
+ }
7733
+ return filteredProps;
7734
+ }
7735
+ var warnIfInvalid = (value2, componentName) => {
7736
+ if (process.env.NODE_ENV !== "production") {
7737
+ if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
7738
+ return;
7739
+ }
7740
+ const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
7741
+ console.warn(
7742
+ `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.`
7743
+ );
7744
+ }
7745
+ };
7746
+ var idx = 0;
7747
+ function styled(tag) {
7748
+ var _a;
7749
+ let mockedClass = "";
7750
+ if (process.env.NODE_ENV === "test") {
7751
+ mockedClass += `mocked-styled-${idx++}`;
7752
+ if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
7753
+ mockedClass += ` ${tag.__linaria.className}`;
7754
+ }
7755
+ }
7756
+ return (options) => {
7757
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
7758
+ if (Array.isArray(options)) {
7759
+ throw new Error(
7760
+ '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'
7761
+ );
7762
+ }
7763
+ }
7764
+ const render = (props, ref) => {
7765
+ const { as: component = tag, class: className = mockedClass } = props;
7766
+ const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
7767
+ const filteredProps = filterProps(shouldKeepProps, props, [
7768
+ "as",
7769
+ "class"
7770
+ ]);
7771
+ filteredProps.ref = ref;
7772
+ filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
7773
+ const { vars } = options;
7774
+ if (vars) {
7775
+ const style = {};
7776
+ for (const name2 in vars) {
7777
+ const variable = vars[name2];
7778
+ const result = variable[0];
7779
+ const unit = variable[1] || "";
7780
+ const value2 = typeof result === "function" ? result(props) : result;
7781
+ warnIfInvalid(value2, options.name);
7782
+ style[`--${name2}`] = `${value2}${unit}`;
7783
+ }
7784
+ const ownStyle = filteredProps.style || {};
7785
+ const keys2 = Object.keys(ownStyle);
7786
+ if (keys2.length > 0) {
7787
+ keys2.forEach((key2) => {
7788
+ style[key2] = ownStyle[key2];
7789
+ });
7790
+ }
7791
+ filteredProps.style = style;
7792
+ }
7793
+ if (tag.__linaria && tag !== component) {
7794
+ filteredProps.as = component;
7795
+ return React.createElement(tag, filteredProps);
7796
+ }
7797
+ return React.createElement(component, filteredProps);
7798
+ };
7799
+ const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
7800
+ const rest = omit(props, ["innerRef"]);
7801
+ return render(rest, props.innerRef);
7802
+ };
7803
+ Result.displayName = options.name;
7804
+ Result.__linaria = {
7805
+ className: options.class || mockedClass,
7806
+ extends: tag
7807
+ };
7808
+ return Result;
7809
+ };
7810
+ }
7811
+ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
7812
+ get(o, prop) {
7813
+ return o(prop);
7814
+ }
7815
+ }) : styled;
7816
+ const show_g2a17y = "";
7697
7817
  const SmallSectionTitleStyle = cx_default(Typo.Label.l4_bold, "smzfpl7");
7698
7818
  const DashedTitleStyle = "d85h4vb";
7819
+ const HorizontalContainer = /* @__PURE__ */ styled_default("div")({
7820
+ name: "HorizontalContainer",
7821
+ class: "h1ulqh5c",
7822
+ propsAsIs: false
7823
+ });
7699
7824
  const index_1xaw1mq = "";
7700
7825
  const BreadcrumbStyle = "b142d7q8";
7701
7826
  function Breadcrumb(props) {
@@ -7889,123 +8014,6 @@ function MetadataForm() {
7889
8014
  }
7890
8015
  const ComponentContext = createContext({});
7891
8016
  const GlobalStoreContext = createContext({});
7892
- function memoize$2(fn) {
7893
- var cache = /* @__PURE__ */ Object.create(null);
7894
- return function(arg) {
7895
- if (cache[arg] === void 0)
7896
- cache[arg] = fn(arg);
7897
- return cache[arg];
7898
- };
7899
- }
7900
- 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)-.*))$/;
7901
- var isPropValid = /* @__PURE__ */ memoize$2(
7902
- function(prop) {
7903
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
7904
- }
7905
- /* Z+1 */
7906
- );
7907
- var isCapital = (ch) => ch.toUpperCase() === ch;
7908
- var filterKey = (keys2) => (key2) => keys2.indexOf(key2) === -1;
7909
- var omit = (obj, keys2) => {
7910
- const res = {};
7911
- Object.keys(obj).filter(filterKey(keys2)).forEach((key2) => {
7912
- res[key2] = obj[key2];
7913
- });
7914
- return res;
7915
- };
7916
- function filterProps(asIs, props, omitKeys) {
7917
- const filteredProps = omit(props, omitKeys);
7918
- if (!asIs) {
7919
- const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
7920
- Object.keys(filteredProps).forEach((key2) => {
7921
- if (!interopValidAttr.default(key2)) {
7922
- delete filteredProps[key2];
7923
- }
7924
- });
7925
- }
7926
- return filteredProps;
7927
- }
7928
- var warnIfInvalid = (value2, componentName) => {
7929
- if (process.env.NODE_ENV !== "production") {
7930
- if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
7931
- return;
7932
- }
7933
- const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
7934
- console.warn(
7935
- `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.`
7936
- );
7937
- }
7938
- };
7939
- var idx = 0;
7940
- function styled(tag) {
7941
- var _a;
7942
- let mockedClass = "";
7943
- if (process.env.NODE_ENV === "test") {
7944
- mockedClass += `mocked-styled-${idx++}`;
7945
- if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
7946
- mockedClass += ` ${tag.__linaria.className}`;
7947
- }
7948
- }
7949
- return (options) => {
7950
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
7951
- if (Array.isArray(options)) {
7952
- throw new Error(
7953
- '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'
7954
- );
7955
- }
7956
- }
7957
- const render = (props, ref) => {
7958
- const { as: component = tag, class: className = mockedClass } = props;
7959
- const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
7960
- const filteredProps = filterProps(shouldKeepProps, props, [
7961
- "as",
7962
- "class"
7963
- ]);
7964
- filteredProps.ref = ref;
7965
- filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
7966
- const { vars } = options;
7967
- if (vars) {
7968
- const style = {};
7969
- for (const name2 in vars) {
7970
- const variable = vars[name2];
7971
- const result = variable[0];
7972
- const unit = variable[1] || "";
7973
- const value2 = typeof result === "function" ? result(props) : result;
7974
- warnIfInvalid(value2, options.name);
7975
- style[`--${name2}`] = `${value2}${unit}`;
7976
- }
7977
- const ownStyle = filteredProps.style || {};
7978
- const keys2 = Object.keys(ownStyle);
7979
- if (keys2.length > 0) {
7980
- keys2.forEach((key2) => {
7981
- style[key2] = ownStyle[key2];
7982
- });
7983
- }
7984
- filteredProps.style = style;
7985
- }
7986
- if (tag.__linaria && tag !== component) {
7987
- filteredProps.as = component;
7988
- return React.createElement(tag, filteredProps);
7989
- }
7990
- return React.createElement(component, filteredProps);
7991
- };
7992
- const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
7993
- const rest = omit(props, ["innerRef"]);
7994
- return render(rest, props.innerRef);
7995
- };
7996
- Result.displayName = options.name;
7997
- Result.__linaria = {
7998
- className: options.class || mockedClass,
7999
- extends: tag
8000
- };
8001
- return Result;
8002
- };
8003
- }
8004
- var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
8005
- get(o, prop) {
8006
- return o(prop);
8007
- }
8008
- }) : styled;
8009
8017
  const index_o09auy = "";
8010
8018
  const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
8011
8019
  name: "ErrorWrapper",
@@ -12703,7 +12711,7 @@ function WorkloadReplicas({
12703
12711
  })]
12704
12712
  });
12705
12713
  }
12706
- const fields_1lap7d5 = "";
12714
+ const fields_dtkyic = "";
12707
12715
  var AreaType = /* @__PURE__ */ ((AreaType2) => {
12708
12716
  AreaType2["Inline"] = "Inline";
12709
12717
  AreaType2["Grid"] = "Grid";
@@ -14025,7 +14033,7 @@ function Tabs(props) {
14025
14033
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
14026
14034
  }) });
14027
14035
  }
14028
- const ShowContentView_1xfhkd = "";
14036
+ const ShowContentView_11vyp5a = "";
14029
14037
  const ShowContentWrapperStyle = "soapvs9";
14030
14038
  const BackButton = "b13d603q";
14031
14039
  const ToolBarWrapper = "tm8eaia";
@@ -14225,18 +14233,15 @@ const ShowContentView = (props) => {
14225
14233
  children: (config == null ? void 0 : config.displayName) || resourceName
14226
14234
  })
14227
14235
  })
14228
- }), (_a = showConfig.renderCustomBackButton) == null ? void 0 : _a.call(showConfig, record), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
14236
+ }), (_a = showConfig.renderCustomBackButton) == null ? void 0 : _a.call(showConfig, record), /* @__PURE__ */ jsxRuntimeExports.jsxs(HorizontalContainer, {
14229
14237
  className: TopBarStyle,
14230
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
14231
- style: {
14232
- display: "flex"
14233
- },
14238
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(HorizontalContainer, {
14234
14239
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Tag.NameTag, {
14235
14240
  className: KindTagStyle,
14236
14241
  children: config.kind
14237
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
14238
- className: cx_default(Typo.Display.d2_regular_title, NameStyle),
14239
- children: ((_b = showConfig.displayName) == null ? void 0 : _b.call(showConfig, record)) || ((_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name)
14242
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
14243
+ content: ((_b = showConfig.displayName) == null ? void 0 : _b.call(showConfig, record)) || ((_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name),
14244
+ className: cx_default(Typo.Display.d2_regular_title, NameStyle)
14240
14245
  }), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
14241
14246
  state: stateDisplay,
14242
14247
  customResourceStateMap: showConfig.resourceStateMap
@@ -14245,7 +14250,10 @@ const ShowContentView = (props) => {
14245
14250
  color: "yellow",
14246
14251
  children: i18n2.t("dovetail.pause_scheduling")
14247
14252
  }) : null]
14248
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
14253
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(HorizontalContainer, {
14254
+ style: {
14255
+ flexShrink: 0
14256
+ },
14249
14257
  children: [(_d = showConfig.renderExtraButton) == null ? void 0 : _d.call(showConfig, record), !config.hideEdit ? /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
14250
14258
  resource: resourceName,
14251
14259
  action: AccessControlAuth.Edit,
@@ -14557,7 +14565,7 @@ function PodDropdown(props) {
14557
14565
  children
14558
14566
  ] });
14559
14567
  }
14560
- const index_1jqojte = "";
14568
+ const index_14rc5hr = "";
14561
14569
  const SelectStyle = "sj0ggy";
14562
14570
  const DropdownStyle = "d1eo8uqs";
14563
14571
  const SearchInputStyle = "s64gojc";
@@ -14570,6 +14578,9 @@ const AllNamespaceOptionStyle = "api7z1z";
14570
14578
  const OptionStyle = "o38b23x";
14571
14579
  const NS_STORE_KEY = "namespace-filter";
14572
14580
  const ALL_NS = "_all";
14581
+ const EMPTY_NS_FILTER = {
14582
+ value: []
14583
+ };
14573
14584
  const useNamespacesFilter = () => {
14574
14585
  const [value2] = useLocalStorage(NS_STORE_KEY, [ALL_NS]);
14575
14586
  const {
@@ -14577,9 +14588,7 @@ const useNamespacesFilter = () => {
14577
14588
  } = useResource();
14578
14589
  const configs = useContext(ConfigsContext);
14579
14590
  if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].nonNsResource) {
14580
- return {
14581
- value: []
14582
- };
14591
+ return EMPTY_NS_FILTER;
14583
14592
  }
14584
14593
  return {
14585
14594
  value: value2
@@ -14821,7 +14830,12 @@ function ResourceList(props) {
14821
14830
  formatter,
14822
14831
  Dropdown: Dropdown2
14823
14832
  });
14833
+ const prevFiltersRef = useRef(filters);
14824
14834
  useEffect(() => {
14835
+ if (isEqual$1(prevFiltersRef.current, filters)) {
14836
+ return;
14837
+ }
14838
+ prevFiltersRef.current = filters;
14825
14839
  tableProps.onPageChange(1);
14826
14840
  }, [filters]);
14827
14841
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ListPage, { selectedKeys, tableProps });
@@ -14974,11 +14988,12 @@ const SectionTitle = React.forwardRef(function SectionTitle2(props, ref) {
14974
14988
  })]
14975
14989
  });
14976
14990
  });
14977
- const styles_mte7bu = "";
14991
+ const styles_xhprxh = "";
14978
14992
  const SpaceStyle = "sea7f83";
14979
- const VerticalFormItemStyle = "v1jthrhz";
14980
- const IntegerStyle = "i1brpchs";
14981
- const ContentWrapper = "c11mae2d";
14993
+ const FormItemStyle = "f1jthrhz";
14994
+ const VerticalFormItemStyle = "v1brpchs";
14995
+ const IntegerStyle = "i11mae2d";
14996
+ const ContentWrapper = "c3ugb3y";
14982
14997
  function useFieldsConfig(resourceConfig, formConfig, resourceId, step, customOptions, transformedInitValues) {
14983
14998
  var _a, _b, _c;
14984
14999
  const action = resourceId ? "edit" : "create";
@@ -15094,7 +15109,7 @@ const MemoizedFormField = memo(function FormField({
15094
15109
  extra: ((_b = fieldState.error) == null ? void 0 : _b.message) === fieldConfig.helperText ? "" : fieldConfig.helperText,
15095
15110
  validateStatus: fieldState.invalid && !fieldConfig.isHideErrorStatus ? "error" : void 0,
15096
15111
  "data-test-id": fieldConfig.key,
15097
- className: fieldConfig.layout === FormItemLayout.VERTICAL ? VerticalFormItemStyle : "",
15112
+ className: fieldConfig.layout === FormItemLayout.VERTICAL ? cx_default(VerticalFormItemStyle, FormItemStyle) : FormItemStyle,
15098
15113
  children: ele
15099
15114
  },
15100
15115
  fieldConfig.key
@@ -17973,7 +17988,7 @@ function ResourceSelect(props) {
17973
17988
  }
17974
17989
  );
17975
17990
  }
17976
- const SelectMatchLabelButton_14cb3vv = "";
17991
+ const SelectMatchLabelButton_1pxanxs = "";
17977
17992
  const PopoverOverlayStyle = "p19yct45";
17978
17993
  const PopoverContentStyle = "p2255z4";
17979
17994
  const PopoverTitleStyle = "p16qejqa";
package/dist/style.css CHANGED
@@ -595,6 +595,15 @@
595
595
  .d85h4vb {
596
596
  border-bottom: 1px dashed rgba(107, 128, 167, 0.6);
597
597
  padding-bottom: 1px;
598
+ }
599
+
600
+ .h1ulqh5c {
601
+ display: flex;
602
+ flex-direction: row;
603
+ align-items: center;
604
+ max-width: 100%;
605
+ overflow: hidden;
606
+ gap: 8px;
598
607
  }/* // basic */
599
608
  /* FishEye Color Variables and Functions */
600
609
  /*
@@ -1967,6 +1976,9 @@
1967
1976
  .c91cpym {
1968
1977
  padding: 16px 24px;
1969
1978
  height: 100%;
1979
+ display: flex;
1980
+ flex-direction: column;
1981
+ gap: 8px;
1970
1982
  }
1971
1983
 
1972
1984
  .ca9k82k {
@@ -3624,7 +3636,8 @@
3624
3636
  background-color: white !important;
3625
3637
  padding: 2px 5px;
3626
3638
  height: 22px;
3627
- color: #1D326C !important;
3639
+ color: #1d326c !important;
3640
+ flex-shrink: 0;
3628
3641
  }
3629
3642
 
3630
3643
  .cxd8k68 {
@@ -4153,22 +4166,26 @@
4153
4166
  margin: 0 auto;
4154
4167
  }
4155
4168
 
4156
- .v1jthrhz.ant-form-item {
4169
+ .f1jthrhz.ant-form-item > .ant-form-item-control {
4170
+ min-width: 0;
4171
+ }
4172
+
4173
+ .v1brpchs.ant-form-item {
4157
4174
  flex-direction: column !important;
4158
4175
  gap: 8px;
4159
4176
  }
4160
- .v1jthrhz.ant-form-item .ant-form-item-label > label {
4177
+ .v1brpchs.ant-form-item .ant-form-item-label > label {
4161
4178
  min-height: auto;
4162
4179
  }
4163
- .v1jthrhz.ant-form-item .ant-form-item-control-input {
4180
+ .v1brpchs.ant-form-item .ant-form-item-control-input {
4164
4181
  min-height: auto;
4165
4182
  }
4166
4183
 
4167
- .i1brpchs {
4184
+ .i11mae2d {
4168
4185
  max-width: 144px;
4169
4186
  }
4170
4187
 
4171
- .c11mae2d {
4188
+ .c3ugb3y {
4172
4189
  display: flex;
4173
4190
  flex-direction: column;
4174
4191
  gap: 16px;
@@ -4844,6 +4861,9 @@
4844
4861
  display: flex;
4845
4862
  flex-direction: column;
4846
4863
  gap: 8px;
4864
+ }
4865
+ .f1mk2u31 > .ant-form-item > .ant-form-item-control {
4866
+ min-width: 0;
4847
4867
  }/* // basic */
4848
4868
  /* FishEye Color Variables and Functions */
4849
4869
  /*
@@ -1,2 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SmallSectionTitleStyle: import("@linaria/core").LinariaClassName;
2
3
  export declare const DashedTitleStyle: import("@linaria/core").LinariaClassName;
4
+ export declare const HorizontalContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.3.24-alpha.0",
3
+ "version": "0.3.24-alpha.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",