@pisell/materials 1.0.1105 → 1.0.1107
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 +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/PisellContactBrief/components/ContactFormModal.js +3 -0
- package/es/components/PisellFields/index.js +11 -0
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +2 -0
- package/es/components/filter/components/FilterItem/index.js +11 -0
- package/es/components/pisellCurrency/index.js +13 -0
- package/es/components/pisellEmail/index.js +13 -0
- package/es/components/pisellLongText/index.js +13 -0
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +3 -3
- package/es/components/pisellMobileDateRangePicker/types.d.ts +3 -4
- 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/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/index.js +11 -0
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +5 -3
- package/lib/components/pisellMobileDateRangePicker/types.d.ts +3 -4
- package/package.json +3 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import PisellSingleLineText_default from "../../pisellSingleLineText/PisellSingleLineText.js";
|
|
2
|
+
import "../../pisellSingleLineText/index.js";
|
|
2
3
|
import PisellPhone_default from "../../pisellPhone/PisellPhone.js";
|
|
4
|
+
import "../../pisellPhone/index.js";
|
|
3
5
|
import PisellEmail_default from "../../pisellEmail/PisellEmail.js";
|
|
6
|
+
import "../../pisellEmail/index.js";
|
|
4
7
|
import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
|
|
5
8
|
import React, { useEffect } from "react";
|
|
6
9
|
import { locales } from "@pisell/utils";
|
|
@@ -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,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 AsyncOptionsSelectWrapper from "./AsyncOptionsSelectWrapper.js";
|
|
17
28
|
import React, { useMemo } from "react";
|
|
@@ -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 {};
|
|
@@ -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,6 @@ 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/theme-default.css";
|
|
17
17
|
import "./PisellMobileDateRangePicker.less";
|
|
18
18
|
//#region src/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.tsx
|
|
19
19
|
/**
|
|
@@ -126,7 +126,7 @@ const PisellMobileDateRangePicker = ({ value, onChange, format = "DD/MM/YYYY", p
|
|
|
126
126
|
}, /* @__PURE__ */ React.createElement("span", { className: "pisell-mobile-date-range-picker__trigger-text" }, formatRangeLabel(dayjsRange, format, resolvedPlaceholder)), isFilterVariant ? /* @__PURE__ */ React.createElement(Calendar, {
|
|
127
127
|
className: "pisell-mobile-date-range-picker__trigger-icon",
|
|
128
128
|
"aria-hidden": true
|
|
129
|
-
}) : null), /* @__PURE__ */ React.createElement(
|
|
129
|
+
}) : null), /* @__PURE__ */ React.createElement(AntMobileConfigProvider, { locale: antMobileLocale }, /* @__PURE__ */ React.createElement(CalendarPicker, {
|
|
130
130
|
visible,
|
|
131
131
|
selectionMode: "range",
|
|
132
132
|
value: innerValue !== null && innerValue !== void 0 ? innerValue : void 0,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
|
-
import { CalendarPickerProps } from "antd-mobile";
|
|
4
3
|
|
|
5
4
|
//#region src/components/pisellMobileDateRangePicker/types.d.ts
|
|
6
5
|
/** toolbar:顶栏快筛 32px;filter:Filter 弹层内与 Select 对齐的 48px 触发器 */
|
|
@@ -20,9 +19,9 @@ interface PisellMobileDateRangePickerProps {
|
|
|
20
19
|
max?: Date;
|
|
21
20
|
/** 默认 toolbar;filter 用于手机 Filter 弹层 */
|
|
22
21
|
variant?: PisellMobileDateRangePickerVariant;
|
|
23
|
-
getContainer?:
|
|
24
|
-
popupClassName?:
|
|
25
|
-
popupStyle?:
|
|
22
|
+
getContainer?: any;
|
|
23
|
+
popupClassName?: any;
|
|
24
|
+
popupStyle?: any;
|
|
26
25
|
/** Filter 弹层:日历打开时通知外层保持 Popover 不收起 */
|
|
27
26
|
onOpen?: () => void;
|
|
28
27
|
onClose?: () => void;
|
|
@@ -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 {};
|
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";
|
|
@@ -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,6 @@ 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/theme-default.css");
|
|
28
30
|
require("./PisellMobileDateRangePicker.less");
|
|
29
31
|
//#region src/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.tsx
|
|
30
32
|
/**
|
|
@@ -137,7 +139,7 @@ const PisellMobileDateRangePicker = ({ value, onChange, format = "DD/MM/YYYY", p
|
|
|
137
139
|
}, /* @__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
140
|
className: "pisell-mobile-date-range-picker__trigger-icon",
|
|
139
141
|
"aria-hidden": true
|
|
140
|
-
}) : null), /* @__PURE__ */ react.default.createElement(
|
|
142
|
+
}) : 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
143
|
visible,
|
|
142
144
|
selectionMode: "range",
|
|
143
145
|
value: innerValue !== null && innerValue !== void 0 ? innerValue : void 0,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
|
-
import { CalendarPickerProps } from "antd-mobile";
|
|
4
3
|
|
|
5
4
|
//#region src/components/pisellMobileDateRangePicker/types.d.ts
|
|
6
5
|
/** toolbar:顶栏快筛 32px;filter:Filter 弹层内与 Select 对齐的 48px 触发器 */
|
|
@@ -20,9 +19,9 @@ interface PisellMobileDateRangePickerProps {
|
|
|
20
19
|
max?: Date;
|
|
21
20
|
/** 默认 toolbar;filter 用于手机 Filter 弹层 */
|
|
22
21
|
variant?: PisellMobileDateRangePickerVariant;
|
|
23
|
-
getContainer?:
|
|
24
|
-
popupClassName?:
|
|
25
|
-
popupStyle?:
|
|
22
|
+
getContainer?: any;
|
|
23
|
+
popupClassName?: any;
|
|
24
|
+
popupStyle?: any;
|
|
26
25
|
/** Filter 弹层:日历打开时通知外层保持 Popover 不收起 */
|
|
27
26
|
onOpen?: () => void;
|
|
28
27
|
onClose?: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1107",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"antd-mobile": "^5.38.1",
|
|
98
98
|
"vod-js-sdk-v6": "^1.4.11",
|
|
99
99
|
"@pisell/date-picker": "1.0.146",
|
|
100
|
-
"@pisell/
|
|
101
|
-
"@pisell/
|
|
100
|
+
"@pisell/icon": "0.0.10",
|
|
101
|
+
"@pisell/utils": "1.0.73"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"react": "^18.0.0",
|