nodality 1.0.217 → 1.0.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +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.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +1 -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 -41
- package/layout/button.js +1 -77
- package/layout/center.js +1 -41
- package/layout/checkbox.js +1 -5
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -11
- package/layout/container.js +1 -95
- package/layout/dropdown-2025.js +1 -3
- package/layout/flex-card.js +1 -4
- package/layout/flex-grid.js +1 -19
- package/layout/flex-row.js +5 -227
- 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 +1 -160
- package/layout/index.js +1 -1
- package/layout/link.js +1 -259
- package/layout/list.js +5 -13
- 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 +4 -40
- 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 +1 -3
- package/layout/text.js +1 -154
- 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/flex-card.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -27,7 +27,6 @@ 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;
|
|
@@ -55,7 +54,6 @@ class Card extends Animator {
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
|
|
58
|
-
//obj.arrayMargin && this.arrayMargin(obj.arrayMargin.sides, obj.arrayMargin.value);
|
|
59
57
|
|
|
60
58
|
|
|
61
59
|
obj.width && (this.res.style.width = obj.width);
|
|
@@ -117,7 +115,6 @@ this.options = obj;
|
|
|
117
115
|
|
|
118
116
|
this.chainReact(arr, this.options.id, keep);
|
|
119
117
|
|
|
120
|
-
// this.res.style.border = "1px solid green";
|
|
121
118
|
}
|
|
122
119
|
}
|
|
123
120
|
//22155 snap to change phone screen
|
package/layout/flex-grid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
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
|
}
|
|
@@ -51,25 +49,17 @@ class FlexGrid extends Animator {
|
|
|
51
49
|
options.onTap && this.onTap(options.onTap);
|
|
52
50
|
|
|
53
51
|
this.code.push(".set({");
|
|
54
|
-
// this.code.push(JSON.stringify(options));
|
|
55
52
|
// console.log("OPE");
|
|
56
53
|
|
|
57
54
|
options.gap && (this.code.push(`gap: ${options.gap}`));
|
|
58
55
|
options.gap && (this.res.style.gap = options.gap);
|
|
59
56
|
|
|
60
|
-
// options.width && this.code.push(`width: "${options.width}",`);
|
|
61
57
|
options.flex && (this.res.style.flex = options.flex);
|
|
62
58
|
options.flex && this.code.push(`flex: ${options.flex},`);
|
|
63
59
|
|
|
64
|
-
// options.maxWidth && (this.res.style.maxWidth = options.maxWidth);
|
|
65
|
-
// options.maxWidth && this.code.push(`maxWidth: "${options.maxWidth}",`);
|
|
66
60
|
//
|
|
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
61
|
|
|
71
62
|
// this.res.style.width = "400px"
|
|
72
|
-
//options.width && (this.res.style.width = `${options.width}`);
|
|
73
63
|
options.wrap && (this.res.style.flexWrap = `wrap`); // ok
|
|
74
64
|
|
|
75
65
|
options.wrap && this.code.push(`wrap: ${options.wrap},`);
|
|
@@ -89,12 +79,10 @@ class FlexGrid extends Animator {
|
|
|
89
79
|
let obj = options;
|
|
90
80
|
|
|
91
81
|
this.callReact(obj);
|
|
92
|
-
// console.log(this.code);
|
|
93
82
|
return this;
|
|
94
83
|
}
|
|
95
84
|
|
|
96
85
|
|
|
97
|
-
|
|
98
86
|
callReact(obj){
|
|
99
87
|
this.options = obj;
|
|
100
88
|
|
|
@@ -156,9 +144,6 @@ class FlexGrid extends Animator {
|
|
|
156
144
|
keep.push("span");
|
|
157
145
|
}
|
|
158
146
|
|
|
159
|
-
/* if (obj.transform){
|
|
160
|
-
keep.push("transform");
|
|
161
|
-
}*/
|
|
162
147
|
|
|
163
148
|
// console.log("ARA IS " + arr);
|
|
164
149
|
|
|
@@ -173,7 +158,6 @@ class FlexGrid extends Animator {
|
|
|
173
158
|
|
|
174
159
|
|
|
175
160
|
if (!this.columnAlways){
|
|
176
|
-
// alert(this.columnAlways);
|
|
177
161
|
|
|
178
162
|
|
|
179
163
|
const toCol = () => {
|
|
@@ -228,7 +212,6 @@ if (el != undefined){
|
|
|
228
212
|
}
|
|
229
213
|
|
|
230
214
|
|
|
231
|
-
// ela.style.flex = this.areas[count];
|
|
232
215
|
this.res.appendChild(ela);
|
|
233
216
|
}
|
|
234
217
|
|
|
@@ -260,7 +243,6 @@ if (el != undefined){
|
|
|
260
243
|
this.res.children[i].style.width = "100%";
|
|
261
244
|
}
|
|
262
245
|
} else {
|
|
263
|
-
//console.warn(this.arra);
|
|
264
246
|
for (var i = 0; i < this.res.children.length; i++){
|
|
265
247
|
this.res.children[i].style.flex = `${this.arra[i]}`;
|
|
266
248
|
}
|
package/layout/flex-row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -15,7 +15,6 @@ class FlexRow extends Animator {
|
|
|
15
15
|
this.res = null;
|
|
16
16
|
this.setup();
|
|
17
17
|
this.responsive();
|
|
18
|
-
// this.code.push(" new FlexRow()");
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
getType(){
|
|
@@ -23,7 +22,6 @@ class FlexRow extends Animator {
|
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
|
|
26
|
-
|
|
27
25
|
set(options){
|
|
28
26
|
//alert("OJ")
|
|
29
27
|
this.options = options;
|
|
@@ -40,7 +38,6 @@ class FlexRow extends Animator {
|
|
|
40
38
|
obj.top !== undefined && (this.res.style.top = obj.top);
|
|
41
39
|
|
|
42
40
|
|
|
43
|
-
//if (obj.gradient){
|
|
44
41
|
// console.log("STAFF");
|
|
45
42
|
// console.log(obj.id);
|
|
46
43
|
// }
|
|
@@ -48,8 +45,6 @@ class FlexRow extends Animator {
|
|
|
48
45
|
//// console.log("MARA");
|
|
49
46
|
//// console.log(obj.mar);
|
|
50
47
|
|
|
51
|
-
//obj.pad && this.pad(obj.pad);
|
|
52
|
-
// obj.mar && this.mar(obj.mar);
|
|
53
48
|
|
|
54
49
|
|
|
55
50
|
|
|
@@ -63,13 +58,11 @@ class FlexRow extends Animator {
|
|
|
63
58
|
options.id && this.res.setAttribute("id", options.id);
|
|
64
59
|
this.commonMethods(obj);
|
|
65
60
|
|
|
66
|
-
//this.code.push(`\n .set({`);
|
|
67
61
|
if (options.padding){
|
|
68
62
|
this.pad([{a: options.padding}]);
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
//alert(options.opacity);
|
|
72
|
-
//(options.opacity === 0) && (this.res.style.opacity = 0 /*options.opacity*/);
|
|
73
66
|
|
|
74
67
|
|
|
75
68
|
if (options.background){
|
|
@@ -80,23 +73,18 @@ class FlexRow extends Animator {
|
|
|
80
73
|
if (options.alignTo){
|
|
81
74
|
//alert("J")
|
|
82
75
|
this.res.style.justifyContent = options.alignTo;
|
|
83
|
-
// let stringified = JSON.stringify(options.alignTo);
|
|
84
|
-
//this.code.push(`\n alignTo: "${stringified}",`);
|
|
85
76
|
}
|
|
86
77
|
|
|
87
78
|
|
|
88
79
|
|
|
89
80
|
|
|
90
81
|
|
|
91
|
-
|
|
92
82
|
if (options.background){
|
|
93
83
|
this.res.style.backgroundColor = options.background;
|
|
94
|
-
// this.code.push(`\n background: "${options.background}",`);
|
|
95
84
|
}
|
|
96
85
|
|
|
97
86
|
if (options.justify){
|
|
98
87
|
this.res.style.justifyContent = options.justify;
|
|
99
|
-
//this.code.push(`\n justify: "${options.justify}",`);
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
if (options.border) {
|
|
@@ -113,26 +101,15 @@ class FlexRow extends Animator {
|
|
|
113
101
|
|
|
114
102
|
|
|
115
103
|
|
|
116
|
-
// this.code.push(`\n border: ["${options.border[0]}", "${options.border[1]}"],`);
|
|
117
104
|
}
|
|
118
105
|
|
|
119
106
|
|
|
120
107
|
// Give this to animator
|
|
121
108
|
if (options.borderObj){
|
|
122
109
|
|
|
123
|
-
/* let type = options.borderObj.type ?? "solid";
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
this.res.style.border = `${options.borderObj.width} ${type} ${options.borderObj.color}`
|
|
127
|
-
this.res.style.borderRadius = options.borderObj.radius;
|
|
128
|
-
|
|
129
|
-
let stringified = JSON.stringify(options.borderObj);
|
|
130
|
-
this.code.push(`\n borderObj: ${stringified},`);
|
|
131
|
-
*/
|
|
132
110
|
|
|
133
111
|
this.borderObj(options.borderObj);
|
|
134
112
|
let stringified = JSON.stringify(options.borderObj);
|
|
135
|
-
// this.code.push(`\n borderObj: ${stringified},`);
|
|
136
113
|
/*borderObj: {
|
|
137
114
|
side: "all",
|
|
138
115
|
width: "3px",
|
|
@@ -141,10 +118,8 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
141
118
|
}
|
|
142
119
|
|
|
143
120
|
options.width && (this.res.style.width = options.width);
|
|
144
|
-
// options.width && this.code.push(`\n width: "${options.width}",`);
|
|
145
121
|
|
|
146
122
|
options.height && (this.res.style.height = options.height);
|
|
147
|
-
// options.height && this.code.push(`\n height: "${options.height}",`);
|
|
148
123
|
|
|
149
124
|
options.gap && (this.res.style.gap = options.gap);
|
|
150
125
|
|
|
@@ -152,7 +127,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
152
127
|
if (options.align){
|
|
153
128
|
let stringified = JSON.stringify(options.align);
|
|
154
129
|
this.res.style.alignItems = "flex-start";
|
|
155
|
-
// this.code.push(`\n alignIts: "flex-start",`);
|
|
156
130
|
this.res.style.alignItems = "flex-start";
|
|
157
131
|
}
|
|
158
132
|
|
|
@@ -164,7 +138,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
164
138
|
if (options.alignIts){
|
|
165
139
|
let stringified = JSON.stringify(options.alignIts);
|
|
166
140
|
this.res.style.alignItems = "flex-start";
|
|
167
|
-
// this.code.push(`\n alignIts: ${stringified},`);
|
|
168
141
|
|
|
169
142
|
}
|
|
170
143
|
// options.alignIts && alert("J");
|
|
@@ -185,34 +158,26 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
185
158
|
|
|
186
159
|
// // console.warn(options);
|
|
187
160
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
161
|
+
// `toColumn` collapsed to a column unconditionally, ignoring the
|
|
162
|
+
// breakpoint it was given. `colat` is the documented option that
|
|
163
|
+
// actually honours one, via toColumnAt().
|
|
164
|
+
options.toColumn && this.deprecatedOption("toColumn", "colat");
|
|
191
165
|
|
|
192
166
|
|
|
193
167
|
options.column && this.makeCol(); // OK
|
|
194
168
|
|
|
195
169
|
|
|
196
|
-
|
|
197
170
|
if (options.colat){
|
|
198
171
|
|
|
199
172
|
options.colat && this.toColumnAt(options.colat);
|
|
200
|
-
//this.code.push(`\n colat: "${options.colat}",`);
|
|
201
173
|
}
|
|
202
174
|
|
|
203
175
|
|
|
204
176
|
//alert(options.arrpad);
|
|
205
177
|
|
|
206
178
|
|
|
207
|
-
//options.arrayMargin && this.code.push(`\n arrayMargin: {sides: [${options.arrayMargin.sides.map(m => `"${m}"`).join(", ")}], value: "${options.arrayMargin.value}"},`); // 2345 06/03
|
|
208
|
-
|
|
209
|
-
|
|
210
179
|
|
|
211
180
|
|
|
212
|
-
//obj.pad && this.pad(obj.pad);
|
|
213
|
-
//obj.respad && this.respad(obj.respad);
|
|
214
|
-
//obj.resmar && this.resmar(obj.resmar);
|
|
215
|
-
//obj.mar && this.mar(obj.mar);
|
|
216
181
|
|
|
217
182
|
// alert(options.multipad);
|
|
218
183
|
|
|
@@ -221,16 +186,12 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
221
186
|
//alert("K")
|
|
222
187
|
|
|
223
188
|
this.makeJustify(options.justify);
|
|
224
|
-
// this.setAlign(options.align);
|
|
225
189
|
}
|
|
226
190
|
|
|
227
191
|
if (options.justify){
|
|
228
192
|
|
|
229
193
|
this.makeAlign(options.justify);
|
|
230
|
-
// this.setAlign(options.align);
|
|
231
194
|
}
|
|
232
|
-
//this.res.style.justifyContent = "flex-start";
|
|
233
|
-
//alert(this.res.style.justifyContent);
|
|
234
195
|
if (options.justifo === "flex-start"){
|
|
235
196
|
|
|
236
197
|
this.res.style.justifyContent = "flex-start";
|
|
@@ -244,87 +205,9 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
244
205
|
// undefined `borderObj.radius`.
|
|
245
206
|
options.radius && (this.res.style.borderRadius = options.radius);
|
|
246
207
|
|
|
247
|
-
//const obj = options;
|
|
248
208
|
options.aligns && this.aligns(options.aligns);
|
|
249
209
|
|
|
250
210
|
|
|
251
|
-
/*if (obj && obj.stroke || obj && obj.gradient || obj && obj.span){
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (obj.gradient) {
|
|
255
|
-
this.globalGradient = obj.gradient.op.gradient;
|
|
256
|
-
// console.log(obj.gradient);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
if (obj.stroke){
|
|
261
|
-
// console.warn("OAP");
|
|
262
|
-
// console.log(obj.stroke.op.color);
|
|
263
|
-
|
|
264
|
-
super.setAny({globalBlast: `${obj.stroke.op.width} ${obj.stroke.op.color}`});
|
|
265
|
-
|
|
266
|
-
// console.warn("GBL");
|
|
267
|
-
// console.warn(super.globalBlast);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// Filter just the elements with layout element
|
|
271
|
-
let ft = [obj.stroke, obj.gradient, obj.animation, obj.span]//obj.gradient.filter(el => el.op.name !== "layout");
|
|
272
|
-
// console.log(ft);
|
|
273
|
-
|
|
274
|
-
ft = ft.filter(el => el != undefined);
|
|
275
|
-
|
|
276
|
-
let arr = [];
|
|
277
|
-
|
|
278
|
-
for (var i = 0; i < ft.length; i++){
|
|
279
|
-
// console.log("Hello");
|
|
280
|
-
arr.push({
|
|
281
|
-
range: ft[i].range,
|
|
282
|
-
log: ft[i].op.name,
|
|
283
|
-
target: ft[i].target
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// console.log(arr);
|
|
288
|
-
this.protoReact(arr, options.id);
|
|
289
|
-
}*/
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
/*
|
|
294
|
-
if (obj && obj.id && obj.stroke || obj && obj.id && obj.gradient || obj && obj.id && obj.span || obj && obj.id && obj.backgroundOp){
|
|
295
|
-
//alert("P")
|
|
296
|
-
if (obj.gradient){
|
|
297
|
-
this.globalGradient = obj.gradient.op.gradient;
|
|
298
|
-
|
|
299
|
-
} // OK
|
|
300
|
-
|
|
301
|
-
if (obj.stroke){
|
|
302
|
-
super.setAny({globalBlast: `${obj.stroke.op.width} ${obj.stroke.op.color}`});
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// Filter just the elements with layout element
|
|
306
|
-
let ft = [obj.stroke, obj.gradient, obj.animation, obj.span, obj.backgroundOp]//obj.gradient.filter(el => el.op.name !== "layout");
|
|
307
|
-
ft = ft.filter(el => el != undefined);
|
|
308
|
-
|
|
309
|
-
let arr = [];
|
|
310
|
-
|
|
311
|
-
for (var i = 0; i < ft.length; i++){
|
|
312
|
-
arr.push({
|
|
313
|
-
range: ft[i].range,
|
|
314
|
-
log: ft[i].op.name,
|
|
315
|
-
target: ft[i].target
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// console.log("-----RDAAA----");
|
|
320
|
-
// console.log(arr);
|
|
321
|
-
// console.log(obj.id);
|
|
322
|
-
this.res.setAttribute("id", obj.id);
|
|
323
|
-
this.betaReact(arr, obj.id);
|
|
324
|
-
// this.protoReact(arr, obj.id);
|
|
325
|
-
} // 17:06:00 17/03/2024 Yes!!!
|
|
326
|
-
|
|
327
|
-
*/
|
|
328
211
|
|
|
329
212
|
this.callReact(obj);
|
|
330
213
|
|
|
@@ -334,7 +217,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
334
217
|
this.res.style.marginRight = "auto";
|
|
335
218
|
}
|
|
336
219
|
|
|
337
|
-
// this.code.push(`\n })`);
|
|
338
220
|
return this;
|
|
339
221
|
}
|
|
340
222
|
|
|
@@ -402,9 +284,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
402
284
|
keep.push("span");
|
|
403
285
|
}
|
|
404
286
|
|
|
405
|
-
/* if (obj.transform){
|
|
406
|
-
keep.push("transform");
|
|
407
|
-
}*/
|
|
408
287
|
|
|
409
288
|
// console.log("ARA IS " + arr);
|
|
410
289
|
|
|
@@ -424,7 +303,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
424
303
|
|
|
425
304
|
|
|
426
305
|
if (!this.columnAlways){
|
|
427
|
-
// alert(this.columnAlways);
|
|
428
306
|
|
|
429
307
|
|
|
430
308
|
const toCol = () => {
|
|
@@ -489,34 +367,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
489
367
|
}
|
|
490
368
|
|
|
491
369
|
|
|
492
|
-
toColumn(at){
|
|
493
|
-
|
|
494
|
-
const toCol = () => {
|
|
495
|
-
let media = window.matchMedia(`(max-width: ${at})`);
|
|
496
|
-
let mobileMedia = window.matchMedia(`(max-device-width: 415px)`);
|
|
497
|
-
// alert(media);
|
|
498
|
-
|
|
499
|
-
//// console.log(mobileMedia);
|
|
500
|
-
|
|
501
|
-
if (media.matches || mobileMedia.matches){
|
|
502
|
-
this.res.style.flexDirection = "column";
|
|
503
|
-
} else {
|
|
504
|
-
this.res.style.flexDirection = "row";
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
toCol();
|
|
510
|
-
window.addEventListener("resize", toCol);
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
return this;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
|
|
520
370
|
toCode(){
|
|
521
371
|
// copy and clean options
|
|
522
372
|
const clean = {};
|
|
@@ -540,30 +390,15 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
540
390
|
.map(item => (item?.toCode ? item.toCode() : "/* element */"))
|
|
541
391
|
.join(",\n ");
|
|
542
392
|
|
|
543
|
-
//return ["new Text('Hello')"];
|
|
544
393
|
|
|
545
394
|
return [[
|
|
546
395
|
`new FlexRow().set(${objString})`,
|
|
547
396
|
itemsCode ? `.items([\n ${itemsCode}\n])` : ""
|
|
548
397
|
].join("")]; //commented out
|
|
549
398
|
|
|
550
|
-
/*
|
|
551
|
-
const objString = JSON
|
|
552
|
-
.stringify(this.options, null, 4)
|
|
553
|
-
.replace(/"([^"]+)":/g, '$1:');
|
|
554
|
-
|
|
555
|
-
const itemsCode = this.items.map(item => item.toCode()).join(",\n ");
|
|
556
|
-
|
|
557
|
-
return [
|
|
558
|
-
`new FlexRow().set(${objString}).items([`,
|
|
559
|
-
` ${itemsCode}`,
|
|
560
|
-
`])`
|
|
561
|
-
].join("\n");
|
|
562
|
-
//return this.code; // 21:40:09*/
|
|
563
399
|
}
|
|
564
400
|
|
|
565
401
|
|
|
566
|
-
|
|
567
402
|
|
|
568
403
|
|
|
569
404
|
cornerRadius(el){
|
|
@@ -573,7 +408,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
573
408
|
|
|
574
409
|
|
|
575
410
|
|
|
576
|
-
|
|
577
411
|
makeJustify(opt){
|
|
578
412
|
//alert("KJ");
|
|
579
413
|
if (opt === "start"){
|
|
@@ -600,8 +434,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
600
434
|
|
|
601
435
|
//alert(opt)
|
|
602
436
|
this.res.style.justifyContent = opt;
|
|
603
|
-
// let stringified = JSON.stringify(options.alignTo);
|
|
604
|
-
//this.code.push(`\n alignTo: "${stringified}",`);
|
|
605
437
|
}
|
|
606
438
|
|
|
607
439
|
return this;
|
|
@@ -614,15 +446,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
614
446
|
}
|
|
615
447
|
|
|
616
448
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
toColumn(){
|
|
623
|
-
this.res.style.flexDirection = "column";
|
|
624
|
-
return this;
|
|
625
|
-
}
|
|
626
449
|
|
|
627
450
|
|
|
628
451
|
|
|
@@ -637,7 +460,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
637
460
|
flex.style.display = "flex";
|
|
638
461
|
flex.style.justifyContent = "space-around";
|
|
639
462
|
flex.style.alignItems = "center";
|
|
640
|
-
// flex.style.width = "100%";
|
|
641
463
|
this.res = flex;
|
|
642
464
|
|
|
643
465
|
|
|
@@ -652,8 +474,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
652
474
|
}
|
|
653
475
|
|
|
654
476
|
|
|
655
|
-
|
|
656
|
-
|
|
657
477
|
/*
|
|
658
478
|
{
|
|
659
479
|
if
|
|
@@ -703,11 +523,9 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
703
523
|
//// console.log("2 images enter flex row")
|
|
704
524
|
//// console.warn(arr); // 2 images enter flexRow or there is problem in FlexRow code gen
|
|
705
525
|
|
|
706
|
-
//// console.warn(this.res);
|
|
707
526
|
|
|
708
527
|
this.els = arr;
|
|
709
528
|
this.items = arr;
|
|
710
|
-
// this.code.push(".items([");
|
|
711
529
|
|
|
712
530
|
/*
|
|
713
531
|
// console.log("FL ITEM---");
|
|
@@ -724,8 +542,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
724
542
|
if (arr[i] != undefined){
|
|
725
543
|
if (arr[i].render instanceof Function){ // 170736
|
|
726
544
|
let r = arr[i].render();
|
|
727
|
-
// r.style.width = "100%";
|
|
728
|
-
//r.style.flex = 1;
|
|
729
545
|
this.res.appendChild(r);
|
|
730
546
|
} else {
|
|
731
547
|
this.res.appendChild(arr[i]);
|
|
@@ -734,23 +550,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
734
550
|
|
|
735
551
|
|
|
736
552
|
|
|
737
|
-
//this.code.push("L");
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
/* if (arr[i].toCode instanceof Array){
|
|
741
|
-
// // console.warn(arr[i].toCode().flatMap(x => x));
|
|
742
|
-
this.code.push(arr[i].toCode().flatMap(x => x));
|
|
743
|
-
} else {
|
|
744
|
-
if (arr[i].toCode){
|
|
745
|
-
this.code.push(arr[i].toCode());
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
}
|
|
751
|
-
}*/
|
|
752
|
-
|
|
753
|
-
|
|
754
553
|
if (arr[i] != undefined){
|
|
755
554
|
|
|
756
555
|
|
|
@@ -777,36 +576,16 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
777
576
|
|
|
778
577
|
|
|
779
578
|
//// console.log("FREDERICK!");
|
|
780
|
-
//// console.log(this.code);
|
|
781
579
|
|
|
782
|
-
//this.code = this.code.flatMap(x => x).flatMap(x => x);
|
|
783
580
|
}
|
|
784
581
|
|
|
785
582
|
|
|
786
|
-
//this.code.push("])");
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
// this.code = this.code.flatMap(x => x);
|
|
790
|
-
// // console.log(this.code);
|
|
791
|
-
|
|
792
|
-
|
|
793
583
|
|
|
794
584
|
return this;
|
|
795
585
|
}
|
|
796
586
|
|
|
797
587
|
|
|
798
588
|
|
|
799
|
-
|
|
800
|
-
resizeValues(){
|
|
801
|
-
let newWidth = window.innerWidth * 0.7;
|
|
802
|
-
let aspect = (this.els[1].getHeight() / this.els[1].getWidth());
|
|
803
|
-
let goal = newWidth * aspect;
|
|
804
|
-
|
|
805
|
-
this.res.children[0].style.height = `${goal}px`;
|
|
806
|
-
this.res.children[0].style.width = `30%`;
|
|
807
|
-
this.res.children[1].style.width = `70%`;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
589
|
responsive(h){
|
|
811
590
|
let media = window.matchMedia(`(max-device-width: 415px)`);
|
|
812
591
|
|
|
@@ -835,7 +614,6 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
835
614
|
|
|
836
615
|
|
|
837
616
|
render(el) {
|
|
838
|
-
// // console.log("BORDER:" + this.res.style.border);
|
|
839
617
|
if (el){
|
|
840
618
|
document.querySelector(el).appendChild(this.res);
|
|
841
619
|
} else {
|