@dao42/d42paas-front 0.7.43 → 0.7.44

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.
@@ -27160,7 +27160,7 @@ var DropdownMenu$1 = /* @__PURE__ */ React.forwardRef(function(props2, ref) {
27160
27160
  if (sidenav !== null && sidenav !== void 0 && sidenav.expanded) {
27161
27161
  return /* @__PURE__ */ jsx(SidenavDropdownMenu$1, __spreadValues({}, omit_1(props2, "classPrefix")));
27162
27162
  }
27163
- var _omit = omit_1(rest2, ["trigger"]), icon = _omit.icon, className = _omit.className, disabled = _omit.disabled, menuProps = _objectWithoutPropertiesLoose$4(_omit, ["icon", "className", "disabled"]);
27163
+ var _omit2 = omit_1(rest2, ["trigger"]), icon = _omit2.icon, className = _omit2.className, disabled = _omit2.disabled, menuProps = _objectWithoutPropertiesLoose$4(_omit2, ["icon", "className", "disabled"]);
27164
27164
  var Icon3 = rtl ? AngleLeftIcon : AngleRightIcon;
27165
27165
  return /* @__PURE__ */ jsx(Menu$3, {
27166
27166
  openMenuOn: ["mouseover", "click"],
@@ -44773,7 +44773,6 @@ class DaoPaaS {
44773
44773
  this.on(data, _d2);
44774
44774
  return;
44775
44775
  }
44776
- console.log(data);
44777
44776
  this.on(data);
44778
44777
  }
44779
44778
  clearIDB(callback) {
@@ -44850,48 +44849,44 @@ class DaoPaaS {
44850
44849
  }
44851
44850
  }
44852
44851
  mapRender(components) {
44853
- components == null ? void 0 : components.forEach(({
44854
- container,
44855
- props: props2,
44856
- item
44857
- }, _index) => {
44858
- switch (item) {
44852
+ components == null ? void 0 : components.forEach((arg, _index) => {
44853
+ switch (arg.item) {
44859
44854
  case "Page":
44860
44855
  this.Page({
44861
- container,
44862
- props: props2
44856
+ container: arg.container,
44857
+ props: arg.props || _omit()
44863
44858
  });
44864
44859
  break;
44865
44860
  case "Tree":
44866
44861
  this.Tree({
44867
- container,
44868
- props: props2
44862
+ container: arg.container,
44863
+ props: arg.props
44869
44864
  });
44870
44865
  break;
44871
44866
  case "Editor":
44872
- this.Editor(__spreadValues({
44873
- container,
44874
- props: __spreadProps(__spreadValues({}, props2), {
44867
+ this.Editor({
44868
+ container: arg.container,
44869
+ props: __spreadProps(__spreadValues({}, arg.props), {
44875
44870
  serviceWorkerOrigin: this.serviceWorkerOrigin
44876
44871
  })
44877
- }, props2));
44872
+ });
44878
44873
  break;
44879
44874
  case "Console":
44880
44875
  this.Console({
44881
- container,
44882
- props: props2
44876
+ container: arg.container,
44877
+ props: arg.props || _omit()
44883
44878
  });
44884
44879
  break;
44885
44880
  case "Browser":
44886
44881
  this.Browser({
44887
- container,
44888
- props: props2
44882
+ container: arg.container,
44883
+ props: arg.props || _omit()
44889
44884
  });
44890
44885
  break;
44891
44886
  case "Shell":
44892
44887
  this.Shell({
44893
- container,
44894
- props: props2
44888
+ container: arg.container,
44889
+ props: arg.props || _omit()
44895
44890
  });
44896
44891
  break;
44897
44892
  }
@@ -44901,24 +44896,28 @@ class DaoPaaS {
44901
44896
  container,
44902
44897
  props: props2
44903
44898
  }) {
44904
- this.storeProps = __spreadValues({}, props2);
44899
+ const storeProps = __spreadValues({
44900
+ props: props2
44901
+ }, props2);
44905
44902
  this.pageDOM = container ? isHTMLElement$1(container) : this.pageDOM;
44906
44903
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44907
44904
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44908
- children: /* @__PURE__ */ jsx(LazyPageComponent, {
44905
+ children: /* @__PURE__ */ jsx(LazyPageComponent, __spreadProps(__spreadValues({}, storeProps), {
44909
44906
  serviceWorkerOrigin: this.serviceWorkerOrigin
44910
- })
44907
+ }))
44911
44908
  }), this.pageDOM);
44912
44909
  }
44913
44910
  Editor({
44914
44911
  container,
44915
44912
  props: props2
44916
44913
  }) {
44914
+ const storeProps = __spreadValues({
44915
+ props: props2
44916
+ }, props2);
44917
44917
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44918
- console.log(props2, 374);
44919
44918
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44920
44919
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44921
- children: /* @__PURE__ */ jsx(LazyEditorComponent$1, __spreadProps(__spreadValues({}, props2), {
44920
+ children: /* @__PURE__ */ jsx(LazyEditorComponent$1, __spreadProps(__spreadValues({}, storeProps), {
44922
44921
  serviceWorkerOrigin: this.serviceWorkerOrigin
44923
44922
  }))
44924
44923
  }), this.editorDOM);
@@ -44927,46 +44926,63 @@ class DaoPaaS {
44927
44926
  container,
44928
44927
  props: props2
44929
44928
  }) {
44929
+ const storeProps = __spreadValues({
44930
+ props: props2
44931
+ }, props2);
44930
44932
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44931
44933
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44932
44934
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44933
- children: /* @__PURE__ */ jsx(LazyShellComponent, __spreadValues({}, props2))
44935
+ children: /* @__PURE__ */ jsx(LazyShellComponent, __spreadValues({}, storeProps))
44934
44936
  }), this.editorDOM);
44935
44937
  }
44936
44938
  Tree({
44937
44939
  container,
44938
44940
  props: props2
44939
44941
  }) {
44942
+ const storeProps = __spreadValues({
44943
+ props: props2
44944
+ }, props2);
44940
44945
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44946
+ console.log(props2, 372);
44947
+ console.log(storeProps, 374);
44941
44948
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44942
44949
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44943
- children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadValues({}, props2))
44950
+ children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadValues({}, storeProps))
44944
44951
  }), this.editorDOM);
