decidim-design 0.30.3 → 0.31.0.rc1

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/decidim/design/colors_helper.rb +2 -1
  3. data/app/helpers/decidim/design/share_helper.rb +25 -1
  4. data/app/packs/stylesheets/design.scss +2 -3
  5. data/app/views/decidim/design/components/accordions.html.erb +2 -2
  6. data/app/views/decidim/design/components/activities/_static-activities.html.erb +2 -2
  7. data/app/views/decidim/design/components/activities/_static-activity.html.erb +2 -2
  8. data/app/views/decidim/design/components/cards/_static-card-l-description.html.erb +1 -1
  9. data/app/views/decidim/design/components/cards/_static-card-l-image.html.erb +3 -3
  10. data/app/views/decidim/design/components/cards/_static-card-l.html.erb +3 -3
  11. data/app/views/decidim/design/components/dropdowns.html.erb +1 -1
  12. data/app/views/decidim/design/components/forms.html.erb +20 -20
  13. data/app/views/decidim/design/foundations/accessibility.html.erb +11 -11
  14. data/app/views/layouts/decidim/design/_head.html.erb +1 -1
  15. data/app/views/layouts/decidim/design/_layout.html.erb +1 -1
  16. data/app/views/layouts/decidim/design/application.html.erb +1 -5
  17. data/config/assets.rb +2 -2
  18. data/config/brakeman.ignore +51 -0
  19. data/config/locales/ar.yml +6 -0
  20. data/config/locales/bg.yml +3 -3
  21. data/config/locales/ca-IT.yml +7 -6
  22. data/config/locales/ca.yml +7 -6
  23. data/config/locales/cs.yml +5 -3
  24. data/config/locales/de.yml +7 -3
  25. data/config/locales/en.yml +7 -6
  26. data/config/locales/es-MX.yml +6 -5
  27. data/config/locales/es-PY.yml +6 -5
  28. data/config/locales/es.yml +6 -5
  29. data/config/locales/eu.yml +6 -5
  30. data/config/locales/fi-plain.yml +7 -6
  31. data/config/locales/fi.yml +7 -6
  32. data/config/locales/fr-CA.yml +5 -6
  33. data/config/locales/fr.yml +5 -6
  34. data/config/locales/ja.yml +7 -6
  35. data/config/locales/pl.yml +3 -3
  36. data/config/locales/ro-RO.yml +3 -1
  37. data/config/locales/sv.yml +5 -5
  38. data/config/locales/tr-TR.yml +0 -1
  39. data/lib/decidim/design/engine.rb +1 -1
  40. data/lib/decidim/design/version.rb +1 -1
  41. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5186c124f3f82b6c6b426632b5670f5caa6337521d78054dfdb31bd8b5a26b18
4
- data.tar.gz: 5443587d4563be612fd0159b15475d507d30925a6220f3c2dd4629b36d7dfb79
3
+ metadata.gz: 25ad5c9d038b21bcaccb85a93821ef11876af2982e045e02f42dbd0ebfd2dfdc
4
+ data.tar.gz: 92059b3a899e91a3c50a4e6842d5b4feedf33e73d7647c2c1604b4da7299f0a4
5
5
  SHA512:
6
- metadata.gz: c99864956c8da9dcf79b3b74c25c12ca864c4be07c9cb01eab37ce1d1fde4c1aa97b988889167d417ac810a729c6b565fe9fc0fc71797d37c2506f0cffeb754f
7
- data.tar.gz: 5a11d99b653bf66472af7db864b5a554779910247e2a995c729035a3b5fff5b34f97daa0fc0a9c6796ab4ac7f139936b42ddb3f1b356be3c51b19b52ca729535
6
+ metadata.gz: f29c7f07c084539afce9651a41ba7fea004751924160bd857e07efaa19780d74f07559ef24b1a44031b170666858c9af01b6216bbc36cfd2fc7b747339b5b8ad
7
+ data.tar.gz: e30c878dc9a919e0114f24dabeb626fbd2fc1b37ae3bf406e992f1498df22c5634f1053eab5341aaa0288bf7ed0064a6e9ac8387467a35b5368b3ea25bf4cff0
@@ -48,7 +48,8 @@ module Decidim
48
48
  { value: "#020203", name: "black", rgba: "rgba(2,2,3,1)", usage: t("decidim.design.helpers.usage_typography_1") },
49
49
  { value: "#3E4C5C", name: "gray-2", rgba: "rgba(62,76,92,1)", usage: t("decidim.design.helpers.usage_typography_2") },
50
50
  { value: "#FFFFFF", name: "white", rgba: "rgba(255,255,255,1)", usage: t("decidim.design.helpers.usage_typography_3") },
