@pisell/materials 6.12.86 → 6.12.87
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/meta.js +3 -3
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/PisellCards/index.d.ts +0 -1
- package/es/components/PisellFields/index.d.ts +0 -1
- package/es/components/PisellLayouts/index.d.ts +0 -1
- package/es/components/PisellMetrics/index.d.ts +0 -1
- package/es/components/appVersionControl/types.d.ts +0 -1
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/drag-sort-tree/types.d.ts +0 -1
- package/es/components/filter/components/FilterButton/types.d.ts +0 -1
- package/es/components/input/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
- package/es/components/pisellMenu/types.d.ts +0 -1
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +4 -3
- package/es/components/pisellQuickFilter/type.d.ts +0 -1
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/section-footers/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
- package/es/components/walletCard/index.js +8 -6
- package/lib/components/PisellCards/index.d.ts +0 -1
- package/lib/components/PisellFields/index.d.ts +0 -1
- package/lib/components/PisellLayouts/index.d.ts +0 -1
- package/lib/components/PisellMetrics/index.d.ts +0 -1
- package/lib/components/appVersionControl/types.d.ts +0 -1
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/types.d.ts +0 -1
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
- package/lib/components/input/index.d.ts +0 -1
- package/lib/components/pisell-config-provider/context.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
- package/lib/components/pisellMenu/types.d.ts +0 -1
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +6 -3
- package/lib/components/pisellQuickFilter/type.d.ts +0 -1
- package/lib/components/radio/index.d.ts +0 -1
- package/lib/components/section-footers/index.d.ts +0 -1
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
- package/lib/components/walletCard/index.js +8 -6
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellBasicCardProps } from "./types.js";
|
|
3
2
|
import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
|
|
4
3
|
import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
|
|
3
2
|
import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
|
|
4
3
|
import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
|
|
@@ -5,7 +5,8 @@ import { PISELL_MOBILE_DATE_RANGE_PICKER_FILTER_POPUP_CLASS } from "./types.js";
|
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
|
-
import
|
|
8
|
+
import CalendarPicker from "antd-mobile/es/components/calendar-picker";
|
|
9
|
+
import AntMobileConfigProvider from "antd-mobile/es/components/config-provider";
|
|
9
10
|
import Calendar from "@pisell/icon/es/Calendar";
|
|
10
11
|
import antdMobileZhCN from "antd-mobile/es/locales/zh-CN";
|
|
11
12
|
import antdMobileZhTW from "antd-mobile/es/locales/zh-TW";
|
|
@@ -13,7 +14,7 @@ import antdMobileZhHK from "antd-mobile/es/locales/zh-HK";
|
|
|
13
14
|
import antdMobileEnUS from "antd-mobile/es/locales/en-US";
|
|
14
15
|
import antdMobileJaJP from "antd-mobile/es/locales/ja-JP";
|
|
15
16
|
import antdMobilePtBR from "antd-mobile/es/locales/pt-BR";
|
|
16
|
-
import "antd-mobile/es/global/
|
|
17
|
+
import "antd-mobile/es/global/theme-default.css";
|
|
17
18
|
import "./PisellMobileDateRangePicker.less";
|
|
18
19
|
//#region src/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.tsx
|
|
19
20
|
/**
|
|
@@ -126,7 +127,7 @@ const PisellMobileDateRangePicker = ({ value, onChange, format = "DD/MM/YYYY", p
|
|
|
126
127
|
}, /* @__PURE__ */ React.createElement("span", { className: "pisell-mobile-date-range-picker__trigger-text" }, formatRangeLabel(dayjsRange, format, resolvedPlaceholder)), isFilterVariant ? /* @__PURE__ */ React.createElement(Calendar, {
|
|
127
128
|
className: "pisell-mobile-date-range-picker__trigger-icon",
|
|
128
129
|
"aria-hidden": true
|
|
129
|
-
}) : null), /* @__PURE__ */ React.createElement(
|
|
130
|
+
}) : null), /* @__PURE__ */ React.createElement(AntMobileConfigProvider, { locale: antMobileLocale }, /* @__PURE__ */ React.createElement(CalendarPicker, {
|
|
130
131
|
visible,
|
|
131
132
|
selectionMode: "range",
|
|
132
133
|
value: innerValue !== null && innerValue !== void 0 ? innerValue : void 0,
|
|
@@ -231,7 +231,7 @@ const CodeModal = ({ isOpen, onClose, codeType, cardNo, platform }) => {
|
|
|
231
231
|
})));
|
|
232
232
|
};
|
|
233
233
|
const WalletCard = (props) => {
|
|
234
|
-
var _props$walletGuideCon2;
|
|
234
|
+
var _constants$config2, _props$walletGuideCon2;
|
|
235
235
|
const mergedProps = _objectSpread2(_objectSpread2({}, DEFAULT_PROPS), props);
|
|
236
236
|
const { symbol, mode, iconImg, shopName, cardNo, cardStyle, codeType, platform, codeDirection, walletName, items = [], onCodeClick, onClick, className, style, isGuide, showHolderName, holder, onSetHolder } = mergedProps;
|
|
237
237
|
const showIcon = toBooleanValue(mergedProps.showIcon);
|
|
@@ -241,18 +241,18 @@ const WalletCard = (props) => {
|
|
|
241
241
|
const showCode = toBooleanValue(mergedProps.showCode);
|
|
242
242
|
const isLogin = toBooleanValue(mergedProps.isLogin);
|
|
243
243
|
const showViewPin = toBooleanValue(mergedProps === null || mergedProps === void 0 ? void 0 : mergedProps.showViewPin);
|
|
244
|
-
const { utils } = useEngineContext().appHelper || {};
|
|
244
|
+
const { utils, constants } = useEngineContext().appHelper || {};
|
|
245
245
|
const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(cardNo, onCodeClick, codeType);
|
|
246
246
|
console.log("showViewPin", props);
|
|
247
247
|
const backgroundStyle = useMemo(() => {
|
|
248
248
|
if (props.customBackgroundImage) return { backgroundImage: `url(${image.ali(props.customBackgroundImage, 175)})` };
|
|
249
249
|
else {
|
|
250
|
-
var _props$walletGuideCon
|
|
250
|
+
var _props$walletGuideCon;
|
|
251
251
|
if ((props === null || props === void 0 || (_props$walletGuideCon = props.walletGuideConfig) === null || _props$walletGuideCon === void 0 ? void 0 : _props$walletGuideCon.backgroundColor) && isGuide || (props === null || props === void 0 ? void 0 : props.backgroundColor) && !isLogin) return { backgroundImage: "none" };
|
|
252
|
-
let staticUrl =
|
|
252
|
+
let staticUrl = constants === null || constants === void 0 ? void 0 : constants.staticURL;
|
|
253
253
|
if (!staticUrl) {
|
|
254
|
-
var
|
|
255
|
-
staticUrl = (
|
|
254
|
+
var _constants$config;
|
|
255
|
+
staticUrl = (constants === null || constants === void 0 || (_constants$config = constants.config) === null || _constants$config === void 0 ? void 0 : _constants$config.awsStatic) || "https://static.pisellcdn.com";
|
|
256
256
|
}
|
|
257
257
|
const backgroundImage = `${staticUrl}/${mode === "dark" ? "dark_wallet.png" : "light_wallet.png"}`;
|
|
258
258
|
return { backgroundImage: `url(${image.ali(backgroundImage, 175)})` };
|
|
@@ -260,6 +260,8 @@ const WalletCard = (props) => {
|
|
|
260
260
|
}, [
|
|
261
261
|
props.customBackgroundImage,
|
|
262
262
|
mode,
|
|
263
|
+
constants === null || constants === void 0 ? void 0 : constants.staticURL,
|
|
264
|
+
constants === null || constants === void 0 || (_constants$config2 = constants.config) === null || _constants$config2 === void 0 ? void 0 : _constants$config2.awsStatic,
|
|
263
265
|
props === null || props === void 0 || (_props$walletGuideCon2 = props.walletGuideConfig) === null || _props$walletGuideCon2 === void 0 ? void 0 : _props$walletGuideCon2.backgroundColor,
|
|
264
266
|
props === null || props === void 0 ? void 0 : props.backgroundColor,
|
|
265
267
|
isLogin,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellBasicCardProps } from "./types.js";
|
|
3
2
|
import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
|
|
4
3
|
import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
|
|
3
2
|
import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
|
|
4
3
|
import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
|
|
@@ -9,7 +9,10 @@ let classnames = require("classnames");
|
|
|
9
9
|
classnames = require_runtime.__toESM(classnames);
|
|
10
10
|
let dayjs = require("dayjs");
|
|
11
11
|
dayjs = require_runtime.__toESM(dayjs);
|
|
12
|
-
let
|
|
12
|
+
let antd_mobile_es_components_calendar_picker = require("antd-mobile/es/components/calendar-picker");
|
|
13
|
+
antd_mobile_es_components_calendar_picker = require_runtime.__toESM(antd_mobile_es_components_calendar_picker);
|
|
14
|
+
let antd_mobile_es_components_config_provider = require("antd-mobile/es/components/config-provider");
|
|
15
|
+
antd_mobile_es_components_config_provider = require_runtime.__toESM(antd_mobile_es_components_config_provider);
|
|
13
16
|
let _pisell_icon_es_Calendar = require("@pisell/icon/es/Calendar");
|
|
14
17
|
_pisell_icon_es_Calendar = require_runtime.__toESM(_pisell_icon_es_Calendar);
|
|
15
18
|
let antd_mobile_es_locales_zh_CN = require("antd-mobile/es/locales/zh-CN");
|
|
@@ -24,7 +27,7 @@ let antd_mobile_es_locales_ja_JP = require("antd-mobile/es/locales/ja-JP");
|
|
|
24
27
|
antd_mobile_es_locales_ja_JP = require_runtime.__toESM(antd_mobile_es_locales_ja_JP);
|
|
25
28
|
let antd_mobile_es_locales_pt_BR = require("antd-mobile/es/locales/pt-BR");
|
|
26
29
|
antd_mobile_es_locales_pt_BR = require_runtime.__toESM(antd_mobile_es_locales_pt_BR);
|
|
27
|
-
require("antd-mobile/es/global/
|
|
30
|
+
require("antd-mobile/es/global/theme-default.css");
|
|
28
31
|
require("./PisellMobileDateRangePicker.less");
|
|
29
32
|
//#region src/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.tsx
|
|
30
33
|
/**
|
|
@@ -137,7 +140,7 @@ const PisellMobileDateRangePicker = ({ value, onChange, format = "DD/MM/YYYY", p
|
|
|
137
140
|
}, /* @__PURE__ */ react.default.createElement("span", { className: "pisell-mobile-date-range-picker__trigger-text" }, formatRangeLabel(dayjsRange, format, resolvedPlaceholder)), isFilterVariant ? /* @__PURE__ */ react.default.createElement(_pisell_icon_es_Calendar.default, {
|
|
138
141
|
className: "pisell-mobile-date-range-picker__trigger-icon",
|
|
139
142
|
"aria-hidden": true
|
|
140
|
-
}) : null), /* @__PURE__ */ react.default.createElement(
|
|
143
|
+
}) : null), /* @__PURE__ */ react.default.createElement(antd_mobile_es_components_config_provider.default, { locale: antMobileLocale }, /* @__PURE__ */ react.default.createElement(antd_mobile_es_components_calendar_picker.default, {
|
|
141
144
|
visible,
|
|
142
145
|
selectionMode: "range",
|
|
143
146
|
value: innerValue !== null && innerValue !== void 0 ? innerValue : void 0,
|
|
@@ -236,7 +236,7 @@ const CodeModal = ({ isOpen, onClose, codeType, cardNo, platform }) => {
|
|
|
236
236
|
})));
|
|
237
237
|
};
|
|
238
238
|
const WalletCard = (props) => {
|
|
239
|
-
var _props$walletGuideCon2;
|
|
239
|
+
var _constants$config2, _props$walletGuideCon2;
|
|
240
240
|
const mergedProps = require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, DEFAULT_PROPS), props);
|
|
241
241
|
const { symbol, mode, iconImg, shopName, cardNo, cardStyle, codeType, platform, codeDirection, walletName, items = [], onCodeClick, onClick, className, style, isGuide, showHolderName, holder, onSetHolder } = mergedProps;
|
|
242
242
|
const showIcon = toBooleanValue(mergedProps.showIcon);
|
|
@@ -246,18 +246,18 @@ const WalletCard = (props) => {
|
|
|
246
246
|
const showCode = toBooleanValue(mergedProps.showCode);
|
|
247
247
|
const isLogin = toBooleanValue(mergedProps.isLogin);
|
|
248
248
|
const showViewPin = toBooleanValue(mergedProps === null || mergedProps === void 0 ? void 0 : mergedProps.showViewPin);
|
|
249
|
-
const { utils } = require_useEngineContext.default().appHelper || {};
|
|
249
|
+
const { utils, constants } = require_useEngineContext.default().appHelper || {};
|
|
250
250
|
const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(cardNo, onCodeClick, codeType);
|
|
251
251
|
console.log("showViewPin", props);
|
|
252
252
|
const backgroundStyle = (0, react.useMemo)(() => {
|
|
253
253
|
if (props.customBackgroundImage) return { backgroundImage: `url(${_pisell_utils.image.ali(props.customBackgroundImage, 175)})` };
|
|
254
254
|
else {
|
|
255
|
-
var _props$walletGuideCon
|
|
255
|
+
var _props$walletGuideCon;
|
|
256
256
|
if ((props === null || props === void 0 || (_props$walletGuideCon = props.walletGuideConfig) === null || _props$walletGuideCon === void 0 ? void 0 : _props$walletGuideCon.backgroundColor) && isGuide || (props === null || props === void 0 ? void 0 : props.backgroundColor) && !isLogin) return { backgroundImage: "none" };
|
|
257
|
-
let staticUrl =
|
|
257
|
+
let staticUrl = constants === null || constants === void 0 ? void 0 : constants.staticURL;
|
|
258
258
|
if (!staticUrl) {
|
|
259
|
-
var
|
|
260
|
-
staticUrl = (
|
|
259
|
+
var _constants$config;
|
|
260
|
+
staticUrl = (constants === null || constants === void 0 || (_constants$config = constants.config) === null || _constants$config === void 0 ? void 0 : _constants$config.awsStatic) || "https://static.pisellcdn.com";
|
|
261
261
|
}
|
|
262
262
|
const backgroundImage = `${staticUrl}/${mode === "dark" ? "dark_wallet.png" : "light_wallet.png"}`;
|
|
263
263
|
return { backgroundImage: `url(${_pisell_utils.image.ali(backgroundImage, 175)})` };
|
|
@@ -265,6 +265,8 @@ const WalletCard = (props) => {
|
|
|
265
265
|
}, [
|
|
266
266
|
props.customBackgroundImage,
|
|
267
267
|
mode,
|
|
268
|
+
constants === null || constants === void 0 ? void 0 : constants.staticURL,
|
|
269
|
+
constants === null || constants === void 0 || (_constants$config2 = constants.config) === null || _constants$config2 === void 0 ? void 0 : _constants$config2.awsStatic,
|
|
268
270
|
props === null || props === void 0 || (_props$walletGuideCon2 = props.walletGuideConfig) === null || _props$walletGuideCon2 === void 0 ? void 0 : _props$walletGuideCon2.backgroundColor,
|
|
269
271
|
props === null || props === void 0 ? void 0 : props.backgroundColor,
|
|
270
272
|
isLogin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.87",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"antd-mobile": "^5.38.1",
|
|
97
97
|
"vod-js-sdk-v6": "^1.4.11",
|
|
98
98
|
"@pisell/date-picker": "3.0.12",
|
|
99
|
-
"@pisell/
|
|
100
|
-
"@pisell/
|
|
99
|
+
"@pisell/icon": "0.0.11",
|
|
100
|
+
"@pisell/utils": "3.0.7"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react": "^18.0.0",
|