django-smartbase-admin 0.2.90__py3-none-any.whl → 0.2.92__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.
Files changed (45) hide show
  1. django_smartbase_admin/actions/admin_action_list.py +0 -6
  2. django_smartbase_admin/admin/admin_base.py +1 -0
  3. django_smartbase_admin/admin/widgets.py +70 -0
  4. django_smartbase_admin/engine/admin_base_view.py +4 -1
  5. django_smartbase_admin/engine/filter_widgets.py +182 -1
  6. django_smartbase_admin/locale/sk/LC_MESSAGES/django.mo +0 -0
  7. django_smartbase_admin/locale/sk/LC_MESSAGES/django.po +241 -28
  8. django_smartbase_admin/services/views.py +2 -2
  9. django_smartbase_admin/static/sb_admin/build/webpack.common.js +9 -8
  10. django_smartbase_admin/static/sb_admin/fancytree/jquery.fancytree-all-deps.min.js +2 -0
  11. django_smartbase_admin/static/sb_admin/src/css/_base.css +4 -0
  12. django_smartbase_admin/static/sb_admin/src/css/_inlines.css +3 -3
  13. django_smartbase_admin/static/sb_admin/src/css/_tabulator.css +6 -0
  14. django_smartbase_admin/static/sb_admin/src/css/components/_toggle.css +2 -1
  15. django_smartbase_admin/static/sb_admin/src/css/tree_widget.css +405 -0
  16. django_smartbase_admin/static/sb_admin/src/js/datepicker.js +1 -0
  17. django_smartbase_admin/static/sb_admin/src/js/table.js +18 -2
  18. django_smartbase_admin/static/sb_admin/src/js/table_modules/filter_module.js +3 -1
  19. django_smartbase_admin/static/sb_admin/src/js/table_modules/selection_module.js +20 -2
  20. django_smartbase_admin/static/sb_admin/src/js/table_modules/table_params_module.js +6 -0
  21. django_smartbase_admin/static/sb_admin/src/js/tree_widget.js +376 -0
  22. django_smartbase_admin/templates/sb_admin/actions/tree_list.html +63 -0
  23. django_smartbase_admin/templates/sb_admin/components/columns.html +1 -1
  24. django_smartbase_admin/templates/sb_admin/filter_widgets/advanced_filters/tree_select_filter.html +2 -0
  25. django_smartbase_admin/templates/sb_admin/filter_widgets/tree_select_filter.html +16 -0
  26. django_smartbase_admin/templates/sb_admin/sb_admin_base_no_sidebar.html +9 -3
  27. django_smartbase_admin/templates/sb_admin/sb_admin_js_trans.html +1 -0
  28. django_smartbase_admin/templates/sb_admin/widgets/filer_file.html +1 -1
  29. django_smartbase_admin/templates/sb_admin/widgets/tree_base.html +54 -0
  30. django_smartbase_admin/templates/sb_admin/widgets/tree_select.html +24 -0
  31. django_smartbase_admin/templates/sb_admin/widgets/tree_select_inline.html +12 -0
  32. {django_smartbase_admin-0.2.90.dist-info → django_smartbase_admin-0.2.92.dist-info}/METADATA +2 -2
  33. {django_smartbase_admin-0.2.90.dist-info → django_smartbase_admin-0.2.92.dist-info}/RECORD +35 -36
  34. {django_smartbase_admin-0.2.90.dist-info → django_smartbase_admin-0.2.92.dist-info}/WHEEL +1 -1
  35. django_smartbase_admin/static/sb_admin/dist/chart.js +0 -2
  36. django_smartbase_admin/static/sb_admin/dist/chart.js.LICENSE.txt +0 -13
  37. django_smartbase_admin/static/sb_admin/dist/confirmation_modal.js +0 -1
  38. django_smartbase_admin/static/sb_admin/dist/main.js +0 -2
  39. django_smartbase_admin/static/sb_admin/dist/main.js.LICENSE.txt +0 -131
  40. django_smartbase_admin/static/sb_admin/dist/main_style.css +0 -1
  41. django_smartbase_admin/static/sb_admin/dist/main_style.js +0 -0
  42. django_smartbase_admin/static/sb_admin/dist/table.js +0 -2
  43. django_smartbase_admin/static/sb_admin/dist/table.js.LICENSE.txt +0 -15
  44. django_smartbase_admin/static/sb_admin/dist/translations.js +0 -1
  45. {django_smartbase_admin-0.2.90.dist-info → django_smartbase_admin-0.2.92.dist-info}/LICENSE.md +0 -0
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: \n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2024-03-20 13:23+0100\n"
10
+ "POT-Creation-Date: 2025-02-11 13:28+0100\n"
11
11
  "PO-Revision-Date: 2023-11-15 15:21+0100\n"
