@vanelsas/baredom 2.4.1 → 2.5.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.
Files changed (181) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +83 -5
  3. package/custom-elements.json +7338 -0
  4. package/dist/baredom.d.ts +97 -0
  5. package/dist/base.js +53 -53
  6. package/dist/integrity.json +87 -87
  7. package/dist/x-alert.d.ts +43 -0
  8. package/dist/x-alert.js +16 -16
  9. package/dist/x-avatar-group.d.ts +18 -0
  10. package/dist/x-avatar-group.js +10 -10
  11. package/dist/x-avatar.d.ts +21 -0
  12. package/dist/x-avatar.js +2 -2
  13. package/dist/x-badge.d.ts +19 -0
  14. package/dist/x-badge.js +7 -7
  15. package/dist/x-bento-grid.d.ts +12 -0
  16. package/dist/x-bento-grid.js +2 -2
  17. package/dist/x-bento-item.d.ts +12 -0
  18. package/dist/x-bento-item.js +4 -4
  19. package/dist/x-breadcrumbs.d.ts +20 -0
  20. package/dist/x-breadcrumbs.js +14 -14
  21. package/dist/x-button.d.ts +45 -0
  22. package/dist/x-button.js +4 -4
  23. package/dist/x-cancel-dialogue.d.ts +50 -0
  24. package/dist/x-cancel-dialogue.js +12 -12
  25. package/dist/x-card.d.ts +39 -0
  26. package/dist/x-card.js +3 -3
  27. package/dist/x-carousel.d.ts +48 -0
  28. package/dist/x-carousel.js +28 -28
  29. package/dist/x-chart.d.ts +23 -0
  30. package/dist/x-chart.js +28 -28
  31. package/dist/x-checkbox.d.ts +45 -0
  32. package/dist/x-checkbox.js +6 -6
  33. package/dist/x-chip.d.ts +41 -0
  34. package/dist/x-chip.js +8 -8
  35. package/dist/x-collapse.d.ts +42 -0
  36. package/dist/x-collapse.js +1 -1
  37. package/dist/x-color-picker.d.ts +47 -0
  38. package/dist/x-color-picker.js +40 -40
  39. package/dist/x-combobox.d.ts +46 -0
  40. package/dist/x-combobox.js +24 -24
  41. package/dist/x-command-palette.d.ts +46 -0
  42. package/dist/x-command-palette.js +24 -24
  43. package/dist/x-container.d.ts +14 -0
  44. package/dist/x-container.js +2 -2
  45. package/dist/x-context-menu.d.ts +17 -0
  46. package/dist/x-context-menu.js +9 -9
  47. package/dist/x-copy.d.ts +51 -0
  48. package/dist/x-copy.js +6 -6
  49. package/dist/x-currency-field.d.ts +51 -0
  50. package/dist/x-currency-field.js +9 -8
  51. package/dist/x-date-picker.d.ts +20 -0
  52. package/dist/x-date-picker.js +8 -8
  53. package/dist/x-divider.d.ts +20 -0
  54. package/dist/x-divider.js +3 -3
  55. package/dist/x-drawer.d.ts +44 -0
  56. package/dist/x-drawer.js +3 -3
  57. package/dist/x-dropdown.d.ts +42 -0
  58. package/dist/x-dropdown.js +9 -9
  59. package/dist/x-fieldset.d.ts +14 -0
  60. package/dist/x-fieldset.js +2 -2
  61. package/dist/x-file-download.d.ts +40 -0
  62. package/dist/x-file-download.js +7 -7
  63. package/dist/x-file-upload.d.ts +46 -0
  64. package/dist/x-file-upload.js +22 -22
  65. package/dist/x-form-field.d.ts +47 -0
  66. package/dist/x-form-field.js +6 -6
  67. package/dist/x-form.d.ts +41 -0
  68. package/dist/x-form.js +3 -3
  69. package/dist/x-gaussian-blur.d.ts +20 -0
  70. package/dist/x-gaussian-blur.js +6 -6
  71. package/dist/x-grid.d.ts +12 -0
  72. package/dist/x-grid.js +3 -3
  73. package/dist/x-icon.d.ts +15 -0
  74. package/dist/x-icon.js +2 -2
  75. package/dist/x-image.d.ts +48 -0
  76. package/dist/x-image.js +6 -6
  77. package/dist/x-kinetic-font.d.ts +48 -0
  78. package/dist/x-kinetic-font.js +11 -11
  79. package/dist/x-kinetic-typography.d.ts +27 -0
  80. package/dist/x-kinetic-typography.js +20 -20
  81. package/dist/x-liquid-dock.d.ts +47 -0
  82. package/dist/x-liquid-dock.js +35 -35
  83. package/dist/x-liquid-fill.d.ts +46 -0
  84. package/dist/x-liquid-fill.js +18 -18
  85. package/dist/x-liquid-glass.d.ts +25 -0
  86. package/dist/x-liquid-glass.js +10 -10
  87. package/dist/x-menu-item.d.ts +41 -0
  88. package/dist/x-menu.d.ts +42 -0
  89. package/dist/x-menu.js +1 -1
  90. package/dist/x-metaball-cursor.d.ts +21 -0
  91. package/dist/x-metaball-cursor.js +9 -9
  92. package/dist/x-modal.d.ts +44 -0
  93. package/dist/x-modal.js +2 -2
  94. package/dist/x-morph-stack.d.ts +46 -0
  95. package/dist/x-morph-stack.js +39 -39
  96. package/dist/x-navbar.d.ts +46 -0
  97. package/dist/x-navbar.js +3 -3
  98. package/dist/x-neural-glow.d.ts +22 -0
  99. package/dist/x-neural-glow.js +2 -2
  100. package/dist/x-notification-center.d.ts +42 -0
  101. package/dist/x-notification-center.js +10 -10
  102. package/dist/x-organic-divider.d.ts +19 -0
  103. package/dist/x-organic-progress.d.ts +45 -0
  104. package/dist/x-organic-progress.js +9 -9
  105. package/dist/x-organic-shape.d.ts +18 -0
  106. package/dist/x-pagination.d.ts +44 -0
  107. package/dist/x-pagination.js +1 -1
  108. package/dist/x-particle-button.d.ts +47 -0
  109. package/dist/x-particle-button.js +7 -7
  110. package/dist/x-popover.d.ts +45 -0
  111. package/dist/x-popover.js +23 -23
  112. package/dist/x-progress-circle.d.ts +41 -0
  113. package/dist/x-progress-circle.js +3 -3
  114. package/dist/x-progress.d.ts +44 -0
  115. package/dist/x-progress.js +3 -3
  116. package/dist/x-radio.d.ts +44 -0
  117. package/dist/x-radio.js +11 -11
  118. package/dist/x-ripple-effect.d.ts +42 -0
  119. package/dist/x-ripple-effect.js +5 -5
  120. package/dist/x-scroll-parallax.d.ts +45 -0
  121. package/dist/x-scroll-parallax.js +3 -3
  122. package/dist/x-scroll-stack.d.ts +46 -0
  123. package/dist/x-scroll-stack.js +6 -6
  124. package/dist/x-scroll-story.d.ts +56 -0
  125. package/dist/x-scroll-story.js +14 -14
  126. package/dist/x-scroll-timeline.d.ts +58 -0
  127. package/dist/x-scroll-timeline.js +43 -43
  128. package/dist/x-scroll.d.ts +51 -0
  129. package/dist/x-scroll.js +14 -14
  130. package/dist/x-search-field.d.ts +47 -0
  131. package/dist/x-search-field.js +15 -14
  132. package/dist/x-select.d.ts +40 -0
  133. package/dist/x-select.js +3 -3
  134. package/dist/x-sidebar.d.ts +40 -0
  135. package/dist/x-sidebar.js +8 -8
  136. package/dist/x-skeleton-group.d.ts +15 -0
  137. package/dist/x-skeleton-group.js +5 -5
  138. package/dist/x-skeleton.d.ts +16 -0
  139. package/dist/x-slider.d.ts +48 -0
  140. package/dist/x-slider.js +5 -5
  141. package/dist/x-soft-body.d.ts +44 -0
  142. package/dist/x-soft-body.js +5 -5
  143. package/dist/x-spacer.d.ts +15 -0
  144. package/dist/x-spacer.js +1 -1
  145. package/dist/x-spinner.d.ts +15 -0
  146. package/dist/x-splash.d.ts +42 -0
  147. package/dist/x-splash.js +3 -3
  148. package/dist/x-stat.d.ts +21 -0
  149. package/dist/x-stat.js +6 -6
  150. package/dist/x-stepper.d.ts +42 -0
  151. package/dist/x-stepper.js +14 -14
  152. package/dist/x-switch.d.ts +44 -0
  153. package/dist/x-switch.js +5 -5
  154. package/dist/x-tab.d.ts +40 -0
  155. package/dist/x-tab.js +7 -7
  156. package/dist/x-table-cell.d.ts +50 -0
  157. package/dist/x-table-cell.js +5 -5
  158. package/dist/x-table-row.d.ts +43 -0
  159. package/dist/x-table-row.js +10 -10
  160. package/dist/x-table.d.ts +124 -0
  161. package/dist/x-table.js +3 -3
  162. package/dist/x-tabs.d.ts +70 -0
  163. package/dist/x-tabs.js +2 -2
  164. package/dist/x-text-area.d.ts +47 -0
  165. package/dist/x-text-area.js +7 -7
  166. package/dist/x-theme.d.ts +15 -0
  167. package/dist/x-timeline-item.d.ts +46 -0
  168. package/dist/x-timeline-item.js +19 -19
  169. package/dist/x-timeline.d.ts +78 -0
  170. package/dist/x-timeline.js +3 -3
  171. package/dist/x-toast.d.ts +45 -0
  172. package/dist/x-toast.js +21 -21
  173. package/dist/x-toaster.d.ts +41 -0
  174. package/dist/x-toaster.js +8 -8
  175. package/dist/x-tooltip.d.ts +43 -0
  176. package/dist/x-tooltip.js +12 -12
  177. package/dist/x-typography.d.ts +16 -0
  178. package/dist/x-typography.js +1 -1
  179. package/dist/x-welcome-tour.d.ts +92 -0
  180. package/dist/x-welcome-tour.js +56 -56
  181. package/package.json +502 -392
