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,233 @@
|
|
|
1
|
+
@import url('../../css/am.css');
|
|
2
|
+
|
|
3
|
+
.am-popover {
|
|
4
|
+
position: absolute;
|
|
5
|
+
z-index: 1999;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.am-popover-hidden {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.am-popover-mask {
|
|
13
|
+
position: fixed;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
19
|
+
height: 100%;
|
|
20
|
+
z-index: 999;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.am-popover-mask-hidden {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.am-popover-arrow {
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 7px;
|
|
30
|
+
height: 7px;
|
|
31
|
+
border-radius: 1PX;
|
|
32
|
+
background-color: #fff;
|
|
33
|
+
-webkit-transform: rotate(45deg);
|
|
34
|
+
-ms-transform: rotate(45deg);
|
|
35
|
+
transform: rotate(45deg);
|
|
36
|
+
z-index: 0;
|
|
37
|
+
-webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.21);
|
|
38
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.21);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.am-popover-placement-top .am-popover-arrow,
|
|
42
|
+
.am-popover-placement-topLeft .am-popover-arrow,
|
|
43
|
+
.am-popover-placement-topRight .am-popover-arrow {
|
|
44
|
+
-webkit-transform: rotate(225deg);
|
|
45
|
+
-ms-transform: rotate(225deg);
|
|
46
|
+
transform: rotate(225deg);
|
|
47
|
+
bottom: -3.5px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.am-popover-placement-top .am-popover-arrow {
|
|
51
|
+
left: 50%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.am-popover-placement-topLeft .am-popover-arrow {
|
|
55
|
+
left: 8px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.am-popover-placement-topRight .am-popover-arrow {
|
|
59
|
+
right: 8px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.am-popover-placement-right .am-popover-arrow,
|
|
63
|
+
.am-popover-placement-rightTop .am-popover-arrow,
|
|
64
|
+
.am-popover-placement-rightBottom .am-popover-arrow {
|
|
65
|
+
-webkit-transform: rotate(-45deg);
|
|
66
|
+
-ms-transform: rotate(-45deg);
|
|
67
|
+
transform: rotate(-45deg);
|
|
68
|
+
left: -3.5px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.am-popover-placement-right .am-popover-arrow {
|
|
72
|
+
top: 50%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.am-popover-placement-rightTop .am-popover-arrow {
|
|
76
|
+
top: 8px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.am-popover-placement-rightBottom .am-popover-arrow {
|
|
80
|
+
bottom: 8px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.am-popover-placement-left .am-popover-arrow,
|
|
84
|
+
.am-popover-placement-leftTop .am-popover-arrow,
|
|
85
|
+
.am-popover-placement-leftBottom .am-popover-arrow {
|
|
86
|
+
-webkit-transform: rotate(135deg);
|
|
87
|
+
-ms-transform: rotate(135deg);
|
|
88
|
+
transform: rotate(135deg);
|
|
89
|
+
right: -3.5px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.am-popover-placement-left .am-popover-arrow {
|
|
93
|
+
top: 50%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.am-popover-placement-leftTop .am-popover-arrow {
|
|
97
|
+
top: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.am-popover-placement-leftBottom .am-popover-arrow {
|
|
101
|
+
bottom: 8px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.am-popover-placement-bottom .am-popover-arrow,
|
|
105
|
+
.am-popover-placement-bottomLeft .am-popover-arrow,
|
|
106
|
+
.am-popover-placement-bottomRight .am-popover-arrow {
|
|
107
|
+
top: -3.5px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.am-popover-placement-bottom .am-popover-arrow {
|
|
111
|
+
left: 50%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.am-popover-placement-bottomLeft .am-popover-arrow {
|
|
115
|
+
left: 8px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.am-popover-placement-bottomRight .am-popover-arrow {
|
|
119
|
+
right: 8px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.am-popover-inner {
|
|
123
|
+
font-size: 15px;
|
|
124
|
+
color: #000;
|
|
125
|
+
background-color: #fff;
|
|
126
|
+
border-radius: 3px;
|
|
127
|
+
-webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.21);
|
|
128
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.21);
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.am-popover-inner-wrapper {
|
|
133
|
+
position: relative;
|
|
134
|
+
background-color: #fff;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.am-popover .am-popover-item {
|
|
138
|
+
padding: 0 8px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.am-popover .am-popover-item-container {
|
|
142
|
+
position: relative;
|
|
143
|
+
display: -webkit-box;
|
|
144
|
+
display: -webkit-flex;
|
|
145
|
+
display: -ms-flexbox;
|
|
146
|
+
display: flex;
|
|
147
|
+
-webkit-box-align: center;
|
|
148
|
+
-webkit-align-items: center;
|
|
149
|
+
-ms-flex-align: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
height: 39px;
|
|
152
|
+
-webkit-box-sizing: border-box;
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
padding: 0 8px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.am-popover .am-popover-item:not(:first-child) .am-popover-item-container {
|
|
158
|
+
border-top: 1PX solid #ddd;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
|
162
|
+
(min-resolution: 2dppx) {
|
|
163
|
+
html:not([data-scale]) .am-popover .am-popover-item:not(:first-child) .am-popover-item-container {
|
|
164
|
+
border-top: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
html:not([data-scale]) .am-popover .am-popover-item:not(:first-child) .am-popover-item-container::before {
|
|
168
|
+
content: '';
|
|
169
|
+
position: absolute;
|
|
170
|
+
background-color: #ddd;
|
|
171
|
+
display: block;
|
|
172
|
+
z-index: 1;
|
|
173
|
+
top: 0;
|
|
174
|
+
right: auto;
|
|
175
|
+
bottom: auto;
|
|
176
|
+
left: 0;
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 1PX;
|
|
179
|
+
-webkit-transform-origin: 50% 50%;
|
|
180
|
+
-ms-transform-origin: 50% 50%;
|
|
181
|
+
transform-origin: 50% 50%;
|
|
182
|
+
-webkit-transform: scaleY(0.5);
|
|
183
|
+
-ms-transform: scaleY(0.5);
|
|
184
|
+
transform: scaleY(0.5);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
|
|
189
|
+
(min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
190
|
+
html:not([data-scale]) .am-popover .am-popover-item:not(:first-child) .am-popover-item-container::before {
|
|
191
|
+
-webkit-transform: scaleY(0.33);
|
|
192
|
+
-ms-transform: scaleY(0.33);
|
|
193
|
+
transform: scaleY(0.33);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.am-popover .am-popover-item.am-popover-item-active .am-popover-item-container {
|
|
198
|
+
border-top: 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.am-popover .am-popover-item.am-popover-item-active .am-popover-item-container:before {
|
|
202
|
+
display: none !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.am-popover .am-popover-item.am-popover-item-active+.am-popover-item .am-popover-item-container {
|
|
206
|
+
border-top: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.am-popover .am-popover-item.am-popover-item-active+.am-popover-item .am-popover-item-container:before {
|
|
210
|
+
display: none !important;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.am-popover .am-popover-item.am-popover-item-active {
|
|
214
|
+
background-color: #ddd;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.am-popover .am-popover-item.am-popover-item-active.am-popover-item-fix-active-arrow {
|
|
218
|
+
position: relative;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.am-popover .am-popover-item.am-popover-item-disabled {
|
|
222
|
+
color: #bbb;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.am-popover .am-popover-item.am-popover-item-disabled.am-popover-item-active {
|
|
226
|
+
background-color: transparent;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.am-popover .am-popover-item-icon {
|
|
230
|
+
margin-right: 8px;
|
|
231
|
+
width: 18px;
|
|
232
|
+
height: 18px;
|
|
233
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import url('../css/am.css');
|
|
2
|
+
|
|
3
|
+
.am-progress-outer {
|
|
4
|
+
background-color: #ddd;
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.am-progress-fixed-outer {
|
|
9
|
+
position: fixed;
|
|
10
|
+
width: 100%;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
z-index: 2000;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.am-progress-hide-outer {
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.am-progress-bar {
|
|
21
|
+
border: 2px solid #108ee9;
|
|
22
|
+
-webkit-transition: all .3s linear 0s;
|
|
23
|
+
transition: all .3s linear 0s;
|
|
24
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
require("./index.css");
|
|
12
|
+
class Progress extends React.Component {
|
|
13
|
+
componentWillReceiveProps() {
|
|
14
|
+
this.noAppearTransition = true;
|
|
15
|
+
}
|
|
16
|
+
componentDidMount() {
|
|
17
|
+
if (this.props.appearTransition) {
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
if (this.barRef) {
|
|
20
|
+
this.barRef.style.width = "".concat(this.props.percent, "%");
|
|
21
|
+
}
|
|
22
|
+
}, 10);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const {
|
|
27
|
+
className,
|
|
28
|
+
prefixCls,
|
|
29
|
+
position,
|
|
30
|
+
unfilled,
|
|
31
|
+
style = {},
|
|
32
|
+
barStyle = {}
|
|
33
|
+
} = this.props;
|
|
34
|
+
const percentStyle = {
|
|
35
|
+
width: this.noAppearTransition || !this.props.appearTransition ? "".concat(this.props.percent, "%") : 0,
|
|
36
|
+
height: 0
|
|
37
|
+
};
|
|
38
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-outer"), className, {
|
|
39
|
+
["".concat(prefixCls, "-fixed-outer")]: position === 'fixed',
|
|
40
|
+
["".concat(prefixCls, "-hide-outer")]: !unfilled
|
|
41
|
+
});
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
style: style,
|
|
44
|
+
className: wrapCls,
|
|
45
|
+
role: "progressbar",
|
|
46
|
+
"aria-valuenow": this.props.percent,
|
|
47
|
+
"aria-valuemin": 0,
|
|
48
|
+
"aria-valuemax": 100
|
|
49
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
ref: el => this.barRef = el,
|
|
51
|
+
className: "".concat(prefixCls, "-bar"),
|
|
52
|
+
style: {
|
|
53
|
+
...barStyle,
|
|
54
|
+
...percentStyle
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.default = Progress;
|
|
60
|
+
Progress.defaultProps = {
|
|
61
|
+
prefixCls: 'am-progress',
|
|
62
|
+
percent: 0,
|
|
63
|
+
position: 'fixed',
|
|
64
|
+
unfilled: true,
|
|
65
|
+
appearTransition: false
|
|
66
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _rcCheckbox = _interopRequireDefault(require("rc-checkbox"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
class Radio extends React.Component {
|
|
13
|
+
render() {
|
|
14
|
+
const {
|
|
15
|
+
className,
|
|
16
|
+
style,
|
|
17
|
+
...restProps
|
|
18
|
+
} = this.props;
|
|
19
|
+
const {
|
|
20
|
+
prefixCls,
|
|
21
|
+
children
|
|
22
|
+
} = restProps;
|
|
23
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), className);
|
|
24
|
+
if ('class' in restProps) {
|
|
25
|
+
// Todo https://github.com/developit/preact-compat/issues/422
|
|
26
|
+
/* tslint:disable:no-string-literal */
|
|
27
|
+
delete restProps['class'];
|
|
28
|
+
}
|
|
29
|
+
const mark = /*#__PURE__*/React.createElement("label", {
|
|
30
|
+
className: wrapCls,
|
|
31
|
+
style: style
|
|
32
|
+
}, /*#__PURE__*/React.createElement(_rcCheckbox.default, Object.assign({}, restProps, {
|
|
33
|
+
type: "radio"
|
|
34
|
+
})), children);
|
|
35
|
+
if (this.props.wrapLabel) {
|
|
36
|
+
return mark;
|
|
37
|
+
}
|
|
38
|
+
return /*#__PURE__*/React.createElement(_rcCheckbox.default, Object.assign({}, this.props, {
|
|
39
|
+
type: "radio"
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.default = Radio;
|
|
44
|
+
Radio.defaultProps = {
|
|
45
|
+
prefixCls: 'am-radio',
|
|
46
|
+
wrapLabel: true
|
|
47
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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 _List = _interopRequireDefault(require("../List"));
|
|
12
|
+
var _Radio = _interopRequireDefault(require("./Radio"));
|
|
13
|
+
const ListItem = _List.default.Item;
|
|
14
|
+
function noop() {}
|
|
15
|
+
class RadioItem extends React.Component {
|
|
16
|
+
render() {
|
|
17
|
+
const {
|
|
18
|
+
listPrefixCls,
|
|
19
|
+
onChange,
|
|
20
|
+
disabled,
|
|
21
|
+
radioProps,
|
|
22
|
+
onClick,
|
|
23
|
+
...otherProps
|
|
24
|
+
} = this.props;
|
|
25
|
+
const {
|
|
26
|
+
prefixCls,
|
|
27
|
+
className,
|
|
28
|
+
children
|
|
29
|
+
} = otherProps;
|
|
30
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, {
|
|
31
|
+
["".concat(prefixCls, "-item-disabled")]: disabled === true
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// Note: if not omit `onChange`, it will trigger twice on check listitem
|
|
35
|
+
|
|
36
|
+
if (!disabled) {
|
|
37
|
+
otherProps.onClick = onClick || noop;
|
|
38
|
+
}
|
|
39
|
+
const extraProps = {};
|
|
40
|
+
['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(i => {
|
|
41
|
+
if (i in this.props) {
|
|
42
|
+
extraProps[i] = this.props[i];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return /*#__PURE__*/React.createElement(ListItem, Object.assign({}, otherProps, {
|
|
46
|
+
prefixCls: listPrefixCls,
|
|
47
|
+
className: wrapCls,
|
|
48
|
+
extra: /*#__PURE__*/React.createElement(_Radio.default, Object.assign({}, radioProps, extraProps))
|
|
49
|
+
}), children);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = RadioItem;
|
|
53
|
+
RadioItem.defaultProps = {
|
|
54
|
+
prefixCls: 'am-radio',
|
|
55
|
+
listPrefixCls: 'am-list',
|
|
56
|
+
radioProps: {}
|
|
57
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@import url('../css/am.css');
|
|
2
|
+
|
|
3
|
+
.am-radio {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
width: 15px;
|
|
8
|
+
height: 15px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.am-radio-inner {
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: 0;
|
|
14
|
+
width: 15px;
|
|
15
|
+
height: 15px;
|
|
16
|
+
-webkit-box-sizing: border-box;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
-webkit-transform: rotate(0deg);
|
|
19
|
+
-ms-transform: rotate(0deg);
|
|
20
|
+
transform: rotate(0deg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.am-radio-inner:after {
|
|
24
|
+
position: absolute;
|
|
25
|
+
display: none;
|
|
26
|
+
top: -2.5px;
|
|
27
|
+
right: 5px;
|
|
28
|
+
z-index: 999;
|
|
29
|
+
width: 7px;
|
|
30
|
+
height: 14px;
|
|
31
|
+
border-style: solid;
|
|
32
|
+
border-width: 0 1.5px 1.5px 0;
|
|
33
|
+
content: '\0020';
|
|
34
|
+
-webkit-transform: rotate(45deg);
|
|
35
|
+
-ms-transform: rotate(45deg);
|
|
36
|
+
transform: rotate(45deg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.am-radio-input {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
opacity: 0;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
z-index: 2;
|
|
47
|
+
border: 0 none;
|
|
48
|
+
-webkit-appearance: none;
|
|
49
|
+
-moz-appearance: none;
|
|
50
|
+
appearance: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.am-radio.am-radio-checked .am-radio-inner {
|
|
54
|
+
border-width: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.am-radio.am-radio-checked .am-radio-inner:after {
|
|
58
|
+
display: block;
|
|
59
|
+
border-color: #108ee9;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.am-radio.am-radio-disabled.am-radio-checked .am-radio-inner:after {
|
|
63
|
+
display: block;
|
|
64
|
+
border-color: #bbb;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra {
|
|
68
|
+
-webkit-box-flex: 0;
|
|
69
|
+
-webkit-flex: 0;
|
|
70
|
+
-ms-flex: 0;
|
|
71
|
+
flex: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 44px;
|
|
82
|
+
overflow: visible;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio-inner {
|
|
86
|
+
right: 15px;
|
|
87
|
+
top: 15px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.am-list .am-list-item.am-radio-item.am-radio-item-disabled .am-list-content {
|
|
91
|
+
color: #bbb;
|
|
92
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 _Radio = _interopRequireDefault(require("./Radio"));
|
|
9
|
+
var _RadioItem = _interopRequireDefault(require("./RadioItem"));
|
|
10
|
+
require("./index.css");
|
|
11
|
+
_Radio.default.RadioItem = _RadioItem.default;
|
|
12
|
+
var _default = exports.default = _Radio.default;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactstrap = require("reactstrap");
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
require("./index.css");
|
|
12
|
-
const
|
|
12
|
+
const RowContent = _ref => {
|
|
13
13
|
let {
|
|
14
14
|
column,
|
|
15
15
|
children
|
|
@@ -47,4 +47,4 @@ const ColumnContent = _ref => {
|
|
|
47
47
|
className: "d-flex align-items-center dtable-ui-row-expand-column-content-value"
|
|
48
48
|
}, children));
|
|
49
49
|
};
|
|
50
|
-
var _default = exports.default =
|
|
50
|
+
var _default = exports.default = RowContent;
|
|
@@ -235,6 +235,4 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
235
235
|
color: "primary"
|
|
236
236
|
}, (0, _lang.getLocale)('Submit'))))));
|
|
237
237
|
});
|
|
238
|
-
RowExpandDialog.Header = _header.default;
|
|
239
|
-
RowExpandDialog.Body = _body.default;
|
|
240
238
|
var _default = exports.default = RowExpandDialog;
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
11
|
-
var _constants = require("../../../constants");
|
|
9
|
+
var _constants = require("../../constants");
|
|
12
10
|
require("./index.css");
|
|
13
|
-
const
|
|
11
|
+
const RowExpandAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
12
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
15
13
|
ref: ref,
|
|
16
14
|
tabIndex: 0,
|
|
17
15
|
onClick: props.onClick,
|
|
18
16
|
onFocus: props.onFocus,
|
|
19
17
|
role: "button",
|
|
20
|
-
className:
|
|
18
|
+
className: "dtable-ui-row-expand-add-btn d-print-none",
|
|
21
19
|
style: props.isFocus ? _constants.ROW_EXPAND_BTN_FOCUS_STYLE : {}
|
|
22
20
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
23
21
|
className: "d-print-none"
|
|
24
22
|
}, props.text));
|
|
25
23
|
});
|
|
26
|
-
var _default = exports.default =
|
|
24
|
+
var _default = exports.default = RowExpandAddBtn;
|
package/lib/RowExpandEditor/{checkbox-editor/pc-editor.js → RowExpandCheckboxEditor/index.js}
RENAMED
|
@@ -8,17 +8,20 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _CheckboxEditor = _interopRequireDefault(require("../../CheckboxEditor"));
|
|
10
10
|
var _constants = require("../../constants");
|
|
11
|
-
|
|
11
|
+
require("./index.css");
|
|
12
|
+
class RowExpandCheckboxEditor extends _react.default.Component {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
14
|
-
this.
|
|
15
|
+
this.onChangeCheckboxValue = () => {
|
|
15
16
|
const {
|
|
16
|
-
columnIndex
|
|
17
|
-
updateTabIndex,
|
|
18
|
-
onCommit
|
|
17
|
+
columnIndex
|
|
19
18
|
} = this.props;
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
if (!this.editor) return;
|
|
20
|
+
if (this.props.updateTabIndex) {
|
|
21
|
+
this.props.updateTabIndex(columnIndex);
|
|
22
|
+
}
|
|
23
|
+
const newValue = this.editor.getValue();
|
|
24
|
+
this.props.onCommit(newValue);
|
|
22
25
|
};
|
|
23
26
|
}
|
|
24
27
|
render() {
|
|
@@ -28,12 +31,13 @@ class RowExpandPCCheckboxEditor extends _react.default.Component {
|
|
|
28
31
|
value
|
|
29
32
|
} = this.props;
|
|
30
33
|
return /*#__PURE__*/_react.default.createElement(_CheckboxEditor.default, {
|
|
34
|
+
ref: ref => this.editor = ref,
|
|
31
35
|
className: "dtable-ui-row-expand-checkbox-editor mt-2",
|
|
32
36
|
column: column,
|
|
33
37
|
value: value,
|
|
34
38
|
style: isEditorFocus ? _constants.ROW_EXPAND_FOCUS_STYLE : {},
|
|
35
|
-
onCommit: this.
|
|
39
|
+
onCommit: this.onChangeCheckboxValue
|
|
36
40
|
});
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
|
-
var _default = exports.default =
|
|
43
|
+
var _default = exports.default = RowExpandCheckboxEditor;
|
package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.js
RENAMED
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _constants = require("../../constants");
|
|
9
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var _CollaboratorItem = _interopRequireDefault(require("../../../CollaboratorItem"));
|
|
11
|
+
var _CollaboratorEditor = _interopRequireDefault(require("../../CollaboratorEditor"));
|
|
12
|
+
var _lang = require("../../lang");
|
|
13
|
+
var _CollaboratorItem = _interopRequireDefault(require("../../CollaboratorItem"));
|
|
14
14
|
require("./index.css");
|
|
15
|
-
class
|
|
15
|
+
class RowExpandCollaboratorEditor extends _react.default.Component {
|
|
16
16
|
constructor(_props) {
|
|
17
17
|
super(_props);
|
|
18
18
|
this.initCollaborators = props => {
|
|
@@ -158,6 +158,7 @@ class RowExpandPCCollaboratorEditor extends _react.default.Component {
|
|
|
158
158
|
menuPosition: null,
|
|
159
159
|
value: _row[_column[_valueKey]] || [],
|
|
160
160
|
showCollaboratorSelect: false,
|
|
161
|
+
isDataLoaded: false,
|
|
161
162
|
emailCollaboratorMap: {}
|
|
162
163
|
};
|
|
163
164
|
}
|
|
@@ -228,4 +229,4 @@ class RowExpandPCCollaboratorEditor extends _react.default.Component {
|
|
|
228
229
|
}));
|
|
229
230
|
}
|
|
230
231
|
}
|
|
231
|
-
var _default = exports.default =
|
|
232
|
+
var _default = exports.default = RowExpandCollaboratorEditor;
|
|
@@ -11,7 +11,7 @@ var _DateEditor = _interopRequireDefault(require("../../DateEditor"));
|
|
|
11
11
|
var _utils = require("../../utils/utils");
|
|
12
12
|
var _columnUtils = require("../../utils/column-utils");
|
|
13
13
|
var _constants = require("../../constants");
|
|
14
|
-
class
|
|
14
|
+
class RowExpandDateEditor extends _react.default.Component {
|
|
15
15
|
constructor(props) {
|
|
16
16
|
super(props);
|
|
17
17
|
this.onKeyDown = e => {
|
|
@@ -127,4 +127,4 @@ class RowExpandPCDateEditor extends _react.default.Component {
|
|
|
127
127
|
}, value ? (0, _dtableUtils.getDateDisplayString)(value, format) : ''));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
var _default = exports.default =
|
|
130
|
+
var _default = exports.default = RowExpandDateEditor;
|