@applica-software-guru/react-admin 1.4.0-beta.4 → 1.4.0-beta.5
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/Layout/Provider.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +3 -3
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +19 -12
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +34 -34
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Provider.tsx +2 -0
package/dist/react-admin.es.js
CHANGED
|
@@ -1487,9 +1487,13 @@ const il = "$$material";
|
|
|
1487
1487
|
function We(e, t) {
|
|
1488
1488
|
if (e == null)
|
|
1489
1489
|
return {};
|
|
1490
|
-
var n = {}
|
|
1491
|
-
for (
|
|
1492
|
-
|
|
1490
|
+
var n = {};
|
|
1491
|
+
for (var r in e)
|
|
1492
|
+
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
1493
|
+
if (t.indexOf(r) >= 0)
|
|
1494
|
+
continue;
|
|
1495
|
+
n[r] = e[r];
|
|
1496
|
+
}
|
|
1493
1497
|
return n;
|
|
1494
1498
|
}
|
|
1495
1499
|
/**
|
|
@@ -20414,7 +20418,9 @@ const CU = {
|
|
|
20414
20418
|
}, zQ = un(void 0);
|
|
20415
20419
|
function mU(e) {
|
|
20416
20420
|
var U;
|
|
20417
|
-
const t = Ui()
|
|
20421
|
+
const t = Ui();
|
|
20422
|
+
console.log("authProvider: ", t);
|
|
20423
|
+
const n = pp(), r = _n(), o = Ks(r.breakpoints.down("md")), a = Ks(r.breakpoints.down("lg")), s = Ks(r.breakpoints.down("xl")), { miniDrawer: c, isHorizontalLayout: u, menuOrientation: A, drawerWidth: f } = $n(), p = u(A) && !a, { drawerOpen: C, openDrawer: m } = Wa(), I = Se(() => {
|
|
20418
20424
|
m(!C);
|
|
20419
20425
|
}, [C, m]), [B, v] = je(!1), [w, P] = dp(
|
|
20420
20426
|
hU,
|
|
@@ -26593,19 +26599,19 @@ function Yx(e) {
|
|
|
26593
26599
|
}
|
|
26594
26600
|
var h_ = /* @__PURE__ */ Object.freeze({
|
|
26595
26601
|
__proto__: null,
|
|
26596
|
-
|
|
26602
|
+
addClasses: Wx,
|
|
26603
|
+
classNamesToQuery: Yx,
|
|
26597
26604
|
getElementDocument: Hx,
|
|
26605
|
+
getElementWindow: Vx,
|
|
26598
26606
|
getOptions: zx,
|
|
26599
|
-
|
|
26600
|
-
removeClasses: Ux,
|
|
26601
|
-
classNamesToQuery: Yx
|
|
26607
|
+
removeClasses: Ux
|
|
26602
26608
|
}), Fo = Vx, Kg = Hx, C_ = zx, Lo = Wx, No = Ux, yn = Yx, _c = (
|
|
26603
26609
|
/** @class */
|
|
26604
26610
|
function() {
|
|
26605
26611
|
function e(t, n) {
|
|
26606
26612
|
n === void 0 && (n = {});
|
|
26607
26613
|
var r = this;
|
|
26608
|
-
if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {
|
|
26614
|
+
if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {
|
|
26609
26615
|
}, this.onWindowResize = function() {
|
|
26610
26616
|
}, this.onStopScrolling = function() {
|
|
26611
26617
|
}, this.onMouseEntered = function() {
|
|
@@ -26644,8 +26650,9 @@ var h_ = /* @__PURE__ */ Object.freeze({
|
|
|
26644
26650
|
r.draggedAxis === "x" && r.isRtl && (W = !((B = e.getRtlHelpers()) === null || B === void 0) && B.isScrollingToNegative ? -W : W), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = W;
|
|
26645
26651
|
}
|
|
26646
26652
|
}, this.onEndDrag = function(o) {
|
|
26653
|
+
r.isDragging = !1;
|
|
26647
26654
|
var a = Kg(r.el), s = Fo(r.el);
|
|
26648
|
-
o.preventDefault(), o.stopPropagation(), No(r.el, r.classNames.dragging), a.removeEventListener("mousemove", r.drag, !0), a.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = s.setTimeout(function() {
|
|
26655
|
+
o.preventDefault(), o.stopPropagation(), No(r.el, r.classNames.dragging), r.onStopScrolling(), a.removeEventListener("mousemove", r.drag, !0), a.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = s.setTimeout(function() {
|
|
26649
26656
|
a.removeEventListener("click", r.preventClick, !0), a.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
26650
26657
|
});
|
|
26651
26658
|
}, this.preventClick = function(o) {
|
|
@@ -26775,7 +26782,7 @@ var h_ = /* @__PURE__ */ Object.freeze({
|
|
|
26775
26782
|
}, e.prototype.showScrollbar = function(t) {
|
|
26776
26783
|
t === void 0 && (t = "y"), this.axis[t].isOverflowing && !this.axis[t].scrollbar.isVisible && (Lo(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !0);
|
|
26777
26784
|
}, e.prototype.hideScrollbar = function(t) {
|
|
26778
|
-
t === void 0 && (t = "y"), this.axis[t].isOverflowing && this.axis[t].scrollbar.isVisible && (No(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !1);
|
|
26785
|
+
t === void 0 && (t = "y"), !this.isDragging && this.axis[t].isOverflowing && this.axis[t].scrollbar.isVisible && (No(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !1);
|
|
26779
26786
|
}, e.prototype.hideNativeScrollbar = function() {
|
|
26780
26787
|
this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px");
|
|
26781
26788
|
}, e.prototype.onMouseMoveForAxis = function(t) {
|
|
@@ -26786,7 +26793,7 @@ var h_ = /* @__PURE__ */ Object.freeze({
|
|
|
26786
26793
|
t === void 0 && (t = "y"), No(this.axis[t].track.el, this.classNames.hover), No(this.axis[t].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t);
|
|
26787
26794
|
}, e.prototype.onDragStart = function(t, n) {
|
|
26788
26795
|
var r;
|
|
26789
|
-
n === void 0 && (n = "y");
|
|
26796
|
+
n === void 0 && (n = "y"), this.isDragging = !0;
|
|
26790
26797
|
var o = Kg(this.el), a = Fo(this.el), s = this.axis[n].scrollbar, c = n === "y" ? t.pageY : t.pageX;
|
|
26791
26798
|
this.axis[n].dragOffset = c - (((r = s.rect) === null || r === void 0 ? void 0 : r[this.axis[n].offsetAttr]) || 0), this.draggedAxis = n, Lo(this.el, this.classNames.dragging), o.addEventListener("mousemove", this.drag, !0), o.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (o.addEventListener("click", this.preventClick, !0), o.addEventListener("dblclick", this.preventClick, !0)) : (a.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
26792
26799
|
}, e.prototype.onTrackClick = function(t, n) {
|