@signalplus/params-about 0.1.45 → 0.1.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.
package/index.d.ts CHANGED
@@ -127,6 +127,10 @@ interface ParamValueEditorData {
127
127
  valueId?: string;
128
128
  [key: string]: any;
129
129
  };
130
+ defaultValue?: {
131
+ valueId?: string;
132
+ [key: string]: any;
133
+ };
130
134
  }
131
135
  interface ParamValueEditorProps {
132
136
  allParams: ParentSelectorProps['parentOptions'];
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
- * Generated: 2022-04-24
4
- * Version: 0.1.45
3
+ * Generated: 2022-04-27
4
+ * Version: 0.1.48
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -1594,6 +1594,7 @@ var ParamFormModal = /*#__PURE__*/function () {
1594
1594
  _createClass(ParamFormModal, null, [{
1595
1595
  key: "show",
1596
1596
  value: function show(props) {
1597
+ window.addEventListener('popstate', ParamFormModal.hide);
1597
1598
  return ParamFormModal.el.render(props).then(function () {
1598
1599
  ParamFormModal.el.ref.onShow();
1599
1600
  });
@@ -1601,6 +1602,7 @@ var ParamFormModal = /*#__PURE__*/function () {
1601
1602
  }, {
1602
1603
  key: "hide",
1603
1604
  value: function hide() {
1605
+ window.removeEventListener('popstate', ParamFormModal.hide);
1604
1606
  return ParamFormModal.el.render().then(function () {
1605
1607
  ParamFormModal.el.ref.onHide();
1606
1608
  });
@@ -1665,6 +1667,17 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1665
1667
  }
1666
1668
  }, props.value || '-');
1667
1669
  }
1670
+ }, {
1671
+ label: 'System initial value',
1672
+ name: 'defaultValue',
1673
+ className: 'param-default-value',
1674
+ Comp: function Comp(props) {
1675
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1676
+ readonly: true,
1677
+ expiriesOptions: _this2.props.expiriesOptions,
1678
+ valueType: _this2.props.valueType
1679
+ }));
1680
+ }
1668
1681
  }, {
1669
1682
  label: 'Value before',
1670
1683
  name: 'valueBefore',
@@ -1820,6 +1833,7 @@ var ParamValueEditorModal = /*#__PURE__*/function () {
1820
1833
  _createClass(ParamValueEditorModal, null, [{
1821
1834
  key: "show",
1822
1835
  value: function show(props) {
1836
+ window.addEventListener('popstate', ParamValueEditorModal.hide);
1823
1837
  return ParamValueEditorModal.el.render(props).then(function () {
1824
1838
  ParamValueEditorModal.el.ref.onShow();
1825
1839
  });
@@ -1827,6 +1841,7 @@ var ParamValueEditorModal = /*#__PURE__*/function () {
1827
1841
  }, {
1828
1842
  key: "hide",
1829
1843
  value: function hide() {
1844
+ window.removeEventListener('popstate', ParamValueEditorModal.hide);
1830
1845
  return ParamValueEditorModal.el.render().then(function () {
1831
1846
  ParamValueEditorModal.el.ref.onHide();
1832
1847
  });
@@ -2099,6 +2114,7 @@ var ParamGroupEditorModal = /*#__PURE__*/function () {
2099
2114
  _createClass(ParamGroupEditorModal, null, [{
2100
2115
  key: "show",
2101
2116
  value: function show(props) {
2117
+ window.addEventListener('popstate', ParamGroupEditorModal.hide);
2102
2118
  return ParamGroupEditorModal.el.render(props).then(function () {
2103
2119
  ParamGroupEditorModal.el.ref.onShow();
2104
2120
  });
@@ -2106,6 +2122,7 @@ var ParamGroupEditorModal = /*#__PURE__*/function () {
2106
2122
  }, {
2107
2123
  key: "hide",
2108
2124
  value: function hide() {
2125
+ window.removeEventListener('popstate', ParamGroupEditorModal.hide);
2109
2126
  return ParamGroupEditorModal.el.render().then(function () {
2110
2127
  ParamGroupEditorModal.el.ref.onHide();
2111
2128
  });
@@ -2380,6 +2397,7 @@ var ParamMoverModal = /*#__PURE__*/function () {
2380
2397
  _createClass(ParamMoverModal, null, [{
2381
2398
  key: "show",
2382
2399
  value: function show(props) {
2400
+ window.addEventListener('popstate', ParamMoverModal.hide);
2383
2401
  return ParamMoverModal.el.render(props).then(function () {
2384
2402
  ParamMoverModal.el.ref.onShow();
2385
2403
  });
@@ -2387,6 +2405,7 @@ var ParamMoverModal = /*#__PURE__*/function () {
2387
2405
  }, {
2388
2406
  key: "hide",
2389
2407
  value: function hide() {
2408
+ window.removeEventListener('popstate', ParamMoverModal.hide);
2390
2409
  return ParamMoverModal.el.render().then(function () {
2391
2410
  ParamMoverModal.el.ref.onHide();
2392
2411
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.45",
3
+ "version": "0.1.48",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",