@teamias/rex-design 0.0.1 → 0.0.3

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 (78) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +3 -3
  3. package/dist/components/action-buttons/action-buttons.d.ts +1 -1
  4. package/dist/components/action-buttons/action-buttons.js +86 -76
  5. package/dist/components/action-buttons/demo/index.js +61 -58
  6. package/dist/components/base-form/base-form.js +218 -215
  7. package/dist/components/base-form/demo/index.js +147 -135
  8. package/dist/components/base-form/modules/renderComponentNode.d.ts +2 -2
  9. package/dist/components/base-form/modules/renderComponentNode.js +135 -130
  10. package/dist/components/base-form/types.d.ts +1 -1
  11. package/dist/components/base-form/types.js +0 -9
  12. package/dist/components/base-list-table/base-list-table.d.ts +2 -2
  13. package/dist/components/base-list-table/base-list-table.js +156 -135
  14. package/dist/components/base-list-table/demo/BasicBaseListTable.js +22 -13
  15. package/dist/components/base-list-table/demo/NoData.js +2 -1
  16. package/dist/components/base-list-table/demo/TableMaxRowCount.js +1669 -1663
  17. package/dist/components/base-list-table/demo/VirtualDemo.js +22 -13
  18. package/dist/components/base-table/base-table.d.ts +2 -2
  19. package/dist/components/base-table/base-table.js +60 -55
  20. package/dist/components/base-table/components/BaseTableRow.js +79 -66
  21. package/dist/components/base-table/demo/BaseTableAll.js +6 -2
  22. package/dist/components/base-table/demo/BaseTableBasic.js +5 -2
  23. package/dist/components/base-table/demo/BaseTableIndex.js +48 -50
  24. package/dist/components/base-table/demo/BaseTableRowSelect.js +2 -1
  25. package/dist/components/data-cell/data-cell.js +5 -4
  26. package/dist/components/data-cell/demo/index.js +327 -309
  27. package/dist/components/data-cell/modules/cellItemMap.d.ts +2 -2
  28. package/dist/components/data-cell/modules/cellItemMap.js +184 -157
  29. package/dist/components/data-cell/types.d.ts +9 -9
  30. package/dist/components/icons/demo/index.js +44 -40
  31. package/dist/components/icons/icons.d.ts +1 -1
  32. package/dist/components/icons/icons.js +36 -26
  33. package/dist/components/index.d.ts +7 -0
  34. package/dist/components/index.js +7 -0
  35. package/dist/components/media-viewer/demo/index.js +24 -20
  36. package/dist/components/media-viewer/media-viewer.d.ts +1 -1
  37. package/dist/components/media-viewer/media-viewer.js +13 -12
  38. package/dist/context/index.d.ts +2 -0
  39. package/dist/context/index.js +2 -0
  40. package/dist/{hooks → context}/request-fields-container/demo/index.js +10 -5
  41. package/dist/{hooks → context}/request-fields-container/index.js +2 -2
  42. package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.js +17 -12
  43. package/dist/context/request-fields-container/request-fields-container-hoc.d.ts +4 -0
  44. package/dist/{hooks → context}/request-fields-container/request-fields-container-hoc.js +0 -1
  45. package/dist/{hooks → context}/request-fields-container/use-request-fields-container.js +2 -2
  46. package/dist/{hooks → context}/rex-pro-config-provider/demo/index.js +9 -5
  47. package/dist/{hooks → context}/rex-pro-config-provider/index.js +2 -2
  48. package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.js +0 -1
  49. package/dist/context/rex-pro-config-provider/rex-pro-config-provider.d.ts +5 -0
  50. package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-provider.js +8 -6
  51. package/dist/hooks/index.d.ts +1 -0
  52. package/dist/hooks/index.js +1 -0
  53. package/dist/hooks/use-state-data/use-state-data.js +4 -4
  54. package/dist/index.d.ts +3 -10
  55. package/dist/index.js +3 -10
  56. package/dist/{components/base-form/locales → locales}/en-US.json +30 -21
  57. package/dist/{components/base-form/locales → locales}/zh-CN.json +30 -21
  58. package/dist/types/svg.d.ts +3 -3
  59. package/package.json +37 -33
  60. package/dist/components/base-form/locales.index.d.ts +0 -42
  61. package/dist/components/base-form/locales.index.js +0 -4
  62. package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +0 -4
  63. package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +0 -6
  64. package/dist/utils/locales/en-US.json +0 -13
  65. package/dist/utils/locales/index.d.ts +0 -26
  66. package/dist/utils/locales/index.js +0 -4
  67. package/dist/utils/locales/zh-CN.json +0 -13
  68. package/dist/{hooks → context}/request-fields-container/demo/index.d.ts +0 -0
  69. package/dist/{hooks → context}/request-fields-container/index.d.ts +2 -2
  70. package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.d.ts +0 -0
  71. package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts +0 -0
  72. package/dist/{hooks → context}/request-fields-container/request-fields-container-context.js +0 -0
  73. package/dist/{hooks → context}/request-fields-container/use-request-fields-container.d.ts +0 -0
  74. package/dist/{hooks → context}/rex-pro-config-provider/demo/index.d.ts +0 -0
  75. package/dist/{hooks → context}/rex-pro-config-provider/index.d.ts +1 -1
  76. /package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.d.ts +0 -0
  77. /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +0 -0
  78. /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.js +0 -0
