nodality 1.0.217 → 1.0.219

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 (210) hide show
  1. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  2. package/dist/animator.esm.js.LICENSE.txt +1 -1
  3. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  4. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  5. package/dist/base.cjs.js +1 -1
  6. package/dist/base.cjs.js.LICENSE.txt +1 -1
  7. package/dist/base.esm.js +1 -1
  8. package/dist/base.esm.js.LICENSE.txt +1 -1
  9. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  10. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  11. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  12. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  13. package/dist/bundle.umd.js +1 -1
  14. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  15. package/dist/button.cjs.js.LICENSE.txt +1 -1
  16. package/dist/button.esm.js.LICENSE.txt +1 -1
  17. package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
  18. package/dist/card-getter.esm.js.LICENSE.txt +1 -1
  19. package/dist/center.cjs.js +1 -1
  20. package/dist/center.cjs.js.LICENSE.txt +1 -1
  21. package/dist/center.esm.js +1 -1
  22. package/dist/center.esm.js.LICENSE.txt +1 -1
  23. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  24. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  25. package/dist/code.cjs.js.LICENSE.txt +1 -1
  26. package/dist/code.esm.js.LICENSE.txt +1 -1
  27. package/dist/container.cjs.js.LICENSE.txt +1 -1
  28. package/dist/container.esm.js.LICENSE.txt +1 -1
  29. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  30. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  31. package/dist/designer.cjs.js +1 -1
  32. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  33. package/dist/designer.esm.js +1 -1
  34. package/dist/designer.esm.js.LICENSE.txt +1 -1
  35. package/dist/element-mapper.cjs.js +1 -1
  36. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  37. package/dist/element-mapper.esm.js +1 -1
  38. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  39. package/dist/finalresult.esm.js +1 -1
  40. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  41. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  42. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  43. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  44. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  45. package/dist/flex-row.cjs.js +1 -1
  46. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  47. package/dist/flex-row.esm.js +1 -1
  48. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  49. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  50. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  51. package/dist/free.cjs.js.LICENSE.txt +1 -1
  52. package/dist/free.esm.js.LICENSE.txt +1 -1
  53. package/dist/horizontal-scroller.cjs.js +1 -1
  54. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  55. package/dist/horizontal-scroller.esm.js +1 -1
  56. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  57. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  58. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  59. package/dist/image.cjs.js.LICENSE.txt +1 -1
  60. package/dist/image.esm.js.LICENSE.txt +1 -1
  61. package/dist/index.cjs.js +1 -1
  62. package/dist/index.cjs.js.LICENSE.txt +1 -1
  63. package/dist/index.esm.js +1 -1
  64. package/dist/index.esm.js.LICENSE.txt +1 -1
  65. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  66. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  67. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  68. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  69. package/dist/link.cjs.js.LICENSE.txt +1 -1
  70. package/dist/link.esm.js.LICENSE.txt +1 -1
  71. package/dist/meta-adder.cjs.js +1 -1
  72. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  73. package/dist/meta-adder.esm.js +1 -1
  74. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  75. package/dist/modal-2025.cjs.js +1 -1
  76. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  77. package/dist/modal-2025.esm.js +1 -1
  78. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  79. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  80. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  81. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  82. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  83. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  84. package/dist/picker.esm.js.LICENSE.txt +1 -1
  85. package/dist/progress.cjs.js +1 -1
  86. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  87. package/dist/progress.esm.js +1 -1
  88. package/dist/progress.esm.js.LICENSE.txt +1 -1
  89. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  90. package/dist/radio.esm.js.LICENSE.txt +1 -1
  91. package/dist/range.cjs.js.LICENSE.txt +1 -1
  92. package/dist/range.esm.js.LICENSE.txt +1 -1
  93. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  94. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  95. package/dist/side-bar.cjs.js +1 -1
  96. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  97. package/dist/side-bar.esm.js +1 -1
  98. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  99. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  100. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  101. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  102. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  103. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  104. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  105. package/dist/spacer.cjs.js +1 -1
  106. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  107. package/dist/spacer.esm.js +1 -1
  108. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  109. package/dist/stack.cjs.js +1 -1
  110. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  111. package/dist/stack.esm.js +1 -1
  112. package/dist/stack.esm.js.LICENSE.txt +1 -1
  113. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  114. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  115. package/dist/table.cjs.js.LICENSE.txt +1 -1
  116. package/dist/table.esm.js.LICENSE.txt +1 -1
  117. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  118. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  119. package/dist/text.cjs.js +1 -1
  120. package/dist/text.cjs.js.LICENSE.txt +1 -1
  121. package/dist/text.esm.js +1 -1
  122. package/dist/text.esm.js.LICENSE.txt +1 -1
  123. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  124. package/dist/theme.esm.js.LICENSE.txt +1 -1
  125. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  126. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  127. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  128. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  129. package/dist/video.cjs.js.LICENSE.txt +1 -1
  130. package/dist/video.esm.js.LICENSE.txt +1 -1
  131. package/dist/wrap.cjs.js +1 -1
  132. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  133. package/dist/wrap.esm.js +1 -1
  134. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  135. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  136. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  137. package/layout/animator.js +1 -80
  138. package/layout/audio.js +1 -95
  139. package/layout/audionew.js +1 -4
  140. package/layout/base.js +3 -46
  141. package/layout/beta-desktop-bar.js +1 -12
  142. package/layout/beta-mobile-bar.js +1 -41
  143. package/layout/button.js +1 -77
  144. package/layout/center.js +1 -41
  145. package/layout/checkbox.js +1 -5
  146. package/layout/circle.js +1 -1
  147. package/layout/code.js +1 -11
  148. package/layout/container.js +1 -95
  149. package/layout/dropdown-2025.js +1 -3
  150. package/layout/flex-card.js +1 -4
  151. package/layout/flex-grid.js +1 -19
  152. package/layout/flex-row.js +5 -227
  153. package/layout/form-components/custom.js +1 -1
  154. package/layout/form-components/data-list.js +1 -1
  155. package/layout/form-components/floating-input.js +1 -1
  156. package/layout/form-components/form-all.js +1 -1
  157. package/layout/form-components/form.js +1 -1
  158. package/layout/form-components/image-picker.js +1 -1
  159. package/layout/form-components/picker.js +1 -1
  160. package/layout/form-components/radio.js +1 -1
  161. package/layout/form-components/radiogroup.js +1 -1
  162. package/layout/form-components/range.js +1 -1
  163. package/layout/free.js +1 -40
  164. package/layout/grid-switcher.js +1 -14
  165. package/layout/grid.js +1 -11
  166. package/layout/horizontal-scroller.js +1 -7
  167. package/layout/image.js +1 -160
  168. package/layout/index.js +1 -1
  169. package/layout/link.js +1 -259
  170. package/layout/list.js +5 -13
  171. package/layout/meta-adder.js +1 -3
  172. package/layout/modal-2025.js +1 -44
  173. package/layout/multiswitcher.js +1 -55
  174. package/layout/nav-bar.js +4 -40
  175. package/layout/nav-factor/custom-div.js +1 -1
  176. package/layout/new-nav-bar.js +1 -91
  177. package/layout/polygon.js +1 -1
  178. package/layout/prerender-site.js +1 -2
  179. package/layout/prerender.js +1 -2
  180. package/layout/progress.js +1 -3
  181. package/layout/row.js +1 -15
  182. package/layout/scroll-video.js +1 -4
  183. package/layout/side-bar.js +1 -11
  184. package/layout/side-nav-bar.js +1 -66
  185. package/layout/simple-bar.js +1 -1
  186. package/layout/slider-2025.js +1 -2
  187. package/layout/spacer.js +1 -8
  188. package/layout/stack.js +1 -3
  189. package/layout/svg.js +1 -1
  190. package/layout/switcher.js +1 -6
  191. package/layout/table.js +1 -12
  192. package/layout/text-field.js +1 -3
  193. package/layout/text.js +1 -154
  194. package/layout/ulist.js +1 -13
  195. package/layout/video.js +1 -12
  196. package/layout/wrap.js +1 -50
  197. package/layout/zoom-card.js +1 -69
  198. package/lib/card-getter.js +1 -1
  199. package/lib/data.js +1 -1
  200. package/lib/designer.js +1 -1
  201. package/lib/element-mapper.js +1 -1
  202. package/lib/keyframe-animation.js +1 -1
  203. package/lib/link-getter.js +1 -1
  204. package/lib/raster-ops.js +1 -1
  205. package/lib/scroll-video.js +1 -1
  206. package/lib/seo.js +1 -1
  207. package/lib/stacker.js +1 -1
  208. package/lib/theme.js +1 -1
  209. package/lib/transform-anim.js +1 -1
  210. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -12,7 +12,6 @@ class /*Beta*/MobileBar extends Animator {
12
12
  super();
13
13
 
14
14
 
15
- // this.setStyles();
16
15
  }
