@pisell/materials 3.3.10 → 3.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.js +8 -8
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/appVersionControl/index.d.ts +4 -0
- package/es/components/auto-complete-number/index.d.ts +1 -0
- package/es/components/badge/index.d.ts +1 -0
- package/es/components/batch-editor/fields/index.d.ts +1 -0
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/cardPro/index.d.ts +1 -0
- package/es/components/checkbox/index.d.ts +1 -0
- package/es/components/classicLayout/index.d.ts +1 -0
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +97 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +18 -18
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/dropdown/index.d.ts +1 -0
- package/es/components/icon/index.js +5 -5
- package/es/components/list/index.js +6 -6
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/pisell-config-provider/index.d.ts +12 -0
- package/es/components/pisellAvatar/index.d.ts +19 -0
- package/es/components/pisellCard/index.d.ts +1 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/es/components/pisellInformationEntry/index.d.ts +33 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/pisellUpload/index.d.ts +1 -0
- package/es/components/productCard/components/Action/index.d.ts +1 -0
- package/es/components/productCard/components/Divider/index.d.ts +1 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts +3 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
- package/es/components/productCard/components/Time/index.d.ts +3 -0
- package/es/components/productCard/components/Time/index.js +2 -2
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +83 -0
- package/es/components/productCard/utils.d.ts +31 -0
- package/es/components/qrcode/index.js +1 -1
- package/es/components/radio/index.d.ts +1 -0
- package/es/components/segmented/index.d.ts +1 -0
- package/es/components/select-time/RightPanel/index.d.ts +1 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/skeleton/index.d.ts +1 -0
- package/es/components/slider/index.d.ts +1 -0
- package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Gallery/index.d.ts +5 -0
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Summary/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/es/components/table/Table/index.d.ts +4 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/utils.d.ts +161 -0
- package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/es/components/table/View/index.d.ts +0 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTableSetting.d.ts +22 -0
- package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/table/types.d.ts +251 -0
- package/es/components/time-picker/index.d.ts +1 -0
- package/es/components/translation/index.js +10 -10
- package/es/components/translation/utils.js +5 -5
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/versionModal/index.d.ts +23 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -0
- package/es/components/walletCard/Guest/index.d.ts +1 -0
- package/es/components/walletCard/index.d.ts +65 -0
- package/es/hooks/useResponsive.js +2 -2
- package/es/index.d.ts +141 -0
- package/es/locales/en-US.d.ts +273 -0
- package/es/locales/zh-CN.d.ts +268 -0
- package/es/locales/zh-TW.d.ts +268 -0
- package/es/utils/hoc.js +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/appVersionControl/index.d.ts +4 -0
- package/lib/components/auto-complete-number/index.d.ts +1 -0
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +1 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/cardPro/index.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/classicLayout/index.d.ts +1 -0
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +97 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/dropdown/index.d.ts +1 -0
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/lowCodePage/index.js +1 -2
- package/lib/components/pisell-config-provider/index.d.ts +12 -0
- package/lib/components/pisellAvatar/index.d.ts +19 -0
- package/lib/components/pisellCard/index.d.ts +1 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/lib/components/pisellInformationEntry/index.d.ts +33 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/pisellUpload/index.d.ts +1 -0
- package/lib/components/productCard/components/Action/index.d.ts +1 -0
- package/lib/components/productCard/components/Divider/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts +3 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
- package/lib/components/productCard/components/Time/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/index.js +6 -2
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +83 -0
- package/lib/components/productCard/utils.d.ts +31 -0
- package/lib/components/radio/index.d.ts +1 -0
- package/lib/components/segmented/index.d.ts +1 -0
- package/lib/components/select-time/RightPanel/index.d.ts +1 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Gallery/index.d.ts +5 -0
- package/lib/components/table/Summary/index.d.ts +1 -0
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/index.d.ts +4 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +161 -0
- package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
- package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/lib/components/table/types.d.ts +251 -0
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/versionModal/index.d.ts +23 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -0
- package/lib/components/walletCard/Guest/index.d.ts +1 -0
- package/lib/components/walletCard/index.d.ts +65 -0
- package/lib/hooks/useResponsive.js +3 -6
- package/lib/index.d.ts +141 -0
- package/lib/locales/en-US.d.ts +273 -0
- package/lib/locales/zh-CN.d.ts +268 -0
- package/lib/locales/zh-TW.d.ts +268 -0
- package/package.json +1 -1
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"table-filter-search": string;
|
|
3
|
+
"table-filter-clear": string;
|
|
4
|
+
"table-filter-filter": string;
|
|
5
|
+
"table-filter-min": string;
|
|
6
|
+
"table-filter-max": string;
|
|
7
|
+
"table-pagination-previous": string;
|
|
8
|
+
"table-pagination-next": string;
|
|
9
|
+
"table-pagination-total": (current: string, total: string) => string;
|
|
10
|
+
"select-dropdown-render-select-all": string;
|
|
11
|
+
"select-dropdown-render-search": string;
|
|
12
|
+
"sort-button-text": string;
|
|
13
|
+
"sort-oldest-to-newest": string;
|
|
14
|
+
"sort-newest-to-oldest": string;
|
|
15
|
+
"sort-a-z": string;
|
|
16
|
+
"sort-z-a": string;
|
|
17
|
+
"sort-from-morning-to-night": string;
|
|
18
|
+
"sort-from-evening-to-morning": string;
|
|
19
|
+
"sort-0-9": string;
|
|
20
|
+
"sort-9-0": string;
|
|
21
|
+
"table-action-filter-button": string;
|
|
22
|
+
"table-action-filter-quick-filter": string;
|
|
23
|
+
"table-action-filter-quick-filter-tip": (count: number) => string;
|
|
24
|
+
"table-action-filter-other-filter": string;
|
|
25
|
+
"table-action-filter-other-filter-tip": () => string;
|
|
26
|
+
"table-action-group-by-title": string;
|
|
27
|
+
"table-action-group-by-title-tip": string;
|
|
28
|
+
"table-action-column-title": string;
|
|
29
|
+
"table-column-group-records": string;
|
|
30
|
+
"table-column-group-lock-tip": string;
|
|
31
|
+
"table-column-drag-sort-disabled-tip": string;
|
|
32
|
+
"table-action-filter-no-filter": string;
|
|
33
|
+
"table-action-range-picker-presets-today": string;
|
|
34
|
+
"table-action-range-picker-presets-yesterday": string;
|
|
35
|
+
"table-action-range-picker-presets-last-3-day": string;
|
|
36
|
+
"table-action-range-picker-presets-last-7-day": string;
|
|
37
|
+
"table-action-range-picker-presets-last-14-day": string;
|
|
38
|
+
"table-action-range-picker-presets-last-30-day": string;
|
|
39
|
+
"table-action-range-picker-presets-last-90-day": string;
|
|
40
|
+
"virtual-keyboard-time-now": string;
|
|
41
|
+
"virtual-keyboard-time-ok": string;
|
|
42
|
+
'batch-editor-batch-edit': string;
|
|
43
|
+
'batch-editor-actions': string;
|
|
44
|
+
'batch-editor-remove': string;
|
|
45
|
+
'batch-editor-price': string;
|
|
46
|
+
'batch-editor-cancel': string;
|
|
47
|
+
'batch-editor-search': string;
|
|
48
|
+
'batch-editor-confirm': string;
|
|
49
|
+
'batch-editor-batch-remove': string;
|
|
50
|
+
'batch-editor-what-price': string;
|
|
51
|
+
'batch-editor-quick-edit': string;
|
|
52
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
53
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
54
|
+
'table-action-export-import-export-success': string;
|
|
55
|
+
'table-action-export-import-button': string;
|
|
56
|
+
'table-action-export-import-export-range': string;
|
|
57
|
+
'table-action-export-import-current-page': string;
|
|
58
|
+
'table-action-export-import-all-records': string;
|
|
59
|
+
'table-action-export-import-selected-records': string;
|
|
60
|
+
'table-action-export-import-selected': string;
|
|
61
|
+
'table-action-export-import-item': (length: number) => string;
|
|
62
|
+
'table-action-export-import-product': string;
|
|
63
|
+
'table-action-export-import-table-text-input-title': string;
|
|
64
|
+
'table-action-export-import-table-text-input-describe': string;
|
|
65
|
+
'table-action-export-import-table-error-file': string;
|
|
66
|
+
'table-action-export-import-import-success': string;
|
|
67
|
+
'table-action-export-import-import-phone': string;
|
|
68
|
+
'table-action-export-import-table-success-download': string;
|
|
69
|
+
'table-action-export-import-table-textimport-product': string;
|
|
70
|
+
'table-action-export-import-table-text-product-template': string;
|
|
71
|
+
'table-action-export-import-table-text-click-download': string;
|
|
72
|
+
'table-action-export-import-table-text-edit-file': string;
|
|
73
|
+
'table-action-export-import-button-import': string;
|
|
74
|
+
'table-action-export-import-cancel': string;
|
|
75
|
+
'table-action-export-import-file-completed': string;
|
|
76
|
+
'table-action-export-import-file-processing': string;
|
|
77
|
+
'table-action-export-import-file-pending': string;
|
|
78
|
+
'table-action-export-import-file-refresh': string;
|
|
79
|
+
'table-action-export-import-export-title': string;
|
|
80
|
+
'table-action-export-import-file-hint': string;
|
|
81
|
+
'table-action-export-import-file-name': string;
|
|
82
|
+
'table-action-export-import-file-content': string;
|
|
83
|
+
'table-action-export-import-file-content-all': string;
|
|
84
|
+
'table-action-export-import-file-content-part': string;
|
|
85
|
+
'table-action-export-import-file-status': string;
|
|
86
|
+
'table-action-export-import-file-account': string;
|
|
87
|
+
'table-action-export-import-file-created': string;
|
|
88
|
+
'table-action-export-import-file-record': (length: number) => string;
|
|
89
|
+
'table-action-export-import-import-title': string;
|
|
90
|
+
'table-action-export-import-log-hint': string;
|
|
91
|
+
'table-action-export-import-log-name': string;
|
|
92
|
+
'table-action-export-import-log-result': string;
|
|
93
|
+
'table-action-export-import-log-ok': (num: number) => string;
|
|
94
|
+
'table-action-export-import-log-err': (num: number) => string;
|
|
95
|
+
'table-action-export-import-log-check': string;
|
|
96
|
+
'table-action-export-import-log-detail-title': string;
|
|
97
|
+
'table-action-export-import-log-err-log': string;
|
|
98
|
+
'table-action-export-import-log-copy': string;
|
|
99
|
+
'table-action-export-import-table-success-copy': string;
|
|
100
|
+
'drag-sort-tree-unavailable-today-tip': string;
|
|
101
|
+
'date-picker-today': string;
|
|
102
|
+
'date-picker-yesterday': string;
|
|
103
|
+
'date-picker-tomorrow': string;
|
|
104
|
+
'date-picker-next_monday': string;
|
|
105
|
+
'date-picker-last_friday': string;
|
|
106
|
+
'date-picker-first_day_of_this_month': string;
|
|
107
|
+
'date-picker-last_day_of_this_month': string;
|
|
108
|
+
'date-picker-first_day_of_next_month': string;
|
|
109
|
+
'date-picker-last_day_of_last_month': string;
|
|
110
|
+
'date-picker-invalid-date': string;
|
|
111
|
+
"date-picker-apply": string;
|
|
112
|
+
'date-picker-shortcut-custom': string;
|
|
113
|
+
'pisell-input-copy-success': string;
|
|
114
|
+
'pisell-input-copy': string;
|
|
115
|
+
'pisell-empty-description-no-data': string;
|
|
116
|
+
'pisell-information-entry-input-search': string;
|
|
117
|
+
'pisell-information-entry-input-confirm': string;
|
|
118
|
+
'pisell-information-entry-scan-exit': string;
|
|
119
|
+
'pisell-wallet-pass-card-detail': string;
|
|
120
|
+
'pisell-wallet-pass-card-edit': string;
|
|
121
|
+
'pisell-wallet-pass-card-name': string;
|
|
122
|
+
'pisell-wallet-pass-card-store-name': string;
|
|
123
|
+
'pisell-wallet-pass-card-balance': string;
|
|
124
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
125
|
+
'pisell-wallet-pass-card-code': string;
|
|
126
|
+
'pisell-wallet-pass-card-valid-to': string;
|
|
127
|
+
'pisell-wallet-pass-card-confirm': string;
|
|
128
|
+
'pisell-wallet-pass-card-cancel': string;
|
|
129
|
+
'pisell-wallet-pass-card-required': string;
|
|
130
|
+
'pisell-wallet-pass-card-expireDate': string;
|
|
131
|
+
'pisell-adjust-price-price-override': string;
|
|
132
|
+
'pisell-adjust-price-discount': string;
|
|
133
|
+
'pisell-adjust-price-discount-amount': string;
|
|
134
|
+
'pisell-adjust-price-discount-percentage': string;
|
|
135
|
+
'pisell-adjust-price-total-after-discount': string;
|
|
136
|
+
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
137
|
+
'pisell-discount-card-title': string;
|
|
138
|
+
'pisell-discount-card-unit': string;
|
|
139
|
+
'pisell-data-source-table-add': string;
|
|
140
|
+
'pisell-data-source-table-edit': string;
|
|
141
|
+
'pisell-data-source-table-detail': string;
|
|
142
|
+
'pisell-data-source-table-delete': string;
|
|
143
|
+
'pisell-record-view-available': string;
|
|
144
|
+
'pisell-record-view-unavailable': string;
|
|
145
|
+
'pisell-data-source-form-required-message': string;
|
|
146
|
+
'pisell-data-source-form-email-message': string;
|
|
147
|
+
'pisell-data-source-form-domain-message': string;
|
|
148
|
+
'pisell-data-source-form-url-message': string;
|
|
149
|
+
'pisell-data-source-form-phone-message': string;
|
|
150
|
+
'pisell-data-source-form-min-length-message': (minLength: number) => string;
|
|
151
|
+
'pisell-data-source-form-max-length-message': (maxLength: number) => string;
|
|
152
|
+
'pisell-data-source-form-min-value-message': (minValue: number) => string;
|
|
153
|
+
'pisell-data-source-form-max-value-message': (maxValue: number) => string;
|
|
154
|
+
'pisell-data-source-form-mobile-message': string;
|
|
155
|
+
'pisell-number-format-thousand': string;
|
|
156
|
+
'pisell-number-format-million': string;
|
|
157
|
+
'pisell-number-format-billion': string;
|
|
158
|
+
'walletCard-done': string;
|
|
159
|
+
'walletCard-qrcode': string;
|
|
160
|
+
'walletCard-barcode': string;
|
|
161
|
+
'pisell-upload-button': string;
|
|
162
|
+
'pisell-upload-setting-size-error': (maxSize: number) => string;
|
|
163
|
+
'pisell-upload-setting-type-error': (type: string) => string;
|
|
164
|
+
'pisell-upload-count-error': (count: number) => string;
|
|
165
|
+
'pisell-upload-error': (name: string) => string;
|
|
166
|
+
'pisell-upload-multilingual-title': string;
|
|
167
|
+
'pisell-upload-multilingual-item-title-original': string;
|
|
168
|
+
'pisell-upload-multilingual-item-title-en': string;
|
|
169
|
+
'pisell-upload-multilingual-item-title-zh-CN': string;
|
|
170
|
+
'pisell-upload-multilingual-item-title-zh-HK': string;
|
|
171
|
+
'pisell-color-picker-default': string;
|
|
172
|
+
'pisell-action-get-data': string;
|
|
173
|
+
'pisell-action-delete-success': string;
|
|
174
|
+
'pisell-action-delete-failed': string;
|
|
175
|
+
'walletCard-piont': string;
|
|
176
|
+
'walletCard-rechargeable': string;
|
|
177
|
+
'walletCard-voucher': string;
|
|
178
|
+
'walletCard-discount': string;
|
|
179
|
+
'pisellQrcode-done': string;
|
|
180
|
+
'pisellQrcode-qrcode': string;
|
|
181
|
+
'pisell-delete-confirm-title': string;
|
|
182
|
+
'pisell-delete-confirm-content': string;
|
|
183
|
+
'pisell-delete-confirm-ok': string;
|
|
184
|
+
'pisell-delete-confirm-cancel': string;
|
|
185
|
+
'pisell-design-mode-action-disabled': string;
|
|
186
|
+
'pisell-translation-original': string;
|
|
187
|
+
'pisell-version-modal-title': string;
|
|
188
|
+
'pisell-version-modal-current-version': string;
|
|
189
|
+
'pisell-version-modal-version': string;
|
|
190
|
+
'pisell-version-modal-update-notes': string;
|
|
191
|
+
'pisell-version-modal-patch': string;
|
|
192
|
+
'pisell-version-modal-minor': string;
|
|
193
|
+
'pisell-version-modal-major': string;
|
|
194
|
+
'pisell-version-modal-custom': string;
|
|
195
|
+
'pisell-version-modal-cancel': string;
|
|
196
|
+
'pisell-version-modal-confirm': string;
|
|
197
|
+
'pisell-version-modal-describe-update-notes': string;
|
|
198
|
+
'pisell-version-modal-version-error': string;
|
|
199
|
+
'pisell-version-modal-version-required': string;
|
|
200
|
+
'pisell-version-modal-based-on-version': string;
|
|
201
|
+
'subdomain-error-too-short': string;
|
|
202
|
+
'subdomain-error-too-long': string;
|
|
203
|
+
'subdomain-error-pattern': string;
|
|
204
|
+
'subdomain-error-numbers-only': string;
|
|
205
|
+
'subdomain-error-hyphen-ends': string;
|
|
206
|
+
'subdomain-error-consecutive-hyphens': string;
|
|
207
|
+
'pisell-icon-select-placeholder': string;
|
|
208
|
+
'pisell-icon-select-outlined': string;
|
|
209
|
+
'pisell-icon-select-filled': string;
|
|
210
|
+
'pisell-icon-select-two-tone': string;
|
|
211
|
+
'pisell-icon-select-iconfont': string;
|
|
212
|
+
'pisell-icon-select-search': string;
|
|
213
|
+
'pisell-icon-select-select': string;
|
|
214
|
+
'pisell-lowcode-app-version-control-live': string;
|
|
215
|
+
'pisell-lowcode-app-version-control-draft': string;
|
|
216
|
+
'pisell-lowcode-app-version-control-deprecated': string;
|
|
217
|
+
'pisell-lowcode-app-version-control-new-version': string;
|
|
218
|
+
'pisell-lowcode-app-version-control-promote-to-live': string;
|
|
219
|
+
'pisell-lowcode-app-version-control-promote-version': (version: string) => string;
|
|
220
|
+
'pisell-lowcode-app-version-control-promote-version-describe': string;
|
|
221
|
+
'pisell-lowcode-app-version-control-promote-version-ok': string;
|
|
222
|
+
'pisell-lowcode-app-version-control-promote-version-cancel': string;
|
|
223
|
+
'pisell-lowcode-app-version-control-version-exists': string;
|
|
224
|
+
'pisell-lowcode-drop-sort-add': string;
|
|
225
|
+
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
226
|
+
'pisell-lowcode-navigation-menu-add-page': string;
|
|
227
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
228
|
+
'pisell-lowcode-navigation-menu-tag-base': string;
|
|
229
|
+
'pisell-lowcode-navigation-menu-tag-pisell1': string;
|
|
230
|
+
'pisell-data-source-form-app-identifier-pattern': string;
|
|
231
|
+
'pisell-data-source-form-app-identifier-start-with-letter': string;
|
|
232
|
+
'pisell-data-source-form-app-identifier-special-ends': string;
|
|
233
|
+
'pisell-data-source-form-app-identifier-consecutive-special': string;
|
|
234
|
+
"qrscanner-loading": string;
|
|
235
|
+
"qrscanner-success": string;
|
|
236
|
+
"qrscanner-success-qrcode": string;
|
|
237
|
+
"qrscanner-success-barcode": string;
|
|
238
|
+
"qrscanner-error-upload-image": string;
|
|
239
|
+
"qrscanner-error-load-failed": string;
|
|
240
|
+
"qrscanner-error-no-code": string;
|
|
241
|
+
"qrscanner-error-camera-init": string;
|
|
242
|
+
"qrscanner-error-process-image": string;
|
|
243
|
+
'pisell-login-and-register-title': string;
|
|
244
|
+
'pisell-login-and-register-subtitle': string;
|
|
245
|
+
'pisell-login-and-register-email-label': string;
|
|
246
|
+
'pisell-login-and-register-email-placeholder': string;
|
|
247
|
+
'pisell-login-and-register-password-label': string;
|
|
248
|
+
'pisell-login-and-register-password-placeholder': string;
|
|
249
|
+
'pisell-login-and-register-email-error': string;
|
|
250
|
+
'pisell-login-and-register-email-error-valid': string;
|
|
251
|
+
'pisell-login-and-register-password-error': string;
|
|
252
|
+
'pisell-login-and-register-login': string;
|
|
253
|
+
'pisell-login-and-register-google': string;
|
|
254
|
+
'pisell-login-and-register-facebook': string;
|
|
255
|
+
'pisell-login-and-register-apple': string;
|
|
256
|
+
'pisell-login-and-register-sign-up': string;
|
|
257
|
+
'pisell-login-and-register-login-tab': string;
|
|
258
|
+
'pisell-login-and-register-register-tab': string;
|
|
259
|
+
'pisell-login-and-register-register-email-placeholder': string;
|
|
260
|
+
'pisell-login-and-register-register-password-placeholder': string;
|
|
261
|
+
'pisell-login-and-register-register-button-text': string;
|
|
262
|
+
'pisell-login-and-register-remember-me': string;
|
|
263
|
+
'pisell-login-and-register-forgot-password': string;
|
|
264
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
265
|
+
'pisell2.text.goodpass.view-more': string;
|
|
266
|
+
'pisell2.text.goodpass.save': string;
|
|
267
|
+
};
|
|
268
|
+
export default _default;
|
package/es/utils/hoc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
function _typeof(
|
|
2
|
+
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); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { get, set, has } from 'lodash';
|
|
5
5
|
import dayjs from "dayjs";
|
package/es/utils/miniRedux.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
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
2
|
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); }
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
10
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
-
function _iterableToArrayLimit(
|
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
import React, { createContext, useCallback, useReducer } from 'react';
|
|
15
15
|
export default (function (_ref2) {
|
|
@@ -23,7 +23,6 @@ export default (function (_ref2) {
|
|
|
23
23
|
var Context = /*#__PURE__*/createContext({});
|
|
24
24
|
var Provider = function Provider(ComponentUi) {
|
|
25
25
|
var Components = function Components(props, ref) {
|
|
26
|
-
var _objectSpread2, _ref5;
|
|
27
26
|
var _useReducer = useReducer(function (state, _ref3) {
|
|
28
27
|
var type = _ref3.type,
|
|
29
28
|
payload = _ref3.payload;
|
|
@@ -48,14 +47,14 @@ export default (function (_ref2) {
|
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
49
|
}, []);
|
|
51
|
-
var _props = _objectSpread(_objectSpread({}, props), {}, (
|
|
50
|
+
var _props = _objectSpread(_objectSpread({}, props), {}, _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch));
|
|
52
51
|
var _ref = ref;
|
|
53
52
|
// if (_props.forwardedRef) {
|
|
54
53
|
// _ref = _props.forwardedRef;
|
|
55
54
|
// delete _props.forwardedRef;
|
|
56
55
|
// }
|
|
57
56
|
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
58
|
-
value: (
|
|
57
|
+
value: _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch)
|
|
59
58
|
}, /*#__PURE__*/React.createElement(ComponentUi, _extends({}, _props, {
|
|
60
59
|
ref: _ref
|
|
61
60
|
})));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { ModeType } from './type';
|
|
4
|
+
import './style.less';
|
|
5
|
+
export interface WithModeProps {
|
|
6
|
+
renderMode?: ModeType;
|
|
7
|
+
value?: any;
|
|
8
|
+
onChange?: (value: any) => void;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @title: 增加renderMode属性
|
|
13
|
+
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
+
* @return: *
|
|
15
|
+
* @Author: shengjie.zuo
|
|
16
|
+
* @Date: 2024-11-23 17:13:18
|
|
17
|
+
*/
|
|
18
|
+
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
+
renderMode: ModeType;
|
|
20
|
+
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
+
export interface WithFormItemProps {
|
|
22
|
+
name: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
mode?: ModeType;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
+
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
+
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @title: 追加formItem层
|
|
32
|
+
* @description:
|
|
33
|
+
* @return: *
|
|
34
|
+
* @Author: shengjie.zuo
|
|
35
|
+
* @Date: 2024-11-23 17:14:25
|
|
36
|
+
*/
|
|
37
|
+
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
+
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
+
innerProps?: Record<string, any> | undefined;
|
|
40
|
+
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
+
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
+
dataSource?: any;
|
|
43
|
+
}) => JSX.Element;
|
|
44
|
+
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
+
options?: any;
|
|
46
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
47
|
+
labelField: string;
|
|
48
|
+
valueField: string;
|
|
49
|
+
extraParams?: Record<string, any> | undefined;
|
|
50
|
+
}) => JSX.Element;
|
|
51
|
+
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
+
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
+
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
+
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
+
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
+
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Drawer } from 'antd';
|
|
2
|
+
import { OperationItem } from '../type';
|
|
3
|
+
declare const useDrawerState: (operationContent?: {
|
|
4
|
+
[key: string]: import("react").ReactNode;
|
|
5
|
+
} | undefined) => {
|
|
6
|
+
drawerVisible: boolean;
|
|
7
|
+
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
+
openDrawer: (item: OperationItem) => void;
|
|
9
|
+
closeDrawer: () => void;
|
|
10
|
+
drawerContent: import("react").ReactNode;
|
|
11
|
+
Container: {
|
|
12
|
+
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
13
|
+
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
14
|
+
destroy: () => void;
|
|
15
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
16
|
+
};
|
|
17
|
+
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
18
|
+
destroy: () => void;
|
|
19
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
+
};
|
|
21
|
+
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
22
|
+
destroy: () => void;
|
|
23
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
24
|
+
};
|
|
25
|
+
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
26
|
+
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
27
|
+
destroy: () => void;
|
|
28
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
29
|
+
};
|
|
30
|
+
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
33
|
+
};
|
|
34
|
+
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
35
|
+
} | typeof Drawer;
|
|
36
|
+
containerProps: {};
|
|
37
|
+
};
|
|
38
|
+
export default useDrawerState;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataSourceTableProps } from '../type';
|
|
3
|
+
import { OperationItem } from '../type';
|
|
4
|
+
interface UseTablePropsProps {
|
|
5
|
+
data: any;
|
|
6
|
+
originProps: DataSourceTableProps;
|
|
7
|
+
openDrawer: (type: OperationItem) => void;
|
|
8
|
+
closeDrawer: () => void;
|
|
9
|
+
refreshData: () => void;
|
|
10
|
+
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
+
tableRef: any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 处理table的props
|
|
15
|
+
* 转换title
|
|
16
|
+
* @param props
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
|
+
pagination: {
|
|
22
|
+
total: number;
|
|
23
|
+
current: number;
|
|
24
|
+
pageSize: number;
|
|
25
|
+
size: string;
|
|
26
|
+
showSizeChanger: boolean;
|
|
27
|
+
};
|
|
28
|
+
columns: import("./useColumns").Column[];
|
|
29
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
|
+
buttons: any[] | null;
|
|
31
|
+
filter: JSX.Element | null;
|
|
32
|
+
onRow: (record: any) => any;
|
|
33
|
+
actionButtons: any[] | null;
|
|
34
|
+
titleButtons?: {
|
|
35
|
+
show: boolean;
|
|
36
|
+
maxCount: number;
|
|
37
|
+
items: OperationItem[];
|
|
38
|
+
} | undefined;
|
|
39
|
+
tableButtons?: {
|
|
40
|
+
show: boolean;
|
|
41
|
+
maxCount: number;
|
|
42
|
+
items: OperationItem[];
|
|
43
|
+
} | undefined;
|
|
44
|
+
operation?: {
|
|
45
|
+
show: boolean;
|
|
46
|
+
title: string; /**
|
|
47
|
+
* 处理table的props
|
|
48
|
+
* 转换title
|
|
49
|
+
* @param props
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
width: number;
|
|
53
|
+
align: "center" | "left" | "right";
|
|
54
|
+
fixed: false | "left" | "right";
|
|
55
|
+
type: "button" | "link";
|
|
56
|
+
items: OperationItem[];
|
|
57
|
+
} | undefined;
|
|
58
|
+
operationContent?: {
|
|
59
|
+
[key: string]: React.ReactNode;
|
|
60
|
+
} | undefined;
|
|
61
|
+
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
62
|
+
search?: {
|
|
63
|
+
show: boolean;
|
|
64
|
+
placeholder: string;
|
|
65
|
+
} | undefined;
|
|
66
|
+
__designMode: string;
|
|
67
|
+
componentId: string;
|
|
68
|
+
clickToDetail?: {
|
|
69
|
+
show: boolean;
|
|
70
|
+
useCustomAction: boolean;
|
|
71
|
+
actionType: string;
|
|
72
|
+
openMode: "modal" | "drawer";
|
|
73
|
+
openContentSize: "small" | "middle" | "large";
|
|
74
|
+
openTitle: string;
|
|
75
|
+
key: string;
|
|
76
|
+
} | undefined;
|
|
77
|
+
filterBy?: Record<string, any> | undefined;
|
|
78
|
+
sortBy: string;
|
|
79
|
+
tabs?: {
|
|
80
|
+
show: boolean;
|
|
81
|
+
type: string;
|
|
82
|
+
items: {
|
|
83
|
+
name: string;
|
|
84
|
+
filterBy: Record<string, any>;
|
|
85
|
+
sortBy: string;
|
|
86
|
+
}[];
|
|
87
|
+
} | undefined;
|
|
88
|
+
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
89
|
+
extraParams?: {
|
|
90
|
+
list?: Record<string, any> | undefined;
|
|
91
|
+
get?: Record<string, any> | undefined;
|
|
92
|
+
update?: Record<string, any> | undefined;
|
|
93
|
+
create?: Record<string, any> | undefined;
|
|
94
|
+
destroy?: Record<string, any> | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
};
|
|
97
|
+
export default useTableProps;
|