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/container.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
|
*/
|
|
@@ -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 = [];
|
|
@@ -63,22 +61,11 @@ code = `${pad}new Wrapper()`;
|
|
|
63
61
|
getType(){
|
|
64
62
|
return "LayoutWrapperElement"; // 224647
|
|
65
63
|
}
|
|
66
|
-
// 220543§§§§§§§§§§§§§§§§§§§§¨ú
|
|
67
|
-
setArea(area){
|
|
68
|
-
this.res.style.gridArea = area;
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
64
|
|
|
72
65
|
|
|
73
66
|
|
|
74
67
|
|
|
75
68
|
|
|
76
|
-
onTap(handler){
|
|
77
|
-
this.res.addEventListener("click", handler);
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
69
|
|
|
83
70
|
set(obj){
|
|
84
71
|
this.obj = obj;
|
|
@@ -98,67 +85,13 @@ code = `${pad}new Wrapper()`;
|
|
|
98
85
|
obj.position && (this.res.style.position = obj.position);
|
|
99
86
|
obj.top !== undefined && (this.res.style.top = obj.top);
|
|
100
87
|
// ------
|
|
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
88
|
obj.pad && this.pad(obj.pad);
|
|
106
89
|
obj.mar && this.mar(obj.mar);
|
|
107
|
-
// obj.mar && (stra += `mar: {sides: [${obj.mar.sides.map(x => `"${x}"`).join(", ")}], value: "${obj.arrpad.value}"}, `);
|
|
108
90
|
|
|
109
91
|
//@ gpos: Grid placement — {col, row}, written to grid-column and grid-row.
|
|
110
92
|
obj.gpos && this.gpos(obj.gpos);
|
|
111
93
|
|
|
112
94
|
|
|
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
95
|
let arr = [];
|
|
163
96
|
|
|
164
97
|
// Plain CSS string transforms are handled by commonMethods. Only
|
|
@@ -227,7 +160,6 @@ code = `${pad}new Wrapper()`;
|
|
|
227
160
|
}
|
|
228
161
|
|
|
229
162
|
if (obj.blast){
|
|
230
|
-
//keep.push("blast");
|
|
231
163
|
}
|
|
232
164
|
|
|
233
165
|
// console.log("ARA IS " + arr);
|
|
@@ -275,7 +207,6 @@ code = `${pad}new Wrapper()`;
|
|
|
275
207
|
// obj.arrpad && (stra += `arrpad: {sides: ["${obj.arrpad.sides}"], value: "${obj.arrpad.value}"}, `); // 2345 06/03
|
|
276
208
|
|
|
277
209
|
// COMMENTED OUT 08/01/2025
|
|
278
|
-
// obj.grow && (this.res.style.flexGrow = 1);
|
|
279
210
|
|
|
280
211
|
|
|
281
212
|
obj.simpleCenter && this.deprecatedOption("simpleCenter", 'center: true');
|
|
@@ -375,7 +306,6 @@ code = `${pad}new Wrapper()`;
|
|
|
375
306
|
// String transforms are handled by commonMethods. Only object-shaped
|
|
376
307
|
// transform descriptors (with .op / .transform) go to the animation system.
|
|
377
308
|
(obj.transform && typeof obj.transform === "object") && this.reactOnTransform(obj.transform);
|
|
378
|
-
// obj.makeResponsiveBehaviour && obj.makeResponsiveBehaviour !== "undefined" && this.makeResponsiveBehaviour(obj.makeResponsiveBehaviour);
|
|
379
309
|
obj.name && (this.name = obj.name)
|
|
380
310
|
obj.responsive && this.rsp(obj.responsive);
|
|
381
311
|
|
|
@@ -390,8 +320,6 @@ code = `${pad}new Wrapper()`;
|
|
|
390
320
|
}
|
|
391
321
|
|
|
392
322
|
|
|
393
|
-
|
|
394
|
-
|
|
395
323
|
for (let prop in obj) {
|
|
396
324
|
if (prop === 'margin') {
|
|
397
325
|
let paddingValues = obj[prop];
|
|
@@ -418,7 +346,6 @@ code = `${pad}new Wrapper()`;
|
|
|
418
346
|
}
|
|
419
347
|
|
|
420
348
|
|
|
421
|
-
|
|
422
349
|
}
|
|
423
350
|
}
|
|
424
351
|
}
|
|
@@ -458,13 +385,11 @@ code = `${pad}new Wrapper()`;
|
|
|
458
385
|
|
|
459
386
|
if (split[i] === "row"){
|
|
460
387
|
this.res.style.flexDirection = "row";
|
|
461
|
-
///this.res.style.alignItems = "flex-end";
|
|
462
388
|
this.res.style.border = "3px solid green";
|
|
463
389
|
}
|
|
464
390
|
|
|
465
391
|
if (split[i] === "col"){
|
|
466
392
|
this.res.style.flexDirection = "column";
|
|
467
|
-
// this.res.style.justifyContent = "flex-start";
|
|
468
393
|
this.res.style.border = "3px solid purple";
|
|
469
394
|
}
|
|
470
395
|
|
|
@@ -475,13 +400,11 @@ code = `${pad}new Wrapper()`;
|
|
|
475
400
|
|
|
476
401
|
if (split[i] === "row"){
|
|
477
402
|
this.res.style.flexDirection = "row";
|
|
478
|
-
///this.res.style.alignItems = "flex-end";
|
|
479
403
|
this.res.style.border = "3px solid green";
|
|
480
404
|
}
|
|
481
405
|
|
|
482
406
|
if (split[i] === "col"){
|
|
483
407
|
this.res.style.flexDirection = "column";
|
|
484
|
-
// this.res.style.justifyContent = "flex-start";
|
|
485
408
|
this.res.style.border = "3px solid purple";
|
|
486
409
|
}
|
|
487
410
|
}
|
|
@@ -543,10 +466,6 @@ code = `${pad}new Wrapper()`;
|
|
|
543
466
|
}
|
|
544
467
|
|
|
545
468
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
469
|
|
|
551
470
|
|
|
552
471
|
color(cl){
|
|
@@ -561,11 +480,6 @@ code = `${pad}new Wrapper()`;
|
|
|
561
480
|
|
|
562
481
|
|
|
563
482
|
|
|
564
|
-
font(font){
|
|
565
|
-
this.res.style.fontFamily = font;
|
|
566
|
-
return this;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
483
|
flexAlign(perc){
|
|
570
484
|
this.res.style.display = "flex";
|
|
571
485
|
this.res.style.justifyContent = "flex-start";
|
|
@@ -603,7 +517,6 @@ code = `${pad}new Wrapper()`;
|
|
|
603
517
|
}
|
|
604
518
|
|
|
605
519
|
|
|
606
|
-
|
|
607
520
|
|
|
608
521
|
add(els){
|
|
609
522
|
this.items = els;
|
|
@@ -634,9 +547,6 @@ code = `${pad}new Wrapper()`;
|
|
|
634
547
|
|
|
635
548
|
|
|
636
549
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
550
|
|
|
641
551
|
|
|
642
552
|
setWidth(w){
|
|
@@ -687,7 +597,6 @@ code = `${pad}new Wrapper()`;
|
|
|
687
597
|
container = document.createElement("div");
|
|
688
598
|
}
|
|
689
599
|
|
|
690
|
-
// let container = options ? document.createElement(options.isLink ? "a" : "div") :document.createElement("div") ;
|
|
691
600
|
|
|
692
601
|
|
|
693
602
|
|
|
@@ -742,7 +651,6 @@ code = `${pad}new Wrapper()`;
|
|
|
742
651
|
}
|
|
743
652
|
|
|
744
653
|
|
|
745
|
-
// 22:39:02 15/03/2024 window.addEveventListener("resize", () => {}, "immediatelly");
|
|
746
654
|
|
|
747
655
|
|
|
748
656
|
height(h){
|
|
@@ -796,7 +704,6 @@ code = `${pad}new Wrapper()`;
|
|
|
796
704
|
}
|
|
797
705
|
|
|
798
706
|
|
|
799
|
-
|
|
800
707
|
|
|
801
708
|
apply(arr) {
|
|
802
709
|
const goThroughStyles = () => {
|
|
@@ -814,9 +721,7 @@ apply(arr) {
|
|
|
814
721
|
|
|
815
722
|
if (query.matches) {
|
|
816
723
|
Object.assign(this.res.style, el.styles);
|
|
817
|
-
// alert(el.style.styles.color);
|
|
818
724
|
} else {
|
|
819
|
-
//Object.assign(this.res.style, arr[0].styles);
|
|
820
725
|
}
|
|
821
726
|
}
|
|
822
727
|
}
|
|
@@ -855,14 +760,4 @@ apply(arr) {
|
|
|
855
760
|
}
|
|
856
761
|
|
|
857
762
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
763
|
export { Wrapper };
|
package/layout/dropdown-2025.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
|
*/
|
|
@@ -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
|
|
package/layout/flex-card.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
|
*/
|
|
@@ -27,16 +27,12 @@ class Card extends Animator {
|
|
|
27
27
|
card.style.backgroundColor = "#fff";
|
|
28
28
|
card.style.fontFamily = "Arial";
|
|
29
29
|
card.style.width = "100%";
|
|
30
|
-
// card.style.boxShadow = "3px 3px 10px #111";
|
|
31
30
|
card.style.overflow = "hidden"
|
|
32
31
|
this.res = card;
|
|
33
32
|
return this;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
this.res.addEventListener("click", handler);
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
35
|
+
|
|
40
36
|
|
|
41
37
|
set(obj){
|
|
42
38
|
let stra = "";
|
|
@@ -55,7 +51,6 @@ class Card extends Animator {
|
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
|
|
58
|
-
//obj.arrayMargin && this.arrayMargin(obj.arrayMargin.sides, obj.arrayMargin.value);
|
|
59
54
|
|
|
60
55
|
|
|
61
56
|
obj.width && (this.res.style.width = obj.width);
|
|
@@ -117,7 +112,6 @@ this.options = obj;
|
|
|
117
112
|
|
|
118
113
|
this.chainReact(arr, this.options.id, keep);
|
|
119
114
|
|
|
120
|
-
// this.res.style.border = "1px solid green";
|
|
121
115
|
}
|
|
122
116
|
}
|
|
123
117
|
//22155 snap to change phone screen
|
|
@@ -136,27 +130,8 @@ this.options = obj;
|
|
|
136
130
|
|
|
137
131
|
return this;
|
|
138
132
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
let previousWidth = this.res.style.width;
|
|
143
|
-
|
|
144
|
-
this.res.style.transition= "0.5s all";
|
|
145
|
-
// alert(previousWidth);
|
|
146
|
-
|
|
147
|
-
this.res.addEventListener("mouseover", () => {
|
|
148
|
-
let previousWidth = this.res.style.width;
|
|
149
|
-
this.res.style.transform = "scale(1.04)";
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
this.res.addEventListener("mouseout", () => {
|
|
153
|
-
let previousWidth = this.res.style.width;
|
|
154
|
-
this.res.style.transform = "scale(1.0)";
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return this;
|
|
159
|
-
}
|
|
133
|
+
|
|
134
|
+
|
|
160
135
|
|
|
161
136
|
background(color){
|
|
162
137
|
// The shorthand, not backgroundColor: it also resets background-image,
|
|
@@ -166,11 +141,8 @@ this.options = obj;
|
|
|
166
141
|
this.res.style.background = color;
|
|
167
142
|
return this;
|
|
168
143
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
this.res.style.color = color;
|
|
172
|
-
return this;
|
|
173
|
-
}
|
|
144
|
+
|
|
145
|
+
|
|
174
146
|
|
|
175
147
|
|
|
176
148
|
items(els){
|
|
@@ -189,10 +161,8 @@ this.options = obj;
|
|
|
189
161
|
* Corner radius. A number is pixels; a string is passed through, so
|
|
190
162
|
* `radius("50%")` and `radius(12)` both work.
|
|
191
163
|
*/
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
return this;
|
|
195
|
-
}
|
|
164
|
+
|
|
165
|
+
|
|
196
166
|
|
|
197
167
|
//@deprecated round: superseded by `radius()`, which is the same thing under the name the option already uses.
|
|
198
168
|
round(v) {
|
package/layout/flex-grid.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
|
*/
|
|
@@ -24,11 +24,9 @@ class FlexGrid extends Animator {
|
|
|
24
24
|
this.code.push(".setup()")
|
|
25
25
|
let gr = document.createElement("div");
|
|
26
26
|
gr.style.display = "flex";
|
|
27
|
-
//gr.style.flexWrap = "wrap";
|
|
28
27
|
|
|
29
28
|
gr.style.padding = 0;
|
|
30
29
|
gr.style.margin = 0;
|
|
31
|
-
//gr.style.width = "100%";
|
|
32
30
|
this.res = gr;
|
|
33
31
|
return this; // DANGEROUS FEBRUARY ?
|
|
34
32
|
}
|
|
@@ -39,10 +37,7 @@ class FlexGrid extends Animator {
|
|
|
39
37
|
return "FlexRowLayoutElement";
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
this.res.addEventListener("click", handler);
|
|
44
|
-
return this;
|
|
45
|
-
}
|
|
40
|
+
|
|
46
41
|
|
|
47
42
|
set(options){
|
|
48
43
|
options.id && this.res.setAttribute("id", options.id);
|
|
@@ -51,25 +46,17 @@ class FlexGrid extends Animator {
|
|
|
51
46
|
options.onTap && this.onTap(options.onTap);
|
|
52
47
|
|
|
53
48
|
this.code.push(".set({");
|
|
54
|
-
// this.code.push(JSON.stringify(options));
|
|
55
49
|
// console.log("OPE");
|
|
56
50
|
|
|
57
51
|
options.gap && (this.code.push(`gap: ${options.gap}`));
|
|
58
52
|
options.gap && (this.res.style.gap = options.gap);
|
|
59
53
|
|
|
60
|
-
// options.width && this.code.push(`width: "${options.width}",`);
|
|
61
54
|
options.flex && (this.res.style.flex = options.flex);
|
|
62
55
|
options.flex && this.code.push(`flex: ${options.flex},`);
|
|
63
56
|
|
|
64
|
-
// options.maxWidth && (this.res.style.maxWidth = options.maxWidth);
|
|
65
|
-
// options.maxWidth && this.code.push(`maxWidth: "${options.maxWidth}",`);
|
|
66
57
|
//
|
|
67
|
-
// options.maxWidth && (this.res.style.minWidth = "400px");
|
|
68
|
-
// options.maxWidth && (this.res.style.marginLeft = "auto");
|
|
69
|
-
// options.maxWidth && (this.res.style.marginRight = "auto");
|
|
70
58
|
|
|
71
59
|
// this.res.style.width = "400px"
|
|
72
|
-
//options.width && (this.res.style.width = `${options.width}`);
|
|
73
60
|
options.wrap && (this.res.style.flexWrap = `wrap`); // ok
|
|
74
61
|
|
|
75
62
|
options.wrap && this.code.push(`wrap: ${options.wrap},`);
|
|
@@ -89,12 +76,10 @@ class FlexGrid extends Animator {
|
|
|
89
76
|
let obj = options;
|
|
90
77
|
|
|
91
78
|
this.callReact(obj);
|
|
92
|
-
// console.log(this.code);
|
|
93
79
|
return this;
|
|
94
80
|
}
|
|
95
81
|
|
|
96
82
|
|
|
97
|
-
|
|
98
83
|
callReact(obj){
|
|
99
84
|
this.options = obj;
|
|
100
85
|
|
|
@@ -156,9 +141,6 @@ class FlexGrid extends Animator {
|
|
|
156
141
|
keep.push("span");
|
|
157
142
|
}
|
|
158
143
|
|
|
159
|
-
/* if (obj.transform){
|
|
160
|
-
keep.push("transform");
|
|
161
|
-
}*/
|
|
162
144
|
|
|
163
145
|
// console.log("ARA IS " + arr);
|
|
164
146
|
|
|
@@ -173,7 +155,6 @@ class FlexGrid extends Animator {
|
|
|
173
155
|
|
|
174
156
|
|
|
175
157
|
if (!this.columnAlways){
|
|
176
|
-
// alert(this.columnAlways);
|
|
177
158
|
|
|
178
159
|
|
|
179
160
|
const toCol = () => {
|
|
@@ -228,7 +209,6 @@ if (el != undefined){
|
|
|
228
209
|
}
|
|
229
210
|
|
|
230
211
|
|
|
231
|
-
// ela.style.flex = this.areas[count];
|
|
232
212
|
this.res.appendChild(ela);
|
|
233
213
|
}
|
|
234
214
|
|
|
@@ -260,7 +240,6 @@ if (el != undefined){
|
|
|
260
240
|
this.res.children[i].style.width = "100%";
|
|
261
241
|
}
|
|
262
242
|
} else {
|
|
263
|
-
//console.warn(this.arra);
|
|
264
243
|
for (var i = 0; i < this.res.children.length; i++){
|
|
265
244
|
this.res.children[i].style.flex = `${this.arra[i]}`;
|
|
266
245
|
}
|