cozy-ui-plus 1.1.0
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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/babel.config.js +24 -0
- package/dist/AppIcon/index.js +265 -0
- package/dist/AppLinker/index.js +159 -0
- package/dist/AppLinker/native.config.js +8 -0
- package/dist/AppLinker/native.js +81 -0
- package/dist/AppSections/Sections.js +461 -0
- package/dist/AppSections/_mockApps.js +210 -0
- package/dist/AppSections/_testApps.js +162 -0
- package/dist/AppSections/categories.js +183 -0
- package/dist/AppSections/components/AppsSection.js +112 -0
- package/dist/AppSections/components/DropdownFilter.js +101 -0
- package/dist/AppSections/constants.js +16 -0
- package/dist/AppSections/generateI18nConfig.js +37 -0
- package/dist/AppSections/helpers.js +28 -0
- package/dist/AppSections/index.js +24 -0
- package/dist/AppSections/search.js +161 -0
- package/dist/AppTile/helpers.js +41 -0
- package/dist/AppTile/index.js +171 -0
- package/dist/CipherIcon/index.js +102 -0
- package/dist/CollectionField/index.js +166 -0
- package/dist/ContactPicker/index.js +129 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/helpers.js +31 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/index.js +106 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/locales/index.js +113 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInput.js +164 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputAccordion.js +91 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputArray.js +105 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputLayout.js +98 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputWrapper.js +51 -0
- package/dist/Contacts/AddModal/ContactForm/HasValueCondition.js +44 -0
- package/dist/Contacts/AddModal/ContactForm/RelatedContactList.js +55 -0
- package/dist/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.js +104 -0
- package/dist/Contacts/AddModal/ContactForm/TextFieldSelect.js +59 -0
- package/dist/Contacts/AddModal/ContactForm/contactToFormValues.js +119 -0
- package/dist/Contacts/AddModal/ContactForm/fieldsConfig.js +314 -0
- package/dist/Contacts/AddModal/ContactForm/formValuesToContact.js +110 -0
- package/dist/Contacts/AddModal/ContactForm/helpers.js +466 -0
- package/dist/Contacts/AddModal/ContactForm/index.js +184 -0
- package/dist/Contacts/AddModal/ContactForm/locales/index.js +313 -0
- package/dist/Contacts/AddModal/CustomLabelDialog/index.js +138 -0
- package/dist/Contacts/AddModal/CustomLabelDialog/locales/index.js +73 -0
- package/dist/Contacts/AddModal/index.js +134 -0
- package/dist/Contacts/AddModal/locales/index.js +65 -0
- package/dist/Contacts/AddModal/mocks.js +265 -0
- package/dist/Contacts/AddModal/types.js +110 -0
- package/dist/Contacts/GroupsSelect/GroupCreation.js +157 -0
- package/dist/Contacts/GroupsSelect/GroupsSelect.js +207 -0
- package/dist/Contacts/GroupsSelect/GroupsSelectProvider.js +60 -0
- package/dist/Contacts/GroupsSelect/SelectBox/Control.js +54 -0
- package/dist/Contacts/GroupsSelect/SelectBox/EditGroupName.js +89 -0
- package/dist/Contacts/GroupsSelect/SelectBox/Menu.js +49 -0
- package/dist/Contacts/GroupsSelect/SelectBox/Option.js +80 -0
- package/dist/Contacts/GroupsSelect/SelectBox/SelectContainer.js +25 -0
- package/dist/Contacts/GroupsSelect/helpers.js +45 -0
- package/dist/Contacts/GroupsSelect/locales/index.js +97 -0
- package/dist/Contacts/GroupsSelect/useGroupSelect.js +196 -0
- package/dist/Contacts/Header/GroupsSelection.js +101 -0
- package/dist/Contacts/Header/ImportDropdown.js +115 -0
- package/dist/Contacts/Header/SearchInput.js +40 -0
- package/dist/Contacts/Header/index.js +93 -0
- package/dist/Contacts/Header/locales/index.js +73 -0
- package/dist/ContactsList/ContactCell.js +45 -0
- package/dist/ContactsList/ContactRow.js +84 -0
- package/dist/ContactsList/Contacts/ContactCozy.js +44 -0
- package/dist/ContactsList/Contacts/ContactEmail.js +44 -0
- package/dist/ContactsList/Contacts/ContactIdentity.js +86 -0
- package/dist/ContactsList/Contacts/ContactName.js +48 -0
- package/dist/ContactsList/Contacts/ContactPhone.js +44 -0
- package/dist/ContactsList/ContactsList.js +74 -0
- package/dist/ContactsList/helpers.js +156 -0
- package/dist/ContactsList/index.js +13 -0
- package/dist/ContactsList/locales/withContactsListLocales.js +42 -0
- package/dist/ContactsListModal/AddContact/AddContactActions.js +32 -0
- package/dist/ContactsListModal/AddContact/AddContactContent.js +85 -0
- package/dist/ContactsListModal/AddContact/AddContactDialog.js +63 -0
- package/dist/ContactsListModal/AddContact/AddContactTitle.js +21 -0
- package/dist/ContactsListModal/AddContact/helpers.js +61 -0
- package/dist/ContactsListModal/ContactsListContent.js +88 -0
- package/dist/ContactsListModal/ContactsListModal.js +178 -0
- package/dist/ContactsListModal/ContactsListModalWithQuery.js +44 -0
- package/dist/ContactsListModal/EmptyMessage.js +33 -0
- package/dist/ContactsListModal/MobileHeader.js +67 -0
- package/dist/ContactsListModal/index.js +58 -0
- package/dist/ContactsListModal/mockClient.js +2009 -0
- package/dist/ContactsListModal/queries.js +26 -0
- package/dist/ContactsListModal/withContactsListLocales.js +40 -0
- package/dist/Dialogs/AuthenticationDialogs/index.js +139 -0
- package/dist/Field/index.js +297 -0
- package/dist/FileImageLoader/checkImageSource.js +61 -0
- package/dist/FileImageLoader/index.js +394 -0
- package/dist/FilePicker/FilePickerBody.js +108 -0
- package/dist/FilePicker/FilePickerBodyItem.js +132 -0
- package/dist/FilePicker/FilePickerBreadcrumb.js +74 -0
- package/dist/FilePicker/FilePickerFooter.js +91 -0
- package/dist/FilePicker/FilePickerHeader.js +110 -0
- package/dist/FilePicker/docs/DemoProvider.js +280 -0
- package/dist/FilePicker/helpers.js +57 -0
- package/dist/FilePicker/index.js +125 -0
- package/dist/FilePicker/queries.js +61 -0
- package/dist/Intent/IntentDialogOpener/index.js +142 -0
- package/dist/Intent/IntentIframe/index.js +182 -0
- package/dist/ListItem/ExpandedAttributes/ExpandedAttribute.js +64 -0
- package/dist/ListItem/ExpandedAttributes/helpers.js +263 -0
- package/dist/ListItem/ExpandedAttributes/index.js +90 -0
- package/dist/ListItem/ListItemBase/Renaming/RenameDialog.js +52 -0
- package/dist/ListItem/ListItemBase/Renaming/RenameInput.js +319 -0
- package/dist/ListItem/ListItemBase/Renaming/helpers.js +73 -0
- package/dist/ListItem/ListItemBase/index.js +153 -0
- package/dist/ListItem/ListItemByDoc/index.js +109 -0
- package/dist/ListItem/ListItemContact/helpers.js +39 -0
- package/dist/ListItem/ListItemContact/index.js +87 -0
- package/dist/ListItem/ListItemContact/useActions.js +28 -0
- package/dist/ListItem/ListItemFile/ExpirationAnnotation.js +54 -0
- package/dist/ListItem/ListItemFile/ItemIcon.js +61 -0
- package/dist/ListItem/ListItemFile/PrimaryText.js +47 -0
- package/dist/ListItem/ListItemFile/SecondaryText.js +41 -0
- package/dist/ListItem/ListItemFile/index.js +96 -0
- package/dist/ListItem/hoc/withListItemLocales.js +322 -0
- package/dist/Paywall/MaxAccountsByKonnectorPaywall.js +48 -0
- package/dist/Paywall/MaxAccountsPaywall.js +43 -0
- package/dist/Paywall/MaxDaysToCapturePaywall.js +43 -0
- package/dist/Paywall/MaxPapersPaywall.js +44 -0
- package/dist/Paywall/OnlyOfficePaywall.js +41 -0
- package/dist/Paywall/PasswordSharingPaywall.js +34 -0
- package/dist/Paywall/Paywall.js +205 -0
- package/dist/Paywall/QuotaPaywall.js +32 -0
- package/dist/Paywall/helpers.js +31 -0
- package/dist/Paywall/index.js +63 -0
- package/dist/Paywall/locales/withPaywallLocales.js +401 -0
- package/dist/Qualification/QualificationGrid/helpers.js +16 -0
- package/dist/Qualification/QualificationGrid/index.js +136 -0
- package/dist/Qualification/QualificationGrid/locales/withLocales.js +82 -0
- package/dist/Qualification/QualificationIcon/index.js +156 -0
- package/dist/Qualification/QualificationItem/index.js +87 -0
- package/dist/Qualification/QualificationModal/helpers.js +95 -0
- package/dist/Qualification/QualificationModal/index.js +121 -0
- package/dist/Qualification/QualificationModal/locales/index.js +37 -0
- package/dist/ShortcutTile/index.js +68 -0
- package/dist/SquareAppIcon/index.js +262 -0
- package/dist/Storage/StorageButton.js +54 -0
- package/dist/Storage/StorageProgress.js +68 -0
- package/dist/Storage/index.js +49 -0
- package/dist/Storage/locales/index.js +41 -0
- package/dist/UploadQueue/FileUploadProgress.js +86 -0
- package/dist/UploadQueue/Item.js +132 -0
- package/dist/UploadQueue/Pending.js +23 -0
- package/dist/UploadQueue/RemainingTime.js +59 -0
- package/dist/UploadQueue/helpers.js +13 -0
- package/dist/UploadQueue/index.js +277 -0
- package/dist/UploadQueue/useStatusIcon.js +60 -0
- package/dist/hooks/useClientErrors.js +185 -0
- package/dist/proptypes.js +33 -0
- package/dist/providers/CozyTheme/CozyThemeWithQuery.js +41 -0
- package/dist/providers/CozyTheme/index.js +58 -0
- package/dist/providers/CozyTheme/queries.js +25 -0
- package/dist/providers/DemoProvider.js +49 -0
- package/dist/providers/Intent/index.js +130 -0
- package/dist/src/AppIcon/index.d.ts +50 -0
- package/dist/src/AppIcon/index.spec.d.ts +1 -0
- package/dist/src/AppLinker/index.d.ts +35 -0
- package/dist/src/AppLinker/index.spec.d.ts +1 -0
- package/dist/src/AppLinker/native.config.d.ts +1 -0
- package/dist/src/AppLinker/native.d.ts +6 -0
- package/dist/src/AppLinker/native.spec.d.ts +1 -0
- package/dist/src/AppSections/Sections.d.ts +49 -0
- package/dist/src/AppSections/_mockApps.d.ts +242 -0
- package/dist/src/AppSections/_testApps.d.ts +203 -0
- package/dist/src/AppSections/categories.d.ts +7 -0
- package/dist/src/AppSections/categories.spec.d.ts +1 -0
- package/dist/src/AppSections/components/AppsSection.d.ts +20 -0
- package/dist/src/AppSections/components/AppsSection.spec.d.ts +1 -0
- package/dist/src/AppSections/components/DropdownFilter.d.ts +17 -0
- package/dist/src/AppSections/constants.d.ts +8 -0
- package/dist/src/AppSections/generateI18nConfig.d.ts +4 -0
- package/dist/src/AppSections/helpers.d.ts +2 -0
- package/dist/src/AppSections/helpers.spec.d.ts +1 -0
- package/dist/src/AppSections/index.d.ts +3 -0
- package/dist/src/AppSections/index.spec.d.ts +1 -0
- package/dist/src/AppSections/search.d.ts +3 -0
- package/dist/src/AppSections/search.spec.d.ts +1 -0
- package/dist/src/AppTile/AppTile.spec.d.ts +1 -0
- package/dist/src/AppTile/helpers.d.ts +9 -0
- package/dist/src/AppTile/index.d.ts +33 -0
- package/dist/src/CipherIcon/index.d.ts +2 -0
- package/dist/src/CipherIcon/index.spec.d.ts +1 -0
- package/dist/src/CollectionField/index.d.ts +23 -0
- package/dist/src/ContactPicker/index.d.ts +21 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/helpers.d.ts +4 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/helpers.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/index.d.ts +39 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInput.d.ts +39 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputAccordion.d.ts +12 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputArray.d.ts +14 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputLayout.d.ts +22 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputWrapper.d.ts +19 -0
- package/dist/src/Contacts/AddModal/ContactForm/HasValueCondition.d.ts +18 -0
- package/dist/src/Contacts/AddModal/ContactForm/HasValueCondition.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/RelatedContactList.d.ts +15 -0
- package/dist/src/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.d.ts +9 -0
- package/dist/src/Contacts/AddModal/ContactForm/TextFieldSelect.d.ts +5 -0
- package/dist/src/Contacts/AddModal/ContactForm/contactToFormValues.d.ts +6 -0
- package/dist/src/Contacts/AddModal/ContactForm/contactToFormValues.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/fieldsConfig.d.ts +4 -0
- package/dist/src/Contacts/AddModal/ContactForm/formValuesToContact.d.ts +7 -0
- package/dist/src/Contacts/AddModal/ContactForm/formValuesToContact.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/helpers.d.ts +35 -0
- package/dist/src/Contacts/AddModal/ContactForm/helpers.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/index.d.ts +17 -0
- package/dist/src/Contacts/AddModal/ContactForm/index.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/CustomLabelDialog/index.d.ts +22 -0
- package/dist/src/Contacts/AddModal/CustomLabelDialog/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/index.d.ts +8 -0
- package/dist/src/Contacts/AddModal/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/mocks.d.ts +276 -0
- package/dist/src/Contacts/AddModal/types.d.ts +188 -0
- package/dist/src/Contacts/GroupsSelect/GroupCreation.d.ts +3 -0
- package/dist/src/Contacts/GroupsSelect/GroupsSelect.d.ts +56 -0
- package/dist/src/Contacts/GroupsSelect/GroupsSelect.spec.d.ts +22 -0
- package/dist/src/Contacts/GroupsSelect/GroupsSelectProvider.d.ts +5 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/Control.d.ts +14 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/EditGroupName.d.ts +7 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/Menu.d.ts +7 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/Option.d.ts +18 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/SelectContainer.d.ts +2 -0
- package/dist/src/Contacts/GroupsSelect/helpers.d.ts +9 -0
- package/dist/src/Contacts/GroupsSelect/locales/index.d.ts +10 -0
- package/dist/src/Contacts/GroupsSelect/useGroupSelect.d.ts +11 -0
- package/dist/src/Contacts/Header/GroupsSelection.d.ts +7 -0
- package/dist/src/Contacts/Header/ImportDropdown.d.ts +4 -0
- package/dist/src/Contacts/Header/SearchInput.d.ts +4 -0
- package/dist/src/Contacts/Header/index.d.ts +26 -0
- package/dist/src/Contacts/Header/locales/index.d.ts +10 -0
- package/dist/src/ContactsList/ContactCell.d.ts +8 -0
- package/dist/src/ContactsList/ContactRow.d.ts +16 -0
- package/dist/src/ContactsList/ContactRow.spec.d.ts +1 -0
- package/dist/src/ContactsList/Contacts/ContactCozy.d.ts +14 -0
- package/dist/src/ContactsList/Contacts/ContactEmail.d.ts +14 -0
- package/dist/src/ContactsList/Contacts/ContactIdentity.d.ts +10 -0
- package/dist/src/ContactsList/Contacts/ContactName.d.ts +10 -0
- package/dist/src/ContactsList/Contacts/ContactPhone.d.ts +14 -0
- package/dist/src/ContactsList/ContactsList.d.ts +2 -0
- package/dist/src/ContactsList/helpers.d.ts +9 -0
- package/dist/src/ContactsList/helpers.spec.d.ts +1 -0
- package/dist/src/ContactsList/index.d.ts +2 -0
- package/dist/src/ContactsList/locales/withContactsListLocales.d.ts +12 -0
- package/dist/src/ContactsListModal/AddContact/AddContactActions.d.ts +2 -0
- package/dist/src/ContactsListModal/AddContact/AddContactContent.d.ts +2 -0
- package/dist/src/ContactsListModal/AddContact/AddContactDialog.d.ts +6 -0
- package/dist/src/ContactsListModal/AddContact/AddContactTitle.d.ts +2 -0
- package/dist/src/ContactsListModal/AddContact/helpers.d.ts +6 -0
- package/dist/src/ContactsListModal/AddContact/helpers.spec.d.ts +1 -0
- package/dist/src/ContactsListModal/ContactsListContent.d.ts +2 -0
- package/dist/src/ContactsListModal/ContactsListModal.d.ts +20 -0
- package/dist/src/ContactsListModal/ContactsListModalWithQuery.d.ts +12 -0
- package/dist/src/ContactsListModal/EmptyMessage.d.ts +2 -0
- package/dist/src/ContactsListModal/MobileHeader.d.ts +16 -0
- package/dist/src/ContactsListModal/index.d.ts +2 -0
- package/dist/src/ContactsListModal/mockClient.d.ts +3 -0
- package/dist/src/ContactsListModal/queries.d.ts +7 -0
- package/dist/src/ContactsListModal/withContactsListLocales.d.ts +7 -0
- package/dist/src/Dialogs/AuthenticationDialogs/index.d.ts +2 -0
- package/dist/src/Field/index.d.ts +53 -0
- package/dist/src/Field/index.spec.d.ts +1 -0
- package/dist/src/FileImageLoader/checkImageSource.d.ts +1 -0
- package/dist/src/FileImageLoader/index.d.ts +45 -0
- package/dist/src/FileImageLoader/index.spec.d.ts +1 -0
- package/dist/src/FilePicker/FilePickerBody.d.ts +19 -0
- package/dist/src/FilePicker/FilePickerBodyItem.d.ts +22 -0
- package/dist/src/FilePicker/FilePickerBodyItem.spec.d.ts +1 -0
- package/dist/src/FilePicker/FilePickerBreadcrumb.d.ts +13 -0
- package/dist/src/FilePicker/FilePickerFooter.d.ts +15 -0
- package/dist/src/FilePicker/FilePickerFooter.spec.d.ts +1 -0
- package/dist/src/FilePicker/FilePickerHeader.d.ts +14 -0
- package/dist/src/FilePicker/docs/DemoProvider.d.ts +23 -0
- package/dist/src/FilePicker/helpers.d.ts +3 -0
- package/dist/src/FilePicker/helpers.spec.d.ts +1 -0
- package/dist/src/FilePicker/index.d.ts +22 -0
- package/dist/src/FilePicker/queries.d.ts +14 -0
- package/dist/src/Intent/IntentDialogOpener/index.d.ts +32 -0
- package/dist/src/Intent/IntentIframe/index.d.ts +8 -0
- package/dist/src/ListItem/ExpandedAttributes/ExpandedAttribute.d.ts +14 -0
- package/dist/src/ListItem/ExpandedAttributes/helpers.d.ts +43 -0
- package/dist/src/ListItem/ExpandedAttributes/helpers.spec.d.ts +1 -0
- package/dist/src/ListItem/ExpandedAttributes/index.d.ts +2 -0
- package/dist/src/ListItem/ListItemBase/Renaming/RenameDialog.d.ts +2 -0
- package/dist/src/ListItem/ListItemBase/Renaming/RenameInput.d.ts +12 -0
- package/dist/src/ListItem/ListItemBase/Renaming/helpers.d.ts +1 -0
- package/dist/src/ListItem/ListItemBase/index.d.ts +2 -0
- package/dist/src/ListItem/ListItemByDoc/index.d.ts +46 -0
- package/dist/src/ListItem/ListItemContact/helpers.d.ts +1 -0
- package/dist/src/ListItem/ListItemContact/helpers.spec.d.ts +1 -0
- package/dist/src/ListItem/ListItemContact/index.d.ts +35 -0
- package/dist/src/ListItem/ListItemContact/useActions.d.ts +2 -0
- package/dist/src/ListItem/ListItemFile/ExpirationAnnotation.d.ts +2 -0
- package/dist/src/ListItem/ListItemFile/ItemIcon.d.ts +12 -0
- package/dist/src/ListItem/ListItemFile/PrimaryText.d.ts +12 -0
- package/dist/src/ListItem/ListItemFile/SecondaryText.d.ts +12 -0
- package/dist/src/ListItem/ListItemFile/index.d.ts +37 -0
- package/dist/src/ListItem/hoc/withListItemLocales.d.ts +12 -0
- package/dist/src/Paywall/MaxAccountsByKonnectorPaywall.d.ts +2 -0
- package/dist/src/Paywall/MaxAccountsPaywall.d.ts +2 -0
- package/dist/src/Paywall/MaxDaysToCapturePaywall.d.ts +2 -0
- package/dist/src/Paywall/MaxPapersPaywall.d.ts +2 -0
- package/dist/src/Paywall/OnlyOfficePaywall.d.ts +16 -0
- package/dist/src/Paywall/PasswordSharingPaywall.d.ts +10 -0
- package/dist/src/Paywall/Paywall.d.ts +2 -0
- package/dist/src/Paywall/Paywall.spec.d.ts +1 -0
- package/dist/src/Paywall/QuotaPaywall.d.ts +13 -0
- package/dist/src/Paywall/helpers.d.ts +1 -0
- package/dist/src/Paywall/index.d.ts +7 -0
- package/dist/src/Paywall/locales/withPaywallLocales.d.ts +2 -0
- package/dist/src/Qualification/QualificationGrid/helpers.d.ts +1 -0
- package/dist/src/Qualification/QualificationGrid/index.d.ts +2 -0
- package/dist/src/Qualification/QualificationGrid/locales/withLocales.d.ts +12 -0
- package/dist/src/Qualification/QualificationIcon/index.d.ts +13 -0
- package/dist/src/Qualification/QualificationItem/index.d.ts +17 -0
- package/dist/src/Qualification/QualificationModal/helpers.d.ts +14 -0
- package/dist/src/Qualification/QualificationModal/helpers.spec.d.ts +1 -0
- package/dist/src/Qualification/QualificationModal/index.d.ts +16 -0
- package/dist/src/Qualification/QualificationModal/locales/index.d.ts +10 -0
- package/dist/src/ShortcutTile/index.d.ts +13 -0
- package/dist/src/SquareAppIcon/SquareAppIcon.spec.d.ts +1 -0
- package/dist/src/SquareAppIcon/index.d.ts +26 -0
- package/dist/src/Storage/StorageButton.d.ts +4 -0
- package/dist/src/Storage/StorageProgress.d.ts +5 -0
- package/dist/src/Storage/index.d.ts +14 -0
- package/dist/src/Storage/locales/index.d.ts +10 -0
- package/dist/src/UploadQueue/FileUploadProgress.d.ts +4 -0
- package/dist/src/UploadQueue/Item.d.ts +3 -0
- package/dist/src/UploadQueue/Pending.d.ts +3 -0
- package/dist/src/UploadQueue/RemainingTime.d.ts +4 -0
- package/dist/src/UploadQueue/helpers.d.ts +1 -0
- package/dist/src/UploadQueue/index.d.ts +42 -0
- package/dist/src/UploadQueue/index.spec.d.ts +1 -0
- package/dist/src/UploadQueue/useStatusIcon.d.ts +1 -0
- package/dist/src/hooks/useClientErrors.d.ts +29 -0
- package/dist/src/hooks/useClientErrors.spec.d.ts +1 -0
- package/dist/src/proptypes.d.ts +18 -0
- package/dist/src/providers/CozyTheme/CozyThemeWithQuery.d.ts +2 -0
- package/dist/src/providers/CozyTheme/index.d.ts +24 -0
- package/dist/src/providers/CozyTheme/queries.d.ts +8 -0
- package/dist/src/providers/DemoProvider.d.ts +6 -0
- package/dist/src/providers/Intent/index.d.ts +9 -0
- package/dist/stylesheet.css +898 -0
- package/dist/test/I18n.d.ts +6 -0
- package/dist/types.d.js +1 -0
- package/jest.config.js +20 -0
- package/package.json +76 -0
- package/preprocess.js +16 -0
- package/src/AppIcon/Readme.md +96 -0
- package/src/AppIcon/index.jsx +168 -0
- package/src/AppIcon/index.spec.js +145 -0
- package/src/AppIcon/styles.styl +37 -0
- package/src/AppLinker/Readme.md +32 -0
- package/src/AppLinker/__snapshots__/index.spec.jsx.snap +13 -0
- package/src/AppLinker/index.jsx +107 -0
- package/src/AppLinker/index.spec.jsx +60 -0
- package/src/AppLinker/native.config.js +1 -0
- package/src/AppLinker/native.js +57 -0
- package/src/AppLinker/native.spec.js +120 -0
- package/src/AppSections/Readme.md +35 -0
- package/src/AppSections/Sections.jsx +285 -0
- package/src/AppSections/Sections.styl +4 -0
- package/src/AppSections/__snapshots__/search.spec.js.snap +972 -0
- package/src/AppSections/_mockApps.js +197 -0
- package/src/AppSections/_testApps.js +151 -0
- package/src/AppSections/categories.js +138 -0
- package/src/AppSections/categories.spec.js +289 -0
- package/src/AppSections/components/AppsSection.jsx +82 -0
- package/src/AppSections/components/AppsSection.spec.jsx +50 -0
- package/src/AppSections/components/AppsSection.styl +7 -0
- package/src/AppSections/components/DropdownFilter.jsx +50 -0
- package/src/AppSections/components/DropdownFilter.styl +14 -0
- package/src/AppSections/constants.js +9 -0
- package/src/AppSections/generateI18nConfig.ts +23 -0
- package/src/AppSections/helpers.js +16 -0
- package/src/AppSections/helpers.spec.js +40 -0
- package/src/AppSections/index.jsx +3 -0
- package/src/AppSections/index.spec.jsx +137 -0
- package/src/AppSections/locales/en.json +37 -0
- package/src/AppSections/locales/fr.json +37 -0
- package/src/AppSections/locales/ru.json +37 -0
- package/src/AppSections/locales/vi.json +37 -0
- package/src/AppSections/search.js +104 -0
- package/src/AppSections/search.spec.js +158 -0
- package/src/AppTile/AppTile.spec.jsx +117 -0
- package/src/AppTile/Readme.md +24 -0
- package/src/AppTile/helpers.js +25 -0
- package/src/AppTile/index.jsx +139 -0
- package/src/AppTile/locales/en.json +9 -0
- package/src/AppTile/locales/fr.json +9 -0
- package/src/AppTile/locales/ru.json +9 -0
- package/src/AppTile/locales/vi.json +9 -0
- package/src/AppTile/styles.styl +27 -0
- package/src/CipherIcon/Readme.md +14 -0
- package/src/CipherIcon/index.jsx +46 -0
- package/src/CipherIcon/index.spec.jsx +53 -0
- package/src/CollectionField/Readme.md +41 -0
- package/src/CollectionField/index.jsx +141 -0
- package/src/CollectionField/styles.styl +15 -0
- package/src/ContactPicker/Readme.md +26 -0
- package/src/ContactPicker/index.jsx +86 -0
- package/src/ContactPicker/styles.styl +5 -0
- package/src/Contacts/AddModal/ContactAddressDialog/helpers.js +22 -0
- package/src/Contacts/AddModal/ContactAddressDialog/helpers.spec.js +64 -0
- package/src/Contacts/AddModal/ContactAddressDialog/index.jsx +85 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/en.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/fr.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/ru.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/vi.json +25 -0
- package/src/Contacts/AddModal/ContactForm/FieldInput.jsx +124 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputAccordion.jsx +58 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputArray.jsx +81 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputLayout.jsx +77 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputWrapper.jsx +44 -0
- package/src/Contacts/AddModal/ContactForm/HasValueCondition.jsx +31 -0
- package/src/Contacts/AddModal/ContactForm/HasValueCondition.spec.jsx +79 -0
- package/src/Contacts/AddModal/ContactForm/RelatedContactList.jsx +37 -0
- package/src/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.jsx +79 -0
- package/src/Contacts/AddModal/ContactForm/TextFieldSelect.jsx +40 -0
- package/src/Contacts/AddModal/ContactForm/__snapshots__/HasValueCondition.spec.jsx.snap +33 -0
- package/src/Contacts/AddModal/ContactForm/contactToFormValues.js +109 -0
- package/src/Contacts/AddModal/ContactForm/contactToFormValues.spec.js +133 -0
- package/src/Contacts/AddModal/ContactForm/fieldsConfig.jsx +357 -0
- package/src/Contacts/AddModal/ContactForm/formValuesToContact.js +111 -0
- package/src/Contacts/AddModal/ContactForm/formValuesToContact.spec.js +557 -0
- package/src/Contacts/AddModal/ContactForm/helpers.js +393 -0
- package/src/Contacts/AddModal/ContactForm/helpers.spec.js +391 -0
- package/src/Contacts/AddModal/ContactForm/index.jsx +138 -0
- package/src/Contacts/AddModal/ContactForm/index.spec.jsx +301 -0
- package/src/Contacts/AddModal/ContactForm/locales/en.json +75 -0
- package/src/Contacts/AddModal/ContactForm/locales/fr.json +75 -0
- package/src/Contacts/AddModal/ContactForm/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/ContactForm/locales/ru.json +75 -0
- package/src/Contacts/AddModal/ContactForm/locales/vi.json +75 -0
- package/src/Contacts/AddModal/ContactForm/styles.styl +2 -0
- package/src/Contacts/AddModal/CustomLabelDialog/index.jsx +109 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/en.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/fr.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/ru.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/vi.json +15 -0
- package/src/Contacts/AddModal/Readme.md +55 -0
- package/src/Contacts/AddModal/index.jsx +86 -0
- package/src/Contacts/AddModal/locales/en.json +13 -0
- package/src/Contacts/AddModal/locales/fr.json +13 -0
- package/src/Contacts/AddModal/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/locales/ru.json +13 -0
- package/src/Contacts/AddModal/locales/vi.json +13 -0
- package/src/Contacts/AddModal/mocks.js +299 -0
- package/src/Contacts/AddModal/types.js +102 -0
- package/src/Contacts/GroupsSelect/GroupCreation.jsx +96 -0
- package/src/Contacts/GroupsSelect/GroupsSelect.jsx +159 -0
- package/src/Contacts/GroupsSelect/GroupsSelect.spec.jsx +249 -0
- package/src/Contacts/GroupsSelect/GroupsSelectProvider.jsx +40 -0
- package/src/Contacts/GroupsSelect/Readme.md +1 -0
- package/src/Contacts/GroupsSelect/SelectBox/Control.jsx +37 -0
- package/src/Contacts/GroupsSelect/SelectBox/EditGroupName.jsx +52 -0
- package/src/Contacts/GroupsSelect/SelectBox/Menu.jsx +27 -0
- package/src/Contacts/GroupsSelect/SelectBox/Option.jsx +71 -0
- package/src/Contacts/GroupsSelect/SelectBox/SelectContainer.jsx +15 -0
- package/src/Contacts/GroupsSelect/SelectBox/styles.styl +2 -0
- package/src/Contacts/GroupsSelect/helpers.js +25 -0
- package/src/Contacts/GroupsSelect/locales/en.json +21 -0
- package/src/Contacts/GroupsSelect/locales/fr.json +21 -0
- package/src/Contacts/GroupsSelect/locales/index.jsx +11 -0
- package/src/Contacts/GroupsSelect/locales/ru.json +21 -0
- package/src/Contacts/GroupsSelect/locales/vi.json +21 -0
- package/src/Contacts/GroupsSelect/styles.styl +48 -0
- package/src/Contacts/GroupsSelect/useGroupSelect.jsx +89 -0
- package/src/Contacts/Header/GroupsSelection.jsx +75 -0
- package/src/Contacts/Header/ImportDropdown.jsx +80 -0
- package/src/Contacts/Header/Readme.md +38 -0
- package/src/Contacts/Header/SearchInput.jsx +19 -0
- package/src/Contacts/Header/index.jsx +80 -0
- package/src/Contacts/Header/locales/en.json +15 -0
- package/src/Contacts/Header/locales/fr.json +15 -0
- package/src/Contacts/Header/locales/index.jsx +11 -0
- package/src/Contacts/Header/locales/ru.json +15 -0
- package/src/Contacts/Header/locales/vi.json +15 -0
- package/src/Contacts/Readme.md +1 -0
- package/src/ContactsList/ContactCell.jsx +23 -0
- package/src/ContactsList/ContactRow.jsx +46 -0
- package/src/ContactsList/ContactRow.spec.js +75 -0
- package/src/ContactsList/Contacts/ContactCozy.jsx +23 -0
- package/src/ContactsList/Contacts/ContactEmail.jsx +23 -0
- package/src/ContactsList/Contacts/ContactIdentity.jsx +57 -0
- package/src/ContactsList/Contacts/ContactName.jsx +43 -0
- package/src/ContactsList/Contacts/ContactPhone.jsx +24 -0
- package/src/ContactsList/ContactsList.jsx +52 -0
- package/src/ContactsList/Readme.md +47 -0
- package/src/ContactsList/_mockContacts.json +2494 -0
- package/src/ContactsList/helpers.js +132 -0
- package/src/ContactsList/helpers.spec.js +150 -0
- package/src/ContactsList/index.js +3 -0
- package/src/ContactsList/locales/en.json +5 -0
- package/src/ContactsList/locales/fr.json +5 -0
- package/src/ContactsList/locales/ru.json +5 -0
- package/src/ContactsList/locales/vi.json +5 -0
- package/src/ContactsList/locales/withContactsListLocales.jsx +15 -0
- package/src/ContactsList/styles.styl +35 -0
- package/src/ContactsListModal/AddContact/AddContactActions.jsx +16 -0
- package/src/ContactsListModal/AddContact/AddContactContent.jsx +60 -0
- package/src/ContactsListModal/AddContact/AddContactDialog.jsx +38 -0
- package/src/ContactsListModal/AddContact/AddContactTitle.jsx +9 -0
- package/src/ContactsListModal/AddContact/helpers.js +18 -0
- package/src/ContactsListModal/AddContact/helpers.spec.js +74 -0
- package/src/ContactsListModal/AddContact/styles.styl +2 -0
- package/src/ContactsListModal/ContactsListContent.jsx +74 -0
- package/src/ContactsListModal/ContactsListModal.jsx +143 -0
- package/src/ContactsListModal/ContactsListModalWithQuery.jsx +27 -0
- package/src/ContactsListModal/EmptyMessage.jsx +18 -0
- package/src/ContactsListModal/MobileHeader.jsx +50 -0
- package/src/ContactsListModal/Readme.md +45 -0
- package/src/ContactsListModal/index.jsx +28 -0
- package/src/ContactsListModal/locales/en.json +11 -0
- package/src/ContactsListModal/locales/fr.json +11 -0
- package/src/ContactsListModal/locales/ru.json +11 -0
- package/src/ContactsListModal/locales/vi.json +11 -0
- package/src/ContactsListModal/mockClient.jsx +47 -0
- package/src/ContactsListModal/queries.js +12 -0
- package/src/ContactsListModal/styles.styl +12 -0
- package/src/ContactsListModal/withContactsListLocales.jsx +11 -0
- package/src/Dialogs/AuthenticationDialogs/index.jsx +115 -0
- package/src/Field/Readme.md +357 -0
- package/src/Field/index.jsx +317 -0
- package/src/Field/index.spec.js +59 -0
- package/src/Field/styles.styl +41 -0
- package/src/FileImageLoader/Readme.md +112 -0
- package/src/FileImageLoader/checkImageSource.js +29 -0
- package/src/FileImageLoader/index.jsx +186 -0
- package/src/FileImageLoader/index.spec.jsx +176 -0
- package/src/FilePicker/FilePickerBody.jsx +111 -0
- package/src/FilePicker/FilePickerBodyItem.jsx +126 -0
- package/src/FilePicker/FilePickerBodyItem.spec.jsx +164 -0
- package/src/FilePicker/FilePickerBreadcrumb.jsx +55 -0
- package/src/FilePicker/FilePickerFooter.jsx +42 -0
- package/src/FilePicker/FilePickerFooter.spec.jsx +41 -0
- package/src/FilePicker/FilePickerHeader.jsx +89 -0
- package/src/FilePicker/Readme.md +50 -0
- package/src/FilePicker/docs/DemoProvider.jsx +273 -0
- package/src/FilePicker/helpers.js +46 -0
- package/src/FilePicker/helpers.spec.js +84 -0
- package/src/FilePicker/index.jsx +94 -0
- package/src/FilePicker/locales/en.json +8 -0
- package/src/FilePicker/locales/fr.json +8 -0
- package/src/FilePicker/locales/ru.json +8 -0
- package/src/FilePicker/locales/vi.json +8 -0
- package/src/FilePicker/queries.js +37 -0
- package/src/FilePicker/styles.styl +18 -0
- package/src/Intent/IntentDialogOpener/Readme.md +25 -0
- package/src/Intent/IntentDialogOpener/index.jsx +110 -0
- package/src/Intent/IntentIframe/Readme.md +80 -0
- package/src/Intent/IntentIframe/index.jsx +112 -0
- package/src/Intent/IntentIframe/styles.styl +21 -0
- package/src/ListItem/ExpandedAttributes/ExpandedAttribute.jsx +40 -0
- package/src/ListItem/ExpandedAttributes/helpers.js +214 -0
- package/src/ListItem/ExpandedAttributes/helpers.spec.js +175 -0
- package/src/ListItem/ExpandedAttributes/index.jsx +62 -0
- package/src/ListItem/ListItemBase/Renaming/RenameDialog.jsx +38 -0
- package/src/ListItem/ListItemBase/Renaming/RenameInput.jsx +134 -0
- package/src/ListItem/ListItemBase/Renaming/helpers.js +35 -0
- package/src/ListItem/ListItemBase/index.jsx +116 -0
- package/src/ListItem/ListItemByDoc/index.jsx +103 -0
- package/src/ListItem/ListItemContact/helpers.js +28 -0
- package/src/ListItem/ListItemContact/helpers.spec.js +41 -0
- package/src/ListItem/ListItemContact/index.jsx +68 -0
- package/src/ListItem/ListItemContact/useActions.jsx +22 -0
- package/src/ListItem/ListItemFile/ExpirationAnnotation.jsx +39 -0
- package/src/ListItem/ListItemFile/ItemIcon.jsx +49 -0
- package/src/ListItem/ListItemFile/PrimaryText.jsx +38 -0
- package/src/ListItem/ListItemFile/SecondaryText.jsx +36 -0
- package/src/ListItem/ListItemFile/index.jsx +75 -0
- package/src/ListItem/Readme.md +211 -0
- package/src/ListItem/hoc/withListItemLocales.jsx +15 -0
- package/src/ListItem/locales/en.json +75 -0
- package/src/ListItem/locales/fr.json +75 -0
- package/src/ListItem/locales/ru.json +75 -0
- package/src/ListItem/locales/vi.json +75 -0
- package/src/Paywall/MaxAccountsByKonnectorPaywall.jsx +32 -0
- package/src/Paywall/MaxAccountsPaywall.jsx +27 -0
- package/src/Paywall/MaxDaysToCapturePaywall.jsx +27 -0
- package/src/Paywall/MaxPapersPaywall.jsx +29 -0
- package/src/Paywall/OnlyOfficePaywall.jsx +24 -0
- package/src/Paywall/PasswordSharingPaywall.jsx +20 -0
- package/src/Paywall/Paywall.jsx +130 -0
- package/src/Paywall/Paywall.spec.jsx +228 -0
- package/src/Paywall/QuotaPaywall.jsx +18 -0
- package/src/Paywall/Readme.md +139 -0
- package/src/Paywall/helpers.js +22 -0
- package/src/Paywall/howto.md +28 -0
- package/src/Paywall/index.jsx +7 -0
- package/src/Paywall/locales/en.json +95 -0
- package/src/Paywall/locales/fr.json +95 -0
- package/src/Paywall/locales/ru.json +95 -0
- package/src/Paywall/locales/vi.json +95 -0
- package/src/Paywall/locales/withPaywallLocales.jsx +15 -0
- package/src/Qualification/QualificationGrid/Readme.md +26 -0
- package/src/Qualification/QualificationGrid/helpers.js +4 -0
- package/src/Qualification/QualificationGrid/index.jsx +91 -0
- package/src/Qualification/QualificationGrid/locales/en.json +15 -0
- package/src/Qualification/QualificationGrid/locales/fr.json +15 -0
- package/src/Qualification/QualificationGrid/locales/ru.json +15 -0
- package/src/Qualification/QualificationGrid/locales/vi.json +15 -0
- package/src/Qualification/QualificationGrid/locales/withLocales.jsx +15 -0
- package/src/Qualification/QualificationIcon/Readme.md +14 -0
- package/src/Qualification/QualificationIcon/index.jsx +104 -0
- package/src/Qualification/QualificationItem/Readme.md +8 -0
- package/src/Qualification/QualificationItem/index.jsx +64 -0
- package/src/Qualification/QualificationModal/Readme.md +28 -0
- package/src/Qualification/QualificationModal/helpers.js +63 -0
- package/src/Qualification/QualificationModal/helpers.spec.js +61 -0
- package/src/Qualification/QualificationModal/index.jsx +71 -0
- package/src/Qualification/QualificationModal/locales/en.json +6 -0
- package/src/Qualification/QualificationModal/locales/fr.json +6 -0
- package/src/Qualification/QualificationModal/locales/index.jsx +11 -0
- package/src/Qualification/QualificationModal/locales/ru.json +6 -0
- package/src/Qualification/QualificationModal/locales/vi.json +6 -0
- package/src/ShortcutTile/index.tsx +60 -0
- package/src/SquareAppIcon/Readme.md +185 -0
- package/src/SquareAppIcon/SquareAppIcon.spec.js +86 -0
- package/src/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap +474 -0
- package/src/SquareAppIcon/constants.json +6 -0
- package/src/SquareAppIcon/index.jsx +289 -0
- package/src/SquareAppIcon/styles.styl +141 -0
- package/src/Storage/Readme.md +45 -0
- package/src/Storage/StorageButton.jsx +34 -0
- package/src/Storage/StorageProgress.jsx +52 -0
- package/src/Storage/index.jsx +41 -0
- package/src/Storage/locales/en.json +7 -0
- package/src/Storage/locales/fr.json +7 -0
- package/src/Storage/locales/index.jsx +11 -0
- package/src/Storage/locales/ru.json +7 -0
- package/src/Storage/locales/vi.json +7 -0
- package/src/UploadQueue/FileUploadProgress.jsx +50 -0
- package/src/UploadQueue/Item.jsx +99 -0
- package/src/UploadQueue/Pending.jsx +12 -0
- package/src/UploadQueue/Readme.md +95 -0
- package/src/UploadQueue/RemainingTime.jsx +27 -0
- package/src/UploadQueue/helpers.js +3 -0
- package/src/UploadQueue/index.jsx +161 -0
- package/src/UploadQueue/index.spec.jsx +163 -0
- package/src/UploadQueue/locales/en.json +10 -0
- package/src/UploadQueue/locales/es.json +10 -0
- package/src/UploadQueue/locales/fr.json +10 -0
- package/src/UploadQueue/locales/ru.json +10 -0
- package/src/UploadQueue/locales/vi.json +10 -0
- package/src/UploadQueue/styles.styl +155 -0
- package/src/UploadQueue/useStatusIcon.js +32 -0
- package/src/hooks/useClientErrors.jsx +140 -0
- package/src/hooks/useClientErrors.spec.jsx +94 -0
- package/src/proptypes.js +20 -0
- package/src/providers/CozyTheme/CozyThemeWithQuery.jsx +25 -0
- package/src/providers/CozyTheme/Readme.md +88 -0
- package/src/providers/CozyTheme/index.jsx +35 -0
- package/src/providers/CozyTheme/queries.js +14 -0
- package/src/providers/DemoProvider.jsx +30 -0
- package/src/providers/Intent/index.jsx +83 -0
- package/src/types.d.ts +4 -0
- package/test/I18n.js +13 -0
- package/test/fileMock.js +3 -0
- package/test/jestsetup.js +1 -0
- package/tsconfig-build.json +16 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Sections = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
+
|
|
16
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
+
|
|
18
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
19
|
+
|
|
20
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
21
|
+
|
|
22
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
23
|
+
|
|
24
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
25
|
+
|
|
26
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
|
+
|
|
28
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
|
+
|
|
30
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
31
|
+
|
|
32
|
+
var _Typography = _interopRequireDefault(require("cozy-ui/transpiled/react/Typography"));
|
|
33
|
+
|
|
34
|
+
var _Breakpoints = require("cozy-ui/transpiled/react/providers/Breakpoints");
|
|
35
|
+
|
|
36
|
+
var _I18n = require("cozy-ui/transpiled/react/providers/I18n");
|
|
37
|
+
|
|
38
|
+
var _withOnlyLocales = _interopRequireDefault(require("cozy-ui/transpiled/react/providers/I18n/withOnlyLocales"));
|
|
39
|
+
|
|
40
|
+
var catUtils = _interopRequireWildcard(require("./categories"));
|
|
41
|
+
|
|
42
|
+
var _AppsSection = _interopRequireDefault(require("./components/AppsSection"));
|
|
43
|
+
|
|
44
|
+
var _DropdownFilter = _interopRequireDefault(require("./components/DropdownFilter"));
|
|
45
|
+
|
|
46
|
+
var _constants = require("./constants");
|
|
47
|
+
|
|
48
|
+
var _generateI18nConfig = require("./generateI18nConfig");
|
|
49
|
+
|
|
50
|
+
var _helpers = require("./helpers");
|
|
51
|
+
|
|
52
|
+
var searchUtils = _interopRequireWildcard(require("./search"));
|
|
53
|
+
|
|
54
|
+
var _excluded = ["config"];
|
|
55
|
+
|
|
56
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
57
|
+
|
|
58
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
59
|
+
|
|
60
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
61
|
+
|
|
62
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
|
+
|
|
64
|
+
var styles = {
|
|
65
|
+
"Sections__section": "Sections__Sections__section___19NTf"
|
|
66
|
+
};
|
|
67
|
+
var en = {
|
|
68
|
+
app_categories: {
|
|
69
|
+
all: "All categories",
|
|
70
|
+
banking: "Banking",
|
|
71
|
+
clouds: "Clouds and vaults",
|
|
72
|
+
cozy: "The essentials",
|
|
73
|
+
education: "Education",
|
|
74
|
+
energy: "Energy",
|
|
75
|
+
finance: "Employment and finance",
|
|
76
|
+
health: "Health",
|
|
77
|
+
host_provider: "Host",
|
|
78
|
+
insurance: "Insurance",
|
|
79
|
+
isp: "Mobile and Internet",
|
|
80
|
+
konnectors: "Services",
|
|
81
|
+
list_separator: ", ",
|
|
82
|
+
mes_infos: "MesInfos experimentation",
|
|
83
|
+
online_services: "Online services",
|
|
84
|
+
others: "Others",
|
|
85
|
+
partners: "Partners",
|
|
86
|
+
press: "Press",
|
|
87
|
+
productivity: "Productivity",
|
|
88
|
+
ptnb: "PTNB experimentation",
|
|
89
|
+
public_service: "Public services",
|
|
90
|
+
shopping: "Shopping",
|
|
91
|
+
social: "Social",
|
|
92
|
+
tech: "Tech",
|
|
93
|
+
telecom: "Telecom",
|
|
94
|
+
transport: "Transportation",
|
|
95
|
+
pro: "Work",
|
|
96
|
+
shortcuts: "Additional apps"
|
|
97
|
+
},
|
|
98
|
+
sections: {
|
|
99
|
+
applications: "Applications",
|
|
100
|
+
konnectors: "Services",
|
|
101
|
+
shortcuts: "Additional apps"
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var fr = {
|
|
105
|
+
app_categories: {
|
|
106
|
+
all: "Toutes les cat\xE9gories",
|
|
107
|
+
banking: "Banques",
|
|
108
|
+
clouds: "Clouds et coffres",
|
|
109
|
+
cozy: "Les essentielles",
|
|
110
|
+
education: "\xC9ducation",
|
|
111
|
+
energy: "Energie",
|
|
112
|
+
finance: "Emploi et finance",
|
|
113
|
+
health: "Sant\xE9",
|
|
114
|
+
host_provider: "H\xE9bergeur",
|
|
115
|
+
insurance: "Assurance",
|
|
116
|
+
isp: "Mobile et Internet",
|
|
117
|
+
konnectors: "Services",
|
|
118
|
+
list_separator: ", ",
|
|
119
|
+
mes_infos: "Exp\xE9rimentation MesInfos",
|
|
120
|
+
online_services: "Services en ligne",
|
|
121
|
+
others: "Autres",
|
|
122
|
+
partners: "Partenaires",
|
|
123
|
+
press: "Presse",
|
|
124
|
+
productivity: "Productivit\xE9",
|
|
125
|
+
ptnb: "Exp\xE9rimentation Carnet du Logement",
|
|
126
|
+
public_service: "Services publics",
|
|
127
|
+
shopping: "Shopping",
|
|
128
|
+
social: "Social",
|
|
129
|
+
tech: "Tech",
|
|
130
|
+
telecom: "Mobile",
|
|
131
|
+
transport: "Voyage et transport",
|
|
132
|
+
pro: "Travail",
|
|
133
|
+
shortcuts: "App suppl\xE9mentaires"
|
|
134
|
+
},
|
|
135
|
+
sections: {
|
|
136
|
+
applications: "Applications",
|
|
137
|
+
konnectors: "Services",
|
|
138
|
+
shortcuts: "App suppl\xE9mentaires"
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
var ru = {
|
|
142
|
+
app_categories: {
|
|
143
|
+
all: "\u0412\u0441\u0435 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",
|
|
144
|
+
banking: "\u0411\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u043E\u0435 \u0434\u0435\u043B\u043E",
|
|
145
|
+
clouds: "\u041E\u0431\u043B\u0430\u043A\u0430 \u0438 \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430",
|
|
146
|
+
cozy: "\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435",
|
|
147
|
+
education: "\u041E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435",
|
|
148
|
+
energy: "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u043A\u0430",
|
|
149
|
+
finance: "\u0417\u0430\u043D\u044F\u0442\u043E\u0441\u0442\u044C \u0438 \u0444\u0438\u043D\u0430\u043D\u0441\u044B",
|
|
150
|
+
health: "\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",
|
|
151
|
+
host_provider: "\u0425\u043E\u0441\u0442\u0438\u043D\u0433",
|
|
152
|
+
insurance: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435",
|
|
153
|
+
isp: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C \u0438 \u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442",
|
|
154
|
+
konnectors: "\u0421\u0435\u0440\u0432\u0438\u0441\u044B",
|
|
155
|
+
list_separator: ", ",
|
|
156
|
+
mes_infos: "\u042D\u043A\u0441\u043F\u0435\u0440\u0438\u043C\u0435\u043D\u0442 MesInfos",
|
|
157
|
+
online_services: "\u041E\u043D\u043B\u0430\u0439\u043D-\u0441\u0435\u0440\u0432\u0438\u0441\u044B",
|
|
158
|
+
others: "\u041F\u0440\u043E\u0447\u0435\u0435",
|
|
159
|
+
partners: "\u041F\u0430\u0440\u0442\u043D\u0435\u0440\u044B",
|
|
160
|
+
press: "\u041F\u0440\u0435\u0441\u0441\u0430",
|
|
161
|
+
productivity: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C",
|
|
162
|
+
ptnb: "\u042D\u043A\u0441\u043F\u0435\u0440\u0438\u043C\u0435\u043D\u0442 PTNB",
|
|
163
|
+
public_service: "\u0413\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u0443\u0433\u0438",
|
|
164
|
+
shopping: "\u041F\u043E\u043A\u0443\u043F\u043A\u0438",
|
|
165
|
+
social: "\u0421\u043E\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0441\u0435\u0442\u0438",
|
|
166
|
+
tech: "\u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438",
|
|
167
|
+
telecom: "\u0422\u0435\u043B\u0435\u043A\u043E\u043C\u043C\u0443\u043D\u0438\u043A\u0430\u0446\u0438\u0438",
|
|
168
|
+
transport: "\u0422\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442",
|
|
169
|
+
pro: "\u0420\u0430\u0431\u043E\u0442\u0430",
|
|
170
|
+
shortcuts: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F"
|
|
171
|
+
},
|
|
172
|
+
sections: {
|
|
173
|
+
applications: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F",
|
|
174
|
+
konnectors: "\u0421\u0435\u0440\u0432\u0438\u0441\u044B",
|
|
175
|
+
shortcuts: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F"
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
var vi = {
|
|
179
|
+
app_categories: {
|
|
180
|
+
all: "T\u1EA5t c\u1EA3 danh m\u1EE5c",
|
|
181
|
+
banking: "Ng\xE2n h\xE0ng",
|
|
182
|
+
clouds: "\u0110\xE1m m\xE2y v\xE0 kho l\u01B0u tr\u1EEF",
|
|
183
|
+
cozy: "Thi\u1EBFt y\u1EBFu",
|
|
184
|
+
education: "Gi\xE1o d\u1EE5c",
|
|
185
|
+
energy: "N\u0103ng l\u01B0\u1EE3ng",
|
|
186
|
+
finance: "Vi\u1EC7c l\xE0m v\xE0 t\xE0i ch\xEDnh",
|
|
187
|
+
health: "S\u1EE9c kh\u1ECFe",
|
|
188
|
+
host_provider: "M\xE1y ch\u1EE7",
|
|
189
|
+
insurance: "B\u1EA3o hi\u1EC3m",
|
|
190
|
+
isp: "Di \u0111\u1ED9ng v\xE0 Internet",
|
|
191
|
+
konnectors: "D\u1ECBch v\u1EE5",
|
|
192
|
+
list_separator: ", ",
|
|
193
|
+
mes_infos: "Th\xED nghi\u1EC7m MesInfos",
|
|
194
|
+
online_services: "D\u1ECBch v\u1EE5 tr\u1EF1c tuy\u1EBFn",
|
|
195
|
+
others: "Kh\xE1c",
|
|
196
|
+
partners: "\u0110\u1ED1i t\xE1c",
|
|
197
|
+
press: "B\xE1o ch\xED",
|
|
198
|
+
productivity: "N\u0103ng su\u1EA5t",
|
|
199
|
+
ptnb: "Th\xED nghi\u1EC7m PTNB",
|
|
200
|
+
public_service: "D\u1ECBch v\u1EE5 c\xF4ng",
|
|
201
|
+
shopping: "Mua s\u1EAFm",
|
|
202
|
+
social: "M\u1EA1ng x\xE3 h\u1ED9i",
|
|
203
|
+
tech: "C\xF4ng ngh\u1EC7",
|
|
204
|
+
telecom: "Vi\u1EC5n th\xF4ng",
|
|
205
|
+
transport: "Giao th\xF4ng",
|
|
206
|
+
pro: "C\xF4ng vi\u1EC7c",
|
|
207
|
+
shortcuts: "\u1EE8ng d\u1EE5ng b\u1ED5 sung"
|
|
208
|
+
},
|
|
209
|
+
sections: {
|
|
210
|
+
applications: "\u1EE8ng d\u1EE5ng",
|
|
211
|
+
konnectors: "D\u1ECBch v\u1EE5",
|
|
212
|
+
shortcuts: "\u1EE8ng d\u1EE5ng b\u1ED5 sung"
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
var locales = {
|
|
216
|
+
en: en,
|
|
217
|
+
fr: fr,
|
|
218
|
+
ru: ru,
|
|
219
|
+
vi: vi
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
var SectionTitle = function SectionTitle(_ref) {
|
|
223
|
+
var children = _ref.children;
|
|
224
|
+
return /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
225
|
+
variant: "h3",
|
|
226
|
+
gutterBottom: true
|
|
227
|
+
}, children);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
var SectionSubtitle = function SectionSubtitle(_ref2) {
|
|
231
|
+
var children = _ref2.children;
|
|
232
|
+
return /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
233
|
+
variant: "h4",
|
|
234
|
+
className: "u-mv-1-half u-mb-1"
|
|
235
|
+
}, children);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
var SectionSubSubtitle = function SectionSubSubtitle(_ref3) {
|
|
239
|
+
var children = _ref3.children;
|
|
240
|
+
return /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
241
|
+
variant: "subtitle1",
|
|
242
|
+
color: "textSecondary",
|
|
243
|
+
gutterBottom: true
|
|
244
|
+
}, children);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
var Section = function Section(_ref4) {
|
|
248
|
+
var children = _ref4.children;
|
|
249
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
250
|
+
className: styles.Sections__section
|
|
251
|
+
}, children);
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Shows a list of apps grouped by categories.
|
|
255
|
+
*
|
|
256
|
+
* Can be
|
|
257
|
+
*
|
|
258
|
+
* - uncontrolled: it controls an internal search object to filter the list.
|
|
259
|
+
* - controlled: it is controlled by the `search` prop
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
var Sections = /*#__PURE__*/function (_Component) {
|
|
264
|
+
(0, _inherits2.default)(Sections, _Component);
|
|
265
|
+
|
|
266
|
+
var _super = _createSuper(Sections);
|
|
267
|
+
|
|
268
|
+
function Sections(props, context) {
|
|
269
|
+
var _this;
|
|
270
|
+
|
|
271
|
+
(0, _classCallCheck2.default)(this, Sections);
|
|
272
|
+
_this = _super.call(this, props, context);
|
|
273
|
+
_this.state = {
|
|
274
|
+
search: props.initialSearch || {}
|
|
275
|
+
};
|
|
276
|
+
_this.handleCategoryChange = _this.handleCategoryChange.bind((0, _assertThisInitialized2.default)(_this));
|
|
277
|
+
return _this;
|
|
278
|
+
} // Sets state.search from the option received from the DropdownFilter
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
(0, _createClass2.default)(Sections, [{
|
|
282
|
+
key: "handleCategoryChange",
|
|
283
|
+
value: function handleCategoryChange(categoryOption) {
|
|
284
|
+
var search = searchUtils.makeSearchFromOption(categoryOption);
|
|
285
|
+
|
|
286
|
+
if (!this.props.search) {
|
|
287
|
+
// the component is uncontrolled
|
|
288
|
+
this.setState({
|
|
289
|
+
search: search
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (typeof this.props.onSearchChange === 'function') {
|
|
294
|
+
this.props.onSearchChange(search);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
key: "render",
|
|
299
|
+
value: function render() {
|
|
300
|
+
var _this$props = this.props,
|
|
301
|
+
t = _this$props.t,
|
|
302
|
+
apps = _this$props.apps,
|
|
303
|
+
error = _this$props.error,
|
|
304
|
+
onAppClick = _this$props.onAppClick,
|
|
305
|
+
_this$props$breakpoin = _this$props.breakpoints,
|
|
306
|
+
breakpoints = _this$props$breakpoin === void 0 ? {} : _this$props$breakpoin,
|
|
307
|
+
hasNav = _this$props.hasNav,
|
|
308
|
+
IconComponent = _this$props.IconComponent,
|
|
309
|
+
showFilterDropdown = _this$props.showFilterDropdown,
|
|
310
|
+
showTitles = _this$props.showTitles,
|
|
311
|
+
showSubTitles = _this$props.showSubTitles,
|
|
312
|
+
showSubSubTitles = _this$props.showSubSubTitles,
|
|
313
|
+
displaySpecificMaintenanceStyle = _this$props.displaySpecificMaintenanceStyle,
|
|
314
|
+
componentsProps = _this$props.componentsProps;
|
|
315
|
+
var isMobile = breakpoints.isMobile,
|
|
316
|
+
isTablet = breakpoints.isTablet;
|
|
317
|
+
if (error) return /*#__PURE__*/_react.default.createElement("p", {
|
|
318
|
+
className: "u-error"
|
|
319
|
+
}, error.message); // Depending on whether the component is controlled or uncontrolled,
|
|
320
|
+
// search is taken from props or state
|
|
321
|
+
|
|
322
|
+
var search = this.props.search || this.state.search;
|
|
323
|
+
var searchMatcher = searchUtils.makeMatcherFromSearch(search);
|
|
324
|
+
var filteredApps = apps.filter(searchMatcher);
|
|
325
|
+
var konnectorGroups = catUtils.groupApps(filteredApps.filter(function (a) {
|
|
326
|
+
return a.type === _constants.APP_TYPE.KONNECTOR;
|
|
327
|
+
}));
|
|
328
|
+
var webAppGroups = catUtils.groupApps(filteredApps.filter(function (a) {
|
|
329
|
+
return a.type === _constants.APP_TYPE.WEBAPP;
|
|
330
|
+
}));
|
|
331
|
+
var shortcutsGroups = catUtils.groupApps(filteredApps.filter(function (a) {
|
|
332
|
+
return (0, _helpers.isShortcutFile)(a);
|
|
333
|
+
}));
|
|
334
|
+
var webAppsCategories = Object.keys(webAppGroups).map(function (cat) {
|
|
335
|
+
return catUtils.addLabel({
|
|
336
|
+
value: cat
|
|
337
|
+
}, t);
|
|
338
|
+
}).sort(catUtils.sorter);
|
|
339
|
+
var konnectorsCategories = Object.keys(konnectorGroups).map(function (cat) {
|
|
340
|
+
return catUtils.addLabel({
|
|
341
|
+
value: cat
|
|
342
|
+
}, t);
|
|
343
|
+
}).sort(catUtils.sorter);
|
|
344
|
+
var shortcutsCategories = Object.keys(shortcutsGroups).map(function (cat) {
|
|
345
|
+
return catUtils.addLabel({
|
|
346
|
+
value: cat
|
|
347
|
+
}, t);
|
|
348
|
+
}).sort(catUtils.sorter);
|
|
349
|
+
var dropdownDisplayed = hasNav && (isMobile || isTablet) && showFilterDropdown;
|
|
350
|
+
var rawSelectOptions = catUtils.generateOptionsFromApps(apps, {
|
|
351
|
+
includeAll: true
|
|
352
|
+
});
|
|
353
|
+
var selectOptions = rawSelectOptions.map(function (option) {
|
|
354
|
+
return catUtils.addLabel(option, t);
|
|
355
|
+
});
|
|
356
|
+
var optionMatcher = searchUtils.makeOptionMatcherFromSearch(search);
|
|
357
|
+
var defaultFilterValue = selectOptions.find(optionMatcher);
|
|
358
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
359
|
+
className: (0, _classnames.default)(styles.Sections, dropdownDisplayed && 'u-mt-half')
|
|
360
|
+
}, dropdownDisplayed && /*#__PURE__*/_react.default.createElement(_DropdownFilter.default, {
|
|
361
|
+
defaultValue: defaultFilterValue,
|
|
362
|
+
options: selectOptions,
|
|
363
|
+
onChange: this.handleCategoryChange
|
|
364
|
+
}), !isMobile && !!webAppsCategories.length && showTitles && /*#__PURE__*/_react.default.createElement(SectionTitle, null, t('sections.applications')), /*#__PURE__*/_react.default.createElement(Section, null, !!webAppsCategories.length && /*#__PURE__*/_react.default.createElement("div", null, webAppsCategories.map(function (cat) {
|
|
365
|
+
return /*#__PURE__*/_react.default.createElement(_AppsSection.default, {
|
|
366
|
+
key: cat.value,
|
|
367
|
+
appsList: webAppGroups[cat.value],
|
|
368
|
+
subtitle: /*#__PURE__*/_react.default.createElement(SectionSubtitle, null, cat.label),
|
|
369
|
+
onAppClick: onAppClick,
|
|
370
|
+
IconComponent: IconComponent,
|
|
371
|
+
displaySpecificMaintenanceStyle: displaySpecificMaintenanceStyle
|
|
372
|
+
});
|
|
373
|
+
})), !!shortcutsCategories.length && /*#__PURE__*/_react.default.createElement("div", null, showSubTitles && /*#__PURE__*/_react.default.createElement(SectionSubtitle, null, t('sections.shortcuts')), shortcutsCategories.map(function (cat) {
|
|
374
|
+
return /*#__PURE__*/_react.default.createElement(_AppsSection.default, (0, _extends2.default)({
|
|
375
|
+
key: cat.value
|
|
376
|
+
}, componentsProps === null || componentsProps === void 0 ? void 0 : componentsProps.appsSection, {
|
|
377
|
+
appsList: shortcutsGroups[cat.value],
|
|
378
|
+
subtitle: showSubSubTitles ? /*#__PURE__*/_react.default.createElement(SectionSubSubtitle, null, cat.label) : null,
|
|
379
|
+
IconComponent: IconComponent,
|
|
380
|
+
onAppClick: onAppClick,
|
|
381
|
+
displaySpecificMaintenanceStyle: displaySpecificMaintenanceStyle
|
|
382
|
+
}));
|
|
383
|
+
})), !!konnectorsCategories.length && /*#__PURE__*/_react.default.createElement("div", null, showSubTitles && /*#__PURE__*/_react.default.createElement(SectionSubtitle, null, t('sections.konnectors')), konnectorsCategories.map(function (cat) {
|
|
384
|
+
return /*#__PURE__*/_react.default.createElement(_AppsSection.default, (0, _extends2.default)({
|
|
385
|
+
key: cat.value
|
|
386
|
+
}, componentsProps === null || componentsProps === void 0 ? void 0 : componentsProps.appsSection, {
|
|
387
|
+
appsList: konnectorGroups[cat.value],
|
|
388
|
+
subtitle: showSubSubTitles ? /*#__PURE__*/_react.default.createElement(SectionSubSubtitle, null, cat.label) : null,
|
|
389
|
+
IconComponent: IconComponent,
|
|
390
|
+
onAppClick: onAppClick,
|
|
391
|
+
displaySpecificMaintenanceStyle: displaySpecificMaintenanceStyle
|
|
392
|
+
}));
|
|
393
|
+
}))));
|
|
394
|
+
}
|
|
395
|
+
}]);
|
|
396
|
+
return Sections;
|
|
397
|
+
}(_react.Component);
|
|
398
|
+
|
|
399
|
+
exports.Sections = Sections;
|
|
400
|
+
|
|
401
|
+
var SectionsWrapper = function SectionsWrapper(_ref5) {
|
|
402
|
+
var config = _ref5.config,
|
|
403
|
+
props = (0, _objectWithoutProperties2.default)(_ref5, _excluded);
|
|
404
|
+
var i18nConfig = (0, _generateI18nConfig.generateI18nConfig)(config === null || config === void 0 ? void 0 : config.categories);
|
|
405
|
+
(0, _I18n.useExtendI18n)(i18nConfig);
|
|
406
|
+
|
|
407
|
+
var _useI18n = (0, _I18n.useI18n)(),
|
|
408
|
+
t = _useI18n.t;
|
|
409
|
+
|
|
410
|
+
var breakpoints = (0, _Breakpoints.useBreakpoints)();
|
|
411
|
+
return /*#__PURE__*/_react.default.createElement(Sections, (0, _extends2.default)({}, props, {
|
|
412
|
+
breakpoints: breakpoints,
|
|
413
|
+
t: t
|
|
414
|
+
}));
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
Sections.propTypes = {
|
|
418
|
+
t: _propTypes.default.func.isRequired,
|
|
419
|
+
|
|
420
|
+
/** List of apps that will be displayed into categories */
|
|
421
|
+
apps: _propTypes.default.array.isRequired,
|
|
422
|
+
error: _propTypes.default.object,
|
|
423
|
+
config: _propTypes.default.object,
|
|
424
|
+
onAppClick: _propTypes.default.func.isRequired,
|
|
425
|
+
|
|
426
|
+
/** Whether to display the category selector */
|
|
427
|
+
hasNav: _propTypes.default.bool,
|
|
428
|
+
|
|
429
|
+
/** An initial search object. Changing it after mounting will do nothing. */
|
|
430
|
+
initialSearch: _propTypes.default.object,
|
|
431
|
+
displaySpecificMaintenanceStyle: _propTypes.default.bool
|
|
432
|
+
};
|
|
433
|
+
Sections.defaultProps = {
|
|
434
|
+
hasNav: true,
|
|
435
|
+
displaySpecificMaintenanceStyle: false,
|
|
436
|
+
|
|
437
|
+
/** Whether to show the top dropdown that is used to switch categories on mobile */
|
|
438
|
+
showFilterDropdown: true,
|
|
439
|
+
|
|
440
|
+
/** Whether to show titles (ex: Applications) */
|
|
441
|
+
showTitles: true,
|
|
442
|
+
|
|
443
|
+
/** Whether to show sub titles (ex: Application category) */
|
|
444
|
+
showSubTitles: true,
|
|
445
|
+
|
|
446
|
+
/** Whether to show sub sub titles (ex: Konnector category) */
|
|
447
|
+
showSubSubTitles: true,
|
|
448
|
+
|
|
449
|
+
/* Props passed to components with the same name */
|
|
450
|
+
componentsProps: _propTypes.default.shape({
|
|
451
|
+
/** Props spread to AppsSection component */
|
|
452
|
+
appsSection: _propTypes.default.shape({
|
|
453
|
+
/** Props spread to onClick method of AppTile component */
|
|
454
|
+
disableClick: _propTypes.default.func
|
|
455
|
+
})
|
|
456
|
+
})
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
var _default = (0, _withOnlyLocales.default)(locales)(SectionsWrapper);
|
|
460
|
+
|
|
461
|
+
exports.default = _default;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.apps = void 0;
|
|
7
|
+
// ALPHABETICALLY SORTED
|
|
8
|
+
var apps = [{
|
|
9
|
+
slug: 'collect',
|
|
10
|
+
name: 'Collect',
|
|
11
|
+
editor: 'Cozy',
|
|
12
|
+
label: 1,
|
|
13
|
+
name_prefix: 'Cozy',
|
|
14
|
+
categories: ['cozy'],
|
|
15
|
+
developer: {
|
|
16
|
+
name: 'Cozy'
|
|
17
|
+
},
|
|
18
|
+
type: 'webapp',
|
|
19
|
+
icon: '<svg></svg>',
|
|
20
|
+
permissions: {
|
|
21
|
+
mock: {
|
|
22
|
+
type: 'io.mock.doctype'
|
|
23
|
+
},
|
|
24
|
+
mock2: {
|
|
25
|
+
type: 'io.mock.doctype2'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
tags: ['konnector', 'collect', 'bills', 'providers', 'files'],
|
|
29
|
+
version: '3.0.0',
|
|
30
|
+
versions: {
|
|
31
|
+
stable: ['3.0.0'],
|
|
32
|
+
beta: ['3.0.0'],
|
|
33
|
+
dev: ['3.0.0']
|
|
34
|
+
},
|
|
35
|
+
uninstallable: false,
|
|
36
|
+
installed: true,
|
|
37
|
+
isInRegistry: true,
|
|
38
|
+
related: 'http://collect.cozy.mock/'
|
|
39
|
+
}, {
|
|
40
|
+
slug: 'devonly',
|
|
41
|
+
name: 'DevOnly',
|
|
42
|
+
editor: 'Cozy',
|
|
43
|
+
categories: ['others'],
|
|
44
|
+
developer: {
|
|
45
|
+
name: 'Cozy'
|
|
46
|
+
},
|
|
47
|
+
type: 'webapp',
|
|
48
|
+
locales: {
|
|
49
|
+
name: 'For Dev Only'
|
|
50
|
+
},
|
|
51
|
+
icon: '<svg></svg>',
|
|
52
|
+
versions: {
|
|
53
|
+
stable: [],
|
|
54
|
+
beta: [],
|
|
55
|
+
dev: ['1.0.0-betaojdkehy989ekhflldh']
|
|
56
|
+
},
|
|
57
|
+
uninstallable: true,
|
|
58
|
+
isInRegistry: true
|
|
59
|
+
}, {
|
|
60
|
+
slug: 'drive',
|
|
61
|
+
name: 'Drive',
|
|
62
|
+
editor: 'Cozy',
|
|
63
|
+
name_prefix: 'Cozy',
|
|
64
|
+
categories: ['cozy'],
|
|
65
|
+
developer: {
|
|
66
|
+
name: 'Cozy'
|
|
67
|
+
},
|
|
68
|
+
tags: ['search', 'files', 'folders'],
|
|
69
|
+
type: 'webapp',
|
|
70
|
+
icon: '<svg></svg>',
|
|
71
|
+
permissions: {
|
|
72
|
+
mock2: {
|
|
73
|
+
type: 'io.mock.doctype2'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
version: '3.0.0-beta89bnhj3993',
|
|
77
|
+
uninstallable: false,
|
|
78
|
+
installed: true,
|
|
79
|
+
maintenance: true,
|
|
80
|
+
related: 'http://drive.cozy.mock/'
|
|
81
|
+
}, {
|
|
82
|
+
slug: 'konnector-bouilligue',
|
|
83
|
+
name: 'Bouilligue',
|
|
84
|
+
icon: '<svg></svg>',
|
|
85
|
+
developer: {
|
|
86
|
+
name: 'Cozy'
|
|
87
|
+
},
|
|
88
|
+
type: 'konnector',
|
|
89
|
+
categories: ['isp', 'telecom'],
|
|
90
|
+
versions: {
|
|
91
|
+
stable: ['0.1.0'],
|
|
92
|
+
beta: ['0.1.0'],
|
|
93
|
+
dev: ['0.1.0']
|
|
94
|
+
},
|
|
95
|
+
uninstallable: true,
|
|
96
|
+
isInRegistry: true
|
|
97
|
+
}, {
|
|
98
|
+
slug: 'konnector-trinlane',
|
|
99
|
+
name: 'Trinlane (with a very long name)',
|
|
100
|
+
icon: '<svg></svg>',
|
|
101
|
+
developer: {
|
|
102
|
+
name: 'Author with long name'
|
|
103
|
+
},
|
|
104
|
+
type: 'konnector',
|
|
105
|
+
categories: ['transport'],
|
|
106
|
+
tags: ['transport', 'files', 'bills'],
|
|
107
|
+
permissions: {
|
|
108
|
+
mock: {
|
|
109
|
+
type: 'io.mock.doctype'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
version: '0.1.0',
|
|
113
|
+
versions: {
|
|
114
|
+
stable: ['0.1.0'],
|
|
115
|
+
beta: ['0.1.0'],
|
|
116
|
+
dev: ['0.1.0']
|
|
117
|
+
},
|
|
118
|
+
installed: true,
|
|
119
|
+
uninstallable: true,
|
|
120
|
+
isInRegistry: true
|
|
121
|
+
}, {
|
|
122
|
+
slug: 'konnector-trinlane2',
|
|
123
|
+
name: 'Trinlane (with a very long name and no footer)',
|
|
124
|
+
icon: '<svg></svg>',
|
|
125
|
+
developer: {
|
|
126
|
+
name: 'Author with long name'
|
|
127
|
+
},
|
|
128
|
+
type: 'konnector',
|
|
129
|
+
categories: ['transport'],
|
|
130
|
+
tags: ['transport', 'files', 'bills'],
|
|
131
|
+
permissions: {
|
|
132
|
+
mock: {
|
|
133
|
+
type: 'io.mock.doctype'
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
versions: {
|
|
137
|
+
stable: ['0.1.0'],
|
|
138
|
+
beta: ['0.1.0'],
|
|
139
|
+
dev: ['0.1.0']
|
|
140
|
+
},
|
|
141
|
+
uninstallable: true,
|
|
142
|
+
isInRegistry: true
|
|
143
|
+
}, {
|
|
144
|
+
slug: 'konnector-withlowername',
|
|
145
|
+
name: 'easyflight',
|
|
146
|
+
icon: '<svg></svg>',
|
|
147
|
+
developer: {
|
|
148
|
+
name: 'Author with long name'
|
|
149
|
+
},
|
|
150
|
+
type: 'konnector',
|
|
151
|
+
categories: ['transport'],
|
|
152
|
+
tags: ['transport', 'files', 'bills'],
|
|
153
|
+
permissions: {
|
|
154
|
+
mock: {
|
|
155
|
+
type: 'io.mock.doctype'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
version: '0.1.0',
|
|
159
|
+
versions: {
|
|
160
|
+
stable: ['0.1.0'],
|
|
161
|
+
beta: ['0.1.0'],
|
|
162
|
+
dev: ['0.1.0']
|
|
163
|
+
},
|
|
164
|
+
installed: true,
|
|
165
|
+
uninstallable: true,
|
|
166
|
+
isInRegistry: true
|
|
167
|
+
}, // don't add permissions to Photos for testing
|
|
168
|
+
{
|
|
169
|
+
slug: 'photos',
|
|
170
|
+
name: 'Photos',
|
|
171
|
+
editor: 'Cozy',
|
|
172
|
+
name_prefix: 'Cozy',
|
|
173
|
+
categories: ['cozy'],
|
|
174
|
+
developer: {
|
|
175
|
+
name: 'Cozy'
|
|
176
|
+
},
|
|
177
|
+
type: 'webapp',
|
|
178
|
+
icon: '<svg></svg>',
|
|
179
|
+
locales: {
|
|
180
|
+
en: {
|
|
181
|
+
long_description: 'A long description finally short'
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
versions: {
|
|
185
|
+
stable: ['3.0.0'],
|
|
186
|
+
beta: ['3.0.0'],
|
|
187
|
+
dev: ['3.0.0']
|
|
188
|
+
},
|
|
189
|
+
uninstallable: true,
|
|
190
|
+
isInRegistry: true,
|
|
191
|
+
maintenance: true
|
|
192
|
+
}, {
|
|
193
|
+
slug: 'tasky',
|
|
194
|
+
name: 'Tasky',
|
|
195
|
+
categories: ['partners'],
|
|
196
|
+
icon: '<svg></svg>',
|
|
197
|
+
type: 'webapp',
|
|
198
|
+
versions: {
|
|
199
|
+
stable: ['3.0.0', '1.0.0'],
|
|
200
|
+
beta: ['3.0.0', '1.0.0'],
|
|
201
|
+
dev: ['3.0.0', '1.0.0']
|
|
202
|
+
},
|
|
203
|
+
installed: true,
|
|
204
|
+
availableVersion: '3.0.0',
|
|
205
|
+
uninstallable: true,
|
|
206
|
+
isInRegistry: true
|
|
207
|
+
}];
|
|
208
|
+
exports.apps = apps;
|
|
209
|
+
var _default = apps;
|
|
210
|
+
exports.default = _default;
|