decidim-core 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/decidim/extras/_callout.scss +5 -0
  3. data/app/assets/stylesheets/decidim/extras/_collection-sort-controls.scss +5 -0
  4. data/app/assets/stylesheets/decidim/extras/_results-per-page.scss +66 -0
  5. data/app/assets/stylesheets/decidim/extras/_status-labels.scss +3 -0
  6. data/app/commands/decidim/invite_user.rb +4 -4
  7. data/app/commands/decidim/{remove_user_role.rb → remove_admin.rb} +5 -7
  8. data/app/controllers/concerns/decidim/needs_authorization.rb +2 -1
  9. data/app/controllers/concerns/decidim/paginable.rb +24 -0
  10. data/app/controllers/decidim/devise/sessions_controller.rb +1 -1
  11. data/app/forms/decidim/{invite_admin_form.rb → invite_user_form.rb} +4 -4
  12. data/app/models/decidim/abilities/{everyone.rb → everyone_ability.rb} +1 -1
  13. data/app/models/decidim/organization.rb +1 -1
  14. data/app/models/decidim/participatory_process_user_role.rb +13 -0
  15. data/app/models/decidim/user.rb +1 -17
  16. data/app/queries/decidim/participatory_processes_with_user_role.rb +46 -0
  17. data/app/views/decidim/shared/_orders.html.erb +1 -1
  18. data/app/views/decidim/shared/_results_per_page.html.erb +18 -0
  19. data/config/locales/ca.yml +4 -2
  20. data/config/locales/en.yml +2 -0
  21. data/config/locales/es.yml +2 -0
  22. data/config/locales/it.yml +32 -46
  23. data/db/migrate/20170713131206_add_admin_to_users.rb +8 -0
  24. data/db/migrate/20170713131308_migrate_user_roles_to_participatory_process_roles.rb +17 -0
  25. data/db/seeds.rb +19 -15
  26. data/lib/decidim/abilities.rb +11 -0
  27. data/lib/decidim/abilities/admin_ability.rb +28 -0
  28. data/lib/decidim/abilities/participatory_process_admin_ability.rb +24 -0
  29. data/lib/decidim/abilities/participatory_process_collaborator_ability.rb +24 -0
  30. data/lib/decidim/abilities/participatory_process_moderator_ability.rb +15 -0
  31. data/lib/decidim/abilities/participatory_process_role_ability.rb +59 -0
  32. data/lib/decidim/core.rb +2 -1
  33. data/lib/decidim/core/engine.rb +5 -1
  34. data/lib/decidim/core/test.rb +1 -0
  35. data/lib/decidim/core/test/factories.rb +20 -9
  36. data/lib/decidim/core/test/shared_examples/has_reference.rb +0 -4
  37. data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +26 -0
  38. data/lib/decidim/core/version.rb +1 -1
  39. data/vendor/assets/javascripts/quill.min.js +2 -8
  40. data/vendor/assets/javascripts/quill.min.js.map +1 -1
  41. data/vendor/assets/stylesheets/quill.bubble.css +29 -5
  42. data/vendor/assets/stylesheets/quill.core.css +11 -5
  43. data/vendor/assets/stylesheets/quill.snow.css +29 -5
  44. metadata +32 -15
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quill Editor v1.2.2
2
+ * Quill Editor v1.2.6
3
3
  * https://quilljs.com/
4
4
  * Copyright (c) 2014, Jason Chen
5
5
  * Copyright (c) 2013, salesforce.com
@@ -73,6 +73,10 @@
73
73
  .ql-editor ul[data-checked=false] {
74
74
  pointer-events: none;
75
75
  }
76
+ .ql-editor ul[data-checked=true] > li *,
77
+ .ql-editor ul[data-checked=false] > li * {
78
+ pointer-events: all;
79
+ }
76
80
  .ql-editor ul[data-checked=true] > li::before,
77
81
  .ql-editor ul[data-checked=false] > li::before {
78
82
  color: #777;
@@ -87,14 +91,16 @@
87
91
  }
88
92
  .ql-editor li::before {
89
93
  display: inline-block;
90
- margin-right: 0.3em;
91
- text-align: right;
92
94
  white-space: nowrap;
93
95
  width: 1.2em;
94
- }
95
- .ql-editor li:not(.ql-direction-rtl)::before {
96
+ text-align: right;
97
+ margin-right: 0.3em;
96
98
  margin-left: -1.5em;
97
99
  }
