react-graph-grid 0.1.4 → 0.1.6

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.
Files changed (88) hide show
  1. package/README.md +4 -0
  2. package/{src/css → dist}/default.css +2 -1
  3. package/dist/index.esm.js +21 -0
  4. package/dist/index.js +56 -0
  5. package/dist/index10.esm.js +3844 -0
  6. package/dist/index10.js +3848 -0
  7. package/dist/index11.esm.js +4121 -0
  8. package/dist/index11.js +4125 -0
  9. package/dist/index12.esm.js +5238 -0
  10. package/dist/index12.js +5242 -0
  11. package/dist/index13.esm.js +5466 -0
  12. package/dist/index13.js +5470 -0
  13. package/dist/index14.esm.js +22 -0
  14. package/dist/index14.js +26 -0
  15. package/dist/index15.esm.js +402 -0
  16. package/dist/index15.js +403 -0
  17. package/dist/index16.esm.js +507 -0
  18. package/dist/index16.js +507 -0
  19. package/dist/index17.esm.js +256 -0
  20. package/dist/index17.js +257 -0
  21. package/dist/index18.esm.js +261 -0
  22. package/dist/index18.js +263 -0
  23. package/dist/index19.esm.js +623 -0
  24. package/dist/index19.js +624 -0
  25. package/dist/index2.esm.js +6 -0
  26. package/dist/index2.js +2 -0
  27. package/dist/index20.esm.js +219 -0
  28. package/dist/index20.js +220 -0
  29. package/dist/index21.esm.js +298 -0
  30. package/dist/index21.js +299 -0
  31. package/dist/index22.esm.js +662 -0
  32. package/dist/index22.js +663 -0
  33. package/dist/index23.esm.js +340 -0
  34. package/dist/index23.js +341 -0
  35. package/dist/index24.esm.js +269 -0
  36. package/dist/index24.js +270 -0
  37. package/dist/index25.esm.js +600 -0
  38. package/dist/index25.js +601 -0
  39. package/dist/index26.esm.js +245 -0
  40. package/dist/index26.js +246 -0
  41. package/dist/index27.esm.js +136 -0
  42. package/dist/index27.js +137 -0
  43. package/dist/index28.esm.js +70 -0
  44. package/dist/index28.js +70 -0
  45. package/dist/index29.esm.js +748 -0
  46. package/dist/index29.js +748 -0
  47. package/dist/index30.esm.js +363 -0
  48. package/dist/index30.js +363 -0
  49. package/dist/index4.esm.js +27 -0
  50. package/dist/index4.js +27 -0
  51. package/dist/index5.esm.js +35 -0
  52. package/dist/index5.js +39 -0
  53. package/dist/index6.esm.js +200 -0
  54. package/dist/index6.js +204 -0
  55. package/dist/index7.esm.js +9 -0
  56. package/dist/index7.js +13 -0
  57. package/dist/index8.esm.js +65 -0
  58. package/dist/index8.js +68 -0
  59. package/dist/index9.esm.js +102 -0
  60. package/dist/index9.js +103 -0
  61. package/package.json +6 -3
  62. package/eslint.config.js +0 -29
  63. package/index.html +0 -13
  64. package/index.js +0 -19
  65. package/npm.aps +0 -0
  66. package/src/Base.jsx +0 -81
  67. package/src/Card.jsx +0 -333
  68. package/src/Dropdown.jsx +0 -339
  69. package/src/FieldEdit.jsx +0 -376
  70. package/src/Graph.jsx +0 -482
  71. package/src/Grid.jsx +0 -887
  72. package/src/GridCD.jsx +0 -180
  73. package/src/GridDB.jsx +0 -897
  74. package/src/GridFE.jsx +0 -753
  75. package/src/GridFL.jsx +0 -468
  76. package/src/GridGR.jsx +0 -311
  77. package/src/GridPK.jsx +0 -414
  78. package/src/Modal.jsx +0 -511
  79. package/src/Overlay.jsx +0 -140
  80. package/src/Tests/DebugApp.jsx +0 -334
  81. package/src/Tests/TestData.jsx +0 -251
  82. package/src/Themes/DefaultGridTheme.jsx +0 -36
  83. package/src/Themes/Images.jsx +0 -438
  84. package/src/Themes/Translate.jsx +0 -76
  85. package/src/css/default_.css +0 -945
  86. package/src/main.jsx +0 -10
  87. package/vite.config.js +0 -14
  88. /package/{public → dist}/IM.svg +0 -0
