nodality 1.0.215 → 1.0.216
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.LICENSE.txt +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 +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.LICENSE.txt +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.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.LICENSE.txt +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 +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.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.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.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 +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.LICENSE.txt +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.LICENSE.txt +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.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +1 -1
- package/layout/audio.js +1 -5
- package/layout/audionew.js +1 -1
- package/layout/base-2.js +1 -1
- package/layout/base.js +1 -1
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +1 -1
- package/layout/button.js +7 -30
- package/layout/cards.js +6 -2
- package/layout/center.js +1 -29
- package/layout/checkbox.js +1 -5
- package/layout/circle.js +6 -2
- package/layout/code.js +1 -1
- package/layout/container.js +15 -16
- package/layout/dropdown-2025.js +1 -1
- package/layout/external-stylesheet.js +1 -1
- package/layout/flex-card.js +20 -10
- package/layout/flex-grid.js +1 -5
- package/layout/flex-row.js +2 -6
- package/layout/footer.js +1 -1
- 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 +1 -1
- package/layout/grid.js +1 -1
- package/layout/group.js +6 -6
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +15 -26
- package/layout/index.js +1 -1
- package/layout/label.js +1 -1
- package/layout/link.js +19 -51
- package/layout/list-OLD.js +1 -1
- 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 +1 -1
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/navBar-OLD.js +1 -1
- package/layout/new-flat-adder.js +1 -1
- package/layout/new-nav-bar.js +1 -1
- package/layout/offset-container.js +1 -15
- 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 -1
- package/layout/saved-new-nav-bar.js +1 -1
- 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 +14 -28
- package/layout/text.js +2 -45
- package/layout/ulist.js +1 -12
- package/layout/video.js +1 -1
- package/layout/without-new.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/box.js +0 -35
- 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/grid-new.js +0 -301
- package/layout/header.js +0 -181
- package/layout/image-old.js +0 -453
- package/layout/modernwrap.js +0 -97
- package/layout/multiswitcherBeta.js +0 -69
package/layout/image-old.js
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* nodality v1.0.215
|
|
3
|
-
* (c) 2026 Filip Vabrousek
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/*
|
|
11
|
-
class ExactImage {
|
|
12
|
-
constructor(url){
|
|
13
|
-
this.image(url);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
image(url, value, direction){
|
|
17
|
-
|
|
18
|
-
// this.el = null;
|
|
19
|
-
let query = window.matchMedia("(max-device-width: 415px)");
|
|
20
|
-
let back = document.createElement("div");
|
|
21
|
-
back.style.backgroundColor = "#ecf0f1";
|
|
22
|
-
back.style.width = "100%";
|
|
23
|
-
back.style.height = "200";
|
|
24
|
-
|
|
25
|
-
if (query.matches){
|
|
26
|
-
back.style.height = "500";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
back.style.backgroundImage = `url(${url})`;
|
|
30
|
-
back.style.backgroundPosition = "center center";
|
|
31
|
-
back.style.backgroundSize = "cover";
|
|
32
|
-
back.style.borderTopLeftRadius = `${value}px`;
|
|
33
|
-
back.style.borderTopRightRadius = `${value}px`;
|
|
34
|
-
|
|
35
|
-
this.el = back;
|
|
36
|
-
return this;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
render(){
|
|
41
|
-
return this.el;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
class Imager extends Animator {
|
|
47
|
-
constructor(url, type, mode) {
|
|
48
|
-
super();
|
|
49
|
-
this.url = url;
|
|
50
|
-
this.res = null;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (type == "exact"){
|
|
56
|
-
this.image(this.url, mode);
|
|
57
|
-
} else {
|
|
58
|
-
this.setup();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
toSticky(){
|
|
63
|
-
this.res.style.position = "sticky";
|
|
64
|
-
this.res.style.top = "0px";
|
|
65
|
-
return this;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
setID(id){
|
|
69
|
-
this.res.setAttribute("id", id);
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
square(){
|
|
74
|
-
this.res.style.width = "30%";
|
|
75
|
-
this.res.style.paddingBottom = "30%";
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
opacity(value){
|
|
81
|
-
this.res.style.opacity = `${value}`;
|
|
82
|
-
return this;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
setGrid(){
|
|
87
|
-
this.res.style.gridRow = "span 2";
|
|
88
|
-
this.res.style.gridColumn= "span 3";
|
|
89
|
-
//this.res.style.gridColumn = "span 3";
|
|
90
|
-
return this;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
transform(str){
|
|
94
|
-
this.res.style.transform = str; //"rotate3d(.5,-.866,0,15deg) rotate(60deg)";
|
|
95
|
-
return this;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
offset(){
|
|
99
|
-
this.res.style.marginLeft = "-60px";
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
offseta(){
|
|
104
|
-
this.res.style.marginLeft = "90px";
|
|
105
|
-
this.res.style.marginTop = "-30px";
|
|
106
|
-
return this;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
borderAround(data){
|
|
110
|
-
this.res.style.border = data;
|
|
111
|
-
return this;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
setClass(name){
|
|
115
|
-
this.res.setAttribute("class", name);
|
|
116
|
-
return this;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
scale(obj){
|
|
120
|
-
|
|
121
|
-
let previousWidth = this.res.style.width;
|
|
122
|
-
|
|
123
|
-
this.res.style.transition= "0.5s all";
|
|
124
|
-
// alert(previousWidth);
|
|
125
|
-
|
|
126
|
-
this.res.addEventListener("mouseover", () => {
|
|
127
|
-
let previousWidth = this.res.style.width;
|
|
128
|
-
this.res.style.transform = "scale(1.04)";
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
this.res.addEventListener("mouseout", () => {
|
|
132
|
-
let previousWidth = this.res.style.width;
|
|
133
|
-
this.res.style.transform = "scale(1.0)";
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return this;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
onTap(e) {
|
|
142
|
-
this.res.addEventListener("click", e);
|
|
143
|
-
return this;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
border(corners){
|
|
147
|
-
this.res.style.borderTopLeftRadius = "16px";
|
|
148
|
-
this.res.style.borderTopRightRadius = "16px";
|
|
149
|
-
return this;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
allRound(dimensions){
|
|
153
|
-
this.res.style.borderRadius = dimensions;
|
|
154
|
-
return this;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
mobileWidth(){
|
|
159
|
-
let query = window.matchMedia("(max-device-width: 415px)");
|
|
160
|
-
if (query.matches){
|
|
161
|
-
this.res.style.width = "120%";
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return this;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
image(url, mode, value, direction){
|
|
169
|
-
|
|
170
|
-
// this.el = null;
|
|
171
|
-
let query = window.matchMedia("(max-device-width: 415px)");
|
|
172
|
-
let back = document.createElement("div");
|
|
173
|
-
//back.style.backgroundColor = "#ecf0f1";
|
|
174
|
-
back.style.width = "100%";
|
|
175
|
-
back.style.height = "200";
|
|
176
|
-
|
|
177
|
-
if (query.matches){
|
|
178
|
-
back.style.height = "500";
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
back.style.backgroundImage = `url(${url})`;
|
|
182
|
-
back.style.backgroundPosition = "center center";
|
|
183
|
-
// back.style.backgroundRepeatX = "no-repeat";
|
|
184
|
-
back.style.backgroundRepeat = "no-repeat";
|
|
185
|
-
|
|
186
|
-
back.style.backgroundSize = "cover";
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (mode === "contain"){
|
|
190
|
-
back.style.backgroundSize = "contain";
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
back.style.borderTopLeftRadius = `${value}px`;
|
|
195
|
-
back.style.borderTopRightRadius = `${value}px`;
|
|
196
|
-
|
|
197
|
-
this.res = back;
|
|
198
|
-
return this;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
setup() {
|
|
206
|
-
let img = document.createElement("img");
|
|
207
|
-
img.style.width = "100%";
|
|
208
|
-
//img.style.height = "auto";
|
|
209
|
-
img.src = this.url;
|
|
210
|
-
this.res = img;
|
|
211
|
-
return this;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
autoW(){
|
|
215
|
-
this.res.style.width = "initial";
|
|
216
|
-
return this;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
float(dir){
|
|
220
|
-
this.res.style.float = `${dir}`;
|
|
221
|
-
return this;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
fillAvailable(){
|
|
225
|
-
this.res.style.height = "-webkit-fill-available";
|
|
226
|
-
return this;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
flex(val){
|
|
233
|
-
this.res.style.flex = 1;
|
|
234
|
-
return this;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
height(h){
|
|
238
|
-
this.res.style.height = h;
|
|
239
|
-
this.res.style.width = "auto";
|
|
240
|
-
return this;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
expand(obj){
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
const convert = (value) => {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
var convertedValue = value;
|
|
258
|
-
|
|
259
|
-
if ((value.includes("%")) || value.includes("px")){
|
|
260
|
-
|
|
261
|
-
convertedValue = convertedValue.substr(0, 2);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
if (value.includes("%")){
|
|
267
|
-
return Number(convertedValue / 100 * window.innerWidth);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
if (value.includes("px")){
|
|
271
|
-
return Number(convertedValue);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const check = () => {
|
|
277
|
-
let mq = window.matchMedia(`(min-width: ${obj.at})`);
|
|
278
|
-
|
|
279
|
-
if (mq.matches){
|
|
280
|
-
// alert("MATCH")
|
|
281
|
-
this.res.style.width = `${obj.width}`;
|
|
282
|
-
|
|
283
|
-
let newWidth = window.innerWidth / 2 - convert(obj.width) / 2;
|
|
284
|
-
// alert(newWidth);
|
|
285
|
-
this.res.style.marginLeft = `${newWidth}px`; // `calc(${window.innerWidth}-${obj.width} / 2)`;
|
|
286
|
-
} else {
|
|
287
|
-
this.res.style.width = `100%`;
|
|
288
|
-
this.res.style.marginLeft = `0px`;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
let mqa = window.matchMedia(`(max-device-width: 415px)`);
|
|
293
|
-
if (mqa.matches){
|
|
294
|
-
this.res.style.width = `100%`;
|
|
295
|
-
this.res.style.marginLeft = `0px`;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
check();
|
|
303
|
-
|
|
304
|
-
window.addEventListener("resize", check);
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return this;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/*center(w){
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
const adj = () => {
|
|
314
|
-
if (this.res.style.width != 0){
|
|
315
|
-
let count = window.innerWidth / 2 - (((w * window.innerWidth) / 100) / 2);
|
|
316
|
-
this.res.style.marginLeft = `${count}px`;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
adj();
|
|
322
|
-
window.onresize = adj();
|
|
323
|
-
return this;
|
|
324
|
-
}*/
|
|
325
|
-
|
|
326
|
-
width(w){
|
|
327
|
-
this.res.style.width = w;
|
|
328
|
-
this.res.style.height = "auto";
|
|
329
|
-
return this;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
margin(L, T, R, B) {
|
|
333
|
-
if (L || T || R || B){ // CAUGHT MYSELF
|
|
334
|
-
this.res.style.marginLeft = L;
|
|
335
|
-
this.res.style.marginTop = T;
|
|
336
|
-
this.res.style.marginRight = R;
|
|
337
|
-
this.res.style.marginBottom = B;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
if (!T && !R && !B){
|
|
341
|
-
|
|
342
|
-
if (T !== 0 || R !== 0 || B !== 0){
|
|
343
|
-
// alert("j")
|
|
344
|
-
this.res.style.margin = L;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
return this;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
padding(el){
|
|
355
|
-
this.res.style.padding = el;
|
|
356
|
-
return this;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
size(w, h) {
|
|
360
|
-
if (w && h) {
|
|
361
|
-
this.res.style.width = w;
|
|
362
|
-
this.res.style.height = h;
|
|
363
|
-
} else {
|
|
364
|
-
this.res.style.width = w;
|
|
365
|
-
this.res.style.height = w;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
return this;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
frame(obj) {
|
|
374
|
-
let w = obj.width;
|
|
375
|
-
let h = obj.height;
|
|
376
|
-
|
|
377
|
-
if (w && h) {
|
|
378
|
-
this.res.style.width = w;
|
|
379
|
-
this.res.style.height = h;
|
|
380
|
-
} else {
|
|
381
|
-
this.res.style.width = w;
|
|
382
|
-
this.res.style.height = w;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
return this;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
RSize(w, h, ratio) {
|
|
391
|
-
|
|
392
|
-
let mq = window.matchMedia("(max-device-width: 420px)");
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
if (w && h) {
|
|
396
|
-
|
|
397
|
-
this.res.style.width = mq.matches ? w * ratio : w;
|
|
398
|
-
this.res.style.height = mq.matches ? h * ratio : h;
|
|
399
|
-
} else {
|
|
400
|
-
this.res.style.width = mq.matches ? w * ratio : w;
|
|
401
|
-
this.res.style.height = mq.matches ? w * ratio : w;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
return this;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
shadow(obj){
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
if (obj.type === "mild"){
|
|
417
|
-
this.res.style.boxShadow = `0px 3px 15px rgba(0,0,0,0.2)`;
|
|
418
|
-
} else {
|
|
419
|
-
this.res.style.boxShadow = `${obj.x}px ${obj.y}px ${obj.radius}px ${obj.color}`;
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
return this;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
clipShape(shape) {
|
|
431
|
-
this.res.style.borderRadius = "50%";
|
|
432
|
-
return this;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
cornerRadius(val){
|
|
436
|
-
this.res.style.borderRadius = val;
|
|
437
|
-
return this;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
render(el) {
|
|
441
|
-
if (el) {
|
|
442
|
-
document.querySelector(el).appendChild(this.res);
|
|
443
|
-
} else {
|
|
444
|
-
return this.res;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
window.ExactImage
|
|
450
|
-
Imager = ExactImage
|
|
451
|
-
Imager;
|
|
452
|
-
export { ExactImage
|
|
453
|
-
Imager };
|
package/layout/modernwrap.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* nodality v1.0.215
|
|
3
|
-
* (c) 2026 Filip Vabrousek
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ModernWrap {
|
|
13
|
-
|
|
14
|
-
setup(options){
|
|
15
|
-
let gr = document.createElement("div");
|
|
16
|
-
gr.style.padding = 0;
|
|
17
|
-
gr.style.margin = 0;
|
|
18
|
-
this.res = gr;
|
|
19
|
-
return this;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
add(els){
|
|
24
|
-
for (var i = 0; i < els.length; i++){
|
|
25
|
-
this.res.appendChild(els[i].render().render());
|
|
26
|
-
}
|
|
27
|
-
return this;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/*width(w, shouldCenter){
|
|
33
|
-
this.res.style.width = w;
|
|
34
|
-
|
|
35
|
-
if (shouldCenter){
|
|
36
|
-
this.res.style.marginLeft = "auto";
|
|
37
|
-
this.res.style.marginRight = "auto";
|
|
38
|
-
}
|
|
39
|
-
return this;
|
|
40
|
-
}*/
|
|
41
|
-
|
|
42
|
-
padding(value){
|
|
43
|
-
this.res.style.padding = `${value}px`;
|
|
44
|
-
return this;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
size(w, h){
|
|
48
|
-
this.w = w;
|
|
49
|
-
this.h = h;
|
|
50
|
-
|
|
51
|
-
if (this.w){
|
|
52
|
-
this.res.style.width = this.w;
|
|
53
|
-
} else {
|
|
54
|
-
this.res.style.width = window.innerWidth;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (this.h){
|
|
58
|
-
this.res.style.height = this.h;
|
|
59
|
-
} else {
|
|
60
|
-
this.res.style.height = window.innerHeight;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return this;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
/*items(els){
|
|
72
|
-
for (var i = 0; i < els.length; i++){
|
|
73
|
-
this.res.appendChild(els[i].render().render());
|
|
74
|
-
}
|
|
75
|
-
return this;
|
|
76
|
-
}*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
border(color, width){
|
|
81
|
-
this.res.style.border = `${width}px solid ${color}`;
|
|
82
|
-
return this;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
render(el){
|
|
86
|
-
if (el){
|
|
87
|
-
document.querySelector(el).appendChild(this.res);
|
|
88
|
-
} else {
|
|
89
|
-
return this.res;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export { ModernWrap };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* nodality v1.0.215
|
|
3
|
-
* (c) 2026 Filip Vabrousek
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
|
-
class MultiSwitcherBeta {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.views = [];
|
|
12
|
-
this.container = null;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
switchViews(views) {
|
|
16
|
-
this.views = views;
|
|
17
|
-
return this;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
render(selector) {
|
|
21
|
-
this.container = selector ? document.querySelector(selector) : document.createElement("div");
|
|
22
|
-
|
|
23
|
-
if (!this.container) {
|
|
24
|
-
console.error(`Container ${selector} not found`);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Sort views by window width
|
|
29
|
-
this.views.sort((a, b) => parseInt(a.at) - parseInt(b.at));
|
|
30
|
-
|
|
31
|
-
// Add resize event listener
|
|
32
|
-
window.addEventListener('resize', this.updateView.bind(this));
|
|
33
|
-
|
|
34
|
-
// Initial render
|
|
35
|
-
this.updateView();
|
|
36
|
-
|
|
37
|
-
return this.container;
|
|
38
|
-
}
|
|
39
|
-
/*
|
|
40
|
-
updateView() {
|
|
41
|
-
const windowWidth = window.innerWidth;
|
|
42
|
-
|
|
43
|
-
for (let i = this.views.length - 1; i >= 0; i--) {
|
|
44
|
-
if (windowWidth >= parseInt(this.views[i].at)) {
|
|
45
|
-
// this.container.innerHTML = ''; // Clear current view
|
|
46
|
-
this.container.appendChild(this.views[i].view); // Set new view
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}*/
|
|
51
|
-
|
|
52
|
-
updateView() { // GPT 4o
|
|
53
|
-
const windowWidth = window.innerWidth;
|
|
54
|
-
|
|
55
|
-
for (let i = this.views.length - 1; i >= 0; i--) {
|
|
56
|
-
if (windowWidth >= parseInt(this.views[i].at)) {
|
|
57
|
-
if (this.container.firstChild !== this.views[i].view) {
|
|
58
|
-
if (this.container.firstChild) {
|
|
59
|
-
this.container.replaceChild(this.views[i].view, this.container.firstChild);
|
|
60
|
-
} else {
|
|
61
|
-
this.container.appendChild(this.views[i].view);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export { MultiSwitcherBeta };
|