decidim-admin 0.24.2 → 0.25.0.rc3

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.

Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/admin/content_block/show.erb +2 -2
  3. data/app/commands/decidim/admin/block_user.rb +6 -0
  4. data/app/commands/decidim/admin/create_attachment.rb +2 -1
  5. data/app/commands/decidim/admin/hide_resource.rb +1 -0
  6. data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +1 -1
  7. data/app/commands/decidim/admin/update_attachment.rb +5 -1
  8. data/app/commands/decidim/admin/update_content_block.rb +1 -1
  9. data/app/commands/decidim/admin/update_external_domain_whitelist.rb +32 -0
  10. data/app/commands/decidim/admin/update_organization.rb +2 -1
  11. data/app/commands/decidim/admin/update_organization_appearance.rb +4 -14
  12. data/app/controllers/concerns/decidim/admin/filterable.rb +1 -3
  13. data/app/controllers/concerns/decidim/participatory_space_private_users/admin/filterable.rb +34 -0
  14. data/app/controllers/decidim/admin/concerns/has_attachments.rb +1 -4
  15. data/app/controllers/decidim/admin/concerns/has_private_users.rb +6 -3
  16. data/app/controllers/decidim/admin/imports_controller.rb +1 -0
  17. data/app/controllers/decidim/admin/moderated_users_controller.rb +6 -2
  18. data/app/controllers/decidim/admin/organization_controller.rb +11 -1
  19. data/app/controllers/decidim/admin/organization_external_domain_whitelist_controller.rb +38 -0
  20. data/app/controllers/decidim/admin/users_controller.rb +7 -1
  21. data/app/forms/decidim/admin/external_domain_form.rb +19 -0
  22. data/app/forms/decidim/admin/import_form.rb +1 -0
  23. data/app/forms/decidim/admin/organization_appearance_form.rb +7 -7
  24. data/app/forms/decidim/admin/organization_external_domain_whitelist_form.rb +23 -0
  25. data/app/forms/decidim/admin/organization_form.rb +1 -0
  26. data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +2 -0
  27. data/app/forms/decidim/admin/user_group_csv_verification_form.rb +2 -0
  28. data/app/helpers/decidim/admin/filterable_helper.rb +1 -1
  29. data/app/helpers/decidim/admin/menu_helper.rb +7 -7
  30. data/app/helpers/decidim/admin/uploader_image_dimensions_helper.rb +2 -1
  31. data/app/jobs/decidim/admin/expire_impersonation_job.rb +1 -2
  32. data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +1 -1
  33. data/app/packs/entrypoints/decidim_admin.js +43 -0
  34. data/app/packs/entrypoints/decidim_admin.scss +1 -0
  35. data/app/packs/src/decidim/admin/application.js +68 -0
  36. data/app/packs/src/decidim/admin/auto_buttons_by_position.component.js +37 -0
  37. data/app/packs/src/decidim/admin/auto_label_by_position.component.js +28 -0
  38. data/app/packs/src/decidim/admin/autocomplete.component.js +146 -0
  39. data/app/{frontend/components/autocomplete.component.test.tsx → packs/src/decidim/admin/autocomplete.component.test.js} +1 -2
  40. data/app/packs/src/decidim/admin/budget_rule_toggler.component.js +50 -0
  41. data/app/{assets/javascripts → packs/src}/decidim/admin/choose_language.js +0 -0
  42. data/app/packs/src/decidim/admin/draggable-list.js +30 -0
  43. data/app/packs/src/decidim/admin/dynamic_fields.component.js +230 -0
  44. data/app/packs/src/decidim/admin/external_domain_whitelist.js +100 -0
  45. data/app/packs/src/decidim/admin/field_dependent_inputs.component.js +37 -0
  46. data/app/{assets/javascripts/decidim/admin/form.js.es6 → packs/src/decidim/admin/form.js} +6 -9
  47. data/app/{assets/javascripts/decidim/admin/import_guidance.js.es6 → packs/src/decidim/admin/import_guidance.js} +2 -3
  48. data/app/{assets/javascripts/decidim/admin/managed_users.js.es6 → packs/src/decidim/admin/managed_users.js} +4 -4
  49. data/app/packs/src/decidim/admin/moderations.js +20 -0
  50. data/app/{assets/javascripts/decidim/admin/newsletters.js.es6 → packs/src/decidim/admin/newsletters.js} +0 -0
  51. data/app/{assets/javascripts/decidim/admin/officializations.js.es6 → packs/src/decidim/admin/officializations.js} +0 -0
  52. data/app/{assets/javascripts/decidim/admin/proposal_infinite_edit.js.es6 → packs/src/decidim/admin/proposal_infinite_edit.js} +0 -0
  53. data/app/{assets/javascripts/decidim/admin/resources_permissions.js.es6 → packs/src/decidim/admin/resources_permissions.js} +3 -5
  54. data/app/packs/src/decidim/admin/scope_picker_enabler.component.js +12 -0
  55. data/app/packs/src/decidim/admin/sort_list.component.js +31 -0
  56. data/app/packs/src/decidim/admin/sortable.js +21 -0
  57. data/app/packs/src/decidim/admin/subform_multi_toggler.component.js +38 -0
  58. data/app/packs/src/decidim/admin/subform_toggler.component.js +38 -0
  59. data/app/{assets/javascripts/decidim/admin/tab_focus.js.es6 → packs/src/decidim/admin/tab_focus.js} +0 -2
  60. data/app/packs/src/decidim/admin/toggle_nav.js +14 -0
  61. data/app/{assets/javascripts/decidim/admin/welcome_notification.js.es6 → packs/src/decidim/admin/welcome_notification.js} +2 -2
  62. data/app/packs/stylesheets/decidim/admin/_decidim.scss +24 -0
  63. data/app/{assets → packs}/stylesheets/decidim/admin/_variables.scss +0 -0
  64. data/app/packs/stylesheets/decidim/admin/application.scss +22 -0
  65. data/app/{assets → packs}/stylesheets/decidim/admin/bundle.scss +0 -0
  66. data/app/{assets → packs}/stylesheets/decidim/admin/components/_accordion.scss +0 -0
  67. data/app/{assets → packs}/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +0 -0
  68. data/app/{assets → packs}/stylesheets/decidim/admin/components/_dropdown-menu.scss +0 -0
  69. data/app/{assets → packs}/stylesheets/decidim/admin/components/_sortable.scss +0 -0
  70. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_action-icon.scss +0 -0
  71. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_block_user.scss +0 -0
  72. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_cards.scss +0 -0
  73. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_categories.scss +0 -0
  74. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_dropdown_inverted.scss +0 -0
  75. data/app/packs/stylesheets/decidim/admin/extra/_editor.scss +1 -0
  76. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_email_preview.scss +0 -0
  77. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_label-required.scss +0 -0
  78. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_login.scss +0 -0
  79. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_logs.scss +0 -0
  80. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss +0 -0
  81. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_organization-appearance.scss +0 -0
  82. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_quill.scss +0 -0
  83. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_select_multiple.scss +0 -0
  84. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_show_email.scss +0 -0
  85. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_sort.scss +0 -0
  86. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_title_bar.scss +0 -0
  87. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_action-icon.scss +1 -1
  88. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_agenda.scss +0 -0
  89. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_buttons.scss +0 -0
  90. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_callouts.scss +0 -0
  91. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_card-grid.scss +0 -0
  92. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_cards.scss +1 -1
  93. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_char-counter.scss +0 -0
  94. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_component-counter.scss +0 -0
  95. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_draggable-list.scss +2 -2
  96. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_dropdown.scss +0 -0
  97. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_filters.scss +0 -0
  98. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_forms.scss +0 -0
  99. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_icons.scss +0 -0
  100. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_import_result.scss +0 -0
  101. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_layout.scss +0 -0
  102. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_loading-spinner.scss +0 -0
  103. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_main-nav.scss +0 -0
  104. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_moderations.scss +0 -0
  105. data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +43 -0
  106. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_pics.scss +0 -0
  107. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_process-header.scss +0 -0
  108. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_reveal.scss +0 -0
  109. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_secondary-nav.scss +0 -0
  110. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_table-list.scss +13 -0
  111. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_tabs.scss +0 -0
  112. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_title-bar.scss +0 -0
  113. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_typography.scss +0 -0
  114. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_user-login.scss +0 -0
  115. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_users_statistics.scss +0 -0
  116. data/app/{assets → packs}/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss +0 -0
  117. data/{vendor/assets/stylesheets → app/packs/stylesheets/decidim/admin}/plugins/jquery.auto-complete.css +0 -0
  118. data/app/{assets → packs}/stylesheets/decidim/admin/user_moderations.scss +0 -0
  119. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_flex.scss +2 -2
  120. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_helpers.scss +0 -0
  121. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_keyframes.scss +0 -0
  122. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_mixins.scss +30 -3
  123. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_settings.scss +11 -3
  124. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_toggle-expand.scss +0 -0
  125. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_constants.scss +1 -1
  126. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_math.scss +0 -0
  127. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +14 -0
  128. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +16 -0
  129. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +36 -0
  130. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +46 -0
  131. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +17 -0
  132. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_cot.scss +6 -3
  133. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_csc.scss +6 -3
  134. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_exp.scss +10 -6
  135. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +21 -0
  136. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +25 -0
  137. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +20 -0
  138. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +39 -0
  139. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +34 -0
  140. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sec.scss +6 -3
  141. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sin.scss +4 -3
  142. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +21 -0
  143. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss +6 -3
  144. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +6 -0
  145. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +6 -0
  146. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +11 -0
  147. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +19 -0
  148. data/app/presenters/decidim/admin/simple_menu_presenter.rb +11 -0
  149. data/app/queries/decidim/admin/newsletter_recipients.rb +3 -1
  150. data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
  151. data/app/views/decidim/admin/categories/index.html.erb +1 -1
  152. data/app/views/decidim/admin/components/_form.html.erb +0 -2
  153. data/app/views/decidim/admin/impersonations/_form.html.erb +3 -1
  154. data/app/views/decidim/admin/imports/new.html.erb +1 -9
  155. data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +0 -2
  156. data/app/views/decidim/admin/officializations/index.html.erb +3 -3
  157. data/app/views/decidim/admin/organization/_form.html.erb +6 -2
  158. data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -2
  159. data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +20 -4
  160. data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +7 -7
  161. data/app/views/decidim/admin/organization_external_domain_whitelist/_external_domain.html.erb +31 -0
  162. data/app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb +37 -0
  163. data/app/views/decidim/admin/organization_external_domain_whitelist/edit.html.erb +6 -0
  164. data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +4 -4
  165. data/app/views/decidim/admin/resource_permissions/edit.html.erb +0 -2
  166. data/app/views/decidim/admin/scope_types/index.html.erb +3 -3
  167. data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
  168. data/app/views/decidim/admin/static_pages/_form.html.erb +0 -1
  169. data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
  170. data/app/views/decidim/admin/users/index.html.erb +8 -7
  171. data/app/views/layouts/decidim/admin/_application.html.erb +1 -1
  172. data/app/views/layouts/decidim/admin/_header.html.erb +2 -3
  173. data/app/views/layouts/decidim/admin/_js_configuration.html.erb +1 -1
  174. data/app/views/layouts/decidim/admin/_title_bar.html.erb +1 -1
  175. data/app/views/layouts/decidim/admin/global_moderations.html.erb +1 -1
  176. data/app/views/layouts/decidim/admin/settings.html.erb +1 -1
  177. data/app/views/layouts/decidim/admin/users.html.erb +2 -52
  178. data/config/assets.rb +8 -0
  179. data/config/locales/ar.yml +0 -4
  180. data/config/locales/bg.yml +0 -3
  181. data/config/locales/ca.yml +36 -6
  182. data/config/locales/cs.yml +48 -6
  183. data/config/locales/de.yml +18 -6
  184. data/config/locales/el.yml +0 -4
  185. data/config/locales/en.yml +58 -16
  186. data/config/locales/eo.yml +0 -1
  187. data/config/locales/es-MX.yml +19 -7
  188. data/config/locales/es-PY.yml +19 -7
  189. data/config/locales/es.yml +19 -7
  190. data/config/locales/eu.yml +0 -4
  191. data/config/locales/fi-plain.yml +48 -6
  192. data/config/locales/fi.yml +48 -6
  193. data/config/locales/fr-CA.yml +46 -6
  194. data/config/locales/fr-LU.yml +1029 -0
  195. data/config/locales/fr.yml +46 -6
  196. data/config/locales/gl.yml +71 -6
  197. data/config/locales/hu.yml +70 -4
  198. data/config/locales/id-ID.yml +0 -4
  199. data/config/locales/is-IS.yml +0 -4
  200. data/config/locales/it.yml +161 -10
  201. data/config/locales/ja.yml +139 -5
  202. data/config/locales/lb-LU.yml +1 -0
  203. data/config/locales/lv.yml +0 -4
  204. data/config/locales/nl.yml +17 -6
  205. data/config/locales/no.yml +6 -4
  206. data/config/locales/pl.yml +45 -24
  207. data/config/locales/pt-BR.yml +346 -4
  208. data/config/locales/pt.yml +6 -4
  209. data/config/locales/ro-RO.yml +112 -4
  210. data/config/locales/ru.yml +0 -4
  211. data/config/locales/sk.yml +0 -4
  212. data/config/locales/sl.yml +0 -4
  213. data/config/locales/sr-CS.yml +0 -4
  214. data/config/locales/sv.yml +45 -2
  215. data/config/locales/tr-TR.yml +0 -4
  216. data/config/locales/uk.yml +0 -2
  217. data/config/locales/zh-CN.yml +0 -4
  218. data/config/routes.rb +2 -0
  219. data/lib/decidim/admin/engine.rb +210 -137
  220. data/lib/decidim/admin/import/readers/xlsx.rb +25 -0
  221. data/lib/decidim/admin/import/readers.rb +3 -3
  222. data/lib/decidim/admin/test/filters_participatory_space_users_examples.rb +73 -0
  223. data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
  224. data/lib/decidim/admin/test/manage_attachments_examples.rb +1 -1
  225. data/lib/decidim/admin/test.rb +1 -0
  226. data/lib/decidim/admin/version.rb +1 -1
  227. metadata +141 -180
  228. data/app/assets/config/decidim_admin_manifest.js +0 -8
  229. data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -78
  230. data/app/assets/javascripts/decidim/admin/auto_buttons_by_position.component.js.es6 +0 -42
  231. data/app/assets/javascripts/decidim/admin/auto_label_by_position.component.js.es6 +0 -33
  232. data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +0 -55
  233. data/app/assets/javascripts/decidim/admin/bundle.js +0 -34
  234. data/app/assets/javascripts/decidim/admin/bundle.js.map +0 -1
  235. data/app/assets/javascripts/decidim/admin/draggable-list.js.es6 +0 -30
  236. data/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6 +0 -233
  237. data/app/assets/javascripts/decidim/admin/field_dependent_inputs.component.js.es6 +0 -39
  238. data/app/assets/javascripts/decidim/admin/moderations.js.es6 +0 -24
  239. data/app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6 +0 -14
  240. data/app/assets/javascripts/decidim/admin/sort_list.component.js.es6 +0 -35
  241. data/app/assets/javascripts/decidim/admin/sortable.js.es6 +0 -22
  242. data/app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6 +0 -43
  243. data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +0 -42
  244. data/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +0 -17
  245. data/app/assets/javascripts/decidim/admin/user_moderations.js +0 -2
  246. data/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -20
  247. data/app/assets/stylesheets/decidim/admin/application.scss.erb +0 -6
  248. data/app/assets/stylesheets/decidim/admin/extra/_editor.scss +0 -1
  249. data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +0 -43
  250. data/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +0 -29
  251. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +0 -12
  252. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +0 -12
  253. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +0 -28
  254. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +0 -37
  255. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +0 -13
  256. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +0 -18
  257. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +0 -21
  258. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +0 -17
  259. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +0 -34
  260. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +0 -28
  261. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +0 -16
  262. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +0 -4
  263. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +0 -4
  264. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +0 -8
  265. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +0 -13
  266. data/app/frontend/components/autocomplete.component.tsx +0 -198
  267. data/app/frontend/entry.ts +0 -17
  268. data/app/frontend/entry_test.ts +0 -4
  269. data/app/helpers/decidim/admin/sidebar_menu_helper.rb +0 -13
  270. data/config/locales/ja-JP.yml +0 -855
  271. data/lib/decidim/admin/import/readers/xls.rb +0 -25
  272. data/vendor/assets/javascripts/html.sortable.js +0 -691
  273. data/vendor/assets/javascripts/jquery.auto-complete.js +0 -171
  274. data/vendor/assets/javascripts/jquery.serializejson.js +0 -344
  275. data/vendor/assets/javascripts/moment.min.js +0 -1
