@pisell/materials 6.11.12 → 6.11.14

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 (127) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +3 -3
  9. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  11. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  12. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
  14. package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
  15. package/es/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
  16. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
  17. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
  18. package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
  19. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  20. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
  21. package/es/components/productCard/cartSkuCard/index.js +5 -1
  22. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  23. package/es/components/table/Table/utils.d.ts +1 -1
  24. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  25. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  26. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  27. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  28. package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
  29. package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
  30. package/lib/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
  31. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +7 -1
  32. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
  33. package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
  34. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  35. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
  36. package/lib/components/productCard/cartSkuCard/index.js +5 -1
  37. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  38. package/lib/components/table/Table/utils.d.ts +1 -1
  39. package/package.json +3 -3
  40. package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
  41. package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
  42. package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
  43. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
  44. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
  45. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  46. package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
  47. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
  48. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  49. package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
  50. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  51. package/es/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
  52. package/es/components/PisellCards/components/TextCard/index.d.ts +0 -5
  53. package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
  54. package/es/components/config-provider/index.d.ts +0 -10
  55. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
  56. package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
  57. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  58. package/es/components/drag-sort-tree/index.d.ts +0 -5
  59. package/es/components/filter/components/Dropdown/types.d.ts +0 -13
  60. package/es/components/filter/components/FilterButton/types.d.ts +0 -24
  61. package/es/components/filter/types.d.ts +0 -48
  62. package/es/components/login-and-register/index.d.ts +0 -82
  63. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  64. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
  65. package/es/components/pisellFilter/type.d.ts +0 -5
  66. package/es/components/pisellGridPro/index.d.ts +0 -4
  67. package/es/components/pisellQuickFilter/type.d.ts +0 -12
  68. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
  69. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
  70. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
  71. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -11
  72. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
  73. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
  74. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  75. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  76. package/es/components/sort/index.d.ts +0 -5
  77. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
  78. package/es/components/table/types.d.ts +0 -268
  79. package/es/components/translation/utils.d.ts +0 -9
  80. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  81. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  82. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  83. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  84. package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
  85. package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
  86. package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
  87. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
  88. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
  89. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  90. package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
  91. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
  92. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  93. package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
  94. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  95. package/lib/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
  96. package/lib/components/PisellCards/components/TextCard/index.d.ts +0 -5
  97. package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
  98. package/lib/components/config-provider/index.d.ts +0 -10
  99. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
  100. package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
  101. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  102. package/lib/components/drag-sort-tree/index.d.ts +0 -5
  103. package/lib/components/filter/components/Dropdown/types.d.ts +0 -13
  104. package/lib/components/filter/components/FilterButton/types.d.ts +0 -24
  105. package/lib/components/filter/types.d.ts +0 -48
  106. package/lib/components/login-and-register/index.d.ts +0 -82
  107. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  108. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
  109. package/lib/components/pisellFilter/type.d.ts +0 -5
  110. package/lib/components/pisellGridPro/index.d.ts +0 -4
  111. package/lib/components/pisellQuickFilter/type.d.ts +0 -12
  112. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
  113. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
  114. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
  115. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -11
  116. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
  117. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
  118. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  119. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  120. package/lib/components/sort/index.d.ts +0 -5
  121. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
  122. package/lib/components/table/types.d.ts +0 -268
  123. package/lib/components/translation/utils.d.ts +0 -9
  124. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  125. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  126. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  127. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
