@pisell/materials 6.3.17 → 6.3.18
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 +5 -5
- package/build/lowcode/preview.js +144 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/TimeResourceSelector/index.d.ts +21 -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.js +10 -3
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -16
- 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/page/index.js +5 -2
- package/es/components/pisell-config-provider/context.d.ts +2 -0
- package/es/components/pisell-config-provider/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.js +5 -1
- package/es/components/pisellAdjustPrice/type.d.ts +2 -0
- package/es/components/pisellCardList/index.d.ts +32 -2
- package/es/components/pisellCardList/index.js +39 -2
- package/es/components/pisellCardList/index.less +9 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +3 -0
- package/es/components/pisellCheckboxGroup/index.js +9 -4
- package/es/components/pisellCheckboxGroup/index.less +28 -1
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellGoodPassCard/index.d.ts +1 -0
- package/es/components/pisellGoodPassCard/index.js +17 -5
- package/es/components/pisellText/components/Amount/index.js +2 -1
- package/es/components/pisellToast/index.d.ts +1 -0
- package/es/components/pisellToast/index.js +4 -0
- package/es/components/pisellToast/squareToast/index.d.ts +15 -0
- package/es/components/pisellToast/squareToast/index.js +28 -0
- package/es/components/pisellToast/squareToast/index.less +60 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/methods.js +136 -0
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/es/components/pisellToast/squareToast/renderImperatively.js +190 -0
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/es/components/pisellToast/squareToast/toast.js +60 -0
- package/es/components/pisellWalletPassCard/index.d.ts +53 -1
- package/es/components/pisellWalletPassCard/index.js +333 -73
- package/es/components/pisellWalletPassCard/index.less +47 -9
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +82 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +56 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.js +29 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.less +27 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +28 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +94 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.js +49 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.less +47 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.js +39 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.less +19 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.js +57 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.js +44 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.less +34 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +360 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +74 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +54 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/index.js +194 -0
- package/es/components/productCard/cartSkuCard/index.less +33 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +99 -0
- package/es/components/productCard/cartSkuCard/locales.js +33 -0
- package/es/components/productCard/components/Action/index.js +14 -1
- package/es/components/productCard/components/Action/index.less +3 -0
- package/es/components/productCard/components/Header/index.js +23 -8
- package/es/components/productCard/components/Header/index.less +16 -1
- package/es/components/productCard/components/Sales/index.js +2 -2
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +3 -1
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
- package/es/components/productCard/index.d.ts +3 -1
- package/es/components/productCard/index.js +7 -2
- package/es/components/productCard/index.less +6 -0
- package/es/components/productCard/locales.js +3 -0
- package/es/components/productCard/status.js +1 -0
- package/es/components/productCard/types.d.ts +1 -0
- package/es/components/productCard/utils.js +8 -1
- package/es/components/select-time/index.d.ts +14 -0
- package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.js +13 -13
- package/es/components/table/Table/AddFieldModal/index.less +11 -11
- package/es/components/table/Table/utils.d.ts +1 -1
- 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/virtual-keyboard/Number/index.js +4 -1
- package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
- package/es/components/virtual-keyboard/index.d.ts +11 -0
- package/es/components/virtual-keyboard/index.js +88 -3
- package/es/components/virtual-keyboard/index.less +33 -1
- 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/index.d.ts +5 -1
- package/es/index.js +5 -2
- package/es/locales/en-US.d.ts +19 -2
- package/es/locales/en-US.js +29 -6
- package/es/locales/zh-CN.d.ts +19 -2
- package/es/locales/zh-CN.js +29 -6
- package/es/locales/zh-TW.d.ts +19 -2
- package/es/locales/zh-TW.js +28 -6
- package/lib/components/TimeResourceSelector/index.d.ts +21 -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.js +3 -2
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -16
- 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/page/index.js +3 -2
- package/lib/components/pisell-config-provider/context.d.ts +2 -0
- package/lib/components/pisell-config-provider/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.js +4 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
- package/lib/components/pisellCardList/index.d.ts +32 -2
- package/lib/components/pisellCardList/index.js +39 -2
- package/lib/components/pisellCardList/index.less +9 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +3 -0
- package/lib/components/pisellCheckboxGroup/index.js +6 -1
- package/lib/components/pisellCheckboxGroup/index.less +28 -1
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -0
- package/lib/components/pisellGoodPassCard/index.js +31 -4
- package/lib/components/pisellText/components/Amount/index.js +2 -1
- package/lib/components/pisellToast/index.d.ts +1 -0
- package/lib/components/pisellToast/index.js +10 -1
- package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
- package/lib/components/pisellToast/squareToast/index.js +58 -0
- package/lib/components/pisellToast/squareToast/index.less +60 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/methods.js +150 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.js +162 -0
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/lib/components/pisellToast/squareToast/toast.js +88 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
- package/lib/components/pisellWalletPassCard/index.js +257 -59
- package/lib/components/pisellWalletPassCard/index.less +47 -9
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +77 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.js +56 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.less +27 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +28 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +83 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +64 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +47 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +19 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +77 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +66 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +34 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +373 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +74 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +68 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/index.js +229 -0
- package/lib/components/productCard/cartSkuCard/index.less +33 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +99 -0
- package/lib/components/productCard/cartSkuCard/locales.js +64 -0
- package/lib/components/productCard/components/Action/index.js +9 -0
- package/lib/components/productCard/components/Action/index.less +3 -0
- package/lib/components/productCard/components/Header/index.js +21 -11
- package/lib/components/productCard/components/Header/index.less +16 -1
- package/lib/components/productCard/components/Sales/index.js +2 -2
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
- package/lib/components/productCard/index.d.ts +3 -1
- package/lib/components/productCard/index.js +7 -2
- package/lib/components/productCard/index.less +6 -0
- package/lib/components/productCard/locales.js +12 -3
- package/lib/components/productCard/status.js +1 -0
- package/lib/components/productCard/types.d.ts +1 -0
- package/lib/components/productCard/utils.js +8 -1
- package/lib/components/select-time/index.d.ts +14 -0
- package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/lib/components/table/Table/AddFieldModal/index.js +9 -9
- package/lib/components/table/Table/AddFieldModal/index.less +11 -11
- package/lib/components/table/Table/utils.d.ts +1 -1
- 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/virtual-keyboard/Number/index.js +3 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
- package/lib/components/virtual-keyboard/index.d.ts +11 -0
- package/lib/components/virtual-keyboard/index.js +60 -2
- package/lib/components/virtual-keyboard/index.less +33 -1
- 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/index.d.ts +5 -1
- package/lib/index.js +11 -0
- package/lib/locales/en-US.d.ts +19 -2
- package/lib/locales/en-US.js +24 -5
- package/lib/locales/zh-CN.d.ts +19 -2
- package/lib/locales/zh-CN.js +24 -5
- package/lib/locales/zh-TW.d.ts +19 -2
- package/lib/locales/zh-TW.js +23 -5
- package/package.json +4 -4
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface BaseVirtualInputProps {
|
|
4
|
+
/** 输入值 */
|
|
5
|
+
value?: string | React.ReactNode;
|
|
6
|
+
/** 占位符 */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** 是否自动聚焦 */
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
/** 是否禁用 */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** 组件高度,默认60px */
|
|
13
|
+
height?: number | string;
|
|
14
|
+
/** 字体大小,默认48px,如果不设置会根据高度自动计算 */
|
|
15
|
+
fontSize?: number | string;
|
|
16
|
+
/** 聚焦回调 */
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
/** 失焦回调 */
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
/** 文字位置 */
|
|
21
|
+
textAlign?: 'start' | 'center' | 'end';
|
|
22
|
+
/** 自定义样式 */
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
/** 自定义类名 */
|
|
25
|
+
className?: string;
|
|
26
|
+
/** showCursor */
|
|
27
|
+
showCursor?: boolean;
|
|
28
|
+
/** 防止失焦的元素选择器或ref */
|
|
29
|
+
preventBlurElements?: Array<string | React.RefObject<HTMLElement>>;
|
|
30
|
+
/** 是否聚焦(受控模式) */
|
|
31
|
+
focused?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface BaseVirtualInputRef {
|
|
34
|
+
/** 手动聚焦 */
|
|
35
|
+
focus: () => void;
|
|
36
|
+
/** 手动失焦 */
|
|
37
|
+
blur: () => void;
|
|
38
|
+
}
|
|
39
|
+
declare const BaseVirtualInput: React.ForwardRefExoticComponent<BaseVirtualInputProps & React.RefAttributes<BaseVirtualInputRef>>;
|
|
40
|
+
export default BaseVirtualInput;
|
|
@@ -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
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -92,11 +92,12 @@ export { default as PisellScan } from './components/pisellScan';
|
|
|
92
92
|
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
93
93
|
export { default as PisellTags } from './components/pisellTags';
|
|
94
94
|
export { default as PisellText } from './components/pisellText';
|
|
95
|
-
export { default as PisellToast } from './components/pisellToast';
|
|
95
|
+
export { default as PisellToast, useToast } from './components/pisellToast';
|
|
96
96
|
export { default as PisellTooltip } from './components/pisellTooltip';
|
|
97
97
|
export { default as PisellUpload } from './components/pisellUpload';
|
|
98
98
|
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
99
99
|
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
100
|
+
export type { PisellWalletPassCardProps } from './components/pisellWalletPassCard';
|
|
100
101
|
export { default as ProfileMenu } from './components/profileMenu';
|
|
101
102
|
export { default as QRCode } from './components/qrcode';
|
|
102
103
|
export { default as Radio } from './components/radio';
|
|
@@ -140,3 +141,6 @@ export { default as SectionFooters } from './components/section-footers';
|
|
|
140
141
|
export { default as ProductCard } from './components/productCard';
|
|
141
142
|
export { default as Collapse } from './components/collapse';
|
|
142
143
|
export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
|
|
144
|
+
export { default as Keyboard } from './components/keyboard';
|
|
145
|
+
export { default as VirtualInput } from './components/virtualInput';
|
|
146
|
+
export { default as AutoResizeText } from './components/auto-resize-text';
|
package/es/index.js
CHANGED
|
@@ -92,7 +92,7 @@ export { default as PisellScan } from "./components/pisellScan";
|
|
|
92
92
|
export { default as PisellStatisticList } from "./components/pisellStatisticList";
|
|
93
93
|
export { default as PisellTags } from "./components/pisellTags";
|
|
94
94
|
export { default as PisellText } from "./components/pisellText";
|
|
95
|
-
export { default as PisellToast } from "./components/pisellToast";
|
|
95
|
+
export { default as PisellToast, useToast } from "./components/pisellToast";
|
|
96
96
|
// export { default as InformationModal } from './components/pisellModal/components/Information';
|
|
97
97
|
export { default as PisellTooltip } from "./components/pisellTooltip";
|
|
98
98
|
export { default as PisellUpload } from "./components/pisellUpload";
|
|
@@ -139,4 +139,7 @@ export { default as PisellList01 } from "./components/pisellList01";
|
|
|
139
139
|
export { default as SectionFooters } from "./components/section-footers";
|
|
140
140
|
export { default as ProductCard } from "./components/productCard";
|
|
141
141
|
export { default as Collapse } from "./components/collapse";
|
|
142
|
-
export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
|
|
142
|
+
export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
|
|
143
|
+
export { default as Keyboard } from "./components/keyboard";
|
|
144
|
+
export { default as VirtualInput } from "./components/virtualInput";
|
|
145
|
+
export { default as AutoResizeText } from "./components/auto-resize-text";
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -273,12 +273,19 @@ declare const _default: {
|
|
|
273
273
|
'pisell-login-and-register-register-button-text': string;
|
|
274
274
|
'pisell-login-and-register-remember-me': string;
|
|
275
275
|
'pisell-login-and-register-forgot-password': string;
|
|
276
|
-
'pisell2.wallet-card.add-holder-tip': string;
|
|
277
|
-
'pisell2.wallet-card.add-holder-button-text': string;
|
|
278
276
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
279
277
|
'pisell2.text.goodpass.last-settlement': string;
|
|
280
278
|
'pisell2.text.goodpass.view-more': string;
|
|
281
279
|
'pisell2.text.goodpass.save': string;
|
|
280
|
+
'pisell-wallet-pass-card-status-used': string;
|
|
281
|
+
'pisell-wallet-pass-card-status-expired': string;
|
|
282
|
+
'pisell-wallet-pass-card-status-disabled': string;
|
|
283
|
+
'pisell-wallet-pass-card-status-conflict': string;
|
|
284
|
+
'pisell-wallet-pass-card-status-lastPayment': string;
|
|
285
|
+
'pisell-wallet-pass-card-reset': string;
|
|
286
|
+
'pisell-wallet-pass-card-done': string;
|
|
287
|
+
'pisell2.wallet-card.add-holder-tip': string;
|
|
288
|
+
'pisell2.wallet-card.add-holder-button-text': string;
|
|
282
289
|
'pisell-camera-no-camera-accessible': string;
|
|
283
290
|
'pisell-camera-permission-denied': string;
|
|
284
291
|
'pisell-camera-switch-camera': string;
|
|
@@ -289,5 +296,15 @@ declare const _default: {
|
|
|
289
296
|
'pisell-upload-camera-capture': string;
|
|
290
297
|
'pisell-upload-camera-retake': string;
|
|
291
298
|
'pisell-upload-camera-use': string;
|
|
299
|
+
'pisell-list-tab-group-default': string;
|
|
300
|
+
'pisell-list-empty-text-default': string;
|
|
301
|
+
'pisell-list-load-more': string;
|
|
302
|
+
'pisell-list-view-less': string;
|
|
303
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
304
|
+
'pisell-list-scroll-down': string;
|
|
305
|
+
'pisell-list-scroll-right': string;
|
|
306
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
307
|
+
'pisell-list-pagination-previous': string;
|
|
308
|
+
'pisell-list-pagination-next': string;
|
|
292
309
|
};
|
|
293
310
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
'pisell-wallet-pass-card-name': 'Name',
|
|
148
148
|
'pisell-wallet-pass-card-store-name': 'StoreName',
|
|
149
149
|
'pisell-wallet-pass-card-balance': 'Balance',
|
|
150
|
-
'pisell-wallet-pass-card-redeem': '
|
|
150
|
+
'pisell-wallet-pass-card-redeem': 'use',
|
|
151
151
|
'pisell-wallet-pass-card-code': 'Code',
|
|
152
152
|
'pisell-wallet-pass-card-valid-to': 'Valid to',
|
|
153
153
|
'pisell-wallet-pass-card-valid': 'Valid',
|
|
@@ -337,13 +337,21 @@ export default {
|
|
|
337
337
|
'pisell-login-and-register-register-button-text': 'Create account',
|
|
338
338
|
'pisell-login-and-register-remember-me': 'Remember me',
|
|
339
339
|
'pisell-login-and-register-forgot-password': 'Forgot password?',
|
|
340
|
+
// 商品券组件
|
|
341
|
+
'pisell2.text.goodpass.product-vouchers': "Promotions & Vouchers",
|
|
342
|
+
'pisell2.text.goodpass.last-settlement': "(Last payment)",
|
|
343
|
+
'pisell2.text.goodpass.view-more': "View More",
|
|
344
|
+
'pisell2.text.goodpass.save': "Save",
|
|
340
345
|
// 钱包卡片组件
|
|
346
|
+
'pisell-wallet-pass-card-status-used': 'Used',
|
|
347
|
+
'pisell-wallet-pass-card-status-expired': 'Expired',
|
|
348
|
+
'pisell-wallet-pass-card-status-disabled': 'Disabled',
|
|
349
|
+
'pisell-wallet-pass-card-status-conflict': 'Conflict',
|
|
350
|
+
'pisell-wallet-pass-card-status-lastPayment': 'Last Payment',
|
|
351
|
+
'pisell-wallet-pass-card-reset': 'Reset',
|
|
352
|
+
'pisell-wallet-pass-card-done': 'Done',
|
|
341
353
|
'pisell2.wallet-card.add-holder-tip': 'To ensure your benefits, please\r\nassign a holder to activate this card.',
|
|
342
354
|
'pisell2.wallet-card.add-holder-button-text': 'Set Holder',
|
|
343
|
-
'pisell2.text.goodpass.product-vouchers': 'Promotions & Vouchers',
|
|
344
|
-
'pisell2.text.goodpass.last-settlement': '(Last payment)',
|
|
345
|
-
'pisell2.text.goodpass.view-more': 'View More',
|
|
346
|
-
'pisell2.text.goodpass.save': 'Save',
|
|
347
355
|
// 相机组件
|
|
348
356
|
'pisell-camera-no-camera-accessible': 'No camera accessible',
|
|
349
357
|
'pisell-camera-permission-denied': 'Permission denied',
|
|
@@ -355,5 +363,20 @@ export default {
|
|
|
355
363
|
'pisell-upload-camera-local-files': 'Local Files',
|
|
356
364
|
'pisell-upload-camera-capture': 'Capture',
|
|
357
365
|
'pisell-upload-camera-retake': 'Retake',
|
|
358
|
-
'pisell-upload-camera-use': 'Use photo'
|
|
366
|
+
'pisell-upload-camera-use': 'Use photo',
|
|
367
|
+
// 列表组件
|
|
368
|
+
'pisell-list-tab-group-default': 'Field',
|
|
369
|
+
'pisell-list-empty-text-default': 'No data available',
|
|
370
|
+
'pisell-list-load-more': 'Load More',
|
|
371
|
+
'pisell-list-view-less': 'View Less',
|
|
372
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
373
|
+
return "Showing ".concat(start, "-").concat(end, " of ").concat(total, " items");
|
|
374
|
+
},
|
|
375
|
+
'pisell-list-scroll-down': 'Scroll Down',
|
|
376
|
+
'pisell-list-scroll-right': 'Scroll Right',
|
|
377
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
378
|
+
return "Page ".concat(current, " of ").concat(total);
|
|
379
|
+
},
|
|
380
|
+
'pisell-list-pagination-previous': 'Previous',
|
|
381
|
+
'pisell-list-pagination-next': 'Next'
|
|
359
382
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -268,12 +268,19 @@ declare const _default: {
|
|
|
268
268
|
'pisell-login-and-register-register-button-text': string;
|
|
269
269
|
'pisell-login-and-register-remember-me': string;
|
|
270
270
|
'pisell-login-and-register-forgot-password': string;
|
|
271
|
-
'pisell2.wallet-card.add-holder-tip': string;
|
|
272
|
-
'pisell2.wallet-card.add-holder-button-text': string;
|
|
273
271
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
274
272
|
'pisell2.text.goodpass.last-settlement': string;
|
|
275
273
|
'pisell2.text.goodpass.view-more': string;
|
|
276
274
|
'pisell2.text.goodpass.save': string;
|
|
275
|
+
'pisell-wallet-pass-card-status-used': string;
|
|
276
|
+
'pisell-wallet-pass-card-status-expired': string;
|
|
277
|
+
'pisell-wallet-pass-card-status-disabled': string;
|
|
278
|
+
'pisell-wallet-pass-card-status-conflict': string;
|
|
279
|
+
'pisell-wallet-pass-card-status-lastPayment': string;
|
|
280
|
+
'pisell-wallet-pass-card-reset': string;
|
|
281
|
+
'pisell-wallet-pass-card-done': string;
|
|
282
|
+
'pisell2.wallet-card.add-holder-tip': string;
|
|
283
|
+
'pisell2.wallet-card.add-holder-button-text': string;
|
|
277
284
|
'pisell-camera-no-camera-accessible': string;
|
|
278
285
|
'pisell-camera-permission-denied': string;
|
|
279
286
|
'pisell-camera-switch-camera': string;
|
|
@@ -284,5 +291,15 @@ declare const _default: {
|
|
|
284
291
|
'pisell-upload-camera-capture': string;
|
|
285
292
|
'pisell-upload-camera-retake': string;
|
|
286
293
|
'pisell-upload-camera-use': string;
|
|
294
|
+
'pisell-list-tab-group-default': string;
|
|
295
|
+
'pisell-list-empty-text-default': string;
|
|
296
|
+
'pisell-list-load-more': string;
|
|
297
|
+
'pisell-list-view-less': string;
|
|
298
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
299
|
+
'pisell-list-scroll-down': string;
|
|
300
|
+
'pisell-list-scroll-right': string;
|
|
301
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
302
|
+
'pisell-list-pagination-previous': string;
|
|
303
|
+
'pisell-list-pagination-next': string;
|
|
287
304
|
};
|
|
288
305
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
'pisell-wallet-pass-card-name': '商品名称',
|
|
148
148
|
'pisell-wallet-pass-card-store-name': '共享店铺名称',
|
|
149
149
|
'pisell-wallet-pass-card-balance': '余额',
|
|
150
|
-
'pisell-wallet-pass-card-redeem': '
|
|
150
|
+
'pisell-wallet-pass-card-redeem': '使用',
|
|
151
151
|
'pisell-wallet-pass-card-code': '识别码编号',
|
|
152
152
|
'pisell-wallet-pass-card-valid-to': '有效期至',
|
|
153
153
|
'pisell-wallet-pass-card-valid': '有效期',
|
|
@@ -328,13 +328,21 @@ export default {
|
|
|
328
328
|
'pisell-login-and-register-register-button-text': '创建账户',
|
|
329
329
|
'pisell-login-and-register-remember-me': '记住我',
|
|
330
330
|
'pisell-login-and-register-forgot-password': '忘记密码?',
|
|
331
|
+
// 商品券
|
|
332
|
+
'pisell2.text.goodpass.product-vouchers': "优惠促销",
|
|
333
|
+
'pisell2.text.goodpass.last-settlement': "(上次结算)",
|
|
334
|
+
'pisell2.text.goodpass.view-more': "查看更多",
|
|
335
|
+
'pisell2.text.goodpass.save': "节省",
|
|
331
336
|
// 钱包卡片组件
|
|
337
|
+
'pisell-wallet-pass-card-status-used': '已使用',
|
|
338
|
+
'pisell-wallet-pass-card-status-expired': '已过期',
|
|
339
|
+
'pisell-wallet-pass-card-status-disabled': '已禁用',
|
|
340
|
+
'pisell-wallet-pass-card-status-conflict': '冲突',
|
|
341
|
+
'pisell-wallet-pass-card-status-lastPayment': '上次结算',
|
|
342
|
+
'pisell-wallet-pass-card-reset': '清空',
|
|
343
|
+
'pisell-wallet-pass-card-done': '保存',
|
|
332
344
|
'pisell2.wallet-card.add-holder-tip': '为确保您的权益,此卡\r\n需指定使用人后方可激活使用。',
|
|
333
345
|
'pisell2.wallet-card.add-holder-button-text': '添加持有人',
|
|
334
|
-
'pisell2.text.goodpass.product-vouchers': '优惠促销',
|
|
335
|
-
'pisell2.text.goodpass.last-settlement': '(上次结算)',
|
|
336
|
-
'pisell2.text.goodpass.view-more': '查看更多',
|
|
337
|
-
'pisell2.text.goodpass.save': '节省',
|
|
338
346
|
// 相机组件
|
|
339
347
|
'pisell-camera-no-camera-accessible': '没有找到摄像头',
|
|
340
348
|
'pisell-camera-permission-denied': '没有权限使用摄像头',
|
|
@@ -346,5 +354,20 @@ export default {
|
|
|
346
354
|
'pisell-upload-camera-local-files': '本地文件',
|
|
347
355
|
'pisell-upload-camera-capture': '拍摄/拍照',
|
|
348
356
|
'pisell-upload-camera-retake': '重拍',
|
|
349
|
-
'pisell-upload-camera-use': '使用照片'
|
|
357
|
+
'pisell-upload-camera-use': '使用照片',
|
|
358
|
+
// 列表组件
|
|
359
|
+
'pisell-list-tab-group-default': '字段',
|
|
360
|
+
'pisell-list-empty-text-default': '暂无数据',
|
|
361
|
+
'pisell-list-load-more': '查看更多',
|
|
362
|
+
'pisell-list-view-less': '查看更少',
|
|
363
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
364
|
+
return "\u663E\u793A\u7B2C ".concat(start, "-").concat(end, " \u6761\uFF0C\u5171 ").concat(total, " \u6761");
|
|
365
|
+
},
|
|
366
|
+
'pisell-list-scroll-down': '向下滚动',
|
|
367
|
+
'pisell-list-scroll-right': '向右滚动',
|
|
368
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
369
|
+
return "\u7B2C ".concat(current, " \u9875 \u5171 ").concat(total, " \u9875");
|
|
370
|
+
},
|
|
371
|
+
'pisell-list-pagination-previous': '上一页',
|
|
372
|
+
'pisell-list-pagination-next': '下一页'
|
|
350
373
|
};
|