@pisell/materials 2.2.108 → 2.2.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +164 -148
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +53 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +58 -28
- package/es/components/appVersionControl/index.d.ts +4 -0
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
- package/es/components/auto-resize-text/auto-text-size-standalone.js +258 -0
- package/es/components/auto-resize-text/index.d.ts +6 -0
- package/es/components/auto-resize-text/index.js +40 -0
- package/es/components/cardPro/index.d.ts +3 -0
- package/es/components/cardPro/index.js +10 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +11 -4
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +35 -15
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +92 -6
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +199 -19
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.js +66 -0
- package/es/components/dataSourceComponents/fields/Upload/index.js +4 -3
- package/es/components/dataSourceComponents/fields/Upload/index.less +35 -3
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +38 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/filter/types.d.ts +3 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/keyboard/index.d.ts +22 -0
- package/es/components/keyboard/index.js +159 -0
- package/es/components/keyboard/index.less +44 -0
- package/es/components/list/index.d.ts +0 -1
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisell-config-provider/index.d.ts +13 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellCamera/index.d.ts +4 -0
- package/es/components/pisellCamera/index.js +228 -0
- package/es/components/pisellCamera/index.less +131 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellQRScanner/index.d.ts +0 -13
- package/es/components/pisellQRScanner/index.js +0 -8
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
- package/es/components/pisellWalletPassCard/index.d.ts +136 -0
- package/es/components/pisellWalletPassCard/index.js +6 -3
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +73 -5
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/index.js +2 -11
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
- package/es/components/productCard/components/Time/index.d.ts +3 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/Actions/index.js +4 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Gallery/index.d.ts +5 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/index.d.ts +4 -0
- package/es/components/table/Table/utils.d.ts +161 -0
- package/es/components/table/Table/utils.js +22 -1
- package/es/components/table/hooks/useTableSetting.d.ts +21 -0
- package/es/components/table/hooks/useTableSetting.js +113 -5
- package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/es/components/table/index.js +14 -3
- package/es/components/table/types.d.ts +268 -0
- package/es/components/translation/index.d.ts +14 -0
- package/es/components/versionModal/index.d.ts +23 -0
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +21 -7
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +44 -25
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
- package/es/components/virtualInput/BaseVirtualInput/index.js +163 -0
- package/es/components/virtualInput/BaseVirtualInput/index.less +77 -0
- package/es/components/virtualInput/index.d.ts +24 -0
- package/es/components/virtualInput/index.js +60 -0
- package/es/components/virtualInput/index.less +42 -0
- package/es/components/walletCard/index.d.ts +71 -0
- package/es/index.d.ts +144 -0
- package/es/index.js +4 -1
- package/es/locales/en-US.d.ts +307 -0
- package/es/locales/en-US.js +29 -1
- package/es/locales/zh-CN.d.ts +302 -0
- package/es/locales/zh-CN.js +29 -1
- package/es/locales/zh-TW.d.ts +302 -0
- package/es/locales/zh-TW.js +29 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/appVersionControl/index.d.ts +4 -0
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
- package/lib/components/auto-resize-text/auto-text-size-standalone.js +273 -0
- package/lib/components/auto-resize-text/index.d.ts +6 -0
- package/lib/components/auto-resize-text/index.js +71 -0
- package/lib/components/cardPro/index.d.ts +3 -0
- package/lib/components/cardPro/index.js +3 -2
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +22 -7
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +78 -7
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +168 -5
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.js +95 -0
- package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -1
- package/lib/components/dataSourceComponents/fields/Upload/index.less +35 -3
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +38 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/filter/types.d.ts +3 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/keyboard/index.d.ts +22 -0
- package/lib/components/keyboard/index.js +223 -0
- package/lib/components/keyboard/index.less +44 -0
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisell-config-provider/index.d.ts +13 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellCamera/index.d.ts +4 -0
- package/lib/components/pisellCamera/index.js +222 -0
- package/lib/components/pisellCamera/index.less +131 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellQRScanner/index.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +136 -0
- package/lib/components/pisellWalletPassCard/index.js +7 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +45 -11
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/index.js +2 -13
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
- package/lib/components/productCard/components/Time/index.d.ts +3 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/Actions/index.js +4 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Gallery/index.d.ts +5 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/index.d.ts +4 -0
- package/lib/components/table/Table/utils.d.ts +161 -0
- package/lib/components/table/Table/utils.js +18 -1
- package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
- package/lib/components/table/hooks/useTableSetting.js +114 -4
- package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/lib/components/table/index.js +12 -1
- package/lib/components/table/types.d.ts +268 -0
- package/lib/components/translation/index.d.ts +14 -0
- package/lib/components/versionModal/index.d.ts +23 -0
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +19 -2
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +45 -27
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
- package/lib/components/virtualInput/BaseVirtualInput/index.js +179 -0
- package/lib/components/virtualInput/BaseVirtualInput/index.less +77 -0
- package/lib/components/virtualInput/index.d.ts +24 -0
- package/lib/components/virtualInput/index.js +102 -0
- package/lib/components/virtualInput/index.less +42 -0
- package/lib/components/walletCard/index.d.ts +71 -0
- package/lib/index.d.ts +144 -0
- package/lib/index.js +9 -0
- package/lib/locales/en-US.d.ts +307 -0
- package/lib/locales/en-US.js +25 -1
- package/lib/locales/zh-CN.d.ts +302 -0
- package/lib/locales/zh-CN.js +25 -1
- package/lib/locales/zh-TW.d.ts +302 -0
- package/lib/locales/zh-TW.js +25 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/auto-resize-text/meta.ts +47 -0
- package/lowcode/data-source-table/meta.ts +358 -66
- package/lowcode/form-item-upload/meta.ts +20 -5
- package/lowcode/table/meta.ts +104 -0
- package/package.json +3 -2
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import React, { useState, useCallback, useEffect, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import AutoResizeText from "../../auto-resize-text";
|
|
16
|
+
import "./index.less";
|
|
17
|
+
var BaseVirtualInput = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
|
+
var _props$value = props.value,
|
|
19
|
+
value = _props$value === void 0 ? '' : _props$value,
|
|
20
|
+
_props$placeholder = props.placeholder,
|
|
21
|
+
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
22
|
+
_props$autoFocus = props.autoFocus,
|
|
23
|
+
autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,
|
|
24
|
+
_props$disabled = props.disabled,
|
|
25
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
26
|
+
_props$height = props.height,
|
|
27
|
+
height = _props$height === void 0 ? 60 : _props$height,
|
|
28
|
+
fontSize = props.fontSize,
|
|
29
|
+
onFocus = props.onFocus,
|
|
30
|
+
onBlur = props.onBlur,
|
|
31
|
+
style = props.style,
|
|
32
|
+
className = props.className,
|
|
33
|
+
_props$preventBlurEle = props.preventBlurElements,
|
|
34
|
+
preventBlurElements = _props$preventBlurEle === void 0 ? [] : _props$preventBlurEle,
|
|
35
|
+
focused = props.focused,
|
|
36
|
+
_props$showCursor = props.showCursor,
|
|
37
|
+
showCursor = _props$showCursor === void 0 ? true : _props$showCursor;
|
|
38
|
+
// 使用 useControllableValue 管理 focused 状态
|
|
39
|
+
var _useState = useState(focused !== null && focused !== void 0 ? focused : autoFocus),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
+
localFocused = _useState2[0],
|
|
42
|
+
setLocalFocused = _useState2[1];
|
|
43
|
+
var internalFocused = 'focused' in props ? props.focused : localFocused;
|
|
44
|
+
var containerRef = useRef(null);
|
|
45
|
+
|
|
46
|
+
// 处理聚焦
|
|
47
|
+
var handleFocus = useCallback(function () {
|
|
48
|
+
if (disabled) return;
|
|
49
|
+
setLocalFocused(true);
|
|
50
|
+
onFocus === null || onFocus === void 0 || onFocus();
|
|
51
|
+
}, [disabled, onFocus]);
|
|
52
|
+
|
|
53
|
+
// 处理失焦
|
|
54
|
+
var handleBlur = useCallback(function () {
|
|
55
|
+
setLocalFocused(false);
|
|
56
|
+
onBlur === null || onBlur === void 0 || onBlur();
|
|
57
|
+
}, [onBlur]);
|
|
58
|
+
var shouldPreventBlur = useCallback(function (target) {
|
|
59
|
+
if (!target || !(target instanceof Element)) return false;
|
|
60
|
+
return preventBlurElements.some(function (element) {
|
|
61
|
+
if (typeof element === 'string') {
|
|
62
|
+
// 字符串选择器 - 查找页面中所有匹配的元素,检查是否包含目标元素
|
|
63
|
+
var matchedElements = document.querySelectorAll(element);
|
|
64
|
+
return Array.from(matchedElements).some(function (el) {
|
|
65
|
+
return el.contains(target) || el === target;
|
|
66
|
+
});
|
|
67
|
+
} else if (element && 'current' in element && element.current) {
|
|
68
|
+
// React ref
|
|
69
|
+
return element.current.contains(target);
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
});
|
|
73
|
+
}, [preventBlurElements]);
|
|
74
|
+
useEffect(function () {
|
|
75
|
+
var handleGlobalClick = function handleGlobalClick(event) {
|
|
76
|
+
if (!internalFocused) return;
|
|
77
|
+
var target = event.target;
|
|
78
|
+
if (containerRef.current && containerRef.current.contains(target)) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (shouldPreventBlur(target)) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
handleBlur();
|
|
85
|
+
};
|
|
86
|
+
if (internalFocused) {
|
|
87
|
+
document.addEventListener('mousedown', handleGlobalClick);
|
|
88
|
+
}
|
|
89
|
+
return function () {
|
|
90
|
+
document.removeEventListener('mousedown', handleGlobalClick);
|
|
91
|
+
};
|
|
92
|
+
}, [internalFocused, handleBlur, shouldPreventBlur]);
|
|
93
|
+
|
|
94
|
+
// 处理点击事件
|
|
95
|
+
var handleClick = useCallback(function (event) {
|
|
96
|
+
handleFocus();
|
|
97
|
+
}, [handleFocus]);
|
|
98
|
+
|
|
99
|
+
// 暴露给父组件的方法
|
|
100
|
+
useImperativeHandle(ref, function () {
|
|
101
|
+
return {
|
|
102
|
+
focus: handleFocus,
|
|
103
|
+
blur: handleBlur
|
|
104
|
+
};
|
|
105
|
+
}, [handleFocus, handleBlur]);
|
|
106
|
+
|
|
107
|
+
// 计算组件高度
|
|
108
|
+
var componentHeight = typeof height === 'number' ? "".concat(height, "px") : height;
|
|
109
|
+
|
|
110
|
+
// 获取基础字体大小
|
|
111
|
+
var getBaseFontSize = useCallback(function () {
|
|
112
|
+
if (fontSize) {
|
|
113
|
+
return typeof fontSize === 'number' ? fontSize : parseFloat(fontSize);
|
|
114
|
+
}
|
|
115
|
+
return typeof height === 'number' ? height * 0.8 : 48;
|
|
116
|
+
}, [fontSize, height]);
|
|
117
|
+
|
|
118
|
+
// 计算最小和最大字体大小
|
|
119
|
+
var baseFontSize = getBaseFontSize();
|
|
120
|
+
var minFontSize = Math.max(10, baseFontSize * 0.2);
|
|
121
|
+
var maxFontSize = baseFontSize;
|
|
122
|
+
|
|
123
|
+
// 计算光标高度(容器高度的三分之二)
|
|
124
|
+
var caretHeight = "calc(".concat(componentHeight, " * 0.67)");
|
|
125
|
+
|
|
126
|
+
// 合并样式,将高度和光标高度传递给组件
|
|
127
|
+
var mergedStyle = _objectSpread(_objectSpread({}, style), {}, {
|
|
128
|
+
'--virtual-input-height': componentHeight,
|
|
129
|
+
'--virtual-input-caret-height': caretHeight,
|
|
130
|
+
'--virtual-input-font-size': "".concat(baseFontSize, "px")
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
// 是否显示占位符
|
|
134
|
+
var showPlaceholder = value === undefined || value === '';
|
|
135
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
ref: containerRef,
|
|
137
|
+
className: classNames('pisell-base-virtual-input', {
|
|
138
|
+
'pisell-base-virtual-input--focused': internalFocused,
|
|
139
|
+
'pisell-base-virtual-input--disabled': disabled
|
|
140
|
+
}, className),
|
|
141
|
+
style: mergedStyle,
|
|
142
|
+
onClick: handleClick
|
|
143
|
+
}, showPlaceholder && /*#__PURE__*/React.createElement(AutoResizeText, {
|
|
144
|
+
className: "pisell-base-virtual-input-placeholder",
|
|
145
|
+
mode: "oneline",
|
|
146
|
+
minFontSizePx: minFontSize,
|
|
147
|
+
maxFontSizePx: maxFontSize,
|
|
148
|
+
fontSizePrecisionPx: 0.5
|
|
149
|
+
}, placeholder), !!value && /*#__PURE__*/React.createElement(AutoResizeText, {
|
|
150
|
+
className: "pisell-base-virtual-input-value",
|
|
151
|
+
mode: "oneline",
|
|
152
|
+
minFontSizePx: minFontSize,
|
|
153
|
+
maxFontSizePx: maxFontSize,
|
|
154
|
+
fontSizePrecisionPx: 0.5,
|
|
155
|
+
scrollToEnd: true
|
|
156
|
+
}, value), /*#__PURE__*/React.createElement("div", {
|
|
157
|
+
className: "pisell-base-virtual-input-caret-container"
|
|
158
|
+
}, internalFocused && !disabled && showCursor && /*#__PURE__*/React.createElement("div", {
|
|
159
|
+
className: "pisell-base-virtual-input-caret"
|
|
160
|
+
})));
|
|
161
|
+
});
|
|
162
|
+
BaseVirtualInput.displayName = 'BaseVirtualInput';
|
|
163
|
+
export default BaseVirtualInput;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.pisell-base-virtual-input {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
transition: all 0.2s ease;
|
|
8
|
+
outline: none;
|
|
9
|
+
position: relative;
|
|
10
|
+
height: var(--virtual-input-height);
|
|
11
|
+
|
|
12
|
+
&--disabled {
|
|
13
|
+
cursor: not-allowed;
|
|
14
|
+
opacity: 0.6;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pisell-base-virtual-input-placeholder {
|
|
19
|
+
color: #98a2b3;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
user-select: none;
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 0;
|
|
24
|
+
top: 0;
|
|
25
|
+
width: 100%;
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
font-size: var(--virtual-input-font-size);
|
|
30
|
+
height: var(--virtual-input-height);
|
|
31
|
+
line-height: var(--virtual-input-height);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pisell-base-virtual-input-value {
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
// width: 100%;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
overflow-y: hidden;
|
|
41
|
+
overflow-x: auto;
|
|
42
|
+
font-size: var(--virtual-input-font-size);
|
|
43
|
+
line-height: var(--virtual-input-height);
|
|
44
|
+
height: var(--virtual-input-height);
|
|
45
|
+
|
|
46
|
+
-ms-overflow-style: none; /* IE 和 Edge */
|
|
47
|
+
scrollbar-width: none; /* Firefox */
|
|
48
|
+
&::-webkit-scrollbar {
|
|
49
|
+
display: none; /* Chrome, Safari 和 Opera */
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pisell-base-virtual-input-caret-container {
|
|
54
|
+
height: 100%;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pisell-base-virtual-input-caret {
|
|
61
|
+
width: 2px;
|
|
62
|
+
height: var(--virtual-input-caret-height);
|
|
63
|
+
background-color: #1570ef;
|
|
64
|
+
border-radius: 1px;
|
|
65
|
+
animation: pisell-base-virtual-input-caret-blink 1s infinite;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes pisell-base-virtual-input-caret-blink {
|
|
69
|
+
0%,
|
|
70
|
+
50% {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
51%,
|
|
74
|
+
100% {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseVirtualInputProps, BaseVirtualInputRef } from './BaseVirtualInput';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export { BaseVirtualInputProps, BaseVirtualInputRef } from './BaseVirtualInput';
|
|
5
|
+
export interface VirtualInputProps extends BaseVirtualInputProps {
|
|
6
|
+
/** 在VirtualInput上方显示的额外内容 */
|
|
7
|
+
topContent?: React.ReactNode;
|
|
8
|
+
/** 在VirtualInput下方显示的额外内容 */
|
|
9
|
+
bottomContent?: React.ReactNode;
|
|
10
|
+
/** wrapper class */
|
|
11
|
+
wrapperClassName?: string;
|
|
12
|
+
/** 虚拟输入框包装器的样式 */
|
|
13
|
+
wrapperStyle?: React.CSSProperties;
|
|
14
|
+
/** 是否允许清除输入框中的内容 */
|
|
15
|
+
allowClear?: boolean;
|
|
16
|
+
/** 清除输入框内容的回调函数 */
|
|
17
|
+
onClear?: () => void;
|
|
18
|
+
/** 自定义清除按钮的样式 */
|
|
19
|
+
clearButtonStyle?: React.CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
export interface VirtualInputRef extends BaseVirtualInputRef {
|
|
22
|
+
}
|
|
23
|
+
declare const VirtualInput: React.ForwardRefExoticComponent<VirtualInputProps & React.RefAttributes<VirtualInputRef>>;
|
|
24
|
+
export default VirtualInput;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var _excluded = ["topContent", "bottomContent", "wrapperStyle", "wrapperClassName", "allowClear", "onClear", "value", "clearButtonStyle"];
|
|
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 _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; }
|
|
4
|
+
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; }
|
|
5
|
+
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import Icon from "../icon";
|
|
8
|
+
import BaseVirtualInput from "./BaseVirtualInput";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
export { BaseVirtualInputProps, BaseVirtualInputRef } from "./BaseVirtualInput";
|
|
11
|
+
var VirtualInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12
|
+
var topContent = _ref.topContent,
|
|
13
|
+
bottomContent = _ref.bottomContent,
|
|
14
|
+
wrapperStyle = _ref.wrapperStyle,
|
|
15
|
+
wrapperClassName = _ref.wrapperClassName,
|
|
16
|
+
_ref$allowClear = _ref.allowClear,
|
|
17
|
+
allowClear = _ref$allowClear === void 0 ? false : _ref$allowClear,
|
|
18
|
+
onClear = _ref.onClear,
|
|
19
|
+
value = _ref.value,
|
|
20
|
+
clearButtonStyle = _ref.clearButtonStyle,
|
|
21
|
+
virtualInputProps = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
var baseInputRef = useRef(null);
|
|
23
|
+
|
|
24
|
+
// 处理清除操作
|
|
25
|
+
var handleClear = function handleClear() {
|
|
26
|
+
// 全部清除
|
|
27
|
+
onClear === null || onClear === void 0 || onClear();
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// 暴露给父组件的方法
|
|
31
|
+
useImperativeHandle(ref, function () {
|
|
32
|
+
return {
|
|
33
|
+
focus: function focus() {
|
|
34
|
+
var _baseInputRef$current;
|
|
35
|
+
return (_baseInputRef$current = baseInputRef.current) === null || _baseInputRef$current === void 0 ? void 0 : _baseInputRef$current.focus();
|
|
36
|
+
},
|
|
37
|
+
blur: function blur() {
|
|
38
|
+
var _baseInputRef$current2;
|
|
39
|
+
return (_baseInputRef$current2 = baseInputRef.current) === null || _baseInputRef$current2 === void 0 ? void 0 : _baseInputRef$current2.blur();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: classNames('pisell-virtual-input-wrapper', wrapperClassName),
|
|
45
|
+
style: wrapperStyle
|
|
46
|
+
}, topContent, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "pisell-virtual-input-container"
|
|
48
|
+
}, /*#__PURE__*/React.createElement(BaseVirtualInput, _extends({
|
|
49
|
+
ref: baseInputRef,
|
|
50
|
+
value: value
|
|
51
|
+
}, virtualInputProps)), allowClear && /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: "pisell-virtual-input-clear-button",
|
|
53
|
+
onClick: handleClear,
|
|
54
|
+
style: clearButtonStyle
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
56
|
+
type: "pisell2-delete"
|
|
57
|
+
}))), bottomContent);
|
|
58
|
+
});
|
|
59
|
+
VirtualInput.displayName = 'VirtualInput';
|
|
60
|
+
export default VirtualInput;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.pisell-virtual-input-wrapper {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.pisell-virtual-input-container {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pisell-virtual-input-clear-button {
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: 8px;
|
|
15
|
+
top: 50%;
|
|
16
|
+
transform: translateY(-50%);
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
width: 24px;
|
|
21
|
+
height: 24px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
transition: all 0.2s ease;
|
|
25
|
+
color: #667085;
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
z-index: 1;
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: #f2f4f7;
|
|
31
|
+
color: #344054;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:active {
|
|
35
|
+
background-color: #e4e7ec;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
svg {
|
|
39
|
+
width: 16px;
|
|
40
|
+
height: 16px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
/** 是否显示查看PIN */
|
|
66
|
+
showViewPin?: boolean;
|
|
67
|
+
/** 查看PIN的回调 */
|
|
68
|
+
onViewPinClick?: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare const WalletCard: React.FC<WalletCardProps>;
|
|
71
|
+
export default WalletCard;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version, } from 'antd';
|
|
2
|
+
export { default as AutoComplete } from './components/auto-complete';
|
|
3
|
+
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
4
|
+
export { default as Badge } from './components/badge';
|
|
5
|
+
export { default as BatchEditor } from './components/batch-editor';
|
|
6
|
+
export { default as Button } from './components/button';
|
|
7
|
+
export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
|
|
8
|
+
export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
|
|
9
|
+
export { default as Calendar } from './components/calendar';
|
|
10
|
+
export { default as CardMetricItem } from './components/cardMetricItem';
|
|
11
|
+
export { default as CardPro } from './components/cardPro';
|
|
12
|
+
export { default as Cascader } from './components/cascader';
|
|
13
|
+
export { default as Checkbox } from './components/checkbox';
|
|
14
|
+
export { default as ClassicLayout } from './components/classicLayout';
|
|
15
|
+
export { default as Component } from './components/component';
|
|
16
|
+
export { default as ConfigProvider } from './components/config-provider';
|
|
17
|
+
export { default as CropPhoto } from './components/cropPhoto';
|
|
18
|
+
export { default as DataSourceForm } from './components/dataSourceComponents/dataSourceForm';
|
|
19
|
+
export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
|
|
20
|
+
export { default as JsonWrapper } from './components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider';
|
|
21
|
+
export { default as SubmitButton } from './components/dataSourceComponents/dataSourceForm/submitButton';
|
|
22
|
+
export { default as DataSourceMenu } from './components/dataSourceComponents/dataSourceMenu';
|
|
23
|
+
export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
|
|
24
|
+
export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
|
|
25
|
+
export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
|
|
26
|
+
export { default as DataSourceTable } from './components/dataSourceComponents/dataSourceTable';
|
|
27
|
+
export { default as DataSourceWrapper } from './components/dataSourceComponents/dataSourceWrapper';
|
|
28
|
+
export { default as FormItemCheckbox } from './components/dataSourceComponents/fields/Checkbox';
|
|
29
|
+
export { default as FormItemColorPicker } from './components/dataSourceComponents/fields/ColorPicker';
|
|
30
|
+
export { default as FormItemDatePicker } from './components/dataSourceComponents/fields/DatePicker';
|
|
31
|
+
export { default as FormItemInput } from './components/dataSourceComponents/fields/Input';
|
|
32
|
+
export { default as FormItemInputNumber } from './components/dataSourceComponents/fields/InputNumber';
|
|
33
|
+
export { default as FormItemRadio } from './components/dataSourceComponents/fields/Radio';
|
|
34
|
+
export { default as FormItemSelect } from './components/dataSourceComponents/fields/Select';
|
|
35
|
+
export { default as FormItemTimePicker } from './components/dataSourceComponents/fields/TimePicker';
|
|
36
|
+
export { default as FormItemTranslation } from './components/dataSourceComponents/fields/Translation';
|
|
37
|
+
export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
|
|
38
|
+
export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
|
|
39
|
+
export { default as DatePicker } from './components/date-picker';
|
|
40
|
+
export { default as Div } from './components/div';
|
|
41
|
+
export { default as DragSortTree } from './components/drag-sort-tree';
|
|
42
|
+
export { default as Drawer } from './components/drawer';
|
|
43
|
+
export { default as Dropdown } from './components/dropdown';
|
|
44
|
+
export { default as Filter } from './components/filter';
|
|
45
|
+
export { default as Form } from './components/form';
|
|
46
|
+
export { default as Icon } from './components/icon';
|
|
47
|
+
export { default as Iconfont } from './components/iconfont';
|
|
48
|
+
export { default as Input } from './components/input';
|
|
49
|
+
export { default as InputNumberRange } from './components/input-number-range';
|
|
50
|
+
export { default as List } from './components/list';
|
|
51
|
+
export { default as loginAndRegister } from './components/login-and-register';
|
|
52
|
+
export { default as LowCodePage } from './components/lowCodePage';
|
|
53
|
+
export { default as Modal } from './components/modal';
|
|
54
|
+
export { default as OrganizationTenantSwitcher } from './components/organizationTenantSwitcher';
|
|
55
|
+
export { default as Page } from './components/page';
|
|
56
|
+
export { default as PageHeader } from './components/page-header';
|
|
57
|
+
export { default as PisellConfigProvider } from './components/pisell-config-provider';
|
|
58
|
+
export { default as PisellContext, globalConfig, } from './components/pisell-config-provider/context';
|
|
59
|
+
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
60
|
+
export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
|
|
61
|
+
export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
|
|
62
|
+
export { default as PisellAlert } from './components/pisellAlert';
|
|
63
|
+
export { default as PisellAnchor } from './components/pisellAnchor';
|
|
64
|
+
export { default as PisellAvatar } from './components/pisellAvatar';
|
|
65
|
+
export { default as PisellCard } from './components/pisellCard';
|
|
66
|
+
export { default as PisellCardList } from './components/pisellCardList';
|
|
67
|
+
export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup';
|
|
68
|
+
export { default as PisellContainer } from './components/pisellContainer';
|
|
69
|
+
export { default as PisellCountdown } from './components/pisellCountdown';
|
|
70
|
+
export { default as PisellDatePicker } from './components/pisellDatePicker';
|
|
71
|
+
export { default as PisellDraggable } from './components/pisellDraggable';
|
|
72
|
+
export { default as PisellEmpty } from './components/pisellEmpty';
|
|
73
|
+
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
74
|
+
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
75
|
+
export { default as PisellInput } from './components/pisellInput';
|
|
76
|
+
export { getBankCardTypeImg } from './components/pisellInput/components/BankCard/utils';
|
|
77
|
+
export { default as PisellQrcode } from './components/pisellQrcode';
|
|
78
|
+
export { default as PisellLayout } from './components/pisellLayout';
|
|
79
|
+
export { default as PisellContent } from './components/pisellLayout/content';
|
|
80
|
+
export { default as PisellFooter } from './components/pisellLayout/footer';
|
|
81
|
+
export { default as PisellHeader } from './components/pisellLayout/header';
|
|
82
|
+
export { default as PisellSider } from './components/pisellLayout/sider';
|
|
83
|
+
export { default as PisellLoading } from './components/pisellLoading';
|
|
84
|
+
export { default as PisellMenu } from './components/pisellMenu';
|
|
85
|
+
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
86
|
+
export { default as PisellModal } from './components/pisellModal';
|
|
87
|
+
export { default as PisellQRScanner } from './components/pisellQRScanner';
|
|
88
|
+
export type { PisellQRScannerProps } from './components/pisellQRScanner';
|
|
89
|
+
export { default as PisellRow } from './components/pisellRow';
|
|
90
|
+
export { default as PisellScan } from './components/pisellScan';
|
|
91
|
+
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
92
|
+
export { default as PisellTags } from './components/pisellTags';
|
|
93
|
+
export { default as PisellText } from './components/pisellText';
|
|
94
|
+
export { default as PisellToast, useToast } from './components/pisellToast';
|
|
95
|
+
export { default as PisellTooltip } from './components/pisellTooltip';
|
|
96
|
+
export { default as PisellUpload } from './components/pisellUpload';
|
|
97
|
+
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
98
|
+
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
99
|
+
export type { PisellWalletPassCardProps } from './components/pisellWalletPassCard';
|
|
100
|
+
export { default as ProfileMenu } from './components/profileMenu';
|
|
101
|
+
export { default as QRCode } from './components/qrcode';
|
|
102
|
+
export { default as Radio } from './components/radio';
|
|
103
|
+
export { default as RecordView } from './components/record-view';
|
|
104
|
+
export { default as Segmented } from './components/segmented';
|
|
105
|
+
export { default as Select } from './components/select';
|
|
106
|
+
export { default as SelectTime } from './components/select-time';
|
|
107
|
+
export { default as Skeleton } from './components/skeleton';
|
|
108
|
+
export { default as Slider } from './components/slider';
|
|
109
|
+
export { default as Sort } from './components/sort';
|
|
110
|
+
export { default as SortableList } from './components/sortableList';
|
|
111
|
+
export { default as Table } from './components/table';
|
|
112
|
+
export { default as Tabs } from './components/tabs';
|
|
113
|
+
export { default as TimePicker } from './components/time-picker';
|
|
114
|
+
export { default as Translation } from './components/translation';
|
|
115
|
+
export { default as TreeSelect } from './components/tree-select';
|
|
116
|
+
export { default as Typography } from './components/typography';
|
|
117
|
+
export { default as Upload } from './components/upload';
|
|
118
|
+
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
119
|
+
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
120
|
+
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
121
|
+
export { default as WalletCard } from './components/walletCard';
|
|
122
|
+
export { default as PublishVersionModal } from './components/versionModal';
|
|
123
|
+
export { default as IconSelect } from './components/iconSelect';
|
|
124
|
+
export { default as CustomSelect } from './components/customSelect';
|
|
125
|
+
export { default as AppVersionControl } from './components/appVersionControl';
|
|
126
|
+
export { default as Image } from './components/image';
|
|
127
|
+
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
128
|
+
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
129
|
+
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
130
|
+
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
|
131
|
+
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
|
132
|
+
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
133
|
+
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
134
|
+
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
135
|
+
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
136
|
+
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
137
|
+
export { default as PisellList01 } from './components/pisellList01';
|
|
138
|
+
export { default as SectionFooters } from './components/section-footers';
|
|
139
|
+
export { default as ProductCard } from './components/productCard';
|
|
140
|
+
export { default as Collapse } from './components/collapse';
|
|
141
|
+
export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
|
|
142
|
+
export { default as Keyboard } from './components/keyboard';
|
|
143
|
+
export { default as VirtualInput } from './components/virtualInput';
|
|
144
|
+
export { default as AutoResizeText } from './components/auto-resize-text';
|
package/es/index.js
CHANGED
|
@@ -137,4 +137,7 @@ export { default as PisellList01 } from "./components/pisellList01";
|
|
|
137
137
|
export { default as SectionFooters } from "./components/section-footers";
|
|
138
138
|
export { default as ProductCard } from "./components/productCard";
|
|
139
139
|
export { default as Collapse } from "./components/collapse";
|
|
140
|
-
export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
|
|
140
|
+
export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
|
|
141
|
+
export { default as Keyboard } from "./components/keyboard";
|
|
142
|
+
export { default as VirtualInput } from "./components/virtualInput";
|
|
143
|
+
export { default as AutoResizeText } from "./components/auto-resize-text";
|