@pisell/materials 6.2.36 → 6.2.37
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 +4 -4
- package/build/lowcode/preview.js +5 -5
- 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/es/components/auto-complete-number/index.d.ts +1 -0
- package/es/components/badge/index.d.ts +1 -0
- package/es/components/batch-editor/fields/index.d.ts +1 -0
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/cardPro/index.d.ts +1 -0
- package/es/components/checkbox/index.d.ts +1 -0
- package/es/components/classicLayout/index.d.ts +1 -0
- package/es/components/colorPicker/index.d.ts +1 -0
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/dropdown/index.d.ts +1 -0
- package/es/components/filter/components/items/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/es/components/filter/components/items/text/index.d.ts +1 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +1 -0
- package/es/components/pisellCard/index.d.ts +1 -0
- package/es/components/pisellCardList/index.d.ts +21 -1
- package/es/components/pisellCardList/index.js +25 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
- package/es/components/pisellCheckboxGroup/index.js +2 -2
- package/es/components/pisellCheckboxGroup/index.less +13 -1
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/pisellUpload/index.d.ts +1 -0
- package/es/components/pisellWalletPassCard/index.d.ts +44 -0
- package/es/components/pisellWalletPassCard/index.js +233 -66
- package/es/components/pisellWalletPassCard/index.less +37 -7
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/Divider/index.d.ts +1 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/radio/index.d.ts +1 -0
- package/es/components/segmented/index.d.ts +1 -0
- package/es/components/select-time/RightPanel/index.d.ts +1 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/skeleton/index.d.ts +1 -0
- package/es/components/slider/index.d.ts +1 -0
- package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Summary/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
- 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 +1 -0
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +1 -0
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/es/components/walletCard/Guest/index.d.ts +1 -0
- package/es/components/walletCard/Guide/index.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/en-US.js +6 -2
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +6 -2
- package/es/locales/zh-TW.d.ts +3 -0
- package/es/locales/zh-TW.js +6 -2
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/auto-complete-number/index.d.ts +1 -0
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +1 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/cardPro/index.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/classicLayout/index.d.ts +1 -0
- package/lib/components/colorPicker/index.d.ts +1 -0
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/dropdown/index.d.ts +1 -0
- package/lib/components/filter/components/items/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/index.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
- package/lib/components/pisellCard/index.d.ts +1 -0
- package/lib/components/pisellCardList/index.d.ts +21 -1
- package/lib/components/pisellCardList/index.js +25 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
- package/lib/components/pisellCheckboxGroup/index.js +2 -1
- package/lib/components/pisellCheckboxGroup/index.less +13 -1
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/pisellUpload/index.d.ts +1 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +44 -0
- package/lib/components/pisellWalletPassCard/index.js +187 -48
- package/lib/components/pisellWalletPassCard/index.less +37 -7
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/Divider/index.d.ts +1 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/radio/index.d.ts +1 -0
- package/lib/components/segmented/index.d.ts +1 -0
- package/lib/components/select-time/RightPanel/index.d.ts +1 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Summary/index.d.ts +1 -0
- package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
- 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 +1 -0
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/lib/components/walletCard/Guest/index.d.ts +1 -0
- package/lib/components/walletCard/Guide/index.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +3 -0
- package/lib/locales/en-US.js +6 -2
- package/lib/locales/zh-CN.d.ts +3 -0
- package/lib/locales/zh-CN.js +6 -2
- package/lib/locales/zh-TW.d.ts +3 -0
- package/lib/locales/zh-TW.js +6 -2
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/pisell-card-list/meta.ts +50 -1
- package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
- package/package.json +11 -10
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
8
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
10
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
12
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
13
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
-
import React, { useEffect, useMemo } from 'react';
|
|
16
|
+
import React, { useEffect, useMemo, useRef } from 'react';
|
|
17
|
+
import { useSize } from 'ahooks';
|
|
17
18
|
import classNames from 'classnames';
|
|
18
19
|
import { CheckCircleFilled, EditOutlined, ExclamationCircleOutlined, MoreOutlined } from '@ant-design/icons';
|
|
19
|
-
import { Dropdown, Form, Input, InputNumber, DatePicker } from 'antd';
|
|
20
|
+
import { Dropdown, Form, Input, InputNumber, DatePicker, Radio } from 'antd';
|
|
20
21
|
import dayjs from 'dayjs';
|
|
21
22
|
import Iconfont from "../iconfont";
|
|
22
|
-
import { PisellModal } from "../../index";
|
|
23
|
+
import { PisellModal, PisellNumberKeyboard } from "../../index";
|
|
24
|
+
import PisellTag from "../pisellTags";
|
|
23
25
|
import Amount from "../pisellText/components/Amount";
|
|
24
26
|
|
|
25
27
|
// @ts-ignore
|
|
@@ -27,6 +29,11 @@ import Amount from "../pisellText/components/Amount";
|
|
|
27
29
|
import "./index.less";
|
|
28
30
|
import { getText } from "../../locales";
|
|
29
31
|
import PisellQrcode from "./../pisellQrcode";
|
|
32
|
+
var cardStatusMap = {
|
|
33
|
+
used: 'warning',
|
|
34
|
+
expired: 'error',
|
|
35
|
+
disabled: 'gray'
|
|
36
|
+
};
|
|
30
37
|
var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
31
38
|
var _React$useState = React.useState(false),
|
|
32
39
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -42,16 +49,24 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
42
49
|
var _Form$useForm3 = Form.useForm(),
|
|
43
50
|
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
44
51
|
form2 = _Form$useForm4[0];
|
|
45
|
-
|
|
46
|
-
var _React$useState5 = React.useState(0),
|
|
52
|
+
var _React$useState5 = React.useState(''),
|
|
47
53
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var _React$useState7 = React.useState(null),
|
|
54
|
+
tempAmount = _React$useState6[0],
|
|
55
|
+
setTempAmount = _React$useState6[1];
|
|
56
|
+
var _React$useState7 = React.useState(false),
|
|
52
57
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
isKeyboardOpen = _React$useState8[0],
|
|
59
|
+
setIsKeyboardOpen = _React$useState8[1];
|
|
60
|
+
// 双击
|
|
61
|
+
var _React$useState9 = React.useState(0),
|
|
62
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
63
|
+
lastTap = _React$useState10[0],
|
|
64
|
+
setLastTap = _React$useState10[1];
|
|
65
|
+
// 长按
|
|
66
|
+
var _React$useState11 = React.useState(null),
|
|
67
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
68
|
+
pressTimer = _React$useState12[0],
|
|
69
|
+
setPressTimer = _React$useState12[1];
|
|
55
70
|
|
|
56
71
|
// 添加 useEffect 清理定时器
|
|
57
72
|
useEffect(function () {
|
|
@@ -106,27 +121,74 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
106
121
|
actions = props.actions,
|
|
107
122
|
beforeEdit = props.beforeEdit,
|
|
108
123
|
onConfirmEdit = props.onConfirmEdit,
|
|
124
|
+
onConfirmEditAmount = props.onConfirmEditAmount,
|
|
125
|
+
onDetail = props.onDetail,
|
|
126
|
+
_props$useExternalDet = props.useExternalDetail,
|
|
127
|
+
useExternalDetail = _props$useExternalDet === void 0 ? false : _props$useExternalDet,
|
|
109
128
|
originData = props.originData,
|
|
110
129
|
_props$style = props.style,
|
|
111
|
-
style = _props$style === void 0 ? {} : _props$style
|
|
130
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
131
|
+
_props$mode = props.mode,
|
|
132
|
+
mode = _props$mode === void 0 ? 'multiple' : _props$mode,
|
|
133
|
+
showActiveIcon = props.showActiveIcon,
|
|
134
|
+
enableEditAmount = props.enableEditAmount,
|
|
135
|
+
showStatus = props.showStatus,
|
|
136
|
+
cardStatus = props.cardStatus,
|
|
137
|
+
nameTitleStyle = props.nameTitleStyle,
|
|
138
|
+
formatBalance = props.formatBalance,
|
|
139
|
+
formatBalanceTitle = props.formatBalanceTitle;
|
|
112
140
|
useEffect(function () {
|
|
113
141
|
document.body.id = 'body';
|
|
114
142
|
}, []);
|
|
143
|
+
|
|
144
|
+
// 创建ref来获取actions-btn-wrapper的尺寸
|
|
145
|
+
var actionsWrapperRef = useRef(null);
|
|
146
|
+
var actionsWrapperSize = useSize(actionsWrapperRef);
|
|
115
147
|
var isMini = useMemo(function () {
|
|
116
148
|
return 'mini' === type;
|
|
117
149
|
}, [type]);
|
|
118
|
-
|
|
150
|
+
|
|
151
|
+
// 动态计算pisell-card-name-wrap的宽度
|
|
152
|
+
var dynamicNameWrapStyle = useMemo(function () {
|
|
153
|
+
var actionsWidth = (actionsWrapperSize === null || actionsWrapperSize === void 0 ? void 0 : actionsWrapperSize.width) || 0;
|
|
154
|
+
var baseStyle = nameTitleStyle || {};
|
|
155
|
+
if (actionsWidth > 0) {
|
|
156
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
157
|
+
width: "calc(100% - ".concat(actionsWidth + 8, "px)") // 添加8px的边距
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
161
|
+
width: isMini ? 'calc(100% - 96px)' : 'calc(100% - 80px)' // 使用默认宽度
|
|
162
|
+
});
|
|
163
|
+
}, [nameTitleStyle, actionsWrapperSize === null || actionsWrapperSize === void 0 ? void 0 : actionsWrapperSize.width, isMini]);
|
|
164
|
+
var handleDetail = function handleDetail() {
|
|
119
165
|
var _actions$detail;
|
|
120
166
|
if (disabled || disabledReason || !(actions !== null && actions !== void 0 && (_actions$detail = actions.detail) !== null && _actions$detail !== void 0 && _actions$detail.visible)) return;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
167
|
+
|
|
168
|
+
// 如果设置了使用外部详情处理且提供了 onDetail 回调,则调用外部回调
|
|
169
|
+
if (useExternalDetail && onDetail) {
|
|
170
|
+
onDetail({
|
|
171
|
+
id: id,
|
|
172
|
+
name: name,
|
|
173
|
+
storeName: storeName,
|
|
174
|
+
balance: balance,
|
|
175
|
+
redeem: redeem,
|
|
176
|
+
code: code,
|
|
177
|
+
validDate: validDate,
|
|
178
|
+
originData: originData
|
|
179
|
+
});
|
|
180
|
+
} else {
|
|
181
|
+
// 否则使用内部模态框
|
|
182
|
+
form2.setFieldsValue({
|
|
183
|
+
name: name,
|
|
184
|
+
storeName: storeName,
|
|
185
|
+
balance: balance,
|
|
186
|
+
redeem: redeem,
|
|
187
|
+
code: code,
|
|
188
|
+
validDate: validDate
|
|
189
|
+
});
|
|
190
|
+
setIsShowDetail(true);
|
|
191
|
+
}
|
|
130
192
|
};
|
|
131
193
|
var onEdit = /*#__PURE__*/function () {
|
|
132
194
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -229,7 +291,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
229
291
|
var DOUBLE_TAP_DELAY = 300; // 双击间隔阈值
|
|
230
292
|
|
|
231
293
|
if (now - lastTap < DOUBLE_TAP_DELAY) {
|
|
232
|
-
|
|
294
|
+
handleDetail();
|
|
233
295
|
}
|
|
234
296
|
setLastTap(now);
|
|
235
297
|
};
|
|
@@ -254,22 +316,23 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
254
316
|
};
|
|
255
317
|
var renderActions = function renderActions() {
|
|
256
318
|
if (disabled || disabledReason) return null;
|
|
257
|
-
if (!showActions || !actions) return null;
|
|
258
|
-
if ('collapsed' === actions.layout) {
|
|
319
|
+
if ((!showActions || !actions) && !showStatus) return null;
|
|
320
|
+
if ('collapsed' === (actions === null || actions === void 0 ? void 0 : actions.layout)) {
|
|
321
|
+
var _actions$detail2, _actions$edit4;
|
|
259
322
|
var items = [];
|
|
260
|
-
if (actions.detail && actions.detail.visible) {
|
|
323
|
+
if (actions !== null && actions !== void 0 && actions.detail && actions !== null && actions !== void 0 && (_actions$detail2 = actions.detail) !== null && _actions$detail2 !== void 0 && _actions$detail2.visible) {
|
|
261
324
|
items.push({
|
|
262
325
|
key: 'detail',
|
|
263
326
|
label: /*#__PURE__*/React.createElement("div", {
|
|
264
327
|
className: "pisell-card-actions-dropdown-detail",
|
|
265
328
|
onClick: function onClick(e) {
|
|
266
329
|
stop(e);
|
|
267
|
-
|
|
330
|
+
handleDetail();
|
|
268
331
|
}
|
|
269
332
|
}, /*#__PURE__*/React.createElement("span", null, getText('pisell-wallet-pass-card-detail')))
|
|
270
333
|
});
|
|
271
334
|
}
|
|
272
|
-
if (actions.edit && actions.edit.visible) {
|
|
335
|
+
if (actions !== null && actions !== void 0 && actions.edit && actions !== null && actions !== void 0 && (_actions$edit4 = actions.edit) !== null && _actions$edit4 !== void 0 && _actions$edit4.visible) {
|
|
273
336
|
items.push({
|
|
274
337
|
key: 'edit',
|
|
275
338
|
label: /*#__PURE__*/React.createElement("div", {
|
|
@@ -299,21 +362,32 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
299
362
|
}
|
|
300
363
|
})));
|
|
301
364
|
}
|
|
302
|
-
if ('expanded' === actions.layout) {
|
|
365
|
+
if ('expanded' === (actions === null || actions === void 0 ? void 0 : actions.layout) || showStatus) {
|
|
366
|
+
var _actions$detail3, _actions$edit5;
|
|
303
367
|
return /*#__PURE__*/React.createElement("div", {
|
|
304
|
-
className: "actions-btn-wrapper"
|
|
305
|
-
|
|
368
|
+
className: "actions-btn-wrapper",
|
|
369
|
+
ref: actionsWrapperRef
|
|
370
|
+
}, showStatus && cardStatus && /*#__PURE__*/React.createElement("div", {
|
|
371
|
+
className: "pisell-card-status-icon"
|
|
372
|
+
}, /*#__PURE__*/React.createElement(PisellTag, {
|
|
373
|
+
style: {
|
|
374
|
+
borderRadius: '6px',
|
|
375
|
+
padding: '2px 8px'
|
|
376
|
+
},
|
|
377
|
+
type: "pill_color",
|
|
378
|
+
color: cardStatusMap[cardStatus]
|
|
379
|
+
}, getText("pisell-wallet-pass-card-status-".concat(cardStatus)))), (actions === null || actions === void 0 ? void 0 : actions.detail) && (actions === null || actions === void 0 || (_actions$detail3 = actions.detail) === null || _actions$detail3 === void 0 ? void 0 : _actions$detail3.visible) && /*#__PURE__*/React.createElement("div", {
|
|
306
380
|
className: "pisell-card-actions-detail-btn",
|
|
307
381
|
onClick: function onClick(e) {
|
|
308
382
|
stop(e);
|
|
309
|
-
|
|
383
|
+
handleDetail();
|
|
310
384
|
}
|
|
311
385
|
}, /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
|
|
312
386
|
style: {
|
|
313
387
|
fontSize: 24,
|
|
314
388
|
color: actions.detail.iconColor || '#1570EF'
|
|
315
389
|
}
|
|
316
|
-
})), actions.edit && actions.edit.visible && /*#__PURE__*/React.createElement("div", {
|
|
390
|
+
})), (actions === null || actions === void 0 ? void 0 : actions.edit) && (actions === null || actions === void 0 || (_actions$edit5 = actions.edit) === null || _actions$edit5 === void 0 ? void 0 : _actions$edit5.visible) && /*#__PURE__*/React.createElement("div", {
|
|
317
391
|
className: "pisell-card-actions-edit-btn",
|
|
318
392
|
onClick: function onClick(e) {
|
|
319
393
|
stop(e);
|
|
@@ -329,32 +403,65 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
329
403
|
};
|
|
330
404
|
var renderNameInfo = function renderNameInfo() {
|
|
331
405
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
332
|
-
className: "pisell-card-name-wrap"
|
|
406
|
+
className: "pisell-card-name-wrap",
|
|
407
|
+
style: dynamicNameWrapStyle
|
|
333
408
|
}, showName && name), /*#__PURE__*/React.createElement("div", {
|
|
334
409
|
className: "pisell-card-store-name"
|
|
335
410
|
}, showStoreName && storeName));
|
|
336
411
|
};
|
|
412
|
+
var handleEditAmount = function handleEditAmount(e) {
|
|
413
|
+
e.stopPropagation();
|
|
414
|
+
if (enableEditAmount && !disabled) {
|
|
415
|
+
setIsKeyboardOpen(true);
|
|
416
|
+
setTempAmount((redeem === null || redeem === void 0 ? void 0 : redeem.toString()) || '');
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// 创建原始余额标题 DOM 的辅助函数
|
|
421
|
+
var createOriginalBalanceTitleDom = function createOriginalBalanceTitleDom() {
|
|
422
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
423
|
+
className: "pisell-card-amount-item-label"
|
|
424
|
+
}, formatBalanceTitle ? formatBalanceTitle(balanceTitle, {
|
|
425
|
+
originDom: /*#__PURE__*/React.createElement(React.Fragment, null, balanceTitle || getText('pisell-wallet-pass-card-balance')),
|
|
426
|
+
active: active,
|
|
427
|
+
data: props
|
|
428
|
+
}) : balanceTitle || getText('pisell-wallet-pass-card-balance'), disabled || isMini ? ': ' : '');
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
// 创建原始余额 DOM 的辅助函数
|
|
432
|
+
var createOriginalBalanceDom = function createOriginalBalanceDom() {
|
|
433
|
+
return /*#__PURE__*/React.createElement(Amount, {
|
|
434
|
+
className: "pisell-card-amount-item-value",
|
|
435
|
+
useThousandsSeparator: true,
|
|
436
|
+
value: balance,
|
|
437
|
+
showCurrencySymbol: showBalanceSymbol
|
|
438
|
+
});
|
|
439
|
+
};
|
|
337
440
|
var renderBalanceInfo = function renderBalanceInfo() {
|
|
338
441
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
339
442
|
className: "pisell-card-amount-wrap"
|
|
340
443
|
}, showRedeem && !disabled && /*#__PURE__*/React.createElement("div", {
|
|
341
444
|
className: "pisell-card-amount-item pisell-wallet-pass-card-redeem"
|
|
342
445
|
}, /*#__PURE__*/React.createElement("div", {
|
|
343
|
-
className: "pisell-card-amount-item-label"
|
|
344
|
-
|
|
446
|
+
className: "pisell-card-amount-item-label",
|
|
447
|
+
onClick: handleEditAmount
|
|
448
|
+
}, enableEditAmount && /*#__PURE__*/React.createElement(Iconfont, {
|
|
449
|
+
type: "pisell2-edit-05",
|
|
450
|
+
className: "pisell-card-amount-item-label-icon"
|
|
451
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
452
|
+
className: "pisell-card-amount-item-label-text"
|
|
453
|
+
}, redeemTitle || getText('pisell-wallet-pass-card-redeem'), isMini ? ': ' : '')), /*#__PURE__*/React.createElement(Amount, {
|
|
345
454
|
className: "pisell-card-amount-item-value",
|
|
346
455
|
useThousandsSeparator: true,
|
|
347
|
-
value: redeem
|
|
456
|
+
value: redeem,
|
|
457
|
+
onClick: handleEditAmount
|
|
348
458
|
})), showBalance && /*#__PURE__*/React.createElement("div", {
|
|
349
459
|
className: "pisell-card-amount-item pisell-wallet-pass-card-balance"
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
value: balance,
|
|
356
|
-
showCurrencySymbol: showBalanceSymbol
|
|
357
|
-
})), showDiscount && /*#__PURE__*/React.createElement("div", {
|
|
460
|
+
}, createOriginalBalanceTitleDom(), formatBalance ? formatBalance(balance, {
|
|
461
|
+
originDom: createOriginalBalanceDom(),
|
|
462
|
+
active: active,
|
|
463
|
+
data: props
|
|
464
|
+
}) : createOriginalBalanceDom()), showDiscount && /*#__PURE__*/React.createElement("div", {
|
|
358
465
|
className: "pisell-card-amount-item"
|
|
359
466
|
}, /*#__PURE__*/React.createElement("div", {
|
|
360
467
|
className: "pisell-card-amount-item-label"
|
|
@@ -395,9 +502,9 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
395
502
|
});
|
|
396
503
|
};
|
|
397
504
|
var renderEditModal = function renderEditModal() {
|
|
398
|
-
var _actions$
|
|
505
|
+
var _actions$edit6, _actions$edit7;
|
|
399
506
|
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
400
|
-
title: (actions === null || actions === void 0 || (_actions$
|
|
507
|
+
title: (actions === null || actions === void 0 || (_actions$edit6 = actions.edit) === null || _actions$edit6 === void 0 ? void 0 : _actions$edit6.dialogTitle) || getText('pisell-wallet-pass-card-edit'),
|
|
401
508
|
open: isShowEdit,
|
|
402
509
|
className: "pisell-wallet-pass-card-edit-modal",
|
|
403
510
|
onCancel: function onCancel() {
|
|
@@ -414,7 +521,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
414
521
|
style: {
|
|
415
522
|
padding: '16px 0'
|
|
416
523
|
}
|
|
417
|
-
}, Array.isArray(actions === null || actions === void 0 || (_actions$
|
|
524
|
+
}, Array.isArray(actions === null || actions === void 0 || (_actions$edit7 = actions.edit) === null || _actions$edit7 === void 0 ? void 0 : _actions$edit7.fields) && actions.edit.fields.map(function (item) {
|
|
418
525
|
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
419
526
|
key: item.name,
|
|
420
527
|
name: item.name,
|
|
@@ -478,11 +585,43 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
478
585
|
label: getText('pisell-wallet-pass-card-valid-to')
|
|
479
586
|
}, /*#__PURE__*/React.createElement(Input, null))));
|
|
480
587
|
};
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
588
|
+
var checkedDom = useMemo(function () {
|
|
589
|
+
if (!isMini || disabled) return null;
|
|
590
|
+
if (showActiveIcon && !active) {
|
|
591
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
592
|
+
className: "pisell-card-checked-icon"
|
|
593
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
594
|
+
checked: false
|
|
595
|
+
}));
|
|
484
596
|
}
|
|
485
|
-
|
|
597
|
+
// mini卡片选中模式
|
|
598
|
+
return active && /*#__PURE__*/React.createElement("div", {
|
|
599
|
+
className: "pisell-card-checked-icon"
|
|
600
|
+
}, mode === 'multiple' ? /*#__PURE__*/React.createElement(CheckCircleFilled, {
|
|
601
|
+
style: {
|
|
602
|
+
fontSize: 20,
|
|
603
|
+
color: 'var(--Primary-600, #7F56D9)'
|
|
604
|
+
}
|
|
605
|
+
}) : /*#__PURE__*/React.createElement(Radio, {
|
|
606
|
+
checked: true
|
|
607
|
+
}));
|
|
608
|
+
}, [showActiveIcon, isMini, active, disabled]);
|
|
609
|
+
var handleKeyboardClose = function handleKeyboardClose() {
|
|
610
|
+
setIsKeyboardOpen(false);
|
|
611
|
+
// 清空临时值
|
|
612
|
+
setTempAmount('');
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
// 处理键盘输入变化
|
|
616
|
+
var handleKeyboardChange = function handleKeyboardChange(value) {
|
|
617
|
+
// 暂存输入值,不立即更新显示
|
|
618
|
+
setTempAmount(value.toString() || '');
|
|
619
|
+
};
|
|
620
|
+
var handleKeyboardEnter = function handleKeyboardEnter() {
|
|
621
|
+
setIsKeyboardOpen(false);
|
|
622
|
+
onConfirmEditAmount === null || onConfirmEditAmount === void 0 || onConfirmEditAmount(tempAmount);
|
|
623
|
+
};
|
|
624
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, renderDetailModal(), renderEditModal()), /*#__PURE__*/React.createElement("div", {
|
|
486
625
|
className: classNames('pisell-wallet-pass-card', {
|
|
487
626
|
'pisell-card-disabled': disabled,
|
|
488
627
|
'pisell-card-disabled-hide-disabled-reason': disabled && !showDisabledReason,
|
|
@@ -507,20 +646,48 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
507
646
|
}, /*#__PURE__*/React.createElement(PisellQrcode, {
|
|
508
647
|
value: qrCode,
|
|
509
648
|
size: 60
|
|
510
|
-
})),
|
|
511
|
-
// mini卡片选中模式
|
|
512
|
-
isMini && active && /*#__PURE__*/React.createElement("div", {
|
|
513
|
-
className: "pisell-card-checked-icon"
|
|
514
|
-
}, /*#__PURE__*/React.createElement(CheckCircleFilled, {
|
|
515
|
-
style: {
|
|
516
|
-
fontSize: 20,
|
|
517
|
-
color: 'var(--Primary-600, #7F56D9)'
|
|
518
|
-
}
|
|
519
|
-
}))), (disabled || disabledReason) && showDisabledReason && /*#__PURE__*/React.createElement("div", {
|
|
649
|
+
})), checkedDom), (disabled || disabledReason) && showDisabledReason && /*#__PURE__*/React.createElement("div", {
|
|
520
650
|
className: "pisell-card-warn-message"
|
|
521
651
|
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
522
652
|
className: "pisell-card-icon",
|
|
523
653
|
type: "pisell2-alert-circle"
|
|
524
|
-
}), /*#__PURE__*/React.createElement("span", null, disabledReason))
|
|
654
|
+
}), /*#__PURE__*/React.createElement("span", null, disabledReason)), /*#__PURE__*/React.createElement("div", {
|
|
655
|
+
onClick: function onClick(e) {
|
|
656
|
+
return e.stopPropagation();
|
|
657
|
+
}
|
|
658
|
+
}, /*#__PURE__*/React.createElement(PisellModal, {
|
|
659
|
+
open: isKeyboardOpen,
|
|
660
|
+
onCancel: handleKeyboardClose,
|
|
661
|
+
title: null,
|
|
662
|
+
footer: null,
|
|
663
|
+
header: null,
|
|
664
|
+
closable: false,
|
|
665
|
+
mask: false,
|
|
666
|
+
maskClosable: true,
|
|
667
|
+
centered: true,
|
|
668
|
+
width: "auto",
|
|
669
|
+
wrapClassName: "keyboard-modal-wrapper",
|
|
670
|
+
bodyStyle: {
|
|
671
|
+
padding: 0
|
|
672
|
+
},
|
|
673
|
+
styles: {
|
|
674
|
+
content: {
|
|
675
|
+
padding: 0,
|
|
676
|
+
boxShadow: 'none',
|
|
677
|
+
background: 'transparent'
|
|
678
|
+
},
|
|
679
|
+
body: {
|
|
680
|
+
padding: 0
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}, /*#__PURE__*/React.createElement(PisellNumberKeyboard, {
|
|
684
|
+
value: tempAmount,
|
|
685
|
+
defaultValue: redeem,
|
|
686
|
+
onChange: handleKeyboardChange,
|
|
687
|
+
onEnter: handleKeyboardEnter,
|
|
688
|
+
allowDecimal: true,
|
|
689
|
+
decimalPlaces: 2,
|
|
690
|
+
selectType: "dark"
|
|
691
|
+
})))));
|
|
525
692
|
};
|
|
526
693
|
export default PisellWalletPassCard;
|
|
@@ -25,15 +25,25 @@
|
|
|
25
25
|
|
|
26
26
|
.actions-btn-wrapper {
|
|
27
27
|
position: absolute;
|
|
28
|
-
top:
|
|
29
|
-
right:
|
|
28
|
+
top: 0px;
|
|
29
|
+
right: 0px;
|
|
30
30
|
z-index: 2;
|
|
31
31
|
display: flex;
|
|
32
|
-
gap:
|
|
32
|
+
gap: 0px;
|
|
33
|
+
z-index: 3;
|
|
33
34
|
|
|
34
35
|
& > div {
|
|
35
36
|
cursor: pointer;
|
|
36
37
|
}
|
|
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
|
+
}
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
.pisell-wallet-pass-card-body {
|
|
@@ -47,12 +57,13 @@
|
|
|
47
57
|
display: flex;
|
|
48
58
|
flex-direction: column;
|
|
49
59
|
justify-content: space-between;
|
|
60
|
+
position: relative;
|
|
61
|
+
z-index: 2;
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
.pisell-card-name-wrap {
|
|
53
65
|
font-weight: 500;
|
|
54
66
|
line-height: 20px;
|
|
55
|
-
|
|
56
67
|
white-space: nowrap;
|
|
57
68
|
overflow: hidden;
|
|
58
69
|
text-overflow: ellipsis;
|
|
@@ -95,7 +106,7 @@
|
|
|
95
106
|
.pisell-card-amount-item-value {
|
|
96
107
|
font-size: 20px;
|
|
97
108
|
font-weight: 600;
|
|
98
|
-
line-height:
|
|
109
|
+
line-height: 20px;
|
|
99
110
|
overflow: hidden;
|
|
100
111
|
text-overflow: ellipsis;
|
|
101
112
|
}
|
|
@@ -188,10 +199,10 @@
|
|
|
188
199
|
.pisell-card-name-wrap {
|
|
189
200
|
font-weight: 600;
|
|
190
201
|
font-size: 16px;
|
|
191
|
-
max-width: calc(100% - 96px);
|
|
192
202
|
white-space: nowrap;
|
|
193
203
|
overflow: hidden;
|
|
194
204
|
text-overflow: ellipsis;
|
|
205
|
+
min-width: 12px;
|
|
195
206
|
}
|
|
196
207
|
|
|
197
208
|
.pisell-card-store-name {
|
|
@@ -208,14 +219,26 @@
|
|
|
208
219
|
visibility: hidden;
|
|
209
220
|
flex-direction: row;
|
|
210
221
|
align-items: center;
|
|
222
|
+
margin-bottom: 4px;
|
|
223
|
+
|
|
224
|
+
.pisell-card-amount-item-label-icon {
|
|
225
|
+
font-size: 20px;
|
|
226
|
+
margin-right: 8px;
|
|
227
|
+
}
|
|
211
228
|
|
|
212
229
|
.pisell-card-amount-item-label,
|
|
213
230
|
.pisell-card-amount-item-value {
|
|
214
231
|
color: var(--Primary-600, #7f56d9);
|
|
215
|
-
font-size: 20px;
|
|
216
232
|
font-style: normal;
|
|
217
233
|
font-weight: 600;
|
|
218
234
|
}
|
|
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
|
+
}
|
|
219
242
|
}
|
|
220
243
|
|
|
221
244
|
&.active {
|
|
@@ -241,6 +264,13 @@
|
|
|
241
264
|
position: absolute;
|
|
242
265
|
bottom: 16px;
|
|
243
266
|
right: 16px;
|
|
267
|
+
.pisell-lowcode-radio-wrapper {
|
|
268
|
+
margin: 0;
|
|
269
|
+
}
|
|
270
|
+
.pisell-lowcode-radio-inner {
|
|
271
|
+
width: 20px;
|
|
272
|
+
height: 20px;
|
|
273
|
+
}
|
|
244
274
|
}
|
|
245
275
|
}
|
|
246
276
|
|
|
@@ -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) => string | number;
|
|
@@ -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) => string | number;
|