51
- { value: "#155ABF", name: "secondary", rgba: "rgba(21,90,191,1)", usage: t("decidim.design.helpers.usage_typography_4") }
51
+ { value: "#155ABF", name: "secondary", rgba: "rgba(21,90,191,1)", usage: t("decidim.design.helpers.usage_typography_4") },
52
+ { value: "#a3a3a3", name: "neutral-400", rgba: "rgba(163,163,163,1)", usage: t("decidim.design.helpers.usage_typography_5") }
52
53
  )
53
54
  },
54
55
  {
@@ -18,7 +18,7 @@ module Decidim
18
18
  options: { headings: [t("decidim.design.helpers.share_button")] },
19
19
  cell_snippet: {
20
20
  cell: "decidim/share_widget",
21
- args: [{}],
21
+ args: [shareable],
22
22
  call_string: 'cell("decidim/share_widget", resource)'
23
23
  }
24
24
  }
@@ -26,6 +26,30 @@ module Decidim
26
26
  }
27
27
  ]
28
28
  end
29
+
30
+ def shareable
31
+ ShareableResource.new
32
+ end
33
+
34
+ class ShareableResourcePresenter < SimpleDelegator
35
+ def title(*)
36
+ __getobj__.title
37
+ end
38
+ end
39
+
40
+ class ShareableResource
41
+ def initialize
42
+ @title = "Shareable Resource"
43
+ end
44
+
45
+ def presenter = ShareableResourcePresenter.new(self)
46
+
47
+ def to_sgid = "#"
48
+
49
+ def [](key); end
50
+
51
+ attr_accessor :title
52
+ end
29
53
  end
30
54
  end
31
55
  end
@@ -1,4 +1,4 @@
1
- @import "tom-select/dist/scss/tom-select";
1
+ @use "tom-select/dist/scss/tom-select";
2
2
 
3
3
  .design__layout {
4
4
  @apply grid md:grid-cols-12 container min-h-screen before:content-[''] before:absolute before:-z-10 before:w-1/2 before:h-full before:inset-0 before:bg-background;
@@ -72,8 +72,7 @@
72
72
  @apply pb-10 border-b border-background;
73
73
  }
74
74
 
