@pisell/materials 6.3.1 → 6.3.2

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 (174) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +28 -24
  8. package/build/lowcode/view.js +29 -25
  9. package/es/components/DragSortList/index.js +6 -6
  10. package/es/components/batch-editor/index.d.ts +1 -0
  11. package/es/components/classicLayout/index.js +4 -5
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +7 -6
  21. package/es/components/date-picker/index.d.ts +1 -0
  22. package/es/components/filter/index.d.ts +1 -0
  23. package/es/components/icon/index.js +5 -5
  24. package/es/components/list/index.js +6 -6
  25. package/es/components/page/index.d.ts +1 -0
  26. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  27. package/es/components/pisellCardList/index.js +3 -1
  28. package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
  29. package/es/components/pisellCheckboxGroup/index.js +15 -1
  30. package/es/components/pisellInput/index.d.ts +1 -0
  31. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  32. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  33. package/es/components/pisellModal/components/index.d.ts +1 -0
  34. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  35. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  36. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  37. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  38. package/es/components/qrcode/index.js +1 -1
  39. package/es/components/sort/components/InlineMenu/index.js +1 -1
  40. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  41. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  42. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  43. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  44. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  45. package/es/components/table/Actions/index.d.ts +1 -0
  46. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  47. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  48. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  49. package/es/components/table/Header/Buttons/index.js +5 -5
  50. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  51. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  52. package/es/components/table/Table/SelectField/index.js +4 -4
  53. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  54. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  55. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  56. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  59. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  61. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  68. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  71. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  74. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  75. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  76. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  77. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  78. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  79. package/es/components/table/Table/utils.d.ts +1 -1
  80. package/es/components/table/View/index.d.ts +1 -0
  81. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  82. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  83. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  84. package/es/components/translation/utils.js +5 -5
  85. package/es/components/versionSelect/index.d.ts +1 -0
  86. package/es/components/walletCard/Guide/index.js +12 -1
  87. package/es/hooks/useResponsive.js +2 -2
  88. package/es/utils/hoc.js +1 -1
  89. package/es/utils/miniRedux.js +8 -9
  90. package/lib/components/batch-editor/index.d.ts +1 -0
  91. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  92. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  93. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  94. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  95. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  96. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  97. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  98. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  99. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -6
  100. package/lib/components/date-picker/index.d.ts +1 -0
  101. package/lib/components/filter/index.d.ts +1 -0
  102. package/lib/components/lowCodePage/index.js +1 -2
  103. package/lib/components/page/index.d.ts +1 -0
  104. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  105. package/lib/components/pisellCardList/index.js +3 -1
  106. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
  107. package/lib/components/pisellCheckboxGroup/index.js +16 -0
  108. package/lib/components/pisellInput/index.d.ts +1 -0
  109. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  110. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  111. package/lib/components/pisellModal/components/index.d.ts +1 -0
  112. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  113. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  114. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  115. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  116. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  117. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  118. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  119. package/lib/components/table/Actions/index.d.ts +1 -0
  120. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  121. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  122. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  123. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  124. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  125. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  126. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  127. package/lib/components/table/Table/fields/index.d.ts +1 -0
  128. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  129. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  130. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  131. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  132. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  133. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  134. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  135. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  136. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  137. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  138. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  139. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  140. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  141. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  142. package/lib/components/table/Table/fields/utils/index.js +1 -2
  143. package/lib/components/table/Table/utils.d.ts +1 -1
  144. package/lib/components/table/View/index.d.ts +1 -0
  145. package/lib/components/versionSelect/index.d.ts +1 -0
  146. package/lib/components/walletCard/Guide/index.js +11 -1
  147. package/lib/hooks/useResponsive.js +3 -6
  148. package/package.json +1 -1
  149. package/dist/umd/materials.min.css +0 -1
  150. package/dist/umd/materials.min.js +0 -1
  151. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  152. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  153. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  154. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  155. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  156. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  157. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  158. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  159. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  160. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  161. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  162. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  163. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  164. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  165. package/es/components/walletCard/Guide/index.d.ts +0 -3
  166. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  167. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  168. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  169. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  170. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  171. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  172. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
  173. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  174. package/lib/components/walletCard/Guide/index.d.ts +0 -3
