@pisell/materials 1.0.42 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +15 -15
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/package.json +5 -4
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +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/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/DragSortList/index.d.ts +0 -32
- package/es/components/DragSortList/index.js +0 -85
- package/es/components/MultipleContainersSortList/index.d.ts +0 -25
- package/es/components/MultipleContainersSortList/index.js +0 -164
- package/es/components/MultipleContainersSortList/index.less +0 -6
- package/es/components/Pagination/index.d.ts +0 -14
- package/es/components/Pagination/index.js +0 -185
- package/es/components/Pagination/index.less +0 -215
- package/es/components/auto-complete/index.d.ts +0 -7
- package/es/components/auto-complete/index.js +0 -4
- package/es/components/button/index.d.ts +0 -8
- package/es/components/button/index.js +0 -15
- package/es/components/calendar/index.d.ts +0 -3
- package/es/components/calendar/index.js +0 -4
- package/es/components/cascader/index.d.ts +0 -2
- package/es/components/cascader/index.js +0 -6
- package/es/components/checkbox/index.d.ts +0 -3
- package/es/components/checkbox/index.js +0 -5
- package/es/components/config-provider/index.d.ts +0 -8
- package/es/components/config-provider/index.js +0 -29
- package/es/components/date-picker/index.d.ts +0 -3
- package/es/components/date-picker/index.js +0 -22
- package/es/components/div/index.d.ts +0 -7
- package/es/components/div/index.js +0 -10
- package/es/components/drawer/index.d.ts +0 -2
- package/es/components/drawer/index.js +0 -13
- package/es/components/dropdown/index.d.ts +0 -3
- package/es/components/dropdown/index.js +0 -13
- package/es/components/form/index.d.ts +0 -8
- package/es/components/form/index.js +0 -132
- package/es/components/icon/index.d.ts +0 -12
- package/es/components/icon/index.js +0 -40
- package/es/components/iconfont/index.d.ts +0 -6
- package/es/components/iconfont/index.js +0 -13
- package/es/components/iconfont/index.less +0 -0
- package/es/components/input/index.d.ts +0 -11
- package/es/components/input/index.js +0 -12
- package/es/components/modal/index.d.ts +0 -2
- package/es/components/modal/index.js +0 -18
- package/es/components/page/index.d.ts +0 -6
- package/es/components/page/index.js +0 -169
- package/es/components/radio/index.d.ts +0 -3
- package/es/components/radio/index.js +0 -5
- package/es/components/select/index.d.ts +0 -7
- package/es/components/select/index.js +0 -4
- package/es/components/skeleton/index.d.ts +0 -3
- package/es/components/skeleton/index.js +0 -4
- package/es/components/slider/index.d.ts +0 -3
- package/es/components/slider/index.js +0 -16
- package/es/components/table/Actions/Filter/Dropdown/index.d.ts +0 -14
- package/es/components/table/Actions/Filter/Dropdown/index.js +0 -106
- package/es/components/table/Actions/Filter/Dropdown/index.less +0 -76
- package/es/components/table/Actions/Filter/FilterItem/index.d.ts +0 -11
- package/es/components/table/Actions/Filter/FilterItem/index.js +0 -19
- package/es/components/table/Actions/Filter/FilterItem/index.less +0 -0
- package/es/components/table/Actions/Filter/QuickFilter/index.d.ts +0 -3
- package/es/components/table/Actions/Filter/QuickFilter/index.js +0 -25
- package/es/components/table/Actions/Filter/index.d.ts +0 -7
- package/es/components/table/Actions/Filter/index.js +0 -26
- package/es/components/table/Actions/Filter/index.less +0 -0
- package/es/components/table/Actions/Filter/items/index.d.ts +0 -42
- package/es/components/table/Actions/Filter/items/index.js +0 -13
- package/es/components/table/Actions/Filter/items/text/Editor/index.d.ts +0 -3
- package/es/components/table/Actions/Filter/items/text/Editor/index.js +0 -10
- package/es/components/table/Actions/Filter/items/text/Editor/index.less +0 -0
- package/es/components/table/Actions/Filter/items/text/Preview/index.d.ts +0 -3
- package/es/components/table/Actions/Filter/items/text/Preview/index.js +0 -17
- package/es/components/table/Actions/Filter/items/text/Preview/index.less +0 -0
- package/es/components/table/Actions/Filter/items/text/index.d.ts +0 -12
- package/es/components/table/Actions/Filter/items/text/index.js +0 -13
- package/es/components/table/Actions/Filter/items/text/index.less +0 -0
- package/es/components/table/Actions/Sort/index.d.ts +0 -12
- package/es/components/table/Actions/Sort/index.js +0 -59
- package/es/components/table/Actions/Sort/index.less +0 -0
- package/es/components/table/Actions/index.d.ts +0 -4
- package/es/components/table/Actions/index.js +0 -25
- package/es/components/table/Actions/index.less +0 -40
- package/es/components/table/BasicTable/index.d.ts +0 -4
- package/es/components/table/BasicTable/index.js +0 -58
- package/es/components/table/Header/Buttons/index.d.ts +0 -3
- package/es/components/table/Header/Buttons/index.js +0 -10
- package/es/components/table/Header/Buttons/index.less +0 -0
- package/es/components/table/Header/index.d.ts +0 -4
- package/es/components/table/Header/index.js +0 -20
- package/es/components/table/Header/index.less +0 -16
- package/es/components/table/Summary/index.d.ts +0 -4
- package/es/components/table/Summary/index.js +0 -12
- package/es/components/table/Summary/index.less +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -3
- package/es/components/table/Table/AddFieldModal/index.js +0 -140
- package/es/components/table/Table/AddFieldModal/index.less +0 -84
- package/es/components/table/Table/SelectField/index.d.ts +0 -3
- package/es/components/table/Table/SelectField/index.js +0 -89
- package/es/components/table/Table/SelectField/index.less +0 -97
- package/es/components/table/Table/fields/date/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/date/Config/index.js +0 -4
- package/es/components/table/Table/fields/date/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/date/Edit/index.js +0 -42
- package/es/components/table/Table/fields/date/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/date/Show/index.js +0 -18
- package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/date/Sort/index.js +0 -4
- package/es/components/table/Table/fields/date/index.d.ts +0 -14
- package/es/components/table/Table/fields/date/index.js +0 -17
- package/es/components/table/Table/fields/image/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/image/Config/index.js +0 -4
- package/es/components/table/Table/fields/image/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/image/Edit/index.js +0 -23
- package/es/components/table/Table/fields/image/Edit/index.less +0 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/image/Show/index.js +0 -19
- package/es/components/table/Table/fields/image/Show/index.less +0 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/image/Sort/index.js +0 -4
- package/es/components/table/Table/fields/image/index.d.ts +0 -14
- package/es/components/table/Table/fields/image/index.js +0 -17
- package/es/components/table/Table/fields/image/index.less +0 -0
- package/es/components/table/Table/fields/index.d.ts +0 -251
- package/es/components/table/Table/fields/index.js +0 -34
- package/es/components/table/Table/fields/link/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/link/Config/index.js +0 -4
- package/es/components/table/Table/fields/link/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/link/Edit/index.js +0 -59
- package/es/components/table/Table/fields/link/Edit/index.less +0 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/link/Show/index.js +0 -32
- package/es/components/table/Table/fields/link/Show/index.less +0 -0
- package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/link/Sort/index.js +0 -4
- package/es/components/table/Table/fields/link/index.d.ts +0 -14
- package/es/components/table/Table/fields/link/index.js +0 -17
- package/es/components/table/Table/fields/link/index.less +0 -0
- package/es/components/table/Table/fields/number/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/number/Config/index.js +0 -4
- package/es/components/table/Table/fields/number/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/number/Edit/index.js +0 -24
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/number/Show/index.js +0 -16
- package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/number/Sort/index.js +0 -4
- package/es/components/table/Table/fields/number/index.d.ts +0 -14
- package/es/components/table/Table/fields/number/index.js +0 -17
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/rangePicker/Config/index.js +0 -4
- package/es/components/table/Table/fields/rangePicker/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +0 -97
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/rangePicker/Show/index.js +0 -16
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/rangePicker/Sort/index.js +0 -4
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -14
- package/es/components/table/Table/fields/rangePicker/index.js +0 -17
- package/es/components/table/Table/fields/search/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/search/Config/index.js +0 -4
- package/es/components/table/Table/fields/search/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/search/Edit/index.js +0 -28
- package/es/components/table/Table/fields/search/Edit/index.less +0 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/search/Show/index.js +0 -16
- package/es/components/table/Table/fields/search/Show/index.less +0 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/search/Sort/index.js +0 -4
- package/es/components/table/Table/fields/search/index.d.ts +0 -14
- package/es/components/table/Table/fields/search/index.js +0 -17
- package/es/components/table/Table/fields/search/index.less +0 -0
- package/es/components/table/Table/fields/select/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/select/Config/index.js +0 -4
- package/es/components/table/Table/fields/select/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/select/Edit/index.js +0 -23
- package/es/components/table/Table/fields/select/Edit/index.less +0 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/select/Show/index.js +0 -27
- package/es/components/table/Table/fields/select/Show/index.less +0 -0
- package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/select/Sort/index.js +0 -4
- package/es/components/table/Table/fields/select/index.d.ts +0 -14
- package/es/components/table/Table/fields/select/index.js +0 -17
- package/es/components/table/Table/fields/select/index.less +0 -0
- package/es/components/table/Table/fields/text/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/text/Config/index.js +0 -4
- package/es/components/table/Table/fields/text/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/text/Edit/index.js +0 -23
- package/es/components/table/Table/fields/text/Edit/index.less +0 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/text/Show/index.js +0 -16
- package/es/components/table/Table/fields/text/Show/index.less +0 -0
- package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/text/Sort/index.js +0 -4
- package/es/components/table/Table/fields/text/index.d.ts +0 -14
- package/es/components/table/Table/fields/text/index.js +0 -17
- package/es/components/table/Table/fields/text/index.less +0 -0
- package/es/components/table/Table/fields/types/index.d.ts +0 -27
- package/es/components/table/Table/fields/types/index.js +0 -1
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/index.js +0 -126
- package/es/components/table/Table/index.less +0 -15
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -4
- package/es/components/table/Table/tableConfig/SortRow/index.js +0 -39
- package/es/components/table/Table/tableConfig/SortRow/index.less +0 -0
- package/es/components/table/Table/tableConfig/body/CellContent/index.d.ts +0 -4
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +0 -14
- package/es/components/table/Table/tableConfig/body/CellContent/index.less +0 -16
- package/es/components/table/Table/tableConfig/body/CellProvider/index.d.ts +0 -4
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +0 -143
- package/es/components/table/Table/tableConfig/body/CellProvider/index.less +0 -15
- package/es/components/table/Table/tableConfig/body/index.d.ts +0 -30
- package/es/components/table/Table/tableConfig/body/index.js +0 -48
- package/es/components/table/Table/tableConfig/body/index.less +0 -10
- package/es/components/table/Table/tableConfig/header/CellProvider/index.d.ts +0 -14
- package/es/components/table/Table/tableConfig/header/CellProvider/index.js +0 -21
- package/es/components/table/Table/tableConfig/header/CellProvider/index.less +0 -36
- package/es/components/table/Table/tableConfig/header/index.d.ts +0 -18
- package/es/components/table/Table/tableConfig/header/index.js +0 -53
- package/es/components/table/Table/tableConfig/header/index.less +0 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -3
- package/es/components/table/Table/tableConfig/summary/index.js +0 -18
- package/es/components/table/Table/tableConfig/summary/index.less +0 -0
- package/es/components/table/index.d.ts +0 -17
- package/es/components/table/index.js +0 -107
- package/es/components/table/index.less +0 -7
- package/es/components/table/model.d.ts +0 -19
- package/es/components/table/model.js +0 -115
- package/es/components/tabs/index.d.ts +0 -11
- package/es/components/tabs/index.js +0 -93
- package/es/components/time-picker/index.d.ts +0 -3
- package/es/components/time-picker/index.js +0 -4
- package/es/components/tree-select/index.d.ts +0 -2
- package/es/components/tree-select/index.js +0 -6
- package/es/components/upload/index.d.ts +0 -3
- package/es/components/upload/index.js +0 -4
- package/es/hooks/index.d.ts +0 -3
- package/es/hooks/index.js +0 -3
- package/es/hooks/useResponsive.d.ts +0 -4
- package/es/hooks/useResponsive.js +0 -95
- package/es/hooks/useSharedState.d.ts +0 -11
- package/es/hooks/useSharedState.js +0 -18
- package/es/index.d.ts +0 -64
- package/es/index.js +0 -89
- package/es/utils/hoc.d.ts +0 -17
- package/es/utils/hoc.js +0 -82
- package/es/utils/index.d.ts +0 -1
- package/es/utils/index.js +0 -1
- package/es/utils/miniRedux.d.ts +0 -17
- package/es/utils/miniRedux.js +0 -69
- package/es/utils/warning.d.ts +0 -1
- package/es/utils/warning.js +0 -6
- package/lib/components/DragSortList/index.d.ts +0 -32
- package/lib/components/DragSortList/index.js +0 -119
- package/lib/components/MultipleContainersSortList/index.d.ts +0 -25
- package/lib/components/MultipleContainersSortList/index.js +0 -192
- package/lib/components/MultipleContainersSortList/index.less +0 -6
- package/lib/components/Pagination/index.d.ts +0 -14
- package/lib/components/Pagination/index.js +0 -158
- package/lib/components/Pagination/index.less +0 -215
- package/lib/components/auto-complete/index.d.ts +0 -7
- package/lib/components/auto-complete/index.js +0 -28
- package/lib/components/button/index.d.ts +0 -8
- package/lib/components/button/index.js +0 -47
- package/lib/components/calendar/index.d.ts +0 -3
- package/lib/components/calendar/index.js +0 -32
- package/lib/components/cascader/index.d.ts +0 -2
- package/lib/components/cascader/index.js +0 -28
- package/lib/components/checkbox/index.d.ts +0 -3
- package/lib/components/checkbox/index.js +0 -29
- package/lib/components/config-provider/index.d.ts +0 -8
- package/lib/components/config-provider/index.js +0 -54
- package/lib/components/date-picker/index.d.ts +0 -3
- package/lib/components/date-picker/index.js +0 -50
- package/lib/components/div/index.d.ts +0 -7
- package/lib/components/div/index.js +0 -40
- package/lib/components/drawer/index.d.ts +0 -2
- package/lib/components/drawer/index.js +0 -45
- package/lib/components/dropdown/index.d.ts +0 -3
- package/lib/components/dropdown/index.js +0 -45
- package/lib/components/form/index.d.ts +0 -8
- package/lib/components/form/index.js +0 -114
- package/lib/components/icon/index.d.ts +0 -12
- package/lib/components/icon/index.js +0 -52
- package/lib/components/iconfont/index.d.ts +0 -6
- package/lib/components/iconfont/index.js +0 -44
- package/lib/components/iconfont/index.less +0 -0
- package/lib/components/input/index.d.ts +0 -11
- package/lib/components/input/index.js +0 -38
- package/lib/components/modal/index.d.ts +0 -2
- package/lib/components/modal/index.js +0 -50
- package/lib/components/page/index.d.ts +0 -6
- package/lib/components/page/index.js +0 -197
- package/lib/components/radio/index.d.ts +0 -3
- package/lib/components/radio/index.js +0 -29
- package/lib/components/select/index.d.ts +0 -7
- package/lib/components/select/index.js +0 -28
- package/lib/components/skeleton/index.d.ts +0 -3
- package/lib/components/skeleton/index.js +0 -28
- package/lib/components/slider/index.d.ts +0 -3
- package/lib/components/slider/index.js +0 -47
- package/lib/components/table/Actions/Filter/Dropdown/index.d.ts +0 -14
- package/lib/components/table/Actions/Filter/Dropdown/index.js +0 -133
- package/lib/components/table/Actions/Filter/Dropdown/index.less +0 -76
- package/lib/components/table/Actions/Filter/FilterItem/index.d.ts +0 -11
- package/lib/components/table/Actions/Filter/FilterItem/index.js +0 -47
- package/lib/components/table/Actions/Filter/FilterItem/index.less +0 -0
- package/lib/components/table/Actions/Filter/QuickFilter/index.d.ts +0 -3
- package/lib/components/table/Actions/Filter/QuickFilter/index.js +0 -56
- package/lib/components/table/Actions/Filter/index.d.ts +0 -7
- package/lib/components/table/Actions/Filter/index.js +0 -54
- package/lib/components/table/Actions/Filter/index.less +0 -0
- package/lib/components/table/Actions/Filter/items/index.d.ts +0 -42
- package/lib/components/table/Actions/Filter/items/index.js +0 -56
- package/lib/components/table/Actions/Filter/items/text/Editor/index.d.ts +0 -3
- package/lib/components/table/Actions/Filter/items/text/Editor/index.js +0 -29
- package/lib/components/table/Actions/Filter/items/text/Editor/index.less +0 -0
- package/lib/components/table/Actions/Filter/items/text/Preview/index.d.ts +0 -3
- package/lib/components/table/Actions/Filter/items/text/Preview/index.js +0 -38
- package/lib/components/table/Actions/Filter/items/text/Preview/index.less +0 -0
- package/lib/components/table/Actions/Filter/items/text/index.d.ts +0 -12
- package/lib/components/table/Actions/Filter/items/text/index.js +0 -47
- package/lib/components/table/Actions/Filter/items/text/index.less +0 -0
- package/lib/components/table/Actions/Sort/index.d.ts +0 -12
- package/lib/components/table/Actions/Sort/index.js +0 -86
- package/lib/components/table/Actions/Sort/index.less +0 -0
- package/lib/components/table/Actions/index.d.ts +0 -4
- package/lib/components/table/Actions/index.js +0 -46
- package/lib/components/table/Actions/index.less +0 -40
- package/lib/components/table/BasicTable/index.d.ts +0 -4
- package/lib/components/table/BasicTable/index.js +0 -83
- package/lib/components/table/Header/Buttons/index.d.ts +0 -3
- package/lib/components/table/Header/Buttons/index.js +0 -43
- package/lib/components/table/Header/Buttons/index.less +0 -0
- package/lib/components/table/Header/index.d.ts +0 -4
- package/lib/components/table/Header/index.js +0 -44
- package/lib/components/table/Header/index.less +0 -16
- package/lib/components/table/Summary/index.d.ts +0 -4
- package/lib/components/table/Summary/index.js +0 -43
- package/lib/components/table/Summary/index.less +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -3
- package/lib/components/table/Table/AddFieldModal/index.js +0 -159
- package/lib/components/table/Table/AddFieldModal/index.less +0 -84
- package/lib/components/table/Table/SelectField/index.d.ts +0 -3
- package/lib/components/table/Table/SelectField/index.js +0 -124
- package/lib/components/table/Table/SelectField/index.less +0 -97
- package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/date/Config/index.js +0 -28
- package/lib/components/table/Table/fields/date/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/date/Edit/index.js +0 -67
- package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/date/Show/index.js +0 -49
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/date/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/date/index.d.ts +0 -14
- package/lib/components/table/Table/fields/date/index.js +0 -51
- package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/image/Config/index.js +0 -28
- package/lib/components/table/Table/fields/image/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/image/Edit/index.js +0 -53
- package/lib/components/table/Table/fields/image/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/image/Show/index.js +0 -37
- package/lib/components/table/Table/fields/image/Show/index.less +0 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/image/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/image/index.d.ts +0 -14
- package/lib/components/table/Table/fields/image/index.js +0 -51
- package/lib/components/table/Table/fields/image/index.less +0 -0
- package/lib/components/table/Table/fields/index.d.ts +0 -251
- package/lib/components/table/Table/fields/index.js +0 -77
- package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/link/Config/index.js +0 -28
- package/lib/components/table/Table/fields/link/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/link/Edit/index.js +0 -78
- package/lib/components/table/Table/fields/link/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/link/Show/index.js +0 -57
- package/lib/components/table/Table/fields/link/Show/index.less +0 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/link/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/link/index.d.ts +0 -14
- package/lib/components/table/Table/fields/link/index.js +0 -51
- package/lib/components/table/Table/fields/link/index.less +0 -0
- package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/number/Config/index.js +0 -28
- package/lib/components/table/Table/fields/number/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/number/Edit/index.js +0 -44
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/number/Show/index.js +0 -37
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/number/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/number/index.d.ts +0 -14
- package/lib/components/table/Table/fields/number/index.js +0 -51
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/rangePicker/Config/index.js +0 -28
- package/lib/components/table/Table/fields/rangePicker/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +0 -103
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/rangePicker/Show/index.js +0 -37
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/rangePicker/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -14
- package/lib/components/table/Table/fields/rangePicker/index.js +0 -51
- package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/search/Config/index.js +0 -28
- package/lib/components/table/Table/fields/search/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/search/Edit/index.js +0 -51
- package/lib/components/table/Table/fields/search/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/search/Show/index.js +0 -37
- package/lib/components/table/Table/fields/search/Show/index.less +0 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/search/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/search/index.d.ts +0 -14
- package/lib/components/table/Table/fields/search/index.js +0 -51
- package/lib/components/table/Table/fields/search/index.less +0 -0
- package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/select/Config/index.js +0 -28
- package/lib/components/table/Table/fields/select/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/select/Edit/index.js +0 -53
- package/lib/components/table/Table/fields/select/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/select/Show/index.js +0 -46
- package/lib/components/table/Table/fields/select/Show/index.less +0 -0
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/select/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/select/index.d.ts +0 -14
- package/lib/components/table/Table/fields/select/index.js +0 -51
- package/lib/components/table/Table/fields/select/index.less +0 -0
- package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/text/Config/index.js +0 -28
- package/lib/components/table/Table/fields/text/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/text/Edit/index.js +0 -53
- package/lib/components/table/Table/fields/text/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/text/Show/index.js +0 -37
- package/lib/components/table/Table/fields/text/Show/index.less +0 -0
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/text/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/text/index.d.ts +0 -14
- package/lib/components/table/Table/fields/text/index.js +0 -51
- package/lib/components/table/Table/fields/text/index.less +0 -0
- package/lib/components/table/Table/fields/types/index.d.ts +0 -27
- package/lib/components/table/Table/fields/types/index.js +0 -17
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/index.js +0 -143
- package/lib/components/table/Table/index.less +0 -15
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -4
- package/lib/components/table/Table/tableConfig/SortRow/index.js +0 -58
- package/lib/components/table/Table/tableConfig/SortRow/index.less +0 -0
- package/lib/components/table/Table/tableConfig/body/CellContent/index.d.ts +0 -4
- package/lib/components/table/Table/tableConfig/body/CellContent/index.js +0 -49
- package/lib/components/table/Table/tableConfig/body/CellContent/index.less +0 -16
- package/lib/components/table/Table/tableConfig/body/CellProvider/index.d.ts +0 -4
- package/lib/components/table/Table/tableConfig/body/CellProvider/index.js +0 -146
- package/lib/components/table/Table/tableConfig/body/CellProvider/index.less +0 -15
- package/lib/components/table/Table/tableConfig/body/index.d.ts +0 -30
- package/lib/components/table/Table/tableConfig/body/index.js +0 -80
- package/lib/components/table/Table/tableConfig/body/index.less +0 -10
- package/lib/components/table/Table/tableConfig/header/CellProvider/index.d.ts +0 -14
- package/lib/components/table/Table/tableConfig/header/CellProvider/index.js +0 -47
- package/lib/components/table/Table/tableConfig/header/CellProvider/index.less +0 -36
- package/lib/components/table/Table/tableConfig/header/index.d.ts +0 -18
- package/lib/components/table/Table/tableConfig/header/index.js +0 -106
- package/lib/components/table/Table/tableConfig/header/index.less +0 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -3
- package/lib/components/table/Table/tableConfig/summary/index.js +0 -47
- package/lib/components/table/Table/tableConfig/summary/index.less +0 -0
- package/lib/components/table/index.d.ts +0 -17
- package/lib/components/table/index.js +0 -126
- package/lib/components/table/index.less +0 -7
- package/lib/components/table/model.d.ts +0 -19
- package/lib/components/table/model.js +0 -148
- package/lib/components/tabs/index.d.ts +0 -11
- package/lib/components/tabs/index.js +0 -92
- package/lib/components/time-picker/index.d.ts +0 -3
- package/lib/components/time-picker/index.js +0 -31
- package/lib/components/tree-select/index.d.ts +0 -2
- package/lib/components/tree-select/index.js +0 -40
- package/lib/components/upload/index.d.ts +0 -3
- package/lib/components/upload/index.js +0 -28
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.js +0 -42
- package/lib/hooks/useResponsive.d.ts +0 -4
- package/lib/hooks/useResponsive.js +0 -104
- package/lib/hooks/useSharedState.d.ts +0 -11
- package/lib/hooks/useSharedState.js +0 -33
- package/lib/index.d.ts +0 -64
- package/lib/index.js +0 -228
- package/lib/utils/hoc.d.ts +0 -17
- package/lib/utils/hoc.js +0 -102
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -29
- package/lib/utils/miniRedux.d.ts +0 -17
- package/lib/utils/miniRedux.js +0 -86
- package/lib/utils/warning.d.ts +0 -1
- package/lib/utils/warning.js +0 -31
package/es/index.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export { Affix } from "antd";
|
|
2
|
-
export { Anchor } from "antd";
|
|
3
|
-
export { Alert } from "antd";
|
|
4
|
-
export { Avatar } from "antd";
|
|
5
|
-
export { Badge } from "antd";
|
|
6
|
-
export { Breadcrumb } from "antd";
|
|
7
|
-
export { Card } from "antd";
|
|
8
|
-
export { Collapse } from "antd";
|
|
9
|
-
export { Carousel } from "antd";
|
|
10
|
-
export { Col } from "antd";
|
|
11
|
-
export { Descriptions } from "antd";
|
|
12
|
-
export { Divider } from "antd";
|
|
13
|
-
export { Empty } from "antd";
|
|
14
|
-
export { Grid } from "antd";
|
|
15
|
-
export { Image } from "antd";
|
|
16
|
-
export { InputNumber } from "antd";
|
|
17
|
-
export { List } from "antd";
|
|
18
|
-
export { message } from "antd";
|
|
19
|
-
export { Menu } from "antd";
|
|
20
|
-
export { Mentions } from "antd";
|
|
21
|
-
export { Statistic } from "antd";
|
|
22
|
-
export { notification } from "antd";
|
|
23
|
-
export { Pagination } from "antd";
|
|
24
|
-
export { Popconfirm } from "antd";
|
|
25
|
-
export { Popover } from "antd";
|
|
26
|
-
export { Progress } from "antd";
|
|
27
|
-
export { Rate } from "antd";
|
|
28
|
-
export { Result } from "antd";
|
|
29
|
-
export { Row } from "antd";
|
|
30
|
-
export { Space } from "antd";
|
|
31
|
-
export { Spin } from "antd";
|
|
32
|
-
export { Steps } from "antd";
|
|
33
|
-
export { Switch } from "antd";
|
|
34
|
-
export { Transfer } from "antd";
|
|
35
|
-
export { Tree } from "antd";
|
|
36
|
-
export { Tag } from "antd";
|
|
37
|
-
export { Timeline } from "antd";
|
|
38
|
-
export { Tooltip } from "antd";
|
|
39
|
-
export { Typography } from "antd";
|
|
40
|
-
export { version } from "antd";
|
|
41
|
-
export { default as Skeleton } from "./components/skeleton";
|
|
42
|
-
export { default as Checkbox } from "./components/checkbox";
|
|
43
|
-
export { default as Button } from "./components/button";
|
|
44
|
-
export { default as Radio } from "./components/radio";
|
|
45
|
-
export { default as Upload } from "./components/upload";
|
|
46
|
-
export { default as Icon } from "./components/icon";
|
|
47
|
-
export { default as Form } from "./components/form";
|
|
48
|
-
export { default as Dropdown } from "./components/dropdown";
|
|
49
|
-
export { default as Calendar } from "./components/calendar";
|
|
50
|
-
export { default as ConfigProvider } from "./components/config-provider";
|
|
51
|
-
export { default as DatePicker } from "./components/date-picker";
|
|
52
|
-
export { default as Tabs } from "./components/tabs";
|
|
53
|
-
export { default as TimePicker } from "./components/time-picker";
|
|
54
|
-
export { default as Slider } from "./components/slider";
|
|
55
|
-
export { default as Table } from "./components/table";
|
|
56
|
-
export { default as Modal } from "./components/modal";
|
|
57
|
-
export { default as Drawer } from "./components/drawer";
|
|
58
|
-
export { default as TreeSelect } from "./components/tree-select";
|
|
59
|
-
export { default as Input } from "./components/input";
|
|
60
|
-
export { default as Select } from "./components/select";
|
|
61
|
-
export { default as Cascader } from "./components/cascader";
|
|
62
|
-
export { default as AutoComplete } from "./components/auto-complete";
|
|
63
|
-
export { default as Div } from "./components/div";
|
|
64
|
-
export { default as Page } from "./components/page";
|
package/es/index.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export { Affix } from "antd";
|
|
2
|
-
export { Anchor } from "antd";
|
|
3
|
-
export { Alert } from "antd";
|
|
4
|
-
export { Avatar } from "antd";
|
|
5
|
-
export { Badge } from "antd";
|
|
6
|
-
export { Breadcrumb } from "antd";
|
|
7
|
-
export { Card } from "antd";
|
|
8
|
-
export { Collapse } from "antd";
|
|
9
|
-
export { Carousel } from "antd";
|
|
10
|
-
|
|
11
|
-
// export { Cascader } from 'antd';
|
|
12
|
-
|
|
13
|
-
// export { Checkbox } from 'antd';
|
|
14
|
-
|
|
15
|
-
export { Col } from "antd";
|
|
16
|
-
export { Descriptions } from "antd";
|
|
17
|
-
export { Divider } from "antd";
|
|
18
|
-
|
|
19
|
-
// export { Drawer } from 'antd';
|
|
20
|
-
|
|
21
|
-
export { Empty } from "antd";
|
|
22
|
-
export { Grid } from "antd";
|
|
23
|
-
|
|
24
|
-
// export { Input } from 'antd';
|
|
25
|
-
|
|
26
|
-
export { Image } from "antd";
|
|
27
|
-
export { InputNumber } from "antd";
|
|
28
|
-
export { List } from "antd";
|
|
29
|
-
export { message } from "antd";
|
|
30
|
-
export { Menu } from "antd";
|
|
31
|
-
export { Mentions } from "antd";
|
|
32
|
-
export { Statistic } from "antd";
|
|
33
|
-
export { notification } from "antd";
|
|
34
|
-
|
|
35
|
-
// export { PageHeader } from 'antd';
|
|
36
|
-
|
|
37
|
-
export { Pagination } from "antd";
|
|
38
|
-
export { Popconfirm } from "antd";
|
|
39
|
-
export { Popover } from "antd";
|
|
40
|
-
export { Progress } from "antd";
|
|
41
|
-
|
|
42
|
-
// export { Radio } from 'antd';
|
|
43
|
-
|
|
44
|
-
export { Rate } from "antd";
|
|
45
|
-
export { Result } from "antd";
|
|
46
|
-
export { Row } from "antd";
|
|
47
|
-
|
|
48
|
-
// export { Skeleton } from 'antd';
|
|
49
|
-
|
|
50
|
-
export { Space } from "antd";
|
|
51
|
-
export { Spin } from "antd";
|
|
52
|
-
export { Steps } from "antd";
|
|
53
|
-
export { Switch } from "antd";
|
|
54
|
-
export { Transfer } from "antd";
|
|
55
|
-
export { Tree } from "antd";
|
|
56
|
-
|
|
57
|
-
// export { TreeSelect } from 'antd';
|
|
58
|
-
|
|
59
|
-
// export { Tabs } from 'antd';
|
|
60
|
-
|
|
61
|
-
export { Tag } from "antd";
|
|
62
|
-
export { Timeline } from "antd";
|
|
63
|
-
export { Tooltip } from "antd";
|
|
64
|
-
export { Typography } from "antd";
|
|
65
|
-
export { version } from "antd";
|
|
66
|
-
export { default as Skeleton } from "./components/skeleton";
|
|
67
|
-
export { default as Checkbox } from "./components/checkbox";
|
|
68
|
-
export { default as Button } from "./components/button";
|
|
69
|
-
export { default as Radio } from "./components/radio";
|
|
70
|
-
export { default as Upload } from "./components/upload";
|
|
71
|
-
export { default as Icon } from "./components/icon";
|
|
72
|
-
export { default as Form } from "./components/form";
|
|
73
|
-
export { default as Dropdown } from "./components/dropdown";
|
|
74
|
-
export { default as Calendar } from "./components/calendar";
|
|
75
|
-
export { default as ConfigProvider } from "./components/config-provider";
|
|
76
|
-
export { default as DatePicker } from "./components/date-picker";
|
|
77
|
-
export { default as Tabs } from "./components/tabs";
|
|
78
|
-
export { default as TimePicker } from "./components/time-picker";
|
|
79
|
-
export { default as Slider } from "./components/slider";
|
|
80
|
-
export { default as Table } from "./components/table";
|
|
81
|
-
export { default as Modal } from "./components/modal";
|
|
82
|
-
export { default as Drawer } from "./components/drawer";
|
|
83
|
-
export { default as TreeSelect } from "./components/tree-select";
|
|
84
|
-
export { default as Input } from "./components/input";
|
|
85
|
-
export { default as Select } from "./components/select";
|
|
86
|
-
export { default as Cascader } from "./components/cascader";
|
|
87
|
-
export { default as AutoComplete } from "./components/auto-complete";
|
|
88
|
-
export { default as Div } from "./components/div";
|
|
89
|
-
export { default as Page } from "./components/page";
|
package/es/utils/hoc.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 简单包装,不做任何处理
|
|
4
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
-
*/
|
|
6
|
-
export declare function withWrap<T extends ComponentType<any>>(Comp: T): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.ComponentProps<T>> & React.RefAttributes<any>>;
|
|
7
|
-
/**
|
|
8
|
-
* 某些组件会用React.Children.only检查子节点
|
|
9
|
-
* 需要做处理避免报错
|
|
10
|
-
*/
|
|
11
|
-
export declare function withSingleChild(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) => JSX.Element;
|
|
12
|
-
export declare function withSingleFunctionChild(Comp: ComponentType<any>): (props: any) => JSX.Element;
|
|
13
|
-
/**
|
|
14
|
-
* moment对象在序列化后会被转为字符串
|
|
15
|
-
* 需要让日期类组件支持接受字符串值
|
|
16
|
-
*/
|
|
17
|
-
export declare function withMomentProps(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) => JSX.Element;
|
package/es/utils/hoc.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
import { get, set, has } from 'lodash';
|
|
5
|
-
import dayjs from "dayjs";
|
|
6
|
-
function convertProps(props, list, mapper) {
|
|
7
|
-
var out = {};
|
|
8
|
-
list.forEach(function (key) {
|
|
9
|
-
if (has(props, key)) {
|
|
10
|
-
set(out, key, mapper(get(props, key), key));
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
return out;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 简单包装,不做任何处理
|
|
18
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
19
|
-
*/
|
|
20
|
-
export function withWrap(Comp) {
|
|
21
|
-
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, {
|
|
24
|
-
ref: ref
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 某些组件会用React.Children.only检查子节点
|
|
31
|
-
* 需要做处理避免报错
|
|
32
|
-
*/
|
|
33
|
-
export function withSingleChild(Comp) {
|
|
34
|
-
var needsConvert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['children'];
|
|
35
|
-
return function (props) {
|
|
36
|
-
var convertedProps = convertProps(props, needsConvert, function (prop) {
|
|
37
|
-
var node = React.Children.toArray(prop)[0];
|
|
38
|
-
if (node === null || _typeof(node) !== 'object') {
|
|
39
|
-
node = /*#__PURE__*/React.createElement("div", null, node);
|
|
40
|
-
}
|
|
41
|
-
return node;
|
|
42
|
-
});
|
|
43
|
-
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, convertedProps));
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export function withSingleFunctionChild(Comp) {
|
|
47
|
-
return function (props) {
|
|
48
|
-
var children = props.children;
|
|
49
|
-
var node;
|
|
50
|
-
if (typeof children === 'function') {
|
|
51
|
-
node = children;
|
|
52
|
-
}
|
|
53
|
-
if (Array.isArray(children) && children.length === 1 && typeof children[0] === 'function') {
|
|
54
|
-
node = children[0];
|
|
55
|
-
}
|
|
56
|
-
if (node) {
|
|
57
|
-
return /*#__PURE__*/React.createElement(Comp, props, node);
|
|
58
|
-
}
|
|
59
|
-
return /*#__PURE__*/React.createElement("div", null, children);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* moment对象在序列化后会被转为字符串
|
|
65
|
-
* 需要让日期类组件支持接受字符串值
|
|
66
|
-
*/
|
|
67
|
-
export function withMomentProps(Comp) {
|
|
68
|
-
var needsConvert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['value', 'defaultValue'];
|
|
69
|
-
return function (props) {
|
|
70
|
-
var convertedProps = convertProps(props, needsConvert, function (prop) {
|
|
71
|
-
if (prop) {
|
|
72
|
-
if (Array.isArray(prop)) {
|
|
73
|
-
return prop.map(function (v) {
|
|
74
|
-
return dayjs.isDayjs(v) ? v : dayjs(v);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return dayjs.isDayjs(prop) ? prop : dayjs(prop);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, convertedProps));
|
|
81
|
-
};
|
|
82
|
-
}
|
package/es/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isBrowser: boolean;
|
package/es/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var isBrowser = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
package/es/utils/miniRedux.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface MiniReduxProps<State, Namespace> {
|
|
3
|
-
namespace?: Namespace;
|
|
4
|
-
state?: State;
|
|
5
|
-
reducers?: any;
|
|
6
|
-
effects?: any;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: <State extends Record<string, any>, Namespace extends string>({ namespace, state, reducers, effects, }: MiniReduxProps<State, Namespace>) => {
|
|
9
|
-
Context: React.Context<{ [K in Namespace]: State; } & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
15
|
-
Provider: (ComponentUi: any) => (props: any) => JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
package/es/utils/miniRedux.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
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
|
-
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
|
-
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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
-
import React, { createContext, useCallback, useReducer } from 'react';
|
|
15
|
-
export default (function (_ref2) {
|
|
16
|
-
var _ref2$namespace = _ref2.namespace,
|
|
17
|
-
namespace = _ref2$namespace === void 0 ? 'state' : _ref2$namespace,
|
|
18
|
-
state = _ref2.state,
|
|
19
|
-
_ref2$reducers = _ref2.reducers,
|
|
20
|
-
reducers = _ref2$reducers === void 0 ? {} : _ref2$reducers,
|
|
21
|
-
_ref2$effects = _ref2.effects,
|
|
22
|
-
effects = _ref2$effects === void 0 ? {} : _ref2$effects;
|
|
23
|
-
var Context = /*#__PURE__*/createContext({});
|
|
24
|
-
var Provider = function Provider(ComponentUi) {
|
|
25
|
-
var Components = function Components(props) {
|
|
26
|
-
var _objectSpread2, _ref5;
|
|
27
|
-
var _useReducer = useReducer(function (state, _ref3) {
|
|
28
|
-
var type = _ref3.type,
|
|
29
|
-
payload = _ref3.payload;
|
|
30
|
-
if (reducers[type]) {
|
|
31
|
-
return reducers[type](state, payload);
|
|
32
|
-
} else {
|
|
33
|
-
return state;
|
|
34
|
-
}
|
|
35
|
-
}, state),
|
|
36
|
-
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
37
|
-
providerState = _useReducer2[0],
|
|
38
|
-
dispatch = _useReducer2[1];
|
|
39
|
-
var _dispatch = useCallback(function (_ref4) {
|
|
40
|
-
var type = _ref4.type,
|
|
41
|
-
payload = _ref4.payload;
|
|
42
|
-
if (effects[type]) {
|
|
43
|
-
effects[type].call(null, payload, dispatch);
|
|
44
|
-
} else if (reducers[type]) {
|
|
45
|
-
dispatch({
|
|
46
|
-
type: type,
|
|
47
|
-
payload: payload
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}, []);
|
|
51
|
-
var _props = _objectSpread(_objectSpread({}, props), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, namespace, providerState), _defineProperty(_objectSpread2, "dispatch", _dispatch), _objectSpread2));
|
|
52
|
-
var _ref = null;
|
|
53
|
-
if (_props.forwardedRef) {
|
|
54
|
-
_ref = _props.forwardedRef;
|
|
55
|
-
delete _props.forwardedRef;
|
|
56
|
-
}
|
|
57
|
-
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
58
|
-
value: (_ref5 = {}, _defineProperty(_ref5, namespace, providerState), _defineProperty(_ref5, "dispatch", _dispatch), _ref5)
|
|
59
|
-
}, /*#__PURE__*/React.createElement(ComponentUi, _extends({}, _props, {
|
|
60
|
-
ref: _ref
|
|
61
|
-
})));
|
|
62
|
-
};
|
|
63
|
-
return Components;
|
|
64
|
-
};
|
|
65
|
-
return {
|
|
66
|
-
Context: Context,
|
|
67
|
-
Provider: Provider
|
|
68
|
-
};
|
|
69
|
-
});
|
package/es/utils/warning.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const warning: (...args: any[]) => void;
|
package/es/utils/warning.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DraggableAttributes } from "@dnd-kit/core";
|
|
2
|
-
import { SyntheticListenerMap } from "@dnd-kit/core/dist/hooks/utilities";
|
|
3
|
-
import React from "react";
|
|
4
|
-
declare type IdType = string | number;
|
|
5
|
-
export interface Props<T> {
|
|
6
|
-
list?: T[];
|
|
7
|
-
onChange?: (list: T[]) => void;
|
|
8
|
-
rowKey: IdType | ((val: T) => IdType);
|
|
9
|
-
children: (params: {
|
|
10
|
-
item: T;
|
|
11
|
-
index: number;
|
|
12
|
-
style: React.CSSProperties;
|
|
13
|
-
props: any;
|
|
14
|
-
}) => React.ReactElement<HTMLElement>;
|
|
15
|
-
}
|
|
16
|
-
export default function Sortable<T extends Record<string, any>>({ list, onChange, rowKey, children, }: Props<T>): JSX.Element;
|
|
17
|
-
export interface SortableItemProps<T> {
|
|
18
|
-
id: number;
|
|
19
|
-
index: number;
|
|
20
|
-
children: (params: {
|
|
21
|
-
item: T;
|
|
22
|
-
index: number;
|
|
23
|
-
style: React.CSSProperties;
|
|
24
|
-
props: any;
|
|
25
|
-
setActivatorNodeRef: (element: HTMLElement | null) => void;
|
|
26
|
-
listeners: SyntheticListenerMap;
|
|
27
|
-
attributes: DraggableAttributes;
|
|
28
|
-
}) => React.ReactElement<HTMLElement>;
|
|
29
|
-
item: T;
|
|
30
|
-
}
|
|
31
|
-
export declare function SortableItem<T>({ id, index, item, children, }: SortableItemProps<T>): React.ReactElement<HTMLElement, string | React.JSXElementConstructor<any>>;
|
|
32
|
-
export {};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/DragSortList/index.tsx
|
|
30
|
-
var DragSortList_exports = {};
|
|
31
|
-
__export(DragSortList_exports, {
|
|
32
|
-
SortableItem: () => SortableItem,
|
|
33
|
-
default: () => Sortable
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(DragSortList_exports);
|
|
36
|
-
var import_core = require("@dnd-kit/core");
|
|
37
|
-
var import_sortable = require("@dnd-kit/sortable");
|
|
38
|
-
var import_utilities = require("@dnd-kit/utilities");
|
|
39
|
-
var import_utils = require("@pisell/utils");
|
|
40
|
-
var import_react = __toESM(require("react"));
|
|
41
|
-
function Sortable({
|
|
42
|
-
list = [],
|
|
43
|
-
onChange,
|
|
44
|
-
rowKey,
|
|
45
|
-
children
|
|
46
|
-
}) {
|
|
47
|
-
const getRowKey = (0, import_react.useCallback)(
|
|
48
|
-
(row) => {
|
|
49
|
-
if ((0, import_utils.isFunction)(rowKey)) {
|
|
50
|
-
return rowKey(row);
|
|
51
|
-
}
|
|
52
|
-
return row[rowKey];
|
|
53
|
-
},
|
|
54
|
-
[rowKey]
|
|
55
|
-
);
|
|
56
|
-
const items = (0, import_react.useMemo)(() => {
|
|
57
|
-
return list == null ? void 0 : list.map((item) => getRowKey(item));
|
|
58
|
-
}, [list, rowKey]);
|
|
59
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
-
import_core.DndContext,
|
|
61
|
-
{
|
|
62
|
-
onDragEnd: ({ over, active }) => {
|
|
63
|
-
if (active.id !== (over == null ? void 0 : over.id)) {
|
|
64
|
-
const activeIndex = list == null ? void 0 : list.findIndex((i) => i.id === active.id);
|
|
65
|
-
const overIndex = list == null ? void 0 : list.findIndex((i) => i.id === (over == null ? void 0 : over.id));
|
|
66
|
-
onChange == null ? void 0 : onChange((0, import_sortable.arrayMove)(list, activeIndex, overIndex));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
/* @__PURE__ */ import_react.default.createElement(import_sortable.SortableContext, { items }, list.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
71
|
-
SortableItem,
|
|
72
|
-
{
|
|
73
|
-
key: getRowKey(item),
|
|
74
|
-
id: getRowKey(item),
|
|
75
|
-
item,
|
|
76
|
-
index
|
|
77
|
-
},
|
|
78
|
-
children
|
|
79
|
-
)))
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
function SortableItem({
|
|
83
|
-
id,
|
|
84
|
-
index,
|
|
85
|
-
item,
|
|
86
|
-
children
|
|
87
|
-
}) {
|
|
88
|
-
const {
|
|
89
|
-
attributes,
|
|
90
|
-
isSorting,
|
|
91
|
-
listeners,
|
|
92
|
-
setNodeRef,
|
|
93
|
-
setActivatorNodeRef,
|
|
94
|
-
transform,
|
|
95
|
-
transition
|
|
96
|
-
} = (0, import_sortable.useSortable)({
|
|
97
|
-
id
|
|
98
|
-
});
|
|
99
|
-
return children({
|
|
100
|
-
item,
|
|
101
|
-
index,
|
|
102
|
-
style: {
|
|
103
|
-
transform: import_utilities.CSS.Transform.toString(
|
|
104
|
-
transform && { ...transform, scaleY: 1 }
|
|
105
|
-
),
|
|
106
|
-
transition
|
|
107
|
-
},
|
|
108
|
-
setActivatorNodeRef,
|
|
109
|
-
listeners,
|
|
110
|
-
attributes,
|
|
111
|
-
props: {
|
|
112
|
-
ref: setNodeRef
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
117
|
-
0 && (module.exports = {
|
|
118
|
-
SortableItem
|
|
119
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SortableItemProps } from "../DragSortList";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
declare type IdType = string | number;
|
|
5
|
-
export interface MultipleContainersSortListProps<T> {
|
|
6
|
-
list: Record<string, T[]>;
|
|
7
|
-
vertical?: boolean;
|
|
8
|
-
wrapStyle?: React.CSSProperties;
|
|
9
|
-
onChange: (val: Record<string, T[]>) => void;
|
|
10
|
-
renderContainer?: DefaultRenderContainerProps["renderContainer"];
|
|
11
|
-
rowKey: IdType | ((val: T) => IdType);
|
|
12
|
-
children: SortableItemProps<T>["children"];
|
|
13
|
-
}
|
|
14
|
-
export declare const TRASH_ID = "void";
|
|
15
|
-
interface DefaultRenderContainerProps {
|
|
16
|
-
id: IdType;
|
|
17
|
-
renderContainer: (params: {
|
|
18
|
-
children: React.ReactElement;
|
|
19
|
-
ref: any;
|
|
20
|
-
id: IdType;
|
|
21
|
-
}) => React.ReactElement;
|
|
22
|
-
children: any;
|
|
23
|
-
}
|
|
24
|
-
declare const MultipleContainersSortList: <T extends Record<string, any>>(props: MultipleContainersSortListProps<T>) => JSX.Element;
|
|
25
|
-
export default MultipleContainersSortList;
|