@pisell/materials 1.0.966 → 1.0.968
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +144 -160
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +30 -39
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +30 -39
- package/es/components/PisellProcedure/PisellProcedure.js +345 -0
- package/es/components/PisellProcedure/PisellProcedure.less +376 -0
- package/es/components/PisellProcedure/components/ProcedureAction.js +93 -0
- package/es/components/PisellProcedure/components/ProcedureContent.js +47 -0
- package/es/components/PisellProcedure/components/ProcedureHeader.js +86 -0
- package/es/components/PisellProcedure/components/ProcedureSummary.js +99 -0
- package/es/components/PisellProcedure/hooks/useResponsive.js +56 -0
- package/es/components/PisellProcedure/index.js +8 -0
- package/es/components/PisellProcedure/types.js +1 -0
- package/es/components/PisellSteps/PisellSteps.js +200 -0
- package/es/components/PisellSteps/PisellSteps.less +457 -0
- package/es/components/PisellSteps/index.js +5 -0
- package/es/components/PisellSteps/types.js +1 -0
- package/es/components/Template/[ComponentName].js +1 -0
- package/es/components/Template/[ComponentName].less +1 -0
- package/es/components/Template/index.js +1 -0
- package/es/components/Template/types.js +0 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -2
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +25 -10
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/pisellWalletPassCard/index.js +4 -3
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- 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/walletCard/index.js +5 -4
- package/es/index.js +2 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/PisellProcedure/PisellProcedure.js +264 -0
- package/lib/components/PisellProcedure/PisellProcedure.less +376 -0
- package/lib/components/PisellProcedure/components/ProcedureAction.js +86 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.js +60 -0
- package/lib/components/PisellProcedure/components/ProcedureHeader.js +115 -0
- package/lib/components/PisellProcedure/components/ProcedureSummary.js +96 -0
- package/lib/components/PisellProcedure/hooks/useResponsive.js +63 -0
- package/lib/components/PisellProcedure/index.js +42 -0
- package/lib/components/PisellProcedure/types.js +17 -0
- package/lib/components/PisellSteps/PisellSteps.js +169 -0
- package/lib/components/PisellSteps/PisellSteps.less +457 -0
- package/lib/components/PisellSteps/index.js +41 -0
- package/lib/components/PisellSteps/types.js +17 -0
- package/lib/components/Template/[ComponentName].js +0 -0
- package/lib/components/Template/[ComponentName].less +1 -0
- package/lib/components/Template/index.js +0 -0
- package/lib/components/Template/types.js +0 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +3 -1
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +7 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/pisellWalletPassCard/index.js +4 -3
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- 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/walletCard/index.js +5 -4
- package/lib/index.js +6 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/data-source-form/meta.ts +18 -1
- package/lowcode/pisell-procedure/meta.ts +483 -0
- package/lowcode/pisell-procedure/snippets.ts +230 -0
- package/lowcode/pisell-steps/meta.ts +307 -0
- package/lowcode/pisell-steps/snippets.ts +160 -0
- package/package.json +2 -2
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/es/components/auto-resize-text/index.d.ts +0 -6
- package/es/components/cardPro/index.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -36
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/drag-sort-tree/index.d.ts +0 -3
- package/es/components/filter/types.d.ts +0 -46
- package/es/components/hardwareErrorTip/demo.d.ts +0 -3
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
- package/es/components/hardwareErrorTip/index.d.ts +0 -19
- package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -27
- package/es/components/hardwareErrorTip/types.d.ts +0 -28
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/page/index.d.ts +0 -8
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCamera/index.d.ts +0 -4
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/pisellQrcode/index.d.ts +0 -10
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellText/components/Editable/index.d.ts +0 -29
- package/es/components/pisellText/index.d.ts +0 -9
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/pisellWalletPassCard/index.d.ts +0 -148
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -28
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -99
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/Actions/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/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/SelectHolderModal/index.d.ts +0 -13
- 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/productCard/index.d.ts +0 -7
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -85
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/select/index.d.ts +0 -9
- package/es/components/sortableList/index.d.ts +0 -11
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Actions/index.d.ts +0 -17
- 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/AddFieldModal/index.d.ts +0 -4
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -167
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/table/hooks/useTransColumns.d.ts +0 -14
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/es/components/table/index.d.ts +0 -4
- package/es/components/table/serve.d.ts +0 -13
- package/es/components/table/types.d.ts +0 -270
- package/es/components/tabs/index.d.ts +0 -17
- package/es/components/translation/index.d.ts +0 -15
- package/es/components/versionModal/index.d.ts +0 -24
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/es/components/virtualInput/index.d.ts +0 -23
- package/es/components/walletCard/index.d.ts +0 -79
- package/es/index.d.ts +0 -146
- package/es/locales/en-US.d.ts +0 -344
- package/es/locales/zh-CN.d.ts +0 -339
- package/es/locales/zh-TW.d.ts +0 -339
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/lib/components/auto-resize-text/index.d.ts +0 -6
- package/lib/components/cardPro/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -36
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/drag-sort-tree/index.d.ts +0 -3
- package/lib/components/filter/types.d.ts +0 -46
- package/lib/components/hardwareErrorTip/demo.d.ts +0 -3
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
- package/lib/components/hardwareErrorTip/index.d.ts +0 -19
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -27
- package/lib/components/hardwareErrorTip/types.d.ts +0 -28
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/page/index.d.ts +0 -8
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCamera/index.d.ts +0 -4
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellQrcode/index.d.ts +0 -10
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellText/components/Editable/index.d.ts +0 -29
- package/lib/components/pisellText/index.d.ts +0 -9
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -148
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -28
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -99
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/Actions/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/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/SelectHolderModal/index.d.ts +0 -13
- 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/productCard/index.d.ts +0 -7
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -85
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/sortableList/index.d.ts +0 -11
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Actions/index.d.ts +0 -17
- 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/AddFieldModal/index.d.ts +0 -4
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -167
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/table/hooks/useTransColumns.d.ts +0 -14
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/table/serve.d.ts +0 -13
- package/lib/components/table/types.d.ts +0 -270
- package/lib/components/tabs/index.d.ts +0 -17
- package/lib/components/translation/index.d.ts +0 -15
- package/lib/components/versionModal/index.d.ts +0 -24
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/lib/components/virtualInput/index.d.ts +0 -23
- package/lib/components/walletCard/index.d.ts +0 -79
- package/lib/index.d.ts +0 -146
- package/lib/locales/en-US.d.ts +0 -344
- package/lib/locales/zh-CN.d.ts +0 -339
- package/lib/locales/zh-TW.d.ts +0 -339
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
// PisellSteps 步骤条组件样式
|
|
2
|
+
// 基于 Ant Design Steps 进行样式增强和主题定制
|
|
3
|
+
|
|
4
|
+
// ==================== CSS 变量定义 ====================
|
|
5
|
+
.pisell-steps {
|
|
6
|
+
// 尺寸相关
|
|
7
|
+
--pisell-step-icon-size: 32px;
|
|
8
|
+
--pisell-step-icon-size-small: 24px;
|
|
9
|
+
--pisell-step-title-font-size: 16px;
|
|
10
|
+
--pisell-step-title-font-size-small: 14px;
|
|
11
|
+
--pisell-step-description-font-size: 14px;
|
|
12
|
+
--pisell-step-description-font-size-small: 12px;
|
|
13
|
+
--pisell-step-title-line-height: 24px;
|
|
14
|
+
--pisell-step-title-line-height-small: 20px;
|
|
15
|
+
--pisell-step-description-line-height: 22px;
|
|
16
|
+
--pisell-step-description-line-height-small: 18px;
|
|
17
|
+
|
|
18
|
+
// 状态颜色(根据设计图的 Pisell 主题色)
|
|
19
|
+
--pisell-step-finish-color: #7f56d9; // Primary/600
|
|
20
|
+
--pisell-step-finish-bg: #f4ebff; // Primary/100
|
|
21
|
+
--pisell-step-process-color: #7f56d9; // Primary/600
|
|
22
|
+
--pisell-step-process-bg: #7f56d9; // Primary/600
|
|
23
|
+
--pisell-step-wait-color: rgba(0, 0, 0, 0.45);
|
|
24
|
+
--pisell-step-wait-bg: rgba(0, 0, 0, 0.06);
|
|
25
|
+
--pisell-step-wait-border: rgba(0, 0, 0, 0.25);
|
|
26
|
+
--pisell-step-error-color: #ff4d4f;
|
|
27
|
+
--pisell-step-error-bg: #fff;
|
|
28
|
+
|
|
29
|
+
// 文本颜色
|
|
30
|
+
--pisell-step-text-color: rgba(0, 0, 0, 0.88);
|
|
31
|
+
--pisell-step-text-color-secondary: rgba(0, 0, 0, 0.45);
|
|
32
|
+
|
|
33
|
+
// 间距
|
|
34
|
+
--pisell-step-margin: 16px;
|
|
35
|
+
--pisell-step-margin-xs: 8px;
|
|
36
|
+
--pisell-step-padding-xs: 4px;
|
|
37
|
+
--pisell-step-padding-sm: 12px;
|
|
38
|
+
|
|
39
|
+
// 圆点尺寸
|
|
40
|
+
--pisell-step-dot-size: 8px;
|
|
41
|
+
--pisell-step-dot-size-small: 6px;
|
|
42
|
+
--pisell-step-dot-size-active: 10px;
|
|
43
|
+
--pisell-step-dot-size-active-small: 8px;
|
|
44
|
+
|
|
45
|
+
// 连接器
|
|
46
|
+
--pisell-step-connector-color-finish: var(--pisell-step-finish-color);
|
|
47
|
+
--pisell-step-connector-color-wait: rgba(0, 0, 0, 0.25);
|
|
48
|
+
|
|
49
|
+
// 基础样式
|
|
50
|
+
width: 100%;
|
|
51
|
+
|
|
52
|
+
// ==================== 完成状态样式 ====================
|
|
53
|
+
:global {
|
|
54
|
+
.ant-steps-item-finish {
|
|
55
|
+
.ant-steps-item-icon {
|
|
56
|
+
background-color: var(--pisell-step-finish-bg);
|
|
57
|
+
border-color: var(--pisell-step-finish-color);
|
|
58
|
+
|
|
59
|
+
.ant-steps-icon {
|
|
60
|
+
color: var(--pisell-step-finish-color);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ant-steps-item-title {
|
|
65
|
+
color: var(--pisell-step-text-color);
|
|
66
|
+
font-size: var(--pisell-step-title-font-size);
|
|
67
|
+
line-height: var(--pisell-step-title-line-height);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ant-steps-item-description {
|
|
71
|
+
color: var(--pisell-step-text-color-secondary);
|
|
72
|
+
font-size: var(--pisell-step-description-font-size);
|
|
73
|
+
line-height: var(--pisell-step-description-line-height);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
77
|
+
background-color: var(--pisell-step-connector-color-finish);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ==================== 进行中状态样式 ====================
|
|
82
|
+
.ant-steps-item-process {
|
|
83
|
+
.ant-steps-item-icon {
|
|
84
|
+
background-color: var(--pisell-step-process-bg);
|
|
85
|
+
border-color: var(--pisell-step-process-color);
|
|
86
|
+
|
|
87
|
+
.ant-steps-icon {
|
|
88
|
+
color: #ffffff;
|
|
89
|
+
font-weight: 500;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ant-steps-item-title {
|
|
94
|
+
color: var(--pisell-step-text-color);
|
|
95
|
+
font-size: var(--pisell-step-title-font-size);
|
|
96
|
+
line-height: var(--pisell-step-title-line-height);
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ant-steps-item-description {
|
|
101
|
+
color: var(--pisell-step-text-color);
|
|
102
|
+
font-size: var(--pisell-step-description-font-size);
|
|
103
|
+
line-height: var(--pisell-step-description-line-height);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// ==================== 等待状态样式 ====================
|
|
108
|
+
.ant-steps-item-wait {
|
|
109
|
+
.ant-steps-item-icon {
|
|
110
|
+
background-color: var(--pisell-step-wait-bg);
|
|
111
|
+
border-color: var(--pisell-step-wait-border);
|
|
112
|
+
|
|
113
|
+
.ant-steps-icon {
|
|
114
|
+
color: var(--pisell-step-wait-color);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ant-steps-item-title {
|
|
119
|
+
color: var(--pisell-step-wait-color);
|
|
120
|
+
font-size: var(--pisell-step-title-font-size);
|
|
121
|
+
line-height: var(--pisell-step-title-line-height);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ant-steps-item-description {
|
|
125
|
+
color: var(--pisell-step-wait-color);
|
|
126
|
+
font-size: var(--pisell-step-description-font-size);
|
|
127
|
+
line-height: var(--pisell-step-description-line-height);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
131
|
+
background-color: var(--pisell-step-connector-color-wait);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ==================== 错误状态样式 ====================
|
|
136
|
+
.ant-steps-item-error {
|
|
137
|
+
.ant-steps-item-icon {
|
|
138
|
+
background-color: var(--pisell-step-error-bg);
|
|
139
|
+
border-color: var(--pisell-step-error-color);
|
|
140
|
+
|
|
141
|
+
.ant-steps-icon {
|
|
142
|
+
color: var(--pisell-step-error-color);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ant-steps-item-title {
|
|
147
|
+
color: var(--pisell-step-error-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ant-steps-item-description {
|
|
151
|
+
color: var(--pisell-step-error-color);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
155
|
+
background-color: var(--pisell-step-error-color);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ==================== 小尺寸样式 ====================
|
|
162
|
+
.pisell-steps-small {
|
|
163
|
+
:global {
|
|
164
|
+
.ant-steps-item-icon {
|
|
165
|
+
width: var(--pisell-step-icon-size-small);
|
|
166
|
+
height: var(--pisell-step-icon-size-small);
|
|
167
|
+
line-height: var(--pisell-step-icon-size-small);
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ant-steps-item-title {
|
|
172
|
+
font-size: var(--pisell-step-title-font-size-small) !important;
|
|
173
|
+
line-height: var(--pisell-step-title-line-height-small) !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ant-steps-item-description {
|
|
177
|
+
font-size: var(--pisell-step-description-font-size-small) !important;
|
|
178
|
+
line-height: var(--pisell-step-description-line-height-small) !important;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// ==================== 圆点样式 ====================
|
|
184
|
+
.pisell-steps-dot {
|
|
185
|
+
:global {
|
|
186
|
+
.ant-steps-item-icon {
|
|
187
|
+
width: var(--pisell-step-dot-size);
|
|
188
|
+
height: var(--pisell-step-dot-size);
|
|
189
|
+
border: none;
|
|
190
|
+
|
|
191
|
+
.ant-steps-icon-dot {
|
|
192
|
+
width: var(--pisell-step-dot-size);
|
|
193
|
+
height: var(--pisell-step-dot-size);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 进行中的圆点稍大
|
|
198
|
+
.ant-steps-item-process .ant-steps-item-icon {
|
|
199
|
+
width: var(--pisell-step-dot-size-active);
|
|
200
|
+
height: var(--pisell-step-dot-size-active);
|
|
201
|
+
|
|
202
|
+
.ant-steps-icon-dot {
|
|
203
|
+
width: var(--pisell-step-dot-size-active);
|
|
204
|
+
height: var(--pisell-step-dot-size-active);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// 圆点样式下的文本居中
|
|
209
|
+
.ant-steps-item-content {
|
|
210
|
+
text-align: center;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// 小尺寸圆点
|
|
215
|
+
&.pisell-steps-small {
|
|
216
|
+
:global {
|
|
217
|
+
.ant-steps-item-icon {
|
|
218
|
+
width: var(--pisell-step-dot-size-small);
|
|
219
|
+
height: var(--pisell-step-dot-size-small);
|
|
220
|
+
|
|
221
|
+
.ant-steps-icon-dot {
|
|
222
|
+
width: var(--pisell-step-dot-size-small);
|
|
223
|
+
height: var(--pisell-step-dot-size-small);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ant-steps-item-process .ant-steps-item-icon {
|
|
228
|
+
width: var(--pisell-step-dot-size-active-small);
|
|
229
|
+
height: var(--pisell-step-dot-size-active-small);
|
|
230
|
+
|
|
231
|
+
.ant-steps-icon-dot {
|
|
232
|
+
width: var(--pisell-step-dot-size-active-small);
|
|
233
|
+
height: var(--pisell-step-dot-size-active-small);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// ==================== 隐藏连接器 ====================
|
|
241
|
+
.pisell-steps-no-connector {
|
|
242
|
+
:global {
|
|
243
|
+
.ant-steps-item-tail {
|
|
244
|
+
display: none !important;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// ==================== 响应式样式 ====================
|
|
250
|
+
.pisell-steps-responsive {
|
|
251
|
+
&.pisell-steps-horizontal {
|
|
252
|
+
@media (max-width: 768px) {
|
|
253
|
+
overflow-x: auto;
|
|
254
|
+
overflow-y: hidden;
|
|
255
|
+
|
|
256
|
+
:global {
|
|
257
|
+
.ant-steps-item {
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
min-width: 120px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@media (max-width: 480px) {
|
|
265
|
+
:global {
|
|
266
|
+
.ant-steps-item {
|
|
267
|
+
min-width: 100px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ant-steps-item-title {
|
|
271
|
+
font-size: 14px !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ant-steps-item-description {
|
|
275
|
+
font-size: 12px !important;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// ==================== 竖向标签布局 ====================
|
|
283
|
+
.pisell-steps-label-vertical {
|
|
284
|
+
:global {
|
|
285
|
+
.ant-steps-item-content {
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
align-items: center;
|
|
289
|
+
text-align: center;
|
|
290
|
+
|
|
291
|
+
.ant-steps-item-title {
|
|
292
|
+
padding-top: var(--pisell-step-margin-xs);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// ==================== 图标底部对齐 ====================
|
|
299
|
+
.pisell-steps-icon-bottom {
|
|
300
|
+
&.pisell-steps-vertical {
|
|
301
|
+
:global {
|
|
302
|
+
.ant-steps-item-icon {
|
|
303
|
+
order: 2;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ant-steps-item-content {
|
|
307
|
+
order: 1;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// ==================== 导航类型样式 ====================
|
|
314
|
+
.pisell-steps-navigation {
|
|
315
|
+
:global {
|
|
316
|
+
.ant-steps-item {
|
|
317
|
+
padding-left: 0;
|
|
318
|
+
overflow: visible;
|
|
319
|
+
|
|
320
|
+
&::before {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.ant-steps-item-container {
|
|
325
|
+
padding: var(--pisell-step-padding-xs) var(--pisell-step-margin);
|
|
326
|
+
background-color: #fafafa;
|
|
327
|
+
border-radius: 4px;
|
|
328
|
+
transition: all 0.3s ease;
|
|
329
|
+
|
|
330
|
+
&:hover {
|
|
331
|
+
background-color: #f0f0f0;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&.ant-steps-item-active .ant-steps-item-container {
|
|
336
|
+
background-color: var(--pisell-step-finish-bg);
|
|
337
|
+
box-shadow: 0 2px 4px rgba(127, 86, 217, 0.1);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&.ant-steps-item-finish .ant-steps-item-container:hover {
|
|
341
|
+
background-color: var(--pisell-step-finish-bg);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// ==================== 行内类型样式 ====================
|
|
348
|
+
.pisell-steps-inline {
|
|
349
|
+
:global {
|
|
350
|
+
.ant-steps {
|
|
351
|
+
display: inline-flex;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.ant-steps-item {
|
|
355
|
+
display: inline-flex;
|
|
356
|
+
padding-inline-start: 0;
|
|
357
|
+
|
|
358
|
+
.ant-steps-item-icon {
|
|
359
|
+
margin-right: var(--pisell-step-margin-xs);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.ant-steps-item-content {
|
|
363
|
+
display: inline-block;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// ==================== 可点击步骤样式 ====================
|
|
370
|
+
.pisell-steps {
|
|
371
|
+
:global {
|
|
372
|
+
|
|
373
|
+
// 已完成的步骤可点击
|
|
374
|
+
.ant-steps-item-finish:not(.ant-steps-item-disabled) {
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
|
|
377
|
+
.ant-steps-item-container {
|
|
378
|
+
transition: all 0.3s ease;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&:hover {
|
|
382
|
+
.ant-steps-item-icon {
|
|
383
|
+
border-color: var(--pisell-step-process-color);
|
|
384
|
+
box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.1);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.ant-steps-item-title {
|
|
388
|
+
color: var(--pisell-step-process-color);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// 激活状态
|
|
393
|
+
&:active {
|
|
394
|
+
.ant-steps-item-icon {
|
|
395
|
+
transform: scale(0.95);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// 添加可点击样式类
|
|
401
|
+
.pisell-steps-item-clickable {
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// 禁用状态
|
|
406
|
+
.ant-steps-item-disabled {
|
|
407
|
+
cursor: not-allowed;
|
|
408
|
+
opacity: 0.5;
|
|
409
|
+
|
|
410
|
+
.ant-steps-item-container {
|
|
411
|
+
pointer-events: none;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&:hover {
|
|
415
|
+
|
|
416
|
+
.ant-steps-item-icon,
|
|
417
|
+
.ant-steps-item-title {
|
|
418
|
+
border-color: inherit;
|
|
419
|
+
color: inherit;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// ==================== 动画效果 ====================
|
|
427
|
+
.pisell-steps {
|
|
428
|
+
:global {
|
|
429
|
+
.ant-steps-item {
|
|
430
|
+
transition: all 0.3s ease;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.ant-steps-item-icon {
|
|
434
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ant-steps-item-title,
|
|
438
|
+
.ant-steps-item-description {
|
|
439
|
+
transition: color 0.3s ease;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ant-steps-item-tail::after {
|
|
443
|
+
transition: background-color 0.3s ease;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// ==================== 打印样式优化 ====================
|
|
449
|
+
@media print {
|
|
450
|
+
.pisell-steps {
|
|
451
|
+
:global {
|
|
452
|
+
.ant-steps-item-icon {
|
|
453
|
+
box-shadow: none !important;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// 这里是组件的实现
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// 这里是组件的样式
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// 这里是组件的主入口
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["title", "description", "dataSource", "showTitle", "showDescription", "groupInfoPosition", "variables", "renderMode", "children", "currentValue", "className", "onDataSourceFinish", "formatSubmitValues", "formatInitialValues", "customSubmit", "leaveConfirmConfig"];
|
|
2
|
+
var _excluded = ["title", "description", "dataSource", "showTitle", "showDescription", "groupInfoPosition", "variables", "renderMode", "children", "currentValue", "className", "onDataSourceFinish", "formatSubmitValues", "formatInitialValues", "customSubmit", "beforeSubmit", "leaveConfirmConfig"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
@@ -46,6 +46,7 @@ var BaseForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
46
46
|
formatSubmitValues = props.formatSubmitValues,
|
|
47
47
|
formatInitialValues = props.formatInitialValues,
|
|
48
48
|
customSubmit = props.customSubmit,
|
|
49
|
+
beforeSubmit = props.beforeSubmit,
|
|
49
50
|
leaveConfirmConfig = props.leaveConfirmConfig,
|
|
50
51
|
others = _objectWithoutProperties(props, _excluded);
|
|
51
52
|
var context = useEngineContext();
|
|
@@ -189,7 +190,8 @@ var BaseForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
189
190
|
onDataSourceFinish: onDataSourceFinish,
|
|
190
191
|
formatSubmitValues: formatSubmitValues,
|
|
191
192
|
formatInitialValues: formatInitialValues,
|
|
192
|
-
customSubmit: customSubmit
|
|
193
|
+
customSubmit: customSubmit,
|
|
194
|
+
beforeSubmit: beforeSubmit
|
|
193
195
|
}, /*#__PURE__*/React.createElement(Form, _extends({}, others, {
|
|
194
196
|
className: classNames('pisell-lowcode-data-source-form', className),
|
|
195
197
|
ref: formRef,
|
|
@@ -14,7 +14,8 @@ var FormSettingProvider = function FormSettingProvider(props) {
|
|
|
14
14
|
onDataSourceFinish = props.onDataSourceFinish,
|
|
15
15
|
formatSubmitValues = props.formatSubmitValues,
|
|
16
16
|
formatInitialValues = props.formatInitialValues,
|
|
17
|
-
customSubmit = props.customSubmit
|
|
17
|
+
customSubmit = props.customSubmit,
|
|
18
|
+
beforeSubmit = props.beforeSubmit;
|
|
18
19
|
var value = React.useMemo(function () {
|
|
19
20
|
return {
|
|
20
21
|
renderMode: renderMode,
|
|
@@ -24,9 +25,10 @@ var FormSettingProvider = function FormSettingProvider(props) {
|
|
|
24
25
|
onDataSourceFinish: onDataSourceFinish,
|
|
25
26
|
formatSubmitValues: formatSubmitValues,
|
|
26
27
|
formatInitialValues: formatInitialValues,
|
|
27
|
-
customSubmit: customSubmit
|
|
28
|
+
customSubmit: customSubmit,
|
|
29
|
+
beforeSubmit: beforeSubmit
|
|
28
30
|
};
|
|
29
|
-
}, [renderMode, groupInfoPosition, currentValue, size]);
|
|
31
|
+
}, [renderMode, groupInfoPosition, currentValue, size, beforeSubmit]);
|
|
30
32
|
return /*#__PURE__*/React.createElement(FormSettingContext.Provider, {
|
|
31
33
|
value: value
|
|
32
34
|
}, children);
|
|
@@ -45,7 +45,8 @@ var SubmitButton = function SubmitButton(props) {
|
|
|
45
45
|
renderMode = _useFormSetting.renderMode,
|
|
46
46
|
onDataSourceFinish = _useFormSetting.onDataSourceFinish,
|
|
47
47
|
formatSubmitValues = _useFormSetting.formatSubmitValues,
|
|
48
|
-
customSubmit = _useFormSetting.customSubmit
|
|
48
|
+
customSubmit = _useFormSetting.customSubmit,
|
|
49
|
+
beforeSubmit = _useFormSetting.beforeSubmit;
|
|
49
50
|
var _useCtxActions = useCtxActions(),
|
|
50
51
|
setVisible = _useCtxActions.setVisible,
|
|
51
52
|
refreshTableData = _useCtxActions.refreshTableData;
|
|
@@ -152,7 +153,7 @@ var SubmitButton = function SubmitButton(props) {
|
|
|
152
153
|
// 验证表单并提交
|
|
153
154
|
var handleValideFieldsSubmit = /*#__PURE__*/function () {
|
|
154
155
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
|
|
155
|
-
var allValues, filteredValues, formattedValues, result, afterSubmitFunc;
|
|
156
|
+
var allValues, filteredValues, formattedValues, canSubmit, result, afterSubmitFunc;
|
|
156
157
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
157
158
|
while (1) switch (_context2.prev = _context2.next) {
|
|
158
159
|
case 0:
|
|
@@ -171,10 +172,24 @@ var SubmitButton = function SubmitButton(props) {
|
|
|
171
172
|
});
|
|
172
173
|
}
|
|
173
174
|
filteredValues = filterSystemFields(allValues); // 格式化提交数据
|
|
174
|
-
formattedValues = formatSubmitValues ? formatSubmitValues(filteredValues) : filteredValues;
|
|
175
|
-
|
|
175
|
+
formattedValues = formatSubmitValues ? formatSubmitValues(filteredValues) : filteredValues; // 提交前校验
|
|
176
|
+
if (!beforeSubmit) {
|
|
177
|
+
_context2.next = 14;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
_context2.next = 11;
|
|
181
|
+
return beforeSubmit(formattedValues);
|
|
182
|
+
case 11:
|
|
183
|
+
canSubmit = _context2.sent;
|
|
184
|
+
if (canSubmit) {
|
|
185
|
+
_context2.next = 14;
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
return _context2.abrupt("return");
|
|
189
|
+
case 14:
|
|
190
|
+
_context2.next = 16;
|
|
176
191
|
return onSubmit(formattedValues);
|
|
177
|
-
case
|
|
192
|
+
case 16:
|
|
178
193
|
result = _context2.sent;
|
|
179
194
|
// 数据源提交成功
|
|
180
195
|
if (onDataSourceFinish) {
|
|
@@ -195,20 +210,20 @@ var SubmitButton = function SubmitButton(props) {
|
|
|
195
210
|
}
|
|
196
211
|
}
|
|
197
212
|
setFormFieldsUntouched(form);
|
|
198
|
-
_context2.next =
|
|
213
|
+
_context2.next = 28;
|
|
199
214
|
break;
|
|
200
|
-
case
|
|
201
|
-
_context2.prev =
|
|
215
|
+
case 24:
|
|
216
|
+
_context2.prev = 24;
|
|
202
217
|
_context2.t0 = _context2["catch"](0);
|
|
203
218
|
debugger;
|
|
204
219
|
PisellToast({
|
|
205
220
|
content: "".concat(_context2.t0.message)
|
|
206
221
|
});
|
|
207
|
-
case
|
|
222
|
+
case 28:
|
|
208
223
|
case "end":
|
|
209
224
|
return _context2.stop();
|
|
210
225
|
}
|
|
211
|
-
}, _callee2, null, [[0,
|
|
226
|
+
}, _callee2, null, [[0, 24]]);
|
|
212
227
|
}));
|
|
213
228
|
return function handleValideFieldsSubmit(_x2) {
|
|
214
229
|
return _ref2.apply(this, arguments);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string | undefined;
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
2
|
+
dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
|
|
4
4
|
};
|
|
5
5
|
export default useDataSourceKey;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|