12
12
  "Last-Translator: \n"
13
13
  "Language-Team: \n"
@@ -18,9 +18,82 @@ msgstr ""
18
18
  "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
19
19
  "X-Generator: Poedit 3.4.1\n"
20
20
 
21
+ msgid "Equal"
22
+ msgstr ""
23
+
24
+ msgid "Not equal"
25
+ msgstr ""
26
+
27
+ msgid "Less"
28
+ msgstr ""
29
+
30
+ msgid "Less or equal"
31
+ msgstr ""
32
+
33
+ msgid "Greater"
34
+ msgstr ""
35
+
36
+ msgid "Greater or equal"
37
+ msgstr ""
38
+
39
+ msgid "Between"
40
+ msgstr ""
41
+
42
+ msgid "Not between"
43
+ msgstr ""
44
+
45
+ msgid "In"
46
+ msgstr ""
47
+
48
+ msgid "Not in"
49
+ msgstr ""
50
+
51
+ msgid "Begins with"
52
+ msgstr ""
53
+
54
+ msgid "Not begins with"
55
+ msgstr ""
56
+
57
+ msgid "Contains"
58
+ msgstr ""
59
+
60
+ msgid "Not contains"
61
+ msgstr ""
62
+
63
+ msgid "End with"
64
+ msgstr ""
65
+
66
+ msgid "Not ends with"
67
+ msgstr ""
68
+
69
+ msgid "Is empty"
70
+ msgstr ""
71
+
72
+ msgid "Is null"
73
+ msgstr ""
74
+
75
+ msgid "Is not null"
76
+ msgstr ""
77
+
78
+ msgid "Before"
79
+ msgstr ""
80
+
81
+ msgid "After"
82
+ msgstr ""
83
+
84
+ msgid "In the last"
85
+ msgstr ""
86
+
87
+ msgid "In the next"
88
+ msgstr ""
89
+
21
90
  msgid "Hold down “Control”, or “Command” on a Mac, to select more than one."
22
91
  msgstr "Pre vybratie viacerých súborov podržte “Control”, alebo “Command” na Mac-u."
23
92
 
93
+ #, python-format
94
+ msgid "Change history: %s"
95
+ msgstr "História zmien: %s"
96
+
24
97
  msgid "Clear"
25
98
  msgstr "Vymazať"
26
99
 
@@ -30,6 +103,15 @@ msgstr "Aktuálne"
30
103
  msgid "Change file"
31
104
  msgstr "Zmeniť súbor"
32
105
 
106
+ msgid "Cannot set parent to itself"
107
+ msgstr ""
108
+
109
+ msgid "Cannot set parent to it's own child"
110
+ msgstr ""
111
+
112
+ msgid "Search..."
113
+ msgstr "Vyhľadať..."
114
+
33
115
  msgid "Exit Reorder"
34
116
  msgstr "Ukončiť preusporiadanie"
35
117
 
@@ -46,6 +128,9 @@ msgstr "Exportovať vybrané"
46
128
  msgid "Delete Selected"
47
129
  msgstr "Odstrániť vybrané"
48
130
 
131
+ msgid "No selection made."
132
+ msgstr "Výber je prázdny"
133
+
49
134
  msgid "All"
50
135
  msgstr "Všetky"
51
136
 
@@ -105,6 +190,22 @@ msgstr "Posledných 90 dní"
105
190
  msgid "Last 12 months"
106
191
  msgstr "Posledných 12 mesiacov"
107
192
 
