@xyo-network/react-shared 2.25.26 → 2.25.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/cjs/components/ErrorBoundry.d.ts +16 -0
  2. package/dist/cjs/components/ErrorBoundry.js +28 -0
  3. package/dist/cjs/components/ErrorBoundry.js.map +1 -0
  4. package/dist/cjs/components/ErrorPage.d.ts +2 -0
  5. package/dist/cjs/components/ErrorPage.js +9 -0
  6. package/dist/cjs/components/ErrorPage.js.map +1 -0
  7. package/dist/cjs/components/FlexPage.d.ts +8 -0
  8. package/dist/cjs/components/FlexPage.js +23 -0
  9. package/dist/cjs/components/FlexPage.js.map +1 -0
  10. package/dist/cjs/components/NotFound/NotFound.d.ts +2 -1
  11. package/dist/cjs/components/NotFound/NotFound.js +2 -2
  12. package/dist/cjs/components/NotFound/NotFound.js.map +1 -1
  13. package/dist/cjs/components/NotFound/NotFoundPage.d.ts +3 -0
  14. package/dist/cjs/components/NotFound/NotFoundPage.js +13 -0
  15. package/dist/cjs/components/NotFound/NotFoundPage.js.map +1 -0
  16. package/dist/cjs/components/NotFound/index.d.ts +1 -0
  17. package/dist/cjs/components/NotFound/index.js +1 -0
  18. package/dist/cjs/components/NotFound/index.js.map +1 -1
  19. package/dist/cjs/components/TableCell/EllipsisTableCell.js +12 -15
  20. package/dist/cjs/components/TableCell/EllipsisTableCell.js.map +1 -1
  21. package/dist/cjs/components/TableCell/getRemainingRowWidth.d.ts +1 -0
  22. package/dist/cjs/components/TableCell/getRemainingRowWidth.js +5 -9
  23. package/dist/cjs/components/TableCell/getRemainingRowWidth.js.map +1 -1
  24. package/dist/cjs/components/TableCell/getSmallestParentWidth.js +1 -1
  25. package/dist/cjs/components/TableCell/getSmallestParentWidth.js.map +1 -1
  26. package/dist/cjs/components/index.d.ts +3 -0
  27. package/dist/cjs/components/index.js +3 -0
  28. package/dist/cjs/components/index.js.map +1 -1
  29. package/dist/cjs/contexts/AppSettings/Storage.js +1 -1
  30. package/dist/cjs/contexts/AppSettings/Storage.js.map +1 -1
  31. package/dist/docs.json +44235 -17447
  32. package/dist/esm/components/ErrorBoundry.d.ts +16 -0
  33. package/dist/esm/components/ErrorBoundry.js +23 -0
  34. package/dist/esm/components/ErrorBoundry.js.map +1 -0
  35. package/dist/esm/components/ErrorPage.d.ts +2 -0
  36. package/dist/esm/components/ErrorPage.js +5 -0
  37. package/dist/esm/components/ErrorPage.js.map +1 -0
  38. package/dist/esm/components/FlexPage.d.ts +8 -0
  39. package/dist/esm/components/FlexPage.js +17 -0
  40. package/dist/esm/components/FlexPage.js.map +1 -0
  41. package/dist/esm/components/NotFound/NotFound.d.ts +2 -1
  42. package/dist/esm/components/NotFound/NotFound.js +3 -3
  43. package/dist/esm/components/NotFound/NotFound.js.map +1 -1
  44. package/dist/esm/components/NotFound/NotFoundPage.d.ts +3 -0
  45. package/dist/esm/components/NotFound/NotFoundPage.js +5 -0
  46. package/dist/esm/components/NotFound/NotFoundPage.js.map +1 -0
  47. package/dist/esm/components/NotFound/index.d.ts +1 -0
  48. package/dist/esm/components/NotFound/index.js +1 -0
  49. package/dist/esm/components/NotFound/index.js.map +1 -1
  50. package/dist/esm/components/TableCell/EllipsisTableCell.js +12 -15
  51. package/dist/esm/components/TableCell/EllipsisTableCell.js.map +1 -1
  52. package/dist/esm/components/TableCell/getRemainingRowWidth.d.ts +1 -0
  53. package/dist/esm/components/TableCell/getRemainingRowWidth.js +5 -8
  54. package/dist/esm/components/TableCell/getRemainingRowWidth.js.map +1 -1
  55. package/dist/esm/components/TableCell/getSmallestParentWidth.js +1 -1
  56. package/dist/esm/components/TableCell/getSmallestParentWidth.js.map +1 -1
  57. package/dist/esm/components/index.d.ts +3 -0
  58. package/dist/esm/components/index.js +3 -0
  59. package/dist/esm/components/index.js.map +1 -1
  60. package/dist/esm/contexts/AppSettings/Storage.js +1 -1
  61. package/dist/esm/contexts/AppSettings/Storage.js.map +1 -1
  62. package/package.json +4 -2
  63. package/src/components/ErrorBoundry.tsx +42 -0
  64. package/src/components/ErrorPage.tsx +12 -0
  65. package/src/components/FlexPage.tsx +42 -0
  66. package/src/components/NotFound/NotFound.tsx +8 -10
  67. package/src/components/NotFound/NotFoundPage.tsx +8 -0
  68. package/src/components/NotFound/index.ts +1 -0
  69. package/src/components/TableCell/EllipsisTableCell.tsx +20 -22
  70. package/src/components/TableCell/getRemainingRowWidth.ts +5 -11
  71. package/src/components/TableCell/getSmallestParentWidth.ts +1 -1
  72. package/src/components/index.ts +3 -0
  73. package/src/contexts/AppSettings/Storage.ts +1 -1
