@natoora-libs/core 0.2.32 → 0.2.34-dev-doug-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.
- package/dist/components/index.cjs +957 -672
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +40 -18
- package/dist/components/index.d.ts +40 -18
- package/dist/components/index.js +853 -570
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -29,9 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
));
|
|
30
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
31
|
|
|
32
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
32
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
|
|
33
33
|
var require_isObject = __commonJS({
|
|
34
|
-
"../node_modules/.pnpm/lodash@4.
|
|
34
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js"(exports2, module2) {
|
|
35
35
|
function isObject(value) {
|
|
36
36
|
var type = typeof value;
|
|
37
37
|
return value != null && (type == "object" || type == "function");
|
|
@@ -40,17 +40,17 @@ var require_isObject = __commonJS({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
43
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
|
|
44
44
|
var require_freeGlobal = __commonJS({
|
|
45
|
-
"../node_modules/.pnpm/lodash@4.
|
|
45
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js"(exports2, module2) {
|
|
46
46
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
47
47
|
module2.exports = freeGlobal;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
51
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
|
|
52
52
|
var require_root = __commonJS({
|
|
53
|
-
"../node_modules/.pnpm/lodash@4.
|
|
53
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js"(exports2, module2) {
|
|
54
54
|
var freeGlobal = require_freeGlobal();
|
|
55
55
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
56
56
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -58,9 +58,9 @@ var require_root = __commonJS({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
61
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
|
|
62
62
|
var require_now = __commonJS({
|
|
63
|
-
"../node_modules/.pnpm/lodash@4.
|
|
63
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js"(exports2, module2) {
|
|
64
64
|
var root = require_root();
|
|
65
65
|
var now = function() {
|
|
66
66
|
return root.Date.now();
|
|
@@ -69,9 +69,9 @@ var require_now = __commonJS({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
72
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
|
|
73
73
|
var require_trimmedEndIndex = __commonJS({
|
|
74
|
-
"../node_modules/.pnpm/lodash@4.
|
|
74
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js"(exports2, module2) {
|
|
75
75
|
var reWhitespace = /\s/;
|
|
76
76
|
function trimmedEndIndex(string) {
|
|
77
77
|
var index = string.length;
|
|
@@ -83,9 +83,9 @@ var require_trimmedEndIndex = __commonJS({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
86
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
|
|
87
87
|
var require_baseTrim = __commonJS({
|
|
88
|
-
"../node_modules/.pnpm/lodash@4.
|
|
88
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js"(exports2, module2) {
|
|
89
89
|
var trimmedEndIndex = require_trimmedEndIndex();
|
|
90
90
|
var reTrimStart = /^\s+/;
|
|
91
91
|
function baseTrim(string) {
|
|
@@ -95,18 +95,18 @@ var require_baseTrim = __commonJS({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
98
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
|
|
99
99
|
var require_Symbol = __commonJS({
|
|
100
|
-
"../node_modules/.pnpm/lodash@4.
|
|
100
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js"(exports2, module2) {
|
|
101
101
|
var root = require_root();
|
|
102
102
|
var Symbol2 = root.Symbol;
|
|
103
103
|
module2.exports = Symbol2;
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
107
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
|
|
108
108
|
var require_getRawTag = __commonJS({
|
|
109
|
-
"../node_modules/.pnpm/lodash@4.
|
|
109
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js"(exports2, module2) {
|
|
110
110
|
var Symbol2 = require_Symbol();
|
|
111
111
|
var objectProto = Object.prototype;
|
|
112
112
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -133,9 +133,9 @@ var require_getRawTag = __commonJS({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
136
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
|
|
137
137
|
var require_objectToString = __commonJS({
|
|
138
|
-
"../node_modules/.pnpm/lodash@4.
|
|
138
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js"(exports2, module2) {
|
|
139
139
|
var objectProto = Object.prototype;
|
|
140
140
|
var nativeObjectToString = objectProto.toString;
|
|
141
141
|
function objectToString(value) {
|
|
@@ -145,9 +145,9 @@ var require_objectToString = __commonJS({
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
148
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
|
|
149
149
|
var require_baseGetTag = __commonJS({
|
|
150
|
-
"../node_modules/.pnpm/lodash@4.
|
|
150
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js"(exports2, module2) {
|
|
151
151
|
var Symbol2 = require_Symbol();
|
|
152
152
|
var getRawTag = require_getRawTag();
|
|
153
153
|
var objectToString = require_objectToString();
|
|
@@ -164,9 +164,9 @@ var require_baseGetTag = __commonJS({
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
167
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
|
|
168
168
|
var require_isObjectLike = __commonJS({
|
|
169
|
-
"../node_modules/.pnpm/lodash@4.
|
|
169
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js"(exports2, module2) {
|
|
170
170
|
function isObjectLike(value) {
|
|
171
171
|
return value != null && typeof value == "object";
|
|
172
172
|
}
|
|
@@ -174,9 +174,9 @@ var require_isObjectLike = __commonJS({
|
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
177
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
|
|
178
178
|
var require_isSymbol = __commonJS({
|
|
179
|
-
"../node_modules/.pnpm/lodash@4.
|
|
179
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js"(exports2, module2) {
|
|
180
180
|
var baseGetTag = require_baseGetTag();
|
|
181
181
|
var isObjectLike = require_isObjectLike();
|
|
182
182
|
var symbolTag = "[object Symbol]";
|
|
@@ -187,9 +187,9 @@ var require_isSymbol = __commonJS({
|
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
190
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
|
|
191
191
|
var require_toNumber = __commonJS({
|
|
192
|
-
"../node_modules/.pnpm/lodash@4.
|
|
192
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js"(exports2, module2) {
|
|
193
193
|
var baseTrim = require_baseTrim();
|
|
194
194
|
var isObject = require_isObject();
|
|
195
195
|
var isSymbol = require_isSymbol();
|
|
@@ -220,9 +220,9 @@ var require_toNumber = __commonJS({
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
|
|
223
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
223
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
|
|
224
224
|
var require_debounce = __commonJS({
|
|
225
|
-
"../node_modules/.pnpm/lodash@4.
|
|
225
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js"(exports2, module2) {
|
|
226
226
|
var isObject = require_isObject();
|
|
227
227
|
var now = require_now();
|
|
228
228
|
var toNumber = require_toNumber();
|
|
@@ -352,6 +352,8 @@ __export(components_exports, {
|
|
|
352
352
|
FilterOptionsCheckboxes: () => FilterOptionsCheckboxes,
|
|
353
353
|
FilterSimpleSelector: () => FilterSimpleSelector_default,
|
|
354
354
|
FixedFooter: () => FixedFooter_default,
|
|
355
|
+
GlobalSearch: () => GlobalSearch_default,
|
|
356
|
+
GlobalSearchTrigger: () => GlobalSearchTrigger_default,
|
|
355
357
|
GooglePlacesAddressAutocomplete: () => GooglePlacesAddressAutocomplete,
|
|
356
358
|
HashtagInput: () => HashtagInput,
|
|
357
359
|
Header: () => Header_default,
|
|
@@ -6015,10 +6017,283 @@ var FixedFooter = ({ justifyContent, children }) => {
|
|
|
6015
6017
|
};
|
|
6016
6018
|
var FixedFooter_default = React4.memo(FixedFooter);
|
|
6017
6019
|
|
|
6018
|
-
// src/components/
|
|
6020
|
+
// src/components/GlobalSearchTrigger/GlobalSearchTrigger.tsx
|
|
6021
|
+
var import_react26 = require("react");
|
|
6022
|
+
var import_SearchRounded = __toESM(require("@mui/icons-material/SearchRounded"), 1);
|
|
6019
6023
|
var import_material45 = require("@mui/material");
|
|
6020
|
-
var
|
|
6024
|
+
var import_styles3 = require("@mui/material/styles");
|
|
6021
6025
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6026
|
+
var GlobalSearchTrigger = ({
|
|
6027
|
+
onClick,
|
|
6028
|
+
onFocus,
|
|
6029
|
+
onChange,
|
|
6030
|
+
onKeyDown,
|
|
6031
|
+
readOnly = true,
|
|
6032
|
+
placeholder = "Search",
|
|
6033
|
+
ariaLabel = "Global search",
|
|
6034
|
+
shortcutLabel = "\u2318 K",
|
|
6035
|
+
value = "",
|
|
6036
|
+
minWidth = 220,
|
|
6037
|
+
sx,
|
|
6038
|
+
ref,
|
|
6039
|
+
inputRef
|
|
6040
|
+
}) => {
|
|
6041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
6042
|
+
import_material45.Paper,
|
|
6043
|
+
{
|
|
6044
|
+
ref,
|
|
6045
|
+
elevation: 0,
|
|
6046
|
+
onClick,
|
|
6047
|
+
role: "search",
|
|
6048
|
+
sx: {
|
|
6049
|
+
display: "flex",
|
|
6050
|
+
alignItems: "center",
|
|
6051
|
+
gap: 1,
|
|
6052
|
+
border: `1px solid ${(0, import_styles3.alpha)(colors.white, 0.22)}`,
|
|
6053
|
+
borderRadius: 1,
|
|
6054
|
+
px: 1.5,
|
|
6055
|
+
py: 0.75,
|
|
6056
|
+
minWidth,
|
|
6057
|
+
backgroundColor: (0, import_styles3.alpha)(colors.black, 0.2),
|
|
6058
|
+
color: (0, import_styles3.alpha)(colors.white, 0.82),
|
|
6059
|
+
transition: "background-color 0.15s ease, border-color 0.15s ease",
|
|
6060
|
+
"&:hover": {
|
|
6061
|
+
borderColor: (0, import_styles3.alpha)(colors.white, 0.38),
|
|
6062
|
+
backgroundColor: (0, import_styles3.alpha)(colors.black, 0.35)
|
|
6063
|
+
},
|
|
6064
|
+
"&:focus-within": {
|
|
6065
|
+
borderColor: (0, import_styles3.alpha)(colors.muiPrimary, 0.95),
|
|
6066
|
+
backgroundColor: (0, import_styles3.alpha)(colors.black, 0.35)
|
|
6067
|
+
},
|
|
6068
|
+
...sx
|
|
6069
|
+
},
|
|
6070
|
+
children: [
|
|
6071
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_SearchRounded.default, { sx: { fontSize: 19, color: colors.muiPrimary } }),
|
|
6072
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6073
|
+
import_material45.InputBase,
|
|
6074
|
+
{
|
|
6075
|
+
inputRef,
|
|
6076
|
+
value,
|
|
6077
|
+
readOnly,
|
|
6078
|
+
onFocus,
|
|
6079
|
+
onKeyDown,
|
|
6080
|
+
onChange: (event) => onChange?.(event.target.value),
|
|
6081
|
+
placeholder,
|
|
6082
|
+
inputProps: { "aria-label": ariaLabel },
|
|
6083
|
+
sx: {
|
|
6084
|
+
flexGrow: 1,
|
|
6085
|
+
color: (0, import_styles3.alpha)(colors.white, 0.82),
|
|
6086
|
+
fontSize: 14,
|
|
6087
|
+
"& input::placeholder": {
|
|
6088
|
+
color: (0, import_styles3.alpha)(colors.white, 0.62),
|
|
6089
|
+
opacity: 1
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6093
|
+
),
|
|
6094
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6095
|
+
import_material45.Box,
|
|
6096
|
+
{
|
|
6097
|
+
sx: {
|
|
6098
|
+
border: `1px solid ${(0, import_styles3.alpha)(colors.white, 0.32)}`,
|
|
6099
|
+
borderRadius: "5px",
|
|
6100
|
+
px: 0.6,
|
|
6101
|
+
py: 0.2,
|
|
6102
|
+
fontSize: 11,
|
|
6103
|
+
lineHeight: 1
|
|
6104
|
+
},
|
|
6105
|
+
children: shortcutLabel
|
|
6106
|
+
}
|
|
6107
|
+
)
|
|
6108
|
+
]
|
|
6109
|
+
}
|
|
6110
|
+
);
|
|
6111
|
+
};
|
|
6112
|
+
var GlobalSearchTrigger_default = (0, import_react26.memo)(GlobalSearchTrigger);
|
|
6113
|
+
|
|
6114
|
+
// src/components/GlobalSearch/GlobalSearch.tsx
|
|
6115
|
+
var import_react27 = require("react");
|
|
6116
|
+
var import_material46 = require("@mui/material");
|
|
6117
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6118
|
+
var IFRAME_MESSAGE_SOURCE = "global-search-iframe";
|
|
6119
|
+
var HOST_SOURCE = "global-search-host";
|
|
6120
|
+
var COLLAPSED_HEIGHT = 44;
|
|
6121
|
+
var MAX_WIDTH = 760;
|
|
6122
|
+
var MIN_WIDTH = 280;
|
|
6123
|
+
var MAX_HEIGHT = 820;
|
|
6124
|
+
var WIDGET_SRC = "/react/search/widget";
|
|
6125
|
+
var isEditableElement = (target) => {
|
|
6126
|
+
if (!(target instanceof HTMLElement)) {
|
|
6127
|
+
return false;
|
|
6128
|
+
}
|
|
6129
|
+
if (target.isContentEditable) {
|
|
6130
|
+
return true;
|
|
6131
|
+
}
|
|
6132
|
+
const tagName = target.tagName.toLowerCase();
|
|
6133
|
+
const role = target.getAttribute("role");
|
|
6134
|
+
return tagName === "input" || tagName === "textarea" || tagName === "select" || role === "textbox";
|
|
6135
|
+
};
|
|
6136
|
+
var GlobalSearch = ({
|
|
6137
|
+
onNavigate,
|
|
6138
|
+
shouldUseWindowLocation = (path) => path.startsWith("/react/") || path.startsWith("/#/")
|
|
6139
|
+
}) => {
|
|
6140
|
+
const iframeRef = (0, import_react27.useRef)(null);
|
|
6141
|
+
const wrapperRef = (0, import_react27.useRef)(null);
|
|
6142
|
+
const [open, setOpen] = (0, import_react27.useState)(false);
|
|
6143
|
+
const [height, setHeight] = (0, import_react27.useState)(COLLAPSED_HEIGHT);
|
|
6144
|
+
const widgetSrc = WIDGET_SRC;
|
|
6145
|
+
const widgetOrigin = new URL(widgetSrc, window.location.origin).origin;
|
|
6146
|
+
const postToIframe = (0, import_react27.useCallback)(
|
|
6147
|
+
(type) => {
|
|
6148
|
+
const targetWindow = iframeRef.current?.contentWindow;
|
|
6149
|
+
if (!targetWindow) {
|
|
6150
|
+
return;
|
|
6151
|
+
}
|
|
6152
|
+
targetWindow.postMessage(
|
|
6153
|
+
{
|
|
6154
|
+
source: HOST_SOURCE,
|
|
6155
|
+
type
|
|
6156
|
+
},
|
|
6157
|
+
widgetOrigin
|
|
6158
|
+
);
|
|
6159
|
+
},
|
|
6160
|
+
[widgetOrigin]
|
|
6161
|
+
);
|
|
6162
|
+
const close = (0, import_react27.useCallback)(() => {
|
|
6163
|
+
setOpen(false);
|
|
6164
|
+
setHeight(COLLAPSED_HEIGHT);
|
|
6165
|
+
postToIframe("GLOBAL_SEARCH_CLOSE");
|
|
6166
|
+
}, [postToIframe]);
|
|
6167
|
+
const toggle = (0, import_react27.useCallback)(() => {
|
|
6168
|
+
setOpen(true);
|
|
6169
|
+
setHeight(MAX_HEIGHT);
|
|
6170
|
+
postToIframe("GLOBAL_SEARCH_TOGGLE");
|
|
6171
|
+
}, [postToIframe]);
|
|
6172
|
+
(0, import_react27.useEffect)(() => {
|
|
6173
|
+
const onKeyDown = (event) => {
|
|
6174
|
+
const isCommandOrCtrl = event.metaKey || event.ctrlKey;
|
|
6175
|
+
if (isCommandOrCtrl && event.key.toLowerCase() === "k") {
|
|
6176
|
+
if (isEditableElement(event.target) && !open) {
|
|
6177
|
+
return;
|
|
6178
|
+
}
|
|
6179
|
+
event.preventDefault();
|
|
6180
|
+
toggle();
|
|
6181
|
+
}
|
|
6182
|
+
if (event.key === "Escape" && open) {
|
|
6183
|
+
event.preventDefault();
|
|
6184
|
+
close();
|
|
6185
|
+
}
|
|
6186
|
+
};
|
|
6187
|
+
window.addEventListener("keydown", onKeyDown);
|
|
6188
|
+
return () => window.removeEventListener("keydown", onKeyDown);
|
|
6189
|
+
}, [close, open, toggle]);
|
|
6190
|
+
(0, import_react27.useEffect)(() => {
|
|
6191
|
+
if (!open) {
|
|
6192
|
+
return void 0;
|
|
6193
|
+
}
|
|
6194
|
+
const onPointerDown = (event) => {
|
|
6195
|
+
const wrapper = wrapperRef.current;
|
|
6196
|
+
if (!wrapper) {
|
|
6197
|
+
return;
|
|
6198
|
+
}
|
|
6199
|
+
const target = event.target;
|
|
6200
|
+
if (!(target instanceof Node)) {
|
|
6201
|
+
return;
|
|
6202
|
+
}
|
|
6203
|
+
if (!wrapper.contains(target)) {
|
|
6204
|
+
close();
|
|
6205
|
+
}
|
|
6206
|
+
};
|
|
6207
|
+
document.addEventListener("pointerdown", onPointerDown, true);
|
|
6208
|
+
return () => document.removeEventListener("pointerdown", onPointerDown, true);
|
|
6209
|
+
}, [close, open]);
|
|
6210
|
+
(0, import_react27.useEffect)(() => {
|
|
6211
|
+
const onMessage = (event) => {
|
|
6212
|
+
if (event.origin !== widgetOrigin) {
|
|
6213
|
+
return;
|
|
6214
|
+
}
|
|
6215
|
+
const iframeWindow = iframeRef.current?.contentWindow;
|
|
6216
|
+
if (iframeWindow && event.source !== iframeWindow) {
|
|
6217
|
+
return;
|
|
6218
|
+
}
|
|
6219
|
+
const data = event.data;
|
|
6220
|
+
if (!data || data.source !== IFRAME_MESSAGE_SOURCE) {
|
|
6221
|
+
return;
|
|
6222
|
+
}
|
|
6223
|
+
if (data.type === "GLOBAL_SEARCH_CLOSE") {
|
|
6224
|
+
setOpen(false);
|
|
6225
|
+
setHeight(COLLAPSED_HEIGHT);
|
|
6226
|
+
return;
|
|
6227
|
+
}
|
|
6228
|
+
if (data.type === "GLOBAL_SEARCH_RESIZE") {
|
|
6229
|
+
const nextHeight = Math.max(
|
|
6230
|
+
COLLAPSED_HEIGHT,
|
|
6231
|
+
Math.min(MAX_HEIGHT, Math.ceil(Number(data.height || 0)))
|
|
6232
|
+
);
|
|
6233
|
+
setHeight(nextHeight);
|
|
6234
|
+
setOpen(nextHeight > COLLAPSED_HEIGHT + 1);
|
|
6235
|
+
return;
|
|
6236
|
+
}
|
|
6237
|
+
if (data.type === "GLOBAL_SEARCH_NAVIGATE") {
|
|
6238
|
+
const rawRoute = data.route;
|
|
6239
|
+
if (!rawRoute || !rawRoute.startsWith("/")) {
|
|
6240
|
+
return;
|
|
6241
|
+
}
|
|
6242
|
+
setOpen(false);
|
|
6243
|
+
setHeight(COLLAPSED_HEIGHT);
|
|
6244
|
+
const nextRoute = rawRoute.startsWith("/react/") || rawRoute.startsWith("/#/") ? rawRoute : `/react${rawRoute}`;
|
|
6245
|
+
if (nextRoute.startsWith("/react/") || shouldUseWindowLocation(rawRoute)) {
|
|
6246
|
+
window.location.assign(nextRoute);
|
|
6247
|
+
return;
|
|
6248
|
+
}
|
|
6249
|
+
onNavigate?.(nextRoute);
|
|
6250
|
+
}
|
|
6251
|
+
};
|
|
6252
|
+
window.addEventListener("message", onMessage);
|
|
6253
|
+
return () => window.removeEventListener("message", onMessage);
|
|
6254
|
+
}, [onNavigate, shouldUseWindowLocation, widgetOrigin]);
|
|
6255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6256
|
+
import_material46.Box,
|
|
6257
|
+
{
|
|
6258
|
+
ref: wrapperRef,
|
|
6259
|
+
sx: {
|
|
6260
|
+
position: "relative",
|
|
6261
|
+
overflow: "visible",
|
|
6262
|
+
width: "100%",
|
|
6263
|
+
maxWidth: MAX_WIDTH,
|
|
6264
|
+
minWidth: MIN_WIDTH,
|
|
6265
|
+
flex: "1 1 420px",
|
|
6266
|
+
height: COLLAPSED_HEIGHT
|
|
6267
|
+
},
|
|
6268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6269
|
+
"iframe",
|
|
6270
|
+
{
|
|
6271
|
+
ref: iframeRef,
|
|
6272
|
+
title: "Global Search",
|
|
6273
|
+
"data-testid": "global-search-widget-iframe",
|
|
6274
|
+
src: widgetSrc,
|
|
6275
|
+
scrolling: "no",
|
|
6276
|
+
style: {
|
|
6277
|
+
position: "absolute",
|
|
6278
|
+
top: 0,
|
|
6279
|
+
right: 0,
|
|
6280
|
+
width: "100%",
|
|
6281
|
+
height,
|
|
6282
|
+
border: 0,
|
|
6283
|
+
display: "block",
|
|
6284
|
+
backgroundColor: "transparent"
|
|
6285
|
+
}
|
|
6286
|
+
}
|
|
6287
|
+
)
|
|
6288
|
+
}
|
|
6289
|
+
);
|
|
6290
|
+
};
|
|
6291
|
+
var GlobalSearch_default = (0, import_react27.memo)(GlobalSearch);
|
|
6292
|
+
|
|
6293
|
+
// src/components/Header/Header.tsx
|
|
6294
|
+
var import_material47 = require("@mui/material");
|
|
6295
|
+
var import_mui30 = require("tss-react/mui");
|
|
6296
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6022
6297
|
var useStyles28 = (0, import_mui30.makeStyles)()((theme) => ({
|
|
6023
6298
|
container: {
|
|
6024
6299
|
margin: theme.spacing(1)
|
|
@@ -6041,16 +6316,16 @@ var Header = ({
|
|
|
6041
6316
|
wrappedHeader = false
|
|
6042
6317
|
}) => {
|
|
6043
6318
|
const { classes, cx } = useStyles28();
|
|
6044
|
-
return /* @__PURE__ */ (0,
|
|
6045
|
-
|
|
6319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6320
|
+
import_material47.Paper,
|
|
6046
6321
|
{
|
|
6047
6322
|
className: cx({
|
|
6048
6323
|
[classes.container]: !wrappedHeader
|
|
6049
6324
|
}),
|
|
6050
6325
|
elevation: wrappedHeader ? 0 : 1,
|
|
6051
|
-
children: /* @__PURE__ */ (0,
|
|
6052
|
-
/* @__PURE__ */ (0,
|
|
6053
|
-
children ? /* @__PURE__ */ (0,
|
|
6326
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("header", { className: classes.header, children: [
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AppLabel_default, { appName }),
|
|
6328
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: classes.rightContent, children }) : null
|
|
6054
6329
|
] })
|
|
6055
6330
|
}
|
|
6056
6331
|
);
|
|
@@ -6059,21 +6334,21 @@ var Header_default = Header;
|
|
|
6059
6334
|
|
|
6060
6335
|
// src/components/List/List.tsx
|
|
6061
6336
|
var import_react_window = require("react-window");
|
|
6062
|
-
var
|
|
6063
|
-
var
|
|
6337
|
+
var import_material48 = require("@mui/material");
|
|
6338
|
+
var import_jsx_runtime100 = (
|
|
6064
6339
|
// eslint-disable-next-line react/no-array-index-key
|
|
6065
6340
|
require("react/jsx-runtime")
|
|
6066
6341
|
);
|
|
6067
6342
|
var ListHeader = (props) => {
|
|
6068
6343
|
const headers = props.headers || [];
|
|
6069
|
-
return /* @__PURE__ */ (0,
|
|
6344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.ListItem, { children: headers.map((header, i) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.ListItemText, { primary: header.text }, i)) });
|
|
6070
6345
|
};
|
|
6071
6346
|
function VirtualizedList(props) {
|
|
6072
6347
|
const { innerWidth, innerHeight } = window;
|
|
6073
6348
|
const { headers, items, renderItem } = props;
|
|
6074
|
-
return /* @__PURE__ */ (0,
|
|
6075
|
-
/* @__PURE__ */ (0,
|
|
6076
|
-
/* @__PURE__ */ (0,
|
|
6349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
6350
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ListHeader, { headers }),
|
|
6351
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6077
6352
|
import_react_window.FixedSizeList,
|
|
6078
6353
|
{
|
|
6079
6354
|
height: innerHeight - 150,
|
|
@@ -6088,9 +6363,9 @@ function VirtualizedList(props) {
|
|
|
6088
6363
|
}
|
|
6089
6364
|
|
|
6090
6365
|
// src/components/Loading/Loading.tsx
|
|
6091
|
-
var
|
|
6366
|
+
var import_material49 = require("@mui/material");
|
|
6092
6367
|
var import_mui31 = require("tss-react/mui");
|
|
6093
|
-
var
|
|
6368
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
6094
6369
|
var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
|
|
6095
6370
|
wrapper: {
|
|
6096
6371
|
/**
|
|
@@ -6102,26 +6377,26 @@ var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
|
|
|
6102
6377
|
}));
|
|
6103
6378
|
var Loading = ({ isLoading }) => {
|
|
6104
6379
|
const { classes } = useStyles29();
|
|
6105
|
-
return /* @__PURE__ */ (0,
|
|
6106
|
-
|
|
6380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6381
|
+
import_material49.Backdrop,
|
|
6107
6382
|
{
|
|
6108
6383
|
"aria-hidden": !isLoading,
|
|
6109
6384
|
className: classes.wrapper,
|
|
6110
6385
|
open: isLoading,
|
|
6111
6386
|
"data-testid": "backdrop-loading",
|
|
6112
|
-
children: /* @__PURE__ */ (0,
|
|
6387
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_material49.CircularProgress, { color: "primary" })
|
|
6113
6388
|
}
|
|
6114
6389
|
);
|
|
6115
6390
|
};
|
|
6116
6391
|
var Loading_default = Loading;
|
|
6117
6392
|
|
|
6118
6393
|
// src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
|
|
6119
|
-
var
|
|
6120
|
-
var
|
|
6121
|
-
var
|
|
6394
|
+
var import_react28 = require("react");
|
|
6395
|
+
var import_material50 = require("@mui/material");
|
|
6396
|
+
var import_colors38 = require("@mui/material/colors");
|
|
6122
6397
|
var import_classnames2 = __toESM(require("classnames"), 1);
|
|
6123
6398
|
var import_mui32 = require("tss-react/mui");
|
|
6124
|
-
var
|
|
6399
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
6125
6400
|
var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
|
|
6126
6401
|
container: {
|
|
6127
6402
|
display: "flex",
|
|
@@ -6147,8 +6422,8 @@ var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
|
|
|
6147
6422
|
borderColor: colors.neutral100
|
|
6148
6423
|
},
|
|
6149
6424
|
pickingStockChip: {
|
|
6150
|
-
backgroundColor:
|
|
6151
|
-
color:
|
|
6425
|
+
backgroundColor: import_colors38.purple[50],
|
|
6426
|
+
color: import_colors38.purple[500]
|
|
6152
6427
|
}
|
|
6153
6428
|
}));
|
|
6154
6429
|
var LocationsSectionInfo = ({
|
|
@@ -6167,9 +6442,9 @@ var LocationsSectionInfo = ({
|
|
|
6167
6442
|
}
|
|
6168
6443
|
return "STOCK";
|
|
6169
6444
|
};
|
|
6170
|
-
return /* @__PURE__ */ (0,
|
|
6171
|
-
/* @__PURE__ */ (0,
|
|
6172
|
-
|
|
6445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_material50.Box, { className: classes.container, children: [
|
|
6446
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
6447
|
+
import_material50.Chip,
|
|
6173
6448
|
{
|
|
6174
6449
|
className: (0, import_classnames2.default)(classes.defaultChip, {
|
|
6175
6450
|
[classes.stockChip]: isStock,
|
|
@@ -6179,20 +6454,20 @@ var LocationsSectionInfo = ({
|
|
|
6179
6454
|
label: getLocationLabel()
|
|
6180
6455
|
}
|
|
6181
6456
|
),
|
|
6182
|
-
/* @__PURE__ */ (0,
|
|
6183
|
-
secondaryLocation?.map((loc) => /* @__PURE__ */ (0,
|
|
6184
|
-
/* @__PURE__ */ (0,
|
|
6185
|
-
/* @__PURE__ */ (0,
|
|
6457
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.locationText, color: "primary", children: principalLocation }),
|
|
6458
|
+
secondaryLocation?.map((loc) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_react28.Fragment, { children: [
|
|
6459
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.smallTitle, children: "/" }),
|
|
6460
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.locationText, children: loc })
|
|
6186
6461
|
] }, loc))
|
|
6187
6462
|
] });
|
|
6188
6463
|
};
|
|
6189
6464
|
var LocationsSectionInfo_default = LocationsSectionInfo;
|
|
6190
6465
|
|
|
6191
6466
|
// src/components/Notes/Notes.tsx
|
|
6192
|
-
var
|
|
6193
|
-
var
|
|
6467
|
+
var import_react29 = require("react");
|
|
6468
|
+
var import_material51 = require("@mui/material");
|
|
6194
6469
|
var import_mui33 = require("tss-react/mui");
|
|
6195
|
-
var
|
|
6470
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
6196
6471
|
var useStyles31 = (0, import_mui33.makeStyles)()((theme) => ({
|
|
6197
6472
|
wrapper: {
|
|
6198
6473
|
padding: theme.spacing(3),
|
|
@@ -6209,8 +6484,8 @@ var Notes2 = ({
|
|
|
6209
6484
|
onChange,
|
|
6210
6485
|
onClearNotes
|
|
6211
6486
|
}) => {
|
|
6212
|
-
const [notes, setNotes] = (0,
|
|
6213
|
-
(0,
|
|
6487
|
+
const [notes, setNotes] = (0, import_react29.useState)("");
|
|
6488
|
+
(0, import_react29.useEffect)(() => {
|
|
6214
6489
|
if (!initialNotes) {
|
|
6215
6490
|
return;
|
|
6216
6491
|
}
|
|
@@ -6235,13 +6510,13 @@ var Notes2 = ({
|
|
|
6235
6510
|
}
|
|
6236
6511
|
};
|
|
6237
6512
|
const { classes } = useStyles31();
|
|
6238
|
-
return /* @__PURE__ */ (0,
|
|
6239
|
-
/* @__PURE__ */ (0,
|
|
6240
|
-
/* @__PURE__ */ (0,
|
|
6241
|
-
|
|
6513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: classes.wrapper, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_material51.FormControl, { fullWidth: true, children: [
|
|
6514
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material51.InputLabel, { htmlFor: "notes", children: "Notes" }),
|
|
6515
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6516
|
+
import_material51.Input,
|
|
6242
6517
|
{
|
|
6243
6518
|
disabled: isDisabled || isLoading,
|
|
6244
|
-
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ (0,
|
|
6519
|
+
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material51.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6245
6520
|
RoundButton_default,
|
|
6246
6521
|
{
|
|
6247
6522
|
disabled: isLoading,
|
|
@@ -6267,8 +6542,8 @@ var Notes2 = ({
|
|
|
6267
6542
|
var Notes_default = Notes2;
|
|
6268
6543
|
|
|
6269
6544
|
// src/components/Numpad/Numpad.tsx
|
|
6270
|
-
var
|
|
6271
|
-
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0,
|
|
6545
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
6546
|
+
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
6272
6547
|
"div",
|
|
6273
6548
|
{
|
|
6274
6549
|
style: {
|
|
@@ -6280,9 +6555,9 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6280
6555
|
padding: 8
|
|
6281
6556
|
},
|
|
6282
6557
|
children: [
|
|
6283
|
-
/* @__PURE__ */ (0,
|
|
6284
|
-
/* @__PURE__ */ (0,
|
|
6285
|
-
/* @__PURE__ */ (0,
|
|
6558
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6559
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6560
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6286
6561
|
RoundButton_default,
|
|
6287
6562
|
{
|
|
6288
6563
|
onClick: () => handleClick("1"),
|
|
@@ -6291,7 +6566,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6291
6566
|
children: "1"
|
|
6292
6567
|
}
|
|
6293
6568
|
),
|
|
6294
|
-
/* @__PURE__ */ (0,
|
|
6569
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6295
6570
|
RoundButton_default,
|
|
6296
6571
|
{
|
|
6297
6572
|
onClick: () => handleClick("2"),
|
|
@@ -6300,7 +6575,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6300
6575
|
children: "2"
|
|
6301
6576
|
}
|
|
6302
6577
|
),
|
|
6303
|
-
/* @__PURE__ */ (0,
|
|
6578
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6304
6579
|
RoundButton_default,
|
|
6305
6580
|
{
|
|
6306
6581
|
onClick: () => handleClick("3"),
|
|
@@ -6310,8 +6585,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6310
6585
|
}
|
|
6311
6586
|
)
|
|
6312
6587
|
] }),
|
|
6313
|
-
/* @__PURE__ */ (0,
|
|
6314
|
-
/* @__PURE__ */ (0,
|
|
6588
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6589
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6315
6590
|
RoundButton_default,
|
|
6316
6591
|
{
|
|
6317
6592
|
onClick: () => handleClick("4"),
|
|
@@ -6320,7 +6595,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6320
6595
|
children: "4"
|
|
6321
6596
|
}
|
|
6322
6597
|
),
|
|
6323
|
-
/* @__PURE__ */ (0,
|
|
6598
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6324
6599
|
RoundButton_default,
|
|
6325
6600
|
{
|
|
6326
6601
|
onClick: () => handleClick("5"),
|
|
@@ -6329,7 +6604,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6329
6604
|
children: "5"
|
|
6330
6605
|
}
|
|
6331
6606
|
),
|
|
6332
|
-
/* @__PURE__ */ (0,
|
|
6607
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6333
6608
|
RoundButton_default,
|
|
6334
6609
|
{
|
|
6335
6610
|
onClick: () => handleClick("6"),
|
|
@@ -6339,8 +6614,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6339
6614
|
}
|
|
6340
6615
|
)
|
|
6341
6616
|
] }),
|
|
6342
|
-
/* @__PURE__ */ (0,
|
|
6343
|
-
/* @__PURE__ */ (0,
|
|
6617
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6618
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6344
6619
|
RoundButton_default,
|
|
6345
6620
|
{
|
|
6346
6621
|
onClick: () => handleClick("7"),
|
|
@@ -6349,7 +6624,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6349
6624
|
children: "7"
|
|
6350
6625
|
}
|
|
6351
6626
|
),
|
|
6352
|
-
/* @__PURE__ */ (0,
|
|
6627
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6353
6628
|
RoundButton_default,
|
|
6354
6629
|
{
|
|
6355
6630
|
onClick: () => handleClick("8"),
|
|
@@ -6358,7 +6633,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6358
6633
|
children: "8"
|
|
6359
6634
|
}
|
|
6360
6635
|
),
|
|
6361
|
-
/* @__PURE__ */ (0,
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6362
6637
|
RoundButton_default,
|
|
6363
6638
|
{
|
|
6364
6639
|
onClick: () => handleClick("9"),
|
|
@@ -6368,8 +6643,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6368
6643
|
}
|
|
6369
6644
|
)
|
|
6370
6645
|
] }),
|
|
6371
|
-
/* @__PURE__ */ (0,
|
|
6372
|
-
/* @__PURE__ */ (0,
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6647
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6373
6648
|
RoundButton_default,
|
|
6374
6649
|
{
|
|
6375
6650
|
onClick: () => handleClick("0"),
|
|
@@ -6378,7 +6653,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6378
6653
|
children: "0"
|
|
6379
6654
|
}
|
|
6380
6655
|
),
|
|
6381
|
-
/* @__PURE__ */ (0,
|
|
6656
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6382
6657
|
RoundButton_default,
|
|
6383
6658
|
{
|
|
6384
6659
|
onClick: () => handleClick("."),
|
|
@@ -6389,7 +6664,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6389
6664
|
)
|
|
6390
6665
|
] })
|
|
6391
6666
|
] }),
|
|
6392
|
-
/* @__PURE__ */ (0,
|
|
6667
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6393
6668
|
"div",
|
|
6394
6669
|
{
|
|
6395
6670
|
style: {
|
|
@@ -6398,7 +6673,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6398
6673
|
justifyContent: "space-between",
|
|
6399
6674
|
borderLeft: `1px solid ${colors.neutral250}`
|
|
6400
6675
|
},
|
|
6401
|
-
children: /* @__PURE__ */ (0,
|
|
6676
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6402
6677
|
RoundButton_default,
|
|
6403
6678
|
{
|
|
6404
6679
|
icon: "backspaceOutlined",
|
|
@@ -6415,10 +6690,10 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6415
6690
|
var Numpad_default = Numpad;
|
|
6416
6691
|
|
|
6417
6692
|
// src/components/NumpadInput/NumpadInput.tsx
|
|
6418
|
-
var
|
|
6419
|
-
var
|
|
6693
|
+
var import_react30 = require("react");
|
|
6694
|
+
var import_material52 = require("@mui/material");
|
|
6420
6695
|
var import_mui34 = require("tss-react/mui");
|
|
6421
|
-
var
|
|
6696
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
6422
6697
|
var useStyles32 = (0, import_mui34.makeStyles)()(() => ({
|
|
6423
6698
|
c_numpadinput__textfield: {
|
|
6424
6699
|
"& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
|
|
@@ -6445,7 +6720,7 @@ var useStyles32 = (0, import_mui34.makeStyles)()(() => ({
|
|
|
6445
6720
|
var NumpadInput = (props) => {
|
|
6446
6721
|
const { handleNextClick, inputLabel, children } = props;
|
|
6447
6722
|
const { classes } = useStyles32();
|
|
6448
|
-
const [state, setState] = (0,
|
|
6723
|
+
const [state, setState] = (0, import_react30.useState)("");
|
|
6449
6724
|
const handleNumpadClick = (value) => {
|
|
6450
6725
|
setState(state + value);
|
|
6451
6726
|
};
|
|
@@ -6455,13 +6730,13 @@ var NumpadInput = (props) => {
|
|
|
6455
6730
|
function handleSubmit() {
|
|
6456
6731
|
handleNextClick?.(state);
|
|
6457
6732
|
}
|
|
6458
|
-
const DefaultInput = /* @__PURE__ */ (0,
|
|
6459
|
-
/* @__PURE__ */ (0,
|
|
6460
|
-
/* @__PURE__ */ (0,
|
|
6461
|
-
|
|
6733
|
+
const DefaultInput = /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { children: [
|
|
6734
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Typography, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6736
|
+
import_material52.TextField,
|
|
6462
6737
|
{
|
|
6463
6738
|
id: "outlined-basic",
|
|
6464
|
-
label: /* @__PURE__ */ (0,
|
|
6739
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Typography, { style: { fontSize: "1.5rem" }, children: "Insert" }),
|
|
6465
6740
|
value: state,
|
|
6466
6741
|
variant: "outlined",
|
|
6467
6742
|
autoFocus: true,
|
|
@@ -6476,27 +6751,27 @@ var NumpadInput = (props) => {
|
|
|
6476
6751
|
) }),
|
|
6477
6752
|
children
|
|
6478
6753
|
] });
|
|
6479
|
-
return /* @__PURE__ */ (0,
|
|
6480
|
-
/* @__PURE__ */ (0,
|
|
6754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { children: [
|
|
6755
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: classes.c_numpadinput__body, children: [
|
|
6481
6756
|
children || DefaultInput,
|
|
6482
|
-
/* @__PURE__ */ (0,
|
|
6757
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
|
|
6483
6758
|
] }),
|
|
6484
|
-
state ? /* @__PURE__ */ (0,
|
|
6759
|
+
state ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6485
6760
|
FilledButtonLg_default,
|
|
6486
6761
|
{
|
|
6487
6762
|
color: "primary",
|
|
6488
6763
|
copy: "next",
|
|
6489
6764
|
handleClick: handleSubmit
|
|
6490
6765
|
}
|
|
6491
|
-
) : /* @__PURE__ */ (0,
|
|
6766
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FilledButtonLg_default, { copy: "next", disabled: true })
|
|
6492
6767
|
] });
|
|
6493
6768
|
};
|
|
6494
|
-
var NumpadInput_default = (0,
|
|
6769
|
+
var NumpadInput_default = (0, import_react30.memo)(NumpadInput);
|
|
6495
6770
|
|
|
6496
6771
|
// src/components/NumpadPlus/NumpadPlus.tsx
|
|
6497
|
-
var
|
|
6772
|
+
var import_material53 = require("@mui/material");
|
|
6498
6773
|
var import_mui35 = require("tss-react/mui");
|
|
6499
|
-
var
|
|
6774
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
6500
6775
|
var useStyles33 = (0, import_mui35.makeStyles)()(() => ({
|
|
6501
6776
|
numpadContainer: {
|
|
6502
6777
|
display: "flex",
|
|
@@ -6528,10 +6803,10 @@ var useStyles33 = (0, import_mui35.makeStyles)()(() => ({
|
|
|
6528
6803
|
}));
|
|
6529
6804
|
var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
6530
6805
|
const { classes: styles } = useStyles33();
|
|
6531
|
-
return /* @__PURE__ */ (0,
|
|
6532
|
-
/* @__PURE__ */ (0,
|
|
6533
|
-
/* @__PURE__ */ (0,
|
|
6534
|
-
/* @__PURE__ */ (0,
|
|
6806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadContainer, children: [
|
|
6807
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadNumbersContainer, children: [
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6535
6810
|
RoundButton_default,
|
|
6536
6811
|
{
|
|
6537
6812
|
onClick: () => handleClick("1"),
|
|
@@ -6540,7 +6815,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6540
6815
|
children: "1"
|
|
6541
6816
|
}
|
|
6542
6817
|
),
|
|
6543
|
-
/* @__PURE__ */ (0,
|
|
6818
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6544
6819
|
RoundButton_default,
|
|
6545
6820
|
{
|
|
6546
6821
|
onClick: () => handleClick("2"),
|
|
@@ -6549,7 +6824,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6549
6824
|
children: "2"
|
|
6550
6825
|
}
|
|
6551
6826
|
),
|
|
6552
|
-
/* @__PURE__ */ (0,
|
|
6827
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6553
6828
|
RoundButton_default,
|
|
6554
6829
|
{
|
|
6555
6830
|
onClick: () => handleClick("3"),
|
|
@@ -6559,8 +6834,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6559
6834
|
}
|
|
6560
6835
|
)
|
|
6561
6836
|
] }),
|
|
6562
|
-
/* @__PURE__ */ (0,
|
|
6563
|
-
/* @__PURE__ */ (0,
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6564
6839
|
RoundButton_default,
|
|
6565
6840
|
{
|
|
6566
6841
|
onClick: () => handleClick("4"),
|
|
@@ -6569,7 +6844,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6569
6844
|
children: "4"
|
|
6570
6845
|
}
|
|
6571
6846
|
),
|
|
6572
|
-
/* @__PURE__ */ (0,
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6573
6848
|
RoundButton_default,
|
|
6574
6849
|
{
|
|
6575
6850
|
onClick: () => handleClick("5"),
|
|
@@ -6578,7 +6853,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6578
6853
|
children: "5"
|
|
6579
6854
|
}
|
|
6580
6855
|
),
|
|
6581
|
-
/* @__PURE__ */ (0,
|
|
6856
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6582
6857
|
RoundButton_default,
|
|
6583
6858
|
{
|
|
6584
6859
|
onClick: () => handleClick("6"),
|
|
@@ -6588,8 +6863,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6588
6863
|
}
|
|
6589
6864
|
)
|
|
6590
6865
|
] }),
|
|
6591
|
-
/* @__PURE__ */ (0,
|
|
6592
|
-
/* @__PURE__ */ (0,
|
|
6866
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6867
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6593
6868
|
RoundButton_default,
|
|
6594
6869
|
{
|
|
6595
6870
|
onClick: () => handleClick("7"),
|
|
@@ -6598,7 +6873,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6598
6873
|
children: "7"
|
|
6599
6874
|
}
|
|
6600
6875
|
),
|
|
6601
|
-
/* @__PURE__ */ (0,
|
|
6876
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6602
6877
|
RoundButton_default,
|
|
6603
6878
|
{
|
|
6604
6879
|
onClick: () => handleClick("8"),
|
|
@@ -6607,7 +6882,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6607
6882
|
children: "8"
|
|
6608
6883
|
}
|
|
6609
6884
|
),
|
|
6610
|
-
/* @__PURE__ */ (0,
|
|
6885
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6611
6886
|
RoundButton_default,
|
|
6612
6887
|
{
|
|
6613
6888
|
onClick: () => handleClick("9"),
|
|
@@ -6617,8 +6892,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6617
6892
|
}
|
|
6618
6893
|
)
|
|
6619
6894
|
] }),
|
|
6620
|
-
/* @__PURE__ */ (0,
|
|
6621
|
-
/* @__PURE__ */ (0,
|
|
6895
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6896
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6622
6897
|
RoundButton_default,
|
|
6623
6898
|
{
|
|
6624
6899
|
onClick: () => handleClick("0"),
|
|
@@ -6627,7 +6902,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6627
6902
|
children: "0"
|
|
6628
6903
|
}
|
|
6629
6904
|
),
|
|
6630
|
-
/* @__PURE__ */ (0,
|
|
6905
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6631
6906
|
RoundButton_default,
|
|
6632
6907
|
{
|
|
6633
6908
|
onClick: () => handleClick("."),
|
|
@@ -6636,7 +6911,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6636
6911
|
children: "."
|
|
6637
6912
|
}
|
|
6638
6913
|
),
|
|
6639
|
-
/* @__PURE__ */ (0,
|
|
6914
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6640
6915
|
RoundButton_default,
|
|
6641
6916
|
{
|
|
6642
6917
|
onClick: () => handleClick("-"),
|
|
@@ -6647,7 +6922,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6647
6922
|
)
|
|
6648
6923
|
] })
|
|
6649
6924
|
] }),
|
|
6650
|
-
/* @__PURE__ */ (0,
|
|
6925
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.Box, { className: styles.numpadBackspace, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6651
6926
|
RoundButton_default,
|
|
6652
6927
|
{
|
|
6653
6928
|
icon: "backspaceOutlined",
|
|
@@ -6661,9 +6936,9 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6661
6936
|
var NumpadPlus_default = NumpadPlus;
|
|
6662
6937
|
|
|
6663
6938
|
// src/components/Pagination/Pagination.tsx
|
|
6664
|
-
var
|
|
6939
|
+
var import_material54 = require("@mui/material");
|
|
6665
6940
|
var import_mui36 = require("tss-react/mui");
|
|
6666
|
-
var
|
|
6941
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
6667
6942
|
var paginationHeight = "56px";
|
|
6668
6943
|
var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
|
|
6669
6944
|
root: {
|
|
@@ -6700,16 +6975,14 @@ var PaginationForTable = ({
|
|
|
6700
6975
|
pagination,
|
|
6701
6976
|
position = "relative",
|
|
6702
6977
|
style,
|
|
6703
|
-
updateFilters
|
|
6704
|
-
siblingCount = 1,
|
|
6705
|
-
boundaryCount = 1
|
|
6978
|
+
updateFilters
|
|
6706
6979
|
}) => {
|
|
6707
6980
|
const { classes, cx } = useStyles34();
|
|
6708
6981
|
const handleChange = (event, value) => {
|
|
6709
6982
|
updateFilters({ ...appliedFilters, page: value });
|
|
6710
6983
|
};
|
|
6711
6984
|
const isFixed = position === "fixed";
|
|
6712
|
-
return /* @__PURE__ */ (0,
|
|
6985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
6713
6986
|
"div",
|
|
6714
6987
|
{
|
|
6715
6988
|
style,
|
|
@@ -6717,18 +6990,16 @@ var PaginationForTable = ({
|
|
|
6717
6990
|
[classes.fixed]: isFixed
|
|
6718
6991
|
}),
|
|
6719
6992
|
children: [
|
|
6720
|
-
/* @__PURE__ */ (0,
|
|
6993
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_material54.Typography, { variant: "body1", children: [
|
|
6721
6994
|
"Page: ",
|
|
6722
6995
|
page
|
|
6723
6996
|
] }),
|
|
6724
|
-
/* @__PURE__ */ (0,
|
|
6725
|
-
|
|
6997
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6998
|
+
import_material54.Pagination,
|
|
6726
6999
|
{
|
|
6727
7000
|
count: pagination.num_pages,
|
|
6728
7001
|
page,
|
|
6729
|
-
onChange: handleChange
|
|
6730
|
-
siblingCount,
|
|
6731
|
-
boundaryCount
|
|
7002
|
+
onChange: handleChange
|
|
6732
7003
|
}
|
|
6733
7004
|
)
|
|
6734
7005
|
]
|
|
@@ -6738,11 +7009,11 @@ var PaginationForTable = ({
|
|
|
6738
7009
|
var Pagination_default = PaginationForTable;
|
|
6739
7010
|
|
|
6740
7011
|
// src/components/PlusMinusInput/PlusMinusInput.tsx
|
|
6741
|
-
var
|
|
7012
|
+
var import_react31 = require("react");
|
|
6742
7013
|
var import_react_hook_form9 = require("react-hook-form");
|
|
6743
|
-
var
|
|
7014
|
+
var import_material55 = require("@mui/material");
|
|
6744
7015
|
var import_mui37 = require("tss-react/mui");
|
|
6745
|
-
var
|
|
7016
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
6746
7017
|
var useStyles35 = (0, import_mui37.makeStyles)()((theme) => ({
|
|
6747
7018
|
container: {
|
|
6748
7019
|
position: "relative",
|
|
@@ -6820,7 +7091,7 @@ var PlusMinusInput = ({
|
|
|
6820
7091
|
}
|
|
6821
7092
|
});
|
|
6822
7093
|
const inputValue = (0, import_react_hook_form9.useWatch)({ control, name: "inputValue" });
|
|
6823
|
-
const setInputValue = (0,
|
|
7094
|
+
const setInputValue = (0, import_react31.useCallback)(
|
|
6824
7095
|
(newValue) => {
|
|
6825
7096
|
if (Number.isNaN(newValue) || newValue < 0) {
|
|
6826
7097
|
return;
|
|
@@ -6829,7 +7100,7 @@ var PlusMinusInput = ({
|
|
|
6829
7100
|
},
|
|
6830
7101
|
[setValue]
|
|
6831
7102
|
);
|
|
6832
|
-
(0,
|
|
7103
|
+
(0, import_react31.useEffect)(() => {
|
|
6833
7104
|
clearErrors("inputValue");
|
|
6834
7105
|
if (inputValue === "") {
|
|
6835
7106
|
setError("inputValue", {
|
|
@@ -6849,7 +7120,7 @@ var PlusMinusInput = ({
|
|
|
6849
7120
|
}
|
|
6850
7121
|
}
|
|
6851
7122
|
}, [clearErrors, inputValue, setError]);
|
|
6852
|
-
(0,
|
|
7123
|
+
(0, import_react31.useEffect)(() => {
|
|
6853
7124
|
if (typeof initialValue !== "number") {
|
|
6854
7125
|
return;
|
|
6855
7126
|
}
|
|
@@ -6885,15 +7156,15 @@ var PlusMinusInput = ({
|
|
|
6885
7156
|
updateInputValue(value);
|
|
6886
7157
|
};
|
|
6887
7158
|
const { classes, cx } = useStyles35();
|
|
6888
|
-
return /* @__PURE__ */ (0,
|
|
6889
|
-
|
|
7159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
7160
|
+
import_material55.FormGroup,
|
|
6890
7161
|
{
|
|
6891
7162
|
className: cx(classes.wrapper, {
|
|
6892
7163
|
[classes.leftButtons]: buttonsPosition === "left",
|
|
6893
7164
|
[classes.rightButtons]: buttonsPosition === "right"
|
|
6894
7165
|
}),
|
|
6895
7166
|
children: [
|
|
6896
|
-
/* @__PURE__ */ (0,
|
|
7167
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6897
7168
|
RoundButton_default,
|
|
6898
7169
|
{
|
|
6899
7170
|
className: classes.minus,
|
|
@@ -6903,19 +7174,19 @@ var PlusMinusInput = ({
|
|
|
6903
7174
|
size: "small"
|
|
6904
7175
|
}
|
|
6905
7176
|
),
|
|
6906
|
-
/* @__PURE__ */ (0,
|
|
6907
|
-
/* @__PURE__ */ (0,
|
|
7177
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { children: [
|
|
7178
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6908
7179
|
import_react_hook_form9.Controller,
|
|
6909
7180
|
{
|
|
6910
7181
|
control,
|
|
6911
7182
|
name: "inputValue",
|
|
6912
|
-
render: ({ field }) => /* @__PURE__ */ (0,
|
|
6913
|
-
|
|
7183
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7184
|
+
import_material55.FormControlLabel,
|
|
6914
7185
|
{
|
|
6915
7186
|
...field,
|
|
6916
7187
|
className: classes.formControlLabel,
|
|
6917
|
-
control: /* @__PURE__ */ (0,
|
|
6918
|
-
|
|
7188
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7189
|
+
import_material55.TextField,
|
|
6919
7190
|
{
|
|
6920
7191
|
className: classes.input,
|
|
6921
7192
|
disabled,
|
|
@@ -6931,8 +7202,8 @@ var PlusMinusInput = ({
|
|
|
6931
7202
|
)
|
|
6932
7203
|
}
|
|
6933
7204
|
),
|
|
6934
|
-
errors.inputValue && /* @__PURE__ */ (0,
|
|
6935
|
-
|
|
7205
|
+
errors.inputValue && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7206
|
+
import_material55.Typography,
|
|
6936
7207
|
{
|
|
6937
7208
|
className: classes.errorText,
|
|
6938
7209
|
color: "error",
|
|
@@ -6942,7 +7213,7 @@ var PlusMinusInput = ({
|
|
|
6942
7213
|
}
|
|
6943
7214
|
)
|
|
6944
7215
|
] }),
|
|
6945
|
-
/* @__PURE__ */ (0,
|
|
7216
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6946
7217
|
RoundButton_default,
|
|
6947
7218
|
{
|
|
6948
7219
|
className: classes.plus,
|
|
@@ -6959,28 +7230,28 @@ var PlusMinusInput = ({
|
|
|
6959
7230
|
var PlusMinusInput_default = PlusMinusInput;
|
|
6960
7231
|
|
|
6961
7232
|
// src/components/ProductBust/ProductBust.tsx
|
|
6962
|
-
var
|
|
6963
|
-
var
|
|
7233
|
+
var import_react32 = require("react");
|
|
7234
|
+
var import_material57 = require("@mui/material");
|
|
6964
7235
|
var import_mui39 = require("tss-react/mui");
|
|
6965
7236
|
|
|
6966
7237
|
// src/components/ProductImage/ProductImage.tsx
|
|
6967
|
-
var
|
|
7238
|
+
var import_material56 = require("@mui/material");
|
|
6968
7239
|
var import_mui38 = require("tss-react/mui");
|
|
6969
|
-
var
|
|
7240
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
6970
7241
|
var PImage = ({
|
|
6971
7242
|
classes,
|
|
6972
7243
|
image,
|
|
6973
7244
|
size = "c_productbust__image_xs",
|
|
6974
7245
|
status
|
|
6975
|
-
}) => /* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
6977
|
-
|
|
7246
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: classes.c_productbust__image, children: [
|
|
7247
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
7248
|
+
import_material56.CardMedia,
|
|
6978
7249
|
{
|
|
6979
7250
|
className: classes[size],
|
|
6980
7251
|
image: image || "@/resources/img/peas.jpg"
|
|
6981
7252
|
}
|
|
6982
7253
|
),
|
|
6983
|
-
status && status !== "ACTIVE" && /* @__PURE__ */ (0,
|
|
7254
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: classes.c_productbust__label_status, children: status })
|
|
6984
7255
|
] });
|
|
6985
7256
|
var ProductImage = (0, import_mui38.withStyles)(PImage, (theme) => ({
|
|
6986
7257
|
c_productbust__label_status: {
|
|
@@ -7062,7 +7333,7 @@ var ProductImage = (0, import_mui38.withStyles)(PImage, (theme) => ({
|
|
|
7062
7333
|
var ProductImage_default = ProductImage;
|
|
7063
7334
|
|
|
7064
7335
|
// src/components/ProductBust/ProductBust.tsx
|
|
7065
|
-
var
|
|
7336
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
7066
7337
|
var PBust = ({
|
|
7067
7338
|
classes,
|
|
7068
7339
|
size,
|
|
@@ -7104,8 +7375,8 @@ var PBust = ({
|
|
|
7104
7375
|
default:
|
|
7105
7376
|
break;
|
|
7106
7377
|
}
|
|
7107
|
-
const [historyVisible, setHistoryVisible] = (0,
|
|
7108
|
-
const historyDataIcon = () => /* @__PURE__ */ (0,
|
|
7378
|
+
const [historyVisible, setHistoryVisible] = (0, import_react32.useState)(false);
|
|
7379
|
+
const historyDataIcon = () => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7109
7380
|
RoundButton_default,
|
|
7110
7381
|
{
|
|
7111
7382
|
icon: "history",
|
|
@@ -7113,8 +7384,8 @@ var PBust = ({
|
|
|
7113
7384
|
size: "small"
|
|
7114
7385
|
}
|
|
7115
7386
|
);
|
|
7116
|
-
return /* @__PURE__ */ (0,
|
|
7117
|
-
/* @__PURE__ */ (0,
|
|
7387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust, children: [
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7118
7389
|
ProductImage_default,
|
|
7119
7390
|
{
|
|
7120
7391
|
image: product?.image,
|
|
@@ -7122,11 +7393,11 @@ var PBust = ({
|
|
|
7122
7393
|
size: imageSize
|
|
7123
7394
|
}
|
|
7124
7395
|
),
|
|
7125
|
-
/* @__PURE__ */ (0,
|
|
7126
|
-
/* @__PURE__ */ (0,
|
|
7127
|
-
/* @__PURE__ */ (0,
|
|
7128
|
-
/* @__PURE__ */ (0,
|
|
7129
|
-
|
|
7396
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__container, children: [
|
|
7397
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__heading, children: [
|
|
7398
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { children: [
|
|
7399
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7400
|
+
import_material57.Typography,
|
|
7130
7401
|
{
|
|
7131
7402
|
component: "span",
|
|
7132
7403
|
color: "textSecondary",
|
|
@@ -7134,19 +7405,19 @@ var PBust = ({
|
|
|
7134
7405
|
children: !!locationData && locationData
|
|
7135
7406
|
}
|
|
7136
7407
|
),
|
|
7137
|
-
/* @__PURE__ */ (0,
|
|
7138
|
-
!product && /* @__PURE__ */ (0,
|
|
7139
|
-
primaryData || /* @__PURE__ */ (0,
|
|
7140
|
-
/* @__PURE__ */ (0,
|
|
7141
|
-
|
|
7408
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Typography, { component: "span", className: classes[titleSize], children: product?.name }),
|
|
7409
|
+
!product && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Typography, { component: "span", className: classes[titleSize], children: "Empty Position" }),
|
|
7410
|
+
primaryData || /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
7411
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7412
|
+
import_material57.Typography,
|
|
7142
7413
|
{
|
|
7143
7414
|
style: { color: "#555" },
|
|
7144
7415
|
className: classes[subtitle1Size],
|
|
7145
7416
|
children: product?.category.name
|
|
7146
7417
|
}
|
|
7147
7418
|
),
|
|
7148
|
-
/* @__PURE__ */ (0,
|
|
7149
|
-
|
|
7419
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7420
|
+
import_material57.Typography,
|
|
7150
7421
|
{
|
|
7151
7422
|
style: { color: "#A42966", textTransform: "uppercase" },
|
|
7152
7423
|
className: classes[subtitle2Size],
|
|
@@ -7155,14 +7426,14 @@ var PBust = ({
|
|
|
7155
7426
|
)
|
|
7156
7427
|
] })
|
|
7157
7428
|
] }),
|
|
7158
|
-
/* @__PURE__ */ (0,
|
|
7159
|
-
/* @__PURE__ */ (0,
|
|
7160
|
-
/* @__PURE__ */ (0,
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__btns, children: [
|
|
7430
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: buttonData }),
|
|
7431
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: !!locationId && historyDataIcon() })
|
|
7161
7432
|
] })
|
|
7162
7433
|
] }),
|
|
7163
|
-
/* @__PURE__ */ (0,
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: !!secondaryData && secondaryData })
|
|
7164
7435
|
] }),
|
|
7165
|
-
/* @__PURE__ */ (0,
|
|
7436
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7166
7437
|
LocationHistoryDialog,
|
|
7167
7438
|
{
|
|
7168
7439
|
handleVisible: setHistoryVisible,
|
|
@@ -7264,23 +7535,23 @@ var ProductBust = (0, import_mui39.withStyles)(PBust, (theme) => ({
|
|
|
7264
7535
|
var ProductBust_default = ProductBust;
|
|
7265
7536
|
|
|
7266
7537
|
// src/components/RenderAvatar/RenderAvatar.tsx
|
|
7267
|
-
var
|
|
7538
|
+
var import_material58 = require("@mui/material");
|
|
7268
7539
|
var import_mui40 = require("tss-react/mui");
|
|
7269
|
-
var
|
|
7540
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
7270
7541
|
var RenderAvatar = ({ active }) => {
|
|
7271
|
-
const StyledBadge = (0, import_mui40.withStyles)(
|
|
7542
|
+
const StyledBadge = (0, import_mui40.withStyles)(import_material58.Badge, () => ({
|
|
7272
7543
|
root: {
|
|
7273
7544
|
".MuiBadge-dot": {
|
|
7274
7545
|
backgroundColor: active ? colors.muiSuccess : colors.neutral700
|
|
7275
7546
|
}
|
|
7276
7547
|
}
|
|
7277
7548
|
}));
|
|
7278
|
-
return /* @__PURE__ */ (0,
|
|
7279
|
-
|
|
7549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
7550
|
+
import_material58.Box,
|
|
7280
7551
|
{
|
|
7281
7552
|
sx: { display: "flex", flexDirection: "column", alignItems: "center" },
|
|
7282
7553
|
children: [
|
|
7283
|
-
/* @__PURE__ */ (0,
|
|
7554
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7284
7555
|
StyledBadge,
|
|
7285
7556
|
{
|
|
7286
7557
|
overlap: "circular",
|
|
@@ -7289,10 +7560,10 @@ var RenderAvatar = ({ active }) => {
|
|
|
7289
7560
|
horizontal: "right"
|
|
7290
7561
|
},
|
|
7291
7562
|
variant: "dot",
|
|
7292
|
-
children: /* @__PURE__ */ (0,
|
|
7563
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Avatar, {})
|
|
7293
7564
|
}
|
|
7294
7565
|
),
|
|
7295
|
-
/* @__PURE__ */ (0,
|
|
7566
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { variant: "caption", children: active ? "Active" : "Disabled" })
|
|
7296
7567
|
]
|
|
7297
7568
|
}
|
|
7298
7569
|
);
|
|
@@ -7300,17 +7571,17 @@ var RenderAvatar = ({ active }) => {
|
|
|
7300
7571
|
var RenderAvatar_default = RenderAvatar;
|
|
7301
7572
|
|
|
7302
7573
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
7303
|
-
var
|
|
7574
|
+
var import_react34 = require("react");
|
|
7304
7575
|
var import_WarningAmber = __toESM(require("@mui/icons-material/WarningAmber"), 1);
|
|
7305
|
-
var
|
|
7576
|
+
var import_material59 = require("@mui/material");
|
|
7306
7577
|
var import_mui41 = require("tss-react/mui");
|
|
7307
7578
|
|
|
7308
7579
|
// src/utils/useGetActiveSection.ts
|
|
7309
|
-
var
|
|
7580
|
+
var import_react33 = require("react");
|
|
7310
7581
|
var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
|
|
7311
7582
|
|
|
7312
7583
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
7313
|
-
var
|
|
7584
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
7314
7585
|
var useStyles36 = (0, import_mui41.makeStyles)()(
|
|
7315
7586
|
(_theme, _params, classes) => ({
|
|
7316
7587
|
root: {
|
|
@@ -7331,11 +7602,11 @@ var RenderContentList = ({
|
|
|
7331
7602
|
warningMessage = "Missing information on this section"
|
|
7332
7603
|
}) => {
|
|
7333
7604
|
const { classes } = useStyles36();
|
|
7334
|
-
const [active, setActive] = (0,
|
|
7335
|
-
const observer = (0,
|
|
7336
|
-
const isScrolling = (0,
|
|
7337
|
-
const timeoutScrolling = (0,
|
|
7338
|
-
(0,
|
|
7605
|
+
const [active, setActive] = (0, import_react34.useState)(activeSection);
|
|
7606
|
+
const observer = (0, import_react34.useRef)(null);
|
|
7607
|
+
const isScrolling = (0, import_react34.useRef)(false);
|
|
7608
|
+
const timeoutScrolling = (0, import_react34.useRef)(null);
|
|
7609
|
+
(0, import_react34.useEffect)(() => {
|
|
7339
7610
|
if (!activeSection) {
|
|
7340
7611
|
return void 0;
|
|
7341
7612
|
}
|
|
@@ -7359,7 +7630,7 @@ var RenderContentList = ({
|
|
|
7359
7630
|
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
7360
7631
|
};
|
|
7361
7632
|
}, [activeSection]);
|
|
7362
|
-
(0,
|
|
7633
|
+
(0, import_react34.useEffect)(() => {
|
|
7363
7634
|
const sections = items.map((item) => ({
|
|
7364
7635
|
id: transformNameToID(item),
|
|
7365
7636
|
element: document.getElementById(transformNameToID(item))
|
|
@@ -7408,23 +7679,23 @@ var RenderContentList = ({
|
|
|
7408
7679
|
isScrolling.current = false;
|
|
7409
7680
|
}, 1e3);
|
|
7410
7681
|
};
|
|
7411
|
-
return /* @__PURE__ */ (0,
|
|
7412
|
-
|
|
7682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7683
|
+
import_material59.List,
|
|
7413
7684
|
{
|
|
7414
7685
|
component: "nav",
|
|
7415
7686
|
"aria-labelledby": "nested-list-subheader",
|
|
7416
|
-
subheader: /* @__PURE__ */ (0,
|
|
7687
|
+
subheader: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
7417
7688
|
children: items.map((item) => {
|
|
7418
7689
|
const id = transformNameToID(item);
|
|
7419
|
-
return /* @__PURE__ */ (0,
|
|
7420
|
-
|
|
7690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
7691
|
+
import_material59.ListItemButton,
|
|
7421
7692
|
{
|
|
7422
7693
|
selected: active === id,
|
|
7423
7694
|
classes: { root: classes.root, selected: classes.selected },
|
|
7424
7695
|
onClick: () => handleMenuClick(id),
|
|
7425
7696
|
children: [
|
|
7426
|
-
/* @__PURE__ */ (0,
|
|
7427
|
-
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0,
|
|
7697
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.ListItemText, { primary: item }),
|
|
7698
|
+
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.Tooltip, { title: warningMessage, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_WarningAmber.default, { color: "warning" }) })
|
|
7428
7699
|
]
|
|
7429
7700
|
},
|
|
7430
7701
|
id
|
|
@@ -7436,9 +7707,9 @@ var RenderContentList = ({
|
|
|
7436
7707
|
var RenderContentList_default = RenderContentList;
|
|
7437
7708
|
|
|
7438
7709
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
7439
|
-
var
|
|
7710
|
+
var import_material60 = require("@mui/material");
|
|
7440
7711
|
var import_mui42 = require("tss-react/mui");
|
|
7441
|
-
var
|
|
7712
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
7442
7713
|
var useStyles37 = (0, import_mui42.makeStyles)()((theme) => ({
|
|
7443
7714
|
wrapper: {
|
|
7444
7715
|
display: "flex",
|
|
@@ -7477,8 +7748,8 @@ var RowProductCard = ({
|
|
|
7477
7748
|
medium: "c_productbust__image_md",
|
|
7478
7749
|
large: "c_productbust__image_lg"
|
|
7479
7750
|
};
|
|
7480
|
-
return /* @__PURE__ */ (0,
|
|
7481
|
-
/* @__PURE__ */ (0,
|
|
7751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material60.Paper, { className: classes.wrapper, children: [
|
|
7752
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7482
7753
|
ProductImage_default,
|
|
7483
7754
|
{
|
|
7484
7755
|
image: product.image,
|
|
@@ -7486,15 +7757,15 @@ var RowProductCard = ({
|
|
|
7486
7757
|
size: imageSize[size]
|
|
7487
7758
|
}
|
|
7488
7759
|
),
|
|
7489
|
-
/* @__PURE__ */ (0,
|
|
7760
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7490
7761
|
"div",
|
|
7491
7762
|
{
|
|
7492
7763
|
className: cx(classes.content, {
|
|
7493
7764
|
[classes.onlyProductName]: !hasColumns && !location
|
|
7494
7765
|
}),
|
|
7495
7766
|
children: [
|
|
7496
|
-
/* @__PURE__ */ (0,
|
|
7497
|
-
|
|
7767
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7768
|
+
import_material60.Box,
|
|
7498
7769
|
{
|
|
7499
7770
|
className: classes.upperRow,
|
|
7500
7771
|
sx: {
|
|
@@ -7503,26 +7774,26 @@ var RowProductCard = ({
|
|
|
7503
7774
|
alignItems: "center"
|
|
7504
7775
|
},
|
|
7505
7776
|
children: [
|
|
7506
|
-
/* @__PURE__ */ (0,
|
|
7507
|
-
location ? /* @__PURE__ */ (0,
|
|
7508
|
-
/* @__PURE__ */ (0,
|
|
7777
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { children: [
|
|
7778
|
+
location ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
7779
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "h6", children: product.name })
|
|
7509
7780
|
] }),
|
|
7510
7781
|
children
|
|
7511
7782
|
]
|
|
7512
7783
|
}
|
|
7513
7784
|
),
|
|
7514
|
-
hasColumns ? /* @__PURE__ */ (0,
|
|
7515
|
-
/* @__PURE__ */ (0,
|
|
7516
|
-
/* @__PURE__ */ (0,
|
|
7517
|
-
|
|
7785
|
+
hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
7786
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Divider, { className: classes.divider }),
|
|
7787
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7788
|
+
import_material60.Box,
|
|
7518
7789
|
{
|
|
7519
7790
|
sx: {
|
|
7520
7791
|
display: "flex",
|
|
7521
7792
|
gap: "24px"
|
|
7522
7793
|
},
|
|
7523
|
-
children: columns.map((column) => /* @__PURE__ */ (0,
|
|
7524
|
-
/* @__PURE__ */ (0,
|
|
7525
|
-
typeof column.value === "string" ? /* @__PURE__ */ (0,
|
|
7794
|
+
children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { children: [
|
|
7795
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
7796
|
+
typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "body1", children: column.value }) : column.value
|
|
7526
7797
|
] }, column.title))
|
|
7527
7798
|
}
|
|
7528
7799
|
)
|
|
@@ -7535,10 +7806,10 @@ var RowProductCard = ({
|
|
|
7535
7806
|
var RowProductCard_default = RowProductCard;
|
|
7536
7807
|
|
|
7537
7808
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
7538
|
-
var
|
|
7539
|
-
var
|
|
7809
|
+
var import_react35 = require("react");
|
|
7810
|
+
var import_material61 = require("@mui/material");
|
|
7540
7811
|
var import_mui43 = require("tss-react/mui");
|
|
7541
|
-
var
|
|
7812
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
7542
7813
|
var useStyles38 = (0, import_mui43.makeStyles)()((theme) => ({
|
|
7543
7814
|
dialog: {
|
|
7544
7815
|
margin: "0 auto",
|
|
@@ -7578,18 +7849,18 @@ var ScrollableDialog = ({
|
|
|
7578
7849
|
isOpen,
|
|
7579
7850
|
title
|
|
7580
7851
|
}) => {
|
|
7581
|
-
const [bodyHeight, setBodyHeight] = (0,
|
|
7582
|
-
const [hasScrollBar, setHasScrollBar] = (0,
|
|
7583
|
-
const [maxDialogHeight, setMaxDialogHeight] = (0,
|
|
7852
|
+
const [bodyHeight, setBodyHeight] = (0, import_react35.useState)(0);
|
|
7853
|
+
const [hasScrollBar, setHasScrollBar] = (0, import_react35.useState)(false);
|
|
7854
|
+
const [maxDialogHeight, setMaxDialogHeight] = (0, import_react35.useState)(0);
|
|
7584
7855
|
const { classes, cx } = useStyles38();
|
|
7585
|
-
const headerRef = (0,
|
|
7586
|
-
const footerRef = (0,
|
|
7587
|
-
const titleRef = (0,
|
|
7588
|
-
const bodyRef = (0,
|
|
7856
|
+
const headerRef = (0, import_react35.useRef)(null);
|
|
7857
|
+
const footerRef = (0, import_react35.useRef)(null);
|
|
7858
|
+
const titleRef = (0, import_react35.useRef)(null);
|
|
7859
|
+
const bodyRef = (0, import_react35.useRef)(null);
|
|
7589
7860
|
const DIALOG_MARGIN = 65;
|
|
7590
7861
|
const DEFAULT_MAX_HEIGHT = 728;
|
|
7591
7862
|
const TITLE_MARGIN = 48;
|
|
7592
|
-
(0,
|
|
7863
|
+
(0, import_react35.useEffect)(() => {
|
|
7593
7864
|
const handleResize = () => {
|
|
7594
7865
|
const screenHeight = window.innerHeight;
|
|
7595
7866
|
const newMaxHeight = screenHeight < DEFAULT_MAX_HEIGHT + DIALOG_MARGIN ? screenHeight - DIALOG_MARGIN : DEFAULT_MAX_HEIGHT;
|
|
@@ -7608,23 +7879,23 @@ var ScrollableDialog = ({
|
|
|
7608
7879
|
const scrollHeight = bodyRef.current?.scrollHeight || 0;
|
|
7609
7880
|
setHasScrollBar(scrollHeight > contentHeight);
|
|
7610
7881
|
};
|
|
7611
|
-
(0,
|
|
7882
|
+
(0, import_react35.useEffect)(() => {
|
|
7612
7883
|
if (isOpen) {
|
|
7613
7884
|
requestAnimationFrame(measureHeights);
|
|
7614
7885
|
}
|
|
7615
7886
|
}, [isOpen, header, footer, title, maxDialogHeight]);
|
|
7616
|
-
return /* @__PURE__ */ (0,
|
|
7617
|
-
|
|
7887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Dialog, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7888
|
+
import_material61.Fade,
|
|
7618
7889
|
{
|
|
7619
7890
|
in: isOpen,
|
|
7620
7891
|
onEntered: () => {
|
|
7621
7892
|
requestAnimationFrame(measureHeights);
|
|
7622
7893
|
},
|
|
7623
|
-
children: /* @__PURE__ */ (0,
|
|
7624
|
-
header ? /* @__PURE__ */ (0,
|
|
7625
|
-
/* @__PURE__ */ (0,
|
|
7626
|
-
/* @__PURE__ */ (0,
|
|
7627
|
-
|
|
7894
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Paper, { className: classes.wrapper, children: [
|
|
7895
|
+
header ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: classes.header, id: "dialog-header", children: header }) : null,
|
|
7896
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: classes.body, children: [
|
|
7897
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7898
|
+
import_material61.Typography,
|
|
7628
7899
|
{
|
|
7629
7900
|
className: classes.title,
|
|
7630
7901
|
id: "dialog-title",
|
|
@@ -7632,7 +7903,7 @@ var ScrollableDialog = ({
|
|
|
7632
7903
|
children: title
|
|
7633
7904
|
}
|
|
7634
7905
|
),
|
|
7635
|
-
/* @__PURE__ */ (0,
|
|
7906
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7636
7907
|
"div",
|
|
7637
7908
|
{
|
|
7638
7909
|
className: cx(classes.scrollableContainer, {
|
|
@@ -7646,9 +7917,9 @@ var ScrollableDialog = ({
|
|
|
7646
7917
|
}
|
|
7647
7918
|
)
|
|
7648
7919
|
] }),
|
|
7649
|
-
/* @__PURE__ */ (0,
|
|
7650
|
-
footer ? /* @__PURE__ */ (0,
|
|
7651
|
-
|
|
7920
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, {}),
|
|
7921
|
+
footer ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7922
|
+
import_material61.Box,
|
|
7652
7923
|
{
|
|
7653
7924
|
className: classes.footer,
|
|
7654
7925
|
id: "dialog-footer",
|
|
@@ -7666,16 +7937,16 @@ var ScrollableDialog = ({
|
|
|
7666
7937
|
var ScrollableDialog_default = ScrollableDialog;
|
|
7667
7938
|
|
|
7668
7939
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7669
|
-
var
|
|
7940
|
+
var import_material63 = require("@mui/material");
|
|
7670
7941
|
var import_mui45 = require("tss-react/mui");
|
|
7671
7942
|
|
|
7672
7943
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
7673
|
-
var
|
|
7944
|
+
var import_react36 = require("react");
|
|
7674
7945
|
var React6 = __toESM(require("react"), 1);
|
|
7675
7946
|
var import_icons_material4 = require("@mui/icons-material");
|
|
7676
|
-
var
|
|
7947
|
+
var import_material62 = require("@mui/material");
|
|
7677
7948
|
var import_mui44 = require("tss-react/mui");
|
|
7678
|
-
var
|
|
7949
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
7679
7950
|
var useStyles39 = (0, import_mui44.makeStyles)()((theme) => ({
|
|
7680
7951
|
searchContainer: {
|
|
7681
7952
|
height: 46,
|
|
@@ -7720,7 +7991,7 @@ var SearchWithFilters = ({
|
|
|
7720
7991
|
},
|
|
7721
7992
|
disabled = false
|
|
7722
7993
|
}) => {
|
|
7723
|
-
const [searchText, setSearchText] = (0,
|
|
7994
|
+
const [searchText, setSearchText] = (0, import_react36.useState)(searchValue);
|
|
7724
7995
|
const { classes } = useStyles39();
|
|
7725
7996
|
const handleTextChange = (e) => {
|
|
7726
7997
|
const { value } = e.target;
|
|
@@ -7732,13 +8003,13 @@ var SearchWithFilters = ({
|
|
|
7732
8003
|
enterPressedInSearch?.();
|
|
7733
8004
|
}
|
|
7734
8005
|
};
|
|
7735
|
-
(0,
|
|
8006
|
+
(0, import_react36.useEffect)(() => {
|
|
7736
8007
|
setSearchText(searchValue);
|
|
7737
8008
|
}, [searchValue]);
|
|
7738
|
-
return /* @__PURE__ */ (0,
|
|
7739
|
-
/* @__PURE__ */ (0,
|
|
7740
|
-
/* @__PURE__ */ (0,
|
|
7741
|
-
|
|
8009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Paper, { className: classes.searchContainer, children: [
|
|
8010
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.Search, { className: classes.icon, fontSize: "small" }),
|
|
8011
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
8012
|
+
import_material62.InputBase,
|
|
7742
8013
|
{
|
|
7743
8014
|
className: classes.input,
|
|
7744
8015
|
placeholder: "Search",
|
|
@@ -7749,16 +8020,16 @@ var SearchWithFilters = ({
|
|
|
7749
8020
|
inputProps: { "aria-label": "search" }
|
|
7750
8021
|
}
|
|
7751
8022
|
),
|
|
7752
|
-
/* @__PURE__ */ (0,
|
|
7753
|
-
/* @__PURE__ */ (0,
|
|
7754
|
-
|
|
8023
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, { className: classes.divider, orientation: "vertical" }),
|
|
8024
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
|
|
8025
|
+
import_material62.Button,
|
|
7755
8026
|
{
|
|
7756
8027
|
className: classes.filterButton,
|
|
7757
8028
|
onClick: filterClick,
|
|
7758
8029
|
disabled,
|
|
7759
8030
|
children: [
|
|
7760
8031
|
"Filters",
|
|
7761
|
-
showFilters ? /* @__PURE__ */ (0,
|
|
8032
|
+
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.ArrowDropUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.ArrowDropDown, {})
|
|
7762
8033
|
]
|
|
7763
8034
|
}
|
|
7764
8035
|
)
|
|
@@ -7767,7 +8038,7 @@ var SearchWithFilters = ({
|
|
|
7767
8038
|
var SearchWithFilters_default = React6.memo(SearchWithFilters);
|
|
7768
8039
|
|
|
7769
8040
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7770
|
-
var
|
|
8041
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7771
8042
|
var useStyles40 = (0, import_mui45.makeStyles)()((theme) => ({
|
|
7772
8043
|
wrapper: {
|
|
7773
8044
|
display: "flex",
|
|
@@ -7803,11 +8074,11 @@ var SearchAndFilterHeader = ({
|
|
|
7803
8074
|
searchValue
|
|
7804
8075
|
}) => {
|
|
7805
8076
|
const { classes } = useStyles40();
|
|
7806
|
-
return /* @__PURE__ */ (0,
|
|
7807
|
-
/* @__PURE__ */ (0,
|
|
7808
|
-
/* @__PURE__ */ (0,
|
|
7809
|
-
/* @__PURE__ */ (0,
|
|
7810
|
-
/* @__PURE__ */ (0,
|
|
8077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.wrapper, children: [
|
|
8078
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.container, children: [
|
|
8079
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.leftSection, children: [
|
|
8080
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(AppLabel_default, { appName }),
|
|
8081
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7811
8082
|
SearchWithFilters_default,
|
|
7812
8083
|
{
|
|
7813
8084
|
searchValue,
|
|
@@ -7818,9 +8089,9 @@ var SearchAndFilterHeader = ({
|
|
|
7818
8089
|
}
|
|
7819
8090
|
)
|
|
7820
8091
|
] }),
|
|
7821
|
-
/* @__PURE__ */ (0,
|
|
8092
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: extraButton })
|
|
7822
8093
|
] }),
|
|
7823
|
-
showFilters ? /* @__PURE__ */ (0,
|
|
8094
|
+
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: filtersComponent }) : null,
|
|
7824
8095
|
appliedFiltersComponent
|
|
7825
8096
|
] }) });
|
|
7826
8097
|
};
|
|
@@ -7828,15 +8099,15 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
7828
8099
|
|
|
7829
8100
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7830
8101
|
var React7 = __toESM(require("react"), 1);
|
|
7831
|
-
var
|
|
8102
|
+
var import_material65 = require("@mui/material");
|
|
7832
8103
|
var import_mui47 = require("tss-react/mui");
|
|
7833
8104
|
|
|
7834
8105
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
7835
|
-
var
|
|
8106
|
+
var import_react37 = require("react");
|
|
7836
8107
|
var import_icons_material5 = require("@mui/icons-material");
|
|
7837
|
-
var
|
|
8108
|
+
var import_material64 = require("@mui/material");
|
|
7838
8109
|
var import_mui46 = require("tss-react/mui");
|
|
7839
|
-
var
|
|
8110
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7840
8111
|
var useStyles41 = (0, import_mui46.makeStyles)()((theme) => ({
|
|
7841
8112
|
c_search: {
|
|
7842
8113
|
height: 46,
|
|
@@ -7896,7 +8167,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7896
8167
|
searchedValue
|
|
7897
8168
|
} = props;
|
|
7898
8169
|
const { classes } = useStyles41();
|
|
7899
|
-
const [searchText, setSearchText] = (0,
|
|
8170
|
+
const [searchText, setSearchText] = (0, import_react37.useState)("");
|
|
7900
8171
|
const handleTextChange = (e) => {
|
|
7901
8172
|
const { value } = e.target;
|
|
7902
8173
|
setSearchText(value);
|
|
@@ -7911,10 +8182,10 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7911
8182
|
}
|
|
7912
8183
|
};
|
|
7913
8184
|
const ArrowIcon = isOpen ? import_icons_material5.ArrowDropUp : import_icons_material5.ArrowDropDown;
|
|
7914
|
-
return /* @__PURE__ */ (0,
|
|
7915
|
-
/* @__PURE__ */ (0,
|
|
7916
|
-
/* @__PURE__ */ (0,
|
|
7917
|
-
|
|
8185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_material64.Paper, { className: classes.c_search, children: [
|
|
8186
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_icons_material5.Search, { className: classes.icon, fontSize: "small" }) }),
|
|
8187
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
8188
|
+
import_material64.InputBase,
|
|
7918
8189
|
{
|
|
7919
8190
|
className: classes.c_search__input,
|
|
7920
8191
|
placeholder: "Search",
|
|
@@ -7923,32 +8194,32 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7923
8194
|
onKeyDown: handleKeyPress
|
|
7924
8195
|
}
|
|
7925
8196
|
),
|
|
7926
|
-
showFilterButton && /* @__PURE__ */ (0,
|
|
7927
|
-
/* @__PURE__ */ (0,
|
|
7928
|
-
|
|
8197
|
+
showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_jsx_runtime117.Fragment, { children: [
|
|
8198
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
8199
|
+
import_material64.Divider,
|
|
7929
8200
|
{
|
|
7930
8201
|
className: classes.c_search__divider,
|
|
7931
8202
|
orientation: "vertical"
|
|
7932
8203
|
}
|
|
7933
8204
|
),
|
|
7934
|
-
/* @__PURE__ */ (0,
|
|
7935
|
-
|
|
8205
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
8206
|
+
import_material64.Button,
|
|
7936
8207
|
{
|
|
7937
8208
|
className: classes.c_search__bt_filter,
|
|
7938
8209
|
onClick: handleFilterButtonClick,
|
|
7939
8210
|
children: [
|
|
7940
8211
|
"Filters",
|
|
7941
|
-
/* @__PURE__ */ (0,
|
|
8212
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
7942
8213
|
]
|
|
7943
8214
|
}
|
|
7944
8215
|
)
|
|
7945
8216
|
] })
|
|
7946
8217
|
] });
|
|
7947
8218
|
};
|
|
7948
|
-
var SearchWithFiltersForTable_default = (0,
|
|
8219
|
+
var SearchWithFiltersForTable_default = (0, import_react37.memo)(SearchWithFiltersForTable);
|
|
7949
8220
|
|
|
7950
8221
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7951
|
-
var
|
|
8222
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7952
8223
|
var useStyles42 = (0, import_mui47.makeStyles)()((theme) => ({
|
|
7953
8224
|
container: {
|
|
7954
8225
|
display: "flex",
|
|
@@ -7980,10 +8251,10 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7980
8251
|
searchedValue
|
|
7981
8252
|
} = props;
|
|
7982
8253
|
const { classes } = useStyles42();
|
|
7983
|
-
return /* @__PURE__ */ (0,
|
|
7984
|
-
/* @__PURE__ */ (0,
|
|
7985
|
-
/* @__PURE__ */ (0,
|
|
7986
|
-
/* @__PURE__ */ (0,
|
|
8254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.container, children: [
|
|
8255
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.leftSection, children: [
|
|
8256
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(AppLabel_default, { appName }),
|
|
8257
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7987
8258
|
SearchWithFiltersForTable_default,
|
|
7988
8259
|
{
|
|
7989
8260
|
onFilterButtonClick,
|
|
@@ -7994,24 +8265,24 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7994
8265
|
searchedValue
|
|
7995
8266
|
}
|
|
7996
8267
|
),
|
|
7997
|
-
copy && /* @__PURE__ */ (0,
|
|
7998
|
-
|
|
8268
|
+
copy && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
8269
|
+
import_material65.Box,
|
|
7999
8270
|
{
|
|
8000
8271
|
sx: {
|
|
8001
8272
|
margin: 0.5
|
|
8002
8273
|
},
|
|
8003
|
-
children: /* @__PURE__ */ (0,
|
|
8274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(OutlinedButton_default, { copy })
|
|
8004
8275
|
}
|
|
8005
8276
|
)
|
|
8006
8277
|
] }),
|
|
8007
|
-
/* @__PURE__ */ (0,
|
|
8278
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Box, { children: button })
|
|
8008
8279
|
] });
|
|
8009
8280
|
};
|
|
8010
8281
|
var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
|
|
8011
8282
|
|
|
8012
8283
|
// src/components/SearchHeader/SearchHeader.tsx
|
|
8013
|
-
var
|
|
8014
|
-
var
|
|
8284
|
+
var import_material66 = require("@mui/material");
|
|
8285
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
8015
8286
|
var SearchHeader = ({
|
|
8016
8287
|
renderButton,
|
|
8017
8288
|
renderExtraAction,
|
|
@@ -8022,8 +8293,8 @@ var SearchHeader = ({
|
|
|
8022
8293
|
onKeyDown,
|
|
8023
8294
|
width
|
|
8024
8295
|
}) => {
|
|
8025
|
-
return /* @__PURE__ */ (0,
|
|
8026
|
-
|
|
8296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
8297
|
+
import_material66.Paper,
|
|
8027
8298
|
{
|
|
8028
8299
|
sx: {
|
|
8029
8300
|
display: "flex",
|
|
@@ -8031,8 +8302,8 @@ var SearchHeader = ({
|
|
|
8031
8302
|
padding: 2
|
|
8032
8303
|
},
|
|
8033
8304
|
children: [
|
|
8034
|
-
/* @__PURE__ */ (0,
|
|
8035
|
-
|
|
8305
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
8306
|
+
import_material66.Box,
|
|
8036
8307
|
{
|
|
8037
8308
|
sx: {
|
|
8038
8309
|
display: "flex",
|
|
@@ -8040,8 +8311,8 @@ var SearchHeader = ({
|
|
|
8040
8311
|
alignItems: "center"
|
|
8041
8312
|
},
|
|
8042
8313
|
children: [
|
|
8043
|
-
/* @__PURE__ */ (0,
|
|
8044
|
-
/* @__PURE__ */ (0,
|
|
8314
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_material66.Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
8315
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
8045
8316
|
SearchFieldDebounced,
|
|
8046
8317
|
{
|
|
8047
8318
|
width,
|
|
@@ -8066,9 +8337,9 @@ var SearchHeader = ({
|
|
|
8066
8337
|
// src/components/SectionName/SectionName.tsx
|
|
8067
8338
|
var import_History = __toESM(require("@mui/icons-material/History"), 1);
|
|
8068
8339
|
var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
|
|
8069
|
-
var
|
|
8340
|
+
var import_material67 = require("@mui/material");
|
|
8070
8341
|
var import_mui48 = require("tss-react/mui");
|
|
8071
|
-
var
|
|
8342
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
8072
8343
|
var useStyles43 = (0, import_mui48.makeStyles)()((theme) => ({
|
|
8073
8344
|
container: {
|
|
8074
8345
|
display: "flex",
|
|
@@ -8124,10 +8395,10 @@ var SectionName = ({
|
|
|
8124
8395
|
}
|
|
8125
8396
|
}
|
|
8126
8397
|
};
|
|
8127
|
-
return /* @__PURE__ */ (0,
|
|
8128
|
-
/* @__PURE__ */ (0,
|
|
8129
|
-
/* @__PURE__ */ (0,
|
|
8130
|
-
|
|
8398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.container, children: [
|
|
8399
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.titleContainer, children: [
|
|
8400
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8401
|
+
import_material67.Typography,
|
|
8131
8402
|
{
|
|
8132
8403
|
variant: "h5",
|
|
8133
8404
|
onClick: handleScroll,
|
|
@@ -8135,7 +8406,7 @@ var SectionName = ({
|
|
|
8135
8406
|
children: name
|
|
8136
8407
|
}
|
|
8137
8408
|
),
|
|
8138
|
-
tooltipDescription ? /* @__PURE__ */ (0,
|
|
8409
|
+
tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8139
8410
|
import_Info.default,
|
|
8140
8411
|
{
|
|
8141
8412
|
fontSize: "small",
|
|
@@ -8144,8 +8415,8 @@ var SectionName = ({
|
|
|
8144
8415
|
}
|
|
8145
8416
|
) }) : null
|
|
8146
8417
|
] }),
|
|
8147
|
-
/* @__PURE__ */ (0,
|
|
8148
|
-
buttonText ? /* @__PURE__ */ (0,
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.actionButtons, children: [
|
|
8419
|
+
buttonText ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8149
8420
|
ExtendedButton_default,
|
|
8150
8421
|
{
|
|
8151
8422
|
type: buttonType,
|
|
@@ -8158,17 +8429,17 @@ var SectionName = ({
|
|
|
8158
8429
|
variant: "text"
|
|
8159
8430
|
}
|
|
8160
8431
|
) : null,
|
|
8161
|
-
openHistoryLog && buttonText && /* @__PURE__ */ (0,
|
|
8162
|
-
openHistoryLog && /* @__PURE__ */ (0,
|
|
8432
|
+
openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Divider, { orientation: "vertical", sx: { height: "24px" } }),
|
|
8433
|
+
openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_History.default, {}) })
|
|
8163
8434
|
] })
|
|
8164
8435
|
] });
|
|
8165
8436
|
};
|
|
8166
8437
|
var SectionName_default = SectionName;
|
|
8167
8438
|
|
|
8168
8439
|
// src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
|
|
8169
|
-
var
|
|
8170
|
-
var
|
|
8171
|
-
var
|
|
8440
|
+
var import_react38 = require("react");
|
|
8441
|
+
var import_material68 = require("@mui/material");
|
|
8442
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
8172
8443
|
var SmartMultipleSelect = ({
|
|
8173
8444
|
inputLabel,
|
|
8174
8445
|
variant = "standard",
|
|
@@ -8186,7 +8457,7 @@ var SmartMultipleSelect = ({
|
|
|
8186
8457
|
helperText,
|
|
8187
8458
|
menuProps
|
|
8188
8459
|
}) => {
|
|
8189
|
-
const [localValues, setLocalValues] = (0,
|
|
8460
|
+
const [localValues, setLocalValues] = (0, import_react38.useState)(defaultValues ?? []);
|
|
8190
8461
|
const handleChangeOption = (option) => {
|
|
8191
8462
|
let newValues = [];
|
|
8192
8463
|
const selectedIndex = localValues.findIndex(
|
|
@@ -8200,19 +8471,19 @@ var SmartMultipleSelect = ({
|
|
|
8200
8471
|
setLocalValues(newValues);
|
|
8201
8472
|
onChange?.(newValues);
|
|
8202
8473
|
};
|
|
8203
|
-
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ (0,
|
|
8204
|
-
|
|
8474
|
+
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8475
|
+
import_material68.Box,
|
|
8205
8476
|
{
|
|
8206
8477
|
sx: { display: "flex", justifyContent: "center", alignItems: "center" },
|
|
8207
|
-
children: /* @__PURE__ */ (0,
|
|
8478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Typography, { children: emptyMessage })
|
|
8208
8479
|
}
|
|
8209
|
-
) : /* @__PURE__ */ (0,
|
|
8480
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Box, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
|
|
8210
8481
|
const selectedValues = values ?? localValues ?? [];
|
|
8211
8482
|
const isSelected = selectedValues.some(
|
|
8212
8483
|
(selected) => selected.value === option.value
|
|
8213
8484
|
);
|
|
8214
|
-
return /* @__PURE__ */ (0,
|
|
8215
|
-
|
|
8485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8486
|
+
import_material68.Box,
|
|
8216
8487
|
{
|
|
8217
8488
|
onClick: () => handleChangeOption(option),
|
|
8218
8489
|
sx: {
|
|
@@ -8222,15 +8493,15 @@ var SmartMultipleSelect = ({
|
|
|
8222
8493
|
backgroundColor: isSelected ? colors.lightBlueBackground : void 0
|
|
8223
8494
|
},
|
|
8224
8495
|
children: [
|
|
8225
|
-
/* @__PURE__ */ (0,
|
|
8226
|
-
/* @__PURE__ */ (0,
|
|
8496
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Checkbox, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
|
|
8497
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.ListItemText, { primary: option.label })
|
|
8227
8498
|
]
|
|
8228
8499
|
},
|
|
8229
8500
|
option.value ?? index
|
|
8230
8501
|
);
|
|
8231
8502
|
}) });
|
|
8232
|
-
return /* @__PURE__ */ (0,
|
|
8233
|
-
|
|
8503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8504
|
+
import_material68.FormControl,
|
|
8234
8505
|
{
|
|
8235
8506
|
fullWidth: true,
|
|
8236
8507
|
variant,
|
|
@@ -8238,9 +8509,9 @@ var SmartMultipleSelect = ({
|
|
|
8238
8509
|
disabled,
|
|
8239
8510
|
error,
|
|
8240
8511
|
children: [
|
|
8241
|
-
/* @__PURE__ */ (0,
|
|
8242
|
-
/* @__PURE__ */ (0,
|
|
8243
|
-
|
|
8512
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.InputLabel, { children: inputLabel }),
|
|
8513
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8514
|
+
import_material68.Select,
|
|
8244
8515
|
{
|
|
8245
8516
|
multiple: true,
|
|
8246
8517
|
label: inputLabel,
|
|
@@ -8252,37 +8523,37 @@ var SmartMultipleSelect = ({
|
|
|
8252
8523
|
onClose: () => onClose?.(localValues),
|
|
8253
8524
|
renderValue: (selectedValues) => {
|
|
8254
8525
|
const valuesString = selectedValues.map((v) => v.label)?.join(", ");
|
|
8255
|
-
return /* @__PURE__ */ (0,
|
|
8526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
|
|
8256
8527
|
},
|
|
8257
|
-
children: isLoading ? /* @__PURE__ */ (0,
|
|
8258
|
-
|
|
8528
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8529
|
+
import_material68.Box,
|
|
8259
8530
|
{
|
|
8260
8531
|
sx: {
|
|
8261
8532
|
display: "flex",
|
|
8262
8533
|
justifyContent: "center",
|
|
8263
8534
|
alignItems: "center"
|
|
8264
8535
|
},
|
|
8265
|
-
children: /* @__PURE__ */ (0,
|
|
8536
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.CircularProgress, { size: 24 })
|
|
8266
8537
|
}
|
|
8267
8538
|
) : renderMenuContent()
|
|
8268
8539
|
}
|
|
8269
8540
|
),
|
|
8270
|
-
helperText && /* @__PURE__ */ (0,
|
|
8541
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.FormHelperText, { children: helperText })
|
|
8271
8542
|
]
|
|
8272
8543
|
}
|
|
8273
8544
|
);
|
|
8274
8545
|
};
|
|
8275
8546
|
|
|
8276
8547
|
// src/components/SquareLabel/SquareLabel.tsx
|
|
8277
|
-
var
|
|
8278
|
-
var
|
|
8279
|
-
var
|
|
8548
|
+
var import_react39 = require("react");
|
|
8549
|
+
var import_material69 = require("@mui/material");
|
|
8550
|
+
var import_colors53 = require("@mui/material/colors");
|
|
8280
8551
|
var import_mui49 = require("tss-react/mui");
|
|
8281
|
-
var
|
|
8552
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
8282
8553
|
var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
|
|
8283
8554
|
red: {
|
|
8284
|
-
backgroundColor:
|
|
8285
|
-
color:
|
|
8555
|
+
backgroundColor: import_colors53.red["50"],
|
|
8556
|
+
color: import_colors53.red["500"],
|
|
8286
8557
|
padding: theme.spacing(1.5),
|
|
8287
8558
|
borderRadius: "5px",
|
|
8288
8559
|
marginTop: theme.spacing(1),
|
|
@@ -8293,15 +8564,15 @@ var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
|
|
|
8293
8564
|
}));
|
|
8294
8565
|
var SquareLabel = ({ color, copy }) => {
|
|
8295
8566
|
const { classes } = useStyles44();
|
|
8296
|
-
return /* @__PURE__ */ (0,
|
|
8567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material69.Typography, { className: classes[color], children: copy });
|
|
8297
8568
|
};
|
|
8298
|
-
var SquareLabel_default = (0,
|
|
8569
|
+
var SquareLabel_default = (0, import_react39.memo)(SquareLabel);
|
|
8299
8570
|
|
|
8300
8571
|
// src/components/Switch/Switch.tsx
|
|
8301
|
-
var
|
|
8302
|
-
var
|
|
8572
|
+
var import_react40 = require("react");
|
|
8573
|
+
var import_material70 = require("@mui/material");
|
|
8303
8574
|
var import_mui50 = require("tss-react/mui");
|
|
8304
|
-
var
|
|
8575
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
8305
8576
|
var LSwitch = ({
|
|
8306
8577
|
checked,
|
|
8307
8578
|
labelOn,
|
|
@@ -8309,8 +8580,8 @@ var LSwitch = ({
|
|
|
8309
8580
|
handleChange,
|
|
8310
8581
|
classes,
|
|
8311
8582
|
disabled
|
|
8312
|
-
}) => /* @__PURE__ */ (0,
|
|
8313
|
-
|
|
8583
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: classes.c_switch, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
8584
|
+
import_material70.Grid,
|
|
8314
8585
|
{
|
|
8315
8586
|
component: "label",
|
|
8316
8587
|
container: true,
|
|
@@ -8319,9 +8590,9 @@ var LSwitch = ({
|
|
|
8319
8590
|
alignItems: "center"
|
|
8320
8591
|
},
|
|
8321
8592
|
children: [
|
|
8322
|
-
labelOff && /* @__PURE__ */ (0,
|
|
8323
|
-
/* @__PURE__ */ (0,
|
|
8324
|
-
|
|
8593
|
+
labelOff && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: labelOff }),
|
|
8594
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8595
|
+
import_material70.Switch,
|
|
8325
8596
|
{
|
|
8326
8597
|
checked,
|
|
8327
8598
|
color: "primary",
|
|
@@ -8329,7 +8600,7 @@ var LSwitch = ({
|
|
|
8329
8600
|
disabled
|
|
8330
8601
|
}
|
|
8331
8602
|
) }),
|
|
8332
|
-
labelOn && /* @__PURE__ */ (0,
|
|
8603
|
+
labelOn && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: labelOn })
|
|
8333
8604
|
]
|
|
8334
8605
|
}
|
|
8335
8606
|
) });
|
|
@@ -8351,14 +8622,14 @@ var LabelledSwitch = (0, import_mui50.withStyles)(LSwitch, (theme) => ({
|
|
|
8351
8622
|
fontSize: "1rem"
|
|
8352
8623
|
}
|
|
8353
8624
|
}));
|
|
8354
|
-
var Switch_default = (0,
|
|
8625
|
+
var Switch_default = (0, import_react40.memo)(LabelledSwitch);
|
|
8355
8626
|
|
|
8356
8627
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
8357
|
-
var
|
|
8358
|
-
var
|
|
8628
|
+
var import_react41 = require("react");
|
|
8629
|
+
var import_material71 = require("@mui/material");
|
|
8359
8630
|
var import_classnames3 = __toESM(require("classnames"), 1);
|
|
8360
|
-
var
|
|
8361
|
-
var
|
|
8631
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
8632
|
+
var MAX_WIDTH2 = 276;
|
|
8362
8633
|
var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
|
|
8363
8634
|
if (typeof item === "string" && typeof filterOption === "string") {
|
|
8364
8635
|
return item === filterOption;
|
|
@@ -8375,11 +8646,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8375
8646
|
shouldShowCheckOnFilter,
|
|
8376
8647
|
onApplyFilters
|
|
8377
8648
|
}) => {
|
|
8378
|
-
const [anchorEl, setAnchorEl] = (0,
|
|
8379
|
-
const [filterOptionsData, setFilterOptionsData] = (0,
|
|
8380
|
-
const [selectedFilterOptions, setSelectedFilterOptions] = (0,
|
|
8649
|
+
const [anchorEl, setAnchorEl] = (0, import_react41.useState)(null);
|
|
8650
|
+
const [filterOptionsData, setFilterOptionsData] = (0, import_react41.useState)();
|
|
8651
|
+
const [selectedFilterOptions, setSelectedFilterOptions] = (0, import_react41.useState)(headerFilters[headCell.id] ?? []);
|
|
8381
8652
|
const numFilterOptions = filterOptionsData?.length ?? 0;
|
|
8382
|
-
(0,
|
|
8653
|
+
(0, import_react41.useEffect)(() => {
|
|
8383
8654
|
if (headCell.filterOptions) {
|
|
8384
8655
|
setFilterOptionsData(headCell.filterOptions);
|
|
8385
8656
|
} else if (headCell.filterType === "boolean") {
|
|
@@ -8435,11 +8706,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8435
8706
|
onApplyFilters?.(updatedFilters, shouldSave);
|
|
8436
8707
|
setAnchorEl(null);
|
|
8437
8708
|
};
|
|
8438
|
-
(0,
|
|
8709
|
+
(0, import_react41.useEffect)(() => {
|
|
8439
8710
|
setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
|
|
8440
8711
|
}, [headerFilters, headCell.id]);
|
|
8441
|
-
return /* @__PURE__ */ (0,
|
|
8442
|
-
/* @__PURE__ */ (0,
|
|
8712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
8713
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8443
8714
|
ActiveFiltersIconButton,
|
|
8444
8715
|
{
|
|
8445
8716
|
numActiveFilters,
|
|
@@ -8449,8 +8720,8 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8449
8720
|
})
|
|
8450
8721
|
}
|
|
8451
8722
|
),
|
|
8452
|
-
/* @__PURE__ */ (0,
|
|
8453
|
-
|
|
8723
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8724
|
+
import_material71.Menu,
|
|
8454
8725
|
{
|
|
8455
8726
|
open: !!anchorEl,
|
|
8456
8727
|
onClose: handleFilterMenuClose,
|
|
@@ -8458,12 +8729,12 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8458
8729
|
"data-testid": "filter-menu",
|
|
8459
8730
|
slotProps: {
|
|
8460
8731
|
list: {
|
|
8461
|
-
sx: { p: 0, maxWidth:
|
|
8732
|
+
sx: { p: 0, maxWidth: MAX_WIDTH2 }
|
|
8462
8733
|
}
|
|
8463
8734
|
},
|
|
8464
8735
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8465
8736
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8466
|
-
children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ (0,
|
|
8737
|
+
children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8467
8738
|
AutocompleteFilterMenuContent,
|
|
8468
8739
|
{
|
|
8469
8740
|
columnId: headCell.id,
|
|
@@ -8476,7 +8747,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8476
8747
|
onApplyFiltersClick: handleApplyFiltersClick,
|
|
8477
8748
|
shouldShowCheckOnFilter
|
|
8478
8749
|
}
|
|
8479
|
-
) : /* @__PURE__ */ (0,
|
|
8750
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8480
8751
|
CheckboxFilterMenuContent,
|
|
8481
8752
|
{
|
|
8482
8753
|
columnId: headCell.id,
|
|
@@ -8496,10 +8767,10 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8496
8767
|
};
|
|
8497
8768
|
|
|
8498
8769
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
8499
|
-
var
|
|
8500
|
-
var
|
|
8501
|
-
var
|
|
8502
|
-
var SmartTableHeader = (0,
|
|
8770
|
+
var import_react42 = require("react");
|
|
8771
|
+
var import_material72 = require("@mui/material");
|
|
8772
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
8773
|
+
var SmartTableHeader = (0, import_react42.memo)(
|
|
8503
8774
|
({
|
|
8504
8775
|
order,
|
|
8505
8776
|
orderBy,
|
|
@@ -8517,14 +8788,14 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8517
8788
|
onRequestSort(event, property);
|
|
8518
8789
|
};
|
|
8519
8790
|
const isSortActive = (headCellId) => orderBy === headCellId;
|
|
8520
|
-
return /* @__PURE__ */ (0,
|
|
8521
|
-
enableCheckboxSelection ? /* @__PURE__ */ (0,
|
|
8522
|
-
|
|
8791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material72.TableRow, { children: [
|
|
8792
|
+
enableCheckboxSelection ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8793
|
+
import_material72.TableCell,
|
|
8523
8794
|
{
|
|
8524
8795
|
padding: "checkbox",
|
|
8525
8796
|
sx: { backgroundColor: colors.neutral100 },
|
|
8526
|
-
children: /* @__PURE__ */ (0,
|
|
8527
|
-
|
|
8797
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8798
|
+
import_material72.Checkbox,
|
|
8528
8799
|
{
|
|
8529
8800
|
color: "primary",
|
|
8530
8801
|
disableRipple: true,
|
|
@@ -8535,8 +8806,8 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8535
8806
|
)
|
|
8536
8807
|
}
|
|
8537
8808
|
) : null,
|
|
8538
|
-
headCells.map((headCell) => /* @__PURE__ */ (0,
|
|
8539
|
-
|
|
8809
|
+
headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8810
|
+
import_material72.TableCell,
|
|
8540
8811
|
{
|
|
8541
8812
|
align: "left",
|
|
8542
8813
|
width: headCell.width ?? "auto",
|
|
@@ -8559,15 +8830,15 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8559
8830
|
}
|
|
8560
8831
|
}
|
|
8561
8832
|
},
|
|
8562
|
-
children: /* @__PURE__ */ (0,
|
|
8563
|
-
|
|
8833
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8834
|
+
import_material72.Box,
|
|
8564
8835
|
{
|
|
8565
8836
|
display: "flex",
|
|
8566
8837
|
flexDirection: "row",
|
|
8567
8838
|
gap: headCell.disableSort ? 1 : 0,
|
|
8568
8839
|
children: [
|
|
8569
|
-
headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ (0,
|
|
8570
|
-
|
|
8840
|
+
headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Typography, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8841
|
+
import_material72.TableSortLabel,
|
|
8571
8842
|
{
|
|
8572
8843
|
"data-testid": "table-sort-label",
|
|
8573
8844
|
active: isSortActive(headCell.id),
|
|
@@ -8575,7 +8846,7 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8575
8846
|
onClick: createSortHandler(headCell.id),
|
|
8576
8847
|
children: [
|
|
8577
8848
|
headCell.renderHeader ?? headCell.label,
|
|
8578
|
-
orderBy === headCell.id ? /* @__PURE__ */ (0,
|
|
8849
|
+
orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8579
8850
|
"span",
|
|
8580
8851
|
{
|
|
8581
8852
|
style: {
|
|
@@ -8595,7 +8866,7 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8595
8866
|
]
|
|
8596
8867
|
}
|
|
8597
8868
|
) }),
|
|
8598
|
-
headCell.filterType ? /* @__PURE__ */ (0,
|
|
8869
|
+
headCell.filterType ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8599
8870
|
SmartTableHeaderFilterMenu,
|
|
8600
8871
|
{
|
|
8601
8872
|
headCell,
|
|
@@ -8616,20 +8887,20 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8616
8887
|
);
|
|
8617
8888
|
|
|
8618
8889
|
// src/components/Table/Table.tsx
|
|
8619
|
-
var
|
|
8620
|
-
var
|
|
8890
|
+
var import_react43 = require("react");
|
|
8891
|
+
var import_material74 = require("@mui/material");
|
|
8621
8892
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
8622
8893
|
var import_mui51 = require("tss-react/mui");
|
|
8623
8894
|
var import_uuid = require("uuid");
|
|
8624
8895
|
|
|
8625
8896
|
// src/components/TableLoading/TableLoading.tsx
|
|
8626
|
-
var
|
|
8627
|
-
var
|
|
8897
|
+
var import_material73 = require("@mui/material");
|
|
8898
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
8628
8899
|
var TableLoading = ({
|
|
8629
8900
|
rowsPerPage,
|
|
8630
8901
|
rowHeight
|
|
8631
|
-
}) => /* @__PURE__ */ (0,
|
|
8632
|
-
|
|
8902
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material73.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8903
|
+
import_material73.Skeleton,
|
|
8633
8904
|
{
|
|
8634
8905
|
animation: "pulse",
|
|
8635
8906
|
"data-testid": "table-loading-skeleton",
|
|
@@ -8677,7 +8948,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
8677
8948
|
}
|
|
8678
8949
|
|
|
8679
8950
|
// src/components/Table/Table.tsx
|
|
8680
|
-
var
|
|
8951
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
8681
8952
|
var useStyles45 = (0, import_mui51.makeStyles)()(() => ({
|
|
8682
8953
|
root: {
|
|
8683
8954
|
height: "calc(100vh - 262px)",
|
|
@@ -8712,11 +8983,11 @@ var Table = ({
|
|
|
8712
8983
|
serverRendered,
|
|
8713
8984
|
updateSort
|
|
8714
8985
|
}) => {
|
|
8715
|
-
const [order, setOrder] = (0,
|
|
8716
|
-
const [orderBy, setOrderBy] = (0,
|
|
8986
|
+
const [order, setOrder] = (0, import_react43.useState)(appliedFilters?.sortDir || "desc");
|
|
8987
|
+
const [orderBy, setOrderBy] = (0, import_react43.useState)(
|
|
8717
8988
|
appliedFilters?.sortField || "delivery_date"
|
|
8718
8989
|
);
|
|
8719
|
-
const [rowsPerPage, setRowsPerPage] = (0,
|
|
8990
|
+
const [rowsPerPage, setRowsPerPage] = (0, import_react43.useState)(defaultRowsPerPage);
|
|
8720
8991
|
const { classes } = useStyles45();
|
|
8721
8992
|
const rowHeight = 56;
|
|
8722
8993
|
const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
|
|
@@ -8729,7 +9000,7 @@ var Table = ({
|
|
|
8729
9000
|
updateSort(property, orderDir);
|
|
8730
9001
|
}
|
|
8731
9002
|
};
|
|
8732
|
-
(0,
|
|
9003
|
+
(0, import_react43.useLayoutEffect)(() => {
|
|
8733
9004
|
if (!doNotCalculateRows) {
|
|
8734
9005
|
return;
|
|
8735
9006
|
}
|
|
@@ -8755,25 +9026,25 @@ var Table = ({
|
|
|
8755
9026
|
);
|
|
8756
9027
|
const rowsComponents = rows.map((row) => {
|
|
8757
9028
|
if (RenderItem) {
|
|
8758
|
-
return /* @__PURE__ */ (0,
|
|
9029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(RenderItem, { ...row }, row.id);
|
|
8759
9030
|
}
|
|
8760
|
-
return /* @__PURE__ */ (0,
|
|
9031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { children: row[column.id] }, column.id)) }, row.id);
|
|
8761
9032
|
});
|
|
8762
9033
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
8763
9034
|
rowsComponents.push(
|
|
8764
|
-
/* @__PURE__ */ (0,
|
|
9035
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
|
|
8765
9036
|
);
|
|
8766
9037
|
}
|
|
8767
9038
|
return rowsComponents;
|
|
8768
9039
|
};
|
|
8769
|
-
return /* @__PURE__ */ (0,
|
|
8770
|
-
/* @__PURE__ */ (0,
|
|
8771
|
-
|
|
9040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material74.Table, { size: "medium", stickyHeader: true, children: [
|
|
9041
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
9042
|
+
import_material74.TableCell,
|
|
8772
9043
|
{
|
|
8773
9044
|
align: "left",
|
|
8774
9045
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
8775
|
-
children: /* @__PURE__ */ (0,
|
|
8776
|
-
|
|
9046
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
9047
|
+
import_material74.TableSortLabel,
|
|
8777
9048
|
{
|
|
8778
9049
|
active: orderBy === headCell.id,
|
|
8779
9050
|
direction: orderBy === headCell.id ? order : "asc",
|
|
@@ -8784,29 +9055,29 @@ var Table = ({
|
|
|
8784
9055
|
},
|
|
8785
9056
|
headCell.id
|
|
8786
9057
|
)) }) }),
|
|
8787
|
-
/* @__PURE__ */ (0,
|
|
9058
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material74.TableBody, { children: [
|
|
8788
9059
|
getTableRows(),
|
|
8789
|
-
rowsPerPage === emptyRows && /* @__PURE__ */ (0,
|
|
9060
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
8790
9061
|
] })
|
|
8791
9062
|
] }) }) }) });
|
|
8792
9063
|
};
|
|
8793
9064
|
var Table_default = Table;
|
|
8794
9065
|
|
|
8795
9066
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
8796
|
-
var
|
|
8797
|
-
var
|
|
9067
|
+
var import_react44 = require("react");
|
|
9068
|
+
var import_material79 = require("@mui/material");
|
|
8798
9069
|
|
|
8799
9070
|
// src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
|
|
8800
|
-
var
|
|
8801
|
-
var
|
|
9071
|
+
var import_material75 = require("@mui/material");
|
|
9072
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
8802
9073
|
var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
|
|
8803
9074
|
var TableDesktopLoadingState = ({
|
|
8804
9075
|
numRows,
|
|
8805
9076
|
numColumns,
|
|
8806
9077
|
rowHeight = 56
|
|
8807
9078
|
}) => {
|
|
8808
|
-
return getRange(numRows).map((rowNum) => /* @__PURE__ */ (0,
|
|
8809
|
-
|
|
9079
|
+
return getRange(numRows).map((rowNum) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material75.TableRow, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material75.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
9080
|
+
import_material75.Skeleton,
|
|
8810
9081
|
{
|
|
8811
9082
|
animation: "pulse",
|
|
8812
9083
|
variant: "rounded",
|
|
@@ -8824,11 +9095,11 @@ var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
|
|
|
8824
9095
|
var import_Typography = __toESM(require("@mui/material/Typography"), 1);
|
|
8825
9096
|
|
|
8826
9097
|
// src/components/Buttons/BaseButton/BaseIconButton.tsx
|
|
8827
|
-
var
|
|
8828
|
-
var
|
|
9098
|
+
var import_material76 = require("@mui/material");
|
|
9099
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
8829
9100
|
var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
8830
|
-
return /* @__PURE__ */ (0,
|
|
8831
|
-
|
|
9101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
|
|
9102
|
+
import_material76.Button,
|
|
8832
9103
|
{
|
|
8833
9104
|
sx: {
|
|
8834
9105
|
display: "flex",
|
|
@@ -8848,10 +9119,10 @@ var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
|
8848
9119
|
};
|
|
8849
9120
|
|
|
8850
9121
|
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
8851
|
-
var
|
|
9122
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
8852
9123
|
var TableDesktopNoColumnsMessage = ({
|
|
8853
9124
|
onClickNoColumnsMessageOpenMenu
|
|
8854
|
-
}) => /* @__PURE__ */ (0,
|
|
9125
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8855
9126
|
import_TableCell.default,
|
|
8856
9127
|
{
|
|
8857
9128
|
sx: {
|
|
@@ -8864,9 +9135,9 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8864
9135
|
alignItems: "center"
|
|
8865
9136
|
},
|
|
8866
9137
|
children: [
|
|
8867
|
-
/* @__PURE__ */ (0,
|
|
8868
|
-
/* @__PURE__ */ (0,
|
|
8869
|
-
/* @__PURE__ */ (0,
|
|
9138
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
9139
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
|
|
9140
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8870
9141
|
import_Typography.default,
|
|
8871
9142
|
{
|
|
8872
9143
|
variant: "subtitle1",
|
|
@@ -8879,18 +9150,18 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8879
9150
|
},
|
|
8880
9151
|
children: [
|
|
8881
9152
|
"Tips: ",
|
|
8882
|
-
/* @__PURE__ */ (0,
|
|
9153
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { component: "strong", children: "Save as default" }),
|
|
8883
9154
|
" to keep these columns for future views"
|
|
8884
9155
|
]
|
|
8885
9156
|
}
|
|
8886
9157
|
),
|
|
8887
|
-
/* @__PURE__ */ (0,
|
|
9158
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8888
9159
|
BaseIconButton,
|
|
8889
9160
|
{
|
|
8890
9161
|
variant: "contained",
|
|
8891
9162
|
color: "primary",
|
|
8892
9163
|
onClick: onClickNoColumnsMessageOpenMenu,
|
|
8893
|
-
icon: /* @__PURE__ */ (0,
|
|
9164
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(IconTableEdit_default, { fill: colors.white }),
|
|
8894
9165
|
children: "OPEN MENU"
|
|
8895
9166
|
}
|
|
8896
9167
|
)
|
|
@@ -8899,7 +9170,7 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8899
9170
|
) }) });
|
|
8900
9171
|
|
|
8901
9172
|
// src/components/TableDesktopRows/TableDesktopRows.tsx
|
|
8902
|
-
var
|
|
9173
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
8903
9174
|
var descendingComparator2 = (a, b, orderBy) => {
|
|
8904
9175
|
const objA = a[orderBy];
|
|
8905
9176
|
const objB = b[orderBy];
|
|
@@ -8946,7 +9217,7 @@ var TableDesktopRows = ({
|
|
|
8946
9217
|
return sortedData.map((row, index) => {
|
|
8947
9218
|
const rowId = getRowId(row);
|
|
8948
9219
|
const isItemSelected = selectedRows.has(rowId);
|
|
8949
|
-
return /* @__PURE__ */ (0,
|
|
9220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
8950
9221
|
RenderItem,
|
|
8951
9222
|
{
|
|
8952
9223
|
...{
|
|
@@ -8968,8 +9239,8 @@ var TableDesktopRows = ({
|
|
|
8968
9239
|
};
|
|
8969
9240
|
|
|
8970
9241
|
// src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
|
|
8971
|
-
var
|
|
8972
|
-
var
|
|
9242
|
+
var import_material77 = require("@mui/material");
|
|
9243
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
8973
9244
|
var TableDesktopRowSelectionBar = ({
|
|
8974
9245
|
isEveryRowInPageSelected,
|
|
8975
9246
|
isRowsFromAllPagesSelected,
|
|
@@ -8988,8 +9259,8 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8988
9259
|
}
|
|
8989
9260
|
return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
|
|
8990
9261
|
};
|
|
8991
|
-
return isAnyRowSelected ? /* @__PURE__ */ (0,
|
|
8992
|
-
|
|
9262
|
+
return isAnyRowSelected ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
9263
|
+
import_material77.Box,
|
|
8993
9264
|
{
|
|
8994
9265
|
sx: {
|
|
8995
9266
|
p: 1,
|
|
@@ -9001,22 +9272,22 @@ var TableDesktopRowSelectionBar = ({
|
|
|
9001
9272
|
backgroundColor: colors.neutral150
|
|
9002
9273
|
},
|
|
9003
9274
|
children: [
|
|
9004
|
-
/* @__PURE__ */ (0,
|
|
9005
|
-
!isRowsFromAllPagesSelected ? /* @__PURE__ */ (0,
|
|
9275
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Typography, { children: getSelectedRowsText() }),
|
|
9276
|
+
!isRowsFromAllPagesSelected ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_material77.Button, { onClick: onSelectRowsFromAllPagesClick, children: [
|
|
9006
9277
|
"Select all ",
|
|
9007
9278
|
totalRowCount,
|
|
9008
9279
|
" rows from all pages based on your filters"
|
|
9009
9280
|
] }) : null,
|
|
9010
|
-
/* @__PURE__ */ (0,
|
|
9281
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Button, { onClick: onClearSelectionClick, children: "Clear Selection" })
|
|
9011
9282
|
]
|
|
9012
9283
|
}
|
|
9013
9284
|
) : null;
|
|
9014
9285
|
};
|
|
9015
9286
|
|
|
9016
9287
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
9017
|
-
var
|
|
9288
|
+
var import_material78 = require("@mui/material");
|
|
9018
9289
|
var import_mui52 = require("tss-react/mui");
|
|
9019
|
-
var
|
|
9290
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
9020
9291
|
var useStyles46 = (0, import_mui52.makeStyles)()(() => ({
|
|
9021
9292
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
9022
9293
|
tableCellDefault: { padding: 24 }
|
|
@@ -9028,17 +9299,17 @@ var TableEmptyResult = ({
|
|
|
9028
9299
|
}
|
|
9029
9300
|
}) => {
|
|
9030
9301
|
const { classes } = useStyles46();
|
|
9031
|
-
return showClearFilterButton ? /* @__PURE__ */ (0,
|
|
9032
|
-
|
|
9302
|
+
return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
9303
|
+
import_material78.TableCell,
|
|
9033
9304
|
{
|
|
9034
9305
|
className: classes.tableCellIcon,
|
|
9035
9306
|
colSpan,
|
|
9036
9307
|
align: "center",
|
|
9037
9308
|
children: [
|
|
9038
|
-
/* @__PURE__ */ (0,
|
|
9039
|
-
/* @__PURE__ */ (0,
|
|
9040
|
-
/* @__PURE__ */ (0,
|
|
9041
|
-
/* @__PURE__ */ (0,
|
|
9309
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(EmptyGlassIcon_default, {}),
|
|
9310
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.Typography, { variant: "h6", children: "No results found." }),
|
|
9311
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
9312
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9042
9313
|
FilledButton_default,
|
|
9043
9314
|
{
|
|
9044
9315
|
copy: "Search",
|
|
@@ -9049,8 +9320,8 @@ var TableEmptyResult = ({
|
|
|
9049
9320
|
)
|
|
9050
9321
|
]
|
|
9051
9322
|
}
|
|
9052
|
-
) }) : /* @__PURE__ */ (0,
|
|
9053
|
-
|
|
9323
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9324
|
+
import_material78.TableCell,
|
|
9054
9325
|
{
|
|
9055
9326
|
className: classes.tableCellDefault,
|
|
9056
9327
|
colSpan,
|
|
@@ -9062,7 +9333,7 @@ var TableEmptyResult = ({
|
|
|
9062
9333
|
var TableEmptyResult_default = TableEmptyResult;
|
|
9063
9334
|
|
|
9064
9335
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
9065
|
-
var
|
|
9336
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
9066
9337
|
var resolveKeyValue = (keyField, rowData) => {
|
|
9067
9338
|
if (typeof keyField === "string") {
|
|
9068
9339
|
return rowData[keyField];
|
|
@@ -9095,24 +9366,24 @@ var TableDesktop = ({
|
|
|
9095
9366
|
shouldShowCheckOnFilter,
|
|
9096
9367
|
refetchData
|
|
9097
9368
|
}) => {
|
|
9098
|
-
const tableToolbarMenuButtonRef = (0,
|
|
9099
|
-
const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = (0,
|
|
9100
|
-
const [order, setOrder] = (0,
|
|
9101
|
-
const [orderBy, setOrderBy] = (0,
|
|
9369
|
+
const tableToolbarMenuButtonRef = (0, import_react44.useRef)(null);
|
|
9370
|
+
const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = (0, import_react44.useState)(null);
|
|
9371
|
+
const [order, setOrder] = (0, import_react44.useState)(appliedFilters?.sortDir || "desc");
|
|
9372
|
+
const [orderBy, setOrderBy] = (0, import_react44.useState)(
|
|
9102
9373
|
appliedFilters?.sortField || "delivery_date"
|
|
9103
9374
|
);
|
|
9104
|
-
const [selectedRows, setSelectedRows] = (0,
|
|
9105
|
-
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = (0,
|
|
9106
|
-
const [isBulkChangesMode, setIsBulkChangesMode] = (0,
|
|
9375
|
+
const [selectedRows, setSelectedRows] = (0, import_react44.useState)(/* @__PURE__ */ new Set());
|
|
9376
|
+
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = (0, import_react44.useState)(false);
|
|
9377
|
+
const [isBulkChangesMode, setIsBulkChangesMode] = (0, import_react44.useState)(false);
|
|
9107
9378
|
const numRows = data.length;
|
|
9108
|
-
const numSelectedRows = (0,
|
|
9379
|
+
const numSelectedRows = (0, import_react44.useMemo)(() => {
|
|
9109
9380
|
const currentPageIds = new Set(
|
|
9110
9381
|
data.map((row) => resolveKeyValue(keyField, row))
|
|
9111
9382
|
);
|
|
9112
9383
|
return [...selectedRows].filter((id) => currentPageIds.has(id)).length;
|
|
9113
9384
|
}, [data, selectedRows, keyField]);
|
|
9114
9385
|
const isEveryRowInPageSelected = numRows > 0 && numSelectedRows === numRows;
|
|
9115
|
-
const visibleHeadCells = (0,
|
|
9386
|
+
const visibleHeadCells = (0, import_react44.useMemo)(
|
|
9116
9387
|
() => headCells.filter((headCell) => headCell?.enabled ?? true),
|
|
9117
9388
|
[headCells]
|
|
9118
9389
|
);
|
|
@@ -9178,14 +9449,14 @@ var TableDesktop = ({
|
|
|
9178
9449
|
refetchData?.();
|
|
9179
9450
|
}
|
|
9180
9451
|
};
|
|
9181
|
-
(0,
|
|
9452
|
+
(0, import_react44.useEffect)(() => {
|
|
9182
9453
|
if (isRowsFromAllPagesSelected) {
|
|
9183
9454
|
selectAllRowsInPage();
|
|
9184
9455
|
}
|
|
9185
9456
|
}, [isRowsFromAllPagesSelected, data]);
|
|
9186
9457
|
const renderBody = () => {
|
|
9187
9458
|
if (isLoading) {
|
|
9188
|
-
return /* @__PURE__ */ (0,
|
|
9459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9189
9460
|
TableDesktopLoadingState,
|
|
9190
9461
|
{
|
|
9191
9462
|
numRows: Math.min(rowsPerPage, 10),
|
|
@@ -9195,7 +9466,7 @@ var TableDesktop = ({
|
|
|
9195
9466
|
);
|
|
9196
9467
|
}
|
|
9197
9468
|
if (numRows === 0) {
|
|
9198
|
-
return /* @__PURE__ */ (0,
|
|
9469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9199
9470
|
TableEmptyResult_default,
|
|
9200
9471
|
{
|
|
9201
9472
|
showClearFilterButton,
|
|
@@ -9204,7 +9475,7 @@ var TableDesktop = ({
|
|
|
9204
9475
|
}
|
|
9205
9476
|
);
|
|
9206
9477
|
}
|
|
9207
|
-
return /* @__PURE__ */ (0,
|
|
9478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9208
9479
|
TableDesktopRows,
|
|
9209
9480
|
{
|
|
9210
9481
|
data,
|
|
@@ -9223,8 +9494,8 @@ var TableDesktop = ({
|
|
|
9223
9494
|
}
|
|
9224
9495
|
);
|
|
9225
9496
|
};
|
|
9226
|
-
return /* @__PURE__ */ (0,
|
|
9227
|
-
|
|
9497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9498
|
+
import_material79.Box,
|
|
9228
9499
|
{
|
|
9229
9500
|
sx: {
|
|
9230
9501
|
height,
|
|
@@ -9232,8 +9503,8 @@ var TableDesktop = ({
|
|
|
9232
9503
|
justifyContent: "space-between",
|
|
9233
9504
|
justifyItems: "stretch"
|
|
9234
9505
|
},
|
|
9235
|
-
children: /* @__PURE__ */ (0,
|
|
9236
|
-
|
|
9506
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
|
|
9507
|
+
import_material79.Paper,
|
|
9237
9508
|
{
|
|
9238
9509
|
sx: {
|
|
9239
9510
|
width: "100%",
|
|
@@ -9257,7 +9528,7 @@ var TableDesktop = ({
|
|
|
9257
9528
|
isBulkChangesMode,
|
|
9258
9529
|
onChangeBulkChangesMode: handleChangeBulkChangesMode
|
|
9259
9530
|
}) : null,
|
|
9260
|
-
/* @__PURE__ */ (0,
|
|
9531
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9261
9532
|
TableDesktopRowSelectionBar,
|
|
9262
9533
|
{
|
|
9263
9534
|
isEveryRowInPageSelected,
|
|
@@ -9268,8 +9539,8 @@ var TableDesktop = ({
|
|
|
9268
9539
|
onClearSelectionClick: handleClearSelectionClick
|
|
9269
9540
|
}
|
|
9270
9541
|
),
|
|
9271
|
-
/* @__PURE__ */ (0,
|
|
9272
|
-
|
|
9542
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9543
|
+
import_material79.TableContainer,
|
|
9273
9544
|
{
|
|
9274
9545
|
sx: {
|
|
9275
9546
|
flexGrow: 1,
|
|
@@ -9290,13 +9561,13 @@ var TableDesktop = ({
|
|
|
9290
9561
|
backgroundColor: (theme) => theme.palette.grey[500]
|
|
9291
9562
|
}
|
|
9292
9563
|
},
|
|
9293
|
-
children: /* @__PURE__ */ (0,
|
|
9564
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material79.Table, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9294
9565
|
TableDesktopNoColumnsMessage,
|
|
9295
9566
|
{
|
|
9296
9567
|
onClickNoColumnsMessageOpenMenu: handleClickToolbarMenuOpen
|
|
9297
9568
|
}
|
|
9298
|
-
) : /* @__PURE__ */ (0,
|
|
9299
|
-
/* @__PURE__ */ (0,
|
|
9569
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_jsx_runtime134.Fragment, { children: [
|
|
9570
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9300
9571
|
SmartTableHeader,
|
|
9301
9572
|
{
|
|
9302
9573
|
order,
|
|
@@ -9312,7 +9583,7 @@ var TableDesktop = ({
|
|
|
9312
9583
|
shouldShowCheckOnFilter
|
|
9313
9584
|
}
|
|
9314
9585
|
),
|
|
9315
|
-
/* @__PURE__ */ (0,
|
|
9586
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material79.TableBody, { children: renderBody() })
|
|
9316
9587
|
] }) })
|
|
9317
9588
|
}
|
|
9318
9589
|
),
|
|
@@ -9329,15 +9600,15 @@ var TableDesktop = ({
|
|
|
9329
9600
|
};
|
|
9330
9601
|
|
|
9331
9602
|
// src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
|
|
9332
|
-
var
|
|
9603
|
+
var import_react51 = require("react");
|
|
9333
9604
|
var import_Delete = __toESM(require("@mui/icons-material/Delete"), 1);
|
|
9334
|
-
var
|
|
9605
|
+
var import_material82 = require("@mui/material");
|
|
9335
9606
|
var import_x_date_pickers = require("@mui/x-date-pickers");
|
|
9336
9607
|
var import_moment3 = __toESM(require("moment"), 1);
|
|
9337
9608
|
|
|
9338
9609
|
// src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
|
|
9339
|
-
var
|
|
9340
|
-
var
|
|
9610
|
+
var import_react45 = require("react");
|
|
9611
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
9341
9612
|
var TableDesktopSmartMultipleSelect = ({
|
|
9342
9613
|
initialValue,
|
|
9343
9614
|
inputLabel,
|
|
@@ -9352,13 +9623,13 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
9352
9623
|
isFetchingFilterOptions,
|
|
9353
9624
|
onUpdateEditableCell
|
|
9354
9625
|
}) => {
|
|
9355
|
-
const defaultValues = (0,
|
|
9626
|
+
const defaultValues = (0, import_react45.useMemo)(() => {
|
|
9356
9627
|
return initialValue?.map((val) => ({
|
|
9357
9628
|
value: val.id,
|
|
9358
9629
|
label: val[fieldName].toString()
|
|
9359
9630
|
}));
|
|
9360
9631
|
}, [initialValue]);
|
|
9361
|
-
return /* @__PURE__ */ (0,
|
|
9632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
9362
9633
|
SmartMultipleSelect,
|
|
9363
9634
|
{
|
|
9364
9635
|
inputLabel,
|
|
@@ -9389,8 +9660,8 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
9389
9660
|
};
|
|
9390
9661
|
|
|
9391
9662
|
// src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
|
|
9392
|
-
var
|
|
9393
|
-
var
|
|
9663
|
+
var import_react46 = require("react");
|
|
9664
|
+
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
9394
9665
|
var TableDesktopSmartSelect = ({
|
|
9395
9666
|
ref,
|
|
9396
9667
|
initialValue,
|
|
@@ -9407,12 +9678,12 @@ var TableDesktopSmartSelect = ({
|
|
|
9407
9678
|
isFetchingFilterOptions,
|
|
9408
9679
|
onUpdateEditableCell
|
|
9409
9680
|
}) => {
|
|
9410
|
-
const [value, setValue] = (0,
|
|
9681
|
+
const [value, setValue] = (0, import_react46.useState)(
|
|
9411
9682
|
initialValue
|
|
9412
9683
|
);
|
|
9413
9684
|
const valueId = resolveObjectType(value ?? "", "id");
|
|
9414
9685
|
const valueLabel = resolveObjectType(value ?? "", fieldName);
|
|
9415
|
-
return /* @__PURE__ */ (0,
|
|
9686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
|
|
9416
9687
|
SmartSelect,
|
|
9417
9688
|
{
|
|
9418
9689
|
ref,
|
|
@@ -9444,13 +9715,13 @@ var TableDesktopSmartSelect = ({
|
|
|
9444
9715
|
};
|
|
9445
9716
|
|
|
9446
9717
|
// src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
|
|
9447
|
-
var
|
|
9718
|
+
var import_react49 = require("react");
|
|
9448
9719
|
|
|
9449
9720
|
// src/components/HashtagInput/HashtagInput.tsx
|
|
9450
|
-
var
|
|
9451
|
-
var
|
|
9452
|
-
var
|
|
9453
|
-
var
|
|
9721
|
+
var import_react47 = require("react");
|
|
9722
|
+
var import_material80 = require("@mui/material");
|
|
9723
|
+
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
9724
|
+
var import_react48 = require("react");
|
|
9454
9725
|
var HashtagInput = ({
|
|
9455
9726
|
label,
|
|
9456
9727
|
placeholder,
|
|
@@ -9464,8 +9735,8 @@ var HashtagInput = ({
|
|
|
9464
9735
|
onBlur,
|
|
9465
9736
|
...props
|
|
9466
9737
|
}) => {
|
|
9467
|
-
const { palette: palette2 } = (0,
|
|
9468
|
-
const [inputValue, setInputValue] = (0,
|
|
9738
|
+
const { palette: palette2 } = (0, import_material80.useTheme)();
|
|
9739
|
+
const [inputValue, setInputValue] = (0, import_react47.useState)("");
|
|
9469
9740
|
const sanitizeTag = (value) => {
|
|
9470
9741
|
return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
|
|
9471
9742
|
};
|
|
@@ -9482,8 +9753,8 @@ var HashtagInput = ({
|
|
|
9482
9753
|
handleAddTag();
|
|
9483
9754
|
}
|
|
9484
9755
|
};
|
|
9485
|
-
return /* @__PURE__ */ (0,
|
|
9486
|
-
|
|
9756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
9757
|
+
import_material80.Autocomplete,
|
|
9487
9758
|
{
|
|
9488
9759
|
...props,
|
|
9489
9760
|
multiple: true,
|
|
@@ -9501,8 +9772,8 @@ var HashtagInput = ({
|
|
|
9501
9772
|
onDeleteTag?.(details.option);
|
|
9502
9773
|
}
|
|
9503
9774
|
},
|
|
9504
|
-
renderInput: (textFieldProps) => /* @__PURE__ */ (0,
|
|
9505
|
-
|
|
9775
|
+
renderInput: (textFieldProps) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
9776
|
+
import_material80.TextField,
|
|
9506
9777
|
{
|
|
9507
9778
|
...textFieldProps,
|
|
9508
9779
|
autoFocus,
|
|
@@ -9521,8 +9792,8 @@ var HashtagInput = ({
|
|
|
9521
9792
|
}
|
|
9522
9793
|
),
|
|
9523
9794
|
renderValue: (value, getTagProps) => value.map((option, index) => {
|
|
9524
|
-
return /* @__PURE__ */ (0,
|
|
9525
|
-
|
|
9795
|
+
return /* @__PURE__ */ (0, import_react48.createElement)(
|
|
9796
|
+
import_material80.Chip,
|
|
9526
9797
|
{
|
|
9527
9798
|
...getTagProps({ index }),
|
|
9528
9799
|
key: option.id,
|
|
@@ -9532,7 +9803,7 @@ var HashtagInput = ({
|
|
|
9532
9803
|
paddingBlock: 0,
|
|
9533
9804
|
color: palette2.primary.main,
|
|
9534
9805
|
fontWeight: "bold",
|
|
9535
|
-
backgroundColor: (0,
|
|
9806
|
+
backgroundColor: (0, import_material80.alpha)(palette2.primary.main, 0.1)
|
|
9536
9807
|
}
|
|
9537
9808
|
}
|
|
9538
9809
|
);
|
|
@@ -9542,7 +9813,7 @@ var HashtagInput = ({
|
|
|
9542
9813
|
};
|
|
9543
9814
|
|
|
9544
9815
|
// src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
|
|
9545
|
-
var
|
|
9816
|
+
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
9546
9817
|
var TableDesktopTagsField = ({
|
|
9547
9818
|
initialValue,
|
|
9548
9819
|
inputLabel,
|
|
@@ -9553,9 +9824,9 @@ var TableDesktopTagsField = ({
|
|
|
9553
9824
|
size,
|
|
9554
9825
|
onUpdateEditableCell
|
|
9555
9826
|
}) => {
|
|
9556
|
-
const [error, setError] = (0,
|
|
9557
|
-
const [values, setValues] = (0,
|
|
9558
|
-
const valuesRef = (0,
|
|
9827
|
+
const [error, setError] = (0, import_react49.useState)();
|
|
9828
|
+
const [values, setValues] = (0, import_react49.useState)([]);
|
|
9829
|
+
const valuesRef = (0, import_react49.useRef)([]);
|
|
9559
9830
|
const validateTag = (tag) => {
|
|
9560
9831
|
if (tag.length >= 30) {
|
|
9561
9832
|
return false;
|
|
@@ -9574,14 +9845,14 @@ var TableDesktopTagsField = ({
|
|
|
9574
9845
|
setValues(newTags);
|
|
9575
9846
|
valuesRef.current = newTags;
|
|
9576
9847
|
};
|
|
9577
|
-
const initialValueTags = (0,
|
|
9848
|
+
const initialValueTags = (0, import_react49.useMemo)(() => {
|
|
9578
9849
|
return (initialValue ?? []).map((val) => val.tag);
|
|
9579
9850
|
}, [initialValue]);
|
|
9580
|
-
(0,
|
|
9851
|
+
(0, import_react49.useEffect)(() => {
|
|
9581
9852
|
setValues(initialValueTags);
|
|
9582
9853
|
valuesRef.current = initialValueTags;
|
|
9583
9854
|
}, [initialValueTags]);
|
|
9584
|
-
return /* @__PURE__ */ (0,
|
|
9855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_jsx_runtime138.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
|
|
9585
9856
|
HashtagInput,
|
|
9586
9857
|
{
|
|
9587
9858
|
autoFocus: true,
|
|
@@ -9616,9 +9887,9 @@ var TableDesktopTagsField = ({
|
|
|
9616
9887
|
};
|
|
9617
9888
|
|
|
9618
9889
|
// src/components/TableDesktopEditableField/TableDesktopTextField.tsx
|
|
9619
|
-
var
|
|
9620
|
-
var
|
|
9621
|
-
var
|
|
9890
|
+
var import_react50 = require("react");
|
|
9891
|
+
var import_material81 = require("@mui/material");
|
|
9892
|
+
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
9622
9893
|
var TableDesktopTextField = ({
|
|
9623
9894
|
rowId,
|
|
9624
9895
|
initialValue,
|
|
@@ -9631,13 +9902,13 @@ var TableDesktopTextField = ({
|
|
|
9631
9902
|
validateInput,
|
|
9632
9903
|
onUpdateEditableCell
|
|
9633
9904
|
}) => {
|
|
9634
|
-
const [input, setInput] = (0,
|
|
9635
|
-
const oldValue = (0,
|
|
9636
|
-
const isDirty = (0,
|
|
9905
|
+
const [input, setInput] = (0, import_react50.useState)(initialValue);
|
|
9906
|
+
const oldValue = (0, import_react50.useRef)(initialValue);
|
|
9907
|
+
const isDirty = (0, import_react50.useMemo)(
|
|
9637
9908
|
() => input !== oldValue.current,
|
|
9638
9909
|
[input, oldValue.current]
|
|
9639
9910
|
);
|
|
9640
|
-
const hasValidationError = (0,
|
|
9911
|
+
const hasValidationError = (0, import_react50.useMemo)(
|
|
9641
9912
|
() => isDirty && validateInput && !validateInput(input),
|
|
9642
9913
|
[input, validateInput]
|
|
9643
9914
|
);
|
|
@@ -9655,8 +9926,8 @@ var TableDesktopTextField = ({
|
|
|
9655
9926
|
commitValue(input);
|
|
9656
9927
|
}
|
|
9657
9928
|
};
|
|
9658
|
-
return /* @__PURE__ */ (0,
|
|
9659
|
-
|
|
9929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
|
|
9930
|
+
import_material81.TextField,
|
|
9660
9931
|
{
|
|
9661
9932
|
fullWidth: true,
|
|
9662
9933
|
variant,
|
|
@@ -9688,7 +9959,7 @@ var TableDesktopTextField = ({
|
|
|
9688
9959
|
};
|
|
9689
9960
|
|
|
9690
9961
|
// src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
|
|
9691
|
-
var
|
|
9962
|
+
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
9692
9963
|
var TableDesktopEditableField = ({
|
|
9693
9964
|
editInitialValue,
|
|
9694
9965
|
rowId,
|
|
@@ -9709,8 +9980,8 @@ var TableDesktopEditableField = ({
|
|
|
9709
9980
|
allowBlankSelectOption
|
|
9710
9981
|
}
|
|
9711
9982
|
}) => {
|
|
9712
|
-
const [parsedFilterOptions, setParsedFilterOptions] = (0,
|
|
9713
|
-
(0,
|
|
9983
|
+
const [parsedFilterOptions, setParsedFilterOptions] = (0, import_react51.useState)();
|
|
9984
|
+
(0, import_react51.useEffect)(() => {
|
|
9714
9985
|
if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
|
|
9715
9986
|
const parsedOptions = filterOptions?.map(
|
|
9716
9987
|
(option) => ({
|
|
@@ -9722,7 +9993,7 @@ var TableDesktopEditableField = ({
|
|
|
9722
9993
|
}
|
|
9723
9994
|
}, [filterOptions, editableCellType]);
|
|
9724
9995
|
const editableComponents = {
|
|
9725
|
-
select: /* @__PURE__ */ (0,
|
|
9996
|
+
select: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9726
9997
|
TableDesktopSmartSelect,
|
|
9727
9998
|
{
|
|
9728
9999
|
rowId,
|
|
@@ -9740,7 +10011,7 @@ var TableDesktopEditableField = ({
|
|
|
9740
10011
|
onUpdateEditableCell
|
|
9741
10012
|
}
|
|
9742
10013
|
),
|
|
9743
|
-
multipleSelect: /* @__PURE__ */ (0,
|
|
10014
|
+
multipleSelect: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9744
10015
|
TableDesktopSmartMultipleSelect,
|
|
9745
10016
|
{
|
|
9746
10017
|
rowId,
|
|
@@ -9757,12 +10028,12 @@ var TableDesktopEditableField = ({
|
|
|
9757
10028
|
onUpdateEditableCell
|
|
9758
10029
|
}
|
|
9759
10030
|
),
|
|
9760
|
-
checkbox: /* @__PURE__ */ (0,
|
|
9761
|
-
|
|
10031
|
+
checkbox: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
10032
|
+
import_material82.FormControlLabel,
|
|
9762
10033
|
{
|
|
9763
10034
|
label: showCheckboxLabel ? inputLabel : "",
|
|
9764
|
-
control: /* @__PURE__ */ (0,
|
|
9765
|
-
|
|
10035
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
10036
|
+
import_material82.Checkbox,
|
|
9766
10037
|
{
|
|
9767
10038
|
disableRipple: true,
|
|
9768
10039
|
disabled,
|
|
@@ -9779,7 +10050,7 @@ var TableDesktopEditableField = ({
|
|
|
9779
10050
|
)
|
|
9780
10051
|
}
|
|
9781
10052
|
),
|
|
9782
|
-
text: /* @__PURE__ */ (0,
|
|
10053
|
+
text: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9783
10054
|
TableDesktopTextField,
|
|
9784
10055
|
{
|
|
9785
10056
|
type: "text",
|
|
@@ -9794,7 +10065,7 @@ var TableDesktopEditableField = ({
|
|
|
9794
10065
|
onUpdateEditableCell
|
|
9795
10066
|
}
|
|
9796
10067
|
),
|
|
9797
|
-
numeric: /* @__PURE__ */ (0,
|
|
10068
|
+
numeric: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9798
10069
|
TableDesktopTextField,
|
|
9799
10070
|
{
|
|
9800
10071
|
type: "numeric",
|
|
@@ -9809,15 +10080,14 @@ var TableDesktopEditableField = ({
|
|
|
9809
10080
|
onUpdateEditableCell
|
|
9810
10081
|
}
|
|
9811
10082
|
),
|
|
9812
|
-
date: /* @__PURE__ */ (0,
|
|
10083
|
+
date: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9813
10084
|
import_x_date_pickers.DatePicker,
|
|
9814
10085
|
{
|
|
9815
10086
|
defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
|
|
9816
10087
|
label: inputLabel,
|
|
9817
|
-
format: "DD/MM/YYYY",
|
|
9818
10088
|
onAccept: (value) => {
|
|
9819
10089
|
const formattedValue = value?.format("YYYY-MM-DD") ?? null;
|
|
9820
|
-
const formattedLabel = value?.format("
|
|
10090
|
+
const formattedLabel = value?.format("L") ?? null;
|
|
9821
10091
|
onUpdateEditableCell?.({
|
|
9822
10092
|
rowId,
|
|
9823
10093
|
columnId,
|
|
@@ -9838,7 +10108,7 @@ var TableDesktopEditableField = ({
|
|
|
9838
10108
|
}
|
|
9839
10109
|
}
|
|
9840
10110
|
),
|
|
9841
|
-
time: /* @__PURE__ */ (0,
|
|
10111
|
+
time: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9842
10112
|
import_x_date_pickers.TimePicker,
|
|
9843
10113
|
{
|
|
9844
10114
|
defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
|
|
@@ -9865,7 +10135,7 @@ var TableDesktopEditableField = ({
|
|
|
9865
10135
|
}
|
|
9866
10136
|
}
|
|
9867
10137
|
),
|
|
9868
|
-
tags: /* @__PURE__ */ (0,
|
|
10138
|
+
tags: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9869
10139
|
TableDesktopTagsField,
|
|
9870
10140
|
{
|
|
9871
10141
|
initialValue: editInitialValue,
|
|
@@ -9886,8 +10156,8 @@ var TableDesktopEditableField = ({
|
|
|
9886
10156
|
|
|
9887
10157
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
9888
10158
|
var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
|
|
9889
|
-
var
|
|
9890
|
-
var
|
|
10159
|
+
var import_material83 = require("@mui/material");
|
|
10160
|
+
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
9891
10161
|
var TableDesktopFooter = ({
|
|
9892
10162
|
numPages,
|
|
9893
10163
|
page,
|
|
@@ -9898,8 +10168,8 @@ var TableDesktopFooter = ({
|
|
|
9898
10168
|
refetchData,
|
|
9899
10169
|
isFetching
|
|
9900
10170
|
}) => {
|
|
9901
|
-
return /* @__PURE__ */ (0,
|
|
9902
|
-
|
|
10171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
|
|
10172
|
+
import_material83.Box,
|
|
9903
10173
|
{
|
|
9904
10174
|
sx: {
|
|
9905
10175
|
py: 1,
|
|
@@ -9910,8 +10180,8 @@ var TableDesktopFooter = ({
|
|
|
9910
10180
|
borderTop: `1px solid ${colors.neutral300}`
|
|
9911
10181
|
},
|
|
9912
10182
|
children: [
|
|
9913
|
-
refetchData ? /* @__PURE__ */ (0,
|
|
9914
|
-
|
|
10183
|
+
refetchData ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
10184
|
+
import_material83.Button,
|
|
9915
10185
|
{
|
|
9916
10186
|
disableRipple: true,
|
|
9917
10187
|
variant: "text",
|
|
@@ -9922,7 +10192,7 @@ var TableDesktopFooter = ({
|
|
|
9922
10192
|
ml: 1,
|
|
9923
10193
|
gap: 1
|
|
9924
10194
|
},
|
|
9925
|
-
children: /* @__PURE__ */ (0,
|
|
10195
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
9926
10196
|
import_Refresh.default,
|
|
9927
10197
|
{
|
|
9928
10198
|
fontSize: "small",
|
|
@@ -9931,22 +10201,22 @@ var TableDesktopFooter = ({
|
|
|
9931
10201
|
)
|
|
9932
10202
|
}
|
|
9933
10203
|
) : null,
|
|
9934
|
-
/* @__PURE__ */ (0,
|
|
9935
|
-
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0,
|
|
9936
|
-
/* @__PURE__ */ (0,
|
|
9937
|
-
/* @__PURE__ */ (0,
|
|
9938
|
-
|
|
10204
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
|
|
10205
|
+
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
10206
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Typography, { fontSize: 12, children: "Rows per page:" }),
|
|
10207
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
10208
|
+
import_material83.Select,
|
|
9939
10209
|
{
|
|
9940
10210
|
value: pageSize,
|
|
9941
10211
|
onChange: onPageSizeChange,
|
|
9942
10212
|
size: "small",
|
|
9943
10213
|
variant: "standard",
|
|
9944
|
-
children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0,
|
|
10214
|
+
children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.MenuItem, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
|
|
9945
10215
|
}
|
|
9946
10216
|
)
|
|
9947
10217
|
] }) : null,
|
|
9948
|
-
/* @__PURE__ */ (0,
|
|
9949
|
-
|
|
10218
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
10219
|
+
import_material83.Pagination,
|
|
9950
10220
|
{
|
|
9951
10221
|
color: "standard",
|
|
9952
10222
|
count: numPages,
|
|
@@ -9961,15 +10231,15 @@ var TableDesktopFooter = ({
|
|
|
9961
10231
|
};
|
|
9962
10232
|
|
|
9963
10233
|
// src/components/TableDesktopCell/TableDesktopCell.tsx
|
|
9964
|
-
var
|
|
10234
|
+
var import_react52 = require("react");
|
|
9965
10235
|
var import_Check3 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
9966
10236
|
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
9967
10237
|
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
9968
|
-
var
|
|
9969
|
-
var
|
|
10238
|
+
var import_material84 = require("@mui/material");
|
|
10239
|
+
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
9970
10240
|
var getReadOnlyBooleanIcon = (value) => {
|
|
9971
10241
|
if (value) {
|
|
9972
|
-
return /* @__PURE__ */ (0,
|
|
10242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Check3.default, { sx: { fontSize: 16 } });
|
|
9973
10243
|
}
|
|
9974
10244
|
return "-";
|
|
9975
10245
|
};
|
|
@@ -9991,10 +10261,10 @@ var TableDesktopCell = ({
|
|
|
9991
10261
|
onCellClick,
|
|
9992
10262
|
headCell
|
|
9993
10263
|
}) => {
|
|
9994
|
-
const [isCellHovered, setIsCellHovered] = (0,
|
|
9995
|
-
const [isCellInEditMode, setIsCellInEditMode] = (0,
|
|
10264
|
+
const [isCellHovered, setIsCellHovered] = (0, import_react52.useState)(false);
|
|
10265
|
+
const [isCellInEditMode, setIsCellInEditMode] = (0, import_react52.useState)(false);
|
|
9996
10266
|
const { width, editableCellType } = headCell;
|
|
9997
|
-
(0,
|
|
10267
|
+
(0, import_react52.useEffect)(() => {
|
|
9998
10268
|
const handleKeyDown = (e) => {
|
|
9999
10269
|
if (e.key === "Escape") {
|
|
10000
10270
|
setIsCellInEditMode(false);
|
|
@@ -10012,8 +10282,8 @@ var TableDesktopCell = ({
|
|
|
10012
10282
|
setIsCellInEditMode((prev) => !prev);
|
|
10013
10283
|
};
|
|
10014
10284
|
const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
|
|
10015
|
-
return /* @__PURE__ */ (0,
|
|
10016
|
-
|
|
10285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
10286
|
+
import_material84.TableCell,
|
|
10017
10287
|
{
|
|
10018
10288
|
align: "left",
|
|
10019
10289
|
onMouseEnter: () => isCellEditable && setIsCellHovered(true),
|
|
@@ -10027,9 +10297,9 @@ var TableDesktopCell = ({
|
|
|
10027
10297
|
":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
|
|
10028
10298
|
background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
|
|
10029
10299
|
},
|
|
10030
|
-
children: /* @__PURE__ */ (0,
|
|
10031
|
-
enableEditMode && isCellHovered ? /* @__PURE__ */ (0,
|
|
10032
|
-
|
|
10300
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
|
|
10301
|
+
enableEditMode && isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Tooltip, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
10302
|
+
import_material84.IconButton,
|
|
10033
10303
|
{
|
|
10034
10304
|
onClick: handleEditClick,
|
|
10035
10305
|
sx: {
|
|
@@ -10043,10 +10313,10 @@ var TableDesktopCell = ({
|
|
|
10043
10313
|
backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
10044
10314
|
}
|
|
10045
10315
|
},
|
|
10046
|
-
children: isCellInEditMode ? /* @__PURE__ */ (0,
|
|
10316
|
+
children: isCellInEditMode ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Edit.default, { fontSize: "small" })
|
|
10047
10317
|
}
|
|
10048
10318
|
) }) : null,
|
|
10049
|
-
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0,
|
|
10319
|
+
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
10050
10320
|
TableDesktopEditableField,
|
|
10051
10321
|
{
|
|
10052
10322
|
editInitialValue,
|
|
@@ -10062,12 +10332,12 @@ var TableDesktopCell = ({
|
|
|
10062
10332
|
};
|
|
10063
10333
|
|
|
10064
10334
|
// src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
|
|
10065
|
-
var
|
|
10335
|
+
var import_react53 = require("react");
|
|
10066
10336
|
var import_Download = __toESM(require("@mui/icons-material/Download"), 1);
|
|
10067
10337
|
var import_KeyboardArrowLeft2 = __toESM(require("@mui/icons-material/KeyboardArrowLeft"), 1);
|
|
10068
10338
|
var import_KeyboardArrowRight2 = __toESM(require("@mui/icons-material/KeyboardArrowRight"), 1);
|
|
10069
|
-
var
|
|
10070
|
-
var
|
|
10339
|
+
var import_material85 = require("@mui/material");
|
|
10340
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
10071
10341
|
var TableDesktopToolbar = ({
|
|
10072
10342
|
toolbarLabel,
|
|
10073
10343
|
headCells,
|
|
@@ -10090,12 +10360,12 @@ var TableDesktopToolbar = ({
|
|
|
10090
10360
|
renderTableColumnConfigurationMenu,
|
|
10091
10361
|
renderInfoIcons
|
|
10092
10362
|
}) => {
|
|
10093
|
-
const scrollRef = (0,
|
|
10094
|
-
const [bulkChanges, setBulkChanges] = (0,
|
|
10095
|
-
const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0,
|
|
10096
|
-
const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0,
|
|
10097
|
-
const [resetCounter, setResetCounter] = (0,
|
|
10098
|
-
const visibleEditableColumns = (0,
|
|
10363
|
+
const scrollRef = (0, import_react53.useRef)(null);
|
|
10364
|
+
const [bulkChanges, setBulkChanges] = (0, import_react53.useState)([]);
|
|
10365
|
+
const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0, import_react53.useState)(false);
|
|
10366
|
+
const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0, import_react53.useState)(false);
|
|
10367
|
+
const [resetCounter, setResetCounter] = (0, import_react53.useState)(0);
|
|
10368
|
+
const visibleEditableColumns = (0, import_react53.useMemo)(
|
|
10099
10369
|
() => headCells.filter(
|
|
10100
10370
|
(headCell) => headCell?.enabled && !!headCell?.editableCellType
|
|
10101
10371
|
),
|
|
@@ -10121,8 +10391,8 @@ var TableDesktopToolbar = ({
|
|
|
10121
10391
|
return [...prev, { field: columnId, value, label }];
|
|
10122
10392
|
});
|
|
10123
10393
|
};
|
|
10124
|
-
return /* @__PURE__ */ (0,
|
|
10125
|
-
|
|
10394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
10395
|
+
import_material85.Box,
|
|
10126
10396
|
{
|
|
10127
10397
|
sx: {
|
|
10128
10398
|
borderBottom: "1px solid",
|
|
@@ -10130,8 +10400,8 @@ var TableDesktopToolbar = ({
|
|
|
10130
10400
|
maxWidth: "100%"
|
|
10131
10401
|
},
|
|
10132
10402
|
children: [
|
|
10133
|
-
/* @__PURE__ */ (0,
|
|
10134
|
-
|
|
10403
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
10404
|
+
import_material85.Box,
|
|
10135
10405
|
{
|
|
10136
10406
|
sx: {
|
|
10137
10407
|
py: 1,
|
|
@@ -10142,8 +10412,8 @@ var TableDesktopToolbar = ({
|
|
|
10142
10412
|
background: isBulkChangesMode ? colors.neutral150 : void 0
|
|
10143
10413
|
},
|
|
10144
10414
|
children: [
|
|
10145
|
-
/* @__PURE__ */ (0,
|
|
10146
|
-
|
|
10415
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
10416
|
+
import_material85.Box,
|
|
10147
10417
|
{
|
|
10148
10418
|
sx: {
|
|
10149
10419
|
py: 1,
|
|
@@ -10153,21 +10423,21 @@ var TableDesktopToolbar = ({
|
|
|
10153
10423
|
whiteSpace: "nowrap"
|
|
10154
10424
|
},
|
|
10155
10425
|
children: [
|
|
10156
|
-
toolbarLabel ? /* @__PURE__ */ (0,
|
|
10157
|
-
/* @__PURE__ */ (0,
|
|
10158
|
-
/* @__PURE__ */ (0,
|
|
10426
|
+
toolbarLabel ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
10427
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Typography, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
|
|
10428
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Divider, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
|
|
10159
10429
|
] }) : null,
|
|
10160
|
-
renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0,
|
|
10161
|
-
|
|
10430
|
+
renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10431
|
+
import_material85.Tooltip,
|
|
10162
10432
|
{
|
|
10163
10433
|
title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
|
|
10164
|
-
children: /* @__PURE__ */ (0,
|
|
10165
|
-
|
|
10434
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10435
|
+
import_material85.FormControlLabel,
|
|
10166
10436
|
{
|
|
10167
10437
|
label: "Bulk Changes Mode",
|
|
10168
10438
|
disabled: disableBulkChangesMode || !visibleEditableColumns.length,
|
|
10169
|
-
control: /* @__PURE__ */ (0,
|
|
10170
|
-
|
|
10439
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10440
|
+
import_material85.Switch,
|
|
10171
10441
|
{
|
|
10172
10442
|
size: "small",
|
|
10173
10443
|
"aria-label": "bulk-changes-mode-switch",
|
|
@@ -10181,17 +10451,17 @@ var TableDesktopToolbar = ({
|
|
|
10181
10451
|
]
|
|
10182
10452
|
}
|
|
10183
10453
|
),
|
|
10184
|
-
isScrollable && /* @__PURE__ */ (0,
|
|
10185
|
-
|
|
10454
|
+
isScrollable && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10455
|
+
import_material85.IconButton,
|
|
10186
10456
|
{
|
|
10187
10457
|
"aria-label": "scroll-left",
|
|
10188
10458
|
sx: { padding: 0, alignSelf: "center" },
|
|
10189
10459
|
onClick: () => scroll("left"),
|
|
10190
|
-
children: /* @__PURE__ */ (0,
|
|
10460
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_KeyboardArrowLeft2.default, {})
|
|
10191
10461
|
}
|
|
10192
10462
|
),
|
|
10193
|
-
/* @__PURE__ */ (0,
|
|
10194
|
-
|
|
10463
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10464
|
+
import_material85.Box,
|
|
10195
10465
|
{
|
|
10196
10466
|
ref: scrollRef,
|
|
10197
10467
|
sx: {
|
|
@@ -10212,11 +10482,11 @@ var TableDesktopToolbar = ({
|
|
|
10212
10482
|
if (bulkUpdateDisabled) {
|
|
10213
10483
|
return null;
|
|
10214
10484
|
}
|
|
10215
|
-
return editableCellType && /* @__PURE__ */ (0,
|
|
10216
|
-
|
|
10485
|
+
return editableCellType && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10486
|
+
import_material85.Box,
|
|
10217
10487
|
{
|
|
10218
10488
|
sx: { width, flex: "0 0 auto" },
|
|
10219
|
-
children: /* @__PURE__ */ (0,
|
|
10489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10220
10490
|
TableDesktopEditableField,
|
|
10221
10491
|
{
|
|
10222
10492
|
headCell,
|
|
@@ -10232,18 +10502,18 @@ var TableDesktopToolbar = ({
|
|
|
10232
10502
|
}) : null
|
|
10233
10503
|
}
|
|
10234
10504
|
),
|
|
10235
|
-
isScrollable && /* @__PURE__ */ (0,
|
|
10236
|
-
|
|
10505
|
+
isScrollable && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10506
|
+
import_material85.IconButton,
|
|
10237
10507
|
{
|
|
10238
10508
|
"aria-label": "scroll-right",
|
|
10239
10509
|
sx: { p: 0, alignSelf: "center" },
|
|
10240
10510
|
onClick: () => scroll("right"),
|
|
10241
|
-
children: /* @__PURE__ */ (0,
|
|
10511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_KeyboardArrowRight2.default, {})
|
|
10242
10512
|
}
|
|
10243
10513
|
),
|
|
10244
|
-
isBulkChangesMode ? /* @__PURE__ */ (0,
|
|
10245
|
-
/* @__PURE__ */ (0,
|
|
10246
|
-
|
|
10514
|
+
isBulkChangesMode ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
10515
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10516
|
+
import_material85.Button,
|
|
10247
10517
|
{
|
|
10248
10518
|
variant: "outlined",
|
|
10249
10519
|
sx: { borderRadius: 25, alignSelf: "center" },
|
|
@@ -10255,8 +10525,8 @@ var TableDesktopToolbar = ({
|
|
|
10255
10525
|
children: "RESET"
|
|
10256
10526
|
}
|
|
10257
10527
|
),
|
|
10258
|
-
/* @__PURE__ */ (0,
|
|
10259
|
-
|
|
10528
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10529
|
+
import_material85.Button,
|
|
10260
10530
|
{
|
|
10261
10531
|
variant: "contained",
|
|
10262
10532
|
"aria-label": "bulk-changes-apply-button",
|
|
@@ -10266,26 +10536,26 @@ var TableDesktopToolbar = ({
|
|
|
10266
10536
|
children: "APPLY"
|
|
10267
10537
|
}
|
|
10268
10538
|
)
|
|
10269
|
-
] }) : /* @__PURE__ */ (0,
|
|
10539
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material85.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
10270
10540
|
renderInfoIcons,
|
|
10271
|
-
renderExportCsvDialog ? /* @__PURE__ */ (0,
|
|
10272
|
-
|
|
10541
|
+
renderExportCsvDialog ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Tooltip, { title: "Download List", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10542
|
+
import_material85.IconButton,
|
|
10273
10543
|
{
|
|
10274
10544
|
disableRipple: true,
|
|
10275
10545
|
disabled: isDataEmpty,
|
|
10276
10546
|
"aria-label": "export-csv-button",
|
|
10277
10547
|
onClick: () => setIsExportCsvDialogOpen(true),
|
|
10278
|
-
children: /* @__PURE__ */ (0,
|
|
10548
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_Download.default, { fill: colors.neutral750 })
|
|
10279
10549
|
}
|
|
10280
10550
|
) }) }) : null,
|
|
10281
|
-
renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0,
|
|
10282
|
-
|
|
10551
|
+
renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Tooltip, { title: "Table Column Configuration", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10552
|
+
import_material85.IconButton,
|
|
10283
10553
|
{
|
|
10284
10554
|
disableRipple: true,
|
|
10285
10555
|
"aria-label": "table-column-config-button",
|
|
10286
10556
|
ref: tableToolbarMenuButtonRef,
|
|
10287
10557
|
onClick: onClickToolbarMenuOpen,
|
|
10288
|
-
children: /* @__PURE__ */ (0,
|
|
10558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(IconTableEdit_default, { fill: colors.neutral750 })
|
|
10289
10559
|
}
|
|
10290
10560
|
) }) : null
|
|
10291
10561
|
] })
|
|
@@ -10318,11 +10588,11 @@ var TableDesktopToolbar = ({
|
|
|
10318
10588
|
};
|
|
10319
10589
|
|
|
10320
10590
|
// src/components/TableHeader/TableHeader.tsx
|
|
10321
|
-
var
|
|
10591
|
+
var import_react54 = require("react");
|
|
10322
10592
|
var import_ImportExport = __toESM(require("@mui/icons-material/ImportExport"), 1);
|
|
10323
|
-
var
|
|
10593
|
+
var import_material86 = require("@mui/material");
|
|
10324
10594
|
var import_mui53 = require("tss-react/mui");
|
|
10325
|
-
var
|
|
10595
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
10326
10596
|
var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
10327
10597
|
sortLabel: {
|
|
10328
10598
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -10331,9 +10601,9 @@ var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
|
10331
10601
|
}
|
|
10332
10602
|
}));
|
|
10333
10603
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
10334
|
-
const [sortableCells, setSortableCells] = (0,
|
|
10604
|
+
const [sortableCells, setSortableCells] = (0, import_react54.useState)([]);
|
|
10335
10605
|
const { classes } = useStyles47();
|
|
10336
|
-
(0,
|
|
10606
|
+
(0, import_react54.useEffect)(() => {
|
|
10337
10607
|
setSortableCells(cells);
|
|
10338
10608
|
}, []);
|
|
10339
10609
|
const getNewSortDirection = (direction) => {
|
|
@@ -10367,8 +10637,8 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10367
10637
|
});
|
|
10368
10638
|
setSortableCells(sortedCells);
|
|
10369
10639
|
};
|
|
10370
|
-
return /* @__PURE__ */ (0,
|
|
10371
|
-
|
|
10640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
10641
|
+
import_material86.TableSortLabel,
|
|
10372
10642
|
{
|
|
10373
10643
|
className: classes.sortLabel,
|
|
10374
10644
|
direction: cell?.direction || "asc",
|
|
@@ -10378,12 +10648,12 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10378
10648
|
}
|
|
10379
10649
|
) : cell.label }, cell.label || key)) }) });
|
|
10380
10650
|
};
|
|
10381
|
-
var TableHeader_default = (0,
|
|
10651
|
+
var TableHeader_default = (0, import_react54.memo)(TableHeader);
|
|
10382
10652
|
|
|
10383
10653
|
// src/components/TextDivider/TextDivider.tsx
|
|
10384
|
-
var
|
|
10654
|
+
var import_material87 = require("@mui/material");
|
|
10385
10655
|
var import_mui54 = require("tss-react/mui");
|
|
10386
|
-
var
|
|
10656
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
10387
10657
|
var useStyles48 = (0, import_mui54.makeStyles)()(() => ({
|
|
10388
10658
|
icon: {
|
|
10389
10659
|
fontSize: 20
|
|
@@ -10420,19 +10690,19 @@ var TextDivider = ({
|
|
|
10420
10690
|
}) => {
|
|
10421
10691
|
const { classes } = useStyles48();
|
|
10422
10692
|
const iconColor = color ?? colors.neutral900;
|
|
10423
|
-
return /* @__PURE__ */ (0,
|
|
10424
|
-
|
|
10693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
|
|
10694
|
+
import_material87.Box,
|
|
10425
10695
|
{
|
|
10426
10696
|
display: "flex",
|
|
10427
10697
|
alignItems: "center",
|
|
10428
10698
|
justifyContent: "space-between",
|
|
10429
10699
|
className: classes.container,
|
|
10430
10700
|
children: [
|
|
10431
|
-
/* @__PURE__ */ (0,
|
|
10432
|
-
/* @__PURE__ */ (0,
|
|
10433
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0,
|
|
10434
|
-
/* @__PURE__ */ (0,
|
|
10435
|
-
|
|
10701
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Divider, { className: classes.leftDivider }),
|
|
10702
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material87.Box, { className: classes.center, children: [
|
|
10703
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
10704
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
10705
|
+
import_material87.Typography,
|
|
10436
10706
|
{
|
|
10437
10707
|
color: "textSecondary",
|
|
10438
10708
|
className: classes.title,
|
|
@@ -10440,9 +10710,9 @@ var TextDivider = ({
|
|
|
10440
10710
|
children: title
|
|
10441
10711
|
}
|
|
10442
10712
|
),
|
|
10443
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0,
|
|
10713
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
10444
10714
|
] }) }),
|
|
10445
|
-
/* @__PURE__ */ (0,
|
|
10715
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Divider, { className: classes.rightDivider })
|
|
10446
10716
|
]
|
|
10447
10717
|
}
|
|
10448
10718
|
);
|
|
@@ -10454,7 +10724,7 @@ var import_react_dates = require("react-dates");
|
|
|
10454
10724
|
var import_mui55 = require("tss-react/mui");
|
|
10455
10725
|
var import_initialize = require("react-dates/initialize");
|
|
10456
10726
|
var import_datepicker = require("react-dates/lib/css/_datepicker.css");
|
|
10457
|
-
var
|
|
10727
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
10458
10728
|
var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
|
|
10459
10729
|
wrapper: {
|
|
10460
10730
|
"& .DateRangePicker": {
|
|
@@ -10550,15 +10820,15 @@ var ThemedDateRangePicker = ({
|
|
|
10550
10820
|
...props
|
|
10551
10821
|
}) => {
|
|
10552
10822
|
const { classes, cx } = useStyles49();
|
|
10553
|
-
return /* @__PURE__ */ (0,
|
|
10823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_react_dates.DateRangePicker, { ...props }) });
|
|
10554
10824
|
};
|
|
10555
10825
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
10556
10826
|
|
|
10557
10827
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
10558
|
-
var
|
|
10559
|
-
var
|
|
10828
|
+
var import_react55 = require("react");
|
|
10829
|
+
var import_material88 = require("@mui/material");
|
|
10560
10830
|
var import_mui56 = require("tss-react/mui");
|
|
10561
|
-
var
|
|
10831
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
10562
10832
|
var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
|
|
10563
10833
|
menuButton: {
|
|
10564
10834
|
color: theme.palette.primary.contrastText
|
|
@@ -10575,13 +10845,14 @@ var TheToolbar = ({
|
|
|
10575
10845
|
handleOpen,
|
|
10576
10846
|
LeftDrawer,
|
|
10577
10847
|
leftSection,
|
|
10848
|
+
centerSection,
|
|
10578
10849
|
rightSection,
|
|
10579
10850
|
isAuthenticated = true
|
|
10580
10851
|
}) => {
|
|
10581
10852
|
const { classes } = useStyles50();
|
|
10582
|
-
return /* @__PURE__ */ (0,
|
|
10583
|
-
/* @__PURE__ */ (0,
|
|
10584
|
-
isAuthenticated ? /* @__PURE__ */ (0,
|
|
10853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Box, { children: [
|
|
10854
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Toolbar, { className: classes.topBar, children: [
|
|
10855
|
+
isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
10585
10856
|
RoundButton_default,
|
|
10586
10857
|
{
|
|
10587
10858
|
className: classes.menuButton,
|
|
@@ -10590,7 +10861,7 @@ var TheToolbar = ({
|
|
|
10590
10861
|
onClick: handleOpen
|
|
10591
10862
|
}
|
|
10592
10863
|
) : null,
|
|
10593
|
-
/* @__PURE__ */ (0,
|
|
10864
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
10594
10865
|
CompanyLogo_default,
|
|
10595
10866
|
{
|
|
10596
10867
|
size: "small",
|
|
@@ -10599,31 +10870,43 @@ var TheToolbar = ({
|
|
|
10599
10870
|
imageLogoLightSmall
|
|
10600
10871
|
}
|
|
10601
10872
|
),
|
|
10602
|
-
/* @__PURE__ */ (0,
|
|
10603
|
-
/* @__PURE__ */ (0,
|
|
10873
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { ml: 2, children: leftSection }),
|
|
10874
|
+
centerSection ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
10875
|
+
import_material88.Box,
|
|
10876
|
+
{
|
|
10877
|
+
sx: {
|
|
10878
|
+
flexGrow: 1,
|
|
10879
|
+
minWidth: 0,
|
|
10880
|
+
display: "flex",
|
|
10881
|
+
justifyContent: "center"
|
|
10882
|
+
},
|
|
10883
|
+
children: centerSection
|
|
10884
|
+
}
|
|
10885
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { sx: { flexGrow: 1 } }),
|
|
10886
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { children: rightSection })
|
|
10604
10887
|
] }) }),
|
|
10605
10888
|
LeftDrawer
|
|
10606
10889
|
] });
|
|
10607
10890
|
};
|
|
10608
|
-
var TheToolbar_default = (0,
|
|
10891
|
+
var TheToolbar_default = (0, import_react55.memo)(TheToolbar);
|
|
10609
10892
|
|
|
10610
10893
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
10611
|
-
var
|
|
10612
|
-
var
|
|
10894
|
+
var import_material89 = require("@mui/material");
|
|
10895
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
10613
10896
|
var ToastMessage = ({
|
|
10614
10897
|
toastType,
|
|
10615
10898
|
toastMessage,
|
|
10616
10899
|
open,
|
|
10617
10900
|
onClose
|
|
10618
|
-
}) => /* @__PURE__ */ (0,
|
|
10619
|
-
|
|
10901
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
10902
|
+
import_material89.Snackbar,
|
|
10620
10903
|
{
|
|
10621
10904
|
open,
|
|
10622
10905
|
autoHideDuration: 3e3,
|
|
10623
10906
|
onClose,
|
|
10624
10907
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
10625
|
-
children: /* @__PURE__ */ (0,
|
|
10626
|
-
|
|
10908
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
10909
|
+
import_material89.Alert,
|
|
10627
10910
|
{
|
|
10628
10911
|
elevation: 6,
|
|
10629
10912
|
variant: "filled",
|
|
@@ -10649,9 +10932,9 @@ var ToastMessage = ({
|
|
|
10649
10932
|
var ToastMessage_default = ToastMessage;
|
|
10650
10933
|
|
|
10651
10934
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
10652
|
-
var
|
|
10935
|
+
var import_material90 = require("@mui/material");
|
|
10653
10936
|
var import_mui57 = require("tss-react/mui");
|
|
10654
|
-
var
|
|
10937
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
10655
10938
|
var useStyles51 = (0, import_mui57.makeStyles)()((theme) => ({
|
|
10656
10939
|
paper: {
|
|
10657
10940
|
padding: theme.spacing(2)
|
|
@@ -10681,20 +10964,20 @@ var TwoButtonDialog = ({
|
|
|
10681
10964
|
cancelButton
|
|
10682
10965
|
}) => {
|
|
10683
10966
|
const { classes } = useStyles51();
|
|
10684
|
-
return /* @__PURE__ */ (0,
|
|
10685
|
-
|
|
10967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10968
|
+
import_material90.Dialog,
|
|
10686
10969
|
{
|
|
10687
10970
|
open,
|
|
10688
10971
|
disableEnforceFocus: true,
|
|
10689
10972
|
maxWidth: "sm",
|
|
10690
10973
|
fullWidth: true,
|
|
10691
10974
|
closeAfterTransition: true,
|
|
10692
|
-
BackdropComponent:
|
|
10975
|
+
BackdropComponent: import_material90.Backdrop,
|
|
10693
10976
|
BackdropProps: { timeout: 500 },
|
|
10694
|
-
children: /* @__PURE__ */ (0,
|
|
10695
|
-
/* @__PURE__ */ (0,
|
|
10696
|
-
/* @__PURE__ */ (0,
|
|
10697
|
-
|
|
10977
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Paper, { className: classes.paper, children: [
|
|
10978
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Box, { className: classes.mb, children: [
|
|
10979
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10980
|
+
import_material90.Box,
|
|
10698
10981
|
{
|
|
10699
10982
|
sx: {
|
|
10700
10983
|
fontWeight: 600
|
|
@@ -10702,23 +10985,23 @@ var TwoButtonDialog = ({
|
|
|
10702
10985
|
children: title
|
|
10703
10986
|
}
|
|
10704
10987
|
) }),
|
|
10705
|
-
/* @__PURE__ */ (0,
|
|
10706
|
-
|
|
10988
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
|
|
10989
|
+
import_material90.Box,
|
|
10707
10990
|
{
|
|
10708
10991
|
className: classes.mt,
|
|
10709
10992
|
sx: {
|
|
10710
10993
|
fontWeight: 600
|
|
10711
10994
|
},
|
|
10712
10995
|
children: [
|
|
10713
|
-
subtitle1 && /* @__PURE__ */ (0,
|
|
10714
|
-
subtitle2 && /* @__PURE__ */ (0,
|
|
10996
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
10997
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
10715
10998
|
]
|
|
10716
10999
|
}
|
|
10717
11000
|
)
|
|
10718
11001
|
] }),
|
|
10719
|
-
/* @__PURE__ */ (0,
|
|
10720
|
-
/* @__PURE__ */ (0,
|
|
10721
|
-
/* @__PURE__ */ (0,
|
|
11002
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Divider, {}),
|
|
11003
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Box, { className: classes.buttonContainer, children: [
|
|
11004
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10722
11005
|
FilledButton_default,
|
|
10723
11006
|
{
|
|
10724
11007
|
copy: cancelLabel,
|
|
@@ -10731,7 +11014,7 @@ var TwoButtonDialog = ({
|
|
|
10731
11014
|
}
|
|
10732
11015
|
}
|
|
10733
11016
|
),
|
|
10734
|
-
/* @__PURE__ */ (0,
|
|
11017
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10735
11018
|
FilledButton_default,
|
|
10736
11019
|
{
|
|
10737
11020
|
color: "primary",
|
|
@@ -10740,7 +11023,7 @@ var TwoButtonDialog = ({
|
|
|
10740
11023
|
}
|
|
10741
11024
|
)
|
|
10742
11025
|
] }),
|
|
10743
|
-
/* @__PURE__ */ (0,
|
|
11026
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Loading_default, { isLoading: dialogLoading })
|
|
10744
11027
|
] }) })
|
|
10745
11028
|
}
|
|
10746
11029
|
);
|
|
@@ -10748,30 +11031,30 @@ var TwoButtonDialog = ({
|
|
|
10748
11031
|
var TwoButtonDialog_default = TwoButtonDialog;
|
|
10749
11032
|
|
|
10750
11033
|
// src/components/UserBust/UserBust.tsx
|
|
10751
|
-
var
|
|
10752
|
-
var
|
|
10753
|
-
var
|
|
10754
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0,
|
|
10755
|
-
/* @__PURE__ */ (0,
|
|
10756
|
-
|
|
11034
|
+
var import_react56 = require("react");
|
|
11035
|
+
var import_material91 = require("@mui/material");
|
|
11036
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
11037
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { children: [
|
|
11038
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
11039
|
+
import_material91.Avatar,
|
|
10757
11040
|
{
|
|
10758
11041
|
src: user.profile_picture,
|
|
10759
11042
|
alt: "user_avatar",
|
|
10760
11043
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
10761
11044
|
}
|
|
10762
11045
|
),
|
|
10763
|
-
/* @__PURE__ */ (0,
|
|
10764
|
-
/* @__PURE__ */ (0,
|
|
10765
|
-
/* @__PURE__ */ (0,
|
|
11046
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
11047
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material91.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
11048
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material91.Typography, { ...typographyProps.username, children: user.username })
|
|
10766
11049
|
] })
|
|
10767
11050
|
] });
|
|
10768
|
-
var UserBust_default = (0,
|
|
11051
|
+
var UserBust_default = (0, import_react56.memo)(UserBust);
|
|
10769
11052
|
|
|
10770
11053
|
// src/components/icons/IconChart.tsx
|
|
10771
|
-
var
|
|
11054
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
10772
11055
|
var SvgIconChart = (props) => {
|
|
10773
11056
|
const { fill } = props;
|
|
10774
|
-
return /* @__PURE__ */ (0,
|
|
11057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
10775
11058
|
"svg",
|
|
10776
11059
|
{
|
|
10777
11060
|
width: "20",
|
|
@@ -10780,7 +11063,7 @@ var SvgIconChart = (props) => {
|
|
|
10780
11063
|
fill: "none",
|
|
10781
11064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10782
11065
|
...props,
|
|
10783
|
-
children: /* @__PURE__ */ (0,
|
|
11066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
10784
11067
|
"path",
|
|
10785
11068
|
{
|
|
10786
11069
|
d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
|
|
@@ -10828,6 +11111,8 @@ var IconChart_default = SvgIconChart;
|
|
|
10828
11111
|
FilterOptionsCheckboxes,
|
|
10829
11112
|
FilterSimpleSelector,
|
|
10830
11113
|
FixedFooter,
|
|
11114
|
+
GlobalSearch,
|
|
11115
|
+
GlobalSearchTrigger,
|
|
10831
11116
|
GooglePlacesAddressAutocomplete,
|
|
10832
11117
|
HashtagInput,
|
|
10833
11118
|
Header,
|