@dao42/d42paas-front 0.7.44 → 0.7.48

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