@pisell/materials 6.6.1 → 6.7.1
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 +3 -3
- package/build/lowcode/preview.js +145 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +24 -24
- package/es/components/appVersionControl/index.d.ts +4 -0
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -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.Mobile/WithMode.d.ts +17 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -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/Select/index.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/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Upload/index.js +4 -3
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -7
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +18 -5
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/filter/types.d.ts +46 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/page/index.d.ts +9 -0
- package/es/components/page/index.js +5 -6
- package/es/components/pisell-config-provider/index.d.ts +13 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +4 -0
- package/es/components/pisellCardList/index.d.ts +103 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellGoodPassCard/index.d.ts +50 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellLoading/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/pisellQrcode/index.d.ts +10 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/pisellText/components/Editable/index.d.ts +29 -0
- package/es/components/pisellText/components/Editable/index.js +130 -0
- package/es/components/pisellText/components/Editable/index.less +40 -0
- package/es/components/pisellText/index.d.ts +9 -0
- package/es/components/pisellText/index.js +2 -0
- package/es/components/pisellToast/index.d.ts +17 -0
- package/es/components/pisellWalletPassCard/index.d.ts +136 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -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/basicInfo/index.js +2 -3
- 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/holders/index.js +2 -19
- package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -15
- 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 +4 -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/timeRange/index.d.ts +7 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/index.js +3 -5
- package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/es/components/productCard/cartSkuCard/locales.js +3 -6
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
- package/es/components/productCard/components/Header/index.d.ts +3 -0
- package/es/components/productCard/components/MultiDay/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/Sales/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
- package/es/components/productCard/components/Time/index.d.ts +3 -0
- package/es/components/productCard/index.d.ts +7 -0
- package/es/components/productCard/index.js +1 -3
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/status.js +0 -1
- package/es/components/productCard/types.d.ts +84 -0
- package/es/components/productCard/utils.d.ts +31 -0
- package/es/components/productCard/utils.js +1 -8
- package/es/components/select/index.js +4 -2
- package/es/components/sortableList/index.d.ts +11 -0
- package/es/components/sortableList/index.js +2 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -1
- package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
- package/es/components/table/Actions/component/ExportImport/index.js +55 -27
- package/es/components/table/Actions/index.d.ts +17 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Gallery/index.d.ts +5 -0
- package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/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/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/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/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/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/index.d.ts +4 -0
- package/es/components/table/Table/index.js +7 -3
- package/es/components/table/Table/utils.d.ts +161 -0
- package/es/components/table/hooks/useTableSetting.d.ts +21 -0
- package/es/components/table/hooks/useTransColumns.d.ts +14 -0
- package/es/components/table/hooks/useTransColumns.js +1 -1
- package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/es/components/table/index.d.ts +4 -0
- package/es/components/table/index.js +4 -2
- package/es/components/table/serve.js +8 -0
- package/es/components/table/types.d.ts +268 -0
- package/es/components/tabs/index.js +9 -0
- package/es/components/translation/index.d.ts +14 -0
- package/es/components/versionModal/index.d.ts +23 -0
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +5 -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/virtualInput/index.d.ts +24 -0
- package/es/components/walletCard/index.d.ts +71 -0
- package/es/components/walletCard/index.js +51 -40
- package/es/index.d.ts +145 -0
- package/es/locales/en-US.d.ts +307 -0
- package/es/locales/en-US.js +2 -2
- package/es/locales/zh-CN.d.ts +302 -0
- package/es/locales/zh-CN.js +1 -1
- package/es/locales/zh-TW.d.ts +302 -0
- package/es/locales/zh-TW.js +1 -1
- package/es/typings.d.ts +7 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/appVersionControl/index.d.ts +4 -0
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -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.Mobile/WithMode.d.ts +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -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/Select/index.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/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -7
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +20 -10
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/filter/types.d.ts +46 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/page/index.d.ts +9 -0
- package/lib/components/page/index.js +4 -4
- package/lib/components/pisell-config-provider/index.d.ts +13 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
- package/lib/components/pisellCardList/index.d.ts +103 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellLoading/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/pisellQrcode/index.d.ts +10 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
- package/lib/components/pisellText/components/Editable/index.js +139 -0
- package/lib/components/pisellText/components/Editable/index.less +40 -0
- package/lib/components/pisellText/index.d.ts +9 -0
- package/lib/components/pisellText/index.js +2 -0
- package/lib/components/pisellToast/index.d.ts +17 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +136 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -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/basicInfo/index.js +2 -3
- 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/holders/index.js +2 -14
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -15
- 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 +4 -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/timeRange/index.d.ts +7 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/index.js +2 -3
- package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/lib/components/productCard/cartSkuCard/locales.js +3 -6
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/index.d.ts +3 -0
- package/lib/components/productCard/components/MultiDay/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/Sales/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
- package/lib/components/productCard/components/Time/index.d.ts +3 -0
- package/lib/components/productCard/index.d.ts +7 -0
- package/lib/components/productCard/index.js +0 -1
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/status.js +0 -1
- package/lib/components/productCard/types.d.ts +84 -0
- package/lib/components/productCard/utils.d.ts +31 -0
- package/lib/components/productCard/utils.js +1 -8
- package/lib/components/select/index.js +7 -2
- package/lib/components/sortableList/index.d.ts +11 -0
- package/lib/components/sortableList/index.js +2 -2
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +7 -1
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
- package/lib/components/table/Actions/component/ExportImport/index.js +37 -25
- package/lib/components/table/Actions/index.d.ts +17 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Gallery/index.d.ts +5 -0
- package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/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/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/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/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/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/index.d.ts +4 -0
- package/lib/components/table/Table/index.js +8 -4
- package/lib/components/table/Table/utils.d.ts +161 -0
- package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
- package/lib/components/table/hooks/useTransColumns.d.ts +14 -0
- package/lib/components/table/hooks/useTransColumns.js +1 -1
- package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/lib/components/table/index.d.ts +4 -0
- package/lib/components/table/index.js +4 -2
- package/lib/components/table/serve.js +8 -0
- package/lib/components/table/types.d.ts +268 -0
- package/lib/components/tabs/index.js +5 -0
- package/lib/components/translation/index.d.ts +14 -0
- package/lib/components/versionModal/index.d.ts +23 -0
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +5 -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/virtualInput/index.d.ts +24 -0
- package/lib/components/walletCard/index.d.ts +71 -0
- package/lib/components/walletCard/index.js +47 -29
- package/lib/index.d.ts +145 -0
- package/lib/locales/en-US.d.ts +307 -0
- package/lib/locales/en-US.js +2 -2
- package/lib/locales/zh-CN.d.ts +302 -0
- package/lib/locales/zh-CN.js +1 -1
- package/lib/locales/zh-TW.d.ts +302 -0
- package/lib/locales/zh-TW.js +1 -1
- package/lib/typings.d.ts +7 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/pisell-text.editable/meta.ts +115 -0
- package/lowcode/pisell-text.editable/snippets.ts +15 -0
- package/lowcode/product-card/meta.ts +0 -7
- package/lowcode/product-card/snippets.ts +0 -1
- package/lowcode/sortable-list/meta.ts +1 -1
- package/lowcode/wallet-card/meta.ts +16 -14
- package/package.json +12 -12
- 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
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
|
@@ -36,26 +36,14 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_iconfont = __toESM(require("../../../../iconfont"));
|
|
37
37
|
var import__ = require("../../index");
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
|
-
var import_utils = require("@pisell/utils");
|
|
40
|
-
var holderIconMap = {
|
|
41
|
-
"form": "pisell2-file-05",
|
|
42
|
-
"minors": "pisell2-user-check-01",
|
|
43
|
-
"waiver": "pisell2-file-lock-03"
|
|
44
|
-
};
|
|
45
39
|
var Holders = (props) => {
|
|
46
40
|
const { dataSource = {} } = props;
|
|
47
41
|
const { holders, holder_id } = dataSource;
|
|
48
|
-
if (!holder_id
|
|
49
|
-
if (dataSource.isFormSubject) {
|
|
50
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item unassigned" }, dataSource.holderMaxCount > 1 ? /* @__PURE__ */ import_react.default.createElement("span", null, dataSource.holderMaxCount, "/", dataSource.holderMaxCount, " ") : null, /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, import_utils.locales.getText("pisell2.cart.sku-card.unassigned")));
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
;
|
|
42
|
+
if (!holder_id) return null;
|
|
55
43
|
const renderHolder = (id) => {
|
|
56
44
|
if (!id) return null;
|
|
57
45
|
const holder = holders.find((item) => item.id === id);
|
|
58
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: id }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "holder-icon", type:
|
|
46
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: id }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "holder-icon", type: "pisell2-user-check-01" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, (holder == null ? void 0 : holder.label) || id));
|
|
59
47
|
};
|
|
60
48
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__holders` }, Array.isArray(holder_id) ? holder_id == null ? void 0 : holder_id.map((id) => {
|
|
61
49
|
return renderHolder(id);
|
|
@@ -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) => string | number;
|
|
@@ -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,10 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
import { ProductCardTypes } from '../types';
|
|
3
|
+
interface ISKUCardProps extends ProductCardTypes {
|
|
4
|
+
type: 'a2' | 'a5';
|
|
5
|
+
rightActions: any[];
|
|
6
|
+
escapeDom?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const PREFIX = "pisell-cart-sku-card";
|
|
9
|
+
declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
|
|
10
|
+
export default CartSkuCard;
|
|
@@ -61,7 +61,6 @@ var CartSkuCard = (props) => {
|
|
|
61
61
|
isShowHolder = import_status.defaultValue.isShowHolder,
|
|
62
62
|
isShowNote = import_status.defaultValue.isShowNote,
|
|
63
63
|
isShowDelete = import_status.defaultValue.isShowDelete,
|
|
64
|
-
isShowAmountFooter = import_status.defaultValue.isShowAmountFooter,
|
|
65
64
|
isShowPackageNote = import_status.defaultValue.isShowPackageNote,
|
|
66
65
|
isShowEditProduct = import_status.defaultValue.isShowEditProduct,
|
|
67
66
|
onEditProduct,
|
|
@@ -174,14 +173,14 @@ var CartSkuCard = (props) => {
|
|
|
174
173
|
hideDivider: !!((_a2 = dataSource == null ? void 0 : dataSource.bundle) == null ? void 0 : _a2.length),
|
|
175
174
|
isShowImage
|
|
176
175
|
}
|
|
177
|
-
), ((_b2 = dataSource.items) == null ? void 0 : _b2.length) ? /* @__PURE__ */ import_react.default.createElement(import_MultiDay.default, { dataSource, hideDivider }) :
|
|
176
|
+
), ((_b2 = dataSource.items) == null ? void 0 : _b2.length) ? /* @__PURE__ */ import_react.default.createElement(import_MultiDay.default, { dataSource, hideDivider }) : /* @__PURE__ */ import_react.default.createElement(
|
|
178
177
|
import_AmountFooter.default,
|
|
179
178
|
{
|
|
180
179
|
item: dataSource,
|
|
181
180
|
hideDivider,
|
|
182
181
|
type: "total"
|
|
183
182
|
}
|
|
184
|
-
)
|
|
183
|
+
), isShowNote ? /* @__PURE__ */ import_react.default.createElement(
|
|
185
184
|
import_Note.default,
|
|
186
185
|
{
|
|
187
186
|
...other,
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.discount.reason': string;
|
|
4
|
+
'pisell2.cart.sku-card.more': string;
|
|
5
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
6
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
7
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
8
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
9
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
10
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
11
|
+
'pisell2.product.card.discount.note': string;
|
|
12
|
+
'pisell2.product.card.edit': string;
|
|
13
|
+
'pisell2.product.card.discount.add.note': string;
|
|
14
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
15
|
+
'pisell2.product.card.confirm': string;
|
|
16
|
+
'pisell2.product.card.cancel': string;
|
|
17
|
+
'pisell2.product.card.note.pla': string;
|
|
18
|
+
'pisell2.product.card.items.package': string;
|
|
19
|
+
'pisell2.product.card.view-all': string;
|
|
20
|
+
'pisell2.product.card.view-less': string;
|
|
21
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
22
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
23
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
24
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
25
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
26
|
+
'pisell2.product.card.sales': string;
|
|
27
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
28
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
29
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
30
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
31
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
32
|
+
};
|
|
33
|
+
'zh-CN': {
|
|
34
|
+
'pisell2.product.card.discount.reason': string;
|
|
35
|
+
'pisell2.cart.sku-card.more': string;
|
|
36
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
37
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
38
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
39
|
+
'pisell2.product.card.edit': string;
|
|
40
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
41
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
42
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
43
|
+
'pisell2.product.card.discount.note': string;
|
|
44
|
+
'pisell2.product.card.discount.add.note': string;
|
|
45
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
46
|
+
'pisell2.product.card.confirm': string;
|
|
47
|
+
'pisell2.product.card.cancel': string;
|
|
48
|
+
'pisell2.product.card.note.pla': string;
|
|
49
|
+
'pisell2.product.card.items.package': string;
|
|
50
|
+
'pisell2.product.card.view-all': string;
|
|
51
|
+
'pisell2.product.card.view-less': string;
|
|
52
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
53
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
54
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
55
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
56
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
57
|
+
'pisell2.product.card.sales': string;
|
|
58
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
59
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
60
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
61
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
62
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
63
|
+
};
|
|
64
|
+
'zh-HK': {
|
|
65
|
+
'pisell2.product.card.discount.reason': string;
|
|
66
|
+
'pisell2.cart.sku-card.more': string;
|
|
67
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
68
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
69
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
70
|
+
'pisell2.product.card.edit': string;
|
|
71
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
72
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
73
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
74
|
+
'pisell2.product.card.discount.note': string;
|
|
75
|
+
'pisell2.product.card.discount.add.note': string;
|
|
76
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
77
|
+
'pisell2.product.card.confirm': string;
|
|
78
|
+
'pisell2.product.card.cancel': string;
|
|
79
|
+
'pisell2.product.card.note.pla': string;
|
|
80
|
+
'pisell2.product.card.items.package': string;
|
|
81
|
+
'pisell2.product.card.view-all': string;
|
|
82
|
+
'pisell2.product.card.view-less': string;
|
|
83
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
84
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
85
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
86
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
87
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
88
|
+
'pisell2.product.card.sales': string;
|
|
89
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
90
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
91
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
92
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
93
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export default _default;
|
|
@@ -40,8 +40,7 @@ var locales_default = {
|
|
|
40
40
|
"pisell2.cart.sku-card.more": "more...",
|
|
41
41
|
"pisell2.cart.sku-card.packages.title": "Items in package",
|
|
42
42
|
"pisell2.cart.sku-card.sales.title": "Sales",
|
|
43
|
-
"pisell2.cart.sku-card.actions.delete": "Delete"
|
|
44
|
-
"pisell2.cart.sku-card.unassigned": "Unassigned"
|
|
43
|
+
"pisell2.cart.sku-card.actions.delete": "Delete"
|
|
45
44
|
},
|
|
46
45
|
"zh-CN": {
|
|
47
46
|
...import_locales.default["zh-CN"],
|
|
@@ -49,8 +48,7 @@ var locales_default = {
|
|
|
49
48
|
"pisell2.cart.sku-card.more": "更多……",
|
|
50
49
|
"pisell2.cart.sku-card.packages.title": "包含的商品",
|
|
51
50
|
"pisell2.cart.sku-card.sales.title": "销售",
|
|
52
|
-
"pisell2.cart.sku-card.actions.delete": "删除"
|
|
53
|
-
"pisell2.cart.sku-card.unassigned": "未分配"
|
|
51
|
+
"pisell2.cart.sku-card.actions.delete": "删除"
|
|
54
52
|
},
|
|
55
53
|
"zh-HK": {
|
|
56
54
|
...import_locales.default["zh-HK"],
|
|
@@ -58,7 +56,6 @@ var locales_default = {
|
|
|
58
56
|
"pisell2.cart.sku-card.more": "更多……",
|
|
59
57
|
"pisell2.cart.sku-card.packages.title": "包含的商品",
|
|
60
58
|
"pisell2.cart.sku-card.sales.title": "銷售",
|
|
61
|
-
"pisell2.cart.sku-card.actions.delete": "刪除"
|
|
62
|
-
"pisell2.cart.sku-card.unassigned": "未分配"
|
|
59
|
+
"pisell2.cart.sku-card.actions.delete": "刪除"
|
|
63
60
|
}
|
|
64
61
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
interface SelectHolderModalProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: (value: any) => void;
|
|
6
|
+
lists: any[];
|
|
7
|
+
value: any[];
|
|
8
|
+
holderMaxCount: number;
|
|
9
|
+
addHolderButtonText: string;
|
|
10
|
+
onAdd: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
|
|
13
|
+
export default SelectHolderModal;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
interface ResourceItem {
|
|
3
|
+
id: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
isError?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
interface SelectResourceProps {
|
|
9
|
+
lists: ResourceItem[];
|
|
10
|
+
value: any;
|
|
11
|
+
onChange: (val: any) => void;
|
|
12
|
+
resourceMode?: 'multiple' | 'tags' | undefined;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
isParallelResource?: boolean;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
|
|
18
|
+
export default SelectResource;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
|
|
3
|
+
export default Time;
|
|
@@ -62,7 +62,6 @@ var ProductCard = (props) => {
|
|
|
62
62
|
isShowHolder = import_status.defaultValue.isShowHolder,
|
|
63
63
|
isShowNote = import_status.defaultValue.isShowNote,
|
|
64
64
|
isShowDelete = import_status.defaultValue.isShowDelete,
|
|
65
|
-
isShowAmountFooter = import_status.defaultValue.isShowAmountFooter,
|
|
66
65
|
isShowPackageNote = import_status.defaultValue.isShowPackageNote,
|
|
67
66
|
isShowEditProduct = import_status.defaultValue.isShowEditProduct,
|
|
68
67
|
scenario,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductCardTypes, bundleType, optionType, productType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 套餐数据
|
|
4
|
+
* @description:
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-01-02 23:21
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultBundle: bundleType;
|
|
10
|
+
/**
|
|
11
|
+
* @description: 单规格
|
|
12
|
+
* @return {*}
|
|
13
|
+
* @Author: WangHan
|
|
14
|
+
* @Date: 2025-01-02 23:00
|
|
15
|
+
*/
|
|
16
|
+
export declare const defaultOption: optionType;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 商品商品类型
|
|
19
|
+
* @description:
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: WangHan
|
|
22
|
+
* @Date: 2025-01-02 22:48
|
|
23
|
+
*/
|
|
24
|
+
export declare const defaultProduct: productType;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 默认数据
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2024-12-12 16:49
|
|
31
|
+
*/
|
|
32
|
+
export declare const defaultValue: ProductCardTypes;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare type bundleType = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
num: number;
|
|
5
|
+
price: number;
|
|
6
|
+
total: number;
|
|
7
|
+
origin_total?: number;
|
|
8
|
+
price_type?: string;
|
|
9
|
+
options?: optionType[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description:
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: WangHan
|
|
15
|
+
* @Date: 2025-01-02 23:00
|
|
16
|
+
*/
|
|
17
|
+
export declare type optionType = {
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
num: number;
|
|
21
|
+
price: number;
|
|
22
|
+
total: number;
|
|
23
|
+
origin_total?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title: 商品商品类型
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2025-01-02 22:48
|
|
31
|
+
*/
|
|
32
|
+
export declare type productType = {
|
|
33
|
+
_id: string | number;
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
price: number;
|
|
37
|
+
total: number;
|
|
38
|
+
num: number;
|
|
39
|
+
origin_total?: number;
|
|
40
|
+
image?: string;
|
|
41
|
+
isShowNote?: boolean;
|
|
42
|
+
note?: string;
|
|
43
|
+
like_status?: string;
|
|
44
|
+
bundle?: bundleType[];
|
|
45
|
+
options?: optionType[];
|
|
46
|
+
isShowAction?: boolean;
|
|
47
|
+
actionText?: string;
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
product_option_string?: string;
|
|
50
|
+
discount_reason?: string;
|
|
51
|
+
relation_products?: any[];
|
|
52
|
+
resource_id?: string | number;
|
|
53
|
+
relation_form_name?: string;
|
|
54
|
+
holder_title?: string;
|
|
55
|
+
start_date?: string;
|
|
56
|
+
end_date?: string;
|
|
57
|
+
is_show_duration?: boolean;
|
|
58
|
+
is_show_week?: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 排序总配置
|
|
62
|
+
*/
|
|
63
|
+
export declare type ProductCardTypes = {
|
|
64
|
+
dataSource: productType;
|
|
65
|
+
isShowImage?: boolean;
|
|
66
|
+
isShowHolder?: boolean;
|
|
67
|
+
isShowNote?: boolean;
|
|
68
|
+
isShowPackageNote?: boolean;
|
|
69
|
+
isShowDelete?: boolean;
|
|
70
|
+
disabledEdit?: boolean;
|
|
71
|
+
locale?: string;
|
|
72
|
+
symbol?: string;
|
|
73
|
+
isShowChangeHolder?: boolean;
|
|
74
|
+
isShowChangeResource?: boolean;
|
|
75
|
+
isShowChangeDate?: boolean;
|
|
76
|
+
onAction?: (val: any) => void;
|
|
77
|
+
onDelete?: (val: any) => void;
|
|
78
|
+
onNote?: (val: any) => void;
|
|
79
|
+
onLike?: (val: any) => void;
|
|
80
|
+
onCard?: (val: any) => void;
|
|
81
|
+
onChangeResource?: (val: any) => void;
|
|
82
|
+
osWarnTips?: Array<string>;
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import 'dayjs/locale/zh-cn';
|
|
2
|
+
import 'dayjs/locale/en';
|
|
3
|
+
import 'dayjs/locale/zh-tw';
|
|
4
|
+
/**
|
|
5
|
+
* @title: 是否英文
|
|
6
|
+
* @description:
|
|
7
|
+
* @param {any} item
|
|
8
|
+
* @return {*}
|
|
9
|
+
* @Author: WangHan
|
|
10
|
+
* @Date: 2024-12-28 22:49
|
|
11
|
+
*/
|
|
12
|
+
export declare const isEn: (item: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @title: 跨日预约时间
|
|
15
|
+
* @description:
|
|
16
|
+
* @param {any} item
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: WangHan
|
|
19
|
+
* @Date: 2024-12-28 22:50
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatMultiDayDate: (item: any) => string;
|
|
22
|
+
/**
|
|
23
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
24
|
+
* @description:
|
|
25
|
+
* @param {any} item
|
|
26
|
+
* @param {any} currentDate
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: zhiwei.Wang
|
|
29
|
+
* @Date: 2024-04-26 14:04
|
|
30
|
+
*/
|
|
31
|
+
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
@@ -95,13 +95,6 @@ var getServiceTime = (item, currentDate) => {
|
|
|
95
95
|
} else {
|
|
96
96
|
dateTime = `${startDate.format(dateFormat)} ${startTime} ~ ${endDate.format(dateFormat)} ${endTime}`;
|
|
97
97
|
}
|
|
98
|
-
if (durationType === "days") {
|
|
99
|
-
dateTime = formatMultiDayDate({
|
|
100
|
-
start_date: startDate.format("YYYY-MM-DD"),
|
|
101
|
-
end_date: endDate.format("YYYY-MM-DD"),
|
|
102
|
-
locale
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
98
|
}
|
|
106
99
|
const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
|
|
107
100
|
const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
|
|
@@ -112,7 +105,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
112
105
|
const minutes = _duration % 60;
|
|
113
106
|
durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
|
|
114
107
|
} else if (durationType === "days") {
|
|
115
|
-
durationText =
|
|
108
|
+
durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
|
|
116
109
|
} else {
|
|
117
110
|
durationText = `${_duration}`;
|
|
118
111
|
}
|
|
@@ -51,6 +51,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
51
51
|
options,
|
|
52
52
|
dropdownRender: propsDropdownRender,
|
|
53
53
|
showSearch,
|
|
54
|
+
onSearch,
|
|
54
55
|
styleType,
|
|
55
56
|
optionFilterProp = "value",
|
|
56
57
|
popupClassName,
|
|
@@ -111,7 +112,10 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
111
112
|
size: "middle",
|
|
112
113
|
placeholder: (0, import_locales.getText)("select-dropdown-render-search"),
|
|
113
114
|
value: searchValue,
|
|
114
|
-
onChange: (e) =>
|
|
115
|
+
onChange: (e) => {
|
|
116
|
+
onSearch == null ? void 0 : onSearch(e.target.value);
|
|
117
|
+
setSearchValue(e.target.value);
|
|
118
|
+
},
|
|
115
119
|
bordered: false,
|
|
116
120
|
allowClear: true,
|
|
117
121
|
prefix: /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { style: { color: "#98A2B3" }, type: "pisell2-search-lg" })
|
|
@@ -142,7 +146,8 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
142
146
|
checkboxChecked,
|
|
143
147
|
propsDropdownRender,
|
|
144
148
|
searchValue,
|
|
145
|
-
showSearch
|
|
149
|
+
showSearch,
|
|
150
|
+
onSearch
|
|
146
151
|
]
|
|
147
152
|
);
|
|
148
153
|
if (styleType === "system") {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Props } from "../DragSortList";
|
|
3
|
+
export interface SortableListProps<T> {
|
|
4
|
+
dataSource: Props<T>["list"];
|
|
5
|
+
onChange: Props<T>["onChange"];
|
|
6
|
+
rowKey: Props<T>["rowKey"];
|
|
7
|
+
renderItem?: (item: T, index: number) => React.ReactNode;
|
|
8
|
+
activationConstraint?: Props<T>["activationConstraint"];
|
|
9
|
+
}
|
|
10
|
+
declare const SortableList: React.FC<SortableListProps<any>>;
|
|
11
|
+
export default SortableList;
|
|
@@ -54,8 +54,8 @@ var SortableList = (props) => {
|
|
|
54
54
|
activationConstraint
|
|
55
55
|
},
|
|
56
56
|
(params) => {
|
|
57
|
-
const { item, props: p, attributes, listeners, style } = params;
|
|
58
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { ...p, ...attributes, ...listeners, style }, renderItem == null ? void 0 : renderItem(item));
|
|
57
|
+
const { item, index, props: p, attributes, listeners, style } = params;
|
|
58
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { ...p, ...attributes, ...listeners, style }, renderItem == null ? void 0 : renderItem(item, index));
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
};
|
package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js
CHANGED
|
@@ -27,6 +27,11 @@ var import_locales = require("../../../../../../../locales/index");
|
|
|
27
27
|
var import_serve = require("../../../../../serve");
|
|
28
28
|
var import_status = require("../../../../../status");
|
|
29
29
|
var import_file = require("../../utils/file");
|
|
30
|
+
var exportImportTypeMap = {
|
|
31
|
+
"current-page": "page",
|
|
32
|
+
"all-records": "all",
|
|
33
|
+
"selected-records": "select"
|
|
34
|
+
};
|
|
30
35
|
var _batchExport = async (params) => {
|
|
31
36
|
let { status } = await (0, import_serve.exportData)(params);
|
|
32
37
|
if (status) {
|
|
@@ -42,7 +47,7 @@ var _batchExport = async (params) => {
|
|
|
42
47
|
var batchExport = (exportParams, exportImport) => {
|
|
43
48
|
const { selectLists, apiUrl, otherParams } = exportImport;
|
|
44
49
|
let _name = (0, import_file.getFileDateName)();
|
|
45
|
-
let params = { ...otherParams };
|
|
50
|
+
let params = (otherParams == null ? void 0 : otherParams.export) ? { ...otherParams == null ? void 0 : otherParams.export } : { ...otherParams };
|
|
46
51
|
params.url = apiUrl == null ? void 0 : apiUrl.export;
|
|
47
52
|
console.log("exportParams", exportParams);
|
|
48
53
|
const type = (exportParams == null ? void 0 : exportParams.type) || import_status.defaultOptions.exportType;
|
|
@@ -74,6 +79,7 @@ var batchExport = (exportParams, exportImport) => {
|
|
|
74
79
|
} else {
|
|
75
80
|
params == null ? true : delete params.ids;
|
|
76
81
|
}
|
|
82
|
+
params.export_select = exportImportTypeMap[type];
|
|
77
83
|
return _batchExport(params);
|
|
78
84
|
};
|
|
79
85
|
// Annotate the CommonJS export names for ESM import in node:
|