j1-template 2022.0.17 → 2022.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/assets/error_pages/HTTP204.html +1 -1
  3. data/assets/error_pages/HTTP400.html +1 -1
  4. data/assets/error_pages/HTTP401.html +1 -1
  5. data/assets/error_pages/HTTP403.html +1 -1
  6. data/assets/error_pages/HTTP404.html +1 -1
  7. data/assets/error_pages/HTTP444.html +1 -1
  8. data/assets/error_pages/HTTP445.html +1 -1
  9. data/assets/error_pages/HTTP446.html +1 -1
  10. data/assets/error_pages/HTTP447.html +1 -1
  11. data/assets/error_pages/HTTP448.html +1 -1
  12. data/assets/error_pages/HTTP500.html +1 -1
  13. data/assets/error_pages/HTTP501.html +1 -1
  14. data/assets/error_pages/HTTP502.html +1 -1
  15. data/assets/error_pages/HTTP503.html +1 -1
  16. data/assets/themes/j1/adapter/js/customFunctions.js +221 -0
  17. data/assets/themes/j1/adapter/js/customModule.js +221 -0
  18. data/assets/themes/j1/adapter/js/dropdowns.js +319 -0
  19. data/assets/themes/j1/adapter/js/rtable.js +2 -6
  20. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css +109 -0
  21. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css +15 -0
  22. data/assets/themes/j1/modules/dropdowns/js/cash.js +978 -0
  23. data/assets/themes/j1/modules/dropdowns/js/dropdowns.js +864 -0
  24. data/lib/j1/commands/generate.rb +25 -14
  25. data/lib/j1/commands/rebuild.rb +1 -0
  26. data/lib/j1/commands/reset.rb +6 -3
  27. data/lib/j1/commands/setup.rb +18 -13
  28. data/lib/j1/commands/site.rb +2 -1
  29. data/lib/j1/utils/exec2.rb +33 -7
  30. data/lib/j1/version.rb +3 -3
  31. data/lib/starter_web/Gemfile +1 -1
  32. data/lib/starter_web/_config.yml +1 -1
  33. data/lib/starter_web/_data/apps/carousel.yml +138 -140
  34. data/lib/starter_web/_data/blocks/banner.yml +7 -7
  35. data/lib/starter_web/_data/modules/defaults/dropdowns.yml +164 -0
  36. data/lib/starter_web/_data/modules/dropdowns.yml +77 -0
  37. data/lib/starter_web/_data/resources.yml +73 -2
  38. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  39. data/lib/starter_web/_plugins/lunr_index.rb +2 -2
  40. data/lib/starter_web/package.json +2 -2
  41. data/lib/starter_web/pages/public/about/about_site.adoc +1 -1
  42. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
  43. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  44. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  45. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  46. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
  47. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +1 -1
  48. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +1 -1
  49. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +1 -1
  50. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
  51. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
  52. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
  53. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  54. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
  55. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
  56. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -1
  57. data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
  58. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
  59. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
  60. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
  61. data/lib/starter_web/pages/public/manuals/j1-dropdown.adoc +294 -0
  62. data/lib/starter_web/pages/public/manuals/{dropdown-help.adoc → msdropdown.adoc} +0 -0
  63. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
  64. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +1 -1
  65. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  66. data/lib/starter_web/utilsrv/package.json +1 -1
  67. metadata +14 -6
  68. data/assets/themes/j1/modules/fab/css/theme/uno/fab.css +0 -373
  69. data/assets/themes/j1/modules/fab/css/theme/uno/fab.min.css +0 -15