75
- .design__heading__description,
76
- .design__section {
75
+ .design__heading__description {
77
76
  @apply mt-10 text-gray-2 text-md font-normal [&>*+*]:mt-4 [&_a]:underline;
78
77
  }
79
78
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  <p><%= t(".demo_description") %></p>
19
19
 
20
- <div data-component="accordion" data-multiselectable="false" id="example-accordion-1">
20
+ <div data-controller="accordion" data-multiselectable="false" id="example-accordion-1">
21
21
  <ul class="tab-x-container">
22
22
  <% 3.times do |tab| %>
23
23
  <li>
@@ -53,7 +53,7 @@
53
53
 
54
54
  <code>
55
55
  <textarea spellcheck="false" rows="8">
56
- <div data-component="accordion" id="example-accordion">
56
+ <div data-controller="accordion" id="example-accordion">
57
57
  <button id="trigger" data-controls="panel">
58
58
  <%= t(".trigger") %>
59
59
  </button>
@@ -19,7 +19,7 @@
19
19
  </div>
20
20
  <div class="activity__author">
21
21
  <div class="author" data-author="">
22
- <div class="author__container" data-tooltip="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
22
+ <div class="author__container" data-controller="tooltip" data-tooltip-tooltip-value="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
23
23
  <div class=&quot;author__container&quot;>
24
24
  <span class=&quot;author__avatar-container&quot;>
25
25
  <a href=&quot;#&quot;>
@@ -45,7 +45,7 @@
45
45
  <svg width=&quot;1em&quot; height=&quot;1em&quot; role=&quot;img&quot; aria-hidden=&quot;true&quot;><use href=&quot;<%= "#{asset_pack_path("media/images/remixicon.symbol.svg")}#ri-notification-3-line" %>&quot; tabindex=&quot;-1&quot;></use></svg>
46
46
  </button><input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;l10A9D-VXx2J_sZi-EpPchvyyTbr_MuBIof0orqJ8mjskMZN38Nr1MLZHbYb06Q8XSxGIxtHP1Yz99QH5NtWaA&quot; autocomplete=&quot;off&quot; /><input type=&quot;hidden&quot; name=&quot;follow[button_classes]&quot; value=&quot;button button__sm button__transparent&quot; autocomplete=&quot;off&quot; /><input type=&quot;hidden&quot; name=&quot;follow[followable_gid]&quot; value=&quot;eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJajFuYVdRNkx5OWtaV05wWkdsdExYQnZjSFZzWVhSbExYSmxaR1Z6YVdkdUwwUmxZMmxrYVcwNk9sVnpaWEpIY205MWNDOHlPREEzT0FZNkJrVlUiLCJleHAiOiIyMDIzLTEyLTA4VDE3OjM2OjUxLjk1MVoiLCJwdXIiOiJkZWZhdWx0In19--3388eefc3a8a7c90bdb54c2473912eb49caa3192&quot; autocomplete=&quot;off&quot; /></form>
47
47
  </div>
48
- " aria-describedby="0f99qi-tooltip" data-yeti-box="0f99qi-tooltip" data-toggle="0f99qi-tooltip" data-resize="0f99qi-tooltip" id="toggle-0q86" aria-controls="0f99qi-tooltip" data-events="resize">
48
+ " aria-describedby="0f99qi-tooltip" data-yeti-box="0f99qi-tooltip" data-resize="0f99qi-tooltip" id="toggle-0q86" aria-controls="0f99qi-tooltip" data-events="resize">
49
49
  <span class="author__avatar-container">
50
50
  <a href="#">
51
51
  <img alt="Avatar: User Group 28078" class="author__avatar" src="<%= asset_pack_path("media/images/default-avatar.svg") %>">
@@ -18,7 +18,7 @@
18
18
  </div>
19
19
  <div class="activity__author">
20
20
  <div class="author" data-author="">
21
- <div class="author__container" data-tooltip="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
21
+ <div class="author__container" data-controller="tooltip" data-tooltip-tooltip-value="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
22
22
  <div class=&quot;author__container&quot;>
23
23
  <span class=&quot;author__avatar-container&quot;>
24
24
  <a href=&quot;#&quot;>
@@ -44,7 +44,7 @@
44
44
  <svg width=&quot;1em&quot; height=&quot;1em&quot; role=&quot;img&quot; aria-hidden=&quot;true&quot;><use href=&quot;<%= "#{asset_pack_path("media/images/remixicon.symbol.svg")}#ri-notification-3-line" %>&quot; tabindex=&quot;-1&quot;></use></svg>
45
45
  </button><input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;YDKRsY0hZ4fwm-K_uG6tJua9MP4qEnaP46S_3F9VAVMb_1cIbXdTTru8OWtb90ZooGO_69qpgljy1J95AQelUw&quot; autocomplete=&quot;off&quot; /><input type=&quot;hidden&quot; name=&quot;follow[button_classes]&quot; value=&quot;button button__sm button__transparent&quot; autocomplete=&quot;off&quot; /><input type=&quot;hidden&quot; name=&quot;follow[followable_gid]&quot; value=&quot;eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJajFuYVdRNkx5OWtaV05wWkdsdExYQnZjSFZzWVhSbExYSmxaR1Z6YVdkdUwwUmxZMmxrYVcwNk9sVnpaWEpIY205MWNDOHlPREF6TmdZNkJrVlUiLCJleHAiOiIyMDIzLTEyLTEwVDExOjM3OjA1LjExNFoiLCJwdXIiOiJkZWZhdWx0In19--8488df6a633dd76191d973d968ce85a2fee73622&quot; autocomplete=&quot;off&quot; /></form>
46
46
  </div>
47
- " aria-describedby="j1iaa9-tooltip" data-yeti-box="j1iaa9-tooltip" data-toggle="j1iaa9-tooltip" data-resize="j1iaa9-tooltip" id="toggle-nuqmnw" aria-controls="j1iaa9-tooltip" data-events="resize">
47
+ " aria-describedby="j1iaa9-tooltip" data-yeti-box="j1iaa9-tooltip" data-resize="j1iaa9-tooltip" id="toggle-nuqmnw" aria-controls="j1iaa9-tooltip" data-events="resize">
48
48
  <span class="author__avatar-container">
49
49
  <a href="#">
50
50
  <img alt="Avatar: User Group 28036" class="author__avatar" src="<%= asset_pack_path("media/images/default-avatar.svg") %>">
@@ -15,7 +15,7 @@
15
15
  <%= icon("wechat-line") %>
16
16
  0
17
17
  </span>
18
- <span data-endorsements-count="">
18
+ <span data-likes-count="">
19
19
  <%= icon("like") %>
20
20
  0
21
21
  </span>
@@ -13,7 +13,7 @@
13
13
  <span>
14
14
  <!-- linthtml-disable -->
15
15
  <div class="author" data-author="">
16
- <div class="author__container" data-tooltip="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
16
+ <div class="author__container" data-controller="tooltip" data-tooltip-tooltip-value="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
17
17
  <div class=&quot;author__container&quot;>
18
18
  <span class=&quot;author__avatar-container&quot;>
19
19
  <img alt=&quot;Avatar: Terica MacGyver Sr.&quot; class=&quot;author__avatar&quot; src=&quot;<%= asset_pack_path("media/images/default-avatar.svg") %>&quot; />
@@ -40,7 +40,7 @@
40
40
  <svg width=&quot;1em&quot; height=&quot;1em&quot; role=&quot;img&quot; aria-hidden=&quot;true&quot;><use href=&quot;<%= "#{asset_pack_path("media/images/remixicon.symbol.svg")}#ri-notification-3-line" %>&quot; tabindex=&quot;-1&quot;></use></svg>
41
41
  </a>
42
42
  </div>
43
- " aria-describedby="5filn3-tooltip" data-yeti-box="5filn3-tooltip" data-toggle="5filn3-tooltip" data-resize="5filn3-tooltip" id="toggle-0rsefa" aria-controls="5filn3-tooltip">
43
+ " aria-describedby="5filn3-tooltip" data-yeti-box="5filn3-tooltip" data-resize="5filn3-tooltip" id="toggle-0rsefa" aria-controls="5filn3-tooltip">
44
44
  <span class="author__avatar-container">
45
45
  <img alt="Avatar: Terica MacGyver Sr." class="author__avatar" src="<%= asset_pack_path("media/images/default-avatar.svg") %>">
46
46
  </span>
@@ -57,7 +57,7 @@
57
57
  <%= icon("wechat-line") %>
58
58
  2
59
59
  </span>
60
- <span data-endorsements-count="">
60
+ <span data-likes-count="">
61
61
  <%= icon("like") %>
62
62
  0
63
63
  </span>
@@ -7,7 +7,7 @@
7
7
  <span>
8
8
  <!-- linthtml-disable -->
9
9
  <div class="author" data-author="">
10
- <div class="author__container" data-tooltip="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
10
+ <div class="author__container" data-controller="tooltip" data-tooltip-tooltip-value="<div class=&quot;author__tooltip bottom&quot; role=&quot;tooltip&quot;>
11
11
  <div class=&quot;author__container&quot;>
12
12
  <span class=&quot;author__avatar-container&quot;>
13
13
  <img alt=&quot;Avatar: Tammy Lesch VM&quot; class=&quot;author__avatar&quot; src=&quot;<%= asset_pack_path("media/images/default-avatar.svg") %>&quot; />
@@ -31,7 +31,7 @@
31
31
  <svg width=&quot;1em&quot; height=&quot;1em&quot; role=&quot;img&quot; aria-hidden=&quot;true&quot;><use href=&quot;<%= "#{asset_pack_path("media/images/remixicon.symbol.svg")}#ri-notification-3-line" %>&quot; tabindex=&quot;-1&quot;></use></svg>
32
32
  </button><input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;lS3Qr0rPEGR-g40UKR1aXFG0ekPAg3vX75katkSHYSttywRbOAj5EvsNAWZ91bMhwstNuRYPuhbLQE-AvlAs6w&quot; autocomplete=&quot;off&quot; /><input type=&quot;hidden&quot; name=&quot;follow[button_classes]&quot; value=&quot;button button__sm button__transparent&quot; autocomplete=&quot;off&quot; /><input type=&quot;hidden&quot; name=&quot;follow[followable_gid]&quot; value=&quot;BAh7CEkiCGdpZAY6BkVUSSI4Z2lkOi8vZGVjaWRpbS1kZXZlbG9wbWVudC1hcHAvRGVjaWRpbTo6VXNlckdyb3VwLzI0BjsAVEkiDHB1cnBvc2UGOwBUSSIMZGVmYXVsdAY7AFRJIg9leHBpcmVzX2F0BjsAVEkiHTIwMjMtMTEtMTlUMDc6MDg6NDAuNDU3WgY7AFQ=--a0875a4b535cbc4218f1e0707cc6ea2148e213f3&quot; autocomplete=&quot;off&quot; /></form>
33
33
  </div>
34
- " aria-describedby="t17dfd-tooltip" data-yeti-box="t17dfd-tooltip" data-toggle="t17dfd-tooltip" data-resize="t17dfd-tooltip" id="toggle-2k3n55" aria-controls="t17dfd-tooltip">
34
+ " aria-describedby="t17dfd-tooltip" data-yeti-box="t17dfd-tooltip" data-resize="t17dfd-tooltip" id="toggle-2k3n55" aria-controls="t17dfd-tooltip">
35
35
  <span class="author__avatar-container">
36
36
  <img alt="Avatar: Tammy Lesch VM" class="author__avatar" src="<%= asset_pack_path("media/images/default-avatar.svg") %>">
37
37
  </span>
@@ -44,7 +44,7 @@
44
44
  <%= icon("wechat-line") %>
45
45
  0
46
46
  </span>
47
- <span data-endorsements-count="">
47
+ <span data-likes-count="">
48
48
  <%= icon("like") %>
49
49
  0
50
50
  </span>
@@ -20,7 +20,7 @@
20
20
 
21
21
  <p><%= t("decidim.design.helpers.dropdowns_demo_1_description") %></p>
22
22
 
23
- <button id="dropdown-trigger-element" data-component="dropdown" data-target="dropdown-menu-element" data-auto-close="true">
23
+ <button id="dropdown-trigger-element" data-controller="dropdown" data-target="dropdown-menu-element" data-auto-close="true">
24
24
  <span><%= t("decidim.searches.filters.jump_to") %></span>
25
25
  <%= icon "arrow-down-s-line" %>
26
26
  <%= icon "arrow-up-s-line" %>
@@ -40,8 +40,8 @@
40
40
 
41
41
  <% text_types.each do |element| %>
42
42
  <label>
43
- input type="<%= element %>"
44
- <input type="<%= element %>" <% if %w(datetime-local date).include?(element) %> hide_help="true" <% end %>>
43
+ input type="<%= element %>" <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>
44
+ <input type="<%= element %>" <% if %w(datetime-local date).include?(element) %> hide_help="true" data-controller="date-picker" <% end %>>
45
45
  </label>
46
46
  <% end %>
47
47
 
@@ -80,9 +80,9 @@
80
80
  <div class="form__wrapper">
81
81
  <% text_types.each do |element| %>
82
82
  <label>
83
- input type="<%= element %>"
83
+ input type="<%= element %>" <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>
84
84
  <span class="help-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos hic quos omnis vero aspernatur architecto!</span>
85
- <input type="<%= element %>">
85
+ <input type="<%= element %>" <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>>
86
86
  </label>
87
87
  <% end %>
88
88
 
@@ -124,8 +124,8 @@
124
124
  <div class="form__wrapper">
125
125
  <% text_types.each do |element| %>
126
126
  <label>
127
- input type="<%= element %>" disabled
128
- <input type="<%= element %>" disabled>
127
+ input type="<%= element %>" disabled <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>
128
+ <input type="<%= element %>" disabled <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>>
129
129
  </label>
130
130
  <% end %>
131
131
 
@@ -166,8 +166,8 @@
166
166
 
167
167
  <% text_types.each do |element| %>
168
168
  <label>
169
- input type="<%= element %>" required
170
- <input type="<%= element %>" required>
169
+ input type="<%= element %>" required <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>
170
+ <input type="<%= element %>" required <% if %w(datetime-local date).include?(element) %> data-controller="date-picker" <% end %>>
171
171
  <div class="form-error">Lorem ipsum dolor sit amet.</div>
172
172
  </label>
173
173
  <% end %>
@@ -201,23 +201,23 @@
201
201
  <%= cell "decidim/announcement", t(".min_max_length_description") %>
202
202
 
203
203
  <label>
204
- input type="text" maxlength="20"
205
- <input type="text" maxlength="20">
204
+ input type="text" maxlength="20" data-controller="character-counter"
205
+ <input type="text" maxlength="20" data-controller="character-counter">
206
206
  </label>
207
207
 
208
208
  <label>
209
- textarea maxlength="20"
210
- <textarea cols="30" rows="10" maxlength="20"></textarea>
209
+ textarea maxlength="20" data-controller="character-counter"
210
+ <textarea cols="30" rows="10" maxlength="20" data-controller="character-counter"></textarea>
211
211
  </label>
212
212
 
213
213
  <label>
214
- input type="text" minlength="5" maxlength="20"
215
- <input type="text" minlength="5" maxlength="20">
214
+ input type="text" minlength="5" maxlength="20" data-controller="character-counter"
215
+ <input type="text" minlength="5" maxlength="20" data-controller="character-counter">
216
216
  </label>
217
217
 
218
218
  <label>
219
- textarea minlength="5" maxlength="20"
220
- <textarea cols="30" rows="10" minlength="5" maxlength="20"></textarea>
219
+ textarea minlength="5" maxlength="20" data-controller="character-counter"
220
+ <textarea cols="30" rows="10" minlength="5" data-controller="character-counter" maxlength="20"></textarea>
221
221
  </label>
222
222
  </div>
223
223
  </section>
@@ -229,8 +229,8 @@
229
229
  <%= cell "decidim/announcement", t(".emojis_description") %>
230
230
 
231
231
  <label>
232
- textarea data-input-emoji="true"
233
- <textarea cols="30" rows="10" data-input-emoji="true"></textarea>
232
+ textarea data-controller="emoji"
233
+ <textarea cols="30" rows="10" data-controller="emoji"></textarea>
234
234
  </label>
235
235
  </div>
236
236
  </section>
@@ -242,8 +242,8 @@
242
242
  <p><%= t(".multiselect_description_html") %></p>
243
243
 
244
244
  <label>
245
- input type="text" class="js-tags-container" value="abc, 123"
246
- <input type="text" class="js-tags-container" value="abc, 123">
245
+ input type="text" data-controller="input-tags" value="abc, 123"
246
+ <input type="text" data-controller="input-tags" value="abc, 123">
247
247
  </label>
248
248
  </div>
249
249
  </section>
@@ -3,7 +3,7 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :description do %>
6
- <p><%= t(".decidim_follows_html", link: link_to(t(".wcag_guidelines"), "https://www.w3.org/WAI/standards-guidelines/wcag/", target: "_blank", rel: "noopener noreferrer")) %></p>
6
+ <p><%= t(".decidim_follows_html") %></p>
7
7
  <% end %>
8
8
 
9
9
  <% content_for :toc do %>
@@ -23,7 +23,7 @@
23
23
 
24
24
  <p><%= t(".illogical_heading_paragraph") %></p>
25
25
 
26
- <p><%= t(".learn_more_about_html", link: link_to(t(".illogical_heading_order"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_illogical_heading_order", target: "_blank", rel: "noopener noreferrer")) %></p>
26
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_illogical_heading_order", target: "_blank", rel: "noopener noreferrer")) %></p>
27
27
  </section>
28
28
 
29
29
  <section id="unique-h1" class="design__section">
@@ -31,7 +31,7 @@
31
31
 
32
32
  <p><%= t(".unique_h1_paragraph") %></p>
33
33
 
34
- <p><%= t(".learn_more_about_html", link: link_to(t(".unique_h1"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_unique_h1_on_every_page", target: "_blank", rel: "noopener noreferrer")) %></p>
34
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_unique_h1_on_every_page", target: "_blank", rel: "noopener noreferrer")) %></p>
35
35
  </section>
36
36
 
37
37
  <section id="one-heading" class="design__section">
@@ -39,7 +39,7 @@
39
39
 
40
40
  <p><%= t(".important_sections_paragraph") %></p>
41
41
 
42
- <p><%= t(".learn_more_about_html", link: link_to(t(".important_sections_heading"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_heading_on_important_sections", target: "_blank", rel: "noopener noreferrer")) %></p>
42
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_heading_on_important_sections", target: "_blank", rel: "noopener noreferrer")) %></p>
43
43
  </section>
44
44
 
45
45
  <section id="color-contrast" class="design__section">
@@ -47,7 +47,7 @@
47
47
 
48
48
  <p><%= t(".color_contrast_paragraph") %></p>
49
49
 
50
- <p><%= t(".learn_more_about_html", link: link_to(t(".color_contrast"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_color_contrast ", target: "_blank", rel: "noopener noreferrer")) %></p>
50
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_color_contrast ", target: "_blank", rel: "noopener noreferrer")) %></p>
51
51
  </section>
52
52
 
53
53
  <section id="links-buttons" class="design__section">
@@ -55,7 +55,7 @@
55
55
 
56
56
  <p><%= t(".links_and_buttons_paragraph") %></p>
57
57
 
58
- <p><%= t(".learn_more_about_html", link: link_to(t(".color_contrast"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_links_and_buttons", target: "_blank", rel: "noopener noreferrer")) %></p>
58
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_links_and_buttons", target: "_blank", rel: "noopener noreferrer")) %></p>
59
59
  </section>
60
60
 
61
61
  <section id="a11y-labels" class="design__section">
@@ -63,7 +63,7 @@
63
63
 
64
64
  <p><%= t(".accessibility_labels_paragraph") %></p>
65
65
 
66
- <p><%= t(".learn_more_about_html", link: link_to(t(".accessibility_labels"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_accessibility_labels", target: "_blank", rel: "noopener noreferrer")) %></p>
66
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_accessibility_labels", target: "_blank", rel: "noopener noreferrer")) %></p>
67
67
  </section>
68
68
 
69
69
  <section id="adjacent-links" class="design__section">
@@ -71,7 +71,7 @@
71
71
 
72
72
  <p><%= t(".adjacent_links_paragraph") %></p>
73
73
 
74
- <p><%= t(".learn_more_about_html", link: link_to(t(".adjacent_links_header"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_adjacent_links_for_the_same_resource", target: "_blank", rel: "noopener noreferrer")) %></p>
74
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_adjacent_links_for_the_same_resource", target: "_blank", rel: "noopener noreferrer")) %></p>
75
75
  </section>
76
76
 
77
77
  <section id="dynamic-changes" class="design__section">
@@ -79,7 +79,7 @@
79
79
 
80
80
  <p><%= t(".dynamic_changes_paragraph") %></p>
81
81
 
82
- <p><%= t(".learn_more_about_html", link: link_to(t(".dynamic_changes_header"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_dynamic_functionality_changes_the_page_context_unintuitively", target: "_blank", rel: "noopener noreferrer")) %></p>
82
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_dynamic_functionality_changes_the_page_context_unintuitively", target: "_blank", rel: "noopener noreferrer")) %></p>
83
83
  </section>
84
84
 
85
85
  <section id="aria" class="design__section">
@@ -87,7 +87,7 @@
87
87
 
88
88
  <p><%= t(".use_aria_paragraph") %></p>
89
89
 
90
- <p><%= t(".learn_more_about_html", link: link_to(t(".use_aria_header"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_use_aria_attributes_where_possible", target: "_blank", rel: "noopener noreferrer")) %></p>
90
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_use_aria_attributes_where_possible", target: "_blank", rel: "noopener noreferrer")) %></p>
91
91
  </section>
92
92
 
93
93
  <section id="elements-hidden" class="design__section">
@@ -95,5 +95,5 @@
95
95
 
96
96
  <p><%= t(".elements_hidden_paragraph") %></p>
97
97
 
98
- <p><%= t(".learn_more_about_html", link: link_to(t(".elements_hidden_header"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_elements_hidden_from_the_accessibility_api", target: "_blank", rel: "noopener noreferrer")) %></p>
98
+ <p><%= t(".see_further_info_html", link: link_to(t(".here_link"), "https://docs.decidim.org/en/develop/develop/guide_accessibility.html#_elements_hidden_from_the_accessibility_api", target: "_blank", rel: "noopener noreferrer")) %></p>
99
99
  </section>
@@ -1,4 +1,4 @@
1
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
1
+ <%= tag :meta, name: "viewport", content: "width=device-width, initial-scale=1.0" %>
2
2
  <%= javascript_pack_tag "decidim_core", "decidim_design", defer: false %>
3
3
 
4
4
  <%= append_stylesheet_pack_tag "decidim_overrides", media: "all" %>
@@ -53,7 +53,7 @@
53
53
  </ul>
54
54
  </aside>
55
55
 
56
- <main id="content">
56
+ <main>
57
57
  <% if content_for?(:heading) %>
58
58
  <section class="design__heading__section">
59
59
  <h1 class="design__heading__5xl">
@@ -1,17 +1,13 @@
1
1
  <% add_decidim_page_title(strip_tags(yield(:heading).lines.last).strip) if content_for?(:heading) %>
2
2
  <% add_decidim_page_title("Decidim Design Guide") %>
3
3
  <!DOCTYPE html>
4
- <html lang="<%= I18n.locale %>">
4
+ <html>
5
5
  <head>
6
6
  <title><%= decidim_page_title %></title>
7
7
  <%= render partial: "layouts/decidim/design/head" %>
8
8
  </head>
9
9
 
10
10
  <body class="relative text-black text-md form-defaults">
11
- <!--noindex--><!--googleoff: all-->
12
- <%= link_to t("skip_button", scope: "decidim.accessibility"), "#content", class: "layout-container__skip" %>
13
- <!--googleon: all--><!--/noindex-->
14
-
15
11
  <%= render layout: "layouts/decidim/design/layout" do %>
16
12
  <%= yield %>
17
13
  <% end %>
data/config/assets.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  base_path = File.expand_path("..", __dir__)
4
4
 
5
- Decidim::Webpacker.register_path("#{base_path}/app/packs")
6
- Decidim::Webpacker.register_entrypoints(
5
+ Decidim::Shakapacker.register_path("#{base_path}/app/packs")
6
+ Decidim::Shakapacker.register_entrypoints(
7
7
  decidim_design: "#{base_path}/app/packs/entrypoints/decidim_design.js"
8
8
  )
@@ -0,0 +1,51 @@
1
+ {
2
+ "ignored_warnings": [
3
+ {
4
+ "warning_type": "Dynamic Render Path",
5
+ "warning_code": 15,
6
+ "fingerprint": "7a3411e36cd1e0fe2644f8be0eafd08ce2b1f5cacab6a6e88d9598671a3ed523",
7
+ "check_name": "Render",
8
+ "message": "Render path contains parameter value",
9
+ "file": "app/controllers/decidim/design/components_controller.rb",
10
+ "line": 15,
11
+ "link": "https://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
12
+ "code": "render(action => \"decidim/design/#{controller_name}/#{params[:id]}\", {})",
13
+ "render_path": null,
14
+ "location": {
15
+ "type": "method",
16
+ "class": "Decidim::Design::ComponentsController",
17
+ "method": "show"
18
+ },
19
+ "user_input": "params[:id]",
20
+ "confidence": "Medium",
21
+ "cwe_id": [
22
+ 22
23
+ ],
24
+ "note": ""
25
+ },
26
+ {
27
+ "warning_type": "Dynamic Render Path",
28
+ "warning_code": 15,
29
+ "fingerprint": "ef8d78c5d19841fda160e60f935722ac88bb1be92003164a8e63fd7b51e8bcc5",
30
+ "check_name": "Render",
31
+ "message": "Render path contains parameter value",
32
+ "file": "app/controllers/decidim/design/foundations_controller.rb",
33
+ "line": 15,
34
+ "link": "https://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
35
+ "code": "render(action => \"decidim/design/#{controller_name}/#{params[:id]}\", {})",
36
+ "render_path": null,
37
+ "location": {
38
+ "type": "method",
39
+ "class": "Decidim::Design::FoundationsController",
40
+ "method": "show"
41
+ },
42
+ "user_input": "params[:id]",
43
+ "confidence": "Medium",
44
+ "cwe_id": [
45
+ 22
46
+ ],
47
+ "note": ""
48
+ }
49
+ ],
50
+ "brakeman_version": "7.0.0"
51
+ }
@@ -1 +1,7 @@
1
+ ---
1
2
  ar:
3
+ decidim:
4
+ design:
5
+ foundations:
6
+ accessibility:
7
+ here_link: هنا
@@ -14,7 +14,6 @@ bg:
14
14
  trigger: Задействане
15
15
  usage: Употреба
16
16
  usage_p: '"Акордеонът" изисква поне три елемента'
17
- usage_p_1_html: 1. Обвивка <code>div</code>, с атрибута на данните <code>data-component="accordion"</code>, над всички налични задействащи елементи и панели.
18
17
  usage_p_2_html: 2. Задействащ елемент, с който потребителят може да действа (като бутон), сочещ към сгъваемия елемент чрез <code>data-controls="panel"</code>, където <i>panel</i> е <code>id </code> на панела.
19
18
  usage_p_3_html: 3. Елемент с възможност за скриване, чийто <code>id</code> съвпада със стойността на контролите на данните, към която препраща задействащия елемент.
20
19
  activities:
@@ -87,18 +86,21 @@ bg:
87
86
  adjacent_links_paragraph: Ако един и същ ресурс има множество съседни линкове, сочещи към него, за такива потребители е трудно да прегледат страницата, тъй като може да се наложи да преминат през множество връзки, за да стигнат до следващия ресурс.
88
87
  color_contrast: Цветови контраст
89
88
  color_contrast_paragraph: Когато създавате потребителски интерфейси или променяте цветовете, винаги се уверявайте, че не нарушавате достъпността с вашите промени. Можете да използвате инструмента за проверка на цветовия контраст, за да се уверите, че вашите цветове имат достатъчен контраст спрямо цвета на фона, на който се показват.
89
+ decidim_follows_html: Civil Power следва <u>Указанията за достъпност на уеб съдържанието (WCAG) 2.1</u>
90
90
  dynamic_changes_header: Динамичната функционалност променя контекста на страницата неинтуитивно
91
91
  dynamic_changes_paragraph: Промените във формуляра не трябва автоматично да променят контекста на страницата.
92
92
  elements_hidden: Елементите са скрити
93
93
  elements_hidden_header: Елементи, скрити от API за достъпност
94
94
  elements_hidden_paragraph: За да скриете елемент от помощни технологии, използвайте атрибута aria-hidden="true" върху него.
95
95
  heading_on: Заглавие на важни раздели
96
+ here_link: тук
96
97
  illogical_heading_order: Нелогичен ред на заглавията
97
98
  illogical_heading_paragraph: Всяка страница трябва да има логичен ред на заглавията, когато се използват елементите на заглавието <h1>, <h2>, <h3>, <h4>, <h5> и <h6>.
98
99
  important_sections_heading: Заглавие на важни раздели
99
100
  important_sections_paragraph: Изключително важно е всеки важен раздел на страницата да има заглавие, за да можете по-лесно да разберете какви важни раздели има на страницата, просто като разглеждате заглавията.
100
101
  links_and_buttons: Линкове и бутони
101
102
  links_and_buttons_paragraph: Елементите (anchor) за "закотвяне" (т.е. линкове) са предназначени да свързват към различни страници или да закотвят позиции в страницата. Ако елементът трябва да, например, отворите някакъв скрит елемент на тази страница, вместо това трябва да използвате елемента <button>.
103
+ see_further_info_html: Вижте допълнителна информация %{link}
102
104
  unique_h1: Уникален H1
103
105
  unique_h1_paragraph: Всяка страница трябва да има уникално заглавие H1
104
106
  use_aria: Използвайте ARIA
@@ -182,7 +184,6 @@ bg:
182
184
  conference_s: Конференция S
183
185
  conferences: Конференции
184
186
  context: Контекст
185
- context_description: Тази клетка показва информация за потребителя. Това е визуална помощ за идентифициране на създателя на ресурса/съдържанието. Задържането на курсора на мишката показва подсказка с допълнителна информация и връзки към неговия профил.
186
187
  context_description_2: За ресурси тази клетка се появява под основното заглавие. За друго съдържание се появява до самото съдържание.
187
188
  debate_l: Дебат L
188
189
  debate_s: Дебат S
@@ -203,7 +204,6 @@ bg:
203
204
  dropdowns_description_html: Падащите менюта са функция на javascript, достъпна благодарение на външна библиотека, наречена %{link}.
204
205
  dropdowns_usage_1_description: 2. Елемент с възможност за скриване, чийто <code>id</code> съвпада с целевата стойност на данните, към която препраща тригерът.
205
206
  dropdowns_usage_description: 'Падащото меню изисква два елемента:'
206
- dropdowns_usage_description_html: 1. Елемент с възможност за действие от страна на потребителя с атрибутите на данни <code>data-component="dropdown" data-target="dropdown-menu-element"</code>.
207
207
  dummy_description: Упростено описание на ресурса
208
208
  dummy_title: Упростено заглавие на ресурса
209
209
  follow_button: Бутон за следване