activeadmin 4.0.0.beta7 → 4.0.0.beta8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dd5eb1427288ca28b3a68786a8a828646fc7a6a1c310c5a6b126c907c32b5a8
4
- data.tar.gz: 0e40eff7a1e3e06153fbb3f147911696bd19ce27be2f29d4bc5dbba7ef0175ab
3
+ metadata.gz: a63b35e7f784fd50ba0471841cb52b10cf47f732c17e9a03b632303cedb922cf
4
+ data.tar.gz: 54a8a264547063ddf0b1178310a4c8a00444aaa32796e4fe9abd72c04b2406aa
5
5
  SHA512:
6
- metadata.gz: 5c879abbd3cb1e8d617d34be6dd96236f545f15ffdfc3d3866da9f8f7af8d120d13862a395b091ff1cda652c9b48200aaa22f813b0f688cdec9765c06d44f941
7
- data.tar.gz: 1ebbee7ae56c8297b16761fae24d8ccb83bf4d54fb7095f012c3813fe5df2446cd9b2295c077b2c693801b1ff8a79f656b3862e468595aa46558c177107cf575
6
+ metadata.gz: 2f6a7cba813a4ce9af1f4192ab9dd96287b46044524927ab1c410875225f803ee970943658fe4942a59d6647791c61db30ab26479d87fa2db39fa92aeafb6258
7
+ data.tar.gz: fe2b8edf174e2bafcc5efcf21d7cbd2f5f8aa5449aa2f66a2963f537116d41554d30cde07014230dcdfb100bd71f66071d3e96bb8a6ff487656df713c17d2693
@@ -1,11 +1,20 @@
1
1
  import Rails from '@rails/ujs';
2
2
 
3
+ const submitForm = function() {
4
+ let form = document.getElementById("collection_selection")
5
+ if (form) {
6
+ form.submit()
7
+ }
8
+ }
9
+
3
10
  const batchActionClick = function(event) {
4
11
  event.preventDefault()
5
12
  let batchAction = document.getElementById("batch_action")
6
13
  if (batchAction) {
7
14
  batchAction.value = this.dataset.action
8
15
  }
16
+
17
+ if (!event.target.dataset.confirm) { submitForm() }
9
18
  }
10
19
 
11
20
  const batchActionConfirmComplete = function(event) {
@@ -15,10 +24,7 @@ const batchActionConfirmComplete = function(event) {
15
24
  if (batchAction) {
16
25
  batchAction.value = this.dataset.action
17
26
  }
18
- let form = document.getElementById("collection_selection")
19
- if (form) {
20
- form.submit()
21
- }
27
+ submitForm()
22
28
  }
23
29
  }
24
30
 
@@ -1,10 +1,27 @@
1
1
  ca:
2
+ activerecord:
3
+ models:
4
+ comment:
5
+ one: "Comentari"
6
+ other: "Comentaris"
7
+ active_admin/comment:
8
+ one: "Comentari"
9
+ other: "Comentaris"
10
+ attributes:
11
+ active_admin/comment:
12
+ author_type: "Tipus d'autor"
13
+ body: "Missatge"
14
+ created_at: "Creat el"
15
+ namespace: "Espai de noms"
16
+ resource_type: "Tipus de recurs"
17
+ updated_at: "Actualitzat el"
2
18
  active_admin:
3
- dashboard: Tauler
19
+ dashboard: "Tauler d'activitat"
4
20
  view: "Mostra"
5
21
  edit: "Edita"
6
22
  delete: "Elimina"
7
- delete_confirmation: "Segur que vols eliminar-ho?"
23
+ delete_confirmation: "Segur que voleu eliminar-ho?"
24
+ create_another: "Crear un altre %{model}"
8
25
  new_model: "Crear %{model}"
9
26
  edit_model: "Editar %{model}"
10
27
  delete_model: "Eliminar %{model}"