193
+ msgctxt "Tree widget"
194
+ msgid "Loading..."
195
+ msgstr "Načítavanie..."
196
+
197
+ msgctxt "Tree widget"
198
+ msgid "Load error!"
199
+ msgstr "Chyba pri načítavaní!"
200
+
201
+ msgctxt "Tree widget"
202
+ msgid "More..."
203
+ msgstr "Viac..."
204
+
205
+ msgctxt "Tree widget"
206
+ msgid "No data."
207
+ msgstr "Žiadne dáta."
208
+
108
209
  msgid "Translations"
109
210
  msgstr "Preklady"
110
211
 
@@ -120,6 +221,16 @@ msgstr[0] "Opravte chybu nižšie."
120
221
  msgstr[1] "Opravte chyby nižšie."
121
222
  msgstr[2] "Opravte chyby nižšie."
122
223
 
224
+ msgid "Prev"
225
+ msgstr ""
226
+
227
+ #, python-format
228
+ msgid "<strong>%(current_index)s</strong> / %(all_objects_count)s"
229
+ msgstr ""
230
+
231
+ msgid "Next"
232
+ msgstr ""
233
+
123
234
  msgid "Back"
124
235
  msgstr "Naspäť"
125
236
 
@@ -158,12 +269,6 @@ msgstr "Nie, ísť späť"
158
269
  msgid "Yes, I’m sure"
159
270
  msgstr "Áno, som si istý"
160
271
 
161
- msgid "Home"
162
- msgstr "Domov"
163
-
164
- msgid "Delete multiple objects"
165
- msgstr "Zmazať viacero objektov"
166
-
167
272
  #, python-format
168
273
  msgid "Deleting the selected %(objects_name)s would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:"
169
274
  msgstr "Odstránenie vybraných %(objects_name)s vyžaduje odstránenie súvisiacich objektov ale váš účet nemá potrebné povolenia na odstránenie týchto objektov:"
@@ -179,18 +284,6 @@ msgstr "Ste si istý že chcete odstrániť vybrané %(objects_name)s? Všetky n
179
284
  msgid "Add"
180
285
  msgstr "Pridať"
181
286
 
182
- msgid "Save view"
183
- msgstr "Uložiť zobrazenie"
184
-
185
- msgid "Search and filter"
186
- msgstr "Hľadať a filtrovať"
187
-
188
- msgid "Select all"
189
- msgstr "Vybrať všetky"
190
-
191
- msgid "Select none"
192
- msgstr "Odstrániť výber"
193
-
194
287
  msgid "For page"
195
288
  msgstr "Veľkost strany"
196
289
 
@@ -206,6 +299,30 @@ msgstr "Akcia"
206
299
  msgid "This object doesn't have a change history. It probably wasn't added via this admin site."
207
300
  msgstr "Tento objekt nemá históriu zmien. Pravdepodobne nebolo pridané cez túto admin stránku."
208
301
 
302
+ msgid "Select all"
303
+ msgstr "Vybrať všetky"
304
+
305
+ msgid "Select none"
306
+ msgstr "Odstrániť výber"
307
+
308
+ msgid "Save view"
309
+ msgstr "Uložiť zobrazenie"
310
+
311
+ msgid "Search and filter"
312
+ msgstr "Hľadať a filtrovať"
313
+
314
+ msgid "Quick Search"
315
+ msgstr "Rýchle vyhľadávanie"
316
+
317
+ msgid "Saved Views"
318
+ msgstr "Uložené zobrazenia"
319
+
320
+ msgid "Advanced Filters"
321
+ msgstr "Rozšírené filtrovanie"
322
+
323
+ msgid "Search"
324
+ msgstr "Vyhľadať"
325
+
209
326
  msgid "Copy"
210
327
  msgstr "Kopírovať"
211
328
 
@@ -215,6 +332,9 @@ msgstr "Uložiť"
215
332
  msgid "Show translations"
216
333
  msgstr "Zobraziť preklady"
217
334
 
335
+ msgid "Save Order"
336
+ msgstr "Uložiť zoradenie"
337
+
218
338
  #, python-format
219
339
  msgid "You are authenticated as %(username)s, but are not authorized to access this page. Would you like to login to a different account?"
220
340
  msgstr ""
@@ -308,6 +428,9 @@ msgstr "Vybrať všetky"
308
428
  msgid "Remove"
309
429
  msgstr "Odstrániť"
310
430
 
431
+ msgid "View Results"
432
+ msgstr "Zobraziť výsledky"
433
+
311
434
  msgid ""
