nodality 1.0.219 → 1.0.221
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.
- package/dist/animator.cjs.js +1 -1
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +1 -1
- package/dist/audionew.esm.js +1 -1
- package/dist/audionew.esm.js.LICENSE.txt +1 -1
- package/dist/base.cjs.js +1 -1
- package/dist/base.cjs.js.LICENSE.txt +1 -1
- package/dist/base.esm.js +1 -1
- package/dist/base.esm.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.cjs.js +1 -1
- package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.esm.js +1 -1
- package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.LICENSE.txt +1 -1
- package/dist/button.cjs.js +1 -1
- package/dist/button.cjs.js.LICENSE.txt +1 -1
- package/dist/button.esm.js +1 -1
- package/dist/button.esm.js.LICENSE.txt +1 -1
- package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/card-getter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js +1 -1
- package/dist/center.cjs.js.LICENSE.txt +1 -1
- package/dist/center.esm.js +1 -1
- package/dist/center.esm.js.LICENSE.txt +1 -1
- package/dist/checkbox.cjs.js +1 -1
- package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js +1 -1
- package/dist/container.cjs.js.LICENSE.txt +1 -1
- package/dist/container.esm.js +1 -1
- package/dist/container.esm.js.LICENSE.txt +1 -1
- package/dist/data-list.cjs.js.LICENSE.txt +1 -1
- package/dist/data-list.esm.js.LICENSE.txt +1 -1
- package/dist/designer.cjs.js +1 -1
- package/dist/designer.cjs.js.LICENSE.txt +1 -1
- package/dist/designer.esm.js +1 -1
- package/dist/designer.esm.js.LICENSE.txt +1 -1
- package/dist/element-mapper.cjs.js +1 -1
- package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
- package/dist/element-mapper.esm.js +1 -1
- package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +1 -1
- package/dist/flex-card.cjs.js +1 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-grid.esm.js +1 -1
- package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
- package/dist/flex-row.cjs.js +1 -1
- package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-row.esm.js +1 -1
- package/dist/flex-row.esm.js.LICENSE.txt +1 -1
- package/dist/floating-input.cjs.js +1 -1
- package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js +1 -1
- package/dist/floating-input.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js +1 -1
- package/dist/free.cjs.js.LICENSE.txt +1 -1
- package/dist/free.esm.js +1 -1
- package/dist/free.esm.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
- package/dist/image-picker.cjs.js +1 -1
- package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js +1 -1
- package/dist/image-picker.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js +1 -1
- package/dist/image.cjs.js.LICENSE.txt +1 -1
- package/dist/image.esm.js +1 -1
- package/dist/image.esm.js.LICENSE.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.LICENSE.txt +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
- package/dist/link-getter.cjs.js +1 -1
- package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js +1 -1
- package/dist/link-getter.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js +1 -1
- package/dist/link.cjs.js.LICENSE.txt +1 -1
- package/dist/link.esm.js +1 -1
- package/dist/link.esm.js.LICENSE.txt +1 -1
- package/dist/meta-adder.cjs.js +1 -1
- package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal-2025.esm.js +1 -1
- package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.cjs.js +1 -1
- package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js +1 -1
- package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +1 -1
- package/dist/picker.esm.js +1 -1
- package/dist/picker.esm.js.LICENSE.txt +1 -1
- package/dist/progress.cjs.js +1 -1
- package/dist/progress.cjs.js.LICENSE.txt +1 -1
- package/dist/progress.esm.js +1 -1
- package/dist/progress.esm.js.LICENSE.txt +1 -1
- package/dist/radio.cjs.js.LICENSE.txt +1 -1
- package/dist/radio.esm.js.LICENSE.txt +1 -1
- package/dist/range.cjs.js.LICENSE.txt +1 -1
- package/dist/range.esm.js.LICENSE.txt +1 -1
- package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
- package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
- package/dist/side-bar.cjs.js +1 -1
- package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-bar.esm.js +1 -1
- package/dist/side-bar.esm.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.cjs.js +1 -1
- package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/slider-2025.esm.js +1 -1
- package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
- package/dist/spacer.cjs.js +1 -1
- package/dist/spacer.cjs.js.LICENSE.txt +1 -1
- package/dist/spacer.esm.js +1 -1
- package/dist/spacer.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +1 -1
- package/dist/stack.esm.js +1 -1
- package/dist/stack.esm.js.LICENSE.txt +1 -1
- package/dist/stacker.cjs.js.LICENSE.txt +1 -1
- package/dist/stacker.esm.js.LICENSE.txt +1 -1
- package/dist/table.cjs.js +1 -1
- package/dist/table.cjs.js.LICENSE.txt +1 -1
- package/dist/table.esm.js +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text-field.cjs.js +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +1 -1
- package/dist/text-field.esm.js +1 -1
- package/dist/text-field.esm.js.LICENSE.txt +1 -1
- package/dist/text.cjs.js +1 -1
- package/dist/text.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/theme.cjs.js.LICENSE.txt +1 -1
- package/dist/theme.esm.js.LICENSE.txt +1 -1
- package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
- package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
- package/dist/ulist.cjs.js +1 -1
- package/dist/ulist.cjs.js.LICENSE.txt +1 -1
- package/dist/ulist.esm.js +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js +1 -1
- package/dist/video.cjs.js.LICENSE.txt +1 -1
- package/dist/video.esm.js +1 -1
- package/dist/video.esm.js.LICENSE.txt +1 -1
- package/dist/wrap.cjs.js +1 -1
- package/dist/wrap.cjs.js.LICENSE.txt +1 -1
- package/dist/wrap.esm.js +1 -1
- package/dist/wrap.esm.js.LICENSE.txt +1 -1
- package/dist/zoom-card.cjs.js +1 -1
- package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +71 -1
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base.js +8 -3
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +1 -3
- package/layout/button.js +7 -21
- package/layout/center.js +1 -1
- package/layout/checkbox.js +6 -6
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -1
- package/layout/container.js +4 -18
- package/layout/dropdown-2025.js +1 -1
- package/layout/flex-card.js +7 -49
- package/layout/flex-grid.js +4 -10
- package/layout/flex-row.js +5 -17
- package/layout/form-components/custom.js +1 -1
- package/layout/form-components/data-list.js +1 -1
- package/layout/form-components/floating-input.js +1 -1
- package/layout/form-components/form-all.js +1 -1
- package/layout/form-components/form.js +1 -1
- package/layout/form-components/image-picker.js +1 -1
- package/layout/form-components/picker.js +1 -1
- package/layout/form-components/radio.js +1 -1
- package/layout/form-components/radiogroup.js +1 -1
- package/layout/form-components/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-switcher.js +16 -7
- package/layout/grid.js +7 -2
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +3 -58
- package/layout/index.js +1 -1
- package/layout/link.js +7 -42
- package/layout/list.js +12 -3
- package/layout/meta-adder.js +8 -3
- package/layout/modal-2025.js +7 -2
- package/layout/multiswitcher.js +1 -1
- package/layout/nav-bar.js +49 -44
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -1
- package/layout/polygon.js +1 -1
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +7 -2
- package/layout/row.js +7 -2
- package/layout/scroll-video.js +7 -2
- package/layout/side-bar.js +15 -10
- package/layout/side-nav-bar.js +1 -1
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -1
- package/layout/spacer.js +7 -2
- package/layout/stack.js +7 -2
- package/layout/svg.js +1 -1
- package/layout/switcher.js +7 -2
- package/layout/table.js +1 -1
- package/layout/text-field.js +8 -26
- package/layout/text.js +1 -18
- package/layout/ulist.js +1 -1
- package/layout/video.js +1 -1
- package/layout/wrap.js +7 -2
- package/layout/zoom-card.js +1 -1
- package/lib/card-getter.js +1 -1
- package/lib/data.js +1 -1
- package/lib/designer.js +1 -1
- package/lib/element-mapper.js +1 -1
- package/lib/keyframe-animation.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/raster-ops.js +1 -1
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +1 -1
- package/lib/stacker.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/package.json +1 -1
package/layout/animator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -957,6 +957,76 @@ resmar(arr) {
|
|
|
957
957
|
* ordinary paths and blocked the page for every visitor, and the ban is
|
|
958
958
|
* worth more than making this one warning louder.
|
|
959
959
|
*/
|
|
960
|
+
color(color){
|
|
961
|
+
this.res.style.color = color;
|
|
962
|
+
return this;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
onTap(handler){
|
|
966
|
+
this.res.addEventListener("click", handler);
|
|
967
|
+
return this;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
setArea(area){
|
|
971
|
+
this.res.style.gridArea = area;
|
|
972
|
+
return this;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
font(font){
|
|
977
|
+
this.res.style.fontFamily = font;
|
|
978
|
+
return this;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
radius(v) {
|
|
982
|
+
this.res.style.borderRadius = typeof v === "number" ? `${v}px` : v;
|
|
983
|
+
return this;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
width(percentage){
|
|
987
|
+
this.res.style.width = percentage;
|
|
988
|
+
return this;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
scale(obj){
|
|
992
|
+
|
|
993
|
+
let previousWidth = this.res.style.width;
|
|
994
|
+
|
|
995
|
+
this.res.style.transition= "0.5s all";
|
|
996
|
+
// alert(previousWidth);
|
|
997
|
+
|
|
998
|
+
this.res.addEventListener("mouseover", () => {
|
|
999
|
+
let previousWidth = this.res.style.width;
|
|
1000
|
+
this.res.style.transform = "scale(1.04)";
|
|
1001
|
+
});
|
|
1002
|
+
|
|
1003
|
+
this.res.addEventListener("mouseout", () => {
|
|
1004
|
+
let previousWidth = this.res.style.width;
|
|
1005
|
+
this.res.style.transform = "scale(1.0)";
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
return this;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
round(v) {
|
|
1013
|
+
this.deprecatedOption("round()", "radius()");
|
|
1014
|
+
return this.radius(v);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
toCSS(){
|
|
1018
|
+
return this.css;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
toHTMLA(){
|
|
1022
|
+
return this.html;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
background(color){
|
|
1026
|
+
this.res.style.background = color;
|
|
1027
|
+
return this;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
960
1030
|
deprecatedOption(name, replacement) {
|
|
961
1031
|
console.error(`nodality: \`${name}\` is deprecated — use \`${replacement}\` instead.`);
|
|
962
1032
|
return this;
|
package/layout/audio.js
CHANGED
package/layout/audionew.js
CHANGED
package/layout/base.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import {Animator} from "./animator.js";
|
|
8
|
+
class Base extends Animator{
|
|
8
9
|
constructor(/*items*/){
|
|
10
|
+
super();
|
|
11
|
+
// Converted from a standalone class; opting out of Theme keeps rendering
|
|
12
|
+
// byte-identical to the pre-conversion behaviour.
|
|
13
|
+
this._noTheme = true;
|
|
9
14
|
//Base.prototype.items = items;
|
|
10
15
|
this.oldLength = 0;
|
|
11
16
|
}
|
|
@@ -101,7 +106,7 @@ class Base {
|
|
|
101
106
|
|
|
102
107
|
|
|
103
108
|
mount(el){
|
|
104
|
-
this.
|
|
109
|
+
this.res = el;
|
|
105
110
|
this.render(el).render(el); // // this.render === function inside component
|
|
106
111
|
}
|
|
107
112
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
|
-
import {Text} from "./text.js";
|
|
9
|
-
|
|
10
8
|
class /*Beta*/MobileBar extends Animator {
|
|
11
9
|
constructor() {
|
|
12
10
|
super();
|
package/layout/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -263,21 +263,10 @@ this.options = obj;
|
|
|
263
263
|
this.res.setAttribute("class", classa);
|
|
264
264
|
return this;
|
|
265
265
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
background(color){
|
|
273
|
-
this.res.style.background = color;
|
|
274
|
-
return this;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
width(percentage){
|
|
278
|
-
this.res.style.width = percentage;
|
|
279
|
-
return this;
|
|
280
|
-
}
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
281
270
|
|
|
282
271
|
|
|
283
272
|
borderRadius(radius){
|
|
@@ -352,11 +341,8 @@ this.options = obj;
|
|
|
352
341
|
|
|
353
342
|
return this;
|
|
354
343
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
this.res.addEventListener("click", e);
|
|
358
|
-
return this;
|
|
359
|
-
}
|
|
344
|
+
|
|
345
|
+
|
|
360
346
|
|
|
361
347
|
toCode() {
|
|
362
348
|
//console.log("OPTIONS ARE");
|
package/layout/center.js
CHANGED
package/layout/checkbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9,7 +9,7 @@ import { Animator } from "./animator.js";
|
|
|
9
9
|
class Checkbox extends Animator {
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
|
-
this.
|
|
12
|
+
this.res = null;
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
}
|
|
@@ -134,12 +134,12 @@ obj.resmar && this.resmar(obj.resmar);
|
|
|
134
134
|
|
|
135
135
|
div.appendChild(labelDiv);
|
|
136
136
|
|
|
137
|
-
this.
|
|
137
|
+
this.res = div;
|
|
138
138
|
return this;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
getValue() {
|
|
142
|
-
return this.
|
|
142
|
+
return this.res.children[0].checked;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
toCode() {
|
|
@@ -169,9 +169,9 @@ obj.resmar && this.resmar(obj.resmar);
|
|
|
169
169
|
|
|
170
170
|
render(div) {
|
|
171
171
|
if (div) {
|
|
172
|
-
document.querySelector(div).appendChild(this.
|
|
172
|
+
document.querySelector(div).appendChild(this.res);
|
|
173
173
|
} else {
|
|
174
|
-
return this.
|
|
174
|
+
return this.res;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
package/layout/circle.js
CHANGED
package/layout/code.js
CHANGED
package/layout/container.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -61,17 +61,10 @@ code = `${pad}new Wrapper()`;
|
|
|
61
61
|
getType(){
|
|
62
62
|
return "LayoutWrapperElement"; // 224647
|
|
63
63
|
}
|
|
64
|
-
// 220543§§§§§§§§§§§§§§§§§§§§¨ú
|
|
65
|
-
setArea(area){
|
|
66
|
-
this.res.style.gridArea = area;
|
|
67
|
-
return this;
|
|
68
|
-
}
|
|
69
64
|
|
|
70
65
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return this;
|
|
74
|
-
}
|
|
66
|
+
|
|
67
|
+
|
|
75
68
|
|
|
76
69
|
|
|
77
70
|
set(obj){
|
|
@@ -486,10 +479,6 @@ code = `${pad}new Wrapper()`;
|
|
|
486
479
|
}
|
|
487
480
|
|
|
488
481
|
|
|
489
|
-
font(font){
|
|
490
|
-
this.res.style.fontFamily = font;
|
|
491
|
-
return this;
|
|
492
|
-
}
|
|
493
482
|
|
|
494
483
|
flexAlign(perc){
|
|
495
484
|
this.res.style.display = "flex";
|
|
@@ -508,10 +497,7 @@ code = `${pad}new Wrapper()`;
|
|
|
508
497
|
return this;
|
|
509
498
|
}
|
|
510
499
|
|
|
511
|
-
|
|
512
|
-
this.res.style.width = perc;
|
|
513
|
-
return this;
|
|
514
|
-
}
|
|
500
|
+
|
|
515
501
|
|
|
516
502
|
heightNoAuto(perc){
|
|
517
503
|
this.res.style.height = perc;
|
package/layout/dropdown-2025.js
CHANGED
package/layout/flex-card.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -32,10 +32,7 @@ class Card extends Animator {
|
|
|
32
32
|
return this;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
this.res.addEventListener("click", handler);
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
35
|
+
|
|
39
36
|
|
|
40
37
|
set(obj){
|
|
41
38
|
let stra = "";
|
|
@@ -133,41 +130,10 @@ this.options = obj;
|
|
|
133
130
|
|
|
134
131
|
return this;
|
|
135
132
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
this.res.style.transition= "0.5s all";
|
|
142
|
-
// alert(previousWidth);
|
|
143
|
-
|
|
144
|
-
this.res.addEventListener("mouseover", () => {
|
|
145
|
-
let previousWidth = this.res.style.width;
|
|
146
|
-
this.res.style.transform = "scale(1.04)";
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
this.res.addEventListener("mouseout", () => {
|
|
150
|
-
let previousWidth = this.res.style.width;
|
|
151
|
-
this.res.style.transform = "scale(1.0)";
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return this;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
background(color){
|
|
159
|
-
// The shorthand, not backgroundColor: it also resets background-image,
|
|
160
|
-
// so setting a flat colour after a gradient clears the gradient. The
|
|
161
|
-
// longhand left it in place, so the same call behaved differently
|
|
162
|
-
// depending on which component you happened to hold.
|
|
163
|
-
this.res.style.background = color;
|
|
164
|
-
return this;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
color(color){
|
|
168
|
-
this.res.style.color = color;
|
|
169
|
-
return this;
|
|
170
|
-
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
171
137
|
|
|
172
138
|
|
|
173
139
|
items(els){
|
|
@@ -186,16 +152,8 @@ this.options = obj;
|
|
|
186
152
|
* Corner radius. A number is pixels; a string is passed through, so
|
|
187
153
|
* `radius("50%")` and `radius(12)` both work.
|
|
188
154
|
*/
|
|
189
|
-
radius(v) {
|
|
190
|
-
this.res.style.borderRadius = typeof v === "number" ? `${v}px` : v;
|
|
191
|
-
return this;
|
|
192
|
-
}
|
|
193
155
|
|
|
194
|
-
|
|
195
|
-
round(v) {
|
|
196
|
-
this.deprecatedOption("round()", "radius()");
|
|
197
|
-
return this.radius(v);
|
|
198
|
-
}
|
|
156
|
+
|
|
199
157
|
|
|
200
158
|
|
|
201
159
|
render(div){
|
package/layout/flex-grid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -37,10 +37,7 @@ class FlexGrid extends Animator {
|
|
|
37
37
|
return "FlexRowLayoutElement";
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
this.res.addEventListener("click", handler);
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
40
|
+
|
|
44
41
|
|
|
45
42
|
set(options){
|
|
46
43
|
options.id && this.res.setAttribute("id", options.id);
|
|
@@ -221,11 +218,8 @@ if (el != undefined){
|
|
|
221
218
|
this.code.push("\n ])");
|
|
222
219
|
return this;
|
|
223
220
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
this.res.style.width = w;
|
|
227
|
-
return this;
|
|
228
|
-
}
|
|
221
|
+
|
|
222
|
+
|
|
229
223
|
|
|
230
224
|
|
|
231
225
|
border(color, width){
|
package/layout/flex-row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -291,13 +291,7 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
294
|
|
|
297
|
-
setArea(area){
|
|
298
|
-
this.res.style.gridArea = area;
|
|
299
|
-
return this;
|
|
300
|
-
}
|
|
301
295
|
|
|
302
296
|
toColumnAt(at){ // THIS IS THE ONE!!!
|
|
303
297
|
|
|
@@ -497,11 +491,8 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
497
491
|
|
|
498
492
|
return this;
|
|
499
493
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
this.res.style.background = color;
|
|
503
|
-
return this;
|
|
504
|
-
}
|
|
494
|
+
|
|
495
|
+
|
|
505
496
|
|
|
506
497
|
radius(val){
|
|
507
498
|
this.res.style.borderRadius = `${val}px`;
|
|
@@ -512,11 +503,8 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
512
503
|
this.res.style.boxShadow = "0px 1px 10px 0px rgb(145 145 145)"; //`${x}px ${y}px ${radius}px #000`;
|
|
513
504
|
return this;
|
|
514
505
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
this.res.addEventListener("click", e);
|
|
518
|
-
return this;
|
|
519
|
-
}
|
|
506
|
+
|
|
507
|
+
|
|
520
508
|
|
|
521
509
|
|
|
522
510
|
items(arr) {
|
package/layout/free.js
CHANGED
package/layout/grid-switcher.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import {Animator} from "./animator.js";
|
|
8
|
+
class AreaSwitcher extends Animator{
|
|
8
9
|
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
// Converted from a standalone class; opting out of Theme keeps rendering
|
|
12
|
+
// byte-identical to the pre-conversion behaviour.
|
|
13
|
+
this._noTheme = true;
|
|
9
14
|
|
|
10
15
|
this.gridContainer = document.createElement("div");
|
|
11
16
|
this.gridContainer.classList.add("grid-container");
|
|
@@ -120,9 +125,13 @@ for (var i = 0; i < arr.length - 1; i++){
|
|
|
120
125
|
// Usage example:
|
|
121
126
|
|
|
122
127
|
|
|
123
|
-
class GridSwitcher {
|
|
128
|
+
class GridSwitcher extends Animator{
|
|
124
129
|
constructor(){
|
|
125
|
-
|
|
130
|
+
super();
|
|
131
|
+
// Converted from a standalone class; opting out of Theme keeps rendering
|
|
132
|
+
// byte-identical to the pre-conversion behaviour.
|
|
133
|
+
this._noTheme = true;
|
|
134
|
+
this.res = document.createElement("div");
|
|
126
135
|
this.gridWrap = document.createElement("div");
|
|
127
136
|
}
|
|
128
137
|
|
|
@@ -141,7 +150,7 @@ for (var i = 0; i < arr.length - 1; i++){
|
|
|
141
150
|
let mq = window.matchMedia(`(max-width: ${val.at})`).matches;
|
|
142
151
|
if ((mq || val.at == "default") && mq !== this.lastMq){
|
|
143
152
|
const update = new Simple().set(val.template, this.dynamicItems).render();
|
|
144
|
-
this.
|
|
153
|
+
this.res = update;
|
|
145
154
|
this.render(this.domStr);
|
|
146
155
|
this.lastMq = mq;
|
|
147
156
|
}
|
|
@@ -154,7 +163,7 @@ for (var i = 0; i < arr.length - 1; i++){
|
|
|
154
163
|
|
|
155
164
|
render(div){
|
|
156
165
|
this.gridWrap.innerHTML = "";
|
|
157
|
-
this.gridWrap.appendChild(this.
|
|
166
|
+
this.gridWrap.appendChild(this.res);
|
|
158
167
|
|
|
159
168
|
if (div){
|
|
160
169
|
document.querySelector(div).appendChild(this.gridWrap);
|
|
@@ -162,7 +171,7 @@ for (var i = 0; i < arr.length - 1; i++){
|
|
|
162
171
|
|
|
163
172
|
return this.gridWrap;
|
|
164
173
|
|
|
165
|
-
// Just return this.
|
|
174
|
+
// Just return this.res it normally
|
|
166
175
|
}
|
|
167
176
|
}
|
|
168
177
|
|
package/layout/grid.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.221
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import {Animator} from "./animator.js";
|
|
8
|
+
class Grid extends Animator {
|
|
8
9
|
constructor(frs, saveEl) {
|
|
10
|
+
super();
|
|
11
|
+
// Converted from a standalone class. Opting out of Theme keeps rendering
|
|
12
|
+
// byte-identical to the pre-conversion behaviour; opt in per component.
|
|
13
|
+
this._noTheme = true;
|
|
9
14
|
this.saveEl = saveEl;
|
|
10
15
|
this.frs = frs;
|
|
11
16
|
this.res = null;
|