nodality 1.0.218 → 1.0.220
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 +1 -1
- package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.esm.js +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 +53 -80
- package/layout/audio.js +1 -95
- package/layout/audionew.js +1 -4
- package/layout/base.js +3 -46
- package/layout/beta-desktop-bar.js +1 -12
- package/layout/beta-mobile-bar.js +1 -43
- package/layout/button.js +5 -87
- package/layout/center.js +1 -41
- package/layout/checkbox.js +6 -10
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -11
- package/layout/container.js +1 -106
- package/layout/dropdown-2025.js +1 -3
- package/layout/flex-card.js +8 -38
- package/layout/flex-grid.js +2 -23
- package/layout/flex-row.js +5 -233
- 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 -40
- package/layout/grid-switcher.js +1 -14
- package/layout/grid.js +1 -11
- package/layout/horizontal-scroller.js +1 -7
- package/layout/image.js +3 -217
- package/layout/index.js +1 -1
- package/layout/link.js +7 -281
- package/layout/list.js +1 -8
- package/layout/meta-adder.js +1 -3
- package/layout/modal-2025.js +1 -44
- package/layout/multiswitcher.js +1 -55
- package/layout/nav-bar.js +1 -29
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -91
- package/layout/polygon.js +1 -1
- package/layout/prerender-site.js +1 -2
- package/layout/prerender.js +1 -2
- package/layout/progress.js +1 -3
- package/layout/row.js +1 -15
- package/layout/scroll-video.js +1 -4
- package/layout/side-bar.js +1 -11
- package/layout/side-nav-bar.js +1 -66
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -2
- package/layout/spacer.js +1 -8
- package/layout/stack.js +1 -3
- package/layout/svg.js +1 -1
- package/layout/switcher.js +1 -6
- package/layout/table.js +1 -12
- package/layout/text-field.js +7 -17
- package/layout/text.js +1 -161
- package/layout/ulist.js +1 -13
- package/layout/video.js +1 -12
- package/layout/wrap.js +1 -50
- package/layout/zoom-card.js +1 -69
- 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.220
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -21,7 +21,6 @@ class Animator {
|
|
|
21
21
|
|
|
22
22
|
// Auto-subscribe every component to Theme so dark-mode "just works"
|
|
23
23
|
// even when the user never declared a per-component theme map.
|
|
24
|
-
// Subclasses set this.res later in their own constructor; we re-apply
|
|
25
24
|
// in a microtask, by which time the synchronous chain has finished.
|
|
26
25
|
if (typeof document !== "undefined") {
|
|
27
26
|
this._themeUnsub = Theme.subscribe((mode) => this._applyTheme(mode));
|
|
@@ -398,7 +397,6 @@ class Animator {
|
|
|
398
397
|
let w = obj.border.width;
|
|
399
398
|
this.res.style.border = w ? `${w}px solid transparent` : "1px solid transparent";
|
|
400
399
|
|
|
401
|
-
//this.res.style.border = "1px solid transparent";
|
|
402
400
|
}
|
|
403
401
|
|
|
404
402
|
|
|
@@ -429,7 +427,6 @@ class Animator {
|
|
|
429
427
|
// start snapping instead of easing.
|
|
430
428
|
this.res.style.transitionProperty =
|
|
431
429
|
`background-color, color, border, box-shadow, transform`;
|
|
432
|
-
// this.transition(obj.animation);
|
|
433
430
|
}
|
|
434
431
|
|
|
435
432
|
// remember the pre-hover transform so scale-on-hover can be undone cleanly
|
|
@@ -448,19 +445,12 @@ class Animator {
|
|
|
448
445
|
}
|
|
449
446
|
|
|
450
447
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
/*if (obj.border){
|
|
454
|
-
this.res.style.border = "1px solid transparent";
|
|
455
|
-
}*/
|
|
456
448
|
|
|
457
449
|
|
|
458
450
|
|
|
459
|
-
// // // console.log(`OUT: ${this.res.style.backgroundColor}`);
|
|
460
451
|
}
|
|
461
452
|
|
|
462
453
|
this.res.onmouseover = () => {
|
|
463
|
-
//this.res.style.backgroundColor = "#ffffff"; //obj.background; //`#ffffff`;
|
|
464
454
|
//alert("OJHOIH")
|
|
465
455
|
// alert(obj.background);
|
|
466
456
|
this.res.style.color = obj.color;
|
|
@@ -488,11 +478,7 @@ class Animator {
|
|
|
488
478
|
this.res.style.boxShadow = obj.boxShadow;
|
|
489
479
|
}
|
|
490
480
|
|
|
491
|
-
//if (this.options && this.options.borderObj){ was here
|
|
492
481
|
|
|
493
|
-
//let o = this.options.borderObj;
|
|
494
|
-
//this.res.style.border = `${o.width}px solid ${o.color}`;
|
|
495
|
-
//this.res.style.borderRadius = `${o.radius}`;
|
|
496
482
|
//}
|
|
497
483
|
|
|
498
484
|
// // // console.log(`OVER: ${obj.background}`);
|
|
@@ -573,8 +559,6 @@ class Animator {
|
|
|
573
559
|
}
|
|
574
560
|
|
|
575
561
|
|
|
576
|
-
|
|
577
|
-
|
|
578
562
|
setAny(obj){
|
|
579
563
|
this[Object.keys(obj)[0]] = [Object.values(obj)[0]];
|
|
580
564
|
}
|
|
@@ -588,11 +572,9 @@ class Animator {
|
|
|
588
572
|
}
|
|
589
573
|
|
|
590
574
|
|
|
591
|
-
|
|
592
575
|
// [{ breakpoint: "sm" , values: [...]}]
|
|
593
576
|
|
|
594
577
|
|
|
595
|
-
|
|
596
578
|
/**
|
|
597
579
|
* @private
|
|
598
580
|
* Sets up the single resize listener and runs all registered tasks.
|
|
@@ -886,11 +868,6 @@ respad(arr) {
|
|
|
886
868
|
}
|
|
887
869
|
|
|
888
870
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
871
|
resmar(arr) {
|
|
895
872
|
|
|
896
873
|
// --- 1. CONFIGURATION & NORMALIZATION ---
|
|
@@ -971,8 +948,6 @@ resmar(arr) {
|
|
|
971
948
|
}
|
|
972
949
|
|
|
973
950
|
|
|
974
|
-
|
|
975
|
-
|
|
976
951
|
/**
|
|
977
952
|
* Tells the caller they passed an option that no longer exists as the
|
|
978
953
|
* way to do this, and what to use instead.
|
|
@@ -982,6 +957,58 @@ resmar(arr) {
|
|
|
982
957
|
* ordinary paths and blocked the page for every visitor, and the ban is
|
|
983
958
|
* worth more than making this one warning louder.
|
|
984
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
|
+
|
|
985
1012
|
deprecatedOption(name, replacement) {
|
|
986
1013
|
console.error(`nodality: \`${name}\` is deprecated — use \`${replacement}\` instead.`);
|
|
987
1014
|
return this;
|
|
@@ -1098,7 +1125,6 @@ resmar(arr) {
|
|
|
1098
1125
|
}
|
|
1099
1126
|
|
|
1100
1127
|
|
|
1101
|
-
|
|
1102
1128
|
mar(arr){
|
|
1103
1129
|
|
|
1104
1130
|
// Shorthand: mar: "center" → margin: 0 auto
|
|
@@ -1187,7 +1213,6 @@ resmar(arr) {
|
|
|
1187
1213
|
//alert(obj.col);
|
|
1188
1214
|
this.res.style.gridColumn = obj.col;
|
|
1189
1215
|
this.res.style.gridRow = obj.row;
|
|
1190
|
-
//this.res.style.border = "1px solid green";
|
|
1191
1216
|
return this;
|
|
1192
1217
|
}
|
|
1193
1218
|
|
|
@@ -1264,7 +1289,6 @@ resmar(arr) {
|
|
|
1264
1289
|
}
|
|
1265
1290
|
|
|
1266
1291
|
|
|
1267
|
-
|
|
1268
1292
|
const display6 = "calc(1rem + 0.5vw)"; // calc(1rem + 1.2vw)
|
|
1269
1293
|
|
|
1270
1294
|
if (name === "S6"){
|
|
@@ -1295,7 +1319,6 @@ resmar(arr) {
|
|
|
1295
1319
|
|
|
1296
1320
|
|
|
1297
1321
|
|
|
1298
|
-
|
|
1299
1322
|
setPref(id){
|
|
1300
1323
|
this.preffersId = id;
|
|
1301
1324
|
}
|
|
@@ -1306,9 +1329,6 @@ setClass(id){
|
|
|
1306
1329
|
}
|
|
1307
1330
|
|
|
1308
1331
|
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
1332
|
//--------- START OF INDEPENDENT
|
|
1313
1333
|
|
|
1314
1334
|
|
|
@@ -1324,7 +1344,6 @@ setTags(obj){
|
|
|
1324
1344
|
}
|
|
1325
1345
|
|
|
1326
1346
|
chainReact(queries, id, keep) { // we use this
|
|
1327
|
-
//this.cssGen(queries, id, this.class, this.class !== undefined); // 02/04/2024 10:43:40 Nice!!!
|
|
1328
1347
|
|
|
1329
1348
|
this.ap = false;
|
|
1330
1349
|
this.cta = 0;
|
|
@@ -1415,13 +1434,10 @@ setTags(obj){
|
|
|
1415
1434
|
this.res.style['-webkit-text-fill-color'] = '';
|
|
1416
1435
|
this.res.style['-webkit-text-stroke-color'] = "";
|
|
1417
1436
|
this.res.style['-webkit-text-stroke-width'] = "";
|
|
1418
|
-
// this.res.style['-webkit-background-clip'] = 'unset';
|
|
1419
1437
|
this.res.style.filter = "";
|
|
1420
1438
|
|
|
1421
|
-
//if (operations.includes("gradient")){
|
|
1422
1439
|
|
|
1423
1440
|
|
|
1424
|
-
// if (operations.includes("gradient")) {
|
|
1425
1441
|
|
|
1426
1442
|
|
|
1427
1443
|
if (this.options.background){
|
|
@@ -1430,7 +1446,6 @@ setTags(obj){
|
|
|
1430
1446
|
} else {
|
|
1431
1447
|
//alert("/")
|
|
1432
1448
|
//console.log("///-Hello-///")
|
|
1433
|
-
// this.res.style.background = "black"; always set backgrohnd to shapes dangerous affects divs
|
|
1434
1449
|
}
|
|
1435
1450
|
// }
|
|
1436
1451
|
|
|
@@ -1445,7 +1460,6 @@ if (operations.includes("gradient")){
|
|
|
1445
1460
|
// NO CONITION, ALWAYS!!!!
|
|
1446
1461
|
if (operations.includes("gradient") || operations.includes("shadow")){
|
|
1447
1462
|
this.res.style.position = "relative";
|
|
1448
|
-
//this.res.style.zIndex = -1;
|
|
1449
1463
|
// Navigation might go over it give nav higher zIndex
|
|
1450
1464
|
} // FIX 23:31:56 10/11/24
|
|
1451
1465
|
|
|
@@ -1461,7 +1475,6 @@ if (operations.includes("gradient")){
|
|
|
1461
1475
|
|
|
1462
1476
|
if (this.getType() === "FlexRowLayoutElement" || this.getType() === "LayoutWrapperElement"){
|
|
1463
1477
|
// alert("///")
|
|
1464
|
-
// this.res.style.opacity = 0.3;
|
|
1465
1478
|
//alert(`${w}px solid orange`);
|
|
1466
1479
|
this.res.style.border = `${typeof w === 'number' ? w + 'px' : w} solid orange`;
|
|
1467
1480
|
this.res.style.display = "inline-block"; // or block
|
|
@@ -1476,13 +1489,11 @@ if (operations.includes("gradient")){
|
|
|
1476
1489
|
if (this.text){
|
|
1477
1490
|
|
|
1478
1491
|
|
|
1479
|
-
//this.res.textContent = this.text; //"a"
|
|
1480
1492
|
}
|
|
1481
1493
|
this.res.style['-webkit-text-fill-color'] = 'transparent';
|
|
1482
1494
|
|
|
1483
1495
|
this.res.style['-webkit-text-stroke-color'] = gl;//"orange";
|
|
1484
1496
|
this.res.style['-webkit-text-stroke-width'] = `${w}`;
|
|
1485
|
-
//this.res.style.display = "inline-block"; // important for transform
|
|
1486
1497
|
//alert("HIOH")
|
|
1487
1498
|
}
|
|
1488
1499
|
}
|
|
@@ -1499,7 +1510,6 @@ if (operations.includes("gradient")){
|
|
|
1499
1510
|
}
|
|
1500
1511
|
|
|
1501
1512
|
if (operations.includes("gradient")){
|
|
1502
|
-
// alert(this.getType());
|
|
1503
1513
|
// not working with blast
|
|
1504
1514
|
|
|
1505
1515
|
// Children are cleared when setting gradient to wrap and resizing
|
|
@@ -1508,17 +1518,14 @@ if (operations.includes("gradient")){
|
|
|
1508
1518
|
if (this.getType() !== "LayoutWrapperElement" && this.getType() !== "FlexRowLayoutElement"){
|
|
1509
1519
|
this.res.style['-webkit-text-fill-color'] = 'transparent';
|
|
1510
1520
|
}
|
|
1511
|
-
//alert(this.globalGradient);
|
|
1512
1521
|
|
|
1513
1522
|
// globalGradient is set in element "set" method
|
|
1514
1523
|
this.res.style.background = this.globalGradient;// "linear-gradient(to left, #3498db, #1abc9c)";
|
|
1515
1524
|
|
|
1516
1525
|
|
|
1517
1526
|
// console.log("LGT");
|
|
1518
|
-
// console.log(this.getType());
|
|
1519
1527
|
if (this.getType() !== "LayoutWrapperElement" && this.getType() !== "FlexRowLayoutElement" ){
|
|
1520
1528
|
// alert("OJIOJIOIO")
|
|
1521
|
-
//alert(this.getType());
|
|
1522
1529
|
this.res.style['background-clip'] = 'text'; // 19:23:05 05/05/2024 -webkit was a problem here!
|
|
1523
1530
|
}
|
|
1524
1531
|
|
|
@@ -1565,9 +1572,6 @@ if (this.getType() === "FlexRowLayoutElement" || this.getType() === "LayoutWrapp
|
|
|
1565
1572
|
}
|
|
1566
1573
|
|
|
1567
1574
|
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
//if (this.getType() === "FlexRowLayoutElement"){
|
|
1571
1575
|
//} else {
|
|
1572
1576
|
|
|
1573
1577
|
|
|
@@ -1589,7 +1593,6 @@ if (this.getType() === "FlexRowLayoutElement" || this.getType() === "LayoutWrapp
|
|
|
1589
1593
|
}
|
|
1590
1594
|
|
|
1591
1595
|
|
|
1592
|
-
|
|
1593
1596
|
if (operations.includes("spana") || operations.includes("span")) {
|
|
1594
1597
|
|
|
1595
1598
|
const overlay = document.createElement("div");
|
|
@@ -1670,7 +1673,6 @@ if (this.options.animation && !this.hasAnimated && !this.options.animation.op.fi
|
|
|
1670
1673
|
|
|
1671
1674
|
this.hasAnimated = true;
|
|
1672
1675
|
let ass = this.options.animation.op;
|
|
1673
|
-
//alert(this.openTag);
|
|
1674
1676
|
|
|
1675
1677
|
this._on(window, /*this.openTag*/"sidebar:open", () => {
|
|
1676
1678
|
|
|
@@ -1683,18 +1685,13 @@ let ass = this.options.animation.op;
|
|
|
1683
1685
|
});
|
|
1684
1686
|
|
|
1685
1687
|
|
|
1686
|
-
|
|
1687
1688
|
this.res.animate(ass.keyframesClose, {
|
|
1688
1689
|
duration: 0,
|
|
1689
1690
|
fill: "forwards"
|
|
1690
1691
|
});
|
|
1691
1692
|
|
|
1692
1693
|
|
|
1693
|
-
|
|
1694
|
-
//this.res.animate(ass.keyframesOpen, ass.openOptions);
|
|
1695
1694
|
if (this.openTag && this.closeTag){
|
|
1696
|
-
// alert("ONA" + this.openTag);
|
|
1697
|
-
//alert(this.openTag);
|
|
1698
1695
|
|
|
1699
1696
|
this._on(window, this.openTag, () => {
|
|
1700
1697
|
this.res.animate(ass.keyframesOpen, ass.openOptions);
|
|
@@ -1751,8 +1748,6 @@ this._on(window, this.openTag, () => {
|
|
|
1751
1748
|
}
|
|
1752
1749
|
|
|
1753
1750
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
1751
|
|
|
1757
1752
|
|
|
1758
1753
|
}
|
|
@@ -1778,18 +1773,10 @@ this._on(window, this.openTag, () => {
|
|
|
1778
1773
|
//
|
|
1779
1774
|
|
|
1780
1775
|
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
1776
|
if (obj.transform || (obj.op /*&& obj.op.transform*/)){
|
|
1785
1777
|
|
|
1786
1778
|
|
|
1787
1779
|
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
1780
|
let transform = obj.op;//transform;
|
|
1794
1781
|
|
|
1795
1782
|
if (!obj.transform ){ // 21:48:05 Nice!!! 30/03/25
|
|
@@ -1921,7 +1908,6 @@ this._on(window, this.openTag, () => {
|
|
|
1921
1908
|
}
|
|
1922
1909
|
|
|
1923
1910
|
// 17:37:15 a comma was missing
|
|
1924
|
-
//this.res.style.transform = transformValue;
|
|
1925
1911
|
(this.blastTarget || this.res).style.transform = transformValue;
|
|
1926
1912
|
this.res.style.opacity = opacity;
|
|
1927
1913
|
} else {
|
|
@@ -1988,7 +1974,6 @@ this._on(window, this.openTag, () => {
|
|
|
1988
1974
|
|
|
1989
1975
|
// Apply reset transform if any values were provided
|
|
1990
1976
|
if (resetTransformValue) {
|
|
1991
|
-
// this.res.style.transition = "transform 0.5s ease-in-out"; // Reset transition
|
|
1992
1977
|
this.res.style.transform = resetTransformValue.trim(); // Remove trailing space
|
|
1993
1978
|
}
|
|
1994
1979
|
}
|
|
@@ -2025,7 +2010,6 @@ if (transform.on){
|
|
|
2025
2010
|
}
|
|
2026
2011
|
|
|
2027
2012
|
|
|
2028
|
-
|
|
2029
2013
|
maxWidth(w){
|
|
2030
2014
|
this.res.style.maxWidth = w;
|
|
2031
2015
|
return this;
|
|
@@ -2038,17 +2022,6 @@ removeQuotesFromFirstWord(jsonString) {
|
|
|
2038
2022
|
|
|
2039
2023
|
|
|
2040
2024
|
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
2025
|
|
|
2053
2026
|
} // 2600-1870
|
|
2054
2027
|
|
package/layout/audio.js
CHANGED
|
@@ -1,86 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.220
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
8
|
|
|
9
|
-
/*class Wrap {
|
|
10
|
-
constructor(){
|
|
11
|
-
this.setup();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
setup(){
|
|
15
|
-
let gr = document.createElement("div");
|
|
16
|
-
gr.style.padding = 0;
|
|
17
|
-
gr.style.margin = 0;
|
|
18
|
-
this.res = gr;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
width(w, shouldCenter){
|
|
22
|
-
this.res.style.width = w;
|
|
23
|
-
|
|
24
|
-
if (shouldCenter){
|
|
25
|
-
this.res.style.marginLeft = "auto";
|
|
26
|
-
this.res.style.marginRight = "auto";
|
|
27
|
-
}
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
size(w, h){
|
|
33
|
-
this.w = w;
|
|
34
|
-
this.h = h;
|
|
35
|
-
|
|
36
|
-
if (this.w){
|
|
37
|
-
this.res.style.width = this.w;
|
|
38
|
-
} else {
|
|
39
|
-
this.res.style.width = window.innerWidth;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (this.h){
|
|
43
|
-
this.res.style.height = this.h;
|
|
44
|
-
} else {
|
|
45
|
-
this.res.style.height = window.innerHeight;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
items(els){
|
|
53
|
-
for (var i = 0; i < els.length; i++){
|
|
54
|
-
this.res.appendChild(els[i].render().render());
|
|
55
|
-
}
|
|
56
|
-
return this;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
border(color, width){
|
|
62
|
-
this.res.style.border = `${width}px solid ${color}`;
|
|
63
|
-
return this;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
render(el){
|
|
67
|
-
if (el){
|
|
68
|
-
document.querySelector(el).appendChild(this.res);
|
|
69
|
-
} else {
|
|
70
|
-
return this.res;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
}*/
|
|
75
|
-
|
|
76
|
-
|
|
77
9
|
|
|
78
10
|
class Audio extends Animator {
|
|
79
11
|
constructor(url, /*obj*/) {
|
|
80
12
|
super();
|
|
81
13
|
this.url = url;
|
|
82
14
|
this.res = null;
|
|
83
|
-
//this.setup(obj);
|
|
84
15
|
|
|
85
16
|
this.setup();
|
|
86
17
|
}
|
|
@@ -95,23 +26,6 @@ import {Animator} from "./animator.js";
|
|
|
95
26
|
this.res.setAttribute("controls", "controls");
|
|
96
27
|
|
|
97
28
|
|
|
98
|
-
/*var x = document.createElement("VIDEO");
|
|
99
|
-
|
|
100
|
-
if (x.canPlayType("video/mp4")) {
|
|
101
|
-
x.setAttribute("src","movie.mp4");
|
|
102
|
-
} else {
|
|
103
|
-
x.setAttribute("src","movie.ogg");
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
x.setAttribute("width", "320");
|
|
107
|
-
x.setAttribute("height", "240");
|
|
108
|
-
x.setAttribute("controls", "controls");
|
|
109
|
-
document.body.appendChild(x);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
*/
|
|
115
29
|
}
|
|
116
30
|
|
|
117
31
|
|
|
@@ -119,16 +33,8 @@ import {Animator} from "./animator.js";
|
|
|
119
33
|
size(w/*, h*/) {
|
|
120
34
|
|
|
121
35
|
this.res.style.width = w;
|
|
122
|
-
//this.res.style.height = w;
|
|
123
36
|
|
|
124
37
|
|
|
125
|
-
/*if (w && h) {
|
|
126
|
-
this.res.style.width = w;
|
|
127
|
-
this.res.style.height = h;
|
|
128
|
-
} else {
|
|
129
|
-
this.res.style.width = w;
|
|
130
|
-
this.res.style.height = w;
|
|
131
|
-
}*/
|
|
132
38
|
|
|
133
39
|
return this;
|
|
134
40
|
}
|
package/layout/audionew.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.220
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -70,7 +70,4 @@ import {Animator} from "./animator.js";
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
//var _oldAudio = Audio;
|
|
74
|
-
//Audio = function(...args) { return new _oldAudio(...args) };
|
|
75
|
-
|
|
76
73
|
export { NAudio };
|
package/layout/base.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.220
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
7
|
class Base {
|
|
10
8
|
constructor(/*items*/){
|
|
11
|
-
//this.items = items ?? [];
|
|
12
9
|
//Base.prototype.items = items;
|
|
13
10
|
this.oldLength = 0;
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
|
|
17
|
-
/*set itemso(itemsa) {
|
|
18
|
-
this.items = itemsa;// (itemsa);
|
|
19
|
-
Base.prototype.items = itemsa;
|
|
20
|
-
}*/
|
|
21
14
|
|
|
22
15
|
|
|
23
16
|
observe(obj) {
|
|
@@ -104,40 +97,6 @@ class Base {
|
|
|
104
97
|
//node.insertBefore(p, node.childNodes[node.childNodes.length]);
|
|
105
98
|
document.body.appendChild(p);
|
|
106
99
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/*adjustState(newData){
|
|
113
|
-
|
|
114
|
-
let node = document.querySelector(this.el);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
alert("LENAX " + node.childNodes[0].children.length);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var lenax = node.childNodes[0].children.length;
|
|
121
|
-
|
|
122
|
-
//var len = node.childNodes[0];// 1
|
|
123
|
-
alert(node.childNodes[0]);
|
|
124
|
-
while (node.firstChild){
|
|
125
|
-
node.removeChild(node.lastChild);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
this.render(this.el).render(this.el); // rendra ===> build
|
|
129
|
-
}*/
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
toNode(htmlString) {
|
|
135
|
-
var div = document.createElement('div');
|
|
136
|
-
div.innerHTML = htmlString.trim();
|
|
137
|
-
|
|
138
|
-
// Change this to div.childNodes to support multiple top-level nodes
|
|
139
|
-
return div.firstChild;
|
|
140
|
-
}
|
|
141
100
|
|
|
142
101
|
|
|
143
102
|
|
|
@@ -149,9 +108,7 @@ class Base {
|
|
|
149
108
|
toCode(){
|
|
150
109
|
return [""];
|
|
151
110
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return this.render(el).render(el).innerHTML; // // rendra ===> build
|
|
155
|
-
}
|
|
111
|
+
|
|
112
|
+
|
|
156
113
|
}
|
|
157
114
|
export { Base };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.220
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -65,7 +65,6 @@ class /*Beta*/DesktopBar extends Animator { // add set method for background col
|
|
|
65
65
|
// this and overrides it.
|
|
66
66
|
this.navbar.style.padding = '1rem';
|
|
67
67
|
this.navbar.style.backgroundColor = this.obj.background ?? '#333';
|
|
68
|
-
//this.navbar.style.color = 'white';
|
|
69
68
|
|
|
70
69
|
this.navbarHeader.style.display = 'flex';
|
|
71
70
|
this.navbarHeader.style.alignItems = 'center';
|
|
@@ -86,10 +85,6 @@ class /*Beta*/DesktopBar extends Animator { // add set method for background col
|
|
|
86
85
|
return this;
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
/*addNavItem(navItemElement) {
|
|
90
|
-
this.navContent.appendChild(navItemElement);
|
|
91
|
-
return this;
|
|
92
|
-
}*/
|
|
93
88
|
|
|
94
89
|
add(ele){
|
|
95
90
|
this.items = ele;
|
|
@@ -105,11 +100,6 @@ class /*Beta*/DesktopBar extends Animator { // add set method for background col
|
|
|
105
100
|
let items = this.items.map(it => it.toCode()).flatMap(x => x);
|
|
106
101
|
|
|
107
102
|
// console.warn(items.join("").replace(/}\)/g, '}),'));
|
|
108
|
-
/* console.log(this.items[3]);
|
|
109
|
-
|
|
110
|
-
if (this.items[3].toCode().length != 1){
|
|
111
|
-
alert("Wrong link codegen");
|
|
112
|
-
}*/
|
|
113
103
|
|
|
114
104
|
// ${items.join("")}
|
|
115
105
|
return `new DesktopBar().set(${this.removeQuotesFromFirstWord(JSON.stringify(this.obj))}).add([
|
|
@@ -130,7 +120,6 @@ class /*Beta*/DesktopBar extends Animator { // add set method for background col
|
|
|
130
120
|
}
|
|
131
121
|
|
|
132
122
|
return this.navbar;
|
|
133
|
-
// container.appendChild(this.navbar);
|
|
134
123
|
}
|
|
135
124
|
}
|
|
136
125
|
|