@@ -14,27 +31,41 @@ ca:
14
31
  previous: "Anterior"
15
32
  next: "Següent"
16
33
  download: "Descarregar:"
17
- has_many_new: "Afegir %{model}"
34
+ has_many_new: "Afegir un altre %{model}"
18
35
  has_many_delete: "Eliminar"
19
36
  has_many_remove: "Treure"
37
+ move: "Moure"
20
38
  filters:
21
39
  buttons:
22
- filter: "Filtrar"
23
- clear: "Treure filtres"
40
+ filter: "Filtra"
41
+ clear: "Elimina els filtres"
42
+ predicates:
43
+ from: "Des de"
44
+ to: "Fins"
45
+ scopes:
46
+ all: "Tots"
47
+ search_status:
48
+ title: "Cerca activa"
49
+ title_with_scope: "Cerca activa per %{name}"
50
+ no_current_filters: "Sense filtres actius"
24
51
  status_tag:
25
52
  "yes": "Sí"
26
53
  "no": "No"
27
- "unset": "No"
28
- logout: "Desconnecta't"
54
+ "unset": "Desconegut"
55
+ logout: "Tanca la sessió"
29
56
  powered_by: "Powered by %{active_admin} %{version}"
30
57
  sidebars:
31
58
  filters: "Filtres"
59
+ search_status: "Estat de la cerca"
32
60
  pagination:
33
- empty: "No hi ha %{model}"
34
- one: "S'està mostrant <b>1</b> %{model}"
35
- one_page: "S'estan mostrant <b>tots %{n}</b> %{model}"
36
- multiple: "S'estan mostrant %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> de <b>%{total}</b> en total"
37
- multiple_without_total: "S'estan mostrant %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>"
61
+ empty: "No s'ha trobat cap %{model}"
62
+ one: "S'està mostrant <b>1</b> de <b>1</b>"
63
+ one_page: "S'estan mostrant <b>tots %{n}</b>"
64
+ multiple: "Se n'estan mostrant <b>%{from}-%{to}</b> d'un total de <b>%{total}</b>"
65
+ multiple_without_total: "Se n'estan mostrant <b>%{from}-%{to}</b>"
66
+ per_page: "Per pàgina"
67
+ previous: "Anterior"
68
+ next: "Següent"
38
69
  entry:
39
70
  one: "entrada"
40
71
  other: "entrades"
@@ -43,36 +74,55 @@ ca:
43
74
  content: "Encara no hi ha cap %{resource_name}."
44
75
  link: "Crea'n un/a"
45
76
  batch_actions:
46
- button_label: "les accions per lots"
47
- default_confirmation: "¿Esteu segur que voleu fer-ho?"
48
- delete_confirmation: "¿Està segur que desitja eliminar aquests %{plural_model}?"
77
+ button_label: "Accions per lots"
78
+ default_confirmation: "Segur que voleu fer-ho?"
79
+ delete_confirmation: "Segurs que voleu eliminar aquests %{plural_model}?"
49
80
  succesfully_destroyed:
50
- one: "Va destruir amb èxit 1 %{model}"
51
- other: "Va destruir amb èxit %{count} %{plural_model}"
52
- selection_toggle_explanation: "(Selecció de Canviar)"
81
+ one: "1 %{model} eliminat"
82
+ other: "%{count} %{plural_model} eliminats"
83
+ selection_toggle_explanation: "(Invertir la selecció)"
53
84
  action_label: "%{title} seleccionat"
54
85
  labels:
55
- destroy: "esborrar"
86
+ destroy: "Esborrar"
56
87
  comments:
57
- body: "Cos"
58
- author: "autor"
88
+ created_at: "Creat el"
89
+ resource_type: "Tipus de recurs"
90
+ author_type: "Tipus d'author"
91
+ body: "Missatge"
92
+ author: "Autor"
59
93
  add: "Afegeix comentari"
