@firecms/core 3.0.0-canary.129 → 3.0.0-canary.130
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/index.es.js +16 -20
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/VirtualTable/VirtualTable.tsx +13 -15
- package/src/core/FireCMS.tsx +2 -0
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import React__default, { useRef, useEffect, useContext, useCallback, useMemo, us
|
|
|
4
4
|
import { SnackbarProvider as SnackbarProvider$1, useSnackbar } from "notistack";
|
|
5
5
|
import hash from "object-hash";
|
|
6
6
|
import { useCreateFormex, Formex, setIn, Field, getIn, useFormex } from "@firecms/formex";
|
|
7
|
-
import { getColorSchemeForSeed, CHIP_COLORS, Tooltip, ErrorIcon, Typography, CircleIcon, FunctionsIcon, iconKeys, coolIconKeys, Icon, IconButton, ContentCopyIcon, OpenInNewIcon, DescriptionIcon, cls, Skeleton, Chip, defaultBorderMixin, KeyboardTabIcon, Checkbox, Markdown, TextareaAutosize, focusedDisabled, MultiSelect, MultiSelectItem, Select, SelectItem, BooleanSwitch, DateTimeField, paperMixin, ErrorOutlineIcon, EditIcon, RemoveCircleIcon, Menu, MoreVertIcon, MenuItem, CircularProgress, SearchBar, Badge, ArrowUpwardIcon, Popover, FilterListIcon, Button,
|
|
7
|
+
import { getColorSchemeForSeed, CHIP_COLORS, Tooltip, ErrorIcon, Typography, CircleIcon, FunctionsIcon, iconKeys, coolIconKeys, Icon, IconButton, ContentCopyIcon, OpenInNewIcon, DescriptionIcon, cls, Skeleton, Chip, defaultBorderMixin, KeyboardTabIcon, Checkbox, Markdown, TextareaAutosize, focusedDisabled, MultiSelect, MultiSelectItem, Select, SelectItem, BooleanSwitch, DateTimeField, paperMixin, ErrorOutlineIcon, EditIcon, RemoveCircleIcon, Menu, MoreVertIcon, MenuItem, CircularProgress, SearchBar, Badge, ArrowUpwardIcon, Popover, FilterListIcon, Button, CenteredView, AssignmentIcon, Label, TextField, ClearIcon, BooleanSwitchWithLabel, useOutsideAlerter, Dialog, DialogContent, DialogActions, FileCopyIcon, ArchiveIcon, DeleteIcon, AddIcon, ExpandablePanel, Card, ArrowForwardIcon, cardMixin, cardClickableMixin, StarIcon, StarBorderIcon, Collapse, Container, FilterListOffIcon, SearchIcon, LoadingButton, Avatar, DarkModeIcon, LightModeIcon, LogoutIcon, HandleIcon, RemoveIcon, debounce, InfoIcon, CloseIcon, fieldBackgroundMixin, fieldBackgroundDisabledMixin, fieldBackgroundHoverMixin, ArrowDropDownIcon, ShortTextIcon, SubjectIcon, FormatQuoteIcon, HttpIcon, EmailIcon, FlagIcon, ListIcon, ListAltIcon, NumbersIcon, FormatListNumberedIcon, UploadFileIcon, DriveFolderUploadIcon, LinkIcon, AddLinkIcon, ScheduleIcon, BallotIcon, RepeatIcon, ViewStreamIcon, NotesIcon, Tab, Tabs, Alert, Sheet, useLocaleConfig, MenuIcon, ChevronLeftIcon } from "@firecms/ui";
|
|
8
8
|
import equal from "react-fast-compare";
|
|
9
9
|
import { Link, useNavigate, useLocation, UNSAFE_NavigationContext, NavLink, Route, Routes } from "react-router-dom";
|
|
10
10
|
import { format } from "date-fns";
|
|
@@ -9098,10 +9098,10 @@ const innerElementType = forwardRef(({
|
|
|
9098
9098
|
),
|
|
9099
9099
|
customView && /* @__PURE__ */ jsx("div", { style: {
|
|
9100
9100
|
position: "sticky",
|
|
9101
|
-
top: "
|
|
9101
|
+
top: "48px",
|
|
9102
9102
|
flexGrow: 1,
|
|
9103
|
-
height: "calc(100% -
|
|
9104
|
-
marginTop: "calc(
|
|
9103
|
+
height: "calc(100% - 48px)",
|
|
9104
|
+
marginTop: "calc(48px - 100vh)",
|
|
9105
9105
|
left: 0
|
|
9106
9106
|
}, children: customView })
|
|
9107
9107
|
] });
|
|
@@ -9237,21 +9237,7 @@ const VirtualTable = React__default.memo(
|
|
|
9237
9237
|
}
|
|
9238
9238
|
if (onFilterUpdate) onFilterUpdate(newFilterValue);
|
|
9239
9239
|
}, [checkFilterCombination, currentSort, onFilterUpdate, sortByProperty]);
|
|
9240
|
-
const
|
|
9241
|
-
if (loading)
|
|
9242
|
-
return /* @__PURE__ */ jsx(CircularProgressCenter, {});
|
|
9243
|
-
return /* @__PURE__ */ jsxs(
|
|
9244
|
-
"div",
|
|
9245
|
-
{
|
|
9246
|
-
className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
|
|
9247
|
-
children: [
|
|
9248
|
-
/* @__PURE__ */ jsx(AssignmentIcon, {}),
|
|
9249
|
-
emptyComponent
|
|
9250
|
-
]
|
|
9251
|
-
}
|
|
9252
|
-
);
|
|
9253
|
-
}, [emptyComponent, loading]);
|
|
9254
|
-
const empty = data?.length ?? true;
|
|
9240
|
+
const empty = !loading && (data?.length ?? 0) === 0;
|
|
9255
9241
|
const customView = error ? /* @__PURE__ */ jsxs(
|
|
9256
9242
|
CenteredView,
|
|
9257
9243
|
{
|
|
@@ -9262,7 +9248,16 @@ const VirtualTable = React__default.memo(
|
|
|
9262
9248
|
error?.message && /* @__PURE__ */ jsx(SafeLinkRenderer, { text: error.message })
|
|
9263
9249
|
]
|
|
9264
9250
|
}
|
|
9265
|
-
) : empty ?
|
|
9251
|
+
) : empty ? loading ? /* @__PURE__ */ jsx(CircularProgressCenter, {}) : /* @__PURE__ */ jsxs(
|
|
9252
|
+
"div",
|
|
9253
|
+
{
|
|
9254
|
+
className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
|
|
9255
|
+
children: [
|
|
9256
|
+
/* @__PURE__ */ jsx(AssignmentIcon, {}),
|
|
9257
|
+
emptyComponent
|
|
9258
|
+
]
|
|
9259
|
+
}
|
|
9260
|
+
) : void 0;
|
|
9266
9261
|
const virtualListController = {
|
|
9267
9262
|
data,
|
|
9268
9263
|
rowHeight,
|
|
@@ -19185,6 +19180,7 @@ function FireCMS(props) {
|
|
|
19185
19180
|
accessResponse?.message && /* @__PURE__ */ jsx(Typography, { children: accessResponse?.message })
|
|
19186
19181
|
] });
|
|
19187
19182
|
}
|
|
19183
|
+
console.log("FireCMS render");
|
|
19188
19184
|
return /* @__PURE__ */ jsx(AnalyticsContext.Provider, { value: analyticsController, children: /* @__PURE__ */ jsx(CustomizationControllerContext.Provider, { value: customizationController, children: /* @__PURE__ */ jsx(
|
|
19189
19185
|
UserConfigurationPersistenceContext.Provider,
|
|
19190
19186
|
{
|