@@ -0,0 +1,43 @@
1
+ //Basics
2
+ @import "stylesheets/decidim/admin/modules/typography";
3
+ @import "stylesheets/decidim/admin/modules/icons";
4
+ @import "stylesheets/decidim/admin/modules/buttons";
5
+ @import "stylesheets/decidim/admin/modules/forms";
6
+ @import "stylesheets/decidim/admin/modules/tabs";
7
+
8
+ //General layout
9
+ @import "stylesheets/decidim/admin/modules/layout";
10
+ @import "stylesheets/decidim/admin/modules/title-bar";
11
+ @import "stylesheets/decidim/admin/modules/user-login";
12
+ @import "stylesheets/decidim/admin/modules/main-nav";
13
+ @import "stylesheets/decidim/admin/modules/secondary-nav";
14
+
15
+ //Process
16
+ @import "stylesheets/decidim/admin/modules/process-header";
17
+
18
+ //Contents
19
+ @import "stylesheets/decidim/admin/modules/callouts";
20
+ @import "stylesheets/decidim/admin/modules/cards";
21
+ @import "stylesheets/decidim/admin/modules/card-grid";
22
+ @import "stylesheets/decidim/admin/modules/table-list";
23
+ @import "stylesheets/decidim/admin/modules/action-icon";
24
+ @import "stylesheets/decidim/admin/modules/char-counter";
25
+ @import "stylesheets/decidim/admin/modules/component-counter";
26
+ @import "stylesheets/decidim/admin/modules/pics";
27
+ @import "stylesheets/decidim/admin/modules/filters";
28
+ @import "stylesheets/decidim/admin/modules/dropdown";
29
+ @import "stylesheets/decidim/admin/modules/agenda";
30
+ @import "stylesheets/decidim/admin/modules/draggable-list";
31
+ @import "stylesheets/decidim/admin/modules/loading-spinner";
32
+ @import "stylesheets/decidim/admin/modules/import_result";
33
+ @import "stylesheets/decidim/admin/modules/reveal";
34
+
35
+ // mentions__container
36
+ @import "stylesheets/decidim/modules/tags";
37
+ @import "stylesheets/decidim/modules/input-tags";
38
+ @import "stylesheets/decidim/modules/input-mentions";
39
+ @import "stylesheets/decidim/modules/input-gallery";
40
+
41
+ //Admin dashboard
42
+ @import "stylesheets/decidim/admin/modules/users_statistics";
43
+ @import "stylesheets/decidim/admin/modules/moderations";
@@ -80,6 +80,19 @@
80
80
  margin: 0 auto;
