jaxs 0.9.6 → 0.9.8
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/jaxs.d.ts +2 -2
- package/dist/jaxs.js +174 -174
- package/dist/jaxs.umd.cjs +173 -173
- package/package.json +1 -1
package/dist/jaxs.umd.cjs
CHANGED
|
@@ -67,8 +67,33 @@
|
|
|
67
67
|
reset: (e) => v(e).reset(),
|
|
68
68
|
isTrue: (e) => v(e).isTrue(),
|
|
69
69
|
isFalse: (e) => v(e).isFalse(),
|
|
70
|
-
}
|
|
71
|
-
|
|
70
|
+
},
|
|
71
|
+
vt = (e) => typeof e == 'boolean',
|
|
72
|
+
yt = (e) => typeof e == 'number',
|
|
73
|
+
$ = (e) => typeof e == 'string',
|
|
74
|
+
y = (e) => Array.isArray(e),
|
|
75
|
+
w = (e) => e !== null && !y(e) && typeof e == 'object',
|
|
76
|
+
gt = { boolean: vt, number: yt, string: $, array: y, object: w },
|
|
77
|
+
Et = (e, t) => e === t,
|
|
78
|
+
At = (e, t) => Object.keys(e).length === Object.keys(t).length,
|
|
79
|
+
D = (e, t) =>
|
|
80
|
+
!(w(e) && w(t)) || !At(e, t)
|
|
81
|
+
? !1
|
|
82
|
+
: Object.keys(e).every((s) => {
|
|
83
|
+
const r = e[s],
|
|
84
|
+
n = t[s]
|
|
85
|
+
return g(r, n)
|
|
86
|
+
}),
|
|
87
|
+
P = (e, t) =>
|
|
88
|
+
!(y(e) && y(t)) || e.length !== t.length
|
|
89
|
+
? !1
|
|
90
|
+
: e.every((s, r) => {
|
|
91
|
+
const n = t[r]
|
|
92
|
+
return g(s, n)
|
|
93
|
+
}),
|
|
94
|
+
g = (e, t) => (w(e) ? D(e, t) : y(e) ? P(e, t) : Et(e, t)),
|
|
95
|
+
wt = { objects: D, arrays: P, equal: g }
|
|
96
|
+
class Nt {
|
|
72
97
|
constructor(t) {
|
|
73
98
|
this.store = t
|
|
74
99
|
}
|
|
@@ -122,17 +147,17 @@
|
|
|
122
147
|
const s = this.value
|
|
123
148
|
k(s, t), this.update(s)
|
|
124
149
|
}
|
|
125
|
-
|
|
150
|
+
find(t) {
|
|
126
151
|
return this.value.find(t)
|
|
127
152
|
}
|
|
128
153
|
replace(t, s) {
|
|
129
154
|
const r = this.value,
|
|
130
|
-
n = r.
|
|
155
|
+
n = r.findIndex((i) => g(i, t))
|
|
131
156
|
n !== -1 && ((r[n] = s), this.update(r))
|
|
132
157
|
}
|
|
133
158
|
}
|
|
134
|
-
const m = (e) => new
|
|
135
|
-
|
|
159
|
+
const m = (e) => new Nt(e),
|
|
160
|
+
St = {
|
|
136
161
|
push: (e, t) => m(e).push(t),
|
|
137
162
|
pop: (e) => m(e).pop(),
|
|
138
163
|
unshift: (e, t) => m(e).unshift(t),
|
|
@@ -144,10 +169,10 @@
|
|
|
144
169
|
reset: (e) => m(e).reset(),
|
|
145
170
|
includes: (e, t) => m(e).includes(t),
|
|
146
171
|
appendIfUnique: (e, t) => m(e).appendIfUnique(t),
|
|
147
|
-
|
|
172
|
+
find: (e, t) => m(e).find(t),
|
|
148
173
|
replace: (e, t, s) => m(e).replace(t, s),
|
|
149
174
|
}
|
|
150
|
-
class
|
|
175
|
+
class _t {
|
|
151
176
|
constructor(t) {
|
|
152
177
|
this.store = t
|
|
153
178
|
}
|
|
@@ -186,22 +211,16 @@
|
|
|
186
211
|
return !!this.value[t]
|
|
187
212
|
}
|
|
188
213
|
}
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
reset: (e) =>
|
|
192
|
-
resetAttribute: (e, t) =>
|
|
193
|
-
updateAttribute: (e, t, s) =>
|
|
194
|
-
updateAttributes: (e, t) =>
|
|
195
|
-
attributeTruthy: (e, t) =>
|
|
214
|
+
const E = (e) => new _t(e),
|
|
215
|
+
xt = {
|
|
216
|
+
reset: (e) => E(e).reset(),
|
|
217
|
+
resetAttribute: (e, t) => E(e).resetAttribute(t),
|
|
218
|
+
updateAttribute: (e, t, s) => E(e).updateAttribute(t, s),
|
|
219
|
+
updateAttributes: (e, t) => E(e).updateAttributes(t),
|
|
220
|
+
attributeTruthy: (e, t) => E(e).attributeTruthy(t),
|
|
196
221
|
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
$ = (e) => typeof e == 'string',
|
|
200
|
-
g = (e) => Array.isArray(e),
|
|
201
|
-
A = (e) => e !== null && !g(e) && typeof e == 'object',
|
|
202
|
-
Nt = { boolean: At, number: wt, string: $, array: g, object: A },
|
|
203
|
-
St = (e, t) => t.createElement(e),
|
|
204
|
-
_t = (e, t) => {
|
|
222
|
+
Tt = (e, t) => t.createElement(e),
|
|
223
|
+
jt = (e, t) => {
|
|
205
224
|
for (const s in t) {
|
|
206
225
|
if (s === '__self') continue
|
|
207
226
|
const r = t[s].toString()
|
|
@@ -212,7 +231,7 @@
|
|
|
212
231
|
$(r) && r.trim() === '' ? e.removeAttribute(s) : e.setAttribute(s, r)
|
|
213
232
|
}
|
|
214
233
|
},
|
|
215
|
-
|
|
234
|
+
Ot = (e, t, s) => {
|
|
216
235
|
const r = {}
|
|
217
236
|
for (const n in t) {
|
|
218
237
|
const i = t[n],
|
|
@@ -222,12 +241,12 @@
|
|
|
222
241
|
}
|
|
223
242
|
e.eventMaps = r
|
|
224
243
|
},
|
|
225
|
-
|
|
226
|
-
const n =
|
|
227
|
-
return
|
|
244
|
+
Mt = (e, t, s, r) => {
|
|
245
|
+
const n = Tt(e, r.document)
|
|
246
|
+
return jt(n, t), Ot(n, s, r.publish), n
|
|
228
247
|
},
|
|
229
248
|
N = 'http://www.w3.org/2000/svg',
|
|
230
|
-
|
|
249
|
+
kt = {
|
|
231
250
|
animate: !0,
|
|
232
251
|
animateMotion: !0,
|
|
233
252
|
animateTransform: !0,
|
|
@@ -291,8 +310,8 @@
|
|
|
291
310
|
use: !0,
|
|
292
311
|
view: !0,
|
|
293
312
|
},
|
|
294
|
-
|
|
295
|
-
|
|
313
|
+
$t = (e, t) => !!(kt[e] || (e === 'a' && t === N)),
|
|
314
|
+
Dt = (e, t, s) => {
|
|
296
315
|
const r = s.createElementNS(N, e)
|
|
297
316
|
for (const n in t)
|
|
298
317
|
n === '__self' ||
|
|
@@ -300,24 +319,24 @@
|
|
|
300
319
|
r.setAttributeNS(null, n, t[n].toString())
|
|
301
320
|
return r
|
|
302
321
|
},
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
class
|
|
322
|
+
Pt = (e) => e.namespaceURI === N,
|
|
323
|
+
Bt = (e, t) => t.createTextNode(e)
|
|
324
|
+
class Ft {
|
|
306
325
|
constructor(t) {
|
|
307
326
|
this.value = t.toString()
|
|
308
327
|
}
|
|
309
328
|
render(t) {
|
|
310
|
-
const s =
|
|
329
|
+
const s = Bt(this.value, t.document)
|
|
311
330
|
return (s.__jsx = 'TextNode'), [s]
|
|
312
331
|
}
|
|
313
332
|
}
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
B = (e) =>
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
333
|
+
const Vt = (e) => typeof e == 'string' || typeof e == 'number',
|
|
334
|
+
Lt = (e) => new Ft(e),
|
|
335
|
+
zt = (e) => (Vt(e) ? Lt(e) : e),
|
|
336
|
+
B = (e) => Kt(e).map(zt).flat(),
|
|
337
|
+
Kt = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
|
|
338
|
+
F = (e, t = {}) => B(e || t.children || []),
|
|
339
|
+
Rt = (e, t = '') => {
|
|
321
340
|
const s = {},
|
|
322
341
|
r = {}
|
|
323
342
|
for (const n in e) {
|
|
@@ -327,25 +346,25 @@
|
|
|
327
346
|
r[o] = i ? i.toString() : ''
|
|
328
347
|
} else {
|
|
329
348
|
if (i === !1) continue
|
|
330
|
-
n === '__source' ? (s.__source = e.__source) : (s[n] =
|
|
349
|
+
n === '__source' ? (s.__source = e.__source) : (s[n] = It(n, i, t))
|
|
331
350
|
}
|
|
332
351
|
}
|
|
333
352
|
return { attributes: s, events: r }
|
|
334
353
|
},
|
|
335
|
-
|
|
336
|
-
|
|
354
|
+
It = (e, t, s = '') => (t == null ? s : t.toString()),
|
|
355
|
+
Ut = (e, t) => {
|
|
337
356
|
const s = e || {},
|
|
338
|
-
r =
|
|
357
|
+
r = F(t, s)
|
|
339
358
|
return (s.children = s.children || r), s
|
|
340
359
|
},
|
|
341
|
-
|
|
342
|
-
|
|
360
|
+
V = (e, t, s, r = []) => e.reduce(qt(t, s), r).flat(),
|
|
361
|
+
qt = (e, t) => (s, r) =>
|
|
343
362
|
r
|
|
344
363
|
? Array.isArray(r)
|
|
345
|
-
?
|
|
364
|
+
? V(r, e, t, s)
|
|
346
365
|
: (r.render(e, t).forEach((n) => s.push(n)), s)
|
|
347
366
|
: s
|
|
348
|
-
class
|
|
367
|
+
class L {
|
|
349
368
|
constructor(t) {
|
|
350
369
|
this.collection = B(t)
|
|
351
370
|
}
|
|
@@ -355,7 +374,7 @@
|
|
|
355
374
|
return this.attachToParent(r), r
|
|
356
375
|
}
|
|
357
376
|
generateDom(t) {
|
|
358
|
-
return
|
|
377
|
+
return V(this.collection, t, this.parentElement)
|
|
359
378
|
}
|
|
360
379
|
attachToParent(t) {
|
|
361
380
|
if (this.parentElement === void 0) return
|
|
@@ -363,7 +382,7 @@
|
|
|
363
382
|
t.forEach((r) => s.appendChild(r))
|
|
364
383
|
}
|
|
365
384
|
}
|
|
366
|
-
class
|
|
385
|
+
class Jt {
|
|
367
386
|
constructor(t, s) {
|
|
368
387
|
;(this.type = t), (this.attributes = s)
|
|
369
388
|
}
|
|
@@ -391,14 +410,14 @@
|
|
|
391
410
|
return `${this.type}${t}${s}${r}`
|
|
392
411
|
}
|
|
393
412
|
}
|
|
394
|
-
class
|
|
413
|
+
class Ht {
|
|
395
414
|
constructor(t, s, r = []) {
|
|
396
415
|
this.type = t
|
|
397
|
-
const { events: n, attributes: i } =
|
|
416
|
+
const { events: n, attributes: i } = Rt(s)
|
|
398
417
|
;(this.events = n),
|
|
399
418
|
(this.attributes = i),
|
|
400
|
-
(this.isSvg =
|
|
401
|
-
(this.children = new
|
|
419
|
+
(this.isSvg = $t(this.type, this.attributes.xmlns)),
|
|
420
|
+
(this.children = new L(r))
|
|
402
421
|
}
|
|
403
422
|
render(t) {
|
|
404
423
|
const s = this.generateDom(t)
|
|
@@ -408,24 +427,24 @@
|
|
|
408
427
|
return this.isSvg ? this.generateSvgDom(t) : this.generateHtmlDom(t)
|
|
409
428
|
}
|
|
410
429
|
generateHtmlDom(t) {
|
|
411
|
-
const s =
|
|
430
|
+
const s = Mt(this.type, this.attributes, this.events, t)
|
|
412
431
|
return (s.__jsx = this.jsxKey()), s
|
|
413
432
|
}
|
|
414
433
|
generateSvgDom(t) {
|
|
415
|
-
const s =
|
|
434
|
+
const s = Dt(this.type, this.attributes, t.document)
|
|
416
435
|
return (s.__jsx = this.jsxKey()), s
|
|
417
436
|
}
|
|
418
437
|
jsxKey() {
|
|
419
|
-
return new
|
|
438
|
+
return new Jt(this.type, this.attributes).generate()
|
|
420
439
|
}
|
|
421
440
|
}
|
|
422
|
-
const
|
|
423
|
-
typeof e == 'string' ? new
|
|
424
|
-
|
|
425
|
-
const s =
|
|
426
|
-
return new
|
|
441
|
+
const z = (e, t, ...s) =>
|
|
442
|
+
typeof e == 'string' ? new Ht(e, t, s) : e(Ut(t, s))
|
|
443
|
+
z.fragment = (e, t) => {
|
|
444
|
+
const s = F(t, e)
|
|
445
|
+
return new L(s)
|
|
427
446
|
}
|
|
428
|
-
class
|
|
447
|
+
class Gt {
|
|
429
448
|
constructor(t, s, r) {
|
|
430
449
|
;(this.template = t),
|
|
431
450
|
(this.selector = s),
|
|
@@ -450,45 +469,45 @@
|
|
|
450
469
|
return this.renderKit.document.querySelector(this.selector)
|
|
451
470
|
}
|
|
452
471
|
}
|
|
453
|
-
const
|
|
454
|
-
const r = new
|
|
472
|
+
const Wt = (e, t, s) => {
|
|
473
|
+
const r = new Gt(e, t, s)
|
|
455
474
|
return r.renderAndAttach(s), r
|
|
456
475
|
},
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
476
|
+
K = 'go-to-href',
|
|
477
|
+
R = 'go-to',
|
|
478
|
+
A = 'navigation:location-change',
|
|
479
|
+
I = 'navigation:route-change',
|
|
480
|
+
Ct = Object.freeze(
|
|
462
481
|
Object.defineProperty(
|
|
463
482
|
{
|
|
464
483
|
__proto__: null,
|
|
465
|
-
linkNavigationEvent:
|
|
466
|
-
locationChangeEvent:
|
|
467
|
-
navigationEvent:
|
|
468
|
-
routeChangeEvent:
|
|
484
|
+
linkNavigationEvent: K,
|
|
485
|
+
locationChangeEvent: A,
|
|
486
|
+
navigationEvent: R,
|
|
487
|
+
routeChangeEvent: I,
|
|
469
488
|
},
|
|
470
489
|
Symbol.toStringTag,
|
|
471
490
|
{ value: 'Module' },
|
|
472
491
|
),
|
|
473
492
|
),
|
|
474
|
-
|
|
493
|
+
U = (e) => {
|
|
475
494
|
e.create('route', { host: '', path: '', query: {} })
|
|
476
495
|
},
|
|
477
|
-
|
|
496
|
+
q = (e) => {
|
|
478
497
|
const t = e.closest('[href]')
|
|
479
498
|
return (t && t.getAttribute('href')) || ''
|
|
480
499
|
},
|
|
481
500
|
S = ({ payload: e, publish: t, window: s }) => {
|
|
482
|
-
s.history.pushState(null, '', e), t(
|
|
501
|
+
s.history.pushState(null, '', e), t(A, null)
|
|
483
502
|
},
|
|
484
|
-
|
|
503
|
+
J = (e) => {
|
|
485
504
|
const t = e.payload
|
|
486
505
|
if (!t || !t.target) return
|
|
487
506
|
t.preventDefault()
|
|
488
|
-
const s =
|
|
507
|
+
const s = q(t.target)
|
|
489
508
|
S({ ...e, payload: s })
|
|
490
509
|
},
|
|
491
|
-
|
|
510
|
+
H = (e) =>
|
|
492
511
|
e
|
|
493
512
|
.replace(/^\?/, '')
|
|
494
513
|
.split('&')
|
|
@@ -497,45 +516,45 @@
|
|
|
497
516
|
const r = s.split('=')
|
|
498
517
|
return (t[r[0]] = r[1]), t
|
|
499
518
|
}, {}),
|
|
500
|
-
|
|
519
|
+
G = (e) => {
|
|
501
520
|
const { state: t, publish: s, window: r } = e,
|
|
502
521
|
{ host: n, pathname: i, search: o } = r.location,
|
|
503
522
|
c = i,
|
|
504
|
-
u =
|
|
523
|
+
u = H(o),
|
|
505
524
|
d = { host: n, path: c, query: u }
|
|
506
|
-
t.store('route').update(d), s(
|
|
525
|
+
t.store('route').update(d), s(I, d)
|
|
507
526
|
},
|
|
508
|
-
|
|
527
|
+
W = (e) => {
|
|
509
528
|
const { subscribe: t } = e
|
|
510
|
-
t(
|
|
511
|
-
t(
|
|
529
|
+
t(K, J),
|
|
530
|
+
t(R, (s) => {
|
|
512
531
|
S(s)
|
|
513
532
|
})
|
|
514
533
|
},
|
|
515
|
-
|
|
534
|
+
C = (e) => {
|
|
516
535
|
const { publish: t, subscribe: s, state: r, window: n } = e
|
|
517
|
-
|
|
536
|
+
U(r), n.addEventListener('popstate', () => t(A, null)), s(A, G)
|
|
518
537
|
},
|
|
519
|
-
|
|
520
|
-
setTimeout(() => e.publish(
|
|
538
|
+
Q = (e) => {
|
|
539
|
+
setTimeout(() => e.publish(A, null), 0)
|
|
521
540
|
},
|
|
522
|
-
|
|
523
|
-
|
|
541
|
+
X = (e) => {
|
|
542
|
+
C(e), W(e), Q(e)
|
|
524
543
|
},
|
|
525
|
-
|
|
544
|
+
Qt = Object.freeze(
|
|
526
545
|
Object.defineProperty(
|
|
527
546
|
{
|
|
528
547
|
__proto__: null,
|
|
529
|
-
publishLocation:
|
|
530
|
-
startNavigation:
|
|
531
|
-
subscribeToHistoryChange:
|
|
532
|
-
subscribeToNavigation:
|
|
548
|
+
publishLocation: Q,
|
|
549
|
+
startNavigation: X,
|
|
550
|
+
subscribeToHistoryChange: C,
|
|
551
|
+
subscribeToNavigation: W,
|
|
533
552
|
},
|
|
534
553
|
Symbol.toStringTag,
|
|
535
554
|
{ value: 'Module' },
|
|
536
555
|
),
|
|
537
556
|
)
|
|
538
|
-
class
|
|
557
|
+
class Y {
|
|
539
558
|
constructor({
|
|
540
559
|
window: t,
|
|
541
560
|
document: s,
|
|
@@ -555,19 +574,19 @@
|
|
|
555
574
|
(this.roots = [])
|
|
556
575
|
}
|
|
557
576
|
render(t, s) {
|
|
558
|
-
const r =
|
|
577
|
+
const r = Wt(t, s, this.renderKit)
|
|
559
578
|
return this.roots.push(r), r
|
|
560
579
|
}
|
|
561
580
|
startNavigation() {
|
|
562
|
-
|
|
581
|
+
X(this)
|
|
563
582
|
}
|
|
564
583
|
}
|
|
565
|
-
const
|
|
566
|
-
Object.defineProperty({ __proto__: null, App:
|
|
584
|
+
const Xt = Object.freeze(
|
|
585
|
+
Object.defineProperty({ __proto__: null, App: Y }, Symbol.toStringTag, {
|
|
567
586
|
value: 'Module',
|
|
568
587
|
}),
|
|
569
588
|
)
|
|
570
|
-
class
|
|
589
|
+
class Z {
|
|
571
590
|
constructor() {
|
|
572
591
|
this.lookup = {}
|
|
573
592
|
}
|
|
@@ -590,7 +609,7 @@
|
|
|
590
609
|
this.lookup[t] || (this.lookup[t] = [])
|
|
591
610
|
}
|
|
592
611
|
}
|
|
593
|
-
class
|
|
612
|
+
class tt {
|
|
594
613
|
constructor() {
|
|
595
614
|
this.lookup = []
|
|
596
615
|
}
|
|
@@ -642,28 +661,28 @@
|
|
|
642
661
|
((this.callCount += 1), this.publish(this.event, this.payload))
|
|
643
662
|
}
|
|
644
663
|
}
|
|
645
|
-
const
|
|
664
|
+
const Yt = (e) => (t, s) => {
|
|
646
665
|
const { offset: r, period: n, payload: i } = s,
|
|
647
666
|
o = ({ callCount: u }) => (r && u == 0 ? r : n),
|
|
648
667
|
c = new _({ payload: i, event: t, publish: e, timer: o })
|
|
649
668
|
return c.start(), c.stop
|
|
650
669
|
},
|
|
651
|
-
|
|
670
|
+
Zt =
|
|
652
671
|
(e) =>
|
|
653
672
|
(t, { timeout: s, payload: r }) => {
|
|
654
|
-
const n = ({ callCount: o, stop: c }) => (o
|
|
673
|
+
const n = ({ callCount: o, stop: c }) => (o >= 1 && c(), s),
|
|
655
674
|
i = new _({ publish: e, event: t, payload: r, timer: n })
|
|
656
675
|
return i.start(), i.stop
|
|
657
676
|
},
|
|
658
|
-
|
|
677
|
+
te = (e) => (t, s) => {
|
|
659
678
|
const r = { ...s, event: t, publish: e },
|
|
660
679
|
n = new _(r)
|
|
661
680
|
return n.start(), n.stop
|
|
662
681
|
}
|
|
663
|
-
class
|
|
682
|
+
class et {
|
|
664
683
|
constructor() {
|
|
665
|
-
;(this.exactSubscriptions = new
|
|
666
|
-
(this.fuzzySubscriptions = new
|
|
684
|
+
;(this.exactSubscriptions = new Z()),
|
|
685
|
+
(this.fuzzySubscriptions = new tt()),
|
|
667
686
|
(this.currentIndex = 0)
|
|
668
687
|
}
|
|
669
688
|
subscribe(t, s) {
|
|
@@ -693,58 +712,39 @@
|
|
|
693
712
|
return {
|
|
694
713
|
eventName: t,
|
|
695
714
|
...this.options,
|
|
696
|
-
publish:
|
|
715
|
+
publish: st(this.publish.bind(this)),
|
|
697
716
|
payload: s,
|
|
698
717
|
}
|
|
699
718
|
}
|
|
700
719
|
}
|
|
701
|
-
const
|
|
720
|
+
const st = (e) => {
|
|
702
721
|
const t = e
|
|
703
722
|
return (
|
|
704
|
-
(t.withTimeout =
|
|
705
|
-
(t.periodically =
|
|
706
|
-
(t.periodicallyWithCustomTimer =
|
|
723
|
+
(t.withTimeout = Zt(e)),
|
|
724
|
+
(t.periodically = Yt(e)),
|
|
725
|
+
(t.periodicallyWithCustomTimer = te(e)),
|
|
707
726
|
t
|
|
708
727
|
)
|
|
709
728
|
},
|
|
710
|
-
|
|
711
|
-
const e = new
|
|
729
|
+
rt = () => {
|
|
730
|
+
const e = new et(),
|
|
712
731
|
t = (r, n) => e.publish(r, n),
|
|
713
732
|
s = (r, n) => e.subscribe(r, n)
|
|
714
|
-
return { bus: e, publish:
|
|
733
|
+
return { bus: e, publish: st(t), subscribe: s }
|
|
715
734
|
},
|
|
716
|
-
|
|
735
|
+
ee = Object.freeze(
|
|
717
736
|
Object.defineProperty(
|
|
718
737
|
{
|
|
719
738
|
__proto__: null,
|
|
720
|
-
ExactSubscriptions:
|
|
721
|
-
FuzzySubscriptions:
|
|
722
|
-
JaxsBus:
|
|
723
|
-
createBus:
|
|
739
|
+
ExactSubscriptions: Z,
|
|
740
|
+
FuzzySubscriptions: tt,
|
|
741
|
+
JaxsBus: et,
|
|
742
|
+
createBus: rt,
|
|
724
743
|
},
|
|
725
744
|
Symbol.toStringTag,
|
|
726
745
|
{ value: 'Module' },
|
|
727
746
|
),
|
|
728
|
-
)
|
|
729
|
-
Zt = (e, t) => e === t,
|
|
730
|
-
te = (e, t) => Object.keys(e).length === Object.keys(t).length,
|
|
731
|
-
st = (e, t) =>
|
|
732
|
-
!(A(e) && A(t)) || !te(e, t)
|
|
733
|
-
? !1
|
|
734
|
-
: Object.keys(e).every((s) => {
|
|
735
|
-
const r = e[s],
|
|
736
|
-
n = t[s]
|
|
737
|
-
return w(r, n)
|
|
738
|
-
}),
|
|
739
|
-
rt = (e, t) =>
|
|
740
|
-
!(g(e) && g(t)) || e.length !== t.length
|
|
741
|
-
? !1
|
|
742
|
-
: e.every((s, r) => {
|
|
743
|
-
const n = t[r]
|
|
744
|
-
return w(s, n)
|
|
745
|
-
}),
|
|
746
|
-
w = (e, t) => (A(e) ? st(e, t) : g(e) ? rt(e, t) : Zt(e, t)),
|
|
747
|
-
ee = { objects: st, arrays: rt, equal: w }
|
|
747
|
+
)
|
|
748
748
|
class x {
|
|
749
749
|
constructor(t) {
|
|
750
750
|
;(this.name = t.name),
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
} else this.updateValue(t)
|
|
769
769
|
}
|
|
770
770
|
updateValue(t) {
|
|
771
|
-
|
|
771
|
+
g(this._value, t) || ((this._value = t), this.parent.notify(this.name))
|
|
772
772
|
}
|
|
773
773
|
getUpdatedValue(t) {
|
|
774
774
|
return t(this.value)
|
|
@@ -839,7 +839,7 @@
|
|
|
839
839
|
this.setupState(),
|
|
840
840
|
this.addBusOptions(),
|
|
841
841
|
this.setRenderKit(),
|
|
842
|
-
new
|
|
842
|
+
new Y({
|
|
843
843
|
window: this.window,
|
|
844
844
|
document: this.document,
|
|
845
845
|
publish: this.publish,
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
: ((this.window = window), (this.document = document))
|
|
860
860
|
}
|
|
861
861
|
setupBus() {
|
|
862
|
-
const { publish: t, subscribe: s, bus: r } =
|
|
862
|
+
const { publish: t, subscribe: s, bus: r } = rt()
|
|
863
863
|
;(this.publish = t), (this.subscribe = s), (this.bus = r)
|
|
864
864
|
}
|
|
865
865
|
setupState() {
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
Ne = (e, t) => (e.textContent !== t.textContent ? [oe(e, t)] : []),
|
|
1054
1054
|
Se = (e, t, s) => {
|
|
1055
1055
|
let r = []
|
|
1056
|
-
if (e.nodeType === 1 &&
|
|
1056
|
+
if (e.nodeType === 1 && Pt(e)) {
|
|
1057
1057
|
const n = e,
|
|
1058
1058
|
i = t,
|
|
1059
1059
|
o = we(n, i),
|
|
@@ -1136,7 +1136,7 @@
|
|
|
1136
1136
|
const { source: t, target: s } = e
|
|
1137
1137
|
t.replaceWith(s)
|
|
1138
1138
|
},
|
|
1139
|
-
|
|
1139
|
+
De = (e) => {
|
|
1140
1140
|
const { source: t, data: s } = e,
|
|
1141
1141
|
{ name: r, isSvg: n } = s
|
|
1142
1142
|
n ? t.removeAttributeNS(null, r) : t.removeAttribute(r)
|
|
@@ -1146,10 +1146,10 @@
|
|
|
1146
1146
|
{ name: r, value: n, isSvg: i } = s
|
|
1147
1147
|
i ? t.setAttributeNS(null, r, n) : t.setAttribute(r, n)
|
|
1148
1148
|
},
|
|
1149
|
-
|
|
1149
|
+
Pe = (e) => {
|
|
1150
1150
|
ht(e)
|
|
1151
1151
|
},
|
|
1152
|
-
|
|
1152
|
+
Be = (e) => {
|
|
1153
1153
|
const t = e.data,
|
|
1154
1154
|
s = e.source,
|
|
1155
1155
|
{ name: r, value: n } = t
|
|
@@ -1178,10 +1178,10 @@
|
|
|
1178
1178
|
[a.removeNode]: Me,
|
|
1179
1179
|
[a.insertNode]: ke,
|
|
1180
1180
|
[a.replaceNode]: $e,
|
|
1181
|
-
[a.removeAttribute]:
|
|
1181
|
+
[a.removeAttribute]: De,
|
|
1182
1182
|
[a.addAttribute]: ht,
|
|
1183
|
-
[a.updateAttribute]:
|
|
1184
|
-
[a.removeEvent]:
|
|
1183
|
+
[a.updateAttribute]: Pe,
|
|
1184
|
+
[a.removeEvent]: Be,
|
|
1185
1185
|
[a.addEvent]: Fe,
|
|
1186
1186
|
[a.updateEvent]: Ve,
|
|
1187
1187
|
[a.changeValue]: Le,
|
|
@@ -1199,23 +1199,23 @@
|
|
|
1199
1199
|
const r = Je[e.type]
|
|
1200
1200
|
r && r(e, t, s)
|
|
1201
1201
|
},
|
|
1202
|
-
|
|
1202
|
+
Ie = (e, t) => {
|
|
1203
1203
|
const { source: s } = e,
|
|
1204
1204
|
r = t.indexOf(s)
|
|
1205
1205
|
r >= 0 && t.splice(r, 1)
|
|
1206
1206
|
},
|
|
1207
|
-
|
|
1207
|
+
Ue = (e, t, s) => {
|
|
1208
1208
|
const { target: r } = e,
|
|
1209
1209
|
n = e.data,
|
|
1210
1210
|
{ index: i, parent: o } = n
|
|
1211
1211
|
s === o && t.splice(i, 0, r)
|
|
1212
1212
|
},
|
|
1213
|
-
|
|
1213
|
+
qe = (e, t) => {
|
|
1214
1214
|
const { target: s, source: r } = e,
|
|
1215
1215
|
n = t.indexOf(r)
|
|
1216
1216
|
n >= 0 && (t[n] = s)
|
|
1217
1217
|
},
|
|
1218
|
-
Je = { [a.removeNode]:
|
|
1218
|
+
Je = { [a.removeNode]: Ie, [a.insertNode]: Ue, [a.replaceNode]: qe }
|
|
1219
1219
|
class He {
|
|
1220
1220
|
constructor({
|
|
1221
1221
|
Template: t,
|
|
@@ -1303,14 +1303,14 @@
|
|
|
1303
1303
|
Object.defineProperty(
|
|
1304
1304
|
{
|
|
1305
1305
|
__proto__: null,
|
|
1306
|
-
createRouteState:
|
|
1307
|
-
events:
|
|
1308
|
-
extractQueryParams:
|
|
1309
|
-
findHref:
|
|
1306
|
+
createRouteState: U,
|
|
1307
|
+
events: Ct,
|
|
1308
|
+
extractQueryParams: H,
|
|
1309
|
+
findHref: q,
|
|
1310
1310
|
navigate: S,
|
|
1311
|
-
onLinkClick:
|
|
1312
|
-
onLocationChange:
|
|
1313
|
-
start:
|
|
1311
|
+
onLinkClick: J,
|
|
1312
|
+
onLocationChange: G,
|
|
1313
|
+
start: Qt,
|
|
1314
1314
|
},
|
|
1315
1315
|
Symbol.toStringTag,
|
|
1316
1316
|
{ value: 'Module' },
|
|
@@ -1318,16 +1318,16 @@
|
|
|
1318
1318
|
)
|
|
1319
1319
|
;(l.ArrayModifiers = ft),
|
|
1320
1320
|
(l.BooleanStore = bt),
|
|
1321
|
-
(l.Equality =
|
|
1322
|
-
(l.Is =
|
|
1321
|
+
(l.Equality = wt),
|
|
1322
|
+
(l.Is = gt),
|
|
1323
1323
|
(l.JaxsTypes = ie),
|
|
1324
|
-
(l.ListStore =
|
|
1325
|
-
(l.RecordStore =
|
|
1326
|
-
(l.appBuilding =
|
|
1324
|
+
(l.ListStore = St),
|
|
1325
|
+
(l.RecordStore = xt),
|
|
1326
|
+
(l.appBuilding = Xt),
|
|
1327
1327
|
(l.bind = dt),
|
|
1328
1328
|
(l.createApp = ne),
|
|
1329
|
-
(l.jsx =
|
|
1330
|
-
(l.messageBus =
|
|
1329
|
+
(l.jsx = z),
|
|
1330
|
+
(l.messageBus = ee),
|
|
1331
1331
|
(l.navigation = Ze),
|
|
1332
1332
|
(l.routedView = Ye),
|
|
1333
1333
|
(l.routing = Qe),
|