decidim-admin 0.24.0 → 0.25.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/cells/decidim/admin/content_block/show.erb +2 -2
- data/app/commands/decidim/admin/block_user.rb +6 -0
- data/app/commands/decidim/admin/create_attachment.rb +2 -1
- data/app/commands/decidim/admin/hide_resource.rb +1 -0
- data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +1 -1
- data/app/commands/decidim/admin/update_attachment.rb +5 -1
- data/app/commands/decidim/admin/update_content_block.rb +1 -1
- data/app/commands/decidim/admin/update_external_domain_whitelist.rb +32 -0
- data/app/commands/decidim/admin/update_organization.rb +2 -1
- data/app/commands/decidim/admin/update_organization_appearance.rb +4 -14
- data/app/controllers/concerns/decidim/admin/filterable.rb +1 -3
- data/app/controllers/concerns/decidim/participatory_space_private_users/admin/filterable.rb +34 -0
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +1 -4
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +6 -3
- data/app/controllers/decidim/admin/imports_controller.rb +1 -0
- data/app/controllers/decidim/admin/moderated_users_controller.rb +6 -2
- data/app/controllers/decidim/admin/organization_controller.rb +11 -1
- data/app/controllers/decidim/admin/organization_external_domain_whitelist_controller.rb +38 -0
- data/app/controllers/decidim/admin/users_controller.rb +7 -1
- data/app/forms/decidim/admin/external_domain_form.rb +19 -0
- data/app/forms/decidim/admin/import_form.rb +1 -0
- data/app/forms/decidim/admin/organization_appearance_form.rb +7 -7
- data/app/forms/decidim/admin/organization_external_domain_whitelist_form.rb +23 -0
- data/app/forms/decidim/admin/organization_form.rb +1 -0
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +2 -0
- data/app/forms/decidim/admin/user_group_csv_verification_form.rb +2 -0
- data/app/helpers/decidim/admin/filterable_helper.rb +1 -1
- data/app/helpers/decidim/admin/menu_helper.rb +7 -7
- data/app/helpers/decidim/admin/uploader_image_dimensions_helper.rb +2 -1
- data/app/jobs/decidim/admin/expire_impersonation_job.rb +1 -2
- data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +1 -1
- data/app/packs/entrypoints/decidim_admin.js +43 -0
- data/app/packs/entrypoints/decidim_admin.scss +1 -0
- data/app/packs/src/decidim/admin/application.js +68 -0
- data/app/packs/src/decidim/admin/auto_buttons_by_position.component.js +37 -0
- data/app/packs/src/decidim/admin/auto_label_by_position.component.js +28 -0
- data/app/packs/src/decidim/admin/autocomplete.component.js +146 -0
- data/app/{frontend/components/autocomplete.component.test.tsx → packs/src/decidim/admin/autocomplete.component.test.js} +1 -2
- data/app/packs/src/decidim/admin/budget_rule_toggler.component.js +50 -0
- data/app/{assets/javascripts → packs/src}/decidim/admin/choose_language.js +0 -0
- data/app/packs/src/decidim/admin/draggable-list.js +30 -0
- data/app/packs/src/decidim/admin/dynamic_fields.component.js +230 -0
- data/app/packs/src/decidim/admin/external_domain_whitelist.js +100 -0
- data/app/packs/src/decidim/admin/field_dependent_inputs.component.js +37 -0
- data/app/{assets/javascripts/decidim/admin/form.js.es6 → packs/src/decidim/admin/form.js} +6 -9
- data/app/{assets/javascripts/decidim/admin/import_guidance.js.es6 → packs/src/decidim/admin/import_guidance.js} +2 -3
- data/app/{assets/javascripts/decidim/admin/managed_users.js.es6 → packs/src/decidim/admin/managed_users.js} +4 -4
- data/app/packs/src/decidim/admin/moderations.js +20 -0
- data/app/{assets/javascripts/decidim/admin/newsletters.js.es6 → packs/src/decidim/admin/newsletters.js} +0 -0
- data/app/{assets/javascripts/decidim/admin/officializations.js.es6 → packs/src/decidim/admin/officializations.js} +0 -0
- data/app/{assets/javascripts/decidim/admin/proposal_infinite_edit.js.es6 → packs/src/decidim/admin/proposal_infinite_edit.js} +0 -0
- data/app/{assets/javascripts/decidim/admin/resources_permissions.js.es6 → packs/src/decidim/admin/resources_permissions.js} +3 -5
- data/app/packs/src/decidim/admin/scope_picker_enabler.component.js +12 -0
- data/app/packs/src/decidim/admin/sort_list.component.js +31 -0
- data/app/packs/src/decidim/admin/sortable.js +21 -0
- data/app/packs/src/decidim/admin/subform_multi_toggler.component.js +38 -0
- data/app/packs/src/decidim/admin/subform_toggler.component.js +38 -0
- data/app/{assets/javascripts/decidim/admin/tab_focus.js.es6 → packs/src/decidim/admin/tab_focus.js} +0 -2
- data/app/packs/src/decidim/admin/toggle_nav.js +14 -0
- data/app/{assets/javascripts/decidim/admin/welcome_notification.js.es6 → packs/src/decidim/admin/welcome_notification.js} +2 -2
- data/app/packs/stylesheets/decidim/admin/_decidim.scss +24 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/_variables.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/application.scss +22 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/bundle.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_accordion.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_dropdown-menu.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_sortable.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_action-icon.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_block_user.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_cards.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_categories.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_dropdown_inverted.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/extra/_editor.scss +1 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_email_preview.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_label-required.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_login.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_logs.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_organization-appearance.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_quill.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_select_multiple.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_show_email.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_sort.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_title_bar.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_action-icon.scss +1 -1
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_agenda.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_buttons.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_callouts.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_card-grid.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_cards.scss +1 -1
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_char-counter.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_component-counter.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_draggable-list.scss +2 -2
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_dropdown.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_filters.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_forms.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_icons.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_import_result.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_layout.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_loading-spinner.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_main-nav.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_moderations.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +43 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_pics.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_process-header.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_reveal.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_secondary-nav.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_table-list.scss +13 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_tabs.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_title-bar.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_typography.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_user-login.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_users_statistics.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss +0 -0
- data/{vendor/assets/stylesheets → app/packs/stylesheets/decidim/admin}/plugins/jquery.auto-complete.css +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/user_moderations.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_flex.scss +2 -2
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_helpers.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_keyframes.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_mixins.scss +30 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_settings.scss +11 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_toggle-expand.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_constants.scss +1 -1
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_math.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +14 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +16 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +36 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +46 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +17 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_cot.scss +6 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_csc.scss +6 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_exp.scss +10 -6
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +21 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +25 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +20 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +39 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +34 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sec.scss +6 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sin.scss +4 -3
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +21 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss +6 -3
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +6 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +6 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +11 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +19 -0
- data/app/presenters/decidim/admin/simple_menu_presenter.rb +11 -0
- data/app/queries/decidim/admin/newsletter_recipients.rb +3 -1
- data/app/views/decidim/admin/area_types/index.html.erb +2 -2
- data/app/views/decidim/admin/areas/index.html.erb +1 -1
- data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
- data/app/views/decidim/admin/categories/index.html.erb +1 -1
- data/app/views/decidim/admin/components/_form.html.erb +0 -2
- data/app/views/decidim/admin/impersonations/_form.html.erb +3 -1
- data/app/views/decidim/admin/imports/new.html.erb +1 -9
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +1 -3
- data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
- data/app/views/decidim/admin/officializations/index.html.erb +3 -3
- data/app/views/decidim/admin/organization/_form.html.erb +6 -2
- data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -2
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +20 -4
- data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +7 -7
- data/app/views/decidim/admin/organization_external_domain_whitelist/_external_domain.html.erb +31 -0
- data/app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb +37 -0
- data/app/views/decidim/admin/organization_external_domain_whitelist/edit.html.erb +6 -0
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +4 -4
- data/app/views/decidim/admin/resource_permissions/edit.html.erb +0 -2
- data/app/views/decidim/admin/scope_types/index.html.erb +3 -3
- data/app/views/decidim/admin/scopes/index.html.erb +1 -1
- data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/_form.html.erb +0 -1
- data/app/views/decidim/admin/static_pages/_topic.html.erb +3 -3
- data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
- data/app/views/decidim/admin/users/index.html.erb +10 -9
- data/app/views/layouts/decidim/admin/_application.html.erb +2 -1
- data/app/views/layouts/decidim/admin/_header.html.erb +2 -3
- data/app/views/layouts/decidim/admin/_js_configuration.html.erb +27 -0
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +1 -1
- data/app/views/layouts/decidim/admin/global_moderations.html.erb +1 -1
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/app/views/layouts/decidim/admin/pages.html.erb +2 -2
- data/app/views/layouts/decidim/admin/settings.html.erb +1 -1
- data/app/views/layouts/decidim/admin/users.html.erb +2 -52
- data/config/assets.rb +8 -0
- data/config/locales/ar.yml +0 -4
- data/config/locales/bg.yml +0 -3
- data/config/locales/ca.yml +37 -6
- data/config/locales/cs.yml +52 -9
- data/config/locales/de.yml +18 -6
- data/config/locales/el.yml +0 -4
- data/config/locales/en.yml +59 -16
- data/config/locales/eo.yml +0 -1
- data/config/locales/es-MX.yml +19 -6
- data/config/locales/es-PY.yml +19 -6
- data/config/locales/es.yml +19 -6
- data/config/locales/eu.yml +0 -4
- data/config/locales/fi-plain.yml +49 -6
- data/config/locales/fi.yml +49 -6
- data/config/locales/fr-CA.yml +53 -6
- data/config/locales/fr-LU.yml +1029 -0
- data/config/locales/fr.yml +53 -6
- data/config/locales/gl.yml +77 -6
- data/config/locales/hu.yml +70 -4
- data/config/locales/id-ID.yml +0 -4
- data/config/locales/is-IS.yml +0 -4
- data/config/locales/it.yml +161 -10
- data/config/locales/ja.yml +160 -5
- data/config/locales/lb-LU.yml +1 -0
- data/config/locales/lv.yml +0 -4
- data/config/locales/nl.yml +20 -6
- data/config/locales/no.yml +8 -6
- data/config/locales/pl.yml +45 -24
- data/config/locales/pt-BR.yml +346 -4
- data/config/locales/pt.yml +6 -4
- data/config/locales/ro-RO.yml +325 -121
- data/config/locales/ru.yml +0 -4
- data/config/locales/sk.yml +0 -4
- data/config/locales/sl.yml +0 -4
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +144 -2
- data/config/locales/tr-TR.yml +0 -4
- data/config/locales/uk.yml +0 -2
- data/config/locales/zh-CN.yml +0 -4
- data/config/routes.rb +2 -0
- data/lib/decidim/admin/engine.rb +210 -137
- data/lib/decidim/admin/import/readers.rb +3 -3
- data/lib/decidim/admin/import/readers/xlsx.rb +25 -0
- data/lib/decidim/admin/test.rb +1 -0
- data/lib/decidim/admin/test/filters_participatory_space_users_examples.rb +73 -0
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
- data/lib/decidim/admin/test/manage_attachments_examples.rb +1 -1
- data/lib/decidim/admin/version.rb +1 -1
- metadata +143 -181
- data/app/assets/config/decidim_admin_manifest.js +0 -8
- data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -77
- data/app/assets/javascripts/decidim/admin/auto_buttons_by_position.component.js.es6 +0 -42
- data/app/assets/javascripts/decidim/admin/auto_label_by_position.component.js.es6 +0 -33
- data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +0 -55
- data/app/assets/javascripts/decidim/admin/bundle.js +0 -34
- data/app/assets/javascripts/decidim/admin/bundle.js.map +0 -1
- data/app/assets/javascripts/decidim/admin/draggable-list.js.es6 +0 -30
- data/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6 +0 -233
- data/app/assets/javascripts/decidim/admin/field_dependent_inputs.component.js.es6 +0 -39
- data/app/assets/javascripts/decidim/admin/moderations.js.es6 +0 -24
- data/app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6 +0 -14
- data/app/assets/javascripts/decidim/admin/sort_list.component.js.es6 +0 -35
- data/app/assets/javascripts/decidim/admin/sortable.js.es6 +0 -22
- data/app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6 +0 -43
- data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +0 -42
- data/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +0 -17
- data/app/assets/javascripts/decidim/admin/user_moderations.js +0 -2
- data/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -20
- data/app/assets/stylesheets/decidim/admin/application.scss.erb +0 -6
- data/app/assets/stylesheets/decidim/admin/extra/_editor.scss +0 -1
- data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +0 -43
- data/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +0 -29
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +0 -12
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +0 -12
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +0 -28
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +0 -37
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +0 -13
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +0 -18
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +0 -21
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +0 -17
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +0 -34
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +0 -28
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +0 -16
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +0 -4
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +0 -4
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +0 -8
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +0 -13
- data/app/frontend/components/autocomplete.component.tsx +0 -198
- data/app/frontend/entry.ts +0 -17
- data/app/frontend/entry_test.ts +0 -4
- data/app/helpers/decidim/admin/sidebar_menu_helper.rb +0 -13
- data/config/locales/ja-JP.yml +0 -855
- data/lib/decidim/admin/import/readers/xls.rb +0 -25
- data/vendor/assets/javascripts/html.sortable.js +0 -691
- data/vendor/assets/javascripts/jquery.auto-complete.js +0 -171
- data/vendor/assets/javascripts/jquery.serializejson.js +0 -344
- data/vendor/assets/javascripts/moment.min.js +0 -1
@@ -1,39 +0,0 @@
|
|
1
|
-
((exports) => {
|
2
|
-
class FieldDependentInputsComponent {
|
3
|
-
constructor(options = {}) {
|
4
|
-
this.controllerField = options.controllerField;
|
5
|
-
this.wrapperSelector = options.wrapperSelector;
|
6
|
-
this.dependentFieldsSelector = options.dependentFieldsSelector;
|
7
|
-
this.dependentInputSelector = options.dependentInputSelector;
|
8
|
-
this.enablingCondition = options.enablingCondition;
|
9
|
-
this._bindEvent();
|
10
|
-
this._run();
|
11
|
-
}
|
12
|
-
|
13
|
-
_run() {
|
14
|
-
const $controllerField = this.controllerField;
|
15
|
-
const $dependentFields = $controllerField.parents(this.wrapperSelector).find(this.dependentFieldsSelector);
|
16
|
-
const $dependentInputs = $dependentFields.find(this.dependentInputSelector);
|
17
|
-
|
18
|
-
if (this.enablingCondition($controllerField)) {
|
19
|
-
$dependentInputs.prop("disabled", false);
|
20
|
-
$dependentFields.show();
|
21
|
-
} else {
|
22
|
-
$dependentInputs.prop("disabled", true);
|
23
|
-
$dependentFields.hide();
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
_bindEvent() {
|
28
|
-
this.controllerField.on("change", () => {
|
29
|
-
this._run();
|
30
|
-
});
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
exports.DecidimAdmin = exports.DecidimAdmin || {};
|
35
|
-
exports.DecidimAdmin.FieldDependentInputsComponent = FieldDependentInputsComponent;
|
36
|
-
exports.DecidimAdmin.createFieldDependentInputs = (options) => {
|
37
|
-
return new FieldDependentInputsComponent(options);
|
38
|
-
};
|
39
|
-
})(window);
|
@@ -1,24 +0,0 @@
|
|
1
|
-
((exports) => {
|
2
|
-
const $ = exports.$; // eslint-disable-line
|
3
|
-
|
4
|
-
$(() => {
|
5
|
-
const $moderationDetails = $(".moderation-details");
|
6
|
-
const $toggleContentButton = $moderationDetails.find(".toggle-content");
|
7
|
-
const $reportedContent = $moderationDetails.find(".reported-content");
|
8
|
-
const $currentContent = $reportedContent.find(".current");
|
9
|
-
const $originalContent = $reportedContent.find(".original");
|
10
|
-
|
11
|
-
$originalContent.hide();
|
12
|
-
|
13
|
-
$toggleContentButton.on("click", () => {
|
14
|
-
$currentContent.toggle();
|
15
|
-
$originalContent.toggle();
|
16
|
-
|
17
|
-
if ($currentContent.is(":hidden")) {
|
18
|
-
$toggleContentButton.html($toggleContentButton.data("see-current-button-label"));
|
19
|
-
} else {
|
20
|
-
$toggleContentButton.html($toggleContentButton.data("see-original-button-label"));
|
21
|
-
}
|
22
|
-
})
|
23
|
-
})
|
24
|
-
})(window)
|
@@ -1,14 +0,0 @@
|
|
1
|
-
$(() => {
|
2
|
-
((exports) => {
|
3
|
-
const $ComponentScopeEnabled = $("#component_settings_scopes_enabled");
|
4
|
-
const $ComponentScopeId = $("#component_settings_scope_id");
|
5
|
-
|
6
|
-
if ($(".edit_component, .new_component").length > 0) {
|
7
|
-
$ComponentScopeEnabled.on("change", (event) => {
|
8
|
-
const checked = event.target.checked;
|
9
|
-
exports.theDataPicker.enabled($ComponentScopeId, checked);
|
10
|
-
})
|
11
|
-
exports.theDataPicker.enabled($ComponentScopeId, $ComponentScopeEnabled.prop("checked"));
|
12
|
-
}
|
13
|
-
})(window);
|
14
|
-
});
|
@@ -1,35 +0,0 @@
|
|
1
|
-
// = require html.sortable
|
2
|
-
|
3
|
-
((exports) => {
|
4
|
-
|
5
|
-
class SortListComponent {
|
6
|
-
|
7
|
-
/**
|
8
|
-
* Creates a sortable list using hmtl5sortable function.
|
9
|
-
*
|
10
|
-
* @param {String} sortListSelector The list selector that has to be sortable.
|
11
|
-
* @param {Object} options An object containing the same options as html5sortable. It also includes
|
12
|
-
* an extra option `onSortUpdate`, a callback which returns the children collection
|
13
|
-
* whenever the list order has been changed.
|
14
|
-
*
|
15
|
-
* @returns {void} Nothing.
|
16
|
-
*/
|
17
|
-
constructor(sortListSelector, options) {
|
18
|
-
if ($(sortListSelector).length > 0) {
|
19
|
-
exports.sortable(sortListSelector, options)[0].addEventListener("sortupdate", (event) => {
|
20
|
-
const $children = $(event.target).children();
|
21
|
-
|
22
|
-
if (options.onSortUpdate) {
|
23
|
-
options.onSortUpdate($children);
|
24
|
-
}
|
25
|
-
});
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
exports.DecidimAdmin = exports.DecidimAdmin || {};
|
31
|
-
exports.DecidimAdmin.SortListComponent = SortListComponent;
|
32
|
-
exports.DecidimAdmin.createSortList = (sortListSelector, options) => {
|
33
|
-
return new SortListComponent(sortListSelector, options);
|
34
|
-
};
|
35
|
-
})(window);
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/* eslint-disable no-ternary */
|
2
|
-
((exports) => {
|
3
|
-
const { createSortList } = exports.DecidimAdmin;
|
4
|
-
|
5
|
-
// Once in DOM
|
6
|
-
$(() => {
|
7
|
-
const selector = ".js-sortable"
|
8
|
-
const $sortable = $(selector)
|
9
|
-
|
10
|
-
$sortable.each((index, elem) => {
|
11
|
-
const item = (elem.id)
|
12
|
-
? `#${elem.id}`
|
13
|
-
: selector
|
14
|
-
|
15
|
-
createSortList(item, {
|
16
|
-
handle: "li",
|
17
|
-
forcePlaceholderSize: true,
|
18
|
-
placeholderClass: "sort-placeholder"
|
19
|
-
})
|
20
|
-
})
|
21
|
-
})
|
22
|
-
})(window)
|
@@ -1,43 +0,0 @@
|
|
1
|
-
((exports) => {
|
2
|
-
class SubformMultiTogglerComponent {
|
3
|
-
constructor(options = {}) {
|
4
|
-
this.controllerSelect = options.controllerSelect;
|
5
|
-
this.subformWrapperClass = options.subformWrapperClass;
|
6
|
-
this.globalWrapperSelector = options.globalWrapperSelector;
|
7
|
-
this._bindEvent();
|
8
|
-
this._runAll();
|
9
|
-
}
|
10
|
-
|
11
|
-
_runAll() {
|
12
|
-
this.controllerSelect.each((idx, el) => {
|
13
|
-
this.run(el);
|
14
|
-
});
|
15
|
-
}
|
16
|
-
|
17
|
-
run(target) {
|
18
|
-
let $target = $(target);
|
19
|
-
let subformWrapperClass = this.subformWrapperClass;
|
20
|
-
let value = $target.val();
|
21
|
-
|
22
|
-
let $form = $target.parents(this.globalWrapperSelector);
|
23
|
-
let $selectedSubform = $form.find(`#${subformWrapperClass}-${value}`)
|
24
|
-
|
25
|
-
if ($target.prop("checked")) {
|
26
|
-
$selectedSubform.find("input,textarea,select").prop("disabled", false);
|
27
|
-
$selectedSubform.show();
|
28
|
-
} else {
|
29
|
-
$selectedSubform.find("input,textarea,select").prop("disabled", true);
|
30
|
-
$selectedSubform.hide();
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
_bindEvent() {
|
35
|
-
this.controllerSelect.on("change", (event) => {
|
36
|
-
this.run(event.target);
|
37
|
-
});
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
exports.DecidimAdmin = exports.DecidimAdmin || {};
|
42
|
-
exports.DecidimAdmin.SubformMultiTogglerComponent = SubformMultiTogglerComponent;
|
43
|
-
})(window);
|
@@ -1,42 +0,0 @@
|
|
1
|
-
((exports) => {
|
2
|
-
class SubformTogglerComponent {
|
3
|
-
constructor(options = {}) {
|
4
|
-
this.controllerSelect = options.controllerSelect;
|
5
|
-
this.subformWrapperClass = options.subformWrapperClass;
|
6
|
-
this.globalWrapperSelector = options.globalWrapperSelector;
|
7
|
-
this._bindEvent();
|
8
|
-
this._runAll();
|
9
|
-
}
|
10
|
-
|
11
|
-
_runAll() {
|
12
|
-
this.controllerSelect.each((idx, el) => {
|
13
|
-
this.run(el);
|
14
|
-
});
|
15
|
-
}
|
16
|
-
|
17
|
-
run(target) {
|
18
|
-
let $target = $(target);
|
19
|
-
let subformWrapperClass = this.subformWrapperClass;
|
20
|
-
let value = $target.val();
|
21
|
-
|
22
|
-
let $form = $target.parents(this.globalWrapperSelector);
|
23
|
-
let $subforms = $form.find(`.${subformWrapperClass}`);
|
24
|
-
let $selectedSubform = $subforms.filter(`#${subformWrapperClass}-${value}`)
|
25
|
-
|
26
|
-
$subforms.find("input,textarea,select").prop("disabled", true);
|
27
|
-
$subforms.hide();
|
28
|
-
|
29
|
-
$selectedSubform.find("input,textarea,select").prop("disabled", false);
|
30
|
-
$selectedSubform.show();
|
31
|
-
}
|
32
|
-
|
33
|
-
_bindEvent() {
|
34
|
-
this.controllerSelect.on("change", (event) => {
|
35
|
-
this.run(event.target);
|
36
|
-
});
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
exports.DecidimAdmin = exports.DecidimAdmin || {};
|
41
|
-
exports.DecidimAdmin.SubformTogglerComponent = SubformTogglerComponent;
|
42
|
-
})(window);
|
@@ -1,17 +0,0 @@
|
|
1
|
-
((exports) => {
|
2
|
-
const showHideNav = (evt) => {
|
3
|
-
const navMenu = document.querySelector(".layout-nav");
|
4
|
-
|
5
|
-
evt.preventDefault();
|
6
|
-
navMenu.classList.toggle("is-nav-open");
|
7
|
-
}
|
8
|
-
|
9
|
-
const toggleNav = () => {
|
10
|
-
const navTrigger = document.querySelector(".menu-trigger");
|
11
|
-
|
12
|
-
navTrigger.addEventListener("click", showHideNav);
|
13
|
-
}
|
14
|
-
|
15
|
-
exports.DecidimAdmin = exports.DecidimAdmin || {};
|
16
|
-
exports.DecidimAdmin.toggleNav = toggleNav;
|
17
|
-
})(window);
|
@@ -1,20 +0,0 @@
|
|
1
|
-
@import "variables";
|
2
|
-
@import "utils/fontface";
|
3
|
-
@import "utils/helpers";
|
4
|
-
@import "utils/keyframes";
|
5
|
-
@import "utils/settings";
|
6
|
-
@import "utils/toggle-expand";
|
7
|
-
@import "foundation";
|
8
|
-
@import "foundation-overrides/components/button-group";
|
9
|
-
|
10
|
-
@include foundation-everything();
|
11
|
-
|
12
|
-
@import "utils/mixins";
|
13
|
-
@import "utils/flex";
|
14
|
-
@import "plugins/foundation-datepicker";
|
15
|
-
@import "decidim/modules/data-picker";
|
16
|
-
@import "modules/modules";
|
17
|
-
@import "plugins/jquery.auto-complete";
|
18
|
-
@import "components/*";
|
19
|
-
@import "decidim/vizzs";
|
20
|
-
@import "bundle";
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "decidim/editor";
|
@@ -1,43 +0,0 @@
|
|
1
|
-
//Basics
|
2
|
-
@import "typography";
|
3
|
-
@import "icons";
|
4
|
-
@import "buttons";
|
5
|
-
@import "forms";
|
6
|
-
@import "tabs";
|
7
|
-
|
8
|
-
//General layout
|
9
|
-
@import "layout";
|
10
|
-
@import "title-bar";
|
11
|
-
@import "user-login";
|
12
|
-
@import "main-nav";
|
13
|
-
@import "secondary-nav";
|
14
|
-
|
15
|
-
//Process
|
16
|
-
@import "process-header";
|
17
|
-
|
18
|
-
//Contents
|
19
|
-
@import "callouts";
|
20
|
-
@import "cards";
|
21
|
-
@import "card-grid";
|
22
|
-
@import "table-list";
|
23
|
-
@import "action-icon";
|
24
|
-
@import "char-counter";
|
25
|
-
@import "component-counter";
|
26
|
-
@import "pics";
|
27
|
-
@import "filters";
|
28
|
-
@import "dropdown";
|
29
|
-
@import "agenda";
|
30
|
-
@import "draggable-list";
|
31
|
-
@import "loading-spinner";
|
32
|
-
@import "import_result";
|
33
|
-
@import "reveal";
|
34
|
-
|
35
|
-
// mentions__container
|
36
|
-
@import "decidim/modules/tags";
|
37
|
-
@import "decidim/modules/input-tags";
|
38
|
-
@import "decidim/modules/input-mentions";
|
39
|
-
@import "decidim/modules/input-gallery";
|
40
|
-
|
41
|
-
//Admin dashboard
|
42
|
-
@import "users_statistics";
|
43
|
-
@import "moderations";
|
@@ -1,29 +0,0 @@
|
|
1
|
-
@font-face{
|
2
|
-
font-family: 'Source Sans Pro';
|
3
|
-
font-style: normal;
|
4
|
-
font-weight: 400;
|
5
|
-
src:
|
6
|
-
font-url('decidim/Source_Sans_Pro_400.woff2') format('woff2'),
|
7
|
-
font-url('decidim/Source_Sans_Pro_400.woff') format('woff'),
|
8
|
-
font-url('decidim/Source_Sans_Pro_400.ttf') format('truetype');
|
9
|
-
}
|
10
|
-
|
11
|
-
@font-face{
|
12
|
-
font-family: 'Source Sans Pro';
|
13
|
-
font-style: normal;
|
14
|
-
font-weight: 600;
|
15
|
-
src:
|
16
|
-
font-url('decidim/Source_Sans_Pro_600.woff2') format('woff2'),
|
17
|
-
font-url('decidim/Source_Sans_Pro_600.woff') format('woff'),
|
18
|
-
font-url('decidim/Source_Sans_Pro_600.ttf') format('truetype');
|
19
|
-
}
|
20
|
-
|
21
|
-
@font-face{
|
22
|
-
font-family: 'Source Sans Pro';
|
23
|
-
font-style: normal;
|
24
|
-
font-weight: 900;
|
25
|
-
src:
|
26
|
-
font-url('decidim/Source_Sans_Pro_900.woff2') format('woff2'),
|
27
|
-
font-url('decidim/Source_Sans_Pro_900.woff') format('woff'),
|
28
|
-
font-url('decidim/Source_Sans_Pro_900.ttf') format('truetype');
|
29
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
// Returns the arccosine of a number.
|
2
|
-
// @param {Number} $x A number between -1 and 1.
|
3
|
-
// @example
|
4
|
-
// acos(0.1) // 1.47063
|
5
|
-
// acos(-1) // 3.14159
|
6
|
-
@function acos ($x) {
|
7
|
-
@if $x > 1 or $x < -1 {
|
8
|
-
@warn "Argument for `acos()` must be a number between -1 and 1";
|
9
|
-
@return null;
|
10
|
-
}
|
11
|
-
@return $PI / 2 - asin($x);
|
12
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
// Returns the arcsine of a number.
|
2
|
-
// @param {Number} $x A number between -1 and 1.
|
3
|
-
// @example
|
4
|
-
// asin(0.1) // 0.10017
|
5
|
-
// asin(-1) // -1.5708
|
6
|
-
@function asin ($x) {
|
7
|
-
@if $x > 1 or $x < -1 {
|
8
|
-
@warn "Argument for `asin()` must be a number between -1 and 1";
|
9
|
-
@return null;
|
10
|
-
}
|
11
|
-
@return atan($x / sqrt(1 - $x * $x));
|
12
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
// Returns the arctangent of a number.
|
2
|
-
// @param {Number} $x
|
3
|
-
// @example
|
4
|
-
// atan(0.1) // 0.09967
|
5
|
-
// atan(-1) // -0.7854
|
6
|
-
@function atan ($x) {
|
7
|
-
$i: 24;
|
8
|
-
$sgn: 0;
|
9
|
-
$a: 0;
|
10
|
-
@if $x > 1 {
|
11
|
-
$sgn: 1;
|
12
|
-
$x: 1 / $x;
|
13
|
-
} @else if $x < -1 {
|
14
|
-
$sgn: -1;
|
15
|
-
$x: 1 / $x;
|
16
|
-
}
|
17
|
-
@while $i > 0 {
|
18
|
-
$a: ($i * $i * $x * $x) / (2 * $i + 1 + $a);
|
19
|
-
$i: $i - 1;
|
20
|
-
}
|
21
|
-
@if $sgn > 0 {
|
22
|
-
@return $PI / 2 - $x / (1 + $a);
|
23
|
-
} @else if $sgn < 0 {
|
24
|
-
@return -$PI / 2 - $x / (1 + $a);
|
25
|
-
} @else {
|
26
|
-
@return $x / (1 + $a);
|
27
|
-
}
|
28
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
// Returns the arctangent of the quotient of its arguments.
|
2
|
-
// @param {Number} $y
|
3
|
-
// @param {Number} $x
|
4
|
-
// @example
|
5
|
-
// atan2(0, 0) // 0
|
6
|
-
// atan2(0, -0.0) // 3.14159
|
7
|
-
// atan2(-0.0, 0) // 0
|
8
|
-
// atan2(-0.0, -0.0) // -3.14159
|
9
|
-
// atan2(0, 1) // 0
|
10
|
-
// atan2(0, -1) // 3.14159
|
11
|
-
@function atan2 ($y, $x) {
|
12
|
-
@if $x > 0 {
|
13
|
-
@return atan($y / $x);
|
14
|
-
} @else if $x < 0 {
|
15
|
-
@if $y < 0 {
|
16
|
-
@return atan($y / $x) - $PI;
|
17
|
-
} @else {
|
18
|
-
@return atan($y / $x) + $PI;
|
19
|
-
}
|
20
|
-
} @else {
|
21
|
-
@if $y < 0 {
|
22
|
-
@return - $PI / 2;
|
23
|
-
} @else if $y > 0 {
|
24
|
-
@return $PI / 2;
|
25
|
-
} @else {
|
26
|
-
@if 1 / $x == 1 / 0 {
|
27
|
-
@return 0;
|
28
|
-
} @else {
|
29
|
-
@if 1 / $y == 1 / 0 {
|
30
|
-
@return $PI;
|
31
|
-
} @else {
|
32
|
-
@return -$PI;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|