81
81
  width: 48px;
82
82
  }
83
+
84
+ // tbodys separation
85
+ tbody + tbody::before{
86
+ content: "-";
87
+ display: block;
88
+ line-height: 2em;
89
+ color: transparent;
90
+ }
91
+
92
+ tbody th{
93
+ color: $muted;
94
+ font-weight: 600;
95
+ }
83
96
  }
84
97
 
85
98
  .table-list__actions{
@@ -9,7 +9,7 @@ $spaces: $space ($space * 2);
9
9
 
10
10
  @if $dir == row{
11
11
  & > *{
12
- margin: 0 $gap/2;
12
+ margin: 0 $gap*.5;
13
13
  }
14
14
 
15
15
  & > :first-child{
@@ -23,7 +23,7 @@ $spaces: $space ($space * 2);
23
23
 
24
24
  @else if $dir == column{
25
25
  & > *{
26
- margin: $gap/2 0;
26
+ margin: $gap*.5 0;
27
27
  }
28
28
 
29
29
  & > :first-child{
@@ -86,9 +86,9 @@ $side:(
86
86
  }
87
87
  }
88
88
 
89
- @include make-spaces()
89
+ @include make-spaces();
90
90
 
91
- @mixin animation($animation){
91
+ @mixin animation($animation){
92
92
  -webkit-animation: $animation;
93
93
  -o-animation: $animation;
94
94
  animation: $animation;
@@ -100,7 +100,7 @@ $side:(
100
100
 
101
101
  box-sizing: border-box;
102
102
  border-radius: 50%;
103
- border: floor(($size / 8)) solid $orbit;
103
+ border: floor(($size * .125)) solid $orbit;
104
104
  border-right-color: $satellite;
105
105
  display: inline-block;
106
106
  position: relative;
@@ -115,6 +115,33 @@ $side:(
115
115
  @include size($size, $size);
116
116
  }
117
117
 
118
+ @mixin skip-button(){
119
+ left: -999px;
120
+ position: absolute;
121
+ top: auto;
122
+ width: 1px;
123
+ height: 1px;
124
+ overflow: hidden;
125
+ z-index: -999;
126
+
127
+ &:focus,
128
+ &:active{
129
+ background-color: $primary-color;
130
+ color: $white;
131
+ left: 0;
132
+ top: 0;
133
+ width: auto;
134
+ height: auto;
135
+ overflow: auto;
136
+ margin: 10px;
137
+ padding: 5px;
138
+ font-size: 1.4em;
139
+ z-index: 999;
140
+ outline: $button-outline-focus;
141
+ position: absolute;
142
+ }
143
+ }
144
+
118
145
  @keyframes animation-spin{
119
146
  to{ transform: rotate(1turn); }
120
147
  }
@@ -60,7 +60,7 @@
60
60
  // 55. Top Bar
61
61
  // 56. Xy Grid
62
62
 
63
- @import 'util/util';
63
+ @import "foundation-sites/scss/util/util";
64
64
 
65
65
  // 1. Global
66
66
  // ---------
@@ -177,6 +177,8 @@ $code-border: 1px solid $medium-gray;
177
177
  $code-padding: rem-calc(2 5 1);
178
178
  $anchor-color: $primary-color;
179
179
  $anchor-color-hover: scale-color($anchor-color, $lightness: -14%);
180
+ $anchor-outline-focus: 1px dotted rgba(black, .5);
181
+ $anchor-outline-offset: 2px;
180
182
  $anchor-text-decoration: none;
181
183
  $anchor-text-decoration-hover: none;
182
184
  $hr-width: $global-width;
@@ -305,6 +307,8 @@ $button-opacity-disabled: .25;
305
307
  $button-background-hover-lightness: -20%;
306
308
  $button-hollow-hover-lightness: -50%;
307
309
  $button-transition: background-color .25s ease-out, color .25s ease-out;
310
+ $button-outline-focus: $anchor-outline-focus;
311
+ $button-outline-offset: 2px;
308
312
 
309
313
  // 12. Button Group
310
314
  // ----------------
@@ -447,7 +451,7 @@ $input-border-focus: 1px solid map-get($foundation-palette, primary);
447
451
  $input-outline: 0;
448
452
  $input-outline-focus: 2px solid $primary-color;
449
453
  $input-outline-offset: 2px;
450
- $input-padding: $form-spacing / 2;
454
+ $input-padding: $form-spacing * .5;
451
455
  $input-shadow: inset 0 1px 2px rgba($black, .1);
452
456
  $input-shadow-focus: 0 0 5px $medium-gray;
453
457
  $input-cursor-disabled: not-allowed;
@@ -787,7 +791,7 @@ $table-row-stripe-hover: darken($table-background, $table-color-scale + $table-h
787
791
  $table-is-striped: true;
788
792
  $table-striped-background: smart-scale($table-background, $table-color-scale);
789
793
  $table-stripe: even;
790
- $table-head-background: smart-scale($table-background, $table-color-scale / 2);
794
+ $table-head-background: smart-scale($table-background, $table-color-scale * .5);
791
795
  $table-head-row-hover: darken($table-head-background, $table-hover-scale);
792
796
  $table-foot-background: smart-scale($table-background, $table-color-scale);
793
797
  $table-foot-row-hover: darken($table-foot-background, $table-hover-scale);
@@ -872,3 +876,7 @@ $grid-padding-gutters: $grid-margin-gutters;
872
876
  $grid-container-padding: $grid-padding-gutters;
873
877
  $grid-container-max: $global-width;
874
878
  $xy-block-grid-max: 8;
879
+
880
+ // This imports all the Decidim module stylesheet configs registered at
881
+ // `config/assets.rb` of the module for the "admin" group.
882
+ @import "!decidim-style-settings[admin]";
@@ -1,5 +1,5 @@
1
1
  // Constants
2
2
  $E: 2.718281828459045;
3
3
  $PI: 3.141592653589793;
4
- $LN2: 0.6931471805599453;
4
+ $LN2: .6931471805599453;
5
5
  $SQRT2: 1.4142135623730951;
@@ -0,0 +1,14 @@
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
+
10
+ @return null;
11
+ }
12
+
13
+ @return $PI * .5 - asin($x);
14
+ }
@@ -0,0 +1,16 @@
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
+ @use "sass:math";
7
+
8
+ @function asin ($x){
9
+ @if $x > 1 or $x < -1{
10
+ @warn "Argument for `asin()` must be a number between -1 and 1";
11
+
12
+ @return null;
13
+ }
14
+
15
+ @return atan(math.div($x, sqrt(1 - $x * $x)));
16
+ }
@@ -0,0 +1,36 @@
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
+ @use "sass:math";
7
+
8
+ @function atan ($x){
9
+ $i: 24;
10
+ $sgn: 0;
11
+ $a: 0;
12
+
13
+ @if $x > 1{
14
+ $sgn: 1;
15
+ $x: math.div(1, $x);
16
+ }
17
+ @else if $x < -1{
18
+ $sgn: -1;
19
+ $x: math.div(1, $x);
20
+ }
21
+
22
+ @while $i > 0{
23
+ $a: math.div($i * $i * $x * $x, 2 * $i + 1 + $a);
24
+ $i: $i - 1;
25
+ }
26
+
27
+ @if $sgn > 0{
28
+ @return $PI * .5 - math.div($x, 1 + $a);
29
+ }
30
+ @else if $sgn < 0{
31
+ @return -$PI * .5 - math.div($x, 1 + $a);
32
+ }
33
+ @else{
34
+ @return math.div($x, 1 + $a);
35
+ }
36
+ }
@@ -0,0 +1,46 @@
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
+ @use "sass:math";
12
+
13
+ @function atan2 ($y, $x){
14
+ @if $x > 0{
15
+ @return atan(math.div($y, $x));
16
+ }
17
+ @else if $x < 0{
18
+ @if $y < 0{
19
+ @return atan(math.div($y, $x)) - $PI;
20
+ }
21
+ @else{
22
+ @return atan(math.div($y, $x)) + $PI;
23
+ }
24
+ }
25
+ @else{
26
+ @if $y < 0{
27
+ @return - $PI * .5;
28
+ }
29
+ @else if $y > 0{
30
+ @return $PI * .5;
31
+ }
32
+ @else{
33
+ @if math.div(1, $x) == math.div(1, 0){
34
+ @return 0;
35
+ }
36
+ @else{
37
+ @if math.div(1, $y) == math.div(1, 0){
38
+ @return $PI;
39
+ }
40
+ @else{
41
+ @return -$PI;
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,17 @@
1
+ // Returns the cosine of a number.
2
+ // @param {Number} $x A number in rad or deg. Assuming unitless number to be in rad.
3
+ // @example
4
+ // cos(0.7854) // 0.70711
5
+ // cos(45deg) // 0.70711
6
+ @use "sass:math";
7
+
8
+ @function cos ($x){
9
+ $x: unitless-rad($x) % ($PI * 2);
10
+ $ret: 0;
11
+
12
+ @for $n from 0 to 24{
13
+ $ret: $ret + math.div(pow(-1, $n) * pow($x, 2 * $n), fact(2 * $n));
14
+ }
15
+
16
+ @return $ret;
17
+ }
@@ -3,7 +3,10 @@
3
3
  // @example
4
4
  // cot(0.5236) // 1.73205
5
5
  // cot(30deg) // 1.73205
6
- @function cot ($x) {
7
- $x: unitless-rad($x);
8
- @return 1 / tan($x);
6
+ @use "sass:math";
7
+
8
+ @function cot ($x){
9
+ $x: unitless-rad($x);
10
+
11
+ @return math.div(1, tan($x));
9
12
  }
@@ -3,7 +3,10 @@
3
3
  // @example
4
4
  // csc(1.0472) // 1.1547
5
5
  // csc(60deg) // 1.1547
6
- @function csc ($x) {
7
- $x: unitless-rad($x);
8
- @return 1 / sin($x);
6
+ @use "sass:math";
7
+
8
+ @function csc ($x){
9
+ $x: unitless-rad($x);
10
+
11
+ @return math.div(1, sin($x));
9
12
  }
@@ -3,10 +3,14 @@
3
3
  // @example
4
4
  // exp(1) // 2.71828
5
5
  // exp(-1) // 0.36788
6
- @function exp ($x) {
7
- $ret: 0;
8
- @for $n from 0 to 24 {
9
- $ret: $ret + pow($x, $n) / fact($n);
10
- }
11
- @return $ret;
6
+ @use "sass:math";
7
+
8
+ @function exp ($x){
9
+ $ret: 0;
10
+
11
+ @for $n from 0 to 24{
12
+ $ret: $ret + math.div(pow($x, $n), fact($n));
13
+ }
14
+
15
+ @return $ret;
12
16
  }