@pisell/materials 6.11.216 → 6.11.218

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 (225) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +149 -149
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +15 -15
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +14 -14
  11. package/es/components/Pagination/index.d.ts +0 -1
  12. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
  13. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
  14. package/es/components/PisellCards/index.d.ts +0 -1
  15. package/es/components/PisellMetrics/index.d.ts +0 -1
  16. package/es/components/PisellTabbar/PisellTabbar.js +1 -2
  17. package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -2
  18. package/es/components/cardPro/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  20. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  22. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  26. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  27. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  35. package/es/components/dataSourceComponents/fields/index.d.ts +12 -12
  36. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  37. package/es/components/date-picker/index.d.ts +1 -0
  38. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  39. package/es/components/filter/index.d.ts +0 -1
  40. package/es/components/list/index.d.ts +0 -1
  41. package/es/components/lowCodePage/index.d.ts +0 -1
  42. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  43. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  44. package/es/components/pisellFind/index.js +33 -19
  45. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  46. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  47. package/es/components/pisellInput/index.d.ts +1 -0
  48. package/es/components/pisellLoading/index.d.ts +0 -1
  49. package/es/components/pisellLookup/PisellLookup.js +34 -14
  50. package/es/components/pisellLookup/PisellLookup.less +21 -48
  51. package/es/components/pisellLookup/components/LookupTrigger.js +13 -6
  52. package/es/components/pisellLookup/components/SearchHistory.js +7 -1
  53. package/es/components/pisellLookup/types.d.ts +16 -1
  54. package/es/components/pisellRecordBoard/PisellRecordBoard.js +75 -21
  55. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -1
  56. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  57. package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +36 -0
  58. package/es/components/pisellTimeRangeDisplay/types.d.ts +145 -0
  59. package/es/components/pisellTooltip/index.d.ts +1 -0
  60. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  61. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  62. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  63. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  64. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  65. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  66. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  67. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  68. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  69. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  70. package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -1
  71. package/es/components/productCard/components/Action/index.d.ts +1 -0
  72. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  73. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  74. package/es/components/productCard/components/Note/index.d.ts +0 -1
  75. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  76. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  77. package/es/components/productCard/components/Time/index.d.ts +0 -1
  78. package/es/components/productCard/lineItem/locales.d.ts +38 -0
  79. package/es/components/qrcode/index.d.ts +0 -1
  80. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  81. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  82. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  83. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  84. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  85. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  86. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  87. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  88. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  89. package/es/components/table/Actions/index.d.ts +0 -1
  90. package/es/components/table/BasicTable/index.d.ts +0 -1
  91. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  92. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  93. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/index.d.ts +2 -2
  97. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  98. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  100. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  102. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  103. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  104. package/es/components/table/Table/utils.d.ts +1 -1
  105. package/es/components/table/View/index.d.ts +0 -1
  106. package/es/components/versionSelect/index.d.ts +0 -1
  107. package/es/locales/en-US.d.ts +1 -0
  108. package/es/locales/en-US.js +1 -0
  109. package/es/locales/ja.d.ts +1 -0
  110. package/es/locales/ja.js +1 -0
  111. package/es/locales/pt.d.ts +1 -0
  112. package/es/locales/pt.js +1 -0
  113. package/es/locales/zh-CN.d.ts +1 -0
  114. package/es/locales/zh-CN.js +2 -1
  115. package/es/locales/zh-TW.d.ts +1 -0
  116. package/es/locales/zh-TW.js +2 -1
  117. package/lib/components/Pagination/index.d.ts +0 -1
  118. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
  119. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
  120. package/lib/components/PisellCards/index.d.ts +0 -1
  121. package/lib/components/PisellMetrics/index.d.ts +0 -1
  122. package/lib/components/PisellTabbar/PisellTabbar.js +1 -2
  123. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -2
  124. package/lib/components/cardPro/index.d.ts +1 -0
  125. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  126. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  127. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  128. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  129. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  130. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  131. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  132. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  133. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  134. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  135. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  136. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +0 -1
  137. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  138. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  139. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  140. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  141. package/lib/components/dataSourceComponents/fields/index.d.ts +12 -12
  142. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  143. package/lib/components/date-picker/index.d.ts +1 -0
  144. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  145. package/lib/components/filter/index.d.ts +0 -1
  146. package/lib/components/list/index.d.ts +0 -1
  147. package/lib/components/lowCodePage/index.d.ts +0 -1
  148. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  149. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  150. package/lib/components/pisellFind/index.js +37 -13
  151. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  152. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  153. package/lib/components/pisellInput/index.d.ts +1 -0
  154. package/lib/components/pisellLoading/index.d.ts +0 -1
  155. package/lib/components/pisellLookup/PisellLookup.js +13 -2
  156. package/lib/components/pisellLookup/PisellLookup.less +21 -48
  157. package/lib/components/pisellLookup/components/LookupTrigger.js +14 -1
  158. package/lib/components/pisellLookup/components/SearchHistory.js +9 -1
  159. package/lib/components/pisellLookup/types.d.ts +16 -1
  160. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +59 -5
  161. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -1
  162. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  163. package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +36 -0
  164. package/lib/components/pisellTimeRangeDisplay/types.d.ts +145 -0
  165. package/lib/components/pisellTooltip/index.d.ts +1 -0
  166. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  167. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  168. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  169. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  170. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  171. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  172. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  173. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  174. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  175. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  176. package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -1
  177. package/lib/components/productCard/components/Action/index.d.ts +1 -0
  178. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  179. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  180. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  181. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  182. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  183. package/lib/components/productCard/components/Time/index.d.ts +0 -1
  184. package/lib/components/productCard/lineItem/locales.d.ts +38 -0
  185. package/lib/components/qrcode/index.d.ts +0 -1
  186. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  187. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  188. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  189. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  190. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  191. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  192. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  193. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  194. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  195. package/lib/components/table/Actions/index.d.ts +0 -1
  196. package/lib/components/table/BasicTable/index.d.ts +0 -1
  197. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  198. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  199. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  200. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  201. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  202. package/lib/components/table/Table/fields/index.d.ts +2 -2
  203. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  204. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  205. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  206. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  207. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  208. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  209. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  210. package/lib/components/table/Table/utils.d.ts +1 -1
  211. package/lib/components/table/View/index.d.ts +0 -1
  212. package/lib/components/versionSelect/index.d.ts +0 -1
  213. package/lib/locales/en-US.d.ts +1 -0
  214. package/lib/locales/en-US.js +1 -0
  215. package/lib/locales/ja.d.ts +1 -0
  216. package/lib/locales/ja.js +1 -0
  217. package/lib/locales/pt.d.ts +1 -0
  218. package/lib/locales/pt.js +1 -0
  219. package/lib/locales/zh-CN.d.ts +1 -0
  220. package/lib/locales/zh-CN.js +2 -1
  221. package/lib/locales/zh-TW.d.ts +1 -0
  222. package/lib/locales/zh-TW.js +2 -1
  223. package/package.json +3 -3
  224. package/es/components/productCard/lineItem/components/Holders/index.d.ts +0 -9
  225. package/lib/components/productCard/lineItem/components/Holders/index.d.ts +0 -9
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { type Dayjs } from 'dayjs';
3
+ import type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, TextStyleConfig } from '../types';
4
+ export interface TimeRangeBlockProps {
5
+ /** 开始时间 */
6
+ start: Dayjs;
7
+ /** 结束时间 */
8
+ end: Dayjs;
9
+ /** 是否同一天 */
10
+ isSameDay: boolean;
11
+ /** 时间格式配置 */
12
+ timeFormat?: TimeFormatConfig;
13
+ /** 日期格式配置(跨天时用于起止日期,含 showRelativeDay) */
14
+ dateFormat?: DateFormatConfig;
15
+ /** 星期格式配置(跨天时用于「Sat, 22 Jan」) */
16
+ weekdayFormat?: WeekdayFormatConfig;
17
+ /** 跨天时是否展示星期 */
18
+ showWeekdayInCrossDay?: boolean;
19
+ /** 参考日期,用于相对日判定,默认 dayjs() */
20
+ referenceDate?: Dayjs;
21
+ /** 文本样式 */
22
+ style?: TextStyleConfig;
23
+ /** 开始时间文本样式,会覆盖 style 中的同名字段 */
24
+ startStyle?: TextStyleConfig;
25
+ /** 结束时间文本样式,会覆盖 style 中的同名字段 */
26
+ endStyle?: TextStyleConfig;
27
+ /** 自定义类名 */
28
+ className?: string;
29
+ }
30
+ /**
31
+ * 时间区间展示块
32
+ * - 同一天:HH:mm-HH:mm
33
+ * - 跨天:起止完整日期时间;若某端为相对日(今天/昨天/明天)则只显示「时间 相对日」,不显示星期+日期
34
+ */
35
+ export declare const TimeRangeBlock: React.FC<TimeRangeBlockProps>;
36
+ export default TimeRangeBlock;
@@ -0,0 +1,145 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { Dayjs } from 'dayjs';
3
+ import type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, ContainerStyleConfig, TextStyleConfig, TextAlign } from '../pisellDateTimeDisplay/types';
4
+ export type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, ContainerStyleConfig, TextStyleConfig, TextAlign, };
5
+ /**
6
+ * 字段类型(时间区间、日期、星期、持续时长)
7
+ * - time: 时间区间块(HH:mm-HH:mm 或跨天起止)
8
+ * - date: 日期块
9
+ * - weekday: 星期块
10
+ * - duration: 持续时长块
11
+ */
12
+ export declare type TimeRangeFieldType = 'time' | 'date' | 'weekday' | 'duration';
13
+ /**
14
+ * 持续时长格式配置
15
+ */
16
+ export interface DurationFormatConfig {
17
+ /**
18
+ * 是否显示秒
19
+ * @default false
20
+ * @example true -> "2h30m23s" | false -> "2h30m"
21
+ */
22
+ showSeconds?: boolean;
23
+ }
24
+ /**
25
+ * 字段配置
26
+ */
27
+ export interface TimeRangeFieldConfig {
28
+ /**
29
+ * 是否显示时间区间块
30
+ * @default true
31
+ */
32
+ showTimeRange?: boolean;
33
+ /**
34
+ * 是否显示日期块
35
+ * @default true
36
+ */
37
+ showDate?: boolean;
38
+ /**
39
+ * 是否显示星期块
40
+ * @default true
41
+ */
42
+ showWeekday?: boolean;
43
+ /**
44
+ * 是否显示持续时长块
45
+ * @default true
46
+ */
47
+ showDuration?: boolean;
48
+ /**
49
+ * 字段顺序(四类块可任意排序;默认 时间 日期 星期 持续时长,可实现「持续时间在前」等)
50
+ * @default ['weekday', 'date', 'time', 'duration'] 换行顺序:先持续时间 → 结束时间(跨天)→ 开始/结束时间与日期 → 星期
51
+ */
52
+ fieldOrder?: TimeRangeFieldType[];
53
+ }
54
+ /**
55
+ * startAt / endAt 的 dayjs 兼容值
56
+ */
57
+ export declare type DayjsLike = Dayjs | string | number;
58
+ /**
59
+ * PisellTimeRangeDisplay 组件 Props
60
+ */
61
+ export interface PisellTimeRangeDisplayProps {
62
+ /**
63
+ * 开始时间(dayjs 兼容值)
64
+ */
65
+ startAt: DayjsLike;
66
+ /**
67
+ * 结束时间(dayjs 兼容值)
68
+ */
69
+ endAt: DayjsLike;
70
+ /**
71
+ * 文本对齐方式(单行/多行均生效)
72
+ * @default 'center'
73
+ */
74
+ textAlign?: TextAlign;
75
+ /**
76
+ * 字段显示与排序配置
77
+ */
78
+ fields?: TimeRangeFieldConfig;
79
+ /**
80
+ * 同一天时是否显示具体日期
81
+ * @default true
82
+ */
83
+ showDateForSameDay?: boolean;
84
+ /**
85
+ * 时间格式配置(复用 PisellDateTimeDisplay)
86
+ */
87
+ timeFormat?: TimeFormatConfig;
88
+ /**
89
+ * 日期格式配置(复用 PisellDateTimeDisplay)
90
+ */
91
+ dateFormat?: DateFormatConfig;
92
+ /**
93
+ * 星期格式配置(复用 PisellDateTimeDisplay)
94
+ */
95
+ weekdayFormat?: WeekdayFormatConfig;
96
+ /**
97
+ * 持续时长格式配置
98
+ */
99
+ durationFormat?: DurationFormatConfig;
100
+ /**
101
+ * 容器样式
102
+ */
103
+ containerStyle?: ContainerStyleConfig;
104
+ /**
105
+ * 时间区间文本样式
106
+ */
107
+ timeStyle?: TextStyleConfig;
108
+ /**
109
+ * 开始时间文本样式,会覆盖 timeStyle 中的同名字段
110
+ */
111
+ startTimeStyle?: TextStyleConfig;
112
+ /**
113
+ * 结束时间文本样式,会覆盖 timeStyle 中的同名字段
114
+ */
115
+ endTimeStyle?: TextStyleConfig;
116
+ /**
117
+ * 日期文本样式
118
+ */
119
+ dateStyle?: TextStyleConfig;
120
+ /**
121
+ * 星期文本样式
122
+ */
123
+ weekdayStyle?: TextStyleConfig;
124
+ /**
125
+ * 持续时长文本样式
126
+ */
127
+ durationStyle?: TextStyleConfig;
128
+ /**
129
+ * dayjs locale(语言代码)
130
+ * @default 优先使用全局配置,其次浏览器语言
131
+ */
132
+ locale?: string;
133
+ /**
134
+ * 自定义类名
135
+ */
136
+ className?: string;
137
+ /**
138
+ * 自定义样式
139
+ */
140
+ style?: CSSProperties;
141
+ /**
142
+ * 点击回调
143
+ */
144
+ onClick?: () => void;
145
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
2
3
  import { PisellContextType } from "../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
3
  export default MultiDay;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Note: (props: any) => JSX.Element | null;
4
3
  export default Note;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DiscountReason: (props: any) => JSX.Element;
3
2
  export default DiscountReason;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Holders: (props: any) => JSX.Element | null;
4
3
  export default Holders;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  isShowImage?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: (props: any) => JSX.Element | null;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  hideDivider?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface SpecsProps {
4
3
  /** 数据源 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import 'dayjs/locale/zh-cn';
3
2
  import 'dayjs/locale/en';
4
3
  import 'dayjs/locale/zh-tw';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type WeightUnit = 'KILOGRAMS' | 'GRAMS' | 'POUNDS' | 'OUNCES';
4
3
  declare type WeighingMode = 'auto' | 'manual';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Action: ({ item, onAction }: any) => JSX.Element;
3
4
  export default Action;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
4
3
  export default DeleteButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Note: (props: any) => JSX.Element | null;
4
3
  export default Note;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
4
3
  export default Packages;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface ResourceItem {
4
3
  id: string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
3
  export default Time;
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.line-item.resource': string;
4
+ 'pisell2.line-item.time': string;
5
+ 'pisell2.line-item.add-time-products': string;
6
+ 'pisell2.line-item.show-all': string;
7
+ 'pisell2.line-item.collapse': string;
8
+ };
9
+ 'zh-CN': {
10
+ 'pisell2.line-item.resource': string;
11
+ 'pisell2.line-item.time': string;
12
+ 'pisell2.line-item.add-time-products': string;
13
+ 'pisell2.line-item.show-all': string;
14
+ 'pisell2.line-item.collapse': string;
15
+ };
16
+ 'zh-HK': {
17
+ 'pisell2.line-item.resource': string;
18
+ 'pisell2.line-item.time': string;
19
+ 'pisell2.line-item.add-time-products': string;
20
+ 'pisell2.line-item.show-all': string;
21
+ 'pisell2.line-item.collapse': string;
22
+ };
23
+ ja: {
24
+ 'pisell2.line-item.resource': string;
25
+ 'pisell2.line-item.time': string;
26
+ 'pisell2.line-item.add-time-products': string;
27
+ 'pisell2.line-item.show-all': string;
28
+ 'pisell2.line-item.collapse': string;
29
+ };
30
+ pt: {
31
+ 'pisell2.line-item.resource': string;
32
+ 'pisell2.line-item.time': string;
33
+ 'pisell2.line-item.add-time-products': string;
34
+ 'pisell2.line-item.show-all': string;
35
+ 'pisell2.line-item.collapse': string;
36
+ };
37
+ };
38
+ export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const QRCode: (props: any) => JSX.Element;
3
2
  export default QRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ExportFile: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare const ExportTable: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ImportLog: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare type ImportTableProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../types';
3
2
  import './index.less';
4
3
  declare type ExportImportProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, ModeType } from "../../../types";
3
2
  import "./index.less";
4
3
  declare type GallerySettingProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewType, ModeType } from "../../../types";
3
2
  declare type ViewModeProps = {
4
3
  view: GridViewType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterType } from "../../filter/types";
3
2
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from 'antd';
3
2
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
4
3
  export default BasicTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
3
2
  declare type CoverProps = {
4
3
  cover?: GallerySettingType["cover"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type RenderFieldsProps = {
4
3
  fields: string[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: string;
201
+ default_value: boolean;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: boolean;
206
+ default_value: string;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
4
3
  export default SortRow;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filters" | "filter_setting")[];
158
+ }) => ("filters" | "order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -54,6 +54,7 @@ declare const _default: {
54
54
  'pisell-lookup-button-text': string;
55
55
  'pisell-lookup-confirm-button-text': string;
56
56
  'pisell-lookup-clear': string;
57
+ 'pisell-lookup-cancel': string;
57
58
  'pisell-lookup-close': string;
58
59
  'pisell-lookup-search-history': string;
59
60
  'pisell-lookup-clear-history': string;
@@ -79,6 +79,7 @@ var en_US_default = {
79
79
  "pisell-lookup-button-text": "Search",
80
80
  "pisell-lookup-confirm-button-text": "Lookup",
81
81
  "pisell-lookup-clear": "Clear",
82
+ "pisell-lookup-cancel": "Cancel",
82
83
  "pisell-lookup-close": "Close",
83
84
  "pisell-lookup-search-history": "Search History",
84
85
  "pisell-lookup-clear-history": "Clear All",
@@ -318,6 +318,7 @@ declare const _default: {
318
318
  'pisell-lookup-button-text': string;
319
319
  'pisell-lookup-confirm-button-text': string;
320
320
  'pisell-lookup-clear': string;
321
+ 'pisell-lookup-cancel': string;
321
322
  'pisell-lookup-close': string;
322
323
  'pisell-lookup-search-history': string;
323
324
  'pisell-lookup-clear-history': string;
package/lib/locales/ja.js CHANGED
@@ -376,6 +376,7 @@ var ja_default = {
376
376
  "pisell-lookup-button-text": "検索",
377
377
  "pisell-lookup-confirm-button-text": "検索",
378
378
  "pisell-lookup-clear": "クリア",
379
+ "pisell-lookup-cancel": "キャンセル",
379
380
  "pisell-lookup-close": "閉じる",
380
381
  "pisell-lookup-search-history": "検索履歴",
381
382
  "pisell-lookup-clear-history": "すべてクリア",
@@ -318,6 +318,7 @@ declare const _default: {
318
318
  'pisell-lookup-button-text': string;
319
319
  'pisell-lookup-confirm-button-text': string;
320
320
  'pisell-lookup-clear': string;
321
+ 'pisell-lookup-cancel': string;
321
322
  'pisell-lookup-close': string;
322
323
  'pisell-lookup-search-history': string;
323
324
  'pisell-lookup-clear-history': string;
package/lib/locales/pt.js CHANGED
@@ -376,6 +376,7 @@ var pt_default = {
376
376
  "pisell-lookup-button-text": "Pesquisar",
377
377
  "pisell-lookup-confirm-button-text": "Pesquisar",
378
378
  "pisell-lookup-clear": "Limpar",
379
+ "pisell-lookup-cancel": "Cancelar",
379
380
  "pisell-lookup-close": "Fechar",
380
381
  "pisell-lookup-search-history": "Histórico de pesquisa",
381
382
  "pisell-lookup-clear-history": "Limpar tudo",
@@ -54,6 +54,7 @@ declare const _default: {
54
54
  'pisell-lookup-button-text': string;
55
55
  'pisell-lookup-confirm-button-text': string;
56
56
  'pisell-lookup-clear': string;
57
+ 'pisell-lookup-cancel': string;
57
58
  'pisell-lookup-close': string;
58
59
  'pisell-lookup-search-history': string;
59
60
  'pisell-lookup-clear-history': string;
@@ -79,7 +79,8 @@ var zh_CN_default = {
79
79
  "pisell-lookup-button-text": "搜索",
80
80
  "pisell-lookup-confirm-button-text": "Lookup",
81
81
  "pisell-lookup-clear": "清空",
82
- "pisell-lookup-close": "Close",
82
+ "pisell-lookup-cancel": "取消",
83
+ "pisell-lookup-close": "关闭",
83
84
  "pisell-lookup-search-history": "搜索历史",
84
85
  "pisell-lookup-clear-history": "清空",
85
86
  "pisell-lookup-suggestions": "联想词",