@@ -0,0 +1,200 @@
1
+ import { __commonJSMin, __require } from "./index2.esm.js";
2
+ /**
3
+ * @license React
4
+ * react-jsx-runtime.development.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
12
+ "production" !== process.env.NODE_ENV && (function() {
13
+ function getComponentNameFromType(type) {
14
+ if (null == type) return null;
15
+ if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
16
+ if ("string" === typeof type) return type;
17
+ switch (type) {
18
+ case REACT_FRAGMENT_TYPE: return "Fragment";
19
+ case REACT_PROFILER_TYPE: return "Profiler";
20
+ case REACT_STRICT_MODE_TYPE: return "StrictMode";
21
+ case REACT_SUSPENSE_TYPE: return "Suspense";
22
+ case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
23
+ case REACT_ACTIVITY_TYPE: return "Activity";
24
+ }
25
+ if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
26
+ case REACT_PORTAL_TYPE: return "Portal";
27
+ case REACT_CONTEXT_TYPE: return type.displayName || "Context";
28
+ case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
29
+ case REACT_FORWARD_REF_TYPE:
30
+ var innerType = type.render;
31
+ type = type.displayName;
32
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
33
+ return type;
34
+ case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
35
+ case REACT_LAZY_TYPE:
36
+ innerType = type._payload;
37
+ type = type._init;
38
+ try {
39
+ return getComponentNameFromType(type(innerType));
40
+ } catch (x) {}
41
+ }
42
+ return null;
43
+ }
44
+ function testStringCoercion(value) {
45
+ return "" + value;
46
+ }
47
+ function checkKeyStringCoercion(value) {
48
+ try {
49
+ testStringCoercion(value);
50
+ var JSCompiler_inline_result = !1;
51
+ } catch (e) {
52
+ JSCompiler_inline_result = !0;
53
+ }
54
+ if (JSCompiler_inline_result) {
55
+ JSCompiler_inline_result = console;
56
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
57
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
58
+ JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
59
+ return testStringCoercion(value);
60
+ }
61
+ }
62
+ function getTaskName(type) {
63
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
64
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
65
+ try {
66
+ var name = getComponentNameFromType(type);
67
+ return name ? "<" + name + ">" : "<...>";
68
+ } catch (x) {
69
+ return "<...>";
70
+ }
71
+ }
72
+ function getOwner() {
73
+ var dispatcher = ReactSharedInternals.A;
74
+ return null === dispatcher ? null : dispatcher.getOwner();
75
+ }
76
+ function UnknownOwner() {
77
+ return Error("react-stack-top-frame");
78
+ }
79
+ function hasValidKey(config) {
80
+ if (hasOwnProperty.call(config, "key")) {
81
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
82
+ if (getter && getter.isReactWarning) return !1;
83
+ }
84
+ return void 0 !== config.key;
85
+ }
86
+ function defineKeyPropWarningGetter(props, displayName) {
87
+ function warnAboutAccessingKey() {
88
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = !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)", displayName));
89
+ }
90
+ warnAboutAccessingKey.isReactWarning = !0;
91
+ Object.defineProperty(props, "key", {
92
+ get: warnAboutAccessingKey,
93
+ configurable: !0
94
+ });
95
+ }
96
+ function elementRefGetterWithDeprecationWarning() {
97
+ var componentName = getComponentNameFromType(this.type);
98
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !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."));
99
+ componentName = this.props.ref;
100
+ return void 0 !== componentName ? componentName : null;
101
+ }
102
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
103
+ var refProp = props.ref;
104
+ type = {
105
+ $$typeof: REACT_ELEMENT_TYPE,
106
+ type,
107
+ key,
108
+ props,
109
+ _owner: owner
110
+ };
111
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
112
+ enumerable: !1,
113
+ get: elementRefGetterWithDeprecationWarning
114
+ }) : Object.defineProperty(type, "ref", {
115
+ enumerable: !1,
116
+ value: null
117
+ });
118
+ type._store = {};
119
+ Object.defineProperty(type._store, "validated", {
120
+ configurable: !1,
121
+ enumerable: !1,
122
+ writable: !0,
123
+ value: 0
124
+ });
125
+ Object.defineProperty(type, "_debugInfo", {
126
+ configurable: !1,
127
+ enumerable: !1,
128
+ writable: !0,
129
+ value: null
130
+ });
131
+ Object.defineProperty(type, "_debugStack", {
132
+ configurable: !1,
133
+ enumerable: !1,
134
+ writable: !0,
135
+ value: debugStack
136
+ });
137
+ Object.defineProperty(type, "_debugTask", {
138
+ configurable: !1,
139
+ enumerable: !1,
140
+ writable: !0,
141
+ value: debugTask
142
+ });
143
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
144
+ return type;
145
+ }
146
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
147
+ var children = config.children;
148
+ if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
149
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
150
+ Object.freeze && Object.freeze(children);
151
+ } 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.");
152
+ else validateChildKeys(children);
153
+ if (hasOwnProperty.call(config, "key")) {
154
+ children = getComponentNameFromType(type);
155
+ var keys = Object.keys(config).filter(function(k) {
156
+ return "key" !== k;
157
+ });
158
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
159
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.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} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
160
+ }
161
+ children = null;
162
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
163
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
164
+ if ("key" in config) {
165
+ maybeKey = {};
166
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
167
+ } else maybeKey = config;
168
+ children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
169
+ return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
170
+ }
171
+ function validateChildKeys(node) {
172
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
173
+ }
174
+ function isValidElement(object) {
175
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
176
+ }
177
+ var React = __require("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
178
+ return null;
179
+ };
180
+ React = { react_stack_bottom_frame: function(callStackForError) {
181
+ return callStackForError();
182
+ } };
183
+ var specialPropKeyWarningShown;
184
+ var didWarnAboutElementRef = {};
185
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
186
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
187
+ var didWarnAboutKeySpread = {};
188
+ exports.Fragment = REACT_FRAGMENT_TYPE;
189
+ exports.jsx = function(type, config, maybeKey) {
190
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
191
+ return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
192
+ };
193
+ exports.jsxs = function(type, config, maybeKey) {
194
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
195
+ return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
196
+ };
197
+ })();
198
+ }));
199
+ export default require_react_jsx_runtime_development();
200
+ export { require_react_jsx_runtime_development };
package/dist/index6.js ADDED
@@ -0,0 +1,204 @@
1
+ const require_rolldown_runtime = require("./index2.js");
2
+ /**
3
+ * @license React
4
+ * react-jsx-runtime.development.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var require_react_jsx_runtime_development = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
12
+ "production" !== process.env.NODE_ENV && (function() {
13
+ function getComponentNameFromType(type) {
14
+ if (null == type) return null;
15
+ if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
16
+ if ("string" === typeof type) return type;
17
+ switch (type) {
18
+ case REACT_FRAGMENT_TYPE: return "Fragment";
19
+ case REACT_PROFILER_TYPE: return "Profiler";
20
+ case REACT_STRICT_MODE_TYPE: return "StrictMode";
21
+ case REACT_SUSPENSE_TYPE: return "Suspense";
22
+ case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
23
+ case REACT_ACTIVITY_TYPE: return "Activity";
24
+ }
25
+ if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
26
+ case REACT_PORTAL_TYPE: return "Portal";
27
+ case REACT_CONTEXT_TYPE: return type.displayName || "Context";
28
+ case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
29
+ case REACT_FORWARD_REF_TYPE:
30
+ var innerType = type.render;
31
+ type = type.displayName;
32
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
33
+ return type;
34
+ case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
35
+ case REACT_LAZY_TYPE:
36
+ innerType = type._payload;
37
+ type = type._init;
38
+ try {
39
+ return getComponentNameFromType(type(innerType));
40
+ } catch (x) {}
41
+ }
42
+ return null;
43
+ }
44
+ function testStringCoercion(value) {
45
+ return "" + value;
46
+ }
47
+ function checkKeyStringCoercion(value) {
48
+ try {
49
+ testStringCoercion(value);
50
+ var JSCompiler_inline_result = !1;
51
+ } catch (e) {
52
+ JSCompiler_inline_result = !0;
53
+ }
54
+ if (JSCompiler_inline_result) {
55
+ JSCompiler_inline_result = console;
56
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
57
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
58
+ JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
59
+ return testStringCoercion(value);
60
+ }
61
+ }
62
+ function getTaskName(type) {
63
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
64
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
65
+ try {
66
+ var name = getComponentNameFromType(type);
67
+ return name ? "<" + name + ">" : "<...>";
68
+ } catch (x) {
69
+ return "<...>";
70
+ }
71
+ }
72
+ function getOwner() {
73
+ var dispatcher = ReactSharedInternals.A;
74
+ return null === dispatcher ? null : dispatcher.getOwner();
75
+ }
76
+ function UnknownOwner() {
77
+ return Error("react-stack-top-frame");
78
+ }
79
+ function hasValidKey(config) {
80
+ if (hasOwnProperty.call(config, "key")) {
81
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
82
+ if (getter && getter.isReactWarning) return !1;
83
+ }
84
+ return void 0 !== config.key;
85
+ }
86
+ function defineKeyPropWarningGetter(props, displayName) {
87
+ function warnAboutAccessingKey() {
88
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = !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)", displayName));
89
+ }
90
+ warnAboutAccessingKey.isReactWarning = !0;
91
+ Object.defineProperty(props, "key", {
92
+ get: warnAboutAccessingKey,
93
+ configurable: !0
94
+ });
95
+ }
96
+ function elementRefGetterWithDeprecationWarning() {
97
+ var componentName = getComponentNameFromType(this.type);
98
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !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."));
99
+ componentName = this.props.ref;
100
+ return void 0 !== componentName ? componentName : null;
101
+ }
102
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
103
+ var refProp = props.ref;
104
+ type = {
105
+ $$typeof: REACT_ELEMENT_TYPE,
106
+ type,
107
+ key,
108
+ props,
109
+ _owner: owner
110
+ };
111
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
112
+ enumerable: !1,
113
+ get: elementRefGetterWithDeprecationWarning
114
+ }) : Object.defineProperty(type, "ref", {
115
+ enumerable: !1,
116
+ value: null
117
+ });
118
+ type._store = {};
119
+ Object.defineProperty(type._store, "validated", {
120
+ configurable: !1,
121
+ enumerable: !1,
122
+ writable: !0,
123
+ value: 0
124
+ });
125
+ Object.defineProperty(type, "_debugInfo", {
126
+ configurable: !1,
127
+ enumerable: !1,
128
+ writable: !0,
129
+ value: null
130
+ });
131
+ Object.defineProperty(type, "_debugStack", {
132
+ configurable: !1,
133
+ enumerable: !1,
134
+ writable: !0,
135
+ value: debugStack
136
+ });
137
+ Object.defineProperty(type, "_debugTask", {
138
+ configurable: !1,
139
+ enumerable: !1,
140
+ writable: !0,
141
+ value: debugTask
142
+ });
143
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
144
+ return type;
145
+ }
146
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
147
+ var children = config.children;
148
+ if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
149
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
150
+ Object.freeze && Object.freeze(children);
151
+ } 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.");
152
+ else validateChildKeys(children);
153
+ if (hasOwnProperty.call(config, "key")) {
154
+ children = getComponentNameFromType(type);
155
+ var keys = Object.keys(config).filter(function(k) {
156
+ return "key" !== k;
157
+ });
158
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
159
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.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} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
160
+ }
161
+ children = null;
162
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
163
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
164
+ if ("key" in config) {
165
+ maybeKey = {};
166
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
167
+ } else maybeKey = config;
168
+ children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
169
+ return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
170
+ }
171
+ function validateChildKeys(node) {
172
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
173
+ }
174
+ function isValidElement(object) {
175
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
176
+ }
177
+ var React = require("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
178
+ return null;
179
+ };
180
+ React = { react_stack_bottom_frame: function(callStackForError) {
181
+ return callStackForError();
182
+ } };
183
+ var specialPropKeyWarningShown;
184
+ var didWarnAboutElementRef = {};
185
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
186
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
187
+ var didWarnAboutKeySpread = {};
188
+ exports.Fragment = REACT_FRAGMENT_TYPE;
189
+ exports.jsx = function(type, config, maybeKey) {
190
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
191
+ return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
192
+ };
193
+ exports.jsxs = function(type, config, maybeKey) {
194
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
195
+ return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
196
+ };
197
+ })();
198
+ }));
199
+ Object.defineProperty(exports, "default", {
200
+ enumerable: true,
201
+ get: function() {
202
+ return require_react_jsx_runtime_development();
203
+ }
204
+ });
@@ -0,0 +1,9 @@
1
+ import { __commonJSMin } from "./index2.esm.js";
2
+ import { require_react_jsx_runtime_production } from "./index5.esm.js";
3
+ import { require_react_jsx_runtime_development } from "./index6.esm.js";
4
+ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
6
+ else module.exports = require_react_jsx_runtime_development();
7
+ }));
8
+ export default require_jsx_runtime();
9
+ export { require_jsx_runtime };
package/dist/index7.js ADDED
@@ -0,0 +1,13 @@
1
+ const require_rolldown_runtime = require("./index2.js");
2
+ const require_react_jsx_runtime_production$1 = require("./index5.js");
3
+ const require_react_jsx_runtime_development$1 = require("./index6.js");
4
+ var require_jsx_runtime = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
+ if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production$1.default;
6
+ else module.exports = require_react_jsx_runtime_development$1.default;
7
+ }));
8
+ Object.defineProperty(exports, "default", {
9
+ enumerable: true,
10
+ get: function() {
11
+ return require_jsx_runtime();
12
+ }
13
+ });
@@ -0,0 +1,65 @@
1
+ import { DefaultGridTheme } from "./index4.esm.js";
2
+ import { require_jsx_runtime } from "./index7.esm.js";
3
+ var import_jsx_runtime = require_jsx_runtime();
4
+ var BaseComponent = class BaseComponent {
5
+ constructor(props) {
6
+ this.level = props.level || 0;
7
+ if (!BaseComponent.theme) {
8
+ BaseComponent.theme = new DefaultGridTheme();
9
+ if (BaseComponent.useBootstrap) BaseComponent.changeTheme(true);
10
+ }
11
+ }
12
+ translate(text, context) {
13
+ return BaseComponent.translate(text, context);
14
+ }
15
+ static translate(text) {
16
+ return text;
17
+ }
18
+ Spinner(id = -1, minW = -1, maxW = -1) {
19
+ return BaseComponent.Spinner ? BaseComponent.Spinner(id, minW, maxW) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
20
+ }
21
+ static Spinner(id = -1, minW = -1, maxW = -1) {
22
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23
+ className: "grid-loader",
24
+ style: {
25
+ minWidth: minW ? minW + "px" : "",
26
+ maxWidth: maxW ? maxW + "px" : ""
27
+ },
28
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: BaseComponent.translate("Loading") + "..." })
29
+ }, `loader_${id}_`);
30
+ }
31
+ formatDate(text, dateFormat) {
32
+ return BaseComponent.formatDate(text, dateFormat);
33
+ }
34
+ static formatDate(text) {
35
+ return text;
36
+ }
37
+ static dateFormat = "dd.MM.yyyy";
38
+ static dateTimeFormat = "dd.MM.yyyy HH:mm:ss";
39
+ static theme = null;
40
+ static useBootstrap = false;
41
+ static changeTheme = () => {
42
+ return new Promise(function(resolve) {
43
+ BaseComponent.theme = new DefaultGridTheme();
44
+ resolve();
45
+ });
46
+ };
47
+ };
48
+ function log(message) {
49
+ if (!window._logEnabled) return;
50
+ console.log(message);
51
+ }
52
+ var NodeStatus = class {
53
+ static grid = 0;
54
+ static hidden = 1;
55
+ static filter = 2;
56
+ static lookup = 3;
57
+ static custom = 4;
58
+ };
59
+ var FilterType = class {
60
+ static combobox = 0;
61
+ static date = 1;
62
+ static input = 2;
63
+ static custom = 3;
64
+ };
65
+ export { BaseComponent, FilterType, NodeStatus, log };
package/dist/index8.js ADDED
@@ -0,0 +1,68 @@
1
+ const require_DefaultGridTheme = require("./index4.js");
2
+ const require_jsx_runtime$1 = require("./index7.js");
3
+ var import_jsx_runtime = require_jsx_runtime$1.default;
4
+ var BaseComponent = class BaseComponent {
5
+ constructor(props) {
6
+ this.level = props.level || 0;
7
+ if (!BaseComponent.theme) {
8
+ BaseComponent.theme = new require_DefaultGridTheme.DefaultGridTheme();
9
+ if (BaseComponent.useBootstrap) BaseComponent.changeTheme(true);
10
+ }
11
+ }
12
+ translate(text, context) {
13
+ return BaseComponent.translate(text, context);
14
+ }
15
+ static translate(text) {
16
+ return text;
17
+ }
18
+ Spinner(id = -1, minW = -1, maxW = -1) {
19
+ return BaseComponent.Spinner ? BaseComponent.Spinner(id, minW, maxW) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
20
+ }
21
+ static Spinner(id = -1, minW = -1, maxW = -1) {
22
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23
+ className: "grid-loader",
24
+ style: {
25
+ minWidth: minW ? minW + "px" : "",
26
+ maxWidth: maxW ? maxW + "px" : ""
27
+ },
28
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: BaseComponent.translate("Loading") + "..." })
29
+ }, `loader_${id}_`);
30
+ }
31
+ formatDate(text, dateFormat) {
32
+ return BaseComponent.formatDate(text, dateFormat);
33
+ }
34
+ static formatDate(text) {
35
+ return text;
36
+ }
37
+ static dateFormat = "dd.MM.yyyy";
38
+ static dateTimeFormat = "dd.MM.yyyy HH:mm:ss";
39
+ static theme = null;
40
+ static useBootstrap = false;
41
+ static changeTheme = () => {
42
+ return new Promise(function(resolve) {
43
+ BaseComponent.theme = new require_DefaultGridTheme.DefaultGridTheme();
44
+ resolve();
45
+ });
46
+ };
47
+ };
48
+ function log(message) {
49
+ if (!window._logEnabled) return;
50
+ console.log(message);
51
+ }
52
+ var NodeStatus = class {
53
+ static grid = 0;
54
+ static hidden = 1;
55
+ static filter = 2;
56
+ static lookup = 3;
57
+ static custom = 4;
58
+ };
59
+ var FilterType = class {
60
+ static combobox = 0;
61
+ static date = 1;
62
+ static input = 2;
63
+ static custom = 3;
64
+ };
65
+ exports.BaseComponent = BaseComponent;
66
+ exports.FilterType = FilterType;
67
+ exports.NodeStatus = NodeStatus;
68
+ exports.log = log;
@@ -0,0 +1,102 @@
1
+ import { require_jsx_runtime } from "./index7.esm.js";
2
+ import { BaseComponent } from "./index8.esm.js";
3
+ import { useEffect, useState } from "react";
4
+ var import_jsx_runtime = require_jsx_runtime();
5
+ function Overlay(props) {
6
+ let ovl = null;
7
+ const [ovlState, setState] = useState({
8
+ ovl,
9
+ ind: 0
10
+ });
11
+ if (ovlState.ovl) {
12
+ ovl = ovlState.ovl;
13
+ if (ovlState.ovl.closing) ovl.closing = false;
14
+ } else ovl = new OverlayClass(props);
15
+ ovl.onClose = props.onClose;
16
+ if (props.init) props.init(ovl);
17
+ ovl.refreshState = function() {
18
+ setState({
19
+ ovl,
20
+ ind: ovl.stateind++
21
+ });
22
+ };
23
+ useEffect(() => {
24
+ ovl.setupEvents();
25
+ return () => {
26
+ ovl.clearEvents();
27
+ };
28
+ }, [ovl]);
29
+ return ovl.render();
30
+ }
31
+ var OverlayClass = class OverlayClass extends BaseComponent {
32
+ constructor(props) {
33
+ super(props);
34
+ const ovl = this;
35
+ ovl.opt = {};
36
+ ovl.id = OverlayClass._seq++;
37
+ ovl.uid = props.uid;
38
+ ovl.opt.zInd = props.zInd || ++OverlayClass._zInd;
39
+ ovl.opt.pos = props.pos || {
40
+ x: 0,
41
+ y: 0,
42
+ w: "100%",
43
+ h: "100%"
44
+ };
45
+ ovl.opt.isHidden = props.isHidden;
46
+ ovl.opt.closeWhenClick = props.closeWhenClick;
47
+ ovl.opt.closeWhenEscape = props.closeWhenEscape;
48
+ ovl.opt.pos.x = !isNaN(ovl.opt.pos.x) ? ovl.opt.pos.x + "px" : ovl.opt.pos.x;
49
+ ovl.opt.pos.y = !isNaN(ovl.opt.pos.y) ? ovl.opt.pos.y + "px" : ovl.opt.pos.y;
50
+ ovl.opt.pos.w = !isNaN(ovl.opt.pos.w) ? ovl.opt.pos.w + "px" : ovl.opt.pos.w;
51
+ ovl.opt.pos.h = !isNaN(ovl.opt.pos.h) ? ovl.opt.pos.h + "px" : ovl.opt.pos.h;
52
+ ovl.renderChild = props.renderChild || function() {
53
+ return null;
54
+ };
55
+ ovl.visible = props.visible != null ? props.visible : true;
56
+ ovl.stateind = 0;
57
+ }
58
+ static _seq = 0;
59
+ static _zInd = 999;
60
+ render() {
61
+ const ovl = this;
62
+ if (!ovl.visible) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
64
+ onClick: (e) => ovl.onClick(e),
65
+ style: {
66
+ width: ovl.opt.pos.w,
67
+ height: ovl.opt.pos.h,
68
+ top: ovl.opt.pos.y,
69
+ left: ovl.opt.pos.x,
70
+ opacity: ovl.opt.opacity ? ovl.opt.opacity : ovl.opt.isHidden ? 0 : .2,
71
+ zIndex: ovl.opt.zInd,
72
+ backgroundColor: !ovl.opt.isHidden ? "black" : "",
73
+ display: "flex",
74
+ position: "fixed"
75
+ },
76
+ className: "overlay-default"
77
+ }, `overlay_${ovl.id}_`), ovl.renderChild(ovl.opt.zInd + 1)] });
78
+ }
79
+ close() {
80
+ const ovl = this;
81
+ ovl.visible = false;
82
+ if (ovl.onClose) ovl.onClose();
83
+ ovl.closing = true;
84
+ ovl.refreshState();
85
+ }
86
+ onClick() {
87
+ const ovl = this;
88
+ if (ovl.opt && ovl.opt.closeWhenClick) ovl.close();
89
+ }
90
+ setupEvents = function() {
91
+ const ovl = this;
92
+ function onKeyDown(e) {
93
+ const key = e && e.key ? e.key.toLowerCase() : "";
94
+ if ((key === "esc" || key === "escape") && ovl.opt && ovl.opt.closeWhenEscape) ovl.close();
95
+ }
96
+ document.addEventListener("keydown", onKeyDown);
97
+ ovl.clearEvents = function() {
98
+ document.removeEventListener("keydown", onKeyDown);
99
+ };
100
+ };
101
+ };
102
+ export { Overlay, OverlayClass };