react-kggraph 0.0.3 → 0.0.4

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 (77) hide show
  1. package/lib/index.es.js +4 -0
  2. package/lib/{index17.esm.js → index17.es.js} +12 -12
  3. package/lib/{index2.esm.js → index2.es.js} +2 -5
  4. package/lib/index21.es.js +70 -0
  5. package/lib/index23.es.js +68 -0
  6. package/lib/index25.es.js +72 -0
  7. package/lib/{index29.esm.js → index26.es.js} +1 -1
  8. package/lib/{index30.esm.js → index27.es.js} +239 -239
  9. package/lib/index33.es.js +100 -0
  10. package/lib/{index37.esm.js → index34.es.js} +93 -93
  11. package/lib/index35.es.js +47 -0
  12. package/lib/{index39.esm.js → index36.es.js} +134 -136
  13. package/lib/index37.es.js +12 -0
  14. package/package.json +11 -6
  15. package/lib/components/Graph/components/PathAnalysisLevel/index.css +0 -1
  16. package/lib/index.cjs.js +0 -1
  17. package/lib/index.esm.js +0 -3
  18. package/lib/index10.cjs.js +0 -1
  19. package/lib/index11.cjs.js +0 -1
  20. package/lib/index12.cjs.js +0 -1
  21. package/lib/index13.cjs.js +0 -1
  22. package/lib/index14.cjs.js +0 -1
  23. package/lib/index15.cjs.js +0 -1
  24. package/lib/index16.cjs.js +0 -1
  25. package/lib/index17.cjs.js +0 -1
  26. package/lib/index18.cjs.js +0 -1
  27. package/lib/index19.cjs.js +0 -1
  28. package/lib/index2.cjs.js +0 -1
  29. package/lib/index21.cjs.js +0 -1
  30. package/lib/index21.esm.js +0 -27
  31. package/lib/index22.cjs.js +0 -16
  32. package/lib/index22.esm.js +0 -453
  33. package/lib/index23.cjs.js +0 -1
  34. package/lib/index23.esm.js +0 -10
  35. package/lib/index24.cjs.js +0 -1
  36. package/lib/index24.esm.js +0 -70
  37. package/lib/index26.cjs.js +0 -1
  38. package/lib/index26.esm.js +0 -68
  39. package/lib/index28.cjs.js +0 -1
  40. package/lib/index28.esm.js +0 -72
  41. package/lib/index29.cjs.js +0 -1
  42. package/lib/index30.cjs.js +0 -1
  43. package/lib/index32.cjs.js +0 -1
  44. package/lib/index33.cjs.js +0 -1
  45. package/lib/index34.cjs.js +0 -1
  46. package/lib/index36.cjs.js +0 -1
  47. package/lib/index36.esm.js +0 -100
  48. package/lib/index37.cjs.js +0 -1
  49. package/lib/index38.cjs.js +0 -1
  50. package/lib/index38.esm.js +0 -47
  51. package/lib/index39.cjs.js +0 -1
  52. package/lib/index4.cjs.js +0 -95
  53. package/lib/index40.cjs.js +0 -1
  54. package/lib/index5.cjs.js +0 -1
  55. package/lib/index6.cjs.js +0 -1
  56. package/lib/index7.cjs.js +0 -1
  57. package/lib/index8.cjs.js +0 -1
  58. package/lib/index9.cjs.js +0 -1
  59. /package/lib/{index10.esm.js → index10.es.js} +0 -0
  60. /package/lib/{index11.esm.js → index11.es.js} +0 -0
  61. /package/lib/{index12.esm.js → index12.es.js} +0 -0
  62. /package/lib/{index13.esm.js → index13.es.js} +0 -0
  63. /package/lib/{index14.esm.js → index14.es.js} +0 -0
  64. /package/lib/{index15.esm.js → index15.es.js} +0 -0
  65. /package/lib/{index16.esm.js → index16.es.js} +0 -0
  66. /package/lib/{index18.esm.js → index18.es.js} +0 -0
  67. /package/lib/{index19.esm.js → index19.es.js} +0 -0
  68. /package/lib/{index32.esm.js → index29.es.js} +0 -0
  69. /package/lib/{index33.esm.js → index30.es.js} +0 -0
  70. /package/lib/{index34.esm.js → index31.es.js} +0 -0
  71. /package/lib/{index40.esm.js → index38.es.js} +0 -0
  72. /package/lib/{index4.esm.js → index4.es.js} +0 -0
  73. /package/lib/{index5.esm.js → index5.es.js} +0 -0
  74. /package/lib/{index6.esm.js → index6.es.js} +0 -0
  75. /package/lib/{index7.esm.js → index7.es.js} +0 -0
  76. /package/lib/{index8.esm.js → index8.es.js} +0 -0
  77. /package/lib/{index9.esm.js → index9.es.js} +0 -0