@@ -0,0 +1,294 @@
1
+ ---
2
+ title: Manuals
3
+ tagline: J1 Dropdowns
4
+ date: 2022-01-15 00:00:00
5
+ description: >
6
+ Welcome to the preview page focussing on the J1 Dropdowns module. This page
7
+ shows some valuable features of the J1 Template to manage featured
8
+ dropdown menus bound to any button in a page
9
+
10
+ keywords: >
11
+ dropdown, j1dropdowns, manual, usage, attribute, callback, option,
12
+ opensource, free, load, download, start, starter, example,
13
+ high, easy, use, secure, encrypt, standard, popular,
14
+ generate, develop, create, learn, distribute, publish, deploy,
15
+ beginner, advanced, expert, student, learner, writer, reader, visitor
16
+ framework, toolkit, integration, extension, module, api,
17
+ dynamic, static, generator, client, server, internet, local, localhost
18
+ page, web, website, webdesign, material, design, responsive,
19
+ javascript, nodejs, ruby, windows, linux, osx, mac, os,
20
+ http, https, html, html5, css, scss, style,
21
+ browser, firefox, chrome, edge, opera, safari,
22
+ configuration, generator, navigation, menu, dropdown, fab, action, button
23
+ application, interface, provider, api, repository,
24
+ cookie, language, translation, gdpr, dsgvo, privacy,
25
+ asciidoc, aciidoctor, bootstrap, jekyll, liquid,
26
+ hyvor, disqus, git, github, netlify, heroku, apple, microsoft,
27
+ provider, service, internet, support,
28
+ google, analytics, advertising, search, console, silverlight, score,
29
+ j1, template, jekyllone, comment
30
+
31
+ categories: [ Manuals ]
32
+ tags: [ J1Dropdowns ]
33
+
34
+
35
+ comments: false
36
+ fab_menu_id: page_ctrl_simple
37
+
38
+ permalink: /pages/public/manuals/j1Dropdowns/
39
+ regenerate: false
40
+
41
+ resources: [ dropdowns, rouge ]
42
+ resource_options:
43
+ - attic:
44
+ padding_top: 400
45
+ padding_bottom: 50
46
+ opacity: 0.5
47
+ slides:
48
+ - url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
49
+ alt: Photo by Ricardo Gomez Angel on Unsplash
50
+ badge:
51
+ type: unsplash
52
+ author: Ricardo Gomez Angel
53
+ href: https://unsplash.com/@ripato/portfolio
54
+ ---
55
+
56
+ // Page Initializer
57
+ // =============================================================================
58
+ // Enable the Liquid Preprocessor
59
+ :page-liquid:
60
+
61
+ // Set (local) page attributes here
62
+ // -----------------------------------------------------------------------------
63
+ // :page--attr: <attr-value>
64
+ :images-dir: {imagesdir}/pages/roundtrip/100_present_images
65
+
66
+ // Load Liquid procedures
67
+ // -----------------------------------------------------------------------------
68
+ {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
69
+
70
+ // Load page attributes
71
+ // -----------------------------------------------------------------------------
72
+ {% include {{load_attributes}} scope="global" %}
73
+
74
+ // Page content
75
+ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
+ // See: https://materializecss.com/dropdown.html
77
+
78
+ // Include sub-documents (if any)
79
+ // -----------------------------------------------------------------------------
80
+
81
+ == Demo
82
+
83
+ Dropdown connected to an icon element.
84
+
85
+ ++++
86
+ <div class="mt-3 mb-4">
87
+ <a class="dropdowns" href="#" data-target="icon-dropdown" aria-label="Google Translate"><i class="nav-icon mdi mdi-google-translate mdi-2x"></i></a>
88
+ </div>
89
+
90
+ <!-- Dropdown content -->
91
+ <ul id="icon-dropdown" class="dropdown-content">
92
+ <li data-target="de"><a href="#"><i class="flag-icon flag-icon-de squared size-1x"></i></a></li>
93
+ <li class="divider" tabindex="-1"></li>
94
+ <li data-target="be"><a href="#"><i class="flag-icon flag-icon-be squared size-1x"></i></a></li>
95
+ <li data-target="dk"><a href="#"><i class="flag-icon flag-icon-dk squared size-1x"></i></a></li>
96
+ <li data-target="es"><a href="#"><i class="flag-icon flag-icon-es squared size-1x"></i></a></li>
97
+ </ul>
98
+
99
+ ++++
100
+
101
+ Dropdown connected to an button element.
102
+
103
+ ++++
104
+ <!-- Dropdown trigger -->
105
+ <a class="dropdowns btn btn-info mt-3 mb-4" href="#" data-target="button-dropdown">Dropdown MyFlags</a>
106
+
107
+ <ul id="button-dropdown" class="dropdown-content">
108
+ <li data-target="de"><a href="#"><i class="flag-icon flag-icon-de rectangle size-2x"></i>Germany</a></li>
109
+ <li class="divider" tabindex="-1"></li>
110
+ <li data-target="be"><a href="#"><i class="flag-icon flag-icon-be rectangle size-2x"></i>Belgium</a></li>
111
+ <li data-target="dk"><a href="#"><i class="flag-icon flag-icon-dk rectangle size-2x"></i>Denmark</a></li>
112
+ <li data-target="es"><a href="#"><i class="flag-icon flag-icon-es rectangle size-2x"></i>Spain</a></li>
113
+ </ul>
114
+ ++++
115
+
116
+ == Configuration
117
+
118
+ Add a dropdown list to any button. Make sure that the `data-target`
119
+ attribute matches the id in the `<ul>` tag. You can add a divider with
120
+ the `<li class="divider"></li>` tag. You can also add icons. Just add
121
+ the icon inside the `anchor` tag.
122
+
123
+ [source, html]
124
+ ----
125
+ <!-- Dropdown trigger -->
126
+ <a class="dropdowns btn btn-info" href="#" data-target="my-dropdown">Dropdown MyFlags</a>
127
+
128
+ <!-- Dropdown content -->
129
+ <ul id="my-dropdown" class="dropdown-content">
130
+ <li data-target="de"><a href="#"><i class="flag-icon flag-icon-de squared size-1x"></i></a></li>
131
+ <li class="divider" tabindex="-1"></li>
132
+ <li data-target="be"><a href="#"><i class="flag-icon flag-icon-be squared size-1x"></i></a></li>
133
+ <li data-target="dk"><a href="#"><i class="flag-icon flag-icon-dk squared size-1x"></i></a></li>
134
+ <li data-target="es"><a href="#"><i class="flag-icon flag-icon-es squared size-1x"></i></a></li>
135
+ </ul>
136
+ ----
137
+
138
+ == Initialization
139
+
140
+
141
+ [source, js]
142
+ ----
143
+ document.addEventListener('DOMContentLoaded', function() {
144
+ var elms = document.querySelectorAll('.dropdowns');
145
+ var instances = j1.dropdowns.init(elms, options);
146
+ });
147
+ ----
148
+
149
+ == Options
150
+
151
+ [cols=",,,", options="header",]
152
+ |===
153
+ |Name |Type |Default |Description
154
+ |alignment
155
+ |String |'left'
156
+ |Defines the edge the menu is aligned to.
157
+
158
+ |autoTrigger
159
+ |Boolean
160
+ |true
161
+ |If true, automatically focus dropdown el for keyboard.
162
+
163
+ |constrainWidth
164
+ |Boolean
165
+ |true
166
+ |If true, constrainWidth to the size ofthe dropdown activator
167
+
168
+ |container
169
+ |Element
170
+ |null
171
+ |Provide an element that will be the bounding container of the dropdown
172
+
173
+ |coverTrigger
174
+ |Boolean
175
+ |true
176
+ |If false, the dropdown will show below the trigger element
177
+
178
+ |closeOnClick
179
+ |Boolean
180
+ |true
181
+ |If true, close dropdown on item click
182
+
183
+ |hover
184
+ |Boolean
185
+ |false
186
+ |If true, the dropdown will open on hover
187
+
188
+ |inDuration
189
+ |Number
190
+ |150
191
+ |The duration of the transition enter in milliseconds
192
+
193
+ |outDuration
194
+ |Number
195
+ |250
196
+ |The duration of the transition out in milliseconds
197
+
198
+ |onItemClick
199
+ |Function name
200
+ |j1.adapter.dropdowns.cbOnItemClick
201
+ |Function called when dropdown element is clicked
202
+
203
+ |onOpen
204
+ |Function name
205
+ |j1.adapter.dropdowns.cbOnOpen
206
+ |Function called when dropdown is opened
207
+
208
+ |onClose
209
+ |Function name
210
+ |j1.adapter.dropdowns.cbOnClose
211
+ |Function called when dropdown is closed
212
+ |===
213
+
214
+ == Methods
215
+
216
+ Because jQuery is no longer a dependency, all the methods are called on
217
+ the plugin instance. You can get the plugin instance like this:
218
+
219
+ [source, js]
220
+ ----
221
+ var instance = j1.dropdowns.getInstance(elem);
222
+ ----
223
+
224
+ === open
225
+
226
+ Open dropdown.
227
+
228
+ [source, js]
229
+ ----
230
+ instance.open();
231
+ ----
232
+
233
+ === close
234
+
235
+ Close dropdown.
236
+
237
+ [source, js]
238
+ ----
239
+ instance.close();
240
+ ----
241
+
242
+ === recalculateDimensions
243
+
244
+ While dropdown is open, you can recalculate its dimensions if its
245
+ contents have changed.
246
+
247
+ [source, js]
248
+ ----
249
+ instance.recalculateDimensions();
250
+ ----
251
+
252
+ === destroy
253
+
254
+ Destroy plugin instance and teardown
255
+
256
+ [source, js]
257
+ ----
258
+ instance.destroy();
259
+ ----
260
+
261
+ == Properties
262
+
263
+ [cols=",,",options="header",]
264
+ |===
265
+ |Name |Type |Description
266
+ |el
267
+ |Elemen
268
+ |The DOM element the plugin was initialized with.
269
+
270
+ |options
271
+ |Object
272
+ |The options the instance was initialized with.
273
+
274
+ |id
275
+ |String
276
+ |ID of the dropdown element.
277
+
278
+ |dropdownEl
279
+ |Element
280
+ |The DOM element of the dropdown.
281
+
282
+ |isOpen
283
+ |Boolean
284
+ |Returns `true` if the dropdown is open.
285
+
286
+ |isScrollable
287
+ |Boolean
288
+ |If the dropdown content is scrollable.
289
+
290
+ |focusedIndex
291
+ |Number
292
+ |The index of the item focused.
293
+
294
+ |===
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: J1 Template
3
3
  tagline: creating responsive websites
4
- date: 2020-11-03 00:00:00 +100
4
+ date: 2020-11-03 00:00:00
5
5
  description: >
6
6
  A good user experience browsing a Web site is one of the most important
7
7
  features a website offers as a must, besides excellent content. Presenting
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Theme previewer
3
3
  tagline: common components
4
- date: 2020-11-08 00:00:00 +100
4
+ date: 2020-11-08 00:00:00
5
5
  description: >
6
6
  Bootstrap is a HTML, CSS and JS Library that focuses on simplifying the
7
7
  development of modern web pages. The primary purpose of applying a theme
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "utls",
4
- "version": "2022.0.17",
4
+ "version": "2022.0.18",
5
5
  "description": "J1 Template Utility Server",
6
6
  "homepage": "https://jekyll.one",
7
7
  "author": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "utls",
4
- "version": "2022.0.17",
4
+ "version": "2022.0.18",
5
5
  "description": "J1 Template Utility Server",
6
6
  "homepage": "https://jekyll.one",
7
7
  "author": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: j1-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 2022.0.17
4
+ version: 2022.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - juergen_jekyll_one
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -369,6 +369,9 @@ files:
369
369
  - assets/themes/j1/adapter/js/clipboard.js
370
370
  - assets/themes/j1/adapter/js/comments.js
371
371
  - assets/themes/j1/adapter/js/cookieConsent.js
372
+ - assets/themes/j1/adapter/js/customFunctions.js
373
+ - assets/themes/j1/adapter/js/customModule.js
374
+ - assets/themes/j1/adapter/js/dropdowns.js
372
375
  - assets/themes/j1/adapter/js/fab.js
373
376
  - assets/themes/j1/adapter/js/framer.js
374
377
  - assets/themes/j1/adapter/js/j1.js
@@ -1068,8 +1071,10 @@ files:
1068
1071
  - assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js
1069
1072
  - assets/themes/j1/modules/deeplAPI/js/deeplAPI.js
1070
1073
  - assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js
1071
- - assets/themes/j1/modules/fab/css/theme/uno/fab.css
1072
- - assets/themes/j1/modules/fab/css/theme/uno/fab.min.css
1074
+ - assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css
1075
+ - assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css
1076
+ - assets/themes/j1/modules/dropdowns/js/cash.js
1077
+ - assets/themes/j1/modules/dropdowns/js/dropdowns.js
1073
1078
  - assets/themes/j1/modules/fab/js/cash.js
1074
1079
  - assets/themes/j1/modules/fab/js/fab.js
1075
1080
  - assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js
@@ -1615,6 +1620,7 @@ files:
1615
1620
  - lib/starter_web/_data/modules/defaults/comments.yml
1616
1621
  - lib/starter_web/_data/modules/defaults/cookieconsent.yml
1617
1622
  - lib/starter_web/_data/modules/defaults/cookies.yml
1623
+ - lib/starter_web/_data/modules/defaults/dropdowns.yml
1618
1624
  - lib/starter_web/_data/modules/defaults/fab.yml
1619
1625
  - lib/starter_web/_data/modules/defaults/framer.yml
1620
1626
  - lib/starter_web/_data/modules/defaults/log4javascript.yml
@@ -1626,6 +1632,7 @@ files:
1626
1632
  - lib/starter_web/_data/modules/defaults/themer.yml
1627
1633
  - lib/starter_web/_data/modules/defaults/toccer.yml
1628
1634
  - lib/starter_web/_data/modules/defaults/translator.yml
1635
+ - lib/starter_web/_data/modules/dropdowns.yml
1629
1636
  - lib/starter_web/_data/modules/fab.yml
1630
1637
  - lib/starter_web/_data/modules/framer.yml
1631
1638
  - lib/starter_web/_data/modules/log4javascript.yml
@@ -2017,7 +2024,8 @@ files:
2017
2024
  - lib/starter_web/pages/public/legal/en/200_impress.adoc
2018
2025
  - lib/starter_web/pages/public/legal/en/300_privacy.adoc
2019
2026
  - lib/starter_web/pages/public/legal/en/400_comment_policy.adoc
2020
- - lib/starter_web/pages/public/manuals/dropdown-help.adoc
2027
+ - lib/starter_web/pages/public/manuals/j1-dropdown.adoc
2028
+ - lib/starter_web/pages/public/manuals/msdropdown.adoc
2021
2029
  - lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc
2022
2030
  - lib/starter_web/pages/public/panels/intro_panel/panel.adoc
2023
2031
  - lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc
@@ -2044,7 +2052,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2044
2052
  - !ruby/object:Gem::Version
2045
2053
  version: '0'
2046
2054
  requirements: []
2047
- rubygems_version: 3.3.4
2055
+ rubygems_version: 3.3.5
2048
2056
  signing_key:
2049
2057
  specification_version: 4
2050
2058
  summary: J1 Template