@pisell/materials 2.2.121 → 2.2.123
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 +6 -6
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +154 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +31 -45
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +31 -45
- package/es/components/DragSortList/index.d.ts +1 -1
- package/es/components/MultipleContainersSortList/index.d.ts +1 -1
- package/es/components/Pagination/index.d.ts +2 -2
- package/es/components/auto-complete-number/index.d.ts +2 -1
- package/es/components/badge/index.d.ts +2 -1
- package/es/components/batch-editor/fields/Image/index.d.ts +1 -1
- package/es/components/batch-editor/fields/Text/index.d.ts +1 -1
- package/es/components/batch-editor/fields/index.d.ts +2 -2
- package/es/components/batch-editor/index.d.ts +2 -1
- package/es/components/browserSelect/index.d.ts +1 -1
- package/es/components/calendar/index.d.ts +1 -1
- package/es/components/cardMetricItem/index.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +1 -1
- package/es/components/classicLayout/index.d.ts +2 -1
- package/es/components/colorPicker/index.d.ts +2 -1
- package/es/components/config-provider/index.d.ts +2 -1
- package/es/components/customSelect/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +72 -10
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +2 -1
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +93 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +66 -28
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.js +76 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -4
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceShow/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +2 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +5 -5
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.js +16 -0
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.less +2 -0
- package/es/components/dataSourceComponents/fields/Switch/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Switch/index.js +8 -0
- package/es/components/dataSourceComponents/fields/Switch/type.js +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/es/components/dataSourceComponents/hooks/useActions.js +20 -14
- package/es/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +8 -3
- package/es/components/date-picker/datePickerCpt.d.ts +2 -1
- package/es/components/date-picker/index.d.ts +1 -2
- package/es/components/dropdown/index.d.ts +2 -1
- package/es/components/filter/components/items/index.d.ts +6 -6
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/es/components/filter/components/items/text/index.d.ts +2 -2
- package/es/components/filter/index.d.ts +2 -2
- package/es/components/list/index.d.ts +2 -1
- package/es/components/lowCodePage/index.d.ts +2 -1
- package/es/components/page-header/index.d.ts +1 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
- package/es/components/pisellAlert/index.d.ts +1 -1
- package/es/components/pisellCard/index.d.ts +2 -1
- package/es/components/pisellCountdown/index.d.ts +1 -1
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +2 -1
- package/es/components/pisellDatePicker/index.d.ts +1 -1
- package/es/components/pisellDraggable/components/Remove/Remove.d.ts +2 -2
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +1 -1
- package/es/components/pisellDraggable/index.d.ts +2 -2
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +1 -1
- package/es/components/pisellFloatingPanel/index.d.ts +1 -1
- package/es/components/pisellInformationEntry/Input/index.d.ts +1 -1
- package/es/components/pisellInformationEntry/Scan/index.d.ts +2 -1
- package/es/components/pisellInformationEntry/index.d.ts +1 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +2 -1
- package/es/components/pisellInput/components/Copy/index.d.ts +2 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +2 -1
- package/es/components/pisellInput/index.d.ts +5 -5
- package/es/components/pisellLoading/index.d.ts +2 -2
- package/es/components/pisellModal/components/Information/index.d.ts +1 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +2 -2
- package/es/components/pisellModal/components/MobileModal/index.d.ts +2 -2
- package/es/components/pisellModal/components/PcModal/index.d.ts +1 -1
- package/es/components/pisellModal/components/functions/index.d.ts +15 -5
- package/es/components/pisellModal/components/index.d.ts +3 -4
- package/es/components/pisellModal/index.d.ts +17 -7
- package/es/components/pisellQrcode/index.d.ts +10 -0
- package/es/components/pisellRow/index.d.ts +1 -1
- package/es/components/pisellStatisticList/index.d.ts +1 -1
- package/es/components/pisellTags/index.d.ts +1 -1
- package/es/components/pisellText/index.d.ts +2 -2
- package/es/components/pisellToast/squareToast/renderImperatively.js +41 -16
- package/es/components/pisellTooltip/index.d.ts +2 -1
- package/es/components/pisellUpload/index.d.ts +2 -1
- package/es/components/pisellWalletPassCard/index.d.ts +7 -1
- package/es/components/pisellWalletPassCard/index.js +74 -62
- package/es/components/pisellWalletPassCard/index.less +95 -33
- package/es/components/productCard/components/AmountFooter/index.d.ts +2 -1
- package/es/components/productCard/components/Divider/index.d.ts +2 -1
- package/es/components/productCard/components/Header/EditButton/index.d.ts +2 -1
- package/es/components/productCard/components/MultiDay/index.d.ts +2 -1
- package/es/components/productCard/components/Note/index.d.ts +2 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -1
- package/es/components/productCard/components/Packages/components/options/index.d.ts +2 -1
- package/es/components/productCard/components/Packages/index.d.ts +2 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Time/components/Like/index.d.ts +2 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -1
- package/es/components/qrcode/index.d.ts +2 -1
- package/es/components/radio/index.d.ts +1 -1
- package/es/components/section-footers/index.d.ts +1 -1
- package/es/components/segmented/index.d.ts +2 -1
- package/es/components/select-time/RightPanel/index.d.ts +2 -1
- package/es/components/select-time/index.d.ts +2 -1
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/slider/index.d.ts +2 -1
- package/es/components/sort/components/InlineMenu/index.d.ts +2 -1
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.d.ts +1 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +2 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +2 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +2 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +2 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +2 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +2 -2
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +2 -1
- package/es/components/table/Actions/component/Group/index.d.ts +2 -2
- package/es/components/table/Actions/component/ViewMode/index.d.ts +2 -1
- package/es/components/table/Actions/index.d.ts +2 -2
- package/es/components/table/BasicTable/index.d.ts +2 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +2 -2
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +2 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +2 -2
- package/es/components/table/Gallery/components/VirtualGrid/index.d.ts +1 -1
- package/es/components/table/Header/index.d.ts +1 -1
- package/es/components/table/Summary/index.d.ts +2 -1
- package/es/components/table/Table/SelectField/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +2 -1
- package/es/components/table/Table/fields/date/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/date/index.d.ts +3 -4
- package/es/components/table/Table/fields/image/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/image/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/image/index.d.ts +3 -3
- package/es/components/table/Table/fields/index.d.ts +75 -76
- package/es/components/table/Table/fields/link/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +2 -1
- package/es/components/table/Table/fields/link/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/link/index.d.ts +3 -4
- package/es/components/table/Table/fields/number/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/number/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/number/index.d.ts +3 -4
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +3 -4
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +2 -1
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +3 -4
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +2 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -4
- package/es/components/table/Table/fields/search/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/search/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/search/index.d.ts +3 -4
- package/es/components/table/Table/fields/select/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +2 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/select/index.d.ts +3 -4
- package/es/components/table/Table/fields/text/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/text/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/text/index.d.ts +3 -4
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +2 -1
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +2 -1
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +2 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +3 -4
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -1
- package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -1
- package/es/components/table/TableFilter/SortIcon.d.ts +2 -1
- package/es/components/table/View/index.d.ts +2 -1
- package/es/components/table/hooks/useMergeColumnSetting.d.ts +1 -1
- package/es/components/table/model.d.ts +1 -1
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/versionSelect/index.d.ts +2 -2
- package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -1
- package/es/components/virtual-keyboard/VirtualInput/index.d.ts +1 -1
- package/es/components/walletCard/Guest/index.d.ts +2 -1
- package/es/components/walletCard/Guide/index.d.ts +2 -1
- package/es/components/walletCard/index.d.ts +6 -0
- package/es/components/walletCard/index.js +57 -9
- package/es/components/walletCard/index.less +63 -2
- package/es/index.js +1 -0
- package/es/locales/en-US.js +2 -0
- package/es/locales/zh-CN.js +2 -0
- package/es/locales/zh-TW.js +2 -0
- package/es/utils/hoc.d.ts +5 -5
- package/es/utils/miniRedux.d.ts +1 -1
- package/lib/components/DragSortList/index.d.ts +1 -1
- package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +2 -2
- package/lib/components/auto-complete-number/index.d.ts +2 -1
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/batch-editor/fields/Image/index.d.ts +1 -1
- package/lib/components/batch-editor/fields/Text/index.d.ts +1 -1
- package/lib/components/batch-editor/fields/index.d.ts +2 -2
- package/lib/components/batch-editor/index.d.ts +2 -1
- package/lib/components/browserSelect/index.d.ts +1 -1
- package/lib/components/calendar/index.d.ts +1 -1
- package/lib/components/cardMetricItem/index.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/classicLayout/index.d.ts +2 -1
- package/lib/components/colorPicker/index.d.ts +2 -1
- package/lib/components/config-provider/index.d.ts +2 -1
- package/lib/components/customSelect/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +41 -3
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +2 -1
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +45 -2
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +23 -2
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.js +68 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceShow/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +5 -5
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.js +52 -0
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.less +2 -0
- package/lib/components/dataSourceComponents/fields/Switch/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Switch/index.js +42 -0
- package/lib/components/dataSourceComponents/fields/Switch/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/lib/components/dataSourceComponents/hooks/useActions.js +3 -0
- package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +8 -3
- package/lib/components/date-picker/datePickerCpt.d.ts +2 -1
- package/lib/components/date-picker/index.d.ts +1 -2
- package/lib/components/dropdown/index.d.ts +2 -1
- package/lib/components/filter/components/items/index.d.ts +6 -6
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/index.d.ts +2 -2
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/list/index.d.ts +2 -1
- package/lib/components/lowCodePage/index.d.ts +2 -1
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
- package/lib/components/pisellAlert/index.d.ts +1 -1
- package/lib/components/pisellCard/index.d.ts +2 -1
- package/lib/components/pisellCountdown/index.d.ts +1 -1
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +2 -1
- package/lib/components/pisellDatePicker/index.d.ts +1 -1
- package/lib/components/pisellDraggable/components/Remove/Remove.d.ts +2 -2
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +1 -1
- package/lib/components/pisellDraggable/index.d.ts +2 -2
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +1 -1
- package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
- package/lib/components/pisellInformationEntry/Input/index.d.ts +1 -1
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +2 -1
- package/lib/components/pisellInformationEntry/index.d.ts +1 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +2 -1
- package/lib/components/pisellInput/components/Copy/index.d.ts +2 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +2 -1
- package/lib/components/pisellInput/index.d.ts +5 -5
- package/lib/components/pisellLoading/index.d.ts +2 -2
- package/lib/components/pisellModal/components/Information/index.d.ts +1 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +2 -2
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +2 -2
- package/lib/components/pisellModal/components/PcModal/index.d.ts +1 -1
- package/lib/components/pisellModal/components/functions/index.d.ts +15 -5
- package/lib/components/pisellModal/components/index.d.ts +3 -4
- package/lib/components/pisellModal/index.d.ts +17 -7
- package/lib/components/pisellQrcode/index.d.ts +10 -0
- package/lib/components/pisellRow/index.d.ts +1 -1
- package/lib/components/pisellStatisticList/index.d.ts +1 -1
- package/lib/components/pisellTags/index.d.ts +1 -1
- package/lib/components/pisellText/index.d.ts +2 -2
- package/lib/components/pisellToast/squareToast/renderImperatively.js +38 -24
- package/lib/components/pisellTooltip/index.d.ts +2 -1
- package/lib/components/pisellUpload/index.d.ts +2 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +7 -1
- package/lib/components/pisellWalletPassCard/index.js +54 -33
- package/lib/components/pisellWalletPassCard/index.less +95 -33
- package/lib/components/productCard/components/AmountFooter/index.d.ts +2 -1
- package/lib/components/productCard/components/Divider/index.d.ts +2 -1
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +2 -1
- package/lib/components/productCard/components/MultiDay/index.d.ts +2 -1
- package/lib/components/productCard/components/Note/index.d.ts +2 -1
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -1
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +2 -1
- package/lib/components/productCard/components/Packages/index.d.ts +2 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +2 -1
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -1
- package/lib/components/qrcode/index.d.ts +2 -1
- package/lib/components/radio/index.d.ts +1 -1
- package/lib/components/section-footers/index.d.ts +1 -1
- package/lib/components/segmented/index.d.ts +2 -1
- package/lib/components/select-time/RightPanel/index.d.ts +2 -1
- package/lib/components/select-time/index.d.ts +2 -1
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/slider/index.d.ts +2 -1
- package/lib/components/sort/components/InlineMenu/index.d.ts +2 -1
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.d.ts +1 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +2 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +2 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +2 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +2 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +2 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +2 -2
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +2 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +2 -2
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +2 -1
- package/lib/components/table/Actions/index.d.ts +2 -2
- package/lib/components/table/BasicTable/index.d.ts +2 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +2 -2
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +2 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +2 -2
- package/lib/components/table/Gallery/components/VirtualGrid/index.d.ts +1 -1
- package/lib/components/table/Header/index.d.ts +1 -1
- package/lib/components/table/Summary/index.d.ts +2 -1
- package/lib/components/table/Table/SelectField/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -1
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/date/index.d.ts +3 -4
- package/lib/components/table/Table/fields/image/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/image/index.d.ts +3 -3
- package/lib/components/table/Table/fields/index.d.ts +75 -76
- package/lib/components/table/Table/fields/link/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +2 -1
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/link/index.d.ts +3 -4
- package/lib/components/table/Table/fields/number/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/number/index.d.ts +3 -4
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +3 -4
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +2 -1
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +3 -4
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +2 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -4
- package/lib/components/table/Table/fields/search/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/search/index.d.ts +3 -4
- package/lib/components/table/Table/fields/select/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +2 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/select/index.d.ts +3 -4
- package/lib/components/table/Table/fields/text/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/text/index.d.ts +3 -4
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +2 -1
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +2 -1
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +2 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +3 -4
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -1
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -1
- package/lib/components/table/TableFilter/SortIcon.d.ts +2 -1
- package/lib/components/table/View/index.d.ts +2 -1
- package/lib/components/table/hooks/useMergeColumnSetting.d.ts +1 -1
- package/lib/components/table/model.d.ts +1 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +2 -2
- package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/VirtualInput/index.d.ts +1 -1
- package/lib/components/walletCard/Guest/index.d.ts +2 -1
- package/lib/components/walletCard/Guide/index.d.ts +2 -1
- package/lib/components/walletCard/index.d.ts +6 -0
- package/lib/components/walletCard/index.js +47 -7
- package/lib/components/walletCard/index.less +63 -2
- package/lib/index.js +3 -0
- package/lib/locales/en-US.js +2 -0
- package/lib/locales/zh-CN.js +2 -0
- package/lib/locales/zh-TW.js +2 -0
- package/lib/utils/hoc.d.ts +5 -5
- package/lib/utils/miniRedux.d.ts +1 -1
- package/lowcode/data-source-form/constants.ts +3 -0
- package/lowcode/data-source-form/meta.ts +90 -31
- package/lowcode/data-source-form/utils.ts +132 -19
- package/lowcode/form-item-switch/meta.ts +145 -0
- package/lowcode/form-item-switch/snippets.ts +15 -0
- package/lowcode/wallet-card/meta.ts +21 -3
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -5
- 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/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -14
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -4
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- 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/iconfont/index.d.ts +0 -8
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/page/index.d.ts +0 -6
- 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/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- 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/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 -4
- 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 -7
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/components/Action/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 -4
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/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 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/index.d.ts +0 -4
- package/es/components/translation/index.d.ts +0 -14
- 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/index.d.ts +0 -144
- package/es/locales/en-US.d.ts +0 -308
- package/es/locales/zh-CN.d.ts +0 -303
- package/es/locales/zh-TW.d.ts +0 -303
- package/lib/components/appVersionControl/index.d.ts +0 -5
- 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/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -14
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -4
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- 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/iconfont/index.d.ts +0 -8
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/page/index.d.ts +0 -6
- 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/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- 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/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 -4
- 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 -7
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/components/Action/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 -4
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/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 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/translation/index.d.ts +0 -14
- 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/index.d.ts +0 -144
- package/lib/locales/en-US.d.ts +0 -308
- package/lib/locales/zh-CN.d.ts +0 -303
- package/lib/locales/zh-TW.d.ts +0 -303
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
/**
|
|
6
|
+
* URL参数处理工具方法
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { request } from "../../table/utils";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 从浏览器URL获取查询参数
|
|
13
|
+
* @returns Record<string, string> URL查询参数对象
|
|
14
|
+
*/
|
|
15
|
+
export var getUrlParams = function getUrlParams() {
|
|
16
|
+
var urlSearchParams = new URLSearchParams(window.location.search);
|
|
17
|
+
var urlParams = {};
|
|
18
|
+
urlSearchParams.forEach(function (value, key) {
|
|
19
|
+
urlParams[key] = value;
|
|
20
|
+
});
|
|
21
|
+
return urlParams;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 从URL参数中提取formSettingMeta相关的参数
|
|
26
|
+
* @param urlParams URL查询参数对象,如果不传则自动从浏览器获取
|
|
27
|
+
* @returns 包含business_code、channel_code和isBoard参数的对象
|
|
28
|
+
*/
|
|
29
|
+
export var getFormSettingParams = function getFormSettingParams(urlParams) {
|
|
30
|
+
var params = urlParams || getUrlParams();
|
|
31
|
+
return {
|
|
32
|
+
businessCode: params.businessCode || params.business_code,
|
|
33
|
+
channelCode: params.channelCode || params.channel_code,
|
|
34
|
+
isBoard: params.is_board === '1'
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 根据URL参数更新租户设置数据
|
|
40
|
+
* @param data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
|
|
41
|
+
* @returns Promise<any> 返回更新结果
|
|
42
|
+
*/
|
|
43
|
+
export var updateTenantSettingFromUrl = /*#__PURE__*/function () {
|
|
44
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
45
|
+
var urlParams, businessCode, channelCode, boardCode, requestBody, url;
|
|
46
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
47
|
+
while (1) switch (_context.prev = _context.next) {
|
|
48
|
+
case 0:
|
|
49
|
+
// 从URL获取参数
|
|
50
|
+
debugger;
|
|
51
|
+
urlParams = getFormSettingParams();
|
|
52
|
+
businessCode = urlParams.businessCode;
|
|
53
|
+
channelCode = urlParams.channelCode;
|
|
54
|
+
boardCode = urlParams.isBoard && businessCode && channelCode ? "".concat(businessCode, "+").concat(channelCode) : undefined; // 构建请求体,按照 curl 请求的格式
|
|
55
|
+
requestBody = {
|
|
56
|
+
business_code: businessCode || '',
|
|
57
|
+
channel_code: channelCode || '',
|
|
58
|
+
board_code: boardCode || '',
|
|
59
|
+
data: data
|
|
60
|
+
};
|
|
61
|
+
url = '/tenant/setting';
|
|
62
|
+
return _context.abrupt("return", request.getRequest().post(url, requestBody, {
|
|
63
|
+
headers: {
|
|
64
|
+
'Content-Type': 'application/json'
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
case 8:
|
|
68
|
+
case "end":
|
|
69
|
+
return _context.stop();
|
|
70
|
+
}
|
|
71
|
+
}, _callee);
|
|
72
|
+
}));
|
|
73
|
+
return function updateTenantSettingFromUrl(_x) {
|
|
74
|
+
return _ref.apply(this, arguments);
|
|
75
|
+
};
|
|
76
|
+
}();
|
|
@@ -138,11 +138,10 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
|
|
|
138
138
|
var renderComponent = useMemo(function () {
|
|
139
139
|
var _overlayProps$innerPr;
|
|
140
140
|
// 使用renderMode属性,避免和组件mode冲突
|
|
141
|
-
return /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, otherProps, {
|
|
141
|
+
return /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, overlayProps === null || overlayProps === void 0 ? void 0 : overlayProps.innerProps, otherProps, {
|
|
142
142
|
mode: propsMode,
|
|
143
|
-
renderMode: effectiveMode
|
|
144
|
-
|
|
145
|
-
style: _objectSpread(_objectSpread({}, innerStyle || {}), (overlayProps === null || overlayProps === void 0 || (_overlayProps$innerPr = overlayProps.innerProps) === null || _overlayProps$innerPr === void 0 ? void 0 : _overlayProps$innerPr.style) || {}),
|
|
143
|
+
renderMode: effectiveMode,
|
|
144
|
+
style: _objectSpread(_objectSpread({}, (overlayProps === null || overlayProps === void 0 || (_overlayProps$innerPr = overlayProps.innerProps) === null || _overlayProps$innerPr === void 0 ? void 0 : _overlayProps$innerPr.style) || {}), innerStyle || {}),
|
|
146
145
|
fieldKey: name,
|
|
147
146
|
isVerification: typeobj === null || typeobj === void 0 ? void 0 : typeobj.enabled,
|
|
148
147
|
size: size
|
|
@@ -4,5 +4,5 @@ import { PisellMenuProps } from '../../pisellMenu/types';
|
|
|
4
4
|
* @title: 数据源表单组件
|
|
5
5
|
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
6
|
*/
|
|
7
|
-
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
|
|
7
|
+
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => React.JSX.Element;
|
|
8
8
|
export default DataSourceMenu;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const DataSourceQRCode: (props: any) => JSX.Element;
|
|
1
|
+
declare const DataSourceQRCode: (props: any) => import("react").JSX.Element;
|
|
2
2
|
export default DataSourceQRCode;
|
|
@@ -4,7 +4,7 @@ interface DataSourceTypographyProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare const DataSourceTypography: {
|
|
7
|
-
(props: DataSourceTypographyProps): JSX.Element;
|
|
8
|
-
Text: (props: import("../utils").ParsedProps) => JSX.Element;
|
|
7
|
+
(props: DataSourceTypographyProps): React.JSX.Element;
|
|
8
|
+
Text: (props: import("../utils").ParsedProps) => React.JSX.Element;
|
|
9
9
|
};
|
|
10
10
|
export default DataSourceTypography;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export interface ParsedProps {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
}
|
|
5
|
-
declare const withParseVariables: <P extends ParsedProps>(Component: React.ComponentType<P>, keys: string[]) => (props: P) => JSX.Element;
|
|
5
|
+
declare const withParseVariables: <P extends ParsedProps>(Component: React.ComponentType<P>, keys: string[]) => (props: P) => React.JSX.Element;
|
|
6
6
|
export default withParseVariables;
|
|
@@ -89,6 +89,7 @@ var BaseTable = function BaseTable(props, ref) {
|
|
|
89
89
|
}, [dataSourceKey]);
|
|
90
90
|
useEffect(function () {
|
|
91
91
|
if (dataSourceKeyRef.current) {
|
|
92
|
+
if (dataSource !== null && dataSource !== void 0 && dataSource.fromSettingMeta) return;
|
|
92
93
|
list === null || list === void 0 || list.run(queryPageConfig);
|
|
93
94
|
} else {
|
|
94
95
|
list === null || list === void 0 || list.mutate([]);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface BaseFilterItem {
|
|
3
4
|
name?: string;
|
|
@@ -23,5 +24,5 @@ interface FilterProps {
|
|
|
23
24
|
};
|
|
24
25
|
getInitialValues?: () => Record<string, any>;
|
|
25
26
|
}
|
|
26
|
-
declare const Filter: (props: FilterProps) => JSX.Element;
|
|
27
|
+
declare const Filter: (props: FilterProps) => React.JSX.Element;
|
|
27
28
|
export default Filter;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { FilterItemProps } from '../../../filter/types';
|
|
2
3
|
import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
|
|
3
4
|
export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
|
|
4
|
-
export declare const field2Cpt: (field: Field, item: any, otherProps?: any) => JSX.Element | null;
|
|
5
|
-
export declare const genFilterItems: (list: FilterItemProps[], dataSource?: DataSourceType) => (JSX.Element | null)[];
|
|
5
|
+
export declare const field2Cpt: (field: Field, item: any, otherProps?: any) => React.JSX.Element | null;
|
|
6
|
+
export declare const genFilterItems: (list: FilterItemProps[], dataSource?: DataSourceType) => (React.JSX.Element | null)[];
|
|
6
7
|
export declare const getStoredFilterOrder: (componentId: string) => any;
|
|
7
8
|
export declare const saveFilterOrder: (componentId: string, order: any) => void;
|
|
@@ -41,8 +41,8 @@ export declare type FilterCondition = {
|
|
|
41
41
|
[key: string]: FilterConditionValue;
|
|
42
42
|
} | AndFilterValue;
|
|
43
43
|
declare const useFormat: ({ dataSourceKey, fields }: UseFormatParams) => {
|
|
44
|
-
formatListResult: (res: FormatListResultParams) => ListResult;
|
|
45
|
-
formatListParams: (params: any) => any;
|
|
46
|
-
formatCreateUpdateParams: (params: any) => any;
|
|
44
|
+
formatListResult: (this: unknown, res: FormatListResultParams) => ListResult;
|
|
45
|
+
formatListParams: (this: unknown, params: any) => any;
|
|
46
|
+
formatCreateUpdateParams: (this: unknown, params: any) => any;
|
|
47
47
|
};
|
|
48
48
|
export default useFormat;
|
|
@@ -24,10 +24,10 @@ declare const useTableQuery: (props: DataSourceTableProps, currentSettingHash: s
|
|
|
24
24
|
filter: Record<string, any>;
|
|
25
25
|
sort: string;
|
|
26
26
|
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
getInitialValues: () => Record<string, any>;
|
|
27
|
+
handleValuesChange: (this: unknown, params: Params, allParams: Params) => void;
|
|
28
|
+
refreshData: (this: unknown) => void;
|
|
29
|
+
handleFilterChange: (this: unknown, changedFields: any, allFields: any) => void;
|
|
30
|
+
refreshCurrentPage: (this: unknown) => void;
|
|
31
|
+
getInitialValues: (this: unknown) => Record<string, any>;
|
|
32
32
|
};
|
|
33
33
|
export default useTableQuery;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
|
|
2
|
-
declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
|
|
3
|
+
declare const DataSourceWrapper: (props: DataSourceContextProps) => React.JSX.Element;
|
|
3
4
|
export default DataSourceWrapper;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ColorPickerProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
|
|
4
|
+
declare const ColorPickerReadPretty: (props: ColorPickerProps) => React.JSX.Element;
|
|
4
5
|
export default ColorPickerReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { DateRangePickerProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
|
|
4
|
+
declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => React.JSX.Element;
|
|
4
5
|
export default DateRangePickerReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { IconSelectProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
|
|
4
|
+
declare const IconSelectReadPretty: (props: IconSelectProps) => React.JSX.Element | null;
|
|
4
5
|
export default IconSelectReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const InputReadPretty: (props: InputProps) => JSX.Element;
|
|
4
|
+
declare const InputReadPretty: (props: InputProps) => React.JSX.Element;
|
|
4
5
|
export default InputReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const InputReadPretty: (props: InputProps) => JSX.Element;
|
|
4
|
+
declare const InputReadPretty: (props: InputProps) => React.JSX.Element;
|
|
4
5
|
export default InputReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { JsonProps } from "./type";
|
|
2
3
|
import "./ReadPretty.less";
|
|
3
|
-
declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
|
|
4
|
+
declare const JsonReadPretty: (props: JsonProps) => React.JSX.Element | null;
|
|
4
5
|
export default JsonReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { PasswordProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
|
|
4
|
+
declare const PasswordReadPretty: (props: PasswordProps) => React.JSX.Element;
|
|
4
5
|
export default PasswordReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const InputReadPretty: (props: InputProps) => JSX.Element;
|
|
4
|
+
declare const InputReadPretty: (props: InputProps) => React.JSX.Element;
|
|
4
5
|
export default InputReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextAreaProps } from "./type";
|
|
2
3
|
import "./ReadPretty.less";
|
|
3
|
-
declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
|
|
4
|
+
declare const TextAreaReadPretty: (props: TextAreaProps) => React.JSX.Element;
|
|
4
5
|
export default TextAreaReadPretty;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UrlProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
4
|
export declare const formatUrl: (url: string) => string;
|
|
4
|
-
declare const UrlReadPretty: (props: UrlProps) => JSX.Element;
|
|
5
|
+
declare const UrlReadPretty: (props: UrlProps) => React.JSX.Element;
|
|
5
6
|
export default UrlReadPretty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
3
|
options?: any;
|
|
4
4
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
@@ -7,5 +7,5 @@ declare const SelectWithDataSource: (props: import("antd").SelectProps<any, impo
|
|
|
7
7
|
extraParams?: Record<string, any> | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
dataSource?: any;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default SelectWithDataSource;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Iconfont from "../../../iconfont";
|
|
3
|
+
import "./ReadPretty.less";
|
|
4
|
+
var SwitchReadPretty = function SwitchReadPretty(props) {
|
|
5
|
+
var value = props.value,
|
|
6
|
+
checked = props.checked;
|
|
7
|
+
var isChecked = value !== undefined ? value : checked;
|
|
8
|
+
return isChecked ? /*#__PURE__*/React.createElement(Iconfont, {
|
|
9
|
+
type: "pisell2-check",
|
|
10
|
+
style: {
|
|
11
|
+
color: 'var(--theme-color)',
|
|
12
|
+
fontSize: 20
|
|
13
|
+
}
|
|
14
|
+
}) : null;
|
|
15
|
+
};
|
|
16
|
+
export default SwitchReadPretty;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TimePickerProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
|
|
4
|
+
declare const TimePickerReadPretty: (props: TimePickerProps) => React.JSX.Element;
|
|
4
5
|
export default TimePickerReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TranslationProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
|
|
4
|
+
declare const TranslationReadPretty: (props: TranslationProps) => React.JSX.Element;
|
|
4
5
|
export default TranslationReadPretty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UploadProps } from './type';
|
|
2
3
|
import './ReadPretty.less';
|
|
3
|
-
declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
|
|
4
|
+
declare const UploadReadPretty: (props: UploadProps) => React.JSX.Element | null;
|
|
4
5
|
export default UploadReadPretty;
|
|
@@ -5,7 +5,7 @@ declare const formFieldMap: {
|
|
|
5
5
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
6
6
|
};
|
|
7
7
|
FormItemColorPicker: import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
8
|
-
FormItemDatePicker: import("react").FC<
|
|
8
|
+
FormItemDatePicker: import("react").FC<import("./DatePicker").DataSourceDatePickerProps>;
|
|
9
9
|
FormItemInput: import("react").FC<import("./Input/type").InputProps> & {
|
|
10
10
|
JSON: import("react").FC<any>;
|
|
11
11
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -40,7 +40,7 @@ declare const formFieldMap: {
|
|
|
40
40
|
extraParams?: Record<string, any> | undefined;
|
|
41
41
|
} & {
|
|
42
42
|
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
43
|
+
}) => import("react").JSX.Element;
|
|
44
44
|
FormItemInputNumber: import("react").FC<any>;
|
|
45
45
|
FormItemPercent: import("react").FC<any>;
|
|
46
46
|
FormItemTimePicker: import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -59,11 +59,19 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
63
|
+
options?: any;
|
|
64
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
65
|
+
labelField: string;
|
|
66
|
+
valueField: string;
|
|
67
|
+
extraParams?: Record<string, any> | undefined;
|
|
68
|
+
} & {
|
|
69
|
+
dataSource?: any;
|
|
70
|
+
}) => import("react").JSX.Element) | (import("react").FC<{}> & {
|
|
63
71
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
72
|
} & {
|
|
65
73
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<
|
|
74
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DatePicker").DataSourceDatePickerProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
67
75
|
JSON: import("react").FC<any>;
|
|
68
76
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
69
77
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -87,15 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
|
|
|
87
95
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
96
|
} & {
|
|
89
97
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
90
|
-
}) | ((
|
|
91
|
-
options?: any;
|
|
92
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
93
|
-
labelField: string;
|
|
94
|
-
valueField: string;
|
|
95
|
-
extraParams?: Record<string, any> | undefined;
|
|
96
|
-
} & {
|
|
97
|
-
dataSource?: any;
|
|
98
|
-
}) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
98
|
+
}) | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
99
99
|
onChange: (value: string) => void;
|
|
100
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps
|
|
100
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
101
101
|
export { getFieldComponent, formFieldMap };
|
|
@@ -258,32 +258,38 @@ var useActions = function useActions() {
|
|
|
258
258
|
designModeToast();
|
|
259
259
|
return _context4.abrupt("return", Promise.reject());
|
|
260
260
|
case 3:
|
|
261
|
+
if (!(currentDataSource !== null && currentDataSource !== void 0 && currentDataSource.fromSettingMeta)) {
|
|
262
|
+
_context4.next = 5;
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
return _context4.abrupt("return", Promise.reject());
|
|
266
|
+
case 5:
|
|
261
267
|
if (!isCustomApi) {
|
|
262
|
-
_context4.next =
|
|
268
|
+
_context4.next = 13;
|
|
263
269
|
break;
|
|
264
270
|
}
|
|
265
271
|
actions = getParsedActions();
|
|
266
272
|
if (actions.update) {
|
|
267
|
-
_context4.next =
|
|
273
|
+
_context4.next = 9;
|
|
268
274
|
break;
|
|
269
275
|
}
|
|
270
276
|
return _context4.abrupt("return", {});
|
|
271
|
-
case
|
|
277
|
+
case 9:
|
|
272
278
|
updateApi = genCustomApi(actions === null || actions === void 0 ? void 0 : actions.update);
|
|
273
279
|
return _context4.abrupt("return", updateApi(formatCreateUpdateParams(values)));
|
|
274
|
-
case
|
|
280
|
+
case 13:
|
|
275
281
|
id = (extraParams === null || extraParams === void 0 ? void 0 : extraParams.filterByTk) || (values === null || values === void 0 ? void 0 : values.id);
|
|
276
282
|
if (!(!id || !name)) {
|
|
277
|
-
_context4.next =
|
|
283
|
+
_context4.next = 17;
|
|
278
284
|
break;
|
|
279
285
|
}
|
|
280
286
|
PisellToast({
|
|
281
287
|
content: getText('pisell-action-get-data')
|
|
282
288
|
});
|
|
283
289
|
return _context4.abrupt("return", Promise.reject());
|
|
284
|
-
case
|
|
285
|
-
_context4.prev =
|
|
286
|
-
_context4.next =
|
|
290
|
+
case 17:
|
|
291
|
+
_context4.prev = 17;
|
|
292
|
+
_context4.next = 20;
|
|
287
293
|
return updateNocobaseData({
|
|
288
294
|
key: name,
|
|
289
295
|
data: formatCreateUpdateParams(values),
|
|
@@ -292,18 +298,18 @@ var useActions = function useActions() {
|
|
|
292
298
|
filterByTk: id
|
|
293
299
|
}, extraParams === null || extraParams === void 0 ? void 0 : extraParams.update)
|
|
294
300
|
});
|
|
295
|
-
case
|
|
301
|
+
case 20:
|
|
296
302
|
res = _context4.sent;
|
|
297
303
|
return _context4.abrupt("return", res);
|
|
298
|
-
case
|
|
299
|
-
_context4.prev =
|
|
300
|
-
_context4.t0 = _context4["catch"](
|
|
304
|
+
case 24:
|
|
305
|
+
_context4.prev = 24;
|
|
306
|
+
_context4.t0 = _context4["catch"](17);
|
|
301
307
|
return _context4.abrupt("return", Promise.reject());
|
|
302
|
-
case
|
|
308
|
+
case 27:
|
|
303
309
|
case "end":
|
|
304
310
|
return _context4.stop();
|
|
305
311
|
}
|
|
306
|
-
}, _callee4, null, [[
|
|
312
|
+
}, _callee4, null, [[17, 24]]);
|
|
307
313
|
}));
|
|
308
314
|
return function (_x3) {
|
|
309
315
|
return _ref12.apply(this, arguments);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare type Actions = Collection['actions'];
|
|
1
|
+
import { ActionsItem } from '../dataSourceForm/serve';
|
|
3
2
|
declare const useParseActionsVariable: () => {
|
|
4
|
-
parseActions: (
|
|
3
|
+
parseActions: (this: unknown, actions: {
|
|
4
|
+
get: ActionsItem;
|
|
5
|
+
update: ActionsItem;
|
|
6
|
+
create: ActionsItem;
|
|
7
|
+
delete: ActionsItem;
|
|
8
|
+
list: ActionsItem;
|
|
9
|
+
}, localVariables: Record<string, any>) => Record<string, any>;
|
|
5
10
|
};
|
|
6
11
|
export default useParseActionsVariable;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
|
|
2
3
|
import { Dayjs } from 'dayjs';
|
|
3
4
|
import './index.less';
|
|
4
5
|
interface DatePickerCptProps extends PickerDateProps<Dayjs> {
|
|
5
6
|
showTime: any;
|
|
6
7
|
}
|
|
7
|
-
declare const DatePickerCpt: (props: DatePickerCptProps) => JSX.Element;
|
|
8
|
+
declare const DatePickerCpt: (props: DatePickerCptProps) => React.JSX.Element;
|
|
8
9
|
export default DatePickerCpt;
|
|
@@ -6,8 +6,8 @@ export declare const fieldMaps: {
|
|
|
6
6
|
field_type: string;
|
|
7
7
|
default_value: string;
|
|
8
8
|
};
|
|
9
|
-
Preview: (props: any) => JSX.Element;
|
|
10
|
-
Editor: () => JSX.Element;
|
|
9
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
10
|
+
Editor: () => import("react").JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export declare const fieldList: {
|
|
@@ -23,8 +23,8 @@ export declare const getFieldByType: (type: string) => {
|
|
|
23
23
|
field_type: string;
|
|
24
24
|
default_value: string;
|
|
25
25
|
};
|
|
26
|
-
Preview: (props: any) => JSX.Element;
|
|
27
|
-
Editor: () => JSX.Element;
|
|
26
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
27
|
+
Editor: () => import("react").JSX.Element;
|
|
28
28
|
};
|
|
29
29
|
declare const _default: {
|
|
30
30
|
text: {
|
|
@@ -34,8 +34,8 @@ declare const _default: {
|
|
|
34
34
|
field_type: string;
|
|
35
35
|
default_value: string;
|
|
36
36
|
};
|
|
37
|
-
Preview: (props: any) => JSX.Element;
|
|
38
|
-
Editor: () => JSX.Element;
|
|
37
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
38
|
+
Editor: () => import("react").JSX.Element;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
export default _default;
|