@vanelsas/baredom 4.0.0 → 4.1.0
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/CHANGELOG.md +47 -0
- package/custom-elements.json +0 -15
- package/dist/baremirror-alpha.js +24 -24
- package/dist/base.js +604 -603
- package/dist/integrity.json +112 -112
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +16 -16
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -35
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +28 -28
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +46 -46
- package/dist/x-combobox.js +36 -36
- package/dist/x-command-palette.js +30 -30
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -25
- package/dist/x-date-picker.js +46 -46
- package/dist/x-divider.js +8 -9
- package/dist/x-drag-panel.js +32 -32
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +21 -21
- package/dist/x-form-field.js +18 -18
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -18
- package/dist/x-kbd.js +14 -14
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -27
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +38 -39
- package/dist/x-liquid-glass.js +35 -35
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -23
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +42 -42
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +34 -34
- package/dist/x-organic-shape.js +14 -13
- package/dist/x-otp-input.js +22 -23
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +50 -50
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +24 -24
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +32 -33
- package/dist/x-scroll-timeline.js +46 -46
- package/dist/x-scroll.js +38 -39
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +16 -16
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +9 -9
- package/dist/x-table-cell.js +20 -21
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +20 -21
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +13 -13
- package/dist/x-trace-history.js +117 -117
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +62 -63
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.1.0] - 2026-10-09
|
|
6
|
+
|
|
7
|
+
BareDOM 4.1 corrects how a form control follows its `fieldset`, and makes every component render
|
|
8
|
+
once for a change. The adapters are not released again. Each works with this version as it is.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **A control in a disabled `fieldset` works again when the fieldset is enabled.** All 17 form
|
|
13
|
+
controls stayed disabled, because they wrote a `disabled` attribute on themselves. A control no
|
|
14
|
+
longer gets that attribute from its fieldset. A page that styled such a control by the attribute
|
|
15
|
+
must select `:disabled`.
|
|
16
|
+
- **`x-button` and `x-particle-button` obey a disabled `fieldset`.** Both could still be pressed.
|
|
17
|
+
- **`x-form` leaves out the fields of a disabled `fieldset`**, from its values and from its
|
|
18
|
+
validity check.
|
|
19
|
+
- **`disabled="false"` disables `x-checkbox` and `x-color-picker`**, as it does every other
|
|
20
|
+
control and every native one. Both treated the text `false` as an absent attribute.
|
|
21
|
+
- **An `error` attribute with no text is no error.** It was reported as a custom error with an
|
|
22
|
+
empty message, which a browser refuses.
|
|
23
|
+
- **Two attribute values no longer throw.** A `locale` of `x-date-picker` that is no language tag
|
|
24
|
+
and a `target` of `x-liquid-fill` that is no selector are ignored.
|
|
25
|
+
- **A component renders once for a change, and not at all when nothing changed.** `x-range-slider`,
|
|
26
|
+
`x-switch`, `x-text-area`, `x-slider`, `x-rating`, `x-radio`, `x-date-picker` and
|
|
27
|
+
`x-search-field` rendered twice for a change of `disabled`. `x-metaball-cursor`,
|
|
28
|
+
`x-welcome-tour`, `x-organic-shape`, `x-notification-center` and `x-sidebar` rendered when no
|
|
29
|
+
attribute had changed. A hold of the render now also holds a change of `disabled`.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **`x-divider` and `x-carousel` write a default only where the host has none.** `x-divider`
|
|
34
|
+
writes `role="separator"` and `x-carousel` its `aria-label` when the author gave no value, and
|
|
35
|
+
neither touches a value of the author. `role="none"` on `x-divider` is no longer rewritten to
|
|
36
|
+
`presentation`. `role` and `aria-label` leave the attribute list of `x-divider` in the manifest,
|
|
37
|
+
and `aria-label` that of `x-carousel`.
|
|
38
|
+
- **The trace records a change of a fieldset**, as a change of the `disabled` attribute of the
|
|
39
|
+
control.
|
|
40
|
+
- **For ClojureScript.** `component/register!` no longer takes `:form-disabled-fn`. Every
|
|
41
|
+
form-associated element receives the callback as a change of its `disabled` attribute.
|
|
42
|
+
`blob-colors` of the `x-metaball-cursor` model returns a vector. `separator-role?` left the
|
|
43
|
+
`x-divider` model.
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- **`forms/disabled?`**, for ClojureScript. It is true for a control that its own attribute or a
|
|
48
|
+
`fieldset` disables.
|
|
49
|
+
- **The canonical values of a property, as data.** 150 properties of 75 components name their
|
|
50
|
+
set of values as `:enum` in `property-api`. The generated types do not read it yet.
|
|
51
|
+
|
|
5
52
|
## [4.0.0] - 2026-10-08
|
|
6
53
|
|
|
7
54
|
BareDOM 4 makes every component follow the theme, gives every attribute a typed property, and
|
package/custom-elements.json
CHANGED
|
@@ -2335,11 +2335,6 @@
|
|
|
2335
2335
|
"type" : {
|
|
2336
2336
|
"text" : "string"
|
|
2337
2337
|
}
|
|
2338
|
-
}, {
|
|
2339
|
-
"name" : "aria-label",
|
|
2340
|
-
"type" : {
|
|
2341
|
-
"text" : "string"
|
|
2342
|
-
}
|
|
2343
2338
|
} ],
|
|
2344
2339
|
"events" : [ {
|
|
2345
2340
|
"name" : "x-carousel-change",
|
|
@@ -6211,16 +6206,6 @@
|
|
|
6211
6206
|
"type" : {
|
|
6212
6207
|
"text" : "string"
|
|
6213
6208
|
}
|
|
6214
|
-
}, {
|
|
6215
|
-
"name" : "role",
|
|
6216
|
-
"type" : {
|
|
6217
|
-
"text" : "string"
|
|
6218
|
-
}
|
|
6219
|
-
}, {
|
|
6220
|
-
"name" : "aria-label",
|
|
6221
|
-
"type" : {
|
|
6222
|
-
"text" : "string"
|
|
6223
|
-
}
|
|
6224
6209
|
} ],
|
|
6225
6210
|
"events" : [ ],
|
|
6226
6211
|
"slots" : [ {
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
$APP.jh(c))?b:null},a)},
|
|
5
|
-
$APP.
|
|
6
|
-
1,[$APP.
|
|
7
|
-
$APP.
|
|
8
|
-
d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.J;e=$APP.Xf.j;c=new $APP.H(null,1,5,$APP.J,[c],null);b=$APP.q(b)?$APP.
|
|
9
|
-
|
|
10
|
-
$APP.jh(b):""+$APP.N.i(b);return $APP.M.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},
|
|
11
|
-
var c=$APP.B(b,1,null);b=$APP.B(b,2,null);if(!$APP.kd(c,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function(){return b.i?b.i(this):b.call(null,this)};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},
|
|
15
|
-
return new $APP.K(null,3,[
|
|
16
|
-
|
|
17
|
-
$APP.xe(
|
|
18
|
-
b){return $APP.m($APP.ra(b))?
|
|
19
|
-
null?$APP.Pg.l(b,
|
|
20
|
-
|
|
21
|
-
188002959),
|
|
22
|
-
export const withOneRender=function(a,b){return
|
|
23
|
-
export const perform=function(a,b,c){a=new $APP.K(null,2,[$APP.
|
|
24
|
-
export const listen=function(a,b){var c=
|
|
25
|
-
export const defineElement=function(a,b){b=new $APP.K(null,3,[
|
|
2
|
+
var bCa=function(a,b){return a===b},cCa=function(a,b){return new $APP.Pd(null,function(){a:{var c=a;for(var d=b;;){d=$APP.q(d);var e;if(e=d)e=$APP.t(d),e=c.i?c.i(e):c.call(null,e);if($APP.m(e))d=$APP.lc(d);else{c=d;break a}}c=void 0}return c},null)},A9=function(a){var b=$APP.we(!0),c=dCa;return function f(e){return new $APP.Pd(null,function(){return $APP.Md(e,$APP.m(b.i?b.i(e):b.call(null,e))?$APP.Se(f,$APP.Jc([c.i?c.i(e):c.call(null,e)])):null)},null)}(a)},B9=function(a,b){return new $APP.di(a,b)},
|
|
3
|
+
C9=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.dd($APP.t(b))?new $APP.H(null,3,5,$APP.J,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.J,[a,null,$APP.q(b)],null)},D9=function(a){return a instanceof $APP.F||$APP.Uc(a)},eCa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},E9=function(a){return $APP.fd(a)||typeof a==="string"||typeof a==="number"},fCa=function(a){return $APP.te(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("data-x-part",
|
|
4
|
+
$APP.jh(c))?b:null},a)},gCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[c,a],null),b],null)},K9=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,F9);var e=$APP.G(d);d=$APP.C(e,G9);e=$APP.C(e,$APP.Nm);var f=$APP.q(d);$APP.m(f?f:e)?(f=new $APP.K(null,1,[H9,b],null),d=$APP.q(d)?$APP.Pg.l(f,I9,d):f,d=$APP.m(e)?$APP.Pg.l(d,$APP.Nm,e):d):d=null;a=$APP.si.O(a,$APP.Zr,$APP.Xf,$APP.Oe.i($APP.xe(gCa,b)),c);return $APP.m(d)?$APP.si.M(a,J9,
|
|
5
|
+
$APP.Id,d):a},hCa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.fd(c)?(c=L9.l?L9.l(a,b,c):L9.call(null,a,b,c),a=$APP.B(c,0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.J,[$APP.Id.j(d,a),c],null)):new $APP.H(null,2,5,$APP.J,[$APP.Id.j(d,c),b],null)},L9=function(a,b,c){var d=C9(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),h=$APP.Tj.j(e,F9);if($APP.p($APP.te(D9,f)))d=null;else{if($APP.u(f))throw B9("A text hole must be the only child of its element.",new $APP.K(null,
|
|
6
|
+
1,[$APP.qt,c],null));d=$APP.t(f)}e=F9.i(e);var k=$APP.Xf.l($APP.oe,$APP.Ve($APP.Uj.j(D9,$APP.qf)),h);h=$APP.Xf.l($APP.oe,$APP.Te($APP.Uj.j(D9,$APP.qf)),h);if($APP.m(d))f=null;else if(!$APP.se(E9,f))throw B9("A child of a template is a template, text, a number or one hole.",new $APP.K(null,1,[$APP.qt,c],null));d=new $APP.K(null,6,[$APP.qt,c,F9,e,M9,k,G9,h,$APP.Nm,d,$APP.Xt,f],null);b=$APP.G(b);c=$APP.C(b,$APP.Gu);d=$APP.G(d);f=$APP.C(d,M9);f=fCa(f);k=$APP.G(d);h=$APP.C(k,F9);e=$APP.C(k,G9);k=$APP.C(k,
|
|
7
|
+
$APP.Nm);e=(h=$APP.q(h))?h:(e=$APP.q(e))?e:k;$APP.D(e)?$APP.m(f)?d=new $APP.H(null,2,5,$APP.J,[d,K9(b,f,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.J,[$APP.No(d,new $APP.H(null,2,5,$APP.J,[M9,$APP.Lh.i("data-x-part")],null),c),K9($APP.si.l(b,$APP.Gu,$APP.sc),c,d)],null)):d=new $APP.H(null,2,5,$APP.J,[d,b],null);b=$APP.B(d,0,null);f=$APP.G(b);c=$APP.C(f,$APP.qt);b=$APP.C(f,M9);f=$APP.C(f,$APP.Xt);d=$APP.B(d,1,null);d=$APP.za($APP.xe(hCa,a),new $APP.H(null,2,5,$APP.J,[$APP.Xe,
|
|
8
|
+
d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.J;e=$APP.Xf.j;c=new $APP.H(null,1,5,$APP.J,[c],null);b=$APP.q(b)?$APP.Id.j(c,b):c;return new $APP.H(null,2,5,f,[e.call($APP.Xf,b,a),d],null)},N9=function(a,b){b=L9($APP.jh(a),new $APP.K(null,3,[$APP.Gu,0,J9,$APP.Xe,$APP.Zr,$APP.oe],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[M9,a,J9,J9.i(b),$APP.Zr,$APP.Zr.i(b)],null)},O9=function(a,b){return b.i?b.i(a):b.call(null,a)},iCa=function(a,b){var c=$APP.G(b);b=$APP.C(c,
|
|
9
|
+
H9);var d=$APP.C(c,I9),e=$APP.C(c,$APP.Nm);c=$APP.J;d=$APP.m(d)?$APP.Pg.l($APP.oe,I9,$APP.ei(d,$APP.xe(O9,a))):$APP.oe;a=$APP.m(e)?$APP.Pg.l(d,$APP.Nm,O9(a,e)):d;return new $APP.H(null,2,5,c,[b,a],null)},P9=function(a,b){return $APP.Xf.l($APP.oe,$APP.Oe.i($APP.xe(iCa,b)),J9.i(a))},Q9=function(a,b){var c=a[jCa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.xe(b,a));return null},kCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.jh(c);b=b===!0?"":b===!1||b==null?null:b instanceof $APP.F?
|
|
10
|
+
$APP.jh(b):""+$APP.N.i(b);return $APP.M.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},R9=function(a,b){return $APP.Zh($APP.xe(kCa,b),a)},S9=function(a,b){b=""+$APP.N.i(b);var c=a.firstChild;c=c==null?null:$APP.z.j(Node.TEXT_NODE,c.nodeType)&&c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.M.j(b,c.data)&&(c.data=b);return null},lCa=function(a,b){return a.append($APP.fd(b)?T9.i?T9.i(b):T9.call(null,b):""+$APP.N.i(b))},T9=function(a){var b=C9(a);$APP.B(b,0,null);
|
|
11
|
+
var c=$APP.B(b,1,null);b=$APP.B(b,2,null);if(!$APP.kd(c,F9)&&$APP.se(eCa,$APP.Ug(c))&&$APP.se(E9,b))b=C9(a);else throw B9("make-node!: the template is not fixed. split takes holes and :on out of it.",new $APP.K(null,1,[$APP.qt,$APP.t(a)],null));c=$APP.B(b,0,null);a=$APP.B(b,1,null);b=$APP.B(b,2,null);c=document.createElement($APP.jh(c));Q9(c,$APP.xe(R9,a));$APP.Zh($APP.xe(lCa,c),b);return c},U9=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.J,[b,a],null)},
|
|
12
|
+
dCa=function(a){return $APP.We($APP.ek,$APP.Jc(a.children))},mCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.G(b);var d=$APP.C(b,I9);a=a.i?a.i(c):a.call(null,c);$APP.kd(b,$APP.Nm)&&S9(a,$APP.Nm.i(b));return $APP.m(d)?Q9(a,$APP.xe(R9,d)):null},V9=function(a,b){var c=$APP.q($APP.Xf.l($APP.Xe,$APP.Ve(a),$APP.Sg(b)));if(c!=null)throw B9("write-parts!: no node has these part names.",new $APP.K(null,1,[nCa,$APP.rf(c)],null));return $APP.Zh($APP.xe(mCa,a),b)},oCa=function(a,b){return a.getAttribute(b)},
|
|
13
|
+
pCa=function(a,b){var c=$APP.G(a);a=$APP.C(c,I9);var d=$APP.C(c,$APP.us);c=$APP.C(c,$APP.gv);var e=M9.i(c),f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.N.i(d),d=b.attachShadow({mode:"open"}),d.append(f,T9(e)));d=$APP.Xf.l($APP.oe,$APP.Fe(U9),A9(d.lastElementChild));b=$APP.Xf.l($APP.oe,$APP.Oe.i($APP.xh($APP.Lh,$APP.xe(oCa,b))),a);return V9(d,P9(c,b))},qCa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.Ba(a);d.connectedCallback=
|
|
14
|
+
function(){return b.i?b.i(this):b.call(null,this)};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},W9=function(a,b){a=$APP.ve(a);a=new $APP.H(null,2,5,$APP.J,[$APP.mh(a,b),cCa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Re.j(b,$APP.Me(1,a))},rCa=function(a){return a instanceof Element},Z9=function(a){a=$APP.Ue(rCa,W9($APP.xe(bCa,a.currentTarget),$APP.Kc(a.composedPath())));var b=$APP.te(U9,W9($APP.ek,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);
|
|
15
|
+
return new $APP.K(null,3,[X9,$APP.Xf.l($APP.Xe,$APP.Fe($APP.Uj.j($APP.t,$APP.ek)),$APP.Kd(a)),H9,c,Y9,b],null)},sCa=function(a,b,c,d){return function(e){e=$APP.Mo.l(a,b,e);a:for(;;){var f=$APP.db(a),h=c.i?c.i(f):c.call(null,f);d.i?d.i(h):d.call(null,h);if(f===$APP.db(a))break a}return e}},$9=function(a,b){return a.getAttribute(b)},tCa=function(a){return $APP.Yc(X9.i(a))},uCa=function(a,b){var c=$APP.G(a);a=$APP.C(c,a$);var d=$APP.C(c,$APP.Zr),e=$APP.C(c,$APP.ys);c=Z9(b);var f=$APP.G(c),h=$APP.C(f,
|
|
16
|
+
H9);c=$APP.C(f,Y9);d=$APP.C(d,new $APP.H(null,2,5,$APP.J,[b.type,h],null));if(d==null)return null;h=$APP.fd(d)?d:new $APP.H(null,2,5,$APP.J,[d,tCa],null);d=$APP.B(h,0,null);h=$APP.B(h,1,null);f=h.j?h.j(f,b):h.call(null,f,b);d=new $APP.H(null,1,5,$APP.J,[d],null);f=f!=null?$APP.Id.j(d,f):d;e=$APP.C(e,b.type);e==null?b=a.i?a.i(f):a.call(null,f):(d=$APP.ti.j($APP.xe($9,c),e),a.i?a.i(f):a.call(null,f),b=$APP.z.j(d,$APP.ti.j($APP.xe($9,c),e))?b.preventDefault():null);return b},vCa=function(a,b,c){return a.addEventListener(c,
|
|
17
|
+
$APP.xe(uCa,b))},wCa=function(a,b){return new $APP.H(null,2,5,$APP.J,[b,a[b]],null)},b$=function(a){return a!=null?$APP.Xf.l($APP.oe,$APP.Oe.i($APP.xe(wCa,a)),$APP.ia(a)):$APP.oe},c$=function(a){return $APP.m($APP.ra(a))?$APP.rf(a):a},xCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("on",c)?new $APP.H(null,2,5,$APP.J,[F9,$APP.ei(b$(b),c$)],null):$APP.Uc(b)?new $APP.H(null,2,5,$APP.J,[c,a.i?a.i(b):a.call(null,b)],null):new $APP.H(null,2,5,$APP.J,[c,b],null)},yCa=function(a,
|
|
18
|
+
b){return $APP.m($APP.ra(b))?d$.j?d$.j(a,b):d$.call(null,a,b):$APP.Uc(b)?a.i?a.i(b):a.call(null,b):b},d$=function(a,b){b=$APP.q($APP.Jc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.sa($APP.t(b))?$APP.t(b):null,e=$APP.Xf.l;c=new $APP.H(null,1,5,$APP.J,[c],null);c=$APP.m(d)?$APP.Id.j(c,$APP.Xf.l($APP.oe,$APP.Oe.i($APP.xe(xCa,a)),b$(d))):c;return e.call($APP.Xf,c,$APP.Oe.i($APP.xe(yCa,a)),$APP.m(d)?$APP.lc(b):b)},zCa=function(a){var b=$APP.m("text"in a)?$APP.Pg.l($APP.oe,$APP.Nm,a.text):$APP.oe;return a.attrs!=
|
|
19
|
+
null?$APP.Pg.l(b,I9,b$(a.attrs)):b},e$=function(a){return new $APP.K(null,2,[$APP.fk,a.parent,$APP.Zj,a.before],null)},ACa=function(a){return new $APP.K(null,3,[$APP.vi,a.key,$APP.Yj,a.in,$APP.Zj,a.before],null)},f$=function(a){var b=$APP.G(a);a=$APP.C(b,X9);var c=$APP.C(b,H9);b=$APP.C(b,Y9);return{keyPath:$APP.Rm(a),part:c,node:b}},BCa=function(a){return function(b,c){b=f$(b);return a.j?a.j(b,c):a.call(null,b,c)}},CCa=function(a){var b=$APP.J,c=$APP.rf(a[0]);a=c$(a[1]);a=$APP.fd(a)?$APP.si.l(a,1,
|
|
20
|
+
BCa):a;return new $APP.H(null,2,5,b,[c,a],null)},DCa=function(a){return function(b){b=$APP.Rm(b);return a.i?a.i(b):a.call(null,b)}},g$=function(a,b){this.store=a;this.Oc=b;this.B=425984;this.K=65536},ECa=function(a){return function(b){b=$APP.Rm(b);return a.i?a.i(b):a.call(null,b)}},M9=new $APP.F(null,"fixed","fixed",-562004358),F9=new $APP.F(null,"on","on",173873944),G9=new $APP.F(null,"attr-holes","attr-holes",-1558532218),Y9=new $APP.F(null,"node","node",581201198),J9=new $APP.F(null,"holes","holes",
|
|
21
|
+
188002959),I9=new $APP.F(null,"attrs","attrs",-2090668713),X9=new $APP.F(null,"key-path","key-path",878473308),H9=new $APP.F(null,"part","part",77757738),a$=new $APP.F(null,"dispatch!","dispatch!",-1927281664),nCa=new $APP.F(null,"parts","parts",849007691);var jCa=Symbol["for"]("x-render-hold");var h$=function h$(a){var c=$APP.ra(a);$APP.m($APP.m(c)?c:$APP.sa(a))&&($APP.Zh(h$,Object.values(a)),Object.freeze(a));return a};g$.prototype.Y=function(a,b){return new g$(this.store,b)};g$.prototype.W=function(){return this.Oc};g$.prototype.tb=function(){return this.store.value};g$.prototype.rc=function(a,b,c){a=this.store;var d=this.store.value;b=b.j?b.j(d,c):b.call(null,d,c);return a.value=b};export const plan=function(a,b){return $APP.Rm($APP.dk($APP.ei(b$(a),$APP.rf),$APP.ei(b$(b),$APP.rf)))};export const syncPlaces=function(a,b,c){return $APP.Rm($APP.wk($APP.ei(b$(a),e$),$APP.ei(b$(b),$APP.rf),c))};export const setText=function(a,b){return S9(a,b)};export const readOrigin=function(a){return f$(Z9(a))};export const setAttrs=function(a,b){b=b$(b);return Q9(a,$APP.xe(R9,b))};export const readPlaces=function(a){return $APP.Rm($APP.uk($APP.ei(b$(a),e$)))};
|
|
22
|
+
export const withOneRender=function(a,b){return Q9(a,b)};export const splitTemplate=function(a,b){var c=N9(a,d$($APP.yd,b));return h$({fixed:$APP.Rm(M9.i(c)),holes:$APP.Rm(J9.i(c)),events:$APP.Rm($APP.rf($APP.Zr.i(c))),writes:function(d){return $APP.Rm(P9(c,d))}})};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){return T9(d$($APP.yd,a))};export const dispatcher=function(a,b,c,d){return sCa(new g$(a,$APP.oe),b,c,d)};
|
|
23
|
+
export const perform=function(a,b,c){a=new $APP.K(null,2,[$APP.gk,$APP.ei(b$(a.containers),e$),$APP.tk,b$(a.nodes)],null);b=new $APP.K(null,2,[$APP.bk,$APP.rf(b.remove),$APP.ck,$APP.ti.j(ACa,b.place)],null);return $APP.Rm($APP.vk(a,b,c))};
|
|
24
|
+
export const listen=function(a,b){var c=DCa(b.dispatch);var d=b.events;d=$APP.Xf.l($APP.oe,$APP.Oe.i(CCa),$APP.Jc(d));b=new $APP.K(null,3,[a$,c,$APP.Zr,d,$APP.ys,$APP.ei(b$(b.requests),$APP.rf)],null);b=$APP.G(b);c=$APP.C(b,$APP.Zr);return $APP.Zh($APP.ye(vCa,a,b),$APP.Xf.l($APP.bh,$APP.Oe.i($APP.t),$APP.Sg(c)))};export const readParts=function(a){return $APP.Rm($APP.Xf.l($APP.oe,$APP.Fe(U9),A9(a)))};export const writeParts=function(a,b){return V9(b$(a),$APP.ei(b$(b),zCa))};
|
|
25
|
+
export const defineElement=function(a,b){b=new $APP.K(null,3,[I9,$APP.rf(b.attrs),$APP.wv,d$(ECa,b.template),$APP.us,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.wv);b=$APP.C(c,I9);c=$APP.C(c,$APP.us);d=N9(a,d);if(!$APP.$c($APP.Zr.i(d)))throw B9("define-element!: the template of an element takes no :on entry.",new $APP.K(null,1,[$APP.qt,a],null));d=new $APP.K(null,3,[I9,b,$APP.us,c,$APP.gv,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,qCa(b,$APP.xe(pCa,d)))};
|