wagtail-tw-blocks 0.2.5__py3-none-any.whl → 0.3.0__py3-none-any.whl

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.
wagtail_blocks/blocks.py CHANGED
@@ -18,25 +18,31 @@ from wagtail_blocks import (
18
18
  # Settings
19
19
  PROGRAMMING_LANGUAGES = getattr(
20
20
  settings,
21
- "WAGTAIL_BLOCKS_PROGRAMMING_LANGUAGES",
21
+ "WB_CODE_BLOCK_PROGRAMMING_LANGUAGES",
22
22
  PROGRAMMING_LANGUAGES,
23
23
  )
24
24
 
25
+ SHOW_HEADER = getattr(
26
+ settings,
27
+ "WB_CODE_BLOCK_SHOW_HEADER",
28
+ True,
29
+ )
30
+
25
31
  SHOW_PROGRAMMING_LANGUAGE = getattr(
26
32
  settings,
27
- "WAGTAIL_BLOCKS_SHOW_PROGRAMMING_LANGUAGE",
33
+ "WB_CODE_BLOCK_SHOW_PROGRAMMING_LANGUAGE",
28
34
  True,
29
35
  )
30
36
 
31
37
  SHOW_COPY_BUTTON = getattr(
32
38
  settings,
33
- "WAGTAIL_BLOCKS_SHOW_COPY_BUTTON",
39
+ "WB_CODE_BLOCK_SHOW_COPY_BUTTON",
34
40
  True,
35
41
  )
36
42
 
37
43
  SHOW_WINDOW_CONTROLS = getattr(
38
44
  settings,
39
- "WAGTAIL_BLOCKS_SHOW_WINDOW_CONTROLS",
45
+ "WB_CODE_BLOCK_SHOW_WINDOW_CONTROLS",
40
46
  True,
41
47
  )
42
48
 
@@ -107,7 +113,7 @@ class AccordionItem(blocks.StructBlock):
107
113
  is_expanded = blocks.BooleanBlock(
108
114
  default=False,
109
115
  required=False,
110
- help_text=_("Wether to show or hide item content"),
116
+ help_text=_("Whether to show or hide item content"),
111
117
  )
112
118
  title = blocks.CharBlock(
113
119
  max_length=64,
@@ -136,6 +142,11 @@ class AccordionBlock(blocks.StructBlock):
136
142
  required=False,
137
143
  help_text=_("Accordion style"),
138
144
  )
145
+ is_joined = blocks.BooleanBlock(
146
+ default=False,
147
+ required=False,
148
+ help_text=_("Designates if accordion is joined"),
149
+ )
139
150
  items = blocks.ListBlock(
140
151
  AccordionItem(),
141
152
  required=True,
@@ -242,20 +253,25 @@ class CarouselBlock(blocks.StructBlock):
242
253
  class CodeBlock(blocks.StructBlock):
243
254
  """Code block is used to show a block of code in a box that looks like a code editor."""
244
255
 
256
+ show_header = blocks.BooleanBlock(
257
+ default=SHOW_PROGRAMMING_LANGUAGE,
258
+ required=False,
259
+ help_text=_("Whether to show or hide the header"),
260
+ )
245
261
  show_language = blocks.BooleanBlock(
246
262
  default=SHOW_PROGRAMMING_LANGUAGE,
247
263
  required=False,
248
- help_text=_("Wether to show or hide which programming language is used"),
264
+ help_text=_("Whether to show or hide which programming language is used"),
249
265
  )
250
266
  show_copy_btn = blocks.BooleanBlock(
251
267
  default=SHOW_COPY_BUTTON,
252
268
  required=False,
253
- help_text=_("Wether to show or hide copy buttons"),
269
+ help_text=_("Whether to show or hide copy buttons"),
254
270
  )
255
271
  show_window_btns = blocks.BooleanBlock(
256
272
  default=SHOW_WINDOW_CONTROLS,
257
273
  required=False,
258
- help_text=_("Wether to show or hide window buttons"),
274
+ help_text=_("Whether to show or hide window buttons"),
259
275
  )
260
276
  file_name = blocks.CharBlock(
261
277
  max_length=64,
@@ -323,6 +339,8 @@ class FABBlock(blocks.StructBlock):
323
339
  )
324
340
  items = blocks.ListBlock(
325
341
  ButtonBlock(),
342
+ max_num=4,
343
+ min_num=1,
326
344
  required=True,
327
345
  help_text=_("FAB items"),
328
346
  )
@@ -352,12 +370,14 @@ class HoverGalleryBlock(blocks.StructBlock):
352
370
  """
353
371
  Hover Gallery is container of images.
354
372
  The first image is visible be default and when we hover it horizontally,
355
- other images show up. Hover Gallery is useful for product cards in ecommerce sites,
356
- portfoilios or in image galleries. Hover Gallery can include up to 10 images.
373
+ other images show up. Hover Gallery is useful for product cards in e-commerce sites,
374
+ portfolios or in image galleries. Hover Gallery can include up to 10 images.
357
375
  """
358
376
 
359
377
  items = blocks.ListBlock(
360
378
  HoverGalleryItem(),
379
+ max_num=10,
380
+ min_num=2,
361
381
  required=True,
362
382
  help_text=_("Gallery items"),
363
383
  )
@@ -595,7 +615,7 @@ class PhoneMockupBlock(blocks.StructBlock):
595
615
  show_camera = blocks.BooleanBlock(
596
616
  default=True,
597
617
  required=False,
598
- help_text=_("Wether to show or hide camera"),
618
+ help_text=_("Whether to show or hide camera"),
599
619
  )
600
620
  wallpaper = WImageBlock(
601
621
  required=True,
@@ -615,7 +635,7 @@ class BrowserMockupBlock(blocks.StructBlock):
615
635
  show_url = blocks.BooleanBlock(
616
636
  default=True,
617
637
  required=False,
618
- help_text=_("Wether to show or hide toolbar"),
638
+ help_text=_("Whether to show or hide toolbar"),
619
639
  )
620
640
  url = blocks.URLBlock(
621
641
  required=True,
@@ -0,0 +1,401 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2025-11-03 22:37-0800\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: Arabic <LL@li.org>\n"
15
+ "Language: ar\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
20
+ "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
21
+
22
+ #: .\wagtail_blocks\__init__.py:7
23
+ msgid "Plus"
24
+ msgstr "إضافة"
25
+
26
+ #: .\wagtail_blocks\__init__.py:8
27
+ msgid "Arrow"
28
+ msgstr "سهم"
29
+
30
+ #: .\wagtail_blocks\__init__.py:12
31
+ msgid "Soft"
32
+ msgstr "ناعم"
33
+
34
+ #: .\wagtail_blocks\__init__.py:13
35
+ msgid "Outline"
36
+ msgstr "محيط"
37
+
38
+ #: .\wagtail_blocks\__init__.py:14
39
+ msgid "Dash"
40
+ msgstr "شرطة"
41
+
42
+ #: .\wagtail_blocks\__init__.py:18 .\wagtail_blocks\__init__.py:29
43
+ msgid "Info"
44
+ msgstr "معلومة"
45
+
46
+ #: .\wagtail_blocks\__init__.py:19 .\wagtail_blocks\__init__.py:28
47
+ msgid "Success"
48
+ msgstr "نجاح"
49
+
50
+ #: .\wagtail_blocks\__init__.py:20 .\wagtail_blocks\__init__.py:30
51
+ msgid "Warning"
52
+ msgstr "تحذير"
53
+
54
+ #: .\wagtail_blocks\__init__.py:21 .\wagtail_blocks\__init__.py:31
55
+ msgid "Error"
56
+ msgstr "خطأ"
57
+
58
+ #: .\wagtail_blocks\__init__.py:25
59
+ msgid "Primary"
60
+ msgstr "أساسي"
61
+
62
+ #: .\wagtail_blocks\__init__.py:26
63
+ msgid "Secondary"
64
+ msgstr "ثانوي"
65
+
66
+ #: .\wagtail_blocks\__init__.py:27
67
+ msgid "Accent"
68
+ msgstr "تأكيد"
69
+
70
+ #: .\wagtail_blocks\__init__.py:35
71
+ msgid "Border"
72
+ msgstr "حد"
73
+
74
+ #: .\wagtail_blocks\__init__.py:36
75
+ msgid "Box"
76
+ msgstr "صندوق"
77
+
78
+ #: .\wagtail_blocks\__init__.py:37
79
+ msgid "Lift"
80
+ msgstr "رفع"
81
+
82
+ #: .\wagtail_blocks\__init__.py:42
83
+ msgid "Auto"
84
+ msgstr "تلقائي"
85
+
86
+ #: .\wagtail_blocks\__init__.py:69
87
+ msgid "Plain text"
88
+ msgstr "نص عادي"
89
+
90
+ #: .\wagtail_blocks\blocks.py:55 .\wagtail_blocks\blocks.py:219
91
+ #: .\wagtail_blocks\blocks.py:360 .\wagtail_blocks\blocks.py:502
92
+ msgid "Image"
93
+ msgstr "صورة"
94
+
95
+ #: .\wagtail_blocks\blocks.py:60
96
+ msgid "Image caption"
97
+ msgstr "تعليق الصورة"
98
+
99
+ #: .\wagtail_blocks\blocks.py:65
100
+ msgid "Image attribution"
101
+ msgstr "إسناد الصورة"
102
+
103
+ #: .\wagtail_blocks\blocks.py:82 .\wagtail_blocks\blocks.py:111
104
+ #: .\wagtail_blocks\blocks.py:170 .\wagtail_blocks\blocks.py:403
105
+ #: .\wagtail_blocks\blocks.py:455
106
+ msgid "Icon name (lucide icons)"
107
+ msgstr "اسم الأيقونة (أيقونات Lucide)"
108
+
109
+ #: .\wagtail_blocks\blocks.py:87
110
+ msgid "Action label"
111
+ msgstr "تسمية الإجراء"
112
+
113
+ #: .\wagtail_blocks\blocks.py:91
114
+ msgid "Action internal link"
115
+ msgstr "رابط داخلي للإجراء"
116
+
117
+ #: .\wagtail_blocks\blocks.py:95
118
+ msgid "Action external link"
119
+ msgstr "رابط خارجي للإجراء"
120
+
121
+ #: .\wagtail_blocks\blocks.py:100
122
+ msgid "Action button color"
123
+ msgstr "لون زر الإجراء"
124
+
125
+ #: .\wagtail_blocks\blocks.py:116
126
+ msgid "Whether to show or hide item content"
127
+ msgstr "تحديد ما إذا كان سيتم إظهار محتوى العنصر أو إخفاؤه"
128
+
129
+ #: .\wagtail_blocks\blocks.py:121 .\wagtail_blocks\blocks.py:491
130
+ #: .\wagtail_blocks\blocks.py:569
131
+ msgid "Item title"
132
+ msgstr "عنوان العنصر"
133
+
134
+ #: .\wagtail_blocks\blocks.py:125 .\wagtail_blocks\blocks.py:408
135
+ msgid "Item content"
136
+ msgstr "محتوى العنصر"
137
+
138
+ #: .\wagtail_blocks\blocks.py:138
139
+ msgid "Accordion name"
140
+ msgstr "اسم الأكورديون"
141
+
142
+ #: .\wagtail_blocks\blocks.py:143
143
+ msgid "Accordion style"
144
+ msgstr "نمط الأكورديون"
145
+
146
+ #: .\wagtail_blocks\blocks.py:148
147
+ msgid "Designates if tab is selected"
148
+ msgstr "يُحدّد ما إذا كانت علامة التبويب محددة"
149
+
150
+ #: .\wagtail_blocks\blocks.py:148
151
+ msgid "Designates if accordion is joined"
152
+ msgstr "يُحدِّد ما إذا كان الأكورديون منضمًا"
153
+
154
+ #: .\wagtail_blocks\blocks.py:153
155
+ msgid "Accordion items"
156
+ msgstr "عناصر الأكورديون"
157
+
158
+ #: .\wagtail_blocks\blocks.py:175
159
+ msgid "Designates if alert is vertical or horizontal (default)"
160
+ msgstr "يُحدّد ما إذا كان التنبيه عموديًا أم أفقيًا (الإعداد الافتراضي)"
161
+
162
+ #: .\wagtail_blocks\blocks.py:180
163
+ msgid "Alert style"
164
+ msgstr "نمط التنبيه"
165
+
166
+ #: .\wagtail_blocks\blocks.py:185
167
+ msgid "Alert level"
168
+ msgstr "مستوى التنبيه"
169
+
170
+ #: .\wagtail_blocks\blocks.py:189
171
+ msgid "Alert message"
172
+ msgstr "رسالة التنبيه"
173
+
174
+ #: .\wagtail_blocks\blocks.py:204
175
+ msgid "Alert actions"
176
+ msgstr "إجراءات التنبيه"
177
+
178
+ #: .\wagtail_blocks\blocks.py:223 .\wagtail_blocks\blocks.py:503
179
+ msgid "Video"
180
+ msgstr "فيديو"
181
+
182
+ #: .\wagtail_blocks\blocks.py:228 .\wagtail_blocks\blocks.py:365
183
+ msgid "Caption"
184
+ msgstr "تعليق"
185
+
186
+ #: .\wagtail_blocks\blocks.py:238
187
+ msgid "Designates if carousel is vertical or horizontal (default)"
188
+ msgstr "يُحدّد ما إذا كان عرض الشرائح عموديًا أم أفقيًا (الإعداد الافتراضي)"
189
+
190
+ #: .\wagtail_blocks\blocks.py:243
191
+ msgid "Carousel items"
192
+ msgstr "عناصر عرض الشرائح"
193
+
194
+ #: .\wagtail_blocks\blocks.py:259
195
+ msgid "Whether to show or hide camera"
196
+ msgstr "تحديد إظهار أو إخفاء الكاميرا"
197
+
198
+ #: .\wagtail_blocks\blocks.py:259
199
+ msgid "Whether to show or hide the header"
200
+ msgstr "تحديد إظهار أو إخفاء الكاميرا"
201
+
202
+ #: .\wagtail_blocks\blocks.py:264
203
+ msgid "Whether to show or hide which programming language is used"
204
+ msgstr "تحديد إظهار أو إخفاء لغة البرمجة المستخدمة"
205
+
206
+ #: .\wagtail_blocks\blocks.py:269
207
+ msgid "Whether to show or hide copy buttons"
208
+ msgstr "تحديد إظهار أو إخفاء أزرار النسخ"
209
+
210
+ #: .\wagtail_blocks\blocks.py:274
211
+ msgid "Whether to show or hide window buttons"
212
+ msgstr "تحديد إظهار أو إخفاء أزرار النافذة"
213
+
214
+ #: .\wagtail_blocks\blocks.py:280
215
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code.html:19
216
+ msgid "File name"
217
+ msgstr "اسم الملف"
218
+
219
+ #: .\wagtail_blocks\blocks.py:286 .\wagtail_blocks\blocks.py:678
220
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code.html:33
221
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code.html:37
222
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code_mockup.html:8
223
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code_mockup.html:12
224
+ msgid "Programming language"
225
+ msgstr "لغة البرمجة"
226
+
227
+ #: .\wagtail_blocks\blocks.py:290 .\wagtail_blocks\blocks.py:682
228
+ msgid "Code content"
229
+ msgstr "محتوى الكود"
230
+
231
+ #: .\wagtail_blocks\blocks.py:305
232
+ msgid "Diff Item 1"
233
+ msgstr "عنصر الفرق 1"
234
+
235
+ #: .\wagtail_blocks\blocks.py:309
236
+ msgid "Diff Item 2"
237
+ msgstr "عنصر الفرق 2"
238
+
239
+ #: .\wagtail_blocks\blocks.py:330
240
+ msgid "Designates if FAB is vertical or flower shaped (quarter circle)"
241
+ msgstr "يُحدّد ما إذا كان الزر العائم عموديًا أم على شكل زهرة (ربع دائرة)"
242
+
243
+ #: .\wagtail_blocks\blocks.py:334
244
+ msgid "FAB toggle btn"
245
+ msgstr "زر تبديل الزر العائم"
246
+
247
+ #: .\wagtail_blocks\blocks.py:338
248
+ msgid "FAB main action"
249
+ msgstr "الإجراء الرئيسي للزر العائم"
250
+
251
+ #: .\wagtail_blocks\blocks.py:345
252
+ msgid "FAB items"
253
+ msgstr "عناصر الزر العائم"
254
+
255
+ #: .\wagtail_blocks\blocks.py:382
256
+ msgid "Gallery items"
257
+ msgstr "عناصر المعرض"
258
+
259
+ #: .\wagtail_blocks\blocks.py:397
260
+ msgid "Item date"
261
+ msgstr "تاريخ العنصر"
262
+
263
+ #: .\wagtail_blocks\blocks.py:418
264
+ msgid "Designates if timeline is compact"
265
+ msgstr "يُحدّد ما إذا كان المخطط الزمني مضغوطًا"
266
+
267
+ #: .\wagtail_blocks\blocks.py:423
268
+ msgid "Designates if timeline is vertical or horizontal (default)"
269
+ msgstr "يُحدّد ما إذا كان المخطط الزمني عموديًا أم أفقيًا (الإعداد الافتراضي)"
270
+
271
+ #: .\wagtail_blocks\blocks.py:428
272
+ msgid "Designates if dates should snap to icons"
273
+ msgstr "يُحدّد ما إذا كان يجب محاذاة التواريخ مع الأيقونات"
274
+
275
+ #: .\wagtail_blocks\blocks.py:433
276
+ msgid "Timeline items"
277
+ msgstr "عناصر المخطط الزمني"
278
+
279
+ #: .\wagtail_blocks\blocks.py:449
280
+ msgid "Item name"
281
+ msgstr "اسم العنصر"
282
+
283
+ #: .\wagtail_blocks\blocks.py:460
284
+ msgid "Item color"
285
+ msgstr "لون العنصر"
286
+
287
+ #: .\wagtail_blocks\blocks.py:470
288
+ msgid "Designates if Steps is vertical or horizontal (default)"
289
+ msgstr "يُحدّد ما إذا كانت الخطوات عمودية أم أفقية (الإعداد الافتراضي)"
290
+
291
+ #: .\wagtail_blocks\blocks.py:475
292
+ msgid "Steps items"
293
+ msgstr "عناصر الخطوات"
294
+
295
+ #: .\wagtail_blocks\blocks.py:500
296
+ msgid "Alert"
297
+ msgstr "تنبيه"
298
+
299
+ #: .\wagtail_blocks\blocks.py:501
300
+ msgid "Code"
301
+ msgstr "كود"
302
+
303
+ #: .\wagtail_blocks\blocks.py:504
304
+ msgid "Rich text"
305
+ msgstr "نص منسّق"
306
+
307
+ #: .\wagtail_blocks\blocks.py:507
308
+ msgid "Tab Content"
309
+ msgstr "محتوى علامة التبويب"
310
+
311
+ #: .\wagtail_blocks\blocks.py:517
312
+ msgid "Tab name"
313
+ msgstr "اسم علامة التبويب"
314
+
315
+ #: .\wagtail_blocks\blocks.py:522
316
+ msgid "Designates if tab buttons position is reversed"
317
+ msgstr "يُحدّد ما إذا كان موضع أزرار التبويبات معكوسًا"
318
+
319
+ #: .\wagtail_blocks\blocks.py:528
320
+ msgid "Tab style"
321
+ msgstr "نمط التبويب"
322
+
323
+ #: .\wagtail_blocks\blocks.py:533
324
+ msgid "Tab items"
325
+ msgstr "عناصر التبويب"
326
+
327
+ #: .\wagtail_blocks\blocks.py:549
328
+ msgid "Toast items"
329
+ msgstr "عناصر الإشعار المنبثق"
330
+
331
+ #: .\wagtail_blocks\blocks.py:564
332
+ msgid "Item image"
333
+ msgstr "صورة العنصر"
334
+
335
+ #: .\wagtail_blocks\blocks.py:574
336
+ msgid "Item description"
337
+ msgstr "وصف العنصر"
338
+
339
+ #: .\wagtail_blocks\blocks.py:578
340
+ msgid "Item internal link"
341
+ msgstr "رابط داخلي للعنصر"
342
+
343
+ #: .\wagtail_blocks\blocks.py:582
344
+ msgid "Item external link"
345
+ msgstr "رابط خارجي للعنصر"
346
+
347
+ #: .\wagtail_blocks\blocks.py:587
348
+ msgid "Actions"
349
+ msgstr "إجراءات"
350
+
351
+ #: .\wagtail_blocks\blocks.py:597
352
+ msgid "List title"
353
+ msgstr "عنوان القائمة"
354
+
355
+ #: .\wagtail_blocks\blocks.py:602
356
+ msgid "List items"
357
+ msgstr "عناصر القائمة"
358
+
359
+ #: .\wagtail_blocks\blocks.py:622
360
+ msgid "Phone wallpaper"
361
+ msgstr "خلفية الهاتف"
362
+
363
+ #: .\wagtail_blocks\blocks.py:638
364
+ msgid "Whether to show or hide toolbar"
365
+ msgstr "تحديد إظهار أو إخفاء شريط الأدوات"
366
+
367
+ #: .\wagtail_blocks\blocks.py:642
368
+ msgid "Browser URL"
369
+ msgstr "عنوان المتصفح (URL)"
370
+
371
+ #: .\wagtail_blocks\blocks.py:646
372
+ msgid "Browser wallpaper"
373
+ msgstr "خلفية المتصفح"
374
+
375
+ #: .\wagtail_blocks\blocks.py:661
376
+ msgid "Window wallpaper"
377
+ msgstr "خلفية النافذة"
378
+
379
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\carousel.html:30
380
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\carousel.html:35
381
+ msgid "Swipe left"
382
+ msgstr "اسحب لليسار"
383
+
384
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\carousel.html:47
385
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\carousel.html:52
386
+ msgid "Swipe right"
387
+ msgstr "اسحب لليمين"
388
+
389
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code.html:24
390
+ msgid "File name: "
391
+ msgstr "اسم الملف: "
392
+
393
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code.html:47
394
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\code.html:53
395
+ msgid "Copy"
396
+ msgstr "نسخ"
397
+
398
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\list.html:16
399
+ #: .\wagtail_blocks\templates\wagtail_blocks\blocks\list.html:20
400
+ msgid "View"
401
+ msgstr "عرض"