@codezee/sixtify-brahma 0.2.156 → 0.2.158

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 (52) hide show
  1. package/package.json +1 -1
  2. package/packages/shared-components/dist/AgGrid/ActionCell/ActionButtonsWrapper.d.ts +7 -0
  3. package/packages/shared-components/dist/AgGrid/ActionCell/ActionButtonsWrapper.d.ts.map +1 -0
  4. package/packages/shared-components/dist/AgGrid/ActionCell/ActionButtonsWrapper.js +122 -0
  5. package/packages/shared-components/dist/AgGrid/ActionCell/ActionCell.d.ts +1 -1
  6. package/packages/shared-components/dist/AgGrid/ActionCell/ActionCell.d.ts.map +1 -1
  7. package/packages/shared-components/dist/AgGrid/ActionCell/ActionCell.js +15 -11
  8. package/packages/shared-components/dist/AgGrid/ActionCell/index.d.ts +3 -0
  9. package/packages/shared-components/dist/AgGrid/ActionCell/index.d.ts.map +1 -0
  10. package/packages/shared-components/dist/AgGrid/ActionCell/index.js +18 -0
  11. package/packages/shared-components/dist/AgGrid/AgGrid.d.ts +1 -1
  12. package/packages/shared-components/dist/AgGrid/AgGrid.d.ts.map +1 -1
  13. package/packages/shared-components/dist/AgGrid/AgGrid.js +2 -5
  14. package/packages/shared-components/dist/AgGrid/RedirectionCell/ClickableCell.d.ts +12 -0
  15. package/packages/shared-components/dist/AgGrid/RedirectionCell/ClickableCell.d.ts.map +1 -0
  16. package/packages/shared-components/dist/AgGrid/RedirectionCell/ClickableCell.js +28 -0
  17. package/packages/shared-components/dist/AgGrid/RedirectionCell/RedirectionCell.d.ts +13 -0
  18. package/packages/shared-components/dist/AgGrid/RedirectionCell/RedirectionCell.d.ts.map +1 -0
  19. package/packages/shared-components/dist/AgGrid/RedirectionCell/RedirectionCell.js +31 -0
  20. package/packages/shared-components/dist/AgGrid/RedirectionCell/index.d.ts +3 -0
  21. package/packages/shared-components/dist/AgGrid/RedirectionCell/index.d.ts.map +1 -0
  22. package/packages/shared-components/dist/AgGrid/RedirectionCell/index.js +18 -0
  23. package/packages/shared-components/dist/AgGrid/hooks/index.d.ts +3 -3
  24. package/packages/shared-components/dist/AgGrid/hooks/index.d.ts.map +1 -1
  25. package/packages/shared-components/dist/AgGrid/hooks/index.js +3 -3
  26. package/packages/shared-components/dist/AgGrid/hooks/useAgGridRowSelectionConfig.d.ts.map +1 -1
  27. package/packages/shared-components/dist/AgGrid/hooks/useAgGridRowSelectionConfig.js +2 -0
  28. package/packages/shared-components/dist/AgGrid/hooks/useCellEnterClick.d.ts +8 -0
  29. package/packages/shared-components/dist/AgGrid/hooks/useCellEnterClick.d.ts.map +1 -0
  30. package/packages/shared-components/dist/AgGrid/hooks/useCellEnterClick.js +39 -0
  31. package/packages/shared-components/dist/AgGrid/index.d.ts +4 -3
  32. package/packages/shared-components/dist/AgGrid/index.d.ts.map +1 -1
  33. package/packages/shared-components/dist/AgGrid/index.js +4 -3
  34. package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  35. package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.js +8 -4
  36. package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts.map +1 -1
  37. package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.js +145 -54
  38. package/packages/shared-components/dist/FormFields/FileUpload/FileUpload.d.ts.map +1 -1
  39. package/packages/shared-components/dist/FormFields/FileUpload/FileUpload.js +14 -9
  40. package/packages/shared-components/dist/FormFields/ImageUpload/ImageUpload.d.ts.map +1 -1
  41. package/packages/shared-components/dist/FormFields/ImageUpload/ImageUpload.js +19 -6
  42. package/packages/shared-components/dist/FormFields/PhoneInputField/PhoneInputField.d.ts.map +1 -1
  43. package/packages/shared-components/dist/FormFields/PhoneInputField/PhoneInputField.js +26 -11
  44. package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.d.ts.map +1 -1
  45. package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.js +13 -16
  46. package/packages/shared-components/dist/utils/hooks/useFormFieldFocus.d.ts.map +1 -1
  47. package/packages/shared-components/dist/utils/hooks/useFormFieldFocus.js +71 -3
  48. package/packages/shared-components/dist/utils/hooks/useGlobalKeyboardShortcut.d.ts.map +1 -1
  49. package/packages/shared-components/dist/utils/hooks/useGlobalKeyboardShortcut.js +27 -0
  50. package/packages/shared-components/dist/AgGrid/hooks/useAgGridFocusManagement.d.ts +0 -2
  51. package/packages/shared-components/dist/AgGrid/hooks/useAgGridFocusManagement.d.ts.map +0 -1
  52. package/packages/shared-components/dist/AgGrid/hooks/useAgGridFocusManagement.js +0 -105
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.156",
3
+ "version": "0.2.158",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -0,0 +1,7 @@
1
+ type ActionButtonsWrapperProps = {
2
+ readonly children: React.ReactNode;
3
+ readonly disabled?: boolean;
4
+ };
5
+ export declare function ActionButtonsWrapper({ children, disabled, }: Readonly<ActionButtonsWrapperProps>): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=ActionButtonsWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionButtonsWrapper.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/ActionCell/ActionButtonsWrapper.tsx"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,QAAQ,GACT,EAAE,QAAQ,CAAC,yBAAyB,CAAC,2CA8LrC"}
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActionButtonsWrapper = ActionButtonsWrapper;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ function ActionButtonsWrapper({ children, disabled, }) {
7
+ const containerRef = (0, react_1.useRef)(null);
8
+ (0, react_1.useEffect)(() => {
9
+ const container = containerRef.current;
10
+ if (!container || disabled) {
11
+ return;
12
+ }
13
+ const getAllButtons = () => {
14
+ return Array.from(container.querySelectorAll("button, [role='button'], [tabindex='0']"));
15
+ };
16
+ const handleCellKeyDown = (event) => {
17
+ if (event.key !== "Enter" ||
18
+ event.shiftKey ||
19
+ event.ctrlKey ||
20
+ event.metaKey ||
21
+ event.altKey ||
22
+ disabled) {
23
+ return;
24
+ }
25
+ const activeElement = document.activeElement;
26
+ const cell = activeElement?.closest(".ag-cell");
27
+ if (!cell || !container || !cell.contains(container)) {
28
+ return;
29
+ }
30
+ const isEditing = cell.classList.contains("ag-cell-inline-editing");
31
+ if (isEditing) {
32
+ return;
33
+ }
34
+ const focusedButton = container.querySelector("button:focus, [role='button']:focus, [tabindex='0']:focus");
35
+ if (focusedButton) {
36
+ focusedButton.click();
37
+ event.preventDefault();
38
+ event.stopPropagation();
39
+ return;
40
+ }
41
+ const firstButton = container.querySelector("button, [role='button'], [tabindex='0']");
42
+ if (firstButton) {
43
+ event.preventDefault();
44
+ event.stopPropagation();
45
+ firstButton.focus();
46
+ }
47
+ };
48
+ const handleEnterOrSpace = (event, target) => {
49
+ if ((event.key === "Enter" || event.key === " ") &&
50
+ (target.tagName === "BUTTON" ||
51
+ (target.hasAttribute("role") &&
52
+ target.getAttribute("role") === "button"))) {
53
+ event.preventDefault();
54
+ event.stopPropagation();
55
+ target.click();
56
+ }
57
+ };
58
+ const handleTabForward = (event, target, allButtons, currentIndex) => {
59
+ const isLastButton = currentIndex === allButtons.length - 1;
60
+ if (isLastButton) {
61
+ event.preventDefault();
62
+ event.stopPropagation();
63
+ target.blur();
64
+ const agCell = container.closest(".ag-cell");
65
+ if (agCell) {
66
+ agCell.focus();
67
+ }
68
+ return;
69
+ }
70
+ const nextButton = allButtons[currentIndex + 1];
71
+ if (nextButton) {
72
+ event.preventDefault();
73
+ event.stopPropagation();
74
+ nextButton.focus();
75
+ }
76
+ };
77
+ const handleTabBackward = (event, target, allButtons, currentIndex) => {
78
+ const isFirstButton = currentIndex === 0;
79
+ if (isFirstButton) {
80
+ event.preventDefault();
81
+ event.stopPropagation();
82
+ target.blur();
83
+ const agCell = container.closest(".ag-cell");
84
+ if (agCell) {
85
+ agCell.focus();
86
+ }
87
+ return;
88
+ }
89
+ const previousButton = allButtons[currentIndex - 1];
90
+ if (previousButton) {
91
+ event.preventDefault();
92
+ event.stopPropagation();
93
+ previousButton.focus();
94
+ }
95
+ };
96
+ const handleButtonKeyDown = (event) => {
97
+ const target = event.target;
98
+ if (!container?.contains(target)) {
99
+ return;
100
+ }
101
+ const allButtons = getAllButtons();
102
+ const currentIndex = allButtons.indexOf(target);
103
+ handleEnterOrSpace(event, target);
104
+ if (event.key === "Tab" && !event.shiftKey && currentIndex !== -1) {
105
+ handleTabForward(event, target, allButtons, currentIndex);
106
+ }
107
+ if (event.key === "Tab" && event.shiftKey && currentIndex !== -1) {
108
+ handleTabBackward(event, target, allButtons, currentIndex);
109
+ }
110
+ };
111
+ const cell = container.closest(".ag-cell");
112
+ if (cell) {
113
+ cell.addEventListener("keydown", handleCellKeyDown, true);
114
+ container.addEventListener("keydown", handleButtonKeyDown);
115
+ return () => {
116
+ cell.removeEventListener("keydown", handleCellKeyDown, true);
117
+ container.removeEventListener("keydown", handleButtonKeyDown);
118
+ };
119
+ }
120
+ }, [disabled]);
121
+ return ((0, jsx_runtime_1.jsx)("div", { ref: containerRef, style: { display: "contents" }, children: children }));
122
+ }
@@ -7,6 +7,6 @@ type ActionColumnProps = {
7
7
  items: AgGridActionColumn[];
8
8
  disabled?: boolean;
9
9
  };