@@ -1,16 +0,0 @@
1
- "use strict";var e=require(`./index2.cjs.js`).__commonJSMin((e=>{process.env.NODE_ENV!==`production`&&(function(){var t=require(`react`),n=Symbol.for(`react.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.provider`),c=Symbol.for(`react.context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.iterator,g=`@@iterator`;function _(e){if(typeof e!=`object`||!e)return null;var t=h&&e[h]||e[g];return typeof t==`function`?t:null}var v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){ee(`error`,e,[...arguments].slice(1))}function ee(e,t,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();r!==``&&(t+=`%s`,n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,i)}var te=!1,ne=!1,re=!1,ie=!1,ae=!1,oe=Symbol.for(`react.module.reference`);function se(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||ae||e===a||e===u||e===d||ie||e===m||te||ne||re||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===c||e.$$typeof===l||e.$$typeof===oe||e.getModuleId!==void 0))}function ce(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function b(e){return e.displayName||`Context`}function x(e){if(e==null)return null;if(typeof e.tag==`number`&&y(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case i:return`Fragment`;case r:return`Portal`;case o:return`Profiler`;case a:return`StrictMode`;case u:return`Suspense`;case d:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case c:return b(e)+`.Consumer`;case s:return b(e._context)+`.Provider`;case l:return ce(e,e.render,`ForwardRef`);case f:var t=e.displayName||null;return t===null?x(e.type)||`Memo`:t;case p:var n=e,m=n._payload,h=n._init;try{return x(h(m))}catch{return null}}return null}var S=Object.assign,C=0,w,T,E,D,le,O,k;function A(){}A.__reactDisabledLog=!0;function ue(){if(C===0){w=console.log,T=console.info,E=console.warn,D=console.error,le=console.group,O=console.groupCollapsed,k=console.groupEnd;var e={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}C++}function de(){if(C--,C===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:w}),info:S({},e,{value:T}),warn:S({},e,{value:E}),error:S({},e,{value:D}),group:S({},e,{value:le}),groupCollapsed:S({},e,{value:O}),groupEnd:S({},e,{value:k})})}C<0&&y(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}var j=v.ReactCurrentDispatcher,M;function N(e,t,n){if(M===void 0)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||``}return`
2
- `+M+e}var P=!1,F=new(typeof WeakMap==`function`?WeakMap:Map);function I(e,t){if(!e||P)return``;var n=F.get(e);if(n!==void 0)return n;var r;P=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var a=j.current;j.current=null,ue();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){r=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){r=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var s=t.stack.split(`
3
- `),c=r.stack.split(`
4
- `),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(l!==1||u!==1)do if(l--,u--,u<0||s[l]!==c[u]){var d=`
5
- `+s[l].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&F.set(e,d),d}while(l>=1&&u>=0);break}}}finally{P=!1,j.current=a,de(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:``,p=f?N(f):``;return typeof e==`function`&&F.set(e,p),p}function fe(e,t,n){return I(e,!1)}function pe(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function L(e,t,n){if(e==null)return``;if(typeof e==`function`)return I(e,pe(e));if(typeof e==`string`)return N(e);switch(e){case u:return N(`Suspense`);case d:return N(`SuspenseList`)}if(typeof e==`object`)switch(e.$$typeof){case l:return fe(e.render);case f:return L(e.type,t,n);case p:var r=e,i=r._payload,a=r._init;try{return L(a(i),t,n)}catch{}}return``}var R=Object.prototype.hasOwnProperty,z={},B=v.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}function me(e,t,n,r,i){var a=Function.call.bind(R);for(var o in e)if(a(e,o)){var s=void 0;try{if(typeof e[o]!=`function`){var c=Error((r||`React class`)+`: `+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name=`Invariant Violation`,c}s=e[o](t,o,r,n,null,`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`)}catch(e){s=e}s&&!(s instanceof Error)&&(V(i),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||`React class`,n,o,typeof s),V(null)),s instanceof Error&&!(s.message in z)&&(z[s.message]=!0,V(i),y(`Failed %s type: %s`,n,s.message),V(null))}}var he=Array.isArray;function H(e){return he(e)}function ge(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function _e(e){try{return U(e),!1}catch{return!0}}function U(e){return``+e}function W(e){if(_e(e))return y(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,ge(e)),U(e)}var G=v.ReactCurrentOwner,ve={key:!0,ref:!0,__self:!0,__source:!0},K,q,J={};function ye(e){if(R.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function be(e){if(R.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function xe(e,t){if(typeof e.ref==`string`&&G.current&&t&&G.current.stateNode!==t){var n=x(G.current.type);J[n]||(y(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,x(G.current.type),e.ref),J[n]=!0)}}function Se(e,t){var n=function(){K||(K=!0,y("%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://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function Ce(e,t){var n=function(){q||(q=!0,y("%s: `ref` 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://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`ref`,{get:n,configurable:!0})}var we=function(e,t,r,i,a,o,s){var c={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,`_self`,{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,`_source`,{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Te(e,t,n,r,i){var a,o={},s=null,c=null;for(a in n!==void 0&&(W(n),s=``+n),be(t)&&(W(t.key),s=``+t.key),ye(t)&&(c=t.ref,xe(t,i)),t)R.call(t,a)&&!ve.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps){var l=e.defaultProps;for(a in l)o[a]===void 0&&(o[a]=l[a])}if(s||c){var u=typeof e==`function`?e.displayName||e.name||`Unknown`:e;s&&Se(o,u),c&&Ce(o,u)}return we(e,s,c,i,r,G.current,o)}var Y=v.ReactCurrentOwner,X=v.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);X.setExtraStackFrame(n)}else X.setExtraStackFrame(null)}var Q=!1;function $(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function Ee(){if(Y.current){var e=x(Y.current.type);if(e)return`
6
-
7
- Check the render method of \``+e+"`."}return``}function De(e){if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,``),n=e.lineNumber;return`
8
-
9
- Check your code at `+t+`:`+n+`.`}return``}var Oe={};function ke(e){var t=Ee();if(!t){var n=typeof e==`string`?e:e.displayName||e.name;n&&(t=`
10
-
11
- Check the top-level render call using <`+n+`>.`)}return t}function Ae(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=ke(t);if(!Oe[n]){Oe[n]=!0;var r=``;e&&e._owner&&e._owner!==Y.current&&(r=` It was passed a child from `+x(e._owner.type)+`.`),Z(e),y(`Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.`,n,r),Z(null)}}}function je(e,t){if(typeof e==`object`){if(H(e))for(var n=0;n<e.length;n++){var r=e[n];$(r)&&Ae(r,t)}else if($(e))e._store&&(e._store.validated=!0);else if(e){var i=_(e);if(typeof i==`function`&&i!==e.entries)for(var a=i.call(e),o;!(o=a.next()).done;)$(o.value)&&Ae(o.value,t)}}}function Me(e){var t=e.type;if(!(t==null||typeof t==`string`)){var n;if(typeof t==`function`)n=t.propTypes;else if(typeof t==`object`&&(t.$$typeof===l||t.$$typeof===f))n=t.propTypes;else return;if(n){var r=x(t);me(n,e.props,`prop`,r,e)}else t.PropTypes!==void 0&&!Q&&(Q=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(t)||`Unknown`));typeof t.getDefaultProps==`function`&&!t.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ne(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if(r!==`children`&&r!==`key`){Z(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Z(null);break}}e.ref!==null&&(Z(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}var Pe={};function Fe(e,t,r,a,o,s){var c=se(e);if(!c){var l=``;(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(l+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`);var u=De(o);u?l+=u:l+=Ee();var d;e===null?d=`null`:H(e)?d=`array`:e!==void 0&&e.$$typeof===n?(d=`<`+(x(e.type)||`Unknown`)+` />`,l=` Did you accidentally export a JSX literal instead of a component?`):d=typeof e,y(`React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s`,d,l)}var f=Te(e,t,r,o,s);if(f==null)return f;if(c){var p=t.children;if(p!==void 0)if(a)if(H(p)){for(var m=0;m<p.length;m++)je(p[m],e);Object.freeze&&Object.freeze(p)}else y(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else je(p,e)}if(R.call(t,`key`)){var h=x(e),g=Object.keys(t).filter(function(e){return e!==`key`}),_=g.length>0?`{key: someKey, `+g.join(`: ..., `)+`: ...}`:`{key: someKey}`;Pe[h+_]||(y(`A props object containing a "key" prop is being spread into JSX:
12
- let props = %s;
13
- <%s {...props} />
14
- React keys must be passed directly to JSX without using spread:
15
- let props = %s;
16
- <%s key={someKey} {...props} />`,_,h,g.length>0?`{`+g.join(`: ..., `)+`: ...}`:`{}`,h),Pe[h+_]=!0)}return e===i?Ne(f):Me(f),f}function Ie(e,t,n){return Fe(e,t,n,!0)}function Le(e,t,n){return Fe(e,t,n,!1)}var Re=Le,ze=Ie;e.Fragment=i,e.jsx=Re,e.jsxs=ze})()}));Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e()}});
@@ -1,453 +0,0 @@
1
- import { __commonJSMin as e, __require as t } from "./index2.esm.js";
2
- //#region node_modules/react/cjs/react-jsx-runtime.development.js
3
- var n = /* @__PURE__ */ e(((e) => {
4
- process.env.NODE_ENV !== "production" && (function() {
5
- var n = t("react"), r = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, _ = "@@iterator";
6
- function ee(e) {
7
- if (typeof e != "object" || !e) return null;
8
- var t = g && e[g] || e[_];
9
- return typeof t == "function" ? t : null;
10
- }
11
- var v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
12
- function y(e) {
13
- te("error", e, [...arguments].slice(1));
14
- }
15
- function te(e, t, n) {
16
- var r = v.ReactDebugCurrentFrame.getStackAddendum();
17
- r !== "" && (t += "%s", n = n.concat([r]));
18
- var i = n.map(function(e) {
19
- return String(e);
20
- });
21
- i.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, i);
22
- }
23
- var ne = !1, re = !1, ie = !1, ae = !1, oe = !1, se = Symbol.for("react.module.reference");
24
- function ce(e) {
25
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || oe || e === o || e === d || e === f || ae || e === h || ne || re || ie || typeof e == "object" && e && (e.$$typeof === m || e.$$typeof === p || e.$$typeof === c || e.$$typeof === l || e.$$typeof === u || e.$$typeof === se || e.getModuleId !== void 0));
26
- }
27
- function le(e, t, n) {
28
- var r = e.displayName;
29
- if (r) return r;
30
- var i = t.displayName || t.name || "";
31
- return i === "" ? n : n + "(" + i + ")";
32
- }
33
- function b(e) {
34
- return e.displayName || "Context";
35
- }
36
- function x(e) {
37
- if (e == null) return null;
38
- if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null;
39
- if (typeof e == "string") return e;
40
- switch (e) {
41
- case a: return "Fragment";
42
- case i: return "Portal";
43
- case s: return "Profiler";
44
- case o: return "StrictMode";
45
- case d: return "Suspense";
46
- case f: return "SuspenseList";
47
- }
48
- if (typeof e == "object") switch (e.$$typeof) {
49
- case l: return b(e) + ".Consumer";
50
- case c: return b(e._context) + ".Provider";
51
- case u: return le(e, e.render, "ForwardRef");
52
- case p:
53
- var t = e.displayName || null;
54
- return t === null ? x(e.type) || "Memo" : t;
55
- case m:
56
- var n = e, r = n._payload, h = n._init;
57
- try {
58
- return x(h(r));
59
- } catch {
60
- return null;
61
- }
62
- }
63
- return null;
64
- }
65
- var S = Object.assign, C = 0, w, T, E, ue, D, O, k;
66
- function A() {}
67
- A.__reactDisabledLog = !0;
68
- function de() {
69
- if (C === 0) {
70
- w = console.log, T = console.info, E = console.warn, ue = console.error, D = console.group, O = console.groupCollapsed, k = console.groupEnd;
71
- var e = {
72
- configurable: !0,
73
- enumerable: !0,
74
- value: A,
75
- writable: !0
76
- };
77
- Object.defineProperties(console, {
78
- info: e,
79
- log: e,
80
- warn: e,
81
- error: e,
82
- group: e,
83
- groupCollapsed: e,
84
- groupEnd: e
85
- });
86
- }
87
- C++;
88
- }
89
- function fe() {
90
- if (C--, C === 0) {
91
- var e = {
92
- configurable: !0,
93
- enumerable: !0,
94
- writable: !0
95
- };
96
- Object.defineProperties(console, {
97
- log: S({}, e, { value: w }),
98
- info: S({}, e, { value: T }),
99
- warn: S({}, e, { value: E }),
100
- error: S({}, e, { value: ue }),
101
- group: S({}, e, { value: D }),
102
- groupCollapsed: S({}, e, { value: O }),
103
- groupEnd: S({}, e, { value: k })
104
- });
105
- }
106
- C < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
107
- }
108
- var j = v.ReactCurrentDispatcher, M;
109
- function N(e, t, n) {
110
- if (M === void 0) try {
111
- throw Error();
112
- } catch (e) {
113
- var r = e.stack.trim().match(/\n( *(at )?)/);
114
- M = r && r[1] || "";
115
- }
116
- return "\n" + M + e;
117
- }
118
- var P = !1, F = new (typeof WeakMap == "function" ? WeakMap : Map)();
119
- function I(e, t) {
120
- if (!e || P) return "";
121
- var n = F.get(e);
122
- if (n !== void 0) return n;
123
- var r;
124
- P = !0;
125
- var i = Error.prepareStackTrace;
126
- Error.prepareStackTrace = void 0;
127
- var a = j.current;
128
- j.current = null, de();
129
- try {
130
- if (t) {
131
- var o = function() {
132
- throw Error();
133
- };
134
- if (Object.defineProperty(o.prototype, "props", { set: function() {
135
- throw Error();
136
- } }), typeof Reflect == "object" && Reflect.construct) {
137
- try {
138
- Reflect.construct(o, []);
139
- } catch (e) {
140
- r = e;
141
- }
142
- Reflect.construct(e, [], o);
143
- } else {
144
- try {
145
- o.call();
146
- } catch (e) {
147
- r = e;
148
- }
149
- e.call(o.prototype);
150
- }
151
- } else {
152
- try {
153
- throw Error();
154
- } catch (e) {
155
- r = e;
156
- }
157
- e();
158
- }
159
- } catch (t) {
160
- if (t && r && typeof t.stack == "string") {
161
- for (var s = t.stack.split("\n"), c = r.stack.split("\n"), l = s.length - 1, u = c.length - 1; l >= 1 && u >= 0 && s[l] !== c[u];) u--;
162
- for (; l >= 1 && u >= 0; l--, u--) if (s[l] !== c[u]) {
163
- if (l !== 1 || u !== 1) do
164
- if (l--, u--, u < 0 || s[l] !== c[u]) {
165
- var d = "\n" + s[l].replace(" at new ", " at ");
166
- return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && F.set(e, d), d;
167
- }
168
- while (l >= 1 && u >= 0);
169
- break;
170
- }
171
- }
172
- } finally {
173
- P = !1, j.current = a, fe(), Error.prepareStackTrace = i;
174
- }
175
- var f = e ? e.displayName || e.name : "", p = f ? N(f) : "";
176
- return typeof e == "function" && F.set(e, p), p;
177
- }
178
- function pe(e, t, n) {
179
- return I(e, !1);
180
- }
181
- function me(e) {
182
- var t = e.prototype;
183
- return !!(t && t.isReactComponent);
184
- }
185
- function L(e, t, n) {
186
- if (e == null) return "";
187
- if (typeof e == "function") return I(e, me(e));
188
- if (typeof e == "string") return N(e);
189
- switch (e) {
190
- case d: return N("Suspense");
191
- case f: return N("SuspenseList");
192
- }
193
- if (typeof e == "object") switch (e.$$typeof) {
194
- case u: return pe(e.render);
195
- case p: return L(e.type, t, n);
196
- case m:
197
- var r = e, i = r._payload, a = r._init;
198
- try {
199
- return L(a(i), t, n);
200
- } catch {}
201
- }
202
- return "";
203
- }
204
- var R = Object.prototype.hasOwnProperty, z = {}, B = v.ReactDebugCurrentFrame;
205
- function V(e) {
206
- if (e) {
207
- var t = e._owner, n = L(e.type, e._source, t ? t.type : null);
208
- B.setExtraStackFrame(n);
209
- } else B.setExtraStackFrame(null);
210
- }
211
- function he(e, t, n, r, i) {
212
- var a = Function.call.bind(R);
213
- for (var o in e) if (a(e, o)) {
214
- var s = void 0;
215
- try {
216
- if (typeof e[o] != "function") {
217
- var c = Error((r || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
218
- throw c.name = "Invariant Violation", c;
219
- }
220
- s = e[o](t, o, r, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
221
- } catch (e) {
222
- s = e;
223
- }
224
- s && !(s instanceof Error) && (V(i), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", r || "React class", n, o, typeof s), V(null)), s instanceof Error && !(s.message in z) && (z[s.message] = !0, V(i), y("Failed %s type: %s", n, s.message), V(null));
225
- }
226
- }
227
- var ge = Array.isArray;
228
- function H(e) {
229
- return ge(e);
230
- }
231
- function _e(e) {
232
- return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
233
- }
234
- function ve(e) {
235
- try {
236
- return U(e), !1;
237
- } catch {
238
- return !0;
239
- }
240
- }
241
- function U(e) {
242
- return "" + e;
243
- }
244
- function W(e) {
245
- if (ve(e)) return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _e(e)), U(e);
246
- }
247
- var G = v.ReactCurrentOwner, ye = {
248
- key: !0,
249
- ref: !0,
250
- __self: !0,
251
- __source: !0
252
- }, K, q, J = {};
253
- function be(e) {
254
- if (R.call(e, "ref")) {
255
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
256
- if (t && t.isReactWarning) return !1;
257
- }
258
- return e.ref !== void 0;
259
- }
260
- function xe(e) {
261
- if (R.call(e, "key")) {
262
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
263
- if (t && t.isReactWarning) return !1;
264
- }
265
- return e.key !== void 0;
266
- }
267
- function Se(e, t) {
268
- if (typeof e.ref == "string" && G.current && t && G.current.stateNode !== t) {
269
- var n = x(G.current.type);
270
- J[n] || (y("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", x(G.current.type), e.ref), J[n] = !0);
271
- }
272
- }
273
- function Ce(e, t) {
274
- var n = function() {
275
- K || (K = !0, y("%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://reactjs.org/link/special-props)", t));
276
- };
277
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
278
- get: n,
279
- configurable: !0
280
- });
281
- }
282
- function we(e, t) {
283
- var n = function() {
284
- q || (q = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", t));
285
- };
286
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
287
- get: n,
288
- configurable: !0
289
- });
290
- }
291
- var Te = function(e, t, n, i, a, o, s) {
292
- var c = {
293
- $$typeof: r,
294
- type: e,
295
- key: t,
296
- ref: n,
297
- props: s,
298
- _owner: o
299
- };
300
- return c._store = {}, Object.defineProperty(c._store, "validated", {
301
- configurable: !1,
302
- enumerable: !1,
303
- writable: !0,
304
- value: !1
305
- }), Object.defineProperty(c, "_self", {
306
- configurable: !1,
307
- enumerable: !1,
308
- writable: !1,
309
- value: i
310
- }), Object.defineProperty(c, "_source", {
311
- configurable: !1,
312
- enumerable: !1,
313
- writable: !1,
314
- value: a
315
- }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
316
- };
317
- function Ee(e, t, n, r, i) {
318
- var a, o = {}, s = null, c = null;
319
- for (a in n !== void 0 && (W(n), s = "" + n), xe(t) && (W(t.key), s = "" + t.key), be(t) && (c = t.ref, Se(t, i)), t) R.call(t, a) && !ye.hasOwnProperty(a) && (o[a] = t[a]);
320
- if (e && e.defaultProps) {
321
- var l = e.defaultProps;
322
- for (a in l) o[a] === void 0 && (o[a] = l[a]);
323
- }
324
- if (s || c) {
325
- var u = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
326
- s && Ce(o, u), c && we(o, u);
327
- }
328
- return Te(e, s, c, i, r, G.current, o);
329
- }
330
- var Y = v.ReactCurrentOwner, X = v.ReactDebugCurrentFrame;
331
- function Z(e) {
332
- if (e) {
333
- var t = e._owner, n = L(e.type, e._source, t ? t.type : null);
334
- X.setExtraStackFrame(n);
335
- } else X.setExtraStackFrame(null);
336
- }
337
- var Q = !1;
338
- function $(e) {
339
- return typeof e == "object" && !!e && e.$$typeof === r;
340
- }
341
- function De() {
342
- if (Y.current) {
343
- var e = x(Y.current.type);
344
- if (e) return "\n\nCheck the render method of `" + e + "`.";
345
- }
346
- return "";
347
- }
348
- function Oe(e) {
349
- if (e !== void 0) {
350
- var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
351
- return "\n\nCheck your code at " + t + ":" + n + ".";
352
- }
353
- return "";
354
- }
355
- var ke = {};
356
- function Ae(e) {
357
- var t = De();
358
- if (!t) {
359
- var n = typeof e == "string" ? e : e.displayName || e.name;
360
- n && (t = "\n\nCheck the top-level render call using <" + n + ">.");
361
- }
362
- return t;
363
- }
364
- function je(e, t) {
365
- if (!(!e._store || e._store.validated || e.key != null)) {
366
- e._store.validated = !0;
367
- var n = Ae(t);
368
- if (!ke[n]) {
369
- ke[n] = !0;
370
- var r = "";
371
- e && e._owner && e._owner !== Y.current && (r = " It was passed a child from " + x(e._owner.type) + "."), Z(e), y("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", n, r), Z(null);
372
- }
373
- }
374
- }
375
- function Me(e, t) {
376
- if (typeof e == "object") {
377
- if (H(e)) for (var n = 0; n < e.length; n++) {
378
- var r = e[n];
379
- $(r) && je(r, t);
380
- }
381
- else if ($(e)) e._store && (e._store.validated = !0);
382
- else if (e) {
383
- var i = ee(e);
384
- if (typeof i == "function" && i !== e.entries) for (var a = i.call(e), o; !(o = a.next()).done;) $(o.value) && je(o.value, t);
385
- }
386
- }
387
- }
388
- function Ne(e) {
389
- var t = e.type;
390
- if (!(t == null || typeof t == "string")) {
391
- var n;
392
- if (typeof t == "function") n = t.propTypes;
393
- else if (typeof t == "object" && (t.$$typeof === u || t.$$typeof === p)) n = t.propTypes;
394
- else return;
395
- if (n) {
396
- var r = x(t);
397
- he(n, e.props, "prop", r, e);
398
- } else t.PropTypes !== void 0 && !Q && (Q = !0, y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x(t) || "Unknown"));
399
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
400
- }
401
- }
402
- function Pe(e) {
403
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
404
- var r = t[n];
405
- if (r !== "children" && r !== "key") {
406
- Z(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", r), Z(null);
407
- break;
408
- }
409
- }
410
- e.ref !== null && (Z(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null));
411
- }
412
- var Fe = {};
413
- function Ie(e, t, n, i, o, s) {
414
- var c = ce(e);
415
- if (!c) {
416
- var l = "";
417
- (e === void 0 || typeof e == "object" && e && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
418
- var u = Oe(o);
419
- u ? l += u : l += De();
420
- var d;
421
- e === null ? d = "null" : H(e) ? d = "array" : e !== void 0 && e.$$typeof === r ? (d = "<" + (x(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, l);
422
- }
423
- var f = Ee(e, t, n, o, s);
424
- if (f == null) return f;
425
- if (c) {
426
- var p = t.children;
427
- if (p !== void 0) if (i) if (H(p)) {
428
- for (var m = 0; m < p.length; m++) Me(p[m], e);
429
- Object.freeze && Object.freeze(p);
430
- } else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
431
- else Me(p, e);
432
- }
433
- if (R.call(t, "key")) {
434
- var h = x(e), g = Object.keys(t).filter(function(e) {
435
- return e !== "key";
436
- }), _ = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
437
- Fe[h + _] || (y("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} />", _, h, g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}", h), Fe[h + _] = !0);
438
- }
439
- return e === a ? Pe(f) : Ne(f), f;
440
- }
441
- function Le(e, t, n) {
442
- return Ie(e, t, n, !0);
443
- }
444
- function Re(e, t, n) {
445
- return Ie(e, t, n, !1);
446
- }
447
- var ze = Re, Be = Le;
448
- e.Fragment = a, e.jsx = ze, e.jsxs = Be;
449
- })();
450
- }));
451
- //#endregion
452
- export default n();
453
- export { n as require_react_jsx_runtime_development };
@@ -1 +0,0 @@
1
- "use strict";const e=require(`./index2.cjs.js`),t=require(`./index21.cjs.js`),n=require(`./index22.cjs.js`);var r=e.__commonJSMin(((e,r)=>{process.env.NODE_ENV===`production`?r.exports=t.default:r.exports=n.default}));Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return r()}});
@@ -1,10 +0,0 @@
1
- import { __commonJSMin as e } from "./index2.esm.js";
2
- import { require_react_jsx_runtime_production_min as t } from "./index21.esm.js";
3
- import { require_react_jsx_runtime_development as n } from "./index22.esm.js";
4
- //#region node_modules/react/jsx-runtime.js
5
- var r = /* @__PURE__ */ e(((e, r) => {
6
- process.env.NODE_ENV === "production" ? r.exports = t() : r.exports = n();
7
- }));
8
- //#endregion
9
- export default r();
10
- export { r as require_jsx_runtime };
@@ -1 +0,0 @@
1
- const e=require(`./index2.cjs.js`);;/* empty css */const t=require(`./index23.cjs.js`);let n=require(`react`);n=e.__toESM(n,1);let r=require(`@ant-design/icons`),i=require(`antd`);var a=t.default,o=({searchChange:e,isVisible:t,closeQuery:n})=>{let o=i.Form.Item,s=i.Select.Option,c=e=>{console.log(e)},l=t=>{console.log(t),e&&e(t)},u=()=>{n&&n(!1)};return(0,a.jsx)(a.Fragment,{children:t&&(0,a.jsxs)(`div`,{className:`query-node z-10`,children:[(0,a.jsxs)(`div`,{className:`title`,children:[(0,a.jsx)(`span`,{children:`查询节点`}),(0,a.jsx)(r.CloseOutlined,{onClick:()=>u()})]}),(0,a.jsxs)(i.Form,{onFinish:l,children:[(0,a.jsx)(o,{id:`select`,label:`查询类型:`,labelCol:{span:6},name:`id`,wrapperCol:{span:14},children:(0,a.jsxs)(i.Select,{id:`select`,placeholder:`请选择`,style:{width:200},onChange:c,children:[(0,a.jsx)(s,{value:`id`,select:!0,children:`id`}),(0,a.jsx)(s,{value:`名称`,children:`名称`})]})}),(0,a.jsx)(o,{id:`control-input`,label:`查询类容:`,labelCol:{span:6},name:`content`,wrapperCol:{span:14},children:(0,a.jsx)(i.Input,{id:`control-input`,placeholder:`请输入`,style:{width:200}})}),(0,a.jsx)(o,{label:null,style:{textAlign:`center`},children:(0,a.jsx)(i.Button,{type:`primary`,htmlType:`submit`,children:`查询`})})]})]})})};exports.default=o;
@@ -1,70 +0,0 @@
1
- /* empty css */
2
- import { require_jsx_runtime as e } from "./index23.esm.js";
3
- import "react";
4
- import { CloseOutlined as t } from "@ant-design/icons";
5
- import { Button as n, Form as r, Input as i, Select as a } from "antd";
6
- //#region src/components/Graph/components/QueryNode/index.tsx
7
- var o = e(), s = ({ searchChange: e, isVisible: s, closeQuery: c }) => {
8
- let l = r.Item, u = a.Option, d = (e) => {
9
- console.log(e);
10
- }, f = (t) => {
11
- console.log(t), e && e(t);
12
- }, p = () => {
13
- c && c(!1);
14
- };
15
- return /* @__PURE__ */ (0, o.jsx)(o.Fragment, { children: s && /* @__PURE__ */ (0, o.jsxs)("div", {
16
- className: "query-node z-10",
17
- children: [/* @__PURE__ */ (0, o.jsxs)("div", {
18
- className: "title",
19
- children: [/* @__PURE__ */ (0, o.jsx)("span", { children: "查询节点" }), /* @__PURE__ */ (0, o.jsx)(t, { onClick: () => p() })]
20
- }), /* @__PURE__ */ (0, o.jsxs)(r, {
21
- onFinish: f,
22
- children: [
23
- /* @__PURE__ */ (0, o.jsx)(l, {
24
- id: "select",
25
- label: "查询类型:",
26
- labelCol: { span: 6 },
27
- name: "id",
28
- wrapperCol: { span: 14 },
29
- children: /* @__PURE__ */ (0, o.jsxs)(a, {
30
- id: "select",
31
- placeholder: "请选择",
32
- style: { width: 200 },
33
- onChange: d,
34
- children: [/* @__PURE__ */ (0, o.jsx)(u, {
35
- value: "id",
36
- select: !0,
37
- children: "id"
38
- }), /* @__PURE__ */ (0, o.jsx)(u, {
39
- value: "名称",
40
- children: "名称"
41
- })]
42
- })
43
- }),
44
- /* @__PURE__ */ (0, o.jsx)(l, {
45
- id: "control-input",
46
- label: "查询类容:",
47
- labelCol: { span: 6 },
48
- name: "content",
49
- wrapperCol: { span: 14 },
50
- children: /* @__PURE__ */ (0, o.jsx)(i, {
51
- id: "control-input",
52
- placeholder: "请输入",
53
- style: { width: 200 }
54
- })
55
- }),
56
- /* @__PURE__ */ (0, o.jsx)(l, {
57
- label: null,
58
- style: { textAlign: "center" },
59
- children: /* @__PURE__ */ (0, o.jsx)(n, {
60
- type: "primary",
61
- htmlType: "submit",
62
- children: "查询"
63
- })
64
- })
65
- ]
66
- })]
67
- }) });
68
- };
69
- //#endregion
70
- export { s as default };
@@ -1 +0,0 @@
1
- const e=require(`./index2.cjs.js`),t=require(`./index18.cjs.js`),n=require(`./index23.cjs.js`);;/* empty css */let r=require(`react`);r=e.__toESM(r,1);let i=require(`@ant-design/icons`),a=require(`antd`);var o=n.default,s=({searchChange:e,isVisible:n,closePath:s,analysis:c})=>{let{pathNodes:l,setPathNodes:u,graphData:d}=(0,r.useContext)(t.GraphContext),f=()=>{s&&s(!1)},p=()=>{c&&c(l)},m=d.filter(e=>e.group===`nodes`).map(e=>e.data);return(0,o.jsx)(o.Fragment,{children:n&&(0,o.jsxs)(`div`,{className:`path-node`,children:[(0,o.jsxs)(`div`,{className:`title`,children:[(0,o.jsx)(`span`,{children:`路径分析`}),(0,o.jsx)(i.CloseOutlined,{onClick:()=>f()})]}),l.map((e,t)=>(0,o.jsxs)(`div`,{className:`node-input-row`,children:[(0,o.jsxs)(`span`,{children:[`节点 `,t+1,`:`]}),(0,o.jsx)(a.Select,{showSearch:!0,style:{width:`60%`},options:m.map(e=>({value:e.name,label:e.name})),placeholder:`请选择节点`,className:`select-node`,value:e,onChange:e=>{let n=[...l];n[t]=e,u(n)}}),l.length>2&&(0,o.jsx)(`button`,{className:`btn remove-node-btn`,onClick:()=>{u(l.filter((e,n)=>n!==t))},children:`删除`})]},t)),(0,o.jsx)(`div`,{className:`btn-group`,children:(0,o.jsxs)(a.Space,{children:[(0,o.jsx)(a.Button,{onClick:()=>u([...l,``]),children:`添加节点`}),(0,o.jsx)(a.Button,{type:`primary`,onClick:()=>p(),children:`计算路径`})]})})]})})};exports.default=s;
@@ -1,68 +0,0 @@
1
- import { GraphContext as e } from "./index18.esm.js";
2
- import { require_jsx_runtime as t } from "./index23.esm.js";
3
- /* empty css */
4
- import { useContext as n } from "react";
5
- import { CloseOutlined as r } from "@ant-design/icons";
6
- import { Button as i, Select as a, Space as o } from "antd";
7
- //#region src/components/Graph/components/PathAnalysis/index.tsx
8
- var s = t(), c = ({ searchChange: t, isVisible: c, closePath: l, analysis: u }) => {
9
- let { pathNodes: d, setPathNodes: f, graphData: p } = n(e), m = () => {
10
- l && l(!1);
11
- }, h = () => {
12
- u && u(d);
13
- }, g = p.filter((e) => e.group === "nodes").map((e) => e.data);
14
- return /* @__PURE__ */ (0, s.jsx)(s.Fragment, { children: c && /* @__PURE__ */ (0, s.jsxs)("div", {
15
- className: "path-node",
16
- children: [
17
- /* @__PURE__ */ (0, s.jsxs)("div", {
18
- className: "title",
19
- children: [/* @__PURE__ */ (0, s.jsx)("span", { children: "路径分析" }), /* @__PURE__ */ (0, s.jsx)(r, { onClick: () => m() })]
20
- }),
21
- d.map((e, t) => /* @__PURE__ */ (0, s.jsxs)("div", {
22
- className: "node-input-row",
23
- children: [
24
- /* @__PURE__ */ (0, s.jsxs)("span", { children: [
25
- "节点 ",
26
- t + 1,
27
- ":"
28
- ] }),
29
- /* @__PURE__ */ (0, s.jsx)(a, {
30
- showSearch: !0,
31
- style: { width: "60%" },
32
- options: g.map((e) => ({
33
- value: e.name,
34
- label: e.name
35
- })),
36
- placeholder: "请选择节点",
37
- className: "select-node",
38
- value: e,
39
- onChange: (e) => {
40
- let n = [...d];
41
- n[t] = e, f(n);
42
- }
43
- }),
44
- d.length > 2 && /* @__PURE__ */ (0, s.jsx)("button", {
45
- className: "btn remove-node-btn",
46
- onClick: () => {
47
- f(d.filter((e, n) => n !== t));
48
- },
49
- children: "删除"
50
- })
51
- ]
52
- }, t)),
53
- /* @__PURE__ */ (0, s.jsx)("div", {
54
- className: "btn-group",
55
- children: /* @__PURE__ */ (0, s.jsxs)(o, { children: [/* @__PURE__ */ (0, s.jsx)(i, {
56
- onClick: () => f([...d, ""]),
57
- children: "添加节点"
58
- }), /* @__PURE__ */ (0, s.jsx)(i, {
59
- type: "primary",
60
- onClick: () => h(),
61
- children: "计算路径"
62
- })] })
63
- })
64
- ]
65
- }) });
66
- };
67
- //#endregion
68
- export { c as default };
@@ -1 +0,0 @@
1
- const e=require(`./index2.cjs.js`),t=require(`./index18.cjs.js`),n=require(`./index23.cjs.js`);;/* empty css */let r=require(`react`);r=e.__toESM(r,1);let i=require(`@ant-design/icons`),a=require(`antd`),o=require(`antd/es/form/FormItem`);o=e.__toESM(o,1);var s=n.default,c=(0,r.forwardRef)(({onLevelClick:e},n)=>{let[c,l]=(0,r.useState)(!1),{graphData:u}=(0,r.useContext)(t.GraphContext),[d,f]=(0,r.useState)({level:1});(0,r.useImperativeHandle)(n,()=>({open:e=>{l(!0)},close:()=>l(!1)}));let p=()=>{l(!1)},m=t=>{e(t.name,t.level)},h=u.filter(e=>e.group===`nodes`).map(e=>e.data);return(0,s.jsx)(s.Fragment,{children:c&&(0,s.jsxs)(`div`,{className:`query-node z-10`,children:[(0,s.jsxs)(`div`,{className:`title`,children:[(0,s.jsx)(`span`,{children:`分析N层关系`}),(0,s.jsx)(i.CloseOutlined,{onClick:()=>p()})]}),(0,s.jsxs)(a.Form,{onFinish:m,initialValues:d,children:[(0,s.jsx)(o.default,{label:`节点名称`,labelCol:{span:6},name:`name`,wrapperCol:{span:14},children:(0,s.jsx)(a.Select,{showSearch:!0,style:{width:`200px`},options:h.map(e=>({value:e.name,label:e.name}))})}),(0,s.jsx)(o.default,{id:`level`,label:`层级`,labelCol:{span:6},name:`level`,wrapperCol:{span:14},children:(0,s.jsx)(a.Input,{placeholder:`请输入`,style:{width:200},type:`number`,min:1})}),(0,s.jsx)(o.default,{label:null,style:{textAlign:`center`},children:(0,s.jsx)(a.Button,{type:`primary`,htmlType:`submit`,children:`查询`})})]})]})})});exports.default=c;