@pisell/materials 6.11.272 → 6.11.273

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.
Files changed (34) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/PisellFields/index.js +11 -0
  8. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
  9. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  10. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
  11. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +2 -0
  12. package/es/components/filter/components/FilterItem/index.js +11 -0
  13. package/es/components/pisellCurrency/index.js +13 -0
  14. package/es/components/pisellEmail/index.js +13 -0
  15. package/es/components/pisellLongText/index.js +13 -0
  16. package/es/components/pisellMultipleSelect/index.js +13 -0
  17. package/es/components/pisellNumber/index.js +13 -0
  18. package/es/components/pisellPercent/index.js +13 -0
  19. package/es/components/pisellPhone/index.js +14 -0
  20. package/es/components/pisellRating/index.js +13 -0
  21. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +2 -0
  22. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +11 -0
  23. package/es/components/pisellSingleLineText/index.js +13 -0
  24. package/es/components/pisellSingleSelect/index.js +13 -0
  25. package/es/components/pisellUrl/index.js +13 -0
  26. package/es/components/walletCard/Guest/index.js +2 -1
  27. package/es/components/walletCard/index.js +11 -4
  28. package/es/index.js +11 -0
  29. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
  30. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  31. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
  32. package/lib/components/walletCard/Guest/index.js +2 -1
  33. package/lib/components/walletCard/index.js +11 -4
  34. package/package.json +3 -3
@@ -1,14 +1,25 @@
1
1
  import PisellSingleLineText_default from "../pisellSingleLineText/PisellSingleLineText.js";
2
+ import "../pisellSingleLineText/index.js";
2
3
  import PisellLongText_default from "../pisellLongText/PisellLongText.js";
4
+ import "../pisellLongText/index.js";
3
5
  import MemoizedPisellNumber from "../pisellNumber/PisellNumber.js";
6
+ import "../pisellNumber/index.js";
4
7
  import MemoizedPisellCurrency from "../pisellCurrency/PisellCurrency.js";
8
+ import "../pisellCurrency/index.js";
5
9
  import MemoizedPisellPercent from "../pisellPercent/PisellPercent.js";
10
+ import "../pisellPercent/index.js";
6
11
  import PisellPhone_default from "../pisellPhone/PisellPhone.js";
12
+ import "../pisellPhone/index.js";
7
13
  import PisellEmail_default from "../pisellEmail/PisellEmail.js";
14
+ import "../pisellEmail/index.js";
8
15
  import PisellUrl_default from "../pisellUrl/PisellUrl.js";
16
+ import "../pisellUrl/index.js";
9
17
  import PisellRating_default from "../pisellRating/PisellRating.js";
18
+ import "../pisellRating/index.js";
10
19
  import PisellSingleSelect from "../pisellSingleSelect/PisellSingleSelect.js";
20
+ import "../pisellSingleSelect/index.js";
11
21
  import PisellMultipleSelect from "../pisellMultipleSelect/PisellMultipleSelect.js";
22
+ import "../pisellMultipleSelect/index.js";
12
23
  //#region src/components/PisellFields/index.tsx
13
24
  /**
14
25
  * PisellFields 命名空间
@@ -5,7 +5,7 @@ import React from "react";
5
5
  //#region src/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts
6
6
  declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps & WithModeProps & WithFormItemProps & {
7
7
  options?: any;
8
- optionSourceType?: "default" | "custom" | "api" | undefined;
8
+ optionSourceType?: "custom" | "default" | "api" | undefined;
9
9
  labelField: string;
10
10
  valueField: string;
11
11
  extraParams?: Record<string, any> | undefined;
@@ -6,7 +6,7 @@ import * as _$antd_es_select0 from "antd/es/select";
6
6
  //#region src/components/dataSourceComponents/fields/Select/index.d.ts
7
7
  declare const SelectWithDataSource: (props: _$antd.SelectProps<any, _$antd_es_select0.DefaultOptionType> & WithModeProps & WithFormItemProps & {
8
8
  options?: any;
9
- optionSourceType?: "default" | "custom" | "api" | undefined;
9
+ optionSourceType?: "custom" | "default" | "api" | undefined;
10
10
  labelField: string;
11
11
  valueField: string;
12
12
  extraParams?: Record<string, any> | undefined;
@@ -7,7 +7,7 @@ import * as _$react from "react";
7
7
  /** 包装 DataSource 层(提供数据源上下文) */
