dtable-ui-component 6.0.29-beta9 → 6.0.29
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/lib/ActionSheet/index.js +196 -0
- package/lib/ActionSheet/style/index.css +377 -0
- package/lib/ActivityIndicator/index.css +110 -0
- package/lib/ActivityIndicator/index.js +76 -0
- package/lib/Badge/index.css +98 -0
- package/lib/Badge/index.js +65 -0
- package/lib/CheckboxEditor/index.js +116 -24
- package/lib/CollaboratorEditor/index.js +11 -23
- package/lib/CollaboratorEditor/mb-collaborator-editor/index.css +85 -0
- package/lib/CollaboratorEditor/mb-collaborator-editor/index.js +148 -0
- package/lib/DTableCommonAddTool/index.js +3 -1
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +6 -6
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +6 -6
- package/lib/DateEditor/index.js +95 -69
- package/lib/DateEditor/mb-date-editor-popover/custom-rc-calendar.css +118 -0
- package/lib/DateEditor/mb-date-editor-popover/index.css +45 -0
- package/lib/DateEditor/mb-date-editor-popover/index.js +226 -0
- package/lib/DateEditor/{pc-editor.js → pc-date-editor-popover.js} +9 -9
- package/lib/DatePicker/index.js +120 -0
- package/lib/DatePicker/locale/en_US.js +14 -0
- package/lib/DatePicker/locale/ru_RU.js +14 -0
- package/lib/DatePicker/locale/sv_SE.js +14 -0
- package/lib/DatePicker/locale/zh_CN.js +14 -0
- package/lib/DatePicker/style/index.css +298 -0
- package/lib/DatePicker/utils.js +36 -0
- package/lib/{DepartmentMultipleSelectEditor → Department-editor/department-multiple-select}/index.js +6 -6
- package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/department-single-select.js +7 -7
- package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/index.css +3 -10
- package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/index.js +25 -8
- package/lib/{SelectedDepartments → Department-editor/selected-departments}/index.css +1 -0
- package/lib/{SelectedDepartments → Department-editor/selected-departments}/index.js +3 -3
- package/lib/DigitalSignEditor/index.js +171 -24
- package/lib/Drawer/index.css +144 -0
- package/lib/Drawer/index.js +21 -0
- package/lib/FileEditor/addition-previewer/index.css +1 -0
- package/lib/FileEditor/{pc-editor/addition-previewer → addition-previewer}/index.js +1 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +1 -0
- package/lib/FileEditor/{pc-editor/addition-previewer → addition-previewer}/local-file-addition/index.js +4 -4
- package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/dropdown-menu.js +1 -1
- package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/file-name-editor/index.js +1 -1
- package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/index.css +2 -0
- package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/index.js +2 -2
- package/lib/FileEditor/files-previewer/index.js +268 -26
- package/lib/FileEditor/index.css +5 -0
- package/lib/FileEditor/index.js +265 -26
- package/lib/FormulaFormatter/index.css +5 -5
- package/lib/GeolocationEditor/{pc-editor/country-editor.js → country-editor.js} +49 -5
- package/lib/GeolocationEditor/{pc-editor/index.css → index.css} +4 -3
- package/lib/GeolocationEditor/index.js +230 -90
- package/lib/GeolocationEditor/{pc-editor/location-editor.js → location-editor.js} +41 -8
- package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/index.js +6 -6
- package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/map-editor-utils.js +4 -10
- package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/index.js +7 -7
- package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{pc-editor/province-city-editor.js → province-city-editor.js} +38 -7
- package/lib/GeolocationEditor/{pc-editor/province-editor.js → province-editor.js} +31 -7
- package/lib/GeolocationEditor/{pc-editor/selector-header-item.js → selector-header-item.js} +1 -1
- package/lib/Icon/index.css +50 -0
- package/lib/Icon/index.js +35 -0
- package/lib/Icon/load-sprite.js +56 -0
- package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/image-link/index.js +1 -1
- package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/index.js +1 -1
- package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/local-image-addition/index.js +4 -4
- package/lib/ImageEditor/images-previewer/image-preview/index.js +3 -3
- package/lib/ImageEditor/images-previewer/index.js +4 -9
- package/lib/ImageEditor/index.css +16 -17
- package/lib/ImageEditor/index.js +185 -26
- package/lib/ImageThumbnail/index.js +1 -2
- package/lib/InputItem/custom-input.js +321 -0
- package/lib/InputItem/custom-keyboard.js +162 -0
- package/lib/InputItem/index.js +389 -0
- package/lib/InputItem/input.js +45 -0
- package/lib/InputItem/locale/en_US.js +12 -0
- package/lib/InputItem/locale/ru_RU.js +12 -0
- package/lib/InputItem/locale/sv_SE.js +12 -0
- package/lib/InputItem/locale/zh_CN.js +12 -0
- package/lib/InputItem/portal.js +23 -0
- package/lib/InputItem/style/index.css +524 -0
- package/lib/LinkEditor/index.js +5 -5
- package/lib/LinkEditor/{mb-popover → mb-link-editor-popover}/index.css +1 -1
- package/lib/List/index.css +389 -0
- package/lib/List/index.js +41 -0
- package/lib/List/list-item.js +169 -0
- package/lib/Modal/alert.js +86 -0
- package/lib/Modal/index.js +16 -0
- package/lib/Modal/modal.js +118 -0
- package/lib/Modal/operation.js +81 -0
- package/lib/Modal/prompt.js +211 -0
- package/lib/Modal/style/index.css +593 -0
- package/lib/MultipleSelectEditor/index.js +14 -9
- package/lib/Picker/AbstractPicker.js +190 -0
- package/lib/Picker/index.js +28 -0
- package/lib/Picker/locale/en_US.js +12 -0
- package/lib/Picker/locale/ru_RU.js +12 -0
- package/lib/Picker/locale/sv_SE.js +12 -0
- package/lib/Picker/locale/zh_CN.js +12 -0
- package/lib/Picker/popupProps.js +12 -0
- package/lib/Picker/style/index.css +145 -0
- package/lib/Popover/index.js +63 -0
- package/lib/Popover/item.js +55 -0
- package/lib/Popover/style/index.css +233 -0
- package/lib/Progress/index.css +24 -0
- package/lib/Progress/index.js +66 -0
- package/lib/Radio/Radio.js +47 -0
- package/lib/Radio/RadioItem.js +57 -0
- package/lib/Radio/index.css +92 -0
- package/lib/Radio/index.js +12 -0
- package/lib/RowExpandDialog/column-content/index.js +2 -2
- package/lib/RowExpandDialog/index.js +0 -2
- package/lib/RowExpandEditor/{add-btn/pc-add-btn → RowExpandAddBtn}/index.js +4 -6
- package/lib/RowExpandEditor/{checkbox-editor/pc-editor.js → RowExpandCheckboxEditor/index.js} +13 -9
- package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.css +1 -1
- package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.js +7 -6
- package/lib/RowExpandEditor/{date-editor/pc-editor.js → RowExpandDateEditor/index.js} +2 -2
- package/lib/RowExpandEditor/{department-editor/pc-editor.js → RowExpandDepartmentEditor/index.js} +49 -44
- package/lib/RowExpandEditor/{digital-sign-editor/pc-editor → RowExpandDigitalSignEditor}/index.css +1 -1
- package/lib/RowExpandEditor/{digital-sign-editor/pc-editor → RowExpandDigitalSignEditor}/index.js +11 -11
- package/lib/RowExpandEditor/{duration-editor/pc-editor.js → RowExpandDurationEditor/index.js} +2 -2
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +2 -0
- package/lib/RowExpandEditor/{email-editor/pc-editor → RowExpandEmailEditor}/index.js +3 -3
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +1 -0
- package/lib/RowExpandEditor/{file-editor/pc-editor → RowExpandFileEditor}/index.js +9 -9
- package/lib/RowExpandEditor/{geolocation-editor/pc-editor → RowExpandGeolocationEditor}/index.js +13 -17
- package/lib/RowExpandEditor/{image-editor/pc-editor → RowExpandImageEditor}/index.js +9 -9
- package/lib/RowExpandEditor/{long-text-editor/pc-editor → RowExpandLongTextEditor}/index.js +7 -7
- package/lib/RowExpandEditor/{multiple-select-editor/pc-editor → RowExpandMultipleSelectEditor}/index.css +1 -1
- package/lib/RowExpandEditor/{multiple-select-editor/pc-editor → RowExpandMultipleSelectEditor}/index.js +6 -6
- package/lib/RowExpandEditor/{number-editor/pc-editor.js → RowExpandNumberEditor/index.js} +2 -2
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +13 -0
- package/lib/RowExpandEditor/{rate-editor/pc-editor.js → RowExpandRateEditor/index.js} +3 -2
- package/lib/RowExpandEditor/{single-select-editor/pc-editor → RowExpandSingleSelectorEditor}/index.js +17 -17
- package/lib/RowExpandEditor/{text-editor/pc-editor → RowExpandTextEditor}/index.js +7 -7
- package/lib/RowExpandEditor/{url-editor/pc-editor → RowExpandUrlEditor}/index.js +6 -6
- package/lib/RowExpandEditor/constants.js +34 -34
- package/lib/RowExpandFormatter/{department-formatter/pc-formatter.js → RowExpandDepartmentFormatter/index.js} +2 -2
- package/lib/RowExpandFormatter/{email-formatter → RowExpandEmailFormatter}/index.css +4 -4
- package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +5 -0
- package/lib/RowExpandFormatter/constants.js +17 -17
- package/lib/RowExpandFormatter/index.css +18 -33
- package/lib/RowExpandFormatter/index.js +1 -1
- package/lib/SelectItem/index.js +33 -57
- package/lib/SingleSelectEditor/index.js +14 -9
- package/lib/SvgIcon/index.js +1 -2
- package/lib/TabBar/Tab.js +76 -0
- package/lib/TabBar/index.css +142 -0
- package/lib/TabBar/index.js +129 -0
- package/lib/Tabs/index.css +453 -0
- package/lib/Tabs/index.js +39 -0
- package/lib/TextareaItem/index.css +235 -0
- package/lib/TextareaItem/index.js +231 -0
- package/lib/Toast/index.css +67 -0
- package/lib/Toast/index.js +131 -0
- package/lib/_util/class.js +34 -0
- package/lib/_util/closest.js +17 -0
- package/lib/_util/exenv.js +8 -0
- package/lib/_util/getDataAttr.js +15 -0
- package/lib/_util/getLocale.js +42 -0
- package/lib/constants/index.js +2 -3
- package/lib/css/am.css +390 -0
- package/lib/css/mb-cell-editor.css +1 -1
- package/lib/index.js +100 -51
- package/lib/locales/de.json +1 -3
- package/lib/locales/en.json +1 -3
- package/lib/locales/es.json +1 -3
- package/lib/locales/fr.json +1 -3
- package/lib/locales/pt.json +1 -3
- package/lib/locales/ru.json +1 -3
- package/lib/locales/zh-CN.json +1 -3
- package/lib/select-editor/index.js +20 -27
- package/lib/select-editor/mb-select-editor/index.css +127 -0
- package/lib/select-editor/mb-select-editor/index.js +197 -0
- package/lib/select-editor/{pc-editor → pc-select-editor}/index.css +1 -1
- package/lib/select-editor/{pc-editor → pc-select-editor}/index.js +7 -7
- package/lib/select-editor/select-editor-option.js +84 -0
- package/lib/utils/editor-utils.js +2 -6
- package/lib/utils/get-event-transfer.js +1 -2
- package/lib/utils/utils.js +2 -11
- package/package.json +25 -16
- package/lib/BodyPortal/index.js +0 -29
- package/lib/CheckboxEditor/mb-editor.js +0 -99
- package/lib/CheckboxEditor/pc-editor.js +0 -118
- package/lib/CollaboratorEditor/mb-editor/index.css +0 -41
- package/lib/CollaboratorEditor/mb-editor/index.js +0 -88
- package/lib/DateEditor/mb-editor/custom-rc-calendar.css +0 -118
- package/lib/DateEditor/mb-editor/index.css +0 -39
- package/lib/DateEditor/mb-editor/index.js +0 -215
- package/lib/DepartmentSingleSelectEditor/index.js +0 -34
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.css +0 -4
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +0 -230
- package/lib/DigitalSignEditor/mb-editor/index.css +0 -35
- package/lib/DigitalSignEditor/mb-editor/index.js +0 -144
- package/lib/DigitalSignEditor/pc-editor/index.js +0 -181
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +0 -122
- package/lib/FileEditor/files-previewer/mb-previewer/index.css +0 -39
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +0 -64
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +0 -276
- package/lib/FileEditor/mb-editor/index.css +0 -10
- package/lib/FileEditor/mb-editor/index.js +0 -136
- package/lib/FileEditor/pc-editor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/FileEditor/pc-editor/index.css +0 -5
- package/lib/FileEditor/pc-editor/index.js +0 -274
- package/lib/GeolocationEditor/mb-editor/country-editor.js +0 -79
- package/lib/GeolocationEditor/mb-editor/index.css +0 -11
- package/lib/GeolocationEditor/mb-editor/index.js +0 -125
- package/lib/GeolocationEditor/mb-editor/location-editor.js +0 -101
- package/lib/GeolocationEditor/mb-editor/map-editor/index.css +0 -11
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +0 -474
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.css +0 -158
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +0 -530
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +0 -77
- package/lib/GeolocationEditor/mb-editor/province-editor.js +0 -76
- package/lib/GeolocationEditor/pc-editor/index.js +0 -247
- package/lib/ImageEditor/mb-editor/index.css +0 -29
- package/lib/ImageEditor/mb-editor/index.js +0 -136
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +0 -140
- package/lib/ImageEditor/pc-editor/index.css +0 -24
- package/lib/ImageEditor/pc-editor/index.js +0 -194
- package/lib/MobileFullScreenPage/body/index.css +0 -9
- package/lib/MobileFullScreenPage/body/index.js +0 -23
- package/lib/MobileFullScreenPage/header/index.css +0 -39
- package/lib/MobileFullScreenPage/header/index.js +0 -38
- package/lib/MobileFullScreenPage/index.css +0 -13
- package/lib/MobileFullScreenPage/index.js +0 -73
- package/lib/MobileModal/index.js +0 -41
- package/lib/MobileOperationSheet/index.css +0 -27
- package/lib/MobileOperationSheet/index.js +0 -92
- package/lib/MobileSelector/empty/index.css +0 -3
- package/lib/MobileSelector/empty/index.js +0 -23
- package/lib/MobileSelector/index.css +0 -32
- package/lib/MobileSelector/index.js +0 -57
- package/lib/MobileSelector/option/index.css +0 -28
- package/lib/MobileSelector/option/index.js +0 -36
- package/lib/MobileSelector/options/index.css +0 -8
- package/lib/MobileSelector/options/index.js +0 -18
- package/lib/MobileSelector/search/index.css +0 -7
- package/lib/MobileSelector/search/index.js +0 -26
- package/lib/MobileUpload/index.css +0 -1
- package/lib/MobileUpload/index.js +0 -160
- package/lib/RowExpand/index.js +0 -24
- package/lib/RowExpandEditor/add-btn/index.js +0 -24
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.css +0 -3
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +0 -19
- package/lib/RowExpandEditor/checkbox-editor/index.js +0 -25
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.css +0 -6
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +0 -36
- package/lib/RowExpandEditor/collaborator-editor/index.js +0 -24
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.css +0 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +0 -163
- package/lib/RowExpandEditor/date-editor/index.js +0 -24
- package/lib/RowExpandEditor/date-editor/mb-editor.js +0 -82
- package/lib/RowExpandEditor/department-editor/index.js +0 -24
- package/lib/RowExpandEditor/department-editor/mb-editor.js +0 -65
- package/lib/RowExpandEditor/digital-sign-editor/index.js +0 -24
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.css +0 -1
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +0 -130
- package/lib/RowExpandEditor/duration-editor/index.js +0 -24
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +0 -71
- package/lib/RowExpandEditor/email-editor/index.js +0 -24
- package/lib/RowExpandEditor/email-editor/mb-editor/index.css +0 -1
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +0 -84
- package/lib/RowExpandEditor/email-editor/pc-editor/index.css +0 -1
- package/lib/RowExpandEditor/file-editor/index.js +0 -24
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +0 -114
- package/lib/RowExpandEditor/file-editor/pc-editor/index.css +0 -1
- package/lib/RowExpandEditor/geolocation-editor/index.js +0 -24
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +0 -100
- package/lib/RowExpandEditor/image-editor/index.js +0 -24
- package/lib/RowExpandEditor/image-editor/mb-editor/index.css +0 -30
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +0 -109
- package/lib/RowExpandEditor/long-text-editor/index.js +0 -24
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.css +0 -10
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +0 -80
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.css +0 -3
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +0 -91
- package/lib/RowExpandEditor/multiple-select-editor/index.js +0 -24
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +0 -154
- package/lib/RowExpandEditor/number-editor/index.js +0 -24
- package/lib/RowExpandEditor/number-editor/mb-editor/index.css +0 -3
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +0 -76
- package/lib/RowExpandEditor/rate-editor/index.css +0 -34
- package/lib/RowExpandEditor/rate-editor/index.js +0 -25
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +0 -92
- package/lib/RowExpandEditor/right-angle/index.css +0 -6
- package/lib/RowExpandEditor/right-angle/index.js +0 -17
- package/lib/RowExpandEditor/single-select-editor/index.js +0 -24
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.css +0 -8
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +0 -134
- package/lib/RowExpandEditor/text-editor/index.js +0 -24
- package/lib/RowExpandEditor/text-editor/mb-editor/index.css +0 -14
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +0 -37
- package/lib/RowExpandEditor/url-editor/index.js +0 -24
- package/lib/RowExpandEditor/url-editor/mb-editor/index.css +0 -17
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +0 -87
- package/lib/RowExpandFormatter/department-formatter/index.js +0 -19
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +0 -20
- package/lib/RowExpandFormatter/rate-formatter/index.css +0 -5
- package/lib/RowExpandView/body/index.css +0 -173
- package/lib/RowExpandView/body/index.js +0 -111
- package/lib/RowExpandView/column-content/index.css +0 -27
- package/lib/RowExpandView/column-content/index.js +0 -25
- package/lib/RowExpandView/index.css +0 -3
- package/lib/RowExpandView/index.js +0 -178
- package/lib/select-editor/mb-editor/index.css +0 -1
- package/lib/select-editor/mb-editor/index.js +0 -105
- /package/lib/CollaboratorEditor/{pc-editor → pc-collaborator-editor}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-editor → pc-collaborator-editor}/index.js +0 -0
- /package/lib/{constants/departments.js → Department-editor/constants.js} +0 -0
- /package/lib/{DepartmentMultipleSelectEditor → Department-editor/department-multiple-select}/index.css +0 -0
- /package/lib/{utils/departments.js → Department-editor/utils.js} +0 -0
- /package/lib/DigitalSignEditor/{pc-editor/index.css → index.css} +0 -0
- /package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/file-name-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{pc-editor/parse-geolocation.js → parse-geolocation.js} +0 -0
- /package/lib/GeolocationEditor/{pc-editor/selector-list.js → selector-list.js} +0 -0
- /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/image-link/index.css +0 -0
- /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/index.css +0 -0
- /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/local-image-addition/index.css +0 -0
- /package/lib/LinkEditor/{mb-popover → mb-link-editor-popover}/index.js +0 -0
- /package/lib/LinkEditor/{pc-popover → pc-link-editor-popover}/index.css +0 -0
- /package/lib/LinkEditor/{pc-popover → pc-link-editor-popover}/index.js +0 -0
- /package/lib/RowExpandEditor/{add-btn/pc-add-btn → RowExpandAddBtn}/index.css +0 -0
- /package/lib/RowExpandEditor/{checkbox-editor → RowExpandCheckboxEditor}/index.css +0 -0
- /package/lib/RowExpandEditor/{geolocation-editor/pc-editor → RowExpandGeolocationEditor}/index.css +0 -0
- /package/lib/RowExpandEditor/{image-editor/pc-editor → RowExpandImageEditor}/index.css +0 -0
- /package/lib/RowExpandEditor/{long-text-editor/pc-editor → RowExpandLongTextEditor}/index.css +0 -0
- /package/lib/RowExpandEditor/{single-select-editor/pc-editor → RowExpandSingleSelectorEditor}/index.css +0 -0
- /package/lib/RowExpandEditor/{text-editor/pc-editor → RowExpandTextEditor}/index.css +0 -0
- /package/lib/RowExpandEditor/{url-editor/pc-editor → RowExpandUrlEditor}/index.css +0 -0
- /package/lib/RowExpandFormatter/{email-formatter → RowExpandEmailFormatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{formula-formatter → RowExpandFormulaFormatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
- /package/lib/RowExpandFormatter/{rate-formatter → RowExpandRateFormatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{url-formatter → RowExpandUrlFormatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{url-formatter → RowExpandUrlFormatter}/index.js +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
@import url('../css/am.css');
|
|
2
|
+
|
|
3
|
+
.am-list-header {
|
|
4
|
+
padding: 15px 15px 9px 15px;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
color: #888;
|
|
7
|
+
width: 100%;
|
|
8
|
+
-webkit-box-sizing: border-box;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.am-list-footer {
|
|
13
|
+
padding: 9px 15px 15px 15px;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
color: #888;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.am-list-body {
|
|
19
|
+
position: relative;
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
border-top: 1PX solid #ddd;
|
|
22
|
+
border-bottom: 1PX solid #ddd;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
26
|
+
(min-resolution: 2dppx) {
|
|
27
|
+
html:not([data-scale]) .am-list-body {
|
|
28
|
+
border-top: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
html:not([data-scale]) .am-list-body::before {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
background-color: #ddd;
|
|
35
|
+
display: block;
|
|
36
|
+
z-index: 1;
|
|
37
|
+
top: 0;
|
|
38
|
+
right: auto;
|
|
39
|
+
bottom: auto;
|
|
40
|
+
left: 0;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 1PX;
|
|
43
|
+
-webkit-transform-origin: 50% 50%;
|
|
44
|
+
-ms-transform-origin: 50% 50%;
|
|
45
|
+
transform-origin: 50% 50%;
|
|
46
|
+
-webkit-transform: scaleY(0.5);
|
|
47
|
+
-ms-transform: scaleY(0.5);
|
|
48
|
+
transform: scaleY(0.5);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
53
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
54
|
+
html:not([data-scale]) .am-list-body::before {
|
|
55
|
+
-webkit-transform: scaleY(0.33);
|
|
56
|
+
-ms-transform: scaleY(0.33);
|
|
57
|
+
transform: scaleY(0.33);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
62
|
+
(min-resolution: 2dppx) {
|
|
63
|
+
html:not([data-scale]) .am-list-body {
|
|
64
|
+
border-bottom: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
html:not([data-scale]) .am-list-body::after {
|
|
68
|
+
content: '';
|
|
69
|
+
position: absolute;
|
|
70
|
+
background-color: #ddd;
|
|
71
|
+
display: block;
|
|
72
|
+
z-index: 1;
|
|
73
|
+
top: auto;
|
|
74
|
+
right: auto;
|
|
75
|
+
bottom: 0;
|
|
76
|
+
left: 0;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 1PX;
|
|
79
|
+
-webkit-transform-origin: 50% 100%;
|
|
80
|
+
-ms-transform-origin: 50% 100%;
|
|
81
|
+
transform-origin: 50% 100%;
|
|
82
|
+
-webkit-transform: scaleY(0.5);
|
|
83
|
+
-ms-transform: scaleY(0.5);
|
|
84
|
+
transform: scaleY(0.5);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
89
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
90
|
+
html:not([data-scale]) .am-list-body::after {
|
|
91
|
+
-webkit-transform: scaleY(0.33);
|
|
92
|
+
-ms-transform: scaleY(0.33);
|
|
93
|
+
transform: scaleY(0.33);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.am-list-body div:not(:last-child) .am-list-line {
|
|
98
|
+
border-bottom: 1PX solid #ddd;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
102
|
+
(min-resolution: 2dppx) {
|
|
103
|
+
html:not([data-scale]) .am-list-body div:not(:last-child) .am-list-line {
|
|
104
|
+
border-bottom: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
html:not([data-scale]) .am-list-body div:not(:last-child) .am-list-line::after {
|
|
108
|
+
content: '';
|
|
109
|
+
position: absolute;
|
|
110
|
+
background-color: #ddd;
|
|
111
|
+
display: block;
|
|
112
|
+
z-index: 1;
|
|
113
|
+
top: auto;
|
|
114
|
+
right: auto;
|
|
115
|
+
bottom: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 1PX;
|
|
119
|
+
-webkit-transform-origin: 50% 100%;
|
|
120
|
+
-ms-transform-origin: 50% 100%;
|
|
121
|
+
transform-origin: 50% 100%;
|
|
122
|
+
-webkit-transform: scaleY(0.5);
|
|
123
|
+
-ms-transform: scaleY(0.5);
|
|
124
|
+
transform: scaleY(0.5);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
129
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
130
|
+
html:not([data-scale]) .am-list-body div:not(:last-child) .am-list-line::after {
|
|
131
|
+
-webkit-transform: scaleY(0.33);
|
|
132
|
+
-ms-transform: scaleY(0.33);
|
|
133
|
+
transform: scaleY(0.33);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.am-list-item {
|
|
138
|
+
position: relative;
|
|
139
|
+
display: -webkit-box;
|
|
140
|
+
display: -webkit-flex;
|
|
141
|
+
display: -ms-flexbox;
|
|
142
|
+
display: flex;
|
|
143
|
+
padding-left: 15px;
|
|
144
|
+
min-height: 44px;
|
|
145
|
+
background-color: #fff;
|
|
146
|
+
vertical-align: middle;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
-webkit-transition: background-color 200ms;
|
|
149
|
+
transition: background-color 200ms;
|
|
150
|
+
-webkit-box-align: center;
|
|
151
|
+
-webkit-align-items: center;
|
|
152
|
+
-ms-flex-align: center;
|
|
153
|
+
align-items: center;
|
|
154
|
+
/* list左图片显示*/
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.am-list-item .am-list-ripple {
|
|
158
|
+
position: absolute;
|
|
159
|
+
background: transparent;
|
|
160
|
+
display: inline-block;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
will-change: box-shadow, transform;
|
|
163
|
+
-webkit-transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1);
|
|
164
|
+
transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1);
|
|
165
|
+
transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
166
|
+
transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1);
|
|
167
|
+
outline: none;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
border-radius: 100%;
|
|
170
|
+
-webkit-transform: scale(0);
|
|
171
|
+
-ms-transform: scale(0);
|
|
172
|
+
transform: scale(0);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.am-list-item .am-list-ripple.am-list-ripple-animate {
|
|
176
|
+
background-color: rgba(158, 158, 158, 0.2);
|
|
177
|
+
-webkit-animation: ripple 1s linear;
|
|
178
|
+
animation: ripple 1s linear;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.am-list-item.am-list-item-top .am-list-line {
|
|
182
|
+
-webkit-box-align: start;
|
|
183
|
+
-webkit-align-items: flex-start;
|
|
184
|
+
-ms-flex-align: start;
|
|
185
|
+
align-items: flex-start;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.am-list-item.am-list-item-top .am-list-line .am-list-arrow {
|
|
189
|
+
margin-top: 2px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.am-list-item.am-list-item-middle .am-list-line {
|
|
193
|
+
-webkit-box-align: center;
|
|
194
|
+
-webkit-align-items: center;
|
|
195
|
+
-ms-flex-align: center;
|
|
196
|
+
align-items: center;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.am-list-item.am-list-item-bottom .am-list-line {
|
|
200
|
+
-webkit-box-align: end;
|
|
201
|
+
-webkit-align-items: flex-end;
|
|
202
|
+
-ms-flex-align: end;
|
|
203
|
+
align-items: flex-end;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.am-list-item.am-list-item-error .am-list-line .am-list-extra {
|
|
207
|
+
color: #f50;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.am-list-item.am-list-item-error .am-list-line .am-list-extra .am-list-brief {
|
|
211
|
+
color: #f50;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.am-list-item.am-list-item-active {
|
|
215
|
+
background-color: #ddd;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.am-list-item.am-list-item-disabled .am-list-line .am-list-content,
|
|
219
|
+
.am-list-item.am-list-item-disabled .am-list-line .am-list-extra {
|
|
220
|
+
color: #bbb;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.am-list-item img {
|
|
224
|
+
width: 22px;
|
|
225
|
+
height: 22px;
|
|
226
|
+
vertical-align: middle;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.am-list-item .am-list-thumb:first-child {
|
|
230
|
+
margin-right: 15px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.am-list-item .am-list-thumb:last-child {
|
|
234
|
+
margin-left: 8px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.am-list-item .am-list-line {
|
|
238
|
+
position: relative;
|
|
239
|
+
display: -webkit-box;
|
|
240
|
+
display: -webkit-flex;
|
|
241
|
+
display: -ms-flexbox;
|
|
242
|
+
display: flex;
|
|
243
|
+
-webkit-box-flex: 1;
|
|
244
|
+
-webkit-flex: 1;
|
|
245
|
+
-ms-flex: 1;
|
|
246
|
+
flex: 1;
|
|
247
|
+
-webkit-align-self: stretch;
|
|
248
|
+
-ms-flex-item-align: stretch;
|
|
249
|
+
align-self: stretch;
|
|
250
|
+
padding-right: 15px;
|
|
251
|
+
overflow: hidden;
|
|
252
|
+
/* list左侧主内容*/
|
|
253
|
+
/* list右补充内容*/
|
|
254
|
+
/* 辅助性文字*/
|
|
255
|
+
/* list右侧箭头*/
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.am-list-item .am-list-line .am-list-content {
|
|
259
|
+
-webkit-box-flex: 1;
|
|
260
|
+
-webkit-flex: 1;
|
|
261
|
+
-ms-flex: 1;
|
|
262
|
+
flex: 1;
|
|
263
|
+
color: #000;
|
|
264
|
+
font-size: 17px;
|
|
265
|
+
line-height: 1.5;
|
|
266
|
+
text-align: left;
|
|
267
|
+
width: auto;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
text-overflow: ellipsis;
|
|
270
|
+
white-space: nowrap;
|
|
271
|
+
padding-top: 7px;
|
|
272
|
+
padding-bottom: 7px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.am-list-item .am-list-line .am-list-extra {
|
|
276
|
+
-webkit-flex-basis: 36%;
|
|
277
|
+
-ms-flex-preferred-size: 36%;
|
|
278
|
+
flex-basis: 36%;
|
|
279
|
+
color: #888;
|
|
280
|
+
font-size: 16px;
|
|
281
|
+
line-height: 1.5;
|
|
282
|
+
text-align: right;
|
|
283
|
+
width: auto;
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
text-overflow: ellipsis;
|
|
286
|
+
white-space: nowrap;
|
|
287
|
+
padding-top: 7px;
|
|
288
|
+
padding-bottom: 7px;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.am-list-item .am-list-line .am-list-title {
|
|
292
|
+
width: auto;
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
text-overflow: ellipsis;
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.am-list-item .am-list-line .am-list-brief {
|
|
299
|
+
color: #888;
|
|
300
|
+
font-size: 15px;
|
|
301
|
+
line-height: 1.5;
|
|
302
|
+
margin-top: 6px;
|
|
303
|
+
width: auto;
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
text-overflow: ellipsis;
|
|
306
|
+
white-space: nowrap;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.am-list-item .am-list-line .am-list-arrow {
|
|
310
|
+
display: block;
|
|
311
|
+
width: 15px;
|
|
312
|
+
height: 15px;
|
|
313
|
+
margin-left: 8px;
|
|
314
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2226%22%20viewBox%3D%220%200%2016%2026%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%20id%3D%22UI-KIT_%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%229.9%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20transform%3D%22translate(-5809.000000%2C%20-8482.000000)%22%20fill%3D%22%23C7C7CC%22%3E%3Cpolygon%20id%3D%22Disclosure-Indicator%22%20points%3D%225811%208482%205809%208484%205820.5%208495%205809%208506%205811%208508%205825%208495%22%3E%3C%2Fpolygon%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
|
|
315
|
+
background-size: contain;
|
|
316
|
+
background-repeat: no-repeat;
|
|
317
|
+
background-position: 50% 50%;
|
|
318
|
+
visibility: hidden;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.am-list-item .am-list-line .am-list-arrow-horizontal {
|
|
322
|
+
visibility: visible;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.am-list-item .am-list-line .am-list-arrow-vertical {
|
|
326
|
+
visibility: visible;
|
|
327
|
+
-webkit-transform: rotate(90deg);
|
|
328
|
+
-ms-transform: rotate(90deg);
|
|
329
|
+
transform: rotate(90deg);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.am-list-item .am-list-line .am-list-arrow-vertical-up {
|
|
333
|
+
visibility: visible;
|
|
334
|
+
-webkit-transform: rotate(270deg);
|
|
335
|
+
-ms-transform: rotate(270deg);
|
|
336
|
+
transform: rotate(270deg);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.am-list-item .am-list-line-multiple {
|
|
340
|
+
padding: 12.5px 15px 12.5px 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.am-list-item .am-list-line-multiple .am-list-content {
|
|
344
|
+
padding-top: 0;
|
|
345
|
+
padding-bottom: 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.am-list-item .am-list-line-multiple .am-list-extra {
|
|
349
|
+
padding-top: 0;
|
|
350
|
+
padding-bottom: 0;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.am-list-item .am-list-line-wrap .am-list-content {
|
|
354
|
+
white-space: normal;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.am-list-item .am-list-line-wrap .am-list-extra {
|
|
358
|
+
white-space: normal;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.am-list-item select {
|
|
362
|
+
position: relative;
|
|
363
|
+
display: block;
|
|
364
|
+
width: 100%;
|
|
365
|
+
height: 100%;
|
|
366
|
+
padding: 0;
|
|
367
|
+
border: 0;
|
|
368
|
+
font-size: 17px;
|
|
369
|
+
-webkit-appearance: none;
|
|
370
|
+
-moz-appearance: none;
|
|
371
|
+
appearance: none;
|
|
372
|
+
background-color: transparent;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@-webkit-keyframes ripple {
|
|
376
|
+
100% {
|
|
377
|
+
opacity: 0;
|
|
378
|
+
-webkit-transform: scale(2.5);
|
|
379
|
+
transform: scale(2.5);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@keyframes ripple {
|
|
384
|
+
100% {
|
|
385
|
+
opacity: 0;
|
|
386
|
+
-webkit-transform: scale(2.5);
|
|
387
|
+
transform: scale(2.5);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _listItem = _interopRequireDefault(require("./list-item"));
|
|
12
|
+
require("./index.css");
|
|
13
|
+
class List extends React.Component {
|
|
14
|
+
render() {
|
|
15
|
+
const {
|
|
16
|
+
prefixCls,
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
style,
|
|
20
|
+
renderHeader,
|
|
21
|
+
renderFooter,
|
|
22
|
+
...restProps
|
|
23
|
+
} = this.props;
|
|
24
|
+
const wrapCls = (0, _classnames.default)(prefixCls, className);
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
26
|
+
className: wrapCls,
|
|
27
|
+
style: style
|
|
28
|
+
}, restProps), renderHeader ? /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: "".concat(prefixCls, "-header")
|
|
30
|
+
}, typeof renderHeader === 'function' ? renderHeader() : renderHeader) : null, children ? /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: "".concat(prefixCls, "-body")
|
|
32
|
+
}, children) : null, renderFooter ? /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: "".concat(prefixCls, "-footer")
|
|
34
|
+
}, typeof renderFooter === 'function' ? renderFooter() : renderFooter) : null);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
List.defaultProps = {
|
|
38
|
+
prefixCls: 'am-list'
|
|
39
|
+
};
|
|
40
|
+
List.Item = _listItem.default;
|
|
41
|
+
var _default = exports.default = List;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Brief = void 0;
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
|
+
/* tslint:disable:jsx-no-multiline-js */
|
|
13
|
+
|
|
14
|
+
class Brief extends React.Component {
|
|
15
|
+
render() {
|
|
16
|
+
return /*#__PURE__*/React.createElement('div', {
|
|
17
|
+
className: 'am-list-brief',
|
|
18
|
+
style: this.props.style
|
|
19
|
+
}, this.props.children);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Brief = Brief;
|
|
23
|
+
class ListItem extends React.Component {
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(props);
|
|
26
|
+
this.onClick = ev => {
|
|
27
|
+
const {
|
|
28
|
+
onClick,
|
|
29
|
+
platform
|
|
30
|
+
} = this.props;
|
|
31
|
+
const isAndroid = platform === 'android';
|
|
32
|
+
if (!!onClick && isAndroid) {
|
|
33
|
+
if (this.debounceTimeout) {
|
|
34
|
+
clearTimeout(this.debounceTimeout);
|
|
35
|
+
this.debounceTimeout = null;
|
|
36
|
+
}
|
|
37
|
+
const Item = ev.currentTarget;
|
|
38
|
+
const RippleWidth = Math.max(Item.offsetHeight, Item.offsetWidth);
|
|
39
|
+
const ClientRect = ev.currentTarget.getBoundingClientRect();
|
|
40
|
+
const pointX = ev.clientX - ClientRect.left - Item.offsetWidth / 2;
|
|
41
|
+
const pointY = ev.clientY - ClientRect.top - Item.offsetWidth / 2;
|
|
42
|
+
const coverRippleStyle = {
|
|
43
|
+
width: "".concat(RippleWidth, "px"),
|
|
44
|
+
height: "".concat(RippleWidth, "px"),
|
|
45
|
+
left: "".concat(pointX, "px"),
|
|
46
|
+
top: "".concat(pointY, "px")
|
|
47
|
+
};
|
|
48
|
+
this.setState({
|
|
49
|
+
coverRippleStyle,
|
|
50
|
+
RippleClicked: true
|
|
51
|
+
}, () => {
|
|
52
|
+
this.debounceTimeout = setTimeout(() => {
|
|
53
|
+
this.setState({
|
|
54
|
+
coverRippleStyle: {
|
|
55
|
+
display: 'none'
|
|
56
|
+
},
|
|
57
|
+
RippleClicked: false
|
|
58
|
+
});
|
|
59
|
+
}, 1000);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (onClick) {
|
|
63
|
+
onClick(ev);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.state = {
|
|
67
|
+
coverRippleStyle: {
|
|
68
|
+
display: 'none'
|
|
69
|
+
},
|
|
70
|
+
RippleClicked: false
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
componentWillUnmount() {
|
|
74
|
+
if (this.debounceTimeout) {
|
|
75
|
+
clearTimeout(this.debounceTimeout);
|
|
76
|
+
this.debounceTimeout = null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
const {
|
|
81
|
+
prefixCls,
|
|
82
|
+
className,
|
|
83
|
+
activeStyle,
|
|
84
|
+
error,
|
|
85
|
+
align,
|
|
86
|
+
wrap,
|
|
87
|
+
disabled,
|
|
88
|
+
children,
|
|
89
|
+
multipleLine,
|
|
90
|
+
thumb,
|
|
91
|
+
extra,
|
|
92
|
+
arrow,
|
|
93
|
+
onClick,
|
|
94
|
+
...restProps
|
|
95
|
+
} = this.props;
|
|
96
|
+
const {
|
|
97
|
+
platform,
|
|
98
|
+
...otherProps
|
|
99
|
+
} = restProps;
|
|
100
|
+
const {
|
|
101
|
+
coverRippleStyle,
|
|
102
|
+
RippleClicked
|
|
103
|
+
} = this.state;
|
|
104
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, {
|
|
105
|
+
["".concat(prefixCls, "-item-disabled")]: disabled,
|
|
106
|
+
["".concat(prefixCls, "-item-error")]: error,
|
|
107
|
+
["".concat(prefixCls, "-item-top")]: align === 'top',
|
|
108
|
+
["".concat(prefixCls, "-item-middle")]: align === 'middle',
|
|
109
|
+
["".concat(prefixCls, "-item-bottom")]: align === 'bottom'
|
|
110
|
+
});
|
|
111
|
+
const rippleCls = (0, _classnames.default)("".concat(prefixCls, "-ripple"), {
|
|
112
|
+
["".concat(prefixCls, "-ripple-animate")]: RippleClicked
|
|
113
|
+
});
|
|
114
|
+
const lineCls = (0, _classnames.default)("".concat(prefixCls, "-line"), {
|
|
115
|
+
["".concat(prefixCls, "-line-multiple")]: multipleLine,
|
|
116
|
+
["".concat(prefixCls, "-line-wrap")]: wrap
|
|
117
|
+
});
|
|
118
|
+
const arrowCls = (0, _classnames.default)("".concat(prefixCls, "-arrow"), {
|
|
119
|
+
["".concat(prefixCls, "-arrow-horizontal")]: arrow === 'horizontal',
|
|
120
|
+
["".concat(prefixCls, "-arrow-vertical")]: arrow === 'down' || arrow === 'up',
|
|
121
|
+
["".concat(prefixCls, "-arrow-vertical-up")]: arrow === 'up'
|
|
122
|
+
});
|
|
123
|
+
const content = /*#__PURE__*/React.createElement("div", Object.assign({}, otherProps, {
|
|
124
|
+
onClick: ev => {
|
|
125
|
+
this.onClick(ev);
|
|
126
|
+
},
|
|
127
|
+
className: wrapCls
|
|
128
|
+
}), thumb ? /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: "".concat(prefixCls, "-thumb")
|
|
130
|
+
}, typeof thumb === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
131
|
+
src: thumb,
|
|
132
|
+
alt: ""
|
|
133
|
+
}) : thumb) : null, /*#__PURE__*/React.createElement("div", {
|
|
134
|
+
className: lineCls
|
|
135
|
+
}, children !== undefined && /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "".concat(prefixCls, "-content")
|
|
137
|
+
}, children), extra !== undefined && /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
className: "".concat(prefixCls, "-extra")
|
|
139
|
+
}, extra), arrow && /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
className: arrowCls,
|
|
141
|
+
"aria-hidden": "true"
|
|
142
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
style: coverRippleStyle,
|
|
144
|
+
className: rippleCls
|
|
145
|
+
}));
|
|
146
|
+
let touchProps = {};
|
|
147
|
+
Object.keys(otherProps).forEach(key => {
|
|
148
|
+
if (/onTouch/i.test(key)) {
|
|
149
|
+
touchProps[key] = otherProps[key];
|
|
150
|
+
delete otherProps[key];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
return /*#__PURE__*/React.createElement(_rmcFeedback.default, Object.assign({}, touchProps, {
|
|
154
|
+
disabled: disabled || !onClick,
|
|
155
|
+
activeStyle: activeStyle,
|
|
156
|
+
activeClassName: "".concat(prefixCls, "-item-active")
|
|
157
|
+
}), content);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
ListItem.defaultProps = {
|
|
161
|
+
prefixCls: 'am-list',
|
|
162
|
+
align: 'middle',
|
|
163
|
+
error: false,
|
|
164
|
+
multipleLine: false,
|
|
165
|
+
wrap: false,
|
|
166
|
+
platform: 'ios'
|
|
167
|
+
};
|
|
168
|
+
ListItem.Brief = Brief;
|
|
169
|
+
var _default = exports.default = ListItem;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = alert;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
11
|
+
var _client = require("react-dom/client");
|
|
12
|
+
var _closest = _interopRequireDefault(require("../_util/closest"));
|
|
13
|
+
var _modal = _interopRequireDefault(require("./modal"));
|
|
14
|
+
function alert(title, message) {
|
|
15
|
+
let actions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [{
|
|
16
|
+
text: '确定'
|
|
17
|
+
}];
|
|
18
|
+
let platform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'ios';
|
|
19
|
+
let closed = false;
|
|
20
|
+
if (!title && !message) {
|
|
21
|
+
// console.log('Must specify either an alert title, or message, or both');
|
|
22
|
+
return {
|
|
23
|
+
close: () => {}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const div = document.createElement('div');
|
|
27
|
+
document.body.appendChild(div);
|
|
28
|
+
const root = (0, _client.createRoot)(div);
|
|
29
|
+
function close() {
|
|
30
|
+
if (div) {
|
|
31
|
+
root.unmount();
|
|
32
|
+
if (div.parentNode) {
|
|
33
|
+
div.parentNode.removeChild(div);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const footer = actions.map(button => {
|
|
38
|
+
// tslint:disable-next-line:only-arrow-functions
|
|
39
|
+
const orginPress = button.onPress || function () {};
|
|
40
|
+
button.onPress = () => {
|
|
41
|
+
if (closed) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const res = orginPress();
|
|
45
|
+
if (res && res.then) {
|
|
46
|
+
res.then(() => {
|
|
47
|
+
closed = true;
|
|
48
|
+
close();
|
|
49
|
+
}).catch(() => {});
|
|
50
|
+
} else {
|
|
51
|
+
closed = true;
|
|
52
|
+
close();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return button;
|
|
56
|
+
});
|
|
57
|
+
const prefixCls = 'am-modal';
|
|
58
|
+
function onWrapTouchStart(e) {
|
|
59
|
+
if (!/iPhone|iPod|iPad/i.test(navigator.userAgent)) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const pNode = (0, _closest.default)(e.target, ".".concat(prefixCls, "-footer"));
|
|
63
|
+
if (!pNode) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
root.render( /*#__PURE__*/React.createElement(_modal.default, {
|
|
68
|
+
visible: true,
|
|
69
|
+
transparent: true,
|
|
70
|
+
title: title,
|
|
71
|
+
transitionName: "am-zoom",
|
|
72
|
+
closable: false,
|
|
73
|
+
maskClosable: false,
|
|
74
|
+
footer: footer,
|
|
75
|
+
maskTransitionName: "am-fade",
|
|
76
|
+
platform: platform,
|
|
77
|
+
wrapProps: {
|
|
78
|
+
onTouchStart: onWrapTouchStart
|
|
79
|
+
}
|
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: "".concat(prefixCls, "-alert-content")
|
|
82
|
+
}, message)));
|
|
83
|
+
return {
|
|
84
|
+
close
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _alert = _interopRequireDefault(require("./alert"));
|
|
9
|
+
var _modal = _interopRequireDefault(require("./modal"));
|
|
10
|
+
var _operation = _interopRequireDefault(require("./operation"));
|
|
11
|
+
var _prompt = _interopRequireDefault(require("./prompt"));
|
|
12
|
+
require("./style/index.css");
|
|
13
|
+
_modal.default.alert = _alert.default;
|
|
14
|
+
_modal.default.prompt = _prompt.default;
|
|
15
|
+
_modal.default.operation = _operation.default;
|
|
16
|
+
var _default = exports.default = _modal.default;
|