@pisell/materials 6.12.69 → 6.12.71

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 (130) 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 +3 -3
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +25 -25
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +21 -21
  9. package/es/components/PisellCards/index.d.ts +0 -1
  10. package/es/components/PisellFields/index.d.ts +0 -1
  11. package/es/components/PisellLayouts/index.d.ts +0 -1
  12. package/es/components/PisellMetrics/index.d.ts +0 -1
  13. package/es/components/appVersionControl/types.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  16. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  17. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  18. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +0 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  22. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  23. package/es/components/drag-sort-tree/types.d.ts +0 -1
  24. package/es/components/filter/components/FilterButton/types.d.ts +0 -1
  25. package/es/components/input/index.d.ts +0 -1
  26. package/es/components/list/index.d.ts +0 -1
  27. package/es/components/pisell-config-provider/context.d.ts +0 -1
  28. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -1
  29. package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +0 -1
  30. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -1
  31. package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -1
  32. package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  33. package/es/components/pisellInput/index.d.ts +0 -1
  34. package/es/components/pisellMenu/types.d.ts +0 -1
  35. package/es/components/pisellQuickFilter/type.d.ts +0 -1
  36. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -1
  37. package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -1
  38. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -1
  39. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -1
  40. package/es/components/pisellWalletPassCard/index.d.ts +0 -3
  41. package/es/components/pisellWalletPassCard/index.js +5 -15
  42. package/es/components/productCard/lineItem/BookingLineItem.js +3 -2
  43. package/es/components/section-footers/index.d.ts +0 -1
  44. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
  45. package/es/pisell-materials.tw.css +1 -1
  46. package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +0 -1
  47. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
  48. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
  49. package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +0 -1
  50. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -1
  51. package/lib/components/PisellCards/index.d.ts +0 -1
  52. package/lib/components/PisellFields/index.d.ts +0 -1
  53. package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -1
  54. package/lib/components/PisellLayouts/index.d.ts +0 -1
  55. package/lib/components/PisellMetrics/index.d.ts +0 -1
  56. package/lib/components/appVersionControl/index.d.ts +0 -1
  57. package/lib/components/appVersionControl/types.d.ts +0 -1
  58. package/lib/components/auto-complete-number/index.d.ts +0 -1
  59. package/lib/components/badge/index.d.ts +0 -1
  60. package/lib/components/batch-editor/index.d.ts +0 -1
  61. package/lib/components/calendar/index.d.ts +0 -1
  62. package/lib/components/cardPro/index.d.ts +0 -1
  63. package/lib/components/checkbox/index.d.ts +0 -1
  64. package/lib/components/classicLayout/index.d.ts +0 -1
  65. package/lib/components/config-provider/index.d.ts +0 -1
  66. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  67. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  68. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  69. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  70. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  71. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  72. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +0 -1
  73. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  74. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  75. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  76. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  77. package/lib/components/date-picker/index.d.ts +0 -1
  78. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  79. package/lib/components/drag-sort-tree/types.d.ts +0 -1
  80. package/lib/components/dropdown/index.d.ts +0 -1
  81. package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
  82. package/lib/components/filter/index.d.ts +0 -1
  83. package/lib/components/input/index.d.ts +0 -1
  84. package/lib/components/list/index.d.ts +0 -1
  85. package/lib/components/lowCodePage/index.d.ts +0 -1
  86. package/lib/components/page/index.d.ts +0 -1
  87. package/lib/components/pisell-config-provider/context.d.ts +0 -1
  88. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  89. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  90. package/lib/components/pisellCard/index.d.ts +0 -1
  91. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  92. package/lib/components/pisellFilter/index.d.ts +0 -1
  93. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -1
  94. package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +0 -1
  95. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -1
  96. package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -1
  97. package/lib/components/pisellGridPro/GridView/index.d.ts +0 -1
  98. package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  99. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  100. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  101. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  102. package/lib/components/pisellInput/index.d.ts +0 -1
  103. package/lib/components/pisellLoading/index.d.ts +0 -1
  104. package/lib/components/pisellMenu/types.d.ts +0 -1
  105. package/lib/components/pisellQuickFilter/type.d.ts +0 -1
  106. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -1
  107. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -1
  108. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -1
  109. package/lib/components/pisellSort/index.d.ts +0 -1
  110. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -1
  111. package/lib/components/pisellTooltip/index.d.ts +0 -1
  112. package/lib/components/pisellUpload/index.d.ts +0 -1
  113. package/lib/components/pisellWalletPassCard/index.d.ts +0 -3
  114. package/lib/components/pisellWalletPassCard/index.js +5 -15
  115. package/lib/components/productCard/lineItem/BookingLineItem.js +3 -2
  116. package/lib/components/qrcode/index.d.ts +0 -1
  117. package/lib/components/radio/index.d.ts +0 -1
  118. package/lib/components/section-footers/index.d.ts +0 -1
  119. package/lib/components/segmented/index.d.ts +0 -1
  120. package/lib/components/select-time/index.d.ts +0 -1
  121. package/lib/components/skeleton/index.d.ts +0 -1
  122. package/lib/components/slider/index.d.ts +0 -1
  123. package/lib/components/time-picker/index.d.ts +0 -1
  124. package/lib/components/upload/index.d.ts +0 -1
  125. package/lib/components/versionSelect/index.d.ts +0 -1
  126. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
  127. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
  128. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  129. package/lib/pisell-materials.tw.css +1 -1
  130. package/package.json +4 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/badge/index.d.ts