@@ -1,43 +1,47 @@
1
1
  import { Icons } from "../../..";
2
- import React from 'react';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Fragment as _Fragment } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
5
  export default (function () {
4
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icons, {
5
- color: "green",
6
- size: 50
7
- }), /*#__PURE__*/React.createElement(Icons, {
8
- name: "CaretRightOutlined",
9
- color: "green",
10
- size: 50
11
- }), /*#__PURE__*/React.createElement(Icons, {
12
- type: "antd",
13
- name: "PlayCircleFilled",
14
- color: "green",
15
- size: 50
16
- }), /*#__PURE__*/React.createElement(Icons, {
17
- type: "iconify",
18
- name: "svg-spinners:pulse-multiple",
19
- tooltipText: "qweqwe",
20
- color: "green",
21
- size: 50
22
- }), /*#__PURE__*/React.createElement(Icons, {
23
- type: "iconify",
24
- name: "icon-park:align-text-top-one",
25
- tooltipText: "qweqwe",
26
- size: 50
27
- }), /*#__PURE__*/React.createElement(Icons, {
28
- type: "local",
29
- name: "icon-park--arrow-up",
30
- size: 50,
31
- className: "custom-class",
32
- color: "#ff0000"
33
- }), /*#__PURE__*/React.createElement(Icons, {
34
- type: "remote",
35
- name: "https://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/e08da34488b114bd4c665ba2fa520a31.svg",
36
- color: "green",
37
- size: 50
38
- }), /*#__PURE__*/React.createElement(Icons, {
39
- type: "remote",
40
- name: "https://p6-passport.byteacctimg.com/img/user-avatar/3c945ee8634af420bedbeedfdbdbd230~50x50.awebp",
41
- size: 50
42
- }));
6
+ return /*#__PURE__*/_jsxs(_Fragment, {
7
+ children: [/*#__PURE__*/_jsx(Icons, {
8
+ color: "green",
9
+ size: 50
10
+ }), /*#__PURE__*/_jsx(Icons, {
11
+ name: "CaretRightOutlined",
12
+ color: "green",
13
+ size: 50
14
+ }), /*#__PURE__*/_jsx(Icons, {
15
+ type: "antd",
16
+ name: "PlayCircleFilled",
17
+ color: "green",
18
+ size: 50
19
+ }), /*#__PURE__*/_jsx(Icons, {
20
+ type: "iconify",
21
+ name: "svg-spinners:pulse-multiple",
22
+ tooltipText: "qweqwe",
23
+ color: "green",
24
+ size: 50
25
+ }), /*#__PURE__*/_jsx(Icons, {
26
+ type: "iconify",
27
+ name: "icon-park:align-text-top-one",
28
+ tooltipText: "qweqwe",
29
+ size: 50
30
+ }), /*#__PURE__*/_jsx(Icons, {
31
+ type: "local",
32
+ name: "icon-park--arrow-up",
33
+ size: 50,
34
+ className: "custom-class",
35
+ color: "#ff0000"
36
+ }), /*#__PURE__*/_jsx(Icons, {
37
+ type: "remote",
38
+ name: "https://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/e08da34488b114bd4c665ba2fa520a31.svg",
39
+ color: "green",
40
+ size: 50
41
+ }), /*#__PURE__*/_jsx(Icons, {
42
+ type: "remote",
43
+ name: "https://p6-passport.byteacctimg.com/img/user-avatar/3c945ee8634af420bedbeedfdbdbd230~50x50.awebp",
44
+ size: 50
45
+ })]
46
+ });
43
47
  });