312
435
  "\n"
313
436
  " <button class=\"btn btn-primary-light btn-tiny\">Add file</button>\n"
@@ -322,8 +445,11 @@ msgstr ""
322
445
  msgid "JPG, PNG, GIF or WEBP max 10MB"
323
446
  msgstr "JPG, PNG, GIF alebo WEBP max 10MB"
324
447
 
325
- msgid "Delete"
326
- msgstr "Zmazať"
448
+ msgid "Remove View"
449
+ msgstr "Odstrániť zobratenie"
450
+
451
+ msgid "Do you want to remove table view?"
452
+ msgstr "Naozaj chcete odstrániť toto zobrazenie?"
327
453
 
328
454
  msgid "Save view as"
329
455
  msgstr "Uložiť zobrazenie ako"
@@ -374,18 +500,27 @@ msgstr ""
374
500
  msgid "Awards"
375
501
  msgstr "Ocenenia"
376
502
 
503
+ msgid "Are you sure?"
504
+ msgstr "Ste si istý?"
505
+
506
+ msgid "Confirm"
507
+ msgstr "Potvrdiť"
508
+
377
509
  msgid "Loading..."
378
510
  msgstr "Načítavanie..."
379
511
 
512
+ #, python-format
513
+ msgid "Add another %(verbose_name)s"
514
+ msgstr "Pridať ďalší %(verbose_name)s"
515
+
380
516
  msgid "Change"
381
517
  msgstr "Zmeniť"
382
518
 
383
519
  msgid "View"
384
520
  msgstr "Zobraziť"
385
521
 
386
- #, python-format
387
- msgid "Add another %(verbose_name)s"
388
- msgstr "Pridať ďalší %(verbose_name)s"
522
+ msgid "Delete"
523
+ msgstr "Zmazať"
389
524
 
390
525
  msgid "results"
391
526
  msgstr "výsledky"
@@ -399,9 +534,6 @@ msgstr "Strom stránok"
399
534
  msgid "Reset filter"
400
535
  msgstr "Vymazať filtre"
401
536
 
402
- msgid "Search"
403
- msgstr "Vyhľadať"
404
-
405
537
  msgid "Sites"
406
538
  msgstr "Stránky"
407
539
 
@@ -481,6 +613,9 @@ msgstr "Duplikáty"
481
613
  msgid "Go back to admin homepage"
482
614
  msgstr "Naspäť na adminovú domovskú stránku"
483
615
 
616
+ msgid "Home"
617
+ msgstr "Domov"
618
+
484
619
  msgid "Go back to Filer app"
485
620
  msgstr "Naspäť do koreňového priečinka"
486
621
 
@@ -572,6 +707,9 @@ msgstr "Odhlásiť sa"
572
707
  msgid "Choose domain"
573
708
  msgstr "Zvoľte si doménu"
574
709
 
710
+ msgid "Continue"
711
+ msgstr "Pokračovať"
712
+
575
713
  msgid "Move to last"
576
714
  msgstr "Presunúť na posledné miesto"
577
715
 
@@ -591,6 +729,10 @@ msgstr "<strong>${from} - ${to}</strong> z <strong>${total}</strong><span class=
591
729
  msgid "<strong>0</strong> items"
592
730
  msgstr "<strong>0</strong> položiek"
593
731
 
732
+ #, python-brace-format
733
+ msgid "${value} selected"
734
+ msgstr "${value} vybrané"
735
+
594
736
  msgid "Basic Settings"
595
737
  msgstr "Základné nastavenia"
596
738
 
@@ -615,6 +757,77 @@ msgstr "alebo pridajte potiahnutím"
615
757
  msgid "Edit"
616
758
  msgstr "Upraviť"
617
759
 
