@pisell/materials 6.1.1 → 6.2.24

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 (183) 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 +7 -7
  6. package/build/lowcode/preview.js +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -24
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -25
  11. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  12. package/es/components/appVersionControl/index.d.ts +4 -0
  13. package/es/components/badge/index.d.ts +7 -0
  14. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  15. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  16. package/es/components/cardPro/index.d.ts +3 -0
  17. package/es/components/collapse/index.d.ts +15 -0
  18. package/es/components/cropPhoto/index.d.ts +3 -0
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  24. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  25. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  26. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  27. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  28. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  29. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
  31. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  32. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  33. package/es/components/drag-sort-tree/index.d.ts +4 -0
  34. package/es/components/iconfont/index.d.ts +8 -0
  35. package/es/components/login-and-register/index.d.ts +82 -0
  36. package/es/components/login-and-register/index.js +22 -18
  37. package/es/components/page/index.d.ts +5 -0
  38. package/es/components/pisell-config-provider/index.d.ts +12 -0
  39. package/es/components/pisellAnchor/index.d.ts +23 -0
  40. package/es/components/pisellAvatar/index.d.ts +19 -0
  41. package/es/components/pisellCard/index.d.ts +19 -0
  42. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  43. package/es/components/pisellDropdown/index.d.ts +20 -0
  44. package/es/components/pisellEmpty/index.d.ts +19 -0
  45. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  46. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  47. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  48. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  49. package/es/components/pisellList01/index.d.ts +17 -0
  50. package/es/components/pisellQrcode/index.d.ts +10 -0
  51. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  52. package/es/components/pisellStatisticList/index.d.ts +21 -0
  53. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  54. package/es/components/productCard/components/Action/index.d.ts +3 -0
  55. package/es/components/productCard/components/AmountFooter/index.js +22 -6
  56. package/es/components/productCard/components/AmountFooter/index.less +28 -1
  57. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  58. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  59. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  60. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  61. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  62. package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -1
  63. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  64. package/es/components/productCard/components/Packages/components/options/index.less +3 -2
  65. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  66. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  67. package/es/components/productCard/components/Time/index.d.ts +3 -0
  68. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  69. package/es/components/productCard/components/Warning/index.js +48 -0
  70. package/es/components/productCard/index.js +8 -8
  71. package/es/components/productCard/locales.d.ts +84 -0
  72. package/es/components/productCard/locales.js +6 -3
  73. package/es/components/productCard/status.d.ts +32 -0
  74. package/es/components/productCard/status.js +3 -1
  75. package/es/components/productCard/types.d.ts +84 -0
  76. package/es/components/productCard/utils.js +8 -6
  77. package/es/components/section-footers/index.d.ts +9 -0
  78. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  79. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  80. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  81. package/es/components/table/Table/fields/index.d.ts +2 -2
  82. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  83. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  84. package/es/components/table/Table/index.d.ts +4 -0
  85. package/es/components/table/Table/utils.d.ts +1 -1
  86. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  87. package/es/components/table/types.d.ts +251 -0
  88. package/es/components/tabs/index.d.ts +16 -0
  89. package/es/components/translation/index.d.ts +4 -3
  90. package/es/components/translation/index.js +34 -32
  91. package/es/components/versionModal/index.d.ts +23 -0
  92. package/es/components/walletCard/Guest/index.d.ts +3 -0
  93. package/es/components/walletCard/Guide/index.d.ts +3 -0
  94. package/es/components/walletCard/index.d.ts +67 -0
  95. package/es/utils/index.d.ts +1 -1
  96. package/es/utils/platform.d.ts +1 -1
  97. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  98. package/lib/components/appVersionControl/index.d.ts +4 -0
  99. package/lib/components/badge/index.d.ts +7 -0
  100. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  101. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  102. package/lib/components/cardPro/index.d.ts +3 -0
  103. package/lib/components/collapse/index.d.ts +15 -0
  104. package/lib/components/cropPhoto/index.d.ts +3 -0
  105. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  106. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  107. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  108. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  109. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  110. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  111. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  112. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  113. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  114. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  115. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  116. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
  117. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  118. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  119. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  120. package/lib/components/iconfont/index.d.ts +8 -0
  121. package/lib/components/login-and-register/index.d.ts +82 -0
  122. package/lib/components/login-and-register/index.js +2 -2
  123. package/lib/components/page/index.d.ts +5 -0
  124. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  125. package/lib/components/pisellAnchor/index.d.ts +23 -0
  126. package/lib/components/pisellAvatar/index.d.ts +19 -0
  127. package/lib/components/pisellCard/index.d.ts +19 -0
  128. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  129. package/lib/components/pisellDropdown/index.d.ts +20 -0
  130. package/lib/components/pisellEmpty/index.d.ts +19 -0
  131. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  132. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  133. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  134. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  135. package/lib/components/pisellList01/index.d.ts +17 -0
  136. package/lib/components/pisellQrcode/index.d.ts +10 -0
  137. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  138. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  139. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  140. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  141. package/lib/components/productCard/components/AmountFooter/index.js +16 -6
  142. package/lib/components/productCard/components/AmountFooter/index.less +28 -1
  143. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  144. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  145. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  146. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  147. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  148. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -2
  149. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  150. package/lib/components/productCard/components/Packages/components/options/index.less +3 -2
  151. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  152. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  153. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  154. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  155. package/lib/components/productCard/components/Warning/index.js +68 -0
  156. package/lib/components/productCard/index.js +4 -11
  157. package/lib/components/productCard/locales.d.ts +84 -0
  158. package/lib/components/productCard/locales.js +6 -3
  159. package/lib/components/productCard/status.d.ts +32 -0
  160. package/lib/components/productCard/status.js +3 -1
  161. package/lib/components/productCard/types.d.ts +84 -0
  162. package/lib/components/productCard/utils.js +7 -6
  163. package/lib/components/section-footers/index.d.ts +9 -0
  164. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  165. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  166. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  167. package/lib/components/table/Table/fields/index.d.ts +2 -2
  168. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  169. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  170. package/lib/components/table/Table/index.d.ts +4 -0
  171. package/lib/components/table/Table/utils.d.ts +1 -1
  172. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  173. package/lib/components/table/types.d.ts +251 -0
  174. package/lib/components/tabs/index.d.ts +16 -0
  175. package/lib/components/translation/index.d.ts +4 -3
  176. package/lib/components/translation/index.js +1 -0
  177. package/lib/components/versionModal/index.d.ts +23 -0
  178. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  179. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  180. package/lib/components/walletCard/index.d.ts +67 -0
  181. package/lib/utils/index.d.ts +1 -1
  182. package/lib/utils/platform.d.ts +1 -1
  183. package/package.json +2 -2
