decidim-participatory_processes 0.29.1 → 0.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -3
  3. data/app/permissions/decidim/participatory_processes/permissions.rb +7 -1
  4. data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -1
  5. data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +1 -1
  6. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +1 -0
  7. data/config/locales/ar.yml +14 -1
  8. data/config/locales/bn-BD.yml +1 -0
  9. data/config/locales/bs-BA.yml +32 -0
  10. data/config/locales/ca-IT.yml +524 -0
  11. data/config/locales/ca.yml +6 -3
  12. data/config/locales/cs.yml +5 -4
  13. data/config/locales/de.yml +4 -1
  14. data/config/locales/el.yml +1 -1
  15. data/config/locales/en.yml +3 -0
  16. data/config/locales/es-MX.yml +6 -3
  17. data/config/locales/es-PY.yml +6 -3
  18. data/config/locales/es.yml +7 -4
  19. data/config/locales/eu.yml +110 -107
  20. data/config/locales/fi-plain.yml +2 -1
  21. data/config/locales/fi.yml +8 -7
  22. data/config/locales/fr-CA.yml +5 -2
  23. data/config/locales/fr.yml +5 -2
  24. data/config/locales/ga-IE.yml +10 -0
  25. data/config/locales/gl.yml +12 -1
  26. data/config/locales/hu.yml +1 -1
  27. data/config/locales/id-ID.yml +11 -1
  28. data/config/locales/is-IS.yml +14 -1
  29. data/config/locales/it.yml +27 -1
  30. data/config/locales/ja.yml +3 -0
  31. data/config/locales/lb.yml +12 -1
  32. data/config/locales/lv.yml +11 -1
  33. data/config/locales/nl.yml +11 -0
  34. data/config/locales/no.yml +2 -2
  35. data/config/locales/pt-BR.yml +9 -1
  36. data/config/locales/pt.yml +17 -0
  37. data/config/locales/ro-RO.yml +7 -0
  38. data/config/locales/ru.yml +14 -1
  39. data/config/locales/sk.yml +12 -2
  40. data/config/locales/sv.yml +10 -7
  41. data/config/locales/tr-TR.yml +12 -1
  42. data/config/locales/uk.yml +14 -1
  43. data/config/locales/zh-CN.yml +11 -1
  44. data/decidim-participatory_processes.gemspec +1 -1
  45. data/lib/decidim/participatory_processes/query_extensions.rb +26 -0
  46. data/lib/decidim/participatory_processes/version.rb +1 -1
  47. metadata +14 -11
@@ -21,7 +21,6 @@ ru:
21
21
  promoted: Рекомендуется
22
22
  published_at: 'Обнародовано:'
23
23
  related_process_ids: Подобные движения
24
- scope_id: Охват
25
24
  scopes_enabled: Охваты включены
26
25
  short_description: Краткое описание
27
26
  slug: Сокращенный веб-адрес
@@ -39,6 +38,8 @@ ru:
39
38
  short_description: Краткое описание
40
39
  start_date: Дата начала
41
40
  title: Название
41
+ participatory_process_type:
42
+ title: Название
42
43
  participatory_process_user_role:
43
44
  email: Эл. адрес
44
45
  name: Имя
@@ -109,6 +110,10 @@ ru:
109
110
  start_date: Дата начала
110
111
  title: Название
111
112
  name: Шаг движения соучастия
113
+ participatory_process_type:
114
+ fields:
115
+ created_at: 'Создано:'
116
+ title: Название
112
117
  participatory_process_user_role:
113
118
  fields:
114
119
  email: Эл. адрес
@@ -171,6 +176,11 @@ ru:
171
176
  update:
172
177
  error: При попытке обновить этот шаг движения соучастия произошла ошибка.
173
178
  success: Шаг движения соучастия успешно обновлен.
179
+ participatory_process_types:
180
+ edit:
181
+ update: Обновить
182
+ new:
183
+ create: Создать
174
184
  participatory_process_user_roles:
175
185
  create:
176
186
  error: При попытке добавить участника в это движение соучастия произошла ошибка.
@@ -246,6 +256,9 @@ ru:
246
256
  notification_title: Обновлены даты шага <a href="%{resource_path}">%{resource_title}</a> в <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
247
257
  menu:
248
258
  processes: Движения
259
+ metrics:
260
+ participatory_processes:
261
+ title: Движения соучастия
249
262
  participatory_process_groups:
250
263
  content_blocks:
251
264
  stats:
@@ -23,7 +23,6 @@ sk:
23
23
  promoted: propagované
24
24
  published_at: Publikované v
25
25
  related_process_ids: Súvisiace procesy