@@ -1,7 +1,7 @@
1
1
  import { Icon } from '@iconify/react';
2
+ import { useRexProConfigProvider } from "../..";
2
3
  import { GetProps } from 'antd';
3
4
  import { FC } from 'react';
4
- import { useRexProConfigProvider } from "../..";
5
5
  declare const Icons: FC<IIconsProps>;
6
6
  export interface IIconsProps {
7
7
  /**
@@ -1,6 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -17,12 +16,15 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
17
16
  import { WarningOutlined } from '@ant-design/icons';
18
17
  // import * as AllAntdIcons from '@ant-design/icons';
19
18
  import { Icon, loadIcons } from '@iconify/react';
19
+ import { useRexProConfigProvider, useStateData } from "../..";
20
20
  import { Tooltip } from 'antd';
21
21
  import classNames from 'classnames';
22
22
  import React, { createElement, useEffect } from 'react';
23
- import { useStateData, useRexProConfigProvider } from "../..";
24
23
  import { localIconMap } from "./assets";
25
24
  import { Wrapper } from "./style";
25
+ import { Fragment as _Fragment } from "react/jsx-runtime";
26
+ import { jsx as _jsx } from "react/jsx-runtime";
27
+ import { jsxs as _jsxs } from "react/jsx-runtime";
26
28
  var Icons = function Icons(_ref) {
27
29
  var _ref$type = _ref.type,
28
30
  type = _ref$type === void 0 ? 'antd' : _ref$type,
@@ -44,7 +46,7 @@ var Icons = function Icons(_ref) {
44
46
  return {
45
47
  type: type,
46
48
  errorText: '',
47
- content: /*#__PURE__*/React.createElement(React.Fragment, null)
49
+ content: /*#__PURE__*/_jsx(_Fragment, {})
48
50
  };
49
51
  }),
50
52
  state = _useStateData.state,
@@ -87,7 +89,7 @@ var Icons = function Icons(_ref) {
87
89
  id: 'bit.common.icons.icon-loader-error',
88
90
  defaultMessage: '图标加载出错'
89
91
  }), ": ").concat(type, "-").concat(name);
