@luminix/mui-cms 0.1.19 → 0.1.21

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/mui-cms.js CHANGED
@@ -5,14 +5,14 @@ import { config as oe, collect as V, app as T, model as ye, App as St, Model as
5
5
  import { jsx as i, jsxs as w, Fragment as B } from "react/jsx-runtime";
6
6
  import { Outlet as wr, useParams as Sr, useNavigate as At, useSearchParams as K, Link as Re, Form as Ar } from "react-router-dom";
7
7
  import { useCollection as mn, PaginationProvider as xr, usePagination as Se, ModelForm as Cr, useApplyReducers as xt, Forms as Er, LuminixProvider as kr } from "@luminix/react";
8
- import { useMediaQuery as Me, Dialog as Ct, DialogTitle as Et, DialogContent as kt, DialogContentText as Tr, DialogActions as Tt, Button as M, Snackbar as Dr, Alert as Or, IconButton as q, AlertTitle as Rr, Box as H, Unstable_Grid2 as Q, Fab as Pr, SpeedDial as vr, SpeedDialIcon as Fr, SpeedDialAction as Lr, ButtonGroup as Br, Popper as Ir, Grow as Mr, Paper as Dt, ClickAwayListener as Nr, MenuList as jr, MenuItem as se, AppBar as gn, Toolbar as Ur, Typography as $, Drawer as bn, Divider as Pe, Autocomplete as qr, TextField as Ae, CircularProgress as _r, Switch as Hr, Stack as N, FormControl as at, InputLabel as it, Select as ve, Badge as Ot, Popover as zr, Link as lt, Collapse as yn, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Je, TableContainer as Wr, Table as Vr, TableHead as $r, TableRow as fe, Checkbox as Rt, TableSortLabel as Kr, Skeleton as Kt, TableBody as Jr, TableFooter as Yr, Tabs as Gr, Tab as Jt, Breadcrumbs as Zr, List as Xr, ListItem as Qr, ListItemButton as eo, ListItemIcon as wn, ListItemText as Sn, Menu as An, Avatar as to, CssBaseline as no } from "@mui/material";
8
+ import { useMediaQuery as Me, Dialog as Ct, DialogTitle as Et, DialogContent as kt, DialogContentText as Tr, DialogActions as Tt, Button as M, Snackbar as Dr, Alert as Or, IconButton as q, AlertTitle as Rr, Box as H, Unstable_Grid2 as Q, Fab as Pr, SpeedDial as vr, SpeedDialIcon as Fr, SpeedDialAction as Lr, ButtonGroup as Br, Popper as Ir, Grow as Mr, Paper as Dt, ClickAwayListener as Nr, MenuList as jr, MenuItem as se, AppBar as gn, Toolbar as Ur, Typography as $, Drawer as bn, Divider as Pe, Autocomplete as qr, TextField as Ae, CircularProgress as _r, Switch as Hr, Stack as N, FormControl as at, InputLabel as it, Select as ve, Badge as Ot, Popover as zr, Link as lt, Collapse as yn, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Ye, TableContainer as Wr, Table as Vr, TableHead as $r, TableRow as fe, Checkbox as Rt, TableSortLabel as Kr, Skeleton as Kt, TableBody as Yr, TableFooter as Jr, Tabs as Gr, Tab as Yt, Breadcrumbs as Zr, List as Xr, ListItem as Qr, ListItemButton as eo, ListItemIcon as wn, ListItemText as Sn, Menu as An, Avatar as to, CssBaseline as no } from "@mui/material";
9
9
  import p, { useContext as xn, useMemo as ro } from "react";
10
10
  import { useTranslation as L, initReactI18next as oo } from "react-i18next";
11
11
  import { Close as Ne, ArrowDropDown as Cn, ChevronLeft as je, ChevronRight as Ue, HighlightOffOutlined as ct, AddCircleOutline as En, FilterList as kn, Menu as Tn, LastPage as Dn, FirstPage as On, Search as ut, SwapVert as Rn, ArrowUpward as Pn, ArrowDownward as vn, MoreVert as Pt, ExpandLess as Fn, ExpandMore as Ln, Add as so, CategoryOutlined as ao, DashboardOutlined as io, PeopleOutlined as lo } from "@mui/icons-material";
12
12
  import { useTheme as vt, styled as Z, createTheme as co, ThemeProvider as uo } from "@mui/material/styles";
13
13
  import { Str as k, Obj as G, DateTime as Fe, Query as Bn, Func as fo, MakeFacade as Ft, Reducible as In, ServiceProvider as Mn } from "@luminix/support";
14
- import Yt from "react-dom";
15
- import Y from "i18next";
14
+ import Jt from "react-dom";
15
+ import J from "i18next";
16
16
  const ho = {
17
17
  open: !1,
18
18
  setOpen: () => {
@@ -28,7 +28,7 @@ const ho = {
28
28
  showBackButton: !1,
29
29
  setShowBackButton: () => {
30
30
  }
31
- }, X = p.createContext(ho), Ye = document.title, po = ({ children: e }) => {
31
+ }, X = p.createContext(ho), Je = document.title, po = ({ children: e }) => {
32
32
  const [t, n] = p.useState(!1), [r, o] = p.useState(""), [s, a] = p.useState(!1), [l, d] = p.useState(!1), u = oe("luminix.cms.layout", {}), c = Me((y) => y.breakpoints.up((u == null ? void 0 : u.breakpoint) || "md")), h = {
33
33
  open: t,
34
34
  setOpen: n,
@@ -41,8 +41,8 @@ const ho = {
41
41
  showBackButton: l,
42
42
  setShowBackButton: d
43
43
  };
44
- return p.useEffect(() => (document.title = r ? `${r} | ${oe("app.name", Ye)}` : oe("app.name", Ye), () => {
45
- document.title = Ye;
44
+ return p.useEffect(() => (document.title = r ? `${r} | ${oe("app.name", Je)}` : oe("app.name", Je), () => {
45
+ document.title = Je;
46
46
  }), [r]), /* @__PURE__ */ i(X.Provider, { value: h, children: e });
47
47
  }, Nn = p.createContext({
48
48
  Model: null
@@ -380,11 +380,11 @@ function Un(e, t) {
380
380
  const { toString: Oo } = Object.prototype, { getPrototypeOf: It } = Object, qe = /* @__PURE__ */ ((e) => (t) => {
381
381
  const n = Oo.call(t);
382
382
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
383
- })(/* @__PURE__ */ Object.create(null)), J = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: he } = Array, we = _e("undefined");
383
+ })(/* @__PURE__ */ Object.create(null)), Y = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: he } = Array, we = _e("undefined");
384
384
  function Ro(e) {
385
385
  return e !== null && !we(e) && e.constructor !== null && !we(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
386
386
  }
387
- const qn = J("ArrayBuffer");
387
+ const qn = Y("ArrayBuffer");
388
388
  function Po(e) {
389
389
  let t;
390
390
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qn(e.buffer), t;
@@ -394,11 +394,11 @@ const vo = _e("string"), _ = _e("function"), _n = _e("number"), He = (e) => e !=
394
394
  return !1;
395
395
  const t = It(e);
396
396
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
397
- }, Lo = J("Date"), Bo = J("File"), Io = J("Blob"), Mo = J("FileList"), No = (e) => He(e) && _(e.pipe), jo = (e) => {
397
+ }, Lo = Y("Date"), Bo = Y("File"), Io = Y("Blob"), Mo = Y("FileList"), No = (e) => He(e) && _(e.pipe), jo = (e) => {
398
398
  let t;
399
399
  return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
400
400
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
401
- }, Uo = J("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(J), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
401
+ }, Uo = Y("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(Y), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
402
402
  function xe(e, t, { allOwnKeys: n = !1 } = {}) {
403
403
  if (e === null || typeof e > "u")
404
404
  return;
@@ -438,7 +438,7 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
438
438
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
439
439
  value: t.prototype
440
440
  }), n && Object.assign(e.prototype, n);
441
- }, Jo = (e, t, n, r) => {
441
+ }, Yo = (e, t, n, r) => {
442
442
  let o, s, a;
443
443
  const l = {};
444
444
  if (t = t || {}, e == null) return t;
@@ -448,7 +448,7 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
448
448
  e = n !== !1 && It(e);
449
449
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
450
450
  return t;
451
- }, Yo = (e, t, n) => {
451
+ }, Jo = (e, t, n) => {
452
452
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
453
453
  const r = e.indexOf(t, n);
454
454
  return r !== -1 && r === n;
@@ -474,12 +474,12 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
474
474
  for (; (n = e.exec(t)) !== null; )
475
475
  r.push(n);
476
476
  return r;
477
- }, es = J("HTMLFormElement"), ts = (e) => e.toLowerCase().replace(
477
+ }, es = Y("HTMLFormElement"), ts = (e) => e.toLowerCase().replace(
478
478
  /[-_\s]([a-z\d])(\w*)/g,
479
479
  function(n, r, o) {
480
480
  return r.toUpperCase() + o;
481
481
  }
482
- ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = J("RegExp"), Wn = (e, t) => {
482
+ ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = Y("RegExp"), Wn = (e, t) => {
483
483
  const n = Object.getOwnPropertyDescriptors(e), r = {};
484
484
  xe(n, (o, s) => {
485
485
  let a;
@@ -539,7 +539,7 @@ const cs = (e) => {
539
539
  return r;
540
540
  };
541
541
  return n(e, 0);
542
- }, us = J("AsyncFunction"), ds = (e) => e && (He(e) || _(e)) && _(e.then) && _(e.catch), $n = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
542
+ }, us = Y("AsyncFunction"), ds = (e) => e && (He(e) || _(e)) && _(e.then) && _(e.catch), $n = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
543
543
  o === ie && s === n && r.length && r.shift()();
544
544
  }, !1), (o) => {
545
545
  r.push(o), ie.postMessage(n, "*");
@@ -577,10 +577,10 @@ const cs = (e) => {
577
577
  trim: Wo,
578
578
  stripBOM: $o,
579
579
  inherits: Ko,
580
- toFlatObject: Jo,
580
+ toFlatObject: Yo,
581
581
  kindOf: qe,
582
- kindOfTest: J,
583
- endsWith: Yo,
582
+ kindOfTest: Y,
583
+ endsWith: Jo,
584
584
  toArray: Go,
585
585
  forEachEntry: Xo,
586
586
  matchAll: Qo,
@@ -630,7 +630,7 @@ f.inherits(C, Error, {
630
630
  };
631
631
  }
632
632
  });
633
- const Kn = C.prototype, Jn = {};
633
+ const Kn = C.prototype, Yn = {};
634
634
  [
635
635
  "ERR_BAD_OPTION_VALUE",
636
636
  "ERR_BAD_OPTION",
@@ -646,9 +646,9 @@ const Kn = C.prototype, Jn = {};
646
646
  "ERR_INVALID_URL"
647
647
  // eslint-disable-next-line func-names
648
648
  ].forEach((e) => {
649
- Jn[e] = { value: e };
649
+ Yn[e] = { value: e };
650
650
  });
651
- Object.defineProperties(C, Jn);
651
+ Object.defineProperties(C, Yn);
652
652
  Object.defineProperty(Kn, "isAxiosError", { value: !0 });
653
653
  C.from = (e, t, n, r, o, s) => {
654
654
  const a = Object.create(Kn);
@@ -660,12 +660,12 @@ const hs = null;
660
660
  function ht(e) {
661
661
  return f.isPlainObject(e) || f.isArray(e);
662
662
  }
663
- function Yn(e) {
663
+ function Jn(e) {
664
664
  return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
665
665
  }
666
666
  function Xt(e, t, n) {
667
667
  return e ? e.concat(t).map(function(o, s) {
668
- return o = Yn(o), !n && s ? "[" + o + "]" : o;
668
+ return o = Jn(o), !n && s ? "[" + o + "]" : o;
669
669
  }).join(n ? "." : "") : t;
670
670
  }
671
671
  function ps(e) {
@@ -701,7 +701,7 @@ function ze(e, t, n) {
701
701
  if (f.endsWith(m, "{}"))
702
702
  m = r ? m : m.slice(0, -2), b = JSON.stringify(b);
703
703
  else if (f.isArray(b) && ps(b) || (f.isFileList(b) || f.endsWith(m, "[]")) && (x = f.toArray(b)))
704
- return m = Yn(m), x.forEach(function(E, P) {
704
+ return m = Jn(m), x.forEach(function(E, P) {
705
705
  !(f.isUndefined(E) || E === null) && t.append(
706
706
  // eslint-disable-next-line no-nested-ternary
707
707
  a === !0 ? Xt([m], P, s) : a === null ? m : m + "[]",
@@ -1536,13 +1536,13 @@ const rr = (e) => {
1536
1536
  }, {
1537
1537
  highWaterMark: 2
1538
1538
  });
1539
- }, We = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", or = We && typeof ReadableStream == "function", Js = We && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), sr = (e, ...t) => {
1539
+ }, We = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", or = We && typeof ReadableStream == "function", Ys = We && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), sr = (e, ...t) => {
1540
1540
  try {
1541
1541
  return !!e(...t);
1542
1542
  } catch {
1543
1543
  return !1;
1544
1544
  }
1545
- }, Ys = or && sr(() => {
1545
+ }, Js = or && sr(() => {
1546
1546
  let e = !1;
1547
1547
  const t = new Request(j.origin, {
1548
1548
  body: new ReadableStream(),
@@ -1575,7 +1575,7 @@ const Gs = async (e) => {
1575
1575
  if (f.isArrayBufferView(e) || f.isArrayBuffer(e))
1576
1576
  return e.byteLength;
1577
1577
  if (f.isURLSearchParams(e) && (e = e + ""), f.isString(e))
1578
- return (await Js(e)).byteLength;
1578
+ return (await Ys(e)).byteLength;
1579
1579
  }, Zs = async (e, t) => {
1580
1580
  const n = f.toFiniteNumber(e.getContentLength());
1581
1581
  return n ?? Gs(t);
@@ -1601,7 +1601,7 @@ const Gs = async (e) => {
1601
1601
  });
1602
1602
  let g;
1603
1603
  try {
1604
- if (d && Ys && n !== "get" && n !== "head" && (g = await Zs(c, r)) !== 0) {
1604
+ if (d && Js && n !== "get" && n !== "head" && (g = await Zs(c, r)) !== 0) {
1605
1605
  let O = new Request(t, {
1606
1606
  method: "POST",
1607
1607
  body: r,
@@ -2089,7 +2089,7 @@ const {
2089
2089
  HttpStatusCode: Vi,
2090
2090
  formToJSON: $i,
2091
2091
  getAdapter: Ki,
2092
- mergeConfig: Ji
2092
+ mergeConfig: Yi
2093
2093
  } = F;
2094
2094
  function ce(e) {
2095
2095
  return (t) => {
@@ -2188,7 +2188,7 @@ const ca = Z(Pr)(({ theme: e }) => ({
2188
2188
  }, b = (m) => {
2189
2189
  l.current && l.current.contains(m.target) || a(!1);
2190
2190
  };
2191
- return e === "fab" ? h.length === 1 ? Yt.createPortal(
2191
+ return e === "fab" ? h.length === 1 ? Jt.createPortal(
2192
2192
  /* @__PURE__ */ i(
2193
2193
  ca,
2194
2194
  {
@@ -2198,7 +2198,7 @@ const ca = Z(Pr)(({ theme: e }) => ({
2198
2198
  }
2199
2199
  ),
2200
2200
  document.body
2201
- ) : Yt.createPortal(
2201
+ ) : Jt.createPortal(
2202
2202
  /* @__PURE__ */ i(
2203
2203
  ua,
2204
2204
  {
@@ -3662,7 +3662,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3662
3662
  Ke,
3663
3663
  {
3664
3664
  value: A,
3665
- control: /* @__PURE__ */ i(Je, {}),
3665
+ control: /* @__PURE__ */ i(Ye, {}),
3666
3666
  label: E
3667
3667
  },
3668
3668
  A
@@ -3682,7 +3682,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3682
3682
  Ke,
3683
3683
  {
3684
3684
  value: "asc",
3685
- control: /* @__PURE__ */ i(Je, {}),
3685
+ control: /* @__PURE__ */ i(Ye, {}),
3686
3686
  label: /* @__PURE__ */ w(B, { children: [
3687
3687
  e("Ascending"),
3688
3688
  /* @__PURE__ */ i(Pn, {})
@@ -3693,7 +3693,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3693
3693
  Ke,
3694
3694
  {
3695
3695
  value: "desc",
3696
- control: /* @__PURE__ */ i(Je, {}),
3696
+ control: /* @__PURE__ */ i(Ye, {}),
3697
3697
  label: /* @__PURE__ */ w(B, { children: [
3698
3698
  e("Descending"),
3699
3699
  /* @__PURE__ */ i(vn, {})
@@ -3800,7 +3800,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3800
3800
  /* @__PURE__ */ i(h, {})
3801
3801
  ] })
3802
3802
  ] });
3803
- }, Ja = () => {
3803
+ }, Ya = () => {
3804
3804
  const {
3805
3805
  massActions: e,
3806
3806
  columns: t
@@ -3827,7 +3827,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3827
3827
  )) }),
3828
3828
  /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(Pt, {}) }) })
3829
3829
  ] }, l)) });
3830
- }, Ya = ({ children: e, ...t }) => {
3830
+ }, Ja = ({ children: e, ...t }) => {
3831
3831
  const n = te(), { t: r } = L(), {
3832
3832
  items: o,
3833
3833
  loading: s,
@@ -3835,8 +3835,8 @@ const qa = Z(Ae)(({ theme: e }) => ({
3835
3835
  } = ae(), {
3836
3836
  ["ModelIndex.StaticActions"]: l
3837
3837
  } = T("cms").getComponents(), d = p.isValidElement(e) ? e : (o || V([])).map(e);
3838
- return /* @__PURE__ */ w(Jr, { ...t, children: [
3839
- s && /* @__PURE__ */ i(Ja, {}),
3838
+ return /* @__PURE__ */ w(Yr, { ...t, children: [
3839
+ s && /* @__PURE__ */ i(Ya, {}),
3840
3840
  d,
3841
3841
  o && !o.count() && /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3842
3842
  /* @__PURE__ */ i($, { children: r("No :model found", {
@@ -3889,7 +3889,7 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3889
3889
  ] }), Qa = ({ item: e, ...t }) => {
3890
3890
  const n = v(), r = At(), o = te(), { massActions: s, columns: a } = ae(), l = p.useMemo(() => a.map((y) => ({
3891
3891
  ...y,
3892
- content: I[`model${k.studly(e.getType())}Get${k.studly(y.key)}Content`](G.get(e.toJson(), y.key), e)
3892
+ content: I[`model${k.studly(e.getType())}Get${k.studly(y.key)}Content`](G.get(e, y.key), e)
3893
3893
  //
3894
3894
  })), [a, e]), {
3895
3895
  ["ModelIndex.Table.ShrinkedCell"]: d,
@@ -3952,7 +3952,7 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3952
3952
  ["ModelIndex.PaginationDetails"]: a,
3953
3953
  ["ModelIndex.PerPageSwitch"]: l
3954
3954
  } = T("cms").getComponents();
3955
- return /* @__PURE__ */ w(Yr, { ...t, children: [
3955
+ return /* @__PURE__ */ w(Jr, { ...t, children: [
3956
3956
  /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ee, { colSpan: n, children: /* @__PURE__ */ w(
3957
3957
  N,
3958
3958
  {
@@ -4059,14 +4059,14 @@ function ni() {
4059
4059
  allowScrollButtonsMobile: !0,
4060
4060
  children: [
4061
4061
  /* @__PURE__ */ i(
4062
- Jt,
4062
+ Yt,
4063
4063
  {
4064
4064
  label: t("All"),
4065
4065
  value: "all"
4066
4066
  }
4067
4067
  ),
4068
4068
  l.map((d) => /* @__PURE__ */ i(
4069
- Jt,
4069
+ Yt,
4070
4070
  {
4071
4071
  label: d.label,
4072
4072
  value: d.value
@@ -4763,7 +4763,7 @@ const Ie = class Ie extends Mn {
4763
4763
  "ModelIndex.StaticActions": da,
4764
4764
  "ModelIndex.Table": $a,
4765
4765
  "ModelIndex.Table.TableHead": Ka,
4766
- "ModelIndex.Table.TableBody": Ya,
4766
+ "ModelIndex.Table.TableBody": Ja,
4767
4767
  "ModelIndex.Table.TableFooter": ei,
4768
4768
  "ModelIndex.Table.TableToolbar": ti,
4769
4769
  "ModelIndex.Table.TableBody.TableRow": Qa,
@@ -4877,7 +4877,7 @@ class mi extends Mn {
4877
4877
  this.translateModelColumns(), this.translateMenuEntries(), this.translateInstanceActions(), this.translateMassActions(), this.translateFormLabels(), this.translateStaticActions();
4878
4878
  }
4879
4879
  initI18Next() {
4880
- Y.use(oo).init({
4880
+ J.use(oo).init({
4881
4881
  lng: re.get("app.locale", "en"),
4882
4882
  fallbackLng: re.get("app.fallback_locale", "en"),
4883
4883
  resources: {
@@ -4903,10 +4903,10 @@ class mi extends Mn {
4903
4903
  "model",
4904
4904
  (t) => class extends t {
4905
4905
  static singular() {
4906
- return Y.t(t.singular());
4906
+ return J.t(t.singular());
4907
4907
  }
4908
4908
  static plural() {
4909
- return Y.t(t.plural());
4909
+ return J.t(t.plural());
4910
4910
  }
4911
4911
  },
4912
4912
  0
@@ -4918,7 +4918,7 @@ class mi extends Mn {
4918
4918
  `model${k.studly(t)}Columns`,
4919
4919
  (n) => n.map((r) => ({
4920
4920
  ...r,
4921
- label: Y.t(r.label)
4921
+ label: J.t(r.label)
4922
4922
  })),
4923
4923
  99
4924
4924
  );
@@ -4928,7 +4928,7 @@ class mi extends Mn {
4928
4928
  "menuItems",
4929
4929
  (t) => {
4930
4930
  const n = t.find((r) => r.key === "dashboard");
4931
- return n && (n.text = Y.t(n.text)), t;
4931
+ return n && (n.text = J.t(n.text)), t;
4932
4932
  },
4933
4933
  5
4934
4934
  );
@@ -4938,7 +4938,7 @@ class mi extends Mn {
4938
4938
  "massActions",
4939
4939
  (t) => t.map((n) => ({
4940
4940
  ...n,
4941
- label: Y.t(n.label)
4941
+ label: J.t(n.label)
4942
4942
  })),
4943
4943
  99
4944
4944
  );
@@ -4948,7 +4948,7 @@ class mi extends Mn {
4948
4948
  "instanceActions",
4949
4949
  (t) => t.map((n) => ({
4950
4950
  ...n,
4951
- label: Y.t(n.label)
4951
+ label: J.t(n.label)
4952
4952
  })),
4953
4953
  99
4954
4954
  );
@@ -4958,7 +4958,7 @@ class mi extends Mn {
4958
4958
  "staticActions",
4959
4959
  (t, n) => {
4960
4960
  const r = t.find(({ key: o }) => o === "create");
4961
- return r && (r.label = Y.t("Create :model", {
4961
+ return r && (r.label = J.t("Create :model", {
4962
4962
  model: n.singular()
4963
4963
  })), t;
4964
4964
  }
@@ -4968,8 +4968,8 @@ class mi extends Mn {
4968
4968
  Er.reducer(
4969
4969
  "getDefaultInputProps",
4970
4970
  (t) => (Array.isArray(t) ? t.map((n) => {
4971
- n != null && n.label && (n.label = Y.t(n.label));
4972
- }) : t != null && t.label && (t.label = Y.t(t.label)), t),
4971
+ n != null && n.label && (n.label = J.t(n.label));
4972
+ }) : t != null && t.label && (t.label = J.t(t.label)), t),
4973
4973
  99
4974
4974
  );
4975
4975
  }
@@ -4983,7 +4983,7 @@ const gi = {
4983
4983
  main: "#fa510c"
4984
4984
  }
4985
4985
  }
4986
- }, bi = (e) => e.make("cms").getRoutes(), Yi = ({
4986
+ }, bi = (e) => e.make("cms").getRoutes(), Ji = ({
4987
4987
  theme: e = gi,
4988
4988
  themeArgs: t,
4989
4989
  providers: n,
@@ -5026,9 +5026,10 @@ export {
5026
5026
  ke as Icon,
5027
5027
  po as LayoutProvider,
5028
5028
  Ve as Link,
5029
- Yi as LuminixCms,
5029
+ Ji as LuminixCms,
5030
5030
  Ge as ModelProvider,
5031
5031
  yo as NotificationProvider,
5032
+ Va as TableProvider,
5032
5033
  mi as i18NextServiceProvider,
5033
5034
  qt as useActionEvent,
5034
5035
  Do as useBackButton,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/mui-cms",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "main": "bundle/mui-cms.js",
6
6
  "module": "dist/mui-cms.js",
package/types/dist.d.ts CHANGED
@@ -6,6 +6,7 @@ import { default as DialogProvider } from './components/providers/DialogProvider
6
6
  import { default as LayoutProvider } from './components/providers/LayoutProvider';
7
7
  import { default as ModelProvider } from './components/providers/ModelProvider';
8
8
  import { default as NotificationProvider } from './components/providers/NotificationProvider';
9
+ import { default as TableProvider } from './components/providers/TableProvider';
9
10
  import { default as useActionEvent } from './hooks/useActionEvent';
10
11
  import { default as useBackButton } from './hooks/useBackButton';
11
12
  import { default as useCurrentModel } from './hooks/useCurrentModel';
@@ -25,4 +26,4 @@ import { default as useTable } from './hooks/useTable';
25
26
  import { default as Cms } from './facades/Cms';
26
27
  import { default as Icon } from './facades/Icon';
27
28
  import { default as Filter } from './facades/Filter';
28
- export { CmsServiceProvider, i18NextServiceProvider, LuminixCms, Link, Cms, Filter, Icon, useActionEvent, useBackButton, useCurrentModel, useDialog, useDisplaceNotifications, useHandleError, useHasSearch, useIsDesktopMode, useLayoutConfig, useMenu, useNotify, usePageTitle, useSearch, useSelection, useSetPageTitle, useTable, DialogProvider, LayoutProvider, ModelProvider, NotificationProvider, };
29
+ export { CmsServiceProvider, i18NextServiceProvider, LuminixCms, Link, Cms, Filter, Icon, useActionEvent, useBackButton, useCurrentModel, useDialog, useDisplaceNotifications, useHandleError, useHasSearch, useIsDesktopMode, useLayoutConfig, useMenu, useNotify, usePageTitle, useSearch, useSelection, useSetPageTitle, useTable, DialogProvider, LayoutProvider, ModelProvider, NotificationProvider, TableProvider, };