@@ -37,9 +37,20 @@ var Guide = function Guide(props) {
37
37
  * @Date: 2025-06-09 14:36
38
38
  */
39
39
  var handleClick = function handleClick(e) {
40
- var _setting$skipLink;
40
+ var _setting$skipLink, _utils$interaction, _utils$interaction$is;
41
41
  e.stopPropagation();
42
42
  if (!(_setting !== null && _setting !== void 0 && (_setting$skipLink = _setting.skipLink) !== null && _setting$skipLink !== void 0 && _setting$skipLink.page)) return;
43
+ if (utils !== null && utils !== void 0 && (_utils$interaction = utils.interaction) !== null && _utils$interaction !== void 0 && (_utils$interaction = _utils$interaction.utils) !== null && _utils$interaction !== void 0 && (_utils$interaction$is = _utils$interaction.isAppEnv) !== null && _utils$interaction$is !== void 0 && _utils$interaction$is.call(_utils$interaction)) {
44
+ var _utils$interaction2, _utils$interaction2$p;
45
+ utils === null || utils === void 0 || (_utils$interaction2 = utils.interaction) === null || _utils$interaction2 === void 0 || (_utils$interaction2 = _utils$interaction2.utils) === null || _utils$interaction2 === void 0 || (_utils$interaction2$p = _utils$interaction2.postMessageToApp) === null || _utils$interaction2$p === void 0 || _utils$interaction2$p.call(_utils$interaction2, {
46
+ module: 'global',
47
+ key: 'openNative',
48
+ data: {
49
+ link: _setting === null || _setting === void 0 ? void 0 : _setting.skipLink
50
+ }
51
+ });
52
+ return;
53
+ }
43
54
  utils === null || utils === void 0 || utils.jumpPageByLink(_setting === null || _setting === void 0 ? void 0 : _setting.skipLink);
44
55
  };
45
56
  return /*#__PURE__*/React.createElement("div", {
@@ -1,8 +1,8 @@
1
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
3
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
4
4
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6
6
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
7
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
8
  import { useEffect, useState, useMemo } from 'react';
package/es/utils/hoc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  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); }
2
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ 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); }
3
3
  import React from 'react';
4
4
  import { get, set, has } from 'lodash';
5
5
  import dayjs from "dayjs";