@@ -0,0 +1,16 @@
1
+ import { Component, ErrorInfo, ReactNode } from 'react';
2
+ export interface ErrorBoundaryProps {
3
+ children: ReactNode;
4
+ fallback?: ReactNode;
5
+ }
6
+ export interface ErrorBoundaryState {
7
+ error?: Error;
8
+ }
9
+ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
10
+ constructor(props: ErrorBoundaryProps);
11
+ static getDerivedStateFromError(error: Error): {
12
+ error: Error;
13
+ };
14
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
15
+ render(): string | number | boolean | import("react").ReactFragment | JSX.Element | null | undefined;
16
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorBoundary = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const sdk_react_1 = require("@xylabs/sdk-react");
7
+ const react_1 = require("react");
8
+ class ErrorBoundary extends react_1.Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.state = { error: undefined };
12
+ }
13
+ static getDerivedStateFromError(error) {
14
+ return { error };
15
+ }
16
+ componentDidCatch(error, errorInfo) {
17
+ console.error(`${error}: ${errorInfo}`);
18
+ }
19
+ render() {
20
+ var _a, _b;
21
+ if (this.state.error) {
22
+ return ((_a = this.props.fallback) !== null && _a !== void 0 ? _a : ((0, jsx_runtime_1.jsxs)(sdk_react_1.FlexCol, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h1" }, { children: "Something went wrong." })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "body1" }, { children: ["[", (_b = this.state.error) === null || _b === void 0 ? void 0 : _b.message, "]"] }))] })));
23
+ }
24
+ return this.props.children;
25
+ }
26
+ }
27
+ exports.ErrorBoundary = ErrorBoundary;
28
+ //# sourceMappingURL=ErrorBoundry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundry.js","sourceRoot":"","sources":["../../../src/components/ErrorBoundry.tsx"],"names":[],"mappings":";;;;AAAA,4CAA0C;AAC1C,iDAA2C;AAC3C,iCAAuD;AAWvD,MAAa,aAAc,SAAQ,iBAAiD;IAClF,YAAY,KAAyB;QACnC,KAAK,CAAC,KAAK,CAAC,CAAA;QACZ,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,CAAA;IACnC,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QAC1C,OAAO,EAAE,KAAK,EAAE,CAAA;IAClB,CAAC;IAED,iBAAiB,CAAC,KAAY,EAAE,SAAoB;QAClD,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,KAAK,SAAS,EAAE,CAAC,CAAA;IACzC,CAAC;IAED,MAAM;;QACJ,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACpB,OAAO,CACL,MAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,mCAAI,CACrB,wBAAC,mBAAO,eACN,uBAAC,qBAAU,kBAAC,OAAO,EAAC,IAAI,2CAAmC,EAC3D,wBAAC,qBAAU,kBAAC,OAAO,EAAC,OAAO,sBAAG,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,OAAO,UAAe,IAC9D,CACX,CACF,CAAA;SACF;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAA;IAC5B,CAAC;CACF;AA5BD,sCA4BC"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ErrorPage: () => JSX.Element;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorPage = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const sdk_react_1 = require("@xylabs/sdk-react");
6
+ const FlexPage_1 = require("./FlexPage");
7
+ const ErrorPage = () => ((0, jsx_runtime_1.jsxs)(FlexPage_1.FlexPage, Object.assign({ title: "Oops! Something went wrong" }, { children: [(0, jsx_runtime_1.jsx)("h1", { children: "Oops! Something went wrong!" }), (0, jsx_runtime_1.jsx)(sdk_react_1.ButtonEx, Object.assign({ href: "/", variant: "contained" }, { children: "Homepage" }))] })));
8
+ exports.ErrorPage = ErrorPage;
9
+ //# sourceMappingURL=ErrorPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorPage.js","sourceRoot":"","sources":["../../../src/components/ErrorPage.tsx"],"names":[],"mappings":";;;;AAAA,iDAA4C;AAE5C,yCAAqC;AAE9B,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CAC7B,wBAAC,mBAAQ,kBAAC,KAAK,EAAC,4BAA4B,iBAC1C,yEAAoC,EACpC,uBAAC,oBAAQ,kBAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAC,WAAW,8BAE3B,KACF,CACZ,CAAA;AAPY,QAAA,SAAS,aAOrB"}
@@ -0,0 +1,8 @@
1
+ import { ContainerProps } from '@mui/material';
2
+ import { FlexBoxProps } from '@xylabs/sdk-react';
3
+ import { ReactNode } from 'react';
4
+ export interface FlexPageProps extends FlexBoxProps {
5
+ container?: ContainerProps['maxWidth'];
6
+ breadcrumbs?: ReactNode;
7
+ }
8
+ export declare const FlexPage: React.FC<FlexPageProps>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlexPage = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const sdk_react_1 = require("@xylabs/sdk-react");
8
+ const react_helmet_1 = require("react-helmet");
9
+ const react_router_dom_1 = require("react-router-dom");
10
+ const FlexPage = (_a) => {
11
+ var { title, container = 'xl', breadcrumbs, children } = _a, props = tslib_1.__rest(_a, ["title", "container", "breadcrumbs", "children"]);
12
+ const userEvents = (0, sdk_react_1.useUserEvents)();
13
+ const { pathname } = (0, react_router_dom_1.useLocation)();
14
+ (0, sdk_react_1.useAsyncEffect)(
15
+ // eslint-disable-next-line react-hooks/exhaustive-deps
16
+ () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
17
+ yield (userEvents === null || userEvents === void 0 ? void 0 : userEvents.viewContent({ name: title !== null && title !== void 0 ? title : 'NodeBasePage', path: location.pathname }));
18
+ }), [pathname, title, userEvents]);
19
+ const Body = (props) => ((0, jsx_runtime_1.jsxs)(sdk_react_1.FlexGrowCol, Object.assign({ gap: 2, paddingY: 2, justifyContent: "flex-start", alignItems: "stretch" }, props, { children: [breadcrumbs, children] })));
20
+ return ((0, jsx_runtime_1.jsxs)(sdk_react_1.FlexGrowCol, Object.assign({ alignItems: "stretch", justifyContent: "flex-start", minHeight: 0, overflow: "visible scroll" }, { children: [(0, jsx_runtime_1.jsx)(react_helmet_1.Helmet, { title: title }), container ? ((0, jsx_runtime_1.jsx)(material_1.Container, Object.assign({ style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }, maxWidth: container }, { children: (0, jsx_runtime_1.jsx)(Body, Object.assign({}, props)) }))) : ((0, jsx_runtime_1.jsx)(Body, Object.assign({}, props)))] })));
21
+ };
22
+ exports.FlexPage = FlexPage;
23
+ //# sourceMappingURL=FlexPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlexPage.js","sourceRoot":"","sources":["../../../src/components/FlexP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,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,gBACnJ,uBAAC,IAAI,oBAAK,KAAK,EAAI,IACT,CACb,CAAC,CAAC,CAAC,CACF,uBAAC,IAAI,oBAAK,KAAK,EAAI,CACpB,KACW,CACf,CAAA;AACH,CAAC,CAAA;AA/BY,QAAA,QAAQ,YA+BpB"}
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare const NotFound: () => JSX.Element;
2
+ import { FlexBoxProps } from '@xylabs/sdk-react';
3
+ declare const NotFound: React.FC<FlexBoxProps>;
3
4
  export { NotFound };