@@ -1,9 +0,0 @@
1
- export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK", "ja", "pt"];
2
- export declare const DEFAULT_MAX_COUNT = 9;
3
- export declare const DEFAULT_UID = "-1";
4
- export declare const MEDIA_TYPES: {
5
- readonly VIDEO: "video/";
6
- readonly AUDIO: "audio/";
7
- };
8
- export declare const IMAGE_QUALITY = 0.8;
9
- export declare const IMAGE_TYPE = "image/jpeg";
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { ValueProps, SortType } from '../types';
4
- declare type IdType = string | number;
5
- declare type TreeItemProps = {
6
- id: string | number;
7
- key: string | number;
8
- item: ValueProps | any;
9
- depth: number;
10
- lists: any[];
11
- childrenProps?: SortType;
12
- sensors?: any;
13
- expandedKeys?: IdType[];
14
- setExpandedKeys?: any;
15
- onSelectKeys?: (ids: IdType) => void;
16
- onChange?: (value: any[]) => void;
17
- };
18
- declare const TreeItem: (props: TreeItemProps) => React.JSX.Element;
19
- export default TreeItem;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { SortType } from './types';
4
- declare const DragSortTree: (props: SortType) => React.JSX.Element;
5
- export default DragSortTree;
@@ -1,13 +0,0 @@
1
- import { FilterItemProps } from '../../types';
2
- export interface DropdownProps {
3
- quickFilter: FilterItemProps[];
4
- otherFilter: FilterItemProps[];
5
- hiddenQuickFilter?: boolean;
6
- hiddenOtherFilter?: boolean;
7
- onChange: (list: {
8
- quickFilter: FilterItemProps[];
9
- otherFilter: FilterItemProps[];
10
- }) => void;
11
- quickFilterMaxLength: number;
12
- formFiltersPrefix: string;
13
- }
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import { FilterItemProps } from '../../types';
3
- export declare type FilterValueType = {
4
- quickFilter: FilterItemProps[];
5
- otherFilter: FilterItemProps[];
6
- /** 筛选项表单值,字段名 -> 值,与 Form 的 values 一致 */
7
- values?: Record<string, any>;
8
- };
9
- export declare type FilterListProps = {
10
- value?: FilterValueType;
11
- hiddenQuickFilter?: boolean;
12
- hiddenOtherFilter?: boolean;
13
- onChange?: (value: FilterValueType) => void;
14
- quickFilterMaxLength: number;
15
- formFiltersPrefix: string;
16
- renderItem?: (item: any, otherProps?: any) => React.ReactNode;
17
- placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
18
- /** 筛选按钮尺寸,与 antd Button size 一致 */
19
- size?: 'small' | 'middle' | 'large';
20
- /** 筛选触发按钮的 className,用于定制样式(如与设计系统对齐) */
21
- buttonClassName?: string;
22
- /** 筛选按钮文案,不传则使用 materials 内置多语言 */
23
- buttonText?: string;
24
- };
@@ -1,48 +0,0 @@
1
- import { ModeType } from "../table/types";
2
- /**
3
- * 筛选总配置
4
- */
5
- export declare type FilterType = {
6
- /** 筛选是否展示 */
7
- show: boolean;
8
- /** 筛选项排序按钮是否展示 */
9
- sortButtonShow: boolean;
10
- /** 筛选列表 */
11
- list: FilterItemProps[];
12
- items?: string[];
13
- /** 快速筛选最大长度 */
14
- quickFilterMaxLength: number;
15
- /** 配置存储模式 */
16
- storageMode: "" | "localStorage";
17
- /** 筛选列表项dom */
18
- dom?: any;
19
- };
20
- /**
21
- * 筛选列表项配置
22
- * - type 为 single/input/rangePicker 等时使用内置或映射组件
23
- * - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
24
- */
25
- export declare type FilterItemProps = {
26
- type: "single" | "input" | "datePicker" | "rangePicker" | "rangePickerNew" | "search" | "custom";
27
- name?: string | string[];
28
- key: string;
29
- props?: object;
30
- label?: string;
31
- sort?: boolean;
32
- localFilter?: boolean;
33
- other: Record<string, any>;
34
- isCustom?: boolean;
35
- columnKey?: string;
36
- isHidden?: boolean;
37
- };
38
- /**
39
- * 筛选组件属性
40
- */
41
- export interface FilterProps {
42
- filter: FilterType;
43
- isRenderFormContent: boolean;
44
- onValuesChange?: () => void;
45
- tableId?: string;
46
- viewMode?: ModeType;
47
- isMobile?: boolean;
48
- }
@@ -1,82 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- /**
4
- * loginAndRegister组件的属性接口
5
- */
6
- export interface loginAndRegisterProps {
7
- /** Logo相关配置 */
8
- showLogo?: boolean;
9
- logo?: string;
10
- logoPosition?: 'left' | 'center' | 'right';
11
- logoSize?: {
12
- width?: number;
13
- height?: number;
14
- };
15
- /** 标题相关配置 */
16
- title?: string;
17
- showTitle?: boolean;
18
- titleAlign?: 'left' | 'center' | 'right';
19
- /** 副标题相关配置 */
20
- subtitle?: string;
21
- showSubtitle?: boolean;
22
- subtitleAlign?: 'left' | 'center' | 'right';
23
- /** 登录方式配置 */
24
- loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
- defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
- /** 表单配置 */
27
- emailLabel?: string;
28
- passwordLabel?: string;
29
- emailPlaceholder?: string;
30
- passwordPlaceholder?: string;
31
- emailRules?: any[];
32
- buttonText?: string;
33
- rememberMeText?: string;
34
- forgotPasswordText?: string;
35
- showRememberMe?: boolean;
36
- showForgotPassword?: boolean;
37
- /** 社交登录配置 */
38
- socialLoginTexts?: {
39
- google?: string;
40
- facebook?: string;
41
- apple?: string;
42
- };
43
- /** 底部配置 */
44
- showFooter?: boolean;
45
- showSignUp?: boolean;
46
- signUpText?: string;
47
- signUpLink?: string;
48
- signUpPosition?: 'left' | 'center' | 'right';
49
- otherLinks?: Array<{
50
- text: string;
51
- url: string;
52
- }>;
53
- otherLinksPosition?: 'left' | 'center' | 'right';
54
- /** 登录/注册切换配置 */
55
- showTabs?: boolean;
56
- loginTabText?: string;
57
- registerTabText?: string;
58
- /** 注册表单配置 */
59
- registerEmailPlaceholder?: string;
60
- registerPasswordPlaceholder?: string;
61
- registerButtonText?: string;
62
- /** 事件回调 */
63
- onLogin?: (values: {
64
- email: string;
65
- loginMethod: string;
66
- }) => void;
67
- onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
- onSignUp?: () => void;
69
- onRegister?: (values: {
70
- email: string;
71
- password: string;
72
- }) => void;
73
- /** 新增背景图片属性 */
74
- backgroundImage?: string;
75
- }
76
- /**
77
- * Saas登录组件
78
- * @param props - 组件属性
79
- * @returns React组件
80
- */
81
- declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
- export default loginAndRegister;
@@ -1,32 +0,0 @@
1
- export declare const defaultConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- isShowMainText: boolean;
13
- mainTextColor: string;
14
- isShowSubText: boolean;
15
- subTextColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- isShowMainText: boolean;
28
- mainTextColor: string;
29
- isShowSubText: boolean;
30
- subTextColor: string;
31
- };
32
- };
@@ -1,24 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- export declare type RelativeDay = 'today' | 'yesterday' | 'tomorrow';
3
- /**
4
- * 判断日期相对于参考日期是今天、昨天还是明天
5
- *
6
- * @param date 要展示的日期
7
- * @param reference 参考日期(通常为「当前」dayjs())
8
- * @returns 'today' | 'yesterday' | 'tomorrow' | null
9
- *
10
- * @example
11
- * getRelativeDay(dayjs(), dayjs()) // => 'today'
12
- * getRelativeDay(dayjs().add(1,'day'), dayjs()) // => 'tomorrow'
13
- * getRelativeDay(dayjs().subtract(1,'day'), dayjs()) // => 'yesterday'
14
- */
15
- export declare function getRelativeDay(date: Dayjs, reference: Dayjs): RelativeDay | null;
16
- /**
17
- * 根据 locale 返回相对日期的展示文案
18
- * 未传 locale 时使用 getDayjsLocale()(与 locales.getLocale 同源)
19
- *
20
- * @param day 'today' | 'yesterday' | 'tomorrow'
21
- * @param locale dayjs locale,如 'zh-cn'、'en'
22
- * @returns 如 '今天'、'Today'
23
- */
24
- export declare function getRelativeDayLabel(day: RelativeDay, locale?: string): string;
@@ -1,5 +0,0 @@
1
- import { FilterListProps } from '../filter/components/FilterButton/types';
2
- import { FormInstance } from 'antd';
3
- export declare type PisellFilterProps = FilterListProps & FormInstance & {
4
- hasForm?: boolean;
5
- };
@@ -1,4 +0,0 @@
1
- import { GridProProps } from './GridPro';
2
- export type { GridProProps };
3
- declare const PisellGridPro: any;
4
- export default PisellGridPro;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { FilterItemProps } from '../filter/types';
3
- import { FormInstance } from 'antd';
4
- export declare type PisellQuickFilterProps = FormInstance & {
5
- hasForm?: boolean;
6
- children?: React.ReactNode;
7
- formFiltersPrefix: string;
8
- filterList?: FilterItemProps[];
9
- quickFilterMaxLength: number;
10
- hiddenQuickFilter: boolean;
11
- hiddenOtherFilter: boolean;
12
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { RecordBoardProps } from './types';
3
- /**
4
- * RecordBoard 容器:提供统一的 data / pagination / search 上下文。
5
- * 仅接受打散 props:列表/分页/搜索/多选/列显隐、以及 grid/toolBar/search/paginationConfig/batchActionBar/cardList。
6
- */
7
- declare const PisellRecordBoard: React.FC<RecordBoardProps>;
8
- export default PisellRecordBoard;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { PisellBatchActionBarProps } from '../../../pisellBatchActionBar';
3
- /**
4
- * RecordBoard 下的多选操作栏:从 context 取选中态与数据,渲染 PisellBatchActionBar。
5
- * 仅在有选中项时展示;全选/反选/清空基于当前页 data。
6
- */
7
- declare const RecordBoardBatchActionBar: React.FC<Partial<PisellBatchActionBarProps>>;
8
- export default RecordBoardBatchActionBar;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface RecordBoardSearchProps {
3
- [key: string]: any;
4
- }
5
- /**
6
- * RecordBoard 下的独立搜索槽:使用 PisellFind,绑定 context.searchParams.keyword 与 onSearch。
7
- * 可通过 childComponentProps.search 透传 PisellFind 的 props。
8
- */
9
- declare const RecordBoardSearch: React.FC<RecordBoardSearchProps>;
10
- export default RecordBoardSearch;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { RecordBoardToolBarProps as ToolBarPropsType } from '../../types';
3
- import './ToolBarFilter.less';
4
- /**
5
- * RecordBoard 下的工具栏:使用 PisellToolBar。
6
- * 左侧默认 PisellFind(inline);右侧默认 PisellFilter。通过 childComponentProps.toolBar.search / toolBar.filter 为对象时透传对应组件 props,为 false 时不渲染。
7
- * 可透传 topLeft、topRight、bottomLeft、bottomRight、tabs。
8
- */
9
- declare const RecordBoardToolBar: React.FC<RecordBoardToolBarProps>;
10
- export declare type RecordBoardToolBarProps = ToolBarPropsType;
11
- export default RecordBoardToolBar;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface ToolBarResetProps {
4
- /** 按钮尺寸,与 antd Button 一致,默认与筛选按钮对齐为 large */
5
- size?: 'small' | 'middle' | 'large';
6
- /** 按钮类型 */
7
- type?: 'default' | 'primary' | 'link' | 'text';
8
- /** 按钮文案,默认使用多语言「重置」 */
9
- children?: React.ReactNode;
10
- }
11
- /**
12
- * RecordBoard 工具栏重置按钮:清空筛选与排序并刷新表格。
13
- * 点击后以空 filter.values、清空 sort 调用 onSearch,并调用 onReset(若提供)。
14
- */
15
- declare const ToolBarReset: React.FC<ToolBarResetProps>;
16
- export default ToolBarReset;
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import 'dayjs/locale/zh-cn';
3
- import 'dayjs/locale/en';
4
- import type { PisellTimeRangeDisplayProps } from './types';
5
- import './PisellTimeRangeDisplay.less';
6
- /**
7
- * PisellTimeRangeDisplay 组件
8
- *
9
- * @description
10
- * 纯展示型时间区间组件,将 startAt / endAt 格式化为「时间区间 + 持续时间」。
11
- * - 同一天:HH:mm-HH:mm,可选显示日期/星期
12
- * - 跨天:起止日期时间
13
- * - 持续时间:d h m s 格式
14
- * - 字段顺序由 fieldOrder 控制,可将 duration 放在中间
15
- *
16
- * @example
17
- * <PisellTimeRangeDisplay
18
- * startAt="2026-02-04 09:00"
19
- * endAt="2026-02-04 18:00"
20
- * />
21
- * // => "09:00-18:00" + "9h"
22
- *
23
- * <PisellTimeRangeDisplay
24
- * startAt={start}
25
- * endAt={end}
26
- * fields={{ fieldOrder: ['time', 'duration', 'date', 'weekday'] }}
27
- * showDateForSameDay
28
- * />
29
- */
30
- export declare const PisellTimeRangeDisplay: React.FC<PisellTimeRangeDisplayProps>;
31
- declare const _default: React.NamedExoticComponent<PisellTimeRangeDisplayProps>;
32
- export default _default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Holders: (props: any) => React.JSX.Element | null;
4
- export default Holders;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const DeleteButton: ({ onDelete }: any) => React.JSX.Element;
4
- export default DeleteButton;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { SortListProps } from './types';
3
- import './index.less';
4
- declare const Sort: React.FC<SortListProps>;
5
- export default Sort;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { GridViewType, ModeType } from "../../../types";
3
- declare type ViewModeProps = {
4
- view: GridViewType;
5
- value?: ModeType;
6
- onChange?: (value: ModeType) => void;
7
- };
8
- declare const ViewMode: (props: ViewModeProps) => React.JSX.Element;
9
- export default ViewMode;