nodality 1.0.215 → 1.0.217

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 (275) hide show
  1. package/dist/animator.cjs.js +1 -1
  2. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  3. package/dist/animator.esm.js +1 -1
  4. package/dist/animator.esm.js.LICENSE.txt +1 -1
  5. package/dist/audionew.cjs.js +1 -1
  6. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  7. package/dist/audionew.esm.js +1 -1
  8. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  9. package/dist/base.cjs.js +1 -1
  10. package/dist/base.cjs.js.LICENSE.txt +1 -1
  11. package/dist/base.esm.js +1 -1
  12. package/dist/base.esm.js.LICENSE.txt +1 -1
  13. package/dist/beta-desktop-bar.cjs.js +1 -1
  14. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  15. package/dist/beta-desktop-bar.esm.js +1 -1
  16. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  17. package/dist/beta-mobile-bar.cjs.js +1 -1
  18. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  19. package/dist/beta-mobile-bar.esm.js +1 -1
  20. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  21. package/dist/bundle.umd.js +1 -1
  22. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  23. package/dist/button.cjs.js +1 -1
  24. package/dist/button.cjs.js.LICENSE.txt +1 -1
  25. package/dist/button.esm.js +1 -1
  26. package/dist/button.esm.js.LICENSE.txt +1 -1
  27. package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
  28. package/dist/card-getter.esm.js.LICENSE.txt +1 -1
  29. package/dist/center.cjs.js +1 -1
  30. package/dist/center.cjs.js.LICENSE.txt +1 -1
  31. package/dist/center.esm.js +1 -1
  32. package/dist/center.esm.js.LICENSE.txt +1 -1
  33. package/dist/checkbox.cjs.js +1 -1
  34. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  35. package/dist/checkbox.esm.js +1 -1
  36. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  37. package/dist/code.cjs.js +1 -1
  38. package/dist/code.cjs.js.LICENSE.txt +1 -1
  39. package/dist/code.esm.js +1 -1
  40. package/dist/code.esm.js.LICENSE.txt +1 -1
  41. package/dist/container.cjs.js +1 -1
  42. package/dist/container.cjs.js.LICENSE.txt +1 -1
  43. package/dist/container.esm.js +1 -1
  44. package/dist/container.esm.js.LICENSE.txt +1 -1
  45. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  46. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  47. package/dist/designer.cjs.js +1 -1
  48. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  49. package/dist/designer.esm.js +1 -1
  50. package/dist/designer.esm.js.LICENSE.txt +1 -1
  51. package/dist/element-mapper.cjs.js +1 -1
  52. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  53. package/dist/element-mapper.esm.js +1 -1
  54. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  55. package/dist/finalresult.esm.js +1 -1
  56. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  57. package/dist/flex-card.cjs.js +1 -1
  58. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  59. package/dist/flex-card.esm.js +1 -1
  60. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  61. package/dist/flex-grid.cjs.js +1 -1
  62. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  63. package/dist/flex-grid.esm.js +1 -1
  64. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  65. package/dist/flex-row.cjs.js +1 -1
  66. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  67. package/dist/flex-row.esm.js +1 -1
  68. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  69. package/dist/floating-input.cjs.js +1 -1
  70. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  71. package/dist/floating-input.esm.js +1 -1
  72. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  73. package/dist/free.cjs.js +1 -1
  74. package/dist/free.cjs.js.LICENSE.txt +1 -1
  75. package/dist/free.esm.js +1 -1
  76. package/dist/free.esm.js.LICENSE.txt +1 -1
  77. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  78. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  79. package/dist/image-picker.cjs.js +1 -1
  80. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  81. package/dist/image-picker.esm.js +1 -1
  82. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  83. package/dist/image.cjs.js +1 -1
  84. package/dist/image.cjs.js.LICENSE.txt +1 -1
  85. package/dist/image.esm.js +1 -1
  86. package/dist/image.esm.js.LICENSE.txt +1 -1
  87. package/dist/index.cjs.js +1 -1
  88. package/dist/index.cjs.js.LICENSE.txt +1 -1
  89. package/dist/index.esm.js +1 -1
  90. package/dist/index.esm.js.LICENSE.txt +1 -1
  91. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  92. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  93. package/dist/link-getter.cjs.js +1 -1
  94. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  95. package/dist/link-getter.esm.js +1 -1
  96. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  97. package/dist/link.cjs.js +1 -1
  98. package/dist/link.cjs.js.LICENSE.txt +1 -1
  99. package/dist/link.esm.js +1 -1
  100. package/dist/link.esm.js.LICENSE.txt +1 -1
  101. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  102. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  103. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  104. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  105. package/dist/multiswitcher.cjs.js +1 -1
  106. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  107. package/dist/multiswitcher.esm.js +1 -1
  108. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  109. package/dist/new-nav-bar.cjs.js +1 -1
  110. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  111. package/dist/new-nav-bar.esm.js +1 -1
  112. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  113. package/dist/picker.cjs.js +1 -1
  114. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  115. package/dist/picker.esm.js +1 -1
  116. package/dist/picker.esm.js.LICENSE.txt +1 -1
  117. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  118. package/dist/progress.esm.js.LICENSE.txt +1 -1
  119. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  120. package/dist/radio.esm.js.LICENSE.txt +1 -1
  121. package/dist/range.cjs.js.LICENSE.txt +1 -1
  122. package/dist/range.esm.js.LICENSE.txt +1 -1
  123. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  124. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  125. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  126. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  127. package/dist/side-nav-bar.cjs.js +1 -1
  128. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  129. package/dist/side-nav-bar.esm.js +1 -1
  130. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  131. package/dist/simple-bar.cjs.js +1 -1
  132. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  133. package/dist/simple-bar.esm.js +1 -1
  134. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  135. package/dist/slider-2025.cjs.js +1 -1
  136. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  137. package/dist/slider-2025.esm.js +1 -1
  138. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  139. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  140. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  141. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  142. package/dist/stack.esm.js.LICENSE.txt +1 -1
  143. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  144. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  145. package/dist/table.cjs.js +1 -1
  146. package/dist/table.cjs.js.LICENSE.txt +1 -1
  147. package/dist/table.esm.js +1 -1
  148. package/dist/table.esm.js.LICENSE.txt +1 -1
  149. package/dist/text-field.cjs.js +1 -1
  150. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  151. package/dist/text-field.esm.js +1 -1
  152. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  153. package/dist/text.cjs.js +1 -1
  154. package/dist/text.cjs.js.LICENSE.txt +1 -1
  155. package/dist/text.esm.js +1 -1
  156. package/dist/text.esm.js.LICENSE.txt +1 -1
  157. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  158. package/dist/theme.esm.js.LICENSE.txt +1 -1
  159. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  160. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  161. package/dist/ulist.cjs.js +1 -1
  162. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  163. package/dist/ulist.esm.js +1 -1
  164. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  165. package/dist/video.cjs.js +1 -1
  166. package/dist/video.cjs.js.LICENSE.txt +1 -1
  167. package/dist/video.esm.js +1 -1
  168. package/dist/video.esm.js.LICENSE.txt +1 -1
  169. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  170. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  171. package/dist/zoom-card.cjs.js +1 -1
  172. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  173. package/dist/zoom-card.esm.js +1 -1
  174. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  175. package/layout/animator.js +321 -1987
  176. package/layout/audio.js +1 -5
  177. package/layout/audionew.js +1 -1
  178. package/layout/base.js +3 -17
  179. package/layout/beta-desktop-bar.js +1 -1
  180. package/layout/beta-mobile-bar.js +2 -9
  181. package/layout/button.js +7 -30
  182. package/layout/center.js +3 -38
  183. package/layout/checkbox.js +1 -5
  184. package/layout/circle.js +9 -8
  185. package/layout/code.js +1 -1
  186. package/layout/container.js +22 -53
  187. package/layout/dropdown-2025.js +1 -1
  188. package/layout/flex-card.js +20 -10
  189. package/layout/flex-grid.js +1 -5
  190. package/layout/flex-row.js +2 -75
  191. package/layout/form-components/custom.js +1 -1
  192. package/layout/form-components/data-list.js +1 -1
  193. package/layout/form-components/floating-input.js +1 -1
  194. package/layout/form-components/form-all.js +1 -1
  195. package/layout/form-components/form.js +1 -1
  196. package/layout/form-components/image-picker.js +1 -1
  197. package/layout/form-components/picker.js +1 -1
  198. package/layout/form-components/radio.js +1 -1
  199. package/layout/form-components/radiogroup.js +1 -1
  200. package/layout/form-components/range.js +1 -1
  201. package/layout/free.js +1 -1
  202. package/layout/grid-switcher.js +5 -12
  203. package/layout/grid.js +1 -40
  204. package/layout/horizontal-scroller.js +1 -1
  205. package/layout/image.js +24 -115
  206. package/layout/index.js +1 -1
  207. package/layout/link.js +19 -64
  208. package/layout/list.js +1 -1
  209. package/layout/meta-adder.js +1 -1
  210. package/layout/modal-2025.js +1 -1
  211. package/layout/multiswitcher.js +1 -1
  212. package/layout/nav-bar.js +4 -20
  213. package/layout/nav-factor/custom-div.js +1 -1
  214. package/layout/new-nav-bar.js +1 -16
  215. package/layout/polygon.js +7 -12
  216. package/layout/prerender-site.js +1 -1
  217. package/layout/prerender.js +1 -1
  218. package/layout/progress.js +1 -1
  219. package/layout/row.js +1 -4
  220. package/layout/scroll-video.js +1 -1
  221. package/layout/side-bar.js +1 -1
  222. package/layout/side-nav-bar.js +1 -1
  223. package/layout/simple-bar.js +1 -1
  224. package/layout/slider-2025.js +1 -1
  225. package/layout/spacer.js +1 -1
  226. package/layout/stack.js +1 -1
  227. package/layout/svg.js +1 -1
  228. package/layout/switcher.js +1 -1
  229. package/layout/table.js +1 -1
  230. package/layout/text-field.js +18 -38
  231. package/layout/text.js +4 -617
  232. package/layout/ulist.js +1 -25
  233. package/layout/video.js +1 -1
  234. package/layout/wrap.js +1 -1
  235. package/layout/zoom-card.js +1 -1
  236. package/lib/card-getter.js +1 -1
  237. package/lib/data.js +1 -1
  238. package/lib/designer.js +1 -1
  239. package/lib/element-mapper.js +1 -1
  240. package/lib/keyframe-animation.js +1 -1
  241. package/lib/link-getter.js +1 -1
  242. package/lib/raster-ops.js +1 -1
  243. package/lib/scroll-video.js +1 -1
  244. package/lib/seo.js +1 -1
  245. package/lib/stacker.js +1 -1
  246. package/lib/theme.js +1 -1
  247. package/lib/transform-anim.js +1 -1
  248. package/package.json +1 -1
  249. package/dist/dropdown.cjs.js +0 -2
  250. package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
  251. package/dist/dropdown.esm.js +0 -2
  252. package/dist/dropdown.esm.js.LICENSE.txt +0 -5
  253. package/layout/base-2.js +0 -97
  254. package/layout/box.js +0 -35
  255. package/layout/cards.js +0 -143
  256. package/layout/clean-row.js +0 -686
  257. package/layout/custom.js +0 -297
  258. package/layout/div-image.js +0 -167
  259. package/layout/dropdown.js +0 -158
  260. package/layout/empty-element.js +0 -27
  261. package/layout/external-stylesheet.js +0 -25
  262. package/layout/footer.js +0 -89
  263. package/layout/grid-new.js +0 -301
  264. package/layout/group.js +0 -129
  265. package/layout/header.js +0 -181
  266. package/layout/image-old.js +0 -453
  267. package/layout/label.js +0 -56
  268. package/layout/list-OLD.js +0 -6
  269. package/layout/modernwrap.js +0 -97
  270. package/layout/multiswitcherBeta.js +0 -69
  271. package/layout/navBar-OLD.js +0 -266
  272. package/layout/new-flat-adder.js +0 -47
  273. package/layout/offset-container.js +0 -394
  274. package/layout/saved-new-nav-bar.js +0 -437
  275. package/layout/without-new.js +0 -66