44945
44952
  }
44946
44953
  Console({
44947
44954
  container,
44948
44955
  props: props2
44949
44956
  }) {
44957
+ const storeProps = __spreadValues({
44958
+ props: props2
44959
+ }, props2);
44950
44960
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44951
44961
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44952
44962
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44953
- children: /* @__PURE__ */ jsx(LazyConsoleComponent, __spreadValues({}, props2))
44963
+ children: /* @__PURE__ */ jsx(LazyConsoleComponent, __spreadValues({}, storeProps))
44954
44964
  }), this.editorDOM);
44955
44965
  }
44956
44966
  Browser({
44957
44967
  container,
44958
44968
  props: props2
44959
44969
  }) {
44970
+ const storeProps = __spreadValues({
44971
+ props: props2
44972
+ }, props2);
44960
44973
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44961
44974
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44962
44975
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44963
- children: /* @__PURE__ */ jsx(LazyBrowserComponent, __spreadValues({}, props2))
44976
+ children: /* @__PURE__ */ jsx(LazyBrowserComponent, __spreadValues({}, storeProps))
44964
44977
  }), this.editorDOM);
44965
44978
  }
44966
44979
  }
44967
44980
  function isHTMLElement$1(arg) {
44968
44981
  return !/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(arg)) ? document.querySelector(arg) : arg;
44969
44982
  }
44983
+ function _omit(arg, arg1) {
44984
+ throw new Error("Function not implemented.");
44985
+ }
44970
44986
  var __assign$a = globalThis && globalThis.__assign || function() {
44971
44987
  __assign$a = Object.assign || function(t2) {
44972
44988
  for (var s2, i = 1, n2 = arguments.length; i < n2; i++) {
@@ -47036,7 +47052,7 @@ function _render(props2, slot, tag, name) {
47036
47052
  if (slot === void 0) {
47037
47053
  slot = {};
47038
47054
  }
47039
- var _omit = omit(props2, ["unmount", "static"]), _omit$as = _omit.as, Component = _omit$as === void 0 ? tag : _omit$as, children = _omit.children, _omit$refName = _omit.refName, refName = _omit$refName === void 0 ? "ref" : _omit$refName, passThroughProps = _objectWithoutPropertiesLoose(_omit, ["as", "children", "refName"]);
47055
+ var _omit2 = omit(props2, ["unmount", "static"]), _omit$as = _omit2.as, Component = _omit$as === void 0 ? tag : _omit$as, children = _omit2.children, _omit$refName = _omit2.refName, refName = _omit$refName === void 0 ? "ref" : _omit$refName, passThroughProps = _objectWithoutPropertiesLoose(_omit2, ["as", "children", "refName"]);
47040
47056
  var refRelatedProps = props2.ref !== void 0 ? (_ref2 = {}, _ref2[refName] = props2.ref, _ref2) : {};
47041
47057
  var resolvedChildren = typeof children === "function" ? children(slot) : children;
47042
47058
  if (passThroughProps.className && typeof passThroughProps.className === "function") {