17
16
 
18
17
 
@@ -36,13 +35,9 @@ class /*Beta*/MobileBar extends Animator {
36
35
  // I have to call toCode
37
36
  // 1st reomve brand key from obj
38
37
 
39
- //delete this.obj.brand;
40
- //this.obj.brand = this.obj.brand.toCode()[0];//.replace(/^"|"$/g, '');
41
38
  let repl = this.removeQuotesFromFirstWord(JSON.stringify(this.obj));
42
39
 
43
40
 
44
-
45
-
46
41
  // 23:38:35 Yes!!! 23/04/2025
47
42
  // Alway construct neste in this way
48
43
  let codeObj = `
@@ -68,10 +63,8 @@ radius: ${JSON.stringify(this.obj.radius)},
68
63
  //console.log(Object.getPrototypeOf(obj.brand));
69
64
  //console.log(obj.brand.render());
70
65
 
71
- // console.log(this.obj.brand);
72
66
  // console.log(obj.brand);
73
67
 
74
- // console.log(Object.getPrototypeOf(this.obj.brand));
75
68
 
76
69
 
77
70
 
@@ -80,22 +73,17 @@ radius: ${JSON.stringify(this.obj.radius)},
80
73
  // console.log(obj.brand.res); // RES SHOULD BE OK
81
74
  // console.log(obj.brand.res); // RES SHOULD BE OK
82
75
 
83
- // let t = new Text("A").set({size: "S1"});
84
76
  // console.log(t);
85
77
 
86
78
  this.obj = obj;
87
79
  this.makeNavbar(obj);
88
- // obj.background && (this.res.style.backgroundColor = obj.background);
89
- // obj.brand && this.setBrand(obj.brand);
90
80
 
91
81
 
92
82
  // Has to be the same
93
- // obj.background && //(this.res.style.backgroundColor = obj.background);
94
83
  obj.mar && super.mar(obj.mar);
95
84
 
96
85
  // console.log("BOOA");
97
86
  // console.log(obj.brand);
98
- // obj.brand && this.setBrand(obj.brand);
99
87
  // THANK YOU 215756!!!
100
88
  obj.maxHeight && (this.res.style.maxHeight = obj.maxHeight);
101
89
 
@@ -120,7 +108,6 @@ radius: ${JSON.stringify(this.obj.radius)},
120
108
  // console.log(obj.brand);
121
109
 
122
110
  const newTextInstance = obj.brand;
123
- // const newTextInstance = new Text(data.text).set({color: "orange"});
124
111
  // newTextInstance.res.color = "green";
125
112
  /*
126
113
  // Restore state and other properties
@@ -141,9 +128,7 @@ console.log(newTextInstance.render());*/
141
128
 
142
129
 
143
130
 
144
- // if (obj.brand && obj.brand instanceof Node) {
145
131
  // console.log("APPENDING")
146
- // let branda = document.createElement("h1");
147
132
  // branda.textContent = "h";
148
133
  //console.log(obj.brand);
149
134
  // console.log(obj.brand.res);
@@ -153,16 +138,9 @@ console.log(newTextInstance.render());*/
153
138
  // typeof obj.brand.res;
154
139
  // console.log(obj.brand.render());
155
140
 
156
- //if (obj.brand.render){
157
141
 
158
- // this.brand.appendChild(obj.brand.res);
159
142
  // console.log(obj.brand.render());
160
- //this.brand.style.border = "3px solid orange";
161
- //this.brand.style.width = "100px";
162
- //this.brand.style.height = "100px";
163
- // let t = new Text("A").set({size: "S3"});
164
143
  //console.log(obj.brand.res);
165
- // this.brand.appendChild(obj.brand.res);
166
144
  //}
167
145
 
168
146
  if (obj.brand && typeof newTextInstance.render === "function") {
@@ -202,7 +180,6 @@ if (obj.brand && typeof newTextInstance.render === "function") {
202
180
  this.navbar.style.flexDirection = 'column';
203
181
  this.navbar.style.padding = '1rem';
204
182
  this.navbar.style.backgroundColor = obj.background ?? 'orange';
205
- // this.navbar.style.color = 'white';
206
183
 
207
184
  this.navbarHeader.style.display = 'flex';
208
185
  this.navbarHeader.style.alignItems = 'center';
@@ -222,21 +199,6 @@ if (obj.brand && typeof newTextInstance.render === "function") {
222
199
 
223
200
  }
224
201
 
225
- /* setBrand(brandElement) {
226
-
227
- if (brandElement instanceof Node) {
228
- this.brand.innerHTML = '';
229
-
230
- this.navContent.appendChild(brandElement);
231
- // this.brand.appendChild(brandElement);
232
- }
233
-
234
- }*/
235
-
236
- /* addNavItem(navItemElement) {
237
- this.navContent.appendChild(navItemElement);
238
- return this;
239
- }*/
240
202
 
241
203
  add(ele){
242
204
  this.items = ele;
@@ -256,7 +218,6 @@ if (obj.brand && typeof newTextInstance.render === "function") {
256
218
  if (this.isMobileNavOpen) {
257
219
  this.navContent.style.flexDirection = 'column';
258
220
  this.navContent.style.gap = '0.5rem';
259
- // this.navContent.style.backgroundColor = '#444';
260
221
  this.navContent.style.padding = '1rem';
261
222
  } else {
262
223
  this.navContent.style.flexDirection = '';
@@ -271,7 +232,6 @@ if (obj.brand && typeof newTextInstance.render === "function") {
271
232
  document.querySelector(container).appendChild(this.navbar);
272
233
  }
273
234
  return this.navbar;
274
- // container.appendChild(this.navbar);
275
235
  }
276
236
  }
277
237
 
package/layout/button.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -21,32 +21,6 @@ class Button extends Animator {
21
21
 
22
22
 
23
23
 
24
- /*
25
- hover(obj){
26
- this.prevColor = this.res.style.backgroundColor;
27
- this.foreColor = this.res.style.color;
28
-
29
- if (obj.animation){
30
-
31
- this.res.style.transition = `${obj.animation}s ease-in-out`; // stop resize ???
32
- this.res.style.transionProperty = `background, color`;
33
- // this.transition(obj.animation);
34
- }
35
-
36
-
37
- this.res.onmouseout = () => {
38
- this.res.style.backgroundColor = `${this.prevColor}`;
39
- this.res.style.color = `${this.foreColor}`;
40
- }
41
-
42
- this.res.onmouseover = () => {
43
- this.res.style.backgroundColor = obj.background;
44
- this.res.style.color = obj.color;
45
- }
46
-
47
- return this;
48
- }
49
- */
50
24
 
51
25
 
52
26
  set(obj){
@@ -88,18 +62,6 @@ this.options = obj;
88
62
 
89
63
  this.commonMethods(obj);
90
64
 
91
- // obj.hover && this.hover(obj.hover);
92
-
93
- /* if (obj.url && !obj.img){
94
- //let node = document.createElement("img");
95
- //node.setAttribute("src", obj.url);
96
- //node.style.width = 50;//obj.frame.width; // order?
97
- //node.style.height = 50;//obj.frame.height;
98
- //btn.appendChild(node);
99
- } else {
100
- let node = document.createTextNode(this.text.replace("$", this.val));
101
- btn.appendChild(node);
102
- }*/
103
65
 
104
66
 
105
67
 
@@ -143,12 +105,9 @@ this.options = obj;
143
105
  obj.resmar && this.resmar(obj.resmar);
144
106
 
145
107
 
146
-
147
- //this.pad([{"b": "3rem"}]); // add)
148
108
 
149
109
 
150
110
  if (obj.centered){
151
- // alert(this.res.width / 2);
152
111
  this.res.style.marginRight = "auto";
153
112
  this.res.style.marginLeft = "auto"; //`${this.res.style.width / 2}px`;
154
113
 
@@ -190,7 +149,6 @@ this.options = obj;
190
149
  obj.frame && (stra += `\n frame: "${obj.frame}",`);
191
150
 
192
151
 
193
-
194
152
  obj.keySet && this.keySet(obj.keySet); // 165411 22/01/25 Nice!
195
153
 
196
154
 
@@ -291,7 +249,6 @@ this.options = obj;
291
249
  }
292
250
 
293
251
 
294
-
295
252
  const display6 = "calc(1rem + 0.5vw)"; // calc(1rem + 1.2vw)
296
253
 
297
254
  if (name === "S6"){
@@ -325,7 +282,6 @@ this.options = obj;
325
282
 
326
283
  borderRadius(radius){
327
284
  this.res.style.borderRadius = radius;
328
- // console.warn(this.res);
329
285
  return this;
330
286
  }
331
287
 
@@ -404,9 +360,7 @@ this.options = obj;
404
360
 
405
361
  toCode() {
406
362
  //console.log("OPTIONS ARE");
407
- //console.log(this.options);
408
363
 
409
- // const objString = JSON.stringify(this.options, null, 4);
410
364
 
411
365
  const objString = JSON.stringify(this.options, (key, value) => {
412
366
  if (typeof value === "function") {
@@ -426,36 +380,6 @@ this.options = obj;
426
380
  // 22/01/25 09:10:50 thanks for amazing RegEx ChatGPT!
427
381
  }
428
382
 
429
- /* toCoder() {
430
- // Initialize the code string with the constructor
431
- let code = `new Button("${this.text}", ${this.val})`;
432
-
433
- // Collect the styles applied to the button
434
- const style = this.res.style;
435
- const setArgs = {};
436
- if (style.background) setArgs.background = style.background;
437
- if (style.color) setArgs.color = style.color;
438
- if (style.padding) setArgs.padding = style.padding;
439
- if (style.margin) setArgs.margin = style.margin;
440
- if (style.border) setArgs.border = style.border;
441
- if (style.borderRadius) setArgs.radius = style.borderRadius;
442
- if (style.fontWeight) setArgs.weight = style.fontWeight;
443
-
444
- // Add `set` call if any style properties exist
445
- if (Object.keys(setArgs).length > 0) {
446
- code += `.set(${JSON.stringify(setArgs)})`;
447
- }
448
-
449
- // Add event listeners if they exist
450
- if (this.res.onclick) {
451
- code += `.onTap(${this.res.onclick.toString()})`;
452
- }
453
-
454
- // Add rendering call
455
- //code += `.render()`;
456
-
457
- return [code];
458
- }*/
459
383
 
460
384
  render(el){
461
385
  if (el){
package/layout/center.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -39,14 +39,6 @@ if (obj.id){
39
39
  // common methods should be defined in animator
40
40
  // I can use pad in center, because animator class handles it
41
41
 
42
- /*obj.pad && this.pad(obj.pad);
43
- obj.respad && this.respad(obj.respad);
44
- obj.resmar && this.resmar(obj.resmar);
45
- obj.mar && this.mar(obj.mar);
46
- obj.exact && (this.res.style.fontSize = obj.exact);
47
- obj.zIndex && (this.res.style.zIndex = obj.zIndex);
48
- obj.position && (this.res.style.position = position);
49
- obj.top && (this.res.style.top = top);*/
50
42
 
51
43
  return this;
52
44
  }
@@ -79,38 +71,6 @@ return this;
79
71
 
80
72
 
81
73
 
82
-
83
- itemWidth(w){
84
- for (var i = 0; i < this.res.childNodes.length; i++){
85
- let el = this.res.childNodes[i];
86
- el.style.width = w;
87
- }
88
-
89
- return this;
90
- }
91
-
92
-
93
-
94
- /*arrayPadding(arr, value) {
95
- if (arr.includes("left")){
96
- this.res.style.paddingLeft = value;
97
- }
98
-
99
- if (arr.includes("right")){
100
- this.res.style.paddingRight = value;
101
- }
102
-
103
- if (arr.includes("top")){
104
- this.res.style.paddingTop = value;
105
- }
106
-
107
- if (arr.includes("bottom")){
108
- this.res.style.paddingBottom = value;
109
- }
110
-
111
-
112
- return this;
113
- }*/
114
74
 
115
75
  render(el) {
116
76
  if (el) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -19,7 +19,6 @@ class Checkbox extends Animator {
19
19
 
20
20
  // Set default clipPath if not provided
21
21
  //this.options.clipPath =
22
- // this.options.clipPath; //|| "polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)";
23
22
 
24
23
  // Create the container div
25
24
  const div = document.createElement("div");
@@ -144,9 +143,6 @@ obj.resmar && this.resmar(obj.resmar);
144
143
  }
145
144
 
146
145
  toCode() {
147
- /* let objString = JSON.stringify(this.options, null, 4);
148
- objString = objString.replace(/"(\w+)"(?=\s*:)/g, '$1');
149
- return [`new Checkbox().set(${objString})`];*/
150
146
 
151
147
  const entries = Object.entries(this.options)
152
148
  .map(([key, value]) => {
package/layout/circle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/code.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -7,7 +7,6 @@
7
7
  import {Animator} from "./animator.js";
8
8
 
9
9
 
10
-
11
10
  class Code extends Animator {
12
11
  constructor(){
13
12
  super();
@@ -17,11 +16,9 @@ class Code extends Animator {
17
16
  this.res.style.display = "block";
18
17
  this.res.style.width = "auto";
19
18
  this.res.style.height = "auto";
20
- // this.res.style.color = "white";
21
19
  this.res.style.borderRadius = "1rem";
22
20
 
23
21
  this.pre.appendChild(this.res);
24
- // this.res.style.marginTop = "20rem";
25
22
 
26
23
  }
27
24
 
@@ -111,9 +108,6 @@ class Code extends Animator {
111
108
  keep.push("span");
112
109
  }
113
110
 
114
- /* if (obj.transform){
115
- keep.push("transform");
116
- }*/
117
111
 
118
112
  // console.log("ARA IS " + arr);
119
113
 
@@ -122,7 +116,6 @@ class Code extends Animator {
122
116
  }
123
117
 
124
118
 
125
-
126
119
  set(obj){
127
120
  obj.code && (this.pre.children[0].innerHTML = obj.code);
128
121
  obj.class && this.pre.children[0].setAttribute("class", `${obj.class}`);
@@ -141,10 +134,7 @@ class Code extends Animator {
141
134
  this.res.style.border = `${obj.borderObj.width} solid ${obj.borderObj.color}`;
142
135
  this.res.style.borderRadius = `${obj.borderObj.radius}`;
143
136
 
144
- //this.res.style.border = `3px solid transparent`;
145
- //this.res.style.border = "10px solid yellow";
146
137
 
147
- //let rem = this.removeQuotesFromFirstWord(JSON.stringify(obj.borderObj));
148
138
  //stra += `\n borderObj: ${rem},`;
149
139
  }
150
140
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -19,8 +19,6 @@ class Wrapper extends Animator { // 12:10:02 found grep 06/03
19
19
  }
20
20
 
21
21
 
22
-
23
-
24
22
 
25
23
  toCode(indent = 0){
26
24
  this.code = [];
@@ -70,16 +68,12 @@ code = `${pad}new Wrapper()`;
70
68
  }
71
69
 
72
70
 
73
-
74
-
75
-
76
71
  onTap(handler){
77
72
  this.res.addEventListener("click", handler);
78
73
  return this;
79
74
  }
80
75
 
81
76
 
82
-
83
77
  set(obj){
84
78
  this.obj = obj;
85
79
 
@@ -98,67 +92,13 @@ code = `${pad}new Wrapper()`;
98
92
  obj.position && (this.res.style.position = obj.position);
99
93
  obj.top !== undefined && (this.res.style.top = obj.top);
100
94
  // ------
101
- //obj.mc && (this.res.style.height = "minmax(400px, 1fr)");
102
- //obj.mc && (this.res.style.height = "fit-content");
103
- //obj.mc && (this.res.style.height = "max-content");
104
- //obj.mc && (this.res.style.minHeight = "400px");
105
95
  obj.pad && this.pad(obj.pad);
106
96
  obj.mar && this.mar(obj.mar);
107
- // obj.mar && (stra += `mar: {sides: [${obj.mar.sides.map(x => `"${x}"`).join(", ")}], value: "${obj.arrpad.value}"}, `);
108
97
 
109
98
  //@ gpos: Grid placement — {col, row}, written to grid-column and grid-row.
110
99
  obj.gpos && this.gpos(obj.gpos);
111
100
 
112
101
 
113
- //const obj = options;
114
- /* if (obj && obj.id && obj.stroke || obj && obj.id && obj.gradient || obj && obj.id && obj.span || obj && obj.id && obj.layout ){
115
-
116
-
117
- // use obj.range and obj.op
118
-
119
-
120
-
121
- let first = obj.gradient;
122
-
123
- if (obj.gradient){
124
-
125
-
126
-
127
- this.globalGradient = obj.gradient.op.gradient;
128
- // console.log(obj.gradient);
129
- }
130
-
131
-
132
- if (obj.stroke){
133
- super.setAny({globalBlast: `${obj.stroke.op.width} ${obj.stroke.op.color}`});
134
- }
135
-
136
- // Filter just the elements with layout element
137
- let ft = [obj.stroke, obj.gradient, obj.animation, obj.span, obj.layout]//obj.gradient.filter(el => el.op.name !== "layout");
138
- // console.log(ft);
139
-
140
- ft = ft.filter(el => el != undefined);
141
-
142
-
143
-
144
-
145
- let arr = [];
146
-
147
- for (var i = 0; i < ft.length; i++){
148
- // console.log("Hello");
149
- arr.push({
150
- range: ft[i].range,
151
- log: ft[i].op.name,
152
- target: ft[i].target
153
- });
154
- }
155
-
156
- this.res.setAttribute("id", obj.id);
157
- // this.betaReact(arr, obj.id);
158
- }*/
159
-
160
-
161
-
162
102
  let arr = [];
163
103
 
164
104
  // Plain CSS string transforms are handled by commonMethods. Only
@@ -227,7 +167,6 @@ code = `${pad}new Wrapper()`;
227
167
  }
228
168
 
229
169
  if (obj.blast){
230
- //keep.push("blast");
231
170
  }
232
171
 
233
172
  // console.log("ARA IS " + arr);
@@ -275,7 +214,6 @@ code = `${pad}new Wrapper()`;
275
214
  // obj.arrpad && (stra += `arrpad: {sides: ["${obj.arrpad.sides}"], value: "${obj.arrpad.value}"}, `); // 2345 06/03
276
215
 
277
216
  // COMMENTED OUT 08/01/2025
278
- // obj.grow && (this.res.style.flexGrow = 1);
279
217
 
280
218
 
281
219
  obj.simpleCenter && this.deprecatedOption("simpleCenter", 'center: true');
@@ -375,7 +313,6 @@ code = `${pad}new Wrapper()`;
375
313
  // String transforms are handled by commonMethods. Only object-shaped
376
314
  // transform descriptors (with .op / .transform) go to the animation system.
377
315
  (obj.transform && typeof obj.transform === "object") && this.reactOnTransform(obj.transform);
378
- // obj.makeResponsiveBehaviour && obj.makeResponsiveBehaviour !== "undefined" && this.makeResponsiveBehaviour(obj.makeResponsiveBehaviour);
379
316
  obj.name && (this.name = obj.name)
380
317
  obj.responsive && this.rsp(obj.responsive);
381
318
 
@@ -390,8 +327,6 @@ code = `${pad}new Wrapper()`;
390
327
  }
391
328
 
392
329
 
393
-
394
-
395
330
  for (let prop in obj) {
396
331
  if (prop === 'margin') {
397
332
  let paddingValues = obj[prop];
@@ -418,7 +353,6 @@ code = `${pad}new Wrapper()`;
418
353
  }
419
354
 
420
355
 
421
-
422
356
  }
423
357
  }
424
358
  }
@@ -458,13 +392,11 @@ code = `${pad}new Wrapper()`;
458
392
 
459
393
  if (split[i] === "row"){
460
394
  this.res.style.flexDirection = "row";
461
- ///this.res.style.alignItems = "flex-end";
462
395
  this.res.style.border = "3px solid green";
463
396
  }
464
397
 
465
398
  if (split[i] === "col"){
466
399
  this.res.style.flexDirection = "column";
467
- // this.res.style.justifyContent = "flex-start";
468
400
  this.res.style.border = "3px solid purple";
469
401
  }
470
402
 
@@ -475,13 +407,11 @@ code = `${pad}new Wrapper()`;
475
407
 
476
408
  if (split[i] === "row"){
477
409
  this.res.style.flexDirection = "row";
478
- ///this.res.style.alignItems = "flex-end";
479
410
  this.res.style.border = "3px solid green";
480
411
  }
481
412
 
482
413
  if (split[i] === "col"){
483
414
  this.res.style.flexDirection = "column";
484
- // this.res.style.justifyContent = "flex-start";
485
415
  this.res.style.border = "3px solid purple";
486
416
  }
487
417
  }
@@ -543,10 +473,6 @@ code = `${pad}new Wrapper()`;
543
473
  }
544
474
 
545
475
 
546
-
547
-
548
-
549
-
550
476
 
551
477
 
552
478
  color(cl){
@@ -560,7 +486,6 @@ code = `${pad}new Wrapper()`;
560
486
  }
561
487
 
562
488
 
563
-
564
489
  font(font){
565
490
  this.res.style.fontFamily = font;
566
491
  return this;
@@ -603,7 +528,6 @@ code = `${pad}new Wrapper()`;
603
528
  }
604
529
 
605
530
 
606
-
607
531
 
608
532
  add(els){
609
533
  this.items = els;
@@ -634,9 +558,6 @@ code = `${pad}new Wrapper()`;
634
558
 
635
559
 
636
560
 
637
-
638
-
639
-
640
561
 
641
562
 
642
563
  setWidth(w){
@@ -687,7 +608,6 @@ code = `${pad}new Wrapper()`;
687
608
  container = document.createElement("div");
688
609
  }
689
610
 
690
- // let container = options ? document.createElement(options.isLink ? "a" : "div") :document.createElement("div") ;
691
611
 
692
612
 
693
613
 
@@ -742,7 +662,6 @@ code = `${pad}new Wrapper()`;
742
662
  }
743
663
 
744
664
 
745
- // 22:39:02 15/03/2024 window.addEveventListener("resize", () => {}, "immediatelly");
746
665
 
747
666
 
748
667
  height(h){
@@ -796,7 +715,6 @@ code = `${pad}new Wrapper()`;
796
715
  }
797
716
 
798
717
 
799
-
800
718
 
801
719
  apply(arr) {
802
720
  const goThroughStyles = () => {
@@ -814,9 +732,7 @@ apply(arr) {
814
732
 
815
733
  if (query.matches) {
816
734
  Object.assign(this.res.style, el.styles);
817
- // alert(el.style.styles.color);
818
735
  } else {
819
- //Object.assign(this.res.style, arr[0].styles);
820
736
  }
821
737
  }
822
738
  }
@@ -855,14 +771,4 @@ apply(arr) {
855
771
  }
856
772
 
857
773
 
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
774
  export { Wrapper };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.217
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -172,7 +172,6 @@ class Dropdown extends Animator {
172
172
 
173
173
  obj.respad && this.respad(obj.respad);
174
174
  obj.resmar && this.resmar(obj.resmar);
175
- // this.commonMethods(obj); not yet
176
175
 
177
176
  // Position is always fixed (appended to body), no breakpoint adjustment needed
178
177
 
@@ -203,7 +202,6 @@ if (i !== 0){
203
202
  const firstChild = children[0];
204
203
  if (firstChild && firstChild.res) {
205
204
  this.toggleWrap.appendChild(firstChild.res);
206
- // this.toggleWrap.textContent = firstChild.res.textContent || "Dropdown";
207
205
  }
208
206
  }
209
207