3
2
  declare const Badge: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/batch-editor/index.d.ts
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/calendar/index.d.ts
3
2
  declare const Calendar: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/cardPro/index.d.ts
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/checkbox/index.d.ts
3
2
  declare const Checkbox: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/classicLayout/index.d.ts
3
2
  declare const ClassicLayout: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from "antd/es/config-provider";
3
2
  //#region src/components/config-provider/index.d.ts
4
3
  interface ConfigProviderProps$1 extends ConfigProviderProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ParsedProps } from "../utils.js";
3
2
 
4
3
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
3
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocalSettingsType } from "../../table/types.js";
3
2
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
4
3
  import { ColumnType } from "antd/es/table";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from "../provider/dataSource/DataSourceContext.js";
3
2
 
4
3
  //#region src/components/dataSourceComponents/dataSourceWrapper/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxGroupProps } from "./type.js";
3
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { RadioGroupProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { RecordListWrapperProps } from "./type.js";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import * as _$antd from "antd";
4
3
  import * as _$antd_es_select0 from "antd/es/select";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { TabsProps } from "./type.js";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ModeType } from "../../dataSourceForm/type.js";
3
2
 
4
3
  //#region src/components/dataSourceComponents/fields/Translation/type.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionsItem } from "../../dataSourceForm/serve.js";
3
2
  import { Result } from "ahooks/es/useRequest/src/types";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/date-picker/index.d.ts
3
2
  declare const DatePicker: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SortType } from "./types.js";
3
2
  //#region src/components/drag-sort-tree/index.d.ts
4
3
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/drag-sort-tree/types.d.ts
3
2
  type IdType = string | number;
4
3
  type ValueProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/dropdown/index.d.ts
3
2
  declare const Dropdown: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../../types.js";
3
2
 
4
3
  //#region src/components/filter/components/FilterButton/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types.js";
3
2
 
4
3
  //#region src/components/filter/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
  import { InputProps, InputRef } from "antd";
4
3
  import * as _$antd_es_input0 from "antd/es/input";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$antd_es_list_Item0 from "antd/es/list/Item";
3
2
  //#region src/components/list/index.d.ts
4
3
  declare const List: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/lowCodePage/index.d.ts
3
2
  type LowCodePageProps = {
4
3
  id: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from "../config-provider/index.js";
3
2
 
4
3
  //#region src/components/page/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisell-config-provider/context.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from "antd/es/input-number";
3
2
 
4
3
  //#region src/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellAdjustPriceProps } from "./type.js";
3
2
  //#region src/components/pisellAdjustPrice/index.d.ts
4
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from "antd";
3
2
  //#region src/components/pisellCard/index.d.ts
4
3
  interface PisellCardProps extends CardProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellDatePicker/index.d.ts
3
2
  declare const PisellDatePicker: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellFilterProps } from "./type.js";
