bitwrench 2.0.11 → 2.0.12
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/bitwrench-code-edit.cjs.js +1 -1
- package/dist/bitwrench-code-edit.es5.js +1 -1
- package/dist/bitwrench-code-edit.es5.min.js +1 -1
- package/dist/bitwrench-code-edit.esm.js +1 -1
- package/dist/bitwrench-code-edit.esm.min.js +1 -1
- package/dist/bitwrench-code-edit.umd.js +1 -1
- package/dist/bitwrench-code-edit.umd.min.js +1 -1
- package/dist/bitwrench-lean.cjs.js +112 -9
- package/dist/bitwrench-lean.cjs.min.js +5 -5
- package/dist/bitwrench-lean.es5.js +178 -14
- package/dist/bitwrench-lean.es5.min.js +3 -3
- package/dist/bitwrench-lean.esm.js +112 -9
- package/dist/bitwrench-lean.esm.min.js +5 -5
- package/dist/bitwrench-lean.umd.js +112 -9
- package/dist/bitwrench-lean.umd.min.js +5 -5
- package/dist/bitwrench.cjs.js +289 -9
- package/dist/bitwrench.cjs.min.js +5 -5
- package/dist/bitwrench.css +425 -21
- package/dist/bitwrench.es5.js +378 -14
- package/dist/bitwrench.es5.min.js +4 -4
- package/dist/bitwrench.esm.js +289 -9
- package/dist/bitwrench.esm.min.js +5 -5
- package/dist/bitwrench.umd.js +289 -9
- package/dist/bitwrench.umd.min.js +5 -5
- package/dist/builds.json +61 -61
- package/dist/sri.json +25 -25
- package/package.json +1 -1
- package/readme.html +1 -1
- package/src/bitwrench-components-v2.js +176 -0
- package/src/bitwrench-styles.js +208 -15
- package/src/bitwrench.js +39 -2
- package/src/generate-css.js +20 -3
- package/src/version.js +3 -3
package/dist/builds.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.12",
|
|
3
3
|
"buildDate": "2026-03-07",
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"raw": 21195,
|
|
12
12
|
"gzipped": 5376,
|
|
13
13
|
"sourceMap": true,
|
|
14
|
-
"integrity": "sha384
|
|
14
|
+
"integrity": "sha384-iniQT8sbWorsredSMK7ptwV/qghisFyzHxx3+m2DQw/Kut2EJ5QulIg+w8v6xP++"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"file": "bitwrench-lean.cjs.js",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"ver": "2.x",
|
|
20
20
|
"component": "lean",
|
|
21
21
|
"minified": false,
|
|
22
|
-
"raw":
|
|
23
|
-
"gzipped":
|
|
22
|
+
"raw": 201928,
|
|
23
|
+
"gzipped": 49934,
|
|
24
24
|
"sourceMap": true,
|
|
25
|
-
"integrity": "sha384-
|
|
25
|
+
"integrity": "sha384-WRPDBM35RlsbdHCWQNrnOGJTpd9Wv+YL268cwtOR+cpLlA466DCG17i3Lyl/FPQW"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"file": "bitwrench.cjs.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"ver": "2.x",
|
|
31
31
|
"component": "core",
|
|
32
32
|
"minified": false,
|
|
33
|
-
"raw":
|
|
34
|
-
"gzipped":
|
|
33
|
+
"raw": 287589,
|
|
34
|
+
"gzipped": 67737,
|
|
35
35
|
"sourceMap": true,
|
|
36
|
-
"integrity": "sha384-
|
|
36
|
+
"integrity": "sha384-etzFHx5AQ+Bgls3sr0zMxXZgzpVHW42cIDcZ9zyPkukKafSdHn7ahoZ2Y6xzBh1C"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"file": "bitwrench-lean.cjs.min.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"ver": "2.x",
|
|
42
42
|
"component": "lean",
|
|
43
43
|
"minified": true,
|
|
44
|
-
"raw":
|
|
45
|
-
"gzipped":
|
|
44
|
+
"raw": 88559,
|
|
45
|
+
"gzipped": 24187,
|
|
46
46
|
"sourceMap": true,
|
|
47
|
-
"integrity": "sha384-
|
|
47
|
+
"integrity": "sha384-cGO2fyuHV/fZny/mjpsBrXDYbCQiBSoHi2tCl68YKvJ1s9o7I1DYa1NoZt8vsACd"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"file": "bitwrench.cjs.min.js",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"ver": "2.x",
|
|
53
53
|
"component": "core",
|
|
54
54
|
"minified": true,
|
|
55
|
-
"raw":
|
|
56
|
-
"gzipped":
|
|
55
|
+
"raw": 114014,
|
|
56
|
+
"gzipped": 31054,
|
|
57
57
|
"sourceMap": true,
|
|
58
|
-
"integrity": "sha384-
|
|
58
|
+
"integrity": "sha384-Ilrq5jWcDWqMOxcylaFuMIem8T7nF5VXFD+y/r35yNKWZ81PNJwV5GbVfrE3oqjD"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"file": "bitwrench.css",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"ver": "2.x",
|
|
64
64
|
"component": "core",
|
|
65
65
|
"minified": false,
|
|
66
|
-
"raw":
|
|
67
|
-
"gzipped":
|
|
66
|
+
"raw": 111003,
|
|
67
|
+
"gzipped": 14036,
|
|
68
68
|
"sourceMap": false,
|
|
69
|
-
"integrity": "sha384-
|
|
69
|
+
"integrity": "sha384-LuYgAZ4GP4xOWBjQgt/6y2f3i5JeR7BZgDhx5PIrIHTZ45IOuxdwh2KI0k7INzp3"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"file": "bitwrench-code-edit.es5.js",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"raw": 25726,
|
|
78
78
|
"gzipped": 5708,
|
|
79
79
|
"sourceMap": true,
|
|
80
|
-
"integrity": "sha384-
|
|
80
|
+
"integrity": "sha384-TLp3JL/fWoMeLM+Qj9fDXyR5SKUkzdYrX4sJNd54V1x1QRkKQQSAikE1uHOyuvX/"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"file": "bitwrench-lean.es5.js",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"ver": "2.x",
|
|
86
86
|
"component": "lean",
|
|
87
87
|
"minified": false,
|
|
88
|
-
"raw":
|
|
89
|
-
"gzipped":
|
|
88
|
+
"raw": 237397,
|
|
89
|
+
"gzipped": 53769,
|
|
90
90
|
"sourceMap": true,
|
|
91
|
-
"integrity": "sha384-
|
|
91
|
+
"integrity": "sha384-39Oyuxd9HRJMb4Yp/Z2Zm470RUwXvf1et35/Nf0/lQoNpix4oYysFqATBO5CnJqI"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"file": "bitwrench.es5.js",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"ver": "2.x",
|
|
97
97
|
"component": "core",
|
|
98
98
|
"minified": false,
|
|
99
|
-
"raw":
|
|
100
|
-
"gzipped":
|
|
99
|
+
"raw": 349407,
|
|
100
|
+
"gzipped": 74741,
|
|
101
101
|
"sourceMap": true,
|
|
102
|
-
"integrity": "sha384-
|
|
102
|
+
"integrity": "sha384-T16cqIH+lZLQYS9n7ylsUMaNjjsJxaSmrE3iaFE4Xh7IUKUnoMeKZZIkUzbRdYac"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"file": "bitwrench-code-edit.es5.min.js",
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
"component": "code-edit",
|
|
109
109
|
"minified": true,
|
|
110
110
|
"raw": 10827,
|
|
111
|
-
"gzipped":
|
|
111
|
+
"gzipped": 3912,
|
|
112
112
|
"sourceMap": true,
|
|
113
|
-
"integrity": "sha384-
|
|
113
|
+
"integrity": "sha384-NqzhnOPVpj23nHfsOdLrMrjOXVdekW7Ubt5JgvdndQF7KaGSSzTwSwFsGQ4MsjFF"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"file": "bitwrench-lean.es5.min.js",
|
|
@@ -118,10 +118,10 @@
|
|
|
118
118
|
"ver": "2.x",
|
|
119
119
|
"component": "lean",
|
|
120
120
|
"minified": true,
|
|
121
|
-
"raw":
|
|
122
|
-
"gzipped":
|
|
121
|
+
"raw": 95570,
|
|
122
|
+
"gzipped": 25854,
|
|
123
123
|
"sourceMap": true,
|
|
124
|
-
"integrity": "sha384
|
|
124
|
+
"integrity": "sha384-+iiV0Aa7O4K+3eEt8FQMADvSLNt78rAx53lSj01reJS5/m8fp6DbBSyxvrBzC9MZ"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"file": "bitwrench.es5.min.js",
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
"ver": "2.x",
|
|
130
130
|
"component": "core",
|
|
131
131
|
"minified": true,
|
|
132
|
-
"raw":
|
|
133
|
-
"gzipped":
|
|
132
|
+
"raw": 127661,
|
|
133
|
+
"gzipped": 33727,
|
|
134
134
|
"sourceMap": true,
|
|
135
|
-
"integrity": "sha384-
|
|
135
|
+
"integrity": "sha384-VdJRBUX2ui/YB616jEQHPFAG7cE5pppNxr5INoy7nLJyfTFCoki5CTwlhOWZbEa1"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"file": "bitwrench-code-edit.esm.js",
|
|
@@ -141,9 +141,9 @@
|
|
|
141
141
|
"component": "code-edit",
|
|
142
142
|
"minified": false,
|
|
143
143
|
"raw": 20976,
|
|
144
|
-
"gzipped":
|
|
144
|
+
"gzipped": 5297,
|
|
145
145
|
"sourceMap": true,
|
|
146
|
-
"integrity": "sha384-
|
|
146
|
+
"integrity": "sha384-aRENetJ1d48tNUExwFSM8pcDPeuSLzzFNDCCqRZSrw1C3isEH/ODgIsvGwgD+Ixz"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"file": "bitwrench-lean.esm.js",
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
"ver": "2.x",
|
|
152
152
|
"component": "lean",
|
|
153
153
|
"minified": false,
|
|
154
|
-
"raw":
|
|
155
|
-
"gzipped":
|
|
154
|
+
"raw": 201918,
|
|
155
|
+
"gzipped": 49930,
|
|
156
156
|
"sourceMap": true,
|
|
157
|
-
"integrity": "sha384-
|
|
157
|
+
"integrity": "sha384-xMrzcNeMyaaPUW0VM7fJPwxEUc5SzdWp+3+tyPu1tzutGyWtYe9X7VCOQMvLq9kV"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"file": "bitwrench.esm.js",
|
|
@@ -162,10 +162,10 @@
|
|
|
162
162
|
"ver": "2.x",
|
|
163
163
|
"component": "core",
|
|
164
164
|
"minified": false,
|
|
165
|
-
"raw":
|
|
166
|
-
"gzipped":
|
|
165
|
+
"raw": 287579,
|
|
166
|
+
"gzipped": 67734,
|
|
167
167
|
"sourceMap": true,
|
|
168
|
-
"integrity": "sha384-
|
|
168
|
+
"integrity": "sha384-OS7G+ZEexcv5GbbBSEabR3DMsMsMMWRFn155SyyxhpeWpJB3Gf9Aj+H18dSD92ZH"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"file": "bitwrench-code-edit.esm.min.js",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"raw": 10529,
|
|
177
177
|
"gzipped": 3816,
|
|
178
178
|
"sourceMap": true,
|
|
179
|
-
"integrity": "sha384-
|
|
179
|
+
"integrity": "sha384-DjVEPrlQUzEHt5WAVPOJEPLjyrPZdkdGPQp9g3c9WLAavb7GzzmhptAJC4xWB8C4"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"file": "bitwrench-lean.esm.min.js",
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
"ver": "2.x",
|
|
185
185
|
"component": "lean",
|
|
186
186
|
"minified": true,
|
|
187
|
-
"raw":
|
|
188
|
-
"gzipped":
|
|
187
|
+
"raw": 88550,
|
|
188
|
+
"gzipped": 24183,
|
|
189
189
|
"sourceMap": true,
|
|
190
|
-
"integrity": "sha384-
|
|
190
|
+
"integrity": "sha384-Cw024e8+uKz2pBEY7Mz/RTJyR2TPxwJESH9HMJHoh+cHTGM+6jOkR+s9dXX1Z+bu"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"file": "bitwrench.esm.min.js",
|
|
@@ -195,10 +195,10 @@
|
|
|
195
195
|
"ver": "2.x",
|
|
196
196
|
"component": "core",
|
|
197
197
|
"minified": true,
|
|
198
|
-
"raw":
|
|
199
|
-
"gzipped":
|
|
198
|
+
"raw": 114005,
|
|
199
|
+
"gzipped": 31050,
|
|
200
200
|
"sourceMap": true,
|
|
201
|
-
"integrity": "sha384-
|
|
201
|
+
"integrity": "sha384-C7ADCRc/mIv+r4PfmjzY9n0NaJLSQBqq2mkLzDIqP6cXZ8vuES+SoPz2tQ3KWslT"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"file": "bitwrench-code-edit.umd.js",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"raw": 22691,
|
|
210
210
|
"gzipped": 5540,
|
|
211
211
|
"sourceMap": true,
|
|
212
|
-
"integrity": "sha384-
|
|
212
|
+
"integrity": "sha384-nM+ACJXCWnjfrIlJncM3b7PJuf/p/hEfExy3UvxN1IYPaZ1MCrg7Wj+qEFtPkm48"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
"file": "bitwrench-lean.umd.js",
|
|
@@ -217,10 +217,10 @@
|
|
|
217
217
|
"ver": "2.x",
|
|
218
218
|
"component": "lean",
|
|
219
219
|
"minified": false,
|
|
220
|
-
"raw":
|
|
221
|
-
"gzipped":
|
|
220
|
+
"raw": 213302,
|
|
221
|
+
"gzipped": 50711,
|
|
222
222
|
"sourceMap": true,
|
|
223
|
-
"integrity": "sha384-
|
|
223
|
+
"integrity": "sha384-CPfiLHahgxtHfn954B0dwT8DeS1ADNE4SJQ4hj6zXlBhM2D3AW8PHIy3dIlIKeMO"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
"file": "bitwrench.umd.js",
|
|
@@ -228,10 +228,10 @@
|
|
|
228
228
|
"ver": "2.x",
|
|
229
229
|
"component": "core",
|
|
230
230
|
"minified": false,
|
|
231
|
-
"raw":
|
|
232
|
-
"gzipped":
|
|
231
|
+
"raw": 304535,
|
|
232
|
+
"gzipped": 68805,
|
|
233
233
|
"sourceMap": true,
|
|
234
|
-
"integrity": "sha384-
|
|
234
|
+
"integrity": "sha384-DeH2rIkKLdTVwewXAeH5fz4e96Okuenk1IAjSZt7vROMsEo01SNDHXM1eSp8xCF2"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"file": "bitwrench-code-edit.umd.min.js",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"raw": 10827,
|
|
243
243
|
"gzipped": 3911,
|
|
244
244
|
"sourceMap": true,
|
|
245
|
-
"integrity": "sha384-
|
|
245
|
+
"integrity": "sha384-se038rgk3dydSBL8JhCfMVIW2v4wfB3gc4rONSIxvP2LXbCygytldO5gBy8SPWlj"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"file": "bitwrench-lean.umd.min.js",
|
|
@@ -250,10 +250,10 @@
|
|
|
250
250
|
"ver": "2.x",
|
|
251
251
|
"component": "lean",
|
|
252
252
|
"minified": true,
|
|
253
|
-
"raw":
|
|
254
|
-
"gzipped":
|
|
253
|
+
"raw": 88842,
|
|
254
|
+
"gzipped": 24259,
|
|
255
255
|
"sourceMap": true,
|
|
256
|
-
"integrity": "sha384-
|
|
256
|
+
"integrity": "sha384-CdaasF3VEwKBlG8DwV23bql6wOj1BablbD3IcLt4BYGqpd1b5HjQ7MLGQgKXKNZL"
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
"file": "bitwrench.umd.min.js",
|
|
@@ -261,10 +261,10 @@
|
|
|
261
261
|
"ver": "2.x",
|
|
262
262
|
"component": "core",
|
|
263
263
|
"minified": true,
|
|
264
|
-
"raw":
|
|
265
|
-
"gzipped":
|
|
264
|
+
"raw": 114331,
|
|
265
|
+
"gzipped": 31133,
|
|
266
266
|
"sourceMap": true,
|
|
267
|
-
"integrity": "sha384-
|
|
267
|
+
"integrity": "sha384-VJAA6zzMilKOnaqKy6YFOFNORCvlBPElFL7iSX6HucBsOFSGRuXOBZiHbxB+xo3a"
|
|
268
268
|
}
|
|
269
269
|
]
|
|
270
270
|
}
|
package/dist/sri.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.12",
|
|
3
3
|
"algorithm": "sha384",
|
|
4
4
|
"generated": "2026-03-07",
|
|
5
5
|
"files": {
|
|
6
|
-
"bitwrench-code-edit.cjs.js": "sha384
|
|
7
|
-
"bitwrench-code-edit.es5.js": "sha384-
|
|
8
|
-
"bitwrench-code-edit.es5.min.js": "sha384-
|
|
9
|
-
"bitwrench-code-edit.esm.js": "sha384-
|
|
10
|
-
"bitwrench-code-edit.esm.min.js": "sha384-
|
|
11
|
-
"bitwrench-code-edit.umd.js": "sha384-
|
|
12
|
-
"bitwrench-code-edit.umd.min.js": "sha384-
|
|
13
|
-
"bitwrench-lean.cjs.js": "sha384-
|
|
14
|
-
"bitwrench-lean.cjs.min.js": "sha384-
|
|
15
|
-
"bitwrench-lean.es5.js": "sha384-
|
|
16
|
-
"bitwrench-lean.es5.min.js": "sha384
|
|
17
|
-
"bitwrench-lean.esm.js": "sha384-
|
|
18
|
-
"bitwrench-lean.esm.min.js": "sha384-
|
|
19
|
-
"bitwrench-lean.umd.js": "sha384-
|
|
20
|
-
"bitwrench-lean.umd.min.js": "sha384-
|
|
21
|
-
"bitwrench.cjs.js": "sha384-
|
|
22
|
-
"bitwrench.cjs.min.js": "sha384-
|
|
23
|
-
"bitwrench.css": "sha384-
|
|
24
|
-
"bitwrench.es5.js": "sha384-
|
|
25
|
-
"bitwrench.es5.min.js": "sha384-
|
|
26
|
-
"bitwrench.esm.js": "sha384-
|
|
27
|
-
"bitwrench.esm.min.js": "sha384-
|
|
28
|
-
"bitwrench.umd.js": "sha384-
|
|
29
|
-
"bitwrench.umd.min.js": "sha384-
|
|
6
|
+
"bitwrench-code-edit.cjs.js": "sha384-iniQT8sbWorsredSMK7ptwV/qghisFyzHxx3+m2DQw/Kut2EJ5QulIg+w8v6xP++",
|
|
7
|
+
"bitwrench-code-edit.es5.js": "sha384-TLp3JL/fWoMeLM+Qj9fDXyR5SKUkzdYrX4sJNd54V1x1QRkKQQSAikE1uHOyuvX/",
|
|
8
|
+
"bitwrench-code-edit.es5.min.js": "sha384-NqzhnOPVpj23nHfsOdLrMrjOXVdekW7Ubt5JgvdndQF7KaGSSzTwSwFsGQ4MsjFF",
|
|
9
|
+
"bitwrench-code-edit.esm.js": "sha384-aRENetJ1d48tNUExwFSM8pcDPeuSLzzFNDCCqRZSrw1C3isEH/ODgIsvGwgD+Ixz",
|
|
10
|
+
"bitwrench-code-edit.esm.min.js": "sha384-DjVEPrlQUzEHt5WAVPOJEPLjyrPZdkdGPQp9g3c9WLAavb7GzzmhptAJC4xWB8C4",
|
|
11
|
+
"bitwrench-code-edit.umd.js": "sha384-nM+ACJXCWnjfrIlJncM3b7PJuf/p/hEfExy3UvxN1IYPaZ1MCrg7Wj+qEFtPkm48",
|
|
12
|
+
"bitwrench-code-edit.umd.min.js": "sha384-se038rgk3dydSBL8JhCfMVIW2v4wfB3gc4rONSIxvP2LXbCygytldO5gBy8SPWlj",
|
|
13
|
+
"bitwrench-lean.cjs.js": "sha384-WRPDBM35RlsbdHCWQNrnOGJTpd9Wv+YL268cwtOR+cpLlA466DCG17i3Lyl/FPQW",
|
|
14
|
+
"bitwrench-lean.cjs.min.js": "sha384-cGO2fyuHV/fZny/mjpsBrXDYbCQiBSoHi2tCl68YKvJ1s9o7I1DYa1NoZt8vsACd",
|
|
15
|
+
"bitwrench-lean.es5.js": "sha384-39Oyuxd9HRJMb4Yp/Z2Zm470RUwXvf1et35/Nf0/lQoNpix4oYysFqATBO5CnJqI",
|
|
16
|
+
"bitwrench-lean.es5.min.js": "sha384-+iiV0Aa7O4K+3eEt8FQMADvSLNt78rAx53lSj01reJS5/m8fp6DbBSyxvrBzC9MZ",
|
|
17
|
+
"bitwrench-lean.esm.js": "sha384-xMrzcNeMyaaPUW0VM7fJPwxEUc5SzdWp+3+tyPu1tzutGyWtYe9X7VCOQMvLq9kV",
|
|
18
|
+
"bitwrench-lean.esm.min.js": "sha384-Cw024e8+uKz2pBEY7Mz/RTJyR2TPxwJESH9HMJHoh+cHTGM+6jOkR+s9dXX1Z+bu",
|
|
19
|
+
"bitwrench-lean.umd.js": "sha384-CPfiLHahgxtHfn954B0dwT8DeS1ADNE4SJQ4hj6zXlBhM2D3AW8PHIy3dIlIKeMO",
|
|
20
|
+
"bitwrench-lean.umd.min.js": "sha384-CdaasF3VEwKBlG8DwV23bql6wOj1BablbD3IcLt4BYGqpd1b5HjQ7MLGQgKXKNZL",
|
|
21
|
+
"bitwrench.cjs.js": "sha384-etzFHx5AQ+Bgls3sr0zMxXZgzpVHW42cIDcZ9zyPkukKafSdHn7ahoZ2Y6xzBh1C",
|
|
22
|
+
"bitwrench.cjs.min.js": "sha384-Ilrq5jWcDWqMOxcylaFuMIem8T7nF5VXFD+y/r35yNKWZ81PNJwV5GbVfrE3oqjD",
|
|
23
|
+
"bitwrench.css": "sha384-LuYgAZ4GP4xOWBjQgt/6y2f3i5JeR7BZgDhx5PIrIHTZ45IOuxdwh2KI0k7INzp3",
|
|
24
|
+
"bitwrench.es5.js": "sha384-T16cqIH+lZLQYS9n7ylsUMaNjjsJxaSmrE3iaFE4Xh7IUKUnoMeKZZIkUzbRdYac",
|
|
25
|
+
"bitwrench.es5.min.js": "sha384-VdJRBUX2ui/YB616jEQHPFAG7cE5pppNxr5INoy7nLJyfTFCoki5CTwlhOWZbEa1",
|
|
26
|
+
"bitwrench.esm.js": "sha384-OS7G+ZEexcv5GbbBSEabR3DMsMsMMWRFn155SyyxhpeWpJB3Gf9Aj+H18dSD92ZH",
|
|
27
|
+
"bitwrench.esm.min.js": "sha384-C7ADCRc/mIv+r4PfmjzY9n0NaJLSQBqq2mkLzDIqP6cXZ8vuES+SoPz2tQ3KWslT",
|
|
28
|
+
"bitwrench.umd.js": "sha384-DeH2rIkKLdTVwewXAeH5fz4e96Okuenk1IAjSZt7vROMsEo01SNDHXM1eSp8xCF2",
|
|
29
|
+
"bitwrench.umd.min.js": "sha384-VJAA6zzMilKOnaqKy6YFOFNORCvlBPElFL7iSX6HucBsOFSGRuXOBZiHbxB+xo3a"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/package.json
CHANGED
package/readme.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta name="generator" content="bitwrench v2.0.
|
|
6
|
+
<meta name="generator" content="bitwrench v2.0.12">
|
|
7
7
|
<title>bitwrench.js - README</title>
|
|
8
8
|
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
|
|
9
9
|
<script src="dist/bitwrench.umd.js"></script>
|
|
@@ -2718,6 +2718,182 @@ export function makeAvatar(props = {}) {
|
|
|
2718
2718
|
};
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
2721
|
+
/**
|
|
2722
|
+
* Create a carousel/slideshow component with slide transitions
|
|
2723
|
+
*
|
|
2724
|
+
* Supports image slides, TACO content slides, captions, prev/next controls,
|
|
2725
|
+
* dot indicators, and optional auto-play. Uses CSS translateX transitions.
|
|
2726
|
+
*
|
|
2727
|
+
* @param {Object} [props] - Carousel configuration
|
|
2728
|
+
* @param {Array<Object>} [props.items=[]] - Slide items
|
|
2729
|
+
* @param {string|Object} props.items[].content - Slide content (TACO, string, or img element)
|
|
2730
|
+
* @param {string} [props.items[].caption] - Caption text shown at bottom of slide
|
|
2731
|
+
* @param {boolean} [props.showControls=true] - Show prev/next arrow buttons
|
|
2732
|
+
* @param {boolean} [props.showIndicators=true] - Show dot navigation
|
|
2733
|
+
* @param {boolean} [props.autoPlay=false] - Auto-advance slides
|
|
2734
|
+
* @param {number} [props.interval=5000] - Auto-advance interval in ms
|
|
2735
|
+
* @param {string} [props.height='300px'] - Carousel height
|
|
2736
|
+
* @param {number} [props.startIndex=0] - Initial slide index
|
|
2737
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
2738
|
+
* @returns {Object} TACO object representing a carousel
|
|
2739
|
+
* @category Component Builders
|
|
2740
|
+
* @example
|
|
2741
|
+
* const carousel = makeCarousel({
|
|
2742
|
+
* items: [
|
|
2743
|
+
* { content: { t: 'img', a: { src: 'photo.jpg' } }, caption: 'Photo 1' },
|
|
2744
|
+
* { content: { t: 'div', c: 'Text slide' } }
|
|
2745
|
+
* ],
|
|
2746
|
+
* autoPlay: true,
|
|
2747
|
+
* interval: 3000
|
|
2748
|
+
* });
|
|
2749
|
+
*/
|
|
2750
|
+
export function makeCarousel(props = {}) {
|
|
2751
|
+
const {
|
|
2752
|
+
items = [],
|
|
2753
|
+
showControls = true,
|
|
2754
|
+
showIndicators = true,
|
|
2755
|
+
autoPlay = false,
|
|
2756
|
+
interval = 5000,
|
|
2757
|
+
height = '300px',
|
|
2758
|
+
startIndex = 0,
|
|
2759
|
+
className = ''
|
|
2760
|
+
} = props;
|
|
2761
|
+
|
|
2762
|
+
// Shared navigation logic
|
|
2763
|
+
function goToSlide(carouselEl, index) {
|
|
2764
|
+
var total = carouselEl.querySelectorAll('.bw-carousel-slide').length;
|
|
2765
|
+
if (index < 0) index = total - 1;
|
|
2766
|
+
if (index >= total) index = 0;
|
|
2767
|
+
carouselEl.setAttribute('data-carousel-index', index);
|
|
2768
|
+
var track = carouselEl.querySelector('.bw-carousel-track');
|
|
2769
|
+
track.style.transform = 'translateX(-' + (index * 100) + '%)';
|
|
2770
|
+
// Update indicators
|
|
2771
|
+
var indicators = carouselEl.querySelectorAll('.bw-carousel-indicator');
|
|
2772
|
+
for (var i = 0; i < indicators.length; i++) {
|
|
2773
|
+
if (i === index) {
|
|
2774
|
+
indicators[i].classList.add('active');
|
|
2775
|
+
} else {
|
|
2776
|
+
indicators[i].classList.remove('active');
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
// Arrow SVGs (inline data URIs, same pattern as accordion chevrons)
|
|
2782
|
+
var prevArrow = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e";
|
|
2783
|
+
var nextArrow = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e";
|
|
2784
|
+
|
|
2785
|
+
var slides = items.map(function(item) {
|
|
2786
|
+
var slideContent = [
|
|
2787
|
+
item.content,
|
|
2788
|
+
item.caption && {
|
|
2789
|
+
t: 'div',
|
|
2790
|
+
a: { class: 'bw-carousel-caption' },
|
|
2791
|
+
c: item.caption
|
|
2792
|
+
}
|
|
2793
|
+
].filter(Boolean);
|
|
2794
|
+
|
|
2795
|
+
return {
|
|
2796
|
+
t: 'div',
|
|
2797
|
+
a: { class: 'bw-carousel-slide' },
|
|
2798
|
+
c: slideContent.length === 1 ? slideContent[0] : slideContent
|
|
2799
|
+
};
|
|
2800
|
+
});
|
|
2801
|
+
|
|
2802
|
+
var children = [
|
|
2803
|
+
// Track
|
|
2804
|
+
{
|
|
2805
|
+
t: 'div',
|
|
2806
|
+
a: {
|
|
2807
|
+
class: 'bw-carousel-track',
|
|
2808
|
+
style: 'transform: translateX(-' + (startIndex * 100) + '%)'
|
|
2809
|
+
},
|
|
2810
|
+
c: slides
|
|
2811
|
+
}
|
|
2812
|
+
];
|
|
2813
|
+
|
|
2814
|
+
// Prev/Next controls
|
|
2815
|
+
if (showControls && items.length > 1) {
|
|
2816
|
+
children.push({
|
|
2817
|
+
t: 'button',
|
|
2818
|
+
a: {
|
|
2819
|
+
class: 'bw-carousel-control bw-carousel-control-prev',
|
|
2820
|
+
type: 'button',
|
|
2821
|
+
'aria-label': 'Previous slide',
|
|
2822
|
+
onclick: function(e) {
|
|
2823
|
+
var carousel = e.target.closest('.bw-carousel');
|
|
2824
|
+
var idx = parseInt(carousel.getAttribute('data-carousel-index') || '0');
|
|
2825
|
+
goToSlide(carousel, idx - 1);
|
|
2826
|
+
}
|
|
2827
|
+
},
|
|
2828
|
+
c: { t: 'img', a: { src: prevArrow, alt: '', role: 'presentation' } }
|
|
2829
|
+
});
|
|
2830
|
+
children.push({
|
|
2831
|
+
t: 'button',
|
|
2832
|
+
a: {
|
|
2833
|
+
class: 'bw-carousel-control bw-carousel-control-next',
|
|
2834
|
+
type: 'button',
|
|
2835
|
+
'aria-label': 'Next slide',
|
|
2836
|
+
onclick: function(e) {
|
|
2837
|
+
var carousel = e.target.closest('.bw-carousel');
|
|
2838
|
+
var idx = parseInt(carousel.getAttribute('data-carousel-index') || '0');
|
|
2839
|
+
goToSlide(carousel, idx + 1);
|
|
2840
|
+
}
|
|
2841
|
+
},
|
|
2842
|
+
c: { t: 'img', a: { src: nextArrow, alt: '', role: 'presentation' } }
|
|
2843
|
+
});
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
// Indicators
|
|
2847
|
+
if (showIndicators && items.length > 1) {
|
|
2848
|
+
children.push({
|
|
2849
|
+
t: 'div',
|
|
2850
|
+
a: { class: 'bw-carousel-indicators' },
|
|
2851
|
+
c: items.map(function(_, i) {
|
|
2852
|
+
return {
|
|
2853
|
+
t: 'button',
|
|
2854
|
+
a: {
|
|
2855
|
+
class: 'bw-carousel-indicator' + (i === startIndex ? ' active' : ''),
|
|
2856
|
+
type: 'button',
|
|
2857
|
+
'aria-label': 'Go to slide ' + (i + 1),
|
|
2858
|
+
'data-slide-index': i,
|
|
2859
|
+
onclick: function(e) {
|
|
2860
|
+
var carousel = e.target.closest('.bw-carousel');
|
|
2861
|
+
var idx = parseInt(e.target.getAttribute('data-slide-index'));
|
|
2862
|
+
goToSlide(carousel, idx);
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
})
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
return {
|
|
2871
|
+
t: 'div',
|
|
2872
|
+
a: {
|
|
2873
|
+
class: ('bw-carousel ' + className).trim(),
|
|
2874
|
+
style: 'height: ' + height,
|
|
2875
|
+
'data-carousel-index': startIndex
|
|
2876
|
+
},
|
|
2877
|
+
c: children,
|
|
2878
|
+
o: {
|
|
2879
|
+
type: 'carousel',
|
|
2880
|
+
state: { activeIndex: startIndex, autoPlay: autoPlay, interval: interval },
|
|
2881
|
+
mounted: autoPlay ? function(el) {
|
|
2882
|
+
var intervalId = setInterval(function() {
|
|
2883
|
+
var idx = parseInt(el.getAttribute('data-carousel-index') || '0');
|
|
2884
|
+
goToSlide(el, idx + 1);
|
|
2885
|
+
}, interval);
|
|
2886
|
+
el._bw_carouselInterval = intervalId;
|
|
2887
|
+
} : undefined,
|
|
2888
|
+
unmount: autoPlay ? function(el) {
|
|
2889
|
+
if (el._bw_carouselInterval) {
|
|
2890
|
+
clearInterval(el._bw_carouselInterval);
|
|
2891
|
+
}
|
|
2892
|
+
} : undefined
|
|
2893
|
+
}
|
|
2894
|
+
};
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2721
2897
|
export const componentHandles = {
|
|
2722
2898
|
card: CardHandle,
|
|
2723
2899
|
table: TableHandle,
|