8
8
  declare const FormItemTabs: (props: TabsProps & WithModeProps & WithFormItemProps & {
9
9
  options?: any;
10
- optionSourceType?: "default" | "custom" | "api" | undefined;
10
+ optionSourceType?: "custom" | "default" | "api" | undefined;
11
11
  labelField: string;
12
12
  valueField: string;
13
13
  extraParams?: Record<string, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
3
3
  import PisellSingleSelect from "../../../pisellSingleSelect/PisellSingleSelect.js";
4
+ import "../../../pisellSingleSelect/index.js";
4
5
  import PisellMultipleSelect from "../../../pisellMultipleSelect/PisellMultipleSelect.js";
6
+ import "../../../pisellMultipleSelect/index.js";
5
7
  import React, { useEffect, useState } from "react";
6
8
  import { Spin } from "antd";
7
9
  //#region src/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.tsx
@@ -1,17 +1,28 @@
1
1
  import { getText } from "../../../../locales/index.js";
2
2
  import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
3
  import PisellSingleLineText_default from "../../../pisellSingleLineText/PisellSingleLineText.js";
4
+ import "../../../pisellSingleLineText/index.js";
4
5
  import PisellLongText_default from "../../../pisellLongText/PisellLongText.js";
6
+ import "../../../pisellLongText/index.js";
5
7
  import MemoizedPisellNumber from "../../../pisellNumber/PisellNumber.js";
8
+ import "../../../pisellNumber/index.js";
6
9
  import MemoizedPisellCurrency from "../../../pisellCurrency/PisellCurrency.js";
10
+ import "../../../pisellCurrency/index.js";
7
11
  import MemoizedPisellPercent from "../../../pisellPercent/PisellPercent.js";
12
+ import "../../../pisellPercent/index.js";
8
13
  import PisellPhone_default from "../../../pisellPhone/PisellPhone.js";
14
+ import "../../../pisellPhone/index.js";
9
15
  import PisellEmail_default from "../../../pisellEmail/PisellEmail.js";
16
+ import "../../../pisellEmail/index.js";
10
17
  import PisellUrl_default from "../../../pisellUrl/PisellUrl.js";
18
+ import "../../../pisellUrl/index.js";
11
19
  import PisellRating_default from "../../../pisellRating/PisellRating.js";
20
+ import "../../../pisellRating/index.js";
12
21
  import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
13
22
  import PisellSingleSelect from "../../../pisellSingleSelect/PisellSingleSelect.js";
23
+ import "../../../pisellSingleSelect/index.js";
14
24
  import PisellMultipleSelect from "../../../pisellMultipleSelect/PisellMultipleSelect.js";
25
+ import "../../../pisellMultipleSelect/index.js";
15
26
  import { fieldMaps } from "../../../table/Table/fields/index.js";
16
27
  import { PisellMobileDateRangePicker } from "../../../pisellMobileDateRangePicker/PisellMobileDateRangePicker.js";
17
28
  import AsyncOptionsSelectWrapper from "./AsyncOptionsSelectWrapper.js";
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import MemoizedPisellCurrency from "./PisellCurrency.js";
3
+ //#region src/components/pisellCurrency/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
5
+ MemoizedPisellCurrency.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-0-9")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-9-0")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellEmail_default from "./PisellEmail.js";
3
+ //#region src/components/pisellEmail/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
5
+ PisellEmail_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-a-z")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-z-a")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellLongText_default from "./PisellLongText.js";
3
+ //#region src/components/pisellLongText/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
5
+ PisellLongText_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-a-z")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-z-a")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellMultipleSelect from "./PisellMultipleSelect.js";
3
+ //#region src/components/pisellMultipleSelect/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 First → Last / Last → First */
5
+ PisellMultipleSelect.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-first-last")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-last-first")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import MemoizedPisellNumber from "./PisellNumber.js";
3
+ //#region src/components/pisellNumber/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
5
+ MemoizedPisellNumber.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-0-9")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-9-0")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import MemoizedPisellPercent from "./PisellPercent.js";
3
+ //#region src/components/pisellPercent/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
5
+ MemoizedPisellPercent.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-0-9")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-9-0")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,14 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import "./constants/countryCodes.js";
3
+ import PisellPhone_default from "./PisellPhone.js";
4
+ //#region src/components/pisellPhone/index.tsx
5
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
6
+ PisellPhone_default.SortOptions = { getSortItems: (fieldKey) => [{
7
+ key: `${fieldKey}:asc`,
8
+ label: getText("sort-a-z")
9
+ }, {
10
+ key: `${fieldKey}:desc`,
11
+ label: getText("sort-z-a")
12
+ }] };
13
+ //#endregion
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellRating_default from "./PisellRating.js";
3
+ //#region src/components/pisellRating/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
5
+ PisellRating_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-0-9")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-9-0")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -1,6 +1,8 @@
1
1
  import { getText } from "../../../../locales/index.js";
