@pisell/materials 6.3.4 → 6.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4 -4
- package/build/lowcode/preview.js +150 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +28 -24
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +34 -30
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +10 -10
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/icon/index.js +5 -5
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.d.ts +1 -0
- package/es/components/list/index.js +6 -6
- 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 +42 -3
- package/es/components/pisellCardList/index.less +9 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +4 -0
- package/es/components/pisellCheckboxGroup/index.js +23 -4
- package/es/components/pisellCheckboxGroup/index.less +28 -1
- 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.js +3 -0
- package/es/components/pisellWalletPassCard/index.d.ts +53 -1
- package/es/components/pisellWalletPassCard/index.js +333 -75
- package/es/components/pisellWalletPassCard/index.less +48 -11
- 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 +27 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +93 -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 +32 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -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 +45 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +292 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -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 +201 -0
- package/es/components/productCard/cartSkuCard/index.less +33 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/es/components/productCard/cartSkuCard/locales.js +30 -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 +5 -2
- package/es/components/productCard/index.less +6 -0
- package/es/components/productCard/locales.js +3 -0
- package/es/components/qrcode/index.js +1 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Header/Buttons/index.js +5 -5
- 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/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/utils.js +5 -5
- 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/walletCard/Guide/index.js +12 -1
- package/es/hooks/useResponsive.js +2 -2
- package/es/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +6 -0
- package/es/locales/en-US.js +9 -2
- package/es/locales/zh-CN.d.ts +6 -0
- package/es/locales/zh-CN.js +9 -2
- package/es/locales/zh-TW.d.ts +6 -0
- package/es/locales/zh-TW.js +9 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +10 -10
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.js +1 -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 +42 -3
- package/lib/components/pisellCardList/index.less +9 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +4 -0
- package/lib/components/pisellCheckboxGroup/index.js +22 -1
- package/lib/components/pisellCheckboxGroup/index.less +28 -1
- 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.js +3 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
- package/lib/components/pisellWalletPassCard/index.js +253 -59
- package/lib/components/pisellWalletPassCard/index.less +48 -11
- 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 +27 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +82 -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 +52 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -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 +45 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +339 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -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 +239 -0
- package/lib/components/productCard/cartSkuCard/index.less +33 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/lib/components/productCard/cartSkuCard/locales.js +61 -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 +6 -2
- package/lib/components/productCard/index.less +6 -0
- package/lib/components/productCard/locales.js +12 -3
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- 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/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- 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/walletCard/Guide/index.js +11 -1
- package/lib/hooks/useResponsive.js +3 -6
- package/lib/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +6 -0
- package/lib/locales/en-US.js +9 -2
- package/lib/locales/zh-CN.d.ts +6 -0
- package/lib/locales/zh-CN.js +9 -2
- package/lib/locales/zh-TW.d.ts +6 -0
- package/lib/locales/zh-TW.js +9 -2
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
- package/lowcode/pisell-card-list/meta.ts +50 -1
- package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
- package/lowcode/virtual-keyboard/meta.ts +131 -0
- package/package.json +7 -4
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
|
@@ -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)();
|
|
@@ -63,6 +64,7 @@ var ProductCard = (props) => {
|
|
|
63
64
|
isShowDelete = import_status.defaultValue.isShowDelete,
|
|
64
65
|
isShowPackageNote = import_status.defaultValue.isShowPackageNote,
|
|
65
66
|
isShowEditProduct = import_status.defaultValue.isShowEditProduct,
|
|
67
|
+
scenario,
|
|
66
68
|
onEditProduct,
|
|
67
69
|
onAction,
|
|
68
70
|
onDelete,
|
|
@@ -106,8 +108,9 @@ var ProductCard = (props) => {
|
|
|
106
108
|
import_cardPro.default,
|
|
107
109
|
{
|
|
108
110
|
className: (0, import_classnames.default)("pisell-lowcode-product-card", {
|
|
109
|
-
["pisell-lowcode-product-card-image"]: !showImage,
|
|
110
|
-
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct
|
|
111
|
+
["pisell-lowcode-product-card-image"]: !showImage && scenario !== "booking2",
|
|
112
|
+
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct && scenario !== "booking2",
|
|
113
|
+
["pisell-lowcode-product-card-image-booking2"]: scenario === "booking2"
|
|
111
114
|
}),
|
|
112
115
|
key: _id
|
|
113
116
|
},
|
|
@@ -197,4 +200,5 @@ var ProductCard = (props) => {
|
|
|
197
200
|
)
|
|
198
201
|
);
|
|
199
202
|
};
|
|
203
|
+
ProductCard.V2 = import_cartSkuCard.default;
|
|
200
204
|
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": "清除",
|
|
@@ -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;
|
|
@@ -40,17 +40,14 @@ function filterUtil_default({
|
|
|
40
40
|
key,
|
|
41
41
|
item
|
|
42
42
|
}) {
|
|
43
|
-
if (!value)
|
|
44
|
-
return true;
|
|
43
|
+
if (!value) return true;
|
|
45
44
|
const valueDayjsObj = (0, import_dayjs.default)(value);
|
|
46
45
|
if (!valueDayjsObj.isValid()) {
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
50
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
51
|
-
return false;
|
|
49
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
52
50
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
53
|
-
if (!dataDayjsObj.isValid())
|
|
54
|
-
return false;
|
|
51
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
55
52
|
return dataDayjsObj.isSame(valueDayjsObj, "day");
|
|
56
53
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const fieldMaps: {
|
|
2
3
|
text: {
|
|
3
4
|
field: {
|
|
@@ -197,12 +198,12 @@ export declare const fieldList: ({
|
|
|
197
198
|
field_icon: string;
|
|
198
199
|
field_name: string;
|
|
199
200
|
field_type: string;
|
|
200
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
201
202
|
} | {
|
|
202
203
|
field_icon: string;
|
|
203
204
|
field_name: string;
|
|
204
205
|
field_type: string;
|
|
205
|
-
default_value:
|
|
206
|
+
default_value: string;
|
|
206
207
|
} | {
|
|
207
208
|
field_icon: string;
|
|
208
209
|
field_name: string;
|
|
@@ -43,19 +43,15 @@ function filterUtil_default({
|
|
|
43
43
|
key,
|
|
44
44
|
item
|
|
45
45
|
}) {
|
|
46
|
-
if (!value)
|
|
47
|
-
|
|
48
|
-
if ((value == null ? void 0 : value.length) !== 2)
|
|
49
|
-
return true;
|
|
46
|
+
if (!value) return true;
|
|
47
|
+
if ((value == null ? void 0 : value.length) !== 2) return true;
|
|
50
48
|
const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
|
|
51
49
|
if (valueDayjsObj.some((item2) => !item2.isValid())) {
|
|
52
50
|
return true;
|
|
53
51
|
}
|
|
54
52
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
55
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
56
|
-
return false;
|
|
53
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
57
54
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
58
|
-
if (!dataDayjsObj.isValid())
|
|
59
|
-
return false;
|
|
55
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
60
56
|
return isDateInRange(dataDayjsObj, valueDayjsObj);
|
|
61
57
|
}
|
|
@@ -25,8 +25,7 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
25
25
|
var import_utils = require("@pisell/utils");
|
|
26
26
|
var getValueByKeys = (obj, keys) => {
|
|
27
27
|
var _a;
|
|
28
|
-
if (!keys)
|
|
29
|
-
return keys;
|
|
28
|
+
if (!keys) return keys;
|
|
30
29
|
if ((0, import_utils.isString)(keys)) {
|
|
31
30
|
keys = [keys];
|
|
32
31
|
}
|
|
@@ -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
|
-
}) => ("
|
|
158
|
+
}) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
|
|
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 {};
|
|
@@ -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;
|
|
@@ -37,6 +37,8 @@ var import_Keyboard = __toESM(require("./Keyboard"));
|
|
|
37
37
|
var import_VirtualKeyInput = __toESM(require("./VirtualKeyInput"));
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var import_utils = require("@pisell/utils");
|
|
41
|
+
var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
|
|
40
42
|
var items = [
|
|
41
43
|
{
|
|
42
44
|
value: 1,
|
|
@@ -105,6 +107,32 @@ var items = [
|
|
|
105
107
|
type: "primary"
|
|
106
108
|
}
|
|
107
109
|
];
|
|
110
|
+
var virtualKeyboardThemeConfig = {
|
|
111
|
+
dark: {
|
|
112
|
+
backgroundColor: "rgba(0, 0, 0, 0.70)",
|
|
113
|
+
containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
|
|
114
|
+
buttonBackgroundColor: "#ffffff",
|
|
115
|
+
textColor: "#000000",
|
|
116
|
+
keyboardBackgroundColor: "rgba(0, 0, 0, 0.40)",
|
|
117
|
+
keyboardButtonBackgroundColor: "#ffffff",
|
|
118
|
+
keyboardButtonTextColor: "#000000",
|
|
119
|
+
keyboardButtonHoverColor: "#f5f5f5",
|
|
120
|
+
primaryButtonBackgroundColor: "#4ca30d",
|
|
121
|
+
primaryButtonTextColor: "#ffffff"
|
|
122
|
+
},
|
|
123
|
+
light: {
|
|
124
|
+
backgroundColor: "#ffffff",
|
|
125
|
+
containerBackgroundColor: "#d0d5dd",
|
|
126
|
+
buttonBackgroundColor: "#ffffff",
|
|
127
|
+
textColor: "#000000",
|
|
128
|
+
keyboardBackgroundColor: "#f9f9f9",
|
|
129
|
+
keyboardButtonBackgroundColor: "#ffffff",
|
|
130
|
+
keyboardButtonTextColor: "#000000",
|
|
131
|
+
keyboardButtonHoverColor: "#f5f5f5",
|
|
132
|
+
primaryButtonBackgroundColor: "#4ca30d",
|
|
133
|
+
primaryButtonTextColor: "#ffffff"
|
|
134
|
+
}
|
|
135
|
+
};
|
|
108
136
|
var VirtualKeyboard = (props) => {
|
|
109
137
|
const {
|
|
110
138
|
virtualKeyInputProps,
|
|
@@ -113,15 +141,45 @@ var VirtualKeyboard = (props) => {
|
|
|
113
141
|
keyboardProps,
|
|
114
142
|
onChange,
|
|
115
143
|
value,
|
|
116
|
-
rightPanel
|
|
144
|
+
rightPanel,
|
|
145
|
+
selectType = "light",
|
|
146
|
+
...others
|
|
117
147
|
} = props;
|
|
148
|
+
const config = (0, import_usePisellConfig.default)();
|
|
118
149
|
(0, import_react.useEffect)(() => {
|
|
119
150
|
document.body.id = "body";
|
|
120
151
|
}, []);
|
|
152
|
+
const configColor = (0, import_react.useMemo)(() => {
|
|
153
|
+
const currentConfig = virtualKeyboardThemeConfig[selectType];
|
|
154
|
+
const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
|
|
155
|
+
if (value2 !== void 0 && key in currentConfig) {
|
|
156
|
+
acc[key] = value2;
|
|
157
|
+
}
|
|
158
|
+
return acc;
|
|
159
|
+
}, {});
|
|
160
|
+
return { ...currentConfig, ...validProps };
|
|
161
|
+
}, [selectType, props]);
|
|
162
|
+
(0, import_react.useEffect)(() => {
|
|
163
|
+
(0, import_utils.setTheme)({
|
|
164
|
+
"--virtual-keyboard-background-color": configColor.backgroundColor,
|
|
165
|
+
"--virtual-keyboard-container-background-color": configColor.containerBackgroundColor,
|
|
166
|
+
"--virtual-keyboard-button-background-color": configColor.buttonBackgroundColor,
|
|
167
|
+
"--virtual-keyboard-text-color": configColor.textColor,
|
|
168
|
+
"--virtual-keyboard-keyboard-background-color": configColor.keyboardBackgroundColor,
|
|
169
|
+
"--virtual-keyboard-keyboard-button-background-color": configColor.keyboardButtonBackgroundColor,
|
|
170
|
+
"--virtual-keyboard-keyboard-button-text-color": configColor.keyboardButtonTextColor,
|
|
171
|
+
"--virtual-keyboard-keyboard-button-hover-color": configColor.keyboardButtonHoverColor,
|
|
172
|
+
"--virtual-keyboard-primary-button-background-color": configColor.primaryButtonBackgroundColor,
|
|
173
|
+
"--virtual-keyboard-primary-button-text-color": configColor.primaryButtonTextColor
|
|
174
|
+
});
|
|
175
|
+
}, [configColor]);
|
|
121
176
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
122
177
|
"div",
|
|
123
178
|
{
|
|
124
|
-
className: (0, import_classnames.default)("virtual-keyboard-component", className
|
|
179
|
+
className: (0, import_classnames.default)("virtual-keyboard-component", className, {
|
|
180
|
+
"virtual-keyboard-component-dark": selectType === "dark",
|
|
181
|
+
"virtual-keyboard-component-light": selectType === "light"
|
|
182
|
+
}),
|
|
125
183
|
style
|
|
126
184
|
},
|
|
127
185
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("virtual-keyboard-component-left") }, /* @__PURE__ */ import_react.default.createElement(import_VirtualKeyInput.default, { ...virtualKeyInputProps }), /* @__PURE__ */ import_react.default.createElement(import_Keyboard.default, { items, ...keyboardProps })),
|
|
@@ -2,14 +2,46 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 20px;
|
|
5
|
+
background-color: var(--virtual-keyboard-background-color, #ffffff);
|
|
6
|
+
|
|
7
|
+
&.virtual-keyboard-component-dark {
|
|
8
|
+
background-color: var(--virtual-keyboard-background-color, rgba(0, 0, 0, 0.70));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.virtual-keyboard-component-light {
|
|
12
|
+
background-color: var(--virtual-keyboard-background-color, #ffffff);
|
|
13
|
+
}
|
|
5
14
|
}
|
|
6
15
|
|
|
7
16
|
.virtual-keyboard-component-left {
|
|
8
17
|
padding: 10px;
|
|
9
18
|
width: 380px;
|
|
10
19
|
border-radius: 10px;
|
|
11
|
-
background: var(--
|
|
20
|
+
background: var(--virtual-keyboard-container-background-color, #D0D5DD);
|
|
12
21
|
backdrop-filter: blur(50px);
|
|
22
|
+
|
|
23
|
+
.pisell-virtual-keyboard-input {
|
|
24
|
+
background-color: var(--virtual-keyboard-button-background-color, #ffffff);
|
|
25
|
+
color: var(--virtual-keyboard-text-color, #000000);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pisell-keyboard {
|
|
29
|
+
background-color: var(--virtual-keyboard-keyboard-background-color, #f9f9f9);
|
|
30
|
+
|
|
31
|
+
.pisell-keyboard-item {
|
|
32
|
+
background-color: var(--virtual-keyboard-keyboard-button-background-color, #ffffff);
|
|
33
|
+
color: var(--virtual-keyboard-keyboard-button-text-color, #000000);
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--virtual-keyboard-keyboard-button-hover-color, #f5f5f5);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.pisell-keyboard-item-primary {
|
|
40
|
+
background-color: var(--virtual-keyboard-primary-button-background-color, #4ca30d);
|
|
41
|
+
color: var(--virtual-keyboard-primary-button-text-color, #ffffff);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
13
45
|
}
|
|
14
46
|
|
|
15
47
|
.virtual-keyboard-component-right {
|
|
@@ -51,9 +51,19 @@ var Guide = (props) => {
|
|
|
51
51
|
return (setting == null ? void 0 : setting.walletGuideConfig) || {};
|
|
52
52
|
}, [setting == null ? void 0 : setting.walletGuideConfig]);
|
|
53
53
|
const handleClick = (e) => {
|
|
54
|
-
var _a2;
|
|
54
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
55
55
|
e.stopPropagation();
|
|
56
56
|
if (!((_a2 = _setting == null ? void 0 : _setting.skipLink) == null ? void 0 : _a2.page)) return;
|
|
57
|
+
if ((_d2 = (_c2 = (_b2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _b2.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d2.call(_c2)) {
|
|
58
|
+
(_g2 = (_f2 = (_e2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.postMessageToApp) == null ? void 0 : _g2.call(_f2, {
|
|
59
|
+
module: "global",
|
|
60
|
+
key: "openNative",
|
|
61
|
+
data: {
|
|
62
|
+
link: _setting == null ? void 0 : _setting.skipLink
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
57
67
|
utils == null ? void 0 : utils.jumpPageByLink(_setting == null ? void 0 : _setting.skipLink);
|
|
58
68
|
};
|
|
59
69
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -35,8 +35,7 @@ var responsiveConfig = {
|
|
|
35
35
|
function handleResize() {
|
|
36
36
|
const oldInfo = info;
|
|
37
37
|
calculate();
|
|
38
|
-
if (oldInfo === info)
|
|
39
|
-
return;
|
|
38
|
+
if (oldInfo === info) return;
|
|
40
39
|
for (const subscriber of subscribers) {
|
|
41
40
|
subscriber();
|
|
42
41
|
}
|
|
@@ -58,8 +57,7 @@ function calculate() {
|
|
|
58
57
|
}
|
|
59
58
|
function configResponsive(config) {
|
|
60
59
|
responsiveConfig = config;
|
|
61
|
-
if (info)
|
|
62
|
-
calculate();
|
|
60
|
+
if (info) calculate();
|
|
63
61
|
}
|
|
64
62
|
function useResponsive() {
|
|
65
63
|
if (import_utils.isBrowser && !listening) {
|
|
@@ -70,8 +68,7 @@ function useResponsive() {
|
|
|
70
68
|
}
|
|
71
69
|
const [state, setState] = (0, import_react.useState)(info);
|
|
72
70
|
(0, import_react.useEffect)(() => {
|
|
73
|
-
if (!import_utils.isBrowser)
|
|
74
|
-
return;
|
|
71
|
+
if (!import_utils.isBrowser) return;
|
|
75
72
|
if (!listening) {
|
|
76
73
|
window.addEventListener("resize", handleResize);
|
|
77
74
|
}
|