@@ -4,8 +4,8 @@ exports.NotFound = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const sdk_react_1 = require("@xylabs/sdk-react");
7
- const NotFound = () => {
8
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(sdk_react_1.FlexGrowCol, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h2" }, { children: "Sorry!" })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ marginY: 3, variant: "body2" }, { children: "Can't find anything here" }))] }) }));
7
+ const NotFound = (props) => {
8
+ return ((0, jsx_runtime_1.jsxs)(sdk_react_1.FlexGrowCol, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h2" }, { children: "Sorry!" })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ marginY: 3, variant: "body2" }, { children: "Can't find anything here" }))] })));
9
9
  };
10
10
  exports.NotFound = NotFound;
11
11
  //# sourceMappingURL=NotFound.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../../src/components/NotFound/NotFound.tsx"],"names":[],"mappings":";;;;AAAA,4CAA0C;AAC1C,iDAA+C;AAE/C,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,OAAO,CACL,2DACE,wBAAC,uBAAW,eACV,uBAAC,qBAAU,kBAAC,OAAO,EAAC,IAAI,4BAAoB,EAC5C,uBAAC,qBAAU,kBAAC,OAAO,EAAE,CAAC,EAAE,OAAO,EAAC,OAAO,gBACpC,0BAA0B,IAChB,IACD,GACb,CACJ,CAAA;AACH,CAAC,CAAA;AAEQ,4BAAQ"}
1
+ {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../../src/components/NotFound/NotFound.tsx"],"names":[],"mappings":";;;;AAAA,4CAA0C;AAC1C,iDAA6D;AAE7D,MAAM,QAAQ,GAA2B,CAAC,KAAK,EAAE,EAAE;IACjD,OAAO,CACL,wBAAC,uBAAW,oBAAK,KAAK,eACpB,uBAAC,qBAAU,kBAAC,OAAO,EAAC,IAAI,4BAAoB,EAC5C,uBAAC,qBAAU,kBAAC,OAAO,EAAE,CAAC,EAAE,OAAO,EAAC,OAAO,gBACpC,0BAA0B,IAChB,KACD,CACf,CAAA;AACH,CAAC,CAAA;AAEQ,4BAAQ"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FlexPageProps } from '../FlexPage';
3
+ export declare const NotFoundPage: React.FC<FlexPageProps>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotFoundPage = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const FlexPage_1 = require("../FlexPage");
7
+ const NotFound_1 = require("./NotFound");
8
+ const NotFoundPage = (_a) => {
9
+ var { title } = _a, props = tslib_1.__rest(_a, ["title"]);
10
+ return ((0, jsx_runtime_1.jsx)(FlexPage_1.FlexPage, Object.assign({ title: title !== null && title !== void 0 ? title : 'Sorry! Page Not Found' }, props, { children: (0, jsx_runtime_1.jsx)(NotFound_1.NotFound, {}) })));
11
+ };
12
+ exports.NotFoundPage = NotFoundPage;
13
+ //# sourceMappingURL=NotFoundPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFoundPage.js","sourceRoot":"","sources":["../../../../src/components/NotFound/NotFoundPage.tsx"],"names":[],"mappings":";;;;;AAAA,0CAAqD;AACrD,yCAAqC;AAE9B,MAAM,YAAY,GAA4B,CAAC,EAAmB,EAAE,EAAE;QAAvB,EAAE,KAAK,OAAY,EAAP,KAAK,sBAAjB,SAAmB,CAAF;IAAO,OAAA,CAC5E,uBAAC,mBAAQ,kBAAC,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,uBAAuB,IAAM,KAAK,cAC1D,uBAAC,mBAAQ,KAAG,IACH,CACZ,CAAA;CAAA,CAAA;AAJY,QAAA,YAAY,gBAIxB"}
@@ -1 +1,2 @@
1
1
  export * from './NotFound';
2
+ export * from './NotFoundPage';
@@ -2,4 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./NotFound"), exports);
5
+ tslib_1.__exportStar(require("./NotFoundPage"), exports);
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NotFound/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NotFound/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,yDAA8B"}
@@ -9,16 +9,19 @@ const react_1 = require("react");
9
9
  const findParent_1 = require("./findParent");
10
10
  const getRemainingRowWidth_1 = require("./getRemainingRowWidth");
11
11
  const getSmallestParentWidth_1 = require("./getSmallestParentWidth");
12
- const TableCellValue = ({ value, hashCellWidth }) => ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", fontFamily: "monospace", style: {
13
- display: 'block',
14
- overflow: 'hidden',
15
- textOverflow: 'ellipsis',
16
- whiteSpace: 'nowrap',
17
- width: hashCellWidth,
18
- } }, { children: value })));
12
+ const TableCellValue = ({ value, hashCellWidth }) => {
13
+ console.log(`hashCellWidth: ${hashCellWidth}`);
14
+ return ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", fontFamily: "monospace", style: {
15
+ display: 'block',
16
+ overflow: 'hidden',
17
+ textOverflow: 'ellipsis',
18
+ whiteSpace: 'nowrap',
19
+ width: hashCellWidth,
20
+ } }, { children: value })));
21
+ };
19
22
  const EllipsisTableCell = (_a) => {
20
23
  var { value, to, href } = _a, props = tslib_1.__rest(_a, ["value", "to", "href"]);
21
- const [hashCellWidth, setHashCellWidth] = (0, react_1.useState)();
24
+ const [hashCellWidth, setHashCellWidth] = (0, react_1.useState)(0);
22
25
  const hashDivRef = (0, react_1.useRef)(null);
23
26
  const theme = (0, material_1.useTheme)();
24
27
  const spacing = parseInt(theme.spacing(2).substring(-2));
@@ -31,12 +34,7 @@ const EllipsisTableCell = (_a) => {
31
34
  const smallestParentWidth = (0, getSmallestParentWidth_1.getSmallestParentWidth)(cell);
32
35
  if (smallestParentWidth && row) {
33
36
  const remainderWidth = smallestParentWidth - (0, getRemainingRowWidth_1.getRemainingRowWidth)(row) - spacing;
34
- if (cell.clientWidth > remainderWidth) {
35
- setHashCellWidth(remainderWidth);
36
- }
37
- else if (hashCellWidth === undefined) {
38
- setHashCellWidth(cell.clientWidth);
39
- }
37
+ setHashCellWidth(remainderWidth);
40
38
  }
41
39
  };
42
40
  const onResize = () => {
@@ -51,7 +49,6 @@ const EllipsisTableCell = (_a) => {
51
49
  return () => {
52
50
  window.removeEventListener('resize', onResize);
53
51
  };
54
- // eslint-disable-next-line react-hooks/exhaustive-deps
55
52
  }, [hashDivRef, spacing]);
56
53
  return ((0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ ref: hashDivRef }, { children: href || to ? ((0, jsx_runtime_1.jsx)(sdk_react_1.LinkEx, Object.assign({ to: to, href: href, target: href ? '_blank' : undefined }, { children: (0, jsx_runtime_1.jsx)(TableCellValue, { hashCellWidth: hashCellWidth, value: value }) }))) : ((0, jsx_runtime_1.jsx)(TableCellValue, { hashCellWidth: hashCellWidth, value: value })) })) })));
