dtable-ui-component 6.0.29-beta9 → 6.0.30
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 +365 -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,196 @@
|
|
|
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 ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
12
|
+
var _client = require("react-dom/client");
|
|
13
|
+
var _rmcDialog = _interopRequireDefault(require("rmc-dialog"));
|
|
14
|
+
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
15
|
+
var _getDataAttr = _interopRequireDefault(require("../_util/getDataAttr"));
|
|
16
|
+
var _Badge = _interopRequireDefault(require("../Badge"));
|
|
17
|
+
require("./style/index.css");
|
|
18
|
+
/* tslint:disable:jsx-no-multiline-js */
|
|
19
|
+
|
|
20
|
+
const NORMAL = 'NORMAL';
|
|
21
|
+
const SHARE = 'SHARE';
|
|
22
|
+
// tslint:disable-next-line:no-empty
|
|
23
|
+
function noop() {}
|
|
24
|
+
const queue = [];
|
|
25
|
+
function createActionSheet(flag, config, callback) {
|
|
26
|
+
const props = {
|
|
27
|
+
prefixCls: 'am-action-sheet',
|
|
28
|
+
cancelButtonText: '取消',
|
|
29
|
+
...config
|
|
30
|
+
};
|
|
31
|
+
const {
|
|
32
|
+
prefixCls,
|
|
33
|
+
className,
|
|
34
|
+
transitionName,
|
|
35
|
+
maskTransitionName,
|
|
36
|
+
maskClosable = true
|
|
37
|
+
} = props;
|
|
38
|
+
const div = document.createElement('div');
|
|
39
|
+
document.body.appendChild(div);
|
|
40
|
+
const root = (0, _client.createRoot)(div);
|
|
41
|
+
queue.push(close);
|
|
42
|
+
function close() {
|
|
43
|
+
if (div) {
|
|
44
|
+
root.unmount();
|
|
45
|
+
if (div.parentNode) {
|
|
46
|
+
div.parentNode.removeChild(div);
|
|
47
|
+
}
|
|
48
|
+
const index = queue.indexOf(close);
|
|
49
|
+
if (index !== -1) {
|
|
50
|
+
queue.splice(index, 1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function cb(index) {
|
|
55
|
+
let rowIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
56
|
+
const res = callback(index, rowIndex);
|
|
57
|
+
if (res && res.then) {
|
|
58
|
+
res.then(() => {
|
|
59
|
+
close();
|
|
60
|
+
});
|
|
61
|
+
} else {
|
|
62
|
+
close();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const {
|
|
66
|
+
title,
|
|
67
|
+
message,
|
|
68
|
+
options,
|
|
69
|
+
destructiveButtonIndex,
|
|
70
|
+
cancelButtonIndex,
|
|
71
|
+
cancelButtonText,
|
|
72
|
+
badges = []
|
|
73
|
+
} = props;
|
|
74
|
+
const titleMsg = [title ? /*#__PURE__*/React.createElement("h3", {
|
|
75
|
+
key: "0",
|
|
76
|
+
className: "".concat(prefixCls, "-title")
|
|
77
|
+
}, title) : null, message ? /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
key: "1",
|
|
79
|
+
className: "".concat(prefixCls, "-message")
|
|
80
|
+
}, message) : null];
|
|
81
|
+
let children = null;
|
|
82
|
+
let mode = 'normal';
|
|
83
|
+
switch (flag) {
|
|
84
|
+
case NORMAL:
|
|
85
|
+
mode = 'normal';
|
|
86
|
+
const normalOptions = options;
|
|
87
|
+
const badgesMap = {};
|
|
88
|
+
if (badges && badges.length > 0) {
|
|
89
|
+
badges.forEach(element => {
|
|
90
|
+
if (element.index >= 0) {
|
|
91
|
+
badgesMap[element.index] = /*#__PURE__*/React.createElement(_Badge.default, element);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
children = /*#__PURE__*/React.createElement("div", (0, _getDataAttr.default)(props), titleMsg, /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "".concat(prefixCls, "-button-list"),
|
|
97
|
+
role: "group"
|
|
98
|
+
}, normalOptions.map((item, index) => {
|
|
99
|
+
const itemProps = {
|
|
100
|
+
className: (0, _classnames.default)("".concat(prefixCls, "-button-list-item"), {
|
|
101
|
+
["".concat(prefixCls, "-destructive-button")]: destructiveButtonIndex === index,
|
|
102
|
+
["".concat(prefixCls, "-cancel-button")]: cancelButtonIndex === index
|
|
103
|
+
}),
|
|
104
|
+
onClick: () => cb(index),
|
|
105
|
+
role: 'button'
|
|
106
|
+
};
|
|
107
|
+
let bContent = /*#__PURE__*/React.createElement("div", itemProps, item);
|
|
108
|
+
// 仅在设置徽标的情况下修改dom结构
|
|
109
|
+
if (badgesMap[index]) {
|
|
110
|
+
bContent = /*#__PURE__*/React.createElement("div", Object.assign({}, itemProps, {
|
|
111
|
+
className: "".concat(itemProps.className, " ").concat(prefixCls, "-button-list-badge")
|
|
112
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
113
|
+
className: "".concat(prefixCls, "-button-list-item-content")
|
|
114
|
+
}, item), badgesMap[index]);
|
|
115
|
+
}
|
|
116
|
+
let bItem = /*#__PURE__*/React.createElement(_rmcFeedback.default, {
|
|
117
|
+
key: index,
|
|
118
|
+
activeClassName: "".concat(prefixCls, "-button-list-item-active")
|
|
119
|
+
}, bContent);
|
|
120
|
+
if (cancelButtonIndex === index || destructiveButtonIndex === index) {
|
|
121
|
+
bItem = /*#__PURE__*/React.createElement(_rmcFeedback.default, {
|
|
122
|
+
key: index,
|
|
123
|
+
activeClassName: "".concat(prefixCls, "-button-list-item-active")
|
|
124
|
+
}, /*#__PURE__*/React.createElement("div", itemProps, item, cancelButtonIndex === index ? /*#__PURE__*/React.createElement("span", {
|
|
125
|
+
className: "".concat(prefixCls, "-cancel-button-mask")
|
|
126
|
+
}) : null));
|
|
127
|
+
}
|
|
128
|
+
return bItem;
|
|
129
|
+
})));
|
|
130
|
+
break;
|
|
131
|
+
case SHARE:
|
|
132
|
+
mode = 'share';
|
|
133
|
+
const multipleLine = options.length && Array.isArray(options[0]) || false;
|
|
134
|
+
const createList = function (item, index) {
|
|
135
|
+
let rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
136
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
137
|
+
className: "".concat(prefixCls, "-share-list-item"),
|
|
138
|
+
role: "button",
|
|
139
|
+
key: index,
|
|
140
|
+
onClick: () => cb(index, rowIndex)
|
|
141
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
142
|
+
className: "".concat(prefixCls, "-share-list-item-icon")
|
|
143
|
+
}, item.icon), /*#__PURE__*/React.createElement("div", {
|
|
144
|
+
className: "".concat(prefixCls, "-share-list-item-title")
|
|
145
|
+
}, item.title));
|
|
146
|
+
};
|
|
147
|
+
children = /*#__PURE__*/React.createElement("div", (0, _getDataAttr.default)(props), titleMsg, /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
className: "".concat(prefixCls, "-share")
|
|
149
|
+
}, multipleLine ? options.map((item, index) => /*#__PURE__*/React.createElement("div", {
|
|
150
|
+
key: index,
|
|
151
|
+
className: "".concat(prefixCls, "-share-list")
|
|
152
|
+
}, item.map((ii, ind) => createList(ii, ind, index)))) : /*#__PURE__*/React.createElement("div", {
|
|
153
|
+
className: "".concat(prefixCls, "-share-list")
|
|
154
|
+
}, options.map((item, index) => createList(item, index))), /*#__PURE__*/React.createElement(_rmcFeedback.default, {
|
|
155
|
+
activeClassName: "".concat(prefixCls, "-share-cancel-button-active")
|
|
156
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
157
|
+
className: "".concat(prefixCls, "-share-cancel-button"),
|
|
158
|
+
role: "button",
|
|
159
|
+
onClick: () => cb(-1)
|
|
160
|
+
}, cancelButtonText))));
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
const rootCls = (0, _classnames.default)("".concat(prefixCls, "-").concat(mode), className);
|
|
166
|
+
root.render( /*#__PURE__*/React.createElement(_rmcDialog.default, {
|
|
167
|
+
visible: true,
|
|
168
|
+
title: "",
|
|
169
|
+
footer: "",
|
|
170
|
+
prefixCls: prefixCls,
|
|
171
|
+
className: rootCls,
|
|
172
|
+
transitionName: transitionName || 'am-slide-up',
|
|
173
|
+
maskTransitionName: maskTransitionName || 'am-fade',
|
|
174
|
+
onClose: () => cb(cancelButtonIndex || -1),
|
|
175
|
+
maskClosable: maskClosable,
|
|
176
|
+
wrapProps: props.wrapProps || {}
|
|
177
|
+
}, children));
|
|
178
|
+
return {
|
|
179
|
+
close
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// eslint-disable-next-line import/no-anonymous-default-export
|
|
184
|
+
var _default = exports.default = {
|
|
185
|
+
showActionSheetWithOptions(config) {
|
|
186
|
+
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
187
|
+
createActionSheet(NORMAL, config, callback);
|
|
188
|
+
},
|
|
189
|
+
showShareActionSheetWithOptions(config) {
|
|
190
|
+
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
191
|
+
createActionSheet(SHARE, config, callback);
|
|
192
|
+
},
|
|
193
|
+
close() {
|
|
194
|
+
queue.forEach(q => q());
|
|
195
|
+
}
|
|
196
|
+
};
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
@import url('../../css/am.css');
|
|
2
|
+
|
|
3
|
+
.am-action-sheet-wrap {
|
|
4
|
+
position: fixed;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
z-index: 1000;
|
|
11
|
+
-webkit-overflow-scrolling: touch;
|
|
12
|
+
outline: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.am-action-sheet-mask {
|
|
16
|
+
position: fixed;
|
|
17
|
+
top: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
22
|
+
height: 100%;
|
|
23
|
+
z-index: 1000;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.am-action-sheet-mask-hidden {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.am-action-sheet-close {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.am-action-sheet {
|
|
35
|
+
position: fixed;
|
|
36
|
+
left: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
width: 100%;
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.am-action-sheet.am-action-sheet-share {
|
|
44
|
+
background-color: #f2f2f2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.am-action-sheet-title,
|
|
48
|
+
.am-action-sheet-message {
|
|
49
|
+
margin: 15px auto;
|
|
50
|
+
padding: 0 15px;
|
|
51
|
+
text-align: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.am-action-sheet-title {
|
|
55
|
+
font-size: 17px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.am-action-sheet-message {
|
|
59
|
+
color: #888;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.am-action-sheet-button-list {
|
|
64
|
+
text-align: center;
|
|
65
|
+
color: #000;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.am-action-sheet-button-list-item {
|
|
69
|
+
font-size: 18px;
|
|
70
|
+
padding: 0 8px;
|
|
71
|
+
margin: 0;
|
|
72
|
+
position: relative;
|
|
73
|
+
height: 50px;
|
|
74
|
+
line-height: 50px;
|
|
75
|
+
-webkit-box-sizing: border-box;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
overflow-x: hidden;
|
|
80
|
+
border-top: 1PX solid #ddd;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
84
|
+
(min-resolution: 2dppx) {
|
|
85
|
+
html:not([data-scale]) .am-action-sheet-button-list-item {
|
|
86
|
+
border-top: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
html:not([data-scale]) .am-action-sheet-button-list-item::before {
|
|
90
|
+
content: '';
|
|
91
|
+
position: absolute;
|
|
92
|
+
background-color: #ddd;
|
|
93
|
+
display: block;
|
|
94
|
+
z-index: 1;
|
|
95
|
+
top: 0;
|
|
96
|
+
right: auto;
|
|
97
|
+
bottom: auto;
|
|
98
|
+
left: 0;
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 1PX;
|
|
101
|
+
-webkit-transform-origin: 50% 50%;
|
|
102
|
+
-ms-transform-origin: 50% 50%;
|
|
103
|
+
transform-origin: 50% 50%;
|
|
104
|
+
-webkit-transform: scaleY(0.5);
|
|
105
|
+
-ms-transform: scaleY(0.5);
|
|
106
|
+
transform: scaleY(0.5);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
111
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
112
|
+
html:not([data-scale]) .am-action-sheet-button-list-item::before {
|
|
113
|
+
-webkit-transform: scaleY(0.33);
|
|
114
|
+
-ms-transform: scaleY(0.33);
|
|
115
|
+
transform: scaleY(0.33);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.am-action-sheet-button-list-item.am-action-sheet-button-list-item-active {
|
|
120
|
+
background-color: #ddd;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.am-action-sheet-button-list-badge {
|
|
124
|
+
display: -webkit-box;
|
|
125
|
+
display: -webkit-flex;
|
|
126
|
+
display: -ms-flexbox;
|
|
127
|
+
display: flex;
|
|
128
|
+
-webkit-box-align: center;
|
|
129
|
+
-webkit-align-items: center;
|
|
130
|
+
-ms-flex-align: center;
|
|
131
|
+
align-items: center;
|
|
132
|
+
-webkit-box-pack: center;
|
|
133
|
+
-webkit-justify-content: center;
|
|
134
|
+
-ms-flex-pack: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.am-action-sheet-button-list-badge .am-badge {
|
|
139
|
+
margin-left: 8px;
|
|
140
|
+
-webkit-flex-shrink: 0;
|
|
141
|
+
-ms-flex-negative: 0;
|
|
142
|
+
flex-shrink: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.am-action-sheet-button-list-item-content {
|
|
146
|
+
display: inline-block;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
text-overflow: ellipsis;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.am-action-sheet-button-list .am-action-sheet-cancel-button {
|
|
153
|
+
padding-top: 6px;
|
|
154
|
+
position: relative;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.am-action-sheet-button-list .am-action-sheet-cancel-button-mask {
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: 0;
|
|
160
|
+
left: 0;
|
|
161
|
+
width: 100%;
|
|
162
|
+
height: 6px;
|
|
163
|
+
background-color: #e7e7ed;
|
|
164
|
+
border-top: 1PX solid #ddd;
|
|
165
|
+
border-bottom: 1PX solid #ddd;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
169
|
+
(min-resolution: 2dppx) {
|
|
170
|
+
html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask {
|
|
171
|
+
border-top: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::before {
|
|
175
|
+
content: '';
|
|
176
|
+
position: absolute;
|
|
177
|
+
background-color: #ddd;
|
|
178
|
+
display: block;
|
|
179
|
+
z-index: 1;
|
|
180
|
+
top: 0;
|
|
181
|
+
right: auto;
|
|
182
|
+
bottom: auto;
|
|
183
|
+
left: 0;
|
|
184
|
+
width: 100%;
|
|
185
|
+
height: 1PX;
|
|
186
|
+
-webkit-transform-origin: 50% 50%;
|
|
187
|
+
-ms-transform-origin: 50% 50%;
|
|
188
|
+
transform-origin: 50% 50%;
|
|
189
|
+
-webkit-transform: scaleY(0.5);
|
|
190
|
+
-ms-transform: scaleY(0.5);
|
|
191
|
+
transform: scaleY(0.5);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
196
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
197
|
+
html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::before {
|
|
198
|
+
-webkit-transform: scaleY(0.33);
|
|
199
|
+
-ms-transform: scaleY(0.33);
|
|
200
|
+
transform: scaleY(0.33);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
205
|
+
(min-resolution: 2dppx) {
|
|
206
|
+
html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask {
|
|
207
|
+
border-bottom: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::after {
|
|
211
|
+
content: '';
|
|
212
|
+
position: absolute;
|
|
213
|
+
background-color: #ddd;
|
|
214
|
+
display: block;
|
|
215
|
+
z-index: 1;
|
|
216
|
+
top: auto;
|
|
217
|
+
right: auto;
|
|
218
|
+
bottom: 0;
|
|
219
|
+
left: 0;
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: 1PX;
|
|
222
|
+
-webkit-transform-origin: 50% 100%;
|
|
223
|
+
-ms-transform-origin: 50% 100%;
|
|
224
|
+
transform-origin: 50% 100%;
|
|
225
|
+
-webkit-transform: scaleY(0.5);
|
|
226
|
+
-ms-transform: scaleY(0.5);
|
|
227
|
+
transform: scaleY(0.5);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
232
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
233
|
+
html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::after {
|
|
234
|
+
-webkit-transform: scaleY(0.33);
|
|
235
|
+
-ms-transform: scaleY(0.33);
|
|
236
|
+
transform: scaleY(0.33);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.am-action-sheet-button-list .am-action-sheet-destructive-button {
|
|
241
|
+
color: #f4333c;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.am-action-sheet-share-list {
|
|
245
|
+
display: -webkit-box;
|
|
246
|
+
display: -webkit-flex;
|
|
247
|
+
display: -ms-flexbox;
|
|
248
|
+
display: flex;
|
|
249
|
+
position: relative;
|
|
250
|
+
border-top: 1PX solid #ddd;
|
|
251
|
+
padding: 21px 0 21px 15px;
|
|
252
|
+
overflow-y: scroll;
|
|
253
|
+
-webkit-overflow-scrolling: touch;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
257
|
+
(min-resolution: 2dppx) {
|
|
258
|
+
html:not([data-scale]) .am-action-sheet-share-list {
|
|
259
|
+
border-top: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
html:not([data-scale]) .am-action-sheet-share-list::before {
|
|
263
|
+
content: '';
|
|
264
|
+
position: absolute;
|
|
265
|
+
background-color: #ddd;
|
|
266
|
+
display: block;
|
|
267
|
+
z-index: 1;
|
|
268
|
+
top: 0;
|
|
269
|
+
right: auto;
|
|
270
|
+
bottom: auto;
|
|
271
|
+
left: 0;
|
|
272
|
+
width: 100%;
|
|
273
|
+
height: 1PX;
|
|
274
|
+
-webkit-transform-origin: 50% 50%;
|
|
275
|
+
-ms-transform-origin: 50% 50%;
|
|
276
|
+
transform-origin: 50% 50%;
|
|
277
|
+
-webkit-transform: scaleY(0.5);
|
|
278
|
+
-ms-transform: scaleY(0.5);
|
|
279
|
+
transform: scaleY(0.5);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
284
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
285
|
+
html:not([data-scale]) .am-action-sheet-share-list::before {
|
|
286
|
+
-webkit-transform: scaleY(0.33);
|
|
287
|
+
-ms-transform: scaleY(0.33);
|
|
288
|
+
transform: scaleY(0.33);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.am-action-sheet-share-list-item {
|
|
293
|
+
-webkit-box-flex: 0;
|
|
294
|
+
-webkit-flex: none;
|
|
295
|
+
-ms-flex: none;
|
|
296
|
+
flex: none;
|
|
297
|
+
margin: 0 12px 0 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.am-action-sheet-share-list-item-icon {
|
|
301
|
+
margin-bottom: 9px;
|
|
302
|
+
width: 60px;
|
|
303
|
+
height: 60px;
|
|
304
|
+
background-color: #fff;
|
|
305
|
+
border-radius: 3px;
|
|
306
|
+
display: -webkit-box;
|
|
307
|
+
display: -webkit-flex;
|
|
308
|
+
display: -ms-flexbox;
|
|
309
|
+
display: flex;
|
|
310
|
+
-webkit-box-pack: center;
|
|
311
|
+
-webkit-justify-content: center;
|
|
312
|
+
-ms-flex-pack: center;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
-webkit-box-align: center;
|
|
315
|
+
-webkit-align-items: center;
|
|
316
|
+
-ms-flex-align: center;
|
|
317
|
+
align-items: center;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.am-action-sheet-share-list-item-title {
|
|
321
|
+
color: #888;
|
|
322
|
+
font-size: 10px;
|
|
323
|
+
text-align: center;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.am-action-sheet-share-cancel-button {
|
|
327
|
+
height: 50px;
|
|
328
|
+
line-height: 50px;
|
|
329
|
+
text-align: center;
|
|
330
|
+
background-color: #fff;
|
|
331
|
+
color: #000;
|
|
332
|
+
font-size: 18px;
|
|
333
|
+
position: relative;
|
|
334
|
+
border-top: 1PX solid #ddd;
|
|
335
|
+
-webkit-box-sizing: border-box;
|
|
336
|
+
box-sizing: border-box;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
340
|
+
(min-resolution: 2dppx) {
|
|
341
|
+
html:not([data-scale]) .am-action-sheet-share-cancel-button {
|
|
342
|
+
border-top: none;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
html:not([data-scale]) .am-action-sheet-share-cancel-button::before {
|
|
346
|
+
content: '';
|
|
347
|
+
position: absolute;
|
|
348
|
+
background-color: #ddd;
|
|
349
|
+
display: block;
|
|
350
|
+
z-index: 1;
|
|
351
|
+
top: 0;
|
|
352
|
+
right: auto;
|
|
353
|
+
bottom: auto;
|
|
354
|
+
left: 0;
|
|
355
|
+
width: 100%;
|
|
356
|
+
height: 1PX;
|
|
357
|
+
-webkit-transform-origin: 50% 50%;
|
|
358
|
+
-ms-transform-origin: 50% 50%;
|
|
359
|
+
transform-origin: 50% 50%;
|
|
360
|
+
-webkit-transform: scaleY(0.5);
|
|
361
|
+
-ms-transform: scaleY(0.5);
|
|
362
|
+
transform: scaleY(0.5);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
367
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
368
|
+
html:not([data-scale]) .am-action-sheet-share-cancel-button::before {
|
|
369
|
+
-webkit-transform: scaleY(0.33);
|
|
370
|
+
-ms-transform: scaleY(0.33);
|
|
371
|
+
transform: scaleY(0.33);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.am-action-sheet-share-cancel-button.am-action-sheet-share-cancel-button-active {
|
|
376
|
+
background-color: #ddd;
|
|
377
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@import url('../css/am.css');
|
|
2
|
+
|
|
3
|
+
.am-activity-indicator {
|
|
4
|
+
display: -webkit-box;
|
|
5
|
+
display: -webkit-flex;
|
|
6
|
+
display: -ms-flexbox;
|
|
7
|
+
display: flex;
|
|
8
|
+
-webkit-box-align: center;
|
|
9
|
+
-webkit-align-items: center;
|
|
10
|
+
-ms-flex-align: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
z-index: 99;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.am-activity-indicator-spinner {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
width: 20px;
|
|
18
|
+
height: 20px;
|
|
19
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-2.125%20-1.875%2064%2064%22%3E%3Cpath%20fill%3D%22%23CCC%22%20d%3D%22M29.875-1.875c-17.673%200-32%2014.327-32%2032s14.327%2032%2032%2032%2032-14.327%2032-32-14.327-32-32-32zm0%2060.7c-15.85%200-28.7-12.85-28.7-28.7s12.85-28.7%2028.7-28.7%2028.7%2012.85%2028.7%2028.7-12.85%2028.7-28.7%2028.7z%22%2F%3E%3Cpath%20fill%3D%22%23108ee9%22%20d%3D%22M61.858%2030.34c.003-.102.008-.203.008-.305%200-11.43-5.996-21.452-15.01-27.113l-.013.026c-.24-.137-.515-.22-.81-.22-.912%200-1.65.738-1.65%201.65%200%20.654.384%201.215.937%201.482%207.963%205.1%2013.247%2014.017%2013.247%2024.176%200%20.147-.01.293-.01.44h.022c0%20.01-.004.02-.004.03%200%20.91.74%201.65%201.65%201.65s1.65-.74%201.65-1.65c0-.06-.012-.112-.018-.167z%22%2F%3E%3C%2Fsvg%3E");
|
|
20
|
+
background-position: 50%;
|
|
21
|
+
background-size: 100%;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
-webkit-animation: spinner-anime 1s linear infinite;
|
|
24
|
+
animation: spinner-anime 1s linear infinite;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.am-activity-indicator-tip {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
margin-left: 8px;
|
|
30
|
+
color: #000;
|
|
31
|
+
opacity: 0.4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.am-activity-indicator.am-activity-indicator-toast {
|
|
35
|
+
position: fixed;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
display: -webkit-box;
|
|
41
|
+
display: -webkit-flex;
|
|
42
|
+
display: -ms-flexbox;
|
|
43
|
+
display: flex;
|
|
44
|
+
-webkit-box-pack: center;
|
|
45
|
+
-webkit-justify-content: center;
|
|
46
|
+
-ms-flex-pack: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
-webkit-box-align: center;
|
|
49
|
+
-webkit-align-items: center;
|
|
50
|
+
-ms-flex-align: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
text-align: center;
|
|
53
|
+
z-index: 1999;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.am-activity-indicator.am-activity-indicator-toast .am-activity-indicator-spinner {
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.am-activity-indicator.am-activity-indicator-toast .am-activity-indicator-toast {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
position: relative;
|
|
63
|
+
top: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.am-activity-indicator-content {
|
|
67
|
+
display: -webkit-box;
|
|
68
|
+
display: -webkit-flex;
|
|
69
|
+
display: -ms-flexbox;
|
|
70
|
+
display: flex;
|
|
71
|
+
-webkit-box-orient: vertical;
|
|
72
|
+
-webkit-box-direction: normal;
|
|
73
|
+
-webkit-flex-direction: column;
|
|
74
|
+
-ms-flex-direction: column;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
-webkit-box-pack: center;
|
|
77
|
+
-webkit-justify-content: center;
|
|
78
|
+
-ms-flex-pack: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
-webkit-box-align: center;
|
|
81
|
+
-webkit-align-items: center;
|
|
82
|
+
-ms-flex-align: center;
|
|
83
|
+
align-items: center;
|
|
84
|
+
padding: 15px 15px;
|
|
85
|
+
border-radius: 7px;
|
|
86
|
+
background-clip: padding-box;
|
|
87
|
+
color: #fff;
|
|
88
|
+
background-color: rgba(58, 58, 58, 0.9);
|
|
89
|
+
font-size: 15px;
|
|
90
|
+
line-height: 20px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.am-activity-indicator-spinner-lg {
|
|
94
|
+
width: 32px;
|
|
95
|
+
height: 32px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@-webkit-keyframes spinner-anime {
|
|
99
|
+
100% {
|
|
100
|
+
-webkit-transform: rotate(360deg);
|
|
101
|
+
transform: rotate(360deg);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes spinner-anime {
|
|
106
|
+
100% {
|
|
107
|
+
-webkit-transform: rotate(360deg);
|
|
108
|
+
transform: rotate(360deg);
|
|
109
|
+
}
|
|
110
|
+
}
|