package/layout/custom.js DELETED
@@ -1,297 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
- class TopBar extends Base {
10
- constructor(){
11
- super();
12
- }
13
-
14
- render(){
15
- return FlexRow().items([
16
- Text("Newsroom"),
17
- Spacer(true),
18
- Text("Contact us")
19
- ]).pad([{lr: "20px"}])
20
- }
21
- }
22
-
23
-
24
-
25
-
26
- new TopBar()
27
- .mount("#res");
28
-
29
-
30
-
31
- class NewsHeader extends Base {
32
-
33
- constructor(data){
34
- super();
35
- this.data = data;
36
- }
37
-
38
- render(){
39
- return new Group().items([
40
- Text(this.data.type)
41
- .fluidCopy("S6")
42
- .font("SF Pro Text")
43
- .bold()
44
- .margin("top", 40),
45
-
46
- Text(this.data.date)
47
- .color("gray")
48
- .font("Arial")
49
- .em(0.8)
50
- .margin("top", 10),
51
-
52
- Text(this.data.title)
53
- .font("Arial")
54
- .fluidCopy("S5")
55
- //.em(2.10)
56
- .bold()
57
- .margin("bottom", 10),
58
-
59
- Text(this.data.subtitle)
60
- .fluidCopy("S6")
61
- .font("Arial")
62
- ])
63
- .width("80%", "center");
64
- //.render("#res");
65
- }
66
- }
67
-
68
-
69
- new NewsHeader({
70
- title: "All-new iMac features stunning design in a spectrum of vibrant colors, the breakthrough M1 chip, and a brilliant 4.5K Retina display",
71
- subtitle: "iMac offers the best camera, mics, and speakers ever in a Mac, and Touch ID for the first time",
72
- date: "April 20th, 2021",
73
- type: "PRESS RELEASE"
74
- }).mount("#res");
75
-
76
-
77
-
78
-
79
-
80
- class ImageRow extends Base {
81
- constructor(){
82
- super();
83
- }
84
-
85
- render(){
86
- // can use Spacer()
87
- return new FlexGrid(3).items([
88
- new Image("https://cdn3.iconfinder.com/data/icons/capsocial-round/500/facebook-512.png").RSize(30, 30, 1.4).padding(10),
89
- new Image("https://cdn3.iconfinder.com/data/icons/capsocial-round/500/facebook-512.png").RSize(30, 30, 1.4).padding(10),
90
- new Image("https://cdn3.iconfinder.com/data/icons/capsocial-round/500/facebook-512.png").RSize(30, 30, 1.4).padding(10),
91
- ])
92
- .width("80%")
93
- // FlexGrid.center() used to mean "centre myself"; center() now centres
94
- // children everywhere. Centring the element itself is mar("center").
95
- .mar("center");
96
- }
97
- }
98
-
99
-
100
-
101
-
102
- new ImageRow()
103
- .mount("#res");
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
- class CenterRow extends Base {
112
- constructor(){
113
- super();
114
- }
115
-
116
-
117
- render(){
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
- // 2 classes
129
- // Wrap with no formatting options for custom Components
130
- // Container() for all other elements
131
-
132
-
133
- // return new Center()
134
- return new Center().items([
135
- new Image("https://www.apple.com/newsroom/images/product/imac/standard/apple_new-imac-spring21_hero_04202021_Full-Bleed-Image.jpg.large_2x.jpg"),
136
- new Text("New MacBook Pro delivers up to 80% graphics performance and thinner bezels")
137
- .caption()
138
- .align("center")
139
-
140
- ])//.itemWidth("90%")
141
- }
142
- }
143
-
144
-
145
-
146
- new CenterRow().mount("#res");
147
-
148
- /*------------------------HEADER------------------------
149
- new Group().items([
150
- new Text("PRESS RELEASE")
151
- .em(0.9)
152
- .color("red")
153
- .font("SF Pro Text")
154
- .bold()
155
- .margin("top", 40),
156
-
157
- new Text("June 1, 2020")
158
- .color("gray")
159
- .font("Arial")
160
- .em(0.8)
161
- .margin("top", 10),
162
-
163
- new Text("Apple announces MacBook Pro 14")
164
- .font("Arial")
165
- .em(2.10)
166
- .bold()
167
- .margin("bottom", 10)
168
- ])
169
- .width("80%", "center")
170
- .render("#res");*/
171
-
172
- /*------------------------SOCIAL------------------------*/
173
-
174
-
175
- /*------------------------IMAGE------------------------
176
- new Center().items([
177
- new Image("https://www.apple.com/newsroom/images/product/mac/standard/Apple_macbookpro-13-inch_screen_05042020_big.jpg.medium_2x.jpg"),
178
- new Text("New MacBook Pro delivers up to 80% graphics performance and thinner bezels").caption().align("center")
179
-
180
- ]).itemWidth("90%")
181
- .render("#res")*/
182
-
183
- /*------------------------HEADERS------------------------*/
184
- new Center().items([
185
- new Text("Like Apple.").font("SF Pro Display").bold().em(6),
186
- new Text("Big bold font.").font("SF Pro Display").bold().em(2)
187
- ]).margin("top", 40)
188
- .margin("bottom", 40)
189
- .itemWidth("80%")
190
- .render("#res");
191
-
192
- /*------------------------TEXT------------------------*/
193
- new Text("Cupertino, California — Apple today updated the 13-inch MacBook Pro with the new Magic Keyboard for the best typing experience ever on a Mac notebook and doubled the storage across all standard configurations, delivering even more value to the most popular MacBook Pro. The new lineup also offers 10th-generation processors for up to 80 percent faster graphics performance1 and makes 16GB of faster 3733MHz memory standard on select configurations. With powerful quad-core processors, the brilliant 13-inch Retina display, Touch Bar and Touch ID, immersive stereo speakers, all-day battery life, and the power of macOS, all in an incredibly portable design, the new 13-inch MacBook Pro is available to order today, starting at $1,299, and $1,199 for education.")
194
- .em(1)
195
- /*.margin("top", 20)
196
- .margin("bottom", 30)*/
197
-
198
- .pad([{tb: 40}])
199
- .width("80%", "center")
200
- /*.sizes([
201
- {w: 800, size: 1.2},
202
- {w: 900, size: 1.34},
203
- {mobile: 4}
204
- ])*/
205
- .render("#res");
206
-
207
-
208
-
209
-
210
- new Center()
211
- .items([
212
- /*new Progress(0.80)
213
- .size("80%", 20)
214
- .colors("#ecf0f3", "#3498db")
215
- .round(23),*/
216
-
217
- new Text("80% faster graphics performance.")
218
- .align("center")
219
- .font("SF Pro Display")
220
- .color("gray")
221
- .padding("top", 10)
222
- .bold()
223
-
224
- ]).itemWidth("80%")
225
- .pad([{tb: 30}])
226
- .render("#res");
227
-
228
-
229
-
230
- let cards = [
231
- new Card().items([
232
- new Spacer(true),
233
- new Text("Fast")
234
- .bold()
235
- .em(2),
236
- //.large().bold(),//.padding(20, 20, 0, 3),
237
- new Spacer(true),
238
- new Text("The 13-inch MacBook Pro includes a solid-state drive that’s blazing fast, with sequential read speeds up to 3.0GB/s.10 The standard configurations have twice the capacity of the previous generation (256GB, 512GB, or 1TB), and with up to 4TB of storage, you can take all your photos and videos with you no matter where you go. And with the Apple T2 Security Chip, everything is automatically encrypted on the fly.").padding(20),
239
-
240
-
241
-
242
-
243
-
244
- Image("https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/MBP13GT-201807?wid=1200&hei=630&fmt=jpeg&qlt=95&op_usm=0.5,0.5&.v=1531249596119", "exact")
245
-
246
- //new ExactImage("https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/MBP13GT-201807?wid=1200&hei=630&fmt=jpeg&qlt=95&op_usm=0.5,0.5&.v=1531249596119")
247
- ])
248
- .shadow(),
249
-
250
- new Card().items([
251
- new Spacer(),
252
- new Text("Efficient")
253
- .bold()
254
- .em(2),
255
- //.large().bold().padding(20, 20, 0, 3),
256
- new Spacer(),
257
- new Text("The 13-inch MacBook Pro includes a solid-state drive that’s blazing fast, with sequential read speeds up to 3.0GB/s.10 The standard configurations have twice the capacity of the previous generation (256GB, 512GB, or 1TB), and with up to 4TB of storage, you can take all your photos and videos with you no matter where you go. And with the Apple T2 Security Chip, everything is automatically encrypted on the fly.").padding(20),
258
-
259
- Image("https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/MBP13GT-201807?wid=1200&hei=630&fmt=jpeg&qlt=95&op_usm=0.5,0.5&.v=1531249596119", "exact")
260
- ])
261
- .shadow(),
262
-
263
- new Card().items([
264
- new Spacer(),
265
- new Text("Durable")
266
- .bold()
267
- .em(2),
268
- //.large().bold().padding(20, 20, 0, 3),
269
- new Spacer(),
270
- new Text("The 13-inch MacBook Pro includes a solid-state drive that’s blazing fast, with sequential read speeds up to 3.0GB/s.10 The standard configurations have twice the capacity of the previous generation (256GB, 512GB, or 1TB), and with up to 4TB of storage, you can take all your photos and videos with you no matter where you go. And with the Apple T2 Security Chip, everything is automatically encrypted on the fly.").padding(20),
271
-
272
- Image("https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/MBP13GT-201807?wid=1200&hei=630&fmt=jpeg&qlt=95&op_usm=0.5,0.5&.v=1531249596119", "exact")
273
- ])
274
- .shadow(),
275
- ];
276
-
277
- new Grid(3)
278
- .items(cards)
279
- .center()
280
- .gap(20)
281
- .setColumns(1, 600)
282
- .padding(20)
283
- .render("#res");
284
-
285
-
286
- new Footer("2020").font("Arial").render("#res");
287
- window.TopBar
288
- NewsHeader
289
- ImageRow
290
- CenterRow = TopBar
291
- NewsHeader
292
- ImageRow
293
- CenterRow;
294
- export { TopBar
295
- NewsHeader
296
- ImageRow
297
- CenterRow };
@@ -1,167 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
- class AspectImage extends Animator {
10
- constructor(url, animation) {
11
- super();
12
- this.url = url;
13
- this.res = null;
14
- this.animation = animation;
15
- // this.setup();
16
- }
17
-
18
- overlayColor(colour){
19
- this.overlayColor = colour;
20
- this.res.children[1].style.background = colour;
21
- return this;
22
- }
23
-
24
- setup(obj) {
25
- let wrap = document.createElement("div");
26
- wrap.style.overflow = "hidden";
27
- wrap.style.display = "flex";
28
- wrap.style.justifyContent = "center";
29
- wrap.style.alignItems = "center";
30
-
31
- /* let text = document.createElement("p");
32
- let node = document.createTextNode("Big Ben");
33
- text.appendChild(node);
34
- text.style.position = "absolute";
35
- text.style.transform = "scale(0.0)";
36
- text.style.font = "Arial";
37
- text.style.fontSize = "2rem";
38
- text.style.fontWeight = "bold";
39
- text.style.pointerEvents = "none";
40
- */
41
- let text = obj.view.render();
42
- text.style.position = "absolute";
43
- text.style.transform = "scale(0.0)";
44
- text.style.font = "Arial";
45
- text.style.fontSize = "2rem";
46
- text.style.fontWeight = "bold";
47
- text.style.pointerEvents = "none";
48
-
49
-
50
-
51
-
52
-
53
-
54
- let overlay = document.createElement("div");
55
- overlay.style.position = "absolute";
56
- overlay.style.opacity = "0.33";
57
- overlay.style.width = "250px";
58
- overlay.style.height = "250px";
59
- overlay.style.opacity = "0.0"; // 0.0
60
-
61
- overlay.style.pointerEvents = "none";
62
-
63
-
64
- let div = document.createElement("div");
65
- div.style.width = "250px";
66
-
67
-
68
- let query = window.matchMedia("(max-device-width: 415px)");
69
- div.style.height = "250";
70
-
71
- // wrap.style.transition = "0.6s";
72
- text.style.transition = "0.6s";
73
- div.style.transition = "0.6s";
74
- overlay.style.transition = "0.6s";
75
-
76
-
77
- /* if (query.matches){
78
- div.style.height = "450";
79
- } */
80
-
81
-
82
-
83
- div.style.backgroundImage = `url("${this.url}")`;
84
- div.style.backgroundSize = "cover";
85
- div.style.backgroundPosition = "center center";
86
-
87
-
88
-
89
-
90
- if (this.animation === "scale"){
91
- div.addEventListener("mouseover", (e) => {
92
- e.stopImmediatePropagation();
93
- //wrap.style.transform = "scale(1.25)";
94
- div.style.transform = "scale(1.25)";
95
- text.style.transform = "scale(1.0)";
96
- div.style.filter = "blur(1.5px)";
97
- overlay.style.opacity = "0.45";
98
- });
99
-
100
- div.addEventListener("mouseout", (e) => {
101
- e.stopImmediatePropagation();
102
- // wrap.style.transform = "scale(1.0)";
103
- div.style.transform = "scale(1.0)";
104
- text.style.transform = "scale(0.0)";
105
- overlay.style.opacity = "0.0";
106
- div.style.filter = "blur(0px)";
107
- });
108
- }
109
-
110
-
111
-
112
-
113
-
114
- wrap.appendChild(div);
115
- wrap.appendChild(overlay);
116
- wrap.appendChild(text);
117
- this.res = wrap;
118
-
119
-
120
- return this;
121
- }
122
-
123
-
124
-
125
-
126
-
127
-
128
- onTap(e) {
129
- this.res.addEventListener("click", e);
130
- return this;
131
- }
132
-
133
-
134
- grayscale(amount){
135
- if (amount){
136
- this.res.style.filter = `grayscale(${amount})`;
137
- } else {
138
- this.res.style.filter = "grayscale(100%)";
139
- }
140
-
141
- return this;
142
- }
143
-
144
- sepia(amount){
145
- if (amount){
146
- this.res.style.filter = `sepia(${amount})`;
147
- } else {
148
- this.res.style.filter = "sepia(100%)";
149
- }
150
-
151
- return this;
152
- }
153
-
154
-
155
- render(el) {
156
- if (el) {
157
- document.querySelector(el).appendChild(this.res);
158
- } else {
159
- return this.res;
160
- }
161
- }
162
- }
163
-
164
-
165
-
166
-
167
- export { AspectImage };
@@ -1,158 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
-
10
-
11
- // 1st internal class
12
- class DropdownOld extends Animator { // 232811
13
- constructor(items, title){
14
- super();
15
- this.setup(items, title);
16
- this.adjustSubmenu();
17
- window.addEventListener("resize", () => {
18
- this.adjustSubmenu();
19
-
20
- });
21
-
22
-
23
-
24
- }
25
-
26
- adjustSubmenu = () => {
27
-
28
-
29
- if (window.matchMedia("(max-width: 600px").matches){
30
- //alert("K")
31
- this.res.children[1].style.position = "relative";
32
-
33
- } else {
34
- this.res.children[1].style.position = "absolute"; // WOW !!!
35
- }
36
- }
37
-
38
- setup(items, title) {
39
- let el = document.createElement("div");
40
- el.style.display = "flex";
41
-
42
- let span = document.createElement("span");
43
- let nodes = document.createTextNode(title);
44
- span.appendChild(nodes);
45
- el.appendChild(span);
46
-
47
- let content = document.createElement("div");
48
- content.style.width = "200px";
49
- content.style.marginTop = "30px"
50
- //content.style.right = "initial"; // was 0 to fit 175642
51
- // content.style.left = "auto"
52
- content.style.background = "white";
53
- content.style.padding = "0.4rem";
54
- content.style.borderRadius = "0.4rem";
55
-
56
-
57
-
58
- content.style.display = "none" //"none";
59
- content.style.flexDirection = "column";
60
- content.style.position = "absolute"; // WOW !!!
61
-
62
-
63
-
64
-
65
- /*
66
- var rect = dropDownDiv.getBoundingClientRect();
67
- if (rect.x + rect.width > window.innerWidth){
68
- // top: 0;
69
- // left: "auto";
70
- }*/
71
-
72
-
73
-
74
-
75
- /*let covid = document.querySelector("#covid");
76
- if (covid.style.flexDirection === "column"){
77
- content.style.position = "relative"; // WOW !!!
78
- }*/
79
-
80
- if (window.matchMedia("(max-width: 70em").matches){
81
- //alert("K")
82
- content.style.position = "relative";
83
- //content.style.right = 0; // was 0 to fit 175642
84
- content.style.left = "initial";
85
-
86
- el.style.display = "flex";
87
- el.style.flexDirection = "column";
88
- el.style.alignItems = "center";
89
-
90
- } else {
91
- //content.style.right = 6; // was 0 to fit 175642
92
- content.style.left = "auto";
93
- content.style.position = "absolute"; // WOW !!!
94
- }
95
-
96
-
97
-
98
- for (var i = 0; i < items.length;i++){
99
- /*let contentP = document.createElement("p");
100
- contentP.style.whiteSpace = "normal"; // 234855
101
- contentP.style.background = "green";
102
- //contentP.style.maxWidth = `50px`;
103
- contentP.style.wordBreak = "break-all"
104
- let nodesa = document.createTextNode(items[i].name);
105
- contentP.appendChild(nodesa);
106
- content.appendChild(contentP);*/
107
-
108
- let link = new Link(items[i].name,items[i].url).toBlock().render();
109
- link.style.textAlign = "left";
110
- // link.style.backgroundColor = "green";
111
- link.style.wordBreak = "break-all"
112
- content.appendChild(link);
113
-
114
- }
115
-
116
- el.appendChild(content);
117
-
118
-
119
-
120
-
121
-
122
-
123
- this.res = el;
124
- this.behavior();
125
- }
126
-
127
- behavior(){
128
- this.res.addEventListener("mouseover", () => {
129
-
130
- this.res.children[1].style.display = "flex";
131
-
132
- const rect = this.res.children[1].getBoundingClientRect()
133
- if (rect.x + rect.width > window.innerWidth){ // WOW !!!
134
- // 22:14:26 28/07/22 WOW HAPPY NOW !!!
135
- this.res.children[1].style.right = 0;
136
- this.res.children[1].style.left = "initial";
137
- }
138
- });
139
-
140
- this.res.children[1].addEventListener("mouseout", () => {
141
- this.res.children[1].style.display = "none";
142
- });
143
- }
144
-
145
-
146
- items(arr){
147
-
148
- }
149
-
150
-
151
- render(){
152
- return this.res; // only internaly
153
- }
154
-
155
-
156
-
157
- }
158
- export { DropdownOld };
@@ -1,27 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
- class Empty {
10
- constructor() {
11
- this.res = document.createElement("null");
12
- }
13
-
14
- toCode(){
15
- return "";
16
- }
17
-
18
- render(div) {
19
- if (div) {
20
- document.querySelector(div).appendChild(this.res);
21
- } else {
22
-
23
- return this.res;
24
- }
25
- }
26
- } // 183934
27
- export { Empty };
@@ -1,25 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
- class ExternalStylesheet extends Base {
10
- constructor(link){
11
- super();
12
- this.link = link;
13
- }
14
-
15
- render(){
16
- let el = document.createElement("link");
17
- el.setAttribute("rel", "stylesheet");
18
- el.setAttribute("href", this.link);
19
- document.getElementsByTagName( "head" )[0].appendChild( el );
20
- return el;
21
- }
22
- }
23
-
24
-
25
- export { ExternalStylesheet };