@pisell/materials 6.2.37 → 6.2.39
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/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +14 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +14 -14
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/auto-complete-number/index.d.ts +0 -1
- package/es/components/badge/index.d.ts +0 -1
- package/es/components/batch-editor/fields/index.d.ts +0 -1
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/cardPro/index.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/classicLayout/index.d.ts +0 -1
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/config-provider/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +11 -4
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +10 -10
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +92 -6
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/date-picker/datePickerCpt.d.ts +0 -1
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/dropdown/index.d.ts +0 -1
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/filter/types.d.ts +1 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/lowCodePage/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/es/components/pisellAdjustPrice/index.d.ts +0 -1
- package/es/components/pisellCard/index.d.ts +0 -1
- package/es/components/pisellCardList/index.d.ts +1 -21
- package/es/components/pisellCardList/index.js +2 -24
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/es/components/pisellCheckboxGroup/index.js +17 -3
- package/es/components/pisellCheckboxGroup/index.less +1 -13
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellTooltip/index.d.ts +0 -1
- package/es/components/pisellUpload/index.d.ts +0 -1
- package/es/components/pisellWalletPassCard/index.d.ts +0 -44
- package/es/components/pisellWalletPassCard/index.js +66 -233
- package/es/components/pisellWalletPassCard/index.less +7 -37
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +2 -1
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +74 -6
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
- package/es/components/productCard/cartSkuCard/index.js +2 -11
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
- package/es/components/productCard/components/Divider/index.d.ts +0 -1
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/es/components/qrcode/index.d.ts +0 -1
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/segmented/index.d.ts +0 -1
- package/es/components/select-time/RightPanel/index.d.ts +0 -1
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/slider/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Summary/index.d.ts +0 -1
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -1
- package/es/components/table/Table/AddFieldModal/index.js +13 -13
- package/es/components/table/Table/AddFieldModal/index.less +11 -11
- package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/Table/utils.js +22 -1
- package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/es/components/table/hooks/useTableSetting.d.ts +3 -4
- package/es/components/table/hooks/useTableSetting.js +113 -5
- package/es/components/table/index.js +14 -3
- package/es/components/table/types.d.ts +17 -0
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/es/components/walletCard/Guest/index.d.ts +0 -1
- package/es/components/walletCard/Guide/index.d.ts +0 -1
- package/es/components/walletCard/Guide/index.js +12 -1
- package/es/index.d.ts +0 -1
- package/es/locales/en-US.d.ts +0 -3
- package/es/locales/en-US.js +2 -6
- package/es/locales/zh-CN.d.ts +0 -3
- package/es/locales/zh-CN.js +2 -6
- package/es/locales/zh-TW.d.ts +0 -3
- package/es/locales/zh-TW.js +2 -6
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/auto-complete-number/index.d.ts +0 -1
- package/lib/components/badge/index.d.ts +0 -1
- package/lib/components/batch-editor/fields/index.d.ts +0 -1
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/cardPro/index.d.ts +0 -1
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/classicLayout/index.d.ts +0 -1
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/config-provider/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +5 -2
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +10 -10
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +78 -7
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/dropdown/index.d.ts +0 -1
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/filter/types.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/lowCodePage/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
- package/lib/components/pisellCard/index.d.ts +0 -1
- package/lib/components/pisellCardList/index.d.ts +1 -21
- package/lib/components/pisellCardList/index.js +2 -24
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/lib/components/pisellCheckboxGroup/index.js +17 -2
- package/lib/components/pisellCheckboxGroup/index.less +1 -13
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellTooltip/index.d.ts +0 -1
- package/lib/components/pisellUpload/index.d.ts +0 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -44
- package/lib/components/pisellWalletPassCard/index.js +48 -187
- package/lib/components/pisellWalletPassCard/index.less +7 -37
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +2 -1
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +45 -11
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
- package/lib/components/productCard/cartSkuCard/index.js +2 -13
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
- package/lib/components/productCard/components/Divider/index.d.ts +0 -1
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/lib/components/qrcode/index.d.ts +0 -1
- package/lib/components/radio/index.d.ts +0 -1
- package/lib/components/segmented/index.d.ts +0 -1
- package/lib/components/select-time/RightPanel/index.d.ts +0 -1
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/slider/index.d.ts +0 -1
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Summary/index.d.ts +0 -1
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -1
- package/lib/components/table/Table/AddFieldModal/index.js +9 -9
- package/lib/components/table/Table/AddFieldModal/index.less +11 -11
- package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/Table/utils.js +18 -1
- package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/lib/components/table/hooks/useTableSetting.d.ts +3 -4
- package/lib/components/table/hooks/useTableSetting.js +114 -4
- package/lib/components/table/index.js +12 -1
- package/lib/components/table/types.d.ts +17 -0
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.d.ts +0 -1
- package/lib/components/walletCard/Guide/index.d.ts +0 -1
- package/lib/components/walletCard/Guide/index.js +11 -1
- package/lib/index.d.ts +0 -1
- package/lib/locales/en-US.d.ts +0 -3
- package/lib/locales/en-US.js +2 -6
- package/lib/locales/zh-CN.d.ts +0 -3
- package/lib/locales/zh-CN.js +2 -6
- package/lib/locales/zh-TW.d.ts +0 -3
- package/lib/locales/zh-TW.js +2 -6
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/data-source-table/meta.ts +253 -0
- package/lowcode/form-item-input.password/meta.ts +5 -0
- package/lowcode/pisell-card-list/meta.ts +1 -50
- package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +0 -7
- package/lowcode/table/meta.ts +104 -0
- package/package.json +10 -11
|
@@ -33,30 +33,21 @@ __export(pisellWalletPassCard_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(pisellWalletPassCard_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_ahooks = require("ahooks");
|
|
37
36
|
var import_classnames = __toESM(require("classnames"));
|
|
38
37
|
var import_icons = require("@ant-design/icons");
|
|
39
38
|
var import_antd = require("antd");
|
|
40
39
|
var import_dayjs = __toESM(require("dayjs"));
|
|
41
40
|
var import_iconfont = __toESM(require("../iconfont"));
|
|
42
41
|
var import__ = require("../../index");
|
|
43
|
-
var import_pisellTags = __toESM(require("../pisellTags"));
|
|
44
42
|
var import_Amount = __toESM(require("../pisellText/components/Amount"));
|
|
45
43
|
var import_index = require("./index.less");
|
|
46
44
|
var import_locales = require("../../locales");
|
|
47
45
|
var import_pisellQrcode = __toESM(require("./../pisellQrcode"));
|
|
48
|
-
var cardStatusMap = {
|
|
49
|
-
used: "warning",
|
|
50
|
-
expired: "error",
|
|
51
|
-
disabled: "gray"
|
|
52
|
-
};
|
|
53
46
|
var PisellWalletPassCard = (props) => {
|
|
54
47
|
const [isShowDetail, setIsShowDetail] = import_react.default.useState(false);
|
|
55
48
|
const [isShowEdit, setIsShowEdit] = import_react.default.useState(false);
|
|
56
49
|
const [form] = import_antd.Form.useForm();
|
|
57
50
|
const [form2] = import_antd.Form.useForm();
|
|
58
|
-
const [tempAmount, setTempAmount] = import_react.default.useState("");
|
|
59
|
-
const [isKeyboardOpen, setIsKeyboardOpen] = import_react.default.useState(false);
|
|
60
51
|
const [lastTap, setLastTap] = import_react.default.useState(0);
|
|
61
52
|
const [pressTimer, setPressTimer] = import_react.default.useState(
|
|
62
53
|
null
|
|
@@ -101,69 +92,27 @@ var PisellWalletPassCard = (props) => {
|
|
|
101
92
|
actions,
|
|
102
93
|
beforeEdit,
|
|
103
94
|
onConfirmEdit,
|
|
104
|
-
onConfirmEditAmount,
|
|
105
|
-
onDetail,
|
|
106
|
-
useExternalDetail = false,
|
|
107
95
|
originData,
|
|
108
|
-
style = {}
|
|
109
|
-
mode = "multiple",
|
|
110
|
-
showActiveIcon,
|
|
111
|
-
enableEditAmount,
|
|
112
|
-
showStatus,
|
|
113
|
-
cardStatus,
|
|
114
|
-
nameTitleStyle,
|
|
115
|
-
formatBalance,
|
|
116
|
-
formatBalanceTitle
|
|
96
|
+
style = {}
|
|
117
97
|
} = props;
|
|
118
98
|
(0, import_react.useEffect)(() => {
|
|
119
99
|
document.body.id = "body";
|
|
120
100
|
}, []);
|
|
121
|
-
const actionsWrapperRef = (0, import_react.useRef)(null);
|
|
122
|
-
const actionsWrapperSize = (0, import_ahooks.useSize)(actionsWrapperRef);
|
|
123
101
|
const isMini = (0, import_react.useMemo)(() => {
|
|
124
102
|
return "mini" === type;
|
|
125
103
|
}, [type]);
|
|
126
|
-
const
|
|
127
|
-
const actionsWidth = (actionsWrapperSize == null ? void 0 : actionsWrapperSize.width) || 0;
|
|
128
|
-
const baseStyle = nameTitleStyle || {};
|
|
129
|
-
if (actionsWidth > 0) {
|
|
130
|
-
return {
|
|
131
|
-
...baseStyle,
|
|
132
|
-
width: `calc(100% - ${actionsWidth + 8}px)`
|
|
133
|
-
// 添加8px的边距
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
...baseStyle,
|
|
138
|
-
width: isMini ? "calc(100% - 96px)" : "calc(100% - 80px)"
|
|
139
|
-
// 使用默认宽度
|
|
140
|
-
};
|
|
141
|
-
}, [nameTitleStyle, actionsWrapperSize == null ? void 0 : actionsWrapperSize.width, isMini]);
|
|
142
|
-
const handleDetail = () => {
|
|
104
|
+
const onDetail = () => {
|
|
143
105
|
var _a;
|
|
144
106
|
if (disabled || disabledReason || !((_a = actions == null ? void 0 : actions.detail) == null ? void 0 : _a.visible)) return;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
originData
|
|
155
|
-
});
|
|
156
|
-
} else {
|
|
157
|
-
form2.setFieldsValue({
|
|
158
|
-
name,
|
|
159
|
-
storeName,
|
|
160
|
-
balance,
|
|
161
|
-
redeem,
|
|
162
|
-
code,
|
|
163
|
-
validDate
|
|
164
|
-
});
|
|
165
|
-
setIsShowDetail(true);
|
|
166
|
-
}
|
|
107
|
+
form2.setFieldsValue({
|
|
108
|
+
name,
|
|
109
|
+
storeName,
|
|
110
|
+
balance,
|
|
111
|
+
redeem,
|
|
112
|
+
code,
|
|
113
|
+
validDate
|
|
114
|
+
});
|
|
115
|
+
setIsShowDetail(true);
|
|
167
116
|
};
|
|
168
117
|
const onEdit = async () => {
|
|
169
118
|
var _a, _b;
|
|
@@ -229,7 +178,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
229
178
|
const now = Date.now();
|
|
230
179
|
const DOUBLE_TAP_DELAY = 300;
|
|
231
180
|
if (now - lastTap < DOUBLE_TAP_DELAY) {
|
|
232
|
-
|
|
181
|
+
onDetail();
|
|
233
182
|
}
|
|
234
183
|
setLastTap(now);
|
|
235
184
|
};
|
|
@@ -253,12 +202,11 @@ var PisellWalletPassCard = (props) => {
|
|
|
253
202
|
e.stopPropagation();
|
|
254
203
|
};
|
|
255
204
|
const renderActions = () => {
|
|
256
|
-
var _a, _b, _c, _d;
|
|
257
205
|
if (disabled || disabledReason) return null;
|
|
258
|
-
if (
|
|
259
|
-
if ("collapsed" ===
|
|
206
|
+
if (!showActions || !actions) return null;
|
|
207
|
+
if ("collapsed" === actions.layout) {
|
|
260
208
|
const items = [];
|
|
261
|
-
if (
|
|
209
|
+
if (actions.detail && actions.detail.visible) {
|
|
262
210
|
items.push({
|
|
263
211
|
key: "detail",
|
|
264
212
|
label: /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -267,14 +215,14 @@ var PisellWalletPassCard = (props) => {
|
|
|
267
215
|
className: "pisell-card-actions-dropdown-detail",
|
|
268
216
|
onClick: (e) => {
|
|
269
217
|
stop(e);
|
|
270
|
-
|
|
218
|
+
onDetail();
|
|
271
219
|
}
|
|
272
220
|
},
|
|
273
221
|
/* @__PURE__ */ import_react.default.createElement("span", null, (0, import_locales.getText)("pisell-wallet-pass-card-detail"))
|
|
274
222
|
)
|
|
275
223
|
});
|
|
276
224
|
}
|
|
277
|
-
if (
|
|
225
|
+
if (actions.edit && actions.edit.visible) {
|
|
278
226
|
items.push({
|
|
279
227
|
key: "edit",
|
|
280
228
|
label: /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -301,22 +249,14 @@ var PisellWalletPassCard = (props) => {
|
|
|
301
249
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "actions-dropdown-trigger", onClick: stop }, /* @__PURE__ */ import_react.default.createElement(import_icons.MoreOutlined, { style: { fontSize: 24 } }))
|
|
302
250
|
);
|
|
303
251
|
}
|
|
304
|
-
if ("expanded" ===
|
|
305
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "actions-btn-wrapper"
|
|
306
|
-
import_pisellTags.default,
|
|
307
|
-
{
|
|
308
|
-
style: { borderRadius: "6px", padding: "2px 8px" },
|
|
309
|
-
type: "pill_color",
|
|
310
|
-
color: cardStatusMap[cardStatus]
|
|
311
|
-
},
|
|
312
|
-
(0, import_locales.getText)(`pisell-wallet-pass-card-status-${cardStatus}`)
|
|
313
|
-
)), (actions == null ? void 0 : actions.detail) && ((_c = actions == null ? void 0 : actions.detail) == null ? void 0 : _c.visible) && /* @__PURE__ */ import_react.default.createElement(
|
|
252
|
+
if ("expanded" === actions.layout) {
|
|
253
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "actions-btn-wrapper" }, actions.detail && actions.detail.visible && /* @__PURE__ */ import_react.default.createElement(
|
|
314
254
|
"div",
|
|
315
255
|
{
|
|
316
256
|
className: "pisell-card-actions-detail-btn",
|
|
317
257
|
onClick: (e) => {
|
|
318
258
|
stop(e);
|
|
319
|
-
|
|
259
|
+
onDetail();
|
|
320
260
|
}
|
|
321
261
|
},
|
|
322
262
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -328,7 +268,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
328
268
|
}
|
|
329
269
|
}
|
|
330
270
|
)
|
|
331
|
-
),
|
|
271
|
+
), actions.edit && actions.edit.visible && /* @__PURE__ */ import_react.default.createElement(
|
|
332
272
|
"div",
|
|
333
273
|
{
|
|
334
274
|
className: "pisell-card-actions-edit-btn",
|
|
@@ -350,57 +290,25 @@ var PisellWalletPassCard = (props) => {
|
|
|
350
290
|
}
|
|
351
291
|
};
|
|
352
292
|
const renderNameInfo = () => {
|
|
353
|
-
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-name-wrap"
|
|
354
|
-
};
|
|
355
|
-
const handleEditAmount = (e) => {
|
|
356
|
-
e.stopPropagation();
|
|
357
|
-
if (enableEditAmount && !disabled) {
|
|
358
|
-
setIsKeyboardOpen(true);
|
|
359
|
-
setTempAmount((redeem == null ? void 0 : redeem.toString()) || "");
|
|
360
|
-
}
|
|
293
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-name-wrap" }, showName && name), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-store-name" }, showStoreName && storeName));
|
|
361
294
|
};
|
|
362
|
-
const createOriginalBalanceTitleDom = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, formatBalanceTitle ? formatBalanceTitle(balanceTitle, {
|
|
363
|
-
originDom: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, balanceTitle || (0, import_locales.getText)("pisell-wallet-pass-card-balance")),
|
|
364
|
-
active,
|
|
365
|
-
data: props
|
|
366
|
-
}) : balanceTitle || (0, import_locales.getText)("pisell-wallet-pass-card-balance"), disabled || isMini ? ": " : "");
|
|
367
|
-
const createOriginalBalanceDom = () => /* @__PURE__ */ import_react.default.createElement(
|
|
368
|
-
import_Amount.default,
|
|
369
|
-
{
|
|
370
|
-
className: "pisell-card-amount-item-value",
|
|
371
|
-
useThousandsSeparator: true,
|
|
372
|
-
value: balance,
|
|
373
|
-
showCurrencySymbol: showBalanceSymbol
|
|
374
|
-
}
|
|
375
|
-
);
|
|
376
295
|
const renderBalanceInfo = () => {
|
|
377
|
-
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-wrap" }, showRedeem && !disabled && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-redeem" }, /* @__PURE__ */ import_react.default.createElement(
|
|
378
|
-
|
|
296
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-wrap" }, showRedeem && !disabled && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-redeem" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, redeemTitle || (0, import_locales.getText)("pisell-wallet-pass-card-redeem"), isMini ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(
|
|
297
|
+
import_Amount.default,
|
|
379
298
|
{
|
|
380
|
-
className: "pisell-card-amount-item-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
{
|
|
386
|
-
type: "pisell2-edit-05",
|
|
387
|
-
className: "pisell-card-amount-item-label-icon"
|
|
388
|
-
}
|
|
389
|
-
),
|
|
390
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-card-amount-item-label-text" }, redeemTitle || (0, import_locales.getText)("pisell-wallet-pass-card-redeem"), isMini ? ": " : "")
|
|
391
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
299
|
+
className: "pisell-card-amount-item-value",
|
|
300
|
+
useThousandsSeparator: true,
|
|
301
|
+
value: redeem
|
|
302
|
+
}
|
|
303
|
+
)), showBalance && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-balance" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, balanceTitle || (0, import_locales.getText)("pisell-wallet-pass-card-balance"), disabled || isMini ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(
|
|
392
304
|
import_Amount.default,
|
|
393
305
|
{
|
|
394
306
|
className: "pisell-card-amount-item-value",
|
|
395
307
|
useThousandsSeparator: true,
|
|
396
|
-
value:
|
|
397
|
-
|
|
308
|
+
value: balance,
|
|
309
|
+
showCurrencySymbol: showBalanceSymbol
|
|
398
310
|
}
|
|
399
|
-
)),
|
|
400
|
-
originDom: createOriginalBalanceDom(),
|
|
401
|
-
active,
|
|
402
|
-
data: props
|
|
403
|
-
}) : createOriginalBalanceDom()), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate")))));
|
|
311
|
+
)), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate")))));
|
|
404
312
|
};
|
|
405
313
|
const getInputItem = (name2) => {
|
|
406
314
|
if ("validDate" === name2) {
|
|
@@ -538,30 +446,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
538
446
|
)
|
|
539
447
|
);
|
|
540
448
|
};
|
|
541
|
-
|
|
542
|
-
if (!isMini || disabled) return null;
|
|
543
|
-
if (showActiveIcon && !active) {
|
|
544
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-checked-icon" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { checked: false }));
|
|
545
|
-
}
|
|
546
|
-
return active && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-checked-icon" }, mode === "multiple" ? /* @__PURE__ */ import_react.default.createElement(
|
|
547
|
-
import_icons.CheckCircleFilled,
|
|
548
|
-
{
|
|
549
|
-
style: { fontSize: 20, color: "var(--Primary-600, #7F56D9)" }
|
|
550
|
-
}
|
|
551
|
-
) : /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { checked: true }));
|
|
552
|
-
}, [showActiveIcon, isMini, active, disabled]);
|
|
553
|
-
const handleKeyboardClose = () => {
|
|
554
|
-
setIsKeyboardOpen(false);
|
|
555
|
-
setTempAmount("");
|
|
556
|
-
};
|
|
557
|
-
const handleKeyboardChange = (value) => {
|
|
558
|
-
setTempAmount(value.toString() || "");
|
|
559
|
-
};
|
|
560
|
-
const handleKeyboardEnter = () => {
|
|
561
|
-
setIsKeyboardOpen(false);
|
|
562
|
-
onConfirmEditAmount == null ? void 0 : onConfirmEditAmount(tempAmount);
|
|
563
|
-
};
|
|
564
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", null, renderDetailModal(), renderEditModal()), /* @__PURE__ */ import_react.default.createElement(
|
|
449
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { onClick: (e) => e.stopPropagation() }, renderDetailModal(), renderEditModal()), /* @__PURE__ */ import_react.default.createElement(
|
|
565
450
|
"div",
|
|
566
451
|
{
|
|
567
452
|
className: (0, import_classnames.default)("pisell-wallet-pass-card", {
|
|
@@ -576,51 +461,27 @@ var PisellWalletPassCard = (props) => {
|
|
|
576
461
|
} : style
|
|
577
462
|
},
|
|
578
463
|
renderActions(),
|
|
579
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
464
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
465
|
+
"div",
|
|
466
|
+
{ className: "pisell-wallet-pass-card-body" },
|
|
467
|
+
renderNameInfo(),
|
|
468
|
+
renderBalanceInfo(),
|
|
469
|
+
showQrCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-qr-code" }, /* @__PURE__ */ import_react.default.createElement(import_pisellQrcode.default, { value: qrCode, size: 60 })),
|
|
470
|
+
// mini卡片选中模式
|
|
471
|
+
isMini && active && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-checked-icon" }, /* @__PURE__ */ import_react.default.createElement(
|
|
472
|
+
import_icons.CheckCircleFilled,
|
|
473
|
+
{
|
|
474
|
+
style: { fontSize: 20, color: "var(--Primary-600, #7F56D9)" }
|
|
475
|
+
}
|
|
476
|
+
))
|
|
477
|
+
),
|
|
580
478
|
(disabled || disabledReason) && showDisabledReason && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-warn-message" }, /* @__PURE__ */ import_react.default.createElement(
|
|
581
479
|
import_iconfont.default,
|
|
582
480
|
{
|
|
583
481
|
className: "pisell-card-icon",
|
|
584
482
|
type: "pisell2-alert-circle"
|
|
585
483
|
}
|
|
586
|
-
), /* @__PURE__ */ import_react.default.createElement("span", null, disabledReason))
|
|
587
|
-
/* @__PURE__ */ import_react.default.createElement("div", { onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ import_react.default.createElement(
|
|
588
|
-
import__.PisellModal,
|
|
589
|
-
{
|
|
590
|
-
open: isKeyboardOpen,
|
|
591
|
-
onCancel: handleKeyboardClose,
|
|
592
|
-
title: null,
|
|
593
|
-
footer: null,
|
|
594
|
-
header: null,
|
|
595
|
-
closable: false,
|
|
596
|
-
mask: false,
|
|
597
|
-
maskClosable: true,
|
|
598
|
-
centered: true,
|
|
599
|
-
width: "auto",
|
|
600
|
-
wrapClassName: "keyboard-modal-wrapper",
|
|
601
|
-
bodyStyle: { padding: 0 },
|
|
602
|
-
styles: {
|
|
603
|
-
content: {
|
|
604
|
-
padding: 0,
|
|
605
|
-
boxShadow: "none",
|
|
606
|
-
background: "transparent"
|
|
607
|
-
},
|
|
608
|
-
body: { padding: 0 }
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
612
|
-
import__.PisellNumberKeyboard,
|
|
613
|
-
{
|
|
614
|
-
value: tempAmount,
|
|
615
|
-
defaultValue: redeem,
|
|
616
|
-
onChange: handleKeyboardChange,
|
|
617
|
-
onEnter: handleKeyboardEnter,
|
|
618
|
-
allowDecimal: true,
|
|
619
|
-
decimalPlaces: 2,
|
|
620
|
-
selectType: "dark"
|
|
621
|
-
}
|
|
622
|
-
)
|
|
623
|
-
))
|
|
484
|
+
), /* @__PURE__ */ import_react.default.createElement("span", null, disabledReason))
|
|
624
485
|
));
|
|
625
486
|
};
|
|
626
487
|
var pisellWalletPassCard_default = PisellWalletPassCard;
|
|
@@ -25,25 +25,15 @@
|
|
|
25
25
|
|
|
26
26
|
.actions-btn-wrapper {
|
|
27
27
|
position: absolute;
|
|
28
|
-
top:
|
|
29
|
-
right:
|
|
28
|
+
top: 16px;
|
|
29
|
+
right: 16px;
|
|
30
30
|
z-index: 2;
|
|
31
31
|
display: flex;
|
|
32
|
-
gap:
|
|
33
|
-
z-index: 3;
|
|
32
|
+
gap: 16px;
|
|
34
33
|
|
|
35
34
|
& > div {
|
|
36
35
|
cursor: pointer;
|
|
37
36
|
}
|
|
38
|
-
.pisell-card-status-icon {
|
|
39
|
-
padding: 12px 8px;
|
|
40
|
-
}
|
|
41
|
-
.pisell-card-actions-edit-btn {
|
|
42
|
-
padding: 12px 8px 20px;
|
|
43
|
-
}
|
|
44
|
-
.pisell-card-actions-detail-btn {
|
|
45
|
-
padding: 12px 8px 20px;
|
|
46
|
-
}
|
|
47
37
|
}
|
|
48
38
|
|
|
49
39
|
.pisell-wallet-pass-card-body {
|
|
@@ -57,13 +47,12 @@
|
|
|
57
47
|
display: flex;
|
|
58
48
|
flex-direction: column;
|
|
59
49
|
justify-content: space-between;
|
|
60
|
-
position: relative;
|
|
61
|
-
z-index: 2;
|
|
62
50
|
}
|
|
63
51
|
|
|
64
52
|
.pisell-card-name-wrap {
|
|
65
53
|
font-weight: 500;
|
|
66
54
|
line-height: 20px;
|
|
55
|
+
|
|
67
56
|
white-space: nowrap;
|
|
68
57
|
overflow: hidden;
|
|
69
58
|
text-overflow: ellipsis;
|
|
@@ -106,7 +95,7 @@
|
|
|
106
95
|
.pisell-card-amount-item-value {
|
|
107
96
|
font-size: 20px;
|
|
108
97
|
font-weight: 600;
|
|
109
|
-
line-height:
|
|
98
|
+
line-height: 30px;
|
|
110
99
|
overflow: hidden;
|
|
111
100
|
text-overflow: ellipsis;
|
|
112
101
|
}
|
|
@@ -199,10 +188,10 @@
|
|
|
199
188
|
.pisell-card-name-wrap {
|
|
200
189
|
font-weight: 600;
|
|
201
190
|
font-size: 16px;
|
|
191
|
+
max-width: calc(100% - 96px);
|
|
202
192
|
white-space: nowrap;
|
|
203
193
|
overflow: hidden;
|
|
204
194
|
text-overflow: ellipsis;
|
|
205
|
-
min-width: 12px;
|
|
206
195
|
}
|
|
207
196
|
|
|
208
197
|
.pisell-card-store-name {
|
|
@@ -219,26 +208,14 @@
|
|
|
219
208
|
visibility: hidden;
|
|
220
209
|
flex-direction: row;
|
|
221
210
|
align-items: center;
|
|
222
|
-
margin-bottom: 4px;
|
|
223
|
-
|
|
224
|
-
.pisell-card-amount-item-label-icon {
|
|
225
|
-
font-size: 20px;
|
|
226
|
-
margin-right: 8px;
|
|
227
|
-
}
|
|
228
211
|
|
|
229
212
|
.pisell-card-amount-item-label,
|
|
230
213
|
.pisell-card-amount-item-value {
|
|
231
214
|
color: var(--Primary-600, #7f56d9);
|
|
215
|
+
font-size: 20px;
|
|
232
216
|
font-style: normal;
|
|
233
217
|
font-weight: 600;
|
|
234
218
|
}
|
|
235
|
-
.pisell-card-amount-item-label {
|
|
236
|
-
font-size: 14px;
|
|
237
|
-
}
|
|
238
|
-
.pisell-card-amount-item-value {
|
|
239
|
-
font-size: 20px;
|
|
240
|
-
text-decoration: underline;
|
|
241
|
-
}
|
|
242
219
|
}
|
|
243
220
|
|
|
244
221
|
&.active {
|
|
@@ -264,13 +241,6 @@
|
|
|
264
241
|
position: absolute;
|
|
265
242
|
bottom: 16px;
|
|
266
243
|
right: 16px;
|
|
267
|
-
.pisell-lowcode-radio-wrapper {
|
|
268
|
-
margin: 0;
|
|
269
|
-
}
|
|
270
|
-
.pisell-lowcode-radio-inner {
|
|
271
|
-
width: 20px;
|
|
272
|
-
height: 20px;
|
|
273
|
-
}
|
|
274
244
|
}
|
|
275
245
|
}
|
|
276
246
|
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
3
4
|
declare type NativeProps<S extends string = never> = {
|
|
4
5
|
className?: string;
|
|
5
6
|
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
7
|
};
|
|
7
8
|
declare type PropagationEvent = 'click';
|
|
8
|
-
import './index.less';
|
|
9
9
|
declare type SideType = 'left' | 'right';
|
|
10
10
|
export declare type SwipeActionRef = {
|
|
11
11
|
close: () => void;
|
|
@@ -17,6 +17,7 @@ export declare type Action = {
|
|
|
17
17
|
text: ReactNode;
|
|
18
18
|
color?: ActionColor | string;
|
|
19
19
|
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
+
style?: React.CSSProperties;
|
|
20
21
|
};
|
|
21
22
|
export declare type SwipeActionProps = {
|
|
22
23
|
rightActions?: Action[];
|
|
@@ -110,17 +110,26 @@ var SwipeAction = (0, import_react.forwardRef)(
|
|
|
110
110
|
const rootRef = (0, import_react.useRef)(null);
|
|
111
111
|
const leftRef = (0, import_react.useRef)(null);
|
|
112
112
|
const rightRef = (0, import_react.useRef)(null);
|
|
113
|
+
const [containerHeight, setContainerHeight] = (0, import_react.useState)(0);
|
|
113
114
|
function getWidth(ref2) {
|
|
114
115
|
const element = ref2.current;
|
|
115
116
|
if (!element) return 0;
|
|
116
117
|
return element.offsetWidth;
|
|
117
118
|
}
|
|
119
|
+
function getHeight(ref2) {
|
|
120
|
+
const element = ref2.current;
|
|
121
|
+
if (!element) return 0;
|
|
122
|
+
return element.offsetHeight;
|
|
123
|
+
}
|
|
118
124
|
function getLeftWidth() {
|
|
119
125
|
return getWidth(leftRef);
|
|
120
126
|
}
|
|
121
127
|
function getRightWidth() {
|
|
122
128
|
return getWidth(rightRef);
|
|
123
129
|
}
|
|
130
|
+
function getRootHeight() {
|
|
131
|
+
return getHeight(rootRef);
|
|
132
|
+
}
|
|
124
133
|
const [{ x }, api] = (0, import_web.useSpring)(
|
|
125
134
|
() => ({
|
|
126
135
|
x: 0,
|
|
@@ -213,6 +222,20 @@ var SwipeAction = (0, import_react.forwardRef)(
|
|
|
213
222
|
},
|
|
214
223
|
close
|
|
215
224
|
}));
|
|
225
|
+
(0, import_react.useEffect)(() => {
|
|
226
|
+
const updateHeight = () => {
|
|
227
|
+
const height = getRootHeight();
|
|
228
|
+
setContainerHeight(height);
|
|
229
|
+
};
|
|
230
|
+
updateHeight();
|
|
231
|
+
const resizeObserver = new ResizeObserver(updateHeight);
|
|
232
|
+
if (rootRef.current) {
|
|
233
|
+
resizeObserver.observe(rootRef.current);
|
|
234
|
+
}
|
|
235
|
+
return () => {
|
|
236
|
+
resizeObserver.disconnect();
|
|
237
|
+
};
|
|
238
|
+
}, []);
|
|
216
239
|
(0, import_react.useEffect)(() => {
|
|
217
240
|
if (!props.closeOnTouchOutside) return;
|
|
218
241
|
function handle(e) {
|
|
@@ -238,14 +261,32 @@ var SwipeAction = (0, import_react.forwardRef)(
|
|
|
238
261
|
document.removeEventListener("mousedown", handle);
|
|
239
262
|
};
|
|
240
263
|
}, [props.closeOnTouchOutside, props.escapeDom]);
|
|
241
|
-
|
|
264
|
+
const getRightContainerClass = () => {
|
|
265
|
+
const baseClass = `${classPrefix}-actions ${classPrefix}-actions-right`;
|
|
266
|
+
if (containerHeight > 180) {
|
|
267
|
+
return `${baseClass} ${classPrefix}-height-large`;
|
|
268
|
+
} else if (containerHeight > 120) {
|
|
269
|
+
return `${baseClass} ${classPrefix}-height-medium`;
|
|
270
|
+
}
|
|
271
|
+
return `${baseClass} ${classPrefix}-height-small`;
|
|
272
|
+
};
|
|
273
|
+
const getRightActionButtonClass = () => {
|
|
274
|
+
if (containerHeight > 180) {
|
|
275
|
+
return `${classPrefix}-action-height-large`;
|
|
276
|
+
} else if (containerHeight > 120) {
|
|
277
|
+
return `${classPrefix}-action-height-medium`;
|
|
278
|
+
}
|
|
279
|
+
return `${classPrefix}-action-height-small`;
|
|
280
|
+
};
|
|
281
|
+
function renderAction(action, isRightAction = false) {
|
|
242
282
|
const color = action.color ?? "light";
|
|
243
283
|
const _style = action.style || {};
|
|
284
|
+
const buttonClass = isRightAction ? `${classPrefix}-action-button ${getRightActionButtonClass()}` : `${classPrefix}-action-button`;
|
|
244
285
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
245
286
|
Button,
|
|
246
287
|
{
|
|
247
288
|
key: action.key,
|
|
248
|
-
className:
|
|
289
|
+
className: buttonClass,
|
|
249
290
|
style: {
|
|
250
291
|
"--background-color": colorRecord[color] ?? color,
|
|
251
292
|
..._style
|
|
@@ -285,7 +326,7 @@ var SwipeAction = (0, import_react.forwardRef)(
|
|
|
285
326
|
className: `${classPrefix}-actions ${classPrefix}-actions-left`,
|
|
286
327
|
ref: leftRef
|
|
287
328
|
},
|
|
288
|
-
props.leftActions.map(renderAction)
|
|
329
|
+
props.leftActions.map((action) => renderAction(action, false))
|
|
289
330
|
)
|
|
290
331
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
291
332
|
"div",
|
|
@@ -312,14 +353,7 @@ var SwipeAction = (0, import_react.forwardRef)(
|
|
|
312
353
|
)
|
|
313
354
|
), withStopPropagation(
|
|
314
355
|
props.stopPropagation,
|
|
315
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
316
|
-
"div",
|
|
317
|
-
{
|
|
318
|
-
className: `${classPrefix}-actions ${classPrefix}-actions-right`,
|
|
319
|
-
ref: rightRef
|
|
320
|
-
},
|
|
321
|
-
props.rightActions.map(renderAction)
|
|
322
|
-
)
|
|
356
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: getRightContainerClass(), ref: rightRef }, props.rightActions.map((action) => renderAction(action, true)))
|
|
323
357
|
))
|
|
324
358
|
)
|
|
325
359
|
);
|
|
@@ -33,3 +33,42 @@
|
|
|
33
33
|
padding-right: 4px;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
.pisell-custom-swipe-action-action-button {
|
|
38
|
+
min-width: 80px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* 容器样式 */
|
|
42
|
+
.pisell-custom-swipe-action-height-large {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
background-color: rgba(67, 93, 147, 0.3);
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
|
|
48
|
+
.pisell-number-selector-btn {
|
|
49
|
+
width: 40px !important;
|
|
50
|
+
height: 40px !important;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pisell-custom-swipe-action-height-medium {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
background-color: rgba(67, 93, 147, 0.3);
|
|
58
|
+
|
|
59
|
+
.pisell-number-selector-btn {
|
|
60
|
+
width: 40px !important;
|
|
61
|
+
height: 40px !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 按钮样式 */
|
|
66
|
+
.pisell-custom-swipe-action-action-height-large {
|
|
67
|
+
height: 60px;
|
|
68
|
+
width: 200px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pisell-custom-swipe-action-action-height-medium {
|
|
72
|
+
flex: 1;
|
|
73
|
+
width: 200px;
|
|
74
|
+
}
|
|
@@ -199,7 +199,7 @@ var CartSkuCard = (props) => {
|
|
|
199
199
|
}
|
|
200
200
|
return renderA2();
|
|
201
201
|
};
|
|
202
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
202
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
203
203
|
import_swipeAction.SwipeAction,
|
|
204
204
|
{
|
|
205
205
|
closeOnAction: false,
|
|
@@ -219,18 +219,7 @@ var CartSkuCard = (props) => {
|
|
|
219
219
|
},
|
|
220
220
|
renderContent()
|
|
221
221
|
)
|
|
222
|
-
)
|
|
223
|
-
"div",
|
|
224
|
-
{
|
|
225
|
-
className: (0, import_classnames.default)(PREFIX, `${PREFIX}-${type}`),
|
|
226
|
-
onClick: (e) => {
|
|
227
|
-
e.preventDefault();
|
|
228
|
-
e.stopPropagation();
|
|
229
|
-
onCard == null ? void 0 : onCard(dataSource);
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
renderContent()
|
|
233
|
-
)));
|
|
222
|
+
);
|
|
234
223
|
};
|
|
235
224
|
var cartSkuCard_default = CartSkuCard;
|
|
236
225
|
// Annotate the CommonJS export names for ESM import in node:
|