@pisell/materials 2.2.105 → 2.2.107
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 +1 -1
- package/build/lowcode/preview.js +148 -156
- package/build/lowcode/render/default/view.js +23 -37
- package/build/lowcode/view.js +23 -37
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/badge/index.d.ts +7 -0
- package/es/components/buttonGroupEdit/index.d.ts +8 -0
- package/es/components/buttonGroupPreview/index.d.ts +19 -0
- package/es/components/cardMetricItem/index.d.ts +12 -0
- package/es/components/collapse/index.d.ts +15 -0
- package/es/components/cropPhoto/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
- package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +20 -20
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
- package/es/components/date-picker/datePickerCpt.d.ts +8 -0
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/div/index.d.ts +19 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +22 -0
- package/es/components/pisellAdjustPrice/index.d.ts +4 -0
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +22 -0
- package/es/components/pisellAnchor/index.d.ts +23 -0
- package/es/components/pisellAvatar/index.d.ts +19 -0
- package/es/components/pisellCard/index.d.ts +19 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/es/components/pisellDraggable/index.d.ts +35 -0
- package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
- package/es/components/pisellDropSort/types.d.ts +58 -0
- package/es/components/pisellDropdown/index.d.ts +20 -0
- package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/es/components/pisellImageCarousels/index.d.ts +18 -0
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/es/components/pisellInformationEntry/index.d.ts +33 -0
- package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
- package/es/components/pisellMenu/types.d.ts +27 -0
- package/es/components/pisellNavigationMenu/types.d.ts +85 -0
- package/es/components/pisellQrcode/index.d.ts +10 -0
- package/es/components/pisellSectionHeaders/index.d.ts +21 -0
- package/es/components/pisellStatisticList/index.d.ts +21 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/pisellToast/index.d.ts +17 -0
- package/es/components/pisellToast/squareToast/index.d.ts +15 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/methods.js +12 -14
- package/es/components/pisellToast/squareToast/renderImperatively.js +14 -16
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/es/components/pisellToast/squareToast/toast.js +9 -21
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/es/components/productCard/components/Action/index.d.ts +3 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/components/Divider/index.d.ts +3 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
- package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/components/Note/index.d.ts +3 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -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 +3 -0
- package/es/components/productCard/components/Packages/index.d.ts +3 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Sales/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
- package/es/components/productCard/components/Warning/index.d.ts +7 -0
- package/es/components/productCard/locales.d.ts +84 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +84 -0
- package/es/components/productCard/utils.d.ts +31 -0
- package/es/components/section-footers/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/tabs/index.d.ts +16 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/components/virtual-keyboard/index.d.ts +25 -0
- package/es/components/walletCard/Guest/index.d.ts +3 -0
- package/es/components/walletCard/Guide/index.d.ts +3 -0
- package/es/utils/index.d.ts +4 -0
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/badge/index.d.ts +7 -0
- package/lib/components/buttonGroupEdit/index.d.ts +8 -0
- package/lib/components/buttonGroupPreview/index.d.ts +19 -0
- package/lib/components/cardMetricItem/index.d.ts +12 -0
- package/lib/components/collapse/index.d.ts +15 -0
- package/lib/components/cropPhoto/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
- package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +20 -20
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/div/index.d.ts +19 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisell-config-provider/context.d.ts +22 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
- package/lib/components/pisellAnchor/index.d.ts +23 -0
- package/lib/components/pisellAvatar/index.d.ts +19 -0
- package/lib/components/pisellCard/index.d.ts +19 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/lib/components/pisellDraggable/index.d.ts +35 -0
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
- package/lib/components/pisellDropSort/types.d.ts +58 -0
- package/lib/components/pisellDropdown/index.d.ts +20 -0
- package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/lib/components/pisellImageCarousels/index.d.ts +18 -0
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/lib/components/pisellInformationEntry/index.d.ts +33 -0
- package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
- package/lib/components/pisellMenu/types.d.ts +27 -0
- package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
- package/lib/components/pisellQrcode/index.d.ts +10 -0
- package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
- package/lib/components/pisellStatisticList/index.d.ts +21 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/pisellToast/index.d.ts +17 -0
- package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/methods.js +11 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.js +9 -9
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/lib/components/pisellToast/squareToast/toast.js +5 -9
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/lib/components/productCard/components/Action/index.d.ts +3 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/components/Divider/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
- package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/components/Note/index.d.ts +3 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -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 +3 -0
- package/lib/components/productCard/components/Packages/index.d.ts +3 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Sales/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
- package/lib/components/productCard/components/Warning/index.d.ts +7 -0
- package/lib/components/productCard/locales.d.ts +84 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +84 -0
- package/lib/components/productCard/utils.d.ts +31 -0
- package/lib/components/section-footers/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/tabs/index.d.ts +16 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/components/virtual-keyboard/index.d.ts +25 -0
- package/lib/components/walletCard/Guest/index.d.ts +3 -0
- package/lib/components/walletCard/Guide/index.d.ts +3 -0
- package/lib/utils/index.d.ts +4 -0
- package/package.json +1 -1
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/cardPro/index.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellWalletPassCard/index.d.ts +0 -136
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/types.d.ts +0 -251
- package/es/components/translation/index.d.ts +0 -14
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/index.d.ts +0 -141
- package/es/locales/en-US.d.ts +0 -286
- package/es/locales/zh-CN.d.ts +0 -281
- package/es/locales/zh-TW.d.ts +0 -281
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/cardPro/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -136
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/translation/index.d.ts +0 -14
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/index.d.ts +0 -141
- package/lib/locales/en-US.d.ts +0 -286
- package/lib/locales/zh-CN.d.ts +0 -281
- package/lib/locales/zh-TW.d.ts +0 -281
- /package/es/components/dataSourceComponents/fields/{Input.Phone → Input.Mobile}/serve.d.ts +0 -0
- /package/lib/components/dataSourceComponents/fields/{Input.Phone → Input.Mobile}/serve.d.ts +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'swiper/swiper-bundle.css';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface PisellImageCarouselsProps {
|
|
5
|
+
dataSource?: string[];
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number;
|
|
8
|
+
showArrows?: boolean;
|
|
9
|
+
showDots?: boolean;
|
|
10
|
+
autoplay?: boolean;
|
|
11
|
+
interval?: number;
|
|
12
|
+
borderRadius?: number;
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
|
|
18
|
+
export default PisellImageCarousels;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare type EntryModeType = {
|
|
5
|
+
/**
|
|
6
|
+
* 录入模式名称
|
|
7
|
+
* scanCode: 扫码录入
|
|
8
|
+
* input: 手动录入
|
|
9
|
+
* scanner: 扫码枪录入
|
|
10
|
+
* nfc: NFC录入
|
|
11
|
+
*/
|
|
12
|
+
type: 'scanCode' | 'input' | 'scanner' | 'nfc';
|
|
13
|
+
/**
|
|
14
|
+
* 录入模式文案 没有使用默认文案
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
19
|
+
/** 平台 */
|
|
20
|
+
platform?: PisellContextType['platform'];
|
|
21
|
+
/** 录入模式 */
|
|
22
|
+
entryModes: EntryModeType[];
|
|
23
|
+
/** 标题文案 */
|
|
24
|
+
title?: React.ReactNode;
|
|
25
|
+
/** 搜索框描述文案 */
|
|
26
|
+
searchDescribe?: React.ReactNode;
|
|
27
|
+
/** 录入信息值改变 */
|
|
28
|
+
onChange?: (val: string) => void;
|
|
29
|
+
/** 录入类型切换时候触发的 */
|
|
30
|
+
onChangeType?: (val: null | EntryModeType['type']) => void;
|
|
31
|
+
}
|
|
32
|
+
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
|
|
33
|
+
export default PisellInformationEntry;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Menu as AntdMenu } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './PisellMenu.less';
|
|
4
|
+
import type { PisellMenuProps } from './types';
|
|
5
|
+
declare type PisellMenuComponent = React.FC<PisellMenuProps> & {
|
|
6
|
+
Item: typeof AntdMenu.Item;
|
|
7
|
+
SubMenu: typeof AntdMenu.SubMenu;
|
|
8
|
+
ItemGroup: typeof AntdMenu.ItemGroup;
|
|
9
|
+
};
|
|
10
|
+
declare const PisellMenu: PisellMenuComponent;
|
|
11
|
+
export default PisellMenu;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MenuProps } from 'antd';
|
|
3
|
+
export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
mode?: 'vertical' | 'horizontal' | 'inline';
|
|
7
|
+
theme?: 'light' | 'dark';
|
|
8
|
+
defaultOpenKeys?: string[];
|
|
9
|
+
defaultSelectedKeys?: string[];
|
|
10
|
+
inlineCollapsed?: boolean;
|
|
11
|
+
openKeys?: string[];
|
|
12
|
+
selectedKeys?: string[];
|
|
13
|
+
onOpenChange?: (openKeys: string[]) => void;
|
|
14
|
+
dataSource?: any;
|
|
15
|
+
__designMode?: string;
|
|
16
|
+
other?: PisellMenuProps;
|
|
17
|
+
}
|
|
18
|
+
export interface MenuItemType {
|
|
19
|
+
key: string;
|
|
20
|
+
label: string;
|
|
21
|
+
path: string;
|
|
22
|
+
children?: MenuItemType[];
|
|
23
|
+
icon?: string | React.ReactNode;
|
|
24
|
+
hide?: boolean;
|
|
25
|
+
type?: 'group' | 'divider';
|
|
26
|
+
isGroup?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { Props as TreeItem } from "../pisellDraggable/components/TreeItem/TreeItem";
|
|
3
|
+
export interface NavigationMenuItem {
|
|
4
|
+
id: string;
|
|
5
|
+
/** 标题 */
|
|
6
|
+
title: string;
|
|
7
|
+
/** 图标 */
|
|
8
|
+
icon?: string;
|
|
9
|
+
/** 描述 */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** 子菜单 */
|
|
12
|
+
children?: NavigationMenuItem[];
|
|
13
|
+
/** 版本 */
|
|
14
|
+
version?: string;
|
|
15
|
+
/** 是否是分组 */
|
|
16
|
+
isGroup?: boolean;
|
|
17
|
+
/** 是否允许添加子菜单 */
|
|
18
|
+
allowAddChild?: boolean;
|
|
19
|
+
/** 是否允许删除 */
|
|
20
|
+
allowDelete?: boolean;
|
|
21
|
+
/** 是否允许编辑 */
|
|
22
|
+
allowEdit?: boolean;
|
|
23
|
+
/** 是否允许添加子菜单 */
|
|
24
|
+
allowAddSubmenu?: boolean;
|
|
25
|
+
/** 是否允许添加页面 */
|
|
26
|
+
allowAddPage?: boolean;
|
|
27
|
+
/** 其他属性 */
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
30
|
+
export interface PisellNavigationMenuProps {
|
|
31
|
+
/** 导航菜单数据 */
|
|
32
|
+
value: NavigationMenuItem[];
|
|
33
|
+
/** 是否允许拖拽排序 */
|
|
34
|
+
allowDrag?: boolean;
|
|
35
|
+
/** 是否允许删除菜单项 */
|
|
36
|
+
allowDelete?: boolean;
|
|
37
|
+
/** 是否允许添加子菜单 */
|
|
38
|
+
allowAddChild?: boolean;
|
|
39
|
+
/** 是否允许添加根菜单 */
|
|
40
|
+
allowAddRoot?: boolean;
|
|
41
|
+
/** 是否允许显示隐藏 */
|
|
42
|
+
allowIsShow?: boolean;
|
|
43
|
+
/** 是否禁用 */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** 菜单项间距 */
|
|
46
|
+
spacing?: number;
|
|
47
|
+
/** 最大层级数 */
|
|
48
|
+
maxLevel?: number;
|
|
49
|
+
/** 样式 */
|
|
50
|
+
style?: CSSProperties;
|
|
51
|
+
/** 类名 */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** 数据变化回调 */
|
|
54
|
+
onChange?: (items: NavigationMenuItem[]) => void;
|
|
55
|
+
/** 设计模式 */
|
|
56
|
+
__designMode?: string;
|
|
57
|
+
/** 标题 */
|
|
58
|
+
title?: string;
|
|
59
|
+
/** 添加子菜单回调 */
|
|
60
|
+
onAddSubMenu?: (item?: NavigationMenuItem) => void;
|
|
61
|
+
/** 添加页面回调 */
|
|
62
|
+
onAddPage?: (item?: NavigationMenuItem) => void;
|
|
63
|
+
/** 编辑回调 */
|
|
64
|
+
onEdit?: (item: NavigationMenuItem) => void;
|
|
65
|
+
/** 删除回调 */
|
|
66
|
+
onDelete?: (item: NavigationMenuItem) => void;
|
|
67
|
+
/** 左侧自定义内容 */
|
|
68
|
+
leftContent?: React.ReactNode;
|
|
69
|
+
/** 右侧自定义内容 */
|
|
70
|
+
rightContent?: React.ReactNode;
|
|
71
|
+
/** 获取item样式 */
|
|
72
|
+
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
73
|
+
/** 自定义拖拽判断函数,返回false时阻止拖拽 */
|
|
74
|
+
canDrop?: (dragItem: NavigationMenuItem, dropTarget: NavigationMenuItem, parentId: string | number | null) => boolean;
|
|
75
|
+
/** 显示隐藏回调 */
|
|
76
|
+
onIsShow?: (item: NavigationMenuItem) => void;
|
|
77
|
+
/** 节点缩进宽度 */
|
|
78
|
+
indentationWidth?: number;
|
|
79
|
+
/** 隐藏描述 */
|
|
80
|
+
hideDescription?: boolean;
|
|
81
|
+
/** 悬浮时展示action */
|
|
82
|
+
showActionOnHover?: boolean;
|
|
83
|
+
/** 是否展示标题标签 */
|
|
84
|
+
showTitleTags?: boolean;
|
|
85
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface PisellQrcodeProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
platform: 'pc' | 'h5' | 'ipad';
|
|
6
|
+
value: string;
|
|
7
|
+
className: string;
|
|
8
|
+
}
|
|
9
|
+
declare const PisellQrcode: React.FC<PisellQrcodeProps>;
|
|
10
|
+
export default PisellQrcode;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellSectionHeadersProps {
|
|
4
|
+
/** 是否占据空间(true: 占据空间, false: 不占据空间) */
|
|
5
|
+
/** 左侧返回区域 */
|
|
6
|
+
backNode?: React.ReactNode;
|
|
7
|
+
/** 中间内容区域 */
|
|
8
|
+
centerNode?: React.ReactNode;
|
|
9
|
+
/** 右侧操作区域 */
|
|
10
|
+
actionNode?: React.ReactNode;
|
|
11
|
+
/** 自定义类名 */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** 自定义样式 */
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
/** 返回按钮点击事件 */
|
|
16
|
+
onBack?: () => void;
|
|
17
|
+
/** 操作区域点击事件 */
|
|
18
|
+
onAction?: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
|
|
21
|
+
export default PisellSectionHeaders;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
isHasBorder?: boolean;
|
|
5
|
+
backgroundColors?: string[];
|
|
6
|
+
labelColor?: string;
|
|
7
|
+
valueColor?: string;
|
|
8
|
+
data: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
isLink?: boolean;
|
|
12
|
+
link?: string;
|
|
13
|
+
tip?: string;
|
|
14
|
+
children?: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
|
|
21
|
+
export default PisellStatisticList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from '../../../pisell-config-provider/context';
|
|
3
|
+
export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** 平台 */
|
|
5
|
+
platform?: PisellContextType['platform'];
|
|
6
|
+
/** 当前数值 */
|
|
7
|
+
value?: number | string;
|
|
8
|
+
/** 小数点后位数 默认是小数点后2位 */
|
|
9
|
+
precision?: number;
|
|
10
|
+
/** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
|
|
11
|
+
showCurrencySymbol?: boolean;
|
|
12
|
+
/** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
|
|
13
|
+
useThousandsSeparator?: boolean;
|
|
14
|
+
/** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
|
|
15
|
+
hideDecimalForWholeNumbers?: boolean;
|
|
16
|
+
/** 货币符号 */
|
|
17
|
+
symbol?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const Amount: (props: AmountProps) => JSX.Element;
|
|
20
|
+
export default Amount;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellToastProps {
|
|
4
|
+
/** 提示内容 */
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
/** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
|
|
7
|
+
duration?: number;
|
|
8
|
+
/** 是否展示action */
|
|
9
|
+
showAction?: boolean;
|
|
10
|
+
/** action文案 */
|
|
11
|
+
actionText?: string;
|
|
12
|
+
/** 关闭时触发的回调函数 */
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const PisellToast: (props: PisellToastProps) => void;
|
|
16
|
+
export { useToast } from './squareToast';
|
|
17
|
+
export default PisellToast;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { clear, show, success, info, loading, fail, hide } from './methods';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ToastInstance {
|
|
4
|
+
show: typeof show;
|
|
5
|
+
clear: typeof clear;
|
|
6
|
+
success: typeof success;
|
|
7
|
+
info: typeof info;
|
|
8
|
+
loading: typeof loading;
|
|
9
|
+
fail: typeof fail;
|
|
10
|
+
error: typeof fail;
|
|
11
|
+
hide: typeof hide;
|
|
12
|
+
}
|
|
13
|
+
declare const Toast: ToastInstance;
|
|
14
|
+
export declare const useToast: () => ToastInstance;
|
|
15
|
+
export default Toast;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ToastProps } from './toast';
|
|
3
|
+
interface ToastInstance {
|
|
4
|
+
close: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
7
|
+
declare const clear: () => void;
|
|
8
|
+
declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
9
|
+
declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
10
|
+
declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
11
|
+
declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
12
|
+
declare const hide: () => void;
|
|
13
|
+
export { show, clear, success, info, loading, fail, hide };
|
|
@@ -60,14 +60,14 @@ function mergeProps(a, b) {
|
|
|
60
60
|
...filteredB
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
var show = (configOrContent, duration,
|
|
63
|
+
var show = (configOrContent, duration, afterClose) => {
|
|
64
64
|
var _a;
|
|
65
65
|
let props;
|
|
66
66
|
if (typeof configOrContent === "string" || import_react.default.isValidElement(configOrContent)) {
|
|
67
67
|
props = mergeProps(defaultProps, {
|
|
68
68
|
content: configOrContent,
|
|
69
69
|
...duration !== void 0 && { duration },
|
|
70
|
-
...
|
|
70
|
+
...afterClose !== void 0 && { afterClose }
|
|
71
71
|
});
|
|
72
72
|
} else {
|
|
73
73
|
props = mergeProps(defaultProps, configOrContent || {});
|
|
@@ -76,10 +76,8 @@ var show = (configOrContent, duration, onClose) => {
|
|
|
76
76
|
import_toast.default,
|
|
77
77
|
{
|
|
78
78
|
...props,
|
|
79
|
-
|
|
80
|
-
var _a2;
|
|
79
|
+
onCancel: () => {
|
|
81
80
|
currentHandler = null;
|
|
82
|
-
(_a2 = props.onClose) == null ? void 0 : _a2.call(props);
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
83
|
);
|
|
@@ -125,17 +123,17 @@ var clear = () => {
|
|
|
125
123
|
currentTimeout = null;
|
|
126
124
|
}
|
|
127
125
|
};
|
|
128
|
-
var success = (content, duration,
|
|
129
|
-
return show({ content, icon: "success", duration,
|
|
126
|
+
var success = (content, duration, afterClose) => {
|
|
127
|
+
return show({ content, icon: "success", duration, afterClose });
|
|
130
128
|
};
|
|
131
|
-
var info = (content, duration,
|
|
132
|
-
return show({ content, icon: "info", duration,
|
|
129
|
+
var info = (content, duration, afterClose) => {
|
|
130
|
+
return show({ content, icon: "info", duration, afterClose });
|
|
133
131
|
};
|
|
134
|
-
var loading = (content, duration,
|
|
135
|
-
return show({ content, icon: "loading", duration,
|
|
132
|
+
var loading = (content, duration, afterClose) => {
|
|
133
|
+
return show({ content, icon: "loading", duration, afterClose });
|
|
136
134
|
};
|
|
137
|
-
var fail = (content, duration,
|
|
138
|
-
return show({ content, icon: "error", duration,
|
|
135
|
+
var fail = (content, duration, afterClose) => {
|
|
136
|
+
return show({ content, icon: "error", duration, afterClose });
|
|
139
137
|
};
|
|
140
138
|
var hide = () => {
|
|
141
139
|
clear();
|
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(renderImperatively_exports);
|
|
|
39
39
|
var ReactDOM = __toESM(require("react-dom"));
|
|
40
40
|
var import_client = require("react-dom/client");
|
|
41
41
|
var import_react = __toESM(require("react"));
|
|
42
|
-
var MARK = "
|
|
42
|
+
var MARK = "__pisell_react_root__";
|
|
43
43
|
function render(node, container) {
|
|
44
44
|
const root = container[MARK] || (0, import_client.createRoot)(container);
|
|
45
45
|
root.render(node);
|
|
@@ -80,22 +80,22 @@ function renderToBody(element) {
|
|
|
80
80
|
}
|
|
81
81
|
function renderImperatively(element) {
|
|
82
82
|
const Wrapper = import_react.default.forwardRef((_, ref) => {
|
|
83
|
-
const [
|
|
83
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
84
84
|
const closedRef = (0, import_react.useRef)(false);
|
|
85
85
|
const [elementToRender, setElementToRender] = (0, import_react.useState)(element);
|
|
86
86
|
const keyRef = (0, import_react.useRef)(0);
|
|
87
87
|
(0, import_react.useEffect)(() => {
|
|
88
88
|
if (!closedRef.current) {
|
|
89
|
-
|
|
89
|
+
setOpen(true);
|
|
90
90
|
} else {
|
|
91
91
|
afterClose();
|
|
92
92
|
}
|
|
93
93
|
}, []);
|
|
94
|
-
function
|
|
94
|
+
function onCancel() {
|
|
95
95
|
var _a, _b;
|
|
96
96
|
closedRef.current = true;
|
|
97
|
-
|
|
98
|
-
(_b = (_a = elementToRender.props).
|
|
97
|
+
setOpen(false);
|
|
98
|
+
(_b = (_a = elementToRender.props).onCancel) == null ? void 0 : _b.call(_a);
|
|
99
99
|
}
|
|
100
100
|
function afterClose() {
|
|
101
101
|
var _a, _b;
|
|
@@ -103,7 +103,7 @@ function renderImperatively(element) {
|
|
|
103
103
|
(_b = (_a = elementToRender.props).afterClose) == null ? void 0 : _b.call(_a);
|
|
104
104
|
}
|
|
105
105
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
106
|
-
close:
|
|
106
|
+
close: onCancel,
|
|
107
107
|
replace: (element2) => {
|
|
108
108
|
var _a, _b;
|
|
109
109
|
keyRef.current++;
|
|
@@ -114,8 +114,8 @@ function renderImperatively(element) {
|
|
|
114
114
|
return import_react.default.cloneElement(elementToRender, {
|
|
115
115
|
...elementToRender.props,
|
|
116
116
|
key: keyRef.current,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
open,
|
|
118
|
+
onCancel,
|
|
119
119
|
afterClose
|
|
120
120
|
});
|
|
121
121
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
|
|
4
|
+
export interface ToastProps {
|
|
5
|
+
/** Toast 类型 */
|
|
6
|
+
icon?: ToastType | React.ReactNode;
|
|
7
|
+
/** 显示的内容,支持文本或 React 节点 */
|
|
8
|
+
content: React.ReactNode;
|
|
9
|
+
/** 是否显示 */
|
|
10
|
+
open?: boolean;
|
|
11
|
+
/** 自动关闭时间,单位毫秒,0 表示不自动关闭 */
|
|
12
|
+
duration?: number;
|
|
13
|
+
/** 关闭 */
|
|
14
|
+
onCancel?: () => void;
|
|
15
|
+
/** 关闭后回调 */
|
|
16
|
+
afterClose?: () => void;
|
|
17
|
+
/** 自定义样式类名 */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** 自定义样式 */
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
/** 是否显示遮罩 */
|
|
22
|
+
mask?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const Toast: React.FC<ToastProps>;
|
|
25
|
+
export default Toast;
|
|
@@ -47,11 +47,10 @@ var icons = {
|
|
|
47
47
|
};
|
|
48
48
|
var Toast = ({
|
|
49
49
|
content,
|
|
50
|
-
|
|
50
|
+
open,
|
|
51
51
|
icon,
|
|
52
52
|
className,
|
|
53
|
-
|
|
54
|
-
style
|
|
53
|
+
...rest
|
|
55
54
|
}) => {
|
|
56
55
|
const iconElement = (0, import_react.useMemo)(() => {
|
|
57
56
|
if (icon === null || icon === void 0) return null;
|
|
@@ -70,21 +69,18 @@ var Toast = ({
|
|
|
70
69
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
71
70
|
import_modal.default,
|
|
72
71
|
{
|
|
73
|
-
open
|
|
72
|
+
open,
|
|
74
73
|
footer: null,
|
|
75
74
|
closable: false,
|
|
76
75
|
centered: true,
|
|
77
76
|
maskTransitionName: "",
|
|
78
77
|
transitionName: "",
|
|
79
|
-
getContainer: () => document.body,
|
|
80
78
|
wrapClassName: "pisell-square-toast-wrap",
|
|
81
79
|
className: (0, import_classnames.default)("pisell-square-toast-modal", className),
|
|
82
|
-
width: "auto",
|
|
83
|
-
style: { textAlign: "center", ...style },
|
|
84
80
|
bodyStyle: { padding: 0 },
|
|
85
|
-
mask,
|
|
86
81
|
destroyOnClose: true,
|
|
87
|
-
modalRender: () => /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-square-toast` }, iconElement && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-square-toast-icon-wrapper" }, iconElement), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-square-toast-content" }, content))
|
|
82
|
+
modalRender: () => /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-square-toast` }, iconElement && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-square-toast-icon-wrapper" }, iconElement), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-square-toast-content" }, content)),
|
|
83
|
+
...rest
|
|
88
84
|
}
|
|
89
85
|
);
|
|
90
86
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface InputItem {
|
|
2
|
+
start_date: string;
|
|
3
|
+
end_date: string;
|
|
4
|
+
total: number;
|
|
5
|
+
num: number;
|
|
6
|
+
}
|
|
7
|
+
interface OutputItem {
|
|
8
|
+
start_date: string;
|
|
9
|
+
end_date: string;
|
|
10
|
+
total: number;
|
|
11
|
+
num: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function formatDateRanges(list: InputItem[]): OutputItem[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface IProps {
|
|
4
|
+
isShowImage?: boolean;
|
|
5
|
+
dataSource: {
|
|
6
|
+
image?: string;
|
|
7
|
+
bundle?: any[];
|
|
8
|
+
options?: any[];
|
|
9
|
+
product_option_string?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
symbol?: string;
|
|
12
|
+
price?: string | number;
|
|
13
|
+
total?: number;
|
|
14
|
+
origin_total?: number;
|
|
15
|
+
num?: number;
|
|
16
|
+
holder_id?: any;
|
|
17
|
+
};
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
/** 作为主商品卡片展示
|
|
20
|
+
* 1. 影响商品数量 tag 的位置
|
|
21
|
+
* 2. isMain 且 type 为 a5,展示holder
|
|
22
|
+
*/
|
|
23
|
+
isMainProduct?: boolean;
|
|
24
|
+
type?: 'a2' | 'a5';
|
|
25
|
+
}
|
|
26
|
+
declare const BasicInfo: (props: IProps) => JSX.Element;
|
|
27
|
+
export default BasicInfo;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 金额是否是负
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {string} type
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2024-11-22 10:01
|
|
8
|
+
*/
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
|
+
/**
|
|
11
|
+
* @title: 金额格式化
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {number} price
|
|
14
|
+
* @param {string} amountSymbol
|
|
15
|
+
* @param {number} digit
|
|
16
|
+
* @return {*}
|
|
17
|
+
* @Author: WangHan
|
|
18
|
+
* @Date: 2024-11-22 10:58
|
|
19
|
+
*/
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
interface IProps {
|
|
3
|
+
hideDivider?: boolean;
|
|
4
|
+
dataSource: {
|
|
5
|
+
symbol?: string;
|
|
6
|
+
relation_products?: any[];
|
|
7
|
+
bundle?: any[];
|
|
8
|
+
};
|
|
9
|
+
isShowImage?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Sales: ({ hideDivider, dataSource, isShowImage }: IProps) => JSX.Element | null;
|
|
12
|
+
export default Sales;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare type NativeProps<S extends string = never> = {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
+
};
|
|
7
|
+
declare type PropagationEvent = 'click';
|
|
8
|
+
import './index.less';
|
|
9
|
+
declare type SideType = 'left' | 'right';
|
|
10
|
+
export declare type SwipeActionRef = {
|
|
11
|
+
close: () => void;
|
|
12
|
+
show: (side?: SideType) => void;
|
|
13
|
+
};
|
|
14
|
+
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
+
export declare type Action = {
|
|
16
|
+
key: string | number;
|
|
17
|
+
text: ReactNode;
|
|
18
|
+
color?: ActionColor | string;
|
|
19
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare type SwipeActionProps = {
|
|
22
|
+
rightActions?: Action[];
|
|
23
|
+
leftActions?: Action[];
|
|
24
|
+
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
25
|
+
closeOnTouchOutside?: boolean;
|
|
26
|
+
closeOnAction?: boolean;
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
stopPropagation?: PropagationEvent[];
|
|
29
|
+
onActionsReveal?: (side: SideType) => void;
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
escapeDom?: string;
|
|
32
|
+
} & NativeProps<'--background'>;
|
|
33
|
+
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
34
|
+
rightActions?: Action[] | undefined;
|
|
35
|
+
leftActions?: Action[] | undefined;
|
|
36
|
+
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
37
|
+
closeOnTouchOutside?: boolean | undefined;
|
|
38
|
+
closeOnAction?: boolean | undefined;
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
stopPropagation?: "click"[] | undefined;
|
|
41
|
+
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
42
|
+
onClose?: (() => void) | undefined;
|
|
43
|
+
escapeDom?: string | undefined;
|
|
44
|
+
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
45
|
+
export {};
|