package/dist/x-popover.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ls=function(a){switch(a){case "bottom-start":return"top-start";case "bottom-end":return"top-end";case "top-start":return"bottom-start";case "top-end":return"bottom-end";default:return a}},ms=function(a,b,c,d){function e(v){a:{var x=$APP.M(b);var y=$APP.D(x,$APP.Jl);var A=$APP.D(x,$APP.Il),C=$APP.D(x,$APP.Xg);x=$APP.D(x,$APP.Yg);var E=$APP.M(c),H=$APP.D(E,$APP.Xg);E=$APP.D(E,$APP.Yg);switch(v){case "bottom-start":y=new $APP.R(null,2,[$APP.Jl,y,$APP.Il,A+x+4],null);break a;case "bottom-end":y=new $APP.R(null,
3
- 2,[$APP.Jl,y+C-H,$APP.Il,A+x+4],null);break a;case "top-start":y=new $APP.R(null,2,[$APP.Jl,y,$APP.Il,A-E-4],null);break a;case "top-end":y=new $APP.R(null,2,[$APP.Jl,y+C-H,$APP.Il,A-E-4],null);break a;default:y=new $APP.R(null,2,[$APP.Jl,y,$APP.Il,A+x+4],null)}}A=$APP.M(y);y=$APP.D(A,$APP.Jl);A=$APP.D(A,$APP.Il);C=$APP.sh.i($APP.oh.i(y,8),g-l-8);x=$APP.sh.i($APP.oh.i(A,8),h-m-8);return new $APP.R(null,5,[$APP.Jl,C,$APP.Il,x,$APP.vi,v,$APP.Vl,y>=8&&y+l<=g-8&&A>=8&&A+m<=h-8,$APP.Ek,$APP.oh.i(40,h-
4
- x-8)],null)}d=$APP.M(d);var g=$APP.D(d,$APP.Xg),h=$APP.D(d,$APP.Yg);d=$APP.M(c);var l=$APP.D(d,$APP.Xg),m=$APP.D(d,$APP.Yg),p=e(a),q=e(ls(a));return $APP.n(function(){var v=$APP.Vl.g(p);return $APP.n(v)?v:$APP.r($APP.Vl.g(q))}())?p:q},ns=function(a){return document.createElement(a)},os=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},xs=function(a){a=new $APP.R(null,7,[$APP.Gi,a.hasAttribute("open"),$APP.Ml,a.hasAttribute("disabled"),ps,a.hasAttribute("no-close"),qs,a.hasAttribute("portal"),
5
- rs,a.getAttribute("heading"),$APP.gn,a.getAttribute("placement"),ss,a.getAttribute("close-label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Gi),d=$APP.D(b,$APP.Ml),e=$APP.D(b,ps),g=$APP.D(b,qs),h=$APP.D(b,rs);a=$APP.D(b,$APP.gn);b=$APP.D(b,ss);c=$APP.F(c);d=$APP.F(d);e=$APP.F(e);g=$APP.F(g);h=$APP.n(h)?h:"";b=$APP.n(b)?b:"Close";a=$APP.I(ts,a)?a:"bottom-start";return new $APP.R(null,7,[$APP.Mm,c,$APP.X,d,us,e,vs,g,$APP.zl,h,ws,b,$APP.Qj,a],null)},ys=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=
6
- xs(a);var c=$APP.M(a),d=$APP.D(c,$APP.Mm);a=$APP.D(c,us);var e=$APP.D(c,$APP.zl),g=$APP.D(c,ws),h=$APP.D(c,$APP.Qj),l=$APP.k(b,"panel");c=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");l.setAttribute("data-placement",h);os(l,"inert",$APP.r(d));$APP.N(e,"")?l.setAttribute("aria-labelledby","popover-heading"):l.removeAttribute("aria-labelledby");m.textContent=e;b.setAttribute("aria-label",g);os(b,"hidden",a);b=$APP.B.i(e,"");return os(c,"hidden",b?a:b)}return null},zs=function(a,
7
- b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},As=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Gs=function(a,b){var c=$APP.M(b);b=$APP.D(c,$APP.zl);var d=$APP.D(c,ws);c=$APP.D(c,us);a=a.shadowRoot;var e=ns("div"),g=ns("div"),h=ns("div"),l=ns("span"),m=ns("button"),p=ns("div"),q=ns("div");e.setAttribute("part","panel");e.setAttribute("role",
2
+ var ms=function(a){switch(a){case "bottom-start":return"top-start";case "bottom-end":return"top-end";case "top-start":return"bottom-start";case "top-end":return"bottom-end";default:return a}},ns=function(a,b,c,d){function e(v){a:{var x=$APP.M(b);var y=$APP.D(x,$APP.Kl);var A=$APP.D(x,$APP.Jl),C=$APP.D(x,$APP.Xg);x=$APP.D(x,$APP.Yg);var E=$APP.M(c),H=$APP.D(E,$APP.Xg);E=$APP.D(E,$APP.Yg);switch(v){case "bottom-start":y=new $APP.R(null,2,[$APP.Kl,y,$APP.Jl,A+x+4],null);break a;case "bottom-end":y=new $APP.R(null,
3
+ 2,[$APP.Kl,y+C-H,$APP.Jl,A+x+4],null);break a;case "top-start":y=new $APP.R(null,2,[$APP.Kl,y,$APP.Jl,A-E-4],null);break a;case "top-end":y=new $APP.R(null,2,[$APP.Kl,y+C-H,$APP.Jl,A-E-4],null);break a;default:y=new $APP.R(null,2,[$APP.Kl,y,$APP.Jl,A+x+4],null)}}A=$APP.M(y);y=$APP.D(A,$APP.Kl);A=$APP.D(A,$APP.Jl);C=$APP.sh.i($APP.oh.i(y,8),g-l-8);x=$APP.sh.i($APP.oh.i(A,8),h-m-8);return new $APP.R(null,5,[$APP.Kl,C,$APP.Jl,x,$APP.vi,v,$APP.Wl,y>=8&&y+l<=g-8&&A>=8&&A+m<=h-8,$APP.Ek,$APP.oh.i(40,h-
4
+ x-8)],null)}d=$APP.M(d);var g=$APP.D(d,$APP.Xg),h=$APP.D(d,$APP.Yg);d=$APP.M(c);var l=$APP.D(d,$APP.Xg),m=$APP.D(d,$APP.Yg),p=e(a),q=e(ms(a));return $APP.n(function(){var v=$APP.Wl.g(p);return $APP.n(v)?v:$APP.r($APP.Wl.g(q))}())?p:q},os=function(a){return document.createElement(a)},ps=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},ys=function(a){a=new $APP.R(null,7,[$APP.Gi,a.hasAttribute("open"),$APP.Nl,a.hasAttribute("disabled"),qs,a.hasAttribute("no-close"),rs,a.hasAttribute("portal"),
5
+ ss,a.getAttribute("heading"),$APP.hn,a.getAttribute("placement"),ts,a.getAttribute("close-label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Gi),d=$APP.D(b,$APP.Nl),e=$APP.D(b,qs),g=$APP.D(b,rs),h=$APP.D(b,ss);a=$APP.D(b,$APP.hn);b=$APP.D(b,ts);c=$APP.F(c);d=$APP.F(d);e=$APP.F(e);g=$APP.F(g);h=$APP.n(h)?h:"";b=$APP.n(b)?b:"Close";a=$APP.I(us,a)?a:"bottom-start";return new $APP.R(null,7,[$APP.Nm,c,$APP.X,d,vs,e,ws,g,$APP.Al,h,xs,b,$APP.Qj,a],null)},zs=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=
6
+ ys(a);var c=$APP.M(a),d=$APP.D(c,$APP.Nm);a=$APP.D(c,vs);var e=$APP.D(c,$APP.Al),g=$APP.D(c,xs),h=$APP.D(c,$APP.Qj),l=$APP.k(b,"panel");c=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");l.setAttribute("data-placement",h);ps(l,"inert",$APP.r(d));$APP.N(e,"")?l.setAttribute("aria-labelledby","popover-heading"):l.removeAttribute("aria-labelledby");m.textContent=e;b.setAttribute("aria-label",g);ps(b,"hidden",a);b=$APP.B.i(e,"");return ps(c,"hidden",b?a:b)}return null},As=function(a,
7
+ b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},Bs=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Hs=function(a,b){var c=$APP.M(b);b=$APP.D(c,$APP.Al);var d=$APP.D(c,xs);c=$APP.D(c,vs);a=a.shadowRoot;var e=os("div"),g=os("div"),h=os("div"),l=os("span"),m=os("button"),p=os("div"),q=os("div");e.setAttribute("part","panel");e.setAttribute("role",
8
8
  "dialog");g.setAttribute("part","arrow");g.setAttribute("aria-hidden","true");h.setAttribute("part","header");l.setAttribute("part","heading");l.textContent=b;m.setAttribute("part","close-button");m.setAttribute("type","button");m.setAttribute("aria-label",d);m.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
9
- $APP.n(c)&&m.setAttribute("hidden","");d=$APP.B.i(b,"");$APP.n(d?c:d)&&h.setAttribute("hidden","");$APP.N(b,"")&&(e.setAttribute("aria-labelledby","portal-heading"),l.setAttribute("id","portal-heading"));p.setAttribute("part","body");q.setAttribute("part","footer");q.setAttribute("hidden","");h.appendChild(l);h.appendChild(m);e.appendChild(g);e.appendChild(h);e.appendChild(p);e.appendChild(q);a.appendChild(e);return new $APP.R(null,7,[Bs,e,Cs,g,$APP.oj,h,$APP.zl,l,Ds,m,Es,p,Fs,q],null)},Hs=function(a,
10
- b){a=a.assignedNodes({flatten:!0});a=$APP.We.i($APP.fe,$APP.uc(a));for(var c=$APP.t(a),d=null,e=0,g=0;;)if(g<e){var h=d.F(null,g);b.appendChild(h);g+=1}else if(c=$APP.t(c))d=c,$APP.Nc(d)?(c=$APP.yb(d),g=$APP.zb(d),d=c,e=$APP.z(c),c=g):(c=$APP.u(d),b.appendChild(c),c=$APP.w(d),d=null,e=0),g=0;else break;return a},Is=function(a,b){if($APP.n(a.isConnected)){b=$APP.t(b);for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e);a.appendChild(g);e+=1}else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.yb(c),d=$APP.zb(c),
11
- c=b,g=$APP.z(b),b=d,d=g):(g=$APP.u(c),a.appendChild(g),b=$APP.w(c),c=null,d=0),e=0;else break}},Js=function(a,b,c,d){var e=c.getBoundingClientRect();c=a.offsetWidth;var g=a.offsetHeight,h=window.innerWidth,l=window.innerHeight;d=ms(d,new $APP.R(null,4,[$APP.Jl,e.left,$APP.Il,e.top,$APP.Xg,e.width,$APP.Yg,e.height],null),new $APP.R(null,2,[$APP.Xg,$APP.oh.i(c,200),$APP.Yg,$APP.oh.i(g,100)],null),new $APP.R(null,2,[$APP.Xg,h,$APP.Yg,l],null));g=$APP.vi.g(d);a.style.left=""+$APP.T.g($APP.Jl.g(d))+"px";
12
- a.style.top=""+$APP.T.g($APP.Il.g(d))+"px";a.style.maxHeight=""+$APP.T.g($APP.Ek.g(d))+"px";a=e.left+e.width/2;e=$APP.B.i(g,"bottom-start")||$APP.B.i(g,"bottom-end")?"bottom":"top";c=$APP.sh.i($APP.oh.i(a-$APP.Jl.g(d),12),$APP.oh.i(c,200)-12-8);b.setAttribute("data-side",e);b.style.left=""+$APP.T.g(c)+"px"},Ls=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=xs(a),d=$APP.k(b,"trigger"),e=$APP.Pg(a,":host{color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-height:24rem;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dpanel]{position:absolute;box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-popover-panel-max-height);overflow-y:auto;pointer-events:auto;opacity:0;transform:scale(0.96);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing);}[part\x3dpanel][data-open]{opacity:1;transform:scale(1);}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3darrow][data-side\x3dbottom]{top:calc(var(--x-popover-arrow-size) / -2);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3darrow][data-side\x3dtop]{bottom:calc(var(--x-popover-arrow-size) / -2);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheader][hidden]{display:none;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}",
13
- 1E3),g=Gs(e,c),h=Es.g(g),l=Fs.g(g),m=Bs.g(g),p=Cs.g(g);g=Ds.g(g);h=Hs(a.shadowRoot.querySelector("slot:not([name])"),h);$APP.ja(a,"__xPopoverMovedBody",$APP.zd(h));b=Hs($APP.k(b,"footerSlot"),l);$APP.ja(a,"__xPopoverMovedFooter",$APP.zd(b));$APP.z(b)>0&&l.removeAttribute("hidden");Js(m,p,d,$APP.Qj.g(c));l=function(){return Ks.i?Ks.i(a,"close-button"):Ks.call(null,a,"close-button")};b=function(q){return $APP.B.i(q.key,"Escape")?(q.preventDefault(),Ks.i?Ks.i(a,"escape"):Ks.call(null,a,"escape")):null};
14
- h=function(q){return $APP.n(m.contains(q.target))?null:Ks.i?Ks.i(a,"outside-click"):Ks.call(null,a,"outside-click")};g.addEventListener("click",l);e.addEventListener("keydown",b,!0);e.addEventListener("click",h);e.__onKey=b;e.__onClickBackdrop=h;e.__onCloseBtn=l;e.__closeBtnEl=g;a.__xPopoverLayer=e;requestAnimationFrame(function(){return $APP.n($APP.n(m)?a.isConnected:m)?(Js(m,p,d,$APP.Qj.g(c)),m.setAttribute("data-open","")):null})}},Ms=function(a){var b=$APP.k(a,"__xPopoverLayer");if($APP.n(b)){var c=
15
- $APP.k(a,"__xPopoverMovedBody");$APP.n(c)&&Is(a,$APP.uc(c));c=$APP.k(a,"__xPopoverMovedFooter");$APP.n(c)&&Is(a,$APP.uc(c));$APP.Rg(b);a.__xPopoverLayer=null;a.__xPopoverMovedBody=null;a.__xPopoverMovedFooter=null}},Ns=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&$APP.r(a.hasAttribute("open"))&&zs(a,{open:!0,source:b})?(a.setAttribute("open",""),$APP.n(a.hasAttribute("portal"))&&Ls(a),As(a,{open:!0})):null},Ks=function(a,b){var c=$APP.r(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):
16
- c)&&zs(a,{open:!1,source:b})?(Ms(a),a.removeAttribute("open"),As(a,{open:!1})):null},Os=function(a,b){return $APP.n(a.hasAttribute("open"))?Ks(a,b):Ns(a,b)},Ps=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Qs=function(a){a=$APP.k(a,"__xPopoverHandlers");
17
- if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Rs=function(a){return{triggerClick:function(){return Os(a,"pointer")},closeBtnClick:function(){return Ks(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?Ks(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),
18
- b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:Ks(a,"outside-click")):null},docKeydown:function(b){b=$APP.B.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Ks(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?os($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>0)):null}}},Ss=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.k(b,"closeBtn"),
19
- e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},Ts=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return os(this,c,$APP.F(d))}})},Us=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
20
- enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Ws=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Vs}});Ts(b,"open","open");Ts(b,"disabled","disabled");Ts(b,"noClose","no-close");Ts(b,"portal","portal");Us(b,"placement","placement");Us(b,"heading","heading");Us(b,"closeLabel",
21
- "close-label");b.show=function(){return Ns(this,"programmatic")};b.hide=function(){return Ks(this,"programmatic")};b.toggle=function(){return Os(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=ns("style"),e=ns("span"),g=ns("slot"),h=ns("div"),l=ns("div"),m=ns("div"),p=ns("span"),q=ns("button"),v=ns("div"),x=ns("slot"),y=ns("div"),A=ns("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}:host([portal][open]) [part\x3dpanel]{visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
9
+ $APP.n(c)&&m.setAttribute("hidden","");d=$APP.B.i(b,"");$APP.n(d?c:d)&&h.setAttribute("hidden","");$APP.N(b,"")&&(e.setAttribute("aria-labelledby","portal-heading"),l.setAttribute("id","portal-heading"));p.setAttribute("part","body");q.setAttribute("part","footer");q.setAttribute("hidden","");h.appendChild(l);h.appendChild(m);e.appendChild(g);e.appendChild(h);e.appendChild(p);e.appendChild(q);a.appendChild(e);return new $APP.R(null,7,[Cs,e,Ds,g,$APP.oj,h,$APP.Al,l,Es,m,Fs,p,Gs,q],null)},Is=function(a,
10
+ b){a=a.assignedNodes({flatten:!0});a=$APP.We.i($APP.fe,$APP.uc(a));for(var c=$APP.t(a),d=null,e=0,g=0;;)if(g<e){var h=d.F(null,g);b.appendChild(h);g+=1}else if(c=$APP.t(c))d=c,$APP.Nc(d)?(c=$APP.yb(d),g=$APP.zb(d),d=c,e=$APP.z(c),c=g):(c=$APP.u(d),b.appendChild(c),c=$APP.w(d),d=null,e=0),g=0;else break;return a},Js=function(a,b){if($APP.n(a.isConnected)){b=$APP.t(b);for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e);a.appendChild(g);e+=1}else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.yb(c),d=$APP.zb(c),
11
+ c=b,g=$APP.z(b),b=d,d=g):(g=$APP.u(c),a.appendChild(g),b=$APP.w(c),c=null,d=0),e=0;else break}},Ks=function(a,b,c,d){var e=c.getBoundingClientRect();c=a.offsetWidth;var g=a.offsetHeight,h=window.innerWidth,l=window.innerHeight;d=ns(d,new $APP.R(null,4,[$APP.Kl,e.left,$APP.Jl,e.top,$APP.Xg,e.width,$APP.Yg,e.height],null),new $APP.R(null,2,[$APP.Xg,$APP.oh.i(c,200),$APP.Yg,$APP.oh.i(g,100)],null),new $APP.R(null,2,[$APP.Xg,h,$APP.Yg,l],null));g=$APP.vi.g(d);a.style.left=""+$APP.T.g($APP.Kl.g(d))+"px";
12
+ a.style.top=""+$APP.T.g($APP.Jl.g(d))+"px";a.style.maxHeight=""+$APP.T.g($APP.Ek.g(d))+"px";a=e.left+e.width/2;e=$APP.B.i(g,"bottom-start")||$APP.B.i(g,"bottom-end")?"bottom":"top";c=$APP.sh.i($APP.oh.i(a-$APP.Kl.g(d),12),$APP.oh.i(c,200)-12-8);b.setAttribute("data-side",e);b.style.left=""+$APP.T.g(c)+"px"},Ms=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=ys(a),d=$APP.k(b,"trigger"),e=$APP.Pg(a,":host{color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-height:24rem;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dpanel]{position:absolute;box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-popover-panel-max-height);overflow-y:auto;pointer-events:auto;opacity:0;transform:scale(0.96);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing);}[part\x3dpanel][data-open]{opacity:1;transform:scale(1);}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3darrow][data-side\x3dbottom]{top:calc(var(--x-popover-arrow-size) / -2);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3darrow][data-side\x3dtop]{bottom:calc(var(--x-popover-arrow-size) / -2);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheader][hidden]{display:none;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}",
13
+ 1E3),g=Hs(e,c),h=Fs.g(g),l=Gs.g(g),m=Cs.g(g),p=Ds.g(g);g=Es.g(g);h=Is(a.shadowRoot.querySelector("slot:not([name])"),h);$APP.ja(a,"__xPopoverMovedBody",$APP.zd(h));b=Is($APP.k(b,"footerSlot"),l);$APP.ja(a,"__xPopoverMovedFooter",$APP.zd(b));$APP.z(b)>0&&l.removeAttribute("hidden");Ks(m,p,d,$APP.Qj.g(c));l=function(){return Ls.i?Ls.i(a,"close-button"):Ls.call(null,a,"close-button")};b=function(q){return $APP.B.i(q.key,"Escape")?(q.preventDefault(),Ls.i?Ls.i(a,"escape"):Ls.call(null,a,"escape")):null};
14
+ h=function(q){return $APP.n(m.contains(q.target))?null:Ls.i?Ls.i(a,"outside-click"):Ls.call(null,a,"outside-click")};g.addEventListener("click",l);e.addEventListener("keydown",b,!0);e.addEventListener("click",h);e.__onKey=b;e.__onClickBackdrop=h;e.__onCloseBtn=l;e.__closeBtnEl=g;a.__xPopoverLayer=e;requestAnimationFrame(function(){return $APP.n($APP.n(m)?a.isConnected:m)?(Ks(m,p,d,$APP.Qj.g(c)),m.setAttribute("data-open","")):null})}},Ns=function(a){var b=$APP.k(a,"__xPopoverLayer");if($APP.n(b)){var c=
15
+ $APP.k(a,"__xPopoverMovedBody");$APP.n(c)&&Js(a,$APP.uc(c));c=$APP.k(a,"__xPopoverMovedFooter");$APP.n(c)&&Js(a,$APP.uc(c));$APP.Rg(b);a.__xPopoverLayer=null;a.__xPopoverMovedBody=null;a.__xPopoverMovedFooter=null}},Os=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&$APP.r(a.hasAttribute("open"))&&As(a,{open:!0,source:b})?(a.setAttribute("open",""),$APP.n(a.hasAttribute("portal"))&&Ms(a),Bs(a,{open:!0})):null},Ls=function(a,b){var c=$APP.r(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):
16
+ c)&&As(a,{open:!1,source:b})?(Ns(a),a.removeAttribute("open"),Bs(a,{open:!1})):null},Ps=function(a,b){return $APP.n(a.hasAttribute("open"))?Ls(a,b):Os(a,b)},Qs=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Rs=function(a){a=$APP.k(a,"__xPopoverHandlers");
17
+ if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Ss=function(a){return{triggerClick:function(){return Ps(a,"pointer")},closeBtnClick:function(){return Ls(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?Ls(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),
18
+ b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:Ls(a,"outside-click")):null},docKeydown:function(b){b=$APP.B.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Ls(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?ps($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>0)):null}}},Ts=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.k(b,"closeBtn"),
19
+ e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},Us=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ps(this,c,$APP.F(d))}})},Vs=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
20
+ enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Xs=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Ws}});Us(b,"open","open");Us(b,"disabled","disabled");Us(b,"noClose","no-close");Us(b,"portal","portal");Vs(b,"placement","placement");Vs(b,"heading","heading");Vs(b,"closeLabel",
21
+ "close-label");b.show=function(){return Os(this,"programmatic")};b.hide=function(){return Ls(this,"programmatic")};b.toggle=function(){return Ps(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=os("style"),e=os("span"),g=os("slot"),h=os("div"),l=os("div"),m=os("div"),p=os("span"),q=os("button"),v=os("div"),x=os("slot"),y=os("div"),A=os("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}:host([portal][open]) [part\x3dpanel]{visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
22
22
  e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");l.setAttribute("part","arrow");l.setAttribute("aria-hidden","true");m.setAttribute("part","header");p.setAttribute("part","heading");p.setAttribute("id","popover-heading");q.setAttribute("part","close-button");q.setAttribute("type","button");q.setAttribute("aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
23
- v.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);v.appendChild(x);y.appendChild(A);h.appendChild(l);h.appendChild(m);h.appendChild(v);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:v,footer:y,footerSlot:A}}Ss(this);Qs(this);this.__xPopoverHandlers=Rs(this);c=$APP.k(this,"__xPopoverRefs");
24
- $APP.n(c)&&(d=$APP.k(this,"__xPopoverHandlers"),$APP.n(d)&&(e=$APP.k(c,"closeBtn"),g=$APP.k(c,"footerSlot"),$APP.k(c,"trigger").addEventListener("click",$APP.k(d,"triggerClick")),e.addEventListener("click",$APP.k(d,"closeBtnClick")),this.addEventListener("focusout",$APP.k(d,"hostFocusout")),g.addEventListener("slotchange",$APP.k(d,"footerSlotchange"))));$APP.n(this.hasAttribute("open"))&&Ps(this);return ys(this)};b.disconnectedCallback=function(){Ms(this);Ss(this);return Qs(this)};b.attributeChangedCallback=
25
- function(c){$APP.n($APP.k(this,"__xPopoverRefs"))?(ys(this),c=$APP.B.i(c,"open")?$APP.n(this.hasAttribute("open"))?Ps(this):Qs(this):null):c=null;return c};return a},Xs=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",Ws())},Bs=new $APP.K(null,"panel","panel",-558637456),Fs=new $APP.K(null,"footer","footer",1606445390),ws=new $APP.K(null,"close-label","close-label",-1088385889),us=new $APP.K(null,"no-close?","no-close?",1842227643),ss=new $APP.K(null,
26
- "close-label-raw","close-label-raw",798572883),vs=new $APP.K(null,"portal?","portal?",-167584340),Es=new $APP.K(null,"body","body",-2049205669),rs=new $APP.K(null,"heading-raw","heading-raw",116296555),Ds=new $APP.K(null,"closeBtn","closeBtn",1947660915),ps=new $APP.K(null,"no-close-present?","no-close-present?",-154717274),Cs=new $APP.K(null,"arrow","arrow",1071351425),qs=new $APP.K(null,"portal-present?","portal-present?",-463262026);var ts=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Vs="open placement heading close-label no-close disabled portal".split(" ");$APP.Pd(["x-popover-toggle",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,2,[$APP.gm,$APP.Zj,$APP.ql,$APP.Y],null)],null),"x-popover-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.gm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_popover.init",Xs);export const init=Xs;
23
+ v.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);v.appendChild(x);y.appendChild(A);h.appendChild(l);h.appendChild(m);h.appendChild(v);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:v,footer:y,footerSlot:A}}Ts(this);Rs(this);this.__xPopoverHandlers=Ss(this);c=$APP.k(this,"__xPopoverRefs");
24
+ $APP.n(c)&&(d=$APP.k(this,"__xPopoverHandlers"),$APP.n(d)&&(e=$APP.k(c,"closeBtn"),g=$APP.k(c,"footerSlot"),$APP.k(c,"trigger").addEventListener("click",$APP.k(d,"triggerClick")),e.addEventListener("click",$APP.k(d,"closeBtnClick")),this.addEventListener("focusout",$APP.k(d,"hostFocusout")),g.addEventListener("slotchange",$APP.k(d,"footerSlotchange"))));$APP.n(this.hasAttribute("open"))&&Qs(this);return zs(this)};b.disconnectedCallback=function(){Ns(this);Ts(this);return Rs(this)};b.attributeChangedCallback=
25
+ function(c){$APP.n($APP.k(this,"__xPopoverRefs"))?(zs(this),c=$APP.B.i(c,"open")?$APP.n(this.hasAttribute("open"))?Qs(this):Rs(this):null):c=null;return c};return a},Ys=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",Xs())},Cs=new $APP.K(null,"panel","panel",-558637456),Gs=new $APP.K(null,"footer","footer",1606445390),xs=new $APP.K(null,"close-label","close-label",-1088385889),vs=new $APP.K(null,"no-close?","no-close?",1842227643),ts=new $APP.K(null,
26
+ "close-label-raw","close-label-raw",798572883),ws=new $APP.K(null,"portal?","portal?",-167584340),Fs=new $APP.K(null,"body","body",-2049205669),ss=new $APP.K(null,"heading-raw","heading-raw",116296555),Es=new $APP.K(null,"closeBtn","closeBtn",1947660915),qs=new $APP.K(null,"no-close-present?","no-close-present?",-154717274),Ds=new $APP.K(null,"arrow","arrow",1071351425),rs=new $APP.K(null,"portal-present?","portal-present?",-463262026);var us=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Ws="open placement heading close-label no-close disabled portal".split(" ");$APP.Pd(["x-popover-toggle",new $APP.R(null,2,[$APP.km,!0,$APP.V,new $APP.R(null,2,[$APP.hm,$APP.Zj,$APP.rl,$APP.Y],null)],null),"x-popover-change",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,1,[$APP.hm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_popover.init",Ys);export const init=Ys;
@@ -0,0 +1,41 @@
1
+ // x-progress-circle.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XProgressCircleEventMap {
6
+ "x-progress-circle-complete": CustomEvent<{ value: number; max: number }>;
7
+ }
8
+
9
+ export interface XProgressCircle extends HTMLElement {
10
+ value: string;
11
+ max: string;
12
+ indeterminate: boolean;
13
+ showValue: boolean;
14
+
15
+ addEventListener<K extends keyof XProgressCircleEventMap>(
16
+ type: K,
17
+ listener: (this: XProgressCircle, ev: XProgressCircleEventMap[K]) => any,
18
+ options?: boolean | AddEventListenerOptions
19
+ ): void;
20
+ addEventListener(
21
+ type: string,
22
+ listener: EventListenerOrEventListenerObject,
23
+ options?: boolean | AddEventListenerOptions
24
+ ): void;
25
+ removeEventListener<K extends keyof XProgressCircleEventMap>(
26
+ type: K,
27
+ listener: (this: XProgressCircle, ev: XProgressCircleEventMap[K]) => any,
28
+ options?: boolean | EventListenerOptions
29
+ ): void;
30
+ removeEventListener(
31
+ type: string,
32
+ listener: EventListenerOrEventListenerObject,
33
+ options?: boolean | EventListenerOptions
34
+ ): void;
35
+ }
36
+
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ "x-progress-circle": XProgressCircle;
40
+ }
41
+ }
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var iX=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},lX=function(a){var b=new $APP.R(null,7,[$APP.Yi,a.getAttribute("value"),$APP.Vk,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Mh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.nk,a.hasAttribute("show-value"),$APP.mm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Vk),e=$APP.D(c,$APP.Yi),g=$APP.D(c,$APP.Vg),h=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
- $APP.nk);c=$APP.D(c,$APP.mm);d=iX(d,100);d=d>0?d:100;e=$APP.sh.i($APP.oh.i(iX(e,0),0),d);g=typeof g==="string"&&$APP.I(jX,g)?g:"default";h=typeof h==="string"&&$APP.I(kX,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.sh.i($APP.oh.i(e/d*100,0),100);b=$APP.zf([$APP.Vg,$APP.nk,$APP.Yi,$APP.Mh,$APP.mm,$APP.Xm,$APP.Vk,$APP.U,$APP.Ll],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.Ll);l=$APP.D(p,$APP.Vg);d=$APP.D(p,
4
- $APP.nk);h=$APP.D(p,$APP.Yi);c=$APP.D(p,$APP.Mh);e=$APP.D(p,$APP.Xm);g=$APP.D(p,$APP.mm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Vk);var q=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.r(g)&&h>=p,C=$APP.n(g)?75:100*(1-b/100);q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));
2
+ var iX=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},lX=function(a){var b=new $APP.R(null,7,[$APP.Yi,a.getAttribute("value"),$APP.Vk,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Mh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.nk,a.hasAttribute("show-value"),$APP.nm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Vk),e=$APP.D(c,$APP.Yi),g=$APP.D(c,$APP.Vg),h=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
+ $APP.nk);c=$APP.D(c,$APP.nm);d=iX(d,100);d=d>0?d:100;e=$APP.sh.i($APP.oh.i(iX(e,0),0),d);g=typeof g==="string"&&$APP.I(jX,g)?g:"default";h=typeof h==="string"&&$APP.I(kX,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.sh.i($APP.oh.i(e/d*100,0),100);b=$APP.zf([$APP.Vg,$APP.nk,$APP.Yi,$APP.Mh,$APP.nm,$APP.Ym,$APP.Vk,$APP.U,$APP.Ml],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.Ml);l=$APP.D(p,$APP.Vg);d=$APP.D(p,
4
+ $APP.nk);h=$APP.D(p,$APP.Yi);c=$APP.D(p,$APP.Mh);e=$APP.D(p,$APP.Ym);g=$APP.D(p,$APP.nm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Vk);var q=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.r(g)&&h>=p,C=$APP.n(g)?75:100*(1-b/100);q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));
5
5
  v.setAttribute("stroke-dashoffset",""+$APP.T.g(C));x.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.r(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",
6
6
  e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.r(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.F(A)},mX=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
7
  "max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
@@ -0,0 +1,44 @@
1
+ // x-progress.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XProgressEventMap {
6
+ "x-progress-complete": CustomEvent<{ value: number; max: number }>;
7
+ }
8
+
9
+ export interface XProgress extends HTMLElement {
10
+ value: string;
11
+ max: string;
12
+ variant: string;
13
+ size: string;
14
+ label: string;
15
+ indeterminate: boolean;
16
+ showValue: boolean;
17
+
18
+ addEventListener<K extends keyof XProgressEventMap>(
19
+ type: K,
20
+ listener: (this: XProgress, ev: XProgressEventMap[K]) => any,
21
+ options?: boolean | AddEventListenerOptions
22
+ ): void;
23
+ addEventListener(
24
+ type: string,
25
+ listener: EventListenerOrEventListenerObject,
26
+ options?: boolean | AddEventListenerOptions
27
+ ): void;
28
+ removeEventListener<K extends keyof XProgressEventMap>(
29
+ type: K,
30
+ listener: (this: XProgress, ev: XProgressEventMap[K]) => any,
31
+ options?: boolean | EventListenerOptions
32
+ ): void;
33
+ removeEventListener(
34
+ type: string,
35
+ listener: EventListenerOrEventListenerObject,
36
+ options?: boolean | EventListenerOptions
37
+ ): void;
38
+ }
39
+
40
+ declare global {
41
+ interface HTMLElementTagNameMap {
42
+ "x-progress": XProgress;
43
+ }
44
+ }
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var J7=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},M7=function(a){var b=new $APP.R(null,7,[$APP.Yi,a.getAttribute("value"),$APP.Vk,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Mh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.nk,a.hasAttribute("show-value"),$APP.mm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Vk),e=$APP.D(c,$APP.Yi),g=$APP.D(c,$APP.Vg),h=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
- $APP.nk);c=$APP.D(c,$APP.mm);d=J7(d,100);d=d>0?d:100;e=$APP.sh.i($APP.oh.i(J7(e,0),0),d);g=typeof g==="string"&&$APP.I(K7,g)?g:"default";h=typeof h==="string"&&$APP.I(L7,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.sh.i($APP.oh.i(e/d*100,0),100);b=$APP.zf([$APP.Vg,$APP.nk,$APP.Yi,$APP.Mh,$APP.mm,$APP.Xm,$APP.Vk,$APP.U,$APP.Ll],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.Ll);l=$APP.D(p,$APP.Vg);d=$APP.D(p,
4
- $APP.nk);h=$APP.D(p,$APP.Yi);c=$APP.D(p,$APP.Mh);e=$APP.D(p,$APP.Xm);g=$APP.D(p,$APP.mm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Vk);var q=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var C=(C=m!=null)?C:d;var E=$APP.k(a,"__xProgressCompleted"),H=$APP.r(g)&&h>=p;q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
2
+ var J7=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},M7=function(a){var b=new $APP.R(null,7,[$APP.Yi,a.getAttribute("value"),$APP.Vk,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Mh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.nk,a.hasAttribute("show-value"),$APP.nm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Vk),e=$APP.D(c,$APP.Yi),g=$APP.D(c,$APP.Vg),h=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
+ $APP.nk);c=$APP.D(c,$APP.nm);d=J7(d,100);d=d>0?d:100;e=$APP.sh.i($APP.oh.i(J7(e,0),0),d);g=typeof g==="string"&&$APP.I(K7,g)?g:"default";h=typeof h==="string"&&$APP.I(L7,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.sh.i($APP.oh.i(e/d*100,0),100);b=$APP.zf([$APP.Vg,$APP.nk,$APP.Yi,$APP.Mh,$APP.nm,$APP.Ym,$APP.Vk,$APP.U,$APP.Ml],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.Ml);l=$APP.D(p,$APP.Vg);d=$APP.D(p,
4
+ $APP.nk);h=$APP.D(p,$APP.Yi);c=$APP.D(p,$APP.Mh);e=$APP.D(p,$APP.Ym);g=$APP.D(p,$APP.nm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Vk);var q=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var C=(C=m!=null)?C:d;var E=$APP.k(a,"__xProgressCompleted"),H=$APP.r(g)&&h>=p;q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
5
  $APP.n(g)?"40%":""+$APP.T.g(b.toFixed(2))+"%";v.style.display=$APP.n(C)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),
6
6
  a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.r(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.F(H)},N7=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",
7
7
  ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,
@@ -0,0 +1,44 @@
1
+ // x-radio.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XRadioEventMap {
6
+ "x-radio-change-request": CustomEvent<{ value: string; previousChecked: boolean; nextChecked: boolean }>;
7
+ "x-radio-change": CustomEvent<{ value: string; checked: boolean }>;
8
+ }
9
+
10
+ export interface XRadio extends HTMLElement {
11
+ checked: boolean;
12
+ disabled: boolean;
13
+ readOnly: boolean;
14
+ required: boolean;
15
+ name: string;
16
+ value: string;
17
+
18
+ addEventListener<K extends keyof XRadioEventMap>(
19
+ type: K,
20
+ listener: (this: XRadio, ev: XRadioEventMap[K]) => any,
21
+ options?: boolean | AddEventListenerOptions
22
+ ): void;
23
+ addEventListener(
24
+ type: string,
25
+ listener: EventListenerOrEventListenerObject,
26
+ options?: boolean | AddEventListenerOptions
27
+ ): void;
28
+ removeEventListener<K extends keyof XRadioEventMap>(
29
+ type: K,
30
+ listener: (this: XRadio, ev: XRadioEventMap[K]) => any,
31
+ options?: boolean | EventListenerOptions
32
+ ): void;
33
+ removeEventListener(
34
+ type: string,
35
+ listener: EventListenerOrEventListenerObject,
36
+ options?: boolean | EventListenerOptions
37
+ ): void;
38
+ }
39
+
40
+ declare global {
41
+ interface HTMLElementTagNameMap {
42
+ "x-radio": XRadio;
43
+ }
44
+ }
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var nt=function(a,b,c){return a.setAttribute(b,c)},ot=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},pt=function(a){a=$APP.zf([$APP.yl,$APP.Ml,$APP.Nh,$APP.Zh,$APP.sj,$APP.Lj,$APP.Cm,$APP.Uj,$APP.Cj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
- $APP.D(b,$APP.Uj);var c=$APP.D(b,$APP.Cj),d=$APP.D(b,$APP.yl),e=$APP.D(b,$APP.Ml),g=$APP.D(b,$APP.Nh),h=$APP.D(b,$APP.Zh),l=$APP.D(b,$APP.sj),m=$APP.D(b,$APP.Lj);b=$APP.D(b,$APP.Cm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.mi,$APP.ci,$APP.bn,$APP.Ej,$APP.Th,$APP.Aj,$APP.Yi,$APP.ek,$APP.Ym,$APP.Ol,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},qt=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=pt(a);var d=$APP.X.g(b),
4
- e=$APP.Ej.g(b);nt(c,"aria-checked",$APP.ci.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");nt(c,"aria-required",$APP.n($APP.mi.g(b))?"true":"false");nt(c,"aria-readonly",$APP.n($APP.bn.g(b))?"true":"false");var g=$APP.Ol.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.ek.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Ym.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");ot(a,"data-checked",e);ot(a,"data-disabled",d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Yi.g(b):null):null}return null},rt=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},st=
6
- function(a){a=rt(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.i(d,b)?0:-1:$APP.B.i(d,c)?0:-1,e.tabIndex=d):null})},tt=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},ut=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},vt=function(a){var b=pt(a),c=$APP.X.g(b),d=$APP.bn.g(b),e=$APP.Ej.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Yi.g(b);return tt(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),qt(a),rt(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),qt(g)):null}),st(a),ut(a,{value:b,checked:!0})):null},wt=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?
8
- $APP.k(a,"control").focus():null},xt=function(a){return function(b){var c=b.key,d=rt(a),e=d.length,g=d.indexOf(a);if($APP.B.i(c," ")||$APP.B.i(c,"Enter"))return b.preventDefault(),vt(a);if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.fd(g+1,e)],vt(b),wt(b)}else if($APP.B.i(c,"ArrowUp")||$APP.B.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.fd(g-1,e)],vt(b),wt(b);return null}},yt=function(a){return function(){return vt(a)}},zt=function(a){var b=
9
- $APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},At=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ot(this,c,$APP.F(d))}})},Bt=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
- get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?nt(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Dt=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Ct}});At(b,"checked","checked");At(b,"disabled","disabled");At(b,"readOnly","readonly");At(b,"required","required");Bt(b,"name","name");Bt(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,
2
+ var ot=function(a,b,c){return a.setAttribute(b,c)},pt=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qt=function(a){a=$APP.zf([$APP.zl,$APP.Nl,$APP.Nh,$APP.Zh,$APP.sj,$APP.Lj,$APP.Dm,$APP.Uj,$APP.Cj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
+ $APP.D(b,$APP.Uj);var c=$APP.D(b,$APP.Cj),d=$APP.D(b,$APP.zl),e=$APP.D(b,$APP.Nl),g=$APP.D(b,$APP.Nh),h=$APP.D(b,$APP.Zh),l=$APP.D(b,$APP.sj),m=$APP.D(b,$APP.Lj);b=$APP.D(b,$APP.Dm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.mi,$APP.ci,$APP.cn,$APP.Ej,$APP.Th,$APP.Aj,$APP.Yi,$APP.ek,$APP.Zm,$APP.Pl,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},rt=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=qt(a);var d=$APP.X.g(b),
4
+ e=$APP.Ej.g(b);ot(c,"aria-checked",$APP.ci.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");ot(c,"aria-required",$APP.n($APP.mi.g(b))?"true":"false");ot(c,"aria-readonly",$APP.n($APP.cn.g(b))?"true":"false");var g=$APP.Pl.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.ek.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Zm.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");pt(a,"data-checked",e);pt(a,"data-disabled",d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Yi.g(b):null):null}return null},st=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},tt=
6
+ function(a){a=st(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.i(d,b)?0:-1:$APP.B.i(d,c)?0:-1,e.tabIndex=d):null})},ut=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},vt=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},wt=function(a){var b=qt(a),c=$APP.X.g(b),d=$APP.cn.g(b),e=$APP.Ej.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Yi.g(b);return ut(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),rt(a),st(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),rt(g)):null}),tt(a),vt(a,{value:b,checked:!0})):null},xt=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?
8
+ $APP.k(a,"control").focus():null},yt=function(a){return function(b){var c=b.key,d=st(a),e=d.length,g=d.indexOf(a);if($APP.B.i(c," ")||$APP.B.i(c,"Enter"))return b.preventDefault(),wt(a);if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.fd(g+1,e)],wt(b),xt(b)}else if($APP.B.i(c,"ArrowUp")||$APP.B.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.fd(g-1,e)],wt(b),xt(b);return null}},zt=function(a){return function(){return wt(a)}},At=function(a){var b=
9
+ $APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Bt=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return pt(this,c,$APP.F(d))}})},Ct=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?ot(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Et=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Dt}});Bt(b,"checked","checked");Bt(b,"disabled","disabled");Bt(b,"readOnly","readonly");Bt(b,"required","required");Ct(b,"name","name");Ct(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,
11
11
  "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}zt(this);c=$APP.k(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=yt(this),e=xt(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);qt(this);return st(this)};b.disconnectedCallback=function(){return zt(this)};b.attributeChangedCallback=function(){return qt(this)};b.formDisabledCallback=function(c){ot(this,"disabled",$APP.F(c));return qt(this)};b.formResetCallback=function(){this.removeAttribute("checked");return qt(this)};return a},Et=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Dt())};var Ct="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-radio-change-request",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,3,[$APP.Yi,$APP.Y,$APP.vk,$APP.Zj,$APP.Tl,$APP.Zj],null)],null),"x-radio-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.Y,$APP.Qm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_radio.init",Et);export const init=Et;
12
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}At(this);c=$APP.k(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=zt(this),e=yt(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);rt(this);return tt(this)};b.disconnectedCallback=function(){return At(this)};b.attributeChangedCallback=function(){return rt(this)};b.formDisabledCallback=function(c){pt(this,"disabled",$APP.F(c));return rt(this)};b.formResetCallback=function(){this.removeAttribute("checked");return rt(this)};return a},Ft=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Et())};var Dt="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-radio-change-request",new $APP.R(null,2,[$APP.km,!0,$APP.V,new $APP.R(null,3,[$APP.Yi,$APP.Y,$APP.vk,$APP.Zj,$APP.Ul,$APP.Zj],null)],null),"x-radio-change",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.Y,$APP.Rm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_radio.init",Ft);export const init=Ft;
@@ -0,0 +1,42 @@
1
+ // x-ripple-effect.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XRippleEffectEventMap {
6
+ "x-ripple-effect-start": CustomEvent<{ x: number; y: number }>;
7
+ "x-ripple-effect-end": CustomEvent<{ x: number; y: number }>;
8
+ }
9
+
10
+ export interface XRippleEffect extends HTMLElement {
11
+ intensity: number;
12
+ duration: number;
13
+ frequency: number;
14
+ disabled: boolean;
15
+
16
+ addEventListener<K extends keyof XRippleEffectEventMap>(
17
+ type: K,
18
+ listener: (this: XRippleEffect, ev: XRippleEffectEventMap[K]) => any,
19
+ options?: boolean | AddEventListenerOptions
20
+ ): void;
21
+ addEventListener(
22
+ type: string,
23
+ listener: EventListenerOrEventListenerObject,
24
+ options?: boolean | AddEventListenerOptions
25
+ ): void;
26
+ removeEventListener<K extends keyof XRippleEffectEventMap>(
27
+ type: K,
28
+ listener: (this: XRippleEffect, ev: XRippleEffectEventMap[K]) => any,
29
+ options?: boolean | EventListenerOptions
30
+ ): void;
31
+ removeEventListener(
32
+ type: string,
33
+ listener: EventListenerOrEventListenerObject,
34
+ options?: boolean | EventListenerOptions
35
+ ): void;
36
+ }
37
+
38
+ declare global {
39
+ interface HTMLElementTagNameMap {
40
+ "x-ripple-effect": XRippleEffect;
41
+ }
42
+ }
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var jT=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},kT=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},lT=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},mT=function(a){var b=$APP.k(a,
3
3
  "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
- g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.R(null,3,[$APP.Hi,b,$APP.Hj,d,$APP.mk,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},pT=function(a){a=new $APP.R(null,4,[$APP.Gk,a.getAttribute("intensity"),$APP.Vi,a.getAttribute("duration"),nT,a.getAttribute("frequency"),$APP.Ml,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Gk);var c=$APP.D(b,$APP.Vi),
5
- d=$APP.D(b,nT);b=$APP.D(b,$APP.Ml);return new $APP.R(null,4,[$APP.xk,jT(a),$APP.dl,kT(c),oT,lT(d),$APP.X,$APP.F(b)],null)},sT=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
- e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.R(null,3,[$APP.il,d,qT,e,rT,g],null)},
7
- tT=function(a,b){var c=pT(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.xk),e=$APP.D(c,$APP.dl),g=$APP.D(c,oT);c=mT(a);c=$APP.M(c);var h=$APP.D(c,$APP.Hj),l=$APP.D(c,$APP.mk),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=sT(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.il),q=$APP.D(m,qT),v=$APP.D(m,rT),x=b.clientX,y=b.clientY,A=performance.now(),C=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
4
+ g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.R(null,3,[$APP.Hi,b,$APP.Hj,d,$APP.mk,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},pT=function(a){a=new $APP.R(null,4,[$APP.Gk,a.getAttribute("intensity"),$APP.Vi,a.getAttribute("duration"),nT,a.getAttribute("frequency"),$APP.Nl,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Gk);var c=$APP.D(b,$APP.Vi),
5
+ d=$APP.D(b,nT);b=$APP.D(b,$APP.Nl);return new $APP.R(null,4,[$APP.xk,jT(a),$APP.el,kT(c),oT,lT(d),$APP.X,$APP.F(b)],null)},sT=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.R(null,3,[$APP.jl,d,qT,e,rT,g],null)},
7
+ tT=function(a,b){var c=pT(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.xk),e=$APP.D(c,$APP.el),g=$APP.D(c,oT);c=mT(a);c=$APP.M(c);var h=$APP.D(c,$APP.Hj),l=$APP.D(c,$APP.mk),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=sT(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.jl),q=$APP.D(m,qT),v=$APP.D(m,rT),x=b.clientX,y=b.clientY,A=performance.now(),C=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
8
  "url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var G=performance.now()-A;G=Math.min(1,G/e);var J=1-G;J=1-J*J*J;var Q=g*(1-J*.7);v.setAttribute("scale",
9
9
  ""+$APP.T.g(d*(1-J)));q.setAttribute("baseFrequency",""+$APP.T.g(Q));if(G>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));G=requestAnimationFrame(H);return C.push(G)});C.push(b)}},uT=function(a){function b(c){c.button===0&&tT(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},vT=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
10
  d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.mk);for(c=$APP.D(c,$APP.Hj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},wT=function(a){Object.defineProperty(a,"intensity",{get:function(){return jT(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
11
  this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return kT(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return lT(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
12
  ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},yT=function(){var a=class extends HTMLElement{};a.observedAttributes=xT;a.prototype.connectedCallback=function(){mT(this);vT(this);uT(this);return null};a.prototype.disconnectedCallback=function(){vT(this);return null};a.prototype.attributeChangedCallback=
13
- function(){return null};wT(a.prototype);return a},zT=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",yT());return null},qT=new $APP.K(null,"turb","turb",-804768361),nT=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),rT=new $APP.K(null,"disp","disp",-2047544334),oT=new $APP.K(null,"frequency","frequency",-1408891382);var xT=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Jl,$APP.W,$APP.Il,$APP.W],null),$APP.jm,!1],null),"x-ripple-effect-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Jl,$APP.W,$APP.Il,$APP.W],null),$APP.jm,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",zT);export const init=zT;
13
+ function(){return null};wT(a.prototype);return a},zT=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",yT());return null},qT=new $APP.K(null,"turb","turb",-804768361),nT=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),rT=new $APP.K(null,"disp","disp",-2047544334),oT=new $APP.K(null,"frequency","frequency",-1408891382);var xT=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Kl,$APP.W,$APP.Jl,$APP.W],null),$APP.km,!1],null),"x-ripple-effect-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Kl,$APP.W,$APP.Jl,$APP.W],null),$APP.km,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",zT);export const init=zT;
@@ -0,0 +1,45 @@
1
+ // x-scroll-parallax.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XScrollParallaxEventMap {
6
+ "x-scroll-parallax-enter": CustomEvent<{ progress: number }>;
7
+ "x-scroll-parallax-leave": CustomEvent<{ progress: number }>;
8
+ "x-scroll-parallax-progress": CustomEvent<{ progress: number }>;
9
+ }
10
+
11
+ export interface XScrollParallax extends HTMLElement {
12
+ direction: string;
13
+ source: string;
14
+ easing: string;
15
+ disabled: boolean;
16
+ label: string;
17
+ readonly progress: number;
18
+
19
+ addEventListener<K extends keyof XScrollParallaxEventMap>(
20
+ type: K,
21
+ listener: (this: XScrollParallax, ev: XScrollParallaxEventMap[K]) => any,
22
+ options?: boolean | AddEventListenerOptions
23
+ ): void;
24
+ addEventListener(
25
+ type: string,
26
+ listener: EventListenerOrEventListenerObject,
27
+ options?: boolean | AddEventListenerOptions
28
+ ): void;
29
+ removeEventListener<K extends keyof XScrollParallaxEventMap>(
30
+ type: K,
31
+ listener: (this: XScrollParallax, ev: XScrollParallaxEventMap[K]) => any,
32
+ options?: boolean | EventListenerOptions
33
+ ): void;
34
+ removeEventListener(
35
+ type: string,
36
+ listener: EventListenerOrEventListenerObject,
37
+ options?: boolean | EventListenerOptions
38
+ ): void;
39
+ }
40
+
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ "x-scroll-parallax": XScrollParallax;
44
+ }
45
+ }
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var wZ=function(a){return new $APP.R(null,1,[$APP.am,a],null)},xZ=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
2
+ var wZ=function(a){return new $APP.R(null,1,[$APP.bm,a],null)},xZ=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
3
  d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.R(null,4,[$APP.Hi,b,$APP.mj,d,$APP.kj,e,$APP.Fi,g],null);return $APP.k(a,"__xScrollParallaxRefs")},EZ=function(a){a=new $APP.R(null,5,[$APP.Zi,a.getAttribute("direction"),yZ,a.getAttribute("source"),zZ,a.getAttribute("easing"),$APP.ej,
4
- $APP.n(a.hasAttribute("disabled"))?"":null,$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Zi),d=$APP.D(b,yZ),e=$APP.D(b,zZ);a=$APP.D(b,$APP.ej);b=$APP.D(b,$APP.pi);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(AZ,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(BZ,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(CZ,e)?e:"none";return new $APP.R(null,5,[$APP.tj,c,$APP.ql,d,DZ,e,$APP.X,a!=null,$APP.U,$APP.n(b)?
4
+ $APP.n(a.hasAttribute("disabled"))?"":null,$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Zi),d=$APP.D(b,yZ),e=$APP.D(b,zZ);a=$APP.D(b,$APP.ej);b=$APP.D(b,$APP.pi);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(AZ,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(BZ,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(CZ,e)?e:"none";return new $APP.R(null,5,[$APP.tj,c,$APP.rl,d,DZ,e,$APP.X,a!=null,$APP.U,$APP.n(b)?
5
5
  b:""],null)},FZ=function(a){a=xZ(a);a=$APP.M(a);return $APP.D(a,$APP.kj).assignedElements()},GZ=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.R(null,4,[$APP.Gj,b,$APP.ti,c,$APP.qi,$APP.B.i("fade",a.getAttribute("data-opacity")),$APP.aj,$APP.B.i("grow",a.getAttribute("data-scale"))],null)},HZ=function(a){var b=
6
6
  $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=FZ(a);b=$APP.We.m($APP.fe,$APP.ae.g(GZ),$APP.uc(b));return a.__xScrollParallaxChildCache=b},IZ=function(a){a.__xScrollParallaxChildCache=null},JZ=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},KZ=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
7
  a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},LZ=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},MZ=function(a){var b=function(){var H=$APP.k(a,"__xScrollParallaxModel");return $APP.n(H)?H:EZ(a)}();if(!$APP.n($APP.X.g(b))){var c=a.getBoundingClientRect();b=$APP.B.i("vertical",$APP.tj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.oh.i(0,$APP.sh.i(1,(d-c.top)/(d+
@@ -16,5 +16,5 @@ this.setAttribute("direction",""+$APP.T.g(b)):this.removeAttribute("direction")}
16
16
  this.setAttribute("easing",""+$APP.T.g(b)):this.removeAttribute("easing")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",
17
17
  ""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},YZ=function(){var a=class extends HTMLElement{};a.observedAttributes=XZ;a.prototype.connectedCallback=function(){xZ(this);TZ(this);SZ(this);UZ(this);VZ(this);return null};a.prototype.disconnectedCallback=function(){for(var b=FZ(this),c=b.length,d=0;;)if(d<c){var e=b[d];
18
18
  e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(this,"__xScrollParallaxVisible"))&&(b=$APP.k(this,"__xScrollParallaxLastProg"),LZ(this,"x-scroll-parallax-leave",wZ($APP.n(b)?b:0)));TZ(this);b=$APP.k(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);IZ(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&VZ(this);return null};WZ(a.prototype);return a},
19
- ZZ=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",YZ());return null},yZ=new $APP.K(null,"source-raw","source-raw",396083546),zZ=new $APP.K(null,"easing-raw","easing-raw",440485546),DZ=new $APP.K(null,"easing","easing",735372043);var XZ=["direction","source","easing","disabled","label"];$APP.Pd(["x-scroll-parallax-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-parallax-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-parallax-progress",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null)]);
19
+ ZZ=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",YZ());return null},yZ=new $APP.K(null,"source-raw","source-raw",396083546),zZ=new $APP.K(null,"easing-raw","easing-raw",440485546),DZ=new $APP.K(null,"easing","easing",735372043);var XZ=["direction","source","easing","disabled","label"];$APP.Pd(["x-scroll-parallax-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null),"x-scroll-parallax-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null),"x-scroll-parallax-progress",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null)]);
20
20
  var AZ=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),BZ=new $APP.S(null,new $APP.R(null,1,["document",null],null),null),CZ=new $APP.S(null,new $APP.R(null,2,["none",null,"smooth",null],null),null);$APP.ha("baredom.exports.x_scroll_parallax.init",ZZ);export const init=ZZ;
@@ -0,0 +1,46 @@
1
+ // x-scroll-stack.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XScrollStackEventMap {
6
+ "x-scroll-stack-change": CustomEvent<{ stackedCount: number; totalCount: number; progress: number }>;
7
+ "x-scroll-stack-progress": CustomEvent<{ progress: number; stackedCount: number; totalCount: number }>;
8
+ }
9
+
10
+ export interface XScrollStack extends HTMLElement {
11
+ peek: number;
12
+ rotation: number;
13
+ scrollDistance: number;
14
+ align: string;
15
+ disabled: boolean;
16
+ readonly stackedCount: number;
17
+ readonly progress: number;
18
+ refresh(): void;
19
+
20
+ addEventListener<K extends keyof XScrollStackEventMap>(
21
+ type: K,
22
+ listener: (this: XScrollStack, ev: XScrollStackEventMap[K]) => any,
23
+ options?: boolean | AddEventListenerOptions
24
+ ): void;
25
+ addEventListener(
26
+ type: string,
27
+ listener: EventListenerOrEventListenerObject,
28
+ options?: boolean | AddEventListenerOptions
29
+ ): void;
30
+ removeEventListener<K extends keyof XScrollStackEventMap>(
31
+ type: K,
32
+ listener: (this: XScrollStack, ev: XScrollStackEventMap[K]) => any,
33
+ options?: boolean | EventListenerOptions
34
+ ): void;
35
+ removeEventListener(
36
+ type: string,
37
+ listener: EventListenerOrEventListenerObject,
38
+ options?: boolean | EventListenerOptions
39
+ ): void;
40
+ }
41
+
42
+ declare global {
43
+ interface HTMLElementTagNameMap {
44
+ "x-scroll-stack": XScrollStack;
45
+ }
46
+ }