10
- export declare const ActionCell: ({ items, disabled }: ActionColumnProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ActionCell: ({ items, disabled }: ActionColumnProps) => import("react/jsx-runtime").JSX.Element | null;
11
11
  export {};
12
12
  //# sourceMappingURL=ActionCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionCell.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/ActionCell/ActionCell.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,qBAAqB,iBAAiB,4CA6ChE,CAAC"}
1
+ {"version":3,"file":"ActionCell.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/ActionCell/ActionCell.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,qBAAqB,iBAAiB,mDAqDhE,CAAC"}
@@ -10,19 +10,23 @@ const material_1 = require("@mui/material");
10
10
  const react_1 = require("react");
11
11
  const PadBox_1 = require("../../PadBox");
12
12
  const Popover_1 = require("./Popover");
13
+ const useCellEnterClick_1 = require("../hooks/useCellEnterClick");
13
14
  const ActionCell = ({ items, disabled }) => {
14
15
  const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
15
- const HandleClose = () => {
16
- setAnchorEl(null);
16
+ const buttonRef = (0, react_1.useRef)(null);
17
+ const handleClose = () => setAnchorEl(null);
18
+ const handleClick = (event) => {
19
+ if (!disabled) {
20
+ setAnchorEl(event.currentTarget);
21
+ }
17
22
  };
18
- const HandleClick = (event) => {
19
- setAnchorEl(event.currentTarget);
20
- };
21
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: "100%" }, children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { component: "div", sx: { cursor: "pointer", alignItems: "center", width: "100%" }, onClick: HandleClick, disabled: disabled, children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), !!anchorEl && ((0, jsx_runtime_1.jsx)(Popover_1.Popover, { open: true, anchorEl: anchorEl, onClose: HandleClose, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "2px" }, children: items.map((item) => {
22
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { sx: { width: "100%", textAlign: "start" }, onClick: () => {
23
- item?.onClick();
24
- setAnchorEl(null);
25
- }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: item.title }) }) }, item.title));
26
- }) }) }))] }));
23
+ (0, useCellEnterClick_1.useCellEnterClick)({ buttonRef, disabled, popoverOpen: !!anchorEl });
24
+ if (!items || items.length === 0) {
25
+ return null;
26
+ }
27
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: "100%" }, children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { ref: buttonRef, component: "div", sx: { width: "100%", cursor: "pointer", alignItems: "center" }, onClick: handleClick, disabled: disabled, "data-clickable": "true", children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), anchorEl && ((0, jsx_runtime_1.jsx)(Popover_1.Popover, { open: true, anchorEl: anchorEl, onClose: handleClose, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "2px" }, children: items.map((item) => ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { sx: { width: "100%", textAlign: "start" }, onClick: () => {
28
+ item.onClick();
29
+ handleClose();
30
+ }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: item.title }) }) }, item.title))) }) }))] }));
27
31
  };
