decidim-core 0.28.2 → 0.29.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/activities_cell.rb +0 -1
- data/app/cells/decidim/activity_cell.rb +5 -7
- data/app/cells/decidim/address_cell.rb +3 -5
- data/app/cells/decidim/amendable/amend_button_card_cell.rb +0 -2
- data/app/cells/decidim/amendable/amendments_cell.rb +0 -2
- data/app/cells/decidim/amendable/announcement_cell.rb +10 -14
- data/app/cells/decidim/amendable/emendation_actions_cell.rb +0 -2
- data/app/cells/decidim/amendable/promote_button_card_cell.rb +0 -2
- data/app/cells/decidim/amendable/wizard_step_form_cell.rb +6 -19
- data/app/cells/decidim/announcement/show.erb +1 -1
- data/app/cells/decidim/announcement_cell.rb +6 -2
- data/app/cells/decidim/attachments_file_tab/show.erb +3 -0
- data/app/cells/decidim/attachments_file_tab_cell.rb +11 -0
- data/app/cells/decidim/attachments_link_tab/show.erb +12 -0
- data/app/cells/decidim/attachments_link_tab_cell.rb +21 -0
- data/app/cells/decidim/author/flag.erb +2 -2
- data/app/cells/decidim/author_cell.rb +0 -2
- data/app/cells/decidim/authorization_modal_cell.rb +0 -3
- data/app/cells/decidim/badge_cell.rb +0 -4
- data/app/cells/decidim/badges_cell.rb +0 -2
- data/app/cells/decidim/button_cell.rb +0 -3
- data/app/cells/decidim/card_cell.rb +1 -5
- data/app/cells/decidim/card_g_cell.rb +2 -2
- data/app/cells/decidim/card_l/space.erb +1 -1
- data/app/cells/decidim/card_l_cell.rb +1 -3
- data/app/cells/decidim/card_metadata_cell.rb +1 -5
- data/app/cells/decidim/card_s_cell.rb +1 -4
- data/app/cells/decidim/coauthorships_cell.rb +0 -2
- data/app/cells/decidim/comments_button_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/footer_sub_hero_cell.rb +0 -3
- data/app/cells/decidim/content_blocks/hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/hero_cell.rb +0 -1
- data/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/how_to_participate/show.erb +1 -1
- data/app/cells/decidim/content_blocks/how_to_participate_cell.rb +0 -1
- data/app/cells/decidim/content_blocks/participatory_space_documents/content.erb +1 -1
- data/app/cells/decidim/content_blocks/participatory_space_documents_cell.rb +17 -1
- data/app/cells/decidim/content_blocks/participatory_space_hero_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/participatory_space_last_activity_cell.rb +1 -3
- data/app/cells/decidim/content_blocks/stats/show.erb +1 -1
- data/app/cells/decidim/content_blocks/sub_hero_cell.rb +0 -3
- data/app/cells/decidim/date_range/show.erb +10 -10
- data/app/cells/decidim/date_range_cell.rb +0 -2
- data/app/cells/decidim/diff_cell.rb +0 -1
- data/app/cells/decidim/documents_panel/show.erb +4 -0
- data/app/cells/decidim/documents_panel_cell.rb +9 -1
- data/app/cells/decidim/endorsement_buttons_cell.rb +5 -13
- data/app/cells/decidim/flag_modal/flag_user.erb +3 -3
- data/app/cells/decidim/followers_cell.rb +0 -1
- data/app/cells/decidim/following_cell.rb +0 -1
- data/app/cells/decidim/footer_topics/show.erb +8 -0
- data/app/cells/decidim/footer_topics_cell.rb +39 -0
- data/app/cells/decidim/groups_cell.rb +0 -3
- data/app/cells/decidim/linked_resources_for_cell.rb +0 -3
- data/app/cells/decidim/members_cell.rb +0 -1
- data/app/cells/decidim/navbar_admin_link_cell.rb +0 -2
- data/app/cells/decidim/newsletter_templates/base_cell.rb +0 -1
- data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +2 -2
- data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +2 -2
- data/app/cells/decidim/notification/show.erb +5 -0
- data/app/cells/decidim/notification_actions/base_cell.rb +13 -0
- data/app/cells/decidim/notification_actions/buttons/show.erb +5 -0
- data/app/cells/decidim/notification_actions/buttons_cell.rb +41 -0
- data/app/cells/decidim/notification_cell.rb +9 -3
- data/app/cells/decidim/notifications_cell.rb +0 -1
- data/app/cells/decidim/pad_iframe/show.erb +2 -2
- data/app/cells/decidim/pad_iframe_cell.rb +0 -1
- data/app/cells/decidim/participatory_space_dropdown_metadata_cell.rb +1 -2
- data/app/cells/decidim/photo_cell.rb +1 -5
- data/app/cells/decidim/photos_list_cell.rb +0 -2
- data/app/cells/decidim/profile_cell.rb +0 -2
- data/app/cells/decidim/profile_sidebar/show.erb +20 -20
- data/app/cells/decidim/profile_sidebar_cell.rb +1 -10
- data/app/cells/decidim/progress_bar/show.erb +8 -6
- data/app/cells/decidim/public_participation/show.erb +1 -1
- data/app/cells/decidim/report_button/flag_modal.erb +1 -1
- data/app/cells/decidim/resource_types_filter_cell.rb +0 -2
- data/app/cells/decidim/scopes_picker/show.erb +1 -1
- data/app/cells/decidim/scopes_picker_cell.rb +0 -1
- data/app/cells/decidim/search_results_cell.rb +1 -1
- data/app/cells/decidim/statistic_cell.rb +0 -2
- data/app/cells/decidim/tab_panels/show.erb +1 -1
- data/app/cells/decidim/tab_panels_cell.rb +12 -2
- data/app/cells/decidim/tags_cell.rb +0 -2
- data/app/cells/decidim/tos_page_cell.rb +0 -3
- data/app/cells/decidim/translation_bar/show.erb +1 -1
- data/app/cells/decidim/translation_bar_cell.rb +0 -2
- data/app/cells/decidim/upload_modal/files.erb +1 -1
- data/app/cells/decidim/upload_modal_cell.rb +1 -3
- data/app/cells/decidim/user_conversation/new.erb +1 -1
- data/app/cells/decidim/user_conversation/show.erb +1 -1
- data/app/cells/decidim/user_conversation_cell.rb +0 -1
- data/app/cells/decidim/user_conversations/show.erb +1 -1
- data/app/cells/decidim/user_conversations_cell.rb +0 -1
- data/app/cells/decidim/user_group_pending_invitations_list_cell.rb +0 -1
- data/app/cells/decidim/user_group_pending_requests_list_cell.rb +0 -1
- data/app/cells/decidim/user_timeline/show.erb +1 -1
- data/app/cells/decidim/version_cell.rb +3 -5
- data/app/cells/decidim/versions_list_cell.rb +1 -3
- data/app/cells/decidim/versions_list_item_cell.rb +2 -4
- data/app/cells/decidim/wizard_step_form/wizard_aside.erb +2 -2
- data/app/cells/decidim/wizard_step_form/wizard_header.erb +2 -3
- data/app/cells/decidim/wizard_step_form_cell.rb +0 -8
- data/app/commands/decidim/amendable/create_draft.rb +4 -3
- data/app/commands/decidim/amendable/promote.rb +3 -2
- data/app/commands/decidim/amendable/publish_draft.rb +3 -2
- data/app/commands/decidim/amendable/update_draft.rb +4 -3
- data/app/commands/decidim/amendable/withdraw.rb +1 -1
- data/app/commands/decidim/create_follow.rb +4 -4
- data/app/commands/decidim/create_report.rb +3 -3
- data/app/commands/decidim/create_user_report.rb +5 -5
- data/app/commands/decidim/delete_follow.rb +4 -4
- data/app/commands/decidim/demote_membership.rb +2 -2
- data/app/commands/decidim/destroy_account.rb +21 -19
- data/app/commands/decidim/endorse_resource.rb +1 -1
- data/app/commands/decidim/invite_user_to_group.rb +5 -4
- data/app/commands/decidim/update_account.rb +24 -22
- data/app/commands/decidim/update_notifications_settings.rb +13 -11
- data/app/commands/decidim/update_password.rb +7 -7
- data/app/commands/decidim/update_user_interests.rb +9 -7
- data/app/controllers/concerns/decidim/devise_controllers.rb +2 -0
- data/app/controllers/concerns/decidim/filter_resource.rb +1 -1
- data/app/controllers/concerns/decidim/needs_rtl_direction.rb +23 -0
- data/app/controllers/concerns/decidim/participatory_space_context.rb +1 -23
- data/app/controllers/concerns/decidim/payload_info.rb +2 -1
- data/app/controllers/concerns/decidim/registers_permissions.rb +4 -4
- data/app/controllers/concerns/decidim/use_organization_time_zone.rb +1 -1
- data/app/controllers/concerns/decidim/withdrawable.rb +1 -1
- data/app/controllers/decidim/account_controller.rb +2 -2
- data/app/controllers/{concerns/decidim → decidim}/amendments_controller.rb +3 -16
- data/app/controllers/decidim/application_controller.rb +1 -0
- data/app/controllers/decidim/components/base_controller.rb +1 -1
- data/app/controllers/decidim/devise/invitations_controller.rb +1 -1
- data/app/controllers/decidim/devise/passwords_controller.rb +2 -2
- data/app/controllers/decidim/endorsements_controller.rb +1 -1
- data/app/controllers/decidim/favicon_controller.rb +1 -1
- data/app/controllers/decidim/follows_controller.rb +2 -2
- data/app/controllers/decidim/group_invites_controller.rb +36 -9
- data/app/controllers/decidim/newsletters_opt_in_controller.rb +1 -1
- data/app/controllers/decidim/notifications_settings_controller.rb +1 -1
- data/app/controllers/decidim/report_users_controller.rb +1 -1
- data/app/controllers/decidim/reports_controller.rb +1 -1
- data/app/controllers/decidim/user_interests_controller.rb +1 -1
- data/app/events/decidim/change_nickname_event.rb +0 -1
- data/app/events/decidim/invited_to_group_event.rb +29 -0
- data/app/events/decidim/welcome_notification_event.rb +2 -4
- data/app/forms/decidim/form.rb +4 -0
- data/app/forms/decidim/omniauth_registration_form.rb +1 -1
- data/app/forms/decidim/upload_validation_form.rb +1 -1
- data/app/helpers/concerns/decidim/flash_helper_extensions.rb +1 -1
- data/app/helpers/decidim/amendments_helper.rb +4 -14
- data/app/helpers/decidim/application_helper.rb +8 -0
- data/app/helpers/decidim/authorization_form_helper.rb +2 -2
- data/app/helpers/decidim/breadcrumb_helper.rb +1 -1
- data/app/helpers/decidim/cells_helper.rb +1 -1
- data/app/helpers/decidim/check_boxes_tree_helper.rb +1 -1
- data/app/helpers/decidim/datalist_select_helper.rb +1 -1
- data/app/helpers/decidim/decidim_form_helper.rb +3 -3
- data/app/helpers/decidim/filters_helper.rb +1 -1
- data/app/helpers/decidim/layout_helper.rb +1 -36
- data/app/helpers/decidim/localized_locales_helper.rb +1 -1
- data/app/helpers/decidim/menu_helper.rb +8 -0
- data/app/helpers/decidim/meta_tags_helper.rb +26 -23
- data/app/helpers/decidim/modal_helper.rb +1 -1
- data/app/helpers/decidim/orders_helper.rb +1 -1
- data/app/helpers/decidim/organization_helper.rb +55 -0
- data/app/helpers/decidim/paginate_helper.rb +1 -1
- data/app/helpers/decidim/resource_helper.rb +0 -7
- data/app/helpers/decidim/scopes_helper.rb +4 -2
- data/app/helpers/decidim/searches_helper.rb +1 -1
- data/app/helpers/decidim/short_link_helper.rb +2 -2
- data/app/helpers/decidim/translations_helper.rb +2 -2
- data/app/helpers/decidim/twitter_search_helper.rb +1 -1
- data/app/helpers/decidim/user_profile_helper.rb +0 -1
- data/app/jobs/decidim/email_notifications_digest_generator_job.rb +2 -2
- data/app/mailers/decidim/application_mailer.rb +6 -2
- data/app/mailers/decidim/block_user_mailer.rb +1 -1
- data/app/mailers/decidim/decidim_devise_mailer.rb +7 -1
- data/app/mailers/decidim/newsletter_mailer.rb +1 -4
- data/app/mailers/decidim/newsletters_opt_in_mailer.rb +2 -2
- data/app/mailers/decidim/notification_mailer.rb +0 -1
- data/app/mailers/decidim/notifications_digest_mailer.rb +0 -1
- data/app/mailers/decidim/reported_mailer.rb +6 -3
- data/app/mailers/decidim/user_report_mailer.rb +1 -1
- data/app/models/decidim/action_log.rb +1 -1
- data/app/models/decidim/area_type.rb +1 -1
- data/app/models/decidim/attachment.rb +26 -2
- data/app/models/decidim/authorization.rb +1 -1
- data/app/models/decidim/authorization_transfer.rb +1 -0
- data/app/models/decidim/component.rb +2 -2
- data/app/models/decidim/content_block.rb +1 -1
- data/app/models/decidim/messaging/message.rb +2 -2
- data/app/models/decidim/newsletter.rb +9 -9
- data/app/models/decidim/notification.rb +2 -2
- data/app/models/decidim/organization.rb +23 -2
- data/app/models/decidim/push_notification_message.rb +1 -1
- data/app/models/decidim/resource_link.rb +1 -1
- data/app/models/decidim/user.rb +2 -2
- data/app/models/decidim/user_group.rb +2 -2
- data/app/packs/src/decidim/a11y.js +46 -0
- data/app/packs/src/decidim/attachments/file_or_link_tabs.js +55 -0
- data/app/packs/src/decidim/attachments/index.js +1 -0
- data/app/packs/src/decidim/back_to_list.js +1 -1
- data/app/packs/src/decidim/check_boxes_tree.js +1 -1
- data/app/packs/src/decidim/data_consent/consent_manager.js +1 -1
- data/app/packs/src/decidim/data_consent/consent_manager.test.js +6 -6
- data/app/packs/src/decidim/data_consent/index.js +1 -1
- data/app/packs/src/decidim/datepicker/datepicker_functions.js +243 -0
- data/app/packs/src/decidim/datepicker/datepicker_listeners.js +78 -0
- data/app/packs/src/decidim/datepicker/form_datepicker.js +91 -0
- data/app/packs/src/decidim/datepicker/generate_datepicker.js +148 -0
- data/app/packs/src/decidim/datepicker/generate_timepicker.js +298 -0
- data/app/packs/src/decidim/datepicker/test/date.test.js +118 -0
- data/app/packs/src/decidim/datepicker/test/time.test.js +227 -0
- data/app/packs/src/decidim/editor/extensions/indent/index.js +1 -1
- data/app/packs/src/decidim/editor/extensions/video_embed/index.js +4 -4
- data/app/packs/src/decidim/editor/test/extensions/decidim_kit.test.js +0 -15
- data/app/packs/src/decidim/editor/test/extensions/indent.test.js +1 -1
- data/app/packs/src/decidim/editor/test/fixtures/upload_templates.js +1 -1
- data/app/packs/src/decidim/editor/test/helpers.js +1 -14
- data/app/packs/src/decidim/editor/utilities/paste_transform.js +2 -2
- data/app/packs/src/decidim/external_domain_warning.js +2 -2
- data/app/packs/src/decidim/external_domain_warning.test.js +4 -4
- data/app/packs/src/decidim/form_filter.js +4 -4
- data/app/packs/src/decidim/impersonation.js +1 -1
- data/app/packs/src/decidim/index.js +11 -5
- data/app/packs/src/decidim/input_character_counter.js +1 -1
- data/app/packs/src/decidim/input_emoji.js +171 -72
- data/app/packs/src/decidim/input_hashtags.js +1 -1
- data/app/packs/src/decidim/input_mentions.js +1 -1
- data/app/packs/src/decidim/notifications_actions.js +40 -0
- data/app/packs/src/decidim/sticky_header.js +87 -0
- data/app/packs/src/decidim/sw/sw.js +8 -6
- data/app/packs/src/decidim/tooltips.js +1 -1
- data/app/packs/stylesheets/decidim/_datepicker.scss +193 -0
- data/app/packs/stylesheets/decidim/_dropdown.scss +36 -0
- data/app/packs/stylesheets/decidim/_emoji.scss +36 -0
- data/app/packs/stylesheets/decidim/_filters.scss +4 -2
- data/app/packs/stylesheets/decidim/_flash.scss +2 -2
- data/app/packs/stylesheets/decidim/_footer.scss +1 -3
- data/app/packs/stylesheets/decidim/_forms.scss +9 -1
- data/app/packs/stylesheets/decidim/_header.scss +70 -50
- data/app/packs/stylesheets/decidim/_home.scss +1 -1
- data/app/packs/stylesheets/decidim/_layout.scss +13 -0
- data/app/packs/stylesheets/decidim/_modal.scss +1 -1
- data/app/packs/stylesheets/decidim/_modal_update.scss +1 -1
- data/app/packs/stylesheets/decidim/_notifications.scss +4 -0
- data/app/packs/stylesheets/decidim/_tabs_x.scss +5 -1
- data/app/packs/stylesheets/decidim/application.scss +4 -0
- data/app/packs/stylesheets/decidim/legacy/leaflet.scss +1 -1
- data/app/packs/stylesheets/decidim/vendor/_datepicker_light.scss +228 -0
- data/app/permissions/decidim/default_permissions.rb +2 -2
- data/app/presenters/decidim/admin_log/organization_presenter.rb +1 -1
- data/app/presenters/decidim/admin_log/static_page_presenter.rb +1 -1
- data/app/presenters/decidim/authorization_transfer_presenter.rb +1 -1
- data/app/presenters/decidim/component_attachment_collection_presenter.rb +81 -0
- data/app/presenters/decidim/footer_menu_presenter.rb +1 -1
- data/app/presenters/decidim/home_stats_presenter.rb +1 -1
- data/app/presenters/decidim/organization_presenter.rb +1 -1
- data/app/queries/decidim/metric_measure.rb +1 -1
- data/app/queries/decidim/public_activities.rb +1 -1
- data/app/queries/decidim/user_groups/admin_memberships.rb +1 -1
- data/app/queries/decidim/user_groups/member_memberships.rb +1 -1
- data/app/services/decidim/action_logger.rb +3 -3
- data/app/services/decidim/log/diff_changeset_calculator.rb +2 -2
- data/app/services/decidim/notifications_digest_sending_decider.rb +1 -1
- data/app/uploaders/decidim/organization_favicon_uploader.rb +1 -1
- data/app/uploaders/decidim/record_image_uploader.rb +2 -2
- data/app/validators/organization_present_validator.rb +1 -1
- data/app/validators/passthru_validator.rb +1 -1
- data/app/validators/uploader_image_dimensions_validator.rb +2 -2
- data/app/views/decidim/account/show.html.erb +1 -1
- data/app/views/decidim/amendments/_wizard_header.html.erb +1 -2
- data/app/views/decidim/application/_collection.html.erb +3 -1
- data/app/views/decidim/application/_component_documents.html.erb +4 -0
- data/app/views/decidim/application/_document.html.erb +23 -9
- data/app/views/decidim/block_user_mailer/notify.html.erb +2 -2
- data/app/views/decidim/devise/invitations/edit.html.erb +2 -2
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/shared/_login_boxes.html.erb +1 -1
- data/app/views/decidim/doorkeeper/authorizations/new.html.erb +1 -1
- data/app/views/decidim/endorsements/_identity.html.erb +1 -1
- data/app/views/decidim/gamification/badges/index.html.erb +1 -1
- data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +2 -2
- data/app/views/decidim/messaging/conversations/_error_modal.html.erb +5 -5
- data/app/views/decidim/newsletter_mailer/newsletter.html.erb +1 -1
- data/app/views/decidim/newsletters/show.html.erb +1 -1
- data/app/views/decidim/newsletters_opt_in_mailer/notify.html.erb +2 -2
- data/app/views/decidim/pages/index.html.erb +1 -2
- data/app/views/decidim/reported_mailer/report.html.erb +4 -2
- data/app/views/decidim/scopes/picker.html.erb +5 -5
- data/app/views/decidim/searches/_resources_filter_block.html.erb +6 -6
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +8 -8
- data/app/views/decidim/shared/_login_modal.html.erb +1 -1
- data/app/views/decidim/user_interests/_areas.html.erb +2 -2
- data/app/views/decidim/user_report_mailer/notify.html.erb +2 -2
- data/app/views/decidim/user_update_mailer/notify.html.erb +1 -1
- data/app/views/decidim/widgets/_data_picker.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.text.erb +1 -1
- data/app/views/devise/mailer/invite_admin.html.erb +2 -2
- data/app/views/devise/mailer/invite_admin.text.erb +2 -2
- data/app/views/devise/mailer/invite_collaborator.html.erb +2 -2
- data/app/views/devise/mailer/invite_collaborator.text.erb +2 -2
- data/app/views/devise/mailer/invite_private_user.html.erb +2 -2
- data/app/views/devise/mailer/invite_private_user.text.erb +2 -2
- data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/organization_admin_invitation_instructions.text.erb +1 -1
- data/app/views/layouts/decidim/_application.html.erb +3 -6
- data/app/views/layouts/decidim/_data_consent_warning.html.erb +2 -2
- data/app/views/layouts/decidim/_decidim_javascript.html.erb +1 -1
- data/app/views/layouts/decidim/_head_extra.html.erb +2 -2
- data/app/views/layouts/decidim/_impersonation_warning.html.erb +1 -1
- data/app/views/layouts/decidim/_js_configuration.html.erb +7 -2
- data/app/views/layouts/decidim/_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_logo_mobile.html.erb +11 -0
- data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_meta_tags_config.html.erb +1 -1
- data/app/views/layouts/decidim/_wrapper.html.erb +16 -9
- data/app/views/layouts/decidim/footer/_main.html.erb +2 -3
- data/app/views/layouts/decidim/footer/_main_intro.html.erb +2 -2
- data/app/views/layouts/decidim/footer/_main_legal.html.erb +2 -3
- data/app/views/layouts/decidim/footer/_main_links.html.erb +13 -11
- data/app/views/layouts/decidim/footer/_main_social_media_links.html.erb +8 -8
- data/app/views/layouts/decidim/header/_main.html.erb +9 -22
- data/app/views/layouts/decidim/header/_main_links_desktop.html.erb +3 -4
- data/app/views/layouts/decidim/header/_main_links_mobile_account.html.erb +10 -3
- data/app/views/layouts/decidim/header/_main_links_mobile_item_account.html.erb +24 -0
- data/app/views/layouts/decidim/header/_main_links_mobile_search.html.erb +0 -21
- data/app/views/layouts/decidim/header/_main_menu_mobile.html.erb +12 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_desktop.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_mobile.html.erb +17 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_top_left.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_breadcrumb_mobile_tablet.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb +16 -0
- data/app/views/layouts/decidim/header/_mobile_language_choose.html.erb +25 -0
- data/app/views/layouts/decidim/mailer.html.erb +2 -2
- data/app/views/layouts/decidim/shared/_layout_center.html.erb +1 -1
- data/app/views/layouts/decidim/shared/_layout_item.html.erb +0 -14
- data/config/initializers/active_storage.rb +3 -0
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/new_framework_defaults_7_0.rb +145 -0
- data/config/locales/ar.yml +2 -42
- data/config/locales/bg.yml +55 -57
- data/config/locales/ca.yml +65 -54
- data/config/locales/cs.yml +53 -55
- data/config/locales/de.yml +63 -52
- data/config/locales/el.yml +0 -29
- data/config/locales/en.yml +68 -57
- data/config/locales/es-MX.yml +67 -56
- data/config/locales/es-PY.yml +67 -56
- data/config/locales/es.yml +66 -55
- data/config/locales/eu.yml +67 -56
- data/config/locales/fi-plain.yml +66 -55
- data/config/locales/fi.yml +65 -54
- data/config/locales/fr-CA.yml +60 -55
- data/config/locales/fr.yml +55 -50
- data/config/locales/ga-IE.yml +0 -11
- data/config/locales/gl.yml +0 -18
- data/config/locales/hu.yml +36 -56
- data/config/locales/id-ID.yml +0 -14
- data/config/locales/is-IS.yml +0 -10
- data/config/locales/it.yml +0 -25
- data/config/locales/ja.yml +67 -56
- data/config/locales/lb.yml +0 -25
- data/config/locales/lt.yml +0 -48
- data/config/locales/lv.yml +0 -21
- data/config/locales/nl.yml +0 -24
- data/config/locales/no.yml +0 -25
- data/config/locales/pl.yml +67 -56
- data/config/locales/pt-BR.yml +4 -51
- data/config/locales/pt.yml +0 -25
- data/config/locales/ro-RO.yml +1 -28
- data/config/locales/ru.yml +0 -15
- data/config/locales/sk.yml +0 -21
- data/config/locales/sl.yml +0 -8
- data/config/locales/sv.yml +0 -33
- data/config/locales/tr-TR.yml +4 -27
- data/config/locales/uk.yml +0 -10
- data/config/locales/zh-CN.yml +0 -22
- data/config/locales/zh-TW.yml +0 -47
- data/config/routes.rb +0 -1
- data/db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb +1 -1
- data/db/migrate/20240110150230_rename_external_domain_whitelist_to_external_domain_allowlist.rb +7 -0
- data/db/migrate/20240326104215_remove_show_in_footer_in_static_pages.rb +7 -0
- data/db/migrate/20240401192628_change_name_on_decidim_organizations.rb +31 -0
- data/db/seeds/avatars/001.jpg +0 -0
- data/db/seeds/avatars/002.jpg +0 -0
- data/db/seeds/avatars/003.jpg +0 -0
- data/db/seeds/avatars/004.jpg +0 -0
- data/db/seeds/avatars/005.jpg +0 -0
- data/db/seeds/avatars/006.jpg +0 -0
- data/db/seeds/avatars/007.jpg +0 -0
- data/db/seeds/avatars/008.jpg +0 -0
- data/db/seeds/avatars/009.jpg +0 -0
- data/db/seeds/avatars/010.jpg +0 -0
- data/db/seeds/avatars/011.jpg +0 -0
- data/db/seeds/avatars/012.jpg +0 -0
- data/db/seeds/avatars/013.jpg +0 -0
- data/db/seeds/avatars/014.jpg +0 -0
- data/db/seeds/avatars/015.jpg +0 -0
- data/db/seeds/avatars/016.jpg +0 -0
- data/db/seeds/avatars/017.jpg +0 -0
- data/db/seeds/avatars/018.jpg +0 -0
- data/db/seeds/avatars/019.jpg +0 -0
- data/db/seeds/avatars/020.jpg +0 -0
- data/db/seeds/avatars/021.jpg +0 -0
- data/db/seeds/avatars/022.jpg +0 -0
- data/db/seeds/avatars/023.jpg +0 -0
- data/db/seeds/avatars/024.jpg +0 -0
- data/db/seeds/avatars/025.jpg +0 -0
- data/db/seeds/avatars/026.jpg +0 -0
- data/db/seeds/avatars/027.jpg +0 -0
- data/db/seeds/avatars/028.jpg +0 -0
- data/db/seeds/avatars/029.jpg +0 -0
- data/db/seeds/avatars/030.jpg +0 -0
- data/db/seeds/avatars/031.jpg +0 -0
- data/db/seeds/avatars/032.jpg +0 -0
- data/db/seeds/avatars/033.jpg +0 -0
- data/db/seeds/avatars/034.jpg +0 -0
- data/db/seeds/avatars/035.jpg +0 -0
- data/db/seeds/avatars/036.jpg +0 -0
- data/db/seeds/avatars/037.jpg +0 -0
- data/db/seeds/avatars/038.jpg +0 -0
- data/db/seeds/avatars/039.jpg +0 -0
- data/db/seeds/avatars/040.jpg +0 -0
- data/db/seeds/avatars/041.jpg +0 -0
- data/db/seeds/avatars/042.jpg +0 -0
- data/db/seeds/avatars/043.jpg +0 -0
- data/db/seeds/avatars/044.jpg +0 -0
- data/db/seeds/avatars/045.jpg +0 -0
- data/db/seeds/avatars/046.jpg +0 -0
- data/db/seeds/avatars/047.jpg +0 -0
- data/db/seeds/avatars/048.jpg +0 -0
- data/db/seeds/avatars/049.jpg +0 -0
- data/db/seeds/avatars/050.jpg +0 -0
- data/db/seeds/avatars/051.jpg +0 -0
- data/db/seeds/avatars/052.jpg +0 -0
- data/db/seeds/avatars/053.jpg +0 -0
- data/db/seeds/avatars/054.jpg +0 -0
- data/db/seeds/avatars/055.jpg +0 -0
- data/db/seeds/avatars/056.jpg +0 -0
- data/db/seeds/avatars/057.jpg +0 -0
- data/db/seeds/avatars/058.jpg +0 -0
- data/db/seeds/avatars/059.jpg +0 -0
- data/db/seeds/avatars/060.jpg +0 -0
- data/db/seeds/avatars/061.jpg +0 -0
- data/db/seeds/avatars/062.jpg +0 -0
- data/db/seeds/avatars/063.jpg +0 -0
- data/db/seeds/avatars/064.jpg +0 -0
- data/db/seeds/avatars/065.jpg +0 -0
- data/db/seeds/avatars/066.jpg +0 -0
- data/db/seeds/avatars/067.jpg +0 -0
- data/db/seeds/avatars/068.jpg +0 -0
- data/db/seeds/avatars/069.jpg +0 -0
- data/db/seeds/avatars/070.jpg +0 -0
- data/db/seeds/avatars/071.jpg +0 -0
- data/db/seeds/avatars/072.jpg +0 -0
- data/db/seeds/avatars/073.jpg +0 -0
- data/db/seeds/avatars/074.jpg +0 -0
- data/db/seeds/avatars/075.jpg +0 -0
- data/db/seeds/avatars/076.jpg +0 -0
- data/db/seeds/avatars/077.jpg +0 -0
- data/db/seeds/avatars/078.jpg +0 -0
- data/db/seeds/avatars/079.jpg +0 -0
- data/db/seeds/avatars/080.jpg +0 -0
- data/db/seeds/avatars/081.jpg +0 -0
- data/db/seeds/avatars/082.jpg +0 -0
- data/db/seeds/avatars/083.jpg +0 -0
- data/db/seeds/avatars/084.jpg +0 -0
- data/db/seeds/avatars/085.jpg +0 -0
- data/db/seeds/avatars/086.jpg +0 -0
- data/db/seeds/avatars/087.jpg +0 -0
- data/db/seeds/avatars/088.jpg +0 -0
- data/db/seeds/avatars/089.jpg +0 -0
- data/db/seeds/avatars/090.jpg +0 -0
- data/db/seeds/avatars/091.jpg +0 -0
- data/db/seeds/avatars/092.jpg +0 -0
- data/db/seeds/avatars/093.jpg +0 -0
- data/db/seeds/avatars/094.jpg +0 -0
- data/db/seeds/avatars/095.jpg +0 -0
- data/db/seeds/avatars/096.jpg +0 -0
- data/db/seeds/avatars/097.jpg +0 -0
- data/db/seeds/avatars/098.jpg +0 -0
- data/db/seeds/avatars/099.jpg +0 -0
- data/db/seeds/avatars/100.jpg +0 -0
- data/db/seeds/avatars/CREDITS.md +114 -0
- data/db/seeds/avatars/README.md +25 -0
- data/decidim-core.gemspec +6 -5
- data/lib/decidim/acts_as_author.rb +1 -1
- data/lib/decidim/admin_filter.rb +44 -0
- data/lib/decidim/admin_filters_registry.rb +55 -0
- data/lib/decidim/amendable.rb +1 -2
- data/lib/decidim/api/functions/component_finder_base.rb +1 -1
- data/lib/decidim/api/functions/needs_api_filter_and_order.rb +3 -3
- data/lib/decidim/api/functions/participatory_space_finder_base.rb +1 -1
- data/lib/decidim/api/functions/participatory_space_list_base.rb +1 -1
- data/lib/decidim/api/input_filters/user_entity_input_filter.rb +3 -3
- data/lib/decidim/api/interfaces/author_interface.rb +1 -1
- data/lib/decidim/api/types/organization_type.rb +1 -1
- data/lib/decidim/api/types/user_group_type.rb +1 -1
- data/lib/decidim/api/types/user_type.rb +1 -1
- data/lib/decidim/asset_router/pipeline.rb +2 -2
- data/lib/decidim/assets/tailwind/instance.rb +1 -1
- data/lib/decidim/assets/tailwind/tailwind.config.js.erb +8 -3
- data/lib/decidim/attribute_object/model.rb +2 -2
- data/lib/decidim/attribute_object/type_resolver.rb +1 -3
- data/lib/decidim/attribute_object.rb +2 -2
- data/lib/decidim/attributes.rb +0 -4
- data/lib/decidim/authorable.rb +5 -0
- data/lib/decidim/command.rb +2 -2
- data/lib/decidim/commands/create_resource.rb +63 -0
- data/lib/decidim/commands/destroy_resource.rb +74 -0
- data/lib/decidim/commands/hook_error.rb +8 -0
- data/lib/decidim/commands/resource_handler.rb +85 -0
- data/lib/decidim/commands/update_resource.rb +64 -0
- data/lib/decidim/component_manifest.rb +3 -1
- data/lib/decidim/component_validator.rb +1 -1
- data/lib/decidim/content_blocks/has_related_components.rb +1 -1
- data/lib/decidim/content_parsers/resource_parser.rb +2 -2
- data/lib/decidim/content_processor.rb +1 -1
- data/lib/decidim/content_security_policy.rb +1 -1
- data/lib/decidim/core/engine.rb +12 -15
- data/lib/decidim/core/menu.rb +13 -3
- data/lib/decidim/core/seeds.rb +120 -147
- data/lib/decidim/core/test/factories.rb +24 -3
- data/lib/decidim/core/test/shared_examples/acts_as_author_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/amendable/withdraw_amendment_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/announcements_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/assembly_announcements_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +88 -82
- data/lib/decidim/core/test/shared_examples/comments_reports_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/digest_mail_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/edit_link_shared_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/editor_shared_examples.rb +7 -7
- data/lib/decidim/core/test/shared_examples/fingerprint_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/follows_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/has_attachment_collections.rb +4 -2
- data/lib/decidim/core/test/shared_examples/has_attachments.rb +3 -2
- data/lib/decidim/core/test/shared_examples/has_contextual_help.rb +4 -4
- data/lib/decidim/core/test/shared_examples/has_reference.rb +1 -1
- data/lib/decidim/core/test/shared_examples/logo_email.rb +1 -1
- data/lib/decidim/core/test/shared_examples/manage_component_share_tokens.rb +9 -9
- data/lib/decidim/core/test/shared_examples/map_examples.rb +5 -5
- data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/participatory_space_dropdown_metadata_cell_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/preview_component_with_share_token_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/process_announcements_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/reports_examples.rb +5 -5
- data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +10 -10
- data/lib/decidim/core/test/shared_examples/searchable_participatory_space_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/searchable_results_examples.rb +8 -8
- data/lib/decidim/core/test/shared_examples/share_link_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/simple_event.rb +1 -1
- data/lib/decidim/core/test/shared_examples/space_cell_changes_button_text_cta.rb +3 -3
- data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +11 -11
- data/lib/decidim/core/test/shared_examples/translated_event_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +1 -1
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/core.rb +24 -6
- data/lib/decidim/dependency_resolver.rb +3 -3
- data/lib/decidim/diffy_extension.rb +1 -1
- data/lib/decidim/download_your_data_serializers/download_your_data_user_serializer.rb +2 -1
- data/lib/decidim/engine_router.rb +2 -2
- data/lib/decidim/events/base_event.rb +19 -0
- data/lib/decidim/events/simple_event.rb +1 -0
- data/lib/decidim/exporters/export_manifest.rb +1 -1
- data/lib/decidim/faker/localized.rb +3 -3
- data/lib/decidim/form_builder.rb +4 -4
- data/lib/decidim/hashtag.rb +1 -1
- data/lib/decidim/jsonb_attributes.rb +4 -4
- data/lib/decidim/manifest_messages.rb +2 -2
- data/lib/decidim/organization_settings.rb +5 -5
- data/lib/decidim/paddable.rb +1 -1
- data/lib/decidim/participable.rb +1 -1
- data/lib/decidim/participatory_space_manifest.rb +1 -1
- data/lib/decidim/resourceable.rb +1 -1
- data/lib/decidim/search_resource_fields_mapper.rb +2 -2
- data/lib/decidim/searchable.rb +3 -3
- data/lib/decidim/seeds.rb +62 -0
- data/lib/decidim/stats_registry.rb +2 -2
- data/lib/decidim/translatable_attributes.rb +3 -3
- data/lib/decidim/translatable_resource.rb +1 -1
- data/lib/decidim/view_hooks.rb +1 -1
- data/lib/decidim/view_model.rb +4 -0
- data/lib/decidim/webpacker/esbuild.config.js +14 -0
- data/lib/decidim/webpacker/shakapacker.yml +2 -2
- data/lib/decidim/webpacker/tsconfig.json +11 -0
- data/lib/decidim/webpacker/webpack/custom.js +13 -35
- data/lib/devise/models/decidim_newsletterable.rb +1 -1
- data/lib/tasks/decidim_download_your_data_tasks.rake +2 -2
- data/lib/tasks/decidim_locales_tasks.rake +1 -1
- data/lib/tasks/decidim_mailers_tasks.rake +2 -2
- data/lib/tasks/decidim_metrics_tasks.rake +6 -6
- data/lib/tasks/decidim_procfile.rake +9 -3
- data/lib/tasks/decidim_tasks.rake +5 -4
- data/lib/tasks/decidim_webpacker_tasks.rake +126 -117
- data/lib/tasks/upgrade/decidim_active_storage_migration_tasks.rake +80 -0
- data/lib/tasks/upgrade/decidim_content_blocks_tasks.rake +50 -0
- data/lib/tasks/upgrade/decidim_deduplicate_endorsements.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_categorization.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_nickname_uniqueness.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_short_url_resolver.rake +1 -1
- data/lib/tasks/upgrade/decidim_moderation_tasks.rake +1 -1
- data/lib/tasks/upgrade/decidim_user_moderation.rake +1 -1
- metadata +202 -75
- data/app/cells/decidim/content_blocks/cta/show.erb +0 -12
- data/app/cells/decidim/content_blocks/cta_cell.rb +0 -31
- data/app/cells/decidim/footer_pages/pages.erb +0 -3
- data/app/cells/decidim/footer_pages/topics.erb +0 -12
- data/app/cells/decidim/footer_pages_cell.rb +0 -68
- data/app/packs/src/decidim/vendor/modernizr.js +0 -5
- data/app/queries/decidim/similar_emendations.rb +0 -56
- data/app/uploaders/decidim/cw/application_uploader.rb +0 -77
- data/app/uploaders/decidim/cw/attachment_uploader.rb +0 -56
- data/app/uploaders/decidim/cw/avatar_uploader.rb +0 -24
- data/app/uploaders/decidim/cw/banner_image_uploader.rb +0 -7
- data/app/uploaders/decidim/cw/download_your_data_uploader.rb +0 -15
- data/app/uploaders/decidim/cw/downloader.rb +0 -9
- data/app/uploaders/decidim/cw/hero_image_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/homepage_image_uploader.rb +0 -14
- data/app/uploaders/decidim/cw/image_uploader.rb +0 -78
- data/app/uploaders/decidim/cw/newsletter_template_image_uploader.rb +0 -38
- data/app/uploaders/decidim/cw/oauth_application_logo_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/official_image_footer_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/official_image_header_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/open_data_uploader.rb +0 -23
- data/app/uploaders/decidim/cw/organization_favicon_uploader.rb +0 -18
- data/app/uploaders/decidim/cw/organization_logo_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/record_image_uploader.rb +0 -15
- data/app/uploaders/decidim/downloader.rb +0 -9
- data/app/views/decidim/amendments/compare_draft.html.erb +0 -18
- data/app/views/layouts/decidim/_edit_link.html.erb +0 -0
- data/app/views/layouts/decidim/header/_main_links_mobile.html.erb +0 -36
- data/config/initializers/carrierwave.rb +0 -15
- data/lib/decidim/carrier_wave_migrator_service.rb +0 -287
- data/lib/tasks/decidim_active_storage_migration_tasks.rake +0 -114
- data/lib/tasks/decidim_content_blocks_tasks.rake +0 -48
- /data/app/views/layouts/decidim/header/{_menu_breadcrumb_main_dropdown.html.erb → _menu_breadcrumb_main_dropdown_desktop.html.erb} +0 -0
@@ -1,56 +1,150 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import {
|
1
|
+
import data from "@emoji-mart/data"
|
2
|
+
import i18nEn from "@emoji-mart/data/i18n/en.json"
|
3
|
+
import { Picker } from "emoji-mart"
|
4
4
|
|
5
5
|
import * as i18n from "src/decidim/i18n";
|
6
|
+
import { screens } from "tailwindcss/defaultTheme"
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
class EmojiI18n {
|
9
|
+
static isObject(item) {
|
10
|
+
return (item && typeof item === "object" && !Array.isArray(item));
|
11
|
+
}
|
12
|
+
static deepMerge(target, ...sources) {
|
13
|
+
if (!sources.length) {
|
14
|
+
return target;
|
13
15
|
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
const source = sources.shift();
|
17
|
+
|
18
|
+
if (this.isObject(target) && this.isObject(source)) {
|
19
|
+
for (const key in source) {
|
20
|
+
if (this.isObject(source[key])) {
|
21
|
+
if (!target[key]) {
|
22
|
+
Object.assign(target, { [key]: {} });
|
23
|
+
}
|
24
|
+
this.deepMerge(target[key], source[key]);
|
25
|
+
} else {
|
26
|
+
Object.assign(target, { [key]: source[key] });
|
27
|
+
}
|
28
|
+
}
|
20
29
|
}
|
21
30
|
|
22
|
-
|
23
|
-
// messages = local "extra" messages
|
24
|
-
I18N_CONFIG = {
|
25
|
-
dictionary: dict,
|
26
|
-
messages: { buttonText }
|
27
|
-
}
|
28
|
-
return I18N_CONFIG;
|
31
|
+
return this.deepMerge(target, ...sources);
|
29
32
|
}
|
30
33
|
|
31
|
-
// Get the current locale used for the emoji database
|
32
|
-
//
|
33
|
-
// @returns {string} the current locale if it is supported by emoji base, or english as the fallback locale
|
34
34
|
static locale() {
|
35
|
-
|
35
|
+
return document.documentElement.getAttribute("lang");
|
36
|
+
}
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
static i18n() {
|
39
|
+
return this.deepMerge(i18nEn, i18n.getMessages("emojis"));
|
40
|
+
}
|
41
|
+
}
|
42
|
+
class EmojiPopUp {
|
43
|
+
|
44
|
+
constructor(pickerOptions, handlerElement) {
|
45
|
+
this.popUp = this.createContainer();
|
46
|
+
this.popUp.appendChild(this.createCloseButton());
|
47
|
+
this.popUp.appendChild(this.addStyles());
|
48
|
+
|
49
|
+
let container = document.createElement("div");
|
50
|
+
|
51
|
+
this.picker = new Picker({
|
52
|
+
parent: container,
|
53
|
+
i18n: EmojiI18n.i18n(),
|
54
|
+
locale: EmojiI18n.locale(),
|
55
|
+
data: data,
|
56
|
+
perLine: 8,
|
57
|
+
theme: "light",
|
58
|
+
emojiButtonSize: 41,
|
59
|
+
emojiSize: 30,
|
60
|
+
...(window.matchMedia(`(max-width: ${screens.sm})`).matches && { emojiButtonSize: 36 }),
|
61
|
+
...(window.matchMedia(`(max-width: ${screens.sm})`).matches && { emojiSize: 30 }),
|
62
|
+
...pickerOptions
|
63
|
+
});
|
64
|
+
|
65
|
+
this.popUp.appendChild(container);
|
66
|
+
|
67
|
+
this.setCoordinates(handlerElement);
|
68
|
+
}
|
69
|
+
|
70
|
+
createCloseButton() {
|
71
|
+
let closeButton = document.createElement("button");
|
72
|
+
closeButton.type = "button";
|
73
|
+
closeButton.classList.add("emoji-picker__closeButton");
|
74
|
+
closeButton.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/></svg>';
|
75
|
+
closeButton.addEventListener("click", () => {
|
76
|
+
this.close();
|
77
|
+
});
|
78
|
+
return closeButton;
|
79
|
+
}
|
80
|
+
|
81
|
+
addStyles() {
|
82
|
+
let style = document.createElement("style");
|
83
|
+
style.innerHTML = `
|
84
|
+
em-emoji-picker {
|
85
|
+
--color-border: rgb(204, 204, 204);
|
86
|
+
--rgb-background: 249, 250, 251;
|
87
|
+
--rgb-color: 0,0,0;
|
88
|
+
--rgb-accent: var(--primary-rgb);
|
89
|
+
--shadow: 5px 5px 15px -8px rgba(0,0,0,0.75);
|
90
|
+
--color-border-over: rgba(0, 0, 0, 0.1);
|
91
|
+
--rgb-input: 235, 235, 235;
|
92
|
+
--background-rgb: var(--primary-rgb);
|
93
|
+
--category-icon-size: 24px;
|
94
|
+
|
95
|
+
border: 1px solid var(--color-border);
|
96
|
+
}
|
97
|
+
`;
|
98
|
+
|
99
|
+
return style;
|
100
|
+
}
|
101
|
+
|
102
|
+
createContainer() {
|
103
|
+
const container = document.createElement("div");
|
104
|
+
|
105
|
+
container.classList.add("emoji-picker__popupContainer");
|
106
|
+
container.classList.add("emoji__decidim");
|
107
|
+
container.id = "picker"
|
108
|
+
|
109
|
+
container.style.position = "absolute";
|
110
|
+
container.style.zIndex = "1000";
|
111
|
+
|
112
|
+
document.body.appendChild(container);
|
113
|
+
|
114
|
+
return container;
|
115
|
+
}
|
116
|
+
|
117
|
+
setCoordinates(handlerElement) {
|
118
|
+
let rect = handlerElement.getBoundingClientRect();
|
119
|
+
|
120
|
+
let leftPosition = window.scrollX + rect.x;
|
121
|
+
let topPosition = window.scrollY + rect.y;
|
122
|
+
|
123
|
+
topPosition -= this.popUp.offsetHeight;
|
124
|
+
leftPosition -= this.popUp.offsetWidth;
|
125
|
+
|
126
|
+
let popUpWidth = window.matchMedia(`(max-width: ${screens.sm})`).matches
|
127
|
+
? 41 * 9
|
128
|
+
: 36 * 8;
|
129
|
+
// Emoji picker min-width of 352px set in styles.scss in emoji-mart
|
130
|
+
leftPosition -= popUpWidth;
|
131
|
+
|
132
|
+
if (leftPosition < 0) {
|
133
|
+
leftPosition = parseInt((window.screen.availWidth - popUpWidth) / 2, 10) + 30;
|
44
134
|
}
|
45
135
|
|
46
|
-
|
136
|
+
this.popUp.style.top = `${topPosition}px`;
|
137
|
+
this.popUp.style.left = `${leftPosition}px`;
|
47
138
|
}
|
48
139
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
140
|
+
close() {
|
141
|
+
this.popUp.remove();
|
142
|
+
}
|
143
|
+
}
|
53
144
|
|
145
|
+
export class EmojiButton {
|
146
|
+
|
147
|
+
constructor(elem) {
|
54
148
|
const wrapper = document.createElement("span");
|
55
149
|
wrapper.className = "emoji__container"
|
56
150
|
const btnContainer = document.createElement("span");
|
@@ -58,7 +152,7 @@ export class EmojiButton {
|
|
58
152
|
const btn = document.createElement("button");
|
59
153
|
btn.className = "emoji__button"
|
60
154
|
btn.type = "button"
|
61
|
-
btn.setAttribute("aria-label",
|
155
|
+
btn.setAttribute("aria-label", EmojiI18n.i18n().button)
|
62
156
|
btn.innerHTML = '<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="smile" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"></path></svg>'
|
63
157
|
const referenceElement = document.createElement("span");
|
64
158
|
referenceElement.className = "emoji__reference";
|
@@ -74,39 +168,8 @@ export class EmojiButton {
|
|
74
168
|
// belong to for Foundation Abide to show them automatically.
|
75
169
|
parent.querySelectorAll(".form-error").forEach((el) => wrapper.appendChild(el));
|
76
170
|
|
77
|
-
|
78
|
-
|
79
|
-
locale: EmojiButton.locale(),
|
80
|
-
i18n: i18nDictionary,
|
81
|
-
// shrink the size of the emoji when mobile
|
82
|
-
...(window.matchMedia(`(max-width: ${screens.sm})`).matches && { emojiSize: "1.5rem" })
|
83
|
-
}, {
|
84
|
-
position: "bottom-end",
|
85
|
-
triggerElement: btn,
|
86
|
-
className: "emoji__decidim",
|
87
|
-
referenceElement
|
88
|
-
});
|
89
|
-
|
90
|
-
// Prevent the picker close button to submit the comment form
|
91
|
-
picker.closeButton.type = "button";
|
92
|
-
|
93
|
-
let handlerPicker = () => {
|
94
|
-
picker.toggle();
|
95
|
-
}
|
96
|
-
|
97
|
-
btn.addEventListener("click", handlerPicker);
|
98
|
-
|
99
|
-
elem.addEventListener("characterCounter", (event) => {
|
100
|
-
if (event.detail.remaining >= 4) {
|
101
|
-
btn.addEventListener("click", handlerPicker);
|
102
|
-
btn.removeAttribute("style");
|
103
|
-
} else {
|
104
|
-
btn.removeEventListener("click", handlerPicker);
|
105
|
-
btn.setAttribute("style", "color:lightgrey");
|
106
|
-
}
|
107
|
-
});
|
108
|
-
|
109
|
-
picker.addEventListener("emoji:select", ({emoji}) => {
|
171
|
+
let emojiSelectHandler = (emojidata) => {
|
172
|
+
let emoji = emojidata.native;
|
110
173
|
if (elem.contentEditable === "true") {
|
111
174
|
if (elem.editor) {
|
112
175
|
elem.editor.chain().insertContent(` ${emoji} `).focus().run();
|
@@ -124,6 +187,42 @@ export class EmojiButton {
|
|
124
187
|
|
125
188
|
const event = new Event("emoji.added");
|
126
189
|
elem.dispatchEvent(event);
|
190
|
+
}
|
191
|
+
|
192
|
+
let handlerPicker = () => {
|
193
|
+
let popUp = document.getElementById("picker");
|
194
|
+
if (popUp) {
|
195
|
+
// We close the picker
|
196
|
+
popUp.remove();
|
197
|
+
return;
|
198
|
+
}
|
199
|
+
|
200
|
+
let pickerOptions = {
|
201
|
+
onEmojiSelect: (emoji) => emojiSelectHandler(emoji),
|
202
|
+
onClickOutside: (event) => {
|
203
|
+
if (event.target.parentNode === btn) {
|
204
|
+
return;
|
205
|
+
}
|
206
|
+
handlerPicker();
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
// eslint-disable-next-line no-new
|
211
|
+
new EmojiPopUp(pickerOptions, btn);
|
212
|
+
}
|
213
|
+
|
214
|
+
btn.addEventListener("click", handlerPicker);
|
215
|
+
|
216
|
+
elem.addEventListener("emoji.added", handlerPicker);
|
217
|
+
|
218
|
+
elem.addEventListener("characterCounter", (event) => {
|
219
|
+
if (event.detail.remaining >= 4) {
|
220
|
+
btn.addEventListener("click", handlerPicker);
|
221
|
+
btn.removeAttribute("style");
|
222
|
+
} else {
|
223
|
+
btn.removeEventListener("click", handlerPicker);
|
224
|
+
btn.setAttribute("style", "color:lightgrey");
|
225
|
+
}
|
127
226
|
});
|
128
227
|
}
|
129
228
|
}
|
@@ -27,7 +27,7 @@ $(() => {
|
|
27
27
|
cb([])
|
28
28
|
}).always(() => {
|
29
29
|
// This function runs Tribute every single time you type something
|
30
|
-
// So we must
|
30
|
+
// So we must evaluate DOM properties after each
|
31
31
|
const $parent = $(tribute.current.element).parent()
|
32
32
|
$parent.addClass("is-active")
|
33
33
|
|
@@ -42,7 +42,7 @@ const mentionsInitializer = () => {
|
|
42
42
|
cb([])
|
43
43
|
}).always(() => {
|
44
44
|
// This function runs Tribute every single time you type something
|
45
|
-
// So we must
|
45
|
+
// So we must evaluate DOM properties after each
|
46
46
|
const $parent = $(tribute.current.element).parent();
|
47
47
|
$parent.addClass("is-active");
|
48
48
|
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* This file handles the interactions of actions in notifications (if any)
|
3
|
+
* @param {HTMLElement} node target node
|
4
|
+
* @returns {void}
|
5
|
+
*/
|
6
|
+
export default function(node = document) {
|
7
|
+
const actions = node.querySelectorAll("[data-notification-action]")
|
8
|
+
if (!actions.length) {
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
|
12
|
+
const extractMessage = (detail) => {
|
13
|
+
return detail && detail.message || detail[0] && detail[0].message
|
14
|
+
};
|
15
|
+
|
16
|
+
const resolvePanel = (panel, message, klass) => {
|
17
|
+
panel.classList.remove("spinner-container");
|
18
|
+
if (message) {
|
19
|
+
panel.innerHTML = `<div class="callout ${klass}">${message}</div>`;
|
20
|
+
} else {
|
21
|
+
panel.innerHTML = "";
|
22
|
+
}
|
23
|
+
};
|
24
|
+
|
25
|
+
actions.forEach((action) => {
|
26
|
+
const panel = action.closest(".notification__snippet-actions")
|
27
|
+
action.addEventListener("ajax:beforeSend", () => {
|
28
|
+
panel.classList.add("spinner-container");
|
29
|
+
panel.querySelectorAll("[data-notification-action]").forEach((el) => {
|
30
|
+
el.disabled = true;
|
31
|
+
});
|
32
|
+
});
|
33
|
+
action.addEventListener("ajax:success", (event) => {
|
34
|
+
resolvePanel(panel, extractMessage(event.detail), "success");
|
35
|
+
});
|
36
|
+
action.addEventListener("ajax:error", (event) => {
|
37
|
+
resolvePanel(panel, extractMessage(event.detail) || window.Decidim.config.get("notifications").action_error, "alert");
|
38
|
+
});
|
39
|
+
});
|
40
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
// This script implements the sticky header and the sticky buttons. The sticky header hides when participants scroll down and shows when they scroll up.
|
2
|
+
// Sticky headers allow users to quickly access the navigation, search, and utility-navigation elements without scrolling up to the top of the page. They increase the discoverability of the elements in the header.
|
3
|
+
// The sticky buttons in the other hand, those are some of the main Call to Actions (CTAs) that remain accessible on the screen as the user scrolls through the detailed view of the Meetings, Proposals, Surveys, and Budgets components.
|
4
|
+
|
5
|
+
import { screens } from "tailwindcss/defaultTheme"
|
6
|
+
|
7
|
+
let prevScroll = window.scrollY;
|
8
|
+
const stickyHeader = document.querySelector("[data-sticky-header]");
|
9
|
+
const footer = document.querySelector("footer");
|
10
|
+
const stickyButtons = document.querySelectorAll("[data-sticky-buttons]");
|
11
|
+
|
12
|
+
const isElementInViewport = (element) => {
|
13
|
+
const rect = element.getBoundingClientRect();
|
14
|
+
return rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);
|
15
|
+
};
|
16
|
+
|
17
|
+
const adjustCtasButtons = () => {
|
18
|
+
if (!stickyButtons || !stickyButtons.length) {
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
|
22
|
+
let visibleButtons = Array.from(stickyButtons).filter(isElementInViewport);
|
23
|
+
|
24
|
+
if (visibleButtons.length > 0) {
|
25
|
+
const marginBottom = Math.max(...visibleButtons.map((ctasButton) => ctasButton.offsetHeight));
|
26
|
+
footer.style.marginBottom = `${marginBottom}px`;
|
27
|
+
} else {
|
28
|
+
footer.style.marginBottom = 0;
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
32
|
+
// Fix the menu bar container margin top when there are multiple elements in the sticky header
|
33
|
+
// As there could be different heights and we cannot know beforehand, we need to adjust this in a dynamic way
|
34
|
+
// For instance we could have the omnipresent banner, the admin bar and the offline banner
|
35
|
+
const fixMenuBarContainerMargin = () => {
|
36
|
+
if (!stickyHeader) {
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
|
40
|
+
const isMaxScreenSize = (key) => {
|
41
|
+
return window.matchMedia(`(max-width: ${screens[key]})`).matches;
|
42
|
+
}
|
43
|
+
|
44
|
+
const menuBarContainer = document.querySelector("#menu-bar-container");
|
45
|
+
const marginTop = isMaxScreenSize("md")
|
46
|
+
? stickyHeader.offsetHeight
|
47
|
+
: 0;
|
48
|
+
|
49
|
+
menuBarContainer.style.marginTop = `${marginTop}px`;
|
50
|
+
}
|
51
|
+
|
52
|
+
document.addEventListener("DOMContentLoaded", () => {
|
53
|
+
fixMenuBarContainerMargin();
|
54
|
+
});
|
55
|
+
|
56
|
+
window.addEventListener("resize", () => {
|
57
|
+
fixMenuBarContainerMargin();
|
58
|
+
});
|
59
|
+
|
60
|
+
if (stickyHeader) {
|
61
|
+
document.addEventListener("scroll", () => {
|
62
|
+
fixMenuBarContainerMargin();
|
63
|
+
|
64
|
+
// if a subelement is not visible it has no offsetParent
|
65
|
+
const header = document.getElementById("main-bar").offsetParent;
|
66
|
+
|
67
|
+
if (header && window.getComputedStyle(stickyHeader).position === "fixed") {
|
68
|
+
let currentScroll = window.scrollY;
|
69
|
+
let goingDown = prevScroll > currentScroll;
|
70
|
+
let change = Math.abs(prevScroll - currentScroll);
|
71
|
+
if (change > 5) {
|
72
|
+
if (goingDown || currentScroll < stickyHeader.offsetHeight) {
|
73
|
+
stickyHeader.style.top = 0;
|
74
|
+
} else {
|
75
|
+
stickyHeader.style.top = `-${stickyHeader.offsetHeight}px`;
|
76
|
+
}
|
77
|
+
prevScroll = currentScroll;
|
78
|
+
}
|
79
|
+
|
80
|
+
adjustCtasButtons();
|
81
|
+
}
|
82
|
+
});
|
83
|
+
|
84
|
+
document.addEventListener("on:toggle", () => {
|
85
|
+
adjustCtasButtons();
|
86
|
+
});
|
87
|
+
};
|
@@ -8,9 +8,8 @@ import { NetworkFirst, NetworkOnly } from "workbox-strategies";
|
|
8
8
|
import { CacheableResponsePlugin } from "workbox-cacheable-response";
|
9
9
|
import { ExpirationPlugin } from "workbox-expiration";
|
10
10
|
|
11
|
-
|
12
11
|
// https://developers.google.com/web/tools/workbox/guides/troubleshoot-and-debug#debugging_workbox
|
13
|
-
self.__WB_DISABLE_DEV_LOGS = true
|
12
|
+
self.__WB_DISABLE_DEV_LOGS = true;
|
14
13
|
|
15
14
|
/**
|
16
15
|
* This is a workaround to bypass a webpack compilation error
|
@@ -35,10 +34,12 @@ self.addEventListener("notificationclick", (event) => {
|
|
35
34
|
// Get all the Window clients
|
36
35
|
event.waitUntil(
|
37
36
|
self.clients.matchAll({ type: "window" }).then((clientsArr) => {
|
38
|
-
const windowToFocus = clientsArr.find(
|
37
|
+
const windowToFocus = clientsArr.find(
|
38
|
+
(windowClient) => windowClient.url === event.notification.data.url
|
39
|
+
);
|
39
40
|
if (windowToFocus) {
|
40
41
|
// If a Window tab matching the targeted URL already exists, focus that
|
41
|
-
windowToFocus.focus()
|
42
|
+
windowToFocus.focus();
|
42
43
|
} else {
|
43
44
|
// Otherwise, open a new tab to the applicable URL and focus it
|
44
45
|
self.clients.
|
@@ -51,7 +52,8 @@ self.addEventListener("notificationclick", (event) => {
|
|
51
52
|
|
52
53
|
// avoid caching admin or users paths
|
53
54
|
registerRoute(
|
54
|
-
({ url }) =>
|
55
|
+
({ url }) =>
|
56
|
+
["/admin/", "/users/"].some((path) => url.pathname.startsWith(path)),
|
55
57
|
new NetworkOnly()
|
56
58
|
);
|
57
59
|
|
@@ -69,7 +71,7 @@ registerRoute(
|
|
69
71
|
maxAgeSeconds: 60 * 60
|
70
72
|
})
|
71
73
|
]
|
72
|
-
})
|
74
|
+
})
|
73
75
|
);
|
74
76
|
|
75
77
|
// common recipes
|
@@ -19,7 +19,7 @@ const getAbsolutePosition = (node, relativeParent) => {
|
|
19
19
|
let [pageX, pageY] = [window.pageXOffset, window.pageYOffset]
|
20
20
|
if (relativeParent) {
|
21
21
|
// in order to calculate the relative parent position, we reuse this function,
|
22
|
-
// using the parent regarding the window and
|
22
|
+
// using the parent regarding the window and subtracting the topLeft corner (its relative position [0,0])
|
23
23
|
const { topLeft: [parentX, parentY] } = getAbsolutePosition(relativeParent);
|
24
24
|
[pageX, pageY] = [pageX - parentX, pageY - parentY]
|
25
25
|
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
.sc-wc-datepicker-h {
|
2
|
+
@apply absolute w-80 h-96 left-0;
|
3
|
+
}
|
4
|
+
|
5
|
+
.wc-datepicker {
|
6
|
+
@apply absolute w-80 h-96 z-20 text-sm;
|
7
|
+
|
8
|
+
&__header {
|
9
|
+
@apply px-0 py-0 pb-0 gap-0 h-14;
|
10
|
+
}
|
11
|
+
|
12
|
+
&__month-select,
|
13
|
+
&__year-select {
|
14
|
+
@apply h-10 mb-4 leading-normal;
|
15
|
+
}
|
16
|
+
|
17
|
+
&__month-select {
|
18
|
+
@apply pr-3;
|
19
|
+
}
|
20
|
+
|
21
|
+
&__year-select {
|
22
|
+
@apply max-w-fit;
|
23
|
+
}
|
24
|
+
|
25
|
+
&__previous-month-button,
|
26
|
+
&__next-month-button,
|
27
|
+
&__previous-year-button,
|
28
|
+
&__next-year-button {
|
29
|
+
@apply h-10 text-secondary bg-transparent;
|
30
|
+
}
|
31
|
+
|
32
|
+
&__date:focus > * {
|
33
|
+
@apply outline-1 outline-gray;
|
34
|
+
}
|
35
|
+
|
36
|
+
&__date--selected > * {
|
37
|
+
@apply bg-secondary border-solid border-2 border-gray;
|
38
|
+
}
|
39
|
+
|
40
|
+
&__date--selected:hover > * {
|
41
|
+
@apply bg-secondary;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.datepicker {
|
46
|
+
&__container {
|
47
|
+
@apply absolute w-80 h-96;
|
48
|
+
}
|
49
|
+
|
50
|
+
&__datepicker-row {
|
51
|
+
@apply flex gap-4;
|
52
|
+
}
|
53
|
+
|
54
|
+
&__time-row {
|
55
|
+
@apply flex top-6 absolute w-full;
|
56
|
+
}
|
57
|
+
|
58
|
+
&__date-column,
|
59
|
+
&__time-column {
|
60
|
+
@apply flex-1 w-1/2 relative;
|
61
|
+
|
62
|
+
> input {
|
63
|
+
@apply h-9;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
&__hour-column,
|
68
|
+
&__minute-column {
|
69
|
+
@apply flex-1 h-20 relative my-2 mx-8 rounded border border-solid border-gray;
|
70
|
+
}
|
71
|
+
|
72
|
+
&__period-column {
|
73
|
+
@apply w-28 h-8 top-1 right-10 my-2 mx-1 absolute;
|
74
|
+
}
|
75
|
+
|
76
|
+
&__calendar-button {
|
77
|
+
@apply h-8 rounded absolute top-4 mt-0.5 fill-gray-2 leading-3 right-2;
|
78
|
+
}
|
79
|
+
|
80
|
+
&__clock-button {
|
81
|
+
@apply h-8 rounded absolute top-4 mt-0.5 fill-gray-2 leading-3 right-2;
|
82
|
+
}
|
83
|
+
|
84
|
+
&__time-frame {
|
85
|
+
@apply w-52 max-w-lg h-40 bg-white absolute border border-solid border-[#f2f3f5] z-20;
|
86
|
+
}
|
87
|
+
|
88
|
+
&__hour-picker,
|
89
|
+
&__minute-picker {
|
90
|
+
@apply w-1/2 left-2.5 h-8 text-center text-sm absolute top-6;
|
91
|
+
|
92
|
+
&:hover {
|
93
|
+
@apply cursor-default;
|
94
|
+
}
|
95
|
+
|
96
|
+
&:focus-visible {
|
97
|
+
@apply outline-0;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
&__close-calendar {
|
102
|
+
@apply absolute z-30 bottom-2 right-1;
|
103
|
+
}
|
104
|
+
|
105
|
+
&__pick-calendar {
|
106
|
+
@apply absolute z-30 bottom-2 right-16 mr-1;
|
107
|
+
|
108
|
+
&:disabled {
|
109
|
+
@apply bg-gray;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
&__close-clock {
|
114
|
+
@apply absolute z-30 bottom-2 right-1;
|
115
|
+
}
|
116
|
+
|
117
|
+
&__reset-clock {
|
118
|
+
@apply absolute z-30 bottom-2 left-2;
|
119
|
+
}
|
120
|
+
|
121
|
+
&__select-clock {
|
122
|
+
@apply absolute z-30 bottom-2 right-16 mr-1;
|
123
|
+
}
|
124
|
+
|
125
|
+
&__hour-up {
|
126
|
+
@apply absolute rounded-t w-full h-6;
|
127
|
+
|
128
|
+
&:hover {
|
129
|
+
@apply bg-gray-3;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
&__hour-down {
|
134
|
+
@apply absolute rounded-b w-full h-6 bottom-0;
|
135
|
+
|
136
|
+
&:hover {
|
137
|
+
@apply bg-gray-3;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
&__minute-up {
|
142
|
+
@apply absolute rounded-t w-full h-6;
|
143
|
+
|
144
|
+
&:hover {
|
145
|
+
@apply bg-gray-3;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
&__minute-down {
|
150
|
+
@apply absolute rounded-b w-full h-6 bottom-0;
|
151
|
+
|
152
|
+
&:hover {
|
153
|
+
@apply bg-gray-3;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
&__period-am {
|
158
|
+
@apply ml-1 accent-secondary bg-secondary;
|
159
|
+
}
|
160
|
+
|
161
|
+
&__period-pm {
|
162
|
+
@apply ml-1;
|
163
|
+
}
|
164
|
+
|
165
|
+
&__label-row {
|
166
|
+
@apply absolute flex top-2 w-full text-sm font-semibold;
|
167
|
+
}
|
168
|
+
|
169
|
+
&__hour-label-container {
|
170
|
+
@apply flex-1 text-center;
|
171
|
+
}
|
172
|
+
|
173
|
+
&__minute-label-container {
|
174
|
+
@apply flex-1 text-center;
|
175
|
+
}
|
176
|
+
|
177
|
+
&__help-text-container {
|
178
|
+
@apply w-full h-10 relative;
|
179
|
+
}
|
180
|
+
|
181
|
+
&__help-date {
|
182
|
+
@apply w-1/2 relative inline-block;
|
183
|
+
}
|
184
|
+
|
185
|
+
&__help-time {
|
186
|
+
@apply w-1/2 relative inline-block left-2;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
input[type="date"]::-webkit-calendar-picker-indicator {
|
191
|
+
display: none;
|
192
|
+
-webkit-appearance: none;
|
193
|
+
}
|