@carlonicora/nextjs-jsonapi 1.58.4 → 1.59.0

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.
@@ -8368,7 +8368,7 @@ __name(FormCheckbox, "FormCheckbox");
8368
8368
  import dynamic from "next/dynamic";
8369
8369
  import React14 from "react";
8370
8370
  import { jsx as jsx69 } from "react/jsx-runtime";
8371
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-WAE53RNS.mjs"), {
8371
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-V46DP6BW.mjs"), {
8372
8372
  ssr: false
8373
8373
  });
8374
8374
  var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -11870,7 +11870,15 @@ __name(RoundPageContainerTitle, "RoundPageContainerTitle");
11870
11870
  import { useSearchParams } from "next/navigation";
11871
11871
  import { useState as useState39 } from "react";
11872
11872
  import { Fragment as Fragment16, jsx as jsx131, jsxs as jsxs77 } from "react/jsx-runtime";
11873
- function RoundPageContainer({ module, id, details, tabs, children, fullWidth }) {
11873
+ function RoundPageContainer({
11874
+ module,
11875
+ id,
11876
+ details,
11877
+ tabs,
11878
+ children,
11879
+ fullWidth,
11880
+ forceHeader
11881
+ }) {
11874
11882
  const headerChildren = useHeaderChildren();
11875
11883
  const [showDetails, setShowDetails] = useState39(false);
11876
11884
  const searchParams = useSearchParams();
@@ -11881,13 +11889,14 @@ function RoundPageContainer({ module, id, details, tabs, children, fullWidth })
11881
11889
  return /* @__PURE__ */ jsxs77(Fragment16, { children: [
11882
11890
  /* @__PURE__ */ jsx131(Header, { className: "bg-sidebar border-0", children: headerChildren }),
11883
11891
  /* @__PURE__ */ jsx131("div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ jsx131("div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ jsxs77("div", { className: "flex w-full flex-col", children: [
11884
- /* @__PURE__ */ jsx131(
11892
+ (!fullWidth || forceHeader) && /* @__PURE__ */ jsx131(
11885
11893
  RoundPageContainerTitle,
11886
11894
  {
11887
11895
  module,
11888
11896
  details,
11889
11897
  showDetails,
11890
- setShowDetails
11898
+ setShowDetails,
11899
+ fullWidth
11891
11900
  }
11892
11901
  ),
11893
11902
  /* @__PURE__ */ jsxs77("div", { className: "flex h-full w-full overflow-hidden", children: [
@@ -13643,14 +13652,30 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
13643
13652
  const showFooter = !!(data.next || data.previous);
13644
13653
  return /* @__PURE__ */ jsx147("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx147("div", { className: cn(`overflow-clip`, fullWidth ? `` : `rounded-md border`), children: /* @__PURE__ */ jsxs86(Table, { children: [
13645
13654
  /* @__PURE__ */ jsxs86(TableHeader, { className: "bg-muted font-semibold", children: [
13646
- props.title && /* @__PURE__ */ jsx147(TableRow, { children: /* @__PURE__ */ jsx147(TableHead, { className: "bg-card text-primary p-4 text-left font-bold", colSpan: tableColumns.length, children: /* @__PURE__ */ jsxs86("div", { className: "flex w-full items-center justify-between gap-x-2", children: [
13647
- /* @__PURE__ */ jsx147("div", { className: "w-full", children: fullWidth ? `` : props.title }),
13648
- (props.functions || props.filters || allowSearch) && /* @__PURE__ */ jsxs86(Fragment21, { children: [
13649
- props.functions,
13650
- props.filters,
13651
- /* @__PURE__ */ jsx147(ContentTableSearch, { data })
13652
- ] })
13653
- ] }) }) }),
13655
+ props.title && /* @__PURE__ */ jsx147(TableRow, { children: /* @__PURE__ */ jsx147(
13656
+ TableHead,
13657
+ {
13658
+ className: "bg-card rounded-t-lg text-primary p-4 text-left font-bold",
13659
+ colSpan: tableColumns.length,
13660
+ children: /* @__PURE__ */ jsxs86("div", { className: "flex w-full items-center justify-between gap-x-2", children: [
13661
+ /* @__PURE__ */ jsx147("div", { className: "w-full", children: fullWidth ? /* @__PURE__ */ jsxs86(
13662
+ "div",
13663
+ {
13664
+ className: "text-muted-foreground flex items-center gap-x-2 text-lg font-light whitespace-nowrap",
13665
+ children: [
13666
+ props.tableGeneratorType.icon && /* @__PURE__ */ jsx147(props.tableGeneratorType.icon, { className: "text-primary h-6 w-6" }),
13667
+ props.title
13668
+ ]
13669
+ }
13670
+ ) : props.title }),
13671
+ (props.functions || props.filters || allowSearch) && /* @__PURE__ */ jsxs86(Fragment21, { children: [
13672
+ props.functions,
13673
+ props.filters,
13674
+ /* @__PURE__ */ jsx147(ContentTableSearch, { data })
13675
+ ] })
13676
+ ] })
13677
+ }
13678
+ ) }),
13654
13679
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx147(TableRow, { children: headerGroup.headers.map((header) => {
13655
13680
  const meta = header.column.columnDef.meta;
13656
13681
  return /* @__PURE__ */ jsx147(TableHead, { className: meta?.className, children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) }, header.id);
@@ -18806,4 +18831,4 @@ export {
18806
18831
  useOAuthClients,
18807
18832
  useOAuthClient
18808
18833
  };
18809
- //# sourceMappingURL=chunk-LSJ6IP34.mjs.map
18834
+ //# sourceMappingURL=chunk-FDTDSTD6.mjs.map