26
- scope_id: Rozsah
27
26
  scope_type_max_depth_id: Hĺbka filtra rozsahu
28
27
  scopes_enabled: Schopnosti povolené
29
28
  short_description: Stručný opis
@@ -44,6 +43,8 @@ sk:
44
43
  short_description: Stručný opis
45
44
  start_date: Dátum začatia
46
45
  title: Titul
46
+ participatory_process_type:
47
+ title: Titul
47
48
  participatory_process_user_role:
48
49
  email: E-mailom
49
50
  name: názov
@@ -115,6 +116,10 @@ sk:
115
116
  start_date: Dátum začatia
116
117
  title: Titul
117
118
  name: Participatívne krok procesu
119
+ participatory_process_type:
120
+ fields:
121
+ created_at: Vytvorené u
122
+ title: Titul
118
123
  participatory_process_user_role:
119
124
  fields:
120
125
  email: E-mailom
@@ -187,6 +192,11 @@ sk:
187
192
  update:
188
193
  error: Pri aktualizácii tohto kroku procesu participácie došlo k chybe.
189
194
  success: Úspešný krok procesu bol úspešne aktualizovaný.
195
+ participatory_process_types:
196
+ edit:
197
+ update: Aktualizácia
198
+ new:
199
+ create: Vytvoriť
190
200
  participatory_process_user_roles:
191
201
  create:
192
202
  error: Pri pridávaní používateľa pre tento participačné proces došlo k chybe.
@@ -277,7 +287,7 @@ sk:
277
287
  participatory_processes:
278
288
  description: Počet participatívnych procesov v tejto organizácii
279
289
  object: participatívne procesy
280
- title: Participatívne procesy
290
+ title: Participatívna procesy
281
291
  participatory_process_groups:
282
292
  content_blocks:
283
293
  stats:
@@ -10,7 +10,7 @@ sv:
10
10
  copy_steps: Kopiera steg
11
11
  decidim_area_id: Område
12
12
  description: Beskrivning
13
- developer_group: Kampanjgrupp
13
+ developer_group: Arrangör
14
14
  document: Dokument
15
15
  domain: Domän
16
16
  end_date: Slutdatum
@@ -21,7 +21,7 @@ sv:
21
21
  import_components: Importera komponenter
22
22
  import_steps: Importera steg
23
23
  local_area: Område
24
- meta_scope: Metadata för indelning
24
+ meta_scope: Omfattning
25
25
  participatory_process_group_id: Grupp av processer
26
26
  participatory_process_type_id: Typ av processer
27
27
  participatory_scope: Vad beslutas
@@ -42,12 +42,12 @@ sv:
42
42
  weight: Position i listan
43
43
  participatory_process_group:
44
44
  description: Beskrivning
45
- developer_group: Kampanjgrupp
45
+ developer_group: Arrangör
46
46
  group_url: Webbplats
47
47
  hashtag: Hashtag
48
48
  hero_image: Bild
49
49
  local_area: Område
50
- meta_scope: Metadata för indelning
50
+ meta_scope: Omfattning
51
51
  participatory_process_ids: Relaterade processer
52
52
  participatory_scope: Vad beslutas
53
53
  participatory_structure: Hur fattas beslut
@@ -311,6 +311,7 @@ sv:
311
311
  update: "%{user_name} uppdaterade deltagandeprocessen %{resource_name}"
312
312
  participatory_process_group:
313
313
  create: "%{user_name} skapade gruppen %{resource_name}"
314
+ unpublish: "%{user_name} avpublicerade gruppen av deltagandeprocesser %{resource_name}"
314
315
  update: "%{user_name} uppdaterade gruppen %{resource_name}"
315
316
  participatory_process_step:
316
317
  activate: "%{user_name} aktiverade steget %{resource_name} i processen %{space_name}"
@@ -364,7 +365,7 @@ sv:
364
365
  extra_data:
365
366
  developer_group: Stödd av
366
367
  name: Metadata
367
- participatory_scope: Vad som beslutas
368
+ participatory_scope: Vad beslutas
368
369
  participatory_structure: Hur fattas beslut
369
370
  target: Vem deltar
370
371
  html:
@@ -446,6 +447,8 @@ sv:
446
447
  name: Relaterade processer
447
448
  index:
448
449
  title: Deltagandeprocesser
450
+ last_activity:
451
+ new_participatory_process: 'Ny process:'
449
452
  pages:
450
453
  home:
451
454
  highlighted_processes:
@@ -458,10 +461,10 @@ sv:
458
461
  description:
459
462
  area_name: Område
460
463
  data: Data från processen