@@ -1,13 +1,14 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import './index.less';
3
3
  declare type Value = {
4
4
  en: string;
5
- "zh-CN": string;
6
- "zh-HK": string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
7
  };
8
8
  interface TranslationProps {
9
9
  value: Value;
10
10
  onChange: (value: Value) => void;
11
+ maxLength?: number;
11
12
  }
12
13
  declare const Translation: React.FC<TranslationProps>;
13
14
  export default Translation;
@@ -1,51 +1,51 @@
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
  var _excluded = ["value", "onChange"];
3
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
- 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; }
5
- 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; }
4
+ 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
+ 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
6
  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; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- 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); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
10
  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."); }
11
11
  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); }
12
12
  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; }
13
- 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; } }
13
+ 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; } }
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  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; }
16
16
  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; }
17
- import React, { useEffect, useMemo, useState } from "react";
18
- import { Input, Modal, Form } from "antd";
19
- import { isString } from "@pisell/utils";
20
- import { GlobalOutlined } from "@ant-design/icons";
21
- import classNames from "classnames";
17
+ import React, { useEffect, useMemo, useState } from 'react';
18
+ import { Input, Modal, Form } from 'antd';
19
+ import { isString } from '@pisell/utils';
20
+ import { GlobalOutlined } from '@ant-design/icons';
21
+ import classNames from 'classnames';
22
22
  import useEngineContext from "../../hooks/useEngineContext";
23
23
  import { checkIfAllValuesAreEqual, createTranslationText, locales } from "./utils";
24
24
  import "./index.less";
