@vanelsas/baredom 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/custom-elements.json +344 -5
- package/dist/baredom.d.ts +4 -0
- package/dist/base.js +451 -427
- package/dist/integrity.json +97 -93
- package/dist/x-alert.js +17 -18
- package/dist/x-avatar-group.js +9 -10
- package/dist/x-avatar.js +15 -15
- package/dist/x-badge.js +9 -10
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -14
- package/dist/x-button.js +16 -18
- package/dist/x-cancel-dialogue.js +13 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -34
- package/dist/x-chart.d.ts +26 -0
- package/dist/x-chart.js +47 -46
- package/dist/x-checkbox.js +11 -10
- package/dist/x-chip.js +1 -9
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +26 -26
- package/dist/x-command-palette.js +26 -26
- package/dist/x-container.js +4 -4
- package/dist/x-context-menu.d.ts +31 -2
- package/dist/x-context-menu.js +20 -18
- package/dist/x-copy.js +20 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.d.ts +27 -0
- package/dist/x-date-picker.js +42 -41
- package/dist/x-divider.js +9 -9
- package/dist/x-drawer.js +10 -11
- package/dist/x-dropdown.js +11 -10
- package/dist/x-fieldset.js +5 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.js +20 -20
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -8
- package/dist/x-gaussian-blur.js +13 -19
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.d.ts +43 -0
- package/dist/x-i18n-provider.js +8 -0
- package/dist/x-i18n.d.ts +14 -0
- package/dist/x-i18n.js +5 -0
- package/dist/x-icon.js +6 -7
- package/dist/x-image.js +18 -19
- package/dist/x-kinetic-canvas.d.ts +18 -0
- package/dist/x-kinetic-canvas.js +26 -0
- package/dist/x-kinetic-font.js +27 -28
- package/dist/x-kinetic-typography.js +33 -39
- package/dist/x-liquid-dock.js +39 -39
- package/dist/x-liquid-fill.js +45 -45
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +8 -9
- package/dist/x-menu.js +10 -11
- package/dist/x-metaball-cursor.js +27 -27
- package/dist/x-modal.js +11 -12
- package/dist/x-morph-stack.js +37 -38
- package/dist/x-multi-combobox.d.ts +50 -0
- package/dist/x-multi-combobox.js +37 -0
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +33 -33
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -18
- package/dist/x-organic-progress.js +38 -38
- package/dist/x-organic-shape.js +13 -13
- package/dist/x-pagination.js +15 -16
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +26 -24
- package/dist/x-progress-circle.js +9 -10
- package/dist/x-progress.js +10 -11
- package/dist/x-radio.js +11 -10
- package/dist/x-ripple-effect.js +11 -12
- package/dist/x-scroll-parallax.js +18 -19
- package/dist/x-scroll-stack.js +17 -18
- package/dist/x-scroll-story.js +34 -36
- package/dist/x-scroll-timeline.js +45 -46
- package/dist/x-scroll.js +40 -41
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.js +10 -9
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +15 -16
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +4 -5
- package/dist/x-spinner.js +4 -5
- package/dist/x-splash.js +12 -13
- package/dist/x-stat.js +10 -12
- package/dist/x-stepper.js +14 -15
- package/dist/x-switch.js +10 -9
- package/dist/x-tab.js +7 -8
- package/dist/x-table-cell.js +20 -24
- package/dist/x-table-row.js +8 -9
- package/dist/x-table.js +12 -15
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +18 -18
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +21 -23
- package/dist/x-timeline.js +8 -9
- package/dist/x-toast.js +22 -24
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +12 -11
- package/dist/x-typography.js +9 -11
- package/dist/x-welcome-tour.js +60 -64
- package/package.json +21 -1
package/dist/x-tooltip.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
|
|
5
|
-
(a.removeAttribute("open"),$APP.
|
|
6
|
-
focusin:function(){return
|
|
7
|
-
$APP.k(c,"pointerleave")),a.removeEventListener("focusin",$APP.k(c,"focusin")),a.removeEventListener("focusout",$APP.k(c,"focusout")),a.removeEventListener("keydown",$APP.k(c,"keydown")),b.removeEventListener("slotchange",$APP.k(c,"slotchange")))}},
|
|
8
|
-
l=document.createElement("div"),m=document.createElement("span"),
|
|
9
|
-
d.setAttribute("part","trigger");
|
|
10
|
-
r;a.__xTooltipRefs={trigger:d,triggerSlot:e,panel:
|
|
11
|
-
c.addEventListener("slotchange",$APP.k(b,"slotchange"))));
|
|
12
|
-
|
|
2
|
+
var xv=function(a){a=new $APP.N(null,5,[$APP.$i,a.getAttribute("text"),$APP.vo,a.getAttribute("placement"),uv,a.getAttribute("delay"),$APP.Fh,a.hasAttribute("disabled"),$APP.Pj,a.hasAttribute("open")],null);var b=$APP.J(a),c=$APP.C(b,$APP.$i),d=$APP.C(b,$APP.vo),e=$APP.C(b,uv);a=$APP.C(b,$APP.Fh);b=$APP.C(b,$APP.Pj);c=$APP.n(c)?c:"";d=$APP.Zc(vv,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.Ii.i($APP.Hi.i(e,0),5E3)):e=400;return new $APP.N(null,5,[$APP.Om,c,$APP.bl,d,wv,e,$APP.Y,
|
|
3
|
+
$APP.E(a),$APP.ao,$APP.E(b)],null)},yv=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){a=xv(a);var c=$APP.J(a);a=$APP.C(c,$APP.Om);var d=$APP.C(c,$APP.bl);c=$APP.C(c,$APP.ao);var e=$APP.k(b,"panel");b=$APP.k(b,"text");e.setAttribute("data-placement",d);$APP.ah(e,"aria-hidden",""+$APP.Q.g($APP.p(c)));b.textContent=a}},zv=function(a){var b=$APP.k(a,"__xTooltipShowTimer");$APP.n(b)&&(clearTimeout(b),a.__xTooltipShowTimer=null)},Av=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;
|
|
4
|
+
zv(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");return $APP.P(a,"x-tooltip-show",{})}b=xv(a);b=$APP.J(b);b=$APP.C(b,wv);return b===0?(a.setAttribute("open",""),$APP.P(a,"x-tooltip-show",{})):$APP.Zg(a,"__xTooltipShowTimer",setTimeout(function(){a.__xTooltipShowTimer=null;return $APP.n(a.isConnected)?(a.setAttribute("open",""),$APP.P(a,"x-tooltip-show",{})):null},b))},Bv=function(a){zv(a);return $APP.n(a.hasAttribute("open"))?
|
|
5
|
+
(a.removeAttribute("open"),$APP.P(a,"x-tooltip-hide",{})):null},Cv=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(b,"triggerSlot").assignedElements();b=$APP.k(a,"__xTooltipId");var d=$APP.k(a,"__xTooltipTriggerEl");$APP.n(d)&&(d.removeAttribute("aria-describedby"),a.__xTooltipTriggerEl=null);if(c.length>0){c=c[0];c.setAttribute("aria-describedby",b);a.__xTooltipTriggerEl=c;return}}return null},Dv=function(a){return{pointerenter:function(){return Av(a,!1)},pointerleave:function(){return Bv(a)},
|
|
6
|
+
focusin:function(){return Av(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.p(a.contains(b))?Bv(a):null},keydown:function(b){b=$APP.B.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Bv(a):null},slotchange:function(){return Cv(a)}}},Ev=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(a,"__xTooltipHandlers");$APP.n(c)&&(b=$APP.k(b,"triggerSlot"),a.removeEventListener("pointerenter",$APP.k(c,"pointerenter")),a.removeEventListener("pointerleave",
|
|
7
|
+
$APP.k(c,"pointerleave")),a.removeEventListener("focusin",$APP.k(c,"focusin")),a.removeEventListener("focusout",$APP.k(c,"focusout")),a.removeEventListener("keydown",$APP.k(c,"keydown")),b.removeEventListener("slotchange",$APP.k(c,"slotchange")))}},Gv=function(a){if(!$APP.n($APP.k(a,"__xTooltipRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("div"),
|
|
8
|
+
l=document.createElement("div"),m=document.createElement("span"),q=document.createElement("slot");var r=$APP.k(Fv,"n")+1;Fv.n=r;r="x-tt-"+$APP.Q.g(r);c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(280px,calc(100vw - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
|
|
9
|
+
d.setAttribute("part","trigger");f.setAttribute("part","panel");f.setAttribute("role","tooltip");f.setAttribute("id",r);f.setAttribute("aria-hidden","true");f.setAttribute("data-placement","top");h.setAttribute("part","arrow");h.setAttribute("aria-hidden","true");l.setAttribute("part","body");m.setAttribute("part","text");q.setAttribute("name","content");d.appendChild(e);l.appendChild(m);l.appendChild(q);f.appendChild(h);f.appendChild(l);b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xTooltipId=
|
|
10
|
+
r;a.__xTooltipRefs={trigger:d,triggerSlot:e,panel:f,arrow:h,body:l,text:m,contentSlot:q}}Ev(a);a.__xTooltipHandlers=Dv(a);c=$APP.k(a,"__xTooltipRefs");$APP.n(c)&&(b=$APP.k(a,"__xTooltipHandlers"),$APP.n(b)&&(c=$APP.k(c,"triggerSlot"),a.addEventListener("pointerenter",$APP.k(b,"pointerenter")),a.addEventListener("pointerleave",$APP.k(b,"pointerleave")),a.addEventListener("focusin",$APP.k(b,"focusin")),a.addEventListener("focusout",$APP.k(b,"focusout")),a.addEventListener("keydown",$APP.k(b,"keydown")),
|
|
11
|
+
c.addEventListener("slotchange",$APP.k(b,"slotchange"))));yv(a);return Cv(a)},Vv=function(a){zv(a);Ev(a);var b=$APP.k(a,"__xTooltipTriggerEl");$APP.n(b)?(b.removeAttribute("aria-describedby"),a.__xTooltipTriggerEl=null,a=void 0):a=null;return a},Wv=function(a){if($APP.n($APP.k(a,"__xTooltipRefs"))){yv(a);var b=a.hasAttribute("disabled");return $APP.n($APP.n(b)?a.hasAttribute("open"):b)?Bv(a):null}return null},Yv=function(a){$APP.jh(a,Xv);a.show=function(){return Av(this,!0)};return a.hide=function(){return Bv(this)}},
|
|
12
|
+
$v=function(){return $APP.Yg("x-tooltip",new $APP.N(null,5,[$APP.Pg,Zv,$APP.Qg,Gv,$APP.Rg,Vv,$APP.Sg,Wv,$APP.Wg,Yv],null))},wv=new $APP.F(null,"delay","delay",-574225219),uv=new $APP.F(null,"delay-raw","delay-raw",886290425);var vv=new $APP.O(null,new $APP.N(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),Zv=["text","placement","delay","disabled","open"],Xv=new $APP.N(null,5,[$APP.Om,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"text"],null),$APP.bl,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"placement"],null),wv,new $APP.N(null,3,[$APP.R,$APP.V,$APP.S,"delay",$APP.ih,400],null),$APP.al,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"disabled"],null),$APP.Bn,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"open"],null)],
|
|
13
|
+
null);$APP.Yd(["x-tooltip-show",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,$APP.Zd],null),"x-tooltip-hide",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,$APP.Zd],null)]);var Fv={n:0};$APP.ca("baredom.exports.x_tooltip.init",$v);export const init=$v;
|
package/dist/x-typography.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
return $APP.k(a,"__xTypographyRefs")}
|
|
4
|
-
null);if($APP.
|
|
5
|
-
(c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},
|
|
6
|
-
return $APP.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$APP.
|
|
11
|
-
");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.S.g("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.S.g("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
|
|
12
|
-
$APP.S.g("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.S.g("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.ha("baredom.exports.x_typography.init",TK);export const init=TK;
|
|
2
|
+
var SM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},UM=function(a){var b=$APP.k(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=TM;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.N(null,2,[$APP.Uh,b,$APP.Vh,d],null);
|
|
3
|
+
return $APP.k(a,"__xTypographyRefs")},$M=function(a){var b=new $APP.N(null,4,[$APP.Gm,a.getAttribute("variant"),$APP.fk,a.getAttribute("align"),VM,a.getAttribute("truncate"),WM,a.getAttribute("line-clamp")],null);var c=$APP.J(b),d=$APP.C(c,$APP.Gm),e=$APP.C(c,$APP.fk);b=$APP.C(c,VM);c=$APP.C(c,WM);d=typeof d==="string"?d.toLowerCase():null;d=$APP.Zc(XM,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.Zc(YM,e)?e:"left";b=new $APP.N(null,4,[$APP.ii,d,$APP.Ik,e,$APP.Uj,b!=null,ZM,SM(c)],
|
|
4
|
+
null);if($APP.M($APP.k(a,"__xTypographyModel"),b)){b=$APP.J(b);e=$APP.C(b,$APP.ii);d=$APP.C(b,$APP.Ik);var f=$APP.C(b,$APP.Uj);c=$APP.C(b,ZM);var h=UM(a);h=$APP.J(h);h=$APP.C(h,$APP.Vh);a.setAttribute("data-variant",e);a.setAttribute("data-align",d);$APP.n(f)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.p(f)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.Q.g(c))):
|
|
5
|
+
(c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},aN=function(a){$APP.eh(a,"variant","variant","body1");$APP.eh(a,"align","align","left");$APP.dh(a,"truncate","truncate");return Object.defineProperty(a,"lineClamp",{get:function(){return SM(this.getAttribute("line-clamp"))},set:function(b){return b==null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.Q.g(b|
|
|
6
|
+
0))},enumerable:!0,configurable:!0})},bN=function(a){UM(a);$M(a);return null},cN=function(a,b,c,d){$APP.M(c,d)&&$M(a);return null},eN=function(){return $APP.Yg("x-typography",new $APP.N(null,4,[$APP.Pg,dN,$APP.Qg,bN,$APP.Sg,cN,$APP.Wg,aN],null))},WM=new $APP.F(null,"line-clamp-raw","line-clamp-raw",-1982923204),ZM=new $APP.F(null,"line-clamp","line-clamp",-1079334403),VM=new $APP.F(null,"truncate-raw","truncate-raw",1178232402);var dN=["variant","align","truncate","line-clamp"],XM=new $APP.O(null,new $APP.N(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),YM=new $APP.O(null,new $APP.N(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var TM=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.Q.g("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
|
|
7
|
+
$APP.Q.g("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.Q.g("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.Q.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
|
|
8
|
+
$APP.Q.g("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.Q.g("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.Q.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
|
|
9
|
+
");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.Q.g("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.Q.g("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
|
|
10
|
+
$APP.Q.g("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.Q.g("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.ca("baredom.exports.x_typography.init",eN);export const init=eN;
|
package/dist/x-welcome-tour.js
CHANGED
|
@@ -1,65 +1,61 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
case "bottom":return"top";case "left":return"right";case "right":return"left";case "top-start":return"bottom-start";case "top-end":return"bottom-end";case "bottom-start":return"top-start";case "bottom-end":return"top-end";default:return a}},
|
|
4
|
-
m,$APP.
|
|
5
|
-
2,[$APP.
|
|
6
|
-
4,[$APP.
|
|
7
|
-
["bottom","top"],null);break a;default:x=new $APP.
|
|
8
|
-
switch(c){case "bottom":case "bottom-start":case "bottom-end":return new $APP.
|
|
9
|
-
null)],null);case "right":return new $APP.
|
|
10
|
-
|
|
11
|
-
null);case "left":return a=
|
|
12
|
-
null)}},
|
|
13
|
-
"string"&&$APP.
|
|
14
|
-
c.push(e);d+=1}else break;return c},
|
|
15
|
-
$APP.n($APP.n(a)?a.offsetWidth>0:a)?a:null):null},
|
|
16
|
-
"var(--x-welcome-tour-backdrop-z,var(--x-z-modal,1100))");var b=a.shadowRoot,c=
|
|
17
|
-
|
|
18
|
-
h.setAttribute("ry","0");e.appendChild(
|
|
19
|
-
r.setAttribute("filter","url(#tour-glow)");r.setAttribute("x","0");r.setAttribute("y","0");r.setAttribute("width","0");r.setAttribute("height","0");r.setAttribute("rx","0");r.setAttribute("ry","0");c.appendChild(r);v.setAttribute("part","popover");v.setAttribute("role","dialog");v.setAttribute("aria-modal","false");x.setAttribute("part","header");y.setAttribute("part","title");A.setAttribute("part","counter");
|
|
20
|
-
"Close tour");
|
|
21
|
-
|
|
22
|
-
null;for(var m=0,
|
|
23
|
-
""+$APP.
|
|
24
|
-
"transparent",a.style.borderRightColor="transparent",c=$APP.
|
|
25
|
-
b)):a.style.display="none"},
|
|
26
|
-
$APP.
|
|
27
|
-
"none"},
|
|
28
|
-
|
|
29
|
-
a.getAttribute("done-label"),a.getAttribute("next-label"),a.hasAttribute("open"),a.getAttribute("prev-label")]);var b=$APP.
|
|
30
|
-
l:"Done",$APP.
|
|
31
|
-
4,[$APP.
|
|
32
|
-
y],null):null;y=c>=a-1;A=c===0;$APP.n(
|
|
33
|
-
y?
|
|
34
|
-
|
|
35
|
-
1;$APP.
|
|
36
|
-
2,[$APP.
|
|
37
|
-
if($APP.n(b)){var c=
|
|
38
|
-
var y=$APP.u(v);v=$APP.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
h),
|
|
42
|
-
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:contents;}";b.appendChild(c);b.appendChild(d);a.__xWelcomeTourRefs=new $APP.
|
|
43
|
-
$APP.n(b)&&($APP.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
$APP.
|
|
62
|
-
$APP.$k,"prev-label"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"next-label"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"counter"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Tj,!0],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"done-label"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"skip-label"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"dots"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.$k,"step"],null)]);
|
|
63
|
-
$APP.Pd(["x-welcome-tour-start",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.Km,!1],null),"x-welcome-tour-step-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Zm,$APP.W,bF,$APP.W],null),$APP.Km,!0],null),"x-welcome-tour-complete",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[ZE,$APP.W],null),$APP.Km,!1],null),"x-welcome-tour-skip",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Zm,$APP.W],null),$APP.Km,!1],null)]);
|
|
64
|
-
var NE=new $APP.R(null,new $APP.Q(null,4,["none",null,"curve",null,"arrow",null,"line",null],null),null);var tF="target title placement connector cutout-padding cutout-radius scroll-to".split(" ");$APP.Pd(["x-welcome-tour-step-connected",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.Km,!1],null),"x-welcome-tour-step-disconnected",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.Km,!1],null)]);
|
|
65
|
-
var dE=new $APP.R(null,new $APP.Q(null,8,["right",null,"top",null,"bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null,"bottom",null,"left",null],null),null),eE=new $APP.R(null,new $APP.Q(null,4,["none",null,"curve",null,"arrow",null,"line",null],null),null);$APP.ha("baredom.exports.x_welcome_tour.init",uF);export const init=uF;
|
|
2
|
+
var BF=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},CF=function(a,b){return b>0?$APP.Ii.i($APP.Hi.i(a,0),b-1):0},DF=function(a,b){return""+$APP.Q.g(a+1)+" / "+$APP.Q.g(b)},GF=function(a,b,c){var d=$APP.J(a);a=$APP.C(d,$APP.cn);var e=$APP.C(d,$APP.bn),f=$APP.C(d,$APP.ki);d=$APP.C(d,$APP.li);return new $APP.N(null,6,[$APP.cn,a-b,$APP.bn,e-b,$APP.ki,f+2*b,$APP.li,d+2*b,EF,c,FF,c],null)},HF=function(a){switch(a){case "top":return"bottom";
|
|
3
|
+
case "bottom":return"top";case "left":return"right";case "right":return"left";case "top-start":return"bottom-start";case "top-end":return"bottom-end";case "bottom-start":return"top-start";case "bottom-end":return"top-end";default:return a}},IF=function(a,b,c,d){var e=$APP.J(c);c=$APP.C(e,$APP.cn);var f=$APP.C(e,$APP.bn),h=$APP.C(e,$APP.ki);e=$APP.C(e,$APP.li);var l=$APP.J(d);d=$APP.C(l,$APP.ki);l=$APP.C(l,$APP.li);var m=c+h/2+-(d/2),q=f+e/2+-(l/2);switch(a){case "top":return new $APP.N(null,2,[$APP.cn,
|
|
4
|
+
m,$APP.bn,f-l-b],null);case "bottom":return new $APP.N(null,2,[$APP.cn,m,$APP.bn,f+e+b],null);case "left":return new $APP.N(null,2,[$APP.cn,c-d-b,$APP.bn,q],null);case "right":return new $APP.N(null,2,[$APP.cn,c+h+b,$APP.bn,q],null);case "top-start":return new $APP.N(null,2,[$APP.cn,c,$APP.bn,f-l-b],null);case "top-end":return new $APP.N(null,2,[$APP.cn,c+h-d,$APP.bn,f-l-b],null);case "bottom-start":return new $APP.N(null,2,[$APP.cn,c,$APP.bn,f+e+b],null);case "bottom-end":return new $APP.N(null,
|
|
5
|
+
2,[$APP.cn,c+h-d,$APP.bn,f+e+b],null);default:return new $APP.N(null,2,[$APP.cn,m,$APP.bn,f+e+b],null)}},JF=function(a,b,c,d,e){function f(y){var A=IF(y,h,b,c);A=$APP.J(A);var D=$APP.C(A,$APP.cn),G=$APP.C(A,$APP.bn);A=$APP.Ii.i($APP.Hi.i(D,8),q-l-8);var I=$APP.Ii.i($APP.Hi.i(G,8),r-m-8);G=$APP.J(new $APP.N(null,2,[$APP.cn,D,$APP.bn,G],null));D=$APP.C(G,$APP.cn);G=$APP.C(G,$APP.bn);var H=$APP.J(c),K=$APP.C(H,$APP.ki);H=$APP.C(H,$APP.li);var W=$APP.J(d),ea=$APP.C(W,$APP.ki);W=$APP.C(W,$APP.li);return new $APP.N(null,
|
|
6
|
+
4,[$APP.cn,A,$APP.bn,I,$APP.Ej,y,$APP.pn,D>=8&&G>=8&&D+K<=ea-8&&G+H<=W-8],null)}a:switch(e){case "line":case "curve":var h=48;break a;default:h=8}e=$APP.J(c);var l=$APP.C(e,$APP.ki),m=$APP.C(e,$APP.li);e=$APP.J(d);var q=$APP.C(e,$APP.ki),r=$APP.C(e,$APP.li);e=f(a);var v=f(HF(a));a:switch(a){case "top":case "bottom":case "top-start":case "top-end":case "bottom-start":case "bottom-end":var x=new $APP.De(null,2,5,$APP.Ee,["left","right"],null);break a;case "left":case "right":x=new $APP.De(null,2,5,
|
|
7
|
+
$APP.Ee,["bottom","top"],null);break a;default:x=new $APP.De(null,2,5,$APP.Ee,["bottom","top"],null)}a=$APP.Hc(x,0,null);x=$APP.Hc(x,1,null);a=f(a);x=f(x);return $APP.n($APP.pn.g(e))?e:$APP.n($APP.pn.g(v))?v:$APP.n($APP.pn.g(a))?a:$APP.n($APP.pn.g(x))?x:e},MF=function(a,b,c){var d=$APP.J(a);a=$APP.C(d,$APP.cn);var e=$APP.C(d,$APP.bn),f=$APP.C(d,$APP.ki);d=$APP.C(d,$APP.li);var h=$APP.J(b);b=$APP.C(h,$APP.cn);var l=$APP.C(h,$APP.bn),m=$APP.C(h,$APP.ki);h=$APP.C(h,$APP.li);var q=a+f/2,r=e+d/2,v=b+m/
|
|
8
|
+
2,x=l+h/2;switch(c){case "bottom":case "bottom-start":case "bottom-end":return new $APP.N(null,2,[KF,new $APP.N(null,2,[$APP.cn,q,$APP.bn,e+d],null),LF,new $APP.N(null,2,[$APP.cn,v,$APP.bn,l],null)],null);case "top":case "top-start":case "top-end":return new $APP.N(null,2,[KF,new $APP.N(null,2,[$APP.cn,q,$APP.bn,e],null),LF,new $APP.N(null,2,[$APP.cn,v,$APP.bn,l+h],null)],null);case "left":return new $APP.N(null,2,[KF,new $APP.N(null,2,[$APP.cn,a,$APP.bn,r],null),LF,new $APP.N(null,2,[$APP.cn,b+m,
|
|
9
|
+
$APP.bn,x],null)],null);case "right":return new $APP.N(null,2,[KF,new $APP.N(null,2,[$APP.cn,a+f,$APP.bn,r],null),LF,new $APP.N(null,2,[$APP.cn,b,$APP.bn,x],null)],null);default:return new $APP.N(null,2,[KF,new $APP.N(null,2,[$APP.cn,q,$APP.bn,e+d],null),LF,new $APP.N(null,2,[$APP.cn,v,$APP.bn,l],null)],null)}},NF=function(a,b){return $APP.Ii.i($APP.Hi.i(a,16),b)},VF=function(a,b,c){var d=$APP.J(b),e=$APP.C(d,$APP.cn);b=$APP.C(d,$APP.bn);var f=$APP.C(d,$APP.ki);d=$APP.C(d,$APP.li);var h=$APP.J(c);
|
|
10
|
+
c=$APP.C(h,$APP.cn);var l=$APP.C(h,$APP.bn),m=$APP.C(h,$APP.ki);h=$APP.C(h,$APP.li);e+=f/2;b+=d/2;switch(a){case "bottom":case "bottom-start":case "bottom-end":return a=NF(e-c,m-16),new $APP.N(null,4,[$APP.Bj,"-"+$APP.Q.g(8)+"px",$APP.aj,""+$APP.Q.g(a)+"px",OF,"-"+$APP.Q.g(4)+"px",PF,"var(--x-welcome-tour-popover-bg)"],null);case "top":case "top-start":case "top-end":return a=NF(e-c,m-16),new $APP.N(null,4,[$APP.Rl,"-"+$APP.Q.g(8)+"px",$APP.aj,""+$APP.Q.g(a)+"px",OF,"-"+$APP.Q.g(4)+"px",QF,"var(--x-welcome-tour-popover-bg)"],
|
|
11
|
+
null);case "left":return a=NF(b-l,h-16),new $APP.N(null,4,[RF,"-"+$APP.Q.g(8)+"px",$APP.Bj,""+$APP.Q.g(a)+"px",SF,"-"+$APP.Q.g(4)+"px",TF,"var(--x-welcome-tour-popover-bg)"],null);case "right":return a=NF(b-l,h-16),new $APP.N(null,4,[$APP.aj,"-"+$APP.Q.g(8)+"px",$APP.Bj,""+$APP.Q.g(a)+"px",SF,"-"+$APP.Q.g(4)+"px",UF,"var(--x-welcome-tour-popover-bg)"],null);default:return a=NF(e-c,m-16),new $APP.N(null,4,[$APP.Bj,"-"+$APP.Q.g(8)+"px",$APP.aj,""+$APP.Q.g(a)+"px",OF,"-"+$APP.Q.g(4)+"px",PF,"var(--x-welcome-tour-popover-bg)"],
|
|
12
|
+
null)}},WF=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:8):8},XF=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:4):4},YF=function(a){return a==null?!0:$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},gG=function(a){var b=$APP.J(a),c=$APP.C(b,$APP.Hm),d=$APP.C(b,$APP.Cl),e=$APP.C(b,$APP.vo),f=$APP.C(b,$APP.Mj);a=$APP.C(b,ZF);var h=$APP.C(b,$F);b=$APP.C(b,aG);c=typeof c===
|
|
13
|
+
"string"&&$APP.M(c.trim(),"")?c.trim():null;d=$APP.n(d)?d:"";e=typeof e==="string"&&$APP.Zc(bG,e.toLowerCase())?e.toLowerCase():"bottom";f=typeof f==="string"&&$APP.Zc(cG,f.toLowerCase())?f.toLowerCase():null;return new $APP.N(null,7,[$APP.uo,c,$APP.Gj,d,$APP.bl,e,$APP.Aj,f,dG,WF(a),eG,XF(h),fG,YF(b)],null)},hG=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},iG=function(a){a=a.children;for(var b=a.length,c=[],d=0;;)if(d<b){var e=a[d];$APP.B.i(e.tagName.toLowerCase(),"x-welcome-tour-step")&&
|
|
14
|
+
c.push(e);d+=1}else break;return c},jG=function(a){var b=$APP.k(a,"__xWelcomeTourStepModel");return $APP.n(b)?b:gG(new $APP.N(null,7,[$APP.Hm,a.getAttribute("target"),$APP.Cl,a.getAttribute("title"),$APP.vo,a.getAttribute("placement"),$APP.Mj,a.getAttribute("connector"),ZF,a.getAttribute("cutout-padding"),$F,a.getAttribute("cutout-radius"),aG,$APP.n(a.hasAttribute("scroll-to"))?a.getAttribute("scroll-to"):null],null))},kG=function(a){return typeof a==="string"&&$APP.M(a,"")?(a=document.querySelector(a),
|
|
15
|
+
$APP.n($APP.n(a)?a.offsetWidth>0:a)?a:null):null},vG=function(a){a=$APP.zh(a,":host{pointer-events:auto;}[part\x3dbackdrop-svg]{position:fixed;inset:0;width:100%;height:100%;z-index:0;}.cutout-rect{transition:x var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),y var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),width var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),height var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),rx var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),ry var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease));}[part\x3dpopover]{position:fixed;z-index:1;width:var(--x-welcome-tour-popover-width,min(360px,calc(100vw - 2rem)));background:var(--x-welcome-tour-popover-bg,var(--x-color-bg,#ffffff));color:var(--x-welcome-tour-popover-fg,var(--x-color-text,#0f172a));border:var(--x-welcome-tour-popover-border,1px solid var(--x-color-border,#e2e8f0));border-radius:var(--x-welcome-tour-popover-radius,var(--x-radius-lg,12px));box-shadow:var(--x-welcome-tour-popover-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.18)));font-family:var(--x-font-family,system-ui,-apple-system,sans-serif);font-size:var(--x-font-size-base,0.875rem);line-height:var(--x-line-height-normal,1.5);transition:left var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),top var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease)),opacity var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease));}@media (prefers-color-scheme:dark){[part\x3dpopover]{background:var(--x-welcome-tour-popover-bg,var(--x-color-bg,#1e293b));color:var(--x-welcome-tour-popover-fg,var(--x-color-text,#f1f5f9));border-color:var(--x-color-border,#334155);box-shadow:var(--x-welcome-tour-popover-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.4)));}}[part\x3dheader]{display:flex;align-items:center;gap:var(--x-space-sm,8px);padding:var(--x-space-md,12px) var(--x-space-md,12px) 0;}[part\x3dtitle]{flex:1;font-weight:var(--x-font-weight-semibold,600);font-size:var(--x-font-size-base,0.875rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dcounter]{font-size:var(--x-font-size-xs,0.75rem);color:var(--x-color-text-muted,#64748b);white-space:nowrap;}@media (prefers-color-scheme:dark){[part\x3dcounter]{color:var(--x-color-text-muted,#94a3b8);}}[part\x3dclose-button]{appearance:none;border:none;background:none;cursor:pointer;padding:var(--x-space-xs,4px);border-radius:var(--x-radius-sm,4px);color:var(--x-color-text-muted,#64748b);font-size:1.125rem;line-height:1;display:flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;}[part\x3dclose-button]:hover{background:var(--x-color-surface-hover,rgba(0,0,0,0.06));}[part\x3dclose-button]:focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){[part\x3dclose-button]{color:var(--x-color-text-muted,#94a3b8);}[part\x3dclose-button]:hover{background:var(--x-color-surface-hover,rgba(255,255,255,0.08));}}@media (pointer:coarse){[part\x3dclose-button]{min-width:44px;min-height:44px;}}[part\x3dbody]{padding:var(--x-space-sm,8px) var(--x-space-md,12px);}[part\x3dfooter]{display:flex;align-items:center;justify-content:space-between;padding:0 var(--x-space-md,12px) var(--x-space-md,12px);gap:var(--x-space-sm,8px);}[part\x3dprev-button],[part\x3dnext-button]{appearance:none;border:none;cursor:pointer;padding:var(--x-space-xs,4px) var(--x-space-md,12px);border-radius:var(--x-radius-md,6px);font-family:inherit;font-size:var(--x-font-size-sm,0.8125rem);font-weight:var(--x-font-weight-medium,500);min-height:32px;transition:background 120ms ease,color 120ms ease;}@media (pointer:coarse){[part\x3dprev-button],[part\x3dnext-button]{min-height:44px;padding:var(--x-space-sm,8px) var(--x-space-md,12px);}}[part\x3dprev-button]{background:var(--x-color-surface,rgba(0,0,0,0.04));color:var(--x-color-text,#0f172a);}[part\x3dprev-button]:hover{background:var(--x-color-surface-hover,rgba(0,0,0,0.08));}@media (prefers-color-scheme:dark){[part\x3dprev-button]{background:var(--x-color-surface,rgba(255,255,255,0.06));color:var(--x-color-text,#f1f5f9);}[part\x3dprev-button]:hover{background:var(--x-color-surface-hover,rgba(255,255,255,0.1));}}[part\x3dnext-button]{background:var(--x-welcome-tour-button-bg,var(--x-color-primary,#3b82f6));color:var(--x-welcome-tour-button-fg,#ffffff);}[part\x3dnext-button]:hover{filter:brightness(1.1);}[part\x3dprev-button]:focus-visible,[part\x3dnext-button]:focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}[part\x3ddots]{display:flex;align-items:center;gap:6px;flex:1;justify-content:center;}[part\x3ddot]{width:8px;height:8px;border-radius:var(--x-radius-full,9999px);background:var(--x-welcome-tour-dot-color,var(--x-color-border,#e2e8f0));transition:background 150ms ease;}[part\x3ddot][data-active]{background:var(--x-welcome-tour-dot-active,var(--x-color-primary,#3b82f6));}@media (prefers-color-scheme:dark){[part\x3ddot]{background:var(--x-welcome-tour-dot-color,var(--x-color-border,#475569));}[part\x3ddot][data-active]{background:var(--x-welcome-tour-dot-active,var(--x-color-primary,#60a5fa));}}[part\x3darrow]{position:absolute;width:0;height:0;border:8px solid transparent;pointer-events:none;}[part\x3dconnector-svg]{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible;}[part\x3dconnector-svg] path{fill:none;stroke:var(--x-welcome-tour-connector-color,var(--x-color-primary,#3b82f6));stroke-width:var(--x-welcome-tour-connector-width,2);stroke-linecap:round;transition:d var(--x-welcome-tour-transition-duration,var(--x-transition-duration,300ms)) var(--x-welcome-tour-transition-easing,var(--x-transition-easing,ease));}@media (prefers-reduced-motion:reduce){.cutout-rect,[part\x3dpopover],[part\x3dconnector-svg] path{transition:none !important;}}",
|
|
16
|
+
"var(--x-welcome-tour-backdrop-z,var(--x-z-modal,1100))");var b=a.shadowRoot,c=hG("svg"),d=hG("defs"),e=hG("mask"),f=hG("rect"),h=hG("rect"),l=hG("filter"),m=hG("feGaussianBlur"),q=hG("rect"),r=hG("rect"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("span"),A=document.createElement("span"),D=document.createElement("button"),G=document.createElement("div"),I=document.createElement("div"),H=document.createElement("button"),K=document.createElement("div"),
|
|
17
|
+
W=document.createElement("button"),ea=document.createElement("div"),va=hG("svg"),Pa=hG("path");c.setAttribute("part","backdrop-svg");c.setAttribute("aria-hidden","true");e.setAttribute("id","tour-cutout-mask");f.setAttribute("width","100%");f.setAttribute("height","100%");f.setAttribute("fill","white");h.setAttribute("class","cutout-rect");h.setAttribute("fill","black");h.setAttribute("x","0");h.setAttribute("y","0");h.setAttribute("width","0");h.setAttribute("height","0");h.setAttribute("rx","0");
|
|
18
|
+
h.setAttribute("ry","0");e.appendChild(f);e.appendChild(h);l.setAttribute("id","tour-glow");m.setAttribute("stdDeviation","8");m.setAttribute("in","SourceGraphic");l.appendChild(m);d.appendChild(e);d.appendChild(l);c.appendChild(d);q.setAttribute("width","100%");q.setAttribute("height","100%");q.setAttribute("fill","var(--x-welcome-tour-backdrop,rgba(0,0,0,0.5))");q.setAttribute("mask","url(#tour-cutout-mask)");c.appendChild(q);r.setAttribute("class","cutout-rect");r.setAttribute("fill","var(--x-welcome-tour-glow-color,rgba(255,255,255,0.15))");
|
|
19
|
+
r.setAttribute("filter","url(#tour-glow)");r.setAttribute("x","0");r.setAttribute("y","0");r.setAttribute("width","0");r.setAttribute("height","0");r.setAttribute("rx","0");r.setAttribute("ry","0");c.appendChild(r);v.setAttribute("part","popover");v.setAttribute("role","dialog");v.setAttribute("aria-modal","false");x.setAttribute("part","header");y.setAttribute("part","title");A.setAttribute("part","counter");D.setAttribute("part","close-button");D.setAttribute("type","button");D.setAttribute("aria-label",
|
|
20
|
+
"Close tour");D.textContent="×";x.appendChild(y);x.appendChild(A);x.appendChild(D);G.setAttribute("part","body");I.setAttribute("part","footer");H.setAttribute("part","prev-button");H.setAttribute("type","button");K.setAttribute("part","dots");W.setAttribute("part","next-button");W.setAttribute("type","button");I.appendChild(H);I.appendChild(K);I.appendChild(W);ea.setAttribute("part","arrow");v.appendChild(ea);v.appendChild(x);v.appendChild(G);v.appendChild(I);va.setAttribute("part","connector-svg");
|
|
21
|
+
va.setAttribute("aria-hidden","true");va.appendChild(Pa);b.appendChild(c);b.appendChild(v);b.appendChild(va);a.style.pointerEvents="auto";return $APP.Lf([$APP.pk,lG,mG,nG,oG,$APP.hj,pG,$APP.Xn,qG,rG,$APP.tl,sG,$APP.cm,tG,uG],[H,A,K,v,va,W,Pa,G,a,h,c,ea,y,D,r])},wG=function(a,b){a=$APP.J(a);var c=$APP.C(a,rG),d=$APP.C(a,uG),e=$APP.J(b);b=$APP.C(e,$APP.cn);a=$APP.C(e,$APP.bn);var f=$APP.C(e,$APP.ki),h=$APP.C(e,$APP.li),l=$APP.C(e,EF);e=$APP.C(e,FF);c=$APP.t(new $APP.De(null,2,5,$APP.Ee,[c,d],null));
|
|
22
|
+
d=null;for(var m=0,q=0;;)if(q<m){var r=d.F(null,q);r.setAttribute("x",""+$APP.Q.g(b));r.setAttribute("y",""+$APP.Q.g(a));r.setAttribute("width",""+$APP.Q.g(f));r.setAttribute("height",""+$APP.Q.g(h));r.setAttribute("rx",""+$APP.Q.g(l));r.setAttribute("ry",""+$APP.Q.g(e));q+=1}else if(c=$APP.t(c))d=c,$APP.Vc(d)?(c=$APP.Db(d),q=$APP.Eb(d),d=c,m=$APP.z(c),c=q):(c=$APP.u(d),c.setAttribute("x",""+$APP.Q.g(b)),c.setAttribute("y",""+$APP.Q.g(a)),c.setAttribute("width",""+$APP.Q.g(f)),c.setAttribute("height",
|
|
23
|
+
""+$APP.Q.g(h)),c.setAttribute("rx",""+$APP.Q.g(l)),c.setAttribute("ry",""+$APP.Q.g(e)),c=$APP.w(d),d=null,m=0),q=0;else break},xG=function(a,b,c){a.style.left=""+$APP.Q.g(b)+"px";a.style.top=""+$APP.Q.g(c)+"px"},yG=function(a,b,c,d,e){$APP.B.i(b,"arrow")?(b=VF(c,d,e),a.style.display="block",a.style.top="auto",a.style.bottom="auto",a.style.left="auto",a.style.right="auto",a.style.marginLeft="0",a.style.marginTop="0",a.style.borderTopColor="transparent",a.style.borderBottomColor="transparent",a.style.borderLeftColor=
|
|
24
|
+
"transparent",a.style.borderRightColor="transparent",c=$APP.Bj.g(b),$APP.n(c)&&(a.style.top=c),c=$APP.Rl.g(b),$APP.n(c)&&(a.style.bottom=c),c=$APP.aj.g(b),$APP.n(c)&&(a.style.left=c),c=RF.g(b),$APP.n(c)&&(a.style.right=c),c=OF.g(b),$APP.n(c)&&(a.style.marginLeft=c),c=SF.g(b),$APP.n(c)&&(a.style.marginTop=c),c=QF.g(b),$APP.n(c)&&(a.style.borderTopColor=c),c=PF.g(b),$APP.n(c)&&(a.style.borderBottomColor=c),c=TF.g(b),$APP.n(c)&&(a.style.borderLeftColor=c),b=UF.g(b),$APP.n(b)&&(a.style.borderRightColor=
|
|
25
|
+
b)):a.style.display="none"},zG=function(a,b,c,d,e){var f=$APP.J(a);a=$APP.C(f,oG);f=$APP.C(f,pG);if($APP.B.i(b,"line")||$APP.B.i(b,"curve")){c=MF(c,d,e);d=$APP.J(c);c=$APP.C(d,KF);var h=$APP.C(d,LF);a:{d=$APP.J(c);c=$APP.C(d,$APP.cn);d=$APP.C(d,$APP.bn);var l=$APP.J(h);h=$APP.C(l,$APP.cn);l=$APP.C(l,$APP.bn);switch(b){case "line":b="M"+$APP.Q.g(c)+","+$APP.Q.g(d)+" L"+$APP.Q.g(h)+","+$APP.Q.g(l);break a;case "curve":b:switch(e){case "top":case "bottom":case "top-start":case "top-end":case "bottom-start":case "bottom-end":b=
|
|
26
|
+
$APP.Mk;break b;case "left":case "right":b=$APP.$m;break b;default:b=$APP.Mk}if($APP.B.i(b,$APP.Mk)){b=(d+l)/2;b="M"+$APP.Q.g(c)+","+$APP.Q.g(d)+" C"+$APP.Q.g(c)+","+$APP.Q.g(b)+" "+$APP.Q.g(h)+","+$APP.Q.g(b)+" "+$APP.Q.g(h)+","+$APP.Q.g(l);break a}b=(c+h)/2;b="M"+$APP.Q.g(c)+","+$APP.Q.g(d)+" C"+$APP.Q.g(b)+","+$APP.Q.g(d)+" "+$APP.Q.g(b)+","+$APP.Q.g(l)+" "+$APP.Q.g(h)+","+$APP.Q.g(l);break a;default:b=null;break a}b=void 0}a.style.display="block";f.setAttribute("d",$APP.n(b)?b:"")}else a.style.display=
|
|
27
|
+
"none"},AG=function(a,b,c,d){if($APP.n(d))for(a.style.display="flex",a.innerHTML="",d=0;;)if(d<c){var e=document.createElement("span");e.setAttribute("part","dot");$APP.B.i(d,b)&&e.setAttribute("data-active","");a.appendChild(e);d+=1}else break;else a.style.display="none"},BG=function(a,b){a.innerHTML="";b=b.childNodes;for(var c=b.length,d=0;;)if(d<c)a.appendChild(b[d].cloneNode(!0)),d+=1;else break},CG=function(a){return $APP.Je($APP.Bc(a.querySelectorAll("button:not([disabled]),a[href],[tabindex]:not([tabindex\x3d'-1'])")))},
|
|
28
|
+
DG=function(a){var b=$APP.k(a,"__xWelcomeTourRestore");$APP.n($APP.n(b)?b.isConnected:b)&&b.focus();a.__xWelcomeTourRestore=null},EG=function(a){if($APP.n(a)){var b=a.getBoundingClientRect(),c=window.innerHeight;(b.top<0||b.bottom>c)&&a.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}},QG=function(a){a=$APP.Lf([$APP.Mj,FG,GG,HG,$APP.fm,IG,JG,$APP.ao,KG],[a.getAttribute("connector"),a.getAttribute("skip-label"),a.hasAttribute("counter"),a.getAttribute("step"),a.hasAttribute("dots"),
|
|
29
|
+
a.getAttribute("done-label"),a.getAttribute("next-label"),a.hasAttribute("open"),a.getAttribute("prev-label")]);var b=$APP.J(a);a=$APP.C(b,KG);var c=$APP.C(b,$APP.Mj),d=$APP.C(b,FG),e=$APP.C(b,GG),f=$APP.C(b,$APP.fm),h=$APP.C(b,HG),l=$APP.C(b,IG),m=$APP.C(b,JG);b=$APP.C(b,$APP.ao);c=typeof c==="string"&&$APP.Zc(LG,c.toLowerCase())?c.toLowerCase():"arrow";return $APP.Lf([$APP.Aj,MG,NG,GG,OG,$APP.fm,PG,$APP.ao,$APP.Tn],[c,$APP.n(m)?m:"Next",$APP.n(d)?d:"Skip",$APP.E(e),$APP.n(a)?a:"Back",$APP.E(f),
|
|
30
|
+
$APP.n(l)?l:"Done",$APP.E(b),BF(h)])},RG=function(a){var b=QG(a),c=$APP.k(a,"__xWelcomeTourLayer");a.__xWelcomeTourModel=b;if($APP.p($APP.ao.g(b)))$APP.n(c)&&($APP.Bh(qG.g(c)),a.__xWelcomeTourLayer=null,DG(a));else{var d=$APP.n(c)?c:vG(a);$APP.n(c)||(a.__xWelcomeTourLayer=d);var e=iG(a);a=e.length;c=CF($APP.Tn.g(b),a);if(a>0){e=e[c];var f=jG(e),h=function(){var G=$APP.Aj.g(f);return $APP.n(G)?G:$APP.Aj.g(b)}(),l=kG($APP.uo.g(f)),m=$APP.n(l)?function(){var G=l.getBoundingClientRect();return new $APP.N(null,
|
|
31
|
+
4,[$APP.cn,G.x,$APP.bn,G.y,$APP.ki,G.width,$APP.li,G.height],null)}():null,q=$APP.n(m)?GF(m,dG.g(f),eG.g(f)):null,r=new $APP.N(null,2,[$APP.ki,window.innerWidth,$APP.li,window.innerHeight],null),v=nG.g(d),x=v.offsetWidth,y=v.offsetHeight,A=new $APP.N(null,2,[$APP.ki,x>0?x:360,$APP.li,y>0?y:200],null),D=$APP.n(m)?JF($APP.bl.g(f),m,A,r,h):null;r=function(){var G=$APP.Ej.g(D);return $APP.n(G)?G:$APP.bl.g(f)}();x=$APP.n(D)?new $APP.N(null,4,[$APP.cn,$APP.cn.g(D),$APP.bn,$APP.bn.g(D),$APP.ki,x,$APP.li,
|
|
32
|
+
y],null):null;y=c>=a-1;A=c===0;$APP.n(q)?wG(d,q):wG(d,new $APP.N(null,6,[$APP.cn,-9999,$APP.bn,-9999,$APP.ki,0,$APP.li,0,EF,0,FF,0],null));$APP.n(D)&&xG(v,$APP.cn.g(D),$APP.bn.g(D));$APP.n($APP.n(m)?x:m)&&yG(sG.g(d),h,r,m,x);$APP.n($APP.n(m)?x:m)&&zG(d,h,m,x,r);$APP.cm.g(d).textContent=$APP.Gj.g(f);BG($APP.Xn.g(d),e);$APP.n(GG.g(b))?(lG.g(d).style.display="inline",lG.g(d).textContent=DF(c,a)):lG.g(d).style.display="none";AG(mG.g(d),c,a,$APP.fm.g(b));$APP.pk.g(d).textContent=OG.g(b);$APP.hj.g(d).textContent=
|
|
33
|
+
y?PG.g(b):MG.g(b);$APP.pk.g(d).style.visibility=A?"hidden":"visible";tG.g(d).setAttribute("aria-label",""+$APP.Q.g(NG.g(b))+" tour")}}return null},SG=function(a){$APP.n($APP.k(a,"__xWelcomeTourRaf"))||$APP.Zg(a,"__xWelcomeTourRaf",requestAnimationFrame(function(){a.__xWelcomeTourRaf=null;var b=a.isConnected;return $APP.n($APP.n(b)?$APP.k(a,"__xWelcomeTourLayer"):b)?RG(a):null}));return null},UG=function(a){RG(a);var b=$APP.k(a,"__xWelcomeTourLayer");if($APP.n(b)){TG.g?TG.g(a):TG.call(null,a);var c=
|
|
34
|
+
iG(a),d=CF($APP.Tn.g($APP.k(a,"__xWelcomeTourModel")),c.length);c.length>0&&(c=jG(c[d]),$APP.n(fG.g(c))&&EG(kG($APP.uo.g(c))));setTimeout(function(){a.__xWelcomeTourRestore=document.activeElement;var e=$APP.J(b),f=$APP.C(e,$APP.hj);e=$APP.C(e,nG);e=CG(e);$APP.t(e)?$APP.u(e).focus():f.focus();return null},50)}},WG=function(a){VG.g?VG.g(a):VG.call(null,a);RG(a)},YG=function(a){var b=iG(a).length;var c=$APP.k(a,"__xWelcomeTourModel");c=$APP.n(c)?c:QG(a);a.removeAttribute("open");b=CF($APP.Tn.g(c),b)+
|
|
35
|
+
1;$APP.P(a,"x-welcome-tour-complete",$APP.Xi(new $APP.N(null,1,[XG,b],null)));return null},ZG=function(a){var b=$APP.k(a,"__xWelcomeTourModel");b=$APP.n(b)?b:QG(a);var c=iG(a).length;a.removeAttribute("open");b=CF($APP.Tn.g(b),c);$APP.P(a,"x-welcome-tour-skip",$APP.Xi(new $APP.N(null,1,[$APP.Tn,b],null)));return null},aH=function(a){var b=$APP.k(a,"__xWelcomeTourModel");var c=$APP.n(b)?b:QG(a);b=iG(a).length;c=CF($APP.Tn.g(c),b);c>=b-1?YG(a):(b=c+1,$APP.ch(a,"x-welcome-tour-step-change",$APP.Xi(new $APP.N(null,
|
|
36
|
+
2,[$APP.Tn,b,$G,c],null)))&&(a.setAttribute("step",""+$APP.Q.g(b)),a=iG(a),a=jG(a[b]),$APP.n(fG.g(a))&&EG(kG($APP.uo.g(a)))));return null},bH=function(a){var b=$APP.k(a,"__xWelcomeTourModel");b=$APP.n(b)?b:QG(a);var c=iG(a).length;c=CF($APP.Tn.g(b),c);c!==0&&(b=c-1,$APP.ch(a,"x-welcome-tour-step-change",$APP.Xi(new $APP.N(null,2,[$APP.Tn,b,$G,c],null)))&&(a.setAttribute("step",""+$APP.Q.g(b)),a=iG(a),a=jG(a[b]),$APP.n(fG.g(a))&&EG(kG($APP.uo.g(a)))));return null},TG=function(a){var b=$APP.k(a,"__xWelcomeTourLayer");
|
|
37
|
+
if($APP.n(b)){var c=qG.g(b).shadowRoot,d=function(r){var v=r.key;if($APP.B.i(v,"Escape"))r.preventDefault(),r.stopPropagation(),ZG(a);else if($APP.B.i(v,"ArrowRight")||$APP.B.i(v,"ArrowDown"))r.preventDefault(),aH(a);else if($APP.B.i(v,"ArrowLeft")||$APP.B.i(v,"ArrowUp"))r.preventDefault(),bH(a);else if($APP.B.i(v,"Tab")){var x=$APP.k(a,"__xWelcomeTourLayer");v=$APP.J(x);v=$APP.C(v,nG);v=CG(v);if($APP.t(v)){x=$APP.n(x)?qG.g(x).shadowRoot:null;x=$APP.n(x)?x.activeElement:null;x=$APP.n(x)?x:document.activeElement;
|
|
38
|
+
var y=$APP.u(v);v=$APP.Ec(v);var A=r.shiftKey;$APP.n($APP.n(A)?$APP.B.i(x,y):A)?(r.preventDefault(),v.focus()):$APP.p(A)&&$APP.B.i(x,v)&&(r.preventDefault(),y.focus())}}return null},e=function(r){var v=$APP.k(a,"__xWelcomeTourLayer");$APP.n($APP.n(v)?$APP.B.i(r.target,$APP.tl.g(v)):v)&&ZG(a);return null},f=function(){return SG(a)},h=function(){return bH(a)},l=function(){var r=$APP.k(a,"__xWelcomeTourModel");r=$APP.n(r)?r:QG(a);var v=iG(a).length;return CF($APP.Tn.g(r),v)>=v-1?YG(a):aH(a)},m=function(){return ZG(a)},
|
|
39
|
+
q=new ResizeObserver(function(){return SG(a)});c.addEventListener("keydown",d,!0);c.addEventListener("click",e);window.addEventListener("scroll",f,{passive:!0});window.addEventListener("resize",f,{passive:!0});$APP.pk.g(b).addEventListener("click",h);$APP.hj.g(b).addEventListener("click",l);tG.g(b).addEventListener("click",m);q.observe(document.body);$APP.Zg(a,"__xWelcomeTourHandlers",new $APP.N(null,7,[$APP.sl,d,$APP.Ql,e,cH,f,$APP.Zk,h,$APP.el,l,$APP.mm,m,dH,c],null));a.__xWelcomeTourResizeObs=
|
|
40
|
+
q}return null},VG=function(a){var b=$APP.k(a,"__xWelcomeTourHandlers");if($APP.n(b)){var c=$APP.J(b);b=$APP.C(c,$APP.sl);var d=$APP.C(c,$APP.Ql),e=$APP.C(c,cH),f=$APP.C(c,$APP.Zk),h=$APP.C(c,$APP.el),l=$APP.C(c,$APP.mm);c=$APP.C(c,dH);var m=$APP.k(a,"__xWelcomeTourLayer");$APP.n(c)&&(c.removeEventListener("keydown",b,!0),c.removeEventListener("click",d));window.removeEventListener("scroll",e);window.removeEventListener("resize",e);$APP.n(m)&&($APP.pk.g(m).removeEventListener("click",f),$APP.hj.g(m).removeEventListener("click",
|
|
41
|
+
h),tG.g(m).removeEventListener("click",l))}b=$APP.k(a,"__xWelcomeTourResizeObs");$APP.n(b)&&b.disconnect();b=$APP.k(a,"__xWelcomeTourRaf");$APP.n(b)&&cancelAnimationFrame(b);a.__xWelcomeTourHandlers=null;a.__xWelcomeTourResizeObs=null;return a.__xWelcomeTourRaf=null},eH=function(a){var b=new MutationObserver(function(){return $APP.n($APP.k(a,"__xWelcomeTourLayer"))?RG(a):null});b.observe(a,{childList:!0});a.__xWelcomeTourObserver=b},fH=function(a){if(!$APP.n($APP.k(a,"__xWelcomeTourRefs"))){var b=
|
|
42
|
+
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:contents;}";b.appendChild(c);b.appendChild(d);a.__xWelcomeTourRefs=new $APP.N(null,1,[$APP.Uh,b],null)}eH(a);b=QG(a);a.__xWelcomeTourModel=b;c=$APP.ao.g(b);a.__xWelcomeTourPrevOpen=c;$APP.n($APP.ao.g(b))&&UG(a);return null},gH=function(a){VG(a);var b=$APP.k(a,"__xWelcomeTourObserver");$APP.n(b)&&b.disconnect();a.__xWelcomeTourObserver=null;b=$APP.k(a,"__xWelcomeTourLayer");
|
|
43
|
+
$APP.n(b)&&($APP.Bh(qG.g(b)),a.__xWelcomeTourLayer=null);DG(a);return null},hH=function(a,b,c,d){if($APP.n(function(){var l=$APP.M(c,d);return l?a.isConnected:l}())){var e=$APP.k(a,"__xWelcomeTourModel");b=QG(a);var f=function(){var l=$APP.ao.g(e);return $APP.n(l)?l:!1}(),h=$APP.ao.g(b);a.__xWelcomeTourModel=b;$APP.n(function(){var l=$APP.p(f);return l?h:l}())?UG(a):$APP.n($APP.n(f)?$APP.p(h):f)?WG(a):$APP.n(h)&&RG(a)}return null},iH=function(a){$APP.dh(a,"open","open");Object.defineProperty(a,"step",
|
|
44
|
+
{get:function(){return BF(this.getAttribute("step"))},set:function(b){return this.setAttribute("step",""+$APP.Q.g($APP.n(b)?b:0))},enumerable:!0,configurable:!0});$APP.eh(a,"connector","connector","arrow");Object.defineProperty(a,"totalSteps",{get:function(){return iG(this).length},enumerable:!0,configurable:!0});$APP.eh(a,"prevLabel","prev-label","Back");$APP.eh(a,"nextLabel","next-label","Next");$APP.eh(a,"doneLabel","done-label","Done");$APP.eh(a,"skipLabel","skip-label","Skip")},jH=function(a){Object.defineProperty(a,
|
|
45
|
+
"start",{value:function(){this.setAttribute("step","0");this.setAttribute("open","");$APP.P(this,"x-welcome-tour-start",$APP.Xi($APP.Zd));return null},writable:!0,configurable:!0});Object.defineProperty(a,"next",{value:function(){return aH(this)},writable:!0,configurable:!0});Object.defineProperty(a,"prev",{value:function(){return bH(this)},writable:!0,configurable:!0});Object.defineProperty(a,"goTo",{value:function(b){var c=$APP.k(this,"__xWelcomeTourModel");var d=$APP.n(c)?c:QG(this);c=iG(this).length;
|
|
46
|
+
d=CF($APP.Tn.g(d),c);b=CF(b,c);$APP.M(d,b)&&$APP.ch(this,"x-welcome-tour-step-change",$APP.Xi(new $APP.N(null,2,[$APP.Tn,b,$G,d],null)))&&this.setAttribute("step",""+$APP.Q.g(b));return null},writable:!0,configurable:!0});Object.defineProperty(a,"complete",{value:function(){return YG(this)},writable:!0,configurable:!0});return Object.defineProperty(a,"skip",{value:function(){return ZG(this)},writable:!0,configurable:!0})},lH=function(){return $APP.Yg("x-welcome-tour",new $APP.N(null,5,[$APP.Pg,kH,
|
|
47
|
+
$APP.Qg,fH,$APP.Rg,gH,$APP.Sg,hH,$APP.Wg,function(a){iH(a);return jH(a)}],null))},mH=function(a){var b=gG(new $APP.N(null,7,[$APP.Hm,a.getAttribute("target"),$APP.Cl,a.getAttribute("title"),$APP.vo,a.getAttribute("placement"),$APP.Mj,a.getAttribute("connector"),ZF,a.getAttribute("cutout-padding"),$F,a.getAttribute("cutout-radius"),aG,$APP.n(a.hasAttribute("scroll-to"))?a.getAttribute("scroll-to"):null],null));a.__xWelcomeTourStepModel=b},nH=function(a){Object.defineProperty(a,"target",{get:function(){var b=
|
|
48
|
+
this.getAttribute("target");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("target",""+$APP.Q.g(b)):this.removeAttribute("target")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("title",""+$APP.Q.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.eh(a,"placement",
|
|
49
|
+
"placement","bottom");$APP.fh(a,"connector","connector");Object.defineProperty(a,"cutoutPadding",{get:function(){return WF(this.getAttribute("cutout-padding"))},set:function(b){return b!=null?this.setAttribute("cutout-padding",""+$APP.Q.g(b)):this.removeAttribute("cutout-padding")},enumerable:!0,configurable:!0});Object.defineProperty(a,"cutoutRadius",{get:function(){return XF(this.getAttribute("cutout-radius"))},set:function(b){return b!=null?this.setAttribute("cutout-radius",""+$APP.Q.g(b)):this.removeAttribute("cutout-radius")},
|
|
50
|
+
enumerable:!0,configurable:!0});return Object.defineProperty(a,"scrollTo",{get:function(){return YF($APP.n(this.hasAttribute("scroll-to"))?this.getAttribute("scroll-to"):null)},set:function(b){return $APP.n(b)?this.setAttribute("scroll-to",""):this.setAttribute("scroll-to","false")},enumerable:!0,configurable:!0})},oH=function(a){if(!$APP.n($APP.k(a,"__xWelcomeTourStepRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:none;}";
|
|
51
|
+
b.appendChild(c);b.appendChild(d);a.__xWelcomeTourStepRefs=new $APP.N(null,2,[$APP.Uh,b,$APP.tk,d],null)}mH(a);$APP.P(a,"x-welcome-tour-step-connected",{});return null},pH=function(){document.dispatchEvent(new CustomEvent("x-welcome-tour-step-disconnected",{bubbles:!1,composed:!1,cancelable:!1}));return null},qH=function(a,b,c,d){$APP.M(c,d)&&mH(a);return null},sH=function(){$APP.Yg("x-welcome-tour-step",new $APP.N(null,5,[$APP.Pg,rH,$APP.Qg,oH,$APP.Rg,pH,$APP.Sg,qH,$APP.Wg,nH],null));return lH()},
|
|
52
|
+
lG=new $APP.F(null,"counter-el","counter-el",-1722624952),IG=new $APP.F(null,"done-label-raw","done-label-raw",1022925613),OG=new $APP.F(null,"prev-label","prev-label",-1633827735),RF=new $APP.F(null,"right","right",-452581833),eG=new $APP.F(null,"cutout-radius","cutout-radius",-1889150005),rG=new $APP.F(null,"mask-cut","mask-cut",-1027017197),XG=new $APP.F(null,"stepsCompleted","stepsCompleted",-1195441854),FG=new $APP.F(null,"skip-label-raw","skip-label-raw",-1113162074),$G=new $APP.F(null,"previousStep",
|
|
53
|
+
"previousStep",179909093),NG=new $APP.F(null,"skip-label","skip-label",-1497552511),fG=new $APP.F(null,"scroll-to?","scroll-to?",-115048698),ZF=new $APP.F(null,"cutout-padding-raw","cutout-padding-raw",1242999121),GG=new $APP.F(null,"counter?","counter?",-1490890073),JG=new $APP.F(null,"next-label-raw","next-label-raw",128708305),PF=new $APP.F(null,"border-bottom-color","border-bottom-color",-208763333),KF=new $APP.F(null,"target-point","target-point",1084476807),TF=new $APP.F(null,"border-left-color",
|
|
54
|
+
"border-left-color",-1166146583),KG=new $APP.F(null,"prev-label-raw","prev-label-raw",-1005526116),$F=new $APP.F(null,"cutout-radius-raw","cutout-radius-raw",-612633502),HG=new $APP.F(null,"step-raw","step-raw",-1512577847),oG=new $APP.F(null,"conn-svg","conn-svg",-2008050391),pG=new $APP.F(null,"conn-path","conn-path",-244598641),QF=new $APP.F(null,"border-top-color","border-top-color",-804629899),nG=new $APP.F(null,"popover","popover",-1809582136),mG=new $APP.F(null,"dots-el","dots-el",1811278312),
|
|
55
|
+
cH=new $APP.F(null,"scroll","scroll",971553779),SF=new $APP.F(null,"margin-top","margin-top",392161226),qG=new $APP.F(null,"layer","layer",-1601820589),UF=new $APP.F(null,"border-right-color","border-right-color",2017953775),dG=new $APP.F(null,"cutout-padding","cutout-padding",1623255682),MG=new $APP.F(null,"next-label","next-label",1724045248),uG=new $APP.F(null,"glow","glow",216329469),aG=new $APP.F(null,"scroll-to-raw","scroll-to-raw",1123777559),dH=new $APP.F(null,"shadow","shadow",873231803),
|
|
56
|
+
LF=new $APP.F(null,"popover-point","popover-point",-1343008173),OF=new $APP.F(null,"margin-left","margin-left",2015598377),PG=new $APP.F(null,"done-label","done-label",2036600942),sG=new $APP.F(null,"arrow-el","arrow-el",-968525162),FF=new $APP.F(null,"ry","ry",-334598563),EF=new $APP.F(null,"rx","rx",1627208482),tG=new $APP.F(null,"close-btn","close-btn",-1639164196);var kH="open step connector prev-label next-label done-label skip-label counter dots".split(" ");
|
|
57
|
+
$APP.Lf([$APP.Aj,$APP.Bn,new $APP.F(null,"prevLabel","prevLabel",-1710466271),new $APP.F(null,"nextLabel","nextLabel",-1506210545),new $APP.F(null,"counter","counter",804008177),new $APP.F(null,"totalSteps","totalSteps",-1980211791),new $APP.F(null,"doneLabel","doneLabel",849728698),new $APP.F(null,"skipLabel","skipLabel",-1410174917),$APP.dm,$APP.Tn],[new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"connector"],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"open"],null),new $APP.N(null,2,[$APP.R,$APP.U,
|
|
58
|
+
$APP.S,"prev-label"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"next-label"],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"counter"],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.hh,!0],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"done-label"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"skip-label"],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"dots"],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.S,"step"],null)]);
|
|
59
|
+
$APP.Yd(["x-welcome-tour-start",new $APP.N(null,2,[$APP.Z,$APP.Zd,$APP.Fn,!1],null),"x-welcome-tour-step-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.Tn,$APP.V,$G,$APP.V],null),$APP.Fn,!0],null),"x-welcome-tour-complete",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[XG,$APP.V],null),$APP.Fn,!1],null),"x-welcome-tour-skip",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.Tn,$APP.V],null),$APP.Fn,!1],null)]);
|
|
60
|
+
var LG=new $APP.O(null,new $APP.N(null,4,["none",null,"curve",null,"arrow",null,"line",null],null),null);var rH="target title placement connector cutout-padding cutout-radius scroll-to".split(" ");$APP.Yd(["x-welcome-tour-step-connected",new $APP.N(null,2,[$APP.Z,$APP.Zd,$APP.Fn,!1],null),"x-welcome-tour-step-disconnected",new $APP.N(null,2,[$APP.Z,$APP.Zd,$APP.Fn,!1],null)]);
|
|
61
|
+
var bG=new $APP.O(null,new $APP.N(null,8,["right",null,"top",null,"bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null,"bottom",null,"left",null],null),null),cG=new $APP.O(null,new $APP.N(null,4,["none",null,"curve",null,"arrow",null,"line",null],null),null);$APP.ca("baredom.exports.x_welcome_tour.init",sH);export const init=sH;
|
package/package.json
CHANGED
|
@@ -71,6 +71,16 @@
|
|
|
71
71
|
"import": "./dist/x-popover.js",
|
|
72
72
|
"default": "./dist/x-popover.js"
|
|
73
73
|
},
|
|
74
|
+
"./x-i18n-provider": {
|
|
75
|
+
"types": "./dist/x-i18n-provider.d.ts",
|
|
76
|
+
"import": "./dist/x-i18n-provider.js",
|
|
77
|
+
"default": "./dist/x-i18n-provider.js"
|
|
78
|
+
},
|
|
79
|
+
"./x-i18n": {
|
|
80
|
+
"types": "./dist/x-i18n.d.ts",
|
|
81
|
+
"import": "./dist/x-i18n.js",
|
|
82
|
+
"default": "./dist/x-i18n.js"
|
|
83
|
+
},
|
|
74
84
|
"./x-icon": {
|
|
75
85
|
"types": "./dist/x-icon.d.ts",
|
|
76
86
|
"import": "./dist/x-icon.js",
|
|
@@ -291,6 +301,11 @@
|
|
|
291
301
|
"import": "./dist/x-liquid-fill.js",
|
|
292
302
|
"default": "./dist/x-liquid-fill.js"
|
|
293
303
|
},
|
|
304
|
+
"./x-kinetic-canvas": {
|
|
305
|
+
"types": "./dist/x-kinetic-canvas.d.ts",
|
|
306
|
+
"import": "./dist/x-kinetic-canvas.js",
|
|
307
|
+
"default": "./dist/x-kinetic-canvas.js"
|
|
308
|
+
},
|
|
294
309
|
"./x-divider": {
|
|
295
310
|
"types": "./dist/x-divider.d.ts",
|
|
296
311
|
"import": "./dist/x-divider.js",
|
|
@@ -386,6 +401,11 @@
|
|
|
386
401
|
"import": "./dist/x-combobox.js",
|
|
387
402
|
"default": "./dist/x-combobox.js"
|
|
388
403
|
},
|
|
404
|
+
"./x-multi-combobox": {
|
|
405
|
+
"types": "./dist/x-multi-combobox.d.ts",
|
|
406
|
+
"import": "./dist/x-multi-combobox.js",
|
|
407
|
+
"default": "./dist/x-multi-combobox.js"
|
|
408
|
+
},
|
|
389
409
|
"./x-menu-item": {
|
|
390
410
|
"types": "./dist/x-menu-item.d.ts",
|
|
391
411
|
"import": "./dist/x-menu-item.js",
|
|
@@ -498,7 +518,7 @@
|
|
|
498
518
|
"bugs": {
|
|
499
519
|
"url": "https://github.com/avanelsas/baredom/issues"
|
|
500
520
|
},
|
|
501
|
-
"version": "2.
|
|
521
|
+
"version": "2.8.0",
|
|
502
522
|
"sideEffects": [
|
|
503
523
|
"./dist/*.js"
|
|
504
524
|
],
|