2
2
  import MemoizedPisellNumber from "../../../pisellNumber/PisellNumber.js";
3
+ import "../../../pisellNumber/index.js";
3
4
  import PisellSingleSelect from "../../../pisellSingleSelect/PisellSingleSelect.js";
5
+ import "../../../pisellSingleSelect/index.js";
4
6
  import React from "react";
5
7
  //#region src/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.tsx
6
8
  /** 控制台「资源 / 布局」分页:预设、自定义行列、翻页停留、主文案宽度 */
@@ -1,16 +1,27 @@
1
1
  import { getText } from "../../../locales/index.js";
2
2
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
3
  import PisellSingleLineText_default from "../../pisellSingleLineText/PisellSingleLineText.js";
4
+ import "../../pisellSingleLineText/index.js";
4
5
  import PisellLongText_default from "../../pisellLongText/PisellLongText.js";
6
+ import "../../pisellLongText/index.js";
5
7
  import MemoizedPisellNumber from "../../pisellNumber/PisellNumber.js";
8
+ import "../../pisellNumber/index.js";
6
9
  import MemoizedPisellCurrency from "../../pisellCurrency/PisellCurrency.js";
10
+ import "../../pisellCurrency/index.js";
7
11
  import MemoizedPisellPercent from "../../pisellPercent/PisellPercent.js";
12
+ import "../../pisellPercent/index.js";
8
13
  import PisellPhone_default from "../../pisellPhone/PisellPhone.js";
14
+ import "../../pisellPhone/index.js";
9
15
  import PisellEmail_default from "../../pisellEmail/PisellEmail.js";
16
+ import "../../pisellEmail/index.js";
10
17
  import PisellUrl_default from "../../pisellUrl/PisellUrl.js";
18
+ import "../../pisellUrl/index.js";
11
19
  import PisellRating_default from "../../pisellRating/PisellRating.js";
20
+ import "../../pisellRating/index.js";
12
21
  import PisellSingleSelect from "../../pisellSingleSelect/PisellSingleSelect.js";
22
+ import "../../pisellSingleSelect/index.js";
13
23
  import PisellMultipleSelect from "../../pisellMultipleSelect/PisellMultipleSelect.js";
24
+ import "../../pisellMultipleSelect/index.js";
14
25
  import PisellDateTimeDisplay_default from "../../pisellDateTimeDisplay/PisellDateTimeDisplay.js";
15
26
  import React, { useEffect, useState } from "react";
16
27
  //#region src/components/pisellRecordBoard/utils/recordBoardColumns.tsx
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellSingleLineText_default from "./PisellSingleLineText.js";
3
+ //#region src/components/pisellSingleLineText/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
5
+ PisellSingleLineText_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-a-z")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-z-a")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellSingleSelect from "./PisellSingleSelect.js";
3
+ //#region src/components/pisellSingleSelect/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 First → Last / Last → First */
5
+ PisellSingleSelect.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-first-last")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-last-first")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellUrl_default from "./PisellUrl.js";
3
+ //#region src/components/pisellUrl/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
5
+ PisellUrl_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-a-z")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-z-a")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -1,6 +1,7 @@
1
1
  import useEngineContext from "../../../hooks/useEngineContext.js";
2
2
  import Button from "../../button/index.js";
3
3
  import React from "react";
4
+ import { image } from "@pisell/utils";
4
5
  import "./index.less";
5
6
  //#region src/components/walletCard/Guest/index.tsx
