@natoora-libs/core 0.0.31 → 0.0.33
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 +71 -68
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +71 -68
- package/dist/components/index.js.map +1 -1
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.js.map +1 -1
- package/package.json +3 -1
package/dist/components/index.js
CHANGED
|
@@ -683,9 +683,9 @@ var FilledButtonLg = ({
|
|
|
683
683
|
loading && /* @__PURE__ */ jsx9(
|
|
684
684
|
CircularProgress2,
|
|
685
685
|
{
|
|
686
|
-
color: loadingProps
|
|
687
|
-
size: loadingProps
|
|
688
|
-
style: { marginLeft: "15px", ...loadingProps
|
|
686
|
+
color: (loadingProps == null ? void 0 : loadingProps.color) || "inherit",
|
|
687
|
+
size: (loadingProps == null ? void 0 : loadingProps.size) || 22,
|
|
688
|
+
style: { marginLeft: "15px", ...loadingProps == null ? void 0 : loadingProps.style }
|
|
689
689
|
}
|
|
690
690
|
)
|
|
691
691
|
]
|
|
@@ -3194,68 +3194,71 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3194
3194
|
] }) }),
|
|
3195
3195
|
/* @__PURE__ */ jsx65(List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ jsxs38(React57.Fragment, { children: [
|
|
3196
3196
|
/* @__PURE__ */ jsx65(ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
|
|
3197
|
-
group.apps.map((app) =>
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
},
|
|
3207
|
-
children: [
|
|
3208
|
-
/* @__PURE__ */ jsx65(ListItemIcon, { children: /* @__PURE__ */ jsx65(Icon, { className: classes.iconMenu, children: app.icon }) }),
|
|
3209
|
-
/* @__PURE__ */ jsx65(
|
|
3210
|
-
ListItemText,
|
|
3211
|
-
{
|
|
3212
|
-
className: classes.appName,
|
|
3213
|
-
primary: app.name,
|
|
3214
|
-
slotProps: {
|
|
3215
|
-
primary: { variant: "body2" }
|
|
3216
|
-
}
|
|
3217
|
-
}
|
|
3218
|
-
),
|
|
3219
|
-
app.children?.length > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ jsx65(
|
|
3220
|
-
ExpandLess,
|
|
3221
|
-
{
|
|
3222
|
-
"data-testid": "svg-close-collapse",
|
|
3223
|
-
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3224
|
-
}
|
|
3225
|
-
) : /* @__PURE__ */ jsx65(
|
|
3226
|
-
ExpandMore,
|
|
3227
|
-
{
|
|
3228
|
-
"data-testid": "svg-open-collapse",
|
|
3229
|
-
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3197
|
+
group.apps.map((app) => {
|
|
3198
|
+
var _a, _b;
|
|
3199
|
+
return /* @__PURE__ */ jsxs38(React57.Fragment, { children: [
|
|
3200
|
+
/* @__PURE__ */ jsxs38(
|
|
3201
|
+
ListItem,
|
|
3202
|
+
{
|
|
3203
|
+
title: app.url,
|
|
3204
|
+
onClick: () => {
|
|
3205
|
+
if (app.routeName === "logout") {
|
|
3230
3206
|
}
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
children: [
|
|
3244
|
-
/* @__PURE__ */ jsx65(ListItemIcon, { children: /* @__PURE__ */ jsx65(FiberManualRecord, { style: { height: 12 } }) }),
|
|
3245
|
-
/* @__PURE__ */ jsx65(
|
|
3246
|
-
ListItemText,
|
|
3247
|
-
{
|
|
3248
|
-
primary: child.name,
|
|
3249
|
-
slotProps: {
|
|
3250
|
-
primary: { variant: "body2" }
|
|
3207
|
+
return window.location.assign(app.url);
|
|
3208
|
+
},
|
|
3209
|
+
children: [
|
|
3210
|
+
/* @__PURE__ */ jsx65(ListItemIcon, { children: /* @__PURE__ */ jsx65(Icon, { className: classes.iconMenu, children: app.icon }) }),
|
|
3211
|
+
/* @__PURE__ */ jsx65(
|
|
3212
|
+
ListItemText,
|
|
3213
|
+
{
|
|
3214
|
+
className: classes.appName,
|
|
3215
|
+
primary: app.name,
|
|
3216
|
+
slotProps: {
|
|
3217
|
+
primary: { variant: "body2" }
|
|
3218
|
+
}
|
|
3251
3219
|
}
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3220
|
+
),
|
|
3221
|
+
((_a = app.children) == null ? void 0 : _a.length) > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ jsx65(
|
|
3222
|
+
ExpandLess,
|
|
3223
|
+
{
|
|
3224
|
+
"data-testid": "svg-close-collapse",
|
|
3225
|
+
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3226
|
+
}
|
|
3227
|
+
) : /* @__PURE__ */ jsx65(
|
|
3228
|
+
ExpandMore,
|
|
3229
|
+
{
|
|
3230
|
+
"data-testid": "svg-open-collapse",
|
|
3231
|
+
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3232
|
+
}
|
|
3233
|
+
))
|
|
3234
|
+
]
|
|
3235
|
+
},
|
|
3236
|
+
app.name
|
|
3237
|
+
),
|
|
3238
|
+
((_b = app.children) == null ? void 0 : _b.length) > 0 && /* @__PURE__ */ jsx65(Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ jsx65(List, { children: app.children.map((child) => /* @__PURE__ */ jsxs38(
|
|
3239
|
+
ListItemButton,
|
|
3240
|
+
{
|
|
3241
|
+
className: classes.nested,
|
|
3242
|
+
disabled: child.disabled,
|
|
3243
|
+
onClick: () => window.location.assign(app.url),
|
|
3244
|
+
title: app.url,
|
|
3245
|
+
children: [
|
|
3246
|
+
/* @__PURE__ */ jsx65(ListItemIcon, { children: /* @__PURE__ */ jsx65(FiberManualRecord, { style: { height: 12 } }) }),
|
|
3247
|
+
/* @__PURE__ */ jsx65(
|
|
3248
|
+
ListItemText,
|
|
3249
|
+
{
|
|
3250
|
+
primary: child.name,
|
|
3251
|
+
slotProps: {
|
|
3252
|
+
primary: { variant: "body2" }
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
)
|
|
3256
|
+
]
|
|
3257
|
+
},
|
|
3258
|
+
child.name
|
|
3259
|
+
)) }) })
|
|
3260
|
+
] }, `${group.groupName} ${app.name}`);
|
|
3261
|
+
})
|
|
3259
3262
|
] }, group.groupName)) })
|
|
3260
3263
|
]
|
|
3261
3264
|
}
|
|
@@ -4127,7 +4130,7 @@ var SearchWithFilters = ({
|
|
|
4127
4130
|
};
|
|
4128
4131
|
const handleKeyDown = (e) => {
|
|
4129
4132
|
if (e.key === "Enter") {
|
|
4130
|
-
enterPressedInSearch
|
|
4133
|
+
enterPressedInSearch == null ? void 0 : enterPressedInSearch();
|
|
4131
4134
|
}
|
|
4132
4135
|
};
|
|
4133
4136
|
useEffect3(() => {
|
|
@@ -4553,10 +4556,10 @@ var TableDesktop = ({
|
|
|
4553
4556
|
keyField
|
|
4554
4557
|
}) => {
|
|
4555
4558
|
const [order, setOrder] = useState5(
|
|
4556
|
-
appliedFilters
|
|
4559
|
+
(appliedFilters == null ? void 0 : appliedFilters.sortDir) || "desc"
|
|
4557
4560
|
);
|
|
4558
4561
|
const [orderBy, setOrderBy] = useState5(
|
|
4559
|
-
appliedFilters
|
|
4562
|
+
(appliedFilters == null ? void 0 : appliedFilters.sortField) || "delivery_date"
|
|
4560
4563
|
);
|
|
4561
4564
|
const [page] = useState5(0);
|
|
4562
4565
|
const { classes } = useStyles28();
|
|
@@ -4649,7 +4652,7 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4649
4652
|
return "";
|
|
4650
4653
|
};
|
|
4651
4654
|
const handleSortClick = (sortedCell) => {
|
|
4652
|
-
const newDirection = getNewSortDirection(sortedCell
|
|
4655
|
+
const newDirection = getNewSortDirection(sortedCell == null ? void 0 : sortedCell.direction);
|
|
4653
4656
|
if (onSort) {
|
|
4654
4657
|
onSort({
|
|
4655
4658
|
direction: newDirection,
|
|
@@ -4674,7 +4677,7 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4674
4677
|
TableSortLabel2,
|
|
4675
4678
|
{
|
|
4676
4679
|
className: classes.sortLabel,
|
|
4677
|
-
direction: cell
|
|
4680
|
+
direction: (cell == null ? void 0 : cell.direction) || "asc",
|
|
4678
4681
|
IconComponent: ImportExportIcon,
|
|
4679
4682
|
onClick: () => handleSortClick(cell),
|
|
4680
4683
|
children: cell.label
|