90
- state.content = /*#__PURE__*/React.createElement(WarningOutlined, {
92
+ state.content = /*#__PURE__*/_jsx(WarningOutlined, {
91
93
  style: {
92
94
  color: 'red'
93
95
  }
@@ -152,9 +154,11 @@ var Icons = function Icons(_ref) {
152
154
  _context.next = 27;
153
155
  return judgeIconify();
154
156
  case 27:
155
- state.content = /*#__PURE__*/React.createElement("span", null, " ", /*#__PURE__*/React.createElement(Icon, _extends({}, iconifyProps, {
156
- icon: inlineName
157
- })), " ");
157
+ state.content = /*#__PURE__*/_jsxs("span", {
158
+ children: [' ', /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({}, iconifyProps), {}, {
159
+ icon: inlineName
160
+ })), ' ']
161
+ });
158
162
  _context.next = 45;
159
163
  break;
160
164
  case 30:
@@ -169,11 +173,13 @@ var Icons = function Icons(_ref) {
169
173
  // const res = await fetch(icon.default);
170
174
  // const html = await res.text();
171
175
  // state.content = <span dangerouslySetInnerHTML={{ __html: html, }}></span>;
172
- state.content = /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("img", {
173
- loading: "lazy",
174
- alt: "".concat(type, "-").concat(_icon.default),
175
- src: _icon.default
176
- }));
176
+ state.content = /*#__PURE__*/_jsx("span", {
177
+ children: /*#__PURE__*/_jsx("img", {
178
+ loading: "lazy",
179
+ alt: "".concat(type, "-").concat(_icon.default),
180
+ src: _icon.default
181
+ })
182
+ });
177
183
  _context.next = 45;
178
184
  break;
179
185
  case 37:
@@ -188,14 +194,16 @@ var Icons = function Icons(_ref) {
188
194
  setError();
189
195
  return _context.abrupt("return");
190
196
  case 41:
191
- state.content = /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("img", {
192
- loading: "lazy",
193
- src: name,
194
- alt: "".concat(type, "-").concat(name),
195
- onError: function onError() {
196
- setError();
197
- }
198
- }));
197
+ state.content = /*#__PURE__*/_jsx("span", {
198
+ children: /*#__PURE__*/_jsx("img", {
199
+ loading: "lazy",
200
+ src: name,
201
+ alt: "".concat(type, "-").concat(name),
202
+ onError: function onError() {
203
+ setError();
204
+ }
205
+ })
206
+ });
199
207
  _context.next = 45;
200
208
  break;
201
209
  case 44:
@@ -225,7 +233,7 @@ var Icons = function Icons(_ref) {
225
233
  useEffect(function () {
226
234
  init();
227
235
  }, [name, type]);
228
- return /*#__PURE__*/React.createElement(Wrapper, {
236
+ return /*#__PURE__*/_jsx(Wrapper, {
229
237
  className: classNames('rex-icons-span', state.errorText ? 'error' : '', type, className),
230
238
  "data-type": type,
231
239
  "data-name": name,
@@ -242,10 +250,12 @@ var Icons = function Icons(_ref) {
242
250
  // verticalAlign: 'middle',
243
251
  },
244
252
  onClick: onClick,
245
- "aria-hidden": "true"
246
- }, /*#__PURE__*/React.createElement(Tooltip, {
247
- title: state.errorText || tooltipText,
248
- arrow: false
249
- }, state.content));
253
+ "aria-hidden": "true",
254
+ children: /*#__PURE__*/_jsx(Tooltip, {
255
+ title: state.errorText || tooltipText,
256
+ arrow: false,
257
+ children: state.content
258
+ })
259
+ });
250
260
  };
251
261
  export default Icons;
@@ -0,0 +1,7 @@
1
+ export * from './action-buttons';
2
+ export * from './base-form';
3
+ export * from './base-list-table';
4
+ export * from './base-table';
5
+ export * from './data-cell';
6
+ export * from './icons';
7
+ export * from './media-viewer';
@@ -0,0 +1,7 @@
1
+ export * from "./action-buttons";
2
+ export * from "./base-form";
3
+ export * from "./base-list-table";
4
+ export * from "./base-table";
5
+ export * from "./data-cell";
6
+ export * from "./icons";
7
+ export * from "./media-viewer";
@@ -1,23 +1,27 @@
1
- import React from 'react';
2
1
  import { MediaViewer } from "../../..";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Fragment as _Fragment } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
5
  export default (function () {
4
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaViewer, {
5
- src: "https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"
6
- }), /*#__PURE__*/React.createElement(MediaViewer, {
7
- src: "https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg",
8
- preview: "https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ",
9
- type: "video"
10
- }), /*#__PURE__*/React.createElement(MediaViewer, {
11
- group: [{
12
- src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg',
13
- preview: 'https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ',
14
- type: 'video'
15
- }, {
16
- src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg'
17
- }, {
18
- src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg'
19
- }, {
20
- src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg'
21
- }]
22
- }));
6
+ return /*#__PURE__*/_jsxs(_Fragment, {
7
+ children: [/*#__PURE__*/_jsx(MediaViewer, {
8
+ src: "https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"
9
+ }), /*#__PURE__*/_jsx(MediaViewer, {
10
+ src: "https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg",
11
+ preview: "https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ",
12
+ type: "video"
13
+ }), /*#__PURE__*/_jsx(MediaViewer, {
14
+ group: [{
15
+ src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg',
16
+ preview: 'https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ',
17
+ type: 'video'
18
+ }, {
19
+ src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg'
20
+ }, {
21
+ src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg'
22
+ }, {
23
+ src: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg'
24
+ }]
25
+ })]
26
+ });
23
27
  });
@@ -1,5 +1,5 @@
1
- import { type FC } from 'react';
2
1
  import { CarouselProps, ImageProps } from 'antd';
2
+ import { type FC } from 'react';
3
3
  export declare const MediaViewer: FC<IMediaViewerProps>;