3
2
 
4
3
  //#region src/components/pisellFilter/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FloorMapDataSources, FloorMapMergedItem } from "../types.js";
3
2
 
4
3
  //#region src/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FloorMapBuiltinShapeRenderProps } from "../utils/floorMapBuiltinShapes.js";
3
2
 
4
3
  //#region src/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts
3
2
  interface FloorMapImageElementProps {
4
3
  imageUrl?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts
3
2
  interface FloorMapSelectionZoneElementProps {
4
3
  /** 选区名称;为空时展示「未命名选区」占位 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from "./type.js";
3
2
  //#region src/components/pisellGridPro/GridView/index.d.ts
4
3
  declare const GridView: (props: GridViewProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellGridPro/ToolBar/type.d.ts
3
2
  interface ToolBarProps {
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellContextType } from "../../../pisell-config-provider/context.js";
3
2
  import { InputProps } from "antd";
4
3
  //#region src/components/pisellInput/components/BankCard/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellContextType } from "../../../pisell-config-provider/context.js";
3
2
  import { ButtonProps, InputProps } from "antd";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellContextType } from "../../../pisell-config-provider/context.js";
3
2
  import { InputProps } from "antd";
4
3
  //#region src/components/pisellInput/components/SecurityCode/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellContextType } from "../pisell-config-provider/context.js";
3
2
  import { BankCardProps } from "./components/BankCard/index.js";
4
3
  import { SecurityCodeProps } from "./components/SecurityCode/index.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpinProps } from "antd";
3
2
  //#region src/components/pisellLoading/index.d.ts
4
3
  type MaskType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
 
4
3
  //#region src/components/pisellMenu/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../filter/types.js";
3
2
  import { FormInstance } from "antd";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RecordBoardCalendarProps } from "../../types.js";
3
2
 
4
3
  //#region src/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellReservationScheduleProps } from "./types.js";
3
2
  //#region src/components/pisellReservationSchedule/PisellReservationSchedule.d.ts
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellReservationScheduleBandProps } from "./types.js";
3
2
  //#region src/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellSortProps } from "./type.js";
3
2
 
4
3
  //#region src/components/pisellSort/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellTimeNavigatorProps } from "./types.js";
3
2
  //#region src/components/pisellTimeNavigator/PisellTimeNavigator.d.ts
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellContextType } from "../pisell-config-provider/context.js";
3
2
  import { TooltipPropsWithTitle } from "antd/es/tooltip";
4
3
  //#region src/components/pisellTooltip/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadProps } from "antd";
3
2
  //#region src/components/pisellUpload/index.d.ts
4
3
  interface PisellUploadProps extends UploadProps {
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { WalletPassValidity } from "@pisell/utils";
3
2
  //#region src/components/pisellWalletPassCard/index.d.ts
4
3
  interface FormatOption {
5
4
  /** 原始 DOM 元素 */
@@ -59,8 +58,6 @@ interface PisellWalletPassCardProps {
59
58
  validDateBySchedule?: boolean;
60
59
  /** 日程列表 */
61
60
  scheduleList?: any[];
62
- /** 卡自身的原始有效日期,与使用日程共同决定展示范围 */
63
- walletValidity?: WalletPassValidity;
64
61
  /** 是否展示右上角详情按钮 */
65
62
  showDetail?: boolean;
66
63
  /** 是否展示qrCode */
@@ -43,7 +43,7 @@ const PisellWalletPassCard = (props) => {
43
43
  if (pressTimer) clearTimeout(pressTimer);
44
44
  };
45
45
  }, [pressTimer]);
46
- const { id, type, code, qrCode, balance, formattedBalance, disabledReason, name, storeName, redeem, validDate, disabled, active = false, cover, balanceTitle, redeemTitle, showCover = true, showDetail = true, showBalance = true, showRedeem = true, showName = true, showCode = true, showStoreName = true, showValidDate = true, showQrCode = true, showBalanceSymbol = true, showDisabledReason = true, showDiscount = false, discount, showActions, actions, beforeEdit, onBeforeEditAmount, onConfirmEdit, onConfirmEditAmount, onDetail, useExternalDetail = false, originData, style = {}, mode = "multiple", showActiveIcon, enableEditAmount, showStatus, cardStatus, nameTitleStyle, formatBalance, formatBalanceTitle, formatRedeem, formatRedeemTitle, maxRedeem, showHolderName = true, holder, onSetHolder, validDateBySchedule, scheduleList, walletValidity } = props;
46
+ const { id, type, code, qrCode, balance, formattedBalance, disabledReason, name, storeName, redeem, validDate, disabled, active = false, cover, balanceTitle, redeemTitle, showCover = true, showDetail = true, showBalance = true, showRedeem = true, showName = true, showCode = true, showStoreName = true, showValidDate = true, showQrCode = true, showBalanceSymbol = true, showDisabledReason = true, showDiscount = false, discount, showActions, actions, beforeEdit, onBeforeEditAmount, onConfirmEdit, onConfirmEditAmount, onDetail, useExternalDetail = false, originData, style = {}, mode = "multiple", showActiveIcon, enableEditAmount, showStatus, cardStatus, nameTitleStyle, formatBalance, formatBalanceTitle, formatRedeem, formatRedeemTitle, maxRedeem, showHolderName = true, holder, onSetHolder, validDateBySchedule, scheduleList } = props;
47
47
  (0, react.useEffect)(() => {
48
48
  document.body.id = "body";
49
49
  }, []);
@@ -136,22 +136,12 @@ const PisellWalletPassCard = (props) => {
136
136
  };
137
137
  }();
