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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.dtable-ui-mobile-selector .dtable-ui-mobile-selector-option {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 36px;
|
|
7
|
-
border-radius: 2px;
|
|
8
|
-
font-size: 13px;
|
|
9
|
-
color: #212529;
|
|
10
|
-
padding: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.dtable-ui-mobile-selector .dtable-ui-mobile-selector-option .dtable-ui-mobile-selector-option-name {
|
|
14
|
-
height: 30px;
|
|
15
|
-
flex: 1;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
text-overflow: ellipsis;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
margin-right: 10px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dtable-ui-mobile-selector .dtable-ui-mobile-selector-option .dtable-ui-mobile-selector-option-check-btn {
|
|
24
|
-
width: 20px;
|
|
25
|
-
text-align: center;
|
|
26
|
-
font-size: 12px;
|
|
27
|
-
color: #798d99;
|
|
28
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 _list = _interopRequireDefault(require("antd-mobile/lib/list"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
require("./index.css");
|
|
12
|
-
const Option = _ref => {
|
|
13
|
-
let {
|
|
14
|
-
isSelected,
|
|
15
|
-
children,
|
|
16
|
-
onChange
|
|
17
|
-
} = _ref;
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(_list.default.Item, {
|
|
19
|
-
onClick: onChange
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
-
className: "dtable-ui-mobile-selector-option"
|
|
22
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
23
|
-
className: "dtable-ui-mobile-selector-option-name"
|
|
24
|
-
}, children), /*#__PURE__*/_react.default.createElement("span", {
|
|
25
|
-
className: "dtable-ui-mobile-selector-option-check-btn"
|
|
26
|
-
}, isSelected && /*#__PURE__*/_react.default.createElement("i", {
|
|
27
|
-
"aria-hidden": "true",
|
|
28
|
-
className: "dtable-font dtable-icon-check-mark"
|
|
29
|
-
}))));
|
|
30
|
-
};
|
|
31
|
-
Option.propType = {
|
|
32
|
-
isSelected: _propTypes.default.bool,
|
|
33
|
-
children: _propTypes.default.any,
|
|
34
|
-
onChange: _propTypes.default.func
|
|
35
|
-
};
|
|
36
|
-
var _default = exports.default = Option;
|
|
@@ -1,18 +0,0 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
-
require("./index.css");
|
|
10
|
-
const Options = _ref => {
|
|
11
|
-
let {
|
|
12
|
-
children
|
|
13
|
-
} = _ref;
|
|
14
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
15
|
-
className: "dtable-ui-mobile-selector-options"
|
|
16
|
-
}, children);
|
|
17
|
-
};
|
|
18
|
-
var _default = exports.default = Options;
|
|
@@ -1,26 +0,0 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
|
|
10
|
-
require("./index.css");
|
|
11
|
-
const Search = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
value,
|
|
14
|
-
placeholder,
|
|
15
|
-
onChange
|
|
16
|
-
} = _ref;
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
18
|
-
className: "dtable-ui-mobile-selector-search"
|
|
19
|
-
}, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
|
|
20
|
-
autoFocus: true,
|
|
21
|
-
value: value,
|
|
22
|
-
placeholder: placeholder,
|
|
23
|
-
onChange: onChange
|
|
24
|
-
}));
|
|
25
|
-
};
|
|
26
|
-
var _default = exports.default = Search;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import url('../MobileOperationSheet/index.css');
|
|
@@ -1,160 +0,0 @@
|
|
|
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 _actionSheet = _interopRequireDefault(require("antd-mobile/lib/action-sheet"));
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _lang = require("../lang");
|
|
12
|
-
require("./index.css");
|
|
13
|
-
const MobileUpload = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
type = 'file',
|
|
16
|
-
onChange,
|
|
17
|
-
onClose
|
|
18
|
-
} = _ref;
|
|
19
|
-
const actionSheet = (0, _react.useRef)(_actionSheet.default);
|
|
20
|
-
const imageRef = (0, _react.useRef)(null);
|
|
21
|
-
const fileRef = (0, _react.useRef)(null);
|
|
22
|
-
const cameraRef = (0, _react.useRef)(null);
|
|
23
|
-
const camcorderRef = (0, _react.useRef)(null);
|
|
24
|
-
const btns = (0, _react.useMemo)(() => {
|
|
25
|
-
const iconStyle = {
|
|
26
|
-
lineHeight: '56px'
|
|
27
|
-
};
|
|
28
|
-
if (type === 'image') return [/*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
-
className: "my-am-action d-flex justify-content-between"
|
|
30
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_photo')), /*#__PURE__*/_react.default.createElement("i", {
|
|
31
|
-
"aria-hidden": "true",
|
|
32
|
-
className: "dtable-font dtable-icon-camera",
|
|
33
|
-
style: iconStyle
|
|
34
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
-
className: "my-am-action d-flex justify-content-between"
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Browse_documents')), /*#__PURE__*/_react.default.createElement("i", {
|
|
37
|
-
"aria-hidden": "true",
|
|
38
|
-
className: "dtable-font dtable-icon-more-level",
|
|
39
|
-
style: iconStyle
|
|
40
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
-
className: "my-am-action d-flex justify-content-center"
|
|
42
|
-
}, (0, _lang.getLocale)('Cancel'))];
|
|
43
|
-
return [/*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
-
className: "my-am-action d-flex justify-content-between"
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_photo')), /*#__PURE__*/_react.default.createElement("i", {
|
|
46
|
-
"aria-hidden": "true",
|
|
47
|
-
className: "dtable-font dtable-icon-camera",
|
|
48
|
-
style: iconStyle
|
|
49
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
-
className: "my-am-action d-flex justify-content-between"
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_video')), /*#__PURE__*/_react.default.createElement("i", {
|
|
52
|
-
"aria-hidden": "true",
|
|
53
|
-
className: "dtable-font dtable-icon-camera",
|
|
54
|
-
style: iconStyle
|
|
55
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: "my-am-action d-flex justify-content-between"
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Browse_documents')), /*#__PURE__*/_react.default.createElement("i", {
|
|
58
|
-
"aria-hidden": "true",
|
|
59
|
-
className: "dtable-font dtable-icon-more-level",
|
|
60
|
-
style: iconStyle
|
|
61
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
-
className: "my-am-action d-flex justify-content-center"
|
|
63
|
-
}, (0, _lang.getLocale)('Cancel'))];
|
|
64
|
-
}, [type]);
|
|
65
|
-
const showActionSheet = (0, _react.useCallback)(() => {
|
|
66
|
-
if (type === 'image') {
|
|
67
|
-
actionSheet.current.showActionSheetWithOptions({
|
|
68
|
-
options: btns,
|
|
69
|
-
cancelButtonIndex: 3,
|
|
70
|
-
maskClosable: true,
|
|
71
|
-
className: 'dtable-ui-mobile-action-sheet'
|
|
72
|
-
}, index => {
|
|
73
|
-
if (index === 0) {
|
|
74
|
-
imageRef.current.click();
|
|
75
|
-
} else if (index === 1) {
|
|
76
|
-
cameraRef.current.click();
|
|
77
|
-
} else {
|
|
78
|
-
onClose && onClose();
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
actionSheet.current.showActionSheetWithOptions({
|
|
84
|
-
options: btns,
|
|
85
|
-
cancelButtonIndex: 4,
|
|
86
|
-
maskClosable: true,
|
|
87
|
-
className: 'dtable-ui-mobile-action-sheet'
|
|
88
|
-
}, index => {
|
|
89
|
-
if (index === 0) {
|
|
90
|
-
fileRef.current.click();
|
|
91
|
-
} else if (index === 1) {
|
|
92
|
-
cameraRef.current.click();
|
|
93
|
-
} else if (index === 2) {
|
|
94
|
-
camcorderRef.current.click();
|
|
95
|
-
} else {
|
|
96
|
-
onClose && onClose();
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}, [type, btns, onClose]);
|
|
100
|
-
const onInputClick = (0, _react.useCallback)(event => {
|
|
101
|
-
event.stopPropagation();
|
|
102
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
103
|
-
}, []);
|
|
104
|
-
const handleChange = (0, _react.useCallback)(event => {
|
|
105
|
-
event.persist();
|
|
106
|
-
onChange && onChange(event.target.files);
|
|
107
|
-
}, [onChange]);
|
|
108
|
-
(0, _react.useEffect)(() => {
|
|
109
|
-
showActionSheet();
|
|
110
|
-
return () => {
|
|
111
|
-
actionSheet.current.close();
|
|
112
|
-
actionSheet.current = null;
|
|
113
|
-
onClose && onClose();
|
|
114
|
-
};
|
|
115
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
116
|
-
}, []);
|
|
117
|
-
if (type === 'image') {
|
|
118
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
-
className: "h-0 o-hidden"
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
121
|
-
type: "file",
|
|
122
|
-
accept: "image/*",
|
|
123
|
-
ref: imageRef,
|
|
124
|
-
multiple: true,
|
|
125
|
-
onClick: onInputClick,
|
|
126
|
-
onChange: handleChange
|
|
127
|
-
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
128
|
-
type: "file",
|
|
129
|
-
capture: "camera",
|
|
130
|
-
accept: "image/*",
|
|
131
|
-
ref: cameraRef,
|
|
132
|
-
onClick: onInputClick,
|
|
133
|
-
onChange: handleChange
|
|
134
|
-
}));
|
|
135
|
-
}
|
|
136
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
137
|
-
className: "h-0 o-hidden"
|
|
138
|
-
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
139
|
-
type: "file",
|
|
140
|
-
ref: fileRef,
|
|
141
|
-
multiple: true,
|
|
142
|
-
onClick: onInputClick,
|
|
143
|
-
onChange: handleChange
|
|
144
|
-
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
145
|
-
type: "file",
|
|
146
|
-
capture: "camera",
|
|
147
|
-
accept: "image/*",
|
|
148
|
-
ref: cameraRef,
|
|
149
|
-
onClick: onInputClick,
|
|
150
|
-
onChange: handleChange
|
|
151
|
-
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
152
|
-
type: "file",
|
|
153
|
-
capture: "camcorder",
|
|
154
|
-
accept: "video/*",
|
|
155
|
-
ref: camcorderRef,
|
|
156
|
-
onClick: onInputClick,
|
|
157
|
-
onChange: handleChange
|
|
158
|
-
}));
|
|
159
|
-
};
|
|
160
|
-
var _default = exports.default = MobileUpload;
|
package/lib/RowExpand/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
-
var _RowExpandDialog = _interopRequireDefault(require("../RowExpandDialog"));
|
|
12
|
-
var _RowExpandView = _interopRequireDefault(require("../RowExpandView"));
|
|
13
|
-
const RowExpand = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
-
query: '(min-width: 768px)'
|
|
16
|
-
}, /*#__PURE__*/_react.default.createElement(_RowExpandDialog.default, Object.assign({}, props, {
|
|
17
|
-
ref: ref
|
|
18
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
-
query: '(max-width: 768px)'
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement(_RowExpandView.default, Object.assign({}, props, {
|
|
21
|
-
ref: ref
|
|
22
|
-
}))));
|
|
23
|
-
});
|
|
24
|
-
var _default = exports.default = RowExpand;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
-
var _pcAddBtn = _interopRequireDefault(require("./pc-add-btn"));
|
|
12
|
-
var _mbAddBtn = _interopRequireDefault(require("./mb-add-btn"));
|
|
13
|
-
const RowExpandAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
-
query: "(min-width: 768px)"
|
|
16
|
-
}, /*#__PURE__*/_react.default.createElement(_pcAddBtn.default, Object.assign({}, props, {
|
|
17
|
-
ref: ref
|
|
18
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
-
query: "(max-width: 768px)"
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement(_mbAddBtn.default, Object.assign({}, props, {
|
|
21
|
-
ref: ref
|
|
22
|
-
}))));
|
|
23
|
-
});
|
|
24
|
-
var _default = exports.default = RowExpandAddBtn;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
require("./index.css");
|
|
12
|
-
const RowExpandMBAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
13
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
14
|
-
ref: ref,
|
|
15
|
-
onClick: props.onClick,
|
|
16
|
-
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-add-btn', props.className)
|
|
17
|
-
}, props.text);
|
|
18
|
-
});
|
|
19
|
-
var _default = exports.default = RowExpandMBAddBtn;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
-
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
|
-
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
-
require("./index.css");
|
|
14
|
-
const RowExpandCheckboxEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
16
|
-
query: "(min-width: 768px)"
|
|
17
|
-
}, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
|
|
18
|
-
ref: ref
|
|
19
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
20
|
-
query: "(max-width: 768px)"
|
|
21
|
-
}, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
|
|
22
|
-
ref: ref
|
|
23
|
-
}))));
|
|
24
|
-
});
|
|
25
|
-
var _default = exports.default = RowExpandCheckboxEditor;
|
|
@@ -1,36 +0,0 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _CheckboxEditor = _interopRequireDefault(require("../../../CheckboxEditor"));
|
|
11
|
-
require("./index.css");
|
|
12
|
-
class RowExpandMBCheckboxEditor extends _react.default.Component {
|
|
13
|
-
constructor(props) {
|
|
14
|
-
super(props);
|
|
15
|
-
this.onCommit = newValue => {
|
|
16
|
-
this.props.onCommit && this.props.onCommit(newValue);
|
|
17
|
-
};
|
|
18
|
-
this.editor = null;
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
const {
|
|
22
|
-
column,
|
|
23
|
-
value,
|
|
24
|
-
className
|
|
25
|
-
} = this.props;
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
-
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-checkbox-editor-container', className)
|
|
28
|
-
}, /*#__PURE__*/_react.default.createElement(_CheckboxEditor.default, {
|
|
29
|
-
className: "dtable-ui-row-expand-checkbox-editor mt-0",
|
|
30
|
-
column: column,
|
|
31
|
-
value: value,
|
|
32
|
-
onCommit: this.onCommit
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
var _default = exports.default = RowExpandMBCheckboxEditor;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
-
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
|
-
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
-
const RowExpandCollaboratorEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
-
query: "(min-width: 768px)"
|
|
16
|
-
}, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
|
|
17
|
-
ref: ref
|
|
18
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
-
query: "(max-width: 768px)"
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
|
|
21
|
-
ref: ref
|
|
22
|
-
}))));
|
|
23
|
-
});
|
|
24
|
-
var _default = exports.default = RowExpandCollaboratorEditor;
|
|
@@ -1,163 +0,0 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _CollaboratorEditor = _interopRequireDefault(require("../../../CollaboratorEditor"));
|
|
10
|
-
var _lang = require("../../../lang");
|
|
11
|
-
var _CollaboratorItem = _interopRequireDefault(require("../../../CollaboratorItem"));
|
|
12
|
-
var _rightAngle = _interopRequireDefault(require("../../right-angle"));
|
|
13
|
-
var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
14
|
-
require("./index.css");
|
|
15
|
-
class RowExpandMBCollaboratorEditor extends _react.default.Component {
|
|
16
|
-
constructor(_props) {
|
|
17
|
-
super(_props);
|
|
18
|
-
this.initCollaborators = props => {
|
|
19
|
-
const {
|
|
20
|
-
row,
|
|
21
|
-
column,
|
|
22
|
-
valueKey
|
|
23
|
-
} = props;
|
|
24
|
-
const emails = row[column[valueKey]] || [];
|
|
25
|
-
props.queryCollaborators && props.queryCollaborators(emails);
|
|
26
|
-
};
|
|
27
|
-
this.getCollaborators = () => {
|
|
28
|
-
const {
|
|
29
|
-
getCollaborators,
|
|
30
|
-
collaborators
|
|
31
|
-
} = this.props;
|
|
32
|
-
if (getCollaborators) return getCollaborators();
|
|
33
|
-
return collaborators || [];
|
|
34
|
-
};
|
|
35
|
-
this.updateCollaborators = () => {
|
|
36
|
-
const collaborators = this.getCollaborators();
|
|
37
|
-
let emailCollaboratorMap = {};
|
|
38
|
-
collaborators.forEach(c => {
|
|
39
|
-
emailCollaboratorMap[c.email] = c;
|
|
40
|
-
});
|
|
41
|
-
this.setState({
|
|
42
|
-
emailCollaboratorMap
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
this.toggleEditor = value => {
|
|
46
|
-
this.setState({
|
|
47
|
-
showEditor: value
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
this.openEditor = event => {
|
|
51
|
-
event.stopPropagation();
|
|
52
|
-
this.toggleEditor(true);
|
|
53
|
-
};
|
|
54
|
-
this.closeEditor = () => {
|
|
55
|
-
this.toggleEditor(false);
|
|
56
|
-
};
|
|
57
|
-
this.onChange = collaborator => {
|
|
58
|
-
let newValue = this.state.value.slice(0);
|
|
59
|
-
const collaboratorIndex = newValue.findIndex(email => collaborator.email === email);
|
|
60
|
-
if (collaboratorIndex === -1) {
|
|
61
|
-
newValue.push(collaborator.email);
|
|
62
|
-
} else {
|
|
63
|
-
newValue.splice(collaboratorIndex, 1);
|
|
64
|
-
}
|
|
65
|
-
this.setState({
|
|
66
|
-
value: newValue
|
|
67
|
-
});
|
|
68
|
-
this.props.onCommit(newValue);
|
|
69
|
-
};
|
|
70
|
-
this.renderCollaborators = value => {
|
|
71
|
-
const {
|
|
72
|
-
emailCollaboratorMap
|
|
73
|
-
} = this.state;
|
|
74
|
-
if (Array.isArray(value) && value.length > 0) {
|
|
75
|
-
return value.map((email, index) => {
|
|
76
|
-
let collaborator = emailCollaboratorMap[email];
|
|
77
|
-
if (collaborator) {
|
|
78
|
-
const {
|
|
79
|
-
email
|
|
80
|
-
} = collaborator;
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement(_CollaboratorItem.default, {
|
|
82
|
-
key: email,
|
|
83
|
-
collaborator: collaborator
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
collaborator = {
|
|
87
|
-
name: (0, _lang.getLocale)('Unknown'),
|
|
88
|
-
avatar_url: '',
|
|
89
|
-
email: index + ''
|
|
90
|
-
};
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_CollaboratorItem.default, {
|
|
92
|
-
key: email,
|
|
93
|
-
className: "dtable-ui-unknown-collaborator",
|
|
94
|
-
collaborator: collaborator
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
return /*#__PURE__*/_react.default.createElement(_addBtn.default, {
|
|
99
|
-
text: (0, _lang.getLocale)('Add_collaborator')
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
const {
|
|
103
|
-
row: _row,
|
|
104
|
-
column: _column,
|
|
105
|
-
valueKey: _valueKey
|
|
106
|
-
} = this.props;
|
|
107
|
-
this.state = {
|
|
108
|
-
menuPosition: null,
|
|
109
|
-
value: _row[_column[_valueKey]] || [],
|
|
110
|
-
showEditor: false,
|
|
111
|
-
emailCollaboratorMap: {}
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
componentDidMount() {
|
|
115
|
-
this.initCollaborators(this.props);
|
|
116
|
-
const eventBus = this.props.eventBus;
|
|
117
|
-
if (eventBus) {
|
|
118
|
-
this.unsubscribeCollaboratorsUpdated = eventBus.subscribe('collaborators-updated', this.updateCollaborators);
|
|
119
|
-
} else {
|
|
120
|
-
this.updateCollaborators();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
124
|
-
const {
|
|
125
|
-
column,
|
|
126
|
-
row,
|
|
127
|
-
valueKey
|
|
128
|
-
} = nextProps;
|
|
129
|
-
if (row._id !== this.props.row._id) {
|
|
130
|
-
this.initCollaborators(nextProps);
|
|
131
|
-
this.setState({
|
|
132
|
-
value: row[column[valueKey]] || [],
|
|
133
|
-
showEditor: false
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
componentWillUnmount() {
|
|
138
|
-
if (this.props.eventBus && this.unsubscribeCollaboratorsUpdated) {
|
|
139
|
-
this.unsubscribeCollaboratorsUpdated();
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
render() {
|
|
143
|
-
const {
|
|
144
|
-
collaborators,
|
|
145
|
-
column
|
|
146
|
-
} = this.props;
|
|
147
|
-
const {
|
|
148
|
-
showEditor,
|
|
149
|
-
value
|
|
150
|
-
} = this.state;
|
|
151
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
-
className: "dtable-ui dtable-ui-mobile-row-expand-collaborators position-relative",
|
|
153
|
-
onClick: this.openEditor
|
|
154
|
-
}, this.renderCollaborators(value), /*#__PURE__*/_react.default.createElement(_rightAngle.default, null)), showEditor && /*#__PURE__*/_react.default.createElement(_CollaboratorEditor.default, {
|
|
155
|
-
value: value,
|
|
156
|
-
column: column,
|
|
157
|
-
collaborators: collaborators,
|
|
158
|
-
onCommit: this.onChange,
|
|
159
|
-
onClose: this.closeEditor
|
|
160
|
-
}));
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
var _default = exports.default = RowExpandMBCollaboratorEditor;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
-
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
|
-
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
-
const RowExpandDateEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
-
query: "(min-width: 768px)"
|
|
16
|
-
}, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
|
|
17
|
-
ref: ref
|
|
18
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
-
query: "(max-width: 768px)"
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
|
|
21
|
-
ref: ref
|
|
22
|
-
}))));
|
|
23
|
-
});
|
|
24
|
-
var _default = exports.default = RowExpandDateEditor;
|