@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
|
@@ -44,10 +44,10 @@ var Sales = ({ item, isShowNote }) => {
|
|
|
44
44
|
return {
|
|
45
45
|
...p,
|
|
46
46
|
title: p == null ? void 0 : p.product_title,
|
|
47
|
-
price: p == null ? void 0 : p.
|
|
47
|
+
price: p == null ? void 0 : p.selling_price,
|
|
48
48
|
symbol: item.symbol,
|
|
49
49
|
num: p == null ? void 0 : p.product_quantity,
|
|
50
|
-
total: p == null ? void 0 : p.
|
|
50
|
+
total: p == null ? void 0 : p.selling_price
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
53
|
return (other_products == null ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-title` }, import_utils2.locales.getText("pisell2.product.card.sales")), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -154,7 +154,7 @@ var SelectHolderModal = (props) => {
|
|
|
154
154
|
import_utils.locales.getText(
|
|
155
155
|
"pisell2.product.card.add.holder.modal.cancel"
|
|
156
156
|
)
|
|
157
|
-
)), /* @__PURE__ */ import_react.default.createElement("div",
|
|
157
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "select-holder-modal-footer-right" }, /* @__PURE__ */ import_react.default.createElement(
|
|
158
158
|
import_antd.Button,
|
|
159
159
|
{
|
|
160
160
|
size: "large",
|
|
@@ -51,6 +51,7 @@ var import_status = require("./status");
|
|
|
51
51
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
52
52
|
var import_Warning = __toESM(require("./components/Warning"));
|
|
53
53
|
var import_index = require("./index.less");
|
|
54
|
+
var import_cartSkuCard = __toESM(require("./cartSkuCard"));
|
|
54
55
|
var ProductCard = (props) => {
|
|
55
56
|
var _a, _b;
|
|
56
57
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -61,8 +62,10 @@ var ProductCard = (props) => {
|
|
|
61
62
|
isShowHolder = import_status.defaultValue.isShowHolder,
|
|
62
63
|
isShowNote = import_status.defaultValue.isShowNote,
|
|
63
64
|
isShowDelete = import_status.defaultValue.isShowDelete,
|
|
65
|
+
isShowAmountFooter = import_status.defaultValue.isShowAmountFooter,
|
|
64
66
|
isShowPackageNote = import_status.defaultValue.isShowPackageNote,
|
|
65
67
|
isShowEditProduct = import_status.defaultValue.isShowEditProduct,
|
|
68
|
+
scenario,
|
|
66
69
|
onEditProduct,
|
|
67
70
|
onAction,
|
|
68
71
|
onDelete,
|
|
@@ -106,8 +109,9 @@ var ProductCard = (props) => {
|
|
|
106
109
|
import_cardPro.default,
|
|
107
110
|
{
|
|
108
111
|
className: (0, import_classnames.default)("pisell-lowcode-product-card", {
|
|
109
|
-
["pisell-lowcode-product-card-image"]: !showImage,
|
|
110
|
-
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct
|
|
112
|
+
["pisell-lowcode-product-card-image"]: !showImage && scenario !== "booking2",
|
|
113
|
+
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct && scenario !== "booking2",
|
|
114
|
+
["pisell-lowcode-product-card-image-booking2"]: scenario === "booking2"
|
|
111
115
|
}),
|
|
112
116
|
key: _id
|
|
113
117
|
},
|
|
@@ -197,4 +201,5 @@ var ProductCard = (props) => {
|
|
|
197
201
|
)
|
|
198
202
|
);
|
|
199
203
|
};
|
|
204
|
+
ProductCard.V2 = import_cartSkuCard.default;
|
|
200
205
|
var productCard_default = ProductCard;
|
|
@@ -42,7 +42,10 @@ var locales_default = {
|
|
|
42
42
|
"pisell2.product.card.add.holder.placeholder": (val) => `Please select ${val || ""}`,
|
|
43
43
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `Please Select ${num} ${val || ""}`,
|
|
44
44
|
"pisell2.product.card.add.holder.modal.title.1": `Please Select`,
|
|
45
|
-
"pisell2.product.card.hour.minute": (hour, minute) =>
|
|
45
|
+
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
46
|
+
if (hour <= 0 && minute <= 0) return `${0}min`;
|
|
47
|
+
return `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`;
|
|
48
|
+
},
|
|
46
49
|
"pisell2.product.card.sales": "Sales",
|
|
47
50
|
"pisell2.product.card.add.holder.modal.cancel": "Cancel",
|
|
48
51
|
"pisell2.product.card.add.holder.modal.clear": "Clear",
|
|
@@ -69,7 +72,10 @@ var locales_default = {
|
|
|
69
72
|
"pisell2.product.card.add.holder.placeholder": (val) => `请选择${val || ""}`,
|
|
70
73
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `请选择${num}${val || ""}`,
|
|
71
74
|
"pisell2.product.card.add.holder.modal.title.1": `请选择`,
|
|
72
|
-
"pisell2.product.card.hour.minute": (hour, minute) =>
|
|
75
|
+
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
76
|
+
if (hour <= 0 && minute <= 0) return `${0}分钟`;
|
|
77
|
+
return `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`;
|
|
78
|
+
},
|
|
73
79
|
"pisell2.product.card.sales": "销售",
|
|
74
80
|
"pisell2.product.card.add.holder.modal.cancel": "取消",
|
|
75
81
|
"pisell2.product.card.add.holder.modal.clear": "清除",
|
|
@@ -96,7 +102,10 @@ var locales_default = {
|
|
|
96
102
|
"pisell2.product.card.add.holder.placeholder": (val) => `請選擇${val || ""}`,
|
|
97
103
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `請選擇${num}${val || ""}`,
|
|
98
104
|
"pisell2.product.card.add.holder.modal.title.1": `請選擇`,
|
|
99
|
-
"pisell2.product.card.hour.minute": (hour, minute) =>
|
|
105
|
+
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
106
|
+
if (hour <= 0 && minute <= 0) return `${0}分鐘`;
|
|
107
|
+
return `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`;
|
|
108
|
+
},
|
|
100
109
|
"pisell2.product.card.sales": "銷售",
|
|
101
110
|
"pisell2.product.card.add.holder.modal.cancel": "取消",
|
|
102
111
|
"pisell2.product.card.add.holder.modal.clear": "清除",
|
|
@@ -95,6 +95,13 @@ var getServiceTime = (item, currentDate) => {
|
|
|
95
95
|
} else {
|
|
96
96
|
dateTime = `${startDate.format(dateFormat)} ${startTime} ~ ${endDate.format(dateFormat)} ${endTime}`;
|
|
97
97
|
}
|
|
98
|
+
if (durationType === "days") {
|
|
99
|
+
dateTime = formatMultiDayDate({
|
|
100
|
+
start_date: startDate.format("YYYY-MM-DD"),
|
|
101
|
+
end_date: endDate.format("YYYY-MM-DD"),
|
|
102
|
+
locale
|
|
103
|
+
});
|
|
104
|
+
}
|
|
98
105
|
}
|
|
99
106
|
const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
|
|
100
107
|
const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
|
|
@@ -105,7 +112,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
105
112
|
const minutes = _duration % 60;
|
|
106
113
|
durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
|
|
107
114
|
} else if (durationType === "days") {
|
|
108
|
-
durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration)
|
|
115
|
+
durationText = `${_duration}${import_utils.locales.getText("pisell2.product.card.day")(_duration)}`;
|
|
109
116
|
} else {
|
|
110
117
|
durationText = `${_duration}`;
|
|
111
118
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
|
|
3
|
+
import { PopoverProps, TimePickerProps } from "antd";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
interface SelectTimeProps {
|
|
6
|
+
value: any;
|
|
7
|
+
onChange: (e: string) => void;
|
|
8
|
+
popoverProps: PopoverProps;
|
|
9
|
+
timePickerProps: TimePickerProps;
|
|
10
|
+
timeProps: VirtualKeyboardTimeProps;
|
|
11
|
+
slice: number;
|
|
12
|
+
}
|
|
13
|
+
declare const SelectTime: (props: SelectTimeProps) => JSX.Element;
|
|
14
|
+
export default SelectTime;
|
|
@@ -36,7 +36,7 @@ var import_iconfont = __toESM(require("../../../iconfont"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_SelectField = __toESM(require("../SelectField"));
|
|
39
|
-
var import_index =
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
40
|
var import_hooks = require("../../../../hooks");
|
|
41
41
|
var import_model = require("../../model");
|
|
42
42
|
var AddFieldModal = () => {
|
|
@@ -85,7 +85,7 @@ var AddFieldModal = () => {
|
|
|
85
85
|
},
|
|
86
86
|
onFinish: addField
|
|
87
87
|
},
|
|
88
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-modal" }, /* @__PURE__ */ import_react.default.createElement(
|
|
89
89
|
import_antd.Form.Item,
|
|
90
90
|
{
|
|
91
91
|
label: "Field Name",
|
|
@@ -101,13 +101,13 @@ var AddFieldModal = () => {
|
|
|
101
101
|
import_antd.Input,
|
|
102
102
|
{
|
|
103
103
|
placeholder: "Field name (optional)",
|
|
104
|
-
className:
|
|
104
|
+
className: "pisell-lowcode-header-search"
|
|
105
105
|
}
|
|
106
106
|
)
|
|
107
|
-
), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
107
|
+
), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-modal-footer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-describe" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pi-Plus", className: "pisell-lowcode-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode-label" }, "Add description")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-btns" }, /* @__PURE__ */ import_react.default.createElement(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
className:
|
|
110
|
+
className: "pisell-lowcode-cancel",
|
|
111
111
|
onClick: () => {
|
|
112
112
|
onCloseModal();
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@ var AddFieldModal = () => {
|
|
|
116
116
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
|
-
className:
|
|
119
|
+
className: "pisell-lowcode-submit",
|
|
120
120
|
onClick: () => {
|
|
121
121
|
form.submit();
|
|
122
122
|
}
|
|
@@ -136,7 +136,7 @@ var AddFieldModal = () => {
|
|
|
136
136
|
placement: "bottomRight",
|
|
137
137
|
overlayInnerStyle: { padding: 0 },
|
|
138
138
|
trigger: "click",
|
|
139
|
-
overlayClassName:
|
|
139
|
+
overlayClassName: "pisell-lowcode-popover-wrap",
|
|
140
140
|
onOpenChange: (e) => {
|
|
141
141
|
if (!e) {
|
|
142
142
|
onCloseModal();
|
|
@@ -146,11 +146,11 @@ var AddFieldModal = () => {
|
|
|
146
146
|
},
|
|
147
147
|
open: openModal
|
|
148
148
|
},
|
|
149
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
149
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-btn" }, /* @__PURE__ */ import_react.default.createElement(
|
|
150
150
|
import_iconfont.default,
|
|
151
151
|
{
|
|
152
152
|
type: "pi-a-Property3Add",
|
|
153
|
-
className:
|
|
153
|
+
className: "pisell-lowcode-add-field-icon"
|
|
154
154
|
}
|
|
155
155
|
))
|
|
156
156
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.add-field-btn {
|
|
1
|
+
.pisell-lowcode-add-field-btn {
|
|
2
2
|
position: absolute;
|
|
3
3
|
right: 0;
|
|
4
4
|
top: 0;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
|
|
14
|
-
.add-field-icon {}
|
|
14
|
+
.pisell-lowcode-add-field-icon {}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.popover-wrap {
|
|
17
|
+
.pisell-lowcode-popover-wrap {
|
|
18
18
|
:global {
|
|
19
19
|
.pisell-lowcode-popover-arrow {
|
|
20
20
|
display: none;
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.add-field-modal {
|
|
25
|
+
.pisell-lowcode-add-field-modal {
|
|
26
26
|
width: 360px;
|
|
27
27
|
padding: 16px 16px 0 16px;
|
|
28
28
|
|
|
29
|
-
.modal-footer {
|
|
29
|
+
.pisell-lowcode-modal-footer {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: space-between;
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
padding: 0 16px;
|
|
36
36
|
border-top: 1px solid #F1F1F1;
|
|
37
37
|
|
|
38
|
-
.add-describe {
|
|
38
|
+
.pisell-lowcode-add-describe {
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
|
|
44
|
-
.icon {
|
|
44
|
+
.pisell-lowcode-icon {
|
|
45
45
|
width: 24px;
|
|
46
46
|
height: 24px;
|
|
47
47
|
display: flex;
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
color: #1B1B1B;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.label {
|
|
54
|
+
.pisell-lowcode-label {
|
|
55
55
|
margin-left: 2px;
|
|
56
56
|
font-size: 14px;
|
|
57
57
|
color: #777777;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.btns {
|
|
61
|
+
.pisell-lowcode-btns {
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: center;
|
|
65
65
|
gap: 16px;
|
|
66
66
|
|
|
67
|
-
.cancel {
|
|
67
|
+
.pisell-lowcode-cancel {
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
font-weight: 400;
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
color: #1B1B1B;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.submit {
|
|
74
|
+
.pisell-lowcode-submit {
|
|
75
75
|
cursor: pointer;
|
|
76
76
|
font-weight: 400;
|
|
77
77
|
font-size: 14px;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("filters" | "
|
|
158
|
+
}) => ("filters" | "filter_setting" | "group_by" | "column_setting" | "order_by" | "view_mode" | "gallery_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Presets.less';
|
|
2
3
|
export declare type PresetsItem = {
|
|
3
4
|
label: string;
|
|
4
5
|
value: number | string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
onClick?: (item: PresetsItem, _next: () => void) => void;
|
|
8
|
+
render?: (item: PresetsItem) => React.ReactNode;
|
|
5
9
|
};
|
|
6
10
|
export interface PresetsProps {
|
|
7
11
|
presets?: PresetsItem[];
|
|
@@ -36,11 +36,28 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_Presets = require("./Presets.less");
|
|
37
37
|
var Presets = (props) => {
|
|
38
38
|
const { presets, onChange } = props;
|
|
39
|
+
const handleItemClick = (item) => {
|
|
40
|
+
if (item.onClick) {
|
|
41
|
+
const _next = () => onChange(`${item.value}`);
|
|
42
|
+
item.onClick(item, _next);
|
|
43
|
+
} else {
|
|
44
|
+
onChange(`${item.value}`);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
39
47
|
return (0, import_react.useMemo)(() => {
|
|
40
48
|
if (!(presets == null ? void 0 : presets.length)) {
|
|
41
49
|
return null;
|
|
42
50
|
}
|
|
43
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-keyboard-preset" }, presets.map((item
|
|
44
|
-
|
|
51
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-keyboard-preset" }, presets.map((item, index) => {
|
|
52
|
+
var _a;
|
|
53
|
+
const itemProps = {
|
|
54
|
+
key: index,
|
|
55
|
+
className: "pisell-virtual-keyboard-preset-item",
|
|
56
|
+
style: item.style,
|
|
57
|
+
onClick: () => handleItemClick(item)
|
|
58
|
+
};
|
|
59
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { ...itemProps }, ((_a = item.render) == null ? void 0 : _a.call(item, item)) || item.label);
|
|
60
|
+
}));
|
|
61
|
+
}, [presets, onChange]);
|
|
45
62
|
};
|
|
46
63
|
var Presets_default = Presets;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
.pisell-virtual-keyboard-preset {
|
|
2
|
-
display:
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: repeat(4, 1fr);
|
|
3
4
|
gap: 7px;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
5
|
margin-bottom: 8px;
|
|
6
|
+
|
|
6
7
|
.pisell-virtual-keyboard-preset-item {
|
|
7
8
|
display: flex;
|
|
8
|
-
flex: 1;
|
|
9
9
|
padding: 12px 20px;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: center;
|
|
12
|
-
height:
|
|
12
|
+
height: 40px;
|
|
13
13
|
border-radius: 8px;
|
|
14
|
-
border: 1px solid var(--Gray-300, #
|
|
14
|
+
border: 1px solid var(--Gray-300, #E9D7FE);
|
|
15
15
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
16
16
|
background: var(--Primary-25, #FCFAFF);
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
color: #6941C6;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
position: relative;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PresetsProps } from './Presets';
|
|
3
|
+
import { KeyboardProps } from '../Keyboard';
|
|
3
4
|
import { RightItemsStyleProps } from '../Amount';
|
|
4
5
|
import './index.less';
|
|
5
6
|
export interface BaseNumberKeyboardProps {
|
|
@@ -16,6 +17,9 @@ export interface BaseNumberKeyboardProps {
|
|
|
16
17
|
presets?: PresetsProps['presets'];
|
|
17
18
|
defaultSelect?: boolean;
|
|
18
19
|
rightItemsStyle?: RightItemsStyleProps;
|
|
20
|
+
customDisplay?: React.ReactNode | ((props: any) => React.ReactNode);
|
|
21
|
+
keyboardProps?: KeyboardProps;
|
|
22
|
+
style?: React.CSSProperties;
|
|
19
23
|
}
|
|
20
24
|
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
21
25
|
export default BaseNumberKeyboard;
|
|
@@ -128,7 +128,9 @@ var BaseNumberKeyboard = (props) => {
|
|
|
128
128
|
onEnter,
|
|
129
129
|
presets,
|
|
130
130
|
defaultSelect,
|
|
131
|
-
rightItemsStyle
|
|
131
|
+
rightItemsStyle,
|
|
132
|
+
customDisplay,
|
|
133
|
+
style
|
|
132
134
|
} = props;
|
|
133
135
|
const [value, setValue] = (0, import_ahooks.useControllableValue)(props, {
|
|
134
136
|
defaultValue
|
|
@@ -200,6 +202,8 @@ var BaseNumberKeyboard = (props) => {
|
|
|
200
202
|
}
|
|
201
203
|
};
|
|
202
204
|
const handleChangeValue = (val) => {
|
|
205
|
+
var _a;
|
|
206
|
+
val = typeof val === "string" ? val : ((_a = val == null ? void 0 : val.target) == null ? void 0 : _a.value) || "";
|
|
203
207
|
const detail = checkValue(val);
|
|
204
208
|
if (detail) return;
|
|
205
209
|
setValue(val);
|
|
@@ -228,38 +232,52 @@ var BaseNumberKeyboard = (props) => {
|
|
|
228
232
|
const handleKeyboardChange = (0, import_ahooks.useMemoizedFn)((val) => {
|
|
229
233
|
return (actions[val] || actions.default)(val);
|
|
230
234
|
});
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
import_VirtualInput.default,
|
|
240
|
-
{
|
|
241
|
-
autoFocus: true,
|
|
242
|
-
placeholder,
|
|
243
|
-
value: props2.value
|
|
244
|
-
}
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
return (format == null ? void 0 : format(props2.value)) || props2.value;
|
|
248
|
-
},
|
|
249
|
-
showDelete: false,
|
|
250
|
-
onValueSelect: setSelect,
|
|
251
|
-
defaultSelect,
|
|
252
|
-
style: {
|
|
253
|
-
backgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.buttonBackgroundColor) || "#fff",
|
|
254
|
-
color: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || "#000000"
|
|
235
|
+
const renderDisplayField = () => {
|
|
236
|
+
if (customDisplay) {
|
|
237
|
+
if (typeof customDisplay === "function") {
|
|
238
|
+
return customDisplay({
|
|
239
|
+
value,
|
|
240
|
+
onChange: handleChangeValue,
|
|
241
|
+
onValueSelect: setSelect
|
|
242
|
+
});
|
|
255
243
|
}
|
|
244
|
+
return customDisplay;
|
|
256
245
|
}
|
|
257
|
-
|
|
246
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
247
|
+
import_VirtualKeyInput.default,
|
|
248
|
+
{
|
|
249
|
+
value,
|
|
250
|
+
onChange: (e) => handleChangeValue(e.target.value),
|
|
251
|
+
renderInput: (props2) => {
|
|
252
|
+
if ((0, import_utils.isUndefined)(props2.value) || props2.value === "") {
|
|
253
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
254
|
+
import_VirtualInput.default,
|
|
255
|
+
{
|
|
256
|
+
autoFocus: true,
|
|
257
|
+
placeholder,
|
|
258
|
+
value: props2.value
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
return (format == null ? void 0 : format(props2.value)) || props2.value;
|
|
263
|
+
},
|
|
264
|
+
showDelete: false,
|
|
265
|
+
onValueSelect: setSelect,
|
|
266
|
+
defaultSelect,
|
|
267
|
+
style: {
|
|
268
|
+
backgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.buttonBackgroundColor) || "#fff",
|
|
269
|
+
color: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || "#000000"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
};
|
|
274
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-keyboard-base", style }, renderDisplayField(), /* @__PURE__ */ import_react.default.createElement(import_Presets.default, { presets, onChange: handleChangeValue }), /* @__PURE__ */ import_react.default.createElement(
|
|
258
275
|
import_Keyboard.default,
|
|
259
276
|
{
|
|
260
277
|
items: itemsWithStyle,
|
|
261
278
|
rightItems,
|
|
262
|
-
onChange: handleKeyboardChange
|
|
279
|
+
onChange: handleKeyboardChange,
|
|
280
|
+
...props.keyboardProps || {}
|
|
263
281
|
}
|
|
264
282
|
));
|
|
265
283
|
};
|
|
@@ -50,6 +50,7 @@ var Number = (props) => {
|
|
|
50
50
|
placeholder,
|
|
51
51
|
onEnter,
|
|
52
52
|
selectType = "light",
|
|
53
|
+
defaultSelect,
|
|
53
54
|
...others
|
|
54
55
|
} = props;
|
|
55
56
|
const config = (0, import_usePisellConfig.default)();
|
|
@@ -98,11 +99,13 @@ var Number = (props) => {
|
|
|
98
99
|
max,
|
|
99
100
|
min,
|
|
100
101
|
value,
|
|
102
|
+
defaultValue,
|
|
101
103
|
onChange: setValue,
|
|
102
104
|
placeholder,
|
|
103
105
|
doneText,
|
|
104
106
|
resetText,
|
|
105
107
|
onEnter,
|
|
108
|
+
defaultSelect,
|
|
106
109
|
rightItemsStyle: {
|
|
107
110
|
buttonBackgroundColor: configColor.buttonBackgroundColor,
|
|
108
111
|
textColor: configColor.textColor,
|
|
@@ -8,6 +8,7 @@ export interface NumberProps {
|
|
|
8
8
|
value?: string | number;
|
|
9
9
|
onChange?: (val: string | number) => void;
|
|
10
10
|
onEnter?: (val: string | number) => void;
|
|
11
|
+
defaultSelect?: boolean;
|
|
11
12
|
selectType?: 'light' | 'dark';
|
|
12
13
|
backgroundColor?: string;
|
|
13
14
|
containerBackgroundColor?: string;
|
|
@@ -9,6 +9,17 @@ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
onChange?: (value?: any) => void;
|
|
11
11
|
value?: string;
|
|
12
|
+
selectType?: 'light' | 'dark';
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
containerBackgroundColor?: string;
|
|
15
|
+
buttonBackgroundColor?: string;
|
|
16
|
+
textColor?: string;
|
|
17
|
+
keyboardBackgroundColor?: string;
|
|
18
|
+
keyboardButtonBackgroundColor?: string;
|
|
19
|
+
keyboardButtonTextColor?: string;
|
|
20
|
+
keyboardButtonHoverColor?: string;
|
|
21
|
+
primaryButtonBackgroundColor?: string;
|
|
22
|
+
primaryButtonTextColor?: string;
|
|
12
23
|
}
|
|
13
24
|
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
14
25
|
export default VirtualKeyboard;
|