461
- developer_group: Kampanjgrupp
464
+ developer_group: Arrangör
462
465
  local_area: Område
463
466
  meta_scope: Indelning
464
- participatory_scope: Vad som beslutas
467
+ participatory_scope: Vad beslutas
465
468
  participatory_structure: Hur fattas beslut
466
469
  target: Vem deltar
467
470
  title: Om processen
@@ -23,7 +23,7 @@ tr:
23
23
  promoted: Tanıtılan
24
24
  published_at: Yayınlandı
25
25
  related_process_ids: İlgili süreçler
26
- scope_id: kapsam
26
+ scope_id: Kapsam
27
27
  scope_type_max_depth_id: Kapsam filtre derinliği
28
28
  scopes_enabled: Kapsamlar etkin
29
29
  short_description: Kısa Açıklama
@@ -53,6 +53,8 @@ tr:
53
53
  short_description: Kısa Açıklama
54
54
  start_date: Başlangıç tarihi
55
55
  title: Başlık
56
+ participatory_process_type:
57
+ title: Başlık
56
58
  participatory_process_user_role:
57
59
  email: E-posta
58
60
  name: isim
@@ -126,6 +128,10 @@ tr:
126
128
  start_date: Başlangıç tarihi
127
129
  title: Başlık
128
130
  name: Katılımcı süreç adımı
131
+ participatory_process_type:
132
+ fields:
133
+ created_at: Düzenlendi
134
+ title: Başlık
129
135
  participatory_process_user_role:
130
136
  fields:
131
137
  email: E-posta
@@ -198,6 +204,11 @@ tr:
198
204
  update:
199
205
  error: Bu katılımcı süreç adımı güncellenirken bir hata oluştu.
200
206
  success: Katılımcı süreç adımı başarıyla güncellendi.
207
+ participatory_process_types:
208
+ edit:
209
+ update: Güncelleştirme
210
+ new:
211
+ create: yaratmak
201
212
  participatory_process_user_roles:
202
213
  create:
203
214
  error: Bu katılımcı süreç için bir kullanıcı eklenirken bir hata oluştu.
@@ -21,7 +21,6 @@ uk:
21
21
  promoted: Висвітлено
22
22
  published_at: 'Оприлюднено:'
23
23
  related_process_ids: Супутні рухи
24
- scope_id: Обсяг
25
24
  scopes_enabled: Обсяги увімкнено
26
25
  short_description: Стислий опис
27
26
  slug: Скорочена веб-адреса
@@ -39,6 +38,8 @@ uk:
39
38
  short_description: Стислий опис
40
39
  start_date: Дата початку
41
40
  title: Назва
41
+ participatory_process_type:
42
+ title: Назва
42
43
  participatory_process_user_role:
43
44
  email: Адреса електронної пошти
44
45
  name: Ім'я
@@ -109,6 +110,10 @@ uk:
109
110
  start_date: Дата початку
110
111
  title: Назва
111
112
  name: Крок руху співучасті
113
+ participatory_process_type:
114
+ fields:
115
+ created_at: 'Додано:'
116
+ title: Назва
112
117
  participatory_process_user_role:
113
118
  fields:
114
119
  email: Адреса електронної пошти
@@ -171,6 +176,11 @@ uk:
171
176
  update:
172
177
  error: При спробі оновити цей крок руху співучасті сталася помилка.
173
178
  success: Крок руху співучасті успішно оновлено.
179
+ participatory_process_types:
180
+ edit:
181
+ update: Оновити
182
+ new:
183
+ create: Створити
174
184
  participatory_process_user_roles:
175
185
  create:
176
186
  error: При спробі додати учасника в цей рух співучасті сталася помилка.
@@ -246,6 +256,9 @@ uk:
246
256
  notification_title: Дати для кроку <a href="%{resource_path}">%{resource_title}</a> у <a href="%{participatory_space_url}">%{participatory_space_title}</a> були оновлені.
247
257
  menu:
248
258
  processes: Рухи
259
+ metrics:
260
+ participatory_processes:
261
+ title: Рухи співучасті
249
262
  participatory_process_groups:
250
263
  content_blocks:
251
264
  stats:
@@ -23,7 +23,6 @@ zh-CN:
23
23
  promoted: 已升级
24
24
  published_at: 发布于
25
25
  related_process_ids: 相关进程
26
- scope_id: 范围
27
26
  scope_type_max_depth_id: 范围过滤器深度:
28
27
  scopes_enabled: 范围已启用
29
28
  short_description: 简短描述
@@ -44,6 +43,8 @@ zh-CN:
44
43
  short_description: 简短描述
45
44
  start_date: 开始日期
46
45
  title: 标题