28
32
  exports.ActionCell = ActionCell;
@@ -0,0 +1,3 @@
1
+ export * from "./ActionCell";
2
+ export * from "./ActionButtonsWrapper";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/ActionCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ActionCell"), exports);
18
+ __exportStar(require("./ActionButtonsWrapper"), exports);
@@ -4,7 +4,7 @@ import { AgGridReact } from "ag-grid-react";
4
4
  import type { Ref } from "react";
5
5
  import "./registerAgGridModules";
6
6
  export declare const showNoRowsOverlay: (api: GridApi<unknown>) => void;
7
- export declare const defaultPageSize = 50;
7
+ export declare const defaultPageSize = 100;
8
8
  export declare const pageSizeOptions: number[];
9
9
  export type AgGridProps<T = unknown> =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lay_1 = require("./LoadingOverlay");
12
12
  const NoDataOverlay_1 = require("./NoDataOverlay");
13
13
  require("./registerAgGridModules");
14
- const useAgGridFocusManagement_1 = require("./hooks/useAgGridFocusManagement");
15
14
  const hideNoRowsOverlay = (api) => {
16
15
  if (!api) {
17
16
  return;
@@ -32,7 +31,7 @@ const showNoRowsOverlay = (api) => {
32
31
  }
33
32
  };
34
33
  exports.showNoRowsOverlay = showNoRowsOverlay;
35
- exports.defaultPageSize = 50;
34
+ exports.defaultPageSize = 100;
36
35
  exports.pageSizeOptions = [20, 50, 100, 200];
37
36
  exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
38
37
  const { layout } = (0, utils_1.useGetDeviceType)();
@@ -147,9 +146,7 @@ exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
147
146
  }