138
138
  const formatValidDate = (0, react.useMemo)(() => {
139
- if (validDateBySchedule && scheduleList && (scheduleList === null || scheduleList === void 0 ? void 0 : scheduleList.length) > 0) {
140
- var _walletValidity$start, _ref2, _walletValidity$expir, _walletValidity$expir2;
141
- return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, require_index.getText("pisell-wallet-pass-card-valid"), " ", (0, _pisell_utils.getScheduleSummary)(scheduleList, config === null || config === void 0 ? void 0 : config.locale, {
142
- start_date: (_walletValidity$start = walletValidity === null || walletValidity === void 0 ? void 0 : walletValidity.start_date) !== null && _walletValidity$start !== void 0 ? _walletValidity$start : originData === null || originData === void 0 ? void 0 : originData.start_date,
143
- expire_date: (_ref2 = (_walletValidity$expir = walletValidity === null || walletValidity === void 0 ? void 0 : walletValidity.expire_date) !== null && _walletValidity$expir !== void 0 ? _walletValidity$expir : originData === null || originData === void 0 ? void 0 : originData.expire_date) !== null && _ref2 !== void 0 ? _ref2 : validDate,
144
- expire_time: (_walletValidity$expir2 = walletValidity === null || walletValidity === void 0 ? void 0 : walletValidity.expire_time) !== null && _walletValidity$expir2 !== void 0 ? _walletValidity$expir2 : originData === null || originData === void 0 ? void 0 : originData.expire_time
145
- }) || validDate);
146
- }
139
+ if (validDateBySchedule && scheduleList && (scheduleList === null || scheduleList === void 0 ? void 0 : scheduleList.length) > 0) return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, require_index.getText("pisell-wallet-pass-card-valid"), " ", (0, _pisell_utils.getScheduleSummary)(scheduleList, config === null || config === void 0 ? void 0 : config.locale) || validDate);
147
140
  return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, require_index.getText("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : require_index.getText("pisell-wallet-pass-card-expireDate"));
148
141
  }, [
149
142
  validDateBySchedule,
150
143
  scheduleList,
151
- validDate,
152
- walletValidity,
153
- originData,
154
- config === null || config === void 0 ? void 0 : config.locale
144
+ validDate
155
145
  ]);
