@luminix/mui-cms 0.2.12 → 0.2.13

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
@@ -1,15 +1,15 @@
1
1
  var br = Object.defineProperty;
2
2
  var yr = (e, t, n) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var $e = (e, t, n) => yr(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { Str as k, Obj as J, DateTime as Oe, Query as gn, Func as wr, MakeFacade as St, Reducible as bn, ServiceProvider as yn } from "@luminix/support";
5
- import { config as oe, collect as W, app as T, model as we, App as xt, Model as Re, Route as Sr, Config as re } from "@luminix/core";
3
+ var ke = (e, t, n) => yr(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { Str as k, Obj as J, DateTime as Re, Query as gn, Func as wr, MakeFacade as St, Reducible as bn, ServiceProvider as yn } from "@luminix/support";
5
+ import { config as oe, collect as W, app as T, model as we, App as xt, Model as Pe, Route as Sr, Config as re } from "@luminix/core";
6
6
  import { jsx as i, jsxs as w, Fragment as B } from "react/jsx-runtime";
7
- import { Outlet as xr, useParams as Ar, useNavigate as At, useSearchParams as G, Link as Pe, Form as Cr } from "react-router-dom";
7
+ import { Outlet as xr, useParams as Ar, useNavigate as At, useSearchParams as G, Link as ve, Form as Cr } from "react-router-dom";
8
8
  import { useCollection as wn, PaginationProvider as Er, usePagination as xe, ModelForm as kr, useApplyReducers as Ct, Forms as Tr, LuminixProvider as Dr } from "@luminix/react";
9
- import { useMediaQuery as Me, Dialog as Et, DialogTitle as kt, DialogContent as Tt, DialogContentText as Or, TextField as fe, DialogActions as Dt, Button as M, Snackbar as Rr, Alert as Pr, IconButton as q, AlertTitle as vr, Box as H, Unstable_Grid2 as Q, Fab as Fr, SpeedDial as Lr, SpeedDialIcon as Br, SpeedDialAction as Ir, ButtonGroup as Mr, Popper as Nr, Grow as jr, Paper as Ot, ClickAwayListener as Ur, MenuList as qr, MenuItem as se, AppBar as Sn, Toolbar as _r, Typography as $, Drawer as xn, Divider as ve, Autocomplete as Hr, CircularProgress as zr, Switch as Vr, Stack as N, FormControl as at, InputLabel as it, Select as Fe, Badge as Rt, Popover as Wr, Link as lt, Collapse as An, TableCell as ee, RadioGroup as Kt, FormControlLabel as Ke, Radio as Ye, TableContainer as $r, Table as Kr, TableHead as Yr, TableRow as he, Checkbox as Pt, TableSortLabel as Jr, Skeleton as Yt, TableBody as Gr, TableFooter as Zr, Tabs as Xr, Tab as Jt, Breadcrumbs as Qr, List as eo, ListItem as to, ListItemButton as no, ListItemIcon as Cn, ListItemText as En, Menu as kn, Avatar as ro, CssBaseline as oo } from "@mui/material";
9
+ import { useMediaQuery as Ne, Dialog as Et, DialogTitle as kt, DialogContent as Tt, DialogContentText as Or, TextField as fe, DialogActions as Dt, Button as M, Snackbar as Rr, Alert as Pr, IconButton as q, AlertTitle as vr, Box as H, Unstable_Grid2 as Q, Fab as Fr, SpeedDial as Lr, SpeedDialIcon as Br, SpeedDialAction as Ir, ButtonGroup as Mr, Popper as Nr, Grow as jr, Paper as Ot, ClickAwayListener as Ur, MenuList as qr, MenuItem as se, AppBar as Sn, Toolbar as _r, Typography as $, Drawer as xn, Divider as Fe, Autocomplete as Hr, CircularProgress as zr, Switch as Vr, Stack as N, FormControl as at, InputLabel as it, Select as Le, Badge as Rt, Popover as Wr, Link as lt, Collapse as An, TableCell as ee, RadioGroup as Kt, FormControlLabel as Ke, Radio as Ye, TableContainer as $r, Table as Kr, TableHead as Yr, TableRow as he, Checkbox as Pt, TableSortLabel as Jr, Skeleton as Yt, TableBody as Gr, TableFooter as Zr, Tabs as Xr, Tab as Jt, Breadcrumbs as Qr, List as eo, ListItem as to, ListItemButton as no, ListItemIcon as Cn, ListItemText as En, Menu as kn, Avatar as ro, CssBaseline as oo } from "@mui/material";
10
10
  import m, { useContext as Tn, useMemo as so } from "react";
11
11
  import { useTranslation as L, initReactI18next as ao } from "react-i18next";
12
- import { Close as Ne, ArrowDropDown as Dn, ChevronLeft as je, ChevronRight as Ue, HighlightOffOutlined as ct, AddCircleOutline as On, FilterList as Rn, Menu as Pn, LastPage as vn, FirstPage as Fn, Search as ut, SwapVert as Ln, ArrowUpward as Bn, ArrowDownward as In, MoreVert as vt, ExpandLess as Mn, ExpandMore as Nn, Add as io, CategoryOutlined as lo, DashboardOutlined as co, PeopleOutlined as uo } from "@mui/icons-material";
12
+ import { Close as je, ArrowDropDown as Dn, ChevronLeft as Ue, ChevronRight as qe, HighlightOffOutlined as ct, AddCircleOutline as On, FilterList as Rn, Menu as Pn, LastPage as vn, FirstPage as Fn, Search as ut, SwapVert as Ln, ArrowUpward as Bn, ArrowDownward as In, MoreVert as vt, ExpandLess as Mn, ExpandMore as Nn, Add as io, CategoryOutlined as lo, DashboardOutlined as co, PeopleOutlined as uo } from "@mui/icons-material";
13
13
  import { useTheme as Ft, styled as Z, createTheme as fo, ThemeProvider as ho } from "@mui/material/styles";
14
14
  import Gt from "react-dom";
15
15
  import Y from "i18next";
@@ -29,7 +29,7 @@ const po = {
29
29
  setShowBackButton: () => {
30
30
  }
31
31
  }, X = m.createContext(po), Je = document.title, mo = ({ children: e }) => {
32
- const [t, n] = m.useState(!1), [r, o] = m.useState(""), [s, a] = m.useState(!1), [l, d] = m.useState(!1), c = oe("luminix.cms.layout", {}), u = Me((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), h = {
32
+ const [t, n] = m.useState(!1), [r, o] = m.useState(""), [s, a] = m.useState(!1), [l, d] = m.useState(!1), c = oe("luminix.cms.layout", {}), u = Ne((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), h = {
33
33
  open: t,
34
34
  setOpen: n,
35
35
  layout: c,
@@ -199,7 +199,7 @@ const Lt = m.createContext({
199
199
  },
200
200
  x
201
201
  )),
202
- /* @__PURE__ */ i(q, { "aria-label": "close", color: "inherit", size: "small", onClick: p, children: /* @__PURE__ */ i(Ne, {}) }, "close")
202
+ /* @__PURE__ */ i(q, { "aria-label": "close", color: "inherit", size: "small", onClick: p, children: /* @__PURE__ */ i(je, {}) }, "close")
203
203
  ],
204
204
  children: [
205
205
  u.title && /* @__PURE__ */ i(vr, { children: u.title }),
@@ -211,7 +211,7 @@ const Lt = m.createContext({
211
211
  )
212
212
  ] });
213
213
  }, So = ({ children: e }) => {
214
- const t = Me("(prefers-color-scheme: dark)");
214
+ const t = Ne("(prefers-color-scheme: dark)");
215
215
  return /* @__PURE__ */ i(
216
216
  wo,
217
217
  {
@@ -399,10 +399,10 @@ function qn(e, t) {
399
399
  return e.apply(t, arguments);
400
400
  };
401
401
  }
402
- const { toString: Ro } = Object.prototype, { getPrototypeOf: It } = Object, qe = /* @__PURE__ */ ((e) => (t) => {
402
+ const { toString: Ro } = Object.prototype, { getPrototypeOf: It } = Object, _e = /* @__PURE__ */ ((e) => (t) => {
403
403
  const n = Ro.call(t);
404
404
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
405
- })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: pe } = Array, Se = _e("undefined");
405
+ })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), He = (e) => (t) => typeof t === e, { isArray: pe } = Array, Se = He("undefined");
406
406
  function Po(e) {
407
407
  return e !== null && !Se(e) && e.constructor !== null && !Se(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
408
408
  }
@@ -411,14 +411,14 @@ function vo(e) {
411
411
  let t;
412
412
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && _n(e.buffer), t;
413
413
  }
414
- const Fo = _e("string"), _ = _e("function"), Hn = _e("number"), He = (e) => e !== null && typeof e == "object", Lo = (e) => e === !0 || e === !1, Te = (e) => {
415
- if (qe(e) !== "object")
414
+ const Fo = He("string"), _ = He("function"), Hn = He("number"), ze = (e) => e !== null && typeof e == "object", Lo = (e) => e === !0 || e === !1, De = (e) => {
415
+ if (_e(e) !== "object")
416
416
  return !1;
417
417
  const t = It(e);
418
418
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
419
- }, Bo = K("Date"), Io = K("File"), Mo = K("Blob"), No = K("FileList"), jo = (e) => He(e) && _(e.pipe), Uo = (e) => {
419
+ }, Bo = K("Date"), Io = K("File"), Mo = K("Blob"), No = K("FileList"), jo = (e) => ze(e) && _(e.pipe), Uo = (e) => {
420
420
  let t;
421
- return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
421
+ return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
422
422
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
423
423
  }, qo = K("URLSearchParams"), [_o, Ho, zo, Vo] = ["ReadableStream", "Request", "Response", "Headers"].map(K), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
424
424
  function Ae(e, t, { allOwnKeys: n = !1 } = {}) {
@@ -448,7 +448,7 @@ const ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
448
448
  function ft() {
449
449
  const { caseless: e } = Vn(this) && this || {}, t = {}, n = (r, o) => {
450
450
  const s = e && zn(t, o) || o;
451
- Te(t[s]) && Te(r) ? t[s] = ft(t[s], r) : Te(r) ? t[s] = ft({}, r) : pe(r) ? t[s] = r.slice() : t[s] = r;
451
+ De(t[s]) && De(r) ? t[s] = ft(t[s], r) : De(r) ? t[s] = ft({}, r) : pe(r) ? t[s] = r.slice() : t[s] = r;
452
452
  };
453
453
  for (let r = 0, o = arguments.length; r < o; r++)
454
454
  arguments[r] && Ae(arguments[r], n);
@@ -546,7 +546,7 @@ function cs(e) {
546
546
  }
547
547
  const us = (e) => {
548
548
  const t = new Array(10), n = (r, o) => {
549
- if (He(r)) {
549
+ if (ze(r)) {
550
550
  if (t.indexOf(r) >= 0)
551
551
  return;
552
552
  if (!("toJSON" in r)) {
@@ -561,7 +561,7 @@ const us = (e) => {
561
561
  return r;
562
562
  };
563
563
  return n(e, 0);
564
- }, ds = K("AsyncFunction"), fs = (e) => e && (He(e) || _(e)) && _(e.then) && _(e.catch), Kn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
564
+ }, ds = K("AsyncFunction"), fs = (e) => e && (ze(e) || _(e)) && _(e.then) && _(e.catch), Kn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
565
565
  o === ie && s === n && r.length && r.shift()();
566
566
  }, !1), (o) => {
567
567
  r.push(o), ie.postMessage(n, "*");
@@ -577,8 +577,8 @@ const us = (e) => {
577
577
  isString: Fo,
578
578
  isNumber: Hn,
579
579
  isBoolean: Lo,
580
- isObject: He,
581
- isPlainObject: Te,
580
+ isObject: ze,
581
+ isPlainObject: De,
582
582
  isReadableStream: _o,
583
583
  isRequest: Ho,
584
584
  isResponse: zo,
@@ -600,7 +600,7 @@ const us = (e) => {
600
600
  stripBOM: Ko,
601
601
  inherits: Yo,
602
602
  toFlatObject: Jo,
603
- kindOf: qe,
603
+ kindOf: _e,
604
604
  kindOfTest: K,
605
605
  endsWith: Go,
606
606
  toArray: Zo,
@@ -696,7 +696,7 @@ function ms(e) {
696
696
  const gs = f.toFlatObject(f, {}, null, function(t) {
697
697
  return /^is[A-Z]/.test(t);
698
698
  });
699
- function ze(e, t, n) {
699
+ function Ve(e, t, n) {
700
700
  if (!f.isObject(e))
701
701
  throw new TypeError("target must be an object");
702
702
  t = t || new FormData(), n = f.toFlatObject(n, {
@@ -772,7 +772,7 @@ function en(e) {
772
772
  });
773
773
  }
774
774
  function Mt(e, t) {
775
- this._pairs = [], e && ze(e, this, t);
775
+ this._pairs = [], e && Ve(e, this, t);
776
776
  }
777
777
  const Zn = Mt.prototype;
778
778
  Zn.append = function(t, n) {
@@ -879,7 +879,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Es
879
879
  ...xs
880
880
  };
881
881
  function Ts(e, t) {
882
- return ze(e, new j.classes.URLSearchParams(), Object.assign({
882
+ return Ve(e, new j.classes.URLSearchParams(), Object.assign({
883
883
  visitor: function(n, r, o, s) {
884
884
  return j.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
885
885
  }
@@ -941,7 +941,7 @@ const Ce = {
941
941
  return Ts(t, this.formSerializer).toString();
942
942
  if ((l = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
943
943
  const d = this.env && this.env.FormData;
944
- return ze(
944
+ return Ve(
945
945
  l ? { "files[]": t } : t,
946
946
  d && new d(),
947
947
  this.formSerializer
@@ -1020,8 +1020,8 @@ const Ps = f.toObjectSet([
1020
1020
  function be(e) {
1021
1021
  return e && String(e).trim().toLowerCase();
1022
1022
  }
1023
- function De(e) {
1024
- return e === !1 || e == null ? e : f.isArray(e) ? e.map(De) : String(e);
1023
+ function Oe(e) {
1024
+ return e === !1 || e == null ? e : f.isArray(e) ? e.map(Oe) : String(e);
1025
1025
  }
1026
1026
  function Fs(e) {
1027
1027
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -1066,7 +1066,7 @@ let U = class {
1066
1066
  if (!u)
1067
1067
  throw new Error("header name must be a non-empty string");
1068
1068
  const h = f.findKey(o, u);
1069
- (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || d] = De(l));
1069
+ (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || d] = Oe(l));
1070
1070
  }
1071
1071
  const a = (l, d) => f.forEach(l, (c, u) => s(c, u, d));
1072
1072
  if (f.isPlainObject(t) || t instanceof this.constructor)
@@ -1129,11 +1129,11 @@ let U = class {
1129
1129
  return f.forEach(this, (o, s) => {
1130
1130
  const a = f.findKey(r, s);
1131
1131
  if (a) {
1132
- n[a] = De(o), delete n[s];
1132
+ n[a] = Oe(o), delete n[s];
1133
1133
  return;
1134
1134
  }
1135
1135
  const l = t ? Bs(s) : String(s).trim();
1136
- l !== s && delete n[s], n[l] = De(o), r[l] = !0;
1136
+ l !== s && delete n[s], n[l] = Oe(o), r[l] = !0;
1137
1137
  }), this;
1138
1138
  }
1139
1139
  concat(...t) {
@@ -1242,7 +1242,7 @@ function js(e, t) {
1242
1242
  }, r - h)));
1243
1243
  }, () => o && a(o)];
1244
1244
  }
1245
- const Le = (e, t, n = 3) => {
1245
+ const Be = (e, t, n = 3) => {
1246
1246
  let r = 0;
1247
1247
  const o = Ns(50, 250);
1248
1248
  return js((s) => {
@@ -1468,7 +1468,7 @@ const or = (e) => {
1468
1468
  )), g = null;
1469
1469
  }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && f.forEach(a.toJSON(), function(P, O) {
1470
1470
  g.setRequestHeader(O, P);
1471
- }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Le(c, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Le(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1471
+ }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Be(c, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Be(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1472
1472
  g && (r(!E || E.type ? new me(null, e, g) : E), g.abort(), g = null);
1473
1473
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1474
1474
  const x = Ms(o.url);
@@ -1558,7 +1558,7 @@ const or = (e) => {
1558
1558
  }, {
1559
1559
  highWaterMark: 2
1560
1560
  });
1561
- }, Ve = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", sr = Ve && typeof ReadableStream == "function", Js = Ve && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ar = (e, ...t) => {
1561
+ }, We = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", sr = 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())), ar = (e, ...t) => {
1562
1562
  try {
1563
1563
  return !!e(...t);
1564
1564
  } catch {
@@ -1574,12 +1574,12 @@ const or = (e) => {
1574
1574
  }
1575
1575
  }).headers.has("Content-Type");
1576
1576
  return e && !t;
1577
- }), ln = 64 * 1024, mt = sr && ar(() => f.isReadableStream(new Response("").body)), Be = {
1577
+ }), ln = 64 * 1024, mt = sr && ar(() => f.isReadableStream(new Response("").body)), Ie = {
1578
1578
  stream: mt && ((e) => e.body)
1579
1579
  };
1580
- Ve && ((e) => {
1580
+ We && ((e) => {
1581
1581
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1582
- !Be[t] && (Be[t] = f.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1582
+ !Ie[t] && (Ie[t] = f.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1583
1583
  throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r);
1584
1584
  });
1585
1585
  });
@@ -1601,7 +1601,7 @@ const Zs = async (e) => {
1601
1601
  }, Xs = async (e, t) => {
1602
1602
  const n = f.toFiniteNumber(e.getContentLength());
1603
1603
  return n ?? Zs(t);
1604
- }, Qs = Ve && (async (e) => {
1604
+ }, Qs = We && (async (e) => {
1605
1605
  let {
1606
1606
  url: t,
1607
1607
  method: n,
@@ -1632,7 +1632,7 @@ const Zs = async (e) => {
1632
1632
  if (f.isFormData(r) && (R = O.headers.get("content-type")) && u.setContentType(R), O.body) {
1633
1633
  const [D, V] = rn(
1634
1634
  g,
1635
- Le(on(d))
1635
+ Be(on(d))
1636
1636
  );
1637
1637
  r = an(O.body, ln, D, V);
1638
1638
  }
@@ -1657,7 +1657,7 @@ const Zs = async (e) => {
1657
1657
  });
1658
1658
  const R = f.toFiniteNumber(x.headers.get("content-length")), [D, V] = l && rn(
1659
1659
  R,
1660
- Le(on(l), !0)
1660
+ Be(on(l), !0)
1661
1661
  ) || [];
1662
1662
  x = new Response(
1663
1663
  an(x.body, ln, D, () => {
@@ -1667,7 +1667,7 @@ const Zs = async (e) => {
1667
1667
  );
1668
1668
  }
1669
1669
  c = c || "text";
1670
- let P = await Be[f.findKey(Be, c) || "text"](x, e);
1670
+ let P = await Ie[f.findKey(Ie, c) || "text"](x, e);
1671
1671
  return !E && p && p(), await new Promise((O, R) => {
1672
1672
  nr(O, R, {
1673
1673
  data: P,
@@ -2081,7 +2081,7 @@ F.CanceledError = me;
2081
2081
  F.CancelToken = na;
2082
2082
  F.isCancel = tr;
2083
2083
  F.VERSION = lr;
2084
- F.toFormData = ze;
2084
+ F.toFormData = Ve;
2085
2085
  F.AxiosError = C;
2086
2086
  F.Cancel = F.CanceledError;
2087
2087
  F.all = function(t) {
@@ -2396,13 +2396,13 @@ function ga(e) {
2396
2396
  return /* @__PURE__ */ i(
2397
2397
  q,
2398
2398
  {
2399
- component: Pe,
2399
+ component: ve,
2400
2400
  to: -1,
2401
2401
  edge: "start",
2402
2402
  color: "inherit",
2403
2403
  "aria-label": "back",
2404
2404
  ...e,
2405
- children: /* @__PURE__ */ i(je, {})
2405
+ children: /* @__PURE__ */ i(Ue, {})
2406
2406
  }
2407
2407
  );
2408
2408
  }
@@ -2464,8 +2464,8 @@ const fn = (e, t) => ({
2464
2464
  },
2465
2465
  ...e,
2466
2466
  children: [
2467
- /* @__PURE__ */ i(wa, { style: { height: l }, children: /* @__PURE__ */ i(q, { onClick: o, children: t.direction === "ltr" ? /* @__PURE__ */ i(je, {}) : /* @__PURE__ */ i(Ue, {}) }) }),
2468
- /* @__PURE__ */ i(ve, {}),
2467
+ /* @__PURE__ */ i(wa, { style: { height: l }, children: /* @__PURE__ */ i(q, { onClick: o, children: t.direction === "ltr" ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(qe, {}) }) }),
2468
+ /* @__PURE__ */ i(Fe, {}),
2469
2469
  /* @__PURE__ */ i(H, { sx: { flexGrow: 1, overflowY: "auto", overflowX: "hidden" }, children: /* @__PURE__ */ i(
2470
2470
  d,
2471
2471
  {
@@ -2711,7 +2711,7 @@ const pn = async (e, t, n) => {
2711
2711
  {
2712
2712
  type: r.getInputType(o),
2713
2713
  label: c,
2714
- value: Oe.toDateTimeLocal(Oe.parse(u)),
2714
+ value: Re.toDateTimeLocal(Re.parse(u)),
2715
2715
  onChange: h,
2716
2716
  size: "small",
2717
2717
  sx: { width: n ? d : "100%" }
@@ -2873,7 +2873,7 @@ const pn = async (e, t, n) => {
2873
2873
  }
2874
2874
  ),
2875
2875
  /* @__PURE__ */ i(
2876
- Fe,
2876
+ Le,
2877
2877
  {
2878
2878
  labelId: "filter-column-select-label",
2879
2879
  id: "filter-column-select",
@@ -2925,7 +2925,7 @@ const pn = async (e, t, n) => {
2925
2925
  }
2926
2926
  ),
2927
2927
  /* @__PURE__ */ i(
2928
- Fe,
2928
+ Le,
2929
2929
  {
2930
2930
  labelId: "filter-operator-select-label",
2931
2931
  id: "filter-operator-select",
@@ -3001,7 +3001,7 @@ const pn = async (e, t, n) => {
3001
3001
  },
3002
3002
  `row_${u.key}`
3003
3003
  ),
3004
- !n && /* @__PURE__ */ i(ve, { sx: {
3004
+ !n && /* @__PURE__ */ i(Fe, { sx: {
3005
3005
  mt: S ? 0.625 : 1.25,
3006
3006
  mb: S ? 0.75 : 1.5,
3007
3007
  ...S && {
@@ -3075,7 +3075,7 @@ function va(e, t) {
3075
3075
  break;
3076
3076
  }
3077
3077
  case "datetime-local": {
3078
- Array.isArray(s) ? c = s.map((u) => Oe.toDateTimeLocal(u)) : c = Oe.toDateTimeLocal(s);
3078
+ Array.isArray(s) ? c = s.map((u) => Re.toDateTimeLocal(u)) : c = Re.toDateTimeLocal(s);
3079
3079
  break;
3080
3080
  }
3081
3081
  case "boolean": {
@@ -3206,7 +3206,7 @@ const Fa = (e) => {
3206
3206
  {
3207
3207
  onClick: b,
3208
3208
  sx: { position: "absolute", right: 8, top: 8 },
3209
- children: /* @__PURE__ */ i(Ne, {})
3209
+ children: /* @__PURE__ */ i(je, {})
3210
3210
  }
3211
3211
  )
3212
3212
  ] }),
@@ -3304,7 +3304,7 @@ function Ba(e) {
3304
3304
  children: [
3305
3305
  /* @__PURE__ */ i(it, { id: "mass-actions-select-label", children: d }),
3306
3306
  /* @__PURE__ */ w(
3307
- Fe,
3307
+ Le,
3308
3308
  {
3309
3309
  labelId: "mass-actions-select-label",
3310
3310
  id: "mass-actions-select",
@@ -3360,10 +3360,10 @@ const Ia = () => {
3360
3360
  children: /* @__PURE__ */ i(Pn, {})
3361
3361
  }
3362
3362
  );
3363
- }, We = m.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
3363
+ }, $e = m.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
3364
3364
  lt,
3365
3365
  {
3366
- component: Pe,
3366
+ component: ve,
3367
3367
  to: e,
3368
3368
  ref: r,
3369
3369
  sx: { textDecoration: "none" },
@@ -3371,10 +3371,10 @@ const Ia = () => {
3371
3371
  children: t
3372
3372
  }
3373
3373
  ));
3374
- We.displayName = "Link";
3374
+ $e.displayName = "Link";
3375
3375
  const Ma = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */ i(B, { children: {
3376
- "&laquo; Previous": /* @__PURE__ */ i(je, {}),
3377
- "Next &raquo;": /* @__PURE__ */ i(Ue, {}),
3376
+ "&laquo; Previous": /* @__PURE__ */ i(Ue, {}),
3377
+ "Next &raquo;": /* @__PURE__ */ i(qe, {}),
3378
3378
  "Last &raquo;": /* @__PURE__ */ i(vn, {}),
3379
3379
  "&laquo; First": /* @__PURE__ */ i(Fn, {})
3380
3380
  }[e] || e }) : /* @__PURE__ */ i(B, { children: e }), Na = ({ variant: e = "default", ...t }) => {
@@ -3460,7 +3460,7 @@ const Ma = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3460
3460
  borderRadius: "50%"
3461
3461
  },
3462
3462
  disabled: !A.url,
3463
- component: We,
3463
+ component: $e,
3464
3464
  to: A.url,
3465
3465
  children: /* @__PURE__ */ i(Ma, { label: A.label })
3466
3466
  },
@@ -3508,7 +3508,7 @@ const Ma = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3508
3508
  ":"
3509
3509
  ] }),
3510
3510
  /* @__PURE__ */ i(
3511
- Fe,
3511
+ Le,
3512
3512
  {
3513
3513
  value: t,
3514
3514
  onChange: r,
@@ -3668,7 +3668,7 @@ const _a = Z(fe)(({ theme: e }) => ({
3668
3668
  {
3669
3669
  onClick: p,
3670
3670
  sx: { position: "absolute", right: 8, top: 8 },
3671
- children: /* @__PURE__ */ i(Ne, {})
3671
+ children: /* @__PURE__ */ i(je, {})
3672
3672
  }
3673
3673
  )
3674
3674
  ] }),
@@ -3682,7 +3682,7 @@ const _a = Z(fe)(({ theme: e }) => ({
3682
3682
  },
3683
3683
  children: [
3684
3684
  /* @__PURE__ */ i($, { variant: "caption", children: e("Column") }),
3685
- /* @__PURE__ */ i(ve, {}),
3685
+ /* @__PURE__ */ i(Fe, {}),
3686
3686
  W(r).whereStrict("sortable", "!=", !1).map(({ key: x, label: E }) => /* @__PURE__ */ i(
3687
3687
  Ke,
3688
3688
  {
@@ -3696,7 +3696,7 @@ const _a = Z(fe)(({ theme: e }) => ({
3696
3696
  }
3697
3697
  ),
3698
3698
  /* @__PURE__ */ i($, { variant: "caption", children: e("Direction") }),
3699
- /* @__PURE__ */ i(ve, {}),
3699
+ /* @__PURE__ */ i(Fe, {}),
3700
3700
  /* @__PURE__ */ w(
3701
3701
  Kt,
3702
3702
  {
@@ -4116,7 +4116,7 @@ function oi(e) {
4116
4116
  underline: "hover",
4117
4117
  color: "inherit",
4118
4118
  to: "/",
4119
- component: Pe,
4119
+ component: ve,
4120
4120
  children: oe("app.name", "Laravel")
4121
4121
  }
4122
4122
  ),
@@ -4126,7 +4126,7 @@ function oi(e) {
4126
4126
  underline: "hover",
4127
4127
  color: "inherit",
4128
4128
  to: o,
4129
- component: Pe,
4129
+ component: ve,
4130
4130
  children: r
4131
4131
  },
4132
4132
  s
@@ -4188,7 +4188,7 @@ const pr = ({
4188
4188
  }
4189
4189
  n && n(P);
4190
4190
  },
4191
- ...x ? { to: x, component: We } : {},
4191
+ ...x ? { to: x, component: $e } : {},
4192
4192
  children: [
4193
4193
  /* @__PURE__ */ w(
4194
4194
  Cn,
@@ -4290,7 +4290,7 @@ const pr = ({
4290
4290
  n && n(p);
4291
4291
  },
4292
4292
  ...b ? {
4293
- component: We,
4293
+ component: $e,
4294
4294
  to: b
4295
4295
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4296
4296
  } : {},
@@ -4308,7 +4308,7 @@ const pr = ({
4308
4308
  }
4309
4309
  ),
4310
4310
  /* @__PURE__ */ i(En, { sx: { opacity: e ? 0 : 1 }, children: d }),
4311
- !e && y && /* @__PURE__ */ i(Ue, {})
4311
+ !e && y && /* @__PURE__ */ i(qe, {})
4312
4312
  ]
4313
4313
  },
4314
4314
  h
@@ -4455,11 +4455,17 @@ class ai {
4455
4455
  return "icon";
4456
4456
  }
4457
4457
  }
4458
- const ke = St(ai, xt);
4458
+ const Te = St(ai, xt);
4459
4459
  class ii {
4460
+ constructor() {
4461
+ ke(this, "components", {});
4462
+ }
4463
+ booted() {
4464
+ this.components = this.componentMap({});
4465
+ }
4460
4466
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4461
4467
  getComponents() {
4462
- return this.componentMap({});
4468
+ return this.components;
4463
4469
  }
4464
4470
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4465
4471
  getComponent(t) {
@@ -4602,8 +4608,8 @@ class ci {
4602
4608
  const ui = bn(ci);
4603
4609
  class di {
4604
4610
  constructor() {
4605
- $e(this, "icons", []);
4606
- Re.reducer(
4611
+ ke(this, "icons", []);
4612
+ Pe.reducer(
4607
4613
  "model",
4608
4614
  (t) => {
4609
4615
  const n = this;
@@ -4617,7 +4623,7 @@ class di {
4617
4623
  );
4618
4624
  }
4619
4625
  forModel(t, n) {
4620
- Re.reducer(`model${k.studly(t)}`, (r) => {
4626
+ Pe.reducer(`model${k.studly(t)}`, (r) => {
4621
4627
  const o = this;
4622
4628
  return class extends r {
4623
4629
  static icon() {
@@ -4690,7 +4696,7 @@ const fi = ({ item: e }) => {
4690
4696
  ] });
4691
4697
  }, hi = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2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M6ot++oAAAAASUVORK5CYII=";
4692
4698
  function mi() {
4693
- const e = Me("(prefers-color-scheme: dark)"), t = fr();
4699
+ const e = Ne("(prefers-color-scheme: dark)"), t = fr();
4694
4700
  return /* @__PURE__ */ i(
4695
4701
  ro,
4696
4702
  {
@@ -4705,12 +4711,14 @@ function mi() {
4705
4711
  }
4706
4712
  );
4707
4713
  }
4708
- const Ie = class Ie extends yn {
4714
+ const Me = class Me extends yn {
4709
4715
  register() {
4710
4716
  this.app.singleton("cms", () => new li()), this.app.singleton("filter", () => new ui()), this.app.singleton("icon", () => new di()), this.registerIcons();
4711
4717
  }
4712
4718
  boot() {
4713
- this.bootComponents(), this.bootRoutes(), this.bootMenu(), this.bootMassActions(), this.bootInstanceActions(), this.bootStaticActions(), Ie.applyUserDefaults && this.bootDefaultUserModifiers();
4719
+ this.bootComponents(), this.bootRoutes(), this.bootMenu(), this.bootMassActions(), this.bootInstanceActions(), this.bootStaticActions(), Me.applyUserDefaults && this.bootDefaultUserModifiers(), this.app.on("booted", () => {
4720
+ this.app.make("cms").booted();
4721
+ });
4714
4722
  }
4715
4723
  // private addIconsToModels() {
4716
4724
  // Model.reducer(
@@ -4729,16 +4737,16 @@ const Ie = class Ie extends yn {
4729
4737
  // );
4730
4738
  // }
4731
4739
  registerIcons() {
4732
- ke.registerIcon({
4740
+ Te.registerIcon({
4733
4741
  Add: io,
4734
4742
  AddCircleOutline: On,
4735
4743
  ArrowDownward: In,
4736
4744
  ArrowDropDown: Dn,
4737
4745
  ArrowUpward: Bn,
4738
4746
  CategoryOutlined: lo,
4739
- ChevronLeft: je,
4740
- ChevronRight: Ue,
4741
- Close: Ne,
4747
+ ChevronLeft: Ue,
4748
+ ChevronRight: qe,
4749
+ Close: je,
4742
4750
  DashboardOutlined: co,
4743
4751
  ExpandLess: Mn,
4744
4752
  ExpandMore: Nn,
@@ -4751,7 +4759,7 @@ const Ie = class Ie extends yn {
4751
4759
  PeopleOutlined: uo,
4752
4760
  Search: ut,
4753
4761
  SwapVert: Ln
4754
- }), ke.forModel("user", "PeopleOutlined");
4762
+ }), Te.forModel("user", "PeopleOutlined");
4755
4763
  }
4756
4764
  bootRoutes() {
4757
4765
  I.reducer("cmsRoutes", xo, 0), Sr.reducer("domRouterOptions", (t) => ({
@@ -4801,7 +4809,7 @@ const Ie = class Ie extends yn {
4801
4809
  key: "dashboard",
4802
4810
  text: "Dashboard",
4803
4811
  to: "/",
4804
- icon: ke.render("DashboardOutlined")
4812
+ icon: Te.render("DashboardOutlined")
4805
4813
  },
4806
4814
  ...Object.entries(n).sort(([r], [o]) => r.localeCompare(o)).map(([r, o]) => ({
4807
4815
  key: r,
@@ -4883,13 +4891,13 @@ const Ie = class Ie extends yn {
4883
4891
  key: "create",
4884
4892
  label: `Create ${n.singular()}`,
4885
4893
  callback: si.create(n),
4886
- icon: ke.render("Add")
4894
+ icon: Te.render("Add")
4887
4895
  }
4888
4896
  ], 0);
4889
4897
  }
4890
4898
  };
4891
- $e(Ie, "applyUserDefaults", !0);
4892
- let wt = Ie;
4899
+ ke(Me, "applyUserDefaults", !0);
4900
+ let wt = Me;
4893
4901
  class gi extends yn {
4894
4902
  register() {
4895
4903
  this.app.once("booting", () => {
@@ -4922,7 +4930,7 @@ class gi extends yn {
4922
4930
  });
4923
4931
  }
4924
4932
  translateModelNames() {
4925
- Re.reducer(
4933
+ Pe.reducer(
4926
4934
  "model",
4927
4935
  (t) => class extends t {
4928
4936
  static singular() {
@@ -4936,7 +4944,7 @@ class gi extends yn {
4936
4944
  );
4937
4945
  }
4938
4946
  translateModelColumns() {
4939
- for (const t of Object.keys(Re.make()))
4947
+ for (const t of Object.keys(Pe.make()))
4940
4948
  I.reducer(
4941
4949
  `model${k.studly(t)}Columns`,
4942
4950
  (n) => n.map((r) => ({
@@ -5017,7 +5025,7 @@ const bi = {
5017
5025
  providers: n,
5018
5026
  ...r
5019
5027
  }) => {
5020
- const o = Me("(prefers-color-scheme: dark)"), s = m.useMemo(() => fo({
5028
+ const o = Ne("(prefers-color-scheme: dark)"), s = m.useMemo(() => fo({
5021
5029
  ...e,
5022
5030
  palette: {
5023
5031
  ...e.palette,
@@ -5051,9 +5059,9 @@ export {
5051
5059
  wt as CmsServiceProvider,
5052
5060
  bo as DialogProvider,
5053
5061
  Zi as Filter,
5054
- ke as Icon,
5062
+ Te as Icon,
5055
5063
  mo as LayoutProvider,
5056
- We as Link,
5064
+ $e as Link,
5057
5065
  Gi as LuminixCms,
5058
5066
  Ge as ModelProvider,
5059
5067
  wo as NotificationProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/mui-cms",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "main": "bundle/mui-cms.js",
6
6
  "module": "dist/mui-cms.js",