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.
- 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.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +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.LICENSE.txt +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.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/spacer.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +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.LICENSE.txt +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 +321 -1987
- package/layout/audio.js +1 -5
- package/layout/audionew.js +1 -1
- package/layout/base.js +3 -17
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +2 -9
- package/layout/button.js +7 -30
- package/layout/center.js +3 -38
- package/layout/checkbox.js +1 -5
- package/layout/circle.js +9 -8
- package/layout/code.js +1 -1
- package/layout/container.js +22 -53
- package/layout/dropdown-2025.js +1 -1
- package/layout/flex-card.js +20 -10
- package/layout/flex-grid.js +1 -5
- package/layout/flex-row.js +2 -75
- 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 +5 -12
- package/layout/grid.js +1 -40
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +24 -115
- package/layout/index.js +1 -1
- package/layout/link.js +19 -64
- package/layout/list.js +1 -1
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/nav-bar.js +4 -20
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -16
- package/layout/polygon.js +7 -12
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -4
- package/layout/scroll-video.js +1 -1
- package/layout/side-bar.js +1 -1
- 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 +1 -1
- package/layout/stack.js +1 -1
- package/layout/svg.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +1 -1
- package/layout/text-field.js +18 -38
- package/layout/text.js +4 -617
- package/layout/ulist.js +1 -25
- package/layout/video.js +1 -1
- package/layout/wrap.js +1 -1
- 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/dist/dropdown.cjs.js +0 -2
- package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
- package/dist/dropdown.esm.js +0 -2
- package/dist/dropdown.esm.js.LICENSE.txt +0 -5
- package/layout/base-2.js +0 -97
- package/layout/box.js +0 -35
- package/layout/cards.js +0 -143
- package/layout/clean-row.js +0 -686
- package/layout/custom.js +0 -297
- package/layout/div-image.js +0 -167
- package/layout/dropdown.js +0 -158
- package/layout/empty-element.js +0 -27
- package/layout/external-stylesheet.js +0 -25
- package/layout/footer.js +0 -89
- package/layout/grid-new.js +0 -301
- package/layout/group.js +0 -129
- package/layout/header.js +0 -181
- package/layout/image-old.js +0 -453
- package/layout/label.js +0 -56
- package/layout/list-OLD.js +0 -6
- package/layout/modernwrap.js +0 -97
- package/layout/multiswitcherBeta.js +0 -69
- package/layout/navBar-OLD.js +0 -266
- package/layout/new-flat-adder.js +0 -47
- package/layout/offset-container.js +0 -394
- package/layout/saved-new-nav-bar.js +0 -437
- package/layout/without-new.js +0 -66
package/layout/grid-switcher.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -135,22 +135,15 @@ for (var i = 0; i < arr.length - 1; i++){
|
|
|
135
135
|
this.el = document.createElement("div");
|
|
136
136
|
this.gridWrap = document.createElement("div");
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
this.domStr = dom;
|
|
141
|
-
this.domEl = document.querySelector(dom);
|
|
142
|
-
return this;
|
|
143
|
-
}
|
|
138
|
+
|
|
139
|
+
|
|
144
140
|
|
|
145
141
|
items(arr){
|
|
146
142
|
this.items = arr;
|
|
147
143
|
return this;
|
|
148
144
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
this.dynamicItems = arr;
|
|
152
|
-
return this;
|
|
153
|
-
}
|
|
145
|
+
|
|
146
|
+
|
|
154
147
|
switch(breakpoints){
|
|
155
148
|
const innerSwitch = () => {
|
|
156
149
|
for (let i = 0; i < breakpoints.length; i++){
|
package/layout/grid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -37,46 +37,7 @@ class Grid {
|
|
|
37
37
|
return this;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
freeAreas(){
|
|
41
|
-
this.res.style.gridTemplateAreas = `"a a a b c"`;
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
setAreas(areas){
|
|
47
|
-
this.res.children[0].style.gridArea = "a";
|
|
48
|
-
this.res.children[1].style.gridArea = "b";
|
|
49
|
-
this.res.style.gridTemplateAreas = `"a a a b"`;
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
detailView(){
|
|
54
|
-
let detail = document.createElement("img");
|
|
55
|
-
detail.setAttribute("src", "https://www.kasandbox.org/programming-images/animals/birds_rainbow-lorakeets.png");
|
|
56
|
-
detail.style.width = "400px";
|
|
57
|
-
detail.style.marginLeft = "auto";
|
|
58
|
-
detail.style.marginRight = "auto";
|
|
59
|
-
|
|
60
|
-
//this.res.style.zIndex = -1;
|
|
61
|
-
|
|
62
|
-
detail.style.zIndex = 2;
|
|
63
|
-
|
|
64
|
-
|
|
65
40
|
|
|
66
|
-
this.res.appendChild(detail);
|
|
67
|
-
return this;
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
stretchFit() {
|
|
76
|
-
this.res.style.height = "auto";
|
|
77
|
-
this.res.style.width = "100%";
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
41
|
|
|
81
42
|
size(w, h) {
|
|
82
43
|
if (w === "wide") {
|
package/layout/image.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -33,10 +33,7 @@ class Image extends Animator {
|
|
|
33
33
|
}*/
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
const modifiedJSON = jsonString.replace(/"([^"]+)":/g, '$1:');
|
|
38
|
-
return modifiedJSON;
|
|
39
|
-
}
|
|
36
|
+
|
|
40
37
|
|
|
41
38
|
setType({url, type, mode}){
|
|
42
39
|
//alert("Thrice?");
|
|
@@ -58,29 +55,14 @@ class Image extends Animator {
|
|
|
58
55
|
return this;
|
|
59
56
|
}
|
|
60
57
|
|
|
61
|
-
|
|
62
|
-
this.res.style.flex = "1";
|
|
63
|
-
return this;
|
|
64
|
-
}
|
|
58
|
+
|
|
65
59
|
|
|
66
60
|
hand(){
|
|
67
61
|
this.res.style.cursor = "hand";
|
|
68
62
|
return this;
|
|
69
63
|
}
|
|
70
64
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// Just for visual
|
|
74
|
-
setGridWithoutCode(){
|
|
75
|
-
this.res.style.border = "1px solid white";
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
65
|
|
|
80
|
-
maxWidth(w){
|
|
81
|
-
this.res.style.maxWidth = w;
|
|
82
|
-
return this;
|
|
83
|
-
}
|
|
84
66
|
|
|
85
67
|
|
|
86
68
|
getHeight(){
|
|
@@ -516,11 +498,7 @@ obj.pad && this.pad(obj.pad);
|
|
|
516
498
|
return this;
|
|
517
499
|
}
|
|
518
500
|
|
|
519
|
-
|
|
520
|
-
this.res.style.width = "30%";
|
|
521
|
-
this.res.style.paddingBottom = "30%";
|
|
522
|
-
return this;
|
|
523
|
-
}
|
|
501
|
+
|
|
524
502
|
|
|
525
503
|
|
|
526
504
|
opacity(value){
|
|
@@ -529,11 +507,6 @@ obj.pad && this.pad(obj.pad);
|
|
|
529
507
|
}
|
|
530
508
|
|
|
531
509
|
|
|
532
|
-
rowCol(row, col){
|
|
533
|
-
this.res.style.gridRow = row;
|
|
534
|
-
this.res.style.gridColumn = col;
|
|
535
|
-
return this;
|
|
536
|
-
}
|
|
537
510
|
|
|
538
511
|
|
|
539
512
|
setArea(area){
|
|
@@ -541,15 +514,7 @@ obj.pad && this.pad(obj.pad);
|
|
|
541
514
|
return this;
|
|
542
515
|
}
|
|
543
516
|
|
|
544
|
-
setGridRow(row){
|
|
545
|
-
this.res.style.gridRow = row;
|
|
546
|
-
return this;
|
|
547
|
-
}
|
|
548
517
|
|
|
549
|
-
setGridCol(col){
|
|
550
|
-
this.res.style.gridColumn = col;
|
|
551
|
-
return this;
|
|
552
|
-
}
|
|
553
518
|
|
|
554
519
|
setGrid(){
|
|
555
520
|
this.res.style.gridRow = "span 2";
|
|
@@ -568,16 +533,7 @@ obj.pad && this.pad(obj.pad);
|
|
|
568
533
|
return this;
|
|
569
534
|
}
|
|
570
535
|
|
|
571
|
-
|
|
572
|
-
this.res.style.marginLeft = "90px";
|
|
573
|
-
this.res.style.marginTop = "-30px";
|
|
574
|
-
return this;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
borderAround(data){
|
|
578
|
-
this.res.style.border = data;
|
|
579
|
-
return this;
|
|
580
|
-
}
|
|
536
|
+
|
|
581
537
|
|
|
582
538
|
setClass(name){
|
|
583
539
|
this.res.setAttribute("class", name);
|
|
@@ -617,10 +573,7 @@ obj.pad && this.pad(obj.pad);
|
|
|
617
573
|
return this;
|
|
618
574
|
}
|
|
619
575
|
|
|
620
|
-
|
|
621
|
-
this.res.style.borderRadius = dimensions;
|
|
622
|
-
return this;
|
|
623
|
-
}
|
|
576
|
+
|
|
624
577
|
|
|
625
578
|
|
|
626
579
|
mobileWidth(){
|
|
@@ -713,20 +666,14 @@ return this;
|
|
|
713
666
|
return this;
|
|
714
667
|
}
|
|
715
668
|
|
|
716
|
-
|
|
717
|
-
this.res.style.width = "initial";
|
|
718
|
-
return this;
|
|
719
|
-
}
|
|
669
|
+
|
|
720
670
|
|
|
721
671
|
float(dir){
|
|
722
672
|
this.res.style.float = `${dir}`;
|
|
723
673
|
return this;
|
|
724
674
|
}
|
|
725
675
|
|
|
726
|
-
|
|
727
|
-
this.res.style.height = "-webkit-fill-available";
|
|
728
|
-
return this;
|
|
729
|
-
}
|
|
676
|
+
|
|
730
677
|
|
|
731
678
|
grayscale(val){
|
|
732
679
|
this.res.style.filter = `grayscale(${val}%)`;
|
|
@@ -835,39 +782,17 @@ if (mqa.matches){
|
|
|
835
782
|
}
|
|
836
783
|
|
|
837
784
|
|
|
838
|
-
toBack(){
|
|
839
|
-
this.res.style.zIndex = "-1";
|
|
840
|
-
return this;
|
|
841
|
-
}
|
|
842
785
|
|
|
843
|
-
margin(L, T, R, B) {
|
|
844
|
-
if (L || T || R || B){ // CAUGHT MYSELF
|
|
845
|
-
this.res.style.marginLeft = L;
|
|
846
|
-
this.res.style.marginTop = T;
|
|
847
|
-
this.res.style.marginRight = R;
|
|
848
|
-
this.res.style.marginBottom = B;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
if (!T && !R && !B){
|
|
852
|
-
|
|
853
|
-
if (T !== 0 || R !== 0 || B !== 0){
|
|
854
|
-
// alert("j")
|
|
855
|
-
this.res.style.margin = L;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
return this;
|
|
862
|
-
}
|
|
863
786
|
|
|
864
787
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
788
|
+
/**
|
|
789
|
+
* Width and height. Renamed from size(), which collided with the `size`
|
|
790
|
+
* OPTION — on any component that calls commonMethods, `size:` is the
|
|
791
|
+
* fluid type scale (S1…S6), so `.size()` meaning width read as the same
|
|
792
|
+
* word doing two unrelated jobs in one call chain.
|
|
793
|
+
*/
|
|
869
794
|
|
|
870
|
-
|
|
795
|
+
dimensions(w, h) {
|
|
871
796
|
if (w && h) {
|
|
872
797
|
this.res.style.width = w;
|
|
873
798
|
this.res.style.height = h;
|
|
@@ -879,6 +804,13 @@ if (mqa.matches){
|
|
|
879
804
|
return this;
|
|
880
805
|
}
|
|
881
806
|
|
|
807
|
+
//@deprecated size: on this component `size()` set width and height, which collided with the `size` option (fluid type scale). Use `dimensions(w, h)`.
|
|
808
|
+
size(w, h) {
|
|
809
|
+
this.deprecatedOption("size() on this component", "dimensions(w, h)");
|
|
810
|
+
return this.dimensions(w, h);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
|
|
882
814
|
|
|
883
815
|
|
|
884
816
|
frame(obj) {
|
|
@@ -896,24 +828,7 @@ if (mqa.matches){
|
|
|
896
828
|
return this;
|
|
897
829
|
}
|
|
898
830
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
RSize(w, h, ratio) {
|
|
902
|
-
|
|
903
|
-
let mq = window.matchMedia("(max-device-width: 420px)");
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
if (w && h) {
|
|
907
|
-
|
|
908
|
-
this.res.style.width = mq.matches ? w * ratio : w;
|
|
909
|
-
this.res.style.height = mq.matches ? h * ratio : h;
|
|
910
|
-
} else {
|
|
911
|
-
this.res.style.width = mq.matches ? w * ratio : w;
|
|
912
|
-
this.res.style.height = mq.matches ? w * ratio : w;
|
|
913
|
-
}
|
|
914
831
|
|
|
915
|
-
return this;
|
|
916
|
-
}
|
|
917
832
|
|
|
918
833
|
|
|
919
834
|
|
|
@@ -934,14 +849,8 @@ if (mqa.matches){
|
|
|
934
849
|
|
|
935
850
|
return this;
|
|
936
851
|
}
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
clipShape(shape) {
|
|
942
|
-
this.res.style.borderRadius = "50%";
|
|
943
|
-
return this;
|
|
944
|
-
}
|
|
852
|
+
|
|
853
|
+
|
|
945
854
|
|
|
946
855
|
cornerRadius(val){
|
|
947
856
|
this.res.style.borderRadius = val;
|
package/layout/index.js
CHANGED
package/layout/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -720,7 +720,11 @@ if (ft.length > 0){
|
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
background(color){
|
|
723
|
-
|
|
723
|
+
// The shorthand, not backgroundColor: it also resets background-image,
|
|
724
|
+
// so setting a flat colour after a gradient clears the gradient. The
|
|
725
|
+
// longhand left it in place, so the same call behaved differently
|
|
726
|
+
// depending on which component you happened to hold.
|
|
727
|
+
this.res.style.background = color;
|
|
724
728
|
return this;
|
|
725
729
|
}
|
|
726
730
|
|
|
@@ -825,20 +829,7 @@ if (ft.length > 0){
|
|
|
825
829
|
return this;
|
|
826
830
|
}
|
|
827
831
|
|
|
828
|
-
myself(obj) {
|
|
829
|
-
const adj = () => {
|
|
830
|
-
let query = window.matchMedia("(max-device-width: 415px)");
|
|
831
|
-
if (query.matches) {
|
|
832
|
-
this.res.style.fontSize = obj.desktop;
|
|
833
|
-
} else {
|
|
834
|
-
this.res.style.fontSize = obj.phone;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
832
|
|
|
838
|
-
adj();
|
|
839
|
-
window.addEventListener("resize", adj);
|
|
840
|
-
return this;
|
|
841
|
-
}
|
|
842
833
|
|
|
843
834
|
|
|
844
835
|
|
|
@@ -852,34 +843,32 @@ if (ft.length > 0){
|
|
|
852
843
|
this.res.style.backgroundColor = color;
|
|
853
844
|
return this;
|
|
854
845
|
}*/
|
|
855
|
-
|
|
856
|
-
round(){
|
|
857
|
-
//alert("K")
|
|
858
|
-
this.res.style.borderRadius = "0.5rem";
|
|
859
846
|
|
|
860
|
-
if (this.options.rounded){
|
|
861
|
-
// alert("K");
|
|
862
|
-
this.res.children[0].style.borderRadius = "0.5rem";
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
return this;
|
|
866
|
-
}
|
|
867
847
|
|
|
868
848
|
newWindow() {
|
|
869
849
|
this.res.target = "_new";
|
|
870
850
|
return this;
|
|
871
851
|
}
|
|
872
852
|
|
|
853
|
+
/**
|
|
854
|
+
* Corner radius. A number is pixels; a string is passed through, so
|
|
855
|
+
* `radius("50%")` and `radius(12)` both work.
|
|
856
|
+
*/
|
|
857
|
+
radius(v) {
|
|
858
|
+
this.res.style.borderRadius = typeof v === "number" ? `${v}px` : v;
|
|
859
|
+
return this;
|
|
860
|
+
}
|
|
873
861
|
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
this.
|
|
877
|
-
|
|
862
|
+
//@deprecated round: superseded by `radius()`, which is the same thing under the name the option already uses.
|
|
863
|
+
round(v) {
|
|
864
|
+
this.deprecatedOption("round()", "radius()");
|
|
865
|
+
return this.radius(v);
|
|
878
866
|
}
|
|
879
867
|
|
|
880
868
|
|
|
881
869
|
|
|
882
870
|
|
|
871
|
+
|
|
883
872
|
// 220812 la olympics 2028
|
|
884
873
|
|
|
885
874
|
|
|
@@ -922,19 +911,6 @@ if (ft.length > 0){
|
|
|
922
911
|
}
|
|
923
912
|
|
|
924
913
|
|
|
925
|
-
padding(L, T, R, B){
|
|
926
|
-
|
|
927
|
-
if (L && T && R && B){
|
|
928
|
-
this.res.style.paddingLeft = L;
|
|
929
|
-
this.res.style.paddingTop = T;
|
|
930
|
-
this.res.style.paddingRight = R;
|
|
931
|
-
this.res.style.paddingBottom = B;
|
|
932
|
-
} else {
|
|
933
|
-
this.res.style.padding = L;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
return this;
|
|
937
|
-
}
|
|
938
914
|
|
|
939
915
|
medium() {
|
|
940
916
|
const adj = () => {
|
|
@@ -960,20 +936,6 @@ if (ft.length > 0){
|
|
|
960
936
|
return this;
|
|
961
937
|
}
|
|
962
938
|
|
|
963
|
-
margin(L, T, R, B){
|
|
964
|
-
|
|
965
|
-
if (L && T && R && B){
|
|
966
|
-
this.el.style.marginLeft = L;
|
|
967
|
-
this.el.style.marginTop = T;
|
|
968
|
-
this.el.style.marginRight = R;
|
|
969
|
-
this.el.style.marginBottom = B;
|
|
970
|
-
} else {
|
|
971
|
-
// alert("2")
|
|
972
|
-
this.el.style.margin = L;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
return this;
|
|
976
|
-
}
|
|
977
939
|
|
|
978
940
|
/**/
|
|
979
941
|
|
|
@@ -1029,13 +991,6 @@ if (ft.length > 0){
|
|
|
1029
991
|
return this;
|
|
1030
992
|
}
|
|
1031
993
|
|
|
1032
|
-
margin(T, L, R, B){
|
|
1033
|
-
this.res.style.marginTop = T;
|
|
1034
|
-
this.res.style.marginLeft = L;
|
|
1035
|
-
this.res.style.marginRight = R;
|
|
1036
|
-
this.res.style.marginBottom = B;
|
|
1037
|
-
return this;
|
|
1038
|
-
}
|
|
1039
994
|
|
|
1040
995
|
font(family){
|
|
1041
996
|
this.res.style.fontFamily = family;
|
package/layout/list.js
CHANGED
package/layout/meta-adder.js
CHANGED
package/layout/modal-2025.js
CHANGED
package/layout/multiswitcher.js
CHANGED
package/layout/nav-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -158,13 +158,8 @@ class NavBar {
|
|
|
158
158
|
|
|
159
159
|
return this;
|
|
160
160
|
}
|
|
161
|
-
|
|
162
161
|
|
|
163
|
-
|
|
164
|
-
openSymbol(symbol){
|
|
165
|
-
this.symbol = symbol;
|
|
166
|
-
return this;
|
|
167
|
-
}
|
|
162
|
+
|
|
168
163
|
|
|
169
164
|
|
|
170
165
|
background(obj){
|
|
@@ -172,18 +167,8 @@ class NavBar {
|
|
|
172
167
|
this.ele.style.opacity = obj.opacity;
|
|
173
168
|
return this;
|
|
174
169
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
this.ele.style.backgroundColor = "rgba(255,255,255,0.72)";
|
|
178
|
-
return this;
|
|
179
|
-
//background-color: rgba(255,255,255,0.72);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
keepItem(item){
|
|
184
|
-
this.keepItem = item;
|
|
185
|
-
return this;
|
|
186
|
-
}
|
|
170
|
+
|
|
171
|
+
|
|
187
172
|
|
|
188
173
|
/*--------------------------------------------------ADJUST--------------------------------------------------*/
|
|
189
174
|
// set habmurger icon
|
|
@@ -259,7 +244,6 @@ adjust(w) {
|
|
|
259
244
|
child.style.display = "block";
|
|
260
245
|
|
|
261
246
|
if (child.textContent === this.titleText && this.titleText.length > 0) {
|
|
262
|
-
alert(child.textContent)
|
|
263
247
|
child.style.fontSize = "2em";
|
|
264
248
|
}
|
|
265
249
|
|
package/layout/new-nav-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -468,11 +468,6 @@ class UINavBar extends Animator {
|
|
|
468
468
|
|
|
469
469
|
|
|
470
470
|
|
|
471
|
-
openSymbol(symbol) {
|
|
472
|
-
this.symbol = symbol;
|
|
473
|
-
return this;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
471
|
|
|
477
472
|
background(obj) {
|
|
478
473
|
|
|
@@ -486,17 +481,7 @@ class UINavBar extends Animator {
|
|
|
486
481
|
return this;
|
|
487
482
|
}
|
|
488
483
|
|
|
489
|
-
transluescent() {
|
|
490
|
-
this.res.children[0].style.backgroundColor = "rgba(255,255,255,0.72)";
|
|
491
|
-
return this;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
484
|
|
|
495
|
-
keepItem(item) {
|
|
496
|
-
// console.log("Wow");
|
|
497
|
-
this.keepItem = item;
|
|
498
|
-
return this;
|
|
499
|
-
}
|
|
500
485
|
|
|
501
486
|
addHamburger = () => {
|
|
502
487
|
|
package/layout/polygon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -52,8 +52,8 @@ class Polygon extends Animator {
|
|
|
52
52
|
if (opts.size) this.size(opts.size.width || opts.size, opts.size.height);
|
|
53
53
|
if (opts.color) this.color(opts.color);
|
|
54
54
|
if (opts.border) this.border(opts.border);
|
|
55
|
-
if (opts.margin) this.
|
|
56
|
-
if (opts.padding) this.
|
|
55
|
+
if (opts.margin) this.mar([{a: opts.margin}]);
|
|
56
|
+
if (opts.padding) this.pad([{a: opts.padding}]);
|
|
57
57
|
if (opts.background) this.background(opts.background);
|
|
58
58
|
if (opts.center) this.center();
|
|
59
59
|
|
|
@@ -137,8 +137,11 @@ class Polygon extends Animator {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
|
|
140
|
+
// Text colour, matching every other component. It set `background` here,
|
|
141
|
+
// duplicating background() two methods below and leaving no way to set the
|
|
142
|
+
// text colour.
|
|
140
143
|
color(color) {
|
|
141
|
-
this.res.style.
|
|
144
|
+
this.res.style.color = color;
|
|
142
145
|
return this;
|
|
143
146
|
}
|
|
144
147
|
|
|
@@ -150,15 +153,7 @@ class Polygon extends Animator {
|
|
|
150
153
|
return this;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
|
-
margin(m) {
|
|
154
|
-
this.res.style.margin = typeof m === "number" ? m + "px" : m;
|
|
155
|
-
return this;
|
|
156
|
-
}
|
|
157
156
|
|
|
158
|
-
padding(p) {
|
|
159
|
-
this.res.style.padding = typeof p === "number" ? p + "px" : p;
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
157
|
|
|
163
158
|
background(p) {
|
|
164
159
|
this.res.style.background = p;
|
package/layout/prerender-site.js
CHANGED
package/layout/prerender.js
CHANGED
package/layout/progress.js
CHANGED
package/layout/row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.217
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -65,9 +65,6 @@ class Row {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
static test(){
|
|
69
|
-
alert("Wow")
|
|
70
|
-
}
|
|
71
68
|
|
|
72
69
|
setup(obj) {
|
|
73
70
|
//let parent = document.createElement("div");
|
package/layout/scroll-video.js
CHANGED