@eeacms/volto-tabs-block 9.0.0 → 9.0.2
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.
- package/CHANGELOG.md +20 -2
- package/locales/de/LC_MESSAGES/volto.po +59 -59
- package/package.json +1 -1
- package/src/helpers.js +5 -11
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,31 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [9.0.
|
|
7
|
+
### [9.0.2](https://github.com/eea/volto-tabs-block/compare/9.0.1...9.0.2) - 27 January 2025
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: add BlockHasValue check on all child items instead one refs#282712 [nileshgulia1 - [`6c97620`](https://github.com/eea/volto-tabs-block/commit/6c9762054bdccef12c225bf3ac3daca50aca62dd)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- chore: Translate missing German strings in volto-tabs-block [Valentin Dumitru - [`ca83959`](https://github.com/eea/volto-tabs-block/commit/ca8395949c947e63df50e747647f296e05634e35)]
|
|
16
|
+
|
|
17
|
+
### [9.0.1](https://github.com/eea/volto-tabs-block/compare/9.0.0...9.0.1) - 8 January 2025
|
|
18
|
+
|
|
19
|
+
#### :bug: Bug Fixes
|
|
20
|
+
|
|
21
|
+
- fix: hideEmptyTabs should look for generic block value refs#282065 [nileshgulia1 - [`7ae6227`](https://github.com/eea/volto-tabs-block/commit/7ae6227f736acc5098c106d78d2c13c9cb2afda5)]
|
|
22
|
+
|
|
23
|
+
#### :hammer_and_wrench: Others
|
|
24
|
+
|
|
25
|
+
- Release: hideEmptyTabs should look for generic block value refs #282065 #94 from eea/develop [David Ichim - [`2a3d0e3`](https://github.com/eea/volto-tabs-block/commit/2a3d0e369e5cc0c87bce5dab9c0e1d7a6781c90c)]
|
|
26
|
+
## [9.0.0](https://github.com/eea/volto-tabs-block/compare/8.1.0...9.0.0) - 6 November 2024
|
|
8
27
|
|
|
9
28
|
#### :hammer_and_wrench: Others
|
|
10
29
|
|
|
11
30
|
- remove uneeded prop pased to variation tab view [Miu Razvan - [`2679154`](https://github.com/eea/volto-tabs-block/commit/2679154b8df60c380d87d167afa6b5379430be42)]
|
|
12
31
|
- run i18n [Miu Razvan - [`1ef884b`](https://github.com/eea/volto-tabs-block/commit/1ef884b655f685e8e34bc0b47e7a4ed991c8d7ff)]
|
|
13
|
-
- keep backward compatibility, ref #278618 [Miu Razvan - [`5110c92`](https://github.com/eea/volto-tabs-block/commit/5110c9218b9b435bb2762436add6db0c4b9f3b16)]
|
|
14
32
|
- templates mapping for backwards compatibility [Miu Razvan - [`6838d5f`](https://github.com/eea/volto-tabs-block/commit/6838d5f9898fdeabb82b09ad18552860bb5d3417)]
|
|
15
33
|
### [8.1.0](https://github.com/eea/volto-tabs-block/compare/8.0.1...8.1.0) - 26 August 2024
|
|
16
34
|
|
|
@@ -14,22 +14,22 @@ msgstr ""
|
|
|
14
14
|
#. Default: "Accordion responsive"
|
|
15
15
|
#: index
|
|
16
16
|
msgid "Accordion responsive"
|
|
17
|
-
msgstr ""
|
|
17
|
+
msgstr "Akkordeon responsive"
|
|
18
18
|
|
|
19
19
|
#. Default: "Carousel horizontal"
|
|
20
20
|
#: index
|
|
21
21
|
msgid "Carousel horizontal"
|
|
22
|
-
msgstr ""
|
|
22
|
+
msgstr "Karussell horizontal"
|
|
23
23
|
|
|
24
24
|
#. Default: "Carousel vertical (prototype)"
|
|
25
25
|
#: index
|
|
26
26
|
msgid "Carousel vertical (prototype)"
|
|
27
|
-
msgstr ""
|
|
27
|
+
msgstr "Karussell vertikal (Prototyp)"
|
|
28
28
|
|
|
29
29
|
#. Default: "Default"
|
|
30
30
|
#: index
|
|
31
31
|
msgid "Default"
|
|
32
|
-
msgstr ""
|
|
32
|
+
msgstr "Standard"
|
|
33
33
|
|
|
34
34
|
#. Default: "Horizontal responsive"
|
|
35
35
|
#: index
|
|
@@ -44,33 +44,33 @@ msgstr ""
|
|
|
44
44
|
#. Default: "Unknown Block {block}"
|
|
45
45
|
#: components/EditBlockWrapper
|
|
46
46
|
msgid "Unknown Block"
|
|
47
|
-
msgstr ""
|
|
47
|
+
msgstr "Unbekannter Block {block}"
|
|
48
48
|
|
|
49
49
|
#. Default: "Accordion tabs block"
|
|
50
50
|
#: components/variations/accordion/schema
|
|
51
51
|
msgid "accordion-tabs-block"
|
|
52
|
-
msgstr ""
|
|
52
|
+
msgstr "Akkoredeon Tabs Block"
|
|
53
53
|
|
|
54
54
|
#. Default: "Add Tab"
|
|
55
55
|
#: widgets/TabsWidget
|
|
56
56
|
msgid "addTab"
|
|
57
|
-
msgstr ""
|
|
57
|
+
msgstr "Tab hinzufügen"
|
|
58
58
|
|
|
59
59
|
#. Default: "Alignment"
|
|
60
60
|
#: components/variations/default/schema
|
|
61
61
|
#: components/variations/horizontal-responsive/schema
|
|
62
62
|
msgid "alignment"
|
|
63
|
-
msgstr ""
|
|
63
|
+
msgstr "Ausrichtung"
|
|
64
64
|
|
|
65
65
|
#. Default: "Asset position"
|
|
66
66
|
#: components/schema
|
|
67
67
|
msgid "assetPosition"
|
|
68
|
-
msgstr ""
|
|
68
|
+
msgstr "Position"
|
|
69
69
|
|
|
70
70
|
#. Default: "Asset size"
|
|
71
71
|
#: components/schema
|
|
72
72
|
msgid "assetSize"
|
|
73
|
-
msgstr ""
|
|
73
|
+
msgstr "Größe"
|
|
74
74
|
|
|
75
75
|
#. Default: "Asset type"
|
|
76
76
|
#: components/schema
|
|
@@ -81,43 +81,43 @@ msgstr ""
|
|
|
81
81
|
#: components/variations/default/schema
|
|
82
82
|
#: components/variations/horizontal-responsive/schema
|
|
83
83
|
msgid "black"
|
|
84
|
-
msgstr ""
|
|
84
|
+
msgstr "Schwarz"
|
|
85
85
|
|
|
86
86
|
#. Default: "Blue"
|
|
87
87
|
#: components/variations/default/schema
|
|
88
88
|
#: components/variations/horizontal-responsive/schema
|
|
89
89
|
msgid "blue"
|
|
90
|
-
msgstr ""
|
|
90
|
+
msgstr "Blau"
|
|
91
91
|
|
|
92
92
|
#. Default: "Bottom"
|
|
93
93
|
#: components/schema
|
|
94
94
|
#: components/variations/default/schema
|
|
95
95
|
#: components/variations/horizontal-responsive/schema
|
|
96
96
|
msgid "bottom"
|
|
97
|
-
msgstr ""
|
|
97
|
+
msgstr "Unten"
|
|
98
98
|
|
|
99
99
|
#. Default: "Brown"
|
|
100
100
|
#: components/variations/default/schema
|
|
101
101
|
#: components/variations/horizontal-responsive/schema
|
|
102
102
|
msgid "brown"
|
|
103
|
-
msgstr ""
|
|
103
|
+
msgstr "Braun"
|
|
104
104
|
|
|
105
105
|
#. Default: "Center"
|
|
106
106
|
#: components/variations/default/schema
|
|
107
107
|
#: components/variations/horizontal-responsive/schema
|
|
108
108
|
msgid "center"
|
|
109
|
-
msgstr ""
|
|
109
|
+
msgstr "Mitte"
|
|
110
110
|
|
|
111
111
|
#. Default: "Color"
|
|
112
112
|
#: components/variations/default/schema
|
|
113
113
|
#: components/variations/horizontal-responsive/schema
|
|
114
114
|
msgid "color"
|
|
115
|
-
msgstr ""
|
|
115
|
+
msgstr "Farbe"
|
|
116
116
|
|
|
117
117
|
#. Default: "Dark"
|
|
118
118
|
#: components/variations/carousel/schema
|
|
119
119
|
msgid "dark"
|
|
120
|
-
msgstr ""
|
|
120
|
+
msgstr "Dunkel"
|
|
121
121
|
|
|
122
122
|
#. Default: "Default"
|
|
123
123
|
#: components/schema
|
|
@@ -125,17 +125,17 @@ msgstr ""
|
|
|
125
125
|
#: components/variations/default/schema
|
|
126
126
|
#: components/variations/horizontal-responsive/schema
|
|
127
127
|
msgid "default"
|
|
128
|
-
msgstr ""
|
|
128
|
+
msgstr "Standard"
|
|
129
129
|
|
|
130
130
|
#. Default: "Default tabs block"
|
|
131
131
|
#: components/variations/default/schema
|
|
132
132
|
msgid "default-tabs-block"
|
|
133
|
-
msgstr ""
|
|
133
|
+
msgstr "Standard Tabs block"
|
|
134
134
|
|
|
135
135
|
#. Default: "delete"
|
|
136
136
|
#: components/EditBlockWrapper
|
|
137
137
|
msgid "delete"
|
|
138
|
-
msgstr ""
|
|
138
|
+
msgstr "Löschen"
|
|
139
139
|
|
|
140
140
|
#. Default: "Description"
|
|
141
141
|
#: components/schema
|
|
@@ -143,41 +143,41 @@ msgstr ""
|
|
|
143
143
|
#: components/variations/default/schema
|
|
144
144
|
#: components/variations/horizontal-responsive/schema
|
|
145
145
|
msgid "description"
|
|
146
|
-
msgstr ""
|
|
146
|
+
msgstr "Beschreibung"
|
|
147
147
|
|
|
148
148
|
#. Default: "Green"
|
|
149
149
|
#: components/variations/default/schema
|
|
150
150
|
#: components/variations/horizontal-responsive/schema
|
|
151
151
|
msgid "green"
|
|
152
|
-
msgstr ""
|
|
152
|
+
msgstr "Grün"
|
|
153
153
|
|
|
154
154
|
#. Default: "Grey"
|
|
155
155
|
#: components/variations/carousel/schema
|
|
156
156
|
#: components/variations/default/schema
|
|
157
157
|
#: components/variations/horizontal-responsive/schema
|
|
158
158
|
msgid "grey"
|
|
159
|
-
msgstr ""
|
|
159
|
+
msgstr "Grau"
|
|
160
160
|
|
|
161
161
|
#. Default: "Hide empty tabs in view?"
|
|
162
162
|
#: components/schema
|
|
163
163
|
msgid "hideEmptyTabs"
|
|
164
|
-
msgstr ""
|
|
164
|
+
msgstr "Leere Tabs in der Ansicht ausblenden?"
|
|
165
165
|
|
|
166
166
|
#. Default: "Hide tab title?"
|
|
167
167
|
#: components/schema
|
|
168
168
|
msgid "hideTitle"
|
|
169
|
-
msgstr ""
|
|
169
|
+
msgstr "Tab Titel ausblenden"
|
|
170
170
|
|
|
171
171
|
#. Default: "Horizontal tabs block"
|
|
172
172
|
#: components/variations/horizontal-responsive/schema
|
|
173
173
|
msgid "horizontal-tabs-block"
|
|
174
|
-
msgstr ""
|
|
174
|
+
msgstr "Horizontaler tabs block"
|
|
175
175
|
|
|
176
176
|
#. Default: "Huge"
|
|
177
177
|
#: components/variations/default/schema
|
|
178
178
|
#: components/variations/horizontal-responsive/schema
|
|
179
179
|
msgid "huge"
|
|
180
|
-
msgstr ""
|
|
180
|
+
msgstr "Riesig"
|
|
181
181
|
|
|
182
182
|
#. Default: "Icon"
|
|
183
183
|
#: components/schema
|
|
@@ -187,7 +187,7 @@ msgstr ""
|
|
|
187
187
|
#. Default: "Icon position on the right"
|
|
188
188
|
#: components/variations/accordion/schema
|
|
189
189
|
msgid "icon-position-on-the-right"
|
|
190
|
-
msgstr ""
|
|
190
|
+
msgstr "Position des Icons auf der rechten Seite"
|
|
191
191
|
|
|
192
192
|
#. Default: "Icon name"
|
|
193
193
|
#: components/schema
|
|
@@ -197,43 +197,43 @@ msgstr ""
|
|
|
197
197
|
#. Default: "Image"
|
|
198
198
|
#: components/schema
|
|
199
199
|
msgid "image"
|
|
200
|
-
msgstr ""
|
|
200
|
+
msgstr "Bild"
|
|
201
201
|
|
|
202
202
|
#. Default: "Inverted"
|
|
203
203
|
#: components/variations/accordion/schema
|
|
204
204
|
msgid "inverted"
|
|
205
|
-
msgstr ""
|
|
205
|
+
msgstr "umgekehrt"
|
|
206
206
|
|
|
207
207
|
#. Default: "Large"
|
|
208
208
|
#: components/schema
|
|
209
209
|
#: components/variations/default/schema
|
|
210
210
|
#: components/variations/horizontal-responsive/schema
|
|
211
211
|
msgid "large"
|
|
212
|
-
msgstr ""
|
|
212
|
+
msgstr "Groß"
|
|
213
213
|
|
|
214
214
|
#. Default: "Left"
|
|
215
215
|
#: components/variations/default/schema
|
|
216
216
|
#: components/variations/horizontal-responsive/schema
|
|
217
217
|
msgid "left"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Links"
|
|
219
219
|
|
|
220
220
|
#. Default: "Left side"
|
|
221
221
|
#: components/schema
|
|
222
222
|
#: components/variations/default/schema
|
|
223
223
|
#: components/variations/horizontal-responsive/schema
|
|
224
224
|
msgid "left-side"
|
|
225
|
-
msgstr ""
|
|
225
|
+
msgstr "Linke Seite"
|
|
226
226
|
|
|
227
227
|
#. Default: "Light"
|
|
228
228
|
#: components/variations/carousel/schema
|
|
229
229
|
msgid "light"
|
|
230
|
-
msgstr ""
|
|
230
|
+
msgstr "Hell"
|
|
231
231
|
|
|
232
232
|
#. Default: "Massive"
|
|
233
233
|
#: components/variations/default/schema
|
|
234
234
|
#: components/variations/horizontal-responsive/schema
|
|
235
235
|
msgid "massive"
|
|
236
|
-
msgstr ""
|
|
236
|
+
msgstr "massiv"
|
|
237
237
|
|
|
238
238
|
#. Default: "Menu"
|
|
239
239
|
#: components/variations/accordion/schema
|
|
@@ -246,13 +246,13 @@ msgstr ""
|
|
|
246
246
|
#: components/variations/default/schema
|
|
247
247
|
#: components/variations/horizontal-responsive/schema
|
|
248
248
|
msgid "menu-border-less"
|
|
249
|
-
msgstr ""
|
|
249
|
+
msgstr "Rahmenlos"
|
|
250
250
|
|
|
251
251
|
#. Default: "Compact"
|
|
252
252
|
#: components/variations/default/schema
|
|
253
253
|
#: components/variations/horizontal-responsive/schema
|
|
254
254
|
msgid "menu-compact"
|
|
255
|
-
msgstr ""
|
|
255
|
+
msgstr "Kompakt"
|
|
256
256
|
|
|
257
257
|
#. Default: "Fluid"
|
|
258
258
|
#: components/variations/default/schema
|
|
@@ -264,7 +264,7 @@ msgstr ""
|
|
|
264
264
|
#: components/variations/default/schema
|
|
265
265
|
#: components/variations/horizontal-responsive/schema
|
|
266
266
|
msgid "menu-inverted"
|
|
267
|
-
msgstr ""
|
|
267
|
+
msgstr "Umgekehrt"
|
|
268
268
|
|
|
269
269
|
#. Default: "Pointing"
|
|
270
270
|
#: components/variations/accordion/schema
|
|
@@ -278,19 +278,19 @@ msgstr ""
|
|
|
278
278
|
#: components/variations/default/schema
|
|
279
279
|
#: components/variations/horizontal-responsive/schema
|
|
280
280
|
msgid "menu-secondary"
|
|
281
|
-
msgstr ""
|
|
281
|
+
msgstr "Sekundär"
|
|
282
282
|
|
|
283
283
|
#. Default: "Stackable"
|
|
284
284
|
#: components/variations/default/schema
|
|
285
285
|
#: components/variations/horizontal-responsive/schema
|
|
286
286
|
msgid "menu-stackable"
|
|
287
|
-
msgstr ""
|
|
287
|
+
msgstr "Stapelbar"
|
|
288
288
|
|
|
289
289
|
#. Default: "Tabular"
|
|
290
290
|
#: components/variations/default/schema
|
|
291
291
|
#: components/variations/horizontal-responsive/schema
|
|
292
292
|
msgid "menu-tabular"
|
|
293
|
-
msgstr ""
|
|
293
|
+
msgstr "Tabellarisch"
|
|
294
294
|
|
|
295
295
|
#. Default: "Text"
|
|
296
296
|
#: components/variations/default/schema
|
|
@@ -301,7 +301,7 @@ msgstr ""
|
|
|
301
301
|
#. Default: "Middle"
|
|
302
302
|
#: components/schema
|
|
303
303
|
msgid "middle"
|
|
304
|
-
msgstr ""
|
|
304
|
+
msgstr "Mitte"
|
|
305
305
|
|
|
306
306
|
#. Default: "Mini"
|
|
307
307
|
#: components/variations/default/schema
|
|
@@ -336,56 +336,56 @@ msgstr ""
|
|
|
336
336
|
#. Default: "Position left/right of the icon in the accordion tab"
|
|
337
337
|
#: components/variations/accordion/schema
|
|
338
338
|
msgid "position-left-right-of-the-icon-in-the-accordion-tab"
|
|
339
|
-
msgstr ""
|
|
339
|
+
msgstr "Position links/rechts des Icons in dem Akkordeon Tab"
|
|
340
340
|
|
|
341
341
|
#. Default: "Purple"
|
|
342
342
|
#: components/variations/default/schema
|
|
343
343
|
#: components/variations/horizontal-responsive/schema
|
|
344
344
|
msgid "purple"
|
|
345
|
-
msgstr ""
|
|
345
|
+
msgstr "Lila"
|
|
346
346
|
|
|
347
347
|
#. Default: "Red"
|
|
348
348
|
#: components/variations/default/schema
|
|
349
349
|
#: components/variations/horizontal-responsive/schema
|
|
350
350
|
msgid "red"
|
|
351
|
-
msgstr ""
|
|
351
|
+
msgstr "Rot"
|
|
352
352
|
|
|
353
353
|
#. Default: "Right"
|
|
354
354
|
#: components/variations/default/schema
|
|
355
355
|
#: components/variations/horizontal-responsive/schema
|
|
356
356
|
msgid "right"
|
|
357
|
-
msgstr ""
|
|
357
|
+
msgstr "Rechts"
|
|
358
358
|
|
|
359
359
|
#. Default: "Right side"
|
|
360
360
|
#: components/schema
|
|
361
361
|
#: components/variations/default/schema
|
|
362
362
|
#: components/variations/horizontal-responsive/schema
|
|
363
363
|
msgid "right-side"
|
|
364
|
-
msgstr ""
|
|
364
|
+
msgstr "Rechte Seite"
|
|
365
365
|
|
|
366
366
|
#. Default: "Set the theme for the accordion tabs block"
|
|
367
367
|
#: components/variations/accordion/schema
|
|
368
368
|
msgid "set-the-theme-for-the-accordion-tabs-block"
|
|
369
|
-
msgstr ""
|
|
369
|
+
msgstr "Einstellen des Themas für den Akkordeon tabs block"
|
|
370
370
|
|
|
371
371
|
#. Default: "Size"
|
|
372
372
|
#: components/variations/default/schema
|
|
373
373
|
#: components/variations/horizontal-responsive/schema
|
|
374
374
|
msgid "size"
|
|
375
|
-
msgstr ""
|
|
375
|
+
msgstr "Größe"
|
|
376
376
|
|
|
377
377
|
#. Default: "Small"
|
|
378
378
|
#: components/schema
|
|
379
379
|
#: components/variations/default/schema
|
|
380
380
|
#: components/variations/horizontal-responsive/schema
|
|
381
381
|
msgid "small"
|
|
382
|
-
msgstr ""
|
|
382
|
+
msgstr "Klein"
|
|
383
383
|
|
|
384
384
|
#. Default: "Space between"
|
|
385
385
|
#: components/variations/default/schema
|
|
386
386
|
#: components/variations/horizontal-responsive/schema
|
|
387
387
|
msgid "space-between"
|
|
388
|
-
msgstr ""
|
|
388
|
+
msgstr "Abstand zwischen"
|
|
389
389
|
|
|
390
390
|
#. Default: "Style"
|
|
391
391
|
#: components/variations/accordion/schema
|
|
@@ -401,7 +401,7 @@ msgstr ""
|
|
|
401
401
|
#. Default: "Tab title"
|
|
402
402
|
#: components/schema
|
|
403
403
|
msgid "tabTitle"
|
|
404
|
-
msgstr ""
|
|
404
|
+
msgstr "Tab titel"
|
|
405
405
|
|
|
406
406
|
#. Default: "Tabs"
|
|
407
407
|
#: components/schema
|
|
@@ -417,7 +417,7 @@ msgstr ""
|
|
|
417
417
|
#: components/variations/default/schema
|
|
418
418
|
#: components/variations/horizontal-responsive/schema
|
|
419
419
|
msgid "teal"
|
|
420
|
-
msgstr ""
|
|
420
|
+
msgstr "Türkisblau"
|
|
421
421
|
|
|
422
422
|
#. Default: "Theme"
|
|
423
423
|
#: components/variations/accordion/schema
|
|
@@ -429,33 +429,33 @@ msgstr ""
|
|
|
429
429
|
#: components/variations/default/schema
|
|
430
430
|
#: components/variations/horizontal-responsive/schema
|
|
431
431
|
msgid "tiny"
|
|
432
|
-
msgstr ""
|
|
432
|
+
msgstr "Winzig klein"
|
|
433
433
|
|
|
434
434
|
#. Default: "Title"
|
|
435
435
|
#: components/schema
|
|
436
436
|
msgid "title"
|
|
437
|
-
msgstr ""
|
|
437
|
+
msgstr "Titel"
|
|
438
438
|
|
|
439
439
|
#. Default: "Top"
|
|
440
440
|
#: components/schema
|
|
441
441
|
#: components/variations/default/schema
|
|
442
442
|
#: components/variations/horizontal-responsive/schema
|
|
443
443
|
msgid "top"
|
|
444
|
-
msgstr ""
|
|
444
|
+
msgstr "Oben"
|
|
445
445
|
|
|
446
446
|
#. Default: "Vertical align"
|
|
447
447
|
#: components/schema
|
|
448
448
|
msgid "vertical-align"
|
|
449
|
-
msgstr ""
|
|
449
|
+
msgstr "Vertikal ausrichten"
|
|
450
450
|
|
|
451
451
|
#. Default: "Violet"
|
|
452
452
|
#: components/variations/default/schema
|
|
453
453
|
#: components/variations/horizontal-responsive/schema
|
|
454
454
|
msgid "violet"
|
|
455
|
-
msgstr ""
|
|
455
|
+
msgstr "Violett"
|
|
456
456
|
|
|
457
457
|
#. Default: "Yellow"
|
|
458
458
|
#: components/variations/default/schema
|
|
459
459
|
#: components/variations/horizontal-responsive/schema
|
|
460
460
|
msgid "yellow"
|
|
461
|
-
msgstr ""
|
|
461
|
+
msgstr "Gelb"
|
package/package.json
CHANGED
package/src/helpers.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
applySchemaDefaults,
|
|
5
5
|
getBlocksFieldname,
|
|
6
6
|
getBlocksLayoutFieldname,
|
|
7
|
+
blockHasValue,
|
|
7
8
|
} from '@plone/volto/helpers';
|
|
8
9
|
import { visitBlocks, toSlug } from '@eeacms/volto-anchors/helpers';
|
|
9
10
|
|
|
@@ -81,17 +82,10 @@ export const isTabEmpty = (content) => {
|
|
|
81
82
|
const blocks_field = getBlocksFieldname(content);
|
|
82
83
|
const blocks_layout_field = getBlocksLayoutFieldname(content);
|
|
83
84
|
const blocks = content[blocks_field] || {};
|
|
84
|
-
const
|
|
85
|
+
const blocksLayout = content[blocks_layout_field]?.items || [];
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
const blockId = content[blocks_layout_field].items[0];
|
|
87
|
+
return blocksLayout.every((blockId) => {
|
|
88
88
|
const block = blocks[blockId];
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (blocksNo === 0) {
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
return false;
|
|
89
|
+
return !blockHasValue(block);
|
|
90
|
+
});
|
|
97
91
|
};
|