94
+ delete: "Elimina comentari"
95
+ delete_confirmation: "Esteu segurs que voleu eliminar aquest comentari?"
60
96
  resource: "Recurs"
61
- no_comments_yet: "No hi ha comentaris"
62
- title_content: "comentaris (%{count})"
97
+ no_comments_yet: "Sense comentaris"
98
+ author_missing: "Anònim"
99
+ title_content: "Tots els comentaris (%{count})"
63
100
  errors:
64
- empty_text: "El comentari no es va salvar, el text estava buida."
101
+ empty_text: "El comentari no s'ha desat, no hi havia text."
65
102
  devise:
103
+ username:
104
+ title: "Usuari"
105
+ email:
106
+ title: "Email"
107
+ subdomain:
108
+ title: "Subdomini"
109
+ password:
110
+ title: "Contrasenya"
111
+ password_confirmation:
112
+ title: "Confirmeu la contrasenya"
113
+ sign_up:
114
+ title: "Doneu-vos d'alta"
115
+ submit: "Doneu-vos d'alta"
66
116
  login:
67
- title: "iniciar sessió"
68
- remember_me: "Recordar"
69
- submit: "iniciar sessió"
117
+ title: "Identifiqueu-vos"
118
+ remember_me: "Recorda'm"
119
+ submit: "Identifiqueu-vos"
70
120
  reset_password:
71
- title: "Heu perdut la contrasenya?"
121
+ title: "Heu oblidat la contrasenya?"
72
122
  submit: "Restablir la contrasenya"
73
123
  change_password:
74
124
  title: "Canvieu la contrasenya"
75
- submit: "Canviar la contrasenya"
125
+ submit: "Canvia'm la contrasenya"
76
126
  unlock:
77
127
  title: "Reenvia instruccions per a desbloquejar"
78
128
  submit: "Reenvia instruccions per a desbloquejar"
@@ -80,10 +130,13 @@ ca:
80
130
  title: "Reenviar instruccions de confirmació"
81
131
  submit: "Reenviar instruccions de confirmació"
82
132
  links:
83
- sign_in: "Registrar"
133
+ sign_up: "Sign up"
134
+ sign_in: "Sign in"
84
135
  forgot_your_password: "Heu perdut la contrasenya?"
85
- sign_in_with_omniauth_provider: "Connecta't amb %{provider}"
136
+ sign_in_with_omniauth_provider: "Identificació via %{provider}"
137
+ resend_unlock_instructions: "Reenviar les instruccions de desbloqueig"
138
+ resend_confirmation_instructions: "Reenviar les instruccions de confirmació"
86
139
  access_denied:
87
- message: "No esta autoritzat a realitzar aquesta acció."
140
+ message: "No esteu autoritzats a realitzar aquesta acció"
88
141
  index_list:
89
142
  table: "Taula"
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdmin
3
- VERSION = "4.0.0.beta7"
3
+ VERSION = "4.0.0.beta8"
4
4
  end
data/plugin.js CHANGED
@@ -44,7 +44,6 @@ module.exports = plugin(
44
44
  "[type='tel']",
45
45
  "[type='time']",
46
46
  "[type='week']",
47
- '[multiple]',
48
47
  'textarea',
49
48
  'select',
50
49
  ]]: {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta7
4
+ version: 4.0.0.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2024-05-31 00:00:00.000000000 Z
18
+ date: 2024-07-27 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -401,11 +401,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
401
401
  version: '3.0'
402
402
  required_rubygems_version: !ruby/object:Gem::Requirement
403
403
  requirements:
404
- - - ">"
404
+ - - ">="
405
405
  - !ruby/object:Gem::Version
406
- version: 1.3.1
406
+ version: '0'
407
407
  requirements: []
408
- rubygems_version: 3.4.6
408
+ rubygems_version: 3.5.15
409
409
  signing_key:
410
410
  specification_version: 4
411
411
  summary: Active Admin is a Ruby on Rails plugin for generating administration style