6
7
  const Guest = (props) => {
@@ -44,7 +45,7 @@ const Guest = (props) => {
44
45
  style: { backgroundColor: setting === null || setting === void 0 ? void 0 : setting.backgroundColor }
45
46
  }, (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImage)) ? /* @__PURE__ */ React.createElement("img", {
46
47
  className: "pisell-wallet-guest-bg",
47
- src: (utils === null || utils === void 0 || (_utils$translation2 = utils.translation) === null || _utils$translation2 === void 0 ? void 0 : _utils$translation2.call(utils, setting.backgroundImage)) || "",
48
+ src: image.ali((utils === null || utils === void 0 || (_utils$translation2 = utils.translation) === null || _utils$translation2 === void 0 ? void 0 : _utils$translation2.call(utils, setting.backgroundImage)) || "", 175),
48
49
  alt: (utils === null || utils === void 0 || (_utils$translation3 = utils.translation) === null || _utils$translation3 === void 0 ? void 0 : _utils$translation3.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImageAlt)) || "",
49
50
  title: (utils === null || utils === void 0 || (_utils$translation4 = utils.translation) === null || _utils$translation4 === void 0 ? void 0 : _utils$translation4.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImageAlt)) || ""
50
51
  }) : null, /* @__PURE__ */ React.createElement("div", { className: `pisell-wallet-guest-content ${setting.align === "center" ? "pisell-wallet-guest-center" : ""}` }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", {
@@ -7,6 +7,7 @@ import Amount from "../pisellText/components/Amount/index.js";
7
7
  import Guest from "./Guest/index.js";
8
8
  import Guide from "./Guide/index.js";
9
9
  import React, { useMemo, useState } from "react";
10
+ import { image } from "@pisell/utils";
10
11
  import { Button, Card, QRCode } from "antd";
11
12
  import classNames from "classnames";
12
13
  import Barcode from "react-barcode";
@@ -133,7 +134,7 @@ const CardHeader = ({ showIcon = true, showWalletName = true, showShopName = tru
133
134
  const processedShowCode = toBooleanValue(showCode);
134
135
  const processedShowViewPin = toBooleanValue(showViewPin);
135
136
  return /* @__PURE__ */ React.createElement("div", { className: "pisell-wallet-card-header" }, /* @__PURE__ */ React.createElement("div", { className: "pisell-wallet-card-header-left" }, /* @__PURE__ */ React.createElement("div", { className: "pisell-wallet-card-header-level" }, processedShowIcon && iconImg ? /* @__PURE__ */ React.createElement("div", { className: "pisell-wallet-card-header-icon" }, /* @__PURE__ */ React.createElement("img", {
136
- src: iconImg,
137
+ src: image.ali(iconImg, 40),
137
138
  alt: "wallet icon",
138
139
  style: {
139
140
  width: "20px",
@@ -244,11 +245,17 @@ const WalletCard = (props) => {
244
245
  const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(cardNo, onCodeClick, codeType);
245
246
  console.log("showViewPin", props);
246
247
  const backgroundStyle = useMemo(() => {
247
- if (props.customBackgroundImage) return { backgroundImage: `url(${props.customBackgroundImage})` };
248
+ if (props.customBackgroundImage) return { backgroundImage: `url(${image.ali(props.customBackgroundImage, 175)})` };
248
249
  else {
249
- var _props$walletGuideCon;
250
+ var _props$walletGuideCon, _constants;
250
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" };
251
- return { backgroundImage: `url(https://file.mypisell-dev.com/pisel/image/9/${mode === "dark" ? "3d039c83ff5b84fadafb8a23c33d6cc42025_02_26_00_42_53_288_08413160975__720_456__" : "61dcbe950c9451164a6bb1d17d5bc5f02025_02_26_00_43_42_741_04853453608__720_456__"}.png)` };
252
+ let staticUrl = (_constants = constants) === null || _constants === void 0 ? void 0 : _constants.staticURL;
253
+ if (!staticUrl) {
254
+ var _constants2;
255
+ staticUrl = ((_constants2 = constants) === null || _constants2 === void 0 || (_constants2 = _constants2.config) === null || _constants2 === void 0 ? void 0 : _constants2.awsStatic) || "https://static.pisellcdn.com";
256
+ }
257
+ const backgroundImage = `${staticUrl}/${mode === "dark" ? "dark_wallet.png" : "light_wallet.png"}`;
258
+ return { backgroundImage: `url(${image.ali(backgroundImage, 175)})` };
252
259
  }
253
260
  }, [
254
261
  props.customBackgroundImage,
package/es/index.js CHANGED
@@ -1,15 +1,26 @@
1
1
  import PisellContext, { globalConfig } from "./components/pisell-config-provider/context.js";
2
2
  import PisellSingleLineText_default from "./components/pisellSingleLineText/PisellSingleLineText.js";
3
+ import "./components/pisellSingleLineText/index.js";
3
4
  import PisellLongText_default from "./components/pisellLongText/PisellLongText.js";
5
+ import "./components/pisellLongText/index.js";
4
6
  import MemoizedPisellNumber from "./components/pisellNumber/PisellNumber.js";
7
+ import "./components/pisellNumber/index.js";
5
8
  import MemoizedPisellCurrency from "./components/pisellCurrency/PisellCurrency.js";
9
+ import "./components/pisellCurrency/index.js";
6
10
  import MemoizedPisellPercent from "./components/pisellPercent/PisellPercent.js";
11
+ import "./components/pisellPercent/index.js";
7
12
  import PisellPhone_default from "./components/pisellPhone/PisellPhone.js";
13
+ import "./components/pisellPhone/index.js";
8
14
  import PisellEmail_default from "./components/pisellEmail/PisellEmail.js";
15
+ import "./components/pisellEmail/index.js";
9
16
  import PisellUrl_default from "./components/pisellUrl/PisellUrl.js";
17
+ import "./components/pisellUrl/index.js";
10
18
  import PisellRating_default from "./components/pisellRating/PisellRating.js";
19
+ import "./components/pisellRating/index.js";
11
20
  import PisellSingleSelect from "./components/pisellSingleSelect/PisellSingleSelect.js";
21
+ import "./components/pisellSingleSelect/index.js";
12
22
  import PisellMultipleSelect from "./components/pisellMultipleSelect/PisellMultipleSelect.js";
23
+ import "./components/pisellMultipleSelect/index.js";
13
24
  import PisellFields from "./components/PisellFields/index.js";
14
25
  import PisellCard from "./components/pisellCard/index.js";
15
26
  import PisellMetricCard from "./components/pisellMetricCard/PisellMetricCard.js";
@@ -5,7 +5,7 @@ import React from "react";
5
5
  //#region src/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts
6
6
  declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps & WithModeProps & WithFormItemProps & {
7
7
  options?: any;
8
- optionSourceType?: "default" | "custom" | "api" | undefined;
8
+ optionSourceType?: "custom" | "default" | "api" | undefined;
9
9
  labelField: string;
10
10
  valueField: string;
11
11
  extraParams?: Record<string, any> | undefined;
@@ -6,7 +6,7 @@ import * as _$antd_es_select0 from "antd/es/select";
6
6
  //#region src/components/dataSourceComponents/fields/Select/index.d.ts
7
7
  declare const SelectWithDataSource: (props: _$antd.SelectProps<any, _$antd_es_select0.DefaultOptionType> & WithModeProps & WithFormItemProps & {
8
8
  options?: any;
9
- optionSourceType?: "default" | "custom" | "api" | undefined;
9
+ optionSourceType?: "custom" | "default" | "api" | undefined;
10
10
  labelField: string;
11
11
  valueField: string;
12
12
  extraParams?: Record<string, any> | undefined;
@@ -7,7 +7,7 @@ import * as _$react from "react";
7
7
  /** 包装 DataSource 层(提供数据源上下文) */
8
8
  declare const FormItemTabs: (props: TabsProps & WithModeProps & WithFormItemProps & {
9
9
  options?: any;
10
- optionSourceType?: "default" | "custom" | "api" | undefined;
10
+ optionSourceType?: "custom" | "default" | "api" | undefined;
11
11
  labelField: string;
12
12
  valueField: string;
13
13
  extraParams?: Record<string, any> | undefined;
@@ -3,6 +3,7 @@ const require_useEngineContext = require("../../../hooks/useEngineContext.js");
3
3
  const require_index = require("../../button/index.js");
4
4
  let react = require("react");
5
5
  react = require_runtime.__toESM(react);
6
+ let _pisell_utils = require("@pisell/utils");
6
7
  require("./index.less");
7
8
  //#region src/components/walletCard/Guest/index.tsx
8
9
  const Guest = (props) => {
@@ -46,7 +47,7 @@ const Guest = (props) => {
46
47
  style: { backgroundColor: setting === null || setting === void 0 ? void 0 : setting.backgroundColor }
47
48
  }, (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImage)) ? /* @__PURE__ */ react.default.createElement("img", {
48
49
  className: "pisell-wallet-guest-bg",
49
- src: (utils === null || utils === void 0 || (_utils$translation2 = utils.translation) === null || _utils$translation2 === void 0 ? void 0 : _utils$translation2.call(utils, setting.backgroundImage)) || "",
50
+ src: _pisell_utils.image.ali((utils === null || utils === void 0 || (_utils$translation2 = utils.translation) === null || _utils$translation2 === void 0 ? void 0 : _utils$translation2.call(utils, setting.backgroundImage)) || "", 175),
50
51
  alt: (utils === null || utils === void 0 || (_utils$translation3 = utils.translation) === null || _utils$translation3 === void 0 ? void 0 : _utils$translation3.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImageAlt)) || "",
51
52
  title: (utils === null || utils === void 0 || (_utils$translation4 = utils.translation) === null || _utils$translation4 === void 0 ? void 0 : _utils$translation4.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImageAlt)) || ""
52
53
  }) : null, /* @__PURE__ */ react.default.createElement("div", { className: `pisell-wallet-guest-content ${setting.align === "center" ? "pisell-wallet-guest-center" : ""}` }, /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("div", {
@@ -9,6 +9,7 @@ const require_index$4 = require("./Guest/index.js");
9
9
  const require_index$5 = require("./Guide/index.js");
10
10
  let react = require("react");
11
11
  react = require_runtime.__toESM(react);
12
+ let _pisell_utils = require("@pisell/utils");
12
13
  let antd = require("antd");
13
14
  let classnames = require("classnames");
14
15
  classnames = require_runtime.__toESM(classnames);
@@ -138,7 +139,7 @@ const CardHeader = ({ showIcon = true, showWalletName = true, showShopName = tru
138
139
  const processedShowCode = toBooleanValue(showCode);
139
140
  const processedShowViewPin = toBooleanValue(showViewPin);
140
141
  return /* @__PURE__ */ react.default.createElement("div", { className: "pisell-wallet-card-header" }, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-wallet-card-header-left" }, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-wallet-card-header-level" }, processedShowIcon && iconImg ? /* @__PURE__ */ react.default.createElement("div", { className: "pisell-wallet-card-header-icon" }, /* @__PURE__ */ react.default.createElement("img", {
141
- src: iconImg,
142
+ src: _pisell_utils.image.ali(iconImg, 40),
142
143
  alt: "wallet icon",
143
144
  style: {
144
145
  width: "20px",
@@ -249,11 +250,17 @@ const WalletCard = (props) => {
249
250
  const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(cardNo, onCodeClick, codeType);
250
251
  console.log("showViewPin", props);
251
252
  const backgroundStyle = (0, react.useMemo)(() => {
252
- if (props.customBackgroundImage) return { backgroundImage: `url(${props.customBackgroundImage})` };
253
+ if (props.customBackgroundImage) return { backgroundImage: `url(${_pisell_utils.image.ali(props.customBackgroundImage, 175)})` };
253
254
  else {
254
- var _props$walletGuideCon;
255
+ var _props$walletGuideCon, _constants;
255
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" };
256
- return { backgroundImage: `url(https://file.mypisell-dev.com/pisel/image/9/${mode === "dark" ? "3d039c83ff5b84fadafb8a23c33d6cc42025_02_26_00_42_53_288_08413160975__720_456__" : "61dcbe950c9451164a6bb1d17d5bc5f02025_02_26_00_43_42_741_04853453608__720_456__"}.png)` };
257
+ let staticUrl = (_constants = constants) === null || _constants === void 0 ? void 0 : _constants.staticURL;
258
+ if (!staticUrl) {
259
+ var _constants2;
260
+ staticUrl = ((_constants2 = constants) === null || _constants2 === void 0 || (_constants2 = _constants2.config) === null || _constants2 === void 0 ? void 0 : _constants2.awsStatic) || "https://static.pisellcdn.com";
261
+ }
262
+ const backgroundImage = `${staticUrl}/${mode === "dark" ? "dark_wallet.png" : "light_wallet.png"}`;
263
+ return { backgroundImage: `url(${_pisell_utils.image.ali(backgroundImage, 175)})` };
257
264
  }
258
265
  }, [
259
266
  props.customBackgroundImage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.11.272",
3
+ "version": "6.11.273",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -95,9 +95,9 @@
95
95
  "swiper": "^8.4.7",
96
96
  "antd-mobile": "^5.38.1",
97
97
  "vod-js-sdk-v6": "^1.4.11",
98
- "@pisell/date-picker": "3.0.12",
98
+ "@pisell/icon": "0.0.11",
99
99
  "@pisell/utils": "3.0.7",
100
- "@pisell/icon": "0.0.11"
100
+ "@pisell/date-picker": "3.0.12"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": "^18.0.0",