@pi-spi/app 2.1.0 → 2.2.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/lib/module/l10n/app_localizations.js.map +1 -1
- package/lib/module/l10n/app_localizations_en.js +32 -8
- package/lib/module/l10n/app_localizations_en.js.map +1 -1
- package/lib/module/l10n/app_localizations_fr.js +41 -14
- package/lib/module/l10n/app_localizations_fr.js.map +1 -1
- package/lib/module/l10n/app_localizations_pt.js +33 -7
- package/lib/module/l10n/app_localizations_pt.js.map +1 -1
- package/lib/module/modules/alias/domain/models/alias_revendication.js +4 -2
- package/lib/module/modules/alias/domain/models/alias_revendication.js.map +1 -1
- package/lib/module/modules/alias/infra/alias_output_local.js +11 -0
- package/lib/module/modules/alias/infra/alias_output_local.js.map +1 -1
- package/lib/module/modules/alias/infra/alias_output_repository.js +9 -8
- package/lib/module/modules/alias/infra/alias_output_repository.js.map +1 -1
- package/lib/module/modules/alias/presentation/pages/alias_delete_btn_widget.js +14 -18
- package/lib/module/modules/alias/presentation/pages/alias_delete_btn_widget.js.map +1 -1
- package/lib/module/modules/alias/presentation/pages/alias_page_claim.js +113 -60
- package/lib/module/modules/alias/presentation/pages/alias_page_claim.js.map +1 -1
- package/lib/module/modules/alias/presentation/pages/alias_page_create_mbno_form.js +151 -76
- package/lib/module/modules/alias/presentation/pages/alias_page_create_mbno_form.js.map +1 -1
- package/lib/module/modules/alias/presentation/pages/alias_page_create_mbno_timer.js +38 -24
- package/lib/module/modules/alias/presentation/pages/alias_page_create_mbno_timer.js.map +1 -1
- package/lib/module/modules/alias/presentation/pages/alias_page_create_options.js +28 -26
- package/lib/module/modules/alias/presentation/pages/alias_page_create_options.js.map +1 -1
- package/lib/module/modules/alias/presentation/pages/alias_page_otp.js +27 -110
- package/lib/module/modules/alias/presentation/pages/alias_page_otp.js.map +1 -1
- package/lib/module/modules/categorie/domain/services/categorie_service.js +2 -1
- package/lib/module/modules/categorie/domain/services/categorie_service.js.map +1 -1
- package/lib/module/modules/categorie/presentation/pages/categorie_edit_icon_btn.js +38 -42
- package/lib/module/modules/categorie/presentation/pages/categorie_edit_icon_btn.js.map +1 -1
- package/lib/module/modules/categorie/presentation/pages/categorie_form_pages.js +88 -80
- package/lib/module/modules/categorie/presentation/pages/categorie_form_pages.js.map +1 -1
- package/lib/module/modules/categorie/presentation/pages/categorie_icon.js +39 -0
- package/lib/module/modules/categorie/presentation/pages/categorie_icon.js.map +1 -1
- package/lib/module/modules/categorie/presentation/pages/categorie_liste_widget.js +55 -27
- package/lib/module/modules/categorie/presentation/pages/categorie_liste_widget.js.map +1 -1
- package/lib/module/modules/categorie/presentation/pages/categorie_select_page.js +21 -81
- package/lib/module/modules/categorie/presentation/pages/categorie_select_page.js.map +1 -1
- package/lib/module/modules/categorie/presentation/pages/categorie_select_widget.js +53 -16
- package/lib/module/modules/categorie/presentation/pages/categorie_select_widget.js.map +1 -1
- package/lib/module/modules/config/domain/models/config_keys.js +2 -0
- package/lib/module/modules/config/domain/models/config_keys.js.map +1 -1
- package/lib/module/modules/contacts/domain/contact_pi.js +3 -5
- package/lib/module/modules/contacts/domain/contact_pi.js.map +1 -1
- package/lib/module/modules/contacts/presentation/bloc/contact_bloc.js +30 -14
- package/lib/module/modules/contacts/presentation/bloc/contact_bloc.js.map +1 -1
- package/lib/module/modules/contacts/presentation/pages/contact_actions_sheet.js +106 -0
- package/lib/module/modules/contacts/presentation/pages/contact_actions_sheet.js.map +1 -0
- package/lib/module/modules/contacts/presentation/pages/contact_list_alias_widget.js +17 -7
- package/lib/module/modules/contacts/presentation/pages/contact_list_alias_widget.js.map +1 -1
- package/lib/module/modules/contacts/presentation/pages/contact_list_phone_widget.js +5 -4
- package/lib/module/modules/contacts/presentation/pages/contact_list_phone_widget.js.map +1 -1
- package/lib/module/modules/contacts/presentation/pages/contact_list_widget_item.js +76 -67
- package/lib/module/modules/contacts/presentation/pages/contact_list_widget_item.js.map +1 -1
- package/lib/module/modules/contacts/presentation/pages/contact_section.js +14 -4
- package/lib/module/modules/contacts/presentation/pages/contact_section.js.map +1 -1
- package/lib/module/modules/contacts/presentation/pages/contact_select_page.js +131 -110
- package/lib/module/modules/contacts/presentation/pages/contact_select_page.js.map +1 -1
- package/lib/module/modules/contacts/presentation/pages/create/contact_create_page.js +118 -59
- package/lib/module/modules/contacts/presentation/pages/create/contact_create_page.js.map +1 -1
- package/lib/module/modules/home/presentation/pages/home_page.js +3 -13
- package/lib/module/modules/home/presentation/pages/home_page.js.map +1 -1
- package/lib/module/modules/introduction/presentation/pages/introduction.js +17 -4
- package/lib/module/modules/introduction/presentation/pages/introduction.js.map +1 -1
- package/lib/module/modules/introduction/presentation/pages/introduction_footer.js +15 -53
- package/lib/module/modules/introduction/presentation/pages/introduction_footer.js.map +1 -1
- package/lib/module/modules/introduction/presentation/pages/introduction_page.js +22 -4
- package/lib/module/modules/introduction/presentation/pages/introduction_page.js.map +1 -1
- package/lib/module/modules/profile/presentation/pages/parametre/profile_parametre_page_notifications.js +2 -2
- package/lib/module/modules/profile/presentation/pages/parametre/profile_parametre_page_notifications.js.map +1 -1
- package/lib/module/modules/profile/presentation/pages/parametre/profile_parametre_page_notifications_son.js +1 -1
- package/lib/module/modules/profile/presentation/pages/parametre/profile_parametre_page_notifications_son.js.map +1 -1
- package/lib/module/modules/profile/presentation/pages/profile_page_avatar.js +2 -2
- package/lib/module/modules/profile/presentation/pages/profile_page_avatar.js.map +1 -1
- package/lib/module/modules/profile/presentation/pages/profile_page_contacts.js +14 -52
- package/lib/module/modules/profile/presentation/pages/profile_page_contacts.js.map +1 -1
- package/lib/module/modules/profile/presentation/pages/profile_page_contacts_actions.js +11 -1
- package/lib/module/modules/profile/presentation/pages/profile_page_contacts_actions.js.map +1 -1
- package/lib/module/modules/qrcode/presentation/pages/qrcode_alias_page_share.js +3 -3
- package/lib/module/modules/qrcode/presentation/pages/qrcode_alias_page_share.js.map +1 -1
- package/lib/module/modules/search/domain/models/fonctionnalite.js +51 -0
- package/lib/module/modules/search/domain/models/fonctionnalite.js.map +1 -1
- package/lib/module/modules/search/presentation/pages/search_btn_widget.js +136 -0
- package/lib/module/modules/search/presentation/pages/search_btn_widget.js.map +1 -0
- package/lib/module/modules/search/presentation/pages/search_fonctionnalites.js +21 -1
- package/lib/module/modules/search/presentation/pages/search_fonctionnalites.js.map +1 -1
- package/lib/module/modules/search/presentation/pages/search_page.js +266 -97
- package/lib/module/modules/search/presentation/pages/search_page.js.map +1 -1
- package/lib/module/modules/subscription/presentation/pages/subscription_create/subscription_create_page.js +5 -3
- package/lib/module/modules/subscription/presentation/pages/subscription_create/subscription_create_page.js.map +1 -1
- package/lib/module/modules/subscription/presentation/pages/subscription_create/subscription_create_page_list.js +5 -6
- package/lib/module/modules/subscription/presentation/pages/subscription_create/subscription_create_page_list.js.map +1 -1
- package/lib/module/modules/subscription/presentation/pages/subscription_menu_widget.js +3 -3
- package/lib/module/modules/subscription/presentation/pages/subscription_menu_widget.js.map +1 -1
- package/lib/module/modules/transactions/domain/models/transaction_send/transaction_send_command_othr.js +1 -2
- package/lib/module/modules/transactions/domain/models/transaction_send/transaction_send_command_othr.js.map +1 -1
- package/lib/module/modules/transactions/presentation/bloc/transaction_send/transaction_send_bloc.js +17 -0
- package/lib/module/modules/transactions/presentation/bloc/transaction_send/transaction_send_bloc.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_input_date.js +30 -23
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_input_date.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_input_pays.js +6 -6
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_input_pays.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_input_psp.js +6 -6
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_input_psp.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page.js +16 -4
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_alias.js +11 -9
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_alias.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_othr.js +9 -7
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_othr.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_schedule.js +8 -10
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_schedule.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_verification.js +127 -105
- package/lib/module/modules/transactions/presentation/pages/transaction_form/transaction_form_page_verification.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_search/transaction_search_page.js +9 -15
- package/lib/module/modules/transactions/presentation/pages/transaction_search/transaction_search_page.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_split/transaction_split_page_repartition.js +5 -11
- package/lib/module/modules/transactions/presentation/pages/transaction_split/transaction_split_page_repartition.js.map +1 -1
- package/lib/module/modules/transactions/presentation/pages/transaction_split/transaction_split_page_tx.js +9 -9
- package/lib/module/modules/transactions/presentation/pages/transaction_split/transaction_split_page_tx.js.map +1 -1
- package/lib/module/shared/widgets/alias_widget.js +33 -12
- package/lib/module/shared/widgets/alias_widget.js.map +1 -1
- package/lib/module/shared/widgets/auth_code_field.js +89 -0
- package/lib/module/shared/widgets/auth_code_field.js.map +1 -0
- package/lib/module/shared/widgets/calendar_date_picker.js +21 -16
- package/lib/module/shared/widgets/calendar_date_picker.js.map +1 -1
- package/lib/module/shared/widgets/confirm_action_sheet_widget.js +20 -1
- package/lib/module/shared/widgets/confirm_action_sheet_widget.js.map +1 -1
- package/lib/module/shared/widgets/emoji_select_widget.js +34 -39
- package/lib/module/shared/widgets/emoji_select_widget.js.map +1 -1
- package/lib/module/shared/widgets/frequence_input_widget.js +18 -29
- package/lib/module/shared/widgets/frequence_input_widget.js.map +1 -1
- package/lib/module/shared/widgets/frequence_select_widget.js +233 -140
- package/lib/module/shared/widgets/frequence_select_widget.js.map +1 -1
- package/lib/module/shared/widgets/image_select_widget.js +4 -4
- package/lib/module/shared/widgets/image_select_widget.js.map +1 -1
- package/lib/module/shared/widgets/input_text.js +1 -1
- package/lib/module/shared/widgets/input_text.js.map +1 -1
- package/lib/module/shared/widgets/notification_dialog.js +3 -2
- package/lib/module/shared/widgets/notification_dialog.js.map +1 -1
- package/lib/module/shared/widgets/pin_entete.js +114 -0
- package/lib/module/shared/widgets/pin_entete.js.map +1 -0
- package/lib/module/shared/widgets/select_date_widget.js +74 -59
- package/lib/module/shared/widgets/select_date_widget.js.map +1 -1
- package/lib/module/shared/widgets/selection.js +21 -16
- package/lib/module/shared/widgets/selection.js.map +1 -1
- package/lib/typescript/src/l10n/app_localizations.d.ts +59 -11
- package/lib/typescript/src/l10n/app_localizations.d.ts.map +1 -1
- package/lib/typescript/src/l10n/app_localizations_en.d.ts.map +1 -1
- package/lib/typescript/src/l10n/app_localizations_fr.d.ts.map +1 -1
- package/lib/typescript/src/l10n/app_localizations_pt.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/domain/models/alias_revendication.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/infra/alias_output_local.d.ts +5 -0
- package/lib/typescript/src/modules/alias/infra/alias_output_local.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/infra/alias_output_repository.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_delete_btn_widget.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_claim.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_create_mbno_form.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_create_mbno_timer.d.ts +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_create_mbno_timer.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_create_options.d.ts +4 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_create_options.d.ts.map +1 -1
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_otp.d.ts +9 -5
- package/lib/typescript/src/modules/alias/presentation/pages/alias_page_otp.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/domain/services/categorie_service.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_edit_icon_btn.d.ts +3 -0
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_edit_icon_btn.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_form_pages.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_icon.d.ts +9 -0
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_icon.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_liste_widget.d.ts +7 -2
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_liste_widget.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_select_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_select_widget.d.ts +10 -2
- package/lib/typescript/src/modules/categorie/presentation/pages/categorie_select_widget.d.ts.map +1 -1
- package/lib/typescript/src/modules/config/domain/models/config_keys.d.ts +3 -1
- package/lib/typescript/src/modules/config/domain/models/config_keys.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/domain/contact_pi.d.ts +0 -2
- package/lib/typescript/src/modules/contacts/domain/contact_pi.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/bloc/contact_bloc.d.ts +7 -0
- package/lib/typescript/src/modules/contacts/presentation/bloc/contact_bloc.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_actions_sheet.d.ts +14 -0
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_actions_sheet.d.ts.map +1 -0
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_list_alias_widget.d.ts +4 -2
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_list_alias_widget.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_list_phone_widget.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_list_widget_item.d.ts +6 -4
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_list_widget_item.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_section.d.ts +3 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_section.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/contact_select_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/contacts/presentation/pages/create/contact_create_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/home/presentation/pages/home_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/introduction/presentation/pages/introduction.d.ts.map +1 -1
- package/lib/typescript/src/modules/introduction/presentation/pages/introduction_footer.d.ts +5 -1
- package/lib/typescript/src/modules/introduction/presentation/pages/introduction_footer.d.ts.map +1 -1
- package/lib/typescript/src/modules/introduction/presentation/pages/introduction_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/profile/presentation/pages/profile_page_contacts.d.ts.map +1 -1
- package/lib/typescript/src/modules/profile/presentation/pages/profile_page_contacts_actions.d.ts.map +1 -1
- package/lib/typescript/src/modules/search/domain/models/fonctionnalite.d.ts +20 -0
- package/lib/typescript/src/modules/search/domain/models/fonctionnalite.d.ts.map +1 -1
- package/lib/typescript/src/modules/search/presentation/pages/search_btn_widget.d.ts +11 -0
- package/lib/typescript/src/modules/search/presentation/pages/search_btn_widget.d.ts.map +1 -0
- package/lib/typescript/src/modules/search/presentation/pages/search_fonctionnalites.d.ts.map +1 -1
- package/lib/typescript/src/modules/search/presentation/pages/search_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/subscription/presentation/pages/subscription_create/subscription_create_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/domain/models/transaction_send/transaction_send_command_othr.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/bloc/transaction_send/transaction_send_bloc.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_input_date.d.ts +4 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_input_date.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_alias.d.ts +4 -0
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_alias.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_othr.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_schedule.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_verification.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_search/transaction_search_page.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_split/transaction_split_page_repartition.d.ts.map +1 -1
- package/lib/typescript/src/modules/transactions/presentation/pages/transaction_split/transaction_split_page_tx.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/alias_widget.d.ts +2 -2
- package/lib/typescript/src/shared/widgets/alias_widget.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/auth_code_field.d.ts +17 -0
- package/lib/typescript/src/shared/widgets/auth_code_field.d.ts.map +1 -0
- package/lib/typescript/src/shared/widgets/calendar_date_picker.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/confirm_action_sheet_widget.d.ts +12 -1
- package/lib/typescript/src/shared/widgets/confirm_action_sheet_widget.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/emoji_select_widget.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/frequence_input_widget.d.ts +6 -3
- package/lib/typescript/src/shared/widgets/frequence_input_widget.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/frequence_select_widget.d.ts +23 -5
- package/lib/typescript/src/shared/widgets/frequence_select_widget.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/image_select_widget.d.ts +1 -1
- package/lib/typescript/src/shared/widgets/input_text.d.ts +2 -0
- package/lib/typescript/src/shared/widgets/input_text.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/notification_dialog.d.ts +3 -1
- package/lib/typescript/src/shared/widgets/notification_dialog.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/pin_entete.d.ts +15 -0
- package/lib/typescript/src/shared/widgets/pin_entete.d.ts.map +1 -0
- package/lib/typescript/src/shared/widgets/select_date_widget.d.ts +4 -0
- package/lib/typescript/src/shared/widgets/select_date_widget.d.ts.map +1 -1
- package/lib/typescript/src/shared/widgets/selection.d.ts +11 -7
- package/lib/typescript/src/shared/widgets/selection.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/l10n/app_localizations.ts +59 -11
- package/src/l10n/app_localizations_en.ts +32 -8
- package/src/l10n/app_localizations_fr.ts +38 -14
- package/src/l10n/app_localizations_pt.ts +31 -7
- package/src/modules/alias/domain/models/alias_revendication.ts +4 -2
- package/src/modules/alias/infra/alias_output_local.ts +11 -0
- package/src/modules/alias/infra/alias_output_repository.ts +9 -8
- package/src/modules/alias/presentation/pages/alias_delete_btn_widget.tsx +17 -24
- package/src/modules/alias/presentation/pages/alias_page_claim.tsx +76 -48
- package/src/modules/alias/presentation/pages/alias_page_create_mbno_form.tsx +113 -65
- package/src/modules/alias/presentation/pages/alias_page_create_mbno_timer.tsx +34 -25
- package/src/modules/alias/presentation/pages/alias_page_create_options.tsx +29 -36
- package/src/modules/alias/presentation/pages/alias_page_otp.tsx +24 -88
- package/src/modules/categorie/domain/services/categorie_service.ts +2 -1
- package/src/modules/categorie/presentation/pages/categorie_edit_icon_btn.tsx +38 -28
- package/src/modules/categorie/presentation/pages/categorie_form_pages.tsx +71 -41
- package/src/modules/categorie/presentation/pages/categorie_icon.tsx +26 -0
- package/src/modules/categorie/presentation/pages/categorie_liste_widget.tsx +45 -24
- package/src/modules/categorie/presentation/pages/categorie_select_page.tsx +10 -46
- package/src/modules/categorie/presentation/pages/categorie_select_widget.tsx +54 -13
- package/src/modules/config/domain/models/config_keys.ts +3 -0
- package/src/modules/contacts/domain/contact_pi.ts +3 -6
- package/src/modules/contacts/presentation/bloc/contact_bloc.ts +37 -20
- package/src/modules/contacts/presentation/pages/contact_actions_sheet.tsx +69 -0
- package/src/modules/contacts/presentation/pages/contact_list_alias_widget.tsx +26 -4
- package/src/modules/contacts/presentation/pages/contact_list_phone_widget.tsx +3 -0
- package/src/modules/contacts/presentation/pages/contact_list_widget_item.tsx +54 -65
- package/src/modules/contacts/presentation/pages/contact_section.tsx +13 -3
- package/src/modules/contacts/presentation/pages/contact_select_page.tsx +106 -74
- package/src/modules/contacts/presentation/pages/create/contact_create_page.tsx +86 -47
- package/src/modules/home/presentation/pages/home_page.tsx +2 -9
- package/src/modules/introduction/presentation/pages/introduction.tsx +8 -0
- package/src/modules/introduction/presentation/pages/introduction_footer.tsx +16 -36
- package/src/modules/introduction/presentation/pages/introduction_page.tsx +17 -5
- package/src/modules/profile/presentation/pages/parametre/profile_parametre_page_notifications.tsx +2 -2
- package/src/modules/profile/presentation/pages/parametre/profile_parametre_page_notifications_son.tsx +1 -1
- package/src/modules/profile/presentation/pages/profile_page_avatar.tsx +2 -2
- package/src/modules/profile/presentation/pages/profile_page_contacts.tsx +12 -19
- package/src/modules/profile/presentation/pages/profile_page_contacts_actions.tsx +10 -1
- package/src/modules/qrcode/presentation/pages/qrcode_alias_page_share.tsx +3 -3
- package/src/modules/search/domain/models/fonctionnalite.ts +56 -0
- package/src/modules/search/presentation/pages/search_btn_widget.tsx +91 -0
- package/src/modules/search/presentation/pages/search_fonctionnalites.ts +21 -1
- package/src/modules/search/presentation/pages/search_page.tsx +166 -57
- package/src/modules/subscription/presentation/pages/subscription_create/subscription_create_page.tsx +4 -2
- package/src/modules/subscription/presentation/pages/subscription_create/subscription_create_page_list.tsx +5 -5
- package/src/modules/subscription/presentation/pages/subscription_menu_widget.tsx +3 -3
- package/src/modules/transactions/domain/models/transaction_send/transaction_send_command_othr.ts +1 -2
- package/src/modules/transactions/presentation/bloc/transaction_send/transaction_send_bloc.ts +17 -0
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_input_date.tsx +26 -17
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_input_pays.tsx +9 -9
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_input_psp.tsx +9 -9
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page.tsx +20 -2
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_alias.tsx +6 -8
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_othr.tsx +5 -5
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_schedule.tsx +5 -7
- package/src/modules/transactions/presentation/pages/transaction_form/transaction_form_page_verification.tsx +112 -103
- package/src/modules/transactions/presentation/pages/transaction_search/transaction_search_page.tsx +6 -10
- package/src/modules/transactions/presentation/pages/transaction_split/transaction_split_page_repartition.tsx +3 -6
- package/src/modules/transactions/presentation/pages/transaction_split/transaction_split_page_tx.tsx +5 -5
- package/src/shared/widgets/alias_widget.tsx +45 -18
- package/src/shared/widgets/auth_code_field.tsx +89 -0
- package/src/shared/widgets/calendar_date_picker.tsx +12 -11
- package/src/shared/widgets/confirm_action_sheet_widget.tsx +19 -1
- package/src/shared/widgets/emoji_select_widget.tsx +31 -29
- package/src/shared/widgets/frequence_input_widget.tsx +18 -24
- package/src/shared/widgets/frequence_select_widget.tsx +237 -117
- package/src/shared/widgets/image_select_widget.tsx +4 -4
- package/src/shared/widgets/input_text.tsx +3 -0
- package/src/shared/widgets/notification_dialog.tsx +4 -1
- package/src/shared/widgets/pin_entete.tsx +74 -0
- package/src/shared/widgets/select_date_widget.tsx +66 -34
- package/src/shared/widgets/selection.tsx +23 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaterialIcons } from '@expo/vector-icons';
|
|
2
|
-
import { useReducer,
|
|
3
|
-
import { Pressable, ScrollView, StyleSheet, Text,
|
|
2
|
+
import { useReducer, type ComponentProps, type ReactNode } from 'react';
|
|
3
|
+
import { LayoutAnimation, Platform, Pressable, ScrollView, StyleSheet, Text, UIManager, View } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { AppRouter, useAppRouter } from '../../core/router';
|
|
6
6
|
import { Themer, useTheme } from '../../core/theme';
|
|
@@ -9,7 +9,16 @@ import { useAppLocalizations } from '../../l10n/localizations';
|
|
|
9
9
|
import { ElevatedButton } from '../material/buttons';
|
|
10
10
|
import { Card } from '../material/card';
|
|
11
11
|
import { Frequence, type FrequenceCommand } from '../models/frequence_command';
|
|
12
|
+
import { withAlpha } from '../utils/color';
|
|
12
13
|
import { NumberIncWidget } from './number_inc_widget';
|
|
14
|
+
import { SelectionLigne, SelectionOption, SelectionPastille, SelectionBoutons, SelectionSheet } from './selection';
|
|
15
|
+
|
|
16
|
+
// Animations de mise en page sur Android (déjà actives sur iOS)
|
|
17
|
+
if (Platform.OS === 'android' && UIManager.setLayoutAnimationEnabledExperimental) {
|
|
18
|
+
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type IconName = ComponentProps<typeof MaterialIcons>['name'];
|
|
13
22
|
|
|
14
23
|
export function frequenceText(freq: Frequence, traductions: AppLocalizations): string {
|
|
15
24
|
switch (freq) {
|
|
@@ -24,8 +33,59 @@ export function frequenceText(freq: Frequence, traductions: AppLocalizations): s
|
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
/**
|
|
28
|
-
export function
|
|
36
|
+
/** Icône de la pastille d'une fréquence (`null` : une seule fois). */
|
|
37
|
+
export function frequenceIcone(freq: Frequence | null | undefined): IconName {
|
|
38
|
+
switch (freq) {
|
|
39
|
+
case Frequence.quotidienne:
|
|
40
|
+
return 'today';
|
|
41
|
+
case Frequence.hebdomadaire:
|
|
42
|
+
return 'view-week';
|
|
43
|
+
case Frequence.mensuelle:
|
|
44
|
+
return 'calendar-month';
|
|
45
|
+
case Frequence.annuelle:
|
|
46
|
+
return 'event-repeat';
|
|
47
|
+
default:
|
|
48
|
+
return 'looks-one';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Unité de la fréquence, pour accorder « Tous les » / « Toutes les ». */
|
|
53
|
+
export function periodiciteUnite(freq: Frequence): string {
|
|
54
|
+
switch (freq) {
|
|
55
|
+
case Frequence.quotidienne:
|
|
56
|
+
return 'jour';
|
|
57
|
+
case Frequence.hebdomadaire:
|
|
58
|
+
return 'semaine';
|
|
59
|
+
case Frequence.mensuelle:
|
|
60
|
+
return 'mois';
|
|
61
|
+
default:
|
|
62
|
+
return 'annee';
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Unité de la périodicité (« jours », « semaine »...), au singulier si
|
|
68
|
+
* [periodicite] vaut 1. Sans personnalisation ([enableCustom] faux) :
|
|
69
|
+
* « Chaque jour », « Chaque semaine »...
|
|
70
|
+
*/
|
|
71
|
+
export function periodiciteText(
|
|
72
|
+
traductions: AppLocalizations,
|
|
73
|
+
freq: Frequence,
|
|
74
|
+
periodicite?: number | null,
|
|
75
|
+
enableCustom = true,
|
|
76
|
+
): string {
|
|
77
|
+
if (!enableCustom) {
|
|
78
|
+
switch (freq) {
|
|
79
|
+
case Frequence.quotidienne:
|
|
80
|
+
return traductions.transactionFormScheduleFrequenceJour;
|
|
81
|
+
case Frequence.hebdomadaire:
|
|
82
|
+
return traductions.transactionFormScheduleFrequenceSemaine;
|
|
83
|
+
case Frequence.mensuelle:
|
|
84
|
+
return traductions.transactionFormScheduleFrequenceMois;
|
|
85
|
+
default:
|
|
86
|
+
return traductions.transactionFormScheduleFrequenceAnnuee;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
29
89
|
const one = periodicite === 1;
|
|
30
90
|
switch (freq) {
|
|
31
91
|
case Frequence.quotidienne:
|
|
@@ -41,9 +101,33 @@ export function periodiciteText(traductions: AppLocalizations, freq: Frequence,
|
|
|
41
101
|
}
|
|
42
102
|
}
|
|
43
103
|
|
|
104
|
+
/** Fréquence calculée : « Tous les 2 jours », « Chaque semaine »... */
|
|
105
|
+
export function frequenceResume(
|
|
106
|
+
traductions: AppLocalizations,
|
|
107
|
+
freq: Frequence,
|
|
108
|
+
periodicite?: number | null,
|
|
109
|
+
enableCustom = true,
|
|
110
|
+
): string {
|
|
111
|
+
if (enableCustom && periodicite != null) {
|
|
112
|
+
return traductions.transactionFormScheduleFrequenceSelected(
|
|
113
|
+
String(periodicite),
|
|
114
|
+
periodiciteText(traductions, freq, periodicite),
|
|
115
|
+
periodiciteUnite(freq),
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
return periodiciteText(traductions, freq, periodicite, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** Anime le prochain changement de mise en page (apparitions, disparitions). */
|
|
122
|
+
function animer() {
|
|
123
|
+
LayoutAnimation.configureNext(LayoutAnimation.create(250, 'easeInEaseOut', 'opacity'));
|
|
124
|
+
}
|
|
125
|
+
|
|
44
126
|
/**
|
|
45
|
-
*
|
|
46
|
-
* « sur mesure » (tous les N jours/semaines/...).
|
|
127
|
+
* Feuille de choix de la fréquence : une seule fois, jour, semaine, mois,
|
|
128
|
+
* année, ou « sur mesure » (tous les N jours/semaines/...). Hors sur
|
|
129
|
+
* mesure, toucher une fréquence la choisit et ferme la feuille ; en sur
|
|
130
|
+
* mesure, « Valider » enregistre.
|
|
47
131
|
*/
|
|
48
132
|
export function FrequenceSelectWidget({
|
|
49
133
|
title,
|
|
@@ -52,6 +136,7 @@ export function FrequenceSelectWidget({
|
|
|
52
136
|
onChange,
|
|
53
137
|
hideOnce = false,
|
|
54
138
|
hideCustom = false,
|
|
139
|
+
enableCustom = true,
|
|
55
140
|
}: {
|
|
56
141
|
title: string;
|
|
57
142
|
command: FrequenceCommand;
|
|
@@ -59,19 +144,21 @@ export function FrequenceSelectWidget({
|
|
|
59
144
|
onChange: (value: FrequenceCommand) => void;
|
|
60
145
|
hideOnce?: boolean;
|
|
61
146
|
hideCustom?: boolean;
|
|
147
|
+
/** Si on autorise la fréquence sur mesure */
|
|
148
|
+
enableCustom?: boolean;
|
|
62
149
|
}) {
|
|
63
150
|
const traductions = useAppLocalizations();
|
|
64
151
|
const theme = useTheme();
|
|
65
152
|
const router = useAppRouter();
|
|
66
|
-
const { height } = useWindowDimensions();
|
|
67
153
|
const [, rebuild] = useReducer((x: number) => x + 1, 0);
|
|
68
|
-
// La périodicité à l'ouverture (affichage de « supprimer le sur-mesure »)
|
|
69
|
-
const [initialPeriodicite] = useState(selected.periodicite);
|
|
70
154
|
|
|
71
155
|
const uneSeuleFois = !hideOnce && selected.periodicite == null;
|
|
156
|
+
const surMesure = enableCustom && selected.periodicite != null;
|
|
157
|
+
|
|
72
158
|
const choose = (freq: Frequence | undefined) => {
|
|
73
159
|
selected.value = freq;
|
|
74
|
-
|
|
160
|
+
// Hors sur mesure, toucher une fréquence la valide
|
|
161
|
+
if (!surMesure) {
|
|
75
162
|
onChange(selected);
|
|
76
163
|
AppRouter.pop(router);
|
|
77
164
|
} else {
|
|
@@ -80,129 +167,162 @@ export function FrequenceSelectWidget({
|
|
|
80
167
|
};
|
|
81
168
|
|
|
82
169
|
return (
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
{initialPeriodicite != null && !hideCustom && (
|
|
91
|
-
<CustomCard
|
|
92
|
-
icon={<MaterialIcons name="close" size={18} color={Themer.systemErrorColor} />}
|
|
93
|
-
onPress={() => {
|
|
94
|
-
// Une seule fois
|
|
95
|
-
selected.value = undefined;
|
|
96
|
-
selected.periodicite = undefined;
|
|
97
|
-
selected.done = false;
|
|
98
|
-
onChange(selected);
|
|
99
|
-
AppRouter.pop(router);
|
|
100
|
-
}}
|
|
101
|
-
/>
|
|
102
|
-
)}
|
|
103
|
-
|
|
104
|
-
{/* Une fois, jour, semaine, mois, année */}
|
|
105
|
-
<Card>
|
|
106
|
-
<View style={styles.cardPadding}>
|
|
170
|
+
<SelectionSheet
|
|
171
|
+
titre={title}
|
|
172
|
+
hauteurMax={0.85}
|
|
173
|
+
contenu={
|
|
174
|
+
<>
|
|
175
|
+
<ScrollView bounces={false} style={styles.flexShrink} contentContainerStyle={styles.content}>
|
|
176
|
+
{/* Une fois, jour, semaine, mois, année */}
|
|
107
177
|
{uneSeuleFois && (
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
onChange(selected);
|
|
114
|
-
AppRouter.pop(router);
|
|
115
|
-
}}
|
|
178
|
+
<SelectionLigne
|
|
179
|
+
pastille={<SelectionPastille icone={frequenceIcone(null)} choisie={selected.value == null} />}
|
|
180
|
+
texte={traductions.transactionFormScheduleFrequenceUnefois}
|
|
181
|
+
choisie={selected.value == null}
|
|
182
|
+
onPress={() => choose(undefined)}
|
|
116
183
|
/>
|
|
117
184
|
)}
|
|
118
185
|
{frequences.map((freq) => (
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
{/* Sur mesure */}
|
|
126
|
-
{selected.periodicite == null && !hideCustom && (
|
|
127
|
-
<CustomCard
|
|
128
|
-
icon={<MaterialIcons name="arrow-forward-ios" size={18} color={theme.colorScheme.onSurface} />}
|
|
129
|
-
onPress={() => {
|
|
130
|
-
// Quotidienne, tous les 2 jours au minimum
|
|
131
|
-
selected.value = Frequence.quotidienne;
|
|
132
|
-
selected.periodicite = 2;
|
|
133
|
-
onChange(selected);
|
|
134
|
-
AppRouter.pop(router);
|
|
135
|
-
}}
|
|
136
|
-
/>
|
|
137
|
-
)}
|
|
138
|
-
|
|
139
|
-
{/* Périodicité */}
|
|
140
|
-
{selected.periodicite != null && (
|
|
141
|
-
<>
|
|
142
|
-
<View style={styles.row}>
|
|
143
|
-
<Text style={[theme.textTheme.headlineMedium, styles.flex]}>{traductions.transactionFormSchedulePeriodiciteLabel}</Text>
|
|
144
|
-
<NumberIncWidget
|
|
145
|
-
number={selected.periodicite}
|
|
146
|
-
onChange={(value) => {
|
|
147
|
-
selected.periodicite = value;
|
|
148
|
-
rebuild();
|
|
149
|
-
}}
|
|
186
|
+
<SelectionLigne
|
|
187
|
+
key={freq}
|
|
188
|
+
pastille={<SelectionPastille icone={frequenceIcone(freq)} choisie={freq === selected.value} />}
|
|
189
|
+
texte={frequenceText(freq, traductions)}
|
|
190
|
+
choisie={freq === selected.value}
|
|
191
|
+
onPress={() => choose(freq)}
|
|
150
192
|
/>
|
|
151
|
-
|
|
193
|
+
))}
|
|
194
|
+
|
|
195
|
+
{/* Option Sur mesure : bascule dans la feuille, sans la fermer */}
|
|
196
|
+
{selected.periodicite == null && !hideCustom && (
|
|
197
|
+
<View style={styles.marge12}>
|
|
198
|
+
<SelectionOption
|
|
199
|
+
icone="tune"
|
|
200
|
+
titre={traductions.transactionFormScheduleFrequenceSurMesure}
|
|
201
|
+
onPress={() => {
|
|
202
|
+
// Fréquence actuelle (quotidienne par défaut), tous les 2 au minimum ;
|
|
203
|
+
// le formulaire est prévenu à la validation
|
|
204
|
+
animer();
|
|
205
|
+
selected.value ??= Frequence.quotidienne;
|
|
206
|
+
selected.periodicite = 2;
|
|
207
|
+
selected.done = false;
|
|
208
|
+
rebuild();
|
|
209
|
+
}}
|
|
210
|
+
/>
|
|
211
|
+
</View>
|
|
212
|
+
)}
|
|
213
|
+
|
|
214
|
+
{/* Périodicité sur mesure */}
|
|
215
|
+
{surMesure && (
|
|
216
|
+
<Card style={[styles.carte, styles.marge16]}>
|
|
217
|
+
<View style={styles.carteContenu}>
|
|
218
|
+
{/* Sur mesure et bouton pour le supprimer */}
|
|
219
|
+
<View style={styles.row}>
|
|
220
|
+
<MaterialIcons name="tune" size={18} color={theme.colorScheme.primary} />
|
|
221
|
+
<Text style={[theme.textTheme.displayLarge, styles.surMesure]}>
|
|
222
|
+
{traductions.transactionFormScheduleFrequenceSurMesure}
|
|
223
|
+
</Text>
|
|
224
|
+
{!hideCustom && (
|
|
225
|
+
<Pressable
|
|
226
|
+
hitSlop={10}
|
|
227
|
+
accessibilityRole="button"
|
|
228
|
+
onPress={() => {
|
|
229
|
+
// Revient aux fréquences de base, sans fermer la feuille ;
|
|
230
|
+
// la fréquence choisie est gardée
|
|
231
|
+
animer();
|
|
232
|
+
selected.periodicite = undefined;
|
|
233
|
+
selected.done = false;
|
|
234
|
+
onChange(selected);
|
|
235
|
+
rebuild();
|
|
236
|
+
}}
|
|
237
|
+
style={styles.fermer}
|
|
238
|
+
>
|
|
239
|
+
<MaterialIcons name="close" size={20} color={Themer.systemErrorColor} />
|
|
240
|
+
</Pressable>
|
|
241
|
+
)}
|
|
242
|
+
</View>
|
|
243
|
+
{/* Périodicité : boutons réduire et augmenter */}
|
|
244
|
+
<View style={[styles.row, styles.periodicite]}>
|
|
245
|
+
<Text style={[theme.textTheme.displayMedium, styles.flex, { color: Themer.neural03Color }]}>
|
|
246
|
+
{traductions.transactionFormSchedulePeriodiciteLabel}
|
|
247
|
+
</Text>
|
|
248
|
+
<NumberIncWidget
|
|
249
|
+
number={selected.periodicite!}
|
|
250
|
+
onChange={(value) => {
|
|
251
|
+
selected.periodicite = value;
|
|
252
|
+
rebuild();
|
|
253
|
+
}}
|
|
254
|
+
/>
|
|
255
|
+
</View>
|
|
256
|
+
</View>
|
|
257
|
+
</Card>
|
|
258
|
+
)}
|
|
259
|
+
|
|
260
|
+
{/* Fréquence calculée */}
|
|
152
261
|
{selected.value != null && (
|
|
153
|
-
<
|
|
154
|
-
{traductions.
|
|
155
|
-
|
|
156
|
-
periodiciteText(traductions, selected.value, selected.periodicite),
|
|
157
|
-
)}
|
|
158
|
-
</Text>
|
|
262
|
+
<View style={styles.marge16}>
|
|
263
|
+
<FrequenceResume texte={frequenceResume(traductions, selected.value, selected.periodicite, enableCustom)} />
|
|
264
|
+
</View>
|
|
159
265
|
)}
|
|
160
|
-
|
|
161
|
-
<ElevatedButton
|
|
162
|
-
onPress={() => {
|
|
163
|
-
selected.done = true;
|
|
164
|
-
onChange(selected);
|
|
165
|
-
AppRouter.pop(router);
|
|
166
|
-
}}
|
|
167
|
-
>
|
|
168
|
-
{traductions.popupSelectDateBtnValider}
|
|
169
|
-
</ElevatedButton>
|
|
170
|
-
</>
|
|
171
|
-
)}
|
|
172
|
-
</ScrollView>
|
|
173
|
-
</View>
|
|
174
|
-
);
|
|
175
|
-
}
|
|
266
|
+
</ScrollView>
|
|
176
267
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
268
|
+
{/* Bouton valider : seulement en sur mesure */}
|
|
269
|
+
{surMesure && (
|
|
270
|
+
<SelectionBoutons
|
|
271
|
+
boutons={[
|
|
272
|
+
<ElevatedButton
|
|
273
|
+
key="valider"
|
|
274
|
+
onPress={() => {
|
|
275
|
+
selected.done = true;
|
|
276
|
+
onChange(selected);
|
|
277
|
+
AppRouter.pop(router);
|
|
278
|
+
}}
|
|
279
|
+
>
|
|
280
|
+
{traductions.popupSelectDateBtnValider}
|
|
281
|
+
</ElevatedButton>,
|
|
282
|
+
]}
|
|
283
|
+
/>
|
|
284
|
+
)}
|
|
285
|
+
</>
|
|
286
|
+
}
|
|
287
|
+
/>
|
|
186
288
|
);
|
|
187
289
|
}
|
|
188
290
|
|
|
189
|
-
|
|
291
|
+
/** Fréquence calculée, mise en évidence */
|
|
292
|
+
function FrequenceResume({ texte }: { texte: ReactNode }) {
|
|
190
293
|
const theme = useTheme();
|
|
191
294
|
return (
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
295
|
+
<View
|
|
296
|
+
style={[
|
|
297
|
+
styles.resume,
|
|
298
|
+
{ backgroundColor: withAlpha(Themer.successColor, 0.08), borderColor: withAlpha(Themer.successColor, 0.25) },
|
|
299
|
+
]}
|
|
300
|
+
>
|
|
301
|
+
<MaterialIcons name="event-repeat" size={20} color={Themer.successColor} />
|
|
302
|
+
<Text style={[theme.textTheme.displayLarge, styles.resumeTexte, { color: Themer.successColor }]}>{texte}</Text>
|
|
303
|
+
</View>
|
|
196
304
|
);
|
|
197
305
|
}
|
|
198
306
|
|
|
199
307
|
const styles = StyleSheet.create({
|
|
200
|
-
|
|
201
|
-
content: { padding: 20 },
|
|
202
|
-
cardPadding: { paddingHorizontal: 15 },
|
|
203
|
-
option: { flexDirection: 'row', alignItems: 'center', minHeight: 48 },
|
|
204
|
-
row: { flexDirection: 'row', alignItems: 'center' },
|
|
308
|
+
flexShrink: { flexShrink: 1 },
|
|
205
309
|
flex: { flex: 1 },
|
|
206
|
-
|
|
207
|
-
|
|
310
|
+
content: { paddingHorizontal: 20, paddingTop: 4, paddingBottom: 16 },
|
|
311
|
+
marge12: { marginTop: 12 },
|
|
312
|
+
marge16: { marginTop: 16 },
|
|
313
|
+
carte: { margin: 0 },
|
|
314
|
+
carteContenu: { paddingLeft: 14, paddingRight: 6, paddingTop: 6, paddingBottom: 12 },
|
|
315
|
+
row: { flexDirection: 'row', alignItems: 'center' },
|
|
316
|
+
surMesure: { flex: 1, marginLeft: 8, fontWeight: '700' },
|
|
317
|
+
fermer: { padding: 8 },
|
|
318
|
+
periodicite: { marginTop: 4, paddingRight: 8 },
|
|
319
|
+
resume: {
|
|
320
|
+
flexDirection: 'row',
|
|
321
|
+
alignItems: 'center',
|
|
322
|
+
paddingHorizontal: 14,
|
|
323
|
+
paddingVertical: 12,
|
|
324
|
+
borderRadius: 14,
|
|
325
|
+
borderWidth: 1,
|
|
326
|
+
},
|
|
327
|
+
resumeTexte: { flex: 1, marginLeft: 10, fontWeight: '600' },
|
|
208
328
|
});
|
|
@@ -4,11 +4,11 @@ import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { Themer, useTheme } from '../../core/theme';
|
|
6
6
|
import { useAppLocalizations } from '../../l10n/localizations';
|
|
7
|
-
import {
|
|
7
|
+
import { SelectionOption, SelectionSheet } from './selection';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Feuille de choix d'une image : prendre une photo, la choisir dans la
|
|
11
|
-
* galerie, puis les [otherActions] (ex.
|
|
11
|
+
* galerie, puis les [otherActions] (ex. SelectionOption « Supprimer »).
|
|
12
12
|
* [onSelect] reçoit l'URI locale de l'image (ou `null` si l'utilisateur
|
|
13
13
|
* annule).
|
|
14
14
|
*/
|
|
@@ -45,14 +45,14 @@ export function ImageSelectWidget({
|
|
|
45
45
|
|
|
46
46
|
const actions: ReactNode[] = [
|
|
47
47
|
// Prendre une photo avec l'appareil photo
|
|
48
|
-
<
|
|
48
|
+
<SelectionOption
|
|
49
49
|
key="camera"
|
|
50
50
|
icone="photo-camera"
|
|
51
51
|
titre={traductions.imageSelectCamera}
|
|
52
52
|
onPress={() => void pickImage('camera')}
|
|
53
53
|
/>,
|
|
54
54
|
// Sélectionner une photo depuis la galerie
|
|
55
|
-
<
|
|
55
|
+
<SelectionOption
|
|
56
56
|
key="galerie"
|
|
57
57
|
icone="photo-library"
|
|
58
58
|
titre={traductions.imageSelectGalerie}
|
|
@@ -10,6 +10,8 @@ export type CustomTextInputProps = {
|
|
|
10
10
|
preffix?: ReactNode;
|
|
11
11
|
suffix?: ReactNode;
|
|
12
12
|
suffixIcon?: ReactNode;
|
|
13
|
+
/** Toujours affiché au début du champ (ex. indicatif du pays). */
|
|
14
|
+
prefixIcon?: ReactNode;
|
|
13
15
|
value?: string;
|
|
14
16
|
defaultValue?: string;
|
|
15
17
|
onChange?: (value: string) => void;
|
|
@@ -77,6 +79,7 @@ export const CustomTextInput: ForwardRefExoticComponent<CustomTextInputProps & R
|
|
|
77
79
|
},
|
|
78
80
|
]}
|
|
79
81
|
>
|
|
82
|
+
{props.prefixIcon}
|
|
80
83
|
{props.preffix}
|
|
81
84
|
<View style={styles.field}>
|
|
82
85
|
{hasLabel && <FloatingLabel text={props.labelText!} floating={floating} restingTop={(HEIGHT - 2) / 2 - 12} />}
|
|
@@ -40,6 +40,8 @@ export type NotificationDialogProps = {
|
|
|
40
40
|
animatedImage?: number;
|
|
41
41
|
btnAction?: () => void;
|
|
42
42
|
btns?: NotificationBtn[];
|
|
43
|
+
/** `true` : la feuille se ferme aussi par le bouton retour */
|
|
44
|
+
canPop?: boolean;
|
|
43
45
|
};
|
|
44
46
|
|
|
45
47
|
/**
|
|
@@ -58,6 +60,7 @@ export function NotificationDialog({
|
|
|
58
60
|
animatedImage,
|
|
59
61
|
btnAction,
|
|
60
62
|
btns,
|
|
63
|
+
canPop = false,
|
|
61
64
|
}: NotificationDialogProps) {
|
|
62
65
|
const theme = useTheme();
|
|
63
66
|
const router = useAppRouter();
|
|
@@ -65,7 +68,7 @@ export function NotificationDialog({
|
|
|
65
68
|
const close = () => AppRouter.pop(router);
|
|
66
69
|
|
|
67
70
|
return (
|
|
68
|
-
<PopScope canPop={
|
|
71
|
+
<PopScope canPop={canPop}>
|
|
69
72
|
<SelectionSheet
|
|
70
73
|
hauteurMax={0.8}
|
|
71
74
|
contenu={
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { MaterialIcons } from '@expo/vector-icons';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import { Themer, useTheme } from '../../core/theme';
|
|
6
|
+
import { withAlpha } from '../utils/color';
|
|
7
|
+
|
|
8
|
+
/** En-tête des pages de création et de modification du code PIN : pastille avec [icone], [titre] (facultatif) et [sousTitre] centrés. */
|
|
9
|
+
export function PinEntete({
|
|
10
|
+
icone,
|
|
11
|
+
titre,
|
|
12
|
+
sousTitre,
|
|
13
|
+
compact = false,
|
|
14
|
+
}: {
|
|
15
|
+
icone: ComponentProps<typeof MaterialIcons>['name'];
|
|
16
|
+
titre?: string;
|
|
17
|
+
sousTitre: string;
|
|
18
|
+
compact?: boolean;
|
|
19
|
+
}) {
|
|
20
|
+
const theme = useTheme();
|
|
21
|
+
const primaire = theme.colorScheme.primary;
|
|
22
|
+
const taille = compact ? 56 : 72;
|
|
23
|
+
return (
|
|
24
|
+
<View style={pageStyles.entete}>
|
|
25
|
+
<View style={[pageStyles.pastille, { width: taille, height: taille, borderRadius: taille / 2, backgroundColor: withAlpha(primaire, 0.12) }]}>
|
|
26
|
+
<MaterialIcons name={icone} size={taille * 0.45} color={primaire} />
|
|
27
|
+
</View>
|
|
28
|
+
<View style={{ height: compact ? 10 : 14 }} />
|
|
29
|
+
{titre != null && (
|
|
30
|
+
<>
|
|
31
|
+
<Text style={[theme.textTheme.headlineSmall, pageStyles.centre, pageStyles.gras]}>{titre}</Text>
|
|
32
|
+
<View style={pageStyles.gap6} />
|
|
33
|
+
</>
|
|
34
|
+
)}
|
|
35
|
+
<Text style={[theme.textTheme.displayMedium, pageStyles.centre, { color: Themer.neural03Color }]}>{sousTitre}</Text>
|
|
36
|
+
</View>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Bandeau d'erreur (ou de succès, avec [succes]) sous les points du code PIN ; rien si [message] est vide. */
|
|
41
|
+
export function PinMessage({ message, succes = false }: { message?: string | null; succes?: boolean }) {
|
|
42
|
+
const theme = useTheme();
|
|
43
|
+
if (message == null || message.length === 0) return null;
|
|
44
|
+
const couleur = succes ? Themer.successColor : theme.colorScheme.error;
|
|
45
|
+
return (
|
|
46
|
+
<View
|
|
47
|
+
accessibilityLiveRegion="polite"
|
|
48
|
+
style={[pageStyles.message, { backgroundColor: withAlpha(couleur, 0.08), borderColor: withAlpha(couleur, 0.25) }]}
|
|
49
|
+
>
|
|
50
|
+
<MaterialIcons name={succes ? 'check-circle-outline' : 'error-outline'} size={20} color={couleur} />
|
|
51
|
+
<Text style={[theme.textTheme.bodyMedium, pageStyles.messageTexte, { color: couleur }]}>{message}</Text>
|
|
52
|
+
</View>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const pageStyles = StyleSheet.create({
|
|
57
|
+
gap6: { height: 6 },
|
|
58
|
+
entete: { alignItems: 'center' },
|
|
59
|
+
pastille: { alignItems: 'center', justifyContent: 'center' },
|
|
60
|
+
centre: { textAlign: 'center' },
|
|
61
|
+
gras: { fontWeight: '600' },
|
|
62
|
+
message: {
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
alignSelf: 'stretch',
|
|
67
|
+
marginTop: 15,
|
|
68
|
+
paddingHorizontal: 14,
|
|
69
|
+
paddingVertical: 12,
|
|
70
|
+
borderRadius: 14,
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
},
|
|
73
|
+
messageTexte: { marginLeft: 10, fontWeight: '500', flexShrink: 1, textAlign: 'center' },
|
|
74
|
+
});
|