100
+ .ql-editor li.ql-direction-rtl::before {
101
+ text-align: left;
102
+ margin-left: 0.3em;
103
+ }
98
104
  .ql-editor ol li,
99
105
  .ql-editor ul li {
100
106
  padding-left: 1.5em;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quill Editor v1.2.2
2
+ * Quill Editor v1.2.6
3
3
  * https://quilljs.com/
4
4
  * Copyright (c) 2014, Jason Chen
5
5
  * Copyright (c) 2013, salesforce.com
@@ -73,6 +73,10 @@
73
73
  .ql-editor ul[data-checked=false] {
74
74
  pointer-events: none;
75
75
  }
76
+ .ql-editor ul[data-checked=true] > li *,
77
+ .ql-editor ul[data-checked=false] > li * {
78
+ pointer-events: all;
79
+ }
76
80
  .ql-editor ul[data-checked=true] > li::before,
77
81
  .ql-editor ul[data-checked=false] > li::before {
78
82
  color: #777;
@@ -87,14 +91,16 @@
87
91
  }
88
92
  .ql-editor li::before {
89
93
  display: inline-block;
90
- margin-right: 0.3em;
91
- text-align: right;
92
94
  white-space: nowrap;
93
95
  width: 1.2em;
94
- }
95
- .ql-editor li:not(.ql-direction-rtl)::before {
96
+ text-align: right;
97
+ margin-right: 0.3em;
96
98
  margin-left: -1.5em;
97
99
  }
100
+ .ql-editor li.ql-direction-rtl::before {
101
+ text-align: left;
102
+ margin-left: 0.3em;
103
+ }
98
104
  .ql-editor ol li,
99
105
  .ql-editor ul li {
100
106
  padding-left: 1.5em;
@@ -475,6 +481,24 @@
475
481
  .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {
476
482
  stroke: #06c;
477
483
  }
484
+ @media (pointer: coarse) {
485
+ .ql-snow.ql-toolbar button:hover:not(.ql-active),
486
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) {
487
+ color: #444;
488
+ }
489
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,
490
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,
491
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,
492
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {
493
+ fill: #444;
494
+ }
495
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,
496
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,
497
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,
498
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {
499
+ stroke: #444;
500
+ }
501
+ }
478
502
  .ql-snow {
479
503
  box-sizing: border-box;
480
504
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-07-12 00:00:00.000000000 Z
13
+ date: 2017-08-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -466,70 +466,70 @@ dependencies:
466
466
  requirements:
467
467
  - - '='
468
468
  - !ruby/object:Gem::Version
469
- version: 0.4.0
469
+ version: 0.4.1
470
470
  type: :runtime
471
471
  prerelease: false
472
472
  version_requirements: !ruby/object:Gem::Requirement
473
473
  requirements:
474
474
  - - '='
475
475
  - !ruby/object:Gem::Version
476
- version: 0.4.0
476
+ version: 0.4.1
477
477
  - !ruby/object:Gem::Dependency
478
478
  name: decidim-dev
479
479
  requirement: !ruby/object:Gem::Requirement
480
480
  requirements:
481
481
  - - '='
482
482
  - !ruby/object:Gem::Version
483
- version: 0.4.0
483
+ version: 0.4.1
484
484
  type: :development
485
485
  prerelease: false
486
486
  version_requirements: !ruby/object:Gem::Requirement
487
487
  requirements:
488
488
  - - '='
489
489
  - !ruby/object:Gem::Version
490
- version: 0.4.0
490
+ version: 0.4.1
491
491
  - !ruby/object:Gem::Dependency
492
492
  name: decidim-proposals
493
493
  requirement: !ruby/object:Gem::Requirement
494
494
  requirements:
495
495
  - - '='
496
496
  - !ruby/object:Gem::Version
497
- version: 0.4.0
497
+ version: 0.4.1
498
498
  type: :development
499
499
  prerelease: false
500
500
  version_requirements: !ruby/object:Gem::Requirement
501
501
  requirements:
502
502
  - - '='
503
503
  - !ruby/object:Gem::Version
504
- version: 0.4.0
504
+ version: 0.4.1
505
505
  - !ruby/object:Gem::Dependency
506
506
  name: decidim-meetings
507
507
  requirement: !ruby/object:Gem::Requirement
508
508
  requirements:
509
509
  - - '='
510
510
  - !ruby/object:Gem::Version
511
- version: 0.4.0
511
+ version: 0.4.1
512
512
  type: :development
513
513
  prerelease: false
514
514
  version_requirements: !ruby/object:Gem::Requirement
515
515
  requirements:
516
516
  - - '='
517
517
  - !ruby/object:Gem::Version
518
- version: 0.4.0
518
+ version: 0.4.1
519
519
  - !ruby/object:Gem::Dependency
520
520
  name: decidim-results
521
521
  requirement: !ruby/object:Gem::Requirement
522
522
  requirements:
523
523
  - - '='
524
524
  - !ruby/object:Gem::Version
525
- version: 0.4.0
525
+ version: 0.4.1
526
526
  type: :development
527
527
  prerelease: false
528
528
  version_requirements: !ruby/object:Gem::Requirement
529
529
  requirements:
530
530
  - - '='
531
531
  - !ruby/object:Gem::Version
532
- version: 0.4.0
532
+ version: 0.4.1
533
533
  description: Adds core features so other engines can hook into the framework.
534
534
  email:
535
535
  - josepjaume@gmail.com
@@ -580,13 +580,17 @@ files:
580
580
  - app/assets/stylesheets/decidim/editor.sass
581
581
  - app/assets/stylesheets/decidim/email.css
582
582
  - app/assets/stylesheets/decidim/extras/_add_comments.scss
583
+ - app/assets/stylesheets/decidim/extras/_callout.scss
584
+ - app/assets/stylesheets/decidim/extras/_collection-sort-controls.scss
583
585
  - app/assets/stylesheets/decidim/extras/_embed.scss
584
586
  - app/assets/stylesheets/decidim/extras/_label-required.scss
585
587
  - app/assets/stylesheets/decidim/extras/_leaflet.scss
586
588
  - app/assets/stylesheets/decidim/extras/_quill.scss
587
589
  - app/assets/stylesheets/decidim/extras/_reference.scss
588
590
  - app/assets/stylesheets/decidim/extras/_register_form.scss
591
+ - app/assets/stylesheets/decidim/extras/_results-per-page.scss
589
592
  - app/assets/stylesheets/decidim/extras/_social_icons_mini.scss
593
+ - app/assets/stylesheets/decidim/extras/_status-labels.scss
590
594
  - app/assets/stylesheets/decidim/layouts/_home.scss
591
595
  - app/assets/stylesheets/decidim/layouts/_user.scss
592
596
  - app/assets/stylesheets/decidim/layouts/_view.scss
@@ -648,7 +652,7 @@ files:
648
652
  - app/commands/decidim/destroy_account.rb
649
653
  - app/commands/decidim/invite_user.rb
650
654
  - app/commands/decidim/invite_user_again.rb
651
- - app/commands/decidim/remove_user_role.rb
655
+ - app/commands/decidim/remove_admin.rb
652
656
  - app/commands/decidim/update_account.rb
653
657
  - app/commands/decidim/update_notifications_settings.rb
654
658
  - app/constraints/decidim/current_feature.rb
@@ -662,6 +666,7 @@ files:
662
666
  - app/controllers/concerns/decidim/needs_authorization.rb
663
667
  - app/controllers/concerns/decidim/needs_organization.rb
664
668
  - app/controllers/concerns/decidim/needs_participatory_process.rb
669
+ - app/controllers/concerns/decidim/paginable.rb
665
670
  - app/controllers/concerns/decidim/payload_info.rb
666
671
  - app/controllers/concerns/decidim/user_profile.rb
667
672
  - app/controllers/decidim/account_controller.rb
@@ -690,7 +695,7 @@ files:
690
695
  - app/forms/decidim/account_form.rb
691
696
  - app/forms/decidim/delete_account_form.rb
692
697
  - app/forms/decidim/form.rb
693
- - app/forms/decidim/invite_admin_form.rb
698
+ - app/forms/decidim/invite_user_form.rb
694
699
  - app/forms/decidim/notifications_settings_form.rb
695
700
  - app/forms/decidim/omniauth_registration_form.rb
696
701
  - app/forms/decidim/registration_form.rb
@@ -734,7 +739,7 @@ files:
734
739
  - app/mailers/decidim/newsletter_mailer.rb
735
740
  - app/mailers/decidim/reported_mailer.rb
736
741
  - app/middleware/decidim/current_organization.rb
737
- - app/models/decidim/abilities/everyone.rb
742
+ - app/models/decidim/abilities/everyone_ability.rb
738
743
  - app/models/decidim/ability.rb
739
744
  - app/models/decidim/application_record.rb
740
745
  - app/models/decidim/attachment.rb
@@ -749,6 +754,7 @@ files:
749
754
  - app/models/decidim/participatory_process.rb
750
755
  - app/models/decidim/participatory_process_group.rb
751
756
  - app/models/decidim/participatory_process_step.rb
757
+ - app/models/decidim/participatory_process_user_role.rb
752
758
  - app/models/decidim/report.rb
753
759
  - app/models/decidim/resource_link.rb
754
760
  - app/models/decidim/scope.rb
@@ -763,6 +769,7 @@ files:
763
769
  - app/queries/decidim/highlighted_participatory_processes.rb
764
770
  - app/queries/decidim/organization_participatory_processes.rb
765
771
  - app/queries/decidim/organization_prioritized_participatory_processes.rb
772
+ - app/queries/decidim/participatory_processes_with_user_role.rb
766
773
  - app/queries/decidim/prioritized_participatory_processes.rb
767
774
  - app/queries/decidim/promoted_participatory_processes.rb
768
775
  - app/queries/decidim/stats_users_count.rb
@@ -833,6 +840,7 @@ files:
833
840
  - app/views/decidim/shared/_flag_modal.html.erb
834
841
  - app/views/decidim/shared/_login_modal.html.erb
835
842
  - app/views/decidim/shared/_orders.html.erb
843
+ - app/views/decidim/shared/_results_per_page.html.erb
836
844
  - app/views/decidim/shared/_share_modal.html.erb
837
845
  - app/views/decidim/shared/_static_map.html.erb
838
846
  - app/views/decidim/widgets/show.js.erb
@@ -964,12 +972,20 @@ files:
964
972
  - db/migrate/20170608142521_add_organization_to_user_groups.rb
965
973
  - db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
966
974
  - db/migrate/20170612100253_create_decidim_categorizations.rb
975
+ - db/migrate/20170713131206_add_admin_to_users.rb
976
+ - db/migrate/20170713131308_migrate_user_roles_to_participatory_process_roles.rb
967
977
  - db/seeds.rb
968
978
  - db/seeds/Exampledocument.pdf
969
979
  - db/seeds/city.jpeg
970
980
  - db/seeds/city2.jpeg
971
981
  - db/seeds/city3.jpeg
972
982
  - db/seeds/homepage_image.jpg
983
+ - lib/decidim/abilities.rb
984
+ - lib/decidim/abilities/admin_ability.rb
985
+ - lib/decidim/abilities/participatory_process_admin_ability.rb
986
+ - lib/decidim/abilities/participatory_process_collaborator_ability.rb
987
+ - lib/decidim/abilities/participatory_process_moderator_ability.rb
988
+ - lib/decidim/abilities/participatory_process_role_ability.rb
973
989
  - lib/decidim/attributes.rb
974
990
  - lib/decidim/attributes/time_with_zone.rb
975
991
  - lib/decidim/authorable.rb
@@ -998,6 +1014,7 @@ files:
998
1014
  - lib/decidim/core/test/shared_examples/has_scope.rb
999
1015
  - lib/decidim/core/test/shared_examples/localised_email.rb
1000
1016
  - lib/decidim/core/test/shared_examples/manage_moderations_examples.rb
1017
+ - lib/decidim/core/test/shared_examples/paginated_resource_examples.rb
1001
1018
  - lib/decidim/core/test/shared_examples/reportable.rb
1002
1019
  - lib/decidim/core/test/shared_examples/reports_examples.rb
1003
1020
  - lib/decidim/core/version.rb