wcz-layout 10.1.2 → 10.1.6
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/{AggregatedCell-C7nAQyMO.mjs → AggregatedCell-CqGptV6i.mjs} +199 -150
- package/dist/AggregatedCell-CqGptV6i.mjs.map +1 -0
- package/dist/Approval-DoD-GRRH.mjs.map +1 -1
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -1
- package/dist/Email-BzQQkbe9.mjs.map +1 -1
- package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
- package/dist/{LayoutTable-DX9IaO8V.d.mts → LayoutTable-CRo43iWr.d.mts} +7 -3
- package/dist/{RouterListItemButton-ULMlaQh6.mjs → RouterListItemButton-ke6iPKkL.mjs} +9 -9
- package/dist/RouterListItemButton-ke6iPKkL.mjs.map +1 -0
- package/dist/{approval-DiNOXd4B.mjs → approval-L09uPzTU.mjs} +2 -2
- package/dist/approval-L09uPzTU.mjs.map +1 -0
- package/dist/auth.d.mts +1 -0
- package/dist/auth.mjs +15 -12
- package/dist/auth.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.mjs +594 -361
- package/dist/components.mjs.map +1 -1
- package/dist/{createApi-DGJJ4I_R.mjs → createApi-BhNkG4jz.mjs} +3 -3
- package/dist/createApi-BhNkG4jz.mjs.map +1 -0
- package/dist/data/client.mjs +3 -3
- package/dist/data/client.mjs.map +1 -1
- package/dist/data/server.mjs +4 -4
- package/dist/data/server.mjs.map +1 -1
- package/dist/{file-C14fhUeg.mjs → file-Chlljz3o.mjs} +4 -4
- package/dist/file-Chlljz3o.mjs.map +1 -0
- package/dist/{file-C5BOj1q8.mjs → file-Dl8JCcqy.mjs} +4 -4
- package/dist/file-Dl8JCcqy.mjs.map +1 -0
- package/dist/hooks.d.mts +2 -1
- package/dist/hooks.mjs +541 -591
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.mjs +420 -426
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.mjs +2 -2
- package/dist/middleware.mjs.map +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/{peoplesoft-BkJMCcHb.mjs → peoplesoft-BhintHQz.mjs} +3 -3
- package/dist/peoplesoft-BhintHQz.mjs.map +1 -0
- package/dist/{providers-DrairEO2.mjs → providers-BvuZWkpD.mjs} +2 -2
- package/dist/providers-BvuZWkpD.mjs.map +1 -0
- package/dist/{tokens-BLRreL1j.mjs → tokens-XuFhVbh5.mjs} +9 -6
- package/dist/tokens-XuFhVbh5.mjs.map +1 -0
- package/dist/{utils-BUpDoqme.mjs → utils-CaeVFWF-.mjs} +18 -7
- package/dist/utils-CaeVFWF-.mjs.map +1 -0
- package/dist/utils.mjs +1 -1
- package/dist/vite.mjs +11 -0
- package/dist/vite.mjs.map +1 -1
- package/package.json +131 -130
- package/skills/client-db/SKILL.md +136 -136
- package/skills/db-schema/SKILL.md +98 -98
- package/skills/dialogs/SKILL.md +74 -74
- package/skills/forms/SKILL.md +122 -122
- package/skills/general/SKILL.md +127 -127
- package/skills/general/references/exports.md +109 -109
- package/skills/migrations/SKILL.md +57 -57
- package/skills/migrations/versions/migrate-v10-to-v11.md +1 -1
- package/skills/migrations/versions/migrate-v9-to-v10.md +582 -582
- package/skills/routing/SKILL.md +87 -87
- package/skills/server-functions/SKILL.md +95 -95
- package/skills/services/SKILL.md +34 -34
- package/skills/services/docs/email.md +32 -32
- package/skills/services/docs/file.md +108 -108
- package/skills/services/docs/peoplesoft.md +114 -114
- package/skills/start/SKILL.md +52 -52
- package/skills/start/steps/01-git-setup.md +10 -10
- package/skills/start/steps/02-project-name-setup.md +19 -19
- package/skills/start/steps/03-apm-setup.md +97 -208
- package/skills/start/steps/04-wicop-setup.md +105 -105
- package/skills/start/steps/05-database-setup.md +52 -52
- package/skills/start/steps/06-entra-setup.md +96 -96
- package/skills/start/steps/07-vault-setup.md +115 -115
- package/skills/start/steps/08-generate-favicon.md +8 -8
- package/skills/start/steps/09-gitlab-ci.md +25 -25
- package/skills/start/steps/10-commit.md +15 -15
- package/skills/table/SKILL.md +266 -264
- package/dist/AggregatedCell-C7nAQyMO.mjs.map +0 -1
- package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
- package/dist/approval-DiNOXd4B.mjs.map +0 -1
- package/dist/createApi-DGJJ4I_R.mjs.map +0 -1
- package/dist/file-C14fhUeg.mjs.map +0 -1
- package/dist/file-C5BOj1q8.mjs.map +0 -1
- package/dist/peoplesoft-BkJMCcHb.mjs.map +0 -1
- package/dist/providers-DrairEO2.mjs.map +0 -1
- package/dist/tokens-BLRreL1j.mjs.map +0 -1
- package/dist/utils-BUpDoqme.mjs.map +0 -1
package/dist/hooks.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as foldForSearch, o as getFieldStatus } from "./utils-
|
|
2
|
-
import {
|
|
1
|
+
import { a as foldForSearch, o as getFieldStatus } from "./utils-CaeVFWF-.mjs";
|
|
2
|
+
import { S as useDialogs, _ as layoutTableFeatures, a as columnFlex, b as useHeaderContext, d as shortcutLabel, g as headerContext, h as cellContext, l as moveColumn, m as Pagination, n as formatValue, o as columnLabel, s as hasColumnLabel, t as AggregatedCell, v as tableContext, x as useTableContext, y as useCellContext } from "./AggregatedCell-CqGptV6i.mjs";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { Autocomplete, Badge, Box, Button, Checkbox, Divider, FormControl, FormControlLabel, FormHelperText, FormLabel, IconButton, InputAdornment, InputLabel, ListItemIcon, ListItemText, Menu, MenuItem, Popover, Radio, RadioGroup, Select, Skeleton, Slider, Stack, Switch, TableCell,
|
|
4
|
+
import { Autocomplete, Badge, Box, Button, Checkbox, Divider, FormControl, FormControlLabel, FormHelperText, FormLabel, IconButton, InputAdornment, InputLabel, ListItemIcon, ListItemText, Menu, MenuItem, Popover, Radio, RadioGroup, Select, Skeleton, Slider, Stack, Switch, TableCell, TableRow, TableSortLabel, TextField, Tooltip, Typography, useTheme } from "@mui/material";
|
|
5
5
|
import { DatePicker, DateTimePicker, TimePicker } from "@mui/x-date-pickers";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
|
-
import { useEffect, useRef, useState } from "react";
|
|
7
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
8
8
|
import { useTranslation, useTranslation as useTranslation$1 } from "react-i18next";
|
|
9
9
|
import ArrowBack from "@mui/icons-material/ArrowBack";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -32,12 +32,13 @@ import DeleteForever from "@mui/icons-material/DeleteForever";
|
|
|
32
32
|
import FilterList from "@mui/icons-material/FilterList";
|
|
33
33
|
import { useDebouncedCallback } from "@tanstack/react-pacer/debouncer";
|
|
34
34
|
import Search from "@mui/icons-material/Search";
|
|
35
|
+
import { flushSync } from "react-dom";
|
|
35
36
|
//#region src/components/form/FormAutocomplete.tsx
|
|
36
37
|
const FormAutocomplete = (t0) => {
|
|
37
|
-
const $ = c(
|
|
38
|
-
if ($[0] !== "
|
|
39
|
-
for (let $i = 0; $i <
|
|
40
|
-
$[0] = "
|
|
38
|
+
const $ = c(23);
|
|
39
|
+
if ($[0] !== "7338e11c7f4d0769336a0666323c7b023a45e63a1c42cdb4d71222e9ba6b3961") {
|
|
40
|
+
for (let $i = 0; $i < 23; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
41
|
+
$[0] = "7338e11c7f4d0769336a0666323c7b023a45e63a1c42cdb4d71222e9ba6b3961";
|
|
41
42
|
}
|
|
42
43
|
let autocompleteProps;
|
|
43
44
|
let textFieldProps;
|
|
@@ -88,109 +89,134 @@ const FormAutocomplete = (t0) => {
|
|
|
88
89
|
$[15] = t4;
|
|
89
90
|
} else t4 = $[15];
|
|
90
91
|
let t5;
|
|
91
|
-
if ($[16] !== autocompleteProps || $[17] !== field.handleBlur || $[18] !== field.
|
|
92
|
+
if ($[16] !== autocompleteProps || $[17] !== field.handleBlur || $[18] !== field.state.value || $[19] !== t2 || $[20] !== t3 || $[21] !== t4) {
|
|
92
93
|
t5 = /* @__PURE__ */ jsx(Autocomplete, {
|
|
93
94
|
value: field.state.value,
|
|
94
95
|
onChange: t2,
|
|
95
96
|
onInputChange: t3,
|
|
96
97
|
onBlur: field.handleBlur,
|
|
97
|
-
"aria-label": field.name,
|
|
98
98
|
...autocompleteProps,
|
|
99
99
|
renderInput: t4
|
|
100
100
|
});
|
|
101
101
|
$[16] = autocompleteProps;
|
|
102
102
|
$[17] = field.handleBlur;
|
|
103
|
-
$[18] = field.
|
|
104
|
-
$[19] =
|
|
105
|
-
$[20] =
|
|
106
|
-
$[21] =
|
|
107
|
-
$[22] =
|
|
108
|
-
|
|
109
|
-
} else t5 = $[23];
|
|
103
|
+
$[18] = field.state.value;
|
|
104
|
+
$[19] = t2;
|
|
105
|
+
$[20] = t3;
|
|
106
|
+
$[21] = t4;
|
|
107
|
+
$[22] = t5;
|
|
108
|
+
} else t5 = $[22];
|
|
110
109
|
return t5;
|
|
111
110
|
};
|
|
112
111
|
//#endregion
|
|
113
112
|
//#region src/components/form/FormCheckbox.tsx
|
|
114
|
-
const FormCheckbox = (
|
|
115
|
-
const $ = c(
|
|
116
|
-
if ($[0] !== "
|
|
117
|
-
for (let $i = 0; $i <
|
|
118
|
-
$[0] = "
|
|
113
|
+
const FormCheckbox = (t0) => {
|
|
114
|
+
const $ = c(29);
|
|
115
|
+
if ($[0] !== "b52e840cfa41500a446e044d8a0b97ab30fdcd357b533c9d8b35a26c24a7c45c") {
|
|
116
|
+
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
117
|
+
$[0] = "b52e840cfa41500a446e044d8a0b97ab30fdcd357b533c9d8b35a26c24a7c45c";
|
|
118
|
+
}
|
|
119
|
+
let label;
|
|
120
|
+
let props;
|
|
121
|
+
if ($[1] !== t0) {
|
|
122
|
+
({label, ...props} = t0);
|
|
123
|
+
$[1] = t0;
|
|
124
|
+
$[2] = label;
|
|
125
|
+
$[3] = props;
|
|
126
|
+
} else {
|
|
127
|
+
label = $[2];
|
|
128
|
+
props = $[3];
|
|
119
129
|
}
|
|
120
130
|
const field = useFieldContext();
|
|
121
|
-
let
|
|
122
|
-
if ($[
|
|
123
|
-
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
} else
|
|
127
|
-
const { isTouched, hasError, helperText } =
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
t3 = (event) => field.handleChange(event.target.checked);
|
|
133
|
-
$[3] = field;
|
|
134
|
-
$[4] = t3;
|
|
135
|
-
} else t3 = $[4];
|
|
131
|
+
let t1;
|
|
132
|
+
if ($[4] !== field) {
|
|
133
|
+
t1 = getFieldStatus(field);
|
|
134
|
+
$[4] = field;
|
|
135
|
+
$[5] = t1;
|
|
136
|
+
} else t1 = $[5];
|
|
137
|
+
const { isTouched, hasError, helperText } = t1;
|
|
138
|
+
const showError = isTouched && hasError;
|
|
139
|
+
const helperId = useId();
|
|
140
|
+
const t2 = field.name;
|
|
141
|
+
const t3 = Boolean(field.state.value);
|
|
136
142
|
let t4;
|
|
137
|
-
if ($[
|
|
138
|
-
t4 =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
if ($[6] !== field) {
|
|
144
|
+
t4 = (event) => field.handleChange(event.target.checked);
|
|
145
|
+
$[6] = field;
|
|
146
|
+
$[7] = t4;
|
|
147
|
+
} else t4 = $[7];
|
|
148
|
+
const t5 = showError || void 0;
|
|
149
|
+
const t6 = showError ? helperId : void 0;
|
|
150
|
+
let t7;
|
|
151
|
+
if ($[8] !== t5 || $[9] !== t6) {
|
|
152
|
+
t7 = { input: {
|
|
153
|
+
"aria-invalid": t5,
|
|
154
|
+
"aria-describedby": t6
|
|
155
|
+
} };
|
|
156
|
+
$[8] = t5;
|
|
157
|
+
$[9] = t6;
|
|
158
|
+
$[10] = t7;
|
|
159
|
+
} else t7 = $[10];
|
|
160
|
+
let t8;
|
|
161
|
+
if ($[11] !== field.handleBlur || $[12] !== field.name || $[13] !== props || $[14] !== t3 || $[15] !== t4 || $[16] !== t7) {
|
|
162
|
+
t8 = /* @__PURE__ */ jsx(Checkbox, {
|
|
163
|
+
name: t2,
|
|
164
|
+
checked: t3,
|
|
165
|
+
onChange: t4,
|
|
142
166
|
onBlur: field.handleBlur,
|
|
143
|
-
|
|
167
|
+
slotProps: t7,
|
|
144
168
|
...props
|
|
145
169
|
});
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
170
|
+
$[11] = field.handleBlur;
|
|
171
|
+
$[12] = field.name;
|
|
172
|
+
$[13] = props;
|
|
173
|
+
$[14] = t3;
|
|
174
|
+
$[15] = t4;
|
|
175
|
+
$[16] = t7;
|
|
176
|
+
$[17] = t8;
|
|
177
|
+
} else t8 = $[17];
|
|
178
|
+
const t9 = label ?? "";
|
|
179
|
+
let t10;
|
|
180
|
+
if ($[18] !== t8 || $[19] !== t9) {
|
|
181
|
+
t10 = /* @__PURE__ */ jsx(FormControlLabel, {
|
|
182
|
+
control: t8,
|
|
183
|
+
label: t9
|
|
159
184
|
});
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
} else
|
|
164
|
-
let
|
|
165
|
-
if ($[
|
|
166
|
-
|
|
167
|
-
|
|
185
|
+
$[18] = t8;
|
|
186
|
+
$[19] = t9;
|
|
187
|
+
$[20] = t10;
|
|
188
|
+
} else t10 = $[20];
|
|
189
|
+
let t11;
|
|
190
|
+
if ($[21] !== helperId || $[22] !== helperText || $[23] !== showError) {
|
|
191
|
+
t11 = showError && /* @__PURE__ */ jsx(FormHelperText, {
|
|
192
|
+
id: helperId,
|
|
168
193
|
children: helperText
|
|
169
194
|
});
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
} else
|
|
175
|
-
let
|
|
176
|
-
if ($[
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
children: [
|
|
195
|
+
$[21] = helperId;
|
|
196
|
+
$[22] = helperText;
|
|
197
|
+
$[23] = showError;
|
|
198
|
+
$[24] = t11;
|
|
199
|
+
} else t11 = $[24];
|
|
200
|
+
let t12;
|
|
201
|
+
if ($[25] !== showError || $[26] !== t10 || $[27] !== t11) {
|
|
202
|
+
t12 = /* @__PURE__ */ jsxs(FormControl, {
|
|
203
|
+
error: showError,
|
|
204
|
+
children: [t10, t11]
|
|
180
205
|
});
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
|
|
185
|
-
|
|
206
|
+
$[25] = showError;
|
|
207
|
+
$[26] = t10;
|
|
208
|
+
$[27] = t11;
|
|
209
|
+
$[28] = t12;
|
|
210
|
+
} else t12 = $[28];
|
|
211
|
+
return t12;
|
|
186
212
|
};
|
|
187
213
|
//#endregion
|
|
188
214
|
//#region src/components/form/FormDatePicker.tsx
|
|
189
215
|
const FormDatePicker = (props) => {
|
|
190
216
|
const $ = c(19);
|
|
191
|
-
if ($[0] !== "
|
|
217
|
+
if ($[0] !== "d6b4f9d4359d8db9532e9e4c8118f40e659697fbf91270269f75e8a78ff20e99") {
|
|
192
218
|
for (let $i = 0; $i < 19; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
193
|
-
$[0] = "
|
|
219
|
+
$[0] = "d6b4f9d4359d8db9532e9e4c8118f40e659697fbf91270269f75e8a78ff20e99";
|
|
194
220
|
}
|
|
195
221
|
const field = useFieldContext();
|
|
196
222
|
let t0;
|
|
@@ -239,7 +265,6 @@ const FormDatePicker = (props) => {
|
|
|
239
265
|
value: field.state.value,
|
|
240
266
|
onChange: t1,
|
|
241
267
|
slotProps: t5,
|
|
242
|
-
"aria-label": field.name,
|
|
243
268
|
...props
|
|
244
269
|
});
|
|
245
270
|
$[13] = field.name;
|
|
@@ -255,9 +280,9 @@ const FormDatePicker = (props) => {
|
|
|
255
280
|
//#region src/components/form/FormTimePicker.tsx
|
|
256
281
|
const FormTimePicker = (props) => {
|
|
257
282
|
const $ = c(19);
|
|
258
|
-
if ($[0] !== "
|
|
283
|
+
if ($[0] !== "744d0fad962078bce5533e19cc937c08ba2334572d7ca10fb52c0bf12490ac64") {
|
|
259
284
|
for (let $i = 0; $i < 19; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
260
|
-
$[0] = "
|
|
285
|
+
$[0] = "744d0fad962078bce5533e19cc937c08ba2334572d7ca10fb52c0bf12490ac64";
|
|
261
286
|
}
|
|
262
287
|
const field = useFieldContext();
|
|
263
288
|
let t0;
|
|
@@ -306,7 +331,6 @@ const FormTimePicker = (props) => {
|
|
|
306
331
|
value: field.state.value,
|
|
307
332
|
onChange: t1,
|
|
308
333
|
slotProps: t5,
|
|
309
|
-
"aria-label": field.name,
|
|
310
334
|
...props
|
|
311
335
|
});
|
|
312
336
|
$[13] = field.name;
|
|
@@ -322,9 +346,9 @@ const FormTimePicker = (props) => {
|
|
|
322
346
|
//#region src/components/form/FormDateTimePicker.tsx
|
|
323
347
|
const FormDateTimePicker = (props) => {
|
|
324
348
|
const $ = c(19);
|
|
325
|
-
if ($[0] !== "
|
|
349
|
+
if ($[0] !== "e295cbec254d6f03cb34331cb6a468970ec739fb6b1fd8f4549e43d22aae5dae") {
|
|
326
350
|
for (let $i = 0; $i < 19; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
327
|
-
$[0] = "
|
|
351
|
+
$[0] = "e295cbec254d6f03cb34331cb6a468970ec739fb6b1fd8f4549e43d22aae5dae";
|
|
328
352
|
}
|
|
329
353
|
const field = useFieldContext();
|
|
330
354
|
let t0;
|
|
@@ -373,7 +397,6 @@ const FormDateTimePicker = (props) => {
|
|
|
373
397
|
value: field.state.value,
|
|
374
398
|
onChange: t1,
|
|
375
399
|
slotProps: t5,
|
|
376
|
-
"aria-label": field.name,
|
|
377
400
|
...props
|
|
378
401
|
});
|
|
379
402
|
$[13] = field.name;
|
|
@@ -389,9 +412,9 @@ const FormDateTimePicker = (props) => {
|
|
|
389
412
|
//#region src/components/form/FormNumberField.tsx
|
|
390
413
|
const FormNumberField = (t0) => {
|
|
391
414
|
const $ = c(17);
|
|
392
|
-
if ($[0] !== "
|
|
415
|
+
if ($[0] !== "70985df8f0614c3af7e21139a4ca0a17290f110f3ba08bee8ad2ea22e94532c5") {
|
|
393
416
|
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
394
|
-
$[0] = "
|
|
417
|
+
$[0] = "70985df8f0614c3af7e21139a4ca0a17290f110f3ba08bee8ad2ea22e94532c5";
|
|
395
418
|
}
|
|
396
419
|
let options;
|
|
397
420
|
let props;
|
|
@@ -434,7 +457,6 @@ const FormNumberField = (t0) => {
|
|
|
434
457
|
onBlur: field.handleBlur,
|
|
435
458
|
error: t4,
|
|
436
459
|
helperText: t5,
|
|
437
|
-
"aria-label": field.name,
|
|
438
460
|
...props,
|
|
439
461
|
...options
|
|
440
462
|
});
|
|
@@ -453,10 +475,10 @@ const FormNumberField = (t0) => {
|
|
|
453
475
|
//#endregion
|
|
454
476
|
//#region src/components/form/FormRadioGroup.tsx
|
|
455
477
|
const FormRadioGroup = (t0) => {
|
|
456
|
-
const $ = c(
|
|
457
|
-
if ($[0] !== "
|
|
458
|
-
for (let $i = 0; $i <
|
|
459
|
-
$[0] = "
|
|
478
|
+
const $ = c(30);
|
|
479
|
+
if ($[0] !== "16c9a4c84e60144b586b49450150738a645900f659fbd5b1a25b6b376e240215") {
|
|
480
|
+
for (let $i = 0; $i < 30; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
481
|
+
$[0] = "16c9a4c84e60144b586b49450150738a645900f659fbd5b1a25b6b376e240215";
|
|
460
482
|
}
|
|
461
483
|
let label;
|
|
462
484
|
let options;
|
|
@@ -480,6 +502,8 @@ const FormRadioGroup = (t0) => {
|
|
|
480
502
|
$[6] = t1;
|
|
481
503
|
} else t1 = $[6];
|
|
482
504
|
const { isTouched, hasError, helperText } = t1;
|
|
505
|
+
const showError = isTouched && hasError;
|
|
506
|
+
const helperId = useId();
|
|
483
507
|
let t2;
|
|
484
508
|
if ($[7] !== label) {
|
|
485
509
|
t2 = label && /* @__PURE__ */ jsx(FormLabel, {
|
|
@@ -498,21 +522,21 @@ const FormRadioGroup = (t0) => {
|
|
|
498
522
|
$[10] = t5;
|
|
499
523
|
} else t5 = $[10];
|
|
500
524
|
const t6 = field.handleBlur;
|
|
501
|
-
const t7 =
|
|
525
|
+
const t7 = showError ? helperId : void 0;
|
|
502
526
|
let t8;
|
|
503
527
|
if ($[11] !== options) {
|
|
504
|
-
t8 = options.map(_temp$
|
|
528
|
+
t8 = options.map(_temp$8);
|
|
505
529
|
$[11] = options;
|
|
506
530
|
$[12] = t8;
|
|
507
531
|
} else t8 = $[12];
|
|
508
532
|
let t9;
|
|
509
|
-
if ($[13] !== field.handleBlur || $[14] !== field.name || $[15] !== props || $[16] !== t4 || $[17] !== t5 || $[18] !== t8) {
|
|
533
|
+
if ($[13] !== field.handleBlur || $[14] !== field.name || $[15] !== props || $[16] !== t4 || $[17] !== t5 || $[18] !== t7 || $[19] !== t8) {
|
|
510
534
|
t9 = /* @__PURE__ */ jsx(RadioGroup, {
|
|
511
535
|
name: t3,
|
|
512
536
|
value: t4,
|
|
513
537
|
onChange: t5,
|
|
514
538
|
onBlur: t6,
|
|
515
|
-
"aria-
|
|
539
|
+
"aria-describedby": t7,
|
|
516
540
|
...props,
|
|
517
541
|
children: t8
|
|
518
542
|
});
|
|
@@ -521,38 +545,41 @@ const FormRadioGroup = (t0) => {
|
|
|
521
545
|
$[15] = props;
|
|
522
546
|
$[16] = t4;
|
|
523
547
|
$[17] = t5;
|
|
524
|
-
$[18] =
|
|
525
|
-
$[19] =
|
|
526
|
-
|
|
548
|
+
$[18] = t7;
|
|
549
|
+
$[19] = t8;
|
|
550
|
+
$[20] = t9;
|
|
551
|
+
} else t9 = $[20];
|
|
527
552
|
let t10;
|
|
528
|
-
if ($[
|
|
529
|
-
t10 =
|
|
530
|
-
|
|
553
|
+
if ($[21] !== helperId || $[22] !== helperText || $[23] !== showError) {
|
|
554
|
+
t10 = showError && /* @__PURE__ */ jsx(FormHelperText, {
|
|
555
|
+
id: helperId,
|
|
531
556
|
children: helperText
|
|
532
557
|
});
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
} else t10 = $[
|
|
558
|
+
$[21] = helperId;
|
|
559
|
+
$[22] = helperText;
|
|
560
|
+
$[23] = showError;
|
|
561
|
+
$[24] = t10;
|
|
562
|
+
} else t10 = $[24];
|
|
538
563
|
let t11;
|
|
539
|
-
if ($[
|
|
564
|
+
if ($[25] !== showError || $[26] !== t10 || $[27] !== t2 || $[28] !== t9) {
|
|
540
565
|
t11 = /* @__PURE__ */ jsxs(FormControl, {
|
|
541
566
|
component: "fieldset",
|
|
567
|
+
error: showError,
|
|
542
568
|
children: [
|
|
543
569
|
t2,
|
|
544
570
|
t9,
|
|
545
571
|
t10
|
|
546
572
|
]
|
|
547
573
|
});
|
|
548
|
-
$[
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
|
|
574
|
+
$[25] = showError;
|
|
575
|
+
$[26] = t10;
|
|
576
|
+
$[27] = t2;
|
|
577
|
+
$[28] = t9;
|
|
578
|
+
$[29] = t11;
|
|
579
|
+
} else t11 = $[29];
|
|
553
580
|
return t11;
|
|
554
581
|
};
|
|
555
|
-
function _temp$
|
|
582
|
+
function _temp$8(option) {
|
|
556
583
|
return /* @__PURE__ */ jsx(FormControlLabel, {
|
|
557
584
|
value: option.value,
|
|
558
585
|
control: /* @__PURE__ */ jsx(Radio, {}),
|
|
@@ -562,10 +589,10 @@ function _temp$9(option) {
|
|
|
562
589
|
//#endregion
|
|
563
590
|
//#region src/components/form/FormSlider.tsx
|
|
564
591
|
const FormSlider = (t0) => {
|
|
565
|
-
const $ = c(
|
|
566
|
-
if ($[0] !== "
|
|
567
|
-
for (let $i = 0; $i <
|
|
568
|
-
$[0] = "
|
|
592
|
+
const $ = c(26);
|
|
593
|
+
if ($[0] !== "796ce6f2474864029c96eb0044cece8a7b539b0d307a77b67fff20edb223d90c") {
|
|
594
|
+
for (let $i = 0; $i < 26; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
595
|
+
$[0] = "796ce6f2474864029c96eb0044cece8a7b539b0d307a77b67fff20edb223d90c";
|
|
569
596
|
}
|
|
570
597
|
let label;
|
|
571
598
|
let props;
|
|
@@ -586,71 +613,76 @@ const FormSlider = (t0) => {
|
|
|
586
613
|
$[5] = t1;
|
|
587
614
|
} else t1 = $[5];
|
|
588
615
|
const { isTouched, hasError, helperText } = t1;
|
|
616
|
+
const showError = isTouched && hasError;
|
|
617
|
+
const labelId = useId();
|
|
589
618
|
let t2;
|
|
590
|
-
if ($[6] !== label) {
|
|
591
|
-
t2 = label && /* @__PURE__ */ jsx(FormLabel, {
|
|
619
|
+
if ($[6] !== label || $[7] !== labelId) {
|
|
620
|
+
t2 = label && /* @__PURE__ */ jsx(FormLabel, {
|
|
621
|
+
id: labelId,
|
|
622
|
+
children: label
|
|
623
|
+
});
|
|
592
624
|
$[6] = label;
|
|
593
|
-
$[7] =
|
|
594
|
-
|
|
625
|
+
$[7] = labelId;
|
|
626
|
+
$[8] = t2;
|
|
627
|
+
} else t2 = $[8];
|
|
595
628
|
const t3 = field.state.value ?? 0;
|
|
596
629
|
let t4;
|
|
597
|
-
if ($[
|
|
630
|
+
if ($[9] !== field) {
|
|
598
631
|
t4 = (_, value) => field.handleChange(Array.isArray(value) ? value[0] : value);
|
|
599
|
-
$[
|
|
600
|
-
$[
|
|
601
|
-
} else t4 = $[
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
632
|
+
$[9] = field;
|
|
633
|
+
$[10] = t4;
|
|
634
|
+
} else t4 = $[10];
|
|
635
|
+
const t5 = label ? labelId : void 0;
|
|
636
|
+
let t6;
|
|
637
|
+
if ($[11] !== field.handleBlur || $[12] !== field.name || $[13] !== props || $[14] !== t3 || $[15] !== t4 || $[16] !== t5) {
|
|
638
|
+
t6 = /* @__PURE__ */ jsx(Slider, {
|
|
605
639
|
name: field.name,
|
|
606
640
|
value: t3,
|
|
607
641
|
onChange: t4,
|
|
608
642
|
onBlur: field.handleBlur,
|
|
609
|
-
"aria-
|
|
643
|
+
"aria-labelledby": t5,
|
|
610
644
|
...props
|
|
611
645
|
});
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
if ($[16] !== hasError || $[17] !== helperText || $[18] !== isTouched) {
|
|
621
|
-
t6 = isTouched && hasError && /* @__PURE__ */ jsx(FormHelperText, {
|
|
622
|
-
error: hasError,
|
|
623
|
-
children: helperText
|
|
624
|
-
});
|
|
625
|
-
$[16] = hasError;
|
|
626
|
-
$[17] = helperText;
|
|
627
|
-
$[18] = isTouched;
|
|
628
|
-
$[19] = t6;
|
|
629
|
-
} else t6 = $[19];
|
|
646
|
+
$[11] = field.handleBlur;
|
|
647
|
+
$[12] = field.name;
|
|
648
|
+
$[13] = props;
|
|
649
|
+
$[14] = t3;
|
|
650
|
+
$[15] = t4;
|
|
651
|
+
$[16] = t5;
|
|
652
|
+
$[17] = t6;
|
|
653
|
+
} else t6 = $[17];
|
|
630
654
|
let t7;
|
|
631
|
-
if ($[
|
|
632
|
-
t7 = /* @__PURE__ */
|
|
633
|
-
|
|
655
|
+
if ($[18] !== helperText || $[19] !== showError) {
|
|
656
|
+
t7 = showError && /* @__PURE__ */ jsx(FormHelperText, { children: helperText });
|
|
657
|
+
$[18] = helperText;
|
|
658
|
+
$[19] = showError;
|
|
659
|
+
$[20] = t7;
|
|
660
|
+
} else t7 = $[20];
|
|
661
|
+
let t8;
|
|
662
|
+
if ($[21] !== showError || $[22] !== t2 || $[23] !== t6 || $[24] !== t7) {
|
|
663
|
+
t8 = /* @__PURE__ */ jsxs(FormControl, {
|
|
664
|
+
error: showError,
|
|
634
665
|
children: [
|
|
635
666
|
t2,
|
|
636
|
-
|
|
637
|
-
|
|
667
|
+
t6,
|
|
668
|
+
t7
|
|
638
669
|
]
|
|
639
670
|
});
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
|
|
645
|
-
|
|
671
|
+
$[21] = showError;
|
|
672
|
+
$[22] = t2;
|
|
673
|
+
$[23] = t6;
|
|
674
|
+
$[24] = t7;
|
|
675
|
+
$[25] = t8;
|
|
676
|
+
} else t8 = $[25];
|
|
677
|
+
return t8;
|
|
646
678
|
};
|
|
647
679
|
//#endregion
|
|
648
680
|
//#region src/components/form/FormSubmitButton.tsx
|
|
649
681
|
const FormSubmitButton = (props) => {
|
|
650
682
|
const $ = c(9);
|
|
651
|
-
if ($[0] !== "
|
|
683
|
+
if ($[0] !== "ca7a881dde9e618cbd00cee60a672649e290ccecc82384bdc56b544970349722") {
|
|
652
684
|
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
653
|
-
$[0] = "
|
|
685
|
+
$[0] = "ca7a881dde9e618cbd00cee60a672649e290ccecc82384bdc56b544970349722";
|
|
654
686
|
}
|
|
655
687
|
const form = useFormContext();
|
|
656
688
|
let t0;
|
|
@@ -666,17 +698,12 @@ const FormSubmitButton = (props) => {
|
|
|
666
698
|
const handleClick = t0;
|
|
667
699
|
let t1;
|
|
668
700
|
if ($[3] !== handleClick || $[4] !== props) {
|
|
669
|
-
t1 = (
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
type: "submit",
|
|
676
|
-
"aria-label": "submit",
|
|
677
|
-
...props
|
|
678
|
-
});
|
|
679
|
-
};
|
|
701
|
+
t1 = (isSubmitting) => /* @__PURE__ */ jsx(Button, {
|
|
702
|
+
loading: isSubmitting,
|
|
703
|
+
onClick: handleClick,
|
|
704
|
+
type: "submit",
|
|
705
|
+
...props
|
|
706
|
+
});
|
|
680
707
|
$[3] = handleClick;
|
|
681
708
|
$[4] = props;
|
|
682
709
|
$[5] = t1;
|
|
@@ -684,7 +711,7 @@ const FormSubmitButton = (props) => {
|
|
|
684
711
|
let t2;
|
|
685
712
|
if ($[6] !== form.Subscribe || $[7] !== t1) {
|
|
686
713
|
t2 = /* @__PURE__ */ jsx(form.Subscribe, {
|
|
687
|
-
selector: _temp$
|
|
714
|
+
selector: _temp$7,
|
|
688
715
|
children: t1
|
|
689
716
|
});
|
|
690
717
|
$[6] = form.Subscribe;
|
|
@@ -693,91 +720,118 @@ const FormSubmitButton = (props) => {
|
|
|
693
720
|
} else t2 = $[8];
|
|
694
721
|
return t2;
|
|
695
722
|
};
|
|
696
|
-
function _temp$
|
|
697
|
-
return
|
|
723
|
+
function _temp$7(state) {
|
|
724
|
+
return state.isSubmitting;
|
|
698
725
|
}
|
|
699
726
|
//#endregion
|
|
700
727
|
//#region src/components/form/FormSwitch.tsx
|
|
701
|
-
const FormSwitch = (
|
|
702
|
-
const $ = c(
|
|
703
|
-
if ($[0] !== "
|
|
704
|
-
for (let $i = 0; $i <
|
|
705
|
-
$[0] = "
|
|
728
|
+
const FormSwitch = (t0) => {
|
|
729
|
+
const $ = c(29);
|
|
730
|
+
if ($[0] !== "51529726c63de66e4a75023f96d6cfb0ef4919724538ea0ef64ffca8e2c3d2f7") {
|
|
731
|
+
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
732
|
+
$[0] = "51529726c63de66e4a75023f96d6cfb0ef4919724538ea0ef64ffca8e2c3d2f7";
|
|
733
|
+
}
|
|
734
|
+
let label;
|
|
735
|
+
let props;
|
|
736
|
+
if ($[1] !== t0) {
|
|
737
|
+
({label, ...props} = t0);
|
|
738
|
+
$[1] = t0;
|
|
739
|
+
$[2] = label;
|
|
740
|
+
$[3] = props;
|
|
741
|
+
} else {
|
|
742
|
+
label = $[2];
|
|
743
|
+
props = $[3];
|
|
706
744
|
}
|
|
707
745
|
const field = useFieldContext();
|
|
708
|
-
let
|
|
709
|
-
if ($[
|
|
710
|
-
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
} else
|
|
714
|
-
const { isTouched, hasError, helperText } =
|
|
715
|
-
const
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
t3 = (event) => field.handleChange(event.target.checked);
|
|
720
|
-
$[3] = field;
|
|
721
|
-
$[4] = t3;
|
|
722
|
-
} else t3 = $[4];
|
|
746
|
+
let t1;
|
|
747
|
+
if ($[4] !== field) {
|
|
748
|
+
t1 = getFieldStatus(field);
|
|
749
|
+
$[4] = field;
|
|
750
|
+
$[5] = t1;
|
|
751
|
+
} else t1 = $[5];
|
|
752
|
+
const { isTouched, hasError, helperText } = t1;
|
|
753
|
+
const showError = isTouched && hasError;
|
|
754
|
+
const helperId = useId();
|
|
755
|
+
const t2 = field.name;
|
|
756
|
+
const t3 = Boolean(field.state.value);
|
|
723
757
|
let t4;
|
|
724
|
-
if ($[
|
|
725
|
-
t4 =
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
758
|
+
if ($[6] !== field) {
|
|
759
|
+
t4 = (event) => field.handleChange(event.target.checked);
|
|
760
|
+
$[6] = field;
|
|
761
|
+
$[7] = t4;
|
|
762
|
+
} else t4 = $[7];
|
|
763
|
+
const t5 = showError || void 0;
|
|
764
|
+
const t6 = showError ? helperId : void 0;
|
|
765
|
+
let t7;
|
|
766
|
+
if ($[8] !== t5 || $[9] !== t6) {
|
|
767
|
+
t7 = { input: {
|
|
768
|
+
"aria-invalid": t5,
|
|
769
|
+
"aria-describedby": t6
|
|
770
|
+
} };
|
|
771
|
+
$[8] = t5;
|
|
772
|
+
$[9] = t6;
|
|
773
|
+
$[10] = t7;
|
|
774
|
+
} else t7 = $[10];
|
|
775
|
+
let t8;
|
|
776
|
+
if ($[11] !== field.handleBlur || $[12] !== field.name || $[13] !== props || $[14] !== t3 || $[15] !== t4 || $[16] !== t7) {
|
|
777
|
+
t8 = /* @__PURE__ */ jsx(Switch, {
|
|
778
|
+
name: t2,
|
|
779
|
+
checked: t3,
|
|
780
|
+
onChange: t4,
|
|
729
781
|
onBlur: field.handleBlur,
|
|
730
|
-
|
|
782
|
+
slotProps: t7,
|
|
731
783
|
...props
|
|
732
784
|
});
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
785
|
+
$[11] = field.handleBlur;
|
|
786
|
+
$[12] = field.name;
|
|
787
|
+
$[13] = props;
|
|
788
|
+
$[14] = t3;
|
|
789
|
+
$[15] = t4;
|
|
790
|
+
$[16] = t7;
|
|
791
|
+
$[17] = t8;
|
|
792
|
+
} else t8 = $[17];
|
|
793
|
+
const t9 = label ?? "";
|
|
794
|
+
let t10;
|
|
795
|
+
if ($[18] !== t8 || $[19] !== t9) {
|
|
796
|
+
t10 = /* @__PURE__ */ jsx(FormControlLabel, {
|
|
797
|
+
control: t8,
|
|
798
|
+
label: t9
|
|
746
799
|
});
|
|
747
|
-
$[
|
|
748
|
-
$[
|
|
749
|
-
$[
|
|
750
|
-
} else
|
|
751
|
-
let
|
|
752
|
-
if ($[
|
|
753
|
-
|
|
754
|
-
|
|
800
|
+
$[18] = t8;
|
|
801
|
+
$[19] = t9;
|
|
802
|
+
$[20] = t10;
|
|
803
|
+
} else t10 = $[20];
|
|
804
|
+
let t11;
|
|
805
|
+
if ($[21] !== helperId || $[22] !== helperText || $[23] !== showError) {
|
|
806
|
+
t11 = showError && /* @__PURE__ */ jsx(FormHelperText, {
|
|
807
|
+
id: helperId,
|
|
755
808
|
children: helperText
|
|
756
809
|
});
|
|
757
|
-
$[
|
|
758
|
-
$[
|
|
759
|
-
$[
|
|
760
|
-
$[
|
|
761
|
-
} else
|
|
762
|
-
let
|
|
763
|
-
if ($[
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
children: [
|
|
810
|
+
$[21] = helperId;
|
|
811
|
+
$[22] = helperText;
|
|
812
|
+
$[23] = showError;
|
|
813
|
+
$[24] = t11;
|
|
814
|
+
} else t11 = $[24];
|
|
815
|
+
let t12;
|
|
816
|
+
if ($[25] !== showError || $[26] !== t10 || $[27] !== t11) {
|
|
817
|
+
t12 = /* @__PURE__ */ jsxs(FormControl, {
|
|
818
|
+
error: showError,
|
|
819
|
+
children: [t10, t11]
|
|
767
820
|
});
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
$[
|
|
771
|
-
|
|
772
|
-
|
|
821
|
+
$[25] = showError;
|
|
822
|
+
$[26] = t10;
|
|
823
|
+
$[27] = t11;
|
|
824
|
+
$[28] = t12;
|
|
825
|
+
} else t12 = $[28];
|
|
826
|
+
return t12;
|
|
773
827
|
};
|
|
774
828
|
//#endregion
|
|
775
829
|
//#region src/components/form/FormTextField.tsx
|
|
776
830
|
const FormTextField = (props) => {
|
|
777
831
|
const $ = c(13);
|
|
778
|
-
if ($[0] !== "
|
|
832
|
+
if ($[0] !== "ebeffaf029828deadb4a4a1c7a79e6898adf43d26161417a887df4db360375ef") {
|
|
779
833
|
for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
780
|
-
$[0] = "
|
|
834
|
+
$[0] = "ebeffaf029828deadb4a4a1c7a79e6898adf43d26161417a887df4db360375ef";
|
|
781
835
|
}
|
|
782
836
|
const field = useFieldContext();
|
|
783
837
|
let t0;
|
|
@@ -805,7 +859,6 @@ const FormTextField = (props) => {
|
|
|
805
859
|
onBlur: field.handleBlur,
|
|
806
860
|
error: t3,
|
|
807
861
|
helperText: t4,
|
|
808
|
-
"aria-label": field.name,
|
|
809
862
|
...props
|
|
810
863
|
});
|
|
811
864
|
$[5] = field.handleBlur;
|
|
@@ -891,9 +944,9 @@ const useScanDetection = ({ timeToEvaluate = 100, averageWaitTime = 50, startCha
|
|
|
891
944
|
//#region src/components/table/cells/features/ActionsCell.tsx
|
|
892
945
|
const ActionsCell = (t0) => {
|
|
893
946
|
const $ = c(9);
|
|
894
|
-
if ($[0] !== "
|
|
947
|
+
if ($[0] !== "8307b3877929af1e6423a7ef0fe498565565082fc20d016440aa469b2afe3640") {
|
|
895
948
|
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
896
|
-
$[0] = "
|
|
949
|
+
$[0] = "8307b3877929af1e6423a7ef0fe498565565082fc20d016440aa469b2afe3640";
|
|
897
950
|
}
|
|
898
951
|
const { actions } = t0;
|
|
899
952
|
const cell = useCellContext();
|
|
@@ -901,7 +954,7 @@ const ActionsCell = (t0) => {
|
|
|
901
954
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
902
955
|
let t1;
|
|
903
956
|
if ($[1] !== actions || $[2] !== anchorEl || $[3] !== cell || $[4] !== t) {
|
|
904
|
-
const buttons = actions.filter(_temp$
|
|
957
|
+
const buttons = actions.filter(_temp$6);
|
|
905
958
|
const menuItems = actions.filter(_temp2$2);
|
|
906
959
|
let t2;
|
|
907
960
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -933,7 +986,7 @@ const ActionsCell = (t0) => {
|
|
|
933
986
|
title: t("Layout.Table.RowActions"),
|
|
934
987
|
children: /* @__PURE__ */ jsx(IconButton, {
|
|
935
988
|
size: "small",
|
|
936
|
-
"aria-label":
|
|
989
|
+
"aria-label": "Row actions",
|
|
937
990
|
"aria-haspopup": "menu",
|
|
938
991
|
onClick: (event_1) => setAnchorEl(event_1.currentTarget),
|
|
939
992
|
children: /* @__PURE__ */ jsx(MoreVert, { fontSize: "small" })
|
|
@@ -960,7 +1013,7 @@ const ActionsCell = (t0) => {
|
|
|
960
1013
|
} else t1 = $[5];
|
|
961
1014
|
return t1;
|
|
962
1015
|
};
|
|
963
|
-
function _temp$
|
|
1016
|
+
function _temp$6(action) {
|
|
964
1017
|
return !action.showInMenu;
|
|
965
1018
|
}
|
|
966
1019
|
function _temp2$2(action_0) {
|
|
@@ -976,9 +1029,9 @@ function _temp4(event_0) {
|
|
|
976
1029
|
//#region src/components/table/cells/features/ExpandCell.tsx
|
|
977
1030
|
const ExpandCell = () => {
|
|
978
1031
|
const $ = c(6);
|
|
979
|
-
if ($[0] !== "
|
|
1032
|
+
if ($[0] !== "8c2c4ae74f3eb7476d51eeae4f430a1a802d1280a04ae5450cc6c230d38157bd") {
|
|
980
1033
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
981
|
-
$[0] = "
|
|
1034
|
+
$[0] = "8c2c4ae74f3eb7476d51eeae4f430a1a802d1280a04ae5450cc6c230d38157bd";
|
|
982
1035
|
}
|
|
983
1036
|
const { row } = useCellContext();
|
|
984
1037
|
let t0;
|
|
@@ -992,7 +1045,8 @@ const ExpandCell = () => {
|
|
|
992
1045
|
event.stopPropagation();
|
|
993
1046
|
row.toggleExpanded();
|
|
994
1047
|
},
|
|
995
|
-
"aria-label":
|
|
1048
|
+
"aria-label": "Expand row",
|
|
1049
|
+
"aria-expanded": expanded,
|
|
996
1050
|
sx: { ml: row.depth * 2 },
|
|
997
1051
|
children: expanded ? /* @__PURE__ */ jsx(KeyboardArrowDown, { fontSize: "small" }) : /* @__PURE__ */ jsx(KeyboardArrowRight, { fontSize: "small" })
|
|
998
1052
|
});
|
|
@@ -1016,9 +1070,9 @@ const ExpandCell = () => {
|
|
|
1016
1070
|
//#region src/components/table/cells/features/GroupCell.tsx
|
|
1017
1071
|
const GroupCell = () => {
|
|
1018
1072
|
const $ = c(17);
|
|
1019
|
-
if ($[0] !== "
|
|
1073
|
+
if ($[0] !== "b443a4df1d4739489dc89b151d83dceb21caad9460b302c093704bd08b0c83a7") {
|
|
1020
1074
|
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1021
|
-
$[0] = "
|
|
1075
|
+
$[0] = "b443a4df1d4739489dc89b151d83dceb21caad9460b302c093704bd08b0c83a7";
|
|
1022
1076
|
}
|
|
1023
1077
|
const cell = useCellContext();
|
|
1024
1078
|
const { row } = cell;
|
|
@@ -1042,7 +1096,8 @@ const GroupCell = () => {
|
|
|
1042
1096
|
event.stopPropagation();
|
|
1043
1097
|
row.toggleExpanded();
|
|
1044
1098
|
},
|
|
1045
|
-
"aria-label":
|
|
1099
|
+
"aria-label": "Expand group",
|
|
1100
|
+
"aria-expanded": expanded,
|
|
1046
1101
|
children: expanded ? /* @__PURE__ */ jsx(KeyboardArrowDown, { fontSize: "small" }) : /* @__PURE__ */ jsx(KeyboardArrowRight, { fontSize: "small" })
|
|
1047
1102
|
});
|
|
1048
1103
|
};
|
|
@@ -1103,9 +1158,9 @@ const GroupCell = () => {
|
|
|
1103
1158
|
//#region src/components/table/cells/features/PinRowCell.tsx
|
|
1104
1159
|
const PinRowCell = () => {
|
|
1105
1160
|
const $ = c(6);
|
|
1106
|
-
if ($[0] !== "
|
|
1161
|
+
if ($[0] !== "e194b092212bcba6c7609b9efcd00ea15e11c1593245a7de3874f2d2ce0d3c7e") {
|
|
1107
1162
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1108
|
-
$[0] = "
|
|
1163
|
+
$[0] = "e194b092212bcba6c7609b9efcd00ea15e11c1593245a7de3874f2d2ce0d3c7e";
|
|
1109
1164
|
}
|
|
1110
1165
|
const { row } = useCellContext();
|
|
1111
1166
|
let t0;
|
|
@@ -1114,8 +1169,10 @@ const PinRowCell = () => {
|
|
|
1114
1169
|
if (!row.getCanPin()) return null;
|
|
1115
1170
|
const pinned = row.getIsPinned();
|
|
1116
1171
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
1117
|
-
title:
|
|
1172
|
+
title: "Pin row",
|
|
1118
1173
|
children: /* @__PURE__ */ jsx(IconButton, {
|
|
1174
|
+
"aria-label": "Pin row",
|
|
1175
|
+
"aria-pressed": !!pinned,
|
|
1119
1176
|
size: "small",
|
|
1120
1177
|
color: pinned ? "primary" : "default",
|
|
1121
1178
|
onClick: (event) => {
|
|
@@ -1157,7 +1214,7 @@ const SelectCell = () => {
|
|
|
1157
1214
|
checked: row.getIsSelected(),
|
|
1158
1215
|
indeterminate: !row.getIsSelected() && row.getIsSomeSelected(),
|
|
1159
1216
|
onChange: row.getToggleSelectedHandler(),
|
|
1160
|
-
onClick: _temp$
|
|
1217
|
+
onClick: _temp$5,
|
|
1161
1218
|
slotProps: { input: { "aria-label": "Select row" } }
|
|
1162
1219
|
}) : null;
|
|
1163
1220
|
$[1] = row;
|
|
@@ -1175,7 +1232,7 @@ const SelectCell = () => {
|
|
|
1175
1232
|
} else t1 = $[5];
|
|
1176
1233
|
return t1;
|
|
1177
1234
|
};
|
|
1178
|
-
function _temp$
|
|
1235
|
+
function _temp$5(event) {
|
|
1179
1236
|
return event.stopPropagation();
|
|
1180
1237
|
}
|
|
1181
1238
|
//#endregion
|
|
@@ -1184,9 +1241,9 @@ function _temp$6(event) {
|
|
|
1184
1241
|
const ICON_SX = { verticalAlign: "middle" };
|
|
1185
1242
|
const BooleanCell = () => {
|
|
1186
1243
|
const $ = c(3);
|
|
1187
|
-
if ($[0] !== "
|
|
1244
|
+
if ($[0] !== "b5136f570c5f062731d21f2ef5a90eb5df749873406183ff0a1afc44e2e1b341") {
|
|
1188
1245
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1189
|
-
$[0] = "
|
|
1246
|
+
$[0] = "b5136f570c5f062731d21f2ef5a90eb5df749873406183ff0a1afc44e2e1b341";
|
|
1190
1247
|
}
|
|
1191
1248
|
const cell = useCellContext();
|
|
1192
1249
|
let t0;
|
|
@@ -1210,9 +1267,9 @@ const BooleanCell = () => {
|
|
|
1210
1267
|
dayjs.extend(localizedFormat);
|
|
1211
1268
|
const DateCell = (t0) => {
|
|
1212
1269
|
const $ = c(19);
|
|
1213
|
-
if ($[0] !== "
|
|
1270
|
+
if ($[0] !== "dc39cae4f804ab115f709fa7d8713eaef6798d104757134be253a24dd93e693e") {
|
|
1214
1271
|
for (let $i = 0; $i < 19; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1215
|
-
$[0] = "
|
|
1272
|
+
$[0] = "dc39cae4f804ab115f709fa7d8713eaef6798d104757134be253a24dd93e693e";
|
|
1216
1273
|
}
|
|
1217
1274
|
let props;
|
|
1218
1275
|
let t1;
|
|
@@ -1286,9 +1343,9 @@ const DateCell = (t0) => {
|
|
|
1286
1343
|
//#region src/components/table/cells/formatters/DateTimeCell.tsx
|
|
1287
1344
|
const DateTimeCell = (t0) => {
|
|
1288
1345
|
const $ = c(7);
|
|
1289
|
-
if ($[0] !== "
|
|
1346
|
+
if ($[0] !== "ca8c201c578b1e1f9e5c9e6a2d129ce7f50cc0430bfd0ac6dd6d3018c3bd084e") {
|
|
1290
1347
|
for (let $i = 0; $i < 7; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1291
|
-
$[0] = "
|
|
1348
|
+
$[0] = "ca8c201c578b1e1f9e5c9e6a2d129ce7f50cc0430bfd0ac6dd6d3018c3bd084e";
|
|
1292
1349
|
}
|
|
1293
1350
|
let props;
|
|
1294
1351
|
let t1;
|
|
@@ -1318,9 +1375,9 @@ const DateTimeCell = (t0) => {
|
|
|
1318
1375
|
//#region src/components/table/cells/formatters/NumberCell.tsx
|
|
1319
1376
|
const NumberCell = (t0) => {
|
|
1320
1377
|
const $ = c(12);
|
|
1321
|
-
if ($[0] !== "
|
|
1378
|
+
if ($[0] !== "fdf12cb89bcd51536b5707402cfc0ca27b1d62be90a570ee271aeaedccb8c1b1") {
|
|
1322
1379
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1323
|
-
$[0] = "
|
|
1380
|
+
$[0] = "fdf12cb89bcd51536b5707402cfc0ca27b1d62be90a570ee271aeaedccb8c1b1";
|
|
1324
1381
|
}
|
|
1325
1382
|
let options;
|
|
1326
1383
|
let props;
|
|
@@ -1368,9 +1425,9 @@ const NumberCell = (t0) => {
|
|
|
1368
1425
|
//#region src/components/table/cells/formatters/ValueCell.tsx
|
|
1369
1426
|
const ValueCell = (props) => {
|
|
1370
1427
|
const $ = c(6);
|
|
1371
|
-
if ($[0] !== "
|
|
1428
|
+
if ($[0] !== "b8bb0af4472b2a6d322d34fba13b3f15d2bade9952327a91a922aca36db68d4c") {
|
|
1372
1429
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1373
|
-
$[0] = "
|
|
1430
|
+
$[0] = "b8bb0af4472b2a6d322d34fba13b3f15d2bade9952327a91a922aca36db68d4c";
|
|
1374
1431
|
}
|
|
1375
1432
|
const cell = useCellContext();
|
|
1376
1433
|
let t0;
|
|
@@ -1540,9 +1597,9 @@ const getFilterOperators = (variant) => {
|
|
|
1540
1597
|
//#region src/components/table/headers/AggregationFooter.tsx
|
|
1541
1598
|
const AggregationFooter = (t0) => {
|
|
1542
1599
|
const $ = c(8);
|
|
1543
|
-
if ($[0] !== "
|
|
1600
|
+
if ($[0] !== "2ec92cd6952b798419328dae116c415b4de462c8b2d6262d2526544a0c6b7830") {
|
|
1544
1601
|
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1545
|
-
$[0] = "
|
|
1602
|
+
$[0] = "2ec92cd6952b798419328dae116c415b4de462c8b2d6262d2526544a0c6b7830";
|
|
1546
1603
|
}
|
|
1547
1604
|
const { prefix: t1, options } = t0;
|
|
1548
1605
|
const prefix = t1 === void 0 ? "" : t1;
|
|
@@ -1581,9 +1638,9 @@ const AggregationFooter = (t0) => {
|
|
|
1581
1638
|
//#region src/components/table/headers/ExpandAllCell.tsx
|
|
1582
1639
|
const ExpandAllCell = () => {
|
|
1583
1640
|
const $ = c(6);
|
|
1584
|
-
if ($[0] !== "
|
|
1641
|
+
if ($[0] !== "0d47a2b13f5e66ad5ca22a4e39c7d87da50953524c5b4098e7af4cf8fe4744c9") {
|
|
1585
1642
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1586
|
-
$[0] = "
|
|
1643
|
+
$[0] = "0d47a2b13f5e66ad5ca22a4e39c7d87da50953524c5b4098e7af4cf8fe4744c9";
|
|
1587
1644
|
}
|
|
1588
1645
|
const table = useHeaderContext().table;
|
|
1589
1646
|
let t0;
|
|
@@ -1593,7 +1650,8 @@ const ExpandAllCell = () => {
|
|
|
1593
1650
|
return /* @__PURE__ */ jsx(IconButton, {
|
|
1594
1651
|
size: "small",
|
|
1595
1652
|
onClick: table.getToggleAllRowsExpandedHandler(),
|
|
1596
|
-
"aria-label": "
|
|
1653
|
+
"aria-label": "Expand all rows",
|
|
1654
|
+
"aria-expanded": table.getIsAllRowsExpanded(),
|
|
1597
1655
|
children: /* @__PURE__ */ jsx(ArrowDownward, {
|
|
1598
1656
|
fontSize: "small",
|
|
1599
1657
|
sx: {
|
|
@@ -1620,38 +1678,40 @@ const ExpandAllCell = () => {
|
|
|
1620
1678
|
};
|
|
1621
1679
|
//#endregion
|
|
1622
1680
|
//#region src/components/table/headers/HeaderMenu.tsx
|
|
1623
|
-
const HeaderMenu = () => {
|
|
1624
|
-
const $ = c(
|
|
1625
|
-
if ($[0] !== "
|
|
1626
|
-
for (let $i = 0; $i <
|
|
1627
|
-
$[0] = "
|
|
1681
|
+
const HeaderMenu = (t0) => {
|
|
1682
|
+
const $ = c(11);
|
|
1683
|
+
if ($[0] !== "63e2d113f7e83a1f4a93e89d3d46b1d39483f678fd9eeb1449e8f4922f5a431f") {
|
|
1684
|
+
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1685
|
+
$[0] = "63e2d113f7e83a1f4a93e89d3d46b1d39483f678fd9eeb1449e8f4922f5a431f";
|
|
1628
1686
|
}
|
|
1687
|
+
const { disableGrouping: t1 } = t0;
|
|
1688
|
+
const disableGrouping = t1 === void 0 ? false : t1;
|
|
1629
1689
|
const header = useHeaderContext();
|
|
1630
1690
|
const { t } = useTranslation$1();
|
|
1631
1691
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
1632
1692
|
const { column } = header;
|
|
1633
|
-
let
|
|
1693
|
+
let t2;
|
|
1634
1694
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1635
|
-
|
|
1636
|
-
$[1] =
|
|
1637
|
-
} else
|
|
1638
|
-
const close =
|
|
1639
|
-
let
|
|
1695
|
+
t2 = () => setAnchorEl(null);
|
|
1696
|
+
$[1] = t2;
|
|
1697
|
+
} else t2 = $[1];
|
|
1698
|
+
const close = t2;
|
|
1699
|
+
let t3;
|
|
1640
1700
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1641
|
-
|
|
1701
|
+
t3 = (action) => () => {
|
|
1642
1702
|
action();
|
|
1643
1703
|
close();
|
|
1644
1704
|
};
|
|
1645
|
-
$[2] =
|
|
1646
|
-
} else
|
|
1647
|
-
const run =
|
|
1705
|
+
$[2] = t3;
|
|
1706
|
+
} else t3 = $[2];
|
|
1707
|
+
const run = t3;
|
|
1648
1708
|
if (!hasColumnLabel(column)) return null;
|
|
1649
|
-
let
|
|
1650
|
-
if ($[3] !== anchorEl || $[4] !== column || $[5] !== t) {
|
|
1651
|
-
|
|
1709
|
+
let t4;
|
|
1710
|
+
if ($[3] !== anchorEl || $[4] !== column || $[5] !== disableGrouping || $[6] !== t) {
|
|
1711
|
+
t4 = () => {
|
|
1652
1712
|
const canSort = column.getCanSort();
|
|
1653
1713
|
const canPin = column.getCanPin();
|
|
1654
|
-
const canGroup = column.getCanGroup();
|
|
1714
|
+
const canGroup = !disableGrouping && column.getCanGroup();
|
|
1655
1715
|
const canHide = column.getCanHide();
|
|
1656
1716
|
if (!canSort && !canPin && !canGroup && !canHide) return null;
|
|
1657
1717
|
const sorted = column.getIsSorted();
|
|
@@ -1673,7 +1733,8 @@ const HeaderMenu = () => {
|
|
|
1673
1733
|
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
1674
1734
|
size: "small",
|
|
1675
1735
|
onClick: (event) => setAnchorEl(event.currentTarget),
|
|
1676
|
-
"aria-label":
|
|
1736
|
+
"aria-label": `Column menu: ${columnLabel(column)}`,
|
|
1737
|
+
"aria-haspopup": "menu",
|
|
1677
1738
|
children: /* @__PURE__ */ jsx(MoreVert, { fontSize: "small" })
|
|
1678
1739
|
}), /* @__PURE__ */ jsxs(Menu, {
|
|
1679
1740
|
anchorEl,
|
|
@@ -1725,23 +1786,24 @@ const HeaderMenu = () => {
|
|
|
1725
1786
|
};
|
|
1726
1787
|
$[3] = anchorEl;
|
|
1727
1788
|
$[4] = column;
|
|
1728
|
-
$[5] =
|
|
1729
|
-
$[6] =
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1789
|
+
$[5] = disableGrouping;
|
|
1790
|
+
$[6] = t;
|
|
1791
|
+
$[7] = t4;
|
|
1792
|
+
} else t4 = $[7];
|
|
1793
|
+
let t5;
|
|
1794
|
+
if ($[8] !== column.table.store || $[9] !== t4) {
|
|
1795
|
+
t5 = /* @__PURE__ */ jsx(Subscribe, {
|
|
1734
1796
|
source: column.table.store,
|
|
1735
|
-
selector: _temp$
|
|
1736
|
-
children:
|
|
1797
|
+
selector: _temp$4,
|
|
1798
|
+
children: t4
|
|
1737
1799
|
});
|
|
1738
|
-
$[
|
|
1739
|
-
$[
|
|
1740
|
-
$[
|
|
1741
|
-
} else
|
|
1742
|
-
return
|
|
1800
|
+
$[8] = column.table.store;
|
|
1801
|
+
$[9] = t4;
|
|
1802
|
+
$[10] = t5;
|
|
1803
|
+
} else t5 = $[10];
|
|
1804
|
+
return t5;
|
|
1743
1805
|
};
|
|
1744
|
-
function _temp$
|
|
1806
|
+
function _temp$4(state) {
|
|
1745
1807
|
return state;
|
|
1746
1808
|
}
|
|
1747
1809
|
//#endregion
|
|
@@ -1767,9 +1829,9 @@ const base = {
|
|
|
1767
1829
|
};
|
|
1768
1830
|
const HeaderResizeHandle = () => {
|
|
1769
1831
|
const $ = c(14);
|
|
1770
|
-
if ($[0] !== "
|
|
1832
|
+
if ($[0] !== "a5fdf5cd6dc4c3728e4138690f3f0e7acc6328c09f9e0a674d1f2cd2ca6b0aab") {
|
|
1771
1833
|
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1772
|
-
$[0] = "
|
|
1834
|
+
$[0] = "a5fdf5cd6dc4c3728e4138690f3f0e7acc6328c09f9e0a674d1f2cd2ca6b0aab";
|
|
1773
1835
|
}
|
|
1774
1836
|
const header = useHeaderContext();
|
|
1775
1837
|
const { column } = header;
|
|
@@ -1815,7 +1877,7 @@ const HeaderResizeHandle = () => {
|
|
|
1815
1877
|
onMouseDown: handler,
|
|
1816
1878
|
onTouchStart: handler,
|
|
1817
1879
|
onDoubleClick: () => column.resetSize(),
|
|
1818
|
-
onClick: _temp$
|
|
1880
|
+
onClick: _temp$3,
|
|
1819
1881
|
sx: {
|
|
1820
1882
|
...base,
|
|
1821
1883
|
cursor: "col-resize",
|
|
@@ -1841,16 +1903,16 @@ const HeaderResizeHandle = () => {
|
|
|
1841
1903
|
} else t3 = $[13];
|
|
1842
1904
|
return t3;
|
|
1843
1905
|
};
|
|
1844
|
-
function _temp$
|
|
1906
|
+
function _temp$3(event_0) {
|
|
1845
1907
|
return event_0.stopPropagation();
|
|
1846
1908
|
}
|
|
1847
1909
|
//#endregion
|
|
1848
1910
|
//#region src/components/table/headers/HeaderSortLabel.tsx
|
|
1849
1911
|
const HeaderSortLabel = (t0) => {
|
|
1850
1912
|
const $ = c(7);
|
|
1851
|
-
if ($[0] !== "
|
|
1913
|
+
if ($[0] !== "e3d141911bfab0890b35744f9d295c4bc8fc45a640add2dac96490da9b901aa0") {
|
|
1852
1914
|
for (let $i = 0; $i < 7; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1853
|
-
$[0] = "
|
|
1915
|
+
$[0] = "e3d141911bfab0890b35744f9d295c4bc8fc45a640add2dac96490da9b901aa0";
|
|
1854
1916
|
}
|
|
1855
1917
|
const { children } = t0;
|
|
1856
1918
|
const { column } = useHeaderContext();
|
|
@@ -1935,9 +1997,9 @@ const SelectAllCell = (t0) => {
|
|
|
1935
1997
|
//#region src/components/table/table/ColumnsPanel.tsx
|
|
1936
1998
|
const ColumnsPanel = () => {
|
|
1937
1999
|
const $ = c(29);
|
|
1938
|
-
if ($[0] !== "
|
|
2000
|
+
if ($[0] !== "51e8abadd813b52858d4a54aec955e824fddabf4067b7a9d631f17b9978e603b") {
|
|
1939
2001
|
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1940
|
-
$[0] = "
|
|
2002
|
+
$[0] = "51e8abadd813b52858d4a54aec955e824fddabf4067b7a9d631f17b9978e603b";
|
|
1941
2003
|
}
|
|
1942
2004
|
const table = useTableContext();
|
|
1943
2005
|
const { t } = useTranslation$1();
|
|
@@ -1945,7 +2007,7 @@ const ColumnsPanel = () => {
|
|
|
1945
2007
|
const buttonRef = useRef(null);
|
|
1946
2008
|
let t0;
|
|
1947
2009
|
if ($[1] !== table) {
|
|
1948
|
-
t0 = table.getAllLeafColumns().filter(_temp$
|
|
2010
|
+
t0 = table.getAllLeafColumns().filter(_temp$2);
|
|
1949
2011
|
$[1] = table;
|
|
1950
2012
|
$[2] = t0;
|
|
1951
2013
|
} else t0 = $[2];
|
|
@@ -2090,7 +2152,7 @@ const ColumnsPanel = () => {
|
|
|
2090
2152
|
} else t15 = $[28];
|
|
2091
2153
|
return t15;
|
|
2092
2154
|
};
|
|
2093
|
-
function _temp$
|
|
2155
|
+
function _temp$2(column) {
|
|
2094
2156
|
return hasColumnLabel(column) && column.getCanHide();
|
|
2095
2157
|
}
|
|
2096
2158
|
function _temp2$1(column_0) {
|
|
@@ -2129,9 +2191,9 @@ const toNumber = (raw) => raw === "" ? "" : Number(raw);
|
|
|
2129
2191
|
const pair = (value) => Array.isArray(value) ? [value[0], value[1]] : ["", ""];
|
|
2130
2192
|
function ColumnFilterField(t0) {
|
|
2131
2193
|
const $ = c(126);
|
|
2132
|
-
if ($[0] !== "
|
|
2194
|
+
if ($[0] !== "8cf4290e848c6e9ebd82d90d41965d8dceced2444a0e32315e75108132bf86e6") {
|
|
2133
2195
|
for (let $i = 0; $i < 126; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2134
|
-
$[0] = "
|
|
2196
|
+
$[0] = "8cf4290e848c6e9ebd82d90d41965d8dceced2444a0e32315e75108132bf86e6";
|
|
2135
2197
|
}
|
|
2136
2198
|
const { column, filter, onChange } = t0;
|
|
2137
2199
|
const { t } = useTranslation$1();
|
|
@@ -2442,7 +2504,7 @@ function ColumnFilterField(t0) {
|
|
|
2442
2504
|
options: t9,
|
|
2443
2505
|
disableCloseOnSelect: t10,
|
|
2444
2506
|
value: t11,
|
|
2445
|
-
isOptionEqualToValue: _temp$
|
|
2507
|
+
isOptionEqualToValue: _temp$1,
|
|
2446
2508
|
getOptionLabel: _temp2,
|
|
2447
2509
|
onChange: t12,
|
|
2448
2510
|
renderInput: t13
|
|
@@ -2577,7 +2639,7 @@ function _temp3(option_3) {
|
|
|
2577
2639
|
function _temp2(option_2) {
|
|
2578
2640
|
return option_2.label;
|
|
2579
2641
|
}
|
|
2580
|
-
function _temp$
|
|
2642
|
+
function _temp$1(option_1, selectedOption) {
|
|
2581
2643
|
return option_1.value === selectedOption.value;
|
|
2582
2644
|
}
|
|
2583
2645
|
//#endregion
|
|
@@ -2682,7 +2744,7 @@ const FiltersMenu = () => {
|
|
|
2682
2744
|
children: [
|
|
2683
2745
|
/* @__PURE__ */ jsx(IconButton, {
|
|
2684
2746
|
size: "small",
|
|
2685
|
-
"aria-label":
|
|
2747
|
+
"aria-label": "Remove filter",
|
|
2686
2748
|
sx: { flexShrink: 0 },
|
|
2687
2749
|
onClick: () => remove(filter_1.filterId),
|
|
2688
2750
|
children: /* @__PURE__ */ jsx(Close, { fontSize: "small" })
|
|
@@ -2697,7 +2759,7 @@ const FiltersMenu = () => {
|
|
|
2697
2759
|
children: /* @__PURE__ */ jsxs(Select, {
|
|
2698
2760
|
disabled: index > 1,
|
|
2699
2761
|
value: filter_1.joinOperator ?? "and",
|
|
2700
|
-
inputProps: { "aria-label":
|
|
2762
|
+
inputProps: { "aria-label": "Logic operator" },
|
|
2701
2763
|
onChange: (event_0) => setFilters(rows.map((item) => ({
|
|
2702
2764
|
...item,
|
|
2703
2765
|
joinOperator: event_0.target.value
|
|
@@ -2798,10 +2860,10 @@ const FiltersMenu = () => {
|
|
|
2798
2860
|
//#endregion
|
|
2799
2861
|
//#region src/components/table/table/GlobalFilter.tsx
|
|
2800
2862
|
const GlobalFilter = (t0) => {
|
|
2801
|
-
const $ = c(
|
|
2802
|
-
if ($[0] !== "
|
|
2803
|
-
for (let $i = 0; $i <
|
|
2804
|
-
$[0] = "
|
|
2863
|
+
const $ = c(50);
|
|
2864
|
+
if ($[0] !== "9cbafcf25a392d89dd0e58858145a525fa53419ebcb77017627fee842fab821e") {
|
|
2865
|
+
for (let $i = 0; $i < 50; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2866
|
+
$[0] = "9cbafcf25a392d89dd0e58858145a525fa53419ebcb77017627fee842fab821e";
|
|
2805
2867
|
}
|
|
2806
2868
|
const { defaultExpanded, debounce: t1 } = t0;
|
|
2807
2869
|
const debounce = t1 === void 0 ? 300 : t1;
|
|
@@ -2809,158 +2871,159 @@ const GlobalFilter = (t0) => {
|
|
|
2809
2871
|
const { t } = useTranslation$1();
|
|
2810
2872
|
const theme = useTheme();
|
|
2811
2873
|
const inputRef = useRef(null);
|
|
2874
|
+
const buttonRef = useRef(null);
|
|
2812
2875
|
const [value, setValue] = useState(table.state.globalFilter ?? "");
|
|
2813
2876
|
const [expanded, setExpanded] = useState(!!defaultExpanded);
|
|
2877
|
+
const current = table.state.globalFilter ?? "";
|
|
2814
2878
|
let t2;
|
|
2815
2879
|
let t3;
|
|
2816
|
-
if ($[1] !==
|
|
2880
|
+
if ($[1] !== current || $[2] !== debounce || $[3] !== table || $[4] !== value) {
|
|
2817
2881
|
t2 = () => {
|
|
2882
|
+
if (value === current) return;
|
|
2818
2883
|
const id = setTimeout(() => table.setGlobalFilter(value), debounce);
|
|
2819
2884
|
return () => clearTimeout(id);
|
|
2820
2885
|
};
|
|
2821
2886
|
t3 = [
|
|
2822
2887
|
value,
|
|
2888
|
+
current,
|
|
2823
2889
|
debounce,
|
|
2824
2890
|
table
|
|
2825
2891
|
];
|
|
2826
|
-
$[1] =
|
|
2827
|
-
$[2] =
|
|
2828
|
-
$[3] =
|
|
2829
|
-
$[4] =
|
|
2830
|
-
$[5] =
|
|
2892
|
+
$[1] = current;
|
|
2893
|
+
$[2] = debounce;
|
|
2894
|
+
$[3] = table;
|
|
2895
|
+
$[4] = value;
|
|
2896
|
+
$[5] = t2;
|
|
2897
|
+
$[6] = t3;
|
|
2831
2898
|
} else {
|
|
2832
|
-
t2 = $[
|
|
2833
|
-
t3 = $[
|
|
2899
|
+
t2 = $[5];
|
|
2900
|
+
t3 = $[6];
|
|
2834
2901
|
}
|
|
2835
2902
|
useEffect(t2, t3);
|
|
2836
2903
|
let t4;
|
|
2837
|
-
if ($[
|
|
2904
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2838
2905
|
t4 = () => {
|
|
2839
2906
|
setValue("");
|
|
2840
|
-
setExpanded(false);
|
|
2907
|
+
flushSync(() => setExpanded(false));
|
|
2908
|
+
buttonRef.current?.focus();
|
|
2841
2909
|
};
|
|
2842
|
-
$[
|
|
2843
|
-
} else t4 = $[
|
|
2910
|
+
$[7] = t4;
|
|
2911
|
+
} else t4 = $[7];
|
|
2844
2912
|
const collapse = t4;
|
|
2845
2913
|
let t5;
|
|
2846
|
-
if ($[
|
|
2914
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2847
2915
|
t5 = () => {
|
|
2848
|
-
setExpanded(true);
|
|
2916
|
+
flushSync(() => setExpanded(true));
|
|
2849
2917
|
inputRef.current?.focus();
|
|
2850
2918
|
};
|
|
2851
|
-
$[
|
|
2852
|
-
} else t5 = $[
|
|
2919
|
+
$[8] = t5;
|
|
2920
|
+
} else t5 = $[8];
|
|
2853
2921
|
const expand = t5;
|
|
2854
2922
|
useHotkey("Control+Q", expand);
|
|
2855
2923
|
let t6;
|
|
2856
|
-
if ($[
|
|
2924
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2857
2925
|
t6 = {
|
|
2858
2926
|
display: "grid",
|
|
2859
2927
|
alignItems: "center"
|
|
2860
2928
|
};
|
|
2861
|
-
$[
|
|
2862
|
-
} else t6 = $[
|
|
2929
|
+
$[9] = t6;
|
|
2930
|
+
} else t6 = $[9];
|
|
2863
2931
|
let t7;
|
|
2864
|
-
if ($[
|
|
2932
|
+
if ($[10] !== t) {
|
|
2865
2933
|
t7 = shortcutLabel(t("Layout.Table.Search"), "Control+Q");
|
|
2866
|
-
$[
|
|
2867
|
-
$[
|
|
2868
|
-
} else t7 = $[
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2934
|
+
$[10] = t;
|
|
2935
|
+
$[11] = t7;
|
|
2936
|
+
} else t7 = $[11];
|
|
2937
|
+
const t8 = expanded ? 0 : 1;
|
|
2938
|
+
const t9 = expanded ? "none" : "auto";
|
|
2939
|
+
let t10;
|
|
2940
|
+
if ($[12] !== theme.transitions) {
|
|
2941
|
+
t10 = theme.transitions.create(["opacity"]);
|
|
2942
|
+
$[12] = theme.transitions;
|
|
2943
|
+
$[13] = t10;
|
|
2944
|
+
} else t10 = $[13];
|
|
2877
2945
|
let t11;
|
|
2878
|
-
if ($[
|
|
2879
|
-
t11 =
|
|
2880
|
-
$[13] = theme.transitions;
|
|
2881
|
-
$[14] = t11;
|
|
2882
|
-
} else t11 = $[14];
|
|
2883
|
-
let t12;
|
|
2884
|
-
if ($[15] !== t10 || $[16] !== t11 || $[17] !== t9) {
|
|
2885
|
-
t12 = {
|
|
2946
|
+
if ($[14] !== t10 || $[15] !== t8 || $[16] !== t9) {
|
|
2947
|
+
t11 = {
|
|
2886
2948
|
gridArea: "1 / 1",
|
|
2887
2949
|
width: "min-content",
|
|
2888
2950
|
height: "min-content",
|
|
2889
2951
|
zIndex: 1,
|
|
2890
|
-
opacity:
|
|
2891
|
-
pointerEvents:
|
|
2892
|
-
transition:
|
|
2952
|
+
opacity: t8,
|
|
2953
|
+
pointerEvents: t9,
|
|
2954
|
+
transition: t10
|
|
2893
2955
|
};
|
|
2894
|
-
$[
|
|
2895
|
-
$[
|
|
2896
|
-
$[
|
|
2956
|
+
$[14] = t10;
|
|
2957
|
+
$[15] = t8;
|
|
2958
|
+
$[16] = t9;
|
|
2959
|
+
$[17] = t11;
|
|
2960
|
+
} else t11 = $[17];
|
|
2961
|
+
let t12;
|
|
2962
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2963
|
+
t12 = /* @__PURE__ */ jsx(Search, { fontSize: "small" });
|
|
2897
2964
|
$[18] = t12;
|
|
2898
2965
|
} else t12 = $[18];
|
|
2899
2966
|
let t13;
|
|
2900
|
-
if ($[19]
|
|
2901
|
-
t13 = /* @__PURE__ */ jsx(
|
|
2902
|
-
|
|
2903
|
-
} else t13 = $[19];
|
|
2904
|
-
let t14;
|
|
2905
|
-
if ($[20] !== expanded || $[21] !== t12 || $[22] !== t8) {
|
|
2906
|
-
t14 = /* @__PURE__ */ jsx(IconButton, {
|
|
2967
|
+
if ($[19] !== expanded || $[20] !== t11) {
|
|
2968
|
+
t13 = /* @__PURE__ */ jsx(IconButton, {
|
|
2969
|
+
ref: buttonRef,
|
|
2907
2970
|
size: "small",
|
|
2908
|
-
"aria-label":
|
|
2909
|
-
|
|
2971
|
+
"aria-label": "Search",
|
|
2972
|
+
inert: expanded,
|
|
2910
2973
|
onClick: expand,
|
|
2911
|
-
sx:
|
|
2912
|
-
children:
|
|
2974
|
+
sx: t11,
|
|
2975
|
+
children: t12
|
|
2913
2976
|
});
|
|
2914
|
-
$[
|
|
2915
|
-
$[
|
|
2916
|
-
$[
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
t15 = /* @__PURE__ */ jsx(Tooltip, {
|
|
2977
|
+
$[19] = expanded;
|
|
2978
|
+
$[20] = t11;
|
|
2979
|
+
$[21] = t13;
|
|
2980
|
+
} else t13 = $[21];
|
|
2981
|
+
let t14;
|
|
2982
|
+
if ($[22] !== t13 || $[23] !== t7) {
|
|
2983
|
+
t14 = /* @__PURE__ */ jsx(Tooltip, {
|
|
2922
2984
|
title: t7,
|
|
2923
|
-
children:
|
|
2985
|
+
children: t13
|
|
2924
2986
|
});
|
|
2987
|
+
$[22] = t13;
|
|
2988
|
+
$[23] = t7;
|
|
2925
2989
|
$[24] = t14;
|
|
2926
|
-
|
|
2990
|
+
} else t14 = $[24];
|
|
2991
|
+
let t15;
|
|
2992
|
+
if ($[25] !== t) {
|
|
2993
|
+
t15 = t("Layout.Table.Search");
|
|
2994
|
+
$[25] = t;
|
|
2927
2995
|
$[26] = t15;
|
|
2928
2996
|
} else t15 = $[26];
|
|
2929
2997
|
let t16;
|
|
2930
|
-
if ($[27] !== t) {
|
|
2931
|
-
t16 = t("Layout.Table.Search");
|
|
2932
|
-
$[27] = t;
|
|
2933
|
-
$[28] = t16;
|
|
2934
|
-
} else t16 = $[28];
|
|
2935
2998
|
let t17;
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
t17 = (
|
|
2939
|
-
|
|
2940
|
-
$[
|
|
2941
|
-
$[30] = t18;
|
|
2999
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3000
|
+
t16 = (event) => setValue(event.target.value);
|
|
3001
|
+
t17 = (event_0) => event_0.key === "Escape" && collapse();
|
|
3002
|
+
$[27] = t16;
|
|
3003
|
+
$[28] = t17;
|
|
2942
3004
|
} else {
|
|
2943
|
-
|
|
2944
|
-
|
|
3005
|
+
t16 = $[27];
|
|
3006
|
+
t17 = $[28];
|
|
2945
3007
|
}
|
|
2946
|
-
let
|
|
2947
|
-
if ($[
|
|
2948
|
-
|
|
2949
|
-
$[
|
|
2950
|
-
$[
|
|
2951
|
-
$[
|
|
2952
|
-
} else
|
|
3008
|
+
let t18;
|
|
3009
|
+
if ($[29] !== defaultExpanded || $[30] !== value) {
|
|
3010
|
+
t18 = (event_1) => !value && !defaultExpanded && !event_1.currentTarget.parentElement?.contains(event_1.relatedTarget) && setExpanded(false);
|
|
3011
|
+
$[29] = defaultExpanded;
|
|
3012
|
+
$[30] = value;
|
|
3013
|
+
$[31] = t18;
|
|
3014
|
+
} else t18 = $[31];
|
|
3015
|
+
const t19 = !expanded;
|
|
2953
3016
|
const t20 = expanded ? 260 : 40;
|
|
2954
3017
|
const t21 = expanded ? 1 : 0;
|
|
2955
3018
|
const t22 = expanded ? "auto" : "none";
|
|
2956
3019
|
let t23;
|
|
2957
|
-
if ($[
|
|
3020
|
+
if ($[32] !== theme.transitions) {
|
|
2958
3021
|
t23 = theme.transitions.create(["width", "opacity"]);
|
|
2959
|
-
$[
|
|
2960
|
-
$[
|
|
2961
|
-
} else t23 = $[
|
|
3022
|
+
$[32] = theme.transitions;
|
|
3023
|
+
$[33] = t23;
|
|
3024
|
+
} else t23 = $[33];
|
|
2962
3025
|
let t24;
|
|
2963
|
-
if ($[
|
|
3026
|
+
if ($[34] !== t20 || $[35] !== t21 || $[36] !== t22 || $[37] !== t23) {
|
|
2964
3027
|
t24 = {
|
|
2965
3028
|
gridArea: "1 / 1",
|
|
2966
3029
|
overflowX: "clip",
|
|
@@ -2969,192 +3032,81 @@ const GlobalFilter = (t0) => {
|
|
|
2969
3032
|
pointerEvents: t22,
|
|
2970
3033
|
transition: t23
|
|
2971
3034
|
};
|
|
2972
|
-
$[
|
|
2973
|
-
$[
|
|
2974
|
-
$[
|
|
2975
|
-
$[
|
|
2976
|
-
$[
|
|
2977
|
-
} else t24 = $[
|
|
3035
|
+
$[34] = t20;
|
|
3036
|
+
$[35] = t21;
|
|
3037
|
+
$[36] = t22;
|
|
3038
|
+
$[37] = t23;
|
|
3039
|
+
$[38] = t24;
|
|
3040
|
+
} else t24 = $[38];
|
|
2978
3041
|
let t25;
|
|
2979
|
-
if ($[
|
|
3042
|
+
if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2980
3043
|
t25 = /* @__PURE__ */ jsx(InputAdornment, {
|
|
2981
3044
|
position: "start",
|
|
2982
3045
|
children: /* @__PURE__ */ jsx(Search, { fontSize: "small" })
|
|
2983
3046
|
});
|
|
2984
|
-
$[
|
|
2985
|
-
} else t25 = $[
|
|
3047
|
+
$[39] = t25;
|
|
3048
|
+
} else t25 = $[39];
|
|
2986
3049
|
let t26;
|
|
2987
|
-
if ($[
|
|
2988
|
-
t26 =
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
t28 = $[45];
|
|
3002
|
-
}
|
|
3003
|
-
let t29;
|
|
3004
|
-
if ($[46] !== t26) {
|
|
3005
|
-
t29 = { input: {
|
|
3006
|
-
startAdornment: t25,
|
|
3007
|
-
endAdornment: /* @__PURE__ */ jsx(InputAdornment, {
|
|
3008
|
-
position: "end",
|
|
3009
|
-
children: /* @__PURE__ */ jsx(IconButton, {
|
|
3010
|
-
edge: "end",
|
|
3011
|
-
size: "small",
|
|
3012
|
-
"aria-label": t26,
|
|
3013
|
-
onClick: collapse,
|
|
3014
|
-
sx: t27,
|
|
3015
|
-
children: t28
|
|
3050
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3051
|
+
t26 = {
|
|
3052
|
+
input: {
|
|
3053
|
+
startAdornment: t25,
|
|
3054
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, {
|
|
3055
|
+
position: "end",
|
|
3056
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
3057
|
+
edge: "end",
|
|
3058
|
+
size: "small",
|
|
3059
|
+
"aria-label": "Clear search",
|
|
3060
|
+
onClick: collapse,
|
|
3061
|
+
sx: { mr: -.75 },
|
|
3062
|
+
children: /* @__PURE__ */ jsx(Close, { fontSize: "small" })
|
|
3063
|
+
})
|
|
3016
3064
|
})
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
$[
|
|
3021
|
-
} else
|
|
3022
|
-
let
|
|
3023
|
-
if ($[
|
|
3024
|
-
|
|
3065
|
+
},
|
|
3066
|
+
htmlInput: { "aria-label": "Search" }
|
|
3067
|
+
};
|
|
3068
|
+
$[40] = t26;
|
|
3069
|
+
} else t26 = $[40];
|
|
3070
|
+
let t27;
|
|
3071
|
+
if ($[41] !== t15 || $[42] !== t18 || $[43] !== t19 || $[44] !== t24 || $[45] !== value) {
|
|
3072
|
+
t27 = /* @__PURE__ */ jsx(TextField, {
|
|
3025
3073
|
inputRef,
|
|
3026
3074
|
size: "small",
|
|
3027
3075
|
value,
|
|
3028
|
-
placeholder:
|
|
3029
|
-
onChange:
|
|
3030
|
-
onKeyDown:
|
|
3031
|
-
onBlur:
|
|
3076
|
+
placeholder: t15,
|
|
3077
|
+
onChange: t16,
|
|
3078
|
+
onKeyDown: t17,
|
|
3079
|
+
onBlur: t18,
|
|
3080
|
+
inert: t19,
|
|
3032
3081
|
sx: t24,
|
|
3033
|
-
slotProps:
|
|
3082
|
+
slotProps: t26
|
|
3034
3083
|
});
|
|
3035
|
-
$[
|
|
3036
|
-
$[
|
|
3037
|
-
$[
|
|
3038
|
-
$[
|
|
3039
|
-
$[
|
|
3040
|
-
$[
|
|
3041
|
-
} else
|
|
3042
|
-
let
|
|
3043
|
-
if ($[
|
|
3044
|
-
|
|
3084
|
+
$[41] = t15;
|
|
3085
|
+
$[42] = t18;
|
|
3086
|
+
$[43] = t19;
|
|
3087
|
+
$[44] = t24;
|
|
3088
|
+
$[45] = value;
|
|
3089
|
+
$[46] = t27;
|
|
3090
|
+
} else t27 = $[46];
|
|
3091
|
+
let t28;
|
|
3092
|
+
if ($[47] !== t14 || $[48] !== t27) {
|
|
3093
|
+
t28 = /* @__PURE__ */ jsxs(Box, {
|
|
3045
3094
|
sx: t6,
|
|
3046
|
-
children: [
|
|
3095
|
+
children: [t14, t27]
|
|
3047
3096
|
});
|
|
3048
|
-
$[
|
|
3049
|
-
$[
|
|
3050
|
-
$[
|
|
3051
|
-
} else
|
|
3052
|
-
return
|
|
3053
|
-
};
|
|
3054
|
-
//#endregion
|
|
3055
|
-
//#region src/components/table/table/Pagination.tsx
|
|
3056
|
-
const ALL = -1;
|
|
3057
|
-
const Pagination = (t0) => {
|
|
3058
|
-
const $ = c(16);
|
|
3059
|
-
if ($[0] !== "35f3e006007ae0e4ccbdd3e2e09ae9cbd9d16c7804126e9f3e24a96c2298d387") {
|
|
3060
|
-
for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
3061
|
-
$[0] = "35f3e006007ae0e4ccbdd3e2e09ae9cbd9d16c7804126e9f3e24a96c2298d387";
|
|
3062
|
-
}
|
|
3063
|
-
const { pageSizeOptions: t1, ...props } = t0;
|
|
3064
|
-
const pageSizeOptions = t1 === void 0 ? [
|
|
3065
|
-
10,
|
|
3066
|
-
25,
|
|
3067
|
-
50,
|
|
3068
|
-
100
|
|
3069
|
-
] : t1;
|
|
3070
|
-
const table = useTableContext();
|
|
3071
|
-
const { t } = useTranslation$1();
|
|
3072
|
-
const { pageIndex, pageSize } = table.state.pagination;
|
|
3073
|
-
const sizes = Number.isFinite(pageSize) && !pageSizeOptions.includes(pageSize) ? [...pageSizeOptions, pageSize].sort(_temp$1) : pageSizeOptions;
|
|
3074
|
-
let t2;
|
|
3075
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3076
|
-
t2 = {
|
|
3077
|
-
flexShrink: 0,
|
|
3078
|
-
minHeight: 52,
|
|
3079
|
-
borderTop: 1,
|
|
3080
|
-
borderColor: "divider"
|
|
3081
|
-
};
|
|
3082
|
-
$[1] = t2;
|
|
3083
|
-
} else t2 = $[1];
|
|
3084
|
-
let t3;
|
|
3085
|
-
if ($[2] !== t) {
|
|
3086
|
-
t3 = t("Layout.Table.All");
|
|
3087
|
-
$[2] = t;
|
|
3088
|
-
$[3] = t3;
|
|
3089
|
-
} else t3 = $[3];
|
|
3090
|
-
let t4;
|
|
3091
|
-
if ($[4] !== t3) {
|
|
3092
|
-
t4 = {
|
|
3093
|
-
label: t3,
|
|
3094
|
-
value: ALL
|
|
3095
|
-
};
|
|
3096
|
-
$[4] = t3;
|
|
3097
|
-
$[5] = t4;
|
|
3098
|
-
} else t4 = $[5];
|
|
3099
|
-
let t5;
|
|
3100
|
-
if ($[6] !== sizes || $[7] !== t4) {
|
|
3101
|
-
t5 = [...sizes, t4];
|
|
3102
|
-
$[6] = sizes;
|
|
3103
|
-
$[7] = t4;
|
|
3104
|
-
$[8] = t5;
|
|
3105
|
-
} else t5 = $[8];
|
|
3106
|
-
let t6;
|
|
3107
|
-
if ($[9] !== table) {
|
|
3108
|
-
t6 = table.getRowCount();
|
|
3109
|
-
$[9] = table;
|
|
3110
|
-
$[10] = t6;
|
|
3111
|
-
} else t6 = $[10];
|
|
3112
|
-
let t7;
|
|
3113
|
-
if ($[11] !== pageSize) {
|
|
3114
|
-
t7 = Number.isFinite(pageSize) ? pageSize : ALL;
|
|
3115
|
-
$[11] = pageSize;
|
|
3116
|
-
$[12] = t7;
|
|
3117
|
-
} else t7 = $[12];
|
|
3118
|
-
let t8;
|
|
3119
|
-
let t9;
|
|
3120
|
-
if ($[13] !== table) {
|
|
3121
|
-
t8 = (_, page) => table.setPageIndex(page);
|
|
3122
|
-
t9 = (event) => {
|
|
3123
|
-
const next = Number(event.target.value);
|
|
3124
|
-
table.setPageSize(next === ALL ? Infinity : next);
|
|
3125
|
-
table.setPageIndex(0);
|
|
3126
|
-
};
|
|
3127
|
-
$[13] = table;
|
|
3128
|
-
$[14] = t8;
|
|
3129
|
-
$[15] = t9;
|
|
3130
|
-
} else {
|
|
3131
|
-
t8 = $[14];
|
|
3132
|
-
t9 = $[15];
|
|
3133
|
-
}
|
|
3134
|
-
return /* @__PURE__ */ jsx(TablePagination, {
|
|
3135
|
-
component: "div",
|
|
3136
|
-
showFirstButton: true,
|
|
3137
|
-
showLastButton: true,
|
|
3138
|
-
...props,
|
|
3139
|
-
sx: [t2, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
3140
|
-
rowsPerPageOptions: t5,
|
|
3141
|
-
count: t6,
|
|
3142
|
-
page: pageIndex,
|
|
3143
|
-
rowsPerPage: t7,
|
|
3144
|
-
onPageChange: t8,
|
|
3145
|
-
onRowsPerPageChange: t9
|
|
3146
|
-
});
|
|
3097
|
+
$[47] = t14;
|
|
3098
|
+
$[48] = t27;
|
|
3099
|
+
$[49] = t28;
|
|
3100
|
+
} else t28 = $[49];
|
|
3101
|
+
return t28;
|
|
3147
3102
|
};
|
|
3148
|
-
function _temp$1(a, b) {
|
|
3149
|
-
return a - b;
|
|
3150
|
-
}
|
|
3151
3103
|
//#endregion
|
|
3152
3104
|
//#region src/components/table/table/Skeleton.tsx
|
|
3153
3105
|
const Skeleton$1 = (t0) => {
|
|
3154
3106
|
const $ = c(10);
|
|
3155
|
-
if ($[0] !== "
|
|
3107
|
+
if ($[0] !== "c76d7be5eeea72e8db5310907fb98a126e2ffe28ee66caaacc9ff500d44ccaa1") {
|
|
3156
3108
|
for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
3157
|
-
$[0] = "
|
|
3109
|
+
$[0] = "c76d7be5eeea72e8db5310907fb98a126e2ffe28ee66caaacc9ff500d44ccaa1";
|
|
3158
3110
|
}
|
|
3159
3111
|
const { rowHeight } = t0;
|
|
3160
3112
|
const table = useTableContext();
|
|
@@ -3233,9 +3185,9 @@ function _temp(column) {
|
|
|
3233
3185
|
/** Vertical rule with the MUI X toolbar proportions: half height, 4px gutters. */
|
|
3234
3186
|
const ToolbarDivider = () => {
|
|
3235
3187
|
const $ = c(2);
|
|
3236
|
-
if ($[0] !== "
|
|
3188
|
+
if ($[0] !== "6a6aabeada53cc97cf72c009758da2ba0f0b2cb7cb86740f06d3fe11828ba5ca") {
|
|
3237
3189
|
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
3238
|
-
$[0] = "
|
|
3190
|
+
$[0] = "6a6aabeada53cc97cf72c009758da2ba0f0b2cb7cb86740f06d3fe11828ba5ca";
|
|
3239
3191
|
}
|
|
3240
3192
|
let t0;
|
|
3241
3193
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -3253,9 +3205,9 @@ const ToolbarDivider = () => {
|
|
|
3253
3205
|
};
|
|
3254
3206
|
const Toolbar$1 = (t0) => {
|
|
3255
3207
|
const $ = c(29);
|
|
3256
|
-
if ($[0] !== "
|
|
3208
|
+
if ($[0] !== "6a6aabeada53cc97cf72c009758da2ba0f0b2cb7cb86740f06d3fe11828ba5ca") {
|
|
3257
3209
|
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
3258
|
-
$[0] = "
|
|
3210
|
+
$[0] = "6a6aabeada53cc97cf72c009758da2ba0f0b2cb7cb86740f06d3fe11828ba5ca";
|
|
3259
3211
|
}
|
|
3260
3212
|
const { title, actions, disableColumnFilter, disableColumnSelector, disableSearch } = t0;
|
|
3261
3213
|
const table = useTableContext();
|
|
@@ -3362,8 +3314,6 @@ const Toolbar$1 = (t0) => {
|
|
|
3362
3314
|
let t11;
|
|
3363
3315
|
if ($[22] !== actions || $[23] !== t10 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9) {
|
|
3364
3316
|
t11 = /* @__PURE__ */ jsxs(Box, {
|
|
3365
|
-
role: "toolbar",
|
|
3366
|
-
"aria-orientation": "horizontal",
|
|
3367
3317
|
sx: t1,
|
|
3368
3318
|
children: [
|
|
3369
3319
|
t6,
|