@@ -1,15 +1,15 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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 _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); }
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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; }
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; }
5
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; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  import React, { createContext, useCallback, useReducer } from 'react';
15
15
  export default (function (_ref2) {
@@ -23,7 +23,6 @@ export default (function (_ref2) {
23
23
  var Context = /*#__PURE__*/createContext({});
24
24
  var Provider = function Provider(ComponentUi) {
25
25
  var Components = function Components(props, ref) {
26
- var _objectSpread2, _ref5;
27
26
  var _useReducer = useReducer(function (state, _ref3) {
28
27
  var type = _ref3.type,
29
28
  payload = _ref3.payload;
@@ -48,14 +47,14 @@ export default (function (_ref2) {
48
47
  });
49
48
  }
50
49
  }, []);
51
- var _props = _objectSpread(_objectSpread({}, props), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, namespace, providerState), _defineProperty(_objectSpread2, "dispatch", _dispatch), _objectSpread2));
50
+ var _props = _objectSpread(_objectSpread({}, props), {}, _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch));
52
51
  var _ref = ref;
53
52
  // if (_props.forwardedRef) {
54
53
  // _ref = _props.forwardedRef;
55
54
  // delete _props.forwardedRef;
56
55
  // }
57
56
  return /*#__PURE__*/React.createElement(Context.Provider, {
58
- value: (_ref5 = {}, _defineProperty(_ref5, namespace, providerState), _defineProperty(_ref5, "dispatch", _dispatch), _ref5)
57
+ value: _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch)
59
58
  }, /*#__PURE__*/React.createElement(ComponentUi, _extends({}, _props, {
60
59
  ref: _ref
61
60
  })));
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -8,7 +8,7 @@ declare const useDrawerState: (operationContent?: {
8
8
  openDrawer: (item: OperationItem) => void;
9
9
  closeDrawer: () => void;
10
10
  drawerContent: import("react").ReactNode;
11
- Container: {
11
+ Container: typeof Drawer | {
12
12
  (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
13
  confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
14
  destroy: () => void;
@@ -32,7 +32,7 @@ declare const useDrawerState: (operationContent?: {
32
32
  update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
33
  };
34
34
  Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
- } | typeof Drawer;
35
+ };
36
36
  containerProps: {};
37
37
  };
38
38
  export default useDrawerState;
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "middle" | "large";
73
+ openContentSize: "large" | "middle" | "small";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -59,13 +60,11 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
- onChange: (value: string) => void;
68
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
68
  JSON: import("react").FC<any>;
70
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
70
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -85,7 +84,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
85
84
  name?: string | undefined;
86
85
  fieldKey?: string | undefined;
87
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
+ }) | (import("react").FC<{}> & {
89
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
89
  } & {
91
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
96
  extraParams?: Record<string, any> | undefined;
98
97
  } & {
99
98
  dataSource?: any;
100
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
99
+ }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
+ onChange: (value: string) => void;
101
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
102
  export { getFieldComponent, formFieldMap };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -41,8 +41,7 @@ var LowCodePage = (props) => {
41
41
  const context = (0, import_useEngineContext.default)();
42
42
  const { RenderLowCodeByKey, getRenderLowCodeByKey } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
43
43
  const Com = (0, import_utils.isFunction)(getRenderLowCodeByKey) ? getRenderLowCodeByKey() : RenderLowCodeByKey;
44
- if (!Com)
45
- return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
44
+ if (!Com) return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
46
45
  return /* @__PURE__ */ import_react.default.createElement(Com, { ...others, id, key: id });
47
46
  };
48
47
  var lowCodePage_default = LowCodePage;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  value?: number;
@@ -62,7 +62,8 @@ var PisellCardList = (props) => {
62
62
  showValidDate,
63
63
  empty,
64
64
  showEmpty,
65
- showBalanceSymbol
65
+ showBalanceSymbol,
66
+ onChangeDebounce
66
67
  } = props;
67
68
  return data.length ? /* @__PURE__ */ import_react.default.createElement(
68
69
  import_pisellCheckboxGroup.default,
@@ -76,6 +77,7 @@ var PisellCardList = (props) => {
76
77
  onChange,
77
78
  iconPosition: "hide",
78
79
  fullWidth,
80
+ onChangeDebounce,
79
81
  renderOption: (item, active, index) => {
80
82
  return /* @__PURE__ */ import_react.default.createElement(
81
83
  import_pisellWalletPassCard.default,
@@ -23,6 +23,7 @@ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivEl
23
23
  iconPosition?: 'left' | 'right' | 'hide';
24
24
  optionClassName?: string;
25
25
  optionActiveClassName?: string;
26
+ onChangeDebounce?: boolean;
26
27
  }
27
28
  /**
28
29
  * @title: PisellCheckboxGroup
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
37
37
  var import_classnames = __toESM(require("classnames"));
38
38
  var import_antd = require("antd");
39
+ var import_ahooks = require("ahooks");
39
40
  var import_utils = require("@pisell/utils");
40
41
  var import_utils2 = require("@pisell/utils");
41
42
  var import_index = require("./index.less");
@@ -62,6 +63,7 @@ var PisellCheckboxGroup = (props) => {
62
63
  iconPosition = "left",
63
64
  optionClassName,
64
65
  optionActiveClassName,
66
+ onChangeDebounce,
65
67
  ...rest
66
68
  } = props;
67
69
  const [_value, set_value] = (0, import_react2.useState)([]);
@@ -112,6 +114,16 @@ var PisellCheckboxGroup = (props) => {
112
114
  const _onChange = (val, item) => {
113
115
  onChange == null ? void 0 : onChange(mode === "single" ? val[0] : val, item);
114
116
  };
117
+ const { run } = (0, import_ahooks.useDebounceFn)(
118
+ (key, item) => {
119
+ handleSelectItem(key, item);
120
+ },
121
+ {
122
+ wait: 400,
123
+ leading: true,
124
+ trailing: false
125
+ }
126
+ );
115
127
  const handleSelectItem = (key, item) => {
116
128
  let newVal = [key];
117
129
  if (mode === "multiple") {
@@ -146,6 +158,10 @@ var PisellCheckboxGroup = (props) => {
146
158
  style: rowStyle,
147
159
  onClick: (e) => {
148
160
  if (option.disabled) return;
161
+ if (onChangeDebounce) {
162
+ run(option[rowKey], option);
163
+ return;
164
+ }
149
165
  handleSelectItem(option[rowKey], option);
150
166
  },
151
167
  leftContent: iconPosition === "left" && /* @__PURE__ */ import_react.default.createElement(
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -40,17 +40,14 @@ function filterUtil_default({
40
40
  key,
41
41
  item
42
42
  }) {
43
- if (!value)
44
- return true;
43
+ if (!value) return true;
45
44
  const valueDayjsObj = (0, import_dayjs.default)(value);
46
45
  if (!valueDayjsObj.isValid()) {
47
46
  return true;
48
47
  }
49
48
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
50
- if ((0, import_utils.isUndefined)(dataValue))
51
- return false;
49
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
52
50
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
53
- if (!dataDayjsObj.isValid())
54
- return false;
51
+ if (!dataDayjsObj.isValid()) return false;
55
52
  return dataDayjsObj.isSame(valueDayjsObj, "day");
56
53
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -43,19 +43,15 @@ function filterUtil_default({
43
43
  key,
44
44
  item
45
45
  }) {
46
- if (!value)
47
- return true;
48
- if ((value == null ? void 0 : value.length) !== 2)
49
- return true;
46
+ if (!value) return true;
47
+ if ((value == null ? void 0 : value.length) !== 2) return true;
50
48
  const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
51
49
  if (valueDayjsObj.some((item2) => !item2.isValid())) {
52
50
  return true;
53
51
  }
54
52
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
55
- if ((0, import_utils.isUndefined)(dataValue))
56
- return false;
53
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
57
54
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
58
- if (!dataDayjsObj.isValid())
59
- return false;
55
+ if (!dataDayjsObj.isValid()) return false;
60
56
  return isDateInRange(dataDayjsObj, valueDayjsObj);
61
57
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -25,8 +25,7 @@ module.exports = __toCommonJS(utils_exports);
25
25
  var import_utils = require("@pisell/utils");
26
26
  var getValueByKeys = (obj, keys) => {
27
27
  var _a;
28
- if (!keys)
29
- return keys;
28
+ if (!keys) return keys;
30
29
  if ((0, import_utils.isString)(keys)) {
31
30
  keys = [keys];
32
31
  }