25
25
  var defaultGlobal = {
26
26
  shopLanguages: {
27
- primary: "en",
27
+ primary: 'en',
28
28
  list: [{
29
29
  id: 1,
30
- code: "zh-CN",
31
- text: "简体中文",
30
+ code: 'zh-CN',
31
+ text: '简体中文',
32
32
  primary: 1,
33
- status: "published"
33
+ status: 'published'
34
34
  }, {
35
35
  id: 2,
36
- code: "en",
37
- text: "English",
36
+ code: 'en',
37
+ text: 'English',
38
38
  primary: 0,
39
- status: "published"
39
+ status: 'published'
40
40
  }, {
41
41
  id: 3,
42
- code: "zh-HK",
43
- text: "繁體中文",
42
+ code: 'zh-HK',
43
+ text: '繁體中文',
44
44
  primary: 0,
45
- status: "published"
45
+ status: 'published'
46
46
  }]
47
47
  },
48
- primary_locale: "en"
48
+ primary_locale: 'en'
49
49
  };
50
50
  var defaultObj = {};
51
51
  var Translation = function Translation(props) {
@@ -63,8 +63,8 @@ var Translation = function Translation(props) {
63
63
  _useState4 = _slicedToArray(_useState3, 2),
64
64
  _value = _useState4[0],
65
65
  set_value = _useState4[1];
66
- var store = context === null || context === void 0 ? void 0 : (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.store;
67
- var _ref = (store === null || store === void 0 ? void 0 : (_store$getState = store.getState()) === null || _store$getState === void 0 ? void 0 : _store$getState.global) || defaultGlobal,
66
+ var store = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.store;
67
+ var _ref = (store === null || store === void 0 || (_store$getState = store.getState()) === null || _store$getState === void 0 ? void 0 : _store$getState.global) || defaultGlobal,
68
68
  shopLanguages = _ref.shopLanguages;
69
69
  useEffect(function () {
70
70
  var _newValue = _objectSpread({}, value);
@@ -88,7 +88,7 @@ var Translation = function Translation(props) {
88
88
  var defaultValue = useMemo(function () {
89
89
  var obj = {};
90
90
  for (var item in locales) {
91
- obj[item] = "";
91
+ obj[item] = '';
92
92
  }
93
93
  return obj;
94
94
  }, []);
@@ -96,12 +96,12 @@ var Translation = function Translation(props) {
96
96
  var newValue = _objectSpread(_objectSpread({}, defaultValue), value || {});
97
97
  if (checkIfAllValuesAreEqual(newValue)) {
98
98
  for (var key in newValue) {
99
- newValue[key] = e || "";
99
+ newValue[key] = e || '';
100
100
  }
101
101
  } else {
102
- newValue[currentLocale] = e || "";
102
+ newValue[currentLocale] = e || '';
103
103
  }
104
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
104
+ onChange === null || onChange === void 0 || onChange(newValue);
105
105
  };
106
106
  var isActive = useMemo(function () {
107
107
  var bol = false;
@@ -113,7 +113,7 @@ var Translation = function Translation(props) {
113
113
  return bol;
114
114
  }, [value, currentLocale]);
115
115
  var _onOk = function _onOk() {
116
- onChange === null || onChange === void 0 ? void 0 : onChange(_value);
116
+ onChange === null || onChange === void 0 || onChange(_value);
117
117
  setOpen(false);
118
118
  };
119
119
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, _extends({}, others, {
@@ -122,7 +122,7 @@ var Translation = function Translation(props) {
122
122
  return allChange(e.target.value);
123
123
  },
124
124
  suffix: /*#__PURE__*/React.createElement(GlobalOutlined, {
125
- className: classNames("pisell-lowcode-translation-icon", {
125
+ className: classNames('pisell-lowcode-translation-icon', {
126
126
  active: isActive
127
127
  }),
128
128
  onClick: function onClick() {
@@ -145,12 +145,14 @@ var Translation = function Translation(props) {
145
145
  span: 24
146
146
  },
147
147
  key: d.code
148
- }, /*#__PURE__*/React.createElement(Input, {
148
+ }, /*#__PURE__*/React.createElement(Input, _extends({}, typeof others.maxLength === 'number' ? {
149
+ maxLength: others.maxLength
150
+ } : {}, {
149
151
  value: _value[d.code],
150
152
  onChange: function onChange(e) {
151
153
  set_value(_objectSpread(_objectSpread({}, _value), {}, _defineProperty({}, d.code, e.target.value)));
152
154
  }
153
- }));
155
+ })));
154
156
  }))));
155
157
  };
156
158
  export default Translation;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Version } from '../versionSelect';
3
+ import './index.less';
4
+ interface PublishVersionModalProps {
5
+ visible: boolean;
6
+ currentVersion: string;
7
+ onCancel: () => void;
8
+ onConfirm: (data: VersionData) => void;
9
+ isShowNote?: boolean;
10
+ confirmLoading?: boolean;
11
+ versions?: Version[];
12
+ isShowBasedOn?: boolean;
13
+ isShowCurrentVersion?: boolean;
14
+ isValidateVersion?: boolean;
15
+ }
16
+ interface VersionData {
17
+ version: string;
18
+ note: string;
19
+ baseVersion?: string;
20
+ versionType?: string;
21
+ }
22
+ declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
23
+ export default PublishVersionModal;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Guest: (props: any) => JSX.Element;
3
+ export default Guest;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Guide: (props: any) => JSX.Element;
3
+ export default Guide;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare global {
4
+ namespace JSX {
5
+ interface IntrinsicElements {
6
+ [elemName: string]: any;
7
+ }
8
+ }
9
+ }
10
+ export interface WalletCardItem {
11
+ key: string;
12
+ label?: string;
13
+ hidden?: boolean;
14
+ value?: number;
15
+ }
16
+ export interface WalletCardProps {
17
+ /** 二维码弹窗适配平台 */
18
+ platform?: 'pc' | 'h5' | 'ipad';
19
+ /** 卡片主题 */
20
+ mode?: 'dark' | 'light';
21
+ /** 默认还是完整显示code */
22
+ cardStyle?: 'normal' | 'full';
23
+ /** 条形码还是二维码 */
24
+ codeType?: 'barCode' | 'orCode';
25
+ /** 二维码方向 */
26
+ codeDirection?: 'bottom' | 'top';
27
+ /** 自定义背景图 */
28
+ customBackgroundImage?: string;
29
+ /** 图标:可以是React组件或图片URL */
30
+ showIcon?: boolean;
31
+ showWalletName?: boolean;
32
+ iconImg?: string;
33
+ /** 钱包名称 */
34
+ walletName?: string;
35
+ /** 店铺名称 */
36
+ shopName?: string;
37
+ /** 是否显示店铺名称 */
38
+ showShopName?: boolean;
39
+ /** 卡号 */
40
+ cardNo?: string;
41
+ /** 是否显示卡号 */
42
+ showCardNo?: boolean;
43
+ /** 是否显示二维码 */
44
+ showCode?: boolean;
45
+ /** 点击二维码/条形码的回调 */
46
+ onCodeClick?: () => void;
47
+ /** 货币符号 */
48
+ symbol: string;
49
+ /** 点击卡片的回调 */
50
+ onClick?: () => void;
51
+ /** 自定义类名 */
52
+ className?: string;
53
+ items: WalletCardItem[];
54
+ /** 自定义样式 */
55
+ style?: React.CSSProperties;
56
+ title?: string;
57
+ subTitle?: string;
58
+ align?: 'left' | 'center';
59
+ buttonText?: string;
60
+ [key: string]: any;
61
+ /** 是否已登录 */
62
+ isLogin?: boolean;
63
+ /** 是否是引导页 */
64
+ isGuide?: boolean;
65
+ }
66
+ declare const WalletCard: React.FC<WalletCardProps>;
67
+ export default WalletCard;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface TimeSlot {
4
+ value: string;
5
+ label: string;
6
+ time: string;
7
+ remainingCount: number;
8
+ disabled?: boolean;
9
+ }
10
+ export interface TimeResourceSelectorProps {
11
+ timeSlots?: TimeSlot[];
12
+ multiple?: boolean;
13
+ showUnavailable?: boolean;
14
+ defaultExpanded?: boolean;
15
+ defaultSelectFirst?: boolean;
16
+ onChange?: (values: string | string[]) => void;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
21
+ export default TimeResourceSelector;
@@ -0,0 +1,4 @@
1
+ import { AppVersionControlProps } from './types';
2
+ import './index.less';
3
+ declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
+ export default AppVersionControl;
@@ -0,0 +1,7 @@
1
+ import { BadgeProps as OriginalBadgeprops } from 'antd';
2
+ import './index.less';
3
+ export interface Badgeprops extends OriginalBadgeprops {
4
+ styleType: 'default' | 'warning';
5
+ }
6
+ declare const Badge: (props: any) => JSX.Element;
7
+ export default Badge;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ButtonGroupListItemProps } from './../buttonGroupPreview';
3
+ interface ButtonGroupEditProps {
4
+ buttonList: ButtonGroupListItemProps[];
5
+ buttonGroupList: ButtonGroupListItemProps[][];
6
+ }
7
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupEditProps & React.RefAttributes<any>>>;
8
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { MenuProps, ButtonProps } from 'antd';
3
+ export interface ButtonGroupListItemProps {
4
+ id?: string;
5
+ isMore?: boolean;
6
+ menuData?: MenuProps['items'];
7
+ buttonProps?: ButtonProps;
8
+ }
9
+ interface ButtonConfigProps {
10
+ [id: string]: ButtonGroupListItemProps;
11
+ }
12
+ export declare type ButtonGroupListProps = ButtonGroupListItemProps[][];
13
+ interface ButtonGroupPreviewProps {
14
+ buttonConfig?: ButtonConfigProps;
15
+ buttonGroupList?: ButtonGroupListProps;
16
+ updateButtonProps?: ButtonGroupListItemProps;
17
+ }
18
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupPreviewProps & React.RefAttributes<any>>>;
19
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapseProps {
4
+ panelBackground?: string;
5
+ panelMarginBottom?: string | 0;
6
+ panelBorderRadius?: string | 0;
7
+ items: any[];
8
+ showHeader?: boolean;
9
+ headerColor?: string | '#101828';
10
+ headerFontSize?: string | 14;
11
+ expandIcon?: any;
12
+ [key: string]: any;
13
+ }
14
+ declare const Collapse: React.FC<CollapseProps>;
15
+ export default Collapse;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CropPhoto: React.FC;
3
+ export default CropPhoto;
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -0,0 +1,38 @@
1
+ import { Drawer } from 'antd';
2
+ import { OperationItem } from '../type';
3
+ declare const useDrawerState: (operationContent?: {
4
+ [key: string]: import("react").ReactNode;
5
+ } | undefined) => {
6
+ drawerVisible: boolean;
7
+ setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
+ openDrawer: (item: OperationItem) => void;
9
+ closeDrawer: () => void;
10
+ drawerContent: import("react").ReactNode;
11
+ Container: {
12
+ (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
+ confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
+ destroy: () => void;
15
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
16
+ };
17
+ info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
18
+ destroy: () => void;
19
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ };
21
+ error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
22
+ destroy: () => void;
23
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
24
+ };
25
+ warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
26
+ warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
27
+ destroy: () => void;
28
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
29
+ };
30
+ success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
31
+ destroy: () => void;
32
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
+ };
34
+ Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
+ } | typeof Drawer;
36
+ containerProps: {};
37
+ };
38
+ export default useDrawerState;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "link" | "button";
55
+ type: "button" | "link";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -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" | "large" | "middle";
73
+ openContentSize: "large" | "middle" | "small";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -0,0 +1,32 @@
1
+ import { DataSourceTableProps } from '../type';
2
+ declare type Params = {
3
+ pagination?: {
4
+ page: number;
5
+ size: number;
6
+ };
7
+ order_by?: string;
8
+ tabs?: {
9
+ name: string;
10
+ filterBy: Record<string, any>;
11
+ sortBy: string;
12
+ };
13
+ };
14
+ declare const useTableQuery: (props: DataSourceTableProps) => {
15
+ queryPageConfig: {
16
+ page: number;
17
+ pageSize: number;
18
+ filter: Record<string, any>;
19
+ sort: string;
20
+ };
21
+ setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
22
+ page: number;
23
+ pageSize: number;
24
+ filter: Record<string, any>;
25
+ sort: string;
26
+ }>>;
27
+ handleValuesChange: (params: Params, allParams: Params) => void;
28
+ refreshData: () => void;
29
+ handleFilterChange: (changedFields: any, allFields: any) => void;
30
+ refreshCurrentPage: () => void;
31
+ };
32
+ export default useTableQuery;
@@ -0,0 +1,78 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
4
+ export declare type OperationItem = {
5
+ label?: string;
6
+ openMode: 'modal' | 'drawer' | 'custom';
7
+ openContentSize: 'small' | 'middle' | 'large';
8
+ openTitle: string;
9
+ actionType: 'detail' | 'edit' | 'delete' | 'custom';
10
+ key: string;
11
+ buttonProps?: any;
12
+ onClick?: (record: any) => void;
13
+ };
14
+ export interface DataSourceTableProps {
15
+ title?: string | React.ReactNode | (() => React.ReactNode);
16
+ subTitle?: string | React.ReactNode | (() => React.ReactNode);
17
+ titleButtons?: {
18
+ show: boolean;
19
+ maxCount: number;
20
+ items: OperationItem[];
21
+ };
22
+ tableButtons?: {
23
+ show: boolean;
24
+ maxCount: number;
25
+ items: OperationItem[];
26
+ };
27
+ buttons?: any[];
28
+ operation?: {
29
+ show: boolean;
30
+ title: string;
31
+ width: number;
32
+ align: 'left' | 'center' | 'right';
33
+ fixed: 'left' | 'right' | false;
34
+ type: 'link' | 'button';
35
+ items: OperationItem[];
36
+ };
37
+ operationContent?: {
38
+ [key: string]: React.ReactNode;
39
+ };
40
+ dataSource: DataSourceType;
41
+ columns: ColumnType<any>[];
42
+ filter: any;
43
+ search?: {
44
+ show: boolean;
45
+ placeholder: string;
46
+ };
47
+ __designMode: string;
48
+ componentId: string;
49
+ clickToDetail?: {
50
+ show: boolean;
51
+ useCustomAction: boolean;
52
+ actionType: string;
53
+ openMode: 'modal' | 'drawer';
54
+ openContentSize: 'small' | 'middle' | 'large';
55
+ openTitle: string;
56
+ key: string;
57
+ };
58
+ onRow?: any;
59
+ filterBy?: Record<string, any>;
60
+ sortBy: string;
61
+ tabs?: {
62
+ show: boolean;
63
+ type: string;
64
+ items: {
65
+ name: string;
66
+ filterBy: Record<string, any>;
67
+ sortBy: string;
68
+ }[];
69
+ };
70
+ onValuesChange?: (changedValues: any, values: any) => void;
71
+ extraParams?: {
72
+ list?: Record<string, any>;
73
+ get?: Record<string, any>;
74
+ update?: Record<string, any>;
75
+ create?: Record<string, any>;
76
+ destroy?: Record<string, any>;
77
+ };
78
+ }
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ import { DatePickerProps } from './type';
3
+ import './ReadPretty.less';
4
+ declare const DatePickerReadPretty: FC<DatePickerProps>;
5
+ export default DatePickerReadPretty;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export interface Country {
6
+ id: number;
7
+ name: {
8
+ en: string;
9
+ "zh-CN": string;
10
+ "zh-HK": string;
11
+ original: string;
12
+ };
13
+ code: string;
14
+ calling_code: string;
15
+ currency_code: string;
16
+ sort: number;
17
+ status: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ prefix: string;
21
+ }
22
+ export declare const useCountries: () => {
23
+ data: Country[];
24
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export interface Country {
6
+ id: number;
7
+ name: {
8
+ en: string;
9
+ "zh-CN": string;
10
+ "zh-HK": string;
11
+ original: string;
12
+ };
13
+ code: string;
14
+ calling_code: string;
15
+ currency_code: string;
16
+ sort: number;
17
+ status: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ prefix: string;
21
+ }
22
+ export declare const useCountries: () => {
23
+ data: Country[];
24
+ };