57
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EllipsisTableCell.js","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA+E;AAC/E,iDAA0C;AAC1C,iCAAmD;AAGnD,6CAAyC;AACzC,iEAA6D;AAC7D,qEAAiE;AAOjE,MAAM,cAAc,GAAkC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CAClF,uBAAC,qBAAU,kBACT,OAAO,EAAC,OAAO,EACf,UAAU,EAAC,WAAW,EACtB,KAAK,EAAE;QACL,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,aAAa;KACrB,gBAEA,KAAK,IACK,CACd,CAAA;AAQM,MAAM,iBAAiB,GAAqC,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,OAAY,EAAP,KAAK,sBAA3B,uBAA6B,CAAF;IAC7F,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,GAAU,CAAA;IAC5D,MAAM,UAAU,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAA;IAE/C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACxB,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAExD,IAAA,iBAAS,EAAC,GAAG,EAAE;;QACb,MAAM,cAAc,GAAG,MAAA,UAAU,CAAC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B,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CACZ,uBAAC,kBAAM,kBAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gBAC7D,uBAAC,cAAc,IAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAI,IACvD,CACV,CAAC,CAAC,CAAC,CACF,uBAAC,cAAc,IAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAI,CAC/D,IACG,IACI,CACb,CAAA;AACH,CAAC,CAAA;AAhDY,QAAA,iBAAiB,qBAgD7B"}
@@ -1 +1,2 @@
1
+ /** @description This is the width of all the cells (except the one passed) in the row combined */
1
2
  export declare const getRemainingRowWidth: (row: HTMLElement, forCell?: number) => number;
