@vanelsas/baredom 3.7.0 → 3.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 +16 -0
- package/README.md +7 -0
- package/custom-elements.json +4287 -4287
- package/dist/baredom.d.ts +95 -95
- package/dist/base.js +30 -30
- package/dist/integrity.json +102 -102
- package/dist/x-alert.js +13 -13
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +9 -9
- package/dist/x-badge.js +5 -5
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -13
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +35 -35
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +28 -28
- package/dist/x-chart.js +22 -22
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +17 -17
- package/dist/x-collapse.js +5 -5
- package/dist/x-color-picker.js +42 -42
- package/dist/x-combobox.js +2 -2
- package/dist/x-command-palette.js +26 -26
- package/dist/x-confetti.js +19 -19
- package/dist/x-container.js +3 -3
- package/dist/x-context-menu.js +12 -12
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +12 -12
- package/dist/x-date-picker.js +9 -9
- package/dist/x-divider.js +3 -3
- package/dist/x-drag-panel.js +29 -29
- package/dist/x-drawer.js +10 -10
- package/dist/x-drop-zone.js +11 -10
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +4 -4
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.js +6 -6
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +8 -8
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +5 -5
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +6 -6
- package/dist/x-image.js +10 -10
- package/dist/x-kbd.js +6 -6
- package/dist/x-kinetic-canvas.js +24 -24
- package/dist/x-kinetic-font.js +15 -15
- package/dist/x-kinetic-typography.js +20 -20
- package/dist/x-liquid-dock.js +14 -14
- package/dist/x-liquid-fill.js +21 -21
- package/dist/x-liquid-glass.js +17 -17
- package/dist/x-menu-item.js +4 -4
- package/dist/x-menu.js +7 -7
- package/dist/x-metaball-cursor.js +20 -20
- package/dist/x-modal.js +8 -8
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +34 -34
- package/dist/x-navbar.js +7 -7
- package/dist/x-neural-glow.js +26 -26
- package/dist/x-organic-divider.js +9 -9
- package/dist/x-organic-progress.js +24 -24
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +18 -18
- package/dist/x-pagination.js +7 -7
- package/dist/x-particle-button.js +27 -27
- package/dist/x-popover.js +22 -22
- package/dist/x-progress-circle.js +4 -4
- package/dist/x-progress.js +4 -4
- package/dist/x-radio.js +10 -10
- package/dist/x-range-slider.js +25 -25
- package/dist/x-rating.js +20 -20
- package/dist/x-ripple-effect.js +7 -7
- package/dist/x-scroll-parallax.js +14 -14
- package/dist/x-scroll-stack.js +16 -16
- package/dist/x-scroll-story.js +16 -16
- package/dist/x-scroll-timeline.js +39 -39
- package/dist/x-scroll.js +17 -17
- package/dist/x-sidebar.js +11 -11
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-slider.js +12 -12
- package/dist/x-soft-body.js +16 -16
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +3 -3
- package/dist/x-splash.js +9 -9
- package/dist/x-split-pane.js +7 -7
- package/dist/x-spotlight-card.js +8 -8
- package/dist/x-stat.js +7 -7
- package/dist/x-switch.js +5 -5
- package/dist/x-table-cell.js +12 -12
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.d.ts +32 -32
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +10 -10
- package/dist/x-theme.js +24 -24
- package/dist/x-timeline.js +5 -5
- package/dist/x-toast.js +20 -20
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +11 -11
- package/dist/x-trace-history.js +122 -122
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +59 -59
- package/package.json +1 -1
package/dist/x-table.d.ts
CHANGED
|
@@ -39,21 +39,28 @@ export interface XTable extends HTMLElement {
|
|
|
39
39
|
): void;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export interface
|
|
43
|
-
"x-table-
|
|
44
|
-
"x-table-
|
|
45
|
-
"x-table-
|
|
42
|
+
export interface XTableCellEventMap {
|
|
43
|
+
"x-table-cell-sort": CustomEvent<{ direction: string; previousDirection: string }>;
|
|
44
|
+
"x-table-cell-connected": CustomEvent<{ type: string; scope: string; colSpan: number; rowSpan: number; align: string }>;
|
|
45
|
+
"x-table-cell-disconnected": CustomEvent<{}>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export interface
|
|
49
|
-
|
|
48
|
+
export interface XTableCell extends HTMLElement {
|
|
49
|
+
align: string;
|
|
50
|
+
rowSpan: number;
|
|
51
|
+
truncate: boolean;
|
|
50
52
|
disabled: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
valign: string;
|
|
54
|
+
type: string;
|
|
55
|
+
scope: string;
|
|
56
|
+
colSpan: number;
|
|
57
|
+
sticky: string;
|
|
58
|
+
sortable: boolean;
|
|
59
|
+
sortDirection: string;
|
|
53
60
|
|
|
54
|
-
addEventListener<K extends keyof
|
|
61
|
+
addEventListener<K extends keyof XTableCellEventMap>(
|
|
55
62
|
type: K,
|
|
56
|
-
listener: (this:
|
|
63
|
+
listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
|
|
57
64
|
options?: boolean | AddEventListenerOptions
|
|
58
65
|
): void;
|
|
59
66
|
addEventListener(
|
|
@@ -61,9 +68,9 @@ export interface XTableRow extends HTMLElement {
|
|
|
61
68
|
listener: EventListenerOrEventListenerObject,
|
|
62
69
|
options?: boolean | AddEventListenerOptions
|
|
63
70
|
): void;
|
|
64
|
-
removeEventListener<K extends keyof
|
|
71
|
+
removeEventListener<K extends keyof XTableCellEventMap>(
|
|
65
72
|
type: K,
|
|
66
|
-
listener: (this:
|
|
73
|
+
listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
|
|
67
74
|
options?: boolean | EventListenerOptions
|
|
68
75
|
): void;
|
|
69
76
|
removeEventListener(
|
|
@@ -74,28 +81,21 @@ export interface XTableRow extends HTMLElement {
|
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
|
|
77
|
-
export interface
|
|
78
|
-
"x-table-
|
|
79
|
-
"x-table-
|
|
80
|
-
"x-table-
|
|
84
|
+
export interface XTableRowEventMap {
|
|
85
|
+
"x-table-row-click": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean }>;
|
|
86
|
+
"x-table-row-connected": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean; interactive: boolean }>;
|
|
87
|
+
"x-table-row-disconnected": CustomEvent<{}>;
|
|
81
88
|
}
|
|
82
89
|
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
rowSpan: number;
|
|
86
|
-
truncate: boolean;
|
|
90
|
+
export interface XTableRow extends HTMLElement {
|
|
91
|
+
selected: boolean;
|
|
87
92
|
disabled: boolean;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
scope: string;
|
|
91
|
-
colSpan: number;
|
|
92
|
-
sticky: string;
|
|
93
|
-
sortable: boolean;
|
|
94
|
-
sortDirection: string;
|
|
93
|
+
interactive: boolean;
|
|
94
|
+
rowIndex: number;
|
|
95
95
|
|
|
96
|
-
addEventListener<K extends keyof
|
|
96
|
+
addEventListener<K extends keyof XTableRowEventMap>(
|
|
97
97
|
type: K,
|
|
98
|
-
listener: (this:
|
|
98
|
+
listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
|
|
99
99
|
options?: boolean | AddEventListenerOptions
|
|
100
100
|
): void;
|
|
101
101
|
addEventListener(
|
|
@@ -103,9 +103,9 @@ export interface XTableCell extends HTMLElement {
|
|
|
103
103
|
listener: EventListenerOrEventListenerObject,
|
|
104
104
|
options?: boolean | AddEventListenerOptions
|
|
105
105
|
): void;
|
|
106
|
-
removeEventListener<K extends keyof
|
|
106
|
+
removeEventListener<K extends keyof XTableRowEventMap>(
|
|
107
107
|
type: K,
|
|
108
|
-
listener: (this:
|
|
108
|
+
listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
|
|
109
109
|
options?: boolean | EventListenerOptions
|
|
110
110
|
): void;
|
|
111
111
|
removeEventListener(
|
|
@@ -118,7 +118,7 @@ export interface XTableCell extends HTMLElement {
|
|
|
118
118
|
declare global {
|
|
119
119
|
interface HTMLElementTagNameMap {
|
|
120
120
|
"x-table": XTable;
|
|
121
|
-
"x-table-row": XTableRow;
|
|
122
121
|
"x-table-cell": XTableCell;
|
|
122
|
+
"x-table-row": XTableRow;
|
|
123
123
|
}
|
|
124
124
|
}
|
package/dist/x-table.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.S(d,"part","caption");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,
|
|
4
|
-
$APP.G(a),c=$APP.C(b,
|
|
5
|
-
|
|
6
|
-
"data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},
|
|
7
|
-
"aria-multiselectable");e!=null?$APP.S(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.S(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,
|
|
8
|
-
"data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.S(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)
|
|
9
|
-
3,[$APP.Yr,$APP.n(f)?f:0,$APP.Ds,$APP.p(h.hasAttribute("selected")),
|
|
10
|
-
"")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.S(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.gj(a,"x-table-sort",$APP.$m(new $APP.M(null,3,[
|
|
11
|
-
c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},
|
|
12
|
-
"columns","");$APP.mj(a,"caption","caption","");$APP.mj(a,"selectable","selectable","none");$APP.jj(a,"striped","striped");$APP.jj(a,"bordered","bordered");$APP.jj(a,"compact","compact");$APP.jj(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return
|
|
13
|
-
return
|
|
14
|
-
1060167988),
|
|
2
|
+
var MM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},OM=function(a){var b=$APP.l(a,"__xTableRefs");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=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
|
|
3
|
+
$APP.S(d,"part","caption");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,NM,d,$APP.nu,e],null));return $APP.l(a,"__xTableRefs")},ZM=function(a){a=new $APP.M(null,8,[PM,a.getAttribute("columns"),QM,a.getAttribute("caption"),RM,a.getAttribute("selectable"),$APP.Ct,a.hasAttribute("striped"),SM,a.hasAttribute("bordered"),TM,a.hasAttribute("full-width"),UM,a.hasAttribute("compact"),VM,a.getAttribute("row-count")],null);var b=
|
|
4
|
+
$APP.G(a),c=$APP.C(b,PM),d=$APP.C(b,QM),e=$APP.C(b,RM);a=$APP.C(b,$APP.Ct);var f=$APP.C(b,SM),h=$APP.C(b,TM),k=$APP.C(b,UM);b=$APP.C(b,VM);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",minmax(0,1fr))":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.cd(Bga,e)?e:"none";return new $APP.M(null,8,[$APP.ht,c,WM,d,XM,e,$APP.Ct,$APP.D(a),SM,$APP.D(f),TM,$APP.D(h),
|
|
5
|
+
UM,$APP.D(k),YM,MM(b)],null)},$M=function(a){a=$APP.q($APP.xe.m($APP.Cp,$APP.Dc(a.querySelectorAll("x-table-row")),$APP.ph(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.td(e+1,2)===0?$APP.S(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Zc(a)?(b=$APP.Eb(a),a=$APP.Fb(a),f=b,c=$APP.w(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.td(e+1,2)===0?$APP.S(f,"data-stripe","even"):$APP.U(f,
|
|
6
|
+
"data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},aN=function(a){var b=ZM(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ct),d=OM(a);d=$APP.G(d);d=$APP.C(d,NM);var e=$APP.G(b);e=$APP.C(e,$APP.ht);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,XM);e=$APP.C(f,YM);f=$APP.C(f,WM);$APP.S(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.S(a,"aria-multiselectable",h):$APP.U(a,
|
|
7
|
+
"aria-multiselectable");e!=null?$APP.S(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.S(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,WM);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Ct);e=$APP.C(f,SM);h=$APP.C(f,TM);f=$APP.C(f,UM);$APP.n(d)?$APP.S(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.S(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.S(a,
|
|
8
|
+
"data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.S(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&$M(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Cga=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:ZM(a);return $APP.n($APP.Ct.i(f))?$M(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:ZM(a);var k=XM.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.gj(a,"x-table-row-select",$APP.$m(new $APP.M(null,
|
|
9
|
+
3,[$APP.Yr,$APP.n(f)?f:0,$APP.Ds,$APP.p(h.hasAttribute("selected")),bN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Ec(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,u=0;;)if(u<r){var x=m.C(null,u);$APP.U(x,"selected");u+=1}else if(k=$APP.q(k))m=k,$APP.Zc(m)?(k=$APP.Eb(m),u=$APP.Fb(m),m=k,r=$APP.w(k),k=u):(k=$APP.t(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),u=0;else break;h=$APP.n(f)?null:$APP.S(h,"selected",
|
|
10
|
+
"")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.S(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.gj(a,"x-table-sort",$APP.$m(new $APP.M(null,3,[cN,h,$APP.Ir,k,$APP.pv,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",
|
|
11
|
+
c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},dN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},Dga=function(a){$APP.mj(a,"columns",
|
|
12
|
+
"columns","");$APP.mj(a,"caption","caption","");$APP.mj(a,"selectable","selectable","none");$APP.jj(a,"striped","striped");$APP.jj(a,"bordered","bordered");$APP.jj(a,"compact","compact");$APP.jj(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return MM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.S(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Ega=function(a){OM(a);dN(a);Cga(a);
|
|
13
|
+
return aN(a)},Fga=function(a){return dN(a)},Gga=function(a,b,c,d){return $APP.I(c,d)?aN(a):null},eN=function(){return $APP.ri("x-table",new $APP.M(null,5,[$APP.ii,Hga,$APP.gi,Ega,$APP.di,Fga,$APP.ci,Gga,$APP.hi,Dga],null))},TM=new $APP.F(null,"full-width?","full-width?",1477288349),VM=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),RM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),cN=new $APP.F(null,"colIndex","colIndex",171239635),YM=new $APP.F(null,"row-count","row-count",
|
|
14
|
+
1060167988),QM=new $APP.F(null,"caption-raw","caption-raw",-375935083),bN=new $APP.F(null,"selectionMode","selectionMode",1264773367),PM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),XM=new $APP.F(null,"selectable","selectable",370587038),WM=new $APP.F(null,"caption","caption",-855383902),SM=new $APP.F(null,"bordered?","bordered?",562358476),NM=new $APP.F(null,"caption-div","caption-div",1485363333),UM=new $APP.F(null,"compact?","compact?",1216893298);var Hga="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.ie(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[cN,$APP.Y,$APP.Ir,$APP.X,$APP.pv,$APP.X],null),$APP.Xu,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,bN,$APP.X],null),$APP.Xu,!0],null)]);var Bga=new $APP.bh(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ha("baredom.exports.x_table.init",eN);export const init=eN;
|
package/dist/x-tabs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b.tagName)},$APP.Dc(a.children)))},
|
|
4
|
-
$APP.U(a,"selected"))},
|
|
5
|
-
h),m=$APP.z.j(
|
|
6
|
-
|
|
7
|
-
"role","tablist");$APP.S(c,"aria-orientation",$APP.Zt.i(b));var d=$APP.Z.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.S(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return
|
|
8
|
-
var k=
|
|
9
|
-
null;break a}k=null}return k}function c(d){d.stopPropagation();return
|
|
10
|
-
$APP.S(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);
|
|
11
|
-
null},
|
|
12
|
-
$APP.ie(["value-change-request",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,2,[$APP.Ti,$APP.X,$APP.st,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Ti,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_tabs.init",
|
|
2
|
+
var uT=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ti);var c=$APP.C(b,$APP.Zt),d=$APP.C(b,tT),e=$APP.C(b,$APP.Z);b=$APP.C(b,$APP.qv);c=$APP.cd(nka,c)?c:"horizontal";d=$APP.cd(oka,d)?d:"auto";return new $APP.M(null,5,[$APP.Ti,a,$APP.Zt,c,tT,d,$APP.Z,e,$APP.qv,$APP.D(b)],null)},vT=function(a){return new $APP.M(null,5,[$APP.Ti,a.getAttribute("value"),$APP.Zt,a.getAttribute("orientation"),tT,a.getAttribute("activation"),$APP.Z,a.getAttribute("label"),$APP.qv,a.hasAttribute("loop")],null)},wT=function(a){return $APP.Ze($APP.De(function(b){return $APP.z.j("X-TAB",
|
|
3
|
+
b.tagName)},$APP.Dc(a.children)))},xT=function(a){return $APP.p(a.hasAttribute("disabled"))},yT=function(a){return a.getAttribute("value")},pka=function(a){return $APP.oe(function(b){return xT(b)?b:null},a)},zT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.S(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},AT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.S(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
|
|
4
|
+
$APP.U(a,"selected"))},BT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.S(a,"tabindex",b)},CT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.S(a,"hidden","")))},DT=function(a){var b=wT(a),c=a.getAttribute("value"),d=$APP.gh($APP.se(yT,b));$APP.n($APP.n(c)?$APP.cd(d,c):c)||(c=pka(b),c=$APP.n(c)?yT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
|
|
5
|
+
h),m=$APP.z.j(yT(k),c);AT(k,m);m&&xT(k)?BT(k,"0"):BT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.Zc(d)?(e=$APP.Eb(d),d=$APP.Fb(d),k=e,f=$APP.w(e),e=k):(k=$APP.t(d),e=$APP.z.j(yT(k),c),AT(k,e),e&&xT(k)?BT(k,"0"):BT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),CT(k,$APP.z.j(yT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.Zc(d)?(b=$APP.Eb(d),e=$APP.Fb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.t(d),CT(k,$APP.z.j(yT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
|
|
6
|
+
zT(a,c)}return c},ET=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.gj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(zT(a,b),DT(a),$APP.ej(a,"value-change",{value:$APP.n(b)?b:""})):null},FT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},GT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},HT=function(a){var b=uT(vT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.S(c,
|
|
7
|
+
"role","tablist");$APP.S(c,"aria-orientation",$APP.Zt.i(b));var d=$APP.Z.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.S(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return DT(a)},qka=function(a){var b=new MutationObserver(function(){return HT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},IT=function(a){function b(d){a:{var e=$APP.Ze($APP.De(xT,wT(a))),f=uT(vT(a)),h=$APP.Zt.i(f);
|
|
8
|
+
var k=tT.i(f);f=$APP.qv.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?FT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?GT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?FT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?GT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?ET(a,yT(d)):null:
|
|
9
|
+
null;break a}k=null}return k}function c(d){d.stopPropagation();return ET(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);qka(a)},rka=function(a){if($APP.Ui(a,"__xTabsInitialized"))return IT(a),HT(a);if(!$APP.Ui(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
|
|
10
|
+
$APP.S(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);IT(a);$APP.Vi(a,"__xTabsInitialized")}HT(a);return a},ska=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},tka=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ui(a,"__xTabsInitialized")?HT(a):
|
|
11
|
+
null},vka=function(a){return $APP.tj(a,uka)},JT=function(){return $APP.ri("x-tabs",new $APP.M(null,5,[$APP.ii,wka,$APP.gi,rka,$APP.di,ska,$APP.ci,tka,$APP.hi,vka],null))},tT=new $APP.F(null,"activation","activation",2128521072);var wka=["value","orientation","activation","label","loop"],nka=new $APP.bh(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),oka=new $APP.bh(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),uka=new $APP.M(null,1,[$APP.Ti,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null)],null);
|
|
12
|
+
$APP.ie(["value-change-request",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,2,[$APP.Ti,$APP.X,$APP.st,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Ti,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_tabs.init",JT);export const init=JT;
|
package/dist/x-text-area.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
2
|
var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){$APP.Bj(b,c,new $APP.M(null,4,[$APP.uj,a.hasAttribute("error"),$APP.vj,a.getAttribute("error"),$APP.wj,a.hasAttribute("required"),$APP.xj,$APP.z.j(c.value,"")],null))},w7=function(a){a=$APP.vg([p7,$APP.Oj,$APP.Lj,$APP.so,$APP.jr,q7,$APP.Pj,r7,$APP.Qj,$APP.$l,$APP.Mj,$APP.Rj,s7,$APP.Nj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
|
|
3
3
|
a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.Nj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Oj),h=$APP.C(b,$APP.Lj),k=$APP.C(b,$APP.so),m=$APP.C(b,$APP.jr),r=$APP.C(b,q7);a=$APP.C(b,$APP.Pj);var u=$APP.C(b,r7),x=$APP.C(b,$APP.Qj),y=$APP.C(b,
|
|
4
|
-
$APP.$l),A=$APP.C(b,$APP.Mj);b=$APP.C(b,$APP.Rj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",O=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(
|
|
4
|
+
$APP.$l),A=$APP.C(b,$APP.Mj);b=$APP.C(b,$APP.Rj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",O=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(Rua,e)?e:"vertical";r=n7(r);return $APP.vg([$APP.wj,$APP.em,$APP.Vj,$APP.xq,$APP.Uj,$APP.Ti,t7,$APP.ku,$APP.uj,u7,$APP.Iu,v7,$APP.Er,$APP.Z,$APP.vj,$APP.jk,$APP.Wj],[x,y,d,m,h,
|
|
5
5
|
A,c,f,k,e,H,n7(u),$APP.n(r)?r:3,O,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.jk),m=$APP.C(h,$APP.Wj),r=$APP.C(h,$APP.wj),u=$APP.C(h,$APP.em),x=$APP.C(h,$APP.Vj),y=$APP.C(h,t7),A=$APP.C(h,$APP.Uj),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Er);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
|
|
6
6
|
u;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.S(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.S(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.wj);m=$APP.C(r,$APP.uj);r=$APP.C(r,$APP.xq);$APP.S(d,"aria-required",$APP.n(k)?"true":"false");$APP.S(d,"aria-invalid",$APP.n(m)?"true":"false");k=$APP.n($APP.n(r)?m:r)?"hint error":$APP.n(r)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.S(d,"aria-describedby",
|
|
7
7
|
k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.Z);m=$APP.C(m,$APP.ku);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Iu);k=$APP.C(k,$APP.xq);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.vj);e=$APP.C(e,$APP.uj);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.uj);$APP.$i(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,"__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},
|
|
8
|
-
|
|
9
|
-
if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return
|
|
10
|
-
$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},
|
|
11
|
-
$APP.n(b)&&b.setFormValue("");return z7(a)},
|
|
8
|
+
Sua=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.gj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),$APP.ej(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Tua=function(a){var b=$APP.l(a,"__xTextAreaRefs");
|
|
9
|
+
if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Sua(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.ej(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=
|
|
10
|
+
$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Uua=function(a,b){$APP.$i(a,"disabled",$APP.D(b));return z7(a)},Vua=function(a){$APP.U(a,"value");$APP.U(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");
|
|
11
|
+
$APP.n(b)&&b.setFormValue("");return z7(a)},Wua=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
|
|
12
12
|
$APP.S(d,"part","field");$APP.S(e,"part","label");$APP.S(e,"id","label");$APP.S(e,"for","textarea");$APP.S(f,"part","textarea-wrapper");$APP.S(h,"part","textarea");$APP.S(h,"id","textarea");$APP.S(h,"aria-labelledby","label");$APP.S(k,"part","hint");$APP.S(k,"id","hint");$APP.S(k,"aria-live","polite");$APP.S(m,"part","error");$APP.S(m,"id","error");$APP.S(m,"role","alert");$APP.S(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(m);b.appendChild(c);
|
|
13
|
-
b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));
|
|
14
|
-
"value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},
|
|
15
|
-
$APP.I(b)?""+$APP.P.i(b):"";$APP.S(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})}
|
|
16
|
-
"minlength",null)},B7=function(){return $APP.ri("x-text-area",new $APP.M(null,8,[$APP.ii,
|
|
17
|
-
"rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var
|
|
13
|
+
b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Tua(a);return z7(a)},Xua=function(a){return A7(a)},Yua=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
|
|
14
|
+
"value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},Zua=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
|
|
15
|
+
$APP.I(b)?""+$APP.P.i(b):"";$APP.S(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},$ua=function(a){$APP.Fj(a,"__xTextAreaInternals");Zua(a);$APP.mj(a,"name","name","");$APP.mj(a,"placeholder","placeholder","");$APP.mj(a,"autocomplete","autocomplete","");$APP.jj(a,"disabled","disabled");$APP.jj(a,"readOnly","readonly");$APP.jj(a,"required","required");$APP.oj(a,"rows","rows",3);$APP.oj(a,"maxLength","maxlength",null);return $APP.oj(a,"minLength",
|
|
16
|
+
"minlength",null)},B7=function(){return $APP.ri("x-text-area",new $APP.M(null,8,[$APP.ii,ava,$APP.gi,Wua,$APP.di,Xua,$APP.ci,Yua,$APP.ei,!0,$APP.bi,Uua,$APP.ai,Vua,$APP.hi,$ua],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw",
|
|
17
|
+
"rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var ava="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Rua=new $APP.bh(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
18
18
|
$APP.vg([$APP.Zv,$APP.jv,$APP.Mr,$APP.tn,$APP.Uj,$APP.Ti,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Er,$APP.Zu,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.jk,$APP.Ut,$APP.Xs,$APP.et],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.ts,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,
|
|
19
19
|
$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.N,$APP.pt,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"required"],null),new $APP.M(null,2,[$APP.N,$APP.Ks,$APP.qj,!0],null)]);
|
|
20
20
|
$APP.ie(["x-text-area-change-request",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,3,[$APP.Uj,$APP.X,$APP.Ti,$APP.X,$APP.st,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,2,[$APP.Uj,$APP.X,$APP.Ti,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,2,[$APP.Uj,$APP.X,$APP.Ti,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_text_area.init",B7);export const init=B7;
|
package/dist/x-theme.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
2
|
+
var pia=function(a,b){var c=BQ.i(CQ),d=DQ.i(CQ),e=b.light,f=b.dark;b=$APP.Xg($APP.Dc([c,$APP.n(e)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Ic(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);return $APP.Ed(new $APP.J(null,
|
|
3
3
|
2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Xg($APP.Dc([d,$APP.n(f)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Ic(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);
|
|
4
|
-
return $APP.Ed(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ka(
|
|
5
|
-
":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},
|
|
6
|
-
$APP.P.i(
|
|
7
|
-
b)},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),
|
|
11
|
-
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),
|
|
12
|
-
"#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),
|
|
13
|
-
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),
|
|
14
|
-
"#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),
|
|
15
|
-
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),
|
|
16
|
-
"#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),
|
|
17
|
-
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),
|
|
18
|
-
"8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),
|
|
19
|
-
"8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),
|
|
20
|
-
"0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),
|
|
21
|
-
"0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),
|
|
22
|
-
"0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),
|
|
23
|
-
"0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),
|
|
24
|
-
"#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),
|
|
25
|
-
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),
|
|
26
|
-
"default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",
|
|
4
|
+
return $APP.Ed(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ka(EQ,a,new $APP.M(null,2,[BQ,b,DQ,d],null))},FQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.Zc(a)?(d=$APP.Eb(a),a=$APP.Fb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.P.i(c)+
|
|
5
|
+
":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},GQ=function(a){var b=new $APP.M(null,1,[$APP.Zs,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Zs),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(qia,c)&&$APP.l(EQ,c)==null?"default":c;var e=$APP.l(EQ,c);$APP.n(e)||(c=$APP.C(ria,c),e=$APP.n(c)?c:CQ);c=BQ.i(e);e=DQ.i(e);c=":host{display:contents;"+$APP.P.i(FQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
|
|
6
|
+
$APP.P.i(FQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},sia=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return GQ(a)},tia=function(){return null},uia=function(a,b,c,d){return $APP.I(c,d)?GQ(a):null},via=function(a){return $APP.nj(a,"preset","preset")},HQ=function(a,b){return pia(a,
|
|
7
|
+
b)},IQ=function(){return $APP.ri("x-theme",new $APP.M(null,5,[$APP.ii,wia,$APP.gi,sia,$APP.di,tia,$APP.ci,uia,$APP.hi,via],null))},BQ=new $APP.F(null,"light","light",1918998747),DQ=new $APP.F(null,"dark","dark",1818973999);var wia=["preset"],JQ=$APP.vg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),KQ=$APP.ie("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
|
|
8
|
+
LQ=$APP.ie(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),MQ=$APP.ie("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),NQ=$APP.ie("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),OQ=$APP.ie(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),PQ=$APP.ie("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
|
|
9
|
+
QQ=$APP.ie("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),CQ=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
10
|
+
"#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
11
|
+
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),xia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
12
|
+
"#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
13
|
+
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),yia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
14
|
+
"#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
15
|
+
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),zia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
16
|
+
"#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
17
|
+
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Aia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,LQ,MQ,NQ,OQ,$APP.vg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
|
|
18
|
+
"8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),DQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
19
|
+
"8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),Bia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,MQ,NQ,OQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
20
|
+
"0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),DQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
21
|
+
"0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),Cia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([KQ,LQ,MQ,NQ,OQ,$APP.vg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
22
|
+
"0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),DQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
23
|
+
"0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),Dia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
24
|
+
"#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
25
|
+
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),ria=new $APP.M(null,8,["default",CQ,"ocean",xia,"forest",yia,"sunset",zia,"neo-brutalist",Aia,"aurora",Bia,"mono-ai",Cia,"warm-mineral",Dia],null),EQ=Object.create(null),qia=new $APP.bh(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
|
|
26
|
+
"default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",HQ);$APP.ha("baredom.exports.x_theme.init",IQ);export const init=IQ;export const registerPreset=HQ;
|
package/dist/x-timeline.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(
|
|
2
|
+
var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(ota,a)?a:"start"},pta=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.td(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");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=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
|
|
3
3
|
$APP.S(d,"part","label");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Sk,b,y4,d,$APP.nu,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Oj,a.getAttribute("label"),$APP.ks,a.getAttribute("position"),$APP.Ct,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Oj);var c=$APP.C(b,$APP.ks);b=$APP.C(b,$APP.Ct);return new $APP.M(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.Uv,x4(c),$APP.Ct,
|
|
4
4
|
$APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Uv);c=$APP.C(c,$APP.Ct);a=a.querySelectorAll("x-timeline-item");
|
|
5
|
-
for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.S(f,"data-index",""+$APP.P.i(e));h?$APP.S(f,"data-last",""):$APP.U(f,"data-last");$APP.S(f,"data-position",
|
|
5
|
+
for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.S(f,"data-index",""+$APP.P.i(e));h?$APP.S(f,"data-last",""):$APP.U(f,"data-last");$APP.S(f,"data-position",pta(b,e));$APP.n(c)?$APP.S(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},qta=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
|
|
6
6
|
$APP.l(e,"status");e=$APP.l(e,"label");return $APP.ej(a,"x-timeline-select",$APP.$m(new $APP.M(null,3,[$APP.Ul,$APP.n(f)?f:0,$APP.Rs,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
|
|
7
|
-
if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},
|
|
8
|
-
$APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.S(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.jj(a,"striped","striped")},
|
|
9
|
-
null},E4=function(){return $APP.ri("x-timeline",new $APP.M(null,5,[$APP.ii,
|
|
7
|
+
if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},rta=function(a){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)?
|
|
8
|
+
$APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.S(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.jj(a,"striped","striped")},sta=function(a){z4(a);B4(a);D4(a);qta(a);return C4(a)},tta=function(a){return D4(a)},uta=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
|
|
9
|
+
null},E4=function(){return $APP.ri("x-timeline",new $APP.M(null,5,[$APP.ii,vta,$APP.gi,sta,$APP.di,tta,$APP.ci,uta,$APP.hi,rta],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var vta=["label","position","striped"];$APP.ie(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Ul,$APP.Y,$APP.Rs,$APP.X,$APP.Z,$APP.X],null),$APP.Xu,!1],null)]);var ota=new $APP.bh(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",E4);export const init=E4;
|
package/dist/x-toast.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.G(a),c=$APP.C(b,$APP.Aj),d=$APP.C(b,$APP.ju);a=$APP.C(b,$APP.Hr);var e=$APP.C(b,$APP.Pj),f=$APP.C(b,$APP.zq),h=$APP.C(b,$APP.bq),k=$APP.C(b,
|
|
4
|
-
typeof d==="string"?d.trim():null;return $APP.n(r)?r:""}()])},
|
|
2
|
+
var uaa=function(a){a=$APP.C(taa,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Wt},nB=function(a){a=$APP.C(vaa,a);return $APP.n(a)?a:"info"},oB=function(a){return a==null?!1:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},pB=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},waa=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},xaa=function(a){var b=
|
|
3
|
+
$APP.G(a),c=$APP.C(b,$APP.Aj),d=$APP.C(b,$APP.ju);a=$APP.C(b,$APP.Hr);var e=$APP.C(b,$APP.Pj),f=$APP.C(b,$APP.zq),h=$APP.C(b,$APP.bq),k=$APP.C(b,qB),m=$APP.C(b,$APP.Eq);b=$APP.C(b,$APP.Sr);m=uaa(m);b=waa(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Tv:b!=null?$APP.lu:$APP.sj;return $APP.vg([rB,$APP.Xq,$APP.N,$APP.mt,$APP.Gs,$APP.Wj,$APP.gv,$APP.Aj,$APP.ju],[oB(k),$APP.Ci(a),m,$APP.z.j(h,$APP.lu)?b:null,h,$APP.D(e),pB(f),function(){var r=typeof c==="string"?c.trim():null;return $APP.n(r)?r:""}(),function(){var r=
|
|
4
|
+
typeof d==="string"?d.trim():null;return $APP.n(r)?r:""}()])},sB=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xq);b=$APP.C(b,$APP.Wj);return $APP.n(a)?$APP.p(b):a},tB=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.N);var d=$APP.C(c,$APP.ju);c=$APP.C(c,$APP.Aj);return new $APP.M(null,4,[$APP.N,nB(a),$APP.Yq,b,$APP.ju,d,$APP.Aj,c],null)},uB=function(a){var b=$APP.G(a);a=$APP.C(b,rB);b=$APP.C(b,$APP.gv);return $APP.D($APP.n(a)?b!=null&&b>0:a)},yB=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;
|
|
5
5
|
b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),r=document.createElement("span"),u=document.createElement("span"),x=document.createElement("button"),y=document.createElement("span"),A=document.createElement("div"),E=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08));--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(0,0,0,0.50));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(0,0,0,0.06));--x-toast-progress-height:3px;--x-toast-progress-bg:var(--x-color-border,rgba(0,0,0,0.08));--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30));--x-toast-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(255,255,255,0.65));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(255,255,255,0.12));--x-toast-progress-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
|
|
6
6
|
$APP.S(d,"part","container");$APP.S(e,"part","inner");$APP.S(f,"part","icon");$APP.S(f,"aria-hidden","true");$APP.S(h,"name","icon");$APP.S(k,"part","default-icon");h.appendChild(k);f.appendChild(h);$APP.S(m,"part","body");$APP.S(r,"part","heading");$APP.S(u,"part","message");m.appendChild(r);m.appendChild(u);$APP.S(x,"part","dismiss");$APP.S(x,"type","button");$APP.S(x,"aria-label","Dismiss toast");$APP.S(y,"aria-hidden","true");y.textContent="×";x.appendChild(y);e.appendChild(f);e.appendChild(m);
|
|
7
|
-
e.appendChild(x);$APP.S(A,"part","progress");$APP.S(E,"part","progress-bar");A.appendChild(E);d.appendChild(e);d.appendChild(A);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xToastRefs",$APP.vg([
|
|
8
|
-
a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},
|
|
9
|
-
O=$APP.C(r,$APP.wr);r=$APP.C(r,$APP.Yp);$APP.S(a,"data-type",
|
|
10
|
-
$APP.n(c)?(y.textContent="",r.style.display="none"):(y.textContent=d,r.style.display="inline");$APP.n(f)?(E.disabled=$APP.D(h),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");y=
|
|
11
|
-
"aria-keyshortcuts");$APP.Q(a,"__xToastModel",b)}},
|
|
12
|
-
$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastTimeout",null))},
|
|
13
|
-
function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:
|
|
14
|
-
|
|
15
|
-
d);return $APP.Q(a,"__xToastExitTimer",setTimeout(function(){var f=a.isConnected;return $APP.n($APP.n(f)?$APP.l(a,"__xToastExiting"):f)?(b.removeEventListener("animationend",d),$APP.Q(a,"__xToastExitTimer",null),a.remove()):null},c+60))},
|
|
16
|
-
c=c>0?c:b>0?b:180;if(c===0||
|
|
17
|
-
"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:
|
|
18
|
-
$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastExitTimer",null));b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.rt.i(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}return $APP.Q(a,"__xToastHandlers",null)},
|
|
19
|
-
"dismissible");$APP.jj(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return
|
|
20
|
-
|
|
21
|
-
$APP.ci,
|
|
22
|
-
"show-progress-attr",1680262066);var
|
|
23
|
-
var
|
|
7
|
+
e.appendChild(x);$APP.S(A,"part","progress");$APP.S(E,"part","progress-bar");A.appendChild(E);d.appendChild(e);d.appendChild(A);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xToastRefs",$APP.vg([vB,$APP.Nv,wB,$APP.rt,$APP.tv,yaa,$APP.Sk,$APP.Tk,$APP.wr,$APP.Yp,$APP.Kr,xB],[E,k,u,x,m,e,b,d,A,f,h,r]));return $APP.l(a,"__xToastRefs")},zB=function(a){return xaa($APP.vg([$APP.Hr,$APP.Pj,$APP.zq,$APP.bq,qB,$APP.Sr,$APP.Eq,$APP.Aj,$APP.ju],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),
|
|
8
|
+
a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},DB=function(a){var b=zB(a);if($APP.I($APP.l(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.N),d=$APP.C(b,$APP.ju),e=$APP.C(b,$APP.Aj),f=$APP.C(b,$APP.Xq),h=$APP.C(b,$APP.Wj),k=$APP.C(b,$APP.gv),m=yB(a),r=$APP.G(m),u=$APP.C(r,$APP.Kr),x=$APP.C(r,xB);m=$APP.C(r,vB);var y=$APP.C(r,$APP.Nv),A=$APP.C(r,wB),E=$APP.C(r,$APP.rt),H=$APP.C(r,$APP.Tk),
|
|
9
|
+
O=$APP.C(r,$APP.wr);r=$APP.C(r,$APP.Yp);$APP.S(a,"data-type",nB(c));var T=$APP.z.j(c,$APP.Uu)||$APP.z.j(c,$APP.vj)?"alert":"status";$APP.S(H,"role",T);x.textContent=d;x.style.display=$APP.z.j(d,"")?"none":"";A.textContent=e;d=$APP.n(u)?u.assignedNodes().length>0:null;u=$APP.G(b);e=$APP.C(u,$APP.Gs);u=$APP.C(u,$APP.mt);$APP.z.j(e,$APP.lu)?c=u:(c=$APP.C(AB,c),c=$APP.n(c)?c:$APP.C(AB,$APP.Wt));d=$APP.p(d)&&$APP.z.j(e,$APP.Tv);d=$APP.G(new $APP.M(null,2,[BB,d,CB,c],null));c=$APP.C(d,BB);d=$APP.C(d,CB);
|
|
10
|
+
$APP.n(c)?(y.textContent="",r.style.display="none"):(y.textContent=d,r.style.display="inline");$APP.n(f)?(E.disabled=$APP.D(h),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");y=uB(b);$APP.n(y)?(O.style.display="block",m.style.setProperty("--x-toast-timeout",""+$APP.P.i(k)+"ms")):O.style.display="none";f=$APP.n(f)?$APP.p(h):f;a.tabIndex=$APP.n(f)?0:-1;$APP.n(h)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.n(f)?$APP.S(a,"aria-keyshortcuts","Escape"):$APP.U(a,
|
|
11
|
+
"aria-keyshortcuts");$APP.Q(a,"__xToastModel",b)}},GB=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},HB=function(a){a=typeof a==="string"?a.trim():"";return $APP.z.j(a,"")||$APP.z.j(a,"0")||$APP.z.j(a,"0ms")||$APP.z.j(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},IB=function(a){var b=
|
|
12
|
+
$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastTimeout",null))},KB=function(a){IB(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:zB(a)}();return $APP.n(function(){var c=sB(b);return $APP.n(c)?typeof $APP.gv.i(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())?$APP.Q(a,"__xToastTimeout",setTimeout(function(){$APP.Q(a,"__xToastTimeout",null);if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())){var c=
|
|
13
|
+
function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:zB(a)}();if($APP.n(sB(c)))return c=$APP.$m(tB(c,"timeout")),$APP.gj(a,"x-toast-dismiss",c)?JB.i?JB.i(a):JB.call(null,a):null}return null},$APP.gv.i(b))):null},LB=function(a){var b=$APP.l(a,"__xToastModel");$APP.n($APP.n(b)?uB(b):b)&&$APP.S(a,"data-progress-active","");return KB(a)},zaa=function(a){if($APP.n($APP.l(a,"__xToastEntered")))return null;$APP.Q(a,"__xToastEntered",!0);$APP.S(a,"data-entering","");if(GB())return $APP.U(a,"data-entering"),
|
|
14
|
+
LB(a);var b=yB(a);b=$APP.G(b);var c=$APP.C(b,$APP.Tk);return c.addEventListener("animationend",function f(e){return $APP.z.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.U(a,"data-entering"),LB(a)):null})},Aaa=function(a,b,c){var d=function h(f){return $APP.z.j(f.target,b)?(b.removeEventListener("animationend",h),f=$APP.l(a,"__xToastExitTimer"),$APP.n(f)&&(clearTimeout(f),$APP.Q(a,"__xToastExitTimer",null)),$APP.n(a.isConnected)?a.remove():null):null};$APP.S(a,"data-exiting","");b.addEventListener("animationend",
|
|
15
|
+
d);return $APP.Q(a,"__xToastExitTimer",setTimeout(function(){var f=a.isConnected;return $APP.n($APP.n(f)?$APP.l(a,"__xToastExiting"):f)?(b.removeEventListener("animationend",d),$APP.Q(a,"__xToastExitTimer",null),a.remove()):null},c+60))},JB=function(a){if($APP.n($APP.l(a,"__xToastExiting")))return null;$APP.Q(a,"__xToastExiting",!0);IB(a);$APP.U(a,"data-entering");$APP.U(a,"data-progress-active");var b=window.getComputedStyle(a);var c=HB(b.getPropertyValue("--x-toast-exit-duration"));b=HB(b.getPropertyValue("--x-motion-exit-duration"));
|
|
16
|
+
c=c>0?c:b>0?b:180;if(c===0||GB())return a.remove();b=yB(a);b=$APP.G(b);b=$APP.C(b,$APP.Tk);return Aaa(a,b,c)},MB=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:zB(a);b=$APP.$m(tB(c,b));(b=$APP.gj(a,"x-toast-dismiss",b))&&JB(a);return b},Baa=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:zB(a)}();return $APP.n(function(){var d=sB(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())?(b.preventDefault(),MB(a,"button")):null},Caa=function(a,b){if($APP.z.j(b.key,
|
|
17
|
+
"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:zB(a)}();if($APP.n(function(){var d=sB(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}()))return b.preventDefault(),MB(a,"keyboard")}return null},Daa=function(a){function b(e){return Caa(a,e)}function c(e){return Baa(a,e)}var d=yB(a);d=$APP.G(d);$APP.C(d,$APP.rt).addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xToastHandlers",{click:c,keydown:b})},NB=function(a){IB(a);var b=$APP.l(a,"__xToastExitTimer");
|
|
18
|
+
$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastExitTimer",null));b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.rt.i(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}return $APP.Q(a,"__xToastHandlers",null)},Eaa=function(a){$APP.mj(a,"type","type","info");$APP.mj(a,"heading","heading","");$APP.mj(a,"message","message","");$APP.nj(a,"icon","icon");$APP.kj(a,"dismissible",
|
|
19
|
+
"dismissible");$APP.jj(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return pB(this.getAttribute("timeout-ms"))},set:function(b){return b==null?$APP.U(this,"timeout-ms"):$APP.S(this,"timeout-ms",""+$APP.P.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return oB(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?$APP.S(this,"show-progress",""):$APP.U(this,"show-progress")},enumerable:!0,configurable:!0})},
|
|
20
|
+
Faa=function(a){return Object.defineProperty(a,"dismiss",{value:function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&MB(this,typeof b==="string"?b:"api");return null},writable:!0,configurable:!0})},Gaa=function(a){yB(a);NB(a);Daa(a);DB(a);return zaa(a)},Haa=function(a){return NB(a)},Iaa=function(a,b,c,d){return $APP.I(c,d)?(DB(a),$APP.n(a.isConnected)?KB(a):null):null},Kaa=function(){return $APP.ri("x-toast",new $APP.M(null,5,[$APP.ii,Jaa,$APP.gi,Gaa,$APP.di,Haa,
|
|
21
|
+
$APP.ci,Iaa,$APP.hi,function(a){Eaa(a);return Faa(a)}],null))},OB=function(){return Kaa()},xB=new $APP.F(null,"heading-el","heading-el",-1277272161),rB=new $APP.F(null,"show-progress?","show-progress?",-1681518912),yaa=new $APP.F(null,"inner","inner",-1383171215),BB=new $APP.F(null,"hide?","hide?",-988635670),CB=new $APP.F(null,"fallback","fallback",761637929),wB=new $APP.F(null,"message-el","message-el",-683533234),vB=new $APP.F(null,"progress-bar","progress-bar",-123877022),qB=new $APP.F(null,"show-progress-attr",
|
|
22
|
+
"show-progress-attr",1680262066);var Jaa="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.ie(["x-toast-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.N,$APP.X,$APP.Yq,$APP.X,$APP.ju,$APP.X,$APP.Aj,$APP.X],null),$APP.Xu,!0],null)]);
|
|
23
|
+
var taa=new $APP.M(null,4,["info",$APP.Wt,"success",$APP.ft,"warning",$APP.Uu,"error",$APP.vj],null),vaa=new $APP.M(null,4,[$APP.Wt,"info",$APP.ft,"success",$APP.Uu,"warning",$APP.vj,"error"],null),AB=new $APP.M(null,4,[$APP.Wt,"ℹ",$APP.ft,"✓",$APP.Uu,"!",$APP.vj,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",OB);export const init=OB;
|