148
147
  }
149
148
  }, [onFilterChanged, rowModelType, updateNoRowsOverlay]);
150
- const gridContainerRef = (0, react_1.useRef)(null);
151
- (0, useAgGridFocusManagement_1.useAgGridFocusManagement)(gridContainerRef);
152
- return ((0, jsx_runtime_1.jsxs)(AgGridStyleProvider_1.AgGridStyleProvider, { ref: gridContainerRef, className: "ag-theme-quartz ", style: { width: "100%", height, position: "relative" }, children: [(0, jsx_runtime_1.jsx)(ag_grid_react_1.AgGridReact, { ref: ref, theme: "legacy", cacheBlockSize: cacheBlockSize, defaultColDef: {
149
+ return ((0, jsx_runtime_1.jsxs)(AgGridStyleProvider_1.AgGridStyleProvider, { className: "ag-theme-quartz ", style: { width: "100%", height, position: "relative" }, children: [(0, jsx_runtime_1.jsx)(ag_grid_react_1.AgGridReact, { ref: ref, theme: "legacy", cacheBlockSize: cacheBlockSize, defaultColDef: {
153
150
  ...defaultColumnDef,
154
151
  floatingFilter: enableSecondRowFilter,
155
152
  suppressFloatingFilterButton: enableSecondRowFilter,
@@ -0,0 +1,12 @@
1
+ import type { MouseEvent, ReactNode } from "react";
2
+ type ClickableCellProps = {
3
+ children: ReactNode;
4
+ onClick?: (event: MouseEvent<HTMLElement>) => void;
5
+ onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ sx?: object;
9
+ };
10
+ export declare const ClickableCell: ({ children, onClick, onMouseDown, disabled, className, sx, }: ClickableCellProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=ClickableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClickableCell.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/RedirectionCell/ClickableCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnD,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,8DAO3B,kBAAkB,4CAoCpB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClickableCell = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const ClickableCell = ({ children, onClick, onMouseDown, disabled = false, className, sx, }) => {
7
+ const handleClick = (event) => {
8
+ if (disabled) {
9
+ return;
10
+ }
11
+ onClick?.(event);
12
+ };
13
+ const handleMouseDown = (event) => {
14
+ if (disabled) {
15
+ return;
16
+ }
17
+ onMouseDown?.(event);
18
+ };
19
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { component: "div", "data-clickable": !disabled ? "true" : undefined, onClick: onClick ? handleClick : undefined, onMouseDown: onMouseDown ? handleMouseDown : undefined, className: className, sx: {
20
+ width: "100%",
21
+ height: "100%",
22
+ display: "flex",
23
+ alignItems: "center",
24
+ cursor: !disabled && (onClick || onMouseDown) ? "pointer" : "default",
25
+ ...sx,
26
+ }, children: children }));
27
+ };
28
+ exports.ClickableCell = ClickableCell;
@@ -0,0 +1,13 @@
1
+ import type { MouseEvent } from "react";
2
+ type RedirectionCellProps = {
3
+ mainLabel: string;
4
+ onClick: (event: MouseEvent<HTMLElement>) => void;
5
+ includeSubLabel?: boolean;
6
+ subLabel?: string;
7
+ avatar?: string;
8
+ includeAvatar?: boolean;
9
+ disabled?: boolean;
10
+ };
11
+ export declare const RedirectionCell: ({ mainLabel, onClick, includeSubLabel, subLabel, avatar, includeAvatar, disabled, }: RedirectionCellProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=RedirectionCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedirectionCell.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/RedirectionCell/RedirectionCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKxC,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,qFAQ7B,oBAAoB,4CAkEtB,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RedirectionCell = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_1 = require("react");
7
+ const useCellEnterClick_1 = require("../hooks/useCellEnterClick");
8
+ const ClickableCell_1 = require("./ClickableCell");
9
+ const RedirectionCell = ({ mainLabel, onClick, includeSubLabel = false, subLabel, avatar, includeAvatar = false, disabled = false, }) => {
10
+ const theme = (0, material_1.useTheme)();
11
+ const { butterflyBlue, black } = theme.palette.app.color;
12
+ const cellRef = (0, react_1.useRef)(null);
13
+ (0, useCellEnterClick_1.useCellEnterClick)({
14
+ buttonRef: cellRef,
15
+ disabled,
16
+ });
17
+ const handleClick = (event) => {
18
+ if (!disabled) {
19
+ onClick(event);
20
+ }
21
+ };
22
+ return ((0, jsx_runtime_1.jsx)(ClickableCell_1.ClickableCell, { onClick: onClick, disabled: disabled, children: (0, jsx_runtime_1.jsx)(material_1.Box, { ref: cellRef, component: "div", onClick: handleClick, sx: { width: "100%" }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "5px", alignItems: "center", sx: { width: "100%" }, children: [includeAvatar && ((0, jsx_runtime_1.jsx)(material_1.Avatar, { src: avatar ?? "", alt: "Photo", sx: { width: 28, height: 28 } })), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: {
23
+ width: "100%",
24
+ color: disabled ? black[900] : butterflyBlue[900],
25
+ }, onMouseDown: (e) => {
26
+ if (!disabled) {
27
+ onClick(e);
28
+ }
29
+ }, children: mainLabel }), includeSubLabel && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", color: butterflyBlue[400], children: subLabel ?? "-" }))] })] }) }) }));
30
+ };
31
+ exports.RedirectionCell = RedirectionCell;
@@ -0,0 +1,3 @@
1
+ export * from "./RedirectionCell";
2
+ export * from "./ClickableCell";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/RedirectionCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RedirectionCell"), exports);
18
+ __exportStar(require("./ClickableCell"), exports);
@@ -1,7 +1,7 @@
1
1
  export * from "./useAgGridCheckBoxSelection";
2
- export * from "./useAgGridSummaryRow";
3
- export * from "./useAgGridSummaryRowUpdate";
4
- export * from "./useAgGridRowSelectionConfig";
5
2
  export * from "./useAgGridFilteredData";
6
3
  export * from "./useAgGridKeyboardShortcuts";
4
+ export * from "./useAgGridRowSelectionConfig";
5
+ export * from "./useAgGridSummaryRow";
6
+ export * from "./useAgGridSummaryRowUpdate";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./useAgGridCheckBoxSelection"), exports);
18
- __exportStar(require("./useAgGridSummaryRow"), exports);
19
- __exportStar(require("./useAgGridSummaryRowUpdate"), exports);
20
- __exportStar(require("./useAgGridRowSelectionConfig"), exports);
21
18
  __exportStar(require("./useAgGridFilteredData"), exports);
22
19
  __exportStar(require("./useAgGridKeyboardShortcuts"), exports);
20
+ __exportStar(require("./useAgGridRowSelectionConfig"), exports);
21
+ __exportStar(require("./useAgGridSummaryRow"), exports);
22
+ __exportStar(require("./useAgGridSummaryRowUpdate"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"useAgGridRowSelectionConfig.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/hooks/useAgGridRowSelectionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAG3B,KAAK,+BAA+B,CAAC,KAAK,IAAI;IAC5C,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,iBAAiB,CAAC,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,KAAK,EAAE,wDAIhD,+BAA+B,CAAC,KAAK,CAAC;;;CAqExC,CAAC"}
1
+ {"version":3,"file":"useAgGridRowSelectionConfig.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/hooks/useAgGridRowSelectionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAG3B,KAAK,+BAA+B,CAAC,KAAK,IAAI;IAC5C,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,iBAAiB,CAAC,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,KAAK,EAAE,wDAIhD,+BAA+B,CAAC,KAAK,CAAC;;;CAuExC,CAAC"}
@@ -34,6 +34,7 @@ const useAgGridRowSelectionConfig = ({ columnDefs, enableClickSelection = false,
34
34
  }
35
35
  return {
36
36
  headerName: "",
37
+ colId: "id",
37
38
  width: 1,
38
39
  minWidth: 1,
39
40
  maxWidth: 1,
@@ -46,6 +47,7 @@ const useAgGridRowSelectionConfig = ({ columnDefs, enableClickSelection = false,
46
47
  suppressSizeToFit: true,
47
48
  resizable: false,
48
49
  sortable: false,
50
+ hide: true,
49
51
  filter: false,
50
52
  suppressHeaderKeyboardEvent: () => true,
51
53
  suppressKeyboardEvent: () => true,
@@ -0,0 +1,8 @@
1
+ type UseCellEnterClickArgs = {
2
+ buttonRef: React.RefObject<HTMLElement>;
3
+ disabled?: boolean;
4
+ popoverOpen?: boolean;
5
+ };
6
+ export declare function useCellEnterClick({ buttonRef, disabled, popoverOpen, }: UseCellEnterClickArgs): void;
7
+ export {};
8
+ //# sourceMappingURL=useCellEnterClick.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCellEnterClick.d.ts","sourceRoot":"","sources":["../../../src/AgGrid/hooks/useCellEnterClick.ts"],"names":[],"mappings":"AAEA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,WAAW,GACZ,EAAE,qBAAqB,QAuDvB"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCellEnterClick = useCellEnterClick;
4
+ const react_1 = require("react");
5
+ function useCellEnterClick({ buttonRef, disabled, popoverOpen, }) {
6
+ (0, react_1.useEffect)(() => {
7
+ const handleKeyDown = (event) => {
8
+ if (event.key !== "Enter" ||
9
+ event.shiftKey ||
10
+ event.ctrlKey ||
11
+ event.metaKey ||
12
+ event.altKey ||
13
+ disabled ||
14
+ popoverOpen) {
15
+ return;
16
+ }
17
+ const activeElement = document.activeElement;
18
+ const cell = activeElement?.closest(".ag-cell");
19
+ const button = buttonRef.current;
20
+ if (!cell || !button || !cell.contains(button)) {
21
+ return;
22
+ }
23
+ const isEditing = cell.classList.contains("ag-cell-inline-editing");
24
+ if (isEditing) {
25
+ return;
26
+ }
27
+ event.preventDefault();
28
+ event.stopPropagation();
29
+ button.click();
30
+ };
31
+ if (buttonRef.current) {
32
+ const cell = buttonRef.current.closest(".ag-cell");
33
+ if (cell) {
34
+ cell.addEventListener("keydown", handleKeyDown, true);
35
+ return () => cell.removeEventListener("keydown", handleKeyDown, true);
36
+ }
37
+ }
38
+ }, [buttonRef, disabled, popoverOpen]);
39
+ }
@@ -1,9 +1,10 @@
1
- export * from "./ActionCell/ActionCell";
1
+ export * from "./ActionCell";
2
2
  export * from "./AgGrid";
3
+ export * from "./hooks";
3
4
  export * from "./LoadingCell";
4
5
  export * from "./LoadingOverlay";
5
6
  export * from "./NoDataOverlay";
6
- export * from "./utils";
7
+ export * from "./RedirectionCell";
7
8
  export * from "./types";
8
- export * from "./hooks";
9
+ export * from "./utils";
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AgGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AgGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -14,11 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ActionCell/ActionCell"), exports);
17
+ __exportStar(require("./ActionCell"), exports);
18
18
  __exportStar(require("./AgGrid"), exports);
19
+ __exportStar(require("./hooks"), exports);
19
20
  __exportStar(require("./LoadingCell"), exports);
20
21
  __exportStar(require("./LoadingOverlay"), exports);
21
22
  __exportStar(require("./NoDataOverlay"), exports);
22
- __exportStar(require("./utils"), exports);
23
+ __exportStar(require("./RedirectionCell"), exports);
23
24
  __exportStar(require("./types"), exports);
24
- __exportStar(require("./hooks"), exports);
25
+ __exportStar(require("./utils"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,KAAK,cAAc,GAAG;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,eAAe,4CAuErD,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,KAAK,cAAc,GAAG;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,eAAe,4CA0ErD,CAAC"}
@@ -25,10 +25,14 @@ const Breadcrumbs = ({ items }) => {
25
25
  }, children: items.map((item) => {
26
26
  const { icon, text, onClick } = item;
27
27
  if (onClick) {
28
- return ((0, jsx_runtime_1.jsxs)(material_1.Link, { underline: "hover", sx: { display: "flex", alignItems: "center" }, onClick: (e) => {
29
- e.preventDefault();
30
- onClick();
31
- }, href: "#", children: [icon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { sx: {
28
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: onClick, style: {
29
+ background: "none",
30
+ border: "none",
31
+ padding: 0,
32
+ cursor: "pointer",
33
+ display: "flex",
34
+ alignItems: "center",
35
+ }, children: [icon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { sx: {
32
36
  color: butterflyBlue[900],
33
37
  }, children: icon })), text && (0, jsx_runtime_1.jsx)(material_1.Typography, { children: text })] }, (0, uuid_1.v4)()));
34
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CellSelectionTable.d.ts","sourceRoot":"","sources":["../../src/CellSelectionTable/CellSelectionTable.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAcf,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EAGP,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,IAAI,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAChD,0BAA0B,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtD,6BAA6B,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,CAAC;IAC1E,mBAAmB,EAAE,CAAC,CAAC,GAAG,YAAY,EACpC,YAAY,EAAE,SAAS,EAAE,EACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,KAC7C,CAAC,EAAE,CAAC;CACV,CAAC;AAEF,MAA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