@@ -1,25 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRemainingRowWidth = void 0;
4
- const getPadding = (item) => {
5
- var _a, _b, _c, _d;
6
- const computedStyles = window.getComputedStyle(item, null);
7
- return (parseInt((_b = (_a = computedStyles === null || computedStyles === void 0 ? void 0 : computedStyles.getPropertyValue('padding-left')) === null || _a === void 0 ? void 0 : _a.replaceAll('px', '')) !== null && _b !== void 0 ? _b : 0) + parseInt((_d = (_c = computedStyles === null || computedStyles === void 0 ? void 0 : computedStyles.getPropertyValue('padding-right')) === null || _c === void 0 ? void 0 : _c.replaceAll('px', '')) !== null && _d !== void 0 ? _d : 0));
8
- };
4
+ /** @description This is the width of all the cells (except the one passed) in the row combined */
9
5
  const getRemainingRowWidth = (row, forCell = 0) => {
10
6
  var _a, _b;
11
7
  let width = 0;
12
- let padding = 0;
13
8
  for (let i = 0; i < ((_a = row === null || row === void 0 ? void 0 : row.childElementCount) !== null && _a !== void 0 ? _a : 0); i++) {
14
9
  const item = row === null || row === void 0 ? void 0 : row.children.item(i);
15
10
  if (item) {
16
11
  if (i !== forCell) {
17
- width += (_b = item === null || item === void 0 ? void 0 : item.clientWidth) !== null && _b !== void 0 ? _b : 0;
12
+ const boundingRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
13
+ console.log(`getRemainingRowWidth:rect: ${boundingRect === null || boundingRect === void 0 ? void 0 : boundingRect.width}`);
14
+ width += (_b = boundingRect === null || boundingRect === void 0 ? void 0 : boundingRect.width) !== null && _b !== void 0 ? _b : 0;
18
15
  }
19
- padding += getPadding(item);
20
16
  }
21
17
  }
22
- return width + padding;
18
+ return width;
23
19
  };