46
+ participatory_process_type:
47
+ title: 标题
47
48
  participatory_process_user_role:
48
49
  email: 电子邮件地址
49
50
  name: 名称
@@ -106,6 +107,10 @@ zh-CN:
106
107
  start_date: 开始日期
107
108
  title: 标题
108
109
  name: 参与进程阶段
110
+ participatory_process_type:
111
+ fields:
112
+ created_at: 创建于
113
+ title: 标题
109
114
  participatory_process_user_role:
110
115
  fields:
111
116
  email: 电子邮件地址
@@ -178,6 +183,11 @@ zh-CN:
178
183
  update:
179
184
  error: 在更新这一阶段的参与进程时遇到了问题。
180
185
  success: 参与阶段更新成功。
186
+ participatory_process_types:
187
+ edit:
188
+ update: 更新
189
+ new:
190
+ create: 创建
181
191
  participatory_process_user_roles:
182
192
  create:
183
193
  error: 在这个参与进程中增加参与者时遇到了问题。
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = Decidim::ParticipatoryProcesses.version
9
9
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
10
10
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
11
- s.license = "AGPL-3.0"
11
+ s.license = "AGPL-3.0-or-later"
12
12
  s.homepage = "https://decidim.org"
13
13
  s.metadata = {
14
14
  "bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
@@ -11,6 +11,22 @@ module Decidim
11
11
  #
12
12
  # Returns nothing.
13
13
  def self.included(type)
14
+ type.field :participatory_processes,
15
+ [Decidim::ParticipatoryProcesses::ParticipatoryProcessType],
16
+ null: true,
17
+ description: "Lists all participatory_processes" do
18
+ argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument lets you filter the results", required: false
19
+ argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument lets you order the results", required: false
20
+ end
21
+
22
+ type.field :participatory_process,
23
+ Decidim::ParticipatoryProcesses::ParticipatoryProcessType,
24
+ null: true,
25
+ description: "Finds a participatory_process" do
26
+ argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
27
+ argument :slug, String, "The slug of the participatory process", required: false
28
+ end
29
+
14
30
  type.field :participatory_process_groups, [ParticipatoryProcessGroupType],
15
31
  null: false,
16
32
  description: "Lists all participatory process groups"
@@ -30,6 +46,16 @@ module Decidim
30
46
  end
31
47
  end
32
48
 
49
+ def participatory_processes(filter: {}, order: {})
50
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
51
+ Decidim::Core::ParticipatorySpaceListBase.new(manifest:).call(object, { filter:, order: }, context)
52
+ end
53
+
54
+ def participatory_process(id: nil, slug: nil)
55
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
56
+ Decidim::Core::ParticipatorySpaceFinderBase.new(manifest:).call(object, { id:, slug: }, context)
57
+ end
58
+
33
59
  def participatory_process_groups(*)
34
60
  Decidim::ParticipatoryProcessGroup.where(
35
61
  organization: context[:current_organization]
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-participatory_processes version.
5
5
  module ParticipatoryProcesses
6
6
  def self.version
7
- "0.29.1"
7
+ "0.29.3"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-participatory_processes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.1
4
+ version: 0.29.3
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: 2024-10-02 00:00:00.000000000 Z
13
+ date: 2025-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.29.1
21
+ version: 0.29.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.29.1
28
+ version: 0.29.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.29.1
35
+ version: 0.29.3
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.29.1
42
+ version: 0.29.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-dev
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.29.1
49
+ version: 0.29.3
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.29.1
56
+ version: 0.29.3
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-meetings
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.29.1
63
+ version: 0.29.3
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.29.1
70
+ version: 0.29.3
71
71
  description: Participatory processes component for decidim.
72
72
  email:
73
73
  - josepjaume@gmail.com
@@ -284,6 +284,9 @@ files:
284
284
  - config/locales/ar.yml
285
285
  - config/locales/bg-BG.yml
286
286
  - config/locales/bg.yml
287
+ - config/locales/bn-BD.yml
288
+ - config/locales/bs-BA.yml
289
+ - config/locales/ca-IT.yml
287
290
  - config/locales/ca.yml
288
291
  - config/locales/cs-CZ.yml
289
292
  - config/locales/cs.yml
@@ -430,7 +433,7 @@ files:
430
433
  - lib/tasks/decidim_participatory_processes.rake
431
434
  homepage: https://decidim.org
432
435
  licenses:
433
- - AGPL-3.0
436
+ - AGPL-3.0-or-later
434
437
  metadata:
435
438
  bug_tracker_uri: https://github.com/decidim/decidim/issues
436
439
  documentation_uri: https://docs.decidim.org/