4
4
  export interface IMediaViewerProps extends Omit<ImageProps, 'src' | 'preview'> {
5
5
  /**
@@ -1,6 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["type", "preview", "objectFit", "src", "width", "height", "bordered", "group", "carouselProps", "className", "style"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -8,12 +7,13 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
8
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
8
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import { useEffect } from 'react';
10
+ import { EyeOutlined } from '@ant-design/icons';
12
11
  import { useStateData } from "../..";
13
12
  import classNames from 'classnames';
14
- import { EyeOutlined } from '@ant-design/icons';
15
- import { Image, Carousel } from "./style";
16
- import React from 'react';
13
+ import { useEffect } from 'react';
14
+ import { Carousel, Image } from "./style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ import { createElement as _createElement } from "react";
17
17
  export var MediaViewer = function MediaViewer(_ref) {
18
18
  var _ref2;
19
19
  var _ref$type = _ref.type,
@@ -46,10 +46,10 @@ export var MediaViewer = function MediaViewer(_ref) {
46
46
  if (!item.preview) return false;
47
47
  var config = {
48
48
  destroyOnClose: true,
49
- mask: /*#__PURE__*/React.createElement(EyeOutlined, null),
49
+ mask: /*#__PURE__*/_jsx(EyeOutlined, {}),
50
50
  src: item.preview === true ? item.src : item.preview,
51
51
  imageRender: item.type === 'video' ? function () {
52
- return /*#__PURE__*/React.createElement("video", {
52
+ return /*#__PURE__*/_jsx("video", {
53
53
  muted: true,
54
54
  width: "100%",
55
55
  controls: true,
@@ -66,7 +66,7 @@ export var MediaViewer = function MediaViewer(_ref) {
66
66
 
67
67
  /** 主渲染内容 */
68
68
  var contentArr = state.currentGroup.map(function (item, index) {
69
- return /*#__PURE__*/React.createElement(Image, _extends({}, imageProps, {
69
+ return /*#__PURE__*/_createElement(Image, _objectSpread(_objectSpread({}, imageProps), {}, {
70
70
  className: classNames(className, 'rex-media-viewer-thumb', bordered ? '' : 'no-bordered'),
71
71
  style: _objectSpread(_objectSpread({}, style), {}, {
72
72
  width: currentWidth,
@@ -105,15 +105,16 @@ export var MediaViewer = function MediaViewer(_ref) {
105
105
  });
106
106
  update();
107
107
  }, [group, src, preview]);
108
- return contentArr.length > 1 ? /*#__PURE__*/React.createElement(Carousel, _extends({
108
+ return contentArr.length > 1 ? /*#__PURE__*/_jsx(Carousel, _objectSpread(_objectSpread({
109
109
  arrows: true,
110
110
  infinite: false,
111
111
  dots: false
112
- }, carouselProps, {
112
+ }, carouselProps), {}, {
113
113
  className: classNames('rex-media-viewer-carousel', carouselProps === null || carouselProps === void 0 ? void 0 : carouselProps.className),
114
114
  style: _objectSpread(_objectSpread({}, carouselProps === null || carouselProps === void 0 ? void 0 : carouselProps.style), {}, {
115
115
  height: currentHeight,
116
116
  width: currentWidth
117
- })
118
- }), contentArr) : contentArr;
117
+ }),
118
+ children: contentArr
119
+ })) : contentArr;
119
120
  };
@@ -0,0 +1,2 @@
1
+ export * from './request-fields-container';
2
+ export * from './rex-pro-config-provider';
@@ -0,0 +1,2 @@
1
+ export * from "./request-fields-container";
2
+ export * from "./rex-pro-config-provider";
@@ -2,19 +2,23 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
- import React, { useRef } from 'react';
5
+ import { useRef } from 'react';
6
6
  import { RequestFieldsContainer } from "../request-fields-container-context-provider";
7
7
  import { useRequestFieldsConfig } from "../use-request-fields-container";
8
+ import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
8
10
  var DisplayLanguage = function DisplayLanguage() {
9
11
  var config = useRequestFieldsConfig();
10
- return /*#__PURE__*/React.createElement("h3", null, "demo: ", config.batchActionUrl);
12
+ return /*#__PURE__*/_jsxs("h3", {
13
+ children: ["demo: ", config.batchActionUrl]
14
+ });
11
15
  };
12
16
  export default (function () {
13
17
  var actionRef = useRef(null);
14
18
 
15
19
  // actionRef.current?.reload();
16
20
 
17
- return /*#__PURE__*/React.createElement(RequestFieldsContainer, {
21
+ return /*#__PURE__*/_jsx(RequestFieldsContainer, {
18
22
  requestConfig: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19
23
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20
24
  while (1) switch (_context.prev = _context.next) {
@@ -31,6 +35,7 @@ export default (function () {
31
35
  onMounted: function onMounted() {
32
36
  console.log('mounted');
33
37
  },
34
- requestFieldsActionRef: actionRef
35
- }, /*#__PURE__*/React.createElement(DisplayLanguage, null));
38
+ requestFieldsActionRef: actionRef,
39
+ children: /*#__PURE__*/_jsx(DisplayLanguage, {})
40
+ });
36
41
  });
@@ -1,3 +1,3 @@
1
- export * from "./use-request-fields-container";
1
+ export { RequestFieldsContainer } from "./request-fields-container-context-provider";
2
2
  export * from "./request-fields-container-hoc";
3
- export { RequestFieldsContainer } from "./request-fields-container-context-provider";
3
+ export * from "./use-request-fields-container";
@@ -2,14 +2,16 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
- import React, { useEffect, useImperativeHandle } from 'react';
6
- import { Skeleton } from 'antd';
7
5
  import { useStateData } from "../..";
8
- import { RequestFieldsContainerContext } from "./request-fields-container-context";
6
+ import { Skeleton } from 'antd';
7
+ import React, { useEffect, useImperativeHandle } from 'react';
9
8
  import { useRexProConfigProvider } from "../rex-pro-config-provider/use-rex-pro-config-provider";
10
- /**
11
- * 用于收集所有包含(requestFields)组件加载完成
12
- * TODO: 需要组件(requestFields),去实现这部分逻辑
9
+ import { RequestFieldsContainerContext } from "./request-fields-container-context";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { Fragment as _Fragment } from "react/jsx-runtime";
12
+ /**
13
+ * 用于收集所有包含(requestFields)组件加载完成
14
+ * TODO: 需要组件(requestFields),去实现这部分逻辑
13
15
  */
14
16
  export var RequestFieldsContainer = function RequestFieldsContainer(_ref) {
15
17
  var children = _ref.children,
@@ -121,14 +123,17 @@ export var RequestFieldsContainer = function RequestFieldsContainer(_ref) {
121
123
  };
122
124
  });
123
125
  if (state.loading) {
124
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Skeleton, {
125
- active: true
126
- }));
126
+ return /*#__PURE__*/_jsx(_Fragment, {
127
+ children: /*#__PURE__*/_jsx(Skeleton, {
128
+ active: true
129
+ })
130
+ });
127
131
  }
128
- return /*#__PURE__*/React.createElement(RequestFieldsContainerContext.Provider, {
132
+ return /*#__PURE__*/_jsx(RequestFieldsContainerContext.Provider, {
129
133
  value: {
130
134
  pushPromise: state.pushPromise,
131
135
  config: state.config
132
- }
133
- }, children);
136
+ },
137
+ children: children
138
+ });
134
139
  };
@@ -0,0 +1,4 @@
1
+ import { ComponentType, FC } from 'react';
2
+ import { RequestFieldsContainerProviderProps } from './request-fields-container-context-provider';
3
+ /** 通过高阶组件扩展原生组件功能 */
4
+ export declare const requestFieldsContainerHoc: <T extends object>(Com: ComponentType<T>) => FC<T & RequestFieldsContainerProviderProps>;
@@ -7,7 +7,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
8
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
- import React from "react";
11
10
  import { RequestFieldsContainer } from "./request-fields-container-context-provider";
12
11
 
13
12
  /** 通过高阶组件扩展原生组件功能 */
@@ -2,10 +2,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
- import { useContext, useEffect } from 'react';
6
5
  import { useStateData } from "../..";
7
- import { RequestFieldsContainerContext } from "./request-fields-container-context";
6
+ import { useContext, useEffect } from 'react';
8
7
  import { useRexProConfigProvider } from "../rex-pro-config-provider/use-rex-pro-config-provider";
8
+ import { RequestFieldsContainerContext } from "./request-fields-container-context";
9
9
  var withResolvers = function withResolvers() {
10
10
  var rel = function rel(val) {};
11
11
  var rej = function rej() {};