@kengic/core.react 0.0.1-beta.18 → 0.0.1-beta.19

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.
@@ -45754,28 +45754,28 @@ function Pne(e) {
45754
45754
  }
45755
45755
  ) });
45756
45756
  }
45757
- function Dne(e) {
45758
- const [t, r] = xZ({ open: !1 });
45757
+ function Dne() {
45758
+ const [e, t] = xZ({ open: !1 });
45759
45759
  lZ(["ctrl.shift.f7"], () => {
45760
- i();
45760
+ r();
45761
45761
  });
45762
- function i() {
45763
- t.open ? r((c) => {
45764
- c.open = !1;
45765
- }) : r((c) => {
45766
- c.open = !0;
45762
+ function r() {
45763
+ e.open ? t((l) => {
45764
+ l.open = !1;
45765
+ }) : t((l) => {
45766
+ l.open = !0;
45767
45767
  });
45768
45768
  }
45769
- function l() {
45770
- r((c) => {
45771
- c.open = !1;
45769
+ function i() {
45770
+ t((l) => {
45771
+ l.open = !1;
45772
45772
  });
45773
45773
  }
45774
- return /* @__PURE__ */ wn.jsx(wn.Fragment, { children: t.open && /* @__PURE__ */ wn.jsx(
45774
+ return /* @__PURE__ */ wn.jsx(wn.Fragment, { children: e.open && /* @__PURE__ */ wn.jsx(
45775
45775
  Pne,
45776
45776
  {
45777
- open: t.open,
45778
- onClose: l
45777
+ open: e.open,
45778
+ onClose: i
45779
45779
  }
45780
45780
  ) });
45781
45781
  }
@@ -45785,7 +45785,6 @@ class kne extends HTMLElement {
45785
45785
  yw(this, "unmount", null);
45786
45786
  }
45787
45787
  connectedCallback() {
45788
- this.id = this.getAttribute("id") ?? "";
45789
45788
  const r = FS(this);
45790
45789
  r.render(
45791
45790
  /* @__PURE__ */ wn.jsx(NF, { id: this.id, children: /* @__PURE__ */ wn.jsx(Dne, {}) })
@@ -47273,21 +47272,21 @@ function Zre() {
47273
47272
  }
47274
47273
  ) });
47275
47274
  }
47276
- function Jre(e) {
47277
- const t = GQ(), r = Sj(tR(t)), i = (() => {
47278
- let l = "text";
47279
- return r || (l += " kgcrant-kg-invisible"), l;
47275
+ function Jre() {
47276
+ const e = GQ(), t = Sj(tR(e)), r = (() => {
47277
+ let i = "text";
47278
+ return t || (i += " kgcrant-kg-invisible"), i;
47280
47279
  })();
47281
- return /* @__PURE__ */ wn.jsxs(qre, { value: t, children: [
47280
+ return /* @__PURE__ */ wn.jsxs(qre, { value: e, children: [
47282
47281
  /* @__PURE__ */ wn.jsxs(
47283
47282
  jR,
47284
47283
  {
47285
- className: i,
47284
+ className: r,
47286
47285
  placement: "bottomRight",
47287
47286
  title: "TITLE",
47288
47287
  children: [
47289
47288
  "TODO[",
47290
- t,
47289
+ e,
47291
47290
  "]"
47292
47291
  ]
47293
47292
  }
@@ -47301,7 +47300,7 @@ class eae extends HTMLElement {
47301
47300
  yw(this, "unmount", null);
47302
47301
  }
47303
47302
  connectedCallback() {
47304
- console.log("000", this.id, this.getAttribute("id")), this.id = this.getAttribute("id") ?? "", ji.dispatch(Ure({ id: this.id }));
47303
+ ji.dispatch(Ure({ id: this.id }));
47305
47304
  const r = FS(this);
47306
47305
  r.render(
47307
47306
  /* @__PURE__ */ wn.jsx(NF, { id: this.id, children: /* @__PURE__ */ wn.jsx(Qne, { store: ji, children: /* @__PURE__ */ wn.jsx(Jre, {}) }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.1-beta.18",
3
+ "version": "0.0.1-beta.19",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { KgVarConfigProps } from './index.vm.tsx';
3
2
  /**
4
3
  * 变量配置.
5
4
  */
6
- export declare function KgVarConfig(props: KgVarConfigProps): React.JSX.Element;
5
+ export declare function KgVarConfig(): React.JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import './KgWorkStation.css';
3
- import { KgWorkStationProps } from './index.vm';
4
3
  /**
5
4
  * 选择工作站.
6
5
  */
7
- export declare function KgWorkStation(props: KgWorkStationProps): React.JSX.Element;
6
+ export declare function KgWorkStation(): React.JSX.Element;