156
146
  const _onConfirmEdit = () => {
157
147
  form.validateFields().then((values) => {
@@ -252,7 +242,7 @@ const PisellWalletPassCard = (props) => {
252
242
  return /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-card-name-info-wrap") }, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-card-name-wrap" }, showName && name), _showHolderName && /* @__PURE__ */ react.default.createElement("div", { className: "pisell-card-holder-name" }, holderName), shouldShowStoreName && /* @__PURE__ */ react.default.createElement("div", { className: "pisell-card-store-name" }, storeName));
253
243
  };
254
244
  const handleEditAmount = function() {
255
- var _ref3 = require_asyncToGenerator._asyncToGenerator(function* (e) {
245
+ var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (e) {
256
246
  if (active && enableEditAmount) e.stopPropagation();
257
247
  if (!active) return;
258
248
  if (enableEditAmount && !disabled) {
@@ -273,7 +263,7 @@ const PisellWalletPassCard = (props) => {
273
263
  }
274
264
  });
275
265
  return function handleEditAmount(_x) {
276
- return _ref3.apply(this, arguments);
266
+ return _ref2.apply(this, arguments);
277
267
  };
278
268
  }();
279
269
  const createOriginalBalanceTitleDom = () => /* @__PURE__ */ react.default.createElement("div", { className: "pisell-card-amount-item-label" }, formatBalanceTitle ? formatBalanceTitle(balanceTitle, {
@@ -115,8 +115,9 @@ const BookingLineItem = (props) => {
115
115
  e.stopPropagation();
116
116
  } }), /* @__PURE__ */ react.default.createElement("span", { className: `${PREFIX}__status-label` }, currentStatus.label), canChangeStatus ? /* @__PURE__ */ react.default.createElement(_ant_design_icons.DownOutlined, null) : null);
117
117
  };
118
- const renderPromotion = (dataSource === null || dataSource === void 0 || (_dataSource$promotion = dataSource.promotions) === null || _dataSource$promotion === void 0 ? void 0 : _dataSource$promotion.length) ? /* @__PURE__ */ react.default.createElement(require_index$7.default, {
119
- promotions: dataSource === null || dataSource === void 0 ? void 0 : dataSource.promotions,
118
+ const promotionItems = (dataSource === null || dataSource === void 0 || (_dataSource$promotion = dataSource.promotions) === null || _dataSource$promotion === void 0 ? void 0 : _dataSource$promotion.length) ? dataSource.promotions : relatedProductDataSource === null || relatedProductDataSource === void 0 ? void 0 : relatedProductDataSource.promotions;
119
+ const renderPromotion = (promotionItems === null || promotionItems === void 0 ? void 0 : promotionItems.length) ? /* @__PURE__ */ react.default.createElement(require_index$7.default, {
120
+ promotions: promotionItems,
120
121
  onClick: (item) => onPromotion === null || onPromotion === void 0 ? void 0 : onPromotion(item)
121
122
  }) : null;
122
123
  const renderProductCard = (productDataSource, source, options = {}) => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/qrcode/index.d.ts
3
2
  declare const QRCode: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/radio/index.d.ts
3
2
  declare const Radio: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/section-footers/index.d.ts
3
2
  interface SectionFooterProps {
4
3
  left?: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SegmentedProps } from "antd";
3
2
  //#region src/components/segmented/index.d.ts
4
3
  declare const Segmented: (props: SegmentedProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time/index.js";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  //#region src/components/select-time/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/skeleton/index.d.ts
3
2
  declare const Skeleton: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/slider/index.d.ts
3
2
  declare const SliderOuter: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/time-picker/index.d.ts
3
2
  declare const TimePicker: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/upload/index.d.ts
3
2
  declare const Upload: (props: any) => JSX.Element;
4
3
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  //#region src/components/versionSelect/index.d.ts
4
3
  interface Version {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AmountProps, RightItemsStyleProps } from "./types.js";
3
2
  //#region src/components/virtual-keyboard/Amount/index.d.ts
4
3
  declare const Amount: (props: AmountProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseNumberKeyboardProps } from "../BaseNumberKeyboard/index.js";
3
2
 
4
3
  //#region src/components/virtual-keyboard/Amount/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NumberProps } from "./types.js";
3
2
  //#region src/components/virtual-keyboard/Number/index.d.ts
4
3
  declare const Number: (props: NumberProps) => JSX.Element;