@pisell/materials 6.11.272 → 6.11.274
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/preview.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/PisellCards/index.d.ts +0 -1
- package/es/components/PisellFields/index.d.ts +0 -1
- package/es/components/PisellFields/index.js +11 -0
- 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/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +2 -0
- package/es/components/filter/components/FilterItem/index.js +11 -0
- package/es/components/input/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +0 -1
- package/es/components/pisellCurrency/index.js +13 -0
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellEmail/index.js +13 -0
- package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
- package/es/components/pisellLongText/index.js +13 -0
- package/es/components/pisellLookup/PisellLookup.less +24 -2
- package/es/components/pisellLookup/components/LookupResultHost.js +1 -1
- package/es/components/pisellMenu/types.d.ts +0 -1
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +4 -3
- package/es/components/pisellMultipleSelect/index.js +13 -0
- package/es/components/pisellNumber/index.js +13 -0
- package/es/components/pisellPercent/index.js +13 -0
- package/es/components/pisellPhone/index.js +14 -0
- package/es/components/pisellQuickFilter/type.d.ts +0 -1
- package/es/components/pisellRating/index.js +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +2 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +11 -0
- package/es/components/pisellSingleLineText/index.js +13 -0
- package/es/components/pisellSingleSelect/index.js +13 -0
- package/es/components/pisellUrl/index.js +13 -0
- 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/Guest/index.js +2 -1
- package/es/components/walletCard/index.js +11 -4
- package/es/index.js +11 -0
- 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/pisellLookup/PisellLookup.less +24 -2
- package/lib/components/pisellLookup/components/LookupResultHost.js +1 -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/Guest/index.js +2 -1
- package/lib/components/walletCard/index.js +11 -4
- 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,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 命名空间
|
|
@@ -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";
|
|
@@ -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 {};
|
|
@@ -538,6 +538,12 @@
|
|
|
538
538
|
line-height: 24px;
|
|
539
539
|
flex-shrink: 0;
|
|
540
540
|
|
|
541
|
+
> .pisell-lowcode-btn-icon,
|
|
542
|
+
> .ant-btn-icon {
|
|
543
|
+
margin-right: 0 !important;
|
|
544
|
+
margin-inline-end: 0 !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
541
547
|
&:hover {
|
|
542
548
|
background-color: #f9fafb !important;
|
|
543
549
|
border-color: #d0d5dd !important;
|
|
@@ -616,7 +622,8 @@
|
|
|
616
622
|
}
|
|
617
623
|
|
|
618
624
|
.pisell-lowcode-modal-body {
|
|
619
|
-
|
|
625
|
+
// PcModal 的 #body 规则默认左右 24px;仅搜索弹窗覆盖为 12px。
|
|
626
|
+
padding: 0 12px !important;
|
|
620
627
|
}
|
|
621
628
|
|
|
622
629
|
.pisell-lowcode-modal-content {
|
|
@@ -632,7 +639,7 @@
|
|
|
632
639
|
|
|
633
640
|
.pisell-lookup-modal-custom-container {
|
|
634
641
|
position: absolute !important;
|
|
635
|
-
top:
|
|
642
|
+
top: env(safe-area-inset-top, 0px) !important;
|
|
636
643
|
left: 0 !important;
|
|
637
644
|
right: 0 !important;
|
|
638
645
|
bottom: 0 !important;
|
|
@@ -649,6 +656,21 @@
|
|
|
649
656
|
}
|
|
650
657
|
}
|
|
651
658
|
|
|
659
|
+
// 顶部搜索浮层统一预留 10px,并兼顾系统安全区。
|
|
660
|
+
.pisell-lookup-modal-wrapper-top {
|
|
661
|
+
margin-top: max(10px, env(safe-area-inset-top, 0px));
|
|
662
|
+
|
|
663
|
+
// 自定义挂载点已包含安全区,避免重复叠加。
|
|
664
|
+
.pisell-lookup-modal-custom-container & {
|
|
665
|
+
margin-top: max(0px, calc(10px - env(safe-area-inset-top, 0px)));
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.pisell-lookup-search-area-with-close .pisell-lookup-modal-close-btn {
|
|
669
|
+
min-width: 44px;
|
|
670
|
+
min-height: 48px;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
652
674
|
// ============ Drawer 全局样式覆盖 ============
|
|
653
675
|
|
|
654
676
|
.pisell-lookup-drawer-container {
|
|
@@ -85,7 +85,7 @@ const LookupResultHost = (props) => {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
88
|
-
className: "pisell-lookup-modal-wrapper",
|
|
88
|
+
className: ["pisell-lookup-modal-wrapper", !modalCentered ? "pisell-lookup-modal-wrapper-top" : ""].filter(Boolean).join(" "),
|
|
89
89
|
style: portalContentStyle
|
|
90
90
|
}, children));
|
|
91
91
|
};
|
|
@@ -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,
|
|
@@ -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 {};
|
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js
CHANGED
|
@@ -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
|
-
|
|
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,
|