photon-grid-react 0.0.3 → 1.0.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.
- package/App.d.ts +2 -0
- package/index.cjs +9 -14
- package/index.d.ts +2 -0
- package/index.js +72 -244
- package/main.d.ts +0 -0
- package/package.json +6 -25
- package/photon-grid.d.ts +27 -0
- package/react-renderer-adapter.d.ts +41 -0
package/index.d.ts
ADDED
package/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createElement as e, useEffect as t, useRef as n } from "react";
|
|
2
2
|
import { GridCore as r, GridEventType as i } from "photon-grid-core";
|
|
3
3
|
import { createPortal as a } from "react-dom";
|
|
4
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
5
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
6
|
+
var s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
6
7
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
7
8
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
8
|
-
}),
|
|
9
|
+
}), l = /* @__PURE__ */ s(((e) => {
|
|
9
10
|
function t(e, t) {
|
|
10
11
|
var n = e.length;
|
|
11
12
|
e.push(t);
|
|
@@ -202,7 +203,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
202
203
|
}
|
|
203
204
|
};
|
|
204
205
|
};
|
|
205
|
-
})),
|
|
206
|
+
})), u = /* @__PURE__ */ s(((e) => {
|
|
206
207
|
process.env.NODE_ENV !== "production" && (function() {
|
|
207
208
|
function t() {
|
|
208
209
|
if (x = !1, re) {
|
|
@@ -399,10 +400,10 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
399
400
|
};
|
|
400
401
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
401
402
|
})();
|
|
402
|
-
})),
|
|
403
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
404
|
-
})),
|
|
405
|
-
var t =
|
|
403
|
+
})), d = /* @__PURE__ */ s(((e, t) => {
|
|
404
|
+
process.env.NODE_ENV === "production" ? t.exports = l() : t.exports = u();
|
|
405
|
+
})), f = /* @__PURE__ */ s(((e) => {
|
|
406
|
+
var t = d(), n = c("react"), r = c("react-dom");
|
|
406
407
|
function i(e) {
|
|
407
408
|
var t = "https://react.dev/errors/" + e;
|
|
408
409
|
if (1 < arguments.length) {
|
|
@@ -425,7 +426,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
425
426
|
}
|
|
426
427
|
return t.tag === 3 ? n : null;
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function s(e) {
|
|
429
430
|
if (e.tag === 13) {
|
|
430
431
|
var t = e.memoizedState;
|
|
431
432
|
if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;
|
|
@@ -439,7 +440,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
439
440
|
}
|
|
440
441
|
return null;
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
+
function u(e) {
|
|
443
444
|
if (o(e) !== e) throw Error(i(188));
|
|
444
445
|
}
|
|
445
446
|
function f(e) {
|
|
@@ -461,8 +462,8 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
461
462
|
}
|
|
462
463
|
if (a.child === s.child) {
|
|
463
464
|
for (s = a.child; s;) {
|
|
464
|
-
if (s === n) return
|
|
465
|
-
if (s === r) return
|
|
465
|
+
if (s === n) return u(a), e;
|
|
466
|
+
if (s === r) return u(a), t;
|
|
466
467
|
s = s.sibling;
|
|
467
468
|
}
|
|
468
469
|
throw Error(i(188));
|
|
@@ -7453,7 +7454,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
7453
7454
|
else {
|
|
7454
7455
|
var n = t.tag;
|
|
7455
7456
|
if (n === 13) {
|
|
7456
|
-
if (e =
|
|
7457
|
+
if (e = s(t), e !== null) return e;
|
|
7457
7458
|
e = null;
|
|
7458
7459
|
} else if (n === 31) {
|
|
7459
7460
|
if (e = l(t), e !== null) return e;
|
|
@@ -7600,7 +7601,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
7600
7601
|
var n = o(t);
|
|
7601
7602
|
if (n !== null) {
|
|
7602
7603
|
if (t = n.tag, t === 13) {
|
|
7603
|
-
if (t =
|
|
7604
|
+
if (t = s(n), t !== null) {
|
|
7604
7605
|
e.blockedOn = t, ht(e.priority, function() {
|
|
7605
7606
|
vp(n);
|
|
7606
7607
|
});
|
|
@@ -7778,7 +7779,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
7778
7779
|
var r = !1, o = "", s = rc, c = ic, l = ac, u = null;
|
|
7779
7780
|
return n != null && (!0 === n.unstable_strictMode && (r = !0), n.identifierPrefix !== void 0 && (o = n.identifierPrefix), n.onUncaughtError !== void 0 && (s = n.onUncaughtError), n.onCaughtError !== void 0 && (c = n.onCaughtError), n.onRecoverableError !== void 0 && (l = n.onRecoverableError), n.formState !== void 0 && (u = n.formState)), t = fp(e, 1, !0, t, n ?? null, r, o, u, s, c, l, Kp), t.context = pp(null), n = t.current, r = Tu(), r = ft(r), o = Xa(r), o.callback = null, Za(n, o, r), n = r, t.current.lanes = n, st(t, n), gd(t), e[yt] = t.current, Fd(e), new Jp(t);
|
|
7780
7781
|
}, e.version = "19.2.7";
|
|
7781
|
-
})),
|
|
7782
|
+
})), p = /* @__PURE__ */ s(((e) => {
|
|
7782
7783
|
process.env.NODE_ENV !== "production" && (function() {
|
|
7783
7784
|
function t(e, t) {
|
|
7784
7785
|
for (e = e.memoizedState; e !== null && 0 < t;) e = e.next, t--;
|
|
@@ -7810,13 +7811,13 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
7810
7811
|
function o() {
|
|
7811
7812
|
return !1;
|
|
7812
7813
|
}
|
|
7813
|
-
function
|
|
7814
|
+
function s() {
|
|
7814
7815
|
return null;
|
|
7815
7816
|
}
|
|
7816
7817
|
function l() {
|
|
7817
7818
|
console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks");
|
|
7818
7819
|
}
|
|
7819
|
-
function
|
|
7820
|
+
function u() {
|
|
7820
7821
|
console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
|
|
7821
7822
|
}
|
|
7822
7823
|
function f() {}
|
|
@@ -10077,7 +10078,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
10077
10078
|
e_ || (e = Hr(e, 0), e.serverProps = null, t !== null && (t = yd(t), e.serverTail.push(t)));
|
|
10078
10079
|
}
|
|
10079
10080
|
function Gr(e) {
|
|
10080
|
-
var t = 1 < arguments.length && arguments[1] !== void 0
|
|
10081
|
+
var t = 1 < arguments.length && arguments[1] !== void 0 && arguments[1], n = "", r = t_;
|
|
10081
10082
|
throw r !== null && (t_ = null, n = Wt(r)), Zr(Pr(Error("Hydration failed because the server rendered " + (t ? "text" : "HTML") + " didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + n), e)), i_;
|
|
10082
10083
|
}
|
|
10083
10084
|
function Kr(e) {
|
|
@@ -12097,19 +12098,19 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
12097
12098
|
return oi(t), Fy = -1, Iy = e !== null && e.type !== t.type, t.updateQueue = null, n = Da(t, r, n, i), Ea(e, t), r = ka(), e !== null && !ob ? (Aa(e, t, a), Rs(e, t, a)) : (G && r && Lr(t), t.flags |= 1, ps(e, t, n, a), t.child);
|
|
12098
12099
|
}
|
|
12099
12100
|
function Es(e, t, n, r, i) {
|
|
12100
|
-
switch (
|
|
12101
|
+
switch (s(t)) {
|
|
12101
12102
|
case !1:
|
|
12102
12103
|
var a = t.stateNode, o = new t.type(t.memoizedProps, a.context).state;
|
|
12103
12104
|
a.updater.enqueueSetState(a, o, null);
|
|
12104
12105
|
break;
|
|
12105
12106
|
case !0:
|
|
12106
12107
|
t.flags |= 128, t.flags |= 65536, a = Error("Simulated error coming from DevTools");
|
|
12107
|
-
var
|
|
12108
|
-
if (t.lanes |=
|
|
12109
|
-
|
|
12108
|
+
var c = i & -i;
|
|
12109
|
+
if (t.lanes |= c, o = Ub, o === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
|
|
12110
|
+
c = us(c), ds(c, o, t, Pr(a, t)), oa(t, c);
|
|
12110
12111
|
}
|
|
12111
12112
|
if (oi(t), t.stateNode === null) {
|
|
12112
|
-
if (o = Pg, a = n.contextType, "contextType" in n && a !== null && (a === void 0 || a.$$typeof !== Lf) && !eb.has(n) && (eb.add(n),
|
|
12113
|
+
if (o = Pg, a = n.contextType, "contextType" in n && a !== null && (a === void 0 || a.$$typeof !== Lf) && !eb.has(n) && (eb.add(n), c = a === void 0 ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof a == "object" ? a.$$typeof === If ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(a).join(", ") + "}." : " However, it is set to a " + typeof a + ".", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", S(n) || "Component", c)), typeof a == "object" && a && (o = si(a)), a = new n(r, o), t.mode & Rg) {
|
|
12113
12114
|
Me(!0);
|
|
12114
12115
|
try {
|
|
12115
12116
|
a = new n(r, o);
|
|
@@ -12118,38 +12119,38 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
12118
12119
|
}
|
|
12119
12120
|
}
|
|
12120
12121
|
if (o = t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = nb, t.stateNode = a, a._reactInternals = t, a._reactInternalInstance = Gy, typeof n.getDerivedStateFromProps == "function" && o === null && (o = S(n) || "Component", qy.has(o) || (qy.add(o), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", o, a.state === null ? "null" : "undefined", o))), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function") {
|
|
12121
|
-
var l =
|
|
12122
|
-
if (typeof a.componentWillMount == "function" && !0 !== a.componentWillMount.__suppressDeprecationWarning ? o = "componentWillMount" : typeof a.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof a.componentWillReceiveProps == "function" && !0 !== a.componentWillReceiveProps.__suppressDeprecationWarning ?
|
|
12122
|
+
var l = c = o = null;
|
|
12123
|
+
if (typeof a.componentWillMount == "function" && !0 !== a.componentWillMount.__suppressDeprecationWarning ? o = "componentWillMount" : typeof a.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof a.componentWillReceiveProps == "function" && !0 !== a.componentWillReceiveProps.__suppressDeprecationWarning ? c = "componentWillReceiveProps" : typeof a.UNSAFE_componentWillReceiveProps == "function" && (c = "UNSAFE_componentWillReceiveProps"), typeof a.componentWillUpdate == "function" && !0 !== a.componentWillUpdate.__suppressDeprecationWarning ? l = "componentWillUpdate" : typeof a.UNSAFE_componentWillUpdate == "function" && (l = "UNSAFE_componentWillUpdate"), o !== null || c !== null || l !== null) {
|
|
12123
12124
|
a = S(n) || "Component";
|
|
12124
12125
|
var u = typeof n.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
12125
|
-
Yy.has(a) || (Yy.add(a), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", a, u, o === null ? "" : "\n " + o,
|
|
12126
|
+
Yy.has(a) || (Yy.add(a), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", a, u, o === null ? "" : "\n " + o, c === null ? "" : "\n " + c, l === null ? "" : "\n " + l));
|
|
12126
12127
|
}
|
|
12127
12128
|
}
|
|
12128
|
-
a = t.stateNode, o = S(n) || "Component", a.render || (n.prototype && typeof n.prototype.render == "function" ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", o) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", o)), !a.getInitialState || a.getInitialState.isReactClassApproved || a.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", o), a.getDefaultProps && !a.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", o), a.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", o), n.childContextTypes && !$y.has(n) && ($y.add(n), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", o)), n.contextTypes && !Qy.has(n) && (Qy.add(n), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", o)), typeof a.componentShouldUpdate == "function" && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", o), n.prototype && n.prototype.isPureReactComponent && a.shouldComponentUpdate !== void 0 && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", S(n) || "A pure component"), typeof a.componentDidUnmount == "function" && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", o), typeof a.componentDidReceiveProps == "function" && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", o), typeof a.componentWillRecieveProps == "function" && console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", o), typeof a.UNSAFE_componentWillRecieveProps == "function" && console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", o),
|
|
12129
|
+
a = t.stateNode, o = S(n) || "Component", a.render || (n.prototype && typeof n.prototype.render == "function" ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", o) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", o)), !a.getInitialState || a.getInitialState.isReactClassApproved || a.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", o), a.getDefaultProps && !a.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", o), a.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", o), n.childContextTypes && !$y.has(n) && ($y.add(n), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", o)), n.contextTypes && !Qy.has(n) && (Qy.add(n), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", o)), typeof a.componentShouldUpdate == "function" && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", o), n.prototype && n.prototype.isPureReactComponent && a.shouldComponentUpdate !== void 0 && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", S(n) || "A pure component"), typeof a.componentDidUnmount == "function" && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", o), typeof a.componentDidReceiveProps == "function" && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", o), typeof a.componentWillRecieveProps == "function" && console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", o), typeof a.UNSAFE_componentWillRecieveProps == "function" && console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", o), c = a.props !== r, a.props !== void 0 && c && console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", o), a.defaultProps && console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", o, o), typeof a.getSnapshotBeforeUpdate != "function" || typeof a.componentDidUpdate == "function" || Jy.has(n) || (Jy.add(n), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", S(n))), typeof a.getDerivedStateFromProps == "function" && console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", o), typeof a.getDerivedStateFromError == "function" && console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", o), typeof n.getSnapshotBeforeUpdate == "function" && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", o), (c = a.state) && (typeof c != "object" || qf(c)) && console.error("%s.state: must be set to an object or null", o), typeof a.getChildContext == "function" && typeof n.childContextTypes != "object" && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", o), a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, ta(t), o = n.contextType, a.context = typeof o == "object" && o ? si(o) : Pg, a.state === r && (o = S(n) || "Component", Xy.has(o) || (Xy.add(o), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", o))), t.mode & Rg && lv.recordLegacyContextWarning(t, a), lv.recordUnsafeLifecycleWarnings(t, a), a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (es(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", C(t) || "Component"), nb.enqueueReplaceState(a, a.state, null)), ca(t, r, a, i), sa(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & zg) !== U && (t.flags |= 134217728), a = !0;
|
|
12129
12130
|
} else if (e === null) {
|
|
12130
12131
|
a = t.stateNode;
|
|
12131
12132
|
var d = t.memoizedProps;
|
|
12132
|
-
|
|
12133
|
+
c = rs(n, d), a.props = c;
|
|
12133
12134
|
var f = a.context;
|
|
12134
12135
|
l = n.contextType, o = Pg, typeof l == "object" && l && (o = si(l)), u = n.getDerivedStateFromProps, l = typeof u == "function" || typeof a.getSnapshotBeforeUpdate == "function", d = t.pendingProps !== d, l || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (d || f !== o) && ns(t, a, r, o), ny = !1;
|
|
12135
12136
|
var p = t.memoizedState;
|
|
12136
|
-
a.state = p, ca(t, r, a, i), sa(), f = t.memoizedState, d || p !== f || ny ? (typeof u == "function" && (es(t, n, u, r), f = t.memoizedState), (
|
|
12137
|
+
a.state = p, ca(t, r, a, i), sa(), f = t.memoizedState, d || p !== f || ny ? (typeof u == "function" && (es(t, n, u, r), f = t.memoizedState), (c = ny || ts(t, n, c, r, p, f, o)) ? (l || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & zg) !== U && (t.flags |= 134217728)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & zg) !== U && (t.flags |= 134217728), t.memoizedProps = r, t.memoizedState = f), a.props = r, a.state = f, a.context = o, a = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & zg) !== U && (t.flags |= 134217728), a = !1);
|
|
12137
12138
|
} else {
|
|
12138
|
-
a = t.stateNode, na(e, t), o = t.memoizedProps, l = rs(n, o), a.props = l, u = t.pendingProps, p = a.context, f = n.contextType,
|
|
12139
|
+
a = t.stateNode, na(e, t), o = t.memoizedProps, l = rs(n, o), a.props = l, u = t.pendingProps, p = a.context, f = n.contextType, c = Pg, typeof f == "object" && f && (c = si(f)), d = n.getDerivedStateFromProps, (f = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== u || p !== c) && ns(t, a, r, c), ny = !1, p = t.memoizedState, a.state = p, ca(t, r, a, i), sa();
|
|
12139
12140
|
var m = t.memoizedState;
|
|
12140
|
-
o !== u || p !== m || ny || e !== null && e.dependencies !== null && ai(e.dependencies) ? (typeof d == "function" && (es(t, n, d, r), m = t.memoizedState), (l = ny || ts(t, n, l, r, p, m,
|
|
12141
|
+
o !== u || p !== m || ny || e !== null && e.dependencies !== null && ai(e.dependencies) ? (typeof d == "function" && (es(t, n, d, r), m = t.memoizedState), (l = ny || ts(t, n, l, r, p, m, c) || e !== null && e.dependencies !== null && ai(e.dependencies)) ? (f || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, m, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, m, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = m), a.props = r, a.state = m, a.context = c, a = l) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), a = !1);
|
|
12141
12142
|
}
|
|
12142
|
-
if (
|
|
12143
|
-
if (
|
|
12144
|
-
else if (n = Sv(
|
|
12143
|
+
if (c = a, Cs(e, t), o = (t.flags & 128) != 0, c || o) {
|
|
12144
|
+
if (c = t.stateNode, we(t), o && typeof n.getDerivedStateFromError != "function") n = null, C_ = -1;
|
|
12145
|
+
else if (n = Sv(c), t.mode & Rg) {
|
|
12145
12146
|
Me(!0);
|
|
12146
12147
|
try {
|
|
12147
|
-
Sv(
|
|
12148
|
+
Sv(c);
|
|
12148
12149
|
} finally {
|
|
12149
12150
|
Me(!1);
|
|
12150
12151
|
}
|
|
12151
12152
|
}
|
|
12152
|
-
t.flags |= 1, e !== null && o ? (t.child = Xv(t, e.child, null, i), t.child = Xv(t, null, n, i)) : ps(e, t, n, i), t.memoizedState =
|
|
12153
|
+
t.flags |= 1, e !== null && o ? (t.child = Xv(t, e.child, null, i), t.child = Xv(t, null, n, i)) : ps(e, t, n, i), t.memoizedState = c.state, e = t.child;
|
|
12153
12154
|
} else e = Rs(e, t, i);
|
|
12154
12155
|
return i = t.stateNode, a && i.props !== r && (db || console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", C(t) || "a component"), db = !0), e;
|
|
12155
12156
|
}
|
|
@@ -12458,7 +12459,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
12458
12459
|
case 26: return Cs(e, t), e === null ? (n = jd(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : G || (n = t.type, e = t.pendingProps, r = le(tp.current), r = Bu(r).createElement(n), r[Kp] = t, r[qp] = e, Eu(r, n, e), nt(r), t.stateNode = r) : t.memoizedState = jd(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
|
|
12459
12460
|
case 27: return de(t), e === null && G && (r = le(tp.current), i = T(), r = t.stateNode = Ed(t.type, t.pendingProps, r, i, !1), e_ || (i = Iu(r, t.type, t.pendingProps, i), i !== null && (Hr(t, 0).serverProps = i)), Qg = t, r_ = !0, i = $g, ed(t.type) ? (tC = i, $g = vd(r.firstChild)) : $g = i), ps(e, t, t.pendingProps.children, n), Cs(e, t), e === null && (t.flags |= 4194304), t.child;
|
|
12460
12461
|
case 5: return e === null && G && (a = T(), r = Xt(t.type, a.ancestorInfo), i = $g, (o = !i) || (o = fd(i, t.type, t.pendingProps, r_), o === null ? a = !1 : (t.stateNode = o, e_ || (a = Iu(o, t.type, t.pendingProps, a), a !== null && (Hr(t, 0).serverProps = a)), Qg = t, $g = vd(o.firstChild), r_ = !1, a = !0), o = !a), o && (r && Wr(t, i), Gr(t))), de(t), i = t.type, a = t.pendingProps, o = e === null ? null : e.memoizedProps, r = a.children, Uu(i, a) ? r = null : o !== null && Uu(i, o) && (t.flags |= 32), t.memoizedState !== null && (i = Ta(e, t, Oa, null, null, n), yC._currentValue = i), Cs(e, t), ps(e, t, r, n), t.child;
|
|
12461
|
-
case 6: return e === null && G && (n = t.pendingProps, e = T(), r = e.ancestorInfo.current, n = r == null
|
|
12462
|
+
case 6: return e === null && G && (n = t.pendingProps, e = T(), r = e.ancestorInfo.current, n = r == null || Zt(n, r.tag, e.ancestorInfo.implicitRootScope), e = $g, (r = !e) || (r = pd(e, t.pendingProps, r_), r === null ? r = !1 : (t.stateNode = r, Qg = t, $g = null, r = !0), r = !r), r && (n && Wr(t, e), Gr(t))), null;
|
|
12462
12463
|
case 13: return js(e, t, n);
|
|
12463
12464
|
case 4: return ue(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Xv(t, null, r, n) : ps(e, t, r, n), t.child;
|
|
12464
12465
|
case 11: return ms(e, t, t.type, t.pendingProps, n);
|
|
@@ -12974,7 +12975,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
12974
12975
|
}
|
|
12975
12976
|
}
|
|
12976
12977
|
function xc(e, t) {
|
|
12977
|
-
return t.tag === 31 ? (t = t.memoizedState, e.memoizedState !== null && t === null) : t.tag === 13 ? (e = e.memoizedState, t = t.memoizedState, e !== null && e.dehydrated !== null && (t === null || t.dehydrated === null)) : t.tag === 3
|
|
12978
|
+
return t.tag === 31 ? (t = t.memoizedState, e.memoizedState !== null && t === null) : t.tag === 13 ? (e = e.memoizedState, t = t.memoizedState, e !== null && e.dehydrated !== null && (t === null || t.dehydrated === null)) : t.tag === 3 && e.memoizedState.isDehydrated && (t.flags & 256) == 0;
|
|
12978
12979
|
}
|
|
12979
12980
|
function Sc(e, t) {
|
|
12980
12981
|
if (e = e.containerInfo, GS = IC, e = Un(e), Wn(e)) {
|
|
@@ -16785,7 +16786,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
16785
16786
|
e[Jp] && (e._reactRootContainer ? console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.") : console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."));
|
|
16786
16787
|
}
|
|
16787
16788
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
16788
|
-
var Df =
|
|
16789
|
+
var Df = d(), Of = c("react"), kf = c("react-dom"), z = Object.assign, Af = Symbol.for("react.element"), jf = Symbol.for("react.transitional.element"), Mf = Symbol.for("react.portal"), Nf = Symbol.for("react.fragment"), Pf = Symbol.for("react.strict_mode"), Ff = Symbol.for("react.profiler"), If = Symbol.for("react.consumer"), Lf = Symbol.for("react.context"), Rf = Symbol.for("react.forward_ref"), zf = Symbol.for("react.suspense"), Bf = Symbol.for("react.suspense_list"), Vf = Symbol.for("react.memo"), Hf = Symbol.for("react.lazy"), Uf = Symbol.for("react.activity"), Wf = Symbol.for("react.memo_cache_sentinel"), Gf = Symbol.iterator, Kf = Symbol.for("react.client.reference"), qf = Array.isArray, B = Of.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Jf = kf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Yf = Object.freeze({
|
|
16789
16790
|
pending: !1,
|
|
16790
16791
|
data: null,
|
|
16791
16792
|
method: null,
|
|
@@ -18379,7 +18380,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
18379
18380
|
}
|
|
18380
18381
|
}, Hy = {
|
|
18381
18382
|
readContext: function(e) {
|
|
18382
|
-
return
|
|
18383
|
+
return u(), si(e);
|
|
18383
18384
|
},
|
|
18384
18385
|
use: function(e) {
|
|
18385
18386
|
return l(), Fa(e);
|
|
@@ -18471,7 +18472,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
18471
18472
|
}
|
|
18472
18473
|
}, Uy = {
|
|
18473
18474
|
readContext: function(e) {
|
|
18474
|
-
return
|
|
18475
|
+
return u(), si(e);
|
|
18475
18476
|
},
|
|
18476
18477
|
use: function(e) {
|
|
18477
18478
|
return l(), Fa(e);
|
|
@@ -18563,7 +18564,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
18563
18564
|
}
|
|
18564
18565
|
}, Wy = {
|
|
18565
18566
|
readContext: function(e) {
|
|
18566
|
-
return
|
|
18567
|
+
return u(), si(e);
|
|
18567
18568
|
},
|
|
18568
18569
|
use: function(e) {
|
|
18569
18570
|
return l(), Fa(e);
|
|
@@ -18876,7 +18877,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
18876
18877
|
var t = Re(), n = gr(e, t);
|
|
18877
18878
|
n !== null && al(n, e, t);
|
|
18878
18879
|
}, PC = function(e) {
|
|
18879
|
-
|
|
18880
|
+
s = e;
|
|
18880
18881
|
}, FC = function(e) {
|
|
18881
18882
|
o = e;
|
|
18882
18883
|
};
|
|
@@ -18938,7 +18939,7 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
18938
18939
|
return n != null && (!0 === n.unstable_strictMode && (r = !0), n.identifierPrefix !== void 0 && (i = n.identifierPrefix), n.onUncaughtError !== void 0 && (a = n.onUncaughtError), n.onCaughtError !== void 0 && (o = n.onCaughtError), n.onRecoverableError !== void 0 && (s = n.onRecoverableError), n.formState !== void 0 && (c = n.formState)), t = Qd(e, 1, !0, t, n ?? null, r, i, c, a, o, s, Cf), t.context = $d(null), n = t.current, r = rl(n), r = Ge(r), i = ra(r), i.callback = null, ia(n, i, r), pi(r, "hydrateRoot()", null), n = r, t.current.lanes = n, Be(t, n), P(t), e[Jp] = t.current, uu(e), new Tf(t);
|
|
18939
18940
|
}, e.version = "19.2.7", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
18940
18941
|
})();
|
|
18941
|
-
})),
|
|
18942
|
+
})), m = (/* @__PURE__ */ s(((e, t) => {
|
|
18942
18943
|
function n() {
|
|
18943
18944
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
18944
18945
|
if (process.env.NODE_ENV !== "production") throw Error("^_^");
|
|
@@ -18949,19 +18950,19 @@ var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
18949
18950
|
}
|
|
18950
18951
|
}
|
|
18951
18952
|
}
|
|
18952
|
-
process.env.NODE_ENV === "production" ? (n(), t.exports =
|
|
18953
|
+
process.env.NODE_ENV === "production" ? (n(), t.exports = f()) : t.exports = p();
|
|
18953
18954
|
})))();
|
|
18954
|
-
function
|
|
18955
|
-
return e ? typeof e == "object" && "kind" in e && e.kind === "component" || typeof e == "object" && e && "$$typeof" in e ? !0 : typeof e == "function"
|
|
18955
|
+
function h(e) {
|
|
18956
|
+
return e ? typeof e == "object" && "kind" in e && e.kind === "component" || typeof e == "object" && e && "$$typeof" in e ? !0 : typeof e == "function" && /^[A-Z]/.test(e.name ?? "") : !1;
|
|
18956
18957
|
}
|
|
18957
|
-
var
|
|
18958
|
+
var g = class {
|
|
18958
18959
|
root;
|
|
18959
18960
|
container;
|
|
18960
18961
|
entries = /* @__PURE__ */ new Map();
|
|
18961
18962
|
observer;
|
|
18962
18963
|
pendingFlush = !1;
|
|
18963
18964
|
observe(e) {
|
|
18964
|
-
this.observer || (this.container = document.createElement("div"), this.container.className = "photon-grid-react__portal", this.container.style.position = "absolute", this.container.style.inset = "0", this.container.style.pointerEvents = "none", this.container.style.overflow = "hidden", e.appendChild(this.container), this.root = (0,
|
|
18965
|
+
this.observer || (this.container = document.createElement("div"), this.container.className = "photon-grid-react__portal", this.container.style.position = "absolute", this.container.style.inset = "0", this.container.style.pointerEvents = "none", this.container.style.overflow = "hidden", e.appendChild(this.container), this.root = (0, m.createRoot)(this.container), this.flush(), this.observer = new MutationObserver((e) => {
|
|
18965
18966
|
for (let t of e) for (let e of Array.from(t.removedNodes)) this.unmountNode(e);
|
|
18966
18967
|
}), this.observer.observe(e, {
|
|
18967
18968
|
childList: !0,
|
|
@@ -18983,7 +18984,7 @@ var h = class {
|
|
|
18983
18984
|
"summary"
|
|
18984
18985
|
]) {
|
|
18985
18986
|
let r = e.renderer?.[n];
|
|
18986
|
-
|
|
18987
|
+
h(r) ? t[n] = (e) => this.mountComponent(r, e) : typeof r == "function" && (t[n] = r);
|
|
18987
18988
|
}
|
|
18988
18989
|
return {
|
|
18989
18990
|
...e,
|
|
@@ -19076,214 +19077,41 @@ var h = class {
|
|
|
19076
19077
|
break;
|
|
19077
19078
|
}
|
|
19078
19079
|
}
|
|
19079
|
-
}
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
else r = n;
|
|
19085
|
-
return n = r.ref, {
|
|
19086
|
-
$$typeof: t,
|
|
19087
|
-
type: e,
|
|
19088
|
-
key: i,
|
|
19089
|
-
ref: n === void 0 ? null : n,
|
|
19090
|
-
props: r
|
|
19091
|
-
};
|
|
19092
|
-
}
|
|
19093
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
19094
|
-
})), _ = /* @__PURE__ */ o(((e) => {
|
|
19095
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
19096
|
-
function t(e) {
|
|
19097
|
-
if (e == null) return null;
|
|
19098
|
-
if (typeof e == "function") return e.$$typeof === C ? null : e.displayName || e.name || null;
|
|
19099
|
-
if (typeof e == "string") return e;
|
|
19100
|
-
switch (e) {
|
|
19101
|
-
case v: return "Fragment";
|
|
19102
|
-
case b: return "Profiler";
|
|
19103
|
-
case y: return "StrictMode";
|
|
19104
|
-
case ne: return "Suspense";
|
|
19105
|
-
case re: return "SuspenseList";
|
|
19106
|
-
case ae: return "Activity";
|
|
19107
|
-
}
|
|
19108
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
19109
|
-
case _: return "Portal";
|
|
19110
|
-
case ee: return e.displayName || "Context";
|
|
19111
|
-
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
19112
|
-
case te:
|
|
19113
|
-
var n = e.render;
|
|
19114
|
-
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
19115
|
-
case ie: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
19116
|
-
case S:
|
|
19117
|
-
n = e._payload, e = e._init;
|
|
19118
|
-
try {
|
|
19119
|
-
return t(e(n));
|
|
19120
|
-
} catch {}
|
|
19121
|
-
}
|
|
19122
|
-
return null;
|
|
19123
|
-
}
|
|
19124
|
-
function n(e) {
|
|
19125
|
-
return "" + e;
|
|
19126
|
-
}
|
|
19127
|
-
function r(e) {
|
|
19128
|
-
try {
|
|
19129
|
-
n(e);
|
|
19130
|
-
var t = !1;
|
|
19131
|
-
} catch {
|
|
19132
|
-
t = !0;
|
|
19133
|
-
}
|
|
19134
|
-
if (t) {
|
|
19135
|
-
t = console;
|
|
19136
|
-
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
19137
|
-
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
19138
|
-
}
|
|
19139
|
-
}
|
|
19140
|
-
function i(e) {
|
|
19141
|
-
if (e === v) return "<>";
|
|
19142
|
-
if (typeof e == "object" && e && e.$$typeof === S) return "<...>";
|
|
19143
|
-
try {
|
|
19144
|
-
var n = t(e);
|
|
19145
|
-
return n ? "<" + n + ">" : "<...>";
|
|
19146
|
-
} catch {
|
|
19147
|
-
return "<...>";
|
|
19148
|
-
}
|
|
19149
|
-
}
|
|
19150
|
-
function a() {
|
|
19151
|
-
var e = oe.A;
|
|
19152
|
-
return e === null ? null : e.getOwner();
|
|
19153
|
-
}
|
|
19154
|
-
function o() {
|
|
19155
|
-
return Error("react-stack-top-frame");
|
|
19156
|
-
}
|
|
19157
|
-
function c(e) {
|
|
19158
|
-
if (se.call(e, "key")) {
|
|
19159
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
19160
|
-
if (t && t.isReactWarning) return !1;
|
|
19161
|
-
}
|
|
19162
|
-
return e.key !== void 0;
|
|
19163
|
-
}
|
|
19164
|
-
function l(e, t) {
|
|
19165
|
-
function n() {
|
|
19166
|
-
ue || (ue = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
19167
|
-
}
|
|
19168
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
19169
|
-
get: n,
|
|
19170
|
-
configurable: !0
|
|
19171
|
-
});
|
|
19172
|
-
}
|
|
19173
|
-
function u() {
|
|
19174
|
-
var e = t(this.type);
|
|
19175
|
-
return w[e] || (w[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
19176
|
-
}
|
|
19177
|
-
function d(e, t, n, r, i, a) {
|
|
19178
|
-
var o = n.ref;
|
|
19179
|
-
return e = {
|
|
19180
|
-
$$typeof: g,
|
|
19181
|
-
type: e,
|
|
19182
|
-
key: t,
|
|
19183
|
-
props: n,
|
|
19184
|
-
_owner: r
|
|
19185
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
19186
|
-
enumerable: !1,
|
|
19187
|
-
value: null
|
|
19188
|
-
}) : Object.defineProperty(e, "ref", {
|
|
19189
|
-
enumerable: !1,
|
|
19190
|
-
get: u
|
|
19191
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
19192
|
-
configurable: !1,
|
|
19193
|
-
enumerable: !1,
|
|
19194
|
-
writable: !0,
|
|
19195
|
-
value: 0
|
|
19196
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
19197
|
-
configurable: !1,
|
|
19198
|
-
enumerable: !1,
|
|
19199
|
-
writable: !0,
|
|
19200
|
-
value: null
|
|
19201
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
19202
|
-
configurable: !1,
|
|
19203
|
-
enumerable: !1,
|
|
19204
|
-
writable: !0,
|
|
19205
|
-
value: i
|
|
19206
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
19207
|
-
configurable: !1,
|
|
19208
|
-
enumerable: !1,
|
|
19209
|
-
writable: !0,
|
|
19210
|
-
value: a
|
|
19211
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
19212
|
-
}
|
|
19213
|
-
function f(e, n, i, o, s, u) {
|
|
19214
|
-
var f = n.children;
|
|
19215
|
-
if (f !== void 0) if (o) if (ce(f)) {
|
|
19216
|
-
for (o = 0; o < f.length; o++) p(f[o]);
|
|
19217
|
-
Object.freeze && Object.freeze(f);
|
|
19218
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
19219
|
-
else p(f);
|
|
19220
|
-
if (se.call(n, "key")) {
|
|
19221
|
-
f = t(e);
|
|
19222
|
-
var m = Object.keys(n).filter(function(e) {
|
|
19223
|
-
return e !== "key";
|
|
19224
|
-
});
|
|
19225
|
-
o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", fe[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), fe[f + o] = !0);
|
|
19226
|
-
}
|
|
19227
|
-
if (f = null, i !== void 0 && (r(i), f = "" + i), c(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
|
|
19228
|
-
else i = n;
|
|
19229
|
-
return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), s, u);
|
|
19230
|
-
}
|
|
19231
|
-
function p(e) {
|
|
19232
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === S && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
19233
|
-
}
|
|
19234
|
-
function m(e) {
|
|
19235
|
-
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
19236
|
-
}
|
|
19237
|
-
var h = s("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), ie = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), oe = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, ce = Array.isArray, le = console.createTask ? console.createTask : function() {
|
|
19238
|
-
return null;
|
|
19239
|
-
};
|
|
19240
|
-
h = { react_stack_bottom_frame: function(e) {
|
|
19241
|
-
return e();
|
|
19242
|
-
} };
|
|
19243
|
-
var ue, w = {}, T = h.react_stack_bottom_frame.bind(h, o)(), de = le(i(o)), fe = {};
|
|
19244
|
-
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
19245
|
-
var r = 1e4 > oe.recentlyCreatedOwnerStacks++;
|
|
19246
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : T, r ? le(i(e)) : de);
|
|
19247
|
-
}, e.jsxs = function(e, t, n) {
|
|
19248
|
-
var r = 1e4 > oe.recentlyCreatedOwnerStacks++;
|
|
19249
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : T, r ? le(i(e)) : de);
|
|
19250
|
-
};
|
|
19251
|
-
})();
|
|
19252
|
-
})), v = (/* @__PURE__ */ o(((e, t) => {
|
|
19253
|
-
process.env.NODE_ENV === "production" ? t.exports = g() : t.exports = _();
|
|
19254
|
-
})))();
|
|
19255
|
-
function y(e) {
|
|
19256
|
-
let a = n(null), o = n(null), s = n(null), c = n([]), { columns: l = [], dataSet: u = [], options: d = {} } = e;
|
|
19080
|
+
};
|
|
19081
|
+
//#endregion
|
|
19082
|
+
//#region src/photon-grid.tsx
|
|
19083
|
+
function _(e) {
|
|
19084
|
+
let a = n(null), s = n(null), c = n(null), l = n([]), { columns: u = [], dataSet: d = [], options: f = {} } = e;
|
|
19257
19085
|
return t(() => {
|
|
19258
19086
|
if (!a.current) return;
|
|
19259
|
-
let t = a.current, n = new
|
|
19260
|
-
n.observe(t),
|
|
19261
|
-
let
|
|
19262
|
-
...
|
|
19263
|
-
columns: n.adaptColumns(
|
|
19264
|
-
data:
|
|
19087
|
+
let t = a.current, n = new g();
|
|
19088
|
+
n.observe(t), c.current = n;
|
|
19089
|
+
let o = new r(t, {
|
|
19090
|
+
...f,
|
|
19091
|
+
columns: n.adaptColumns(u),
|
|
19092
|
+
data: d
|
|
19265
19093
|
});
|
|
19266
|
-
|
|
19094
|
+
s.current = o;
|
|
19267
19095
|
let p = [], m = (e, t) => {
|
|
19268
19096
|
if (!t) return;
|
|
19269
|
-
let n =
|
|
19097
|
+
let n = o.api.on(e, (e) => t(e));
|
|
19270
19098
|
p.push(n);
|
|
19271
19099
|
};
|
|
19272
|
-
return m(i.DATA_CHANGED, e.onDataChanged), m(i.ROW_CLICKED, e.onRowClicked), m(i.ROW_DOUBLE_CLICKED, e.onRowDoubleClicked), m(i.ROW_SELECTED, e.onRowSelected), m(i.CELL_CLICKED, e.onCellClicked), m(i.CELL_DOUBLE_CLICKED, e.onCellDoubleClicked), m(i.CELL_VALUE_CHANGED, e.onCellValueChanged), m(i.CELL_SELECTION_CHANGED, e.onCellSelectionChanged), m(i.COLUMN_RESIZED, e.onColumnResized), m(i.COLUMN_MOVED, e.onColumnMoved), m(i.SORT_CHANGED, e.onSortChanged), m(i.FILTER_CHANGED, e.onFilterChanged), m(i.PAGE_CHANGED, e.onPageChanged), m(i.COLUMNS_STATE_CHANGED, e.onColumnsStateChanged), m(i.THEME_CHANGED, e.onThemeChanged), m(i.EXPORT_COMPLETE, e.onExportComplete),
|
|
19273
|
-
for (let e of
|
|
19274
|
-
|
|
19100
|
+
return m(i.DATA_CHANGED, e.onDataChanged), m(i.ROW_CLICKED, e.onRowClicked), m(i.ROW_DOUBLE_CLICKED, e.onRowDoubleClicked), m(i.ROW_SELECTED, e.onRowSelected), m(i.CELL_CLICKED, e.onCellClicked), m(i.CELL_DOUBLE_CLICKED, e.onCellDoubleClicked), m(i.CELL_VALUE_CHANGED, e.onCellValueChanged), m(i.CELL_SELECTION_CHANGED, e.onCellSelectionChanged), m(i.COLUMN_RESIZED, e.onColumnResized), m(i.COLUMN_MOVED, e.onColumnMoved), m(i.SORT_CHANGED, e.onSortChanged), m(i.FILTER_CHANGED, e.onFilterChanged), m(i.PAGE_CHANGED, e.onPageChanged), m(i.COLUMNS_STATE_CHANGED, e.onColumnsStateChanged), m(i.THEME_CHANGED, e.onThemeChanged), m(i.EXPORT_COMPLETE, e.onExportComplete), l.current = p, e.onGridReady?.(o.api), () => {
|
|
19101
|
+
for (let e of l.current) e();
|
|
19102
|
+
l.current = [], s.current?.destroy(), s.current = null, c.current?.dispose(), c.current = null;
|
|
19275
19103
|
};
|
|
19276
19104
|
}, [
|
|
19277
|
-
l,
|
|
19278
19105
|
u,
|
|
19279
|
-
d
|
|
19106
|
+
d,
|
|
19107
|
+
f
|
|
19280
19108
|
]), t(() => () => {
|
|
19281
|
-
for (let e of
|
|
19282
|
-
|
|
19283
|
-
}, []), /* @__PURE__ */ (
|
|
19109
|
+
for (let e of l.current) e();
|
|
19110
|
+
l.current = [], s.current?.destroy(), s.current = null, c.current?.dispose(), c.current = null;
|
|
19111
|
+
}, []), /* @__PURE__ */ o("div", {
|
|
19284
19112
|
ref: a,
|
|
19285
19113
|
className: "photon-grid__host"
|
|
19286
19114
|
});
|
|
19287
19115
|
}
|
|
19288
19116
|
//#endregion
|
|
19289
|
-
export {
|
|
19117
|
+
export { _ as PhotonGrid, g as ReactRendererAdapter };
|
package/main.d.ts
ADDED
|
File without changes
|