760
+ msgid "Open color picker"
761
+ msgstr "Otvoriť výber farieb"
762
+
763
+ msgid "Close color picker"
764
+ msgstr "Zatvoriť výber farieb"
765
+
766
+ msgid "Clear the selected color"
767
+ msgstr "Vymazať výber farby"
768
+
769
+ #, python-brace-format
770
+ msgid "Saturation: {s}. Brightness: {v}."
771
+ msgstr ""
772
+
773
+ msgid "Hue slider"
774
+ msgstr ""
775
+
776
+ msgid "Opacity slider"
777
+ msgstr ""
778
+
779
+ msgid "Color value field"
780
+ msgstr ""
781
+
782
+ msgid "Color format"
783
+ msgstr ""
784
+
785
+ msgid "Color swatch"
786
+ msgstr ""
787
+
788
+ msgid "Saturation and brightness selector. Use up, down, left and right arrow keys to select."
789
+ msgstr ""
790
+
791
+ msgid "drop your file here or"
792
+ msgstr ""
793
+
794
+ msgid "No file selected"
795
+ msgstr "Nebol vybraný žiadny súbor"
796
+
797
+ msgid "File is missing"
798
+ msgstr "Súbor chýba"
799
+
800
+ msgid "Lookup"
801
+ msgstr "Vyhľadať"
802
+
803
+ msgid "Choose File"
804
+ msgstr "Zvoľte súbor"
805
+
806
+ #, python-brace-format
807
+ msgid "Added {name} “{object}”."
808
+ msgstr "Pridané {name} “{object}”."
809
+
810
+ msgid "Added."
811
+ msgstr "Pridané."
812
+
813
+ msgid "and"
814
+ msgstr "a"
815
+
816
+ #, python-brace-format
817
+ msgid "Changed {fields} for {name} “{object}”."
818
+ msgstr "Zmenené {fields} pre {name} “{object}”"
819
+
820
+ #, python-brace-format
821
+ msgid "Changed {fields}."
822
+ msgstr "Zmenené {fields}."
823
+
824
+ #, python-brace-format
825
+ msgid "Deleted {name} “{object}”."
826
+ msgstr "Odstránené {name} “{object}”."
827
+
828
+ msgid "No fields changed."
829
+ msgstr "Žiadne zmeny."
830
+
618
831
  msgid "Not Translated"
619
832
  msgstr "Nepreložené"
620
833
 
@@ -628,4 +841,4 @@ msgid "Status"
628
841
  msgstr "Stav"
629
842
 
630
843
  msgid " of "
631
- msgstr ""
844
+ msgstr " z "
@@ -30,8 +30,8 @@ class SBAdminViewService(object):
30
30
 
31
31
  @classmethod
32
32
  def build_list_url(cls, view_id, url_params):
33
- params = {view_id: url_params}
34
- return f"{BASE_PARAMS_NAME}={cls.json_dumps_for_url(params)}"
33
+ params = {BASE_PARAMS_NAME: cls.json_dumps_for_url({view_id: url_params})}
34
+ return urllib.parse.urlencode(params)
35
35
 
36
36
  @classmethod
37
37
  def process_url_params(cls, view_id, url_params, filter_version):
@@ -1,8 +1,7 @@
1
- const path = require('path');
2
- const webpack = require('webpack');
3
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
- const BundleTracker = require('webpack-bundle-tracker');
5
- const ESLintPlugin = require('eslint-webpack-plugin');
1
+ const path = require('path')
2
+ const webpack = require('webpack')
3
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
4
+ const ESLintPlugin = require('eslint-webpack-plugin')
6
5
 
7
6
  const entries = {
8
7
  main: './src/django_smartbase_admin/static/sb_admin/src/js/main.js',
@@ -11,9 +10,11 @@ const entries = {
11
10
  main_style: './src/django_smartbase_admin/static/sb_admin/src/css/style.css',
12
11
  translations: './src/django_smartbase_admin/static/sb_admin/src/js/translations.js',
13
12
  confirmation_modal: './src/django_smartbase_admin/static/sb_admin/src/js/confirmation_modal.js',
14
- };
13
+ tree_widget: './src/django_smartbase_admin/static/sb_admin/src/js/tree_widget.js',
14
+ tree_widget_style: './src/django_smartbase_admin/static/sb_admin/src/css/tree_widget.css',
15
+ }
15
16
 
16
- const projectRoot = process.env.PWD || process.cwd();
17
+ const projectRoot = process.env.PWD || process.cwd()
17
18
 
18
19
  module.exports = {
19
20
  resolve: {
@@ -74,4 +75,4 @@ module.exports = {
74
75
  'process.env.BUILD': JSON.stringify('web'),
75
76
  }),
76
77
  ]
77
- };
78
+ }