24
20
  exports.getRemainingRowWidth = getRemainingRowWidth;
25
21
  //# sourceMappingURL=getRemainingRowWidth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRemainingRowWidth.js","sourceRoot":"","sources":["../../../../src/components/TableCell/getRemainingRowWidth.ts"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GAAG,CAAC,IAAa,EAAE,EAAE;;IACnC,MAAM,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1D,OAAO,CACL,QAAQ,CAAC,MAAA,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC,cAAc,CAAC,0CAAE,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,mCAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAA,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC,eAAe,CAAC,0CAAE,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,mCAAI,CAAC,CAAC,CAC/K,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,oBAAoB,GAAG,CAAC,GAAgB,EAAE,OAAO,GAAG,CAAC,EAAE,EAAE;;IACpE,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,IAAI,OAAO,GAAG,CAAC,CAAA;IACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG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AAA;gBAChE,KAAK,IAAI,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,mCAAI,CAAC,CAAA;aAClC;SACF;KACF;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAdY,QAAA,oBAAoB,wBAchC"}
@@ -4,7 +4,7 @@ exports.getSmallestParentWidth = void 0;
4
4
  const getSmallestParentWidth = (element, maxDepth = 4) => {
5
5
  var _a, _b, _c;
6
6
  let currentElement = element === null || element === void 0 ? void 0 : element.parentElement;
7
- let width = (_a = currentElement === null || currentElement === void 0 ? void 0 : currentElement.clientWidth) !== null && _a !== void 0 ? _a : 1024;
7
+ let width = (_a = currentElement === null || currentElement === void 0 ? void 0 : currentElement.clientWidth) !== null && _a !== void 0 ? _a : screen.width;
8
8
  let maxDepthCounter = maxDepth;
9
9
  while (currentElement && maxDepthCounter > 0) {
10
10
  if (width > ((_b = currentElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b['width'])) {
@@ -1 +1 @@
1
- {"version":3,"file":"getSmallestParentWidth.js","sourceRoot":"","sources":["../../../../src/components/TableCell/getSmallestParentWidth.ts"],"names":[],"mappings":";;;AAAO,MAAM,sBAAsB,GAAG,CAAC,OAAoB,EAAE,QAAQ,GAAG,CAAC,EAAE,EAAE;;IAC3E,IAAI,cAAc,GAAuB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAA;IAC/D,IAAI,KAAK,GAAG,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW,mCAAI,IAAI,CAAA;IAC/C,IAAI,eAAe,GAAG,QAAQ,CAAA;IAC9B,OAAO,cAAc,IAAI,eAAe,GAAG,CAAC,EAAE;QAC5C,IAAI,KAAK,IAAG,MAAA,cAAc,CAAC,qBAAqB,EAAE,0CAAG,OAAO,CAAC,CAAA,EAAE;YAC7D,KAAK,GAAG,MAAA,cAAc,CAAC,qBAAqB,EAAE,0CAAG,OAAO,CAAC,CAAA;SAC1D;QACD,cAAc,GAAG,cAAc,CAAC,aAAa,CAAA;QAC7C,eAAe,EAAE,CAAA;KAClB;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAZY,QAAA,sBAAsB,0BAYlC"}
1
+ {"version":3,"file":"getSmallestParentWidth.js","sourceRoot":"","sources":["../../../../src/components/TableCell/getSmallestParentWidth.ts"],"names":[],"mappings":";;;AAAO,MAAM,sBAAsB,GAAG,CAAC,OAAoB,EAAE,QAAQ,GAAG,CAAC,EAAE,EAAE;;IAC3E,IAAI,cAAc,GAAuB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAA;IAC/D,IAAI,KAAK,GAAG,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW,mCAAI,MAAM,CAAC,KAAK,CAAA;IACvD,IAAI,eAAe,GAAG,QAAQ,CAAA;IAC9B,OAAO,cAAc,IAAI,eAAe,GAAG,CAAC,EAAE;QAC5C,IAAI,KAAK,IAAG,MAAA,cAAc,CAAC,qBAAqB,EAAE,0CAAG,OAAO,CAAC,CAAA,EAAE;YAC7D,KAAK,GAAG,MAAA,cAAc,CAAC,qBAAqB,EAAE,0CAAG,OAAO,CAAC,CAAA;SAC1D;QACD,cAAc,GAAG,cAAc,CAAC,aAAa,CAAA;QAC7C,eAAe,EAAE,CAAA;KAClB;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAZY,QAAA,sBAAsB,0BAYlC"}
@@ -1,6 +1,9 @@
1
1
  export * from './Ampersand';
2
2
  export * from './BasicHero';
3
3
  export * from './DarkModeIconButton';
4
+ export * from './ErrorBoundry';
5
+ export * from './ErrorPage';
6
+ export * from './FlexPage';
4
7
  export * from './Footer';
5
8
  export * from './FullWidthCard';
6
9
  export * from './GradientText';
@@ -4,6 +4,9 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Ampersand"), exports);
5
5
  tslib_1.__exportStar(require("./BasicHero"), exports);
6
6
  tslib_1.__exportStar(require("./DarkModeIconButton"), exports);
7
+ tslib_1.__exportStar(require("./ErrorBoundry"), exports);
8
+ tslib_1.__exportStar(require("./ErrorPage"), exports);
9
+ tslib_1.__exportStar(require("./FlexPage"), exports);
7
10
  tslib_1.__exportStar(require("./Footer"), exports);
8
11
  tslib_1.__exportStar(require("./FullWidthCard"), exports);
9
12
  tslib_1.__exportStar(require("./GradientText"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B;AAC3B,sDAA2B;AAC3B,+DAAoC;AACpC,mDAAwB;AACxB,0DAA+B;AAC/B,yDAA8B;AAC9B,6DAAkC;AAClC,qDAA0B;AAC1B,iDAAsB;AACtB,4DAAiC;AACjC,8DAAmC;AACnC,uDAA4B;AAC5B,sDAA2B;AAC3B,0DAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B;AAC3B,sDAA2B;AAC3B,+DAAoC;AACpC,yDAA8B;AAC9B,sDAA2B;AAC3B,qDAA0B;AAC1B,mDAAwB;AACxB,0DAA+B;AAC/B,yDAA8B;AAC9B,6DAAkC;AAClC,qDAA0B;AAC1B,iDAAsB;AACtB,4DAAiC;AACjC,8DAAmC;AACnC,uDAA4B;AAC5B,sDAA2B;AAC3B,0DAA+B"}
@@ -5,7 +5,7 @@ const appSettingDefault_1 = require("./appSettingDefault");
5
5
  const Slug_1 = require("./Slug");
6
6
  const StorageBase_1 = require("./StorageBase");
7
7
  class AppSettingsStorage extends StorageBase_1.AppSettingsStorageBase {
8
- constructor(prefix = 'XyoAppSettings', defaults) {
8
+ constructor(prefix = 'AppSettings', defaults) {
9
9
  super(prefix, Object.assign(Object.assign({}, (0, appSettingDefault_1.appSettingDefault)()), defaults));
10
10
  }
11
11
  get darkMode() {
@@ -1 +1 @@
1
- {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../../src/contexts/AppSettings/Storage.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,iCAAuC;AACvC,+CAAsD;AAEtD,MAAa,kBAAmB,SAAQ,oCAAsB;IAC5D,YAAY,MAAM,GAAG,gBAAgB,EAAE,QAAkC;QACvE,KAAK,CAAC,MAAM,kCAAO,IAAA,qCAAiB,GAAE,GAAK,QAAQ,EAAG,CAAA;IACxD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAc,CAAC,QAAQ,CAAC,CAAA;IACjD,CAAC;IAED,IAAI,QAAQ,CAAC,KAAc;QACzB,IAAI,CAAC,UAAU,CAAC,qBAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IACjD,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAc,CAAC,SAAS,CAAC,CAAA;IAClD,CAAC;IAED,IAAI,aAAa,CAAC,KAAc;QAC9B,IAAI,CAAC,UAAU,CAAC,qBAAc,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;IAClD,CAAC;CACF;AApBD,gDAoBC"}
1
+ {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../../src/contexts/AppSettings/Storage.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,iCAAuC;AACvC,+CAAsD;AAEtD,MAAa,kBAAmB,SAAQ,oCAAsB;IAC5D,YAAY,MAAM,GAAG,aAAa,EAAE,QAAkC;QACpE,KAAK,CAAC,MAAM,kCAAO,IAAA,qCAAiB,GAAE,GAAK,QAAQ,EAAG,CAAA;IACxD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAc,CAAC,QAAQ,CAAC,CAAA;IACjD,CAAC;IAED,IAAI,QAAQ,CAAC,KAAc;QACzB,IAAI,CAAC,UAAU,CAAC,qBAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IACjD,CAAC;IAED,IAAI,aAAa;QACf,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